PageSourceSearch

https://bikotels.com/wp-content/plugins/dhvc-form/assets/js/script.min.js?ver=2.4.20

js bikotels.com collected 2026-10-04 13:29:21 UTC 18,390 bytes, 1 lines download raw bytes

1!function($){"use strict";$(document).ready(function(){$("select.dhvc-select-with-placeholder").on("change",function(){""==$(this).val()?$(this).addClass("dhvc-select-not-selected"):$(this).removeClass("dhvc-select-not-selected")}).trigger("change"),$("[data-auto-open].dhvc-form-popup").each(function(){var e,a,t=$(this),o=t.attr("id"),r=t.data("open-delay"),c=t.data("auto-close"),i=t.data("close-delay"),n=t.data("one-time");clearTimeout(void 0),clearTimeout(a),e=setTimeout(function(){clearTimeout(a),n?$.cookie(o)||($(".dhvc-form-pop-overlay").show(),$("body").addClass("dhvc-form-opening"),t.show(),$.cookie(o,1,{expires:3600,path:"/"})):($.cookie(o,0,{expires:-1}),$(".dhvc-form-pop-overlay").show(),t.show())},r),c&&(a=setTimeout(function(){clearTimeout(e),$(".dhvc-form-pop-overlay").hide(),$("body").addClass("dhvc-form-opening"),t.hide()},i))}),$(document).on("click",'[data-toggle="dhvcformpopup"],[rel="dhvcformpopup"],[href^="#dhvcformpopup-"]',function(e){var a;e.stopPropagation(),e.preventDefault();var t=$(this),o=$(t.attr("data-target")||(a=t.attr("href"))&&a.replace(/.*(?=#[^\s]+$)/,""));t.is("a")&&e.preventDefault(),$(".dhvc-form-pop-overlay").show(),$("body").addClass("dhvc-form-opening"),o.show(),o.off("
1click").on("click",function(e){e.target===e.currentTarget&&($(".dhvc-form-pop-overlay").hide(),$("body").removeClass("dhvc-form-opening"),o.hide())})}),$(document).on("click",".dhvc-form-popup-close",function(e){$(".dhvc-form-pop-overlay").hide(),$("body").removeClass("dhvc-form-opening"),$(this).closest(".dhvc-form-popup").hide()}),$(".dhvc-form-slider-control").each(function(){var t=$(this);t.slider({min:t.data("min"),max:t.data("max"),step:t.data("step"),range:"range"==t.data("type")||"min",slide:function(e,a){"range"==t.data("type")?(t.closest(".dhvc-form-group").find(".dhvc-form-slider-value-from").text(a.values[0]),t.closest(".dhvc-form-group").find(".dhvc-form-slider-value-to").text(a.values[1]),t.closest(".dhvc-form-group").find('input[type="hidden"]').val(a.values[0]+"-"+a.values[1]).trigger("change")):(t.closest(".dhvc-form-group").find(".dhvc-form-slider-value").text(a.value),t.closest(".dhvc-form-group").find('input[type="hidden"]').val(a.value).trigger("change"))}}),"range"==t.data("type")?t.slider("values",[0,t.data("minmax")]):t.slider("value",t.data("value"))});var basename=function(e,a){var t=e,e=t.charAt(t.length-1);return"/"!==e&&"\\"!==e||(t=t.slice(0,-1)),t=t.replace(/^.*[\/\\]/g,""),"string"==typeof a&&t.substr(t.length-a.length)==a&&(t=t.substr(0,t.length-a.length)),t},operators={">":function(e,a){return a<e},"=":function(e,a){return e==a},"<":function(e,a){return e<a}},get_field_val=function(e,a){a=$(a),e=$(e);return e.is(":checkbox")?$.map(a.find("[data-conditional-name="+e.data("conditional-name")+"].dhvc-form-value:checked"),function(e){return $(e).val()}):(e.is(":radio")?a.find("[data-conditional-name="+e.data("conditional-name")+"].dhvc-form-value:checked"):e).val()},conditional_hook=function(e){var a=$(e.currentTarget),o=a.closest("form"),r=dhvcformConfig.container_class,c=a.closest(r),e=a.data("conditional"),t=[],i=null,n=get_field_val(a,o);return(a.is(":checkbox")?!o.find("[data-conditional-name="+a.data("conditional-name")+"].dhvc-form-value:checked").length:a.is(":radio")?!o.find("[data-conditional-name="+a.data("conditional-name")+"].dhvc-form-value:checked").val():!n.length)?($.each(e,function(e,a){a=a.element.split(",");$.each(a,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).addClass("dhvc-form-hidden"),a.trigger("change")})}),$.each(e,function(e,a){var t=a.element.split(",");"is_empty"==a.type&&("hide"==a.action?$.each(t,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).addClass("dhvc-form-hidden"),a.trigger("change")}):$.each(t,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).removeClass("dhvc-form-hidden"),a.trigger("change")}))})):($.isNumeric(n)&&(n=parseInt(n)),$.each(e,function(e,a){a.value==n?i=a:t.push(a)}),null!=i&&(t.push(i),e=t),$.each(e,function(e,a){var t=a.element.split(",");c.hasClass("dhvc-form-hidden")?$.each(t,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).addClass("dhvc-form-hidden"),a.trigger("change")}):"not_empty"==a.type?"hide"==a.action?$.each(t,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).addClass("dhvc-form-hidden"),a.trigger("change")}):$.each(t,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).removeClass("dhvc-form-hidden"),a.trigger("change")}):"is_empty"==a.type?"hide"==a.action?$.each(t,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).removeClass("dhvc-form-hidden"),a.trigger("change")}):$.each(t,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).addClass("dhvc-form-hidden"),a.trigger("change")}):Array.isArray(n)?-1<$.inArray(a.value,n)?"hide"==a.action?$.each(t,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).addClass("dhvc-form-hidden"),a.trigger("change")}):$.each(t,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).removeClass("dhvc-form-hidden"),a.trigger("change")}):"hide"==a.action?$.each(t,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).removeClass("dhvc-form-hidden"),a.trigger("change")}):$.each(t,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).addClass("dhvc-form-hidden"),a.trigger("change")}
1):($.isNumeric(n)&&(n=parseInt(n)),$.isNumeric(a.value)&&"0"!=a.value&&(a.value=parseInt(a.value)),"not_empty"!=a.type&&"is_empty"!=a.type&&operators[a.type](n,a.value)?"hide"==a.action?$.each(t,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).addClass("dhvc-form-hidden"),a.trigger("change")}):$.each(t,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).removeClass("dhvc-form-hidden"),a.trigger("change")}):"hide"==a.action?$.each(t,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).removeClass("dhvc-form-hidden"),a.trigger("change")}):$.each(t,function(e,a){a=o.find(".dhvc-form-control-"+a);a.closest(r).addClass("dhvc-form-hidden"),a.trigger("change")}))})),!0},update_hidden_fields=function(e){var e=$(e),a=[];e.find(".dhvc-form-value,.dhvc-form-recaptcha").filter(function(){var e=$(this).attr("data-name")||this.name;return!(0<=$.inArray(e,a)||$(this).is(":visible"))&&(a.push(e),!0)}),e.find("input[name=_dhvc_form_hidden_fields]").val(JSON.stringify(a))},conditional_form=function(e,a){e=$(e).find(".dhvc-form-conditional"),a=a||!1;
1$.each(e,function(){var e=$(this).find("[data-conditional].dhvc-form-value");!1===a&&$(e).on("keyup change",function(e){conditional_hook(e)}),$.each(e,function(){var e=$(this);conditional_hook({currentTarget:e})})})},form_price_format=function(e,a){var t=$(e),e=(t.data("currency"),t.data("currency_symbol"));return t.data("price_format").replace("%s",e).replace("%v",a)},form_math=function(form){var $form=$(form),maths=[];$(".dhvc-form-math",$form).each(function(){var match,match_value=0,$this=$(this),pattern=/\[(.*?)\]/g,operators=$this.data("value-math"),match_value_formated;if(!$.isNumeric(operators)){if(""===operators.replace(/[^.*()\-+\/]+/g,""))var $el=$("[data-field-name="+operators+"]",$form),field_value=parseFloat(get_field_val($el,$form)),field_value=isNaN(field_value)?0:field_value,match_value=field_value;else{var fields=operators.split(/[*()\-+\/]/);$.each(fields,function(e,a){var t;""==a.trim()||(t=$("[data-field-name="+a+"]",$form)).length&&(t=parseFloat(get_field_val(t,$form)),t=isNaN(t)?0:t,a=new RegExp(a,"g"),operators=operators.replace(a,t))});try{match_value=parseFloat(eval(operators).toFixed(2))}catch(e){match_value=0}}$this.hasClass("paypal-item-price-value")?(match_value_formated=form_price_format($form,match_value),$this.html(match_value_formated)):$this.html(match_value),$this.data("result-math",match_value),$(document.body).trigger("dhvc_form_math_change",[$form])}})};if($(document.body).on("dhvc_form_math_change",function(e,a){var t=0,a=$(a);$(".paypal-item-price-value",a).each(function(){t+=parseFloat($(this).data("result-math"))}),$(".paypal-total-value",a).html(form_price_format(a,t))}),"function"==typeof flatpickr){const lang=flatpickr.l10ns[dhvcformConfig.datetimepicker_lang]||flatpickr.l10ns.default;flatpickr.localize(lang)}var form_submit_loading=function(e,a){a=a||!1;var t=$(e),o=t.find(".dhvc-form-submit"),e=t.find(".dhvc-form-submit-label"),t=t.find(".dhvc-form-submit-spinner");a?(o.removeAttr("disabled"),e.removeClass("dhvc-form-submit-label-hidden"),t.hide()):(o.attr("disabled","disabled"),e.addClass("dhvc-form-submit-label-hidden"),t.show())};$(".dhvc-form-datepicker").length&&$(".dhvc-form-datepicker").each(function(){var e=$
1(this),a=e.data("min-date"),t=e.data("max-date"),a={disableMobile:!0,dateFormat:dhvcformConfig.date_format,minDate:a?"0"==a?"today":a:null,maxDate:t?"0"==t?"today":t:null,locale:{firstDayOfWeek:parseInt(dhvcformConfig.dayofweekstart)}},t=e.data("disable-weekend");t&&(a.disable="sat"===t?[function(e){return 6===e.getDay()}]:"sun"===t?[function(e){return 0===e.getDay()}]:[function(e){return 0===e.getDay()||6===e.getDay()}]),e.flatpickr(a)}),$(".dhvc-form-timepicker").length&&$(".dhvc-form-timepicker").each(function(){var e=$(this),a=e.data("min-time"),t=e.data("max-time");e.flatpickr({disableMobile:!0,noCalendar:!0,dateFormat:dhvcformConfig.time_format,enableTime:!0,minTime:a?"0"==a?"today":a:null,maxTime:t?"0"==t?"today":t:null})}),$(".dhvc-form-datetimepicker").length&&$(".dhvc-form-datetimepicker").each(function(){var e=$(this),a=e.data("min-date"),t=e.data("max-date"),a={disableMobile:!0,enableTime:!0,dateFormat:dhvcformConfig.date_format+" "+dhvcformConfig.time_format,minDate:a?"0"==a?"today":a:null,maxDate:t?"0"==t?"today":t:null,locale:{firstDayOfWeek:parseInt(dhvcformConfig.dayofweekstart)}},t=e.data("disable-weekend");t&&(a.disable="sat"===t?[function(e){return 6===e.getDay()}]:"sun"===t?[function(e){return 0===e.getDay()}]:[function(e){return 0===e.getDay()||6===e.getDay()}]),e.flatpickr(a)}),$(".dhvc-form-control[data-range_field]").each(function(){var r=$(this),e=r.closest("form"),a=r.data("range_field");$('.dhvc-form-control[data-field-name="'+a+'"]',e)[0]._flatpickr.config.onValueUpdate.push(function(e,a,t){var o=e[0],e=new Date(o.getFullYear(),o.getMonth(),o.getDate()+parseInt(r.data("range_field_start_current")),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds());"yes"===r.data("range_field_set_value")&&(o=r.hasClass("dhvc-form-datetimepicker")?dhvcformConfig.date_format+" "+dhvcformConfig.time_format:dhvcformConfig.date_format,r[0]._flatpickr.setDate(e,!0,o)),r[0]._flatpickr.set("minDate",e)})});var initForm=function(form){var $form=$(form),submiting=!1,submitBtn=$form.find(".dhvc-form-submit");$(".dhvc-form-file",$form).find("input[type=file]").on("change",function(){var e=$
1(this).val();$(this).closest("label").find(".dhvc-form-control").prop("value",basename(e)),$(this).closest("label").find(".dhvc-form-file-name").text(basename(e)).removeClass("dhvc-form-file-name--placeholder")}),$(".dhvc-form-file",$form).each(function(){$(this).find('input[type="text"]').css({"padding-right":$(this).find(".dhvc-form-file-button").outerWidth(!0)+"px"}),$(this).find('input[type="text"]').on("click",function(){$(this).closest("label").trigger("click")}),$(this).find(".dhvc-form-file-name").css({"padding-right":$(this).find(".dhvc-form-file-button").outerWidth(!0)+"px"}),$(this).find(".dhvc-form-file-name").on("click",function(){$(this).closest("label").trigger("click")})}),$().tooltip&&$(".dhvc-form-rate .dhvc-form-rate-star",$form).tooltip({html:!0,container:$("body")});var clearResponse=function(e){e=$(e);e.removeClass("invalid spam sent failed"),$("[aria-invalid]",e).attr("aria-invalid","false"),$(".dhvc-form-error",e).remove(),$(".dhvc-form-control",e).removeClass("dhvc-form-not-valid"),$(".dhvc-form-message",e.parent()).hide().empty().removeAttr("role").removeClass("dhvc-form-validation-errors dhvc-form-spam dhvc-form-errors dhvc-form-success")},refill=function(e,a){var t,o,e=$(e);a.captcha&&(t=e,o=a.captcha,$.each(o,function(e,a){t.find(':input[name="'+e+'"]').val(""),t.find("img.dhvc-form-captcha-img-"+e).attr("src",a);a=/([0-9]+)\.(png|gif|jpeg)$/.exec(a);t.find('input:hidden[name="_dhvc_form_captcha_challenge_'+e+'"]').attr("value",a[1])}))},notValidTip=function(e,a){var t;""!=a&&(t=$(e),$(".dhvc-form-error",t).remove(),(e=$('<span role="alert" class="dhvc-form-error"></span>')).text(a),!t.is(":radio")&&!t.is(":checkbox")&&"recaptcha"==t.attr("data-dhvcform-recaptcha")?e.appendTo(t.closest(".dhvc-form-group")):e.appendTo(t.parent().parent()))},form_step_click_init=function(e){var o=$(e);$(".dhvc-form-step",o).on("click",function(e){var a,t=$(this);e.stopPropagation(),e.preventDefault(),t.hasClass("actived")&&($(".dhvc-form-message.dhvc-form-success",o.parent()).hide().empty().removeAttr("role").removeClass("dhvc-form-validation-errors dhvc-form-spam dhvc-form-errors dhvc-form-success"),a=parseInt($(this).data("step-index")),parseInt($("#_dhvc_form_current_step",o).val()),t.siblings(".dhvc-form-step.active").removeClass("active").addClass("actived"),t.removeClass("actived").addClass("active"),$(".dhvc-form-step-content",o).removeClass("active"),$(".dhvc-form-step-content-"+a,o).addClass("active"),$("#_dhvc_form_current_step",o).val(a),$(".dhvc-form-value",o).on("input.dhvcform change.dhvcform",function(){var e=$
1(this).closest(".dhvc-form-step-content").data("content_step");o.find("[data-step-index="+e+"]").nextAll().removeClass("active actived"),$("#_dhvc_form_current_step",o).val(a)}))})};form_step_click_init($form);var ajaxSuccess=function(data,status,xhr,$form){var $message=$(".dhvc-form-message",$form.parent()),step_final;switch(data.status){case"validation_failed":var firstInvalidFields=null;$.each(data.invalid_fields,function(e,a){var t=$(a.into,$form);firstInvalidFields=firstInvalidFields||t,notValidTip(t,a.reason),$(".dhvc-form-control",t.closest(".dhvc-form-group")).addClass("dhvc-form-not-valid"),$("[aria-invalid]",t).attr("aria-invalid","true")});try{firstInvalidFields.focus().trigger("focusin")}catch(e){}$message.addClass("dhvc-form-validation-errors"),$form.addClass("invalid"),$(document.body).trigger("dhvc_form_invalid",[$form,data]);break;case"success":if($form.find("#_dhvc_form_steps").length&&(step_final='<div class="dhvc-form-steps-final"></div>',$form.find(".dhvc-form-step-contents").append($(step_final))),data.onOk&&$.each(data.onOk,function(i,n){eval(n)}),$message.addClass("dhvc-form-success"),$(document.body).trigger("dhvc_form_success",[$form,data]),$form.hasClass("dhvcform-action-external-url"))return $form.find("._dhvc_form_ignore_field").each(function(){$(this).remove()}),void $form.submit();break;case"spam":$message.addClass("dhvc-form-spam"),$(document.body).trigger("dhvc_form_spam",[$form,data]);break;case"upload_failed":$message.addClass("dhvc-form-errors"),$(document.body).trigger("dhvc_form_upload_failed",[$form,data]);break;case"form_not_exist":$message.addClass("dhvc-form-errors"),$(document.body).trigger("dhvc_form_not_exist",[$form,data]);break;case"action_failed":$message.addClass("dhvc-form-errors"),$(document.body).trigger("dhvc_form_action_failed",[$form,data]);break;case"call_action_failed":$message.addClass("dhvc-form-errors"),$(document.body).trigger("dhvc_form_call_action_failed",[$form,data]);break;case"next_step":var $current_step_input=$("#_dhvc_form_current_step",$form),$current_step=parseInt($current_step_input.val()),$all_steps=parseInt($("#_dhvc_form_steps",$form).val()),$next_step=$current_step+1;$next_step<=$all_steps&&($(".dhvc-form-steps",$form).find(".active").removeClass("active"),$(".dhvc-form-step-"+$current_step,$form).addClass("actived"),$(".dhvc-form-step-"+$next_step,$form).removeClass("actived").addClass("active"),$(".dhvc-form-step-content",$form).removeClass("active"),$(".dhvc-form-step-content-"+$next_step,$form).addClass("active"),$("#_dhvc_form_current_step",$form).val($next_step))}refill($form,data),$(document.body).trigger("dhvc_form_submit",[$form,data]),"success"===data.status&&($form.each(function(){this.reset()}),conditional_form($form,!0),data.refresh?window.location.reload():data.redirect&&(window.location=data.redirect)),data.redirect||""==data.message||($message.html(data.message),$message.attr("role","alert"),$form.find(".dhvc-form-steps-final").length?($(".dhvc-form-step-content").each(function(){$(this).remove()}),$form.find(".dhvc-form-steps-final").html($message.clone()),$message.remove()):$message.slideDown("fast"))};$form.on("submit",function(e){var a;submiting||"function"!=typeof window.FormData||(submiting=!0,clearResponse($form),update_hidden_fields($form),a=new FormData($form.get(0)),$.ajax({type:"POST",url:dhvcformConfig.ajax_submit_url,data:a,dataType:"json",processData:!1,contentType:!1,beforeSend:function(){$(document.body).trigger("dhvc_form_before_submit",[$form,submitBtn]),form_submit_loading($form,!1)}}).done(function(e,a,t){$(document.body).trigger("dhvc_form_after_submit",[$(form),submitBtn,e]),ajaxSuccess(e,a,t,$form),form_submit_loading($form,!(submiting=!1))}).fail(function(e,a,t){form_submit_loading($form,!(submiting=!1))}),e.preventDefault())})},woocommerce_formart_price=function(e){return"undefined"==typeof dhwc_form_product_price_params?e:accounting.formatMoney(e,{symbol:dhwc_form_product_price_params.currency_format_symbol,decimal:dhwc_form_product_price_params.currency_format_decimal_sep,thousand:dhwc_form_product_price_params.currency_format_thousand_sep,precision:dhwc_form_product_price_params.currency_format_num_decimals,format:dhwc_form_product_price_params.currency_format})};
1$("form.dhvcform").each(function(){var e=$(this);$(".dhvc-form-select--product select",e).each(function(){var t=$(this),e=t.closest("form"),o=$("input[name=product_price]",e),r=$(".dhvc_form_label div[data-name=product_image]",e),c=$("input[name=product_quantity]",e);r.data("html",r.html()),t.on("change",function(){var e=$("option:selected",t),a=e.data("price")?e.data("price"):0,a=parseFloat(a);c.val(1),o.val(woocommerce_formart_price(a)).data("base-price",a),e.data("image")?r.html(e.data("image")):r.html(r.data("html"))}),c.on("change",function(){var e=parseInt($(this).val());o.val(woocommerce_formart_price(e*parseFloat(o.data("base-price"))))})}),form_math(e),$(".dhvc-form-value",e).on("keyup change",function(e){form_math($(this).closest("form"))}),conditional_form(e),initForm(e)})})}(window.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.