Files
headroom/frontend/build/client/_app/immutable/entry/app.ClrUt5tN.js
Santhosh Janardhanan de2d83092e feat: Reinitialize frontend with SvelteKit and TypeScript
- Delete old Vite+Svelte frontend
- Initialize new SvelteKit project with TypeScript
- Configure Tailwind CSS v4 + DaisyUI
- Implement JWT authentication with auto-refresh
- Create login page with form validation (Zod)
- Add protected route guards
- Update Docker configuration for single-stage build
- Add E2E tests with Playwright (6/11 passing)
- Fix Svelte 5 reactivity with $state() runes

Known issues:
- 5 E2E tests failing (timing/async issues)
- Token refresh implementation needs debugging
- Validation error display timing
2026-02-17 16:19:59 -05:00

3 lines
7.2 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.qcGNqz4K.js","../chunks/pJd4F_Tq.js","../chunks/CCV2x70u.js","../chunks/BgHfHpED.js","../chunks/CrZRXG6z.js","../chunks/Bx__7-vK.js","../chunks/CC5oASRR.js","../chunks/BG30BmlR.js","../chunks/JkAhLmb1.js","../chunks/DBDqKY8A.js","../nodes/1.Do3BgeC5.js","../nodes/2.xkr5w2RY.js","../nodes/3.Ga_cDZpk.js","../nodes/4.Dd_eVbye.js","../chunks/DhYTxIvM.js","../nodes/5.CW4-UM09.js","../chunks/C62USj72.js"])))=>i.map(i=>d[i]);
var X=e=>{throw TypeError(e)};var Z=(e,t,r)=>t.has(e)||X("Cannot "+r);var f=(e,t,r)=>(Z(e,t,"read from private field"),r?r.call(e):t.get(e)),K=(e,t,r)=>t.has(e)?X("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),M=(e,t,r,o)=>(Z(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);import{A as ct,J as ut,z as lt,K as ft,e as mt,ao as dt,v as ht,aq as _t,S as gt,i as F,L as vt,f as _,aS as yt,_ as Et,a1 as Pt,p as bt,a5 as Rt,a6 as Ot,ae as kt,aT as wt,af as w,s as St,b as At,aU as N,c as Lt,r as Tt,t as xt,aV as C}from"../chunks/CCV2x70u.js";import{h as jt,m as Ct,u as Vt,s as Bt}from"../chunks/Bx__7-vK.js";import{a as y,c as L,f as tt,t as Dt}from"../chunks/pJd4F_Tq.js";import{i as q}from"../chunks/CC5oASRR.js";import{B as It}from"../chunks/BG30BmlR.js";import{p as U}from"../chunks/C62USj72.js";function V(e,t,r){ct&&ut();var o=new It(e);lt(()=>{var n=t()??null;o.ensure(n,n&&(i=>r(i,n)))},ft)}function p(e,t){return e===t||(e==null?void 0:e[gt])===t}function B(e={},t,r,o){return mt(()=>{var n,i;return dt(()=>{n=i,i=[],ht(()=>{e!==r(...i)&&(t(e,...i),n&&p(r(...n),e)&&t(null,...n))})}),()=>{_t(()=>{i&&p(r(...i),e)&&t(null,...i)})}}),e}function qt(e){return class extends Ut{constructor(t){super({component:e,...t})}}}var E,m;class Ut{constructor(t){K(this,E);K(this,m);var i;var r=new Map,o=(s,a)=>{var u=Pt(a,!1,!1);return r.set(s,u),u};const n=new Proxy({...t.props||{},$$events:{}},{get(s,a){return _(r.get(a)??o(a,Reflect.get(s,a)))},has(s,a){return a===vt?!0:(_(r.get(a)??o(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,u){return F(r.get(a)??o(a,u),u),Reflect.set(s,a,u)}});M(this,m,(t.hydrate?jt:Ct)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((i=t==null?void 0:t.props)!=null&&i.$$host)||t.sync===!1)&&yt(),M(this,E,n.$$events);for(const s of Object.keys(f(this,m)))s==="$set"||s==="$destroy"||s==="$on"||Et(this,s,{get(){return f(this,m)[s]},set(a){f(this,m)[s]=a},enumerable:!0});f(this,m).$set=s=>{Object.assign(n,s)},f(this,m).$destroy=()=>{Vt(f(this,m))}}$set(t){f(this,m).$set(t)}$on(t,r){f(this,E)[t]=f(this,E)[t]||[];const o=(...n)=>r.call(this,...n);return f(this,E)[t].push(o),()=>{f(this,E)[t]=f(this,E)[t].filter(n=>n!==o)}}$destroy(){f(this,m).$destroy()}}E=new WeakMap,m=new WeakMap;const Ft="modulepreload",Yt=function(e,t){return new URL(e,t).href},$={},T=function(t,r,o){let n=Promise.resolve();if(r&&r.length>0){let s=function(l){return Promise.all(l.map(g=>Promise.resolve(g).then(P=>({status:"fulfilled",value:P}),P=>({status:"rejected",reason:P}))))};const a=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),D=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));n=s(r.map(l=>{if(l=Yt(l,o),l in $)return;$[l]=!0;const g=l.endsWith(".css"),P=g?'[rel="stylesheet"]':"";if(!!o)for(let b=a.length-1;b>=0;b--){const c=a[b];if(c.href===l&&(!g||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${P}`))return;const v=document.createElement("link");if(v.rel=g?"stylesheet":Ft,g||(v.as="script"),v.crossOrigin="",v.href=l,D&&v.setAttribute("nonce",D),document.head.appendChild(v),g)return new Promise((b,c)=>{v.addEventListener("load",b),v.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return n.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},te={};var zt=tt('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Gt=tt("<!> <!>",1);function Jt(e,t){bt(t,!0);let r=U(t,"components",23,()=>[]),o=U(t,"data_0",3,null),n=U(t,"data_1",3,null),i=U(t,"data_2",3,null);Rt(()=>t.stores.page.set(t.page)),Ot(()=>{t.stores,t.page,t.constructors,r(),t.form,o(),n(),i(),t.stores.page.notify()});let s=N(!1),a=N(!1),u=N(null);kt(()=>{const c=t.stores.page.subscribe(()=>{_(s)&&(F(a,!0),wt().then(()=>{F(u,document.title||"untitled page",!0)}))});return F(s,!0),c});const D=C(()=>t.constructors[2]);var l=Gt(),g=w(l);{var P=c=>{const R=C(()=>t.constructors[0]);var O=L(),x=w(O);V(x,()=>_(R),(k,S)=>{B(S(k,{get data(){return o()},get form(){return t.form},get params(){return t.page.params},children:(d,Mt)=>{var H=L(),rt=w(H);{var at=A=>{const Y=C(()=>t.constructors[1]);var j=L(),z=w(j);V(z,()=>_(Y),(G,J)=>{B(J(G,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(h,Nt)=>{var Q=L(),nt=w(Q);V(nt,()=>_(D),(ot,it)=>{B(it(ot,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),I=>r()[2]=I,()=>{var I;return(I=r())==null?void 0:I[2]})}),y(h,Q)},$$slots:{default:!0}}),h=>r()[1]=h,()=>{var h;return(h=r())==null?void 0:h[1]})}),y(A,j)},st=A=>{const Y=C(()=>t.constructors[1]);var j=L(),z=w(j);V(z,()=>_(Y),(G,J)=>{B(J(G,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),h=>r()[1]=h,()=>{var h;return(h=r())==null?void 0:h[1]})}),y(A,j)};q(rt,A=>{t.constructors[2]?A(at):A(st,!1)})}y(d,H)},$$slots:{default:!0}}),d=>r()[0]=d,()=>{var d;return(d=r())==null?void 0:d[0]})}),y(c,O)},W=c=>{const R=C(()=>t.constructors[0]);var O=L(),x=w(O);V(x,()=>_(R),(k,S)=>{B(S(k,{get data(){return o()},get form(){return t.form},get params(){return t.page.params}}),d=>r()[0]=d,()=>{var d;return(d=r())==null?void 0:d[0]})}),y(c,O)};q(g,c=>{t.constructors[1]?c(P):c(W,!1)})}var v=St(g,2);{var b=c=>{var R=zt(),O=Lt(R);{var x=k=>{var S=Dt();xt(()=>Bt(S,_(u))),y(k,S)};q(O,k=>{_(a)&&k(x)})}Tt(R),y(c,R)};q(v,c=>{_(s)&&c(b)})}y(e,l),At()}const ee=qt(Jt),re=[()=>T(()=>import("../nodes/0.qcGNqz4K.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url),()=>T(()=>import("../nodes/1.Do3BgeC5.js"),__vite__mapDeps([10,1,2,3,5,9]),import.meta.url),()=>T(()=>import("../nodes/2.xkr5w2RY.js"),__vite__mapDeps([11,9,2,4,1,7]),import.meta.url),()=>T(()=>import("../nodes/3.Ga_cDZpk.js"),__vite__mapDeps([12,1,2,3,8,9,4]),import.meta.url),()=>T(()=>import("../nodes/4.Dd_eVbye.js"),__vite__mapDeps([13,1,2,3,5,6,7,14,8,4,9]),import.meta.url),()=>T(()=>import("../nodes/5.CW4-UM09.js"),__vite__mapDeps([15,1,2,3,14,8,9,5,6,7,16,4]),import.meta.url)],ae=[],se={"/":[3],"/dashboard":[4,[2]],"/login":[5]},et={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},Kt=Object.fromEntries(Object.entries(et.transport).map(([e,t])=>[e,t.decode])),ne=Object.fromEntries(Object.entries(et.transport).map(([e,t])=>[e,t.encode])),oe=!1,ie=(e,t)=>Kt[e](t);export{ie as decode,Kt as decoders,se as dictionary,ne as encoders,oe as hash,et as hooks,te as matchers,re as nodes,ee as root,ae as server_loads};