1import{V as e,at as t,nt as n,u as r}from"./FFsIuA2d.js";import{B as i,G as a,H as o,I as s,N as ee,Pt as c,Rt as l,Z as te,at as u,ct as d,d as f,f as p,m,p as h,pt as g,r as ne,s as re,tt as _,u as v,v as y}from"./D26NMIVi.js";import{t as b}from"./7IxXFmaK.js";import{n as ie,t as x}from"#entry";import{t as ae}from"./RLAwgR2s.js";import{t as oe}from"./BV-5AJzc.js";var se=[`aria-label`],ce=[`aria-label`],le={class:`at-nls__eyebrow`},S={class:`at-nls__title`},C={class:`at-nls__benefits`},w={key:0,class:`at-nls__embed`},T={key:1,"aria-live":`polite`},E={class:`at-nls__srlabel`,for:`at-nls-email`},D=[`placeholder`,`aria-invalid`,`aria-describedby`],O={class:`at-nls__hp`,"aria-hidden":`true`},k={key:0,id:`at-nls-email-error`,class:`at-nls__error`},A=[`disabled`],j={class:`at-nls__btn-text`},M={class:`at-nls__btn-main`},N={class:`at-nls__btn-sub`},P={key:1,class:`at-nls__thanks`},F={class:`at-nls__thanks-title`},I={key:0,class:`at-nls__thanks-text`},L={key:1,class:`at-nls__thanks-text`},R={key:2,class:`at-nls__fine`},ue={key:3,class:`at-nls__fine`},z=x({__name:`AtNewsletterSignup`,props:{open:{type:Boolean,default:!1}},emits:[`close`],setup(x,{emit:z}){let B=x,V=z,H=e(),U=r(),W=ie(),G=v(()=>!!H.public.app.features?.beehiiv),K=d(``),q=d(``),J=d(0),Y=d(!1),X=d(!1),Z=d(``),Q=d(null);te(()=>B.open,e=>{document.body.style.overflow=e?`hidden`:``,e&&!G.value&&(K.value=``,q.value=``,J.value=Date.now(),X.value=!1,Z.value=``,ee(()=>Q.value?.focus()))});let $=e=>{e.key===`Escape`&&B.open&&V(`close`)};i(()=>window.addEventListener(`keydown`,$)),s(()=>{window.removeEventListener(`keydown`,$),B.open&&(document.body.style.overflow=``)});let de=async()=>{if(Z.value=``,!oe(K.value)){Z.value=W(`Bitte geben Sie eine gültige E-Mail-Adresse ein.`,`Please enter a valid email address.`);return}Y.value=!0;try{await b(`/api/registration`,{method:`POST`,body:{type:`newsletter`,email:K.value.trim(),privacyConsent:!0,source:U.fullPath,device:/Mobi|Android/i.test(navigator.userAgent)?`mobile`:`desktop`,company:q.value,startedAt:J.value}}),X.value=!0}catch{Z.value=W(`Das hat leider nicht geklappt. Bitte versuchen Sie es erneut.`,`Something went wrong. Please try again.`)}finally{Y.value=!1}},fe=[W(`Tägliche Marktupdates mit klaren Handlungsanweisungen`,`Daily market updates with clear takeaways`),W(`Geheimtipp-Aktien mit der âAktie im Fokusâ`,`Under-the-radar small caps before the crowd finds them`),W(`Exklusive Sonderreports â 100 % kostenlos`,`Exclusive special reports â 100% free`)];return(e,r)=>{let i=ae;return o(),p(re,{to:`body`},[f(`div`,{class:c([`at-nls-ov`,{"is-open":x.open}]),onClick:r[0]||=e=>V(`close`)},null,2),f(`div`,{class:c([`at-nls`,{"is-open":x.open}]),role:`dialog`,"aria-modal":`true`,"aria-label":g(W)(`Newsletter-Anmeldung`,`Newsletter signup`)},[f(`button`,{class:`at-nls__close`,"aria-label":g(W)(`SchlieÃen`,`Close`),onClick:r[1]||=e=>V(`close`)},`Ã`,8,ce),f(`span`,le,[r[4]||=f(`i`,{class:`fa-solid fa-envelope-open-text`,"aria-hidden":`true`},null,-1),y(` `+l(g(H).public.app.stylename),1)]),f(`h2`,S,l(g(W)(`Die ganze Welt von {title} â kostenlos in Ihr Postfach`,`Your front row seat to the stories that move markets`,{title:g(H).public.app.title})),1),f(`ul`,C,[(o(),m(ne,null,a(fe,(e,t)=>f(`li`,{key:t},[r[5]||=f(`i`,{class:`fa-solid fa-circle-check`,"aria-hidden":`true`},null,-1),y(` `+l(e),1)])),64))]),g(G)?(o(),m(`div`,w,[x.open?(o(),p(i,{key:0,content:{}})):h(``,!0)])):(o(),m(`div`,T,[g(X)?(o(),m(`div`,P,[r[8]||=f(`span`,{class:`at-nls__thanks-icon`,"aria-hidden":`true`},[f(`i`,{class:`fa-solid fa-circle-check`})],-1),f(`div`,null,[f(`p`,F,l(g(W)(`Vielen Dank!`,`Thank you!`)),1),g(H).public.app.language===`en`?(o(),m(`p`,I,` Please confirm your subscription via the link we just emailed you. `)):(o(),m(`p`,L,` Bitte bestätigen Sie Ihre Anmeldung über den Link, den wir Ihnen soeben per E-Mail geschickt haben. `))])])):(o(),m(`form`,{key:0,class:`at-nls__form`,novalidate:``,onSubmit:t(de,[`prevent`])},[f(`label`,E,l(g(W)(`E-Mail-Adresse`,`Email address`)),1),_(f(`input`,{id:`at-nls-email`,ref_key:`emailInput`,ref:Q,"onUpdate:modelValue":r[2]||=e=>u(K)?K.value=e:null,type:`email`,autocomplete:`email`,required:``,placeholder:g(W)(`Ihre E-Mail-Adresse`,`Your email address`),"aria-invalid":g(Z)?`true`:void 0,"aria-describedby":g(Z)?`at-nls-email-error`:void 0}
1,null,8,D),[[n,g(K)]]),f(`label`,O,[r[6]||=f(`span`,null,`Firma`,-1),_(f(`input`,{"onUpdate:modelValue":r[3]||=e=>u(q)?q.value=e:null,type:`text`,name:`company`,tabindex:`-1`,autocomplete:`off`},null,512),[[n,g(q)]])]),g(Z)?(o(),m(`p`,k,l(g(Z)),1)):h(``,!0),f(`button`,{type:`submit`,class:`at-nls__btn`,disabled:g(Y)},[r[7]||=f(`span`,{class:`at-nls__btn-icon`},[f(`i`,{class:`fa-solid fa-paper-plane`,"aria-hidden":`true`})],-1),f(`span`,j,[f(`span`,M,l(g(Y)?g(W)(`Wird gesendet â¦`,`Sending â¦`):g(W)(`Jetzt kostenlos anmelden`,`Subscribe for free`)),1),f(`span`,N,l(g(W)(`Jederzeit abbestellbar`,`Unsubscribe anytime`)),1)])],8,A)],32))])),g(H).public.app.language===`en`?(o(),m(`p`,R,[y(l(g(H).public.app.stylename)+` is a service of `+l(g(H).public.app.companyname)+` By subscribing you accept our `,1),r[9]||=f(`a`,{href:`/terms`,target:`_blank`,rel:`noopener`},`Terms`,-1),r[10]||=y(`, our `,-1),r[11]||=f(`a`,{href:`/disclaimer`,target:`_blank`,rel:`noopener`},`Disclaimer`,-1),r[12]||=y(` and our `,-1),r[13]||=f(`a`,{href:`/data-protection`,target:`_blank`,rel:`noopener`},`Privacy Policy`,-1),r[14]||=y(`. `,-1)])):(o(),m(`p`,ue,[y(` Der `+l(g(H).public.app.stylename)+` ist ein Angebot der `+l(g(H).public.app.companyname)+` Mit Ihrer Anmeldung akzeptieren Sie unsere `,1),r[15]||=f(`a`,{href:`/terms`,target:`_blank`,rel:`noopener`},`AGBs`,-1),r[16]||=y(`, unseren `,-1),r[17]||=f(`a`,{href:`/disclaimer`,target:`_blank`,rel:`noopener`},`Disclaimer`,-1),r[18]||=y(` und unsere `,-1),r[19]||=f(`a`,{href:`/data-protection`,target:`_blank`,rel:`noopener`},`Datenschutzbestimmungen`,-1),r[20]||=y(`. `,-1)]))],10,se)])}}},[[`__scopeId`,`data-v-e585e153`]]);export{z 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.