PageSourceSearch

https://faseyha.net/_nuxt/Bi62jB1z.js

js faseyha.net collected 2026-10-02 02:02:13 UTC 21,948 bytes, 1 lines download raw bytes

1import{_ as ge}from"./BwlEN8ii.js";import{_ as me}from"./DT5V_LGE.js";import{_ as he,a as _e}from"./BUFbftok.js";import{_ as ke}from"./CYDxO6xh.js";import{e as we,u as be,g as Ce,v as Me,x as Se,h as Ne,z as G,w as H,r as u,o as n,a as e,b as h,d as p,i as s,c as l,F as x,q as K,t as r,n as te,k as L,T as ze,J as se,j as c,D as ne,E as Ie,H as le,I as Te,M as Be,s as je,l as oe,_ as Ee}from"./xtLeD7bE.js";const De={style:{display:"flex","flex-direction":"column",gap:"18px","max-width":"720px"}},Ae={style:{display:"flex","align-items":"center","justify-content":"space-between",gap:"14px","flex-wrap":"wrap"}},Ue={key:0,style:{display:"flex","flex-direction":"column",gap:"12px"}},$e={key:1,class:"es-empty"},Le={key:2,style:{display:"flex","flex-direction":"column",gap:"12px"}},Ve=["onClick"],Re=["src"],Oe={style:{flex:"1","min-width":"0","text-align":"left"}},Fe={style:{display:"flex","align-items":"center",gap:"9px","flex-wrap":"wrap"}},Ge={style:{"font-weight":"800","font-size":"15.5px",color:"var(--text-strong)"}},He={style:{"font-size":"12.5px",color:"var(--text-muted)","margin-top":"2px"}},Ke={style:{"margin-top":"9px"}},We={key:0,style:{"font-size":"11.5px","font-weight":"700",color:"var(--color-brand-strong)"}},Pe={class:"es-bar"},Ye={style:{"font-size":"11px",color:"var(--text-subtle)","margin-top":"4px"}},qe={width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-subtle)","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round",style:{flex:"none","align-self":"center"}},Je={class:"es-mcard",style:{"max-width":"400px"}},Qe={style:{padding:"14px 24px 0"}},Xe={class:"es-linkrow"},Ze={class:"es-linktxt"},et={style:{padding:"16px 22px 22px",display:"flex",gap:"10px"}},tt={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round"},st={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.6","stroke-linecap":"round","stroke-linejoin":"round"},nt={class:"es-mcard"},lt={style:{padding:"20px 24px 14px",display:"flex","align-items":"center",gap:"14px","border-bottom":"1px solid var(--border-subtle)"}},ot=["src"],it={style:{flex:"1","min-width":"0"}},at={style:{display:"flex","align-items":"center",gap:"7px","min-width":"0"}},rt={style:{"font-weight":"800","font-size":"18px",color:"var(--text-strong)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},dt={style:{"font-size":"12px",color:"var(--text-muted)","margin-top":"2px"}},ut={style:{display:"flex","align-items":"center",gap:"8px"}},pt=["disabled"],ct={style:{padding:"16px 24px 4px"}},vt={key:0,style:{padding:"26px",display:"flex","justify-content":"center"}},ft={key:1,style:{padding:"20px","text-align":"center",color:"var(--text-subtle)","font-size":"13px"}},yt={key:2,style:{display:"flex","flex-direction":"column",gap:"10px"}},xt=["onClick"],gt={style:{flex:"1","min-width":"0"}},mt={style:{"font-weight":"800","font-size":"15px",color:"var(--text-strong)"}},ht={style:{"font-size":"12px",color:"var(--text-muted)","margin-top":"1px"}},_t={class:"mono-amt",style:{"font-size":"17px"}},kt={key:0,style:{padding:"8px 24px 2px",display:"flex","flex-direction":"column",gap:"9px"}},wt={style:{display:"flex","justify-content":"space-between","align-items":"center","font-size":"13px"}},bt={style:{color:"var(--text-strong)","font-weight":"700",display:"inline-flex","align-items":"center",gap:"5px"}},Ct={style:{display:"flex","justify-content":"space-between","align-items":"center","font-size":"13px"}},Mt={style:{color:"var(--text-strong)","font-weight":"700",display:"inline-flex","align-items":"center",gap:"5px"}},St={style:{display:"flex","justify-content":"space-between","align-items":"center","font-size":"14px","padding-top":"8px","border-top":"1px solid var(--border-subtle)"}},Nt={style:{color:"var(--text-strong)","font-weight":"800",display:"inline-flex","align-items":"center",gap:"5px"}},zt={key:1,class:"es-warn"},It={width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",style:{flex:"none","margin-top":"1px"}},Tt={key:2,class:"es-ack"},Bt={style:{padding:"14px 22px 22px",display:"flex",gap:"10px"}},jt=["disabled"],Et=["disabled"],Dt={key:0,class:"es-spin"},At={key:0,style:{padding:"44px",display:"flex","justify-content":"center"}},Ut={style:{padding:"16px 24px 4px"}},$t={key:0,style:{"margin-top":"12px"}},Lt={style:{padding:"12px 24px 0"}},Vt={style:{padding:"14px 24px 4px"}},Rt={class:"es-ucard"},Ot={style:{display:"flex","align-items":"flex-start","justify-content":"space-between",gap:"10px"}},Ft={style:{"min-width":"0"}},Gt={key:0,style:{"font-size":"12px",color:"var(--text-muted)","margin-top":"6px"}},Ht={key:1,style:{display:"flex","align-items":"baseline",gap:"6px"}},Kt={style:{"font-family":"var(--font-mono)","font-weight":"700","font-size":"26px","letter-spacing":"-0.01em",color:"var(--text-strong)"}},Wt={key:0,style:{"font-size":"12px",color:"var(--text-subtle)"}},Pt=["disabled"],Yt={class:"es-bar",style:{"margin-top":"10px"}},qt={style:{display:"flex","justify-content":"space-between","font-size":"11px",color:"var(--text-subtle)","margin-top":"5px"}},Jt={key:1,class:"es-ustats"},Qt={key:0,class:"es-ustat"},Xt={class:"es-ustat-v"},Zt={key:0},es={key:1,class:"es-ustat"},ts={class:"es-ustat-v"},ss={key:0},ns={key:2,class:"es-ustat"},ls={class:"es-ustat-v"},os={key:0,style:{padding:"12px 24px 0","font-size":"11.5px",color:"var(--text-subtle)","text-align":"center"}},is={style:{padding:"16px 22px 22px",display:"flex",gap:"10px"}},as=["disabled"],rs={key:0,class:"es-spin",style:{"border-color":"var(--border-default)","border-top-color":"var(--color-brand)"}},ds={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round"}
1,W="/brand/flags/globe.svg",us=we({__name:"my-esims",setup(ps){be({title:"My eSIMs — Faseyha Recharge"});const _=Ce(),D=Me(),y=Se(),C=u([]),V=u(!0),i=u(null),g=u(null),A=u(!1),d=u(null),U=u(!1),M=u(!1),S=u(!1),N=u([]),R=u(!1),v=u(null),k=u(!1);function z(o){return(Number(o)||0).toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:2})}function P(o){return o&&o.length?o:W}function Y(o){const t=o.target;t.src.endsWith(W)||(t.src=W)}const q={READY:{t:"Ready to install",c:"ok"},ACTIVATED:{t:"Active",c:"ok"},INSTALLED:{t:"Installed",c:"info"},NEW:{t:"New",c:"info"},EXPIRED:{t:"Expired",c:"off"},REVOKED:{t:"Revoked",c:"off"},UNKNOWN:{t:"Unknown",c:"off"}},J=o=>q[o]||q.UNKNOWN,Q=o=>!o.allowed_data||Number(o.allowed_data)>=1e9;async function ie(){V.value=!0;try{const o=await _.get("/esim/mine");C.value=o?.data?.esims||[]}catch{y.error("Could not load your eSIMs")}finally{V.value=!1}}Ne(ie);async function ae(o){i.value=o,g.value=null,d.value=null,A.value=!0,M.value=!1,b.value=!1;try{const t=await _.get(`/esim/mine/${o.iccid}`);g.value=t?.data?.esim||null}catch{y.error("Could not load eSIM details")}finally{A.value=!1}if(g.value&&typeof g.value.with_topup=="boolean"){i.value.with_topup=g.value.with_topup;const t=C.value.find(f=>f.iccid===o.iccid);t&&(t.with_topup=g.value.with_topup)}Z(!0)}function O(){i.value=null,g.value=null,d.value=null,M.value=!1,$.value=!1,w.value="",b.value=!1}function re(o){const t=Number(o);return t?new Date(t*1e3).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}):""}const $=u(!1),I=u(""),T=u(!1);function de(){I.value=i.value?.nickname||"",$.value=!0,je(()=>document.getElementById("nickInput")?.focus())}async function X(){if(!(T.value||!i.value)){T.value=!0;try{const o=I.value.trim(),t=await _.put(`/esim/mine/${i.value.iccid}/nickname`,{nickname:o});if(t?.status===!0){i.value.nickname=o;const f=C.value.find(m=>m.iccid===i.value.iccid);f&&(f.nickname=o),$.value=!1}else y.error(t?.message||"Could not save the name")}catch{y.error("Could not save the name")}finally{T.value=!1}}}const B=u(!1),w=u(""),j=u(!1);async function ue(){if(!(!i.value||B.value)){B.value=!0;try{const t=(await _.post(`/esim/mine/${i.value.iccid}/share`,{}))?.data?.url;if(!t){y.error("Could not create the share link");return}j.value=!1,w.value=t}catch{y.error("Could not create the share link")}finally{B.value=!1}}}async function pe(){try{await navigator.clipboard.writeText(w.value),j.value=!0,setTimeout(()=>{j.value=!1},1800)}catch{y.error("Could not copy — long-press the link to copy it")}}async function Z(o=!1){if(i.value){U.value=!0;try{const f=(await _.get(`/esim/mine/${i.value.iccid}/usage`))?.data?.usage;if(f){d.value=f;const m=Number(f.usage_pct||0),E=C.value.find(F=>F.iccid===i.value.iccid);E&&Object.assign(E,{allowed_data:f.allowed_data,remaining_data:f.remaining_data,usage_pct:m}),Object.assign(i.value,{allowed_data:f.allowed_data,remaining_data:f.remaining_data,usage_pct:m}),o||y.success("Usage updated")}}catch{o||y.error("Could not refresh usage")}finally{U.value=!1}}}const ee=oe(()=>d.value?.unlimited===!0||d.value?.unlimited===1||Q(i.value||{})),ce=oe(()=>{const o=g.value?.status||i.value?.status;return o==="INSTALLED"||o==="ACTIVATED"}),b=u(!1);async function ve(){M.value=!0,N.value=[],v.value=null,S.value=!1,R.value=!0;try{const o=await _.get(`/esim/mine/${i.value.iccid}/topups`);N.value=o?.data?.topups||[],v.value=N.value[0]||null}catch{y.error("Could not load top-up plans")}finally{R.value=!1}}async function fe(){if(!(!v.value||k.value)){k.value=!0;try{const o=await _.post("/esim/topup",{iccid:i.value.iccid,package_id:v.value.package_id});o?.status===!0?(await D.refreshAccount(),y.success("Top-up added — data will update shortly"),M.value=!1):y.error(o?.message||"Top-up failed")}catch(o){y.error(o?.data?.message||"Top-up failed"),o?.data?.balance&&await D.refreshAccount()}finally{k.value=!1}}}return(o,t)=>{const f=ge,m=me,E=he,F=_e,ye=ke;return n(),G(ye,{active:"esim",eyebrow:"ACCOUNT",heading:"My eSIMs"},{default:H(()=>[e("div",De,[e("div",Ae,[t[8]||(t[8]=e("div",{style:{"font-weight":"800","font-size":"22px","letter-spacing":"-0.02em",color:"var(--text-strong)"}},"Your travel eSIMs",-1)),h(f,{to:"/esim",class:"es-newbtn"},{default:H(()=>[...t[7]||(t[7]=[e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.4","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M12 5v14M5 12h14"})],-1),p("Buy eSIM ",-1)])]),_:1})]),s(V)?(n(),l("div",Ue,[(n(),l(x,null,K(3,a=>e("div",{key:a,class:"es-card",style:{"pointer-events":"none"}},[...t[9]||(t[9]=[e("span",{class:"sk",style:{width:"40px",height:"30px","border-radius":"8px"}},null,-1),e("div",{style:{flex:"1"}},[e("span",{class:"sk",style:{width:"50%",height:"14px","border-radius":"6px",display:"block"}}),e("span",{class:"sk",style:{width:"30%",height:"11px","border-radius":"6px",display:"block","margin-top":"8px"}})],-1)])])),64))])):s(C).length?(n(),l("div",Le,[(n(!0),l(x,null,K(s(C),a=>(n(),l("button",{key:a.iccid,class:"es-card",onClick:xe=>ae(a)},[e("img",{src:P(a.flag),onError:Y,class:"es-flagimg",alt:""},null,40,Re),e("div",Oe,[e("div",Fe,[e("span",Ge,r(a.nickname||a.country_name),1),e("span",{class:te(["es-pill",J(a.status).c])},[t[14]||(t[14]=e("span",{class:"es-pd"},null,-1)),p(r(J(a.status).t),1)],2)]),e("div",He,r(a.nickname?a.country_name+" · ":"")+r(a.package_title)+" · "+r(a.day)+" days",1),e("div",Ke,[Q(a)?(n(),l("div",We,"Unlimited data")):(n(),l(x,{key:1},[e("div",Pe,[e("span",{class:"es-bar-fill",style:L({width:Math.min(100,100-Number(a.usage_pct||0))+"%"})},null,4)]),e("div",Ye,r(100-Number(a.usage_pct||0))+"% data left",1)],64))])]),(n(),l("svg",qe,[...t[15]||(t[15]=[e("path",{d:"m9 18 6-6-6-6"},null,-1)])]))],8,Ve))),128))])):(n(),l("div",$e,[t[11]||(t[11]=e("div",{style:{"font-size":"40px","margin-bottom":"8px"}},"🌍",-1)),t[12]||(t[12]=e("div",{style:{"font-weight":"800","font-size":"17px",color:"var(--text-strong)"}},"No eSIMs yet",-1)),t[13]||(t[13]=e("div",{style:{"font-size":"13px",color:"var(--text-muted)","margin-top":"6px"}},"Buy a travel eSIM and it’ll appear here to install & manage.",-1)),h(f,{to:"/esim",class:"es-newbtn",style:{"margin-top":"16px",display:"inline-flex"}},{default:H(()=>[...t[10]||(t[10]=[p("Browse destinations",-1)])]),_:1})]))]),(n(),G(ze,{to:"body"},[s(w)?(n(),l("div",{key:0,class:"es-mback frx",style:{"z-index":"95"},onClick:t[1]||(t[1]=se(a=>w.value="",["self"]))},[e("div",Je,[t[18]||(t[18]=e("div",{style:{padding:"22px 24px 6px"}},[e("div",{style:{"font-weight":"800","font-size":"17px",color:"var(--text-strong)"}},"Share this eSIM’s balance")],-1)),e("div",Qe,[e("div",Xe,[e("span",Ze,r(s(w)),1)])]),e("div",et,[e("button",{class:"es-cancel",style:{width:"90px"},onClick:t[0]||(t[0]=a=>w.value="")},"Close"),e("button",{class:"fr-btn es-pay",onClick:pe},[s(j)?(n(),l("svg",st,[...t[17]||(t[17]=[e("path",{d:"M20 6 9 17l-5-5"},null,-1)])])):(n(),l("svg",tt,[...t[16]||(t[16]=[e("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"},null,-1),e("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},null,-1)])])),p(" "+r(s(j)?"Copied!":"Copy link"),1)])])])])):c("",!0),s(i)?(n(),l("div",{key:1,class:"es-mback frx",onClick:se(O,["self"])},[e("div",nt,[e("div",lt,[e("img",{src:P(s(i).flag),onError:Y,class:"es-flagimg",style:{width:"44px",height:"32px"},alt:""},null,40,ot),e("div",it,[s($)?(n(),l(x,{key:1},[e("div",ut,[ne(e("input",{id:"nickInput","onUpdate:modelValue":t[2]||(t[2]=a=>le(I)?I.value=a:null),class:"es-nickinput",maxlength:"40",placeholder:"e.g. Ahmed — Dubai trip",onKeydown:Ie(X,["enter"])},null,544),[[Te,s(I)]]),e("button",{class:"es-nicksave",disabled:s(T),onClick:X},r(s(T)?"…":"Save"),9,pt)]),t[20]||(t[20]=e("div",{style:{"font-size":"11px",color:"var(--text-subtle)","margin-top":"4px"}}
1,"Name this eSIM so you know who has it",-1))],64)):(n(),l(x,{key:0},[e("div",at,[e("div",rt,r(s(i).nickname||s(i).country_name),1),e("button",{class:"es-nickbtn",title:"Name this eSIM (e.g. who has it)",onClick:de},[...t[19]||(t[19]=[e("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"})],-1)])])]),e("div",dt,r(s(i).nickname?s(i).country_name+" · ":"")+r(s(i).package_title)+" · "+r(s(i).day)+" days",1)],64))]),e("button",{class:"es-x",onClick:O},[...t[21]||(t[21]=[e("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M18 6 6 18M6 6l12 12"})],-1)])])]),s(M)?(n(),l(x,{key:0},[e("div",ct,[t[24]||(t[24]=e("div",{class:"sec-lbl"},"Add more data",-1)),s(R)?(n(),l("div",vt,[...t[22]||(t[22]=[e("span",{class:"es-spin es-spin-dark"},null,-1)])])):s(N).length?(n(),l("div",yt,[(n(!0),l(x,null,K(s(N),a=>(n(),l("div",{key:a.package_id,class:te(["es-plan",{on:s(v)?.package_id===a.package_id}]),onClick:xe=>v.value=a},[t[23]||(t[23]=e("span",{class:"es-rad"},[e("span",{class:"es-dot"})],-1)),e("div",gt,[e("div",mt,r(a.data_label),1),e("div",ht,r(a.day)+" days · "+r(a.title),1)]),e("div",_t,[h(m,{class:"rf-ico"}),p(r(z(a.price)),1)])],10,xt))),128))])):(n(),l("div",ft,"No top-up plans available for this eSIM."))]),s(v)?(n(),l("div",kt,[e("div",wt,[t[25]||(t[25]=e("span",{style:{color:"var(--text-muted)","font-weight":"600"}},"Subtotal (excl. GST)",-1)),e("span",bt,[h(m,{class:"rf-ico"}),p(r(z(s(v).breakdown?.net)),1)])]),e("div",Ct,[t[26]||(t[26]=e("span",{style:{color:"var(--text-muted)","font-weight":"600"}},"GST (8%)",-1)),e("span",Mt,[h(m,{class:"rf-ico"}),p(r(z(s(v).breakdown?.gst)),1)])]),e("div",St,[t[27]||(t[27]=e("span",{style:{color:"var(--text-strong)","font-weight":"800"}},"Total",-1)),e("span",Nt,[h(m,{class:"rf-ico"}),p(r(z(s(v).breakdown?.sell??s(v).price)),1)])])])):c("",!0),s(v)?(n(),l("div",zt,[(n(),l("svg",It,[...t[28]||(t[28]=[e("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},null,-1),e("path",{d:"M12 9v4M12 17h.01"},null,-1)])])),t[29]||(t[29]=e("ul",{class:"es-warn-list"},[e("li",null,[p("Top-ups are "),e("b",null,"non-refundable"),p(".")]),e("li",null,"GST is included in the price.")],-1))])):c("",!0),s(v)?(n(),l("label",Tt,[ne(e("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=a=>le(S)?S.value=a:null)},null,512),[[Be,s(S)]]),t[30]||(t[30]=e("span",null,"I acknowledge the above.",-1))])):c("",!0),e("div",Bt,[e("button",{class:"es-cancel",disabled:s(k),onClick:t[4]||(t[4]=a=>M.value=!1)},"Back",8,jt),e("button",{class:"fr-btn es-pay",disabled:!s(v)||s(k)||!s(S)||Number(s(v)?.price)>Number(s(D).balance),onClick:fe},[s(k)?(n(),l("span",Dt)):c("",!0),p(r(s(k)?"Processing…":Number(s(v)?.price)>Number(s(D).balance)?"Insufficient balance":`Pay ${z(s(v)?.price)}`),1)],8,Et)])],64)):(n(),l(x,{key:1},[s(A)?(n(),l("div",At,[...t[31]||(t[31]=[e("span",{class:"es-spin es-spin-dark"},null,-1)])])):(n(),l(x,{key:1},[e("div",Ut,[s(ce)?(n(),l(x,{key:0},[t[34]||(t[34]=e("div",{class:"es-installed"},[e("span",{class:"es-installed-ic"},[e("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.4","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M20 6 9 17l-5-5"})])]),e("div",null,[e("div",{style:{"font-weight":"800","font-size":"14.5px",color:"var(--text-strong)"}},"Installed on your device"),e("div",{style:{"font-size":"12px",color:"var(--text-muted)","margin-top":"2px"}},"This eSIM is already installed")])],-1)),e("button",{class:"es-showinstall",onClick:t[5]||(t[5]=a=>b.value=!s(b))},[t[33]||(t[33]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),e("path",{d:"M9 9h6v6H9z"})],-1)),p(" "+r(s(b)?"Hide install instructions":"View install instructions & QR")+" ",1),(n(),l("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round",style:L([s(b)?"transform:rotate(180deg);
1":"",{"margin-left":"auto",transition:"transform .2s"}])},[...t[32]||(t[32]=[e("path",{d:"m6 9 6 6 6-6"},null,-1)])],4))]),s(b)?(n(),l("div",$t,[h(E,{install:s(g)?.install||{}},null,8,["install"])])):c("",!0)],64)):(n(),G(E,{key:1,install:s(g)?.install||{}},null,8,["install"]))]),e("div",Lt,[h(F,{install:s(g)?.install||s(i).install||{}},null,8,["install"])]),e("div",Vt,[e("div",Rt,[e("div",Ot,[e("div",Ft,[t[36]||(t[36]=e("div",{class:"sec-lbl",style:{margin:"0 0 6px"}},"Data remaining",-1)),s(ee)?(n(),l(x,{key:0},[t[35]||(t[35]=e("span",{class:"es-unl"},[e("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M18.178 8c5.096 0 5.096 8 0 8-5.095 0-7.133-8-12.739-8-4.585 0-4.585 8 0 8 5.606 0 7.644-8 12.74-8z"})]),p("Unlimited")],-1)),s(d)?.used_label?(n(),l("div",Gt,r(s(d).used_label)+" used",1)):c("",!0)],64)):(n(),l("div",Ht,[e("span",Kt,r(s(d)?.remaining_label||100-Number(s(i).usage_pct||0)+"%"),1),s(d)?.allowed_label?(n(),l("span",Wt,"of "+r(s(d).allowed_label),1)):c("",!0)]))]),e("button",{class:"es-refresh",disabled:s(U),onClick:t[6]||(t[6]=a=>Z(!1))},[(n(),l("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round",style:L(s(U)?"animation:es-spin .8s linear infinite;":"")},[...t[37]||(t[37]=[e("path",{d:"M23 4v6h-6M1 20v-6h6"},null,-1),e("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"},null,-1)])],4)),t[38]||(t[38]=p("Refresh",-1))],8,Pt)]),s(ee)?c("",!0):(n(),l(x,{key:0},[e("div",Yt,[e("span",{class:"es-bar-fill",style:L({width:Math.min(100,Math.max(0,100-Number(s(d)?.usage_pct??s(i).usage_pct??0)))+"%"})},null,4)]),e("div",qt,[e("span",null,r(s(d)?.used_label?s(d).used_label+" used":Number(s(d)?.usage_pct??s(i).usage_pct??0)+"% used"),1),e("span",null,r(Math.max(0,100-Number(s(d)?.usage_pct??s(i).usage_pct??0)))+"% left",1)])],64)),s(d)&&(s(d).sms||s(d).voice)||s(d)?.expired_at?(n(),l("div",Jt,[s(d)?.sms?(n(),l("div",Qt,[t[39]||(t[39]=e("span",{class:"es-ustat-l"},"SMS",-1)),e("span",Xt,[p(r(s(d).sms.remaining??"—"),1),s(d).sms.allowed?(n(),l("span",Zt," / "+r(s(d).sms.allowed),1)):c("",!0)])])):c("",!0),s(d)?.voice?(n(),l("div",es,[t[40]||(t[40]=e("span",{class:"es-ustat-l"},"Voice",-1)),e("span",ts,[p(r(s(d).voice.remaining??"—"),1),s(d).voice.allowed?(n(),l("span",ss," min")):c("",!0)])])):c("",!0),s(d)?.expired_at?(n(),l("div",ns,[t[41]||(t[41]=e("span",{class:"es-ustat-l"},"Expires",-1)),e("span",ls,r(re(s(d).expired_at)),1)])):c("",!0)])):c("",!0)])]),!s(i).with_topup&&!s(A)?(n(),l("div",os,"This plan doesn’t support top-ups — buy a new eSIM when the data runs out.")):c("",!0),e("div",is,[e("button",{class:"es-cancel",style:{flex:"none",width:"90px"},onClick:O},"Close"),e("button",{class:"es-share",disabled:s(B),onClick:ue,title:"Share a link that shows this eSIM's balance"},[s(B)?(n(),l("span",rs)):(n(),l("svg",ds,[...t[42]||(t[42]=[e("circle",{cx:"18",cy:"5",r:"3"},null,-1),e("circle",{cx:"6",cy:"12",r:"3"},null,-1),e("circle",{cx:"18",cy:"19",r:"3"},null,-1),e("path",{d:"m8.59 13.51 6.83 3.98M15.41 6.51l-6.82 3.98"},null,-1)])])),t[43]||(t[43]=p(" Share ",-1))],8,as),s(i).with_topup?(n(),l("button",{key:0,class:"fr-btn es-pay",onClick:ve},[...t[44]||(t[44]=[e("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M12 5v14M5 12h14"})],-1),p("Top up ",-1)])])):c("",!0)])],64))],64))])])):c("",!0)]))]),_:1})}}}),gs=Ee(us,[["__scopeId","data-v-0b0d8efe"]]);export{gs 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.