PageSourceSearch

https://bauroc.lt/plugins/everest-forms-pro/assets/js/frontend/everest-forms-pro.min.js?ver=1.4.5

js bauroc.lt collected 2026-10-10 01:52:35 UTC 13,128 bytes, 1 lines download raw bytes

1jQuery(function(o){if("undefined"==typeof everest_forms_params)return!1;var a={init:function(){o(document).ready(a.ready);var e=o(".evf-single-item-price-hidden input[type=hidden]").length,t=o(".evf-field-payment-single input[type=text]").length,i=o(".evf-single-item-price").find("span").length;0!==e&&0==t&&0==i?(o(".evf-single-item-price-hidden input[type=hidden]").closest(".evf-field-payment-single").hide(),o(".evf-field-payment-total").hide()):(o(".evf-single-item-price-hidden input[type=hidden]").closest(".evf-field-payment-single").hide(),o(".evf-field-payment-total").show()),this.init_range_sliders(),this.load_validation(),a.bindUIActions(),this.init_privacy_policy_fields()},ready:function(){a.loadPayments(),a.loadPhoneField(),a.loadCountryFlags()},init_privacy_policy_fields:function(){o(document.body).on("click",".evf-privacy-policy-local-page-link",function(e){e.preventDefault();var t=o(this).data("page-id");""!==t&&(e=o(this).closest(".evf-field"),o(this).hasClass("evf-page-expanded")?(o(this).removeClass("evf-page-expanded"),e.find(".evf-privacy-policy-local-page-content-"+t).slideUp()):(e.find(".evf-privacy-policy-local-page-content:visible").slideUp(),e.find(".evf-privacy-policy-local-page-content-"+t).slideDown(),e.find(".evf-privacy-policy-local-page-link").removeClass("evf-page-expanded"),o(this).addClass("evf-page-expanded")))})},init_range_sliders:function(){o(".evf-field.evf-field-range-slider").show(),o().ionRangeSlider&&o(".evf-field-range-slider").length&&(o(".evf-field-range-slider .evf-field-primary-input").ionRangeSlider({onFinish:function(e){e=e.input.closest(".evf-field");a.setPrefixPostfixTexts(null,null,e)}}).on("change",function(){var e=o(this).val();o(this).closest(".evf-field-range-slider").find(".evf-slider-input").val(e),a.setSliderColors(o(this).closest(".evf-field"))}),o(".evf-field-range-slider .evf-slider-input").on("input",function(){var e=o(this).val(),t=o(this).closest(".evf-field");o(this).closest(".evf-field-range-slider").find(".evf-field-primary-input").data("ionRangeSlider").update({from:e}),a.setPrefixPostfixTexts(null,null,t)}),o(".evf-field-range-slider .evf-range-slider-reset-icon").on("click",function(e){var t=o(this).closest(".evf-field"),i=t.find(".evf-field-primary-input").data("default");t.find(".evf-field-primary-input").data("ionRangeSlider").update({from:i}),a.setSliderColors(o(this).closest(".evf-field")),a.setPrefixPostfixTexts(null,null,t)}),o(".evf-field.evf-field-range-slider").each(function(){var e=o(this).closest(".evf-field");a.setSliderColors(this),a.setPrefixPostfixTexts(null,null,e)}))},setPrefixPostfixTexts:function(e,t,i){var n=null!==i&&undefined!==i;(e&&""!==e&&t&&""!==t||n)&&(t=(n=(i=n?i:o("#evf-"+t+"-field_"+e+"-container")).find(".evf-field-primary-input")).data("use-text-prefix-postfix"),e=n.data("prefix-text"),n=n.data("postfix-text"),!0===t&&(i.find("span.irs-min").html(e),i.find("span.irs-max").html(n)))},setSliderColors:function(e){var t=o(e).find(".evf-field-primary-input"),i=t.data("highlight_color"),t=t.data("track_color");a.setSliderHandleColor(e),o(e).find(".irs-bar").css("background",i),o(e).find(".irs-line").css("background",t)},setSliderHandleColor:function(e){if(e){var t=o(e),i=t.attr("id"),e=t.find(".evf-field-primary-input").data("skin"),n=t.find(".evf-field-primary-input").data("handle_color"),a="";switch(e){case"flat":t.find(".irs-handle i").first().css("background-color",n),t.find(".irs-single").css("background-color",n),a="#"+i+" .irs-single:before { border-top-color: "+n+"!important; }";break;case"big":t.find(".irs-single").css("background-color",n),t.find(".irs-single").css("background",n),t.find(".irs-handle").css("background-color",n),t.find(".irs-handle").css("background",n);break;case"modern":t.find(".irs-handle i").css("background",n),t.find(".irs-single").css("background-color",n),a="#"+i+" .irs-single:before { border-top-color: "+n+"!important; }";break;case"sharp":t.find(".irs-handle").css("background-color",n),t.find(".irs-handle i").first().css("border-top-color",n),t.find(".irs-single").css("background-color",n),a="#"+i+" .
1irs-single:before { border-top-color: "+n+"!important; }";break;case"round":case"square":t.find(".irs-handle").css("border-color",n),t.find(".irs-single").css("background-color",n),a="#"+i+" .irs-single:before { border-top-color: "+n+"!important; }"}o("body").find(".evf-range-slider-handle-style-tag-"+i).remove(),o("body").append('<style class="evf-range-slider-handle-style-tag-'+i+'" >'+a+"</style>")}},load_validation:function(){if("undefined"==typeof o.fn.validate)return!1;o.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),o.validator.addMethod("maxsize",function(e,t,i){var n,a,s=i,i=this.optional(t);if(i)return i;if(t.files&&t.files.length)for(n=0,a=t.files.length;n<a;n++)if(t.files[n].size>s)return!1;return!0},everest_forms_params.i18n_messages_filesize),o.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 o.fn.intlTelInput&&o.validator.addMethod("smart-phone-field",function(e,t){return!e.match(/[^\d()\-+\s]/)&&(this.optional(t)||o(t).intlTelInput("isValidNumber"))},everest_forms_params.i18n_messages_phone)},loadPayments:function(){o(".evf-payment-total").each(function(e,t){a.amountTotal(this)})},loadPhoneField:function(){var e,t,n={};if("undefined"==typeof o.fn.intlTelInput)return!1;"yes"!==everest_forms_params.disable_user_details&&(n.geoIpLookup=a.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:""),n.initialCountry="yes"===everest_forms_params.disable_user_details&&t?t:"auto",o(".evf-smart-phone-field").each(function(e,t){var i=o(t);n.hiddenInput=i.closest(".evf-field-phone").data("field-id"),n.utilsScript=everest_forms_pro_params.plugin_url+"assets/js/intlTelInput/utils.js",i.intlTelInput(n);t=i.attr("name");i.attr("name",t+"[phone_field]"),i.blur(function(){i.intlTelInput("isValidNumber")&&i.siblings('input[type="hidden"]').val(i.intlTelInput("getNumber"))})})},loadCountryFlags:function(){"undefined"!=typeof o.fn.selectWoo&&(o.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?(t=e[0],i=this.$selection.find(".select2-selection__rendered"),e=this.display(t,i),i.empty().append(e),i.prop("title",t.title||t.text)):this.clear()},t}),o("select.evf-country-flag-selector:visible").each(function(){var e=o.extend({placeholder:o(this).attr("placeholder")||"",selectionAdapter:o.fn.selectWoo.amd.require("evfCountrySelectionAdapter"),templateResult:a.getFormattedCountryFlags,templateSelection:a.getFormattedCountryFlags},{language:{noResults:function(){return everest_forms_params.i18n_no_countries}}});o(this).selectWoo(e)}))},getFormattedCountryFlags:function(e){return e.id?o('<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,n=["language","browserLanguage","systemLanguage","userLanguage"];if(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<n.length;e++)if((t=i[n[e]])&&t.length)return t;return""},currentIpToCountry:function(i){o.get("https://ipapi.co/json").always(function(e){var t=e&&e.country?e.country:"";t||(t=-1<(e=a.getFirstBrowserLanguage()).indexOf("-")?e.split("-").pop():""),i(t)})},bindUIActions:function(){o(document).on("change input",".evf-payment-price",function(){a.amountTotal(this,!0)}),o(document.body).on("conditional_show conditional_hide",function(e,t){t=o(t).find(".evf-payment-price");o(t).length&&a.amountTotal(t,!0)}),o(document).on("input",".evf-payment-user-input",function(){var e=o(this),t=e.val();e.val(t.replace(/[^0-9.,]/g,""))}),o(document).on("focusout",".evf-payment-user-input",function(){var e=o(this),t=e.val(),t=
1a.amountSanitize(t),t=a.amountFormat(t);e.val(t)}),o(".everest-forms-field-rating").hover(function(){o(this).parent().find(".everest-forms-field-rating").removeClass("selected hover"),o(this).prevAll().addBack().addClass("hover")},function(){o(this).parent().find(".everest-forms-field-rating").removeClass("selected hover"),o(this).parent().find("input:checked").parent().prevAll().addBack().addClass("selected")}),o(document).on("change",".everest-forms-field-rating input",function(){var e=o(this);e.closest(".everest-forms-field-rating-container").find(".everest-forms-field-rating").removeClass("hover selected"),e.parent().prevAll().addBack().addClass("selected")}),o(document).ready(function(){o(".everest-forms-field-rating input:checked").trigger("change")}),o(document).on("click",".toggle-password",function(){var e=o(this),t=o(e.attr("toggle"));e.toggleClass("dashicons-visibility"),"password"===t.attr("type")?t.attr("type","text"):t.attr("type","password")})},amountTotal:function(e,t){t=t||!1;var s=o(e).closest(".everest-form"),r=0,i=0,n=a.getCurrency();s.find('.evf-field .evf-payment-price:enabled, .evf-field .evf-single-item-price-hidden input[type="hidden"]:enabled').each(function(e,t){var i=o(this),n=0;"text"===i.attr("type")||"hidden"===i.attr("type")?n=i.val():"radio"!==i.attr("type")&&"checkbox"!==i.attr("type")||!i.is(":checked")?i.is("select")&&
10<i.find("option:selected").length&&(n=i.find("option:selected").data("amount")):n=i.data("amount"),a.empty(n)||(n=a.amountSanitize(n),r=Number(r)+Number(n))}),s.find(".evf-payment-quantity").length&&s.find(".evf-payment-quantity").each(function(e,t){var i,n,a;0<o(t).val()&&(form_id=s.data("formid"),map_field_id=o(t).data("map_field"),$mapped_field=o("#evf-"+form_id+"-field_"+map_field_id),($mapped_field.is(".evf-payment-price")&&$mapped_field.is(":enabled")||$mapped_field.find(".evf-payment-price").is(":enabled"))&&(i=$mapped_field.val().replace(",","."),n=o(t).val(),$mapped_field.closest(".evf-field").is(".evf-field-payment-multiple")?$mapped_field.find(".evf-payment-price:checked").length&&(a=$mapped_field.find(".evf-payment-price:checked").data("amount"),isNaN(parseFloat(a))||(i=parseFloat(a),r-=i,r+=n*i)):$mapped_field.closest(".evf-field").is(".evf-field-payment-checkbox")?$mapped_field.find(".evf-payment-price:checked").each(function(){a=o(this).data("amount"),isNaN(parseFloat(a))||(i=parseFloat(a),r-=i,r+=n*i)}):isNaN(parseFloat(i))||(i=parseFloat(i),r-=i,r+=n*i)))}),e=a.amountFormat(r),i="left"===n.symbol_pos?n.symbol+" "+e:e+" "+n.symbol,s.find(".evf-payment-total").each(function(){"hidden"===o(this).attr("type")||"text"===o(this).attr("type")?(o(this).val(i),"text"===o(this).attr("type")&&t&&s.data("validator")&&o(this).valid()):o(this).text(i)})},amountSanitize:function(e){var t=a.getCurrency();return e=e.toString().replace(/[^0-9.,]/g,""),","===t.decimal_sep&&-1!==e.indexOf(t.decimal_sep)?("."===t.thousands_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,"")),a.numberFormat(e,2,".","")},amountFormat:function(e){var t,i=a.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(",","")),a.empty(e)&&(e=0),a.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,n){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var a=isFinite(+e)?+e:0,s=isFinite(+t)?Math.abs(t):0,r=void 0===n?",":n,e=void 0===i?".":i,a=(s?(t=a,n=s,i=Math.pow(10,n),""+(Math.round(t*i)/i).toFixed(n)):""+Math.round(a)).split(".");return 3<a[0].length&&(a[0]=a[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,r)),(a[1]||"").length<s&&(a[1]=a[1]||"",a[1]+=new Array(s-a[1].length+1).join("0")),a.join(e)},empty:function(e){for(var t,i=[void 0,null,!1,0,"","0"],n=0,a=i.length;n<a;n++)if(e===i[n])return!0;if("object"!=typeof e)return!1;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}};a.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.