1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95187,(e,a,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t={callServer:function(){return o.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}};for(var l in t)Object.defineProperty(r,l,{enumerable:!0,get:t[l]});let o=e.r(32120),n=e.r(92245),s=e.r(35326)},57535,85501,e=>{"use strict";var a=e.i(43476),r=e.i(7670),t=e.i(18566),l=e.i(71645),o=e.i(71793),n=e.i(74527);function s(e,a){if(e.length<=1||!a)return e;let r=[...e].sort((e,a)=>e.name.localeCompare(a.name)),t=r.findIndex(e=>e.name===a);if(-1===t)return e;let l=new Set([r[t-1],r[t],r[t+1]].filter(e=>!!e).map(e=>e.name));return e.filter(e=>l.has(e.name))}e.s(["getActivePageFromPathname",0,function(e){let a=e.split("/").filter(Boolean).pop();return"roster"===a||"schedule"===a||"scores"===a?a:"home"},"getYearsForDropdown",0,s],85501);var i=e.i(77222),c=e.i(73791),d=e.i(40460);function m({programTeams:e,availableYears:h}){let u=(0,t.useSearchParams)(),x=(0,t.useRouter)(),p=(0,t.usePathname)(),{school:f}
1=(0,n.useSchoolStore)(),g=(0,c.getSchoolTimezone)(f),[y,b]=(0,l.useState)(!1),[v,S]=(0,l.useState)(!1),j=(0,d.getSchoolYearFromUrl)(u?.get("year")??null,g),w=(0,d.parseValidTeamQueryIdForSportsRedirect)(u?.get("team")??"")??"",N=h.find(e=>e.name===j)??h[0],C=N?.id??"",$=N?.name??j,P=(0,i.getTeamsForYearDropdown)(e,$,w),T=P.find(e=>e.id===w)?.id??"",k=s(h,$),F=e=>{let a=new URLSearchParams(u?.toString());Object.entries(e).forEach(([e,r])=>{a.set(e,r)}),x.replace(`${p}?${a.toString()}`)};return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)(o.Select,{onValueChange:a=>{let r=h.find(e=>e.id===a);if(!r)return;let t=(0,i.getDefaultTeamForYear)(e,r.name),l={year:(0,d.formatSchoolYearForUrl)(r.name)};t?.id&&(l.team=t.id),F(l)},onOpenChange:S,value:C,children:[(0,a.jsx)(o.SelectTrigger,{"aria-label":"Select school year",className:(0,r.default)("h-10 w-32 bg-zinc-100 text-sm font-medium text-zinc-900 md:w-40",{"rounded-b-none":v}),"data-testid":"team-year-dropdown-trigger",children:(0,a.jsx)(o.SelectValue,{placeholder:"Select year"})}),(0,a.jsx)(o.SelectContent,{position:"popper",className:"-top-[5px] m-0 w-32 rounded-t-none bg-zinc-100 p-0 md:w-40",children:(0,a.jsx)(o.SelectGroup,{children:k.map((e,t)=>(0,a.jsx)(o.SelectItem,{value:e.id,className:(0,r.default)("w-full cursor-pointer",{"border-b border-zinc-200":t!==k.length-1}),"aria-label":e.name,"data-testid":`team-year-dropdown-${t}`,children:(0,d.formatSchoolYearForUrl)(e.name)},e.id))})})]}),(0,a.jsxs)(o.Select,{onValueChange:e=>{F({team:e,year:(0,d.formatSchoolYearForUrl)($)})},onOpenChange:b,value:T,children:[(0,a.jsx)(o.SelectTrigger,{"aria-label":"Select team",className:(0,r.default)("h-10 w-44 bg-zinc-100 text-sm font-medium text-zinc-900 md:w-64",{"rounded-b-none":y}),"data-testid":"team-dropdown-trigger",children:(0,a.jsx)(o.SelectValue,{placeholder:"Select a team"})}),(0,a.jsx)(o.SelectContent,{position:"popper",className:"-top-[5px] m-0 w-44 rounded-t-none bg-zinc-100 p-0 md:w-64",children:(0,a.jsx)(o.SelectGroup,{children:P.map((e,t)=>(0,a.jsx)(o.SelectItem,{value:e.id,className:(0,r.default)("w-full cursor-pointer",{"border-b border-zinc-200":t!==P.length-1}),"aria-label":e.displayName??void 0,"data-testid":`team-dropdown-${t}`,children:e.displayName},e.id))})})]})]})}var h=e.i(93748),u=e.i(17218),x=e.i(29857),p=e.i(67479),f=e.i(45974);e.s(["TeamPageHeaderComponent",0,function({school:e,program:o,programSlug:n,team:s,programTeams:i,availableYears:c,activePage:g="home",showUnidatValuesFlag:y}){let[b,v]=(0,l.useState)(!1),S=(0,x.useStandaloneDisplayMode)(),j=(0,t.useSearchParams)(),w=j?.get("year")??(s?.year?.name?(0,d.formatSchoolYearForUrl)(s.year.name):null),N=s?`?team=${s.id}${w?`&year=${w}`:""}`:w?`?year=${w}
1`:"",C=s?.photoUrl||null,$=(0,p.isColorWhite)(e.secondaryColor),P=function({programSlug:e,teamSearchParam:a}){return[{label:"Home",href:`/sport/${e}${a}`,key:"home"},{label:"Roster",href:`/sport/${e}/roster${a}`,key:"roster"},{label:"Schedule",href:`/sport/${e}/schedule${a}`,key:"schedule"},{label:"Scores",href:`/sport/${e}/scores${a}`,key:"scores"}]}({programSlug:n,teamSearchParam:N});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("header",{className:(0,r.default)("relative flex w-full flex-col items-center justify-center bg-school-primary-300 text-school-primary-contrast",!S&&(C?"xl:h-[630px]":"xl:min-h-80")),children:[S&&(0,a.jsxs)("div",{className:(0,r.default)("flex min-h-20 w-full flex-col items-stretch justify-center gap-2 bg-school-secondary px-4 py-5 text-center text-school-secondary-contrast",{"border-b-[6px] border-school-primary":$}),"data-testid":"pwa-team-page-header",children:[(0,a.jsx)("div",{className:"self-start",children:(0,a.jsx)(h.PwaSmartBackButtonComponent,{})}),(0,a.jsx)("h1",{className:"font-heading text-3xl uppercase",children:o?.name})]}),C?(0,a.jsxs)("div",{className:(0,r.default)("relative z-0 w-full overflow-hidden",{"xl:absolute xl:inset-0":!S}),children:[(0,a.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0 scale-110 bg-cover bg-center blur-2xl",style:{backgroundImage:`url("${C}")`}}),(0,a.jsx)("img",{src:C,alt:`${o.name} banner`,className:(0,r.default)("relative z-10 mx-auto block h-auto max-h-[500px] w-auto max-w-full",{"xl:absolute xl:inset-0 xl:h-full xl:max-h-none xl:w-full xl:object-contain":!S})})]}):(0,a.jsxs)("div",{className:"flex flex-col items-center px-6 py-16",children:[e?.logoUrl&&(0,a.jsx)("img",{src:e?.logoUrl,alt:`${(0,f.getSchoolName)(e,y)} logo banner`,className:"mb-4 w-40"}),(0,a.jsxs)("h1",{className:"text-center font-heading text-3xl",children:[(0,f.getSchoolName)(e,y)," ",o?.name]})]})]}),(0,a.jsxs)("nav",{className:"container relative -top-8 z-20 mx-auto flex-col items-center rounded-lg bg-school-secondary px-4 text-school-secondary-contrast sm:px-8 xl:flex xl:min-h-16 xl:flex-row xl:justify-between","data-testid":"team-page-header-nav",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 pt-4 md:flex-row xl:justify-start xl:gap-8 xl:py-0",children:[(0,a.jsx)("h3",{className:"text-center font-heading text-lg xl:text-2xl","data-testid":"team-name-text",children:o?.name}),(0,a.jsx)(m,{programTeams:i,availableYears:c},`${i.length}-${c.length}-${j?.toString()??""}`)]}),(0,a.jsx)("ul",{className:"flex flex-wrap justify-center gap-2 py-4 font-body text-sm font-medium xl:flex-nowrap xl:justify-start xl:py-0",children:P.map(t=>{let l=(0,r.default)("inline-flex cursor-pointer items-center rounded-2xl p-2",{"bg-core text-core-contrast":g===t.key&&!(0,p.isColorWhite)(e.secondaryColor),"bg-school-primary text-school-primary-contrast":g===t.key&&(0,p.isColorWhite)(e.secondaryColor),"hover:bg-core hover:text-core-contrast":!(0,p.isColorWhite)(e.secondaryColor),"hover:bg-school-primary hover:text-school-primary-contrast":(0,p.isColorWhite)(e.secondaryColor)});return(0,a.jsx)("li",{children:t.href?(0,a.jsx)("a",{href:t.href,className:l,"data-testid":`nav-${t.key}`,children:t.label}):(0,a.jsx)("button",{type:"button",onClick:t.onClick,className:l,"aria-haspopup":"dialog","aria-expanded":"more"===t.key?b:void 0,"aria-controls":"more"===t.key?"more-dialog":void 0,"data-testid":`nav-${t.key}`,children:t.label})},t.key)})})]}),(0,a.jsx)(u.Dialog,{open:b,onOpenChange:v,children:(0,a.jsxs)(u.DialogContent,{className:"w-full max-w-md",id:"more-dialog",children:[(0,a.jsx)(u.DialogHeader,{children:(0,a.jsx)(u.DialogTitle,{children:"More"})}),(0,a.jsx)("ul",{className:"space-y-2",children:[].map(e=>(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:e.href,onClick:()=>v(!1),className:(0,r.default)("block w-full rounded-lg p-3 text-center font-medium transition-colors",{"bg-school-primary text-school-primary-contrast":g===e.key,"text-gray-700 hover:bg-gray-100":g!==e.key}),children:e.label})},e.key))})]})})]})}],57535)},1970,e=>{"use strict";var a=e.i(43476),r=e.i(18566),t=e.i(71645),l=e.i(57535),o=e.i(95187);let n=(0,o.createServerReference)("603bd4aac8edfe8ed58d8163402e7444a498a436ed",o.callServer,void 0,o.findSourceMapURL,"getTeamPageFilterDataAction");var s=e.i(48169),i=e.i(85501),c=e.i(40460);e.s(["TeamPageHeaderShellWrapperComponent",0,function({school:e,programsData:o,programSlug:d,showUnidatValuesFlag:m,initialFilterData:h}){let u=(0,r.useSearchParams)(),x=(0,r.usePathname)(),p=(0,c.parseValidTeamQueryIdForSportsRedirect)(u?.get("team")??"")??"",f=(0,i.getActivePageFromPathname)(x),g=(0,t.useMemo)(()=>(0,s.resolveTeamPageProgram)(o,d,p||void 0),[o,d,p]),[y,b]=(0,t.useState)(h);(0,t.useEffect)(()=>{let a=!1,r=g?.id;return r&&n(r,e.id).then(e=>{a||b(e)}).catch(()=>{}),()=>{a=!0}},[g?.id,e.id,x]),(0,t.useEffect)(()=>{let a=g?.id;if(!a)return()=>void 0;let r=r=>{r.persisted&&n(a,e.id).then(b).catch(()=>void 0)};return window.addEventListener("pageshow",r),()=>{window.removeEventListener("pageshow",r)}},[g?.id,e.id]);let v=(0,t.useMemo)(()=>
1{if(p&&g)return y.programTeams.find(e=>e.id===p)??g.teams?.find(e=>e.id===p)},[y.programTeams,g,p]);return g?(0,a.jsx)(l.TeamPageHeaderComponent,{school:e,program:g,team:v,programSlug:d,programTeams:y.programTeams,availableYears:y.availableYears,activePage:f,showUnidatValuesFlag:m}):(0,a.jsx)(a.Fragment,{})}],1970)}]);
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.