1import{_ as b}from"./DFhx_E2J.js";import{aS as g,bc as k,b7 as d,aT as S,bd as N,aU as t,b1 as s,aX as w,b2 as l,a$ as r,aY as _,a_ as a,bz as z,b0 as B}from"./Bt9eEpt1.js";const C={class:"gap-6 container mx-auto flex py-10 min-h-dvh flex-col items-center"},T={class:"text-3xl"},V={key:0},E={key:1},I={key:2,class:"w-[400px] h-20 overflow-scroll bg-red-100 border-red-200 rounded-md border p-2"},A=g({__name:"[expiry]",setup(U){const{params:n,query:u}=k(),m=n.uid,p=Number(n.expiry),h=u._hash,e=d("loading"),v=S(()=>{const o=e.value;return o==="loading"?"Confirming your service details":o==="done"?"Service details confirmed":o==="error"?"Error confirming service details":""}),c=d(""),f=async()=>{var o;try{e.value="loading",await z().fetch("/api/v1.5/approve-legacy-service",{method:"POST",body:{serviceId:m,expiry:p,hash:h}}),e.value="done"}catch(i){c.value=((o=i.data)==null?void 0:o.message)||"An error occurred",e.value="error"}};return N(()=>{f()}),(o,i)=>{const x=b,y=B;return t(),s("div",C,[w("div",T,l(r(v)),1),r(e)==="loading"?(t(),s("div",V,[_(x,{class:"size-16"})])):a("",!0),r(e)==="done"?(t(),s("div",E,[_(y,{class:"text-green-600 size-16",name:"i-heroicons-check-circle-20-solid"})])):a("",!0),r(e)==="error"?(t(),s("div",I,l(r(c)),1)):a("",!0)])}}});export{A as default}; 2//# sourceMappingURL=D0yq8-La.js.map
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.