1import{V as e,at as t,nt as n,u as r}from"./FFsIuA2d.js";import{H as i,Pt as a,Rt as o,X as s,at as c,ct as l,d as u,m as d,p as f,pt as p,tt as m,u as h,v as g,y as _}from"./D26NMIVi.js";import{t as v}from"./7IxXFmaK.js";import{n as y,t as b}from"#entry";import{t as x}from"./RLAwgR2s.js";import{t as S}from"./BV-5AJzc.js";var C={key:0,class:`at-nlf at-nlf--embed`},w=[`for`],T=[`id`],E=[`for`],D=[`id`,`placeholder`,`aria-invalid`,`aria-describedby`],O={class:`at-nlf__fineprint`},k={href:`/data-protection`,target:`_blank`,rel:`noopener`},A={class:`at-nlf__hp`,"aria-hidden":`true`},j=[`id`],M=[`disabled`],N={class:`at-nlf__btn-text`},P={class:`at-nlf__btn-main`},F={class:`at-nlf__btn-sub`},I={key:1,class:`at-nlf__thanks`},L={class:`at-nlf__thanks-title`},R={key:0,class:`at-nlf__thanks-text`},z={key:1,class:`at-nlf__thanks-text`},B=b({__name:`AtNewsletterForm`,props:{buttonMain:{type:String,default:``},buttonSub:{type:String,default:``},light:{type:Boolean,default:!1}},setup(b){let B=b,V=r(),H=y(),U=!!e().public.app.features?.beehiiv,W=h(()=>B.buttonMain||H(`Jetzt anmelden`,`Subscribe now`)),G=h(()=>B.buttonSub||H(`Jederzeit abbestellbar`,`Unsubscribe anytime`)),K=s(),q=l(``),J=l(``),Y=l(``),X=Date.now(),Z=l(!1),Q=l(!1),$=l(``),ee=async()=>{if($.value=``,!S(J.value)){$.value=H(`Bitte geben Sie eine gültige E-Mail-Adresse ein.`,`Please enter a valid email address.`);return}Z.value=!0;try{await v(`/api/registration`,{method:`POST`,body:{type:`newsletter`,name:q.value.trim(),email:J.value.trim(),privacyConsent:!0,source:V.fullPath,device:/Mobi|Android/i.test(navigator.userAgent)?`mobile`:`desktop`,company:Y.value,startedAt:X}}),Q.value=!0}catch{$.value=H(`Das hat leider nicht geklappt. Bitte versuchen Sie es erneut.`,`Something went wrong. Please try again.`)}finally{Z.value=!1}};return(e,r)=>{let s=x;return U?(i(),d(`div`,C,[_(s,{content:{}})])):(i(),d(`div`,{key:1,class:a([`at-nlf`,{"at-nlf--light":b.light}]),"aria-live":`polite`},[p(Q)?(i(),d(`div`,I,[r[6]||=u(`span`,{class:`at-nlf__thanks-icon`,"aria-hidden":`true`},[u(`i`,{class:`fa-solid fa-circle-check`})],-1),u(`div`,null,[u(`p`,L,o(p(H)(`Vielen Dank!`,`Thank you!`)),1),e.$config.public.app.language===`en`?(i(),d(`p`,R,` Please confirm your subscription via the link we just emailed you. `)):(i(),d(`p`,z,` Bitte bestätigen Sie Ihre Anmeldung über den Link, den wir Ihnen soeben per E-Mail geschickt haben. `))])])):(i(),d(`form`,{key:0,class:`at-nlf__form`,novalidate:``,onSubmit:t(ee,[`prevent`])},[u(`label`,{class:`at-nlf__srlabel`,for:`at-nlf-name-${p(K)}`},`Name`,8,w),m(u(`input`,{id:`at-nlf-name-${p(K)}`,"onUpdate:modelValue":r[0]||=e=>c(q)?q.value=e:null,type:`text`,autocomplete:`name`,required:``,placeholder:`Name`},null,8,T),[[n,p(q)]]),u(`label`,{class:`at-nlf__srlabel`,for:`at-nlf-email-${p(K)}`},o(p(H)(`E-Mail-Adresse`,`Email address`)),9,E),m(u(`input`,{id:`at-nlf-email-${p(K)}`,"onUpdate:modelValue":r[1]||=e=>c(J)?J.value=e:null,type:`email`,autocomplete:`email`,required:``,placeholder:p(H)(`Ihre E-Mail-Adresse`,`Your email address`),"aria-invalid":p($)?`true`:void 0,"aria-describedby":p($)?`at-nlf-error-${p(K)}`:void 0},null,8,D),[[n,p(J)]]),u(`p`,O,[g(o(p(H)(`Mit der Anmeldung akzeptieren Sie unsere`,`By subscribing you accept our`))+` `,1),u(`a`,k,o(p(H)(`Datenschutzbestimmungen`,`Privacy Policy`)),1),r[3]||=g(`. `,-1)]),u(`label`,A,[r[4]||=u(`span`,null,`Firma`,-1),m(u(`input`,{"onUpdate:modelValue":r[2]||=e=>c(Y)?Y.value=e:null,type:`text`,name:`company`,tabindex:`-1`,autocomplete:`off`},null,512),[[n,p(Y)]])]),p($)?(i(),d(`p`,{key:0,id:`at-nlf-error-${p(K)}`,class:`at-nlf__error`},o(p($)),9,j)):f(``,!0),u(`button`,{type:`submit`,class:`at-nlf__btn`,disabled:p(Z)},[r[5]||=u(`span`,{class:`at-nlf__btn-icon`},[u(`i`,{class:`fa-solid fa-paper-plane`,"aria-hidden":`true`})],-1),u(`span`,N,[u(`span`,P,o(p(Z)?p(H)(`Wird gesendet â¦`,`Sending â¦`):p(W)),1),u(`span`,F,o(p(G)),1)])],8,M)],32))],2))}}},[[`__scopeId`,`data-v-ac33275b`]]);export{B as t};
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.