PageSourceSearch

https://us.urbanexcess.com/cdn/shop/t/136/assets/custom.js?v=174615443031198676201760423039

js urbanexcess.com collected 2026-10-03 21:04:53 UTC 29,693 bytes, 8 lines download raw bytes

1/*!
2* EventEmitter v5.2.9 - git.io/ee
3* Oliver Caldwell - https://oli.me.uk/
4*/(function(e){"use strict";function t(){}function n(e2,t2){for(var n2=e2.length;n2--;)if(e2[n2].listener===t2)return n2;return-1}function r(e2){return function(){return this[e2].apply(this,arguments)}}function i(e2){return typeof e2=="function"||e2 instanceof RegExp||!(!e2||typeof e2!="object")&&i(e2.listener)}var s=t.prototype,o=e.EventEmitter;s.getListeners=function(e2){var t2,n2,r2=this._getEvents();if(e2 instanceof RegExp){t2={};for(n2 in r2)r2.hasOwnProperty(n2)&&e2.test(n2)&&(t2[n2]=r2[n2])}else t2=r2[e2]||(r2[e2]=[]);return t2},s.flattenListeners=function(e2){var t2,n2=[];for(t2=0;t2<e2.length;t2+=1)n2.push(e2[t2].listener);return n2},s.getListenersAsObject=function(e2){var t2,n2=this.getListeners(e2);return n2 instanceof Array&&(t2={},t2[e2]=n2),t2||n2},s.addListener=function(e2,t2){if(!i(t2))throw new TypeError("listener must be a function");var r2,s2=this.getListenersAsObject(e2),o2=typeof t2=="object";for(r2 in s2)s2.hasOwnProperty(r2)&&n(s2[r2],t2)===-1&&s2[r2].push(o2?t2:{listener:t2,once:!1});return this},s.on=r("addListener"),s.addOnceListener=function(e2,t2){return this.addListener(e2,{listener:t2,once:!0})},s.once=r("addOnceListener"),s.defineEvent=function(e2){return this.getListeners(e2),this},s.defineEvents=function(e2){for(var t2=0;t2<e2.length;t2+=1)this.defineEvent(e2[t2]);return this},s.removeListener=function(e2,t2){var r2,i2,s2=this.getListenersAsObject(e2);for(i2 in s2)s2.hasOwnProperty(i2)&&(r2=n(s2[i2],t2))!==-1&&s2[i2].splice(r2,1);return this},s.off=r("removeListener"),s.addListeners=function(e2,t2){return this.manipulateListeners(!1,e2,t2)},s.removeListeners=function(e2,t2){return this.manipulateListeners(!0,e2,t2)},s.manipulateListeners=function(e2,t2,n2){var r2,i2,s2=e2?this.removeListener:this.addListener,o2=e2?this.removeListeners:this.addListeners;if(typeof t2!="object"||t2 instanceof RegExp)for(r2=n2.length;r2--;)s2.call(this,t2,n2[r2]);else for(r2 in t2)t2.hasOwnProperty(r2)&&(i2=t2[r2])&&(typeof i2=="function"?s2.call(this,r2,i2):o2.call(this,r2,i2));return this},s.removeEvent=function(e2){var t2,n2=typeof e2,r2=this._getEvents();if(n2==="string")delete r2[e2];else if(e2 instanceof RegExp)for(t2 in r2)r2.hasOwnProperty(t2)&&e2.test(t2)&&delete r2[t2];else delete this._events;return this},s.removeAllListeners=r("removeEvent"),s.emitEvent=function(e2,t2){var n2,r2,i2,s2,o2=this.getListenersAsObject(e2);for(s2 in o2)if(o2.hasOwnProperty(s2))for(n2=o2[s2].slice(0),i2=0;i2<n2.length;i2++)r2=n2[i2],r2.once===!0&&this.removeListener(e2,r2.listener),r2.listener.apply(this,t2||[])===this._getOnceReturnValue()&&this.removeListener(e2,r2.listener);return this},s.trigger=r("emitEvent"),s.emit=function(e2){var t2=Array.prototype.slice.call(arguments,1);return this.emitEvent(e2,t2)},s.setOnceReturnValue=function(e2){return this._onceReturnValue=e2,this},s._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},s._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return e.EventEmitter=o,t},typeof define=="function"&&define.amd?define(function(){return t}):typeof module=="object"&&module.exports?module.exports=t:e.EventEmitter=t})(typeof window<"u"?window:this||{});/*!
5 * JavaScript Cookie v2.2.1
6 * https://github.com/js-cookie/js-cookie
7 */(function(e){var n;if(typeof define=="function"&&define.amd&&(define(e),n=!0),typeof exports=="object"&&(module.exports=e(),n=!0),!n){var t=window.Cookies,o=window.Cookies=e();o.noConflict=function(){return window.Cookies=t,o}}})(function(){function f(){for(var e=0,n={};e<arguments.length;e++){var t=arguments[e];for(var o in t)n[o]=t[o]}return n}function a(e){return e.replace(/(%[0-9A-Z]{2}
7)+/g,decodeURIComponent)}return(function e(u){function c(){}function t(e2,n2,t2){if(typeof document<"u"){typeof(t2=f({path:"/"},c.defaults,t2)).expires=="number"&&(t2.expires=new Date(1*new Date+864e5*t2.expires)),t2.expires=t2.expires?t2.expires.toUTCString():"";try{var o=JSON.stringify(n2);/^[\{\[]/.test(o)&&(n2=o)}catch{}n2=u.write?u.write(n2,e2):encodeURIComponent(String(n2)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e2=encodeURIComponent(String(e2)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var r="";for(var i in t2)t2[i]&&(r+="; "+i,t2[i]!==!0&&(r+="="+t2[i].split(";")[0]));return document.cookie=e2+"="+n2+r}}function n(e2,n2){if(typeof document<"u"){for(var t2={},o=document.cookie?document.cookie.split("; "):[],r=0;r<o.length;r++){var i=o[r].split("="),c2=i.slice(1).join("=");n2||c2.charAt(0)!=='"'||(c2=c2.slice(1,-1));try{var f2=a(i[0]);if(c2=(u.read||u)(c2,f2)||a(c2),n2)try{c2=JSON.parse(c2)}catch{}if(t2[f2]=c2,e2===f2)break}catch{}}return e2?t2[e2]:t2}}return c.set=t,c.get=function(e2){return n(e2,!1)},c.getJSON=function(e2){return n(e2,!0)},c.remove=function(e2,n2){t(e2,"",f(n2,{expires:-1}))},c.defaults={},c.withConverter=e,c})(function(){})});var GlobalEvents=new EventEmitter;if($(document).ready(function(){$(".content_switch").click(function(){$(".short_desc").hide(),$(".full_desc").show()}),$("p.space_fix").filter(function(){return this.innerHTML.replace("&nbsp;"," ").trim()==""}).remove()}),(function(){var elem=document.querySelector(".store-carousel-1");if(elem!==null)var flkty=new Flickity(elem,{});var elem=document.querySelector(".store-carousel-2");if(elem!==null)var flkty=new Flickity(elem,{})})(),document.getElementById("countdownTimer")){let checkForExcludedDate2=function(dateToCheck,date){return date=date.setHours(0,0,0,0),dateToCheck.toString()===new Date(date).toString()},changeTomorrowDate2=function(tomorrow){var tomDay=tomorrow.getDay();return(tomDay===0||tomDay===6)&&(tomDay===0?tomorrow.setDate(tomorrow.getDate()+1):tomDay===6&&tomorrow.setDate(tomorrow.getDate()+2)),tomorrow};var checkForExcludedDate=checkForExcludedDate2,changeTomorrowDate=changeTomorrowDate2;pad=function(n,len){var s=n.toString();return new Array(len-s.length+1).join("0")+s};var timerRunning=setInterval(function(){var now=new Date;const days=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],exclusions="".split(",");if(now.getDay()>=1&&now.getDay()<=5){var target=15;if(now.getHours()<target){var hrs=target-1-now.getHours();hrs<0&&(hrs=0);var mins=59-now.getMinutes();mins<0&&(mins=0);var secs=59-now.getSeconds();secs<0&&(secs=0);var tomorrow=new Date;tomorrow.setDate(now.getDate()+1);var isExcluded=!1,daysToAdd=1;tomorrow=changeTomorrowDate2(tomorrow),exclusions.forEach(function(value){var dateToCheck=new Date(value);isExcluded=checkForExcludedDate2(dateToCheck,tomorrow),isExcluded&&(tomorrow.setDate(tomorrow.getDate()+daysToAdd),tomorrow=changeTomorrowDate2(tomorrow))});var nextDate=days[tomorrow.getDay()]+" "+tomorrow.getDate()+" "+months[tomorrow.getMonth()],str="<span class='promo_product_head'>Order in <strong>"+pad(hrs,2)+"h "+pad(mins,2)+"m "+pad(secs,2)+"s</strong> to receive by <strong>"+nextDate+"</strong></span>";document.getElementById("countdownTimer").innerHTML=str}now.getHours()>=target&&(document.getElementById("countdownTimer").innerHTML="<span class='promo_product_head'>Order now and we'll ship next working day</span>")}else document.getElementById("countdownTimer").innerHTML="<span class='promo_product_head'>Order now and we'll ship Monday</span>"},1e3)}function getCookie(cname){for(var name=cname+"=",ca=document.cookie.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""}(function(){window.checkVisible=function(elm,horizontal){if(horizontal){var rect=elm.getBoundingClientRect(),viewHeight=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(rect.bottom<0||rect.top-viewHeight>=0)}else{var rect=elm.getBoundingClientRect(),viewWidth=Math.max(document.documentElement.clientWidth,window.innerWidth);return!(rect.right<0||rect.left-viewWidth>=0)}},window.debounce=function(func,wait,immediate){var timeout;return function(){var context=this,args=arguments,later=function(){timeout=null,immediate||func.apply(context,args)},callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(later,wait),callNow&&func.apply(context,args)}},window.returnClipPathWithPrefix=function(){var testEl=document.createElement("testelement");return testEl.style["clip-path"]="inset(0 0 0 0)",testEl.style["clip-path"]!==""?"clip-path":(testEl.style["-webkit-clip-path"]="inset(0 0 0 0)",testEl.style["-webkit-clip-path"]!==""?"-webkit-clip-path":"clip-path")},$.fn.KrownSplitScreenSlider=function(){var $SplitScreenSlider=$(this),pluginObj={id:$SplitScreenSlider.attr("id"),_screenHeight:0,_scrollEnabled:!0,_headerHeight:0,_currentScroll:0,_scrollMedia:function($currentSlide,$previousSlide,$currentSlideMedia,$previousSlideOverlay,scrollValue){$currentSlideMedia.css("height",scrollValue),$previousSlideOverlay&&$previousSlideOverlay.css("opacity",Math.ceil(scrollValue*50/pluginObj._screenHeight)/100);var scrollFactor=Math.round(pluginObj._screenHeight/6);$previousSlide.find(".caption").css("transform","translateY("+(0-Math.ceil(scrollValue*(scrollFactor*1)/pluginObj._screenHeight))+"px)"),$previousSlide.find(".title").css("transform","translateY("+(0-Math.ceil(scrollValue*(scrollFactor*.75)/pluginObj._screenHeight))+"px)"),$previousSlide.find(".subtitle").css("transform","translateY("+(0-Math.ceil(scrollValue*(scrollFactor*.5)/pluginObj._screenHeight))+"px)"),$previousSlide.find(".button").css("transform","translateY("+(0-Math.ceil(scrollValue*(scrollFactor*.25)/pluginObj._screenHeight))+"px)"),$currentSlide.find(".caption").css("transform","translateY("+(Math.ceil(scrollValue*(scrollFactor*1)/pluginObj._screenHeight)-scrollFactor*1)+"px)"),$currentSlide.find(".title").css("transform","translateY("+(Math.ceil(scrollValue*(scrollFactor*.75)/pluginObj._screenHeight)-scrollFactor*.75)+"px)"),$currentSlide.find(".subtitle").css("transform","translateY("+(Math.ceil(scrollValue*(scrollFactor*.5)/pluginObj._screenHeight)-scrollFactor*.5)+"px)"),$currentSlide.find(".button").css("transform","translateY("+(Math.ceil(scrollValue*(scrollFactor*.25)/pluginObj._screenHeight)-scrollFactor*.25)+"px)")},mount:function(flick,$section){var clipPath=window.returnClipPathWithPrefix(),$slider=$section.find(".box__slideshow-s
7plit"),$slides=$slider.find(".slideshow-item"),$slidesMedia=$slider.find(".site-box-background-container").children("div"),slidesBlackArray=[];pluginObj._currentScroll=$(window).scrollTop(),$section.index()>0&&(pluginObj._headerHeight=$("#section-header").outerHeight()),pluginObj._scrollEnabled=!0,pluginObj._screenHeight=navigator.userAgent.match(/ipad/i)?window.screen.availHeight:$(window).height(),window.matchMedia("(max-width: 768px)").matches?($slider.css("height","auto"),$slider.addClass("remove-min-height"),$slides.height($(window).height()-$("#section-header").outerHeight(!0)),pluginObj._scrollEnabled=!1):($slider.css("height","auto"),$slider.removeClass("remove-min-height"),$slides.css("height","auto")),$slides.each(function(key,elm){key==0||$(window).scrollTop()>=$(elm).offset().top?$slidesMedia.eq(key).css("height","100%"):$slidesMedia.eq(key).css("height","0"),$(elm).find(".lazyload").length>0&&lazySizes.loader.unveil($(elm).find(".lazyload")[0])}),$slidesMedia.each(function(key){$(this).addClass("active"),$(this).find(".site-box-black-overlay").length<=0&&$(this).append('<span class="site-box-black-overlay" />'),slidesBlackArray.push($(this).find(".site-box-black-overlay"))});var previous=-1,currentOld=-1;$(window).on("scroll.split-slider-"+pluginObj.id,function(){var scrollTop=$(window).scrollTop()>=0?$(window).scrollTop():0,sliderTop=$slider.offset().top;if(pluginObj._scrollEnabled){var current=0;if(scrollTop+pluginObj._headerHeight-pluginObj._headerHeight<$slider.offset().top&&!$slider.hasClass("back-to-normal")&&$slider.addClass("back-to-normal"),$slides.each(function(key,$elm){window.checkVisible($elm,!0)&&(current=key)}),current!=currentOld&&(pluginObj._currentScroll<scrollTop&&currentOld>0?pluginObj._scrollMedia($slides.eq(currentOld),$slides.eq(previous),$slidesMedia.eq(currentOld),slidesBlackArray[previous],pluginObj._screenHeight):pluginObj._currentScroll>$(window).scrollTop()&&currentOld>0&&pluginObj._scrollMedia($slides.eq(currentOld),$slides.eq(previous),$slidesMedia.eq(currentOld),slidesBlackArray[previous],0),currentOld=current,previous=current-1),current>0){var scrollValue=scrollTop-sliderTop-pluginObj._screenHeight*(current-1);$slider.hasClass("back-to-normal")||pluginObj._scrollMedia($slides.eq(current),$slides.eq(previous),$slidesMedia.eq(current),slidesBlackArray[previous],scrollValue),scrollTop+pluginObj._screenHeight>=sliderTop+$slider.height()&&!$slider.hasClass("back-to-normal")?$slider.addClass("back-to-normal"):scrollTop+pluginObj._screenHeight<sliderTop+$slider.height()&&$slider.hasClass("back-to-normal")&&$slider.removeClass("back-to-normal")}}pluginObj._currentScroll=scrollTop})}};$(window).on("resize.split-slider",window.debounce(function(){$(window).off("scroll.splid-slider-"+pluginObj.id),pluginObj.mount(!1,$SplitScreenSlider)},250)),pluginObj.mount(!0,$SplitScreenSlider)},window.CUBER={SplitSlider:{mount:function($section){$section.find(".box__slideshow-split").hasClass("one-image")?$(window).on("resize.split-screen-single",function(){$section.find(".box__slideshow-split").height($(window).height()-$("#section-header").outerHeight(!0)).addClass("remove-min-height")}).trigger("resize.split-screen-single"):$section.KrownSplitScreenSlider()}},Main:{$siteBoxes:null,_animateEverything:function(firstAnimation){var i=0;this.$siteBoxes.each(function(){var vp=0;!$(this).hasClass("active")&&$(window).scrollTop()+$(window).height()>$(this).offset().top+vp&&(i++,setTimeout((function(){$(this).addClass("active")}).bind(this),100*i))})},mount:function(){this.$siteBoxes=$(".site-box:not(.footer-box)"),this._animateEverything(!0),$(window).on("scroll.fade-animation",(function(e){this._animateEverything(!1)}).bind(this))}}},window.CUBER.Main.mount(),$(".mount-slideshow").length>0&&$(".mount-slideshow").each(function(){$(this).find(".box__slideshow-split").length>0&&window.CUBER.SplitSlider.mount($(this))})})(),(function(){var blog_items=document.querySelectorAll("[data-cuber-blog-item]"),blog_titles=document.querySelectorAll("[data-cuber-blog-title]");if(!blog_items.length)return;cuber_blog_titles(),window.addEventListener("scroll",cuber_blog_titles);function cuber_blog_titles(){var blog_items_top=blog_items[0].getBoundingClientRect().top;if(blog_items_top>
70){blog_titles.forEach(function(blog_title){blog_title.classList.remove("is-active")}),blog_titles[0].classList.add("is-active");return}var viewport_height=document.documentElement.clientHeight;blog_items.forEach(function(blog_item){var blog_item_options=JSON.parse(blog_item.getAttribute("data-cuber-blog-item")),blog_item_index=blog_item_options.index,blog_item_top=blog_item.getBoundingClientRect().top,blog_item_is_middle=blog_item_top>viewport_height/2.5&&blog_item_top<viewport_height/1.5,blog_title=document.querySelector(`[data-cuber-blog-title='{ "index": `+blog_item_index+" }']");blog_item_is_middle?blog_title.classList.add("is-active"):blog_title.classList.remove("is-active")})}})(),(function(){function Self(element,events,options,module2){Cookies.get("cookiesmodal")?set_rakuten_consent():show(),events.on("cookiesmodalcta:click",function(){hide(),Cookies.set("cookiesmodal",!0),set_rakuten_consent()}).on("cookiesmodalclose:click",hide);function show(){document.documentElement.classList.add("is-active-cookies-modal")}function hide(){document.documentElement.classList.remove("is-active-cookies-modal")}function set_rakuten_consent(){window.__rmcp=[1,2,3,4,5],window.__rmuspc="YN"}}function Cta(element,events,options,module2){element.addEventListener("click",function(){events.trigger("cookiesmodalcta:click")})}function Close(element,events,options,module2){element.addEventListener("click",function(){events.trigger("cookiesmodalclose:click")})}function CookiesModal(element,options){var defaults={};options=Object.assign({},defaults,options);var events=new EventEmitter,refs={self:[element],cta:element.querySelectorAll("[data-ref-cta]"),close:element.querySelectorAll("[data-ref-close]")},module2={element,options,refs};refs.self.forEach(function(element2){var options2=module2.options;Self(element2,events,options2,module2)}),refs.cta.forEach(function(element2){var options2=element2.getAttribute("data-ref-cta");options2=JSON.parse(options2||"{}"),Cta(element2,events,options2,module2)}),refs.close.forEach(function(element2){var options2=element2.getAttribute("data-ref-close");options2=JSON.parse(options2||"{}"),Close(element2,events,options2,module2)})}var elements=document.querySelectorAll("[data-module-cookies-modal]");elements.forEach(function(element){var options=element.getAttribute("data-module-cookies-modal");options=JSON.parse(options||"{}"),CookiesModal(element,options)})})(),(function(){window.addEventListener("scroll",throttle(function(){trigger_resize()})),setTimeout(trigger_resize,1e3);function throttle(fn,threshhold,scope){threshhold||(threshhold=100);var last=null,deferTimer=null;return function(){var context=scope||this,now=+new Date,args=arguments;last&&now<last+threshhold?(clearTimeout(deferTimer),deferTimer=setTimeout(function(){last=now,fn.apply(context,args)},threshhold)):(last=now,fn.apply(context,args))}}function trigger_resize(){var event=document.createEvent("HTMLEvents");event.initEvent("resize",!0,!1),document.dispatchEvent(event)}})(),(function(){var is_rakuten_url=window.location.search.includes("ranMID");is_rakuten_url&&set_cart_attribute();function set_cart_attribute(){var url="/cart/update.js",body={attributes:{source:"rakuten"}};fetch(url,{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(body)})}})(),(function(){geoip2.country(function(geolocation){Cookies.set("geolocation",geolocation),GlobalEvents.trigger("geolocation",[geolocation])})})(),(function(){function Self(element,events,options,module2){var cookie_key="redirect-popup:"+options.country_iso_code;Cookies.get(cookie_key)||(GlobalEvents.on("geolocation",function(geolocation){geolocation.country.iso_code==options.country_iso_code&&element.classList.add("is-active")}),events.on("close:click",function(){element.classList.remove("is-active"),Cookies.set(cookie_key,!0)}))}function Close(element,events,options,module2){element.addEventListener("click",function(){events.trigger("close:click")})}function RedirectPopup(element,options){var defaults={};options=Object.assign({},defaults,options);var events=new EventEmitter,refs={self:[element],close:element.querySelectorAll("[data-ref-close]")},module2={element,options,refs};refs.self.forEach(function(element2){var options2=module2.options;Self(element2,events,options2,module2)}),refs.close.forEach(function(element2){var options2=element2.getAttribute("data-ref-close");options2=JSON.parse(options2||"{}"),Close(element2,events,options2,module2)})}var elements=document.querySelectorAll("[data-module-redirect-popup]");
7elements.forEach(function(element){var options=element.getAttribute("data-module-redirect-popup");options=JSON.parse(options||"{}"),RedirectPopup(element,options)})})(),(function(){function Self(element,events,options,module2){Array.from(element.elements).forEach(function(form_element){form_element.addEventListener("change",function(){element.submit()})})}function FormSubmitOnChange(element,options){var defaults={};options=Object.assign({},defaults,options);var events=new EventEmitter,refs={self:[element]},module2={element,options,refs};refs.self.forEach(function(element2){var options2=module2.options;Self(element2,events,options2,module2)})}var elements=document.querySelectorAll("[data-module-form-submit-on-change]");elements.forEach(function(element){var options=element.getAttribute("data-module-form-submit-on-change");options=JSON.parse(options||"{}"),FormSubmitOnChange(element,options)})})(),(function(){var spoof_location_us={continent:{code:"NA",geoname_id:6255149,names:{"zh-CN":"???",de:"Nordamerika",en:"North America",es:"Norteamirica",fr:"Amirique du Nord",ja:"?????","pt-BR":"Amirica do Norte",ru:"???????? ???????"}},country:{iso_code:"US",geoname_id:6252001,names:{"zh-CN":"??",de:"USA",en:"United States",es:"Estados Unidos",fr:"Itats-Unis",ja:"???????","pt-BR":"Estados Unidos",ru:"???"}},registered_country:{iso_code:"US",geoname_id:6252001,names:{en:"United States",es:"Estados Unidos",fr:"Itats-Unis",ja:"???????","pt-BR":"Estados Unidos",ru:"???","zh-CN":"??",de:"USA"}},traits:{ip_address:"67.219.150.42",network:"67.219.144.0/20"},represented_country:{names:{}}},spoof_location_au={continent:{code:"OC",geoname_id:6255151,names:{ja:"?????","pt-BR":"Oceania",ru:"???????","zh-CN":"???",de:"Ozeanien",en:"Oceania",es:"Oceanma",fr:"Ocianie"}},country:{iso_code:"AU",geoname_id:2077456,names:{ja:"???????","pt-BR":"Australia",ru:"?????????","zh-CN":"????",de:"Australien",en:"Australia",es:"Australia",fr:"Australie"}},registered_country:{iso_code:"AU",geoname_id:2077456,names:{"zh-CN":"????",de:"Australien",en:"Australia",es:"Australia",fr:"Australie",ja:"???????","pt-BR":"Australia",ru:"?????????"}},traits:{ip_address:"115.178.23.100",network:"115.178.16.0/21"},represented_country:{names:{}}},spoof_location=!1;GlobalEvents.on("geolocation",init),window.addEventListener("collection:load-more:success",init),$(document).on("Searchanise.ResultsUpdated",init_searchanise_results),$(document).on("Searchanise.AutocompleteUpdated",init_searchanise_autocomplete);function init(){var geolocation=Cookies.getJSON("geolocation");if(geolocation){spoof_location&&(geolocation=spoof_location),console.log("GEOLOCATION:"),console.log(JSON.stringify(geolocation,null,2));var excluded_product_tags=get_excluded_product_tags(geolocation);excluded_product_tags.length&&(hide_excluded_product_items(excluded_product_tags),product_template_redirect(excluded_product_tags))}}function hide_excluded_product_items(excluded_product_tags){var product_item_elements=Array.from(document.querySelectorAll("[data-module-product-item]")).filter(function(element){var element_options=element.getAttribute("data-module-product-item");element_options=JSON.parse(element_options);var element_excluded=is_product_excluded(excluded_product_tags,element_options.tags);return element_excluded});product_item_elements.forEach(function(product_item_element){var grid_cell_element=product_item_element.closest(".Grid__Cell");grid_cell_element&&grid_cell_element.remove(),product_item_element.remove()})}function product_template_redirect(excluded_product_tags){if(window.location.href.includes("/products/")){var product_json_element=document.querySelector("[data-product-json]");if(product_json_element){var product_json=JSON.parse(product_json_element.innerHTML),product_excluded=is_product_excluded(excluded_product_tags,product_json.product.tags);product_excluded&&(window.location="/")}}}function init_searchanise_results(event,element){hide_searchanise_excluded_product_items(element)}function init_searchanise_autocomplete(event,input_element,element){hide_searchanise_excluded_product_items(element)}function hide_searchanise_excluded_product_items(element){var geolocation=Cookies.getJSON("geolocation");if(geolocation){spoof_location&&(geolocation=spoof_location);var excluded_product_tags=get_excluded_product_tags(geolocation);if(excluded_product_tags.length){var elements=Array.from(element[0].querySelectorAll(".snize-product")).filter(function(element2){return excluded_product_tags.some(function(tag){return element2.innerHTML.includes(tag)})});
7elements.forEach(function(element2){element2.remove()})}}}function is_product_excluded(excluded_product_tags,product_tags){return product_tags?product_tags.some(function(tag){return excluded_product_tags.includes(tag)}):!1}function get_excluded_product_tags(geolocation){var excluded_product_tags=[];return geolocation.continent.code!="EU"&&(excluded_product_tags.push("EXCLUDE-NON-EU"),geolocation.country.iso_code!="US"&&excluded_product_tags.push("EXCLUDE-NON-USA")),excluded_product_tags}})(),(function(){var button_element=document.querySelector('[aria-controls="modal-newsletter"]');button_element&&(Cookies.get("newsletter-popup")||(button_element.click(),Cookies.set("newsletter-popup",!0)))})(),(function(){document.addEventListener("DOMContentLoaded",function(){var announcementScroll=document.querySelector(".AnnouncementBar__Content--scroll");if(this.initialConfig=Object.assign(JSON.parse(announcementScroll.getAttribute("data-flickity-config"))),console.log("initial config",this.initialConfig),announcementScroll.children.length>1){let play2=function(){announceFlick.x=announceFlick.x-.15,announceFlick.settle(announceFlick.x),requestId=window.requestAnimationFrame(play2)}
7,pause2=function(){requestId&&(window.cancelAnimationFrame(requestId),requestId=void 0)};var play=play2,pause=pause2,announceFlick=new Flickity(announcementScroll,this.initialConfig);announceFlick.x=0,play2(),announcementScroll.addEventListener("mouseover",pause2,!1),announcementScroll.addEventListener("focusin",pause2,!1),announcementScroll.addEventListener("mouseout",play2,!1),announcementScroll.addEventListener("focusout",play2,!1)}})})();class ComplementaryProducts extends HTMLElement{constructor(){super()}connectedCallback(){const handleIntersection=(entries,observer)=>{entries[0].isIntersecting&&(observer.unobserve(this),fetch(this.dataset.complimentaryUrl).then(response=>response.json()).then(res=>{res.products.length?(console.log("res complimentary: ",res),document.querySelector(".also_title").style.display="block",res.products.forEach(product=>{const template=document.querySelector("#also_template").content.cloneNode(!0).children[0],img=document.createElement("img");template.querySelector("[data-complementary-url]").href=product.url,template.querySelector("[data-complementary-url]").title=product.title,img.src=product.featured_image.replace(".jpg","_400x400.jpg").replace(".png","_400x400.png"),img.alt=product.title,img.classList.add("main-prod-img"),template.querySelector("[data-complementary-image]").appendChild(img),this.appendChild(template)})):(document.querySelectorAll(".also_metafields_wrapper").length&&(document.querySelector(".also_title").style.display="block"),document.querySelectorAll(".also_metafields_wrapper").length&&(document.querySelectorAll(".also_metafields_wrapper")[0].style.display="block"))}).catch(e=>{console.error(e),document.querySelector(".also_wrapper").style.display="none"}))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 400px 0px"}).observe(this)}}customElements.define("complementary-products",ComplementaryProducts);class RelatedProducts extends HTMLElement{constructor(){super()}connectedCallback(){const handleIntersection=(entries,observer)=>{entries[0].isIntersecting&&(observer.unobserve(this),fetch(this.dataset.relatedUrl).then(response=>response.json()).then(res=>{res.products.length&&(console.log("res related: ",res),document.querySelector(".related_title").style.display="block",res.products.forEach(product=>{const template=document.querySelector("#also_template").content.cloneNode(!0).children[0],img=document.createElement("img");template.querySelector("[data-complementary-url]").href=product.url,template.querySelector("[data-complementary-url]").title=product.title,img.src=product.featured_image.replace(".jpg","_400x400.jpg").replace(".png","_400x400.png"),img.alt=product.title,img.classList.add("main-prod-img"),template.querySelector("[data-complementary-image]").appendChild(img),this.appendChild(template)}))}).catch(e=>{console.error(e),document.querySelector(".also_wrapper").style.display="none"}))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 400px 0px"}).observe(this)}}customElements.define("related-products",RelatedProducts),(function(){function getClosest(elem,selector){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(s){for(var matches=(this.document||this.ownerDocument).querySelectorAll(s),i=matches.length;--i>=0&&matches.item(i)!==this;);return i>-1});elem&&elem!==document;elem=elem.parentNode)if(elem.matches(selector))return elem;return null}function toggleReadMore(e){const parentElem=getClosest(e.currentTarget,".SectionHeader__Description"),readMore=parentElem.querySelector(".readMore"),readLess=parentElem.querySelector(".readLess");readMore.classList.contains("open")?(readMore.classList.remove("open"),readLess.classList.remove("open")):(readMore.classList.add("open"),readLess.classList.add("open"))}const readMoreLink=document.querySelectorAll("[data-read-more]"),readLessLink=document.querySelectorAll("[data-read-less]");readMoreLink&&(readMoreLink.forEach(function(elem){elem.addEventListener("click",toggleReadMore)}),readLessLink&&readLessLink.forEach(function(elem){elem.addEventListener("click",toggleReadMore)}))})(),document.addEventListener("variant:changed",function(event){var variant=event.detail.variant;variant.available?$(".klaviyo-bis-trigger").hide():$(".klaviyo-bis-trigger").show()});
8//# sourceMappingURL=/cdn/shop/t/136/assets/custom.js.map?v=174615443031198676201760423039

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.