var fm_rated=!1;function fm_run_cookie_init(){var i={},r=0;jQuery(".fm-form").each(function(e){var t=jQuery(this).attr("id");t=t.replace("form",""),i[r]=t,r++}),jQuery.ajax({url:fm_objectL10n.fm_frontend_ajax_url,data:{action:"fm_init_cookies",method:"POST",dataType:"json",form_ids:i},success:function(e){try{var t=JSON.parse(e);jQuery.each(t,function(e,t){var i=t.form_id,r=t.field_validation_value;jQuery(document).find("#fm_empty_field_validation"+i).attr("value",r)})}catch(e){return!1}}})}function form_load_actions(){jQuery(".wd-datepicker").each(function(){jQuery(this).datepicker(),jQuery(this).datepicker("option","dateFormat",jQuery(this).data("format"))});var e=jQuery(".fm-form").find(".fm-message");0!==e.length&&0==e.closest(".fm-popover-content").length&&0==e.closest(".fm-scrollbox-form").length&&0==e.closest(".fm-topbar").length&&(jQuery(window).scrollTop(jQuery(".fm-message").offset().top-100),-1'+FormCurrency+""+jQuery(this).val()+(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?" x "+paypal_checkbox_qty:""),total+=jQuery(this).val()*parseInt(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?paypal_checkbox_qty:1),div_paypal_products.html(div_paypal_products.html()+""+label+" - "+span_value+"
")})}}),jQuery("#form"+form_id+" div[type='type_paypal_shipping']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");paypal_shipping_qty=jQuery("#wdform_"+t+"_element_quantity"+form_id).val()?jQuery("#wdform_"+t+"_element_quantity"+form_id).val():0,jQuery(this).find("input:checked").each(function(){label=jQuery("label[for='"+jQuery(this).attr("id")+"']").html(),span_value=''+FormCurrency+""+jQuery(this).val()+(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?" x "+paypal_shipping_qty:""),total_shipping+=jQuery(this).val()*parseInt(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?paypal_shipping_qty:1),div_paypal_products.html(div_paypal_products.html()+""+label+" - "+span_value+"
")})}}),jQuery("#form"+form_id+" div[type='type_paypal_select']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");paypal_select_qty=jQuery("#wdform_"+t+"_element_quantity"+form_id).val()?jQuery("#wdform_"+t+"_element_quantity"+form_id).val():0,""!=jQuery(this).find("select").val()&&(label=jQuery(this).find("select option:selected").html(),span_value=''+FormCurrency+""+jQuery(this).find("select").val()+(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?" x "+paypal_select_qty:""),total+=jQuery(this).find("select").val()*parseInt(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?paypal_select_qty:1),div_paypal_products.html(div_paypal_products.html()+""+label+" - "+span_value+"
"))}}),jQuery("#form"+form_id+" div[type='type_paypal_price']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");label=jQuery(this).find(".wdform-label").html(),cents="00",dollars="0",""!=jQuery("#wdform_"+t+"_element_dollars"+form_id).val()&&(dollars=jQuery("#wdform_"+t+"_element_dollars"+form_id).val()),""!=jQuery("#wdform_"+t+"_element_cents"+form_id).val()&&(1==jQuery("#wdform_"+t+"_element_cents"+form_id).val().length?cents="0"+jQuery("#wdform_"+t+"_element_cents"+form_id).val():cents=jQuery("#wdform_"+t+"_element_cents"+form_id).val(),span_value=''+FormCurrency+""+dollars+"."+cents,total+=parseFloat(dollars+"."+cents),div_paypal_products.html(div_paypal_products.html()+""+label+" - "+span_value+"
"))}}),jQuery("#form"+form_id+" div[type='type_paypal_price_new']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");label=jQuery(this).find(".wdform-label").html(),dollars="0",""!=jQuery("#wdform_"+t+"_element"+form_id).val()&&(dollars=jQuery("#wdform_"+t+"_element"+form_id).val()),span_value=''+FormCurrency+""+dollars,total+=parseFloat(dollars),div_paypal_products.html(div_paypal_products.html()+""+label+" - "+span_value+"
")}});var FormPaypalTax=eval("FormPaypalTax_"+form_id);0!=FormPaypalTax&&div_paypal_tax.html("Tax: "+FormCurrency+(total*FormPaypalTax/100).toFixed(2)),jQuery(".div_total"+form_id).html(''+FormCurrency+""+(parseFloat((total*(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2)),input_paypal_total.val(FormCurrency+(parseFloat((total*(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2))}}function check_isnum_or_minus(e){var t=e.which||e.keyCode;return!(45!=t&&31document.getElementById(e+"_total_element"+t).innerHTML?document.getElementById(e+"_text_element"+t).innerHTML=" "+fm_objectL10n.fm_grading_text+" "+document.getElementById(e+"_total_element"+t).innerHTML:document.getElementById(e+"_text_element"+t).innerHTML="");document.getElementById(e+"_sum_element"+t)&&(document.getElementById(e+"_sum_element"+t).innerHTML=i)}function change_src(e,t,i,r){if(0==fm_rated)for(var n=0;n<=e;n++)document.getElementById(t+"_star_"+n+"_"+i).src=fm_objectL10n.plugin_url+"/images/star_"+r+".png"}function reset_src(e,t,i){if(0==fm_rated)for(var r=0;r<=e;r++)document.getElementById(t+"_star_"+r+"_"+i).src=fm_objectL10n.plugin_url+"/images/star.png"}function select_star_rating(e,t,i,r,n){fm_rated=!0;for(var a=0;a<=e;a++)document.getElementById(t+"_star_"+a+"_"+i).src=fm_objectL10n.plugin_url+"/images/star_"+r+".png";for(var o=e+1;o<=n-1;o++)document.getElementById(t+"_star_"+o+"_"+i).src=fm_objectL10n.plugin_url+"/images/star.png";document.getElementById(t+"_selected_star_amount"+i).value=e+1,jQuery("#"+t+"_selected_star_amount"+i).trigger("change")}function show_other_input(e,t){var i=jQuery(".form"+t+" [id^="+e+"_element"+t+'][other="1"]').parent(),r=document.createElement("br");r.setAttribute("id",e+"_other_br"+t);var n=e.split("_")[1],a=document.createElement("input");a.setAttribute("id",e+"_other_input"+t),a.setAttribute("name",e+"_other_input"+t),a.setAttribute("type","text"),a.setAttribute("class","other_input"),a.setAttribute("onchange","other_input_change(this, '"+t+"', '"+n+"')"),i.children("input").length<2&&(i.append(r),i.append(a))}function other_input_change(e,t,i){""==jQuery(e).val()?wd_is_filled(t,i):(jQuery("#form"+t+" #wd_required_"+i).remove(),jQuery("#form"+t+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"))}function check_isnum(e){var t=e.which||e.keyCode;return-1!=jQuery.inArray(t,[46,8,9,27,13,190])||!0===e.ctrlKey||35<=t&&t<39||45==t||!(31y)&&(r=!1,i=fm_objectL10n.year_validation.replace("%%start%%",p).replace("%%end%%",y)),"date"==a&&(h||(r=!1,i=fm_objectL10n.date_validation)),jQuery("#check_email_"+s+"_"+o).remove(),r?(w.removeClass("wd-error-label"),delete window["check_before_submit"+o][s+"_"+o]):(g.parent().parent().append(""+i+"
"),w.addClass("wd-error-label"),window["check_before_submit"+o][s+"_"+o]=!1),r}function min_max_date_with_operator(e,t){var i;if("function"==typeof moment){var r="",n=[];if(0<=e.indexOf("+")||0<=e.indexOf("-")){for(var a=0;ar)))}function destroyChildren(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function generate_page_nav(e,t,i){var r;if(form_view=e,page_nav=document.getElementById(t+"page_nav"+e),destroyChildren(page_nav),form_view_elemet=document.getElementById(t+"form_view"+e),remove_whitespace(form_view_elemet.parentNode.parentNode),display_none_form_views_all(t),form_view_elemet.parentNode.style.display="",(r=document.createElement("div")).setAttribute("valign","middle"),r.setAttribute("align","left"),r.style.display="table-cell",r.style.width="40%",page_nav.appendChild(r),form_view_elemet.parentNode.previousSibling&&-1!=form_view_elemet.parentNode.previousSibling.className.indexOf("wdform-page-and-images")&&form_view_elemet.parentNode.previousSibling.previousSibling&&("DIV"==form_view_elemet.parentNode.previousSibling.tagName?table=form_view_elemet.parentNode.previousSibling:"DIV"==form_view_elemet.parentNode.previousSibling.previousSibling.tagName?table=form_view_elemet.parentNode.previousSibling.previousSibling:table="none","none"!=table&&(table.firstChild.tagName||table.removeChild(table.firstChild),previous_title=form_view_elemet.getAttribute("previous_title"),previous_type=form_view_elemet.getAttribute("previous_type"),"text"==previous_type&&r.setAttribute("class","previous-page"),previous_class=form_view_elemet.getAttribute("previous_class"),previous_checkable=form_view_elemet.getAttribute("previous_checkable"),next_or_previous="previous",previous=make_pagebreak_button(next_or_previous,previous_title,previous_type,previous_class,previous_checkable,e,t,i),r.appendChild(previous))),(r=document.createElement("div")).setAttribute("id",t+"page_numbers"+form_view),r.setAttribute("valign","middle"),r.setAttribute("class","page-numbers"),r.setAttribute("align","center"),r.style.display="table-cell","true"==document.getElementById("fm-pages"+t).getAttribute("show_numbers")){var n=document.createElement("span");n.setAttribute("class","page_numbers"),r.appendChild(n)}page_nav.appendChild(r),(r=document.createElement("div")).setAttribute("valign","middle"),r.setAttribute("align","right"),r.style.cssText="display:table-cell; width:40%; text-align:right;",page_nav.appendChild(r),not_next=!1,form_view_elemet.parentNode.nextSibling?("DIV"==form_view_elemet.parentNode.nextSibling.tagName&&-1!=form_view_elemet.parentNode.nextSibling.className.indexOf("wdform-page-and-images")?table=form_view_elemet.parentNode.nextSibling:form_view_elemet.parentNode.nextSibling.nextSibling&&"DIV"==form_view_elemet.parentNode.nextSibling.nextSibling.tagName?table=form_view_elemet.parentNode.nextSibling.nextSibling:table="none","none"!=table?(next_title=form_view_elemet.getAttribute("next_title"),next_type=form_view_elemet.getAttribute("next_type"),"text"==next_type&&r.setAttribute("class","next-page"),next_class=form_view_elemet.getAttribute("next_class"),next_checkable=form_view_elemet.getAttribute("next_checkable"),next_or_previous="next",next=make_pagebreak_button(next_or_previous,next_title,next_type,next_class,next_checkable,e,t,i),r.appendChild(next)):not_next=!0):not_next=!0,generate_page_bar(e,t,i),fm_initilize_form(t)}function fm_initilize_form(e){jQuery("#form"+e+" div[type='type_map']").each(function(){for(id=jQuery(this).parent().attr("wdid"),if_gmap_init("wdform_"+id,e),q=0;q<20;q++)jQuery("#wdform_"+id+"_element"+e)[0].getAttribute("long"+q)&&(w_long=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("long"+q)),w_lat=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("lat"+q)),w_info=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("info"+q)),add_marker_on_map("wdform_"+id,q,w_long,w_lat,w_info,e,!1))}),jQuery("#form"+e+" div[type='type_mark_map']").each(function(){id=jQuery(this).parent().attr("wdid"),if_gmap_init("wdform_"+id,e),q=0,jQuery("#wdform_"+id+"_element"+e)[0].getAttribute("long"+q)&&(w_long=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("long"+q)),w_lat=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("lat"+q)),w_info=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("info"+q)),add_marker_on_map("wdform_"+id,q,w_long,w_lat,w_info,e,!0))}),jQuery(".wdform-element-section").each(function(){if("type_stripe"==jQuery(this).parent().attr("type")){jQuery(this).parent().parent().find(".stripe_more_info .wdform-label-section").removeClass("wd-hidden");return!0}jQuery(this).parent()[0].style.width||0==parseInt(jQuery(this).width())||0==jQuery(this).parent().find(jQuery(".wdform-label-section")).length||"table-cell"==jQuery(this).css("display")&&("type_captcha"!=jQuery(this).parent().attr("type")?jQuery(this).parent().css("width",parseInt(jQuery(this).width())+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15):jQuery(this).parent().css("width",2*parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)+50+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15))}),jQuery("#form"+e+" div[type='type_signature']").length&&"undefined"!=typeof fm_signature_init&&fm_signature_init()}function display_none_form_views_all(e){jQuery("#form"+e+" .wdform-page-and-images").css("display","none")}function generate_page_bar(t,i,e){if("steps"==document.getElementById("fm-pages"+i).getAttribute("type")?make_page_steps_front(t,i,e):"percentage"==document.getElementById("fm-pages"+i).getAttribute("type")?make_page_percentage_front(t,i,e):make_page_none_front(i),"true"==document.getElementById("fm-pages"+i).getAttribute("show_numbers")){if(td=document.getElementById(i+"page_numbers"+t),td){destroyChildren(td);var r=0,n=0;jQuery("#form"+i+" .wdform-page-and-images").each(function(){var e=jQuery(this).find(".wdform_page").attr("id");j=e.split("form_view")[1],document.getElementById(i+"form_view"+j)&&(r++,j==t&&(n=r))});var a=document.createElement("span");a.setAttribute("class","page_numbers"),a.innerHTML=n+"/"+r,td.appendChild(a)}}else td=document.getElementById(i+"page_numbers"+t),td&&destroyChildren(document.getElementById(i+"page_numbers"+t))}function make_page_steps_front(t,i,r){destroyChildren(document.getElementById("fm-pages"+i)),show_title="true"==document.getElementById("fm-pages"+i).getAttribute("show_title"),next_checkable="true"==document.getElementById(i+"form_view"+t).getAttribute("next_checkable"),previous_checkable="true"==document.getElementById(i+"form_view"+t).getAttribute("previous_checkable"),k=0,jQuery("#form"+i+" .wdform-page-and-images").each(function(){var e=jQuery(this).find(".wdform_page").attr("id");j=e.split("form_view")[1],document.getElementById(i+"form_view"+j)&&(document.getElementById(i+"form_view"+j).getAttribute("page_title")?w_pages=document.getElementById(i+"form_view"+j).getAttribute("page_title"):w_pages="",k++,page_number=document.createElement("span"),page_number.setAttribute("id","page_"+j),jt&&(next_checkable?page_number.setAttribute("onClick","if(fm_check("+t+", "+i+', false)) generate_page_nav("'+j+'", "'+i+'", "'+r+'")'):page_number.setAttribute("onClick",'generate_page_nav("'+j+'", "'+i+'", "'+r+'")')),j==t?page_number.setAttribute("class","page_active"):page_number.setAttribute("class","page_deactive"),show_title?page_number.innerHTML=w_pages:page_number.innerHTML=k,document.getElementById("fm-pages"+i).appendChild(page_number))})}function make_page_percentage_front(t,i,e){destroyChildren(document.getElementById("fm-pages"+i)),show_title="true"==document.getElementById("fm-pages"+i).getAttribute("show_title");var r=document.createElement("div");r.setAttribute("class","page_percentage_deactive");var n=document.createElement("div");n.setAttribute("id","div_percentage"),n.setAttribute("class","page_percentage_active"),n.setAttribute("align","right");var a=document.createElement("div");a.setAttribute("class","wdform_percentage_arrow");var o=document.createElement("b");o.setAttribute("class","wdform_percentage_text"),n.appendChild(o),k=0,cur_page_title="",jQuery(".form"+i+" .wdform-page-and-images").each(function(){var e=jQuery(this).find(".wdform_page").attr("id");j=e.split("form_view")[1],document.getElementById(i+"form_view"+j)&&(document.getElementById(i+"form_view"+j).getAttribute("page_title")?w_pages=document.getElementById(i+"form_view"+j).getAttribute("page_title"):w_pages="",k++,j==t&&(show_title&&(cur_page_title=document.createElement("div"),cur_page_title.innerHTML=w_pages,cur_page_title.innerHTML=w_pages,cur_page_title.setAttribute("class","wdform_percentage_title")),page_number=k))}),o.innerHTML=Math.round((page_number-1)/(k-1)*100)+"%",n.style.width=(page_number-1)/(k-1)*100+"%",1==page_number&&(a.style.display="none"),r.appendChild(n),r.appendChild(a),cur_page_title&&r.appendChild(cur_page_title),document.getElementById("fm-pages"+i).appendChild(r)}function make_page_none_front(e){destroyChildren(document.getElementById("fm-pages"+e))}function make_pagebreak_button(e,t,i,r,n,a,o,s){switch(i){case"text":return(d=document.createElement("div")).setAttribute("id","page_"+e+"_"+a+"_"+o),d.setAttribute("class",r),"true"==n?d.setAttribute("onClick","if(fm_check("+a+", "+o+", false)) page_"+e+"("+a+","+o+","+s+")"):d.setAttribute("onClick","page_"+e+"("+a+","+o+","+s+")"),d.innerHTML=t,d;case"img":var d;return(d=document.createElement("img")).setAttribute("id","page_"+e+"_"+a),d.setAttribute("class",r),"true"==n?d.setAttribute("onClick","if(fm_check("+a+", "+o+", false)) page_"+e+"("+a+","+o+","+s+")"):d.setAttribute("onClick","page_"+e+"("+a+","+o+","+s+")"),0==t.indexOf("http")?d.src=t:d.src=fm_objectL10n.plugin_url+"/"+t,d}}function form_maker_findPos(e){var t=0;if(e.offsetParent){for(;t+=e.offsetTop,e=e.offsetParent;);return[t]}}function page_previous(e,t,i){form_view_elemet=document.getElementById(t+"form_view"+e),form_view_elemet.parentNode.previousSibling&&form_view_elemet.parentNode.previousSibling.previousSibling&&("DIV"==form_view_elemet.parentNode.previousSibling.tagName?table=form_view_elemet.parentNode.previousSibling:table=form_view_elemet.parentNode.previousSibling.previousSibling),table.firstChild.tagName||table.removeChild(table.firstChild),generate_page_nav(table.firstChild.id.replace(t+"form_view",""),t,i),form=jQuery("#form"+t),form.parent().hasClass("fm-scrollbox-form")||(jQuery("html").animate({scrollTop:form.offset().top-150},500),document.scrollingElement.scrollTop=form.offset().top-150)}function page_next(e,t,i){form_view_elemet=document.getElementById(t+"form_view"+e),form_view_elemet.parentNode.nextSibling&&("DIV"==form_view_elemet.parentNode.nextSibling.tagName?table=form_view_elemet.parentNode.nextSibling:table=form_view_elemet.parentNode.nextSibling.nextSibling),table.firstChild.tagName||table.removeChild(table.firstChild),generate_page_nav(table.firstChild.id.replace(t+"form_view",""),t,i),form=jQuery("#form"+t),form.parent().hasClass("fm-scrollbox-form")||(jQuery("html").animate({scrollTop:form.offset().top-150},500),document.scrollingElement.scrollTop=form.offset().top-150)}function fm_go_to_page(e,t,i){form_view_elemet=document.getElementById(t+"form_view"+e),table=form_view_elemet.parentNode,table.firstChild.tagName||table.removeChild(table.firstChild),generate_page_nav(table.firstChild.id.replace(t+"form_view",""),t,i),form=jQuery("#form"+t),form.parent().hasClass("fm-scrollbox-form")||(jQuery("html").animate({scrollTop:form.offset().top-150},500),document.scrollingElement.scrollTop=form.offset().top-150)}function getfileextension(e,t){if(void 0===e||0==e.length)return!0;var i=e.lastIndexOf("."),r=e.substr(i+1,e.length);t=t.split(",");for(var n=0;n');var i="",r=!1;jQuery(e).children("option").each(function(){jQuery(this).is(":selected")&&(r=jQuery(this).index()),i=i+''+jQuery(this).html()+"
"}),w=jQuery(e)[0].style.width,"100%"==w?w="100%":w=jQuery(e).width()+32+"px";var n=' '+jQuery(e).children("option").eq(r).html()+'
'+i+"
";jQuery(e).addClass("no-width"),jQuery(e).before(n)}jQuery(window).on("load",function(){0"+t+"")):(jQuery(this).closest(".wdform-field").find(".wdform-label").removeClass("error_label"),jQuery(".fm-error").remove())}),jQuery(document).on("change",".wdform-element-section select",function(){var e=jQuery(this).children("option:selected").text();jQuery(this).parent(".sel-wrap ").children(".sel-imul").children(".sel-selected").children(".selected-text").html(e),jQuery(this).parent(".sel-wrap ").children(".sel-imul").children(".sel-options").children(".sel-option").removeClass("sel-ed"),jQuery(this).addClass("sel-ed"),jQuery(this).parent(".sel-wrap ").children(".sel-imul").children(".sel-options").each(function(){jQuery(this).html()==e&&jQuery(this).addClass("sel-ed")})}),jQuery(document).on("change",'div[type="type_date_fields"]',function(){2"+error_message+""),u.addClass("wd-error-label")}i?jQuery("#"+e).datepicker("option",t,i):"today"==r?jQuery("#"+e).datepicker("option",t,new Date):(-1==r.indexOf("d")&&-1==r.indexOf("m")&&-1==r.indexOf("y")&&-1==r.indexOf("w")&&""!=r&&(r=jQuery.datepicker.formatDate(n,new Date(r))),jQuery("#"+e).datepicker("option",t,r))}function wd_check_confirmation_email(e,t,i,r){var n=jQuery("#wdform_"+e+"_element"+t),a=jQuery("#wdform_"+e+"_1_element"+t);0==window["check_before_submit"+t][e+"_"+t]||jQuery(n).val()!=jQuery(a).val()?(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm"),jQuery(n).val()!=jQuery(a).val()&&(jQuery(a).parent().parent().parent().append(""+i+"
"),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_confirm")),window["check_before_submit"+t][e+"_"+t]=!(e+"_"+t in window["check_before_submit"+t])||window["check_before_submit"+t][e+"_"+t]):(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm"),1==window["check_before_submit"+t][e+"_"+t]&&delete window["check_before_submit"+t][e+"_"+t])}function wd_check_email(e,t,i){var r=jQuery("#wdform_"+e+"_element"+t),n=jQuery("#wdform_"+e+"_1_element"+t);if(""==jQuery(r).val()||/^[\u0400-\u04FFa-zA-Z0-9'.+_-]+@[\u0400-\u04FFa-zA-Z0-9.-]+\.[\u0400-\u04FFa-zA-Z]{2,61}$/.test(jQuery.trim(jQuery(r).val()))||jQuery(r).attr("title")==jQuery(r).val())jQuery("#check_email_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_check_mail").removeClass("error_label_check_mail"),window["check_before_submit"+t][e+"_"+t]=!0,void 0===n.val()&&delete window["check_before_submit"+t][e+"_"+t];else{jQuery("#check_email_"+e+"_"+t).remove();var a=jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first"),o=0;a.hasClass("wd-width-30")&&!a.hasClass("wd-hidden")&&(o=a.width()),jQuery(r).parent().parent().parent().append(""+i+"
"),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_check_mail"),r.val()==n.val()&&(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm")),delete window["check_before_submit"+t][e+"_"+t],window["check_before_submit"+t][e+"_"+t]=!1}}function wd_check_confirmation_pass(e,t,i){var r,n=jQuery("#wdform_"+e+"_element"+t),a=jQuery("#wdform_"+e+"_1_element"+t);r=n.val()!==a.val();var o=jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first"),s=0;o.hasClass("wd-width-30")&&!o.hasClass("wd-hidden")&&(s=o.width()),r?(jQuery("#confirm_"+e+"_"+t).remove(),jQuery(a).parent().parent().parent().append(""+i+"
"),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_check_pass"),window["check_before_submit"+t][e+"_"+t]=!1):(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_check_pass").removeClass("error_label_check_pass"),delete window["check_before_submit"+t][e+"_"+t])}function minimize_form(e){jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown fm-minimized"),jQuery("#fm-minimize-text"+e).removeClass("fm-animated fadeOutDown").addClass("fm-show fm-animated fadeInUp")}function fm_show_scrollbox(e){jQuery("#fm-minimize-text"+e).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown"),jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeOutDown fm-minimized").addClass("fm-show fm-animated fadeInUp")}function fm_hide_form(e,t,i){var r=new Date;r.setDate(r.getDate()+t),0"+t[2]+""),jQuery("#form"+a+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp"),d=!0,o||scroll_on_element(a)))}),!1===d}function scroll_on_element(e){if(0==jQuery("#form"+e+" .fm-not-filled").length)return!0;var t=!0;0==jQuery("#fm_shake"+e).val()&&(t=!1);var i=jQuery("#form"+e+" .fm-not-filled").closest(".wdform_row"),r=i.closest(".wdform_page");if("none"==r.parent().css("display")){var n=jQuery("#form"+e+" .wdform-page-and-images").length,a=jQuery("#form"+e+" .wdform_page").last().attr("id");a=a.split("form_view");var o=r.attr("id");fm_go_to_page(o=o.split("form_view")[1],e,n,a[1])}var s=jQuery(document).scrollTop(),d=document.body.clientHeight,l=jQuery("#form"+e+" .fm-not-filled").closest("div[wdid]").height(),u=jQuery("#form"+e+" .fm-not-filled").offset().top,c=function(){document.body.clientHeight!==d&&(d=document.body.clientHeight,l=jQuery("#form"+e+" .fm-not-filled").closest("div[wdid]").height(),u=jQuery("#form"+e+" .fm-not-filled").offset().top,jQuery("html").stop(),f())};function m(e){e&&(old_bg=jQuery(i).css("background-color"),jQuery(i).effect("shake",{},500).css("background-color","#FF8F8B").animate({backgroundColor:old_bg},{duration:500,queue:!1}))}function f(){jQuery("html").animate({scrollTop:u-(l+40)},500,function(){document.scrollingElement.scrollTop=u-(l+40),jQuery(window).off("scroll",c),m(t)})}jQuery(window).on("scroll",c),u"+s+""),jQuery("#form"+d+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_upload"),u=!0}else jQuery("#form"+d+" #wd_upload_type_"+e).remove(),jQuery("#form"+d+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_upload").removeClass("error_label_upload")}}),e||!0!==u||scroll_on_element(d),!1===u}function wd_is_filled(l,u,c){null==c&&(c=!0);var m=jQuery("#form"+l),e=u?u.split():window["required_fields"+l],f={};return jQuery(e).each(function(e,r){if("none"===m.find(jQuery("div[wdid='"+r+"']")).css("display")&&(m.find(jQuery("div[wdid='"+r+"']")).find(".fm-not-filled").remove(),m.find(jQuery("div[wdid='"+r+"']")).css("background-color",""),m.find(jQuery("div[wdid='"+r+"'] label")).removeClass("error_label")),0!=m.find(jQuery("div[wdid='"+r+"']")).length&&"none"!==m.find(jQuery("div[wdid='"+r+"']")).css("display"))switch(window["labels_and_ids"+l][r]){case"type_text":case"type_textarea":case"type_paypal_price_new":case"type_spinner":case"type_number":case"type_phone_new":case"type_submitter_mail":var t="#wdform_"+r+"_element"+l,i=jQuery(t).val();i=jQuery.trim(i),(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==i&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(l,r)});break;case"type_own_select":case"type_country":case"type_paypal_select":t="#wdform_"+r+"_element"+l;(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&(""==jQuery(t).val()||0"+fm_objectL10n.fm_field_is_required+""):jQuery("#form"+l+" div[wdid='"+e+"'] .wdform-element-section:first").parent().parent().append(""+fm_objectL10n.fm_field_is_required+"
")}),u||scroll_on_element(l),!(window["check_submit"+l]=1))}function wd_check_price_min_max(a,o){var s=jQuery("#form"+a),e=o||window["check_paypal_price_min_max"+a],d=!1;return jQuery.each(e,function(e,t){var i="#wdform_"+e+"_element"+a,r=t[3]?t[3]:0,n=t[4]?t[4]:-1;!t[2]&&jQuery(i).val()==t[1]||(-1!=n&&parseFloat(jQuery(i).val())>n||parseFloat(jQuery(i).val())"+fm_objectL10n.fm_min_max_check_1+t[0]+fm_objectL10n.fm_min_max_check_2+(t[3]?t[3]:0)+"-"+(t[4]?t[4]:"any")+""),jQuery("#form"+a+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"),d=!0,o||scroll_on_element(a))}),!1===d}function wd_check_min_date_dob(u){var c=!0;return jQuery("#form"+u+" div[type='type_date_fields']").each(function(){var e=parseInt(jQuery(this).data("min-day"));if(!e)return!0;var t=jQuery(this).parent(),i=t.attr("wdid"),r=parseInt(jQuery("#wdform_"+i+"_day"+u).val()),n=parseInt(jQuery("#wdform_"+i+"_month"+u).val()),a=parseInt(jQuery("#wdform_"+i+"_year"+u).val());if(!(r||n||a))return!0;var o=parseInt(jQuery(this).data("min-month")),s=parseInt(jQuery(this).data("min-year")),d=new Date(a+"-"+n+"-"+r),l=new Date(s+"-"+o+"-"+e);(isNaN(d)||isNaN(a)||d-l<0)&&(c=!1,jQuery("#check_min_date_"+i+"_"+u).remove(),t.append(""+jQuery(this).attr("data-min-date-alert")+"
"),t.find(".wdform-label").addClass("error_label"),scroll_on_element(u))}),c}function wd_spinner_check(r,n){var a=jQuery("#form"+r),o=!1,e=n||window["spinner_check"+r];return jQuery.each(e,function(e,t){var i="#wdform_"+e+"_element"+r;0!=a.find(jQuery("div[wdid='"+e+"']")).length&&"none"!=a.find(jQuery("div[wdid='"+e+"']")).css("display")&&(parseInt(jQuery(i).val())parseInt(t[1]))&&(jQuery("#form"+r+" #wd_price_"+e).remove(),a.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append(""+fm_objectL10n.fm_spinner_check+(t[0]?t[0]:0)+"-"+(t[1]?t[1]:"any")+"
"),jQuery("#form"+r+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"),o=!0,n||scroll_on_element(r))}),!1===o}function fmscrollHandler(e){var t=100*jQuery(window).scrollTop()/(jQuery(document).height()-jQuery(window).height());!jQuery("#fm-scrollbox"+e).hasClass("fm-minimized")&&t>=window["scrollbox_trigger_point"+e]?setTimeout(function(){jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeOutDown").addClass("fm-animated fadeInUp"),jQuery("#fm-scrollbox"+e).css("visibility",""),jQuery("#fm-scrollbox"+e+" .fm-header-img").addClass("fm-animated "+window["header_image_animation"+e])},1e3*window["scrollbox_loading_delay"+e]):"1"==window["scrollbox_auto_hide"+e]&&(jQuery("#fm-scrollbox"+e+" .fm-header-img").removeClass("fm-animated "+window["header_image_animation"+e]),jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown"))}function fm_submit_form(e){if("function"==typeof window["before_submit"+e]&&window["before_submit"+e]())return!1;if(!fm_check(0,e))return!1;(jQuery("#form"+e+" button").each(function(){jQuery(this).attr("disabled","disabled")}),jQuery('').appendTo("#form"+e),window["onsubmit_js"+e](),1==window["checkStripe"+e])?"none"!=jQuery("form[id='form"+e+"']").find(".StripeElement").first().parents(".wdform_row").css("display")?wdfm_call_stripe(!0):0'+l+"")}window["check_submit"+u]=0}else window.location.replace(c)},complete:function(){0==jQuery("#form"+u+" .fm-message").length?(jQuery("#closing-form"+u).remove(),jQuery("#fm-popover-background"+u).css("display","none")):jQuery("#fm-popover-container"+u).addClass("fm-submit-message"),"function"!=typeof window["after_submit"+u]||jQuery("#form"+u).find(".message_captcha").length||window["after_submit"+u]()}})}else jQuery("#form"+u).submit()}function fm_reset_form(form_id){"function"==typeof window["before_reset"+form_id]&&window["before_reset"+form_id]();var privacy_policy_check=jQuery("#fm_privacy_policy"+form_id);privacy_policy_check&&(privacy_policy_check.prop("checked",!1),fm_privacy_policy_check(privacy_policy_check)),jQuery.each(window["labels_and_ids"+form_id],function(index,elem){switch(elem){case"type_text":case"type_textarea":case"type_number":case"type_spinner":case"type_own_select":case"type_country":case"type_date":case"type_date_new":case"type_hidden":case"type_paypal_price_new":case"type_phone_new":case"type_time":var field=jQuery("#wdform_"+index+"_element"+form_id),default_value=void 0!==field.data("value")?field.data("value"):"";jQuery("#wdform_"+index+"_element"+form_id).val(default_value);break;case"type_submitter_mail":case"type_password":var field=jQuery("#wdform_"+index+"_element"+form_id),default_value=void 0!==field.data("value")?field.data("value"):"";jQuery("#wdform_"+index+"_element"+form_id).val(default_value),jQuery("#wdform_"+index+"_1_element"+form_id)&&(jQuery("#wdform_"+index+"_1_element"+form_id).val(""),jQuery("#confirm_"+index+"_"+form_id)&&jQuery("#confirm_"+index+"_"+form_id).remove(),"type_submitter_mail"==elem&&jQuery("#check_email_"+index+"_"+form_id)&&jQuery("#check_email_"+index+"_"+form_id).remove());break;case"type_date_range":jQuery("#wdform_"+index+"_element"+form_id+"0").val(""),jQuery("#wdform_"+index+"_element"+form_id+"1").val("");break;case"type_send_copy":jQuery("#wdform_"+index+"_element"+form_id).prop("checked",!1);break;case"type_phone":jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id).val("");break;case"type_name":jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id+", #wdform_"+index+"_element_title"+form_id+", #wdform_"+index+"_element_middle"+form_id).each(function(){var e=void 0!==jQuery(this).data("value")?jQuery(this).data("value"):"";jQuery(this).val(e)});break;case"type_address":jQuery("#wdform_"+index+"_street1"+form_id+", #wdform_"+index+"_street2"+form_id+", #wdform_"+index+"_city"+form_id+", #wdform_"+index+"_state"+form_id+", #wdform_"+index+"_postal"+form_id+", #wdform_"+index+"_country"+form_id).val("");break;case"type_checkbox":jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop("checked",!1),jQuery("#wdform_"+index+"_other_br"+form_id).remove(),jQuery("#wdform_"+index+"_other_input"+form_id).remove();break;case"type_radio":jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1),jQuery("#wdform_"+index+"_other_br"+form_id).remove(),jQuery("#wdform_"+index+"_other_input"+form_id).remove();break;case"type_time":jQuery("#wdform_"+index+"_hh"+form_id+", #wdform_"+index+"_mm"+form_id+", #wdform_"+index+"_ss"+form_id+", #wdform_"+index+"_am_pm"+form_id).val("");break;case"type_date_fields":jQuery("#wdform_"+index+"_day"+form_id+", #wdform_"+index+"_month"+form_id+", #wdform_"+index+"_year"+form_id).val("");break;case"type_file_upload":jQuery("#wdform_"+index+"_element"+form_id+"_save").remove();break;case"type_paypal_price":jQuery("#wdform_"+index+"_element_dollars"+form_id+", #wdform_"+index+"_element_cents"+form_id).val("");break;case"type_paypal_select":jQuery("#wdform_"+index+"_element"+form_id+", #wdform_"+index+"_element_quantity"+form_id+", #form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val("");break;case"type_paypal_radio":jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val(""),jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1);break;case"type_paypal_shipping":jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1);break;case"type_paypal_checkbox":jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val(""),jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop("checked",!1);break;case"type_star_rating":jQuery("#wdform_"+index+"_selected_star_amount"+form_id).val(""),jQuery("#wdform_"+index+"_element"+form_id+" img").attr("src",fm_objectL10n.plugin_url+"/images/star.png");break;case"type_scale_rating":jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1);break;case"type_slider":jQuery("#wdform_"+index+"_element"+form_id).slider({value:eval(0)}),jQuery("#wdform_"+index+"_element_value"+form_id).html("0");break;case"type_range":jQuery("#wdform_"+index+"_element"+form_id+"0, #wdform_"+index+"_element"+form_id+"1").val("");break;case"type_grading":jQuery("#wdform_"+index+"_element"+form_id+" input").val("");break;case"type_matrix":jQuery("#wdform_"+index+"_element"+form_id+" .radio-div input").prop("checked",!1),jQuery("#wdform_"+index+"_element"+form_id+" .checkbox-div input").prop("checked",!1),jQuery("#wdform_"+index+"_element"+form_id+" input[type='text']").val(""),jQuery("#wdform_"+index+"_element"+form_id+" select").val("");break;case"type_paypal_total":jQuery("#wdform_"+index+"div_total"+form_id).html("$0"),jQuery("#wdform_"+index+"paypal_products"+form_id).empty();break;case"type_captcha":jQuery("#wd_captcha_input"+form_id).val("");case"type_arithmetic_captcha":jQuery("#wd_arithmetic_captcha_input"+form_id).val("");case"type_signature":jQuery("#signature-file-wdform_"+index+"_element"+form_id).val(""),jQuery("#signature-signs-wdform_"+index+"_element"+form_id).val(""),jQuery("#signature-clear-wdform_"+index+"_element"+form_id).trigger("click")}}),window["condition_js"+form_id]()}function fm_save_form(e){jQuery('').appendTo("#form"+e),window["onsubmit_js"+e](),jQuery("#form"+e+" button").each(function(){jQuery(this).attr("disabled","disabled")}),fm_set_input_value("fm_empty_field_validation"+e,jQuery("#fm_empty_field_validation"+e).attr("data-value")),jQuery("#form"+e).submit()}function fm_clear_form(e){1==confirm(fm_objectL10n.fm_clear_data)&&(jQuery("#form"+e+" button").each(function(){jQuery(this).attr("disabled","disabled")}),jQuery.get(fm_objectL10n.form_maker_admin_ajax+"?action=FMClearProg&addon_task=clear_data&nonce="+fm_ajax.ajaxnonce+"&form_id="+e).done(function(){window.location=jQuery("#form"+e).attr("action")}))}function fm_set_input_value(e,t){jQuery("#"+e).val(t)}function formOnload(r){var n;-1!=navigator.userAgent.toLowerCase().indexOf("msie")&&8===parseInt(navigator.userAgent.toLowerCase().split("msie")[1])&&(jQuery("#form"+r).find(jQuery("input[type='radio']")).click(function(){jQuery("input[type='radio']+label").removeClass("if-ie-div-label"),jQuery("input[type='radio']:checked+label").addClass("if-ie-div-label")}),jQuery("#form"+r).find(jQuery("input[type='radio']:checked+label")).addClass("if-ie-div-label"),jQuery("#form"+r).find(jQuery("input[type='checkbox']")).click(function(){jQuery("input[type='checkbox']+label").removeClass("if-ie-div-label"),jQuery("input[type='checkbox']:checked+label").addClass("if-ie-div-label")}),jQuery("#form"+r).find(jQuery("input[type='checkbox']:checked+label")).addClass("if-ie-div-label")),jQuery.each(window["check_regExp_all"+r],function(e,t){var i={};i[e]=t,jQuery("div[wdid='"+e+"'] input").blur(function(){wd_check_regExp(r,i)}).focus(function(){jQuery("#form"+r+" #wd_exp_"+e).remove(),jQuery("#form"+r+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")})}),jQuery.each(window["check_paypal_price_min_max"+r],function(e,t){var i={};i[e]=t,jQuery("div[wdid='"+e+"'] input").blur(function(){wd_check_price_min_max(r,i)}).focus(function(){jQuery("#form"+r+" #wd_price_"+e).remove(),jQuery("#form"+r+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")})}),jQuery.each(window["spinner_check"+r],function(e,t){var i={};i[e]=t,jQuery("div[wdid='"+e+"'] input").blur(function(){wd_spinner_check(r,i)}).focus(function(){jQuery("#form"+r+" #wd_price_"+e).remove(),jQuery("#form"+r+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")})}),jQuery.each(window["file_upload_check"+r],function(e,t){var i={};i[e]=t,jQuery("div[wdid='"+e+"'] input").change(function(){wd_file_upload_check(r,i)})}),jQuery("#form"+r+" input").on("keypress",function(e){if(13==(e.keyCode?e.keyCode:e.which))return!1}),jQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_phone_new'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity, div[type='type_paypal_price_new'] input").keypress(function(e){return check_isnum(e)}),jQuery("div[type='type_grading'] input").keypress(function(e){return check_isnum_or_minus(e)}),jQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function(){set_total_value(r)}),jQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input, div[type='type_paypal_price_new'] input").change(function(){set_total_value(r)}),jQuery(".wdform-quantity").change(function(){set_total_value(r)}),jQuery("div[type='type_address'] select").change(function(){set_total_value(r)}),jQuery("div[type='type_time'] input").blur(function(){add_0(this)}),jQuery(".wdform-element-section").each(function(){if("type_stripe"==jQuery(this).parent().parent().attr("type"))return!0;jQuery(this).parent()[0].style.width||0==parseInt(jQuery(this).width())||0==jQuery(this).parent().find(jQuery(".wdform-label-section")).length||"table-cell"==jQuery(this).css("display")&&("type_captcha"!=jQuery(this).parent().attr("type")?jQuery(this).parent().css("width",parseInt(jQuery(this).width())+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15):jQuery(this).parent().css("width",2*parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)+50+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15)),parseInt(jQuery(this)[0].style.width.replace("px",""))=2*parseInt(jQuery(this).css("line-height").replace("px",""))&&(jQuery(this).parent().css("max-width",jQuery(this).parent().width()),jQuery(this).parent().css("width",""))}),(n=jQuery).fn.shuffle=function(){var r=n(this).find(".wd-choice"),t=n.map(r,function(){var e,t=(e=r.length,Math.floor(Math.random()*e)),i=n(r[parseInt(t)]).clone(!0)[0];return r.splice(t,1),i});return n(this).find(".wd-choice").each(function(e){n(this).replaceWith(n(t[e]))}),n(t)},"function"==typeof window["onload_js"+r]&&window["onload_js"+r](),"function"==typeof window["before_load"+r]&&window["before_load"+r]()}function fm_document_ready(e){jQuery("#form"+e).hasClass("fm-form-submitted")&&!jQuery("#form"+e).find(".message_captcha").length&&"function"==typeof window["after_submit"+e]&&window["after_submit"+e]();var t=jQuery("#form"+e+" .wdform-page-and-images").length;window["form_view_count"+e]=t,1/g,">").replace(/"/g,""")}function validate_received_data_from_url(){new URLSearchParams(window.location.search).forEach(function(e,t){jQuery("#"+t).each(function(){jQuery(this).keyup(),jQuery(this).keydown(),jQuery(this).trigger("change")})})}jQuery(document).on("mouseenter",".sel-imul",function(){selenter=!0}),jQuery(document).on("mouseleave",".sel-imul",function(){selenter=!1}),jQuery(document).click(function(){selenter||(jQuery(".sel-options").hide(),jQuery(".sel-imul").removeClass("act"))}),function(e){"object"==typeof module&&module.exports?module.exports=e():window.intlTelInput=e()}(function(m){"use strict";return function(){function r(e,t){for(var i=0;ithis.countryCodeMaxLen&&(this.countryCodeMaxLen=t.length),this.q.hasOwnProperty(t)||(this.q[t]=[]);for(var r=0;r"),r+=""),r+="".concat(a.name,""),r+="+".concat(a.dialCode,""),r+=""}this.m.insertAdjacentHTML("beforeend",r)}},{key:"_h",value:function(){var e=this.a.getAttribute("value"),t=this.a.value,i=e&&"+"===e.charAt(0)&&(!t||"+"!==t.charAt(0))?e:t,r=this._5(i),n=this._w(i),a=this.d,o=a.initialCountry,s=a.nationalMode,d=a.autoHideDialCode,l=a.separateDialCode;r&&!n?this._v(i):"auto"!==o&&(o?this._z(o.toLowerCase()):r&&n?this._z("us"):(this.j=this.preferredCountries.length?this.preferredCountries[0].iso2:this.p[0].iso2,i||this._z(this.j)),i||s||d||l||(this.a.value="+".concat(this.s.dialCode))),i&&this._u(i)}},{key:"_i",value:function(){this._j(),this.d.autoHideDialCode&&this._l(),this.d.allowDropdown&&this._i2(),this.hiddenInput&&this._i0()}},{key:"_i0",value:function(){var e=this;this._a14=function(){e.hiddenInput.value=e.getNumber()},this.a.form&&this.a.form.addEventListener("submit",this._a14)}},{key:"_i1",value:function(){for(var e=this.a;e&&"LABEL"!==e.tagName;)e=e.parentNode;return e}},{key:"_i2",value:function(){var t=this;this._a9=function(e){t.m.classList.contains("iti__hide")?t.a.focus():e.preventDefault()};var e=this._i1();e&&e.addEventListener("click",this._a9),this._a10=function(){!t.m.classList.contains("iti__hide")||t.a.disabled||t.a.readOnly||t._n()},this.selectedFlag.addEventListener("click",this._a10),this._a11=function(e){t.m.classList.contains("iti__hide")&&-1!==["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(e.key)&&(e.preventDefault(),e.stopPropagation(),t._n()),"Tab"===e.key&&t._2()},this.k.addEventListener("keydown",this._a11)}},{key:"_i3",value:function(){var e=this;this.d.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.d.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(e.d.utilsScript)}):this.i0(),"auto"===this.d.initialCountry?this._i4():this.h()}},{key:"_i4",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.d.geoIpLookup&&this.d.geoIpLookup(function(e){window.intlTelInputGlobals.autoCountry=e.toLowerCase(),setTimeout(function(){return u("handleAutoCountry")})},function(){return u("rejectAutoCountryPromise")}))}},{key:"_j",value:function(){var e=this;this._a12=function(){e._v(e.a.value)&&e._m2CountryChange()},this.a.addEventListener("keyup",this._a12),this._a13=function(){setTimeout(e._a12)},this.a.addEventListener("cut",this._a13),this.a.addEventListener("paste",this._a13)}},{key:"_j2",value:function(e){var t=this.a.getAttribute("maxlength");return t&&e.length>t?e.substr(0,t):e}},{key:"_l",value:function(){var e=this;this._a8=function(){e._l2()},this.a.form&&this.a.form.addEventListener("submit",this._a8),this.a.addEventListener("blur",this._a8)}},{key:"_l2",value:function(){if("+"===this.a.value.charAt(0)){var e=this._m(this.a.value);e&&this.s.dialCode!==e||(this.a.value="")}}},{key:"_m",value:function(e){return e.replace(/\D/g,"")}},{key:"_m2",value:function(e){var t=document.createEvent("Event");t.initEvent(e,!0,!0),this.a.dispatchEvent(t)}},{key:"_n",value:function(){this.m.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._o(),this.b&&(this._x(this.b,!1),this._3(this.b,!0)),this._p(),this.u.classList.add("iti__arrow--up"),this._m2("open:countrydropdown")}},{key:"_n2",value:function(e,t,i){i&&!e.classList.contains(t)?e.classList.add(t):!i&&e.classList.contains(t)&&e.classList.remove(t)}},{key:"_o",value:function(){var e=this;if(this.d.dropdownContainer&&this.d.dropdownContainer.appendChild(this.dropdown),!this.g){var t=this.a.getBoundingClientRect(),i=window.pageYOffset||document.documentElement.scrollTop,r=t.top+i,n=this.m.offsetHeight,a=r+this.a.offsetHeight+n'+document.getElementById(e).getAttribute("info")+"");infoW.setOptions({maxWidth:"300"}),infoW.open(this.getMap(),this)}),document.getElementById("longval")&&(document.getElementById("longval").value=r,document.getElementById("latval").value=n,geocoder.geocode({latLng:gmapmarker.getPosition()},function(e,t){t==google.maps.GeocoderStatus.OK&&e[0]&&document.getElementById("addrval")&&(document.getElementById("addrval").value=e[0].formatted_address)})),!1}function add_marker_on_map(e,t,i,r,n,a,o){var s=new google.maps.LatLng(r,i);return gmapmarker[e][t]=new google.maps.Marker({map:gmapdata[e],position:s,draggable:o}),gmapmarker[e][t].setDraggable(o),o&&google.maps.event.addListener(gmapmarker[e][t],"drag",function(){document.getElementById(e+"_lat"+a).value=gmapmarker[e][t].getPosition().lat().toFixed(6),document.getElementById(e+"_long"+a).value=gmapmarker[e][t].getPosition().lng().toFixed(6)}),infoW=new google.maps.InfoWindow,google.maps.event.addListener(gmapmarker[e][t],"click",function(){infoW.setContent(''+document.getElementById(e+"_element"+a).getAttribute("info"+t)+"
");infoW.setOptions({maxWidth:"300"}),infoW.open(this.getMap(),this)}),!1}!function(I){function i(e,t){var a=this,o=I.extend({},I.fn.signaturePad.defaults,t),s=I(e),i=I(o.canvas,s),d=i.get(0),l=null,u={x:null,y:null},c=[],m=!1,r=!1,n=!1,f=!1,_=30,h=_,p=0;function y(){clearTimeout(m),r=m=!1}function v(e,t){var i,r,n;if(e.preventDefault(),i=I(e.target).offset(),clearTimeout(m),m=!1,n=void 0!==e.targetTouches?(r=Math.floor(e.targetTouches[0].pageX-i.left),Math.floor(e.targetTouches[0].pageY-i.top)):(r=Math.floor(e.pageX-i.left),Math.floor(e.pageY-i.top)),u.x===r&&u.y===n)return!0;null===u.x&&(u.x=r),null===u.y&&(u.y=n),t&&(n+=t),l.beginPath(),l.moveTo(u.x,u.y),l.lineTo(r,n),l.lineCap=o.penCap,l.stroke(),l.closePath(),c.push({lx:r,ly:n,mx:u.x,my:u.y}),u.x=r,u.y=n,o.onDraw&&"function"==typeof o.onDraw&&o.onDraw.apply(a)}function w(){g()}function g(e){e?v(e,1):(n?i.each(function(){this.removeEventListener("touchmove",v)}):i.unbind("mousemove.signaturepad"),0/g,">").replace(/d.width)for(;t.outerWidth()>d.width;)h--,t.css("font-size",h+"px");if(p',i.errorMessage,"
"].join("")),I(i.name,t).focus(),I(i.name,t).addClass(i.errorClass),I("label[for="+I(i.name).attr("id")+"]",t).addClass(i.errorClass)),e.drawInvalid&&t.prepend(['',i.errorMessageDraw,"
"].join(""))}.apply(a,r),e}function D(e,t,i){for(var r in e)"object"==typeof e[r]&&(t.beginPath(),t.moveTo(e[r].mx,e[r].my),t.lineTo(e[r].lx,e[r].ly),t.lineCap=o.penCap,t.stroke(),t.closePath(),i&&e[r].lx&&c.push({lx:e[r].lx,ly:e[r].ly,mx:e[r].mx,my:e[r].my}))}I.extend(a,{signaturePad:"2.5.2",init:function(){parseFloat((/CPU.+OS ([0-9_]{3}).*AppleWebkit.*Mobile/i.exec(navigator.userAgent)||[0,"4_2"])[1].replace("_","."))<4.1&&(I.fn.Oldoffset=I.fn.offset,I.fn.offset=function(){var e=I(this).Oldoffset();return e.top-=window.scrollY,e.left-=window.scrollX,e}),I(o.typed,s).bind("selectstart.signaturepad",function(e){return I(e.target).is(":input")}),i.bind("selectstart.signaturepad",function(e){return I(e.target).is(":input")}),!d.getContext&&FlashCanvas&&FlashCanvas.initElement(d),d.getContext&&(l=d.getContext("2d"),I(o.sig,s).show(),o.displayOnly||(o.drawOnly||(I(o.name,s).bind("keyup.signaturepad",function(){S(I(this).val())}),I(o.name,s).bind("blur.signaturepad",function(){S(I(this).val())}),I(o.drawIt,s).bind("click.signaturepad",function(e){e.preventDefault(),x()})),o.drawOnly||"drawIt"===o.defaultAction?x():C(),o.validateFields&&(I(e).is("form")?I(e).bind("submit.signaturepad",function(){return M()}):I(e).parents("form").bind("submit.signaturepad",function(){return M()})),I(o.sigNav,s).show()))},updateOptions:function(e){I.extend(o,e)},regenerate:function(e){a.clearCanvas(),I(o.typed,s).hide(),"string"==typeof e&&(e=JSON.parse(e)),D(e,l,!0),o.output&&0>>0,r=0;rLe(e)?(a=e+1,t-Le(e)):(a=e,t);return{year:a,dayOfYear:i}}function Re(e,t,i){var r,n,a=Fe(e.year(),t,i);return(a=Math.floor((e.dayOfYear()-a-1)/7)+1)<1?r=a+Ue(n=e.year()-1,t,i):a>Ue(e.year(),t,i)?(r=a-Ue(e.year(),t,i),n=e.year()+1):(n=e.year(),r=a),{week:r,year:n}}function Ue(e,t,i){var r=Fe(e,t,i);t=Fe(e+1,t,i);return(Le(e)-r+t)/7}function We(e,t){return e.slice(t,7).concat(e.slice(0,t))}O("w",["ww",2],"wo","week"),O("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),U("week",5),U("isoWeek",5),ce("w",ee),ce("ww",ee,$),ce("W",ee),ce("WW",ee,$),pe(["w","ww","W","WW"],function(e,t,i,r){t[r.substr(0,1)]=H(e)}),O("d",0,"do","day"),O("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),O("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),O("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),O("e",0,0,"weekday"),O("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),ce("d",ee),ce("e",ee),ce("E",ee),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),pe(["dd","ddd","dddd"],function(e,t,i,r){null!=(r=i._locale.weekdaysParse(e,r,i._strict))?t.d=r:w(i).invalidWeekday=e}),pe(["d","e","E"],function(e,t,i,r){t[r]=H(e)});var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ze=ue,Ve=ue,Ze=ue;function $e(){function e(e,t){return t.length-e.length}for(var t,i,r,n=[],a=[],o=[],s=[],d=0;d<7;d++)r=_([2e3,1]).day(d),t=me(this.weekdaysMin(r,"")),i=me(this.weekdaysShort(r,"")),r=me(this.weekdays(r,"")),n.push(t),a.push(i),o.push(r),s.push(t),s.push(i),s.push(r);n.sort(e),a.sort(e),o.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Je(){return this.hours()%12||12}function Ke(e,t){O(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Xe(e,t){return t._meridiemParse}O("H",["HH",2],0,"hour"),O("h",["hh",2],0,Je),O("k",["kk",2],0,function(){return this.hours()||24}),O("hmm",0,0,function(){return""+Je.apply(this)+D(this.minutes(),2)}),O("hmmss",0,0,function(){return""+Je.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),O("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),O("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),P("hour","h"),U("hour",13),ce("a",Xe),ce("A",Xe),ce("H",ee),ce("h",ee),ce("k",ee),ce("HH",ee,$),ce("hh",ee,$),ce("kk",ee,$),ce("hmm",te),ce("hmmss",ie),ce("Hmm",te),ce("Hmmss",ie),he(["H","HH"],be),he(["k","kk"],function(e,t,i){e=H(e),t[be]=24===e?0:e}),he(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),he(["h","hh"],function(e,t,i){t[be]=H(e),w(i).bigHour=!0}),he("hmm",function(e,t,i){var r=e.length-2;t[be]=H(e.substr(0,r)),t[je]=H(e.substr(r)),w(i).bigHour=!0}),he("hmmss",function(e,t,i){var r=e.length-4,n=e.length-2;t[be]=H(e.substr(0,r)),t[je]=H(e.substr(r,2)),t[ke]=H(e.substr(n)),w(i).bigHour=!0}),he("Hmm",function(e,t,i){var r=e.length-2;t[be]=H(e.substr(0,r)),t[je]=H(e.substr(r))}),he("Hmmss",function(e,t,i){var r=e.length-4,n=e.length-2;t[be]=H(e.substr(0,r)),t[je]=H(e.substr(r,2)),t[ke]=H(e.substr(n))}),ue=G("Hours",!0);var et,tt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Me,monthsShort:De,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Ge,weekdaysShort:He,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function nt(e){return e&&e.toLowerCase().replace("_","-")}function at(e){var t;if(void 0===it[e]&&"undefined"!=typeof module&&module&&module.exports&&null!=e.match("^[^/\\\\]*$"))try{t=et._abbr,require("./locale/"+e),ot(t)}catch(t){it[e]=null}return it[e]}function ot(e,t){return e&&((t=o(t)?dt(e):st(e,t))?et=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),et._abbr}function st(e,t){if(null===t)return delete it[e],null;var i,r=tt;if(t.abbr=e,null!=it[e])a("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])r=it[t.parentLocale]._config;else{if(null==(i=at(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;r=i._config}return it[e]=new S(C(r,t)),rt[e]&&rt[e].forEach(function(e){st(e.name,e.config)}),ot(e),it[e]}function dt(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return et;if(!s(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,i,r,n,a=0;a=t&&function(e,t){for(var i=Math.min(e.length,t.length),r=0;r=t-1)break;t--}a++}return et}(e)}function lt(e){var t=e._a;return t&&-2===w(e).overflow&&(t=t[we]<0||11Se(t[ve],t[we])?ge:t[be]<0||24Ue(a,d,l)?w(r)._overflowWeeks=!0:null!=u?w(r)._overflowWeekday=!0:(c=Be(a,o,s,d,l),r._a[ve]=c.year,r._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(n=gt(e._a[ve],i[ve]),(e._dayOfYear>Le(n)||0===e._dayOfYear)&&(w(e)._overflowDayOfYear=!0),u=Pe(n,0,e._dayOfYear),e._a[we]=u.getUTCMonth(),e._a[ge]=u.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=m[t]=i[t];for(;t<7;t++)e._a[t]=m[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[be]&&0===e._a[je]&&0===e._a[ke]&&0===e._a[Qe]&&(e._nextDay=!0,e._a[be]=0),e._d=(e._useUTC?Pe:function(e,t,i,r,n,a,o){var s;return e<100&&0<=e?(s=new Date(e+400,t,i,r,n,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,r,n,a,o),s}).apply(null,m),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[be]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(w(e).weekdayMismatch=!0)}}function jt(e){if(e._f===y.ISO_8601)vt(e);else if(e._f===y.RFC_2822)wt(e);else{e._a=[],w(e).empty=!0;for(var t,i,r,n,a,o=""+e._i,s=o.length,d=0,l=L(e._f,e._locale).match(I)||[],u=l.length,c=0;ce.valueOf():e.valueOf()"}),Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Z.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Z.eraName=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Z.isLocal=function(){return!!this.isValid()&&!this._isUTC},Z.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Z.isUtc=Lt,Z.isUTC=Lt,Z.zoneAbbr=function(){return this._isUTC?"UTC":""},Z.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Z.dates=i("dates accessor is deprecated. Use date instead.",ne),Z.months=i("months accessor is deprecated. Use month instead",Oe),Z.years=i("years accessor is deprecated. Use year instead",Ae),Z.zone=i("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),Z.isDSTShifted=i("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=kt(t))._a?(e=(t._isUTC?_:xt)(t._a),this._isDSTShifted=this.isValid()&&0