1import{c as v,s as w,_ as T,u as P,i as E,a as $,b as z}from"../chunks/_onPageTransitionEnd.B1K5UFe-.js";import{i as C}from"../chunks/_onBeforeRender.Cas862rz.js";import{_ as x}from"../chunks/Msisdn.C0sbSwdf.js";import{j as S,d as U,B as u,C as d,D as t,u as c,J as y,E as o,y as f,G as g,I as b,F as D,H as k,L as A}from"../chunks/vendor-vue.oWKWKyZW.js";import{_ as V}from"../chunks/plus.CTPFyPug.js";import{r as j,a as _}from"./entry-server-routing.CdT_sWlZ.js";import"../chunks/vendor-bootstrap.CCUWBTAO.js";const R={class:"card mb-3"},B={class:"card-body"},I={class:"row align-items-center"},M={class:"col-md-5"},L={class:"d-flex align-items-center gap-2 mb-1"},N={key:0,class:"badge bg-primary"},O={class:"small text-muted"},F={class:"col-md-7 d-flex flex-wrap gap-2 justify-content-md-end mt-2 mt-md-0"},q=S({__name:"RecentEsim",props:{esim:{},esimConfig:{}},setup(r){var l;const i=v(),a=r,n=(l=i.user.linkedPhoneNumbers.find(e=>e.msisdn===a.esim.msisdn))==null?void 0:l.id,s=U(()=>w(a.esimConfig,a.esim.countryCodeTo));return(e,m)=>{const h=x,p=T;return d(),u("div",R,[t("div",B,[t("div",I,[t("div",M,[t("div",L,[c(h,{msisdn:e.esim.msisdn},null,8,["msisdn"]),s.value?(d(),u("div",N,o(e.esim.beautyType),1)):y("v-if",!0)]),t("div",O,o(e.esim.beautyCreatedDate),1)]),t("div",F,[f(n)?(d(),u("button",{key:0,onClick:m[0]||(m[0]=ee=>f(i).redirect(`/enter-number?linked_phone_id=${f(n)}`)),type:"button",class:"btn btn-outline-primary btn-sm"},[t("span",null,o(e.$t("common__goTo"))+" "+o(e.$t("enter_number__myPhone")),1)])):y("v-if",!0),c(p,{href:`/esim/${e.esim.id}`,class:"btn btn-outline-secondary btn-sm"},{default:g(()=>[t("span",null,o(e.$t("common__install"))+" eSIM",1)]),_:1},8,["href"]),c(p,{href:`/receipt/esim/${e.esim.transactionId}`,class:"btn btn-outline-secondary btn-sm"},{default:g(()=>[b(o(e.$t("common__viewReceipt")),1)]),_:1},8,["href"])])])])])}}}),G={class:"px-lg-5"},H={class:"mb-4"},J={class:"d-flex align-items-center flex-wrap gap-2 mb-1"},K={class:"mb-0"},Q={class:"text-muted"},W=S({__name:"+Page",setup(r){const i=P(),{esims:a,esimConfig:n}=i.data;return(s,l)=>{const e=V,m=T,h=q;return d(),u("div",G,[t("div",H,[t("div",J,[t("h1",K,o(s.$t("eSIM.listTitle")),1),c(m,{href:"/buy-esim",class:"btn btn-light btn-sm d-flex align-items-center"},{default:g(()=>[c(e),b(" "+o(s.$t("eSIM.buyAnother")),1)]),_:1})]),t("div",Q,o(s.$t("eSIM.listSubtitle")),1)]),(d(!0),u(D,null,k(f(a),p=>(d(),A(h,{esim:p,"esim-config":f(n),key:p.id},null,8,["esim","esim-config"]))),128))])}}}),X=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"}));async function Y({c:r,backend:i,i18n:a}){var e;if(!((e=r.locals.sharedConfig.esim)!=null&&e.pageEnabled))throw j(404);if(!r.locals.loggedIn)throw _("/buy-esim");let n,s,l;try{[n,s,l]=await Promise.all([i.getUser(),i.getEsims(),i.getEsimConfig().catch(()=>[])])}catch{throw r.req.session.flash=[{type:"warning",message:a.t("genericError")}],_("/enter-number")}if(s.length===0)throw _("/buy-esim");return{initialStoreState:{main:{user:n}},esims:s,esimConfig:l}}const Z=Object.freeze(Object.defineProperty({__proto__:null,fetch:Y},Symbol.toStringTag,{value:"Module"})),le={isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{client:!0,server:!0}}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onRenderClient.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:z}},onPageTransitionStart:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onPageTransitionStart.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:$}},onPageTransitionEnd:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onPageTransitionEnd.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:E}},onBeforeRender:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/esim/+onBeforeRender.shared.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:C}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/esim/+Page.vue",f
1ileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:X}},hooksTimeout:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","hooksTimeout"]},valueSerialized:{type:"js-serialized",value:{data:{error:35e3,warning:!1}}}},fetch:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/esim/+fetch.shared.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:Z}}};export{le as configValuesSerialized};
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.