Formidable Forms – Form Builder for WordPress - Version 2.03.10

Version Description

  • New: Add invisible recaptcha to your WordPress forms
  • New: Add frm_form_div_attributes action hook
  • Enhancement: Replace is_super_admin calls per WordPress recommendations
  • Enhancement: Add duplicated field right below original instead of at the end of the form for easier drag and drop form building with long forms
  • Fix: When importing entries, save the IP from the imported CSV rather than the IP of the person running the import
  • Fix: Fix duplicate frm_verify ID HTML vaildation error in forms
  • Fix: Fix squished customization panel showing up when clicking into some field settings
  • Fix: Run frm_validate_entry when there are errors
  • Pro Version Forms
  • New: Add format option to Text Lookup fields
  • Enhancement: Make file upload errors translatable
  • Enhancement: Pull translations based on the user locale in the WordPress profile
  • Enhancement: Allow show=city in frm-field-value shortcode
  • Fix: Immediate update dropdown appearance on the form builder page when multi-select dropdown setting is changed
  • Fix: Dont run JavaScript form validation on page load
  • Fix: Dont force form placeholders in combo fields
  • Fix: Attach files from repeating sections to form emails when the option is checked
  • Fix: Update rewrite endpoints when the view parameter changes to prevent 404s
  • Fix: Assume equals=1 when is_draft shortcode is missing the equals parameter
  • Fix: Import form data correctly into Lookup Checkbox fields
Download this release

Release Info

Developer sswells
Plugin Icon 128x128 Formidable Forms – Form Builder for WordPress
Version 2.03.10
Comparing to
See all releases

Code changes from version 2.03.09 to 2.03.10

classes/controllers/FrmAddonsController.php CHANGED
@@ -28,9 +28,28 @@ class FrmAddonsController {
28
  return;
29
  }
30
 
 
 
31
  include( FrmAppHelper::plugin_path() . '/classes/views/addons/settings.php' );
32
  }
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  private static function get_api_addons() {
35
  $addons = array(
36
  'formidable-pro' => array(
@@ -180,10 +199,17 @@ class FrmAddonsController {
180
  }
181
 
182
  public static function get_licenses() {
183
- FrmAppHelper::permission_check('frm_change_settings');
 
 
184
  check_ajax_referer( 'frm_ajax', 'nonce' );
185
 
186
- $license = get_option('frmpro-credentials');
 
 
 
 
 
187
  if ( $license && is_array( $license ) && isset( $license['license'] ) ) {
188
  $url = 'https://formidableforms.com/frm-edd-api/licenses?l=' . urlencode( base64_encode( $license['license'] ) );
189
  $licenses = self::send_api_request( $url, array( 'name' => 'frm_api_licence', 'expires' => 60 * 60 * 5 ) );
28
  return;
29
  }
30
 
31
+ $allow_autofill = self::allow_autofill();
32
+
33
  include( FrmAppHelper::plugin_path() . '/classes/views/addons/settings.php' );
34
  }
35
 
36
+ /**
37
+ * Don't allow subsite addon licenses to be fetched
38
+ * unless the current user has super admin permissions
39
+ *
40
+ * @since 2.03.10
41
+ */
42
+ private static function allow_autofill() {
43
+ $allow_autofill = FrmAppHelper::pro_is_installed();
44
+ if ( $allow_autofill && is_multisite() ) {
45
+ $sitewide_activated = get_site_option( 'frmpro-wpmu-sitewide' );
46
+ if ( $sitewide_activated ) {
47
+ $allow_autofill = current_user_can( 'setup_network' );
48
+ }
49
+ }
50
+ return $allow_autofill;
51
+ }
52
+
53
  private static function get_api_addons() {
54
  $addons = array(
55
  'formidable-pro' => array(
199
  }
200
 
201
  public static function get_licenses() {
202
+ $allow_autofill = self::allow_autofill();
203
+ $required_role = $allow_autofill ? 'setup_network' : 'frm_change_settings';
204
+ FrmAppHelper::permission_check( $required_role );
205
  check_ajax_referer( 'frm_ajax', 'nonce' );
206
 
207
+ if ( is_multisite() && get_site_option( 'frmpro-wpmu-sitewide' ) ) {
208
+ $license = get_site_option( 'frmpro-credentials' );
209
+ } else {
210
+ $license = get_option( 'frmpro-credentials' );
211
+ }
212
+
213
  if ( $license && is_array( $license ) && isset( $license['license'] ) ) {
214
  $url = 'https://formidableforms.com/frm-edd-api/licenses?l=' . urlencode( base64_encode( $license['license'] ) );
215
  $licenses = self::send_api_request( $url, array( 'name' => 'frm_api_licence', 'expires' => 60 * 60 * 5 ) );
classes/controllers/FrmFieldsController.php CHANGED
@@ -164,13 +164,8 @@ class FrmFieldsController {
164
  do_action( 'frm_duplicate_field_' . $copy_field->type, $copy_field, $form_id );
165
 
166
  $values = array();
167
- FrmFieldsHelper::fill_field( $values, $copy_field, $form_id );
168
-
169
- $field_count = FrmDb::get_count( $wpdb->prefix . 'frm_fields fi LEFT JOIN ' . $wpdb->prefix . 'frm_forms fr ON (fi.form_id = fr.id)', array( 'or' => 1, 'fr.id' => $form_id, 'fr.parent_form_id' => $form_id ) );
170
-
171
- $values['field_order'] = $field_count + 1;
172
-
173
- $values = apply_filters( 'frm_prepare_single_field_for_duplication', $values );
174
 
175
  $field_id = FrmField::create( $values );
176
  if ( ! $field_id ) {
164
  do_action( 'frm_duplicate_field_' . $copy_field->type, $copy_field, $form_id );
165
 
166
  $values = array();
167
+ FrmFieldsHelper::fill_field( $values, $copy_field, $form_id );
168
+ $values = apply_filters( 'frm_prepare_single_field_for_duplication', $values );
 
 
 
 
 
169
 
170
  $field_id = FrmField::create( $values );
171
  if ( ! $field_id ) {
classes/helpers/FrmAppHelper.php CHANGED
@@ -4,13 +4,13 @@ if ( ! defined('ABSPATH') ) {
4
  }
5
 
6
  class FrmAppHelper {
7
- public static $db_version = 43; //version of the database we are moving to
8
  public static $pro_db_version = 37; //deprecated
9
 
10
  /**
11
  * @since 2.0
12
  */
13
- public static $plug_version = '2.03.09';
14
 
15
  /**
16
  * @since 1.07.02
@@ -1744,6 +1744,8 @@ class FrmAppHelper {
1744
  'nonce' => wp_create_nonce( 'frm_ajax' ),
1745
  'id' => __( 'ID', 'formidable' ),
1746
  'no_results' => __( 'No results match', 'formidable' ),
 
 
1747
  ) );
1748
 
1749
  if ( $location == 'admin' ) {
4
  }
5
 
6
  class FrmAppHelper {
7
+ public static $db_version = 44; //version of the database we are moving to
8
  public static $pro_db_version = 37; //deprecated
9
 
10
  /**
11
  * @since 2.0
12
  */
13
+ public static $plug_version = '2.03.10';
14
 
15
  /**
16
  * @since 1.07.02
1744
  'nonce' => wp_create_nonce( 'frm_ajax' ),
1745
  'id' => __( 'ID', 'formidable' ),
1746
  'no_results' => __( 'No results match', 'formidable' ),
1747
+ 'file_spam' => __( 'That file looks like Spam.', 'formidable' ),
1748
+ 'empty_fields' => __( 'Please complete the preceding required fields before uploading a file.', 'formidable' ),
1749
  ) );
1750
 
1751
  if ( $location == 'admin' ) {
classes/helpers/FrmFieldsHelper.php CHANGED
@@ -51,6 +51,7 @@ class FrmFieldsHelper {
51
  } else if ( $type == 'captcha' ) {
52
  $frm_settings = FrmAppHelper::get_settings();
53
  $values['invalid'] = $frm_settings->re_msg;
 
54
  } else if ( 'url' == $type ) {
55
  $values['name'] = __( 'Website', 'formidable' );
56
  }
@@ -491,11 +492,16 @@ DEFAULT_HTML;
491
  wp_register_script( 'recaptcha-api', $api_js_url, '', true );
492
  wp_enqueue_script( 'recaptcha-api' );
493
 
494
- // for reverse compatability
495
  $field['captcha_size'] = ( $field['captcha_size'] == 'default' ) ? 'normal' : $field['captcha_size'];
 
496
 
497
  ?>
498
- <div id="field_<?php echo esc_attr( $field['field_key'] ) ?>" class="<?php echo esc_attr( $class_prefix ) ?>g-recaptcha" data-sitekey="<?php echo esc_attr( $frm_settings->pubkey ) ?>" data-size="<?php echo esc_attr( $field['captcha_size'] ) ?>" data-theme="<?php echo esc_attr( $field['captcha_theme'] ) ?>"></div>
 
 
 
 
499
  <?php
500
  }
501
 
@@ -840,7 +846,11 @@ DEFAULT_HTML;
840
  }
841
  unset( $autop );
842
  } else if ( is_array( $replace_with ) ) {
843
- $replace_with = implode( $sep, $replace_with );
 
 
 
 
844
  }
845
 
846
  return $replace_with;
51
  } else if ( $type == 'captcha' ) {
52
  $frm_settings = FrmAppHelper::get_settings();
53
  $values['invalid'] = $frm_settings->re_msg;
54
+ $values['field_options']['label'] = 'none';
55
  } else if ( 'url' == $type ) {
56
  $values['name'] = __( 'Website', 'formidable' );
57
  }
492
  wp_register_script( 'recaptcha-api', $api_js_url, '', true );
493
  wp_enqueue_script( 'recaptcha-api' );
494
 
495
+ // for reverse compatibility
496
  $field['captcha_size'] = ( $field['captcha_size'] == 'default' ) ? 'normal' : $field['captcha_size'];
497
+ $field['captcha_size'] = ( $frm_settings->re_type == 'invisible' ) ? 'invisible' : $field['captcha_size'];
498
 
499
  ?>
500
+ <div id="field_<?php echo esc_attr( $field['field_key'] ) ?>" class="<?php echo esc_attr( $class_prefix ) ?>g-recaptcha" data-sitekey="<?php echo esc_attr( $frm_settings->pubkey ) ?>" data-size="<?php echo esc_attr( $field['captcha_size'] ) ?>" data-theme="<?php echo esc_attr( $field['captcha_theme'] ) ?>" <?php
501
+ if ( $field['captcha_size'] == 'invisible' && ! $allow_mutiple ) {
502
+ echo 'data-callback="frmAfterRecaptcha"';
503
+ }
504
+ ?>></div>
505
  <?php
506
  }
507
 
846
  }
847
  unset( $autop );
848
  } else if ( is_array( $replace_with ) ) {
849
+ if ( $atts['show'] && isset( $replace_with[ $atts['show'] ] ) ) {
850
+ $replace_with = $replace_with[ $atts['show'] ];
851
+ } else {
852
+ $replace_with = implode( $sep, $replace_with );
853
+ }
854
  }
855
 
856
  return $replace_with;
classes/helpers/FrmXMLHelper.php CHANGED
@@ -309,7 +309,7 @@ class FrmXMLHelper {
309
 
310
  if ( is_array($f['default_value']) && in_array($f['type'], array(
311
  'text', 'email', 'url', 'textarea',
312
- 'number','phone', 'date', 'time',
313
  'hidden', 'password', 'tag', 'image',
314
  )) ) {
315
  if ( count($f['default_value']) === 1 ) {
309
 
310
  if ( is_array($f['default_value']) && in_array($f['type'], array(
311
  'text', 'email', 'url', 'textarea',
312
+ 'number','phone', 'date',
313
  'hidden', 'password', 'tag', 'image',
314
  )) ) {
315
  if ( count($f['default_value']) === 1 ) {
classes/models/FrmAddon.php CHANGED
@@ -91,10 +91,12 @@ class FrmAddon {
91
  delete_option( $this->option_name . 'active' );
92
  delete_option( $this->option_name . 'key' );
93
  delete_site_transient( $this->transient_key() );
 
94
  }
95
 
96
  public function set_active( $is_active ) {
97
  update_option( $this->option_name . 'active', $is_active );
 
98
  }
99
 
100
  public function show_license_message( $file, $plugin ) {
91
  delete_option( $this->option_name . 'active' );
92
  delete_option( $this->option_name . 'key' );
93
  delete_site_transient( $this->transient_key() );
94
+ delete_transient('frm_api_licence');
95
  }
96
 
97
  public function set_active( $is_active ) {
98
  update_option( $this->option_name . 'active', $is_active );
99
+ delete_transient('frm_api_licence');
100
  }
101
 
102
  public function show_license_message( $file, $plugin ) {
classes/models/FrmEntry.php CHANGED
@@ -543,11 +543,11 @@ class FrmEntry {
543
  $new_values = array(
544
  'item_key' => FrmAppHelper::get_unique_key( $values['item_key'], $wpdb->prefix . 'frm_items', 'item_key' ),
545
  'name' => FrmAppHelper::truncate( $item_name, 255, 1, '' ),
546
- 'ip' => FrmAppHelper::get_ip_address(),
547
  'is_draft' => self::get_is_draft_value( $values ),
548
- 'form_id' => self::get_form_id( $values ),
549
- 'post_id' => self::get_post_id( $values ),
550
- 'parent_item_id' => self::get_parent_item_id( $values ),
551
  'created_at' => self::get_created_at( $values ),
552
  'updated_at' => self::get_updated_at( $values ),
553
  'description' => self::get_entry_description( $values ),
@@ -563,48 +563,35 @@ class FrmEntry {
563
  return $new_values;
564
  }
565
 
566
- /**
567
- * Get the is_draft value for a new entry
568
- *
569
- * @since 2.0.16
570
- * @param array $values
571
- * @return int
572
- */
573
- private static function get_is_draft_value( $values ) {
574
- return ( ( isset( $values['frm_saving_draft'] ) && $values['frm_saving_draft'] == 1 ) || ( isset( $values['is_draft'] ) && $values['is_draft'] == 1 ) ) ? 1 : 0;
575
  }
576
 
577
  /**
578
- * Get the form_id value for a new entry
579
- *
580
- * @since 2.0.16
581
- * @param array $values
582
- * @return int|null
583
- */
584
- private static function get_form_id( $values ) {
585
- return isset( $values['form_id'] ) ? (int) $values['form_id'] : null;
586
- }
587
-
588
- /**
589
- * Get the post_id value for a new entry
590
- *
591
- * @since 2.0.16
592
- * @param array $values
593
- * @return int
594
- */
595
- private static function get_post_id( $values ) {
596
- return isset( $values['post_id'] ) ? (int) $values['post_id']: 0;
597
  }
598
 
599
  /**
600
- * Get the parent_item_id value for a new entry
601
  *
602
  * @since 2.0.16
603
  * @param array $values
604
  * @return int
605
  */
606
- private static function get_parent_item_id( $values ) {
607
- return isset( $values['parent_item_id'] ) ? (int) $values['parent_item_id']: 0;
608
  }
609
 
610
  /**
@@ -615,7 +602,7 @@ class FrmEntry {
615
  * @return string
616
  */
617
  private static function get_created_at( $values ) {
618
- return isset( $values['created_at'] ) ? $values['created_at']: current_time('mysql', 1);
619
  }
620
 
621
  /**
@@ -795,7 +782,7 @@ class FrmEntry {
795
 
796
  $new_values = array(
797
  'name' => self::get_new_entry_name( $values ),
798
- 'form_id' => self::get_form_id( $values ),
799
  'is_draft' => self::get_is_draft_value( $values ),
800
  'updated_at' => current_time('mysql', 1),
801
  'updated_by' => isset($values['updated_by']) ? $values['updated_by'] : get_current_user_id(),
543
  $new_values = array(
544
  'item_key' => FrmAppHelper::get_unique_key( $values['item_key'], $wpdb->prefix . 'frm_items', 'item_key' ),
545
  'name' => FrmAppHelper::truncate( $item_name, 255, 1, '' ),
546
+ 'ip' => self::get_ip( $values ),
547
  'is_draft' => self::get_is_draft_value( $values ),
548
+ 'form_id' => (int) self::get_entry_value( $values, 'form_id', null ),
549
+ 'post_id' => (int) self::get_entry_value( $values, 'post_id', 0 ),
550
+ 'parent_item_id' => (int) self::get_entry_value( $values, 'parent_item_id', 0 ),
551
  'created_at' => self::get_created_at( $values ),
552
  'updated_at' => self::get_updated_at( $values ),
553
  'description' => self::get_entry_description( $values ),
563
  return $new_values;
564
  }
565
 
566
+ private static function get_entry_value( $values, $name, $default ) {
567
+ return isset( $values[ $name ] ) ? $values[ $name ] : $default;
 
 
 
 
 
 
 
568
  }
569
 
570
  /**
571
+ * Get the ip for a new entry.
572
+ * Allow the import to override the value.
573
+ *
574
+ * @since 2.03.10
575
+ * @param array $values
576
+ * @return string
577
+ */
578
+ private static function get_ip( $values ) {
579
+ $ip = FrmAppHelper::get_ip_address();
580
+ if ( defined('WP_IMPORTING') && WP_IMPORTING ) {
581
+ $ip = self::get_entry_value( $values, 'ip', $ip );
582
+ }
583
+ return $ip;
 
 
 
 
 
 
584
  }
585
 
586
  /**
587
+ * Get the is_draft value for a new entry
588
  *
589
  * @since 2.0.16
590
  * @param array $values
591
  * @return int
592
  */
593
+ private static function get_is_draft_value( $values ) {
594
+ return ( ( isset( $values['frm_saving_draft'] ) && $values['frm_saving_draft'] == 1 ) || ( isset( $values['is_draft'] ) && $values['is_draft'] == 1 ) ) ? 1 : 0;
595
  }
596
 
597
  /**
602
  * @return string
603
  */
604
  private static function get_created_at( $values ) {
605
+ return self::get_entry_value( $values, 'created_at', current_time( 'mysql', 1 ) );
606
  }
607
 
608
  /**
782
 
783
  $new_values = array(
784
  'name' => self::get_new_entry_name( $values ),
785
+ 'form_id' => (int) self::get_entry_value( $values, 'form_id', null ),
786
  'is_draft' => self::get_is_draft_value( $values ),
787
  'updated_at' => current_time('mysql', 1),
788
  'updated_by' => isset($values['updated_by']) ? $values['updated_by'] : get_current_user_id(),
classes/models/FrmEntryValidate.php CHANGED
@@ -26,14 +26,8 @@ class FrmEntryValidate {
26
  unset( $posted_field );
27
  }
28
 
29
- if ( ! empty( $errors ) ) {
30
- return $errors;
31
- }
32
-
33
- self::spam_check( $exclude, $values, $errors );
34
-
35
- if ( ! empty( $errors ) ) {
36
- return $errors;
37
  }
38
 
39
  $errors = apply_filters( 'frm_validate_entry', $errors, $values, compact( 'exclude' ) );
26
  unset( $posted_field );
27
  }
28
 
29
+ if ( empty( $errors ) ) {
30
+ self::spam_check( $exclude, $values, $errors );
 
 
 
 
 
 
31
  }
32
 
33
  $errors = apply_filters( 'frm_validate_entry', $errors, $values, compact( 'exclude' ) );
classes/models/FrmFormAction.php CHANGED
@@ -402,6 +402,9 @@ class FrmFormAction {
402
  * @param int $action_id
403
  */
404
  public static function get_single_action_type( $action_id, $type ) {
 
 
 
405
  $action_control = FrmFormActionsController::get_form_actions( $type );
406
  return $action_control->get_single_action( $action_id );
407
  }
402
  * @param int $action_id
403
  */
404
  public static function get_single_action_type( $action_id, $type ) {
405
+ if ( ! $type ) {
406
+ return false;
407
+ }
408
  $action_control = FrmFormActionsController::get_form_actions( $type );
409
  return $action_control->get_single_action( $action_id );
410
  }
classes/models/FrmSettings.php CHANGED
@@ -26,6 +26,7 @@ class FrmSettings {
26
  public $pubkey;
27
  public $privkey;
28
  public $re_lang;
 
29
  public $re_msg;
30
  public $re_multi;
31
 
@@ -170,6 +171,10 @@ class FrmSettings {
170
  if ( ! isset($this->re_lang) ) {
171
  $this->re_lang = $re_lang;
172
  }
 
 
 
 
173
  }
174
 
175
  public function validate( $params, $errors ) {
@@ -196,6 +201,7 @@ class FrmSettings {
196
 
197
  $this->pubkey = trim($params['frm_pubkey']);
198
  $this->privkey = $params['frm_privkey'];
 
199
  $this->re_lang = $params['frm_re_lang'];
200
  $this->re_multi = isset( $params['frm_re_multi'] ) ? $params['frm_re_multi'] : 0;
201
 
26
  public $pubkey;
27
  public $privkey;
28
  public $re_lang;
29
+ public $re_type;
30
  public $re_msg;
31
  public $re_multi;
32
 
171
  if ( ! isset($this->re_lang) ) {
172
  $this->re_lang = $re_lang;
173
  }
174
+
175
+ if ( ! isset( $this->re_type ) ) {
176
+ $this->re_type = '';
177
+ }
178
  }
179
 
180
  public function validate( $params, $errors ) {
201
 
202
  $this->pubkey = trim($params['frm_pubkey']);
203
  $this->privkey = $params['frm_privkey'];
204
+ $this->re_type = $params['frm_re_type'];
205
  $this->re_lang = $params['frm_re_lang'];
206
  $this->re_multi = isset( $params['frm_re_multi'] ) ? $params['frm_re_multi'] : 0;
207
 
classes/views/addons/settings.php CHANGED
@@ -35,7 +35,7 @@
35
 
36
  </div>
37
  <?php } ?>
38
- <?php if ( $any_unauthorized && FrmAppHelper::pro_is_installed() ) { ?>
39
  <div class="clear"></div>
40
  <p><a href="#" class="edd_frm_fill_license button-secondary"><?php _e( 'Autofill Licenses', 'formidable' ) ?></a></p>
41
  <?php } ?>
35
 
36
  </div>
37
  <?php } ?>
38
+ <?php if ( $any_unauthorized && $allow_autofill ) { ?>
39
  <div class="clear"></div>
40
  <p><a href="#" class="edd_frm_fill_license button-secondary"><?php _e( 'Autofill Licenses', 'formidable' ) ?></a></p>
41
  <?php } ?>
classes/views/frm-entries/form.php CHANGED
@@ -25,7 +25,7 @@ $frm_hide_fields = FrmAppHelper::get_post_param( 'frm_hide_fields_' . $form->id,
25
  <input type="hidden" name="form_key" value="<?php echo esc_attr($form->form_key) ?>" />
26
  <input type="hidden" name="item_meta[0]" value="" />
27
  <?php wp_nonce_field( 'frm_submit_entry_nonce', 'frm_submit_entry_' . $form->id ); ?>
28
- <input type="text" class="frm_hidden" id="frm_verify" name="frm_verify" value="<?php echo esc_attr( FrmAppHelper::get_param('frm_verify' ) ) ?>" <?php FrmFormsHelper::maybe_hide_inline() ?> />
29
 
30
  <?php if ( isset( $id ) ) { ?><input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /><?php }
31
 
25
  <input type="hidden" name="form_key" value="<?php echo esc_attr($form->form_key) ?>" />
26
  <input type="hidden" name="item_meta[0]" value="" />
27
  <?php wp_nonce_field( 'frm_submit_entry_nonce', 'frm_submit_entry_' . $form->id ); ?>
28
+ <input type="text" class="frm_hidden frm_verify" id="frm_verify_<?php echo esc_attr( $form->id ) ?>" name="frm_verify" value="<?php echo esc_attr( FrmAppHelper::get_param('frm_verify' ) ) ?>" <?php FrmFormsHelper::maybe_hide_inline() ?> />
29
 
30
  <?php if ( isset( $id ) ) { ?><input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /><?php }
31
 
classes/views/frm-entries/new.php CHANGED
@@ -1,8 +1,8 @@
1
- <div class="frm_forms <?php echo FrmFormsHelper::get_form_style_class($values); ?>" id="frm_form_<?php echo esc_attr( $form->id ) ?>_container" <?php echo apply_filters( 'frm_form_attributes', '', $form ); ?>>
2
  <?php
3
  if ( ! isset( $include_form_tag ) || $include_form_tag ) {
4
  ?>
5
- <form enctype="<?php echo esc_attr( apply_filters( 'frm_form_enctype', 'multipart/form-data', $form ) ) ?>" method="post" class="frm-show-form <?php do_action('frm_form_classes', $form) ?>" id="form_<?php echo esc_attr( $form->form_key ) ?>" <?php echo $frm_settings->use_html ? '' : 'action=""'; ?>>
6
  <?php
7
  } else { ?>
8
  <div id="form_<?php echo esc_attr( $form->form_key ) ?>" class="frm-show-form <?php do_action('frm_form_classes', $form) ?>" >
1
+ <div class="frm_forms <?php echo FrmFormsHelper::get_form_style_class($values); ?>" id="frm_form_<?php echo esc_attr( $form->id ) ?>_container" <?php echo apply_filters( 'frm_form_div_attributes', '', $form ); ?>>
2
  <?php
3
  if ( ! isset( $include_form_tag ) || $include_form_tag ) {
4
  ?>
5
+ <form enctype="<?php echo esc_attr( apply_filters( 'frm_form_enctype', 'multipart/form-data', $form ) ) ?>" method="post" class="frm-show-form <?php do_action('frm_form_classes', $form) ?>" id="form_<?php echo esc_attr( $form->form_key ) ?>" <?php echo $frm_settings->use_html ? '' : 'action=""'; ?> <?php echo apply_filters( 'frm_form_attributes', '', $form ); ?>>
6
  <?php
7
  } else { ?>
8
  <div id="form_<?php echo esc_attr( $form->form_key ) ?>" class="frm-show-form <?php do_action('frm_form_classes', $form) ?>" >
classes/views/frm-forms/add_field.php CHANGED
@@ -245,13 +245,18 @@ if ( $display['options'] ) { ?>
245
  }
246
  }
247
 
248
- if ( $display['captcha_size'] ) { ?>
249
- <tr><td><label><?php _e( 'Size', 'formidable' ) ?></label>
250
  <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Set the size of the captcha field. The compact option is best if your form is in a small area.', 'formidable' ) ?>" ></span>
251
  </td>
252
- <td><select name="field_options[captcha_size_<?php echo esc_attr( $field['id'] ) ?>]">
253
- <option value="normal"<?php selected($field['captcha_size'], 'normal'); ?>><?php _e( 'Normal', 'formidable' ) ?></option>
254
- <option value="compact"<?php selected($field['captcha_size'], 'compact'); ?>><?php _e( 'Compact', 'formidable' ) ?></option>
 
 
 
 
 
255
  </select>
256
  </td>
257
  </tr>
245
  }
246
  }
247
 
248
+ if ( $display['captcha_size'] && $frm_settings->re_type != 'invisible' ) { ?>
249
+ <tr><td><label><?php _e( 'ReCaptcha Type', 'formidable' ) ?></label>
250
  <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Set the size of the captcha field. The compact option is best if your form is in a small area.', 'formidable' ) ?>" ></span>
251
  </td>
252
+ <td>
253
+ <select name="field_options[captcha_size_<?php echo esc_attr( $field['id'] ) ?>]">
254
+ <option value="normal" <?php selected( $field['captcha_size'], 'normal' ); ?>>
255
+ <?php _e( 'Normal', 'formidable' ) ?>
256
+ </option>
257
+ <option value="compact" <?php selected( $field['captcha_size'], 'compact' ); ?>>
258
+ <?php _e( 'Compact', 'formidable' ) ?>
259
+ </option>
260
  </select>
261
  </td>
262
  </tr>
classes/views/frm-settings/form.php CHANGED
@@ -83,6 +83,16 @@
83
  <p><label class="frm_left_label"><?php _e( 'Secret Key', 'formidable' ) ?></label>
84
  <input type="text" name="frm_privkey" id="frm_privkey" size="42" value="<?php echo esc_attr($frm_settings->privkey) ?>" placeholder="<?php esc_attr_e( 'Optional', 'formidable' ) ?>" /></p>
85
 
 
 
 
 
 
 
 
 
 
 
86
  <p><label class="frm_left_label"><?php _e( 'reCAPTCHA Language', 'formidable' ) ?></label>
87
  <select name="frm_re_lang" id="frm_re_lang">
88
  <option value="" <?php selected( $frm_settings->re_lang, '' ) ?>><?php esc_html_e( 'Browser Default', 'formidable' ); ?></option>
83
  <p><label class="frm_left_label"><?php _e( 'Secret Key', 'formidable' ) ?></label>
84
  <input type="text" name="frm_privkey" id="frm_privkey" size="42" value="<?php echo esc_attr($frm_settings->privkey) ?>" placeholder="<?php esc_attr_e( 'Optional', 'formidable' ) ?>" /></p>
85
 
86
+ <p><label class="frm_left_label"><?php _e( 'reCAPTCHA Type', 'formidable' ) ?></label>
87
+ <select name="frm_re_type" id="frm_re_type">
88
+ <option value="" <?php selected( $frm_settings->re_type, '' ) ?>>
89
+ <?php esc_html_e( 'Checkbox (V2)', 'formidable' ); ?>
90
+ </option>
91
+ <option value="invisible" <?php selected( $frm_settings->re_type, 'invisible' ) ?>>
92
+ <?php esc_html_e( 'Invisible', 'formidable' ); ?>
93
+ </option>
94
+ </select></p>
95
+
96
  <p><label class="frm_left_label"><?php _e( 'reCAPTCHA Language', 'formidable' ) ?></label>
97
  <select name="frm_re_lang" id="frm_re_lang">
98
  <option value="" <?php selected( $frm_settings->re_lang, '' ) ?>><?php esc_html_e( 'Browser Default', 'formidable' ); ?></option>
classes/views/frm-settings/license_box.php CHANGED
@@ -1,5 +1,5 @@
1
  <div class="general_settings metabox-holder tabs-panel frm_license_box <?php echo ($a == 'general_settings') ? 'frm_block' : 'frm_hidden'; ?>">
2
- <?php if ( ! is_multisite() || is_super_admin() ) { ?>
3
  <div class="postbox">
4
  <div class="inside">
5
  <p class="alignright"><?php printf( __( '%1$sClick here%2$s to get it now', 'formidable' ), '<a href="' . esc_url( FrmAppHelper::make_affiliate_url( 'https://formidableforms.com' ) ) . '">', '</a>' ) ?> &#187;</p>
1
  <div class="general_settings metabox-holder tabs-panel frm_license_box <?php echo ($a == 'general_settings') ? 'frm_block' : 'frm_hidden'; ?>">
2
+ <?php if ( ! is_multisite() || current_user_can( 'setup_network' ) ) { ?>
3
  <div class="postbox">
4
  <div class="inside">
5
  <p class="alignright"><?php printf( __( '%1$sClick here%2$s to get it now', 'formidable' ), '<a href="' . esc_url( FrmAppHelper::make_affiliate_url( 'https://formidableforms.com' ) ) . '">', '</a>' ) ?> &#187;</p>
css/_single_theme.css.php CHANGED
@@ -447,19 +447,24 @@ $arrow_icons = FrmStylesHelper::arrow_icons();
447
  }
448
 
449
  /* These do not work if they are combined */
450
- .<?php echo esc_html( $style_class ) ?> input::placeholder{
 
451
  color: <?php echo esc_html( $text_color_disabled . $important ) ?>;
452
  }
453
- .<?php echo esc_html( $style_class ) ?> input::-webkit-input-placeholder{
 
454
  color: <?php echo esc_html( $text_color_disabled . $important ) ?>;
455
  }
456
- .<?php echo esc_html( $style_class ) ?> input::-moz-placeholder{
 
457
  color: <?php echo esc_html( $text_color_disabled . $important ) ?>;
458
  }
459
- .<?php echo esc_html( $style_class ) ?> input:-ms-input-placeholder{
 
460
  color: <?php echo esc_html( $text_color_disabled . $important ) ?>;
461
  }
462
- .<?php echo esc_html( $style_class ) ?> input:-moz-placeholder{
 
463
  color: <?php echo esc_html( $text_color_disabled . $important ) ?>;
464
  }
465
 
@@ -781,9 +786,15 @@ if ( ! $submit_style ) { ?>
781
  padding:0<?php echo esc_html( $important ) ?>;
782
  }
783
 
784
- .<?php echo esc_html( $style_class ) ?> .frm_text_block input,
785
- .<?php echo esc_html( $style_class ) ?> .frm_text_block label.frm_primary_label{
786
- margin-left:-20px;
 
 
 
 
 
 
787
  }
788
 
789
  .<?php echo esc_html( $style_class ) ?> .frm_button{
447
  }
448
 
449
  /* These do not work if they are combined */
450
+ .<?php echo esc_html( $style_class ) ?> input::placeholder,
451
+ .<?php echo esc_html( $style_class ) ?> textarea::placeholder{
452
  color: <?php echo esc_html( $text_color_disabled . $important ) ?>;
453
  }
454
+ .<?php echo esc_html( $style_class ) ?> input::-webkit-input-placeholder,
455
+ .<?php echo esc_html( $style_class ) ?> textarea::-webkit-input-placeholder{
456
  color: <?php echo esc_html( $text_color_disabled . $important ) ?>;
457
  }
458
+ .<?php echo esc_html( $style_class ) ?> input::-moz-placeholder,
459
+ .<?php echo esc_html( $style_class ) ?> textarea::-moz-placeholder{
460
  color: <?php echo esc_html( $text_color_disabled . $important ) ?>;
461
  }
462
+ .<?php echo esc_html( $style_class ) ?> input:-ms-input-placeholder,
463
+ <?php echo esc_html( $style_class ) ?> textarea:-ms-input-placeholder{
464
  color: <?php echo esc_html( $text_color_disabled . $important ) ?>;
465
  }
466
+ .<?php echo esc_html( $style_class ) ?> input:-moz-placeholder,
467
+ .<?php echo esc_html( $style_class ) ?> textarea:-moz-placeholder{
468
  color: <?php echo esc_html( $text_color_disabled . $important ) ?>;
469
  }
470
 
786
  padding:0<?php echo esc_html( $important ) ?>;
787
  }
788
 
789
+ .<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_text_block .frm_checkbox label,
790
+ .<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_text_block .frm_radio label{
791
+ padding-left:20px;
792
+ display:block;
793
+ }
794
+
795
+ .<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_text_block .frm_checkbox input[type=checkbox],
796
+ .<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_text_block .frm_radio input[type=radio]{
797
+ margin-left:-20px;
798
  }
799
 
800
  .<?php echo esc_html( $style_class ) ?> .frm_button{
css/custom_theme.css.php CHANGED
@@ -18,12 +18,13 @@ $defaults = FrmStylesHelper::get_settings_for_output( $default_style );
18
 
19
  ?>
20
 
 
21
  .frm_hidden,
22
  .with_frm_style .frm_button.frm_hidden{
23
  display:none;
24
  }
25
 
26
- #frm_verify{
27
  display:none !important;
28
  }
29
 
@@ -920,20 +921,6 @@ select.frm_loading_lookup{
920
  box-shadow:none;
921
  }
922
 
923
- .frm_text_block{
924
- margin-left:20px;
925
- }
926
-
927
- .frm_text_block input,
928
- .frm_text_block label.frm_primary_label{
929
- margin-left:-20px;
930
- }
931
-
932
- .frm_text_block .frm_checkbox input[type=checkbox],
933
- .frm_text_block .frm_radio input[type=radio]{
934
- margin-right:4px;
935
- }
936
-
937
  .frm_form_field.frm_label_justify label.frm_primary_label{
938
  text-align:justify !important;
939
  }
18
 
19
  ?>
20
 
21
+ .frm_form_field .grecaptcha-badge,
22
  .frm_hidden,
23
  .with_frm_style .frm_button.frm_hidden{
24
  display:none;
25
  }
26
 
27
+ form input.frm_verify{
28
  display:none !important;
29
  }
30
 
921
  box-shadow:none;
922
  }
923
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
924
  .frm_form_field.frm_label_justify label.frm_primary_label{
925
  text-align:justify !important;
926
  }
formidable.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Formidable Forms
4
  Description: Quickly and easily create drag-and-drop forms
5
- Version: 2.03.09
6
  Plugin URI: https://formidableforms.com/
7
  Author URI: https://formidableforms.com/
8
  Author: Strategy11
2
  /*
3
  Plugin Name: Formidable Forms
4
  Description: Quickly and easily create drag-and-drop forms
5
+ Version: 2.03.10
6
  Plugin URI: https://formidableforms.com/
7
  Author URI: https://formidableforms.com/
8
  Author: Strategy11
js/formidable.js CHANGED
@@ -162,13 +162,13 @@ function frmFrontFormJS(){
162
  init: function() {
163
  this.on('sending', function(file, xhr, formData) {
164
 
165
- if ( ! anyPrecedingRequiredFieldsCompleted( uploadFields[i] ) ) {
166
  this.removeFile(file);
167
- alert('Please complete the preceding required fields before uploading a file.');
168
  return false;
169
- } else if ( isSpam() ) {
170
  this.removeFile(file);
171
- alert('Oops. That file looks like Spam.');
172
  return false;
173
  } else {
174
  formData.append('action', 'frm_submit_dropzone' );
@@ -248,8 +248,8 @@ function frmFrontFormJS(){
248
  });
249
  }
250
 
251
- function isSpam() {
252
- if ( isHoneypotSpam() || isHeadless() ) {
253
  return true;
254
  } else {
255
  return false;
@@ -263,8 +263,8 @@ function frmFrontFormJS(){
263
  *
264
  * @returns {boolean}
265
  */
266
- function isHoneypotSpam() {
267
- var val = document.getElementById('frm_verify').value;
268
 
269
  return val !== '';
270
  }
@@ -289,9 +289,8 @@ function frmFrontFormJS(){
289
  * @param {string} uploadField.fieldID
290
  * @returns {boolean}
291
  */
292
- function anyPrecedingRequiredFieldsCompleted( uploadField ) {
293
- var fileSelector = uploadField.htmlID + '_dropzone';
294
- var dropzoneDiv = jQuery( '#' + fileSelector );
295
  var form = dropzoneDiv.closest( 'form' );
296
 
297
  if ( form.length < 1 ) {
@@ -299,7 +298,7 @@ function frmFrontFormJS(){
299
  }
300
 
301
  var requiredFields = jQuery(form).find(
302
- '.frm_required_field:visible input, .frm_required_field:visible select, .frm_required_field:visible textarea, #' + fileSelector
303
  );
304
 
305
  if ( requiredFields.length < 1 ) {
@@ -308,7 +307,7 @@ function frmFrontFormJS(){
308
  var fieldsComplete = true;
309
 
310
  for ( var r = 0, rl = requiredFields.length; r < rl; r++ ) {
311
- if ( requiredFields[r].id === fileSelector ) {
312
  break;
313
  }
314
 
@@ -424,7 +423,9 @@ function frmFrontFormJS(){
424
  var originalEvent = getOriginalEvent( e );
425
  checkFieldsWatchingLookup( field_id, jQuery(this), originalEvent );
426
  doCalculation(field_id, jQuery(this));
427
- maybeValidateChange( field_id, this );
 
 
428
  }
429
 
430
  function maybeValidateChange( field_id, field ) {
@@ -2787,7 +2788,9 @@ function frmFrontFormJS(){
2787
 
2788
  if ( totalField.val() !== total ) {
2789
  totalField.val(total);
2790
- triggerChange( totalField, field_key );
 
 
2791
  }
2792
  }
2793
 
@@ -3424,6 +3427,31 @@ function frmFrontFormJS(){
3424
  return errors;
3425
  }
3426
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3427
  function validateRecaptcha( form, errors ) {
3428
  var $recaptcha = jQuery(form).find('.frm-g-recaptcha');
3429
  if ( $recaptcha.length ) {
@@ -4109,7 +4137,10 @@ function frmFrontFormJS(){
4109
  container.fadeOut('slow', function(){
4110
  container.remove();
4111
  });
 
4112
  jQuery(document.getElementById('frm_delete_'+entry_id)).fadeOut('slow');
 
 
4113
  }else{
4114
  jQuery(document.getElementById('frm_delete_'+entry_id)).replaceWith(html);
4115
  }
@@ -4471,13 +4502,25 @@ function frmFrontFormJS(){
4471
  addKeysFallbackForIE8();
4472
  },
4473
 
 
 
 
 
 
 
 
 
 
 
4474
  submitForm: function(e){
4475
  frmFrontForm.submitFormManual( e, this );
4476
  },
4477
 
4478
  submitFormManual: function(e, object){
 
 
4479
  var classList = object.className.trim().split(/\s+/gi);
4480
- if ( classList ) {
4481
  var isPro = classList.indexOf('frm_pro_form') > -1;
4482
  if ( ! isPro ) {
4483
  return;
@@ -4489,24 +4532,35 @@ function frmFrontFormJS(){
4489
  }
4490
 
4491
  e.preventDefault();
4492
- var errors = frmFrontForm.validateFormSubmit( object );
4493
-
4494
- if ( Object.keys(errors).length === 0 ) {
4495
- showSubmitLoading( jQuery(object) );
4496
-
4497
- if ( classList.indexOf('frm_ajax_submit') > -1 ) {
4498
- var hasFileFields = jQuery(object).find('input[type="file"]').filter(function () {
4499
- return !!this.value;
4500
- }).length;
4501
- if ( hasFileFields < 1 ) {
4502
- action = jQuery(object).find('input[name="frm_action"]').val();
4503
- frmFrontForm.checkFormErrors( object, action );
4504
- } else {
4505
- object.submit();
4506
- }
 
 
 
 
 
 
 
 
 
4507
  } else {
4508
  object.submit();
4509
  }
 
 
4510
  }
4511
  },
4512
 
@@ -4728,15 +4782,28 @@ jQuery(document).ready(function($){
4728
  function frmRecaptcha() {
4729
  var captchas = jQuery('.frm-g-recaptcha');
4730
  for ( var c = 0, cl = captchas.length; c < cl; c++ ) {
4731
- var recaptchaID = grecaptcha.render( captchas[c].id, {
 
4732
  'sitekey': captchas[c].getAttribute('data-sitekey'),
4733
- 'size': captchas[c].getAttribute('data-size'),
4734
  'theme': captchas[c].getAttribute('data-theme')
4735
- } );
 
 
 
 
 
 
 
 
4736
  captchas[c].setAttribute('data-rid', recaptchaID);
4737
  }
4738
  }
4739
 
 
 
 
 
4740
  function frmUpdateField(entry_id,field_id,value,message,num){
4741
  jQuery(document.getElementById('frm_update_field_'+entry_id+'_'+field_id)).html('<span class="frm-loading-img"></span>');
4742
  jQuery.ajax({
162
  init: function() {
163
  this.on('sending', function(file, xhr, formData) {
164
 
165
+ if ( ! anyPrecedingRequiredFieldsCompleted( uploadFields[i], selector ) ) {
166
  this.removeFile(file);
167
+ alert(frm_js.empty_fields);
168
  return false;
169
+ } else if ( isSpam( uploadFields[i].parentFormID ) ) {
170
  this.removeFile(file);
171
+ alert(frm_js.file_spam);
172
  return false;
173
  } else {
174
  formData.append('action', 'frm_submit_dropzone' );
248
  });
249
  }
250
 
251
+ function isSpam( formID ) {
252
+ if ( isHoneypotSpam( formID ) || isHeadless() ) {
253
  return true;
254
  } else {
255
  return false;
263
  *
264
  * @returns {boolean}
265
  */
266
+ function isHoneypotSpam( formID ) {
267
+ var val = document.getElementById('frm_verify_'+formID).value;
268
 
269
  return val !== '';
270
  }
289
  * @param {string} uploadField.fieldID
290
  * @returns {boolean}
291
  */
292
+ function anyPrecedingRequiredFieldsCompleted( uploadField, fileSelector ) {
293
+ var dropzoneDiv = jQuery( fileSelector );
 
294
  var form = dropzoneDiv.closest( 'form' );
295
 
296
  if ( form.length < 1 ) {
298
  }
299
 
300
  var requiredFields = jQuery(form).find(
301
+ '.frm_required_field:visible input, .frm_required_field:visible select, .frm_required_field:visible textarea, ' + fileSelector
302
  );
303
 
304
  if ( requiredFields.length < 1 ) {
307
  var fieldsComplete = true;
308
 
309
  for ( var r = 0, rl = requiredFields.length; r < rl; r++ ) {
310
+ if ( '#' + requiredFields[r].id === fileSelector ) {
311
  break;
312
  }
313
 
423
  var originalEvent = getOriginalEvent( e );
424
  checkFieldsWatchingLookup( field_id, jQuery(this), originalEvent );
425
  doCalculation(field_id, jQuery(this));
426
+ if ( e.selfTriggered !== true ) {
427
+ maybeValidateChange( field_id, this );
428
+ }
429
  }
430
 
431
  function maybeValidateChange( field_id, field ) {
2788
 
2789
  if ( totalField.val() !== total ) {
2790
  totalField.val(total);
2791
+ if ( triggerField === null || totalField.attr('name') != triggerField.attr('name') ) {
2792
+ triggerChange( totalField, field_key );
2793
+ }
2794
  }
2795
  }
2796
 
3427
  return errors;
3428
  }
3429
 
3430
+ function hasInvisibleRecaptcha( object ) {
3431
+ if ( goingToPrevPage( object ) ) {
3432
+ return false;
3433
+ }
3434
+
3435
+ var recaptcha = jQuery(object).find('.frm-g-recaptcha[data-size="invisible"], .g-recaptcha[data-size="invisible"]');
3436
+ if ( recaptcha.length ) {
3437
+ var recaptchaID = recaptcha.data('rid');
3438
+ var alreadyChecked = grecaptcha.getResponse( recaptchaID );
3439
+ if ( alreadyChecked.length === 0 ) {
3440
+ return recaptcha;
3441
+ } else {
3442
+ return false;
3443
+ }
3444
+ } else {
3445
+ return false;
3446
+ }
3447
+ }
3448
+
3449
+ function executeInvisibleRecaptcha( invisibleRecaptcha ) {
3450
+ var recaptchaID = invisibleRecaptcha.data('rid');
3451
+ grecaptcha.reset( recaptchaID );
3452
+ grecaptcha.execute( recaptchaID );
3453
+ }
3454
+
3455
  function validateRecaptcha( form, errors ) {
3456
  var $recaptcha = jQuery(form).find('.frm-g-recaptcha');
3457
  if ( $recaptcha.length ) {
4137
  container.fadeOut('slow', function(){
4138
  container.remove();
4139
  });
4140
+
4141
  jQuery(document.getElementById('frm_delete_'+entry_id)).fadeOut('slow');
4142
+ jQuery( document ).trigger( 'frmEntryDeleted', [ entry_id ] );
4143
+
4144
  }else{
4145
  jQuery(document.getElementById('frm_delete_'+entry_id)).replaceWith(html);
4146
  }
4502
  addKeysFallbackForIE8();
4503
  },
4504
 
4505
+ afterSingleRecaptcha: function(token){
4506
+ var object = jQuery('.frm-show-form .g-recaptcha').closest('form')[0];
4507
+ frmFrontForm.submitFormNow( object );
4508
+ },
4509
+
4510
+ afterRecaptcha: function(token, formID){
4511
+ var object = jQuery('#frm_form_'+ formID +'_container form')[0];
4512
+ frmFrontForm.submitFormNow( object );
4513
+ },
4514
+
4515
  submitForm: function(e){
4516
  frmFrontForm.submitFormManual( e, this );
4517
  },
4518
 
4519
  submitFormManual: function(e, object){
4520
+ var invisibleRecaptcha = hasInvisibleRecaptcha(object);
4521
+
4522
  var classList = object.className.trim().split(/\s+/gi);
4523
+ if ( classList && invisibleRecaptcha.length < 1 ) {
4524
  var isPro = classList.indexOf('frm_pro_form') > -1;
4525
  if ( ! isPro ) {
4526
  return;
4532
  }
4533
 
4534
  e.preventDefault();
4535
+
4536
+ if ( invisibleRecaptcha.length ) {
4537
+ executeInvisibleRecaptcha( invisibleRecaptcha );
4538
+ } else {
4539
+
4540
+ var errors = frmFrontForm.validateFormSubmit( object );
4541
+
4542
+ if ( Object.keys(errors).length === 0 ) {
4543
+ showSubmitLoading( jQuery(object) );
4544
+
4545
+ frmFrontForm.submitFormNow( object, classList );
4546
+ }
4547
+ }
4548
+ },
4549
+
4550
+ submitFormNow: function(object) {
4551
+ var classList = object.className.trim().split(/\s+/gi);
4552
+ if ( classList.indexOf('frm_ajax_submit') > -1 ) {
4553
+ var hasFileFields = jQuery(object).find('input[type="file"]').filter(function () {
4554
+ return !!this.value;
4555
+ }).length;
4556
+ if ( hasFileFields < 1 ) {
4557
+ action = jQuery(object).find('input[name="frm_action"]').val();
4558
+ frmFrontForm.checkFormErrors( object, action );
4559
  } else {
4560
  object.submit();
4561
  }
4562
+ } else {
4563
+ object.submit();
4564
  }
4565
  },
4566
 
4782
  function frmRecaptcha() {
4783
  var captchas = jQuery('.frm-g-recaptcha');
4784
  for ( var c = 0, cl = captchas.length; c < cl; c++ ) {
4785
+ var size = captchas[c].getAttribute('data-size');
4786
+ var params = {
4787
  'sitekey': captchas[c].getAttribute('data-sitekey'),
4788
+ 'size': size,
4789
  'theme': captchas[c].getAttribute('data-theme')
4790
+ };
4791
+ if ( size == 'invisible' ) {
4792
+ var formID = jQuery(captchas[c]).closest('form').find('input[name="form_id"]').val();
4793
+ params.callback = function(token) {
4794
+ frmFrontForm.afterRecaptcha(token, formID)
4795
+ };
4796
+ }
4797
+ var recaptchaID = grecaptcha.render( captchas[c].id, params );
4798
+
4799
  captchas[c].setAttribute('data-rid', recaptchaID);
4800
  }
4801
  }
4802
 
4803
+ function frmAfterRecaptcha(token){
4804
+ frmFrontForm.afterSingleRecaptcha(token);
4805
+ }
4806
+
4807
  function frmUpdateField(entry_id,field_id,value,message,num){
4808
  jQuery(document.getElementById('frm_update_field_'+entry_id+'_'+field_id)).html('<span class="frm-loading-img"></span>');
4809
  jQuery.ajax({
js/formidable.min.js CHANGED
@@ -1,100 +1,102 @@
1
- function frmFrontFormJS(){function m(a){var b=jQuery(this),c=b.attr("type");"submit"!==c&&a.preventDefault();a=b.parents("form:first");var d="",f="",e=this.name;"frm_prev_page"===e||-1!==this.className.indexOf("frm_prev_page")?d=jQuery(a).find(".frm_next_page").attr("id").replace("frm_next_p_",""):"frm_save_draft"===e||-1!==this.className.indexOf("frm_save_draft")?f=1:-1!==this.className.indexOf("frm_page_skip")?(b=b.data("page"),e=jQuery(a).find('input[name="form_id"]').val(),e=jQuery(a).find('input[name="frm_page_order_'+
2
  e+'"]'),jQuery(a).append('<input name="frm_last_page" type="hidden" value="'+e.val()+'" />'),""===b?e.remove():e.val(b)):-1!==this.className.indexOf("frm_page_back")&&(d=b.data("page"));jQuery(".frm_next_page").val(d);jQuery(".frm_saving_draft").val(f);"submit"!==c&&a.trigger("submit")}function n(){jQuery(this).parent().children(".frm_toggle_container").slideToggle("fast");jQuery(this).toggleClass("active").children(".ui-icon-triangle-1-e, .ui-icon-triangle-1-s").toggleClass("ui-icon-triangle-1-s ui-icon-triangle-1-e")}
3
- function t(){if(-1===this.className.indexOf("frm_custom_date")&&"undefined"!==typeof __frmDatepicker){var a=__frmDatepicker,b=this.id,c=b.split("-"),c=C(this.name)?'input[id^="'+c[0]+'"]':'input[id^="'+c.join("-")+'"]';jQuery.datepicker.setDefaults(jQuery.datepicker.regional[""]);for(var d=0,f=0;f<a.length;f++)if(a[f].triggerID=="#"+b||a[f].triggerID==c){d=f;break}""!==a[d].options.defaultDate&&(a[d].options.defaultDate=new Date(a[d].options.defaultDate));jQuery(this).datepicker(jQuery.extend(jQuery.datepicker.regional[a[d].locale],
4
- a[d].options))}}function w(a){if("undefined"!==typeof __frmDropzone)for(var b=__frmDropzone,c=0;c<b.length;c++)D(c,a)}function D(a,b){var c=__frmDropzone,d="#"+c[a].htmlID+"_dropzone",f=c[a].fieldName;"undefined"!==typeof b&&-1!==d.indexOf("-0_dropzone")&&(d=d.replace("-0_dropzone","-"+b+"_dropzone"),f=f.replace("[0]","["+b+"]"),delete c[a].mockFiles);d=jQuery(d);if(!(1>d.length||d.hasClass("dz-clickable"))){var e=c[a].maxFiles;if("undefined"!==typeof c[a].mockFiles){var g=c[a].mockFiles.length;0<
5
- e&&(e-=g)}var h=d.closest("form"),g="#"+h.attr("id");"#undefined"==g&&(g="form."+h.attr("class").replace(" ","."));d.dropzone({url:frm_js.ajax_url,addRemoveLinks:!0,paramName:d.attr("id").replace("_dropzone",""),maxFilesize:c[a].maxFilesize,maxFiles:e,uploadMultiple:c[a].uploadMultiple,hiddenInputContainer:g,dictDefaultMessage:c[a].defaultMessage,dictFallbackMessage:c[a].fallbackMessage,dictFallbackText:c[a].fallbackText,dictFileTooBig:c[a].fileTooBig,dictInvalidFileType:c[a].invalidFileType,dictResponseError:c[a].responseError,
6
- dictCancelUpload:c[a].cancel,dictCancelUploadConfirmation:c[a].cancelConfirm,dictRemoveFile:c[a].remove,dictMaxFilesExceeded:c[a].maxFilesExceeded,fallback:function(){jQuery(this.element).closest("form").removeClass("frm_ajax_submit")},init:function(){this.on("sending",function(b,d,f){d=c[a].htmlID+"_dropzone";var e=jQuery("#"+d).closest("form");if(1>e.length)d=!1;else{var g=jQuery(e).find(".frm_required_field:visible input, .frm_required_field:visible select, .frm_required_field:visible textarea, #"+
7
- d);if(1>g.length)d=!0;else{e=!0;for(var h=0,k=g.length;h<k&&g[h].id!==d;h++)if(!(-1<g[h].className.indexOf("frm_optional")||null!==g[h].getAttribute("data-frmfile")))if(1>O(g[h],[]).length){e=!0;break}else e=!1;d=e}}if(d){d=""!==document.getElementById("frm_verify").value||window._phantom||window.callPhantom||window.__phantomas||window.Buffer||window.emit||window.spawn?!0:!1;if(d)return this.removeFile(b),alert("Oops. That file looks like Spam."),!1;f.append("action","frm_submit_dropzone");f.append("field_id",
8
- c[a].fieldID);f.append("form_id",c[a].formID);f.append("nonce",frm_js.nonce)}else return this.removeFile(b),alert("Please complete the preceding required fields before uploading a file."),!1});this.on("success",function(b,d){for(var e=jQuery.parseJSON(d),g=0;g<e.length;g++)!0!==c[a].uploadMultiple&&jQuery('input[name="'+f+'"]').val(e[g])});this.on("successmultiple",function(b,d){for(var e=jQuery.parseJSON(d),g=0;g<b.length;g++)jQuery(b[g].previewElement).append(ia(c[a],e[g],f))});this.on("complete",
9
- function(b){if("undefined"!==typeof b.mediaID){c[a].uploadMultiple&&jQuery(b.previewElement).append(ia(c[a],b.mediaID,f));for(var d=b.previewElement.querySelectorAll("[data-dz-name]"),e=0,g=d.length;e<g;e++)d[e].innerHTML='<a href="'+b.url+'">'+b.name+"</a>"}});this.on("addedfile",function(){P(h)});this.on("queuecomplete",function(){E(h,"enable")});this.on("removedfile",function(b){!1!==b.accepted&&!0!==c[a].uploadMultiple&&jQuery('input[name="'+f+'"]').val("");!1!==b.accepted&&"undefined"!==typeof b.mediaID&&
10
- (jQuery(b.previewElement).remove(),this.options.maxFiles=c[a].maxFiles-this.files.length)});if("undefined"!==typeof c[a].mockFiles)for(var b=0;b<c[a].mockFiles.length;b++){var d={name:c[a].mockFiles[b].name,size:c[a].mockFiles[b].size,url:c[a].mockFiles[b].file_url,mediaID:c[a].mockFiles[b].id};this.emit("addedfile",d);this.emit("thumbnail",d,c[a].mockFiles[b].url);this.emit("complete",d);this.files.push(d)}}})}}function ia(a,b,c){return'<input name="'+c+'[]" type="hidden" value="'+b+'" data-frmfile="'+
11
- a.fieldID+'" />'}function ab(){var a=jQuery(this).data("frm-remove");bb(jQuery(this).parent(".dz-preview"));a=jQuery('input[name="'+a+'"]');a.length&&a.val("")}function cb(){var a=this.type,b=!1,c=!1;if("select-one"===a)c=!0,"frm_other_trigger"===this.options[this.selectedIndex].className&&(b=!0);else if("select-multiple"===a)for(var c=!0,d=this.options,b=!1,f=0;f<d.length;f++)if("frm_other_trigger"===d[f].className&&d[f].selected){b=!0;break}c?(a=jQuery(this).parent().children(".frm_other_input"),
12
- a.length&&(b?a[0].className=a[0].className.replace("frm_pos_none",""):(1>a[0].className.indexOf("frm_pos_none")&&(a[0].className+=" frm_pos_none"),a[0].value=""))):"radio"===a?jQuery(this).is(":checked")&&(jQuery(this).closest(".frm_radio").children(".frm_other_input").removeClass("frm_pos_none"),jQuery(this).closest(".frm_radio").siblings().children(".frm_other_input").addClass("frm_pos_none").val("")):"checkbox"===a&&(this.checked?jQuery(this).closest(".frm_checkbox").children(".frm_other_input").removeClass("frm_pos_none"):
13
- jQuery(this).closest(".frm_checkbox").children(".frm_other_input").addClass("frm_pos_none").val(""))}function ja(a){var b=q(this,!1);if(b&&"undefined"!==typeof b&&(!a.frmTriggered||a.frmTriggered!=b)&&(ka(b,jQuery(this)),a="undefined"!==typeof a.originalEvent||-1<a.currentTarget.className.indexOf("frm_chzn")?"value changed":"other",la(b,jQuery(this),a),Q(b,jQuery(this)),jQuery(this).closest("form").hasClass("frm_js_validate"))){b=[];a=jQuery(this).closest(".frm_form_field");a.hasClass("frm_required_field")&&
14
- !jQuery(this).hasClass("frm_optional")&&(b=O(this,b));if(1>b.length)if("email"==this.type)var c=jQuery(this).closest("form").find("input[type=email]"),b=ma(this,b,c);else"number"==this.type?b=na(this,b):null!==this.pattern&&(b=oa(this,b));a.removeClass("frm_blank_field has-error");a.find(".frm_error").remove();if(0<Object.keys(b).length)for(var d in b)R(a,d,b)}}function q(a,b){var c="",c=a instanceof jQuery?a.attr("name"):a.name;if(""===c)return c=a instanceof jQuery?a.data("name"):a.getAttribute("data-name"),
15
- ""!==c&&c?c:0;c=c.replace("item_meta[","").replace("[]","").split("]");if(1>c.length)return 0;var c=c.filter(function(a){return""!==a}),d=c[0],f=!1;if(1===c.length)return d;if("[form"===c[1]||"[row_ids"===c[1])return 0;jQuery('input[name="item_meta['+d+'][form]"]').length&&(d=c[2].replace("[",""),f=!0);"other"===d&&(d=f?c[3].replace("[",""):c[1].replace("[",""));!0===b&&(d=d===c[0]?d+"-"+c[1].replace("[",""):d+"-"+c[0]+"-"+c[1].replace("[",""));return d}function ka(a,b){if(!("undefined"===typeof __FRMRULES||
16
- "undefined"===typeof __FRMRULES[a]||1>__FRMRULES[a].dependents.length||null===b||"undefined"===typeof b))for(var c=__FRMRULES[a],d=F(b[0].name),f=0,e=c.dependents.length;f<e;f++)G(c.dependents[f],d)}function G(a,b){var c=S(a);if(!(!1===c||1>c.conditions.length)){var d=[];if(c.isRepeating)if(""!==b.repeatingSection){var f="frm_field_"+c.fieldId+"-",f=f+(b.repeatingSection+"-"+b.repeatRow+"_container");d.push(f)}else if(d=H(c),null!==document.getElementById("frm_field_"+d+"_container")){d=[];for(var f=
17
- document.querySelectorAll(".frm_field_"+c.fieldId+"_container"),e=0,g=f.length;e<g;e++)d.push(f[e].id)}else{d=[];for(var e=H(c),f="frm_field_"+c.fieldId+"-"+e+"-",e=document.querySelectorAll('[name="item_meta['+e+'][row_ids][]"]'),g=0,h=e.length;g<h;g++)""!==e[g].value&&d.push(f+e[g].value+"_container");1>d.length&&d.push(f+"0_container")}else d.push("frm_field_"+c.fieldId+"_container");f=d.length;for(e=0;e<f;e++)c.containerId=d[e],pa(c,d[e]),qa(c)}}function H(a){var b="";"0"!==a.inEmbedForm?b=a.inEmbedForm:
18
- "0"!==a.inSection&&(b=a.inSection);return b}function pa(a,b){if(a.isRepeating){var c=b.replace("_container","").split("-");a.repeatRow=c[2]}else a.repeatRow=""}function qa(a){for(var b=[],c=a.conditions.length,d=0;d<c;d++)b.push(db(a.conditions[d],a));c=y="any"==a.anyAll?-1<b.indexOf(!0)?a.showHide:ra(a.showHide):-1<b.indexOf(!1)?ra(a.showHide):a.showHide;b=null!==document.getElementById(a.containerId);"show"==c?"data"==a.fieldType&&a.hasOwnProperty("dataLogic")?(a={fieldId:a.fieldId,fieldKey:a.fieldKey,
19
- formId:a.formId,containerId:a.containerId,repeatRow:a.repeatRow,dataLogic:{actualValue:a.dataLogic.actualValue,fieldId:a.dataLogic.fieldId},children:"",inputType:a.inputType},"data"==a.inputType?eb(a,b):b&&fb(a)):!1!==x(a.containerId,a.formId)&&(z(a.containerId,a.formId),b?(b=sa(a.containerId),ta(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId),jQuery("#"+a.containerId).show()):(b=ua(a),ta(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId))):T(a,b)}function S(a){return"undefined"===typeof __FRMRULES||
20
- "undefined"===typeof __FRMRULES[a]?!1:__FRMRULES[a]}function db(a,b){var c=S(a.fieldId),d=va(c,b);"data"==b.fieldType&&"data"==c.fieldType?(c=""===a.value?""===d||1==d.length&&""===d[0]?!1:!0:U(a.operator,a.value,d),b.dataLogic=a,b.dataLogic.actualValue=d,d=c):d=U(a.operator,a.value,d);return d}function va(a,b){if("radio"==a.inputType||"checkbox"==a.inputType){var c=wa(a,b);c=document.querySelectorAll('input[name^="'+c+'"]');c="checkbox"==a.inputType?I(c):V(c)}else if(!0===a.isMultiSelect){c=wa(a,
21
- b);var d=document.querySelectorAll('[name^="'+c+'"]');1==d.length&&"hidden"!=d[0].type?(c=jQuery('[name^="'+c+'"]').val(),null===c&&(c="")):c=I(d)}else if(c="field_"+a.fieldKey,a.isRepeating&&(c+="-"+b.repeatRow),d=document.getElementById(c),null===d){d="";if("time"==a.fieldType){var f=document.getElementById(c+"_H");null!==f&&(d=document.getElementById(c+"_m"),d=f.value+":"+d.value,c=document.getElementById(c+"_A"),":"==d?d="":null!==c&&(d+=" "+c.value))}c=d}else c=d.value;"undefined"===typeof c?
22
- c="":"string"===typeof c&&(c=c.trim());return c}function wa(a,b){return a.isRepeating?"item_meta["+("0"!==b.inEmbedForm?b.inEmbedForm:b.inSection)+"]["+b.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]"}function I(a){for(var b=[],c=0,d=a.length;c<d;c++)("hidden"==a[c].type||a[c].checked)&&b.push(a[c].value);0===b.length&&(b=!1);return b}function U(a,b,c){b=gb(b);c=hb(b,c);return"string"===typeof b&&"-1"!=b.indexOf("&quot;")&&U(a,b.replace("&quot;",'"'),c)?!0:{"==":function(a,b){return a==b},
23
- "!=":function(a,b){return a!=b},"<":function(a,b){return a>b},">":function(a,b){return a<b},LIKE:function(a,b){if(!b)return!1;a=W(a);b=xa(a,b);return-1!=b.indexOf(a)},"not LIKE":function(a,b){if(!b)return!0;a=W(a);b=xa(a,b);return-1==b.indexOf(a)}}[a](b,c)}function gb(a){-1!==String(a).search(/^\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*$/)?a=parseFloat(a):"string"===typeof a&&(a=a.trim());return a}function hb(a,b){"undefined"===typeof b&&(b="");jQuery.isArray(b)&&-1<jQuery.inArray(String(a),b)&&(b=a);"number"===
24
- typeof a&&"string"===typeof b&&(b=parseFloat(b));"string"===typeof b&&(b=b.trim());return b}function xa(a,b){b=W(b);if(jQuery.isArray(b))for(var c=0,d=b.length;c<d;c++){var f=b[c].toLowerCase();if(-1<f.indexOf(a)){b=a;break}}return b}function W(a){"string"===typeof a?a=a.toLowerCase():"number"===typeof a&&(a=a.toString());return a}function ra(a){return"show"==a?"hide":"show"}function sa(a){return document.getElementById(a).querySelectorAll('select[name^="item_meta"], textarea[name^="item_meta"], input[name^="item_meta"]')}
25
- function ua(a){if("divider"==a.fieldType){var b=[];"divider"==a.fieldType&&(b=document.querySelectorAll('[data-sectionid="'+a.fieldId+'"]'));a=b}else"form"==a.fieldType?a=document.querySelectorAll('[id^="field_'+a.fieldKey+'-"]'):(a=a.isRepeating?"item_meta["+H(a)+"]["+a.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]",a=document.querySelectorAll('[name^="'+a+'"]'));return a}function ta(a,b,c){if(a.length)for(var d,f=["checkbox","radio"],e=0;e<a.length;e++)if(!(0<e&&"undefined"!==typeof d&&
26
- d.name==a[e].name&&-1<f.indexOf(d.type)||b&&J(a[e],c))){d=a[e];var g=jQuery(d),h=g.data("frmval");if("undefined"!==typeof h){if("checkbox"==d.type||"radio"==d.type)ya(d.name,h);else if(-1<d.name.indexOf("[]")){var k=document.getElementsByName(d.name);if(jQuery.isArray(h))for(var l=0,m=h.length;l<m;l++)l in k&&(k[l].value=h[l]);else null!==k[0]&&(k[0].value=h)}else h.constructor===Object&&(k=d.getAttribute("name").split("[").slice(-1)[0],null!==k&&(k=k.replace("]",""),h=h[k],"undefined"==typeof h&&
27
- (h=""))),d.value=h;"SELECT"==d.tagName&&K(d);u(g)}d=a[e];g=q(d,!1);g=X(g);!1!==g&&"lookup"!=g.fieldType&&za(g,d,"value changed");d=a[e];if(g="undefined"!==typeof __FRMCALC){g=d.type;h=!1;if("text"==g||"hidden"==g||"number"==g)h=!0;g=h}if(g){g=__FRMCALC;h=d.name;k=d.id.replace("field_","");if(C(h))for(h=k.split("-"),k="",l=0;l<h.length-1;l++)k=""===k?h[l]:k+"-"+h[l];h=k;k=null;C(d.name)&&(k="hidden"!=d.type?jQuery(d).closest(".frm_form_field"):jQuery(d));d=k;void 0!==g.calc[h]&&Y(g,h,[],d)}d=a[e]}}
28
- function J(a,b){var c=q(a,!0);return x("frm_field_"+c+"_container",b)}function T(a,b){if(!x(a.containerId,a.formId)){if(b){jQuery("#"+a.containerId).hide();var c=sa(a.containerId)}else c=ua(a);Z(c);Aa(a.containerId,a.formId)}}function Z(a){if(!(1>a.length)){for(var b,c=!0,d=0,f=a.length;d<f;d++)-1<a[d].className.indexOf("frm_dnc")||(0<d&&b.name!=a[d].name&&!0===c&&u(jQuery(b)),c=!0,"radio"==a[d].type||"checkbox"==a[d].type?a[d].checked=!1:"SELECT"==a[d].tagName?(0===a[d].selectedIndex?c=!1:a[d].selectedIndex=
29
- 0,b=a[d].id.replace(/[^\w]/g,"_"),null!==document.getElementById(b+"_chosen")&&jQuery(a[d]).trigger("chosen:updated")):a[d].value=""),b=a[d];!0===c&&u(jQuery(b))}}function x(a,b){var c=!1;-1<A(b).indexOf(a)&&(c=!0);return c}function Aa(a,b){var c=A(b);if(!(-1<c.indexOf(a))){c.push(a);var c=JSON.stringify(c),d=document.getElementById("frm_hide_fields_"+b);null!==d&&(d.value=c)}}function A(a){var b=[];a=document.getElementById("frm_hide_fields_"+a);return null===a?b:b=(b=a.value)?JSON.parse(b):[]}function ya(a,
30
- b){for(var c=document.getElementsByName(a),d=0,f=c.length;d<f;d++)if("hidden"==c[d].type)jQuery.isArray(b)&&null!==b[d]?c[d].value=b[d]:c[d].value=b;else if(c[d].value==b||jQuery.isArray(b)&&-1<b.indexOf(c[d].value))if(c[d].checked=!0,"radio"==c[d].type)break}function z(a,b){var c=A(b),d=c.indexOf(a);-1<d&&(c.splice(d,1),c=JSON.stringify(c),document.getElementById("frm_hide_fields_"+b).value=c)}function la(a,b,c){if(!("undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]||1>__FRMLOOKUP[a].dependents.length||
31
- null===b||"undefined"===typeof b)){a=__FRMLOOKUP[a];b=F(b[0].name);for(var d=0,f=a.dependents.length;d<f;d++)aa(a.dependents[d],b,c)}}function aa(a,b,c){a=X(a);if(!(!1===a||1>a.parents.length))if("lookup"==a.fieldType){if(""!==b.repeatRow){c=[];var d="frm_field_"+a.fieldId+"-",d=d+(b.repeatingSection+"-"+b.repeatRow+"_container");b=document.getElementById(d);null!==b&&c.push(b);b=c}else b=[],a.isRepeating?b=document.querySelectorAll(".frm_field_"+a.fieldId+"_container"):(c=document.getElementById("frm_field_"+
32
- a.fieldId+"_container"),null!==c&&b.push(c));c=0;for(d=b.length;c<d;c++){pa(a,b[c].id);var f=a,e=b[c];f.parentVals=Ba(f);if("select"==f.inputType)ib(f,e);else if("radio"==f.inputType||"checkbox"==f.inputType)if(!1===f.parentVals){var g=e.getElementsByTagName("input");Ca(f,e);Z(g)}else jb(f,e)}}else if("value changed"===c)for(c="field_"+a.fieldKey,c=a.isRepeating?""!==b.repeatingSection?'[id="'+c+"-"+b.repeatRow+'"]':'[id^="'+c+'-"]':'[id="'+c+'"]',b=document.querySelectorAll(c),c=0,d=b.length;c<d;c++)f=
33
- a,e=F(b[c].name),f.repeatRow=""!==e.repeatRow?e.repeatRow:"",za(a,b[c])}function X(a){return"undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]?!1:__FRMLOOKUP[a]}function za(a,b){a.parentVals=Ba(a);var c=b.id;c in p&&0<p[c].length?Da(a,b):(Da(a,b),Ea(a,b))}function Ba(a){for(var b=[],c=a.parents,d,f=0,e=c.length;f<e;f++){d=X(c[f]);d=va(d,a);if(""===d||!1===d){b=!1;break}b[f]=d}return b}function V(a){for(var b=!1,c=a.length,d=0;d<c;d++)if("hidden"==a[d].type||a[d].checked){b=a[d].value;
34
- break}return b}function ib(a,b){var c=b.getElementsByTagName("SELECT")[0];if(null!==c){var d=c.value;!1===a.parentVals?(c.options.length=1,c.value="",K(c),""!==d&&u(jQuery(c),a.fieldKey)):(kb(c),ba(a.formId),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_replace_lookup_field_options",parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,nonce:frm_js.nonce},success:function(d){var f=c.value;d=JSON.parse(d);for(var g=c.options.length;0<g;g--)c.remove(g);for(var h=d.length,
35
- g=0;g<h;g++)c.options[g+1]=new Option(d[g],d[g],!1,!1);c.value=f;""===c.value&&(d=c.getAttribute("data-frmval"),null!==d&&(c.value=d));!1===a.isReadOnly&&(c.disabled=!1);c.className=c.className.replace(" frm_loading_lookup","");K(c);c.value!=f&&u(jQuery(c),a.fieldKey);Fa(jQuery(b));ca(a.formId)}}))}}function K(a){-1<a.className.indexOf("frm_chzn")&&jQuery().chosen&&jQuery(a).trigger("chosen:updated")}function kb(a){a.className+=" frm_loading_lookup";a.disabled=!0;K(a)}function ba(a){L++;1>=L&&(a=
36
- Ga(a),null!==a&&P(jQuery(a)))}function ca(a){L--;0>=L&&(a=Ga(a),null!==a&&E(jQuery(a),"enable"))}function Ga(a){return document.querySelector("#frm_form_"+a+"_container form")}function jb(a,b){var c=b.getElementsByClassName("frm_opt_container")[0],d=c.getElementsByTagName("input");lb(b,c);var f="",f="radio"==a.inputType?V(d):I(d),e=jQuery(d[0]).data("frmval");ba(a.formId);jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_replace_cb_radio_lookup_options",parent_fields:a.parents,parent_vals:a.parentVals,
37
- field_id:a.fieldId,container_field_id:H(a),row_index:a.repeatRow,current_value:f,default_value:e,nonce:frm_js.nonce},success:function(f){c.innerHTML=f;f=b.getElementsByClassName("frm-loading-img")[0];null!==f&&void 0!==f&&f.parentNode.removeChild(f);c.style.display="block";1==d.length&&""===d[0].value?Ca(a,b):(!1!==x(b.id,a.formId)&&(f=S(a.fieldId),!1===f||1>f.conditions.length?(z(b.id,a.formId),jQuery("#"+b.id).show()):(f.containerId=b.id,f.repeatRow=a.repeatRow,qa(f))),void 0!==e&&(!1!==("radio"==
38
- a.inputType?V(d):I(d))||1>d.length||ya(d[0].name,e)));u(jQuery(d[0]),a.fieldKey);Fa(jQuery(b));ca(a.formId)}})}function Fa(a){a.trigger("frmLookupOptionsLoaded")}function Ca(a,b){x(b.id,a.formId)||(jQuery("#"+b.id).hide(),Aa(b.id,a.formId))}function Ea(a,b){if(J(b,a.formId))da(b.id);else if(!1===a.parentVals){var c=b.getAttribute("data-frmval");null===c&&(c="");Ha(a,b,c);da(b.id)}else ba(a.formId),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_get_lookup_text_value",parent_fields:a.parents,
39
- parent_vals:a.parentVals,field_id:a.fieldId,nonce:frm_js.nonce},success:function(c){J(b,a.formId)||b.value==c||Ha(a.fieldKey,b,c);ca(a.formId);da(b.id)}})}function Da(a,b){var c=b.id;c in p?2<=p[c].length&&(p[c]=p[c].slice(0,1)):p[c]=[];p[c].push({childFieldArgs:a,childInput:b})}function da(a){p[a].shift();a in p&&0<p[a].length&&Ea(p[a][0].childFieldArgs,p[a][0].childInput)}function Ha(a,b,c){c=c.replace(/&amp;/g,"&");b.value=c;u(jQuery(b),a)}function eb(a,b){if(b){var c=jQuery("#"+a.containerId);
40
- Ia(c)}jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_fields_ajax_get_data",entry_id:a.dataLogic.actualValue,current_field:a.fieldId,hide_id:a.containerId,on_current_page:b,nonce:frm_js.nonce},success:function(d){if(b){var f=c.find(".frm_opt_container");f.html(d);var e=f.children("input"),g=e.val();Ja(f);""===d||""===g?T(a,!0):Ka(a,c,e,!0)}else f="field_"+a.fieldKey,""!==a.repeatRow&&(f+="-"+a.repeatRow),f=document.getElementById(f),f.value=d,x(a.containerId,a.formId)&&z(a.containerId,
41
- a.formId),u(jQuery(f))}})}function fb(a,b){var c=jQuery("#"+a.containerId),d=c.find('select[name^="item_meta"], input[name^="item_meta"]'),f=La(d),d=d.data("frmval"),e=c.closest("form").find('input[name="id"]').val();Ia(c);jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_fields_ajax_data_options",trigger_field_id:a.dataLogic.fieldId,entry_id:a.dataLogic.actualValue,field_id:a.fieldId,default_value:d,container_id:a.containerId,editing_entry:e,prev_val:f,nonce:frm_js.nonce},success:function(b){var d=
42
- c.find(".frm_opt_container");d.html(b);var e=d.find('select, input[type="checkbox"], input[type="radio"]');Ja(d);""===b||1>e.length?T(a,!0):(b=La(e),Ka(a,c,e,f!==b))}})}function Ia(a){var b=a.html();-1<b.indexOf("frm-loading-img")||(a.html(b+'<span class="frm-loading-img"></span>'),a.find(".frm_opt_container").hide())}function lb(a,b){if(!(-1<a.innerHTML.indexOf("frm-loading-img"))){b.style.display="none";var c=document.createElement("span");c.setAttribute("class","frm-loading-img");a.insertBefore(c,
43
- b.nextSibling)}}function Ja(a){a.parent().children(".frm-loading-img").remove();a.show()}function La(a){var b=[],c="";a.each(function(){c=this.value;"radio"===this.type||"checkbox"===this.type?!0===this.checked&&b.push(c):""!==c&&b.push(c)});0===b.length&&(b="");return b}function Ka(a,b,c,d){x(a.containerId,a.formId)&&(z(a.containerId,a.formId),b.show());c.hasClass("frm_chzn")&&ea();!0===d&&u(c)}function Q(a,b){if("undefined"!==typeof __FRMCALC){var c=__FRMCALC,d=c.fields[a];if("undefined"!==typeof d)for(var d=
44
- d.total,f=[],e=0,g=d.length;e<g;e++){var h=c.calc[d[e]];var k=b.attr("name"),l=!1,m=h.field_id,n=A(h.form_id);1>n.length||("0"===h.inSection&&"0"===h.inEmbedForm?l=M(m,n):(k=F(k),M(m,n)?l=!0:Ma(m,k,n)?l=!0:"0"!==h.inSection&&"0"!==h.inEmbedForm?l=Ma(h.inSection,k,n):"0"!==h.inSection?l=M(h.inSection,n):"0"!==h.inEmbedForm&&(l=M(h.inEmbedForm,n))));h=l;!1===h&&Y(c,d[e],f,b)}}}function M(a,b){return-1<b.indexOf("frm_field_"+a+"_container")}function Ma(a,b,c){var d=!1;b.repeatingSection&&(a="frm_field_"+
45
- a+"-"+b.repeatingSection,a+="-"+b.repeatRow+"_container",d=-1<c.indexOf(a));return d}function Y(a,b,c,d){var f=a.calc[b],e=f.calc,g=jQuery(document.getElementById("field_"+b)),h={triggerField:d,inSection:!1,thisFieldCall:'input[id^="field_'+b+'-"]'};1>g.length&&"undefined"!==typeof d&&(h.inSection=!0,h.thisFieldId=mb(a.fieldsWithCalc,b),g=Na(h));if(!(null===g||1>g.length)){e=nb(f,e,a,c,h);if("text"!=f.calc_type){a=f.calc_dec;-1<e.indexOf(").toFixed(")&&(c=e.split(").toFixed("),Oa(c[1])&&(a=c[1],e=
46
- e.replace(").toFixed("+a,"")));e=ob(e);e=parseFloat(eval(e));if("undefined"===typeof e||isNaN(e))e=0;Oa(a)&&(e=e.toFixed(a))}g.val()!==e&&(g.val(e),u(g,b))}}function nb(a,b,c,d,f){for(var e=0,g=a.fields.length;e<g;e++){var h={triggerField:f.triggerField,thisFieldId:a.fields[e],inSection:f.inSection,valKey:f.inSection+""+a.fields[e],thisField:c.fields[a.fields[e]],thisFieldCall:"input"+c.fieldKeys[a.fields[e]]},k=c;"checkbox"==h.thisField.type||"radio"==h.thisField.type||"scale"==h.thisField.type?
47
- h.thisFieldCall=h.thisFieldCall+":checked,"+h.thisFieldCall+"[type=hidden]":"select"==h.thisField.type||"time"==h.thisField.type?h.thisFieldCall="select"+k.fieldKeys[h.thisFieldId]+" option:selected,"+h.thisFieldCall+"[type=hidden]":"textarea"==h.thisField.type&&(h.thisFieldCall=h.thisFieldCall+",textarea"+k.fieldKeys[h.thisFieldId]);if("text"==a.calc_type)h.valKey="text"+h.valKey,d=pb(h,d),"undefined"===typeof d[h.valKey]&&(d[h.valKey]="");else{h.valKey="num"+h.valKey;d=qb(h,c,d);if("undefined"===
48
- typeof d[h.valKey]||isNaN(d[h.valKey]))d[h.valKey]=0;"date"==h.thisField.type&&0===d[h.valKey]&&(b="")}k="["+h.thisFieldId+"]";k=k.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1");b=b.replace(new RegExp(k,"g"),d[h.valKey])}return b}function ob(a){var b=a.charAt(a.length-1);if("+"===b||"-"===b)a=a.substr(0,a.length-1);return a}function C(a){return 3<=a.split("][").length}function qb(a,b,c){if("undefined"!==typeof c[a.valKey]&&0!==c[a.valKey])return c;c[a.valKey]=0;var d=Pa(a);if(!1===d)return c;d.each(function(){var d=
49
- Qa(a.thisField,this);if("date"==a.thisField.type){var e=b.date;var g=0;if(d)if("undefined"===typeof jQuery.datepicker){g="-";-1<e.indexOf("/")&&(g="/");e=e.split(g);var d=d.split(g),h;var k=g=h="";for(var l=0;l<e.length;l++)if("y"==e[l])k=((new Date).getFullYear()+15).toString().substr(2,2),k=d[l]>k?"19"+d[l]:"20"+d[l];else if("yy"==e[l])k=d[l];else if("m"==e[l]||"mm"==e[l])g=d[l],2>g.length&&(g="0"+g);else if("d"==e[l]||"dd"==e[l])h=d[l],2>h.length&&(h="0"+h);g=Date.parse(k+"-"+g+"-"+h)}else g=jQuery.datepicker.parseDate(e,
50
- d);e=g;null!==e&&(c[a.valKey]=Math.ceil(e/864E5))}else{e=d;""!==e&&0!==e&&(e=e.trim(),e=parseFloat(e.replace(/,/g,"").match(/-?[\d\.]+$/)));if("undefined"===typeof e||isNaN(e)||""===e)e=0;c[a.valKey]+=e}});return c}function pb(a,b){if("undefined"!==typeof b[a.valKey]&&""!==b[a.valKey])return b;b[a.valKey]="";var c=Pa(a);if(!1===c)return b;var d=0,f="";c.each(function(){var c=Qa(a.thisField,this),c=c.trim();0<d&&("time"==a.thisField.type?1==d?f=":":2==d&&(f=" "):f=", ");""!==c&&(b[a.valKey]+=f+c,d++)});
51
- return b}function Pa(a){if(!1===a.inSection)var b=jQuery(a.thisFieldCall);else if(b=Na(a),null===b||"undefined"===typeof b)b=jQuery(a.thisFieldCall);if(null===b||"undefined"===typeof b||1>b.length)b=!1;return b}function Na(a){if("undefined"===typeof a.triggerField)return null;var b=a.triggerField.closest(".frm_repeat_sec, .frm_repeat_inline, .frm_repeat_grid");return b.length?(a=a.thisFieldCall.replace("[id=","[id^="),b.find(a)):null}function Qa(a,b){var c=!1;if("hidden"==b.type)""!==fa(b)&&(c=!0);
52
- else if("select"==a.type){var d=b.className;d&&-1<d.indexOf("frm_other_trigger")&&(c=!0)}else("checkbox"==a.type||"radio"==a.type)&&-1<b.id.indexOf("-other_")&&0>b.id.indexOf("-otext")&&(c=!0);c?(c=0,"select"==a.type?"hidden"==b.type?(d=!1,2<b.name.split("[").length&&(d=!0),d||(c=fa(b))):c=jQuery(b).closest(".frm_other_container").find(".frm_other_input").val():"checkbox"!=a.type&&"radio"!=a.type||"hidden"==b.type||(c=fa(b))):c="checkbox"!==b.type&&"radio"!==b.type||!b.checked?jQuery(b).val():b.value;
53
- "undefined"===typeof c&&(c="");return c}function fa(a){var b="";a=document.getElementById(a.id+"-otext");null!==a&&""!==a.value&&(b=a.value);return b}function Ra(a){var b=!1;a=jQuery(a).find(".frm_saving_draft");a.length&&(b=a.val());return b}function Sa(a){var b=!1,c=jQuery(a).find(".frm_next_page");if(c.length&&c.val()){var d=jQuery(a).find('input[name="form_id"]').val();a=jQuery(a).find('input[name="frm_page_order_'+d+'"]');a=a.length?a.val():0;if(!a||c.val()<a)b=!0}return b}function O(a,b){var c=
54
- a.getAttribute("data-frmfile");if("hidden"==a.type&&null===c)return b;var d="",f="";if("checkbox"==a.type||"radio"==a.type)c=jQuery('input[name="'+a.name+'"]').closest(".frm_required_field").find("input:checked"),jQuery(c).each(function(){d=this.value});else if("file"==a.type||c)"undefined"===typeof c&&(c=q(a,!0),c=c.replace("file","")),"undefined"===typeof b[c]&&(d=rb(c)),f=c;else{c=a.className;if(-1!==c.indexOf("frm_pos_none"))return b;d=jQuery(a).val();if(null===d)d="";else if("string"!==typeof d)for(var f=
55
- d,d="",e=0;e<f.length;e++)""!==f[e]&&(d=f[e]);f=-1===c.indexOf("frm_other_input")?q(a,!0):q(a,!1);-1!==c.indexOf("frm_time_select")&&(f=f.replace("-H","").replace("-m",""))}""===d&&(""===f&&(f=q(a,!0)),f in b||(b[f]=B(a,"data-reqmsg")));return b}function rb(a){var b="";jQuery('input[name="file'+a+'"], input[name="file'+a+'[]"], input[name^="item_meta['+a+']"]').each(function(){""===b&&(b=this.value)});return b}function ma(a,b,c){var d=a.value,f=q(a,!0);if(f in b)return b;var e=0===f.indexOf("conf_");
56
- if(""!==d||e){var g=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i,h=B(a,"data-invmsg");""!==d&&!1===g.test(d)?(b[f]=h,e&&(b[f.replace("conf_","")]="")):e&&(a=a.name.replace("conf_",""),c.filter('[name="'+a+'"]').val()!==d&&(b[f]="",b[f.replace("conf_","")]=""))}return b}function na(a,b){var c=a.value;""!==c&&!1!==isNaN(c/1)&&(c=q(a,!0),c in b||(b[c]=B(a,"data-invmsg")));return b}function oa(a,
57
- b){var c=a.value,d=B(a,"pattern");if(""!==d&&""!==c){var f=q(a,!0);f in b||(d=new RegExp("^"+d+"$","i"),!1===d.test(c)&&(b[f]=B(a,"data-invmsg")))}return b}function B(a,b){var c=a.getAttribute(b);null===c&&(c="");return c}function sb(a,b){"undefined"==typeof b&&jQuery(a).find('input[name="frm_action"]').val();var c=jQuery(a).find(".frm_form_field");c.addClass("frm_doing_ajax");jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:jQuery(a).serialize()+"&action=frm_entries_"+b+"&nonce="+frm_js.nonce,success:function(b){var d=
58
- {content:"",errors:{},pass:!1};null===b&&(b=d);b=b.replace(/^\s+|\s+$/g,"");b=0===b.indexOf("{")?jQuery.parseJSON(b):d;if("undefined"!=typeof b.redirect)jQuery(document).trigger("frmBeforeFormRedirect",[a,b]),window.location=b.redirect;else if(""!==b.content){E(jQuery(a));-1!=frm_js.offset&&frmFrontForm.scrollMsg(jQuery(a),!1);var e=jQuery(a).find('input[name="form_id"]').val();b.content=b.content.replace(/ frm_pro_form /g," frm_pro_form frm_no_hide ");jQuery(a).closest(".frm_forms").replaceWith(b.content);
59
- d=b;if(history.pushState&&"undefined"!=typeof d.page){var g=d.page;var h=encodeURI("frm_page");for(var g=encodeURI(g),k=document.location.search.substr(1).split("&"),l=k.length,m;l--;)if(m=k[l].split("="),m[0]==h){m[1]=g;k[l]=m.join("=");break}0>l&&(k[k.length]=[h,g].join("="));h=k.join("&");window.history.pushState({html:d.html},"","?"+h)}"function"==typeof frmThemeOverride_frmAfterSubmit&&(e=jQuery('input[name="frm_page_order_'+e+'"]').val(),d=jQuery(b.content).find('input[name="form_id"]').val(),
60
- frmThemeOverride_frmAfterSubmit(d,e,b.content,a));jQuery(b.content).find(".frm_message").length?(jQuery(document).trigger("frmFormComplete",[a,b]),ga("pageLoad"),b=jQuery(a).find('input[name="id"]'),b.length&&(b=document.getElementById("frm_edit_"+b.val()),null!==b&&-1<b.className.indexOf("frm_cancel_edit")&&Ta(jQuery(b)))):jQuery(document).trigger("frmPageChanged",[a,b]);ha()}else if(Object.keys(b.errors).length){E(jQuery(a),"enable");d=!0;Ua();h=!1;for(e in b.errors)g=jQuery(a).find("#frm_field_"+
61
- e+"_container"),g.length&&(g.is(":visible")||(k=g.closest(".frm_toggle_container"),k.length&&(k=k.prev(),k.hasClass("frm_trigger")||(k=k.prev(".frm_trigger")),k.click())),g.is(":visible")&&(R(g,e,b.errors),d=!1,g=jQuery(a).find("#frm_field_"+e+"_container .frm-g-recaptcha, #frm_field_"+e+"_container .g-recaptcha"),g.length&&(h=!0,g=g.data("rid"),jQuery().grecaptcha&&(g?grecaptcha.reset(g):grecaptcha.reset()))));jQuery(document).trigger("frmFormErrors",[a,b]);c.removeClass("frm_doing_ajax");Va(a);
62
- !0!==h&&Wa(a,!1);d?a.submit():jQuery(a).prepend(b.error_message)}else tb(a),Wa(a,!0),a.submit()},error:function(){jQuery(a).find('input[type="submit"], input[type="button"]').removeAttr("disabled");a.submit()}})}function R(a,b,c){a.length&&a.is(":visible")&&(a.addClass("frm_blank_field"),"function"==typeof frmThemeOverride_frmPlaceError?frmThemeOverride_frmPlaceError(b,c):a.append('<div class="frm_error">'+c[b]+"</div>"))}function Ua(){jQuery(".form-field").removeClass("frm_blank_field has-error");
63
- jQuery(".form-field .frm_error").replaceWith("");jQuery(".frm_error_style").remove()}function Va(a){var b=jQuery(a).find(".frm_blank_field:first");b.length&&frmFrontForm.scrollMsg(b,a,!0)}function P(a){a.hasClass("frm_loading_form")||(a.addClass("frm_loading_form"),a.trigger("frmStartFormLoading"));a.find('input[type="submit"], input[type="button"], button[type="submit"]').attr("disabled","disabled")}function E(a,b){a.removeClass("frm_loading_form");a.trigger("frmEndFormLoading");"enable"==b&&a.find('input[type="submit"], input[type="button"], button[type="submit"]').removeAttr("disabled")}
64
  function tb(a){var b=document.getElementById("frm_loading");null!==b&&(a=jQuery(a).find("input[type=file]").val(),"undefined"!=typeof a&&""!==a&&setTimeout(function(){jQuery(b).fadeIn("slow")},2E3))}function Wa(a,b){var c=jQuery(a).find(".frm-g-recaptcha, .g-recaptcha");c.length&&(!b||1>jQuery(a).find(".frm_next_page").length||1>jQuery(a).find(".frm_next_page").val())&&c.closest(".frm_form_field").replaceWith('<input type="hidden" name="recaptcha_checked" value="'+frm_js.nonce+'">')}function ub(){Xa(jQuery(this),
65
  "clear")}function vb(){Xa(jQuery(this),"replace")}function Xa(a,b){var c=a.data("frmval").replace(/(\n|\r\n)/g,"\r");if(""===c||"undefined"==typeof c)return!1;var d=a.val().replace(/(\n|\r\n)/g,"\r");"replace"==b?""===d&&a.addClass("frm_default").val(c):d==c&&a.removeClass("frm_default").val("")}function wb(){var a=jQuery(this),b=a.data("eid"),c=a.data("fid");a.append('<span class="spinner" style="display:inline"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_send_email",
66
  entry_id:b,form_id:c,nonce:frm_js.nonce},success:function(b){a.replaceWith(b)}});return!1}function xb(a,b){google.load("visualization","1.0",{packages:[b],callback:function(){var b=new google.visualization.DataTable,d=!1;-1!==jQuery.inArray("id",a.options.fields)&&(d=!0,b.addColumn("number",frm_js.id));for(var f=a.fields.length,e,g=0,h=f;g<h;g++){var k=a.fields[g];e=Ya(k);b.addColumn(e,k.name)}g=!1;a.options.edit_link&&(g=!0,b.addColumn("string",a.options.edit_link));h=!1;a.options.delete_link&&(h=
67
- !0,b.addColumn("string",a.options.delete_link));if(null!==a.entries){var l=a.entries.length;b.addRows(l);for(var m=0,n=0;n<l;n++){var k=0,p=a.entries[n];d&&(b.setCell(m,k,p.id),k++);for(var q=0,t=f;q<t;q++){var r=a.fields[q];e=Ya(r);r=p.metas[r.id];"number"!=e||null!==r&&""!==r?"boolean"==e&&(r=null===r||"false"==r||!1===r?!1:!0):r=0;b.setCell(m,k,r);k++}g&&("undefined"!==typeof p.editLink?b.setCell(m,k,'<a href="'+p.editLink+'">'+a.options.edit_link+"</a>"):b.setCell(m,k,""),k++);h&&("undefined"!==
68
- typeof p.deleteLink?b.setCell(m,k,'<a href="'+p.deleteLink+'" class="frm_delete_link" data-frmconfirm="'+a.options.confirm+'">'+a.options.delete_link+"</a>"):b.setCell(m,k,""));m++}}else for(b.addRows(1),g=k=0,h=f;g<h;g++)0<k?b.setCell(0,k,""):b.setCell(0,k,a.options.no_entries),k++;(new google.visualization.Table(document.getElementById("frm_google_table_"+a.options.form_id))).draw(b,a.graphOpts)}})}function yb(a){google.load("visualization","1.0",{packages:[a["package"]],callback:function(){new google.visualization.DataTable;
69
  var b=google.visualization.arrayToDataTable(a.data);var c=document.getElementById("chart_"+a.graph_id);if(null!==c){var d=a.type.charAt(0).toUpperCase()+a.type.slice(1);"Histogram"!==d&&"Table"!==d&&(d+="Chart");c=new google.visualization[d](c);c.draw(b,a.options);jQuery(document).trigger("frmDrawChart",[c,"chart_"+a.graph_id,b])}}})}function Ya(a){var b="string";if("number"==a.type)b="number";else if("checkbox"==a.type||"select"==a.type){var c=a.options.length;"select"==a.type&&""===a.options[0]&&
70
- (c="post_status"==a.field_options.post_field?3:c-1);1==c&&(b="boolean")}return b}function zb(){var a=jQuery(this).data("key"),b=jQuery(this).data("parent"),c="frm_section_"+b+"-"+a,d=jQuery(document.getElementById(c)),f=d.find("input, select, textarea"),e=jQuery(this).closest("form").find('input[name="form_id"]').val();d.fadeOut("slow",function(){d.remove();f.each(function(){var c=q(this,!1);"file"!=this.type&&Q(c,jQuery(this));z("frm_field_"+c+"-"+b+"-"+a+"_container",e)});"function"==typeof frmThemeOverride_frmRemoveRow&&
71
- frmThemeOverride_frmRemoveRow(c,d);jQuery(document).trigger("frmAfterRemoveRow")});return!1}function Ab(){if(!0===N)return!1;N=!0;var a=jQuery(this).data("parent"),b=0;if(0<jQuery(".frm_repeat_"+a).length)var c=jQuery(".frm_repeat_"+a+":last").attr("id").replace("frm_section_"+a+"-",""),b=-1<c.indexOf("i")?1:1+parseInt(c);jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_add_form_row",field_id:a,i:b,nonce:frm_js.nonce},success:function(c){var d=c.html,e=jQuery(d).hide().fadeIn("slow");
72
- jQuery(".frm_repeat_"+a+":last").after(e);var g=["other"],h,k,l={repeatingSection:a.toString(),repeatRow:b.toString()};jQuery(d).find("input, select, textarea").each(function(){if("file"!=this.type){if(""===this.name)return!0;h=this.name.replace("item_meta[","").split("]")[2].replace("[","");-1==jQuery.inArray(h,g)&&!1!==this.id&&""!==this.id&&(k=jQuery("#"+this.id),g.push(h),G(h,l),aa(h,l,"value changed"),ka(h,k),la(h,k,"value changed"),Q(h,k))}});w(l.repeatRow);Za();ea();"function"==typeof frmThemeOverride_frmAddRow&&
73
- frmThemeOverride_frmAddRow(a,c);jQuery(document).trigger("frmAfterAddRow");N=!1},error:function(){N=!1}});return!1}function Bb(){var a=jQuery(this),b=a.data("entryid"),c=a.data("prefix"),d=a.data("pageid"),f=a.data("formid"),e=a.data("cancel"),g=a.data("fields"),h=a.data("excludefields"),k=jQuery(document.getElementById(c+b)),l=k.html();k.html('<span class="frm-loading-img" id="'+c+b+'"></span><div class="frm_orig_content" style="display:none">'+l+"</div>");jQuery.ajax({type:"POST",url:frm_js.ajax_url,
74
- dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:d,entry_id:b,id:f,nonce:frm_js.nonce,fields:g,exclude_fields:h},success:function(d){k.children(".frm-loading-img").replaceWith(d);a.removeClass("frm_inplace_edit").addClass("frm_cancel_edit");a.html(e);ga("editInPlace");jQuery(document).on("change",'.frm-show-form input[name^="item_meta"], .frm-show-form select[name^="item_meta"], .frm-show-form textarea[name^="item_meta"]',ja);ha(c+b)}});return!1}function Cb(){var a=jQuery(this),
75
  b=a.data("prefix"),c=a.data("entryid"),b=jQuery(document.getElementById(b+c));b.children(".frm_forms").replaceWith("");b.children(".frm_orig_content").fadeIn("slow").removeClass("frm_orig_content");Ta(a)}function Ta(a){var b=a.data("edit");a.removeClass("frm_cancel_edit").addClass("frm_inplace_edit");a.html(b)}function Db(){var a=jQuery(this),b=a.data("deleteconfirm");if(confirm(b)){var c=a.data("entryid"),d=a.data("prefix");a.replaceWith('<span class="frm-loading-img" id="frm_delete_'+c+'"></span>');
76
- jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_destroy",entry:c,nonce:frm_js.nonce},success:function(a){if("success"==a.replace(/^\s+|\s+$/g,"")){var b=jQuery(document.getElementById(d+c));b.fadeOut("slow",function(){b.remove()});jQuery(document.getElementById("frm_delete_"+c)).fadeOut("slow")}else jQuery(document.getElementById("frm_delete_"+c)).replaceWith(a)}})}return!1}function Eb(){for(var a=__frmUniqueTimes,b=0;b<a.length;b++)a[b].dateID==this.id&&frmFrontForm.removeUsedTimes(this,
77
- a[b].timeID)}function ha(a){"undefined"!==typeof __frmHideFields&&frmFrontForm.hidePreviouslyHiddenFields();jQuery(document).on("focusin",".frm_date",t);if("undefined"!==typeof __frmUniqueTimes)for(var b=__frmUniqueTimes,c=0;c<b.length;c++)jQuery(document.getElementById(b[c].dateID)).change(Eb);if("undefined"!==typeof __frmMasks)for(b=__frmMasks,c=0;c<b.length;c++)jQuery(b[c].trigger).attr("data-frmmask",b[c].mask);Za();ea(a);"undefined"!==typeof __frmDepDynamicFields&&frmFrontForm.checkDependentDynamicFields(__frmDepDynamicFields);
78
- "undefined"!==typeof __frmDepLookupFields&&frmFrontForm.checkDependentLookupFields(__frmDepLookupFields);if("undefined"!==typeof __FRMCALC){(a=__FRMCALC.triggers)&&jQuery(a.join()).trigger({type:"change",selfTriggered:!0});a=__FRMCALC.calc;var b=[],d;for(d in a)1>a[d].fields.length&&(c=document.getElementById("field_"+d),null===c||J(c,a[d].form_id)||Y(__FRMCALC,d,b))}w()}function ea(a){if(jQuery().chosen){var b={allow_single_deselect:!0,no_results_text:frm_js.no_results};"undefined"!==typeof __frmChosen&&
79
- (b="{"+__frmChosen+"}");"undefined"!==typeof a?jQuery("#"+a).find(".frm_chzn").chosen(b):jQuery(".frm_chzn").chosen(b)}}function Za(){if(jQuery().rating){var a=jQuery(".star");a.length&&a.rating()}}function ga(a){"undefined"!==typeof __frmHideOrShowFields?frmFrontForm.hideOrShowFields(__frmHideOrShowFields,a):$a()}function $a(){jQuery(".frm_pro_form").fadeIn("slow")}function u(a,b){"undefined"===typeof b&&(b="dependent");1<a.length&&(a=a.eq(0));a.trigger({type:"change",selfTriggered:!0,frmTriggered:b})}
80
- function F(a){var b={repeatingSection:"",repeatRow:""};"undefined"!==typeof a&&C(a)&&(a=a.split("]["),b.repeatingSection=a[0].replace("item_meta[",""),b.repeatRow=a[1]);return b}function bb(a){a.fadeOut("slow",function(){a.remove()})}function Fb(){var a=jQuery(this).data("frmconfirm");return confirm(a)}function Gb(){var a=jQuery(this).data("frmtoggle");jQuery(a).is(":visible")?jQuery(a).slideUp("fast"):jQuery(a).slideDown("fast");return!1}function mb(a,b){for(var c in a)if(a.hasOwnProperty(c)&&a[c]===
81
- b)return c;return null}function Oa(a){return!jQuery.isArray(a)&&0<=a-parseFloat(a)+1}function Hb(){Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c=this.length>>>0,d=Number(b)||0,d=0>d?Math.ceil(d):Math.floor(d);for(0>d&&(d+=c);d<c;d++)if(d in this&&this[d]===a)return d;return-1})}function Ib(){"function"!==typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})}function Jb(){Array.prototype.filter||(Array.prototype.filter=function(a,
82
- b){if(void 0===this||null===this)throw new TypeError;var c=Object(this),d=c.length>>>0;if("function"!==typeof a)throw new TypeError;for(var f=[],e=0;e<d;e++)if(e in c){var g=c[e];a.call(b,g,e,c)&&f.push(g)}return f})}function Kb(){Object.keys||(Object.keys=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b})}var N=!1,y="",v=[],L=0,p={};return{init:function(){jQuery(document).off("submit.formidable",".frm-show-form");jQuery(document).on("submit.formidable",".frm-show-form",frmFrontForm.submitForm);
83
- jQuery(document).on("click",".frm_trigger",n);var a=jQuery(".frm_blank_field");a.length&&a.closest(".frm_toggle_container").prev(".frm_trigger").click();jQuery.isFunction(jQuery.fn.placeholder)?jQuery(".frm-show-form input, .frm-show-form textarea").placeholder():jQuery(".frm-show-form input[onblur], .frm-show-form textarea[onblur]").each(function(){""===jQuery(this).val()&&jQuery(this).blur()});jQuery(document).on("focus",".frm_toggle_default",ub);jQuery(document).on("blur",".frm_toggle_default",
84
- vb);jQuery(".frm_toggle_default").blur();jQuery(document.getElementById("frm_resend_email")).click(wb);jQuery(document).on("click",".frm_remove_link",ab);jQuery(document).on("focusin","input[data-frmmask]",function(){jQuery(this).mask(jQuery(this).data("frmmask").toString())});jQuery(document).on("change",'.frm-show-form input[name^="item_meta"], .frm-show-form select[name^="item_meta"], .frm-show-form textarea[name^="item_meta"]',ja);jQuery(document).on("click",'.frm-show-form input[type="submit"], .frm-show-form input[name="frm_prev_page"], .frm_page_back, .frm_page_skip, .frm-show-form .frm_save_draft, .frm_prev_page, .frm_button_submit',
85
- m);jQuery(document).on("change",'.frm_other_container input[type="checkbox"], .frm_other_container input[type="radio"], .frm_other_container select',cb);jQuery(document).on("click",".frm_remove_form_row",zb);jQuery(document).on("click",".frm_add_form_row",Ab);jQuery(document).on("click","a[data-frmconfirm]",Fb);jQuery("a[data-frmtoggle]").click(Gb);jQuery(".frm_edit_link_container").on("click","a.frm_inplace_edit",Bb);jQuery(".frm_edit_link_container").on("click","a.frm_cancel_edit",Cb);jQuery(document).on("click",
86
- ".frm_ajax_delete",Db);jQuery(".frm_month_heading, .frm_year_heading").click(function(){var a=jQuery(this).children(".ui-icon-triangle-1-e, .ui-icon-triangle-1-s");a.hasClass("ui-icon-triangle-1-e")?(a.addClass("ui-icon-triangle-1-s").removeClass("ui-icon-triangle-1-e"),jQuery(this).next(".frm_toggle_container").fadeIn("slow")):(a.addClass("ui-icon-triangle-1-e").removeClass("ui-icon-triangle-1-s"),jQuery(this).next(".frm_toggle_container").hide())});ga("pageLoad");ha();Hb();Ib();Jb();Kb()},submitForm:function(a){frmFrontForm.submitFormManual(a,
87
- this)},submitFormManual:function(a,b){var c=b.className.trim().split(/\s+/gi);if((!c||-1<c.indexOf("frm_pro_form"))&&!jQuery("body").hasClass("wp-admin")){a.preventDefault();var d=frmFrontForm.validateFormSubmit(b);0===Object.keys(d).length&&(P(jQuery(b)),-1<c.indexOf("frm_ajax_submit")?1>jQuery(b).find('input[type="file"]').filter(function(){return!!this.value}).length?(y=jQuery(b).find('input[name="frm_action"]').val(),frmFrontForm.checkFormErrors(b,y)):b.submit():b.submit())}},validateFormSubmit:function(a){"undefined"!=
88
- typeof tinyMCE&&jQuery(a).find(".wp-editor-wrap").length&&tinyMCE.triggerSave();v=[];var b=jQuery(a).hasClass("frm_js_validate");b&&(Ra(a)||Sa(a))&&(b=!1);b&&(frmFrontForm.getAjaxFormErrors(a),Object.keys(v).length&&frmFrontForm.addAjaxFormErrors(a));return v},getAjaxFormErrors:function(a){var b=[],c=jQuery(a).find(".frm_required_field:visible input, .frm_required_field:visible select, .frm_required_field:visible textarea").filter(":not(.frm_optional)");if(c.length)for(var d=0,f=c.length;d<f;d++)b=
89
- O(c[d],b);c=jQuery(a).find("input[type=email]").filter(":visible");d=jQuery(a).find("input,select,textarea");if(d.length)for(var f=0,e=d.length;f<e;f++){var g=d[f];""!==g.value&&"hidden"!=g.type&&("number"==g.type?b=na(g,b):"email"==g.type?b=ma(g,b,c):null!==g.pattern&&(b=oa(g,b)))}c=jQuery(a).find(".frm-g-recaptcha");c.length&&(d=c.data("rid"),0===grecaptcha.getResponse(d).length&&(c=c.closest(".frm_form_field").attr("id").replace("frm_field_","").replace("_container",""),b[c]=""));v=b;if("function"==
90
- typeof frmThemeOverride_jsErrors&&(y=jQuery(a).find('input[name="frm_action"]').val(),a=frmThemeOverride_jsErrors(y,a),Object.keys(a).length))for(var h in a)v[h]=a[h];return v},addAjaxFormErrors:function(a){Ua();for(var b in v){var c=jQuery(a).find("#frm_field_"+b+"_container");c.length?R(c,b,v):delete v[b]}Va(a)},checkFormErrors:function(a,b){sb(a,b)},scrollToID:function(a){a=jQuery(document.getElementById(a));frmFrontForm.scrollMsg(a,!1)},scrollMsg:function(a,b,c){if("undefined"==typeof b){if(a=
91
- jQuery(document.getElementById("frm_form_"+a+"_container")),1>a.length)return}else a="string"==typeof a?jQuery(b).find("#frm_field_"+a+"_container"):a;if(a=a.offset().top){a-=frm_js.offset;b=jQuery("html").css("margin-top");var d=jQuery("body").css("margin-top");if(b||d)a=a-parseInt(b)-parseInt(d);if(a&&window.innerHeight&&(b=document.documentElement.scrollTop||document.body.scrollTop,a>b+window.innerHeight||a<b))return"undefined"===typeof c?jQuery(window).scrollTop(a):jQuery("html,body").animate({scrollTop:a},
92
- 500),!1}},savingDraft:function(a){return Ra(a)},goingToPreviousPage:function(a){return Sa(a)},hideOrShowFields:function(a,b){if("pageLoad"===b){var c=document.querySelectorAll('[id^="frm_hide_fields_"]');Z(c)}for(var c={repeatingSection:"",repeatRow:""},d=0,f=a.length;d<f;d++)G(a[d],c),d==f-1&&$a()},hidePreviouslyHiddenFields:function(){var a=[];for(var b=document.querySelectorAll('*[id^="frm_hide_fields_"]'),c=b.length,d,f=0;f<c;f++)d=b[f].id.replace("frm_hide_fields_",""),a=a.concat(A(d));b=0;for(c=
93
- a.length;b<c;b++)d=document.getElementById(a[b]),null!==d&&(d.style.display="none")},checkDependentDynamicFields:function(a){for(var b={repeatingSection:"",repeatRow:""},c=0,d=a.length;c<d;c++)G(a[c],b)},checkDependentLookupFields:function(a){for(var b,c={repeatingSection:"",repeatRow:""},d=0,f=a.length;d<f;d++)b=a[d],aa(b,c,"value changed")},loadGoogle:function(){if("undefined"!==typeof google&&google&&google.load)for(var a=__FRMTABLES,b=Object.keys(a),c=0;c<b.length;c++)if("graphs"===b[c])for(var d=
94
- a[b[c]],f=0,e=d.length;f<e;f++)yb(d[f]);else for(d=a[b[c]],f=b[c],e=0;e<d.length;e++)xb(d[e],f);else setTimeout(frmFrontForm.loadGoogle,30)},removeUsedTimes:function(a,b){var c=jQuery(a).parents("form:first").find('input[name="id"]');jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_fields_ajax_time_options",time_field:b,date_field:a.id,entry_id:c?c.val():"",date:jQuery(a).val(),nonce:frm_js.nonce},success:function(a){var c=jQuery(document.getElementById(b));c.find("option").removeAttr("disabled");
95
- if(0<a.length)for(var d=0,g=a.length;d<g;d++)c.find('option[value="'+a[d]+'"]').attr("disabled","disabled")}})},escapeHtml:function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")},invisible:function(a){jQuery(a).css("visibility","hidden")},visible:function(a){jQuery(a).css("visibility","visible")}}}var frmFrontForm=frmFrontFormJS();jQuery(document).ready(function(m){frmFrontForm.init()});
96
- function frmRecaptcha(){for(var m=jQuery(".frm-g-recaptcha"),n=0,t=m.length;n<t;n++){var w=grecaptcha.render(m[n].id,{sitekey:m[n].getAttribute("data-sitekey"),size:m[n].getAttribute("data-size"),theme:m[n].getAttribute("data-theme")});m[n].setAttribute("data-rid",w)}}
97
- function frmUpdateField(m,n,t,w,D){jQuery(document.getElementById("frm_update_field_"+m+"_"+n)).html('<span class="frm-loading-img"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_update_field_ajax",entry_id:m,field_id:n,value:t,nonce:frm_js.nonce},success:function(){""===w.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById("frm_update_field_"+m+"_"+n+"_"+D)).fadeOut("slow"):jQuery(document.getElementById("frm_update_field_"+m+"_"+n+"_"+D)).replaceWith(w)}})}
98
- function frmDeleteEntry(m,n){console.warn("DEPRECATED: function frmDeleteEntry in v2.0.13 use frmFrontForm.deleteEntry");jQuery(document.getElementById("frm_delete_"+m)).replaceWith('<span class="frm-loading-img" id="frm_delete_'+m+'"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_destroy",entry:m,nonce:frm_js.nonce},success:function(t){"success"==t.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById(n+m)).fadeOut("slow"):jQuery(document.getElementById("frm_delete_"+
99
- m)).replaceWith(t)}})}function frmOnSubmit(m){console.warn("DEPRECATED: function frmOnSubmit in v2.0 use frmFrontForm.submitForm");frmFrontForm.submitForm(m,this)}
100
- function frm_resend_email(m,n){console.warn("DEPRECATED: function frm_resend_email in v2.0");$link=jQuery(document.getElementById("frm_resend_email"));$link.append('<span class="spinner" style="display:inline"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_send_email",entry_id:m,form_id:n,nonce:frm_js.nonce},success:function(m){$link.replaceWith(m)}})};
 
 
1
+ function frmFrontFormJS(){function l(a){var b=jQuery(this),c=b.attr("type");"submit"!==c&&a.preventDefault();a=b.parents("form:first");var d="",f="",e=this.name;"frm_prev_page"===e||-1!==this.className.indexOf("frm_prev_page")?d=jQuery(a).find(".frm_next_page").attr("id").replace("frm_next_p_",""):"frm_save_draft"===e||-1!==this.className.indexOf("frm_save_draft")?f=1:-1!==this.className.indexOf("frm_page_skip")?(b=b.data("page"),e=jQuery(a).find('input[name="form_id"]').val(),e=jQuery(a).find('input[name="frm_page_order_'+
2
  e+'"]'),jQuery(a).append('<input name="frm_last_page" type="hidden" value="'+e.val()+'" />'),""===b?e.remove():e.val(b)):-1!==this.className.indexOf("frm_page_back")&&(d=b.data("page"));jQuery(".frm_next_page").val(d);jQuery(".frm_saving_draft").val(f);"submit"!==c&&a.trigger("submit")}function n(){jQuery(this).parent().children(".frm_toggle_container").slideToggle("fast");jQuery(this).toggleClass("active").children(".ui-icon-triangle-1-e, .ui-icon-triangle-1-s").toggleClass("ui-icon-triangle-1-s ui-icon-triangle-1-e")}
3
+ function t(){if(-1===this.className.indexOf("frm_custom_date")&&"undefined"!==typeof __frmDatepicker){var a=__frmDatepicker,b=this.id,c=b.split("-"),c=D(this.name)?'input[id^="'+c[0]+'"]':'input[id^="'+c.join("-")+'"]';jQuery.datepicker.setDefaults(jQuery.datepicker.regional[""]);for(var d=0,f=0;f<a.length;f++)if(a[f].triggerID=="#"+b||a[f].triggerID==c){d=f;break}""!==a[d].options.defaultDate&&(a[d].options.defaultDate=new Date(a[d].options.defaultDate));jQuery(this).datepicker(jQuery.extend(jQuery.datepicker.regional[a[d].locale],
4
+ a[d].options))}}function u(a){if("undefined"!==typeof __frmDropzone)for(var b=__frmDropzone,c=0;c<b.length;c++)x(c,a)}function x(a,b){var c=__frmDropzone,d="#"+c[a].htmlID+"_dropzone",f=c[a].fieldName;"undefined"!==typeof b&&-1!==d.indexOf("-0_dropzone")&&(d=d.replace("-0_dropzone","-"+b+"_dropzone"),f=f.replace("[0]","["+b+"]"),delete c[a].mockFiles);var e=jQuery(d);if(!(1>e.length||e.hasClass("dz-clickable"))){var g=c[a].maxFiles;if("undefined"!==typeof c[a].mockFiles){var h=c[a].mockFiles.length;
5
+ 0<g&&(g-=h)}var k=e.closest("form"),h="#"+k.attr("id");"#undefined"==h&&(h="form."+k.attr("class").replace(" ","."));e.dropzone({url:frm_js.ajax_url,addRemoveLinks:!0,paramName:e.attr("id").replace("_dropzone",""),maxFilesize:c[a].maxFilesize,maxFiles:g,uploadMultiple:c[a].uploadMultiple,hiddenInputContainer:h,dictDefaultMessage:c[a].defaultMessage,dictFallbackMessage:c[a].fallbackMessage,dictFallbackText:c[a].fallbackText,dictFileTooBig:c[a].fileTooBig,dictInvalidFileType:c[a].invalidFileType,dictResponseError:c[a].responseError,
6
+ dictCancelUpload:c[a].cancel,dictCancelUploadConfirmation:c[a].cancelConfirm,dictRemoveFile:c[a].remove,dictMaxFilesExceeded:c[a].maxFilesExceeded,fallback:function(){jQuery(this.element).closest("form").removeClass("frm_ajax_submit")},init:function(){this.on("sending",function(b,f,e){f=d;var g=jQuery(f).closest("form");if(1>g.length)f=!1;else{var h=jQuery(g).find(".frm_required_field:visible input, .frm_required_field:visible select, .frm_required_field:visible textarea, "+f);if(1>h.length)f=!0;
7
+ else{g=!0;for(var k=0,m=h.length;k<m&&"#"+h[k].id!==f;k++)if(!(-1<h[k].className.indexOf("frm_optional")||null!==h[k].getAttribute("data-frmfile")))if(1>P(h[k],[]).length){g=!0;break}else g=!1;f=g}}if(f){f=""!==document.getElementById("frm_verify_"+c[a].parentFormID).value||window._phantom||window.callPhantom||window.__phantomas||window.Buffer||window.emit||window.spawn?!0:!1;if(f)return this.removeFile(b),alert(frm_js.file_spam),!1;e.append("action","frm_submit_dropzone");e.append("field_id",c[a].fieldID);
8
+ e.append("form_id",c[a].formID);e.append("nonce",frm_js.nonce)}else return this.removeFile(b),alert(frm_js.empty_fields),!1});this.on("success",function(b,d){for(var e=jQuery.parseJSON(d),g=0;g<e.length;g++)!0!==c[a].uploadMultiple&&jQuery('input[name="'+f+'"]').val(e[g])});this.on("successmultiple",function(b,d){for(var e=jQuery.parseJSON(d),g=0;g<b.length;g++)jQuery(b[g].previewElement).append(E(c[a],e[g],f))});this.on("complete",function(b){if("undefined"!==typeof b.mediaID){c[a].uploadMultiple&&
9
+ jQuery(b.previewElement).append(E(c[a],b.mediaID,f));for(var d=b.previewElement.querySelectorAll("[data-dz-name]"),e=0,g=d.length;e<g;e++)d[e].innerHTML='<a href="'+b.url+'">'+b.name+"</a>"}});this.on("addedfile",function(){Q(k)});this.on("queuecomplete",function(){F(k,"enable")});this.on("removedfile",function(b){!1!==b.accepted&&!0!==c[a].uploadMultiple&&jQuery('input[name="'+f+'"]').val("");!1!==b.accepted&&"undefined"!==typeof b.mediaID&&(jQuery(b.previewElement).remove(),this.options.maxFiles=
10
+ c[a].maxFiles-this.files.length)});if("undefined"!==typeof c[a].mockFiles)for(var b=0;b<c[a].mockFiles.length;b++){var e={name:c[a].mockFiles[b].name,size:c[a].mockFiles[b].size,url:c[a].mockFiles[b].file_url,mediaID:c[a].mockFiles[b].id};this.emit("addedfile",e);this.emit("thumbnail",e,c[a].mockFiles[b].url);this.emit("complete",e);this.files.push(e)}}})}}function E(a,b,c){return'<input name="'+c+'[]" type="hidden" value="'+b+'" data-frmfile="'+a.fieldID+'" />'}function ab(){var a=jQuery(this).data("frm-remove");
11
+ bb(jQuery(this).parent(".dz-preview"));a=jQuery('input[name="'+a+'"]');a.length&&a.val("")}function cb(){var a=this.type,b=!1,c=!1;if("select-one"===a)c=!0,"frm_other_trigger"===this.options[this.selectedIndex].className&&(b=!0);else if("select-multiple"===a)for(var c=!0,d=this.options,b=!1,f=0;f<d.length;f++)if("frm_other_trigger"===d[f].className&&d[f].selected){b=!0;break}c?(a=jQuery(this).parent().children(".frm_other_input"),a.length&&(b?a[0].className=a[0].className.replace("frm_pos_none",""):
12
+ (1>a[0].className.indexOf("frm_pos_none")&&(a[0].className+=" frm_pos_none"),a[0].value=""))):"radio"===a?jQuery(this).is(":checked")&&(jQuery(this).closest(".frm_radio").children(".frm_other_input").removeClass("frm_pos_none"),jQuery(this).closest(".frm_radio").siblings().children(".frm_other_input").addClass("frm_pos_none").val("")):"checkbox"===a&&(this.checked?jQuery(this).closest(".frm_checkbox").children(".frm_other_input").removeClass("frm_pos_none"):jQuery(this).closest(".frm_checkbox").children(".frm_other_input").addClass("frm_pos_none").val(""))}
13
+ function ka(a){var b=q(this,!1);if(b&&"undefined"!==typeof b&&(!a.frmTriggered||a.frmTriggered!=b)){la(b,jQuery(this));var c="undefined"!==typeof a.originalEvent||-1<a.currentTarget.className.indexOf("frm_chzn")?"value changed":"other";ma(b,jQuery(this),c);R(b,jQuery(this));if(!0!==a.selfTriggered&&jQuery(this).closest("form").hasClass("frm_js_validate")&&(a=[],b=jQuery(this).closest(".frm_form_field"),b.hasClass("frm_required_field")&&!jQuery(this).hasClass("frm_optional")&&(a=P(this,a)),1>a.length&&
14
+ ("email"==this.type?(c=jQuery(this).closest("form").find("input[type=email]"),a=na(this,a,c)):"number"==this.type?a=oa(this,a):null!==this.pattern&&(a=pa(this,a))),b.removeClass("frm_blank_field has-error"),b.find(".frm_error").remove(),0<Object.keys(a).length))for(var d in a)S(b,d,a)}}function q(a,b){var c="",c=a instanceof jQuery?a.attr("name"):a.name;if(""===c)return c=a instanceof jQuery?a.data("name"):a.getAttribute("data-name"),""!==c&&c?c:0;c=c.replace("item_meta[","").replace("[]","").split("]");
15
+ if(1>c.length)return 0;var c=c.filter(function(a){return""!==a}),d=c[0],f=!1;if(1===c.length)return d;if("[form"===c[1]||"[row_ids"===c[1])return 0;jQuery('input[name="item_meta['+d+'][form]"]').length&&(d=c[2].replace("[",""),f=!0);"other"===d&&(d=f?c[3].replace("[",""):c[1].replace("[",""));!0===b&&(d=d===c[0]?d+"-"+c[1].replace("[",""):d+"-"+c[0]+"-"+c[1].replace("[",""));return d}function la(a,b){if(!("undefined"===typeof __FRMRULES||"undefined"===typeof __FRMRULES[a]||1>__FRMRULES[a].dependents.length||
16
+ null===b||"undefined"===typeof b))for(var c=__FRMRULES[a],d=G(b[0].name),f=0,e=c.dependents.length;f<e;f++)H(c.dependents[f],d)}function H(a,b){var c=T(a);if(!(!1===c||1>c.conditions.length)){var d=[];if(c.isRepeating)if(""!==b.repeatingSection){var f="frm_field_"+c.fieldId+"-",f=f+(b.repeatingSection+"-"+b.repeatRow+"_container");d.push(f)}else if(d=I(c),null!==document.getElementById("frm_field_"+d+"_container")){d=[];for(var f=document.querySelectorAll(".frm_field_"+c.fieldId+"_container"),e=0,
17
+ g=f.length;e<g;e++)d.push(f[e].id)}else{d=[];for(var e=I(c),f="frm_field_"+c.fieldId+"-"+e+"-",e=document.querySelectorAll('[name="item_meta['+e+'][row_ids][]"]'),g=0,h=e.length;g<h;g++)""!==e[g].value&&d.push(f+e[g].value+"_container");1>d.length&&d.push(f+"0_container")}else d.push("frm_field_"+c.fieldId+"_container");f=d.length;for(e=0;e<f;e++)c.containerId=d[e],qa(c,d[e]),ra(c)}}function I(a){var b="";"0"!==a.inEmbedForm?b=a.inEmbedForm:"0"!==a.inSection&&(b=a.inSection);return b}function qa(a,
18
+ b){if(a.isRepeating){var c=b.replace("_container","").split("-");a.repeatRow=c[2]}else a.repeatRow=""}function ra(a){for(var b=[],c=a.conditions.length,d=0;d<c;d++)b.push(db(a.conditions[d],a));c=z="any"==a.anyAll?-1<b.indexOf(!0)?a.showHide:sa(a.showHide):-1<b.indexOf(!1)?sa(a.showHide):a.showHide;b=null!==document.getElementById(a.containerId);"show"==c?"data"==a.fieldType&&a.hasOwnProperty("dataLogic")?(a={fieldId:a.fieldId,fieldKey:a.fieldKey,formId:a.formId,containerId:a.containerId,repeatRow:a.repeatRow,
19
+ dataLogic:{actualValue:a.dataLogic.actualValue,fieldId:a.dataLogic.fieldId},children:"",inputType:a.inputType},"data"==a.inputType?eb(a,b):b&&fb(a)):!1!==y(a.containerId,a.formId)&&(A(a.containerId,a.formId),b?(b=ta(a.containerId),ua(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId),jQuery("#"+a.containerId).show()):(b=va(a),ua(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId))):U(a,b)}function T(a){return"undefined"===typeof __FRMRULES||"undefined"===typeof __FRMRULES[a]?!1:__FRMRULES[a]}
20
+ function db(a,b){var c=T(a.fieldId),d=wa(c,b);"data"==b.fieldType&&"data"==c.fieldType?(c=""===a.value?""===d||1==d.length&&""===d[0]?!1:!0:V(a.operator,a.value,d),b.dataLogic=a,b.dataLogic.actualValue=d,d=c):d=V(a.operator,a.value,d);return d}function wa(a,b){if("radio"==a.inputType||"checkbox"==a.inputType){var c=xa(a,b);c=document.querySelectorAll('input[name^="'+c+'"]');c="checkbox"==a.inputType?J(c):W(c)}else if(!0===a.isMultiSelect){c=xa(a,b);var d=document.querySelectorAll('[name^="'+c+'"]');
21
+ 1==d.length&&"hidden"!=d[0].type?(c=jQuery('[name^="'+c+'"]').val(),null===c&&(c="")):c=J(d)}else if(c="field_"+a.fieldKey,a.isRepeating&&(c+="-"+b.repeatRow),d=document.getElementById(c),null===d){d="";if("time"==a.fieldType){var f=document.getElementById(c+"_H");null!==f&&(d=document.getElementById(c+"_m"),d=f.value+":"+d.value,c=document.getElementById(c+"_A"),":"==d?d="":null!==c&&(d+=" "+c.value))}c=d}else c=d.value;"undefined"===typeof c?c="":"string"===typeof c&&(c=c.trim());return c}function xa(a,
22
+ b){return a.isRepeating?"item_meta["+("0"!==b.inEmbedForm?b.inEmbedForm:b.inSection)+"]["+b.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]"}function J(a){for(var b=[],c=0,d=a.length;c<d;c++)("hidden"==a[c].type||a[c].checked)&&b.push(a[c].value);0===b.length&&(b=!1);return b}function V(a,b,c){b=gb(b);c=hb(b,c);return"string"===typeof b&&"-1"!=b.indexOf("&quot;")&&V(a,b.replace("&quot;",'"'),c)?!0:{"==":function(a,b){return a==b},"!=":function(a,b){return a!=b},"<":function(a,b){return a>b},
23
+ ">":function(a,b){return a<b},LIKE:function(a,b){if(!b)return!1;a=X(a);b=ya(a,b);return-1!=b.indexOf(a)},"not LIKE":function(a,b){if(!b)return!0;a=X(a);b=ya(a,b);return-1==b.indexOf(a)}}[a](b,c)}function gb(a){-1!==String(a).search(/^\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*$/)?a=parseFloat(a):"string"===typeof a&&(a=a.trim());return a}function hb(a,b){"undefined"===typeof b&&(b="");jQuery.isArray(b)&&-1<jQuery.inArray(String(a),b)&&(b=a);"number"===typeof a&&"string"===typeof b&&(b=parseFloat(b));"string"===
24
+ typeof b&&(b=b.trim());return b}function ya(a,b){b=X(b);if(jQuery.isArray(b))for(var c=0,d=b.length;c<d;c++){var f=b[c].toLowerCase();if(-1<f.indexOf(a)){b=a;break}}return b}function X(a){"string"===typeof a?a=a.toLowerCase():"number"===typeof a&&(a=a.toString());return a}function sa(a){return"show"==a?"hide":"show"}function ta(a){return document.getElementById(a).querySelectorAll('select[name^="item_meta"], textarea[name^="item_meta"], input[name^="item_meta"]')}function va(a){if("divider"==a.fieldType){var b=
25
+ [];"divider"==a.fieldType&&(b=document.querySelectorAll('[data-sectionid="'+a.fieldId+'"]'));a=b}else"form"==a.fieldType?a=document.querySelectorAll('[id^="field_'+a.fieldKey+'-"]'):(a=a.isRepeating?"item_meta["+I(a)+"]["+a.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]",a=document.querySelectorAll('[name^="'+a+'"]'));return a}function ua(a,b,c){if(a.length)for(var d,f=["checkbox","radio"],e=0;e<a.length;e++)if(!(0<e&&"undefined"!==typeof d&&d.name==a[e].name&&-1<f.indexOf(d.type)||b&&K(a[e],
26
+ c))){d=a[e];var g=jQuery(d),h=g.data("frmval");if("undefined"!==typeof h){if("checkbox"==d.type||"radio"==d.type)za(d.name,h);else if(-1<d.name.indexOf("[]")){var k=document.getElementsByName(d.name);if(jQuery.isArray(h))for(var m=0,l=h.length;m<l;m++)m in k&&(k[m].value=h[m]);else null!==k[0]&&(k[0].value=h)}else h.constructor===Object&&(k=d.getAttribute("name").split("[").slice(-1)[0],null!==k&&(k=k.replace("]",""),h=h[k],"undefined"==typeof h&&(h=""))),d.value=h;"SELECT"==d.tagName&&L(d);v(g)}d=
27
+ a[e];g=q(d,!1);g=Y(g);!1!==g&&"lookup"!=g.fieldType&&Aa(g,d,"value changed");d=a[e];if(g="undefined"!==typeof __FRMCALC){g=d.type;h=!1;if("text"==g||"hidden"==g||"number"==g)h=!0;g=h}if(g){g=__FRMCALC;h=d.name;k=d.id.replace("field_","");if(D(h))for(h=k.split("-"),k="",m=0;m<h.length-1;m++)k=""===k?h[m]:k+"-"+h[m];h=k;k=null;D(d.name)&&(k="hidden"!=d.type?jQuery(d).closest(".frm_form_field"):jQuery(d));d=k;void 0!==g.calc[h]&&Z(g,h,[],d)}d=a[e]}}function K(a,b){var c=q(a,!0);return y("frm_field_"+
28
+ c+"_container",b)}function U(a,b){if(!y(a.containerId,a.formId)){if(b){jQuery("#"+a.containerId).hide();var c=ta(a.containerId)}else c=va(a);aa(c);Ba(a.containerId,a.formId)}}function aa(a){if(!(1>a.length)){for(var b,c=!0,d=0,f=a.length;d<f;d++)-1<a[d].className.indexOf("frm_dnc")||(0<d&&b.name!=a[d].name&&!0===c&&v(jQuery(b)),c=!0,"radio"==a[d].type||"checkbox"==a[d].type?a[d].checked=!1:"SELECT"==a[d].tagName?(0===a[d].selectedIndex?c=!1:a[d].selectedIndex=0,b=a[d].id.replace(/[^\w]/g,"_"),null!==
29
+ document.getElementById(b+"_chosen")&&jQuery(a[d]).trigger("chosen:updated")):a[d].value=""),b=a[d];!0===c&&v(jQuery(b))}}function y(a,b){var c=!1;-1<B(b).indexOf(a)&&(c=!0);return c}function Ba(a,b){var c=B(b);if(!(-1<c.indexOf(a))){c.push(a);var c=JSON.stringify(c),d=document.getElementById("frm_hide_fields_"+b);null!==d&&(d.value=c)}}function B(a){var b=[];a=document.getElementById("frm_hide_fields_"+a);return null===a?b:b=(b=a.value)?JSON.parse(b):[]}function za(a,b){for(var c=document.getElementsByName(a),
30
+ d=0,f=c.length;d<f;d++)if("hidden"==c[d].type)jQuery.isArray(b)&&null!==b[d]?c[d].value=b[d]:c[d].value=b;else if(c[d].value==b||jQuery.isArray(b)&&-1<b.indexOf(c[d].value))if(c[d].checked=!0,"radio"==c[d].type)break}function A(a,b){var c=B(b),d=c.indexOf(a);-1<d&&(c.splice(d,1),c=JSON.stringify(c),document.getElementById("frm_hide_fields_"+b).value=c)}function ma(a,b,c){if(!("undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]||1>__FRMLOOKUP[a].dependents.length||null===b||"undefined"===
31
+ typeof b)){a=__FRMLOOKUP[a];b=G(b[0].name);for(var d=0,f=a.dependents.length;d<f;d++)ba(a.dependents[d],b,c)}}function ba(a,b,c){a=Y(a);if(!(!1===a||1>a.parents.length))if("lookup"==a.fieldType){if(""!==b.repeatRow){c=[];var d="frm_field_"+a.fieldId+"-",d=d+(b.repeatingSection+"-"+b.repeatRow+"_container");b=document.getElementById(d);null!==b&&c.push(b);b=c}else b=[],a.isRepeating?b=document.querySelectorAll(".frm_field_"+a.fieldId+"_container"):(c=document.getElementById("frm_field_"+a.fieldId+
32
+ "_container"),null!==c&&b.push(c));c=0;for(d=b.length;c<d;c++){qa(a,b[c].id);var f=a,e=b[c];f.parentVals=Ca(f);if("select"==f.inputType)ib(f,e);else if("radio"==f.inputType||"checkbox"==f.inputType)if(!1===f.parentVals){var g=e.getElementsByTagName("input");Da(f,e);aa(g)}else jb(f,e)}}else if("value changed"===c)for(c="field_"+a.fieldKey,c=a.isRepeating?""!==b.repeatingSection?'[id="'+c+"-"+b.repeatRow+'"]':'[id^="'+c+'-"]':'[id="'+c+'"]',b=document.querySelectorAll(c),c=0,d=b.length;c<d;c++)f=a,
33
+ e=G(b[c].name),f.repeatRow=""!==e.repeatRow?e.repeatRow:"",Aa(a,b[c])}function Y(a){return"undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]?!1:__FRMLOOKUP[a]}function Aa(a,b){a.parentVals=Ca(a);var c=b.id;c in p&&0<p[c].length?Ea(a,b):(Ea(a,b),Fa(a,b))}function Ca(a){for(var b=[],c=a.parents,d,f=0,e=c.length;f<e;f++){d=Y(c[f]);d=wa(d,a);if(""===d||!1===d){b=!1;break}b[f]=d}return b}function W(a){for(var b=!1,c=a.length,d=0;d<c;d++)if("hidden"==a[d].type||a[d].checked){b=a[d].value;
34
+ break}return b}function ib(a,b){var c=b.getElementsByTagName("SELECT")[0];if(null!==c){var d=c.value;!1===a.parentVals?(c.options.length=1,c.value="",L(c),""!==d&&v(jQuery(c),a.fieldKey)):(kb(c),ca(a.formId),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_replace_lookup_field_options",parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,nonce:frm_js.nonce},success:function(d){var f=c.value;d=JSON.parse(d);for(var g=c.options.length;0<g;g--)c.remove(g);for(var h=d.length,
35
+ g=0;g<h;g++)c.options[g+1]=new Option(d[g],d[g],!1,!1);c.value=f;""===c.value&&(d=c.getAttribute("data-frmval"),null!==d&&(c.value=d));!1===a.isReadOnly&&(c.disabled=!1);c.className=c.className.replace(" frm_loading_lookup","");L(c);c.value!=f&&v(jQuery(c),a.fieldKey);Ga(jQuery(b));da(a.formId)}}))}}function L(a){-1<a.className.indexOf("frm_chzn")&&jQuery().chosen&&jQuery(a).trigger("chosen:updated")}function kb(a){a.className+=" frm_loading_lookup";a.disabled=!0;L(a)}function ca(a){M++;1>=M&&(a=
36
+ Ha(a),null!==a&&Q(jQuery(a)))}function da(a){M--;0>=M&&(a=Ha(a),null!==a&&F(jQuery(a),"enable"))}function Ha(a){return document.querySelector("#frm_form_"+a+"_container form")}function jb(a,b){var c=b.getElementsByClassName("frm_opt_container")[0],d=c.getElementsByTagName("input");lb(b,c);var f="",f="radio"==a.inputType?W(d):J(d),e=jQuery(d[0]).data("frmval");ca(a.formId);jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_replace_cb_radio_lookup_options",parent_fields:a.parents,parent_vals:a.parentVals,
37
+ field_id:a.fieldId,container_field_id:I(a),row_index:a.repeatRow,current_value:f,default_value:e,nonce:frm_js.nonce},success:function(f){c.innerHTML=f;f=b.getElementsByClassName("frm-loading-img")[0];null!==f&&void 0!==f&&f.parentNode.removeChild(f);c.style.display="block";1==d.length&&""===d[0].value?Da(a,b):(!1!==y(b.id,a.formId)&&(f=T(a.fieldId),!1===f||1>f.conditions.length?(A(b.id,a.formId),jQuery("#"+b.id).show()):(f.containerId=b.id,f.repeatRow=a.repeatRow,ra(f))),void 0!==e&&(!1!==("radio"==
38
+ a.inputType?W(d):J(d))||1>d.length||za(d[0].name,e)));v(jQuery(d[0]),a.fieldKey);Ga(jQuery(b));da(a.formId)}})}function Ga(a){a.trigger("frmLookupOptionsLoaded")}function Da(a,b){y(b.id,a.formId)||(jQuery("#"+b.id).hide(),Ba(b.id,a.formId))}function Fa(a,b){if(K(b,a.formId))ea(b.id);else if(!1===a.parentVals){var c=b.getAttribute("data-frmval");null===c&&(c="");Ia(a,b,c);ea(b.id)}else ca(a.formId),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_get_lookup_text_value",parent_fields:a.parents,
39
+ parent_vals:a.parentVals,field_id:a.fieldId,nonce:frm_js.nonce},success:function(c){K(b,a.formId)||b.value==c||Ia(a.fieldKey,b,c);da(a.formId);ea(b.id)}})}function Ea(a,b){var c=b.id;c in p?2<=p[c].length&&(p[c]=p[c].slice(0,1)):p[c]=[];p[c].push({childFieldArgs:a,childInput:b})}function ea(a){p[a].shift();a in p&&0<p[a].length&&Fa(p[a][0].childFieldArgs,p[a][0].childInput)}function Ia(a,b,c){c=c.replace(/&amp;/g,"&");b.value=c;v(jQuery(b),a)}function eb(a,b){if(b){var c=jQuery("#"+a.containerId);
40
+ Ja(c)}jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_fields_ajax_get_data",entry_id:a.dataLogic.actualValue,current_field:a.fieldId,hide_id:a.containerId,on_current_page:b,nonce:frm_js.nonce},success:function(d){if(b){var f=c.find(".frm_opt_container");f.html(d);var e=f.children("input"),g=e.val();Ka(f);""===d||""===g?U(a,!0):La(a,c,e,!0)}else f="field_"+a.fieldKey,""!==a.repeatRow&&(f+="-"+a.repeatRow),f=document.getElementById(f),f.value=d,y(a.containerId,a.formId)&&A(a.containerId,
41
+ a.formId),v(jQuery(f))}})}function fb(a,b){var c=jQuery("#"+a.containerId),d=c.find('select[name^="item_meta"], input[name^="item_meta"]'),f=Ma(d),d=d.data("frmval"),e=c.closest("form").find('input[name="id"]').val();Ja(c);jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_fields_ajax_data_options",trigger_field_id:a.dataLogic.fieldId,entry_id:a.dataLogic.actualValue,field_id:a.fieldId,default_value:d,container_id:a.containerId,editing_entry:e,prev_val:f,nonce:frm_js.nonce},success:function(b){var d=
42
+ c.find(".frm_opt_container");d.html(b);var e=d.find('select, input[type="checkbox"], input[type="radio"]');Ka(d);""===b||1>e.length?U(a,!0):(b=Ma(e),La(a,c,e,f!==b))}})}function Ja(a){var b=a.html();-1<b.indexOf("frm-loading-img")||(a.html(b+'<span class="frm-loading-img"></span>'),a.find(".frm_opt_container").hide())}function lb(a,b){if(!(-1<a.innerHTML.indexOf("frm-loading-img"))){b.style.display="none";var c=document.createElement("span");c.setAttribute("class","frm-loading-img");a.insertBefore(c,
43
+ b.nextSibling)}}function Ka(a){a.parent().children(".frm-loading-img").remove();a.show()}function Ma(a){var b=[],c="";a.each(function(){c=this.value;"radio"===this.type||"checkbox"===this.type?!0===this.checked&&b.push(c):""!==c&&b.push(c)});0===b.length&&(b="");return b}function La(a,b,c,d){y(a.containerId,a.formId)&&(A(a.containerId,a.formId),b.show());c.hasClass("frm_chzn")&&fa();!0===d&&v(c)}function R(a,b){if("undefined"!==typeof __FRMCALC){var c=__FRMCALC,d=c.fields[a];if("undefined"!==typeof d)for(var d=
44
+ d.total,f=[],e=0,g=d.length;e<g;e++){var h=c.calc[d[e]];var k=b.attr("name"),m=!1,l=h.field_id,n=B(h.form_id);1>n.length||("0"===h.inSection&&"0"===h.inEmbedForm?m=N(l,n):(k=G(k),N(l,n)?m=!0:Na(l,k,n)?m=!0:"0"!==h.inSection&&"0"!==h.inEmbedForm?m=Na(h.inSection,k,n):"0"!==h.inSection?m=N(h.inSection,n):"0"!==h.inEmbedForm&&(m=N(h.inEmbedForm,n))));h=m;!1===h&&Z(c,d[e],f,b)}}}function N(a,b){return-1<b.indexOf("frm_field_"+a+"_container")}function Na(a,b,c){var d=!1;b.repeatingSection&&(a="frm_field_"+
45
+ a+"-"+b.repeatingSection,a+="-"+b.repeatRow+"_container",d=-1<c.indexOf(a));return d}function Z(a,b,c,d){var f=a.calc[b],e=f.calc,g=jQuery(document.getElementById("field_"+b)),h={triggerField:d,inSection:!1,thisFieldCall:'input[id^="field_'+b+'-"]'};1>g.length&&"undefined"!==typeof d&&(h.inSection=!0,h.thisFieldId=mb(a.fieldsWithCalc,b),g=Oa(h));if(!(null===g||1>g.length)){e=nb(f,e,a,c,h);if("text"!=f.calc_type){a=f.calc_dec;-1<e.indexOf(").toFixed(")&&(c=e.split(").toFixed("),Pa(c[1])&&(a=c[1],e=
46
+ e.replace(").toFixed("+a,"")));e=ob(e);e=parseFloat(eval(e));if("undefined"===typeof e||isNaN(e))e=0;Pa(a)&&(e=e.toFixed(a))}g.val()!==e&&(g.val(e),null!==d&&g.attr("name")==d.attr("name")||v(g,b))}}function nb(a,b,c,d,f){for(var e=0,g=a.fields.length;e<g;e++){var h={triggerField:f.triggerField,thisFieldId:a.fields[e],inSection:f.inSection,valKey:f.inSection+""+a.fields[e],thisField:c.fields[a.fields[e]],thisFieldCall:"input"+c.fieldKeys[a.fields[e]]},k=c;"checkbox"==h.thisField.type||"radio"==h.thisField.type||
47
+ "scale"==h.thisField.type?h.thisFieldCall=h.thisFieldCall+":checked,"+h.thisFieldCall+"[type=hidden]":"select"==h.thisField.type||"time"==h.thisField.type?h.thisFieldCall="select"+k.fieldKeys[h.thisFieldId]+" option:selected,"+h.thisFieldCall+"[type=hidden]":"textarea"==h.thisField.type&&(h.thisFieldCall=h.thisFieldCall+",textarea"+k.fieldKeys[h.thisFieldId]);if("text"==a.calc_type)h.valKey="text"+h.valKey,d=pb(h,d),"undefined"===typeof d[h.valKey]&&(d[h.valKey]="");else{h.valKey="num"+h.valKey;d=
48
+ qb(h,c,d);if("undefined"===typeof d[h.valKey]||isNaN(d[h.valKey]))d[h.valKey]=0;"date"==h.thisField.type&&0===d[h.valKey]&&(b="")}k="["+h.thisFieldId+"]";k=k.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1");b=b.replace(new RegExp(k,"g"),d[h.valKey])}return b}function ob(a){var b=a.charAt(a.length-1);if("+"===b||"-"===b)a=a.substr(0,a.length-1);return a}function D(a){return 3<=a.split("][").length}function qb(a,b,c){if("undefined"!==typeof c[a.valKey]&&0!==c[a.valKey])return c;c[a.valKey]=0;var d=Qa(a);
49
+ if(!1===d)return c;d.each(function(){var d=Ra(a.thisField,this);if("date"==a.thisField.type){var e=b.date;var g=0;if(d)if("undefined"===typeof jQuery.datepicker){g="-";-1<e.indexOf("/")&&(g="/");e=e.split(g);var d=d.split(g),h;var k=g=h="";for(var m=0;m<e.length;m++)if("y"==e[m])k=((new Date).getFullYear()+15).toString().substr(2,2),k=d[m]>k?"19"+d[m]:"20"+d[m];else if("yy"==e[m])k=d[m];else if("m"==e[m]||"mm"==e[m])g=d[m],2>g.length&&(g="0"+g);else if("d"==e[m]||"dd"==e[m])h=d[m],2>h.length&&(h=
50
+ "0"+h);g=Date.parse(k+"-"+g+"-"+h)}else g=jQuery.datepicker.parseDate(e,d);e=g;null!==e&&(c[a.valKey]=Math.ceil(e/864E5))}else{e=d;""!==e&&0!==e&&(e=e.trim(),e=parseFloat(e.replace(/,/g,"").match(/-?[\d\.]+$/)));if("undefined"===typeof e||isNaN(e)||""===e)e=0;c[a.valKey]+=e}});return c}function pb(a,b){if("undefined"!==typeof b[a.valKey]&&""!==b[a.valKey])return b;b[a.valKey]="";var c=Qa(a);if(!1===c)return b;var d=0,f="";c.each(function(){var c=Ra(a.thisField,this),c=c.trim();0<d&&("time"==a.thisField.type?
51
+ 1==d?f=":":2==d&&(f=" "):f=", ");""!==c&&(b[a.valKey]+=f+c,d++)});return b}function Qa(a){if(!1===a.inSection)var b=jQuery(a.thisFieldCall);else if(b=Oa(a),null===b||"undefined"===typeof b)b=jQuery(a.thisFieldCall);if(null===b||"undefined"===typeof b||1>b.length)b=!1;return b}function Oa(a){if("undefined"===typeof a.triggerField)return null;var b=a.triggerField.closest(".frm_repeat_sec, .frm_repeat_inline, .frm_repeat_grid");return b.length?(a=a.thisFieldCall.replace("[id=","[id^="),b.find(a)):null}
52
+ function Ra(a,b){var c=!1;if("hidden"==b.type)""!==ga(b)&&(c=!0);else if("select"==a.type){var d=b.className;d&&-1<d.indexOf("frm_other_trigger")&&(c=!0)}else("checkbox"==a.type||"radio"==a.type)&&-1<b.id.indexOf("-other_")&&0>b.id.indexOf("-otext")&&(c=!0);c?(c=0,"select"==a.type?"hidden"==b.type?(d=!1,2<b.name.split("[").length&&(d=!0),d||(c=ga(b))):c=jQuery(b).closest(".frm_other_container").find(".frm_other_input").val():"checkbox"!=a.type&&"radio"!=a.type||"hidden"==b.type||(c=ga(b))):c="checkbox"!==
53
+ b.type&&"radio"!==b.type||!b.checked?jQuery(b).val():b.value;"undefined"===typeof c&&(c="");return c}function ga(a){var b="";a=document.getElementById(a.id+"-otext");null!==a&&""!==a.value&&(b=a.value);return b}function Sa(a){var b=!1;a=jQuery(a).find(".frm_saving_draft");a.length&&(b=a.val());return b}function ha(a){var b=!1,c=jQuery(a).find(".frm_next_page");if(c.length&&c.val()){var d=jQuery(a).find('input[name="form_id"]').val();a=jQuery(a).find('input[name="frm_page_order_'+d+'"]');a=a.length?
54
+ a.val():0;if(!a||c.val()<a)b=!0}return b}function P(a,b){var c=a.getAttribute("data-frmfile");if("hidden"==a.type&&null===c)return b;var d="",f="";if("checkbox"==a.type||"radio"==a.type)c=jQuery('input[name="'+a.name+'"]').closest(".frm_required_field").find("input:checked"),jQuery(c).each(function(){d=this.value});else if("file"==a.type||c)"undefined"===typeof c&&(c=q(a,!0),c=c.replace("file","")),"undefined"===typeof b[c]&&(d=rb(c)),f=c;else{c=a.className;if(-1!==c.indexOf("frm_pos_none"))return b;
55
+ d=jQuery(a).val();if(null===d)d="";else if("string"!==typeof d)for(var f=d,d="",e=0;e<f.length;e++)""!==f[e]&&(d=f[e]);f=-1===c.indexOf("frm_other_input")?q(a,!0):q(a,!1);-1!==c.indexOf("frm_time_select")&&(f=f.replace("-H","").replace("-m",""))}""===d&&(""===f&&(f=q(a,!0)),f in b||(b[f]=C(a,"data-reqmsg")));return b}function rb(a){var b="";jQuery('input[name="file'+a+'"], input[name="file'+a+'[]"], input[name^="item_meta['+a+']"]').each(function(){""===b&&(b=this.value)});return b}function na(a,
56
+ b,c){var d=a.value,f=q(a,!0);if(f in b)return b;var e=0===f.indexOf("conf_");if(""!==d||e){var g=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i,h=C(a,"data-invmsg");""!==d&&!1===g.test(d)?(b[f]=h,e&&(b[f.replace("conf_","")]="")):e&&(a=a.name.replace("conf_",""),c.filter('[name="'+a+'"]').val()!==d&&(b[f]="",b[f.replace("conf_","")]=""))}return b}function oa(a,b){var c=a.value;""!==c&&!1!==isNaN(c/
57
+ 1)&&(c=q(a,!0),c in b||(b[c]=C(a,"data-invmsg")));return b}function pa(a,b){var c=a.value,d=C(a,"pattern");if(""!==d&&""!==c){var f=q(a,!0);f in b||(d=new RegExp("^"+d+"$","i"),!1===d.test(c)&&(b[f]=C(a,"data-invmsg")))}return b}function C(a,b){var c=a.getAttribute(b);null===c&&(c="");return c}function sb(a,b){"undefined"==typeof b&&jQuery(a).find('input[name="frm_action"]').val();var c=jQuery(a).find(".frm_form_field");c.addClass("frm_doing_ajax");jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:jQuery(a).serialize()+
58
+ "&action=frm_entries_"+b+"&nonce="+frm_js.nonce,success:function(b){var d={content:"",errors:{},pass:!1};null===b&&(b=d);b=b.replace(/^\s+|\s+$/g,"");b=0===b.indexOf("{")?jQuery.parseJSON(b):d;if("undefined"!=typeof b.redirect)jQuery(document).trigger("frmBeforeFormRedirect",[a,b]),window.location=b.redirect;else if(""!==b.content){F(jQuery(a));-1!=frm_js.offset&&frmFrontForm.scrollMsg(jQuery(a),!1);var e=jQuery(a).find('input[name="form_id"]').val();b.content=b.content.replace(/ frm_pro_form /g,
59
+ " frm_pro_form frm_no_hide ");jQuery(a).closest(".frm_forms").replaceWith(b.content);d=b;if(history.pushState&&"undefined"!=typeof d.page){var g=d.page;var h=encodeURI("frm_page");for(var g=encodeURI(g),k=document.location.search.substr(1).split("&"),m=k.length,l;m--;)if(l=k[m].split("="),l[0]==h){l[1]=g;k[m]=l.join("=");break}0>m&&(k[k.length]=[h,g].join("="));h=k.join("&");window.history.pushState({html:d.html},"","?"+h)}"function"==typeof frmThemeOverride_frmAfterSubmit&&(e=jQuery('input[name="frm_page_order_'+
60
+ e+'"]').val(),d=jQuery(b.content).find('input[name="form_id"]').val(),frmThemeOverride_frmAfterSubmit(d,e,b.content,a));jQuery(b.content).find(".frm_message").length?(jQuery(document).trigger("frmFormComplete",[a,b]),ia("pageLoad"),b=jQuery(a).find('input[name="id"]'),b.length&&(b=document.getElementById("frm_edit_"+b.val()),null!==b&&-1<b.className.indexOf("frm_cancel_edit")&&Ta(jQuery(b)))):jQuery(document).trigger("frmPageChanged",[a,b]);ja()}else if(Object.keys(b.errors).length){F(jQuery(a),"enable");
61
+ d=!0;Ua();h=!1;for(e in b.errors)g=jQuery(a).find("#frm_field_"+e+"_container"),g.length&&(g.is(":visible")||(k=g.closest(".frm_toggle_container"),k.length&&(k=k.prev(),k.hasClass("frm_trigger")||(k=k.prev(".frm_trigger")),k.click())),g.is(":visible")&&(S(g,e,b.errors),d=!1,g=jQuery(a).find("#frm_field_"+e+"_container .frm-g-recaptcha, #frm_field_"+e+"_container .g-recaptcha"),g.length&&(h=!0,g=g.data("rid"),jQuery().grecaptcha&&(g?grecaptcha.reset(g):grecaptcha.reset()))));jQuery(document).trigger("frmFormErrors",
62
+ [a,b]);c.removeClass("frm_doing_ajax");Va(a);!0!==h&&Wa(a,!1);d?a.submit():jQuery(a).prepend(b.error_message)}else tb(a),Wa(a,!0),a.submit()},error:function(){jQuery(a).find('input[type="submit"], input[type="button"]').removeAttr("disabled");a.submit()}})}function S(a,b,c){a.length&&a.is(":visible")&&(a.addClass("frm_blank_field"),"function"==typeof frmThemeOverride_frmPlaceError?frmThemeOverride_frmPlaceError(b,c):a.append('<div class="frm_error">'+c[b]+"</div>"))}function Ua(){jQuery(".form-field").removeClass("frm_blank_field has-error");
63
+ jQuery(".form-field .frm_error").replaceWith("");jQuery(".frm_error_style").remove()}function Va(a){var b=jQuery(a).find(".frm_blank_field:first");b.length&&frmFrontForm.scrollMsg(b,a,!0)}function Q(a){a.hasClass("frm_loading_form")||(a.addClass("frm_loading_form"),a.trigger("frmStartFormLoading"));a.find('input[type="submit"], input[type="button"], button[type="submit"]').attr("disabled","disabled")}function F(a,b){a.removeClass("frm_loading_form");a.trigger("frmEndFormLoading");"enable"==b&&a.find('input[type="submit"], input[type="button"], button[type="submit"]').removeAttr("disabled")}
64
  function tb(a){var b=document.getElementById("frm_loading");null!==b&&(a=jQuery(a).find("input[type=file]").val(),"undefined"!=typeof a&&""!==a&&setTimeout(function(){jQuery(b).fadeIn("slow")},2E3))}function Wa(a,b){var c=jQuery(a).find(".frm-g-recaptcha, .g-recaptcha");c.length&&(!b||1>jQuery(a).find(".frm_next_page").length||1>jQuery(a).find(".frm_next_page").val())&&c.closest(".frm_form_field").replaceWith('<input type="hidden" name="recaptcha_checked" value="'+frm_js.nonce+'">')}function ub(){Xa(jQuery(this),
65
  "clear")}function vb(){Xa(jQuery(this),"replace")}function Xa(a,b){var c=a.data("frmval").replace(/(\n|\r\n)/g,"\r");if(""===c||"undefined"==typeof c)return!1;var d=a.val().replace(/(\n|\r\n)/g,"\r");"replace"==b?""===d&&a.addClass("frm_default").val(c):d==c&&a.removeClass("frm_default").val("")}function wb(){var a=jQuery(this),b=a.data("eid"),c=a.data("fid");a.append('<span class="spinner" style="display:inline"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_send_email",
66
  entry_id:b,form_id:c,nonce:frm_js.nonce},success:function(b){a.replaceWith(b)}});return!1}function xb(a,b){google.load("visualization","1.0",{packages:[b],callback:function(){var b=new google.visualization.DataTable,d=!1;-1!==jQuery.inArray("id",a.options.fields)&&(d=!0,b.addColumn("number",frm_js.id));for(var f=a.fields.length,e,g=0,h=f;g<h;g++){var k=a.fields[g];e=Ya(k);b.addColumn(e,k.name)}g=!1;a.options.edit_link&&(g=!0,b.addColumn("string",a.options.edit_link));h=!1;a.options.delete_link&&(h=
67
+ !0,b.addColumn("string",a.options.delete_link));if(null!==a.entries){var m=a.entries.length;b.addRows(m);for(var l=0,n=0;n<m;n++){var k=0,p=a.entries[n];d&&(b.setCell(l,k,p.id),k++);for(var q=0,t=f;q<t;q++){var r=a.fields[q];e=Ya(r);r=p.metas[r.id];"number"!=e||null!==r&&""!==r?"boolean"==e&&(r=null===r||"false"==r||!1===r?!1:!0):r=0;b.setCell(l,k,r);k++}g&&("undefined"!==typeof p.editLink?b.setCell(l,k,'<a href="'+p.editLink+'">'+a.options.edit_link+"</a>"):b.setCell(l,k,""),k++);h&&("undefined"!==
68
+ typeof p.deleteLink?b.setCell(l,k,'<a href="'+p.deleteLink+'" class="frm_delete_link" data-frmconfirm="'+a.options.confirm+'">'+a.options.delete_link+"</a>"):b.setCell(l,k,""));l++}}else for(b.addRows(1),g=k=0,h=f;g<h;g++)0<k?b.setCell(0,k,""):b.setCell(0,k,a.options.no_entries),k++;(new google.visualization.Table(document.getElementById("frm_google_table_"+a.options.form_id))).draw(b,a.graphOpts)}})}function yb(a){google.load("visualization","1.0",{packages:[a["package"]],callback:function(){new google.visualization.DataTable;
69
  var b=google.visualization.arrayToDataTable(a.data);var c=document.getElementById("chart_"+a.graph_id);if(null!==c){var d=a.type.charAt(0).toUpperCase()+a.type.slice(1);"Histogram"!==d&&"Table"!==d&&(d+="Chart");c=new google.visualization[d](c);c.draw(b,a.options);jQuery(document).trigger("frmDrawChart",[c,"chart_"+a.graph_id,b])}}})}function Ya(a){var b="string";if("number"==a.type)b="number";else if("checkbox"==a.type||"select"==a.type){var c=a.options.length;"select"==a.type&&""===a.options[0]&&
70
+ (c="post_status"==a.field_options.post_field?3:c-1);1==c&&(b="boolean")}return b}function zb(){var a=jQuery(this).data("key"),b=jQuery(this).data("parent"),c="frm_section_"+b+"-"+a,d=jQuery(document.getElementById(c)),f=d.find("input, select, textarea"),e=jQuery(this).closest("form").find('input[name="form_id"]').val();d.fadeOut("slow",function(){d.remove();f.each(function(){var c=q(this,!1);"file"!=this.type&&R(c,jQuery(this));A("frm_field_"+c+"-"+b+"-"+a+"_container",e)});"function"==typeof frmThemeOverride_frmRemoveRow&&
71
+ frmThemeOverride_frmRemoveRow(c,d);jQuery(document).trigger("frmAfterRemoveRow")});return!1}function Ab(){if(!0===O)return!1;O=!0;var a=jQuery(this).data("parent"),b=0;if(0<jQuery(".frm_repeat_"+a).length)var c=jQuery(".frm_repeat_"+a+":last").attr("id").replace("frm_section_"+a+"-",""),b=-1<c.indexOf("i")?1:1+parseInt(c);jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_add_form_row",field_id:a,i:b,nonce:frm_js.nonce},success:function(c){var d=c.html,e=jQuery(d).hide().fadeIn("slow");
72
+ jQuery(".frm_repeat_"+a+":last").after(e);var g=["other"],h,k,m={repeatingSection:a.toString(),repeatRow:b.toString()};jQuery(d).find("input, select, textarea").each(function(){if("file"!=this.type){if(""===this.name)return!0;h=this.name.replace("item_meta[","").split("]")[2].replace("[","");-1==jQuery.inArray(h,g)&&!1!==this.id&&""!==this.id&&(k=jQuery("#"+this.id),g.push(h),H(h,m),ba(h,m,"value changed"),la(h,k),ma(h,k,"value changed"),R(h,k))}});u(m.repeatRow);Za();fa();"function"==typeof frmThemeOverride_frmAddRow&&
73
+ frmThemeOverride_frmAddRow(a,c);jQuery(document).trigger("frmAfterAddRow");O=!1},error:function(){O=!1}});return!1}function Bb(){var a=jQuery(this),b=a.data("entryid"),c=a.data("prefix"),d=a.data("pageid"),f=a.data("formid"),e=a.data("cancel"),g=a.data("fields"),h=a.data("excludefields"),k=jQuery(document.getElementById(c+b)),m=k.html();k.html('<span class="frm-loading-img" id="'+c+b+'"></span><div class="frm_orig_content" style="display:none">'+m+"</div>");jQuery.ajax({type:"POST",url:frm_js.ajax_url,
74
+ dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:d,entry_id:b,id:f,nonce:frm_js.nonce,fields:g,exclude_fields:h},success:function(d){k.children(".frm-loading-img").replaceWith(d);a.removeClass("frm_inplace_edit").addClass("frm_cancel_edit");a.html(e);ia("editInPlace");jQuery(document).on("change",'.frm-show-form input[name^="item_meta"], .frm-show-form select[name^="item_meta"], .frm-show-form textarea[name^="item_meta"]',ka);ja(c+b)}});return!1}function Cb(){var a=jQuery(this),
75
  b=a.data("prefix"),c=a.data("entryid"),b=jQuery(document.getElementById(b+c));b.children(".frm_forms").replaceWith("");b.children(".frm_orig_content").fadeIn("slow").removeClass("frm_orig_content");Ta(a)}function Ta(a){var b=a.data("edit");a.removeClass("frm_cancel_edit").addClass("frm_inplace_edit");a.html(b)}function Db(){var a=jQuery(this),b=a.data("deleteconfirm");if(confirm(b)){var c=a.data("entryid"),d=a.data("prefix");a.replaceWith('<span class="frm-loading-img" id="frm_delete_'+c+'"></span>');
76
+ jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_destroy",entry:c,nonce:frm_js.nonce},success:function(a){if("success"==a.replace(/^\s+|\s+$/g,"")){var b=jQuery(document.getElementById(d+c));b.fadeOut("slow",function(){b.remove()});jQuery(document.getElementById("frm_delete_"+c)).fadeOut("slow");jQuery(document).trigger("frmEntryDeleted",[c])}else jQuery(document.getElementById("frm_delete_"+c)).replaceWith(a)}})}return!1}function Eb(){for(var a=__frmUniqueTimes,b=0;b<a.length;b++)a[b].dateID==
77
+ this.id&&frmFrontForm.removeUsedTimes(this,a[b].timeID)}function ja(a){"undefined"!==typeof __frmHideFields&&frmFrontForm.hidePreviouslyHiddenFields();jQuery(document).on("focusin",".frm_date",t);if("undefined"!==typeof __frmUniqueTimes)for(var b=__frmUniqueTimes,c=0;c<b.length;c++)jQuery(document.getElementById(b[c].dateID)).change(Eb);if("undefined"!==typeof __frmMasks)for(b=__frmMasks,c=0;c<b.length;c++)jQuery(b[c].trigger).attr("data-frmmask",b[c].mask);Za();fa(a);"undefined"!==typeof __frmDepDynamicFields&&
78
+ frmFrontForm.checkDependentDynamicFields(__frmDepDynamicFields);"undefined"!==typeof __frmDepLookupFields&&frmFrontForm.checkDependentLookupFields(__frmDepLookupFields);if("undefined"!==typeof __FRMCALC){(a=__FRMCALC.triggers)&&jQuery(a.join()).trigger({type:"change",selfTriggered:!0});a=__FRMCALC.calc;var b=[],d;for(d in a)1>a[d].fields.length&&(c=document.getElementById("field_"+d),null===c||K(c,a[d].form_id)||Z(__FRMCALC,d,b))}u()}function fa(a){if(jQuery().chosen){var b={allow_single_deselect:!0,
79
+ no_results_text:frm_js.no_results};"undefined"!==typeof __frmChosen&&(b="{"+__frmChosen+"}");"undefined"!==typeof a?jQuery("#"+a).find(".frm_chzn").chosen(b):jQuery(".frm_chzn").chosen(b)}}function Za(){if(jQuery().rating){var a=jQuery(".star");a.length&&a.rating()}}function ia(a){"undefined"!==typeof __frmHideOrShowFields?frmFrontForm.hideOrShowFields(__frmHideOrShowFields,a):$a()}function $a(){jQuery(".frm_pro_form").fadeIn("slow")}function v(a,b){"undefined"===typeof b&&(b="dependent");1<a.length&&
80
+ (a=a.eq(0));a.trigger({type:"change",selfTriggered:!0,frmTriggered:b})}function G(a){var b={repeatingSection:"",repeatRow:""};"undefined"!==typeof a&&D(a)&&(a=a.split("]["),b.repeatingSection=a[0].replace("item_meta[",""),b.repeatRow=a[1]);return b}function bb(a){a.fadeOut("slow",function(){a.remove()})}function Fb(){var a=jQuery(this).data("frmconfirm");return confirm(a)}function Gb(){var a=jQuery(this).data("frmtoggle");jQuery(a).is(":visible")?jQuery(a).slideUp("fast"):jQuery(a).slideDown("fast");
81
+ return!1}function mb(a,b){for(var c in a)if(a.hasOwnProperty(c)&&a[c]===b)return c;return null}function Pa(a){return!jQuery.isArray(a)&&0<=a-parseFloat(a)+1}function Hb(){Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c=this.length>>>0,d=Number(b)||0,d=0>d?Math.ceil(d):Math.floor(d);for(0>d&&(d+=c);d<c;d++)if(d in this&&this[d]===a)return d;return-1})}function Ib(){"function"!==typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})}
82
+ function Jb(){Array.prototype.filter||(Array.prototype.filter=function(a,b){if(void 0===this||null===this)throw new TypeError;var c=Object(this),d=c.length>>>0;if("function"!==typeof a)throw new TypeError;for(var f=[],e=0;e<d;e++)if(e in c){var g=c[e];a.call(b,g,e,c)&&f.push(g)}return f})}function Kb(){Object.keys||(Object.keys=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b})}var O=!1,z="",w=[],M=0,p={};return{init:function(){jQuery(document).off("submit.formidable",".frm-show-form");
83
+ jQuery(document).on("submit.formidable",".frm-show-form",frmFrontForm.submitForm);jQuery(document).on("click",".frm_trigger",n);var a=jQuery(".frm_blank_field");a.length&&a.closest(".frm_toggle_container").prev(".frm_trigger").click();jQuery.isFunction(jQuery.fn.placeholder)?jQuery(".frm-show-form input, .frm-show-form textarea").placeholder():jQuery(".frm-show-form input[onblur], .frm-show-form textarea[onblur]").each(function(){""===jQuery(this).val()&&jQuery(this).blur()});jQuery(document).on("focus",
84
+ ".frm_toggle_default",ub);jQuery(document).on("blur",".frm_toggle_default",vb);jQuery(".frm_toggle_default").blur();jQuery(document.getElementById("frm_resend_email")).click(wb);jQuery(document).on("click",".frm_remove_link",ab);jQuery(document).on("focusin","input[data-frmmask]",function(){jQuery(this).mask(jQuery(this).data("frmmask").toString())});jQuery(document).on("change",'.frm-show-form input[name^="item_meta"], .frm-show-form select[name^="item_meta"], .frm-show-form textarea[name^="item_meta"]',
85
+ ka);jQuery(document).on("click",'.frm-show-form input[type="submit"], .frm-show-form input[name="frm_prev_page"], .frm_page_back, .frm_page_skip, .frm-show-form .frm_save_draft, .frm_prev_page, .frm_button_submit',l);jQuery(document).on("change",'.frm_other_container input[type="checkbox"], .frm_other_container input[type="radio"], .frm_other_container select',cb);jQuery(document).on("click",".frm_remove_form_row",zb);jQuery(document).on("click",".frm_add_form_row",Ab);jQuery(document).on("click",
86
+ "a[data-frmconfirm]",Fb);jQuery("a[data-frmtoggle]").click(Gb);jQuery(".frm_edit_link_container").on("click","a.frm_inplace_edit",Bb);jQuery(".frm_edit_link_container").on("click","a.frm_cancel_edit",Cb);jQuery(document).on("click",".frm_ajax_delete",Db);jQuery(".frm_month_heading, .frm_year_heading").click(function(){var a=jQuery(this).children(".ui-icon-triangle-1-e, .ui-icon-triangle-1-s");a.hasClass("ui-icon-triangle-1-e")?(a.addClass("ui-icon-triangle-1-s").removeClass("ui-icon-triangle-1-e"),
87
+ jQuery(this).next(".frm_toggle_container").fadeIn("slow")):(a.addClass("ui-icon-triangle-1-e").removeClass("ui-icon-triangle-1-s"),jQuery(this).next(".frm_toggle_container").hide())});ia("pageLoad");ja();Hb();Ib();Jb();Kb()},afterSingleRecaptcha:function(a){a=jQuery(".frm-show-form .g-recaptcha").closest("form")[0];frmFrontForm.submitFormNow(a)},afterRecaptcha:function(a,b){var c=jQuery("#frm_form_"+b+"_container form")[0];frmFrontForm.submitFormNow(c)},submitForm:function(a){frmFrontForm.submitFormManual(a,
88
+ this)},submitFormManual:function(a,b){if(ha(b))var c=!1;else{var d=jQuery(b).find('.frm-g-recaptcha[data-size="invisible"], .g-recaptcha[data-size="invisible"]');d.length?(c=d.data("rid"),c=0===grecaptcha.getResponse(c).length?d:!1):c=!1}d=b.className.trim().split(/\s+/gi);d&&1>c.length&&!(-1<d.indexOf("frm_pro_form"))||jQuery("body").hasClass("wp-admin")||(a.preventDefault(),c.length?(d=c.data("rid"),grecaptcha.reset(d),grecaptcha.execute(d)):(c=frmFrontForm.validateFormSubmit(b),0===Object.keys(c).length&&
89
+ (Q(jQuery(b)),frmFrontForm.submitFormNow(b,d))))},submitFormNow:function(a){-1<a.className.trim().split(/\s+/gi).indexOf("frm_ajax_submit")?1>jQuery(a).find('input[type="file"]').filter(function(){return!!this.value}).length?(z=jQuery(a).find('input[name="frm_action"]').val(),frmFrontForm.checkFormErrors(a,z)):a.submit():a.submit()},validateFormSubmit:function(a){"undefined"!=typeof tinyMCE&&jQuery(a).find(".wp-editor-wrap").length&&tinyMCE.triggerSave();w=[];var b=jQuery(a).hasClass("frm_js_validate");
90
+ b&&(Sa(a)||ha(a))&&(b=!1);b&&(frmFrontForm.getAjaxFormErrors(a),Object.keys(w).length&&frmFrontForm.addAjaxFormErrors(a));return w},getAjaxFormErrors:function(a){var b=[],c=jQuery(a).find(".frm_required_field:visible input, .frm_required_field:visible select, .frm_required_field:visible textarea").filter(":not(.frm_optional)");if(c.length)for(var d=0,f=c.length;d<f;d++)b=P(c[d],b);c=jQuery(a).find("input[type=email]").filter(":visible");d=jQuery(a).find("input,select,textarea");if(d.length)for(var f=
91
+ 0,e=d.length;f<e;f++){var g=d[f];""!==g.value&&"hidden"!=g.type&&("number"==g.type?b=oa(g,b):"email"==g.type?b=na(g,b,c):null!==g.pattern&&(b=pa(g,b)))}c=jQuery(a).find(".frm-g-recaptcha");c.length&&(d=c.data("rid"),0===grecaptcha.getResponse(d).length&&(c=c.closest(".frm_form_field").attr("id").replace("frm_field_","").replace("_container",""),b[c]=""));w=b;if("function"==typeof frmThemeOverride_jsErrors&&(z=jQuery(a).find('input[name="frm_action"]').val(),a=frmThemeOverride_jsErrors(z,a),Object.keys(a).length))for(var h in a)w[h]=
92
+ a[h];return w},addAjaxFormErrors:function(a){Ua();for(var b in w){var c=jQuery(a).find("#frm_field_"+b+"_container");c.length?S(c,b,w):delete w[b]}Va(a)},checkFormErrors:function(a,b){sb(a,b)},scrollToID:function(a){a=jQuery(document.getElementById(a));frmFrontForm.scrollMsg(a,!1)},scrollMsg:function(a,b,c){if("undefined"==typeof b){if(a=jQuery(document.getElementById("frm_form_"+a+"_container")),1>a.length)return}else a="string"==typeof a?jQuery(b).find("#frm_field_"+a+"_container"):a;if(a=a.offset().top){a-=
93
+ frm_js.offset;b=jQuery("html").css("margin-top");var d=jQuery("body").css("margin-top");if(b||d)a=a-parseInt(b)-parseInt(d);if(a&&window.innerHeight&&(b=document.documentElement.scrollTop||document.body.scrollTop,a>b+window.innerHeight||a<b))return"undefined"===typeof c?jQuery(window).scrollTop(a):jQuery("html,body").animate({scrollTop:a},500),!1}},savingDraft:function(a){return Sa(a)},goingToPreviousPage:function(a){return ha(a)},hideOrShowFields:function(a,b){if("pageLoad"===b){var c=document.querySelectorAll('[id^="frm_hide_fields_"]');
94
+ aa(c)}for(var c={repeatingSection:"",repeatRow:""},d=0,f=a.length;d<f;d++)H(a[d],c),d==f-1&&$a()},hidePreviouslyHiddenFields:function(){var a=[];for(var b=document.querySelectorAll('*[id^="frm_hide_fields_"]'),c=b.length,d,f=0;f<c;f++)d=b[f].id.replace("frm_hide_fields_",""),a=a.concat(B(d));b=0;for(c=a.length;b<c;b++)d=document.getElementById(a[b]),null!==d&&(d.style.display="none")},checkDependentDynamicFields:function(a){for(var b={repeatingSection:"",repeatRow:""},c=0,d=a.length;c<d;c++)H(a[c],
95
+ b)},checkDependentLookupFields:function(a){for(var b,c={repeatingSection:"",repeatRow:""},d=0,f=a.length;d<f;d++)b=a[d],ba(b,c,"value changed")},loadGoogle:function(){if("undefined"!==typeof google&&google&&google.load)for(var a=__FRMTABLES,b=Object.keys(a),c=0;c<b.length;c++)if("graphs"===b[c])for(var d=a[b[c]],f=0,e=d.length;f<e;f++)yb(d[f]);else for(d=a[b[c]],f=b[c],e=0;e<d.length;e++)xb(d[e],f);else setTimeout(frmFrontForm.loadGoogle,30)},removeUsedTimes:function(a,b){var c=jQuery(a).parents("form:first").find('input[name="id"]');
96
+ jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_fields_ajax_time_options",time_field:b,date_field:a.id,entry_id:c?c.val():"",date:jQuery(a).val(),nonce:frm_js.nonce},success:function(a){var c=jQuery(document.getElementById(b));c.find("option").removeAttr("disabled");if(0<a.length)for(var d=0,g=a.length;d<g;d++)c.find('option[value="'+a[d]+'"]').attr("disabled","disabled")}})},escapeHtml:function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,
97
+ "&quot;").replace(/'/g,"&#039;")},invisible:function(a){jQuery(a).css("visibility","hidden")},visible:function(a){jQuery(a).css("visibility","visible")}}}var frmFrontForm=frmFrontFormJS();jQuery(document).ready(function(l){frmFrontForm.init()});
98
+ function frmRecaptcha(){for(var l=jQuery(".frm-g-recaptcha"),n=0,t=l.length;n<t;n++){var u=l[n].getAttribute("data-size"),x={sitekey:l[n].getAttribute("data-sitekey"),size:u,theme:l[n].getAttribute("data-theme")};if("invisible"==u){var E=jQuery(l[n]).closest("form").find('input[name="form_id"]').val();x.callback=function(l){frmFrontForm.afterRecaptcha(l,E)}}u=grecaptcha.render(l[n].id,x);l[n].setAttribute("data-rid",u)}}function frmAfterRecaptcha(l){frmFrontForm.afterSingleRecaptcha(l)}
99
+ function frmUpdateField(l,n,t,u,x){jQuery(document.getElementById("frm_update_field_"+l+"_"+n)).html('<span class="frm-loading-img"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_update_field_ajax",entry_id:l,field_id:n,value:t,nonce:frm_js.nonce},success:function(){""===u.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById("frm_update_field_"+l+"_"+n+"_"+x)).fadeOut("slow"):jQuery(document.getElementById("frm_update_field_"+l+"_"+n+"_"+x)).replaceWith(u)}})}
100
+ function frmDeleteEntry(l,n){console.warn("DEPRECATED: function frmDeleteEntry in v2.0.13 use frmFrontForm.deleteEntry");jQuery(document.getElementById("frm_delete_"+l)).replaceWith('<span class="frm-loading-img" id="frm_delete_'+l+'"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_destroy",entry:l,nonce:frm_js.nonce},success:function(t){"success"==t.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById(n+l)).fadeOut("slow"):jQuery(document.getElementById("frm_delete_"+
101
+ l)).replaceWith(t)}})}function frmOnSubmit(l){console.warn("DEPRECATED: function frmOnSubmit in v2.0 use frmFrontForm.submitForm");frmFrontForm.submitForm(l,this)}
102
+ function frm_resend_email(l,n){console.warn("DEPRECATED: function frm_resend_email in v2.0");$link=jQuery(document.getElementById("frm_resend_email"));$link.append('<span class="spinner" style="display:inline"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_send_email",entry_id:l,form_id:n,nonce:frm_js.nonce},success:function(l){$link.replaceWith(l)}})};
js/formidable_admin.js CHANGED
@@ -487,13 +487,14 @@ function frmAdminBuildJS(){
487
  }
488
 
489
  function duplicateField(){
490
- var field_id = jQuery(this).closest('li').data('fid');
 
491
  var children = fieldsInSection(field_id);
492
  jQuery.ajax({
493
  type:'POST',url:ajaxurl,
494
  data:{action:'frm_duplicate_field', field_id:field_id, form_id:this_form_id, children:children, nonce:frmGlobal.nonce},
495
  success:function(msg){
496
- jQuery(document.getElementById('new_fields')).append(msg);
497
  }
498
  });
499
  return false;
@@ -676,6 +677,15 @@ function frmAdminBuildJS(){
676
  });
677
  }
678
 
 
 
 
 
 
 
 
 
 
679
  function showDefaults(n,fval){
680
  var defaults = jQuery('#frm_clear_on_focus_'+n+',#frm_clear_on_focus_'+n+' a, #frm_clear_on_focus_'+n+'_conf,#frm_clear_on_focus_'+n+'_conf a');
681
  if(fval){
@@ -1918,7 +1928,7 @@ function frmAdminBuildJS(){
1918
  id = jQuery.trim(d);
1919
  }
1920
  c = c+' '+d;
1921
- c = c.replace('widefat', '');
1922
  }
1923
  }
1924
 
@@ -2492,6 +2502,7 @@ function frmAdminBuildJS(){
2492
  $newFields.on('change', 'select[name^="field_options[data_type_"]', maybeClearWatchFields );
2493
 
2494
  $newFields.on('click', '.frm_toggle_sep_values', toggleSepValues);
 
2495
  $newFields.on('click', '.frm_delete_field', clickDeleteField);
2496
  $newFields.on('click', '.frm_single_option .frm_delete_icon', deleteFieldOption);
2497
  $newFields.on('click', '.frm_add_opt', addFieldOption);
487
  }
488
 
489
  function duplicateField(){
490
+ var thisField = jQuery(this).closest('li');
491
+ var field_id = thisField.data('fid');
492
  var children = fieldsInSection(field_id);
493
  jQuery.ajax({
494
  type:'POST',url:ajaxurl,
495
  data:{action:'frm_duplicate_field', field_id:field_id, form_id:this_form_id, children:children, nonce:frmGlobal.nonce},
496
  success:function(msg){
497
+ thisField.after(msg);
498
  }
499
  });
500
  return false;
677
  });
678
  }
679
 
680
+ function toggleMultiselect() {
681
+ var dropdown = jQuery(this).closest('li').find('.frm_form_fields select');
682
+ if( this.checked ){
683
+ dropdown.attr('multiple', 'multiple');
684
+ }else{
685
+ dropdown.removeAttr('multiple');
686
+ }
687
+ }
688
+
689
  function showDefaults(n,fval){
690
  var defaults = jQuery('#frm_clear_on_focus_'+n+',#frm_clear_on_focus_'+n+' a, #frm_clear_on_focus_'+n+'_conf,#frm_clear_on_focus_'+n+'_conf a');
691
  if(fval){
1928
  id = jQuery.trim(d);
1929
  }
1930
  c = c+' '+d;
1931
+ c = c.replace('widefat', '').replace('frm_with_left_label', '');
1932
  }
1933
  }
1934
 
2502
  $newFields.on('change', 'select[name^="field_options[data_type_"]', maybeClearWatchFields );
2503
 
2504
  $newFields.on('click', '.frm_toggle_sep_values', toggleSepValues);
2505
+ $newFields.on('click', '.frm_multiselect_opt', toggleMultiselect);
2506
  $newFields.on('click', '.frm_delete_field', clickDeleteField);
2507
  $newFields.on('click', '.frm_single_option .frm_delete_icon', deleteFieldOption);
2508
  $newFields.on('click', '.frm_add_opt', addFieldOption);
languages/formidable-az_AZ.mo DELETED
Binary file
languages/formidable-az_AZ.po DELETED
</
@@ -1,7784 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Formidable v2.03.08\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
- "PO-Revision-Date: Fri May 26 2017 13:08:50 GMT-0700 (PDT)\n"
7
- "Last-Translator: \n"
8
- "Language-Team: \n"
9
- "Language: Azerbaijani (Azerbaijan)\n"
10
- "Plural-Forms: nplurals=2; plural=n != 1\n"
11
- "MIME-Version: 1.0\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
- "Content-Transfer-Encoding: 8bit\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "X-Generator: Loco - https://localise.biz/\n"
16
- "X-Poedit-Basepath: .\n"
17
- "X-Poedit-SearchPath-0: ..\n"
18
- "X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
19
- "__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
20
- "_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
21
- "esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
22
- "esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
23
- "X-Loco-Target-Locale: az_AZ"
24
-
25
- #. Description of the plugin
26
- msgid "Quickly and easily create drag-and-drop forms"
27
- msgstr ""
28
-
29
- #: ../classes/controllers/FrmAddonsController.php:6 ..
30
- #: classes/controllers/FrmAddonsController.php:6
31
- msgid "AddOns"
32
- msgstr ""
33
-
34
- #: ../classes/controllers/FrmAddonsController.php:27
35
- msgid "There are no plugins on your site that require a license"
36
- msgstr ""
37
-
38
- #: ../classes/controllers/FrmAppController.php:63 ../classes/views/frm-forms/edit.
39
- #: php:2
40
- msgid "Build"
41
- msgstr ""
42
-
43
- #: ../classes/controllers/FrmAppController.php:77 ..
44
- #: classes/controllers/FrmEntriesController.php:8 ..
45
- #: classes/controllers/FrmEntriesController.php:8 ..
46
- #: classes/controllers/FrmEntriesController.php:90 ..
47
- #: classes/controllers/FrmFormsController.php:548 ..
48
- #: classes/controllers/FrmXMLController.php:58 ../classes/models/FrmPointers.php:
49
- #: 263 ../classes/views/frm-entries/list.php:2 ../pro/classes/views/frmpro-
50
- #: fields/back-end/dynamic-field.php:14 ../pro/classes/views/frmpro-
51
- #: statistics/show.php:66
52
- msgid "Entries"
53
- msgstr ""
54
-
55
- #: ../classes/controllers/FrmAppController.php:114
56
- #, php-format
57
- msgid ""
58
- "This site has been previously authorized to run Formidable Forms."
59
- "<br/>%1$sInstall Formidable Pro%2$s or %3$sdeauthorize%4$s this site to "
60
- "continue running the free version and remove this message."
61
- msgstr ""
62
-
63
- #: ../classes/controllers/FrmEntriesController.php:55
64
- msgid ""
65
- "This screen provides access to all of your entries. You can customize the "
66
- "display of this screen to suit your workflow."
67
- msgstr ""
68
-
69
- #: ../classes/controllers/FrmEntriesController.php:55
70
- msgid ""
71
- "Hovering over a row in the entries list will display action links that allow "
72
- "you to manage your entry."
73
- msgstr ""
74
-
75
- #: ../classes/controllers/FrmEntriesController.php:60
76
- msgid "Documentation on Entries"
77
- msgstr ""
78
-
79
- #: ../classes/controllers/FrmEntriesController.php:72 ..
80
- #: classes/controllers/FrmFormsController.php:718 ../classes/views/frm-
81
- #: entries/form.php:46 ../classes/views/frm-entries/sidebar-shared.php:29 ..
82
- #: pro/classes/helpers/FrmProFieldsHelper.php:2599 ..
83
- #: pro/classes/views/xml/map_csv_fields.php:57 ..
84
- #: pro/classes/views/xml/map_csv_fields.php:57
85
- msgid "Entry Key"
86
- msgstr ""
87
-
88
- #: ../classes/controllers/FrmEntriesController.php:77 ..
89
- #: classes/controllers/FrmFormsController.php:460 ../classes/views/frm-
90
- #: forms/_publish_box.php:47 ../classes/widgets/FrmShowForm.php:50 ..
91
- #: pro/classes/controllers/FrmProDisplaysController.php:137
92
- msgid "Form"
93
- msgstr ""
94
-
95
- #: ../classes/controllers/FrmEntriesController.php:78
96
- msgid "Entry Name"
97
- msgstr ""
98
-
99
- #: ../classes/controllers/FrmEntriesController.php:79 ..
100
- #: classes/helpers/FrmCSVExportHelper.php:113
101
- msgid "Created By"
102
- msgstr ""
103
-
104
- #: ../classes/controllers/FrmEntriesController.php:82 ..
105
- #: pro/classes/helpers/FrmProEntriesListHelper.php:61 ..
106
- #: pro/classes/helpers/FrmProEntriesListHelper.php:72 ..
107
- #: pro/classes/helpers/FrmProFieldsHelper.php:2602 ..
108
- #: pro/classes/views/displays/_calendar_options.php:4 ..
109
- #: pro/classes/views/displays/_calendar_options.php:16 ..
110
- #: pro/classes/views/displays/order_row.php:4 ..
111
- #: pro/classes/views/displays/where_row.php:4
112
- msgid "Entry creation date"
113
- msgstr ""
114
-
115
- #: ../classes/controllers/FrmEntriesController.php:83 ..
116
- #: pro/classes/helpers/FrmProFieldsHelper.php:2603 ..
117
- #: pro/classes/views/displays/_calendar_options.php:5 ..
118
- #: pro/classes/views/displays/_calendar_options.php:17 ..
119
- #: pro/classes/views/displays/order_row.php:5
120
- msgid "Entry update date"
121
- msgstr ""
122
-
123
- #: ../classes/controllers/FrmEntriesController.php:328
124
- msgid "Your import is complete"
125
- msgstr ""
126
-
127
- #: ../classes/controllers/FrmEntriesController.php:338
128
- #, php-format
129
- msgid ""
130
- "This form is in the trash and is scheduled to be deleted permanently in %s "
131
- "along with any entries."
132
- msgstr ""
133
-
134
- #: ../classes/controllers/FrmEntriesController.php:357
135
- msgid "You are trying to view an entry that does not exist."
136
- msgstr ""
137
-
138
- #: ../classes/controllers/FrmEntriesController.php:386
139
- msgid "Entry was Successfully Destroyed"
140
- msgstr ""
141
-
142
- #: ../classes/controllers/FrmEntriesController.php:420
143
- msgid "Entries were Successfully Destroyed"
144
- msgstr ""
145
-
146
- #: ../classes/controllers/FrmEntriesController.php:423 ..
147
- #: pro/classes/controllers/FrmProEntriesController.php:392
148
- msgid "No entries were specified"
149
- msgstr ""
150
-
151
- #: ../classes/controllers/FrmFieldsController.php:229
152
- msgid "New Option"
153
- msgstr ""
154
-
155
- #: ../classes/controllers/FrmFormActionsController.php:9 ../classes/views/frm-
156
- #: forms/settings.php:30
157
- msgid "Form Actions"
158
- msgstr ""
159
-
160
- #: ../classes/controllers/FrmFormsController.php:161
161
- msgid "Settings Successfully Updated"
162
- msgstr ""
163
-
164
- #: ../classes/controllers/FrmFormsController.php:213 ..
165
- #: classes/controllers/FrmFormsController.php:616
166
- msgid "Form was Successfully Updated"
167
- msgstr ""
168
-
169
- #: ../classes/controllers/FrmFormsController.php:228 ..
170
- #: classes/controllers/FrmFormsController.php:256
171
- msgid "Form template was Successfully Created"
172
- msgstr ""
173
-
174
- #: ../classes/controllers/FrmFormsController.php:256
175
- msgid "Form was Successfully Copied"
176
- msgstr ""
177
-
178
- #: ../classes/controllers/FrmFormsController.php:260
179
- msgid "There was a problem creating the new template."
180
- msgstr ""
181
-
182
- #: ../classes/controllers/FrmFormsController.php:323 ..
183
- #: classes/controllers/FrmFormsController.php:358
184
- #, php-format
185
- msgid "%1$s form restored from the Trash."
186
- msgid_plural "%1$s forms restored from the Trash."
187
- msgstr[0] ""
188
- msgstr[1] ""
189
-
190
- #: ../classes/controllers/FrmFormsController.php:359 ..
191
- #: classes/controllers/FrmFormsController.php:377
192
- #, php-format
193
- msgid "%1$s form moved to the Trash. %2$sUndo%3$s"
194
- msgid_plural "%1$s forms moved to the Trash. %2$sUndo%3$s"
195
- msgstr[0] ""
196
- msgstr[1] ""
197
-
198
- #: ../classes/controllers/FrmFormsController.php:395 ..
199
- #: classes/controllers/FrmFormsController.php:411 ..
200
- #: classes/controllers/FrmFormsController.php:425
201
- #, php-format
202
- msgid "%1$s form permanently deleted."
203
- msgid_plural "%1$s forms permanently deleted."
204
- msgstr[0] ""
205
- msgstr[1] ""
206
-
207
- #: ../classes/controllers/FrmFormsController.php:444
208
- msgid "Add forms and content"
209
- msgstr ""
210
-
211
- #: ../classes/controllers/FrmFormsController.php:460 ../classes/views/frm-
212
- #: forms/insert_form_popup.php:24
213
- msgid "Insert a Form"
214
- msgstr ""
215
-
216
- #: ../classes/controllers/FrmFormsController.php:487
217
- msgid "Display form title"
218
- msgstr ""
219
-
220
- #: ../classes/controllers/FrmFormsController.php:488
221
- msgid "Display form description"
222
- msgstr ""
223
-
224
- #: ../classes/controllers/FrmFormsController.php:489
225
- msgid "Minimize form HTML"
226
- msgstr ""
227
-
228
- #: ../classes/controllers/FrmFormsController.php:543
229
- msgid "Template Name"
230
- msgstr ""
231
-
232
- #: ../classes/controllers/FrmFormsController.php:547 ..
233
- #: classes/controllers/FrmStylesController.php:357 ..
234
- #: classes/views/styles/_sample_form.php:17 ../classes/views/styles/manage.php:15
235
- msgid "Form Title"
236
- msgstr ""
237
-
238
- #: ../classes/controllers/FrmFormsController.php:550 ../classes/views/frm-
239
- #: forms/_publish_box.php:47 ../pro/classes/views/displays/submitbox_actions.php:2
240
- msgid "Shortcodes"
241
- msgstr ""
242
-
243
- #: ../classes/controllers/FrmFormsController.php:593
244
- msgid "You are trying to edit a form that does not exist."
245
- msgstr ""
246
-
247
- #: ../classes/controllers/FrmFormsController.php:597
248
- #, php-format
249
- msgid "You are trying to edit a child form. Please edit from %1$shere%2$s"
250
- msgstr ""
251
-
252
- #: ../classes/controllers/FrmFormsController.php:618
253
- msgid "Template was Successfully Updated"
254
- msgstr ""
255
-
256
- #: ../classes/controllers/FrmFormsController.php:624 ..
257
- #: classes/controllers/FrmFormsController.php:645
258
- msgid "That template cannot be edited"
259
- msgstr ""
260
-
261
- #: ../classes/controllers/FrmFormsController.php:695
262
- msgid "Separator"
263
- msgstr ""
264
-
265
- #: ../classes/controllers/FrmFormsController.php:696
266
- msgid "Use a different separator for checkbox fields"
267
- msgstr ""
268
-
269
- #: ../classes/controllers/FrmFormsController.php:699
270
- msgid "Field Label"
271
- msgstr ""
272
-
273
- #: ../classes/controllers/FrmFormsController.php:701
274
- msgid "No Auto P"
275
- msgstr ""
276
-
277
- #: ../classes/controllers/FrmFormsController.php:702
278
- msgid "Do not automatically add any paragraphs or line breaks"
279
- msgstr ""
280
-
281
- #: ../classes/controllers/FrmFormsController.php:717 ../classes/views/frm-
282
- #: entries/sidebar-shared.php:23 ../pro/classes/controllers/FrmProFormsController.
283
- #: php:574 ../pro/classes/helpers/FrmProEntriesListHelper.php:62 ..
284
- #: pro/classes/helpers/FrmProEntriesListHelper.php:73 ..
285
- #: pro/classes/helpers/FrmProFieldsHelper.php:2598 ..
286
- #: pro/classes/views/displays/order_row.php:3 ..
287
- #: pro/classes/views/displays/where_row.php:6 ..
288
- #: pro/classes/views/xml/map_csv_fields.php:56 ..
289
- #: pro/classes/views/xml/map_csv_fields.php:56
290
- msgid "Entry ID"
291
- msgstr ""
292
-
293
- #: ../classes/controllers/FrmFormsController.php:720 ..
294
- #: pro/classes/helpers/FrmProFieldsHelper.php:2601
295
- msgid "User IP"
296
- msgstr ""
297
-
298
- #: ../classes/controllers/FrmFormsController.php:721
299
- msgid "Entry created"
300
- msgstr ""
301
-
302
- #: ../classes/controllers/FrmFormsController.php:722
303
- msgid "Entry updated"
304
- msgstr ""
305
-
306
- #: ../classes/controllers/FrmFormsController.php:725 ..
307
- #: pro/classes/helpers/FrmProFieldsHelper.php:2659
308
- msgid "Site Name"
309
- msgstr ""
310
-
311
- #: ../classes/controllers/FrmFormsController.php:733
312
- msgid "Default Msg"
313
- msgstr ""
314
-
315
- #: ../classes/controllers/FrmFormsController.php:734
316
- msgid "Default HTML"
317
- msgstr ""
318
-
319
- #: ../classes/controllers/FrmFormsController.php:735
320
- msgid "Default Plain"
321
- msgstr ""
322
-
323
- #: ../classes/controllers/FrmFormsController.php:737
324
- msgid "Detail Link"
325
- msgstr ""
326
-
327
- #: ../classes/controllers/FrmFormsController.php:738
328
- msgid "Edit Entry Link"
329
- msgstr ""
330
-
331
- #: ../classes/controllers/FrmFormsController.php:739
332
- msgid "Even/Odd"
333
- msgstr ""
334
-
335
- #: ../classes/controllers/FrmFormsController.php:740
336
- msgid "Entry Count"
337
- msgstr ""
338
-
339
- #: ../classes/controllers/FrmFormsController.php:741
340
- msgid "Calendar Date"
341
- msgstr ""
342
-
343
- #: ../classes/controllers/FrmFormsController.php:820
344
- msgid "No forms were specified"
345
- msgstr ""
346
-
347
- #: ../classes/controllers/FrmFormsController.php:967
348
- msgid "Abnormal HTML characters prevented your form from saving correctly"
349
- msgstr ""
350
-
351
- #: ../classes/controllers/FrmFormsController.php:1013 ..
352
- #: classes/controllers/FrmFormsController.php:1016
353
- msgid "Edit Forms"
354
- msgstr ""
355
-
356
- #: ../classes/controllers/FrmFormsController.php:1025 ..
357
- #: classes/helpers/FrmFormsHelper.php:60 ../classes/helpers/FrmFormsHelper.php:
358
- #: 115 ../classes/helpers/FrmFormsHelper.php:597 ..
359
- #: classes/helpers/FrmFormsListHelper.php:149 ..
360
- #: classes/helpers/FrmFormsListHelper.php:335 ../classes/views/frm-entries/list.
361
- #: php:24 ../classes/views/shared/form-nav.php:20 ../classes/views/styles/manage.
362
- #: php:31 ../classes/views/xml/import_form.php:85 ..
363
- #: pro/classes/controllers/FrmProDisplaysController.php:101 ..
364
- #: pro/classes/controllers/FrmProFormsController.php:454 ..
365
- #: pro/classes/views/xml/csv_opts.php:13
366
- msgid "(no title)"
367
- msgstr ""
368
-
369
- #: ../classes/controllers/FrmFormsController.php:1065 ..
370
- #: classes/controllers/FrmFormsController.php:1077
371
- msgid "Please select a valid form"
372
- msgstr ""
373
-
374
- #: ../classes/controllers/FrmSettingsController.php:30 ..
375
- #: classes/models/FrmPointers.php:314 ../classes/views/addons/settings.php:2
376
- msgid "Plugin Licenses"
377
- msgstr ""
378
-
379
- #: ../classes/controllers/FrmStylesController.php:37
380
- msgid "Create a New Style"
381
- msgstr ""
382
-
383
- #: ../classes/controllers/FrmStylesController.php:38
384
- msgid "Edit Style"
385
- msgstr ""
386
-
387
- #: ../classes/controllers/FrmStylesController.php:206 ..
388
- #: classes/controllers/FrmStylesController.php:290
389
- msgid "Your styling settings have been saved."
390
- msgstr ""
391
-
392
- #: ../classes/controllers/FrmStylesController.php:265
393
- msgid "Your form styles have been saved."
394
- msgstr ""
395
-
396
- #: ../classes/controllers/FrmStylesController.php:358 ../classes/views/frm-
397
- #: forms/mb_html_tab.php:35
398
- msgid "Form Description"
399
- msgstr ""
400
-
401
- #: ../classes/controllers/FrmStylesController.php:359
402
- msgid "Field Labels"
403
- msgstr ""
404
-
405
- #: ../classes/controllers/FrmStylesController.php:360 ../classes/views/frm-
406
- #: forms/mb_html_tab.php:9
407
- msgid "Field Description"
408
- msgstr ""
409
-
410
- #: ../classes/controllers/FrmStylesController.php:361
411
- msgid "Field Colors"
412
- msgstr ""
413
-
414
- #: ../classes/controllers/FrmStylesController.php:362
415
- msgid "Field Settings"
416
- msgstr ""
417
-
418
- #: ../classes/controllers/FrmStylesController.php:363
419
- msgid "Check Box & Radio Fields"
420
- msgstr ""
421
-
422
- #: ../classes/controllers/FrmStylesController.php:365
423
- msgid "Form Messages"
424
- msgstr ""
425
-
426
- #: ../classes/controllers/FrmXMLController.php:81
427
- msgid "Oops, you didn't select a file."
428
- msgstr ""
429
-
430
- #: ../classes/controllers/FrmXMLController.php:110
431
- msgid "XML import is not enabled on your server."
432
- msgstr ""
433
-
434
- #: ../classes/controllers/FrmXMLController.php:282
435
- msgid "Please select a form"
436
- msgstr ""
437
-
438
- #: ../classes/controllers/FrmXMLController.php:336
439
- msgid "There are no entries for that form."
440
- msgstr ""
441
-
442
- #: ../classes/helpers/FrmAppHelper.php:603
443
- msgid "View Forms and Templates"
444
- msgstr ""
445
-
446
- #: ../classes/helpers/FrmAppHelper.php:604
447
- msgid "Add/Edit Forms and Templates"
448
- msgstr ""
449
-
450
- #: ../classes/helpers/FrmAppHelper.php:605
451
- msgid "Delete Forms and Templates"
452
- msgstr ""
453
-
454
- #: ../classes/helpers/FrmAppHelper.php:606
455
- msgid "Access this Settings Page"
456
- msgstr ""
457
-
458
- #: ../classes/helpers/FrmAppHelper.php:607
459
- msgid "View Entries from Admin Area"
460
- msgstr ""
461
-
462
- #: ../classes/helpers/FrmAppHelper.php:608
463
- msgid "Delete Entries from Admin Area"
464
- msgstr ""
465
-
466
- #: ../classes/helpers/FrmAppHelper.php:615
467
- msgid "Add Entries from Admin Area"
468
- msgstr ""
469
-
470
- #: ../classes/helpers/FrmAppHelper.php:616
471
- msgid "Edit Entries from Admin Area"
472
- msgstr ""
473
-
474
- #: ../classes/helpers/FrmAppHelper.php:617
475
- msgid "View Reports"
476
- msgstr ""
477
-
478
- #: ../classes/helpers/FrmAppHelper.php:618
479
- msgid "Add/Edit Views"
480
- msgstr ""
481
-
482
- #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
483
- #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1501
484
- #, php-format
485
- msgid "%s is invalid"
486
- msgstr ""
487
-
488
- #: ../classes/helpers/FrmAppHelper.php:1253
489
- msgid "at"
490
- msgstr ""
491
-
492
- #: ../classes/helpers/FrmAppHelper.php:1302 ../classes/helpers/FrmAppHelper.php:
493
- #: 1321
494
- msgid "seconds"
495
- msgstr ""
496
-
497
- #: ../classes/helpers/FrmAppHelper.php:1315 ..
498
- #: pro/classes/controllers/FrmProDisplaysController.php:742
499
- msgid "year"
500
- msgstr ""
501
-
502
- #: ../classes/helpers/FrmAppHelper.php:1315 ..
503
- #: pro/classes/controllers/FrmProDisplaysController.php:742
504
- msgid "years"
505
- msgstr ""
506
-
507
- #: ../classes/helpers/FrmAppHelper.php:1316 ..
508
- #: pro/classes/controllers/FrmProDisplaysController.php:742
509
- msgid "month"
510
- msgstr ""
511
-
512
- #: ../classes/helpers/FrmAppHelper.php:1316 ..
513
- #: pro/classes/controllers/FrmProDisplaysController.php:742
514
- msgid "months"
515
- msgstr ""
516
-
517
- #: ../classes/helpers/FrmAppHelper.php:1317 ..
518
- #: pro/classes/controllers/FrmProDisplaysController.php:742
519
- msgid "week"
520
- msgstr ""
521
-
522
- #: ../classes/helpers/FrmAppHelper.php:1317 ..
523
- #: pro/classes/controllers/FrmProDisplaysController.php:742
524
- msgid "weeks"
525
- msgstr ""
526
-
527
- #: ../classes/helpers/FrmAppHelper.php:1318 ..
528
- #: pro/classes/controllers/FrmProDisplaysController.php:742
529
- msgid "day"
530
- msgstr ""
531
-
532
- #: ../classes/helpers/FrmAppHelper.php:1319
533
- msgid "hour"
534
- msgstr ""
535
-
536
- #: ../classes/helpers/FrmAppHelper.php:1319 ../pro/classes/views/frmpro-
537
- #: forms/add_form_options.php:39
538
- msgid "hours"
539
- msgstr ""
540
-
541
- #: ../classes/helpers/FrmAppHelper.php:1320
542
- msgid "minute"
543
- msgstr ""
544
-
545
- #: ../classes/helpers/FrmAppHelper.php:1320
546
- msgid "minutes"
547
- msgstr ""
548
-
549
- #: ../classes/helpers/FrmAppHelper.php:1321
550
- msgid "second"
551
- msgstr ""
552
-
553
- #: ../classes/helpers/FrmAppHelper.php:1529
554
- msgid "Give this action a label for easy reference."
555
- msgstr ""
556
-
557
- #: ../classes/helpers/FrmAppHelper.php:1530
558
- msgid ""
559
- "Add one or more recipient addresses separated by a \",\". FORMAT: Name "
560
- "<name@email.com> or name@email.com. [admin_email] is the address set in WP "
561
- "General Settings."
562
- msgstr ""
563
-
564
- #: ../classes/helpers/FrmAppHelper.php:1531
565
- msgid ""
566
- "Add CC addresses separated by a \",\". FORMAT: Name <name@email.com> or "
567
- "name@email.com."
568
- msgstr ""
569
-
570
- #: ../classes/helpers/FrmAppHelper.php:1532
571
- msgid ""
572
- "Add BCC addresses separated by a \",\". FORMAT: Name <name@email.com> or "
573
- "name@email.com."
574
- msgstr ""
575
-
576
- #: ../classes/helpers/FrmAppHelper.php:1533
577
- msgid ""
578
- "If you would like a different reply to address than the \"from\" address, add "
579
- "a single address here. FORMAT: Name <name@email.com> or name@email.com."
580
- msgstr ""
581
-
582
- #: ../classes/helpers/FrmAppHelper.php:1534
583
- msgid ""
584
- "Enter the name and/or email address of the sender. FORMAT: John Bates "
585
- "<john@example.com> or john@example.com."
586
- msgstr ""
587
-
588
- #: ../classes/helpers/FrmAppHelper.php:1535
589
- #, php-format
590
- msgid ""
591
- "If you leave the subject blank, the default will be used: %1$s Form "
592
- "submitted on %2$s"
593
- msgstr ""
594
-
595
- #: ../classes/helpers/FrmAppHelper.php:1712 ../classes/helpers/FrmAppHelper.php:
596
- #: 1777
597
- msgid "Please wait while your site updates."
598
- msgstr ""
599
-
600
- #: ../classes/helpers/FrmAppHelper.php:1713
601
- msgid "Are you sure you want to deauthorize Formidable Forms on this site?"
602
- msgstr ""
603
-
604
- #: ../classes/helpers/FrmAppHelper.php:1715 ../classes/helpers/FrmAppHelper.php:
605
- #: 1741
606
- msgid "Loading&hellip;"
607
- msgstr ""
608
-
609
- #: ../classes/helpers/FrmAppHelper.php:1746
610
- msgid "No results match"
611
- msgstr ""
612
-
613
- #: ../classes/helpers/FrmAppHelper.php:1752
614
- msgid ""
615
- "Are you sure you want to do this? Clicking OK will delete all forms, form "
616
- "data, and all other Formidable data. There is no Undo."
617
- msgstr ""
618
-
619
- #: ../classes/helpers/FrmAppHelper.php:1753 ../classes/views/frm-forms/add_field.
620
- #: php:81 ../classes/views/frm-forms/add_field.php:94 ../classes/views/frm-
621
- #: forms/form.php:13 ../pro/classes/views/combo-fields/inplace-sub-label.php:2
622
- msgid "(Click to add description)"
623
- msgstr ""
624
-
625
- #: ../classes/helpers/FrmAppHelper.php:1754 ../classes/views/frm-fields/single-
626
- #: option.php:7 ../classes/views/frm-fields/single-option.php:11 ..
627
- #: pro/classes/views/frmpro-fields/other-option.php:10
628
- msgid "(Blank)"
629
- msgstr ""
630
-
631
- #: ../classes/helpers/FrmAppHelper.php:1755 ../classes/views/frm-forms/add_field.
632
- #: php:63 ../pro/classes/views/frmpro-fields/field-selection.php:12 ..
633
- #: pro/classes/views/lookup-fields/back-end/watch-row.php:10
634
- msgid "(no label)"
635
- msgstr ""
636
-
637
- #: ../classes/helpers/FrmAppHelper.php:1761 ../classes/helpers/FrmFieldsHelper.
638
- #: php:1124
639
- msgid "Clear default value when typing"
640
- msgstr ""
641
-
642
- #: ../classes/helpers/FrmAppHelper.php:1762 ../classes/helpers/FrmFieldsHelper.
643
- #: php:1124
644
- msgid "Do not clear default value when typing"
645
- msgstr ""
646
-
647
- #: ../classes/helpers/FrmAppHelper.php:1763 ../classes/helpers/FrmFieldsHelper.
648
- #: php:1133
649
- msgid "Default value will pass form validation"
650
- msgstr ""
651
-
652
- #: ../classes/helpers/FrmAppHelper.php:1764 ../classes/helpers/FrmFieldsHelper.
653
- #: php:1133
654
- msgid "Default value will NOT pass form validation"
655
- msgstr ""
656
-
657
- #: ../classes/helpers/FrmAppHelper.php:1765
658
- msgid "Are you sure?"
659
- msgstr ""
660
-
661
- #: ../classes/helpers/FrmAppHelper.php:1766
662
- msgid "Are you sure you want to delete this field and all data associated with it?"
663
- msgstr ""
664
-
665
- #: ../classes/helpers/FrmAppHelper.php:1767
666
- msgid "WARNING: This will delete all fields inside of the section as well."
667
- msgstr ""
668
-
669
- #: ../classes/helpers/FrmAppHelper.php:1768
670
- msgid ""
671
- "Warning: If you have entries with multiple rows, all but the first row will "
672
- "be lost."
673
- msgstr ""
674
-
675
- #: ../classes/helpers/FrmAppHelper.php:1770 ../classes/helpers/FrmFieldsHelper.
676
- #: php:172 ../pro/classes/helpers/FrmProFieldsHelper.php:691
677
- msgid "The entered values do not match"
678
- msgstr ""
679
-
680
- #: ../classes/helpers/FrmAppHelper.php:1771
681
- msgid "Enter Email"
682
- msgstr ""
683
-
684
- #: ../classes/helpers/FrmAppHelper.php:1772
685
- msgid "Confirm Email"
686
- msgstr ""
687
-
688
- #: ../classes/helpers/FrmAppHelper.php:1773
689
- msgid ""
690
- "In certain browsers (e.g. Firefox) text will not display correctly if the "
691
- "field height is too small relative to the field padding and text size. "
692
- "Please increase your field height or decrease your field padding."
693
- msgstr ""
694
-
695
- #: ../classes/helpers/FrmAppHelper.php:1774
696
- msgid "Enter Password"
697
- msgstr ""
698
-
699
- #: ../classes/helpers/FrmAppHelper.php:1775
700
- msgid "Confirm Password"
701
- msgstr ""
702
-
703
- #: ../classes/helpers/FrmAppHelper.php:1776
704
- msgid "Import Complete"
705
- msgstr ""
706
-
707
- #: ../classes/helpers/FrmAppHelper.php:1778
708
- msgid "Warning: There is no way to retrieve unsaved entries."
709
- msgstr ""
710
-
711
- #: ../classes/helpers/FrmAppHelper.php:1779
712
- msgid "Private"
713
- msgstr ""
714
-
715
- #: ../classes/helpers/FrmAppHelper.php:1781
716
- msgid "No new licenses were found"
717
- msgstr ""
718
-
719
- #: ../classes/helpers/FrmAppHelper.php:1802
720
- msgid ""
721
- "You are running an outdated version of Formidable. This plugin may not work "
722
- "correctly if you do not update Formidable."
723
- msgstr ""
724
-
725
- #: ../classes/helpers/FrmAppHelper.php:1808
726
- msgid "English/Western"
727
- msgstr ""
728
-
729
- #: ../classes/helpers/FrmAppHelper.php:1813
730
- msgid "Chinese Hong Kong"
731
- msgstr ""
732
-
733
- #: ../classes/helpers/FrmAppHelper.php:1814
734
- msgid "Chinese Simplified"
735
- msgstr ""
736
-
737
- #: ../classes/helpers/FrmAppHelper.php:1814
738
- msgid "Chinese Traditional"
739
- msgstr ""
740
-
741
- #: ../classes/helpers/FrmAppHelper.php:1817
742
- msgid "English/UK"
743
- msgstr ""
744
-
745
- #: ../classes/helpers/FrmAppHelper.php:1818
746
- msgid "Faroese"
747
- msgstr ""
748
-
749
- #: ../classes/helpers/FrmAppHelper.php:1819
750
- msgid "Farsi/Persian"
751
- msgstr ""
752
-
753
- #: ../classes/helpers/FrmAppHelper.php:1819
754
- msgid "Filipino"
755
- msgstr ""
756
-
757
- #: ../classes/helpers/FrmAppHelper.php:1820
758
- msgid "French"
759
- msgstr ""
760
-
761
- #: ../classes/helpers/FrmAppHelper.php:1821
762
- msgid "French/Canadian"
763
- msgstr ""
764
-
765
- #: ../classes/helpers/FrmAppHelper.php:1821
766
- msgid "French/Swiss"
767
- msgstr ""
768
-
769
- #: ../classes/helpers/FrmAppHelper.php:1822
770
- msgid "German/Austria"
771
- msgstr ""
772
-
773
- #: ../classes/helpers/FrmAppHelper.php:1823
774
- msgid "German/Switzerland"
775
- msgstr ""
776
-
777
- #: ../classes/helpers/FrmAppHelper.php:1823
778
- msgid "Greek"
779
- msgstr ""
780
-
781
- #: ../classes/helpers/FrmAppHelper.php:1824 ../classes/helpers/FrmAppHelper.php:
782
- #: 1824
783
- msgid "Hebrew"
784
- msgstr ""
785
-
786
- #: ../classes/helpers/FrmAppHelper.php:1825
787
- msgid "Hindi"
788
- msgstr ""
789
-
790
- #: ../classes/helpers/FrmAppHelper.php:1825
791
- msgid "Hungarian"
792
- msgstr ""
793
-
794
- #: ../classes/helpers/FrmAppHelper.php:1826
795
- msgid "Icelandic"
796
- msgstr ""
797
-
798
- #: ../classes/helpers/FrmAppHelper.php:1826
799
- msgid "Indonesian"
800
- msgstr ""
801
-
802
- #: ../classes/helpers/FrmAppHelper.php:1827
803
- msgid "Italian"
804
- msgstr ""
805
-
806
- #: ../classes/helpers/FrmAppHelper.php:1827
807
- msgid "Japanese"
808
- msgstr ""
809
-
810
- #: ../classes/helpers/FrmAppHelper.php:1828
811
- msgid "Korean"
812
- msgstr ""
813
-
814
- #: ../classes/helpers/FrmAppHelper.php:1828
815
- msgid "Latvian"
816
- msgstr ""
817
-
818
- #: ../classes/helpers/FrmAppHelper.php:1829
819
- msgid "Lithuanian"
820
- msgstr ""
821
-
822
- #: ../classes/helpers/FrmAppHelper.php:1829
823
- msgid "Malaysian"
824
- msgstr ""
825
-
826
- #: ../classes/helpers/FrmAppHelper.php:1830
827
- msgid "Norwegian"
828
- msgstr ""
829
-
830
- #: ../classes/helpers/FrmAppHelper.php:1830
831
- msgid "Polish"
832
- msgstr ""
833
-
834
- #: ../classes/helpers/FrmAppHelper.php:1831
835
- msgid "Portuguese"
836
- msgstr ""
837
-
838
- #: ../classes/helpers/FrmAppHelper.php:1831
839
- msgid "Portuguese/Brazilian"
840
- msgstr ""
841
-
842
- #: ../classes/helpers/FrmAppHelper.php:1832
843
- msgid "Portuguese/Portugal"
844
- msgstr ""
845
-
846
- #: ../classes/helpers/FrmAppHelper.php:1832
847
- msgid "Romanian"
848
- msgstr ""
849
-
850
- #: ../classes/helpers/FrmAppHelper.php:1833
851
- msgid "Russian"
852
- msgstr ""
853
-
854
- #: ../classes/helpers/FrmAppHelper.php:1833 ../classes/helpers/FrmAppHelper.php:
855
- #: 1834
856
- msgid "Serbian"
857
- msgstr ""
858
-
859
- #: ../classes/helpers/FrmAppHelper.php:1834
860
- msgid "Slovak"
861
- msgstr ""
862
-
863
- #: ../classes/helpers/FrmAppHelper.php:1835
864
- msgid "Slovenian"
865
- msgstr ""
866
-
867
- #: ../classes/helpers/FrmAppHelper.php:1835
868
- msgid "Spanish"
869
- msgstr ""
870
-
871
- #: ../classes/helpers/FrmAppHelper.php:1836
872
- msgid "Spanish/Latin America"
873
- msgstr ""
874
-
875
- #: ../classes/helpers/FrmAppHelper.php:1836
876
- msgid "Swedish"
877
- msgstr ""
878
-
879
- #: ../classes/helpers/FrmAppHelper.php:1837
880
- msgid "Tamil"
881
- msgstr ""
882
-
883
- #: ../classes/helpers/FrmAppHelper.php:1837
884
- msgid "Thai"
885
- msgstr ""
886
-
887
- #: ../classes/helpers/FrmAppHelper.php:1839
888
- msgid "Ukranian"
889
- msgstr ""
890
-
891
- #: ../classes/helpers/FrmAppHelper.php:1839
892
- msgid "Vietnamese"
893
- msgstr ""
894
-
895
- #: ../classes/helpers/FrmCSVExportHelper.php:94
896
- msgid "(label)"
897
- msgstr ""
898
-
899
- #: ../classes/helpers/FrmCSVExportHelper.php:105
900
- msgid "Comment User"
901
- msgstr ""
902
-
903
- #: ../classes/helpers/FrmCSVExportHelper.php:106
904
- msgid "Comment Date"
905
- msgstr ""
906
-
907
- #: ../classes/helpers/FrmCSVExportHelper.php:111 ..
908
- #: pro/classes/views/xml/map_csv_fields.php:50
909
- msgid "Timestamp"
910
- msgstr ""
911
-
912
- #: ../classes/helpers/FrmCSVExportHelper.php:114
913
- msgid "Updated By"
914
- msgstr ""
915
-