1window.bbs=window.bbs||{},bbs.menu=(function(){"use strict";var timer=[];function init(){var elements=document.querySelectorAll('[data-bbs-module="menu"]');for(let i=0,l=elements.length;i<l;i++)handleMenu(elements[i])}function handleMenu(element){var menuItems=element.querySelectorAll('[data-menu="item"]');for(let i=0,l=menuItems.length;i<l;i++){menuItems[i].addEventListener("mouseenter",function(event){openMenu(event,menuItems,i)}),menuItems[i].addEventListener("mouseleave",function(event){closeMenu(event,menuItems,i,350)});var link=menuItems[i].querySelector('[data-menu="link"]');link.addEventListener("touchstart",function(event){toggleMenu(event,menuItems,i,0)})}}function closeAllMenus(menuItems,index){for(let i=0,l=menuItems.length;i<l;i++)index!==i&&menuItems[i].classList.remove("menu__item--active")}function openMenu(event,menuItems,index){timer[index]&&clearTimeout(timer[index]),menuItems[index].classList.add("menu__item--active")}function closeMenu(event,menuItems,index,delay){timer[index]&&clearTimeout(timer[index]),timer[index]=setTimeout(function(){menuItems[index].classList.remove("menu__item--active")},delay)}function toggleMenu(event,menuItems,index,delay){event.preventDefault(),closeAllMenus(menuItems,index),menuItems[index].classList.contains("menu__item--active")?closeMenu(event,menuItems,index,delay):openMenu(event,menuItems,index)}return{init}})(),bbs.readmore=(function(){"use strict";function init(){var elements=document.querySelectorAll('[data-bbs-module="readmore"]');for(let i=0,l=elements.length;i<l;i++)handleReadMore(elements[i])}function handleReadMore(element){var readMoreLink=element.querySelector('[data-readmore="link"]'),textTruncated=element.querySelector('[data-readmore="text-truncated"]'),textComplete=element.querySelector('[data-readmore="text-complete"]');readMoreLink.addEventListener("click",function(event){event.preventDefault(),requestAnimationFrame(function(){textTruncated.style.display="none",textComplete.style.display="block"})})}return{init}})(),bbs.viewmore=(function(){"use strict";function init(){var elements=document.querySelectorAll('[data-bbs-module="viewmore"]');for(let i=0,l=elements.length;i<l;i++)handleViewMore(elements[i])}function handleViewMore(element){var viewMoreToggle=element.querySelector('[data-bbs-viewmore="toggle"]'),viewMoreContent=element.querySelector('[data-bbs-viewmore="content"]');viewMoreToggle.addEventListener("click",function(event){event.preventDefault(),requestAnimationFrame(function(){element.classList.toggle("viewmore--more"),element.classList.toggle("viewmore--less"),viewMoreContent.style.height?viewMoreContent.style.height=null:viewMoreContent.style.height=viewMoreContent.firstElementChild.offsetHeight+"px"})})}return{init}})(),bbs.load=(function(){"use strict";function init(){loadModules()}function loadModules(){var modules=[],elements=document.querySelectorAll("[data-bbs-module]");for(let i=0,l=elements.length;i<l;i++){var module=elements[i].getAttribute("data-bbs-module");modules.indexOf(module)===-1&&modules.push(module)}for(let i=0,l=modules.length;i<l;i++)bbs.hasOwnProperty(modules[i])&&(bbs[modules[i]].init(),console.log("Loaded Module: bbs."+modules[i]))}return{init}})(),bbs.geoip=(function(){"use strict";function getCountryCode(){var bbsGeoip=getLocalStorageBbsGeoip();return bbsGeoip!==null?bbsGeoip.country_code:""}function getContinentCode(){var bbsGeoip=getLocalStorageBbsGeoip();return bbsGeoip!==null?bbsGeoip.continent_code:""}function getLocalStorageBbsGeoip(){if(window.localStorage){var bbsGeoip=window.localStorage.getItem("bbsGeoip");if(bbsGeoip!==null)return JSON.parse(bbsGeoip)}return null}function callback(json){window.localStorage&&(getLocalStorageBbsGeoip()===null&&window.localStorage.setItem("bbsGeoip",JSON.stringify(json)),document.dispatchEvent(new CustomEvent("BBSGeoipLoaded",{detail:json})))}return{getCountryCode,getContinentCode,callback}})(),bbs.cartmsg=(function(){"use strict";var loaded=!1;function init(){if(bbs.geoip.getCountryCode()!==""){var elements=document.querySelectorAll('[data-bbs-module="cartmsg"]');for(let i=0,l=elements.length;i<l;i++)handleCartMsg(elements[i]);loaded=!0}}function editTotalCart(totalCart){var elements=document.querySelectorAll('[data-bbs-module="cartmsg"]');for(let i=0,l=elements.length;i<l;i++){var content=elements[i].querySelector('[data-bbs-cartmsg="content"]');content!==null&&(content.dataset.bbsCartmsgTotalCart=totalCart),handleCartMsg(elements[i])}}function handleCartMsg(element){var content=element.querySelector('[data-bbs-cartmsg="content"]'),bbsCartmsgCountry=content.dataset.bbsCartmsgCountry.toUpperCase().split(",").map(item=>item.trim());if(bbsCartmsgCountry.includes(bbs.geoip.getCountryCode())||bbsCartmsgCountry.includes("ALL")){if(parseFloat(content.dataset.bbsCartmsgTotalCart)>=parseFloat(content.dataset.bbsCartmsgTotalMax)){element.classList.remove("active");return}if(parseFloat(content.dataset.bbsCartmsgTotalCart)>=parseFloat(content.dataset.bbsCartmsgTotal)){element.classList.add("active");return}}element.classList.remove("active")}function isloaded(){return loaded}return{init,editTotalCart,isloaded}})(),bbs.sizeguide=(function(){"use strict";var loaded=!1;
1function init(){if(bbs.geoip.getCountryCode()!==""){var elements=document.querySelectorAll('[data-bbs-module="sizeguide"]');for(let i=0,l=elements.length;i<l;i++)handleSizeGuide(elements[i]);loaded=!0}}function handleSizeGuide(element){var elements=element.querySelectorAll("[data-change-country]");for(let i=0,l=elements.length;i<l;i++){elements[i].addEventListener("change",function(event){if(elements[i].dataset.changeCountry.includes(event.target.value)!==!1){var colspans=elements[i].querySelectorAll('[data-inches="colspan"]'),displays=elements[i].querySelectorAll('[data-inches="display"]');for(let j=0,l2=colspans.length;j<l2;j++)colspans[j].setAttribute("colspan","1");for(let j=0,l2=displays.length;j<l2;j++)displays[j].style.display="none";if(["US","GB","CA"].includes(event.target.value)){for(let j=0,l2=colspans.length;j<l2;j++)colspans[j].setAttribute("colspan","2");for(let j=0,l2=displays.length;j<l2;j++)displays[j].style.display="block"}var countries=elements[i].querySelectorAll("div[data-country]");for(let j=0,l2=countries.length;j<l2;j++)countries[j].style.display="none";var countries=elements[i].querySelectorAll('div[data-country="'+event.target.value+'"]');for(let j=0,l2=countries.length;j<l2;j++)countries[j].style.display="block"}});var selects=elements[i].querySelectorAll("select[name='country']");for(let j=0,l2=selects.length;j<l2;j++)selects[j].value=bbs.geoip.getCountryCode(),selects[j].dispatchEvent(new Event("change"))}}function isloaded(){return loaded}return{init,isloaded}})(),bbs.tool=(function(){"use strict";function loadScript(src,async=!1){let script=document.createElement("script");script.src=src,script.async=async,document.body.append(script)}return{loadScript}})(),document.addEventListener("DOMContentLoaded",function(){bbs.load.init()}),document.addEventListener("BBSGeoipLoaded",function(event){bbs.cartmsg.isloaded()===!1&&bbs.c
1artmsg.init(),bbs.sizeguide.isloaded()===!1&&bbs.sizeguide.init(),document.addEventListener("BBSCartUpdated",function(event2){var total=theme.Currency.formatMoney(event2.detail.total_price,"{{amount}}");bbs.cartmsg.editTotalCart(total)}),document.addEventListener("shopify:section:load",function(event2){event2.detail.sectionId==="cart-template"&&bbs.cartmsg.init()})}); 2//# sourceMappingURL=/cdn/shop/t/1/assets/theme.bbs.js.map?v=27254450072535766171718480753
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.