1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3302],{2892:function(e,i,n){Promise.resolve().then(n.bind(n,8172))},8172:function(e,i,n){"use strict";n.d(i,{default:function(){return a}});var t=n(7437),r=n(2265),s=n(9376),o=n(970);function a(e){let{nextPath:i}=e,n=(0,s.useRouter)(),[a,d]=(0,r.useState)(""),[l,c]=(0,r.useState)(""),[u,f]=(0,r.useState)("idle"),[p,g]=(0,r.useState)("");async function h(e){e.preventDefault(),f("working"),g("");try{if((await fetch("/api/dealer/env-login",{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:JSON.stringify({email:a,password:l})})).ok){n.replace(i),n.refresh();return}let e=(0,o.e)(),{error:t}=await e.auth.signInWithPassword({email:a,password:l});if(t)throw t;n.replace(i),n.refresh()}catch(e){f("error"),g(e instanceof Error?e.message:"Sign in failed.")}}let b="working"===u;return(0,t.jsx)("main",{style:{minHeight:"100vh",display:"grid",placeItems:"center",padding:24,background:"#f8fafc",color:"#0f172a"},children:(0,t.jsxs)("form",{onSubmit:h,style:{width:"min(420px, 100%)",display:"grid",gap:16,padding:28,border:"1px solid #e2e8f0",borderRadius:20,background:"#fff"},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{style:{fontSize:12,fontWeight:900,letterSpacing:".14em",color:"#b91c1c"},children:"ZENVYK \xb7 DEALER OPERATIONS"}),(0,t.jsx)("h1",{style:{margin:"8px 0 4px",fontSize:28},children:"Dealer sign in"}),(0,t.jsx)("p",{style:{margin:0,color:"#64748b",lineHeight:1.5},children:"Sign in to the protected dealership operating console. The public SolaceTrade experience remains open to customers."})]}),(0,t.jsxs)("label",{style:{display:"grid",gap:6,fontWeight:800},children:["Email",(0,t.jsx)("input",{type:"email",autoComplete:"email",value:a,onChange:e=>d(e.target.value),required:!0,style:{minHeight:44,border:"1px solid #cbd5e1",borderRadius:10,padding:"0 12px",fontSize:16}})]}),(0,t.jsxs)("label",{style:{display:"grid",gap:6,fontWeight:800},children:["Password",(0,t.jsx)("input",{type:"password",autoComplete:"current-password",value:l,onChange:e=>c(e.target.value),required:!0,style:{minHeight:44,border:"1px solid #cbd5e1",borderRadius:10,padding:"0 12px",fontSize:16}})]}),p?(0,t.jsx)("div",{role:"alert",style:{padding:12,borderRadius:10,background:"success"===u?"#f0fdf4":"#fef2f2",color:"success"===u?"#166534":"#991b1b",fontWeight:700},children:p}):null,(0,t.jsx)("button",{type:"submit",disabled:b,style:{minHeight:46,border:0,borderRadius:10,background:"#0f172a",color:"#fff",fontSize:16,fontWeight:900,cursor:b?"wait":"pointer"},children:"working"===u?"Signing inâ¦":"Sign in"})]})})}},970:function(e,i,n){"use strict";n.d(i,{e:function(){return s}});var t=n(8113),r=n(257);function s(){let e="https://qbhjfffxzugkmvgphcrt.supabase.co",i=r.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InFiaGpmZmZ4enVna212Z3BoY3J0Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTk0Mjg2ODksImV4cCI6MjA3NTAwNDY4OX0.IAhu9LYzUisJVSvnGf8jnXEDauasvgkg1lOYKsR4Qts";if(!e||!i)throw Error("Supabase browser auth is not configured. Set NEXT_PUBLIC_SUPABASE_URL and either NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY or NEXT_PUBLIC_SUPABASE_ANON_KEY.");return(0,t.A)(e,i)}}},function(e){e.O(0,[9762,9358,2971,2117,1744],function(){return e(e.s=2892)}),_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.