PageSourceSearch

https://cabinet.cambridge.ua/assets/LoginAsView-PkOgnGwm.js

js cambridge.ua collected 2026-10-02 03:18:19 UTC 765 bytes, 1 lines download raw bytes

1import{d as c,n as i,u as l,p as u,q as h,o as p,a as m,b as d,t as _,g,h as f,s as k,v as w,x as U,U as B}from"./index-C0_bioGH.js";import{B as S}from"./BaseSpinner-DF3PynPt.js";const T={class:"row-cols-1"},x={class:"h4 text-center my-20"},b=c({__name:"LoginAsView",setup(y){const a=i(),e=l(),t=new URL(window.location.href).searchParams.get("access_token"),r=u(),n=async o=>{localStorage.setItem("token",o),k().then(s=>{w(s.email),U(s.name),e.setUser(s)}).then(()=>{r.init(),e.user&&e.user.spaces.includes(B.Teacher)?a.push({name:"teacher-calendar"}):a.push({name:"profile"})})};return h(()=>{t?e.loggedIn?e.logout().then(()=>{n(t)}):n(t):a.push({name:"login"})}),(o,s)=>(p(),m("div",T,[d("p",x,_(o.$t("login.please_wait")),1),g(f(S))]))}});export{b 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.