1import{d as u,a as c,m as l,u as m,p as f,q as d,o as p,s as _}from"./C2s5hxCK.js";import{_ as g}from"./ZZlpfefL.js";const A=u({__name:"session",setup(y){c(),c().locale.value;const i=l(),e=m(),a=e.query&&e.query.token?e.query.token:"",r=!!(e.query&&e.query.remember=="true"),o=typeof e.query.redirect=="string"?e.query.redirect:"";return f(async()=>{if(o!==""&&localStorage.setItem("redirectAfterLogin",o),a!=""){const t=await $fetch("/api/user",{params:{type:"profile",token:a}}),s=t.data.legal;d().setAuthData(a,s,t.data.first_name||"",t.data.last_name||"",t.data.business||"",r?90:5,r);const n=localStorage.getItem("redirectAfterLogin");n?(localStorage.removeItem("redirectAfterLogin"),window.location.href=n):window.location.href=i("account")}}),(t,s)=>(p(),_(g,{class:"m-5"}))}});export{A 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.