PageSourceSearch

https://tree-nation.com/_nuxt/BmFdJt0-.js

js tree-nation.com collected 2026-09-24 08:36:39 UTC 1,329 bytes, 1 lines download raw bytes

1import{ae as k,aJ as _,bV as g,c0 as i}from"./C9liJd2o.js";import{u as d,a0 as p,a4 as o,j as n,g as h,aj as x,ap as c,q as v,as as y,at as b,a9 as W}from"./BnZv-h_Q.js";import{a as l,s as j}from"./6dRMfpav.js";import{_ as q}from"./AX3lxe9J.js";import"./BYodCRRA.js";import"./D_DKjSt-.js";const w={class:"flex flex-column align-items-center justify-content-center vh-100 gap-3"},B={key:0,class:"text-danger text-center"},C={key:1,class:"flex flex-column align-items-center gap-2"},S=d({__name:"WebLogin",setup(N){const r=y(),u=b(),a=W(!1);return p(async()=>{const e=r.query.token,t=r.query.redirect||"/",m=t.startsWith("/")&&!t.startsWith("//")?t:"/";if(!e){a.value=!0;return}try{const s=await k(e);l("access_token",s.access_token.token,s.access_token.expires_in/86400),l("refresh_token",s.refresh_token.token,s.refresh_token.expires_in/86400),j(s.access_token.token);const f=await _(s.access_token.token);g("authStore/changeUser",f),u.replace(m)}catch{a.value=!0}}),(e,t)=>(o(),n("div",w,[t[0]||(t[0]=h("img",{src:"/images/tree-nation-logo.svg",height:"40",alt:"Tree-Nation logo"},null,-1)),a.value?(o(),n("div",B,x(("trans"in e?e.trans:c(i))("default.unexpected_error")),1)):(o(),n("div",C,[v(q,{class:"mb-6","loading-text":("trans"in e?e.trans:c(i))("default.loading")},null,8,["loading-text"])]))]))}});export{S 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.