1import{m as r}from"./module.esm-DfaEbejj.js";import{v as i,n}from"./YupSchemas.entry-CSp4JAM_.js";import"./index.esm-C_qNqO87.js";r.data("newsletterSubscriptionFormComponent",()=>({newsletterSubscriptionIds:[2],agbAccepted:!1,errors:{},loading:!1,formSubmitResult:null,toggleNewsletterSubscription(e){const t=this.newsletterSubscriptionIds.indexOf(e);t===-1?this.newsletterSubscriptionIds.push(e):this.newsletterSubscriptionIds.splice(t,1)},async submitNewsletterSubscribeForm(){const e={email:this.email,newsletterSubscriptionIds:this.newsletterSubscriptionIds,agbAccepted:this.agbAccepted,pageUrl:window.location.href};if(await i(n,e,()=>(this.errors={},!0),s=>(this.errors=s,!1))){this.loading=!0;try{if(this.formSubmitResult=null,!(await fetch("/api/newsletterSubscriptions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok)throw new Error("Ein Fehler ist aufgetreten");this.email="",this.clear(),this.activeStep=3}catch{this.formSubmitResult="Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut."}this.loading=!1}},clear(){this.newsletterSubscriptionIds=[2],this.agbAccepted=!1}}));
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.