1import{_ as H}from"./BH7Ntq77.js";import{a as T,_ as I}from"./DwV-iD-_.js";import{_ as O}from"./CMbfi7gw.js";import{_ as V}from"./COgaapTo.js";import{_ as G}from"./DB1lbEE9.js";import{b as d,F as u,G as _,c as $}from"./D7jEClQX.js";import{d as k,a6 as A,u as D,c as B,w as f,aj as b,a as w,x as g,o as C,q as m,b as i,t as y,X as h,f as U}from"./hCax0N09.js";import"./CviKC0XW.js";import"./CXMFhL9v.js";import"./CXIp-j0j.js";import"./fSQK-1sC.js";import"./D_kHLzDr.js";import"./NptCpsWI.js";import"./HZbGRbeJ.js";import"./DD3Yo_LY.js";import"./BoE4A4Es.js";import"./CSJpSGat.js";import"./DHgFQbH7.js";import"./BPzgfR3M.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"c03a07569fe3dc5554dac0168074f48cb7dfa87c"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=(function(l){for(var n=1;n<arguments.length;n++){var t=arguments[n];if(t!=null)for(var s in t)t.hasOwnProperty(s)&&(l[s]=t[s])}return l})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:abae217d-7186-45d0-bf80-8ee1d83e48c0":!0});var c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="ca17ceb2-4710-4d1e-b5fd-4b1cc5fbf98a",e._sentryDebugIdIdentifier="sentry-dbid-ca17ceb2-4710-4d1e-b5fd-4b1cc5fbf98a")}catch{}})();const j={class:"HtlPopinNewsletter",tabindex:"0"},q={class:"HtlPopinNewsletter__title"},K={class:"HtlPopinNewsletter__subtitle"},L=k({__name:"HtlPopinNewsletter",props:{popin:{}},emits:["closed"],setup(e,{emit:c}){const l=e,n=c,t=g(!0);function s(){n("closed"),t.value=!1}const{removeRootFolderOfUrl:N}=A(),r=g(),{locale:v}=D();async function E(a){const o=a;o.language=v.value,await $fetch("/api/form/newsletter-preregister",{method:"POST",body:o}).then(()=>{r.value="success",h({event:_.FormValidation,formName:u.Newsletter,formAnswer:d.Success}),n("closed"),window.location.href=`${N(l.popin.confirmationPage.story.url)}?email=${a.email}`}).catch(()=>{r.value="failed",h({event:_.FormValidation,formName:u.Newsletter,formAnswer:d.Fail,formError:$.Technical})})}return(a,o)=>{const P=H,S=T,M=I,x=O,F=V,R=G;return C(),B(R,{modelValue:w(t),"onUpdate:modelValue":o[1]||(o[1]=p=>b(t)?t.value=p:null),"max-width":"860",onClosed:s},{default:f(()=>[m("div",j,[i(P,{class:"HtlPopinNewsletter__close",tag:"button",icon:"custom:close","aria-label":a.$t("a11y.dialog.close"),onClick:s},null,8,["aria-label"]),m("div",null,[m("h2",q,y(e.popin.title),1),m("p",K,y(e.popin.subtitle),1),i(M,{"form-status":w(r),"onUpdate:formStatus":o[0]||(o[0]=p=>b(r)?r.value=p:null),"form-name":"newsletter",class:"HtlPopinNewsletter__form",layout:"inline","submit-label":a.$t("forms.subscribe"),onOnSuccess:E},{default:f(()=>[i(S,{name:"email",label:void 0,placeholder:a.$t("forms.placeholders.promptEmail")},null,8,["placeholder"])]),_:1},8,["form-status","submit-label"]),i(x,{class:"HtlPopinNewsletter__mentions",content:e.popin.mentions},null,8,["content"])]),i(F,{class:"HtlPopinNewsletter__image",image:e.popin.image,width:"380",height:"400"},null,8,["image"])])]),_:1},8,["modelValue"])}}}),de=Object.assign(U(L,[["__scopeId","data-v-4c47007a"]]),{__name:"HtlPopinNewsletter"});export{de 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.