PageSourceSearch

https://www.astratex.sk/Js/DetailVariantsByParameter.min.js?v=109

js astratex.sk collected 2026-09-26 06:02:14 UTC 24,945 bytes, 1 lines download raw bytes

1function CheckSingleVarintInQuickView(a){var e=document.querySelector(".quickviewsection .detail-variant7 select[name='ParamVariant1"+(a?"Couple":"")+"']"),t=document.querySelector(".quickviewsection .detail-variant7 ul.ParamVariant2");if(e&&t){var i=e.querySelectorAll("option"),r=t.querySelectorAll("input[type='radio'][name='ParamVariant2']");if(!(i.length>2||r.length>1)){i.item(1).selected=!0;var n=r.item(0);n.checked=!0,$(n).trigger("change")}}}function DetailChangeVariants(a,e,t){var i,r=t.is("#DetailForm")?RenderPriceFormat.Detail:t.is("#DetailRelated")?RenderPriceFormat.Other:RenderPriceFormat.DetailVariants,n=t.find("[name=code]").val().toString(),o=parseInt(t.find("[name=iditem]").val().toString());if(1===a){var l=e.val(),d=t.find(".detail-variant7 [name=ParamVariant2]:checked").val();void 0==d&&(d=0),EshopService("CommodityParamVariantGet",{commodityId:o,commodityCode:n,ParamValueId1:l,ParamValueId2:0,ParamValueId2Selected:d},!0,function(a){t.find(".detail-variant7 #ParamVariant2").html(a.Value),pageType.DetailPage&&"DetailForm"===t.attr("id")&&$(".detail__infoForm").length&&$(".detail__infoForm").find(".detail-variant7 #ParamVariant2").html(a.Value),0==d||void 0==t.find(".detail-variant7 #ParamVariant2 .active").val()?pageType.DetailPage&&null!=gQsColor&&1===$('#DetailForm #ParamVariant2 [data-color-filter="'+gQsColor+'"]').length?$("#DetailForm #ParamVariant2 input[data-color-filter='"+gQsColor+"']").trigger("change"):pageType.DetailPage&&null!=gQsColor&&1===$("#DetailForm #ParamVariant2 input[value-text='"+gQsColor+"']").length?$("#DetailForm #ParamVariant2 input[value-text='"+gQsColor+"']").trigger("change"):pageType.DetailPage&&null!=gQsColor&&1===$("#DetailForm #ParamVariant2 input[value-text-clear='"+gQsColor+"']").length?$("#DetailForm #ParamVariant2 input[value-text-clear='"+gQsColor+"']").trigger("change"):t.find(".detail-variant7 #ParamVariant2  input[name=ParamVariant2]:first").trigger("change"):t.find(".detail-variant7 #ParamVariant2 .active input[name=ParamVariant2]:first").trigger("change"),t.find(".detail-variant7 #ParamVariant2 .active img:first").trigger("click")})}if(2===a||3===a){var l=t.find(".detail-variant7 select[name=ParamVariant1]").val(),c=void 0===t.find(".detail-variant7 #ParamVariant1Couple").val()?0:t.find(".detail-variant7 #ParamVariant1Couple").val(),s=e.val();if(void 0!==e&&e.prop("checked",!0),3===a&&void 0==(s=t.find(".detail-variant7 [name=ParamVariant2]:checked").val()))return;if(t.find(".detail-variant7 .ParamVariant2 [name=ParamVariant2][value!="+s+"]").parent().find("img.active").removeClass("active"),t.find(".detail-variant7 .ParamVariant2 li.active").removeClass("active"),t.find(".detail-variant7 .ParamVariant2 [name=ParamVariant2][value="+s+"]").parent().parent().addClass("active"),pageType.DetailPage&&"DetailForm"===t.attr("id")&&$(".detail__infoForm").length&&($(".detail__infoForm").find(".detail-variant7 #ParamVariant2 li.active").removeClass("active"),$(".detail__infoForm").find(".detail-variant7 .ParamVariant2 [name=ParamVariant2][value="+s+"]").parent().parent().addClass("active")),""!==l){if(lastCallAvailCountPv1==l&&lastCallAvailCountPv2==s&&lastCallAvailCountPvc1==c)return;lastCallAvailCountPv1=Number(l),lastCallAvailCountPv2=Number(s),lastCallAvailCountPvc1=Number(c),EshopService("CommodityParamVariantAvailCountGet",{commodityId:o,commodityCode:n,ParamValueId1:l,ParamValueId2:s,ParamValueId2Selected:s,ParamValueCoupledId1:c},!0,function(a){t.find(".detail-variant7 [name=count_temp]").html(a.Value),$("#DetailForm input[name=count]").val($("#DetailForm [name=count_temp]").val())})}var m=e.parent().find("img").attr("data-foto-path");if(3===a&&(m=t.find(".detail-variant7 [name=ParamVariant2]:checked").parent().find("img").attr("data-foto-path")),pageType.DetailPage){var u=$("form[data-frm-type='related'] img[alt='"+e.parent().find("img").attr("alt")+"']:not(.active)");u.length>0&&u.each(function(a,e){var t=new ColorChanger($(e));t.initialized&&(t.setActive(),t.changeMainImage(function(a){var t=$(e).parents("form").find("input[name=iditem]").val();void 0!==t&&$(".detail-related-previews .product-item__image img[data-id="+t+"]").attr("src",a)}),$(e).parent().find("input[type='radio']").attr("checked","checked"),$(e).parent().find("input[type='radio']").prop("checked",!0))})}if(void 0!==s){var p="[data-paramvalue="+s.toString()+"]";if($(p+",[data-paramvalue=0]").length<$("[data-paramvalue]").length&&$(p).length>0&&$(".verticalCarousel").length>0){var v=null!==(i=$(".zoomContainer").first().outerHeight())&&void 0!==i?i:0,f=2;v>210&&(f=Math.floor((v-170)/90)),p+=",[data-paramvalue=0]",$(".verticalCarousel").verticalSlider({margin:20,dimension:{0:{items:0},768:{items:f},1050:{items:f},2500:{items:f}},selectedIndex:1,filter:p,redraw:!0}),$("#DetailImgGalerySub").removeClass("verticalCarousel--filtered").addClass("verticalCarousel--filtered"),$("#DetailImgGalery .showallbtn").show(),$("#DetailImgGalery .showallbtn").off().on("click",function(){$(this).hide(),$(".verticalCarousel").verticalSlider({margin:20,dimension:{0:{items:0},768:{items:4},2500:{items:4}},redraw:!0})}),$("#DetailImgBase .itemGallery").attr("data-index","1")}}if($("#zoomImg").length){$(".zoomContainer").remove(),$("#zoomImg").removeData("elevateZoom"),$("#zoomImg").attr("src",m),$("#zoomImg").data("zoom-image",m.replace("/prg12/","/prg13/").replace("/01","/00")),$("#DetailImgBase .DetailImgBase__inner").show(),$("#DetailImgBase .detail-video.video-in-view").removeClass("video-in-view").hide();try{$("#zoomImg").elevateZoom({zoomType:"inner",cursor:"crosshair"})}catch(a){console.log("There is no function elevateZoom!")}}var g=t.find(".detail-variant7 [name=ParamVariant2]:checked").attr("value-text"),h=t.find(".detail-variant7 [name=ParamVariant2]:checked").attr("variant"),P=t.find(".detail-variant7 [name=ParamVariant1] option:selected").text().split("/").map(function(a){return a.trim()}).join("/")+" "+t.find(".detail-variant7 [name=ParamVariant2]:checked").attr("value-text"),V=t.find(".detail-variant7 [name=ParamVariant1Couple] option:selected").attr("variant"),C=t.find(".detail-variant7 [name=ParamVariant1Couple] option:selected").text()+" "+t.find(".detail-variant7 [name=ParamVariant2]:checked").attr("value-text");if(void 0==V&&(V="",C=""),m.indexOf("imagedelivery")>-1){var y=m.split("/");m=y[y.length-2]}else m=m.substring(m.lastIndexOf("/")+1,m.length);if(setProductAttributeElement(t,h,P,m,V,C,g),pageType.DetailPage||pageType.CommodityReview){var _=t.find(".detail-variant7 [name=ParamVariant2]:checked").attr("value-text-clear"),D=t.find(".detail-variant7 [name=ParamVariant1] option:selected").first(),w=t.find(".detail-variant7 [name=ParamVariant1Couple] option:selected").first(),S=D.val().toString().length>0?D.attr("data-size-value"):"",k=void 0!==w.attr("data-size-filter")?w.attr("data-size-filter"):"";!function(a){try{var e=document.getElementById("head-line"),t=e.querySelector("h1");if(void 0===t||null===t)return;var i=t.hasAttribute("data-orig")?t.getAttribute("data-orig"):t.innerText;t.hasAttribute("data-orig")||t.setAttribute("data-orig",i),t.innerText=i.concat(" - ",a);var r=window.document.title.split("|").length>1?window.document.title.split("|")[1]:"";window.document.title=t.innerText.concat(" | ",r);var n=document.getElementById("CategoryPar");if(n){var o=n.querySelector(".last");o&&(o.innerHTML=t.innerHTML)}}catch(a){console.debug("cannot change title: ",a)}}(g),function(a,e,t){try{if(GetParameterByName("color",window.location.toString())===a&&GetParameterByName("size",window.location.toString())===e&&GetParameterByName("sizeCouple",window.location.toString())===t)return;var i=window.location.toString();if(window.location.search.length>0){if((GetParameterByName("color",window.location.toString())||"").length>0){var r=GetParameterByName("color",window.location.toString());i=i.replace("color=".concat(encodeURIComponent(r)),"color=".concat(a))}else i=i.concat("&color=",a);if((GetParameterByName("sizeCouple",window.location.toString())||"").length>0){var n=GetParameterByName("sizeCouple",window.location.toString());i=t.length>0?i.replace("sizeCouple=".concat(n),"sizeCouple=".concat(t)):i.replace("?sizeCouple=".concat(n),"").replace("&sizeCouple=".concat(n),"")}else t.length>0&&(i=i.concat("&sizeCouple=",t));if((GetParameterByName("size",window.location.toString())||"").length>0){var o=GetParameterByName("size",window.location.toString());e.length>0?i=i.replace("size=".concat(o),"size=".concat(e)):(i=i.replace("?size=".concat(o),"").replace("&size=".concat(o),""),/[?&]/.test(i)&&(i=i.replace(/[?&]+/,"?").replace(/\?(?=.+\?)/g,"&")))}else e.length>0&&(i=i.concat("&size=",e))}else i=i.concat("?color=",a),t.length>0&&(i=i.concat("&sizeCouple=",t)),e.length>0&&(i=i.concat("&size=",e));window.history.replaceState(i,window.document.title,i)}catch(a){console.debug("cannot change url: ",a)}}(_,S,k)}DetailPricesRender(t,r,t.find(".detail-variant7 select[name=ParamVariant1]"),t.find(".detail-variant7 [name=ParamVariant2]:checked"),n,o)}}function DetailPricesRender(a,e,t,i,r,n){var o=""==t.val()?0:t.val(),l=null==i?0:i.val();if(e==RenderPriceFormat.Detail){if("undefined"==typeof gDetailProductParamLastTimeSelectedColorId&&(gDetailProductParamLastTimeSelectedColorId=0),gDetailProductParamLastTimeSelectedColorId==l)return;gDetailProductParamLastTimeSelectedColorId=Number(l)}EshopService("CommodityParamVariantPriceGet",{commodityId:n,commodityCode:r,ParamValueId1:o,ParamValueId2:l,PriceFormat:e},!0,function(t){if(""!=t.Value){var i=JSON.parse(t.Value2);
1if(e==RenderPriceFormat.Detail){a.find(".detailPrices").html(t.Value),a.parents(".Detail-klasik").find(".iconDiscount-bot .js_maxDisTxt").hide(),a.parents(".Detail-klasik").find(".iconDiscount-bot .js_disValue").html(i.discount);var r=a.parents(".Detail-klasik").find(".iconPromocoupon");r.length>0&&(0===i.promoCouponHtml.length?(r.hide(),r.parent().addClass("promoHidden"),a.find(".price-promotion-code").remove()):(r.show(),r.parent().removeClass("promoHidden"),a.find(".price-promotion-code").remove(),a.find(".detailPrices").after($("<div>").addClass("price-promotion-code").html(i.promoCouponHtml)))),""!=i.discount?(a.parents(".Detail-klasik").find(".iconDiscount-bot").show(),a.parents(".Detail-klasik").find(".iconPar_4").length>0&&a.parents(".Detail-klasik").find(".iconPar_4").removeClass("iconPar_4__nodisc")):(a.parents(".Detail-klasik").find(".iconDiscount-bot").hide(),a.parents(".Detail-klasik").find(".iconPar_4").length>0&&a.parents(".Detail-klasik").find(".iconPar_4").addClass("iconPar_4__nodisc")),pageType.DetailPage&&$(".detail__infoForm").length&&$(".detail__infoForm").find(".infoForm--price-block").html(t.Value),""==i.buttonPriceHtml?a.find(".button-add .button-price").remove():a.find(".detail-variant7").length>0&&"1"==a.find(".detail-variant7").attr("data-variant-price")&&(a.find(".button-add .button-price").remove(),a.find(".button-add").prepend(i.buttonPriceHtml))}else if((e==RenderPriceFormat.Other||e==RenderPriceFormat.DetailVariants)&&(a.find(".detailPrices").length?a.find(".detailPrices").html(t.Value):a.find(".product-price").length?0==t.Value.indexOf("<p")?a.find(".product-price").html(t.Value):a.find(".product-price").html('<p class="price">'+t.Value+"</p>"):a.parents(".quick-order__base").find(".product-price").length?a.parents(".quick-order__base").find(".product-price").html(t.Value):a.html(t.Value),a.hasClass("quickviewsection"))){var n=a;""!=i.discount?(n.find(".iconDiscount-bot").show(),n.find(".iconPar_4").length>0&&n.find(".iconPar_4").removeClass("iconPar_4__nodisc")):(n.find(".iconDiscount-bot").hide(),n.find(".iconPar_4").length>0&&n.find(".iconPar_4").addClass("iconPar_4__nodisc"))}}})}function DetailColorSetName(a){$(".detail-variant7 .step-color .title span").html(a)}function ButtonBuyControlClick(a,e){var t=ValidateCommodityForm(a,e);return""===t.Message?t.Result:(window.setTimeout(function(){features.GoogleAnalyticsEnhancedEcommerce&&enhancedPushError(t.Message),$(a).closest(".quick-order").find(".quick-order__alert").length>0?$(a).closest(".quick-order").find(".quick-order__alert").removeClass("hide").text(t.Message):alert(t.Message)},100),t.Result)}function ValidateCommodityForm(a,e){var t,i,r,n,o=a.closest("form").data("frm-type"),l={Message:"",Result:!0,SelectedColor:0,SelectedCouple:0,SelectedSize:0,ProductId:0,ProductCode:""};if("related"===o?e=a.closest("form"):"couple-recommended"===o?e=a.closest("form"):$("body").hasClass("body-basket-1")?e=a.closest("form"):$("body").hasClass("body-com-review")?e=a.closest("form"):$("body").hasClass("body-item")||$("#QuickView").length||(e=a.closest("form.frmBuyItem")),void 0===e||null===e)return l.Result=!0,l.Message="",l;var d=null,c=null,s=null,m=!1;d=e.find("[name=ParamVariant1]"),c=e.find("input[type=radio][name=ParamVariant2]:checked").length?e.find("input[type=radio][name=ParamVariant2]:checked"):e.find("select[name=ParamVariant2]"),s=e.find("[name=ParamVariant1Couple]");var u="True"===e.find("[name=isVoucher]").val();if(void 0!==d&&!u&&null!==d&&d.length>0){var p=d.val().toString();if(""===p||"0"===p)return l.Result=!1,l.Message=GetTextDynamic("variantbyparams-js-choose_param1"),l;m=!0,l.SelectedSize=parseInt(d.val().toString())}if(void 0!==c&&!u&&null!==c&&c.length>0){var v=c.val().toString();if(""===v||"0"===v)return l.Result=!1,l.Message=GetTextDynamic("variantbyparams-js-choose_param2"),l;m=!0,l.SelectedColor=parseInt(c.val().toString())}if(void 0!==s&&null!==s&&s.length>0){var f=s.val().toString();if(""===f||"0"===f)return l.Result=!1,l.Message=GetTextDynamic("variantbyparams-js-choose_param_coupled"),l;m=!0,l.SelectedCouple=parseInt(s.val().toString())}return m&&""===e.find("input[name=attribute]").val()?(l.Result=!1,l.Message=GetTextDynamic("variantbyparams-js-choose_param"),l):(l.ProductId=parseInt(null!==(i=null===(t=e.find("[name=iditem]").val())||void 0===t?void 0:t.toString())&&void 0!==i?i:"0"),l.ProductCode=null!==(n=null===(r=e.find("[name=code]").val())||void 0===r?void 0:r.toString())&&void 0!==n?n:"",l.Re
1sult=!0,l.Message="",l)}function productBuyedCrossSell(a){if(0!==$("#CrossSell").length||0!==$(".gifts__popupInner").length){a.parent("form").addClass("buyed"),a.parent("form").parent("article").addClass("buyed"),a.after("<span class='btn btnVirtual'>"+a.parent("form").find("input[type=hidden][name=basketButtonAlterText]").val()+"</span>"),a.hide();var e=a.parent("form").find("[name=selParamVariant1] option:first").text(),t=a.parent("form").find("[name=ParamVariant2]:checked").attr("data-name"),i=a.parent("form").find("[name=selParamVariant1] option:selected").text(),r=a.parent("form").find("[name=ParamVariant2]:checked").attr("data-value-text");a.parent("form").find("[name=selParamVariant1]").hide().after("<span>"+e+":<strong>"+i+"</strong></span>"),a.parent("form").find(".ParamVariant2").hide().after("<span>"+t+":<strong>"+r+"</strong></span>"),$("#CrossSell #btnNext").hide(),$("#CrossSell #btnStay").show()}}function setProductAttributeElement(a,e,t,i,r,n,o){a.find("input[name=attribute]").val(e+"|"+t+"|"+i+"|"+r+"|"+n),DetailColorSetName(o)}function CommodityRelatedInit(){ButtonBuy()}function initVariantsByParametersOnCatalog(){$("form.frmBuyItem [name=selParamVariant1]").on("change",function(){var a=$(this),e=a.closest("form.frmBuyItem"),t=a.attr("data-code"),i=e.find("[name=iditem]").val(),r=a.find("option:selected").val(),n=e.find("[name=ParamVariant2]:checked").length>0?e.find("[name=ParamVariant2]:checked").val():0,o=1===e.find("[name=selParamVariant2]").length,l=1===e.find("[name=ParamVariant1Couple]").length,d=e.find("[name=ParamVariant1Couple]").val(),c=a.hasClass("isGift"),s=e.closest(".productBox_product");e.find("input[name=ParamVariant1]").val(r),EshopService("GetParameterColorForSize",{commodityCode:t,sizeId:r,selectedColorId:n,isSelect:o,isCoupled:l,isGift:c,sizeIdcouple:d},!1,function(a){if(0===a.ErrorLevel)if(o)e.find("[name=selParamVariant2]").html(a.Value),1===e.find("[name=selParamVariant2] option").length&&setSelectedColor(e.find("[name=selParamVariant2]")),DetailPricesRender(s,RenderPriceFormat.Other,e.find("[name=selParamVariant1]"),e.find("[name=selParamVariant2]"),t,i);else{if(l){var r=a.Value.split("###")[0],n=a.Value.split("###")[1];e.find("ul.ParamVariant2").html(r),e.find("[name=ParamVariant1Couple]").html(n)}else e.find("ul.ParamVariant2").html(a.Value);e.find("[name=attribute]").val(e.find(".ParamVariant2 li.active input").attr("data-attributes")),e.find(".ParamVariant2 img").on("click",function(){if(void 0!==e&&null!==e){$(this).parent().find("input").prop("checked",!0);var a=e.find("input[name=ParamVariant2]:checked");null!==a&&(DetailPricesRender(s,RenderPriceFormat.Other,e.find("[name=selParamVariant1]"),a,t,i),e.find("[name=attribute]").val(a.attr("data-attributes")))}}),e.find(".ParamVariant2 li.active").length||e.find(".ParamVariant2 img:first").click(),DetailPricesRender(s,RenderPriceFormat.Other,e.find("[name=selParamVariant1]"),e.find("[name=ParamVariant2]:checked"),t,i
1)}})}),$("form.frmBuyItem [name=selParamVariant2]").on("change",function(){setImageAndAttributes($(this).closest("form.frmBuyItem"))}),$("form.frmBuyItem [name=ParamVariant1Couple]").on("change",function(){setImageAndAttributes($(this).closest("form.frmBuyItem"))})}function setImageAndAttributes(a){if(1===a.find("[name=selParamVariant2]").length){var e=a.find("[name=selParamVariant2] option:selected"),t=e.attr("data-image"),i=e.attr("data-attributes");a.find("input[name=ParamVariant2]").val(e.val()),a.find("input[name=attribute]").val(i),a.closest("article").find(".product-image a:not('.itemGallery') > img").attr("src",t),a.closest("article").find("figure.image > img").attr("src",t)}else{var i=a.find(".ParamVariant2 li.active input").attr("data-attributes");if(1===a.find("[name=ParamVariant1Couple]").length){var r=a.find("[name=ParamVariant1Couple] option:selected").attr("data-attributes");i=i.replace("||","")+"|"+r}a.find("input[name=attribute]").val(i)}}function setSelectedColor(a){var e=a.find("option:selected").val(),t=
1a.find("option:selected").attr("data-attributes"),i=a.closest("form.frmBuyItem");i.find("[name=ParamVariant2]").val(e),i.find("[name=attribute]").val(t)}var gQsColor=null,gQsSize=null,gQsSizeCouple=null,gSelectedVal1=0,gSelectedVal2=0,lastCallAvailCountPv1=0,lastCallAvailCountPvc1=0,lastCallAvailCountPv2=0;$(function(){gQsColor=GetParameterByName("color",window.location.href),gQsSize=GetParameterByName("size",window.location.href),gQsSizeCouple=GetParameterByName("sizeCouple",window.location.href),2==$("#DetailForm .detail-variant7 [name='ParamVariant1']").children().length&&($("#DetailForm .detail-variant7 [name='ParamVariant1'] option:eq(1)").prop("selected",!0),DetailChangeVariants(1,$("body"),$("#DetailForm"))),initVariantsByParametersOnCatalog(),!pageType.DetailPage||null==gQsSize&&null==gQsSizeCouple?pageType.DetailPage&&null!=gQsColor&&setTimeout(function(){pageType.DetailPage&&null!=gQsColor&&1===$('#DetailForm #ParamVariant2 input[data-color-filter="'+gQsColor+'"]').length?$("#DetailForm #ParamVariant2 input[data-color-filter='"+gQsColor+"']").trigger("change"):pageType.DetailPage&&null!=gQsColor&&1===$("#DetailForm #ParamVariant2 input[value-text='"+gQsColor+"']").length?$("#DetailForm #ParamVariant2 input[value-text='"+gQsColor+"']").trigger("change"):pageType.DetailPage&&null!=gQsColor&&1===$("#DetailForm #ParamVariant2 input[value-text-clear='"+gQsColor+"']").length&&$("#DetailForm #ParamVariant2 input[value-text-clear='"+gQsColor+"']").trigger("change")},200):setTimeout(function(){null!=gQsSize&&($('#DetailForm #ParamVariant1 option[data-size-filter="'.concat(gQsSize,'"]')).length?$('#DetailForm #ParamVariant1 option[data-size-filter="'.concat(gQsSize,'"]')).prop("selected",!0):$('#DetailForm #ParamVariant1 option[data-size-value="'.concat(gQsSize,'"]')).prop("selected",!0)),null!=gQsSizeCouple&&($('#DetailForm #ParamVariant1Couple option[data-size-filter="'.concat(gQsSizeCouple,'"]')).length?$('#DetailForm #ParamVariant1Couple option[data-size-filter="'.concat(gQsSizeCouple,'"]')).prop("selected",!0):$('#DetailForm #ParamVariant1Couple option[data-size-value="'.concat(gQsSizeCouple,'"]')).prop("selected",!0)),DetailChangeVariants(1,$('#DetailForm .detail-variant7 [name="ParamVariant1"]'),$("#DetailForm"))},200),null==gQsColor&&null==gQsSize||CheckSingleVarintInQuickView(!1),null!=gQsSizeCouple&&CheckSingleVarintInQuickView(!0)}),$(document).on("change",'#DetailForm .detail-variant7 [name="ParamVariant1"]',function(){DetailChangeVariants(1,$(this),$("#DetailForm"))}),$(document).on("change",'.quickviewsection .detail-variant7 [name="ParamVariant1"]',function(){DetailChangeVariants(1,$(this),$(this).closest(".quickviewsection"))}),$(document).on("change",'.advice_jet_wrapper .step-5 .detail-variant7 [name="ParamVariant1"]',function(){DetailChangeVariants(1,$(this),$(this).closest(".advice_jet_wrapper .step-5"))}),$(document).on("change",'#DetailForm .detail-variant7 [name="ParamVariant2"]',function(){var a=this;setTimeout(function(){DetailChangeVariants(2,$(a),$("#DetailForm"))},1)}),$(document).on("change",'.quickviewsection .detail-variant7 [name="ParamVariant2"]',function(){DetailChangeVariants(2,$(this),$(this).closest(".quickviewsection"))}),$(document).on("change",'.advice_jet_wrapper .step-5 .detail-variant7 [name="ParamVariant2"]',function(){DetailChangeVariants(2,$(this),$(this).closest(".productBox_product"))}),$(document).on("change",'#DetailForm .detail-variant7 [name="ParamVariant1Couple"]',function(){var a=this;setTimeout(function(){DetailChangeVariants(3,$(a),$("#DetailForm"))},1)}),$(document).on("change",'.quickviewsection .detail-variant7 [name="ParamVariant1Couple"]',function(){var a=this;setTimeout(function(){DetailChangeVariants(3,$(a),$(a).closest(".quickviewsection"))},1)}),$(document).on("change",'#DetailForm .detail-variant7 [name="count_temp"]',function(){$("#DetailForm input[name=count]").val($("#DetailForm [name=count_temp]").val())}),$(document).on("change",'.advice_jet .detail-variant7 [name="count_temp"]',function(){$(".advice_jet input[name=count]").val($(".advice_jet [name=count_temp]").val())}),$(document).on("change","#blockVariantRadio [name=selParamVariant2]",function(){setSelectedColor($(this))}),$(document).on("click",".price-history",function(a){var e=this;setTimeout(function(){var a=new PriceHistoryBlock($(e));a.initialized&&a.showHistory()},0)});var PriceHistoryBlock=function(){function a(a){this.initialized=!1,this._element=a,this._element.closest(".productBox_product").length?(this._wrapper=this._element.closest(".productBox_product"),this._productId=parseInt(this._wrapper.data("id"))):this._element.parents("article").length?(this._wrapper=this._element.parents("article"),this._productId=parseInt(this._wrapper.data("id"))):this._element.parents(".body-item, .body-mob").length?(this._wrapper=this._element.parents(".body-item, .body-mob"),this._productId=parseInt(this._wrapper.find("#DetailForm [name=iditem]").val().toString()),this._value1selector=this._wrapper.find(".detail-variant7 select[name=ParamVariant1]"),this._value2selector=this._wrapper.find(".detail-variant7 [name=ParamVariant2]:checked")):this._wrapper=this._element.parents("section"),this.initialized=!0}return a.prototype.showHistory=function(){if(this._wrapper.find(".history.active").length&&this._wrapper.find(".history.active").removeClass("active"),$(".historyPopup").length)return ClickOutsideOn("",null),void $(".historyPopup").remove();this._element.addClass("active");var a=this._element.data("pricemin"),e=this._element.data("pricemax"),t=0,i=0;void 0!=this._value1selector&&""!=this._value1selector.val()&&(t=this._value1selector.val()),void 0!=this._value2selector&&null!=this._value2selector.val()&&(i=this._value2selector.val()),this._productId>0&&EshopService("GetCommodityPriceHistory",{productId:this._productId,paramValueId1:t,paramValueId2:i},!0,function(t){0===t.ErrorLevel&&""!=t.Value&&(a=t.Value,e=t.Value2)});var r=document.createElement("div");if(r.className="availSizes historyPopup",isMobile){var n=window.innerWidth/2;this._wrapper[0].offsetWidth+this._wrapper[0].offsetLeft<=n?r.className="availSizes historyPopup show-right":r.className="availSizes historyPopup show-left"}var o=GetTextDynamic("price_history_single").replace("$priceMin",a).replace("$currency",currencyName);a!=e&&(o=GetTextDynamic("price_history_range").replace("$priceMin",a).replace("$priceMax",e).replace("$currency",currencyName));var l="";l+='<div class="headline"><span class="color-name">'.concat(o,"</span></div><span class='close'>
1").concat(GetTextDynamic("price_history_close"),"</span></div>"),r.innerHTML=l,this._element.parent().append(r),ClickOutsideOn(".historyPopup",function(){$(".historyPopup").remove()})},a}(),RenderPriceFormat;!function(a){a[a.Detail=0]="Detail",a[a.DetailVariants=1]="DetailVariants",a[a.Other=2]="Other"}(RenderPriceFormat||(RenderPriceFormat={}));

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.