import{_ as i,d as u,ad as d,m as _,n as l,x as p,aj as e,aC as v,H as m,o as f,c as h,ac as x}from"./index.js";const E={class:"w-[100vw] h-[100vh]","element-loading-text":"\u767B\u5F55\u4E2D"},g=u({__name:"index",setup(S){const{loginByToken:a}=d(),{query:c}=_(),{push:o}=l(),{VITE_SECRET_KEY:r}=x();return p(async()=>{try{const t=e.enc.Base64.parse(c.t).toString(e.enc.Utf8),n=e.AES.decrypt(t,r).toString(e.enc.Utf8),{token:s}=JSON.parse(n);await a(s),o("/welcome")}catch{o("/login")}}),(t,n)=>{const s=v("loading");return m((f(),h("div",E,null,512)),[[s,!0]])}}});var w=i(g,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/accept/index.vue"]]);export{w as default};
