PageSourceSearch

https://whileonearth.co/cdn/shop/t/112/assets/addresses-BSBPAjYv.js

js whileonearth.co collected 2026-09-28 08:38:55 UTC 1,778 bytes, 1 lines download raw bytes

1import{t as r,e as n,u as i,i as d}from"./fluorescent-dom.es-w46pwioq.js";import{c as p}from"./focus-trap.esm-D2ssBw0w.js";import{d as f,e as v}from"./bodyScrollLock.esm-CT-oBNdc.js";import{r as y}from"./index-D8feyLDW.js";y("addresses",{onLoad(){this.modals=r("[data-address-modal]",this.container),this.focusTrap=null;const e=r("[data-overlay]",this.container),o=r("[data-open]",this.container),a=r("[data-close]",this.container),s=r("[data-remove]",this.container),l=r("[data-country-option]",this.container)||[];this.events=[n(o,"click",t=>this.openModal(t)),n([...a,...e],"click",t=>this.closeModal(t)),n(s,"click",t=>this.removeAddress(t)),n(this.modals,"keydown",t=>{t.keyCode===27&&this.closeModal(t)})],l.forEach(t=>{const{formId:c}=t.dataset,u="AddressCountry_"+c,m="AddressProvince_"+c,h="AddressProvinceContainer_"+c;new window.Shopify.CountryProvinceSelector(u,m,{hideElement:h})})},onUnload(){this.events.forEach(e=>e())},openModal(e){e.preventDefault();const{open:o}=e.currentTarget.dataset,a=this.modals.find(s=>s.dataset.addressModal==o);i(a,"active"),this.focusTrap=p(a,{allowOutsideClick:!0}),this.focusTrap.activate(),document.body.setAttribute("data-fluorescent-overlay-open","true"),f(a,{allowTouchMove:s=>{for(;s&&s!==document.body;){if(s.getAttribute("data-scroll-lock-ignore")!==null)return!0;s=s.parentNode}},reserveScrollBarGap:!0}),setTimeout(()=>{i(a,"visible")},50)},closeModal(e){e.preventDefault();const o=e.target.closest(".addresses__modal");document.body.setAttribute("data-fluorescent-overlay-open","false"),v(o),this.focusTrap.deactivate(),d(o,"visible"),setTimeout(()=>{d(o,"active")},350)},removeAddress(e){const{confirmMessage:o,target:a}=e.currentTarget.dataset;confirm(o)&&window.Shopify.postLink(a,{parameters:{_method:"delete"}})}});

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.