1(function($){$.fn.stellarNav=function(options,width,breakpoint){var $nav,$width,$breakpoint,$parentItems;nav=$(this),width=$(window).width();var settings=$.extend({theme:"plain",breakpoint:768,menuLabel:"Menu",sticky:!1,position:"static",openingSpeed:250,closingDelay:250,showArrows:!0,phoneBtn:"",locationBtn:"",closeBtn:!1,mobileMode:!1,scrollbarFix:!1},options);return this.each(function(){if((settings.theme=="light"||settings.theme=="dark")&&nav.addClass(settings.theme),settings.breakpoint&&(breakpoint=settings.breakpoint),settings.menuLabel?menuLabel=settings.menuLabel:menuLabel="",settings.phoneBtn&&settings.locationBtn)var cssClass="third";else if(settings.phoneBtn||settings.locationBtn)var cssClass="half";else var cssClass="";if(settings.position=="right"||settings.position=="left"?nav.prepend('<a href="#" class="menu-toggle"><span class="bars"><span></span><span></span><span></span></span> '+menuLabel+"</a>"):nav.prepend('<a href="#" class="menu-toggle '+cssClass+'"><span class="bars"><span></span><span></span><span></span></span> '+menuLabel+"</a>"),settings.sticky&&(navPos=nav.offset().top,width>=breakpoint&&$(window).bind("scroll",function(){$(window).scrollTop()>navPos?nav.addClass("fixed"):nav.removeClass("fixed")})),settings.position=="top"&&nav.addClass("top"),settings.position=="left"||settings.position=="right"){var closeBtn='<a href="#" class="close-menu '+cssClass+'"><span class="icon-close"></span></a>',phoneBtn="",locationBtn="";nav.find("ul:first").prepend(closeBtn),settings.locationBtn&&nav.find("ul:first").prepend(locationBtn),settings.phoneBtn&&nav.find("ul:first").prepend(phoneBtn)}settings.position=="right"&&nav.addClass("right"),settings.position=="left"&&nav.addClass("left"),settings.showArrows||nav.addClass("hide-arrows"),settings.closeBtn&&!(settings.position=="right"||settings.position=="left")&&nav.find("ul:first").append('<li><a href="#" class="close-menu"><i class="fa fa-close"></i> Close Menu</a></li>'),settings.scrollbarFix&&$("body").addClass("stellarnav-noscroll-x");var phoneIcon=document.getElementById("icon-phone");if(phoneIcon){phoneIcon.setAttribute("viewBox","0 0 480 480");var newPhoneIcon=document.createElementNS("http://www.w3.org/2000/svg","path");newPhoneIcon.setAttribute("d","M340.273,275.083l-53.755-53.761c-10.707-10.664-28.438-10.34-39.518,0.744l-27.082,27.076 c-1.711-0.943-3.482-1.928-5.344-2.973c-17.102-9.476-40.509-22.464-65.14-47.113c-24.704-24.701-37.704-48.144-47.209-65.257 c-1.003-1.813-1.964-3.561-2.913-5.221l18.176-18.149l8.936-8.947c11.097-11.1,11.403-28.826,0.721-39.521L73.39,8.194 C62.708-2.486,44.969-2.162,33.872,8.938l-15.15,15.237l0.414,0.411c-5.08,6.482-9.325,13.958-12.484,22.02 C3.74,54.28,1.927,61.603,1.098,68.941C-6,127.785,20.89,181.564,93.866,254.541c100.875,100.868,182.167,93.248,185.674,92.876 c7.638-0.913,14.958-2.738,22.397-5.627c7.992-3.122,15.463-7.361,21.941-12.43l0.331,0.294l15.348-15.029 C350.631,303.527,350.95,285.795,340.273,275.083z"),phoneIcon.appendChild(newPhoneIcon)}var locationIcon=document.getElementById("icon-location");if(locationIcon){locationIcon.setAttribute("viewBox","0 0 480 480");var newLocationIcon=document.createElementNS("http://www.w3.org/2000/svg","path");newLocationIcon.setAttribute("d","M322.621,42.825C294.073,14.272,259.619,0,219.268,0c-40.353,0-74.803,14.275-103.353,42.825 c-28.549,28.549-42.825,63-42.825,103.353c0,20.749,3.14,37.782,9.419,51.106l104.21,220.986 c2.856,6.276,7.283,11.225,13.278,14.838c5.996,3.617,12.419,5.428,19.273,5.428c6.852,0,13.278-1.811,19.273-5.428 c5.996-3.613,10.513-8.562,13.559-14.838l103.918-220.986c6.282-13.324,9.424-30.358,9.424-51.106 C365.449,105.825,351.176,71.378,322.621,42.825z M270.942,197.855c-14.273,14.272-31.497,21.411-51.674,21.411 s-37.401-7.139-51.678-21.411c-14.275-14.277-21.414-31.501-21.414-51.678c0-20.175,7.139-37.402,21.414-51.675 c14.277-14.275,31.504-21.414,51.678-21.414c20.177,0,37.401,7.139,51.674,21.414c14.274,14.272,21.413,31.5,21.413,51.675 C292.355,166.352,285.217,183.575,270.942,197.855z"),locationIcon.appendChild(newLocationIcon)}$(".menu-toggle, .stellarnav-open").on("click",function(e){e.preventDefault(),settings.position=="left"||settings.position=="right"?(nav.find("ul:first").stop(!0,!0).fadeToggle(settings.openingSpeed),nav.toggleClass("active"),nav.hasClass("active")&&nav.hasClass("mobile")&&$(document).on("click",function(event){nav.hasClass("mobile")&&($(event.target).closest(nav).length||(nav.find("ul:first").stop(!0,!0).fadeOut(settings.openingSpeed),nav.removeClass("active")))})):(nav.find("ul:first").stop(!0,!0).slideToggle(settings.openingSpeed),nav.toggleClass("active"))}),$(".close-menu, .stellarnav-close").on("click",function(){nav.removeClass("active"),settings.position=="left"||settings.position=="right"?nav.find("ul:first").stop(!0,!0).fadeToggle(settings.openingSpeed):nav.find("ul:first").stop(!0,!0).slideUp(settings.openingSpeed).toggleClass("active")}),nav.find("li a").each(function(){$(this).next().length>0&&$(this).parent("li").addClass("has-sub").append('<a class="dd-toggle" href="#"><span class="icon-plus"></span></a>')}),nav.find("li .dd-toggle").on("click",function(e){e.preventDefault(),$(this).parent("li").children("ul").stop(!0,!0).slideToggle(settings.openingSpeed),$(this).parent("li").toggleClass("open")});var resetTriggers=function(){nav.find("li").off("mouseenter"),nav.find("li").off("mouseleave")};parentItems=nav.find("> ul > li");var setTriggers=function(){$(parentItems).each(function(){$(this).hasClass("mega")?($(this).on("mouseenter",function(){$(this).find("ul").first().stop(!0,!0).slideDown(settings.openingSpeed)}),$(this).on("mouseleave",function(){$(this).find("ul").first().stop(!0,!0).slideUp(settings.openingSpeed)})):($(this).on("mouseenter",function(){$(this).children("ul").stop(!0,!0).slideDown(settings.openingSpeed)}),$(this).on("mouseleave",function(){$(this).children("ul").stop(!0,!0).delay(settings.closingDelay).slideUp(settings.openingSpeed)}),$(this).find("li.has-sub").on("mouseenter",function(){$(this).children("ul").stop(!0,!0).slideDown(settings.openingSpeed)}),$(this).find("li.has-sub").on("mouseleave",function(){$(this).children("ul").stop(!0,!0).delay(settings.closingDelay).slideUp(settings.openingSpeed)}))})};windowCheck();function windowCheck(){var browserWidth=window.innerWidth;browserWidth<=breakpoint||settings.mobileMode?(resetTriggers(),nav.addClass("mobile"),nav.removeClass("desktop"),!nav.hasClass("active")&&nav.find("ul:first").is(":visible")&&nav.find("ul:first").hide(),nav.find("li.mega").each(function(){$(this).find("ul").first().removeAttr("style"),$(this).find("ul").first().children().removeAttr("style")})):(nav.addClass("desktop"),nav.removeClass("mobile"),nav.hasClass("active")&&nav.removeClass("active"),!nav.hasClass("active")&&nav.find("ul:first").is(":hidden")&&nav.find("ul:first").show(),$("li.open").removeClass("open").find("ul:visible").hide(),resetTriggers(),setTriggers(),navWidth=0,$(parentItems).each(function(){navWidth+=$(this)[0].getBoundingClientRect().width,navWidth=Math.round(navWidth),$(this).hasClass("mega")&&($(this).find("ul").first().css({left:0,right:0,margin:"0px auto"}),numCols=$(this).attr("data-columns"),numCols==2?$(this).find("li.has-sub").width("50%"):numCols==3?$(this).find("ul").first().children().width("33.33%"):numCols==4?$(this).find("ul").first().children().width("25%"):numCols==5?$(this).find("ul").first().children().width("20%"):numCols==6?$(this).find("ul").first().children().width("16.66%"):numCols==7?$(this).find("ul").first().children().width("14.28%"):numCols==8?$(this).find("ul").first().children().width("12.5%"):$(this).find("ul").first().children().width("25%"))}),parentItems.hasClass("mega")&&nav.find("li.mega > ul").css({"max-width":navWidth}))}$(window).on("resize",function(){windowCheck()})})}})(jQuery); 2//# sourceMappingURL=/cdn/shop/t/6/assets/sp-menu.js.map?v=42844639032892439891626408228
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.