PageSourceSearch

https://promate.net/cdn/shop/t/2/assets/custom.js?v=113270597107784986481675851819

js promate.net collected 2026-09-30 19:19:55 UTC 42,342 bytes, 2 lines download raw bytes

1if($(document).click(function(e){var elem=$("header form.search-form input#Search");e.target!=elem[0]&&!elem.has(e.target).length&&elem.closest("form").removeClass("active");var elem2=$('div[data-section-id="header"]');e.target!=elem2[0]&&!elem2.has(e.target).length&&($('div[data-section-id="header"] header nav, div[data-section-id="header"] header .menu-hamb').removeClass("active"),$(".overlay-bg-content").hide(),$("body").removeClass("to-hide").removeClass("to-back"));var elem3=$("header .header-icons .search-hover-link");e.target!=elem3[0]&&!elem3.has(e.target).length&&elem3.removeClass("hover")}),$("body").hasClass("template-index")&&($(window).load(function(){$(".slider-custom > .inner").each(function(){var _this=this;$(this).closest(".slider-custom").show();var verticalSlider=!0;$(window).width()<=800&&(verticalSlider=!1);var dots=!0;$(this).data("slides")==1&&(dots=!1),$(this).slick({arrows:!1,dots,fade:!1,autoplay:$(_this).data("anim"),autoplaySpeed:$(_this).data("anim-delay")*1e3,lazyLoad:"progressive",vertical:verticalSlider,verticalSwiping:verticalSlider,adaptiveHeight:!0}),$("html").removeClass("blurring"),$(this).on("beforeChange",function(event,slick,currentSlide,nextSlide){animContent(this,nextSlide)});function animContent(elem,slide){var _this2=$(elem).find("#slick-slide0"+slide+" .content");_this2.addClass("to-hide").removeClass("anim"),setTimeout(function(){_this2.closest(".slider-custom").find(".slide .content").removeClass("anim"),_this2.addClass("anim")},350)}})}),$(".featured-products > .inner").each(function(){var productsLine=$(this).closest(".featured-products").data("products-line"),animSpeed=parseInt($(this).closest(".featured-products").data("animation-speed"))*1e3;if(animSpeed==0)var animRun=!1;else var animRun=!0;$(window).width()<992&&(productsLine=3),$(window).width()<800&&(productsLine=2),$(this).slick({slidesToShow:productsLine,slidesToScroll:1,autoplay:animRun,autoplaySpeed:animSpeed})})),$(function(){$(document).ready(function(){$(window).width()<801&&$(".cart-dropdown").appendTo("body"),cartDropdownBuild()}),$(".cart-dropdown").on("click",".quantity .plus, .quantity .minus",function(){if(!$(this).closest(".quantity").hasClass("adding")){var quant=$(this).siblings("input").val();$(this).hasClass("plus")?quant++:$(this).hasClass("minus")&&quant--;var varId=$(this).closest(".prod").find(".remove").data("var-id"),_this=this;if(quant>0){let finishedChange2=function(cart){if(cart.items){cart.item_count&&$("header .header-icons .cart-link span.count").text("("+cart.item_count+")"),$(".cart-dropdown>.inner .total .value, [data-cart-total-price]").html(Shopify.formatMoney(cart.total_price,window.theme.moneyFormat).replace(" ",","));for(var i=0;i<cart.items.length;i++)if(cart.items[i].variant_id==varId){$(_this).closest("tr").find(".subtotal-price").html(Shopify.formatMoney(cart.items[i].line_price,window.theme.moneyFormat).replace(" ",","));var curQuant=$(_this).siblings("input").val();curQuant==cart.items[i].quantity&&(alert("All "+curQuant+" "+cart.items[i].sku+" in your cart"),quant=curQuant),$(_this).siblings("input").val(quant),$(_this).closest(".quantity").removeClass("adding")}}};var finishedChange=finishedChange2;$(this).closest(".quantity").addClass("adding"),Shopify.changeItem(varId,quant,finishedChange2)}}}),$(".cart-dropdown").on("click",".prod .content .remove",function(){var varId=$(this).data("var-id");return removeItemFromCart(varId,this),!1}),$("header .header-icons .cart-link").on("touchstart",function(){if($(window).width()<801)return $("body").toggleClass("slide-left"),$(".cart-dropdown").toggleClass("slide-left"),setTimeout(function(){$(".overlay-bg-body").fadeToggle(500)},350),!1}),$(".overlay-bg-body, .cart-dropdown .inner .header .close").on("click",function(){$("body").removeClass("slide-left"),$(".cart-dropdown").removeClass("slide-left"),$(".overlay-bg-body").fadeOut(500)}),$('div.sticky-header[data-section-id="header"]').length&&$(document).ready(function(){var header=$('div[data-section-id="header"]'),headerHeight=header.height();header.addClass("apply"),$(window).on("scroll",function(){var scrolled=window.pageYOffset||document.documentElement.scrollTop;scrolled>0&&!header.hasClass("border-bottom")?header.addClass("border-bottom"):scrolled==0&&header.removeClass("border-bottom")})}),$("header .header-icons .search-hover-link").on("mouseover",function(){$(this).addClass("hover")}),$("main, header nav ul.site-nav > li, header .header-icons .customer-links, header .header-icons .cart-link").on("mouseover",function(){$('header .header-icons .search-hover-link form.search-form input[type="search"]').val()==""&&$("header .header-icons .search-hover-link").removeClass("hover")}),$("body").on("mouseleave",".bc-sf-search-suggestion-wrapper",function(){$(".bc-sf-search-suggestion-popover, .bc-sf-search-suggestion").hide()}),$('header form[action="/search"] input[type="search"]').keyup(function(event){event.keyCode==13&&$(this).closest("form").trigger("submit")})}),$(window).width()<801?($("header nav ul.site-nav li a").on("click",function(){var subMenu=$(this).siblings(".site-nav__submenu");if(subMenu.length)return $(this).closest(".site-nav").addClass("active"),subMenu.addClass("active"),!1}
1),$("header nav ul.site-nav a.nav-back").on("click",function(){return $(this).closest(".site-nav").removeClass("active"),$(this).closest(".site-nav__submenu").removeClass("active"),!1}),$("header .menu-hamb").on("click",function(){$(this).toggleClass("active"),$(this).siblings("nav").toggleClass("active"),$(".overlay-bg-content").fadeToggle(500),$("body").toggleClass("to-back")})):$("header nav ul.site-nav > li > a").on("touchstart",function(){return $(this).addClass("hover").closest("li").siblings("li").find("a").removeClass("hover"),!1}),($("body").hasClass("template-collection")||$("body").hasClass("template-search"))&&$(function(){if($(".template-collection, .template-search").on("mouseover","#bc-sf-filter-products .bc-sf-filter-product-item",function(){var colorImages=$(this).find(".color-image"),colorsBlock=$(this).find(".product-colors"),_this=this;!colorImages.length&&colorsBlock.length&&colorsBlock.find("span.col:not(.no-img)").each(function(){var imgSrc=$(this).data("img");$(_this).append('<img class="color-image hide" src="'+imgSrc+'">')})}),$(".template-collection, .template-search").on("click","#bc-sf-filter-products .bc-sf-filter-product-item .product-colors span.col:not(.no-img)",function(){var mainImg=$(this).closest(".bc-sf-filter-product-item").find(".bc-sf-filter-product-item-image img");mainImg.attr("src",$(this).attr("data-img")),$(this).siblings("span.col").removeClass("active"),$(this).addClass("active")}),$(".template-collection .bc-sf-filter-left-col, .template-search .bc-sf-filter-left-col").on("click",".filter-close, .filter-fixed-header .header, .filter-fixed-header .close",function(){if($("body").find("#bc-sf-filter-tree-mobile-button").trigger("click"),$("body").removeClass("filter"),$('div.sticky-header[data-section-id="header"]').length)var headerHeight2=$('div[data-section-id="header"]').height();else var headerHeight2=0;$("html, body").animate({scrollTop:$(this).closest(".shopify-section").offset().top-headerHeight2-2},0)}),$("#bc-sf-filter-tree-mobile").on("click",function(){$("body").addClass("filter")}),$(".bc-sf-filter-left-col #bc-sf-filter-tree").length&&$(window).width()>800){var header=$('nav[role="navigation"]');if(header.length)var headerHeight=header.height()+40;else var headerHeight=40;var blockSelector=".bc-sf-filter-left-col #bc-sf-filter-tree",contentBlock=document.querySelector(".bc-sf-filter-left-col"),step=0;$(window).on("scroll",function(){step+=1;var filterHeight=$(blockSelector).height(),filterTop=contentBlock.getBoundingClientRect().top-headerHeight+30,contentBottom=document.querySelector(".bc-sf-filter-right-col").getBoundingClientRect().bottom-filterHeight;filterTop<0?contentBottom>headerHeight+30?$(blockSelector).addClass("fixed").removeClass("relative").css("top",headerHeight).css("height",$(window).height()-headerHeight):(-filterTop+contentBottom+headerHeight>0,$(blockSelector).removeClass("fixed").addClass("relative").css("top",-filterTop+contentBottom-headerHeight-30).css("height",$(window).height()-headerHeight)):$(blockSelector).removeClass("relative").removeClass("fixed")})}}),$("body").hasClass("template-product")){let onYouTubeIframeAPIReady2=function(){playerVideo=new YT.Player("playerVideo",{events:{onStateChange:onPlayerStateChange2}}),$("body").find(".main-prod-section .images-section iframe#playerVideo").length&&$(".main-prod-section .left-side .images-section .main-image").on("beforeChange",function(event,slick,currentSlide,nextSlide){playerVideo.stopVideo()})},onPlayerStateChange2=function(event){event.data==YT.PlayerState.PLAYING&&$(".main-prod-section .left-side .images-section .main-image").slick("slickPause")};var onYouTubeIframeAPIReady=onYouTubeIframeAPIReady2,onPlayerStateChange=onPlayerStateChange2;$(function(){function slickMain(elem){var speed=parseInt(elem.data("anim-speed")),anim=!0;speed||(anim=!1),elem.slick({arrows:!0,fade:!0,autoplay:anim,autoplaySpeed:speed*1e3,vertical:!1,slidesToShow:1,slidesToScroll:1,asNavFor:".main-prod-section .left-side .images-section .thumbnails"})}function slickThumb(elem){var vertical=!0,slides=8;$(window).width()<801&&(vertical=!1,slides=5),elem.slick({arrows:!0,slidesToShow:slides,slidesToScroll:1,vertical,verticalSwiping:vertical,focusOnSelect:!0,centerMode:!0,asNavFor:".main-prod-section .left-side .images-section .main-image"})}$(".main-prod-section .left-side .images-section .main-image").show(),slickMain($(".main-prod-section .left-side .images-section .main-image")),$(".main-prod-section .left-side .images-section .thumbnails").show(),slickThumb($(".main-prod-section .left-side .images-section .thumbnails")),$(".product-section-related-products .featured-products").each(function(){var productsLine=$(this).data("products-line");$(window).width()<992&&(productsLine=3),$(window).width()<800&&(productsLine=2);var animSpeed=parseInt($(this).data("animation-speed"))*1e3;if(animSpeed==0)var animRun=!1;else var animRun=!0;$(this).slick({arrows:!0,slidesToShow:productsLine,slidesToScroll:1,autoplay:animRun,autoplaySpeed:animSpeed})});var wId=$.cookie("wishlist-ids"),prodHandle=JSON.parse($("[data-product-json]").html()).handle;wId&&~$.inArray(prodHandle,wId.split(","))&&$(".wishlist-butt .note").html('In <a href="/pages/wishlist">Wishlist</a>').addClass("on-hover").siblings(".label").hide(),$(".template-product .quantity-block .plus-minus span").on("click",function(){var quant=$(this).siblings("input").val();typeof parseInt(quant)!="number"&&(quant=1),$(this).hasClass("plus")?quant++:$(this).hasClass("minus")&&quant--,quant&&$(this).siblings("input").val(quant)}),$(document).ready(function(){var swatchCount=$(".swatch input:checked").length;$(".swatch input:checked").each(function(){swatchCount=swatchCount-1,swatchCount==0&&$(this).trigger("change")})}),$(".product-section-sticky-header .block.prod-block .colors .col").on("click",function(){if(!$(this).hasClass("active")){$(this).addClass("active").siblings(".col").removeClass("active");var val=$(this).data("value");console.log("val = "+val+"; swatch name = "+$('.swatch :radio[value="'+val+'"]').attr("name")),$('.swatch :radio[value="'+val+'"] + label').trigger("click")}}),$(".swatch :radio").change(function(){var optionIndex=$(this).closest(".swatch").attr("data-option-index"),optionValue=$(this).val();$(this).closest(".swatch-element").hasClass("color")&&($(".main-prod-section .selection-section .swatch .header .color-title").text(optionValue),$('.product-section-sticky-header .block.prod-block .colors .col[data-value="'+optionValue+'"]').addClass("active").siblings(".col").removeClass("active")),$(this).closest("form").find("select[data-single-option-selector]").eq(optionIndex).val(optionValue).trigger("change");var curVal=[];$(".selection-section .swatch input:checked").each(function(){curVal.push($(this).val())});var allowChange=!1,arrAltes=[];if($(".main-prod-section .left-side .images-section .array-images .image").each(function(){var alt=$(this).data("alt"),index=$(this).index();~alt.indexOf(", ")&&(alt=alt.split(", ").join(",")),~alt.indexOf(" ,")&&(alt=alt.split(" ,").join(",")),~alt.indexOf(",")&&(alt=alt.split(","));for(var allAltsChecked=!0,i2=0;i2<curVal.length;i2++)~alt.indexOf(curVal[i2])||(allAltsChecked=!1);allAltsChecked&&(arrAltes.push(alt),allowChange=!0)}),allowChange){var thumbElem=$(".main-prod-section .left-side .images-section .thumbnails"),mainElem=$(".main-prod-section .left-side .images-section .main-image");$(".left-side .images-section").height($(".left-side .images-section").height());for(var i=0;i<$(".main-prod-section .left-side .images-section .array-images .image").length;i++)$(".main-prod-section .left-side .images-section .main-image, .main-prod-section .left-side .images-section .thumbnails").fadeOut(350),$(".main-prod-section .left-side .images-section .main-image, .main-prod-section .left-side .images-section .thumbnails").slick("unslick"),$(".main-prod-section .left-side .images-section .main-image, .main-prod-section .left-side .images-section .thumbnails").html("");setTimeout(function(){var arrayIndexes=[];$(".main-prod-section .left-side .images-section .array-images .image").each(function(){var dataAlt=$(this).data("alt");~dataAlt.indexOf(", ")&&(dataAlt=dataAlt.split(", ").join(",")),~dataAlt.indexOf(" ,")&&(dataAlt=dataAlt.split(" ,").join(",")),~dataAlt.indexOf(",")&&(dataAlt=dataAlt.split(","));for(var dataSrc=$(this).data("src"),dataSrcThumb=$(this).data("src").replace("800x","160x"),allAltsChecked=!0,i2=0;i2<curVal.length;i2++)~dataAlt.indexOf(curVal[i2])||(allAltsChecked=!1);if(allAltsChecked){if(~$(this).data("alt").indexOf("youtu.be"))var videoURL="https://www.youtube.com/embed"+$(this).data("alt").split("youtu.be")[1].split(" ")[0].split("?")[0]+"?enablejsapi=1",dataImg='<div class="image"><div class="rte__video-wrapper"><iframe id="playerVideo" width="854" height="480" src="'+videoURL+'" frameborder="0" allowfullscreen></iframe></div></div>';else var dataImg='<div class="image"><img src="'+dataSrc+'" alt="'+dataAlt+'"></div>';var dataImgThumb='<div class="image"><img src="'+dataSrcThumb+'" alt="'+dataAlt+'"></div>';$(".main-prod-section .left-side .images-section .main-image").append(dataImg),$(".main-prod-section .left-side .images-section .thumbnails").append(dataImgThumb)}}
1),thumbElem.find(".image").length<=8?thumbElem.addClass("not-swip"):thumbElem.removeClass("not-swip"),thumbElem.find(".image").length<=5?thumbElem.addClass("mobile-not-swip"):thumbElem.removeClass("mobile-not-swip"),$(".main-prod-section .left-side .images-section .main-image, .main-prod-section .left-side .images-section .thumbnails").fadeIn(650),setTimeout(function(){slickMain($(".main-prod-section .left-side .images-section .main-image")),slickThumb($(".main-prod-section .left-side .images-section .thumbnails")),(typeof YT>"u"||typeof YT.Player>"u")&&onYouTubeIframeAPIReady2(),setTimeout(function(){$(".left-side .images-section").height("auto")},500)},50)},350)}})});var tag=document.createElement("script");tag.src="https://www.youtube.com/iframe_api";var firstScriptTag=document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);var playerVideo=!1;$(".template-product .tab-mob-header").on("click",function(){$(this).siblings(".tab-mob-header").removeClass("active").next().hide(),$(this).toggleClass("active").next().toggle()}),$(".template-product .product-section-video").each(function(){$(this).find(".content .inner > *").each(function(){~$(this).attr("style").indexOf("background-color")?changeColor(this):$(this).find("> *").each(function(){~$(this).attr("style").indexOf("background-color")&&changeColor(this)})});function changeColor(_this){$(_this).closest(".content").css("background-color",$(_this).attr("style").split("background-color: ")[1].split(";")[0])}}),$(".template-product .product-section-faq .content .line .question").on("click",function(){$(this).closest(".line").toggleClass("active").siblings(".line").removeClass("active"),$(this).closest(".content").find(".line:not(.active) .answer").hide(),$(this).closest(".content").find(".line.active .answer").show()}),$(".product-section-details .image-video-section").length||($(".product-section-details").hide(),$(".product-section-sticky-header .block.details").hide(),$(".product-section-sticky-header .block.specs").addClass("with-padding"),$(".product-section-features-specs").length||$(".product-section-sticky-header .block.reviews").addClass("with-padding"),$(".judgeme-reviews-product-section").length||$(".product-section-sticky-header .block.downloads").addClass("with-padding"),$(".product-section-downloads").length||$(".product-section-sticky-header .block.faq").addClass("with-padding")),$(".product-section-features-specs").length||$(".product-section-sticky-header .block.specs").hide(),$(".judgeme-reviews-product-section").length||$(".product-section-sticky-header .block.reviews").hide(),$(".product-section-downloads").length||$(".product-section-sticky-header .block.downloads").hide(),$(".product-section-faq").length||$(".product-section-sticky-header .block.faq").hide();var haveStickHeadder=!1;($(".product-section-details .image-video-section").length||$(".product-section-features-specs").length||$(".product-section-downloads").length||$(".product-section-faq").length)&&(haveStickHeadder=!0),haveStickHeadder?($(window).on("load",function(){var headerOffset,topDetails,topSpecs,topReviews,topDownloads,topFAQ,topRelated,header=$(".product-section-sticky-header");if($('div.sticky-header[data-section-id="header"]').length)var headerHeight=$('div[data-section-id="header"]').height()+header.height();else var headerHeight=header.height();headerOffset=header.offset().top;function findTopBlocks(){$(".product-section-details").length&&(topDetails=$(".product-section-details").offset().top-headerHeight),$(".product-section-features-specs").length&&(topSpecs=$(".product-section-features-specs").offset().top-headerHeight),$(".judgeme-reviews-product-section").length&&(topReviews=$(".judgeme-reviews-product-section").offset().top-headerHeight),$(".product-section-downloads").length&&(topDownloads=$(".product-section-downloads").offset().top-headerHeight),$(".product-section-faq").length&&(topFAQ=$(".product-section-faq").offset().top-headerHeight),$(".product-section-related-products").length?topRelated=$(".product-section-related-products").offset().top-headerHeight:topRelated=$("#shopify-section-footer").offset().top-headerHeight}findTopBlocks(),setTimeout(function(){findTopBlocks()},1500),$(".template-product").on("click",".product-section-features-specs .header > div.no-line",function(){$(this).removeClass("no-line"),$(this).siblings("div").addClass("no-line"),$(this).closest(".product-section-features-specs").find(".content").hide(),$(this).closest(".product-section-features-specs").find(".content."+$(this).data("title")).show(),findTopBlocks()});var activeBlock="details";header.css("top",$('div[data-section-id="header"]').height());var onceCheck=!0;$(window).on("scroll",function(){var scrolled=window.pageYOffset||document.documentElement.scrollTop;scrolled>headerOffset&&!header.hasClass("sticky")?(onceCheck&&(header.css("top",$('div[data-section-id="header"]').height()),onceCheck=!1),$(".pre-product-section-sticky-header").height(header.height()).show(),header.addClass("sticky"),$(".template-product .product-section-sticky-header.sticky .block.prod-block .price").text($("span[data-product-price]:first").text())):scrolled<headerOffset&&($(".pre-product-section-sticky-header").hide(),header.removeClass("sticky")),scrolled>topDetails&&(activeBlock="details"),scrolled>topSpecs&&(activeBlock="specs"),scrolled>topReviews&&(activeBlock="reviews"),scrolled>topDownloads&&(activeBlock="downloads"),scrolled>topFAQ&&(activeBlock="faq"),scrolled>topRelated&&(activeBlock="none"),header.find(".block."+activeBlock).addClass("active").siblings(".block").removeClass("active")})}),$(".template-product .product-section-sticky-header .block .header").on("click",function(){var block=$(this).data("block");if($('div.sticky-header[data-section-id="header"]').length)var headerHeight=$('div[data-section-id="header"]').height()+$(".product-section-sticky-header").height();else var headerHeight=$(".product-section-sticky-header").height();$("html, body").animate({scrollTop:$(block).offset().top-headerHeight+5},1500)}),$(".template-product .product-section-sticky-header .block.prod-block a.add-to-cart-custom").on("click",function(){return $(".right-side button[data-add-to-cart]").trigger("click"),!1})):$(".template-product .product-section-sticky-header").hide()}$("body").find(".downloads-search-page").length&&$(".downloads-search-page .inner .load-more .custom-button a").on("click",function(){var pagLink=$(".pagination .next a");return pagLink.attr("href")&&$.ajax({url:pagLink.attr("href"),dataType:"HTML"}).always(function(page){var gridItems=$(page).find(".downloads-search-page .inner .prod-grid ul li"),paginNextLink=$(page).find(".pagination .next a");gridItems.length&&(gridItems.hide(),$(".downloads-search-page .inner .prod-grid ul").append(gridItems),gridItems.fadeIn(500)),paginNextLink.length?$(".pagination").html($(page).find(".pagination").html()):$(".downloads-search-page .inner .load-more").hide()}),!1}),($("body").find(".contact-page").length||$("body").find(".contact-partners").length)&&$(document).ready(function(){var n1=Math.round(Math.random()*10+1),n2=Math.round(Math.random()*10+1);$(".captcha .question").text(n1+" + "+n2),$(".contact-form").submit(function(e){if(Number($(".captcha .question").text())!=Number($("#answer").val()))return $("#answer").css("box-shadow","0px 0px 7px red"),e.preventDefault(),!1});var interval=setInterval(function(){var elem=$("#aaa-form-builder form");elem.length&&(elem.find(".fb-submit button").wrap('<div class="custom-button"></div>'),elem.find(".form-group.field-form-message").css("width","100%"),elem.find(".form-group.field-form-message textarea").attr("rows","10"),clearInterval(interval))},500)}),$("body").find(".contact-partners").length&&$(function(){$(".contact-partners .content-section .left-side .form .checkboxes .custom-checkbox").on("click",function(){$(this).prev("input").trigger("click")}),$("#contact_form").on("submit",function(){if($(".contact-partners .form .checkboxes input:checked").length)$(".contact-partners .form .checkboxes").removeClass("not-checked");else{if($('div.sticky-header[data-section-id="header"]').length)var headerHeight=$('div[data-section-id="header"]').height();else var headerHeight=0;return $(".contact-partners .form .checkboxes").addClass("not-checked"),$(".contact-partners .form .checkboxes").length&&$("html, body").animate({scrollTop:$(".contact-partners .form .checkboxes").offset().top-headerHeight-2},500),!1}}),$(document).ready(function(){var interval=setInterval(function(){var elem=$("#aaa-form-builder form");elem.length&&(elem.find(".fb-submit button").wrap('<div class="custom-button"></div>'),elem.find(".form-group.field-form-message").css("width","100%"),elem.find(".form-group.field-form-message textarea").attr("rows","10"),elem.find(".form-group.field-business-describe-name textarea").attr("rows","8"),clearInterval(interval),elem.find(".checkbox-group").find("input").after('<div class="custom-checkbox"></div>'),elem.find(".checkbox-group").find("br").remove())},500)})}),$("body").hasClass("template-cart")&&($("td.quantity .quant-line").on("click",".plus, .minus",function(){var quant=$(this).siblings("input").val(),maxQuant=parseInt($(this).closest("tr").data("max-quant")),title=$
1(this).closest("tr").find("td.title a").text();$(this).hasClass("plus")?quant++:$(this).hasClass("minus")&&quant--;var varId=$(this).closest("tr").data("var-id"),_this=this;if(quant>0){let finishedChange2=function(cart){$("header .header-icons .cart-link span.count").text("("+cart.item_count+")"),$(".cart-dropdown>.inner .total .value, [data-cart-total-price]").html(Shopify.formatMoney(cart.total_price,window.theme.moneyFormat).replace(" ",","));for(var i=0;i<cart.items.length;i++)cart.items[i].variant_id==varId&&($(_this).closest("tr").find(".subtotal-price").html(Shopify.formatMoney(cart.items[i].line_price,window.theme.moneyFormat).replace(" ",",")),$(_this).siblings("input").val(quant),cartDropdownBuild())};var finishedChange=finishedChange2;quant>maxQuant&&(alert("All "+maxQuant+" "+title+" in your cart"),quant=maxQuant),Shopify.changeItem(varId,quant,finishedChange2)}}),$("td.quantity .quant-line").on("change","input",function(){var quant=parseInt($(this).val());(!quant||quant==0)&&(quant=1);var maxQuant=parseInt($(this).closest("tr").data("max-quant")),title=$(this).closest("tr").find("td.title a").text(),varId=$(this).closest("tr").data("var-id"),_this=this;quant>maxQuant&&(alert("All "+maxQuant+" "+title+" in your cart"),quant=maxQuant),Shopify.changeItem(varId,quant,finishedChange);function finishedChange(cart){$("header .header-icons .cart-link span.count").text("("+cart.item_count+")"),$(".cart-dropdown>.inner .total .value, [data-cart-total-price]").html(Shopify.formatMoney(cart.total_price,window.theme.moneyFormat).replace(" ",","));for(var i=0;i<cart.items.length;i++)cart.items[i].variant_id==varId&&($(_this).closest("tr").find(".subtotal-price").html(Shopify.formatMoney(cart.items[i].line_price,window.theme.moneyFormat).replace(" ",",")),$(_this).val(quant),cartDropdownBuild())}}),$(".template-cart .cart-page").on("click","td.remove a",function(){var varId=$(this).closest("tr").data("var-id");return removeItemFromCart(varId,this),!1})),$(function(){$(".blog-section").on("click",".content-section .articles .load-more .custom-button",function(){var nextPagin=$(".pagination").find(".next a");return nextPagin&&nextPagin.attr("href")&&$.ajax({url:nextPagin.attr("href"),dataType:"HTML"}).always(function(blog){var articles=$(blog).find(".content-section .articles .inner .article"),pagin=$(blog).find(".content-section .articles .pagination");articles.hide(),$(".content-section .articles .inner").append(articles),articles.fadeIn(500),$(".content-section .articles .pagination").html(pagin.html()),pagin.find(".next a").length||$(".content-section .articles .load-more").hide()}),!1}),$(".blog-section").on("click",".content-section aside.sidebar ul li a:not(.active), .content-section aside.sidebar h2 a, .content-section .article .tags .tag",function(){$(".content-section aside.sidebar ul li").removeClass("active");var tag2=$(this).data("tag")||$(this).closest("li").data("tag");if($('.content-section aside.sidebar li[data-tag="'+tag2+'"').addClass("active"),$(this).attr("href")!="#"){$(".content-section .articles").fadeOut(350);var url=$(this).attr("href");$.ajax({url,dataType:"HTML"}).always(function(blog){var blogContent=$(blog).find(".content-section .articles");setTimeout(function(){$(".content-section .articles").html(blogContent.html()),$(".content-section .articles").fadeIn(500)},50)}),history.pushState(null,null,$(this).attr("href"))}return!1})}),$(function(){$(".work-page-section .jobs-section .job .inner .button .custom-button a").on("click",function(){var workPosition=$(this).closest(".job").find(".content h3").text();return $(".apply-work-popup .position").text(workPosition),$(".apply-work-popup #ContactFormMessage").text("Applied for position "+workPosition),$(".work-frame").attr("data-position","Applied for position "+workPosition),$(".pre-work-popup").fadeIn(250),$(".apply-work-popup").fadeIn(250),!1}),$(".pre-work-popup, .apply-work-popup .close, .success-popup .close").on("click",function(){$(".pre-work-popup").fadeOut(250),$(".apply-work-popup, .success-popup").fadeOut(250)}
1),$(document).ready(function(){$(".apply-work-popup .check-success.errors").length?($(".pre-work-popup").fadeIn(250),$(".apply-work-popup").fadeIn(250)):$(".apply-work-popup .check-success.success").length&&($(".pre-work-popup").fadeIn(250),$(".success-popup").fadeIn(250))})}),$(function(){$(document).ready(function(){console.clear();var wId=$.cookie("wishlist-ids");$.removeCookie("wishlist-ids",{path:"/"}),$.cookie("wishlist-ids",wId,{expires:365,path:"/"})}),$(".menu#sidebar-custom li:not(.header) a").on("click",function(){if(!$(this).closest("li").hasClass("active")){$(this).closest("li").addClass("active").siblings("li").removeClass("active"),$(window).width()<991&&$(this).closest(".menu").removeClass("active").find("li.header a").text($(this).text());var targetSection=$(this).data("target");if(targetSection&&targetSection.length)return $(".customer-area .inner .content-side > div").hide(),$(".customer-area .inner .content-side > div."+targetSection).show(),!1}}),$(".menu#sidebar-custom li.header a").on("click",function(){return $(this).closest(".menu").toggleClass("active"),!1}),$(document).click(function(e){var elem=$(".menu#sidebar-custom li.header a");e.target!=elem[0]&&!elem.has(e.target).length&&elem.closest(".menu").removeClass("active")})}),$('.custom-checkbox input[type="checkbox"]').on("change",function(){$(this).is(":checked")?$(this).closest("form").find(".custom-button, button.btn").removeClass("style-white"):$(this).closest("form").find(".custom-button, button.btn").addClass("style-white")}),$(function(){$(".sub-footer .cur-select .header, .store-locator-pop-up .fade, .store-locator-pop-up .close").on("click",function(){if(console.log("click"),$(".store-locator-pop-up").toggleClass("show"),$(this).hasClass("close")||$(this).hasClass(".fade")){var date=new Date;date.setDate(date.getDate()+365),setCookie("countrySelector","cancel",{expires:date,path:"/"})}}),$("footer.cust-cont .inner .footer-menu h4").on("click",function(){$(this).toggleClass("active").closest(".footer-menu").siblings(".footer-menu").find("h4").removeClass("active"),$(this).closest(".footer-menu").find("ul").toggleClass("active").siblings(".footer-menu").find("ul").removeClass("active")})}),$(function(){if($("body").on("click",".wishlist-butt svg, .wishlist-butt img, .wishlist-butt span.label",function(){var wId=$.cookie("wishlist-ids"),expires=1,customer=$(this).parent().data("customer");if((customer=="true"||customer==!0)&&(expires=365),$(this).siblings(".note").hasClass("on-hover")){var cookieArray=wId.split(","),handle=$(this).closest(".wishlist-butt").data("id");cookieArray.splice(cookieArray.indexOf(handle),1),$.cookie("wishlist-ids",cookieArray.join(),{expires,path:"/"}),$(this).siblings(".note").removeClass("on-hover")}else wId&&wId.split(",").length<20||!wId?!wId||wId==null||wId=="null"?($.cookie("wishlist-ids",$(this).parent().data("id"),{expires,path:"/"}),$(this).siblings(".note").html('In <a href="/pages/wishlist">Wishlist</a>').addClass("on-hover").siblings(".label").hide()):~$.inArray($(this).parent().data("id"),wId.split(","))?$(this).siblings(".note").html('In <a href="/pages/wishlist">Wishlist</a>').addClass("on-hover").siblings(".label").hide():($.cookie("wishlist-ids",wId+","+$(this).parent().data("id"),{expires,path:"/"}),$(this).siblings(".note").html('In <a href="/pages/wishlist">Wishlist</a>').addClass("on-hover").siblings(".label").hide()):wId.split(",").length>=20&&$(this).siblings(".note").html('You can add only 20 products to <a href="/pages/wishlist">Wishlist</a>').addClass("on-hover").siblings(".label").hide()}),$(".section-page-wishlist").length){var wishListIds=$.cookie("wishlist-ids");if(wishListIds){$(".section-page-wishlist .content-section .notif .access").show();for(var stepW=0,i=0;i<wishListIds.split(",").length+1;i++)wishListIds.split(",")[i]&&wishListIds.split(",")[i].length&&$.ajax({url:"/products/"+wishListIds.split(",")[i]+".json",dataType:"JSON",success:function(data){var product=data.product;console.dir(product);var photo=product.image.src.split("?")[0].replace(".jpg","_480x.jpg").replace(".jpeg","_480x.jpeg").replace(".png","_480x.png").replace(".gif","_480x.gif"),sku=product.variants[0].sku,title=product.title,url="/products/"+product.handle,id=product.id,price=product.variants[0].price,priceOld=product.variants[0].compare_at_price,varId=product.variants[0].id,handle=product.handle,block=$("body").find(".products-section .test-wihlist-prod-block").clone();block.find(".thumb a").attr("href",url).find("img").attr("src",photo),block.find("h4.sku a").attr("href",url).text(sku),block.find("h5.title a").attr("href",url).text(title),block.find(".remove_item_button_new").attr("data-handle",handle),block.find(".price.money").text(Shopify.formatMoney(price*100,window.theme.moneyFormat).replace(" ",",")),priceOld&&block.find(".money.crossout-line").text(Shopify.formatMoney(priceOld*100,window.theme.moneyFormat).replace(" ",",")).show(),block.find('input[name="id"]').val(varId),block.removeClass("test-wihlist-prod-block"),$("body").find(".products-section").append(block),stepW++},error:function(){stepW++}})}else $(".section-page-wishlist .content-section .notif .no-products").show(),$(".section-page-wishlist .products-section").hide();$("body").on("click",".remove_item_button_new",function(){var expires=1,customer=$(this).closest(".wihlist-prod-block").data("customer");(customer=="true"||customer==!0)&&(expires=365);var cookieArray=$.cookie("wishlist-ids").split(","),handle=$(this).data("handle");cookieArray.splice(cookieArray.indexOf(handle),1),$.cookie("wishlist-ids",cookieArray.join(),{expires,path:"/"}
1),$(this).closest(".wihlist-prod-block").slideUp(500);var _this=this;return setTimeout(function(){$(_this).closest(".wihlist-prod-block").remove(),$("body").find(".wihlist-prod-block").length==1&&$(".section-page-wishlist .content-section .notif .no-products").show().siblings(".access").hide()},500),!1}),$("body").on("click",".wihlist-prod-block .minus, .wihlist-prod-block .plus",function(e){var val=parseInt($(this).siblings("input").val());$(this).hasClass("minus")&&val>1?$(this).siblings("input").val(val-1):$(this).hasClass("plus")&&$(this).siblings("input").val(val+1)})}});function cartDropdownBuild(){$.get({url:"/cart.js",dataType:"json",type:"GET"}).always(function(data){if(data.item_count&&$("header .header-icons .cart-link span.count").text("("+data.item_count+")"),$(".cart-dropdown>.inner .total .value, [data-cart-total-price]").html(Shopify.formatMoney(data.total_price,window.theme.moneyFormat).replace(" ",",")),$(".cart-dropdown .products .prod:not(.blank)").remove(),data.items&&data.items.length){for(var i=0;i<data.items.length;i++){var prodBlock=$(".cart-dropdown .products .prod.blank").clone(),prod=data.items[i],title=prod.sku,price=Shopify.formatMoney(prod.price,window.theme.moneyFormat).replace(" ",","),image=Shopify.resizeImage(prod.image,"150x"),url=prod.url,quantity=prod.quantity,varId=prod.variant_id;prodBlock.find(".title a").html(title),prodBlock.find("a").attr("href",url),prodBlock.find(".content .price").html(price),prodBlock.find(".image img").attr("src",image),prodBlock.find(".content .quantity input").val(quantity),prodBlock.find(".content .remove").attr("data-var-id",varId),prodBlock.removeClass("blank"),prodBlock.appendTo($(".cart-dropdown .products"))}data.items.length?($(".cart-dropdown > .inner").removeClass("hide"),$(".cart-dropdown > .inner-empty").addClass("hide")):($(".cart-dropdown > .inner").addClass("hide"),$(".cart-dropdown > .inner-empty").removeClass("hide"))}})}$("body").on("submit",'form[action="/cart/add"]',function(){console.log("submit");var varId=$(this).find('*[name="id"]').val(),quant=parseInt($(this).find('input[name="quantity"]').val()),button=$(this).find("button[data-add-to-cart], .add-to-cart-custom");button.text("Adding.."),console.log("varId = "+varId+"; quant = "+quant),Shopify.addItem(varId,quant,run);function run(data){if(data&&data.quantity){var curTotalValue=parseInt($("header .header-icons .cart-link span.count").text().split("(")[1].split(")")[0]);$("header .header-icons .cart-link span.count").text("("+(curTotalValue+quant)+")"),
1cartDropdownBuild(),button.text("Thank you!"),setTimeout(function(){button.text("Add to Cart")},2e3),$(window).width()<801?setTimeout(function(){$('div[data-section-id="header"] header .header-icons .cart-link').trigger("touchstart")},250):setTimeout(function(){$('div[data-section-id="header"] header .header-icons .cart-link').addClass("hover"),setTimeout(function(){$('div[data-section-id="header"] header .header-icons .cart-link').removeClass("hover")},2e3)},500)}else data.status==422&&(alert(data.responseJSON.description),button.text("Add to Cart"))}return!1});function removeItemFromCart(id,_this){Shopify.removeItem(id,removed);function removed(cart){$("header .header-icons .cart-link span.count").text("("+cart.item_count+")"),cart.item_count==0?($(".cart-dropdown > .inner").addClass("hide"),$(".cart-dropdown > .inner-empty").removeClass("hide"),$(".template-cart .cart-content").addClass("hide"),$(".template-cart .cart-content.empty-cart").removeClass("hide")):($(".cart-dropdown .products .prod").each(function(){var prodVarId=$(this).find(".remove").data("var-id");prodVarId==id&&$(this).slideUp(400)}),$(_this).closest("tr").slideUp(400),$(".cart-dropdown>.inner .total .value, [data-cart-total-price]").html(Shopify.formatMoney(cart.total_price,window.theme.moneyFormat).replace(" ",",")))}}$(document).ready(function(){var href=window.location.href;~href.indexOf("customer_posted=true")&&setTimeout(function(){$("form#new-contact-form, footer form#contact_form,  .subscription-section form#contact_form").find(".form-success").addClass("hide").next(".hide").removeClass("hide")},5e3)}),$(window).load(function(){matchHeightCustom(".matchHeight",".matchThis")});function matchHeightCustom(matchHeight,mathThis){$(matchHeight).each(function(){var height=0,maxHeight=0;$(this).find(mathThis).each(function(){height=$(this).height(),maxHeight<height&&(maxHeight=height)}),$(this).find(mathThis).each(function(){$(this).css("height",maxHeight)})})}function setCookie(name,value,options){options=options||{};var expires=options.expires;if(typeof expires=="number"&&expires){var d=new Date;d.setTime(d.getTime()+expires*1e3),expires=options.expires=d}expires&&expires.toUTCString&&(options.expires=expires.toUTCString()),value=encodeURIComponent(value);var updatedCookie=name+"="+value;for(var propName in options){updatedCookie+="; "+propName;var propValue=options[propName];propValue!==!0&&(updatedCookie+="="+propValue)}document.cookie=updatedCookie}function getCookie(name){var matches=document.cookie.match(new RegExp("(?:^|; )"+name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return matches?decodeURIComponent(matches[1]):void 0}function Confirm(shipping,fast_delivery,$true,$false,$link){var $content="<div class='dialog-ovelay'><div class='dialog'><div class='dialog-msg'> <h2 class='shipping'> "+shipping+" </h2>  <p class='fast-delivery'> "+fast_delivery+" </p> </div><div class='footer'><div class='controls'> <button class='button button-stay-on cancelAction'>"+$false+"</button>  <button class='button button-go-to doAction'>"+$true+"</button> </div></div></div></div>";$("body").prepend($content),$(".doAction").click(function(){window.open($link,"_self"),$(this).parents(".dialog-ovelay").fadeOut(500,function(){$(this).remove()})}),$(".cancelAction").click(function(){$(this).parents(".dialog-ovelay").fadeOut(500,function(){$(this).remove()});let date=new Date;date.setDate(date.getDate()+1),setCookie("localization-region","No",{expires:date})})}$(function(){var main_region="AE",current_ip="",current_country="",current_ip="";$.getJSON("https://ipapi.co/json",function(response){current_ip=response.ip;var returnUrl="",returnText="",stay_on_site="",go_to_site="",shipping="",fast_delivery="",url="https://cors-anywhere.herokuapp.com/http://www.geoplugin.net/json.gp?ip="+current_ip;$.ajax({url,type:"GET",dataType:"json",success:function(response2){current_ip=response2.geoplugin_request,current_country=response2.geoplugin_countryName,response2.geoplugin_countryCode!=main_region&&(response2.geoplugin_countryCode=="ID"?(returnText="Go To Promate Indonesia",returnUrl="https://www.promate.id/",stay_on_site="Stay on Promate.net",go_to_
1site="Go to Promate.id",shipping="Shopping from Indonesia? Looking for great Deals?",fast_delivery="Fast Delivery.. Easy Returns",getCookie("localization-region")!="No"&&Confirm(shipping,fast_delivery,go_to_site,stay_on_site,returnUrl)):response2.geoplugin_countryCode=="PH"?(returnText="Go To Promate Philippines",returnUrl="https://www.promate.ph/",stay_on_site="Stay on Promate.net",go_to_site="Go to Promate.ph",shipping="Shopping from Philippines? Looking for great Deals?",fast_delivery="Fast Delivery.. Easy Returns",getCookie("localization-region")!="No"&&Confirm(shipping,fast_delivery,go_to_site,stay_on_site,returnUrl)):response2.geoplugin_countryCode=="MY"||response2.geoplugin_countryCode=="MYS"?(returnText="Go To Promate Malaysia",returnUrl="https://www.promate.my/",stay_on_site="Stay on Promate.net",go_to_site="Go to Promate.my",shipping="Shopping from Malaysia? Looking for great Deals?",fast_delivery="Fast Delivery.. Easy Returns",getCookie("localization-region")!="No"&&Confirm(shipping,fast_delivery,go_to_site,stay_on_site,returnUrl)):(response2.geoplugin_countryCode=="BD"||response2.geoplugin_countryCode=="BGD")&&(returnText="Go To Promate Bangladesh",returnUrl="https://www.promate.com.bd/",stay_on_site="Stay on Promate.net",go_to_site="Go to Promate.com.bd",shipping="Shopping from Bangladesh? Looking for great Deals?",fast_delivery="Fast Delivery.. Easy Returns",getCookie("localization-region")!="No"&&Confirm(shipping,fast_delivery,go_to_site,stay_on_site,returnUrl)),console.log(returnUrl))}})})}),$(window).load(function(){$(".se-pre-con").fadeOut("slow"),$(window).width()<=960&&($(".click-show-filter").click(function(){console.log("test filter show"),$("#bc-sf-filter-wrapper .bc-sf-filter-left-col #bc-sf-filter-tree").addClass("bc-sf-filter-tree"),$(".fixed.bc-sf-filter-tree").show()}),$(".close-filter, .close-filter-close").click(function(){$("#bc-sf-filter-tree").hide()})),$(".bc-sf-filter-block-title").click(function(){$(this).next().slideToggle("slow")})});
2//# sourceMappingURL=/cdn/shop/t/2/assets/custom.js.map?v=113270597107784986481675851819

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.