PageSourceSearch

https://designxbuild.ai/chunk-B4FDAR2B.js

js designxbuild.ai collected 2026-10-05 14:38:42 UTC 907 bytes, 1 lines download raw bytes

1import{i as p,l as m,t as c,x as f}from"./chunk-3TAFUN65.js";import{Ea as s,I as r,M as n,Q as i,R as a,ra as l}from"./chunk-ACRAD4TK.js";var u=class o{constructor(e,t){this.http=e;this.router=t;s(()=>{this.baseUrl=this.configService.getValue("apiUrl")})}configService=a(f);baseUrl="";platformId=a(l);login(e){return this.http.post(`${this.baseUrl}/user/login`,e).pipe(r(t=>{t.token&&(console.log(t.token),localStorage.setItem("auth_token",t.token))}))}getToken(){return localStorage.getItem("auth_token")}logout(){localStorage.removeItem("auth_token"),this.http.post(`${this.baseUrl}/user/logout`,null).pipe(r(e=>{localStorage.removeItem("auth_token"),this.router.navigate(["/"])}))}isLoggedIn(){return p(this.platformId)?!!localStorage.getItem("auth_token"):!1}static \u0275fac=function(t){return new(t||o)(i(m),i(c))};static \u0275prov=n({token:o,factory:o.\u0275fac,providedIn:"root"})};export{u as a};

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.