1import{c as U}from"./DAIuYH2H.js";import{d as F,f as M,o as t,g as s,h as m,w as c,b as v,j as r,a4 as E,c as g,k as R,q as o,i as A,t as d,F as h,l as y,n as T,bV as $,Y as B,bH as w,ah as L,N as O,O as j,r as Y,s as I,_ as q}from"./f_1_Qhsc.js";import{A as H}from"./BNRQEPR9.js";import{a as P}from"./CDeNtMJt.js";import{C as G}from"./Bv5YHqRA.js";import"./Ca1zQClM.js";import"./B5hUMEXD.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:"R14.36"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new e.Error().stack;u&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[u]="3cc93c69-87eb-4921-808b-904f055ceb3d",e._sentryDebugIdIdentifier="sentry-dbid-3cc93c69-87eb-4921-808b-904f055ceb3d")})()}catch{}const J={class:"e-show-voucher-validated-step"},K={class:"icon-wrapper","aria-hidden":"true"},Q={key:0,class:"header-title"},W={key:1,class:"header-description"},X={class:"e-coupon-verified"},Z={key:0,class:"title"},_={key:0,class:"separator"},ee={key:0,class:"coupon-row header"},te={class:"icon-wrapper","aria-hidden":"true"},se={key:0,class:"info-title"},ae={key:1},ne={key:2,class:"consent"},oe={key:3,class:"buttons"},ie=F({__name:"ShowVoucherValidatedStep",props:{step:{}},setup(e){const{t:u}=M("components.registration.ShowVoucherValidatedStep"),k=e,C=Y([]),x=I(()=>{const n=k.step.consentList?.items.filter(i=>i.schema==="Consent");return!n||n.length===0?!0:!!n?.every(i=>C.value.includes(i.id))}),z=I(()=>k.step.commands?.some(n=>n.command==="SelectSettleMethodCommand")),D=n=>{const{identifier:i,vouchers:a}=k.step;switch(n.command){case"ValidateVouchersCommand":return{schema:"ValidateVouchersCommand",identifier:i,vouchers:a};case"ApplyVouchersCommand":return{schema:"ApplyVouchersCommand",identifier:i,vouchers:a};case"EnterVoucherCommand":return{schema:"EnterVoucherCommand",identifier:i,vouchers:a};case"SelectSettleMethodCommand":return{schema:"SelectSettleMethodCommand",identifier:i,vouchers:a};case"SettleVouchersCommand":return{schema:"SettleVouchersCommand",identifier:i,vouchers:a};default:throw new Error(`Unsupported payment command "${n.command}" without customAction`)}},N=n=>n.customAction?n.customAction:{schema:"ApiAppAction",call:"user.payment.step",params:{payload:{command:D(n)}}},V=n=>n.ux;return(n,i)=>(t(),s("div",J,[m(H,{title:r(u)("title"),"right-title":r(u)("rightTitle"),"right-description":r(u)("rightDescription"),variant:"slim"},{top:c(()=>[e.step.header?(t(),g($,{key:0,class:"header-message",variant:"secondary",box:"",size:"large"},B({default:c(()=>[e.step.header.title?(t(),s("div",Q,d(e.step.header.title),1)):o("",!0),e.step.header.description?(t(),s("div",W,d(e.step.header.description),1)):o("",!0)]),_:2},[r(w)(e.step.header.style)?{name:"icon",fn:c(()=>[v("div",K,[m(L,{icon:r(w)(e.step.header.style),size:24},null,8,["icon"])])]),key:"0"}:void 0]),1024)):o("",!0)]),back:c(()=>[m(P,{label:e.step.back},null,8,["label"])]),left:c(()=>[m(U,{class:"voucher",variant:"bordered"},{default:c(()=>[v("div",X,[e.step.statement.validity?(t(),s("div",Z,[r(E)(e.step.statement.validity)?(t(),g(R,{key:0,name:r(E)(e.step.statement.validity)},null,8,["name"])):o("",!0),A(" "+d(e.step.statement.validity.name),1)])):o("",!0),(t(!0),s(h,null,y(e.step.statement.parts,(a,f)=>(t(),s(h,{key:`part-${f}`},[f+1===e.step.statement.parts.length?(t(),s("div",_)):o("",!0),v("div",{class:T(["legacy-table",f===1?"second":""])},[a.header?(t(),s("div",ee,[(t(!0),s(h,null,y(a.header.cells,(l,S)=>(t(),s("div",{key:`cell-${S}`},[A(d(l.value.schema==="TableTextCell"?l.value.text:`Unhandled table cell "${l.value.schema}"`)+" ",1),l.value.schema==="TableTextCell"&&l.value.multiline?(t(!0),s(h,{key:0},y(l.value.multiline,(p,b)=>(t(),s("span",{key:`line-${b}`,class:"subtitle"},d(p.name),1))),128)):o("",!0)]))),128))])):o("",!0),(t(!0),s(h,null,y(a.rows??[],(l,S)=>(t(),s("div",{key:`row-${S}`,class:T(["coupon-row",{"coupon-row--settlement":z.value}])},[(t(!0),s(h,null,y(l.cells??[],(p,b)=>(t(),s("span",{key:`cell-${b}`,class:T({bold:f>0&&b==1})},d(p.value.schema==="TableTextCell"?p.value.text:`Unhandled table cell "${p.value.schema}"`),3))),128))],2))),128))],2)],64))),128)),e.step.insufficientValue&&e.step.info?(t(),g($,{key:1,class:"info-message",variant:e.step.info.template==="transparent"?"info-transparent":"warning",icon:e.step.info.template==="transparent"?void 0:"warning","icon-size":32,size:"small"},B({default:c(()=>[e.step.info.title?(t(),s("div",se,d(e.step.info.title),1)):o("",!0),e.step.info.description?(t(),s("span",ae,d(e.step.info.description),1)):o("",!0)]),_:2},[r(w)(e.step.info.style)?{name:"icon",fn:c(()=>[v("div",te,[m(L,{icon:r(w)(e.step.info.style),size:32},null,8,["icon"])])]),key:"0"}:void 0]),1032,["variant","icon"])):o("",!0),e.step.consentList?(t(),s("div",ne,[m(G,{consents:C.value,"onUpdate:consents":i[0]||(i[0]=a=>C.value=a),variant:"card","consent-list":e.step.consentList},null,8,["consents","consent-list"])])):o("",!0),e.step.commands?.length?(t(),s("div",oe,[(t(!0),s(h,null,y(e.step.commands,(a,f)=>(t(),g(O,{key:`cmd-${f}`,action:N(a),disabled:!x.value},{default:c(({isLoading:l})=>[m(j,{is:"div",expand:"",variant:"custom","bg-color":V(a)?.style?.bgColor,color:V(a)?.style?.fontColor,"show-loader":l,disabled:!x.value},{default:c(()=>[A(d(V(a)?.text),1)]),_:2},1032,["bg-color","color","show-loader","disabled"])]),_:2},1032,["action","disabled"]))),128))])):o("",!0)])]),_:1})]),_:1},8,["title","right-title","right-description"])]))}}),fe=Object.assign(q(ie,[["__scopeId","data-v-cfdbd6c4"]]),{__name:"RegistrationShowVoucherValidatedStep"});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.