1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{73882:function(e,t,s){Promise.resolve().then(s.t.bind(s,72972,23)),Promise.resolve().then(s.t.bind(s,39974,23)),Promise.resolve().then(s.t.bind(s,51241,23)),Promise.resolve().then(s.t.bind(s,2778,23)),Promise.resolve().then(s.bind(s,78835)),Promise.resolve().then(s.bind(s,39314)),Promise.resolve().then(s.bind(s,54366))},78835:function(e,t,s){"use strict";s.d(t,{Header:function(){return C}});var a=s(57437),r=s(2265),l=s(27648),n=s(99376),i=s(27526),o=s(73247),d=s(58293),c=s(92369),h=s(47692),m=s(32489),u=s(12381),x=s(90219),f=s(90535),p=s(93448);let g=x.fC,b=x.xz;x.x8;let v=x.h_,j=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(x.aV,{className:(0,p.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...r,ref:t})});j.displayName=x.aV.displayName;let N=(0,f.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),y=r.forwardRef((e,t)=>{let{side:s="right",className:r,children:l,...n}=e;return(0,a.jsxs)(v,{children:[(0,a.jsx)(j,{}),(0,a.jsxs)(x.VY,{ref:t,className:(0,p.cn)(N({side:s}),r),...n,children:[l,(0,a.jsxs)(x.x8,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,a.jsx)(m.Z,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});y.displayName=x.VY.displayName;let k=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,p.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...s})};k.displayName="SheetHeader";let w=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(x.Dx,{ref:t,className:(0,p.cn)("text-lg font-semibold text-foreground",s),...r})});function C(){var e,t;let{data:s,status:x}=(0,i.kP)(),[f,p]=(0,r.useState)(!1),[v,j]=(0,r.useState)(!1),[N,C]=(0,r.useState)(""),P=(0,n.usePathname)(),S=(0,n.useSearchParams)(),z=(0,n.useRouter)(),E="/admin"===P||"/dashboard"===P,R="/picks"===P||"/scores"===P||"/live-odds"===P||"/arbitrage"===P||"/edge-finder"===P||"/trap-detector"===P||"/line-movement"===P||"/admin"===P||"/dashboard"===P,L=(0,r.useRef)(null),D=(0,r.useRef)(null);return(0,r.useEffect)(()=>{function e(e){L.current&&!L.current.contains(e.target)&&D.current&&!D.current.contains(e.target)&&j(!1)}return v&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[v]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{"aria-hidden":"true",className:"h-16 w-full"}),(0,a.jsx)("header",{className:"fixed top-0 left-0 right-0 z-50 w-full border-b bg-gray-50 dark:bg-black",children:(0,a.jsxs)("nav",{className:"mx-auto flex h-16 max-w-7xl items-center justify-between px-4",children:[(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)(l.default,{href:"/",children:(0,a.jsx)("img",{src:"/pp4.svg",alt:"PowerPicks",className:"h-8 w-8"})}),(0,a.jsx)("img",{src:"/pp2.svg",alt:"PowerPicks",className:"h-[29px] -ml-[6px] dark:hidden"}),(0,a.jsx)("img",{src:"/pp2-dark.svg",alt:"PowerPicks",className:"h-[29px] -ml-[6px] hidden dark:block"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("nav",{className:"hidden lg:flex items-center gap-1 mr-1",children:[{href:"/picks",label:"Picks"},{href:"/scores",label:"Scores"},{href:"/live-odds",label:"Live Odds"},{href:"/arbitrage",label:"Arbitrage"},{href:"/edge-finder",label:"Positive EV"},{href:"/trap-detector",label:"Trap Detector"},{href:"/line-movement",label:"Line Movement"},{href:"/dashboard",label:"Dashboard"}].map(e=>(0,a.jsx)(l.default,{href:e.href,className:"text-sm font-medium px-2 py-1 rounded-md transition-colors whitespace-nowrap ".concat(P===e.href||P.startsWith(e.href+"/")?"text-white bg-blue-600":"text-white/70 hover:text-blue-400"),children:e.label},e.href))}),R&&(0,a.jsxs)(u.z,{ref:D,variant:"ghost",size:"icon",className:"h-10 w-10",onClick:()=>j(!v),children:[(0,a.jsx)(o.Z,{className:"h-5 w-5"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle search"})]}),(0,a.jsxs)(g,{open:f,onOpenChange:p,children:[(0,a.jsx)(b,{asChild:!0,children:(0,a.jsxs)(u.z,{variant:"ghost",size:"icon",className:"h-10 w-10",children:[(0,a.jsx)(d.Z,{className:"h-6 w-6"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle menu"})]})}),(0,a.jsxs)(y,{side:"right",className:"w-[280px] sm:w-[320px]",children:[(0,a.jsx)(k,{children:(0,a.jsx)(w,{children:(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("img",{src:"/pp4.svg",alt:"PowerPicks",className:"h-8 w-8"}),(0,a.jsx)("img",{src:"/pp2.svg",alt:"PowerPicks",className:"h-[29px] -ml-[6px] dark:hidden"}),(0,a.jsx)("img",{src:"/pp2-dark.svg",alt:"PowerPicks",className:"h-[29px] -ml-[6px] hidden dark:block"})]})})}),(0,a.jsx)("div",{className:"flex flex-col gap-3 mt-8",children:"authenticated"===x&&(null==s?void 0:s.user)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"border-b pb-4 mb-2",children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"h-10 w-10 rounded-full bg-gray-200 dark:bg-gray-700 flex items-center justify-center",children:(0,a.jsx)(c.Z,{className:"h-5 w-5 text-gray-600 dark:text-gray-300"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-sm",children:s.user.n
1ame||"User"}),(0,a.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:s.user.email})]})]})}),(0,a.jsx)(l.default,{href:"/picks",onClick:()=>p(!1),children:(0,a.jsx)("span",{className:"block py-2 text-sm font-medium hover:text-blue-600",children:"Picks"})}),(0,a.jsx)(l.default,{href:"/scores",onClick:()=>p(!1),children:(0,a.jsx)("span",{className:"block py-2 text-sm font-medium hover:text-blue-600",children:"Scores"})}),(0,a.jsx)(l.default,{href:"/live-odds",onClick:()=>p(!1),children:(0,a.jsx)("span",{className:"block py-2 text-sm font-medium hover:text-blue-600",children:"Live Odds"})}),(0,a.jsx)(l.default,{href:"/arbitrage",onClick:()=>p(!1),children:(0,a.jsx)("span",{className:"block py-2 text-sm font-medium hover:text-blue-600",children:"Arbitrage"})}),(0,a.jsx)(l.default,{href:"/edge-finder",onClick:()=>p(!1),children:(0,a.jsx)("span",{className:"block py-2 text-sm font-medium hover:text-blue-600",children:"Positive EV"})}),(0,a.jsx)(l.default,{href:"/trap-detector",onClick:()=>p(!1),children:(0,a.jsx)("span",{className:"block py-2 text-sm font-medium hover:text-blue-600",children:"Trap Detector"})}),(0,a.jsx)(l.default,{href:"/line-movement",onClick:()=>p(!1),children:(0,a.jsx)("span",{className:"block py-2 text-sm font-medium hover:text-blue-600",children:"Line Movement"})}),(0,a.jsx)(l.default,{href:"/dashboard",onClick:()=>p(!1),children:(0,a.jsx)("span",{className:"block py-2 text-sm font-medium hover:text-blue-600",children:"Dashboard"})}),(null==s?void 0:null===(e=s.user)||void 0===e?void 0:e.role)==="affiliate"&&(0,a.jsx)(l.default,{href:"/affiliate-dashboard",onClick:()=>p(!1),children:(0,a.jsx)("span",{className:"block py-2 text-sm font-medium text-white hover:text-gray-300",children:"Affiliate Dashboard"})}),(0,a.jsx)(l.default,{href:"/support",onClick:()=>p(!1),children:(0,a.jsx)("span",{className:"block py-2 text-sm font-medium text-white hover:text-gray-300",children:"Support"})}),(null==s?void 0:null===(t=s.user)||void 0===t?void 0:t.role)==="admin"&&(0,a.jsx)(l.default,{href:"/admin",onClick:()=>p(!1),children:(0,a.jsx)("span",{className:"block py-2 text-sm font-medium text-purple-500 hover:text-purple-700",children:"Admin Dashboard"})}),(0,a.jsx)("div",{className:"border-t pt-4 mt-2",children:(0,a.jsxs)(u.z,{variant:"outline",size:"sm",className:"w-full",onClick:()=>{p(!1),(0,i.w7)({callbackUrl:"/"})},children:[(0,a.jsx)(h.Z,{className:"h-4 w-4 mr-2"}),"Sign Out"]})})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)(l.default,{href:"/auth/login",onClick:()=>p(!1),children:(0,a.jsx)(u.z,{variant:"outline",size:"sm",className:"w-full h-9 text-sm",children:"Login"})}),(0,a.jsx)(l.default,{href:"/auth/signup",onClick:()=>p(!1),children:(0,a.jsx)(u.z,{size:"sm",className:"w-full h-9 text-sm bg-blue-600 hover:bg-blue-700",children:"Get Started"})})]})})]})]})]})]})})]}),v&&R&&(0,a.jsx)("div",{ref:L,className:"w-full bg-gray-50 dark:bg-black border-b border-gray-200 dark:border-gray-700 shadow-md",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl px-4",children:(0,a.jsxs)("div",{className:"flex items-center py-3 gap-2",children:[(0,a.jsx)("input",{type:"text",className:"flex-1 bg-transparent outline-none text-sm md:text-base text-gray-800 dark:text-gray-100 placeholder-gray-400 dark:placeholder-gray-500",placeholder:E?"Search this page...":"Search teams, players, matchups...",value:N,onChange:e=>{let t=e.target.value;if(C(t),E){document.querySelectorAll(".search-highlight").forEach(e=>{let t=e.parentNode;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)});let e=null;t&&(document.querySelectorAll("p, h1, h2, h3, h4, span, td, th, li").forEach(s=>{let a=(s.textContent||"").toLowerCase().indexOf(t.toLowerCase());if(a>=0&&s.parentElement&&!s.parentElement.closest("input")&&!s.parentElement.closest("header")){let r=document.createElement("span");r.className="search-highlight",r.style.backgroundColor="#fbbf24",r.style.color="#000",r.style.borderRadius="2px",r.style.padding="0 2px";let l=document.createRange();l.setStart(s,a),l.setEnd(s,a+t.length),l.surroundContents(r),e||(e=r)}}),e&&e.scrollIntoView({behavior:"smooth",block:"center"}))}else{let e=new URLSearchParams(S.toString());t?e.set("search",t):e.delete("search"),z.replace(P+"?"+e.toString())}},autoFocus:!0}),N&&(0,a.jsx)("button",{onClick:()=>{C("");let e=new URLSearchParams(S.toString());e.delete("search"),z.replace(P+(e.toString()?"?"+e.toString():""))},className:"flex-shrink-0 text-gray-400 hover:text-gray-600 dark:hover:text-gray-200",children:(0,a.jsx)(m.Z,{className:"w-5 h-5"})})]})})})]})}w.displayName=x.Dx.displayName,r.forwardRef((e,t)=>
1{let{className:s,...r}=e;return(0,a.jsx)(x.dk,{ref:t,className:(0,p.cn)("text-sm text-muted-foreground",s),...r})}).displayName=x.dk.displayName},39314:function(e,t,s){"use strict";s.d(t,{Providers:function(){return n}});var a=s(57437),r=s(27526),l=s(25922);function n(e){let{children:t}=e;return(0,a.jsx)(l.f,{attribute:"class",defaultTheme:"dark",enableSystem:!1,children:(0,a.jsx)(r.eA,{children:t})})}},54366:function(e,t,s){"use strict";s.d(t,{default:function(){return l}});var a=s(2265),r=s(99376);function l(){let e=(0,r.useSearchParams)();return(0,a.useEffect)(()=>{let t=e.get("ref");if(t){let e={code:t,timestamp:Date.now(),expiry:Date.now()+7776e6};localStorage.setItem("referralCode",JSON.stringify(e))}},[e]),null}},12381:function(e,t,s){"use strict";s.d(t,{z:function(){return c}});var a=s(57437),r=s(2265),l=s(37053),n=s(90535),i=s(93448),o=s(51817);let d=(0,n.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",success:"bg-green-600 text-white hover:bg-green-700"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-md px-10 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,t)=>{let{className:s,variant:r,size:n,asChild:c=!1,loading:h=!1,children:m,disabled:u,...x}=e,f=c?l.g7:"button";return(0,a.jsx)(f,{className:(0,i.cn)(d({variant:r,size:n,className:s})),ref:t,disabled:u||h,...x,children:c?m:(0,a.jsxs)(a.Fragment,{children:[h&&(0,a.jsx)(o.Z,{className:"mr-2 h-4 w-4 animate-spin"}),m]})})});c.displayName="Button"},93448:function(e,t,s){"use strict";s.d(t,{cn:function(){return l}});var a=s(61994),r=s(53335);function l(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,r.m6)((0,a.W)(t))}},2778:function(){}},function(e){e.O(0,[6535,3878,7648,7526,1983,2971,2117,1744],function(){return e(e.s=73882)}),_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.