Formidable Forms – Form Builder for WordPress - Version 2.03.06

Version Description

  • Pro Version *
  • Fix: Add nonce check for uploads
  • Fix: Decrease maximum number of orphaned files that can be deleted at one time
  • Fix: Carry page titles across on import
Download this release

Release Info

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

Code changes from version 2.03.05 to 2.03.06

classes/helpers/FrmAppHelper.php CHANGED
@@ -10,7 +10,7 @@ class FrmAppHelper {
10
  /**
11
  * @since 2.0
12
  */
13
- public static $plug_version = '2.03.05';
14
 
15
  /**
16
  * @since 1.07.02
10
  /**
11
  * @since 2.0
12
  */
13
+ public static $plug_version = '2.03.06';
14
 
15
  /**
16
  * @since 1.07.02
formidable.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Formidable Forms
4
  Description: Quickly and easily create drag-and-drop forms
5
- Version: 2.03.05
6
  Plugin URI: https://formidableforms.com/
7
  Author URI: https://formidableforms.com/
8
  Author: Strategy11
2
  /*
3
  Plugin Name: Formidable Forms
4
  Description: Quickly and easily create drag-and-drop forms
5
+ Version: 2.03.06
6
  Plugin URI: https://formidableforms.com/
7
  Author URI: https://formidableforms.com/
8
  Author: Strategy11
js/formidable.js CHANGED
@@ -168,6 +168,7 @@ function frmFrontFormJS(){
168
  formData.append('action', 'frm_submit_dropzone' );
169
  formData.append('field_id', uploadFields[i].fieldID );
170
  formData.append('form_id', uploadFields[i].formID );
 
171
  }
172
  });
173
 
168
  formData.append('action', 'frm_submit_dropzone' );
169
  formData.append('field_id', uploadFields[i].fieldID );
170
  formData.append('form_id', uploadFields[i].formID );
171
+ formData.append('nonce', frm_js.nonce );
172
  }
173
  });
174
 
js/formidable.min.js CHANGED
@@ -1,94 +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="",f="",e=this.name;"frm_prev_page"===e||-1!==this.className.indexOf("frm_prev_page")?d=jQuery(a).find(".frm_next_page").attr("id").replace("frm_next_p_",""):"frm_save_draft"===e||-1!==this.className.indexOf("frm_save_draft")?f=1:-1!==this.className.indexOf("frm_page_skip")?(b=b.data("page"),e=jQuery(a).find('input[name="form_id"]').val(),e=jQuery(a).find('input[name="frm_page_order_'+
2
- e+'"]'),jQuery(a).append('<input name="frm_last_page" type="hidden" value="'+e.val()+'" />'),""===b?e.remove():e.val(b)):-1!==this.className.indexOf("frm_page_back")&&(d=b.data("page"));jQuery(".frm_next_page").val(d);jQuery(".frm_saving_draft").val(f);"submit"!==c&&a.trigger("submit")}function m(){jQuery(this).parent().children(".frm_toggle_container").slideToggle("fast");jQuery(this).toggleClass("active").children(".ui-icon-triangle-1-e, .ui-icon-triangle-1-s").toggleClass("ui-icon-triangle-1-s ui-icon-triangle-1-e")}
3
- function q(){if(-1===this.className.indexOf("frm_custom_date")&&"undefined"!==typeof __frmDatepicker){var a=__frmDatepicker,b=this.id,c=b.split("-"),c=H(this.name)?'input[id^="'+c[0]+'"]':'input[id^="'+c.join("-")+'"]';jQuery.datepicker.setDefaults(jQuery.datepicker.regional[""]);for(var d=0,f=0;f<a.length;f++)if(a[f].triggerID=="#"+b||a[f].triggerID==c){d=f;break}""!==a[d].options.defaultDate&&(a[d].options.defaultDate=new Date(a[d].options.defaultDate));jQuery(this).datepicker(jQuery.extend(jQuery.datepicker.regional[a[d].locale],
4
- a[d].options))}}function t(a){if("undefined"!==typeof __frmDropzone)for(var b=__frmDropzone,c=0;c<b.length;c++)y(c,a)}function y(a,b){var c=__frmDropzone,d="#"+c[a].htmlID+"_dropzone",f=c[a].fieldName;"undefined"!==typeof b&&-1!==d.indexOf("-0_dropzone")&&(d=d.replace("-0_dropzone","-"+b+"_dropzone"),f=f.replace("[0]","["+b+"]"),delete c[a].mockFiles);d=jQuery(d);if(!(1>d.length||d.hasClass("dz-clickable"))){var e=c[a].maxFiles;if("undefined"!==typeof c[a].mockFiles){var h=c[a].mockFiles.length;0<
5
- e&&(e-=h)}var g=d.closest("form"),h="#"+g.attr("id");"#undefined"==h&&(h="form."+g.attr("class").replace(" ","."));d.dropzone({url:frm_js.ajax_url,addRemoveLinks:!0,paramName:d.attr("id").replace("_dropzone",""),maxFilesize:c[a].maxFilesize,maxFiles:e,uploadMultiple:c[a].uploadMultiple,hiddenInputContainer:h,dictDefaultMessage:c[a].defaultMessage,dictFallbackMessage:c[a].fallbackMessage,dictFallbackText:c[a].fallbackText,dictFileTooBig:c[a].fileTooBig,dictInvalidFileType:c[a].invalidFileType,dictResponseError:c[a].responseError,
6
- dictCancelUpload:c[a].cancel,dictCancelUploadConfirmation:c[a].cancelConfirm,dictRemoveFile:c[a].remove,dictMaxFilesExceeded:c[a].maxFilesExceeded,fallback:function(){jQuery(this.element).closest("form").removeClass("frm_ajax_submit")},init:function(){this.on("sending",function(b,d,f){d=""!==document.getElementById("frm_verify").value?!0:!1;if(d)return this.removeFile(b),alert("Oops. That file looks like Spam."),!1;f.append("action","frm_submit_dropzone");f.append("field_id",c[a].fieldID);f.append("form_id",
7
- c[a].formID)});this.on("success",function(b,d){for(var e=jQuery.parseJSON(d),g=0;g<e.length;g++)!0!==c[a].uploadMultiple&&jQuery('input[name="'+f+'"]').val(e[g])});this.on("successmultiple",function(b,d){for(var e=jQuery.parseJSON(d),g=0;g<b.length;g++)jQuery(b[g].previewElement).append(z(c[a],e[g],f))});this.on("complete",function(b){if("undefined"!==typeof b.mediaID){c[a].uploadMultiple&&jQuery(b.previewElement).append(z(c[a],b.mediaID,f));for(var d=b.previewElement.querySelectorAll("[data-dz-name]"),
8
- e=0,g=d.length;e<g;e++)d[e].innerHTML='<a href="'+b.url+'">'+b.name+"</a>"}});this.on("addedfile",function(){S(g)});this.on("queuecomplete",function(){I(g,"enable")});this.on("removedfile",function(b){!1!==b.accepted&&!0!==c[a].uploadMultiple&&jQuery('input[name="'+f+'"]').val("");!1!==b.accepted&&"undefined"!==typeof b.mediaID&&(jQuery(b.previewElement).remove(),this.options.maxFiles=c[a].maxFiles-this.files.length)});if("undefined"!==typeof c[a].mockFiles)for(var b=0;b<c[a].mockFiles.length;b++){var d=
9
  {name:c[a].mockFiles[b].name,size:c[a].mockFiles[b].size,url:c[a].mockFiles[b].file_url,mediaID:c[a].mockFiles[b].id};this.emit("addedfile",d);this.emit("thumbnail",d,c[a].mockFiles[b].url);this.emit("complete",d);this.files.push(d)}}})}}function z(a,b,c){return'<input name="'+c+'[]" type="hidden" value="'+b+'" data-frmfile="'+a.fieldID+'" />'}function B(){var a=jQuery(this).data("frm-remove");bb(jQuery(this).parent(".dz-preview"));a=jQuery('input[name="'+a+'"]');a.length&&a.val("")}function w(){var a=
10
- this.type,b=!1,c=!1;if("select-one"===a)c=!0,"frm_other_trigger"===this.options[this.selectedIndex].className&&(b=!0);else if("select-multiple"===a)for(var c=!0,d=this.options,b=!1,f=0;f<d.length;f++)if("frm_other_trigger"===d[f].className&&d[f].selected){b=!0;break}c?(a=jQuery(this).parent().children(".frm_other_input"),a.length&&(b?a[0].className=a[0].className.replace("frm_pos_none",""):(1>a[0].className.indexOf("frm_pos_none")&&(a[0].className+=" frm_pos_none"),a[0].value=""))):"radio"===a?jQuery(this).is(":checked")&&
11
  (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=p(this,!1);if(b&&"undefined"!==typeof b&&(!a.frmTriggered||
12
  a.frmTriggered!=b)&&(la(b,jQuery(this)),a="undefined"!==typeof a.originalEvent||-1<a.currentTarget.className.indexOf("frm_chzn")?"value changed":"other",ma(b,jQuery(this),a),T(b,jQuery(this)),jQuery(this).closest("form").hasClass("frm_js_validate"))){b=[];a=jQuery(this).closest(".frm_form_field");a.hasClass("frm_required_field")&&!jQuery(this).hasClass("frm_optional")&&(b=na(this,b));if(1>b.length)if("email"==this.type)var c=jQuery(this).closest("form").find("input[type=email]"),b=oa(this,b,c);else"number"==
13
- this.type?b=pa(this,b):null!==this.pattern&&(b=qa(this,b));a.removeClass("frm_blank_field");a.find(".frm_error").remove();if(0<Object.keys(b).length)for(var d in b)U(a,d,b)}}function p(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],f=!1;if(1===c.length)return d;if("[form"===
14
- c[1]||"[row_ids"===c[1])return 0;jQuery('input[name="item_meta['+d+'][form]"]').length&&(d=c[2].replace("[",""),f=!0);"other"===d&&(d=f?c[3].replace("[",""):c[1].replace("[",""));!0===b&&(d=d===c[0]?d+"-"+c[1].replace("[",""):d+"-"+c[0]+"-"+c[1].replace("[",""));return d}function la(a,b){if(!("undefined"===typeof __FRMRULES||"undefined"===typeof __FRMRULES[a]||1>__FRMRULES[a].dependents.length||null===b||"undefined"===typeof b))for(var c=__FRMRULES[a],d=J(b[0].name),f=0,e=c.dependents.length;f<e;f++)K(c.dependents[f],
15
- d)}function K(a,b){var c=V(a);if(!(!1===c||1>c.conditions.length)){var d;d=[];if(c.isRepeating)if(""!==b.repeatingSection){var f="frm_field_"+c.fieldId+"-",f=f+(b.repeatingSection+"-"+b.repeatRow+"_container");d.push(f)}else if(d=L(c),null!==document.getElementById("frm_field_"+d+"_container")){d=[];for(var f=document.querySelectorAll(".frm_field_"+c.fieldId+"_container"),e=0,h=f.length;e<h;e++)d.push(f[e].id)}else{d=[];for(var e=L(c),f="frm_field_"+c.fieldId+"-"+e+"-",e=document.querySelectorAll('[name="item_meta['+
16
- e+'][row_ids][]"]'),h=0,g=e.length;h<g;h++)""!==e[h].value&&d.push(f+e[h].value+"_container");1>d.length&&d.push(f+"0_container")}else d.push("frm_field_"+c.fieldId+"_container");f=d.length;for(e=0;e<f;e++)c.containerId=d[e],ra(c,d[e]),sa(c)}}function L(a){var b="";"0"!==a.inEmbedForm?b=a.inEmbedForm:"0"!==a.inSection&&(b=a.inSection);return b}function ra(a,b){if(a.isRepeating){var c=b.replace("_container","").split("-");a.repeatRow=c[2]}else a.repeatRow=""}function sa(a){for(var b=[],c=a.conditions.length,
17
  d=0;d<c;d++)b.push(cb(a.conditions[d],a));c=D="any"==a.anyAll?-1<b.indexOf(!0)?a.showHide:ta(a.showHide):-1<b.indexOf(!1)?ta(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?db(a,b):
18
  b&&eb(a)):!1!==C(a.containerId,a.formId)&&(E(a.containerId,a.formId),b?(b=ua(a.containerId),va(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId),jQuery("#"+a.containerId).show()):(b=wa(a),va(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId))):W(a,b)}function V(a){return"undefined"===typeof __FRMRULES||"undefined"===typeof __FRMRULES[a]?!1:__FRMRULES[a]}function cb(a,b){var c=V(a.fieldId),d=xa(c,b);"data"==b.fieldType&&"data"==c.fieldType?(c=""===a.value?""===d||1==d.length&&""===d[0]?
19
  !1:!0:X(a.operator,a.value,d),b.dataLogic=a,b.dataLogic.actualValue=d,d=c):d=X(a.operator,a.value,d);return d}function xa(a,b){var c;if("radio"==a.inputType||"checkbox"==a.inputType)c=ya(a,b),c=document.querySelectorAll('input[name^="'+c+'"]'),c="checkbox"==a.inputType?M(c):Y(c);else if(!0===a.isMultiSelect){c=ya(a,b);var d=document.querySelectorAll('[name^="'+c+'"]');1==d.length&&"hidden"!=d[0].type?(c=jQuery('[name^="'+c+'"]').val(),null===c&&(c="")):c=M(d)}else if(c="field_"+a.fieldKey,a.isRepeating&&
20
- (c+="-"+b.repeatRow),d=document.getElementById(c),null===d){d="";if("time"==a.fieldType){var f=document.getElementById(c+"_H");null!==f&&(d=document.getElementById(c+"_m"),d=f.value+":"+d.value,c=document.getElementById(c+"_A"),":"==d?d="":null!==c&&(d+=" "+c.value))}c=d}else c=d.value;"undefined"===typeof c?c="":"string"===typeof c&&(c=c.trim());return c}function ya(a,b){return a.isRepeating?"item_meta["+("0"!==b.inEmbedForm?b.inEmbedForm:b.inSection)+"]["+b.repeatRow+"]["+a.fieldId+"]":"item_meta["+
21
  a.fieldId+"]"}function M(a){for(var b=[],c=0,d=a.length;c<d;c++)("hidden"==a[c].type||a[c].checked)&&b.push(a[c].value);0===b.length&&(b=!1);return b}function X(a,b,c){b=fb(b);c=gb(b,c);return"string"===typeof b&&"-1"!=b.indexOf("&quot;")&&X(a,b.replace("&quot;",'"'),c)?!0:{"==":function(a,b){return a==b},"!=":function(a,b){return a!=b},"<":function(a,b){return a>b},">":function(a,b){return a<b},LIKE:function(a,b){if(!b)return!1;a=Z(a);b=za(a,b);return-1!=b.indexOf(a)},"not LIKE":function(a,b){if(!b)return!0;
22
- a=Z(a);b=za(a,b);return-1==b.indexOf(a)}}[a](b,c)}function fb(a){-1!==String(a).search(/^\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*$/)?a=parseFloat(a):"string"===typeof a&&(a=a.trim());return a}function gb(a,b){"undefined"===typeof b&&(b="");jQuery.isArray(b)&&-1<jQuery.inArray(String(a),b)&&(b=a);"number"===typeof a&&"string"===typeof b&&(b=parseFloat(b));"string"===typeof b&&(b=b.trim());return b}function za(a,b){b=Z(b);var c;if(jQuery.isArray(b))for(var d=0,f=b.length;d<f;d++)if(c=b[d].toLowerCase(),
23
  -1<c.indexOf(a)){b=a;break}return b}function Z(a){"string"===typeof a?a=a.toLowerCase():"number"===typeof a&&(a=a.toString());return a}function ta(a){return"show"==a?"hide":"show"}function ua(a){return document.getElementById(a).querySelectorAll('select[name^="item_meta"], textarea[name^="item_meta"], input[name^="item_meta"]')}function wa(a){if("divider"==a.fieldType){var b=[];"divider"==a.fieldType&&(b=document.querySelectorAll('[data-sectionid="'+a.fieldId+'"]'));a=b}else"form"==a.fieldType?a=
24
- document.querySelectorAll('[id^="field_'+a.fieldKey+'-"]'):(a=a.isRepeating?"item_meta["+L(a)+"]["+a.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]",a=document.querySelectorAll('[name^="'+a+'"]'));return a}function va(a,b,c){if(a.length)for(var d,f=["checkbox","radio"],e=0;e<a.length;e++)if(!(0<e&&"undefined"!==typeof d&&d.name==a[e].name&&-1<f.indexOf(d.type)||b&&N(a[e],c))){d=a[e];var h=jQuery(d),g=h.data("frmval");if("undefined"!==typeof g){if("checkbox"==d.type||"radio"==d.type)Aa(d.name,
25
- g);else if(-1<d.name.indexOf("[]")){var k=document.getElementsByName(d.name);if(jQuery.isArray(g))for(var n=0,l=g.length;n<l;n++)n in k&&(k[n].value=g[n]);else null!==k[0]&&(k[0].value=g)}else g.constructor===Object&&(k=d.getAttribute("name").split("[").slice(-1)[0],null!==k&&(k=k.replace("]",""),g=g[k],"undefined"==typeof g&&(g=""))),d.value=g;"SELECT"==d.tagName&&O(d);v(h)}d=a[e];h=p(d,!1);h=aa(h);!1!==h&&"lookup"!=h.fieldType&&Ba(h,d,"value changed");d=a[e];if(h="undefined"!==typeof __FRMCALC){h=
26
- 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(H(g))for(g=k.split("-"),k="",n=0;n<g.length-1;n++)k=""===k?g[n]:k+"-"+g[n];g=k;k=null;H(d.name)&&(k="hidden"!=d.type?jQuery(d).closest(".frm_form_field"):jQuery(d));d=k;void 0!==h.calc[g]&&ba(h,g,[],d)}d=a[e]}}function N(a,b){var c=p(a,!0);return C("frm_field_"+c+"_container",b)}function W(a,b){if(!C(a.containerId,a.formId)){if(b){jQuery("#"+a.containerId).hide();var c=ua(a.containerId)}else c=
27
- wa(a);ca(c);Ca(a.containerId,a.formId)}}function ca(a){if(!(1>a.length)){for(var b,c=!0,d=0,f=a.length;d<f;d++)-1<a[d].className.indexOf("frm_dnc")||(0<d&&b.name!=a[d].name&&!0===c&&v(jQuery(b)),c=!0,"radio"==a[d].type||"checkbox"==a[d].type?a[d].checked=!1:"SELECT"==a[d].tagName?(0===a[d].selectedIndex?c=!1:a[d].selectedIndex=0,b=a[d].id.replace(/[^\w]/g,"_"),null!==document.getElementById(b+"_chosen")&&jQuery(a[d]).trigger("chosen:updated")):a[d].value=""),b=a[d];!0===c&&v(jQuery(b))}}function C(a,
28
- b){var c=!1;-1<F(b).indexOf(a)&&(c=!0);return c}function Ca(a,b){var c=F(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 F(a){var b=[];a=document.getElementById("frm_hide_fields_"+a);return null===a?b:b=(b=a.value)?JSON.parse(b):[]}function Aa(a,b){for(var c=document.getElementsByName(a),d=0,f=c.length;d<f;d++)if("hidden"==c[d].type)jQuery.isArray(b)&&null!==b[d]?c[d].value=b[d]:c[d].value=b;else if(c[d].value==
29
- b||jQuery.isArray(b)&&-1<b.indexOf(c[d].value))if(c[d].checked=!0,"radio"==c[d].type)break}function E(a,b){var c=F(b),d=c.indexOf(a);-1<d&&(c.splice(d,1),c=JSON.stringify(c),document.getElementById("frm_hide_fields_"+b).value=c)}function ma(a,b,c){if(!("undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]||1>__FRMLOOKUP[a].dependents.length||null===b||"undefined"===typeof b)){a=__FRMLOOKUP[a];b=J(b[0].name);for(var d=0,f=a.dependents.length;d<f;d++)da(a.dependents[d],b,c)}}function da(a,
30
- b,c){a=aa(a);if(!(!1===a||1>a.parents.length))if("lookup"==a.fieldType){if(""!==b.repeatRow){c=[];var d="frm_field_"+a.fieldId+"-",d=d+(b.repeatingSection+"-"+b.repeatRow+"_container");b=document.getElementById(d);null!==b&&c.push(b);b=c}else b=[],a.isRepeating?b=document.querySelectorAll(".frm_field_"+a.fieldId+"_container"):(c=document.getElementById("frm_field_"+a.fieldId+"_container"),null!==c&&b.push(c));c=0;for(d=b.length;c<d;c++){ra(a,b[c].id);var f=a,e=b[c];f.parentVals=Da(f);if("select"==
31
- f.inputType)hb(f,e);else if("radio"==f.inputType||"checkbox"==f.inputType)if(!1===f.parentVals){var h=e.getElementsByTagName("input");Ea(f,e);ca(h)}else ib(f,e)}}else if("value changed"===c)for(c="field_"+a.fieldKey,c=a.isRepeating?""!==b.repeatingSection?'[id="'+c+"-"+b.repeatRow+'"]':'[id^="'+c+'-"]':'[id="'+c+'"]',b=document.querySelectorAll(c),c=0,d=b.length;c<d;c++)f=a,e=J(b[c].name),f.repeatRow=""!==e.repeatRow?e.repeatRow:"",Ba(a,b[c])}function aa(a){return"undefined"===typeof __FRMLOOKUP||
32
- "undefined"===typeof __FRMLOOKUP[a]?!1:__FRMLOOKUP[a]}function Ba(a,b){a.parentVals=Da(a);var c=b.id;c in r&&0<r[c].length?Fa(a,b):(Fa(a,b),Ga(a,b))}function Da(a){for(var b=[],c=a.parents,d,f=0,e=c.length;f<e;f++){d=aa(c[f]);d=xa(d,a);if(""===d||!1===d){b=!1;break}b[f]=d}return b}function Y(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 hb(a,b){var c=b.getElementsByTagName("SELECT")[0];if(null!==c){var d=c.value;!1===a.parentVals?
33
- (c.options.length=1,c.value="",O(c),""!==d&&v(jQuery(c),a.fieldKey)):(jb(c),ea(a.formId),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_replace_lookup_field_options",parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,nonce:frm_js.nonce},success:function(d){var f=c.value;d=JSON.parse(d);for(var h=c.options.length;0<h;h--)c.remove(h);for(var g=d.length,h=0;h<g;h++)c.options[h+1]=new Option(d[h],d[h],!1,!1);c.value=f;""===c.value&&(d=c.getAttribute("data-frmval"),null!==
34
- d&&(c.value=d));!1===a.isReadOnly&&(c.disabled=!1);c.className=c.className.replace(" frm_loading_lookup","");O(c);c.value!=f&&v(jQuery(c),a.fieldKey);Ha(jQuery(b));fa(a.formId)}}))}}function O(a){-1<a.className.indexOf("frm_chzn")&&jQuery().chosen&&jQuery(a).trigger("chosen:updated")}function jb(a){a.className+=" frm_loading_lookup";a.disabled=!0;O(a)}function ea(a){P++;1>=P&&(a=Ia(a),null!==a&&S(jQuery(a)))}function fa(a){P--;0>=P&&(a=Ia(a),null!==a&&I(jQuery(a),"enable"))}function Ia(a){return document.querySelector("#frm_form_"+
35
- a+"_container form")}function ib(a,b){var c=b.getElementsByClassName("frm_opt_container")[0],d=c.getElementsByTagName("input");kb(b,c);var f="",f="radio"==a.inputType?Y(d):M(d),e=jQuery(d[0]).data("frmval");ea(a.formId);jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_replace_cb_radio_lookup_options",parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,container_field_id:L(a),row_index:a.repeatRow,current_value:f,default_value:e,nonce:frm_js.nonce},success:function(f){c.innerHTML=
36
- f;f=b.getElementsByClassName("frm-loading-img")[0];null!==f&&void 0!==f&&f.parentNode.removeChild(f);c.style.display="block";1==d.length&&""===d[0].value?Ea(a,b):(!1!==C(b.id,a.formId)&&(f=V(a.fieldId),!1===f||1>f.conditions.length?(E(b.id,a.formId),jQuery("#"+b.id).show()):(f.containerId=b.id,f.repeatRow=a.repeatRow,sa(f))),void 0!==e&&(!1!==("radio"==a.inputType?Y(d):M(d))||1>d.length||Aa(d[0].name,e)));v(jQuery(d[0]),a.fieldKey);Ha(jQuery(b));fa(a.formId)}})}function Ha(a){a.trigger("frmLookupOptionsLoaded")}
37
  function Ea(a,b){C(b.id,a.formId)||(jQuery("#"+b.id).hide(),Ca(b.id,a.formId))}function Ga(a,b){if(N(b,a.formId))ga(b.id);else if(!1===a.parentVals){var c=b.getAttribute("data-frmval");null===c&&(c="");Ja(a,b,c);ga(b.id)}else ea(a.formId),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){N(b,a.formId)||b.value==c||Ja(a.fieldKey,b,c);fa(a.formId);ga(b.id)}})}
38
  function Fa(a,b){var c=b.id;c in r?2<=r[c].length&&(r[c]=r[c].slice(0,1)):r[c]=[];r[c].push({childFieldArgs:a,childInput:b})}function ga(a){r[a].shift();a in r&&0<r[a].length&&Ga(r[a][0].childFieldArgs,r[a][0].childInput)}function Ja(a,b,c){c=c.replace(/&amp;/g,"&");b.value=c;v(jQuery(b),a)}function db(a,b){if(b){var c=jQuery("#"+a.containerId);Ka(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,
39
- on_current_page:b,nonce:frm_js.nonce},success:function(d){if(b){var f=c.find(".frm_opt_container");f.html(d);var e=f.children("input"),h=e.val();La(f);""===d||""===h?W(a,!0):Ma(a,c,e,!0)}else f="field_"+a.fieldKey,""!==a.repeatRow&&(f+="-"+a.repeatRow),f=document.getElementById(f),f.value=d,C(a.containerId,a.formId)&&E(a.containerId,a.formId),v(jQuery(f))}})}function eb(a,b){var c=jQuery("#"+a.containerId),d=c.find('select[name^="item_meta"], input[name^="item_meta"]'),f=Na(d),d=d.data("frmval"),
40
- e=c.closest("form").find('input[name="id"]').val();Ka(c);jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_fields_ajax_data_options",trigger_field_id:a.dataLogic.fieldId,entry_id:a.dataLogic.actualValue,field_id:a.fieldId,default_value:d,container_id:a.containerId,editing_entry:e,prev_val:f,nonce:frm_js.nonce},success:function(b){var d=c.find(".frm_opt_container");d.html(b);var e=d.find('select, input[type="checkbox"], input[type="radio"]');La(d);""===b||1>e.length?W(a,!0):(b=Na(e),Ma(a,
41
- c,e,f!==b))}})}function Ka(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 kb(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 La(a){a.parent().children(".frm-loading-img").remove();a.show()}function Na(a){var b=[],c="";a.each(function(){c=this.value;"radio"===
42
- this.type||"checkbox"===this.type?!0===this.checked&&b.push(c):""!==c&&b.push(c)});0===b.length&&(b="");return b}function Ma(a,b,c,d){C(a.containerId,a.formId)&&(E(a.containerId,a.formId),b.show());c.hasClass("frm_chzn")&&ha();!0===d&&v(c)}function T(a,b){if("undefined"!==typeof __FRMCALC){var c=__FRMCALC,d=c.fields[a];if("undefined"!==typeof d)for(var d=d.total,f=[],e=0,h=d.length;e<h;e++){var g;g=c.calc[d[e]];var k=b.attr("name"),n=!1,l=g.field_id,m=F(g.form_id);1>m.length||("0"===g.inSection&&
43
- "0"===g.inEmbedForm?n=Q(l,m):(k=J(k),Q(l,m)?n=!0:Oa(l,k,m)?n=!0:"0"!==g.inSection&&"0"!==g.inEmbedForm?n=Oa(g.inSection,k,m):"0"!==g.inSection?n=Q(g.inSection,m):"0"!==g.inEmbedForm&&(n=Q(g.inEmbedForm,m))));g=n;!1===g&&ba(c,d[e],f,b)}}}function Q(a,b){return-1<b.indexOf("frm_field_"+a+"_container")}function Oa(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 ba(a,b,c,d){var f=a.calc[b],e=f.calc,h=jQuery(document.getElementById("field_"+
44
- b)),g={triggerField:d,inSection:!1,thisFieldCall:'input[id^="field_'+b+'-"]'};1>h.length&&"undefined"!==typeof d&&(g.inSection=!0,g.thisFieldId=lb(a.fieldsWithCalc,b),h=Pa(g));if(!(null===h||1>h.length)){e=mb(f,e,a,c,g);if("text"!=f.calc_type){a=f.calc_dec;-1<e.indexOf(").toFixed(")&&(c=e.split(").toFixed("),Qa(c[1])&&(a=c[1],e=e.replace(").toFixed("+a,"")));e=nb(e);e=parseFloat(eval(e));if("undefined"===typeof e||isNaN(e))e=0;Qa(a)&&(e=e.toFixed(a))}h.val()!=e&&(h.val(e),v(h,b))}}function mb(a,b,
45
- c,d,f){for(var e=0,h=a.fields.length;e<h;e++){var g={triggerField:f.triggerField,thisFieldId:a.fields[e],inSection:f.inSection,valKey:f.inSection+""+a.fields[e],thisField:c.fields[a.fields[e]],thisFieldCall:"input"+c.fieldKeys[a.fields[e]]},k=c;"checkbox"==g.thisField.type||"radio"==g.thisField.type||"scale"==g.thisField.type?g.thisFieldCall=g.thisFieldCall+":checked,"+g.thisFieldCall+"[type=hidden]":"select"==g.thisField.type||"time"==g.thisField.type?g.thisFieldCall="select"+k.fieldKeys[g.thisFieldId]+
46
  " option:selected,"+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=ob(g,d),"undefined"===typeof d[g.valKey]&&(d[g.valKey]="");else{g.valKey="num"+g.valKey;d=pb(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=
47
- b.replace(new RegExp(k,"g"),d[g.valKey])}return b}function nb(a){var b=a.charAt(a.length-1);if("+"===b||"-"===b)a=a.substr(0,a.length-1);return a}function H(a){return 3<=a.split("][").length}function pb(a,b,c){if("undefined"!==typeof c[a.valKey]&&0!==c[a.valKey])return c;c[a.valKey]=0;var d=Ra(a);if(!1===d)return c;d.each(function(){var d=Sa(a.thisField,this);if("date"==a.thisField.type){var e;e=b.date;var h=0;if(d)if("undefined"===typeof jQuery.datepicker){h="-";-1<e.indexOf("/")&&(h="/");e=e.split(h);
48
- var d=d.split(h),g,k;g=h=k="";for(var n=0;n<e.length;n++)if("y"==e[n])g=((new Date).getFullYear()+15).toString().substr(2,2),g=d[n]>g?"19"+d[n]:"20"+d[n];else if("yy"==e[n])g=d[n];else if("m"==e[n]||"mm"==e[n])h=d[n],2>h.length&&(h="0"+h);else if("d"==e[n]||"dd"==e[n])k=d[n],2>k.length&&(k="0"+k);h=Date.parse(g+"-"+h+"-"+k)}else h=jQuery.datepicker.parseDate(e,d);e=h;null!==e&&(c[a.valKey]=Math.ceil(e/864E5))}else{e=d;""!==e&&0!==e&&(e=e.trim(),e=parseFloat(e.replace(/,/g,"").match(/-?[\d\.]+$/)));
49
- if("undefined"===typeof e||isNaN(e)||""===e)e=0;c[a.valKey]+=e}});return c}function ob(a,b){if("undefined"!==typeof b[a.valKey]&&""!==b[a.valKey])return b;b[a.valKey]="";var c=Ra(a);if(!1===c)return b;var d=0,f="";c.each(function(){var c=Sa(a.thisField,this),c=c.trim();0<d&&("time"==a.thisField.type?1==d?f=":":2==d&&(f=" "):f=", ");""!==c&&(b[a.valKey]+=f+c,d++)});return b}function Ra(a){var b;if(!1===a.inSection)b=jQuery(a.thisFieldCall);else if(b=Pa(a),null===b||"undefined"===typeof b)b=jQuery(a.thisFieldCall);
50
  if(null===b||"undefined"===typeof b||1>b.length)b=!1;return b}function Pa(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 Sa(a,b){var c;c=!1;if("hidden"==b.type)""!==ia(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_")&&
51
  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=ia(b))):c=jQuery(b).closest(".frm_other_container").find(".frm_other_input").val():"checkbox"!=a.type&&"radio"!=a.type||"hidden"==b.type||(c=ia(b))):c="checkbox"!==b.type&&"radio"!==b.type||!b.checked?jQuery(b).val():b.value;"undefined"===typeof c&&(c="");return c}function ia(a){var b="";a=document.getElementById(a.id+"-otext");null!==a&&""!==a.value&&(b=a.value);return b}function Ta(a){var b=
52
- !1;a=jQuery(a).find(".frm_saving_draft");a.length&&(b=a.val());return b}function Ua(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 na(a,b){var c=a.getAttribute("data-frmfile");if("hidden"==a.type&&null===c)return b;var d="",f="";if("checkbox"==a.type||"radio"==a.type)c=jQuery('input[name="'+a.name+'"]').closest(".frm_required_field").find("input:checked"),
53
- jQuery(c).each(function(){d=this.value});else if("file"==a.type||c)"undefined"===typeof c&&(c=p(a,!0),c=c.replace("file","")),"undefined"===typeof b[c]&&(d=qb(c)),f=c;else{c=a.className;if(-1!==c.indexOf("frm_pos_none"))return b;d=jQuery(a).val();if(null===d)d="";else if("string"!==typeof d)for(var f=d,d="",e=0;e<f.length;e++)""!==f[e]&&(d=f[e]);f=-1===c.indexOf("frm_other_input")?p(a,!0):p(a,!1);-1!==c.indexOf("frm_time_select")&&(f=f.replace("-H","").replace("-m",""))}""===d&&(""===f&&(f=p(a,!0)),
54
- f in b||(b[f]=G(a,"data-reqmsg")));return b}function qb(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 oa(a,b,c){var d=a.value,f=p(a,!0);if(f in b)return b;var e=0===f.indexOf("conf_");if(""!==d||e){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=G(a,"data-invmsg");""!==
55
- d&&!1===h.test(d)?(b[f]=g,e&&(b[f.replace("conf_","")]="")):e&&(a=a.name.replace("conf_",""),c.filter('[name="'+a+'"]').val()!==d&&(b[f]="",b[f.replace("conf_","")]=""))}return b}function pa(a,b){var c=a.value;""!==c&&!1!==isNaN(c/1)&&(c=p(a,!0),c in b||(b[c]=G(a,"data-invmsg")));return b}function qa(a,b){var c=a.value,d=G(a,"pattern");if(""!==d&&""!==c){var f=p(a,!0);f in b||(d=new RegExp("^"+d+"$","i"),!1===d.test(c)&&(b[f]=G(a,"data-invmsg")))}return b}function G(a,b){var c=a.getAttribute(b);null===
56
  c&&(c="");return c}function rb(a,b){"undefined"==typeof b&&jQuery(a).find('input[name="frm_action"]').val();var c=jQuery(a).find(".frm_form_field");c.addClass("frm_doing_ajax");jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:jQuery(a).serialize()+"&action=frm_entries_"+b+"&nonce="+frm_js.nonce,success:function(b){var d={content:"",errors:{},pass:!1};null===b&&(b=d);b=b.replace(/^\s+|\s+$/g,"");b=0===b.indexOf("{")?jQuery.parseJSON(b):d;if("undefined"!=typeof b.redirect)window.location=b.redirect;
57
- else if(""!==b.content){I(jQuery(a));-1!=frm_js.offset&&frmFrontForm.scrollMsg(jQuery(a),!1);var e=jQuery(a).find('input[name="form_id"]').val();b.content=b.content.replace(/ frm_pro_form /g," frm_pro_form frm_no_hide ");jQuery(a).closest(".frm_forms").replaceWith(b.content);d=b;if(history.pushState&&"undefined"!=typeof d.page){var h,g=d.page;h=encodeURI("frm_page");for(var g=encodeURI(g),k=document.location.search.substr(1).split("&"),n=k.length,l;n--;)if(l=k[n].split("="),l[0]==h){l[1]=g;k[n]=l.join("=");
58
- break}0>n&&(k[k.length]=[h,g].join("="));h=k.join("&");window.history.pushState({html:d.html},"","?"+h)}"function"==typeof frmThemeOverride_frmAfterSubmit&&(e=jQuery('input[name="frm_page_order_'+e+'"]').val(),d=jQuery(b.content).find('input[name="form_id"]').val(),frmThemeOverride_frmAfterSubmit(d,e,b.content,a));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&&
59
- ja("pageLoad");ka()}else if(Object.keys(b.errors).length){I(jQuery(a),"enable");d=!0;Va();h=!1;for(e in b.errors)g=jQuery(a).find("#frm_field_"+e+"_container"),g.length&&(g.is(":visible")||(k=g.closest(".frm_toggle_container"),k.length&&(k=k.prev(),k.hasClass("frm_trigger")||(k=k.prev(".frm_trigger")),k.click())),g.is(":visible")&&(U(g,e,b.errors),d=!1,g=jQuery(a).find("#frm_field_"+e+"_container .frm-g-recaptcha, #frm_field_"+e+"_container .g-recaptcha"),g.length&&(h=!0,g=g.data("rid"),jQuery().grecaptcha&&
60
  (g?grecaptcha.reset(g):grecaptcha.reset()))));c.removeClass("frm_doing_ajax");Wa(a);!0!==h&&Xa(a,!1);d?a.submit():jQuery(a).prepend(b.error_message)}else sb(a),Xa(a,!0),a.submit()},error:function(){jQuery(a).find('input[type="submit"], input[type="button"]').removeAttr("disabled");a.submit()}})}function U(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>"))}
61
  function Va(){jQuery(".form-field").removeClass("frm_blank_field");jQuery(".form-field .frm_error").replaceWith("");jQuery(".frm_error_style").remove()}function Wa(a){var b=jQuery(a).find(".frm_blank_field:first");b.length&&frmFrontForm.scrollMsg(b,a,!0)}function S(a){a.hasClass("frm_loading_form")||a.addClass("frm_loading_form");a.find('input[type="submit"], input[type="button"], button[type="submit"]').attr("disabled","disabled")}function I(a,b){a.removeClass("frm_loading_form");"enable"==b&&a.find('input[type="submit"], input[type="button"], button[type="submit"]').removeAttr("disabled")}
62
  function sb(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 Xa(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 tb(){Ya(jQuery(this),
63
  "clear")}function ub(){Ya(jQuery(this),"replace")}function Ya(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 vb(){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",
64
- entry_id:b,form_id:c,nonce:frm_js.nonce},success:function(b){a.replaceWith(b)}});return!1}function wb(a,b){google.load("visualization","1.0",{packages:[b],callback:function(){var b=new google.visualization.DataTable,d=!1;-1!==jQuery.inArray("id",a.options.fields)&&(d=!0,b.addColumn("number",frm_js.id));for(var f=a.fields.length,e,h=0,g=f;h<g;h++){var k=a.fields[h];e=Za(k);b.addColumn(e,k.name)}h=!1;a.options.edit_link&&(h=!0,b.addColumn("string",a.options.edit_link));g=!1;a.options.delete_link&&(g=
65
- !0,b.addColumn("string",a.options.delete_link));if(null!==a.entries){var l=a.entries.length;b.addRows(l);for(var m=0,q=0;q<l;q++){var k=0,p=a.entries[q];d&&(b.setCell(m,k,p.id),k++);for(var r=0,t=f;r<t;r++){var u=a.fields[r];e=Za(u);u=p.metas[u.id];"number"!=e||null!==u&&""!==u?"boolean"==e&&(u=null===u||"false"==u||!1===u?!1:!0):u=0;b.setCell(m,k,u);k++}h&&("undefined"!==typeof p.editLink?b.setCell(m,k,'<a href="'+p.editLink+'">'+a.options.edit_link+"</a>"):b.setCell(m,k,""),k++);g&&("undefined"!==
66
- typeof p.deleteLink?b.setCell(m,k,'<a href="'+p.deleteLink+'" class="frm_delete_link" data-frmconfirm="'+a.options.confirm+'">'+a.options.delete_link+"</a>"):b.setCell(m,k,""));m++}}else for(b.addRows(1),h=k=0,g=f;h<g;h++)0<k?b.setCell(0,k,""):b.setCell(0,k,a.options.no_entries),k++;(new google.visualization.Table(document.getElementById("frm_google_table_"+a.options.form_id))).draw(b,a.graphOpts)}})}function xb(a){google.load("visualization","1.0",{packages:[a["package"]],callback:function(){var b;
67
  new google.visualization.DataTable;b=google.visualization.arrayToDataTable(a.data);var c=document.getElementById("chart_"+a.graph_id);if(null!==c){var d=a.type.charAt(0).toUpperCase()+a.type.slice(1);"Histogram"!==d&&"Table"!==d&&(d+="Chart");c=new google.visualization[d](c);c.draw(b,a.options);jQuery(document).trigger("frmDrawChart",[c,"chart_"+a.graph_id,b])}}})}function Za(a){var b="string";if("number"==a.type)b="number";else if("checkbox"==a.type||"select"==a.type){var c=a.options.length;"select"==
68
- a.type&&""===a.options[0]&&(c="post_status"==a.field_options.post_field?3:c-1);1==c&&(b="boolean")}return b}function yb(){var a=jQuery(this).data("key"),b=jQuery(this).data("parent"),c="frm_section_"+b+"-"+a,d=jQuery(document.getElementById(c)),f=d.find("input, select, textarea"),e=jQuery(this).closest("form").find('input[name="form_id"]').val();d.fadeOut("slow",function(){d.remove();f.each(function(){var c=p(this,!1);"file"!=this.type&&T(c,jQuery(this));E("frm_field_"+c+"-"+b+"-"+a+"_container",
69
- e)});"function"==typeof frmThemeOverride_frmRemoveRow&&frmThemeOverride_frmRemoveRow(c,d)});return!1}function zb(){if(!0===R)return!1;R=!0;var a=jQuery(this).data("parent"),b=0;if(0<jQuery(".frm_repeat_"+a).length)var c=jQuery(".frm_repeat_"+a+":last").attr("id").replace("frm_section_"+a+"-",""),b=-1<c.indexOf("i")?1:1+parseInt(c);jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_add_form_row",field_id:a,i:b,nonce:frm_js.nonce},success:function(c){var d=c.html,e=jQuery(d).hide().fadeIn("slow");
70
- jQuery(".frm_repeat_"+a+":last").after(e);var h=["other"],g,k,l={repeatingSection:a.toString(),repeatRow:b.toString()};jQuery(d).find("input, select, textarea").each(function(){if("file"!=this.type){if(""===this.name)return!0;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),K(g,l),da(g,l,"value changed"),la(g,k),ma(g,k,"value changed"),T(g,k))}});t(l.repeatRow);$a();ha();"function"==typeof frmThemeOverride_frmAddRow&&
71
- frmThemeOverride_frmAddRow(a,c);R=!1},error:function(){R=!1}});return!1}function Ab(){var a=jQuery(this),b=a.data("entryid"),c=a.data("prefix"),d=a.data("pageid"),f=a.data("formid"),e=a.data("cancel"),h=a.data("fields"),g=a.data("excludefields"),k=jQuery(document.getElementById(c+b)),l=k.html();k.html('<span class="frm-loading-img" id="'+c+b+'"></span><div class="frm_orig_content" style="display:none">'+l+"</div>");jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",
72
- post_id:d,entry_id:b,id:f,nonce:frm_js.nonce,fields:h,exclude_fields:g},success:function(d){k.children(".frm-loading-img").replaceWith(d);a.removeClass("frm_inplace_edit").addClass("frm_cancel_edit");a.html(e);ja("editInPlace");jQuery(document).on("change",'.frm-show-form input[name^="item_meta"], .frm-show-form select[name^="item_meta"], .frm-show-form textarea[name^="item_meta"]',A);ka(c+b)}});return!1}function Bb(){var a=jQuery(this),b=a.data("entryid"),c=a.data("prefix"),d=a.data("edit");a.hasClass("frm_ajax_edited")||
73
  (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 Cb(){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",
74
  entry:c,nonce:frm_js.nonce},success:function(a){if("success"==a.replace(/^\s+|\s+$/g,"")){var b=jQuery(document.getElementById(d+c));b.fadeOut("slow",function(){b.remove()});jQuery(document.getElementById("frm_delete_"+c)).fadeOut("slow")}else jQuery(document.getElementById("frm_delete_"+c)).replaceWith(a)}})}return!1}function ka(a){"undefined"!==typeof __frmHideFields&&frmFrontForm.hidePreviouslyHiddenFields();jQuery(document).on("focusin",".frm_date",q);if("undefined"!==typeof __frmMasks)for(var b=
75
  __frmMasks,c=0;c<b.length;c++)jQuery(b[c].trigger).attr("data-frmmask",b[c].mask);$a();ha(a);"undefined"!==typeof __frmDepDynamicFields&&frmFrontForm.checkDependentDynamicFields(__frmDepDynamicFields);"undefined"!==typeof __frmDepLookupFields&&frmFrontForm.checkDependentLookupFields(__frmDepLookupFields);if("undefined"!==typeof __FRMCALC){(a=__FRMCALC.triggers)&&jQuery(a.join()).trigger({type:"change",selfTriggered:!0});a=__FRMCALC.calc;var b=[],d;for(d in a)1>a[d].fields.length&&(c=document.getElementById("field_"+
76
  d),null===c||N(c,a[d].form_id)||ba(__FRMCALC,d,b))}t()}function ha(a){if(jQuery().chosen){var b={allow_single_deselect:!0,no_results_text:frm_js.no_results};"undefined"!==typeof __frmChosen&&(b="{"+__frmChosen+"}");"undefined"!==typeof a?jQuery("#"+a).find(".frm_chzn").chosen(b):jQuery(".frm_chzn").chosen(b)}}function $a(){if(jQuery().rating){var a=jQuery(".star");a.length&&a.rating()}}function ja(a){"undefined"!==typeof __frmHideOrShowFields?frmFrontForm.hideOrShowFields(__frmHideOrShowFields,a):
77
  ab()}function ab(){jQuery(".frm_pro_form").fadeIn("slow")}function v(a,b){"undefined"===typeof b&&(b="dependent");1<a.length&&(a=a.eq(0));a.trigger({type:"change",selfTriggered:!0,frmTriggered:b})}function J(a){var b={repeatingSection:"",repeatRow:""};"undefined"!==typeof a&&H(a)&&(a=a.split("]["),b.repeatingSection=a[0].replace("item_meta[",""),b.repeatRow=a[1]);return b}function bb(a){a.fadeOut("slow",function(){a.remove()})}function Db(){var a=jQuery(this).data("frmconfirm");return confirm(a)}
78
  function Eb(){var a=jQuery(this).data("frmtoggle");jQuery(a).is(":visible")?jQuery(a).slideUp("fast"):jQuery(a).slideDown("fast");return!1}function lb(a,b){for(var c in a)if(a.hasOwnProperty(c)&&a[c]===b)return c;return null}function Qa(a){return!jQuery.isArray(a)&&0<=a-parseFloat(a)+1}function Fb(){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})}
79
- function Gb(){"function"!==typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})}function Hb(){Array.prototype.filter||(Array.prototype.filter=function(a,b){if(void 0===this||null===this)throw new TypeError;var c=Object(this),d=c.length>>>0;if("function"!==typeof a)throw new TypeError;for(var f=[],e=0;e<d;e++)if(e in c){var h=c[e];a.call(b,h,e,c)&&f.push(h)}return f})}function Ib(){Object.keys||(Object.keys=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&
80
  b.push(c);return b})}var R=!1,D="",x=[],P=0,r={};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",m);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(){""===
81
  jQuery(this).val()&&jQuery(this).blur()});jQuery(document).on("focus",".frm_toggle_default",tb);jQuery(document).on("blur",".frm_toggle_default",ub);jQuery(".frm_toggle_default").blur();jQuery(document.getElementById("frm_resend_email")).click(vb);jQuery(document).on("click",".frm_remove_link",B);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"]',
82
  A);jQuery(document).on("click",'.frm-show-form input[type="submit"], .frm-show-form input[name="frm_prev_page"], .frm_page_back, .frm_page_skip, .frm-show-form .frm_save_draft, .frm_prev_page, .frm_button_submit',l);jQuery(document).on("change",'.frm_other_container input[type="checkbox"], .frm_other_container input[type="radio"], .frm_other_container select',w);jQuery(document).on("click",".frm_remove_form_row",yb);jQuery(document).on("click",".frm_add_form_row",zb);jQuery(document).on("click","a[data-frmconfirm]",
83
  Db);jQuery("a[data-frmtoggle]").click(Eb);jQuery(".frm_edit_link_container").on("click","a.frm_inplace_edit",Ab);jQuery(".frm_edit_link_container").on("click","a.frm_cancel_edit",Bb);jQuery(document).on("click",".frm_ajax_delete",Cb);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")):
84
  (a.addClass("ui-icon-triangle-1-e").removeClass("ui-icon-triangle-1-s"),jQuery(this).next(".frm_toggle_container").hide())});ja("pageLoad");ka();Fb();Gb();Hb();Ib()},submitForm:function(a){frmFrontForm.submitFormManual(a,this)},submitFormManual:function(a,b){var c=b.className.trim().split(/\s+/gi);if((!c||-1<c.indexOf("frm_pro_form"))&&!jQuery("body").hasClass("wp-admin")){a.preventDefault();var d=frmFrontForm.validateFormSubmit(b);0===Object.keys(d).length&&(S(jQuery(b)),-1<c.indexOf("frm_ajax_submit")?
85
  1>jQuery(b).find('input[type="file"]').filter(function(){return!!this.value}).length?(D=jQuery(b).find('input[name="frm_action"]').val(),frmFrontForm.checkFormErrors(b,D)):b.submit():b.submit())}},validateFormSubmit:function(a){"undefined"!=typeof tinyMCE&&jQuery(a).find(".wp-editor-wrap").length&&tinyMCE.triggerSave();x=[];var b=jQuery(a).hasClass("frm_js_validate");b&&(Ta(a)||Ua(a))&&(b=!1);b&&(frmFrontForm.getAjaxFormErrors(a),Object.keys(x).length&&frmFrontForm.addAjaxFormErrors(a));return x},
86
- getAjaxFormErrors:function(a){var b=[],c=jQuery(a).find(".frm_required_field:visible input, .frm_required_field:visible select, .frm_required_field:visible textarea").filter(":not(.frm_optional)");if(c.length)for(var d=0,f=c.length;d<f;d++)b=na(c[d],b);c=jQuery(a).find("input[type=email]").filter(":visible");d=jQuery(a).find("input,select,textarea");if(d.length)for(var f=0,e=d.length;f<e;f++){var h=d[f];""!==h.value&&"hidden"!=h.type&&("number"==h.type?b=pa(h,b):"email"==h.type?b=oa(h,b,c):null!==
87
  h.pattern&&(b=qa(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]=""));x=b;if("function"==typeof frmThemeOverride_jsErrors&&(D=jQuery(a).find('input[name="frm_action"]').val(),a=frmThemeOverride_jsErrors(D,a),Object.keys(a).length))for(var g in a)x[g]=a[g];return x},addAjaxFormErrors:function(a){Va();for(var b in x){var c=jQuery(a).find("#frm_field_"+
88
  b+"_container");c.length?U(c,b,x):delete x[b]}Wa(a)},checkFormErrors:function(a,b){rb(a,b)},scrollToID:function(a){a=jQuery(document.getElementById(a));frmFrontForm.scrollMsg(a,!1)},scrollMsg:function(a,b,c){if("undefined"==typeof b){if(a=jQuery(document.getElementById("frm_form_"+a+"_container")),1>a.length)return}else a="string"==typeof a?jQuery(b).find("#frm_field_"+a+"_container"):a;if(a=a.offset().top){a-=frm_js.offset;b=jQuery("html").css("margin-top");var d=jQuery("body").css("margin-top");
89
  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 Ta(a)},goingToPreviousPage:function(a){return Ua(a)},hideOrShowFields:function(a,b){if("pageLoad"===b){var c=document.querySelectorAll('[id^="frm_hide_fields_"]');ca(c)}for(var c={repeatingSection:"",repeatRow:""},
90
- d=0,f=a.length;d<f;d++)K(a[d],c),d==f-1&&ab()},hidePreviouslyHiddenFields:function(){var a;a=[];for(var b=document.querySelectorAll('*[id^="frm_hide_fields_"]'),c=b.length,d,f=0;f<c;f++)d=b[f].id.replace("frm_hide_fields_",""),a=a.concat(F(d));b=0;for(c=a.length;b<c;b++)d=document.getElementById(a[b]),null!==d&&(d.style.display="none")},checkDependentDynamicFields:function(a){for(var b={repeatingSection:"",repeatRow:""},c=0,d=a.length;c<d;c++)K(a[c],b)},checkDependentLookupFields:function(a){for(var b,
91
- c={repeatingSection:"",repeatRow:""},d=0,f=a.length;d<f;d++)b=a[d],da(b,c,"value changed")},loadGoogle:function(){if("undefined"!==typeof google&&google&&google.load)for(var a=__FRMTABLES,b=Object.keys(a),c=0;c<b.length;c++)if("graphs"===b[c])for(var d=a[b[c]],f=0,e=d.length;f<e;f++)xb(d[f]);else for(d=a[b[c]],f=b[c],e=0;e<d.length;e++)wb(d[e],f);else setTimeout(frmFrontForm.loadGoogle,30)},removeUsedTimes:function(a,b){console.warn("DEPRECATED: function frmFrontForm.removeUsedTimes v2.03")},escapeHtml:function(a){return a.replace(/&/g,
92
  "&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()});
93
  function frmRecaptcha(){for(var l=jQuery(".frm-g-recaptcha"),m=0,q=l.length;m<q;m++){var t=grecaptcha.render(l[m].id,{sitekey:l[m].getAttribute("data-sitekey"),size:l[m].getAttribute("data-size"),theme:l[m].getAttribute("data-theme")});l[m].setAttribute("data-rid",t)}}
94
  function frmUpdateField(l,m,q,t,y){jQuery(document.getElementById("frm_update_field_"+l+"_"+m)).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:m,value:q,nonce:frm_js.nonce},success:function(){""===t.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById("frm_update_field_"+l+"_"+m+"_"+y)).fadeOut("slow"):jQuery(document.getElementById("frm_update_field_"+l+"_"+m+"_"+y)).replaceWith(t)}})}
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="",e="",f=this.name;"frm_prev_page"===f||-1!==this.className.indexOf("frm_prev_page")?d=jQuery(a).find(".frm_next_page").attr("id").replace("frm_next_p_",""):"frm_save_draft"===f||-1!==this.className.indexOf("frm_save_draft")?e=1:-1!==this.className.indexOf("frm_page_skip")?(b=b.data("page"),f=jQuery(a).find('input[name="form_id"]').val(),f=jQuery(a).find('input[name="frm_page_order_'+
2
+ f+'"]'),jQuery(a).append('<input name="frm_last_page" type="hidden" value="'+f.val()+'" />'),""===b?f.remove():f.val(b)):-1!==this.className.indexOf("frm_page_back")&&(d=b.data("page"));jQuery(".frm_next_page").val(d);jQuery(".frm_saving_draft").val(e);"submit"!==c&&a.trigger("submit")}function m(){jQuery(this).parent().children(".frm_toggle_container").slideToggle("fast");jQuery(this).toggleClass("active").children(".ui-icon-triangle-1-e, .ui-icon-triangle-1-s").toggleClass("ui-icon-triangle-1-s ui-icon-triangle-1-e")}
3
+ function q(){if(-1===this.className.indexOf("frm_custom_date")&&"undefined"!==typeof __frmDatepicker){var a=__frmDatepicker,b=this.id,c=b.split("-"),c=H(this.name)?'input[id^="'+c[0]+'"]':'input[id^="'+c.join("-")+'"]';jQuery.datepicker.setDefaults(jQuery.datepicker.regional[""]);for(var d=0,e=0;e<a.length;e++)if(a[e].triggerID=="#"+b||a[e].triggerID==c){d=e;break}""!==a[d].options.defaultDate&&(a[d].options.defaultDate=new Date(a[d].options.defaultDate));jQuery(this).datepicker(jQuery.extend(jQuery.datepicker.regional[a[d].locale],
4
+ a[d].options))}}function t(a){if("undefined"!==typeof __frmDropzone)for(var b=__frmDropzone,c=0;c<b.length;c++)y(c,a)}function y(a,b){var c=__frmDropzone,d="#"+c[a].htmlID+"_dropzone",e=c[a].fieldName;"undefined"!==typeof b&&-1!==d.indexOf("-0_dropzone")&&(d=d.replace("-0_dropzone","-"+b+"_dropzone"),e=e.replace("[0]","["+b+"]"),delete c[a].mockFiles);d=jQuery(d);if(!(1>d.length||d.hasClass("dz-clickable"))){var f=c[a].maxFiles;if("undefined"!==typeof c[a].mockFiles){var h=c[a].mockFiles.length;0<
5
+ f&&(f-=h)}var g=d.closest("form"),h="#"+g.attr("id");"#undefined"==h&&(h="form."+g.attr("class").replace(" ","."));d.dropzone({url:frm_js.ajax_url,addRemoveLinks:!0,paramName:d.attr("id").replace("_dropzone",""),maxFilesize:c[a].maxFilesize,maxFiles:f,uploadMultiple:c[a].uploadMultiple,hiddenInputContainer:h,dictDefaultMessage:c[a].defaultMessage,dictFallbackMessage:c[a].fallbackMessage,dictFallbackText:c[a].fallbackText,dictFileTooBig:c[a].fileTooBig,dictInvalidFileType:c[a].invalidFileType,dictResponseError:c[a].responseError,
6
+ dictCancelUpload:c[a].cancel,dictCancelUploadConfirmation:c[a].cancelConfirm,dictRemoveFile:c[a].remove,dictMaxFilesExceeded:c[a].maxFilesExceeded,fallback:function(){jQuery(this.element).closest("form").removeClass("frm_ajax_submit")},init:function(){this.on("sending",function(b,d,e){d=""!==document.getElementById("frm_verify").value?!0:!1;if(d)return this.removeFile(b),alert("Oops. That file looks like Spam."),!1;e.append("action","frm_submit_dropzone");e.append("field_id",c[a].fieldID);e.append("form_id",
7
+ c[a].formID);e.append("nonce",frm_js.nonce)});this.on("success",function(b,d){for(var f=jQuery.parseJSON(d),g=0;g<f.length;g++)!0!==c[a].uploadMultiple&&jQuery('input[name="'+e+'"]').val(f[g])});this.on("successmultiple",function(b,d){for(var f=jQuery.parseJSON(d),g=0;g<b.length;g++)jQuery(b[g].previewElement).append(z(c[a],f[g],e))});this.on("complete",function(b){if("undefined"!==typeof b.mediaID){c[a].uploadMultiple&&jQuery(b.previewElement).append(z(c[a],b.mediaID,e));for(var d=b.previewElement.querySelectorAll("[data-dz-name]"),
8
+ f=0,g=d.length;f<g;f++)d[f].innerHTML='<a href="'+b.url+'">'+b.name+"</a>"}});this.on("addedfile",function(){S(g)});this.on("queuecomplete",function(){I(g,"enable")});this.on("removedfile",function(b){!1!==b.accepted&&!0!==c[a].uploadMultiple&&jQuery('input[name="'+e+'"]').val("");!1!==b.accepted&&"undefined"!==typeof b.mediaID&&(jQuery(b.previewElement).remove(),this.options.maxFiles=c[a].maxFiles-this.files.length)});if("undefined"!==typeof c[a].mockFiles)for(var b=0;b<c[a].mockFiles.length;b++){var d=
9
  {name:c[a].mockFiles[b].name,size:c[a].mockFiles[b].size,url:c[a].mockFiles[b].file_url,mediaID:c[a].mockFiles[b].id};this.emit("addedfile",d);this.emit("thumbnail",d,c[a].mockFiles[b].url);this.emit("complete",d);this.files.push(d)}}})}}function z(a,b,c){return'<input name="'+c+'[]" type="hidden" value="'+b+'" data-frmfile="'+a.fieldID+'" />'}function B(){var a=jQuery(this).data("frm-remove");bb(jQuery(this).parent(".dz-preview"));a=jQuery('input[name="'+a+'"]');a.length&&a.val("")}function w(){var a=
10
+ 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=""))):"radio"===a?jQuery(this).is(":checked")&&
11
  (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=p(this,!1);if(b&&"undefined"!==typeof b&&(!a.frmTriggered||
12
  a.frmTriggered!=b)&&(la(b,jQuery(this)),a="undefined"!==typeof a.originalEvent||-1<a.currentTarget.className.indexOf("frm_chzn")?"value changed":"other",ma(b,jQuery(this),a),T(b,jQuery(this)),jQuery(this).closest("form").hasClass("frm_js_validate"))){b=[];a=jQuery(this).closest(".frm_form_field");a.hasClass("frm_required_field")&&!jQuery(this).hasClass("frm_optional")&&(b=na(this,b));if(1>b.length)if("email"==this.type)var c=jQuery(this).closest("form").find("input[type=email]"),b=oa(this,b,c);else"number"==
13
+ this.type?b=pa(this,b):null!==this.pattern&&(b=qa(this,b));a.removeClass("frm_blank_field");a.find(".frm_error").remove();if(0<Object.keys(b).length)for(var d in b)U(a,d,b)}}function p(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)return d;if("[form"===
14
+ c[1]||"[row_ids"===c[1])return 0;jQuery('input[name="item_meta['+d+'][form]"]').length&&(d=c[2].replace("[",""),e=!0);"other"===d&&(d=e?c[3].replace("[",""):c[1].replace("[",""));!0===b&&(d=d===c[0]?d+"-"+c[1].replace("[",""):d+"-"+c[0]+"-"+c[1].replace("[",""));return d}function la(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=J(b[0].name),e=0,f=c.dependents.length;e<f;e++)K(c.dependents[e],
15
+ d)}function K(a,b){var c=V(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(d=L(c),null!==document.getElementById("frm_field_"+d+"_container")){d=[];for(var e=document.querySelectorAll(".frm_field_"+c.fieldId+"_container"),f=0,h=e.length;f<h;f++)d.push(e[f].id)}else{d=[];for(var f=L(c),e="frm_field_"+c.fieldId+"-"+f+"-",f=document.querySelectorAll('[name="item_meta['+
16
+ f+'][row_ids][]"]'),h=0,g=f.length;h<g;h++)""!==f[h].value&&d.push(e+f[h].value+"_container");1>d.length&&d.push(e+"0_container")}else d.push("frm_field_"+c.fieldId+"_container");e=d.length;for(f=0;f<e;f++)c.containerId=d[f],ra(c,d[f]),sa(c)}}function L(a){var b="";"0"!==a.inEmbedForm?b=a.inEmbedForm:"0"!==a.inSection&&(b=a.inSection);return b}function ra(a,b){if(a.isRepeating){var c=b.replace("_container","").split("-");a.repeatRow=c[2]}else a.repeatRow=""}function sa(a){for(var b=[],c=a.conditions.length,
17
  d=0;d<c;d++)b.push(cb(a.conditions[d],a));c=D="any"==a.anyAll?-1<b.indexOf(!0)?a.showHide:ta(a.showHide):-1<b.indexOf(!1)?ta(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?db(a,b):
18
  b&&eb(a)):!1!==C(a.containerId,a.formId)&&(E(a.containerId,a.formId),b?(b=ua(a.containerId),va(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId),jQuery("#"+a.containerId).show()):(b=wa(a),va(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId))):W(a,b)}function V(a){return"undefined"===typeof __FRMRULES||"undefined"===typeof __FRMRULES[a]?!1:__FRMRULES[a]}function cb(a,b){var c=V(a.fieldId),d=xa(c,b);"data"==b.fieldType&&"data"==c.fieldType?(c=""===a.value?""===d||1==d.length&&""===d[0]?
19
  !1:!0:X(a.operator,a.value,d),b.dataLogic=a,b.dataLogic.actualValue=d,d=c):d=X(a.operator,a.value,d);return d}function xa(a,b){var c;if("radio"==a.inputType||"checkbox"==a.inputType)c=ya(a,b),c=document.querySelectorAll('input[name^="'+c+'"]'),c="checkbox"==a.inputType?M(c):Y(c);else if(!0===a.isMultiSelect){c=ya(a,b);var d=document.querySelectorAll('[name^="'+c+'"]');1==d.length&&"hidden"!=d[0].type?(c=jQuery('[name^="'+c+'"]').val(),null===c&&(c="")):c=M(d)}else if(c="field_"+a.fieldKey,a.isRepeating&&
20
+ (c+="-"+b.repeatRow),d=document.getElementById(c),null===d){d="";if("time"==a.fieldType){var e=document.getElementById(c+"_H");null!==e&&(d=document.getElementById(c+"_m"),d=e.value+":"+d.value,c=document.getElementById(c+"_A"),":"==d?d="":null!==c&&(d+=" "+c.value))}c=d}else c=d.value;"undefined"===typeof c?c="":"string"===typeof c&&(c=c.trim());return c}function ya(a,b){return a.isRepeating?"item_meta["+("0"!==b.inEmbedForm?b.inEmbedForm:b.inSection)+"]["+b.repeatRow+"]["+a.fieldId+"]":"item_meta["+
21
  a.fieldId+"]"}function M(a){for(var b=[],c=0,d=a.length;c<d;c++)("hidden"==a[c].type||a[c].checked)&&b.push(a[c].value);0===b.length&&(b=!1);return b}function X(a,b,c){b=fb(b);c=gb(b,c);return"string"===typeof b&&"-1"!=b.indexOf("&quot;")&&X(a,b.replace("&quot;",'"'),c)?!0:{"==":function(a,b){return a==b},"!=":function(a,b){return a!=b},"<":function(a,b){return a>b},">":function(a,b){return a<b},LIKE:function(a,b){if(!b)return!1;a=Z(a);b=za(a,b);return-1!=b.indexOf(a)},"not LIKE":function(a,b){if(!b)return!0;
22
+ a=Z(a);b=za(a,b);return-1==b.indexOf(a)}}[a](b,c)}function fb(a){-1!==String(a).search(/^\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*$/)?a=parseFloat(a):"string"===typeof a&&(a=a.trim());return a}function gb(a,b){"undefined"===typeof b&&(b="");jQuery.isArray(b)&&-1<jQuery.inArray(String(a),b)&&(b=a);"number"===typeof a&&"string"===typeof b&&(b=parseFloat(b));"string"===typeof b&&(b=b.trim());return b}function za(a,b){b=Z(b);var c;if(jQuery.isArray(b))for(var d=0,e=b.length;d<e;d++)if(c=b[d].toLowerCase(),
23
  -1<c.indexOf(a)){b=a;break}return b}function Z(a){"string"===typeof a?a=a.toLowerCase():"number"===typeof a&&(a=a.toString());return a}function ta(a){return"show"==a?"hide":"show"}function ua(a){return document.getElementById(a).querySelectorAll('select[name^="item_meta"], textarea[name^="item_meta"], input[name^="item_meta"]')}function wa(a){if("divider"==a.fieldType){var b=[];"divider"==a.fieldType&&(b=document.querySelectorAll('[data-sectionid="'+a.fieldId+'"]'));a=b}else"form"==a.fieldType?a=
24
+ document.querySelectorAll('[id^="field_'+a.fieldKey+'-"]'):(a=a.isRepeating?"item_meta["+L(a)+"]["+a.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]",a=document.querySelectorAll('[name^="'+a+'"]'));return a}function va(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&&N(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)Aa(d.name,
25
+ g);else if(-1<d.name.indexOf("[]")){var k=document.getElementsByName(d.name);if(jQuery.isArray(g))for(var n=0,l=g.length;n<l;n++)n in k&&(k[n].value=g[n]);else null!==k[0]&&(k[0].value=g)}else g.constructor===Object&&(k=d.getAttribute("name").split("[").slice(-1)[0],null!==k&&(k=k.replace("]",""),g=g[k],"undefined"==typeof g&&(g=""))),d.value=g;"SELECT"==d.tagName&&O(d);v(h)}d=a[f];h=p(d,!1);h=aa(h);!1!==h&&"lookup"!=h.fieldType&&Ba(h,d,"value changed");d=a[f];if(h="undefined"!==typeof __FRMCALC){h=
26
+ 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(H(g))for(g=k.split("-"),k="",n=0;n<g.length-1;n++)k=""===k?g[n]:k+"-"+g[n];g=k;k=null;H(d.name)&&(k="hidden"!=d.type?jQuery(d).closest(".frm_form_field"):jQuery(d));d=k;void 0!==h.calc[g]&&ba(h,g,[],d)}d=a[f]}}function N(a,b){var c=p(a,!0);return C("frm_field_"+c+"_container",b)}function W(a,b){if(!C(a.containerId,a.formId)){if(b){jQuery("#"+a.containerId).hide();var c=ua(a.containerId)}else c=
27
+ wa(a);ca(c);Ca(a.containerId,a.formId)}}function ca(a){if(!(1>a.length)){for(var b,c=!0,d=0,e=a.length;d<e;d++)-1<a[d].className.indexOf("frm_dnc")||(0<d&&b.name!=a[d].name&&!0===c&&v(jQuery(b)),c=!0,"radio"==a[d].type||"checkbox"==a[d].type?a[d].checked=!1:"SELECT"==a[d].tagName?(0===a[d].selectedIndex?c=!1:a[d].selectedIndex=0,b=a[d].id.replace(/[^\w]/g,"_"),null!==document.getElementById(b+"_chosen")&&jQuery(a[d]).trigger("chosen:updated")):a[d].value=""),b=a[d];!0===c&&v(jQuery(b))}}function C(a,
28
+ b){var c=!1;-1<F(b).indexOf(a)&&(c=!0);return c}function Ca(a,b){var c=F(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 F(a){var b=[];a=document.getElementById("frm_hide_fields_"+a);return null===a?b:b=(b=a.value)?JSON.parse(b):[]}function Aa(a,b){for(var c=document.getElementsByName(a),d=0,e=c.length;d<e;d++)if("hidden"==c[d].type)jQuery.isArray(b)&&null!==b[d]?c[d].value=b[d]:c[d].value=b;else if(c[d].value==
29
+ b||jQuery.isArray(b)&&-1<b.indexOf(c[d].value))if(c[d].checked=!0,"radio"==c[d].type)break}function E(a,b){var c=F(b),d=c.indexOf(a);-1<d&&(c.splice(d,1),c=JSON.stringify(c),document.getElementById("frm_hide_fields_"+b).value=c)}function ma(a,b,c){if(!("undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]||1>__FRMLOOKUP[a].dependents.length||null===b||"undefined"===typeof b)){a=__FRMLOOKUP[a];b=J(b[0].name);for(var d=0,e=a.dependents.length;d<e;d++)da(a.dependents[d],b,c)}}function da(a,
30
+ b,c){a=aa(a);if(!(!1===a||1>a.parents.length))if("lookup"==a.fieldType){if(""!==b.repeatRow){c=[];var d="frm_field_"+a.fieldId+"-",d=d+(b.repeatingSection+"-"+b.repeatRow+"_container");b=document.getElementById(d);null!==b&&c.push(b);b=c}else b=[],a.isRepeating?b=document.querySelectorAll(".frm_field_"+a.fieldId+"_container"):(c=document.getElementById("frm_field_"+a.fieldId+"_container"),null!==c&&b.push(c));c=0;for(d=b.length;c<d;c++){ra(a,b[c].id);var e=a,f=b[c];e.parentVals=Da(e);if("select"==
31
+ e.inputType)hb(e,f);else if("radio"==e.inputType||"checkbox"==e.inputType)if(!1===e.parentVals){var h=f.getElementsByTagName("input");Ea(e,f);ca(h)}else ib(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=J(b[c].name),e.repeatRow=""!==f.repeatRow?f.repeatRow:"",Ba(a,b[c])}function aa(a){return"undefined"===typeof __FRMLOOKUP||
32
+ "undefined"===typeof __FRMLOOKUP[a]?!1:__FRMLOOKUP[a]}function Ba(a,b){a.parentVals=Da(a);var c=b.id;c in r&&0<r[c].length?Fa(a,b):(Fa(a,b),Ga(a,b))}function Da(a){for(var b=[],c=a.parents,d,e=0,f=c.length;e<f;e++){d=aa(c[e]);d=xa(d,a);if(""===d||!1===d){b=!1;break}b[e]=d}return b}function Y(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 hb(a,b){var c=b.getElementsByTagName("SELECT")[0];if(null!==c){var d=c.value;!1===a.parentVals?
33
+ (c.options.length=1,c.value="",O(c),""!==d&&v(jQuery(c),a.fieldKey)):(jb(c),ea(a.formId),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_replace_lookup_field_options",parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,nonce:frm_js.nonce},success:function(d){var e=c.value;d=JSON.parse(d);for(var h=c.options.length;0<h;h--)c.remove(h);for(var g=d.length,h=0;h<g;h++)c.options[h+1]=new Option(d[h],d[h],!1,!1);c.value=e;""===c.value&&(d=c.getAttribute("data-frmval"),null!==
34
+ d&&(c.value=d));!1===a.isReadOnly&&(c.disabled=!1);c.className=c.className.replace(" frm_loading_lookup","");O(c);c.value!=e&&v(jQuery(c),a.fieldKey);Ha(jQuery(b));fa(a.formId)}}))}}function O(a){-1<a.className.indexOf("frm_chzn")&&jQuery().chosen&&jQuery(a).trigger("chosen:updated")}function jb(a){a.className+=" frm_loading_lookup";a.disabled=!0;O(a)}function ea(a){P++;1>=P&&(a=Ia(a),null!==a&&S(jQuery(a)))}function fa(a){P--;0>=P&&(a=Ia(a),null!==a&&I(jQuery(a),"enable"))}function Ia(a){return document.querySelector("#frm_form_"+
35
+ a+"_container form")}function ib(a,b){var c=b.getElementsByClassName("frm_opt_container")[0],d=c.getElementsByTagName("input");kb(b,c);var e="",e="radio"==a.inputType?Y(d):M(d),f=jQuery(d[0]).data("frmval");ea(a.formId);jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_replace_cb_radio_lookup_options",parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,container_field_id:L(a),row_index:a.repeatRow,current_value:e,default_value:f,nonce:frm_js.nonce},success:function(e){c.innerHTML=
36
+ 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?Ea(a,b):(!1!==C(b.id,a.formId)&&(e=V(a.fieldId),!1===e||1>e.conditions.length?(E(b.id,a.formId),jQuery("#"+b.id).show()):(e.containerId=b.id,e.repeatRow=a.repeatRow,sa(e))),void 0!==f&&(!1!==("radio"==a.inputType?Y(d):M(d))||1>d.length||Aa(d[0].name,f)));v(jQuery(d[0]),a.fieldKey);Ha(jQuery(b));fa(a.formId)}})}function Ha(a){a.trigger("frmLookupOptionsLoaded")}
37
  function Ea(a,b){C(b.id,a.formId)||(jQuery("#"+b.id).hide(),Ca(b.id,a.formId))}function Ga(a,b){if(N(b,a.formId))ga(b.id);else if(!1===a.parentVals){var c=b.getAttribute("data-frmval");null===c&&(c="");Ja(a,b,c);ga(b.id)}else ea(a.formId),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){N(b,a.formId)||b.value==c||Ja(a.fieldKey,b,c);fa(a.formId);ga(b.id)}})}
38
  function Fa(a,b){var c=b.id;c in r?2<=r[c].length&&(r[c]=r[c].slice(0,1)):r[c]=[];r[c].push({childFieldArgs:a,childInput:b})}function ga(a){r[a].shift();a in r&&0<r[a].length&&Ga(r[a][0].childFieldArgs,r[a][0].childInput)}function Ja(a,b,c){c=c.replace(/&amp;/g,"&");b.value=c;v(jQuery(b),a)}function db(a,b){if(b){var c=jQuery("#"+a.containerId);Ka(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,
39
+ on_current_page:b,nonce:frm_js.nonce},success:function(d){if(b){var e=c.find(".frm_opt_container");e.html(d);var f=e.children("input"),h=f.val();La(e);""===d||""===h?W(a,!0):Ma(a,c,f,!0)}else e="field_"+a.fieldKey,""!==a.repeatRow&&(e+="-"+a.repeatRow),e=document.getElementById(e),e.value=d,C(a.containerId,a.formId)&&E(a.containerId,a.formId),v(jQuery(e))}})}function eb(a,b){var c=jQuery("#"+a.containerId),d=c.find('select[name^="item_meta"], input[name^="item_meta"]'),e=Na(d),d=d.data("frmval"),
40
+ f=c.closest("form").find('input[name="id"]').val();Ka(c);jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_fields_ajax_data_options",trigger_field_id:a.dataLogic.fieldId,entry_id:a.dataLogic.actualValue,field_id:a.fieldId,default_value:d,container_id:a.containerId,editing_entry:f,prev_val:e,nonce:frm_js.nonce},success:function(b){var d=c.find(".frm_opt_container");d.html(b);var f=d.find('select, input[type="checkbox"], input[type="radio"]');La(d);""===b||1>f.length?W(a,!0):(b=Na(f),Ma(a,
41
+ c,f,e!==b))}})}function Ka(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 kb(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 La(a){a.parent().children(".frm-loading-img").remove();a.show()}function Na(a){var b=[],c="";a.each(function(){c=this.value;"radio"===
42
+ this.type||"checkbox"===this.type?!0===this.checked&&b.push(c):""!==c&&b.push(c)});0===b.length&&(b="");return b}function Ma(a,b,c,d){C(a.containerId,a.formId)&&(E(a.containerId,a.formId),b.show());c.hasClass("frm_chzn")&&ha();!0===d&&v(c)}function T(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"),n=!1,l=g.field_id,m=F(g.form_id);1>m.length||("0"===g.inSection&&
43
+ "0"===g.inEmbedForm?n=Q(l,m):(k=J(k),Q(l,m)?n=!0:Oa(l,k,m)?n=!0:"0"!==g.inSection&&"0"!==g.inEmbedForm?n=Oa(g.inSection,k,m):"0"!==g.inSection?n=Q(g.inSection,m):"0"!==g.inEmbedForm&&(n=Q(g.inEmbedForm,m))));g=n;!1===g&&ba(c,d[f],e,b)}}}function Q(a,b){return-1<b.indexOf("frm_field_"+a+"_container")}function Oa(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 ba(a,b,c,d){var e=a.calc[b],f=e.calc,h=jQuery(document.getElementById("field_"+
44
+ b)),g={triggerField:d,inSection:!1,thisFieldCall:'input[id^="field_'+b+'-"]'};1>h.length&&"undefined"!==typeof d&&(g.inSection=!0,g.thisFieldId=lb(a.fieldsWithCalc,b),h=Pa(g));if(!(null===h||1>h.length)){f=mb(e,f,a,c,g);if("text"!=e.calc_type){a=e.calc_dec;-1<f.indexOf(").toFixed(")&&(c=f.split(").toFixed("),Qa(c[1])&&(a=c[1],f=f.replace(").toFixed("+a,"")));f=nb(f);f=parseFloat(eval(f));if("undefined"===typeof f||isNaN(f))f=0;Qa(a)&&(f=f.toFixed(a))}h.val()!=f&&(h.val(f),v(h,b))}}function mb(a,b,
45
+ 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||"radio"==g.thisField.type||"scale"==g.thisField.type?g.thisFieldCall=g.thisFieldCall+":checked,"+g.thisFieldCall+"[type=hidden]":"select"==g.thisField.type||"time"==g.thisField.type?g.thisFieldCall="select"+k.fieldKeys[g.thisFieldId]+
46
  " option:selected,"+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=ob(g,d),"undefined"===typeof d[g.valKey]&&(d[g.valKey]="");else{g.valKey="num"+g.valKey;d=pb(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=
47
+ b.replace(new RegExp(k,"g"),d[g.valKey])}return b}function nb(a){var b=a.charAt(a.length-1);if("+"===b||"-"===b)a=a.substr(0,a.length-1);return a}function H(a){return 3<=a.split("][").length}function pb(a,b,c){if("undefined"!==typeof c[a.valKey]&&0!==c[a.valKey])return c;c[a.valKey]=0;var d=Ra(a);if(!1===d)return c;d.each(function(){var d=Sa(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);
48
+ var d=d.split(h),g,k;g=h=k="";for(var n=0;n<f.length;n++)if("y"==f[n])g=((new Date).getFullYear()+15).toString().substr(2,2),g=d[n]>g?"19"+d[n]:"20"+d[n];else if("yy"==f[n])g=d[n];else if("m"==f[n]||"mm"==f[n])h=d[n],2>h.length&&(h="0"+h);else if("d"==f[n]||"dd"==f[n])k=d[n],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\.]+$/)));
49
+ if("undefined"===typeof f||isNaN(f)||""===f)f=0;c[a.valKey]+=f}});return c}function ob(a,b){if("undefined"!==typeof b[a.valKey]&&""!==b[a.valKey])return b;b[a.valKey]="";var c=Ra(a);if(!1===c)return b;var d=0,e="";c.each(function(){var c=Sa(a.thisField,this),c=c.trim();0<d&&("time"==a.thisField.type?1==d?e=":":2==d&&(e=" "):e=", ");""!==c&&(b[a.valKey]+=e+c,d++)});return b}function Ra(a){var b;if(!1===a.inSection)b=jQuery(a.thisFieldCall);else if(b=Pa(a),null===b||"undefined"===typeof b)b=jQuery(a.thisFieldCall);
50
  if(null===b||"undefined"===typeof b||1>b.length)b=!1;return b}function Pa(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 Sa(a,b){var c;c=!1;if("hidden"==b.type)""!==ia(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_")&&
51
  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=ia(b))):c=jQuery(b).closest(".frm_other_container").find(".frm_other_input").val():"checkbox"!=a.type&&"radio"!=a.type||"hidden"==b.type||(c=ia(b))):c="checkbox"!==b.type&&"radio"!==b.type||!b.checked?jQuery(b).val():b.value;"undefined"===typeof c&&(c="");return c}function ia(a){var b="";a=document.getElementById(a.id+"-otext");null!==a&&""!==a.value&&(b=a.value);return b}function Ta(a){var b=
52
+ !1;a=jQuery(a).find(".frm_saving_draft");a.length&&(b=a.val());return b}function Ua(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 na(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"),
53
+ jQuery(c).each(function(){d=this.value});else if("file"==a.type||c)"undefined"===typeof c&&(c=p(a,!0),c=c.replace("file","")),"undefined"===typeof b[c]&&(d=qb(c)),e=c;else{c=a.className;if(-1!==c.indexOf("frm_pos_none"))return b;d=jQuery(a).val();if(null===d)d="";else if("string"!==typeof d)for(var e=d,d="",f=0;f<e.length;f++)""!==e[f]&&(d=e[f]);e=-1===c.indexOf("frm_other_input")?p(a,!0):p(a,!1);-1!==c.indexOf("frm_time_select")&&(e=e.replace("-H","").replace("-m",""))}""===d&&(""===e&&(e=p(a,!0)),
54
+ e in b||(b[e]=G(a,"data-reqmsg")));return b}function qb(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 oa(a,b,c){var d=a.value,e=p(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=G(a,"data-invmsg");""!==
55
+ 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 pa(a,b){var c=a.value;""!==c&&!1!==isNaN(c/1)&&(c=p(a,!0),c in b||(b[c]=G(a,"data-invmsg")));return b}function qa(a,b){var c=a.value,d=G(a,"pattern");if(""!==d&&""!==c){var e=p(a,!0);e in b||(d=new RegExp("^"+d+"$","i"),!1===d.test(c)&&(b[e]=G(a,"data-invmsg")))}return b}function G(a,b){var c=a.getAttribute(b);null===
56
  c&&(c="");return c}function rb(a,b){"undefined"==typeof b&&jQuery(a).find('input[name="frm_action"]').val();var c=jQuery(a).find(".frm_form_field");c.addClass("frm_doing_ajax");jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:jQuery(a).serialize()+"&action=frm_entries_"+b+"&nonce="+frm_js.nonce,success:function(b){var d={content:"",errors:{},pass:!1};null===b&&(b=d);b=b.replace(/^\s+|\s+$/g,"");b=0===b.indexOf("{")?jQuery.parseJSON(b):d;if("undefined"!=typeof b.redirect)window.location=b.redirect;
57
+ else if(""!==b.content){I(jQuery(a));-1!=frm_js.offset&&frmFrontForm.scrollMsg(jQuery(a),!1);var f=jQuery(a).find('input[name="form_id"]').val();b.content=b.content.replace(/ frm_pro_form /g," frm_pro_form frm_no_hide ");jQuery(a).closest(".frm_forms").replaceWith(b.content);d=b;if(history.pushState&&"undefined"!=typeof d.page){var h,g=d.page;h=encodeURI("frm_page");for(var g=encodeURI(g),k=document.location.search.substr(1).split("&"),n=k.length,l;n--;)if(l=k[n].split("="),l[0]==h){l[1]=g;k[n]=l.join("=");
58
+ break}0>n&&(k[k.length]=[h,g].join("="));h=k.join("&");window.history.pushState({html:d.html},"","?"+h)}"function"==typeof frmThemeOverride_frmAfterSubmit&&(f=jQuery('input[name="frm_page_order_'+f+'"]').val(),d=jQuery(b.content).find('input[name="form_id"]').val(),frmThemeOverride_frmAfterSubmit(d,f,b.content,a));f=jQuery(a).find('input[name="id"]');f.length&&jQuery(document.getElementById("frm_edit_"+f.val())).find("a").addClass("frm_ajax_edited").click();jQuery(b.content).find(".frm_message").length&&
59
+ ja("pageLoad");ka()}else if(Object.keys(b.errors).length){I(jQuery(a),"enable");d=!0;Va();h=!1;for(f in b.errors)g=jQuery(a).find("#frm_field_"+f+"_container"),g.length&&(g.is(":visible")||(k=g.closest(".frm_toggle_container"),k.length&&(k=k.prev(),k.hasClass("frm_trigger")||(k=k.prev(".frm_trigger")),k.click())),g.is(":visible")&&(U(g,f,b.errors),d=!1,g=jQuery(a).find("#frm_field_"+f+"_container .frm-g-recaptcha, #frm_field_"+f+"_container .g-recaptcha"),g.length&&(h=!0,g=g.data("rid"),jQuery().grecaptcha&&
60
  (g?grecaptcha.reset(g):grecaptcha.reset()))));c.removeClass("frm_doing_ajax");Wa(a);!0!==h&&Xa(a,!1);d?a.submit():jQuery(a).prepend(b.error_message)}else sb(a),Xa(a,!0),a.submit()},error:function(){jQuery(a).find('input[type="submit"], input[type="button"]').removeAttr("disabled");a.submit()}})}function U(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>"))}
61
  function Va(){jQuery(".form-field").removeClass("frm_blank_field");jQuery(".form-field .frm_error").replaceWith("");jQuery(".frm_error_style").remove()}function Wa(a){var b=jQuery(a).find(".frm_blank_field:first");b.length&&frmFrontForm.scrollMsg(b,a,!0)}function S(a){a.hasClass("frm_loading_form")||a.addClass("frm_loading_form");a.find('input[type="submit"], input[type="button"], button[type="submit"]').attr("disabled","disabled")}function I(a,b){a.removeClass("frm_loading_form");"enable"==b&&a.find('input[type="submit"], input[type="button"], button[type="submit"]').removeAttr("disabled")}
62
  function sb(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 Xa(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 tb(){Ya(jQuery(this),
63
  "clear")}function ub(){Ya(jQuery(this),"replace")}function Ya(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 vb(){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",
64
+ entry_id:b,form_id:c,nonce:frm_js.nonce},success:function(b){a.replaceWith(b)}});return!1}function wb(a,b){google.load("visualization","1.0",{packages:[b],callback:function(){var b=new google.visualization.DataTable,d=!1;-1!==jQuery.inArray("id",a.options.fields)&&(d=!0,b.addColumn("number",frm_js.id));for(var e=a.fields.length,f,h=0,g=e;h<g;h++){var k=a.fields[h];f=Za(k);b.addColumn(f,k.name)}h=!1;a.options.edit_link&&(h=!0,b.addColumn("string",a.options.edit_link));g=!1;a.options.delete_link&&(g=
65
+ !0,b.addColumn("string",a.options.delete_link));if(null!==a.entries){var l=a.entries.length;b.addRows(l);for(var m=0,q=0;q<l;q++){var k=0,p=a.entries[q];d&&(b.setCell(m,k,p.id),k++);for(var r=0,t=e;r<t;r++){var u=a.fields[r];f=Za(u);u=p.metas[u.id];"number"!=f||null!==u&&""!==u?"boolean"==f&&(u=null===u||"false"==u||!1===u?!1:!0):u=0;b.setCell(m,k,u);k++}h&&("undefined"!==typeof p.editLink?b.setCell(m,k,'<a href="'+p.editLink+'">'+a.options.edit_link+"</a>"):b.setCell(m,k,""),k++);g&&("undefined"!==
66
+ typeof p.deleteLink?b.setCell(m,k,'<a href="'+p.deleteLink+'" class="frm_delete_link" data-frmconfirm="'+a.options.confirm+'">'+a.options.delete_link+"</a>"):b.setCell(m,k,""));m++}}else for(b.addRows(1),h=k=0,g=e;h<g;h++)0<k?b.setCell(0,k,""):b.setCell(0,k,a.options.no_entries),k++;(new google.visualization.Table(document.getElementById("frm_google_table_"+a.options.form_id))).draw(b,a.graphOpts)}})}function xb(a){google.load("visualization","1.0",{packages:[a["package"]],callback:function(){var b;
67
  new google.visualization.DataTable;b=google.visualization.arrayToDataTable(a.data);var c=document.getElementById("chart_"+a.graph_id);if(null!==c){var d=a.type.charAt(0).toUpperCase()+a.type.slice(1);"Histogram"!==d&&"Table"!==d&&(d+="Chart");c=new google.visualization[d](c);c.draw(b,a.options);jQuery(document).trigger("frmDrawChart",[c,"chart_"+a.graph_id,b])}}})}function Za(a){var b="string";if("number"==a.type)b="number";else if("checkbox"==a.type||"select"==a.type){var c=a.options.length;"select"==
68
+ a.type&&""===a.options[0]&&(c="post_status"==a.field_options.post_field?3:c-1);1==c&&(b="boolean")}return b}function yb(){var a=jQuery(this).data("key"),b=jQuery(this).data("parent"),c="frm_section_"+b+"-"+a,d=jQuery(document.getElementById(c)),e=d.find("input, select, textarea"),f=jQuery(this).closest("form").find('input[name="form_id"]').val();d.fadeOut("slow",function(){d.remove();e.each(function(){var c=p(this,!1);"file"!=this.type&&T(c,jQuery(this));E("frm_field_"+c+"-"+b+"-"+a+"_container",
69
+ f)});"function"==typeof frmThemeOverride_frmRemoveRow&&frmThemeOverride_frmRemoveRow(c,d)});return!1}function zb(){if(!0===R)return!1;R=!0;var a=jQuery(this).data("parent"),b=0;if(0<jQuery(".frm_repeat_"+a).length)var c=jQuery(".frm_repeat_"+a+":last").attr("id").replace("frm_section_"+a+"-",""),b=-1<c.indexOf("i")?1:1+parseInt(c);jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_add_form_row",field_id:a,i:b,nonce:frm_js.nonce},success:function(c){var d=c.html,f=jQuery(d).hide().fadeIn("slow");
70
+ jQuery(".frm_repeat_"+a+":last").after(f);var h=["other"],g,k,l={repeatingSection:a.toString(),repeatRow:b.toString()};jQuery(d).find("input, select, textarea").each(function(){if("file"!=this.type){if(""===this.name)return!0;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),K(g,l),da(g,l,"value changed"),la(g,k),ma(g,k,"value changed"),T(g,k))}});t(l.repeatRow);$a();ha();"function"==typeof frmThemeOverride_frmAddRow&&
71
+ frmThemeOverride_frmAddRow(a,c);R=!1},error:function(){R=!1}});return!1}function Ab(){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)),l=k.html();k.html('<span class="frm-loading-img" id="'+c+b+'"></span><div class="frm_orig_content" style="display:none">'+l+"</div>");jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",
72
+ post_id:d,entry_id:b,id:e,nonce:frm_js.nonce,fields:h,exclude_fields:g},success:function(d){k.children(".frm-loading-img").replaceWith(d);a.removeClass("frm_inplace_edit").addClass("frm_cancel_edit");a.html(f);ja("editInPlace");jQuery(document).on("change",'.frm-show-form input[name^="item_meta"], .frm-show-form select[name^="item_meta"], .frm-show-form textarea[name^="item_meta"]',A);ka(c+b)}});return!1}function Bb(){var a=jQuery(this),b=a.data("entryid"),c=a.data("prefix"),d=a.data("edit");a.hasClass("frm_ajax_edited")||
73
  (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 Cb(){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",
74
  entry:c,nonce:frm_js.nonce},success:function(a){if("success"==a.replace(/^\s+|\s+$/g,"")){var b=jQuery(document.getElementById(d+c));b.fadeOut("slow",function(){b.remove()});jQuery(document.getElementById("frm_delete_"+c)).fadeOut("slow")}else jQuery(document.getElementById("frm_delete_"+c)).replaceWith(a)}})}return!1}function ka(a){"undefined"!==typeof __frmHideFields&&frmFrontForm.hidePreviouslyHiddenFields();jQuery(document).on("focusin",".frm_date",q);if("undefined"!==typeof __frmMasks)for(var b=
75
  __frmMasks,c=0;c<b.length;c++)jQuery(b[c].trigger).attr("data-frmmask",b[c].mask);$a();ha(a);"undefined"!==typeof __frmDepDynamicFields&&frmFrontForm.checkDependentDynamicFields(__frmDepDynamicFields);"undefined"!==typeof __frmDepLookupFields&&frmFrontForm.checkDependentLookupFields(__frmDepLookupFields);if("undefined"!==typeof __FRMCALC){(a=__FRMCALC.triggers)&&jQuery(a.join()).trigger({type:"change",selfTriggered:!0});a=__FRMCALC.calc;var b=[],d;for(d in a)1>a[d].fields.length&&(c=document.getElementById("field_"+
76
  d),null===c||N(c,a[d].form_id)||ba(__FRMCALC,d,b))}t()}function ha(a){if(jQuery().chosen){var b={allow_single_deselect:!0,no_results_text:frm_js.no_results};"undefined"!==typeof __frmChosen&&(b="{"+__frmChosen+"}");"undefined"!==typeof a?jQuery("#"+a).find(".frm_chzn").chosen(b):jQuery(".frm_chzn").chosen(b)}}function $a(){if(jQuery().rating){var a=jQuery(".star");a.length&&a.rating()}}function ja(a){"undefined"!==typeof __frmHideOrShowFields?frmFrontForm.hideOrShowFields(__frmHideOrShowFields,a):
77
  ab()}function ab(){jQuery(".frm_pro_form").fadeIn("slow")}function v(a,b){"undefined"===typeof b&&(b="dependent");1<a.length&&(a=a.eq(0));a.trigger({type:"change",selfTriggered:!0,frmTriggered:b})}function J(a){var b={repeatingSection:"",repeatRow:""};"undefined"!==typeof a&&H(a)&&(a=a.split("]["),b.repeatingSection=a[0].replace("item_meta[",""),b.repeatRow=a[1]);return b}function bb(a){a.fadeOut("slow",function(){a.remove()})}function Db(){var a=jQuery(this).data("frmconfirm");return confirm(a)}
78
  function Eb(){var a=jQuery(this).data("frmtoggle");jQuery(a).is(":visible")?jQuery(a).slideUp("fast"):jQuery(a).slideDown("fast");return!1}function lb(a,b){for(var c in a)if(a.hasOwnProperty(c)&&a[c]===b)return c;return null}function Qa(a){return!jQuery.isArray(a)&&0<=a-parseFloat(a)+1}function Fb(){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})}
79
+ function Gb(){"function"!==typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})}function Hb(){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 Ib(){Object.keys||(Object.keys=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&
80
  b.push(c);return b})}var R=!1,D="",x=[],P=0,r={};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",m);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(){""===
81
  jQuery(this).val()&&jQuery(this).blur()});jQuery(document).on("focus",".frm_toggle_default",tb);jQuery(document).on("blur",".frm_toggle_default",ub);jQuery(".frm_toggle_default").blur();jQuery(document.getElementById("frm_resend_email")).click(vb);jQuery(document).on("click",".frm_remove_link",B);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"]',
82
  A);jQuery(document).on("click",'.frm-show-form input[type="submit"], .frm-show-form input[name="frm_prev_page"], .frm_page_back, .frm_page_skip, .frm-show-form .frm_save_draft, .frm_prev_page, .frm_button_submit',l);jQuery(document).on("change",'.frm_other_container input[type="checkbox"], .frm_other_container input[type="radio"], .frm_other_container select',w);jQuery(document).on("click",".frm_remove_form_row",yb);jQuery(document).on("click",".frm_add_form_row",zb);jQuery(document).on("click","a[data-frmconfirm]",
83
  Db);jQuery("a[data-frmtoggle]").click(Eb);jQuery(".frm_edit_link_container").on("click","a.frm_inplace_edit",Ab);jQuery(".frm_edit_link_container").on("click","a.frm_cancel_edit",Bb);jQuery(document).on("click",".frm_ajax_delete",Cb);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")):
84
  (a.addClass("ui-icon-triangle-1-e").removeClass("ui-icon-triangle-1-s"),jQuery(this).next(".frm_toggle_container").hide())});ja("pageLoad");ka();Fb();Gb();Hb();Ib()},submitForm:function(a){frmFrontForm.submitFormManual(a,this)},submitFormManual:function(a,b){var c=b.className.trim().split(/\s+/gi);if((!c||-1<c.indexOf("frm_pro_form"))&&!jQuery("body").hasClass("wp-admin")){a.preventDefault();var d=frmFrontForm.validateFormSubmit(b);0===Object.keys(d).length&&(S(jQuery(b)),-1<c.indexOf("frm_ajax_submit")?
85
  1>jQuery(b).find('input[type="file"]').filter(function(){return!!this.value}).length?(D=jQuery(b).find('input[name="frm_action"]').val(),frmFrontForm.checkFormErrors(b,D)):b.submit():b.submit())}},validateFormSubmit:function(a){"undefined"!=typeof tinyMCE&&jQuery(a).find(".wp-editor-wrap").length&&tinyMCE.triggerSave();x=[];var b=jQuery(a).hasClass("frm_js_validate");b&&(Ta(a)||Ua(a))&&(b=!1);b&&(frmFrontForm.getAjaxFormErrors(a),Object.keys(x).length&&frmFrontForm.addAjaxFormErrors(a));return x},
86
+ 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=na(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=pa(h,b):"email"==h.type?b=oa(h,b,c):null!==
87
  h.pattern&&(b=qa(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]=""));x=b;if("function"==typeof frmThemeOverride_jsErrors&&(D=jQuery(a).find('input[name="frm_action"]').val(),a=frmThemeOverride_jsErrors(D,a),Object.keys(a).length))for(var g in a)x[g]=a[g];return x},addAjaxFormErrors:function(a){Va();for(var b in x){var c=jQuery(a).find("#frm_field_"+
88
  b+"_container");c.length?U(c,b,x):delete x[b]}Wa(a)},checkFormErrors:function(a,b){rb(a,b)},scrollToID:function(a){a=jQuery(document.getElementById(a));frmFrontForm.scrollMsg(a,!1)},scrollMsg:function(a,b,c){if("undefined"==typeof b){if(a=jQuery(document.getElementById("frm_form_"+a+"_container")),1>a.length)return}else a="string"==typeof a?jQuery(b).find("#frm_field_"+a+"_container"):a;if(a=a.offset().top){a-=frm_js.offset;b=jQuery("html").css("margin-top");var d=jQuery("body").css("margin-top");
89
  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 Ta(a)},goingToPreviousPage:function(a){return Ua(a)},hideOrShowFields:function(a,b){if("pageLoad"===b){var c=document.querySelectorAll('[id^="frm_hide_fields_"]');ca(c)}for(var c={repeatingSection:"",repeatRow:""},
90
+ d=0,e=a.length;d<e;d++)K(a[d],c),d==e-1&&ab()},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(F(d));b=0;for(c=a.length;b<c;b++)d=document.getElementById(a[b]),null!==d&&(d.style.display="none")},checkDependentDynamicFields:function(a){for(var b={repeatingSection:"",repeatRow:""},c=0,d=a.length;c<d;c++)K(a[c],b)},checkDependentLookupFields:function(a){for(var b,
91
+ c={repeatingSection:"",repeatRow:""},d=0,e=a.length;d<e;d++)b=a[d],da(b,c,"value changed")},loadGoogle:function(){if("undefined"!==typeof google&&google&&google.load)for(var a=__FRMTABLES,b=Object.keys(a),c=0;c<b.length;c++)if("graphs"===b[c])for(var d=a[b[c]],e=0,f=d.length;e<f;e++)xb(d[e]);else for(d=a[b[c]],e=b[c],f=0;f<d.length;f++)wb(d[f],e);else setTimeout(frmFrontForm.loadGoogle,30)},removeUsedTimes:function(a,b){console.warn("DEPRECATED: function frmFrontForm.removeUsedTimes v2.03")},escapeHtml:function(a){return a.replace(/&/g,
92
  "&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()});
93
  function frmRecaptcha(){for(var l=jQuery(".frm-g-recaptcha"),m=0,q=l.length;m<q;m++){var t=grecaptcha.render(l[m].id,{sitekey:l[m].getAttribute("data-sitekey"),size:l[m].getAttribute("data-size"),theme:l[m].getAttribute("data-theme")});l[m].setAttribute("data-rid",t)}}
94
  function frmUpdateField(l,m,q,t,y){jQuery(document.getElementById("frm_update_field_"+l+"_"+m)).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:m,value:q,nonce:frm_js.nonce},success:function(){""===t.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById("frm_update_field_"+l+"_"+m+"_"+y)).fadeOut("slow"):jQuery(document.getElementById("frm_update_field_"+l+"_"+m+"_"+y)).replaceWith(t)}})}
languages/formidable-de_DE.mo CHANGED
Binary file
languages/formidable-de_DE.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Formidable v2.03.05\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
- "PO-Revision-Date: Tue Apr 11 2017 15:10:21 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: German\n"
@@ -1526,7 +1526,7 @@ msgid "Add/Edit Views"
1526
  msgstr "Ansichten hinzufügen/bearbeiten"
1527
 
1528
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
1529
- #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1514
1530
  #, php-format
1531
  msgid "%s is invalid"
1532
  msgstr "%s ist ungültig"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Formidable v2.03.06\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
+ "PO-Revision-Date: Wed Apr 12 2017 13:22:40 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: German\n"
1526
  msgstr "Ansichten hinzufügen/bearbeiten"
1527
 
1528
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
1529
+ #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1515
1530
  #, php-format
1531
  msgid "%s is invalid"
1532
  msgstr "%s ist ungültig"
languages/formidable-es_ES.mo CHANGED
Binary file
languages/formidable-es_ES.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Formidable v2.03.05\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
- "PO-Revision-Date: Tue Apr 11 2017 15:10:23 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Spanish (Spain)\n"
@@ -2039,7 +2039,7 @@ msgid "Add/Edit Views"
2039
  msgstr "Añadir / modificar Vistas"
2040
 
2041
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
2042
- #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1514
2043
  #, php-format
2044
  msgid "%s is invalid"
2045
  msgstr "%s no es válido"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Formidable v2.03.06\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
+ "PO-Revision-Date: Wed Apr 12 2017 13:22:42 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Spanish (Spain)\n"
2039
  msgstr "Añadir / modificar Vistas"
2040
 
2041
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
2042
+ #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1515
2043
  #, php-format
2044
  msgid "%s is invalid"
2045
  msgstr "%s no es válido"
languages/formidable-it_IT.mo CHANGED
Binary file
languages/formidable-it_IT.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Formidable v2.03.05\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
- "PO-Revision-Date: Tue Apr 11 2017 15:10:57 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Italian\n"
@@ -2330,7 +2330,7 @@ msgid "Add/Edit Views"
2330
  msgstr "Aggiungi/Modifica Visualizzazioni"
2331
 
2332
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
2333
- #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1514
2334
  #, php-format
2335
  msgid "%s is invalid"
2336
  msgstr "%s non è valido"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Formidable v2.03.06\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
+ "PO-Revision-Date: Wed Apr 12 2017 13:23:09 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Italian\n"
2330
  msgstr "Aggiungi/Modifica Visualizzazioni"
2331
 
2332
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
2333
+ #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1515
2334
  #, php-format
2335
  msgid "%s is invalid"
2336
  msgstr "%s non è valido"
languages/formidable-nb_NO.mo CHANGED
Binary file
languages/formidable-nb_NO.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Formidable v2.03.05\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
- "PO-Revision-Date: Tue Apr 11 2017 15:11:00 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Norwegian (Bokmål)\n"
@@ -302,7 +302,7 @@ msgid "Add/Edit Views"
302
  msgstr ""
303
 
304
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
305
- #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1514
306
  #, php-format
307
  msgid "%s is invalid"
308
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Formidable v2.03.06\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
+ "PO-Revision-Date: Wed Apr 12 2017 13:23:13 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Norwegian (Bokmål)\n"
302
  msgstr ""
303
 
304
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
305
+ #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1515
306
  #, php-format
307
  msgid "%s is invalid"
308
  msgstr ""
languages/formidable-nl_NL.mo CHANGED
Binary file
languages/formidable-nl_NL.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Formidable v2.03.05\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
- "PO-Revision-Date: Tue Apr 11 2017 15:11:02 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Dutch\n"
@@ -3311,7 +3311,7 @@ msgid "Add/Edit Views"
3311
  msgstr "Voeg toe / bewerk vertoning"
3312
 
3313
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
3314
- #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1514
3315
  #, php-format
3316
  msgid "%s is invalid"
3317
  msgstr "%s is ongeldig"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Formidable v2.03.06\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
+ "PO-Revision-Date: Wed Apr 12 2017 13:23:15 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Dutch\n"
3311
  msgstr "Voeg toe / bewerk vertoning"
3312
 
3313
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
3314
+ #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1515
3315
  #, php-format
3316
  msgid "%s is invalid"
3317
  msgstr "%s is ongeldig"
languages/formidable-pl_PL.mo CHANGED
Binary file
languages/formidable-pl_PL.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Formidable v2.03.05\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
- "PO-Revision-Date: Tue Apr 11 2017 15:11:28 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Polish\n"
@@ -321,7 +321,7 @@ msgid "Add/Edit Views"
321
  msgstr ""
322
 
323
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
324
- #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1514
325
  #, php-format
326
  msgid "%s is invalid"
327
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Formidable v2.03.06\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
+ "PO-Revision-Date: Wed Apr 12 2017 13:23:16 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Polish\n"
321
  msgstr ""
322
 
323
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
324
+ #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1515
325
  #, php-format
326
  msgid "%s is invalid"
327
  msgstr ""
languages/formidable-pt_BR.mo CHANGED
Binary file
languages/formidable-pt_BR.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Formidable v2.03.05\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
- "PO-Revision-Date: Tue Apr 11 2017 15:11:30 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Portuguese (Brazil)\n"
@@ -3598,7 +3598,7 @@ msgid "Add/Edit Views"
3598
  msgstr "Adicionar/Editar Cenários"
3599
 
3600
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
3601
- #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1514
3602
  #, php-format
3603
  msgid "%s is invalid"
3604
  msgstr "%s é inválido"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Formidable v2.03.06\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
+ "PO-Revision-Date: Wed Apr 12 2017 13:23:33 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Portuguese (Brazil)\n"
3598
  msgstr "Adicionar/Editar Cenários"
3599
 
3600
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
3601
+ #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1515
3602
  #, php-format
3603
  msgid "%s is invalid"
3604
  msgstr "%s é inválido"
languages/formidable-sr_RS.mo CHANGED
Binary file
languages/formidable-sr_RS.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Formidable v2.03.05\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
- "PO-Revision-Date: Tue Apr 11 2017 15:11:33 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Serbian\n"
@@ -3361,7 +3361,7 @@ msgid "Add/Edit Views"
3361
  msgstr "Dodaj/Edituj preglede"
3362
 
3363
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
3364
- #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1514
3365
  #, php-format
3366
  msgid "%s is invalid"
3367
  msgstr "%s ne postoji"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Formidable v2.03.06\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
6
+ "PO-Revision-Date: Wed Apr 12 2017 13:23:36 GMT-0700 (PDT)\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "Language: Serbian\n"
3361
  msgstr "Dodaj/Edituj preglede"
3362
 
3363
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
3364
+ #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1515
3365
  #, php-format
3366
  msgid "%s is invalid"
3367
  msgstr "%s ne postoji"
languages/formidable.pot CHANGED
@@ -2,10 +2,10 @@
2
  #, fuzzy
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Formidable v2.03.05\n"
6
  "Report-Msgid-Bugs-To: \n"
7
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
8
- "POT-Revision-Date: Tue Apr 11 2017 15:08:32 GMT-0700 (PDT)\n"
9
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
10
  "Last-Translator: \n"
11
  "Language-Team: \n"
@@ -621,7 +621,7 @@ msgid "Add/Edit Views"
621
  msgstr ""
622
 
623
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
624
- #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1514
625
  #, php-format
626
  msgid "%s is invalid"
627
  msgstr ""
2
  #, fuzzy
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Formidable v2.03.06\n"
6
  "Report-Msgid-Bugs-To: \n"
7
  "POT-Creation-Date: 2016-09-01 03:07+0000\n"
8
+ "POT-Revision-Date: Wed Apr 12 2017 13:20:21 GMT-0700 (PDT)\n"
9
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
10
  "Last-Translator: \n"
11
  "Language-Team: \n"
621
  msgstr ""
622
 
623
  #: ../classes/helpers/FrmAppHelper.php:1072 ../classes/helpers/FrmFieldsHelper.
624
+ #: php:175 ../pro/classes/controllers/FrmProFieldsController.php:1515
625
  #, php-format
626
  msgid "%s is invalid"
627
  msgstr ""
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: formidableforms, sswells, srwells, jamie.wahlin
3
  Tags: form, contact form, form builder, custom form, forms, form maker, form creator
4
  Requires at least: 3.8
5
  Tested up to: 4.7.3
6
- Stable tag: 2.03.05
7
 
8
  The best WordPress form plugin. Simple drag & drop form building, visual form styling, and unlimited email notifications.
9
 
@@ -97,6 +97,13 @@ A. The field and form names and descriptions are all changed with in-place edit.
97
  [See more FAQs](https://formidableforms.com/formidable-faqs/ "Formidable Form FAQs")
98
 
99
  == Changelog ==
 
 
 
 
 
 
 
100
  = 2.03.05 =
101
  * New: Add Honeypot spam protection
102
  * Enhancement: Add frm_form_attributes hook.
3
  Tags: form, contact form, form builder, custom form, forms, form maker, form creator
4
  Requires at least: 3.8
5
  Tested up to: 4.7.3
6
+ Stable tag: 2.03.06
7
 
8
  The best WordPress form plugin. Simple drag & drop form building, visual form styling, and unlimited email notifications.
9
 
97
  [See more FAQs](https://formidableforms.com/formidable-faqs/ "Formidable Form FAQs")
98
 
99
  == Changelog ==
100
+
101
+ = 2.03.06 =
102
+ * **Pro Version** *
103
+ * Fix: Add nonce check for uploads
104
+ * Fix: Decrease maximum number of orphaned files that can be deleted at one time
105
+ * Fix: Carry page titles across on import
106
+
107
  = 2.03.05 =
108
  * New: Add Honeypot spam protection
109
  * Enhancement: Add frm_form_attributes hook.