!function(e){"use strict";e.WS_Form.prototype.form_conditional=function(t){var a=this;if(void 0===t&&(t=!1),!1===this.conditional_cache){if(void 0===(u=this.get_object_meta_value(this.form,"conditional",!1)).groups)return!1;if(void 0===u.groups[0])return!1;if(void 0===u.groups[0].rows)return!1;for(var i in u.groups[0].rows)if(u.groups[0].rows.hasOwnProperty(i)){var s=u.groups[0].rows[i];if(null!==s&&"object"==typeof s&&(void 0===s.disabled||!s.disabled)&&void 0!==s.data&&void 0!==s.data[0]&&void 0!==s.data[1]){var o=s.data[0],r=s.data[1];try{r=JSON.parse(r)}catch(e){r=!1}!1!==r&&(r.label=o,r.last_state=[],this.conditional_events(r,t),!1===this.conditional_cache&&(this.conditional_cache=[]),this.conditional_cache.push(r))}}}else for(var i in this.conditional_cache){if(this.conditional_cache.hasOwnProperty(i))(r=this.conditional_cache[i]).last_state=[],this.conditional_events(r,t)}var c=[];for(var _ in this.conditional_event_selector_to_condition)if(this.conditional_event_selector_to_condition.hasOwnProperty(_)){var n=this.conditional_event_selector_to_condition[_];for(var d in n)if(n.hasOwnProperty(d)){var l=n[d],h=l.object_event_selector,f=l.object_event_obj,u=l.conditionals;if(t){"null"===_&&(_=null);f.each(function(){e(this).on(d,_,{conditionals:u},function(t,i,s,o){if(void 0===s||void 0===o||a.form_id===s||a.form_instance_id===o){var r=e(this).closest("[data-repeatable-index]"),c=r.length?r.attr("data-repeatable-index"):0;for(var _ in t.data.conditionals)if(t.data.conditionals.hasOwnProperty(_)){var n=t.data.conditionals[_];a.conditional_process(n,!1,e(this),c,t)}}}),a.form_events_reset.push({obj:e(this),event:d})}),this.log("log_conditional_event",(null===_?this.language("debug_form"):_)+" ("+d+")","conditional")}var v=e(h,this.form_canvas_obj),b=[],p=[];for(var m in v.each(function(){if(void 0!==e(this).attr("name")){var t=e(this).attr("name");p.includes(t)||(p.push(t),b.push(e(this)))}}),b)if(b.hasOwnProperty(m)){var g=b[m];if(void 0===g.attr("data-wsf-conditional-initialize-once")){var k=g.closest("[data-repeatable-index]"),w=k.length?k.attr("data-repeatable-index"):0,y=!1;for(var i in u)if(u.hasOwnProperty(i)){r=u[i];a.conditional_destination_repeatable(r)&&(y=!0),a.conditional_process(r,!0,g,w,!1)}y||c.includes(g)||c.push(g)}}}}for(var j in c){if(c.hasOwnProperty(j))c[j].attr("data-wsf-conditional-initialize-once","")}},e.WS_Form.prototype.conditional_destination_repeatable=function(e){return this.conditional_destination_repeatable_then_else(e,"then")||this.conditional_destination_repeatable_then_else(e,"else")},e.WS_Form.prototype.conditional_destination_repeatable_then_else=function(e,t){var a=e[t];for(var i in a)if(a.hasOwnProperty(i)){var s=a[i];if(this.conditional_action_check(s)){var o=s.object,r=s.object_id;switch(o){case"section":if(void 0===this.section_data_cache[r])continue;var c=this.section_data_cache[r];break;case"field":if(void 0===this.field_data_cache[r])continue;var _=this.field_data_cache[r].section_id;if(void 0===this.section_data_cache[_])continue;c=this.section_data_cache[_]}if(this.get_object_meta_value(c,"section_repeatable"))return!0}}return!1},e.WS_Form.prototype.conditional_events=function(t,a){void 0===a&&(a=!0);var i=this,s=void 0!==this.framework.tabs.public.selector_href?this.framework.tabs.public.selector_href:"href";for(var o in t.if)if(t.if.hasOwnProperty(o)){var r=t.if[o];if(void 0!==r.conditions)for(var c in r.conditions)if(r.conditions.hasOwnProperty(c)){var _=r.conditions[c];if(this.conditional_condition_check(_)){var n=_.object,d=_.object_id,l=_.logic,h=_.value,f=[];switch(n){case"form":f.push(this.conditional_event_get(n,this.form_id,0,this.form,l));break;case"group":if(void 0===this.group_data_cache[d])break;var u=this.group_data_cache[d];f.push(this.conditional_event_get(n,d,!1,u,l));break;case"section":if(void 0===this.section_data_cache[d])break;u=this.section_data_cache[d];f.push(this.conditional_event_get(n,d,!1,u,l));break;case"field":if(void 0===this.field_data_cache[d])break;u=this.field_data_cache[d];var v=e.WS_Form.field_type_cache[u.type],b=this.get_object_row_id(_),p=void 0!==u.section_repeatable_section_id;f.push(this.conditional_event_get(n,d,b,u,l,p));var m=[];switch(l){case"field_match":case"field_match_not":var g=h;if(0==parseInt(g,10))break;if(void 0===this.field_data_cache[g])break;var k=this.field_data_cache[g];p=void 0!==k.section_repeatable_section_id;f.push(this.conditional_event_get("field",g,!1,k,l,p)),m.field_match_id=this.form_id_prefix+"field-"+g}var w=this.get_field_value_fallback(v,!1,"attribute_"+l,!1);if("object"==typeof w){var y="#"+this.form_id_prefix+n+"-"+d;for(var j in w)if(w.hasOwnProperty(j)){var x=w[j];x=this.mask_parse(x,m),e(y,this.form_canvas_obj).attr(j,x)}}break;case"submit":f.push(this.conditional_event_get(n,0,!1,this.submit,l));break;case"user":f.push(this.conditional_event_get(n,0,!1,!1,l));break;case"variable":(z=this.conditional_event_get(n,0,!1,!1,l)).event="wsf-rendered",f.push(z);var O=void 0===_.variable?"":_.variable,q=this.parse_variables_process(O);if("object"==typeof q.fields)for(var A in q.fields)if(q.fields.hasOwnProperty(A)){var S=q.fields[A];if(void 0!==this.field_data_cache[S]){var W=this.field_data_cache[S],F=void 0!==W.section_repeatable_section_id;f.push(this.conditional_event_get("field",S,!1,W,l,F))}}if("object"==typeof q.sections)for(var P in q.sections)if(q.sections.hasOwnProperty(P)){var C=q.sections[P];if(void 0!==this.section_data_cache[C]){var D=this.section_data_cache[C];f.push(this.conditional_event_get("section",C,!1,D,"section_repeatable"))}}if(q.dynamic)(z=this.conditional_event_get(n,0,!1,!1,l)).event="wsf-validate-silent",f.push(z)}for(var I in f)if(f.hasOwnProperty(I)){y=null;var z,T=(z=f[I]).repeatable;if("wsf-group-index"==z.event||"wsf-section-repeatable"==z.event||"wsf-validate"==z.event||"wsf-validate-silent"==z.event){if(!a)continue;"wsf-section-repeatable"==z.event&&(z.event="wsf-section-repeatable-"+z.object_id);var L=this.form_canvas_obj;y=null}else if("wsf-rendered"==z.event||"wsf-submit"==z.event||"wsf-save"==z.event||"wsf-submit wsf-save"==z.event||"wsf-submit-complete"==z.event||"wsf-save-complete"==z.event||"wsf-complete"==z.event||"wsf-submit-error"==z.event||"wsf-save-error"==z.event||"wsf-error"==z.event||"wsf-submit-success"==z.event||"wsf-save-success"==z.event||"wsf-success"==z.event)L=e(document),y=null;else{L=this.form_canvas_obj;switch(z.object){case"form":y=null;break;case"group":y="["+s+'="#'+this.form_id_prefix+"group-"+z.object_id+'"]';break;case"section":y='[id^="'+this.esc_selector(this.form_id_prefix+z.object+"-"+z.object_id)+'"][data-id="'+this.esc_selector(z.object_id)+'"]';break;case"field":var N=this.field_data_cache[z.object_id];switch(N.type){case"radio":case"price_radio":case"checkbox":case"price_checkbox":y='[name^="'+this.esc_selector(ws_form_settings.field_prefix+z.object_id)+'["],[name^="'+this.esc_selector(ws_form_settings.field_prefix+z.object_id)+'["] ~ label';break;case"select":case"price_select":if(this.get_object_meta_value(N,"select2",!1)&&-1!==["click","mousedown","mouseup","mouseover","mouseout","touchstart","touchmove","touchend","touchcancel"].indexOf(z.event))if(T)y='[id^="'+this.esc_selector(this.form_id_prefix+z.object+"-wrapper-"+z.object_id)+'-repeat-"] .select2';else y="#"+this.esc_selector(this.form_id_prefix+z.object+"-wrapper-"+z.object_id)+" .select2";else if(T)y='[id^="'+this.esc_selector(this.form_id_prefix+z.object+"-"+z.object_id)+'-repeat-"]';else y="#"+this.esc_selector(this.form_id_prefix+z.object+"-"+z.object_id);break;default:if(T)y='[id^="'+this.esc_selector(this.form_id_prefix+z.object+"-"+z.object_id)+'-repeat-"]';else y="#"+this.esc_selector(this.form_id_prefix+z.object+"-"+z.object_id)}}}if(z.create&&!1!==z.event&&!1!==y){var Z=0,E=e(y);if(E.each(function(){e(this).attr("data-init-conditional")&&Z++}),0===Z)switch(z.event){case"recaptcha":this.recaptchas_conditions.push(function(){i.conditional_process(t,!1,E,0,!1)});break;case"hcaptcha":this.hcaptchas_conditions.push(function(){i.conditional_process(t,!1,E,0,!1)});break;case"turnstile":this.turnstiles_conditions.push(function(){i.conditional_process(t,!1,E,0,!1)});break;case"captchafox":this.captchafoxes_conditions.push(function(){setTimeout(function(){i.conditional_process(t,!1,E,0,!1)},0)});break;default:if(null===y&&(y="null"),void 0===this.conditional_event_selector_to_condition[y]&&(this.conditional_event_selector_to_condition[y]=[]),void 0===this.conditional_event_selector_to_condition[y][z.event]&&(this.conditional_event_selector_to_condition[y][z.event]={object_event_selector:y,object_event_obj:L,conditionals:[],event_processed:!1}),-1===this.conditional_event_selector_to_condition[y][z.event].conditionals.indexOf(t)&&this.conditional_event_selector_to_condition[y][z.event].conditionals.push(t),ws_form_settings.debug){var R=e(y,this.form_canvas_obj).attr("data-populate-event"),U=R?R.split(" "):[];U.push(z.event),R=(U=U.filter(function(e,t,a){return a.indexOf(e)===t})).join(" "),e(y,this.form_canvas_obj).attr("data-populate-event",R)}}}}}}}},e.WS_Form.prototype.conditional_event_get=function(t,a,i,s,o,r){void 0===r&&(r=!1);var c={object:t,object_id:a,object_row_id:i,create:!0,event:!1,row:!1,repeatable:r};switch(t){case"field":var _=e.WS_Form.field_type_cache[s.type];void 0!==_.conditional&&(void 0!==_.conditional.exclude_condition&&(c.create=!_.conditional.exclude_condition),void 0!==_.conditional.condition_event&&(c.event=_.conditional.condition_event),void 0!==_.conditional.condition_event_row&&_.conditional.condition_event_row&&!1!==i&&(c.row=!0))}var n=e.WS_Form.settings_form.conditional.objects[t].logic;return void 0!==n[o]&&void 0!==n[o].event&&(c.event=n[o].event),c},e.WS_Form.prototype.conditional_process=function(t,a,i,s,o){if(void 0===t.if)return!1;if(void 0===t.then)return!1;if(void 0===t.else)return!1;var r=!1;for(var c in t.if)if(t.if.hasOwnProperty(c)){var _=t.if[c];if(void 0!==_.conditions){var n=!1,d=[];for(var l in _.conditions)if(_.conditions.hasOwnProperty(l)){var h=_.conditions[l];if(this.conditional_condition_check(h)){var f=h.object,u=h.object_id,v=h.logic,b=h.value,p=void 0===h.case_sensitive||h.case_sensitive,m=void 0!==h.multiple&&h.multiple,g=l>0?void 0===h.logic_previous?"||":h.logic_previous:"||",k=ws_form_settings.field_prefix+u,w=void 0===h.force_result?null:h.force_result;switch(f){case"form":var y=!1,j="#"+this.esc_selector(this.form_obj_id);break;case"group":y=!1,j="#"+this.esc_selector(this.form_id_prefix+"group-"+u);break;case"section":y=!1,j="#"+this.esc_selector(this.form_id_prefix+f+"-"+u);break;case"field":y=this.get_object_row_id(h);if(!s){var x=this.field_data_cache[u];if("object"==typeof x&&void 0!==x.section_id&&"object"==typeof this.section_data_cache[x.section_id]){var O=this.section_data_cache[x.section_id];if(this.get_object_meta_value(O,"section_repeatable"))return}}var q=s>0?"-repeat-"+s:"",A=(j="#"+this.esc_selector(this.form_id_prefix+f+"-"+u+q),e('[data-type][data-id="'+this.esc_selector(u)+'"]'+(s>0?'[data-repeatable-index="'+this.esc_selector(s)+'"]':""),this.form_canvas_obj));break;case"variable":y=!1,j=!1}if(e.WS_Form.debug_rendered){switch(f){case"form":var S=this.form;break;case"group":S=this.group_data_cache[u];break;case"section":S=this.section_data_cache[u];break;case"field":S=this.field_data_cache[u];break;case"variable":S={label:e.WS_Form.settings_form.conditional.objects.variable.text}}if(void 0!==S){var W=e.WS_Form.settings_form.conditional,F=W.logic_previous,P=W.objects[f].logic;if(void 0!==P[v])var C=P[v].text.toUpperCase();else C="";if(void 0!==F[g])var D=F[g].text.toUpperCase();else D="";d.push("<strong>"+(l>0?D+" ":"")+"["+this.esc_html(S.label)+"] "+C+(""!=b?" '"+this.esc_html(b)+"'":"")+"</strong> ("+(void 0!==S.type?"Type: "+S.type+" | ":"")+"ID: "+u+(!1!==y?" | Row ID: "+y.join(", "):"")+")")}}var I=e(j,this.form_canvas_obj),z=I.length?I.val():"";if("variable"==f){var T=void 0===h.variable?"":h.variable;null==(z=this.parse_variables_process(T,s).output)&&(z=""),"string"!=typeof z&&(z=z.toString())}p||(z&&"string"==typeof z&&(z=z.toLowerCase()),b&&"string"==typeof b&&(b=b.toLowerCase()));if(-1!==["r==","r!=","r>","r<","r>=","r<="].indexOf(v)){var L=e('[data-repeatable][data-id="'+this.esc_selector(u)+'"]',this.form_canvas_obj);if(!L.length)continue;z=L.length}b=this.parse_variables_process(b).output;switch(v){case"d==":case"d!=":case"d>":case"d<":case"d>=":case"d<=":if(!1!==(R=void 0!==this.field_data_cache[u]&&this.field_data_cache[u])){var N=this.get_object_meta_value(R,"input_type_datetime","date"),Z=this.get_object_meta_value(R,"format_date",ws_form_settings.date_format);Z||(Z=ws_form_settings.date_format);var E=this.get_object_meta_value(R,"format_time",ws_form_settings.time_format);E||(E=ws_form_settings.time_format),b=this.get_date(b,N,Z,E),z=this.get_date(z,N,Z,E)}break;case"==":case"!=":case">":case"<":case">=":case"<=":var R;if(!1!==(R=void 0!==this.field_data_cache[u]&&this.field_data_cache[u])){switch(R.type){case"price":case"price_subtotal":case"cart_price":case"cart_total":z=this.get_number(z,0,!0);break;default:z=this.get_number(z,0,!1)}b=parseFloat(b)}}var U=!1;switch(v){case"==":U=z==b;break;case"!=":U=z!=b;break;case">":U=z>b;break;case"<":U=z<b;break;case">=":U=z>=b;break;case"<=":U=z<=b;break;case"d==":""!=z&&""!=b&&(U=Date.parse(z)==Date.parse(b));break;case"d!=":""!=z&&""!=b&&(U=Date.parse(z)!=Date.parse(b));break;case"d>":""!=z&&""!=b&&(U=Date.parse(z)>Date.parse(b));break;case"d<":""!=z&&""!=b&&(U=Date.parse(z)<Date.parse(b));break;case"d>=":""!=z&&""!=b&&(U=Date.parse(z)>=Date.parse(b));break;case"d<=":""!=z&&""!=b&&(U=Date.parse(z)<=Date.parse(b));break;case"rc==":case"rc!=":z=e('input[type="checkbox"]:not([data-wsf-select-all]):checked',A).length;U=z==this.get_number(b),"rc!="==v&&(U=!U);break;case"rc>":z=e('input[type="checkbox"]:not([data-wsf-select-all]):checked',A).length;U=z>this.get_number(b);break;case"rc<":z=e('input[type="checkbox"]:not([data-wsf-select-all]):checked',A).length;U=z<this.get_number(b);break;case"rs==":case"rs!=":z=e("option:not([data-placeholder]):selected",A).length;U=z==this.get_number(b),"rs!="==v&&(U=!U);break;case"rs>":z=e("option:not([data-placeholder]):selected",A).length;U=z>this.get_number(b);break;case"rs<":z=e("option:not([data-placeholder]):selected",A).length;U=z<this.get_number(b);break;case"r==":U=this.get_number(z)==this.get_number(b);break;case"r!=":U=this.get_number(z)!=this.get_number(b);break;case"r>":""!=z&&(U=this.get_number(z)>this.get_number(b));break;case"r<":""!=z&&(U=this.get_number(z)<this.get_number(b));break;case"r>=":""!=z&&(U=this.get_number(z)>=this.get_number(b));break;case"r<=":""!=z&&(U=this.get_number(z)<=this.get_number(b));break;case"section_repeatable":t.last_state[s]="",U=o.type=="wsf-section-repeatable-"+u;break;case"equals":case"c==":U=m&&"equals"==v?this.conditional_value_match_multiple(z,b,function(e,t){return e==t}):z==b;break;case"equals_not":case"c!=":U=m&&"equals_not"==v?!this.conditional_value_match_multiple(z,b,function(e,t){return e==t}):z!=b;break;case"contains":case"contains_not":U=m?this.conditional_value_match_multiple(z,b,function(e,t){return-1!=e.indexOf(t)}):-1!=z.indexOf(b),"contains_not"==v&&(U=!U);break;case"starts":case"starts_not":U=m?this.conditional_value_match_multiple(z,b,function(e,t){return e.startsWith(t)}):z.startsWith(b),"starts_not"==v&&(U=!U);break;case"ends":case"ends_not":U=m?this.conditional_value_match_multiple(z,b,function(e,t){return e.endsWith(t)}):z.endsWith(b),"ends_not"==v&&(U=!U);break;case"blank":case"blank_not":U=""==z,"blank_not"==v&&(U=!U);break;case"checked":case"checked_not":U=!1;if("object"!=typeof y)break;for(var Q in y)if(y.hasOwnProperty(Q)){var $=y[Q],J="#"+this.esc_selector(this.form_id_prefix+f+"-"+u+"-row-"+$+q),K=e(J,this.form_canvas_obj).is(":checked");U|=K}"checked_not"==v&&(U=!U);break;case"checked_any":case"checked_any_not":U=e("input:checked",A).length>0,"checked_any_not"==v&&(U=!U);break;case"checked_all":case"checked_all_not":var B=e("input:not([disabled])",A),G=B.filter(":checked");U=B.length==G.length;"checked_all_not"==v&&(U=!U);break;case"checked_value_equals":case"checked_value_equals_not":e("input:checked",A).each(function(){var t=e(this).val();if(p||(t=t.toLowerCase()),t===b)return U=!0,!1}),"checked_value_equals_not"==v&&(U=!U);break;case"selected":case"selected_not":U=!1;if("object"!=typeof y)break;for(var Q in y)if(y.hasOwnProperty(Q)){$=y[Q],K=e('option[data-id="'+this.esc_selector($)+'"]',e(j,this.form_canvas_obj)).prop("selected");U|=K}"selected_not"==v&&(U=!U);break;case"selected_any":case"selected_any_not":U=e("option:not([data-placeholder]):selected",e(j,this.form_canvas_obj)).length>0;"selected_any_not"==v&&(U=!U);break;case"selected_all":case"selected_all_not":var H=e("option:not([data-placeholder],[disabled])",e(j,this.form_canvas_obj)),M=H.filter(":selected");U=H.length==M.length;"selected_all_not"==v&&(U=!U);break;case"selected_value_equals":case"selected_value_equals_not":e("option:selected",e(j,this.form_canvas_obj)).each(function(){var t=e(this).val();if(p||(t=t.toLowerCase()),t===b)return U=!0,!1}),"selected_value_equals_not"==v&&(U=!U);break;case"regex_email":case"regex_email_not":U=(V=/^(([^<>()\[\]\\.,;:\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,}))$/).test(z),"regex_email_not"==v&&(U=!U);break;case"regex_url":case"regex_url_not":U=(V=/[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi).test(z),"regex_url_not"==v&&(U=!U);break;case"regex":case"regex_not":var V=new RegExp(b);U=V.test(z),"regex_not"==v&&(U=!U);break;case"wsf-rendered":case"wsf-submit":case"wsf-submit-complete":case"wsf-submit-success":case"wsf-submit-error":case"wsf-save":case"wsf-save-complete":case"wsf-save-success":case"wsf-save-error":case"wsf-submit-save":case"wsf-complete":case"wsf-success":case"wsf-error":(U=v==o.type||"wsf-submit-save"==v&&-1!=["wsf-submit","wsf-save"].indexOf(o.type))&&(t.last_state[s]="");break;case"click":case"mousedown":case"mouseup":case"mouseover":case"mouseout":case"touchstart":case"touchmove":case"touchend":case"touchcancel":case"focus":case"blur":case"change":case"change_input":case"input":case"keyup":case"keydown":if(!o||!o.target){U=!1;break}var X=e(o.target),Y=!1;switch(f){case"form":Y=!0;break;case"group":Y=this.get_group_id(X)==u;break;case"section":Y=this.get_section_id(X)==u;break;case"field":Y=this.get_field_id(X)==u}(U=Y&&(v==o.type||void 0!==o.handleObj&&void 0!==o.handleObj.origType&&v==o.handleObj.origType||"change_input"==v&&-1!=["change","input"].indexOf(o.type)||"click"==v&&-1!=["click","wsf-click"].indexOf(o.type)))&&(t.last_state[s]="");break;case"token_validated":case"token_validated_not":U=!1!==this.submit&&void 0!==this.submit.token_validated&&this.submit.token_validated,"token_validated_not"==v&&(U=!U);break;case"user_logged_in":case"user_logged_in_not":case"user_role":case"user_role_not":case"user_capability":case"user_capability_not":U=w;break;case"ch>":case"ch<":case"cs>":case"cs<":case"cl>":case"cl<":case"ca>":case"ca<":if("function"!=typeof this.color_to_hsla_array){U=!1;break}var ee=this.color_to_hsla_array(z);switch(v){case"ch>":U=ee.h>b;break;case"ch<":U=ee.h<b;break;case"cs>":U=ee.s>b;break;case"cs<":U=ee.s<b;break;case"cl>":U=ee.l>b;break;case"cl<":U=ee.l<b;break;case"ca>":U=ee.a>b;break;case"ca<":U=ee.a<b}break;case"recaptcha":case"recaptcha_not":if("function"==typeof this.recaptcha_get_response_by_name){var te=this.recaptcha_get_response_by_name(k);U="string"==typeof te&&te.length>0,"recaptcha_not"==v&&(U=!U)}break;case"hcaptcha":case"hcaptcha_not":if("function"==typeof this.hcaptcha_get_response_by_name){te=this.hcaptcha_get_response_by_name(k);U="string"==typeof te&&te.length>0,"hcaptcha_not"==v&&(U=!U)}break;case"turnstile":case"turnstile_not":if("function"==typeof this.turnstile_get_response_by_name){te=this.turnstile_get_response_by_name(k);U="string"==typeof te&&te.length>0,"turnstile_not"==v&&(U=!U)}break;case"captchafox":case"captchafox_not":if("function"==typeof this.captchafox_get_response_by_name){te=this.captchafox_get_response_by_name(k);U="string"==typeof te&&te.length>0,"captchafox_not"==v&&(U=!U)}break;case"media_capture":case"media_capture_not":"function"==typeof this.media_capture_get_response_by_name&&(U=this.media_capture_get_response_by_name(k),"media_capture_not"==v&&(U=!U));break;case"signature":case"signature_not":"function"==typeof this.signature_get_response_by_name&&(U=this.signature_get_response_by_name(k),"signature_not"==v&&(U=!U));break;case"file":case"file_not":"function"==typeof this.file_get_count_by_field_id&&(U=this.file_get_count_by_field_id(u)>0,"file_not"==v&&(U=!U));break;case"f>":"function"==typeof this.file_get_count_by_field_id&&(U=this.file_get_count_by_field_id(u)>b);break;case"f<":"function"==typeof this.file_get_count_by_field_id&&(U=this.file_get_count_by_field_id(u)<b);break;case"f==":case"f!=":"function"==typeof this.file_get_count_by_field_id&&(U=this.file_get_count_by_field_id(u)==b,"f!="==v&&(U=!U));break;case"field_match":case"field_match_not":var ae=parseInt(b,10);if(ae>0){var ie="#"+this.form_id_prefix+"field-"+ae+(s>0?"-repeat-"+s:""),se=e(ie,this.form_canvas_obj).val();p||se&&"string"==typeof se&&(se=se.toLowerCase()),U=se==z,"field_match_not"==v&&(U=!U)}break;case"cc==":U=z.length==parseInt(b,10);break;case"cc!=":U=z.length!=parseInt(b,10);break;case"cc>":U=z.length>parseInt(b,10);break;case"cc<":U=z.length<parseInt(b,10);break;case"cw==":U=this.get_word_count(z)==parseInt(b,10);break;case"cw!=":U=this.get_word_count(z)!=parseInt(b,10);break;case"cw>":U=this.get_word_count(z)>parseInt(b,10);break;case"cw<":U=this.get_word_count(z)<parseInt(b,10);break;case"select2_ajax_results":case"select2_ajax_results_not":if(a)return;t.last_state[s]="",U=void 0!==e(j,this.form_canvas_obj).attr("data-select2-ajax-results"),"select2_ajax_results_not"==v&&(U=!U);break;case"google_route_status_ok":if(a)return;t.last_state[s]="",U=void 0!==e(j,this.form_canvas_obj).attr("data-google-route-status")&&"OK"==e(j,this.form_canvas_obj).attr("data-google-route-status");break;case"google_route_status_zero_results":if(a)return;t.last_state[s]="",U=void 0!==e(j,this.form_canvas_obj).attr("data-google-route-status")&&"ZERO_RESULTS"==e(j,this.form_canvas_obj).attr("data-google-route-status");break;case"active":case"active_not":U=e(j,this.form_canvas_obj).attr("data-group-index")==this.group_index,"active_not"==v&&(U=!U);break;case"validate":case"validate_not":switch(f){case"form":U=this.form_valid;break;case"group":case"section":U=this.object_validate(e(j,this.form_canvas_obj));break;case"field":U=this.object_validate(A)}"validate_not"==v&&(U=!U)}n=this.conditional_logic_previous(n,U,g)}}g=c>0?void 0===_.logic_previous?"||":_.logic_previous:"||";r=this.conditional_logic_previous(r,n,g)}}var oe=!1;if(r?!0===t.last_state[s]&&void 0!==t.last_state[s]||(oe="then",t.last_state[s]=!0):!1===t.last_state[s]&&void 0!==t.last_state[s]||(oe="else",t.last_state[s]=!1),!1!==oe){var re=t[oe];re.length&&(this.log("log_conditional_fired_"+oe,"("+this.esc_html(t.label)+") "+d.join(" "),"conditional"),this.conditional_process_actions(re,oe,i,s))}!a&&this.has_ecommerce&&"function"==typeof this.form_ecommerce_calculate&&this.form_ecommerce_calculate()},e.WS_Form.prototype.conditional_process_actions=function(t,a,i,s){var o=0,r=!1,c=!1,_=!1,n=!1,d=this;for(var l in t)if(t.hasOwnProperty(l)){var h=t[l];if(this.conditional_action_check(h)){var f=h.object,u=h.object_id,v=this.get_object_row_id(h),b=h.action;switch(f){case"form":var p=d.form_obj,m=d.form_obj,g=void 0!==h.value&&this.parse_variables_process(h.value,!1,!1,!1,!1,!1).output,k=this.conditional_process_action(a,b,p,m,f,u,!1,g,!1);r=r||k.process_required,c=c||k.process_bypass,_=_||k.process_navigation,n=n||k.process_validation;break;case"group":var w="#"+this.esc_selector(this.form_id_prefix+"group-"+u);p=m=e(w,this.form_canvas_obj),g=void 0!==h.value&&this.parse_variables_process(h.value,!1,!1,!1,!1,!1).output,k=this.conditional_process_action(a,b,p,m,f,u,!1,g,!1);r=r||k.process_required,c=c||k.process_bypass,_=_||k.process_navigation,n=n||k.process_validation;break;case"section":var y=this.get_section_id(i);if(!(x=e('[id^="'+this.esc_selector(this.form_id_prefix)+'section-"][data-id="'+this.esc_selector(u)+'"]',this.form_canvas_obj)).length)break;var j=x.first();y===parseInt(u,10)&&j.attr("data-repeatable-index")&&(x=x.filter('[data-repeatable-index="'+this.esc_selector(s)+'"]')),x.each(function(){var t=void 0!==e(this).attr("data-repeatable-index")&&e(this).attr("data-repeatable-index"),i=void 0!==h.value&&d.parse_variables_process(h.value,t,!1,!1,!1,!1,!1).output,s=d.conditional_process_action(a,b,e(this),e(this),f,u,!1,i,t);r=r||s.process_required,c=c||s.process_bypass,_=_||s.process_navigation,n=n||s.process_validation});break;case"field":var x;y=this.get_section_id(i);if(!(x=e('[id^="'+this.esc_selector(this.form_id_prefix)+'field-wrapper-"][data-id="'+this.esc_selector(u)+'"],input[type="hidden"][data-id-hidden="'+this.esc_selector(u)+'"]',this.form_canvas_obj)).length)break;j=x.first();y===this.get_section_id(j.first())&&j.attr("data-repeatable-index")&&(x=x.filter('[data-repeatable-index="'+this.esc_selector(s)+'"]')),x.each(function(){var t=void 0!==e(this).attr("data-repeatable-index")&&e(this).attr("data-repeatable-index"),i=!1!==t?"-repeat-"+t:"";if("object"==typeof v){var s=[];for(var o in v)if(v.hasOwnProperty(o)){var l=v[o];s.push("#"+d.esc_selector(d.form_id_prefix+"field-"+u+"-row-"+l+i))}var p=s.join(", ")}else p="#"+d.esc_selector(d.form_id_prefix+"field-"+u+i);var m=e(p,d.form_canvas_obj),g=void 0!==d.field_data_cache[u]&&d.field_data_cache[u],k=void 0!==h.value&&d.parse_variables_process(h.value,t,!1,g,!1,!1,!1).output,w=d.conditional_process_action(a,b,e(this),m,f,u,v,k,t);r=r||w.process_required,c=c||w.process_bypass,_=_||w.process_navigation,n=n||w.process_validation});break;case"action":g=void 0!==h.value&&d.parse_variables_process(h.value,!1,!1,!1,!1,!1).output,k=d.conditional_process_action(a,b,e(this),!1,f,u,!1,g,!1);r=r||k.process_required,c=c||k.process_bypass,_=_||k.process_navigation,n=n||k.process_validation}o++}}return r&&("function"==typeof this.form_progress&&this.form_progress(),this.form_required()),c&&this.form_bypass(!0)&&"function"==typeof this.form_tab_validation_process&&this.form_tab_validation_process(),_&&this.form_navigation(),n&&this.form_validate_real_time(),o},e.WS_Form.prototype.conditional_process_action=function(t,a,i,s,o,r,c,_,n){void 0===_&&(_="");var d=void 0!==this.framework.tabs.public.selector_href?this.framework.tabs.public.selector_href:"href",l=ws_form_settings.field_prefix+r+(n?"["+n+"]":""),h=_,f=!1,u=!1,v=!1,b=!1,p=!1;switch(a){case"value":case"value_number":case"value_datetime":case"value_tel":case"value_email":case"value_textarea":case"value_url":case"value_range":case"value_rating":case"value_color":case"html":case"text_editor":case"button_html":this.field_value_set(i,s,_);break;case"value_increase":case"value_decrease":var m=this.get_number(s.val());_=this.get_number(this.parse_variables_process(_).output),m+="value_decrease"==a?-_:_;var g=s.attr("min");if(g&&m<g)break;var k=s.attr("max");if(k&&m>k)break;this.field_value_set(i,s,m);break;case"class_add_wrapper":i.addClass(_),f="debug_action_added";break;case"class_remove_wrapper":i.removeClass(_),f="debug_action_removed";break;case"class_add_field":s.addClass(_),f="debug_action_added";break;case"class_remove_field":s.removeClass(_),f="debug_action_removed";break;case"reset_signature":"function"==typeof this.signature_clear_by_name&&(this.signature_clear_by_name(l),f="debug_action_reset");break;case"value_row_select":case"value_row_deselect":s.each(function(){if(e(this).is(":enabled")){var t=e(this).prop("selected")!==("value_row_select"==a);e(this).prop("selected",!1).prop("selected","value_row_select"==a),t&&e(this).closest("select").trigger("change")}}),f="debug_action_"+("value_row_select"==a?"selected":"deselected");break;case"value_row_select_value":case"value_row_deselect_value":var w="value_row_select_value"==a;this.field_value_set(i,s,_,w),f="debug_action_"+(w?"selected_value":"deselected_value");break;case"value_row_select_all":case"value_row_deselect_all":e("option",i).each(function(){if(e(this).is(":enabled")){var t=e(this).prop("selected")!==("value_row_select_all"==a);e(this).prop("selected",!1).prop("selected","value_row_select_all"==a),t&&e(this).closest("select").trigger("change"),f="debug_action_"+("value_row_select_all"==a?"selected":"deselected")}});break;case"value_row_reset":e("option:selected:enabled",i).prop("selected",!1).trigger("change"),f="debug_action_reset";break;case"value_row_check":case"value_row_uncheck":s.each(function(){var t=e(this).prop("checked")!==("value_row_check"==a);e(this).prop("checked","value_row_check"==a),t&&e(this).trigger("change")}),f="debug_action_"+("value_row_check"==a?"checked":"unchecked");break;case"value_row_check_value":case"value_row_uncheck_value":w="value_row_check_value"==a;this.field_value_set(i,s,_,w),f="debug_action_"+(w?"checked":"unchecked");break;case"value_row_check_all":case"value_row_uncheck_all":e('input[type="checkbox"]',i).each(function(){if(e(this).is(":enabled")){var t=e(this).prop("checked")!==("value_row_check_all"==a);e(this).prop("checked","value_row_check_all"==a),t&&e(this).trigger("change"),f="debug_action_"+("value_row_check_all"==a?"checked":"unchecked")}});break;case"value_row_required":case"value_row_not_required":s.prop("required","value_row_required"==a).removeAttr("data-init-required"),"value_row_required"==a?s.attr("data-required","").attr("aria-required","true").removeAttr("data-conditional-logic-bypass"):s.removeAttr("data-required").removeAttr("aria-required").attr("data-conditional-logic-bypass",""),f="debug_action_"+("value_row_required"==a?"required":"not_required"),this.form_bypass_obj_reset(s),u=!0,v=!0;break;case"value_row_disabled":case"value_row_not_disabled":s.attr("disabled","value_row_disabled"==a),void 0!==s.parent().attr("data-wsf-select2")&&"function"==typeof this.form_select2&&this.form_select2(s.parent()),f="debug_action_"+("value_row_disabled"==a?"disabled":"enabled");break;case"value_row_visible":case"value_row_not_visible":"value_row_not_visible"===a?s.parent().hide():s.parent().show(),s.trigger("change"),f="debug_action_"+("value_row_not_visible"==a?"hide":"show"),v=!0;break;case"value_row_focus":s.trigger("focus"),f="debug_action_focussed";break;case"value_row_class_add":s.addClass(_),f="debug_action_added";break;case"value_row_class_remove":s.removeClass(_),f="debug_action_removed";break;case"value_row_set_custom_validity":this.set_invalid_feedback(s,_,c),v=!0;break;case"min":case"max":case"step":case"low":case"high":case"optimum":_=""!=_&&this.get_float(_,0),this.obj_set_attribute(s,a,_),this.form_bypass_obj_reset(s),v=!0;break;case"min_int":case"max_int":case"step_int":var y=a.replace("_int","");_=""!=_&&this.get_number(_,0,!1),this.obj_set_attribute(s,y,_),this.form_bypass_obj_reset(s),v=!0;break;case"min_date":case"max_date":case"min_time":case"max_time":if("function"==typeof s.datetimepicker)switch(a){case"min_date":s.datetimepicker("setOptions",{minDate:_});break;case"max_date":s.datetimepicker("setOptions",{maxDate:_});break;case"min_time":s.datetimepicker("setOptions",{minTime:_});break;case"max_time":s.datetimepicker("setOptions",{maxTime:_})}break;case"ecommerce_price_min":case"ecommerce_price_max":_=""!=_&&this.get_float(_,0);var j=s.val();this.obj_set_attribute(s,"data-ecommerce-"+("ecommerce_price_min"===a?"min":"max"),_),"function"==typeof this.form_ecommerce_input_mask_currency&&this.form_ecommerce_input_mask_currency(s),s.val()!==j&&s.trigger("change");break;case"select_min":case"select_max":var x="select_min"===a?"min":"max";_=""!=_&&this.get_number(_,0,!1);var O=void 0===i.attr("data-select-min-max-init");if(!1!==_?i.attr("data-select-"+x,_):i.removeAttr("data-select-"+x),O)"function"==typeof this.form_select_min_max&&this.form_select_min_max();else{var q=e('input[type="number"]',i);this.obj_set_attribute(q,x,_)}break;case"checkbox_min":case"checkbox_max":x="checkbox_min"===a?"min":"max";_=""!=_&&this.get_number(_,0,!1);var A=void 0===i.attr("data-checkbox-min-max-init");if(!1!==_?i.attr("data-checkbox-"+x,_):i.removeAttr("data-checkbox-"+x),A)"function"==typeof this.form_checkbox_min_max&&this.form_checkbox_min_max();else{q=e('input[type="number"]',i);this.obj_set_attribute(q,x,_)}break;case"visibility":switch(o){case"group":var S=e("["+d+'="#'+this.esc_selector(this.form_id_prefix+"group-"+r)+'"]',this.form_canvas_obj).parent();if("off"===_){if(i.is(":visible")){var W=e('[id^="'+this.esc_selector(this.form_id_prefix)+'group-"]:not([data-wsf-group-hidden])');if(W.length){var F=W.first().attr("id");e("["+d+'="#'+this.esc_selector(F)+'"]').trigger("click")}}S.attr("data-wsf-group-hidden","").hide().attr("aria-live","polite").attr("aria-hidden","true"),i.attr("data-wsf-group-hidden","").attr("aria-live","polite").attr("aria-hidden","true"),f="debug_action_hide"}else S.removeAttr("data-wsf-group-hidden").show().removeAttr("aria-hidden"),i.removeAttr("data-wsf-group-hidden").removeAttr("aria-hidden"),f="debug_action_show";v=!0,b=!0,p=!0;break;case"section":case"field":"off"===_?(i.hide().attr("aria-live","polite").attr("aria-hidden","true"),v=!0,p=!0,f="debug_action_hide"):(i.show().removeAttr("aria-hidden"),v=!0,p=!0,"function"==typeof this.signatures_redraw&&("section"==o&&this.signatures_redraw(!1,r),"field"==o&&this.signatures_redraw(!1,!1,r)),f="debug_action_show")}"field"===o&&this.form_label(i);break;case"set_row_count":if(!(R=e('[data-repeatable][data-id="'+this.esc_selector(r)+'"]',this.form_canvas_obj)).length)break;var P=R.length;if(isNaN(_))break;var C=parseInt(_,10),D=this.section_data_cache[r],I=this.get_object_meta_value(D,"section_repeat_min",1);(I=""==I||isNaN(I)?1:parseInt(I,10))<1&&(I=1);var z=this.get_object_meta_value(D,"section_repeat_max",!1);if(C<I&&(C=I),!1!==(z=""!=z&&!isNaN(I)&&parseInt(z,10))&&C>z&&(C=z),P<C){for(var T=R.last(),L=C-P,N=0;N<L;N++)"function"==typeof this.section_clone&&this.section_clone(T);"function"==typeof this.section_add_init&&this.section_add_init(r),this.form_canvas_obj.trigger("wsf-section-repeatable").trigger("wsf-section-repeatable-"+r)}if(P>C){for(var Z=P-C,E=0;E<Z;E++){var R;(R=e('[data-repeatable][data-id="'+this.esc_selector(r)+'"]',this.form_canvas_obj)).last().remove()}"function"==typeof this.section_remove_init&&this.section_remove_init(r),this.form_canvas_obj.trigger("wsf-section-repeatable").trigger("wsf-section-repeatable-"+r)}break;case"disabled":switch(o){case"section":i.prop("disabled","on"==_),"on"==_?i.attr("aria-disabled","true"):i.removeAttr("aria-disabled");var U=e("[name]",i);break;case"field":U=s}var Q=this;e(U).each(function(){e(this).prop("disabled","on"==_),"on"==_?e(this).attr("aria-disabled","true"):e(this).removeAttr("aria-disabled");var t=e(this).closest("[data-type]"),a=Q.get_field_value_fallback(t.attr("data-type"),!1,"class_disabled",!1);switch("on"==_?(!1!==a&&e(this).addClass(a.join(" ")),e(this).css({"pointer-events":"none"}).attr("data-conditional-logic-bypass","")):(!1!==a&&e(this).removeClass(a.join(" ")),e(this).css({"pointer-events":"auto"}).removeAttr("data-conditional-logic-bypass")),t.attr("data-type")){case"file":switch(e(this).attr("data-file-type")){case"dropzonejs":"on"==_?e(".dropzone",t)[0].dropzone.disable():e(".dropzone",t)[0].dropzone.enable()}}}),b=!0,p=!0,f="debug_action_"+("on"==_?"disabled":"enabled");break;case"required":case"required_signature":switch((J=this.field_data_cache[r]).type){case"radio":case"price_radio":s=e('[name="'+this.esc_selector(l)+'[]"]',i)}s.prop("required","on"==_).removeAttr("data-init-required"),"on"==_?s.attr("data-required","").attr("aria-required","true").removeAttr("data-conditional-logic-bypass"):s.removeAttr("data-required").removeAttr("aria-required").attr("data-conditional-logic-bypass",""),this.form_bypass_obj_reset(s),f="debug_action_"+("on"==_?"required":"not_required"),u=!0,v=!0,p=!0;break;case"readonly":s.prop("readonly","on"==_),"on"==_?s.attr("aria-readonly","true"):s.removeAttr("aria-readonly"),f="debug_action_"+("on"==_?"read_only":"not_read_only"),"function"==typeof this.form_date&&this.form_date();break;case"password_generate":"function"==typeof this.generate_password&&s.val(this.generate_password(24)).trigger("change");break;case"google_address_auto_complete":"function"==typeof this.google_address_auto_complete&&s.trigger("wsf-auto-complete");break;case"set_custom_validity":var $=!1;if(void 0!==this.field_data_cache[r]){var J=this.field_data_cache[r];if(void 0!==e.WS_Form.field_type_cache[J.type]){var K=e.WS_Form.field_type_cache[J.type];$=void 0!==K.invalid_feedback_last_row&&K.invalid_feedback_last_row}}var B=e('[id^="'+this.esc_selector(this.form_id_prefix+"invalid-feedback-"+r)+'"]',i);if($)s=B.siblings('[id^="'+this.esc_selector(this.form_id_prefix+"field-"+r)+'"]');this.set_invalid_feedback(s,_,c),this.form_bypass_obj_reset(s),v=!0;break;case"click":switch(o){case"group":var G=e("["+d+'="#'+this.esc_selector(this.form_id_prefix+"group-"+r)+'"]:not([data-wsf-tab-disabled])',this.form_canvas_obj);G.trigger("click"),void 0!==(S=G.parent()).attr("data-wsf-group-hidden")&&(S.removeAttr("data-wsf-group-hidden").show().removeAttr("aria-hidden"),i.removeAttr("data-wsf-group-hidden").removeAttr("aria-hidden"),v=!0);break;case"field":s.trigger("click")}f="debug_action_clicked";break;case"focus":this.conversational&&(this.conversational_scroll_start_x=e(window).scrollLeft(),this.conversational_scroll_start_y=e(window).scrollTop()),s.trigger("focus"),f="debug_action_focussed";break;case"action_run":-1!==this.conditional_actions_run_action.indexOf(r)&&this.form_post("action",r);break;case"action_run_on_save":-1===this.conditional_actions_run_save.indexOf(r)&&(this.conditional_actions_run_save.push(r),this.conditional_actions_changed=!0);break;case"action_run_on_submit":-1===this.conditional_actions_run_submit.indexOf(r)&&(this.conditional_actions_run_submit.push(r),this.conditional_actions_changed=!0);break;case"action_do_not_run_on_save":-1!==(H=this.conditional_actions_run_save.indexOf(r))&&(this.conditional_actions_run_save.splice(H,1),this.conditional_actions_changed=!0);break;case"action_do_not_run_on_submit":var H;-1!==(H=this.conditional_actions_run_submit.indexOf(r))&&(this.conditional_actions_run_submit.splice(H,1),this.conditional_actions_changed=!0);break;case"javascript":try{e.globalEval("(function($){\n"+_+"\n})(jQuery);")}catch(e){this.error("error_js",_)}break;case"copy_to_clipboard":navigator.clipboard.writeText(s.val());break;case"validate_show":this.form_obj.addClass(this.class_validated);break;case"validate_hide":this.form_obj.removeClass(this.class_validated);break;case"form_save":this.form_post("save");break;case"form_save_validate":this.form_post_if_validated("save");break;case"form_hash_clear":this.form_hash_clear();break;case"form_submit":this.form_obj.trigger("submit");break;case"form_clear":this.form_clear();break;case"form_reset":this.form_reset();break;case"form_loader_show":void 0!==this.form_loader_show&&this.form_loader_show("conditional");break;case"form_loader_hide":void 0!==this.form_loader_hide&&this.form_loader_hide();break;case"reset":case"reset_file":case"clear":var M="clear"===a;switch(o){case"group":this.group_fields_reset(r,M);break;case"section":this.section_fields_reset(r,M,n);break;case"field":this.field_reset(r,M,i)}}if(e.WS_Form.debug_rendered){var V=!1;switch(o){case"form":V=this.language("debug_action_form");var X=this.language("debug_action_form");break;case"group":if(void 0!==this.group_data_cache[r]){var Y=this.group_data_cache[r];V=this.language("debug_action_group"),X=Y.label}break;case"section":if(void 0!==this.section_data_cache[r])Y=this.section_data_cache[r],V=this.language("debug_action_section"),X=Y.label;break;case"field":if(void 0!==this.field_data_cache[r])V=(Y=this.field_data_cache[r]).type,X=Y.label;break;case"action":if(void 0!==this.action_data_cache[r])Y=this.action_data_cache[r],V=this.language("debug_action_action"),X=Y.label}if(!1!==V){!1!==f&&(h=this.language(f));var ee=e.WS_Form.settings_form.conditional.objects[o].action[a];if(!ee)return this.error("error_condition_action",a),!1;var te=ee.text.toUpperCase();void 0!==ee.values&&"object"==typeof ee.values&&void 0!==ee.values[_]&&(h=ee.values[_].text);var ae="<strong>["+this.esc_html(X)+"] "+te+(!1!==h&&""!=h?" '"+this.esc_html(h)+"'":"")+"</strong> ("+this.language("debug_action_type")+": "+V+" | ID: "+r+(!1!==c?" | "+this.language("debug_action_row")+" ID: "+c.join(", "):"")+")";this.log("log_conditional_action_"+t,ae,"conditional")}}return{process_required:u,process_bypass:v,process_navigation:b,process_validation:p}},e.WS_Form.prototype.obj_set_attribute=function(e,t,a){void 0!==e.attr("data-"+t+"-bypass")?!1!==a?e.attr("data-"+t+"-bypass",a).trigger("change"):e.removeAttr("data-"+t+"-bypass").trigger("change"):!1!==a?e.attr(t,a).trigger("change"):e.removeAttr(t).trigger("change")},e.WS_Form.prototype.conditional_value_match_multiple=function(e,t,a){var i="string"==typeof t?t.split(/\r\n|\r|\n/):[t];for(var s in i)if(i.hasOwnProperty(s)){var o=i[s];if(""!==o&&a(e,o))return!0}return!1},e.WS_Form.prototype.conditional_logic_previous=function(e,t,a){switch(a){case"||":e|=t;break;case"&&":e&=t}return e},e.WS_Form.prototype.conditional_condition_check=function(e){return!(null===e||"object"!=typeof e||void 0===e.id||void 0===e.object||void 0===e.object_id||void 0===e.object_row_id||void 0===e.logic||void 0===e.value||void 0===e.case_sensitive||void 0===e.logic_previous||""==e.id||0==e.id||""==e.object||""==e.object_id&&"variable"!==e.object||""==e.logic)},e.WS_Form.prototype.conditional_action_check=function(e){return!(null===e||"object"!=typeof e||void 0===e.object||void 0===e.object_id||void 0===e.action||""==e.object||""==e.object_id||""==e.action)}}(jQuery);