1import{C as e,D as a,E as t,It as s,M as n,N as i,T as o,Wt as l,_ as r,it as m,mn as p,st as u,wt as c}from"./A7A7LHMD.js";import{Bt as d,Mt as f,j as y,k as b,x}from"#entry";import{t as _}from"./C3_i8thW.js";import{t as g}from"./c3XdLZJH.js";import{n as k,t as v}from"./Bi0KqFvA2.js";var B={class:"d-subscription-confirmation-page"},R={key:0,class:"mb-afterBlocks mt-beforeBlocks px-lg py-md rounded-card bg-surface >=1280:max-w-8/12col 1280:mx-auto"},M={key:1,class:"mb-afterBlocks mt-beforeBlocks w-full >=1280:max-w-8/12col 1280:mx-auto"},N=["name","value"],T={key:0,class:"text-strong text-display-2xs mt-md"},j={__name:"SubscriptionConfirmationPage",props:{form:Object,intro:Object,responseMessage:String},setup(j){_();const w=j,C=f(),h=e(()=>w.responseMessage||y("PHRASE_SUBSCRIPTION_CONFIRMED",{capitalize:!0})),E=s(k(w.form,{populate:C.query})),H=s(!1),O=s(!1),S=s(""),A=()=>{O.value=!0,S.value=""},I=e=>{e?H.value=!0:S.value=y("PHRASE_AN_ERROR_OCCURRED_TRY_AGAIN",{capitalize:!0}),O.value=!1};return(e,s)=>{const f=g,y=x,_=v,k=b;return m(),a("article",B,[i(k,{name:"content-page-layout"},{default:c(()=>[i(d,{name:"t-subscription-confirmation-page-panel-shift",mode:"out-in"},{default:c(()=>[l(H)?(m(),a("div",R,[l(h)?(m(),o(f,{key:0,class:"text-strong text-display-xs",innerHTML:l(h)},null,8,["innerHTML"])):t("",!0)])):(m(),a("div",M,[j.intro?.teaser?(m(),o(f,{key:0,class:"text-display-xs text-strong whitespace-pre-line mb-md",innerHTML:j.intro?.teaser},null,8,["innerHTML"])):t("",!0),i(_,{action:l(E).endpointUrl,method:"post","use-native-form-data-on-post":"",onFetch:A,onComplete:I},{default:c(()=>[(m(!0),a(r,null,u(l(E).fieldsByType.hidden,e=>(m(),a("input",{key:e?.name,name:e?.name,value:e.value,type:"hidden"},null,8,N))),128)),(m(),o(y,{key:l(E).fieldByName.submit?.name,name:l(E).fieldByName.submit?.name,type:l(E).fieldByName.submit.type,"aria-disabled":l(O)?"true":null,color:"primary",class:"w-full >=656:w-fit"},{default:c(()=>[n(p(l(E).fieldByName.submit.label),1)]),_:1},8,["name","type","aria-disabled"]))]),_:1},8,["action"]),i(d,{name:"t-subscription-confirmation-page-error-message"},{default:c(()=>[""!==l(S)?(m(),a("p",T,p(l(S)),1)):t("",!0)]),_:1})]))]),_:1})]),_:1})])}}};export{j 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.