1import T from"./CRi5lzwR.js";import{A as U,k as R,C as h,o as A,c as F,w as d,a as s,e,av as y,_ as M,s as x,u as n,aw as g,h as u,aA as j}from"./CO3rmisD.js";import{_ as N}from"./xb1fom76.js";import{_ as q}from"./TrhotYMV.js";import E from"./CpNIp6Dl.js";import O from"./DodfbJgy.js";import W from"./CII5e-e6.js";import{u as z}from"./CXFuWndl.js";import"./B6WbzyQT.js";import"./OagbG_Wv.js";import"./CuGWsV6L.js";import"./iqtTcO5v.js";import"./C2kDVKXN.js";import"./BrZGXogI.js";import"./fQil2VWn.js";import"./CA-C0W5z.js";import"./C86cw3EK.js";import"./DHAeczLT.js";import"./Cb5Zzlfc.js";import"./LcFuntGO.js";try{let a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new a.Error().stack;l&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[l]="e9345727-39dd-47eb-bf20-db535121819e",a._sentryDebugIdIdentifier="sentry-dbid-e9345727-39dd-47eb-bf20-db535121819e")}catch{}const G={class:"container max-w-full mx-auto",style:{width:"1000px"}},H={class:"flex gap-lg justify-center mt-2xl"},J={class:"flex gap-lg justify-center mt-2xl"},fe={__name:"Voucher",setup(a){const l=u({}),_=u({}),r=u(""),w=U(),$=u(0),f=R(),k=async()=>{await j({id:"doVoucherPayment",data:{...l.value,Msisdn:r.value},success:p=>{$.value=p.Balance,f.isLoggedIn&&f.msisdn===r.value&&f.getBalance(),o.value="success"}})},{stepRefsToFocusAfterStepChange:v,steps:S,step:o,context:B}=z();B.value="VoucherTopUp";const m={msisdn:u(null),code:u(null),success:u(null)};v.value.msisdn=m.msisdn,v.value.code=m.code,v.value.success=m.success,S.value={msisdn:{title:h("payment$voucher_step_msisdn$ariaLabel")},code:{title:h("payment$voucher_step_code$ariaLabel")},success:{title:h("payment$voucher_step_success$ariaLabel")}};const V=p=>{if(p==="next")switch(o.value){case"msisdn":o.value="code";break}else if(p==="previous")switch(o.value){case"msisdn":w.back();break;case"code":o.value="msisdn";break}};return o.value="msisdn",(p,t)=>{const C=T,c=M,I=N,L=q,D=E,b=O,P=W;return A(),F(P,{class:"relative"},{default:d(()=>[s("div",G,[e(C,{requests:"doVoucherPayment"}),y(s("div",null,[s("h1",{ref:m.msisdn,tabindex:"-1",class:"text-center"},[e(c,{name:"voucher_headline_specifyMsisdn"})],512),e(I,{modelValue:n(r),"onUpdate:modelValue":t[0]||(t[0]=i=>x(r)?r.value=i:null),onChangeStep:V},null,8,["modelValue"])],512),[[g,n(o)==="msisdn"]]),y(s("div",null,[s("h1",{ref:m.code,tabindex:"-1",class:"text-center"},[e(c,{name:"voucher_headline_payWithVoucher"})],512),e(D,{class:"mt-lg mx-auto max-w-full",style:{width:"400px"}},{default:d(()=>[e(L,{formData:n(l),"onUpdate:formData":t[1]||(t[1]=i=>x(l)?l.value=i:null),info:n(_),"onUpdate:info":t[2]||(t[2]=i=>x(_)?_.value=i:null),type:"Voucher",mode:"Voucher",onSubmitForm:k},null,8,["formData","info"])]),_:1}),s("div",H,[s("div",null,[e(b,{color:"outline",onClick:t[3]||(t[3]=i=>V("previous"))},{default:d(()=>[e(c,{name:"global_action_back"})]),_:1})]),s("div",null,[e(b,{onClick:k},{default:d(()=>[e(c,{name:"global_action_submit"})]),_:1})])])],512),[[g,n(o)==="code"]]),y(s("div",null,[s("h1",{ref:m.success,tabindex:"-1",class:"text-center"},[e(c,{name:"payment$voucher_headline_success"})],512),e(D,null,{default:d(()=>[e(c,{name:"payment$voucher_text_success",placeholders:{msisdn:n(r),balance:n($)}},null,8,["placeholders"])]),_:1}),s("div",J,[s("div",null,[e(b,{color:"outline",onClick:t[4]||(t[4]=i=>n(w).back())},{default:d(()=>[e(c,{name:"global_action_back"})]),_:1})])])],512),[[g,n(o)==="success"]])])]),_:1})}}};export{fe 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.