1import{_ as h}from"./check_mark-CWyN6sIH.js";import{aG as b,aW as v,aY as g,aI as c,aJ as y,aM as a,b0 as t,a$ as e,b7 as n,bl as m,b6 as l,b1 as f}from"./index-CxagzU0w.js";import{E as S}from"./EmailSeriesService-DtCs_ApL.js";const x={key:0,class:"row justify-center c-pt-xl c-px-md"},E={class:"row full-width"},k={class:"col-12 c-mb-lg text-center"},w={key:0,src:"/de/assets/images/icon/attention-red.svg",width:"160",alt:"error"},M={key:1,src:h,width:"160",alt:"success"},C={class:"row justify-center c-mb-lg"},I={class:"col-12 text-center c-text-display"},B={class:"col-12 text-center c-mt-xl"},N={class:"italic"},D=b({__name:"SubscribeEmailSeries",setup(q){const o=v(),d=g(),u=c(!0),s=c(),_=c();return y(async()=>{var i,r;d.loading.show({delay:0});try{_.value=await S.subscribe(o.params.emailSeries,Number.parseInt(o.query.emailId),o.query.subscriptionChannel)}catch(p){((r=(i=p.response)==null?void 0:i.data)==null?void 0:r.errorCode)==="CL_EMAIL_SERIES_4000"?s.value="Sie haben die E-Mail-Serie bereits abonniert.":s.value="Das hat nicht geklappt."}u.value=!1,d.loading.hide()}),(i,r)=>u.value?f("",!0):(a(),t("div",x,[e("div",null,[e("div",E,[e("div",k,[s.value?(a(),t("img",w)):(a(),t("img",M))])]),e("div",C,[e("h1",I,n(s.value?"Hoppla!":"Es hat geklappt!"),1),e("h4",B,[s.value?(a(),t(m,{key:0},[l(n(s.value),1)],64)):(a(),t(m,{key:1},[l("Sie haben die E-Mail-Serie an "),e("span",N,n(_.value),1),l(" abonniert.")],64))])])])]))}});export{D as default};
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.