1import le from"./CRi5lzwR.js";import{u as e,o as f,c as I,w as h,b as C,a as i,t as T,v as L,e as r,_ as F,d as _,F as q,r as X,ax as H,x as w,C as S,a9 as Y,ac as Z,j as ce,af as ue,av as K,s as R,aw as Q,n as me,k as ee,I as de,A as fe,h as D,D as W,bo as ge,at as pe,as as he}from"./CO3rmisD.js";import z from"./CpNIp6Dl.js";import{_ as be}from"./OagbG_Wv.js";import{_ as ye}from"./fQil2VWn.js";import{_ as _e}from"./B6WbzyQT.js";import{_ as ve}from"./iqtTcO5v.js";import te from"./DodfbJgy.js";import Ce from"./CA-C0W5z.js";import{_ as ke}from"./TrhotYMV.js";import{_ as Pe}from"./C8FB_Hh-.js";import{_ as xe}from"./Cb1EPm49.js";import Te from"./CII5e-e6.js";import{u as Ae}from"./CXFuWndl.js";import"./CuGWsV6L.js";import"./Cb5Zzlfc.js";import"./LcFuntGO.js";import"./BrZGXogI.js";import"./C2kDVKXN.js";import"./C86cw3EK.js";import"./DHAeczLT.js";import"./CZEPpSA4.js";import"./CmCyzZQ2.js";import"./BeaQorcZ.js";import"./iFaNScwo.js";import"./BV_n_V4N.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new t.Error().stack;m&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[m]="8d53ed14-f3a9-4919-937e-f2c6b6c1f600",t._sentryDebugIdIdentifier="sentry-dbid-8d53ed14-f3a9-4919-937e-f2c6b6c1f600")}catch{}const $e={key:0},Le={class:"flex items-start justify-between"},Ie={class:"text-right"},De={key:0,class:"text-sm text-red"},we={key:0,class:"mt-sm"},Be={key:0,class:"my-lg"},Me={class:"flex items-start justify-between"},Se={class:"text-right"},Re={key:0,class:"text-sm text-red"},Oe={key:2},Fe={class:"flex items-start justify-between"},Ve={__name:"Price",props:{process:String,packageCombination:Object},setup(t){const m=w(()=>{var a,n,o,u,d,b,A,v,y;return(n=(a=t.packageCombination)==null?void 0:a.PriceDetails)!=null&&n.TariffNew&&((o=t.packageCombination)==null?void 0:o.TariffId)!=((d=(u=t.packageCombination)==null?void 0:u.PriceDetails)==null?void 0:d.Tariff.Id)?(A=(b=t.packageCombination)==null?void 0:b.PriceDetails)==null?void 0:A.TariffNew:(y=(v=t.packageCombination)==null?void 0:v.PriceDetails)==null?void 0:y.Tariff}),l=w(()=>{var a,n,o,u,d,b,A,v,y,x;return!!((o=(n=(a=t.packageCombination)==null?void 0:a.PriceDetails)==null?void 0:n.Tariff)!=null&&o.Price&&(((b=(d=(u=t.packageCombination)==null?void 0:u.PriceDetails)==null?void 0:d.Tariff)==null?void 0:b.Price)!="0,00"||(y=(v=(A=t.packageCombination)==null?void 0:A.PriceDetails)==null?void 0:v.Tariff)!=null&&y.PriceOriginal)&&(t.process=="maintain"||t.process=="activation"&&((x=t.packageCombination)!=null&&x.TariffId)))}),g=w(()=>{var a,n,o;return!!((n=(a=t.packageCombination)==null?void 0:a.PriceDetails)!=null&&n.Packages&&(t.process=="maintain"||t.process=="activation"&&((o=t.packageCombination)!=null&&o.PackageIds)))});function k(a,n=!1){var b;if(!a)return"";const o=[];let u=S("tariff$packages_text_packageOneTimePrice");(a.Recurring||n)&&(u=S("tariff_text_intervall",{days:(b=a.RecurringInterval)==null?void 0:b.Days})),o.push(u);let d=!1;if(a.FutureDated||a.Status!=="AVAILABLE"){const A=a.Status==="NEW"||a.Status==="AVAILABLE"?(d=!0,a.FromDate):a.ToDate,v=S("tariff$priceInfo_text_recurringProlongationDate",{prolongationDate:A});(a.Recurring||d)&&o.push(v)}return a.DiscountFirstMonthForFree?o.push(S("tariff_text_firstMonthForFree")):a.DiscountOneMonthForFree&&o.push(S("tariff_text_oneMonthForFree")),o.join(" ⢠")}const P=w(()=>k(m.value,!0)),s=w(()=>l.value&&g.value),c=w(()=>{var o,u,d;const a=((o=t.packageCombination)==null?void 0:o.PackageIds)??{},n=((d=(u=t.packageCombination)==null?void 0:u.PriceDetails)==null?void 0:d.Packages)??[];return t.process=="activation"?n.filter(b=>Object.prototype.hasOwnProperty.call(a,String(b.Id))):n});return(a,n)=>{const o=F,u=z;return e(l)||e(g)?(f(),I(u,{key:0},{default:h(()=>[e(l)?(f(),C("div",$e,[i("div",Le,[i("div",null,[T(L(e(m).Name),1),n[0]||(n[0]=i("br",null,null,-1)),T(L(e(P)),1)]),i("div",Ie,[r(o,{name:"global_text_euro"}),T(" "+L(e(m).Price)+" ",1),e(m).PriceOriginal&&e(m).PriceOriginal!==e(m).Price?(f(),C("del",De,[n[1]||(n[1]=i("br",null,null,-1)),r(o,{name:"global_text_euro"}),T(" "+L(e(m).PriceOriginal),1),n[2]||(n[2]=i("br",null,null,-1))])):_("",!0)])]),e(m).DiscountLabelDescription?(f(),
1C("div",we,L(e(m).DiscountLabelDescription),1)):_("",!0)])):_("",!0),e(g)?(f(!0),C(q,{key:1},X(e(c),d=>(f(),C("div",null,[e(l)?(f(),C("hr",Be)):_("",!0),i("div",Me,[i("div",null,[T(L(d.Name),1),n[3]||(n[3]=i("br",null,null,-1)),T(L(k(d)),1)]),i("div",Se,[r(o,{name:"global_text_euro"}),T(" "+L(d.Price)+" ",1),d.PriceOriginal&&d.PriceOriginal!==d.Price?(f(),C("del",Re,[n[4]||(n[4]=i("br",null,null,-1)),T("EUR "+L(d.PriceOriginal),1),n[5]||(n[5]=i("br",null,null,-1))])):_("",!0)])])]))),256)):_("",!0),e(s)?(f(),C("div",Oe,[n[6]||(n[6]=i("hr",{class:"my-lg"},null,-1)),i("div",Fe,[i("div",null,[r(o,{name:"tariff$priceInfo_text_total"})]),i("div",null,[r(o,{name:"global_text_euro"}),T(" "+L(("formatPrice"in a?a.formatPrice:e(H))(t.packageCombination.PriceRecurring)),1)])])])):_("",!0)]),_:1})):_("",!0)}}},je={__name:"Treshold",props:Z({packageCombination:Object},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const m=Y(t,"modelValue");return m.value={TresholdMode:"Amount",TresholdAmount:t.packageCombination.Recurring.Treshold.CurrentTresholdAmount,ChargingAmount:t.packageCombination.Recurring.Treshold.CurrentChargingAmount},(l,g)=>{const k=F,P=z;return f(),I(P,{class:"mb-xl"},{default:h(()=>[r(k,{name:"payment$Threshold_text_TresholdInfo",placeholders:{TresholdAmount:m.value.TresholdAmount,ChargingAmount:m.value.ChargingAmount}},null,8,["placeholders"])]),_:1})}}},Ue={class:"flex flex-col gap-xl mb-xl"},Ne={key:0,class:"flex justify-between gap-md"},He={class:"flex items-center"},ze={class:"flex"},Ee={class:"flex gap-md flex-wrap justify-end"},We={__name:"Hybrid",props:Z({showThresholdCheckbox:{type:Boolean,default:!0},showChargingAmountSelect:{type:Boolean,default:!0},packageCombination:Object},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const m=ce(),l=Y(t,"modelValue");l.value||(l.value={});const g=w({get:()=>{var s;return t.packageCombination.TariffId===1?!0:((s=l.value)==null?void 0:s.ActivateTreshold)??!1},set:s=>{t.packageCombination.TariffId!==1&&(l.value.ActivateTreshold=s)}});ue(()=>t.packageCombination,s=>{var a,n,o,u,d,b;const c=!!((n=(a=s==null?void 0:s.Recurring)==null?void 0:a.Hybrid)!=null&&n.ChargingAmount);s.TariffId===1?l.value.ActivateTreshold=!0:l.value.ActivateTreshold===void 0&&(s.CurrentPaymentType==="Hybrid"?l.value.ActivateTreshold=c:s.PriceDetails.Tariff.IsMbb||(l.value.ActivateTreshold=!0)),c?l.value.ChargingAmount=(u=(o=s==null?void 0:s.Recurring)==null?void 0:o.Hybrid)==null?void 0:u.ChargingAmount:l.value.ChargingAmount=((b=(d=t.packageCombination)==null?void 0:d.Recurring)==null?void 0:b.HybridChargingAmount)??0},{immediate:!0,deep:!0});const k=()=>{l.value.ActivateTreshold=!l.value.ActivateTreshold},P=w(()=>{var s;return((s=t.packageCombination)==null?void 0:s.TariffId)!==1?t.showThresholdCheckbox:!1});return(s,c)=>{const a=F,n=be,o=ye,u=z,d=_e,b=ve,A=te,v=Ce;return f(),C(q,null,[i("div",Ue,[r(u,{class:me(e(g)?"":"mb-xl")},{default:h(()=>{var y;return[l.value.ActivateTreshold?(f(),C("div",Ne,[i("div",He,[((y=t.packageCombination)==null?void 0:y.TariffId)===1?(f(),I(a,{key:0,name:"payment$hybrid_text_hybridTresholdflex"})):(f(),I(a,{key:1,name:"payment$hybrid_text_hybridTreshold"})),c[7]||(c[7]=T(" Â ",-1)),r(n,null,{trigger:h(()=>[...c[6]||(c[6]=[i("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"white",x:"0px",y:"0px",width:"22",height:"22",viewBox:"0 0 50 50"},[i("path",{d:"M 25 2 C 12.309295 2 2 12.309295 2 25 C 2 37.690705 12.309295 48 25 48 C 37.690705 48 48 37.690705 48 25 C 48 12.309295 37.690705 2 25 2 z M 25 4 C 36.609824 4 46 13.390176 46 25 C 46 36.609824 36.609824 46 25 46 C 13.390176 46 4 36.609824 4 25 C 4 13.390176 13.390176 4 25 4 z M 25 11 A 3 3 0 0 0 22 14 A 3 3 0 0 0 25 17 A 3 3 0 0 0 28 14 A 3 3 0 0 0 25 11 z M 21 21 L 21 23 L 22 23 L 23 23 L 23 36 L 22 36 L 21 36 L 21 38 L 22 38 L 23 38 L 27 38 L 28 38 L 29 38 L 29 36 L 28 36 L 27 36 L 27 21 L 26 21 L 22 21 L 21 21 z"})],-1)])]),content:h(()=>[r(a,{name:"payment$hybrid_text_hybridTresholdInfo",placeholders:{chargingAmount:l.value.ChargingAmount}},null,8,["placeholders"])]),_:1})]),r(a,{name:"global_text_euro"}),T(" "+L(("formatPrice"in s?s.formatPrice:e(H))(l.value.ChargingAmount)),1)])):_("",!0),K(i("div",ze,[r(o,{modelValue:e(g),"onUpdate:modelValue":c[0]||(c[0]=x=>R(g)?g.value=x:null),id:"activateThreshold",onChanged:c[1]||(c[1]=x=>l.value.ActivateTreshold?null:e(m).open("tresholdInfoModal"))},{default:h(()=>[r(a,{name:"payment$hybrid_label_activateHybridTreshold"})]),_:1},8,["modelValue"]),c[9]||(c[9]=T(" Â ",-1)),r(n,null,{trigger:h(()=>[...c[8]||(c[8]=[i("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"white",x:"0px",y:"0px",width:"22",height:"22",viewBox:"0 0 50 50"},[i("path",{d:"M 25 2 C 12.309295 2 2 12.309295 2 25 C 2 37.690705 12.309295 48 25 48 C 37.690705 48 48 37.690705 48 25 C 48 12.309295 37.690705 2 25 2 z M 25 4 C 36.609824 4 46 13.390176 46 25 C 46 36.609824 36.609824 46 25 46 C 13.390176 46 4 36.609824 4 25 C 4 13.39
10176 13.390176 4 25 4 z M 25 11 A 3 3 0 0 0 22 14 A 3 3 0 0 0 25 17 A 3 3 0 0 0 28 14 A 3 3 0 0 0 25 11 z M 21 21 L 21 23 L 22 23 L 23 23 L 23 36 L 22 36 L 21 36 L 21 38 L 22 38 L 23 38 L 27 38 L 28 38 L 29 38 L 29 36 L 28 36 L 27 36 L 27 21 L 26 21 L 22 21 L 21 21 z"})],-1)])]),content:h(()=>[r(a,{name:t.packageCombination.PriceDetails.Tariff.IsMbb?"payment$hybrid_text_hybridActivateTresholdInfoMbb":"payment$hybrid_text_hybridActivateTresholdInfo",placeholders:{chargingAmount:l.value.ChargingAmount}},null,8,["name","placeholders"])]),_:1})],512),[[Q,e(P)]])]}),_:1},8,["class"]),K(i("div",null,[r(b,{modelValue:l.value.ChargingAmount,"onUpdate:modelValue":c[2]||(c[2]=y=>l.value.ChargingAmount=y),name:"topupAmount",required:!0,label:("__"in s?s.__:e(S))("payment$hybrid_label_chooseTopupAmount"),hideLabel:""},{default:h(()=>{var y,x;return[(f(!0),C(q,null,X((x=(y=t.packageCombination)==null?void 0:y.Recurring)==null?void 0:x.HybridTopupAmounts,O=>(f(),I(d,{value:String(O)},{default:h(()=>[T(L(("formatPrice"in s?s.formatPrice:e(H))(O))+" ",1),r(a,{name:"global_text_euro"})]),_:2},1032,["value"]))),256))]}),_:1},8,["modelValue","label"])],512),[[Q,t.showChargingAmountSelect&&e(g)]])]),r(v,{title:"tresholdInfo",id:"tresholdInfoModal",onClosed:c[5]||(c[5]=y=>
1k())},{body:h(()=>[r(a,{name:"payment$hybrid_text_deaktivateTresholdInfo"})]),footer:h(()=>[i("div",Ee,[r(A,{class:"ml-auto",color:"outline",onClick:c[3]||(c[3]=y=>{k(),e(m).close("tresholdInfoModal")})},{default:h(()=>[r(a,{name:"global_action_cancel"})]),_:1}),r(A,{onClick:c[4]||(c[4]=y=>e(m).close("tresholdInfoModal"))},{default:h(()=>[r(a,{name:"global_action_confirm"})]),_:1})])]),_:1})],64)}}},qe={__name:"PackageBased",props:{packageCombination:Object},setup(t){const m=ee(),l=w(()=>{var g;return((g=t.packageCombination)==null?void 0:g.PriceRecurringOriginal)||t.packageCombination.PriceRecurring});return(g,k)=>{const P=F,s=z;return f(),I(s,{class:"mb-xl"},{default:h(()=>{var c,a,n;return[t.packageCombination.TariffId?(f(),I(P,{key:1,placeholders:{recurringInterval:(n=(a=(c=t.packageCombination.PriceDetails)==null?void 0:c.Tariff)==null?void 0:a.RecurringInterval)==null?void 0:n.Days,packageBasedAmount:("formatPrice"in g?g.formatPrice:e(H))(e(l)),msisdn:e(m).msisdn},name:"payment$packageBased_text_packageBasedInfo"},null,8,["placeholders"])):(f(),I(P,{key:0,placeholders:{msisdn:e(m).msisdn},name:"payment$packageBased_text_packageBasedNoTariffInfo"},null,8,["placeholders"]))]}),_:1})}}},Ge={class:"container max-w-full mx-auto",style:{width:"1200px"}},Je={key:0},Ke={class:"relative"},Qe={class:"mb-xl"},Xe={key:3,class:"text-center"},Ye={class:"flex gap-lg justify-center mt-2xl"},Ze={class:"text-center mt-xl"},et={key:1},tt={class:"flex gap-lg justify-center mt-2xl"},Lt={__name:"Recurring",setup(t){const m=ee(),l=D({}),g=D({}),k=D({}),P=D({}),s=D({}),c=D(null),a=de(),n=fe(),o=D(""),u=D(null),d=D(a.query.PaymentMethod||""),{stepRefsToFocusAfterStepChange:b,steps:A,step:v,context:y}=Ae();y.value="RecurringTopUp";const x={recurring:D(null),success:D(null)};b.value.recurring=x.recurring,b.value.success=x.success,A.value={recurring:{title:S("payment$recurring_step_payment$ariaLabel")},success:{title:S("payment$recurring_step_success$ariaLabel")}},v.value="recurring";const O=w(()=>!d.value),ae=async()=>{await ge({id:"checkPackageCombination",data:{CheckCurrentCombination:!0},success:B=>{var p,V,M,j,U,N;u.value=B,o.value=((V=(p=u.value)==null?void 0:p.PossibleRecurringPaymentTypes)==null?void 0:V[0])??!1,!((M=u.value)!=null&&M.AutoTopupAllowed)&&!((j=u.value)!=null&&j.AutoTopupAllowedWithRegistration)?n.replace(W("paymentSelfcare")):!((U=u.value)!=null&&U.AutoTopupAllowed)&&((N=u.value)!=null&&N.AutoTopupAllowedWithRegistration)&&(m.registerSuccessPage="recurring",n.replace(W("registration")))}})},G=async()=>{await pe({id:"changePaymentMethod",data:{...g.value,...P.value,...k.value,...l.value,PaymentType:o.value},success:B=>{if(B.Confirm||B.PaymentChanged)J();else if(B.RedirectUrl){c.value.openPaymentWindow(B.RedirectUrl);return}else he(S("recurring_text_paymentError"))},error:()=>{c.value.getPaymentFormData()}})},J=()=>{v.value="success",m.paymentType=o.value};return ae(),(B,p)=>{const V=le,M=F,j=Ve,U=je,N=We,ne=qe,oe=ke,E=te,ie=Pe,re=xe,se=Te;return f(),I(se,null,{default:h(()=>[i("div",Ge,[r(V,{requests:["checkPackageCombination","changePaymentMethod"]}),e(v)==="recurring"?(f(),C("div",Je,[i("h1",{ref:x.recurring,tabindex:"-1",class:"text-center"},[r(M,{name:"payment$recurring_headline_recurringPayment"})],512),i("div",Ke,[i("div",Qe,[r(j,{packageCombination:e(u),process:"maintain"},null,8,["packageCombination"])]),e(o)==="Treshold"?(f(),I(U,{key:0,packageCombination:e(u),modelValue:e(l),"onUpdate:modelValue":p[0]||(p[0]=$=>R(l)?l.value=$:null)},null,8,["packageCombination","modelValue"])):_("",!0),e(o)==="Hybrid"?(f(),I(N,{key:1,packageCombination:e(u),modelValue:e(k),"onUpdate:modelValue":p[1]||(p[1]=$=>R(k)?k.value=$:null)},null,8,["packageCombination","modelValue"])):_("",!0),e(o)==="PackageBased"?(f(),I(ne,{key:2,packageCombination:e(u),modelValue:e(P),"onUpdate:modelValue":p[2]||(p[2]=$=>R(P)?P.value=$:null)},null,8,["packageCombination","modelValue"])):_("",!0),e(s).stored&&!e(O)?(f(),C("div",Xe,[r(M,{name:"tariff$activation_text_recurringPaymentStoredInfo",placeholders:{PaymentMethod:e(s).name}},null,8,["placeholders"])])):_("",!0),r(oe,{ref_key:"payment",ref:c,formData:e(g),"onUpdate:formData":p[3]||(p[3]=$=>R(g)?g.value=$:null),info:e(s),"onUpdate:info":p[4]||(p[4]=$=>R(s)?s.value=$:null),mode:"Recurring",showPaymentMethodSelection:e(O),paymentMethod:e(d),type:e(o),msisdn:e(m).msisdn,onPaymentSuccess:J,onSubmitForm:G},null,8,["formData","info","showPaymentMethodSelection","paymentMethod","type","msisdn"]),i("div",Ye,[i("div",null,[r(E,{color:"outline",onClick:p[5]||(p[5]=$=>e(n).back())},{default:h(()=>[r(M,{name:"global_action_back"})]),_:1})]),i("div",null,[r(E,{onClick:G},{default:h(()=>[r(M,{name:"global_action_save"})]),_:1})])]),i("div",Ze,[r(ie,{onSuccess:p[6]||(p[6]=$=>e(n).push(("getPathByPageId"in B?B.getPathByPageId:e(W))("paymentSelfcare")))})])])])):_("",!0),e(v)==="success"?(f(),C("div",et,[i("h1",{ref:x.success,tabindex:"-1",class:"text-center"},[r(M,{name:"payment$recurring_headline_success"})],512),r(re,{showRecurringPayment:!0}),i("div",tt,[i("div",null,[r(E,{color:"primary",onClick:p[7]||(p[7]=$=>e(n).back())},{default:h(()=>[r(M,{name:"global_action_back"})]),_:1})])])])):_("",!0)])]),_:1})}}};export{Lt 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.