PageSourceSearch

https://assol.in.ua/catalog/view/javascript_assol_2023/dist/main.js?t=1791442828

js assol.in.ua collected 2026-10-08 07:25:12 UTC 17,984 bytes, 1 lines download raw bytes

1function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _createClass(e,t,o){return t&&_defineProperties(e.prototype,t),o&&_defineProperties(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var $root=$(":root"),footerHide=!1,$catalogList=$(".header_catalog ul"),$catalogClose=$(".header_catalog_close"),$catalogBack=$(".header_catalog_back"),$footerNavList=$(".footer_nav_col ul"),$rateTriger=$(".rate label"),$html=$("html"),$infoList=$("#info-list > li"),$infoTabs=$("#info-buttons > li"),$select=$("._select select"),$arrow=$(".arrow"),amountMin=1,amountMax=999,$headerFixed=$(".header.fixed"),$headerNet=$headerFixed.find(".header_net"),initialOffset=$headerNet.length?$headerNet.offset().top:"",offsetThreshold=0,block=$("<div>").css({height:"50px",width:"50px"}),indicator=$("<div>").css({height:"200px"}),is_mobile=!1;(screen.width<500||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i))&&(is_mobile=!0),function(){var e=navigator.userAgent,t=!1,o=e.match(/Chrom(?:e|ium)\/([0-9]+)\./);o&&(parseInt(o[1],10)<=109&&(t=!0));var i=e.match(/Firefox\/([0-9]+)\./);i&&(parseInt(i[1],10)<=115&&(t=!0));(e.indexOf("MSIE ")>-1||e.indexOf("Trident/")>-1)&&(t=!0),t&&(document.documentElement.className+=" is-old-browser")}(),$("body").append(block.append(indicator));var w1=$("div",block).innerWidth();block.css("overflow-y","scroll");var w2=$("div",block).innerWidth();$(block).remove();var scrollbar=w1-w2;function showNotification(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"right",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"top",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5e3,a=(Array.isArray(e)?e:[e]).filter(Boolean);if(0!==a.length){var n={success:{icon:'<svg width="18" height="18" aria-hidden="true" viewBox="0 0 24 24" fill="none"><use href="#icon-success"></use></svg>',progressColor:"#4bbe01"},error:{icon:'<svg width="18" height="18" aria-hidden="true" viewBox="0 0 24 24" fill="none"><use href="#icon-error"></use></svg>',progressColor:"#e74c3c"},info:{icon:'<svg width="18" height="18" aria-hidden="true" viewBox="0 0 24 24" fill="none"><use href="#icon-info-circle"></use></svg>',progressColor:"#3498db"}},r=n[t]||n.info,l=a.map(function(e){return"<div>".concat(e,"</div>")}).join(""),c=document.createElement("div");c.style.display="flex",c.style.alignItems="flex-start",c.style.gap="8px",c.style.paddingRight="5px",c.style.marginBottom="4px",c.style.lineHeight="1.3",c.innerHTML='<div style="display: flex; align-items: center; min-width: 18px; height: 20px; user-select: none;">'.concat(r.icon,"</div>")+'<div style="flex: 1; display: flex; flex-direction: column; gap: 4px; max-width: 350px; text-align: left; padding-top: 2px;">'.concat(l,"</div>")+'<div class="toast-progress-bar" style="\n            position: absolute;\n            bottom: 0;\n            left: 0;\n            height: 3px;\n            width: 100%;\n            background-color: '.concat(r.progressColor,";\n            border-bottom-left-radius: 5px;\n            border-bottom-right-radius: 5px;\n            opacity: .8;\n            animation: toastProgress ").concat(s,'ms linear forwards;\n        "></div>'),Toastify({node:c,duration:s,gravity:i,position:o,close:!1,escapeMarkup:!1,stopOnFocus:!1,style:{background:"#fcfcfd",color:"#2c3e50",fontFamily:"var(--font2), -apple-system, sans-serif",fontSize:"13px",fontWeight:"500",padding:"10px 15px",borderRadius:"5px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.2)",display:"flex",alignItems:"center",overflow:"hidden"}}).showToast()}}function media(){var e,t=$(window).width();$root.css({"--header":$(".header").height()+"px","--catalog_height":$(".header_catalog_wrapepr > ul").outerHeight()+"px"}),e=1030,moveElements($("#reviews-desktop"),$("#reviews-table"),t,e),moveElements($("#ask-desktop"),$("#ask-table"),t,e),e=900,moveElements($("#catalog-desktop"),$("#catalog-table"),t,e),moveElements($("#coll-desktop"),$("#coll-table"),t,e),moveElements($("#nav-desktop"),$("#nav-table"),t,e),moveElements($("#checkout_items-desktop"),$("#checkout_items-table"),t,e),e=770,moveElements($("#
1item_info-desktop"),$("#item_info-table"),t,e),$infoList.each(function(){var o=$(this),i=o.index();moveElements(o,$infoTabs.eq(i).find(".info_li"),t,e)}),t<=e-scrollbar?($footerNavList.hide(),footerHide=!0):($footerNavList.show(),footerHide=!1),e=600,moveElements($("#cabinet_img-desktop"),$("#cabinet_img-mob"),t,e),moveElements($("#setting_bgtn_one-desktop"),$("#setting_bgtn_one-mob"),t,e),moveElements($("#setting_bgtn_twoo-desktop"),$("#setting_bgtn_twoo-mob"),t,e)}function moveElements(e,t,o,i){o<=i-scrollbar?e.children().detach().prependTo(t):t.children().detach().prependTo(e)}function sliderLoad(){sliderCreate(".banner_slider",{arrows:!0,dots:!1,slidesToShow:4,infinite:!0,autoplay:!0,responsive:[{breakpoint:701,settings:{slidesToShow:3}},{breakpoint:601,settings:{slidesToShow:2,arrows:!1}}]}),sliderCreate(".cat_slider",{arrows:!1,dots:!1,slidesToShow:6,infinite:!1,autoplay:!1,responsive:[{breakpoint:1201,settings:{slidesToShow:5}},{breakpoint:1031,settings:{slidesToShow:4}},{breakpoint:771,settings:{slidesToShow:3}},{breakpoint:600,settings:{slidesToShow:2.8}}]}),sliderCreate(".products_slider",{arrows:!0,dots:!1,slidesToShow:3.5,infinite:!0,responsive:[{breakpoint:1201,settings:{arrows:!1,slidesToShow:5}},{breakpoint:1031,settings:{arrows:!1,slidesToShow:4}},{breakpoint:771,settings:{arrows:!1,slidesToShow:3}},{breakpoint:481,settings:{arrows:!1,slidesToShow:2}}]}),sliderCreate(".news_slider",{arrows:!0,dots:!1,slidesToShow:3,infinite:!0,responsive:[{breakpoint:1201,settings:{arrows:!1}
1},{breakpoint:1031,settings:{arrows:!1,slidesToShow:2}},{breakpoint:601,settings:{arrows:!1,slidesToShow:1}}]}),sliderCreate(".item_img_active",{arrows:!0,dots:!1,slidesToShow:1,infinite:!0,asNavFor:".item_img_list, .gallery_active, .gallery_images",responsive:[{breakpoint:771,settings:{arrows:!0,dots:!0}}]}),sliderCreate(".item_img_list",{arrows:!1,dots:!1,slidesToShow:4,infinite:!0,asNavFor:".item_img_active, .gallery_active, .gallery_images"},{onClick:!0}),sliderCreate(".gallery_images",{arrows:!1,dots:!1,infinite:!0,slidesToShow:5,vertical:!0,verticalSwiping:!0,asNavFor:".item_img_active, .item_img_list, .gallery_active"},{onClick:!0}),sliderCreate(".gallery_active",{arrows:!0,dots:!1,infinite:!0,slidesToShow:1,fade:!0,asNavFor:".item_img_active, .item_img_list, .gallery_images",responsive:[{breakpoint:1200,settings:{}}]},{count:!0,countElement:"#gallery_count"}),sliderCreate(".item_complect_list",{arrows:!0,dots:!1,slidesToShow:5,infinite:!0,responsive:[{breakpoint:1341,settings:{slidesToShow:4}},{breakpoint:1101,settings:{slidesToShow:3}},{breakpoint:1031,settings:{slidesToShow:2}},{breakpoint:771,settings:{arrows:!1,slidesToShow:2}},{breakpoint:601,settings:{arrows:!1,slidesToShow:1}}]}),sliderCreate(".team_list",{arrows:!1,dots:!1,slidesToShow:5,infinite:!1,responsive:[{breakpoint:1031,settings:{slidesToShow:4}},{breakpoint:771,settings:{slidesToShow:3}},{breakpoint:601,settings:{slidesToShow:2}}]}),sliderCreate(".compare_table_head",{arrows:!0,dots:!1,slidesToShow:5,infinite:!1,swipe:!0,touchMove:!1,asNavFor:".compare_table_row",responsive:[{breakpoint:1201,settings:{slidesToShow:4}},{breakpoint:1001,settings:{slidesToShow:3}},{breakpoint:601,settings:{slidesToShow:2}}]}),sliderCreate(".compare_table_row",{arrows:!1,dots:!1,slidesToShow:5,infinite:!1,swipe:!0,touchMove:!1,asNavFor:".compare_table_head",responsive:[{breakpoint:1201,settings:{slidesToShow:4}},{breakpoint:1001,settings:{slidesToShow:3}},{breakpoint:601,settings:{slidesToShow:2}}]})}function sliderCreate(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=$(e);i.length&&(o&&(o.onClick&&i.on("click",".slick-slide",function(e){e.preventDefault();var t=$(this).data("slick-index");i.slick("slickGoTo",parseInt(t))}),o.count&&i.on("init reInit afterChange",function(e,t,i,s){var a=$(o.countElement),n=t.slideCount,r=i+1;void 0===i&&(r=1),a.text(r+"/"+n)})),i.slick(t))}$root.css("--scroll",scrollbar+"px"),window.showNotification=showNotification,window.notify={done:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;return window.showNotification(e,"success",t,o,i)},fail:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;return window.showNotification(e,"error",t,o,i)},info:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;return window.showNotification(e,"info",t,o,i)}},$(document).ready(function(){function e(){var e=parseFloat((.01*window.innerHeight).toFixed(2));document.documentElement.style.setProperty("--viewportHeight","".concat(e,"px"))}function t(){document.querySelectorAll(".header_catalog_wrapepr ul ul").forEach(function(e){var t=e.querySelectorAll("li");if(0!==t.length){e.style.width="";var o=0,i=e.getBoundingClientRect();t.forEach(function(e){var t=e.getBoundingClientRect().right-i.left;t>o&&(o=t)});var s=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,a=e.offsetWidth,n=parseFloat(s.maxWidth)||1/0,r=parseFloat(s.paddingRight)||0;if(o>a+5){var l=o+r;l>n&&(l=n,e.style.overflowX="auto"),e.style.width=l+"px"}else e.style.width=""}})}e(),t(),window.addEventListener("resize",function(){e(),t()}),$(document).on("mouseover",".header_catalog a",function(){if($(window).width()>
1900-scrollbar){var e=$(this);e.parent().siblings().find("ul").removeClass("active"),e.siblings("ul").addClass("active"),$(document).click(function(e){0===$catalogList.has(e.target).length&&$catalogList.removeClass("active")})}}),$(document).on("mouseleave",".header_catalog",function(){$(window).width()>900-scrollbar&&$catalogList.removeClass("active")}),$(document).on("click",".header_catalog a span",function(){var e=$(this).parent(),t=e.text();event.preventDefault(),$catalogClose.hide(),$catalogBack.text(t).show(),e.siblings("ul").addClass("active")}),$catalogBack.on("click",function(){var e=$(this),t=$catalogList.filter(".active").last(),o=t.parent().parent().siblings("a").text();t.removeClass("active"),e.text(o),t.parents("ul").hasClass("active")||(e.hide(),$catalogClose.show(),$("#catalog-info ul").animate({scrollTop:0},1))}),$(window).resize(media),media(),sliderLoad(),$(document).on("click",".footer_nav_name",function(){var e=$(this);footerHide&&(e.toggleClass("active").siblings().slideToggle(),$(e).parent().siblings().find(".footer_nav_name").removeClass("active").siblings().slideUp())}),$rateTriger&&$rateTriger.on({mouseenter:function(e){$(e.currentTarget).prevAll().addBack().addClass("hover")},mouseleave:function(e){$(e.currentTarget).prevAll().addBack().removeClass("hover")},click:function(e){$(e.currentTarget).nextAll().removeClass("active"),$(e.currentTarget).prevAll().addBack().addClass("active")}}),$select.length&&$select.knotSelect(),$(document).on("change input",".kamount input",function(){var e=$
1(this);e.val()<amountMin?e.val(amountMin):e.val()>amountMax&&e.val(amountMax)})}),$(window).scroll(function(){$(this).scrollTop()>=$(this).height()/2?$arrow.addClass("active"):$arrow.removeClass("active"),is_mobile||handleScroll()});var PopUp=function(){return _createClass(function e(){_classCallCheck(this,e)},[{key:"toggle",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"class",i=$(e),s=$(t),a=this;setTimeout(function(){i.hasClass("active")?a.close(i,s,o):(i.addClass("active"),"class"===o?s.toggleClass("active"):"slide"===o&&s.slideToggle()),$(document).on("click",function(e){var t=i.is(e.target),n=i.has(e.target).length>0,r=s.is(e.target),l=s.has(e.target).length>0;t||n||r||l||a.close(i,s,o)})},10)}},{key:"close",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"class";$(e).removeClass("active"),"class"===o?$(t).removeClass("active"):"slide"===o&&$(t).slideUp()}}])}(),knotPopUp=new PopUp,Search=function(){return _createClass(function e(){_classCallCheck(this,e),this.$result=$('<div class="search_result" id="search-result"></div>'),this.search_result="#search-result",this._typingTimer=null,this._delay=500},[{key:"activate",value:function(e){$(e).addClass("active")}},{key:"result",value:function(e){if(!($('#search input[name="search"]').val().length<3)){clearTimeout(this._typingTimer);var t=$(e),o=t.offset().top+t.height(),i=this.$result;this._typingTimer=setTimeout(function(){$.ajax({url:"index.php?route=extension/module/advanced_search/getHtmlResult",type:"get",data:$("#search input"),dataType:"html",success:function(e){i.html(e).css("top",o),$("body").append(i)},error:function(e,t,o){console.error(o+"\r\n"+e.statusText+"\r\n"+e.responseText)}})},this._delay)}}},{key:"close",value:function(e){$(this.search_result).remove(),e&&$(e).removeClass("active")}}])}(),knotSearch1=new Search,ajaxApiSearch=new Search;function delay(e){return new Promise(function(t){return setTimeout(t,e)})}var Cart=function(){return _createClass(function e(){_classCallCheck(this,e),this.$result=$('<div class="cart" id="cart"></div>'),this.html=$(".insert_cart").html(),this.product=".cart_product",this.cart="#cart",this.pos_top=$(".header_net").offset().top+$(".header_net").height()},[{key:"toggle",value:function(e){$(e);this.close(),$(".inserted").length?$(".insert_cart").show():(alert($("#cart").length),$(".insert_cart").load("index.php?route=common/static/header_customer_block/cart_info",function(){$("#cart").css("top",$(".header_net").offset().top+$(".header_net").height()),$(".insert_cart").show()}))}},{key:"close",value:function(){$(".insert_cart").hide()}},{key:"clear",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all";"all"===t?($(this.product).remove(),this.close()):setTimeout(function(){$(t).parents(e.product).remove(),$(e.product).length<1&&e.close()},1)}}])}(),knotCart=new Cart,Bar=function(){return _createClass(function e(){_classCallCheck(this,e),this.$burger=$(".bar_burger"),this.$wrapper=$(".bar_wrapper"),this.$veil=$(".bar_veil")},[{key:"toggle",value:function(){this.$burger.toggleClass("active"),this.$veil.toggleClass("active"),this.$wrapper.slideToggle(),$html.toggleClass("hidden"),scroll_to(".header_net"),$catalogBack.hide(),$catalogClose.show(),$("#catalog-info ul").removeClass("active"),knotPopUp.close("#catalog-triger","#catalog-info")}},{key:"close",value:function(){this.$burger.removeClass("active"),this.$veil.removeClass("active"),this.$wrapper.slideUp(),$html.removeClass("hidden")}}])}(),knotBar=new Bar,Modal=function(){return _createClass(function e(){_classCallCheck(this,e),this.$modal=$(".modal")},[{key:"open",value:function(e){$(e).addClass("active"),$html.addClass("hidden")}},{key:"close",value:function(){this.$modal.removeClass("active"),$html.removeClass("hidden")}},{key:"next",value:function(e){this.close(),this.open(e)}}])}(),knotModal=new Modal;function scroll_to(e){0!=$(e).length&&$("html, body").animate({scrollTop:$(e).offset().top},500)}function showAnswers(e){var t=$(e),o=t.siblings();t.slideUp(),o.slideDown()}function infoTabs(e){var t="active",o=$(e),i=o.parent(),s=i.siblings().find("button"),a=i.index();o.addClass(t),s.removeClass(t),$infoList.eq(a).slideDown().siblings().slideUp(),o.siblings().slideToggle(),s.siblings().slideUp()}function catalogSort(e,t){var o=$(e),i=$(t),s=o.val();$(".product_price");o.prop("disabled",!0),o.siblings().prop("disabled",!1),"vw"===s?i.addClass("_vw"):i.removeClass("_vw")}
1function addMessage(e,t){var o=$("<div></div>").addClass("message").html("\n\t\t\t<p>".concat(e,'</p>\n\t\t\t<button class="message_close _close" onclick="removeMessage(this)"></button>\n\t\t')).css({top:"10px",right:"20px",position:"fixed"}).hide().fadeIn();$("body").append(o),t&&setTimeout(function(){removeMessage(o)},1e3*t)}function removeMessage(e){var t=$(e);t.hasClass("message_close")&&(t=t.parent()),t.fadeOut(),setTimeout(function(){t.remove()},600)}function faqToggle(e){var t=$(e),o=t.closest(".faq_list"),i=t.siblings(".faq_content"),s=t.hasClass("active");t.toggleClass("active",!s),i.slideToggle(),s||(o.find(".faq_triger.active").not(t).removeClass("active"),o.find(".faq_content").not(i).slideUp())}function openGallery(e){$(e).addClass("active"),$("html").addClass("hidden")}function closeGallery(e){$(e).removeClass("active"),$("html").removeClass("hidden")}function handleScroll(){$(window).scrollTop()>initialOffset+offsetThreshold?($headerFixed.css({"padding-bottom":$headerNet.outerHeight()}),$headerNet.css({position:"fixed",top:"0",left:"var(--bone_size)",right:"var(--bone_size)"})):($headerFixed.css({"padding-bottom":0}),$headerNet.css({position:"static"}))}

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.