PageSourceSearch

https://www.umbra.com/cdn/shop/t/62/compiled_assets/scripts.js?v=175064070297719900301789483531

js umbra.com collected 2026-09-24 18:21:50 UTC 4,369 bytes, 2 lines download raw bytes

1(function(){var __sections__={};(function(){for(var i=0,s=document.getElementById("sections-script").getAttribute("data-sections").split(",");i<s.length;i++)__sections__[s[i]]=!0})(),(function(){if(__sections__.footer)try{(function(){var SEL=".umbra-footer__store .store__selector",setOpen=function(box,open){box.classList.toggle("is-open",open);var chip=box.querySelector(".current-store-title");if(chip&&chip.setAttribute("aria-expanded",open?"true":"false"),open){box.classList.remove("is-dismissed");return}box.classList.add("is-dismissed"),chip&&document.activeElement===chip&&chip.blur();var clear=function(){box.classList.remove("is-dismissed"),box.removeEventListener("mouseleave",clear)};box.addEventListener("mouseleave",clear)};document.addEventListener("click",function(e){var t=e.target;if(!(!t||!t.closest)){var chip=t.closest(SEL+" .current-store-title");if(chip){var box=chip.closest(SEL);setOpen(box,!box.classList.contains("is-open"));return}var open=document.querySelector(SEL+".is-open");open&&!open.contains(t)&&setOpen(open,!1)}}),document.addEventListener("keydown",function(e){var open=document.querySelector(SEL+".is-open");if(e.key==="Escape"&&open){setOpen(open,!1);return}if(!(e.key!=="Enter"&&e.key!==" ")){var t=e.target;if(!(!t||!t.closest||!t.closest(SEL+" .current-store-title"))){e.preventDefault();var box=t.closest(SEL);setOpen(box,!box.classList.contains("is-open"))}}})})(),customElements.whenDefined("details-disclosure").then(()=>{class FooterMenu extends DetailsDisclosure{constructor(){super(),this.reset(!1),this.klaviyoForm=this.querySelector("#klaviyo-signup_form"),window.addEventListener("on:breakpoint-change",this.reset.bind(this)),this.klaviyoForm&&(this.klaviyoInput=this.klaviyoForm.querySelector('[name="klaviyo[email]"]'),this.successAlert=this.klaviyoForm.querySelector("#klaviyo-signup-success"),this.errorAlert=this.klaviyoForm.querySelector("#klaviyo-signup-error"),this.klaviyoForm.addEventListener("click",this.handleSubmit.bind(this)))}reset(){const isLargeScreen=window.matchMedia(theme.mediaQueries.md).matches,isConfirmNewsletter=!isLargeScreen&&window.location.hash==="#footer-signup_form"&&this.querySelector("#footer-signup_form")!==null;this.disclosure.open=isLargeScreen||isConfirmNewsletter,isLargeScreen?this.toggle.setAttribute("tabindex","-1"):this.toggle.removeAttribute("tabindex")}handleSubmit(evt){if(!evt.target.matches(".klaviyo-signup-submit"))return;const store=Shopify.shop.split(".myshopify")[0];let company_id="iUWEFA",list_id="RDinUh";store=="umbra-uk"?(company_id="JiqHEq",list_id="Tek3XG"):store=="umbra-ca"?(company_id="KiLPmu",list_id="Wr7eXf"):store=="umbra-eu"&&(company_id="Pu3mAK",list_id="Thi4dZ"),console.log(list_id);const url=`https://a.klaviyo.com/client/subscriptions?company_id=${company_id}`,options={method:"POST",headers:{revision:"2024-10-15","content-type":"application/vnd.api+json"},body:JSON.stringify({data:{type:"subscription",attributes:{profile:{data:{type:"profile",attributes:{email:`${this.klaviyoInput.value}`}}}},relationships:{list:{data:{type:"list",id:`${list_id}`}}}}})};fetch(url,options).then(res=>console.log(res)).then(result=>{this.successAlert&&(setTimeout(()=>{this.successAlert.hidden=!1},1e3),setTimeout(()=>{this.successAlert.hidden=!0,this.klaviyoForm.reset()},this.successAlert.dataset.visibleFor))}).catch(err=>{this.errorAlert&&(setTimeout(()=>{this.errorAlert.hidden=!0},1e3),setTimeout(()=>{this.errorAlert.hidden=!1},this.errorAlert.dataset.visibleFor))})}}customElements.define("footer-menu",FooterMenu)})}catch(e){console.error(e)}})(),(function(){if(__sections__.header)try{customElements.whenDefined("details-disclosure").then(()=>{class NavMenu extends DetailsDisclosure{constructor(){super(),this.matches(".js-mega-nav")&&(this.reset(!1),window.addEventListener("on:breakpoint-change",this.reset.bind(this)))}reset(resize=!0){const isLargeScreen=window.matchMedia(theme.mediaQueries.md).matches;this.disclosure.open=isLargeScreen,isLargeScreen?this.toggle.setAttribute("tabindex","-1"):this.toggle.removeAttribute("tabindex")}handleToggle(e){this.matches(".js-mega-nav")&&window.matchMedia(theme.mediaQueries.md).matches||super.handleToggle(e)}}
1customElements.define("nav-menu",NavMenu)})}catch(e){console.error(e)}})()})();
2//# sourceMappingURL=/cdn/shop/t/62/compiled_assets/scripts.js.map?v=175064070297719900301789483531

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.