module.exports=[18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},42602,(a,b,c)=>{"use strict";b.exports=a.r(18622)},87924,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactJsxRuntime},72131,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].React},35112,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactDOM},65385,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(20810),e=a.i(50601);a.i(97361);var f=a.i(58426),g=a.i(49251),h=a.i(74908),i=a.i(19470),j=a.i(19987);function k({params:a}){let[k,l]=(0,c.useState)([]),{id:m}=(0,c.use)(a),[n,o]=(0,c.useState)(!1),[p,q]=(0,c.useState)("");async function r(){try{let a=await fetch(`https://localhost:7275/api/teams/${m}`),b=await a.json();b.length>0?l(b):(o(!0),q("Invalid Team ID - please try another team from dropdown menu."))}catch(a){console.error("Error fetching team roster: ",a),o(!0),q(a)}}return(0,c.useEffect)(()=>{r()},[m]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.NavBar,{}),(0,b.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100 p-8",style:{marginTop:50},children:(0,b.jsxs)("div",{className:"max-w-6xl mx-auto",children:[n?(0,b.jsx)("div",{className:"flex content-center",children:(0,b.jsx)(h.Card,{sx:{maxWidth:345},children:(0,b.jsx)(j.default,{className:"bg-red-100",children:(0,b.jsxs)(i.Typography,{children:[(0,b.jsx)("b",{children:"ERROR:"})," ",p]})})})}):(0,b.jsx)(b.Fragment,{}),(0,b.jsxs)("div",{className:"bg-white rounded-lg shadow-lg p-6 mb-6",children:[(0,b.jsxs)("h1",{className:"text-4xl",children:[e.teamsMap[parseInt(m)]," Team Roster:"]}),(0,b.jsxs)("table",{className:"w-full",children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{className:"border-b-2 border-gray-200",children:[(0,b.jsx)("th",{className:"text-left py-3 px-4 font-semibold text-gray-700",children:"Name:"}),(0,b.jsx)("th",{className:"text-left py-3 px-4 font-semibold text-gray-700",children:"Position:"})]})}),(0,b.jsx)("tbody",{children:k.map((a,c)=>{var e,f,g;return(0,b.jsxs)("tr",{className:"border-b border-gray-100 hover:bg-gray-50",children:[(0,b.jsxs)("td",{className:"py-3 px-4",children:["[",a.number,"] ",(0,b.jsx)("a",{href:`/player/${a.playerid}`,className:"text-[#0000ee]",children:(e=a.firstname,f=a.usesname,g=a.lastname,`${e} ${e===f?"":`"${f}" `}${g}`)})]}),(0,b.jsx)("td",{className:"py-3 px-4",children:d.positionMap[a.position]})]},c)})})]})]})]})}),(0,b.jsx)(g.Footer,{})]})}a.s(["default",()=>k])}];

//# sourceMappingURL=%5Broot-of-the-server%5D__ad3d529b._.js.map