1(function(){var __snippets__={};(function(){for(var element=document.getElementById("snippets-script"),attribute=element?element.getAttribute("data-snippets"):"",snippets=attribute.split(",").filter(Boolean),i=0;i<snippets.length;i++)__snippets__[snippets[i]]=!0})(),(function(){if(!(!__snippets__["bkf-newsletter-content"]&&!Shopify.designMode))try{if(!window.BKFNewsletterSignupBound){const updateStatus=(form,state,message)=>{const status=form.querySelector(".bkf-newsletter__form-status");status instanceof HTMLElement&&(status.hidden=!message,status.textContent=message,message?status.dataset.state=state:delete status.dataset.state)};document.addEventListener("submit",async event=>{const submittedForm=event.target;if(!(submittedForm instanceof HTMLFormElement)||!submittedForm.hasAttribute("data-bkf-newsletter-form")||(event.preventDefault(),submittedForm.dataset.submitting=="true")||!submittedForm.reportValidity())return;submittedForm.dataset.submitting="true",window.ThemeFormLoading?.start(submittedForm),updateStatus(submittedForm,"","");const submitButton=submittedForm.querySelector('button[type="submit"]');submitButton instanceof HTMLButtonElement&&(submitButton.disabled=!0);const formData=new FormData(submittedForm),payload=new URLSearchParams;payload.set("g",submittedForm.dataset.klaviyoListId||""),payload.set("$fields","$first_name,$region,newsletter_signup_source"),payload.set("email",String(formData.get("email")||"")),payload.set("$first_name",String(formData.get("$first_name")||"")),payload.set("$region",String(formData.get("$region")||"")),payload.set("newsletter_signup_source",submittedForm.dataset.klaviyoSignupSource||"homepage");try{const response=await fetch("https://manage.kmail-lists.com/ajax/subscriptions/subscribe",{method:"POST",mode:"cors",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:payload.toString()});let responseBody=null;try{responseBody=await response.json()}catch{responseBody=null}if(response.ok){submittedForm.reset();const successRedirectUrl=submittedForm.dataset.successRedirectUrl;if(successRedirectUrl){window.location.assign(successRedirectUrl);return}updateStatus(submittedForm,"success",submittedForm.dataset.successMessage||"Thanks for signing up.");return}let errorMessage=submittedForm.dataset.errorMessage||"Something went wrong. Please try again.";response.status===400?errorMessage=submittedForm.dataset.existingMessage||errorMessage:responseBody&&typeof responseBody.message=="string"&&responseBody.message&&(errorMessage=responseBody.message),updateStatus(submittedForm,"error",errorMessage)}catch{updateStatus(submittedForm,"error",submittedForm.dataset.errorMessage||"Something went wrong. Please try again.")}finally{submittedForm.dataset.submitting="false",window.ThemeFormLoading?.stop(submittedForm),submitButton instanceof HTMLButtonElement&&(submitButton.disabled=!1)}}),window.BKFNewsletterSignupBound=!0}}catch(e){console.error(e)}})()})(); 2//# sourceMappingURL=/cdn/shop/t/11/compiled_assets/snippet-scripts.js.map?v=122384677465104922591788191370
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.