Forminator Payment, Quiz and Contact Form Plugin - Version 1.16.2

Version Description

( 2022-06-02 ) =

  • Improvement: Refactor submission process
  • Fix: Member function fatal error after updating the latest version
  • Fix: HTML field is not working
  • Fix: Can't submit the registration form when the Autofill option is enabled
  • Fix: Custom field is not rendering slug value
  • Fix: Blank PHP file issue while creating Polls
  • Fix: Visibility conditions don't work with subfields
Download this release

Release Info

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

Code changes from version 1.15.14 to 1.16.2

Files changed (30) hide show
  1. addons/pro/activecampaign/class-forminator-addon-activecampaign-form-hooks.php +7 -41
  2. addons/pro/aweber/class-forminator-addon-aweber-form-hooks.php +8 -47
  3. addons/pro/campaignmonitor/class-forminator-addon-campaignmonitor-form-hooks.php +9 -36
  4. addons/pro/googlesheet/class-forminator-addon-googlesheet-form-hooks.php +1 -17
  5. addons/pro/googlesheet/class-forminator-addon-googlesheet-quiz-hooks.php +1 -2
  6. addons/pro/hubspot/class-forminator-addon-hubspot-form-hooks.php +6 -14
  7. addons/pro/mailchimp/class-forminator-addon-mailchimp-form-hooks.php +4 -14
  8. addons/pro/trello/class-forminator-addon-trello-quiz-hooks.php +1 -1
  9. addons/pro/zapier/class-forminator-addon-zapier-form-hooks.php +0 -12
  10. admin/abstracts/class-admin-module-edit-page.php +1 -1
  11. admin/classes/class-admin-ajax.php +26 -61
  12. admin/classes/class-admin-l10n.php +5 -5
  13. admin/classes/class-admin.php +86 -47
  14. admin/locale.php +9 -9
  15. admin/views/common/dashboard/widget.php +1 -1
  16. admin/views/common/entries/filter.php +1 -6
  17. admin/views/common/list/empty_content.php +2 -3
  18. admin/views/common/list/summary.php +1 -1
  19. admin/views/custom-form/entries/content.php +1 -1
  20. admin/views/custom-form/list/header.php +1 -1
  21. admin/views/custom-form/popup/import-cf7.php +2 -2
  22. admin/views/custom-form/popup/import-gravityforms.php +1 -1
  23. admin/views/custom-form/popup/import-ninjaforms.php +1 -1
  24. admin/views/custom-form/wizard/header.php +1 -1
  25. admin/views/poll/wizard/header.php +1 -1
  26. admin/views/quiz/knowledge/header.php +1 -1
  27. admin/views/quiz/list/content.php +1 -1
  28. admin/views/quiz/nowrong/header.php +1 -1
  29. admin/views/settings/tab-import.php +6 -6
  30. assets/js/form-scripts.js +1 -1
addons/pro/activecampaign/class-forminator-addon-activecampaign-form-hooks.php CHANGED
@@ -189,18 +189,8 @@ class Forminator_Addon_Activecampaign_Form_Hooks extends Forminator_Addon_Form_H
189
  if ( ! empty( $fields_map[ $common_field ] ) ) {
190
  $element_id = $fields_map[ $common_field ];
191
 
192
- if ( self::element_is_calculation( $element_id ) ) {
193
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
194
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'calculation', $meta_value );
195
- } elseif ( self::element_is_stripe( $element_id ) ) {
196
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
197
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'stripe', $meta_value );
198
- } elseif ( isset( $submitted_data[ $element_id ] ) && ! empty( $submitted_data[ $element_id ] ) ) {
199
- $element_value = self::get_field_value( $element_id, $submitted_data[ $element_id ] );
200
- }
201
- if ( isset( $element_value ) ) {
202
- $args[ $common_field ] = $element_value;
203
- unset( $element_value ); // unset for next loop.
204
  }
205
  }
206
  // processed.
@@ -209,21 +199,8 @@ class Forminator_Addon_Activecampaign_Form_Hooks extends Forminator_Addon_Form_H
209
 
210
  // process rest extra fields if available.
211
  foreach ( $fields_map as $field_id => $element_id ) {
212
- if ( ! empty( $element_id ) ) {
213
- if ( self::element_is_calculation( $element_id ) ) {
214
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
215
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'calculation', $meta_value );
216
- } elseif ( self::element_is_stripe( $element_id ) ) {
217
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
218
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'stripe', $meta_value );
219
- } elseif ( isset( $submitted_data[ $element_id ] ) && ! empty( $submitted_data[ $element_id ] ) ) {
220
- $element_value = self::get_field_value( $element_id, $submitted_data[ $element_id ] );
221
- }
222
-
223
- if ( isset( $element_value ) ) {
224
- $args[ 'field[' . $field_id . ',0]' ] = $element_value;
225
- unset( $element_value ); // unset for next loop.
226
- }
227
  }
228
  }
229
 
@@ -235,21 +212,10 @@ class Forminator_Addon_Activecampaign_Form_Hooks extends Forminator_Addon_Form_H
235
  && stripos( $tag, '}' ) === ( strlen( $tag ) - 1 )
236
  ) {
237
  // translate to value.
238
- $element_id = str_ireplace( '{', '', $tag );
239
- $element_id = str_ireplace( '}', '', $element_id );
240
- if ( self::element_is_calculation( $element_id ) ) {
241
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
242
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'calculation', $meta_value );
243
- } elseif ( self::element_is_stripe( $element_id ) ) {
244
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
245
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'stripe', $meta_value );
246
- } elseif ( isset( $submitted_data[ $element_id ] ) && ! empty( $submitted_data[ $element_id ] ) ) {
247
- $element_value = self::get_field_value( $element_id, $submitted_data[ $element_id ] );
248
- }
249
 
250
- if ( isset( $element_value ) ) {
251
- $tags[] = $element_value;
252
- unset( $element_value ); // unset for next loop.
253
  }
254
  } else {
255
  $tags[] = $tag;
189
  if ( ! empty( $fields_map[ $common_field ] ) ) {
190
  $element_id = $fields_map[ $common_field ];
191
 
192
+ if ( isset( $submitted_data[ $element_id ] ) ) {
193
+ $args[ $common_field ] = $submitted_data[ $element_id ];
 
 
 
 
 
 
 
 
 
 
194
  }
195
  }
196
  // processed.
199
 
200
  // process rest extra fields if available.
201
  foreach ( $fields_map as $field_id => $element_id ) {
202
+ if ( ! empty( $element_id ) && isset( $submitted_data[ $element_id ] ) ) {
203
+ $args[ 'field[' . $field_id . ',0]' ] = $submitted_data[ $element_id ];
 
 
 
 
 
 
 
 
 
 
 
 
 
204
  }
205
  }
206
 
212
  && stripos( $tag, '}' ) === ( strlen( $tag ) - 1 )
213
  ) {
214
  // translate to value.
215
+ $element_id = str_replace( array( '{', '}' ), '', $tag );
 
 
 
 
 
 
 
 
 
 
216
 
217
+ if ( isset( $submitted_data[ $element_id ] ) ) {
218
+ $tags[] = $submitted_data[ $element_id ];
 
219
  }
220
  } else {
221
  $tags[] = $tag;
addons/pro/aweber/class-forminator-addon-aweber-form-hooks.php CHANGED
@@ -219,19 +219,8 @@ class Forminator_Addon_Aweber_Form_Hooks extends Forminator_Addon_Form_Hooks_Abs
219
 
220
  $name_element_id = $connection_settings['fields_map']['default_field_name'];
221
 
222
- if ( self::element_is_calculation( $name_element_id ) ) {
223
- $meta_value = self::find_meta_value_from_entry_fields( $name_element_id, $form_entry_fields );
224
- $name = Forminator_Form_Entry_Model::meta_value_to_string( 'calculation', $meta_value );
225
- } elseif ( self::element_is_stripe( $name_element_id ) ) {
226
- $meta_value = self::find_meta_value_from_entry_fields( $name_element_id, $form_entry_fields );
227
- $name = Forminator_Form_Entry_Model::meta_value_to_string( 'stripe', $meta_value );
228
- } elseif ( isset( $submitted_data[ $name_element_id ] ) && ! empty( $submitted_data[ $name_element_id ] ) ) {
229
- $name = $submitted_data[ $name_element_id ];
230
-
231
- }
232
-
233
- if ( isset( $name ) ) {
234
- $args['name'] = $name;
235
  }
236
 
237
  // processed.
@@ -240,26 +229,11 @@ class Forminator_Addon_Aweber_Form_Hooks extends Forminator_Addon_Form_Hooks_Abs
240
  $custom_fields = array();
241
  // process rest extra fields if available.
242
  foreach ( $fields_map as $field_id => $element_id ) {
243
- if ( ! empty( $element_id ) ) {
244
-
245
- if ( self::element_is_calculation( $element_id ) ) {
246
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
247
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'calculation', $meta_value );
248
- } elseif ( self::element_is_stripe( $element_id ) ) {
249
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
250
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'stripe', $meta_value );
251
- } elseif ( isset( $submitted_data[ $element_id ] ) && ! empty( $submitted_data[ $element_id ] ) ) {
252
- $element_value = $submitted_data[ $element_id ];
253
- if ( is_array( $element_value ) ) {
254
- $element_value = implode( ',', $element_value );
255
- }
256
- }
257
-
258
- if ( isset( $fields_mapper[ $field_id ] ) && isset( $element_value ) ) {
259
- $custom_fields[ $fields_mapper[ $field_id ] ] = (string) $element_value; // custom value must be string.
260
- unset( $element_value ); // unset for next loop.
261
- }
262
  }
 
 
263
  }
264
  if ( ! empty( $custom_fields ) ) {
265
  $args['custom_fields'] = $custom_fields;
@@ -316,22 +290,9 @@ class Forminator_Addon_Aweber_Form_Hooks extends Forminator_Addon_Form_Hooks_Abs
316
  // translate to value.
317
  $element_id = str_ireplace( '{', '', $tag );
318
  $element_id = str_ireplace( '}', '', $element_id );
319
- if ( self::element_is_calculation( $element_id ) ) {
320
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
321
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'calculation', $meta_value );
322
- } elseif ( self::element_is_stripe( $element_id ) ) {
323
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
324
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'stripe', $meta_value );
325
- } elseif ( isset( $submitted_data[ $element_id ] ) && ! empty( $submitted_data[ $element_id ] ) ) {
326
- $element_value = $submitted_data[ $element_id ];
327
- if ( is_array( $element_value ) ) {
328
- $element_value = implode( ',', $element_value );
329
- }
330
- }
331
 
332
- if ( isset( $element_value ) ) {
333
- $tags[] = strtolower( (string) $element_value ); // tag must be string.
334
- unset( $element_value ); // unset for next loop.
335
  }
336
  } else {
337
  $tags[] = strtolower( $tag );
219
 
220
  $name_element_id = $connection_settings['fields_map']['default_field_name'];
221
 
222
+ if ( isset( $submitted_data[ $name_element_id ] ) ) {
223
+ $args['name'] = $submitted_data[ $name_element_id ];
 
 
 
 
 
 
 
 
 
 
 
224
  }
225
 
226
  // processed.
229
  $custom_fields = array();
230
  // process rest extra fields if available.
231
  foreach ( $fields_map as $field_id => $element_id ) {
232
+ if ( empty( $element_id ) || ! isset( $fields_mapper[ $field_id ] ) || ! isset( $submitted_data[ $element_id ] ) ) {
233
+ continue;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
234
  }
235
+
236
+ $custom_fields[ $fields_mapper[ $field_id ] ] = (string) $submitted_data[ $element_id ]; // custom value must be string.
237
  }
238
  if ( ! empty( $custom_fields ) ) {
239
  $args['custom_fields'] = $custom_fields;
290
  // translate to value.
291
  $element_id = str_ireplace( '{', '', $tag );
292
  $element_id = str_ireplace( '}', '', $element_id );
 
 
 
 
 
 
 
 
 
 
 
 
293
 
294
+ if ( isset( $submitted_data[ $element_id ] ) ) {
295
+ $tags[] = strtolower( (string) $submitted_data[ $element_id ] ); // tag must be string.
 
296
  }
297
  } else {
298
  $tags[] = strtolower( $tag );
addons/pro/campaignmonitor/class-forminator-addon-campaignmonitor-form-hooks.php CHANGED
@@ -173,53 +173,26 @@ class Forminator_Addon_Campaignmonitor_Form_Hooks extends Forminator_Addon_Form_
173
  unset( $fields_map['default_field_email'] );
174
 
175
  $name_element_id = $connection_settings['fields_map']['default_field_name'];
176
- if ( self::element_is_calculation( $name_element_id ) ) {
177
- $meta_value = self::find_meta_value_from_entry_fields( $name_element_id, $form_entry_fields );
178
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'calculation', $meta_value );
179
- $name = $element_value;
180
- } elseif ( self::element_is_stripe( $name_element_id ) ) {
181
- $meta_value = self::find_meta_value_from_entry_fields( $name_element_id, $form_entry_fields );
182
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'stripe', $meta_value );
183
- $name = $element_value;
184
- } elseif ( ! isset( $submitted_data[ $name_element_id ] ) || empty( $submitted_data[ $name_element_id ] ) ) {
185
  throw new Forminator_Addon_Campaignmonitor_Exception(/* translators: ... */
186
  sprintf( __( 'Name on element %1$s not found or not filled on submitted data.', 'forminator' ), $name_element_id )
187
  );
188
  }
189
 
190
- if ( isset( $name ) ) {
191
- $args['Name'] = $name;
192
- } else {
193
- $args['Name'] = $submitted_data[ $name_element_id ];
194
- }
195
-
196
  // processed.
197
  unset( $fields_map['default_field_name'] );
198
 
199
  $custom_fields = array();
200
  // process rest extra fields if available.
201
  foreach ( $fields_map as $field_id => $element_id ) {
202
- if ( ! empty( $element_id ) ) {
203
- if ( self::element_is_calculation( $element_id ) ) {
204
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
205
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'calculation', $meta_value );
206
- } elseif ( self::element_is_stripe( $element_id ) ) {
207
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
208
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'stripe', $meta_value );
209
- } elseif ( isset( $submitted_data[ $element_id ] ) && ! empty( $submitted_data[ $element_id ] ) ) {
210
- $element_value = $submitted_data[ $element_id ];
211
- if ( is_array( $element_value ) ) {
212
- $element_value = implode( ',', $element_value );
213
- }
214
- }
215
-
216
- if ( isset( $element_value ) ) {
217
- $custom_fields[] = array(
218
- 'Key' => $field_id,
219
- 'Value' => $element_value,
220
- );
221
- unset( $element_value ); // unset for next loop.
222
- }
223
  }
224
  }
225
  $args['CustomFields'] = $custom_fields;
173
  unset( $fields_map['default_field_email'] );
174
 
175
  $name_element_id = $connection_settings['fields_map']['default_field_name'];
176
+
177
+ if ( isset( $submitted_data[ $name_element_id ] ) ) {
178
+ $args['Name'] = $submitted_data[ $name_element_id ];
179
+ } else {
 
 
 
 
 
180
  throw new Forminator_Addon_Campaignmonitor_Exception(/* translators: ... */
181
  sprintf( __( 'Name on element %1$s not found or not filled on submitted data.', 'forminator' ), $name_element_id )
182
  );
183
  }
184
 
 
 
 
 
 
 
185
  // processed.
186
  unset( $fields_map['default_field_name'] );
187
 
188
  $custom_fields = array();
189
  // process rest extra fields if available.
190
  foreach ( $fields_map as $field_id => $element_id ) {
191
+ if ( ! empty( $element_id ) && isset( $submitted_data[ $element_id ] ) ) {
192
+ $custom_fields[] = array(
193
+ 'Key' => $field_id,
194
+ 'Value' => $submitted_data[ $element_id ],
195
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  }
197
  }
198
  $args['CustomFields'] = $custom_fields;
addons/pro/googlesheet/class-forminator-addon-googlesheet-form-hooks.php CHANGED
@@ -229,25 +229,9 @@ class Forminator_Addon_Googlesheet_Form_Hooks extends Forminator_Addon_Form_Hook
229
  }
230
  $form_entry_fields = $keyed_form_entry_fields;
231
 
232
- // all avail fields on library.
233
- $fields = forminator_fields_to_array();
234
- $field_types = array_keys( $fields );
235
-
236
- // sort by length, so stripos will work by traverse from longest field type first.
237
- $field_types_strlen = array_map( 'strlen', $field_types );
238
- array_multisort( $field_types_strlen, $field_types );
239
- $field_types = array_reverse( $field_types );
240
-
241
  $values = array();
242
  foreach ( $header_fields as $element_id => $header_field ) {
243
- $field_type = '';
244
-
245
- foreach ( $field_types as $type ) {
246
- if ( false !== stripos( $element_id, $type . '-' ) ) {
247
- $field_type = $type;
248
- break;
249
- }
250
- }
251
 
252
  $meta_value = array();
253
  // take from entry fields (to be saved).
229
  }
230
  $form_entry_fields = $keyed_form_entry_fields;
231
 
 
 
 
 
 
 
 
 
 
232
  $values = array();
233
  foreach ( $header_fields as $element_id => $header_field ) {
234
+ $field_type = Forminator_Core::get_field_type( $element_id );
 
 
 
 
 
 
 
235
 
236
  $meta_value = array();
237
  // take from entry fields (to be saved).
addons/pro/googlesheet/class-forminator-addon-googlesheet-quiz-hooks.php CHANGED
@@ -278,8 +278,7 @@ class Forminator_Addon_Googlesheet_Quiz_Hooks extends Forminator_Addon_Quiz_Hook
278
  $form_entry_fields = get_addons_lead_form_entry_data( $quiz_settings, $submitted_data, $addons_fields );
279
 
280
  // all avail fields on library.
281
- $fields = forminator_fields_to_array();
282
- $field_types = array_keys( $fields );
283
 
284
  // sort by length, so stripos will work by traverse from longest field type first.
285
  $field_types_strlen = array_map( 'strlen', $field_types );
278
  $form_entry_fields = get_addons_lead_form_entry_data( $quiz_settings, $submitted_data, $addons_fields );
279
 
280
  // all avail fields on library.
281
+ $field_types = Forminator_Core::get_field_types();
 
282
 
283
  // sort by length, so stripos will work by traverse from longest field type first.
284
  $field_types_strlen = array_map( 'strlen', $field_types );
addons/pro/hubspot/class-forminator-addon-hubspot-form-hooks.php CHANGED
@@ -191,27 +191,19 @@ class Forminator_Addon_Hubspot_Form_Hooks extends Forminator_Addon_Form_Hooks_Ab
191
 
192
  if ( ! empty( $fields_map[ $common_field ] ) ) {
193
  $element_id = $fields_map[ $common_field ];
194
-
195
- if ( self::element_is_calculation( $element_id ) ) {
196
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
197
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'calculation', $meta_value );
198
- } elseif ( self::element_is_stripe( $element_id ) ) {
199
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
200
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'stripe', $meta_value );
201
- } elseif ( self::element_is_datepicker( $element_id ) ) {
202
  $hs_field_type = $api->get_property( 'fieldType', $common_field, $args );
203
 
204
  if ( 'date' === $hs_field_type ) {
205
  $element_value = self::get_date_in_ms( $element_id, $submitted_data[ $element_id ], $form_id );
206
- } else {
207
- $element_value = self::get_field_value( $element_id, $submitted_data[ $element_id ] );
208
  }
209
- } elseif ( isset( $submitted_data[ $element_id ] ) && ! empty( $submitted_data[ $element_id ] ) ) {
210
- $element_value = self::get_field_value( $element_id, $submitted_data[ $element_id ] );
211
  }
212
- if ( isset( $element_value ) ) {
213
  $args[ $common_field ] = $element_value;
214
- unset( $element_value ); // unset for next loop.
215
  }
216
  }
217
  // processed.
191
 
192
  if ( ! empty( $fields_map[ $common_field ] ) ) {
193
  $element_id = $fields_map[ $common_field ];
194
+ if ( ! isset( $submitted_data[ $element_id ] ) ) {
195
+ continue;
196
+ }
197
+ $element_value = $submitted_data[ $element_id ];
198
+ if ( self::element_is_datepicker( $element_id ) ) {
 
 
 
199
  $hs_field_type = $api->get_property( 'fieldType', $common_field, $args );
200
 
201
  if ( 'date' === $hs_field_type ) {
202
  $element_value = self::get_date_in_ms( $element_id, $submitted_data[ $element_id ], $form_id );
 
 
203
  }
 
 
204
  }
205
+ if ( ! is_null( $element_value ) ) {
206
  $args[ $common_field ] = $element_value;
 
207
  }
208
  }
209
  // processed.
addons/pro/mailchimp/class-forminator-addon-mailchimp-form-hooks.php CHANGED
@@ -318,7 +318,7 @@ class Forminator_Addon_Mailchimp_Form_Hooks extends Forminator_Addon_Form_Hooks_
318
  $submitted_data[$field] = $mailchimp_formatted;
319
  }
320
  if (
321
- ! empty( $value ) &&
322
  ( false !== strpos( $field, 'gdprcheckbox' ) || false !== strpos( $field, 'consent' ) )
323
  ) {
324
  $gdpr = true;
@@ -475,20 +475,10 @@ class Forminator_Addon_Mailchimp_Form_Hooks extends Forminator_Addon_Form_Hooks_
475
  } else {
476
  if ( isset( $addon_setting_values['fields_map'][ $item->tag ] ) && ! empty( $addon_setting_values['fields_map'][ $item->tag ] ) ) {
477
  $element_id = $addon_setting_values['fields_map'][ $item->tag ];
478
- if ( self::element_is_calculation( $element_id ) ) {
479
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
480
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'calculation', $meta_value );
481
- } elseif ( self::element_is_stripe( $element_id ) ) {
482
- $meta_value = self::find_meta_value_from_entry_fields( $element_id, $form_entry_fields );
483
- $element_value = Forminator_Form_Entry_Model::meta_value_to_string( 'stripe', $meta_value );
484
- } elseif ( isset( $submitted_data[ $element_id ] ) && ! empty( $submitted_data[ $element_id ] ) ) {
485
- $element_value = self::get_field_value( $element_id, $submitted_data[ $element_id ] );
486
- }
487
-
488
- if ( isset( $element_value ) ) {
489
- $merge_fields[ $item->tag ] = $element_value;
490
- unset( $element_value ); // unset for next loop.
491
  }
 
492
  }
493
  }
494
  }
318
  $submitted_data[$field] = $mailchimp_formatted;
319
  }
320
  if (
321
+ ! empty( $value ) &&
322
  ( false !== strpos( $field, 'gdprcheckbox' ) || false !== strpos( $field, 'consent' ) )
323
  ) {
324
  $gdpr = true;
475
  } else {
476
  if ( isset( $addon_setting_values['fields_map'][ $item->tag ] ) && ! empty( $addon_setting_values['fields_map'][ $item->tag ] ) ) {
477
  $element_id = $addon_setting_values['fields_map'][ $item->tag ];
478
+ if ( ! isset( $submitted_data[ $element_id ] ) ) {
479
+ continue;
 
 
 
 
 
 
 
 
 
 
 
480
  }
481
+ $merge_fields[ $item->tag ] = $submitted_data[ $element_id ];
482
  }
483
  }
484
  }
addons/pro/trello/class-forminator-addon-trello-quiz-hooks.php CHANGED
@@ -258,7 +258,7 @@ class Forminator_Addon_Trello_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_Abs
258
  );
259
  $args['desc'] = $card_description;
260
  }
261
- if ( isset( $connection_settings['due_date'] ) && ! empty( $connection_settings['due_date'] ) ) {
262
  $due_date = forminator_addon_replace_custom_vars( $connection_settings['due_date'], $lead_submitted_data, $this->lead_model, $form_entry_fields, false );
263
  $args['due'] = $due_date;
264
  }
258
  );
259
  $args['desc'] = $card_description;
260
  }
261
+ if ( ! empty( $quiz_settings['hasLeads'] ) && ! empty( $connection_settings['due_date'] ) ) {
262
  $due_date = forminator_addon_replace_custom_vars( $connection_settings['due_date'], $lead_submitted_data, $this->lead_model, $form_entry_fields, false );
263
  $args['due'] = $due_date;
264
  }
addons/pro/zapier/class-forminator-addon-zapier-form-hooks.php CHANGED
@@ -172,18 +172,6 @@ class Forminator_Addon_Zapier_Form_Hooks extends Forminator_Addon_Form_Hooks_Abs
172
 
173
  $args = $submitted_data;
174
 
175
- // find calculation fields on entry.
176
- $calculation_fields_meta_values = self::find_calculation_fields_meta_from_entry_fields( $form_entry_fields );
177
- foreach ( $calculation_fields_meta_values as $element_id => $meta_value ) {
178
- $args[ $element_id ] = Forminator_Form_Entry_Model::meta_value_to_string( 'calculation', $meta_value );
179
- }
180
-
181
- // find stripe fields (rarely will be multiple field) on entry.
182
- $stripe_fields_meta_values = self::find_stripe_fields_meta_from_entry_fields( $form_entry_fields );
183
- foreach ( $stripe_fields_meta_values as $element_id => $meta_value ) {
184
- $args[ $element_id ] = Forminator_Form_Entry_Model::meta_value_to_string( 'stripe', $meta_value );
185
- }
186
-
187
  $args['form-title'] = $form_settings['formName'];
188
  $args['entry-time'] = current_time( 'Y-m-d H:i:s' );
189
 
172
 
173
  $args = $submitted_data;
174
 
 
 
 
 
 
 
 
 
 
 
 
 
175
  $args['form-title'] = $form_settings['formName'];
176
  $args['entry-time'] = current_time( 'Y-m-d H:i:s' );
177
 
admin/abstracts/class-admin-module-edit-page.php CHANGED
@@ -661,7 +661,7 @@ abstract class Forminator_Admin_Module_Edit_Page extends Forminator_Admin_Page {
661
  // For Quizzes with Leads.
662
  if ( isset( $model->settings['hasLeads'] ) && isset( $model->settings['leadsId'] ) && $model->settings['hasLeads'] ) {
663
  $leads_id = $model->settings['leadsId'];
664
- $leads_model = Forminator_Form_Model::model()->load( $leads_id );
665
 
666
  if ( is_object( $leads_model ) ) {
667
  wp_delete_post( $leads_id );
661
  // For Quizzes with Leads.
662
  if ( isset( $model->settings['hasLeads'] ) && isset( $model->settings['leadsId'] ) && $model->settings['hasLeads'] ) {
663
  $leads_id = $model->settings['leadsId'];
664
+ $leads_model = Forminator_Base_Form_Model::get_model( $leads_id );
665
 
666
  if ( is_object( $leads_model ) ) {
667
  wp_delete_post( $leads_id );
admin/classes/class-admin-ajax.php CHANGED
@@ -67,18 +67,18 @@ class Forminator_Admin_AJAX {
67
  add_action( 'wp_ajax_forminator_load_privacy_settings_popup', array( $this, 'load_privacy_settings' ) );
68
  add_action( 'wp_ajax_forminator_save_privacy_settings_popup', array( $this, 'save_privacy_settings' ) );
69
 
70
- add_action( 'wp_ajax_forminator_load_export_custom_form_popup', array( $this, 'load_export' ) );
71
- add_action( 'wp_ajax_forminator_load_import_custom_form_popup', array( $this, 'load_import' ) );
72
- add_action( 'wp_ajax_forminator_save_import_custom_form_popup', array( $this, 'save_import' ) );
73
 
74
- add_action( 'wp_ajax_forminator_load_import_custom_form_cf7_popup', array( $this, 'load_import_custom_form_cf7' ) );
75
- add_action( 'wp_ajax_forminator_save_import_custom_form_cf7_popup', array( $this, 'save_import_custom_form_cf7' ) );
76
 
77
- add_action( 'wp_ajax_forminator_load_import_custom_form_ninja_popup', array( $this, 'load_import_custom_form_ninja' ) );
78
- add_action( 'wp_ajax_forminator_save_import_custom_form_ninja_popup', array( $this, 'save_import_custom_form_ninja' ) );
79
 
80
- add_action( 'wp_ajax_forminator_load_import_custom_form_gravity_popup', array( $this, 'load_import_custom_form_gravity' ) );
81
- add_action( 'wp_ajax_forminator_save_import_custom_form_gravity_popup', array( $this, 'save_import_custom_form_gravity' ) );
82
 
83
  add_action( 'wp_ajax_forminator_load_export_poll_popup', array( $this, 'load_export' ) );
84
  add_action( 'wp_ajax_forminator_load_import_poll_popup', array( $this, 'load_import' ) );
@@ -92,7 +92,6 @@ class Forminator_Admin_AJAX {
92
 
93
  add_action( 'wp_ajax_forminator_save_accessibility_settings_popup', array( $this, 'save_accessibility_settings' ) );
94
 
95
- add_action( 'wp_ajax_forminator_validate_calculation_formula', array( $this, 'validate_calculation_formula' ) );
96
  add_action( 'wp_ajax_forminator_save_dashboard_settings_popup', array( $this, 'save_dashboard_settings' ) );
97
 
98
  add_action( 'wp_ajax_forminator_stripe_settings_modal', array( $this, 'stripe_settings_modal' ) );
@@ -265,7 +264,7 @@ class Forminator_Admin_AJAX {
265
  $status = Forminator_Form_Model::STATUS_PUBLISH;
266
  }
267
  } else {
268
- $form_model = Forminator_Form_Model::model()->load( $id );
269
  $action = 'update';
270
 
271
  if ( ! is_object( $form_model ) ) {
@@ -339,7 +338,7 @@ class Forminator_Admin_AJAX {
339
  }
340
 
341
  } else {
342
- $form_model = Forminator_Form_Model::model()->load( $id );
343
 
344
  if ( ! is_object( $form_model ) ) {
345
  wp_send_json_error( __( "Form model doesn't exist", 'forminator' ) );
@@ -399,7 +398,7 @@ class Forminator_Admin_AJAX {
399
  $new_settings = Forminator_Settings_Page::get_preset( $preset_id );
400
  if ( $ids ) {
401
  foreach ( $ids as $form_id ) {
402
- $form_model = Forminator_Form_Model::model()->load( $form_id );
403
  if ( ! $form_model ) {
404
  continue;
405
  }
@@ -469,7 +468,7 @@ class Forminator_Admin_AJAX {
469
  }
470
 
471
  if ( ! empty( $form_id ) ) {
472
- $form = Forminator_Form_Model::model()->load( $form_id );
473
  $settings = $form->settings;
474
  }
475
 
@@ -1189,9 +1188,6 @@ class Forminator_Admin_AJAX {
1189
  }
1190
  $current_action = current_action();
1191
  $slug = str_replace( array( 'wp_ajax_forminator_save_import_', '_popup' ), '', $current_action );
1192
- if ( 'custom_form' === $slug ) {
1193
- $slug = 'form';
1194
- }
1195
  // Validate nonce
1196
  forminator_validate_ajax( 'forminator_save_import_' . $slug );
1197
 
@@ -1279,12 +1275,12 @@ class Forminator_Admin_AJAX {
1279
  *
1280
  * @since 1.5
1281
  */
1282
- public function load_import_custom_form_cf7() {
1283
  if ( ! Forminator::is_import_export_feature_enabled() || ! forminator_is_import_plugin_enabled( 'cf7' ) ) {
1284
  wp_send_json_success( '' );
1285
  }
1286
  // Validate nonce.
1287
- forminator_validate_ajax( 'forminator_popup_import_cform_cf7' );
1288
 
1289
  $html = forminator_template( 'custom-form/popup/import-cf7' );
1290
 
@@ -1297,14 +1293,14 @@ class Forminator_Admin_AJAX {
1297
  *
1298
  * @since 1.5
1299
  */
1300
- public function save_import_custom_form_cf7() {
1301
  global $wpdb, $wpcf7_shortcode_manager;
1302
 
1303
  if ( ! Forminator::is_import_export_feature_enabled() || ! forminator_is_import_plugin_enabled( 'cf7' ) ) {
1304
  wp_send_json_error( __( 'Import Export Feature disabled.', 'forminator' ) );
1305
  }
1306
  // Validate nonce.
1307
- forminator_validate_ajax( 'forminator_save_import_custom_form_cf7' );
1308
 
1309
  $post_data = $this->get_post_data();
1310
  $importable = ( isset( $post_data['cf7_forms'] ) ? $post_data['cf7_forms'] : '' );
@@ -1347,12 +1343,12 @@ class Forminator_Admin_AJAX {
1347
  *
1348
  * @since 1.5
1349
  */
1350
- public function load_import_custom_form_ninja() {
1351
  if ( ! Forminator::is_import_export_feature_enabled() || ! forminator_is_import_plugin_enabled( 'ninjaforms' ) ) {
1352
  wp_send_json_success( '' );
1353
  }
1354
  // Validate nonce.
1355
- forminator_validate_ajax( 'forminator_popup_import_cform_ninjaforms' );
1356
 
1357
  $html = forminator_template( 'custom-form/popup/import-ninjaforms' );
1358
 
@@ -1364,13 +1360,13 @@ class Forminator_Admin_AJAX {
1364
  *
1365
  * @since 1.5
1366
  */
1367
- public function save_import_custom_form_ninja() {
1368
 
1369
  if ( ! Forminator::is_import_export_feature_enabled() || ! forminator_is_import_plugin_enabled( 'ninjaforms' ) ) {
1370
  wp_send_json_error( __( 'Import Export Feature disabled.', 'forminator' ) );
1371
  }
1372
  // Validate nonce.
1373
- forminator_validate_ajax( 'forminator_save_import_custom_form_ninja' );
1374
 
1375
  $importable = Forminator_Core::sanitize_text_field( 'ninjaforms' );
1376
  $importer = ( ! empty( $this->importers( 'ninja' ) ) ? $this->importers( 'ninja' ) : '' );
@@ -1414,12 +1410,12 @@ class Forminator_Admin_AJAX {
1414
  *
1415
  * @since 1.5
1416
  */
1417
- public function load_import_custom_form_gravity() {
1418
  if ( ! Forminator::is_import_export_feature_enabled() || ! forminator_is_import_plugin_enabled( 'gravityforms' ) ) {
1419
  wp_send_json_success( '' );
1420
  }
1421
  // Validate nonce.
1422
- forminator_validate_ajax( 'forminator_popup_import_cform_gravityforms' );
1423
 
1424
  $html = forminator_template( 'custom-form/popup/import-gravityforms' );
1425
 
@@ -1431,13 +1427,13 @@ class Forminator_Admin_AJAX {
1431
  *
1432
  * @since 1.5
1433
  */
1434
- public function save_import_custom_form_gravity() {
1435
 
1436
  if ( ! Forminator::is_import_export_feature_enabled() || ! forminator_is_import_plugin_enabled( 'gravityforms' ) ) {
1437
  wp_send_json_error( __( 'Import Export Feature disabled.', 'forminator' ) );
1438
  }
1439
  // Validate nonce.
1440
- forminator_validate_ajax( 'forminator_save_import_custom_form_gravity' );
1441
 
1442
  $importable = Forminator_Core::sanitize_text_field( 'gravityforms' );
1443
  $importer = ( ! empty( $this->importers( 'gravity' ) ) ? $this->importers( 'gravity' ) : '' );
@@ -1486,9 +1482,6 @@ class Forminator_Admin_AJAX {
1486
  }
1487
  $current_action = current_action();
1488
  $slug = str_replace( array( 'wp_ajax_forminator_load_export_', '_popup' ), '', $current_action );
1489
- if ( 'custom_form' === $slug ) {
1490
- $slug = 'form';
1491
- }
1492
  // Validate nonce
1493
  forminator_validate_ajax( 'forminator_popup_export_' . $slug );
1494
 
@@ -1509,11 +1502,8 @@ class Forminator_Admin_AJAX {
1509
 
1510
  $current_action = current_action();
1511
  $slug = str_replace( array( 'wp_ajax_forminator_load_import_', '_popup' ), '', $current_action );
1512
- if ( 'custom_form' === $slug ) {
1513
- $slug = 'form';
1514
- }
1515
  // Validate nonce
1516
- forminator_validate_ajax( 'forminator_popup_import_' . forminator_get_prefix( $slug, 'c' ) );
1517
 
1518
  $html = forminator_template( 'common/popup/import', array( 'slug' => $slug ) );
1519
 
@@ -1628,31 +1618,6 @@ class Forminator_Admin_AJAX {
1628
  wp_send_json_success();
1629
  }
1630
 
1631
- /**
1632
- * Validate Calculation Formula
1633
- *
1634
- * @since 1.7
1635
- */
1636
- public function validate_calculation_formula() {
1637
-
1638
- // Validate nonce
1639
- forminator_validate_ajax( 'forminator_validate_calculation_formula' );
1640
-
1641
- try {
1642
- $formula = Forminator_Core::sanitize_text_field( 'formula' );
1643
- $formula = forminator_calculator_maybe_dummify_fields_on_formula( $formula );
1644
- $calculator = new Forminator_Calculator( $formula );
1645
- // handle throw.
1646
- $calculator->set_is_throwable( true );
1647
- $calculator->parse();
1648
-
1649
- wp_send_json_success( __( 'Calculation formula validated successfully.', 'forminator' ) );
1650
-
1651
- } catch ( Forminator_Calculator_Exception $e ) {
1652
- wp_send_json_error( __( 'Invalid calculation formula. Please check again.', 'forminator' ) );
1653
- }
1654
- }
1655
-
1656
  /**
1657
  * Disconnect stripe
1658
  *
67
  add_action( 'wp_ajax_forminator_load_privacy_settings_popup', array( $this, 'load_privacy_settings' ) );
68
  add_action( 'wp_ajax_forminator_save_privacy_settings_popup', array( $this, 'save_privacy_settings' ) );
69
 
70
+ add_action( 'wp_ajax_forminator_load_export_form_popup', array( $this, 'load_export' ) );
71
+ add_action( 'wp_ajax_forminator_load_import_form_popup', array( $this, 'load_import' ) );
72
+ add_action( 'wp_ajax_forminator_save_import_form_popup', array( $this, 'save_import' ) );
73
 
74
+ add_action( 'wp_ajax_forminator_load_import_form_cf7_popup', array( $this, 'load_import_form_cf7' ) );
75
+ add_action( 'wp_ajax_forminator_save_import_form_cf7_popup', array( $this, 'save_import_form_cf7' ) );
76
 
77
+ add_action( 'wp_ajax_forminator_load_import_form_ninja_popup', array( $this, 'load_import_form_ninja' ) );
78
+ add_action( 'wp_ajax_forminator_save_import_form_ninja_popup', array( $this, 'save_import_form_ninja' ) );
79
 
80
+ add_action( 'wp_ajax_forminator_load_import_form_gravity_popup', array( $this, 'load_import_form_gravity' ) );
81
+ add_action( 'wp_ajax_forminator_save_import_form_gravity_popup', array( $this, 'save_import_form_gravity' ) );
82
 
83
  add_action( 'wp_ajax_forminator_load_export_poll_popup', array( $this, 'load_export' ) );
84
  add_action( 'wp_ajax_forminator_load_import_poll_popup', array( $this, 'load_import' ) );
92
 
93
  add_action( 'wp_ajax_forminator_save_accessibility_settings_popup', array( $this, 'save_accessibility_settings' ) );
94
 
 
95
  add_action( 'wp_ajax_forminator_save_dashboard_settings_popup', array( $this, 'save_dashboard_settings' ) );
96
 
97
  add_action( 'wp_ajax_forminator_stripe_settings_modal', array( $this, 'stripe_settings_modal' ) );
264
  $status = Forminator_Form_Model::STATUS_PUBLISH;
265
  }
266
  } else {
267
+ $form_model = Forminator_Base_Form_Model::get_model( $id );
268
  $action = 'update';
269
 
270
  if ( ! is_object( $form_model ) ) {
338
  }
339
 
340
  } else {
341
+ $form_model = Forminator_Base_Form_Model::get_model( $id );
342
 
343
  if ( ! is_object( $form_model ) ) {
344
  wp_send_json_error( __( "Form model doesn't exist", 'forminator' ) );
398
  $new_settings = Forminator_Settings_Page::get_preset( $preset_id );
399
  if ( $ids ) {
400
  foreach ( $ids as $form_id ) {
401
+ $form_model = Forminator_Base_Form_Model::get_model( $form_id );
402
  if ( ! $form_model ) {
403
  continue;
404
  }
468
  }
469
 
470
  if ( ! empty( $form_id ) ) {
471
+ $form = Forminator_Base_Form_Model::get_model( $form_id );
472
  $settings = $form->settings;
473
  }
474
 
1188
  }
1189
  $current_action = current_action();
1190
  $slug = str_replace( array( 'wp_ajax_forminator_save_import_', '_popup' ), '', $current_action );
 
 
 
1191
  // Validate nonce
1192
  forminator_validate_ajax( 'forminator_save_import_' . $slug );
1193
 
1275
  *
1276
  * @since 1.5
1277
  */
1278
+ public function load_import_form_cf7() {
1279
  if ( ! Forminator::is_import_export_feature_enabled() || ! forminator_is_import_plugin_enabled( 'cf7' ) ) {
1280
  wp_send_json_success( '' );
1281
  }
1282
  // Validate nonce.
1283
+ forminator_validate_ajax( 'forminator_popup_import_form_cf7' );
1284
 
1285
  $html = forminator_template( 'custom-form/popup/import-cf7' );
1286
 
1293
  *
1294
  * @since 1.5
1295
  */
1296
+ public function save_import_form_cf7() {
1297
  global $wpdb, $wpcf7_shortcode_manager;
1298
 
1299
  if ( ! Forminator::is_import_export_feature_enabled() || ! forminator_is_import_plugin_enabled( 'cf7' ) ) {
1300
  wp_send_json_error( __( 'Import Export Feature disabled.', 'forminator' ) );
1301
  }
1302
  // Validate nonce.
1303
+ forminator_validate_ajax( 'forminator_save_import_form_cf7' );
1304
 
1305
  $post_data = $this->get_post_data();
1306
  $importable = ( isset( $post_data['cf7_forms'] ) ? $post_data['cf7_forms'] : '' );
1343
  *
1344
  * @since 1.5
1345
  */
1346
+ public function load_import_form_ninja() {
1347
  if ( ! Forminator::is_import_export_feature_enabled() || ! forminator_is_import_plugin_enabled( 'ninjaforms' ) ) {
1348
  wp_send_json_success( '' );
1349
  }
1350
  // Validate nonce.
1351
+ forminator_validate_ajax( 'forminator_popup_import_form_ninjaforms' );
1352
 
1353
  $html = forminator_template( 'custom-form/popup/import-ninjaforms' );
1354
 
1360
  *
1361
  * @since 1.5
1362
  */
1363
+ public function save_import_form_ninja() {
1364
 
1365
  if ( ! Forminator::is_import_export_feature_enabled() || ! forminator_is_import_plugin_enabled( 'ninjaforms' ) ) {
1366
  wp_send_json_error( __( 'Import Export Feature disabled.', 'forminator' ) );
1367
  }
1368
  // Validate nonce.
1369
+ forminator_validate_ajax( 'forminator_save_import_form_ninja' );
1370
 
1371
  $importable = Forminator_Core::sanitize_text_field( 'ninjaforms' );
1372
  $importer = ( ! empty( $this->importers( 'ninja' ) ) ? $this->importers( 'ninja' ) : '' );
1410
  *
1411
  * @since 1.5
1412
  */
1413
+ public function load_import_form_gravity() {
1414
  if ( ! Forminator::is_import_export_feature_enabled() || ! forminator_is_import_plugin_enabled( 'gravityforms' ) ) {
1415
  wp_send_json_success( '' );
1416
  }
1417
  // Validate nonce.
1418
+ forminator_validate_ajax( 'forminator_popup_import_form_gravityforms' );
1419
 
1420
  $html = forminator_template( 'custom-form/popup/import-gravityforms' );
1421
 
1427
  *
1428
  * @since 1.5
1429
  */
1430
+ public function save_import_form_gravity() {
1431
 
1432
  if ( ! Forminator::is_import_export_feature_enabled() || ! forminator_is_import_plugin_enabled( 'gravityforms' ) ) {
1433
  wp_send_json_error( __( 'Import Export Feature disabled.', 'forminator' ) );
1434
  }
1435
  // Validate nonce.
1436
+ forminator_validate_ajax( 'forminator_save_import_form_gravity' );
1437
 
1438
  $importable = Forminator_Core::sanitize_text_field( 'gravityforms' );
1439
  $importer = ( ! empty( $this->importers( 'gravity' ) ) ? $this->importers( 'gravity' ) : '' );
1482
  }
1483
  $current_action = current_action();
1484
  $slug = str_replace( array( 'wp_ajax_forminator_load_export_', '_popup' ), '', $current_action );
 
 
 
1485
  // Validate nonce
1486
  forminator_validate_ajax( 'forminator_popup_export_' . $slug );
1487
 
1502
 
1503
  $current_action = current_action();
1504
  $slug = str_replace( array( 'wp_ajax_forminator_load_import_', '_popup' ), '', $current_action );
 
 
 
1505
  // Validate nonce
1506
+ forminator_validate_ajax( 'forminator_popup_import_' . $slug );
1507
 
1508
  $html = forminator_template( 'common/popup/import', array( 'slug' => $slug ) );
1509
 
1618
  wp_send_json_success();
1619
  }
1620
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1621
  /**
1622
  * Disconnect stripe
1623
  *
admin/classes/class-admin-l10n.php CHANGED
@@ -100,13 +100,13 @@ class Forminator_Admin_L10n {
100
  'save_alert' => __( 'The changes you made may be lost if you navigate away from this page.', 'forminator' ),
101
  'save_changes' => __( 'Save Changes', 'forminator' ),
102
  'save' => __( 'Save', 'forminator' ),
103
- 'export_cform' => __( 'Export Form', 'forminator' ),
104
  'export_poll' => __( 'Export Poll', 'forminator' ),
105
  'export_quiz' => __( 'Export Quiz', 'forminator' ),
106
- 'import_cform' => __( 'Import Form', 'forminator' ),
107
- 'import_cform_cf7' => __( 'Import', 'forminator' ),
108
- 'import_cform_ninja' => __( 'Import Ninja Forms', 'forminator' ),
109
- 'import_cform_gravity' => __( 'Import Gravity Forms', 'forminator' ),
110
  'import_poll' => __( 'Import Poll', 'forminator' ),
111
  'import_quiz' => __( 'Import Quiz', 'forminator' ),
112
  'enable_scheduled_export' => __( 'Enable scheduled exports', 'forminator' ),
100
  'save_alert' => __( 'The changes you made may be lost if you navigate away from this page.', 'forminator' ),
101
  'save_changes' => __( 'Save Changes', 'forminator' ),
102
  'save' => __( 'Save', 'forminator' ),
103
+ 'export_form' => __( 'Export Form', 'forminator' ),
104
  'export_poll' => __( 'Export Poll', 'forminator' ),
105
  'export_quiz' => __( 'Export Quiz', 'forminator' ),
106
+ 'import_form' => __( 'Import Form', 'forminator' ),
107
+ 'import_form_cf7' => __( 'Import', 'forminator' ),
108
+ 'import_form_ninja' => __( 'Import Ninja Forms', 'forminator' ),
109
+ 'import_form_gravity' => __( 'Import Gravity Forms', 'forminator' ),
110
  'import_poll' => __( 'Import Poll', 'forminator' ),
111
  'import_quiz' => __( 'Import Quiz', 'forminator' ),
112
  'enable_scheduled_export' => __( 'Enable scheduled exports', 'forminator' ),
admin/classes/class-admin.php CHANGED
@@ -26,11 +26,13 @@ class Forminator_Admin {
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
  add_action( 'admin_notices', array( $this, 'show_addons_update_notice' ) );
31
  // add_action( 'admin_notices', array( $this, 'show_wpmudev_giveaway' ) );
32
  //add_action( 'admin_notices', array( $this, 'show_prelaunch_subscriptions_notice' ) );
33
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts_for_notices' ) );
 
34
 
35
  // Add plugin action links.
36
  add_filter( 'plugin_action_links_' . FORMINATOR_PLUGIN_BASENAME, array( $this, 'add_plugin_action_links' ) );
@@ -53,8 +55,6 @@ class Forminator_Admin {
53
  * Triggered when Admin is loaded
54
  */
55
  do_action( 'forminator_admin_loaded' );
56
-
57
- $this->forminator_in_plugin_update_message();
58
  }
59
 
60
  public function enqueue_scripts_for_notices() {
@@ -445,6 +445,34 @@ class Forminator_Admin {
445
  echo '</div>';
446
  }
447
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
448
  /**
449
  * Check if the given notification was dismissed.
450
  *
@@ -926,31 +954,6 @@ class Forminator_Admin {
926
  <?php
927
  }
928
 
929
- /**
930
- * Forminator plugin update notice
931
- *
932
- * @return void
933
- */
934
- public function forminator_in_plugin_update_message() {
935
- if ( ! FORMINATOR_PRO ) {
936
- add_action( 'in_plugin_update_message-forminator/forminator.php', array(
937
- $this,
938
- 'show_plugin_update_notice'
939
- ), 10, 2 );
940
- } else {
941
- add_action(
942
- 'load-plugins.php',
943
- function () {
944
- add_action( 'after_plugin_row_forminator/forminator.php', array(
945
- $this,
946
- 'show_plugin_update_notice'
947
- ), 10, 2 );
948
- },
949
- 22
950
- );
951
- }
952
- }
953
-
954
  /**
955
  * Show plugin update notice
956
  *
@@ -959,31 +962,67 @@ class Forminator_Admin {
959
  *
960
  * @return void
961
  */
962
- public function show_plugin_update_notice( $data, $response ) {
963
- $plugin_data = (object) $response;
964
 
965
- if ( empty( $plugin_data->update ) || empty( $plugin_data->new_version ) || empty( $plugin_data->plugin ) ) {
966
  return;
967
  }
968
 
969
- if ( '1.16.0' === $plugin_data->new_version || '1.16' === $plugin_data->new_version ) {
970
- $notice = '<br/><strong>' . __( 'Upgrade Notice: ', 'forminator' ) . '</strong>';
971
- $notice .= __( 'Forminator is getting a huge performance boost thanks to some form submission improvements.', 'forminator' );
972
- $notice .= '<br/><br/>' . sprintf(
973
- __( 'There\'s an extremely low chance these changes may affect you if any of your forms use a custom action or filter that we\'ve now removed or modified (forms using standard Forminator features won\'t be affected at all). If needed, refer to this list of the %1$sretired actions/filters%2$s, but we\'re confident that %3$s of users should remain unaffected.', 'forminator' ),
974
- '<a href="https://wpmudev.com/docs/api-plugin-development/forminator-api-docs/#modified-or-deprecated-hooks" target="_blank">',
975
- '</a>',
976
- '99%'
977
- );
978
- $notice .= '<br/><br/>' . esc_html__( 'Any problems or issues? Don\'t hesitate to create a support ticket or contact support directly.', 'forminator' );
979
 
980
- echo "<script type='text/javascript'>
981
- (function ($) {
982
- $(document).ready(function (e) {
983
- $( '.wp-list-table tr[data-plugin=\"" . esc_attr( $plugin_data->plugin ) . "\"] .notice-warning' ).append( '" . addslashes( $notice ) . "' ).css('padding-bottom', '10px');
984
- });
985
- })(jQuery);
986
- </script>";
987
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
988
  }
989
  }
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, 'check_stripe_addon_version' ) );
30
  add_action( 'admin_notices', array( $this, 'show_cf7_importer_notice' ) );
31
  add_action( 'admin_notices', array( $this, 'show_addons_update_notice' ) );
32
  // add_action( 'admin_notices', array( $this, 'show_wpmudev_giveaway' ) );
33
  //add_action( 'admin_notices', array( $this, 'show_prelaunch_subscriptions_notice' ) );
34
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts_for_notices' ) );
35
+ add_action( 'admin_notices', array( $this, 'show_plugin_update_notice' ) );
36
 
37
  // Add plugin action links.
38
  add_filter( 'plugin_action_links_' . FORMINATOR_PLUGIN_BASENAME, array( $this, 'add_plugin_action_links' ) );
55
  * Triggered when Admin is loaded
56
  */
57
  do_action( 'forminator_admin_loaded' );
 
 
58
  }
59
 
60
  public function enqueue_scripts_for_notices() {
445
  echo '</div>';
446
  }
447
 
448
+ /**
449
+ * Displays an admin notice when Forminator version is 1.16.0 or higher and Stripe Addon version is less than 1.0.4
450
+ * Shown in forminator pages. Per user notification.
451
+ */
452
+ public function check_stripe_addon_version() {
453
+ // Show the notice only if Stripe Addon is active and its version is less than 1.0.4.
454
+ if ( ! defined( 'FORMINATOR_STRIPE_ADDON' ) || ! class_exists( 'Forminator_Stripe_Addon' )
455
+ || version_compare( FORMINATOR_STRIPE_ADDON, '1.0.4', '>=' ) ) {
456
+ return;
457
+ }
458
+
459
+ // Show the notice only for administrators.
460
+ if ( ! current_user_can( 'administrator' ) ) {
461
+ return;
462
+ }
463
+
464
+ $message = '<p>';
465
+ /* translators: Forminator vesrion */
466
+ $message .= sprintf( esc_html__( 'We\'ve noticed you have updated to Forminator Pro version %s. Please ensure you also update your Forminator Stripe Subscriptions Add-on to version 1.0.4 or higher to ensure compatibility with the new submissions processes.', 'forminator' ), FORMINATOR_VERSION );
467
+ $message .= '</p>';
468
+
469
+ echo '<div class="forminator-grouped-notice notice notice-error"'
470
+ . ' data-notice-slug="forminator_pro_is_available"'
471
+ . '>';
472
+ echo wp_kses_post( $message );
473
+ echo '</div>';
474
+ }
475
+
476
  /**
477
  * Check if the given notification was dismissed.
478
  *
954
  <?php
955
  }
956
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
957
  /**
958
  * Show plugin update notice
959
  *
962
  *
963
  * @return void
964
  */
965
+ public function show_plugin_update_notice() {
 
966
 
967
+ if ( FORMINATOR_PRO || ! current_user_can( 'administrator' ) ) {
968
  return;
969
  }
970
 
971
+ $page = filter_input( INPUT_GET, 'page' );
972
+ if ( ! $page || false === strpos( $page, 'forminator' ) ) {
973
+ return;
974
+ }
 
 
 
 
 
 
975
 
976
+ $notice_dismissed = get_option( 'forminator_plugin_update_notice_dismissed', false );
977
+ if ( $notice_dismissed ) {
978
+ return;
 
 
 
 
979
  }
980
+ ?>
981
+ <div class="forminator-notice notice notice-info"
982
+ data-prop="forminator_plugin_update_notice_dismissed"
983
+ data-nonce="<?php echo esc_attr( wp_create_nonce( 'forminator_dismiss_notification' ) ); ?>"
984
+ >
985
+ <p style="color: #72777C; line-height: 22px;">
986
+ <strong><?php esc_html_e( 'Upgrade Notice: ', 'forminator' ); ?></strong>
987
+ <?php esc_html_e( 'Forminator is getting a huge performance boost thanks to some form submission improvements.', 'forminator' ); ?>
988
+ </p>
989
+ <p style="color: #72777C; line-height: 22px;">
990
+ <?php printf(
991
+ __( 'There\'s an extremely low chance these changes may affect you if any of your forms use a custom action or filter that we\'ve now removed or modified (forms using standard Forminator features won\'t be affected at all). If needed, refer to this list of the %1$sretired actions/filters%2$s, but we\'re confident that %3$s of users should remain unaffected.', 'forminator' ),
992
+ '<a href="https://wpmudev.com/docs/api-plugin-development/forminator-api-docs/#modified-or-deprecated-hooks" target="_blank">',
993
+ '</a>',
994
+ '99%'
995
+ ); ?>
996
+ </p>
997
+ <p style="color: #72777C; line-height: 22px;">
998
+ <?php printf( __( 'Any problems or issues? Don\'t hesitate to %1$screate a support ticket%2$s.', 'forminator' ),
999
+ '<a href="https://wordpress.org/support/plugin/forminator/#new-topic-0" target="_blank">',
1000
+ '</a>'
1001
+ ); ?>
1002
+ </p>
1003
+ <p>
1004
+ <a href="#" class="dismiss-notice" style="text-decoration: none; color: #555; font-weight: 500;"><?php esc_html_e( 'Dismiss', 'forminator' ); ?></a>
1005
+ </p>
1006
+ </div>
1007
+ <script type="text/javascript">
1008
+ jQuery( '.forminator-notice .dismiss-notice' ).on( 'click', function( e ) {
1009
+ e.preventDefault();
1010
+
1011
+ var $notice = jQuery( e.currentTarget ).closest( '.forminator-notice' );
1012
+ var ajaxUrl = '<?php echo esc_url( forminator_ajax_url() ); ?>';
1013
+
1014
+ jQuery.post(
1015
+ ajaxUrl,
1016
+ {
1017
+ action: 'forminator_dismiss_notification',
1018
+ prop: $notice.data('prop'),
1019
+ _ajax_nonce: $notice.data('nonce')
1020
+ }
1021
+ ).always( function() {
1022
+ $notice.hide();
1023
+ });
1024
+ });
1025
+ </script>
1026
+ <?php
1027
  }
1028
  }
admin/locale.php CHANGED
@@ -178,14 +178,14 @@ $forminator_admin_locale = array(
178
  "Settings" => array( null, __("Settings", "forminator" ), ), // src/form/components/behaviour.js:136
179
  "Email Notifications" => array( null, __("Email Notifications", "forminator" ), ), // src/form/components/behaviour.js:145
180
  "Form does not have fields that can be autofilled." => array( null, __("Form does not have fields that can be autofilled.", "forminator" ), ), // src/form/components/behaviour/autofill.js:77
181
- "Autofill" => array( null, __("Autofill", "forminator" ), ), // src/form/components/behaviour/autofill.js:183
182
- "If the user filling out the form is logged in, we can auto-fill fields with any available data." => array( null, __("If the user filling out the form is logged in, we can auto-fill fields with any available data.", "forminator" ), ), // src/form/components/behaviour/autofill.js:185
183
- "Enable Autofill" => array( null, __("Enable Autofill", "forminator" ), ), // src/form/components/behaviour/autofill.js:195
184
- "Autofill source" => array( null, __("Autofill source", "forminator" ), ), // src/form/components/behaviour/autofill.js:231
185
- "Disable Autofill" => array( null, __("Disable Autofill", "forminator" ), ), // src/form/components/behaviour/autofill.js:236
186
- "Editable" => array( null, __("Editable", "forminator" ), ), // src/form/components/behaviour/autofill.js:255
187
- "No" => array( null, __("No", "forminator" ), ), // src/form/components/behaviour/autofill.js:259
188
- "Yes" => array( null, __("Yes", "forminator" ), ), // src/form/components/behaviour/autofill.js:262
189
  "more condition(s)" => array( null, __("more condition(s)", "forminator" ), ), // src/form/components/behaviour/behavior.js:97
190
  "Process behavior if" => array( null, __("Process behavior if", "forminator" ), ), // src/form/components/behaviour/behavior.js:104
191
  "Open condition settings" => array( null, __("Open condition settings", "forminator" ), ), // src/form/components/behaviour/behavior.js:172
@@ -964,7 +964,7 @@ $forminator_admin_locale = array(
964
  "Data Storage" => array( null, __("Data Storage", "forminator" ), ), // src/form/components/settings.js:61
965
  "By default we will store all submissions in your database." => array( null, __("By default we will store all submissions in your database.", "forminator" ), ), // src/form/components/settings.js:63
966
  "Store Submissions in Database" => array( null, __("Store Submissions in Database", "forminator" ), ), // src/form/components/settings.js:71
967
- "Disable this feature to prevent submissions from being stored in your database. Note that submissions will be retained and automatically deleted according to the retention schedule configured in the Privacy settings below." => array( null, __("Disable this feature to prevent submissions from being stored in your database. Note that submissions will be retained and automatically deleted according to the retention schedule configured in the Privacy settings below.", "forminator" ), ), // src/form/components/settings.js:73
968
  "Multiple Option Value" => array( null, __("Multiple Option Value", "forminator" ), ), // src/form/components/settings.js:84
969
  "Choose how you want to handle multiple option values in form submissions and email notifications." => array( null, __("Choose how you want to handle multiple option values in form submissions and email notifications.", "forminator" ), ), // src/form/components/settings.js:87
970
  "Default Stored Value" => array( null, __("Default Stored Value", "forminator" ), ), // src/form/components/settings.js:96
178
  "Settings" => array( null, __("Settings", "forminator" ), ), // src/form/components/behaviour.js:136
179
  "Email Notifications" => array( null, __("Email Notifications", "forminator" ), ), // src/form/components/behaviour.js:145
180
  "Form does not have fields that can be autofilled." => array( null, __("Form does not have fields that can be autofilled.", "forminator" ), ), // src/form/components/behaviour/autofill.js:77
181
+ "Autofill" => array( null, __("Autofill", "forminator" ), ), // src/form/components/behaviour/autofill.js:186
182
+ "If the user filling out the form is logged in, we can auto-fill fields with any available data." => array( null, __("If the user filling out the form is logged in, we can auto-fill fields with any available data.", "forminator" ), ), // src/form/components/behaviour/autofill.js:188
183
+ "Enable Autofill" => array( null, __("Enable Autofill", "forminator" ), ), // src/form/components/behaviour/autofill.js:198
184
+ "Autofill source" => array( null, __("Autofill source", "forminator" ), ), // src/form/components/behaviour/autofill.js:234
185
+ "Disable Autofill" => array( null, __("Disable Autofill", "forminator" ), ), // src/form/components/behaviour/autofill.js:239
186
+ "Editable" => array( null, __("Editable", "forminator" ), ), // src/form/components/behaviour/autofill.js:258
187
+ "No" => array( null, __("No", "forminator" ), ), // src/form/components/behaviour/autofill.js:262
188
+ "Yes" => array( null, __("Yes", "forminator" ), ), // src/form/components/behaviour/autofill.js:265
189
  "more condition(s)" => array( null, __("more condition(s)", "forminator" ), ), // src/form/components/behaviour/behavior.js:97
190
  "Process behavior if" => array( null, __("Process behavior if", "forminator" ), ), // src/form/components/behaviour/behavior.js:104
191
  "Open condition settings" => array( null, __("Open condition settings", "forminator" ), ), // src/form/components/behaviour/behavior.js:172
964
  "Data Storage" => array( null, __("Data Storage", "forminator" ), ), // src/form/components/settings.js:61
965
  "By default we will store all submissions in your database." => array( null, __("By default we will store all submissions in your database.", "forminator" ), ), // src/form/components/settings.js:63
966
  "Store Submissions in Database" => array( null, __("Store Submissions in Database", "forminator" ), ), // src/form/components/settings.js:71
967
+ "Disable this feature to prevent submissions from being stored in your database. Note that any submissions previously stored in the database will be retained and automatically deleted according to the retention schedule configured in the Privacy settings below." => array( null, __("Disable this feature to prevent submissions from being stored in your database. Note that any submissions previously stored in the database will be retained and automatically deleted according to the retention schedule configured in the Privacy settings below.", "forminator" ), ), // src/form/components/settings.js:73
968
  "Multiple Option Value" => array( null, __("Multiple Option Value", "forminator" ), ), // src/form/components/settings.js:84
969
  "Choose how you want to handle multiple option values in form submissions and email notifications." => array( null, __("Choose how you want to handle multiple option values in form submissions and email notifications.", "forminator" ), ), // src/form/components/settings.js:87
970
  "Default Stored Value" => array( null, __("Default Stored Value", "forminator" ), ), // src/form/components/settings.js:96
admin/views/common/dashboard/widget.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  $_per_page = forminator_form_view_per_page();
3
  $module_type = forminator_get_prefix( $module_slug, 'c' );
4
- $export_dialog = 'export_' . $module_type;
5
  $preview_dialog = 'preview_' . forminator_get_prefix( $module_slug, 'c', false, true );
6
  $create_dialog = forminator_get_prefix( $module_slug, 'custom_', false, true );
7
  $dashboard_settings = forminator_get_dashboard_settings( forminator_get_prefix( $module_slug, '', false, true ), array() );
1
  <?php
2
  $_per_page = forminator_form_view_per_page();
3
  $module_type = forminator_get_prefix( $module_slug, 'c' );
4
+ $export_dialog = 'export_' . $module_slug;
5
  $preview_dialog = 'preview_' . forminator_get_prefix( $module_slug, 'c', false, true );
6
  $create_dialog = forminator_get_prefix( $module_slug, 'custom_', false, true );
7
  $dashboard_settings = forminator_get_dashboard_settings( forminator_get_prefix( $module_slug, '', false, true ), array() );
admin/views/common/entries/filter.php CHANGED
@@ -183,18 +183,13 @@ $is_registration = ! empty( $args['is_registration'] );
183
 
184
  <fieldset class="forminator-entries-fields-filter" <?php echo ( $this->fields_is_filtered ? '' : 'disabled=disabled' ); ?>>
185
  <?php
186
- $ignored_field_types = Forminator_Form_Entry_Model::ignored_fields();
187
- $fields = apply_filters( 'forminator_custom_form_filter_fields', $args['fields'] );
188
 
189
  foreach ( $fields as $field ) {
190
 
191
  $label = $field->__get( 'field_label' );
192
  $field_type = $field->__get( 'type' );
193
 
194
- if ( in_array( $field_type, $ignored_field_types, true ) ) {
195
- continue;
196
- }
197
-
198
  if ( ! $label ) {
199
  $label = $field->title;
200
  }
183
 
184
  <fieldset class="forminator-entries-fields-filter" <?php echo ( $this->fields_is_filtered ? '' : 'disabled=disabled' ); ?>>
185
  <?php
186
+ $fields = apply_filters( 'forminator_custom_form_filter_fields', $args['fields'] );
 
187
 
188
  foreach ( $fields as $field ) {
189
 
190
  $label = $field->__get( 'field_label' );
191
  $field_type = $field->__get( 'type' );
192
 
 
 
 
 
193
  if ( ! $label ) {
194
  $label = $field->title;
195
  }
admin/views/common/list/empty_content.php CHANGED
@@ -5,7 +5,6 @@ if ( isset( static::$module_slug ) ) {
5
  $module_slug = Forminator_Admin_Module_Edit_Page::get_slug_ajax();
6
  }
7
 
8
- $import_dialog = 'import_' . forminator_get_prefix( $module_slug, 'c' );
9
  // Empty message.
10
  $image_empty = forminator_plugin_url() . 'assets/images/forminator-empty-message.png';
11
  $image_empty2x = forminator_plugin_url() . 'assets/images/forminator-empty-message@2x.png';
@@ -49,9 +48,9 @@ $search_empty2x = forminator_plugin_url() . 'assets/images/forminator-no-result@
49
 
50
  <a href="#"
51
  class="sui-button wpmudev-open-modal"
52
- data-modal="<?php echo esc_attr( $import_dialog ); ?>"
53
  data-modal-title=""
54
- data-nonce="<?php echo esc_attr( wp_create_nonce( 'forminator_popup_' . $import_dialog ) ); ?>">
55
  <i class="sui-icon-upload-cloud" aria-hidden="true"></i> <?php esc_html_e( 'Import', 'forminator' ); ?>
56
  </a>
57
  </p>
5
  $module_slug = Forminator_Admin_Module_Edit_Page::get_slug_ajax();
6
  }
7
 
 
8
  // Empty message.
9
  $image_empty = forminator_plugin_url() . 'assets/images/forminator-empty-message.png';
10
  $image_empty2x = forminator_plugin_url() . 'assets/images/forminator-empty-message@2x.png';
48
 
49
  <a href="#"
50
  class="sui-button wpmudev-open-modal"
51
+ data-modal="<?php echo esc_attr( 'import_' . $module_slug ); ?>"
52
  data-modal-title=""
53
+ data-nonce="<?php echo esc_attr( wp_create_nonce( 'forminator_popup_import_' . $module_slug ) ); ?>">
54
  <i class="sui-icon-upload-cloud" aria-hidden="true"></i> <?php esc_html_e( 'Import', 'forminator' ); ?>
55
  </a>
56
  </p>
admin/views/common/list/summary.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  $preview_dialog = 'preview_' . forminator_get_prefix( static::$module_slug, 'c', false, true );
3
- $export_dialog = 'export_' . forminator_get_prefix( static::$module_slug, 'c' );
4
  $post_type = 'forminator_' . forminator_get_prefix( static::$module_slug, '', false, true );
5
  $soon = 'quiz' === static::$module_slug;
6
 
1
  <?php
2
  $preview_dialog = 'preview_' . forminator_get_prefix( static::$module_slug, 'c', false, true );
3
+ $export_dialog = 'export_' . static::$module_slug;
4
  $post_type = 'forminator_' . forminator_get_prefix( static::$module_slug, '', false, true );
5
  $soon = 'quiz' === static::$module_slug;
6
 
admin/views/custom-form/entries/content.php CHANGED
@@ -76,7 +76,7 @@ if ( $this->total_entries() > 0 ) :
76
  $this->template(
77
  'common/entries/filter',
78
  array(
79
- 'fields' => $this->get_fields(),
80
  'is_registration' => $is_registration,
81
  )
82
  );
76
  $this->template(
77
  'common/entries/filter',
78
  array(
79
+ 'fields' => $this->model->get_real_fields(),
80
  'is_registration' => $is_registration,
81
  )
82
  );
admin/views/custom-form/list/header.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  $title = __( 'Forms', 'forminator' );
3
  $create_dialog = 'custom_forms';
4
- $import_dialog = 'import_cform';
5
  $hash = '#forms';
6
 
7
  require_once forminator_plugin_dir() . 'admin/views/common/list/header.php';
1
  <?php
2
  $title = __( 'Forms', 'forminator' );
3
  $create_dialog = 'custom_forms';
4
+ $import_dialog = 'import_form';
5
  $hash = '#forms';
6
 
7
  require_once forminator_plugin_dir() . 'admin/views/common/list/header.php';
admin/views/custom-form/popup/import-cf7.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  $is_addons = false;
3
- $nonce = wp_create_nonce( 'forminator_save_import_custom_form_cf7' );
4
  $forms = forminator_list_thirdparty_contact_forms( 'cf7' );
5
 
6
  // Empty message.
@@ -12,7 +12,7 @@ $image_empty2x = forminator_plugin_url() . 'assets/images/forminator-summary@2x.
12
 
13
  <form class="forminator-cf7-import-form" method="post">
14
 
15
- <input type="hidden" name="action" value="forminator_save_import_custom_form_cf7_popup" />
16
  <input type="hidden" name="_ajax_nonce" value="<?php echo esc_attr( $nonce ); ?>" />
17
 
18
  <div class="sui-box-body wpmudev-popup-form">
1
  <?php
2
  $is_addons = false;
3
+ $nonce = wp_create_nonce( 'forminator_save_import_form_cf7' );
4
  $forms = forminator_list_thirdparty_contact_forms( 'cf7' );
5
 
6
  // Empty message.
12
 
13
  <form class="forminator-cf7-import-form" method="post">
14
 
15
+ <input type="hidden" name="action" value="forminator_save_import_form_cf7_popup" />
16
  <input type="hidden" name="_ajax_nonce" value="<?php echo esc_attr( $nonce ); ?>" />
17
 
18
  <div class="sui-box-body wpmudev-popup-form">
admin/views/custom-form/popup/import-gravityforms.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- $nonce = wp_create_nonce( 'forminator_save_import_custom_form_gravity' );
3
  $forms = forminator_list_thirdparty_contact_forms( 'gravityforms' );
4
  ?>
5
 
1
  <?php
2
+ $nonce = wp_create_nonce( 'forminator_save_import_form_gravity' );
3
  $forms = forminator_list_thirdparty_contact_forms( 'gravityforms' );
4
  ?>
5
 
admin/views/custom-form/popup/import-ninjaforms.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- $nonce = wp_create_nonce( 'forminator_save_import_custom_form_ninja' );
3
  $forms = forminator_list_thirdparty_contact_forms( 'ninjaforms' );
4
  ?>
5
 
1
  <?php
2
+ $nonce = wp_create_nonce( 'forminator_save_import_form_ninja' );
3
  $forms = forminator_list_thirdparty_contact_forms( 'ninjaforms' );
4
  ?>
5
 
admin/views/custom-form/wizard/header.php CHANGED
@@ -1 +1 @@
1
- <?php // empty file
1
+ <?php // empty file
admin/views/poll/wizard/header.php CHANGED
@@ -1 +1 @@
1
- <?php
1
+ <?php // empty file
admin/views/quiz/knowledge/header.php CHANGED
@@ -1 +1 @@
1
- <?php
1
+ <?php // empty file
admin/views/quiz/list/content.php CHANGED
@@ -19,7 +19,7 @@ $entry_type = 'quizzes';
19
  $most_entry = Forminator_Form_Entry_Model::get_most_entry( $entry_type );
20
  $wizard_page = null;
21
  if ( $most_entry ) {
22
- $most_entry_model = Forminator_Quiz_Model::model()->load( $most_entry->form_id );
23
  $wizard_page = 'forminator-' . ( 'nowrong' === $most_entry_model->quiz_type ? $most_entry_model->quiz_type : 'knowledge' ) . '-wizard';
24
  }
25
  $empty_title = esc_html__( 'Create fun or challenging quizzes for your visitors to take and share on social media.', 'forminator' );
19
  $most_entry = Forminator_Form_Entry_Model::get_most_entry( $entry_type );
20
  $wizard_page = null;
21
  if ( $most_entry ) {
22
+ $most_entry_model = Forminator_Base_Form_Model::get_model( $most_entry->form_id );
23
  $wizard_page = 'forminator-' . ( 'nowrong' === $most_entry_model->quiz_type ? $most_entry_model->quiz_type : 'knowledge' ) . '-wizard';
24
  }
25
  $empty_title = esc_html__( 'Create fun or challenging quizzes for your visitors to take and share on social media.', 'forminator' );
admin/views/quiz/nowrong/header.php CHANGED
@@ -1 +1 @@
1
- <?php
1
+ <?php // empty file
admin/views/settings/tab-import.php CHANGED
@@ -33,9 +33,9 @@
33
  <button
34
  role="button"
35
  class="sui-button wpmudev-open-modal"
36
- data-modal="import_cform_cf7"
37
  data-modal-title=""
38
- data-nonce="<?php echo esc_attr( wp_create_nonce( 'forminator_popup_import_cform_cf7' ) ); ?>"
39
  >
40
  <i class="sui-icon-upload-cloud" aria-hidden="true"></i> <?php esc_html_e( 'Import', 'forminator' ); ?>
41
  </button>
@@ -78,9 +78,9 @@
78
  <button
79
  role="button"
80
  class="sui-button wpmudev-open-modal"
81
- data-modal="import_cform_ninja"
82
  data-modal-title=""
83
- data-nonce="<?php echo esc_attr( wp_create_nonce( 'forminator_popup_import_cform_ninjaforms' ) ); ?>"
84
  >
85
  <i class="sui-icon-upload-cloud" aria-hidden="true"></i> <?php esc_html_e( 'Import Ninja Forms', 'forminator' ); ?>
86
  </button>
@@ -100,9 +100,9 @@
100
  <button
101
  role="button"
102
  class="sui-button wpmudev-open-modal"
103
- data-modal="import_cform_gravity"
104
  data-modal-title=""
105
- data-nonce="<?php echo esc_attr( wp_create_nonce( 'forminator_popup_import_cform_gravityforms' ) ); ?>"
106
  >
107
  <i class="sui-icon-upload-cloud" aria-hidden="true"></i> <?php esc_html_e( 'Import Gravity Forms', 'forminator' ); ?>
108
  </button>
33
  <button
34
  role="button"
35
  class="sui-button wpmudev-open-modal"
36
+ data-modal="import_form_cf7"
37
  data-modal-title=""
38
+ data-nonce="<?php echo esc_attr( wp_create_nonce( 'forminator_popup_import_form_cf7' ) ); ?>"
39
  >
40
  <i class="sui-icon-upload-cloud" aria-hidden="true"></i> <?php esc_html_e( 'Import', 'forminator' ); ?>
41
  </button>
78
  <button
79
  role="button"
80
  class="sui-button wpmudev-open-modal"
81
+ data-modal="import_form_ninja"
82
  data-modal-title=""
83
+ data-nonce="<?php echo esc_attr( wp_create_nonce( 'forminator_popup_import_form_ninjaforms' ) ); ?>"
84
  >
85
  <i class="sui-icon-upload-cloud" aria-hidden="true"></i> <?php esc_html_e( 'Import Ninja Forms', 'forminator' ); ?>
86
  </button>
100
  <button
101
  role="button"
102
  class="sui-button wpmudev-open-modal"
103
+ data-modal="import_form_gravity"
104
  data-modal-title=""
105
+ data-nonce="<?php echo esc_attr( wp_create_nonce( 'forminator_popup_import_form_gravityforms' ) ); ?>"
106
  >
107
  <i class="sui-icon-upload-cloud" aria-hidden="true"></i> <?php esc_html_e( 'Import Gravity Forms', 'forminator' ); ?>
108
  </button>
assets/js/form-scripts.js CHANGED
@@ -22,4 +22,4 @@ var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,l=Object.pr
22
  * @author Feross Aboukhadijeh <https://feross.org>
23
  * @license MIT
24
  */
25
- e.exports=function(e){return null!=e&&(a(e)||r(e)||!!e._isBuffer)}},function(e,t,a){"use strict";function r(e){this.defaults=e,this.interceptors={request:new l,response:new l}}var n=a(42),o=a(10),l=a(161),i=a(162);r.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),e=o.merge(n,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[i,void 0],a=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)a=a.then(t.shift(),t.shift());return a},o.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,a){return this.request(o.merge(a||{},{method:e,url:t}))}}),o.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,a,r){return this.request(o.merge(r||{},{method:e,url:t,data:a}))}}),e.exports=r},function(e,t,a){"use strict";var r=a(10);e.exports=function(e,t){r.forEach(e,function(a,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=a,delete e[r])})}},function(e,t,a){"use strict";var r=a(74);e.exports=function(e,t,a){var n=a.config.validateStatus;a.status&&n&&!n(a.status)?t(r("Request failed with status code "+a.status,a.config,null,a.request,a)):e(a)}},function(e,t,a){"use strict";e.exports=function(e,t,a,r,n){return e.config=t,a&&(e.code=a),e.request=r,e.response=n,e}},function(e,t,a){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var n=a(10);e.exports=function(e,t,a){if(!t)return e;var o;if(a)o=a(t);else if(n.isURLSearchParams(t))o=t.toString();else{var l=[];n.forEach(t,function(e,t){null!==e&&void 0!==e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),l.push(r(t)+"="+r(e))}))}),o=l.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},function(e,t,a){"use strict";var r=a(10),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,a,o,l={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),a=r.trim(e.substr(o+1)),t){if(l[t]&&n.indexOf(t)>=0)return;l[t]="set-cookie"===t?(l[t]?l[t]:[]).concat([a]):l[t]?l[t]+", "+a:a}}),l):l}},function(e,t,a){"use strict";var r=a(10);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return a&&(n.setAttribute("href",t),t=n.href),n.setAttribute("href",t),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}var t,a=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");return t=e(window.location.href),function(a){var n=r.isString(a)?e(a):a;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},function(e,t,a){"use strict";function r(){this.message="String contains an invalid character"}function n(e){for(var t,a,n=String(e),l="",i=0,s=o;n.charAt(0|i)||(s="=",i%1);l+=s.charAt(63&t>>8-i%1*8)){if((a=n.charCodeAt(i+=.75))>255)throw new r;t=t<<8|a}return l}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=n},function(e,t,a){"use strict";var r=a(10);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,a,n,o,l){var i=[];i.push(e+"="+encodeURIComponent(t)),r.isNumber(a)&&i.push("expires="+new Date(a).toGMTString()),r.isString(n)&&i.push("path="+n),r.isString(o)&&i.push("domain="+o),!0===l&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,a){"use strict";function r(){this.handlers=[]}var n=a(10);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(10),o=a(163),l=a(75),i=a(42),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=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||i.adapter)(e).then(function(t){return r(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return l(t)||(r(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,a){"use strict";var r=a(10);e.exports=function(e,t,a){return r.forEach(a,function(a){e=a(e,t)}),e}},function(e,t,a){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,a){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,a){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var a=this;e(function(e){a.reason||(a.reason=new n(e),t(a.reason))})}var n=a(76);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},function(e,t,a){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,a){"use strict";var r=a(77),n=a(78),o={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Date.prototype.toISOString,i={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},s=function e(t,a,n,o,l,s,u,c,p,f,d,m){var h=t;if("function"==typeof u)h=u(a,h);else if(h instanceof Date)h=f(h);else if(null===h){if(o)return s&&!m?s(a,i.encoder):a;h=""}if("string"==typeof h||"number"==typeof h||"boolean"==typeof h||r.isBuffer(h)){if(s){return[d(m?a:s(a,i.encoder))+"="+d(s(h,i.encoder))]}return[d(a)+"="+d(String(h))]}var b=[];if(void 0===h)return b;var y;if(Array.isArray(u))y=u;else{var v=Object.keys(h);y=c?v.sort(c):v}for(var g=0;g<y.length;++g){var E=y[g];l&&null===h[E]||(b=Array.isArray(h)?b.concat(e(h[E],n(a,E),n,o,l,s,u,c,p,f,d,m)):b.concat(e(h[E],a+(p?"."+E:"["+E+"]"),n,o,l,s,u,c,p,f,d,m)))}return b};e.exports=function(e,t){var a=e,l=t?r.assign({},t):{};if(null!==l.encoder&&void 0!==l.encoder&&"function"!=typeof l.encoder)throw new TypeError("Encoder has to be a function.");var u=void 0===l.delimiter?i.delimiter:l.delimiter,c="boolean"==typeof l.strictNullHandling?l.strictNullHandling:i.strictNullHandling,p="boolean"==typeof l.skipNulls?l.skipNulls:i.skipNulls,f="boolean"==typeof l.encode?l.encode:i.encode,d="function"==typeof l.encoder?l.encoder:i.encoder,m="function"==typeof l.sort?l.sort:null,h=void 0!==l.allowDots&&l.allowDots,b="function"==typeof l.serializeDate?l.serializeDate:i.serializeDate,y="boolean"==typeof l.encodeValuesOnly?l.encodeValuesOnly:i.encodeValuesOnly;if(void 0===l.format)l.format=n.default;else if(!Object.prototype.hasOwnProperty.call(n.formatters,l.format))throw new TypeError("Unknown format option provided.");var v,g,E=n.formatters[l.format];"function"==typeof l.filter?(g=l.filter,a=g("",a)):Array.isArray(l.filter)&&(g=l.filter,v=g);var _=[];if("object"!=typeof a||null===a)return"";var w;w=l.arrayFormat in o?l.arrayFormat:"indices"in l?l.indices?"indices":"repeat":"indices";var O=o[w];v||(v=Object.keys(a)),m&&v.sort(m);for(var P=0;P<v.length;++P){var j=v[P];p&&null===a[j]||(_=_.concat(s(a[j],j,O,c,p,f?d:null,g,m,h,b,E,y)))}var k=_.join(u),x=!0===l.addQueryPrefix?"?":"";return k.length>0?x+k:""}},function(e,t,a){"use strict";var r=a(77),n=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},l=function(e,t){for(var a={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,i=r.split(t.delimiter,l),s=0;s<i.length;++s){var u,c,p=i[s],f=p.indexOf("]="),d=-1===f?p.indexOf("="):f+1;-1===d?(u=t.decoder(p,o.decoder),c=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,d),o.decoder),c=t.decoder(p.slice(d+1),o.decoder)),n.call(a,u)?a[u]=[].concat(a[u]).concat(c):a[u]=c}return a},i=function(e,t,a){for(var r=t,n=e.length-1;n>=0;--n){var o,l=e[n];if("[]"===l)o=[],o=o.concat(r);else{o=a.plainObjects?Object.create(null):{};var i="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,s=parseInt(i,10);!isNaN(s)&&l!==i&&String(s)===i&&s>=0&&a.parseArrays&&s<=a.arrayLimit?(o=[],o[s]=r):o[i]=r}r=o}return r},s=function(e,t,a){if(e){var r=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=o.exec(r),u=s?r.slice(0,s.index):r,c=[];if(u){if(!a.plainObjects&&n.call(Object.prototype,u)&&!a.allowPrototypes)return;c.push(u)}for(var p=0;null!==(s=l.exec(r))&&p<a.depth;){if(p+=1,!a.plainObjects&&n.call(Object.prototype,s[1].slice(1,-1))&&!a.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+r.slice(s.index)+"]"),i(c,t,a)}};e.exports=function(e,t){var a=t?r.assign({},t):{};if(null!==a.decoder&&void 0!==a.decoder&&"function"!=typeof a.decoder)throw new TypeError("Decoder has to be a function.");if(a.ignoreQueryPrefix=!0===a.ignoreQueryPrefix,a.delimiter="string"==typeof a.delimiter||r.isRegExp(a.delimiter)?a.delimiter:o.delimiter,a.depth="number"==typeof a.depth?a.depth:o.depth,a.arrayLimit="number"==typeof a.arrayLimit?a.arrayLimit:o.arrayLimit,a.parseArrays=!1!==a.parseArrays,a.decoder="function"==typeof a.decoder?a.decoder:o.decoder,a.allowDots="boolean"==typeof a.allowDots?a.allowDots:o.allowDots,a.plainObjects="boolean"==typeof a.plainObjects?a.plainObjects:o.plainObjects,a.allowPrototypes="boolean"==typeof a.allowPrototypes?a.allowPrototypes:o.allowPrototypes,a.parameterLimit="number"==typeof a.parameterLimit?a.parameterLimit:o.parameterLimit,a.strictNullHandling="boolean"==typeof a.strictNullHandling?a.strictNullHandling:o.strictNullHandling,""===e||null===e||void 0===e)return a.plainObjects?Object.create(null):{};for(var n="string"==typeof e?l(e,a):e,i=a.plainObjects?Object.create(null):{},u=Object.keys(n),c=0;c<u.length;++c){var p=u[c],f=s(p,n[p],a);i=r.merge(i,f,a)}return r.compact(i)}},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.radioClass)?"sui-radio":"sui-radio "+this.props.radioClass,a=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],r=s.default.Children.map(this.props.children,function(r){var n="",o=_.isUndefined(r.props.label)?r.props.children:r.props.label;return r.props.image1x&&r.props.image2x&&(n=s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image1x,srcSet:forminatorData.imagesUrl+"/"+r.props.image1x+" 1x,\n\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/"+r.props.image2x+" 2x","aria-hidden":"true"})),r.props.image1x&&!r.props.image2x&&(n=s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image1x,"aria-hidden":"true"})),r.props.image2x&&!r.props.image1x&&(n=s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image2x,srcSet:forminatorData.imagesUrl+"/"+r.props.image2x+" 2x","aria-hidden":"true"})),r.props.hasImage?s.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:"sui-radio-image"},n,s.default.createElement("span",{className:t},s.default.createElement("input",{type:"radio",name:"forminator-"+e.props.property,value:r.props.value,id:"forminator-field-"+r.props.value,checked:a===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,o))):r.props.hasImage?void 0:s.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:t},s.default.createElement("input",{type:"radio",name:"forminator-"+e.props.property,id:"forminator-field-"+r.props.value,value:r.props.value,checked:a===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,o))}),n=s.default.Children.map(this.props.children,function(t){return"true"!==e.props.radioContent||_.isUndefined(t.props.children)?s.default.createElement(s.default.Fragment,null):s.default.createElement("div",{className:"sui-border-frame"+(t.props.value===a?"":" sui-hidden"),style:{marginLeft:"0"}},t.props.value===a&&t)}),o="";this.props.label&&""!==this.props.label&&(o=s.default.createElement("label",{className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note)));var l="";this.props.description&&""!==this.props.description&&(l=s.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.description));var i="";this.props.settingsLabel&&""!==this.props.settingsLabel&&(i=s.default.createElement("label",{className:"sui-settings-label"},this.props.settingsLabel));var u="";return this.props.settingsDesc&&""!==this.props.settingsDesc&&(u=s.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc)),this.props.noWrapper?r:s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{role:"radiogroup",className:"sui-form-field"},o,i,l,u,r,n))}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.insertSelector=a.insertSelector.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){this.editor=ace.edit("forminator-field-"+this.props.property),this.session=this.editor.getSession(),this.session.setUseWorker(!1),this.editor.setShowPrintMargin(!1),this.session.setMode("ace/mode/css"),this.editor.setTheme("ace/theme/sui"),this.editor.renderer.setShowGutter(!0),this.editor.setHighlightActiveLine(!0),this.editor.focus(),this.editor.on("change",this.updateValue)}},{key:"componentWillUnmount",value:function(){this.editor.destroy(),this.editor=null}},{key:"insertSelector",value:function(e){var t=e+"{}";this.editor.navigateFileEnd(),this.editor.insert(t),this.editor.navigateLeft(1),this.editor.focus()}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"updateValue",value:function(){this.props.actions.settingsActions.updateSetting(this.props.property,this.editor.getValue())}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],a=_.isUndefined(this.props.type)?"form":this.props.type,r=s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Basic selectors")),s.default.createElement("div",{className:"sui-ace-selectors"},s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,u.translate)("Form")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-title ")}},(0,u.translate)("Section Title")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-subtitle ")}},(0,u.translate)("Section Subtitle")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-label ")}},(0,u.translate)("Field Label")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-description ")}},(0,u.translate)("Field Description")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-input ")}},(0,u.translate)("Input")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-textarea ")}},(0,u.translate)("Textarea")))),n=s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Basic selectors")),s.default.createElement("div",{className:"sui-ace-selectors"},s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,u.translate)("Poll")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-poll--question ")}},(0,u.translate)("Question")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-radio .forminator-radio-bullet ")}},(0,u.translate)("Answer Input")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-radio .forminator-radio-label ")}},(0,u.translate)("Answer Label")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-button ")}},(0,u.translate)("Submit Button")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-poll-footer a.forminator-link, .forminator-poll-footer a.forminator-link:visited ")}},(0,u.translate)("View Results Link")))),o=s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Basic selectors")),s.default.createElement("div",{className:"sui-ace-selectors"},s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,u.translate)("Quiz")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--title ")}},(0,u.translate)("Title")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--description p ")}},(0,u.translate)("Description")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-question .forminator-legend ")}},(0,u.translate)("Question")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer .forminator-answer--design ")}},(0,u.translate)("Answer Container")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer .forminator-answer--name ")}},(0,u.translate)("Answer Text"))));return s.default.createElement(s.default.Fragment,null,"form"===a&&r,"poll"===a&&n,"quiz"===a&&o,s.default.createElement("div",{id:"forminator-field-"+this.props.property,"data-value":t,style:{height:"210px"}},t))}}]),t}(i.Component);t.default=c},,function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(174),f=r(p),d=a(404),m=r(d),h=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.closeModal.bind(a),a}return l(t,e),s(t,[{key:"render",value:function(){var e=c.default.Children.map(this.props.children,function(e){return e}),t=_.isUndefined(this.props.alignment)||""===this.props.alignment?"":this.props.alignment,a=!_.isUndefined(this.props.flatten)&&!0===this.props.flatten,r=!(!_.isUndefined(this.props.canClose)&&!1===this.props.canClose),n=_.isUndefined(this.props.closeType)||""===this.props.closeType?"":this.props.closeType,o=_.isUndefined(this.props.closeColor)||""===this.props.closeColor?"default":this.props.closeColor,l=!_.isUndefined(this.props.imageName)&&""!==this.props.imageName,s=!_.isUndefined(this.props.imageLogo)&&!0===this.props.imageLogo,u=_.isUndefined(this.props.imageAlt)||!0!==this.props.imageAlt?"":this.props.imageAlt,p=!_.isUndefined(this.props.customClass)&&""!==this.props.customClass,d="sui-box-header";""!==t&&(d+=" sui-content-"+t),!0===a&&(d+=" sui-flatten"),!0===l&&(d+=" sui-spacing-top--60"),!0===p&&(d+=" "+this.props.customClass);var h=c.default.createElement("div",{className:d},!0===r&&c.default.createElement(f.default,i({type:n,float:"right",color:o},r&&{closeModal:this.closeModal})),!0===l&&c.default.createElement(m.default,{logo:s,filename:this.props.imageName,alt:u}),e);return"center"!==t&&(h=c.default.createElement(c.default.Fragment,null,!0===r&&c.default.createElement(f.default,i({sronly:!0},r&&{closeModal:this.closeModal})),c.default.createElement("div",{className:d},!0===l&&c.default.createElement(m.default,{logo:s,filename:this.props.imageName,alt:u}),e,c.default.createElement("div",{className:"sui-actions-right"},!0===r&&c.default.createElement(f.default,{type:n,color:o,closeModal:this.closeModal}))))),h}}]),t}(u.Component);t.default=h},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.closeModal.bind(a),a}return o(t,e),l(t,[{key:"render",value:function(){var e=_.isUndefined(this.props.label)||""===this.props.label?(0,u.translate)("Close this dialog"):this.props.label,t=_.isUndefined(this.props.color)||""===this.props.color?"":this.props.color,a=!_.isUndefined(this.props.type)&&"icon"===this.props.type,r=!_.isUndefined(this.props.sronly)&&!0===this.props.sronly,n=!_.isUndefined(this.props.icon)&&""!==this.props.icon,o=!_.isUndefined(this.props.float)&&"left"===this.props.float,l=!_.isUndefined(this.props.float)&&"right"===this.props.float,i=!_.isUndefined(this.props.customClass)&&""!==this.props.customClass,c="sui-button";return!0===r?c="sui-screen-reader-text":!1===r&&!0===a&&(c="sui-button-icon"),!1===r&&""!==t&&(c+=" sui-button-"+t),!1!==r||!0!==o&&!0!==l||(c+=" sui-button-float--"+this.props.float),!0===i&&(c+=" "+this.props.customClass),c+=" modal-close-button",s.default.createElement("button",{className:c,onClick:this.closeModal},!0===a&&s.default.createElement("i",{className:"sui-icon-close sui-md","aria-hidden":"true"}),!0===n&&s.default.createElement("i",{className:"sui-icon-"+this.props.icon,"aria-hidden":"true"}),!0===a?s.default.createElement("span",{className:"sui-screen-reader-text"},e):e)}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=this.props.id?"modal-"+this.props.id+"--title":"unique-id-required",t=this.props.label?this.props.label:"A title is required for your modals",a=_.isUndefined(this.props.tag)||""===this.props.tag?"":this.props.tag,r=_.isUndefined(this.props.tagColor)||""===this.props.tagColor?"":" sui-tag-"+this.props.titleTagColor,n="sui-box-title";return"lg"===this.props.size&&(n+=" sui-lg"),_.isUndefined(this.props.customClass)||""===this.props.customClass||(n+=" "+this.props.customClass),s.default.createElement("h3",{id:e,className:n},t,""!==a&&s.default.createElement("span",{className:"sui-tag"+r,style:{marginTop:"-2px",marginLeft:"10px"}},a))}}]),t}(i.Component);t.default=u},,,,function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(32),f=r(p),d=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r={form:{shortcode:"forminator_form",type:"custom_form",processAction:forminatorData.adminUrl+"admin.php?page=forminator-cform",processNonce:forminatorData.formProcessNonce,exportNonce:forminatorData.formExportNonce,submissions:forminatorData.adminUrl+"admin.php?page=forminator-entries&form_type=forminator_forms&form_id="+a.props.id,dropdownLabel:(0,c.translate)("Open form options")},poll:{shortcode:"forminator_poll",type:"poll",processAction:forminatorData.adminUrl+"admin.php?page=forminator-poll",processNonce:forminatorData.pollProcessNonce,exportNonce:forminatorData.pollExportNonce,submissions:forminatorData.adminUrl+"admin.php?page=forminator-entries&form_type=forminator_polls&form_id="+a.props.id,dropdownLabel:(0,c.translate)("Open poll options")},quiz:{shortcode:"forminator_quiz",type:"quiz",processAction:forminatorData.adminUrl+"admin.php?page=forminator-quiz",processNonce:forminatorData.quizProcessNonce,exportNonce:forminatorData.quizExportNonce,submissions:forminatorData.adminUrl+"admin.php?page=forminator-entries&form_type=forminator_quizzes&form_id="+a.props.id,dropdownLabel:(0,c.translate)("Open quiz options")}};return a.copyToClipboard=a.copyToClipboard.bind(a),a.resetTrackingData=a.resetTrackingData.bind(a),a.data=r[a.props.type],a}return l(t,e),i(t,[{key:"copyToClipboard",value:function(){this.input.select(),document.execCommand("copy"),new f.default({type:"success",text:(0,c.translate)("Shortcode has been copied successfully."),time:4e3}).open()}},{key:"resetTrackingData",value:function(){var e={action:"forminator_reset_tracking_data",_ajax_nonce:forminatorData.resetTrackingDataNonce,id:this.props.id};this.ajax=jQuery.post({url:forminatorData.ajaxUrl,type:"post",data:e}).done(function(e){if(e){var t=e.success?"success":"error",a=e.data||(0,c.translate)("Something went wrong.");new f.default({type:t,text:a,time:4e3}).open()}})}},{key:"render",value:function(){var e=this,t=this.data.processAction+"&export=true&module_id="+this.props.id+"&exportnonce="+this.data.exportNonce+"&module_type="+this.data.type,a=this.data.processAction+"&delete=true&module_id="+this.props.id+"&nonce="+this.data.processNonce+"&module_type="+this.data.type,r=(0,c.translate)("Create New Form");return"poll"===this.props.type&&(r=(0,c.translate)("Create New Poll")),"quiz"===this.props.type&&(r=(0,c.translate)("Create New Quiz")),u.default.createElement(u.default.Fragment,null,u.default.createElement("input",{type:"text",defaultValue:"["+this.data.shortcode+' id="'+this.props.id+'"]',id:"forminator-form-shortcode",style:{position:"absolute",top:"-1500px"},"aria-hidden":"true",ref:function(t){return e.input=t}}),u.default.createElement("div",{className:this.props.hasLead?"sui-dropdown fui-dropdown-soon":"sui-dropdown"},u.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor","aria-label":"Dropdown"},u.default.createElement("span",{className:"sui-icon-widget-settings-config sui-md","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},this.data.dropdownLabel)),u.default.createElement("ul",null,u.default.createElement("li",null,u.default.createElement("button",{className:"forminator-field-edit",onClick:this.copyToClipboard},u.default.createElement("span",{className:"sui-icon-code","aria-hidden":"true"}),(0,c.translate)("Copy Shortcode"))),u.default.createElement("li",null,u.default.createElement("a",{className:"forminator-field-edit",href:this.data.submissions},u.default.createElement("span",{className:"sui-icon-community-people","aria-hidden":"true"}),(0,c.translate)("View Submissions"))),u.default.createElement("li",null,u.default.createElement("form",{method:"post",action:this.data.processAction},u.default.createElement("input",{type:"hidden",name:"forminator_action",value:"clone"}),u.default.createElement("input",{type:"hidden",name:"id",value:this.props.id}),u.default.createElement("input",{type:"hidden",id:"forminatorNonce",name:"forminatorNonce",value:forminatorData.cloneNonce}),u.default.createElement("input",{type:"hidden",name:"forminatorRedirect",value:"false"}),this.props.hasLead&&u.default.createElement("button",{type:"submit",disabled:"disabled",className:"fui-button-with-tag sui-tooltip sui-tooltip-left sui-constrained","data-tooltip":(0,c.translate)("Duplicate isn't supported at the moment for the quizzes with lead capturing enabled.")},u.default.createElement("span",{className:"sui-icon-page-multiple","aria-hidden":"true"}),u.default.createElement("span",{className:"fui-button-label"},(0,c.translate)("Duplicate")),u.default.createElement("span",{className:"sui-tag sui-tag-blue sui-tag-sm"},(0,c.translate)("Coming soon"))),!this.props.hasLead&&u.default.createElement("button",{type:"submit"},u.default.createElement("span",{className:"sui-icon-page-multiple","aria-hidden":"true"}),(0,c.translate)("Duplicate")))),u.default.createElement("li",null,u.default.createElement("a",{className:"forminator-field-edit",onClick:this.resetTrackingData},u.default.createElement("span",{className:"sui-icon-update","aria-hidden":"true"}),(0,c.translate)("Reset Tracking Data"))),u.default.createElement("li",null,this.props.hasLead&&u.default.createElement("a",{href:"#",className:"fui-button-with-tag sui-tooltip sui-tooltip-left","data-tooltip":(0,c.translate)("Export isn't supported at the moment for the quizzes with lead capturing enabled.")},u.default.createElement("span",{className:"sui-icon-cloud-migration","aria-hidden":"true"}),u.default.createElement("span",{className:"fui-button-label"},(0,c.translate)("Export")),u.default.createElement("span",{className:"sui-tag sui-tag-blue sui-tag-sm"},(0,c.translate)("Coming soon"))),!this.props.hasLead&&u.default.createElement("a",{className:"forminator-field-edit",href:t},u.default.createElement("span",{className:"sui-icon-cloud-migration","aria-hidden":"true"}),(0,c.translate)("Export"))),u.default.createElement("li",null,u.default.createElement("a",{className:"forminator-field-edit sui-option-red",href:a},u.default.createElement("span",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete"))))),u.default.createElement("a",{href:forminatorData.dashboardUrl+"&createnew="+this.props.type,className:"sui-button-icon sui-tooltip sui-tooltip-bottom","data-tooltip":r},u.default.createElement("span",{className:"sui-icon-plus sui-md","aria-hidden":"true"})))}}]),t}(s.Component);t.default=d},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e}),t=_.isUndefined(this.props.alignment)||""===this.props.alignment?"":this.props.alignment,a=!_.isUndefined(this.props.flatten)&&!0===this.props.flatten,r=!_.isUndefined(this.props.customClass)&&""!==this.props.customClass,n="sui-box-footer";return!0===a&&(n+=" sui-flatten"),""!==t&&(n+=" sui-content-"+t),!0===r&&(n+=" "+this.props.customClass),s.default.createElement("div",{className:n},e)}}]),t}(i.Component);t.default=u},function(e,t,a){function r(e,t){var a=o(e,t);return n(a)?a:void 0}var n=a(419),o=a(424);e.exports=r},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),i(t,[{key:"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="sui-form-field";_.isUndefined(this.props.fieldClass)||(r+=" "+this.props.fieldClass),this.props.mediumSize&&(r+=" sui-input-md");var n=void 0,o=void 0;this.props.label&&(n=u.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note))),this.props.canTrash&&(o=u.default.createElement("button",{className:"sui-button-icon"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Remove this date range")))),this.props.canAdd&&(o=u.default.createElement("button",{className:"sui-button-icon"},u.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Add selected date"))));var i=_.isUndefined(this.props.id)?"forminator-field-"+this.props.property:"forminator-field-"+this.props.id,s=u.default.createElement("input",l({ref:function(t){return e.el=t},id:i,className:t,placeholder:this.props.placeholder,type:"text",autoComplete:"off"},this.props.onlyRead&&{'readonly="readonly"':""})),p=u.default.createElement("div",{className:r},n,this.props.noCalendar?s:u.default.createElement("div",{className:"sui-date"},"left"===a&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"}),s,"right"===a&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"})),u.default.createElement("div",{id:i+"-calendar",className:"sui-date-calendar"}),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description));return this.props.multiDate&&(p=u.default.createElement("div",{className:"sui-multi-date"},u.default.createElement("div",{className:r},n,this.props.noCalendar?s:u.default.createElement("div",{className:"sui-date"},s,u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"})),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description)),o)),p}}]),t}(s.Component);t.default=p},function(e,t,a){"use strict";function r(e){return o.default.createElement("hr",{className:"fui-border"})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),o=function(e){return e&&e.__esModule?e:{default:e}}(n)},function(e,t,a){"use strict";function r(e){return e.replace(/>/g,"&gt;")}t.a=r},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(31),p=r(c),f=a(186),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return"undefined"!=typeof document&&(a.previouslyFocusedElement=document.activeElement),a}return l(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this.props.focusTrapOptions,t={returnFocusOnDeactivate:!1,fallbackFocus:"body"};for(var a in e)e.hasOwnProperty(a)&&"returnFocusOnDeactivate"!==a&&(t[a]=e[a]);var r=p.default.findDOMNode(this.focusTrapElement);this.focusTrap=this.props._createFocusTrap(r,t),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()}},{key:"componentDidUpdate",value:function(e){if(e.active&&!this.props.active){var t=this.props.focusTrapOptions.returnFocusOnDeactivate,a=t||!1,r={returnFocus:a};this.focusTrap.deactivate(r)}else!e.active&&this.props.active&&this.focusTrap.activate();e.paused&&!this.props.paused?this.focusTrap.unpause():!e.paused&&this.props.paused&&this.focusTrap.pause()}},{key:"componentWillUnmount",value:function(){this.focusTrap.deactivate(),!1!==this.props.focusTrapOptions.returnFocusOnDeactivate&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus()}},{key:"setFocusTrapElement",value:function(e){this.focusTrapElement=e}},{key:"render",value:function(){var e=this,t=u.default.Children.only(this.props.children),a=function(a){e.setFocusTrapElement(a),"function"==typeof t.ref&&t.ref(a)};return u.default.cloneElement(t,{ref:a})}}]),t}(u.default.Component);m.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d.default},e.exports=m},function(e,t,a){function r(e,t){function a(e){if(!C.active){P(),C.active=!0,C.paused=!1,C.nodeFocusedBeforeActivation=k.activeElement;var t=e&&e.onActivate?e.onActivate:N.onActivate;return t&&t(),m(),S}}function r(e){if(C.active){clearTimeout(s),h(),C.active=!1,C.paused=!1,p.deactivateTrap(S);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:N.onDeactivate;t&&t();return(e&&void 0!==e.returnFocus?e.returnFocus:N.returnFocusOnDeactivate)&&i(function(){j(v(C.nodeFocusedBeforeActivation))}),S}}function f(){!C.paused&&C.active&&(C.paused=!0,h())}function d(){C.paused&&C.active&&(C.paused=!1,P(),m())}function m(){if(C.active)return p.activateTrap(S),s=i(function(){j(y())}),k.addEventListener("focusin",E,!0),k.addEventListener("mousedown",g,{capture:!0,passive:!1}),k.addEventListener("touchstart",g,{capture:!0,passive:!1}),k.addEventListener("click",O,{capture:!0,passive:!1}),k.addEventListener("keydown",_,{capture:!0,passive:!1}),S}function h(){if(C.active)return k.removeEventListener("focusin",E,!0),k.removeEventListener("mousedown",g,!0),k.removeEventListener("touchstart",g,!0),k.removeEventListener("click",O,!0),k.removeEventListener("keydown",_,!0),S}function b(e){var t=N[e],a=t;if(!t)return null;if("string"==typeof t&&!(a=k.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(a=t()))throw new Error("`"+e+"` did not return a node");return a}function y(){var e;if(!(e=null!==b("initialFocus")?b("initialFocus"):x.contains(k.activeElement)?k.activeElement:C.firstTabbableNode||b("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function v(e){var t=b("setReturnFocus");return t||e}function g(e){if(!x.contains(e.target))return N.clickOutsideDeactivates?void r({returnFocus:!u.isFocusable(e.target)}):void(N.allowOutsideClick&&N.allowOutsideClick(e)||e.preventDefault())}function E(e){x.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),j(C.mostRecentlyFocusedNode||y()))}function _(e){return!1!==N.escapeDeactivates&&o(e)?(e.preventDefault(),void r()):l(e)?void w(e):void 0}function w(e){return P(),e.shiftKey&&e.target===C.firstTabbableNode?(e.preventDefault(),void j(C.lastTabbableNode)):e.shiftKey||e.target!==C.lastTabbableNode?void 0:(e.preventDefault(),void j(C.firstTabbableNode))}function O(e){N.clickOutsideDeactivates||x.contains(e.target)||N.allowOutsideClick&&N.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function P(){var e=u(x);C.firstTabbableNode=e[0]||y(),C.lastTabbableNode=e[e.length-1]||y()}function j(e){if(e!==k.activeElement){if(!e||!e.focus)return void j(y());e.focus(),C.mostRecentlyFocusedNode=e,n(e)&&e.select()}}var k=document,x="string"==typeof e?k.querySelector(e):e,N=c({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),C={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},S={activate:a,deactivate:r,pause:f,unpause:d};return S}function n(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}function o(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}function l(e){return"Tab"===e.key||9===e.keyCode}function i(e){return setTimeout(e,0)}var s,u=a(187),c=a(188),p=function(){var e=[];return{activateTrap:function(t){if(e.length>0){var a=e[e.length-1];a!==t&&a.pause()}var r=e.indexOf(t);-1===r?e.push(t):(e.splice(r,1),e.push(t))},deactivateTrap:function(t){var a=e.indexOf(t);-1!==a&&e.splice(a,1),e.length>0&&e[e.length-1].unpause()}}}();e.exports=r},function(e,t){function a(e,t){t=t||{};var a=[],n=[],o=e.querySelectorAll(v);t.includeContainer&&g.call(e,v)&&(o=Array.prototype.slice.apply(o),o.unshift(e));var l,u,c;for(l=0;l<o.length;l++)u=o[l],r(u)&&(c=i(u),0===c?a.push(u):n.push({documentOrder:l,tabIndex:c,node:u}));return n.sort(s).map(function(e){return e.node}).concat(a)}function r(e){return!(!o(e)||d(e)||i(e)<0)}function n(e){if(!e)throw new Error("No node provided");return!1!==g.call(e,v)&&r(e)}function o(e){return!(e.disabled||p(e)||b(e))}function l(e){if(!e)throw new Error("No node provided");return!1!==g.call(e,E)&&o(e)}function i(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?u(e)?0:e.tabIndex:t}function s(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function u(e){return"true"===e.contentEditable}function c(e){return"INPUT"===e.tagName}function p(e){return c(e)&&"hidden"===e.type}function f(e){return c(e)&&"radio"===e.type}function d(e){return f(e)&&!h(e)}function m(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}function h(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),a=m(t);return!a||a===e}function b(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}var y=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],v=y.join(","),g="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;a.isTabbable=n,a.isFocusable=l;var E=y.concat("iframe").join(",");e.exports=a},function(e,t){function a(){for(var e={},t=0;t<arguments.length;t++){var a=arguments[t];for(var n in a)r.call(a,n)&&(e[n]=a[n])}return e}e.exports=a;var r=Object.prototype.hasOwnProperty},function(e,t,a){"use strict";(function(t){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,a){if(!t.document)return function(e){function t(){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){return!1}}]),t}(s.Component);a=a||{};var l=function(t){function l(){var t,a,o,i;r(this,l);for(var c=arguments.length,p=Array(c),f=0;f<c;f++)p[f]=arguments[f];return a=o=n(this,(t=l.__proto__||Object.getPrototypeOf(l)).call.apply(t,[this].concat(p))),o.renderDisplaced=function(){u.unstable_renderSubtreeIntoContainer(o,s.createElement(e,o.props,o.props.children),o.container)},o.removeDisplaced=function(){u.unmountComponentAtNode(o.container)},i=a,n(o,i)}return o(l,t),i(l,[{key:"componentWillMount",value:function(){this.container=function(){if(a.renderTo)return"string"==typeof a.renderTo?document.querySelector(a.renderTo):a.renderTo;var e=document.createElement("div");return document.body.appendChild(e),e}()}},{key:"componentDidMount",value:function(){c||this.props.mounted&&this.renderDisplaced()}},{key:"componentDidUpdate",value:function(e){c||(e.mounted&&!this.props.mounted?u.unmountComponentAtNode(this.container):this.props.mounted&&this.renderDisplaced())}},{key:"componentWillUnmount",value:function(){c||u.unmountComponentAtNode(this.container),a.renderTo||this.container.parentNode.removeChild(this.container)}},{key:"render",value:function(){return c&&!1!==this.props.mounted?u.createPortal(s.createElement(e,this.props,this.props.children),this.container):null}}]),l}(s.Component);return l.defaultProps={mounted:!0},l.WrappedComponent=e,l}var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=a(31),c=!!u.createPortal;e.exports=l}).call(t,a(36))},function(e,t,a){"use strict";var r=a(191),n=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(e,t,a,r){function o(e,t){this.$popup={},this._deferred={},this.el=e,this.$el=jQuery(this.el),this.options=_.extend(l,t),this.init()}var l={type:"form"};jQuery.extend(o.prototype,{init:function(){var e=this;this.$el.find(".connect-integration").on("click",function(t){e.open(t)})},open:function(e){var t=this;jQuery("#forminator-integration-popup").remove();var a=jQuery(e.target);a.hasClass("connect-integration")||(a=a.closest(".connect-integration"));var r=function(){return t.close(),!1},o=a.data("nonce"),l=a.data("slug"),i=a.data("multi-global-id"),s=a.data("title"),u=a.data("image"),c=a.data("imagex2"),p=a.data("action"),f=a.data("form-id"),d=a.data("multi-id"),m=a.data("poll-id"),h=a.data("quiz-id"),b=_.template('<div class="sui-modal sui-modal-lg"><div role="dialog" id="forminator-integration-popup" class="sui-modal-content" aria-modal="true" aria-labelledby="forminator-integration-popup__title" aria-describedby="forminator-integration-popup__description"><div class="sui-box" style="margin-bottom: 0;"><div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60"><button class="sui-button-icon sui-button-float--right forminator-popup-close"><span class="sui-icon-close sui-md" aria-hidden="true"></span><span class="sui-screen-reader-text">Close</span></button><button class="sui-button-icon sui-button-float--left forminator-addon-back"><span class="sui-icon-chevron-left sui-md" aria-hidden="true"></span><span class="sui-screen-reader-text">Back</span></button><figure class="sui-box-logo" aria-hidden="true"><img src="<%= image %>" srcset="<%= image %> 1x, <%= image2x %> 2x" alt="<%= title %>" /></figure><div class="forminator-integration-popup__header"></div></div><div class="sui-box-body"></div><div class="sui-box-footer sui-flatten sui-content-center"></div></div></div></div>');jQuery("main.sui-wrap").append(b({image:u,image2x:c,title:s})),this.$popup=jQuery("#forminator-integration-popup");var y={slug:l,nonce:o,action:p,multi_id:d,global_id:i,el:this.$popup,type:t.options.type};return"form"===t.options.type?y.form_id=f:"poll"===t.options.type?y.poll_id=m:"quiz"===t.options.type&&(y.quiz_id=h),new n.default(y).on("modal:closed",function(){t.close()}),this.$popup.find(".forminator-popup-action").remove(),this.$popup.find(".forminator-popup-close").on("click",r),this.$popup.on("click",".forminator-popup-cancel",r),SUI.openModal("forminator-integration-popup","forminator-form-appearance",void 0,!0,!0),this._deferred=new jQuery.Deferred,this._deferred.promise()},close:function(e){SUI.closeModal(),this.$el.trigger("reload"),this._deferred.resolve(this.$popup,e)}}),jQuery.fn.ForminatorIntegrationsModal=function(e){return this.each(function(){new o(this,e)})}}(jQuery,window,document)},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(32),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){var a;r(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{el:e.el,tagName:"div",events:{"click .forminator-addon-connect":"connectAddon","click .forminator-addon-disconnect":"disconnectAddon","click .forminator-addon-form-disconnect":"formDisconnectAddon","click .forminator-addon-next":"submitNextStep","click .forminator-addon-back":"goPrevStep","click .forminator-addon-finish":"finishSteps","click .forminator-refresh-email-lists":"refreshLists","change select#group":"showInterests"}}));return o.slug=e.slug,o.nonce=e.nonce,o.action=e.action,o.multi_id=e.multi_id,o.global_id=e.global_id,o.type=e.type,o.step=0,o.next_step=!1,o.prev_step=!1,o.scrollbar_width=o.getScrollbarWidth(),"form"===o.type?o.module_id=e.form_id:"poll"===o.type?o.module_id=e.poll_id:"quiz"===o.type&&(o.module_id=e.quiz_id),a=o.render(),n(o,a)}return o(t,e),l(t,[{key:"render",value:function(){var e={};e.action=this.action,e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data.step=this.step,e.data.current_step=this.step,e.data.global_id=this.global_id,e.data=this.getAjaxModuleData(e.data,!0),this.request(e,!1,!0)}},{key:"applyLoader",value:function(e){e.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload")}},{key:"resetLoader",value:function(e){e.find(".sui-button").removeClass("sui-button-onload")}},{key:"request",value:function(e,t,a){var r=this,n={data:e,close:t,loader:a};a&&(this.$el.find(".sui-box-body").html('<p class="fui-loading-dialog" style="text-align: center;" aria-label="Loading content"><span class="sui-icon-loader sui-md sui-loading" aria-hidden="true"></span></p>'),this.$el.find(".sui-box-footer").html(""),this.$el.find(".forminator-integration-popup__header").html("")),r.applyLoader(r.$el),this.ajax=jQuery.post({url:forminatorData.ajaxUrl,type:"post",data:e}).done(function(e){if(e&&e.success){r.renderBody(e),r.renderFooter(e);var a=e.data.data;if(r.onRender(a),r.resetLoader(r.$el),(t||!_.isUndefined(a.is_close)&&a.is_close)&&r.close(r),r.$el.find(".forminator-addon-close").on("click",function(){r.close(r)}),!_.isUndefined(a.notification)&&!_.isUndefined(a.notification.type)&&!_.isUndefined(a.notification.text)){new s.default({type:a.notification.type,text:a.notification.text,time:4e3}).open()}if(_.isUndefined(a.has_back)?r.$el.find(".forminator-addon-back").hide():a.has_back?r.$el.find(".forminator-addon-back").show():r.$el.find(".forminator-addon-back").hide(),!_.isUndefined(a.size)){var o=jQuery("#forminator-integration-popup");"normal"===a.size&&o.removeClass("sui-modal-sm sui-modal-lg"),"small"===a.size&&(o.addClass("sui-modal-sm"),o.removeClass("sui-modal-lg sui-modal-reduced")),"reduced"===a.size&&(o.addClass("sui-modal-sm"),o.removeClass("sui-modal-lg sui-modal-md")),"large"===a.size&&(o.addClass("sui-modal-lg"),o.removeClass("sui-modal-sm sui-modal-md"))}a.is_poll&&setTimeout(r.request(n.data,n.close,n.loader),5e3),setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery('select.sui-select[data-theme="icon"]').each(function(){SUI.select.initIcon(jQuery(this))}),jQuery('select.sui-select[data-theme="color"]').each(function(){SUI.select.initColor(jQuery(this))}),jQuery('select.sui-select[data-theme="search"]').each(function(){SUI.select.initSearch(jQuery(this))}),jQuery("select.sui-select:not([data-theme]):not(.custom-select2):not(.fui-multi-select)").each(function(){SUI.select.init(jQuery(this))}),jQuery("select.sui-variables").each(function(){SUI.select.initVars(jQuery(this))}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},10);jQuery("#forminator-integration-popup .sui-box").height()>jQuery(window).height()?jQuery("#forminator-integration-popup .sui-modal-overlay").css("right",r.scrollbar_width+"px"):jQuery("#forminator-integration-popup .sui-modal-overlay").css("right",0)}if("mailchimp"===r.slug){var l=r.$el.find("#group");l.length&&l.trigger("change")}}),this.ajax.always(function(){r.$el.find(".fui-loading-dialog").remove()})}},{key:"renderBody",value:function(e){this.$el.find(".sui-box-body").html(e.data.data.html);var t=this.$el.find(".sui-box-body .forminator-integration-popup__header").remove();t.length>0&&this.$el.find(".forminator-integration-popup__header").html(t.html())}},{key:"renderFooter",value:function(e){var t=this,a=e.data.data.buttons;t.$el.find(".sui-box-footer").html(""),_.each(a,function(e){t.$el.find(".sui-box-footer").append(e.markup)})}},{key:"onRender",value:function(e){(0,u.suiDelegateEvents)(),(0,u.select2Tags)(this.$el,{}),_.isUndefined(e.forminator_addon_current_step)||(this.step=+e.forminator_addon_current_step),_.isUndefined(e.forminator_addon_has_next_step)||(this.next_step=e.forminator_addon_has_next_step),_.isUndefined(e.forminator_addon_has_prev_step)||(this.prev_step=e.forminator_addon_has_prev_step)}},{key:"close",value:function(e){e.ajax.abort(),e.remove(),this.trigger("modal:closed")}},{key:"refreshLists",value:function(e){e.preventDefault(),e.stopPropagation();var t=jQuery(e.currentTarget),a=this.slug,r=this.global_id,n=this.nonce,o={slug:a,global_id:r};t.addClass("sui-button-onload"),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"forminator_refresh_email_lists",data:o,_ajax_nonce:n}}).done(function(e){if(e.success&&void 0!==e.data.options){var a=t.siblings(".sui-select"),r=a.closest(".sui-modal-content"),n=r.attr("id"),o=r.length?jQuery("#"+n):jQuery("body"),l="true"===a.attr("data-search")?0:-1,i=a.hasClass("sui-select-sm")?"sui-select-dropdown-sm":"";a.html(e.data.options),a.SUIselect2({dropdownParent:o,minimumResultsForSearch:l,dropdownCssClass:i})}}).fail(function(){}).always(function(){t.removeClass("sui-button-onload")})}},{key:"showInterests",value:function(e){var t=this,a=jQuery(e.currentTarget),r=a.data("nonce"),n={},o=t.$el.find("form"),l={slug:t.slug,global_id:this.global_id,module_id:this.module_id},i=o.serialize();i=i+"&"+jQuery.param(l),n.action="forminator_mailchimp_get_group_interests",n._ajax_nonce=r,n.data=i,t.applyLoader(t.$el),jQuery.ajax({url:ajaxurl,type:"POST",data:n}).done(function(e){e.success&&(o.find(".sui-form-field").slice(1).remove(),o.find(".sui-form-field:first-child").after(e.data),o.find(".sui-form-field").slice(1).find("select").each(function(){SUI.select.init(jQuery(this))}))}).fail(function(){}).always(function(){t.resetLoader(t.$el)})}},{key:"submitNextStep",value:function(e){var t={},a=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),global_id:this.global_id,current_step:this.step},n=a.serialize();r=this.getAjaxModuleData(r,!1),n=n+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=n,this.request(t,!1,!1)}},{key:"goPrevStep",value:function(e){var t={},a={slug:this.slug,step:this.getPrevStep(),global_id:this.global_id,current_step:this.step};a=this.getAjaxModuleData(a,!0),t.action=this.action,t._ajax_nonce=this.nonce,t.data=a,this.request(t,!1,!1)}},{key:"finishSteps",value:function(e){var t={},a=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),global_id:this.global_id,current_step:this.step},n=a.serialize();r=this.getAjaxModuleData(r,!0),n=n+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=n,this.request(t,!1,!1)}},{key:"getStep",value:function(){return this.next_step?this.step+1:this.step}},{key:"getPrevStep",value:function(){return this.prev_step?this.step-1:this.step}},{key:"connectAddon",value:function(){var e={},t=this.$el.find("form"),a={slug:this.slug,step:this.getStep(),global_id:this.global_id,current_step:this.step},r=t.serialize();a=this.getAjaxModuleData(a,!0),r=r+"&"+jQuery.param(a),e.action=this.action,e._ajax_nonce=this.nonce,e.data=r,this.request(e,!1,!1)}},{key:"disconnectAddon",value:function(){var e={};e.action="forminator_addon_deactivate",e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data.global_id=this.global_id,this.request(e,!0,!1)}},{key:"formDisconnectAddon",value:function(){var e={};e.action=this.getAjaxModuleAction("deactivate"),e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data=this.getAjaxModuleData(e.data,!0),this.request(e,!0,!1)}},{key:"getScrollbarWidth",value:function(){var e=0;if(navigator.userAgent.match("MSIE")){var t=jQuery('<textarea cols="10" rows="2"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body"),a=jQuery('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body");e=t.width()-a.width(),t.add(a).remove()}else{var r=jQuery("<div />").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1e3,left:-1e3}).prependTo("body").append("<div />").find("div").css({width:"100%",height:200});e=100-r.width(),r.parent().remove()}return e}},{key:"getAjaxModuleData",value:function(e,t){return this.module_id&&(e.module_id=this.module_id,e.module_type=this.type,e.global_id=this.global_id),t&&this.multi_id&&(e.multi_id=this.multi_id),e}},{key:"getAjaxModuleAction",value:function(e){switch(e){case"deactivate":e="forminator_addon_deactivate_for_module"}return e}}]),t}(Backbone.View);t.default=c},function(e,t,a){"use strict";function r(e){return e&&DataView.prototype.isPrototypeOf(e)}function n(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function o(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return _.iterable&&(t[Symbol.iterator]=function(){return t}),t}function i(e){this.map={},e instanceof i?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function s(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,a){e.onload=function(){t(e.result)},e.onerror=function(){a(e.error)}})}function c(e){var t=new FileReader,a=u(t);return t.readAsArrayBuffer(e),a}function p(e){var t=new FileReader,a=u(t);return t.readAsText(e),a}function f(e){for(var t=new Uint8Array(e),a=new Array(t.length),r=0;r<t.length;r++)a[r]=String.fromCharCode(t[r]);return a.join("")}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:_.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:_.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:_.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():_.arrayBuffer&&_.blob&&r(e)?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):_.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||O(e))?this._bodyArrayBuffer=d(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):_.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},_.blob&&(this.blob=function(){var e=s(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?s(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(c)}),this.text=function(){var e=s(this);if(e)return e;if(this._bodyBlob)return p(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(f(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},_.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}function h(e){var t=e.toUpperCase();return P.indexOf(t)>-1?t:e}function b(e,t){t=t||{};var a=t.body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new i(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new i(t.headers)),this.method=h(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var a=e.split("="),r=a.shift().replace(/\+/g," "),n=a.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(n))}}),t}function v(e){var t=new i;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var a=e.split(":"),r=a.shift().trim();if(r){var n=a.join(":").trim();t.append(r,n)}}),t}function g(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new i(t.headers),this.url=t.url||"",this._initBody(e)}function E(e,t){return new Promise(function(a,r){function n(){l.abort()}var o=new b(e,t);if(o.signal&&o.signal.aborted)return r(new k("Aborted","AbortError"));var l=new XMLHttpRequest;l.onload=function(){var e={status:l.status,statusText:l.statusText,headers:v(l.getAllResponseHeaders()||"")};e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var t="response"in l?l.response:l.responseText;a(new g(t,e))},l.onerror=function(){r(new TypeError("Network request failed"))},l.ontimeout=function(){r(new TypeError("Network request failed"))},l.onabort=function(){r(new k("Aborted","AbortError"))},l.open(o.method,o.url,!0),"include"===o.credentials?l.withCredentials=!0:"omit"===o.credentials&&(l.withCredentials=!1),"responseType"in l&&_.blob&&(l.responseType="blob"),o.headers.forEach(function(e,t){l.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",n),l.onreadystatechange=function(){4===l.readyState&&o.signal.removeEventListener("abort",n)}),l.send(void 0===o._bodyInit?null:o._bodyInit)})}Object.defineProperty(t,"__esModule",{value:!0}),t.Headers=i,t.Request=b,t.Response=g,a.d(t,"DOMException",function(){return k}),t.fetch=E;var _={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(_.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],O=ArrayBuffer.isView||function(e){return e&&w.indexOf(Object.prototype.toString.call(e))>-1};i.prototype.append=function(e,t){e=n(e),t=o(t);var a=this.map[e];this.map[e]=a?a+", "+t:t},i.prototype.delete=function(e){delete this.map[n(e)]},i.prototype.get=function(e){return e=n(e),this.has(e)?this.map[e]:null},i.prototype.has=function(e){return this.map.hasOwnProperty(n(e))},i.prototype.set=function(e,t){this.map[n(e)]=o(t)},i.prototype.forEach=function(e,t){for(var a in this.map)this.map.hasOwnProperty(a)&&e.call(t,this.map[a],a,this)},i.prototype.keys=function(){var e=[];return this.forEach(function(t,a){e.push(a)}),l(e)},i.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},i.prototype.entries=function(){var e=[];return this.forEach(function(t,a){e.push([a,t])}),l(e)},_.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var P=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},m.call(b.prototype),m.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var j=[301,302,303,307,308];g.redirect=function(e,t){if(-1===j.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})};var k=self.DOMException;try{new k}catch(e){k=function(e,t){this.message=e,this.name=t;var a=Error(e);this.stack=a.stack},k.prototype=Object.create(Error.prototype),k.prototype.constructor=k}E.polyfill=!0,self.fetch||(self.fetch=E,self.Headers=i,self.Request=b,self.Response=g)},function(e,t){function a(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=a},function(e,t){function a(e){return null!=e&&"object"==typeof e}e.exports=a},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(7),d=r(f),m=a(13),h=r(m),b=a(494),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=_.isUndefined(this.props.state.options)?[]:this.props.state.options,t=e.length>0?"sui-tab-boxed":"",a=c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose whether to allow this field to be used in calculations or not. The value used in calculations is the same as the input value of this field."));return this.props.description&&(a=c.default.createElement("span",{className:"sui-description"},this.props.description)),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Calculations")),a,e.length>0&&c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"calculations",description:"",default:"false",noWrapper:!0}),c.default.createElement(y.default,i({},this.props,{value:"true",boxClass:t,label:(0,p.translate)("Enable")})),c.default.createElement(h.default,{value:"false",label:(0,p.translate)("Disable")})),0===e.length&&c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"calculations",default:"false",noWrapper:!0}),c.default.createElement(h.default,i({},this.props,{value:"true",label:(0,p.translate)("Enable")})),c.default.createElement(h.default,{value:"false",label:(0,p.translate)("Disable")}))))}}]),t}(u.Component);t.default=v},,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateFields=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_FIELDS",wrappers:e})}},t.updateField=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_FIELD",wrapper:e})}},t.updateFieldSettings=function(e,t){return function(a){window.forminatorChanges.fields.push(t),window.forminatorChanges.settings=!0,a({type:"UPDATE_FIELD",wrapper:e})}}},function(e,t,a){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(409),o=a(410),l=a(411),i=a(412),s=a(413);r.prototype.clear=n,r.prototype.delete=o,r.prototype.get=l,r.prototype.has=i,r.prototype.set=s,e.exports=r},function(e,t,a){function r(e,t){for(var a=e.length;a--;)if(n(e[a][0],t))return a;return-1}var n=a(358);e.exports=r},function(e,t,a){function r(e){return null==e?void 0===e?s:i:u&&u in Object(e)?o(e):l(e)}var n=a(227),o=a(420),l=a(421),i="[object Null]",s="[object Undefined]",u=n?n.toStringTag:void 0;e.exports=r},function(e,t,a){var r=a(181),n=r(Object,"create");e.exports=n},function(e,t,a){function r(e,t){var a=e.__data__;return n(t)?a["string"==typeof t?"string":"hash"]:a.map}var n=a(434);e.exports=r},function(e,t,a){function r(e,t,a,r){var l=!a;a||(a={});for(var i=-1,s=t.length;++i<s;){var u=t[i],c=r?r(a[u],e[u],u,a,e):void 0;void 0===c&&(c=e[u]),l?o(a,u,c):n(a,u,c)}return a}var n=a(362),o=a(363);e.exports=r},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(11),d=r(f),m=a(5),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={open:!1},a.updateValue=a.updateValue.bind(a),a.toggleState=a.toggleState.bind(a),a}return o(t,e),l(t,[{key:"toggleState",value:function(){this.setState({open:!this.state.open})}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=this.props.label,a="",r=this.state.open,n=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property];n||(a="sui-accordion-item--disabled"),n&&r&&(a="sui-accordion-item--open");var o=s.default.Children.map(this.props.children,function(e){return e}),l=r&&o;return this.props.noBoxBody||(l=s.default.createElement("div",{className:"sui-box"},s.default.createElement("div",{className:"sui-box-body"},r&&o))),s.default.createElement("div",{className:"sui-accordion-item "+a},s.default.createElement("div",{className:"sui-accordion-item-header",onClick:function(){return e.toggleState()}},s.default.createElement("div",{className:"sui-accordion-item-title"},s.default.createElement("label",{htmlFor:"forminator-"+this.props.property,className:"sui-toggle"},s.default.createElement("input",{type:"checkbox",id:"forminator-"+this.props.property,onChange:function(t){e.updateValue(t.target.checked)},checked:n?"checked":""}),s.default.createElement("span",{className:"sui-toggle-slider"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Enable")," ",t)),s.default.createElement("span",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"},l))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){return c(u.default,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=a(9),l=a(130),i=r(l),s=a(216),u=r(s),c=(0,o.compose)((0,o.applyMiddleware)(i.default))(o.createStore)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(9),o=a(217),l=r(o),i=a(218),s=r(i),u=a(219),c=r(u),p=a(220),f=r(p),d=a(221),m=r(d),h=a(222),b=r(h),y=(0,n.combineReducers)({wrappers:l.default,settings:s.default,modal:c.default,integrationConditions:f.default,behaviorArray:m.default,notifications:b.default});t.default=y},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(e,t){var a=t.wrapper,r=e.findIndex(function(e){return e.wrapper_id===a.wrapper_id});return e=(0,l.replaceInPosition)(e,r,a)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_FIELDS":return t.wrappers;case"UPDATE_FIELD":return n([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var l=a(1)},function(e,t,a){"use strict";function r(e,t){var a=t.setting,r=t.value;return e[a]=r,e}function n(e,t){var a=t.settings;return s({},e,a)}function o(e,t){var a=t.settings;return s({},a)}function l(e,t){var a=t.title;return e.formName=a,e}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],a=Object.assign({},e);switch(t.type){case"UPDATE_SETTINGS":return n(a,t);case"RESET_SETTINGS":return o(a,t);case"UPDATE_SETTING":return r(a,t);case"UPDATE_TITLE":return l(a,t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e};t.default=i},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={modalType:null,modalProps:{}};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case"SHOW_MODAL":return{modalProps:t.modalProps,modalType:t.modalType,type:t.type};case"HIDE_MODAL":return r;default:return e}}},function(e,t,a){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_INTEGRATION_CONDITIONS":return t.conditions;default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;a(1)},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(e,t){var a=t.behavior,r=e.findIndex(function(e){return e.slug===a.slug});return e=(0,l.replaceInPosition)(e,r,a)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_BEHAVIORS":return t.behaviors;case"UPDATE_BEHAVIOR":return n([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var l=a(1)},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(e,t){var a=t.notification,r=e.findIndex(function(e){return e.slug===a.slug});return e=(0,l.replaceInPosition)(e,r,a)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_NOTIFICATIONS":return t.notifications;case"UPDATE_NOTIFICATION":return n([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var l=a(1)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateIntegrationConditions=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_INTEGRATION_CONDITIONS",conditions:e})}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateBehaviorArray=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_BEHAVIORS",behaviors:e})}},t.updateBehavior=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_BEHAVIOR",behavior:e})}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateNotifications=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_NOTIFICATIONS",notifications:e})}},t.updateNotification=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_NOTIFICATION",notification:e})}}},function(e,t,a){var r=a(181),n=a(83),o=r(n,"Map");e.exports=o},function(e,t,a){var r=a(83),n=r.Symbol;e.exports=n},function(e,t,a){function r(e){return l(e)?n(e):o(e)}var n=a(364),o=a(448),l=a(368);e.exports=r},function(e,t){var a=Array.isArray;e.exports=a},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){function a(e){return function(t){return e(t)}}e.exports=a},function(e,t,a){(function(e){var r=a(360),n="object"==typeof t&&t&&!t.nodeType&&t,o=n&&"object"==typeof e&&e&&!e.nodeType&&e,l=o&&o.exports===n,i=l&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}).call(t,a(230)(e))},function(e,t){function a(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=a},function(e,t,a){var r=a(456),n=a(370),o=Object.prototype,l=o.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),function(t){return l.call(e,t)}))}:n;e.exports=s},function(e,t,a){var r=a(460),n=a(226),o=a(461),l=a(462),i=a(463),s=a(209),u=a(361),c=u(r),p=u(n),f=u(o),d=u(l),m=u(i),h=s;(r&&"[object DataView]"!=h(new r(new ArrayBuffer(1)))||n&&"[object Map]"!=h(new n)||o&&"[object Promise]"!=h(o.resolve())||l&&"[object Set]"!=h(new l)||i&&"[object WeakMap]"!=h(new i))&&(h=function(e){var t=s(e),a="[object Object]"==t?e.constructor:void 0,r=a?u(a):"";if(r)switch(r){case c:return"[object DataView]";case p:return"[object Map]";case f:return"[object Promise]";case d:return"[object Set]";case m:return"[object WeakMap]"}return t}),e.exports=h},function(e,t,a){function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}var n=a(466);e.exports=r},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=_.isUndefined(a.props.prefix)?"":a.props.prefix+"_";return a.validProp=o+"validation",a.validTextProp=o+"validation_message",a}return o(t,e),l(t,[{key:"toggleValue",value:function(e){this.props.updateProperty(this.validProp,e)}},{key:"render",value:function(){var e=this,t=!_.isUndefined(this.props.state[this.validProp])&&this.props.state[this.validProp],a=_.isUndefined(this.props.state[this.validTextProp])?"":this.props.state[this.validTextProp];return s.default.createElement("div",{className:"sui-box-settings-row"},s.default.createElement("div",{className:"sui-box-settings-col-2"},s.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,u.translate)("Validate")),s.default.createElement("span",{className:"sui-description"},(0,u.translate)("Make sure the user has filled out this field correctly and warn them when they haven't.")),s.default.createElement("div",{className:"sui-side-tabs",style:{marginTop:"10px"}},s.default.createElement("div",{className:"sui-tabs-menu"},s.default.createElement("div",{className:"sui-tab-item"+(t?"":" active"),onClick:this.toggleValue.bind(this,!1)},(0,u.translate)("None")),s.default.createElement("div",{className:"sui-tab-item"+(t?" active":""),onClick:this.toggleValue.bind(this,!0)},(0,u.translate)("Validate Field"))),s.default.createElement("div",{className:"sui-tabs-content"},s.default.createElement("div",{className:"sui-tab-content sui-tab-boxed"+(t?" active":"")},s.default.createElement("div",{className:"sui-form-field"},s.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,u.translate)("Validation message")),s.default.createElement("input",{type:"text",id:"forminator-field-name-error-msg",className:"sui-form-control",placeholder:(0,u.translate)("Enter validation message"),value:a,onChange:function(t){e.props.updateProperty(e.validTextProp,t.target.value)}})))))))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.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(11),m=r(d),h=a(5),b=r(h),y=a(492),v=r(y),g=a(46),E=r(g),w=a(25),O=r(w),P=a(493),j=r(P),k=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.addOption=a.addOption.bind(a),a.removeOption=a.removeOption.bind(a),a.updateLabel=a.updateLabel.bind(a),a.updateValue=a.updateValue.bind(a),a.updateLimit=a.updateLimit.bind(a),a.updateDefault=a.updateDefault.bind(a),a.updateImage=a.updateImage.bind(a),a.updateBulkValue=a.updateBulkValue.bind(a);var r=!_.isUndefined(a.props.state.bulk_edit)&&a.props.state.bulk_edit;return a.state={options:_.isUndefined(a.props.state.options)?[]:[].concat(n(a.props.state.options)),options_bulk_editor:_.isUndefined(a.props.state.options_bulk_editor)?"":a.props.state.options_bulk_editor,options_calcs:a.props.state.calculations?[].concat(n(a.props.state.options)):[],csv_file:null,is_loading:!r,show_standard:!1},a}return i(t,e),u(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.state.limit_status;this.runEditorFunctions(),this.props.state.bulk_edit||0!==this.state.options_bulk_editor.length&&"enable"!==t?this.props.state.bulk_edit&&"enable"===t&&!this.props.state.calculations&&this.convertToStandard():this.convertToBulk(),this.state.is_loading&&setTimeout(function(){e.setState({is_loading:!1,show_standard:!0}),e.addOptionClassToggle()},400)}},{key:"getSnapshotBeforeUpdate",value:function(e,t){var a=this,r=this.state.options,n=this.props.state.bulk_edit,o=this.state.is_loading,l=void 0,i=void 0;if(n||!e.state.bulk_edit||o||this.setState({is_loading:!0}),!n&&o){var s=r.length<50?400:700;clearTimeout(i),i=setTimeout(function(){a.setState({is_loading:!1,show_standard:!0})},s)}return clearTimeout(l),n&&this.props.state.options_bulk_editor!==e.state.options_bulk_editor?l=setTimeout(function(){a.convertToStandard()},500):n||this.props.state.options===e.state.options||(l=setTimeout(function(){a.convertToBulk()},500)),null}},{key:"componentDidUpdate",value:function(e,t){this.props.state.bulk_edit===e.state.bulk_edit&&(this.state.is_loading||this.props.state.bulk_edit)||(this.runEditorFunctions(),this.addOptionClassToggle()),this.state.options_bulk_editor===t.options_bulk_editor&&this.props.state.options_expanded===e.state.options_expanded||this.addOptionClassToggle()}},{key:"runEditorFunctions",value:function(){var e=this,t=this.props.state.bulk_edit,a=this.state.is_loading;if(this.$el=jQuery(this.el),this.$importError=this.$el.find(".importer-error"),!t&&!a){this.moveOption=this.moveOption.bind(this);var r=!0;this.$el.find(".fui-multi-options").sortable({helper:"clone",start:function(t,a){r&&(e.$el.find(".fui-multi-options").sortable("refreshPositions"),r=!1)},stop:function(t,a){var r=a.item.index();e.$el.find(".fui-multi-options").sortable("cancel");var n=a.item.index();e.moveOption(n,r)}})}if(t){e.setState({show_standard:!1}),window.File&&window.FileReader&&window.FileList&&window.Blob||this.showError((0,f.translate)("The File APIs are not fully supported in this browser. You may copy and paste your options on the text area above or switch to a modern browser to use the importer."));var n=this.$el.find(".upload-csv-btn"),o=this.$el.find(".import-csv-btn"),l=this.$el.find(".uploaded-csv-file"),i=l.find(".remove-file"),s=this.$el.find("#upload-csv-input");this.$el.find(".upload-csv-btn, .uploaded-csv-file > span").on("click",function(){s.trigger("click"),e.hideError()}),i.on("click",function(){s.val("").trigger("change")}),s.on("change",function(){var t=s.val();if(t.length>0){e.setState({csv_file:s.get(0).files[0]});"csv"!==t.slice(2+(t.lastIndexOf(".")-1>>>0))?(i.trigger("click"),e.showError((0,f.translate)("Whoops, only .csv filetype is allowed."))):(o.prop("disabled",!1),n.hide(),l.show(),l.find("> span").html(t.replace(/^.*[\\\/]/,"")),0!==e.props.state.options_bulk_editor.length&&e.showError((0,f.translate)("Importing this will replace your current options. Click import to continue."),"warning"))}else o.prop("disabled",!0),n.show(),l.hide(),l.find("> span").html(""),e.hideError()}),o.on("click",function(){e.importCsv()})}}},{key:"importCsv",value:function(){if(window.File&&window.FileReader&&window.FileList&&window.Blob){var e=this,t=this.$el.find("#upload-csv-input"),a=this.state.csv_file;if(t.get(0).files){var r=a,n=new FileReader;this.setState({options_bulk_editor:""}),n.onload=function(){var t=n.result;-1!==t.indexOf("Option label; Option value")&&(t=t.substring(t.indexOf("\n")+1)),e.props.updateProperty("options_bulk_editor",t),e.setState({options_bulk_editor:t}),e.convertToStandard()},n.readAsText(r),this.setState({csv_file:null}),t.trigger("change")}else e.showError((0,f.translate)("This browser doesn't seem to support the `files` property of file inputs."))}}},{key:"showError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";"error"!==t?this.$importError.removeClass("sui-notice-error").addClass("sui-notice-"+t):this.$importError.removeClass().addClass("importer-error sui-notice sui-notice-error"),this.$importError.find("p").text(e),this.$importError.addClass("sui-active"),this.$importError.show()}},{key:"hideError",value:function(){this.$importError.find("p").text(""),this.$importError.removeClass("sui-active"),this.$importError.hide()}},{key:"componentWillUnmount",value:function(){jQuery("#forminator-modal").off("scroll"),this.$el.off().removeData()}},{key:"updateState",value:function(e){this.setState({options:e}),this.props.updateProperty("options",e),this.convertToBulk()}},{key:"updateLabel",value:function(e,t){var a=this.state.options;a[e].label=t,this.updateState(a)}},{key:"updateLimit",value:function(e,t){var a=this.state.options;a[e].limit=t,this.updateState(a)}},{key:"updateValue",value:function(e,t){var a=this.state.options;a[e].value=t,this.updateState(a)}},{key:"moveOption",value:function(e,t){var a=this.state.options;a.splice(t,0,a.splice(e,1)[0]),this.updateState(a)}},{key:"updateDefault",value:function(e,t){var a=this.state.options;this.props.isRadio&&"true"===this.props.isRadio&&_.map(a,function(e,t){a[t].default=!1}),a[e].default=t,this.updateState(a)}},{key:"removeOption",value:function(e){var t=this.state.options;t.splice(e,1),this.updateState(t)}},{key:"updateImage",value:function(e,t,a){var r=this.state.options;"image"===a&&(r[e].image=t),"image"!==a&&(r[e].image_filename=t),this.updateState(r)}},{key:"addOption",value:function(){var e=this.state.options,t=(0,f.randNumber)()+"-"+(0,f.randNumber)();e.push({label:"",value:"",limit:"",default:!1,key:t}),this.updateState(e),this.scrollToNewOpt()}},{key:"scrollToNewOpt",value:function(){var e=jQuery(".standard-editor"),t=void 0;clearTimeout(t),t=setTimeout(function(){e.animate({scrollTop:e.prop("scrollHeight")},300)},200)}},{key:"addOptionClassToggle",value:function(){var e=void 0;clearTimeout(e),e=setTimeout(function(){var e=jQuery(".standard-editor").next(".fui-multi-options");jQuery(".standard-editor").outerHeight()>460?e.addClass("add-option-box"):e.removeClass("add-option-box")},50)}},{key:"generateUniqId",value:function(){return(0,f.randNumber)()+"-"+(0,f.randNumber)()}},{key:"updateBulkValue",value:function(){var e=this.state.options_bulk_editor;return this.setState({options_bulk_editor:e}),e}},{key:"convertToBulk",value:function(){var e=this.state.options,t=this.props.state.type,a=this.props.state.value_type,r="",n=!1;_.map(e,function(e,o){o>0&&(r+="\n");var l=e.label,i=e.value;r+=l,r+=";",_.isUndefined(i)?_.isUndefined(l)?r+="":r+=l:r+=i,_.isUndefined(e.default)||!e.default||("radio"===t||"select"===t&&"single"===a)&&n?(r+="; ",r+="0"):e.default&&(r+="; ",r+="1",n=!0),"select"===t?_.isUndefined(e.limit)||_.isEmpty(e.limit)||(r+="; ",r+=e.limit):_.isUndefined(e.image)||_.isEmpty(e.image)||(r+="; ",r+=e.image)}),this.setState({options_bulk_editor:r}),this.props.updateProperty("options_bulk_editor",r)}},{key:"convertToStandard",value:function(){var e=this,t=this.props.state.type,a=this.props.state.value_type,r=[],n=this.props.state.options_bulk_editor;if(!_.isUndefined(n)&&n.length>0){var o=0,l=!1;n=n.split(/\r\n|\r|\n/),_.map(n,function(n,i){if(Boolean(n)){var s=n.split(";"),u=!_.isUndefined(s[2])&&1==s[2],c=_.isEmpty(s[0])?(0,f.translate)("Option ")+(o+1):s[0],p=_.isUndefined(s[1])?"":s[1];if(p=_.isEmpty(p)?c:p,r[o]={key:e.generateUniqId(),label:c,value:p},r[o].default=("radio"!==t&&("select"!==t||"single"!==a)||!l)&&u,u&&(l=!0),_.isEmpty(s[3])||("select"===t?"enable"===e.props.state.limit_status&&(r[o].limit=s[3]):(r[o].image=s[3],r[o].image_filename=s[3].replace(/^.*[\\\/]/,""))),e.props.state.calculations){var d=_.find(e.state.options_calcs,function(e){return e.label===c});r[o].calculation=_.isUndefined(d)?"":d.calculation}o++}})}this.setState({options:r}),this.props.updateProperty("options",r)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.state.options_expanded)||!this.props.state.options_expanded?(0,f.translate)("Expand All"):(0,f.translate)("Collapse All"),a=!_.isUndefined(this.props.state.bulk_edit)&&this.props.state.bulk_edit,r=this.props.state.type,n="select"!==r?"checkbox_radio_bulk_template.csv":"select_bulk_template.csv",o=this.state.options,l=this.state.options_bulk_editor,i=this.state.is_loading,u=this.state.show_standard,c=o.length>1e3,d=0===o.length?"no-option":"";switch(r){case"select":(0,f.translate)("Select");break;case"radio":(0,f.translate)("Radio");break;case"checkbox":(0,f.translate)("Checkbox")}var h=(0,f.translate)("Label; value; selection (0 or 1); image-url");"select"===r&&(h="enable"===this.props.state.limit_status?(0,f.translate)("Label; value; selection (0 or 1); submission limit"):(0,f.translate)("Label; value; selection (0 or 1)"));var y=jQuery("#shared-ui-js");return y.length>0?(y=y.prop("src").split("js/shared-ui.min.js"),y=y[0]+"csv/",y+=n):y=!1,p.default.createElement("div",{id:"demo-multi-options--radio",className:"sui-form-field multi-options-bulk",ref:function(t){return e.el=t}},c&&a&&p.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-yellow sui-active",style:{display:"block"},"aria-live":"assertive"},p.default.createElement("div",{className:"sui-notice-content"},p.default.createElement("div",{className:"sui-notice-message"},p.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),p.default.createElement("p",null,(0,f.translate)("Warning! You've added more than 1000 options. Switching back to the standard (non-bulk) editor could make your browser slow or unresponsive. Proceed with caution."))))),p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"3"},p.default.createElement("label",{id:"label-options",className:"sui-label"},(0,f.translate)("Options"))),p.default.createElement(b.default,{cols:"9"},p.default.createElement("div",{className:"switch-box"},!a&&p.default.createElement(E.default,s({},this.props,{settings:this.props.state,label:t,property:"options_expanded",itemClass:"sui-checkbox sui-checkbox-sm collapse-options"})),"select"!==r&&p.default.createElement(E.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Enable Images"),property:"enable_images",itemClass:"sui-checkbox-sm "})),p.default.createElement("span",{className:"bulk-edit-toggle "},p.default.createElement(O.default,s({},this.props,{settings:this.props.state,property:"bulk_edit",label:(0,f.translate)("Bulk Edit"),unWrap:!0})))))),i&&p.default.createElement("div",{className:"multi-opts-preloader"},p.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}," ",(0,f.translate)("Loading"),"...")),!a&&u&&p.default.createElement("div",{className:"sui-accordion sui-accordion-block"},p.default.createElement("div",{className:"fui-multi-options standard-editor "+d},_.map(o,function(t,a){return p.default.createElement(v.default,s({key:a,counter:a,option:t,removeOption:e.removeOption,updateValue:e.updateValue,updateLabel:e.updateLabel,updateLimit:e.updateLimit,updateDefault:e.updateDefault,updateImage:e.updateImage},e.props))})),p.default.createElement("div",{className:"fui-multi-options"},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")))),a&&p.default.createElement("div",{className:"fui-multi-options"},p.default.createElement("div",{className:"sui-box sui-message sui-message-lg fui-multi-options-bulk"},p.default.createElement(j.default,s({},this.props,{settings:this.props.state,property:"options_bulk_editor",defaultValue:l,value:l,updateValue:this.updateBulkValue,label:(0,f.translate)("Enter field options (one per line)"),description:(0,f.translate)('Type or paste options above (one per line and separated by semicolons) or click \n {{b}}"+ Predefined options"{{/b}} link to select an option. Example: {{b}}'+h+"{{/b}}",{components:{b:p.default.createElement("b",null)}})})),p.default.createElement("div",{className:"sui-form-field bulk-importer"},p.default.createElement("label",{className:"sui-label"},(0,f.translate)("Import options from CSV")),p.default.createElement("div",{className:"sui-upload"},p.default.createElement("input",{id:"upload-csv-input",type:"file",value:"",readOnly:"readonly",accept:".csv"}),p.default.createElement("button",{className:"sui-upload-button upload-csv-btn"},p.default.createElement("span",{className:"sui-icon-upload-cloud","aria-hidden":"true"}),(0,f.translate)("Upload file")),p.default.createElement("div",{className:"sui-upload-file uploaded-csv-file"},p.default.createElement("span",null),p.default.createElement("button",{className:"remove-file","aria-label":"Remove file"},p.default.createElement("span",{className:"sui-icon-close","aria-hidden":"true"}))),p.default.createElement("button",{role:"button",className:"sui-button sui-button-blue import-csv-btn",disabled:!0},p.default.createElement("span",{className:"sui-icon-download-cloud","aria-hidden":"true"}),(0,f.translate)("Import"))),p.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-error","aria-live":"assertive"},p.default.createElement("div",{className:"sui-notice-content"},p.default.createElement("div",{className:"sui-notice-message"},p.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),p.default.createElement("p",null)))),p.default.createElement("span",{className:"sui-description"},(0,f.translate)("Choose a CSV (.csv) file to import field options and values.")+" ",y&&p.default.createElement("a",{className:"blue",href:y,target:"_blank",download:n},(0,f.translate)("Download csv template")))))))}}]),t}(c.Component);t.default=k},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=(a(21),a(1)),f=a(240),d=r(f),m=a(241),h=r(m),b=a(242),y=r(b),v=a(243),g=r(v),E=a(244),_=(r(E),a(245)),w=r(_),O=a(7),P=r(O),j=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Design Style")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose a pre-made style for your form and further customize it's appearance below."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(P.default,i({},this.props,{property:"form-style",default:"default"}),c.default.createElement(d.default,{value:"default",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Default")),c.default.createElement(h.default,{value:"flat",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Flat")),c.default.createElement(y.default,{value:"bold",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Bold")),c.default.createElement(g.default,{value:"material",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Material")),c.default.createElement(w.default,{value:"none",boxClass:"sui-tab-content"},(0,p.translate)("None")))))}}]),t}(u.Component);t.default=j},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"fui-demo fui-demo--custom-form fui-demo--default"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("Placeholder"),readOnly:"readonly"}),s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",value:(0,u.translate)("Text"),readOnly:"readonly"}),s.default.createElement("button",null,(0,u.translate)("Button")))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"fui-demo fui-demo--custom-form fui-demo--flat"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("Placeholder"),readOnly:"readonly"}),s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",value:(0,u.translate)("Text"),readOnly:"readonly"}),s.default.createElement("button",null,(0,u.translate)("Button")))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"fui-demo fui-demo--custom-form fui-demo--bold"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("Placeholder"),readOnly:"readonly"}),s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",value:(0,u.translate)("Text"),readOnly:"readonly"}),s.default.createElement("button",null,(0,u.translate)("Button")))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"fui-demo fui-demo--custom-form fui-demo--material"},s.default.createElement("div",{className:"fui-is_empty"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",readOnly:"readonly"})),s.default.createElement("div",{className:"fui-is_filled"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",value:(0,u.translate)("Text"),readOnly:"readonly"})),s.default.createElement("button",null,(0,u.translate)("Button")))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"fui-demo fui-demo--custom-form fui-demo--basic"},s.default.createElement("div",{className:"fui-is_empty"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",readOnly:"readonly"})),s.default.createElement("div",{className:"fui-is_filled"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",value:(0,u.translate)("Text"),readOnly:"readonly"})),s.default.createElement("button",null,(0,u.translate)("Button")))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},s.default.createElement("div",{className:"sui-notice-content"},s.default.createElement("div",{className:"sui-notice-message"},s.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),s.default.createElement("p",null,(0,u.translate)("You have opted for no stylesheet to be enqueued. The form will inherit styles from your theme's CSS.")))))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(51),f=r(p),d=a(50),m=r(d),h=a(1),b=a(44),y=r(b),v=a(247),g=r(v),E=a(248),w=r(E),O=a(249),P=r(O),j=a(250),k=r(j),x=a(251),N=r(x),C=a(252),S=r(C),T=a(253),F=r(T),D=a(254),M=r(D),A=a(255),V=r(A),R=a(256),U=r(R),I=a(257),L=r(I),B=a(258),q=r(B),W=a(259),$=r(W),z=a(260),Y=r(z),H=a(261),Q=r(H),G=a(262),J=r(G),K=a(263),X=r(K),Z=a(264),ee=r(Z),te=a(265),ae=r(te),re=a(266),ne=r(re),oe=a(267),le=r(oe),ie=a(13),se=r(ie),ue=a(2),ce=r(ue),pe=a(7),fe=r(pe),de=a(268),me=r(de),he=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"componentDidMount",value:function(){this.loadFonts()}},{key:"componentDidUpdate",value:function(){this.loadFonts()}},{key:"loadFonts",value:function(){if(_.isUndefined(window.forminatorFonts)){var e={isObject:!0},t={action:"forminator_load_google_fonts",data:e,_wpnonce:forminatorData.gFontNonce};m.default.post(forminatorData.ajaxUrl,f.default.stringify(t)).then(function(e){window.forminatorFonts=e.data.data}).catch(function(e){console.log(e)})}}},{key:"hasIndicatorEnabled",value:function(e){return void 0!==e["submission-indicator"]&&"show"===e["submission-indicator"]}},{key:"render",value:function(){var e=(0,h.hasFieldType)("page-break",this.props.wrappers),t=(0,h.hasFieldType)("section",this.props.wrappers),a=(0,h.hasFieldWithAttribute)(this.props.wrappers,"radio","value_type","radio"),r=(0,h.hasFieldWithAttribute)(this.props.wrappers,"select","value_type","single"),n=(0,h.hasFieldWithAttribute)(this.props.wrappers,"checkbox","value_type","checkbox"),o=(0,h.hasFieldWithAttribute)(this.props.wrappers,"select","value_type","multiselect"),l=(0,h.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","picker"),s=(0,h.hasFieldType)("signature",this.props.wrappers),u=(0,h.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","select"),p=(0,h.hasFieldWithAttribute)(this.props.wrappers,"time","field_type","select")||(0,h.hasFieldWithAttribute)(this.props.wrappers,"time","time_type","twelve"),f=(0,h.hasFieldWithAttribute)(this.props.wrappers,"address","address_country","true"),d=(0,h.hasFieldWithAttribute)(this.props.wrappers,"name","prefix","true"),m=(0,h.hasFieldType)("gdprcheckbox",this.props.wrappers),b=(0,h.hasFieldType)("upload",this.props.wrappers),v=(0,h.hasFieldType)("currency",this.props.wrappers),E=(0,h.hasFieldType)("stripe",this.props.wrappers),O=(0,h.hasFieldType)("calculation",this.props.wrappers),j=(0,h.hasPostdataFieldWithMultiselect)(this.props.wrappers),x=!_.isUndefined(this.props.preset),C=x||this.hasIndicatorEnabled(this.props.settings),T=_.isUndefined(this.props.settings.paginationData)||_.isUndefined(this.props.settings.paginationData["pagination-header-design"])?"":this.props.settings.paginationData["pagination-header-design"],D=_.isUndefined(this.props.settings.paginationData)||_.isUndefined(this.props.settings.paginationData["pagination-header"])?"":this.props.settings.paginationData["pagination-header"];return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,h.translate)("Colors")),c.default.createElement("span",{className:"sui-description"},(0,h.translate)("Adjust the default color combinations to match your theme styling."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(fe.default,i({},this.props,{property:"cform-color-settings",default:""}),c.default.createElement(se.default,{value:"",boxClass:""},(0,h.translate)("Use Default Colors")),c.default.createElement(ce.default,{value:"true",label:(0,h.translate)("Custom")},c.default.createElement("div",{className:"sui-accordion"},c.default.createElement("div",{className:"sui-accordion-header"},c.default.createElement("div",null,(0,h.translate)("Element"))),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Form Container")}),c.default.createElement(g.default,this.props)),C&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Submission Indicator")}),c.default.createElement(P.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Response Success")}),c.default.createElement("p",{className:"sui-description"},(0,h.translate)("Successful response message will be displayed after form submission succeeds.")),c.default.createElement(N.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Response Error")}),c.default.createElement("p",{className:"sui-description"},(0,h.translate)("Error response message will be displayed after form submission fails.")),c.default.createElement(k.default,this.props)),(x||e&&"show"===T&&"nav"===D)&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Pagination Steps")}),c.default.createElement(X.default,this.props)),(x||e&&"show"===T&&"bar"===D)&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Pagination Progress Bar")}),c.default.createElement(ee.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Fields Basics")}),c.default.createElement(w.default,this.props)),t&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Section")}),c.default.createElement(S.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Input and Textarea")}),c.default.createElement(F.default,this.props)),(l||v||E||O)&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Input Extras")}),c.default.createElement(M.default,this.props)),(n||a||m)&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Radio and Checkbox")}),c.default.createElement(V.default,this.props)),(r||u||p||f||d)&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Select")}),c.default.createElement(U.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Dropdown List")}),c.default.createElement(L.default,this.props))),f&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Dropdown Search")}),c.default.createElement(q.default,this.props)),(o||j)&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Multi Select")}),c.default.createElement($.default,this.props)),l&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Calendar Basics")}),c.default.createElement(Y.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Calendar Table")}),c.default.createElement(J.default,this.props))),b&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("File Upload"),boxedContent:!1}),c.default.createElement(me.default,this.props)),s&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("E-Signature")}),c.default.createElement(Q.default,this.props))),e&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Button Back")}),c.default.createElement(ae.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Button Next")}),c.default.createElement(ne.default,this.props))),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Submit Button")}),c.default.createElement(le.default,this.props)))))))}}]),t}(u.Component);t.default=he},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"rgba(0,0,0,0)"),property:(0,p.getThemePrefix)(this.props)+"cform-form-border",label:(0,p.translate)("Border color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"rgba(0,0,0,0)"),property:(0,p.getThemePrefix)(this.props)+"cform-form-background",label:(0,p.translate)("Background color"),isAlpha:!0})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"cform-label-color",label:(0,p.translate)("Label")})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"cform-asterisk-color",label:(0,p.translate)("Required asterisk")})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"label-helper-color",label:(0,p.translate)("Description")})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),property:(0,p.getThemePrefix)(this.props)+"label-validation-background",label:(0,p.translate)("Error message BG"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"label-validation-color",label:"material"!==this.props.formDesign?(0,p.translate)("Error message color"):(0,p.translate)("Global error color"),description:"material"===this.props.formDesign?(0,p.translate)("This color will be used when fields throw an error as text color, border color, etc."):""})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#F8F8F8"),property:(0,p.getThemePrefix)(this.props)+"response-loading-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#666666"),property:(0,p.getThemePrefix)(this.props)+"response-loading-color",label:(0,p.translate)("Text color")})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"response-error-border",label:(0,p.translate)("Border color"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),property:(0,p.getThemePrefix)(this.props)+"response-error-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333"),property:(0,p.getThemePrefix)(this.props)+"response-error-color",label:(0,p.translate)("Text color")})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#1ABCA1"),property:(0,p.getThemePrefix)(this.props)+"response-success-border",label:(0,p.translate)("Border color"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#BCEEE6"),property:(0,p.getThemePrefix)(this.props)+"response-success-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333"),property:(0,p.getThemePrefix)(this.props)+"response-success-color",label:(0,p.translate)("Text color")})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Title color"),property:(0,p.getThemePrefix)(this.props)+"cform-title-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Subtitle color"),property:(0,p.getThemePrefix)(this.props)+"cform-subtitle-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333")})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"input-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"input-bg",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Placeholder"),property:(0,p.getThemePrefix)(this.props)+"input-placeholder",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"input-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"input-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"input-hover-bg",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"input-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"input-active-bg",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0}))),"material"!==this.props.formDesign&&c.default.createElement(y.default,{label:(0,p.translate)("Error"),value:"error"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"input-border-error",label:(0,p.translate)("Border color"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=(0,p.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","picker"),t=(0,p.hasFieldType)("calculation",this.props.wrappers),a=(0,p.hasFieldType)("currency",this.props.wrappers),r=(0,p.hasFieldType)("stripe",this.props.wrappers),n=c.default.createElement(c.default.Fragment,null,(e||r)&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"input-icon",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),label:(0,p.translate)("Icon color")})),t&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"prefix-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),label:(0,p.translate)("Prefix color")})),(a||t)&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"suffix-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),label:(0,p.translate)("Suffix color")})));return r&&(n=c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},(e||r)&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"input-icon",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),label:(0,p.translate)("Icon color")})),t&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"prefix-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),label:(0,p.translate)("Prefix color")})),(a||t)&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"suffix-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),label:(0,p.translate)("Suffix color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},r&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"input-icon-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),label:(0,p.translate)("Icon color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},r&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"input-icon-focus",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),label:(0,p.translate)("Icon color")}))))),n}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"radio-border-static",label:(0,p.translate)("Border color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"radio-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"radio-label",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")})),"flat"!==this.props.formDesign||"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Image border"),property:(0,p.getThemePrefix)(this.props)+"radio-image-border-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Image background"),property:(0,p.getThemePrefix)(this.props)+"radio-image-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Checked"),value:"checked"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"radio-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"radio-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:(0,p.getThemePrefix)(this.props)+"radio-icon",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")})),"flat"!==this.props.formDesign||"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Image border"),property:(0,p.getThemePrefix)(this.props)+"radio-image-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Image background"),property:(0,p.getThemePrefix)(this.props)+"radio-image-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E1F6FF"),isAlpha:!0}))),"material"!==this.props.formDesign&&c.default.createElement(y.default,{label:(0,p.translate)("Error"),value:"error"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"radio-border-error",label:(0,p.translate)("Border color"),isAlpha:!0})),"flat"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"radio-background-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"select-border-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"select-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:(0,p.getThemePrefix)(this.props)+"select-icon-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"select-value-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"select-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"select-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:(0,p.getThemePrefix)(this.props)+"select-icon-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"select-value-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"select-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"select-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:(0,p.getThemePrefix)(this.props)+"select-icon-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"select-value-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),"material"!==this.props.formDesign&&c.default.createElement(y.default,{label:(0,p.translate)("Error"),value:"error"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"select-border-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),property:(0,p.getThemePrefix)(this.props)+"dropdown-border",label:(0,p.translate)("Container border"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),property:(0,p.getThemePrefix)(this.props)+"dropdown-background",label:(0,p.translate)("Container BG"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"dropdown-option-color-static",label:(0,p.translate)("Option color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#DDDDDD"),property:(0,p.getThemePrefix)(this.props)+"dropdown-option-background-hover",label:(0,p.translate)("Option background"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),property:(0,p.getThemePrefix)(this.props)+"dropdown-option-color-hover",label:(0,p.translate)("Option color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Selected"),value:"selected"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),property:(0,p.getThemePrefix)(this.props)+"dropdown-option-background-active",label:(0,p.translate)("Option background"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),property:(0,p.getThemePrefix)(this.props)+"dropdown-option-color-active",label:(0,p.translate)("Option color")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=(r(m),function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,"flat"!==this.props.formDesign&&"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),property:(0,p.getThemePrefix)(this.props)+"dropdown-search-border",label:(0,p.translate)("Border color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),property:(0,p.getThemePrefix)(this.props)+"dropdown-search-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),property:(0,p.getThemePrefix)(this.props)+"dropdown-search-color",label:(0,p.translate)("Text color")})))}}]),t}(u.Component));t.default=h},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"multiselect-border",label:"material"!==this.props.formDesign?(0,p.translate)("Container border"):(0,p.translate)("Option border"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),property:(0,p.getThemePrefix)(this.props)+"multiselect-background",label:(0,p.translate)("Container BG"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"multiselect-item-color-static",label:(0,p.translate)("Option color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},"material"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),property:(0,p.getThemePrefix)(this.props)+"multiselect-border-hover",label:(0,p.translate)("Option border"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#DDDDDD"),property:(0,p.getThemePrefix)(this.props)+"multiselect-item-bg-hover",label:(0,p.translate)("Option background"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),property:(0,p.getThemePrefix)(this.props)+"multiselect-item-color-hover",label:(0,p.translate)("Option color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Selected"),value:"selected"},"material"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),property:(0,p.getThemePrefix)(this.props)+"multiselect-border-active",label:(0,p.translate)("Option border"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),property:(0,p.getThemePrefix)(this.props)+"multiselect-item-bg-active",label:(0,p.translate)("Option background"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"material"!==this.props.formDesign?"#FFFFFF":"#17A8E3",property:(0,p.getThemePrefix)(this.props)+"multiselect-item-color-active",label:(0,p.translate)("Option color")}))),"material"!==this.props.formDesign&&c.default.createElement(y.default,{label:(0,p.translate)("Error"),value:"error"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"multiselect-border-error",label:(0,p.translate)("Container border"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"container",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Container"),value:"container"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:""!==this.props.formDesign?(0,p.translate)("Border"):(0,p.translate)("Header background"),property:(0,p.getThemePrefix)(this.props)+"calendar-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:""!==this.props.formDesign?(0,p.translate)("Background"):(0,p.translate)("Main background"),property:(0,p.getThemePrefix)(this.props)+"calendar-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Navigation"),value:"navigation"},"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Arrows background"),property:(0,p.getThemePrefix)(this.props)+"calendar-arrows-bg",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Arrows color"),property:(0,p.getThemePrefix)(this.props)+"calendar-arrows-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Select"),value:"select"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border"),property:(0,p.getThemePrefix)(this.props)+"calendar-select-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#BBBBBB"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background"),property:(0,p.getThemePrefix)(this.props)+"calendar-select-bg",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Color"),property:(0,p.getThemePrefix)(this.props)+"calendar-select-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{value:"default",label:(0,p.translate)("Default")},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"signature-border-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"signature-background-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Placeholder"),property:(0,p.getThemePrefix)(this.props)+"signature-placeholder",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Signature Color"),property:(0,p.getThemePrefix)(this.props)+"signature-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Reset icon color"),property:(0,p.getThemePrefix)(this.props)+"signature-reset-icon-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")}))),c.default.createElement(y.default,{value:"hover",label:(0,p.translate)("Hover")},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"signature-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"signature-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Reset icon color"),property:(0,p.getThemePrefix)(this.props)+"signature-reset-icon-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))),c.default.createElement(y.default,{value:"error",label:(0,p.translate)("Error")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"signature-border-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table head color"),property:(0,p.getThemePrefix)(this.props)+"calendar-dweek",defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333"),isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell border"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-border-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell border"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#DDDDDD"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#DDDDDD"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")}))),c.default.createElement(y.default,{label:(0,p.translate)("Active"),value:"active"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell border"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Current"),value:"current"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell border"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-border-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-background-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#C8DEE7"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-color-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=a(15),g=r(v),E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"border",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Border"),value:"border"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Default"),property:(0,p.getThemePrefix)(this.props)+"timeline-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),"bold"!==this.props.formDesign&&"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Current"),property:(0,p.getThemePrefix)(this.props)+"timeline-border-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Label"),value:"label"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Default"),property:(0,p.getThemePrefix)(this.props)+"timeline-text",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Current"),property:(0,p.getThemePrefix)(this.props)+"timeline-text-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))),c.default.createElement(y.default,{label:(0,p.translate)("Dot"),value:"dot"},c.default.createElement(g.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Default state colors"))),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),"material"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Page number color"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(g.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Current state colors"))),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-border-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-background-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Page number color"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-color-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")})))))}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label"),property:(0,p.getThemePrefix)(this.props)+"progress-label",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Progress bar BG"),property:(0,p.getThemePrefix)(this.props)+"progress-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Progress status BG"),property:(0,p.getThemePrefix)(this.props)+"progress-background-status",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"prev-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#1ABCA1"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"prev-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"prev-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"prev-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"prev-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"prev-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"next-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#1ABCA1"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"next-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"next-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"next-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"next-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"next-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#008FCA"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#008FCA"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(44),d=r(f),m=a(269),h=r(m),b=a(270),y=r(b),v=a(271),g=r(v),E=a(272),_=r(E),w=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=(0,p.hasFieldWithAttribute)(this.props.wrappers,"upload","file-type","single")||(0,p.hasFieldWithAttribute)(this.props.wrappers,"postdata","post_image","false"),t=(0,p.hasFieldWithAttribute)(this.props.wrappers,"upload","file-type","multiple");return c.default.createElement("div",{className:"sui-box"},e&&c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Single File Uploader")}),c.default.createElement(h.default,this.props))),t&&c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Multiple Files Uploader")}),c.default.createElement(y.default,this.props)),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Uploaded File")}),c.default.createElement(g.default,this.props))),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Uploaded File Delete Button")}),c.default.createElement(_.default,this.props)))}}]),t}(u.Component);t.default=w},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#1ABC9C"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#01A383"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#01A383"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(8),d=r(f),m=a(2),h=r(m),b=a(4),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(d.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(h.default,{value:"default",label:(0,p.translate)("Default")},"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-background-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-border-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-icon-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Message text color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-text-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#666666")})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Message link color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-link-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))),c.default.createElement(h.default,{value:"hover",label:(0,p.translate)("Hover")},"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-icon-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0}))),c.default.createElement(h.default,{value:"drop",label:(0,p.translate)("Drop")},"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-background-drop",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E1F6FF"),isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-border-drop",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-icon-drop",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0}))),c.default.createElement(h.default,{value:"error",label:(0,p.translate)("Error")},"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-background-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:"flat"===this.props.formDesign?(0,p.translate)("Left border color"):(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-border-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-icon-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(8),d=r(f),m=a(2),h=r(m),b=a(4),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(d.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(h.default,{value:"default",label:(0,p.translate)("Default")},"flat"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview border color"),description:(0,p.translate)("Default state border will not appear when file uploaded is an image."),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-border-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-background-default",defaultValue:"flat"===this.props.formDesign?"#EDEDED":"#FFFFFF"})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-icon-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File name color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-name-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333")})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File size color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-size-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Loading icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-loader-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")}))),c.default.createElement(h.default,{value:"error",label:(0,p.translate)("Error")},c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview border color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-border-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562")})),"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-background-error",defaultValue:"flat"===this.props.formDesign?"#EDEDED":"#FFFFFF"})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-icon-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File size icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-error-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"rgba(0,0,0,0)"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-background-static",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-color-static",label:(0,p.translate)("Icon color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-background-hover",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-color-hover",label:(0,p.translate)("Icon color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-background-active",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-color-active",label:(0,p.translate)("Icon color")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(2),d=r(f),m=a(7),h=r(m),b=a(44),y=r(b),v=a(13),g=r(v),E=a(274),w=r(E),O=a(15),P=r(O),j=a(8),k=r(j),x=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=(0,p.hasFieldType)("page-break",this.props.wrappers),t=(0,p.hasFieldType)("section",this.props.wrappers),a=(0,p.hasFieldWithAttribute)(this.props.wrappers,"radio","value_type","radio"),r=(0,p.hasFieldWithAttribute)(this.props.wrappers,"select","value_type","single"),n=(0,p.hasFieldWithAttribute)(this.props.wrappers,"checkbox","value_type","checkbox"),o=(0,p.hasFieldWithAttribute)(this.props.wrappers,"select","value_type","multiselect"),l=(0,p.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","picker"),s=(0,p.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","select"),u=(0,p.hasFieldWithAttribute)(this.props.wrappers,"time","field_type","select")||(0,p.hasFieldWithAttribute)(this.props.wrappers,"time","time_type","twelve"),f=(0,p.hasFieldWithAttribute)(this.props.wrappers,"address","address_country","true"),m=(0,p.hasFieldWithAttribute)(this.props.wrappers,"name","prefix","true"),b=(0,p.hasFieldType)("gdprcheckbox",this.props.wrappers),v=(0,p.hasFieldType)("currency",this.props.wrappers),E=(0,p.hasFieldWithAttribute)(this.props.wrappers,"upload","file-type","single")||(0,p.hasFieldWithAttribute)(this.props.wrappers,"postdata","post_image","false"),O=(0,p.hasFieldWithAttribute)(this.props.wrappers,"upload","file-type","multiple"),j=(0,p.hasFieldType)("signature",this.props.wrappers),x=(0,p.hasFieldType)("calculation",this.props.wrappers),N=!_.isUndefined(this.props.preset),C=_.isUndefined(this.props.settings.paginationData)||_.isUndefined(this.props.settings.paginationData["pagination-header-design"])?"":this.props.settings.paginationData["pagination-header-design"],S=_.isUndefined(this.props.settings.paginationData)||_.isUndefined(this.props.settings.paginationData["pagination-header"])?"":this.props.settings.paginationData["pagination-header"];return c.default.createElement(P.default,{label:(0,p.translate)("Fonts"),description:(0,p.translate)("By default this form will inherit the fonts your theme uses. You can overwrite these fonts with custom ones from 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"}))),(N||e&&"show"===C&&"nav"===S)&&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"}))),(N||e&&"show"===C&&"bar"===S)&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Pagination Progress Bar")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-progress",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Fields Label")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-label",defaultSize:"13",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"700"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Fields Description")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-description",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Fields Error Message")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-validation",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),t&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Section Title")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-title",defaultSize:"45",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Section Subtitle")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-subtitle",defaultSize:"18",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"})))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Input and Textarea")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-input",defaultSize:"16",defaultFont:"Roboto",defaultWeight:"400"}))),x&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Input Prefix")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-input-prefix",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),(v||x)&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Input Suffix")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-input-suffix",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),(n||a||b)&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Radio and Checkbox")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-radio",defaultSize:"14",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),(r||s||u||f||m)&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Select")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-select",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Dropdown")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-dropdown",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"})))),l&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Calendar")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-calendar",defaultFont:"custom",defaultCustom:"inherit",familyOnly:!0}))),o&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Multi Select")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-multiselect",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),E&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Single File Upload")}),c.default.createElement(k.default,i({},this.props,{type:"tabs",default:"upload-single-button",extraClass:"sui-tabs-flushed"}),c.default.createElement(w.default,i({},this.props,{value:"upload-single-button",label:(0,p.translate)("Upload Button"),prefix:"upload-single-button",defaultSize:"14",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"700"})),c.default.createElement(w.default,i({},this.props,{value:"upload-single-text",label:(0,p.translate)("File Name"),prefix:"upload-single-text",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"700"})))),O&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Multiple Files Upload")}),c.default.createElement(k.default,i({},this.props,{type:"tabs",default:"upload-multiple-panel",extraClass:"sui-tabs-flushed"}),c.default.createElement(w.default,i({},this.props,{value:"upload-multiple-panel",label:(0,p.translate)("Upload Panel"),prefix:"upload-multiple-panel",defaultSize:"13",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"})),c.default.createElement(w.default,i({},this.props,{value:"upload-multiple-file-name",label:(0,p.translate)("File Name"),prefix:"upload-multiple-file-name",defaultSize:"13",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"})),c.default.createElement(w.default,i({},this.props,{value:"upload-multiple-file-size",label:(0,p.translate)("File Size"),prefix:"upload-multiple-file-size",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"})))),j&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("E-Signature Placeholder")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-esign-placeholder",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),e&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Pagination Buttons")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-pagination-buttons",defaultSize:"14",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Submit Button")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-button",defaultSize:"14",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"})))))))}}]),t}(u.Component);t.default=x},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(11),d=r(f),m=a(5),h=r(m),b=a(3),y=r(b),v=a(17),g=r(v),E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"backwardsCompat",value:function(e,t){return _.contains(t,e)||t.push(e),t}},{key:"render",value:function(){var e=(0,p.getThemePrefix)(this.props),t=e+this.props.prefix,a="basic-"===e?"":this.props.defaultFont,r=_.isUndefined(this.props.settings[t+"-font-family"])?a:this.props.settings[t+"-font-family"],n=_.isUndefined(this.props.settings[t+"-custom-family"])?this.props.defaultCustom:this.props.settings[t+"-custom-family"],o="basic-"===e?"":this.props.defaultWeight,l=_.isUndefined(this.props.settings[t+"-font-weight"])?o:this.props.settings[t+"-font-weight"],s="basic-"===e?"":this.props.defaultSize,u=_.isUndefined(this.props.settings[t+"-font-size"])?s:this.props.settings[t+"-font-size"],f=(0,p.getFontVariants)(r,window.forminatorFonts),m=this.backwardsCompat(l,f);return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Font Family"),placeholder:(0,p.translate)("Roboto"),property:t+"-font-family",defaultValue:""+(0,p.getDefaultValue)(this.props,r)}),_.map(window.forminatorFonts,function(e){return c.default.createElement("option",{value:e.family,key:e.family},e.family)}),c.default.createElement("option",{value:"",key:"inherit"},(0,p.translate)("inherit")),c.default.createElement("option",{value:"custom",key:"custom"},(0,p.translate)("Custom user font"))),"custom"===r&&c.default.createElement(y.default,i({},this.props,{type:"text",property:t+"-custom-family",defaultValue:""+(0,p.getDefaultValue)(this.props,n),placeholder:(0,p.translate)("E.g., Arial, sans-serif"),label:(0,p.translate)("Custom font family")})))),!this.props.familyOnly&&c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{type:"number",property:t+"-font-size",defaultValue:""+(0,p.getDefaultValue)(this.props,u),placeholder:(0,p.translate)("E.g., 16"),label:(0,p.translate)("Font Size"),note:"in px"}))),c.default.createElement(h.default,{cols:"6"},c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Font Weight"),placeholder:(0,p.translate)("Select font weight"),property:t+"-font-weight",defaultValue:""+(0,p.getDefaultValue)(this.props,l)}),c.default.createElement("option",{value:"",key:"inherit"},(0,p.translate)("inherit")),_.map(m,function(e){return c.default.createElement("option",{value:e,key:e},e)})))))}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(13),d=r(f),m=a(276),h=r(m),b=a(277),y=r(b),v=a(278),g=r(v),E=a(7),_=r(E),w=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Form Container")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Customize the form container's padding and border."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(_.default,i({},this.props,{property:"form-padding",settingsLabel:(0,p.translate)("Padding"),description:(0,p.translate)("By default the form will fill the available space where you insert it. You can add some padding here to better suit your theme.")}),c.default.createElement(d.default,{value:""},(0,p.translate)("None")),c.default.createElement(h.default,i({},this.props,{value:"custom",boxClass:"sui-tab-boxed"}),(0,p.translate)("Custom"))),c.default.createElement(_.default,i({},this.props,{property:"form-border",settingsLabel:(0,p.translate)("Border"),description:(0,p.translate)("Add an optional border around the form.")}),c.default.createElement(d.default,{value:""},(0,p.translate)("None")),c.default.createElement(y.default,i({},this.props,{value:"custom",boxClass:"sui-tab-boxed"}),(0,p.translate)("Custom"))),c.default.createElement(_.default,i({},this.props,{property:"fields-style",settingsLabel:(0,p.translate)("Spacing"),default:"open",description:(0,p.translate)("Choose how much spacing you want between each form field.")}),c.default.createElement(d.default,{value:"open"},(0,p.translate)("Comfortable")),c.default.createElement(d.default,{value:"enclosed"},(0,p.translate)("Compact")),c.default.createElement(g.default,i({},this.props,{value:"custom",boxClass:"sui-tab-boxed"}),(0,p.translate)("Custom")))))}}]),t}(u.Component);t.default=w},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(5),d=r(f),m=a(3),h=r(m),b=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-row",style:{marginBottom:"10px"}},c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Top"),type:"number",placeholder:"0",property:"form-padding-top"}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Bottom"),type:"number",placeholder:"0",property:"form-padding-bottom"}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Left"),type:"number",placeholder:"0",property:"form-padding-left"}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Right"),type:"number",placeholder:"0",property:"form-padding-right"})))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Set your custom padding in pixels.")))}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(11),d=(r(f),a(5)),m=r(d),h=a(3),b=r(h),y=a(17),v=r(y),g=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-row",style:{marginBottom:"10px"}},c.default.createElement(m.default,{cols:"4"},c.default.createElement(b.default,i({},this.props,{label:(0,p.translate)("Radius"),note:(0,p.translate)("in px"),type:"number",placeholder:"0",property:"form-border-radius"}))),c.default.createElement(m.default,{cols:"4"},c.default.createElement(b.default,i({},this.props,{label:(0,p.translate)("Thickness"),note:(0,p.translate)("in px"),type:"number",placeholder:"0",property:"form-border-width"}))),c.default.createElement(m.default,{cols:"4"},c.default.createElement(v.default,i({},this.props,{property:"form-border-style",label:(0,p.translate)("Style")}),c.default.createElement("option",{value:"solid"},(0,p.translate)("Solid")),c.default.createElement("option",{value:"dashed"},(0,p.translate)("Dashed")),c.default.createElement("option",{value:"dotted"},(0,p.translate)("Dotted")),c.default.createElement("option",{value:"none"},(0,p.translate)("None"))))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Note: Set the color of the border in the Colors settings area above.")))}}]),t}(u.Component);t.default=g},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(3),f=r(p),d=a(1),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(f.default,i({},this.props,{label:(0,d.translate)("Spacing"),note:(0,d.translate)("in pixels"),type:"number",placeholder:(0,d.translate)("0"),property:(0,d.getThemePrefix)(this.props)+"spacing"}))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(25),d=r(f),m=a(171),h=r(m),b=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Custom CSS")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("For more advanced customization options use custom CSS."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("div",{style:{marginBottom:"10px"}},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Enable custom CSS"),property:"use-custom-css",unWrap:!0}))),!_.isUndefined(this.props.settings["use-custom-css"])&&this.props.settings["use-custom-css"]&&c.default.createElement(h.default,i({},this.props,{property:"custom_css",type:"form"})))))}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=(r(u),a(17)),p=r(c),f=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.afterSave=a.afterSave.bind(a),a}return i(t,e),s(t,[{key:"replaceInPosition",value:function(e,t,a){return[].concat(n(e.slice(0,t)),[a],n(e.slice(t+1)))}},{key:"updateState",value:function(e){this.props.actions.builderActions.updateFields(e)}},{key:"afterSave",value:function(e){var t=(Object.assign({},this.props.wrappers),[]);if(jQuery(".field-required select").length>0){var a="";jQuery(".field-required select option:selected").map(function(){"auto"!==(a=jQuery(this).val())&&t.push(a)}),t=[].concat(n(new Set(t)))}var r=_.map(this.props.wrappers,function(e,a){return e.fields.map(function(e){return e.required=-1!==t.indexOf(e.element_id),e}),e});this.updateState(r)}}]),t}(p.default);t.default=f},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(25),d=r(f),m=a(7),h=r(m),b=a(2),y=r(b),v=a(3),g=r(v),E=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){var e=forminatorData.currentForm.settings["form-type"]||"default",t="login"===e;return _.isUndefined(this.props.settings["akismet-protection"])&&(this.props.settings["akismet-protection"]=1),forminatorData.akismetEnabled||(this.props.settings["akismet-protection"]=0),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Security")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Added layers of security to prevent spam submissions."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},"form"===this.props.moduleSlug&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Enable Honeypot protection"),property:"honeypot",description:(0,p.translate)("Enabling this feature tricks spam bots by giving them a hidden challenge only bots will see. If the bot tries the challenge we know it's not a human and prevent the form being submitted.")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Enable Akismet spam protection"),property:"akismet-protection",disabled:!forminatorData.akismetEnabled,description:(0,p.translate)("If you have installed the {{link}}Akismet anti-spam plugin{{/link}}, you can enable this option to tell Forminator how to handle submissions that Akismet flags as spam.",{components:{link:c.default.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/akismet/"})}})}),c.default.createElement(h.default,i({},this.props,{property:"akismet-protection-behavior",default:"fail",label:(0,p.translate)("How should Forminator handle spam submissions?")}),c.default.createElement(y.default,{value:"fail",boxClass:"sui-tab-boxed",label:(0,p.translate)("Fail Submission")},c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Custom error message"),placeholder:(0,p.translate)("Something went wrong."),property:"spam-fail-message",description:(0,p.translate)("Enter a custom error message to let your visitors know why the submission failed.")}))),c.default.createElement(y.default,{value:"mark_spam",label:(0,p.translate)("Mark as Spam")},c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Entries marked as spam will be captured in the database, but not shown in Submissions. Additionally, Payments, Notification emails, and other automatic processes will be blocked.")))))))),"form"===this.props.moduleSlug&&!t&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Enable logged in submission only"),property:"logged-users",description:(0,p.translate)("Lock down your form submissions to registered users only.")}))))}}]),t}(u.Component);t.default=E},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";function r(e){return window.forminatorChanges.settings=!0,{type:n,title:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateTitle=r;var n=t.UPDATE_TITLE="UPDATE_TITLE"},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.closeModal.bind(a),a.openModal=a.openModal.bind(a),a}return o(t,e),l(t,[{key:"closeModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,title:(0,u.translate)("Preview")},"preview"),jQuery("#forminator-module-styles-"+this.props.id).remove()}},{key:"openModal",value:function(e){this.props.actions.modalActions.showModal({open:!0,title:"Preview",closeModal:this.closeModal},"preview")}},{key:"render",value:function(){return s.default.createElement("button",{id:"forminator-preview-button",className:"sui-button sui-sidenav-hide-md",accessKey:"p",onClick:this.openModal,disabled:this.props.disabled},s.default.createElement("i",{className:"sui-icon-eye","aria-hidden":"true"})," ",(0,u.translate)("Preview"))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.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(356),f=(r(p),function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.closeModal.bind(a),a.openModal=a.openModal.bind(a),a}return l(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,id:"insert-fields",activeElement:jQuery(document.activeElement),focusFirst:".modal-close-button"},"insert-fields")}},{key:"render",value:function(){if("true"===this.props.header)return u.default.createElement("div",{className:"sui-box-header fui-builder-section--insert"},u.default.createElement("button",{className:"sui-button sui-button-purple forminator-open-insert-fields",onClick:this.openModal},u.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(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){function a(e,t){return e===t||e!==e&&t!==t}e.exports=a},function(e,t,a){function r(e){if(!o(e))return!1;var t=n(e);return t==i||t==s||t==l||t==u}var n=a(209),o=a(193),l="[object AsyncFunction]",i="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=r},function(e,t,a){(function(t){var a="object"==typeof t&&t&&t.Object===Object&&t;e.exports=a}).call(t,a(36))},function(e,t){function a(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,n=r.toString;e.exports=a},function(e,t,a){function r(e,t,a){var r=e[t];i.call(e,t)&&o(r,a)&&(void 0!==a||t in e)||n(e,t,a)}var n=a(363),o=a(358),l=Object.prototype,i=l.hasOwnProperty;e.exports=r},function(e,t,a){function r(e,t,a){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}var n=a(439);e.exports=r},function(e,t,a){function r(e,t){var a=l(e),r=!a&&o(e),c=!a&&!r&&i(e),f=!a&&!r&&!c&&u(e),d=a||r||c||f,m=d?n(e.length,String):[],h=m.length;for(var b in e)!t&&!p.call(e,b)||d&&("length"==b||c&&("offset"==b||"parent"==b)||f&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,h))||m.push(b);return m}var n=a(441),o=a(442),l=a(229),i=a(365),s=a(445),u=a(446),c=Object.prototype,p=c.hasOwnProperty;e.exports=r},function(e,t,a){(function(e){var r=a(83),n=a(444),o="object"==typeof t&&t&&!t.nodeType&&t,l=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=l&&l.exports===o,s=i?r.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||n;e.exports=c}).call(t,a(230)(e))},function(e,t){function a(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=a},function(e,t){function a(e,t){return function(a){return e(t(a))}}e.exports=a},function(e,t,a){function r(e){return null!=e&&o(e.length)&&!n(e)}var n=a(359),o=a(366);e.exports=r},function(e,t,a){function r(e){return l(e)?n(e,!0):o(e)}var n=a(364),o=a(451),l=a(368);e.exports=r},function(e,t){function a(){return[]}e.exports=a},function(e,t,a){var r=a(372),n=a(373),o=a(234),l=a(370),i=Object.getOwnPropertySymbols,s=i?function(e){for(var t=[];e;)r(t,o(e)),e=n(e);return t}:l;e.exports=s},function(e,t){function a(e,t){for(var a=-1,r=t.length,n=e.length;++a<r;)e[n+a]=t[a];return e}e.exports=a},function(e,t,a){var r=a(367),n=r(Object.getPrototypeOf,Object);e.exports=n},function(e,t,a){function r(e,t,a){var r=t(e);return o(e)?r:n(r,a(e))}var n=a(372),o=a(229);e.exports=r},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(15),d=r(f),m=a(20),h=r(m),b=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"toggleValue",value:function(e){this.props.updateProperty(this.requiredProp,e)}},{key:"render",value:function(){var e=_.isUndefined(this.props.state.type)?"radio":this.props.state.type,t="radio"===e?(0,p.translate)("radio button"):(0,p.translate)("checkbox"),a=t.charAt(0).toUpperCase()+t.slice(1);return c.default.createElement(d.default,null,c.default.createElement("label",{className:"sui-settings-label"},a+" "+(0,p.translate)("visibility")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("When using image options, you can hide or show the "+t+" element and its label in frontend. If no image is uploaded, the "+t+" and label will remain visible.")),c.default.createElement(h.default,i({},this.props,{settings:this.props.state,property:"input_visibility",defaultValue:"true",noWrapper:!0}),c.default.createElement("div",{value:"true"},(0,p.translate)("Show")),c.default.createElement("div",{value:"false"},(0,p.translate)("Hide"))))}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(501),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addOption=a.addOption.bind(a),a.removeOption=a.removeOption.bind(a),a.updateLabel=a.updateLabel.bind(a),a.updateValue=a.updateValue.bind(a),a}return l(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),this.moveOption=this.moveOption.bind(this);var t=!0;this.$el.find(".fui-multi-options").sortable({start:function(a,r){t&&(e.$el.find(".fui-multi-options").sortable("refreshPositions"),t=!1)},stop:function(t,a){var r=a.item.index();e.$el.find(".fui-multi-options").sortable("cancel");var n=a.item.index();e.moveOption(n,r)}})}},{key:"componentWillUnmount",value:function(){this.$el.unbind().removeData()}},{key:"updateState",value:function(e){this.setState({options:e}),this.props.updateProperty("options",e),_.isUndefined(this.props.actions)||this.props.actions.settingsActions.updateSetting("options",e)}},{key:"getPropState",value:function(){var e=[];return _.each(this.props.state.options,function(t){var a=Object.assign({},t);e.push(a)}),e}},{key:"updateLabel",value:function(e,t){var a=this.getPropState();a[e].label=t,this.updateState(a)}},{key:"updateValue",value:function(e,t){var a=this.getPropState();a[e].value=t,this.updateState(a)}},{key:"moveOption",value:function(e,t){var a=this.getPropState();a.splice(t,0,a.splice(e,1)[0]),this.updateState(a)}},{key:"removeOption",value:function(e){var t=this.getPropState();t.splice(e,1),this.updateState(t)}},{key:"addOption",value:function(){var e=this.getPropState();e.push({label:"",value:""}),this.updateState(e)}},{key:"render",value:function(){var e=this,t=this.props.state.options;return c.default.createElement("div",{className:"sui-box-builder"},c.default.createElement("div",{className:"sui-box-builder-body",ref:function(t){return e.el=t}},c.default.createElement("div",{className:"sui-builder-fields"},_.map(t,function(t,a){return c.default.createElement(d.default,i({key:a,counter:a,option:t,removeOption:e.removeOption,updateValue:e.updateValue,updateLabel:e.updateLabel},e.props))})),c.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addOption},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add Custom User Meta")),this.props.metaDescription&&t.length<=0&&c.default.createElement("span",{className:"sui-description",style:{marginTop:"30px"}},this.props.metaDescription)))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=(a(1),function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],a={minHeight:this.props.height?this.props.height:"auto"},r="";return this.props.label&&(r=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note))),s.default.createElement("div",{className:"sui-form-field"},r,s.default.createElement("textarea",{id:"forminator-field-"+this.props.property,className:"sui-form-control",style:a,placeholder:this.props.placeholder,defaultValue:t,onChange:function(t){e.updateValue(t.target.value)}}),this.props.description&&s.default.createElement("span",{className:"sui-description"},this.props.description))}}]),t}(i.Component));t.default=u},,function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var n=a(0),o=r(n),l=a(31),i=a(12),s=a(21),u=a(215),c=r(u),p=a(64),f=r(p),d=a(380),m=r(d),h=(0,c.default)(forminatorData.currentForm);f.default.setLocale(forminatorl10n.locale),window.forminatorChanges={fields:[],settings:!1},window.jQueryFormi=jQuery.noConflict(),(0,l.render)(o.default.createElement(i.Provider,{store:h},o.default.createElement(s.MemoryRouter,null,o.default.createElement(s.Route,{component:m.default}))),document.getElementById("forminator-form-builder"))},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(31),p=(r(c),a(21)),f=(a(12),a(381)),d=r(f),m=a(385),h=r(m),b=a(389),y=r(b),v=a(393),g=r(v),E=a(400),_=r(E),w=a(547),O=r(w),P=a(549),j=r(P),k=a(557),x=r(k),N=a(561),C=r(N),S=a(570),T=r(S),F=a(574),D=r(F),M=a(576),A=r(M),V=a(1),R=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(t,[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.handleBeforeunload),window.addEventListener("scroll",this.applySticky.bind(this))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.handleBeforeunload)}},{key:"applySticky",value:function(){var e=this.refs.StickyHeader;e.getBoundingClientRect().top<=parseInt(window.getComputedStyle(e).top.replace("px",""))?e.classList.add("sui-is-sticky"):e.classList.remove("sui-is-sticky")}},{key:"handleBeforeunload",value:function(e){if(window.forminatorChanges.length>0||!0===window.forminatorChanges.settings)return e.preventDefault(),e.returnValue=(0,V.translate)("You have unsaved changes, are you sure want to leave this page"),(0,V.translate)("You have unsaved changes, are you sure want to leave this page")}},{key:"render",value:function(){var e=forminatorData.currentForm.settings["form-type"]||"default";return u.default.createElement("div",null,u.default.createElement(d.default,null),u.default.createElement("div",{className:"sui-row-with-sidenav"},u.default.createElement(h.default,this.props),u.default.createElement("div",null,u.default.createElement("div",{id:"forminator-builder-status",className:"sui-box sui-box-sticky",ref:"StickyHeader"},u.default.createElement(y.default,null)),u.default.createElement(p.Route,{exact:!0,path:"/",render:function(){return u.default.createElement(p.Redirect,{to:"/builder"})}}),u.default.createElement(p.Route,{path:"/builder",component:g.default}),u.default.createElement(p.Route,{path:"/appearance",component:O.default}),"registration"===e&&u.default.createElement(p.Route,{path:"/registration",component:j.default}),"login"===e&&u.default.createElement(p.Route,{path:"/login",component:x.default}),u.default.createElement(p.Route,{path:"/behaviour",component:C.default}),u.default.createElement(p.Route,{path:"/notifications",component:T.default}),u.default.createElement(p.Route,{path:"/integrations",component:D.default}),u.default.createElement(p.Route,{path:"/settings",component:A.default}))),u.default.createElement(_.default,this.props))}}]),t}(s.Component);t.default=R},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return{id:e.settings.form_id,title:e.settings.formName||"",formType:e.settings["form-type"]||""}}function o(e){return{actions:{navigationActions:(0,i.bindActionCreators)(d,e),modalActions:(0,i.bindActionCreators)(p,e),settingsActions:(0,i.bindActionCreators)(u,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(9),s=a(82),u=r(s),c=a(71),p=r(c),f=a(355),d=r(f),m=a(382),h=function(e){return e&&e.__esModule?e:{default:e}}(m);t.default=(0,l.connect)(n,o)(h.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){return l.default.createElement("div",{className:"sui-header fui-header-with-settings"},l.default.createElement("div",{className:"fui-header-title"},l.default.createElement("h1",{className:"sui-header-title"},(0,i.translate)("Edit Form")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement(p.default,e))),l.default.createElement("div",{className:"fui-header-settings"},l.default.createElement("div",{className:"sui-actions-left"},l.default.createElement(u.default,e)),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement(p.default,e))))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=a(0),l=r(o),i=a(1),s=a(383),u=r(s),c=a(384),p=r(c)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(179),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this,t=this.props.title,a=_.isEmpty(t.trim()),r=a?"sui-form-field-error":"",n={};return"leads"===this.props.formType&&(n={borderColor:"#ddd",backgroundColor:"#fafafa",color:"#666"}),c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-form-field "+r},c.default.createElement("label",{htmlFor:"forminator-set-title",id:"forminator-set-title-label",className:"sui-screen-reader-text"},(0,p.translate)("Name your form")),c.default.createElement("input",{type:"text",value:t,placeholder:(0,p.translate)("Give your form a name"),id:"forminator-set-title",className:"sui-form-control",style:n,"aria-labelledby":"forminator-set-title-label","aria-describedby":"forminator-set-title-message","aria-required":"true",accessKey:"t",onChange:function(t){return e.props.actions.navigationActions.updateTitle(t.target.value)},disabled:"leads"===this.props.formType}),c.default.createElement("p",{role:"alert",id:"forminator-set-title-message",className:"sui-error-message",style:{display:a?"block":"none",marginBottom:0}},a&&(0,p.translate)("Please, enter a valid name."))),"leads"!==this.props.formType&&c.default.createElement(d.default,i({},this.props,{type:"form"})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return forminatorData.showDocLink?o.default.createElement("a",{href:"https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#forms",target:"_blank",className:"sui-button sui-button-ghost"},o.default.createElement("span",{className:"sui-icon-academy"})," ",(0,l.translate)("View Documentation")):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),o=function(e){return e&&e.__esModule?e:{default:e}}(n),l=a(1)},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return{id:e.settings.form_id,title:e.settings.formName||"",formType:e.settings["form-type"]||"default"}}function o(e){return{actions:{navigationActions:(0,i.bindActionCreators)(p,e),modalActions:(0,i.bindActionCreators)(u,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(9),s=a(71),u=r(s),c=a(355),p=r(c),f=a(386),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,l.connect)(n,o)(d.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){return l.default.createElement("div",{className:"sui-sidenav fui-sidenav"},l.default.createElement(s.default,e))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=a(0),l=r(o),i=a(387),s=r(i)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(21),p=a(1),f=a(388),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(t,[{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("ul",{className:"sui-vertical-tabs sui-sidenav-sticky sui-sidenav-hide-md fui-sidenav"},u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/builder",activeClassName:"current"},(0,p.translate)("Fields"))),u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/appearance",activeClassName:"current"},(0,p.translate)("Appearance"))),"registration"===this.props.formType&&u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/registration",activeClassName:"current"},(0,p.translate)("User Registration"))),"login"===this.props.formType&&u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/login",activeClassName:"current"},(0,p.translate)("User Login"))),u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/behaviour",activeClassName:"current"},(0,p.translate)("Behavior"))),u.default.createElement("li",{className:"sui-vertical-tab"},"leads"!==this.props.formType&&u.default.createElement(c.NavLink,{to:"/notifications",activeClassName:"current"},(0,p.translate)("Email Notifications")),"leads"===this.props.formType&&u.default.createElement(c.NavLink,{to:"#",activeClassName:"current",className:"sui-tooltip sui-tooltip-right sui-tooltip-constrained",style:{"--tooltip-width":"235px"},"data-tooltip":(0,p.translate)("You can configure email notifications on the parent quiz as it is shared between this form and the parent quiz.")},u.default.createElement("span",{style:{opacity:"0.4"}},(0,p.translate)("Email Notifications"),u.default.createElement("i",{className:"sui-icon-lock","aria-hidden":"true"})))),u.default.createElement("li",{className:"sui-vertical-tab"},"leads"!==this.props.formType&&u.default.createElement(c.NavLink,{to:"/integrations",activeClassName:"current"},(0,p.translate)("Integrations")),"leads"===this.props.formType&&u.default.createElement(c.NavLink,{to:"#",activeClassName:"current",className:"sui-tooltip sui-tooltip-right sui-tooltip-constrained",style:{"--tooltip-width":"235px"},"data-tooltip":(0,p.translate)("You can configure integrations on the parent quiz as it is shared between this form and the parent quiz.")},u.default.createElement("span",{style:{opacity:"0.4"}},(0,p.translate)("Integrations"),u.default.createElement("i",{className:"sui-icon-lock","aria-hidden":"true"})))),u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/settings",activeClassName:"current"},(0,p.translate)("Settings")))),u.default.createElement(d.default,this.props,u.default.createElement("option",{value:""},(0,p.translate)("Fields")),u.default.createElement("option",{value:"appearance"},(0,p.translate)("Appearance")),"registration"===this.props.formType&&u.default.createElement("option",{value:"registration"},(0,p.translate)("User Registration")),"login"===this.props.formType&&u.default.createElement("option",{value:"login"},(0,p.translate)("User Login")),u.default.createElement("option",{value:"behaviour"},(0,p.translate)("Behavior")),"leads"!==this.props.formType&&u.default.createElement(u.default.Fragment,null,u.default.createElement("option",{value:"notifications"},(0,p.translate)("Email Notifications")),u.default.createElement("option",{value:"integrations"},(0,p.translate)("Integrations"))),u.default.createElement("option",{value:"settings"},(0,p.translate)("Settings"))))}}]),t}(s.Component);t.default=m},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),SUI.select.init(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;this.props.history.push("/"+t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this;return s.default.createElement("div",{className:"sui-form-field sui-sidenav-hide-lg"},s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Navigate")),s.default.createElement("select",{className:"sui-select sui-mobile-nav",ref:function(t){return e.el=t}},this.props.children))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return{id:e.settings.form_id,status:e.settings.form_status,state:e,title:e.settings.formName||"",changed:window.forminatorChanges}}function o(e){return{actions:{settingsActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(9),s=a(82),u=r(s),c=a(71),p=r(c),f=a(390),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,l.connect)(n,o)(d.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(50),d=r(f),m=a(51),h=r(m),b=a(391),y=r(b),v=a(392),g=r(v),E=a(32),w=r(E),O=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={publishLoading:!1,draftLoading:!1},a.publish=a.publish.bind(a),a.draft=a.draft.bind(a),a}return l(t,e),s(t,[{key:"publish",value:function(){var e=this,t=this.props.state,a=t.settings,r=a.form_id,n=a.formName,o=_.isUndefined(n)?"":n,l=_.isUndefined(r)?-1:r;this.setState({publishLoading:!0});var i={action:"forminator_save_builder",_wpnonce:forminatorData.formNonce,formName:o,form_id:l,status:"publish",version:forminatorData.version,data:JSON.stringify(t)};setTimeout(function(){e.save(i,"publish")},1500)}},{key:"draft",value:function(){var e=this,t=this.props.state,a=t.settings,r=a.form_id,n=a.formName,o=_.isUndefined(n)?"":n,l=_.isUndefined(r)?-1:r;this.setState({draftLoading:!0});var i={action:"forminator_save_builder",_wpnonce:forminatorData.formNonce,formName:o,form_id:l,status:"draft",version:forminatorData.version,data:JSON.stringify(t)};setTimeout(function(){e.save(i,"draft")},1500)}},{key:"save",value:function(e,t){var a=this,r=this,n=this.props,o=n.status,l=n.state;d.default.post(forminatorData.ajaxUrl,h.default.stringify(e)).then(function(n){var i=(0,p.getFieldsByType)("stripe",l.wrappers);a.reloadPageForSubscriptionPlans(i);var s="draft"===o&&"publish"===t||_.isUndefined(o)&&"publish"===t;if(n.data.success){if(-1===e.form_id&&(a.props.actions.settingsActions.updateSetting("form_id",n.data.data),forminatorData.currentForm.settings.form_id=n.data.data,window.history.pushState({},"Edit Form",forminatorData.formEditUrl+"&id="+n.data.data)),a.props.actions.settingsActions.saveBuilder("form_status",t),s){var u=function(e){r.props.actions.modalActions.showModal({open:!1},"shortcode")};r.props.actions.modalActions.showModal({open:!0,closeModal:u},"shortcode")}}else{s&&r.props.actions.modalActions.showModal({open:!1,closeModal:a.closeModal},"publish");new w.default({type:"error",text:(0,p.translate)("Something went wrong while saving your form. Please try again.")}).open()}a.setState({publishLoading:!1,draftLoading:!1})}).catch(function(e){new w.default({type:"error",text:(0,p.translate)("Something went wrong while saving your form. Please try again.")}).open(),console.log(e),a.setState({publishLoading:!1,draftLoading:!1})})}},{key:"reloadPageForSubscriptionPlans",value:function(e){var t=!1;e.map(function(e){_.isUndefined(e.payments)||e.payments.map(function(e){_.isUndefined(e.payment_method)||"subscription"!==e.payment_method||(_.isUndefined(e.plan_id)||_.isEmpty(e.plan_id))&&(t=!0)})}),t&&(window.forminatorChanges={fields:[],settings:!1,saved:!0},location.reload())}},{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-status"},c.default.createElement(y.default,i({},this.props,{state:this.state})),c.default.createElement(g.default,i({},this.props,{publish:this.publish,draft:this.draft,state:this.state})))}}]),t}(u.Component);t.default=O},function(e,t,a){"use strict";function r(e){var t=e.status,a="publish"===t?"sui-tag-published":"sui-tag-draft",r=!(!e.state.draftLoading&&!e.state.publishLoading);return o.default.createElement("div",{className:"sui-status"},o.default.createElement("div",{className:"sui-status-module"},"Status",o.default.createElement("span",{className:"sui-tag "+a},function(){switch(t){case"publish":return(0,l.translate)("Published");default:return(0,l.translate)("Draft")}}())),r&&o.default.createElement("div",{className:"sui-status-changes"},o.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),(0,l.translate)("Saving...")),!r&&e.changed.settings&&o.default.createElement("div",{className:"sui-status-changes"},o.default.createElement("i",{className:"sui-icon-update","aria-hidden":"true"}),(0,l.translate)("Unsaved changes")),!r&&!e.changed.settings&&e.changed.saved&&o.default.createElement("div",{className:"sui-status-changes"},o.default.createElement("i",{className:"sui-icon-check-tick","aria-hidden":"true"}),(0,l.translate)("Saved")))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),o=function(e){return e&&e.__esModule?e:{default:e}}(n),l=a(1)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(356),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.publish=a.publish.bind(a),a.draft=a.draft.bind(a),a}return l(t,e),s(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"publish")}},{key:"publish",value:function(){var e=this.props,t=e.status,a=e.title;_.isEmpty(a.trim())||(this.props.publish(),("draft"===t||_.isEmpty(t))&&this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"publish"))}},{key:"draft",value:function(){var e=this.props.title;_.isEmpty(e.trim())||this.props.draft()}},{key:"render",value:function(){var e=this.props.status,t=this.props.state,a=t.draftLoading,r=t.publishLoading,n=forminatorData.currentForm.settings["form-type"]||"default";return c.default.createElement("div",{className:"sui-actions"},"leads"!==n&&c.default.createElement("button",{id:"forminator-module-save",className:"sui-button sui-button-ghost",style:{borderColor:"transparent"},disabled:!!a||r,onClick:this.draft},"publish"===e&&c.default.createElement(u.Fragment,null,c.default.createElement("span",{className:"sui-icon-unpublish","aria-hidden":"true"}),(0,p.translate)("Unpublish")),"publish"!==e&&c.default.createElement(u.Fragment,null,c.default.createElement("span",{className:"sui-icon-save","aria-hidden":"true"}),(0,p.translate)("Save Draft"))),c.default.createElement(d.default,i({},this.props,{disabled:!(!a&&!r)})),c.default.createElement("button",{id:"forminator-module-publish",className:"sui-button sui-button-blue",disabled:!(!a&&!r),onClick:this.publish},c.default.createElement("span",{className:"sui-loading-text"},c.default.createElement("span",{className:"sui-icon-web-globe-world","aria-hidden":"true"}),c.default.createElement("span",{className:"button-text"},function(){switch(e){case"publish":return(0,p.translate)("Update");default:return(0,p.translate)("Publish")}}())),c.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return{wrappers:e.wrappers,notifications:e.notifications,submitData:e.settings.submitData||{},changed:window.forminatorChanges,formType:e.settings["form-type"]||""}}function o(e){return{actions:{builderActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e),integrationActions:(0,i.bindActionCreators)(d,e),behaviorsActions:(0,i.bindActionCreators)(h,e),notificationsActions:(0,i.bindActionCreators)(y,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(9),s=a(206),u=r(s),c=a(71),p=r(c),f=a(223),d=r(f),m=a(224),h=r(m),b=a(225),y=r(b),v=a(394),g=function(e){return e&&e.__esModule?e:{default:e}}(v);t.default=(0,l.connect)(n,o)(g.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(357),f=r(p),d=a(395),m=r(d),h=a(398),b=r(h),y=a(399),v=r(y),g=a(1),E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"componentDidMount",value:function(){jQuery("html, body").animate({scrollTop:0},"fast")}},{key:"render",value:function(){var e=this,t=function(t){e.props.history.push("/"+t)},a=(0,g.hasFieldType)("page-break",this.props.wrappers);return c.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},c.default.createElement(f.default,i({},this.props,{header:"true"})),a&&c.default.createElement(b.default,this.props),c.default.createElement(m.default,this.props),c.default.createElement(v.default,this.props),c.default.createElement("div",{className:"sui-box-footer"},c.default.createElement("div",{className:"sui-actions-right"},c.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("appearance")}},(0,g.translate)("Appearance"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(357),d=r(f),m=a(396),h=r(m),b=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this;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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(397),f=r(p),d=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"isPayPalWrapper",value:function(){if(this.props.wrapper.fields.length>1)return!1;if(1===this.props.wrapper.fields.length){if("paypal"===this.props.wrapper.fields[0].type)return!0}return!1}},{key:"render",value:function(){var e=this;return c.default.createElement("div",{id:""+this.props.wrapper.wrapper_id,className:"fui-row"},this.props.wrapper.fields.map(function(t){return c.default.createElement(f.default,i({key:t.element_id,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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){n(this,t);var a=o(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 l(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,id:"field-delete",activeElement:jQuery(document.activeElement).closest("ul").siblings(".sui-dropdown-anchor"),focusFirst:".modal-close-button"},"delete")}},{key:"closeDeleteField",value:function(){this.props.actions.modalActions.showModal({open:!1,field:this.props.field,wrapper:this.props.wrapper,closeModal:this.closeDeleteField,trashField:this.trashField},"delete")}},{key:"trashField",value:function(){var e=[].concat(r(this.props.wrappers)),t=this.getWrappersWithoutCurrentField(e).filter(function(e){return!_.isEmpty(e.fields)});if(t=this.getWrappersFilterCondition(t),t=this.getPaymentFilterCondition(t),t=this.updateCols(t),this.closeMenu(),this.updateState(t),!_.isUndefined(this.props.notifications)&&!_.isEmpty(this.props.notifications)){var a=this.getNotificationFilterCondition(this.props.notifications);this.updateNotificationState(a)}}},{key:"cloneField",value:function(){var e=this,t=[].concat(r(this.props.wrappers)),a=JSON.stringify(this.props.field),n=JSON.parse(a),o=(0,c.generateWrapperId)(),l=(0,c.buildFieldObject)(n,o,12,t),i={wrapper_id:o,fields:[l]},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({labelledBy:"modal-title-field-settings",describedBy:"modal-desc-field-settings",open:!0,field:this.props.field,wrapper:this.props.wrapper,closeModal:this.closeModal,isValid:!0,id:"field-settings",activeElement:jQuery(document.activeElement).closest("ul").siblings(".sui-dropdown-anchor"),focusFirst:".modal-close-button"},"field-settings")}},{key:"startDragDrop",value:function(){this.$el.draggable({revert:!0,revertDuration:0,zIndex:100,helper:"clone",cancel:"",distance:10,appendTo:this.$main,start:jQuery.proxy(this.onDragStart,this),drag:jQuery.proxy(this.onDrag,this),stop:jQuery.proxy(this.onDragStop,this)})}},{key:"onDragStart",value:function(){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){var n=e.getEl(r.wrapper_id),o=e.getPosition(n);if(e.drops.push({id:(0,c.randNumber)(),top:o.top-50,bottom:o.center.y,left:o.left,right:o.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);if(n.length){var o=e.getPosition(n),l=n.attr("id")===e.$el.attr("id");e.drops.push({id:(0,c.randNumber)(),top:o.top,bottom:o.bottom,left:o.left,right:o.left+o.width,type:"side-before",insert:["before",n],wrapper:r,field:t,priority:5,is_me:l}),a=t}});var l=e.getEl("field-"+a.element_id),i=e.getPosition(l),s=l.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",l],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,o=a.top,l=a.left-10,i=void 0,s=void 0,u=o+n,c=l+r,p=Math.round(o+n/2),f=Math.round(l+r/2);return this.isRow(t)?(s=t.prev(),s.length>0&&(i=this.getPosition(s),o=i.center.y+20,n=p-o)):(s=t.prev(),s.length>0?(i=this.getPosition(s),l=i.center.x):r/=2),{width:r,height:n,top:o,bottom:u,left:l,right:c,center:{y:p,x:f}}}},{key:"isRow",value:function(e){return!!e.hasClass("fui-row")}},{key:"getEl",value:function(e){return jQuery("#"+e)}},{key:"showDropsDebug",value:function(){var e=this;this.drops.map(function(t){var a=jQuery('<div class="fui-drop-view"><span className="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)),o=Object.assign({},this.props.field);if(this.isWrapperDrop()){var l={wrapper_id:(0,c.generateWrapperId)(),fields:[o]},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,l).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,o);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:"updateNotificationState",value:function(e){this.props.actions.notificationsActions.updateNotifications(e)}},{key:"updateCols",value:function(e){return e.map(function(e){var t=12/e.fields.length;e.fields.map(function(e){e.cols=t})}),e}},{key:"getWrappersWithoutCurrentField",value:function(e){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:"getNotificationFilterCondition",value:function(e){var t=this;return e.map(function(e){return e.conditions=_.filter(e.conditions,function(e){return e.element_id!==t.props.field.element_id}),e})}},{key:"getPaymentFilterCondition",value:function(e){var t=this;return e.map(function(e){return e.fields.map(function(e){return _.isEmpty(e.payments)||e.payments.map(function(e){return e.conditions=_.filter(e.conditions,function(e){return e.element_id!==t.props.field.element_id}),e}),e}),e})}},{key:"insertInPosition",value:function(e,t,a){return[].concat(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:"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,o=(0,c.getRuleLabel)(a.rule,r.field_type),l=(0,c.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+" "+o+" "+l+" "+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):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&&"paypal"!==this.props.field.type&&"password"!==this.props.field.type&&"captcha"!==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 o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.closeModal.bind(a),a.editSettings=a.editSettings.bind(a),a}return o(t,e),l(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"pagination")}},{key:"editSettings",value:function(){this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal,id:"pagination-settings",activeElement:jQuery(document.activeElement),focusFirst:".modal-close-button"},"pagination")}},{key:"render",value:function(){return s.default.createElement("div",{className:"sui-box-body fui-builder-section--pagination"},s.default.createElement("div",{className:"fui-builder-field-block fui-has-info","data-field":"pagination"},s.default.createElement("span",{className:"fui-info sui-tooltip sui-tooltip-top-left sui-tooltip-constrained",style:{"--tooltip-width":"275px"},"data-tooltip":(0,u.translate)("Since you are using Page Break field(s) to divide your form into multiple pages, use the pagination settings to customize the page label, progress indicator, and the buttons on each page.")},s.default.createElement("i",{className:"sui-icon-info","aria-hidden":"true"})),s.default.createElement("div",{className:"fui-field--info",onClick:this.editSettings},s.default.createElement("span",{className:"fui-field--icon"},s.default.createElement("i",{className:"sui-icon-pagination","aria-hidden":"true"})),s.default.createElement("span",{className:"fui-field--name"},s.default.createElement("span",{className:"fui-field--label"},(0,u.translate)("Pagination")))),s.default.createElement("div",{className:"fui-field--actions"},s.default.createElement("button",{className:"sui-button-icon sui-tooltip","data-tooltip":(0,u.translate)("Edit field"),onClick:this.editSettings},s.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"})))))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.closeModal.bind(a),a.editSettings=a.editSettings.bind(a),a}return o(t,e),l(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"submit")}},{key:"editSettings",value:function(){this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"submit")}},{key:"conditionMarkup",value:function(){var e=(0,u.getFields)(this.props.wrappers),t="hide"===this.props.submitData.condition_action?(0,u.translate)("Hide"):(0,u.translate)("Show");if(!_.isUndefined(this.props.submitData.conditions)){var a=this.props.submitData.conditions[0];if(!_.isUndefined(a)){var r=_.filter(e,function(e){return e.element_id===a.element_id});if(!_.isUndefined(r)&&!_.isEmpty(r)){var n=r[0].label,o=(0,u.getRuleLabel)(a.rule,r.field_type),l=(0,u.getConditionLabel)(r[0],a.value),i=this.props.submitData.conditions.length,c="";return i-1>0&&(c="+ "+(i-1)+" "+(0,u.translate)("more condition(s)")),s.default.createElement("span",{className:"fui-builder-field-block-conditions sui-tooltip sui-tooltip-left sui-tooltip-top-right-mobile","data-tooltip":t+" "+(0,u.translate)("if")+" "+n+" "+o+" "+l+" "+c},s.default.createElement("i",{className:"sui-icon-link","aria-hidden":"true"}))}}}}},{key:"render",value:function(){var e=_.isUndefined(this.props.submitData["custom-submit-text"])?(0,u.translate)("Submit"):this.props.submitData["custom-submit-text"];return s.default.createElement("div",{className:"sui-box-body"},s.default.createElement("div",{className:"fui-builder-field-block","data-field":"submit"},s.default.createElement("div",{className:"fui-field--info",onClick:this.editSettings},s.default.createElement("span",{className:"fui-field--icon"},s.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"})),s.default.createElement("span",{className:"fui-field--name"},s.default.createElement("span",{className:"fui-field--label"},e))),s.default.createElement("div",{className:"fui-field--actions"},s.default.createElement("button",{className:"sui-button-icon sui-tooltip","data-tooltip":(0,u.translate)("Edit field"),onClick:this.editSettings},s.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}))),!_.isUndefined(this.props.submitData)&&!_.isUndefined(this.props.submitData.conditions)&&this.props.submitData.conditions.length>0&&s.default.createElement(s.default.Fragment,null,this.conditionMarkup())))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return{modal:e.modal,wrappers:e.wrappers,settings:e.settings,notifications:e.notifications,id:e.settings.form_id||-1,formType:e.settings["form-type"]||"default",skipProNotice:e.settings.skipProNotice||forminatorData.skip_pro_notice||!1}}function o(e){return{actions:{modalActions:(0,i.bindActionCreators)(p,e),builderActions:(0,i.bindActionCreators)(d,e),settingsActions:(0,i.bindActionCreators)(h,e),integrationActions:(0,i.bindActionCreators)(g,e),behaviorsActions:(0,i.bindActionCreators)(_,e),notificationsActions:(0,i.bindActionCreators)(y,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(9),s=a(401),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(71),p=r(c),f=a(206),d=r(f),m=a(82),h=r(m),b=a(225),y=r(b),v=a(223),g=r(v),E=a(224),_=r(E);t.default=(0,l.connect)(n,o)(u.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),c=a(0),p=r(c),f=a(31),d=r(f),m=a(402),h=r(m),b=a(185),y=(r(b),a(189)),v=r(y),g={"insert-fields":h.default.fieldsModal,"field-settings":h.default.settingsModal,preview:h.default.previewModal,submit:h.default.submitModal,publish:h.default.publishModal,delete:h.default.deleteModal,shortcode:h.default.shortcodeModal,applyPreset:h.default.applyPresetModal,pagination:h.default.paginationModal,notification:h.default.notificationModal,behavior:h.default.behaviorModal,integration:h.default.integrationConditionsModal,deleteNotification:h.default.deleteNotificationModal},E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),u(t,[{key:"componentDidUpdate",value:function(e){var t=this;this.$el=jQuery(this.el);var a=this;if(e.modal.modalProps.open!==this.props.modal.modalProps.open){var r=d.default.findDOMNode(this);if(this.props.modal.modalProps.open){this.focusAfterClosed=this.props.modal.modalProps.activeElement;var n=this.props.modal.modalProps.focusFirst;setTimeout(function(){"string"==typeof n?a.focusFirst=a.$el.find(n):"object"===(void 0===n?"undefined":s(n))?a.focusFirst=n:a.focusFirst=null,a.focusFirst&&a.focusFirst.length&&a.setFocus(a.focusFirst.first())},320),jQuery("#wpwrap").attr("aria-hidden","true")}this.props.modal.modalProps.open?r.removeAttribute("aria-hidden"):(jQuery("#wpwrap").attr("aria-hidden","false"),setTimeout(function(){a.setFocus(a.focusAfterClosed)},320),this.hideModalTimeout=setTimeout(function(){r.setAttribute("aria-hidden","true"),t.props.modal.modalType=null,t.forceUpdate()},300))}}},{key:"setFocus",value:function(e){if(void 0!==e){e.attr("tabindex","0"),e.blur();var t=0,a=window.setInterval(function(){e.focus(),++t>=10&&window.clearInterval(a)},10)}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.hideModalTimeout)}},{key:"render",value:function(){var e=this;if(!this.props.modal.modalType)return null;var t="sui-modal-lg",a=["sui-modal-content","sui-content-fade-in"];this.props.modal.modalProps.open||(a=["sui-modal-content","sui-content-fade-out"]);var r=g[this.props.modal.modalType];if("publish"===this.props.modal.modalType&&(t="sui-modal-sm fui-dialog-publish"),"shortcode"===this.props.modal.modalType&&(t="sui-modal-sm fui-dialog-publish"),["delete","deleteNotification","applyPreset"].includes(this.props.modal.modalType)&&(t="sui-modal-sm"),!_.isUndefined(this.props.modal.modalProps)&&!_.isUndefined(this.props.modal.modalProps.field)&&!_.isUndefined(this.props.modal.modalProps.field.type)){var n=this.props.modal.modalProps.field.type;t+="radio"===n||"checkbox"===n||"select"===n?" multivalue-modal":" "+this.props.modal.modalProps.field.type+"-modal"}return p.default.createElement("div",{className:"sui-wrap"},p.default.createElement("div",{id:"forminator-modal",className:"sui-modal sui-active "+t},p.default.createElement("div",i({role:"dialog",id:"modal-"+this.props.modal.modalProps.id,className:""+a.join(" "),"aria-modal":"true","aria-live":"polite"},this.props.modal.modalProps.labelledBy&&{"aria-labelledby":this.props.modal.modalProps.labelledBy},this.props.modal.modalProps.describedBy&&{"aria-describedby":this.props.modal.modalProps.describedBy},{ref:function(t){return e.el=t}}),p.default.createElement("div",{className:"sui-box",style:{marginBottom:0}},p.default.createElement(r,this.props)))))}}]),t}(c.Component),w=(0,v.default)(E);w.renderTo=function(e){return(0,v.default)(E,{renderTo:e})},e.exports=w},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(403),o=r(n),l=a(405),i=r(l),s=a(527),u=r(s),c=a(528),p=r(c),f=a(529),d=r(f),m=a(530),h=r(m),b=a(531),y=r(b),v=a(532),g=r(v),E=a(533),_=r(E),w=a(535),O=r(w),P=a(540),j=r(P),k=a(543),x=r(k),N=a(546),C=r(N),S={fieldsModal:o.default,settingsModal:i.default,previewModal:u.default,submitModal:p.default,publishModal:d.default,deleteModal:h.default,shortcodeModal:y.default,applyPresetModal:g.default,paginationModal:_.default,notificationModal:O.default,behaviorModal:j.default,integrationConditionsModal:x.default,deleteNotificationModal:C.default};t.default=S},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(32),d=r(f),m=a(173),h=r(m),b=a(180),y=r(b),v=a(174),g=r(v),E=a(175),w=r(E),O=a(23),P=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a.closeSettingsModal=a.closeSettingsModal.bind(a),a.insertFields=a.insertFields.bind(a),a.skipProNotice=a.skipProNotice.bind(a),a.state={fields:[]},a.hasCaptcha=!1,a.hasStripe=!1,a.hasPayPal=!1,a.hasStripePayPal=!1,a}return i(t,e),s(t,[{key:"closeSettingsModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,field:[],wrapper:[]},"field-settings");var t=(0,p.hasFieldType)("stripe",this.props.wrappers),a=(0,p.hasFieldType)("paypal",this.props.wrappers);(_.contains(this.state.fields,"stripe")&&a||_.contains(this.state.fields,"paypal")&&t)&&this.showPaymentNotice()}},{key:"insertFields",value:function(){if(this.state.fields.length){if(this.hasStripe||this.hasCaptcha||this.hasPayPal)return!1;var e=[].concat(n(this.props.wrappers)),t=this.state.fields.map(function(t){var a=(0,p.generateWrapperId)();return{wrapper_id:a,fields:[(0,p.buildFieldObjectFromSlug)(t,e,a)]}});if(forminatorData.showFieldSettings&&1===this.state.fields.length){var a=this,r=void 0!==t[0]&&t[0],o=void 0!==t[0].fields[0]&&t[0].fields[0];r&&o&&"page-break"!==o.type&&setTimeout(function(){a.props.actions.modalActions.showModal({open:!0,field:o,wrapper:r,closeModal:a.closeSettingsModal,isValid:!0},"field-settings")},500)}this.props.actions.builderActions.updateFields([].concat(n(e),n(t))),this.closeFields()}}},{key:"closeFields",value:function(){this.closeModal(),_.contains(this.state.fields,"stripe")&&_.contains(this.state.fields,"paypal")&&this.showPaymentNotice()}},{key:"skipProNotice",value:function(e){var t=this;jQuery.post(forminatorData.ajaxUrl,{action:"forminator_dismiss_notification",prop:"forminator_skip_pro_notice",_ajax_nonce:forminatorData.dismissNonce}).always(function(){t.props.actions.settingsActions.updateSetting("skipProNotice",!0)})}},{key:"toggleField",value:function(e,t){var a=void 0,r=(0,p.hasFieldType)("stripe",this.props.wrappers),o=(0,p.hasFieldType)("captcha",this.props.wrappers),l=(0,p.hasFieldType)("paypal",this.props.wrappers);if(!0!==t.target.checked){var i=this.state.fields;i.splice(i.indexOf(e),1),a={fields:i}}else a={fields:[].concat(n(this.state.fields),[e])};this.setState(a),this.hasStripePayPal=!1,_.contains(a.fields,"stripe")&&r?this.hasStripe=!0:this.hasStripe=!1,_.contains(a.fields,"paypal")&&l?this.hasPayPal=!0:this.hasPayPal=!1,_.contains(a.fields,"captcha")&&o?this.hasCaptcha=!0:this.hasCaptcha=!1}},{key:"showPaymentNotice",value:function(){new d.default({type:"info",text:"<strong>"+(0,p.translate)("Collect payments like a pro")+'</strong></p>\n\t<p style="margin-top: -10px; margin-bottom: 5px;">'+(0,p.translate)("You have added both Stripe and PayPal fields to your form. We recommend that you use the visibility conditions, so only one of them is visible at a time. For example:")+'</p>\n\t<p style="margin-top: 0; margin-bottom: 5px;">1. '+(0,p.translate)("Add an option to your form using a Radio (or Select) field that allows visitors to choose the payment method.")+'</p>\n\t<p style="margin-top: 0;">2. '+(0,p.translate)("Apply visibility conditions to both Stripe and PayPal fields so only one is visible based on the visitor's selection in the Radio (or Select) field.")}).open()}},{key:"render",value:function(){var e=this,t=forminatorData.fields.filter(function(e){return e.category}),a={},r=forminatorData.fieldsPro||[],n=(0,p.hasFieldType)("password",this.props.wrappers);t=_.filter(t,function(e){return"gdprcheckbox"!==e.slug}),("registration"!==this.props.formType&&"login"!==this.props.formType||n&&"registration"===this.props.formType)&&(t=_.filter(t,function(e){return"password"!==e.slug}));var o=_.sortBy(t,"position");return(this.hasStripe||this.hasCaptcha||this.hasPayPal||this.hasStripePayPal)&&{display:"block"},forminatorData.isPro||this.props.skipProNotice||(a={display:"block"}),c.default.createElement(c.default.Fragment,null,c.default.createElement(h.default,{closeType:"icon",closeModal:this.closeModal},c.default.createElement(w.default,{id:this.props.modal.modalProps.id,label:(0,p.translate)("Insert Fields")})),c.default.createElement("div",{className:"sui-box-body"},c.default.createElement("p",null,(0,p.translate)("Choose which fields you want to insert into your form.")),(this.hasStripe||this.hasCaptcha||this.hasPayPal||this.hasStripePayPal)&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-error sui-notice-red sui-active","aria-live":"assertive",style:{display:"block"}},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),this.hasStripe&&!this.hasStripePayPal&&c.default.createElement("p",null,(0,p.translate)("You can have only one Stripe field in your form for Stripe to work accurately. Please delete the existing Stripe field to add a new one.")),this.hasPayPal&&!this.hasStripePayPal&&c.default.createElement("p",null,(0,p.translate)("You can have only one PayPal field in your form for PayPal to work accurately. Please delete the existing PayPal field to add a new one.")),this.hasStripePayPal&&c.default.createElement("p",null,(0,p.translate)("You can have only one payment field in your form. Please delete the existing payment field to add another one.")),this.hasCaptcha&&c.default.createElement("p",null,(0,p.translate)("You can have only one captcha field in your form for captcha to work accurately. Please delete the existing captcha field to add a new one.")))))),c.default.createElement("div",{className:"sui-box-selectors sui-box-selectors-col-5",style:{margin:0}},c.default.createElement("ul",{id:"forminator-form-fields-to-insert",className:"sui-spacing-slim"},o.map(function(t){return c.default.createElement("li",{key:t.slug},c.default.createElement("label",{htmlFor:"forminator-form-field-"+t.slug,className:"sui-box-selector sui-box-selector-vertical"},c.default.createElement("input",{type:"checkbox",id:"forminator-form-field-"+t.slug,"data-field":t.slug,onChange:function(a){return e.toggleField(t.slug,a)}}),c.default.createElement("span",null,c.default.createElement("i",{className:t.icon,"aria-hidden":"true"}),t.name)))}),!forminatorData.isPro&&r.map(function(e){return c.default.createElement("li",{key:e.slug},c.default.createElement("label",{className:"sui-box-selector sui-box-selector-vertical sui-disabled"},c.default.createElement("input",{type:"radio",disabled:!0}),c.default.createElement("span",null,c.default.createElement("span",{className:e.icon,"aria-hidden":"true"}),e.name,c.default.createElement("span",{className:"sui-tag sui-tag-pro"},"Pro"))))}),!forminatorData.isPro&&_.isEmpty(r)&&c.default.createElement("li",null,c.default.createElement("label",{className:"sui-box-selector sui-box-selector-vertical sui-disabled"},c.default.createElement("input",{type:"radio",disabled:!0}),c.default.createElement("span",null,c.default.createElement("span",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,p.translate)("E-Signature"),c.default.createElement("span",{className:"sui-tag sui-tag-pro"},"Pro"))))),c.default.createElement("div",{role:"alert",id:"fui-notice-pro-fields",className:"sui-notice sui-notice-purple "+(!forminatorData.isPro&&!this.props.skipProNotice&&" sui-active"),style:a,"aria-live":"assertive"},!forminatorData.isPro&&!this.props.skipProNotice&&c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Need access to pro form fields? {{link}}Try Forminator Pro for FREE{{/link}}",{components:{link:c.default.createElement("a",{href:"https://wpmudev.com/project/forminator-pro/?utm_source=forminator&utm_medium=plugin&utm_campaign=forminator_forms_insertfields_upsell_notice",target:"_blank",style:{color:"#8d00b1"}})}}))),c.default.createElement("div",{className:"sui-notice-actions"},c.default.createElement(O.ButtonIcon,{icon:"check",iconSize:"sm",label:(0,p.translate)("Dismiss"),onClick:this.skipProNotice}))))),c.default.createElement(y.default,{alignment:"separated"},c.default.createElement(g.default,{label:(0,p.translate)("Cancel"),customClass:"sui-button-ghost forminator-builder-fields-close",closeModal:this.closeModal}),c.default.createElement("button",{id:"forminator-builder-insert-fields",className:"sui-button sui-button-blue",disabled:!this.state.fields.length||this.hasStripe||this.hasCaptcha||this.hasPayPal||this.hasStripePayPal,onClick:this.insertFields},c.default.createElement("span",{className:"sui-loading-text"},(0,p.translate)("Insert Fields")),c.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}))))}}]),t}(u.Component);t.default=P},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=this.props.filename?this.props.filename:"",t="sui-box-banner",a=(0,u.translate)("Forminator image");return _.isUndefined(this.props.logo)||!0!==this.props.logo||(t="sui-box-logo"),_.isUndefined(this.props.alt)||""===this.props.alt||(a=this.props.alt),s.default.createElement("figure",{className:t,"aria-hidden":"true"},s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+e+".png",srcSet:forminatorData.imagesUrl+"/"+e+".png 1x,\n\t\t\t\t\t"+forminatorData.imagesUrl+"/"+e+"@2x.png 2x",alt:a}))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),c=a(0),p=r(c),f=a(21),d=a(1),m=a(406),h=r(m),b=a(477),y=r(b),v=a(526),g=r(v),E=a(174),w=r(E),O=a(173),P=r(O),j=a(180),k=r(j),x=a(175),N=r(x),C={email:y.default.emailSettings,address:y.default.addressSettings,captcha:y.default.captchaSettings,date:y.default.dateSettings,signature:y.default.signatureSettings,consent:y.default.consentSettings,gdprcheckbox:y.default.gdprcheckboxSettings,hidden:y.default.hiddenSettings,html:y.default.htmlSettings,checkbox:y.default.multivalueSettings,radio:y.default.radioSettings,name:y.default.nameSettings,number:y.default.numberSettings,pagination:y.default.paginationSettings,phone:y.default.phoneSettings,postdata:y.default.postdataSettings,section:y.default.sectionSettings,select:y.default.singlevaluesettings,text:y.default.textSettings,textarea:y.default.textareaSettings,time:y.default.timeSettings,upload:y.default.uploadSettings,url:y.default.websiteSettings,calculation:y.default.calculationSettings,stripe:y.default.stripeSettings,currency:y.default.currencySettings,password:y.default.passwordSettings,paypal:y.default.paypalSettings},S=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a.updateProperty=a.updateProperty.bind(a),a.applyChanges=a.applyChanges.bind(a),a.cancelModal=a.cancelModal.bind(a),a.state=(0,h.default)(a.props.modal.modalProps.field),a}return i(t,e),u(t,[{key:"updateProperty",value:function(e,t){this.setState(n({},e,t))}},{key:"componentWillUnmount",value:function(){this.props.history.push({pathname:"/builder/"})}},{key:"applyChanges",value:function(){var e=this,t=Object.assign({},this.props.modal.modalProps.wrapper),a=t.fields.findIndex(function(t){return t.element_id===e.state.element_id});t.fields=(0,d.replaceInPosition)(t.fields,a,this.state),this.props.actions.builderActions.updateFieldSettings(t,this.state.element_id),this.closeModal()}},{key:"getDateDuration",value:function(e,t,a,r){return"-"===e?moment().subtract(t,a).format(r):moment().add(t,a).format(r)}},{key:"isValid",value:function(){var e=this,t={isValid:!0,error:!1};if("name"===this.state.type||"address"===this.state.type){var a=[];if("name"===this.state.type){if("true"!==this.state.multiple_name)return t.isValid=!0,t;a=["prefix","fname","mname","lname"]}"address"===this.state.type&&(a=["street_address","address_line","address_city","address_state","address_zip","address_country"]);var r=_.filter(a,function(t){return!!e.state[t]});if(!_.isEmpty(r))return t.isValid=!0,t;t.error=(0,d.translate)("At least one field must be enabled"),t.isValid=!1}if(this.props.modal.modalProps.isValid||(t.error=(0,d.translate)("Please fill required fields"),_.isUndefined(this.props.modal.modalProps.validationError)||_.isEmpty(this.props.modal.modalProps.validationError)||(t.error=this.props.modal.modalProps.validationError),t.isValid=!1),"radio"===this.state.type||"checkbox"===this.state.type||"select"===this.state.type||"postdata"===this.state.type&&!_.isUndefined(this.state.post_custom_fields)&&!0===this.state.post_custom_fields){_.some(this.state.options,function(e){return _.isEmpty(e.calculation)})&&"true"===this.state.calculations&&(t.error=(0,d.translate)("Calculation values are required!"),t.isValid=!1);_.some(this.state.options,function(e){return _.isEmpty(e.label)})&&(t.error=(0,d.translate)("Option labels are required!"),t.isValid=!1)}if("select"===this.state.type){var n=_.some(this.state.options,function(e){return!_.isUndefined(e.default)&&e.default});this.state.required&&_.isEmpty(this.state.placeholder)&&!n&&(t.error=(0,d.translate)("Please add a placeholder or select a default option."),t.isValid=!1)}if("postdata"===this.state.type&&((0,d.isTrue)(this.state.post_title)||(0,d.isTrue)(this.state.post_content)||(0,d.isTrue)(this.state.post_excerpt)||(t.error=(0,d.translate)("At least one of Title, Content, or Excerpt must be enabled for post data to be submitted."),t.isValid=!1)),"stripe"===this.state.type){forminatorData.hasStripe||(t.error=(0,d.translate)("Please, connect your Stripe account first!"),t.isValid=!1),_.isEmpty(this.state.payments)&&(t.error=(0,d.translate)("You need at least one payment!"),t.isValid=!1),"true"!==this.state.receipt||this.state.customer_email||(t.error=(0,d.translate)("Please select an email address for payment receipt."),t.isValid=!1);_.some(this.state.options,function(e){return _.isEmpty(e.label)})&&(t.error=(0,d.translate)("Empty labels are not allowed for meta values!"),t.isValid=!1)}t=(0,d.getPlanValidation)(t,this.state.payments),"paypal"===this.state.type&&(forminatorData.hasPayPal||(t.error=(0,d.translate)("Please connect your PayPal account first!"),t.isValid=!1),"fixed"!==this.state.amount_type||this.state.amount||(t.error=(0,d.translate)("Please enter PayPal payment amount!"),t.isValid=!1),"variable"!==this.state.amount_type||this.state.variable||(t.error=(0,d.translate)("Please select PayPal payment variable field!"),t.isValid=!1)),"calculation"===this.state.type&&(_.isUndefined(this.state.formula)||_.isEmpty(this.state.formula))&&(t.error=(0,d.translate)("Calculation formula is required!"),t.isValid=!1),"currency"===this.state.type&&parseInt(this.state.limit_min)>=parseInt(this.state.limit_max)&&(t.error=(0,d.translate)("Limit Min value should be less than Max value."),t.isValid=!1),"number"===this.state.type&&parseInt(this.state.limit_min)>=parseInt(this.state.limit_max)&&(t.error=(0,d.translate)("Limit Min value should be less than Max value."),t.isValid=!1);var o=_.isUndefined(this.state.captcha_provider)?"recaptcha":this.state.captcha_provider;if("captcha"===this.state.type&&("recaptcha"===o&&(("v2_checkbox"!==this.state.captcha_type||forminatorData.hasV2Captcha)&&("v2_invisible"!==this.state.captcha_type||forminatorData.hasV2InvisibleCaptcha)?"v3_recaptcha"!==this.state.captcha_type||forminatorData.hasV3Captcha||(t.error=(0,d.translate)("Please enter API keys."),t.isValid=!1):(t.error=(0,d.translate)("Please enter API keys."),t.isValid=!1)),"hcaptcha"===o&&(forminatorData.hasHCaptcha||(t.error=(0,d.translate)("Please enter API keys."),t.isValid=!1))),"time"===this.state.type&&!_.isUndefined(this.state.restrict_time)&&"specific"===this.state.restrict_time){var l=_.isUndefined(this.state.time_type)?"":this.state.time_type,i="twelve"===l?"h:mma":"H:mm",s=_.isUndefined(this.state.restrict_start_hour)?0:this.state.restrict_start_hour,u=_.isUndefined(this.state.restrict_start_minute)?0:this.state.restrict_start_minute,c=_.isUndefined(this.state.restrict_start_ampm)?"AM":this.state.restrict_start_ampm,p=_.isUndefined(this.state.restrict_end_hour)?0:this.state.restrict_end_hour,f=_.isUndefined(this.state.restrict_end_minute)?0:this.state.restrict_end_minute,m=_.isUndefined(this.state.restrict_end_ampm)?"AM":this.state.restrict_end_ampm,h=_.isUndefined(this.state.default_time)?"none":this.state.default_time,b=_.isUndefined(this.state.default_time_hour)?0:this.state.default_time_hour,y=_.isUndefined(this.state.default_time_minute)?0:this.state.default_time_minute,v=_.isUndefined(this.state.default_time_ampm)?"AM":this.state.default_time_ampm,g="twelve"===l?c:"",E="twelve"===l?m:"",w="twelve"===l?v:"",O=s+":"+u+g.toLowerCase(),P=moment(O,i),j=p+":"+f+E.toLowerCase(),k=moment(j,i),x=moment(b+":"+y+w,i);k.isBefore(P)?(t.error=(0,d.translate)("Please select a valid end time limit."),t.isValid=!1):"default"===h&&(x.isBefore(P)||k.isBefore(x))?(t.error=(0,d.translate)("Please fix the Default time error."),t.isValid=!1):("0:0am"===O&&"0:0pm"===j||"0:0pm"===O&&"0:0am"===j||O===j&&("0:0am"===O||"0:0pm"===O))&&(t.error=(0,d.translate)("Please fix the Start or End time."),t.isValid=!1)}if(_.isUndefined(this.state.conditions)||_.isEmpty(this.state.conditions)||_.each(this.state.conditions,function(e){_.isEmpty(e.rule)&&(t.error=(0,d.translate)("Please select rule"),t.isValid=!1)}),"date"===this.state.type&&!_.isUndefined(this.state["start-date"])&&!_.isUndefined(this.state["end-date"])){var N=this.state["start-date"],C=this.state["end-date"],S=!0;if("specific"!==N||"specific"!==C||_.isUndefined(this.state["start-specific-date"])||_.isUndefined(this.state["end-specific-date"])||!moment(this.state["end-specific-date"],"MM/DD/YYYY").isBefore(moment(this.state["start-specific-date"],"MM/DD/YYYY")))if("today"===N&&"today"===C){var T=_.isUndefined(this.state["start-offset-operator"])?"+":this.state["start-offset-operator"],F=_.isUndefined(this.state["start-offset-value"])?0:parseInt(this.state["start-offset-value"],10),D=_.isUndefined(this.state["start-offset-duration"])?"days":this.state["start-offset-duration"],M=this.getDateDuration(T,F,D,"MM/DD/YYYY"),A=_.isUndefined(this.state["end-offset-operator"])?"+":this.state["end-offset-operator"],V=_.isUndefined(this.state["end-offset-value"])?0:parseInt(this.state["end-offset-value"],10),R=_.isUndefined(this.state["end-offset-duration"])?"days":this.state["end-offset-duration"],U=this.getDateDuration(A,V,R,"MM/DD/YYYY");moment(U,"MM/DD/YYYY").isBefore(moment(M,"MM/DD/YYYY"))&&(S=!1)}else if("specific"!==N||"today"!==C||_.isUndefined(this.state["start-specific-date"])){if("today"===N&&"specific"===C&&!_.isUndefined(this.state["end-specific-date"])){var I=_.isUndefined(this.state["start-offset-operator"])?"+":this.state["start-offset-operator"],L=_.isUndefined(this.state["start-offset-value"])?0:parseInt(this.state["start-offset-value"],10),B=_.isUndefined(this.state["start-offset-duration"])?"days":this.state["start-offset-duration"],q=this.getDateDuration(I,L,B,"MM/DD/YYYY");moment(this.state["end-specific-date"],"MM/DD/YYYY").isBefore(moment(q,"MM/DD/YYYY"))&&(S=!1)}}else{var W=_.isUndefined(this.state["end-offset-operator"])?"+":this.state["end-offset-operator"],$=_.isUndefined(this.state["end-offset-value"])?0:parseInt(this.state["end-offset-value"],10),z=_.isUndefined(this.state["end-offset-duration"])?"days":this.state["end-offset-duration"],Y=this.getDateDuration(W,$,z,"MM/DD/YYYY");moment(Y,"MM/DD/YYYY").isBefore(moment(this.state["start-specific-date"],"MM/DD/YYYY"))&&(S=!1)}else S=!1;S||(t.error=(0,d.translate)("Please fix the limit Start or End date."),t.isValid=!1)}return t}},{key:"cancelModal",value:function(){this.closeModal()}},{key:"render",value:function(){var e=this,t=(0,d.getForminatorField)(this.state),a=C[t.type],r=!_.contains(["captcha","paypal"],t.type),n=!_.contains(["submit","hidden","html","page-break"],t.type),o=!_.contains(["captcha","page-break","hidden"],t.type),l=!_.contains(["page-break","paypal"],t.type),i=_.contains(["calculation","number","radio","checkbox","select","currency"],t.type),u=_.contains(["stripe","paypal"],t.type),c=_.contains(["paypal"],t.type),m=_.contains(["date"],t.type),h=_.isUndefined(this.state.field_type)?"picker":this.state.field_type,b=this.isValid(),y=b.isValid,v=b.error||"";_.isUndefined(this.props.formType)||"registration"!==this.props.formType||"password"!==this.state.type||this.props.location.pathname;return p.default.createElement(p.default.Fragment,null,p.default.createElement(P.default,{closeType:"icon",closeModal:this.closeModal},p.default.createElement(N.default,{id:this.props.modal.modalProps.id,label:(0,d.translate)("Edit Field"),tag:t.name})),p.default.createElement("div",{id:"forminator-modal-body--"+t.type,className:"sui-box-body"},p.default.createElement("div",{className:"sui-tabs sui-tabs-flushed"},p.default.createElement("div",{role:"tablist",className:"sui-tabs-menu"},r>0&&p.default.createElement(f.NavLink,{to:"/builder/labels/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Labels")),n>0&&p.default.createElement(f.NavLink,{to:"/builder/settings/",exact:!0,className:"sui-tab-item "+(this.props.location.pathname.startsWith("/builder/settings/stripe")?"active":""),activeClassName:"active",role:"tab"},(0,d.translate)("Settings")),m>0&&"picker"===h&&p.default.createElement(f.NavLink,{to:"/builder/limits/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Limits")),i>0&&p.default.createElement(f.NavLink,{to:"/builder/calculations/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Calculations")),u&&p.default.createElement(f.NavLink,{to:"/builder/advanced-settings/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Advanced")),l>0&&p.default.createElement(f.NavLink,{to:"/builder/styling/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Styling")),c>0&&p.default.createElement(f.NavLink,{to:"/builder/customize/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Customize")),o>0&&p.default.createElement(f.NavLink,{to:"/builder/visibility/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Visibility")),!_.isEmpty(t.settings)&&p.default.createElement(f.NavLink,{to:"/builder/advanced/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Advanced"))),p.default.createElement(f.Route,{exact:!0,path:"/builder/",render:function(){var e="/builder/labels";return r||(e="/builder/settings"),p.default.createElement(f.Redirect,{to:e})}}),p.default.createElement("div",{className:"sui-tabs-content"},p.default.createElement("div",{className:"sui-tab-content active",role:"tabpanel"},p.default.createElement(f.Route,{path:"/builder/labels",render:function(){return p.default.createElement(a,{type:"labels",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers,formType:e.props.formType||""})}}),p.default.createElement(f.Route,{path:"/builder/settings",render:function(){return p.default.createElement(a,{type:"settings",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers,formType:e.props.formType||""})}}),"picker"===h&&p.default.createElement(f.Route,{path:"/builder/limits",render:function(){return p.default.createElement(a,{type:"limits",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers})}}),p.default.createElement(f.Route,{path:"/builder/advanced-settings",render:function(){return p.default.createElement(a,{type:"advanced-settings",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers})}}),p.default.createElement(f.Route,{path:"/builder/calculations",render:function(){return p.default.createElement(a,{type:"calculations",updateProperty:e.updateProperty,modal:e.props.modal.modalProps,state:e.state,wrappers:e.props.wrappers})}}),p.default.createElement(f.Route,{path:"/builder/visibility",render:function(){return p.default.createElement(a,{type:"visibility",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers})}}),p.default.createElement(f.Route,{path:"/builder/styling",render:function(){return p.default.createElement(a,{type:"styling",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers})}}),p.default.createElement(f.Route,{path:"/builder/advanced",render:function(){return p.default.createElement(g.default,s({},e.props,{updateProperty:e.updateProperty,state:e.state}))}}),p.default.createElement(f.Route,{path:"/builder/customize",render:function(){return p.default.createElement(a,{type:"customize",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers})}}))))),p.default.createElement(k.default,{customClass:"sui-content-separated"},p.default.createElement(w.default,{icon:"undo",label:(0,d.translate)("Discard Changes"),customClass:"sui-button-ghost forminator-discard-field-settings",closeModal:this.closeModal}),y&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,d.translate)("Apply")),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),!y&&p.default.createElement("div",{className:"sui-tooltip","data-tooltip":v},p.default.createElement("button",{className:"sui-button forminator-save-field-settings sui-tooltip",disabled:"disabled","data-tooltip":v},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,d.translate)("Apply")),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(c.Component);t.default=S},function(e,t,a){function r(e){return n(e,o|l)}var n=a(407),o=1,l=4;e.exports=r},function(e,t,a){function r(e,t,a,D,M,A){var V,R=t&j,U=t&k,I=t&x;if(a&&(V=M?a(e,D,M,A):a(e)),void 0!==V)return V;if(!w(e))return e;var L=g(e);if(L){if(V=b(e),!R)return c(e,V)}else{var B=h(e),q=B==C||B==S;if(E(e))return u(e,R);if(B==T||B==N||q&&!M){if(V=U||q?{}:v(e),!R)return U?f(e,s(V,e)):p(e,i(V,e))}else{if(!F[B])return M?e:{};V=y(e,B,R)}}A||(A=new n);var W=A.get(e);if(W)return W;if(A.set(e,V),O(e))return e.forEach(function(n){V.add(r(n,t,a,n,e,A))}),V;if(_(e))return e.forEach(function(n,o){V.set(o,r(n,t,a,o,e,A))}),V;var $=I?U?m:d:U?keysIn:P,z=L?void 0:$(e);return o(z||e,function(n,o){z&&(o=n,n=e[o]),l(V,o,r(n,t,a,o,e,A))}),V}var n=a(408),o=a(438),l=a(362),i=a(440),s=a(450),u=a(453),c=a(454),p=a(455),f=a(457),d=a(458),m=a(459),h=a(235),b=a(464),y=a(465),v=a(471),g=a(229),E=a(365),_=a(473),w=a(193),O=a(475),P=a(228),j=1,k=2,x=4,N="[object Arguments]",C="[object Function]",S="[object GeneratorFunction]",T="[object Object]",F={};F[N]=F["[object Array]"]=F["[object ArrayBuffer]"]=F["[object DataView]"]=F["[object Boolean]"]=F["[object Date]"]=F["[object Float32Array]"]=F["[object Float64Array]"]=F["[object Int8Array]"]=F["[object Int16Array]"]=F["[object Int32Array]"]=F["[object Map]"]=F["[object Number]"]=F[T]=F["[object RegExp]"]=F["[object Set]"]=F["[object String]"]=F["[object Symbol]"]=F["[object Uint8Array]"]=F["[object Uint8ClampedArray]"]=F["[object Uint16Array]"]=F["[object Uint32Array]"]=!0,F["[object Error]"]=F[C]=F["[object WeakMap]"]=!1,e.exports=r},function(e,t,a){function r(e){var t=this.__data__=new n(e);this.size=t.size}var n=a(207),o=a(414),l=a(415),i=a(416),s=a(417),u=a(418);r.prototype.clear=o,r.prototype.delete=l,r.prototype.get=i,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t){function a(){this.__data__=[],this.size=0}e.exports=a},function(e,t,a){function r(e){var t=this.__data__,a=n(t,e);return!(a<0)&&(a==t.length-1?t.pop():l.call(t,a,1),--this.size,!0)}var n=a(208),o=Array.prototype,l=o.splice;e.exports=r},function(e,t,a){function r(e){var t=this.__data__,a=n(t,e);return a<0?void 0:t[a][1]}var n=a(208);e.exports=r},function(e,t,a){function r(e){return n(this.__data__,e)>-1}var n=a(208);e.exports=r},function(e,t,a){function r(e,t){var a=this.__data__,r=n(a,e);return r<0?(++this.size,a.push([e,t])):a[r][1]=t,this}var n=a(208);e.exports=r},function(e,t,a){function r(){this.__data__=new n,this.size=0}var n=a(207);e.exports=r},function(e,t){function a(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}e.exports=a},function(e,t){function a(e){return this.__data__.get(e)}e.exports=a},function(e,t){function a(e){return this.__data__.has(e)}e.exports=a},function(e,t,a){function r(e,t){var a=this.__data__;if(a instanceof n){var r=a.__data__;if(!o||r.length<i-1)return r.push([e,t]),this.size=++a.size,this;a=this.__data__=new l(r)}return a.set(e,t),this.size=a.size,this}var n=a(207),o=a(226),l=a(425),i=200;e.exports=r},function(e,t,a){function r(e){return!(!l(e)||o(e))&&(n(e)?m:u).test(i(e))}var n=a(359),o=a(422),l=a(193),i=a(361),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,p=Object.prototype,f=c.toString,d=p.hasOwnProperty,m=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,a){function r(e){var t=l.call(e,s),a=e[s];try{e[s]=void 0;var r=!0}catch(e){}var n=i.call(e);return r&&(t?e[s]=a:delete e[s]),n}var n=a(227),o=Object.prototype,l=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;e.exports=r},function(e,t){function a(e){return n.call(e)}var r=Object.prototype,n=r.toString;e.exports=a},function(e,t,a){function r(e){return!!o&&o in e}var n=a(423),o=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},function(e,t,a){var r=a(83),n=r["__core-js_shared__"];e.exports=n},function(e,t){function a(e,t){return null==e?void 0:e[t]}e.exports=a},function(e,t,a){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(426),o=a(433),l=a(435),i=a(436),s=a(437);r.prototype.clear=n,r.prototype.delete=o,r.prototype.get=l,r.prototype.has=i,r.prototype.set=s,e.exports=r},function(e,t,a){function r(){this.size=0,this.__data__={hash:new n,map:new(l||o),string:new n}}var n=a(427),o=a(207),l=a(226);e.exports=r},function(e,t,a){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(428),o=a(429),l=a(430),i=a(431),s=a(432);r.prototype.clear=n,r.prototype.delete=o,r.prototype.get=l,r.prototype.has=i,r.prototype.set=s,e.exports=r},function(e,t,a){function r(){this.__data__=n?n(null):{},this.size=0}var n=a(210);e.exports=r},function(e,t){function a(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=a},function(e,t,a){function r(e){var t=this.__data__;if(n){var a=t[e];return a===o?void 0:a}return i.call(t,e)?t[e]:void 0}var n=a(210),o="__lodash_hash_undefined__",l=Object.prototype,i=l.hasOwnProperty;e.exports=r},function(e,t,a){function r(e){var t=this.__data__;return n?void 0!==t[e]:l.call(t,e)}var n=a(210),o=Object.prototype,l=o.hasOwnProperty;e.exports=r},function(e,t,a){function r(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=n&&void 0===t?o:t,this}var n=a(210),o="__lodash_hash_undefined__";e.exports=r},function(e,t,a){function r(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}var n=a(211);e.exports=r},function(e,t){function a(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=a},function(e,t,a){function r(e){return n(this,e).get(e)}var n=a(211);e.exports=r},function(e,t,a){function r(e){return n(this,e).has(e)}var n=a(211);e.exports=r},function(e,t,a){function r(e,t){var a=n(this,e),r=a.size;return a.set(e,t),this.size+=a.size==r?0:1,this}var n=a(211);e.exports=r},function(e,t){function a(e,t){for(var a=-1,r=null==e?0:e.length;++a<r&&!1!==t(e[a],a,e););return e}e.exports=a},function(e,t,a){var r=a(181),n=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=n},function(e,t,a){function r(e,t){return e&&n(t,o(t),e)}var n=a(212),o=a(228);e.exports=r},function(e,t){function a(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}e.exports=a},function(e,t,a){var r=a(443),n=a(194),o=Object.prototype,l=o.hasOwnProperty,i=o.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return n(e)&&l.call(e,"callee")&&!i.call(e,"callee")};e.exports=s},function(e,t,a){function r(e){return o(e)&&n(e)==l}var n=a(209),o=a(194),l="[object Arguments]";e.exports=r},function(e,t){function a(){return!1}e.exports=a},function(e,t){function a(e,t){var a=typeof e;return!!(t=null==t?r:t)&&("number"==a||"symbol"!=a&&n.test(e))&&e>-1&&e%1==0&&e<t}var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;e.exports=a},function(e,t,a){var r=a(447),n=a(231),o=a(232),l=o&&o.isTypedArray,i=l?n(l):r;e.exports=i},function(e,t,a){function r(e){return l(e)&&o(e.length)&&!!i[n(e)]}var n=a(209),o=a(366),l=a(194),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=r},function(e,t,a){function r(e){if(!n(e))return o(e);var t=[];for(var a in Object(e))i.call(e,a)&&"constructor"!=a&&t.push(a);return t}var n=a(233),o=a(449),l=Object.prototype,i=l.hasOwnProperty;e.exports=r},function(e,t,a){var r=a(367),n=r(Object.keys,Object);e.exports=n},function(e,t,a){function r(e,t){return e&&n(t,o(t),e)}var n=a(212),o=a(369);e.exports=r},function(e,t,a){function r(e){if(!n(e))return l(e);var t=o(e),a=[];for(var r in e)("constructor"!=r||!t&&s.call(e,r))&&a.push(r);return a}var n=a(193),o=a(233),l=a(452),i=Object.prototype,s=i.hasOwnProperty;e.exports=r},function(e,t){function a(e){var t=[];if(null!=e)for(var a in Object(e))t.push(a);return t}e.exports=a},function(e,t,a){(function(e){function r(e,t){if(t)return e.slice();var a=e.length,r=u?u(a):new e.constructor(a);return e.copy(r),r}var n=a(83),o="object"==typeof t&&t&&!t.nodeType&&t,l=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=l&&l.exports===o,s=i?n.Buffer:void 0,u=s?s.allocUnsafe:void 0;e.exports=r}).call(t,a(230)(e))},function(e,t){function a(e,t){var a=-1,r=e.length;for(t||(t=Array(r));++a<r;)t[a]=e[a];return t}e.exports=a},function(e,t,a){function r(e,t){return n(e,o(e),t)}var n=a(212),o=a(234);e.exports=r},function(e,t){function a(e,t){for(var a=-1,r=null==e?0:e.length,n=0,o=[];++a<r;){var l=e[a];t(l,a,e)&&(o[n++]=l)}return o}e.exports=a},function(e,t,a){function r(e,t){return n(e,o(e),t)}var n=a(212),o=a(371);e.exports=r},function(e,t,a){function r(e){return n(e,l,o)}var n=a(374),o=a(234),l=a(228);e.exports=r},function(e,t,a){function r(e){return n(e,l,o)}var n=a(374),o=a(371),l=a(369);e.exports=r},function(e,t,a){var r=a(181),n=a(83),o=r(n,"DataView");e.exports=o},function(e,t,a){var r=a(181),n=a(83),o=r(n,"Promise");e.exports=o},function(e,t,a){var r=a(181),n=a(83),o=r(n,"Set");e.exports=o},function(e,t,a){var r=a(181),n=a(83),o=r(n,"WeakMap");e.exports=o},function(e,t){function a(e){var t=e.length,a=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(a.index=e.index,a.input=e.input),a}var r=Object.prototype,n=r.hasOwnProperty;e.exports=a},function(e,t,a){function r(e,t,a){var r=e.constructor;switch(t){case y:return n(e);case u:case c:return new r(+e);case v:return o(e,a);case g:case E:case _:case w:case O:case P:case j:case k:case x:return s(e,a);case p:return new r;case f:case h:return new r(e);case d:return l(e);case m:return new r;case b:return i(e)}}var n=a(236),o=a(467),l=a(468),i=a(469),s=a(470),u="[object Boolean]",c="[object Date]",p="[object Map]",f="[object Number]",d="[object RegExp]",m="[object Set]",h="[object String]",b="[object Symbol]",y="[object ArrayBuffer]",v="[object DataView]",g="[object Float32Array]",E="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",O="[object Int32Array]",P="[object Uint8Array]",j="[object Uint8ClampedArray]",k="[object Uint16Array]",x="[object Uint32Array]";e.exports=r},function(e,t,a){var r=a(83),n=r.Uint8Array;e.exports=n},function(e,t,a){function r(e,t){var a=t?n(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}var n=a(236);e.exports=r},function(e,t){function a(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}var r=/\w*$/;e.exports=a},function(e,t,a){function r(e){return l?Object(l.call(e)):{}}var n=a(227),o=n?n.prototype:void 0,l=o?o.valueOf:void 0;e.exports=r},function(e,t,a){function r(e,t){var a=t?n(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}var n=a(236);e.exports=r},function(e,t,a){function r(e){return"function"!=typeof e.constructor||l(e)?{}:n(o(e))}var n=a(472),o=a(373),l=a(233);e.exports=r},function(e,t,a){var r=a(193),n=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(n)return n(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();e.exports=o},function(e,t,a){var r=a(474),n=a(231),o=a(232),l=o&&o.isMap,i=l?n(l):r;e.exports=i},function(e,t,a){function r(e){return o(e)&&n(e)==l}var n=a(235),o=a(194),l="[object Map]";e.exports=r},function(e,t,a){var r=a(476),n=a(231),o=a(232),l=o&&o.isSet,i=l?n(l):r;e.exports=i},function(e,t,a){function r(e){return o(e)&&n(e)==l}var n=a(235),o=a(194),l="[object Set]";e.exports=r},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(478),o=r(n),l=a(480),i=r(l),s=a(481),u=r(s),c=a(482),p=r(c),f=a(486),d=r(f),m=a(487),h=r(m),b=a(488),y=r(b),v=a(489),g=r(v),E=a(490),_=r(E),w=a(491),O=r(w),P=a(495),j=r(P),k=a(497),x=r(k),N=a(498),C=r(N),S=a(499),T=r(S),F=a(500),D=r(F),M=a(502),A=r(M),V=a(503),R=r(V),U=a(504),I=r(U),L=a(505),B=r(L),q=a(506),W=r(q),$=a(507),z=r($),Y=a(510),H=r(Y),Q=a(511),G=r(Q),J=a(512),K=r(J),X=a(514),Z=r(X),ee=a(523),te=r(ee),ae=a(524),re=r(ae),ne=a(525),oe=r(ne),le={emailSettings:o.default,addressSettings:i.default,captchaSettings:u.default,dateSettings:p.default,signatureSettings:d.default,consentSettings:h.default,gdprcheckboxSettings:y.default,hiddenSettings:g.default,htmlSettings:_.default,multivalueSettings:O.default,nameSettings:j.default,numberSettings:x.default,paginationSettings:C.default,phoneSettings:T.default,postdataSettings:D.default,sectionSettings:A.default,singlevaluesettings:R.default,textSettings:I.default,textareaSettings:B.default,timeSettings:W.default,uploadSettings:z.default,websiteSettings:H.default,radioSettings:G.default,calculationSettings:K.default,stripeSettings:Z.default,currencySettings:te.default,passwordSettings:re.default,paypalSettings:oe.default};t.default=le},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(213),p=r(c),f=a(24),d=r(f),m=a(26),h=r(m),b=a(43),y=r(b),v=a(237),g=r(v),E=a(183),_=(r(E),a(79)),w=r(_),O=a(1),P=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return u.default.createElement(p.default,this.props);case"settings":return u.default.createElement("div",null,u.default.createElement(y.default,this.props),u.default.createElement(g.default,this.props),u.default.createElement(w.default,this.props));case"visibility":return u.default.createElement(d.default,this.props);case"styling":return u.default.createElement(h.default,this.props);default:return u.default.createElement("div",null,(0,O.translate)("Wrong field type!"))}}}]),t}(s.Component);t.default=P},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(11),d=r(f),m=a(5),h=r(m),b=a(3),y=r(b),v=a(18),g=r(v),E=a(182),w=r(E),O=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleState=a.toggleState.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateValue=a.updateValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.state={open:!1},a.fields=a.props.fields,a}return l(t,e),s(t,[{key:"removeRule",value:function(){this.props.removeRule(this.props.counter)}},{key:"updateField",value:function(e,t){this.props.updateField(this.props.counter,t)}},{key:"updateRule",value:function(e,t){this.props.updateRule(this.props.counter,t)}},{key:"updateValue",value:function(e){this.props.updateValue(this.props.counter,e.target.value)}},{key:"updateInputValue",value:function(e,t){this.props.updateInputValue(this.props.counter,t)}},{key:"toggleState",value:function(){this.setState({open:!this.state.open})}},{key:"disableSearch",value:function(){return{minimumResultsForSearch:-1}}},{key:"render",value:function(){var e=this,t="condition-"+this.props.counter,a=_.where(this.fields,{element_id:this.props.rule.element_id})[0]||{},r="consent"===a.field_type;r&&(this.props.rule.value=(0,p.translate)("checked"));var n=_.isEmpty(this.props.rule.value)?(0,p.translate)("null"):this.props.rule.value,o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],l=["day_is","day_is_not","month_is","month_is_not","is_before","is_after","is_before_n_or_more_days","is_before_less_than_n_days","is_after_n_or_more_days","is_after_less_than_n_days"],s=["Su","Mo","Tu","We","Th","Fr","Sa"];return c.default.createElement("div",{className:"sui-box fui-visibility-rule"+(!0===this.state.open?" fui-open":"")},c.default.createElement("h4",{className:"fui-visibility-rule-header"},c.default.createElement("button",{id:"forminator-field-"+t,className:"sui-box-header","aria-controls":"forminator-field-"+t+"-content","aria-expanded":this.state.open,onClick:function(){return e.toggleState()}},c.default.createElement("i",{className:"sui-icon-link fui-visibility-rule-icon","aria-hidden":"true"}),c.default.createElement("span",{className:"fui-visibility-rule-text"},c.default.createElement("strong",null,a.label)," ",("is_before_n_or_more_days"===this.props.rule.rule||"is_before_less_than_n_days"===this.props.rule.rule||"is_after_n_or_more_days"===this.props.rule.rule||"is_after_less_than_n_days"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,(0,p.getRuleLabel)(this.props.rule.rule,a.field_type,n)),!("is_before_n_or_more_days"===this.props.rule.rule||"is_before_less_than_n_days"===this.props.rule.rule||"is_after_n_or_more_days"===this.props.rule.rule||"is_after_less_than_n_days"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,(0,p.getRuleLabel)(this.props.rule.rule,a.field_type)," ",c.default.createElement("strong",null,n))),c.default.createElement("i",{className:"sui-icon-chevron-down fui-visibility-rule-arrow","aria-hidden":"true"}))),c.default.createElement("div",{role:"region",id:"forminator-field-"+t+"-content",className:"sui-box-body fui-visibility-rule-body","aria-labelledby":"forminator-field-"+t,"aria-hidden":!0!==this.state.open},c.default.createElement(g.default,i({},this.props,{elementId:t+"-field",property:"element_id",updateProperty:this.updateField,settings:this.props.rule,label:(0,p.translate)("Field")}),_.map(this.fields,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label," | ",e.element_id)})),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"6"},c.default.createElement(g.default,i({},this.props,{elementId:t+"-condrule",settings:this.props.rule,property:"rule",updateProperty:this.updateRule,label:(0,p.translate)("Condition (required)"),options:this.disableSearch()}),c.default.createElement("option",{value:""},(0,p.translate)("Select rule")),"signature"===a.field_type&&!r&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is"},(0,p.translate)("Is null")),c.default.createElement("option",{value:"is_not"},(0,p.translate)("Is not null"))),"signature"!==a.field_type&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is"},(0,p.translate)("Is")),c.default.createElement("option",{value:"is_not"},(0,p.translate)("Is not"))),a.isNumber&&!r&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_great"},(0,p.translate)("Is greater than")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less than"))),!a.isNumber&&!a.hasOptions&&!r&&"signature"!==a.field_type&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"contains"},(0,p.translate)("Contains")),c.default.createElement("option",{value:"starts"},(0,p.translate)("Starts")),c.default.createElement("option",{value:"ends"},(0,p.translate)("Ends"))),"date"===a.field_type&&("date-day"===a.field_slug||"date"===a.field_slug)&&!r&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"day_is"},(0,p.translate)("Day is")),c.default.createElement("option",{value:"day_is_not"},(0,p.translate)("Day is not"))),"date"===a.field_type&&("date-month"===a.field_slug||"date"===a.field_slug)&&!r&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"month_is"},(0,p.translate)("Month is")),c.default.createElement("option",{value:"month_is_not"},(0,p.translate)("Month is not"))),"date"===a.field_type&&"date"===a.field_slug&&!r&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_before"},(0,p.translate)("Is before")),c.default.createElement("option",{value:"is_after"},(0,p.translate)("Is after")),c.default.createElement("option",{value:"is_before_n_or_more_days"},(0,p.translate)("Is before n or more days")),c.default.createElement("option",{value:"is_before_less_than_n_days"},(0,p.translate)("Is before less than n days")),c.default.createElement("option",{value:"is_after_n_or_more_days"},(0,p.translate)("Is after n or more days")),c.default.createElement("option",{value:"is_after_less_than_n_days"},(0,p.translate)("Is after less than n days"))))),c.default.createElement(h.default,{cols:"6"},c.default.createElement(c.default.Fragment,null,a.hasOptions&&c.default.createElement(c.default.Fragment,null,c.default.createElement("label",{className:"sui-label"}," "),c.default.createElement("select",{className:"fui-select",value:this.props.rule.value,onChange:this.updateValue.bind(this)},c.default.createElement("option",{value:""},(0,p.translate)("Select option")),_.map(a.values,function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)}))),!a.hasOptions&&r&&c.default.createElement(y.default,i({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,label:(0,p.translate)("Status"),disabled:!0})),!a.hasOptions&&"signature"!==a.field_type&&!r&&(!l.includes(this.props.rule.rule)||"date"!==a.field_type)&&c.default.createElement(y.default,i({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,label:(0,p.translate)("Value")})),!a.hasOptions&&"date"===a.field_type&&("month_is"===this.props.rule.rule||"month_is_not"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,c.default.createElement("label",{className:"sui-label"}," "),c.default.createElement("select",{className:"fui-select",value:this.props.rule.value,onChange:this.updateValue.bind(this)},c.default.createElement("option",{value:""},(0,p.translate)("Select month")),_.map(o,function(e){return c.default.createElement("option",{value:e,key:e},e)}))),!a.hasOptions&&"date"===a.field_type&&("day_is"===this.props.rule.rule||"day_is_not"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,c.default.createElement("label",{className:"sui-label"}," "),c.default.createElement("select",{className:"fui-select",value:this.props.rule.value,onChange:this.updateValue.bind(this)},c.default.createElement("option",{value:""},(0,p.translate)("Select day")),_.map(s,function(e){return c.default.createElement("option",{value:e,key:e},e)}))),!a.hasOptions&&"date"===a.field_type&&("is_before"===this.props.rule.rule||"is_after"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Select date")),c.default.createElement(w.default,i({},this.props,{settings:this.props.rule,property:"value",id:t+"-value",placeholder:(0,p.translate)("20 April 2018"),updateProperty:this.updateInputValue}))),!a.hasOptions&&"date"===a.field_type&&("is_before_n_or_more_days"===this.props.rule.rule||"is_before_less_than_n_days"===this.props.rule.rule||"is_after_n_or_more_days"===this.props.rule.rule||"is_after_less_than_n_days"===this.props.rule.rule)&&c.default.createElement(y.default,i({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,label:(0,p.translate)("Number of days"),placeholder:(0,p.translate)("E.g. 10"),type:"number",minValue:"0"}))))),c.default.createElement("div",{className:"fui-visibility-rule-footer"},c.default.createElement("button",{className:"sui-button sui-button-red sui-button-ghost",onClick:this.removeRule.bind(this)},c.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,p.translate)("Delete")),c.default.createElement("button",{className:"sui-button sui-button-ghost",onClick:function(){return e.toggleState()}},(0,p.translate)("Done")))))}}]),t}(u.Component);t.default=O},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(214),y=r(b),v=a(11),g=r(v),E=a(5),w=r(E),O=a(3),P=r(O),j=a(18),k=r(j),x=a(8),N=r(x),C=a(43),S=r(C),T=a(79),F=r(T),D=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.multiFields=[{slug:"street_address",label:(0,p.translate)("Address")},{slug:"address_line",label:(0,p.translate)("Apartment, suite, etc.")},{slug:"address_city",label:(0,p.translate)("City")},{slug:"address_state",label:(0,p.translate)("State / Province")},{slug:"address_zip",label:(0,p.translate)("ZIP / Postal code")},{slug:"address_country",label:(0,p.translate)("Country")}],a}return l(t,e),s(t,[{key:"hasChildrens",value:function(e){var t=_.filter(e,function(e){return!_.isUndefined(e)});return!_.isEmpty(t)}},{key:"render",value:function(){var e=this,t=this.props.type,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(P.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:t.slug+"_label"}))),c.default.createElement(w.default,{cols:"6"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Placeholder (optional)"),"data-placeholder":(0,p.translate)("Enter Placeholder"),property:t.slug+"_placeholder"}),c.default.createElement("option",null),_.map(forminatorData.countries,function(e,t){return c.default.createElement("option",{value:e,key:t},e)})))),c.default.createElement(g.default,null,c.default.createElement(w.default,{cols:"12"},c.default.createElement(P.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:t.slug+"_description"})))))):"address_country"!==t.slug?c.default.createElement(y.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,required:e.props.state[t.slug+"_required"],key:a}),c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,null,c.default.createElement(w.default,{cols:"6"},c.default.createElement(P.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:t.slug+"_label"}))),c.default.createElement(w.default,{cols:"6"},c.default.createElement(P.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:t.slug+"_placeholder"})))),c.default.createElement(g.default,null,c.default.createElement(w.default,{cols:"12"},c.default.createElement(P.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:t.slug+"_description"})))))):void 0}));case"settings":var 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(F.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(F.default,i({},e.props,{prefix:t.slug})))}});return this.hasChildrens(n)?c.default.createElement(N.default,{default:r},n):c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"none"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("At least one field must be enabled")))));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=D},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(26),d=r(f),m=a(11),h=r(m),b=a(5),y=r(b),v=a(7),g=r(v),E=a(17),w=r(E),O=a(15),P=r(O),j=a(170),k=r(j),x=a(13),N=r(x),C=a(2),S=r(C),T=a(3),F=r(T),D=a(33),M=r(D),A=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=_.isUndefined(this.props.state.captcha_provider)?"recaptcha":this.props.state.captcha_provider,a=_.isUndefined(this.props.state.hcaptcha_error_message)?(0,p.translate)("hCaptcha verification failed. Please try again."):this.props.state.hcaptcha_error_message;switch(e){case"labels":return c.default.createElement("div",null);case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(P.default,{label:(0,p.translate)("Captcha Provider"),labelDark:!0,description:(0,p.translate)("Select your preferred CAPTCHA provider below."),sidebar:!1},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,property:"captcha_provider",default:"recaptcha"}),c.default.createElement(S.default,{value:"recaptcha",label:(0,p.translate)("reCAPTCHA")}),c.default.createElement(S.default,i({settings:this.props.state,value:"hcaptcha",label:(0,p.translate)("hCaptcha")},this.props),!forminatorData.hasHCaptcha&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red "+(!forminatorData.hasHCaptcha&&"sui-active"),style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You haven't added hCaptcha API keys in your global settings. Add your API keys {{link}}here{{/link}} and then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"&section=captcha",target:"_blank"})}})))))))),"recaptcha"===t&&c.default.createElement(P.default,{label:(0,p.translate)("reCAPTCHA type"),labelDark:!0,description:(0,p.translate)("Choose the reCAPTCHA type you want to use on your form. You can read more about the different reCAPTCHA types {{link}}here{{/link}} and then choose the one which suits you the best.",{components:{link:c.default.createElement("a",{href:"https://developers.google.com/recaptcha/docs/versions",target:"_blank"})}}),sidebar:!1},c.default.createElement(g.default,i({},this.props,{property:"captcha_type",settings:this.props.state,default:"v2_checkbox",label:""}),c.default.createElement(S.default,i({settings:this.props.state},this.props,{value:"v2_checkbox",label:(0,p.translate)("V2 Checkbox"),boxClass:forminatorData.hasV2Captcha?"sui-tab-boxed":""}),!forminatorData.hasV2Captcha&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red "+(!forminatorData.hasV2Captcha&&" sui-active"),style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You haven't added API keys for this reCAPTCHA type in your global settings. Add your API keys {{link}}here{{/link}} and then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"&section=captcha",target:"_blank"})}}))))),forminatorData.hasV2Captcha&&c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Size"),property:"captcha_size",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"normal"},(0,p.translate)("Normal")),c.default.createElement("option",{value:"compact"},(0,p.translate)("Compact")))),c.default.createElement(y.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Theme"),property:"captcha_theme",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"light"},(0,p.translate)("Light")),c.default.createElement("option",{value:"dark"},(0,p.translate)("Dark")))))),c.default.createElement(S.default,i({settings:this.props.state},this.props,{value:"v2_invisible",label:(0,p.translate)("V2 Invisible"),boxClass:forminatorData.hasV2InvisibleCaptcha?"sui-tab-boxed":""}),!forminatorData.hasV2InvisibleCaptcha&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red"+(!forminatorData.hasV2InvisibleCaptcha&&" sui-acitve"),style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You haven't added API keys for this reCAPTCHA type in your global settings. Add your API keys {{link}}here{{/link}} and then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"&section=captcha",target:"_blank"})}}))))),forminatorData.hasV2InvisibleCaptcha&&c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Theme"),property:"captcha_theme",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"light"},(0,p.translate)("Light")),c.default.createElement("option",{value:"dark"},(0,p.translate)("Dark")))),c.default.createElement(S.default,i({settings:this.props.state},this.props,{value:"v3_recaptcha",label:(0,p.translate)("reCAPTCHA V3"),boxClass:forminatorData.hasV3Captcha?"sui-tab-boxed":""}),!forminatorData.hasV3Captcha&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You haven't added API keys for this reCAPTCHA type in your global settings. Add your API keys {{link}}here{{/link}} and then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"&section=captcha",target:"_blank"})}}))))),forminatorData.hasV3Captcha&&c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("span",{className:"sui-description"},(0,p.translate)("reCAPTCHA V3 returns a score (1 is very likely a good interaction, 0 is very likely a bot) based on user interaction. Choose the score below which the verification should fail.")),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Score Threshold"),property:"score_threshold",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0.0"},(0,p.translate)("0.0")),c.default.createElement("option",{value:"0.1"},(0,p.translate)("0.1")),c.default.createElement("option",{value:"0.2"},(0,p.translate)("0.2")),c.default.createElement("option",{value:"0.3"},(0,p.translate)("0.3")),c.default.createElement("option",{value:"0.4"},(0,p.translate)("0.4")),c.default.createElement("option",{value:"0.5"},(0,p.translate)("0.5")),c.default.createElement("option",{value:"0.6"},(0,p.translate)("0.6")),c.default.createElement("option",{value:"0.7"},(0,p.translate)("0.7")),c.default.createElement("option",{value:"0.8"},(0,p.translate)("0.8")),c.default.createElement("option",{value:"0.9"},(0,p.translate)("0.9")),c.default.createElement("option",{value:"1.0"},(0,p.translate)("1.0")))))))),"hcaptcha"===t&&forminatorData.hasHCaptcha&&c.default.createElement(P.default,{label:(0,p.translate)("hCaptcha type"),labelDark:!0,description:(0,p.translate)("hCaptcha offers two different types of CAPTCHA challenges, a Checkbox and an Invisible type. Choose the hCaptcha type you want to use in your form."),sidebar:!1},c.default.createElement(g.default,i({},this.props,{property:"hcaptcha_type",settings:this.props.state,default:"hc_checkbox",label:""}),c.default.createElement(S.default,i({settings:this.props.state},this.props,{value:"hc_checkbox",label:(0,p.translate)("Checkbox"),boxClass:"sui-tab-boxed"}),c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Size"),property:"hcaptcha_size",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"normal"},(0,p.translate)("Normal")),c.default.createElement("option",{value:"compact"},(0,p.translate)("Compact")))),c.default.createElement(y.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Theme"),property:"hcaptcha_theme",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"light"},(0,p.translate)("Light")),c.default.createElement("option",{value:"dark"},(0,p.translate)("Dark")))))),c.default.createElement(S.default,i({settings:this.props.state},this.props,{value:"hc_invisible",label:(0,p.translate)("Invisible"),boxClass:"sui-tab-boxed"}),c.default.createElement(M.default,i({},this.props,{settings:this.props.state,property:"hc_invisible_notice",hideEditorOptions:"true",descriptionTop:(0,p.translate)("To comply with online privacy laws, users should be informed that this form includes an invisible CAPTCHA field.")}))))),c.default.createElement(P.default,{label:(0,p.translate)("Language"),labelDark:!0,description:(0,p.translate)("By default, the global CAPTCHA language setting will be used. However, you can manually select a different language here."),sidebar:!1},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,property:"language",fieldClass:"sui-input-md","data-placeholder":(0,p.translate)("Automatic"),hasSearch:!0}),c.default.createElement("option",null),_.map(forminatorData.captchaLangs,function(e,t){return c.default.createElement("option",{value:t,key:t},e)}))),"recaptcha"===t&&("v2_invisible"===this.props.state.captcha_type&&forminatorData.hasV2InvisibleCaptcha||"v3_recaptcha"===this.props.state.captcha_type&&forminatorData.hasV3Captcha)&&c.default.createElement(P.default,{label:(0,p.translate)("Badge Position"),labelDark:!0,description:(0,p.translate)("Select where the reCAPTCHA badge will be displayed on your page."),sidebar:!1},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"captcha_badge",defaultValue:"inline",radioClass:"sui-radio-sm"}),c.default.createElement(N.default,{value:"bottomright",hasImage:!0,image1x:"recaptcha-bottomright.png",image2x:"recaptcha-bottomright@2x.png",label:(0,p.translate)("Bottom Right")}),c.default.createElement(N.default,{value:"bottomleft",hasImage:!0,image1x:"recaptcha-bottomleft.png",image2x:"recaptcha-bottomleft@2x.png",label:(0,p.translate)("Bottom Left")}),c.default.createElement(N.default,{value:"inline",hasImage:!0,image1x:"recaptcha-inline.png",image2x:"recaptcha-inline@2x.png",label:(0,p.translate)("Inline in Form")}))),c.default.createElement(P.default,{label:(0,p.translate)("Error Message"),labelDark:!0,sidebar:!1},"recaptcha"===t&&c.default.createElement(c.default.Fragment,null,c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Choose the error message you want to display on your form when reCAPTCHA verification fails.")),c.default.createElement(F.default,i({},this.props,{type:"text",property:"recaptcha_error_message",settings:this.props.state}))),"hcaptcha"===t&&c.default.createElement(c.default.Fragment,null,c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Choose the error message you want to display on your form when hCaptcha verification fails.")),c.default.createElement(F.default,i({},this.props,{type:"text",property:"hcaptcha_error_message",settings:this.props.state,defaultValue:a})))));case"visibility":return c.default.createElement("div",null);case"styling":return c.default.createElement(d.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=A},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(43),y=r(b),v=a(2),g=r(v),E=a(20),_=r(E),w=a(7),O=r(w),P=a(11),j=r(P),k=a(5),x=r(k),N=a(3),C=r(N),S=a(17),T=r(S),F=a(13),D=r(F),M=a(182),A=r(M),V=a(44),R=r(V),U=a(79),I=r(U),L=a(483),B=r(L),q=a(15),W=r(q),$=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=this.props.state.field_type,a=(0,p.translate)("Note: The query parameter's value passed in URL should match with the selected date format.");switch(e){case"labels":return c.default.createElement(O.default,i({},this.props,{property:"field_type",settings:this.props.state,default:"picker",label:(0,p.translate)("Type"),divClass:"sui-tabs-content-lg"}),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"picker",label:(0,p.translate)("Calendar")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(T.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Date Format"),placeholder:(0,p.translate)("Date Format"),property:"date_format"}),c.default.createElement("option",{value:"yy-mm-dd"},(0,p.translate)("Y-m-d")),c.default.createElement("option",{value:"mm-dd-yy"},(0,p.translate)("m-d-Y")),c.default.createElement("option",{value:"dd-mm-yy"},(0,p.translate)("d-m-Y")),c.default.createElement("option",{value:"yy/mm/dd"},(0,p.translate)("Y/m/d")),c.default.createElement("option",{value:"mm/dd/yy"},(0,p.translate)("m/d/Y")),c.default.createElement("option",{value:"dd/mm/yy"},(0,p.translate)("d/m/Y")),c.default.createElement("option",{value:"yy.mm.dd"},(0,p.translate)("Y.m.d")),c.default.createElement("option",{value:"mm.dd.yy"},(0,p.translate)("m.d.Y")),c.default.createElement("option",{value:"dd.mm.yy"},(0,p.translate)("d.m.Y"))))),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(_.default,i({property:"icon",settings:this.props.state},this.props,{label:(0,p.translate)("Calendar Icon")}),c.default.createElement("span",{value:"true"},(0,p.translate)("Show")),c.default.createElement("span",{value:"false"},(0,p.translate)("Hide")))))),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"select",label:(0,p.translate)("Dropdowns")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(T.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Date Format"),placeholder:(0,p.translate)("Date Format"),property:"date_format"}),c.default.createElement("option",{value:"yy-mm-dd"},(0,p.translate)("Y-m-d")),c.default.createElement("option",{value:"mm-dd-yy"},(0,p.translate)("m-d-Y")),c.default.createElement("option",{value:"dd-mm-yy"},(0,p.translate)("d-m-Y")),c.default.createElement("option",{value:"yy/mm/dd"},(0,p.translate)("Y/m/d")),c.default.createElement("option",{value:"mm/dd/yy"},(0,p.translate)("m/d/Y")),c.default.createElement("option",{value:"dd/mm/yy"},(0,p.translate)("d/m/Y")),c.default.createElement("option",{value:"yy.mm.dd"},(0,p.translate)("Y.m.d")),c.default.createElement("option",{value:"mm.dd.yy"},(0,p.translate)("m.d.Y")),c.default.createElement("option",{value:"dd.mm.yy"},(0,p.translate)("d.m.Y"))))),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Fields")),c.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",style:{marginTop:"10px"}},c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Month")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"month_label"}))))),c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Day")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"day_label"}))))),c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Year")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"year_label"}))))))),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"input",label:(0,p.translate)("Text inputs")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(T.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Date Format"),placeholder:(0,p.translate)("Date Format"),property:"date_format"}),c.default.createElement("option",{value:"yy-mm-dd"},(0,p.translate)("Y-m-d")),c.default.createElement("option",{value:"mm-dd-yy"},(0,p.translate)("m-d-Y")),c.default.createElement("option",{value:"dd-mm-yy"},(0,p.translate)("d-m-Y")),c.default.createElement("option",{value:"yy/mm/dd"},(0,p.translate)("Y/m/d")),c.default.createElement("option",{value:"mm/dd/yy"},(0,p.translate)("m/d/Y")),c.default.createElement("option",{value:"dd/mm/yy"},(0,p.translate)("d/m/Y")),c.default.createElement("option",{value:"yy.mm.dd"},(0,p.translate)("Y.m.d")),c.default.createElement("option",{value:"mm.dd.yy"},(0,p.translate)("m.d.Y")),c.default.createElement("option",{value:"dd.mm.yy"},(0,p.translate)("d.m.Y"))))),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Fields")),c.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",style:{marginTop:"10px"}},c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Month")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"month_label"}))),c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter placeholder"),property:"month_placeholder"}))))),c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Day")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"day_label"}))),c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter placeholder"),property:"day_placeholder"}))))),c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Year")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"year_label"}))),c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter placeholder"),property:"year_placeholder"}))))))));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,this.props),"input"!==t&&c.default.createElement(W.default,{label:(0,p.translate)("Default Date"),labelDark:!0,description:(0,p.translate)("Use this feature to specify a default selected date."),sidebar:!1},c.default.createElement(O.default,i({},this.props,{property:"default_date",settings:this.props.state,default:"none",label:""}),c.default.createElement(D.default,{value:"none"},(0,p.translate)("None")),c.default.createElement(D.default,{value:"today"},(0,p.translate)("Today")),c.default.createElement(g.default,i({},this.props,{settings:this.props.state,value:"custom",label:(0,p.translate)("Future Date"),boxClass:"sui-tab-boxed"}),c.default.createElement(A.default,i({},this.props,{settings:this.props.state,property:"date",dateFormat:this.props.state.date_format||"",placeholder:(0,p.translate)("20 April 2018")}))))),"select"===t&&c.default.createElement(W.default,{label:(0,p.translate)("Year Range"),labelDark:!0,description:(0,p.translate)("By default, we select 100 years in the past, and 100 years in the future for the year dropdown field. You can set a custom year range to display in the year dropdown below."),sidebar:!1},c.default.createElement("div",{className:"fui-form-field--row"},c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"4"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("From"),placeholder:(0,p.translate)("1920"),property:"min_year",type:"number"}))),c.default.createElement(x.default,{cols:"4"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("To"),placeholder:(0,p.translate)("2030"),property:"max_year",type:"number"})))))),c.default.createElement(I.default,i({},this.props,{notice:a})));case"limits":return c.default.createElement(B.default,this.props);case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=$},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(17),d=r(f),m=a(11),h=r(m),b=a(5),y=r(b),v=a(182),g=r(v),E=a(3),w=r(E),O=a(13),P=r(O),j=a(46),k=r(j),x=a(2),N=r(x),C=a(7),S=r(C),T=a(484),F=r(T),D=a(485),M=r(D),A=a(15),V=r(A),R=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"getDateFields",value:function(){var e=this,t=[];return(0,p.getFieldsByType)("date",this.props.wrappers).map(function(a){e.props.state.element_id!==a.element_id&&t.push({value:a.element_id,label:a.field_label})}),t}},{key:"disableSearch",value:function(){return{minimumResultsForSearch:-1}}},{key:"render",value:function(){var e=_.isUndefined(this.props.state["start-date"])?"":this.props.state["start-date"],t=_.isUndefined(this.props.state["end-date"])?"":this.props.state["end-date"];return c.default.createElement(c.default.Fragment,null,c.default.createElement(V.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Start & End date")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose a start and end date limit for the calendar to restrict the date selection between a specific date range. Note that we will use the timezone set in your {{a}}WordPress Settings{{/a}}.",{components:{a:c.default.createElement("a",{href:forminatorData.adminUrl+"options-general.php",target:"_blank"})}})),c.default.createElement("div",{className:"fui-form-field--row"},c.default.createElement("div",{className:"fui-form-field--col",style:{maxWidth:240}},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Start Date"),settings:this.props.state,property:"start-date",options:this.disableSearch()}),c.default.createElement("option",{value:""},(0,p.translate)("No limit")),c.default.createElement("option",{value:"specific"},(0,p.translate)("Specific date")),c.default.createElement("option",{value:"today"},(0,p.translate)("Today")),this.getDateFields().length>0&&c.default.createElement("optgroup",{label:(0,p.translate)("Date fields")},_.map(this.getDateFields(),function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)})))),"specific"===e&&c.default.createElement("div",{className:"fui-form-field--col"},c.default.createElement(g.default,i({},this.props,{label:" ",settings:this.props.state,property:"start-specific-date",dateFormat:"mm/dd/yy",placeholder:(0,p.translate)("Pick a date"),calendarIcon:"left"}))),""!==e&&"specific"!==e&&c.default.createElement("div",{className:"fui-form-field--col"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Offset (optional)")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"start-offset-operator",fieldClass:"sui-input-sm",defaultValue:"+",options:this.disableSearch()}),c.default.createElement("option",{value:"+"},(0,p.translate)("+")),c.default.createElement("option",{value:"-"},(0,p.translate)("-"))),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("0"),property:"start-offset-value",fieldClass:"sui-input-sm",defaultValue:"0"})),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"start-offset-duration",fieldClass:"fui-field-full",defaultValue:"days",options:this.disableSearch()}),c.default.createElement("option",{value:"days"},(0,p.translate)("days")),c.default.createElement("option",{value:"weeks"},(0,p.translate)("weeks")),c.default.createElement("option",{value:"months"},(0,p.translate)("months")),c.default.createElement("option",{value:"years"},(0,p.translate)("years"))))))),c.default.createElement("div",{className:"fui-form-field--row"},c.default.createElement("div",{className:"fui-form-field--col",style:{maxWidth:240}},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("End Date"),settings:this.props.state,property:"end-date",options:this.disableSearch()}),c.default.createElement("option",{value:""},(0,p.translate)("No limit")),c.default.createElement("option",{value:"specific"},(0,p.translate)("Specific date")),c.default.createElement("option",{value:"today"},(0,p.translate)("Today")),this.getDateFields().length>0&&c.default.createElement("optgroup",{label:(0,p.translate)("Date fields")},_.map(this.getDateFields(),function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)})))),"specific"===t&&c.default.createElement("div",{className:"fui-form-field--col"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,property:"end-specific-date",dateFormat:"mm/dd/yy",placeholder:(0,p.translate)("Pick a date"),calendarIcon:"left"}))),""!==t&&"specific"!==t&&c.default.createElement("div",{className:"fui-form-field--col"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Offset (optional)")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"end-offset-operator",fieldClass:"sui-input-sm",defaultValue:"+",options:this.disableSearch()}),c.default.createElement("option",{value:"+"},(0,p.translate)("+")),c.default.createElement("option",{value:"-"},(0,p.translate)("-"))),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("0"),property:"end-offset-value",fieldClass:"sui-input-sm",defaultValue:"0"})),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"end-offset-duration",fieldClass:"fui-field-full",defaultValue:"days",options:this.disableSearch()}),c.default.createElement("option",{value:"days"},(0,p.translate)("days")),c.default.createElement("option",{value:"weeks"},(0,p.translate)("weeks")),c.default.createElement("option",{value:"months"},(0,p.translate)("months")),c.default.createElement("option",{value:"years"},(0,p.translate)("years")))))))),c.default.createElement(V.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Days of the week")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose which days of the week should be available on the calendar.")),c.default.createElement(S.default,i({},this.props,{property:"howto-restrict",settings:this.props.state,default:"all"}),c.default.createElement(P.default,{value:"all"},(0,p.translate)("All days")),c.default.createElement(N.default,i({},this.props,{settings:this.props.state,value:"week",label:(0,p.translate)("Selected days"),boxClass:"sui-tab-boxed"}),c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"4"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"sunday",label:(0,p.translate)("Sunday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"wednesday",label:(0,p.translate)("Wednesday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"saturday",label:(0,p.translate)("Saturday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),c.default.createElement(y.default,{cols:"4"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"monday",label:(0,p.translate)("Monday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"thursday",label:(0,p.translate)("Thursday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),c.default.createElement(y.default,{cols:"4"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"tuesday",label:(0,p.translate)("Tuesday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"friday",label:(0,p.translate)("Friday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))))))),c.default.createElement(V.default,null,c.default.createElement(F.default,i({},this.props,{label:(0,p.translate)("Disable dates"),hasSettingsLabel:"dark",description:(0,p.translate)("Use this setting to disable specific dates on the calendar."),settings:this.props.state,property:"disabled-dates",dateFormat:"mm/dd/yy",placeholder:(0,p.translate)("Pick a date")}))),c.default.createElement(V.default,null,c.default.createElement(M.default,i({},this.props,{label:(0,p.translate)("Disable date ranges"),hasSettingsLabel:"dark",description:(0,p.translate)("Use this setting to disable specific dates ranges on the calendar."),settings:this.props.state,property:"disable-date-range",dateFormat:"MM/DD/YYYY",placeholder:(0,p.translate)("Pick a date")}))),c.default.createElement(V.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Error Message")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose an error message to be used when visitor enters a date that is disabled.")),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,property:"restrict_message"}))))}}]),t}(u.Component);t.default=R},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this,t=this,a=this.props.dateFormat?this.props.dateFormat:"mm-dd-yy",r=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];this.$el=jQuery(this.el),this.$elDate=jQuery(this.elDate);var n=Object.assign({allowClear:!0,dropdownCssClass:"sui-select-dropdown",placeholder:(0,u.translate)("Click here to add a date…")},this.props.options);"function"==typeof this.$el.SUIselect2?this.$el.SUIselect2(n):"function"==typeof this.$el.FUIselect2?this.$el.FUIselect2(n):console.log("select2 not intiated"),this.$elDate.datepicker({beforeShow:function(t,a){jQuery("body").append(jQuery("#ui-datepicker-div")),jQuery("#ui-datepicker-div").addClass("sui-calendar"),"forminator-field-date"===e.$el.attr("id")&&("disable"===e.props.state.past_dates?e.$el.datepicker("option","minDate",e.$el.datepicker("getDate")):"enable"===e.props.state.past_dates&&e.$el.datepicker("option","minDate",null))},dateFormat:a,autoclose:!0,dayNamesMin:forminatorl10n.calendar.day_names_min,monthNames:forminatorl10n.calendar.month_names,onSelect:function(a){var r=_.isUndefined(e.props.settings[e.props.property])?[]:e.props.settings[e.props.property];r.push(a),t.updateValue(r),t.$el.html(""),_.each(r,function(e){t.$el.append(jQuery('<option value="'+e+'">'+e+"</option>"))}),t.$el.val(r).trigger("change")}}),this.$el.on("select2:opening",function(e){e.preventDefault(),(_.isUndefined(t.props.settings[t.props.property])?[]:t.props.settings[t.props.property]).length===e.currentTarget.selectedOptions.length&&t.$elDate.datepicker("show")}),this.$el.on("select2:unselect",function(e){e.preventDefault();var a=_.isUndefined(t.props.settings[t.props.property])?[]:t.props.settings[t.props.property];a=a.filter(function(t){return t!==e.params.data.id}),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",{className:"sui-description",style:{marginBottom:10}},this.props.description)),s.default.createElement("div",{className:"sui-form-field"},a,r,s.default.createElement("div",{className:"fui-datepicker-tags"},s.default.createElement("select",{ref:function(t){return e.el=t},className:"sui-select sui-select-lg",defaultValue:t,multiple:"multiple"},this.props.children),s.default.createElement("input",{ref:function(t){return e.elDate=t},className:"sui-input"})))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.dateFormat?this.props.dateFormat:"MM/DD/YYYY",a=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];this.$el=jQuery(this.el),this.$elDate=jQuery(this.elDate);var r=Object.assign({allowClear:!0,dropdownCssClass:"sui-select-dropdown",placeholder:(0,u.translate)("Click here to add a date range...")},this.props.options);"function"==typeof this.$el.SUIselect2?this.$el.SUIselect2(r):"function"==typeof this.$el.FUIselect2?this.$el.FUIselect2(r):console.log("select2 not intiated"),this.$elDate.daterangepicker({autoApply:!0,locale:{format:"MMMM DD, YYYY",separator:" - ",customRangeLabel:"Custom",daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"]},alwaysShowCalendars:!0,parentEl:".fui-daterange-calendar"}),this.$elDate.on("apply.daterangepicker",function(a,r){var n=_.isUndefined(e.props.settings[e.props.property])?[]:e.props.settings[e.props.property];n.push(r.startDate.format(t)+" - "+r.endDate.format(t)),e.updateValue(n),e.$el.html(""),_.each(n,function(t){e.$el.append(jQuery('<option value="'+t+'">'+t+"</option>"))}),e.$el.val(n).trigger("change")}),this.$el.on("select2:opening",function(t){t.preventDefault(),(_.isUndefined(e.props.settings[e.props.property])?[]:e.props.settings[e.props.property]).length===t.currentTarget.selectedOptions.length&&e.$elDate.trigger("click"),jQuery(".daterangepicker").css("zIndex","3001")}),this.$el.on("select2:unselect",function(t){t.preventDefault();var a=_.isUndefined(e.props.settings[e.props.property])?[]:e.props.settings[e.props.property];a=a.filter(function(e){return e!==t.params.data.id}),setTimeout(function(){e.updateValue(a)},20)}),_.each(a,function(t){e.$el.append(jQuery('<option value="'+t+'">'+t+"</option>"))}),this.$el.val(a).trigger("change.select2")}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"componentWillUnmount",value:function(){this.$el.unbind().removeData(),this.$elDate.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property],a="",r="";return this.props.label&&""!==this.props.label&&(a=this.props.hasSettingsLabel?s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-settings-label"+("dark"===this.props.hasSettingsLabel?" sui-dark":"")},this.props.label):s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note))),this.props.description&&""!==this.props.description&&(r=s.default.createElement("p",{className:"sui-description",style:{marginBottom:10}},this.props.description)),s.default.createElement("div",{className:"sui-form-field"},a,r,s.default.createElement("div",{className:"fui-datepicker-tags"},s.default.createElement("select",{ref:function(t){return e.el=t},className:"sui-select sui-select-lg",defaultValue:t,multiple:"multiple"},this.props.children),s.default.createElement("div",{className:"fui-daterange-calendar"}),s.default.createElement("input",{id:"forminator-field-"+this.props.property,style:{visibility:"hidden"},ref:function(t){return e.elDate=t},className:"sui-input",autoComplete:"off"})))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(213),d=r(f),m=a(24),h=r(m),b=a(26),y=r(b),v=a(43),g=r(v),E=a(3),_=r(E),w=a(17),O=r(w),P=a(15),j=r(P),k=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(d.default,this.props);case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),c.default.createElement(j.default,{label:(0,p.translate)("Signature Filetype"),labelDark:!0,description:(0,p.translate)("Choose the filetype to save your users' signature in."),descriptionSpacing:20,sidebar:!1},c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(O.default,i({},this.props,{property:"filetype",settings:this.props.state,"data-width":"100"}),c.default.createElement("option",{value:"png"},(0,p.translate)("PNG")),c.default.createElement("option",{value:"jpg"},(0,p.translate)("JPG"))))),c.default.createElement(j.default,{label:(0,p.translate)("Height"),labelDark:!0,description:(0,p.translate)("Choose the height of your signature field. The default value is 180px."),descriptionSpacing:20,sidebar:!1},c.default.createElement(_.default,i({},this.props,{type:"number",settings:this.props.state,placeholder:"180",property:"height",suffix:"px"}))),c.default.createElement(j.default,{label:(0,p.translate)("Stroke Thickness"),labelDark:!0,description:(0,p.translate)("Choose the thickness in pixels for signature strokes. The default value is 2px."),descriptionSpacing:20,sidebar:!1},c.default.createElement(_.default,i({},this.props,{type:"number",settings:this.props.state,placeholder:"2",property:"thickness",suffix:"px"}))));case"visibility":return c.default.createElement(h.default,this.props);case"styling":return c.default.createElement(y.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=k},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(33),y=r(b),v=a(3),g=r(v),E=a(43),_=r(E),w=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){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)("E.g. Consent"),property:"field_label"})),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,boxClass:"sui-tab-boxed",property:"consent_description",editorOptions:forminatorData.variables,description:(0,p.translate)("Describe what your users should consent to.")})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(_.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=w},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(33),y=r(b),v=a(3),g=r(v),E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("The {{strong}}GDPR Field{{/strong}} has been deprecated and replaced by the new {{strong}}Consent Field{{/strong}}. Your existing fields should continue to work as expected, but please consider using the {{strong}}Consent Field{{/strong}} in the future.",{components:{strong:c.default.createElement("strong",null)}}))))),c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,boxClass:"sui-tab-boxed",property:"gdpr_description",editorOptions:forminatorData.variables,description:(0,p.translate)("Note, the form will not submit until the user has accepted the terms.")})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Error message"),placeholder:(0,p.translate)("Enter required message"),property:"required_message",id:"forminator-field-name-error-msg"})));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(26),d=r(f),m=a(11),h=r(m),b=a(5),y=r(b),v=a(3),g=r(v),E=a(17),w=r(E),O=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(y.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default Value (optional)"),placeholder:(0,p.translate)("Enter default value"),property:"default_value"}),_.map(forminatorData.variablesForHiddenField,function(e,t){return c.default.createElement("option",{value:t,key:t},e)})))),"custom_value"===this.props.state.default_value&&c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Custom Value"),placeholder:(0,p.translate)("Enter custom value"),property:"custom_value"})))),"query"===this.props.state.default_value&&c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Query parameter"),placeholder:(0,p.translate)("E.g. query_parameter_key"),property:"prefill"})))));case"settings":case"visibility":return c.default.createElement("div",null);case"styling":return c.default.createElement(d.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=O},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(33),y=r(b),v=a(3),g=r(v),E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){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",allowButtonOnclick:"true",mainOptions:[]})));case"settings":return c.default.createElement("div",null);case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(238),y=r(b),v=a(43),g=r(v),E=a(11),w=r(E),O=a(5),P=r(O),j=a(3),k=r(j),x=a(195),N=r(x),C=a(20),S=r(C),T=a(15),F=r(T),D=a(375),M=r(D),A=a(79),V=r(A),R=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=!_.isUndefined(this.props.state.enable_images)&&this.props.state.enable_images;switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement(y.default,this.props));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),c.default.createElement(F.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Layout")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("By default, we stack the options vertically. However, you can change the options layout below.")),c.default.createElement(S.default,i({},this.props,{settings:this.props.state,property:"layout",defaultValue:"vertical",noWrapper:!0}),c.default.createElement("div",{value:"vertical"},(0,p.translate)("Vertical")),c.default.createElement("div",{value:"horizontal"},(0,p.translate)("Horizontal")))),t&&c.default.createElement(M.default,this.props),c.default.createElement(V.default,this.props));case"calculations":return c.default.createElement(N.default,i({},this.props,{description:(0,p.translate)("Choose whether to allow this field to be used in calculations or not.")}));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=R},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(44),d=(r(f),a(80)),m=r(d),h=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.labelInput=c.default.createRef(),a.valueInput=c.default.createRef(),a.focusLabel=a.focusLabel.bind(a),a.focusValue=a.focusValue.bind(a),a.toggleState=a.toggleState.bind(a),a.updateImage=a.updateImage.bind(a),a.state={focus:!1,open:a.props.state.options_expanded},a}return l(t,e),s(t,[{key:"removeOption",value:function(){this.props.removeOption(this.props.counter)}},{key:"updateLabel",value:function(e){this.props.updateLabel(this.props.counter,e.target.value)}},{key:"updateLimit",value:function(e){this.props.updateLimit(this.props.counter,e.target.value)}},{key:"updateValue",value:function(e){this.props.updateValue(this.props.counter,e.target.value)}},{key:"updateDefault",value:function(e){this.props.updateDefault(this.props.counter,e.target.checked)}},{key:"updateImage",value:function(e,t){this.props.updateImage(this.props.counter,t,e)}},{key:"onFocus",value:function(){this.setState({focus:!0})}},{key:"onBlurValue",value:function(){this.onBlur()}},{key:"onBlurLabel",value:function(e){this.onBlur();var t=(0,p.generateValue)(e.target.value);this.props.updateValue(this.props.counter,t)}},{key:"onBlur",value:function(){this.state.focus&&this.setState({focus:!1})}},{key:"focusLabel",value:function(){this.labelInput.current.focus()}},{key:"focusValue",value:function(){this.valueInput.current.focus()}},{key:"toggleState",value:function(){this.setState({open:!this.state.open});var e=this,t=jQuery(".fui-option"),a=0,r=0,n=void 0,o=void 0;clearTimeout(n),n=setTimeout(function(){t.each(function(){jQuery(this).find(".sui-accordion-item").hasClass("sui-accordion-item--open")?a++:r++}),clearTimeout(o),o=setTimeout(function(){0===a?e.props.updateProperty("options_expanded",!1):0===r&&e.props.updateProperty("options_expanded",!0)},50)},50)}},{key:"componentDidMount",value:function(){this.$opt=jQuery(this.opt);var e=jQuery("#forminator-modal"),t=e.scrollTop();e.on("scroll",function(){t=jQuery(this).scrollTop()}),this.$opt.on("change",".sui-checkbox > input",function(a){a.preventDefault(),a.stopPropagation(),e.scrollTop(t)})}},{key:"componentDidUpdate",value:function(e){this.props.state.options_expanded!==e.state.options_expanded&&this.setState({open:this.props.state.options_expanded})}},{key:"render",value:function(){var e=this,t=this.state.focus?"fui-on_focus":"",a=_.isEmpty(this.props.option.label)?"sui-form-field-error":"",r=this.state.open,n=this.props.state.enable_images,o="",l=void 0!==this.props.option.image?"url("+this.props.option.image+")":"";return o=r?"sui-accordion-item--open":"",c.default.createElement("div",{className:"fui-option "+t,ref:function(t){return e.opt=t}},c.default.createElement("div",{className:"fui-option-settings"},c.default.createElement("div",{className:"sui-accordion-item "+o,style:{boxShadow:"none"}},c.default.createElement("div",{className:"sui-accordion-item-header",style:{minHeight:"0",padding:"0"}},c.default.createElement("div",{className:"fui-option-settings--main",style:{padding:"0"}},!r&&n&&c.default.createElement("div",{className:"sui-upload"},c.default.createElement("div",{className:"sui-upload-image","aria-hidden":"true"},c.default.createElement("div",{className:"sui-image-mask"}),c.default.createElement("div",{role:"button",className:"sui-image-preview",style:{display:"block",backgroundImage:l}}))),c.default.createElement("div",{className:"sui-form-field "+a},c.default.createElement("input",{type:"text",size:"1",placeholder:(0,p.translate)("Label"),value:this.props.option.label,className:"sui-form-control",onChange:this.updateLabel.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlurLabel.bind(this),ref:this.labelInput,onClick:this.focusLabel,title:(0,p.translate)("Label")})),!r&&c.default.createElement("label",{htmlFor:"option-selected-"+this.props.counter,className:"sui-checkbox",title:(0,p.translate)("Selected"),style:{marginLeft:"15px"}},c.default.createElement("input",{type:"checkbox",checked:this.props.option.default?"checked":"",name:"demo-field-radio--option-selected",id:"option-selected-"+this.props.counter,onChange:this.updateDefault.bind(this)}),c.default.createElement("span",{"aria-hidden":"true"})),c.default.createElement("button",{className:"sui-button-icon sui-button-red fui-option-remove",title:(0,p.translate)("Delete option"),"aria-label":(0,p.translate)("Delete option"),onClick:this.removeOption.bind(this)},c.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"})),c.default.createElement("div",{style:{borderLeft:"1px solid #E6E6E6",width:"1px",height:"30px"}}),c.default.createElement("button",{className:"sui-button-icon sui-accordion-open-indicator",title:(0,p.translate)("Toggle"),"aria-label":"Open item",onClick:function(){return e.toggleState()}},c.default.createElement("i",{className:"sui-icon-chevron-down","aria-hidden":"true"})))),c.default.createElement("div",{className:"sui-accordion-item-body",style:{padding:"10px 10px 0 0"}},c.default.createElement("div",{className:"fui-option-settings--extra"},c.default.createElement("input",{type:"text",value:this.props.option.value,placeholder:(0,p.translate)("Value"),className:"sui-form-control",onChange:this.updateValue.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlurValue.bind(this),ref:this.valueInput,onClick:this.focusValue}),this.props.state.type&&"select"===this.props.state.type&&this.props.isLimit&&"true"===this.props.isLimit&&c.default.createElement("input",{type:"text",value:this.props.option.limit,placeholder:(0,p.translate)("Submission limit"),className:"sui-form-control",onChange:this.updateLimit.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)}),r&&c.default.createElement("label",{htmlFor:"option-selected-"+this.props.counter,className:"sui-checkbox"},c.default.createElement("input",{type:"checkbox",checked:this.props.option.default?"checked":"",name:"demo-field-radio--option-selected",id:"option-selected-"+this.props.counter,onChange:this.updateDefault.bind(this)}),c.default.createElement("span",{"aria-hidden":"true"}),c.default.createElement("span",{className:"sui-description sui-description-sm"},(0,p.translate)("Selected")))),n&&c.default.createElement("div",{className:"fui-option-settings--extra"},c.default.createElement(m.default,i({},this.props,{settings:this.props.option,type:"image",fieldClass:"sui-auto",property:"image",updateProperty:this.updateImage})))))))}}]),t}(u.Component);t.default=h},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.updateValue=a.updateValue.bind(a);var o=_.isUndefined(a.props.defaultValue)?"":a.props.defaultValue,l=_.isUndefined(a.props.settings[a.props.property])?o:a.props.settings[a.props.property];return a.state={value:l},a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this,t=this;this.$el=jQuery(this.el),this.$addPredefined=jQuery(this.addPredefined),SUI.select.initVars(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",function(a){var r=t.state.value,n=a.target.value;0!==r.length&&(n=r+"\n"+n),e.updateValue(n),e.predefinedSelector(),e.scrollToNewOpt()}),this.predefinedSelector()}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e),"function"==typeof this.props.updateValue&&this.props.updateValue(this.props.counter,e),this.setState({value:e})}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.value!==e.value&&this.updateValue(this.props.value),null}},{key:"componentDidUpdate",value:function(e,t){this.props.state.enable_images!==e.state.enable_images&&(SUI.select.initVars(this.$el),this.predefinedSelector())}},{key:"isValid",value:function(e){return this.props.isRequired?this.props.isRequired&&!_.isEmpty(e):!!_.isUndefined(this.props.isPositive)||(_.isEmpty(e)||e>=0)}},{key:"scrollToNewOpt",value:function(){var e=jQuery("#bulk-edit-textarea"),t=void 0;clearTimeout(t),t=setTimeout(function(){e.animate({scrollTop:e.prop("scrollHeight")},300)},20)}},{key:"predefinedSelector",value:function(){this.$el.next(".select2-container").find(".select2-selection").html((0,u.translate)("+ Predefined options"))}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.defaultValue)?"":this.props.defaultValue,a=_.isUndefined(this.props.settings[this.props.property])?t:this.props.settings[this.props.property],r=_.isUndefined(this.props.requiredError)?(0,u.translate)("This field is required!"):this.props.requiredError,n=this.isValid(a)?"":"sui-form-field-error",o=!_.isUndefined(this.props.state.enable_images)&&this.props.state.enable_images,l=(0,u.translate)("My Label; my-value; 0; https://mysite.com/my-image-url.jpg"),i=(0,u.translate)("My Label; my-value; 0");return s.default.createElement("div",{className:"sui-form-field "+n},s.default.createElement("div",{className:"sui-row"},s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-col-sm-6 sui-label"},this.props.label," ",(this.props.isRequired||this.props.required)&&s.default.createElement("span",{className:"sui-error"}," *")),s.default.createElement("div",{id:"add-predefined",className:"sui-col-sm-6 sui-insert-variables",ref:function(t){return e.addPredefined=t}},s.default.createElement("select",{className:"predefined-options sui-variables",ref:function(t){return e.el=t}},s.default.createElement("option",{value:i},(0,u.translate)("New option")),o&&s.default.createElement("option",{value:l},(0,u.translate)("New option with image")),s.default.createElement("option",{value:(0,u.translate)("Under 1 year\n1-17\n18-24\n25-34\n35-44\n45-54\n55-64\n65 and Above")},(0,u.translate)("Age")),s.default.createElement("option",{value:(0,u.translate)("Male\nFemale\nNon-binary\nOther")},(0,u.translate)("Gender")),s.default.createElement("option",{value:(0,u.translate)("Primary School\nHigh School\nSome College\nAssociate's Degree\nBachelor's Degree\nMaster's degree\nProfessional degree\nDoctoral degree\nOther")},(0,u.translate)("Educational Attainment")),s.default.createElement("option",{value:(0,u.translate)("Full-time employed\nPart-time employed\nSelf-employed\nContract Worker\nHomemaker\nRetired\nStudent\nUnemployed")},(0,u.translate)("Employment Status")),s.default.createElement("option",{value:(0,u.translate)("Architecture and Engineering\nArts, Design, Entertainment, Sports, and Media\nBuilding and Grounds Cleaning and Maintenance\nBusiness and Financial Operations\nCommunity and Social Services\nComputer and Mathematical\nConstruction and Extraction\nEducational Instruction and Library\nFarming, Fishing, and Forestry\nFood Preparation and Serving Related\nHealthcare Practitioners and Technical\nHealthcare Support\nInstallation, Maintenance, and Repair\nLegal\nLife, Physical, and Social Science\nManagement\nOffice and Administrative Support\nPersonal Care and Services\nProduction/Manufacturing\nProtective Service\nSales and Related\nTransportation and Material Moving")},(0,u.translate)("Occupation")),s.default.createElement("option",{value:(0,u.translate)("Single\nMarried\nDivorced\nSeparated\nWidowed")},(0,u.translate)("Marital Status")),s.default.createElement("option",{value:(0,u.translate)("Africa\nAntarctica\nAsia\nAustralia\nEurope\nNorth America\nSouth America")},(0,u.translate)("Continents")),s.default.createElement("option",{value:(0,u.translate)("Afghanistan\nÅland Islands\nAlbania\nAlgeria\nAmerican Samoa\nAndorra\nAngola\nAnguilla\nAntarctica\nAntigua and Barbuda\nArgentina\nArmenia\nAruba\nAustralia\nAustria\nAzerbaijan\nBahamas\nBahrain\nBangladesh\nBarbados\nBelarus\nBelgium\nBelize\nBenin\nBermuda\nBhutan\nBolivia\nBonaire, Sint Eustatius and Saba\nBosnia and Herzegovina\nBotswana\nBouvet Island\nBrazil\nBritish Indian Ocean Territory\nBrunei Darussalam\nBulgaria\nBurkina Faso\nBurundi\nCabo Verde\nCambodia\nCameroon\nCanada\nCayman Islands\nCentral African Republic\nChad\nChile\nChina\nChristmas Island\nCocos Islands\nColombia\nComoros\nCongo, Democratic Republic of the\nCongo, Republic of the\nCook Islands\nCosta Rica\nCôte d'Ivoire\nCroatia\nCuba\nCuraçao\nCyprus\nCzech Republic\nDenmark\nDjibouti\nDominica\nDominican Republic\nEcuador\nEgypt\nEl Salvador\nEquatorial Guinea\nEritrea\nEstonia\nEswatini\nEthiopia\nFalkland Islands\nFaroe Islands\nFiji\nFinland\nFrance\nFrench Guiana\nFrench Polynesia\nFrench Southern Territories\nGabon\nGambia\nGeorgia\nGermany\nGhana\nGibraltar\nGreece\nGreenland\nGrenada\nGuadeloupe\nGuam\nGuatemala\nGuernsey\nGuinea\nGuinea-Bissau\nGuyana\nHaiti\nHeard and McDonald Islands\nHoly See\nHonduras\nHong Kong\nHungary\nIceland\nIndia\nIndonesia\nIran\nIraq\nIreland\nIsle of Man\nIsrael\nItaly\nJamaica\nJapan\nJersey\nJordan\nKazakhstan\nKenya\nKiribati\nKuwait\nKyrgyzstan\nLao People's Democratic Republic\nLatvia\nLebanon\nLesotho\nLiberia\nLibya\nLiechtenstein\nLithuania\nLuxembourg\nMacau\nMadagascar\nMalawi\nMalaysia\nMaldives\nMali\nMalta\nMarshall Islands\nMartinique\nMauritania\nMauritius\nMayotte\nMexico\nMicronesia\nMoldova\nMonaco\nMongolia\nMontenegro\nMontserrat\nMorocco\nMozambique\nMyanmar\nNamibia\nNauru\nNepal\nNetherlands\nNew Caledonia\nNew Zealand\nNicaragua\nNiger\nNigeria\nNiue\nNorfolk Island\nNorth Korea\nNorth Macedonia\nNorthern Mariana Islands\nNorway\nOman\nPakistan\nPalau\nPalestine, State of\nPanama\nPapua New Guinea\nParaguay\nPeru\nPhilippines\nPitcairn\nPoland\nPortugal\nPuerto Rico\nQatar\nRéunion\nRomania\nRussia\nRwanda\nSaint Barthélemy\nSaint Helena, Ascension and Tristan da Cunha\nSaint Kitts and Nevis\nSaint Lucia\nSaint Martin\nSaint Pierre and Miquelon\nSaint Vincent and the Grenadines\nSamoa\nSan Marino\nSao Tome and Principe\nSaudi Arabia\nSenegal\nSerbia\nSeychelles\nSierra Leone\nSingapore\nSint Maarten\nSlovakia\nSlovenia\nSolomon Islands\nSomalia\nSouth Africa\nSouth Georgia and the South Sandwich Islands\nSouth Korea\nSouth Sudan\nSpain\nSri Lanka\nSudan\nSuriname\nSvalbard and Jan Mayen Islands\nSweden\nSwitzerland\nSyria\nTaiwan\nTajikistan\nTanzania\nThailand\nTimor-Leste\nTogo\nTokelau\nTonga\nTrinidad and Tobago\nTunisia\nTurkey\nTurkmenistan\nTurks and Caicos Islands\nTuvalu\nUganda\nUkraine\nUnited Arab Emirates\nUnited Kingdom\nUnited States\nUruguay\nUS Minor Outlying Islands\nUzbekistan\nVanuatu\nVenezuela\nVietnam\nVirgin Islands, British\nVirgin Islands, U.S.\nWallis and Futuna\nWestern Sahara\nYemen\nZambia\nZimbabwe")},(0,u.translate)("Countries")),s.default.createElement("option",{value:(0,u.translate)("Alabama\nAlaska\nArizona\nArkansas\nCalifornia\nColorado\nConnecticut\nDelaware\nDistrict of Columbia\nFlorida\nGeorgia\nHawaii\nIdaho\nIllinois\nIndiana\nIowa\nKansas\nKentucky\nLouisiana\nMaine\nMaryland\nMassachusetts\nMichigan\nMinnesota\nMississippi\nMissouri\nMontana\nNebraska\nNevada\nNew Hampshire\nNew Jersey\nNew Mexico\nNew York\nNorth Carolina\nNorth Dakota\nOhio\nOklahoma\nOregon\nPennsylvania\nRhode Island\nSouth Carolina\nSouth Dakota\nTennessee\nTexas\nUtah\nVermont\nVirginia\nWashington\nWest Virginia\nWisconsin\nWyoming")},(0,u.translate)("American States")),s.default.createElement("option",{value:(0,u.translate)("Alberta\nBritish Columbia\nManitoba\nNew Brunswick\nNewfoundland and Labrador\nNorthwest Territories\nNova Scotia\nNunavut\nOntario\nPrince Edward Island\nQuebec\nSaskatchewan\nYukon")},(0,u.translate)("Canadian Provinces"))))),s.default.createElement("div",{className:"sui-insert-variables"},s.default.createElement("textarea",{id:"bulk-edit-textarea",value:this.state.value,placeholder:this.props.placeholder,className:"sui-form-control",onChange:function(t){e.updateValue(t.target.value)},rows:"8"}),this.props.isRequired&&!this.isValid(a)&&s.default.createElement("span",{className:"sui-error-message"},r),this.props.description&&s.default.createElement("span",{className:"sui-description bulk-editor-description"},this.props.description)))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(3),f=(r(p),function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateField=a.updateField.bind(a),a.updateState=a.updateState.bind(a),a}return l(t,e),i(t,[{key:"updateField",value:function(e,t){this.updateState(t,e.target.value)}},{key:"updateState",value:function(e,t){var a=this.props.state.options;a[e].calculation=t,this.props.updateProperty("options",a)}},{key:"render",value:function(){var e=this;return 0===this.props.state.options.length?u.default.createElement("div",null):u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-form-field"},u.default.createElement("span",{className:"sui-description"},(0,c.translate)("Assign a calculation value to each option. These values will not be shown on the form. You can assign only a numeric value."))),_.map(this.props.state.options,function(t,a){var r=_.isEmpty(t.calculation)?"sui-form-field-error":"";return u.default.createElement("div",{key:a,className:"sui-form-field "+r},u.default.createElement("label",{htmlFor:"calculation-option-"+a,className:"sui-label"},t.label),u.default.createElement("input",{type:"number",placeholder:(0,c.translate)("Calculation value"),id:"calculation-option-"+a,className:"sui-form-control sui-input-md",onChange:function(t){return e.updateField(t,a)},defaultValue:t.calculation}),_.isEmpty(t.calculation)&&u.default.createElement("span",{className:"sui-error-message"},(0,c.translate)("Calculation value is required!")))}))}}]),t}(s.Component));t.default=f},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(213),d=r(f),m=a(24),h=r(m),b=a(26),y=r(b),v=a(7),g=r(v),E=a(8),w=r(E),O=a(496),P=r(O),j=a(43),k=r(j),x=a(237),N=(r(x),a(183)),C=(r(N),a(5)),S=r(C),T=a(79),F=r(T),D=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.multiFields=[{slug:"prefix",label:(0,p.translate)("Prefix")},{slug:"fname",label:(0,p.translate)("First Name")},{slug:"mname",label:(0,p.translate)("Middle Name")},{slug:"lname",label:(0,p.translate)("Last Name")}],a}return l(t,e),s(t,[{key:"hasChildrens",value:function(e){var t=_.filter(e,function(e){return!_.isUndefined(e)});return!_.isEmpty(t)}},{key:"render",value:function(){var e=this;switch(this.props.type){case"labels":return c.default.createElement(g.default,i({},this.props,{property:"multiple_name",settings:this.props.state,default:"false",divClass:"sui-tabs-content-lg"}),c.default.createElement(d.default,i({settings:this.props.state},this.props,{value:"false"}),(0,p.translate)("Single")),c.default.createElement(P.default,i({settings:this.props.state},this.props,{value:"true"}),(0,p.translate)("Multiple")));case"settings":if("true"===this.props.state.multiple_name){var t=void 0,a=this.multiFields.map(function(a,r){if(!_.isUndefined(e.props.state[a.slug])&&e.props.state[a.slug]){if(_.isEmpty(t)&&(t=a.slug),"prefix"===a.slug)return c.default.createElement(S.default,{cols:"12",label:a.label,value:a.slug,settings:e.props.state,boxClass:"sui-tab-boxed",key:r},c.default.createElement(F.default,i({},e.props,{prefix:a.slug})));if("prefix"!==a.slug)return c.default.createElement(S.default,{cols:"12",label:a.label,settings:e.props.state,value:a.slug,required:e.props.state[a.slug+"_required"],boxClass:"sui-tab-boxed",key:r},c.default.createElement(k.default,i({},e.props,{prefix:a.slug})),c.default.createElement(F.default,i({},e.props,{prefix:a.slug})))}});return this.hasChildrens(a)?c.default.createElement(w.default,{default:t},a):c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("At least one field must be enabled")))))}if("true"!==this.props.state.multiple_name)return c.default.createElement("div",null,c.default.createElement(k.default,this.props),c.default.createElement(F.default,this.props));case"visibility":return c.default.createElement(h.default,this.props);case"styling":return c.default.createElement(y.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=D},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(214),d=r(f),m=a(11),h=r(m),b=a(5),y=r(b),v=a(3),g=r(v),E=a(18),_=r(E),w=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this,t=[{slug:"fname",label:(0,p.translate)("First Name")},{slug:"mname",label:(0,p.translate)("Middle Name")},{slug:"lname",label:(0,p.translate)("Last Name")}];return c.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",value:"multiple"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Prefix"),property:"prefix",required:this.props.state.prefix_required,settings:this.props.state}),c.default.createElement(c.default.Fragment,null,c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"prefix_label"}))),c.default.createElement(y.default,{cols:"6"},c.default.createElement(_.default,i({property:"prefix_placeholder",label:(0,p.translate)("Default value"),settings:this.props.state},this.props),c.default.createElement("option",{value:"Mr"},(0,p.translate)("Mr.")),c.default.createElement("option",{value:"Mrs"},(0,p.translate)("Mrs.")),c.default.createElement("option",{value:"Ms"},(0,p.translate)("Ms.")),c.default.createElement("option",{value:"Mx"},(0,p.translate)("Mx.")),c.default.createElement("option",{value:"Miss"},(0,p.translate)("Miss")),c.default.createElement("option",{value:"Dr"},(0,p.translate)("Dr.")),c.default.createElement("option",{value:"Prof"},(0,p.translate)("Prof."))))),c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"prefix_description"})))))),t.map(function(t,a){return c.default.createElement(d.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,required:e.props.state[t.slug+"_required"],key:a}),c.default.createElement(c.default.Fragment,null,c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(g.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:t.slug+"_label"}))),c.default.createElement(y.default,{cols:"6"},c.default.createElement(g.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:t.slug+"_placeholder"})))),c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(g.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:t.slug+"_description"}))))))}))}}]),t}(u.Component);t.default=w},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(11),y=r(b),v=a(5),g=r(v),E=a(3),w=r(E),O=a(43),P=r(O),j=a(195),k=r(j),x=a(79),N=r(x),C=a(7),S=r(C),T=a(13),F=r(T),D=a(2),M=r(D),A=a(15),V=r(A),R=a(17),U=r(R),I=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=_.isUndefined(this.props.state.separators)?"":this.props.state.separators;switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(g.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default Value (optional)"),placeholder:(0,p.translate)("Enter default value"),property:"default_value"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(P.default,this.props),c.default.createElement(V.default,{label:(0,p.translate)("Limits"),labelDark:!0,description:(0,p.translate)("Set the minimum and maximum values the user can choose. Leave the fields blank to allow any number including negatives."),descriptionSpacing:20,sidebar:!1},c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(w.default,i({type:"number"},this.props,{settings:this.props.state,placeholder:"0",property:"limit_min",label:(0,p.translate)("Minimum"),fieldClass:"sui-input-md"})),c.default.createElement(w.default,i({type:"number"},this.props,{settings:this.props.state,placeholder:"0",property:"limit_max",label:(0,p.translate)("Maximum"),fieldClass:"sui-input-md"}))),c.default.createElement(S.default,i({},this.props,{property:"limit_message",settings:this.props.state,default:"false",label:(0,p.translate)("Error Messages"),divClass:"sui-tabs-content-lg"}),c.default.createElement(F.default,{value:"false",label:(0,p.translate)("Default")}),c.default.createElement(M.default,{value:"true",label:(0,p.translate)("Custom"),boxClass:"sui-tab-boxed"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,type:"text",property:"limit_min_message",label:(0,p.translate)("When number is smaller than the min limit"),placeholder:(0,p.translate)("E.g. Please enter a number greater than 0.")})),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,type:"text",property:"limit_max_message",label:(0,p.translate)("When number is greater than the max limit"),placeholder:(0,p.translate)("E.g. Please enter a number lower than 1000.")}))))),c.default.createElement(V.default,{label:(0,p.translate)("Formatting"),labelDark:!0,description:(0,p.translate)("Choose how do you want to format the value of this field."),descriptionSpacing:20,sidebar:!1},c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(U.default,i({},this.props,{property:"separators",settings:this.props.state,defaultValue:"1234567.89",label:(0,p.translate)("Separators"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"blank"},(0,p.translate)("1234567.89")),c.default.createElement("option",{value:"comma_dot"},(0,p.translate)("1,234,567.89")),c.default.createElement("option",{value:"dot_comma"},(0,p.translate)("1.234.567,89")),c.default.createElement("option",{value:"space_comma"},(0,p.translate)("1 234 567,89")))),"custom"!==t&&c.default.createElement(g.default,{cols:"6"},c.default.createElement(U.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",label:(0,p.translate)("Round To"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 decimals"))))),"custom"===t&&c.default.createElement("div",{className:"sui-form-field-inline sui-border-frame",style:{marginBottom:"5px"}},c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"thousand-separators",defaultValue:",",label:(0,p.translate)("Thousand Separator"),fieldClass:"sui-input-md"})),c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"decimal-separators",defaultValue:".",label:(0,p.translate)("Decimal Separator"),fieldClass:"sui-input-md"}))),"custom"===t&&c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(U.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",label:(0,p.translate)("Round To"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 decimals")))))),c.default.createElement(N.default,this.props));case"calculations":return c.default.createElement(k.default,this.props);case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=I},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(3),d=r(f),m=a(13),h=r(m),b=a(2),y=r(b),v=a(7),g=r(v),E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Step label"),placeholder:(0,p.translate)("Enter step label"),property:"pagination-label"})),c.default.createElement(g.default,i({},this.props,{property:"pagination-labels",settings:this.props.state,settingsLabel:(0,p.translate)("Buttons Text"),default:"none",description:(0,p.translate)("Choose whether you want to use default text for the Previous and Next button or use custom text.")}),c.default.createElement(h.default,{value:"none"},(0,p.translate)("Default")),c.default.createElement(y.default,i({},this.props,{value:"custom",boxClass:"sui-tab-boxed",label:(0,p.translate)("Custom")}),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Previous Button"),placeholder:(0,p.translate)("Enter text"),property:"pagination-footer-button-text"})),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Next Button"),placeholder:(0,p.translate)("Enter text"),property:"pagination-right-button-text"})))));case"settings":case"visibility":case"styling":default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(213),d=r(f),m=a(24),h=r(m),b=a(26),y=r(b),v=a(43),g=r(v),E=a(183),w=(r(E),a(2)),O=r(w),P=a(7),j=r(P),k=a(3),x=r(k),N=a(18),C=r(N),S=a(13),T=r(S),F=a(79),D=r(F),M=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){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(j.default,i({},this.props,{property:"validation",settings:this.props.state,default:"none",label:(0,p.translate)("Type"),divClass:"sui-tabs-content-lg"}),c.default.createElement(T.default,{value:"none",label:(0,p.translate)("None")}),c.default.createElement(O.default,{value:"standard",label:(0,p.translate)("National"),boxClass:"sui-tab-boxed"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Select the country to validate phone number for"),property:"phone_national_country"}),_.map(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(D.default,this.props));case"visibility":return c.default.createElement(h.default,this.props);case"styling":return c.default.createElement(y.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=M},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(43),y=r(b),v=a(214),g=r(v),E=a(11),w=r(E),O=a(5),P=r(O),j=a(3),k=r(j),x=a(20),N=r(x),C=a(18),S=r(C),T=a(46),F=r(T),D=a(376),M=r(D),A=a(15),V=r(A),R=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.multiFields=[{slug:"post_title",label:(0,p.translate)("Title"),placeholder:!1},{slug:"post_content",label:(0,p.translate)("Content"),placeholder:!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 l(t,e),s(t,[{key:"render",value:function(){var e=this,t=this.props.type,a=_.isUndefined(forminatorData.postCategories[this.props.state.post_type])?[]:forminatorData.postCategories[this.props.state.post_type];switch(t){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement("p",{className:"sui-description"},(0,p.translate)("Allow users to submit post data with this field. By default, this will create new posts, but you can assign it to any post type in the {{strong}}Settings{{/strong}} tab.",{components:{strong:c.default.createElement("strong",{style:{color:"#17A8E3"}})}})),c.default.createElement("div",{value:"multiple",className:"sui-accordion sui-accordion-flushed fui-modal-accordion"},this.multiFields.map(function(t,a){return!1===t.placeholder&&"post_custom_fields"!==t.slug?c.default.createElement(g.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,required:e.props.state[t.slug+"_required"],key:a}),c.default.createElement(c.default.Fragment,null,c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"6"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:t.slug+"_label"}))),c.default.createElement(P.default,{cols:"6"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:t.slug+"_placeholder"})))),c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:t.slug+"_description"})))))):!0===t.placeholder&&"post_custom_fields"!==t.slug?c.default.createElement(g.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,required:e.props.state[t.slug+"_required"],key:a}),c.default.createElement(c.default.Fragment,null,c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:t.slug+"_label"})))),c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:t.slug+"_description"})))))):"post_custom_fields"===t.slug?c.default.createElement(g.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,key:a,noBoxBody:!0}),c.default.createElement(c.default.Fragment,null,c.default.createElement(M.default,i({wrappers:e.props.wrappers},e.props)))):void 0})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,this.props),c.default.createElement(V.default,null,c.default.createElement("p",{className:"sui-settings-label sui-dark"},(0,p.translate)("Post type")),c.default.createElement("p",{className:"sui-description"},(0,p.translate)("Choose the post type associated with this field.")),c.default.createElement(S.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Assigned post type"),placeholder:(0,p.translate)("post"),property:"post_type",fieldClass:"sui-input-md"}),_.map(forminatorData.postTypeList,function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)}))),c.default.createElement(V.default,null,c.default.createElement("p",{className:"sui-settings-label sui-dark"},(0,p.translate)("Default status")),c.default.createElement("p",{className:"sui-description"},(0,p.translate)("When a user submits this form, choose what status this post data is.")),c.default.createElement(S.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Status"),placeholder:(0,p.translate)("pending"),property:"data_status",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"draft"},(0,p.translate)("Draft")),c.default.createElement("option",{value:"pending"},(0,p.translate)("Pending Review")),c.default.createElement("option",{value:"publish"},(0,p.translate)("Published")))),c.default.createElement(V.default,null,c.default.createElement("p",{className:"sui-settings-label sui-dark"},(0,p.translate)("Default author")),c.default.createElement("p",{className:"sui-description"},(0,p.translate)("By default we'll assign posts to users if they're logged in, and fall back to the user specified below if you're allowing visitors to make posts. You can also override this to always assign posts to a specified user.")),c.default.createElement(S.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default author"),property:"select_author",fieldClass:"sui-input-md fui-reduce-spacing"}),_.map(forminatorData.userList,function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)})),c.default.createElement(F.default,i({},this.props,{settings:this.props.state,property:"default_author",label:(0,p.translate)("Always assign posts to this user"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),a.length>0&&c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Taxonomies limits")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose whether to allow single or multiple categories or tags on this post.")),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement(w.default,null,_.map(a,function(t,a){return c.default.createElement(P.default,{cols:"6",key:a},c.default.createElement(N.default,i({},e.props,{settings:e.props.state,property:t.value+"_multiple",defaultValue:"0",label:t.label}),c.default.createElement("div",{value:"0"},(0,p.translate)("Single")),c.default.createElement("div",{value:"1"},(0,p.translate)("Multiple"))))}))))));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=R},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(81),d=a(17),m=(r(d),a(49)),h=r(m),b=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={focus:!1},a}return l(t,e),s(t,[{key:"getNameOptions",value:function(){var e=[];return(0,p.getFields)(this.props.wrappers,["page-break","postdata","captcha","consent","gdprcheckbox","stripe","paypal","password"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"removeOption",value:function(){this.props.removeOption(this.props.counter)}},{key:"updateLabel",value:function(e){this.props.updateLabel(this.props.counter,e.target.value)}},{key:"updateValue",value:function(e){this.props.updateValue(this.props.counter,e.target.value)}},{key:"onFocus",value:function(){this.setState({focus:!0})}},{key:"onBlur",value:function(){this.state.focus&&this.setState({focus:!1})}},{key:"render",value:function(){var e=_.isEmpty(this.props.option.label)?"sui-form-field-error":"";return c.default.createElement("div",{className:"sui-builder-field sui-can_move sui-react "+e},c.default.createElement("div",{className:"sui-field-info",style:{overflow:"inherit"}},c.default.createElement("i",{className:"sui-icon-drag sui-align_top","aria-hidden":"true"}),c.default.createElement("div",{className:"sui-builder-field-form"},c.default.createElement("div",{className:"sui-form-field-row"},c.default.createElement("input",{type:"text",placeholder:(0,p.translate)("Label"),value:this.props.option.label,className:"sui-form-control",onChange:this.updateLabel.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)})),c.default.createElement("div",{className:"sui-form-field-row"},c.default.createElement(h.default,i({},this.props,{settings:this.props.option,property:"value",placeholder:(0,p.translate)("Value"),className:"sui-form-control",onChange:this.updateValue.bind(this)}),this.getNameOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,f.escapeHTML)(e.label))}))))),c.default.createElement("div",{className:"sui-field-actions sui-align_top"},c.default.createElement("button",{className:"sui-button-icon sui-button-red",onClick:this.removeOption.bind(this)},c.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),c.default.createElement("span",{className:"sui-screen-reader-text"},(0,p.translate)("Delete meta")))))}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(7),y=r(b),v=a(2),g=r(v),E=a(13),_=r(E),w=a(11),O=r(w),P=a(5),j=r(P),k=a(3),x=r(k),N=a(4),C=r(N),S=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(O.default,null,c.default.createElement(j.default,{cols:"6"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Title"),placeholder:(0,p.translate)("Enter title"),property:"section_title"}))),c.default.createElement(j.default,{cols:"6"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Subtitle (optional)"),placeholder:(0,p.translate)("Enter subtitle"),property:"section_subtitle"}))));case"settings":return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Border")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Add a border to this section.")),c.default.createElement(y.default,i({},this.props,{property:"section_border",settings:this.props.state,default:"none"}),c.default.createElement(_.default,{value:"none"},(0,p.translate)("None")),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"solid",label:(0,p.translate)("Solid"),boxClass:"sui-tab-boxed"}),c.default.createElement(O.default,null,c.default.createElement(j.default,{cols:"3"},c.default.createElement(x.default,i({},this.props,{type:"number",settings:this.props.state,label:(0,p.translate)("Width"),note:"px",placeholder:"0",property:"cform-section-border-width"}))),c.default.createElement(j.default,{cols:"9"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Color"),property:"cform-section-border-color",defaultValue:"rgba(233,233,233,1)",isAlpha:!0}))))),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"dashed",label:(0,p.translate)("Dashed"),boxClass:"sui-tab-boxed"}),c.default.createElement(O.default,null,c.default.createElement(j.default,{cols:"3"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Width"),note:"px",placeholder:"0",property:"cform-section-border-width"}))),c.default.createElement(j.default,{cols:"9"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Color"),property:"cform-section-border-color",defaultValue:"rgba(233,233,233,1)",isAlpha:!0}))))))));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=S},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(238),y=r(b),v=a(43),g=r(v),E=a(11),_=r(E),w=a(5),O=r(w),P=a(3),j=r(P),k=a(20),x=r(k),N=a(195),C=r(N),S=a(15),T=r(S),F=a(7),D=r(F),M=a(13),A=r(M),V=a(79),R=r(V),U=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=this.props.state.value_type,a="multiselect"===t?"false":"true",r=this.props.state.limit_status,n="enable"===r?"true":"false",o=(this.props.state.required,(0,p.translate)("Note: Pass comma-separated values for this query parameter to pre-populate multiple options."));switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(_.default,null,c.default.createElement(O.default,{cols:"12"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,defaultValue:"single",label:(0,p.translate)("Type"),property:"value_type",clearOptions:"true"}),c.default.createElement("span",{value:"single"},(0,p.translate)("Single")),c.default.createElement("span",{value:"multiselect"},(0,p.translate)("Multiple"))))),"multiselect"!==t&&c.default.createElement(_.default,null,c.default.createElement(O.default,{cols:"12"},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(_.default,null,c.default.createElement(O.default,{cols:"12"},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(_.default,null,c.default.createElement(O.default,{cols:"12"},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement(y.default,i({},this.props,{isRadio:a,isLimit:n})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),"multiselect"!==t&&c.default.createElement(T.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Search")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Display the search box in a dropdown")),c.default.createElement("div",{className:"sui-form-field",style:{marginTop:"0"}},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,defaultValue:"disable",property:"search_status",clearOptions:"true",noWrapper:!0}),c.default.createElement("span",{value:"enable"},(0,p.translate)("Enable")),c.default.createElement("span",{value:"disable"},(0,p.translate)("Disable"))))),c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Limit Submission")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("You can limit submissions of each option to a certain number, and once an option reaches the submission limit, we'll hide that option from the dropdown list.")),c.default.createElement("div",{className:"sui-form-field",style:{marginTop:"0"}},c.default.createElement(D.default,i({},this.props,{settings:this.props.state,default:"disable",property:"limit_status",simple:!0}),c.default.createElement(A.default,{value:"disable",label:(0,p.translate)("Disable")}),c.default.createElement(_.default,i({},this.props,{settings:this.props.state,value:"enable",label:(0,p.translate)("Enable")}),c.default.createElement(O.default,{cols:"12"},c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You can set a limit for your options in the LABELS tab. Options for which limit field is left empty can have unlimited submissions."))))))))),c.default.createElement(R.default,i({},this.props,{notice:"multiselect"===t&&o})));case"calculations":return c.default.createElement(C.default,i({},this.props,{description:(0,p.translate)("Choose whether to allow this field to be used in calculations or not. The value used in calculations is the same as the input value of this field.")}));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=U},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(11),y=r(b),v=a(5),g=r(v),E=a(3),_=r(E),w=a(18),O=r(w),P=a(43),j=r(P),k=a(183),x=(r(k),a(79)),N=r(x),C=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(g.default,{cols:"6"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default Value (optional)"),placeholder:(0,p.translate)("Enter default value"),property:"default"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(j.default,this.props),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Max characters")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default the user can enter as many characters as they want. Use this setting to limit the number of characters the user can enter. Leave field blank to allow unlimited characters.")),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Character limit")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. 100"),property:"limit",fieldClass:"sui-input-sm"})),c.default.createElement(O.default,i({property:"limit_type",settings:this.props.state},this.props),c.default.createElement("option",{value:"characters"},(0,p.translate)("Characters")),c.default.createElement("option",{value:"words"},(0,p.translate)("Words"))))))),c.default.createElement(N.default,this.props));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=C},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(11),y=(r(b),a(5)),v=(r(y),a(3)),g=r(v),E=a(377),_=r(E),w=a(18),O=r(w),P=a(43),j=r(P),k=a(183),x=(r(k),a(20)),N=r(x),C=a(79),S=r(C),T=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a}return l(t,e),s(t,[{key:"updateProperty",value:function(e,t){this.props.state[e]=t}},{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})),c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder")+"\n"+(0,p.translate)("You can add new line"),property:"placeholder"})),c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default Value (optional)"),placeholder:(0,p.translate)("Enter default value"),property:"default"})),c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(j.default,this.props),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Rich-Text editor")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Enable TinyMCE editor to allow the formatted text.")),c.default.createElement(N.default,i({},this.props,{settings:this.props.state,property:"editor-type",defaultValue:"false"}),c.default.createElement("div",{value:"false"},(0,p.translate)("Disable")),c.default.createElement("div",{value:"true"},(0,p.translate)("Enable"))))),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Max characters")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default the user can enter as many characters as they want. Use this setting to limit the number of characters the user can enter. Leave field blank to allow unlimited characters.")),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Character limit")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. 100"),property:"limit",inputClass:"sui-input-sm"})),c.default.createElement(O.default,i({},this.props,{property:"limit_type",settings:this.props.state}),c.default.createElement("option",{value:"characters"},(0,p.translate)("Characters")),c.default.createElement("option",{value:"words"},(0,p.translate)("Words"))))))),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Default height")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the default minimum height of your textarea field.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,defaultValue:"140",property:"default-height",inputClass:"sui-input-sm"})),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("px"))))),c.default.createElement(S.default,this.props));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=T},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),c=a(0),p=r(c),f=a(1),d=a(24),m=r(d),h=a(26),b=r(h),y=a(43),v=r(y),g=a(183),E=(r(g),a(7)),w=r(E),O=a(44),P=r(O),j=a(11),k=r(j),x=a(5),N=r(x),C=a(20),S=r(C),T=a(3),F=r(T),D=a(17),M=r(D),A=a(2),V=r(A),R=a(13),U=r(R),I=a(79),L=r(I),B=a(15),q=r(B),W=function(e){function t(e){return o(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"isTimeValid",value:function(e){var t=!0,a="twelve"===e?"h:mma":"H:mm";if(!_.isUndefined(this.props.state.restrict_time)&&"specific"===this.props.state.restrict_time){var r=_.isUndefined(this.props.state.restrict_start_hour)?0:this.props.state.restrict_start_hour,n=_.isUndefined(this.props.state.restrict_start_minute)?0:this.props.state.restrict_start_minute,o=_.isUndefined(this.props.state.restrict_start_ampm)?"AM":this.props.state.restrict_start_ampm,l=_.isUndefined(this.props.state.restrict_end_hour)?0:this.props.state.restrict_end_hour,i=_.isUndefined(this.props.state.restrict_end_minute)?0:this.props.state.restrict_end_minute,s=_.isUndefined(this.props.state.restrict_end_ampm)?"AM":this.props.state.restrict_end_ampm,u=_.isUndefined(this.props.state.default_time)?"none":this.props.state.default_time,c=_.isUndefined(this.props.state.default_time_hour)?0:this.props.state.default_time_hour,p=_.isUndefined(this.props.state.default_time_minute)?0:this.props.state.default_time_minute,f=_.isUndefined(this.props.state.default_time_ampm)?"AM":this.props.state.default_time_ampm,d="twelve"===e?o:"",m="twelve"===e?s:"",h="twelve"===e?f:"",b=moment(r+":"+n+d,a),y=moment(l+":"+i+m,a),v=moment(c+":"+p+h,a);"default"===u&&(v.isBefore(b)||y.isBefore(v))&&(t=!1)}return t}},{key:"render",value:function(){var e=this.props.type,t=_.isUndefined(this.props.state.time_type)?"":this.props.state.time_type,a="twelve"===t?12:24,r=(0,f.translate)("{{strong}}Note:{{/strong}} The query parameter's value passed in URL should match with the selected time format.",{components:{strong:p.default.createElement("strong",null)}}),o=this.isTimeValid(t);switch(e){case"labels":return p.default.createElement(p.default.Fragment,null,p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"6"},p.default.createElement(S.default,s({},this.props,{settings:this.props.state,property:"field_type",label:(0,f.translate)("Type")}),p.default.createElement("span",{value:"select"},(0,f.translate)("Dropdowns")),p.default.createElement("span",{value:"input"},(0,f.translate)("Number inputs")))),p.default.createElement(N.default,{cols:"6"},p.default.createElement(S.default,s({},this.props,{settings:this.props.state,property:"time_type",label:(0,f.translate)("Type")}),p.default.createElement("span",{value:"twelve"},(0,f.translate)("12 hour")),p.default.createElement("span",{value:"twentyfour"},(0,f.translate)("24 hour"))))),p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Label"),placeholder:(0,f.translate)("Enter label"),property:"field_label"})),p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Description (optional)"),placeholder:(0,f.translate)("Enter description"),property:"description"})),p.default.createElement("label",{className:"sui-label"},(0,f.translate)("Fields")),p.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",style:{marginTop:"10px"}},p.default.createElement(P.default,s({},this.props,{label:(0,f.translate)("Hours")}),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"6"},p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Label (optional)"),placeholder:(0,f.translate)("Enter label"),property:"hh_label"}))),p.default.createElement(N.default,{cols:"6"},p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Placeholder (optional)"),placeholder:(0,f.translate)("Enter placeholder"),property:"hh_placeholder"}))))),p.default.createElement(P.default,s({},this.props,{label:(0,f.translate)("Minutes")}),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"6"},p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Label (optional)"),placeholder:(0,f.translate)("Enter label"),property:"mm_label"}))),p.default.createElement(N.default,{cols:"6"},p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Placeholder (optional)"),placeholder:(0,f.translate)("Enter placeholder"),property:"mm_placeholder"})))))));case"settings":return p.default.createElement(p.default.Fragment,null,p.default.createElement(v.default,this.props),p.default.createElement(q.default,{label:(0,f.translate)("Increments"),labelDark:!0,description:(0,f.translate)("Choose what time increments you want to use for the hour and minute timepickers."),descriptionSpacing:20,sidebar:!1},p.default.createElement("div",{className:"sui-form-field-inline"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Hour"),property:"increment_hour","data-width":"86"}),[].concat(n(Array(a))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)})),p.default.createElement(M.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Minute"),property:"increment_minute","data-width":"86"}),[].concat(n(Array(60))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)})))),p.default.createElement(q.default,{label:(0,f.translate)("Limits"),labelDark:!0,description:(0,f.translate)("Choose a time limit for the time picker field to restrict the time selection between specific hours."),descriptionSpacing:20,sidebar:!1},p.default.createElement(w.default,s({},this.props,{property:"restrict_time",settings:this.props.state,default:"none",simple:!0}),p.default.createElement(V.default,s({settings:this.props.state},this.props,{value:"specific",label:(0,f.translate)("Specific Hours"),boxClass:"sui-tab-boxed"}),p.default.createElement("label",{className:"sui-label"},(0,f.translate)("Start Time")),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,placeholder:"1",property:"restrict_start_hour"}),[].concat(n(Array(a))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,placeholder:"0",property:"restrict_start_minute"}),[].concat(n(Array(60))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),"twelve"===t&&p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,property:"restrict_start_ampm"}),p.default.createElement("option",{value:"am"},(0,f.translate)("AM")),p.default.createElement("option",{value:"pm"},(0,f.translate)("PM"))))),p.default.createElement("label",{className:"sui-label"},(0,f.translate)("End Time")),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,placeholder:"1",property:"restrict_end_hour"}),[].concat(n(Array(a))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,placeholder:"0",property:"restrict_end_minute"}),[].concat(n(Array(60))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),"twelve"===t&&p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,property:"restrict_end_ampm"}),p.default.createElement("option",{value:"am"},(0,f.translate)("AM")),p.default.createElement("option",{value:"pm"},(0,f.translate)("PM"))))),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"12"},p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Error Message"),property:"restrict_message",description:(0,f.translate)("This error message will be used when time entered is out of the set limits.")}))))),p.default.createElement(U.default,{value:"none"},(0,f.translate)("None")))),p.default.createElement(q.default,{label:(0,f.translate)("Default Time"),labelDark:!0,description:(0,f.translate)("Use this feature to specify a default selected time."),descriptionSpacing:20,sidebar:!1},p.default.createElement(w.default,s({},this.props,{property:"default_time",settings:this.props.state,default:"none",simple:!0}),p.default.createElement(V.default,s({},this.props,{label:(0,f.translate)("Default"),settings:this.props.state,value:"default",boxClass:"sui-tab-boxed"}),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Hour"),placeholder:"1",property:"default_time_hour"}),[].concat(n(Array(a))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Minute"),placeholder:"0",property:"default_time_minute"}),[].concat(n(Array(60))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),"twelve"===t&&p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,label:" ",property:"default_time_ampm"}),p.default.createElement("option",{value:"am"},(0,f.translate)("AM")),p.default.createElement("option",{value:"pm"},(0,f.translate)("PM"))))),!o&&p.default.createElement("span",{className:"sui-error-message"},(0,f.translate)("Default time can't be outside the allowed time limit."))),p.default.createElement(U.default,{value:"none"},(0,f.translate)("None")))),p.default.createElement(L.default,s({},this.props,{notice:r})));case"visibility":return p.default.createElement(m.default,this.props);case"styling":return p.default.createElement(b.default,this.props);default:return p.default.createElement("div",null)}}}]),t}(c.Component);t.default=W},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(508),y=r(b),v=a(43),g=r(v),E=a(3),w=r(E),O=a(5),P=(r(O),a(18)),j=r(P),k=a(20),x=r(k),N=a(7),C=r(N),S=a(13),T=r(S),F=a(2),D=r(F),M=a(15),A=r(M),V=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=_.isUndefined(this.props.state["upload-limit"])?0:this.props.state["upload-limit"],a=_.isUndefined(this.props.state.filesize)?"MB":this.props.state.filesize,r="KB"===a?1e3*parseInt(forminatorData.maxUpload):"B"===a?1e6*parseInt(forminatorData.maxUpload):parseInt(forminatorData.maxUpload),n=_.isUndefined(this.props.state["file-type"])?0:this.props.state["file-type"];switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(x.default,i({},this.props,{settings:this.props.state,defaultValue:"single",label:(0,p.translate)("Type"),property:"file-type",clearOptions:"true"}),c.default.createElement("span",{value:"single"},(0,p.translate)("Single")),c.default.createElement("span",{value:"multiple"},(0,p.translate)("Multiple"))),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),c.default.createElement(y.default,this.props),"multiple"===n&&c.default.createElement(A.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Limit number of files")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the maximum number of files that can be uploaded using this field.")),c.default.createElement(C.default,i({},this.props,{settings:this.props.state,property:"file-limit",defaultValue:"unlimited"}),c.default.createElement(T.default,{value:"unlimited",label:(0,p.translate)("Unlimited")}),c.default.createElement(D.default,{value:"custom",label:(0,p.translate)("Custom"),boxClass:"sui-tab-boxed"},c.default.createElement(w.default,i({},this.props,{type:"number",placeholder:"5",defaultValue:"5",property:"file-limit-input",inputClass:"sui-input-sm",label:(0,p.translate)("File upload limit"),settings:this.props.state}))))),c.default.createElement(A.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},"multiple"===n?(0,p.translate)("Filesize limit per file"):(0,p.translate)("Filesize limit")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("We've detected your server will allow uploads up to %(maxUpload)sMB in size currently. You can set a lower limit than this using the input below, however if you want uploads of more than %(maxUpload)sMB you'll need to adjust this in your server's PHP.ini settings.",{args:{maxUpload:forminatorData.maxUpload}})),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Upload limit per file")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,defaultValue:"8",property:"upload-limit",fieldClass:"sui-input-sm"+(parseInt(t)>r?" sui-form-field-error":"")})),c.default.createElement(j.default,i({},this.props,{property:"filesize",settings:this.props.state,defaultValue:"MB",elementClass:"sui-select-inline",simple:!0}),c.default.createElement("option",{value:"MB"},(0,p.translate)("MB")),c.default.createElement("option",{value:"KB"},(0,p.translate)("KB")),c.default.createElement("option",{value:"B"},(0,p.translate)("B")))),c.default.createElement("div",{role:"alert",className:"sui-notice"+(parseInt(t)>r&&" sui-active"),style:{display:parseInt(t)>r?"block":"none"},"aria-live":"assertive"},parseInt(t)>r&&c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("The file size you have entered exceeds what your current hosting settings are capped to. You need to increase your max filesize limit at the server level first."))))))),"multiple"===n&&c.default.createElement(A.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Upload method")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose whether you want to use AJAX to upload individual files as they are selected or use the traditional method of uploading all files together on form submission. We recommend using the AJAX method to avoid server timeouts.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,property:"upload-method",defaultValue:"ajax"}),c.default.createElement("div",{value:"ajax"},(0,p.translate)("AJAX")),c.default.createElement("div",{value:"submission"},(0,p.translate)("On form submission"))))),c.default.createElement(A.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Show files in media library")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose whether you want to show the files uploaded by your visitors using this field in your media library.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,property:"use_library",defaultValue:""}),c.default.createElement("div",{value:"true"},(0,p.translate)("Enable")),c.default.createElement("div",{value:""},(0,p.translate)("Disable"))))));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=V},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(11),d=r(f),m=a(5),h=r(m),b=a(46),y=(r(b),a(509)),v=r(y),g=a(377),E=r(g),w=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"toggleValue",value:function(e){this.props.updateProperty("custom-files",e)}},{key:"render",value:function(){var e=!_.isUndefined(this.props.state["custom-files"])&&this.props.state["custom-files"],t=[],a=[],r=[],n=[],o=[],l=[],s=[],u=[];return _.isUndefined(forminatorData.fileExts.audio)||forminatorData.fileExts.audio.map(function(e){t.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.document)||forminatorData.fileExts.document.map(function(e){a.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.image)||forminatorData.fileExts.image.map(function(e){r.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.video)||forminatorData.fileExts.video.map(function(e){n.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.archive)||forminatorData.fileExts.archive.map(function(e){o.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.text)||forminatorData.fileExts.text.map(function(e){l.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.spreadsheet)||forminatorData.fileExts.spreadsheet.map(function(e){s.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.interactive)||forminatorData.fileExts.interactive.map(function(e){u.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Allowed filetypes")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default, we will use WordPress' {{a}}default allowed mime types{{/a}}. However, you can restrict your users to upload some specific types of files only.",{components:{a:c.default.createElement("a",{href:"https://developer.wordpress.org/reference/functions/get_allowed_mime_types",target:"_blank"})}})),c.default.createElement("div",{className:"sui-tabs sui-side-tabs",style:{marginTop:"10px"}},c.default.createElement("div",{className:"sui-tabs-menu"},c.default.createElement("div",{className:"sui-tab-item "+(e?"":"active"),onClick:this.toggleValue.bind(this,!1)},(0,p.translate)("Default")),c.default.createElement("div",{className:"sui-tab-item "+(e?"active":""),onClick:this.toggleValue.bind(this,!0)},(0,p.translate)("Specific filetypes"))),c.default.createElement("div",{className:"sui-tabs-content"},c.default.createElement("div",{className:"sui-tab-boxed "+(e?"active":"")},c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Images"),settings:this.props.state,fileType:"all-image",property:"filetypes",checkboxes:r}))),c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Documents"),settings:this.props.state,fileType:"all-document",property:"filetypes",checkboxes:a}))),c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Audio"),settings:this.props.state,fileType:"all-audio",property:"filetypes",checkboxes:t}))),c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Video"),settings:this.props.state,fileType:"all-video",property:"filetypes",checkboxes:n})))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Archive"),settings:this.props.state,fileType:"all-archive",property:"filetypes",checkboxes:o}))),c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Text"),settings:this.props.state,fileType:"all-text",property:"filetypes",checkboxes:l}))),c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Spreadsheet"),settings:this.props.state,fileType:"all-spreadsheet",property:"filetypes",checkboxes:s}))),c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Interactive"),settings:this.props.state,fileType:"all-interactive",property:"filetypes",checkboxes:u})))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},c.default.createElement(E.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Additional filetypes"),placeholder:(0,p.translate)("E.g. .ai, .sketch, .studio"),property:"additional-type",description:(0,p.translate)("Add a comma-separated list of filetypes you want to allow in addition to the ones enabled above.")})),c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Note that if you're having trouble uploading one of the enabled filetypes, that filetype may be restricted by your hosting provider."))))))))))))}}]),t}(u.Component);t.default=w},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.updateCheckboxItem=a.updateCheckboxItem.bind(a),a.onSelectAllCheckboxes=a.onSelectAllCheckboxes.bind(a),a}return o(t,e),l(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"onSelectAllCheckboxes",value:function(e,t,a){var r=_.isUndefined(this.props.settings[this.props.property])||!_.isArray(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];a.map(function(a){t?(r=r.concat(e),r.indexOf(a.value)<0&&(r=r.concat(a.value))):(r=r.filter(function(t){return t!==e}),r.indexOf(a.value)>=0&&(r=r.filter(function(e){return e!==a.value})))}),this.updateValue(r)}},{key:"updateCheckboxItem",value:function(e,t,a){var r=this,n=_.isUndefined(this.props.settings[this.props.property])||!_.isArray(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];if(t?n.indexOf(e)<0&&(n=n.concat(e)):!t&&n.indexOf(e)>=0&&(n=n.filter(function(t){return t!==e})),!_.isUndefined(this.props.fileType)){var o=a.filter(function(e){return n.includes(e.value)});n=o.length===a.length?n.concat(this.props.fileType):n.filter(function(e){return e!==r.props.fileType})}this.updateValue(n)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])||!_.isArray(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property],a=this.props.checkboxes;return s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label),s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property+"-"+this.props.fileType,className:"sui-checkbox sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"},s.default.createElement("input",{type:"checkbox",id:"forminator-field-"+this.props.property+"-"+this.props.fileType,value:this.props.fileType,checked:t.indexOf(this.props.fileType)>=0?"checked":"",onChange:function(t){e.onSelectAllCheckboxes(e.props.fileType,t.target.checked,a)}}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,(0,u.translate)("All"))),a.map(function(r,n){return s.default.createElement("label",{key:n,htmlFor:"forminator-field-"+e.props.property+"-"+r.value,className:"sui-checkbox "+r.itemClass},s.default.createElement("input",{type:"checkbox",id:"forminator-field-"+e.props.property+"-"+r.value,value:r.value,checked:t.indexOf(r.value)>=0?"checked":"",onChange:function(t){e.updateCheckboxItem(r.value,t.target.checked,a)}}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,r.label))}))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(11),y=r(b),v=a(5),g=r(v),E=a(3),_=r(E),w=a(43),O=r(w),P=a(237),j=r(P),k=a(79),x=r(k),N=a(183),C=(r(N),function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(g.default,{cols:"6"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default Value (optional)"),placeholder:(0,p.translate)("Enter default value"),property:"default"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))));case"settings":return c.default.createElement("div",null,c.default.createElement(O.default,this.props),c.default.createElement(j.default,this.props),c.default.createElement(x.default,this.props));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component));t.default=C},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(238),y=r(b),v=a(43),g=r(v),E=a(11),w=r(E),O=a(5),P=r(O),j=a(3),k=r(j),x=a(195),N=r(x),C=a(20),S=r(C),T=a(15),F=r(T),D=a(375),M=r(D),A=a(79),V=r(A),R=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=!_.isUndefined(this.props.state.enable_images)&&this.props.state.enable_images;switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement(y.default,i({},this.props,{isRadio:"true"})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),c.default.createElement(F.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Layout")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("By default, we stack the options vertically. However, you can change the options layout below.")),c.default.createElement(S.default,i({},this.props,{settings:this.props.state,property:"layout",defaultValue:"vertical",noWrapper:!0}),c.default.createElement("div",{value:"vertical"},(0,p.translate)("Vertical")),c.default.createElement("div",{value:"horizontal"},(0,p.translate)("Horizontal")))),t&&c.default.createElement(M.default,this.props),c.default.createElement(V.default,this.props));case"calculations":return c.default.createElement(N.default,i({},this.props,{description:(0,p.translate)("Choose whether to allow this field to be used in calculations or not.")}));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=R},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(11),y=r(b),v=a(5),g=r(v),E=a(3),w=r(E),O=a(513),P=r(O),j=a(17),k=r(j),x=a(15),N=r(x),C=a(46),S=r(C),T=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=this.props.state.hidden,a=_.isUndefined(this.props.state.separators)?"":this.props.state.separators;switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(N.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Field Type")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("By default, the calculation field is read-only. You can also hide the field if you don't want to show the calculated result on the form.")),c.default.createElement(S.default,i({},this.props,{property:"read-only",settings:this.props.state,label:(0,p.translate)("Read-only"),disabled:"true",defaultValue:"true",itemClass:"sui-checkbox-sm sui-checkbox-stacked"})),c.default.createElement(S.default,i({},this.props,{property:"hidden",settings:this.props.state,label:(0,p.translate)("Hidden"),itemClass:"sui-checkbox-sm sui-checkbox-stacked"})))),c.default.createElement(N.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Formatting")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"20px"}},(0,p.translate)("Choose how do you want to format the value of this field.")),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g., $"),property:"prefix",label:(0,p.translate)("Prefix")}))),c.default.createElement(g.default,{cols:"6"},c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g., Kg"),property:"suffix",label:(0,p.translate)("Suffix")})))),"custom"===a&&c.default.createElement(u.Fragment,null,c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement("div",{className:"sui-form-field sui-input-md",style:{marginBottom:"5px"}},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Separators")),c.default.createElement(k.default,i({},this.props,{property:"separators",settings:this.props.state,defaultValue:"blank",simple:!0}),c.default.createElement("option",{value:"blank"},(0,p.translate)("1234567.89")),c.default.createElement("option",{value:"comma_dot"},(0,p.translate)("1,234,567.89")),c.default.createElement("option",{value:"dot_comma"},(0,p.translate)("1.234.567,89")),c.default.createElement("option",{value:"space_comma"},(0,p.translate)("1 234 567,89")))),c.default.createElement("div",{className:"sui-border-frame"},c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"thousand-separators",defaultValue:",",label:(0,p.translate)("Thousand Separator")})),c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"decimal-separators",defaultValue:".",label:(0,p.translate)("Decimal Separator")})))))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(k.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",label:(0,p.translate)("Round To"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 decimals")))))),"custom"!==a&&c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(k.default,i({},this.props,{property:"separators",settings:this.props.state,defaultValue:"blank",label:(0,p.translate)("Separators")}),c.default.createElement("option",{value:"blank"},(0,p.translate)("1234567.89")),c.default.createElement("option",{value:"comma_dot"},(0,p.translate)("1,234,567.89")),c.default.createElement("option",{value:"dot_comma"},(0,p.translate)("1.234.567,89")),c.default.createElement("option",{value:"space_comma"},(0,p.translate)("1 234 567,89")))),c.default.createElement(g.default,{cols:"6"},c.default.createElement(k.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",label:(0,p.translate)("Round To")}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 decimals")))))));case"calculations":return c.default.createElement(P.default,i({property:"formula",settings:this.props.state},this.props));case"visibility":return c.default.createElement(c.default.Fragment,null,t&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You can't set visibility conditions for a hidden field. Uncheck the Hidden option in the settings tab and come back here to define visibility rules."))))),!t&&c.default.createElement(d.default,this.props));case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=T},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.insertChar=a.insertChar.bind(a),a.deleteChar=a.deleteChar.bind(a),a.insert=a.insert.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el)}},{key:"componentWillUnmount",value:function(){this.$el.unbind().removeData()}},{key:"updateValue",value:function(e){this.validateFormula(e),"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"insert",value:function(e,t){e.preventDefault();var a=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],r=this.$el.find("textarea"),n=r.prop("selectionStart"),o=a.slice(0,n)+t+a.slice(n);this.updateValue(o),r.val(o),r.focus(),r.prop("selectionStart",n+t.length),r.prop("selectionEnd",n+t.length)}},{key:"deleteChar",value:function(e){if(8===e.which){var t=this.$el.find("textarea"),a=t.prop("selectionStart"),r=t.val(),n=a-1;if("}"===r.substr(n,1)&&-1!==n){e.preventDefault();for(var o=a,l=a;"{"!==r.substr(o-1,1)&&o-1>=0;)o-=1;var i=r.slice(0,o-1)+r.slice(l,r.length);this.updateValue(i),t.val(i),t.prop("selectionStart",o-1),t.prop("selectionEnd",o-1)}}}},{key:"insertChar",value:function(e){var t=[32,34,40,41,42,43,45,47,46,48,49,50,51,52,53,54,55,56,57];_.contains(t,e.charCode)||e.preventDefault()}},{key:"getDisabledFields",value:function(){var e=["number","radio","select","checkbox","calculation","currency"],t=[];return _.each(forminatorData.fields,function(a){_.contains(e,a.type)||t.push(a.type)}),t}},{key:"getFields",value:function(){var e=this.getDisabledFields();return(0,u.getFields)(this.props.wrappers,e)}},{key:"maybeReplaceFields",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=void 0,r=_.map(forminatorData.fields,function(e){return e.type}),n=r.join("|"),o="("+n+")-\\d+",l=new RegExp("\\{("+o+")(\\-[A-Za-z-_]+)?\\}","g"),i=e;a=l.exec(e);){var s=a[0];if(!_.isUndefined(s)){if(!(0,u.fieldExist)(a[1],this.props.wrappers))return{error:(0,u.translate)("%s does not exist in your form. Please insert a valid field from the merged tags option.",{args:[s]}),result:!1};if(t){var c=(0,u.getFieldLabel)(a[1],this.props.wrappers);i=i.replace(s,'<span className="forminator-preview-label">'+c+"</span>")}else i=i.replace(s,1)}}return i}},{key:"previewFormula",value:function(e){return this.maybeReplaceFields(e,!0)}},{key:"validateFormula",value:function(e){var t=this.maybeReplaceFields(e,!1);if(!_.isUndefined(t.error))return this.props.modal.isValid=!1,this.props.modal.validationError=(0,u.translate)("Calculation formula is required!"),t;var a=window.forminatorCalculator(t),r={},n=void 0;try{if(n=a.calculate(),!isFinite(n))return r.error=(0,u.translate)("Infinity calculation result."),r.result=!1,this.props.modal.isValid=!1,this.props.modal.validationError=r.error,r;r.result=Number(n.toFixed(2)),this.props.modal.isValid=!0}catch(e){r.error=e,r.result=!1,this.props.modal.isValid=!1,this.props.modal.validationError=r.error}return r}},{key:"render",value:function(){var e=this,t=this.getFields(),a=_.map(t,function(t,a){if(t.element_id!==e.props.state.element_id)return t.hasCalcs||"calculation"===t.field_type?s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("button",{onClick:function(a){return e.insert(a,"{"+t.element_id+"}")}},t.label)):void 0}),r=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],n=this.validateFormula(r),o=this.previewFormula(r),l=!1===n.result?" fui-error":"";return s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"sui-form-field"},s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Calculation Formula")),s.default.createElement("div",{className:"fui-calculations"+l,ref:function(t){return e.el=t}},s.default.createElement("div",{className:"fui-calcs-bar"},s.default.createElement("div",{className:"sui-dropdown sui-dropdown-right"},s.default.createElement("button",{className:"sui-button-icon sui-button-blue sui-tooltip sui-tooltip-top-left sui-dropdown-anchor","data-tooltip":(0,u.translate)("Add Form Fields")},s.default.createElement("i",{className:"sui-icon-layout","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Open list of fields"))),s.default.createElement("ul",null,a)),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"+")}},s.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Sum"))),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"-")}},s.default.createElement("b",{"aria-hidden":"true"},"-"),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Minus"))),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"*")}},s.default.createElement("b",{"aria-hidden":"true"},"*"),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Multiply"))),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"/")}},s.default.createElement("b",{"aria-hidden":"true"},"/"),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Divide"))),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"(")}},s.default.createElement("b",{"aria-hidden":"true"},"("),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Open parenthesis"))),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,")")}},s.default.createElement("b",{"aria-hidden":"true"},")"),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Close parenthesis")))),s.default.createElement("div",{className:"fui-calcs-editor"},s.default.createElement("textarea",{autoFocus:!0,onKeyPress:function(t){return e.insertChar(t)},onKeyDown:function(t){return e.deleteChar(t)},defaultValue:r,onChange:function(t){e.updateValue(t.target.value)}}))),!1===n.result&&s.default.createElement("span",{className:"sui-error-message"},n.error),s.default.createElement("span",{className:"sui-description"},(0,u.translate)("You can preview your form and check if the formula is generating expected results."))),s.default.createElement("div",{className:"sui-form-field"},s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Formula Preview")),s.default.createElement("div",{className:"fui-calculations-preview",dangerouslySetInnerHTML:{__html:o}})))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(81),d=a(2),m=r(d),h=a(3),b=r(h),y=a(20),v=r(y),g=a(7),E=r(g),w=a(18),O=r(w),P=a(17),j=r(P),k=a(15),x=r(k),N=a(515),C=r(N),S=a(11),T=r(S),F=a(5),D=r(F),M=a(13),A=r(M),V=a(24),R=r(V),U=a(49),I=r(U),L=a(517),B=r(L),q=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a}return l(t,e),s(t,[{key:"updateProperty",value:function(e,t){this.props.state[e]=t}},{key:"getNameOptions",value:function(){var e=[];return(0,p.getFields)(this.props.wrappers,["page-break","postdata","upload","captcha","date","time","consent","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:"requireErrorState",value:function(){var e={isValid:!0,error:!1,paymentKey:[]};return e=(0,p.getPlanValidation)(e,this.props.state.payments)}},{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:"conditionNotes",value:function(){var e=!0,t=[];return _.isUndefined(this.props.state.payments)||_.isEmpty(this.props.state.payments)||_.each(this.props.state.payments,function(e){_.isEmpty(e.conditions)||t.push(e)}),this.props.state.payments.length<=t.length&&(e=!1),e}},{key:"render",value:function(){var e=this.props.type,t=this.getZipFields(),a=this.requireErrorState(),r=this.conditionNotes();switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(T.default,null,c.default.createElement(D.default,{cols:"12"},c.default.createElement(b.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(T.default,null,c.default.createElement(D.default,{cols:"12"},c.default.createElement(b.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(T.default,null,c.default.createElement(D.default,{cols:"12"},c.default.createElement(O.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(T.default,null,c.default.createElement(D.default,{cols:"12"},c.default.createElement(v.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(T.default,null,c.default.createElement(D.default,{cols:"12"},c.default.createElement(E.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(m.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(t,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(A.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,c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red"+(!forminatorData.hasStripe&&" sui-active"),style:{display:forminatorData.hasStripe?"none":"block"},"aria-live":"assertive"},!forminatorData.hasStripe&&c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You 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(x.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Payment Mode")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(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(v.default,i({},this.props,{settings:this.props.state,defaultValue:"test",property:"mode",clearOptions:"true"}),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)("Choose the currency your users will be charged in."),fieldSize:"240"}),_.map(forminatorData.currencies,function(e,t){return c.default.createElement("option",{value:t,key:t},t)}))),c.default.createElement(x.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Payment Plan")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Payment plans let you set up options for accepting payments on your site. You can add multiple plans and conditionally process them based on your form data.")),c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue "+(this.props.state.payments.length>1&&r&&" sui-active"),style:{display:this.props.state.payments.length>1&&r?"block":"none"},"aria-live":"assertive"},this.props.state.payments.length>1&&r&&c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Note: You'll need to configure conditions on each plan to let Forminator know when to process each of the payment plans below."))))),c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-error"+(!a.isValid&&" sui-active"),style:{display:a.isValid?"none":"block"},"aria-live":"assertive"},!a.isValid&&c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("There is an error in one or more of your payment plans. Please review the error and try again."))))),c.default.createElement(B.default,i({},this.props,{errorState:a.paymentKey}))));case"advanced-settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(x.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(E.default,i({},this.props,{property:"receipt",settings:this.props.state,defaultValue:"true"}),c.default.createElement(m.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(A.default,i({},this.props,{settings:this.props.state,value:"false",label:(0,p.translate)("Disable")})))),c.default.createElement(x.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 recognise the transactions made on this form.")),c.default.createElement(b.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(I.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},(0,f.escapeHTML)(e.label))}))),c.default.createElement(x.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Card Validation")),c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Note: Stripe field automatically validates the card as the user fills the card details regardless of the validation behavior set on the Behaviours tab.")))))),c.default.createElement(x.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(E.default,i({},this.props,{settings:this.props.state,property:"billing",default:"false"}),c.default.createElement(m.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 email 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(A.default,i({},this.props,{value:"false",label:(0,p.translate)("Disable")})))),c.default.createElement(x.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(C.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(C.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(b.default,i({},this.props,{property:"base_class",defaultValue:"StripeElement",settings:this.props.state,label:(0,p.translate)("Base class")})),c.default.createElement(b.default,i({},this.props,{property:"complete_class",defaultValue:"StripeElement--complete",settings:this.props.state,label:(0,p.translate)("Complete")})),c.default.createElement(b.default,i({},this.props,{property:"empty_class",defaultValue:"StripeElement--empty",settings:this.props.state,label:(0,p.translate)("Empty")})),c.default.createElement(b.default,i({},this.props,{property:"focused_class",defaultValue:"StripeElement--focus",settings:this.props.state,label:(0,p.translate)("Focused")})),c.default.createElement(b.default,i({},this.props,{property:"invalid_class",defaultValue:"StripeElement--invalid",settings:this.props.state,label:(0,p.translate)("Invalid")})),c.default.createElement(b.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=q},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),c=a(0),p=r(c),f=a(1),d=a(516),m=r(d),h=function(e){function t(e){o(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.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 o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={focus:!1},a}return o(t,e),l(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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(21),d=a(2),m=(r(d),a(11)),h=(r(m),a(5)),b=(r(h),a(518)),y=r(b),v=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addPayment=a.addPayment.bind(a),a.removePayment=a.removePayment.bind(a),a.updatePayment=a.updatePayment.bind(a),a.updateActivePayment=a.updateActivePayment.bind(a),a.state={activePayment:0},a}return l(t,e),s(t,[{key:"updateState",value:function(e){this.props.updateProperty("payments",e)}},{key:"updateActivePayment",value:function(e){this.setState({activePayment:e})}},{key:"getPropState",value:function(){var e=[];return _.each(this.props.state.payments,function(t){var a=Object.assign({},t);e.push(a)}),e}},{key:"updatePayment",value:function(e,t,a){var r=this.getPropState();r[e][t]=a,this.updateState(r)}},{key:"removePayment",value:function(e){var t=this.getPropState();t.splice(e,1),this.updateState(t)}},{key:"addPayment",value:function(){var e=this.getPropState(),t=void 0!==this.props.state.payments?this.props.state.payments.length:0,a=t+1;e.push({plan_name:(0,p.translate)("Plan")+" "+a,payment_method:"single",amount_type:"fixed",subscription_amount_type:"fixed",quantity_type:"fixed",quantity:"1",bill_input:"1"}),this.updateState(e),this.props.history.push("/builder/settings/stripe/plan"),this.updateActivePayment(t)}},{key:"render",value:function(){var e=this;return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-box-builder sui-flushed",style:{marginTop:30}},c.default.createElement("div",{className:"sui-box-builder-body"},c.default.createElement("div",{id:"fui-stripe-plans",className:"sui-accordion sui-accordion-block"},_.map(this.props.state.payments,function(t,a){return c.default.createElement(y.default,i({},e.props,{key:a,counter:a,payment:t,removePayment:e.removePayment,updatePayment:e.updatePayment,activePayment:e.state.activePayment,updateActivePayment:e.updateActivePayment,errorStateClass:e.props.errorState.indexOf(a)>-1}))})))),c.default.createElement("button",{className:"sui-button sui-button-ghost",accessKey:"a",onClick:this.addPayment},c.default.createElement("span",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add Another Plan")))}}]),t}(u.Component);t.default=(0,f.withRouter)(v)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(21),d=a(24),m=r(d),h=a(519),b=r(h),y=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleState=a.toggleState.bind(a),a.removePayment=a.removePayment.bind(a),a.updatePayment=a.updatePayment.bind(a),a.updateProperty=a.updateProperty.bind(a),a}return l(t,e),s(t,[{key:"updatePayment",value:function(e,t,a){this.props.updatePayment(e,t,a)}},{key:"updateProperty",value:function(e,t){this.props.payment[e]=t,this.forceUpdate()}},{key:"toggleState",value:function(){this.props.history.push("/builder/settings/stripe/plan");var e=this.props.counter;this.props.activePayment===this.props.counter&&(e=-1),this.props.updateActivePayment(e)}},{key:"removePayment",value:function(){this.props.removePayment(this.props.counter)}},{key:"showPlanLabel",value:function(){if("single"===this.props.payment.payment_method){var e=(0,p.translate)("Fixed");return"variable"===this.props.payment.amount_type&&(e=(0,p.translate)("Variable")),(0,p.translate)("One Time")+" ("+e+")"}if("subscription"===this.props.payment.payment_method)return(0,p.translate)("Subscription")}},{key:"conditionMarkup",value:function(){var e=(0,p.getFields)(this.props.wrappers),t="hide"===this.props.payment.condition_action?(0,p.translate)("Hide"):(0,p.translate)("Show");if(!_.isUndefined(this.props.payment.conditions)){var a=this.props.payment.conditions[0];if(!_.isUndefined(a)){var r=_.filter(e,function(e){return e.element_id===a.element_id});if(!_.isUndefined(r)&&!_.isEmpty(r)){var n=r[0].label,o=(0,p.getRuleLabel)(a.rule,r.field_type),l=(0,p.getConditionLabel)(r[0],a.value),i=this.props.payment.conditions.length,s="";return i-1>0&&(s="+ "+(i-1)+" "+(0,p.translate)("more condition(s)")),c.default.createElement("span",{className:"fui-has_conditions sui-tooltip sui-tooltip-left sui-tooltip-top-right-mobile","data-tooltip":t+" "+(0,p.translate)("if")+" "+n+" "+o+" "+l+" "+s},c.default.createElement("span",{className:"sui-icon-link sui-sm","aria-hidden":"true"}))}}}}},{key:"render",value:function(){var e=this,t="plan-"+this.props.counter,a=this.conditionMarkup();return c.default.createElement("div",{className:"sui-accordion-item"+(this.props.counter===this.props.activePayment?" sui-accordion-item--open":"")+(this.props.errorStateClass?" validation-error":"")},c.default.createElement("div",{className:"sui-accordion-item-header",onClick:function(){return e.toggleState()}},c.default.createElement("div",{className:"sui-accordion-item-title sui-trim-title"},c.default.createElement("span",{className:"sui-trim-text"},this.props.payment.plan_name)),c.default.createElement("div",{className:"sui-accordion-item-tag sui-trim-title"},c.default.createElement("span",{className:"sui-tag sui-tag-sm"},this.showPlanLabel())),c.default.createElement("div",{className:"sui-accordion-col-auto"},this.props.state.payments.length>1&&c.default.createElement("button",{className:"sui-button-icon sui-button-red",onClick:function(){return e.removePayment()}},c.default.createElement("span",{className:"sui-icon-trash","aria-hidden":"true"}),c.default.createElement("span",{className:"sui-screen-reader-text"},(0,p.translate)("Remove This Plan"))),c.default.createElement("button",{id:"forminator-field-"+t,className:"sui-button-icon sui-accordion-open-indicator","aria-controls":"forminator-field-"+t+"-content","aria-expanded":this.props.counter===this.props.activePayment,onClick:function(){return e.toggleState()}},c.default.createElement("span",{className:"sui-icon-chevron-down","aria-hidden":"true"}),c.default.createElement("span",{className:"sui-screen-reader-text"},(0,p.translate)("Open Plan Settings"))),!_.isUndefined(this.props.payment.conditions)&&this.props.payment.conditions.length>0&&c.default.createElement(c.default.Fragment,null,a))),c.default.createElement("div",{role:"region",id:"forminator-field-"+t+"-content",className:"sui-accordion-item-body","aria-labelledby":"forminator-field-"+t,"aria-hidden":this.props.counter!==this.props.activePayment},c.default.createElement("div",{className:"sui-tabs sui-tabs-flushed"},c.default.createElement("div",{role:"tablist",className:"sui-tabs-menu"},c.default.createElement(f.NavLink,{to:"/builder/settings/stripe/plan",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,p.translate)("Plan setup")),c.default.createElement(f.NavLink,{to:"/builder/settings/stripe/conditions",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,p.translate)("Conditions"))),c.default.createElement(f.Route,{exact:!0,path:"/builder/settings",render:function(){return c.default.createElement(f.Redirect,{to:"/builder/settings/stripe/plan"})}}),c.default.createElement("div",{className:"sui-tabs-content"},c.default.createElement("div",{className:"sui-tab-content active",role:"tabpanel"},c.default.createElement(f.Route,{path:"/builder/settings/stripe/plan",render:function(){return c.default.createElement(b.default,i({},e.props,{payment:e.props.payment,updatePayment:e.updatePayment}))}}),c.default.createElement(f.Route,{path:"/builder/settings/stripe/conditions",render:function(){return c.default.createElement(m.default,i({},e.props,{state:e.props.payment,updateProperty:e.updateProperty,updatePayment:e.updatePayment,isPayment:!0}))}}))))))}}]),t}(u.Component);t.default=(0,f.withRouter)(y)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(2),d=r(f),m=a(11),h=r(m),b=a(5),y=r(b),v=a(3),g=r(v),E=a(7),_=r(E),w=a(520),O=r(w),P=a(521),j=r(P),k=a(522),x=r(k),N=a(49),C=(r(N),function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updatePayment=a.updatePayment.bind(a),a}return l(t,e),s(t,[{key:"updatePayment",value:function(e,t){this.props.updatePayment(this.props.counter,e,t)}},{key:"updateState",value:function(e){this.props.updateProperty("payments",e)}},{key:"render",value:function(){var e=forminatorData.isPro?(0,p.translate)("Subscription"):(0,p.translate)("Subscription {{span}}Pro{{/span}}",{components:{span:c.default.createElement("span",{className:"sui-tag sui-tag-pro"})}});return c.default.createElement(c.default.Fragment,null,c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{settings:this.props.payment,label:(0,p.translate)("Plan name"),placeholder:(0,p.translate)("Plan"),description:(0,p.translate)("This will be displayed on the submissions as well as the Stripe dashboard."),property:"plan_name",isRequired:"true",requiredError:(0,p.translate)("Plan Name is required."),updateProperty:this.updatePayment})))),c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(_.default,i({},this.props,{settings:this.props.payment,property:"payment_method",default:"single",label:(0,p.translate)("Payment type"),updateProperty:this.updatePayment}),c.default.createElement(d.default,i({},this.props,{value:"single",label:(0,p.translate)("One Time"),boxClass:"sui-tab-boxed"}),c.default.createElement(O.default,i({},this.props,{payment:this.props.payment,updatePayment:this.updatePayment}))),c.default.createElement(d.default,i({},this.props,{value:"subscription",label:e,boxClass:"sui-tab-boxed"}),forminatorData.hasStripePro&&forminatorData.isPro&&c.default.createElement(j.default,i({},this.props,{payment:this.props.payment,updatePayment:this.updatePayment})),(!forminatorData.hasStripePro||!forminatorData.isPro)&&c.default.createElement(x.default,this.props))))))}}]),t}(u.Component));t.default=C},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(2),d=r(f),m=a(3),h=r(m),b=a(7),y=r(b),v=a(17),g=r(v),E=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a.updatePayment=a.updatePayment.bind(a),a}return l(t,e),s(t,[{key:"updateProperty",value:function(e,t){this.props.state.payments[this.props.counter][e]=t,this.forceUpdate()}},{key:"updatePayment",value:function(e,t){this.props.updatePayment(e,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(){var e=(0,p.translate)("In %s",{args:[this.props.state.currency]}),t=this.getFields();return c.default.createElement(y.default,i({},this.props,{property:"amount_type",settings:this.props.payment,updateProperty:this.updatePayment,defaultValue:"fixed",wrapperClass:"fui-plan-amount",label:(0,p.translate)("Plan amount"),description:(0,p.translate)("Enter an amount or select a value from a form field in the Variable tab.")}),c.default.createElement(d.default,i({},this.props,{value:"fixed",label:(0,p.translate)("Fixed")}),c.default.createElement(h.default,i({},this.props,{type:"number",property:"amount",settings:this.props.payment,updateProperty:this.updatePayment,fieldClass:"fui-fixed-plan",inputClass:"sui-field-has-suffix",suffix:this.props.state.currency,placeholder:(0,p.translate)("E.g., 20.00"),isRequired:"true",requiredError:(0,p.translate)("Enter an amount or choose a form field.")}))),c.default.createElement(d.default,i({},this.props,{value:"variable",label:(0,p.translate)("Variable"),boxClass:""}),c.default.createElement(g.default,i({},this.props,{settings:this.props.payment,updateProperty:this.updatePayment,property:"variable",note:e}),c.default.createElement("option",{value:""},(0,p.translate)("Select field")),_.map(t,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label)}))))}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(2),d=r(f),m=a(3),h=r(m),b=a(7),y=r(b),v=a(17),g=r(v),E=a(11),w=r(E),O=a(5),P=r(O),j=a(18),k=(r(j),a(46)),x=r(k),N=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a.updatePayment=a.updatePayment.bind(a),a}return l(t,e),s(t,[{key:"updateProperty",value:function(e,t){this.props.state.payments[this.props.counter][e]=t,this.forceUpdate()}},{key:"updatePayment",value:function(e,t){this.props.updatePayment(e,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(){var e=(0,p.translate)("In %s",{args:[this.props.state.currency]}),t=this.getFields(),a=_.isUndefined(this.props.payment.bill_input)?1:this.props.payment.bill_input;return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{property:"subscription_amount_type",settings:this.props.payment,updateProperty:this.updatePayment,wrapperClass:"fui-plan-amount",default:"fixed",label:(0,p.translate)("Plan amount"),description:(0,p.translate)("Enter an amount or select a value from a form field in the Variable tab.")}),c.default.createElement(d.default,i({},this.props,{value:"fixed",label:(0,p.translate)("Fixed"),boxClass:"sui-border-frame"}),c.default.createElement(h.default,i({},this.props,{property:"subscription_amount",settings:this.props.payment,updateProperty:this.updatePayment,type:"number",placeholder:(0,p.translate)("E.g. 20.00"),suffix:this.props.state.currency,fieldClass:"fui-fixed-plan",inputClass:"sui-field-has-suffix",label:(0,p.translate)("Amount"),isRequired:"true",requiredError:(0,p.translate)("Enter an amount or choose a form field.")}))),c.default.createElement(d.default,i({},this.props,{value:"variable",label:(0,p.translate)("Variable"),boxClass:"sui-border-frame"}),c.default.createElement(g.default,i({},this.props,{settings:this.props.payment,updateProperty:this.updatePayment,property:"subscription_variable",label:(0,p.translate)("Choose form field"),note:e}),c.default.createElement("option",{value:""},(0,p.translate)("Select field")),_.map(t,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label)})))),c.default.createElement(y.default,i({},this.props,{property:"quantity_type",settings:this.props.payment,updateProperty:this.updatePayment,default:"fixed",label:(0,p.translate)("Quantity"),description:(0,p.translate)("Enter the quantity or let your users set the quantity in a form field.")}),c.default.createElement(d.default,i({},this.props,{value:"fixed",label:(0,p.translate)("Fixed"),boxClass:"sui-border-frame"}),c.default.createElement(h.default,i({},this.props,{property:"quantity",settings:this.props.payment,updateProperty:this.updatePayment,type:"number",defaultValue:"1",placeholder:(0,p.translate)("E.g., 1"),fieldClass:"sui-input-md",label:(0,p.translate)("Quantity"),isRequired:"true",requiredError:(0,p.translate)("Please enter a quantity or select a form field.")}))),c.default.createElement(d.default,i({},this.props,{value:"variable",label:(0,p.translate)("Variable"),boxClass:"sui-border-frame"}),c.default.createElement(g.default,i({},this.props,{settings:this.props.payment,updateProperty:this.updatePayment,property:"variable_quantity",label:(0,p.translate)("Choose form field"),note:e}),c.default.createElement("option",{value:""},(0,p.translate)("Select field")),_.map(t,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label)})))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Bill every")," ",c.default.createElement("span",{className:"sui-error","aria-hidden":"true"},"*")),c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"6"},c.default.createElement(h.default,i({},this.props,{property:"bill_input",settings:this.props.payment,updateProperty:this.updatePayment,type:"number",defaultValue:"1",placeholder:(0,p.translate)("E.g., 1"),isRequired:"true",requiredError:(0,p.translate)("Duration cannot be empty."),fieldClass:parseInt(a)<=0?" sui-form-field-error":""}))),c.default.createElement(P.default,{cols:"6"},c.default.createElement(g.default,i({},this.props,{property:"bill_period",settings:this.props.payment,updateProperty:this.updatePayment,defaultValue:"years"}),c.default.createElement("option",{value:"day"},(0,p.translate)("Day(s)")),c.default.createElement("option",{value:"week"},(0,p.translate)("Week(s)")),c.default.createElement("option",{value:"month"},(0,p.translate)("Month(s)")),c.default.createElement("option",{value:"year"},(0,p.translate)("Year(s)")))))),c.default.createElement("div",{style:{marginBottom:this.props.payment.allow_trial?20:0}},c.default.createElement(x.default,i({},this.props,{property:"allow_trial",settings:this.props.payment,fieldId:"allow-trial"+this.props.counter,updateProperty:this.updatePayment,label:(0,p.translate)("Allow Trial Period"),tooltip:(0,p.translate)("Check this option to offer a limited-time free trial for this plan"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),this.props.payment.allow_trial&&c.default.createElement(h.default,i({},this.props,{property:"trial_days",settings:this.props.payment,updateProperty:this.updatePayment,inputClass:"sui-field-has-suffix",label:(0,p.translate)("Trial Duration"),description:(0,p.translate)("Enter the number of days that users will try your product for free before they start paying."),type:"number",defaultValue:"14",placeholder:(0,p.translate)("E.g., 14"),suffix:(0,p.translate)("Days")})))}}]),t}(u.Component);t.default=N},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.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),a(11)),d=r(f),m=a(5),h=r(m),b=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(t,[{key:"render",value:function(){var e=forminatorData.isPro?(0,c.translate)("The Stripe Subscription Add-ons is required to use this feature. Install it from the Add-ons page."):(0,c.translate)("The Stripe Subscription Add-on is required to use this feature. Upgrade to Pro to install the add-on.");return u.default.createElement(u.default.Fragment,null,u.default.createElement(d.default,null,forminatorData.showBranding&&u.default.createElement(h.default,{cols:"12"},u.default.createElement("p",{className:"sui-block-content-center"},u.default.createElement("img",{src:forminatorData.pluginUrl+"/assets/img/forminator-disabled.png",srcSet:forminatorData.pluginUrl+"/assets/img/forminator-disabled.png 1x,\n\t\t\t\t\t\t\t\t\t\t"+forminatorData.pluginUrl+"/assets/img/forminator-disabled@2x.png 2x",className:"sui-image sui-image-center"}))),u.default.createElement(h.default,{cols:"12"},u.default.createElement("p",{className:"sui-block-content-center"},u.default.createElement("small",null,e))),u.default.createElement(h.default,{cols:"12"},u.default.createElement("p",{className:"sui-block-content-center"},forminatorData.isPro&&u.default.createElement("a",{href:forminatorData.adminUrl+"admin.php?page=forminator-addons",target:"_blank",className:"sui-button sui-button-blue"},(0,c.translate)("View Add-ons")),!forminatorData.isPro&&u.default.createElement("a",{href:"https://wpmudev.com/project/forminator-pro/?coupon=FORMINATOR-SUBSCRIPTIONS&checkout=0&utm_source=forminator&utm_medium=plugin&utm_campaign=forminator_stripe-addon",target:"_blank",className:"sui-button sui-button-purple"},(0,c.translate)("Try Pro for 35% Off"))))))}}]),t}(s.Component);t.default=b},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(11),y=r(b),v=a(5),g=r(v),E=a(3),w=r(E),O=a(15),P=r(O),j=a(17),k=r(j),x=a(43),N=r(x),C=a(195),S=r(C),T=a(79),F=r(T),D=a(7),M=r(D),A=a(13),V=r(A),R=a(2),U=r(R),I=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=_.isUndefined(this.props.state.limit_min)?1:this.props.state.limit_min,a=_.isUndefined(this.props.state.limit_max)?150:this.props.state.limit_max,r=_.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(N.default,this.props),c.default.createElement(P.default,{label:(0,p.translate)("Currency"),labelDark:!0,description:(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."),sidebar:!1},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"currency",hasSearch:!0}),_.map(forminatorData.currencies,function(e,t){return c.default.createElement("option",{value:t,key:t},e[0])}))),c.default.createElement(P.default,{label:(0,p.translate)("Limit"),labelDark:!0,description:(0,p.translate)("Restrict the value that your users can enter in this field within a custom range."),descriptionSpacing:20,sidebar:!1},c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(w.default,i({type:"number"},this.props,{settings:this.props.state,placeholder:"0",property:"limit_min",label:(0,p.translate)("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(M.default,i({},this.props,{property:"limit_message",settings:this.props.state,default:"false",label:(0,p.translate)("Error Messages")}),c.default.createElement(V.default,{value:"false",label:(0,p.translate)("Default")}),c.default.createElement(U.default,{value:"true",label:(0,p.translate)("Custom"),boxClass:"sui-tab-boxed"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,property:"limit_min_message",type:"text",label:(0,p.translate)("When number is smaller than the min limit"),placeholder:(0,p.translate)("E.g. Please enter a number greater than 0.")})),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,type:"text",property:"limit_max_message",label:(0,p.translate)("When number is greater than the max limit"),placeholder:(0,p.translate)("E.g. Please enter a number lower than 1000.")})))))),c.default.createElement(P.default,{label:(0,p.translate)("Formatting"),labelDark:!0,description:(0,p.translate)("Choose how do you want to format the value of this field."),descriptionSpacing:20,sidebar:!1},c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(k.default,i({},this.props,{property:"separators",settings:this.props.state,defaultValue:"1234567.89",label:(0,p.translate)("Separators"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"blank"},(0,p.translate)("1234567.89")),c.default.createElement("option",{value:"comma_dot"},(0,p.translate)("1,234,567.89")),c.default.createElement("option",{value:"dot_comma"},(0,p.translate)("1.234.567,89")),c.default.createElement("option",{value:"space_comma"},(0,p.translate)("1 234 567,89")))),"custom"!==r&&c.default.createElement(g.default,{cols:"6"},c.default.createElement(k.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",label:(0,p.translate)("Round To"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 decimals"))))),"custom"===r&&c.default.createElement("div",{className:"sui-border-frame"},c.default.createElement("div",{className:"sui-form-field-inline",style:{marginBottom:"5px"}},c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"thousand-separators",defaultValue:",",label:(0,p.translate)("Thousand Separator"),fieldClass:"sui-input-md"})),c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"decimal-separators",defaultValue:".",label:(0,p.translate)("Decimal Separator"),fieldClass:"sui-input-md"})))),"custom"===r&&c.default.createElement("div",{className:"sui-form-field"},c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(k.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",label:(0,p.translate)("Round To"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 decimals"))))))),c.default.createElement(F.default,this.props));case"calculations":return c.default.createElement(S.default,this.props);case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=I},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(11),y=r(b),v=a(5),g=r(v),E=a(3),_=r(E),w=a(17),O=r(w),P=a(43),j=r(P),k=a(214),x=r(k),N=a(2),C=r(N),S=a(7),T=r(S),F=a(13),D=r(F),M=a(33),A=r(M),V=a(15),R=r(V),U=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){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(A.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(x.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(A.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(R.default,{label:(0,p.translate)("Minimum password strength"),labelDark:!0,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."),sidebar:!1},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(j.default,this.props),!0===this.props.state["confirm-password"]&&c.default.createElement(R.default,{label:(0,p.translate)("Validate"),labelDark:!0,description:(0,p.translate)("Make sure the user has filled out this field correctly and warn them when they haven't."),sidebar:!1},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(C.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=U},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(2),d=r(f),m=a(3),h=r(m),b=a(20),y=r(b),v=a(7),g=r(v),E=a(17),w=r(E),O=a(18),P=r(O),j=a(15),k=r(j),x=a(24),N=r(x),C=a(11),S=r(C),T=a(5),F=r(T),D=a(46),M=r(D),A=a(13),V=r(A),R=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"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:"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:"render",value:function(){for(var e=this.props.type,t=this.props.state.layout,a=this.props.state.card,r=(0,p.translate)("In %s",{args:[this.props.state.currency]}),n=this.getFields(),o=[],l=25;l<56;l++)o.push(l);switch(e){case"settings":return c.default.createElement(c.default.Fragment,null,!forminatorData.hasPayPal&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You 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(h.default,i({},this.props,{type:"number",property:"amount",settings:this.props.state,inputClass:"sui-field-has-suffix",label:(0,p.translate)("Fixed amount"),suffix:this.props.state.currency,placeholder:(0,p.translate)("E.g. 20.00"),isRequired:"true",requiredError:(0,p.translate)("Enter an amount or choose a form field.")}))),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(P.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}),o.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)("Disable Funding Sources")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("PayPal automatically adds additional funding sources to the PayPal checkout for visitors from supported countries. However, you can choose to disable funding sources which shouldn't be displayed to visitors.")),c.default.createElement(S.default,null,c.default.createElement(F.default,{cols:"6"},c.default.createElement(M.default,i({},this.props,{property:"card",settings:this.props.state,label:(0,p.translate)("Credit or debit cards"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(M.default,i({},this.props,{property:"credit",settings:this.props.state,label:(0,p.translate)("PayPal Credit"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(M.default,i({},this.props,{property:"bancontact",settings:this.props.state,label:(0,p.translate)("Bancontact"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(M.default,i({},this.props,{property:"blik",settings:this.props.state,label:(0,p.translate)("BLIK"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(M.default,i({},this.props,{property:"eps",settings:this.props.state,label:(0,p.translate)("eps"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(M.default,i({},this.props,{property:"giropay",settings:this.props.state,label:(0,p.translate)("giropay"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(M.default,i({},this.props,{property:"ideal",settings:this.props.state,label:(0,p.translate)("iDEAL"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),c.default.createElement(F.default,{cols:"6"},c.default.createElement(M.default,i({},this.props,{property:"mercadopago",settings:this.props.state,label:(0,p.translate)("Mercado Pago"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(M.default,i({},this.props,{property:"mybank",settings:this.props.state,label:(0,p.translate)("MyBank"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(M.default,i({},this.props,{property:"p24",settings:this.props.state,label:(0,p.translate)("Przelewy24"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(M.default,i({},this.props,{property:"sepa",settings:this.props.state,label:(0,p.translate)("SEPA-Lastschrift"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(M.default,i({},this.props,{property:"sofort",settings:this.props.state,label:(0,p.translate)("Sofort"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(M.default,i({},this.props,{property:"venmo",settings:this.props.state,label:(0,p.translate)("Venmo"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))))),!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(F.default,{cols:"6"},c.default.createElement(M.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(M.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(M.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(M.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(F.default,{cols:"6"},c.default.createElement(M.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(M.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(M.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)("Pre-fill Billing Details")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Pre-fill the payer's billing info collected on your form on the Debit or Credit Card checkout, so the payer doesn't have to enter those details again.")),c.default.createElement(S.default,null,c.default.createElement(F.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{property:"billing-details",settings:this.props.state,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("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Customer name (optional)")),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,property:"billing-name",noWrapper:!0}),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("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Customer email address (optional)")),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,property:"billing-email",noWrapper:!0}),c.default.createElement("option",{value:""},(0,p.translate)("Select an email field")),_.map(this.getFieldsByType("email"),function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)}))),c.default.createElement("div",{className:"sui-form-field",style:{marginBottom:"10px"}},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Billing address (optional)")),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,property:"billing-address",noWrapper:!0}),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(V.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)("Shipping Address")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("If you are selling a product that doesn't need to be shipped, you can choose to disable and hide the shipping address fields from the PayPal payment page.")),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,property:"shipping_address",defaultValue:"disable",noWrapper:!0}),c.default.createElement("div",{value:"enable"},(0,p.translate)("Enable")),c.default.createElement("div",{value:"disable"},(0,p.translate)("Disable")))),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(F.default,{cols:"6"},c.default.createElement(h.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("Eg. en_US"),property:"locale"}))))),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=R},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(2),d=r(f),m=a(11),h=r(m),b=a(5),y=r(b),v=a(3),g=r(v),E=a(25),w=r(E),O=a(18),P=r(O),j=a(20),k=r(j),x=a(4),N=r(x),C=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=(0,p.getForminatorField)(a.props.state);return a.settings=r.settings,a}return l(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(P.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){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(173),f=r(p),d=a(175),m=r(d),h=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a.previewLoaded=a.previewLoaded.bind(a),a}return l(t,e),i(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,c.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_form",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 u.default.createElement(u.default.Fragment,null,u.default.createElement(f.default,{closeType:"icon",closeModal:this.closeModal},u.default.createElement(m.default,{label:(0,c.translate)("Preview")})),u.default.createElement("div",{className:"sui-box-body",ref:function(t){return e.body=t}},u.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-loading sui-active",style:{display:"block"},"aria-live":"assertive"},u.default.createElement("div",{className:"sui-notice-content"},u.default.createElement("div",{className:"sui-notice-message"},u.default.createElement("span",{className:"sui-notice-icon sui-icon-loader sui-loading","aria-hidden":"true"}),u.default.createElement("p",null,(0,c.translate)("Loading preview…"))))),u.default.createElement("form",{ref:function(t){return e.el=t},id:"forminator-module-"+this.props.id,"data-forminator-render":"0",className:"sui-hidden"})))}}]),t}(s.Component);t.default=h},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),c=a(0),p=r(c),f=a(21),d=a(1),m=a(24),h=r(m),b=a(26),y=r(b),v=a(11),g=r(v),E=a(5),_=r(E),w=a(3),O=r(w),P=a(173),j=r(P),k=a(175),x=r(k),N=a(180),C=r(N),S=a(174),T=r(S),F=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a.updateProperty=a.updateProperty.bind(a),a.applyChanges=a.applyChanges.bind(a),a.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(j.default,{closeType:"icon",closeModal:this.closeModal},p.default.createElement(x.default,{label:(0,d.translate)("Edit Field"),tag:(0,d.translate)("Submit")})),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(C.default,{alignment:"separated"},p.default.createElement(T.default,{icon:"undo",label:(0,d.translate)("Discard Changes"),closeModal:this.closeModal,customClass:"sui-button-ghost forminator-discard-field-settings"}),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=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 o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"+(forminatorData.showBranding?" sui-spacing-bottom--30":" sui-spacing-bottom--60")},s.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),s.default.createElement("h3",{className:"sui-box-title sui-lg",id:"dialogTitle"},(0,u.translate)("Publishing form…")),s.default.createElement("p",{className:"sui-description"},(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){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=(a(21),a(1)),p=a(174),f=r(p),d=a(173),m=r(d),h=a(180),b=r(h),y=a(175),v=r(y),g=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a.closeSettingModal=a.closeSettingModal.bind(a),a.trashField=a.trashField.bind(a),a}return l(t,e),i(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal(),this.closeNotice()}},{key:"closeNotice",value:function(){var e=(0,c.hasFieldType)("stripe",this.props.wrappers),t=(0,c.hasFieldType)("paypal",this.props.wrappers);if(e&&!t||t&&!e){jQuery("#forminator-notification").stop().slideUp("slow")}}},{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,(0,c.getCalculationFields)(this.props.wrappers)),a=[];if(_.each(t,function(t){(_.isUndefined(t.formula)||!1===t.formula)&&(t.formula=""),t.formula.indexOf("{"+e.props.modal.modalProps.field.element_id+"}")>=0&&a.push({id:t.element_id,label:t.label,field:t})}),_.isEmpty(a))return u.default.createElement(u.default.Fragment,null,u.default.createElement(m.default,{flatten:!0,alignment:"center",closeType:"icon",closeModal:this.closeModal,customClass:"sui-spacing-top--60"},u.default.createElement(v.default,{id:this.props.modal.modalProps.id,label:(0,c.translate)("Field can't be deleted"),size:"lg"}),u.default.createElement("p",{id:"modal-desc-"+this.props.modal.modalProps.id,className:"sui-description"},(0,c.translate)("Deleting this field {%(name)s} will remove its value from the existing submissions as well.",{args:{name:this.props.modal.modalProps.field.element_id}}))),u.default.createElement(b.default,{customClass:"sui-flatten sui-content-center"},u.default.createElement(f.default,{label:(0,c.translate)("Cancel"),closeModal:this.closeModal,customClass:"sui-button-ghost"}),u.default.createElement("button",{className:"sui-button sui-button-red sui-button-ghost",onClick:this.trashField},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}))));if(!_.isEmpty(a)){var r=_.map(a,function(t,a){return u.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},u.default.createElement("i",{className:"fui-list-icon sui-icon-calculator","aria-hidden":"true"}),u.default.createElement("span",{className:"fui-list-label"},t.label),u.default.createElement("button",{className:"sui-button-icon",onClick:e.editSettings.bind(e,t)},u.default.createElement("i",{className:"sui-icon-pencil","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Edit Field"))))});return u.default.createElement(u.default.Fragment,null,u.default.createElement(m.default,{flatten:!0,alignment:"center",closeType:"icon",closeModal:this.closeModal,customClass:"sui-spacing-top--60"},u.default.createElement(v.default,{id:this.props.modal.modalProps.id,label:(0,c.translate)("Field can't be deleted")}),u.default.createElement("p",{id:"modal-desc-"+this.props.modal.modalProps.id,className:"sui-description"},(0,c.translate)("Please remove the reference of this field from the following form fields and then delete this."))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("div",{className:"sui-form-field"},u.default.createElement("label",{className:"sui-label"},(0,c.translate)("Form Fields")),u.default.createElement("ul",{className:"fui-list-fields"},r))),u.default.createElement(b.default,{flatten:!0,alignment:"center"},u.default.createElement(f.default,{label:(0,c.translate)("Got It"),closeModal:this.closeModal})))}}}]),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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(32),f=r(p),d=a(23),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a.copyToClipboard=a.copyToClipboard.bind(a),a}return l(t,e),i(t,[{key:"copyToClipboard",value:function(){this.input.select(),document.execCommand("copy"),new f.default({type:"success",text:(0,c.translate)("Shortcode has been copied successfully."),time:4e3}).open()}},{key:"render",value:function(){var e=this;return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},u.default.createElement(d.ButtonIcon,{icon:"close",iconSize:"md",label:(0,c.translate)("Close this dialog window"),className:"sui-button-float--right forminator-cancel-create-form",onClick:this.closeModal}),u.default.createElement("span",{className:"sui-icon-check sui-lg","aria-hidden":"true"}),u.default.createElement("h3",{id:"dialogTitle",className:"sui-box-title sui-lg"},(0,c.translate)("Ready to go!")),u.default.createElement("p",{className:"sui-description"},(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",{className:"sui-box-body"+(forminatorData.showBranding?"":" sui-spacing-bottom--60")},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",defaultValue:'[forminator_form id="'+this.props.id+'"]',id:"forminator-form-shortcode",className:"sui-form-control",ref:function(t){return e.input=t}}),u.default.createElement(d.ButtonIcon,{icon:"copy",iconSize:"sm",label:(0,c.translate)("Copy shortcode"),onClick:this.copyToClipboard})))),forminatorData.showBranding&&u.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-visibility.png",srcSet:forminatorData.imagesUrl+"/forminator-visibility.png 1x, "+forminatorData.imagesUrl+"/forminator-visibility@2x.png 2x",className:"sui-image sui-image-center"}))}}]),t}(s.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(50),d=r(f),m=a(51),h=r(m),b=a(32),y=r(b),v=a(17),g=r(v),E=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a}return l(t,e),s(t,[{key:"applyPreset",value:function(){var e=this,t=this.props.settings,a=jQuery("#forminator-apply-preset"),r=[forminatorData.currentForm.settings.form_id],n=jQuery("#forminator-field-appearance_preset").val();a.addClass("sui-button-onload-text");var o={action:"forminator_apply_appearance_preset",_ajax_nonce:forminatorData.modules.ApplyPreset.nonce,edit_form:!0,settings:JSON.stringify(t),preset_id:n,ids:r};d.default.post(forminatorData.ajaxUrl,h.default.stringify(o)).then(function(t){if(t.data.success){e.props.actions.settingsActions.resetSettings(t.data.data),jQuery(".sui-accordion-item--open .sui-accordion-item-header").trigger("click"),e.closeModal();new y.default({type:"success",text:(0,p.translate)("Appearance preset successfully applied."),time:4e3}).open()}else{new y.default({type:"error",text:t.data.data}).open()}}).catch(function(e){new y.default({type:"error",text:(0,p.translate)("Something went wrong. Please try again.")}).open(),console.log(e)}).then(function(){setTimeout(function(){a.removeClass("sui-button-onload-text")},1e3)})}},{key:"render",value:function(){var e=this;return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60",style:{paddingBottom:"0"}},c.default.createElement("button",{className:"sui-button-icon sui-button-float--right forminator-popup-close forminator-cancel-create-form","aria-label":(0,p.translate)("Close this dialog window"),onClick:this.closeModal},c.default.createElement("span",{className:"sui-icon-close sui-md","aria-hidden":"true"}),c.default.createElement("span",{className:"sui-screen-reader-text"},(0,p.translate)("Close this dialog window"))),c.default.createElement("h3",{className:"sui-box-title sui-lg",id:"dialogTitle"},forminatorData.modules.ApplyPreset.title),c.default.createElement("span",{className:"sui-description",style:{marginTop:"15px"}},(0,p.translate)("Select an appearance preset from the list below to apply the appearance to your form. You can edit or create new presets in {{link}}Settings > Appearance Preset{{/link}}",{components:{link:c.default.createElement("a",{href:forminatorData.modules.ApplyPreset.presetUrl,target:"_blank"})}}))),c.default.createElement("div",{className:"sui-box-body"},c.default.createElement("div",{className:"sui-form-field",style:{marginBottom:"10px"}},c.default.createElement(g.default,i({},this.props,{property:"appearance_preset"}),_.map(forminatorData.modules.ApplyPreset.presets,function(e,t){return c.default.createElement("option",{value:t,key:t},e)}))),c.default.createElement("div",{className:"sui-notice",style:{marginTop:"10px"}},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"}),c.default.createElement("p",null,forminatorData.modules.ApplyPreset.noticeForm))))),c.default.createElement("div",{className:"sui-box-footer sui-flatten sui-content-center",style:{paddingTop:"0"}},c.default.createElement("button",{id:"forminator-apply-preset",className:"sui-button sui-button-blue",onClick:function(){return e.applyPreset()}},c.default.createElement("span",{className:"sui-button-text-default"},c.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"})," ",forminatorData.modules.ApplyPreset.button),c.default.createElement("span",{className:"sui-button-text-onload"},c.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),(0,p.translate)("Applying preset...")))))}}]),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,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),c=a(0),p=r(c),f=a(21),d=a(1),m=a(11),h=r(m),b=a(5),y=r(b),v=a(3),g=r(v),E=a(13),w=r(E),O=a(2),P=r(O),j=a(7),k=r(j),x=a(170),N=r(x),C=a(534),S=r(C),T=a(15),F=r(T),D=a(180),M=r(D),A=a(174),V=r(A),R=a(173),U=r(R),I=a(175),L=r(I),B=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a.updateProperty=a.updateProperty.bind(a),a.applyChanges=a.applyChanges.bind(a),a.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(U.default,{closeType:"icon",closeModal:this.closeModal},p.default.createElement(L.default,{label:(0,d.translate)("Edit Field"),tag:(0,d.translate)("Pagination")})),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,{key:t.element_id},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(F.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",description:(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(P.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(F.default,null,p.default.createElement(k.default,s({},e.props,{settings:e.state,property:"pagination-labels",settingsLabel:(0,d.translate)("Buttons Text"),default:"default",description:(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(P.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(M.default,{alignment:"separated"},p.default.createElement(V.default,{icon:"undo",label:(0,d.translate)("Discard Changes"),closeModal:this.closeModal,customClass:"sui-button-ghost forminator-discard-field-settings"}),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=B},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"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",{className:"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",{className:"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 o(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 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(21),m=a(1),h=a(81),b=a(11),y=r(b),v=a(5),g=r(v),E=a(3),w=r(E),O=a(33),P=r(O),j=a(49),k=r(j),x=a(15),N=(r(x),a(7)),C=r(N),S=a(536),T=r(S),F=a(538),D=r(F),M=a(2),A=r(M),V=a(20),R=r(V),U=a(173),I=r(U),L=a(175),B=r(L),q=a(180),W=r(q),$=a(174),z=r($),Y=function(e){function t(e){l(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(o({},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","consent","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","consent","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=e.term.trim();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="",o={};"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",i="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",i="email-editor-method-email";break;case"manual":l="email-subject-method-manual",i="email-editor-method-manual";break;case"default":default:l="email-subject",i="email-editor"}return(_.isUndefined(this.state[i])||_.isEmpty(this.state[i]))&&(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.")),_.isEmpty(this.state["form-email"])||(o={display:"block"}),f.default.createElement(f.default.Fragment,null,f.default.createElement(I.default,{closeType:"icon",closeModal:this.closeModal,customClass:"forminator-builder-fields-close"},f.default.createElement(B.default,{id:"",label:(0,m.translate)("Add Email Notification")})),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(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(w.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(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(k.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},(0,h.escapeHTML)(e.label))})))),f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(P.default,u({},e.props,{settings:e.state,property:i,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(y.default,null,f.default.createElement(g.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(C.default,u({},e.props,{property:"email-recipients",default:"default",settings:e.state,updateProperty:e.updateProperty,simple:!0}),f.default.createElement(A.default,u({},e.props,{value:"default",label:(0,m.translate)("Default"),boxClass:"sui-tab-boxed"}),f.default.createElement(k.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},(0,h.escapeHTML)(e.label))}))),f.default.createElement(A.default,u({},e.props,{value:"routing",label:(0,m.translate)("Email Routing")}),f.default.createElement(T.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(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(k.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},(0,h.escapeHTML)(e.label))})))),f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(k.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},(0,h.escapeHTML)(e.label))})),f.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue"+(!_.isEmpty(e.state["form-email"])&&" sui-active"),"aria-live":"assertive",style:o},!_.isEmpty(e.state["form-email"])&&f.default.createElement("div",{className:"sui-notice-content"},f.default.createElement("div",{className:"sui-notice-message"},f.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),f.default.createElement("p",null,(0,m.translate)('Some hosts do not allow "from email" to be overridden or replaced due to spam issues.'))))))),f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(k.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},(0,h.escapeHTML)(e.label))})))),f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(k.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},(0,h.escapeHTML)(e.label))})))),f.default.createElement(y.default,null,f.default.createElement(g.default,{cols:"12"},f.default.createElement(k.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},(0,h.escapeHTML)(e.label))})))))}}),f.default.createElement(d.Route,{path:"/notifications/conditions",render:function(){return f.default.createElement(D.default,u({},e.props,{updateProperty:e.updateProperty,state:e.state}))}}))))),f.default.createElement(W.default,{alignment:"separated"},f.default.createElement(z.default,{icon:"undo",label:(0,m.translate)("Discard Changes"),closeModal:this.closeModal}),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=Y},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(537),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.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 l(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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(81),d=a(11),m=r(d),h=a(5),b=r(h),y=a(3),v=r(y),g=a(18),E=r(g),w=a(17),O=r(w),P=a(49),j=r(P),k=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleState=a.toggleState.bind(a),a.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 l(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","consent","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,o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],l=["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},(0,f.escapeHTML)(e.label))})),c.default.createElement(m.default,{class:"sui-align-bottom sui-spacing-10"},c.default.createElement(b.default,{cols:"6",customClass:"sui-padding-right-10"},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)("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(b.default,{cols:"6",customClass:"sui-padding-left-10"},c.default.createElement(O.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")),"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"))),"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 greater than")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less than"))),!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(m.default,null,c.default.createElement(b.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&&(!l.includes(this.props.rule.rule)||"date"!==a.field_type)&&c.default.createElement(v.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(o,function(e){return c.default.createElement("option",{value:e,key:e},e)})),!a.hasOptions&&"date"===a.field_type&&("day_is"===this.props.rule.rule||"day_is_not"===this.props.rule.rule)&&c.default.createElement("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=k},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(539),d=r(f),m=a(20),h=r(m),b=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addRule=a.addRule.bind(a),a.removeRule=a.removeRule.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateValue=a.updateValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.fields=(0,p.getFields)(a.props.wrappers),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 l(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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(11),d=r(f),m=a(5),h=r(m),b=a(3),y=r(b),v=a(18),g=r(v),E=a(17),w=r(E),O=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleState=a.toggleState.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateValue=a.updateValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.state={open:!1},a.fields=a.props.fields,a}return l(t,e),s(t,[{key:"removeRule",value:function(){this.props.removeRule(this.props.counter)}},{key:"updateField",value:function(e,t){this.props.updateField(this.props.counter,t)}},{key:"updateRule",value:function(e,t){this.props.updateRule(this.props.counter,t)}},{key:"updateValue",value:function(e){this.props.updateValue(this.props.counter,e.target.value)}},{key:"updateInputValue",value:function(e,t){this.props.updateInputValue(this.props.counter,t)}},{key:"toggleState",value:function(){this.setState({open:!this.state.open})}},{key:"disableSearch",value:function(){return{minimumResultsForSearch:-1}}},{key:"render",value:function(){var e=this,t="condition-"+this.props.counter,a=_.where(this.fields,{element_id:this.props.rule.element_id})[0]||{},r=_.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"],o=["day_is","day_is_not","month_is","month_is_not"],l=["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")),"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"))),"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 greater than")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less than"))),!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&&(!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,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(l,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){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t,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 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(21),m=a(1),h=a(11),b=r(h),y=a(5),v=r(y),g=a(3),E=r(g),w=a(46),O=r(w),P=a(49),j=r(P),k=a(18),x=r(k),N=a(33),C=r(N),S=a(15),T=(r(S),a(7)),F=r(T),D=a(541),M=r(D),A=a(2),V=r(A),R=a(20),U=(r(R),a(23)),I=function(e){function t(e){l(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.behavior,a}return s(t,e),c(t,[{key:"updateProperty",value:function(e,t){this.setState(o({},e,t))}},{key:"componentWillUnmount",value:function(){this.props.history.push({pathname:"/behaviour/"})}},{key:"applyChanges",value:function(){if(this.data.new){var e=Object.assign({},this.state),t=[].concat(n(this.data.behaviors),[e]);this.props.actions.behaviorsActions.updateBehaviorArray(t)}this.data.new||this.props.actions.behaviorsActions.updateBehavior(this.state),this.closeModal()}},{key:"getNameOptions",value:function(){var e=[];return(0,m.getFields)(this.props.wrappers,["page-break","postdata","upload","captcha","gdprcheckbox","password"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings["activation-method"])?"":this.props.settings["activation-method"],a="thankyou-message",r=(0,m.getSubmissionBehaviors)(),n=Object.values(r),o=Object.keys(r);return"email"!==t&&"manual"!==t||(a=t+"-"+a),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)("After Submission")),f.default.createElement("div",{className:"sui-actions-right"},f.default.createElement(U.ButtonIcon,{icon:"close",iconSize:"md",label:(0,m.translate)("Close this dialog window"),className:"forminator-builder-fields-close",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:"/behaviour/behavior/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,m.translate)("Behavior")),f.default.createElement(d.NavLink,{to:"/behaviour/conditions/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,m.translate)("Conditions"))),f.default.createElement(d.Route,{exact:!0,path:"/behaviour/",render:function(){return f.default.createElement(d.Redirect,{to:"/behaviour/behavior"})}}),f.default.createElement("div",{className:"sui-tabs-content"},f.default.createElement("div",{className:"sui-tab-content active"},f.default.createElement(d.Route,{path:"/behaviour/behavior",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)("Only used to identify this behavior, and not displayed to users."),placeholder:(0,m.translate)("E.g., Inline Message"),property:"label",updateProperty:e.updateProperty})))),f.default.createElement(b.default,null,f.default.createElement(v.default,{cols:"12"},f.default.createElement(F.default,u({},e.props,{settings:e.state,updateProperty:e.updateProperty,property:"submission-behaviour",label:(0,m.translate)("Behavior"),default:o[0]}),f.default.createElement(V.default,{value:o[0],boxClass:"sui-tab-boxed",label:n[0]},f.default.createElement(C.default,u({},e.props,{settings:e.state,updateProperty:e.updateProperty,property:a,descriptionTop:(0,m.translate)("Display an inline success message to the user after the form is submitted."),editorOptions:forminatorData.variables,paymentOptions:forminatorData.payment_variables,cutomTinymce:"bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link",enableFormData:"true"}),n[0]),f.default.createElement("div",{className:"sui-form-field"},f.default.createElement("div",{style:{display:"inline-block"}},f.default.createElement(O.default,u({},e.props,{property:"autoclose",settings:e.state,updateProperty:e.updateProperty,defaultValue:"true",itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),f.default.createElement("span",{className:"sui-field-prefix sui-field-suffix",style:{fontWeight:"500",fontSize:"13px"}},(0,m.translate)("Auto-close success message after")),f.default.createElement(E.default,u({},e.props,{property:"autoclose-time",settings:e.state,updateProperty:e.updateProperty,placeholder:(0,m.translate)("E.g. 5"),inputClass:"sui-input-sm sui-field-has-suffix",disabled:!e.state.autoclose,simple:!0})),f.default.createElement("span",{className:"sui-field-suffix",style:{fontWeight:"500",fontSize:"13px"}},(0,m.translate)("seconds.")))),f.default.createElement(V.default,{value:o[1],boxClass:"sui-tab-boxed",label:n[1]},f.default.createElement(b.default,null,f.default.createElement(v.default,{cols:"12"},f.default.createElement(j.default,u({},e.props,{placeholder:(0,m.translate)("https://www.mywebsite.com"),property:"redirect-url",settings:e.state,updateProperty:e.updateProperty,label:(0,m.translate)("Redirect URL"),boxClass:"sui-tab-boxed",description:(0,m.translate)("Provide the absolute URL of the page you want to redirect users to after submitting the login form. For example, to redirect users to the WordPress admin, use the URL {{strong}}http://www.website.com/wp-admin/{{/strong}}.",{components:{strong:f.default.createElement("strong",null)}})}),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(x.default,u({},e.props,{property:"newtab",settings:e.state,updateProperty:e.updateProperty,label:(0,m.translate)("Redirection Option"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}),f.default.createElement("option",{value:"sametab"},(0,m.translate)("Redirect on the same tab")),f.default.createElement("option",{value:"newtab_thankyou"},(0,m.translate)("Redirect on new tab and show thank you message on form page")),f.default.createElement("option",{value:"newtab_hide"},(0,m.translate)("Redirect on new tab and hide form on the form page")))))),f.default.createElement(V.default,{value:o[2],boxClass:"sui-tab-boxed",label:n[2]},f.default.createElement(C.default,u({},e.props,{property:a,settings:e.state,updateProperty:e.updateProperty,extraId:"-hide",descriptionTop:(0,m.translate)("Hide the form after submission, and display a success message to the user."),editorOptions:forminatorData.variables,enableFormData:"true"}),(0,m.translate)("Submit Message")),f.default.createElement("div",{className:"sui-form-field"},f.default.createElement("div",{style:{display:"inline-block"}},f.default.createElement(O.default,u({},e.props,{property:"autoclose",settings:e.state,updateProperty:e.updateProperty,defaultValue:"true",itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),f.default.createElement("span",{className:"sui-field-prefix sui-field-suffix",style:{fontWeight:"500",fontSize:"13px"}},(0,m.translate)("Auto-close success message after")),f.default.createElement(E.default,u({},e.props,{property:"autoclose-time",settings:e.state,updateProperty:e.updateProperty,defaultValue:"5",placeholder:(0,m.translate)("E.g. 5"),inputClass:"sui-input-sm sui-field-has-suffix",disabled:!e.state.autoclose,simple:!0})),f.default.createElement("span",{className:"sui-field-suffix",style:{fontWeight:"500",fontSize:"13px"}},(0,m.translate)("seconds."))))))))}}),f.default.createElement(d.Route,{path:"/behaviour/conditions",render:function(){return f.default.createElement(M.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-close","aria-hidden":"true"}),(0,m.translate)("Cancel")),f.default.createElement("div",{className:"sui-actions-right"},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)("Apply")),f.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),!1)))}}]),t}(p.Component);t.default=I},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(542),d=r(f),m=a(20),h=r(m),b=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addRule=a.addRule.bind(a),a.removeRule=a.removeRule.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateValue=a.updateValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.fields=(0,p.getFields)(a.props.wrappers),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 l(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("span",{className:"sui-description",style:{marginRight:"10px"}},(0,p.translate)("Process behavior if ")),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 conditions below 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)("Add conditions for when this behavior will be processed.")))));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 Condition"))):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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(11),d=r(f),m=a(5),h=r(m),b=a(3),y=r(b),v=a(17),g=r(v),E=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleState=a.toggleState.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateValue=a.updateValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.state={open:!1},a.fields=a.props.fields,a}return l(t,e),s(t,[{key:"removeRule",value:function(){this.props.removeRule(this.props.counter)}},{key:"updateField",value:function(e,t){this.props.updateField(this.props.counter,t)}},{key:"updateRule",value:function(e,t){this.props.updateRule(this.props.counter,t)}},{key:"updateValue",value:function(e){this.props.updateValue(this.props.counter,e.target.value)}},{key:"updateInputValue",value:function(e,t){this.props.updateInputValue(this.props.counter,t)}},{key:"toggleState",value:function(){this.setState({open:!this.state.open})}},{key:"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"],o=["day_is","day_is_not","month_is","month_is_not"],l=["Su","Mo","Tu","We","Th","Fr","Sa"],s="consent"===a.field_type;return s&&(this.props.rule.value=(0,p.translate)("checked")),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("span",{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("span",{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"),hasSearch:!0}),_.map(this.fields,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label," | ",e.element_id)})),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"6"},c.default.createElement(g.default,i({},this.props,{elementId:t+"-condrule",settings:this.props.rule,property:"rule",updateProperty:this.updateRule,label:(0,p.translate)("Condition (required)"),"data-placeholder":(0,p.translate)("Select rule"),hasSearch:!0}),c.default.createElement("option",null),"signature"===a.field_type&&!s&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is"},(0,p.translate)("Is null")),c.default.createElement("option",{value:"is_not"},(0,p.translate)("Is not null"))),"signature"!==a.field_type&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is"},(0,p.translate)("Is")),c.default.createElement("option",{value:"is_not"},(0,p.translate)("Is not"))),a.isNumber&&!s&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_great"},(0,p.translate)("Is greater than")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less than"))),!a.isNumber&&!a.hasOptions&&"signature"!==a.field_type&&!s&&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)&&!s&&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)&&!s&&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&&s&&c.default.createElement(y.default,i({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,label:(0,p.translate)("Status"),disabled:!0})),!a.hasOptions&&"signature"!==a.field_type&&!s&&(!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,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(l,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=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),c=a(0),p=r(c),f=a(1),d=a(544),m=r(d),h=a(23),b=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a.updateProperty=a.updateProperty.bind(a),a.applyChanges=a.applyChanges.bind(a),a.data=Object.assign({},a.props.modal.modalProps),a.state=_.isUndefined(a.data.conditions[a.data.integrationId])?{}:a.data.conditions[a.data.integrationId],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:"/integrations/"})}},{key:"applyChanges",value:function(){var e=Object.assign({},this.data.conditions);e[this.data.integrationId]=Object.assign({},this.state),this.props.actions.integrationActions.updateIntegrationConditions(e),this.closeModal()}},{key:"render",value:function(){return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"sui-box-header"},p.default.createElement("h3",{id:"dialogTitle",className:"sui-box-title"},(0,f.translate)("Conditions")),p.default.createElement("div",{className:"sui-actions-left"},p.default.createElement("span",{className:"sui-tag sui-tag-draft"},this.data.integrationTitle)),p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement(h.ButtonIcon,{icon:"close",iconSize:"md",label:(0,f.translate)("Close this dialog window"),className:"forminator-builder-fields-close",onClick:this.closeModal}))),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement(m.default,s({},this.props,{updateProperty:this.updateProperty,state:this.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-close","aria-hidden":"true"}),(0,f.translate)("Cancel")),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,f.translate)("Apply")),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(545),d=r(f),m=a(20),h=r(m),b=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addRule=a.addRule.bind(a),a.removeRule=a.removeRule.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateValue=a.updateValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.fields=(0,p.getFields)(a.props.wrappers),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 l(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,"slug"),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)("data 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 conditions below are met.")))),a=c.default.createElement("div",{className:"fui-visibility-header"},t,c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Conditions"))),r=c.default.createElement("div",{className:"sui-description",style:{margin:"0 0 30px"}},(0,p.translate)("Use conditional logic to send data to this app based on submitted form data.")),n=c.default.createElement("div",{className:"fui-visibility-group"},r,(this.props.wrappers.length>1||this.fields.length>=1)&&!_.isEmpty(this.fields)&&a,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)("Add conditions under which data should be sent to this app.")))));return!_.isUndefined(this.props.state.conditions)&&this.props.state.conditions.length>0&&!_.isEmpty(this.fields)?c.default.createElement("div",{className:"fui-visibility-group"},r,(this.props.wrappers.length>1||this.fields.length>1)&&a,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 Condition"))):c.default.createElement(c.default.Fragment,null,n)}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(11),d=r(f),m=a(5),h=r(m),b=a(3),y=r(b),v=a(18),g=r(v),E=a(17),w=r(E),O=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleState=a.toggleState.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateValue=a.updateValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.state={open:!1},a.fields=a.props.fields,a}return l(t,e),s(t,[{key:"removeRule",value:function(){this.props.removeRule(this.props.counter)}},{key:"updateField",value:function(e,t){this.props.updateField(this.props.counter,t)}},{key:"updateRule",value:function(e,t){this.props.updateRule(this.props.counter,t)}},{key:"updateValue",value:function(e){this.props.updateValue(this.props.counter,e.target.value)}},{key:"updateInputValue",value:function(e,t){this.props.updateInputValue(this.props.counter,t)}},{key:"toggleState",value:function(){this.setState({open:!this.state.open})}},{key:"disableSearch",value:function(){return{minimumResultsForSearch:-1}}},{key:"render",value:function(){var e=this,t="condition-"+this.props.counter,a=_.where(this.fields,{element_id:this.props.rule.element_id})[0]||{},r=_.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"],o=["day_is","day_is_not","month_is","month_is_not"],l=["Su","Mo","Tu","We","Th","Fr","Sa"],s="consent"===a.field_type;return s&&(this.props.rule.value=(0,p.translate)("checked")),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")),"signature"===a.field_type&&!s&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is"},(0,p.translate)("Is null")),c.default.createElement("option",{value:"is_not"},(0,p.translate)("Is not null"))),"signature"!==a.field_type&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is"},(0,p.translate)("Is")),c.default.createElement("option",{value:"is_not"},(0,p.translate)("Is not"))),a.isNumber&&!s&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_great"},(0,p.translate)("Is greater than")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less than"))),!a.isNumber&&!a.hasOptions&&"signature"!==a.field_type&&!s&&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)&&!s&&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)&&!s&&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&&s&&c.default.createElement(y.default,i({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,label:(0,p.translate)("Status"),disabled:!0})),!a.hasOptions&&"signature"!==a.field_type&&!s&&(!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,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(l,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){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(173),f=r(p),d=a(175),m=r(d),h=a(180),b=r(h),y=a(174),v=r(y),g=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a.trashField=a.trashField.bind(a),a}return l(t,e),i(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement(f.default,{flatten:!0,alignment:"center",closeModal:this.closeModal},u.default.createElement(m.default,{id:"",label:(0,c.translate)("Delete Notification")}),u.default.createElement("p",{id:"",className:"sui-description"},(0,c.translate)("Are you sure you wish to delete this Notification?"))),u.default.createElement(b.default,{alignment:"center"},u.default.createElement(v.default,{label:(0,c.translate)("Cancel"),closeModal:this.closeModal,customClass:"sui-button-ghost forminator-discard-field-settings"}),u.default.createElement("button",{className:"sui-button sui-button-ghost sui-button-red",onClick:this.trashField},u.default.createElement("span",{className:"sui-loading-text"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}))))}}]),t}(s.Component);t.default=g},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 o(e){return{actions:{settingsActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(9),s=a(82),u=r(s),c=a(71),p=r(c),f=a(548),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,l.connect)(n,o)(d.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.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(239),f=r(p),d=a(246),m=r(d),h=a(273),b=r(h),y=a(275),v=r(y),g=a(279),E=r(g),w=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(t,[{key:"componentDidMount",value:function(){jQuery("html, body").animate({scrollTop:0},"fast");var e=this;jQuery("#forminator-open-apply-preset").off("click").on("click",function(t){var a=function(t){e.props.actions.modalActions.showModal({open:!1},"applyPreset")};e.props.actions.modalActions.showModal({open:!0,closeModal:a},"applyPreset")})}},{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"},u.default.createElement("button",{id:"forminator-open-apply-preset",className:"sui-button sui-button-ghost"},u.default.createElement("span",{className:"sui-icon-brush","aria-hidden":"true"}),(0,c.translate)("Apply Preset")))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement(f.default,this.props),"none"!==a&&u.default.createElement(u.default.Fragment,{key:(0,c.getThemePrefix)(this.props)+"themeKey"},u.default.createElement(m.default,this.props),u.default.createElement(b.default,this.props),u.default.createElement(v.default,this.props)),u.default.createElement(E.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("span",{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)("Behavior"),u.default.createElement("span",{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("span",{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("span",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(s.Component);t.default=w},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 o(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 l=a(12),i=a(9),s=a(206),u=r(s),c=a(82),p=r(c),f=a(71),d=r(f),m=a(550),h=function(e){return e&&e.__esModule?e:{default:e}}(m);t.default=(0,l.connect)(n,o)(h.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(551),f=r(p),d=a(554),m=r(d),h=a(555),b=r(h),y=a(556),v=r(y),g=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),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)("Behavior"),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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),c=a(0),p=r(c),f=a(1),d=a(7),m=r(d),h=a(17),b=r(h),y=a(280),v=r(y),g=a(18),E=r(g),w=a(13),O=r(w),P=a(2),j=r(P),k=a(376),x=r(k),N=a(552),C=r(N),S=a(15),T=r(S),F=function(e){function t(e){o(this,t);var a=l(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=this,t=(0,f.getFields)(this.props.wrappers,["password"]),a=(0,f.mapFieldsByType)("password",this.props.wrappers),r=Object.assign({},forminatorData.userRoles),n=function(t){e.props.history.push("/"+t)},o=void 0,l=void 0;return forminatorData.isMainSite?(o=(0,f.translate)("Network's Main Site Role"),l=(0,f.translate)("If you don't want to create a user in the network's main site, set this meta key to {{strong}}Don't create a user in the network's main site{{/strong}}.",{components:{strong:p.default.createElement("strong",null)}}),r.notCreate={name:"Don't create a user in the network's main site",capabilities:{read:!0}}):(o=(0,f.translate)("User Role"),l=""),p.default.createElement(T.default,{label:(0,f.translate)("User Meta Mapping"),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-form-field"},p.default.createElement("h4",{className:"sui-settings-label"},(0,f.translate)("Default Meta Keys")),p.default.createElement("p",{className:"sui-description",style:{marginBottom:10}},(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(v.default,s({},this.props,{property:"registration-username-field",label:(0,f.translate)("Username"),defaultValue:"text-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(v.default,s({},this.props,{property:"registration-email-field",label:(0,f.translate)("Email"),defaultValue:"email-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(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(t,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(t,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(t,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(a,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"))),a.length>0&&"auto"===this.props.settings["registration-password-field"]&&p.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{display:"block"},"aria-live":"assertive"},p.default.createElement("div",{className:"sui-notice-content"},p.default.createElement("div",{className:"sui-notice-message"},p.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),p.default.createElement("p",null,(0,f.translate)("This form includes a {{strong}}Password field{{/strong}}. Since user passwords will be {{strong}}automatically generated{{/strong}}, the {{strong}}Password field{{/strong}} should be deleted.",{components:{strong:p.default.createElement("strong",null)}}))))),0===a.length&&"auto"===this.props.settings["registration-password-field"]&&p.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{display:"block"},"aria-live":"assertive"},p.default.createElement("div",{className:"sui-notice-content"},p.default.createElement("div",{className:"sui-notice-message"},p.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),p.default.createElement("p",null,(0,f.translate)("This form is set to {{strong}}automatically generate{{/strong}} user passwords. To allow users to set their own passwords, insert a {{strong}}Password field{{/strong}} into {{link}}this form{{/link}}.",{components:{strong:p.default.createElement("strong",null),link:p.default.createElement("a",{onClick:function(){return n("builder")},style:{cursor:"pointer"}})}}))))))),p.default.createElement(m.default,s({},this.props,{property:"registration-user-role",settingsLabel:o,default:"fixed",description:(0,f.translate)("Choose which user role you want to assign to the visitors signing up. You can either assign a fixed user role to all of them or assign a user role conditionally, based on their response to the form fields.")}),p.default.createElement(j.default,{value:"fixed",label:(0,f.translate)("Fixed Role to All"),boxClass:"sui-tab-boxed"},p.default.createElement(E.default,s({},this.props,{property:"registration-role-field",label:o,defaultValue:"subscriber",description:l,required:!0}),_.map(r,function(e,t){return p.default.createElement("option",{value:t,key:t},e.name)}))),p.default.createElement(j.default,{value:"conditionally",label:(0,f.translate)("Assign Role Conditionally")},p.default.createElement(C.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.')})))),p.default.createElement(m.default,s({},this.props,{property:"custom-mapping",settingsLabel:(0,f.translate)("Custom User Meta"),default:"none",description:(0,f.translate)("Create custom user meta keys and assign your form fields to them to set additional user meta keys upon successful user registration.")}),p.default.createElement(O.default,{value:"none",label:(0,f.translate)("None")}),p.default.createElement(j.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=F},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(553),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.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 l(t,e),s(t,[{key:"updateState",value:function(e){this.setState({options:e}),this.props.updateProperty("user_role",e),_.isUndefined(this.props.actions)||this.props.actions.settingsActions.updateSetting("user_role",e)}},{key:"getPropState",value:function(){var e=[];return _.each(this.props.state.user_role,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].role=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({role:"subscriber",element_id:t,rule:"is",value:""}),this.updateState(e)}},{key:"validateConditions",value:function(){var e=_.pluck(this.props.state.user_role,"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;return c.default.createElement("div",{className:"sui-box-builder"},c.default.createElement("div",{className:"fui-visibility sui-box-builder-body",style:{margin:0}},c.default.createElement("div",{className:"sui-builder-fields"},_.map(this.props.state.user_role,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-dashed",onClick:this.addRule},c.default.createElement("span",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add User Role"))))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(11),d=r(f),m=a(5),h=r(m),b=a(3),y=r(b),v=a(18),g=r(v),E=a(17),w=r(E),O=a(182),P=r(O),j=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleState=a.toggleState.bind(a),a.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 l(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","consent","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.role)?"subscriber":this.props.rule.role,o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],l=["day_is","day_is_not","month_is","month_is_not"],s=["Su","Mo","Tu","We","Th","Fr","Sa"],u=void 0,f=void 0,m=Object.assign({},forminatorData.userRoles);return forminatorData.isMainSite?(u=(0,p.translate)("Network's Main Site Role"),f=(0,p.translate)("If you don't want to create a user in the network's main site, set this meta key to {{strong}}Don't create a user in the network's main site{{/strong}}.",{components:{strong:c.default.createElement("strong",null)}}),m.notCreate={name:"Don't create a user in the network's main site",capabilities:{read:!0}}):(u=(0,p.translate)("User Role"),f=""),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)('{{strong}}"%(label)s"{{/strong}} when {{strong}}%(field)s{{/strong}} %(rule)s {{strong}}%(value)s{{/strong}}',{args:{label:(0,p.ucfirst)(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(g.default,i({},this.props,{property:"role",settings:this.props.rule,label:u,defaultValue:"subscriber",value:this.props.rule.role,description:f,updateProperty:this.updateValue,required:!0}),_.map(m,function(e,t){return c.default.createElement("option",{value:t,key:t},e.name)})),c.default.createElement(d.default,{className:"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)("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(h.default,{cols:"6",customClass:"sui-padding-left-10"},c.default.createElement(w.default,i({},this.props,{elementId:t+"-condrule",label:(0,p.translate)("Condition (Required)"),settings:this.props.rule,property:"rule",updateProperty:this.updateRule,options:this.disableSearch()}),c.default.createElement("option",{value:""},(0,p.translate)("Select rule")),"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"))),"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 greater than")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less than"))),!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"},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.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&&(!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,placeholder:(0,p.translate)("Enter value"),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.updateRuleValue.bind(this)},c.default.createElement("option",{value:""},(0,p.translate)("Select month")),_.map(o,function(e){return c.default.createElement("option",{value:e,key:e},e)}))),!a.hasOptions&&"date"===a.field_type&&("day_is"===this.props.rule.rule||"day_is_not"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,c.default.createElement("label",{className:"sui-label"}," "),c.default.createElement("select",{className:"fui-select",value:this.props.rule.value,onChange:this.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)}))),!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(P.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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(7),d=r(f),m=a(17),h=(r(m),a(18)),b=r(h),y=a(13),v=r(y),g=a(2),E=r(g),w=a(280),O=r(w),P=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){var e=(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 below.")),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=P},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(7),d=r(f),m=a(17),h=r(m),b=a(13),y=r(b),v=a(2),g=r(v),E=a(20),w=r(E),O=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){var e=_.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",description:(0,p.translate)("By default, the user account is activated upon 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:"",triggerChange:"1",description:(0,p.translate)("Choose the page to redirect users to when they click on the confirmation link.")}),_.map(forminatorData.pages,function(e,t){return c.default.createElement("option",{value:e.ID,key:t},_.isEmpty(e.post_title)?(0,p.translate)("page ID: ")+e.ID:e.post_title)}))),c.default.createElement(g.default,{value:"manual",label:(0,p.translate)("Manual Approval")},c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("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",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("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 be sent to the users.",{components:{strong:c.default.createElement("strong",null)}}))))),"manual"===t&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Since the activation requires manual approval from site admin, it's recommended to keep this option to {{strong}}Default{{/strong}} to let users know when their account is activated.",{components:{strong:c.default.createElement("strong",null)}})))))))}}]),t}(u.Component);t.default=O},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(25),d=r(f),m=a(33),h=r(m),b=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=_.isUndefined(this.props.settings["hide-registration-form"])?"":this.props.settings["hide-registration-form"];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 Settings")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("These settings will add some extra control on your registration process."))),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)("Automatically log in newly activated users"),description:(0,p.translate)("This will automatically log in a user upon successful activation of their account."),property:"automatic-login"})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Hide the form if a user is already logged in"),description:(0,p.translate)("Enabling this will hide the form from logged-in users."),property:"hide-registration-form",unWrap:!0}))),e&&c.default.createElement("div",{className:"sui-border-frame sui-toggle-content"},c.default.createElement(h.default,i({},this.props,{property:"hidden-registration-form-message",label:(0,p.translate)("Message (optional)"),hideEditorOptions:"true",cutomTinymce:"bold,italic,underline,link,alignleft,aligncenter,alignright",placeholder:(0,p.translate)("Type a message for logged in users here..."),description:(0,p.translate)("You can optionally add a message for logged in users, which appears when the form is hidden.")}))))))}}]),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 o(e){return{actions:{settingsActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e),builderActions:(0,i.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(9),s=a(82),u=r(s),c=a(71),p=r(c),f=a(206),d=r(f),m=a(558),h=function(e){return e&&e.__esModule?e:{default:e}}(m);t.default=(0,l.connect)(n,o)(h.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(559),f=r(p),d=a(560),m=r(d),h=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(t,[{key:"componentDidMount",value:function(){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)("Login User"))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement(f.default,this.props),u.default.createElement(m.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)("Behavior"),u.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(s.Component);t.default=h},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(3),d=r(f),m=a(7),h=r(m),b=a(17),y=(r(b),a(18)),v=r(y),g=a(13),E=r(g),w=a(2),O=r(w),P=a(11),j=r(P),k=a(5),x=r(k),N=a(280),C=r(N),S=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){var e=((0,p.getFields)(this.props.wrappers,["password"]),(0,p.mapFieldsByType)("email",this.props.wrappers)),t=(0,p.mapFieldsByType)("text",this.props.wrappers),a=e.concat(t),r=(0,p.mapFieldsByType)("password",this.props.wrappers),n=_.isEmpty(a)?"":a[0].element_id,o=this.props.settings["login-username-field"],l=_.find(a,function(e){return o===e.element_id});return this.props.settings["login-username-field"]=l?o:n,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)("Login Fields")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Map your form fields to the meta keys and have additional control over the login form fields."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Form Fields Mapping")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Assign your form fields to the meta keys required to login a user.")),c.default.createElement("div",{className:"sui-border-frame"},c.default.createElement(c.default.Fragment,null,c.default.createElement(C.default,i({},this.props,{property:"login-username-field",label:(0,p.translate)("Username"),defaultValue:n,fieldClass:"field-required",required:!0}),_.map(a,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label," | ",e.element_id)})),c.default.createElement(C.default,i({},this.props,{property:"login-password-field",label:(0,p.translate)("Password"),defaultValue:"password-1",fieldClass:"field-required",required:!0}),_.map(r,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label," | ",e.element_id)})))),c.default.createElement(h.default,i({},this.props,{property:"remember-me",settingsLabel:(0,p.translate)("Remember Me Field"),default:"true",description:(0,p.translate)("Choose whether to show the {{strong}}Remember Me{{/strong}} field in your form. This option will add a Remember Me checkbox before the submit button.",{components:{strong:c.default.createElement("strong",null)}})}),c.default.createElement(O.default,{value:"true",label:(0,p.translate)("Show"),boxClass:"sui-tab-boxed"},c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(d.default,i({},this.props,{property:"remember-me-label",placeholder:(0,p.translate)("Remember me"),label:(0,p.translate)("Label")})))),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"4"},c.default.createElement(d.default,i({},this.props,{type:"number",defaultValue:"0",property:"remember-me-cookie-number",placeholder:"10",label:(0,p.translate)("Cookie Expiration")}))),c.default.createElement(x.default,{cols:"4"},c.default.createElement(v.default,i({},this.props,{defaultValue:"days",property:"remember-me-cookie-type",label:" "}),c.default.createElement("option",{value:"days"},(0,p.translate)("day(s)")),c.default.createElement("option",{value:"weeks"},(0,p.translate)("week(s)")),c.default.createElement("option",{value:"months"},(0,p.translate)("month(s)")),c.default.createElement("option",{value:"years"},(0,p.translate)("year(s)")))),c.default.createElement(x.default,{cols:"12"},c.default.createElement("span",{className:"sui-description sui-description-toggle"},(0,p.translate)("Users will have to provide login details again after the selected period."))))),c.default.createElement(E.default,{value:"false",label:(0,p.translate)("Hide")})))))}}]),t}(u.Component);t.default=S},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(25),d=r(f),m=a(33),h=r(m),b=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=_.isUndefined(this.props.settings["hide-login-form"])?"":this.props.settings["hide-login-form"];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 Settings")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("These settings will add some extra control on your login process."))),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)("Hide the form if a user is already logged in"),description:(0,p.translate)("Enabling this will hide the form from logged-in users."),property:"hide-login-form",unWrap:!0}))),e&&c.default.createElement("div",{className:"sui-border-frame sui-toggle-content"},c.default.createElement(h.default,i({},this.props,{property:"hidden-login-form-message",label:(0,p.translate)("Message (optional)"),hideEditorOptions:"true",cutomTinymce:"bold,italic,underline,link,alignleft,aligncenter,alignright",placeholder:(0,p.translate)("Type a message for logged in users here..."),description:(0,p.translate)("You can optionally add a message for logged in users, which appears when the form is hidden.")}))))))}}]),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,notifications:e.notifications,behaviors:e.behaviorArray,formType:e.settings["form-type"]||"default"}}function o(e){return{actions:{settingsActions:(0,i.bindActionCreators)(u,e),behaviorsActions:(0,i.bindActionCreators)(d,e),modalActions:(0,i.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(9),s=a(82),u=r(s),c=a(71),p=r(c),f=a(224),d=r(f),m=a(562),h=function(e){return e&&e.__esModule?e:{default:e}}(m);t.default=(0,l.connect)(n,o)(h.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(563),d=r(f),m=a(566),h=r(m),b=a(281),y=r(b),v=a(567),g=r(v),E=a(568),_=r(E),w=a(569),O=r(w),P=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"componentDidMount",value:function(){jQuery("html, body").animate({scrollTop:0},"fast")}},{key:"render",value:function(){var e=this,t=function(t){e.props.history.push("/"+t)},a=(0,p.hasFieldType)("stripe",this.props.wrappers),r=(0,p.hasFieldType)("paypal",this.props.wrappers),n=forminatorData.currentForm.settings["form-type"]||"default";return c.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},c.default.createElement("div",{className:"sui-box-header"},c.default.createElement("h2",{className:"sui-box-title"},(0,p.translate)("Behavior"))),c.default.createElement("div",{className:"sui-box-body"},c.default.createElement("div",{className:"sui-box-settings-row"},"leads"===this.props.formType&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Some of the settings you'd find in a regular form are unavailable in this form template because they are either unnecessary or controlled by the parent quiz automatically.")))))),c.default.createElement(d.default,this.props),(a||r)&&c.default.createElement(O.default,this.props),c.default.createElement(h.default,this.props),c.default.createElement(y.default,i({},this.props,{moduleSlug:"form"})),c.default.createElement(g.default,this.props),"leads"!==this.props.formType&&c.default.createElement(_.default,this.props)),c.default.createElement("div",{className:"sui-box-footer"},"registration"!==n&&"login"!==n&&c.default.createElement("button",{className:"sui-button",onClick:function(){return t("appearance")}},c.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,p.translate)("Appearance")),"registration"===n&&c.default.createElement("button",{className:"sui-button",onClick:function(){return t("registration")}},c.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,p.translate)("User Registration")),"login"===n&&c.default.createElement("button",{className:"sui-button",onClick:function(){return t("login")}},c.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,p.translate)("User Login")),c.default.createElement("div",{className:"sui-actions-right"},"leads"===this.props.formType&&c.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("settings")}},(0,p.translate)("Settings"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})),"leads"!==this.props.formType&&c.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("notifications")}},(0,p.translate)("Email Notifications"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(20),d=r(f),m=a(25),h=r(m),b=a(7),y=r(b),v=a(3),g=r(v),E=a(13),_=r(E),w=a(2),O=r(w),P=a(564),j=r(P),k=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Submission Behavior")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Configure what should happen when a user submits this form."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},"leads"!==this.props.formType&&c.default.createElement(c.default.Fragment,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("After submission")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:10}},(0,p.translate)("Choose what happens after successful submission of this form. Multiple submission behaviors can be added and conditionally processed based on submitted form data.")),this.props.behaviors.length>1&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{style:"block",margin:"10px 0 20px"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You’ll need to configure conditional logic for each submission behavior to ensure Forminator knows when each behavior should be processed. If no conditions have been set, the first submission behavior will be processed."))))),c.default.createElement("div",{className:"sui-box-body",style:{marginBottom:30}},c.default.createElement(j.default,this.props)),c.default.createElement(y.default,i({},this.props,{property:"enable-ajax",defaultValue:"true",settingsLabel:(0,p.translate)("Method"),disabled:(0,p.hasFieldType)("stripe",this.props.wrappers),description:(0,p.translate)("Choose whether you want to use AJAX to send this form without reloading the page, or use the more traditional method of reloading the page.")}),c.default.createElement(O.default,{value:"true",label:(0,p.translate)("Ajax")},(0,p.hasFieldType)("stripe",this.props.wrappers)&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Note that you can only use the Ajax submission method while using the Stripe field in your form. The Ajax method will hide your form after the successful submission and only your inline success message will be shown. The form will be available again when the page is reloaded.")))))),c.default.createElement(O.default,{value:"false",label:(0,p.translate)("Page Reload")},(0,p.hasFieldType)("stripe",this.props.wrappers)&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-blue sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Note that you can only use the Ajax submission method while using the Stripe field in your form. The Ajax method will hide your form after the successful submission and only your inline success message will be shown. The form will be available again when the page is reloaded.")))))))),c.default.createElement(d.default,i({},this.props,{property:"validation",defaultValue:"true",settingsLabel:(0,p.translate)("Validation"),settingsDesc:(0,p.translate)("For fields that you've chosen to validate, choose how you want the validation to behave. On submission will run validation checks when the user submits the form using Ajax (recommended). The Live method will check fields at the same time as the user fills them out. Server side does the validation using PHP and returns any error messages after a page reload.")}),c.default.createElement("div",{value:"on_submit"},(0,p.translate)("On Submit")),c.default.createElement("div",{value:"server"},(0,p.translate)("Server Side"))),c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Enable inline validation (as user types)"),property:"validation-inline",unWrap:!0})),c.default.createElement("div",{style:{marginTop:"30px"}},c.default.createElement(y.default,i({},this.props,{property:"submission-indicator",settingsLabel:(0,p.translate)("Submission Indicator"),default:"",description:(0,p.translate)("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.")}),c.default.createElement(O.default,{value:"show",boxClass:"sui-tab-boxed",label:(0,p.translate)("Show Loader")},c.default.createElement(g.default,i({},this.props,{property:"indicator-label",placeholder:(0,p.translate)("E.g. Submitting..."),defaultValue:"Submitting...",description:(0,p.translate)("Choose the text to show on the right of loading icon")}))),c.default.createElement(_.default,{label:(0,p.translate)("None"),value:""})))))}}]),t}(u.Component);t.default=k},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(565),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addBehavior=a.addBehavior.bind(a),a.closeModal=a.closeModal.bind(a),a}return l(t,e),s(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"behavior")}},{key:"addBehavior",value:function(){var e={slug:"behavior-"+(0,p.randNumber)(),autoclose:!0,"autoclose-time":5,newtab:"sametab"};e["submission-behaviour"]=this.props.settings["submission-behaviour"]?this.props.settings["submission-behaviour"]:"behaviour-thankyou",this.props.settings["thankyou-message"]&&(e["thankyou-message"]=this.props.settings["thankyou-message"]),this.props.settings["email-thankyou-message"]&&(e["email-thankyou-message"]=this.props.settings["email-thankyou-message"]),this.props.settings["manual-thankyou-message"]&&(e["manual-thankyou-message"]=this.props.settings["manual-thankyou-message"]),this.props.actions.modalActions.showModal({open:!0,new:!0,behavior:e,field:this.props.field,behaviors:this.props.behaviors,closeModal:this.closeModal},"behavior")}},{key:"render",value:function(){var e=this;return c.default.createElement("div",{className:"sui-box-builder sui-flushed",ref:function(t){return e.el=t}},c.default.createElement("div",{className:"sui-box-builder-body"},this.props.behaviors.length>0&&c.default.createElement("div",{className:"sui-builder-fields"},_.map(this.props.behaviors,function(t,a){return c.default.createElement(d.default,i({key:t.slug,behavior:t},e.props,{counter:a}))})),c.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addBehavior},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add Behavior"))))}}]),t}(u.Component);t.default=m},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.deleteBehavior=a.deleteBehavior.bind(a),a.editModal=a.editModal.bind(a),a.closeEditModal=a.closeEditModal.bind(a),a}return l(t,e),i(t,[{key:"closeMenu",value:function(){jQuery(".sui-dropdown").removeClass("open")}},{key:"getAllWithoutCurrent",value:function(e){var t=this;return e.filter(function(e){return e.slug!==t.props.behavior.slug})}},{key:"deleteBehavior",value:function(){var e=[].concat(r(this.props.behaviors)),t=this.getAllWithoutCurrent(e);this.closeMenu(),this.props.actions.behaviorsActions.updateBehaviorArray(t)}},{key:"closeEditModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"behavior")}},{key:"editModal",value:function(){this.props.actions.modalActions.showModal({open:!0,new:!1,behavior:this.props.behavior,field:this.props.field,behaviors:this.props.behaviors,closeModal:this.closeEditModal},"behavior")}},{key:"conditionMarkup",value:function(){var e=(0,c.getFields)(this.props.wrappers);if(!_.isUndefined(this.props.behavior.conditions)){var t=this.props.behavior.conditions[0];if(!_.isUndefined(t)){var a=_.filter(e,function(e){return e.element_id===t.element_id});if(!_.isUndefined(a)&&!_.isUndefined(a[0])){var r=a[0].label,n=(0,c.getRuleLabel)(t.rule,a.field_type),o=(0,c.getConditionLabel)(a[0],t.value),l=this.props.behavior.conditions.length,i="";return l-1>0&&(i="+ "+(l-1)+" "+(0,c.translate)("more condition(s)")),u.default.createElement("span",{className:"fui-conditions sui-tooltip sui-tooltip-left sui-tooltip-top-right-mobile","data-tooltip":(0,c.translate)("Process behavior if")+" "+r+" "+n+" "+o+" "+i,"aria-hidden":"true"},u.default.createElement("i",{className:"sui-icon-link sui-sm"}))}}}}},{key:"render",value:function(){var e="",t="",a=(0,c.getSubmissionBehaviors)(),r=Object.keys(a)[0];_.isUndefined(this.props.behavior["submission-behaviour"])||_.isEmpty(this.props.behavior["submission-behaviour"])||(r=this.props.behavior["submission-behaviour"]),e=this.props.behavior.label?this.props.behavior.label:a[r],t=r===Object.keys(a)[1]?this.props.behavior["redirect-url"]:this.props.behavior["thankyou-message"]?jQuery("<div>"+this.props.behavior["thankyou-message"]+"</div>").text():"";var n=this.conditionMarkup();return u.default.createElement("div",{className:"sui-builder-field sui-react sui-can_open"},!_.isUndefined(this.props.behavior.conditions)&&this.props.behavior.conditions.length>0&&u.default.createElement(u.default.Fragment,null,n),u.default.createElement("div",{className:"sui-field-info fui-behaviors-info",onClick:this.editModal},u.default.createElement("div",{className:"sui-builder-field-label fui-behaviors-label",style:{minWidth:"90px"}},u.default.createElement("i",{className:"","aria-hidden":"true"}),u.default.createElement("span",null,e)),u.default.createElement("div",{className:"sui-builder-field-label fui-notifications-recipient"},u.default.createElement("span",null,t))),u.default.createElement("div",{className:"sui-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)("Open condition settings"))),u.default.createElement("ul",null,u.default.createElement("li",null,u.default.createElement("button",{onClick:this.editModal},u.default.createElement("i",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,c.translate)("Edit Behavior"))),this.props.behaviors.length>1&&u.default.createElement("li",null,u.default.createElement("button",{className:"sui-option-red",onClick:this.deleteBehavior},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")))))))}}]),t}(s.Component);t.default=p},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){var a=[],r=!0,n=!1,o=void 0;try{for(var l,i=e[Symbol.iterator]();!(r=(l=i.next()).done)&&(a.push(l.value),!t||a.length!==t);r=!0);}catch(e){n=!0,o=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw o}}return a}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),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(11),m=r(d),h=a(5),b=r(h),y=a(25),v=r(y),g=a(44),E=r(g),w=a(17),O=r(w),P=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),u(t,[{key:"getFieldsWithAutofill",value:function(){var e=this;this.fields=(0,f.getFields)(this.props.wrappers,[]),this.savedFieldsAutofill=_.isUndefined(this.props.settings["fields-autofill"])?[]:this.props.settings["fields-autofill"],this.fieldsWithAutoFill=[],this.fields.map(function(t){var a=t.field_type,r=(0,f.getFieldAutofillProviders)(a),n=t.field_slug;if(!_.isUndefined(r[n])&&!_.isUndefined(r[n].values)&&!_.isEmpty(r[n].values)){var o={element_id:"",provider:"",is_editable:"no"},l=e.savedFieldsAutofill.filter(function(e){return e.element_id===t.element_id}),i=!1;_.isUndefined(l)||_.isEmpty(l)||(l=l[0],o={element_id:l.element_id,provider:l.provider,is_editable:l.is_editable},i=!0),t.selectedProvider=o,t.isActive=i,t.autofillProviders=r[n].values,e.fieldsWithAutoFill.push(t)}})}},{key:"maybeGetNoFieldsMarkup",value:function(){return _.isEmpty(this.fieldsWithAutoFill)?p.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"block"},"aria-live":"assertive"},p.default.createElement("div",{className:"sui-notice-content"},p.default.createElement("div",{className:"sui-notice-message"},p.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),p.default.createElement("p",null,(0,f.translate)("Form does not have fields that can be autofilled."))))):""}},{key:"updateProvider",value:function(e,t,a){var r=this.savedFieldsAutofill.filter(function(e){return e.element_id===a});_.isEmpty(r)?(r={element_id:a,provider:t,is_editable:"no"},this.savedFieldsAutofill.push(r)):(r=r[0],r.provider=t,this.savedFieldsAutofill=this.savedFieldsAutofill.map(function(e){return e.element_id===a?r:e})),this.props.actions.settingsActions.updateSetting("fields-autofill",this.savedFieldsAutofill)}},{key:"updateEditable",value:function(e,t,a){var r=this.savedFieldsAutofill.filter(function(e){return e.element_id===a});_.isEmpty(r)?(r={element_id:a,provider:"",is_editable:t},this.savedFieldsAutofill.push(r)):(r=r[0],r.is_editable=t,this.savedFieldsAutofill=this.savedFieldsAutofill.map(function(e){return e.element_id===a?r:e})),this.props.actions.settingsActions.updateSetting("fields-autofill",this.savedFieldsAutofill)}},{key:"renderProviderOptions",value:function(e){var t=[];return Object.entries(e).forEach(function(e){var a=s(e,2),r=a[0],n=a[1],o=[];Object.entries(n.attributes).forEach(function(e){var t=s(e,2),a=t[0],r=t[1];o.push(p.default.createElement("option",{value:a,key:a},r.name))}),t.push(p.default.createElement("optgroup",{label:n.name,key:r},o))}),t}},{key:"render",value:function(){var e=this;this.getFieldsWithAutofill();var t=_.isUndefined(this.props.settings["use-autofill"])?"":this.props.settings["use-autofill"],a="sui-hidden";return t&&"false"!==t&&(a="sui-toggle-content"),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)("Autofill")),p.default.createElement("span",{className:"sui-description"},(0,f.translate)("If the user filling out the form is logged in, we can auto-fill fields with any available data."))),p.default.createElement("div",{className:"sui-box-settings-col-2"},p.default.createElement(v.default,i({},this.props,{label:(0,f.translate)("Enable Autofill"),property:"use-autofill",unWrap:!0})),p.default.createElement("div",{className:a,style:{marginTop:"10px"}},this.maybeGetNoFieldsMarkup(),p.default.createElement("div",{className:"sui-accordion"},this.fieldsWithAutoFill.map(function(t){return p.default.createElement(E.default,i({},e.props,{label:t.label,key:t.element_id}),p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"6"},p.default.createElement(O.default,{property:"provider",updateProperty:function(a,r){e.updateProvider(a,r,t.element_id)},defaultValue:"",label:(0,f.translate)("Autofill source"),settings:t.selectedProvider,hasSearch:!0},p.default.createElement("option",{value:""},(0,f.translate)("Disable Autofill")),e.renderProviderOptions(t.autofillProviders))),p.default.createElement(b.default,{cols:"6"},p.default.createElement(O.default,{property:"is_editable",updateProperty:function(a,r){e.updateEditable(a,r,t.element_id)},defaultValue:"no",label:(0,f.translate)("Editable"),settings:t.selectedProvider},p.default.createElement("option",{value:"no"},(0,f.translate)("No")),p.default.createElement("option",{value:"yes"},(0,f.translate)("Yes"))))))})))))}}]),t}(c.Component);t.default=P},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(7),d=r(f),m=a(13),h=r(m),b=a(182),y=r(b),v=a(2),g=r(v),E=a(3),_=r(E),w=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Lifespan")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default this form will always be available for submissions. However you can lock down if need be."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label",style:{marginBottom:"10px"}},(0,p.translate)("Expiry")),c.default.createElement(d.default,i({},this.props,{property:"form-expire",default:"no_expire",simple:!0}),c.default.createElement(h.default,{value:"no_expire"},(0,p.translate)("None")),c.default.createElement(g.default,{value:"date",boxClass:"sui-tab-boxed",label:(0,p.translate)("Date")},c.default.createElement(y.default,i({},this.props,{property:"expire_date",placeholder:(0,p.translate)("20 April 2018")})),c.default.createElement(_.default,i({},this.props,{label:(0,p.translate)("Expiration Message"),placeholder:(0,p.translate)("Whoops! This form has expired."),property:"expire_message",description:(0,p.translate)("Add some custom message for users to see when your form stops appearing or leave empty to show nothing (just an empty space).")}))),c.default.createElement(g.default,{value:"submits",boxClass:"sui-tab-boxed",label:(0,p.translate)("Submissions")},c.default.createElement(_.default,i({},this.props,{placeholder:"10",property:"expire_submits",type:"number"})),c.default.createElement(_.default,i({},this.props,{label:(0,p.translate)("Expiration Message"),placeholder:(0,p.translate)("Whoops! This form has expired."),property:"expire_message",description:(0,p.translate)("Add some custom message for users to see when your form stops appearing or leave empty to show nothing (just an empty space).")}))))))}}]),t}(u.Component);t.default=w},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(25),d=r(f),m=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Rendering")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose how you want your form to be rendered for users."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,i({},this.props,{property:"use_ajax_load",label:(0,p.translate)("Load form using AJAX"),description:(0,p.translate)("Enabling this feature will load the form 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 form.")})),c.default.createElement(d.default,i({},this.props,{property:"use_donotcachepage",label:(0,p.translate)("Prevent page caching on form pages"),description:(0,p.translate)("Page caching plugins serve a static HTML version of the page which can cause issues to your dynamic forms. By enabling this, we'll use {{strong}}DONOTCACHEPAGE{{/strong}} constant to prevent pages with this form on it from being cached.",{components:{strong:c.default.createElement("strong",null)}})}))))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(25),d=r(f),m=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Payments")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose how you want the form to behave when you are collecting payments."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Require SSL certificate to submit this form"),property:"payment_require_ssl",description:(0,p.translate)("Enabling this will allow the form submission on an HTTPS page only. It is highly recommended to embed the form with payments action on an HTTPS page to avoid any man in the middle attack.")}))))}}]),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{settings:e.settings,wrappers:e.wrappers,notifications:e.notifications}}function o(e){return{actions:{notificationsActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(9),s=a(225),u=r(s),c=a(71),p=r(c),f=a(571),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,l.connect)(n,o)(d.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.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(572),f=r(p),d=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),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-notifications",className:"sui-box"},u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Email Notifications"))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",{className:"sui-description"},(0,c.translate)("You can send customized email notifications to your site admins and visitors on successful form submission. Advanced features like email routing and conditional emails provide granular control over the email notifications."))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement(f.default,this.props)),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button",onClick:function(){return t("behaviour")}},u.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Behavior")),u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("integrations")}},(0,c.translate)("Integrations"),u.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(573),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addNotification=a.addNotification.bind(a),a.closeModal=a.closeModal.bind(a),a}return l(t,e),s(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"notification")}},{key:"addNotification",value:function(){var e={slug:"notification-"+(0,p.randNumber)()+"-"+(0,p.randNumber)()};this.props.actions.modalActions.showModal({open:!0,new:!0,notification:e,field:this.props.field,notifications:this.props.notifications,closeModal:this.closeModal},"notification")}},{key:"render",value:function(){var e=this;return c.default.createElement("div",{className:"sui-box-builder sui-flushed",ref:function(t){return e.el=t}},c.default.createElement("div",{className:"sui-box-builder-body"},this.props.notifications.length>0&&c.default.createElement("div",{className:"sui-builder-fields"},_.map(this.props.notifications,function(t,a){return c.default.createElement(d.default,i({key:t.slug,notification:t},e.props,{counter:a}))})),c.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addNotification},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add Email Notification"))))}}]),t}(u.Component);t.default=m},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.trashNotification=a.trashNotification.bind(a),a.deleteNotification=a.deleteNotification.bind(a),a.closeDeleteField=a.closeDeleteField.bind(a),a.editModal=a.editModal.bind(a),a.closeEditModal=a.closeEditModal.bind(a),a.duplicateNotification=a.duplicateNotification.bind(a),a}return l(t,e),i(t,[{key:"closeMenu",value:function(){jQuery(".sui-dropdown").removeClass("open")}},{key:"getNotificationsWithoutCurrent",value:function(e){var t=this;return e.filter(function(e){return e.slug!==t.props.notification.slug})}},{key:"deleteNotification",value:function(){this.closeMenu(),this.props.actions.modalActions.showModal({open:!0,notification:this.props.notification,closeModal:this.closeDeleteField,trashField:this.trashNotification},"deleteNotification")}},{key:"closeDeleteField",value:function(){this.props.actions.modalActions.showModal({open:!1,notification:this.props.notification,closeModal:this.closeDeleteField,trashField:this.trashNotification},"deleteNotification")}},{key:"trashNotification",value:function(){var e=[].concat(r(this.props.notifications)),t=this.getNotificationsWithoutCurrent(e);this.closeMenu(),this.props.actions.notificationsActions.updateNotifications(t)}},{key:"closeEditModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"notification")}},{key:"editModal",value:function(){this.props.actions.modalActions.showModal({open:!0,new:!1,notification:this.props.notification,field:this.props.field,notifications:this.props.notifications,closeModal:this.closeEditModal},"notification")}},{key:"duplicateNotification",value:function(){var e=Object.assign({},this.props.notification);e.slug="notification-"+(0,c.randNumber)()+"-"+(0,c.randNumber)();var t=[].concat(r(this.props.notifications),[e]);this.props.actions.notificationsActions.updateNotifications(t)}},{key:"conditionMarkup",value:function(){var e=(0,c.getFields)(this.props.wrappers),t="hide"===this.props.notification.condition_action?(0,c.translate)("Hide"):(0,c.translate)("Show");if(!_.isUndefined(this.props.notification.conditions)){var a=this.props.notification.conditions[0];if(!_.isUndefined(a)){var r=_.filter(e,function(e){return e.element_id===a.element_id});if(!_.isUndefined(r)&&!_.isUndefined(r[0])){var n=r[0].label,o=(0,c.getRuleLabel)(a.rule,r.field_type),l=(0,c.getConditionLabel)(r[0],a.value),i=this.props.notification.conditions.length,s="";return i-1>0&&(s="+ "+(i-1)+" "+(0,c.translate)("more condition(s)")),u.default.createElement("span",{className:"fui-conditions sui-tooltip sui-tooltip-left sui-tooltip-top-right-mobile","data-tooltip":t+" "+(0,c.translate)("if")+" "+n+" "+o+" "+l+" "+s,"aria-hidden":"true"},u.default.createElement("i",{className:"sui-icon-link sui-sm"}))}}}}},{key:"render",value:function(){var e="";if(_.isUndefined(this.props.notification["email-recipients"])||"routing"!==this.props.notification["email-recipients"]){var t="";if(!_.isUndefined(this.props.notification.recipients)&&!_.isEmpty(this.props.notification.recipients)){var a=this.props.notification.recipients.split(","),r=a.length;t=r>2?a[0]+", "+a[1]+" + "+(r-2)+" "+(0,c.translate)("more recipient(s)"):this.props.notification.recipients,e=t}}else e=(0,c.translate)("Email routing is enabled");var n=this.conditionMarkup();return u.default.createElement("div",{className:"sui-builder-field sui-react sui-can_open"},!_.isUndefined(this.props.notification.conditions)&&this.props.notification.conditions.length>0&&u.default.createElement(u.default.Fragment,null,n),u.default.createElement("div",{className:"sui-field-info fui-notifications-info",onClick:this.editModal},u.default.createElement("div",{className:"sui-builder-field-label fui-notifications-label"},u.default.createElement("i",{className:"sui-icon-mail","aria-hidden":"true"}),u.default.createElement("span",null,this.props.notification.label)),u.default.createElement("div",{className:"sui-builder-field-label fui-notifications-recipient"},u.default.createElement("span",null,e))),u.default.createElement("div",{className:"sui-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)("Open field settings"))),u.default.createElement("ul",null,u.default.createElement("li",null,u.default.createElement("button",{onClick:this.editModal},u.default.createElement("i",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,c.translate)("Edit"))),u.default.createElement("li",null,u.default.createElement("button",{onClick:this.duplicateNotification},u.default.createElement("i",{className:"sui-icon-copy","aria-hidden":"true"}),(0,c.translate)("Duplicate"))),u.default.createElement("li",null,u.default.createElement("button",{className:"sui-option-red",onClick:this.deleteNotification},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")))))))}}]),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{actions:{integrationActions:(0,i.bindActionCreators)(p,e),modalActions:(0,i.bindActionCreators)(u,e)}}}function o(e){return{integrationConditions:e.integrationConditions,wrappers:e.wrappers}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(9),s=a(71),u=r(s),c=a(223),p=r(c),f=a(575),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,l.connect)(o,n)(d.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var a=[],r=!0,n=!1,o=void 0;try{for(var l,i=e[Symbol.iterator]();!(r=(l=i.next()).done)&&(a.push(l.value),!t||a.length!==t);r=!0);}catch(e){n=!0,o=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw o}}return a}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),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(190);r(f);a(192);var d=a(15),m=r(d),h=a(45),b=r(h),y=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={loading:!1,markup:""},a.loadIntegrations=a.loadIntegrations.bind(a),a.closeModal=a.closeModal.bind(a),a.conditionMarkup=a.conditionMarkup.bind(a),a}return l(t,e),s(t,[{key:"componentDidUpdate",value:function(){_.isEmpty(this.props.integrationConditions)||this.conditionMarkup()}},{key:"componentDidMount",value:function(){this.mounted=!0,this.loadIntegrations(),jQuery("html, body").animate({scrollTop:0},"fast");var e=this;window.jQuery("#forminator-form-appearance").on("click",".conditions-integration",function(){var t=jQuery(this).data("multi-id"),a=jQuery(this).data("title");e.openConditionsModal(t,a)})}},{key:"openConditionsModal",value:function(e,t){this.props.actions.modalActions.showModal({open:!0,integrationId:e,integrationTitle:t,field:this.props.field,conditions:this.props.integrationConditions,closeModal:this.closeModal},"integration")}},{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"integration")}},{key:"conditionMarkup",value:function(){var e=this,t=(0,p.getFields)(this.props.wrappers);Object.entries(this.props.integrationConditions).forEach(function(a){var r=i(a,2),n=r[0],o=r[1];if(jQuery(".fui-connected").length){var l=jQuery('.fui-conditions[data-integration-id="'+n+'"]');if(!l.length)return void delete e.props.integrationConditions[n];if(l.hide(),!_.isUndefined(o.conditions)){var s=o.conditions[0];if(!_.isUndefined(s)){var u=_.filter(t,function(e){return e.element_id===s.element_id});if(!_.isUndefined(u)&&!_.isUndefined(u[0])){var c=u[0].label,f=(0,p.getRuleLabel)(s.rule,u.field_type),d=(0,p.getConditionLabel)(u[0],s.value),m=o.conditions.length,h="";m-1>0&&(h="+ "+(m-1)+" "+(0,p.translate)("more condition(s)"));var b=(0,p.translate)("Send data if")+" "+c+" "+f+" "+d+" "+h;l.attr("data-tooltip",b).show()}}}}})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"loadIntegrations",value:function(){var e=this,t=forminatorData.currentForm.settings.form_id;_.isUndefined(t)||+t<=0||this.state.loading||(this.setState({markup:"",loading:!0}),window.fetch(forminatorData.ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=forminator_addon_get_module_addons&_ajax_nonce="+forminatorData.addonNonce+"&data[module_type]=form&data[module_id]="+t}).then(function(e){return e.json()}).then(function(t){if(t.success&&e.mounted){var a=e;e.setState({markup:t.data.data}),setTimeout(function(){var e=window.jQuery(".form-integrations-wrapper");e.ForminatorIntegrationsModal(),e.on("reload",function(){e.unbind(),a.loadIntegrations()})},10),e.setState({loading:!1})}}).catch(function(e){console.log(e)}))}},{key:"render",value:function(){var e=this,t=this.state.loading,a=this.state.markup,r=forminatorData.currentForm.settings.form_id,n=function(t){e.props.history.push("/"+t)},o="";return o=t?c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-loader sui-loading","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Fetching integration list…"))))):_.isUndefined(r)||+r<=0?c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-yellow sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You need to save this form before using integrations."))),c.default.createElement("div",{className:"sui-notice-actions"},c.default.createElement(b.default,{label:(0,p.translate)("Try Again"),onClick:this.loadIntegrations})))):c.default.createElement("span",{className:"form-integrations-wrapper",dangerouslySetInnerHTML:{__html:a}}),c.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},c.default.createElement("div",{className:"sui-box-header"},c.default.createElement("h2",{className:"sui-box-title"},(0,p.translate)("Integrations"))),c.default.createElement("div",{className:"sui-box-body"},c.default.createElement(m.default,{label:(0,p.translate)("Applications"),description:(0,p.translate)("You can send this form's data to any of the connected third party apps. Connect to more apps on the {{link}}Integrations{{/link}} page.",{components:{link:c.default.createElement("a",{href:forminatorData.integrationsUrl})}})},o)),c.default.createElement("div",{className:"sui-box-footer"},c.default.createElement("button",{className:"sui-button",onClick:function(){return n("notifications")}},c.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,p.translate)("Email Notifications")),c.default.createElement("div",{className:"sui-actions-right"},c.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return n("settings")}},(0,p.translate)("Settings"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=y},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 e&&e.__esModule?e:{default:e}}function o(e){return{settings:e.settings,formType:e.settings["form-type"]||"default"}}function l(e){return{actions:{settingsActions:(0,u.bindActionCreators)(p,e),modalActions:(0,u.bindActionCreators)(d,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var i=a(0),s=(n(i),a(12)),u=a(9),c=a(82),p=r(c),f=a(71),d=r(f),m=a(577),h=n(m);t.default=(0,s.connect)(o,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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(25),d=r(f),m=a(7),h=r(m),b=a(2),y=r(b),v=a(3),g=r(v),E=a(17),w=r(E),O=a(11),P=r(O),j=a(5),k=r(j),x=a(20),N=r(x),C=a(13),S=r(C),T=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"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=_.isEmpty(forminatorData.retain_number)||"0"===forminatorData.retain_number,r=c.default.createElement(c.default.Fragment,null,a&&c.default.createElement(c.default.Fragment,null,(0,p.translate)("forever")),!a&&c.default.createElement(c.default.Fragment,null,forminatorData.retain_number," ",forminatorData.retain_unit)),n=forminatorData.erasure?(0,p.translate)("remove"):(0,p.translate)("retain");return c.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},c.default.createElement("div",{className:"sui-box-header"},c.default.createElement("h2",{className:"sui-box-title"},(0,p.translate)("Settings"))),c.default.createElement("div",{className:"sui-box-body"},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)("Data Storage")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default we will store all submissions in your database."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Store Submissions in Database"),property:"store_submissions",description:(0,p.translate)("Disable this feature to prevent submissions from being stored in your database. Note that submissions will be retained and automatically deleted according to the retention schedule configured in the Privacy settings below."),unWrap:!0})))),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Multiple Option Value")),c.default.createElement("span",{className:"sui-description"},c.default.createElement("div",null,(0,p.translate)("Choose how you want to handle multiple option values in form submissions and email notifications.")))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Default Stored Value")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("By default, we store option labels of multiple option fields ({{strong}}e.g., Radio, Checkbox, and Select{{/strong}}) in submissions, and use the same in email notifications. You can choose to use option values instead.",{components:{strong:c.default.createElement("strong",null)}})),c.default.createElement("div",{className:"sui-side-tabs"},c.default.createElement(h.default,i({},this.props,{property:"print_value",default:"false"}),c.default.createElement(S.default,{value:"false"},(0,p.translate)("Option labels")),c.default.createElement(S.default,{value:"true"},(0,p.translate)("Option values"))))))),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)("Privacy")),c.default.createElement("span",{className:"sui-description"},c.default.createElement("div",null,(0,p.translate)("Choose how you want to handle this form's data storage.")),c.default.createElement("div",null,(0,p.translate)("By default we will use the configuration you have set in your")),c.default.createElement("div",null,c.default.createElement("a",{href:forminatorData.settingsUrl+"&section=submissions",target:"_blank"},(0,p.translate)("global privacy settings."))))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Submissions")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("How long do you want to retain this form's submissions for?")),c.default.createElement("div",{className:"sui-side-tabs"},c.default.createElement(h.default,i({},this.props,{default:"false",property:"enable-submissions-retention"}),c.default.createElement(y.default,{value:"false",label:(0,p.translate)("Use default")},c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Your default setting value is to keep the submissions")," ",r))))),c.default.createElement(y.default,i({},this.props,{value:"true",boxClass:"sui-tab-boxed",label:(0,p.translate)("Custom")}),c.default.createElement(P.default,null,c.default.createElement(k.default,{cols:"6"},c.default.createElement(g.default,i({},this.props,{type:"number",placeholder:"10",property:"submissions-retention-number"}))),c.default.createElement(k.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{property:"submissions-retention-unit",defaultValue:"days"}),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("span",{className:"sui-description"},(0,p.translate)("Leave the field blank to retain submissions forever.")))))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Account Erasure Requests")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("When handling an account erasure request that contains an email associated with a submission, what do you want to do?")),c.default.createElement("div",{className:"sui-side-tabs"},c.default.createElement(h.default,i({},this.props,{property:"enable-submissions-erasure",default:"false"}),c.default.createElement(y.default,{value:"false",label:(0,p.translate)("Use default")},c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Your default setting value is to ")," ",n," ",(0,p.translate)(" the submission.")))))),c.default.createElement(y.default,i({},this.props,{value:"true",boxClass:"sui-tab-boxed",label:(0,p.translate)("Custom")}),c.default.createElement(w.default,i({property:"submission-erasure-remove",defaultValue:"false"},this.props),c.default.createElement("option",{value:"false"},(0,p.translate)("Retain Submissions")),c.default.createElement("option",{value:"true"},(0,p.translate)("Remove Submissions"))))))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Submission Files")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("If your form has file upload field(s), choose whether to delete the file(s) related to a submission when that submission gets deleted.")),c.default.createElement(N.default,i({},this.props,{property:"submission-file",defaultValue:"delete"}),c.default.createElement("div",{value:"delete"},(0,p.translate)("Delete")),c.default.createElement("div",{value:"keep"},(0,p.translate)("Keep"))))))),c.default.createElement("div",{className:"sui-box-footer"},"leads"===this.props.formType&&c.default.createElement("button",{className:"sui-button",onClick:function(){return t("behaviour")}},c.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"})," ",(0,p.translate)("Behavior")),"leads"!==this.props.formType&&c.default.createElement("button",{className:"sui-button",onClick:function(){return t("integrations")}},c.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"})," ",(0,p.translate)("Integrations"))))}}]),t}(u.Component);t.default=T}]);
22
  * @author Feross Aboukhadijeh <https://feross.org>
23
  * @license MIT
24
  */
25
+ e.exports=function(e){return null!=e&&(a(e)||r(e)||!!e._isBuffer)}},function(e,t,a){"use strict";function r(e){this.defaults=e,this.interceptors={request:new l,response:new l}}var n=a(42),o=a(10),l=a(161),i=a(162);r.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),e=o.merge(n,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[i,void 0],a=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)a=a.then(t.shift(),t.shift());return a},o.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,a){return this.request(o.merge(a||{},{method:e,url:t}))}}),o.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,a,r){return this.request(o.merge(r||{},{method:e,url:t,data:a}))}}),e.exports=r},function(e,t,a){"use strict";var r=a(10);e.exports=function(e,t){r.forEach(e,function(a,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=a,delete e[r])})}},function(e,t,a){"use strict";var r=a(74);e.exports=function(e,t,a){var n=a.config.validateStatus;a.status&&n&&!n(a.status)?t(r("Request failed with status code "+a.status,a.config,null,a.request,a)):e(a)}},function(e,t,a){"use strict";e.exports=function(e,t,a,r,n){return e.config=t,a&&(e.code=a),e.request=r,e.response=n,e}},function(e,t,a){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var n=a(10);e.exports=function(e,t,a){if(!t)return e;var o;if(a)o=a(t);else if(n.isURLSearchParams(t))o=t.toString();else{var l=[];n.forEach(t,function(e,t){null!==e&&void 0!==e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),l.push(r(t)+"="+r(e))}))}),o=l.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},function(e,t,a){"use strict";var r=a(10),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,a,o,l={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),a=r.trim(e.substr(o+1)),t){if(l[t]&&n.indexOf(t)>=0)return;l[t]="set-cookie"===t?(l[t]?l[t]:[]).concat([a]):l[t]?l[t]+", "+a:a}}),l):l}},function(e,t,a){"use strict";var r=a(10);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return a&&(n.setAttribute("href",t),t=n.href),n.setAttribute("href",t),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}var t,a=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");return t=e(window.location.href),function(a){var n=r.isString(a)?e(a):a;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},function(e,t,a){"use strict";function r(){this.message="String contains an invalid character"}function n(e){for(var t,a,n=String(e),l="",i=0,s=o;n.charAt(0|i)||(s="=",i%1);l+=s.charAt(63&t>>8-i%1*8)){if((a=n.charCodeAt(i+=.75))>255)throw new r;t=t<<8|a}return l}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=n},function(e,t,a){"use strict";var r=a(10);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,a,n,o,l){var i=[];i.push(e+"="+encodeURIComponent(t)),r.isNumber(a)&&i.push("expires="+new Date(a).toGMTString()),r.isString(n)&&i.push("path="+n),r.isString(o)&&i.push("domain="+o),!0===l&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,a){"use strict";function r(){this.handlers=[]}var n=a(10);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(10),o=a(163),l=a(75),i=a(42),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=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||i.adapter)(e).then(function(t){return r(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return l(t)||(r(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,a){"use strict";var r=a(10);e.exports=function(e,t,a){return r.forEach(a,function(a){e=a(e,t)}),e}},function(e,t,a){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,a){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,a){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var a=this;e(function(e){a.reason||(a.reason=new n(e),t(a.reason))})}var n=a(76);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},function(e,t,a){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,a){"use strict";var r=a(77),n=a(78),o={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Date.prototype.toISOString,i={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},s=function e(t,a,n,o,l,s,u,c,p,f,d,m){var h=t;if("function"==typeof u)h=u(a,h);else if(h instanceof Date)h=f(h);else if(null===h){if(o)return s&&!m?s(a,i.encoder):a;h=""}if("string"==typeof h||"number"==typeof h||"boolean"==typeof h||r.isBuffer(h)){if(s){return[d(m?a:s(a,i.encoder))+"="+d(s(h,i.encoder))]}return[d(a)+"="+d(String(h))]}var b=[];if(void 0===h)return b;var y;if(Array.isArray(u))y=u;else{var v=Object.keys(h);y=c?v.sort(c):v}for(var g=0;g<y.length;++g){var E=y[g];l&&null===h[E]||(b=Array.isArray(h)?b.concat(e(h[E],n(a,E),n,o,l,s,u,c,p,f,d,m)):b.concat(e(h[E],a+(p?"."+E:"["+E+"]"),n,o,l,s,u,c,p,f,d,m)))}return b};e.exports=function(e,t){var a=e,l=t?r.assign({},t):{};if(null!==l.encoder&&void 0!==l.encoder&&"function"!=typeof l.encoder)throw new TypeError("Encoder has to be a function.");var u=void 0===l.delimiter?i.delimiter:l.delimiter,c="boolean"==typeof l.strictNullHandling?l.strictNullHandling:i.strictNullHandling,p="boolean"==typeof l.skipNulls?l.skipNulls:i.skipNulls,f="boolean"==typeof l.encode?l.encode:i.encode,d="function"==typeof l.encoder?l.encoder:i.encoder,m="function"==typeof l.sort?l.sort:null,h=void 0!==l.allowDots&&l.allowDots,b="function"==typeof l.serializeDate?l.serializeDate:i.serializeDate,y="boolean"==typeof l.encodeValuesOnly?l.encodeValuesOnly:i.encodeValuesOnly;if(void 0===l.format)l.format=n.default;else if(!Object.prototype.hasOwnProperty.call(n.formatters,l.format))throw new TypeError("Unknown format option provided.");var v,g,E=n.formatters[l.format];"function"==typeof l.filter?(g=l.filter,a=g("",a)):Array.isArray(l.filter)&&(g=l.filter,v=g);var _=[];if("object"!=typeof a||null===a)return"";var w;w=l.arrayFormat in o?l.arrayFormat:"indices"in l?l.indices?"indices":"repeat":"indices";var O=o[w];v||(v=Object.keys(a)),m&&v.sort(m);for(var P=0;P<v.length;++P){var j=v[P];p&&null===a[j]||(_=_.concat(s(a[j],j,O,c,p,f?d:null,g,m,h,b,E,y)))}var k=_.join(u),x=!0===l.addQueryPrefix?"?":"";return k.length>0?x+k:""}},function(e,t,a){"use strict";var r=a(77),n=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},l=function(e,t){for(var a={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,i=r.split(t.delimiter,l),s=0;s<i.length;++s){var u,c,p=i[s],f=p.indexOf("]="),d=-1===f?p.indexOf("="):f+1;-1===d?(u=t.decoder(p,o.decoder),c=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,d),o.decoder),c=t.decoder(p.slice(d+1),o.decoder)),n.call(a,u)?a[u]=[].concat(a[u]).concat(c):a[u]=c}return a},i=function(e,t,a){for(var r=t,n=e.length-1;n>=0;--n){var o,l=e[n];if("[]"===l)o=[],o=o.concat(r);else{o=a.plainObjects?Object.create(null):{};var i="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,s=parseInt(i,10);!isNaN(s)&&l!==i&&String(s)===i&&s>=0&&a.parseArrays&&s<=a.arrayLimit?(o=[],o[s]=r):o[i]=r}r=o}return r},s=function(e,t,a){if(e){var r=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=o.exec(r),u=s?r.slice(0,s.index):r,c=[];if(u){if(!a.plainObjects&&n.call(Object.prototype,u)&&!a.allowPrototypes)return;c.push(u)}for(var p=0;null!==(s=l.exec(r))&&p<a.depth;){if(p+=1,!a.plainObjects&&n.call(Object.prototype,s[1].slice(1,-1))&&!a.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+r.slice(s.index)+"]"),i(c,t,a)}};e.exports=function(e,t){var a=t?r.assign({},t):{};if(null!==a.decoder&&void 0!==a.decoder&&"function"!=typeof a.decoder)throw new TypeError("Decoder has to be a function.");if(a.ignoreQueryPrefix=!0===a.ignoreQueryPrefix,a.delimiter="string"==typeof a.delimiter||r.isRegExp(a.delimiter)?a.delimiter:o.delimiter,a.depth="number"==typeof a.depth?a.depth:o.depth,a.arrayLimit="number"==typeof a.arrayLimit?a.arrayLimit:o.arrayLimit,a.parseArrays=!1!==a.parseArrays,a.decoder="function"==typeof a.decoder?a.decoder:o.decoder,a.allowDots="boolean"==typeof a.allowDots?a.allowDots:o.allowDots,a.plainObjects="boolean"==typeof a.plainObjects?a.plainObjects:o.plainObjects,a.allowPrototypes="boolean"==typeof a.allowPrototypes?a.allowPrototypes:o.allowPrototypes,a.parameterLimit="number"==typeof a.parameterLimit?a.parameterLimit:o.parameterLimit,a.strictNullHandling="boolean"==typeof a.strictNullHandling?a.strictNullHandling:o.strictNullHandling,""===e||null===e||void 0===e)return a.plainObjects?Object.create(null):{};for(var n="string"==typeof e?l(e,a):e,i=a.plainObjects?Object.create(null):{},u=Object.keys(n),c=0;c<u.length;++c){var p=u[c],f=s(p,n[p],a);i=r.merge(i,f,a)}return r.compact(i)}},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.radioClass)?"sui-radio":"sui-radio "+this.props.radioClass,a=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],r=s.default.Children.map(this.props.children,function(r){var n="",o=_.isUndefined(r.props.label)?r.props.children:r.props.label;return r.props.image1x&&r.props.image2x&&(n=s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image1x,srcSet:forminatorData.imagesUrl+"/"+r.props.image1x+" 1x,\n\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/"+r.props.image2x+" 2x","aria-hidden":"true"})),r.props.image1x&&!r.props.image2x&&(n=s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image1x,"aria-hidden":"true"})),r.props.image2x&&!r.props.image1x&&(n=s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image2x,srcSet:forminatorData.imagesUrl+"/"+r.props.image2x+" 2x","aria-hidden":"true"})),r.props.hasImage?s.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:"sui-radio-image"},n,s.default.createElement("span",{className:t},s.default.createElement("input",{type:"radio",name:"forminator-"+e.props.property,value:r.props.value,id:"forminator-field-"+r.props.value,checked:a===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,o))):r.props.hasImage?void 0:s.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:t},s.default.createElement("input",{type:"radio",name:"forminator-"+e.props.property,id:"forminator-field-"+r.props.value,value:r.props.value,checked:a===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,o))}),n=s.default.Children.map(this.props.children,function(t){return"true"!==e.props.radioContent||_.isUndefined(t.props.children)?s.default.createElement(s.default.Fragment,null):s.default.createElement("div",{className:"sui-border-frame"+(t.props.value===a?"":" sui-hidden"),style:{marginLeft:"0"}},t.props.value===a&&t)}),o="";this.props.label&&""!==this.props.label&&(o=s.default.createElement("label",{className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note)));var l="";this.props.description&&""!==this.props.description&&(l=s.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.description));var i="";this.props.settingsLabel&&""!==this.props.settingsLabel&&(i=s.default.createElement("label",{className:"sui-settings-label"},this.props.settingsLabel));var u="";return this.props.settingsDesc&&""!==this.props.settingsDesc&&(u=s.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc)),this.props.noWrapper?r:s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{role:"radiogroup",className:"sui-form-field"},o,i,l,u,r,n))}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.insertSelector=a.insertSelector.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){this.editor=ace.edit("forminator-field-"+this.props.property),this.session=this.editor.getSession(),this.session.setUseWorker(!1),this.editor.setShowPrintMargin(!1),this.session.setMode("ace/mode/css"),this.editor.setTheme("ace/theme/sui"),this.editor.renderer.setShowGutter(!0),this.editor.setHighlightActiveLine(!0),this.editor.focus(),this.editor.on("change",this.updateValue)}},{key:"componentWillUnmount",value:function(){this.editor.destroy(),this.editor=null}},{key:"insertSelector",value:function(e){var t=e+"{}";this.editor.navigateFileEnd(),this.editor.insert(t),this.editor.navigateLeft(1),this.editor.focus()}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"updateValue",value:function(){this.props.actions.settingsActions.updateSetting(this.props.property,this.editor.getValue())}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],a=_.isUndefined(this.props.type)?"form":this.props.type,r=s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Basic selectors")),s.default.createElement("div",{className:"sui-ace-selectors"},s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,u.translate)("Form")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-title ")}},(0,u.translate)("Section Title")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-subtitle ")}},(0,u.translate)("Section Subtitle")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-label ")}},(0,u.translate)("Field Label")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-description ")}},(0,u.translate)("Field Description")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-input ")}},(0,u.translate)("Input")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-textarea ")}},(0,u.translate)("Textarea")))),n=s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Basic selectors")),s.default.createElement("div",{className:"sui-ace-selectors"},s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,u.translate)("Poll")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-poll--question ")}},(0,u.translate)("Question")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-radio .forminator-radio-bullet ")}},(0,u.translate)("Answer Input")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-radio .forminator-radio-label ")}},(0,u.translate)("Answer Label")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-button ")}},(0,u.translate)("Submit Button")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-poll-footer a.forminator-link, .forminator-poll-footer a.forminator-link:visited ")}},(0,u.translate)("View Results Link")))),o=s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Basic selectors")),s.default.createElement("div",{className:"sui-ace-selectors"},s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,u.translate)("Quiz")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--title ")}},(0,u.translate)("Title")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--description p ")}},(0,u.translate)("Description")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-question .forminator-legend ")}},(0,u.translate)("Question")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer .forminator-answer--design ")}},(0,u.translate)("Answer Container")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer .forminator-answer--name ")}},(0,u.translate)("Answer Text"))));return s.default.createElement(s.default.Fragment,null,"form"===a&&r,"poll"===a&&n,"quiz"===a&&o,s.default.createElement("div",{id:"forminator-field-"+this.props.property,"data-value":t,style:{height:"210px"}},t))}}]),t}(i.Component);t.default=c},,function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(174),f=r(p),d=a(404),m=r(d),h=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.closeModal.bind(a),a}return l(t,e),s(t,[{key:"render",value:function(){var e=c.default.Children.map(this.props.children,function(e){return e}),t=_.isUndefined(this.props.alignment)||""===this.props.alignment?"":this.props.alignment,a=!_.isUndefined(this.props.flatten)&&!0===this.props.flatten,r=!(!_.isUndefined(this.props.canClose)&&!1===this.props.canClose),n=_.isUndefined(this.props.closeType)||""===this.props.closeType?"":this.props.closeType,o=_.isUndefined(this.props.closeColor)||""===this.props.closeColor?"default":this.props.closeColor,l=!_.isUndefined(this.props.imageName)&&""!==this.props.imageName,s=!_.isUndefined(this.props.imageLogo)&&!0===this.props.imageLogo,u=_.isUndefined(this.props.imageAlt)||!0!==this.props.imageAlt?"":this.props.imageAlt,p=!_.isUndefined(this.props.customClass)&&""!==this.props.customClass,d="sui-box-header";""!==t&&(d+=" sui-content-"+t),!0===a&&(d+=" sui-flatten"),!0===l&&(d+=" sui-spacing-top--60"),!0===p&&(d+=" "+this.props.customClass);var h=c.default.createElement("div",{className:d},!0===r&&c.default.createElement(f.default,i({type:n,float:"right",color:o},r&&{closeModal:this.closeModal})),!0===l&&c.default.createElement(m.default,{logo:s,filename:this.props.imageName,alt:u}),e);return"center"!==t&&(h=c.default.createElement(c.default.Fragment,null,!0===r&&c.default.createElement(f.default,i({sronly:!0},r&&{closeModal:this.closeModal})),c.default.createElement("div",{className:d},!0===l&&c.default.createElement(m.default,{logo:s,filename:this.props.imageName,alt:u}),e,c.default.createElement("div",{className:"sui-actions-right"},!0===r&&c.default.createElement(f.default,{type:n,color:o,closeModal:this.closeModal}))))),h}}]),t}(u.Component);t.default=h},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.closeModal.bind(a),a}return o(t,e),l(t,[{key:"render",value:function(){var e=_.isUndefined(this.props.label)||""===this.props.label?(0,u.translate)("Close this dialog"):this.props.label,t=_.isUndefined(this.props.color)||""===this.props.color?"":this.props.color,a=!_.isUndefined(this.props.type)&&"icon"===this.props.type,r=!_.isUndefined(this.props.sronly)&&!0===this.props.sronly,n=!_.isUndefined(this.props.icon)&&""!==this.props.icon,o=!_.isUndefined(this.props.float)&&"left"===this.props.float,l=!_.isUndefined(this.props.float)&&"right"===this.props.float,i=!_.isUndefined(this.props.customClass)&&""!==this.props.customClass,c="sui-button";return!0===r?c="sui-screen-reader-text":!1===r&&!0===a&&(c="sui-button-icon"),!1===r&&""!==t&&(c+=" sui-button-"+t),!1!==r||!0!==o&&!0!==l||(c+=" sui-button-float--"+this.props.float),!0===i&&(c+=" "+this.props.customClass),c+=" modal-close-button",s.default.createElement("button",{className:c,onClick:this.closeModal},!0===a&&s.default.createElement("i",{className:"sui-icon-close sui-md","aria-hidden":"true"}),!0===n&&s.default.createElement("i",{className:"sui-icon-"+this.props.icon,"aria-hidden":"true"}),!0===a?s.default.createElement("span",{className:"sui-screen-reader-text"},e):e)}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=this.props.id?"modal-"+this.props.id+"--title":"unique-id-required",t=this.props.label?this.props.label:"A title is required for your modals",a=_.isUndefined(this.props.tag)||""===this.props.tag?"":this.props.tag,r=_.isUndefined(this.props.tagColor)||""===this.props.tagColor?"":" sui-tag-"+this.props.titleTagColor,n="sui-box-title";return"lg"===this.props.size&&(n+=" sui-lg"),_.isUndefined(this.props.customClass)||""===this.props.customClass||(n+=" "+this.props.customClass),s.default.createElement("h3",{id:e,className:n},t,""!==a&&s.default.createElement("span",{className:"sui-tag"+r,style:{marginTop:"-2px",marginLeft:"10px"}},a))}}]),t}(i.Component);t.default=u},,,,function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(32),f=r(p),d=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r={form:{shortcode:"forminator_form",type:"form",processAction:forminatorData.adminUrl+"admin.php?page=forminator-cform",processNonce:forminatorData.formProcessNonce,exportNonce:forminatorData.formExportNonce,submissions:forminatorData.adminUrl+"admin.php?page=forminator-entries&form_type=forminator_forms&form_id="+a.props.id,dropdownLabel:(0,c.translate)("Open form options")},poll:{shortcode:"forminator_poll",type:"poll",processAction:forminatorData.adminUrl+"admin.php?page=forminator-poll",processNonce:forminatorData.pollProcessNonce,exportNonce:forminatorData.pollExportNonce,submissions:forminatorData.adminUrl+"admin.php?page=forminator-entries&form_type=forminator_polls&form_id="+a.props.id,dropdownLabel:(0,c.translate)("Open poll options")},quiz:{shortcode:"forminator_quiz",type:"quiz",processAction:forminatorData.adminUrl+"admin.php?page=forminator-quiz",processNonce:forminatorData.quizProcessNonce,exportNonce:forminatorData.quizExportNonce,submissions:forminatorData.adminUrl+"admin.php?page=forminator-entries&form_type=forminator_quizzes&form_id="+a.props.id,dropdownLabel:(0,c.translate)("Open quiz options")}};return a.copyToClipboard=a.copyToClipboard.bind(a),a.resetTrackingData=a.resetTrackingData.bind(a),a.data=r[a.props.type],a}return l(t,e),i(t,[{key:"copyToClipboard",value:function(){this.input.select(),document.execCommand("copy"),new f.default({type:"success",text:(0,c.translate)("Shortcode has been copied successfully."),time:4e3}).open()}},{key:"resetTrackingData",value:function(){var e={action:"forminator_reset_tracking_data",_ajax_nonce:forminatorData.resetTrackingDataNonce,id:this.props.id};this.ajax=jQuery.post({url:forminatorData.ajaxUrl,type:"post",data:e}).done(function(e){if(e){var t=e.success?"success":"error",a=e.data||(0,c.translate)("Something went wrong.");new f.default({type:t,text:a,time:4e3}).open()}})}},{key:"render",value:function(){var e=this,t=this.data.processAction+"&export=true&module_id="+this.props.id+"&exportnonce="+this.data.exportNonce+"&module_type="+this.data.type,a=this.data.processAction+"&delete=true&module_id="+this.props.id+"&nonce="+this.data.processNonce+"&module_type="+this.data.type,r=(0,c.translate)("Create New Form");return"poll"===this.props.type&&(r=(0,c.translate)("Create New Poll")),"quiz"===this.props.type&&(r=(0,c.translate)("Create New Quiz")),u.default.createElement(u.default.Fragment,null,u.default.createElement("input",{type:"text",defaultValue:"["+this.data.shortcode+' id="'+this.props.id+'"]',id:"forminator-form-shortcode",style:{position:"absolute",top:"-1500px"},"aria-hidden":"true",ref:function(t){return e.input=t}}),u.default.createElement("div",{className:this.props.hasLead?"sui-dropdown fui-dropdown-soon":"sui-dropdown"},u.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor","aria-label":"Dropdown"},u.default.createElement("span",{className:"sui-icon-widget-settings-config sui-md","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},this.data.dropdownLabel)),u.default.createElement("ul",null,u.default.createElement("li",null,u.default.createElement("button",{className:"forminator-field-edit",onClick:this.copyToClipboard},u.default.createElement("span",{className:"sui-icon-code","aria-hidden":"true"}),(0,c.translate)("Copy Shortcode"))),u.default.createElement("li",null,u.default.createElement("a",{className:"forminator-field-edit",href:this.data.submissions},u.default.createElement("span",{className:"sui-icon-community-people","aria-hidden":"true"}),(0,c.translate)("View Submissions"))),u.default.createElement("li",null,u.default.createElement("form",{method:"post",action:this.data.processAction},u.default.createElement("input",{type:"hidden",name:"forminator_action",value:"clone"}),u.default.createElement("input",{type:"hidden",name:"id",value:this.props.id}),u.default.createElement("input",{type:"hidden",id:"forminatorNonce",name:"forminatorNonce",value:forminatorData.cloneNonce}),u.default.createElement("input",{type:"hidden",name:"forminatorRedirect",value:"false"}),this.props.hasLead&&u.default.createElement("button",{type:"submit",disabled:"disabled",className:"fui-button-with-tag sui-tooltip sui-tooltip-left sui-constrained","data-tooltip":(0,c.translate)("Duplicate isn't supported at the moment for the quizzes with lead capturing enabled.")},u.default.createElement("span",{className:"sui-icon-page-multiple","aria-hidden":"true"}),u.default.createElement("span",{className:"fui-button-label"},(0,c.translate)("Duplicate")),u.default.createElement("span",{className:"sui-tag sui-tag-blue sui-tag-sm"},(0,c.translate)("Coming soon"))),!this.props.hasLead&&u.default.createElement("button",{type:"submit"},u.default.createElement("span",{className:"sui-icon-page-multiple","aria-hidden":"true"}),(0,c.translate)("Duplicate")))),u.default.createElement("li",null,u.default.createElement("a",{className:"forminator-field-edit",onClick:this.resetTrackingData},u.default.createElement("span",{className:"sui-icon-update","aria-hidden":"true"}),(0,c.translate)("Reset Tracking Data"))),u.default.createElement("li",null,this.props.hasLead&&u.default.createElement("a",{href:"#",className:"fui-button-with-tag sui-tooltip sui-tooltip-left","data-tooltip":(0,c.translate)("Export isn't supported at the moment for the quizzes with lead capturing enabled.")},u.default.createElement("span",{className:"sui-icon-cloud-migration","aria-hidden":"true"}),u.default.createElement("span",{className:"fui-button-label"},(0,c.translate)("Export")),u.default.createElement("span",{className:"sui-tag sui-tag-blue sui-tag-sm"},(0,c.translate)("Coming soon"))),!this.props.hasLead&&u.default.createElement("a",{className:"forminator-field-edit",href:t},u.default.createElement("span",{className:"sui-icon-cloud-migration","aria-hidden":"true"}),(0,c.translate)("Export"))),u.default.createElement("li",null,u.default.createElement("a",{className:"forminator-field-edit sui-option-red",href:a},u.default.createElement("span",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete"))))),u.default.createElement("a",{href:forminatorData.dashboardUrl+"&createnew="+this.props.type,className:"sui-button-icon sui-tooltip sui-tooltip-bottom","data-tooltip":r},u.default.createElement("span",{className:"sui-icon-plus sui-md","aria-hidden":"true"})))}}]),t}(s.Component);t.default=d},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e}),t=_.isUndefined(this.props.alignment)||""===this.props.alignment?"":this.props.alignment,a=!_.isUndefined(this.props.flatten)&&!0===this.props.flatten,r=!_.isUndefined(this.props.customClass)&&""!==this.props.customClass,n="sui-box-footer";return!0===a&&(n+=" sui-flatten"),""!==t&&(n+=" sui-content-"+t),!0===r&&(n+=" "+this.props.customClass),s.default.createElement("div",{className:n},e)}}]),t}(i.Component);t.default=u},function(e,t,a){function r(e,t){var a=o(e,t);return n(a)?a:void 0}var n=a(419),o=a(424);e.exports=r},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),i(t,[{key:"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="sui-form-field";_.isUndefined(this.props.fieldClass)||(r+=" "+this.props.fieldClass),this.props.mediumSize&&(r+=" sui-input-md");var n=void 0,o=void 0;this.props.label&&(n=u.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note))),this.props.canTrash&&(o=u.default.createElement("button",{className:"sui-button-icon"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Remove this date range")))),this.props.canAdd&&(o=u.default.createElement("button",{className:"sui-button-icon"},u.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Add selected date"))));var i=_.isUndefined(this.props.id)?"forminator-field-"+this.props.property:"forminator-field-"+this.props.id,s=u.default.createElement("input",l({ref:function(t){return e.el=t},id:i,className:t,placeholder:this.props.placeholder,type:"text",autoComplete:"off"},this.props.onlyRead&&{'readonly="readonly"':""})),p=u.default.createElement("div",{className:r},n,this.props.noCalendar?s:u.default.createElement("div",{className:"sui-date"},"left"===a&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"}),s,"right"===a&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"})),u.default.createElement("div",{id:i+"-calendar",className:"sui-date-calendar"}),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description));return this.props.multiDate&&(p=u.default.createElement("div",{className:"sui-multi-date"},u.default.createElement("div",{className:r},n,this.props.noCalendar?s:u.default.createElement("div",{className:"sui-date"},s,u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"})),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description)),o)),p}}]),t}(s.Component);t.default=p},function(e,t,a){"use strict";function r(e){return o.default.createElement("hr",{className:"fui-border"})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),o=function(e){return e&&e.__esModule?e:{default:e}}(n)},function(e,t,a){"use strict";function r(e){return e.replace(/>/g,"&gt;")}t.a=r},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(31),p=r(c),f=a(186),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return"undefined"!=typeof document&&(a.previouslyFocusedElement=document.activeElement),a}return l(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this.props.focusTrapOptions,t={returnFocusOnDeactivate:!1,fallbackFocus:"body"};for(var a in e)e.hasOwnProperty(a)&&"returnFocusOnDeactivate"!==a&&(t[a]=e[a]);var r=p.default.findDOMNode(this.focusTrapElement);this.focusTrap=this.props._createFocusTrap(r,t),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()}},{key:"componentDidUpdate",value:function(e){if(e.active&&!this.props.active){var t=this.props.focusTrapOptions.returnFocusOnDeactivate,a=t||!1,r={returnFocus:a};this.focusTrap.deactivate(r)}else!e.active&&this.props.active&&this.focusTrap.activate();e.paused&&!this.props.paused?this.focusTrap.unpause():!e.paused&&this.props.paused&&this.focusTrap.pause()}},{key:"componentWillUnmount",value:function(){this.focusTrap.deactivate(),!1!==this.props.focusTrapOptions.returnFocusOnDeactivate&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus()}},{key:"setFocusTrapElement",value:function(e){this.focusTrapElement=e}},{key:"render",value:function(){var e=this,t=u.default.Children.only(this.props.children),a=function(a){e.setFocusTrapElement(a),"function"==typeof t.ref&&t.ref(a)};return u.default.cloneElement(t,{ref:a})}}]),t}(u.default.Component);m.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d.default},e.exports=m},function(e,t,a){function r(e,t){function a(e){if(!C.active){P(),C.active=!0,C.paused=!1,C.nodeFocusedBeforeActivation=k.activeElement;var t=e&&e.onActivate?e.onActivate:N.onActivate;return t&&t(),m(),S}}function r(e){if(C.active){clearTimeout(s),h(),C.active=!1,C.paused=!1,p.deactivateTrap(S);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:N.onDeactivate;t&&t();return(e&&void 0!==e.returnFocus?e.returnFocus:N.returnFocusOnDeactivate)&&i(function(){j(v(C.nodeFocusedBeforeActivation))}),S}}function f(){!C.paused&&C.active&&(C.paused=!0,h())}function d(){C.paused&&C.active&&(C.paused=!1,P(),m())}function m(){if(C.active)return p.activateTrap(S),s=i(function(){j(y())}),k.addEventListener("focusin",E,!0),k.addEventListener("mousedown",g,{capture:!0,passive:!1}),k.addEventListener("touchstart",g,{capture:!0,passive:!1}),k.addEventListener("click",O,{capture:!0,passive:!1}),k.addEventListener("keydown",_,{capture:!0,passive:!1}),S}function h(){if(C.active)return k.removeEventListener("focusin",E,!0),k.removeEventListener("mousedown",g,!0),k.removeEventListener("touchstart",g,!0),k.removeEventListener("click",O,!0),k.removeEventListener("keydown",_,!0),S}function b(e){var t=N[e],a=t;if(!t)return null;if("string"==typeof t&&!(a=k.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(a=t()))throw new Error("`"+e+"` did not return a node");return a}function y(){var e;if(!(e=null!==b("initialFocus")?b("initialFocus"):x.contains(k.activeElement)?k.activeElement:C.firstTabbableNode||b("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function v(e){var t=b("setReturnFocus");return t||e}function g(e){if(!x.contains(e.target))return N.clickOutsideDeactivates?void r({returnFocus:!u.isFocusable(e.target)}):void(N.allowOutsideClick&&N.allowOutsideClick(e)||e.preventDefault())}function E(e){x.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),j(C.mostRecentlyFocusedNode||y()))}function _(e){return!1!==N.escapeDeactivates&&o(e)?(e.preventDefault(),void r()):l(e)?void w(e):void 0}function w(e){return P(),e.shiftKey&&e.target===C.firstTabbableNode?(e.preventDefault(),void j(C.lastTabbableNode)):e.shiftKey||e.target!==C.lastTabbableNode?void 0:(e.preventDefault(),void j(C.firstTabbableNode))}function O(e){N.clickOutsideDeactivates||x.contains(e.target)||N.allowOutsideClick&&N.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function P(){var e=u(x);C.firstTabbableNode=e[0]||y(),C.lastTabbableNode=e[e.length-1]||y()}function j(e){if(e!==k.activeElement){if(!e||!e.focus)return void j(y());e.focus(),C.mostRecentlyFocusedNode=e,n(e)&&e.select()}}var k=document,x="string"==typeof e?k.querySelector(e):e,N=c({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),C={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},S={activate:a,deactivate:r,pause:f,unpause:d};return S}function n(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}function o(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}function l(e){return"Tab"===e.key||9===e.keyCode}function i(e){return setTimeout(e,0)}var s,u=a(187),c=a(188),p=function(){var e=[];return{activateTrap:function(t){if(e.length>0){var a=e[e.length-1];a!==t&&a.pause()}var r=e.indexOf(t);-1===r?e.push(t):(e.splice(r,1),e.push(t))},deactivateTrap:function(t){var a=e.indexOf(t);-1!==a&&e.splice(a,1),e.length>0&&e[e.length-1].unpause()}}}();e.exports=r},function(e,t){function a(e,t){t=t||{};var a=[],n=[],o=e.querySelectorAll(v);t.includeContainer&&g.call(e,v)&&(o=Array.prototype.slice.apply(o),o.unshift(e));var l,u,c;for(l=0;l<o.length;l++)u=o[l],r(u)&&(c=i(u),0===c?a.push(u):n.push({documentOrder:l,tabIndex:c,node:u}));return n.sort(s).map(function(e){return e.node}).concat(a)}function r(e){return!(!o(e)||d(e)||i(e)<0)}function n(e){if(!e)throw new Error("No node provided");return!1!==g.call(e,v)&&r(e)}function o(e){return!(e.disabled||p(e)||b(e))}function l(e){if(!e)throw new Error("No node provided");return!1!==g.call(e,E)&&o(e)}function i(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?u(e)?0:e.tabIndex:t}function s(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function u(e){return"true"===e.contentEditable}function c(e){return"INPUT"===e.tagName}function p(e){return c(e)&&"hidden"===e.type}function f(e){return c(e)&&"radio"===e.type}function d(e){return f(e)&&!h(e)}function m(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}function h(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),a=m(t);return!a||a===e}function b(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}var y=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],v=y.join(","),g="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;a.isTabbable=n,a.isFocusable=l;var E=y.concat("iframe").join(",");e.exports=a},function(e,t){function a(){for(var e={},t=0;t<arguments.length;t++){var a=arguments[t];for(var n in a)r.call(a,n)&&(e[n]=a[n])}return e}e.exports=a;var r=Object.prototype.hasOwnProperty},function(e,t,a){"use strict";(function(t){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,a){if(!t.document)return function(e){function t(){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){return!1}}]),t}(s.Component);a=a||{};var l=function(t){function l(){var t,a,o,i;r(this,l);for(var c=arguments.length,p=Array(c),f=0;f<c;f++)p[f]=arguments[f];return a=o=n(this,(t=l.__proto__||Object.getPrototypeOf(l)).call.apply(t,[this].concat(p))),o.renderDisplaced=function(){u.unstable_renderSubtreeIntoContainer(o,s.createElement(e,o.props,o.props.children),o.container)},o.removeDisplaced=function(){u.unmountComponentAtNode(o.container)},i=a,n(o,i)}return o(l,t),i(l,[{key:"componentWillMount",value:function(){this.container=function(){if(a.renderTo)return"string"==typeof a.renderTo?document.querySelector(a.renderTo):a.renderTo;var e=document.createElement("div");return document.body.appendChild(e),e}()}},{key:"componentDidMount",value:function(){c||this.props.mounted&&this.renderDisplaced()}},{key:"componentDidUpdate",value:function(e){c||(e.mounted&&!this.props.mounted?u.unmountComponentAtNode(this.container):this.props.mounted&&this.renderDisplaced())}},{key:"componentWillUnmount",value:function(){c||u.unmountComponentAtNode(this.container),a.renderTo||this.container.parentNode.removeChild(this.container)}},{key:"render",value:function(){return c&&!1!==this.props.mounted?u.createPortal(s.createElement(e,this.props,this.props.children),this.container):null}}]),l}(s.Component);return l.defaultProps={mounted:!0},l.WrappedComponent=e,l}var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=a(31),c=!!u.createPortal;e.exports=l}).call(t,a(36))},function(e,t,a){"use strict";var r=a(191),n=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(e,t,a,r){function o(e,t){this.$popup={},this._deferred={},this.el=e,this.$el=jQuery(this.el),this.options=_.extend(l,t),this.init()}var l={type:"form"};jQuery.extend(o.prototype,{init:function(){var e=this;this.$el.find(".connect-integration").on("click",function(t){e.open(t)})},open:function(e){var t=this;jQuery("#forminator-integration-popup").remove();var a=jQuery(e.target);a.hasClass("connect-integration")||(a=a.closest(".connect-integration"));var r=function(){return t.close(),!1},o=a.data("nonce"),l=a.data("slug"),i=a.data("multi-global-id"),s=a.data("title"),u=a.data("image"),c=a.data("imagex2"),p=a.data("action"),f=a.data("form-id"),d=a.data("multi-id"),m=a.data("poll-id"),h=a.data("quiz-id"),b=_.template('<div class="sui-modal sui-modal-lg"><div role="dialog" id="forminator-integration-popup" class="sui-modal-content" aria-modal="true" aria-labelledby="forminator-integration-popup__title" aria-describedby="forminator-integration-popup__description"><div class="sui-box" style="margin-bottom: 0;"><div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60"><button class="sui-button-icon sui-button-float--right forminator-popup-close"><span class="sui-icon-close sui-md" aria-hidden="true"></span><span class="sui-screen-reader-text">Close</span></button><button class="sui-button-icon sui-button-float--left forminator-addon-back"><span class="sui-icon-chevron-left sui-md" aria-hidden="true"></span><span class="sui-screen-reader-text">Back</span></button><figure class="sui-box-logo" aria-hidden="true"><img src="<%= image %>" srcset="<%= image %> 1x, <%= image2x %> 2x" alt="<%= title %>" /></figure><div class="forminator-integration-popup__header"></div></div><div class="sui-box-body"></div><div class="sui-box-footer sui-flatten sui-content-center"></div></div></div></div>');jQuery("main.sui-wrap").append(b({image:u,image2x:c,title:s})),this.$popup=jQuery("#forminator-integration-popup");var y={slug:l,nonce:o,action:p,multi_id:d,global_id:i,el:this.$popup,type:t.options.type};return"form"===t.options.type?y.form_id=f:"poll"===t.options.type?y.poll_id=m:"quiz"===t.options.type&&(y.quiz_id=h),new n.default(y).on("modal:closed",function(){t.close()}),this.$popup.find(".forminator-popup-action").remove(),this.$popup.find(".forminator-popup-close").on("click",r),this.$popup.on("click",".forminator-popup-cancel",r),SUI.openModal("forminator-integration-popup","forminator-form-appearance",void 0,!0,!0),this._deferred=new jQuery.Deferred,this._deferred.promise()},close:function(e){SUI.closeModal(),this.$el.trigger("reload"),this._deferred.resolve(this.$popup,e)}}),jQuery.fn.ForminatorIntegrationsModal=function(e){return this.each(function(){new o(this,e)})}}(jQuery,window,document)},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(32),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){var a;r(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{el:e.el,tagName:"div",events:{"click .forminator-addon-connect":"connectAddon","click .forminator-addon-disconnect":"disconnectAddon","click .forminator-addon-form-disconnect":"formDisconnectAddon","click .forminator-addon-next":"submitNextStep","click .forminator-addon-back":"goPrevStep","click .forminator-addon-finish":"finishSteps","click .forminator-refresh-email-lists":"refreshLists","change select#group":"showInterests"}}));return o.slug=e.slug,o.nonce=e.nonce,o.action=e.action,o.multi_id=e.multi_id,o.global_id=e.global_id,o.type=e.type,o.step=0,o.next_step=!1,o.prev_step=!1,o.scrollbar_width=o.getScrollbarWidth(),"form"===o.type?o.module_id=e.form_id:"poll"===o.type?o.module_id=e.poll_id:"quiz"===o.type&&(o.module_id=e.quiz_id),a=o.render(),n(o,a)}return o(t,e),l(t,[{key:"render",value:function(){var e={};e.action=this.action,e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data.step=this.step,e.data.current_step=this.step,e.data.global_id=this.global_id,e.data=this.getAjaxModuleData(e.data,!0),this.request(e,!1,!0)}},{key:"applyLoader",value:function(e){e.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload")}},{key:"resetLoader",value:function(e){e.find(".sui-button").removeClass("sui-button-onload")}},{key:"request",value:function(e,t,a){var r=this,n={data:e,close:t,loader:a};a&&(this.$el.find(".sui-box-body").html('<p class="fui-loading-dialog" style="text-align: center;" aria-label="Loading content"><span class="sui-icon-loader sui-md sui-loading" aria-hidden="true"></span></p>'),this.$el.find(".sui-box-footer").html(""),this.$el.find(".forminator-integration-popup__header").html("")),r.applyLoader(r.$el),this.ajax=jQuery.post({url:forminatorData.ajaxUrl,type:"post",data:e}).done(function(e){if(e&&e.success){r.renderBody(e),r.renderFooter(e);var a=e.data.data;if(r.onRender(a),r.resetLoader(r.$el),(t||!_.isUndefined(a.is_close)&&a.is_close)&&r.close(r),r.$el.find(".forminator-addon-close").on("click",function(){r.close(r)}),!_.isUndefined(a.notification)&&!_.isUndefined(a.notification.type)&&!_.isUndefined(a.notification.text)){new s.default({type:a.notification.type,text:a.notification.text,time:4e3}).open()}if(_.isUndefined(a.has_back)?r.$el.find(".forminator-addon-back").hide():a.has_back?r.$el.find(".forminator-addon-back").show():r.$el.find(".forminator-addon-back").hide(),!_.isUndefined(a.size)){var o=jQuery("#forminator-integration-popup");"normal"===a.size&&o.removeClass("sui-modal-sm sui-modal-lg"),"small"===a.size&&(o.addClass("sui-modal-sm"),o.removeClass("sui-modal-lg sui-modal-reduced")),"reduced"===a.size&&(o.addClass("sui-modal-sm"),o.removeClass("sui-modal-lg sui-modal-md")),"large"===a.size&&(o.addClass("sui-modal-lg"),o.removeClass("sui-modal-sm sui-modal-md"))}a.is_poll&&setTimeout(r.request(n.data,n.close,n.loader),5e3),setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery('select.sui-select[data-theme="icon"]').each(function(){SUI.select.initIcon(jQuery(this))}),jQuery('select.sui-select[data-theme="color"]').each(function(){SUI.select.initColor(jQuery(this))}),jQuery('select.sui-select[data-theme="search"]').each(function(){SUI.select.initSearch(jQuery(this))}),jQuery("select.sui-select:not([data-theme]):not(.custom-select2):not(.fui-multi-select)").each(function(){SUI.select.init(jQuery(this))}),jQuery("select.sui-variables").each(function(){SUI.select.initVars(jQuery(this))}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},10);jQuery("#forminator-integration-popup .sui-box").height()>jQuery(window).height()?jQuery("#forminator-integration-popup .sui-modal-overlay").css("right",r.scrollbar_width+"px"):jQuery("#forminator-integration-popup .sui-modal-overlay").css("right",0)}if("mailchimp"===r.slug){var l=r.$el.find("#group");l.length&&l.trigger("change")}}),this.ajax.always(function(){r.$el.find(".fui-loading-dialog").remove()})}},{key:"renderBody",value:function(e){this.$el.find(".sui-box-body").html(e.data.data.html);var t=this.$el.find(".sui-box-body .forminator-integration-popup__header").remove();t.length>0&&this.$el.find(".forminator-integration-popup__header").html(t.html())}},{key:"renderFooter",value:function(e){var t=this,a=e.data.data.buttons;t.$el.find(".sui-box-footer").html(""),_.each(a,function(e){t.$el.find(".sui-box-footer").append(e.markup)})}},{key:"onRender",value:function(e){(0,u.suiDelegateEvents)(),(0,u.select2Tags)(this.$el,{}),_.isUndefined(e.forminator_addon_current_step)||(this.step=+e.forminator_addon_current_step),_.isUndefined(e.forminator_addon_has_next_step)||(this.next_step=e.forminator_addon_has_next_step),_.isUndefined(e.forminator_addon_has_prev_step)||(this.prev_step=e.forminator_addon_has_prev_step)}},{key:"close",value:function(e){e.ajax.abort(),e.remove(),this.trigger("modal:closed")}},{key:"refreshLists",value:function(e){e.preventDefault(),e.stopPropagation();var t=jQuery(e.currentTarget),a=this.slug,r=this.global_id,n=this.nonce,o={slug:a,global_id:r};t.addClass("sui-button-onload"),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"forminator_refresh_email_lists",data:o,_ajax_nonce:n}}).done(function(e){if(e.success&&void 0!==e.data.options){var a=t.siblings(".sui-select"),r=a.closest(".sui-modal-content"),n=r.attr("id"),o=r.length?jQuery("#"+n):jQuery("body"),l="true"===a.attr("data-search")?0:-1,i=a.hasClass("sui-select-sm")?"sui-select-dropdown-sm":"";a.html(e.data.options),a.SUIselect2({dropdownParent:o,minimumResultsForSearch:l,dropdownCssClass:i})}}).fail(function(){}).always(function(){t.removeClass("sui-button-onload")})}},{key:"showInterests",value:function(e){var t=this,a=jQuery(e.currentTarget),r=a.data("nonce"),n={},o=t.$el.find("form"),l={slug:t.slug,global_id:this.global_id,module_id:this.module_id},i=o.serialize();i=i+"&"+jQuery.param(l),n.action="forminator_mailchimp_get_group_interests",n._ajax_nonce=r,n.data=i,t.applyLoader(t.$el),jQuery.ajax({url:ajaxurl,type:"POST",data:n}).done(function(e){e.success&&(o.find(".sui-form-field").slice(1).remove(),o.find(".sui-form-field:first-child").after(e.data),o.find(".sui-form-field").slice(1).find("select").each(function(){SUI.select.init(jQuery(this))}))}).fail(function(){}).always(function(){t.resetLoader(t.$el)})}},{key:"submitNextStep",value:function(e){var t={},a=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),global_id:this.global_id,current_step:this.step},n=a.serialize();r=this.getAjaxModuleData(r,!1),n=n+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=n,this.request(t,!1,!1)}},{key:"goPrevStep",value:function(e){var t={},a={slug:this.slug,step:this.getPrevStep(),global_id:this.global_id,current_step:this.step};a=this.getAjaxModuleData(a,!0),t.action=this.action,t._ajax_nonce=this.nonce,t.data=a,this.request(t,!1,!1)}},{key:"finishSteps",value:function(e){var t={},a=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),global_id:this.global_id,current_step:this.step},n=a.serialize();r=this.getAjaxModuleData(r,!0),n=n+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=n,this.request(t,!1,!1)}},{key:"getStep",value:function(){return this.next_step?this.step+1:this.step}},{key:"getPrevStep",value:function(){return this.prev_step?this.step-1:this.step}},{key:"connectAddon",value:function(){var e={},t=this.$el.find("form"),a={slug:this.slug,step:this.getStep(),global_id:this.global_id,current_step:this.step},r=t.serialize();a=this.getAjaxModuleData(a,!0),r=r+"&"+jQuery.param(a),e.action=this.action,e._ajax_nonce=this.nonce,e.data=r,this.request(e,!1,!1)}},{key:"disconnectAddon",value:function(){var e={};e.action="forminator_addon_deactivate",e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data.global_id=this.global_id,this.request(e,!0,!1)}},{key:"formDisconnectAddon",value:function(){var e={};e.action=this.getAjaxModuleAction("deactivate"),e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data=this.getAjaxModuleData(e.data,!0),this.request(e,!0,!1)}},{key:"getScrollbarWidth",value:function(){var e=0;if(navigator.userAgent.match("MSIE")){var t=jQuery('<textarea cols="10" rows="2"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body"),a=jQuery('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body");e=t.width()-a.width(),t.add(a).remove()}else{var r=jQuery("<div />").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1e3,left:-1e3}).prependTo("body").append("<div />").find("div").css({width:"100%",height:200});e=100-r.width(),r.parent().remove()}return e}},{key:"getAjaxModuleData",value:function(e,t){return this.module_id&&(e.module_id=this.module_id,e.module_type=this.type,e.global_id=this.global_id),t&&this.multi_id&&(e.multi_id=this.multi_id),e}},{key:"getAjaxModuleAction",value:function(e){switch(e){case"deactivate":e="forminator_addon_deactivate_for_module"}return e}}]),t}(Backbone.View);t.default=c},function(e,t,a){"use strict";function r(e){return e&&DataView.prototype.isPrototypeOf(e)}function n(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function o(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return _.iterable&&(t[Symbol.iterator]=function(){return t}),t}function i(e){this.map={},e instanceof i?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function s(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,a){e.onload=function(){t(e.result)},e.onerror=function(){a(e.error)}})}function c(e){var t=new FileReader,a=u(t);return t.readAsArrayBuffer(e),a}function p(e){var t=new FileReader,a=u(t);return t.readAsText(e),a}function f(e){for(var t=new Uint8Array(e),a=new Array(t.length),r=0;r<t.length;r++)a[r]=String.fromCharCode(t[r]);return a.join("")}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:_.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:_.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:_.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():_.arrayBuffer&&_.blob&&r(e)?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):_.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||O(e))?this._bodyArrayBuffer=d(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):_.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},_.blob&&(this.blob=function(){var e=s(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?s(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(c)}),this.text=function(){var e=s(this);if(e)return e;if(this._bodyBlob)return p(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(f(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},_.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}function h(e){var t=e.toUpperCase();return P.indexOf(t)>-1?t:e}function b(e,t){t=t||{};var a=t.body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new i(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new i(t.headers)),this.method=h(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var a=e.split("="),r=a.shift().replace(/\+/g," "),n=a.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(n))}}),t}function v(e){var t=new i;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var a=e.split(":"),r=a.shift().trim();if(r){var n=a.join(":").trim();t.append(r,n)}}),t}function g(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new i(t.headers),this.url=t.url||"",this._initBody(e)}function E(e,t){return new Promise(function(a,r){function n(){l.abort()}var o=new b(e,t);if(o.signal&&o.signal.aborted)return r(new k("Aborted","AbortError"));var l=new XMLHttpRequest;l.onload=function(){var e={status:l.status,statusText:l.statusText,headers:v(l.getAllResponseHeaders()||"")};e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var t="response"in l?l.response:l.responseText;a(new g(t,e))},l.onerror=function(){r(new TypeError("Network request failed"))},l.ontimeout=function(){r(new TypeError("Network request failed"))},l.onabort=function(){r(new k("Aborted","AbortError"))},l.open(o.method,o.url,!0),"include"===o.credentials?l.withCredentials=!0:"omit"===o.credentials&&(l.withCredentials=!1),"responseType"in l&&_.blob&&(l.responseType="blob"),o.headers.forEach(function(e,t){l.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",n),l.onreadystatechange=function(){4===l.readyState&&o.signal.removeEventListener("abort",n)}),l.send(void 0===o._bodyInit?null:o._bodyInit)})}Object.defineProperty(t,"__esModule",{value:!0}),t.Headers=i,t.Request=b,t.Response=g,a.d(t,"DOMException",function(){return k}),t.fetch=E;var _={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(_.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],O=ArrayBuffer.isView||function(e){return e&&w.indexOf(Object.prototype.toString.call(e))>-1};i.prototype.append=function(e,t){e=n(e),t=o(t);var a=this.map[e];this.map[e]=a?a+", "+t:t},i.prototype.delete=function(e){delete this.map[n(e)]},i.prototype.get=function(e){return e=n(e),this.has(e)?this.map[e]:null},i.prototype.has=function(e){return this.map.hasOwnProperty(n(e))},i.prototype.set=function(e,t){this.map[n(e)]=o(t)},i.prototype.forEach=function(e,t){for(var a in this.map)this.map.hasOwnProperty(a)&&e.call(t,this.map[a],a,this)},i.prototype.keys=function(){var e=[];return this.forEach(function(t,a){e.push(a)}),l(e)},i.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},i.prototype.entries=function(){var e=[];return this.forEach(function(t,a){e.push([a,t])}),l(e)},_.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var P=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},m.call(b.prototype),m.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var j=[301,302,303,307,308];g.redirect=function(e,t){if(-1===j.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})};var k=self.DOMException;try{new k}catch(e){k=function(e,t){this.message=e,this.name=t;var a=Error(e);this.stack=a.stack},k.prototype=Object.create(Error.prototype),k.prototype.constructor=k}E.polyfill=!0,self.fetch||(self.fetch=E,self.Headers=i,self.Request=b,self.Response=g)},function(e,t){function a(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=a},function(e,t){function a(e){return null!=e&&"object"==typeof e}e.exports=a},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(7),d=r(f),m=a(13),h=r(m),b=a(494),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=_.isUndefined(this.props.state.options)?[]:this.props.state.options,t=e.length>0?"sui-tab-boxed":"",a=c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose whether to allow this field to be used in calculations or not. The value used in calculations is the same as the input value of this field."));return this.props.description&&(a=c.default.createElement("span",{className:"sui-description"},this.props.description)),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Calculations")),a,e.length>0&&c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"calculations",description:"",default:"false",noWrapper:!0}),c.default.createElement(y.default,i({},this.props,{value:"true",boxClass:t,label:(0,p.translate)("Enable")})),c.default.createElement(h.default,{value:"false",label:(0,p.translate)("Disable")})),0===e.length&&c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"calculations",default:"false",noWrapper:!0}),c.default.createElement(h.default,i({},this.props,{value:"true",label:(0,p.translate)("Enable")})),c.default.createElement(h.default,{value:"false",label:(0,p.translate)("Disable")}))))}}]),t}(u.Component);t.default=v},,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateFields=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_FIELDS",wrappers:e})}},t.updateField=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_FIELD",wrapper:e})}},t.updateFieldSettings=function(e,t){return function(a){window.forminatorChanges.fields.push(t),window.forminatorChanges.settings=!0,a({type:"UPDATE_FIELD",wrapper:e})}}},function(e,t,a){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(409),o=a(410),l=a(411),i=a(412),s=a(413);r.prototype.clear=n,r.prototype.delete=o,r.prototype.get=l,r.prototype.has=i,r.prototype.set=s,e.exports=r},function(e,t,a){function r(e,t){for(var a=e.length;a--;)if(n(e[a][0],t))return a;return-1}var n=a(358);e.exports=r},function(e,t,a){function r(e){return null==e?void 0===e?s:i:u&&u in Object(e)?o(e):l(e)}var n=a(227),o=a(420),l=a(421),i="[object Null]",s="[object Undefined]",u=n?n.toStringTag:void 0;e.exports=r},function(e,t,a){var r=a(181),n=r(Object,"create");e.exports=n},function(e,t,a){function r(e,t){var a=e.__data__;return n(t)?a["string"==typeof t?"string":"hash"]:a.map}var n=a(434);e.exports=r},function(e,t,a){function r(e,t,a,r){var l=!a;a||(a={});for(var i=-1,s=t.length;++i<s;){var u=t[i],c=r?r(a[u],e[u],u,a,e):void 0;void 0===c&&(c=e[u]),l?o(a,u,c):n(a,u,c)}return a}var n=a(362),o=a(363);e.exports=r},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(11),d=r(f),m=a(5),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={open:!1},a.updateValue=a.updateValue.bind(a),a.toggleState=a.toggleState.bind(a),a}return o(t,e),l(t,[{key:"toggleState",value:function(){this.setState({open:!this.state.open})}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=this.props.label,a="",r=this.state.open,n=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property];n||(a="sui-accordion-item--disabled"),n&&r&&(a="sui-accordion-item--open");var o=s.default.Children.map(this.props.children,function(e){return e}),l=r&&o;return this.props.noBoxBody||(l=s.default.createElement("div",{className:"sui-box"},s.default.createElement("div",{className:"sui-box-body"},r&&o))),s.default.createElement("div",{className:"sui-accordion-item "+a},s.default.createElement("div",{className:"sui-accordion-item-header",onClick:function(){return e.toggleState()}},s.default.createElement("div",{className:"sui-accordion-item-title"},s.default.createElement("label",{htmlFor:"forminator-"+this.props.property,className:"sui-toggle"},s.default.createElement("input",{type:"checkbox",id:"forminator-"+this.props.property,onChange:function(t){e.updateValue(t.target.checked)},checked:n?"checked":""}),s.default.createElement("span",{className:"sui-toggle-slider"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Enable")," ",t)),s.default.createElement("span",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"},l))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){return c(u.default,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=a(9),l=a(130),i=r(l),s=a(216),u=r(s),c=(0,o.compose)((0,o.applyMiddleware)(i.default))(o.createStore)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(9),o=a(217),l=r(o),i=a(218),s=r(i),u=a(219),c=r(u),p=a(220),f=r(p),d=a(221),m=r(d),h=a(222),b=r(h),y=(0,n.combineReducers)({wrappers:l.default,settings:s.default,modal:c.default,integrationConditions:f.default,behaviorArray:m.default,notifications:b.default});t.default=y},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(e,t){var a=t.wrapper,r=e.findIndex(function(e){return e.wrapper_id===a.wrapper_id});return e=(0,l.replaceInPosition)(e,r,a)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_FIELDS":return t.wrappers;case"UPDATE_FIELD":return n([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var l=a(1)},function(e,t,a){"use strict";function r(e,t){var a=t.setting,r=t.value;return e[a]=r,e}function n(e,t){var a=t.settings;return s({},e,a)}function o(e,t){var a=t.settings;return s({},a)}function l(e,t){var a=t.title;return e.formName=a,e}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],a=Object.assign({},e);switch(t.type){case"UPDATE_SETTINGS":return n(a,t);case"RESET_SETTINGS":return o(a,t);case"UPDATE_SETTING":return r(a,t);case"UPDATE_TITLE":return l(a,t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e};t.default=i},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={modalType:null,modalProps:{}};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case"SHOW_MODAL":return{modalProps:t.modalProps,modalType:t.modalType,type:t.type};case"HIDE_MODAL":return r;default:return e}}},function(e,t,a){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_INTEGRATION_CONDITIONS":return t.conditions;default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;a(1)},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(e,t){var a=t.behavior,r=e.findIndex(function(e){return e.slug===a.slug});return e=(0,l.replaceInPosition)(e,r,a)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_BEHAVIORS":return t.behaviors;case"UPDATE_BEHAVIOR":return n([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var l=a(1)},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(e,t){var a=t.notification,r=e.findIndex(function(e){return e.slug===a.slug});return e=(0,l.replaceInPosition)(e,r,a)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_NOTIFICATIONS":return t.notifications;case"UPDATE_NOTIFICATION":return n([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var l=a(1)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateIntegrationConditions=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_INTEGRATION_CONDITIONS",conditions:e})}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateBehaviorArray=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_BEHAVIORS",behaviors:e})}},t.updateBehavior=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_BEHAVIOR",behavior:e})}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateNotifications=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_NOTIFICATIONS",notifications:e})}},t.updateNotification=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_NOTIFICATION",notification:e})}}},function(e,t,a){var r=a(181),n=a(83),o=r(n,"Map");e.exports=o},function(e,t,a){var r=a(83),n=r.Symbol;e.exports=n},function(e,t,a){function r(e){return l(e)?n(e):o(e)}var n=a(364),o=a(448),l=a(368);e.exports=r},function(e,t){var a=Array.isArray;e.exports=a},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){function a(e){return function(t){return e(t)}}e.exports=a},function(e,t,a){(function(e){var r=a(360),n="object"==typeof t&&t&&!t.nodeType&&t,o=n&&"object"==typeof e&&e&&!e.nodeType&&e,l=o&&o.exports===n,i=l&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}).call(t,a(230)(e))},function(e,t){function a(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=a},function(e,t,a){var r=a(456),n=a(370),o=Object.prototype,l=o.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),function(t){return l.call(e,t)}))}:n;e.exports=s},function(e,t,a){var r=a(460),n=a(226),o=a(461),l=a(462),i=a(463),s=a(209),u=a(361),c=u(r),p=u(n),f=u(o),d=u(l),m=u(i),h=s;(r&&"[object DataView]"!=h(new r(new ArrayBuffer(1)))||n&&"[object Map]"!=h(new n)||o&&"[object Promise]"!=h(o.resolve())||l&&"[object Set]"!=h(new l)||i&&"[object WeakMap]"!=h(new i))&&(h=function(e){var t=s(e),a="[object Object]"==t?e.constructor:void 0,r=a?u(a):"";if(r)switch(r){case c:return"[object DataView]";case p:return"[object Map]";case f:return"[object Promise]";case d:return"[object Set]";case m:return"[object WeakMap]"}return t}),e.exports=h},function(e,t,a){function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}var n=a(466);e.exports=r},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=_.isUndefined(a.props.prefix)?"":a.props.prefix+"_";return a.validProp=o+"validation",a.validTextProp=o+"validation_message",a}return o(t,e),l(t,[{key:"toggleValue",value:function(e){this.props.updateProperty(this.validProp,e)}},{key:"render",value:function(){var e=this,t=!_.isUndefined(this.props.state[this.validProp])&&this.props.state[this.validProp],a=_.isUndefined(this.props.state[this.validTextProp])?"":this.props.state[this.validTextProp];return s.default.createElement("div",{className:"sui-box-settings-row"},s.default.createElement("div",{className:"sui-box-settings-col-2"},s.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,u.translate)("Validate")),s.default.createElement("span",{className:"sui-description"},(0,u.translate)("Make sure the user has filled out this field correctly and warn them when they haven't.")),s.default.createElement("div",{className:"sui-side-tabs",style:{marginTop:"10px"}},s.default.createElement("div",{className:"sui-tabs-menu"},s.default.createElement("div",{className:"sui-tab-item"+(t?"":" active"),onClick:this.toggleValue.bind(this,!1)},(0,u.translate)("None")),s.default.createElement("div",{className:"sui-tab-item"+(t?" active":""),onClick:this.toggleValue.bind(this,!0)},(0,u.translate)("Validate Field"))),s.default.createElement("div",{className:"sui-tabs-content"},s.default.createElement("div",{className:"sui-tab-content sui-tab-boxed"+(t?" active":"")},s.default.createElement("div",{className:"sui-form-field"},s.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,u.translate)("Validation message")),s.default.createElement("input",{type:"text",id:"forminator-field-name-error-msg",className:"sui-form-control",placeholder:(0,u.translate)("Enter validation message"),value:a,onChange:function(t){e.props.updateProperty(e.validTextProp,t.target.value)}})))))))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.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(11),m=r(d),h=a(5),b=r(h),y=a(492),v=r(y),g=a(46),E=r(g),w=a(25),O=r(w),P=a(493),j=r(P),k=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.addOption=a.addOption.bind(a),a.removeOption=a.removeOption.bind(a),a.updateLabel=a.updateLabel.bind(a),a.updateValue=a.updateValue.bind(a),a.updateLimit=a.updateLimit.bind(a),a.updateDefault=a.updateDefault.bind(a),a.updateImage=a.updateImage.bind(a),a.updateBulkValue=a.updateBulkValue.bind(a);var r=!_.isUndefined(a.props.state.bulk_edit)&&a.props.state.bulk_edit;return a.state={options:_.isUndefined(a.props.state.options)?[]:[].concat(n(a.props.state.options)),options_bulk_editor:_.isUndefined(a.props.state.options_bulk_editor)?"":a.props.state.options_bulk_editor,options_calcs:a.props.state.calculations?[].concat(n(a.props.state.options)):[],csv_file:null,is_loading:!r,show_standard:!1},a}return i(t,e),u(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.state.limit_status;this.runEditorFunctions(),this.props.state.bulk_edit||0!==this.state.options_bulk_editor.length&&"enable"!==t?this.props.state.bulk_edit&&"enable"===t&&!this.props.state.calculations&&this.convertToStandard():this.convertToBulk(),this.state.is_loading&&setTimeout(function(){e.setState({is_loading:!1,show_standard:!0}),e.addOptionClassToggle()},400)}},{key:"getSnapshotBeforeUpdate",value:function(e,t){var a=this,r=this.state.options,n=this.props.state.bulk_edit,o=this.state.is_loading,l=void 0,i=void 0;if(n||!e.state.bulk_edit||o||this.setState({is_loading:!0}),!n&&o){var s=r.length<50?400:700;clearTimeout(i),i=setTimeout(function(){a.setState({is_loading:!1,show_standard:!0})},s)}return clearTimeout(l),n&&this.props.state.options_bulk_editor!==e.state.options_bulk_editor?l=setTimeout(function(){a.convertToStandard()},500):n||this.props.state.options===e.state.options||(l=setTimeout(function(){a.convertToBulk()},500)),null}},{key:"componentDidUpdate",value:function(e,t){this.props.state.bulk_edit===e.state.bulk_edit&&(this.state.is_loading||this.props.state.bulk_edit)||(this.runEditorFunctions(),this.addOptionClassToggle()),this.state.options_bulk_editor===t.options_bulk_editor&&this.props.state.options_expanded===e.state.options_expanded||this.addOptionClassToggle()}},{key:"runEditorFunctions",value:function(){var e=this,t=this.props.state.bulk_edit,a=this.state.is_loading;if(this.$el=jQuery(this.el),this.$importError=this.$el.find(".importer-error"),!t&&!a){this.moveOption=this.moveOption.bind(this);var r=!0;this.$el.find(".fui-multi-options").sortable({helper:"clone",start:function(t,a){r&&(e.$el.find(".fui-multi-options").sortable("refreshPositions"),r=!1)},stop:function(t,a){var r=a.item.index();e.$el.find(".fui-multi-options").sortable("cancel");var n=a.item.index();e.moveOption(n,r)}})}if(t){e.setState({show_standard:!1}),window.File&&window.FileReader&&window.FileList&&window.Blob||this.showError((0,f.translate)("The File APIs are not fully supported in this browser. You may copy and paste your options on the text area above or switch to a modern browser to use the importer."));var n=this.$el.find(".upload-csv-btn"),o=this.$el.find(".import-csv-btn"),l=this.$el.find(".uploaded-csv-file"),i=l.find(".remove-file"),s=this.$el.find("#upload-csv-input");this.$el.find(".upload-csv-btn, .uploaded-csv-file > span").on("click",function(){s.trigger("click"),e.hideError()}),i.on("click",function(){s.val("").trigger("change")}),s.on("change",function(){var t=s.val();if(t.length>0){e.setState({csv_file:s.get(0).files[0]});"csv"!==t.slice(2+(t.lastIndexOf(".")-1>>>0))?(i.trigger("click"),e.showError((0,f.translate)("Whoops, only .csv filetype is allowed."))):(o.prop("disabled",!1),n.hide(),l.show(),l.find("> span").html(t.replace(/^.*[\\\/]/,"")),0!==e.props.state.options_bulk_editor.length&&e.showError((0,f.translate)("Importing this will replace your current options. Click import to continue."),"warning"))}else o.prop("disabled",!0),n.show(),l.hide(),l.find("> span").html(""),e.hideError()}),o.on("click",function(){e.importCsv()})}}},{key:"importCsv",value:function(){if(window.File&&window.FileReader&&window.FileList&&window.Blob){var e=this,t=this.$el.find("#upload-csv-input"),a=this.state.csv_file;if(t.get(0).files){var r=a,n=new FileReader;this.setState({options_bulk_editor:""}),n.onload=function(){var t=n.result;-1!==t.indexOf("Option label; Option value")&&(t=t.substring(t.indexOf("\n")+1)),e.props.updateProperty("options_bulk_editor",t),e.setState({options_bulk_editor:t}),e.convertToStandard()},n.readAsText(r),this.setState({csv_file:null}),t.trigger("change")}else e.showError((0,f.translate)("This browser doesn't seem to support the `files` property of file inputs."))}}},{key:"showError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";"error"!==t?this.$importError.removeClass("sui-notice-error").addClass("sui-notice-"+t):this.$importError.removeClass().addClass("importer-error sui-notice sui-notice-error"),this.$importError.find("p").text(e),this.$importError.addClass("sui-active"),this.$importError.show()}},{key:"hideError",value:function(){this.$importError.find("p").text(""),this.$importError.removeClass("sui-active"),this.$importError.hide()}},{key:"componentWillUnmount",value:function(){jQuery("#forminator-modal").off("scroll"),this.$el.off().removeData()}},{key:"updateState",value:function(e){this.setState({options:e}),this.props.updateProperty("options",e),this.convertToBulk()}},{key:"updateLabel",value:function(e,t){var a=this.state.options;a[e].label=t,this.updateState(a)}},{key:"updateLimit",value:function(e,t){var a=this.state.options;a[e].limit=t,this.updateState(a)}},{key:"updateValue",value:function(e,t){var a=this.state.options;a[e].value=t,this.updateState(a)}},{key:"moveOption",value:function(e,t){var a=this.state.options;a.splice(t,0,a.splice(e,1)[0]),this.updateState(a)}},{key:"updateDefault",value:function(e,t){var a=this.state.options;this.props.isRadio&&"true"===this.props.isRadio&&_.map(a,function(e,t){a[t].default=!1}),a[e].default=t,this.updateState(a)}},{key:"removeOption",value:function(e){var t=this.state.options;t.splice(e,1),this.updateState(t)}},{key:"updateImage",value:function(e,t,a){var r=this.state.options;"image"===a&&(r[e].image=t),"image"!==a&&(r[e].image_filename=t),this.updateState(r)}},{key:"addOption",value:function(){var e=this.state.options,t=(0,f.randNumber)()+"-"+(0,f.randNumber)();e.push({label:"",value:"",limit:"",default:!1,key:t}),this.updateState(e),this.scrollToNewOpt()}},{key:"scrollToNewOpt",value:function(){var e=jQuery(".standard-editor"),t=void 0;clearTimeout(t),t=setTimeout(function(){e.animate({scrollTop:e.prop("scrollHeight")},300)},200)}},{key:"addOptionClassToggle",value:function(){var e=void 0;clearTimeout(e),e=setTimeout(function(){var e=jQuery(".standard-editor").next(".fui-multi-options");jQuery(".standard-editor").outerHeight()>460?e.addClass("add-option-box"):e.removeClass("add-option-box")},50)}},{key:"generateUniqId",value:function(){return(0,f.randNumber)()+"-"+(0,f.randNumber)()}},{key:"updateBulkValue",value:function(){var e=this.state.options_bulk_editor;return this.setState({options_bulk_editor:e}),e}},{key:"convertToBulk",value:function(){var e=this.state.options,t=this.props.state.type,a=this.props.state.value_type,r="",n=!1;_.map(e,function(e,o){o>0&&(r+="\n");var l=e.label,i=e.value;r+=l,r+=";",_.isUndefined(i)?_.isUndefined(l)?r+="":r+=l:r+=i,_.isUndefined(e.default)||!e.default||("radio"===t||"select"===t&&"single"===a)&&n?(r+="; ",r+="0"):e.default&&(r+="; ",r+="1",n=!0),"select"===t?_.isUndefined(e.limit)||_.isEmpty(e.limit)||(r+="; ",r+=e.limit):_.isUndefined(e.image)||_.isEmpty(e.image)||(r+="; ",r+=e.image)}),this.setState({options_bulk_editor:r}),this.props.updateProperty("options_bulk_editor",r)}},{key:"convertToStandard",value:function(){var e=this,t=this.props.state.type,a=this.props.state.value_type,r=[],n=this.props.state.options_bulk_editor;if(!_.isUndefined(n)&&n.length>0){var o=0,l=!1;n=n.split(/\r\n|\r|\n/),_.map(n,function(n,i){if(Boolean(n)){var s=n.split(";"),u=!_.isUndefined(s[2])&&1==s[2],c=_.isEmpty(s[0])?(0,f.translate)("Option ")+(o+1):s[0],p=_.isUndefined(s[1])?"":s[1];if(p=_.isEmpty(p)?c:p,r[o]={key:e.generateUniqId(),label:c,value:p},r[o].default=("radio"!==t&&("select"!==t||"single"!==a)||!l)&&u,u&&(l=!0),_.isEmpty(s[3])||("select"===t?"enable"===e.props.state.limit_status&&(r[o].limit=s[3]):(r[o].image=s[3],r[o].image_filename=s[3].replace(/^.*[\\\/]/,""))),e.props.state.calculations){var d=_.find(e.state.options_calcs,function(e){return e.label===c});r[o].calculation=_.isUndefined(d)?"":d.calculation}o++}})}this.setState({options:r}),this.props.updateProperty("options",r)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.state.options_expanded)||!this.props.state.options_expanded?(0,f.translate)("Expand All"):(0,f.translate)("Collapse All"),a=!_.isUndefined(this.props.state.bulk_edit)&&this.props.state.bulk_edit,r=this.props.state.type,n="select"!==r?"checkbox_radio_bulk_template.csv":"select_bulk_template.csv",o=this.state.options,l=this.state.options_bulk_editor,i=this.state.is_loading,u=this.state.show_standard,c=o.length>1e3,d=0===o.length?"no-option":"";switch(r){case"select":(0,f.translate)("Select");break;case"radio":(0,f.translate)("Radio");break;case"checkbox":(0,f.translate)("Checkbox")}var h=(0,f.translate)("Label; value; selection (0 or 1); image-url");"select"===r&&(h="enable"===this.props.state.limit_status?(0,f.translate)("Label; value; selection (0 or 1); submission limit"):(0,f.translate)("Label; value; selection (0 or 1)"));var y=jQuery("#shared-ui-js");return y.length>0?(y=y.prop("src").split("js/shared-ui.min.js"),y=y[0]+"csv/",y+=n):y=!1,p.default.createElement("div",{id:"demo-multi-options--radio",className:"sui-form-field multi-options-bulk",ref:function(t){return e.el=t}},c&&a&&p.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-yellow sui-active",style:{display:"block"},"aria-live":"assertive"},p.default.createElement("div",{className:"sui-notice-content"},p.default.createElement("div",{className:"sui-notice-message"},p.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),p.default.createElement("p",null,(0,f.translate)("Warning! You've added more than 1000 options. Switching back to the standard (non-bulk) editor could make your browser slow or unresponsive. Proceed with caution."))))),p.default.createElement(m.default,null,p.default.createElement(b.default,{cols:"3"},p.default.createElement("label",{id:"label-options",className:"sui-label"},(0,f.translate)("Options"))),p.default.createElement(b.default,{cols:"9"},p.default.createElement("div",{className:"switch-box"},!a&&p.default.createElement(E.default,s({},this.props,{settings:this.props.state,label:t,property:"options_expanded",itemClass:"sui-checkbox sui-checkbox-sm collapse-options"})),"select"!==r&&p.default.createElement(E.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Enable Images"),property:"enable_images",itemClass:"sui-checkbox-sm "})),p.default.createElement("span",{className:"bulk-edit-toggle "},p.default.createElement(O.default,s({},this.props,{settings:this.props.state,property:"bulk_edit",label:(0,f.translate)("Bulk Edit"),unWrap:!0})))))),i&&p.default.createElement("div",{className:"multi-opts-preloader"},p.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}," ",(0,f.translate)("Loading"),"...")),!a&&u&&p.default.createElement("div",{className:"sui-accordion sui-accordion-block"},p.default.createElement("div",{className:"fui-multi-options standard-editor "+d},_.map(o,function(t,a){return p.default.createElement(v.default,s({key:a,counter:a,option:t,removeOption:e.removeOption,updateValue:e.updateValue,updateLabel:e.updateLabel,updateLimit:e.updateLimit,updateDefault:e.updateDefault,updateImage:e.updateImage},e.props))})),p.default.createElement("div",{className:"fui-multi-options"},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")))),a&&p.default.createElement("div",{className:"fui-multi-options"},p.default.createElement("div",{className:"sui-box sui-message sui-message-lg fui-multi-options-bulk"},p.default.createElement(j.default,s({},this.props,{settings:this.props.state,property:"options_bulk_editor",defaultValue:l,value:l,updateValue:this.updateBulkValue,label:(0,f.translate)("Enter field options (one per line)"),description:(0,f.translate)('Type or paste options above (one per line and separated by semicolons) or click \n {{b}}"+ Predefined options"{{/b}} link to select an option. Example: {{b}}'+h+"{{/b}}",{components:{b:p.default.createElement("b",null)}})})),p.default.createElement("div",{className:"sui-form-field bulk-importer"},p.default.createElement("label",{className:"sui-label"},(0,f.translate)("Import options from CSV")),p.default.createElement("div",{className:"sui-upload"},p.default.createElement("input",{id:"upload-csv-input",type:"file",value:"",readOnly:"readonly",accept:".csv"}),p.default.createElement("button",{className:"sui-upload-button upload-csv-btn"},p.default.createElement("span",{className:"sui-icon-upload-cloud","aria-hidden":"true"}),(0,f.translate)("Upload file")),p.default.createElement("div",{className:"sui-upload-file uploaded-csv-file"},p.default.createElement("span",null),p.default.createElement("button",{className:"remove-file","aria-label":"Remove file"},p.default.createElement("span",{className:"sui-icon-close","aria-hidden":"true"}))),p.default.createElement("button",{role:"button",className:"sui-button sui-button-blue import-csv-btn",disabled:!0},p.default.createElement("span",{className:"sui-icon-download-cloud","aria-hidden":"true"}),(0,f.translate)("Import"))),p.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-error","aria-live":"assertive"},p.default.createElement("div",{className:"sui-notice-content"},p.default.createElement("div",{className:"sui-notice-message"},p.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),p.default.createElement("p",null)))),p.default.createElement("span",{className:"sui-description"},(0,f.translate)("Choose a CSV (.csv) file to import field options and values.")+" ",y&&p.default.createElement("a",{className:"blue",href:y,target:"_blank",download:n},(0,f.translate)("Download csv template")))))))}}]),t}(c.Component);t.default=k},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=(a(21),a(1)),f=a(240),d=r(f),m=a(241),h=r(m),b=a(242),y=r(b),v=a(243),g=r(v),E=a(244),_=(r(E),a(245)),w=r(_),O=a(7),P=r(O),j=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Design Style")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose a pre-made style for your form and further customize it's appearance below."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(P.default,i({},this.props,{property:"form-style",default:"default"}),c.default.createElement(d.default,{value:"default",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Default")),c.default.createElement(h.default,{value:"flat",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Flat")),c.default.createElement(y.default,{value:"bold",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Bold")),c.default.createElement(g