PageSourceSearch

https://leagueblitz.app/_next/static/chunks/app/layout-3a5d4b0365c…?dpl=dpl_EfNkn5Ky1AvxJcyCHZWgv2iKgE7Z

js leagueblitz.app collected 2026-10-02 01:14:09 UTC 11,492 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{9052:function(e,t,n){Promise.resolve().then(n.t.bind(n,7960,23)),Promise.resolve().then(n.bind(n,5611)),Promise.resolve().then(n.bind(n,3757)),Promise.resolve().then(n.bind(n,7824)),Promise.resolve().then(n.bind(n,3925)),Promise.resolve().then(n.bind(n,1381)),Promise.resolve().then(n.bind(n,7679)),Promise.resolve().then(n.bind(n,4981)),Promise.resolve().then(n.bind(n,6430)),Promise.resolve().then(n.t.bind(n,2972,23)),Promise.resolve().then(n.t.bind(n,8003,23)),Promise.resolve().then(n.t.bind(n,9194,23)),Promise.resolve().then(n.t.bind(n,9258,23))},5611:function(e,t,n){"use strict";n.d(t,{default:function(){return l}});var a=n(7437),r=n(2265),s=n(2735),i=n(4394),c=n(2489);let o="lb:install-dismissed";function l(){let[e,t]=(0,r.useState)(!1),[n,l]=(0,r.useState)(!1),d=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(window.matchMedia("(display-mode: standalone)").matches||localStorage.getItem(o))return;let e=/iPhone|iPad/.test(navigator.userAgent)&&!window.MSStream,n=/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent);if(e&&n){l(!0),t(!0);return}let a=e=>{e.preventDefault(),d.current=e,t(!0)};return window.addEventListener("beforeinstallprompt",a),()=>window.removeEventListener("beforeinstallprompt",a)},[]);let m=(0,r.useCallback)(()=>{t(!1),localStorage.setItem(o,"1")},[]),u=(0,r.useCallback)(async()=>{if(!d.current)return;d.current.prompt();let{outcome:e}=await d.current.userChoice;"accepted"===e&&m(),d.current=null},[m]);return e?(0,a.jsx)("div",{className:"fixed bottom-4 left-4 right-4 z-50 mx-auto max-w-md",style:{animation:"install-slide-up 0.3s ease-out"},children:(0,a.jsxs)("div",{className:"bg-pitch-800 border border-pitch-600 rounded-xl shadow-2xl shadow-black/50 p-4",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("div",{className:"w-9 h-9 rounded-lg bg-accent-strong/10 border border-accent-strong/25 flex items-center justify-center shrink-0",children:(0,a.jsx)(s.Z,{className:"w-[18px] h-[18px] text-accent"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-gray-200",children:"Add League Blitz to your home screen"}),n?(0,a.jsxs)("p",{className:"text-xs text-gray-400 mt-1 leading-relaxed",children:["Tap ",(0,a.jsx)(i.Z,{className:"inline w-3 h-3 -mt-0.5"}),' Share, then "Add to Home Screen" for the full app experience with notifications.']}):(0,a.jsx)("p",{className:"text-xs text-gray-400 mt-1 leading-relaxed",children:"Get the full-screen app experience with push notifications."})]}),(0,a.jsx)("button",{onClick:m,"aria-label":"Dismiss",className:"shrink-0 p-1 text-gray-500 hover:text-gray-300 transition-colors",children:(0,a.jsx)(c.Z,{className:"w-4 h-4"})})]}),!n&&(0,a.jsxs)("button",{onClick:u,className:"mt-3 w-full min-h-[44px] inline-flex items-center justify-center gap-2 bg-accent-strong hover:bg-accent text-pitch-950 font-bold rounded-lg transition-colors tracking-wider text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-pitch-800",children:[(0,a.jsx)(s.Z,{className:"w-4 h-4"}),"Install"]})]})}):null}},3757:function(e,t,n){"use strict";n.d(t,{default:function(){return l}});var a=n(7437),r=n(7648),s=n(9376),i=n(5452),c=n(2265);let o=[{href:"/gameday",label:"Game Day"},{href:"/my-team",label:"My Team"},{href:"/dashboard",label:"Scores"},{href:"/rankings",label:"Rankings"},{href:"/feed",label:"Feed"},{href:"/odds",label:"Odds"},{href:"/connect",label:"Leagues"}];function l(){let e=(0,s.usePathname)(),{isSignedIn:t,isLoaded:n}=(0,i.aC)(),[l,d]=(0,c.useState)(!1),m=(0,c.useRef)(null);if((0,c.useEffect)(()=>{d(!1)},[e]),(0,c.useEffect)(()=>{let e=e=>{m.current&&!m.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),!n)return(0,a.jsx)("div",{className:"w-24 h-8"});if(!t)return(0,a.jsxs)("nav",{className:"flex items-center gap-2 font-ui",children:[(0,a.jsx)(r.default,{href:"/sign-in",className:"px-3 py-1.5 text-sm font-semibold text-gray-400 hover:text-white tracking-wider transition-colors",children:"Sign In"}),(0,a.jsx)(r.default,{href:"/sign-up",className:"px-3 py-1.5 text-sm font-bold bg-accent hover:bg-accent-soft text-pitch-950 rounded-lg tracking-wider transition-colors",children:"Get Started"})]});let u=t=>!!e&&(e===t||"/"!==t&&e.startsWith(t));return(0,a.jsxs)("div",{className:"relative flex items-center gap-1 font-ui",ref:m,children:[(0,a.jsx)("nav",{className:"hidden md:flex items-center gap-0.5",children:o.map(e=>{let{href:t,label:n}=e;return(0,a.jsxs)(r.default,{href:t,className:"relative px-3.5 py-2 text-sm font-semibold tracking-wider transition-colors ".concat(u(t)?"text-accent":"text-gray-400 hover:text-white"),children:[n,u(t)&&(0,a.jsx)("span",{className:"absolute bottom-0 left-3 right-3 h-0.5 rounded-full bg-accent"})]},t)})}),(0,a.jsx)("button",{onClick:()=>d(e=>!e),"aria-label":"Menu","aria-expanded":l,className:"md:hidden p-2 rounded-lg border border-pitch-700 bg-pitch-900 hover:bg-pitch-800 transition-colors",children:(0,a.jsx)("svg",{className:"w-5 h-5 text-gray-300",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:l?(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}):(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 7h16M4 12h16M4 17h16"})})}),(0,a.jsx)("div",{className:"ml-1 md:ml-3",children:(0,a.jsx)(i.l8,{appearance:{elements:{avatarBox:"w-8 h-8",userButtonPopoverCard:"!bg-pitch-900 border border-pitch-700 shadow-2xl",userButtonPopoverMain:"!bg-pitch-900",userPreview:"!bg-pitch-900",userPreviewMainIdentifier:"!text-white",userPreviewSecondaryIdentifier:"!text-gray-400",userButtonPopoverActionButton:"!bg-pitch-900 hover:!bg-pitch-800 !text-white",userButtonPopoverActionButtonText:"!text-white text-sm",userButtonPopoverActionButtonIcon:"!text-gray-400",userButtonPopoverFooter:"hidden"}}})}),l&&(0,a.jsx)("div",{className:"md:hidden absolute right-0 top-full mt-2 w-52 rounded-xl border border-pitch-700 bg-pitch-900 shadow-2xl shadow-black/50 z-50 py-1.5",children:o.map(e=>{let{href:t,label:n}=e;return(0,a.jsx)(r.default,{href:t,onClick:()=>d(!1),className:"block px-4 py-2.5 text-sm font-semibold tracking-wider transition-colors ".concat(u(t)?"text-accent bg-pitch-800/50":"text-gray-300 hover:bg-pitch-800"),children:n},t)})})]})}},7824:function(e,t,n){"use strict";n.d(t,{default:function(){return d}});var a=n(7437),r=n(2265),s=n(401);let i=[{id:"ari",name:"Arizona Cardinals",accent:"#be3450"},{id:"atl",name:"Atlanta Falcons",accent:"#c5283f"},{id:"bal",name:"Baltimore Ravens",accent:"#6e5ce0"},{id:"buf",name:"Buffalo Bills",accent:"#3d7be6"},{id:"car",name:"Carolina Panthers",accent:"#0085ca"},{id:"chi",name:"Chicago Bears",accent:"#c83803"},{id:"cin",name:"Cincinnati Bengals",accent:"#fb4f14"},{id:"cle",name:"Cleveland Browns",accent:"#ff3c00"},{id:"dal",name:"Dallas Cowboys",accent:"#4a7fe0"},{id:"den",name:"Denver Broncos",accent:"#fb4f14"},{id:"det",name:"Detroit Lions",accent:"#0076b6"},{id:"gb",name:"Green Bay Packers",accent:"#ffb612"},{id:"hou",name:"Houston Texans",accent:"#c5283f"},{id:"ind",name:"Indianapolis Colts",accent:"#4a86e0"},{id:"jax",name:"Jacksonville Jaguars",accent:"#d7a22a"},{id:"kc",name:"Kansas City Chiefs",accent:"#e31837"},{id:"lv",name:"Las Vegas Raiders",accent:"#a5acaf"},{id:"lac",name:"Los Angeles Chargers",accent:"#0080c6"},{id:"lar",name:"Los Angeles Rams",accent:"#ffa300"},{id:"mia",name:"Miami Dolphins",accent:"#00b5bd"},{id:"min",name:"Minnesota Vikings",accent:"#8458d6"},{id:"ne",name:"New England Patriots",accent:"#e23a55"},{id:"no",name:"New Orleans Saints",accent:"#d3bc8d"},{id:"nyg",name:"New York Giants",accent:"#4670d6"},{id:"nyj",name:"New York Jets",accent:"#34a65a"},{id:"phi",name:"Philadelphia Eagles",accent:"#1b8a93"},{id:"pit",name:"Pittsburgh Steelers",accent:"#ffb612"},{id:"sf",name:"San Francisco 49ers",accent:"#c8202e"},{id:"sea",name:"Seattle Seahawks",accent:"#69be28"},{id:"tb",name:"Tampa Bay Buccaneers",accent:"#e5312b"},{id:"ten",name:"Tennessee Titans",accent:"#4b92db"},{id:"was",name:"Washington Commanders",accent:"#c0566c"}],c=e=>Math.max(0,Math.min(255,Math.round(e))),o=e=>
1e.map(c).join(" "),l=(e,t,n)=>[e[0]+(t-e[0])*n,e[1]+(t-e[1])*n,e[2]+(t-e[2])*n];function d(e){var t;let{currentTeam:n}=e,[c,d]=(0,r.useState)(n),[m,u]=(0,r.useState)(!1),h=(0,r.useRef)(null);function f(e){d(e),u(!1);let t=document.documentElement,n=function(e){if(!e)return null;let t=i.find(t=>t.id===e);return t?function(e){let t=function(e){let t=e.replace("#","");return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}(e);return{"--accent":o(t),"--accent-soft":o(l(t,255,.32)),"--accent-strong":o(l(t,0,.14))}}(t.accent):null}(e);if(n)for(let[e,a]of Object.entries(n))t.style.setProperty(e,a);else t.style.removeProperty("--accent"),t.style.removeProperty("--accent-soft"),t.style.removeProperty("--accent-strong");fetch("/api/user/theme",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({team:e})}).catch(()=>{})}(0,r.useEffect)(()=>{let e=e=>{h.current&&!h.current.contains(e.target)&&u(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let x=i.find(e=>e.id===c);return(0,a.jsxs)("div",{className:"relative",ref:h,children:[(0,a.jsxs)("button",{onClick:()=>u(e=>!e),"aria-label":"Choose team theme","aria-expanded":m,title:"Team theme",className:"flex items-center gap-1.5 rounded-lg border border-pitch-700 bg-pitch-900 px-2 py-1.5 hover:bg-pitch-800 transition-colors",children:[(0,a.jsx)("span",{className:"w-3.5 h-3.5 rounded-full border border-white/20",style:{backgroundColor:"rgb(var(--accent))"}}),(0,a.jsx)("svg",{className:"w-3 h-3 text-gray-500",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),m&&(0,a.jsxs)("div",{className:"absolute right-0 mt-2 w-60 max-h-80 overflow-y-auto rounded-xl border border-pitch-700 bg-pitch-900 shadow-2xl shadow-black/50 z-50 py-1.5",children:[(0,a.jsx)("p",{className:"px-3 py-1.5 text-[10px] font-bold tracking-[0.2em] text-gray-600 uppercase",children:"Team Theme"}),(0,a.jsxs)("button",{onClick:()=>f(null),className:"w-full flex items-center gap-2.5 px-3 py-2 text-sm hover:bg-pitch-800 transition-colors ".concat(c?"text-gray-400":"text-white"),children:[(0,a.jsx)("span",{className:"w-3.5 h-3.5 rounded-full border border-white/20",style:{backgroundColor:"#fbbf24"}}),"Default (Amber)",!c&&(0,a.jsx)(s.Z,{className:"ml-auto w-4 h-4 text-accent"})]}),i.map(e=>(0,a.jsxs)("button",{onClick:()=>f(e.id),className:"w-full flex items-center gap-2.5 px-3 py-2 text-sm hover:bg-pitch-800 transition-colors ".concat(c===e.id?"text-white":"text-gray-400"),children:[(0,a.jsx)("span",{className:"w-3.5 h-3.5 rounded-full border border-white/20 shrink-0",style:{backgroundColor:e.accent}}),(0,a.jsx)("span",{className:"truncate",children:e.name}),c===e.id&&(0,a.jsx)(s.Z,{className:"ml-auto w-4 h-4 text-accent shrink-0"})]},e.id))]}),(0,a.jsx)("span",{className:"sr-only",children:null!==(t=null==x?void 0:x.name)&&void 0!==t?t:"Default theme"})]})}},7960:function(){}},function(e){e.O(0,[452,972,445,229,971,117,744],function(){return e(e.s=9052)}),_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.