1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4525],{88829:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/signin-working",function(){return r(31611)}])},50947:function(e,t,r){"use strict";r.d(t,{Ol:function(){return l},SZ:function(){return o},Zb:function(){return i},aY:function(){return c},eW:function(){return u},ll:function(){return d}});var s=r(85893),a=r(67294),n=r(91220);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",r),...a})});i.displayName="Card";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",r),...a})});l.displayName="CardHeader";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h3",{ref:t,className:(0,n.cn)("text-2xl font-semibold leading-none tracking-tight",r),...a})});d.displayName="CardTitle";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...a})});o.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",r),...a})});u.displayName="CardFooter"},7825:function(e,t,r){"use strict";r.d(t,{_:function(){return o}});var s=r(85893),a=r(67294),n=r(99489),i=r(12003),l=r(91220);let d=(0,i.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.f,{ref:t,className:(0,l.cn)(d(),r),...a})});o.displayName=n.f.displayName},31611:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var s=r(85893),a=r(67294),n=r(11163),i=r(418),l=r(50947),d=r(95364),o=r(87095),c=r(7825);function u(){let e=(0,n.useRouter)(),[t,r]=(0,a.useState)("[email protected]"),[u,f]=(0,a.useState)("admin123"),[m,x]=(0,a.useState)(!1),[h,p]=(0,a.useState)(""),N=async r=>{r.preventDefault(),x(!0),p("");try{let r=await i.kv.login({username:t,password:u});r.data&&r.data.access_token?(localStorage.setItem("access_token",r.data.access_token),localStorage.setItem("refresh_token",r.data.refresh_token),localStorage.setItem("user_email",t),e.push("/dashboard")):p("Login failed - no access token received")}catch(e){var s,a;console.error("Login error:",e),p((null===(a=e.response)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.detail)||"Login failed")}finally{x(!1)}};return(0,s.jsx)("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:(0,s.jsxs)(l.Zb,{className:"w-full max-w-md",children:[(0,s.jsxs)(l.Ol,{children:[(0,s.jsx)(l.ll,{children:"Working Sign In (No NextAuth)"}),(0,s.jsx)(l.SZ,{children:"Direct backend authentication for testing"})]}),(0,s.jsxs)(l.aY,{className:"space-y-4",children:[h&&(0,s.jsx)("div",{className:"p-3 bg-red-50 border border-red-200 rounded-md",children:(0,s.jsx)("p",{className:"text-sm text-red-600",children:h})}),(0,s.jsxs)("form",{onSubmit:N,className:"space-y-4",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(c._,{htmlFor:"email",children:"Email"}),(0,s.jsx)(o.I,{id:"email",type:"email",value:t,onChange:e=>r(e.target.value),required:!0})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(c._,{htmlFor:"password",children:"Password"}),(0,s.jsx)(o.I,{id:"password",type:"password",value:u,onChange:e=>f(e.target.value),required:!0})]}),(0,s.jsx)(d.z,{type:"submit",disabled:m,className:"w-full",children:m?"Signing in...":"Sign In (Direct)"})]}),(0,s.jsxs)("div",{className:"flex flex-col space-y-2 pt-4 border-t",children:[(0,s.jsx)(d.z,{onClick:()=>{e.push("/dashboard")},variant:"outline",className:"w-full",children:"Test Dashboard Access (No Auth)"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground text-center",children:"This bypasses all authentication to test if the dashboard loads"})]}),(0,s.jsxs)("div",{className:"text-sm text-muted-foreground space-y-1",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:"This page:"})," Direct API login, no NextAuth"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:"Purpose:"})," Test if auth works without NextAuth complexity"]})]})]})]})})}},99489:function(e,t,r){"use strict";r.d(t,{f:function(){return d}});var s=r(67294);r(73935);var a=r(88426),n=r(85893),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let r=(0,a.Z8)(`Primitive.${t}`),i=s.forwardRef((e,s)=>{let{asChild:a,...i}=e,l=a?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(l,{...i,ref:s})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),l=s.forwardRef((e,t)=>(0,n.jsx)(i.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName="Label";var d=l}},function(e){e.O(0,[400,5214,2888,9774,179],function(){return e(e.s=88829)}),_N_E=e.O()}]);
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.