PageSourceSearch

https://www.getpromonight.com/_next/static/chunks/app/my-teams/pag…?dpl=dpl_69y1NfgMqfCD7U5AXGwWQaXDhzVU

js getpromonight.com collected 2026-10-02 00:50:33 UTC 47,303 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8502],{381:(e,t,a)=>{"use strict";a.d(t,{StarredTeamsProvider:()=>d,hd:()=>x,sS:()=>o,tj:()=>m});var s=a(5155),r=a(2115),n=a(80);let l="promonight:starred_teams",i="promonight:has_seen_my_teams_intro",o="promonight:show-star-toast",c=(0,r.createContext)(null);function d(e){let{children:t}=e,[a,d]=(0,r.useState)([]),[m,x]=(0,r.useState)(!1),p=(0,r.useRef)(a);(0,r.useEffect)(()=>{p.current=a},[a]),(0,r.useEffect)(()=>{let e=function(){try{let e=window.localStorage.getItem(l);if(!e)return[];let t=JSON.parse(e);if(Array.isArray(t)&&t.every(e=>"string"==typeof e))return t;return window.localStorage.removeItem(l),[]}catch(e){return[]}}();p.current=e,d(e),x(!0)},[]),(0,r.useEffect)(()=>{function e(e){if(e.key===l){if(null==e.newValue){p.current=[],d([]);return}try{let t=JSON.parse(e.newValue);Array.isArray(t)&&t.every(e=>"string"==typeof e)&&(p.current=t,d(t))}catch(e){}}}return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[]);let u=(0,r.useCallback)((e,t,a,s)=>{let r=p.current,c=r.includes(e),m=c?r.filter(t=>t!==e):[...r,e];p.current=m,d(m);try{window.localStorage.setItem(l,JSON.stringify(m))}catch(e){}if((0,n.track)(c?"team_unstarred":"team_starred",{team_slug:e,team_name:t.name,league:t.league,sport:(0,n.normalizeSport)(t.sport),placement:a}),!c&&!(null==s?void 0:s.suppressIntroToast))try{window.localStorage.getItem(i)||(window.localStorage.setItem(i,"1"),window.dispatchEvent(new CustomEvent(o,{detail:{teamName:t.name,placement:a}})))}catch(e){}},[]),h=(0,r.useCallback)(e=>a.includes(e),[a]),g=(0,r.useMemo)(()=>({starred:a,toggleStar:u,isStarred:h,isHydrated:m,count:a.length}),[a,u,h,m]);return(0,s.jsx)(c.Provider,{value:g,children:t})}function m(){let e=(0,r.useContext)(c);if(!e)throw Error("useStarredTeams must be used inside <StarredTeamsProvider>");return e}function x(){return(0,r.useContext)(c)}},2649:(e,t,a)=>{"use strict";a.d(t,{G:()=>r});var s=a(5155);function r(e){let{filled:t,size:a=16,surface:r="light"}=e;return(0,s.jsx)("svg",{width:a,height:a,viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,s.jsx)("path",{d:"M12 2L14.85 8.63L22 9.27L16.5 14.14L18.18 21.02L12 17.27L5.82 21.02L7.5 14.14L2 9.27L9.15 8.63L12 2Z",fill:t?"#FBBF24":"none",stroke:t?"#FBBF24":"dark"===r?"rgba(255,255,255,0.45)":"#000",strokeWidth:"1.5",strokeLinejoin:"round"})})}},4742:(e,t,a)=>{"use strict";a.r(t),a.d(t,{StarToggle:()=>i,StarToggleInline:()=>o});var s=a(5155),r=a(2115),n=a(2649),l=a(381);function i(e){let{teamSlug:t,teamName:a,league:i,sport:o,placement:c,surface:d="light"}=e,{toggleStar:m,isStarred:x,isHydrated:p}=(0,l.tj)(),[u,h]=(0,r.useState)(0);if(!p)return(0,s.jsx)("span",{"aria-hidden":"true",className:"inline-block",style:{width:28,height:28}});let g=x(t);return(0,s.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),m(t,{name:a,league:i,sport:o},c),g||h(e=>e+1)},"aria-label":g?"Unstar ".concat(a):"Star ".concat(a),"aria-pressed":g,className:"inline-flex items-center justify-center rounded-full bg-transparent border-0 cursor-pointer p-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent-red focus-visible:ring-offset-1",style:{width:28,height:28,filter:g?"drop-shadow(0 0 6px rgba(251,191,36,0.45))":void 0},children:(0,s.jsx)("span",{className:u>0?"animate-star-pop":void 0,style:{lineHeight:0},children:(0,s.jsx)(n.G,{filled:g,size:20,surface:d})},u)})}function o(e){let{teamSlug:t,teamName:a,league:r,sport:i,placement:o,size:c=14}=e,{toggleStar:d,isStarred:m,isHydrated:x}=(0,l.tj)(),p=c+6;if(!x)return(0,s.jsx)("span",{"aria-hidden":"true",className:"inline-block",style:{width:p,height:p}});let u=m(t);return(0,s.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),d(t,{name:a,league:r,sport:i},o)},"aria-label":u?"Unstar ".concat(a):"Star ".concat(a),"aria-pressed":u,className:"inline-flex items-center justify-center rounded-sm bg-transparent border-0 cursor-pointer p-0 focus:outline-none focus-visible:ring-1 focus-visible:ring-accent-red",style:{width:p,height:p,lineHeight:0},children:(0,s.jsx)(n.G,{filled:u,size:c,surface:"dark"})})}},6041:(e,t,a)=>{"use strict";a.d(t,{Dt:()=>r,Zx:()=>n,_Y:()=>l,gQ:()=>s});let s={giveaway:"#34d399",theme:"#a78bfa",kids:"#60a5fa",food:"#fb923c"},r={giveaway:"Giveaway",theme:"Theme Night",kids:"Kids",food:"Food Deal"},n=["MLB","NBA","NFL","NHL","MLS","WNBA"],l={MLB:"⚾",NBA:"\uD83C\uDFC0",NFL:"\uD83C\uDFC8",
1NHL:"\uD83C\uDFD2",MLS:"⚽",WNBA:"\uD83C\uDFC0"}},6800:(e,t,a)=>{Promise.resolve().then(a.bind(a,9572))},7586:(e,t,a)=>{"use strict";a.d(t,{b:()=>r});var s=a(5155);function r(e){let{className:t="",tone:a="light"}=e;return(0,s.jsx)("p",{className:"font-mono text-[10px] tracking-[0.08em] ".concat("dark"===a?"text-white/55":"text-text-dim"," leading-relaxed ").concat(t),children:"PromoNight may earn a commission on purchases made through links on this page. Prices and availability are set by the listed partners."})}},8068:(e,t,a)=>{"use strict";a.d(t,{U:()=>r});let s={AZ:["arizona-diamondbacks","phoenix-suns","phoenix-mercury","arizona-cardinals"],CA:["los-angeles-dodgers","san-francisco-giants","san-diego-padres","los-angeles-angels","oakland-athletics","los-angeles-kings","anaheim-ducks","san-jose-sharks","golden-state-warriors","los-angeles-lakers","los-angeles-clippers","sacramento-kings","los-angeles-sparks","golden-state-valkyries","san-francisco-49ers","los-angeles-rams","los-angeles-chargers","la-galaxy","lafc","san-diego-fc","san-jose-earthquakes"],CO:["colorado-rockies","colorado-avalanche","denver-nuggets","denver-broncos","colorado-rapids"],CT:["connecticut-sun"],DC:["washington-nationals","washington-capitals","washington-wizards","washington-mystics","dc-united"],FL:["miami-marlins","tampa-bay-rays","tampa-bay-lightning","florida-panthers","miami-heat","orlando-magic","jacksonville-jaguars","miami-dolphins","tampa-bay-buccaneers","inter-miami","orlando-city"],GA:["atlanta-braves","atlanta-hawks","atlanta-dream","atlanta-falcons","atlanta-united"],IL:["chicago-cubs","chicago-white-sox","chicago-blackhawks","chicago-bulls","chicago-sky","chicago-bears","chicago-fire"],IN:["indiana-pacers","indiana-fever","indianapolis-colts"],KS:["sporting-kansas-city"],LA:["new-orleans-pelicans","new-orleans-saints"],MA:["boston-red-sox","boston-bruins","boston-celtics","new-england-patriots","new-england-revolution"],MD:["baltimore-orioles","baltimore-ravens","washington-commanders"],MI:["detroit-tigers","detroit-red-wings","detroit-pistons","detroit-lions"],MN:["minnesota-twins","minnesota-wild","minnesota-timberwolves","minnesota-lynx","minnesota-vikings","minnesota-united"],MO:["st-louis-cardinals","kansas-city-royals","st-louis-blues","kansas-city-chiefs","st-louis-city-sc"],NC:["carolina-hurricanes","charlotte-hornets","carolina-panthers","charlotte-fc"],NJ:["new-jersey-devils","new-york-giants","new-york-jets","new-york-red-bulls"],NV:["vegas-golden-knights","las-vegas-aces","las-vegas-raiders"],NY:["new-york-yankees","new-york-mets","new-york-rangers","new-york-islanders","buffalo-sabres","new-york-knicks","brooklyn-nets","new-york-liberty","buffalo-bills","new-york-giants","new-york-jets","new-york-city-fc","new-york-red-bulls"],OH:["cincinnati-reds","cleveland-guardians","columbus-blue-jackets","cleveland-cavaliers","cincinnati-bengals","cleveland-browns","columbus-crew","fc-cincinnati"],OK:["oklahoma-city-thunder"],OR:["portland-trail-blazers","portland-timbers"],PA:["philadelphia-phillies","pittsburgh-pirates","philadelphia-flyers","pittsburgh-penguins","philadelphia-76ers","philadelphia-eagles","pittsburgh-steelers","philadelphia-union"],TN:["nashville-predators","memphis-grizzlies","tennessee-titans","nashville-sc"],TX:["houston-astros","texas-rangers","dallas-stars","dallas-mavericks","houston-rockets","san-antonio-spurs","dallas-wings","dallas-cowboys","houston-texans","austin-fc","fc-dallas","houston-dynamo"],UT:["utah-hockey-club","utah-jazz","real-salt-lake"],WA:["seattle-mariners","seattle-kraken","seattle-storm","seattle-seahawks","seattle-sounders"],WI:["milwaukee-brewers","milwaukee-bucks","green-bay-packers"]};function r(e){var t;return e&&null!=(t=s[e.toUpperCase()])?t:[]}},9572:(e,t,a)=>{"use strict";a.d(t,{MyTeamsView:()=>S});var s=a(5155),r=a(2619),n=a.n(r),l=a(2115),i=a(7815),o=a(6041),c=a(381),d=a(4742),m=a(80),x=a(8068),p=a(8428),u=a(6238),h=a(4672);function g(e){let{team:t,surface:a,placement:r,venueSlug:n,size:l="full"}=e;if(!t.fanaticsUrl&&!t.fanaticsPath)return null;let i=(0,u.rA)({team:t,surface:a,venueSlug:n});return(0,s.jsxs)(h.TrackedAffiliateLink,{href:i,partner:"fanatics",teamId:t.id,sport:t.league,surface:a,placement:r,target:"_blank",rel:"noopener noreferrer sponsored",className:"group flex items-center gap-2.5 w-full rounded-[14px] bg-white border-[1.5px] border-[#1A1A1A] ".concat("compact"===l?"px-3 py-2.5":"px-4 py-3.5"," shadow-[0_3px_12px_rgba(26,26,26,0.18)] transition-all hover:-translate-y-0.5 hover:shadow-[0_5px_16px_rgba(26,26,26,0.28)]"),children:[(0,s.jsxs)("span",{className:"relative flex items-center justify-center w-[26px] h-[26px] rounded-md bg-[#1A1A1A] shrink-0",children:[(0,s.jsx)("span",{className:"font-outfit font-black italic text-[16px] text-white",style:{letterSpacing:"-1px"},children:"F"}),(0,s.jsx)("span",{"aria-hidden":"true",className:"absolute -right-[2px] top-1 w-[6px] h-[8px] bg-[#E31837]",style:{clipPath:"pol
1ygon(0 0, 100% 25%, 100% 75%, 0 100%)"}})]}),(0,s.jsx)("span",{className:"font-outfit font-extrabold text-[15px] text-[#1A1A1A]",style:{letterSpacing:"-0.2px"},children:"Fanatics"}),(0,s.jsx)("span",{className:"font-outfit font-semibold text-[14px] text-[#0a0a0a]",children:"Shop Fan Gear"}),(0,s.jsx)("span",{"aria-hidden":"true",className:"ml-auto text-[#E31837] text-[17px] leading-none transition-transform group-hover:translate-x-0.5",children:"→"})]})}var f=a(7646),b=a(1510),j=a(7586);let v=[{name:"Yankees",league:"MLB"},{name:"Twins",league:"MLB"},{name:"Lakers",league:"NBA"},{name:"Wild",league:"NHL"},{name:"Cowboys",league:"NFL"},{name:"LAFC",league:"MLS"}],N="pn:geo:v1";function k(e){return"".concat(e.getFullYear(),"-").concat(String(e.getMonth()+1).padStart(2,"0"),"-").concat(String(e.getDate()).padStart(2,"0"))}function w(e,t){let a=new Date(e);return a.setDate(a.getDate()+t),k(a)}async function y(e){let t=await fetch(e);if(!t.ok)throw Error("status ".concat(t.status));return await t.json()}function S(e){let{teams:t,variant:a="dark"}=e,r="light"===a,{starred:n,isHydrated:o,count:d}=(0,c.tj)(),[x,p]=(0,l.useState)(null),u=(0,l.useMemo)(()=>new Date,[]),h=(0,l.useMemo)(()=>k(u),[u]),g=(0,l.useMemo)(()=>w(u,60),[u]),f=(0,l.useMemo)(()=>d>0?[...n].sort().join(","):"",[n,d]),b=o&&d>0?"/api/my-teams/promos?teams=".concat(f,"&start=").concat(h,"&end=").concat(g):null,{data:j,error:v,isLoading:S}=(0,i.Ay)(b,y,{revalidateOnFocus:!0,dedupingInterval:3e5});(0,l.useEffect)(()=>{let e=function(){try{let e=window.localStorage.getItem(N);if(!e)return null;let t=JSON.parse(e);if("number"!=typeof t.ts||Date.now()-t.ts>864e5)return null;return t}catch(e){return null}}();if(e)return void p(e.region);let t=!1;return fetch("/api/geo-region",{cache:"no-store"}).then(e=>e.ok?e.json():null).then(e=>{var a;if(t)return;let s=null!=(a=null==e?void 0:e.region)?a:null;try{window.localStorage.setItem(N,JSON.stringify({region:s,ts:Date.now()}))}catch(e){}p(s)}).catch(()=>{}),()=>{t=!0}},[]);let _=(0,l.useMemo)(()=>{var e;return o?0===d?"A":S&&!j?"loading":v?"C":(null!=(e=null==j?void 0:j.promos)?e:[]).length>0?"B":"C":null},[o,d,S,v,j]),T=(0,l.useRef)(null);if((0,l.useEffect)(()=>{var e;if(!_||"loading"===_||T.current===_+":"+d)return;T.current=_+":"+d;let t=(null!=(e=null==j?void 0:j.promos)?e:[]).some(e=>e.date===h);(0,m.track)("my_teams_view",{starred_count:d,has_tonight_promo:t,state:_})},[_,d,j,h]),!o)return(0,s.jsx)(C,{light:r});if(0===d)return(0,s.jsx)(M,{teams:t,region:x,light:r});let L=n.map(e=>t.find(t=>t.id===e)).filter(e=>!!e);return"loading"===_?(0,s.jsx)(D,{starredCount:d,light:r}):v||!j?(0,s.jsx)(A,{starredTeams:L,hadError:!0,light:r}):0===j.promos.length?(0,s.jsx)(A,{starredTeams:L,light:r}):(0,s.jsx)(B,{starredTeams:L,promos:j.promos,venues:j.venues,todayYMD:h,light:r})}function _(e){let{subline:t,manage:a=!1}=e;return(0,s.jsxs)("section",{className:"relative overflow-hidden text-white",style:{backgroundColor:"#1d1714"},children:[(0,s.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 z-0 opacity-70",style:{backgroundImage:"radial-gradient(120% 80% at 100% 0%, rgba(211,17,69,0.22) 0%, transparent 60%)"}}),(0,s.jsx)("div",{className:"relative z-10 mx-auto max-w-3xl px-6 pb-12 pt-16 md:pb-14 md:pt-20",children:(0,s.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"font-rd text-[11px] font-semibold uppercase tracking-[0.14em]",style:{color:"#ff5a78"},children:"Your teams"}),(0,s.jsx)("h1",{className:"rd-display mt-1 text-4xl uppercase leading-[0.95] text-white md:text-5xl",children:"Your Teams"}),t]}),a&&(0,s.jsx)(n(),{href:"/teams",className:"mt-2 shrink-0 font-rd text-[11px] uppercase tracking-[0.1em] text-white/55 transition-colors hover:text-white",children:"Manage →"})]})})]})}function C(e){let{light:t=!1}=e;return t?(0,s.jsxs)("div",{"aria-busy":"true",children:[(0,s.jsx)(_,{subline:(0,s.jsx)("div",{className:"mt-4 h-4 w-72 max-w-full animate-pulse rounded bg-white/10"})}),(0,s.jsx)("div",{className:"mx-auto max-w-3xl px-6 pb-20 pt-8",children:(0,s.jsx)("div",{className:"space-y-3",children:[0,1,2].map(e=>(0,s.jsx)("div",{className:"h-16 animate-pulse rounded-2xl bg-rd-card"},e))})})]}):(0,s.jsxs)("div",{className:"pt-28 pb-20 px-6 max-w-3xl mx-auto","aria-busy":"true",children:[(0,s.jsx)("div",{className:"h-3 w-24 bg-bg-card rounded animate-pulse mb-3"}),(0,s.jsx)("div",{className:"h-10 w-60 bg-bg-card rounded animate-pulse mb-3"}),(0,s.jsx)("div",{className:"h-4 w-80 bg-bg-card rounded animate-pulse"})]})}function D(e){let{starredCount:t,light:a=!1}=e;return a?(0,s.jsxs)("div",{"aria-busy":"true",children:[(0,s.jsx)(_,{subline:(0,s.jsxs)("p",{className:"mt-4 font-rd text-[11px] uppercase tracking-[0.12em] text-white/55",children:[t," starred \xb7 Loading your calendar…"]})}),(0,s.jsx)("div",{className:"mx-auto max-w-3xl px-6 pb-20 pt-8",children:(0,s.jsx)("div",{className:"space-y-3",children:[0,1,2,3].map(e=>(0,s.jsx)("div",{className:"h-16 animate-pulse rounded-2xl bg-rd-card"},e))})})]}):(0,s.jsx)("div",{className:"pt-28 pb-20 px-6","aria-busy":"true",children:(0,s.jsxs)("div",{className:"max-w-3xl mx-auto",children:[(0,s.jsx)("h1",{className:"font-outfit font-black text-[32px] tracking-[-0.5px] text-white leading-tight",children:"Your Teams"}),(0,s.jsxs)("p",{className:"font-mono text-[10px] tracking-[1.5px] uppercase text-text-dim mt-2 mb-8",children:[t," starred \xb7 Loading your calendar..."]}),(0,s.jsx)("div",{className:"space-y-3",children:[0,1,2,3].map(e=>(0,s.jsx)("div",{className:"h-16 bg-bg-card rounded-xl animate-pulse"},e))})]})})}function M(e){let{teams:t,region:a,light:r=!1}=e,i=(0,l.useMemo)(()=>(function(e,t){let a=new Map(e.map(e=>[e.id,e])),s=[],r=new Set;for(let e of(0,x.U)(t)){if(s.length>=6)break;let t=a.get(e);t&&!r.has(t.id)&&(s.push(t),r.add(t.id))}if(s.length<6)for(let t of v){if(s.length>=6)break;let a=e.find(e=>e.name===t.name&&e.league===t.league);a&&!r.has(a.id)&&(s.push(a),r.add(a.id))}return s})(t,a),[t,a]);return r?(0,s.jsxs)("div",{children:[(0,s.jsx)(_,{subline:(0,s.jsx)("p",{className:"mt-4 max-w-xl font-rd text-base leading-relaxed text-white/70",children:"One calendar for every promo your teams have coming up."})}),(0,s.jsxs)("div",{className:"mx-auto max-w-3xl px-6 pb-20 pt-8",children:[(0,s.jsx)(T,{light:!0}),(0,s.jsx)("div",{className:"mb-3 mt-8",children:(0,s.jsx)("span",{className:"font-rd text-[11px] font-semibold uppercase tracking-[0.1em] text-rd-ink-faint",children:"Popular teams \xb7 Tap a star to begin"})}),(0,s.jsx)("div",{className:"mb-8 grid grid-cols-2 gap-3 sm:grid-cols-3",children:i.map(e=>(0,s.jsx)(Y,{team:e,light:!0},e.id))}),(0,s.jsxs)(n(),{href:"/teams",className:"block w-full rounded-xl border border-rd-line-strong py-3 text-center font-rd text-[12px] font-semibold uppercase tracking-[0.08em] text-rd-ink-soft transition-colors hover:border-rd-ink hover:text-rd-ink",children:["Browse all ",t.length," teams →"]})]})]}):(0,s.jsx)("div",{className:"pt-28 pb-20 px-6",children:(0,s.jsxs)("div",{className:"max-w-3xl mx-auto",children:[(0,s.jsxs)("div",{className:"mb-8",children:[(0,s.jsx)("h1",{className:"font-outfit font-black text-[32px] tracking-[-0.5px] text-white leading-tight",children:"Your Teams"}),(0,s.jsx)("p",{className:"text-text-secondary text-sm mt-2",children:"One calendar for every promo your teams have coming up."})]}),(0,s.jsx)(T,{}),(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)("span",{className:"font-mono text-[10px] tracking-[1.5px] uppercase text-text-dim",children:"Popular teams \xb7 Tap a star to begin"})}),(0,s.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3 mb-8",children:i.map(e=>(0,s.jsx)(Y,{team:e},e.id))}),(0,s.jsxs)(n(),{href:"/teams",className:"block w-full text-center py-3 rounded-xl border border-border-subtle text-text-secondary text-sm font-mono tracking-[0.08em] uppercase hover:border-border-hover hover:text-white transition-colors",children:["Browse all ",t.length," teams →"]})]})})}function T(e){let{light:t=!1}=e;return t?(0,s.jsx)("div",{className:"rounded-2xl border border-rd-line bg-rd-card px-4 py-4",children:(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(L,{step:"1",icon:"⭐",text:"Star teams from any league",light:!0}),(0,s.jsx)(L,{step:"2",icon:"\uD83D\uDCC5",text:"Their promos land here automatically",light:!0}),(0,s.jsx)(L,{step:"3",icon:"\uD83C\uDF9F️",text:"Plan your night from one place",light:!0})]})}):(0,s.jsx)("div",{className:"rounded-2xl border border-border-subtle px-4 py-4 mb-8",style:{background:"linear-gradient(135deg, rgba(239,68,68,0.06), rgba(255,255,255,0.02))"},children:(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(L,{step:"1",icon:"⭐",text:"Star teams from any league"}),(0,s.jsx)(L,{step:"2",icon:"\uD83D\uDCC5",text:"Their promos land here automatically"}),(0,s.jsx)(L,{step:"3",icon:"\uD83C\uDF9F️",text:"Plan your night from one place"})]})})}function L(e){let{step:t,icon:a,text:r,light:n=!1}=e;return n?(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-rd-cream text-lg",children:a}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"font-rd text-[9px] font-semibold uppercase tracking-[0.12em] text-rd-ink-faint",children:["Step ",t]}),(0,s.jsx)("div",{className:"text-sm text-rd-ink",children:r})]})]}):(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:"flex items-center justify-center w-9 h-9 rounded-lg bg-bg-card text-lg shrink-0",children:a}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:"font-mono text-[9px] tracking-[1.5px] uppercase text-text-dim",children:["Step ",t]}),(0,s.jsx)("div",{className:"text-white text-sm",children:r})]})]})}function Y(e){let{team:t,light:a=!1}=e,r="".concat(t.city," ").concat(t.name);return a?(0,s.jsxs)("article",{className:"relative overflow-hidden rounded-2xl border border-rd-line bg-rd-card",children:[(0,s.jsx)("div",{className:"h-1 w-full",style:{backgroundColor:t.primaryColor},"aria-hidden":"true"}),(0,s.jsxs)("div",{className:"p-3 pr-12",children:[(0,s.jsxs)("div",{className:"mb-1 font-rd text-[9px] uppercase tracking-[0.1em] text-rd-ink-faint",children:[o._Y[t.league]," ",t.league]}),(0,s.jsx)("div",{className:"text-[11px] text-rd-ink-soft",children:t.city}),(0,s.jsx)("div",{className:"font-rd text-[15px] font-bold leading-tight text-rd-ink",children:t.name})]}),(0,s.jsx)("div",{className:"absolute right-2 top-2",children:(0,s.jsx)(d.StarToggle,{teamSlug:t.id,teamName:r,league:t.league,sport:t.sportSlug,placement:"my_teams_featured",surface:"light"})})]}):(0,s.jsxs)("article",{className:"relative bg-bg-card border border-border-subtle rounded-2xl overflow-hidden",children:[(0,s.jsx)("div",{className:"h-[3px]",style:{background:"linear-gradient(90deg, ".concat(t.primaryColor,", ").concat(t.secondaryColor,")")},"aria-hidden":"true"}),(0,s.jsxs)("div",{className:"p-3 pr-12",children:[(0,s.jsxs)("div",{className:"font-mono text-[9px] tracking-[1px] uppercase text-text-dim mb-1",children:[o._Y[t.league]," ",t.league]}),(0,s.jsx)("div",{className:"text-text-secondary text-[11px]",children:t.city}),(0,s.jsx)("div",{className:"font-outfit font-extrabold text-[15px] text-white leading-tight",children:t.name})]}),(0,s.jsx)("div",{className:"absolute top-2 right-2",children:(0,s.jsx)(d.StarToggle,{teamSlug:t.id,teamName:r,league:t.league,sport:t.sportSlug,placement:"my_teams_featured",surface:"dark"})})]})}function A(e){let{starredTeams:t,hadError:a=!1,light:r=!1}=e,l=1===t.length;return r?(0,s.jsxs)("div",{children:[(0,s.jsx)(_,{manage:!0,subline:(0,s.jsxs)("p",{className:"mt-4 font-rd text-[11px] uppercase tracking-[0.12em] text-white/55",children:[t.length," starred \xb7 No promos coming up yet"]})}),(0,s.jsxs)("div",{className:"mx-auto max-w-3xl px-6 pb-20 pt-8",children:[l&&!a&&(0,s.jsxs)("div",{className:"mb-6 inline-flex items-center gap-2 rounded-full border border-[rgba(16,185,129,0.28)] bg-[rgba(16,185,129,0.1)] px-3 py-1.5",children:[(0,s.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-[#10b981]"}),(0,s.jsx)("span",{className:"font-rd text-[11px] text-[#0f8f5f]",children:"1 team starred. Your calendar is building."})]}),a&&(0,s.jsx)("div",{className:"mb-6 rounded-2xl border border-[rgba(211,17,69,0.25)] bg-[rgba(211,17,69,0.06)] p-4",children:(0,s.jsx)("p",{className:"text-sm text-rd-red",children:"Couldn't load your promos right now. Refresh to try again."})}),(0,s.jsx)("div",{className:"mb-8 rounded-2xl border border-rd-line bg-rd-card p-5",children:(0,s.jsx)("p",{className:"text-sm leading-relaxed text-rd-ink-soft",children:"Nothing in the next 60 days. Your teams are tracked and the calendar will populate the moment promos are announced."})}),(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)("span",{className:"font-rd text-[11px] font-semibold uppercase tracking-[0.1em] text-rd-ink-faint",children:"Tracking"})}),(0,s.jsx)("div",{className:"mb-8 grid grid-cols-1 gap-3 sm:grid-cols-2",children:t.map(e=>(0,s.jsx)(I,{team:e,light:!0},e.id))}),(0,s.jsx)(n(),{href:"/teams",className:"block w-full rounded-xl border border-rd-line-strong py-3 text-center font-rd text-[12px] font-semibold uppercase tracking-[0.08em] text-rd-ink-soft transition-colors hover:border-rd-ink hover:text-rd-ink",children:"Browse other teams →"})]})]}):(0,s.jsx)("div",{className:"pt-28 pb-20 px-6",children:(0,s.jsxs)("div",{className:"max-w-3xl mx-auto",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between mb-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"font-outfit font-black text-[32px] tracking-[-0.5px] text-white leading-tight",children:"Your Teams"}),(0,s.jsxs)("p",{className:"font-mono text-[10px] tracking-[1.5px] uppercase text-text-dim mt-2",children:[t.length," starred \xb7 No promos coming up yet"]})]}),(0,s.jsx)(n(),{href:"/teams",className:"font-mono text-[10px] tracking-[1.5px] uppercase text-text-secondary hover:text-white transition-colors mt-2",children:"Manage →"})]}),l&&!a&&(0,s.jsxs)("div",{className:"mb-6 inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-[rgba(52,211,153,0.08)] border border-[rgba(52,211,153,0.25)]",children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[#34d399]"}),(0,s.jsx)("span",{className:"text-[#34d399] text-[11px] font-mono",children:"1 team starred. Your calendar is building."})]}),a&&(0,s.jsx)("div",{className:"mb-6 rounded-2xl border border-accent-red-border bg-accent-red-bg p-4",children:(0,s.jsx)("p",{className:"text-accent-red text-sm",children:"Couldn't load your promos right now. Refresh to try again."})}),(0,s.jsx)("div",{className:"rounded-2xl border border-border-subtle bg-bg-card p-5 mb-8",children:(0,s.jsx)("p",{className:"text-text-secondary text-sm leading-relaxed",children:"Nothing in the next 60 days. Your teams are tracked and the calendar will populate the moment promos are announced."})}),(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)("span",{className:"font-mono text-[10px] tracking-[1.5px] uppercase text-text-dim",children:"Tracking"})}),(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-8",children:t.map(e=>(0,s.jsx)(I,{team:e},e.id))}),(0,s.jsx)(n(),{href:"/teams",className:"block w-full text-center py-3 rounded-xl border border-border-subtle text-text-secondary text-sm font-mono tracking-[0.08em] uppercase hover:border-border-hover hover:text-white transition-colors",children:"Browse other teams →"})]})})}function I(e){let{team:t,light:a=!1}=e,r="".concat(t.city," ").concat(t.name);return a?(0,s.jsxs)("article",{className:"relative overflow-hidden rounded-2xl border border-rd-line bg-rd-card",children:[(0,s.jsx)("div",{className:"h-1 w-full",style:{backgroundColor:t.primaryColor},"aria-hidden":"true"}),(0,s.jsxs)("div",{className:"p-3 pr-12",children:[(0,s.jsxs)("div",{className:"mb-1 font-rd text-[9px] uppercase tracking-[0.1em] text-rd-ink-faint",children:[o._Y[t.league]," ",t.league," \xb7 Offseason"]}),(0,s.jsxs)(n(),{href:"/".concat(t.sportSlug,"/").concat(t.id),className:"group block",children:[(0,s.jsx)("div",{className:"text-[11px] text-rd-ink-soft",c
1hildren:t.city}),(0,s.jsx)("div",{className:"font-rd text-[15px] font-bold leading-tight text-rd-ink transition-colors group-hover:text-rd-red",children:t.name})]})]}),(0,s.jsx)("div",{className:"absolute right-2 top-2",children:(0,s.jsx)(d.StarToggle,{teamSlug:t.id,teamName:r,league:t.league,sport:t.sportSlug,placement:"my_teams_featured",surface:"light"})})]}):(0,s.jsxs)("article",{className:"relative bg-bg-card border border-border-subtle rounded-2xl overflow-hidden",children:[(0,s.jsx)("div",{className:"h-[3px]",style:{background:"linear-gradient(90deg, ".concat(t.primaryColor,", ").concat(t.secondaryColor,")")},"aria-hidden":"true"}),(0,s.jsxs)("div",{className:"p-3 pr-12",children:[(0,s.jsxs)("div",{className:"font-mono text-[9px] tracking-[1px] uppercase text-text-dim mb-1",children:[o._Y[t.league]," ",t.league," \xb7 Offseason"]}),(0,s.jsxs)(n(),{href:"/".concat(t.sportSlug,"/").concat(t.id),className:"block group",children:[(0,s.jsx)("div",{className:"text-text-secondary text-[11px]",children:t.city}),(0,s.jsx)("div",{className:"font-outfit font-extrabold text-[15px] text-white leading-tight group-hover:text-white transition-colors",children:t.name})]})]}),(0,s.jsx)("div",{className:"absolute top-2 right-2",children:(0,s.jsx)(d.StarToggle,{teamSlug:t.id,teamName:r,league:t.league,sport:t.sportSlug,placement:"my_teams_featured",surface:"dark"})})]})}function B(e){var t,a,r,i,o,c,d;let{starredTeams:m,promos:x,venues:p,todayYMD:u,light:h=!1}=e,g=(0,l.useMemo)(()=>new Map(m.map(e=>[e.id,e])),[m]),f=(0,l.useMemo)(()=>{var e;return k(new Date((e=new Date).getFullYear(),e.getMonth()+1,0))},[]),b=x.filter(e=>e.date>=u&&e.date<=f).length,j=w(new Date,7),v=x.filter(e=>e.date===u),N=x.filter(e=>e.date>u&&e.date<=j),y=x.filter(e=>e.date>j),S=new Set(x.map(e=>e.teamSlug)),C=m.filter(e=>!S.has(e.id)),D=null!=(t=x[0])?t:null,M=D&&null!=(a=g.get(D.teamSlug))?a:null,T=D&&null!=(r=p[D.teamSlug])?r:null;return h?(0,s.jsxs)("div",{children:[(0,s.jsx)(_,{manage:!0,subline:(0,s.jsxs)("p",{className:"mt-4 font-rd text-[11px] uppercase tracking-[0.12em] text-white/55",children:[m.length," starred \xb7 ",b," upcoming this month"]})}),(0,s.jsxs)("div",{className:"mx-auto max-w-3xl px-6 pb-20 pt-8",children:[(0,s.jsx)(F,{teams:m,light:!0}),v.length>0&&(0,s.jsx)(P,{promo:v[0],team:null!=(i=g.get(v[0].teamSlug))?i:null,venue:null!=(o=p[v[0].teamSlug])?o:null,todayYMD:u,light:!0}),N.length>0&&(0,s.jsx)(z,{promos:N,teamById:g,todayYMD:u,light:!0}),y.length>0&&(0,s.jsx)(H,{promos:y,teamById:g,todayYMD:u,light:!0}),M&&(0,s.jsx)(U,{team:M,venue:T,light:!0}),C.length>0&&(0,s.jsxs)("section",{className:"mb-8",children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)("span",{className:"font-rd text-[11px] font-semibold uppercase tracking-[0.1em] text-rd-ink-faint",children:"Tracking \xb7 Offseason"})}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:C.map(e=>(0,s.jsx)(I,{team:e,light:!0},e.id))})]})]})]}):(0,s.jsx)("div",{className:"pt-28 pb-20 px-6",children:(0,s.jsxs)("div",{className:"max-w-3xl mx-auto",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between mb-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"font-outfit font-black text-[32px] tracking-[-0.5px] text-white leading-tight",children:"Your Teams"}),(0,s.jsxs)("p",{className:"font-mono text-[10px] tracking-[1.5px] uppercase text-text-dim mt-2",children:[m.length," starred \xb7 ",b," upcoming this month"]})]}),(0,s.jsx)(n(),{href:"/teams",className:"font-mono text-[10px] tracking-[1.5px] uppercase text-text-secondary hover:text-white transition-colors mt-2",children:"Manage →"})]}),(0,s.jsx)(F,{teams:m}),v.length>0&&(0,s.jsx)(P,{promo:v[0],team:null!=(c=g.get(v[0].teamSlug))?c:null,venue:null!=(d=p[v[0].teamSlug])?d:null,todayYMD:u}),N.length>0&&(0,s.jsx)(z,{promos:N,teamById:g,todayYMD:u}),y.length>0&&(0,s.jsx)(H,{promos:y,teamById:g,todayYMD:u}),M&&(0,s.jsx)(U,{team:M,venue:T}),C.length>0&&(0,s.jsxs)("section",{className:"mb-8",children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)("span",{className:"font-mono text-[10px] tracking-[1.5px] uppercase text-text-dim",children:"Tracking \xb7 Offseason"})}),(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:C.map(e=>(0,s.jsx)(I,{team:e},e.id))})]})]})})}function F(e){let{teams:t,light:a=!1}=e;return a?(0,s.jsx)("div",{className:"-mx-6 mb-6 overflow-x-auto whitespace-nowrap px-6 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:(0,s.jsx)("div",{className:"inline-flex gap-2",children:t.map(e=>(0,s.jsxs)(n(),{href:"/".concat(e.sportSlug,"/").concat(e.id),className:"inline-flex shrink-0 items-center gap-2 rounded-full px-3 py-1.5",style:{background:"linear-gradient(90deg, ".concat(e.primaryColor,", ").concat(e.secondaryColor,")")},children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"inline-flex h-5 w-5 items-center justify-center rounded-full bg-black/30 text-[10px]",children:o._Y[e.league]}),(0,s.jsx)("span",{className:"font-rd text-[12px] font-bold text-white",children:e.name}),(0,s.jsx)("span",{className:"font-rd text-[8px] tracking-[0.06em] text-white/70",children:e.league})]},e.id))})}):(0,s.jsx)("div",{className:"overflow-x-auto whitespace-nowrap mb-6 -mx-6 px-6 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:(0,s.jsx)("div",{className:"inline-flex gap-2",children:t.map(e=>(0,s.jsxs)(n(),{href:"/".concat(e.sportSlug,"/").concat(e.id),className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full shrink-0",style:{background:"linear-gradient(90deg, ".concat(e.primaryColor,", ").concat(e.secondaryColor,")")},children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"inline-flex items-center justify-center w-5 h-5 rounded-full bg-black/30 text-[10px]",children:o._Y[e.league]}),(0,s.jsx)("span",{className:"font-outfit font-extrabold text-[12px] text-white",children:e.name}),(0,s.jsx)("span",{className:"font-mono text-[8px] text-white/70 tracking-[0.5px]",children:e.league})]},e.id))})})}function O(e,t){(0,m.track)("my_teams_promo_tap",{team_slug:e.teamSlug,promo_id:e.promoId,days_until:Math.max(0,function(e,t){let[a,s,r]=e.split("-").map(Number),[n,l,i]=t.split("-").map(Number),o=Date.UTC(a,s-1,r);return Math.round((Date.UTC(n,l-1,i)-o)/864e5)}(t,e.date))})}
1function P(e){let{promo:t,team:a,todayYMD:r,light:l=!1}=e;if(!a)return null;let i=[t.opponent?"vs ".concat(t.opponent):null,t.time||null].filter(Boolean).join(" \xb7 ");return l?(0,s.jsxs)("section",{className:"mb-6",children:[(0,s.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,s.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-rd-red animate-pulse-dot"}),(0,s.jsx)("span",{className:"font-rd text-[11px] font-semibold uppercase tracking-[0.12em] text-rd-red",children:"Tonight"})]}),(0,s.jsxs)(n(),{href:"/".concat(a.sportSlug,"/").concat(a.id),onClick:()=>O(t,r),className:"group block overflow-hidden rounded-2xl border border-rd-line bg-rd-card transition-colors hover:border-rd-line-strong",children:[(0,s.jsx)("div",{className:"h-1 w-full",style:{backgroundColor:a.primaryColor},"aria-hidden":"true"}),(0,s.jsxs)("div",{className:"p-5",children:[(0,s.jsxs)("div",{className:"mb-4 flex items-start justify-between gap-3",children:[t.highlight?(0,s.jsx)("span",{className:"inline-flex items-center rounded-full bg-rd-red px-2 py-0.5 font-rd text-[9px] font-semibold uppercase tracking-[0.1em] text-white",children:"Hot"}):(0,s.jsx)("span",{}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-rd-line bg-rd-cream px-2 py-0.5 font-rd text-[10px] text-rd-ink-soft",children:[o._Y[a.league]," ",a.abbreviation," \xb7 ",a.name]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:"flex h-[52px] w-[52px] shrink-0 items-center justify-center rounded-2xl text-3xl",style:{backgroundColor:"".concat(a.primaryColor,"1a")},children:t.icon}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("div",{className:"font-rd text-[19px] font-bold leading-tight text-rd-ink",children:t.title}),i&&(0,s.jsx)("div",{className:"mt-1 font-rd text-[10px] tracking-[0.04em] text-rd-ink-soft",children:i})]})]})]})]})]}):(0,s.jsxs)("section",{className:"mb-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-accent-red animate-pulse-dot"}),(0,s.jsx)("span",{className:"font-mono text-[9px] tracking-[1.5px] uppercase text-accent-red",children:"Tonight"})]}),(0,s.jsxs)(n(),{href:"/".concat(a.sportSlug,"/").concat(a.id),onClick:()=>O(t,r),className:"block relative rounded-2xl overflow-hidden border border-border-subtle",style:{background:"linear-gradient(135deg, ".concat(a.primaryColor,", ").concat(a.secondaryColor,")")},children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/45","aria-hidden":"true"}),(0,s.jsxs)("div",{className:"relative p-5",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between mb-4",children:[t.highlight?(0,s.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full bg-accent-red text-white text-[9px] font-mono tracking-[1px] uppercase",children:"Hot"}):(0,s.jsx)("span",{}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full bg-black/40 text-white text-[10px] font-mono tracking-[0.5px]",children:[o._Y[a.league]," ",a.abbreviation," \xb7 ",a.name]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:"flex items-center justify-center w-[52px] h-[52px] rounded-2xl bg-black/45 text-3xl shrink-0",children:t.icon}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("div",{className:"font-outfit font-extrabold text-[19px] text-white leading-tight",children:t.title}),i&&(0,s.jsx)("div",{className:"font-mono text-[10px] tracking-[0.5px] text-white/85 mt-1",children:i})]})]})]})]})]})}function z(e){let{promos:t,teamById:a,todayYMD:r,light:l=!1}=e;return l?(0,s.jsxs)("section",{className:"mb-8",children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)("span",{className:"font-rd text-[11px] font-semibold uppercase tracking-[0.1em] text-rd-ink-faint",children:"This week"})}),(0,s.jsx)("div",{className:"-mx-6 overflow-x-auto whitespace-nowrap px-6 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:(0,s.jsx)("div",{className:"inline-flex gap-3",children:t.map(e=>{let t=a.get(e.teamSlug);return t?(0,s.jsxs)(n(),{href:"/".concat(t.sportSlug,"/").concat(t.id),onClick:()=>O(e,r),className:"group block w-[200px] shrink-0 overflow-hidden rounded-2xl border border-rd-line bg-rd-card transition-colors hover:border-rd-line-strong",children:[(0,s.jsx)("div",{className:"h-1 w-full",style:{backgroundColor:t.primaryColor},"aria-hidden":"true"}),(0,s.jsxs)("div",{className:"p-3",children:[(0,s.jsx)("span",{className:"mb-2 inline-flex items-center rounded-full border border-rd-line bg-rd-cream px-2 py-0.5 font-rd text-[9px] tracking-[0.04em] text-rd-ink-soft",children:G(e.date)}),(0,s.jsx)("div",{"aria-hidden":"true",className:"mb-1.5 text-2xl",children:e.icon}),(0,s.jsx)("div",{className:"whitespace-normal font-rd text-[13px] font-bold leading-tight text-rd-ink",children:e.title}),(0,s.jsxs)("div",{className:"mt-2 flex items-center gap-1.5",children:[(0,s.jsx)("span",{className:"inline-block rounded bg-rd-cream px-1.5 py-0.5 font-rd text-[9px] uppercase tracking-[0.04em] text-rd-ink-soft",children:o.Dt[e.type]}),e.time&&(0,s.jsx)("span",{className:"font-rd text-[9px] text-rd-ink-faint",children:e.time})]})]})]}
1,"".concat(e.teamSlug,"-").concat(e.promoId)):null})})})]}):(0,s.jsxs)("section",{className:"mb-8",children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)("span",{className:"font-mono text-[10px] tracking-[1.5px] uppercase text-text-dim",children:"This week"})}),(0,s.jsx)("div",{className:"overflow-x-auto whitespace-nowrap -mx-6 px-6 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:(0,s.jsx)("div",{className:"inline-flex gap-3",children:t.map(e=>{let t=a.get(e.teamSlug);return t?(0,s.jsxs)(n(),{href:"/".concat(t.sportSlug,"/").concat(t.id),onClick:()=>O(e,r),className:"block relative w-[200px] rounded-2xl overflow-hidden border border-border-subtle shrink-0",style:{background:"linear-gradient(135deg, ".concat(t.primaryColor,", ").concat(t.secondaryColor,")")},children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/45","aria-hidden":"true"}),(0,s.jsxs)("div",{className:"relative p-3",children:[(0,s.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full bg-black/40 text-white text-[9px] font-mono tracking-[0.5px] mb-2",children:G(e.date)}),(0,s.jsx)("div",{"aria-hidden":"true",className:"text-2xl mb-1.5",children:e.icon}),(0,s.jsx)("div",{className:"font-outfit font-extrabold text-[13px] text-white leading-tight whitespace-normal",children:e.title}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mt-2",children:[(0,s.jsx)("span",{className:"inline-block px-1.5 py-0.5 rounded text-[9px] font-mono uppercase tracking-[0.5px] text-white/90",style:{backgroundColor:o.gQ[e.type]+"30"},children:o.Dt[e.type]}),e.time&&(0,s.jsx)("span",{className:"font-mono text-[9px] text-white/70",children:e.time})]})]})]},"".concat(e.teamSlug,"-").concat(e.promoId)):null})})})]})}function E(e){let{row:t,todayYMD:a,light:r=!1}=e,{promo:l,team:i,isNewDate:c,showBorderTop:d}=t;return r?(0,s.jsxs)(n(),{href:"/".concat(i.sportSlug,"/").concat(i.id),onClick:()=>O(l,a),className:"flex items-center gap-3 px-4 py-3 transition-colors hover:bg-rd-cream ".concat(d?"border-t border-rd-line":""),children:[(0,s.jsx)("div",{className:"w-[42px] shrink-0",children:c?(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"font-rd text-[9px] uppercase tracking-[0.08em] text-rd-ink-faint",children:G(l.date).split(" ")[0]}),(0,s.jsx)("div",{className:"rd-numerals text-[18px] leading-none text-rd-ink",children:G(l.date).split(" ")[1]})]}):null}),(0,s.jsx)("div",{"aria-hidden":"true",className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg text-lg",style:{backgroundColor:o.gQ[l.type]+"22"},children:l.icon}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"truncate font-rd text-[14px] font-bold leading-tight text-rd-ink",children:[l.title,l.highlight&&(0,s.jsx)("span",{className:"ml-1.5 inline-flex items-center rounded bg-rd-red/15 px-1 py-0 align-middle font-rd text-[8px] font-semibold uppercase tracking-[0.1em] text-rd-red",children:"Hot"})]}),(0,s.jsxs)("div",{className:"mt-0.5 flex items-center gap-2",children:[(0,s.jsx)("span",{className:"font-rd text-[9px] uppercase tracking-[0.04em] text-rd-ink-soft",children:o.Dt[l.type]}),(0,s.jsxs)("span",{className:"text-[10px] text-rd-ink-faint",children:[i.abbreviation," \xb7 ",i.name]})]})]}),(0,s.jsx)("span",{"aria-hidden":"true",className:"shrink-0 text-lg text-rd-ink-decor",children:"›"})]},"".concat(l.teamSlug,"-").concat(l.promoId)):(0,s.jsxs)(n(),{href:"/".concat(i.sportSlug,"/").concat(i.id),onClick:()=>O(l,a),className:"flex items-center gap-3 px-4 py-3 hover:bg-bg-card-hover transition-colors ".concat(d?"border-t border-border-subtle":""),children:[(0,s.jsx)("div",{className:"w-[42px] shrink-0",children:c?(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"font-mono text-[9px] tracking-[1px] uppercase text-text-dim",children:G(l.date).split(" ")[0]}),(0,s.jsx)("div",{className:"font-outfit font-extrabold text-[18px] text-white leading-none",children:G(l.date).split(" ")[1]})]}):null}),(0,s.jsx)("div",{"aria-hidden":"true",className:"flex items-center justify-center w-9 h-9 rounded-lg shrink-0 text-lg",style:{backgroundColor:o.gQ[l.type]+"22"},children:l.icon}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:"font-outfit font-bold text-[14px] text-white leading-tight truncate",children:[l.title,l.highlight&&(0,s.jsx)("span",{className:"ml-1.5 inline-flex items-center px-1 py-0 rounded bg-accent-red/20 text-accent-red text-[8px] font-mono tracking-[1px] uppercase align-middle",children:"Hot"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-0.5",children:[(0,s.jsx)("span",{className:"font-mono text-[9px] uppercase tracking-[0.5px]",style:{color:o.gQ[l.type]},children:o.Dt[l.type]}),(0,s.jsxs)("span",{className:"text-text-dim text-[10px]",children:[i.abbreviation," \xb7 ",i.name]})]})]}),(0,s.jsx)("span",{"aria-hidden":"true",className:"text-text-dim text-lg shrink-0",children:"›"})]}
1,"".concat(l.teamSlug,"-").concat(l.promoId))}function H(e){let{promos:t,teamById:a,todayYMD:r,light:n=!1}=e,i=(0,l.useMemo)(()=>(function(e,t){let a="",s=[];for(let r of e){let e=t.get(r.teamSlug);if(!e)continue;let n=r.date!==a,l=s.length>0&&n;s.push({promo:r,team:e,isNewDate:n,showBorderTop:l}),a=r.date}return s})(t,a),[t,a]),[o,c]=(0,l.useState)(!1),d=i.length>7,m=d?6:i.length,x=d?i.slice(m):[],p=x.length;return 0===i.length?null:n?(0,s.jsxs)("section",{className:"mb-6",children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)("span",{className:"font-rd text-[11px] font-semibold uppercase tracking-[0.1em] text-rd-ink-faint",children:"Coming up"})}),(0,s.jsxs)("div",{className:"overflow-hidden rounded-2xl border border-rd-line bg-rd-card",children:[i.slice(0,m).map(e=>(0,s.jsx)(E,{row:e,todayYMD:r,light:!0},"".concat(e.promo.teamSlug,"-").concat(e.promo.promoId))),d&&(0,s.jsx)("div",{id:"my-teams-coming-up-overflow",className:"overflow-hidden transition-[max-height] duration-[220ms] ease-out",style:{maxHeight:5e3*!!o},"aria-hidden":!o,children:x.map(e=>(0,s.jsx)(E,{row:e,todayYMD:r,light:!0},"".concat(e.promo.teamSlug,"-").concat(e.promo.promoId)))})]}),d&&(0,s.jsx)("button",{type:"button",onClick:()=>c(e=>!e),"aria-expanded":o,"aria-controls":"my-teams-coming-up-overflow",className:"mt-3 block w-full rounded-xl border border-rd-line bg-rd-card py-3 font-rd text-[13px] font-bold text-rd-ink transition-colors hover:bg-rd-cream",children:o?"Show less ↑":"Show ".concat(p," more →")})]}):(0,s.jsxs)("section",{className:"mb-6",children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)("span",{className:"font-mono text-[10px] tracking-[1.5px] uppercase text-text-dim",children:"Coming up"})}),(0,s.jsxs)("div",{className:"rounded-2xl border border-border-subtle bg-bg-card overflow-hidden",children:[i.slice(0,m).map(e=>(0,s.jsx)(E,{row:e,todayYMD:r},"".concat(e.promo.teamSlug,"-").concat(e.promo.promoId))),d&&(0,s.jsx)("div",{id:"my-teams-coming-up-overflow",className:"overflow-hidden transition-[max-height] duration-[220ms] ease-out",style:{maxHeight:5e3*!!o},"aria-hidden":!o,children:x.map(e=>(0,s.jsx)(E,{row:e,todayYMD:r},"".concat(e.promo.teamSlug,"-").concat(e.promo.promoId)))})]}),d&&(0,s.jsx)("button",{type:"button",onClick:()=>c(e=>!e),"aria-expanded":o,"aria-controls":"my-teams-coming-up-overflow",className:"mt-3 block w-full py-3 rounded-xl border bg-[rgba(255,255,255,0.04)] border-[rgba(255,255,255,0.1)] text-white font-outfit font-bold text-[13px] hover:bg-[rgba(255,255,255,0.07)] transition-colors",children:o?"Show less ↑":"Show ".concat(p," more →")})]})}function U(e){var t;let{team:a,venue:r,light:n=!1}=e,l=null!=(t=null==r?void 0:r.name)?t:null;return n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("section",{className:"mb-6",children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)("span",{className:"font-rd text-[11px] font-semibold uppercase tracking-[0.1em] text-rd-ink-faint",children:"Get tickets"})}),(0,s.jsx)(p.b,{team:a,surface:"web_my_teams",placement:"my_teams_tonight",size:"full"})]}),(0,s.jsxs)("section",{className:"mb-6",children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)("span",{className:"font-rd text-[11px] font-semibold uppercase tracking-[0.1em] text-rd-ink-faint",children:l?"Prepare for the game at ".concat(l):"Prepare for the game"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,s.jsx)(g,{team:a,surface:"web_my_teams",placement:"my_teams_prepare"}),(0,s.jsx)(f.z,{team:a,surface:"web_my_teams",placement:"my_teams_prepare",venue:r}),(0,s.jsx)(b.F,{team:a,surface:"web_my_teams",placement:"my_teams_prepare",venue:r})]}),(0,s.jsx)(j.b,{className:"mt-3 text-center"})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("section",{className:"mb-6",children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)("span",{className:"font-mono text-[9px] tracking-[1.5px] uppercase text-text-dim",children:"Get tickets"})}),(0,s.jsx)(p.b,{team:a,surface:"web_my_teams",placement:"my_teams_tonight",size:"full"})]}),(0,s.jsxs)("section",{className:"mb-6",children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)("span",{className:"font-mono text-[9px] tracking-[1.5px] uppercase text-text-dim",children:l?"Prepare for the game at ".concat(l):"Prepare for the game"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,s.jsx)(g,{team:a,surface:"web_my_teams",placement:"my_teams_prepare"}),(0,s.jsx)(f.z,{team:a,surface:"web_my_teams",placement:"my_teams_prepare",venue:r}),(0,s.jsx)(b.F,{team:a,surface:"web_my_teams",placement:"my_teams_prepare",venue:r})]}),(0,s.jsx)(j.b,{className:"mt-3 text-center"})]})]})}function G(e){let[t,a,s]=e.split("-").map(Number);return new Date(t,a-1,s).toLocaleDateString("en-US",{month:"short",day:"numeric"})}}},e=>{e.O(0,[2619,1356,8070,80,4672,7670,8441,1255,7358],()=>e(e.s=6800)),_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.