1import{f as n}from"./form-success.js";function a(){const s=document.querySelectorAll("form.is-form-validated"),e=location.hash.slice(1);s.forEach(t=>{var o,r;if(e.includes(t.id))t.dataset.formValidatedInit="true";else return;const i=t.querySelector(".newsletter__form-message--success");i&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"newsletter_sign_up",page_location:window.location.href,page_path:window.location.pathname,page_referrer:document.referrer,page_title:document.title,user_type:(r=(o=window.Shopify)==null?void 0:o.customer)!=null&&r.id?"registered":"guest",signup_location:"newsletter_section",success:!0}),n(i,t.id)),t.addEventListener("submit",()=>{i&&sessionStorage.setItem(`form-${t.id}-submitted`,"true")}),d(t,i)})}function d(s,e){if(!e)return;if(e.hasAttribute("data-success-message")){e.classList.remove("hidden");return}sessionStorage.getItem(`form-${s.id}-submitted`)&&e&&(s.querySelector(".form__message:not(.newsletter__form-message--success)")?sessionStorage.removeItem(`form-${s.id}-submitted`):(e.classList.remove("hidden"),e.scrollIntoView({behavior:"smooth",block:"nearest"}),sessionStorage.removeItem(`form-${s.id}-submitted`)))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",a):a();
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.