PageSourceSearch

https://the-warehouse-sigma.vercel.app/_next/static/chunks/app/login/page-eb6f6081.js

js the-warehouse-sigma.vercel.app collected 2026-10-03 07:52:09 UTC 15,329 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[626],{4480:function(e,r,t){Promise.resolve().then(t.bind(t,4831))},4831:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return x}});var n=t(7437),s=t(2265),i=t(605),a=t(9376),o=t(4794),l=t(9205);let d=(0,l.Z)("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]),c=(0,l.Z)("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);var u=t(9322);let f=(0,l.Z)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var b=t(2208),g=t(1239),h=t(2869),m=t(5186),p=t(6815);function x(){let[e,r]=(0,s.useState)(!0),[t,l]=(0,s.useState)(""),[x,v]=(0,s.useState)(""),[y,w]=(0,s.useState)(""),[j,k]=(0,s.useState)(""),[N,_]=(0,s.useState)(!1),[Z,A]=(0,s.useState)(!1),C=(0,a.useRouter)(),P=async n=>{n.preventDefault(),k(""),_(!0);try{if(e){let e=await (0,i.signIn)("credentials",{email:t,password:x,redirect:!1});e?.error?k("Invalid credentials. Please try again."):C.replace("/dashboard")}else{let e=await fetch("/api/signup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,password:x,name:y})}),n=await e.json();if(e.ok){let e=await (0,i.signIn)("credentials",{email:t,password:x,redirect:!1});e?.error?(k("Account created. Please log in."),r(!0)):C.replace("/dashboard")}else k(n?.error??"Signup failed")}}catch(e){console.error("Auth error:",e),k("An unexpected error occurred")}finally{_(!1)}};return(0,n.jsxs)("div",{className:"min-h-screen flex items-center justify-center tron-grid relative overflow-hidden",style:{background:"#0a0e27"},children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-[#00f0ff]/5 via-transparent to-[#39ff14]/5"}),(0,n.jsx)("div",{className:"absolute top-1/4 left-1/4 w-96 h-96 bg-[#00f0ff]/5 rounded-full blur-[120px]"}),(0,n.jsx)("div",{className:"absolute bottom-1/4 right-1/4 w-96 h-96 bg-[#39ff14]/5 rounded-full blur-[120px]"}),(0,n.jsxs)("div",{className:"relative z-10 w-full max-w-md px-4",children:[(0,n.jsxs)("div",{className:"text-center mb-8",children:[(0,n.jsxs)("div",{className:"flex items-center justify-center gap-3 mb-3",children:[(0,n.jsx)(o.Z,{className:"w-10 h-10 text-[#00f0ff]"}),(0,n.jsx)("h1",{className:"retro-heading text-4xl font-bold text-[#00f0ff] neon-text",children:"The_WAREHOUSE"})]}),(0,n.jsx)("p",{className:"text-sm text-[#00f0ff]/50 font-mono tracking-widest uppercase",children:"Arbitrage Command Center"})]}),(0,n.jsxs)("div",{className:"rounded-lg border border-[#00f0ff]/20 p-8 neon-glow",style:{background:"rgba(15, 20, 51, 0.9)",backdropFilter:"blur(20px)"},children:[(0,n.jsxs)("div",{className:"flex gap-2 mb-6",children:[(0,n.jsxs)("button",{onClick:()=>{r(!0),k("")},className:`flex-1 py-2.5 rounded-md text-sm font-medium transition-all flex items-center justify-center gap-2 ${e?"bg-[#00f0ff]/10 text-[#00f0ff] border border-[#00f0ff]/30":"text-gray-400 hover:text-gray-300"}`,children:[(0,n.jsx)(d,{className:"w-4 h-4"})," Sign In"]}),(0,n.jsxs)("button",{onClick:()=>{r(!1),k("")},className:`flex-1 py-2.5 rounded-md text-sm font-medium transition-all flex items-center justify-center gap-2 ${e?"text-gray-400 hover:text-gray-300":"bg-[#39ff14]/10 text-[#39ff14] border border-[#39ff14]/30"}`,children:[(0,n.jsx)(c,{className:"w-4 h-4"})," Register"]})]}),j&&(0,n.jsxs)("div",{className:"mb-4 p-3 rounded-md bg-red-500/10 border border-red-500/30 flex items-center gap-2",children:[(0,n.jsx)(u.Z,{className:"w-4 h-4 text-[#ff3131] shrink-0"}),(0,n.jsx)("span",{className:"text-sm text-[#ff3131]",children:j})]}),(0,n.jsxs)("form",{onSubmit:P,className:"space-y-4",children:[!e&&(0,n.jsxs)("div",{children:[(0,n.jsx)(p._,{className:"text-xs text-[#00f0ff]/70 uppercase tracking-wider font-mono",children:"Name"}),(0,n.jsx)(m.I,{type:"text",value:y,onChange:e=>w(e?.target?.value??""),placeholder:"Warehouse Manager",className:"mt-1.5 bg-[#0a0e27]/60 border-[#00f0ff]/20 text-white placeholder:text-gray-500 focus:border-[#00f0ff]/50 focus:ring-[#00f0ff]/20"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(p._,{className:"text-xs text-[#00f0ff]/70 uppercase tracking-wider font-mono",children:"Email"}),(0,n.jsx)(m.I,{type:"email",value:t,onChange:e=>l(e?.target?.value??""),placeholder:"[email protected]",required:!0,className:"mt-1.5 bg-[#0a0e27]/60 border-[#00f0ff]/20 text-white placeholder:text-gray-500 focus:border-[#00f0ff]/50 focus:ring-[#00f0ff]/20"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(p._,{className:"text-xs text-[#00f0ff]/70 uppercase tracking-wider font-mono",children:"Password"}),(0,n.jsxs)("div",{className:"relative mt-1.5",children:[(0,n.jsx)(m.I,{type:Z?"text":"password",value:x,onChange:e=>v(e?.target?.value??""),placeholder:"••••••••",required:!0,className:"bg-[#0a0e27]/60 border-[#00f0ff]/20 text-white placeholder:text-gray-500 focus:border-[#00f0ff]/50 focus:ring-[#00f0ff]/20 pr-10"}),(0,n.jsx)("button",{type:"button",onClick:()=>A(!Z),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 hover:text-[#00f0ff]",children:Z?(0,n.jsx)(f,{className:"w-4 h-4"}):(0,n.jsx)(b.Z,{className:"w-4 h-4"})})]})]}),(0,n.jsxs)(h.z,{type:"submit",loading:N,className:"w-full bg-[#00f0ff] hover:bg-[#00d4ff] text-[#0a0e27] font-bold uppercase tracking-wider h-11",children:[(0,n.jsx)(g.Z,{className:"w-4 h-4"}),e?"Access Terminal":"Initialize Account"]})]})]}),(0,n.jsx)("p",{className:"text-center mt-6 text-xs text-gray-500 font-mono",children:"Marinha Grande, PT — Centro Region Operations"})]})]})}},2869:function(e,r,t){"use strict";t.d(r,{z:function(){return c}});var n=t(7437),s=t(2265),i=t(5293),a=t(7712),o=t(1817),l=t(4508);let d=(0,a.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-all duration-fast focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background active:scale-[0.98] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:w-4 [&_svg]:h-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90 hover:shadow-md",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90 hover:shadow-md",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground hover:border-accent hover:shadow-sm",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground","glass-dark":"bg-white/10 backdrop-blur-md border border-white/20 [box-shadow:inset_0_0_0_1px_rgba(255,255,255,0.1)] text-foreground shadow-sm hover:bg-white/25 hover:border-white/40 hover:shadow-lg focus-visible:ring-white/50 focus-visible:ring-ring/0","glass-light":"bg-black/[0.06] backdrop-blur-md border border-black/10 [box-shadow:inset_0_0_0_1px_rgba(255,255,255,0.5)] text-gray-900 shadow-sm hover:bg-black/[0.12] hover:border-black/20 hover:shadow-lg focus-visible:ring-black/30 focus-visible:ring-ring/0",link:"text-primary underline-offset-4 hover:underline focus-visible:underline focus-visible:ring-0 focus-visible:ring-offset-0"},size:{default:"h-10 px-4 py-2",xs:"h-7 rounded-md px-2 text-xs",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-lg px-6 text-base",icon:"h-10 w-10","icon-sm":"h-8 w-8 rounded-md"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef(({className:e,variant:r,size:t,asChild:s=!1,loading:a=!1,disabled:c,
1children:u,...f},b)=>{let g=s?i.g7:"button";return(0,n.jsxs)(g,{className:(0,l.cn)(d({variant:r,size:t,className:e})),ref:b,disabled:c||a,"aria-busy":a||void 0,...f,children:[a&&(0,n.jsx)(o.Z,{className:"h-4 w-4 animate-spin"}),(0,n.jsx)(i.A4,{children:a&&s?null:u})]})});c.displayName="Button"},5186:function(e,r,t){"use strict";t.d(r,{I:function(){return l}});var n=t(7437),s=t(2265),i=t(7712),a=t(4508);let o=(0,i.j)("flex w-full rounded-lg border bg-background text-sm transition-all duration-fast file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"border-input hover:border-ring/50 focus-visible:border-input focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",error:"border-destructive hover:border-destructive focus-visible:border-destructive focus-visible:ring-2 focus-visible:ring-destructive focus-visible:ring-offset-2 focus-visible:ring-offset-background",success:"border-emerald-500 hover:border-emerald-500 focus-visible:border-emerald-500 focus-visible:ring-2 focus-visible:ring-emerald-500/50 focus-visible:ring-offset-2 focus-visible:ring-offset-background",ghost:"border-transparent bg-muted/50 hover:bg-muted focus-visible:bg-background focus-visible:border-input focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"},size:{default:"h-10 px-3 py-2",sm:"h-8 px-2.5 py-1 text-xs rounded-md",lg:"h-12 px-4 py-3 text-base rounded-lg"}},defaultVariants:{variant:"default",size:"default"}}),l=s.forwardRef(({className:e,type:r,variant:t,size:s,...i},l)=>(0,n.jsx)("input",{type:r,className:(0,a.cn)(o({variant:t,size:s,className:e})),ref:l,...i}));l.displayName="Input"},6815:function(e,r,t){"use strict";t.d(r,{_:function(){return d}});var n=t(7437),s=t(2265),i=t(1107),a=t(7712),o=t(4508);let l=(0,a.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef(({className:e,...r},t)=>(0,n.jsx)(i.f,{ref:t,className:(0,o.cn)(l(),e),...r}));d.displayName=i.f.displayName},4508:function(e,r,t){"use strict";t.d(r,{cn:function(){return i}});var n=t(1994),s=t(3335);function i(...e){return(0,s.m6)((0,n.W)(e))}},9322:function(e,r,t){"use strict";t.d(r,{Z:function(){return n}});let n=(0,t(9205).Z)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},2208:function(e,r,t){"use strict";t.d(r,{Z:function(){return n}});let n=(0,t(9205).Z)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},1817:function(e,r,t){"use strict";t.d(r,{Z:function(){return n}});let n=(0,t(9205).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},4794:function(e,r,t){"use strict";t.d(r,{Z:function(){return n}});let n=(0,t(9205).Z)("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]])},1239:function(e,r,t){"use strict";t.d(r,{Z:function(){return n}});let n=(0,t(9205).Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},9376:function(e,r,t){"use strict";var n=t(5475);t.o(n,"useParams")&&t.d(r,{useParams:function(){return n.useParams}}),t.o(n,"usePathname")&&t.d(r,{usePathname:function(){return n.usePathname}}),t.o(n,"useRouter")&&t.d(r,{useRouter:function(){return n.useRouter}})},1107:function(e,r,t){"use strict";t.d(r,{f:function(){return l}});var n=t(2265);t(4887);var s=t(5293),i=t(7437),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>{let t=n.forwardRef((e,t)=>
1{let{asChild:n,...a}=e,o=n?s.g7:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o,{...a,ref:t})});return t.displayName=`Primitive.${r}`,{...e,[r]:t}},{}),o=n.forwardRef((e,r)=>(0,i.jsx)(a.label,{...e,ref:r,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));o.displayName="Label";var l=o},5293:function(e,r,t){"use strict";t.d(r,{g7:function(){return i},A4:function(){return o}});var n=t(2265),s=t(7437),i=n.forwardRef((e,r)=>{let{children:t,...i}=e,o=n.Children.toArray(t),d=o.find(l);if(d){let e=d.props.children,t=o.map(r=>r!==d?r:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,s.jsx)(a,{...i,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,t):null})}return(0,s.jsx)(a,{...i,ref:r,children:t})});i.displayName="Slot";var a=n.forwardRef((e,r)=>{let{children:t,...s}=e;if(n.isValidElement(t)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?t.props.ref:t.props.ref||t.ref;return n.cloneElement(t,{...function(e,r){let t={...r};for(let n in r){let s=e[n],i=r[n];/^on[A-Z]/.test(n)?s&&i?t[n]=(...e)=>{i(...e),s(...e)}:s&&(t[n]=s):"style"===n?t[n]={...s,...i}:"className"===n&&(t[n]=[s,i].filter(Boolean).join(" "))}return{...e,...t}}(s,t.props),ref:r?function(...e){return r=>e.forEach(e=>{"function"==typeof e?e(r):null!=e&&(e.current=r)})}(r,a):a})}return n.Children.count(t)>1?n.Children.only(null):null});a.displayName="SlotClone";var o=({children:e})=>(0,s.jsx)(s.Fragment,{children:e});function l(e){return n.isValidElement(e)&&e.type===o}},7712:function(e,r,t){"use strict";t.d(r,{j:function(){return i}});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,s=function(){for(var e,r,t=0,n="";t<arguments.length;)(e=arguments[t++])&&(r=function e(r){var t,n,s="";if("string"==typeof r||"number"==typeof r)s+=r;else if("object"==typeof r){if(Array.isArray(r))for(t=0;t<r.length;t++)r[t]&&(n=e(r[t]))&&(s&&(s+=" "),s+=n);else for(t in r)r[t]&&(s&&(s+=" "),s+=t)}return s}(e))&&(n&&(n+=" "),n+=r);return n},i=(e,r)=>t=>{var i;if((null==r?void 0:r.variants)==null)return s(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:a,defaultVariants:o}=r,l=Object.keys(a).map(e=>{let r=null==t?void 0:t[e],s=null==o?void 0:o[e];if(null===r)return null;let i=n(r)||n(s);return a[e][i]}),d=t&&Object.entries(t).reduce((e,r)=>{let[t,n]=r;return void 0===n||(e[t]=n),e},{});return s(e,l,null==r?void 0:null===(i=r.compoundVariants)||void 0===i?void 0:i.reduce((e,r)=>{let{class:t,className:n,...s}=r;return Object.entries(s).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...o,...d}[r]):({...o,...d})[r]===t})?[...e,t,n]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}}},function(e){e.O(0,[590,605,971,117,744],function(){return e(e.s=4480)}),_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.