1(function($2){$2(document).ready(function(){rv.init()});function getCookie(cname){for(var name=cname+"=",decodedCookie=decodeURIComponent(document.cookie),ca=decodedCookie.split(";"),i=0;i<ca.length;i++){for(var c=ca[i];c.charAt(0)==" ";)c=c.substring(1);if(c.indexOf(name)==0)return c.substring(name.length,c.length)}return""}var rv={init:function(){this.HeaderSearchForm(),this.Ajaxwish()},Ajaxwish:function(id,quantity,modal){$2("body").on("click",".addtowish-item-js",function(e){var product_handle=$2(this).attr("id");rv.addTowish(e,product_handle)})},addTowish:function(e,product_handle){var _this=$2(this);e.preventDefault();var product_handlers=getCookie("wish_productids");_this.addClass("loading");for(var objhandler=product_handlers.toString().split("$$"),IsCookie=!1,i=0;i<objhandler.length-1;i++)if(objhandler[i]==product_handle){IsCookie=!0;break}IsCookie||(document.cookie="wish_productids ="+product_handlers+product_handle+"$$;path=/;expires="),_this.removeClass("loading")},HeaderSearchForm:function(){var ajaxRequest=null,form=$2(".jas-header-search form");$2("#search-input").keyup(function(){var searchResult=$2("#search-result-print"),term=$2("#search-input").val();if(term!=""){var searchURL="/search?type=product,article,page&q="+term+"*&ajax=true";document.cookie="search_using_ajax = true",form.addClass("loading"),autocomplete="off",ajaxRequest!=null&&ajaxRequest.abort(),ajaxRequest=$2.get(searchURL+"&view=json",function(data){searchResult.html($2(data).find("#ajax_search").html())}).always(function(){form.removeClass("loading"),document.cookie="search_using_ajax = false"})}$2("body").bind("click",function(){form.removeClass("loading")})})}};$2("body").on("click",".addtowish-item-js",function(e){e.preventDefault();var product_handle=$2(this).attr("id");rv.addTowish(e,product_handle)})})(jQuery),$(document).ready(function(){"use strict";setSlickGallery($(".carousel-menu-1"),5,5,4,3,2,"carousel"),$(window).trigger("resize"),setTimeout(function(){$("#pageContent").addClass("show"),$(".breadcrumbs").length&&$(".breadcrumbs").addClass("show")},0)});function setSlickGallery(value){if(value.length==0)return!1;var arr=$.makeArray(arguments),fn=window[arr[arr.length-1]];typeof fn=="function"&&fn(arr[0],arr[1],arr[2],arr[3],arr[4],arr[5])}(function(){var timeout1=!1,set_dropdown_maxH=function(){var wind_H=window.innerHeight,$menu=$(this).find(".dropdown-menu"),menu_top=$menu.get(0).getBoundingClientRect().top,menu_max_H=wind_H-menu_top,$menu_H=$menu.innerHeight(),$btn_top=$(".back-to-top");if($menu_H>menu_max_H){var $body=$("body"),$stuck=$(".stuck-nav");$menu.css({maxHeight:menu_max_H-100,overflow:"auto"});var scrollWidth=function(){var $div=$("<div>").css({overflowY:"scroll",width:"50px",height:"50px",visibility:"hidden"}),scrollWidth2=$div.get(0).offsetWidth-$div.get(0).clientWidth;return scrollWidth2};$body.css({}),$stuck.css({}),$btn_top.css({})}};$(".nav-megamenu, .menu-vertical nav").length>0&&($(document).on({mouseenter:function(){var $this=$(this),that=this;timeout1=setTimeout(function(){var $carousel=$this.find(".carousel-menu-1.header-menu-product"),$menu=$this.find(".dropdown-menu");if($this.find(".dropdown-menu").stop(),$menu.length&!$menu.hasClass("one-col")&&set_dropdown_maxH.call(that),$carousel.length){$carousel.hasClass("slick-initialized")?$carousel.slick("setPosition"):setSlickGallery($carousel,2,2,2,2,2,"carousel");var obgCarusel=$(".nav-megamenu .header-menu-product");if(obgCarusel.length){var widthCarusel=obgCarusel.parent().width(),widthCarusel=widthCarusel-8;obgCarusel.css({width:widthCarusel})}}})},mouseleave:function(e){var $this=$(this),$dropdown=$this.find(".dropdown-menu");$(e.target).parents(".dropdown-menu").length&&!$(e.target).parents(".megamenu-submenu").length&&!$(e.target).parents(".one-col").length||(timeout1!==!1&&(clearTimeout(timeout1),timeout1=!1),$dropdown.length?$dropdown.stop().fadeOut({duration:0,complete:function(){$this.find(".dropdown-menu")}}):$this.find(".dropdown-menu"),$dropdown.removeAttr("style"),$("body").removeAttr("style"))}},".nav-megamenu li, .menu-vertical nav li"),$(".multicolumn ul li").hover(function(){var $ul=$(this).find("ul:first");
1if($ul.length){var windW=window.innerWidth,windH=window.innerHeight,ulW=parseInt($ul.css("width")),thisR=this.getBoundingClientRect().right,thisL=this.getBoundingClientRect().left;windW-thisR<ulW?$ul.removeClass("left").addClass("right"):thisL<ulW?$ul.removeClass("right").addClass("left"):$ul.removeClass("left right"),$ul.stop(!0,!0).fadeIn(300)}},function(){$(this).find("ul:first").stop(!0,!0).fadeOut(300).removeAttr("style")}),$(".megamenu-submenu li").hover(function(){var $ul=$(this).find("ul:first");if($ul.length){var $dropdownMenu=$(this).parents(".nav-megamenu").find(".dropdown-menu"),dropdown_left=$dropdownMenu.get(0).getBoundingClientRect().left,dropdown_Right=$dropdownMenu.get(0).getBoundingClientRect().right,dropdown_Bottom=$dropdownMenu.get(0).getBoundingClientRect().bottom,ulW=parseInt($ul.css("width")),thisR=this.getBoundingClientRect().right,thisL=this.getBoundingClientRect().left;dropdown_Right-20-thisR<ulW?$ul.removeClass("left").addClass("right"):thisL-ulW-20<dropdown_left?$ul.removeClass("right").addClass("left"):$ul.removeClass("left right"),$ul.stop(!0,!0).fadeIn(300);var ul_bottom=$ul.get(0).getBoundingClientRect().bottom;if(dropdown_Bottom<ul_bottom){var move_top=dropdown_Bottom-ul_bottom;$ul.css({top:move_top})}}},function(){$(this).find("ul:first").stop(!0,!0).fadeOut(300).removeAttr("style")}),$(".megamenu div").hover(function(){$(this).children(".title-underline").addClass("active")},function(){$(this).children(".title-underline").removeClass("active")})),$(".menu-vertical nav").length>0&&$(".menu-vertical nav li:not(.multicolumn)").hover(function(){var $this=$(this),menuVerticalHeight=$(".menu-vertical").innerHeight(),menuVerticalPopupHeight=$(this).find(".dropdown-menu").innerHeight();menuVerticalHeight>=menuVerticalPopupHeight&&$(this).find(".dropdown-menu").css({minHeight:menuVerticalHeight})},function(){$(this).find(".dropdown-menu").removeAttr("style")});function onscroll_dropdown_hover(){var $dropdown_active=$(".dropdown.hover");$dropdown_active.find(".dropdown-menu").not(".one-col").length&&$dropdown_active.length&&set_dropdown_maxH.call($dropdown_active)}$(window).on("scroll",function(){onscroll_dropdown_hover()})})(); 2//# sourceMappingURL=/cdn/shop/t/2/assets/rv-ajax-search.js.map?v=84528958636383047091601139195
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.