Formidable Forms – Form Builder for WordPress - Version 2.02.01

Version Description

  • *Pro Features: * *
  • Add styling for uploader with left label
  • Add styling for rich text field with left label
  • Make new file upload strings translatable
  • Fix default date issue in Firefox
  • Search post fields in admin entries tab
  • Allow searching by IP address in admin entries tab
  • Fixed showing default avatars if there is none selected in the form
  • Fixed issue with newly uploaded files getting dropped when there are validation errors while editing an entry
  • Fixed issue with showing the url of the icon instead of the uploaded file by default
Download this release

Release Info

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

Code changes from version 2.02 to 2.02.01

classes/helpers/FrmAppHelper.php CHANGED
@@ -10,7 +10,7 @@ class FrmAppHelper {
10
  /**
11
  * @since 2.0
12
  */
13
- public static $plug_version = '2.02';
14
 
15
  /**
16
  * @since 1.07.02
10
  /**
11
  * @since 2.0
12
  */
13
+ public static $plug_version = '2.02.01';
14
 
15
  /**
16
  * @since 1.07.02
classes/models/FrmDb.php CHANGED
@@ -244,7 +244,7 @@ class FrmDb {
244
  if ( is_array( $value ) ) {
245
  // translate array of values to "in"
246
  if ( strpos( $lowercase_key, 'like' ) !== false ) {
247
- $where = rtrim( $where, $key );
248
  $where .= '(';
249
  $start = true;
250
  foreach ( $value as $v ) {
244
  if ( is_array( $value ) ) {
245
  // translate array of values to "in"
246
  if ( strpos( $lowercase_key, 'like' ) !== false ) {
247
+ $where = preg_replace('/' . $key . '$/', '', $where);
248
  $where .= '(';
249
  $start = true;
250
  foreach ( $value as $v ) {
classes/models/FrmStyle.php CHANGED
@@ -93,7 +93,7 @@ class FrmStyle {
93
 
94
  }
95
 
96
- $this->save_settings($all_instances);
97
 
98
  return $action_ids;
99
  }
93
 
94
  }
95
 
96
+ $this->save_settings();
97
 
98
  return $action_ids;
99
  }
css/custom_theme.css.php CHANGED
@@ -632,13 +632,17 @@ table.frmcal-calendar .frmcal-today .frmcal_date{
632
  .frm_form_field.frm_left_container input:not([type=radio]):not([type=checkbox]),
633
  .frm_form_field.frm_left_container:not(.frm_dynamic_select_container) select,
634
  .frm_form_field.frm_left_container textarea,
 
635
  .frm_form_field.frm_left_container .frm_opt_container,
 
636
  .frm_form_field.frm_left_container .frm-g-recaptcha,
637
  .frm_form_field.frm_left_container .g-recaptcha,
638
  .frm_form_field.frm_right_container input:not([type=radio]):not([type=checkbox]),
639
  .frm_form_field.frm_right_container:not(.frm_dynamic_select_container) select,
640
  .frm_form_field.frm_right_container textarea,
 
641
  .frm_form_field.frm_right_container .frm_opt_container,
 
642
  .frm_form_field.frm_right_container .frm-g-recaptcha,
643
  .frm_form_field.frm_right_container .g-recaptcha{
644
  max-width:62%;
@@ -647,6 +651,12 @@ table.frmcal-calendar .frmcal-today .frmcal_date{
647
  .frm_form_field.frm_left_container .frm_opt_container,
648
  .frm_form_field.frm_right_container .frm_opt_container,
649
  .frm_form_field.frm_inline_container .frm_opt_container,
 
 
 
 
 
 
650
  .frm_form_field.frm_left_container .frm-g-recaptcha,
651
  .frm_form_field.frm_right_container .frm-g-recaptcha,
652
  .frm_form_field.frm_inline_container .frm-g-recaptcha,
632
  .frm_form_field.frm_left_container input:not([type=radio]):not([type=checkbox]),
633
  .frm_form_field.frm_left_container:not(.frm_dynamic_select_container) select,
634
  .frm_form_field.frm_left_container textarea,
635
+ .frm_form_field.frm_left_container .wp-editor-wrap,
636
  .frm_form_field.frm_left_container .frm_opt_container,
637
+ .frm_form_field.frm_left_container .frm_dropzone,
638
  .frm_form_field.frm_left_container .frm-g-recaptcha,
639
  .frm_form_field.frm_left_container .g-recaptcha,
640
  .frm_form_field.frm_right_container input:not([type=radio]):not([type=checkbox]),
641
  .frm_form_field.frm_right_container:not(.frm_dynamic_select_container) select,
642
  .frm_form_field.frm_right_container textarea,
643
+ .frm_form_field.frm_right_container .wp-editor-wrap,
644
  .frm_form_field.frm_right_container .frm_opt_container,
645
+ .frm_form_field.frm_right_container .frm_dropzone,
646
  .frm_form_field.frm_right_container .frm-g-recaptcha,
647
  .frm_form_field.frm_right_container .g-recaptcha{
648
  max-width:62%;
651
  .frm_form_field.frm_left_container .frm_opt_container,
652
  .frm_form_field.frm_right_container .frm_opt_container,
653
  .frm_form_field.frm_inline_container .frm_opt_container,
654
+ .frm_form_field.frm_left_container .wp-editor-wrap,
655
+ .frm_form_field.frm_right_container .wp-editor-wrap,
656
+ .frm_form_field.frm_inline_container .wp-editor-wrap,
657
+ .frm_form_field.frm_left_container .frm_dropzone,
658
+ .frm_form_field.frm_right_container .frm_dropzone,
659
+ .frm_form_field.frm_inline_container .frm_dropzone,
660
  .frm_form_field.frm_left_container .frm-g-recaptcha,
661
  .frm_form_field.frm_right_container .frm-g-recaptcha,
662
  .frm_form_field.frm_inline_container .frm-g-recaptcha,
formidable.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Formidable
4
  Description: Quickly and easily create drag-and-drop forms
5
- Version: 2.02
6
  Plugin URI: http://formidablepro.com/
7
  Author URI: http://strategy11.com
8
  Author: Strategy11
2
  /*
3
  Plugin Name: Formidable
4
  Description: Quickly and easily create drag-and-drop forms
5
+ Version: 2.02.01
6
  Plugin URI: http://formidablepro.com/
7
  Author URI: http://strategy11.com
8
  Author: Strategy11
js/formidable.js CHANGED
@@ -128,6 +128,10 @@ function frmFrontFormJS(){
128
  maxFiles: max,
129
  acceptedFiles: uploadFields[i].acceptedFiles,
130
  uploadMultiple: uploadFields[i].uploadMultiple,
 
 
 
 
131
  fallback: function() {
132
  // Force ajax submit to turn off
133
  jQuery(this.element).closest('form').removeClass('frm_ajax_submit');
128
  maxFiles: max,
129
  acceptedFiles: uploadFields[i].acceptedFiles,
130
  uploadMultiple: uploadFields[i].uploadMultiple,
131
+ dictCancelUpload: uploadFields[i].cancel,
132
+ dictCancelUploadConfirmation: uploadFields[i].cancelConfirm,
133
+ dictRemoveFile: uploadFields[i].remove,
134
+ dictMaxFilesExceeded: uploadFields[i].maxFilesExceeded,
135
  fallback: function() {
136
  // Force ajax submit to turn off
137
  jQuery(this.element).closest('form').removeClass('frm_ajax_submit');
js/formidable.min.js CHANGED
@@ -1,93 +1,94 @@
1
  function frmFrontFormJS(){function l(a){var b=jQuery(this),c=b.attr("type");"submit"!==c&&a.preventDefault();a=b.parents("form:first");var d=b="",e=this.name;if("frm_prev_page"===e||-1!==this.className.indexOf("frm_prev_page"))b=jQuery(a).find(".frm_next_page").attr("id").replace("frm_next_p_","");else if("frm_save_draft"===e||-1!==this.className.indexOf("frm_save_draft"))d=1;jQuery(".frm_next_page").val(b);jQuery(".frm_saving_draft").val(d);"submit"!==c&&a.trigger("submit")}function n(){jQuery(this).parent().children(".frm_toggle_container").slideToggle("fast");
2
- 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")}function p(){for(var a=__frmUniqueTimes,b=0;b<a.length;b++)a[b].dateID==this.id&&frmFrontForm.removeUsedTimes(this,a[b].timeID)}function r(){if(-1===this.className.indexOf("frm_custom_date")&&"undefined"!==typeof __frmDatepicker){var a=__frmDatepicker,b=this.id,c=b.split("-");c.pop();c='input[id^="'+c.join("-")+'"]';jQuery.datepicker.setDefaults(jQuery.datepicker.regional[""]);
3
- for(var d=0,e=0;e<a.length;e++)if(a[e].triggerID=="#"+b||a[e].triggerID==c)d=e;""!==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],a[d].options))}}function x(a){var b=__frmDropzone,c=jQuery("#"+b[a].htmlID),d=b[a].maxFiles;if("undefined"!==typeof b[a].mockFiles){var e=b[a].mockFiles.length;0<d&&(d-=e)}var e=c.closest("form"),f=e.find('input[type="submit"], .frm_submit input[type="button"]'),
4
- h=e.find(".frm_ajax_loading");c.dropzone({url:frm_js.ajax_url,addRemoveLinks:!0,paramName:b[a].paramName,maxFilesize:b[a].maxFilesize,maxFiles:d,acceptedFiles:b[a].acceptedFiles,uploadMultiple:b[a].uploadMultiple,fallback:function(){jQuery(this.element).closest("form").removeClass("frm_ajax_submit")},init:function(){this.on("sending",function(c,d,e){e.append("action","frm_submit_dropzone");e.append("field_id",b[a].fieldID);e.append("form_id",b[a].formID)});this.on("success",function(c,d){for(var e=
5
- jQuery.parseJSON(d),f=0;f<e.length;f++)!0!==b[a].uploadMultiple&&jQuery('input[name="'+b[a].fieldName+'"]').val(e[f])});this.on("successmultiple",function(c,d){for(var e=jQuery.parseJSON(d),f=0;f<c.length;f++)jQuery(c[f].previewElement).append(y(b[a],e[f]))});this.on("removedfile",function(c){!0!==b[a].uploadMultiple&&jQuery('input[name="'+b[a].fieldName+'"]').val("")});this.on("complete",function(c){b[a].uploadMultiple&&"undefined"!==typeof c.mediaID&&jQuery(c.previewElement).append(y(b[a],c.mediaID))});
6
- this.on("addedfile",function(){h.addClass("frm_loading_now");f.attr("disabled","disabled")});this.on("queuecomplete",function(){h.removeClass("frm_loading_now");f.removeAttr("disabled")});this.on("removedfile",function(c){"undefined"!==typeof c.mediaID&&(jQuery(c.previewElement).remove(),this.options.maxFiles=b[a].maxFiles-this.files.length)});if("undefined"!==typeof b[a].mockFiles)for(var c=0;c<b[a].mockFiles.length;c++){var d={name:b[a].mockFiles[c].name,size:b[a].mockFiles[c].size,mediaID:b[a].mockFiles[c].id};
7
- this.emit("addedfile",d);this.emit("thumbnail",d,b[a].mockFiles[c].url);this.emit("complete",d);this.files.push(d)}}})}function y(a,b){return'<input name="'+a.fieldName+'[]" type="hidden" value="'+b+'" data-frmfile="'+a.fieldID+'" />'}function z(){var a=jQuery(this).data("frm-remove");Ma(jQuery(this).parent(".dz-preview"));a=jQuery('input[name="'+a+'"]');a.length&&a.val("")}function v(){var a=this.type,b=!1,c=!1;if("select-one"===a)c=!0,"frm_other_trigger"===this.options[this.selectedIndex].className&&
8
- (b=!0);else if("select-multiple"===a)for(var c=!0,d=this.options,b=!1,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")&&(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"),
9
- 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(""))}function A(a){var b=q(this,!1);if(b&&"undefined"!==typeof b&&(!a.frmTriggered||a.frmTriggered!=b)){da(b,jQuery(this));a="undefined"!==typeof a.originalEvent||-1<a.currentTarget.className.indexOf("frm_chzn")?
10
- "value changed":"other";ea(b,jQuery(this),a);L(b,jQuery(this));b=[];a=jQuery(this).closest(".frm_form_field");a.hasClass(".frm_required_field")&&!jQuery(this).hasClass(".frm_optional")&&(b=fa(this,b));if(1>b.length)if("email"==this.type)var c=jQuery(this).closest("form").find("input[type=email]"),b=ga(this,b,c);else"number"==this.type?b=ha(this,b):null!==this.pattern&&(b=ia(this,b));a.removeClass("frm_blank_field");a.find(".frm_error").remove();if(0<Object.keys(b).length)for(var d in b)M(a,d,b)}}
11
- function q(a,b){var c="",c=a instanceof jQuery?a.attr("name"):a.name;if(""===c)return c=a instanceof jQuery?a.data("name"):a.getAttribute("data-name"),""!==c&&c?c:0;c=c.replace("item_meta[","").replace("[]","").split("]");if(1>c.length)return 0;var c=c.filter(function(a){return""!==a}),d=c[0],e=!1;if(1===c.length||"[form"==c[1]||"[id"==c[1])return d;if(jQuery('input[name="item_meta['+d+'][form]"]').length){if(2===c.length&&"[0"==c[1])return 0;d=c[2].replace("[","");e=!0}"other"===d&&(d=e?c[3].replace("[",
12
- ""):c[1].replace("[",""));!0===b&&(d=d===c[0]?d+"-"+c[1].replace("[",""):d+"-"+c[0]+"-"+c[1].replace("[",""));return d}function da(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=F(b[0].name),e=0,f=c.dependents.length;e<f;e++)G(c.dependents[e],d)}function G(a,b){var c=N(a);if(!(!1===c||1>c.conditions.length)){var d;d=[];if(c.isRepeating)if(""!==b.repeatingSection){var e="frm_field_"+
13
- c.fieldId+"-",e=e+(b.repeatingSection+"-"+b.repeatRow+"_container");d.push(e)}else if("0"!==c.inEmbedForm)d=O(c),d=["frm_field_"+c.fieldId+"-"+d+"-0_container"];else if(d=[],e=O(c),null!==document.getElementById("frm_field_"+e+"_container"))for(var e=document.querySelectorAll(".frm_field_"+c.fieldId+"_container"),f=0,h=e.length;f<h;f++)d.push(e[f].id);else if(d=[],e=O(c),e="frm_field_"+c.fieldId+"-"+e+"-",f=document.querySelectorAll('[id^="field_'+c.inSectionKey+'-rowid-"]'),1>f.length)d.push(e+"0_container");
14
- else for(var g=0,k=f.length;g<k;g++)h=f[g].id.split("-"),3==h.length&&d.push(e+h[2]+"_container");else d.push("frm_field_"+c.fieldId+"_container");e=d.length;for(f=0;f<e;f++)c.containerId=d[f],ja(c,d[f]),ka(c)}}function O(a){var b="";"0"!==a.inEmbedForm?b=a.inEmbedForm:"0"!==a.inSection&&(b=a.inSection);return b}function ja(a,b){if(a.isRepeating){var c=b.replace("_container","").split("-");a.repeatRow=c[2]}else a.repeatRow=""}function ka(a){for(var b=[],c=a.conditions.length,d=0;d<c;d++)b.push(Na(a.conditions[d],
15
- a));c=C="any"==a.anyAll?-1<b.indexOf(!0)?a.showHide:la(a.showHide):-1<b.indexOf(!1)?la(a.showHide):a.showHide;b=null!==document.getElementById(a.containerId);"show"==c?"data"==a.fieldType&&a.hasOwnProperty("dataLogic")?(a={fieldId:a.fieldId,fieldKey:a.fieldKey,formId:a.formId,containerId:a.containerId,repeatRow:a.repeatRow,dataLogic:{actualValue:a.dataLogic.actualValue,fieldId:a.dataLogic.fieldId},children:"",inputType:a.inputType},"data"==a.inputType?Oa(a,b):b&&Pa(a)):!1!==B(a.containerId,a.formId)&&
16
- (H(a.containerId,a.formId),b?(b=ma(a.containerId),na(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId),jQuery("#"+a.containerId).show()):(b=oa(a),na(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId))):P(a,b)}function N(a){return"undefined"===typeof __FRMRULES||"undefined"===typeof __FRMRULES[a]?!1:__FRMRULES[a]}function Na(a,b){var c=N(a.fieldId),d=pa(c,b);"data"==b.fieldType&&"data"==c.fieldType?(c=""===a.value?""===d||1==d.length&&""===d[0]?!1:!0:Q(a.operator,a.value,d),b.dataLogic=
17
- a,b.dataLogic.actualValue=d,d=c):d=Q(a.operator,a.value,d);return d}function pa(a,b){var c;if("radio"==a.inputType||"checkbox"==a.inputType)c=qa(a,b),c=document.querySelectorAll('input[name^="'+c+'"]'),c="checkbox"==a.inputType?R(c):ra(c);else if(c="",!0===a.isMultiSelect){c=qa(a,b);var d=document.querySelectorAll('[name^="'+c+'"]');c=1==d.length&&"hidden"!=d[0].type?jQuery('[name^="'+c+'"]').val():R(d)}else d="field_"+a.fieldKey,a.isRepeating&&(d+="-"+b.repeatRow),d=document.getElementById(d),null!==
18
- d&&(c=d.value);"undefined"===typeof c?c="":"string"===typeof c&&(c=c.trim());return c}function qa(a,b){return a.isRepeating?"item_meta["+b.inSection+"]["+b.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]"}function R(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="");return b}function Q(a,b,c){b=Qa(b);c=Ra(b,c);return"string"===typeof b&&"-1"!=b.indexOf("&quot;")&&Q(a,b.replace("&quot;",'"'),c)?!0:{"==":function(a,b){return a==
19
- 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;b=I(b);a=I(a);return-1!=b.indexOf(a)},"not LIKE":function(a,b){if(!b)return!0;b=I(b);a=I(a);return-1==b.indexOf(a)}}[a](b,c)}function Qa(a){-1!==String(a).search(/^\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*$/)?a=parseFloat(a):"string"===typeof a&&(a=a.trim());return a}function Ra(a,b){"undefined"===typeof b&&(b="");jQuery.isArray(b)&&-1<jQuery.inArray(a,b)&&(b=a);"number"===typeof a&&
20
- "string"===typeof b&&(b=parseFloat(b));"string"===typeof b&&(b=b.trim());return b}function I(a){"string"===typeof a?a=a.toLowerCase():"number"===typeof a&&(a=a.toString());return a}function la(a){return"show"==a?"hide":"show"}function ma(a){return document.getElementById(a).querySelectorAll('select[name^="item_meta"], textarea[name^="item_meta"], input[name^="item_meta"]')}function oa(a){if("divider"==a.fieldType){var b=[];"divider"==a.fieldType&&(b=document.querySelectorAll('[data-sectionid="'+a.fieldId+
21
- '"]'));a=b}else a="form"==a.fieldType?document.querySelectorAll('[id^="field_'+a.fieldKey+'-"]'):document.querySelectorAll('[name^="'+(a.isRepeating?"item_meta["+a.inSection+"]["+a.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]")+'"]');return a}function na(a,b,c){if(a.length)for(var d,e=["checkbox","radio"],f=0;f<a.length;f++)if(!(0<f&&"undefined"!==typeof d&&d.name==a[f].name&&-1<e.indexOf(d.type)||b&&S(a[f],c))){d=a[f];var h=jQuery(d),g=h.data("frmval");if("undefined"!==typeof g){if("checkbox"==
22
- d.type||"radio"==d.type)for(var k=document.getElementsByName(d.name),m=0,l=k.length;m<l;m++)if("hidden"==k[m].type)jQuery.isArray(g)&&null!==g[m]?k[m].value=g[m]:k[m].value=g;else{if(k[m].value==g||jQuery.isArray(g)&&-1<g.indexOf(k[m].value))if(k[m].checked=!0,"radio"==k[m].type)break}else if(-1<d.name.indexOf("[]"))if(k=document.getElementsByName(d.name),jQuery.isArray(g))for(m=0,l=g.length;m<l;m++)m in k&&(k[m].value=g[m]);else null!==k[0]&&(k[0].value=g);else k=d.getAttribute("autocompletetype"),
23
- null!==k&&(k=k.replace("address-",""),g=g[k]),d.value=g;"SELECT"==d.tagName&&T(d);u(h)}d=a[f];h=q(d,!1);h=U(h);!1!==h&&"lookup"!=h.fieldType&&(h.parentVals=V(h),sa(h,d));d=a[f];if(h="undefined"!==typeof __FRMCALC){h=d.type;g=!1;if("text"==h||"hidden"==h||"number"==h)g=!0;h=g}if(h){h=__FRMCALC;g=d.name;k=d.id.replace("field_","");if(3<=g.split("][").length)for(g=k.split("-"),k="",m=0;m<g.length-1;m++)k=""===k?g[m]:k+"-"+g[m];g=k;k=null;3<=d.name.split("][").length&&(k="hidden"!=d.type?jQuery(d).closest(".frm_form_field"):
24
- jQuery(d));d=k;void 0!==h.calc[g]&&W(h,g,[],d)}d=a[f]}}function S(a,b){var c=q(a,!0);return B("frm_field_"+c+"_container",b)}function P(a,b){if(!B(a.containerId,a.formId)){if(b){jQuery("#"+a.containerId).hide();var c=ma(a.containerId)}else c=oa(a);X(c);ta(a.containerId,a.formId)}}function X(a){if(!(1>a.length)){for(var b,c=!0,d=0,e=a.length;d<e;d++)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?
25
- c=!1:a[d].selectedIndex=0,null!==document.getElementById(a[d].id+"_chosen")&&jQuery(a[d]).trigger("chosen:updated")):a[d].value="",b=a[d];!0===c&&u(jQuery(b))}}function B(a,b){var c=!1;-1<D(b).indexOf(a)&&(c=!0);return c}function ta(a,b){var c=D(b);if(!(-1<c.indexOf(a))){c.push(a);var c=JSON.stringify(c),d=document.getElementById("frm_hide_fields_"+b);null!==d&&(d.value=c)}}function D(a){var b=[];a=document.getElementById("frm_hide_fields_"+a);return null===a?b:b=(b=a.value)?JSON.parse(b):[]}function H(a,
26
- 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 ea(a,b,c){if(!("undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]||1>__FRMLOOKUP[a].dependents.length||null===b||"undefined"===typeof b)){a=__FRMLOOKUP[a];b=F(b[0].name);for(var d=0,e=a.dependents.length;d<e;d++)Y(a.dependents[d],b,c)}}function Y(a,b,c){a=U(a);if(!(!1===a||1>a.parents.length))if("lookup"==a.fieldType){b=[];a.isRepeating?b=document.querySelectorAll(".frm_field_"+
27
- a.fieldId+"_container"):(c=document.getElementById("frm_field_"+a.fieldId+"_container"),null!==c&&b.push(c));c=0;for(var d=b.length;c<d;c++){ja(a,b[c].id);var e=a,f=b[c];e.parentVals=V(e);if("select"==e.inputType)Sa(e,f);else if("radio"==e.inputType||"checkbox"==e.inputType)if(!1===e.parentVals){var h=f.getElementsByTagName("input");ua(e,f);X(h)}else Ta(e,f)}}else if("value changed"===c)for(c="field_"+a.fieldKey,c=a.isRepeating?""!==b.repeatingSection?'[id="'+c+"-"+b.repeatRow+'"]':'[id^="'+c+'-"]':
28
- '[id="'+c+'"]',b=document.querySelectorAll(c),c=0,d=b.length;c<d;c++)e=a,f=F(b[c].name),e.repeatRow=""!==f.repeatRow?f.repeatRow:"",e=a,f=b[c],e.parentVals=V(e),sa(e,f)}function U(a){return"undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]?!1:__FRMLOOKUP[a]}function V(a){for(var b=[],c=a.parents,d,e=0,f=c.length;e<f;e++){d=U(c[e]);d=pa(d,a);if(""===d||!1===d){b=!1;break}b[e]=d}return b}function ra(a){for(var b=!1,c=a.length,d=0;d<c;d++)if("hidden"==a[d].type||a[d].checked){b=a[d].value;
29
- break}return b}function Sa(a,b){var c=b.getElementsByTagName("SELECT")[0];if(null!==c){var d=c.value;!1===a.parentVals?(c.options.length=1,""!==d&&(c.value="",T(c),u(jQuery(c),a.fieldKey))):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(b){var d=a.fieldKey,h=c.value;b=JSON.parse(b);for(var g=c.options.length;0<g;g--)c.remove(g);for(var k=b.length,g=
30
- 0;g<k;g++)c.options[g+1]=new Option(b[g],b[g],!1,!1);c.value=h;""===c.value&&(b=c.getAttribute("data-frmval"),null!==b&&(c.value=b));T(c);c.value!=h&&u(jQuery(c),d)}})}}function T(a){-1<a.className.indexOf("frm_chzn")&&jQuery().chosen&&jQuery(a).trigger("chosen:updated")}function Ta(a,b){var c=b.getElementsByClassName("frm_opt_container")[0],d=c.getElementsByTagName("input");Ua(b,c);var e="",e="radio"==a.inputType?ra(d):R(d);jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_replace_cb_radio_lookup_options",
31
- parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,row_index:a.repeatRow,current_value:e,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?ua(a,b):!1!==B(b.id,a.formId)&&(e=N(a.fieldId),!1===e||1>e.conditions.length?(H(b.id,a.formId),jQuery("#"+b.id).show()):(e.containerId=b.id,e.repeatRow=a.repeatRow,ka(e)));u(jQuery(d[0]),a.fieldKey)}})}
32
- function ua(a,b){B(b.id,a.formId)||(jQuery("#"+b.id).hide(),ta(b.id,a.formId))}function sa(a,b){if(!S(b,a.formId))if(!1===a.parentVals){var c=b.getAttribute("data-frmval");null===c&&(c="");va(a,b,c)}else jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_get_lookup_text_value",parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,nonce:frm_js.nonce},success:function(c){b.value!=c&&va(a.fieldKey,b,c)}})}function va(a,b,c){b.value=c;u(jQuery(b),a)}function Oa(a,b){if(b){var c=
33
- jQuery("#"+a.containerId);wa(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,nonce:frm_js.nonce},success:function(d){if(b){var e=c.find(".frm_opt_container");e.html(d);var f=e.children("input"),h=f.val();xa(e);""===d||""===h?P(a,!0):ya(a,c,f)}else e="field_"+a.fieldKey,""!==a.repeatRow&&(e+="-"+a.repeatRow),e=document.getElementById(e),e.value=d,B(a.containerId,a.formId)&&H(a.containerId,
34
- a.formId),u(jQuery(e))}})}function Pa(a,b){var c=jQuery("#"+a.containerId),d=c.find('select[name^="item_meta"], textarea[name^="item_meta"], input[name^="item_meta"]'),e=Va(d),d=d.data("frmval");wa(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,prev_val:e,nonce:frm_js.nonce},success:function(b){var d=c.find(".frm_opt_container");
35
- d.html(b);var e=d.find("select, input, textarea");xa(d);""===b||1==e.length&&"hidden"==e.attr("type")?P(a,!0):ya(a,c,e)}})}function wa(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 Ua(a,b){if(!(-1<a.innerHTML.indexOf("frm-loading-img"))){b.style.display="none";var c=document.createElement("span");c.setAttribute("class","frm-loading-img");a.insertBefore(c,b.nextSibling)}}function xa(a){a.next(".frm-loading-img").remove();
36
- a.show()}function Va(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 ya(a,b,c){B(a.containerId,a.formId)&&(H(a.containerId,a.formId),b.show());c.hasClass("frm_chzn")&&Z();u(c)}function L(a,b){if("undefined"!==typeof __FRMCALC){var c=__FRMCALC,d=c.fields[a];if("undefined"!==typeof d)for(var d=d.total,e=[],f=0,h=d.length;f<h;f++){var g;g=c.calc[d[f]];var k=b.attr("name"),
37
- m=!1,l=g.field_id,n=D(g.form_id);1>n.length||("0"===g.inSection&&"0"===g.inEmbedForm?m=J(l,n):(k=F(k),J(l,n)?m=!0:za(l,k,n)?m=!0:"0"!==g.inSection&&"0"!==g.inEmbedForm?m=za(g.inSection,k,n):"0"!==g.inSection?m=J(g.inSection,n):"0"!==g.inEmbedForm&&(m=J(g.inEmbedForm,n))));g=m;!1===g&&W(c,d[f],e,b)}}}function J(a,b){return-1<b.indexOf("frm_field_"+a+"_container")}function za(a,b,c){var d=!1;b.repeatingSection&&(a="frm_field_"+a+"-"+b.repeatingSection,a+="-"+b.repeatRow+"_container",d=-1<c.indexOf(a));
38
- return d}function W(a,b,c,d){var e=a.calc[b],f=e.calc,h=jQuery(document.getElementById("field_"+b)),g={triggerField:d,inSection:!1,thisFieldCall:'input[id^="field_'+b+'-"]'};1>h.length&&"undefined"!==typeof d&&(g.inSection=!0,g.thisFieldId=Wa(a.fieldsWithCalc,b),h=Aa(g));if(!(1>h.length)){f=Xa(e,f,a,c,g);if("text"!=e.calc_type){a=e.calc_dec;f.indexOf(").toFixed(")&&(c=f.split(").toFixed("),Ba(c[1])&&(a=c[1],f=f.replace(").toFixed("+a,"")));f=parseFloat(eval(f));if("undefined"===typeof f||isNaN(f))f=
39
- 0;Ba(a)&&(f=f.toFixed(a))}h.val()!=f&&(h.val(f),u(h,b))}}function Xa(a,b,c,d,e){for(var f=0,h=a.fields.length;f<h;f++){var g={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"==g.thisField.type||"select"==g.thisField.type?g.thisFieldCall=g.thisFieldCall+":checked,select"+k.fieldKeys[g.thisFieldId]+" option:selected,"+g.thisFieldCall+"[type=hidden]":
40
- "radio"==g.thisField.type||"scale"==g.thisField.type?g.thisFieldCall=g.thisFieldCall+":checked,"+g.thisFieldCall+"[type=hidden]":"textarea"==g.thisField.type&&(g.thisFieldCall=g.thisFieldCall+",textarea"+k.fieldKeys[g.thisFieldId]);if("text"==a.calc_type)g.valKey="text"+g.valKey,d=Ya(g,d),"undefined"===typeof d[g.valKey]&&(d[g.valKey]="");else{g.valKey="num"+g.valKey;d=Za(g,c,d);if("undefined"===typeof d[g.valKey]||isNaN(d[g.valKey]))d[g.valKey]=0;"date"==g.thisField.type&&0===d[g.valKey]&&(b="")}k=
41
- "["+g.thisFieldId+"]";k=k.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1");b=b.replace(new RegExp(k,"g"),d[g.valKey])}return b}function Za(a,b,c){if("undefined"!==typeof c[a.valKey]&&0!==c[a.valKey])return c;c[a.valKey]=0;var d=Ca(a);if(!1===d)return c;d.each(function(){var d=Da(a.thisField,this);if("date"==a.thisField.type){var f;f=b.date;var h=0;if(d)if("undefined"===typeof jQuery.datepicker){h="-";-1<f.indexOf("/")&&(h="/");f=f.split(h);var d=d.split(h),g,k;g=h=k="";for(var m=0;m<f.length;m++)if("y"==
42
- f[m])g=((new Date).getFullYear()+15).toString().substr(2,2),g=d[m]>g?"19"+d[m]:"20"+d[m];else if("yy"==f[m])g=d[m];else if("m"==f[m]||"mm"==f[m])h=d[m],2>h.length&&(h="0"+h);else if("d"==f[m]||"dd"==f[m])k=d[m],2>k.length&&(k="0"+k);h=Date.parse(g+"-"+h+"-"+k)}else h=jQuery.datepicker.parseDate(f,d);f=h;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}});
43
- return c}function Ya(a,b){if("undefined"!==typeof b[a.valKey]&&""!==b[a.valKey])return b;b[a.valKey]="";var c=Ca(a);if(!1===c)return b;c.each(function(){var c=Da(a.thisField,this),c=c.trim();b[a.valKey]+=c});return b}function Ca(a){var b;if(!1===a.inSection)b=jQuery(a.thisFieldCall);else if(b=Aa(a),null===b||"undefined"===typeof b)b=jQuery(a.thisFieldCall);if(null===b||"undefined"===typeof b||1>b.length)b=!1;return b}function Aa(a){if("undefined"===typeof a.triggerField)return null;var b=a.triggerField.closest(".frm_repeat_sec, .frm_repeat_inline, .frm_repeat_grid");
44
- return b.length?(a=a.thisFieldCall.replace("[id=","[id^="),b.find(a)):null}function Da(a,b){var c;c=!1;if("hidden"==b.type)""!==aa(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=aa(b))):c=jQuery(b).closest(".frm_other_container").find(".frm_other_input").val():
45
- "checkbox"!=a.type&&"radio"!=a.type||"hidden"==b.type||(c=aa(b))):c="checkbox"!==b.type&&"radio"!==b.type||!b.checked?jQuery(b).val():b.value;"undefined"===typeof c&&(c="");return c}function aa(a){var b="";a=document.getElementById(a.id+"-otext");null!==a&&""!==a.value&&(b=a.value);return b}function Ea(a){var b=!1;a=jQuery(a).find(".frm_saving_draft");a.length&&(b=a.val());return b}function Fa(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();
46
- 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 fa(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=$a(c)),
47
- e=c;else{e=a.className;if(-1!==e.indexOf("frm_pos_none"))return b;d=jQuery(a).val();if("string"!==typeof d)for(var c=d,d="",f=0;f<c.length;f++)""!==c[f]&&(d=c[f]);e=-1===e.indexOf("frm_other_input")?q(a,!0):q(a,!1)}""===d&&(""===e&&(e=q(a,!0)),e in b||(b[e]=E(a,"data-reqmsg")));return b}function $a(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 ga(a,b,c){var d=a.value,e=q(a,!0);if(e in
48
- b)return b;var f=0===e.indexOf("conf_");if(""!==d||f){var h=/^(([^<>()\[\]\\.,;:\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,g=E(a,"data-invmsg");""!==d&&!1===h.test(d)?(b[e]=g,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 ha(a,b){var c=a.value;""!==c&&!1!==isNaN(c/1)&&(c=q(a,!0),c in b||(b[c]=E(a,
49
- "data-invmsg")));return b}function ia(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 ab(a,b){jQuery(a).find('input[type="submit"], input[type="button"]').attr("disabled","disabled");"undefined"==typeof b&&jQuery(a).find('input[name="frm_action"]').val();jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:jQuery(a).serialize()+
50
- "&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)window.location=b.redirect;else if(""!==b.content){jQuery(a).find(".frm_ajax_loading").removeClass("frm_loading_now");var e=jQuery(a).find('input[name="form_id"]').val();jQuery(a).closest("#frm_form_"+e+"_container").replaceWith(b.content);frmFrontForm.scrollMsg(e);"function"==
51
- 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));e=jQuery(a).find('input[name="id"]');e.length&&jQuery(document.getElementById("frm_edit_"+e.val())).find("a").addClass("frm_ajax_edited").click();jQuery(b.content).find(".frm_message").length&&ba("pageLoad");ca()}else if(Object.keys(b.errors).length){jQuery(a).find('input[type="submit"], input[type="button"]').removeAttr("disabled");
52
- jQuery(a).find(".frm_ajax_loading").removeClass("frm_loading_now");d=!0;Ga();var f=!1,h;for(e in b.errors)if(h=jQuery(a).find("#frm_field_"+e+"_container"),h.length){if(!h.is(":visible")){var g=h.closest(".frm_toggle_container");g.length&&(g=g.prev(),g.hasClass("frm_trigger")||(g=g.prev(".frm_trigger")),g.click())}h.is(":visible")&&(M(h,e,b.errors),d=!1,h=jQuery(a).find("#frm_field_"+e+"_container .frm-g-recaptcha, #frm_field_"+e+"_container .g-recaptcha"),h.length&&(f=!0,h=h.data("rid"),jQuery().grecaptcha&&
53
- (h?grecaptcha.reset(h):grecaptcha.reset())))}Ha(a);!0!==f&&Ia(a,!1);d?a.submit():jQuery(a).prepend(b.error_message)}else bb(a),Ia(a,!0),a.submit()},error:function(){jQuery(a).find('input[type="submit"], input[type="button"]').removeAttr("disabled");a.submit()}})}function M(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 Ga(){jQuery(".form-field").removeClass("frm_blank_field");
54
- jQuery(".form-field .frm_error").replaceWith("");jQuery(".frm_error_style").remove()}function Ha(a){var b=jQuery(a).find(".frm_blank_field:first");b.length&&frmFrontForm.scrollMsg(b,a,!0)}function bb(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 Ia(a,b){var c=jQuery(a).find(".frm-g-recaptcha, .g-recaptcha");c.length&&(!b||1>jQuery(a).find(".frm_next_page").length||
55
- 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 cb(){Ja(jQuery(this),"clear")}function db(){Ja(jQuery(this),"replace")}function Ja(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 eb(){var a=
56
- 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 fb(a,b){google.load("visualization","1.0",{packages:[b],callback:function(){if("table"==b){var c=new google.visualization.DataTable,d=!1;-1!==jQuery.inArray("id",a.options.fields)&&(d=!0,c.addColumn("number",frm_js.id));
57
- for(var e=a.fields.length,f,h=0,g=e;h<g;h++){var k=a.fields[h];f=Ka(k);c.addColumn(f,k.name)}h=!1;a.options.edit_link&&(h=!0,c.addColumn("string",a.options.edit_link));g=!1;a.options.delete_link&&(g=!0,c.addColumn("string",a.options.delete_link));if(null!==a.entries){var m=a.entries.length;c.addRows(m);for(var l=0,n=0;n<m;n++){var k=0,p=a.entries[n];d&&(c.setCell(l,k,p.id),k++);for(var q=0,r=e;q<r;q++){var t=a.fields[q];f=Ka(t);t=p.metas[t.id];"number"!=f||null!==t&&""!==t?"boolean"==f&&(t=null===
58
- t||"false"==t||!1===t?!1:!0):t=0;c.setCell(l,k,t);k++}h&&("undefined"!==typeof p.editLink?c.setCell(l,k,'<a href="'+p.editLink+'">'+a.options.edit_link+"</a>"):c.setCell(l,k,""),k++);g&&("undefined"!==typeof p.deleteLink?c.setCell(l,k,'<a href="'+p.deleteLink+'" class="frm_delete_link" data-frmconfirm="'+a.options.confirm+'">'+a.options.delete_link+"</a>"):c.setCell(l,k,""));l++}}else for(c.addRows(1),h=k=0,g=e;h<g;h++)0<k?c.setCell(0,k,""):c.setCell(0,k,a.options.no_entries),k++;(new google.visualization.Table(document.getElementById("frm_google_table_"+
59
- a.options.form_id))).draw(c,a.graphOpts)}else gb(a)}})}function Ka(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 gb(a){var b=new google.visualization.DataTable,c=!1,d=!1,e=a.rows.length;if(0<e)if("table"==a.type){c=!0;b.addRows(a.rows[e-1][0]+1);for(var f=0;f<e;f++)b.setCell(a.rows[f])}else if("undefined"!=
60
- typeof a.rows[0].tooltip)for(var d=c=!0,h=0;h<e;h++){f=a.rows[h].tooltip;delete a.rows[h].tooltip;var g=Object.keys(a.rows[h]).map(function(b){return a.rows[h][b]});a.rows[h]=g;a.rows[h].push(f)}e=a.cols.length;if(c){if(0<e)for(c=0;c<e;c++)f=a.cols[c],b.addColumn(f.type,f.name);d&&(b.addColumn({type:"string",role:"tooltip"}),b.addRows(a.rows))}else{b=[[]];for(d=0;d<e;d++)b[0].push(a.cols[d].name);b=b.concat(a.rows);b=google.visualization.arrayToDataTable(b)}d=a.type.charAt(0).toUpperCase()+a.type.slice(1)+
61
- "Chart";(new google.visualization[d](document.getElementById("chart_"+a.graph_id))).draw(b,a.options)}function hb(){var a="frm_section_"+jQuery(this).data("parent")+"-"+jQuery(this).data("key"),b=jQuery(document.getElementById(a)),c=b.find("input, select, textarea");b.fadeOut("slow",function(){b.remove();c.each(function(){if("file"!=this.type){var a=q(this,!1);L(a,jQuery(this))}});"function"==typeof frmThemeOverride_frmRemoveRow&&frmThemeOverride_frmRemoveRow(a,b)});return!1}function ib(){if(!0===
62
- K)return!1;K=!0;var a=jQuery(this).data("parent"),b=0;if(0<jQuery(".frm_repeat_"+a).length)var c=jQuery(".frm_repeat_"+a+":last").attr("id").replace("frm_section_"+a+"-",""),b=-1<c.indexOf("i")?1:1+parseInt(c);jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_add_form_row",field_id:a,i:b,nonce:frm_js.nonce},success:function(c){var e=c.html,f=jQuery(e).hide().fadeIn("slow");jQuery(".frm_repeat_"+a+":last").after(f);var h=["other"],g,k,m={repeatingSection:a.toString(),repeatRow:b.toString()};
63
- jQuery(e).find("input, select, textarea").each(function(){if("file"!=this.type){if(""===this.name)return!0;g=this.name.replace("item_meta[","").split("]")[2].replace("[","");-1==jQuery.inArray(g,h)&&!1!==this.id&&""!==this.id&&(k=jQuery("#"+this.id),h.push(g),G(g,m),Y(g,m,"value changed"),da(g,k),ea(g,k,"value changed"),L(g,k))}});La();Z();"function"==typeof frmThemeOverride_frmAddRow&&frmThemeOverride_frmAddRow(a,c);K=!1},error:function(){K=!1}});return!1}function jb(){var a=jQuery(this),b=a.data("entryid"),
64
- c=a.data("prefix"),d=a.data("pageid"),e=a.data("formid"),f=a.data("cancel"),h=a.data("fields"),g=a.data("excludefields"),k=jQuery(document.getElementById(c+b)),m=k.html();k.html('<span class="frm-loading-img" id="'+c+b+'"></span><div class="frm_orig_content" style="display:none">'+m+"</div>");jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:d,entry_id:b,id:e,nonce:frm_js.nonce,fields:h,exclude_fields:g},success:function(b){k.children(".frm-loading-img").replaceWith(b);
65
- a.removeClass("frm_inplace_edit").addClass("frm_cancel_edit");a.html(f);ba("editInPlace");ca()}});return!1}function kb(){var a=jQuery(this),b=a.data("entryid"),c=a.data("prefix"),d=a.data("edit");a.hasClass("frm_ajax_edited")||(b=jQuery(document.getElementById(c+b)),b.children(".frm_forms").replaceWith(""),b.children(".frm_orig_content").fadeIn("slow").removeClass("frm_orig_content"));a.removeClass("frm_cancel_edit").addClass("frm_inplace_edit");a.html(d);return!1}function lb(){var a=jQuery(this),
66
- 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){"success"==a.replace(/^\s+|\s+$/g,"")?(jQuery(document.getElementById(d+c)).fadeOut("slow"),jQuery(document.getElementById("frm_delete_"+c)).fadeOut("slow")):jQuery(document.getElementById("frm_delete_"+c)).replaceWith(a)}})}return!1}
67
- function ca(){"undefined"!==typeof __frmHideFields&&frmFrontForm.hidePreviouslyHiddenFields();jQuery(document).on("focusin",".frm_date",r);if("undefined"!==typeof __frmUniqueTimes)for(var a=__frmUniqueTimes,b=0;b<a.length;b++)jQuery(document.getElementById(a[b].dateID)).change(p);if("undefined"!==typeof __frmMasks)for(a=__frmMasks,b=0;b<a.length;b++)jQuery(a[b].trigger).attr("data-frmmask",a[b].mask);La();Z();"undefined"!==typeof __frmDepDynamicFields&&frmFrontForm.checkDependentDynamicFields(__frmDepDynamicFields);
68
- "undefined"!==typeof __frmDepLookupFields&&frmFrontForm.checkDependentLookupFields(__frmDepLookupFields);if("undefined"!==typeof __FRMCALC){(a=__FRMCALC.triggers)&&jQuery(a.join()).trigger({type:"change",selfTriggered:!0});var a=__FRMCALC.calc,b=[],c;for(c in a)if(1>a[c].fields.length){var d=document.getElementById("field_"+c);null===d||S(d,a[c].form_id)||W(__FRMCALC,c,b)}}if("undefined"!==typeof __frmDropzone)for(c=__frmDropzone,a=0;a<c.length;a++)x(a)}function Z(){if(jQuery().chosen){var a={allow_single_deselect:!0};
69
- "undefined"!==typeof __frmChosen&&(a="{"+__frmChosen+"}");jQuery(".frm_chzn").chosen(a)}}function La(){if(jQuery().rating){var a=jQuery(".star");a.length&&a.rating()}}function ba(a){"undefined"!==typeof __frmHideOrShowFields&&frmFrontForm.hideOrShowFields(__frmHideOrShowFields,a)}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 F(a){var b={repeatingSection:"",repeatRow:""};"undefined"!==typeof a&&3<=
70
- a.split("][").length&&(a=a.split("]["),b.repeatingSection=a[0].replace("item_meta[",""),b.repeatRow=a[1]);return b}function Ma(a){a.fadeOut("slow",function(){a.remove()})}function mb(){var a=jQuery(this).data("frmconfirm");return confirm(a)}function nb(){var a=jQuery(this).data("frmtoggle");jQuery(a).is(":visible")?jQuery(a).slideUp("fast"):jQuery(a).slideDown("fast");return!1}function Wa(a,b){for(var c in a)if(a.hasOwnProperty(c)&&a[c]===b)return c;return null}function Ba(a){return!jQuery.isArray(a)&&
71
- 0<=a-parseFloat(a)+1}function ob(){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 pb(){"function"!==typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})}function qb(){Array.prototype.filter||(Array.prototype.filter=function(a,b){if(void 0===this||null===this)throw new TypeError;var c=
72
- Object(this),d=c.length>>>0;if("function"!==typeof a)throw new TypeError;for(var e=[],f=0;f<d;f++)if(f in c){var h=c[f];a.call(b,h,f,c)&&e.push(h)}return e})}function rb(){Object.keys||(Object.keys=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b})}var K=!1,C="",w=[];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",n);
73
- var a=jQuery(".frm_blank_field");a.length&&a.closest(".frm_toggle_container").prev(".frm_trigger").click();jQuery.isFunction(jQuery.fn.placeholder)?jQuery(".frm-show-form input, .frm-show-form textarea").placeholder():jQuery(".frm-show-form input[onblur], .frm-show-form textarea[onblur]").each(function(){""===jQuery(this).val()&&jQuery(this).blur()});jQuery(document).on("focus",".frm_toggle_default",cb);jQuery(document).on("blur",".frm_toggle_default",db);jQuery(".frm_toggle_default").blur();jQuery(document.getElementById("frm_resend_email")).click(eb);
74
- jQuery(document).on("click",".frm_remove_link",z);jQuery(document).on("focusin","input[data-frmmask]",function(){jQuery(this).mask(jQuery(this).data("frmmask").toString())});jQuery(document).on("change",'.frm-show-form input[name^="item_meta"], .frm-show-form select[name^="item_meta"], .frm-show-form textarea[name^="item_meta"]',A);jQuery(document).on("click",'.frm-show-form input[type="submit"], .frm-show-form input[name="frm_prev_page"], .frm-show-form .frm_save_draft',l);jQuery(document).on("change",
75
- '.frm_other_container input[type="checkbox"], .frm_other_container input[type="radio"], .frm_other_container select',v);jQuery(document).on("click",".frm_remove_form_row",hb);jQuery(document).on("click",".frm_add_form_row",ib);jQuery(document).on("click","a[data-frmconfirm]",mb);jQuery("a[data-frmtoggle]").click(nb);jQuery(".frm_edit_link_container").on("click","a.frm_inplace_edit",jb);jQuery(".frm_edit_link_container").on("click","a.frm_cancel_edit",kb);jQuery(document).on("click",".frm_ajax_delete",
76
- lb);jQuery(".frm_month_heading, .frm_year_heading").click(function(){var a=jQuery(this).children(".ui-icon-triangle-1-e, .ui-icon-triangle-1-s");a.hasClass("ui-icon-triangle-1-e")?(a.addClass("ui-icon-triangle-1-s").removeClass("ui-icon-triangle-1-e"),jQuery(this).next(".frm_toggle_container").fadeIn("slow")):(a.addClass("ui-icon-triangle-1-e").removeClass("ui-icon-triangle-1-s"),jQuery(this).next(".frm_toggle_container").hide())});ba("pageLoad");ca();ob();pb();qb();rb()},submitForm:function(a){var b=
77
- this.classList;b&&!b.contains("frm_pro_form")||jQuery("body").hasClass("wp-admin")||(a.preventDefault(),a=frmFrontForm.validateFormSubmit(this),0===Object.keys(a).length&&(jQuery(this).find(".frm_ajax_loading").addClass("frm_loading_now"),b.contains("frm_ajax_submit")?(C=jQuery(this).find('input[name="frm_action"]').val(),frmFrontForm.checkFormErrors(this,C)):this.submit()))},validateFormSubmit:function(a){"undefined"!=typeof tinyMCE&&jQuery(this).find(".wp-editor-wrap").length&&tinyMCE.triggerSave();
78
- w=[];var b=jQuery(a).hasClass("frm_js_validate");b&&(Ea(a)||Fa(a))&&(b=!1);b&&(frmFrontForm.getAjaxFormErrors(a),Object.keys(w).length&&frmFrontForm.addAjaxFormErrors(a));return w},getAjaxFormErrors:function(a){var b=[],c=jQuery(a).find(".frm_required_field:visible input, .frm_required_field:visible select, .frm_required_field:visible textarea").filter(":not(.frm_optional)");if(c.length)for(var d=0,e=c.length;d<e;d++)b=fa(c[d],b);c=jQuery(a).find("input[type=email]").filter(":visible");d=jQuery(a).find("input,select,textarea");
79
- if(d.length)for(var e=0,f=d.length;e<f;e++){var h=d[e];""!==h.value&&"hidden"!=h.type&&("number"==h.type?b=ha(h,b):"email"==h.type?b=ga(h,b,c):null!==h.pattern&&(b=ia(h,b)))}c=jQuery(a).find(".frm-g-recaptcha");c.length&&(d=c.data("rid"),0===grecaptcha.getResponse(d).length&&(c=c.closest(".frm_form_field").attr("id").replace("frm_field_","").replace("_container",""),b[c]=""));w=b;if("function"==typeof frmThemeOverride_jsErrors&&(C=jQuery(a).find('input[name="frm_action"]').val(),a=frmThemeOverride_jsErrors(C,
80
- a),Object.keys(a).length))for(var g in a)w[g]=a[g];return w},addAjaxFormErrors:function(a){Ga();for(var b in w){var c=jQuery(a).find("#frm_field_"+b+"_container");c.length?M(c,b,w):delete w[b]}Ha(a)},checkFormErrors:function(a,b){ab(a,b)},scrollToID:function(a){a=jQuery(document.getElementById(a));frmFrontForm.scrollMsg(a,!1)},scrollMsg:function(a,b,c){if(a=("undefined"==typeof b?jQuery(document.getElementById("frm_form_"+a+"_container")):"string"==typeof a?jQuery(b).find("#frm_field_"+a+"_container"):
81
- a).offset().top){a-=frm_js.offset;b=jQuery("html").css("margin-top");var d=jQuery("body").css("margin-top");if(b||d)a=a-parseInt(b)-parseInt(d);if(a&&window.innerHeight&&(b=document.documentElement.scrollTop||document.body.scrollTop,a>b+window.innerHeight||a<b))return"undefined"===typeof c?jQuery(window).scrollTop(a):jQuery("html,body").animate({scrollTop:a},500),!1}},savingDraft:function(a){return Ea(a)},goingToPreviousPage:function(a){return Fa(a)},hideOrShowFields:function(a,b){if("pageLoad"===
82
- b){var c=document.querySelectorAll('[id^="frm_hide_fields_"]');X(c)}for(var c={repeatingSection:"",repeatRow:""},d=0,e=a.length;d<e;d++)G(a[d],c)},hidePreviouslyHiddenFields:function(){var a;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_",""),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:"",
83
- repeatRow:""},c=0,d=a.length;c<d;c++)G(a[c],b)},checkDependentLookupFields:function(a){for(var b,c={repeatingSection:"",repeatRow:""},d=0,e=a.length;d<e;d++)b=a[d],Y(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++)for(var d=a[b[c]],e=b[c],f=0;f<d.length;f++)fb(d[f],e);else setTimeout(frmFrontForm.loadGoogle,30)},removeUsedTimes:function(a,b){var c=jQuery(a).parents("form:first").find('input[name="id"]');
84
- jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_fields_ajax_time_options",time_field:b,date_field:a.id,entry_id:c?c.val():"",date:jQuery(a).val(),nonce:frm_js.nonce},success:function(a){var c=jQuery(document.getElementById(b));c.find("option").removeAttr("disabled");if(a&&""!==a)for(var f in a)c.find('option[value="'+f+'"]').attr("disabled","disabled")}})},escapeHtml:function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,
85
- "&#039;")},invisible:function(a){jQuery(a).css("visibility","hidden")},visible:function(a){jQuery(a).css("visibility","visible")}}}var frmFrontForm=frmFrontFormJS();jQuery(document).ready(function(l){frmFrontForm.init()});function frmRecaptcha(){for(var l=jQuery(".frm-g-recaptcha"),n=0,p=l.length;n<p;n++){var r=grecaptcha.render(l[n].id,{sitekey:l[n].getAttribute("data-sitekey"),size:l[n].getAttribute("data-size"),theme:l[n].getAttribute("data-theme")});l[n].setAttribute("data-rid",r)}}
 
86
  function frmUpdateField(l,n,p,r,x){jQuery(document.getElementById("frm_update_field_"+l+"_"+n)).html('<span class="frm-loading-img"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_update_field_ajax",entry_id:l,field_id:n,value:p,nonce:frm_js.nonce},success:function(){""===r.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById("frm_update_field_"+l+"_"+n+"_"+x)).fadeOut("slow"):jQuery(document.getElementById("frm_update_field_"+l+"_"+n+"_"+x)).replaceWith(r)}})}
87
  function frmEditEntry(l,n,p,r,x,y){console.warn("DEPRECATED: function frmEditEntry in v2.0.13 use frmFrontForm.editEntry");var z=jQuery(document.getElementById("frm_edit_"+l)),v=z.html(),A=jQuery(document.getElementById(n+l)),q=A.html();A.html('<span class="frm-loading-img" id="'+n+l+'"></span><div class="frm_orig_content" style="display:none">'+q+"</div>");jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:p,entry_id:l,id:r,nonce:frm_js.nonce},
88
- success:function(q){A.children(".frm-loading-img").replaceWith(q);z.replaceWith('<span id="frm_edit_'+l+'"><a onclick="frmCancelEdit('+l+",'"+n+"','"+frmFrontForm.escapeHtml(v)+"',"+p+","+r+",'"+y+'\')" class="'+y+'">'+x+"</a></span>")}})}
89
  function frmCancelEdit(l,n,p,r,x,y){console.warn("DEPRECATED: function frmCancelEdit in v2.0.13 use frmFrontForm.cancelEdit");var z=jQuery(document.getElementById("frm_edit_"+l)),v=z.find("a"),A=v.html();v.hasClass("frm_ajax_edited")||(v=jQuery(document.getElementById(n+l)),v.children(".frm_forms").replaceWith(""),v.children(".frm_orig_content").fadeIn("slow").removeClass("frm_orig_content"));z.replaceWith('<a id="frm_edit_'+l+'" class="frm_edit_link '+y+'" href="javascript:frmEditEntry('+l+",'"+
90
- n+"',"+r+","+x+",'"+frmFrontForm.escapeHtml(A)+"','"+y+"')\">"+p+"</a>")}
91
  function frmDeleteEntry(l,n){console.warn("DEPRECATED: function frmDeleteEntry in v2.0.13 use frmFrontForm.deleteEntry");jQuery(document.getElementById("frm_delete_"+l)).replaceWith('<span class="frm-loading-img" id="frm_delete_'+l+'"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_destroy",entry:l,nonce:frm_js.nonce},success:function(p){"success"==p.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById(n+l)).fadeOut("slow"):jQuery(document.getElementById("frm_delete_"+
92
- l)).replaceWith(p)}})}function frmOnSubmit(l){console.warn("DEPRECATED: function frmOnSubmit in v2.0 use frmFrontForm.submitForm");frmFrontForm.submitForm(l,this)}
93
  function frm_resend_email(l,n){console.warn("DEPRECATED: function frm_resend_email in v2.0");$link=jQuery(document.getElementById("frm_resend_email"));$link.append('<span class="spinner" style="display:inline"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_send_email",entry_id:l,form_id:n,nonce:frm_js.nonce},success:function(l){$link.replaceWith(l)}})};
1
  function frmFrontFormJS(){function l(a){var b=jQuery(this),c=b.attr("type");"submit"!==c&&a.preventDefault();a=b.parents("form:first");var d=b="",e=this.name;if("frm_prev_page"===e||-1!==this.className.indexOf("frm_prev_page"))b=jQuery(a).find(".frm_next_page").attr("id").replace("frm_next_p_","");else if("frm_save_draft"===e||-1!==this.className.indexOf("frm_save_draft"))d=1;jQuery(".frm_next_page").val(b);jQuery(".frm_saving_draft").val(d);"submit"!==c&&a.trigger("submit")}function n(){jQuery(this).parent().children(".frm_toggle_container").slideToggle("fast");
2
+ 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")}function p(){for(var a=__frmUniqueTimes,b=0;b<a.length;b++)a[b].dateID==this.id&&frmFrontForm.removeUsedTimes(this,a[b].timeID)}function r(){if(-1===this.className.indexOf("frm_custom_date")&&"undefined"!==typeof __frmDatepicker){var a=__frmDatepicker,b=this.id,c=b.split("-");c.pop();c='input[id^="'+c.join("-")+'"]';jQuery.datepicker.setDefaults(jQuery.datepicker.regional[""]);
3
+ for(var d=0,e=0;e<a.length;e++)if(a[e].triggerID=="#"+b||a[e].triggerID==c)d=e;""!==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],a[d].options))}}function x(a){var b=__frmDropzone,c=jQuery("#"+b[a].htmlID),d=b[a].maxFiles;if("undefined"!==typeof b[a].mockFiles){var e=b[a].mockFiles.length;0<d&&(d-=e)}var e=c.closest("form"),f=e.find('input[type="submit"], .frm_submit input[type="button"]'),
4
+ h=e.find(".frm_ajax_loading");c.dropzone({url:frm_js.ajax_url,addRemoveLinks:!0,paramName:b[a].paramName,maxFilesize:b[a].maxFilesize,maxFiles:d,acceptedFiles:b[a].acceptedFiles,uploadMultiple:b[a].uploadMultiple,dictCancelUpload:b[a].cancel,dictCancelUploadConfirmation:b[a].cancelConfirm,dictRemoveFile:b[a].remove,dictMaxFilesExceeded:b[a].maxFilesExceeded,fallback:function(){jQuery(this.element).closest("form").removeClass("frm_ajax_submit")},init:function(){this.on("sending",function(c,d,e){e.append("action",
5
+ "frm_submit_dropzone");e.append("field_id",b[a].fieldID);e.append("form_id",b[a].formID)});this.on("success",function(c,d){for(var e=jQuery.parseJSON(d),f=0;f<e.length;f++)!0!==b[a].uploadMultiple&&jQuery('input[name="'+b[a].fieldName+'"]').val(e[f])});this.on("successmultiple",function(c,d){for(var e=jQuery.parseJSON(d),f=0;f<c.length;f++)jQuery(c[f].previewElement).append(y(b[a],e[f]))});this.on("removedfile",function(c){!0!==b[a].uploadMultiple&&jQuery('input[name="'+b[a].fieldName+'"]').val("")});
6
+ this.on("complete",function(c){b[a].uploadMultiple&&"undefined"!==typeof c.mediaID&&jQuery(c.previewElement).append(y(b[a],c.mediaID))});this.on("addedfile",function(){h.addClass("frm_loading_now");f.attr("disabled","disabled")});this.on("queuecomplete",function(){h.removeClass("frm_loading_now");f.removeAttr("disabled")});this.on("removedfile",function(c){"undefined"!==typeof c.mediaID&&(jQuery(c.previewElement).remove(),this.options.maxFiles=b[a].maxFiles-this.files.length)});if("undefined"!==typeof b[a].mockFiles)for(var c=
7
+ 0;c<b[a].mockFiles.length;c++){var d={name:b[a].mockFiles[c].name,size:b[a].mockFiles[c].size,mediaID:b[a].mockFiles[c].id};this.emit("addedfile",d);this.emit("thumbnail",d,b[a].mockFiles[c].url);this.emit("complete",d);this.files.push(d)}}})}function y(a,b){return'<input name="'+a.fieldName+'[]" type="hidden" value="'+b+'" data-frmfile="'+a.fieldID+'" />'}function z(){var a=jQuery(this).data("frm-remove");Ma(jQuery(this).parent(".dz-preview"));a=jQuery('input[name="'+a+'"]');a.length&&a.val("")}
8
+ function v(){var a=this.type,b=!1,c=!1;if("select-one"===a)c=!0,"frm_other_trigger"===this.options[this.selectedIndex].className&&(b=!0);else if("select-multiple"===a)for(var c=!0,d=this.options,b=!1,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")&&(a[0].className+=" frm_pos_none"),a[0].value=""))):
9
+ "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(""))}function A(a){var b=q(this,!1);if(b&&
10
+ "undefined"!==typeof b&&(!a.frmTriggered||a.frmTriggered!=b)){da(b,jQuery(this));a="undefined"!==typeof a.originalEvent||-1<a.currentTarget.className.indexOf("frm_chzn")?"value changed":"other";ea(b,jQuery(this),a);L(b,jQuery(this));b=[];a=jQuery(this).closest(".frm_form_field");a.hasClass(".frm_required_field")&&!jQuery(this).hasClass(".frm_optional")&&(b=fa(this,b));if(1>b.length)if("email"==this.type)var c=jQuery(this).closest("form").find("input[type=email]"),b=ga(this,b,c);else"number"==this.type?
11
+ b=ha(this,b):null!==this.pattern&&(b=ia(this,b));a.removeClass("frm_blank_field");a.find(".frm_error").remove();if(0<Object.keys(b).length)for(var d in b)M(a,d,b)}}function q(a,b){var c="",c=a instanceof jQuery?a.attr("name"):a.name;if(""===c)return c=a instanceof jQuery?a.data("name"):a.getAttribute("data-name"),""!==c&&c?c:0;c=c.replace("item_meta[","").replace("[]","").split("]");if(1>c.length)return 0;var c=c.filter(function(a){return""!==a}),d=c[0],e=!1;if(1===c.length||"[form"==c[1]||"[id"==
12
+ c[1])return d;if(jQuery('input[name="item_meta['+d+'][form]"]').length){if(2===c.length&&"[0"==c[1])return 0;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]+"-"+c[1].replace("[",""));return d}function da(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=F(b[0].name),e=0,f=c.dependents.length;e<
13
+ f;e++)G(c.dependents[e],d)}function G(a,b){var c=N(a);if(!(!1===c||1>c.conditions.length)){var d;d=[];if(c.isRepeating)if(""!==b.repeatingSection){var e="frm_field_"+c.fieldId+"-",e=e+(b.repeatingSection+"-"+b.repeatRow+"_container");d.push(e)}else if("0"!==c.inEmbedForm)d=O(c),d=["frm_field_"+c.fieldId+"-"+d+"-0_container"];else if(d=[],e=O(c),null!==document.getElementById("frm_field_"+e+"_container"))for(var e=document.querySelectorAll(".frm_field_"+c.fieldId+"_container"),f=0,h=e.length;f<h;f++)d.push(e[f].id);
14
+ else if(d=[],e=O(c),e="frm_field_"+c.fieldId+"-"+e+"-",f=document.querySelectorAll('[id^="field_'+c.inSectionKey+'-rowid-"]'),1>f.length)d.push(e+"0_container");else for(var g=0,k=f.length;g<k;g++)h=f[g].id.split("-"),3==h.length&&d.push(e+h[2]+"_container");else d.push("frm_field_"+c.fieldId+"_container");e=d.length;for(f=0;f<e;f++)c.containerId=d[f],ja(c,d[f]),ka(c)}}function O(a){var b="";"0"!==a.inEmbedForm?b=a.inEmbedForm:"0"!==a.inSection&&(b=a.inSection);return b}function ja(a,b){if(a.isRepeating){var c=
15
+ b.replace("_container","").split("-");a.repeatRow=c[2]}else a.repeatRow=""}function ka(a){for(var b=[],c=a.conditions.length,d=0;d<c;d++)b.push(Na(a.conditions[d],a));c=C="any"==a.anyAll?-1<b.indexOf(!0)?a.showHide:la(a.showHide):-1<b.indexOf(!1)?la(a.showHide):a.showHide;b=null!==document.getElementById(a.containerId);"show"==c?"data"==a.fieldType&&a.hasOwnProperty("dataLogic")?(a={fieldId:a.fieldId,fieldKey:a.fieldKey,formId:a.formId,containerId:a.containerId,repeatRow:a.repeatRow,dataLogic:{actualValue:a.dataLogic.actualValue,
16
+ fieldId:a.dataLogic.fieldId},children:"",inputType:a.inputType},"data"==a.inputType?Oa(a,b):b&&Pa(a)):!1!==B(a.containerId,a.formId)&&(H(a.containerId,a.formId),b?(b=ma(a.containerId),na(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId),jQuery("#"+a.containerId).show()):(b=oa(a),na(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId))):P(a,b)}function N(a){return"undefined"===typeof __FRMRULES||"undefined"===typeof __FRMRULES[a]?!1:__FRMRULES[a]}function Na(a,b){var c=N(a.fieldId),d=pa(c,
17
+ b);"data"==b.fieldType&&"data"==c.fieldType?(c=""===a.value?""===d||1==d.length&&""===d[0]?!1:!0:Q(a.operator,a.value,d),b.dataLogic=a,b.dataLogic.actualValue=d,d=c):d=Q(a.operator,a.value,d);return d}function pa(a,b){var c;if("radio"==a.inputType||"checkbox"==a.inputType)c=qa(a,b),c=document.querySelectorAll('input[name^="'+c+'"]'),c="checkbox"==a.inputType?R(c):ra(c);else if(c="",!0===a.isMultiSelect){c=qa(a,b);var d=document.querySelectorAll('[name^="'+c+'"]');c=1==d.length&&"hidden"!=d[0].type?
18
+ jQuery('[name^="'+c+'"]').val():R(d)}else d="field_"+a.fieldKey,a.isRepeating&&(d+="-"+b.repeatRow),d=document.getElementById(d),null!==d&&(c=d.value);"undefined"===typeof c?c="":"string"===typeof c&&(c=c.trim());return c}function qa(a,b){return a.isRepeating?"item_meta["+b.inSection+"]["+b.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]"}function R(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="");return b}function Q(a,b,c){b=
19
+ Qa(b);c=Ra(b,c);return"string"===typeof b&&"-1"!=b.indexOf("&quot;")&&Q(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;b=I(b);a=I(a);return-1!=b.indexOf(a)},"not LIKE":function(a,b){if(!b)return!0;b=I(b);a=I(a);return-1==b.indexOf(a)}}[a](b,c)}function Qa(a){-1!==String(a).search(/^\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*$/)?a=parseFloat(a):"string"===typeof a&&
20
+ (a=a.trim());return a}function Ra(a,b){"undefined"===typeof b&&(b="");jQuery.isArray(b)&&-1<jQuery.inArray(a,b)&&(b=a);"number"===typeof a&&"string"===typeof b&&(b=parseFloat(b));"string"===typeof b&&(b=b.trim());return b}function I(a){"string"===typeof a?a=a.toLowerCase():"number"===typeof a&&(a=a.toString());return a}function la(a){return"show"==a?"hide":"show"}function ma(a){return document.getElementById(a).querySelectorAll('select[name^="item_meta"], textarea[name^="item_meta"], input[name^="item_meta"]')}
21
+ function oa(a){if("divider"==a.fieldType){var b=[];"divider"==a.fieldType&&(b=document.querySelectorAll('[data-sectionid="'+a.fieldId+'"]'));a=b}else a="form"==a.fieldType?document.querySelectorAll('[id^="field_'+a.fieldKey+'-"]'):document.querySelectorAll('[name^="'+(a.isRepeating?"item_meta["+a.inSection+"]["+a.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]")+'"]');return a}function na(a,b,c){if(a.length)for(var d,e=["checkbox","radio"],f=0;f<a.length;f++)if(!(0<f&&"undefined"!==typeof d&&
22
+ d.name==a[f].name&&-1<e.indexOf(d.type)||b&&S(a[f],c))){d=a[f];var h=jQuery(d),g=h.data("frmval");if("undefined"!==typeof g){if("checkbox"==d.type||"radio"==d.type)for(var k=document.getElementsByName(d.name),m=0,l=k.length;m<l;m++)if("hidden"==k[m].type)jQuery.isArray(g)&&null!==g[m]?k[m].value=g[m]:k[m].value=g;else{if(k[m].value==g||jQuery.isArray(g)&&-1<g.indexOf(k[m].value))if(k[m].checked=!0,"radio"==k[m].type)break}else if(-1<d.name.indexOf("[]"))if(k=document.getElementsByName(d.name),jQuery.isArray(g))for(m=
23
+ 0,l=g.length;m<l;m++)m in k&&(k[m].value=g[m]);else null!==k[0]&&(k[0].value=g);else k=d.getAttribute("autocompletetype"),null!==k&&(k=k.replace("address-",""),g=g[k]),d.value=g;"SELECT"==d.tagName&&T(d);u(h)}d=a[f];h=q(d,!1);h=U(h);!1!==h&&"lookup"!=h.fieldType&&(h.parentVals=V(h),sa(h,d));d=a[f];if(h="undefined"!==typeof __FRMCALC){h=d.type;g=!1;if("text"==h||"hidden"==h||"number"==h)g=!0;h=g}if(h){h=__FRMCALC;g=d.name;k=d.id.replace("field_","");if(3<=g.split("][").length)for(g=k.split("-"),k=
24
+ "",m=0;m<g.length-1;m++)k=""===k?g[m]:k+"-"+g[m];g=k;k=null;3<=d.name.split("][").length&&(k="hidden"!=d.type?jQuery(d).closest(".frm_form_field"):jQuery(d));d=k;void 0!==h.calc[g]&&W(h,g,[],d)}d=a[f]}}function S(a,b){var c=q(a,!0);return B("frm_field_"+c+"_container",b)}function P(a,b){if(!B(a.containerId,a.formId)){if(b){jQuery("#"+a.containerId).hide();var c=ma(a.containerId)}else c=oa(a);X(c);ta(a.containerId,a.formId)}}function X(a){if(!(1>a.length)){for(var b,c=!0,d=0,e=a.length;d<e;d++)0<d&&
25
+ 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=0,null!==document.getElementById(a[d].id+"_chosen")&&jQuery(a[d]).trigger("chosen:updated")):a[d].value="",b=a[d];!0===c&&u(jQuery(b))}}function B(a,b){var c=!1;-1<D(b).indexOf(a)&&(c=!0);return c}function ta(a,b){var c=D(b);if(!(-1<c.indexOf(a))){c.push(a);var c=JSON.stringify(c),d=document.getElementById("frm_hide_fields_"+
26
+ 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 H(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 ea(a,b,c){if(!("undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]||1>__FRMLOOKUP[a].dependents.length||null===b||"undefined"===typeof b)){a=__FRMLOOKUP[a];b=F(b[0].name);for(var d=0,e=a.dependents.length;d<
27
+ e;d++)Y(a.dependents[d],b,c)}}function Y(a,b,c){a=U(a);if(!(!1===a||1>a.parents.length))if("lookup"==a.fieldType){b=[];a.isRepeating?b=document.querySelectorAll(".frm_field_"+a.fieldId+"_container"):(c=document.getElementById("frm_field_"+a.fieldId+"_container"),null!==c&&b.push(c));c=0;for(var d=b.length;c<d;c++){ja(a,b[c].id);var e=a,f=b[c];e.parentVals=V(e);if("select"==e.inputType)Sa(e,f);else if("radio"==e.inputType||"checkbox"==e.inputType)if(!1===e.parentVals){var h=f.getElementsByTagName("input");
28
+ ua(e,f);X(h)}else Ta(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<d;c++)e=a,f=F(b[c].name),e.repeatRow=""!==f.repeatRow?f.repeatRow:"",e=a,f=b[c],e.parentVals=V(e),sa(e,f)}function U(a){return"undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]?!1:__FRMLOOKUP[a]}function V(a){for(var b=[],c=a.parents,d,e=0,f=c.length;e<
29
+ f;e++){d=U(c[e]);d=pa(d,a);if(""===d||!1===d){b=!1;break}b[e]=d}return b}function ra(a){for(var b=!1,c=a.length,d=0;d<c;d++)if("hidden"==a[d].type||a[d].checked){b=a[d].value;break}return b}function Sa(a,b){var c=b.getElementsByTagName("SELECT")[0];if(null!==c){var d=c.value;!1===a.parentVals?(c.options.length=1,""!==d&&(c.value="",T(c),u(jQuery(c),a.fieldKey))):jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_replace_lookup_field_options",parent_fields:a.parents,parent_vals:a.parentVals,
30
+ field_id:a.fieldId,nonce:frm_js.nonce},success:function(b){var d=a.fieldKey,h=c.value;b=JSON.parse(b);for(var g=c.options.length;0<g;g--)c.remove(g);for(var k=b.length,g=0;g<k;g++)c.options[g+1]=new Option(b[g],b[g],!1,!1);c.value=h;""===c.value&&(b=c.getAttribute("data-frmval"),null!==b&&(c.value=b));T(c);c.value!=h&&u(jQuery(c),d)}})}}function T(a){-1<a.className.indexOf("frm_chzn")&&jQuery().chosen&&jQuery(a).trigger("chosen:updated")}function Ta(a,b){var c=b.getElementsByClassName("frm_opt_container")[0],
31
+ d=c.getElementsByTagName("input");Ua(b,c);var e="",e="radio"==a.inputType?ra(d):R(d);jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_replace_cb_radio_lookup_options",parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,row_index:a.repeatRow,current_value:e,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?ua(a,b):
32
+ !1!==B(b.id,a.formId)&&(e=N(a.fieldId),!1===e||1>e.conditions.length?(H(b.id,a.formId),jQuery("#"+b.id).show()):(e.containerId=b.id,e.repeatRow=a.repeatRow,ka(e)));u(jQuery(d[0]),a.fieldKey)}})}function ua(a,b){B(b.id,a.formId)||(jQuery("#"+b.id).hide(),ta(b.id,a.formId))}function sa(a,b){if(!S(b,a.formId))if(!1===a.parentVals){var c=b.getAttribute("data-frmval");null===c&&(c="");va(a,b,c)}else jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_get_lookup_text_value",parent_fields:a.parents,
33
+ parent_vals:a.parentVals,field_id:a.fieldId,nonce:frm_js.nonce},success:function(c){b.value!=c&&va(a.fieldKey,b,c)}})}function va(a,b,c){b.value=c;u(jQuery(b),a)}function Oa(a,b){if(b){var c=jQuery("#"+a.containerId);wa(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,nonce:frm_js.nonce},success:function(d){if(b){var e=c.find(".frm_opt_container");e.html(d);var f=e.children("input"),
34
+ h=f.val();xa(e);""===d||""===h?P(a,!0):ya(a,c,f)}else e="field_"+a.fieldKey,""!==a.repeatRow&&(e+="-"+a.repeatRow),e=document.getElementById(e),e.value=d,B(a.containerId,a.formId)&&H(a.containerId,a.formId),u(jQuery(e))}})}function Pa(a,b){var c=jQuery("#"+a.containerId),d=c.find('select[name^="item_meta"], textarea[name^="item_meta"], input[name^="item_meta"]'),e=Va(d),d=d.data("frmval");wa(c);jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_fields_ajax_data_options",trigger_field_id:a.dataLogic.fieldId,
35
+ entry_id:a.dataLogic.actualValue,field_id:a.fieldId,default_value:d,container_id:a.containerId,prev_val:e,nonce:frm_js.nonce},success:function(b){var d=c.find(".frm_opt_container");d.html(b);var e=d.find("select, input, textarea");xa(d);""===b||1==e.length&&"hidden"==e.attr("type")?P(a,!0):ya(a,c,e)}})}function wa(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 Ua(a,b){if(!(-1<a.innerHTML.indexOf("frm-loading-img"))){b.style.display=
36
+ "none";var c=document.createElement("span");c.setAttribute("class","frm-loading-img");a.insertBefore(c,b.nextSibling)}}function xa(a){a.next(".frm-loading-img").remove();a.show()}function Va(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 ya(a,b,c){B(a.containerId,a.formId)&&(H(a.containerId,a.formId),b.show());c.hasClass("frm_chzn")&&Z();u(c)}function L(a,b){if("undefined"!==
37
+ typeof __FRMCALC){var c=__FRMCALC,d=c.fields[a];if("undefined"!==typeof d)for(var d=d.total,e=[],f=0,h=d.length;f<h;f++){var g;g=c.calc[d[f]];var k=b.attr("name"),m=!1,l=g.field_id,n=D(g.form_id);1>n.length||("0"===g.inSection&&"0"===g.inEmbedForm?m=J(l,n):(k=F(k),J(l,n)?m=!0:za(l,k,n)?m=!0:"0"!==g.inSection&&"0"!==g.inEmbedForm?m=za(g.inSection,k,n):"0"!==g.inSection?m=J(g.inSection,n):"0"!==g.inEmbedForm&&(m=J(g.inEmbedForm,n))));g=m;!1===g&&W(c,d[f],e,b)}}}function J(a,b){return-1<b.indexOf("frm_field_"+
38
+ a+"_container")}function za(a,b,c){var d=!1;b.repeatingSection&&(a="frm_field_"+a+"-"+b.repeatingSection,a+="-"+b.repeatRow+"_container",d=-1<c.indexOf(a));return d}function W(a,b,c,d){var e=a.calc[b],f=e.calc,h=jQuery(document.getElementById("field_"+b)),g={triggerField:d,inSection:!1,thisFieldCall:'input[id^="field_'+b+'-"]'};1>h.length&&"undefined"!==typeof d&&(g.inSection=!0,g.thisFieldId=Wa(a.fieldsWithCalc,b),h=Aa(g));if(!(1>h.length)){f=Xa(e,f,a,c,g);if("text"!=e.calc_type){a=e.calc_dec;f.indexOf(").toFixed(")&&
39
+ (c=f.split(").toFixed("),Ba(c[1])&&(a=c[1],f=f.replace(").toFixed("+a,"")));f=parseFloat(eval(f));if("undefined"===typeof f||isNaN(f))f=0;Ba(a)&&(f=f.toFixed(a))}h.val()!=f&&(h.val(f),u(h,b))}}function Xa(a,b,c,d,e){for(var f=0,h=a.fields.length;f<h;f++){var g={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"==g.thisField.type||"select"==g.thisField.type?
40
+ g.thisFieldCall=g.thisFieldCall+":checked,select"+k.fieldKeys[g.thisFieldId]+" option:selected,"+g.thisFieldCall+"[type=hidden]":"radio"==g.thisField.type||"scale"==g.thisField.type?g.thisFieldCall=g.thisFieldCall+":checked,"+g.thisFieldCall+"[type=hidden]":"textarea"==g.thisField.type&&(g.thisFieldCall=g.thisFieldCall+",textarea"+k.fieldKeys[g.thisFieldId]);if("text"==a.calc_type)g.valKey="text"+g.valKey,d=Ya(g,d),"undefined"===typeof d[g.valKey]&&(d[g.valKey]="");else{g.valKey="num"+g.valKey;d=
41
+ Za(g,c,d);if("undefined"===typeof d[g.valKey]||isNaN(d[g.valKey]))d[g.valKey]=0;"date"==g.thisField.type&&0===d[g.valKey]&&(b="")}k="["+g.thisFieldId+"]";k=k.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1");b=b.replace(new RegExp(k,"g"),d[g.valKey])}return b}function Za(a,b,c){if("undefined"!==typeof c[a.valKey]&&0!==c[a.valKey])return c;c[a.valKey]=0;var d=Ca(a);if(!1===d)return c;d.each(function(){var d=Da(a.thisField,this);if("date"==a.thisField.type){var f;f=b.date;var h=0;if(d)if("undefined"===
42
+ typeof jQuery.datepicker){h="-";-1<f.indexOf("/")&&(h="/");f=f.split(h);var d=d.split(h),g,k;g=h=k="";for(var m=0;m<f.length;m++)if("y"==f[m])g=((new Date).getFullYear()+15).toString().substr(2,2),g=d[m]>g?"19"+d[m]:"20"+d[m];else if("yy"==f[m])g=d[m];else if("m"==f[m]||"mm"==f[m])h=d[m],2>h.length&&(h="0"+h);else if("d"==f[m]||"dd"==f[m])k=d[m],2>k.length&&(k="0"+k);h=Date.parse(g+"-"+h+"-"+k)}else h=jQuery.datepicker.parseDate(f,d);f=h;null!==f&&(c[a.valKey]=Math.ceil(f/864E5))}else{f=d;""!==f&&
43
+ 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 Ya(a,b){if("undefined"!==typeof b[a.valKey]&&""!==b[a.valKey])return b;b[a.valKey]="";var c=Ca(a);if(!1===c)return b;c.each(function(){var c=Da(a.thisField,this),c=c.trim();b[a.valKey]+=c});return b}function Ca(a){var b;if(!1===a.inSection)b=jQuery(a.thisFieldCall);else if(b=Aa(a),null===b||"undefined"===typeof b)b=jQuery(a.thisFieldCall);if(null===
44
+ b||"undefined"===typeof b||1>b.length)b=!1;return b}function Aa(a){if("undefined"===typeof a.triggerField)return null;var b=a.triggerField.closest(".frm_repeat_sec, .frm_repeat_inline, .frm_repeat_grid");return b.length?(a=a.thisFieldCall.replace("[id=","[id^="),b.find(a)):null}function Da(a,b){var c;c=!1;if("hidden"==b.type)""!==aa(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_")&&
45
+ 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=aa(b))):c=jQuery(b).closest(".frm_other_container").find(".frm_other_input").val():"checkbox"!=a.type&&"radio"!=a.type||"hidden"==b.type||(c=aa(b))):c="checkbox"!==b.type&&"radio"!==b.type||!b.checked?jQuery(b).val():b.value;"undefined"===typeof c&&(c="");return c}function aa(a){var b="";a=document.getElementById(a.id+"-otext");null!==a&&""!==a.value&&(b=a.value);return b}function Ea(a){var b=
46
+ !1;a=jQuery(a).find(".frm_saving_draft");a.length&&(b=a.val());return b}function Fa(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 fa(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"),
47
+ 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=$a(c)),e=c;else{e=a.className;if(-1!==e.indexOf("frm_pos_none"))return b;d=jQuery(a).val();if("string"!==typeof d)for(var c=d,d="",f=0;f<c.length;f++)""!==c[f]&&(d=c[f]);e=-1===e.indexOf("frm_other_input")?q(a,!0):q(a,!1)}""===d&&(""===e&&(e=q(a,!0)),e in b||(b[e]=E(a,"data-reqmsg")));return b}function $a(a){var b="";jQuery('input[name="file'+
48
+ a+'"], input[name="file'+a+'[]"], input[name^="item_meta['+a+']"]').each(function(){""===b&&(b=this.value)});return b}function ga(a,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 h=/^(([^<>()\[\]\\.,;:\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,g=E(a,"data-invmsg");""!==d&&!1===h.test(d)?(b[e]=g,f&&(b[e.replace("conf_","")]="")):f&&(a=a.name.replace("conf_",""),
49
+ c.filter('[name="'+a+'"]').val()!==d&&(b[e]="",b[e.replace("conf_","")]=""))}return b}function ha(a,b){var c=a.value;""!==c&&!1!==isNaN(c/1)&&(c=q(a,!0),c in b||(b[c]=E(a,"data-invmsg")));return b}function ia(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 ab(a,b){jQuery(a).find('input[type="submit"], input[type="button"]').attr("disabled",
50
+ "disabled");"undefined"==typeof b&&jQuery(a).find('input[name="frm_action"]').val();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)window.location=b.redirect;else if(""!==b.content){jQuery(a).find(".frm_ajax_loading").removeClass("frm_loading_now");
51
+ var e=jQuery(a).find('input[name="form_id"]').val();jQuery(a).closest("#frm_form_"+e+"_container").replaceWith(b.content);frmFrontForm.scrollMsg(e);"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));e=jQuery(a).find('input[name="id"]');e.length&&jQuery(document.getElementById("frm_edit_"+e.val())).find("a").addClass("frm_ajax_edited").click();
52
+ jQuery(b.content).find(".frm_message").length&&ba("pageLoad");ca()}else if(Object.keys(b.errors).length){jQuery(a).find('input[type="submit"], input[type="button"]').removeAttr("disabled");jQuery(a).find(".frm_ajax_loading").removeClass("frm_loading_now");d=!0;Ga();var f=!1,h;for(e in b.errors)if(h=jQuery(a).find("#frm_field_"+e+"_container"),h.length){if(!h.is(":visible")){var g=h.closest(".frm_toggle_container");g.length&&(g=g.prev(),g.hasClass("frm_trigger")||(g=g.prev(".frm_trigger")),g.click())}h.is(":visible")&&
53
+ (M(h,e,b.errors),d=!1,h=jQuery(a).find("#frm_field_"+e+"_container .frm-g-recaptcha, #frm_field_"+e+"_container .g-recaptcha"),h.length&&(f=!0,h=h.data("rid"),jQuery().grecaptcha&&(h?grecaptcha.reset(h):grecaptcha.reset())))}Ha(a);!0!==f&&Ia(a,!1);d?a.submit():jQuery(a).prepend(b.error_message)}else bb(a),Ia(a,!0),a.submit()},error:function(){jQuery(a).find('input[type="submit"], input[type="button"]').removeAttr("disabled");a.submit()}})}function M(a,b,c){a.length&&a.is(":visible")&&(a.addClass("frm_blank_field"),
54
+ "function"==typeof frmThemeOverride_frmPlaceError?frmThemeOverride_frmPlaceError(b,c):a.append('<div class="frm_error">'+c[b]+"</div>"))}function Ga(){jQuery(".form-field").removeClass("frm_blank_field");jQuery(".form-field .frm_error").replaceWith("");jQuery(".frm_error_style").remove()}function Ha(a){var b=jQuery(a).find(".frm_blank_field:first");b.length&&frmFrontForm.scrollMsg(b,a,!0)}function bb(a){var b=document.getElementById("frm_loading");null!==b&&(a=jQuery(a).find("input[type=file]").val(),
55
+ "undefined"!=typeof a&&""!==a&&setTimeout(function(){jQuery(b).fadeIn("slow")},2E3))}function Ia(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 cb(){Ja(jQuery(this),"clear")}function db(){Ja(jQuery(this),"replace")}function Ja(a,b){var c=a.data("frmval").replace(/(\n|\r\n)/g,
56
+ "\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 eb(){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 fb(a,
57
+ b){google.load("visualization","1.0",{packages:[b],callback:function(){if("table"==b){var c=new google.visualization.DataTable,d=!1;-1!==jQuery.inArray("id",a.options.fields)&&(d=!0,c.addColumn("number",frm_js.id));for(var e=a.fields.length,f,h=0,g=e;h<g;h++){var k=a.fields[h];f=Ka(k);c.addColumn(f,k.name)}h=!1;a.options.edit_link&&(h=!0,c.addColumn("string",a.options.edit_link));g=!1;a.options.delete_link&&(g=!0,c.addColumn("string",a.options.delete_link));if(null!==a.entries){var m=a.entries.length;
58
+ c.addRows(m);for(var l=0,n=0;n<m;n++){var k=0,p=a.entries[n];d&&(c.setCell(l,k,p.id),k++);for(var q=0,r=e;q<r;q++){var t=a.fields[q];f=Ka(t);t=p.metas[t.id];"number"!=f||null!==t&&""!==t?"boolean"==f&&(t=null===t||"false"==t||!1===t?!1:!0):t=0;c.setCell(l,k,t);k++}h&&("undefined"!==typeof p.editLink?c.setCell(l,k,'<a href="'+p.editLink+'">'+a.options.edit_link+"</a>"):c.setCell(l,k,""),k++);g&&("undefined"!==typeof p.deleteLink?c.setCell(l,k,'<a href="'+p.deleteLink+'" class="frm_delete_link" data-frmconfirm="'+
59
+ a.options.confirm+'">'+a.options.delete_link+"</a>"):c.setCell(l,k,""));l++}}else for(c.addRows(1),h=k=0,g=e;h<g;h++)0<k?c.setCell(0,k,""):c.setCell(0,k,a.options.no_entries),k++;(new google.visualization.Table(document.getElementById("frm_google_table_"+a.options.form_id))).draw(c,a.graphOpts)}else gb(a)}})}function Ka(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?
60
+ 3:c-1);1==c&&(b="boolean")}return b}function gb(a){var b=new google.visualization.DataTable,c=!1,d=!1,e=a.rows.length;if(0<e)if("table"==a.type){c=!0;b.addRows(a.rows[e-1][0]+1);for(var f=0;f<e;f++)b.setCell(a.rows[f])}else if("undefined"!=typeof a.rows[0].tooltip)for(var d=c=!0,h=0;h<e;h++){f=a.rows[h].tooltip;delete a.rows[h].tooltip;var g=Object.keys(a.rows[h]).map(function(b){return a.rows[h][b]});a.rows[h]=g;a.rows[h].push(f)}e=a.cols.length;if(c){if(0<e)for(c=0;c<e;c++)f=a.cols[c],b.addColumn(f.type,
61
+ f.name);d&&(b.addColumn({type:"string",role:"tooltip"}),b.addRows(a.rows))}else{b=[[]];for(d=0;d<e;d++)b[0].push(a.cols[d].name);b=b.concat(a.rows);b=google.visualization.arrayToDataTable(b)}d=a.type.charAt(0).toUpperCase()+a.type.slice(1)+"Chart";(new google.visualization[d](document.getElementById("chart_"+a.graph_id))).draw(b,a.options)}function hb(){var a="frm_section_"+jQuery(this).data("parent")+"-"+jQuery(this).data("key"),b=jQuery(document.getElementById(a)),c=b.find("input, select, textarea");
62
+ b.fadeOut("slow",function(){b.remove();c.each(function(){if("file"!=this.type){var a=q(this,!1);L(a,jQuery(this))}});"function"==typeof frmThemeOverride_frmRemoveRow&&frmThemeOverride_frmRemoveRow(a,b)});return!1}function ib(){if(!0===K)return!1;K=!0;var a=jQuery(this).data("parent"),b=0;if(0<jQuery(".frm_repeat_"+a).length)var c=jQuery(".frm_repeat_"+a+":last").attr("id").replace("frm_section_"+a+"-",""),b=-1<c.indexOf("i")?1:1+parseInt(c);jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",
63
+ data:{action:"frm_add_form_row",field_id:a,i:b,nonce:frm_js.nonce},success:function(c){var e=c.html,f=jQuery(e).hide().fadeIn("slow");jQuery(".frm_repeat_"+a+":last").after(f);var h=["other"],g,k,m={repeatingSection:a.toString(),repeatRow:b.toString()};jQuery(e).find("input, select, textarea").each(function(){if("file"!=this.type){if(""===this.name)return!0;g=this.name.replace("item_meta[","").split("]")[2].replace("[","");-1==jQuery.inArray(g,h)&&!1!==this.id&&""!==this.id&&(k=jQuery("#"+this.id),
64
+ h.push(g),G(g,m),Y(g,m,"value changed"),da(g,k),ea(g,k,"value changed"),L(g,k))}});La();Z();"function"==typeof frmThemeOverride_frmAddRow&&frmThemeOverride_frmAddRow(a,c);K=!1},error:function(){K=!1}});return!1}function jb(){var a=jQuery(this),b=a.data("entryid"),c=a.data("prefix"),d=a.data("pageid"),e=a.data("formid"),f=a.data("cancel"),h=a.data("fields"),g=a.data("excludefields"),k=jQuery(document.getElementById(c+b)),m=k.html();k.html('<span class="frm-loading-img" id="'+c+b+'"></span><div class="frm_orig_content" style="display:none">'+
65
+ m+"</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:h,exclude_fields:g},success:function(b){k.children(".frm-loading-img").replaceWith(b);a.removeClass("frm_inplace_edit").addClass("frm_cancel_edit");a.html(f);ba("editInPlace");ca()}});return!1}function kb(){var a=jQuery(this),b=a.data("entryid"),c=a.data("prefix"),d=a.data("edit");a.hasClass("frm_ajax_edited")||(b=jQuery(document.getElementById(c+
66
+ b)),b.children(".frm_forms").replaceWith(""),b.children(".frm_orig_content").fadeIn("slow").removeClass("frm_orig_content"));a.removeClass("frm_cancel_edit").addClass("frm_inplace_edit");a.html(d);return!1}function lb(){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},
67
+ success:function(a){"success"==a.replace(/^\s+|\s+$/g,"")?(jQuery(document.getElementById(d+c)).fadeOut("slow"),jQuery(document.getElementById("frm_delete_"+c)).fadeOut("slow")):jQuery(document.getElementById("frm_delete_"+c)).replaceWith(a)}})}return!1}function ca(){"undefined"!==typeof __frmHideFields&&frmFrontForm.hidePreviouslyHiddenFields();jQuery(document).on("focusin",".frm_date",r);if("undefined"!==typeof __frmUniqueTimes)for(var a=__frmUniqueTimes,b=0;b<a.length;b++)jQuery(document.getElementById(a[b].dateID)).change(p);
68
+ if("undefined"!==typeof __frmMasks)for(a=__frmMasks,b=0;b<a.length;b++)jQuery(a[b].trigger).attr("data-frmmask",a[b].mask);La();Z();"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});var a=__FRMCALC.calc,b=[],c;for(c in a)if(1>
69
+ a[c].fields.length){var d=document.getElementById("field_"+c);null===d||S(d,a[c].form_id)||W(__FRMCALC,c,b)}}if("undefined"!==typeof __frmDropzone)for(c=__frmDropzone,a=0;a<c.length;a++)x(a)}function Z(){if(jQuery().chosen){var a={allow_single_deselect:!0};"undefined"!==typeof __frmChosen&&(a="{"+__frmChosen+"}");jQuery(".frm_chzn").chosen(a)}}function La(){if(jQuery().rating){var a=jQuery(".star");a.length&&a.rating()}}function ba(a){"undefined"!==typeof __frmHideOrShowFields&&frmFrontForm.hideOrShowFields(__frmHideOrShowFields,
70
+ a)}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 F(a){var b={repeatingSection:"",repeatRow:""};"undefined"!==typeof a&&3<=a.split("][").length&&(a=a.split("]["),b.repeatingSection=a[0].replace("item_meta[",""),b.repeatRow=a[1]);return b}function Ma(a){a.fadeOut("slow",function(){a.remove()})}function mb(){var a=jQuery(this).data("frmconfirm");return confirm(a)}function nb(){var a=jQuery(this).data("frmtoggle");
71
+ jQuery(a).is(":visible")?jQuery(a).slideUp("fast"):jQuery(a).slideDown("fast");return!1}function Wa(a,b){for(var c in a)if(a.hasOwnProperty(c)&&a[c]===b)return c;return null}function Ba(a){return!jQuery.isArray(a)&&0<=a-parseFloat(a)+1}function ob(){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 pb(){"function"!==typeof String.prototype.trim&&
72
+ (String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})}function qb(){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 e=[],f=0;f<d;f++)if(f in c){var h=c[f];a.call(b,h,f,c)&&e.push(h)}return e})}function rb(){Object.keys||(Object.keys=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b})}var K=!1,C="",w=[];return{init:function(){jQuery(document).off("submit.formidable",
73
+ ".frm-show-form");jQuery(document).on("submit.formidable",".frm-show-form",frmFrontForm.submitForm);jQuery(document).on("click",".frm_trigger",n);var a=jQuery(".frm_blank_field");a.length&&a.closest(".frm_toggle_container").prev(".frm_trigger").click();jQuery.isFunction(jQuery.fn.placeholder)?jQuery(".frm-show-form input, .frm-show-form textarea").placeholder():jQuery(".frm-show-form input[onblur], .frm-show-form textarea[onblur]").each(function(){""===jQuery(this).val()&&jQuery(this).blur()});jQuery(document).on("focus",
74
+ ".frm_toggle_default",cb);jQuery(document).on("blur",".frm_toggle_default",db);jQuery(".frm_toggle_default").blur();jQuery(document.getElementById("frm_resend_email")).click(eb);jQuery(document).on("click",".frm_remove_link",z);jQuery(document).on("focusin","input[data-frmmask]",function(){jQuery(this).mask(jQuery(this).data("frmmask").toString())});jQuery(document).on("change",'.frm-show-form input[name^="item_meta"], .frm-show-form select[name^="item_meta"], .frm-show-form textarea[name^="item_meta"]',
75
+ A);jQuery(document).on("click",'.frm-show-form input[type="submit"], .frm-show-form input[name="frm_prev_page"], .frm-show-form .frm_save_draft',l);jQuery(document).on("change",'.frm_other_container input[type="checkbox"], .frm_other_container input[type="radio"], .frm_other_container select',v);jQuery(document).on("click",".frm_remove_form_row",hb);jQuery(document).on("click",".frm_add_form_row",ib);jQuery(document).on("click","a[data-frmconfirm]",mb);jQuery("a[data-frmtoggle]").click(nb);jQuery(".frm_edit_link_container").on("click",
76
+ "a.frm_inplace_edit",jb);jQuery(".frm_edit_link_container").on("click","a.frm_cancel_edit",kb);jQuery(document).on("click",".frm_ajax_delete",lb);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"),
77
+ jQuery(this).next(".frm_toggle_container").hide())});ba("pageLoad");ca();ob();pb();qb();rb()},submitForm:function(a){var b=this.classList;b&&!b.contains("frm_pro_form")||jQuery("body").hasClass("wp-admin")||(a.preventDefault(),a=frmFrontForm.validateFormSubmit(this),0===Object.keys(a).length&&(jQuery(this).find(".frm_ajax_loading").addClass("frm_loading_now"),b.contains("frm_ajax_submit")?(C=jQuery(this).find('input[name="frm_action"]').val(),frmFrontForm.checkFormErrors(this,C)):this.submit()))},
78
+ validateFormSubmit:function(a){"undefined"!=typeof tinyMCE&&jQuery(this).find(".wp-editor-wrap").length&&tinyMCE.triggerSave();w=[];var b=jQuery(a).hasClass("frm_js_validate");b&&(Ea(a)||Fa(a))&&(b=!1);b&&(frmFrontForm.getAjaxFormErrors(a),Object.keys(w).length&&frmFrontForm.addAjaxFormErrors(a));return w},getAjaxFormErrors:function(a){var b=[],c=jQuery(a).find(".frm_required_field:visible input, .frm_required_field:visible select, .frm_required_field:visible textarea").filter(":not(.frm_optional)");
79
+ if(c.length)for(var d=0,e=c.length;d<e;d++)b=fa(c[d],b);c=jQuery(a).find("input[type=email]").filter(":visible");d=jQuery(a).find("input,select,textarea");if(d.length)for(var e=0,f=d.length;e<f;e++){var h=d[e];""!==h.value&&"hidden"!=h.type&&("number"==h.type?b=ha(h,b):"email"==h.type?b=ga(h,b,c):null!==h.pattern&&(b=ia(h,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",
80
+ ""),b[c]=""));w=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 g in a)w[g]=a[g];return w},addAjaxFormErrors:function(a){Ga();for(var b in w){var c=jQuery(a).find("#frm_field_"+b+"_container");c.length?M(c,b,w):delete w[b]}Ha(a)},checkFormErrors:function(a,b){ab(a,b)},scrollToID:function(a){a=jQuery(document.getElementById(a));frmFrontForm.scrollMsg(a,!1)},scrollMsg:function(a,b,
81
+ c){if(a=("undefined"==typeof b?jQuery(document.getElementById("frm_form_"+a+"_container")):"string"==typeof a?jQuery(b).find("#frm_field_"+a+"_container"):a).offset().top){a-=frm_js.offset;b=jQuery("html").css("margin-top");var d=jQuery("body").css("margin-top");if(b||d)a=a-parseInt(b)-parseInt(d);if(a&&window.innerHeight&&(b=document.documentElement.scrollTop||document.body.scrollTop,a>b+window.innerHeight||a<b))return"undefined"===typeof c?jQuery(window).scrollTop(a):jQuery("html,body").animate({scrollTop:a},
82
+ 500),!1}},savingDraft:function(a){return Ea(a)},goingToPreviousPage:function(a){return Fa(a)},hideOrShowFields:function(a,b){if("pageLoad"===b){var c=document.querySelectorAll('[id^="frm_hide_fields_"]');X(c)}for(var c={repeatingSection:"",repeatRow:""},d=0,e=a.length;d<e;d++)G(a[d],c)},hidePreviouslyHiddenFields:function(){var a;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_",""),a=a.concat(D(d));b=0;for(c=a.length;b<
83
+ c;b++)d=document.getElementById(a[b]),null!==d&&(d.style.display="none")},checkDependentDynamicFields:function(a){for(var b={repeatingSection:"",repeatRow:""},c=0,d=a.length;c<d;c++)G(a[c],b)},checkDependentLookupFields:function(a){for(var b,c={repeatingSection:"",repeatRow:""},d=0,e=a.length;d<e;d++)b=a[d],Y(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++)for(var d=a[b[c]],e=b[c],f=0;f<d.length;f++)fb(d[f],
84
+ 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));c.find("option").removeAttr("disabled");if(a&&""!==a)for(var f in a)c.find('option[value="'+f+'"]').attr("disabled",
85
+ "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(l){frmFrontForm.init()});
86
+ function frmRecaptcha(){for(var l=jQuery(".frm-g-recaptcha"),n=0,p=l.length;n<p;n++){var r=grecaptcha.render(l[n].id,{sitekey:l[n].getAttribute("data-sitekey"),size:l[n].getAttribute("data-size"),theme:l[n].getAttribute("data-theme")});l[n].setAttribute("data-rid",r)}}
87
  function frmUpdateField(l,n,p,r,x){jQuery(document.getElementById("frm_update_field_"+l+"_"+n)).html('<span class="frm-loading-img"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_update_field_ajax",entry_id:l,field_id:n,value:p,nonce:frm_js.nonce},success:function(){""===r.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById("frm_update_field_"+l+"_"+n+"_"+x)).fadeOut("slow"):jQuery(document.getElementById("frm_update_field_"+l+"_"+n+"_"+x)).replaceWith(r)}})}
88
  function frmEditEntry(l,n,p,r,x,y){console.warn("DEPRECATED: function frmEditEntry in v2.0.13 use frmFrontForm.editEntry");var z=jQuery(document.getElementById("frm_edit_"+l)),v=z.html(),A=jQuery(document.getElementById(n+l)),q=A.html();A.html('<span class="frm-loading-img" id="'+n+l+'"></span><div class="frm_orig_content" style="display:none">'+q+"</div>");jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:p,entry_id:l,id:r,nonce:frm_js.nonce},
89
+ success:function(q){A.children(".frm-loading-img").replaceWith(q);z.replaceWith('<span id="frm_edit_'+l+'"><a onclick="frmCancelEdit('+l+",'"+n+"','"+frmFrontForm.escapeHtml(v)+"',"+p+","+r+",'"+y+'\')" class="'+y+'">'+x+"</a></span>")}})}
90
  function frmCancelEdit(l,n,p,r,x,y){console.warn("DEPRECATED: function frmCancelEdit in v2.0.13 use frmFrontForm.cancelEdit");var z=jQuery(document.getElementById("frm_edit_"+l)),v=z.find("a"),A=v.html();v.hasClass("frm_ajax_edited")||(v=jQuery(document.getElementById(n+l)),v.children(".frm_forms").replaceWith(""),v.children(".frm_orig_content").fadeIn("slow").removeClass("frm_orig_content"));z.replaceWith('<a id="frm_edit_'+l+'" class="frm_edit_link '+y+'" href="javascript:frmEditEntry('+l+",'"+
91
+ n+"',"+r+","+x+",'"+frmFrontForm.escapeHtml(A)+"','"+y+"')\">"+p+"</a>")}
92
  function frmDeleteEntry(l,n){console.warn("DEPRECATED: function frmDeleteEntry in v2.0.13 use frmFrontForm.deleteEntry");jQuery(document.getElementById("frm_delete_"+l)).replaceWith('<span class="frm-loading-img" id="frm_delete_'+l+'"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_destroy",entry:l,nonce:frm_js.nonce},success:function(p){"success"==p.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById(n+l)).fadeOut("slow"):jQuery(document.getElementById("frm_delete_"+
93
+ l)).replaceWith(p)}})}function frmOnSubmit(l){console.warn("DEPRECATED: function frmOnSubmit in v2.0 use frmFrontForm.submitForm");frmFrontForm.submitForm(l,this)}
94
  function frm_resend_email(l,n){console.warn("DEPRECATED: function frm_resend_email in v2.0");$link=jQuery(document.getElementById("frm_resend_email"));$link.append('<span class="spinner" style="display:inline"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_send_email",entry_id:l,form_id:n,nonce:frm_js.nonce},success:function(l){$link.replaceWith(l)}})};
languages/formidable-en_US.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Formidable v2.02\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2010-12-20\n"
6
- "PO-Revision-Date: 2016-06-02 17:07:48+0000\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -288,7 +288,7 @@ msgstr ""
288
  #: classes/controllers/FrmFormsController.php:704
289
  #: classes/views/frm-entries/form.php:44
290
  #: classes/views/frm-entries/sidebar-shared.php:29
291
- #: pro/classes/helpers/FrmProFieldsHelper.php:2940
292
  #: pro/classes/views/xml/map_csv_fields.php:56
293
  #@ formidable
294
  msgid "Entry Key"
@@ -346,8 +346,8 @@ msgstr ""
346
  #: classes/controllers/FrmFormsController.php:538
347
  #: classes/helpers/FrmCSVExportHelper.php:117
348
  #: pro/classes/controllers/FrmProDisplaysController.php:142
349
- #: pro/classes/helpers/FrmProFieldsHelper.php:2961
350
- #: pro/classes/helpers/FrmProFieldsHelper.php:2977
351
  #: pro/classes/views/displays/mb_advanced.php:98
352
  #@ formidable
353
  msgid "Key"
@@ -480,8 +480,8 @@ msgstr ""
480
 
481
  #: classes/helpers/FrmAppHelper.php:1722
482
  #: classes/helpers/FrmCSVExportHelper.php:116
483
- #: pro/classes/helpers/FrmProFieldsHelper.php:2960
484
- #: pro/classes/helpers/FrmProFieldsHelper.php:2976
485
  #: pro/classes/views/displays/mb_advanced.php:97
486
  #: pro/classes/views/frmpro-entries/table.php:5
487
  #@ formidable
@@ -521,7 +521,7 @@ msgstr ""
521
  #: pro/classes/controllers/FrmProEntriesController.php:2281
522
  #: pro/classes/helpers/FrmProAppHelper.php:210
523
  #: pro/classes/helpers/FrmProEntriesHelper.php:256
524
- #: pro/classes/helpers/FrmProFieldsHelper.php:3180
525
  #@ default
526
  #@ formidable
527
  msgid "Edit"
@@ -993,7 +993,7 @@ msgstr ""
993
 
994
  #: classes/controllers/FrmFormsController.php:705
995
  #: pro/classes/controllers/FrmProFormsController.php:64
996
- #: pro/classes/helpers/FrmProFieldsHelper.php:2941
997
  #: pro/classes/views/displays/where_row.php:8
998
  #: pro/classes/views/xml/map_csv_fields.php:48
999
  #@ formidable
@@ -1031,12 +1031,12 @@ msgstr ""
1031
  msgid "Reset"
1032
  msgstr ""
1033
 
1034
- #: pro/classes/helpers/FrmProFieldsHelper.php:2276
1035
  #@ formidable
1036
  msgid "Edit Uploaded File"
1037
  msgstr ""
1038
 
1039
- #: pro/classes/helpers/FrmProFieldsHelper.php:2937
1040
  #: pro/classes/views/frmpro-fields/back-end/calculations.php:18
1041
  #@ formidable
1042
  msgid "Select a value to insert into the box below"
@@ -1047,7 +1047,7 @@ msgstr ""
1047
  #: pro/classes/controllers/FrmProFormsController.php:585
1048
  #: pro/classes/helpers/FrmProEntriesListHelper.php:58
1049
  #: pro/classes/helpers/FrmProEntriesListHelper.php:69
1050
- #: pro/classes/helpers/FrmProFieldsHelper.php:2939
1051
  #: pro/classes/views/displays/order_row.php:3
1052
  #: pro/classes/views/displays/where_row.php:6
1053
  #: pro/classes/views/xml/map_csv_fields.php:55
@@ -1055,54 +1055,54 @@ msgstr ""
1055
  msgid "Entry ID"
1056
  msgstr ""
1057
 
1058
- #: pro/classes/helpers/FrmProFieldsHelper.php:2946
1059
  #@ formidable
1060
  msgid "Form Fields"
1061
  msgstr ""
1062
 
1063
- #: pro/classes/helpers/FrmProFieldsHelper.php:2963
1064
  #@ formidable
1065
  msgid "Thumbnail"
1066
  msgstr ""
1067
 
1068
- #: pro/classes/helpers/FrmProFieldsHelper.php:2964
1069
  #@ formidable
1070
  msgid "Medium"
1071
  msgstr ""
1072
 
1073
- #: pro/classes/helpers/FrmProFieldsHelper.php:2965
1074
  #@ formidable
1075
  msgid "Large"
1076
  msgstr ""
1077
 
1078
- #: pro/classes/helpers/FrmProFieldsHelper.php:2966
1079
  #@ formidable
1080
  msgid "Full Size"
1081
  msgstr ""
1082
 
1083
  #: classes/views/shared/mb_adv_info.php:68
1084
- #: pro/classes/helpers/FrmProFieldsHelper.php:2988
1085
  #@ formidable
1086
  msgid "Helpers"
1087
  msgstr ""
1088
 
1089
- #: pro/classes/helpers/FrmProFieldsHelper.php:2989
1090
  #@ formidable
1091
  msgid "Admin link to edit the entry"
1092
  msgstr ""
1093
 
1094
- #: pro/classes/helpers/FrmProFieldsHelper.php:2991
1095
  #@ formidable
1096
  msgid "Link to view single page if showing dynamic entries"
1097
  msgstr ""
1098
 
1099
- #: pro/classes/helpers/FrmProFieldsHelper.php:2995
1100
  #@ formidable
1101
  msgid "Add a rotating 'even' or 'odd' class"
1102
  msgstr ""
1103
 
1104
  #: classes/controllers/FrmFormsController.php:710
1105
- #: pro/classes/helpers/FrmProFieldsHelper.php:2999
1106
  #@ formidable
1107
  msgid "Site URL"
1108
  msgstr ""
@@ -1138,7 +1138,7 @@ msgstr ""
1138
  #: classes/controllers/FrmEntriesController.php:112
1139
  #: pro/classes/helpers/FrmProEntriesListHelper.php:57
1140
  #: pro/classes/helpers/FrmProEntriesListHelper.php:68
1141
- #: pro/classes/helpers/FrmProFieldsHelper.php:2943
1142
  #: pro/classes/views/displays/_calendar_options.php:4
1143
  #: pro/classes/views/displays/_calendar_options.php:16
1144
  #: pro/classes/views/displays/order_row.php:4
@@ -2122,7 +2122,7 @@ msgstr ""
2122
  #: classes/models/FrmField.php:15
2123
  #: classes/views/styles/_sample_form.php:56
2124
  #: pro/classes/controllers/FrmProLookupFieldsController.php:13
2125
- #: pro/classes/helpers/FrmProFieldsHelper.php:4480
2126
  #@ formidable
2127
  msgid "Radio Buttons"
2128
  msgstr ""
@@ -2189,7 +2189,7 @@ msgstr ""
2189
  msgid "None"
2190
  msgstr ""
2191
 
2192
- #: pro/classes/helpers/FrmProFieldsHelper.php:1279
2193
  #@ formidable
2194
  msgid "No Categories"
2195
  msgstr ""
@@ -2214,14 +2214,14 @@ msgstr ""
2214
  msgid "Post Type"
2215
  msgstr ""
2216
 
2217
- #: pro/classes/models/FrmProFileField.php:269
2218
  #@ formidable
2219
  msgid "is invalid"
2220
  msgstr ""
2221
 
2222
  #: classes/helpers/FrmFieldsHelper.php:146
2223
  #: classes/helpers/FrmFieldsHelper.php:175
2224
- #: pro/classes/models/FrmProFileField.php:268
2225
  #@ formidable
2226
  msgid "This field is invalid"
2227
  msgstr ""
@@ -2297,7 +2297,7 @@ msgstr ""
2297
  msgid "at"
2298
  msgstr ""
2299
 
2300
- #: pro/classes/helpers/FrmProFieldsHelper.php:2997
2301
  #@ formidable
2302
  msgid "Default Email Message"
2303
  msgstr ""
@@ -3693,14 +3693,14 @@ msgstr ""
3693
 
3694
  #: classes/models/FrmField.php:14
3695
  #: pro/classes/controllers/FrmProLookupFieldsController.php:14
3696
- #: pro/classes/helpers/FrmProFieldsHelper.php:4481
3697
  #@ formidable
3698
  msgid "Checkboxes"
3699
  msgstr ""
3700
 
3701
  #: classes/models/FrmField.php:16
3702
  #: pro/classes/controllers/FrmProLookupFieldsController.php:12
3703
- #: pro/classes/helpers/FrmProFieldsHelper.php:4479
3704
  #@ formidable
3705
  msgid "Dropdown"
3706
  msgstr ""
@@ -3727,13 +3727,13 @@ msgid "Build"
3727
  msgstr ""
3728
 
3729
  #: classes/controllers/FrmFormsController.php:706
3730
- #: pro/classes/helpers/FrmProFieldsHelper.php:2942
3731
  #@ formidable
3732
  msgid "User IP"
3733
  msgstr ""
3734
 
3735
  #: classes/controllers/FrmEntriesController.php:113
3736
- #: pro/classes/helpers/FrmProFieldsHelper.php:2944
3737
  #: pro/classes/views/displays/_calendar_options.php:5
3738
  #: pro/classes/views/displays/_calendar_options.php:17
3739
  #: pro/classes/views/displays/order_row.php:5
@@ -4065,7 +4065,7 @@ msgid "Daily Entries"
4065
  msgstr ""
4066
 
4067
  #: classes/controllers/FrmFormsController.php:711
4068
- #: pro/classes/helpers/FrmProFieldsHelper.php:3000
4069
  #@ formidable
4070
  msgid "Site Name"
4071
  msgstr ""
@@ -4605,7 +4605,7 @@ msgstr ""
4605
 
4606
  #: classes/helpers/FrmAppHelper.php:1719
4607
  #: classes/views/styles/_sample_form.php:94
4608
- #: pro/classes/helpers/FrmProFieldsHelper.php:692
4609
  #: pro/classes/helpers/FrmProFormsHelper.php:331
4610
  #@ formidable
4611
  msgid "Remove"
@@ -5134,7 +5134,7 @@ msgid "Next"
5134
  msgstr ""
5135
 
5136
  #: classes/views/styles/_sample_form.php:95
5137
- #: pro/classes/helpers/FrmProFieldsHelper.php:692
5138
  #: pro/classes/helpers/FrmProFormsHelper.php:330
5139
  #: pro/classes/views/displays/mb_advanced.php:33
5140
  #: pro/classes/views/displays/mb_advanced.php:53
@@ -6005,7 +6005,7 @@ msgstr ""
6005
 
6006
  #: classes/helpers/FrmAppHelper.php:1746
6007
  #: classes/helpers/FrmFieldsHelper.php:172
6008
- #: pro/classes/helpers/FrmProFieldsHelper.php:694
6009
  #@ formidable
6010
  msgid "The entered values do not match"
6011
  msgstr ""
@@ -6226,38 +6226,38 @@ msgid "End Section"
6226
  msgstr ""
6227
 
6228
  #: classes/models/FrmField.php:31
6229
- #: pro/classes/helpers/FrmProFieldsHelper.php:4467
6230
  #@ formidable
6231
  msgid "Section"
6232
  msgstr ""
6233
 
6234
- #: pro/classes/helpers/FrmProFieldsHelper.php:4469
6235
  #@ formidable
6236
  msgid "Heading"
6237
  msgstr ""
6238
 
6239
  #: classes/views/styles/_section-fields.php:7
6240
- #: pro/classes/helpers/FrmProFieldsHelper.php:4470
6241
  #: pro/classes/views/frmpro-fields/options-form-top.php:11
6242
  #@ formidable
6243
  msgid "Collapsible"
6244
  msgstr ""
6245
 
6246
  #: classes/views/styles/_section-fields.php:10
6247
- #: pro/classes/helpers/FrmProFieldsHelper.php:4471
6248
  #: pro/classes/views/frmpro-fields/options-form-top.php:20
6249
  #@ formidable
6250
  msgid "Repeatable"
6251
  msgstr ""
6252
 
6253
  #: classes/models/FrmField.php:41
6254
- #: pro/classes/helpers/FrmProFieldsHelper.php:4477
6255
  #@ formidable
6256
  msgid "Dynamic Field"
6257
  msgstr ""
6258
 
6259
  #: pro/classes/controllers/FrmProFormsController.php:546
6260
- #: pro/classes/helpers/FrmProFieldsHelper.php:4482
6261
  #@ formidable
6262
  msgid "List"
6263
  msgstr ""
@@ -7110,7 +7110,7 @@ msgstr ""
7110
  msgid "Next Page"
7111
  msgstr ""
7112
 
7113
- #: pro/classes/helpers/FrmProFieldsHelper.php:2090
7114
  #@ formidable
7115
  msgid "Confirm"
7116
  msgstr ""
@@ -7122,7 +7122,7 @@ msgstr ""
7122
  msgid "Use <code>frm_new_post</code> filter instead."
7123
  msgstr ""
7124
 
7125
- #: pro/classes/models/FrmProFileField.php:169
7126
  #@ formidable
7127
  msgid "This file is too big"
7128
  msgstr ""
@@ -9030,24 +9030,24 @@ msgstr ""
9030
  msgid "Hide form uploads"
9031
  msgstr ""
9032
 
9033
- #: pro/classes/models/FrmProFileField.php:180
9034
  #, php-format
9035
  #@ formidable
9036
  msgid "That file is too big. It must be less than %dMB."
9037
  msgstr ""
9038
 
9039
- #: pro/classes/models/FrmProFileField.php:211
9040
  #, php-format
9041
  #@ formidable
9042
  msgid "You have uploaded too many files. You may only include %d file(s)."
9043
  msgstr ""
9044
 
9045
- #: pro/classes/models/FrmProFileField.php:272
9046
  #@ formidable
9047
  msgid "Sorry, this file type is not permitted."
9048
  msgstr ""
9049
 
9050
- #: pro/classes/models/FrmProFileField.php:372
9051
  #@ formidable
9052
  msgid "File upload failed"
9053
  msgstr ""
@@ -9072,14 +9072,14 @@ msgstr ""
9072
  #: pro/classes/views/frmpro-fields/front-end/file.php:67
9073
  #@ formidable
9074
  msgid "Drop a file here or click to upload"
9075
- msgstr ""
9076
 
9077
  #: pro/classes/views/frmpro-fields/back-end/field-file.php:6
9078
  #: pro/classes/views/frmpro-fields/front-end/file.php:70
9079
  #, php-format
9080
  #@ formidable
9081
  msgid "Maximum upload size: %sMB"
9082
- msgstr ""
9083
 
9084
  #: pro/classes/views/frmpro-fields/back-end/file-options.php:63
9085
  #@ formidable
@@ -9102,10 +9102,11 @@ msgstr ""
9102
  msgid "number of files"
9103
  msgstr ""
9104
 
 
9105
  #: pro/classes/views/frmpro-fields/front-end/file.php:55
9106
  #@ formidable
9107
  msgid "Remove file"
9108
- msgstr ""
9109
 
9110
  #: pro/classes/views/frmpro-fields/front-end/file.php:68
9111
  #@ formidable
@@ -9122,3 +9123,18 @@ msgstr ""
9122
  msgid "Import files. If you are importing from another site, check this box to copy external files to this site."
9123
  msgstr ""
9124
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Formidable v2.02.01\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2010-12-20\n"
6
+ "PO-Revision-Date: 2016-06-03 18:16:52+0000\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
288
  #: classes/controllers/FrmFormsController.php:704
289
  #: classes/views/frm-entries/form.php:44
290
  #: classes/views/frm-entries/sidebar-shared.php:29
291
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2936
292
  #: pro/classes/views/xml/map_csv_fields.php:56
293
  #@ formidable
294
  msgid "Entry Key"
346
  #: classes/controllers/FrmFormsController.php:538
347
  #: classes/helpers/FrmCSVExportHelper.php:117
348
  #: pro/classes/controllers/FrmProDisplaysController.php:142
349
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2957
350
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2973
351
  #: pro/classes/views/displays/mb_advanced.php:98
352
  #@ formidable
353
  msgid "Key"
480
 
481
  #: classes/helpers/FrmAppHelper.php:1722
482
  #: classes/helpers/FrmCSVExportHelper.php:116
483
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2956
484
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2972
485
  #: pro/classes/views/displays/mb_advanced.php:97
486
  #: pro/classes/views/frmpro-entries/table.php:5
487
  #@ formidable
521
  #: pro/classes/controllers/FrmProEntriesController.php:2281
522
  #: pro/classes/helpers/FrmProAppHelper.php:210
523
  #: pro/classes/helpers/FrmProEntriesHelper.php:256
524
+ #: pro/classes/helpers/FrmProFieldsHelper.php:3176
525
  #@ default
526
  #@ formidable
527
  msgid "Edit"
993
 
994
  #: classes/controllers/FrmFormsController.php:705
995
  #: pro/classes/controllers/FrmProFormsController.php:64
996
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2937
997
  #: pro/classes/views/displays/where_row.php:8
998
  #: pro/classes/views/xml/map_csv_fields.php:48
999
  #@ formidable
1031
  msgid "Reset"
1032
  msgstr ""
1033
 
1034
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2272
1035
  #@ formidable
1036
  msgid "Edit Uploaded File"
1037
  msgstr ""
1038
 
1039
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2933
1040
  #: pro/classes/views/frmpro-fields/back-end/calculations.php:18
1041
  #@ formidable
1042
  msgid "Select a value to insert into the box below"
1047
  #: pro/classes/controllers/FrmProFormsController.php:585
1048
  #: pro/classes/helpers/FrmProEntriesListHelper.php:58
1049
  #: pro/classes/helpers/FrmProEntriesListHelper.php:69
1050
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2935
1051
  #: pro/classes/views/displays/order_row.php:3
1052
  #: pro/classes/views/displays/where_row.php:6
1053
  #: pro/classes/views/xml/map_csv_fields.php:55
1055
  msgid "Entry ID"
1056
  msgstr ""
1057
 
1058
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2942
1059
  #@ formidable
1060
  msgid "Form Fields"
1061
  msgstr ""
1062
 
1063
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2959
1064
  #@ formidable
1065
  msgid "Thumbnail"
1066
  msgstr ""
1067
 
1068
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2960
1069
  #@ formidable
1070
  msgid "Medium"
1071
  msgstr ""
1072
 
1073
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2961
1074
  #@ formidable
1075
  msgid "Large"
1076
  msgstr ""
1077
 
1078
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2962
1079
  #@ formidable
1080
  msgid "Full Size"
1081
  msgstr ""
1082
 
1083
  #: classes/views/shared/mb_adv_info.php:68
1084
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2984
1085
  #@ formidable
1086
  msgid "Helpers"
1087
  msgstr ""
1088
 
1089
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2985
1090
  #@ formidable
1091
  msgid "Admin link to edit the entry"
1092
  msgstr ""
1093
 
1094
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2987
1095
  #@ formidable
1096
  msgid "Link to view single page if showing dynamic entries"
1097
  msgstr ""
1098
 
1099
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2991
1100
  #@ formidable
1101
  msgid "Add a rotating 'even' or 'odd' class"
1102
  msgstr ""
1103
 
1104
  #: classes/controllers/FrmFormsController.php:710
1105
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2995
1106
  #@ formidable
1107
  msgid "Site URL"
1108
  msgstr ""
1138
  #: classes/controllers/FrmEntriesController.php:112
1139
  #: pro/classes/helpers/FrmProEntriesListHelper.php:57
1140
  #: pro/classes/helpers/FrmProEntriesListHelper.php:68
1141
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2939
1142
  #: pro/classes/views/displays/_calendar_options.php:4
1143
  #: pro/classes/views/displays/_calendar_options.php:16
1144
  #: pro/classes/views/displays/order_row.php:4
2122
  #: classes/models/FrmField.php:15
2123
  #: classes/views/styles/_sample_form.php:56
2124
  #: pro/classes/controllers/FrmProLookupFieldsController.php:13
2125
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4481
2126
  #@ formidable
2127
  msgid "Radio Buttons"
2128
  msgstr ""
2189
  msgid "None"
2190
  msgstr ""
2191
 
2192
+ #: pro/classes/helpers/FrmProFieldsHelper.php:1275
2193
  #@ formidable
2194
  msgid "No Categories"
2195
  msgstr ""
2214
  msgid "Post Type"
2215
  msgstr ""
2216
 
2217
+ #: pro/classes/models/FrmProFileField.php:278
2218
  #@ formidable
2219
  msgid "is invalid"
2220
  msgstr ""
2221
 
2222
  #: classes/helpers/FrmFieldsHelper.php:146
2223
  #: classes/helpers/FrmFieldsHelper.php:175
2224
+ #: pro/classes/models/FrmProFileField.php:277
2225
  #@ formidable
2226
  msgid "This field is invalid"
2227
  msgstr ""
2297
  msgid "at"
2298
  msgstr ""
2299
 
2300
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2993
2301
  #@ formidable
2302
  msgid "Default Email Message"
2303
  msgstr ""
3693
 
3694
  #: classes/models/FrmField.php:14
3695
  #: pro/classes/controllers/FrmProLookupFieldsController.php:14
3696
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4482
3697
  #@ formidable
3698
  msgid "Checkboxes"
3699
  msgstr ""
3700
 
3701
  #: classes/models/FrmField.php:16
3702
  #: pro/classes/controllers/FrmProLookupFieldsController.php:12
3703
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4480
3704
  #@ formidable
3705
  msgid "Dropdown"
3706
  msgstr ""
3727
  msgstr ""
3728
 
3729
  #: classes/controllers/FrmFormsController.php:706
3730
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2938
3731
  #@ formidable
3732
  msgid "User IP"
3733
  msgstr ""
3734
 
3735
  #: classes/controllers/FrmEntriesController.php:113
3736
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2940
3737
  #: pro/classes/views/displays/_calendar_options.php:5
3738
  #: pro/classes/views/displays/_calendar_options.php:17
3739
  #: pro/classes/views/displays/order_row.php:5
4065
  msgstr ""
4066
 
4067
  #: classes/controllers/FrmFormsController.php:711
4068
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2996
4069
  #@ formidable
4070
  msgid "Site Name"
4071
  msgstr ""
4605
 
4606
  #: classes/helpers/FrmAppHelper.php:1719
4607
  #: classes/views/styles/_sample_form.php:94
4608
+ #: pro/classes/helpers/FrmProFieldsHelper.php:688
4609
  #: pro/classes/helpers/FrmProFormsHelper.php:331
4610
  #@ formidable
4611
  msgid "Remove"
5134
  msgstr ""
5135
 
5136
  #: classes/views/styles/_sample_form.php:95
5137
+ #: pro/classes/helpers/FrmProFieldsHelper.php:688
5138
  #: pro/classes/helpers/FrmProFormsHelper.php:330
5139
  #: pro/classes/views/displays/mb_advanced.php:33
5140
  #: pro/classes/views/displays/mb_advanced.php:53
6005
 
6006
  #: classes/helpers/FrmAppHelper.php:1746
6007
  #: classes/helpers/FrmFieldsHelper.php:172
6008
+ #: pro/classes/helpers/FrmProFieldsHelper.php:690
6009
  #@ formidable
6010
  msgid "The entered values do not match"
6011
  msgstr ""
6226
  msgstr ""
6227
 
6228
  #: classes/models/FrmField.php:31
6229
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4468
6230
  #@ formidable
6231
  msgid "Section"
6232
  msgstr ""
6233
 
6234
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4470
6235
  #@ formidable
6236
  msgid "Heading"
6237
  msgstr ""
6238
 
6239
  #: classes/views/styles/_section-fields.php:7
6240
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4471
6241
  #: pro/classes/views/frmpro-fields/options-form-top.php:11
6242
  #@ formidable
6243
  msgid "Collapsible"
6244
  msgstr ""
6245
 
6246
  #: classes/views/styles/_section-fields.php:10
6247
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4472
6248
  #: pro/classes/views/frmpro-fields/options-form-top.php:20
6249
  #@ formidable
6250
  msgid "Repeatable"
6251
  msgstr ""
6252
 
6253
  #: classes/models/FrmField.php:41
6254
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4478
6255
  #@ formidable
6256
  msgid "Dynamic Field"
6257
  msgstr ""
6258
 
6259
  #: pro/classes/controllers/FrmProFormsController.php:546
6260
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4483
6261
  #@ formidable
6262
  msgid "List"
6263
  msgstr ""
7110
  msgid "Next Page"
7111
  msgstr ""
7112
 
7113
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2086
7114
  #@ formidable
7115
  msgid "Confirm"
7116
  msgstr ""
7122
  msgid "Use <code>frm_new_post</code> filter instead."
7123
  msgstr ""
7124
 
7125
+ #: pro/classes/models/FrmProFileField.php:173
7126
  #@ formidable
7127
  msgid "This file is too big"
7128
  msgstr ""
9030
  msgid "Hide form uploads"
9031
  msgstr ""
9032
 
9033
+ #: pro/classes/models/FrmProFileField.php:184
9034
  #, php-format
9035
  #@ formidable
9036
  msgid "That file is too big. It must be less than %dMB."
9037
  msgstr ""
9038
 
9039
+ #: pro/classes/models/FrmProFileField.php:215
9040
  #, php-format
9041
  #@ formidable
9042
  msgid "You have uploaded too many files. You may only include %d file(s)."
9043
  msgstr ""
9044
 
9045
+ #: pro/classes/models/FrmProFileField.php:281
9046
  #@ formidable
9047
  msgid "Sorry, this file type is not permitted."
9048
  msgstr ""
9049
 
9050
+ #: pro/classes/models/FrmProFileField.php:381
9051
  #@ formidable
9052
  msgid "File upload failed"
9053
  msgstr ""
9072
  #: pro/classes/views/frmpro-fields/front-end/file.php:67
9073
  #@ formidable
9074
  msgid "Drop a file here or click to upload"
9075
+ msgstr "Desliza un archivo hasta aquí o haz clic para cargar"
9076
 
9077
  #: pro/classes/views/frmpro-fields/back-end/field-file.php:6
9078
  #: pro/classes/views/frmpro-fields/front-end/file.php:70
9079
  #, php-format
9080
  #@ formidable
9081
  msgid "Maximum upload size: %sMB"
9082
+ msgstr "Tamaño máximo de archivo: %sMB"
9083
 
9084
  #: pro/classes/views/frmpro-fields/back-end/file-options.php:63
9085
  #@ formidable
9102
  msgid "number of files"
9103
  msgstr ""
9104
 
9105
+ #: pro/classes/models/FrmProFileField.php:35
9106
  #: pro/classes/views/frmpro-fields/front-end/file.php:55
9107
  #@ formidable
9108
  msgid "Remove file"
9109
+ msgstr "Remover archivo"
9110
 
9111
  #: pro/classes/views/frmpro-fields/front-end/file.php:68
9112
  #@ formidable
9123
  msgid "Import files. If you are importing from another site, check this box to copy external files to this site."
9124
  msgstr ""
9125
 
9126
+ #: pro/classes/models/FrmProFileField.php:33
9127
+ #@ formidable
9128
+ msgid "Cancel upload"
9129
+ msgstr ""
9130
+
9131
+ #: pro/classes/models/FrmProFileField.php:34
9132
+ #@ formidable
9133
+ msgid "Are you sure you want to cancel this upload?"
9134
+ msgstr ""
9135
+
9136
+ #: pro/classes/models/FrmProFileField.php:36
9137
+ #@ formidable
9138
+ msgid "You can not upload any more files."
9139
+ msgstr ""
9140
+
languages/formidable-es_ES.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Formidable v2.02\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2010-12-20\n"
6
- "PO-Revision-Date: 2016-06-02 17:10:26+0000\n"
7
  "Last-Translator: jelena kovacevic <jecajeca260@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -254,8 +254,8 @@ msgstr "Descripción"
254
  #: classes/controllers/FrmFormsController.php:538
255
  #: classes/helpers/FrmCSVExportHelper.php:117
256
  #: pro/classes/controllers/FrmProDisplaysController.php:142
257
- #: pro/classes/helpers/FrmProFieldsHelper.php:2961
258
- #: pro/classes/helpers/FrmProFieldsHelper.php:2977
259
  #: pro/classes/views/displays/mb_advanced.php:98
260
  #@ formidable
261
  msgid "Key"
@@ -344,7 +344,7 @@ msgstr "Eliminar entradas del Área del Admin"
344
  msgid "View Reports"
345
  msgstr "Ver informes"
346
 
347
- #: pro/classes/models/FrmProFileField.php:269
348
  #@ formidable
349
  msgid "is invalid"
350
  msgstr "no es válido"
@@ -1418,7 +1418,7 @@ msgstr "Texto de Párrafo"
1418
 
1419
  #: classes/models/FrmField.php:14
1420
  #: pro/classes/controllers/FrmProLookupFieldsController.php:14
1421
- #: pro/classes/helpers/FrmProFieldsHelper.php:4481
1422
  #@ formidable
1423
  msgid "Checkboxes"
1424
  msgstr "Casillas de verificación"
@@ -1426,14 +1426,14 @@ msgstr "Casillas de verificación"
1426
  #: classes/models/FrmField.php:15
1427
  #: classes/views/styles/_sample_form.php:56
1428
  #: pro/classes/controllers/FrmProLookupFieldsController.php:13
1429
- #: pro/classes/helpers/FrmProFieldsHelper.php:4480
1430
  #@ formidable
1431
  msgid "Radio Buttons"
1432
  msgstr "Botones de opción"
1433
 
1434
  #: classes/models/FrmField.php:16
1435
  #: pro/classes/controllers/FrmProLookupFieldsController.php:12
1436
- #: pro/classes/helpers/FrmProFieldsHelper.php:4479
1437
  #@ formidable
1438
  msgid "Dropdown"
1439
  msgstr "Desplegable"
@@ -1542,7 +1542,7 @@ msgstr "Sin título"
1542
 
1543
  #: classes/helpers/FrmFieldsHelper.php:146
1544
  #: classes/helpers/FrmFieldsHelper.php:175
1545
- #: pro/classes/models/FrmProFileField.php:268
1546
  #@ formidable
1547
  msgid "This field is invalid"
1548
  msgstr "Este campo no es válido"
@@ -1597,7 +1597,7 @@ msgstr "Eliminar"
1597
  #: pro/classes/controllers/FrmProEntriesController.php:2281
1598
  #: pro/classes/helpers/FrmProAppHelper.php:210
1599
  #: pro/classes/helpers/FrmProEntriesHelper.php:256
1600
- #: pro/classes/helpers/FrmProFieldsHelper.php:3180
1601
  #@ default
1602
  #@ formidable
1603
  msgid "Edit"
@@ -1763,7 +1763,7 @@ msgstr "Mensaje"
1763
  #: classes/controllers/FrmFormsController.php:704
1764
  #: classes/views/frm-entries/form.php:44
1765
  #: classes/views/frm-entries/sidebar-shared.php:29
1766
- #: pro/classes/helpers/FrmProFieldsHelper.php:2940
1767
  #: pro/classes/views/xml/map_csv_fields.php:56
1768
  #@ formidable
1769
  msgid "Entry Key"
@@ -1973,8 +1973,8 @@ msgstr "Buscar"
1973
 
1974
  #: classes/helpers/FrmAppHelper.php:1722
1975
  #: classes/helpers/FrmCSVExportHelper.php:116
1976
- #: pro/classes/helpers/FrmProFieldsHelper.php:2960
1977
- #: pro/classes/helpers/FrmProFieldsHelper.php:2976
1978
  #: pro/classes/views/displays/mb_advanced.php:97
1979
  #: pro/classes/views/frmpro-entries/table.php:5
1980
  #@ formidable
@@ -2432,7 +2432,7 @@ msgstr "Mensaje"
2432
  #: classes/controllers/FrmEntriesController.php:112
2433
  #: pro/classes/helpers/FrmProEntriesListHelper.php:57
2434
  #: pro/classes/helpers/FrmProEntriesListHelper.php:68
2435
- #: pro/classes/helpers/FrmProFieldsHelper.php:2943
2436
  #: pro/classes/views/displays/_calendar_options.php:4
2437
  #: pro/classes/views/displays/_calendar_options.php:16
2438
  #: pro/classes/views/displays/order_row.php:4
@@ -2442,7 +2442,7 @@ msgid "Entry creation date"
2442
  msgstr "Fecha de creación de la entrada"
2443
 
2444
  #: classes/controllers/FrmEntriesController.php:113
2445
- #: pro/classes/helpers/FrmProFieldsHelper.php:2944
2446
  #: pro/classes/views/displays/_calendar_options.php:5
2447
  #: pro/classes/views/displays/_calendar_options.php:17
2448
  #: pro/classes/views/displays/order_row.php:5
@@ -2749,7 +2749,7 @@ msgstr "Meta de usuario"
2749
 
2750
  #: classes/controllers/FrmFormsController.php:705
2751
  #: pro/classes/controllers/FrmProFormsController.php:64
2752
- #: pro/classes/helpers/FrmProFieldsHelper.php:2941
2753
  #: pro/classes/views/displays/where_row.php:8
2754
  #: pro/classes/views/xml/map_csv_fields.php:48
2755
  #@ formidable
@@ -2914,17 +2914,17 @@ msgstr "Restablecer"
2914
  msgid "View all posts filed under %s"
2915
  msgstr "Visualizar todas las entradas bajo %s"
2916
 
2917
- #: pro/classes/helpers/FrmProFieldsHelper.php:1279
2918
  #@ formidable
2919
  msgid "No Categories"
2920
  msgstr "Ninguna Categoría"
2921
 
2922
- #: pro/classes/helpers/FrmProFieldsHelper.php:2276
2923
  #@ formidable
2924
  msgid "Edit Uploaded File"
2925
  msgstr "Editar Archivo Subido"
2926
 
2927
- #: pro/classes/helpers/FrmProFieldsHelper.php:2937
2928
  #: pro/classes/views/frmpro-fields/back-end/calculations.php:18
2929
  #@ formidable
2930
  msgid "Select a value to insert into the box below"
@@ -2935,7 +2935,7 @@ msgstr "Seleccione un valor para insertar en el cuadro de abajo"
2935
  #: pro/classes/controllers/FrmProFormsController.php:585
2936
  #: pro/classes/helpers/FrmProEntriesListHelper.php:58
2937
  #: pro/classes/helpers/FrmProEntriesListHelper.php:69
2938
- #: pro/classes/helpers/FrmProFieldsHelper.php:2939
2939
  #: pro/classes/views/displays/order_row.php:3
2940
  #: pro/classes/views/displays/where_row.php:6
2941
  #: pro/classes/views/xml/map_csv_fields.php:55
@@ -2944,70 +2944,70 @@ msgid "Entry ID"
2944
  msgstr "ID de la Entrada"
2945
 
2946
  #: classes/controllers/FrmFormsController.php:706
2947
- #: pro/classes/helpers/FrmProFieldsHelper.php:2942
2948
  #@ formidable
2949
  msgid "User IP"
2950
  msgstr "IP del usuario"
2951
 
2952
- #: pro/classes/helpers/FrmProFieldsHelper.php:2946
2953
  #@ formidable
2954
  msgid "Form Fields"
2955
  msgstr "Campos de Formulario"
2956
 
2957
- #: pro/classes/helpers/FrmProFieldsHelper.php:2963
2958
  #@ formidable
2959
  msgid "Thumbnail"
2960
  msgstr "Miniatura"
2961
 
2962
- #: pro/classes/helpers/FrmProFieldsHelper.php:2964
2963
  #@ formidable
2964
  msgid "Medium"
2965
  msgstr "Mediano"
2966
 
2967
- #: pro/classes/helpers/FrmProFieldsHelper.php:2965
2968
  #@ formidable
2969
  msgid "Large"
2970
  msgstr "Grande"
2971
 
2972
- #: pro/classes/helpers/FrmProFieldsHelper.php:2966
2973
  #@ formidable
2974
  msgid "Full Size"
2975
  msgstr "Tamaño Completo"
2976
 
2977
  #: classes/views/shared/mb_adv_info.php:68
2978
- #: pro/classes/helpers/FrmProFieldsHelper.php:2988
2979
  #@ formidable
2980
  msgid "Helpers"
2981
  msgstr "Ayudantes"
2982
 
2983
- #: pro/classes/helpers/FrmProFieldsHelper.php:2989
2984
  #@ formidable
2985
  msgid "Admin link to edit the entry"
2986
  msgstr "Enlace del Admin para modificar la entrada"
2987
 
2988
- #: pro/classes/helpers/FrmProFieldsHelper.php:2991
2989
  #@ formidable
2990
  msgid "Link to view single page if showing dynamic entries"
2991
  msgstr "Enlace para ver una sola página, si muestra las entradas dinámicas"
2992
 
2993
- #: pro/classes/helpers/FrmProFieldsHelper.php:2995
2994
  #@ formidable
2995
  msgid "Add a rotating 'even' or 'odd' class"
2996
  msgstr "Agregar una clase 'par' o 'non' giratoria"
2997
 
2998
- #: pro/classes/helpers/FrmProFieldsHelper.php:2997
2999
  #@ formidable
3000
  msgid "Default Email Message"
3001
  msgstr "Mensaje de Email predeterminado"
3002
 
3003
  #: classes/controllers/FrmFormsController.php:710
3004
- #: pro/classes/helpers/FrmProFieldsHelper.php:2999
3005
  #@ formidable
3006
  msgid "Site URL"
3007
  msgstr "URL del sitio"
3008
 
3009
  #: classes/controllers/FrmFormsController.php:711
3010
- #: pro/classes/helpers/FrmProFieldsHelper.php:3000
3011
  #@ formidable
3012
  msgid "Site Name"
3013
  msgstr "Nombre del sitio"
@@ -4626,7 +4626,7 @@ msgstr "Cualquier cosa"
4626
 
4627
  #: classes/helpers/FrmAppHelper.php:1719
4628
  #: classes/views/styles/_sample_form.php:94
4629
- #: pro/classes/helpers/FrmProFieldsHelper.php:692
4630
  #: pro/classes/helpers/FrmProFormsHelper.php:331
4631
  #@ formidable
4632
  msgid "Remove"
@@ -5161,7 +5161,7 @@ msgid "Next"
5161
  msgstr "Siguiente"
5162
 
5163
  #: classes/views/styles/_sample_form.php:95
5164
- #: pro/classes/helpers/FrmProFieldsHelper.php:692
5165
  #: pro/classes/helpers/FrmProFormsHelper.php:330
5166
  #: pro/classes/views/displays/mb_advanced.php:33
5167
  #: pro/classes/views/displays/mb_advanced.php:53
@@ -6005,7 +6005,7 @@ msgstr ""
6005
 
6006
  #: classes/helpers/FrmAppHelper.php:1746
6007
  #: classes/helpers/FrmFieldsHelper.php:172
6008
- #: pro/classes/helpers/FrmProFieldsHelper.php:694
6009
  #@ formidable
6010
  msgid "The entered values do not match"
6011
  msgstr ""
@@ -6231,38 +6231,38 @@ msgid "End Section"
6231
  msgstr ""
6232
 
6233
  #: classes/models/FrmField.php:31
6234
- #: pro/classes/helpers/FrmProFieldsHelper.php:4467
6235
  #@ formidable
6236
  msgid "Section"
6237
  msgstr ""
6238
 
6239
- #: pro/classes/helpers/FrmProFieldsHelper.php:4469
6240
  #@ formidable
6241
  msgid "Heading"
6242
  msgstr ""
6243
 
6244
  #: classes/views/styles/_section-fields.php:7
6245
- #: pro/classes/helpers/FrmProFieldsHelper.php:4470
6246
  #: pro/classes/views/frmpro-fields/options-form-top.php:11
6247
  #@ formidable
6248
  msgid "Collapsible"
6249
  msgstr ""
6250
 
6251
  #: classes/views/styles/_section-fields.php:10
6252
- #: pro/classes/helpers/FrmProFieldsHelper.php:4471
6253
  #: pro/classes/views/frmpro-fields/options-form-top.php:20
6254
  #@ formidable
6255
  msgid "Repeatable"
6256
  msgstr ""
6257
 
6258
  #: classes/models/FrmField.php:41
6259
- #: pro/classes/helpers/FrmProFieldsHelper.php:4477
6260
  #@ formidable
6261
  msgid "Dynamic Field"
6262
  msgstr ""
6263
 
6264
  #: pro/classes/controllers/FrmProFormsController.php:546
6265
- #: pro/classes/helpers/FrmProFieldsHelper.php:4482
6266
  #@ formidable
6267
  msgid "List"
6268
  msgstr ""
@@ -7115,7 +7115,7 @@ msgstr ""
7115
  msgid "Next Page"
7116
  msgstr ""
7117
 
7118
- #: pro/classes/helpers/FrmProFieldsHelper.php:2090
7119
  #@ formidable
7120
  msgid "Confirm"
7121
  msgstr ""
@@ -7127,7 +7127,7 @@ msgstr ""
7127
  msgid "Use <code>frm_new_post</code> filter instead."
7128
  msgstr ""
7129
 
7130
- #: pro/classes/models/FrmProFileField.php:169
7131
  #@ formidable
7132
  msgid "This file is too big"
7133
  msgstr ""
@@ -8804,24 +8804,24 @@ msgstr ""
8804
  msgid "That credit card is expired"
8805
  msgstr ""
8806
 
8807
- #: pro/classes/models/FrmProFileField.php:180
8808
  #, php-format
8809
  #@ formidable
8810
  msgid "That file is too big. It must be less than %dMB."
8811
  msgstr ""
8812
 
8813
- #: pro/classes/models/FrmProFileField.php:211
8814
  #, php-format
8815
  #@ formidable
8816
  msgid "You have uploaded too many files. You may only include %d file(s)."
8817
  msgstr ""
8818
 
8819
- #: pro/classes/models/FrmProFileField.php:272
8820
  #@ formidable
8821
  msgid "Sorry, this file type is not permitted."
8822
  msgstr ""
8823
 
8824
- #: pro/classes/models/FrmProFileField.php:372
8825
  #@ formidable
8826
  msgid "File upload failed"
8827
  msgstr ""
@@ -8964,14 +8964,14 @@ msgstr ""
8964
  #: pro/classes/views/frmpro-fields/front-end/file.php:67
8965
  #@ formidable
8966
  msgid "Drop a file here or click to upload"
8967
- msgstr ""
8968
 
8969
  #: pro/classes/views/frmpro-fields/back-end/field-file.php:6
8970
  #: pro/classes/views/frmpro-fields/front-end/file.php:70
8971
  #, php-format
8972
  #@ formidable
8973
  msgid "Maximum upload size: %sMB"
8974
- msgstr ""
8975
 
8976
  #: pro/classes/views/frmpro-fields/back-end/file-options.php:14
8977
  #@ formidable
@@ -9004,10 +9004,11 @@ msgstr ""
9004
  msgid "number of files"
9005
  msgstr ""
9006
 
 
9007
  #: pro/classes/views/frmpro-fields/front-end/file.php:55
9008
  #@ formidable
9009
  msgid "Remove file"
9010
- msgstr ""
9011
 
9012
  #: pro/classes/views/frmpro-fields/front-end/file.php:68
9013
  #@ formidable
@@ -9122,3 +9123,18 @@ msgstr ""
9122
  msgid "Import files. If you are importing from another site, check this box to copy external files to this site."
9123
  msgstr ""
9124
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Formidable v2.02.01\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2010-12-20\n"
6
+ "PO-Revision-Date: 2016-06-03 18:18:38+0000\n"
7
  "Last-Translator: jelena kovacevic <jecajeca260@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
254
  #: classes/controllers/FrmFormsController.php:538
255
  #: classes/helpers/FrmCSVExportHelper.php:117
256
  #: pro/classes/controllers/FrmProDisplaysController.php:142
257
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2957
258
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2973
259
  #: pro/classes/views/displays/mb_advanced.php:98
260
  #@ formidable
261
  msgid "Key"
344
  msgid "View Reports"
345
  msgstr "Ver informes"
346
 
347
+ #: pro/classes/models/FrmProFileField.php:278
348
  #@ formidable
349
  msgid "is invalid"
350
  msgstr "no es válido"
1418
 
1419
  #: classes/models/FrmField.php:14
1420
  #: pro/classes/controllers/FrmProLookupFieldsController.php:14
1421
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4482
1422
  #@ formidable
1423
  msgid "Checkboxes"
1424
  msgstr "Casillas de verificación"
1426
  #: classes/models/FrmField.php:15
1427
  #: classes/views/styles/_sample_form.php:56
1428
  #: pro/classes/controllers/FrmProLookupFieldsController.php:13
1429
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4481
1430
  #@ formidable
1431
  msgid "Radio Buttons"
1432
  msgstr "Botones de opción"
1433
 
1434
  #: classes/models/FrmField.php:16
1435
  #: pro/classes/controllers/FrmProLookupFieldsController.php:12
1436
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4480
1437
  #@ formidable
1438
  msgid "Dropdown"
1439
  msgstr "Desplegable"
1542
 
1543
  #: classes/helpers/FrmFieldsHelper.php:146
1544
  #: classes/helpers/FrmFieldsHelper.php:175
1545
+ #: pro/classes/models/FrmProFileField.php:277
1546
  #@ formidable
1547
  msgid "This field is invalid"
1548
  msgstr "Este campo no es válido"
1597
  #: pro/classes/controllers/FrmProEntriesController.php:2281
1598
  #: pro/classes/helpers/FrmProAppHelper.php:210
1599
  #: pro/classes/helpers/FrmProEntriesHelper.php:256
1600
+ #: pro/classes/helpers/FrmProFieldsHelper.php:3176
1601
  #@ default
1602
  #@ formidable
1603
  msgid "Edit"
1763
  #: classes/controllers/FrmFormsController.php:704
1764
  #: classes/views/frm-entries/form.php:44
1765
  #: classes/views/frm-entries/sidebar-shared.php:29
1766
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2936
1767
  #: pro/classes/views/xml/map_csv_fields.php:56
1768
  #@ formidable
1769
  msgid "Entry Key"
1973
 
1974
  #: classes/helpers/FrmAppHelper.php:1722
1975
  #: classes/helpers/FrmCSVExportHelper.php:116
1976
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2956
1977
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2972
1978
  #: pro/classes/views/displays/mb_advanced.php:97
1979
  #: pro/classes/views/frmpro-entries/table.php:5
1980
  #@ formidable
2432
  #: classes/controllers/FrmEntriesController.php:112
2433
  #: pro/classes/helpers/FrmProEntriesListHelper.php:57
2434
  #: pro/classes/helpers/FrmProEntriesListHelper.php:68
2435
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2939
2436
  #: pro/classes/views/displays/_calendar_options.php:4
2437
  #: pro/classes/views/displays/_calendar_options.php:16
2438
  #: pro/classes/views/displays/order_row.php:4
2442
  msgstr "Fecha de creación de la entrada"
2443
 
2444
  #: classes/controllers/FrmEntriesController.php:113
2445
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2940
2446
  #: pro/classes/views/displays/_calendar_options.php:5
2447
  #: pro/classes/views/displays/_calendar_options.php:17
2448
  #: pro/classes/views/displays/order_row.php:5
2749
 
2750
  #: classes/controllers/FrmFormsController.php:705
2751
  #: pro/classes/controllers/FrmProFormsController.php:64
2752
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2937
2753
  #: pro/classes/views/displays/where_row.php:8
2754
  #: pro/classes/views/xml/map_csv_fields.php:48
2755
  #@ formidable
2914
  msgid "View all posts filed under %s"
2915
  msgstr "Visualizar todas las entradas bajo %s"
2916
 
2917
+ #: pro/classes/helpers/FrmProFieldsHelper.php:1275
2918
  #@ formidable
2919
  msgid "No Categories"
2920
  msgstr "Ninguna Categoría"
2921
 
2922
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2272
2923
  #@ formidable
2924
  msgid "Edit Uploaded File"
2925
  msgstr "Editar Archivo Subido"
2926
 
2927
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2933
2928
  #: pro/classes/views/frmpro-fields/back-end/calculations.php:18
2929
  #@ formidable
2930
  msgid "Select a value to insert into the box below"
2935
  #: pro/classes/controllers/FrmProFormsController.php:585
2936
  #: pro/classes/helpers/FrmProEntriesListHelper.php:58
2937
  #: pro/classes/helpers/FrmProEntriesListHelper.php:69
2938
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2935
2939
  #: pro/classes/views/displays/order_row.php:3
2940
  #: pro/classes/views/displays/where_row.php:6
2941
  #: pro/classes/views/xml/map_csv_fields.php:55
2944
  msgstr "ID de la Entrada"
2945
 
2946
  #: classes/controllers/FrmFormsController.php:706
2947
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2938
2948
  #@ formidable
2949
  msgid "User IP"
2950
  msgstr "IP del usuario"
2951
 
2952
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2942
2953
  #@ formidable
2954
  msgid "Form Fields"
2955
  msgstr "Campos de Formulario"
2956
 
2957
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2959
2958
  #@ formidable
2959
  msgid "Thumbnail"
2960
  msgstr "Miniatura"
2961
 
2962
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2960
2963
  #@ formidable
2964
  msgid "Medium"
2965
  msgstr "Mediano"
2966
 
2967
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2961
2968
  #@ formidable
2969
  msgid "Large"
2970
  msgstr "Grande"
2971
 
2972
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2962
2973
  #@ formidable
2974
  msgid "Full Size"
2975
  msgstr "Tamaño Completo"
2976
 
2977
  #: classes/views/shared/mb_adv_info.php:68
2978
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2984
2979
  #@ formidable
2980
  msgid "Helpers"
2981
  msgstr "Ayudantes"
2982
 
2983
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2985
2984
  #@ formidable
2985
  msgid "Admin link to edit the entry"
2986
  msgstr "Enlace del Admin para modificar la entrada"
2987
 
2988
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2987
2989
  #@ formidable
2990
  msgid "Link to view single page if showing dynamic entries"
2991
  msgstr "Enlace para ver una sola página, si muestra las entradas dinámicas"
2992
 
2993
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2991
2994
  #@ formidable
2995
  msgid "Add a rotating 'even' or 'odd' class"
2996
  msgstr "Agregar una clase 'par' o 'non' giratoria"
2997
 
2998
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2993
2999
  #@ formidable
3000
  msgid "Default Email Message"
3001
  msgstr "Mensaje de Email predeterminado"
3002
 
3003
  #: classes/controllers/FrmFormsController.php:710
3004
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2995
3005
  #@ formidable
3006
  msgid "Site URL"
3007
  msgstr "URL del sitio"
3008
 
3009
  #: classes/controllers/FrmFormsController.php:711
3010
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2996
3011
  #@ formidable
3012
  msgid "Site Name"
3013
  msgstr "Nombre del sitio"
4626
 
4627
  #: classes/helpers/FrmAppHelper.php:1719
4628
  #: classes/views/styles/_sample_form.php:94
4629
+ #: pro/classes/helpers/FrmProFieldsHelper.php:688
4630
  #: pro/classes/helpers/FrmProFormsHelper.php:331
4631
  #@ formidable
4632
  msgid "Remove"
5161
  msgstr "Siguiente"
5162
 
5163
  #: classes/views/styles/_sample_form.php:95
5164
+ #: pro/classes/helpers/FrmProFieldsHelper.php:688
5165
  #: pro/classes/helpers/FrmProFormsHelper.php:330
5166
  #: pro/classes/views/displays/mb_advanced.php:33
5167
  #: pro/classes/views/displays/mb_advanced.php:53
6005
 
6006
  #: classes/helpers/FrmAppHelper.php:1746
6007
  #: classes/helpers/FrmFieldsHelper.php:172
6008
+ #: pro/classes/helpers/FrmProFieldsHelper.php:690
6009
  #@ formidable
6010
  msgid "The entered values do not match"
6011
  msgstr ""
6231
  msgstr ""
6232
 
6233
  #: classes/models/FrmField.php:31
6234
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4468
6235
  #@ formidable
6236
  msgid "Section"
6237
  msgstr ""
6238
 
6239
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4470
6240
  #@ formidable
6241
  msgid "Heading"
6242
  msgstr ""
6243
 
6244
  #: classes/views/styles/_section-fields.php:7
6245
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4471
6246
  #: pro/classes/views/frmpro-fields/options-form-top.php:11
6247
  #@ formidable
6248
  msgid "Collapsible"
6249
  msgstr ""
6250
 
6251
  #: classes/views/styles/_section-fields.php:10
6252
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4472
6253
  #: pro/classes/views/frmpro-fields/options-form-top.php:20
6254
  #@ formidable
6255
  msgid "Repeatable"
6256
  msgstr ""
6257
 
6258
  #: classes/models/FrmField.php:41
6259
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4478
6260
  #@ formidable
6261
  msgid "Dynamic Field"
6262
  msgstr ""
6263
 
6264
  #: pro/classes/controllers/FrmProFormsController.php:546
6265
+ #: pro/classes/helpers/FrmProFieldsHelper.php:4483
6266
  #@ formidable
6267
  msgid "List"
6268
  msgstr ""
7115
  msgid "Next Page"
7116
  msgstr ""
7117
 
7118
+ #: pro/classes/helpers/FrmProFieldsHelper.php:2086
7119
  #@ formidable
7120
  msgid "Confirm"
7121
  msgstr ""
7127
  msgid "Use <code>frm_new_post</code> filter instead."
7128
  msgstr ""
7129
 
7130
+ #: pro/classes/models/FrmProFileField.php:173
7131
  #@ formidable
7132
  msgid "This file is too big"
7133
  msgstr ""
8804
  msgid "That credit card is expired"
8805
  msgstr ""
8806
 
8807
+ #: pro/classes/models/FrmProFileField.php:184
8808
  #, php-format
8809
  #@ formidable
8810
  msgid "That file is too big. It must be less than %dMB."
8811
  msgstr ""
8812
 
8813
+ #: pro/classes/models/FrmProFileField.php:215
8814
  #, php-format
8815
  #@ formidable
8816
  msgid "You have uploaded too many files. You may only include %d file(s)."
8817
  msgstr ""
8818
 
8819
+ #: pro/classes/models/FrmProFileField.php:281
8820
  #@ formidable
8821
  msgid "Sorry, this file type is not permitted."
8822
  msgstr ""
8823
 
8824
+ #: pro/classes/models/FrmProFileField.php:381
8825
  #@ formidable
8826
  msgid "File upload failed"
8827
  msgstr ""
8964
  #: pro/classes/views/frmpro-fields/front-end/file.php:67
8965
  #@ formidable
8966
  msgid "Drop a file here or click to upload"
8967
+ msgstr "Desliza un archivo hasta aquí o haz clic para cargar"
8968
 
8969
  #: pro/classes/views/frmpro-fields/back-end/field-file.php:6
8970
  #: pro/classes/views/frmpro-fields/front-end/file.php:70
8971
  #, php-format
8972
  #@ formidable
8973
  msgid "Maximum upload size: %sMB"
8974
+ msgstr "Tamaño máximo de archivo: %sMB"
8975
 
8976
  #: pro/classes/views/frmpro-fields/back-end/file-options.php:14
8977
  #@ formidable
9004
  msgid "number of files"
9005
  msgstr ""
9006
 
9007
+ #: pro/classes/models/FrmProFileField.php:35
9008
  #: pro/classes/views/frmpro-fields/front-end/file.php:55
9009
  #@ formidable
9010
  msgid "Remove file"
9011
+ msgstr "Remover archivo"
9012
 
9013
  #: pro/classes/views/frmpro-fields/front-end/file.php:68
9014
  #@ formidable
9123
  msgid "Import files. If you are importing from another site, check this box to copy external files to this site."
9124
  msgstr ""
9125
 
9126
+ #: pro/classes/models/FrmProFileField.php:33
9127
+ #@ formidable
9128
+ msgid "Cancel upload"
9129
+ msgstr "Cancelar carga"
9130
+
9131
+ #: pro/classes/models/FrmProFileField.php:34
9132
+ #@ formidable
9133
+ msgid "Are you sure you want to cancel this upload?"
9134
+ msgstr "Cancelar carga?"
9135
+
9136
+ #: pro/classes/models/FrmProFileField.php:36
9137
+ #@ formidable
9138
+ msgid "You can not upload any more files."
9139
+ msgstr ""
9140
+
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://formidablepro.com/donate
4
  Tags: contact form, contact, custom form, database, email, feedback, form, forms, poll, Post, captcha, spam, survey, template, widget, multisite, form builder, form creator, form manager
5
  Requires at least: 3.8
6
  Tested up to: 4.5.2
7
- Stable tag: 2.02
8
 
9
  Beautiful forms in 60 seconds. The WordPress form builder that enables you to create forms with a simple drag-and-drop interface and in-place editing.
10
 
@@ -89,6 +89,17 @@ A. Try clearing your browser cache. As plugin modifications are made, frequent j
89
  [See more FAQs](http://formidablepro.com/formidable-faqs/ "Formidable Form FAQs")
90
 
91
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
92
 
93
  = 2.02 =
94
  * Improve user role dropdowns in global settings
4
  Tags: contact form, contact, custom form, database, email, feedback, form, forms, poll, Post, captcha, spam, survey, template, widget, multisite, form builder, form creator, form manager
5
  Requires at least: 3.8
6
  Tested up to: 4.5.2
7
+ Stable tag: 2.02.01
8
 
9
  Beautiful forms in 60 seconds. The WordPress form builder that enables you to create forms with a simple drag-and-drop interface and in-place editing.
10
 
89
  [See more FAQs](http://formidablepro.com/formidable-faqs/ "Formidable Form FAQs")
90
 
91
  == Changelog ==
92
+ = 2.02.01 =
93
+ * **Pro Features: ** *
94
+ * Add styling for uploader with left label
95
+ * Add styling for rich text field with left label
96
+ * Make new file upload strings translatable
97
+ * Fix default date issue in Firefox
98
+ * Search post fields in admin entries tab
99
+ * Allow searching by IP address in admin entries tab
100
+ * Fixed showing default avatars if there is none selected in the form
101
+ * Fixed issue with newly uploaded files getting dropped when there are validation errors while editing an entry
102
+ * Fixed issue with showing the url of the icon instead of the uploaded file by default
103
 
104
  = 2.02 =
105
  * Improve user role dropdowns in global settings