PageSourceSearch

https://burleylaw.co.uk/wp-content/plugins/everest-forms-pro/asset…/everest-forms-pro.min.js?ver=1.9.21

js burleylaw.co.uk collected 2026-09-26 07:51:42 UTC 33,690 bytes, 1 lines download raw bytes

1jQuery(function(h){if("undefined"==typeof everest_forms_params)return!1;var n=function(){return{language:{noResults:function(){return everest_forms_params.i18n_no_countries}}}},u={init:function(){h(document).ready(u.ready);var e=h(".evf-single-item-price-hidden input[type=hidden]").length,t=h(".evf-field-payment-single input[type=text]").length,i=h(".evf-single-item-price").find("span").length;0!==e&&0==t&&0==i?(h(".evf-single-item-price-hidden input[type=hidden]").closest(".evf-field-payment-single").hide(),h(".evf-field-payment-total").hide()):(h(".evf-single-item-price-hidden input[type=hidden]").closest(".evf-field-payment-single").hide(),h(".evf-field-payment-total").show()),this.init_range_sliders(),this.load_validation(),u.bindUIActions(),this.init_privacy_policy_fields(),this.init_field_visibility(),this.init_colorpicker(),1===h("form.everest-form").data("keyboard_friendly_form")&&this.makeKeyboardAccessible(),this.init_lookupField()},ready:function(){u.loadPayments(),everest_forms_pro_params.isProFieldCodeRequired&&(u.loadPhoneField(),u.loadCountryFlags());var e=h(".everest-form");e.length&&u.buildPaymentSummary(e),u.popupform(),u.selectUnselectAllOption(),u.CleartheForm(),u.selectstatecountrywise()},CleartheForm:function(){h(".evf-reset-button").on("click",function(e){e.preventDefault();var e=h(this),t=(h(document).trigger("evf_frontend_reset_button"),h("#"+e.closest("form").attr("id"))),i=(t.find("label.evf-error").remove(),t.find(".evf-field-rating .everest-forms-field-rating-container label").removeClass("selected"),t.find(".evf-field-yes-no .everest-forms-field-yes-no-container label").removeClass("active"),t.find("div").removeClass("everest-forms-invalid"),t.find(".evf-signature-input").val(""),t.find("div.everest_form_signature_canvas-wrap").children().attr("id"));void 0!==i&&new SignaturePad(document.getElementById(i)).clear(),"undefined"!=typeof tinyMCE&&h.each(tinyMCE.editors,function(e,t){t.setContent("")}),"button"==e.attr("data-type")?(t.trigger("reset"),h(":input",t).not(":button, :submit, :reset, :hidden").val("").removeAttr("checked").removeAttr("selected"),t.find("textarea").html(""),t.find("input[type=tel]").attr("value",""),t.find("input[type=tel]").siblings().attr("value","")):t.trigger("reset"),u.updateProgress()})},selectstatecountrywise:function(){h(document.body).on("change",".evf-field-address-country",function(){var a,n=h(this).closest(".everest-forms").find("form").data("formid"),s=h(this).val(),r=h(this).parent().parent().parent().attr("data-field-id");0<h("span.evf-"+n+"-field_"+r+"-state input").length?a=h("span.evf-"+n+"-field_"+r+"-state input").attr("placeholder"):0<h("span.evf-"+n+"-field_"+r+"-state select").length&&(a=h("span.evf-"+n+"-field_"+r+"-state select").attr("placeholder")),h.ajax({url:evf_state_drop_down_params.ajax_url,type:"POST",data:{action:"everest_forms_update_state_field",security:evf_state_drop_down_params.ajax_everest_forms_state_nonce,form_id:n,country:s},success:function(e){var t,i;!0===e.success&&(i=e.data.states[s],t=h("span.evf-"+n+"-field_"+r+"-state input").prop("required"),i&&!Array.isArray(i)?h.each(e.data.states,function(e,t){e===s&&(h("span.evf-"+n+"-field_"+r+"-state select").remove(),h("span.evf-"+n+"-field_"+r+"-state input").remove(),e=void 0!==a?'<select id="evf-'+n+"-field_"+r+'-state" class="evf-field-address-state"  name="everest_forms[form_fields]['+r+'][state]" placeholder="'+a+'" >'+('<option class="placeholder" value="" selected="" disabled="">'+a+"</option>")+"</select>":'<select id="evf-'+n+"-field_"+r+'-state" class="evf-field-address-state"  name="everest_forms[form_fields]['+r+'][state]" ></select>',h("span.evf-"+n+"-field_"+r+"-state").append(e),h.each(t,function(e,t){h("span.evf-"+n+"-field_"+r+"-state select").append('<option value="'+e+'">'+t+"</option>")}))}):(h("span.evf-"+n+"-field_"+r+"-state select").remove(),h("span.evf-"+n+"-field_"+r+"-state input").remove(),i=void 0!==a?t?'<input id="evf-'+n+"-field_"+r+'-state" type="text" class="evf-field-address-state" name="everest_forms[form_fields]['+r+'][state]" required>
1':'<input id="evf-'+n+"-field_"+r+'-state" type="text" class="evf-field-address-state"  name="everest_forms[form_fields]['+r+'][state]" >':t?'<input id="evf-'+n+"-field_"+r+'-state" type="text" class="evf-field-address-state" name="everest_forms[form_fields]['+r+'][state]" required>':'<input id="evf-'+n+"-field_"+r+'-state" type="text" class="evf-field-address-state"  name="everest_forms[form_fields]['+r+'][state]" " >',h("span.evf-"+n+"-field_"+r+"-state").append(i)))}})}),u.updateProgress()},init_field_visibility:function(){h(".everest-forms-submit-button").on("click",function(){h('input[data-field-visibilty="yes"]').each(function(){var e=h(this).attr("id");h("#"+e).removeAttr("disabled")}),h('select[data-field-visibilty="yes"]').each(function(){var e=h(this).attr("id");h("#"+e).removeAttr("disabled")})})},init_privacy_policy_fields:function(){h(document.body).on("click",".evf-privacy-policy-local-page-link",function(e){e.preventDefault();var t,e=h(this).data("page-id");""!==e&&(t=h(this).closest(".evf-field"),h(this).hasClass("evf-page-expanded")?(h(this).removeClass("evf-page-expanded"),t.find(".evf-privacy-policy-local-page-content-"+e).slideUp()):(t.find(".evf-privacy-policy-local-page-content:visible").slideUp(),t.find(".evf-privacy-policy-local-page-content-"+e).slideDown(),t.find(".evf-privacy-policy-local-page-link").removeClass("evf-page-expanded"),h(this).addClass("evf-page-expanded")))})},makeKeyboardAccessible:function(){var t=h("form.everest-form"),i=t.find("div.evf-field").not(".evf-field-hidden");i.first().find("[name^=everest_forms]").first().trigger("focus"),h("body").on("keydown",function(e){(e.ctrlKey||e.metaKey)&&13===e.which&&(e.preventDefault(),t.submit()),i.last().find("[name^=everest_forms]").last().is(":focus")?9===e.which&&(e.preventDefault(),h("form.everest-form").find("[name^=everest_forms]").trigger("focus")):h("form.everest-form").find(".everest-forms-submit-button.button.evf-submit ").is(":focus")&&9===e.which&&(e.preventDefault(),i.first().find("[name^=everest_forms]").first().trigger("focus"))})},init_range_sliders:function(){h(".evf-field.evf-field-range-slider").show(),h().ionRangeSlider&&h(".evf-field-range-slider").length&&(h(".evf-field-range-slider .evf-field-primary-input").ionRangeSlider({onFinish:function(e){e=e.input.closest(".evf-field");u.setPrefixPostfixTexts(null,null,e)}}).on("change",function(){var e=h(this).val();h(this).closest(".evf-field-range-slider").find(".evf-slider-input").val(e),u.setSliderColors(h(this).closest(".evf-field"))}),h(".evf-field-range-slider .evf-slider-input").on("input",function(){var e=h(this).val(),t=h(this).closest(".evf-field");h(this).closest(".evf-field-range-slider").find(".evf-field-primary-input").data("ionRangeSlider").update({from:e}),u.setPrefixPostfixTexts(null,null,t)}),h(".evf-field-range-slider .evf-range-slider-reset-icon").on("click",function(e){var t=h(this).closest(".evf-field"),i=t.find(".evf-field-primary-input").data("default");t.find(".evf-field-primary-input").data("ionRangeSlider").update({from:i}),u.setSliderColors(h(this).closest(".evf-field")),u.setPrefixPostfixTexts(null,null,t)}),h(".evf-field.evf-field-range-slider").each(function(){var e=h(this).closest(".evf-field");u.setSliderColors(this),u.setPrefixPostfixTexts(null,null,e)}))},setPrefixPostfixTexts:function(e,t,i){var a=null!==i&&undefined!==i;(e&&""!==e&&t&&""!==t||a)&&(t=(a=(i=a?i:h("#evf-"+t+"-field_"+e+"-container")).find(".evf-field-primary-input")).data("use-text-prefix-postfix"),e=a.data("prefix-text"),a=a.data("postfix-text"),!0===t)&&(i.find("span.irs-min").html(e),i.find("span.irs-max").html(a))},setSliderColors:function(e){var t=h(e).find(".evf-field-primary-input"),i=t.data("highlight_color"),t=t.data("track_color");u.setSliderHandleColor(e),h(e).find(".irs-bar").css("background",i),h(e).find(".irs-line").css("background",t)},setSliderHandleColor:function(e){if(e){var t=h(e),i=t.attr("id"),e=t.find(".evf-field-primary-input").data("skin"),a=t.find(".evf-field-primary-input").data("handle_color"),n="";switch(e){case"flat":t.find(".irs-handle i").first().css("background-color",a),t.find(".
1irs-single").css("background-color",a),n="#"+i+" .irs-single:before { border-top-color: "+a+"!important; }";break;case"big":t.find(".irs-single").css("background-color",a),t.find(".irs-single").css("background",a),t.find(".irs-handle").css("background-color",a),t.find(".irs-handle").css("background",a);break;case"modern":t.find(".irs-handle i").css("background",a),t.find(".irs-single").css("background-color",a),n="#"+i+" .irs-single:before { border-top-color: "+a+"!important; }";break;case"sharp":t.find(".irs-handle").css("background-color",a),t.find(".irs-handle i").first().css("border-top-color",a),t.find(".irs-single").css("background-color",a),n="#"+i+" .irs-single:before { border-top-color: "+a+"!important; }";break;case"round":case"square":t.find(".irs-handle").css("border-color",a),t.find(".irs-single").css("background-color",a),n="#"+i+" .irs-single:before { border-top-color: "+a+"!important; }"}h("body").find(".evf-range-slider-handle-style-tag-"+i).remove(),h("body").append('<style class="evf-range-slider-handle-style-tag-'+i+'" >'+n+"</style>")}},load_validation:function(){if("undefined"==typeof h.fn.validate)return!1;h.validator.addMethod("extension",function(e,t,i){return i="string"==typeof i?i.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(t)||e.match(new RegExp("\\.("+i+")$","i"))},everest_forms_params.i18n_messages_fileextension),h.validator.addMethod("maxsize",function(e,t,i){var a,n,s=i,i=this.optional(t);if(i)return i;if(t.files&&t.files.length)for(a=0,n=t.files.length;a<n;a++)if(t.files[a].size>s)return!1;return!0},everest_forms_params.i18n_messages_filesize),everest_forms_pro_params.isProFieldCodeRequired&&(h.validator.addMethod("phone-field",function(e,t){return!e.match(/[^\d()\-+\s]/)&&(this.optional(t)||0<e.replace(/[^\d]/g,"").length)},everest_forms_params.i18n_messages_phone),"undefined"!=typeof h.fn.intlTelInput)&&h.validator.addMethod("smart-phone-field",function(e,t){return!e.match(/[^\d()\-+\s]/)&&(this.optional(t)||h(t).intlTelInput("isValidNumber"))},everest_forms_params.i18n_messages_phone)},loadPayments:function(){h(".evf-payment-total").each(function(e,t){u.amountTotal(this)}),h(".evf-payment-subtotal").each(function(e,t){u.amountSubtotal(this)})},loadPhoneField:function(){var e,t,a={};if("undefined"==typeof h.fn.intlTelInput)return!1;"yes"!==everest_forms_params.disable_user_details&&(a.geoIpLookup=u.currentIpToCountry),"yes"===everest_forms_params.disable_user_details&&(e=this.getFirstBrowserLanguage(),t=-1<e.indexOf("-")?e.split("-").pop():""),t=t&&(window.intlTelInputGlobals.getCountryData().filter(function(e){return e.iso2===t.toLowerCase()}).length?t:""),a.initialCountry="yes"===everest_forms_params.disable_user_details&&t?t:"auto",h(".evf-smart-phone-field").each(function(e,t){var i=h(t),t=(a.hiddenInput=i.closest(".evf-field-phone").data("field-id"),a.utilsScript=everest_forms_pro_params.plugin_url+"assets/js/intlTelInput/utils.js",i.intlTelInput(a),i.attr("name"));i.attr("name",t+"[phone_field]");i.on("blur change countrychange",function(){i.siblings('input[type="hidden"]').val(i.intlTelInput("getNumber"))})})},loadCountryFlags:function(){"undefined"!=typeof h.fn.selectWoo&&(h.fn.selectWoo.amd.define("evfCountrySelectionAdapter",["select2/utils","select2/selection/single"],function(e,t){return t.prototype.update=function(e){var t,i;0===e.length?this.clear():(e=e[0],t=this.$selection.find(".select2-selection__rendered"),i=this.display(e,t),t.empty().append(i),t.prop("title",e.title||e.text))},t}),h("select.evf-country-flag-selector:visible").each(function(){var e=h.extend({placeholder:h(this).attr("placeholder")||"",selectionAdapter:h.fn.selectWoo.amd.require("evfCountrySelectionAdapter"),templateResult:u.getFormattedCountryFlags,templateSelection:u.getFormattedCountryFlags},n());h(this).selectWoo(e)}))},popupform:function(){h(document).on("click",".evf-close-popup",function(e){e.preventDefault();h.map(h(this)[0].classList,function(e,t){0===e.indexOf("evf-close-popup-")&&(e=e.replace("evf-close-popup-",""),h("body").first().css("overflow",""),h(".everest-forms-modal-"+e).each(function(){h(this).hide()}))})}),h(document).on("click",".everest-forms-modal-link",function(e){e.preventDefault();h.map(h(this)[0].classList,function(e,t){0===e.indexOf("everest-forms-modal-link-")&&(h("body").first().css("overflow","hidden"),e=e.replace("everest-forms-modal-link-",""),h(".everest-forms-modal-"+e).each(function(e){h(this).show()}))})}),h(document).on("click",".evf-model",function(e){e.stopPropagation()}),h(document).on("click",".everest-forms-modal ",function(e){h(this).hide()})},selectUnselectAllOption:function(){h("select").hasClass("evf-enhanced")&&h.fn.select2.amd.require(["select2/utils","select2/dropdown","select2/dropdown/attachBody"],function(e,t,i){function a(){}a.prototype.render=function(e){var e=e.call(this),a=this,t=h("<a/>").addClass("evf-btn-select-all").text(everest_forms_params.i18n_select_all),i=h("<a/>").addClass("evf-btn-unselect-all").text(everest_forms_params.i18n_unselect_all),n=h("<div>").append(t).append(i).addClass("evf-btn-container");return e.find(".select2-dropdown").prepend(n),t.on("click",function(e){var t=a.$element.find("option").not(":disabled"),i=[];t.each(function(){i.push(h(this).val())}),a.$element.val(i),a.$element.trigger("change"),a.trigger("close")}),i.on("click",function(e){a.$element.val([]),a.$element.trigger("change"),a.trigger("close")}),e};t=h.extend({dropdownAdapter:e.Decorate(e.Decorate(t,i),a),width:"100%"},n());h("select.evf-enhanced[select_all_unselect_all=true]").selectWoo(t)}),h("select[select_all_unselect_all=true]").not(".evf-enhanced").each(function(){var e=h(this),t="evf_select_btn_container_"+e.parent().data("field-id");e.before('<div class="evf-btn-container" id="'+t+'"><a class="evf-btn-select-all">Select All</a><a class="evf-btn-unselect-all">Unselect All</a></div>'),h(document.body).find("#"+t).find(".evf-btn-select-all").on("click",function(){e.find("option").prop("selected",!0).trigger("change")}),h(document.body).find("#"+t).find(".evf-btn-unselect-all").on("click",function(){e.find("option").prop("selected",!1).trigger("change")})})},getFormattedCountryFlags:function(e){return e.id?h('<div class="iti__flag-box"><div class="iti__flag iti__'+e.id.toLowerCase()+'"></div></div><span class="iti__country-name">'+e.text+"</span>"):e.text},getFirstBrowserLanguage:function(){var e,t,i=window.navigator,a=["language","browserLanguage","systemLanguage","userLanguage"];
1if(Array.isArray(i.languages))for(e=0;e<i.languages.length;e++)if((t=i.languages[e])&&t.length)return t;for(e=0;e<a.length;e++)if((t=i[a[e]])&&t.length)return t;return""},currentIpToCountry:function(i){h.get("https://ipapi.co/json").always(function(e){var t,e=e&&e.country?e.country:"";e||(e=-1<(t=u.getFirstBrowserLanguage()).indexOf("-")?t.split("-").pop():""),i(e)})},bindUIActions:function(){h(document).on("change input",".evf-payment-price",function(){u.amountTotal(this,!0),u.amountSubtotal(this,!0)}),h(document.body).on("conditional_show conditional_hide",function(e,t){t=h(t).find(".evf-payment-price");h(t).length&&(u.amountTotal(t,!0),u.amountSubtotal(t,!0))}),h(document).on("input",".evf-payment-user-input",function(){var e=h(this),t=e.val();e.val(t.replace(/[^0-9.,]/g,""))}),h(document).on("focusout",".evf-payment-user-input",function(){var e=h(this),t=e.val(),t=u.amountSanitize(t),t=u.amountFormat(t);e.val(t)}),everest_forms_pro_params.isProFieldCodeRequired&&(h(".everest-forms-field-rating").hover(function(){h(this).parent().find(".everest-forms-field-rating").removeClass("selected hover"),h(this).prevAll().addBack().addClass("hover")},function(){h(this).parent().find(".everest-forms-field-rating").removeClass("selected hover"),h(this).parent().find("input:checked").parent().prevAll().addBack().addClass("selected")}),h(document).on("change",".everest-forms-field-rating input",function(){var e=h(this);e.closest(".everest-forms-field-rating-container").find(".everest-forms-field-rating").removeClass("hover selected"),e.parent().prevAll().addBack().addClass("selected")}),h(document).ready(function(){h(".everest-forms-field-rating input:checked").trigger("change")})),h(document).on("click",".toggle-password",function(){var e=h(this),t=h(e.attr("toggle"));e.toggleClass("dashicons-visibility"),"password"===t.attr("type")?t.attr("type","text"):t.attr("type","password")}),h(document).on("change input focusout","form.everest-form",function(){u.updateProgress()}),h(document).find(".evf-signature-canvas").on("mouseup mousedown",function(){u.updateProgress()}),"undefined"!=typeof tinyMCE&&h.each(tinyMCE.editors,function(e,t){t.on("keyup",function(){u.updateProgress()})}),h(document).on("click",".evf-signature-reset",function(e){e.preventDefault(),u.updateProgress()})},amountTotal:function(e,t){t=t||!1;var o,i=h(e).closest(".everest-form"),e=h(e).closest(".cart"),s=(o=0<e.length?e:i,0),a=0,l=0,e=u.getCurrency(),r=(o.find('.evf-field .evf-payment-price:enabled, .evf-field .evf-single-item-price-hidden input[type="hidden"]:enabled').each(function(e,t){var i=h(this),a=0;"text"===i.attr("type")||"hidden"===i.attr("type")?a=i.val():"radio"!==i.attr("type")&&"checkbox"!==i.attr("type")||!i.is(":checked")?i.is("select")&&
10<i.find("option:selected").length?a=i.find("option:selected").data("amount"):"number"===i.attr("type")&&i.data("enable_payment_slider")&&(a=i.val()):a=i.data("amount"),u.empty(a)||(a=u.amountSanitize(a),s=Number(s)+Number(a))}),o.find(".evf-payment-quantity").length&&o.find(".evf-payment-quantity").each(function(e,t){var i,a,n;""!==h(t).val()&&(form_id=o.data("formid"),map_field_id=h(t).attr("data-map_field"),($mapped_field=h("#evf-"+form_id+"-field_"+map_field_id)).is(".evf-payment-price")&&$mapped_field.is(":enabled")||$mapped_field.find(".evf-payment-price").is(":enabled"))&&(i=u.amountSanitize($mapped_field.val()),a=parseFloat(h(t).val())||1,"hidden"!==h(t)&&!1===h(t).is(":visible")&&(s-=i,i=0),$mapped_field.closest(".evf-field").is(".evf-field-payment-multiple")?$mapped_field.find(".evf-payment-price:checked").length&&(n=$mapped_field.find(".evf-payment-price:checked").attr("data-amount"),isNaN(parseFloat(n))||(i="string"==typeof n&&"EUR"===u.getCurrency().code?parseFloat(n.replace(",",".")):parseFloat(n.replace(",","")),s=s-i+a*i)):$mapped_field.closest(".evf-field").is(".evf-field-payment-checkbox")?$mapped_field.find(".evf-payment-price:checked").each(function(){n=h(this).attr("data-amount"),isNaN(parseFloat(n))||(i="string"==typeof n&&"EUR"===u.getCurrency().code?parseFloat(n.replace(",",".")):parseFloat(n.replace(",","")),s=s-i+a*i)}):isNaN(parseFloat(i))||(i=parseFloat(i),s=s-i+a*i))}),0),d=s,i=(h(document).find(".evf-error-box").remove(),o.find(".everest-forms-coupons input.evf-coupon-applied").each(function(){var e=o.find(".applied-coupons-data"),t=[];if(0===r){l=0;try{t=JSON.parse(e.val()||"[]")}catch(n){t=[]}var i=[],a=!1;t.forEach(function(e){var t;e&&(t=parseFloat(e.minimum_purchase)||0,0<d&&d<t?(t=String(e.code||"").toLowerCase(),o.find('.evf-applied-coupon[data-code="'+t+'"]').remove(),o.find('.evf-payment-coupon[data-applied-code="'+t+'"]').removeAttr("data-applied-code").removeAttr("data-discount").removeAttr("data-discount_percent").removeAttr("data-discount_map_field").removeAttr("data-minimum-purchase").removeClass("evf-coupon-applied"),a=!0):i.push(e))}),a&&(t=i,e.val(JSON.stringify(t)),e=i.map(function(e){return String(e.code||"").toLowerCase()}),o.find(".applied-coupon-codes").val(JSON.stringify(e))),t.forEach(function(e){var t,i,a,n,s,r;e&&(t=String(e.discount_type||"").toLowerCase(),i=parseFloat(e.amount)||0,""!==(a=e.map_field||"")?(n=0,"text"===(e=o.find('div[data-field-id="'+a+'"] .evf-payment-price:enabled, div[data-field-id="'+a+'"] .evf-single-item-price-hidden input[type="hidden"]:enabled')).attr("type")||"hidden"===e.attr("type")?n=e.val():"radio"===e.attr("type")?(r=e.filter(":checked")).length&&(n=r.data("amount")):e.closest(".evf-field").is(".evf-field-payment-checkbox")?(n=0,e.closest(".evf-field").find(".evf-payment-price:checked").each(function(){s=h(this).attr("data-amount"),isNaN(parseFloat(s))||(s=parseFloat(s),n+=s)}
1)):e.is("select")&&0<e.find("option:selected").length?n=e.find("option:selected").data("amount"):"number"===e.attr("type")&&e.data("enable_payment_slider")&&(n=e.val()),n=parseFloat(n)||0,o.find(".evf-payment-quantity").length&&o.find(".evf-payment-quantity").each(function(e,t){""!==h(t).val()&&a===h(t).attr("data-map_field")&&(n*=parseFloat(h(t).val()))}),"percent"===t?l+=n*i/100:"fixed"===t&&(l+=Math.min(i,n))):"percent"===t?l+=d*i/100:"fixed"===t&&(l+=i))}),"undefined"!=typeof EverestFormsCoupons&&"function"==typeof EverestFormsCoupons.toggleCouponErrorMessageContainer&&EverestFormsCoupons.toggleCouponErrorMessageContainer(o),(s=d-l)<0&&(s=0)}r++}),i=u.amountFormat(s),a="left"===e.symbol_pos?e.symbol+" "+i:i+" "+e.symbol,o.find(".evf-payment-total").each(function(){"hidden"===h(this).attr("type")||"text"===h(this).attr("type")?(h(this).val(a),"text"===h(this).attr("type")&&t&&o.data("validator")&&h(this).valid()):h(this).text(a)}),u.amountFormat(l)),n="",n="left"===e.symbol_pos?e.symbol+" "+i:i+" "+e.symbol,i=u.amountFormat(d),f="",f="left"===e.symbol_pos?e.symbol+" "+i:i+" "+e.symbol;u.buildPaymentSummary(o,a,n,f)},buildPaymentSummary:function(r,e,t,i){var a,n,s,o,l,d=r.find(".evf-payment_summary_component");function f(e){return e=u.amountSanitize(e),e=u.amountFormat(e),"left"===a.symbol_pos?a.symbol+" "+e:e+" "+a.symbol}function c(e){return(h.trim(e.find("> label, .evf-label").first().text())||"Payment Item").replace("*","").trim()}function p(e,t,i){var a=Number(t)*Number(i);n.append('<tr class="everest-forms-payment-summary-item"><td class="everest-forms-payment-summary-item-name">'+e+'</td><td class="everest-forms-payment-summary-item-amount">'+f(t)+'</td><td class="everest-forms-payment-summary-item-quantity">'+i+'</td><td class="everest-forms-payment-summary-item-total">'+f(a)+"</td></tr>"),s=!0}d.length&&(a=u.getCurrency(),n=d.find(".everest-forms-payment-summary-items"),o=d.find(".evf_payment_summary_fallback"),s=!1,n.empty(),r.find(".evf-field").each(function(){var e,t,i,a=h(this),n=a.data("field-id"),s=1;!(a.hasClass("evf-field-payment-single")||a.hasClass("evf-field-payment-multiple")||a.hasClass("evf-field-payment-checkbox")||a.hasClass("evf-field-payment-subscription-plan"))||!a.is(":visible")||(s=(n=r.find('.evf-payment-quantity[data-map_field="'+n+'"]')).length&&""!==n.val()?"hidden"===n.attr("type")||!1===n.is(":visible")?0:parseFloat(n.val()):s)<=0||(a.hasClass("evf-field-payment-single")&&(n=0,(e=a.find('.evf-payment-price:enabled, .evf-single-item-price-hidden input[type="hidden"]:enabled').first()).length&&("text"===e.attr("type")||"hidden"===e.attr("type")||"number"===e.attr("type")&&e.data("enable_payment_slider"))&&(n=e.val()),!u.empty(n))&&0<Number(u.amountSanitize(n))&&p(c(a),u.amountSanitize(n),s),(a.hasClass("evf-field-payment-multiple")||a.hasClass("evf-field-payment-subscription-plan"))&&((e=a.find(".evf-payment-price:checked:enabled")).length&&(n=e.attr("data-amount"),e=h.trim(a.find('label[for="'+e.attr("id")+'"]').text())||c(a),u.empty(n)||p(e,u.amountSanitize(n),s)),(e=a.find("select.evf-payment-price:enabled")).length)&&e.find("option:selected").length&&(e=(n=e.find("option:selected")).data("amount"),t=h.trim(n.text()),n.val())&&!u.empty(e)&&p(t,u.amountSanitize(e),s),a.hasClass("evf-field-payment-checkbox")&&(i=0,a.find(".evf-payment-price:checked:enabled").each(function(){var e=h(this).attr("data-amount");u.empty(e)||(i+=Number(u.amountSanitize(e)))}),0<i)&&p(c(a),i,s))}),s?(d.find(".evf_table").show(),o.hide()):(d.find(".evf_table").hide(),o.show()),u.empty(o=e)&&(l=0,n.find(".everest-forms-payment-summary-item").each(function(){var e=h(this).find(".everest-forms-payment-summary-item-total").text();u.empty(e)||(e=u.amountSanitize(e),l=Number(l)+Number(e))}),l=u.amountFormat(l),o="left"===a.symbol_pos?a.symbol+" "+l:l+" "+a.symbol),i&&0<Number(u.amountSanitize(i))&&n.append('<tr class="everest-forms-payment-summary-subtotal"><td colspan="3" class="item_right">Subtotal</td><td class="evf-payment-summary-subtotal-amount">'+i+"</td></tr>"),t&&0<Number(u.amountSanitize(t))&&n.append('<tr class="everest-forms-payment-summary-discount"><td colspan="3" class="item_right">'+everest_forms_pro_params.i18n_discount+'</td><td class="evf-payment-summary-discount-amount">- '+t+"</td></tr>"),d.find(".everest-forms-payment-summary-item-final-amount").html(o))},amountSubtotal:function(e,t){var f=h(e).closest(".everest-form");f.find(".evf-payment-subtotal").each(function(){0;var e,t,i,a,n=0,s=0,r="",o=u.getCurrency(),l=h(this),d=f.find('.evf-payment-quantity[data-map_field="'+h(this).data("map_field")+'"]');l.data("map_field")&&(e=f.data("formid"),r=l.attr("data-map_field"),(l=h("#evf-"+e+"-field_"+r)).is(".evf-payment-price")&&l.is(":enabled")||l.find(".evf-payment-price").is(":enabled"))&&(t=l.val().replace(",","."),i=1,a=0,d.length&&""!==d.val()&&(i="hidden"===d.attr("type")||!1===d.is(":visible")?t=0:parseFloat(d.val())),l.closest(".evf-field").is(".evf-field-payment-multiple")?l.find(".evf-payment-price:checked").length&&(a=l.find(".evf-payment-price:checked").attr("data-amount"),isNaN(parseFloat(a))||(t="string"==typeof a&&"EUR"===u.getCurrency().code?parseFloat(a.replace(",",".")):parseFloat(a.replace(",","")),n=i*t)):l.closest(".evf-field").is(".evf-field-payment-checkbox")?l.find(".evf-payment-price:checked").each(function(){a=h(this).attr("data-amount"),isNaN(parseFloat(a))||(t="string"==typeof a&&"EUR"===u.getCurrency().code?parseFloat(a.replace(",",".")):parseFloat(a.replace(",","")),n+=i*t)}):isNaN(parseFloat(t))||(t=parseFloat(t),n=i*t)),e=u.amountFormat(n),s="left"===o.symbol_pos?o.symbol+" "+e:e+" "+o.symbol,""!==r&&((d=f.find(".evf-field-payment-subtotal").find('.evf-payment-subtotal[data-map_field="'+r+'"]')).val(s),d.prev("div.evf-payment-subtotal").text(s))})},amountSanitize:function(e){var t=u.getCurrency();return e=e.toString().replace(/[^0-9.,]/g,""),","===t.decimal_sep&&-1!==e.indexOf(t.decimal_sep)?("."===t.thous
1ands_sep&&-1!==e.indexOf(t.thousands_sep)?e=e.replace(t.thousands_sep,""):""===t.thousands_sep&&-1!==e.indexOf(".")&&(e=e.replace(".","")),e=e.replace(t.decimal_sep,".")):","===t.thousands_sep&&-1!==e.indexOf(t.thousands_sep)&&(e=e.replace(t.thousands_sep,"")),u.numberFormat(e,2,".","")},amountFormat:function(e){var t,i=u.getCurrency();return e=String(e),","===i.decimal_sep&&-1!==e.indexOf(i.decimal_sep)&&(t=e.indexOf(i.decimal_sep),e=e.substr(0,t)+"."+e.substr(t+1,e.strlen-1)),","===i.thousands_sep&&-1!==e.indexOf(i.thousands_sep)&&(e=e.replace(",","")),u.empty(e)&&(e=0),u.numberFormat(e,2,i.decimal_sep,i.thousands_sep)},getCurrency:function(){var e={code:"USD",thousands_sep:",",decimal_sep:".",symbol:"$",symbol_pos:"left"};return"undefined"!=typeof evf_settings.currency_code&&(e.code=evf_settings.currency_code),"undefined"!=typeof evf_settings.currency_thousands&&(e.thousands_sep=evf_settings.currency_thousands),"undefined"!=typeof evf_settings.currency_decimal&&(e.decimal_sep=evf_settings.currency_decimal),"undefined"!=typeof evf_settings.currency_symbol&&(e.symbol=evf_settings.currency_symbol),"undefined"!=typeof evf_settings.currency_symbol_pos&&(e.symbol_pos=evf_settings.currency_symbol_pos),e},numberFormat:function(e,t,i,a){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var n,s,e=isFinite(+e)?+e:0,t=isFinite(+t)?Math.abs(t):0,a=void 0===a?",":a,i=void 0===i?".":i,r=(t?(r=e,n=t,s=Math.pow(10,n),""+(Math.round(r*s)/s).toFixed(n)):""+Math.round(e)).split(".");return 3<r[0].length&&(r[0]=r[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(r[1]||"").length<t&&(r[1]=r[1]||"",r[1]+=new Array(t-r[1].length+1).join("0")),r.join(i)},empty:function(e){for(var t,i=[void 0,null,!1,0,"","0"],a=0,n=i.length;a<n;a++)if(e===i[a])return!0;if("object"!=typeof e)return!1;for(t in e)if(e.hasOwnProperty(t))return!1;return!0},init_colorpicker:function(){h(".evf-color-picker").each(function(){var e=h(this),t=h(this).find(".evf-cp-input");h(this).find(".evf-color-picker-bg").css("height",h(this).find("input[type=text]").css("height")),t.on("input",function(){h(this).parent(".evf-color-picker-bg").css({backgroundColor:h(this).val()}),e.find("input[type=text]").val(h(this).val()),t.attr("value",h(this).val())}),h(this).find("input[type=text]").on("input change paste",function(){var e=h(this).val();e=(e=/^#/.test(e)?e.replace(/^#[^0-9A-F]/gi,"").substring(0,7):e.replace(/[^0-9A-F]/gi,"").substring(0,6)).length&&!/^#/.test(e)?"#"+e:e,h(this).val(e),4===e.length||7===e.length?(h(this).prev(".evf-color-picker-bg").css("background",e),h(this).prev(".evf-color-picker-bg").removeClass("no-color")):(h(this).prev(".evf-color-picker-bg").prop("style").removeProperty("background"),h(this).prev(".evf-color-picker-bg").addClass("no-color")),h.validator.addMethod("hexColorCode",function(e,t,i){var a=e.length;return this.optional(t)||4===a||7===a&&a&&/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},everest_forms_params.i18n_color_code),jQuery(this).rules("add",{hexColorCode:[]})})})},init_lookupField:function(){h(document).on("change",".evf-lookup",function(e){var t,i=h(this),a=i.closest(".everest-form"),n=a.attr("data-formid"),s=a.find(".evf-frontend-row").find(".evf-frontend-grid").find(".input-text"),a=a.find(".evf-submit-container ").find(".evf-submit")[0],r=(s.push(a),{}),o=(r.filterby=[],s.each(function(e,t){var i=h(t).attr("id");void 0!==h(t).data("filter-by")&&""!=h(t).data("filter-by")&&(r.filterby[i]=[h(t).data("filter-by").split(" "),h(t).data("lookup-field-name")])}),r.filterby),l=i.attr("id").split("_")[1],a=i.data("lookup-form-id"),s=i.data("lookup-field-name"),d={};for(t in o){var f=0,c={},p=o[t];if(p[0].includes(l))for(var u of p[0]){id="evf-"+n+"-field_"+u;var m=h(document).find("#"+id).val(),v=p[1];null!==m&&(++f,c[u]={elValue:m,lookupField:v})}f===p[0].length&&(d[t]=c)}d.length<0||h.ajax({url:evf_lookup_field_params.ajax_url,type:"POST",data:{action:"everest_forms_lookup_field_filters",security:evf_lookup_field_params.ajax_everest_forms_lookup_nonce,lookupformid:a,lookupformfield:s,filterArr:d},beforeSend:function(){h(document).find(".everest-forms-submit-button").prop("disabled",!0)},success:function(e){if(h(document).find(".everest-forms-submit-button").prop("disabled",!1),!0===e.success)for(var t in e.data)if(displayFormat=h(document).find("#"+t).data("display-format"),isMultiSelect=h(document).find("#"+t).attr("multiple"),"dropdown"===displayFormat){var i;i="multiple"===isMultiSelect?"":'<option value="">Choose value</option>';var a,n=[];for(a of e.data[t])for(var s of JSON.parse(a))n.includes(s)||n.push(s);for(s of n)i+='<option value="'+s+'">'+s+"</option>";h(document).find("#"+t).html(i)}}})})},updateProgress:function(){var s,i,e;h(document).find(".evf-field-progress").length&&(e=h("form.everest-form"),s=e.data("formid"),$fields=e.find(".evf-field-container").find(".evf-field").not(".evf-field-progress, .evf-field-payment-single, .evf-field-payment-total, .evf-field-payment-subtotal, .evf-field-hidden, .evf-field-title, .evf-field-html, .evf-field-divider, .evf-field-reset, .evf-field-captcha"),$field_values=[],h(document).find(".evf-field-payment-single").length&&h(document).find(".evf-field-payment-single").each(function(){($single_item_field=h(this)).find("input.evf-payment-price").hasClass("evf-payment-user-input")&&$fields.push($single_item_field[0])}),$fields.each(function(){var e,t,i=h(this),a=i.attr("class"),n=i.data("field-id"),a=a.match(/evf-field-(.*) form-row/i);switch(t="",a=null!==a?a[1]:"text"){case"checkbox":case"radio":case"payment-multiple":case"payment-checkbox":case"rating":case"yes-no":case"likert":case"scale-rating":i.hasClass("evf-has-error")||i.find("[name^=everest_forms]").each(function(){h(this).is(":checked")&&(t=h(this).val())});break;case"image-upload":case"file-upload":i.hasClass("evf-has-error")||(t=i.find(`#everest-forms-${s}-field_`+n).val());break;case"signature":i.hasClass("evf-has-error")||(e=i.find("#evf-signature-img-input-"+n).val())&&(t=e);break;case"wysiwyg":i.hasClass("evf-has-error")||(t=tinyMCE.get(`evf-${s}-field_`+n).getContent());break;case"credit-card":i.hasClass("evf-has-error")||!h("#evf-form-"+s).find(".everest-forms-gateway[data-gateway='stripe']").hasClass("StripeElement--empty")&&h("#evf-form-"+s).find(".evf-field-credit-card").is(":visible")&&(t="not empty");break;case"range-slider":i.hasClass("evf-has-error")||(e=h("#evf-slider-input-"+n).val(),parseFloat(e)&&(t=h("#evf-slider-input-"+n).val()));break;case"payment-single":i.hasClass("evf-has-error")||(e=h(`#evf-${s}-field_`+n).val(),parseFloat(e)&&(t=h(`#evf-${s}-field_`+n).val()));break;case"privacy-policy":i.hasClass("evf-has-error")||h(`#evf-${s}-field_`+n).is(":checked")&&(t=h(`#evf-${s}-field_`+n).val());break;case"payment-total":case"payment-subtotal":case"hidden":case"progress":break;default:i.hasClass("evf-has-error")||(t=h(`#evf-${s}-field_`+n).val())}$field_values.push(t)}),e=$field_values.length,i=0,h.each($field_values,function(e,t){t&&i++}),e=Math.ceil(i/e*100),h(document).find(".evf-field-progress").find("progress.evf-progress, input.input-text").val(e).next(".evf-progress-percentage").text(e+"%"),99<parseInt(e)?h(document).find(".evf-field-progress").find("progress").addClass("evf-progress-success"):h(document).find(".evf-field-progress").find("progress").removeClass("evf-progress-success"))}};u.init(jQuery)});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.