Formidable Forms – Form Builder for WordPress - Version 2.05.02

Version Description

  • New: Add frm_affiliate_id hook for theme author affiliates
  • Fix: XSS vulnerability on form preview page. Don't check POST values before displaying the form
  • Enhancement: Speed up the Formidable > Entries listing page for large forms
  • Fix: Don't add slashes to default field values
  • Fix: Replace the arrows in the settings sections that disappeared in WP 4.8
  • Pro Version Forms
  • Enhancement: Add frmCalSeparation jQuery event for changing the comma in text calculations to something else
  • Fix: Prevent more themes from overriding the progress bar styling when the option to override theme styling is checked
  • Fix: More reliably hide and show the buttons for adding taxonomies and custom fields in the create post settings
  • Fix: Several issues with calculations with both fields inside and outside of repeating sections. Fixed issue with conditional radio fields used in repeating calculations.
  • Fix: Prevent endless loops in conditional logic when fields are dependent on each other
  • Fix: Searching number field values with LIKE was causing issues
  • Fix: Use secure cookies on SSL sites
  • Fix: Convert dates in certain formats more realibly before save
  • Fix: Correctly duplicate fields inside a repeating section
Download this release

Release Info

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

Code changes from version 2.05.01 to 2.05.02

classes/controllers/FrmFieldsController.php CHANGED
@@ -164,7 +164,7 @@ 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
  $values = apply_filters( 'frm_prepare_single_field_for_duplication', $values );
169
 
170
  $field_id = FrmField::create( $values );
@@ -596,7 +596,9 @@ class FrmFieldsController {
596
  }
597
 
598
  private static function add_frmval_to_input( $field, &$add_html ) {
599
- $val = str_replace( array( "\r\n", "\n" ), '\r', addslashes( str_replace( ''', "'", esc_attr( $field['default_value'] ) ) ) );
 
 
600
  if ( $val != '' ) {
601
  $add_html['data-frmval'] = 'data-frmval="' . esc_attr( $val ) . '"';
602
  }
164
  do_action( 'frm_duplicate_field_' . $copy_field->type, $copy_field, $form_id );
165
 
166
  $values = array();
167
+ FrmFieldsHelper::fill_field( $values, $copy_field, $copy_field->form_id );
168
  $values = apply_filters( 'frm_prepare_single_field_for_duplication', $values );
169
 
170
  $field_id = FrmField::create( $values );
596
  }
597
 
598
  private static function add_frmval_to_input( $field, &$add_html ) {
599
+ $val = str_replace( ''', "'", $field['default_value'] );
600
+ $val = str_replace( array( "\r\n", "\n" ), '\r', $val );
601
+
602
  if ( $val != '' ) {
603
  $add_html['data-frmval'] = 'data-frmval="' . esc_attr( $val ) . '"';
604
  }
classes/helpers/FrmAppHelper.php CHANGED
@@ -4,13 +4,13 @@ if ( ! defined('ABSPATH') ) {
4
  }
5
 
6
  class FrmAppHelper {
7
- public static $db_version = 45; //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.05.01';
14
 
15
  /**
16
  * @since 1.07.02
@@ -60,13 +60,14 @@ class FrmAppHelper {
60
  public static function make_affiliate_url( $url ) {
61
  $affiliate_id = self::get_affiliate();
62
  if ( ! empty( $affiliate_id ) ) {
63
- $url = add_query_arg( 'aff', $affiliate_id, $url );
 
64
  }
65
  return $url;
66
  }
67
 
68
  public static function get_affiliate() {
69
- return '';
70
  }
71
 
72
  /**
@@ -375,6 +376,8 @@ class FrmAppHelper {
375
  $allowed_html[ $a ] = isset( $html[ $a ] ) ? $html[ $a ] : array();
376
  }
377
 
 
 
378
  return wp_kses( $value, $allowed_html );
379
  }
380
 
4
  }
5
 
6
  class FrmAppHelper {
7
+ public static $db_version = 46; //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.05.02';
14
 
15
  /**
16
  * @since 1.07.02
60
  public static function make_affiliate_url( $url ) {
61
  $affiliate_id = self::get_affiliate();
62
  if ( ! empty( $affiliate_id ) ) {
63
+ $url = str_replace( array( 'http://', 'https://' ), '', $url );
64
+ $url = 'http://www.shareasale.com/r.cfm?u='. absint( $affiliate_id ) .'&b=841990&m=64739&afftrack=plugin&urllink=' . urlencode( $url );
65
  }
66
  return $url;
67
  }
68
 
69
  public static function get_affiliate() {
70
+ return absint( apply_filters( 'frm_affiliate_id', 0 ) );
71
  }
72
 
73
  /**
376
  $allowed_html[ $a ] = isset( $html[ $a ] ) ? $html[ $a ] : array();
377
  }
378
 
379
+ $allowed_html = apply_filters( 'frm_striphtml_allowed_tags', $allowed_html );
380
+
381
  return wp_kses( $value, $allowed_html );
382
  }
383
 
classes/helpers/FrmEntriesHelper.php CHANGED
@@ -6,10 +6,7 @@ if ( ! defined('ABSPATH') ) {
6
  class FrmEntriesHelper {
7
 
8
  public static function setup_new_vars( $fields, $form = '', $reset = false, $args = array() ) {
9
- $values = array();
10
- foreach ( array( 'name' => '', 'description' => '', 'item_key' => '' ) as $var => $default ) {
11
- $values[ $var ] = FrmAppHelper::get_post_param( $var, $default, 'wp_kses_post' );
12
- }
13
 
14
  $values['fields'] = array();
15
  if ( empty($fields) ) {
@@ -62,13 +59,10 @@ class FrmEntriesHelper {
62
  }
63
  }
64
 
65
- $form->options = maybe_unserialize($form->options);
66
- if ( is_array($form->options) ) {
67
- foreach ( $form->options as $opt => $value ) {
68
- $values[ $opt ] = FrmAppHelper::get_post_param( $opt, $value );
69
- unset($opt, $value);
70
- }
71
- }
72
 
73
  $form_defaults = FrmFormsHelper::get_default_opts();
74
 
@@ -259,9 +253,7 @@ class FrmEntriesHelper {
259
  }
260
 
261
  $val = implode(', ', (array) $field_value );
262
- $val = wp_kses_post( $val );
263
-
264
- return $val;
265
  }
266
 
267
  /**
6
  class FrmEntriesHelper {
7
 
8
  public static function setup_new_vars( $fields, $form = '', $reset = false, $args = array() ) {
9
+ $values = array( 'name' => '', 'description' => '', 'item_key' => '' );
 
 
 
10
 
11
  $values['fields'] = array();
12
  if ( empty($fields) ) {
59
  }
60
  }
61
 
62
+ $form->options = maybe_unserialize( $form->options );
63
+ if ( is_array( $form->options ) ) {
64
+ $values = array_merge( $values, $form->options );
65
+ }
 
 
 
66
 
67
  $form_defaults = FrmFormsHelper::get_default_opts();
68
 
253
  }
254
 
255
  $val = implode(', ', (array) $field_value );
256
+ return wp_kses_post( $val );
 
 
257
  }
258
 
259
  /**
classes/helpers/FrmEntriesListHelper.php CHANGED
@@ -143,53 +143,17 @@ class FrmEntriesListHelper extends FrmListHelper {
143
  $attributes .= ' data-colname="' . $column_display_name . '"';
144
 
145
  $form_id = $this->params['form'] ? $this->params['form'] : 0;
146
- $col_name = preg_replace( '/^(' . $form_id . '_)/', '', $column_name );
147
- $this->column_name = $col_name;
148
- $val = '';
149
-
150
- switch ( $col_name ) {
151
- case 'cb':
152
- $r .= "<th scope='row' class='check-column'>$checkbox</th>";
153
- break;
154
- case 'ip':
155
- case 'id':
156
- case 'item_key':
157
- $val = $item->{$col_name};
158
- break;
159
- case 'name':
160
- case 'description':
161
- $val = FrmAppHelper::truncate(strip_tags($item->{$col_name}), 100);
162
- break;
163
- case 'created_at':
164
- case 'updated_at':
165
- $date = FrmAppHelper::get_formatted_time($item->{$col_name});
166
- $val = '<abbr title="' . esc_attr( FrmAppHelper::get_formatted_time( $item->{$col_name}, '', 'g:i:s A' ) ) . '">' . $date . '</abbr>';
167
- break;
168
- case 'is_draft':
169
- $val = empty($item->is_draft) ? __( 'No') : __( 'Yes');
170
- break;
171
- case 'form_id':
172
- $val = FrmFormsHelper::edit_form_link($item->form_id);
173
- break;
174
- case 'post_id':
175
- $val = FrmAppHelper::post_edit_link($item->post_id);
176
- break;
177
- case 'user_id':
178
- $user = get_userdata($item->user_id);
179
- $val = $user ? $user->user_login : '';
180
- break;
181
- case 'parent_item_id':
182
- $val = $item->parent_item_id;
183
- break;
184
- default:
185
- $val = apply_filters( 'frm_entries_' . $col_name . '_column', false, compact( 'item' ) );
186
- if ( $val === false ) {
187
- $this->get_column_value( $item, $val );
188
- }
189
- break;
190
- }
191
 
192
- if ( $col_name != 'cb' ) {
193
  $r .= "<td $attributes>";
194
  if ( $column_name == $action_col ) {
195
  $edit_link = '?page=formidable-entries&frm_action=edit&id=' . $item->id;
@@ -207,6 +171,50 @@ class FrmEntriesListHelper extends FrmListHelper {
207
  return $r;
208
  }
209
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
210
  /**
211
  * @param string $view_link
212
  */
143
  $attributes .= ' data-colname="' . $column_display_name . '"';
144
 
145
  $form_id = $this->params['form'] ? $this->params['form'] : 0;
146
+ $this->column_name = preg_replace( '/^(' . $form_id . '_)/', '', $column_name );
147
+
148
+ if ( $this->column_name == 'cb' ) {
149
+ $r .= "<th scope='row' class='check-column'>$checkbox</th>";
150
+ } else {
151
+ if ( in_array( $column_name, $hidden ) ) {
152
+ $val = '';
153
+ } else {
154
+ $val = $this->column_value( $item );
155
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
 
 
157
  $r .= "<td $attributes>";
158
  if ( $column_name == $action_col ) {
159
  $edit_link = '?page=formidable-entries&frm_action=edit&id=' . $item->id;
171
  return $r;
172
  }
173
 
174
+ private function column_value( $item ) {
175
+ $col_name = $this->column_name;
176
+
177
+ switch ( $col_name ) {
178
+ case 'ip':
179
+ case 'id':
180
+ case 'item_key':
181
+ $val = $item->{$col_name};
182
+ break;
183
+ case 'name':
184
+ case 'description':
185
+ $val = FrmAppHelper::truncate( strip_tags( $item->{$col_name} ), 100 );
186
+ break;
187
+ case 'created_at':
188
+ case 'updated_at':
189
+ $date = FrmAppHelper::get_formatted_time( $item->{$col_name} );
190
+ $val = '<abbr title="' . esc_attr( FrmAppHelper::get_formatted_time( $item->{$col_name}, '', 'g:i:s A' ) ) . '">' . $date . '</abbr>';
191
+ break;
192
+ case 'is_draft':
193
+ $val = empty( $item->is_draft ) ? __( 'No' ) : __( 'Yes' );
194
+ break;
195
+ case 'form_id':
196
+ $val = FrmFormsHelper::edit_form_link( $item->form_id );
197
+ break;
198
+ case 'post_id':
199
+ $val = FrmAppHelper::post_edit_link( $item->post_id );
200
+ break;
201
+ case 'user_id':
202
+ $user = get_userdata( $item->user_id );
203
+ $val = $user ? $user->user_login : '';
204
+ break;
205
+ case 'parent_item_id':
206
+ $val = $item->parent_item_id;
207
+ break;
208
+ default:
209
+ $val = apply_filters( 'frm_entries_' . $col_name . '_column', false, compact( 'item' ) );
210
+ if ( $val === false ) {
211
+ $this->get_column_value( $item, $val );
212
+ }
213
+ }
214
+
215
+ return $val;
216
+ }
217
+
218
  /**
219
  * @param string $view_link
220
  */
classes/views/frm-form-actions/form_action.php CHANGED
@@ -8,15 +8,17 @@ $form_action = apply_filters( 'frm_form_' . $form_action->post_excerpt . '_actio
8
  <div id="frm_form_action_<?php echo esc_attr( $action_key ) ?>" class="widget frm_form_action_settings frm_single_<?php echo esc_attr( $form_action->post_excerpt ) ?>_settings" data-actionkey="<?php echo esc_attr( $action_key ) ?>">
9
  <div class="widget-top">
10
  <div class="widget-title-action">
11
- <a href="javascript:void(0)" class="widget-action hide-if-no-js"></a>
 
 
12
  </div>
 
 
 
13
  <div class="widget-title">
14
- <h3><span class="frm_form_action_icon <?php echo esc_attr( $action_control->action_options['classes'] ) ?>"></span>
15
  <?php echo esc_html( $form_action->post_title ); ?>
16
- </h3>
17
- <span class="frm_email_icons alignright">
18
- <a href="javascript:void(0)" data-removeid="frm_form_action_<?php echo esc_attr( $action_key ) ?>" class="frm_icon_font frm_delete_icon frm_remove_form_action"> </a>
19
- </span>
20
  </div>
21
  </div>
22
  <div class="widget-inside frm_hidden">
8
  <div id="frm_form_action_<?php echo esc_attr( $action_key ) ?>" class="widget frm_form_action_settings frm_single_<?php echo esc_attr( $form_action->post_excerpt ) ?>_settings" data-actionkey="<?php echo esc_attr( $action_key ) ?>">
9
  <div class="widget-top">
10
  <div class="widget-title-action">
11
+ <button type="button" class="widget-action hide-if-no-js" aria-expanded="false">
12
+ <span class="toggle-indicator" aria-hidden="true"></span>
13
+ </button>
14
  </div>
15
+ <span class="frm_email_icons alignright">
16
+ <a href="javascript:void(0)" data-removeid="frm_form_action_<?php echo esc_attr( $action_key ) ?>" class="frm_icon_font frm_delete_icon frm_remove_form_action"> </a>
17
+ </span>
18
  <div class="widget-title">
19
+ <h4><span class="frm_form_action_icon <?php echo esc_attr( $action_control->action_options['classes'] ) ?>"></span>
20
  <?php echo esc_html( $form_action->post_title ); ?>
21
+ </h4>
 
 
 
22
  </div>
23
  </div>
24
  <div class="widget-inside frm_hidden">
classes/views/frm-forms/add_field.php CHANGED
@@ -138,8 +138,12 @@ do_action('frm_before_field_options', $field);
138
  if ( $display['options'] ) { ?>
139
  <div class="widget">
140
  <div class="widget-top">
141
- <div class="widget-title-action"><a href="javascript:void(0);" class="widget-action"></a></div>
142
- <div class="widget-title"><h4><?php _e( 'Field Options', 'formidable' ) ?> (ID <?php echo (int) $field['id'] ?>)</h4></div>
 
 
 
 
143
  </div>
144
  <div class="widget-inside">
145
  <table class="form-table frm_clear_none">
138
  if ( $display['options'] ) { ?>
139
  <div class="widget">
140
  <div class="widget-top">
141
+ <div class="widget-title-action">
142
+ <button type="button" class="widget-action hide-if-no-js" aria-expanded="false">
143
+ <span class="toggle-indicator" aria-hidden="true"></span>
144
+ </button>
145
+ </div>
146
+ <div class="widget-title"><h3><?php _e( 'Field Options', 'formidable' ) ?> (ID <?php echo (int) $field['id'] ?>)</h3></div>
147
  </div>
148
  <div class="widget-inside">
149
  <table class="form-table frm_clear_none">
css/frm_admin.css CHANGED
@@ -1200,6 +1200,46 @@ select.frm_cancelnew, input.frm_enternew{width:175px;}
1200
  overflow:auto;
1201
  box-shadow:none;
1202
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1203
  .frm_email_settings .widget .widget-top, .frm_email_settings .widget .widget-top h3{
1204
  cursor:pointer;
1205
  }
@@ -1275,6 +1315,10 @@ label.frm_action_events{
1275
  .frm_email_icons, .frm_actions_list{
1276
  padding: 10px 0 10px 15px;
1277
  }
 
 
 
 
1278
  .frm_actions_list a.frm_inactive_action:before{
1279
  color:#d6d6d6;
1280
  cursor:not-allowed;
1200
  overflow:auto;
1201
  box-shadow:none;
1202
  }
1203
+ #frm_notification_settings .widget-top .widget-action,
1204
+ #frm_form_editor_container .widget-top .widget-action {
1205
+ border: 0;
1206
+ margin: 0;
1207
+ padding: 10px;
1208
+ background: 0 0;
1209
+ cursor: pointer;
1210
+ outline: 0;
1211
+ }
1212
+
1213
+ #frm_notification_settings .widget-top .widget-action .toggle-indicator:before,
1214
+ #frm_form_editor_container .widget-top .widget-action .toggle-indicator:before {
1215
+ padding: 1px 2px 1px 0;
1216
+ -webkit-border-radius: 50%;
1217
+ border-radius: 50%;
1218
+ }
1219
+
1220
+ #frm_notification_settings .widget-top .widget-action:focus .toggle-indicator:before,
1221
+ #frm_form_editor_container .widget-top .widget-action:focus .toggle-indicator:before {
1222
+ color: #124964;
1223
+ -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
1224
+ box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
1225
+ }
1226
+
1227
+ .frm_form_action_settings .widget-top .toggle-indicator:before,
1228
+ #frm_form_editor_container .widget-top .toggle-indicator:before {
1229
+ font: 400 20px/1 dashicons;
1230
+ content: "\f140" !important;
1231
+ }
1232
+
1233
+ .frm_form_action_settings.widget.open .widget-top .toggle-indicator:before,
1234
+ #frm_form_editor_container .widget.open .widget-top .toggle-indicator:before {
1235
+ font: 400 20px/1 dashicons;
1236
+ content: "\f142" !important;
1237
+ }
1238
+
1239
+ .ab-icon.frm_dashicon_font:before{
1240
+ vertical-align: middle;
1241
+ }
1242
+
1243
  .frm_email_settings .widget .widget-top, .frm_email_settings .widget .widget-top h3{
1244
  cursor:pointer;
1245
  }
1315
  .frm_email_icons, .frm_actions_list{
1316
  padding: 10px 0 10px 15px;
1317
  }
1318
+ .frm_email_icon:before {
1319
+ vertical-align: text-top;
1320
+ margin-right: 5px;
1321
+ }
1322
  .frm_actions_list a.frm_inactive_action:before{
1323
  color:#d6d6d6;
1324
  cursor:not-allowed;
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.05.01
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.05.02
6
  Plugin URI: https://formidableforms.com/
7
  Author URI: https://formidableforms.com/
8
  Author: Strategy11
js/formidable.js CHANGED
@@ -406,8 +406,8 @@ function frmFrontFormJS(){
406
 
407
  function maybeShowLabel(e){
408
  /*jshint validthis:true */
409
- const $field = jQuery(this);
410
- const $label = $field.closest('.frm_inside_container').find('label.frm_primary_label');
411
 
412
  if ( $field.val().length > 0 ) {
413
  $label.addClass('frm_visible');
@@ -1282,14 +1282,14 @@ function frmFrontFormJS(){
1282
  return;
1283
  }
1284
 
 
 
1285
  if ( onCurrentPage ) {
1286
  hideFieldContainer( depFieldArgs.containerId );
1287
  clearInputsInFieldOnPage( depFieldArgs.containerId );
1288
  } else {
1289
  clearInputsInFieldAcrossPage( depFieldArgs );
1290
  }
1291
-
1292
- addToHideFields( depFieldArgs.containerId, depFieldArgs.formId );
1293
  }
1294
 
1295
  function hideFieldContainer( containerId ) {
@@ -2994,6 +2994,7 @@ function frmFrontFormJS(){
2994
 
2995
  var count = 0;
2996
  var sep = '';
 
2997
 
2998
  calcField.each(function(){
2999
  var thisVal = getOptionValue( field.thisField, this );
@@ -3011,6 +3012,11 @@ function frmFrontFormJS(){
3011
  }
3012
  }
3013
 
 
 
 
 
 
3014
  if ( thisVal !== '' ) {
3015
  vals[field.valKey] += sep + thisVal;
3016
  count++;
@@ -3026,9 +3032,6 @@ function frmFrontFormJS(){
3026
  calcField = jQuery(field.thisFieldCall);
3027
  } else {
3028
  calcField = getSiblingField( field );
3029
- if ( calcField === null || typeof calcField === 'undefined' || calcField.length < 1 ) {
3030
- calcField = jQuery(field.thisFieldCall);
3031
- }
3032
  }
3033
 
3034
  if ( calcField === null || typeof calcField === 'undefined' || calcField.length < 1 ) {
@@ -3101,17 +3104,46 @@ function frmFrontFormJS(){
3101
 
3102
  var fields = null;
3103
  var container = field.triggerField.closest('.frm_repeat_sec, .frm_repeat_inline, .frm_repeat_grid');
3104
- if ( container.length ) {
3105
- var siblingFieldCall = field.thisFieldCall.replace('[id=', '[id^=');
3106
- fields = container.find(siblingFieldCall);
 
 
 
 
 
 
 
 
 
 
3107
  } else {
3108
  // the trigger is not in the repeating section
3109
- fields = jQuery(field.thisFieldCall);
3110
  }
3111
 
3112
  return fields;
3113
  }
3114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3115
  function getOptionValue( thisField, currentOpt ) {
3116
  var thisVal;
3117
 
406
 
407
  function maybeShowLabel(e){
408
  /*jshint validthis:true */
409
+ var $field = jQuery(this);
410
+ var $label = $field.closest('.frm_inside_container').find('label.frm_primary_label');
411
 
412
  if ( $field.val().length > 0 ) {
413
  $label.addClass('frm_visible');
1282
  return;
1283
  }
1284
 
1285
+ addToHideFields( depFieldArgs.containerId, depFieldArgs.formId );
1286
+
1287
  if ( onCurrentPage ) {
1288
  hideFieldContainer( depFieldArgs.containerId );
1289
  clearInputsInFieldOnPage( depFieldArgs.containerId );
1290
  } else {
1291
  clearInputsInFieldAcrossPage( depFieldArgs );
1292
  }
 
 
1293
  }
1294
 
1295
  function hideFieldContainer( containerId ) {
2994
 
2995
  var count = 0;
2996
  var sep = '';
2997
+ var customSep = '';
2998
 
2999
  calcField.each(function(){
3000
  var thisVal = getOptionValue( field.thisField, this );
3012
  }
3013
  }
3014
 
3015
+ customSep = jQuery(document).triggerHandler( 'frmCalSeparation', [ field.thisField, count ] );
3016
+ if ( typeof customSep !== 'undefined' ) {
3017
+ sep = customSep;
3018
+ }
3019
+
3020
  if ( thisVal !== '' ) {
3021
  vals[field.valKey] += sep + thisVal;
3022
  count++;
3032
  calcField = jQuery(field.thisFieldCall);
3033
  } else {
3034
  calcField = getSiblingField( field );
 
 
 
3035
  }
3036
 
3037
  if ( calcField === null || typeof calcField === 'undefined' || calcField.length < 1 ) {
3104
 
3105
  var fields = null;
3106
  var container = field.triggerField.closest('.frm_repeat_sec, .frm_repeat_inline, .frm_repeat_grid');
3107
+ var repeatArgs = getRepeatArgsFromFieldName( field.triggerField.attr('name') );
3108
+ var siblingFieldCall = field.thisFieldCall.replace('[id=', '[id^=').replace(/-"]/g, '-' + repeatArgs.repeatRow +'"]');
3109
+
3110
+ if ( container.length || repeatArgs.repeatRow !== '' ) {
3111
+ if ( container.length ) {
3112
+ fields = container.find(siblingFieldCall);
3113
+ } else {
3114
+ fields = jQuery(siblingFieldCall);
3115
+ }
3116
+
3117
+ if ( fields === null || typeof fields === 'undefined' || fields.length < 1 ) {
3118
+ fields = uncheckedSiblingOrOutsideSection( field, container, siblingFieldCall );
3119
+ }
3120
  } else {
3121
  // the trigger is not in the repeating section
3122
+ fields = getNonSiblingField( field );
3123
  }
3124
 
3125
  return fields;
3126
  }
3127
 
3128
+ function uncheckedSiblingOrOutsideSection( field, container, siblingFieldCall ) {
3129
+ var fields = null;
3130
+ if ( siblingFieldCall.indexOf(':checked') ) {
3131
+ // check if the field has nothing selected, or is not inside the section
3132
+ var inSection = container.find( siblingFieldCall.replace(':checked', '') );
3133
+ if ( inSection.length < 1 ) {
3134
+ fields = getNonSiblingField( field );
3135
+ }
3136
+ } else {
3137
+ // the field holding the value is outside of the section
3138
+ fields = getNonSiblingField( field );
3139
+ }
3140
+ return fields;
3141
+ }
3142
+
3143
+ function getNonSiblingField( field ) {
3144
+ return jQuery(field.thisFieldCall);
3145
+ }
3146
+
3147
  function getOptionValue( thisField, currentOpt ) {
3148
  var thisVal;
3149
 
js/formidable.min.js CHANGED
@@ -1,102 +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="",e="",f=this.name;"frm_prev_page"===f||-1!==this.className.indexOf("frm_prev_page")?d=jQuery(a).find(".frm_next_page").attr("id").replace("frm_next_p_",""):"frm_save_draft"===f||-1!==this.className.indexOf("frm_save_draft")?e=1:-1!==this.className.indexOf("frm_page_skip")?(b=b.data("page"),f=jQuery(a).find('input[name="form_id"]').val(),f=jQuery(a).find('input[name="frm_page_order_'+
2
- f+'"]'),jQuery(a).append('<input name="frm_last_page" type="hidden" value="'+f.val()+'" />'),""===b?f.remove():f.val(b)):-1!==this.className.indexOf("frm_page_back")&&(d=b.data("page"));jQuery(".frm_next_page").val(d);jQuery(".frm_saving_draft").val(e);"submit"!==c&&a.trigger("submit")}function p(){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=F(this.name)?'input[id^="'+c[0]+'"]':'input[id^="'+c.join("-")+'"]';jQuery.datepicker.setDefaults(jQuery.datepicker.regional[""]);for(var d=0,e=0;e<a.length;e++)if(a[e].triggerID=="#"+b||a[e].triggerID==c){d=e;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 y(a){if("undefined"!==typeof __frmDropzone)for(var b=__frmDropzone,c=0;c<b.length;c++)z(c,a)}function z(a,b){var c=__frmDropzone,d="#"+c[a].htmlID+"_dropzone",e=c[a].fieldName;"undefined"!==typeof b&&-1!==d.indexOf("-0_dropzone")&&(d=d.replace("-0_dropzone","-"+b+"_dropzone"),e=e.replace("[0]","["+b+"]"),delete c[a].mockFiles);var f=jQuery(d);if(!(1>f.length||f.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=f.closest("form");h="#"+k.attr("id");"#undefined"==h&&(h="form."+k.attr("class").replace(" ","."));f.dropzone({url:frm_js.ajax_url,addRemoveLinks:!0,paramName:f.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,e,f){e=d;var g=jQuery(e).closest("form");if(1>g.length)e=!1;else if(g=jQuery(g).find(".frm_required_field:visible input, .frm_required_field:visible select, .frm_required_field:visible textarea, "+e),1>g.length)e=!0;else{for(var h=
7
- !0,k=0,l=g.length;k<l&&"#"+g[k].id!==e;k++)if(!(-1<g[k].className.indexOf("frm_optional")||null!==g[k].getAttribute("data-frmfile")))if(1>P(g[k],[]).length){h=!0;break}else h=!1;e=h}if(e){e=""!==document.getElementById("frm_verify_"+c[a].parentFormID).value||window._phantom||window.callPhantom||window.__phantomas||window.Buffer||window.emit||window.spawn?!0:!1;if(e)return this.removeFile(b),alert(frm_js.file_spam),!1;f.append("action","frm_submit_dropzone");f.append("field_id",c[a].fieldID);f.append("form_id",
8
- c[a].formID);f.append("nonce",frm_js.nonce)}else return this.removeFile(b),alert(frm_js.empty_fields),!1});this.on("success",function(b,d){for(var f=jQuery.parseJSON(d),g=0;g<f.length;g++)!0!==c[a].uploadMultiple&&jQuery('input[name="'+e+'"]').val(f[g])});this.on("successmultiple",function(b,d){for(var f=jQuery.parseJSON(d),g=0;g<b.length;g++)jQuery(b[g].previewElement).append(la(c[a],f[g],e))});this.on("complete",function(b){w--;G(k,"enable");if("undefined"!==typeof b.mediaID){c[a].uploadMultiple&&
9
- jQuery(b.previewElement).append(la(c[a],b.mediaID,e));for(var d=b.previewElement.querySelectorAll("[data-dz-name]"),f=0,g=d.length;f<g;f++)d[f].innerHTML='<a href="'+b.url+'">'+b.name+"</a>"}});this.on("addedfile",function(){w++;Q(k)});this.on("removedfile",function(b){!1!==b.accepted&&!0!==c[a].uploadMultiple&&jQuery('input[name="'+e+'"]').val("");!1!==b.accepted&&"undefined"!==typeof b.mediaID&&(jQuery(b.previewElement).remove(),this.options.maxFiles=c[a].maxFiles-this.files.length)});if("undefined"!==
10
- typeof c[a].mockFiles)for(var b=0;b<c[a].mockFiles.length;b++){var f={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",f);this.emit("thumbnail",f,c[a].mockFiles[b].url);this.emit("complete",f);this.files.push(f)}}})}}function la(a,b,c){return'<input name="'+c+'[]" type="hidden" value="'+b+'" data-frmfile="'+a.fieldID+'" />'}function cb(){var a=jQuery(this).data("frm-remove");db(jQuery(this).parent(".dz-preview"));
11
- a=jQuery('input[name="'+a+'"]');a.length&&a.val("")}function eb(){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){c=!0;var d=this.options;b=!1;for(var e=0;e<d.length;e++)if("frm_other_trigger"===d[e].className&&d[e].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",""):(1>a[0].className.indexOf("frm_pos_none")&&
12
  (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 fb(a){a=jQuery(this);var b=a.closest(".frm_inside_container").find("label.frm_primary_label");0<a.val().length?b.addClass("frm_visible"):b.removeClass("frm_visible")}function ma(a){var b=q(this,!1);if(b&&"undefined"!==typeof b&&(!a.frmTriggered||a.frmTriggered!=b)){na(b,jQuery(this));var c="undefined"!==typeof a.originalEvent||-1<a.currentTarget.className.indexOf("frm_chzn")?"value changed":"other";oa(b,jQuery(this),c);R(b,jQuery(this));if(!0!==a.selfTriggered&&jQuery(this).closest("form").hasClass("frm_js_validate")&&
14
  (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&&("email"==this.type?(c=jQuery(this).closest("form").find("input[type=email]"),a=pa(this,a,c)):"number"==this.type?a=qa(this,a):null!==this.pattern&&(a=ra(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;
15
- 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("]");if(1>c.length)return 0;c=c.filter(function(a){return""!==a});var d=c[0],e=!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("[",""),e=!0);"other"===d&&(d=e?c[3].replace("[",""):c[1].replace("[",""));!0===b&&(d=d===c[0]?d+"-"+c[1].replace("[",""):d+"-"+c[0]+
16
- "-"+c[1].replace("[",""));return d}function na(a,b){if(!("undefined"===typeof __FRMRULES||"undefined"===typeof __FRMRULES[a]||1>__FRMRULES[a].dependents.length||null===b||"undefined"===typeof b))for(var c=__FRMRULES[a],d=H(b[0].name),e=0,f=c.dependents.length;e<f;e++)I(c.dependents[e],d)}function I(a,b){var c=T(a);if(!(!1===c||1>c.conditions.length)){var d=[];if(c.isRepeating)if(""!==b.repeatingSection){var e="frm_field_"+c.fieldId+"-";e+=b.repeatingSection+"-"+b.repeatRow+"_container";d.push(e)}else if(d=
17
- J(c),null!==document.getElementById("frm_field_"+d+"_container")){d=[];e=document.querySelectorAll(".frm_field_"+c.fieldId+"_container");for(var f=0,g=e.length;f<g;f++)d.push(e[f].id)}else{d=[];f=J(c);e="frm_field_"+c.fieldId+"-"+f+"-";f=document.querySelectorAll('[name="item_meta['+f+'][row_ids][]"]');g=0;for(var h=f.length;g<h;g++)""!==f[g].value&&d.push(e+f[g].value+"_container");1>d.length&&d.push(e+"0_container")}else d.push("frm_field_"+c.fieldId+"_container");e=d.length;for(f=0;f<e;f++)c.containerId=
18
- d[f],sa(c,d[f]),ta(c)}}function J(a){var b="";"0"!==a.inEmbedForm?b=a.inEmbedForm:"0"!==a.inSection&&(b=a.inSection);return b}function sa(a,b){if(a.isRepeating){var c=b.replace("_container","").split("-");a.repeatRow=c[2]}else a.repeatRow=""}function ta(a){for(var b=[],c=a.conditions.length,d=0;d<c;d++)b.push(gb(a.conditions[d],a));c=B="any"==a.anyAll?-1<b.indexOf(!0)?a.showHide:ua(a.showHide):-1<b.indexOf(!1)?ua(a.showHide):a.showHide;b=null!==document.getElementById(a.containerId);"show"==c?"data"==
19
- a.fieldType&&a.hasOwnProperty("dataLogic")?(a={fieldId:a.fieldId,fieldKey:a.fieldKey,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?hb(a,b):b&&ib(a)):!1!==x(a.containerId,a.formId)&&(C(a.containerId,a.formId),b?(b=va(a.containerId),wa(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId),jQuery("#"+a.containerId).show()):(b=xa(a),wa(b,"divider"==a.fieldType||
20
  "form"==a.fieldType,a.formId))):U(a,b)}function T(a){return"undefined"===typeof __FRMRULES||"undefined"===typeof __FRMRULES[a]?!1:__FRMRULES[a]}function gb(a,b){var c=T(a.fieldId),d=ya(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 ya(a,b){if("radio"==a.inputType||"checkbox"==a.inputType){var c=za(a,b);c=document.querySelectorAll('input[name^="'+
21
- c+'"]');c="checkbox"==a.inputType?K(c):W(c)}else if(!0===a.isMultiSelect){c=za(a,b);var d=document.querySelectorAll('[name^="'+c+'"]');1==d.length&&"hidden"!=d[0].type?(c=jQuery('[name^="'+c+'"]').val(),null===c&&(c="")):c=K(d)}else if(c="field_"+a.fieldKey,a.isRepeating&&(c+="-"+b.repeatRow),d=document.getElementById(c),null===d){d="";if("time"==a.fieldType){var e=document.getElementById(c+"_H");null!==e&&(d=document.getElementById(c+"_m"),d=e.value+":"+d.value,c=document.getElementById(c+"_A"),
22
  ":"==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 za(a,b){return a.isRepeating?"item_meta["+("0"!==b.inEmbedForm?b.inEmbedForm:b.inSection)+"]["+b.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]"}function K(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=jb(b);c=kb(b,c);return"string"===typeof b&&"-1"!=b.indexOf("&quot;")&&
23
  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},">":function(a,b){return a<b},LIKE:function(a,b){if(!b)return!1;a=X(a);b=Aa(a,b);return-1!=b.indexOf(a)},"not LIKE":function(a,b){if(!b)return!0;a=X(a);b=Aa(a,b);return-1==b.indexOf(a)}}[a](b,c)}function jb(a){-1!==String(a).search(/^\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*$/)?a=parseFloat(a):"string"===typeof a&&(a=a.trim());return a}function kb(a,b){"undefined"===typeof b&&
24
- (b="");jQuery.isArray(b)&&-1<jQuery.inArray(String(a),b)&&(b=a);"number"===typeof a&&"string"===typeof b&&(b=parseFloat(b));"string"===typeof b&&(b=b.trim());return b}function Aa(a,b){b=X(b);if(jQuery.isArray(b))for(var c=0,d=b.length;c<d;c++){var e=b[c].toLowerCase();if(-1<e.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 ua(a){return"show"==a?"hide":"show"}function va(a){return document.getElementById(a).querySelectorAll('select[name^="item_meta"], textarea[name^="item_meta"], input[name^="item_meta"]')}
25
- function xa(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["+J(a)+"]["+a.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]",a=document.querySelectorAll('[name^="'+a+'"]'));return a}function wa(a,b,c){if(a.length)for(var d,e=["checkbox","radio"],f=0;f<a.length;f++)if(!(0<f&&"undefined"!==typeof d&&
26
- d.name==a[f].name&&-1<e.indexOf(d.type)||b&&L(a[f],c))){d=a[f];var g=jQuery(d),h=g.data("frmval");if("undefined"!==typeof h){if("checkbox"==d.type||"radio"==d.type)Ba(d.name,h);else if(-1<d.name.indexOf("[]")){var k=document.getElementsByName(d.name);if(jQuery.isArray(h))for(var l=0,A=h.length;l<A;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&&M(d);u(g)}d=a[f];g=q(d,!1);g=Y(g);!1!==g&&"lookup"!=g.fieldType&&Ca(g,d,"value changed");d=a[f];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(F(h))for(h=k.split("-"),k="",l=0;l<h.length-1;l++)k=""===k?h[l]:k+"-"+h[l];h=k;k=null;F(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[f]}}
28
- function L(a,b){var c=q(a,!0);return x("frm_field_"+c+"_container",b)}function U(a,b){if(!x(a.containerId,a.formId)){if(b){jQuery("#"+a.containerId).hide();var c=va(a.containerId)}else c=xa(a);aa(c);Da(a.containerId,a.formId)}}function aa(a){if(!(1>a.length)){for(var b,c=!0,d=0,e=a.length;d<e;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<D(b).indexOf(a)&&(c=!0);return c}function Da(a,b){var c=D(b);if(!(-1<c.indexOf(a))){c.push(a);c=JSON.stringify(c);var d=document.getElementById("frm_hide_fields_"+b);null!==d&&(d.value=c)}}function D(a){var b=[];a=document.getElementById("frm_hide_fields_"+a);return null===a?b:b=(b=a.value)?JSON.parse(b):[]}function Ba(a,
30
- b){for(var c=document.getElementsByName(a),d=0,e=c.length;d<e;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 C(a,b){var c=D(b),d=c.indexOf(a);-1<d&&(c.splice(d,1),c=JSON.stringify(c),document.getElementById("frm_hide_fields_"+b).value=c)}function oa(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=H(b[0].name);for(var d=0,e=a.dependents.length;d<e;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+=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++){sa(a,b[c].id);var e=a,f=b[c];e.parentVals=Ea(e);if("select"==e.inputType)lb(e,f);else if("radio"==e.inputType||"checkbox"==e.inputType)if(!1===e.parentVals){var g=f.getElementsByTagName("input");Fa(e,f);aa(g)}else mb(e,f)}}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<
33
- d;c++)e=a,f=H(b[c].name),e.repeatRow=""!==f.repeatRow?f.repeatRow:"",Ca(a,b[c])}function Y(a){return"undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]?!1:__FRMLOOKUP[a]}function Ca(a,b){a.parentVals=Ea(a);var c=b.id;c in n&&0<n[c].length?Ga(a,b):(Ga(a,b),Ha(a,b))}function Ea(a){for(var b=[],c=a.parents,d,e=0,f=c.length;e<f;e++){d=Y(c[e]);d=ya(d,a);if(""===d||!1===d){b=!1;break}b[e]=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=
34
- a[d].value;break}return b}function lb(a,b){var c=b.getElementsByTagName("SELECT")[0];if(null!==c){var d=c.value;!1===a.parentVals?(c.options.length=1,c.value="",M(c),""!==d&&u(jQuery(c),a.fieldKey)):(nb(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 e=c.value;d=JSON.parse(d);for(var g=c.options.length;0<g;g--)c.remove(g);var h=
35
- d.length;for(g=0;g<h;g++)c.options[g+1]=new Option(d[g],d[g],!1,!1);c.value=e;""===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","");M(c);c.value!=e&&u(jQuery(c),a.fieldKey);Ia(jQuery(b));da(a.formId)}}))}}function M(a){-1<a.className.indexOf("frm_chzn")&&jQuery().chosen&&jQuery(a).trigger("chosen:updated")}function nb(a){a.className+=" frm_loading_lookup";a.disabled=!0;M(a)}function ca(a){w++;
36
- 1===w&&(a=Ja(a),null!==a&&Q(jQuery(a)))}function da(a){w--;0>=w&&(a=Ja(a),null!==a&&G(jQuery(a),"enable"))}function Ja(a){return document.querySelector("#frm_form_"+a+"_container form")}function mb(a,b){var c=b.getElementsByClassName("frm_opt_container")[0],d=c.getElementsByTagName("input");ob(b,c);var e="";e="radio"==a.inputType?W(d):K(d);var f=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,
37
- parent_vals:a.parentVals,field_id:a.fieldId,container_field_id:J(a),row_index:a.repeatRow,current_value:e,default_value:f,nonce:frm_js.nonce},success:function(e){c.innerHTML=e;e=b.getElementsByClassName("frm-loading-img")[0];null!==e&&void 0!==e&&e.parentNode.removeChild(e);c.style.display="block";1==d.length&&""===d[0].value?Fa(a,b):(!1!==x(b.id,a.formId)&&(e=T(a.fieldId),!1===e||1>e.conditions.length?(C(b.id,a.formId),jQuery("#"+b.id).show()):(e.containerId=b.id,e.repeatRow=a.repeatRow,ta(e))),
38
- void 0!==f&&(!1!==("radio"==a.inputType?W(d):K(d))||1>d.length||Ba(d[0].name,f)));u(jQuery(d[0]),a.fieldKey);Ia(jQuery(b));da(a.formId)}})}function Ia(a){a.trigger("frmLookupOptionsLoaded")}function Fa(a,b){x(b.id,a.formId)||(jQuery("#"+b.id).hide(),Da(b.id,a.formId))}function Ha(a,b){if(L(b,a.formId))ea(b.id);else if(!1===a.parentVals){var c=b.getAttribute("data-frmval");null===c&&(c="");Ka(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",
39
  parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,nonce:frm_js.nonce},success:function(c){L(b,a.formId)||b.value==c||Ka(a.fieldKey,b,c);da(a.formId);ea(b.id)}})}function Ga(a,b){var c=b.id;c in n?2<=n[c].length&&(n[c]=n[c].slice(0,1)):n[c]=[];n[c].push({childFieldArgs:a,childInput:b})}function ea(a){n[a].shift();a in n&&0<n[a].length&&Ha(n[a][0].childFieldArgs,n[a][0].childInput)}function Ka(a,b,c){c=c.replace(/&amp;/g,"&");b.value=c;u(jQuery(b),a)}function hb(a,b){if(b){var c=jQuery("#"+
40
- a.containerId);La(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 e=c.find(".frm_opt_container");e.html(d);var f=e.children("input"),g=f.val();Ma(e);""===d||""===g?U(a,!0):Na(a,c,f,!0)}else e="field_"+a.fieldKey,""!==a.repeatRow&&(e+="-"+a.repeatRow),e=document.getElementById(e),e.value=d,x(a.containerId,a.formId)&&
41
- C(a.containerId,a.formId),u(jQuery(e))}})}function ib(a,b){var c=jQuery("#"+a.containerId),d=c.find('select[name^="item_meta"], input[name^="item_meta"]'),e=Oa(d);d=d.data("frmval");var f=c.closest("form").find('input[name="id"]').val();La(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:f,prev_val:e,nonce:frm_js.nonce},
42
- success:function(b){var d=c.find(".frm_opt_container");d.html(b);var f=d.find('select, input[type="checkbox"], input[type="radio"]');Ma(d);""===b||1>f.length?U(a,!0):(b=Oa(f),Na(a,c,f,e!==b))}})}function La(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 ob(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");
43
- a.insertBefore(c,b.nextSibling)}}function Ma(a){a.parent().children(".frm-loading-img").remove();a.show()}function Oa(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 Na(a,b,c,d){x(a.containerId,a.formId)&&(C(a.containerId,a.formId),b.show());c.hasClass("frm_chzn")&&fa();!0===d&&u(c)}function R(a,b){if("undefined"!==typeof __FRMCALC){var c=__FRMCALC,d=c.fields[a];if("undefined"!==
44
- typeof d){d=d.total;for(var e=[],f=0,g=d.length;f<g;f++){var h=c.calc[d[f]];var k=b.attr("name"),l=!1,A=h.field_id,m=D(h.form_id);1>m.length||("0"===h.inSection&&"0"===h.inEmbedForm?l=N(A,m):(k=H(k),N(A,m)?l=!0:Pa(A,k,m)?l=!0:"0"!==h.inSection&&"0"!==h.inEmbedForm?l=Pa(h.inSection,k,m):"0"!==h.inSection?l=N(h.inSection,m):"0"!==h.inEmbedForm&&(l=N(h.inEmbedForm,m))));h=l;!1===h&&Z(c,d[f],e,b)}}}}function N(a,b){return-1<b.indexOf("frm_field_"+a+"_container")}function Pa(a,b,c){var d=!1;b.repeatingSection&&
45
- (a="frm_field_"+a+"-"+b.repeatingSection,a+="-"+b.repeatRow+"_container",d=-1<c.indexOf(a));return d}function Z(a,b,c,d){var e=a.calc[b],f=e.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=pb(a.fieldsWithCalc,b),g=Qa(h));if(!(null===g||1>g.length)){f=qb(e,f,a,c,h);if("text"!=e.calc_type){a=e.calc_dec;-1<f.indexOf(").toFixed(")&&(c=f.split(").toFixed("),Ra(c[1])&&
46
- (a=c[1],f=f.replace(").toFixed("+a,"")));f=rb(f);f=parseFloat(eval(f));if("undefined"===typeof f||isNaN(f))f=0;Ra(a)&&(f=f.toFixed(a))}g.val()!==f&&(g.val(f),null!==d&&"undefined"!==typeof d&&g.attr("name")==d.attr("name")||u(g,b))}}function qb(a,b,c,d,e){for(var f=0,g=a.fields.length;f<g;f++){var h={triggerField:e.triggerField,thisFieldId:a.fields[f],inSection:e.inSection,valKey:e.inSection+""+a.fields[f],thisField:c.fields[a.fields[f]],thisFieldCall:"input"+c.fieldKeys[a.fields[f]]},k=c;"checkbox"==
47
  h.thisField.type||"radio"==h.thisField.type||"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=sb(h,d),"undefined"===typeof d[h.valKey]&&(d[h.valKey]=
48
- "");else{h.valKey="num"+h.valKey;d=tb(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 rb(a){var b=a.charAt(a.length-1);if("+"===b||"-"===b)a=a.substr(0,a.length-1);return a}function F(a){return 3<=a.split("][").length}function tb(a,b,c){if("undefined"!==typeof c[a.valKey]&&0!==c[a.valKey])return c;
49
- c[a.valKey]=0;var d=Sa(a);if(!1===d)return c;d.each(function(){var d=Ta(a.thisField,this);if("date"==a.thisField.type){var f=b.date;var g=0;if(d)if("undefined"===typeof jQuery.datepicker){g="-";-1<f.indexOf("/")&&(g="/");f=f.split(g);d=d.split(g);var h;var k=g=h="";for(var l=0;l<f.length;l++)if("y"==f[l])k=((new Date).getFullYear()+15).toString().substr(2,2),k=d[l]>k?"19"+d[l]:"20"+d[l];else if("yy"==f[l])k=d[l];else if("m"==f[l]||"mm"==f[l])g=d[l],2>g.length&&(g="0"+g);else if("d"==f[l]||"dd"==f[l])h=
50
- d[l],2>h.length&&(h="0"+h);g=Date.parse(k+"-"+g+"-"+h)}else g=jQuery.datepicker.parseDate(f,d);f=g;null!==f&&(c[a.valKey]=Math.ceil(f/864E5))}else{f=d;""!==f&&0!==f&&(f=f.trim(),f=parseFloat(f.replace(/,/g,"").match(/-?[\d\.]+$/)));if("undefined"===typeof f||isNaN(f)||""===f)f=0;c[a.valKey]+=f}});return c}function sb(a,b){if("undefined"!==typeof b[a.valKey]&&""!==b[a.valKey])return b;b[a.valKey]="";var c=Sa(a);if(!1===c)return b;var d=0,e="";c.each(function(){var c=Ta(a.thisField,this);c=c.trim();
51
- 0<d&&("time"==a.thisField.type?1==d?e=":":2==d&&(e=" "):e=", ");""!==c&&(b[a.valKey]+=e+c,d++)});return b}function Sa(a){if(!1===a.inSection)var b=jQuery(a.thisFieldCall);else if(b=Qa(a),null===b||"undefined"===typeof b||1>b.length)b=jQuery(a.thisFieldCall);if(null===b||"undefined"===typeof b||1>b.length)b=!1;return b}function Qa(a){if("undefined"===typeof a.triggerField)return null;var b=a.triggerField.closest(".frm_repeat_sec, .frm_repeat_inline, .frm_repeat_grid");b.length?(a=a.thisFieldCall.replace("[id=",
52
- "[id^="),b=b.find(a)):b=jQuery(a.thisFieldCall);return b}function Ta(a,b){var c=!1;if("hidden"==b.type)""!==ha(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=ha(b))):c=jQuery(b).closest(".frm_other_container").find(".frm_other_input").val():"checkbox"!=a.type&&
53
- "radio"!=a.type||"hidden"==b.type||(c=ha(b))):c="checkbox"!==b.type&&"radio"!==b.type||!b.checked?jQuery(b).val():b.value;"undefined"===typeof c&&(c="");return c}function ha(a){var b="";a=document.getElementById(a.id+"-otext");null!==a&&""!==a.value&&(b=a.value);return b}function Ua(a){var b=!1;a=jQuery(a).find(".frm_saving_draft");a.length&&(b=a.val());return b}function ia(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_'+
54
- d+'"]');a=a.length?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="",e="";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=ub(c)),e=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){e=d;d="";for(var f=0;f<e.length;f++)""!==e[f]&&(d=e[f])}e=-1===c.indexOf("frm_other_input")?q(a,!0):q(a,!1);-1!==c.indexOf("frm_time_select")&&(e=e.replace("-H","").replace("-m",""))}""===d&&(""===e&&(e=q(a,!0)),e in b||(b[e]=E(a,"data-reqmsg")));return b}function ub(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 pa(a,
56
- b,c){var d=a.value,e=q(a,!0);if(e in b)return b;var f=0===e.indexOf("conf_");if(""!==d||f){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=E(a,"data-invmsg");""!==d&&!1===g.test(d)?(b[e]=h,f&&(b[e.replace("conf_","")]="")):f&&(a=a.name.replace("conf_",""),c.filter('[name="'+a+'"]').val()!==d&&(b[e]="",b[e.replace("conf_","")]=""))}return b}function qa(a,b){var c=a.value;""!==c&&!1!==isNaN(c/
57
- 1)&&(c=q(a,!0),c in b||(b[c]=E(a,"data-invmsg")));return b}function ra(a,b){var c=a.value,d=E(a,"pattern");if(""!==d&&""!==c){var e=q(a,!0);e in b||(d=new RegExp("^"+d+"$","i"),!1===d.test(c)&&(b[e]=E(a,"data-invmsg")))}return b}function E(a,b){var c=a.getAttribute(b);null===c&&(c="");return c}function vb(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){G(jQuery(a));-1!=frm_js.offset&&frmFrontForm.scrollMsg(jQuery(a),!1);var f=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");g=encodeURI(g);for(var 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&&(f=jQuery('input[name="frm_page_order_'+
60
- f+'"]').val(),d=jQuery(b.content).find('input[name="form_id"]').val(),frmThemeOverride_frmAfterSubmit(d,f,b.content,a));jQuery(b.content).find(".frm_message").length?(jQuery(document).trigger("frmFormComplete",[a,b]),ja("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")&&Va(jQuery(b)))):jQuery(document).trigger("frmPageChanged",[a,b]);ka()}else if(Object.keys(b.errors).length){G(jQuery(a),"enable");
61
- d=!0;Wa();h=!1;for(f in b.errors)g=jQuery(a).find("#frm_field_"+f+"_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,f,b.errors),d=!1,g=jQuery(a).find("#frm_field_"+f+"_container .frm-g-recaptcha, #frm_field_"+f+"_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");Xa(a);!0!==h&&Ya(a,!1);d?a.submit():jQuery(a).prepend(b.error_message)}else wb(a),Ya(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 Wa(){jQuery(".form-field").removeClass("frm_blank_field has-error");
63
- jQuery(".form-field .frm_error").replaceWith("");jQuery(".frm_error_style").remove()}function Xa(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 G(a,b){0<w||(a.removeClass("frm_loading_form"),a.trigger("frmEndFormLoading"),"enable"==
64
- b&&a.find('input[type="submit"], input[type="button"], button[type="submit"]').removeAttr("disabled"))}function wb(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 Ya(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="'+
65
- frm_js.nonce+'">')}function xb(){Za(jQuery(this),"clear")}function yb(){Za(jQuery(this),"replace")}function Za(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 zb(){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",
66
- url:frm_js.ajax_url,data:{action:"frm_entries_send_email",entry_id:b,form_id:c,nonce:frm_js.nonce},success:function(b){a.replaceWith(b)}});return!1}function Ab(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 e=a.fields.length,f,g=0,h=e;g<h;g++){var k=a.fields[g];f=$a(k);b.addColumn(f,k.name)}g=!1;a.options.edit_link&&(g=!0,b.addColumn("string",
67
- a.options.edit_link));h=!1;a.options.delete_link&&(h=!0,b.addColumn("string",a.options.delete_link));if(null!==a.entries){var l=a.entries.length;b.addRows(l);for(var m=0,p=0;p<l;p++){k=0;var n=a.entries[p];d&&(b.setCell(m,k,n.id),k++);for(var q=0,t=e;q<t;q++){var r=a.fields[q];f=$a(r);r=n.metas[r.id];"number"!=f||null!==r&&""!==r?"boolean"==f&&(r=null===r||"false"==r||!1===r?!1:!0):r=0;b.setCell(m,k,r);k++}g&&("undefined"!==typeof n.editLink?b.setCell(m,k,'<a href="'+n.editLink+'">'+a.options.edit_link+
68
- "</a>"):b.setCell(m,k,""),k++);h&&("undefined"!==typeof n.deleteLink?b.setCell(m,k,'<a href="'+n.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=e;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 Bb(a){google.load("visualization","1.0",
69
- {packages:[a["package"]],callback:function(){new google.visualization.DataTable;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 $a(a){var b="string";if("number"==a.type)b="number";else if("checkbox"==a.type||
70
- "select"==a.type){var c=a.options.length;"select"==a.type&&""===a.options[0]&&(c="post_status"==a.field_options.post_field?3:c-1);1==c&&(b="boolean")}return b}function Cb(){var a=jQuery(this).data("key"),b=jQuery(this).data("parent"),c="frm_section_"+b+"-"+a,d=jQuery(document.getElementById(c)),e=d.find("input, select, textarea"),f=jQuery(this).closest("form").find('input[name="form_id"]').val();d.fadeOut("slow",function(){d.remove();e.each(function(){var c=q(this,!1);"file"!=this.type&&R(c,jQuery(this));
71
- C("frm_field_"+c+"-"+b+"-"+a+"_container",f)});jQuery("#frm_field_"+b+"_container .frm_add_form_row.frm_button").removeClass("frm_hide_add_button");"function"==typeof frmThemeOverride_frmRemoveRow&&frmThemeOverride_frmRemoveRow(c,d);jQuery(document).trigger("frmAfterRemoveRow")});return!1}function Db(){if(!0===O)return!1;O=!0;var a=jQuery(this).data("parent"),b=0,c=jQuery(".frm_repeat_"+a).length;if(0<c){var d=jQuery(".frm_repeat_"+a+":last").attr("id").replace("frm_section_"+a+"-","");b=-1<d.indexOf("i")?
72
- 1:1+parseInt(d)}jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_add_form_row",field_id:a,i:b,numberOfSections:c,nonce:frm_js.nonce},success:function(c){if(c.html){var d=c.html,e=jQuery(d).hide().fadeIn("slow");jQuery(".frm_repeat_"+a+":last").after(e);c.is_repeat_limit_reached&&jQuery("#frm_field_"+a+"_container .frm_add_form_row.frm_button").addClass("frm_hide_add_button");var h=["other"],k,l,m={repeatingSection:a.toString(),repeatRow:b.toString()};jQuery(d).find("input, select, textarea").each(function(){if("file"!=
73
- this.type){if(""===this.name)return!0;k=this.name.replace("item_meta[","").split("]")[2].replace("[","");-1==jQuery.inArray(k,h)&&!1!==this.id&&""!==this.id&&(l=jQuery("#"+this.id),h.push(k),I(k,m),ba(k,m,"value changed"),na(k,l),oa(k,l,"value changed"),R(k,l))}});y(m.repeatRow);ab();fa()}"function"==typeof frmThemeOverride_frmAddRow&&frmThemeOverride_frmAddRow(a,c);jQuery(document).trigger("frmAfterAddRow");O=!1},error:function(){O=!1}});return!1}function Eb(){var a=jQuery(this),b=a.data("entryid"),
74
- c=a.data("prefix"),d=a.data("pageid"),e=a.data("formid"),f=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,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:d,entry_id:b,id:e,nonce:frm_js.nonce,fields:g,exclude_fields:h},success:function(d){k.children(".frm-loading-img").replaceWith(d);
75
- a.removeClass("frm_inplace_edit").addClass("frm_cancel_edit");a.html(f);ja("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"]',ma);ka(c+b)}});return!1}function Fb(){var a=jQuery(this),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");
76
- Va(a)}function Va(a){var b=a.data("edit");a.removeClass("frm_cancel_edit").addClass("frm_inplace_edit");a.html(b)}function Gb(){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>');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+
77
- 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 Hb(){for(var a=__frmUniqueTimes,b=0;b<a.length;b++)a[b].dateID==this.id&&frmFrontForm.removeUsedTimes(this,a[b].timeID)}function ka(a){"undefined"!==typeof __frmHideFields&&frmFrontForm.hidePreviouslyHiddenFields();jQuery(document).on("focusin",".frm_date",
78
- t);if("undefined"!==typeof __frmUniqueTimes)for(var b=__frmUniqueTimes,c=0;c<b.length;c++)jQuery(document.getElementById(b[c].dateID)).change(Hb);if("undefined"!==typeof __frmMasks)for(b=__frmMasks,c=0;c<b.length;c++)jQuery(b[c].trigger).attr("data-frmmask",b[c].mask);ab();fa(a);"undefined"!==typeof __frmDepDynamicFields&&frmFrontForm.checkDependentDynamicFields(__frmDepDynamicFields);"undefined"!==typeof __frmDepLookupFields&&frmFrontForm.checkDependentLookupFields(__frmDepLookupFields);if("undefined"!==
79
- typeof __FRMCALC){(a=__FRMCALC.triggers)&&jQuery(a.join()).trigger({type:"change",selfTriggered:!0});a=__FRMCALC.calc;b=[];for(var d in a)1>a[d].fields.length&&(c=document.getElementById("field_"+d),null===c||L(c,a[d].form_id)||Z(__FRMCALC,d,b))}y()}function fa(a){if(jQuery().chosen){var b={allow_single_deselect:!0,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)}}
80
- function ab(){if(jQuery().rating){var a=jQuery(".star");a.length&&a.rating()}}function ja(a){"undefined"!==typeof __frmHideOrShowFields?frmFrontForm.hideOrShowFields(__frmHideOrShowFields,a):bb()}function bb(){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})}function H(a){var b={repeatingSection:"",repeatRow:""};"undefined"!==typeof a&&F(a)&&(a=a.split("]["),b.repeatingSection=
81
- a[0].replace("item_meta[",""),b.repeatRow=a[1]);return b}function db(a){a.fadeOut("slow",function(){a.remove()})}function Ib(){var a=jQuery(this).data("frmconfirm");return confirm(a)}function Jb(){var a=jQuery(this).data("frmtoggle");jQuery(a).is(":visible")?jQuery(a).slideUp("fast"):jQuery(a).slideDown("fast");return!1}function pb(a,b){for(var c in a)if(a.hasOwnProperty(c)&&a[c]===b)return c;return null}function Ra(a){return!jQuery.isArray(a)&&0<=a-parseFloat(a)+1}function Kb(){Array.prototype.indexOf||
82
- (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 Lb(){"function"!==typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})}function Mb(){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;
83
- for(var e=[],f=0;f<d;f++)if(f in c){var g=c[f];a.call(b,g,f,c)&&e.push(g)}return e})}function Nb(){Object.keys||(Object.keys=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b})}var O=!1,B="",v=[],w=0,n={};return{init:function(){jQuery(document).off("submit.formidable",".frm-show-form");jQuery(document).on("submit.formidable",".frm-show-form",frmFrontForm.submitForm);jQuery(document).on("click",".frm_trigger",p);var a=jQuery(".frm_blank_field");a.length&&a.closest(".frm_toggle_container").prev(".frm_trigger").click();
84
- 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",xb);jQuery(document).on("blur",".frm_toggle_default",yb);jQuery(".frm_toggle_default").blur();jQuery(document.getElementById("frm_resend_email")).click(zb);jQuery(document).on("click",".frm_remove_link",cb);
85
- jQuery(document).on("focusin","input[data-frmmask]",function(){jQuery(this).mask(jQuery(this).data("frmmask").toString(),{autoclear:!1})});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"]',ma);jQuery(document).on("change keyup",".frm-show-form .frm_inside_container input, .frm-show-form .frm_inside_container select, .frm-show-form .frm_inside_container textarea",fb);jQuery(document).on("click",
86
- '.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',m);jQuery(document).on("change",'.frm_other_container input[type="checkbox"], .frm_other_container input[type="radio"], .frm_other_container select',eb);jQuery(document).on("click",".frm_remove_form_row",Cb);jQuery(document).on("click",".frm_add_form_row",Db);jQuery(document).on("click","a[data-frmconfirm]",Ib);jQuery("a[data-frmtoggle]").click(Jb);
87
- jQuery(".frm_edit_link_container").on("click","a.frm_inplace_edit",Eb);jQuery(".frm_edit_link_container").on("click","a.frm_cancel_edit",Fb);jQuery(document).on("click",".frm_ajax_delete",Gb);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"),
88
- jQuery(this).next(".frm_toggle_container").hide())});ja("pageLoad");ka();Kb();Lb();Mb();Nb()},renderRecaptcha:function(a){var b=a.getAttribute("data-size"),c={sitekey:a.getAttribute("data-sitekey"),size:b,theme:a.getAttribute("data-theme")};if("invisible"==b){var d=jQuery(a).closest("form").find('input[name="form_id"]').val();c.callback=function(a){frmFrontForm.afterRecaptcha(a,d)}}b=grecaptcha.render(a.id,c);a.setAttribute("data-rid",b)},afterSingleRecaptcha:function(a){a=jQuery(".frm-show-form .g-recaptcha").closest("form")[0];
89
- 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,this)},submitFormManual:function(a,b){if(ia(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"))||
90
- 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&&(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?(B=jQuery(a).find('input[name="frm_action"]').val(),frmFrontForm.checkFormErrors(a,B)):
91
- a.submit():a.submit()},validateFormSubmit:function(a){"undefined"!=typeof tinyMCE&&jQuery(a).find(".wp-editor-wrap").length&&tinyMCE.triggerSave();v=[];var b=jQuery(a).hasClass("frm_js_validate");b&&(Ua(a)||ia(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)");
92
- if(c.length)for(var d=0,e=c.length;d<e;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){e=0;for(var f=d.length;e<f;e++){var g=d[e];""!==g.value&&"hidden"!=g.type&&("number"==g.type?b=qa(g,b):"email"==g.type?b=pa(g,b,c):null!==g.pattern&&(b=ra(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",
93
- ""),b[c]=""));v=b;if("function"==typeof frmThemeOverride_jsErrors&&(B=jQuery(a).find('input[name="frm_action"]').val(),a=frmThemeOverride_jsErrors(B,a),Object.keys(a).length))for(var h in a)v[h]=a[h];return v},addAjaxFormErrors:function(a){Wa();for(var b in v){var c=jQuery(a).find("#frm_field_"+b+"_container");c.length?S(c,b,v):delete v[b]}Xa(a)},checkFormErrors:function(a,b){vb(a,b)},scrollToID:function(a){a=jQuery(document.getElementById(a));frmFrontForm.scrollMsg(a,!1)},scrollMsg:function(a,b,
94
- 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-=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):
95
- jQuery("html,body").animate({scrollTop:a},500),!1}},savingDraft:function(a){return Ua(a)},goingToPreviousPage:function(a){return ia(a)},hideOrShowFields:function(a,b){if("pageLoad"===b){var c=document.querySelectorAll('[id^="frm_hide_fields_"]');aa(c)}c={repeatingSection:"",repeatRow:""};for(var d=0,e=a.length;d<e;d++)I(a[d],c),d==e-1&&bb()},hidePreviouslyHiddenFields:function(){var a=[];for(var b=document.querySelectorAll('*[id^="frm_hide_fields_"]'),c=b.length,d,e=0;e<c;e++)d=b[e].id.replace("frm_hide_fields_",
96
- ""),a=a.concat(D(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++)I(a[c],b)},checkDependentLookupFields:function(a){for(var b,c={repeatingSection:"",repeatRow:""},d=0,e=a.length;d<e;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"===
97
- b[c])for(var d=a[b[c]],e=0,f=d.length;e<f;e++)Bb(d[e]);else for(d=a[b[c]],e=b[c],f=0;f<d.length;f++)Ab(d[f],e);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));
98
- 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,"&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()});
99
- function frmRecaptcha(){for(var m=jQuery(".frm-g-recaptcha"),p=0,t=m.length;p<t;p++)frmFrontForm.renderRecaptcha(m[p])}function frmAfterRecaptcha(m){frmFrontForm.afterSingleRecaptcha(m)}
100
  function frmUpdateField(m,p,t,y,z){jQuery(document.getElementById("frm_update_field_"+m+"_"+p+"_"+z)).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:p,value:t,nonce:frm_js.nonce},success:function(){""===y.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById("frm_update_field_"+m+"_"+p+"_"+z)).fadeOut("slow"):jQuery(document.getElementById("frm_update_field_"+m+"_"+p+"_"+z)).replaceWith(y)}})}
101
  function frmDeleteEntry(m,p){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(p+m)).fadeOut("slow"):jQuery(document.getElementById("frm_delete_"+
102
  m)).replaceWith(t)}})}function frmOnSubmit(m){console.warn("DEPRECATED: function frmOnSubmit in v2.0 use frmFrontForm.submitForm");frmFrontForm.submitForm(m,this)}
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 p(){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=G(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 y(a){if("undefined"!==typeof __frmDropzone)for(var b=__frmDropzone,c=0;c<b.length;c++)z(c,a)}function z(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 if(g=jQuery(g).find(".frm_required_field:visible input, .frm_required_field:visible select, .frm_required_field:visible textarea, "+f),1>g.length)f=!0;else{for(var h=
7
+ !0,k=0,l=g.length;k<l&&"#"+g[k].id!==f;k++)if(!(-1<g[k].className.indexOf("frm_optional")||null!==g[k].getAttribute("data-frmfile")))if(1>P(g[k],[]).length){h=!0;break}else h=!1;f=h}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);e.append("form_id",
8
+ 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(la(c[a],e[g],f))});this.on("complete",function(b){w--;H(k,"enable");if("undefined"!==typeof b.mediaID){c[a].uploadMultiple&&
9
+ jQuery(b.previewElement).append(la(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(){w++;Q(k)});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=c[a].maxFiles-this.files.length)});if("undefined"!==
10
+ 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 la(a,b,c){return'<input name="'+c+'[]" type="hidden" value="'+b+'" data-frmfile="'+a.fieldID+'" />'}function cb(){var a=jQuery(this).data("frm-remove");db(jQuery(this).parent(".dz-preview"));
11
+ a=jQuery('input[name="'+a+'"]');a.length&&a.val("")}function eb(){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){c=!0;var d=this.options;b=!1;for(var 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",""):(1>a[0].className.indexOf("frm_pos_none")&&
12
  (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 fb(a){a=jQuery(this);var b=a.closest(".frm_inside_container").find("label.frm_primary_label");0<a.val().length?b.addClass("frm_visible"):b.removeClass("frm_visible")}function ma(a){var b=q(this,!1);if(b&&"undefined"!==typeof b&&(!a.frmTriggered||a.frmTriggered!=b)){na(b,jQuery(this));var c="undefined"!==typeof a.originalEvent||-1<a.currentTarget.className.indexOf("frm_chzn")?"value changed":"other";oa(b,jQuery(this),c);R(b,jQuery(this));if(!0!==a.selfTriggered&&jQuery(this).closest("form").hasClass("frm_js_validate")&&
14
  (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&&("email"==this.type?(c=jQuery(this).closest("form").find("input[type=email]"),a=pa(this,a,c)):"number"==this.type?a=qa(this,a):null!==this.pattern&&(a=ra(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;
15
+ 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("]");if(1>c.length)return 0;c=c.filter(function(a){return""!==a});var 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]+
16
+ "-"+c[1].replace("[",""));return d}function na(a,b){if(!("undefined"===typeof __FRMRULES||"undefined"===typeof __FRMRULES[a]||1>__FRMRULES[a].dependents.length||null===b||"undefined"===typeof b))for(var c=__FRMRULES[a],d=B(b[0].name),f=0,e=c.dependents.length;f<e;f++)I(c.dependents[f],d)}function I(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+=b.repeatingSection+"-"+b.repeatRow+"_container";d.push(f)}else if(d=
17
+ J(c),null!==document.getElementById("frm_field_"+d+"_container")){d=[];f=document.querySelectorAll(".frm_field_"+c.fieldId+"_container");for(var e=0,g=f.length;e<g;e++)d.push(f[e].id)}else{d=[];e=J(c);f="frm_field_"+c.fieldId+"-"+e+"-";e=document.querySelectorAll('[name="item_meta['+e+'][row_ids][]"]');g=0;for(var 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=
18
+ d[e],sa(c,d[e]),ta(c)}}function J(a){var b="";"0"!==a.inEmbedForm?b=a.inEmbedForm:"0"!==a.inSection&&(b=a.inSection);return b}function sa(a,b){if(a.isRepeating){var c=b.replace("_container","").split("-");a.repeatRow=c[2]}else a.repeatRow=""}function ta(a){for(var b=[],c=a.conditions.length,d=0;d<c;d++)b.push(gb(a.conditions[d],a));c=C="any"==a.anyAll?-1<b.indexOf(!0)?a.showHide:ua(a.showHide):-1<b.indexOf(!1)?ua(a.showHide):a.showHide;b=null!==document.getElementById(a.containerId);"show"==c?"data"==
19
+ a.fieldType&&a.hasOwnProperty("dataLogic")?(a={fieldId:a.fieldId,fieldKey:a.fieldKey,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?hb(a,b):b&&ib(a)):!1!==x(a.containerId,a.formId)&&(D(a.containerId,a.formId),b?(b=va(a.containerId),wa(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId),jQuery("#"+a.containerId).show()):(b=xa(a),wa(b,"divider"==a.fieldType||
20
  "form"==a.fieldType,a.formId))):U(a,b)}function T(a){return"undefined"===typeof __FRMRULES||"undefined"===typeof __FRMRULES[a]?!1:__FRMRULES[a]}function gb(a,b){var c=T(a.fieldId),d=ya(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 ya(a,b){if("radio"==a.inputType||"checkbox"==a.inputType){var c=za(a,b);c=document.querySelectorAll('input[name^="'+
21
+ c+'"]');c="checkbox"==a.inputType?K(c):W(c)}else if(!0===a.isMultiSelect){c=za(a,b);var d=document.querySelectorAll('[name^="'+c+'"]');1==d.length&&"hidden"!=d[0].type?(c=jQuery('[name^="'+c+'"]').val(),null===c&&(c="")):c=K(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"),
22
  ":"==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 za(a,b){return a.isRepeating?"item_meta["+("0"!==b.inEmbedForm?b.inEmbedForm:b.inSection)+"]["+b.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]"}function K(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=jb(b);c=kb(b,c);return"string"===typeof b&&"-1"!=b.indexOf("&quot;")&&
23
  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},">":function(a,b){return a<b},LIKE:function(a,b){if(!b)return!1;a=X(a);b=Aa(a,b);return-1!=b.indexOf(a)},"not LIKE":function(a,b){if(!b)return!0;a=X(a);b=Aa(a,b);return-1==b.indexOf(a)}}[a](b,c)}function jb(a){-1!==String(a).search(/^\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*$/)?a=parseFloat(a):"string"===typeof a&&(a=a.trim());return a}function kb(a,b){"undefined"===typeof b&&
24
+ (b="");jQuery.isArray(b)&&-1<jQuery.inArray(String(a),b)&&(b=a);"number"===typeof a&&"string"===typeof b&&(b=parseFloat(b));"string"===typeof b&&(b=b.trim());return b}function Aa(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 ua(a){return"show"==a?"hide":"show"}function va(a){return document.getElementById(a).querySelectorAll('select[name^="item_meta"], textarea[name^="item_meta"], input[name^="item_meta"]')}
25
+ function xa(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["+J(a)+"]["+a.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]",a=document.querySelectorAll('[name^="'+a+'"]'));return a}function wa(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&&L(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)Ba(d.name,h);else if(-1<d.name.indexOf("[]")){var k=document.getElementsByName(d.name);if(jQuery.isArray(h))for(var l=0,A=h.length;l<A;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&&M(d);u(g)}d=a[e];g=q(d,!1);g=Y(g);!1!==g&&"lookup"!=g.fieldType&&Ca(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(G(h))for(h=k.split("-"),k="",l=0;l<h.length-1;l++)k=""===k?h[l]:k+"-"+h[l];h=k;k=null;G(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]}}
28
+ function L(a,b){var c=q(a,!0);return x("frm_field_"+c+"_container",b)}function U(a,b){if(!x(a.containerId,a.formId)){Da(a.containerId,a.formId);if(b){jQuery("#"+a.containerId).hide();var c=va(a.containerId)}else c=xa(a);aa(c)}}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&&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<E(b).indexOf(a)&&(c=!0);return c}function Da(a,b){var c=E(b);if(!(-1<c.indexOf(a))){c.push(a);c=JSON.stringify(c);var d=document.getElementById("frm_hide_fields_"+b);null!==d&&(d.value=c)}}function E(a){var b=[];a=document.getElementById("frm_hide_fields_"+a);return null===a?b:b=(b=a.value)?JSON.parse(b):[]}function Ba(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 D(a,b){var c=E(b),d=c.indexOf(a);-1<d&&(c.splice(d,1),c=JSON.stringify(c),document.getElementById("frm_hide_fields_"+b).value=c)}function oa(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=B(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+=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++){sa(a,b[c].id);var f=a,e=b[c];f.parentVals=Ea(f);if("select"==f.inputType)lb(f,e);else if("radio"==f.inputType||"checkbox"==f.inputType)if(!1===f.parentVals){var g=e.getElementsByTagName("input");Fa(f,e);aa(g)}else mb(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<
33
+ d;c++)f=a,e=B(b[c].name),f.repeatRow=""!==e.repeatRow?e.repeatRow:"",Ca(a,b[c])}function Y(a){return"undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]?!1:__FRMLOOKUP[a]}function Ca(a,b){a.parentVals=Ea(a);var c=b.id;c in n&&0<n[c].length?Ga(a,b):(Ga(a,b),Ha(a,b))}function Ea(a){for(var b=[],c=a.parents,d,f=0,e=c.length;f<e;f++){d=Y(c[f]);d=ya(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=
34
+ a[d].value;break}return b}function lb(a,b){var c=b.getElementsByTagName("SELECT")[0];if(null!==c){var d=c.value;!1===a.parentVals?(c.options.length=1,c.value="",M(c),""!==d&&u(jQuery(c),a.fieldKey)):(nb(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);var h=
35
+ d.length;for(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","");M(c);c.value!=f&&u(jQuery(c),a.fieldKey);Ia(jQuery(b));da(a.formId)}}))}}function M(a){-1<a.className.indexOf("frm_chzn")&&jQuery().chosen&&jQuery(a).trigger("chosen:updated")}function nb(a){a.className+=" frm_loading_lookup";a.disabled=!0;M(a)}function ca(a){w++;
36
+ 1===w&&(a=Ja(a),null!==a&&Q(jQuery(a)))}function da(a){w--;0>=w&&(a=Ja(a),null!==a&&H(jQuery(a),"enable"))}function Ja(a){return document.querySelector("#frm_form_"+a+"_container form")}function mb(a,b){var c=b.getElementsByClassName("frm_opt_container")[0],d=c.getElementsByTagName("input");ob(b,c);var f="";f="radio"==a.inputType?W(d):K(d);var 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,
37
+ parent_vals:a.parentVals,field_id:a.fieldId,container_field_id:J(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?Fa(a,b):(!1!==x(b.id,a.formId)&&(f=T(a.fieldId),!1===f||1>f.conditions.length?(D(b.id,a.formId),jQuery("#"+b.id).show()):(f.containerId=b.id,f.repeatRow=a.repeatRow,ta(f))),
38
+ void 0!==e&&(!1!==("radio"==a.inputType?W(d):K(d))||1>d.length||Ba(d[0].name,e)));u(jQuery(d[0]),a.fieldKey);Ia(jQuery(b));da(a.formId)}})}function Ia(a){a.trigger("frmLookupOptionsLoaded")}function Fa(a,b){x(b.id,a.formId)||(jQuery("#"+b.id).hide(),Da(b.id,a.formId))}function Ha(a,b){if(L(b,a.formId))ea(b.id);else if(!1===a.parentVals){var c=b.getAttribute("data-frmval");null===c&&(c="");Ka(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",
39
  parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,nonce:frm_js.nonce},success:function(c){L(b,a.formId)||b.value==c||Ka(a.fieldKey,b,c);da(a.formId);ea(b.id)}})}function Ga(a,b){var c=b.id;c in n?2<=n[c].length&&(n[c]=n[c].slice(0,1)):n[c]=[];n[c].push({childFieldArgs:a,childInput:b})}function ea(a){n[a].shift();a in n&&0<n[a].length&&Ha(n[a][0].childFieldArgs,n[a][0].childInput)}function Ka(a,b,c){c=c.replace(/&amp;/g,"&");b.value=c;u(jQuery(b),a)}function hb(a,b){if(b){var c=jQuery("#"+
40
+ a.containerId);La(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();Ma(f);""===d||""===g?U(a,!0):Na(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)&&
41
+ D(a.containerId,a.formId),u(jQuery(f))}})}function ib(a,b){var c=jQuery("#"+a.containerId),d=c.find('select[name^="item_meta"], input[name^="item_meta"]'),f=Oa(d);d=d.data("frmval");var e=c.closest("form").find('input[name="id"]').val();La(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},
42
+ success:function(b){var d=c.find(".frm_opt_container");d.html(b);var e=d.find('select, input[type="checkbox"], input[type="radio"]');Ma(d);""===b||1>e.length?U(a,!0):(b=Oa(e),Na(a,c,e,f!==b))}})}function La(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 ob(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");
43
+ a.insertBefore(c,b.nextSibling)}}function Ma(a){a.parent().children(".frm-loading-img").remove();a.show()}function Oa(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 Na(a,b,c,d){x(a.containerId,a.formId)&&(D(a.containerId,a.formId),b.show());c.hasClass("frm_chzn")&&fa();!0===d&&u(c)}function R(a,b){if("undefined"!==typeof __FRMCALC){var c=__FRMCALC,d=c.fields[a];if("undefined"!==
44
+ typeof d){d=d.total;for(var f=[],e=0,g=d.length;e<g;e++){var h=c.calc[d[e]];var k=b.attr("name"),l=!1,A=h.field_id,m=E(h.form_id);1>m.length||("0"===h.inSection&&"0"===h.inEmbedForm?l=N(A,m):(k=B(k),N(A,m)?l=!0:Pa(A,k,m)?l=!0:"0"!==h.inSection&&"0"!==h.inEmbedForm?l=Pa(h.inSection,k,m):"0"!==h.inSection?l=N(h.inSection,m):"0"!==h.inEmbedForm&&(l=N(h.inEmbedForm,m))));h=l;!1===h&&Z(c,d[e],f,b)}}}}function N(a,b){return-1<b.indexOf("frm_field_"+a+"_container")}function Pa(a,b,c){var d=!1;b.repeatingSection&&
45
+ (a="frm_field_"+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=pb(a.fieldsWithCalc,b),g=Qa(h));if(!(null===g||1>g.length)){e=qb(f,e,a,c,h);if("text"!=f.calc_type){a=f.calc_dec;-1<e.indexOf(").toFixed(")&&(c=e.split(").toFixed("),Ra(c[1])&&
46
+ (a=c[1],e=e.replace(").toFixed("+a,"")));e=rb(e);e=parseFloat(eval(e));if("undefined"===typeof e||isNaN(e))e=0;Ra(a)&&(e=e.toFixed(a))}g.val()!==e&&(g.val(e),null!==d&&"undefined"!==typeof d&&g.attr("name")==d.attr("name")||u(g,b))}}function qb(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"==
47
  h.thisField.type||"radio"==h.thisField.type||"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=sb(h,d),"undefined"===typeof d[h.valKey]&&(d[h.valKey]=
48
+ "");else{h.valKey="num"+h.valKey;d=tb(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 rb(a){var b=a.charAt(a.length-1);if("+"===b||"-"===b)a=a.substr(0,a.length-1);return a}function G(a){return 3<=a.split("][").length}function tb(a,b,c){if("undefined"!==typeof c[a.valKey]&&0!==c[a.valKey])return c;
49
+ c[a.valKey]=0;var d=Sa(a);if(!1===d)return c;d.each(function(){var d=Ta(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);d=d.split(g);var 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=
50
+ d[l],2>h.length&&(h="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 sb(a,b){if("undefined"!==typeof b[a.valKey]&&""!==b[a.valKey])return b;b[a.valKey]="";var c=Sa(a);if(!1===c)return b;var d=0,f="",e="";c.each(function(){var c=Ta(a.thisField,this);c=c.trim();
51
+ 0<d&&("time"==a.thisField.type?1==d?f=":":2==d&&(f=" "):f=", ");e=jQuery(document).triggerHandler("frmCalSeparation",[a.thisField,d]);"undefined"!==typeof e&&(f=e);""!==c&&(b[a.valKey]+=f+c,d++)});return b}function Sa(a){a=!1===a.inSection?jQuery(a.thisFieldCall):Qa(a);if(null===a||"undefined"===typeof a||1>a.length)a=!1;return a}function Qa(a){if("undefined"===typeof a.triggerField)return null;var b=a.triggerField.closest(".frm_repeat_sec, .frm_repeat_inline, .frm_repeat_grid");var c=B(a.triggerField.attr("name"));
52
+ var d=a.thisFieldCall.replace("[id=","[id^=").replace(/-"]/g,"-"+c.repeatRow+'"]');if(b.length||""!==c.repeatRow){if(c=b.length?b.find(d):jQuery(d),null===c||"undefined"===typeof c||1>c.length)c=null,d.indexOf(":checked")?1>b.find(d.replace(":checked","")).length&&(c=jQuery(a.thisFieldCall)):c=jQuery(a.thisFieldCall)}else c=jQuery(a.thisFieldCall);return c}function Ta(a,b){var c=!1;if("hidden"==b.type)""!==ha(b)&&(c=!0);else if("select"==a.type){var d=b.className;d&&-1<d.indexOf("frm_other_trigger")&&
53
+ (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=ha(b))):c=jQuery(b).closest(".frm_other_container").find(".frm_other_input").val():"checkbox"!=a.type&&"radio"!=a.type||"hidden"==b.type||(c=ha(b))):c="checkbox"!==b.type&&"radio"!==b.type||!b.checked?jQuery(b).val():b.value;"undefined"===typeof c&&(c="");return c}function ha(a){var b="";a=document.getElementById(a.id+
54
+ "-otext");null!==a&&""!==a.value&&(b=a.value);return b}function Ua(a){var b=!1;a=jQuery(a).find(".frm_saving_draft");a.length&&(b=a.val());return b}function ia(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 P(a,b){var c=a.getAttribute("data-frmfile");if("hidden"==a.type&&null===c)return b;var d="",f="";if("checkbox"==
55
+ 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=ub(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){f=d;d="";for(var e=0;e<f.length;e++)""!==f[e]&&(d=f[e])}f=-1===c.indexOf("frm_other_input")?q(a,
56
+ !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]=F(a,"data-reqmsg")));return b}function ub(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 pa(a,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,
57
+ h=F(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 qa(a,b){var c=a.value;""!==c&&!1!==isNaN(c/1)&&(c=q(a,!0),c in b||(b[c]=F(a,"data-invmsg")));return b}function ra(a,b){var c=a.value,d=F(a,"pattern");if(""!==d&&""!==c){var f=q(a,!0);f in b||(d=new RegExp("^"+d+"$","i"),!1===d.test(c)&&(b[f]=F(a,"data-invmsg")))}return b}function F(a,b){var c=
58
+ a.getAttribute(b);null===c&&(c="");return c}function vb(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={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",
59
+ [a,b]),window.location=b.redirect;else if(""!==b.content){H(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);d=b;if(history.pushState&&"undefined"!=typeof d.page){var g=d.page;var h=encodeURI("frm_page");g=encodeURI(g);for(var k=document.location.search.substr(1).split("&"),l=k.length,m;l--;)if(m=k[l].split("="),
60
+ 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(),frmThemeOverride_frmAfterSubmit(d,e,b.content,a));jQuery(b.content).find(".frm_message").length?(jQuery(document).trigger("frmFormComplete",[a,b]),ja("pageLoad"),b=jQuery(a).find('input[name="id"]'),b.length&&
61
+ (b=document.getElementById("frm_edit_"+b.val()),null!==b&&-1<b.className.indexOf("frm_cancel_edit")&&Va(jQuery(b)))):jQuery(document).trigger("frmPageChanged",[a,b]);ka()}else if(Object.keys(b.errors).length){H(jQuery(a),"enable");d=!0;Wa();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),
62
+ 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");Xa(a);!0!==h&&Ya(a,!1);d?a.submit():jQuery(a).prepend(b.error_message)}else wb(a),Ya(a,!0),a.submit()},error:function(){jQuery(a).find('input[type="submit"], input[type="button"]').removeAttr("disabled");a.submit()}})}
63
+ 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 Wa(){jQuery(".form-field").removeClass("frm_blank_field has-error");jQuery(".form-field .frm_error").replaceWith("");jQuery(".frm_error_style").remove()}function Xa(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")||
64
+ (a.addClass("frm_loading_form"),a.trigger("frmStartFormLoading"));a.find('input[type="submit"], input[type="button"], button[type="submit"]').attr("disabled","disabled")}function H(a,b){0<w||(a.removeClass("frm_loading_form"),a.trigger("frmEndFormLoading"),"enable"==b&&a.find('input[type="submit"], input[type="button"], button[type="submit"]').removeAttr("disabled"))}function wb(a){var b=document.getElementById("frm_loading");null!==b&&(a=jQuery(a).find("input[type=file]").val(),"undefined"!=typeof a&&
65
+ ""!==a&&setTimeout(function(){jQuery(b).fadeIn("slow")},2E3))}function Ya(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 xb(){Za(jQuery(this),"clear")}function yb(){Za(jQuery(this),"replace")}function Za(a,b){var c=a.data("frmval").replace(/(\n|\r\n)/g,"\r");if(""===
66
+ 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 zb(){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",entry_id:b,form_id:c,nonce:frm_js.nonce},success:function(b){a.replaceWith(b)}});return!1}function Ab(a,b){google.load("visualization",
67
+ "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=$a(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=!0,b.addColumn("string",a.options.delete_link));if(null!==a.entries){var l=a.entries.length;b.addRows(l);for(var m=0,p=0;p<l;p++){k=0;
68
+ var n=a.entries[p];d&&(b.setCell(m,k,n.id),k++);for(var q=0,t=f;q<t;q++){var r=a.fields[q];e=$a(r);r=n.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 n.editLink?b.setCell(m,k,'<a href="'+n.editLink+'">'+a.options.edit_link+"</a>"):b.setCell(m,k,""),k++);h&&("undefined"!==typeof n.deleteLink?b.setCell(m,k,'<a href="'+n.deleteLink+'" class="frm_delete_link" data-frmconfirm="'+a.options.confirm+'">'+a.options.delete_link+
69
+ "</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 Bb(a){google.load("visualization","1.0",{packages:[a["package"]],callback:function(){new google.visualization.DataTable;var b=google.visualization.arrayToDataTable(a.data);var c=document.getElementById("chart_"+a.graph_id);if(null!==c){var d=
70
+ 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 $a(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]&&(c="post_status"==a.field_options.post_field?3:c-1);1==c&&(b="boolean")}return b}function Cb(){var a=jQuery(this).data("key"),
71
+ 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));D("frm_field_"+c+"-"+b+"-"+a+"_container",e)});jQuery("#frm_field_"+b+"_container .frm_add_form_row.frm_button").removeClass("frm_hide_add_button");"function"==typeof frmThemeOverride_frmRemoveRow&&
72
+ frmThemeOverride_frmRemoveRow(c,d);jQuery(document).trigger("frmAfterRemoveRow")});return!1}function Db(){if(!0===O)return!1;O=!0;var a=jQuery(this).data("parent"),b=0,c=jQuery(".frm_repeat_"+a).length;if(0<c){var d=jQuery(".frm_repeat_"+a+":last").attr("id").replace("frm_section_"+a+"-","");b=-1<d.indexOf("i")?1:1+parseInt(d)}jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_add_form_row",field_id:a,i:b,numberOfSections:c,nonce:frm_js.nonce},success:function(c){if(c.html){var d=
73
+ c.html,f=jQuery(d).hide().fadeIn("slow");jQuery(".frm_repeat_"+a+":last").after(f);c.is_repeat_limit_reached&&jQuery("#frm_field_"+a+"_container .frm_add_form_row.frm_button").addClass("frm_hide_add_button");var h=["other"],k,l,m={repeatingSection:a.toString(),repeatRow:b.toString()};jQuery(d).find("input, select, textarea").each(function(){if("file"!=this.type){if(""===this.name)return!0;k=this.name.replace("item_meta[","").split("]")[2].replace("[","");-1==jQuery.inArray(k,h)&&!1!==this.id&&""!==
74
+ this.id&&(l=jQuery("#"+this.id),h.push(k),I(k,m),ba(k,m,"value changed"),na(k,l),oa(k,l,"value changed"),R(k,l))}});y(m.repeatRow);ab();fa()}"function"==typeof frmThemeOverride_frmAddRow&&frmThemeOverride_frmAddRow(a,c);jQuery(document).trigger("frmAfterAddRow");O=!1},error:function(){O=!1}});return!1}function Eb(){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+
75
+ 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,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);ja("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"]',
76
+ ma);ka(c+b)}});return!1}function Fb(){var a=jQuery(this),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");Va(a)}function Va(a){var b=a.data("edit");a.removeClass("frm_cancel_edit").addClass("frm_inplace_edit");a.html(b)}function Gb(){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_'+
77
+ c+'"></span>');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 Hb(){for(var a=__frmUniqueTimes,
78
+ b=0;b<a.length;b++)a[b].dateID==this.id&&frmFrontForm.removeUsedTimes(this,a[b].timeID)}function ka(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(Hb);if("undefined"!==typeof __frmMasks)for(b=__frmMasks,c=0;c<b.length;c++)jQuery(b[c].trigger).attr("data-frmmask",b[c].mask);ab();fa(a);
79
+ "undefined"!==typeof __frmDepDynamicFields&&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;b=[];for(var d in a)1>a[d].fields.length&&(c=document.getElementById("field_"+d),null===c||L(c,a[d].form_id)||Z(__FRMCALC,d,b))}y()}function fa(a){if(jQuery().chosen){var b=
80
+ {allow_single_deselect:!0,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 ab(){if(jQuery().rating){var a=jQuery(".star");a.length&&a.rating()}}function ja(a){"undefined"!==typeof __frmHideOrShowFields?frmFrontForm.hideOrShowFields(__frmHideOrShowFields,a):bb()}function bb(){jQuery(".frm_pro_form").fadeIn("slow")}function u(a,b){"undefined"===typeof b&&
81
+ (b="dependent");1<a.length&&(a=a.eq(0));a.trigger({type:"change",selfTriggered:!0,frmTriggered:b})}function B(a){var b={repeatingSection:"",repeatRow:""};"undefined"!==typeof a&&G(a)&&(a=a.split("]["),b.repeatingSection=a[0].replace("item_meta[",""),b.repeatRow=a[1]);return b}function db(a){a.fadeOut("slow",function(){a.remove()})}function Ib(){var a=jQuery(this).data("frmconfirm");return confirm(a)}function Jb(){var a=jQuery(this).data("frmtoggle");jQuery(a).is(":visible")?jQuery(a).slideUp("fast"):
82
+ jQuery(a).slideDown("fast");return!1}function pb(a,b){for(var c in a)if(a.hasOwnProperty(c)&&a[c]===b)return c;return null}function Ra(a){return!jQuery.isArray(a)&&0<=a-parseFloat(a)+1}function Kb(){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 Lb(){"function"!==typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,
83
+ "")})}function Mb(){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 Nb(){Object.keys||(Object.keys=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b})}var O=!1,C="",v=[],w=0,n={};return{init:function(){jQuery(document).off("submit.formidable",
84
+ ".frm-show-form");jQuery(document).on("submit.formidable",".frm-show-form",frmFrontForm.submitForm);jQuery(document).on("click",".frm_trigger",p);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",
85
+ ".frm_toggle_default",xb);jQuery(document).on("blur",".frm_toggle_default",yb);jQuery(".frm_toggle_default").blur();jQuery(document.getElementById("frm_resend_email")).click(zb);jQuery(document).on("click",".frm_remove_link",cb);jQuery(document).on("focusin","input[data-frmmask]",function(){jQuery(this).mask(jQuery(this).data("frmmask").toString(),{autoclear:!1})});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"]',
86
+ ma);jQuery(document).on("change keyup",".frm-show-form .frm_inside_container input, .frm-show-form .frm_inside_container select, .frm-show-form .frm_inside_container textarea",fb);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',m);jQuery(document).on("change",'.frm_other_container input[type="checkbox"], .frm_other_container input[type="radio"], .frm_other_container select',
87
+ eb);jQuery(document).on("click",".frm_remove_form_row",Cb);jQuery(document).on("click",".frm_add_form_row",Db);jQuery(document).on("click","a[data-frmconfirm]",Ib);jQuery("a[data-frmtoggle]").click(Jb);jQuery(".frm_edit_link_container").on("click","a.frm_inplace_edit",Eb);jQuery(".frm_edit_link_container").on("click","a.frm_cancel_edit",Fb);jQuery(document).on("click",".frm_ajax_delete",Gb);jQuery(".frm_month_heading, .frm_year_heading").click(function(){var a=jQuery(this).children(".ui-icon-triangle-1-e, .ui-icon-triangle-1-s");
88
+ 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())});ja("pageLoad");ka();Kb();Lb();Mb();Nb()},renderRecaptcha:function(a){var b=a.getAttribute("data-size"),c={sitekey:a.getAttribute("data-sitekey"),size:b,theme:a.getAttribute("data-theme")};if("invisible"==b){var d=
89
+ jQuery(a).closest("form").find('input[name="form_id"]').val();c.callback=function(a){frmFrontForm.afterRecaptcha(a,d)}}b=grecaptcha.render(a.id,c);a.setAttribute("data-rid",b)},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,this)},submitFormManual:function(a,b){if(ia(b))var c=
90
+ !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&&(Q(jQuery(b)),frmFrontForm.submitFormNow(b,
91
+ 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?(C=jQuery(a).find('input[name="frm_action"]').val(),frmFrontForm.checkFormErrors(a,C)):a.submit():a.submit()},validateFormSubmit:function(a){"undefined"!=typeof tinyMCE&&jQuery(a).find(".wp-editor-wrap").length&&tinyMCE.triggerSave();v=[];var b=jQuery(a).hasClass("frm_js_validate");b&&(Ua(a)||ia(a))&&(b=!1);b&&(frmFrontForm.getAjaxFormErrors(a),
92
+ 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=P(c[d],b);c=jQuery(a).find("input[type=email]").filter(":visible");d=jQuery(a).find("input,select,textarea");if(d.length){f=0;for(var e=d.length;f<e;f++){var g=d[f];""!==g.value&&"hidden"!=g.type&&
93
+ ("number"==g.type?b=qa(g,b):"email"==g.type?b=pa(g,b,c):null!==g.pattern&&(b=ra(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"==typeof frmThemeOverride_jsErrors&&(C=jQuery(a).find('input[name="frm_action"]').val(),a=frmThemeOverride_jsErrors(C,a),Object.keys(a).length))for(var h in a)v[h]=a[h];return v},addAjaxFormErrors:function(a){Wa();
94
+ for(var b in v){var c=jQuery(a).find("#frm_field_"+b+"_container");c.length?S(c,b,v):delete v[b]}Xa(a)},checkFormErrors:function(a,b){vb(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-=frm_js.offset;b=jQuery("html").css("margin-top");
95
+ 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 Ua(a)},goingToPreviousPage:function(a){return ia(a)},hideOrShowFields:function(a,b){if("pageLoad"===b){var c=document.querySelectorAll('[id^="frm_hide_fields_"]');aa(c)}c=
96
+ {repeatingSection:"",repeatRow:""};for(var d=0,f=a.length;d<f;d++)I(a[d],c),d==f-1&&bb()},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(E(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++)I(a[c],b)},checkDependentLookupFields:function(a){for(var b,
97
+ 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++)Bb(d[f]);else for(d=a[b[c]],f=b[c],e=0;e<d.length;e++)Ab(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",
98
+ 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,"&quot;").replace(/'/g,
99
+ "&#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()});function frmRecaptcha(){for(var m=jQuery(".frm-g-recaptcha"),p=0,t=m.length;p<t;p++)frmFrontForm.renderRecaptcha(m[p])}function frmAfterRecaptcha(m){frmFrontForm.afterSingleRecaptcha(m)}
100
  function frmUpdateField(m,p,t,y,z){jQuery(document.getElementById("frm_update_field_"+m+"_"+p+"_"+z)).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:p,value:t,nonce:frm_js.nonce},success:function(){""===y.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById("frm_update_field_"+m+"_"+p+"_"+z)).fadeOut("slow"):jQuery(document.getElementById("frm_update_field_"+m+"_"+p+"_"+z)).replaceWith(y)}})}
101
  function frmDeleteEntry(m,p){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(p+m)).fadeOut("slow"):jQuery(document.getElementById("frm_delete_"+
102
  m)).replaceWith(t)}})}function frmOnSubmit(m){console.warn("DEPRECATED: function frmOnSubmit in v2.0 use frmFrontForm.submitForm");frmFrontForm.submitForm(m,this)}
js/formidable_admin.js CHANGED
@@ -72,8 +72,9 @@ function frmAdminBuildJS(){
72
  }else if(id.indexOf('frm_logic_') === 0 && deleteButton.closest('.frm_logic_rows').find('.frm_logic_row').length<2){
73
  show='#'+deleteButton.closest('td').children('.frm_add_logic_link').attr('id');
74
  }else if(id.indexOf('frm_postmeta_') === 0){
75
- if(jQuery('#frm_postmeta_rows .frm_postmeta_row').length<2)
76
  show='.frm_add_postmeta_row.button';
 
77
  if(jQuery('.frm_toggle_cf_opts').length && jQuery('#frm_postmeta_rows .frm_postmeta_row:not(#'+id+')').last().length){
78
  if(show !== '')
79
  show += ',';
@@ -96,7 +97,7 @@ function frmAdminBuildJS(){
96
  }
97
 
98
  if ( show !== '' ) {
99
- jQuery( show+' a,'+show ).fadeIn( 'slow' );
100
  }
101
 
102
  var action = jQuery(this).closest('.frm_form_action_settings');
@@ -1429,6 +1430,7 @@ function frmAdminBuildJS(){
1429
  jQuery('#frm_notification_settings').append(html);
1430
  jQuery('.frm_form_action_settings').fadeIn('slow');
1431
  jQuery('#frm_form_action_' + (parseInt(len)+1) + ' .widget-inside').css('display','block');
 
1432
  jQuery('#action_post_title_' + (parseInt(len)+1)).focus();
1433
 
1434
  //check if icon should be active
@@ -1633,28 +1635,22 @@ function frmAdminBuildJS(){
1633
  }
1634
 
1635
  function addPosttaxRow(){
1636
- var id = this_form_id;
1637
- var key = jQuery(this).closest('.frm_form_action_settings').data('actionkey');
1638
- var post_type = jQuery(this).closest('.frm_form_action_settings').find('select[name$="[post_content][post_type]"]').val();
1639
- var tax_key = getMetaValue('frm_posttax_', jQuery('#frm_posttax_rows > div').size());
1640
- jQuery.ajax({
1641
- type:'POST',url:ajaxurl,
1642
- data:{action:'frm_add_posttax_row', form_id:id, post_type:post_type, tax_key:tax_key, action_key:key, nonce:frmGlobal.nonce},
1643
- success:function(html){
1644
- jQuery(document.getElementById('frm_posttax_rows')).append(html);
1645
- }
1646
- });
1647
  }
1648
 
1649
  function addPostmetaRow(){
 
 
 
 
1650
  var id = jQuery('input[name="id"]').val();
1651
- var settings = jQuery(this).closest('.frm_form_action_settings');
1652
  var key = settings.data('actionkey');
1653
- var meta_name = 0;
1654
  var post_type = settings.find('.frm_post_type').val();
1655
 
1656
- if(jQuery('.frm_postmeta_row').length){
1657
- var name = jQuery('.frm_postmeta_row:last').attr('id').replace('frm_postmeta_', '');
 
1658
  if(jQuery.isNumeric(name)){
1659
  meta_name = 1 + parseInt(name);
1660
  }else{
@@ -1664,18 +1660,22 @@ function frmAdminBuildJS(){
1664
  jQuery.ajax({
1665
  type:'POST',url:ajaxurl,
1666
  data:{
1667
- action:'frm_add_postmeta_row', form_id:id, meta_name:meta_name,
 
1668
  post_type:post_type, action_key:key, nonce:frmGlobal.nonce
1669
  },
1670
  success:function(html){
1671
- document.getElementById('postcustomstuff').style.display = 'block';
1672
- jQuery(document.getElementById('frm_postmeta_rows')).append(html);
1673
- jQuery('.frm_toggle_cf_opts').not(':last').hide();
1674
- jQuery('.frm_add_postmeta_row.button').hide();
 
 
 
1675
  }
1676
  });
1677
  }
1678
-
1679
  function getMetaValue(id, meta_name){
1680
  var new_meta = meta_name;
1681
  if(jQuery(document.getElementById(id+meta_name)).length>0){
72
  }else if(id.indexOf('frm_logic_') === 0 && deleteButton.closest('.frm_logic_rows').find('.frm_logic_row').length<2){
73
  show='#'+deleteButton.closest('td').children('.frm_add_logic_link').attr('id');
74
  }else if(id.indexOf('frm_postmeta_') === 0){
75
+ if(jQuery('#frm_postmeta_rows .frm_postmeta_row').length<2){
76
  show='.frm_add_postmeta_row.button';
77
+ }
78
  if(jQuery('.frm_toggle_cf_opts').length && jQuery('#frm_postmeta_rows .frm_postmeta_row:not(#'+id+')').last().length){
79
  if(show !== '')
80
  show += ',';
97
  }
98
 
99
  if ( show !== '' ) {
100
+ jQuery( show+' a,'+show ).removeClass('frm_hidden').fadeIn('slow');
101
  }
102
 
103
  var action = jQuery(this).closest('.frm_form_action_settings');
1430
  jQuery('#frm_notification_settings').append(html);
1431
  jQuery('.frm_form_action_settings').fadeIn('slow');
1432
  jQuery('#frm_form_action_' + (parseInt(len)+1) + ' .widget-inside').css('display','block');
1433
+ jQuery('#frm_form_action_' + (parseInt(len)+1)).addClass('open');
1434
  jQuery('#action_post_title_' + (parseInt(len)+1)).focus();
1435
 
1436
  //check if icon should be active
1635
  }
1636
 
1637
  function addPosttaxRow(){
1638
+ addPostRow( 'tax', this );
 
 
 
 
 
 
 
 
 
 
1639
  }
1640
 
1641
  function addPostmetaRow(){
1642
+ addPostRow( 'meta', this );
1643
+ }
1644
+
1645
+ function addPostRow( type, button ){
1646
  var id = jQuery('input[name="id"]').val();
1647
+ var settings = jQuery(button).closest('.frm_form_action_settings');
1648
  var key = settings.data('actionkey');
 
1649
  var post_type = settings.find('.frm_post_type').val();
1650
 
1651
+ var meta_name = 0;
1652
+ if(jQuery('.frm_post'+type+'_row').length){
1653
+ var name = jQuery('.frm_post'+type+'_row:last').attr('id').replace('frm_post'+type+'_', '');
1654
  if(jQuery.isNumeric(name)){
1655
  meta_name = 1 + parseInt(name);
1656
  }else{
1660
  jQuery.ajax({
1661
  type:'POST',url:ajaxurl,
1662
  data:{
1663
+ action:'frm_add_post'+type+'_row', form_id:id,
1664
+ meta_name:meta_name, tax_key:meta_name,
1665
  post_type:post_type, action_key:key, nonce:frmGlobal.nonce
1666
  },
1667
  success:function(html){
1668
+ jQuery(document.getElementById('frm_post'+type+'_rows')).append(html);
1669
+ jQuery('.frm_add_post'+type+'_row.button').hide();
1670
+
1671
+ if ( type == 'meta' ) {
1672
+ document.getElementById('postcustomstuff').style.display = 'block';
1673
+ jQuery('.frm_toggle_cf_opts').not(':last').hide();
1674
+ }
1675
  }
1676
  });
1677
  }
1678
+
1679
  function getMetaValue(id, meta_name){
1680
  var new_meta = meta_name;
1681
  if(jQuery(document.getElementById(id+meta_name)).length>0){
languages/formidable-az_AZ.mo CHANGED
Binary file
languages/formidable-az_AZ.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Formidable v2.05\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
- "PO-Revision-Date: Tue Sep 26 2017 16:08:38 GMT-0600 (MDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Azerbaijani (Azerbaijan)\n"
@@ -280,7 +280,7 @@ msgstr ""
280
 
281
  #: ../classes/controllers/FrmFormsController.php:717 ../classes/views/frm-
282
  #: entries/sidebar-shared.php:23 ../pro/classes/controllers/FrmProFormsController.
283
- #: php:583 ../pro/classes/helpers/FrmProEntriesListHelper.php:62 ..
284
  #: pro/classes/helpers/FrmProEntriesListHelper.php:73 ..
285
  #: pro/classes/helpers/FrmProFieldsHelper.php:2670 ..
286
  #: pro/classes/views/displays/order_row.php:3 ..
@@ -361,7 +361,7 @@ msgstr ""
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:463 ..
365
  #: pro/classes/views/xml/csv_opts.php:13
366
  msgid "(no title)"
367
  msgstr ""
@@ -439,468 +439,468 @@ msgstr ""
439
  msgid "There are no entries for that form."
440
  msgstr ""
441
 
442
- #: ../classes/helpers/FrmAppHelper.php:611
443
  msgid "View Forms and Templates"
444
  msgstr ""
445
 
446
- #: ../classes/helpers/FrmAppHelper.php:612
447
  msgid "Add/Edit Forms and Templates"
448
  msgstr ""
449
 
450
- #: ../classes/helpers/FrmAppHelper.php:613
451
  msgid "Delete Forms and Templates"
452
  msgstr ""
453
 
454
- #: ../classes/helpers/FrmAppHelper.php:614
455
  msgid "Access this Settings Page"
456
  msgstr ""
457
 
458
- #: ../classes/helpers/FrmAppHelper.php:615
459
  msgid "View Entries from Admin Area"
460
  msgstr ""
461
 
462
- #: ../classes/helpers/FrmAppHelper.php:616
463
  msgid "Delete Entries from Admin Area"
464
  msgstr ""
465
 
466
- #: ../classes/helpers/FrmAppHelper.php:623
467
  msgid "Add Entries from Admin Area"
468
  msgstr ""
469
 
470
- #: ../classes/helpers/FrmAppHelper.php:624
471
  msgid "Edit Entries from Admin Area"
472
  msgstr ""
473
 
474
- #: ../classes/helpers/FrmAppHelper.php:625
475
  msgid "View Reports"
476
  msgstr ""
477
 
478
- #: ../classes/helpers/FrmAppHelper.php:626
479
  msgid "Add/Edit Views"
480
  msgstr ""
481
 
482
- #: ../classes/helpers/FrmAppHelper.php:1080 ../classes/helpers/FrmFieldsHelper.
483
  #: php:176 ../pro/classes/controllers/FrmProFieldsController.php:1487
484
  #, php-format
485
  msgid "%s is invalid"
486
  msgstr ""
487
 
488
- #: ../classes/helpers/FrmAppHelper.php:1261
489
  msgid "at"
490
  msgstr ""
491
 
492
- #: ../classes/helpers/FrmAppHelper.php:1310 ../classes/helpers/FrmAppHelper.php:
493
- #: 1329
494
  msgid "seconds"
495
  msgstr ""
496
 
497
- #: ../classes/helpers/FrmAppHelper.php:1323 ..
498
  #: pro/classes/controllers/FrmProDisplaysController.php:741
499
  msgid "year"
500
  msgstr ""
501
 
502
- #: ../classes/helpers/FrmAppHelper.php:1323 ..
503
  #: pro/classes/controllers/FrmProDisplaysController.php:741
504
  msgid "years"
505
  msgstr ""
506
 
507
- #: ../classes/helpers/FrmAppHelper.php:1324 ..
508
  #: pro/classes/controllers/FrmProDisplaysController.php:741
509
  msgid "month"
510
  msgstr ""
511
 
512
- #: ../classes/helpers/FrmAppHelper.php:1324 ..
513
  #: pro/classes/controllers/FrmProDisplaysController.php:741
514
  msgid "months"
515
  msgstr ""
516
 
517
- #: ../classes/helpers/FrmAppHelper.php:1325 ..
518
  #: pro/classes/controllers/FrmProDisplaysController.php:741
519
  msgid "week"
520
  msgstr ""
521
 
522
- #: ../classes/helpers/FrmAppHelper.php:1325 ..
523
  #: pro/classes/controllers/FrmProDisplaysController.php:741
524
  msgid "weeks"
525
  msgstr ""
526
 
527
- #: ../classes/helpers/FrmAppHelper.php:1326 ..
528
  #: pro/classes/controllers/FrmProDisplaysController.php:741
529
  msgid "day"
530
  msgstr ""
531
 
532
- #: ../classes/helpers/FrmAppHelper.php:1327
533
  msgid "hour"
534
  msgstr ""
535
 
536
- #: ../classes/helpers/FrmAppHelper.php:1327 ../pro/classes/views/frmpro-
537
  #: forms/add_form_options.php:41
538
  msgid "hours"
539
  msgstr ""
540
 
541
- #: ../classes/helpers/FrmAppHelper.php:1328
542
  msgid "minute"
543
  msgstr ""
544
 
545
- #: ../classes/helpers/FrmAppHelper.php:1328
546
  msgid "minutes"
547
  msgstr ""
548
 
549
- #: ../classes/helpers/FrmAppHelper.php:1329
550
  msgid "second"
551
  msgstr ""
552
 
553
- #: ../classes/helpers/FrmAppHelper.php:1537
554
  msgid "Give this action a label for easy reference."
555
  msgstr ""
556
 
557
- #: ../classes/helpers/FrmAppHelper.php:1538
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:1539
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:1540
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:1541
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:1542
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:1543
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:1720 ../classes/helpers/FrmAppHelper.php:
596
- #: 1787
597
  msgid "Please wait while your site updates."
598
  msgstr ""
599
 
600
- #: ../classes/helpers/FrmAppHelper.php:1721
601
  msgid "Are you sure you want to deauthorize Formidable Forms on this site?"
602
  msgstr ""
603
 
604
- #: ../classes/helpers/FrmAppHelper.php:1723 ../classes/helpers/FrmAppHelper.php:
605
- #: 1749
606
  msgid "Loading&hellip;"
607
  msgstr ""
608
 
609
- #: ../classes/helpers/FrmAppHelper.php:1754
610
  msgid "No results match"
611
  msgstr ""
612
 
613
- #: ../classes/helpers/FrmAppHelper.php:1755
614
  msgid "That file looks like Spam."
615
  msgstr ""
616
 
617
- #: ../classes/helpers/FrmAppHelper.php:1756
618
  msgid "Please complete the preceding required fields before uploading a file."
619
  msgstr ""
620
 
621
- #: ../classes/helpers/FrmAppHelper.php:1762
622
  msgid ""
623
  "Are you sure you want to do this? Clicking OK will delete all forms, form "
624
  "data, and all other Formidable data. There is no Undo."
625
  msgstr ""
626
 
627
- #: ../classes/helpers/FrmAppHelper.php:1763 ../classes/views/frm-forms/add_field.
628
  #: php:81 ../classes/views/frm-forms/add_field.php:94 ../classes/views/frm-
629
  #: forms/form.php:13 ../pro/classes/views/combo-fields/inplace-sub-label.php:2
630
  msgid "(Click to add description)"
631
  msgstr ""
632
 
633
- #: ../classes/helpers/FrmAppHelper.php:1764 ../classes/views/frm-fields/single-
634
  #: option.php:7 ../classes/views/frm-fields/single-option.php:11 ..
635
  #: pro/classes/views/frmpro-fields/other-option.php:10
636
  msgid "(Blank)"
637
  msgstr ""
638
 
639
- #: ../classes/helpers/FrmAppHelper.php:1765 ../classes/views/frm-forms/add_field.
640
  #: php:63 ../pro/classes/views/frmpro-fields/field-selection.php:12 ..
641
  #: pro/classes/views/lookup-fields/back-end/watch-row.php:10
642
  msgid "(no label)"
643
  msgstr ""
644
 
645
- #: ../classes/helpers/FrmAppHelper.php:1771 ../classes/helpers/FrmFieldsHelper.
646
  #: php:1187
647
  msgid "Clear default value when typing"
648
  msgstr ""
649
 
650
- #: ../classes/helpers/FrmAppHelper.php:1772 ../classes/helpers/FrmFieldsHelper.
651
  #: php:1187
652
  msgid "Do not clear default value when typing"
653
  msgstr ""
654
 
655
- #: ../classes/helpers/FrmAppHelper.php:1773 ../classes/helpers/FrmFieldsHelper.
656
  #: php:1196
657
  msgid "Default value will pass form validation"
658
  msgstr ""
659
 
660
- #: ../classes/helpers/FrmAppHelper.php:1774 ../classes/helpers/FrmFieldsHelper.
661
  #: php:1196
662
  msgid "Default value will NOT pass form validation"
663
  msgstr ""
664
 
665
- #: ../classes/helpers/FrmAppHelper.php:1775
666
  msgid "Are you sure?"
667
  msgstr ""
668
 
669
- #: ../classes/helpers/FrmAppHelper.php:1776
670
  msgid "Are you sure you want to delete this field and all data associated with it?"
671
  msgstr ""
672
 
673
- #: ../classes/helpers/FrmAppHelper.php:1777
674
  msgid "WARNING: This will delete all fields inside of the section as well."
675
  msgstr ""
676
 
677
- #: ../classes/helpers/FrmAppHelper.php:1778
678
  msgid ""
679
  "Warning: If you have entries with multiple rows, all but the first row will "
680
  "be lost."
681
  msgstr ""
682
 
683
- #: ../classes/helpers/FrmAppHelper.php:1780 ../classes/helpers/FrmFieldsHelper.
684
  #: php:173 ../pro/classes/helpers/FrmProFieldsHelper.php:696
685
  msgid "The entered values do not match"
686
  msgstr ""
687
 
688
- #: ../classes/helpers/FrmAppHelper.php:1781
689
  msgid "Enter Email"
690
  msgstr ""
691
 
692
- #: ../classes/helpers/FrmAppHelper.php:1782
693
  msgid "Confirm Email"
694
  msgstr ""
695
 
696
- #: ../classes/helpers/FrmAppHelper.php:1783
697
  msgid ""
698
  "In certain browsers (e.g. Firefox) text will not display correctly if the "
699
  "field height is too small relative to the field padding and text size. "
700
  "Please increase your field height or decrease your field padding."
701
  msgstr ""
702
 
703
- #: ../classes/helpers/FrmAppHelper.php:1784
704
  msgid "Enter Password"
705
  msgstr ""
706
 
707
- #: ../classes/helpers/FrmAppHelper.php:1785
708
  msgid "Confirm Password"
709
  msgstr ""
710
 
711
- #: ../classes/helpers/FrmAppHelper.php:1786
712
  msgid "Import Complete"
713
  msgstr ""
714
 
715
- #: ../classes/helpers/FrmAppHelper.php:1788
716
  msgid "Warning: There is no way to retrieve unsaved entries."
717
  msgstr ""
718
 
719
- #: ../classes/helpers/FrmAppHelper.php:1789
720
  msgid "Private"
721
  msgstr ""
722
 
723
- #: ../classes/helpers/FrmAppHelper.php:1791
724
  msgid "No new licenses were found"
725
  msgstr ""
726
 
727
- #: ../classes/helpers/FrmAppHelper.php:1792
728
  msgid "Please enter a Repeat Limit that is greater than 1."
729
  msgstr ""
730
 
731
- #: ../classes/helpers/FrmAppHelper.php:1813
732
  msgid ""
733
  "You are running an outdated version of Formidable. This plugin may not work "
734
  "correctly if you do not update Formidable."
735
  msgstr ""
736
 
737
- #: ../classes/helpers/FrmAppHelper.php:1819
738
  msgid "English/Western"
739
  msgstr ""
740
 
741
- #: ../classes/helpers/FrmAppHelper.php:1824
742
  msgid "Chinese Hong Kong"
743
  msgstr ""
744
 
745
- #: ../classes/helpers/FrmAppHelper.php:1825
746
  msgid "Chinese Simplified"
747
  msgstr ""
748
 
749
- #: ../classes/helpers/FrmAppHelper.php:1825
750
  msgid "Chinese Traditional"
751
  msgstr ""
752
 
753
- #: ../classes/helpers/FrmAppHelper.php:1828
754
  msgid "English/UK"
755
  msgstr ""
756
 
757
- #: ../classes/helpers/FrmAppHelper.php:1829
758
  msgid "Faroese"
759
  msgstr ""
760
 
761
- #: ../classes/helpers/FrmAppHelper.php:1830
762
  msgid "Farsi/Persian"
763
  msgstr ""
764
 
765
- #: ../classes/helpers/FrmAppHelper.php:1830
766
  msgid "Filipino"
767
  msgstr ""
768
 
769
- #: ../classes/helpers/FrmAppHelper.php:1831
770
  msgid "French"
771
  msgstr ""
772
 
773
- #: ../classes/helpers/FrmAppHelper.php:1832
774
  msgid "French/Canadian"
775
  msgstr ""
776
 
777
- #: ../classes/helpers/FrmAppHelper.php:1832
778
  msgid "French/Swiss"
779
  msgstr ""
780
 
781
- #: ../classes/helpers/FrmAppHelper.php:1833
782
  msgid "German/Austria"
783
  msgstr ""
784
 
785
- #: ../classes/helpers/FrmAppHelper.php:1834
786
  msgid "German/Switzerland"
787
  msgstr ""
788
 
789
- #: ../classes/helpers/FrmAppHelper.php:1834
790
  msgid "Greek"
791
  msgstr ""
792
 
793
- #: ../classes/helpers/FrmAppHelper.php:1835 ../classes/helpers/FrmAppHelper.php:
794
- #: 1835
795
  msgid "Hebrew"
796
  msgstr ""
797
 
798
- #: ../classes/helpers/FrmAppHelper.php:1836
799
  msgid "Hindi"
800
  msgstr ""
801
 
802
- #: ../classes/helpers/FrmAppHelper.php:1836
803
  msgid "Hungarian"
804
  msgstr ""
805
 
806
- #: ../classes/helpers/FrmAppHelper.php:1837
807
  msgid "Icelandic"
808
  msgstr ""
809
 
810
- #: ../classes/helpers/FrmAppHelper.php:1837
811
  msgid "Indonesian"
812
  msgstr ""
813
 
814
- #: ../classes/helpers/FrmAppHelper.php:1838
815
  msgid "Italian"
816
  msgstr ""
817
 
818
- #: ../classes/helpers/FrmAppHelper.php:1838
819
  msgid "Japanese"
820
  msgstr ""
821
 
822
- #: ../classes/helpers/FrmAppHelper.php:1839
823
  msgid "Korean"
824
  msgstr ""
825
 
826
- #: ../classes/helpers/FrmAppHelper.php:1839
827
  msgid "Latvian"
828
  msgstr ""
829
 
830
- #: ../classes/helpers/FrmAppHelper.php:1840
831
  msgid "Lithuanian"
832
  msgstr ""
833
 
834
- #: ../classes/helpers/FrmAppHelper.php:1840
835
  msgid "Malaysian"
836
  msgstr ""
837
 
838
- #: ../classes/helpers/FrmAppHelper.php:1841
839
  msgid "Norwegian"
840
  msgstr ""
841
 
842
- #: ../classes/helpers/FrmAppHelper.php:1841
843
  msgid "Polish"
844
  msgstr ""
845
 
846
- #: ../classes/helpers/FrmAppHelper.php:1842
847
  msgid "Portuguese"
848
  msgstr ""
849
 
850
- #: ../classes/helpers/FrmAppHelper.php:1842
851
  msgid "Portuguese/Brazilian"
852
  msgstr ""
853
 
854
- #: ../classes/helpers/FrmAppHelper.php:1843
855
  msgid "Portuguese/Portugal"
856
  msgstr ""
857
 
858
- #: ../classes/helpers/FrmAppHelper.php:1843
859
  msgid "Romanian"
860
  msgstr ""
861
 
862
- #: ../classes/helpers/FrmAppHelper.php:1844
863
  msgid "Russian"
864
  msgstr ""
865
 
866
- #: ../classes/helpers/FrmAppHelper.php:1844 ../classes/helpers/FrmAppHelper.php:
867
- #: 1845
868
  msgid "Serbian"
869
  msgstr ""
870
 
871
- #: ../classes/helpers/FrmAppHelper.php:1845
872
  msgid "Slovak"
873
  msgstr ""
874
 
875
- #: ../classes/helpers/FrmAppHelper.php:1846
876
  msgid "Slovenian"
877
  msgstr ""
878
 
879
- #: ../classes/helpers/FrmAppHelper.php:1846
880
  msgid "Spanish"
881
  msgstr ""
882
 
883
- #: ../classes/helpers/FrmAppHelper.php:1847
884
  msgid "Spanish/Latin America"
885
  msgstr ""
886
 
887
- #: ../classes/helpers/FrmAppHelper.php:1847
888
  msgid "Swedish"
889
  msgstr ""
890
 
891
- #: ../classes/helpers/FrmAppHelper.php:1848
892
  msgid "Tamil"
893
  msgstr ""
894
 
895
- #: ../classes/helpers/FrmAppHelper.php:1848
896
  msgid "Thai"
897
  msgstr ""
898
 
899
- #: ../classes/helpers/FrmAppHelper.php:1850
900
  msgid "Ukranian"
901
  msgstr ""
902
 
903
- #: ../classes/helpers/FrmAppHelper.php:1850
904
  msgid "Vietnamese"
905
  msgstr ""
906
 
@@ -931,7 +931,7 @@ msgid "IP"
931
  msgstr ""
932
 
933
  #: ../classes/helpers/FrmEntriesListHelper.php:59 ..
934
- #: pro/classes/controllers/FrmProEntriesController.php:1713 ..
935
  #: pro/classes/helpers/FrmProDisplaysHelper.php:59
936
  msgid "No Entries Found"
937
  msgstr ""
@@ -945,7 +945,7 @@ msgstr ""
945
  msgid "Filter"
946
  msgstr ""
947
 
948
- #: ../classes/helpers/FrmEntriesListHelper.php:218
949
  msgid "Are you sure you want to delete that?"
950
  msgstr ""
951
 
@@ -1979,7 +1979,7 @@ msgid "Entry"
1979
  msgstr ""
1980
 
1981
  #: ../classes/views/frm-entries/show.php:57 ..
1982
- #: pro/classes/controllers/FrmProEntriesController.php:1677
1983
  msgid "Parent Entry ID"
1984
  msgstr ""
1985
 
@@ -1988,7 +1988,7 @@ msgid "Entry Details"
1988
  msgstr ""
1989
 
1990
  #: ../classes/views/frm-entries/sidebar-shared.php:8 ..
1991
- #: pro/classes/controllers/FrmProEntriesController.php:1675
1992
  msgid "Post"
1993
  msgstr ""
1994
 
@@ -2011,10 +2011,10 @@ msgid "Entry Actions"
2011
  msgstr ""
2012
 
2013
  #: ../classes/views/frm-entries/sidebar-show.php:22 ..
2014
- #: pro/classes/controllers/FrmProEntriesController.php:1714 ..
2015
- #: pro/classes/controllers/FrmProEntriesController.php:2099 ..
2016
- #: pro/classes/controllers/FrmProEntriesController.php:2173 ..
2017
- #: pro/classes/controllers/FrmProEntriesController.php:2568
2018
  msgid "Are you sure you want to delete that entry?"
2019
  msgstr ""
2020
 
@@ -2204,95 +2204,95 @@ msgstr ""
2204
  msgid "Bulk Edit Options"
2205
  msgstr ""
2206
 
2207
- #: ../classes/views/frm-forms/add_field.php:142
2208
  msgid "Field Options"
2209
  msgstr ""
2210
 
2211
- #: ../classes/views/frm-forms/add_field.php:147
2212
  msgid "Field Type"
2213
  msgstr ""
2214
 
2215
- #: ../classes/views/frm-forms/add_field.php:172
2216
  msgid ""
2217
  "Unique: Do not allow the same response multiple times. For example, if one "
2218
  "user enters 'Joe', then no one else will be allowed to enter the same name."
2219
  msgstr ""
2220
 
2221
- #: ../classes/views/frm-forms/add_field.php:172 ../classes/views/frm-
2222
- #: forms/add_field.php:307
2223
  msgid "Unique"
2224
  msgstr ""
2225
 
2226
- #: ../classes/views/frm-forms/add_field.php:181
2227
  msgid ""
2228
  "Read Only: Show this field but do not allow the field value to be edited "
2229
  "from the front-end."
2230
  msgstr ""
2231
 
2232
- #: ../classes/views/frm-forms/add_field.php:183 ../classes/views/styles/_field-
2233
  #: colors.php:13
2234
  msgid "Read Only"
2235
  msgstr ""
2236
 
2237
- #: ../classes/views/frm-forms/add_field.php:193
2238
  msgid "Indicate required field with"
2239
  msgstr ""
2240
 
2241
- #: ../classes/views/frm-forms/add_field.php:201
2242
  msgid "The field key can be used as an alternative to the field ID in many cases."
2243
  msgstr ""
2244
 
2245
- #: ../classes/views/frm-forms/add_field.php:202 ../classes/views/frm-
2246
  #: forms/mb_html_tab.php:7
2247
  msgid "Field Key"
2248
  msgstr ""
2249
 
2250
- #: ../classes/views/frm-forms/add_field.php:212
2251
  msgid "CSS layout classes"
2252
  msgstr ""
2253
 
2254
- #: ../classes/views/frm-forms/add_field.php:213
2255
  msgid ""
2256
  "Add a CSS class to the field container. Use our predefined classes to align "
2257
  "multiple fields in single row."
2258
  msgstr ""
2259
 
2260
- #: ../classes/views/frm-forms/add_field.php:223 ../classes/views/frm-
2261
  #: forms/mb_html_tab.php:10
2262
  msgid "Label Position"
2263
  msgstr ""
2264
 
2265
- #: ../classes/views/frm-forms/add_field.php:252
2266
  msgid "ReCaptcha Type"
2267
  msgstr ""
2268
 
2269
- #: ../classes/views/frm-forms/add_field.php:253
2270
  msgid ""
2271
  "Set the size of the captcha field. The compact option is best if your form "
2272
  "is in a small area."
2273
  msgstr ""
2274
 
2275
- #: ../classes/views/frm-forms/add_field.php:258
2276
  msgid "Normal"
2277
  msgstr ""
2278
 
2279
- #: ../classes/views/frm-forms/add_field.php:268
2280
  msgid "reCAPTCHA Color"
2281
  msgstr ""
2282
 
2283
- #: ../classes/views/frm-forms/add_field.php:287
2284
  msgid "Validation"
2285
  msgstr ""
2286
 
2287
- #: ../classes/views/frm-forms/add_field.php:299
2288
  msgid "Invalid Format"
2289
  msgstr ""
2290
 
2291
- #: ../classes/views/frm-forms/add_field.php:315
2292
  msgid "Confirmation"
2293
  msgstr ""
2294
 
2295
- #: ../classes/views/frm-forms/add_field.php:334
2296
  msgid "Drag fields from your form or the sidebar into this section"
2297
  msgstr ""
2298
 
@@ -3529,48 +3529,48 @@ msgstr ""
3529
  msgid "%1$sClick here%2$s if you are not automatically redirected."
3530
  msgstr ""
3531
 
3532
- #: ../pro/classes/controllers/FrmProEntriesController.php:1317
3533
  msgid "Create Entry in Form"
3534
  msgstr ""
3535
 
3536
- #: ../pro/classes/controllers/FrmProEntriesController.php:1360
3537
  msgid "Copied from Post"
3538
  msgstr ""
3539
 
3540
- #: ../pro/classes/controllers/FrmProEntriesController.php:1410 ..
3541
- #: pro/classes/controllers/FrmProEntriesController.php:1438
3542
  msgid "You are trying to access an entry that does not exist."
3543
  msgstr ""
3544
 
3545
- #: ../pro/classes/controllers/FrmProEntriesController.php:1729
3546
  msgid ""
3547
  "There are no matching fields. Please check your formresults shortcode to "
3548
  "make sure you are using the correct form and field IDs."
3549
  msgstr ""
3550
 
3551
- #: ../pro/classes/controllers/FrmProEntriesController.php:2521
3552
  msgid "You are missing options in your shortcode. A field_id is required."
3553
  msgstr ""
3554
 
3555
- #: ../pro/classes/controllers/FrmProEntriesController.php:2606 ..
3556
- #: pro/classes/controllers/FrmProEntriesController.php:2977
3557
  msgid "Your entry was successfully deleted"
3558
  msgstr ""
3559
 
3560
- #: ../pro/classes/controllers/FrmProEntriesController.php:2646
3561
  msgid "You are missing options in your shortcode. field_id is required."
3562
  msgstr ""
3563
 
3564
- #: ../pro/classes/controllers/FrmProEntriesController.php:2993
3565
  msgid "There was an error deleting that entry"
3566
  msgstr ""
3567
 
3568
- #: ../pro/classes/controllers/FrmProEntriesController.php:3057
3569
  #, php-format
3570
  msgid "Resent to %s"
3571
  msgstr ""
3572
 
3573
- #: ../pro/classes/controllers/FrmProEntriesController.php:3062
3574
  msgid "Resent to No one! You do not have permission"
3575
  msgstr ""
3576
 
@@ -3916,258 +3916,271 @@ msgstr ""
3916
  msgid "Descending"
3917
  msgstr ""
3918
 
 
 
 
 
 
3919
  #: ../pro/classes/controllers/FrmProFormsController.php:435
 
 
 
 
 
 
 
 
 
 
 
 
3920
  msgid "Use Formidable styling"
3921
  msgstr ""
3922
 
3923
- #: ../pro/classes/controllers/FrmProFormsController.php:438
3924
  msgid "Customize search button"
3925
  msgstr ""
3926
 
3927
- #: ../pro/classes/controllers/FrmProFormsController.php:443
3928
  msgid "The ID of the page with the search results"
3929
  msgstr ""
3930
 
3931
- #: ../pro/classes/controllers/FrmProFormsController.php:458
3932
  msgid "Select a form and field:"
3933
  msgstr ""
3934
 
3935
- #: ../pro/classes/controllers/FrmProFormsController.php:461 ..
3936
  #: pro/classes/views/frmpro-fields/options-form-before.php:19 ..
3937
  #: pro/classes/views/lookup-fields/back-end/get-options-from.php:2
3938
  msgid "Select Form"
3939
  msgstr ""
3940
 
3941
- #: ../pro/classes/controllers/FrmProFormsController.php:474
3942
  msgid "Graph Type"
3943
  msgstr ""
3944
 
3945
- #: ../pro/classes/controllers/FrmProFormsController.php:476
3946
  msgid "Column"
3947
  msgstr ""
3948
 
3949
- #: ../pro/classes/controllers/FrmProFormsController.php:477
3950
  msgid "Horizontal Bar"
3951
  msgstr ""
3952
 
3953
- #: ../pro/classes/controllers/FrmProFormsController.php:478
3954
  msgid "Pie"
3955
  msgstr ""
3956
 
3957
- #: ../pro/classes/controllers/FrmProFormsController.php:479
3958
  msgid "Line"
3959
  msgstr ""
3960
 
3961
- #: ../pro/classes/controllers/FrmProFormsController.php:480
3962
  msgid "Area"
3963
  msgstr ""
3964
 
3965
- #: ../pro/classes/controllers/FrmProFormsController.php:481
3966
  msgid "Scatter"
3967
  msgstr ""
3968
 
3969
- #: ../pro/classes/controllers/FrmProFormsController.php:482
3970
  msgid "Histogram"
3971
  msgstr ""
3972
 
3973
- #: ../pro/classes/controllers/FrmProFormsController.php:483
3974
  msgid "Table"
3975
  msgstr ""
3976
 
3977
- #: ../pro/classes/controllers/FrmProFormsController.php:484
3978
  msgid "Stepped Area"
3979
  msgstr ""
3980
 
3981
- #: ../pro/classes/controllers/FrmProFormsController.php:485
3982
  msgid "Geographical Map"
3983
  msgstr ""
3984
 
3985
- #: ../pro/classes/controllers/FrmProFormsController.php:489
3986
  msgid "Data Type"
3987
  msgstr ""
3988
 
3989
- #: ../pro/classes/controllers/FrmProFormsController.php:491
3990
  msgid "The number of entries"
3991
  msgstr ""
3992
 
3993
- #: ../pro/classes/controllers/FrmProFormsController.php:492
3994
  msgid "Add the field values together"
3995
  msgstr ""
3996
 
3997
- #: ../pro/classes/controllers/FrmProFormsController.php:493
3998
  msgid "Average the totaled field values"
3999
  msgstr ""
4000
 
4001
- #: ../pro/classes/controllers/FrmProFormsController.php:498 ..
4002
- #: pro/classes/controllers/FrmProFormsController.php:529
4003
  msgid "Background color"
4004
  msgstr ""
4005
 
4006
- #: ../pro/classes/controllers/FrmProFormsController.php:499
4007
  msgid "Graph title"
4008
  msgstr ""
4009
 
4010
- #: ../pro/classes/controllers/FrmProFormsController.php:500
4011
  msgid "Title font size"
4012
  msgstr ""
4013
 
4014
- #: ../pro/classes/controllers/FrmProFormsController.php:501
4015
  msgid "Title font name"
4016
  msgstr ""
4017
 
4018
- #: ../pro/classes/controllers/FrmProFormsController.php:503
4019
  msgid "Turn your pie graph three-dimensional"
4020
  msgstr ""
4021
 
4022
- #: ../pro/classes/controllers/FrmProFormsController.php:506
4023
  msgid ""
4024
  "When using dates for the x_axis parameter, you can include dates with a zero "
4025
  "value."
4026
  msgstr ""
4027
 
4028
- #: ../pro/classes/controllers/FrmProFormsController.php:507
4029
  msgid "Include a legend with the graph"
4030
  msgstr ""
4031
 
4032
- #: ../pro/classes/controllers/FrmProFormsController.php:514
4033
  msgid "Insert an entry ID/key:"
4034
  msgstr ""
4035
 
4036
- #: ../pro/classes/controllers/FrmProFormsController.php:521
4037
  msgid "Include user info like browser and IP"
4038
  msgstr ""
4039
 
4040
- #: ../pro/classes/controllers/FrmProFormsController.php:522
4041
  msgid "Include rows for blank fields"
4042
  msgstr ""
4043
 
4044
- #: ../pro/classes/controllers/FrmProFormsController.php:523
4045
  msgid "Do not include any HTML"
4046
  msgstr ""
4047
 
4048
- #: ../pro/classes/controllers/FrmProFormsController.php:524
4049
  msgid "Use RTL format"
4050
  msgstr ""
4051
 
4052
- #: ../pro/classes/controllers/FrmProFormsController.php:525
4053
  msgid "Font size"
4054
  msgstr ""
4055
 
4056
- #: ../pro/classes/controllers/FrmProFormsController.php:526
4057
  msgid "Text color"
4058
  msgstr ""
4059
 
4060
- #: ../pro/classes/controllers/FrmProFormsController.php:527
4061
  msgid "Border width"
4062
  msgstr ""
4063
 
4064
- #: ../pro/classes/controllers/FrmProFormsController.php:528
4065
  msgid "Border color"
4066
  msgstr ""
4067
 
4068
- #: ../pro/classes/controllers/FrmProFormsController.php:530
4069
  msgid "Alternate background color"
4070
  msgstr ""
4071
 
4072
- #: ../pro/classes/controllers/FrmProFormsController.php:539
4073
  msgid "Field ID/key for labels"
4074
  msgstr ""
4075
 
4076
- #: ../pro/classes/controllers/FrmProFormsController.php:542
4077
  msgid "Display format"
4078
  msgstr ""
4079
 
4080
- #: ../pro/classes/controllers/FrmProFormsController.php:544 ..
4081
  #: pro/classes/helpers/FrmProFieldsHelper.php:3826
4082
  msgid "List"
4083
  msgstr ""
4084
 
4085
- #: ../pro/classes/controllers/FrmProFormsController.php:545
4086
  msgid "Drop down"
4087
  msgstr ""
4088
 
4089
- #: ../pro/classes/controllers/FrmProFormsController.php:546
4090
  msgid "Expanding archive"
4091
  msgstr ""
4092
 
4093
- #: ../pro/classes/controllers/FrmProFormsController.php:551
4094
  msgid "Privacy"
4095
  msgstr ""
4096
 
4097
- #: ../pro/classes/controllers/FrmProFormsController.php:553
4098
  msgid "Only include the entries the current user created"
4099
  msgstr ""
4100
 
4101
- #: ../pro/classes/controllers/FrmProFormsController.php:554
4102
  msgid "Include all entries"
4103
  msgstr ""
4104
 
4105
- #: ../pro/classes/controllers/FrmProFormsController.php:557
4106
  msgid "The ID of the page to link to"
4107
  msgstr ""
4108
 
4109
- #: ../pro/classes/controllers/FrmProFormsController.php:560
4110
  msgid "Link action"
4111
  msgstr ""
4112
 
4113
- #: ../pro/classes/controllers/FrmProFormsController.php:562
4114
  msgid "Edit if allowed"
4115
  msgstr ""
4116
 
4117
- #: ../pro/classes/controllers/FrmProFormsController.php:563
4118
  msgid "View only"
4119
  msgstr ""
4120
 
4121
- #: ../pro/classes/controllers/FrmProFormsController.php:566
4122
  msgid "Delete link label"
4123
  msgstr ""
4124
 
4125
- #: ../pro/classes/controllers/FrmProFormsController.php:567
4126
  msgid "Delete confirmation message"
4127
  msgstr ""
4128
 
4129
- #: ../pro/classes/controllers/FrmProFormsController.php:570
4130
  msgid "Send users to"
4131
  msgstr ""
4132
 
4133
- #: ../pro/classes/controllers/FrmProFormsController.php:572
4134
  msgid "A page"
4135
  msgstr ""
4136
 
4137
- #: ../pro/classes/controllers/FrmProFormsController.php:573
4138
  msgid "An anchor on the page with id=\"[key]\""
4139
  msgstr ""
4140
 
4141
- #: ../pro/classes/controllers/FrmProFormsController.php:574
4142
  msgid "The entry in the back-end"
4143
  msgstr ""
4144
 
4145
- #: ../pro/classes/controllers/FrmProFormsController.php:577
4146
  msgid "URL parameter (?entry=5)"
4147
  msgstr ""
4148
 
4149
- #: ../pro/classes/controllers/FrmProFormsController.php:580
4150
  msgid "Identify the entry by"
4151
  msgstr ""
4152
 
4153
- #: ../pro/classes/controllers/FrmProFormsController.php:582 ..
4154
  #: pro/classes/views/displays/where_row.php:7
4155
  msgid "Entry key"
4156
  msgstr ""
4157
 
4158
- #: ../pro/classes/controllers/FrmProFormsController.php:586
4159
  msgid "Add HTML classes"
4160
  msgstr ""
4161
 
4162
- #: ../pro/classes/controllers/FrmProFormsController.php:587
4163
  msgid "Label on first option in the dropdown"
4164
  msgstr ""
4165
 
4166
- #: ../pro/classes/controllers/FrmProFormsController.php:588
4167
- msgid "Include draft entries"
4168
- msgstr ""
4169
-
4170
- #: ../pro/classes/controllers/FrmProFormsController.php:602
4171
  msgid "Draft status"
4172
  msgstr ""
4173
 
@@ -4328,11 +4341,11 @@ msgstr ""
4328
  msgid "A Formidable Forms update is available, but your license is invalid."
4329
  msgstr ""
4330
 
4331
- #: ../pro/classes/helpers/FrmProAppHelper.php:630
4332
  msgid "Previous Page"
4333
  msgstr ""
4334
 
4335
- #: ../pro/classes/helpers/FrmProAppHelper.php:634
4336
  msgid "Next Page"
4337
  msgstr ""
4338
 
@@ -5432,7 +5445,7 @@ msgid "Repeatable: This section can be repeated when viewing your form."
5432
  msgstr ""
5433
 
5434
  #: ../pro/classes/views/frmpro-form-actions/_custom_field_row.php:4 ..
5435
- #: pro/classes/views/frmpro-form-actions/post_options.php:190
5436
  msgid "Name"
5437
  msgstr ""
5438
 
@@ -5441,7 +5454,7 @@ msgid "Enter new"
5441
  msgstr ""
5442
 
5443
  #: ../pro/classes/views/frmpro-form-actions/_custom_field_row.php:36 ..
5444
- #: pro/classes/views/frmpro-form-actions/post_options.php:191
5445
  msgid "Value"
5446
  msgstr ""
5447
 
@@ -6241,10 +6254,10 @@ msgstr "Stil"
6241
  #: classes/helpers/FrmFormsListHelper.php:306 ../classes/views/frm-
6242
  #: entries/sidebar-shared.php:12 ../classes/views/frm-forms/_publish_box.php:67 ..
6243
  #: pro/classes/controllers/FrmProDisplaysController.php:38 ..
6244
- #: pro/classes/controllers/FrmProEntriesController.php:1687 ..
6245
- #: pro/classes/controllers/FrmProEntriesController.php:1897 ..
6246
- #: pro/classes/controllers/FrmProEntriesController.php:2417 ..
6247
- #: pro/classes/helpers/FrmProAppHelper.php:228 ..
6248
  #: pro/classes/helpers/FrmProEntriesHelper.php:256 ..
6249
  #: pro/classes/models/FrmProContent.php:251
6250
  msgid "Edit"
@@ -6276,19 +6289,19 @@ msgstr "İdxal/İxrac"
6276
  msgid "The file does not exist, please try again."
6277
  msgstr "Fayl tapılmadı, təkrar yoxlayın."
6278
 
6279
- #: ../classes/helpers/FrmAppHelper.php:1326 ..
6280
  #: pro/classes/controllers/FrmProDisplaysController.php:741
6281
  msgid "days"
6282
  msgstr "gün"
6283
 
6284
- #: ../classes/helpers/FrmAppHelper.php:1750 ..
6285
  #: pro/classes/controllers/FrmProNestedFormsController.php:777 ..
6286
  #: pro/classes/helpers/FrmProFieldsHelper.php:694 ..
6287
  #: pro/classes/views/styles/_sample_form.php:29
6288
  msgid "Remove"
6289
  msgstr "Sil"
6290
 
6291
- #: ../classes/helpers/FrmAppHelper.php:1753 ../classes/helpers/FrmCSVExportHelper.
6292
  #: php:117 ../pro/classes/helpers/FrmProFieldsHelper.php:2691 ..
6293
  #: pro/classes/helpers/FrmProFieldsHelper.php:2707 ..
6294
  #: pro/classes/views/displays/mb_advanced.php:87 ../pro/classes/views/frmpro-
@@ -6296,110 +6309,110 @@ msgstr "Sil"
6296
  msgid "ID"
6297
  msgstr "ID"
6298
 
6299
- #: ../classes/helpers/FrmAppHelper.php:1766
6300
  msgid "Saving"
6301
  msgstr "Qeyd edilir"
6302
 
6303
- #: ../classes/helpers/FrmAppHelper.php:1767
6304
  msgid "Saved"
6305
  msgstr "Qeyd edildi"
6306
 
6307
- #: ../classes/helpers/FrmAppHelper.php:1768 ../classes/views/frm-
6308
  #: forms/_publish_box.php:74
6309
  msgid "OK"
6310
  msgstr "OK"
6311
 
6312
- #: ../classes/helpers/FrmAppHelper.php:1769 ../classes/views/frm-
6313
  #: forms/_publish_box.php:75 ../pro/classes/controllers/FrmProEddController.php:
6314
- #: 185 ../pro/classes/controllers/FrmProEntriesController.php:2417 ..
6315
  #: pro/classes/views/frmpro-entries/sidebar-new.php:14 ..
6316
  #: pro/classes/views/frmpro-entries/sidebar-new.php:14 ..
6317
  #: pro/classes/views/frmpro-form-actions/_custom_field_row.php:31
6318
  msgid "Cancel"
6319
  msgstr "İmtina"
6320
 
6321
- #: ../classes/helpers/FrmAppHelper.php:1770 ../classes/helpers/FrmFormsListHelper.
6322
- #: php:271 ../classes/views/frm-forms/add_field.php:227 ..
6323
  #: classes/views/styles/_buttons.php:12 ../classes/views/styles/_field-colors.
6324
  #: php:4 ../pro/classes/controllers/FrmProFormsController.php:425 ..
6325
  #: pro/classes/views/frmpro-forms/add_form_button_options.php:27
6326
  msgid "Default"
6327
  msgstr "Mövcud"
6328
 
6329
- #: ../classes/helpers/FrmAppHelper.php:1819
6330
  msgid "English"
6331
  msgstr "İngilis"
6332
 
6333
- #: ../classes/helpers/FrmAppHelper.php:1820
6334
  msgid "Afrikaans"
6335
  msgstr "Afrikan"
6336
 
6337
- #: ../classes/helpers/FrmAppHelper.php:1820
6338
  msgid "Albanian"
6339
  msgstr "Alban"
6340
 
6341
- #: ../classes/helpers/FrmAppHelper.php:1821
6342
  msgid "Arabic"
6343
  msgstr "Ərəb"
6344
 
6345
- #: ../classes/helpers/FrmAppHelper.php:1821
6346
  msgid "Armenian"
6347
  msgstr "Erməni"
6348
 
6349
- #: ../classes/helpers/FrmAppHelper.php:1822
6350
  msgid "Azerbaijani"
6351
  msgstr "Azərbaycan türkcəsi"
6352
 
6353
- #: ../classes/helpers/FrmAppHelper.php:1822
6354
  msgid "Basque"
6355
  msgstr "Basque"
6356
 
6357
- #: ../classes/helpers/FrmAppHelper.php:1823
6358
  msgid "Bosnian"
6359
  msgstr "Bosnian"
6360
 
6361
- #: ../classes/helpers/FrmAppHelper.php:1823
6362
  msgid "Bulgarian"
6363
  msgstr "Bulgarian"
6364
 
6365
- #: ../classes/helpers/FrmAppHelper.php:1824
6366
  msgid "Catalan"
6367
  msgstr "Catalan"
6368
 
6369
- #: ../classes/helpers/FrmAppHelper.php:1826
6370
  msgid "Croatian"
6371
  msgstr "Croatian"
6372
 
6373
- #: ../classes/helpers/FrmAppHelper.php:1826
6374
  msgid "Czech"
6375
  msgstr "Czech"
6376
 
6377
- #: ../classes/helpers/FrmAppHelper.php:1827
6378
  msgid "Danish"
6379
  msgstr "Danish"
6380
 
6381
- #: ../classes/helpers/FrmAppHelper.php:1827
6382
  msgid "Dutch"
6383
  msgstr "Dutch"
6384
 
6385
- #: ../classes/helpers/FrmAppHelper.php:1828
6386
  msgid "Esperanto"
6387
  msgstr "Esperanto"
6388
 
6389
- #: ../classes/helpers/FrmAppHelper.php:1829
6390
  msgid "Estonian"
6391
  msgstr "Estonian"
6392
 
6393
- #: ../classes/helpers/FrmAppHelper.php:1831
6394
  msgid "Finnish"
6395
  msgstr "Finnish"
6396
 
6397
- #: ../classes/helpers/FrmAppHelper.php:1833
6398
  msgid "German"
6399
  msgstr "Alman"
6400
 
6401
- #: ../classes/helpers/FrmAppHelper.php:1849 ../classes/helpers/FrmAppHelper.php:
6402
- #: 1849
6403
  msgid "Turkish"
6404
  msgstr "Türk"
6405
 
@@ -6414,25 +6427,25 @@ msgstr "Son yenilənmə"
6414
  #: ../classes/helpers/FrmCSVExportHelper.php:115 ..
6415
  #: classes/helpers/FrmFormsHelper.php:639 ../classes/helpers/FrmFormsListHelper.
6416
  #: php:362 ../classes/views/frm-forms/_publish_box.php:72 ..
6417
- #: pro/classes/controllers/FrmProEntriesController.php:1676 ..
6418
  #: pro/classes/views/displays/where_options.php:19
6419
  msgid "Draft"
6420
  msgstr "Qaralama"
6421
 
6422
- #: ../classes/helpers/FrmEntriesHelper.php:506 ..
6423
- #: classes/helpers/FrmEntriesHelper.php:507
6424
  msgid "Unknown"
6425
  msgstr "Bilinməyən"
6426
 
6427
- #: ../classes/helpers/FrmEntriesListHelper.php:169
6428
  msgid "No"
6429
  msgstr "Xeyr"
6430
 
6431
- #: ../classes/helpers/FrmEntriesListHelper.php:169
6432
  msgid "Yes"
6433
  msgstr "Bəli"
6434
 
6435
- #: ../classes/helpers/FrmEntriesListHelper.php:214 ../classes/views/frm-
6436
  #: entries/sidebar-shared.php:15 ..
6437
  #: pro/classes/controllers/FrmProDisplaysController.php:36 ..
6438
  #: pro/classes/controllers/FrmProDisplaysController.php:37 ..
@@ -6442,13 +6455,13 @@ msgstr "Bəli"
6442
  msgid "View"
6443
  msgstr "Bax"
6444
 
6445
- #: ../classes/helpers/FrmEntriesListHelper.php:218 ..
6446
  #: classes/helpers/FrmFormsHelper.php:618 ../classes/helpers/FrmFormsListHelper.
6447
  #: php:104 ../classes/models/FrmFormAction.php:694 ../classes/views/frm-
6448
  #: entries/sidebar-show.php:22 ../classes/views/frm-entries/sidebar-show.php:23 ..
6449
- #: pro/classes/controllers/FrmProEntriesController.php:1911 ..
6450
- #: pro/classes/controllers/FrmProEntriesController.php:2156 ..
6451
- #: pro/classes/controllers/FrmProEntriesController.php:2567 ..
6452
  #: pro/classes/helpers/FrmProEntriesListHelper.php:6 ../pro/classes/views/frmpro-
6453
  #: entries/sidebar-edit.php:27 ../pro/classes/views/frmpro-entries/sidebar-edit.
6454
  #: php:27
@@ -7329,7 +7342,7 @@ msgstr "Özəl"
7329
  #: ../classes/helpers/FrmFormsListHelper.php:315 ..
7330
  #: pro/classes/controllers/FrmProDisplaysController.php:112 ..
7331
  #: pro/classes/controllers/FrmProDisplaysController.php:112 ..
7332
- #: pro/classes/controllers/FrmProEntriesController.php:1692 ..
7333
  #: pro/classes/helpers/FrmProEntriesHelper.php:245
7334
  msgid "Duplicate"
7335
  msgstr "Dublikat"
@@ -7492,7 +7505,7 @@ msgstr "Ünvan"
7492
  #: classes/views/frm-forms/add_field_links.php:6 ../classes/views/frm-forms/edit.
7493
  #: php:26 ../classes/views/frm-forms/edit.php:38 ../classes/views/frm-
7494
  #: forms/settings.php:273 ../pro/classes/controllers/FrmProEntriesController.php:
7495
- #: 2513 ../pro/classes/controllers/FrmProEntriesController.php:3074 ..
7496
  #: pro/classes/models/FrmProSettings.php:18
7497
  msgid "Update"
7498
  msgstr "Yenilə"
@@ -7557,9 +7570,9 @@ msgid "M j, Y @ G:i"
7557
  msgstr "d F Y @ H:i"
7558
 
7559
  #: ../classes/views/frm-entries/list.php:18 ../classes/views/frm-forms/list.php:
7560
- #: 21 ../pro/classes/controllers/FrmProEntriesController.php:2049 ..
7561
  #: pro/classes/controllers/FrmProFormsController.php:378 ..
7562
- #: pro/classes/controllers/FrmProFormsController.php:437 ..
7563
  #: pro/classes/helpers/FrmProEntriesListHelper.php:69
7564
  msgid "Search"
7565
  msgstr "Axtar"
@@ -7606,20 +7619,20 @@ msgstr "Gizlət"
7606
  msgid "Status"
7607
  msgstr "Status"
7608
 
7609
- #: ../classes/views/frm-forms/add_field.php:162 ../classes/views/frm-
7610
- #: forms/add_field.php:292
7611
  msgid "Required"
7612
  msgstr "Gərəklidir"
7613
 
7614
- #: ../classes/views/frm-forms/add_field.php:261
7615
  msgid "Compact"
7616
  msgstr "Yığcam"
7617
 
7618
- #: ../classes/views/frm-forms/add_field.php:272
7619
  msgid "Light"
7620
  msgstr "Parlaq "
7621
 
7622
- #: ../classes/views/frm-forms/add_field.php:273
7623
  msgid "Dark"
7624
  msgstr "Tutqun"
7625
 
@@ -7679,12 +7692,12 @@ msgstr "Ölçü"
7679
 
7680
  #: ../classes/views/styles/_buttons.php:31 ../classes/views/styles/_field-labels.
7681
  #: php:36 ../classes/views/styles/_field-sizes.php:12 ..
7682
- #: pro/classes/controllers/FrmProFormsController.php:497
7683
  msgid "Width"
7684
  msgstr "En"
7685
 
7686
  #: ../classes/views/styles/_buttons.php:36 ../classes/views/styles/_field-sizes.
7687
- #: php:7 ../pro/classes/controllers/FrmProFormsController.php:496
7688
  msgid "Height"
7689
  msgstr "Hündürlük"
7690
 
@@ -7801,8 +7814,8 @@ msgstr "Raportlar"
7801
  #: pro/classes/helpers/FrmProFieldsHelper.php:694 ..
7802
  #: pro/classes/views/displays/mb_advanced.php:33 ..
7803
  #: pro/classes/views/displays/mb_advanced.php:53 ../pro/classes/views/frmpro-
7804
- #: form-actions/post_options.php:180 ../pro/classes/views/frmpro-form-
7805
- #: actions/post_options.php:210 ../pro/classes/views/styles/_sample_form.php:30
7806
  msgid "Add"
7807
  msgstr "Əlavə et"
7808
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Formidable v2.05.02\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
+ "PO-Revision-Date: Wed Oct 25 2017 12:58:28 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Azerbaijani (Azerbaijan)\n"
280
 
281
  #: ../classes/controllers/FrmFormsController.php:717 ../classes/views/frm-
282
  #: entries/sidebar-shared.php:23 ../pro/classes/controllers/FrmProFormsController.
283
+ #: php:593 ../pro/classes/helpers/FrmProEntriesListHelper.php:62 ..
284
  #: pro/classes/helpers/FrmProEntriesListHelper.php:73 ..
285
  #: pro/classes/helpers/FrmProFieldsHelper.php:2670 ..
286
  #: pro/classes/views/displays/order_row.php:3 ..
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:473 ..
365
  #: pro/classes/views/xml/csv_opts.php:13
366
  msgid "(no title)"
367
  msgstr ""
439
  msgid "There are no entries for that form."
440
  msgstr ""
441
 
442
+ #: ../classes/helpers/FrmAppHelper.php:614
443
  msgid "View Forms and Templates"
444
  msgstr ""
445
 
446
+ #: ../classes/helpers/FrmAppHelper.php:615
447
  msgid "Add/Edit Forms and Templates"
448
  msgstr ""
449
 
450
+ #: ../classes/helpers/FrmAppHelper.php:616
451
  msgid "Delete Forms and Templates"
452
  msgstr ""
453
 
454
+ #: ../classes/helpers/FrmAppHelper.php:617
455
  msgid "Access this Settings Page"
456
  msgstr ""
457
 
458
+ #: ../classes/helpers/FrmAppHelper.php:618
459
  msgid "View Entries from Admin Area"
460
  msgstr ""
461
 
462
+ #: ../classes/helpers/FrmAppHelper.php:619
463
  msgid "Delete Entries from Admin Area"
464
  msgstr ""
465
 
466
+ #: ../classes/helpers/FrmAppHelper.php:626
467
  msgid "Add Entries from Admin Area"
468
  msgstr ""
469
 
470
+ #: ../classes/helpers/FrmAppHelper.php:627
471
  msgid "Edit Entries from Admin Area"
472
  msgstr ""
473
 
474
+ #: ../classes/helpers/FrmAppHelper.php:628
475
  msgid "View Reports"
476
  msgstr ""
477
 
478
+ #: ../classes/helpers/FrmAppHelper.php:629
479
  msgid "Add/Edit Views"
480
  msgstr ""
481
 
482
+ #: ../classes/helpers/FrmAppHelper.php:1083 ../classes/helpers/FrmFieldsHelper.
483
  #: php:176 ../pro/classes/controllers/FrmProFieldsController.php:1487
484
  #, php-format
485
  msgid "%s is invalid"
486
  msgstr ""
487
 
488
+ #: ../classes/helpers/FrmAppHelper.php:1264
489
  msgid "at"
490
  msgstr ""
491
 
492
+ #: ../classes/helpers/FrmAppHelper.php:1313 ../classes/helpers/FrmAppHelper.php:
493
+ #: 1332
494
  msgid "seconds"
495
  msgstr ""
496
 
497
+ #: ../classes/helpers/FrmAppHelper.php:1326 ..
498
  #: pro/classes/controllers/FrmProDisplaysController.php:741
499
  msgid "year"
500
  msgstr ""
501
 
502
+ #: ../classes/helpers/FrmAppHelper.php:1326 ..
503
  #: pro/classes/controllers/FrmProDisplaysController.php:741
504
  msgid "years"
505
  msgstr ""
506
 
507
+ #: ../classes/helpers/FrmAppHelper.php:1327 ..
508
  #: pro/classes/controllers/FrmProDisplaysController.php:741
509
  msgid "month"
510
  msgstr ""
511
 
512
+ #: ../classes/helpers/FrmAppHelper.php:1327 ..
513
  #: pro/classes/controllers/FrmProDisplaysController.php:741
514
  msgid "months"
515
  msgstr ""
516
 
517
+ #: ../classes/helpers/FrmAppHelper.php:1328 ..
518
  #: pro/classes/controllers/FrmProDisplaysController.php:741
519
  msgid "week"
520
  msgstr ""
521
 
522
+ #: ../classes/helpers/FrmAppHelper.php:1328 ..
523
  #: pro/classes/controllers/FrmProDisplaysController.php:741
524
  msgid "weeks"
525
  msgstr ""
526
 
527
+ #: ../classes/helpers/FrmAppHelper.php:1329 ..
528
  #: pro/classes/controllers/FrmProDisplaysController.php:741
529
  msgid "day"
530
  msgstr ""
531
 
532
+ #: ../classes/helpers/FrmAppHelper.php:1330
533
  msgid "hour"
534
  msgstr ""
535
 
536
+ #: ../classes/helpers/FrmAppHelper.php:1330 ../pro/classes/views/frmpro-
537
  #: forms/add_form_options.php:41
538
  msgid "hours"
539
  msgstr ""
540
 
541
+ #: ../classes/helpers/FrmAppHelper.php:1331
542
  msgid "minute"
543
  msgstr ""
544
 
545
+ #: ../classes/helpers/FrmAppHelper.php:1331
546
  msgid "minutes"
547
  msgstr ""