PageSourceSearch

https://matchupwise.com/_next/static/chunks/app/(en)/(admin)/admin/login/page-89e94f79c2c5d8ab.js

js matchupwise.com collected 2026-10-02 01:37:51 UTC 7,969 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7793],{13304:function(e,t,r){Promise.resolve().then(r.bind(r,6080))},79205:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(2265);let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(" ")};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:u="",children:c,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...l,width:a,height:a,stroke:r,strokeWidth:o?24*Number(i)/Number(a):i,className:s("lucide",u),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),o=(e,t)=>{let r=(0,n.forwardRef)((r,l)=>{let{className:o,...u}=r;return(0,n.createElement)(i,{ref:l,iconNode:t,className:s("lucide-".concat(a(e)),o),...u})});return r.displayName="".concat(e),r}},88906:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},33145:function(e,t,r){"use strict";r.d(t,{default:function(){return a.a}});var n=r(48461),a=r.n(n)},99376:function(e,t,r){"use strict";var n=r(35475);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},48461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getImageProps:function(){return i}});let n=r(47043),a=r(55346),s=r(65878),l=n._(r(5084));function i(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let o=s.Image},25523:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(47043)._(r(2265)).default.createContext(null)},6080:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return c}});var n=r(57437),a=r(2265),s=r(99376),l=r(88906),i=r(11840),o=r(96602),u=r(69064);function c(){let[e,t]=(0,a.useState)(""),[r,c]=(0,a.useState)(""),[d,f]=(0,a.useState)(!1),x=(0,s.useRouter)(),{login:h,setUser:m}=(0,o.useAuthStore)(),p=async t=>{t.preventDefault(),f(!0);try{await h(e,r);let t=o.useAuthStore.getState().user;if(!(null==t?void 0:t.is_admin)){u.ZP.error("You don't have admin privileges"),m(null);return}u.ZP.success("Welcome back, Admin!"),x.push("/admin/dashboard")}catch(e){var n,a;u.ZP.error((null===(a=e.response)||void 0===a?void 0:null===(n=a.data)||void 0===n?void 0:n.detail)||"Login failed")}finally{f(!1)}};return(0,n.jsxs)("div",{className:"w-full max-w-md bg-white p-8 rounded-2xl shadow-xl border border-slate-100 relative",children:[(0,n.jsx)("div",{className:"absolute -top-12 left-1/2 -translate-x-1/2 w-24 h-24 bg-primary/10 rounded-full flex items-center justify-center border-4 border-slate-50",children:(0,n.jsx)(l.Z,{className:"w-10 h-10 text-primary"})}),(0,n.jsxs)("div",{className:"mt-8 text-center mb-8",children:[(0,n.jsx)("div",{className:"flex justify-center mb-4",children:(0,n.jsx)(i.O,{})}),(0,n.jsx)("h1",{className:"text-2xl font-black text-navy-900",children:"Admin Console"}),(0,n.jsx)("p",{className:"text-slate-500 text-sm mt-2",children:"Sign in to securely access the operations portal."})]}),(0,n.jsxs)("form",{onSubmit:p,className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block text-sm font-semibold text-slate-700 mb-1.5",children:"Email Address"}),(0,n.jsx)("input",{type:"email",required:!0,className:"w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-primary/20 focus:border-primary outline-none text-sm transition-all",placeholder:"[email protected]",value:e,onCh
1ange:e=>t(e.target.value)})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block text-sm font-semibold text-slate-700 mb-1.5",children:"Password"}),(0,n.jsx)("input",{type:"password",required:!0,className:"w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-primary/20 focus:border-primary outline-none text-sm transition-all",placeholder:"••••••••",value:r,onChange:e=>c(e.target.value)})]}),(0,n.jsx)("button",{type:"submit",disabled:d,className:"w-full py-3.5 bg-navy-900 text-white rounded-xl font-bold shadow-lg hover:bg-navy-800 transition-colors mt-4",children:d?"Authenticating...":"Sign In to Admin"})]})]})}},11840:function(e,t,r){"use strict";r.d(t,{O:function(){return u}});var n=r(57437);r(2265);var a=r(33145),s=r(93448);let l={sm:{box:"h-8 w-8",text:"text-lg",px:32},md:{box:"h-10 w-10",text:"text-xl",px:40},xl:{box:"h-14 w-14",text:"text-3xl",px:56},lg:{box:"h-48 w-48",text:"text-3xl",px:192}},i="drop-shadow(0 0 5px rgba(167,139,250,0.45))",o="/brand-logo.png";function u(e){let{className:t,iconOnly:r=!1,size:u="md",tone:c,...d}=e,f=l[u],x=null==t?void 0:t.includes("text-white");return(0,n.jsxs)("div",{className:(0,s.cn)("flex items-center gap-2.5",t),...d,children:[(0,n.jsx)("div",{className:(0,s.cn)("flex shrink-0 select-none items-center justify-center transition-transform group-hover:scale-105",f.box),children:x?(0,n.jsx)(a.default,{src:o,alt:"MatchupWise Logo",width:f.px,height:f.px,className:"object-contain w-full h-full",style:{filter:i},priority:!0}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.default,{src:"/brand-logo-light.png",alt:"MatchupWise Logo",width:f.px,height:f.px,className:"object-contain w-full h-full dark:hidden",priority:!0}),(0,n.jsx)(a.default,{src:o,alt:"","aria-hidden":"true",width:f.px,height:f.px,className:"object-contain w-full h-full hidden dark:block",style:{filter:i}})]})}),!r&&(0,n.jsx)("span",{className:(0,s.cn)("tracking-tight",f.text),children:"auto"===c?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"font-extrabold text-slate-900 dark:text-white",children:"Matchup"}),(0,n.jsx)("span",{className:"font-bold text-violet-600 dark:font-medium dark:text-white/90",children:"Wise"})]}):x?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"font-extrabold text-white",children:"Matchup"}),(0,n.jsx)("span",{className:"font-medium text-white/90",children:"Wise"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"font-extrabold text-slate-900",children:"Matchup"}),(0,n.jsx)("span",{className:"font-bold text-violet-600",children:"Wise"})]})})]})}},3011:function(e,t,r){"use strict";r.d(t,{U:function(){return o}});var n=r(2265);let a=e=>{let t;let r=new Set,n=(e,n)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=n?n:"object"!=typeof a||null===a)?a:Object.assign({},t,a),r.forEach(r=>r(t,e))}},a=()=>t,s={setState:n,getState:a,getInitialState:()=>l,subscribe:e=>(r.add(e),()=>r.delete(e))},l=t=e(n,a,s);return s},s=e=>e?a(e):a,l=e=>e,i=e=>{let t=s(e),r=e=>(function(e,t=l){let r=n.useSyncExternalStore(e.subscribe,n.useCallback(()=>t(e.getState()),[e,t]),n.useCallback(()=>t(e.getInitialState()),[e,t]));return n.useDebugValue(r),r})(t,e);return Object.assign(r,t),r},o=e=>e?i(e):i}},function(e){e.O(0,[5878,3464,9064,6137,4517,9291,4689,2971,2117,1744],function(){return e(e.s=13304)}),_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.