PageSourceSearch

https://laxallstars.com/assets/TeamProfile-3d73a19f.js

js laxallstars.com collected 2026-10-02 03:15:46 UTC 5,053 bytes, 1 lines download raw bytes

1import{ai as S,r as c,j as e}from"./vendor-1b404ade.js";import{N as i,F as d,S as k,q as t,a as _}from"./index-a2dfbdc1.js";import{C as l,a as n,b as m,c as h}from"./card-79252cd7.js";import{A as g,a as p,b as N}from"./avatar-8d0b5066.js";import{T as C,a as E,b as o,c as x}from"./tabs-df808b8c.js";import{S as y}from"./ShareButton-64e3994e.js";import"./index-2ef1781f.js";const A=({team:a})=>e.jsx("div",{className:"p-6 rounded-lg mb-8",style:{backgroundColor:a.primary_color||"#cccccc"},children:e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsxs(g,{className:"h-24 w-24 border-4 border-white",children:[e.jsx(p,{src:a.logo_url,alt:a.name}),e.jsx(N,{children:a.short_name})]}),e.jsxs("div",{children:[e.jsxs("h1",{className:"text-5xl md:text-6xl lg:text-7xl font-black leading-none tracking-tighter mb-6",children:[e.jsx("span",{className:"block text-foreground transform hover:skew-x-3 transition-transform duration-300 cursor-default animate-text-kinetic",children:"TEAM"}),e.jsx("span",{className:"block text-blue-400 transform hover:skew-x-3 transition-transform duration-300 cursor-default animate-text-kinetic",style:{animationDelay:"0.2s"},children:"PROFILE"})]}),e.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground max-w-4xl mx-auto leading-relaxed font-medium",children:"Explore detailed team information, stats, and performance data."}),e.jsxs("p",{className:"text-lg text-foreground",children:[a.conference," - ",a.division," Division"]}),e.jsx("p",{className:"text-md text-muted-foreground",children:a.location})]})]})}),P=({roster:a})=>e.jsxs(l,{children:[e.jsx(n,{children:e.jsx(m,{children:"Roster"})}),e.jsx(h,{children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:a.map(s=>e.jsx(l,{children:e.jsxs(n,{className:"flex flex-row items-center space-x-4",children:[e.jsxs(g,{children:[e.jsx(p,{src:s.headshot_url}),e.jsx(N,{children:s.name.charAt(0)})]}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold",children:s.name}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[s.position," - ",s.year]})]})]})},s.id))})})]}),L=({schedule:a})=>e.jsxs(l,{children:[e.jsx(n,{children:e.jsx(m,{children:"Schedule"})}),e.jsx(h,{children:e.jsx("ul",{className:"space-y-2",children:a.map(s=>e.jsxs("li",{className:"p-2 rounded-md border",children:[e.jsxs("p",{children:[new Date(s.game_date).toLocaleDateString()," - ",s.home_team_name," vs ",s.away_team_name]}),s.home_score!==null&&e.jsxs("p",{children:["Score: ",s.home_score," - ",s.away_score]})]},s.id))})})]}),F=()=>e.jsxs("div",{className:"container mx-auto p-4",children:[e.jsx(t,{className:"h-40 w-full mb-8"}),e.jsx(t,{className:"h-10 w-1/4 mb-4"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsx(t,{className:"h-64 w-full"}),e.jsx(t,{className:"h-64 w-full"}),e.jsx(t,{className:"h-64 w-full"})]})]});function M(){const[a]=S(),s=a.get("slug"),[r,b]=c.useState(null),[v,j]=c.useState(!0),[u,w]=c.useState(null);return c.useEffect(()=>{if(!s)return;(async()=>{try{j(!0);const T=await(await _.get_team_by_slug({slug:s})).json();b(T)}catch(f){w("Failed to fetch team data."),console.error(f)}finally{j(!1)}})()},[s]),v?e.jsxs("div",{className:"min-h-screen bg-background field-grid",children:[e.jsx(i,{}),e.jsx("main",{className:"pt-[150px]",children:e.jsx(F,{})}),e.jsx(d,{})]}):u?e.jsxs("div",{className:"min-h-screen bg-background field-grid",children:[e.jsx(i,{}),e.jsx("main",{className:"pt-[150px]",children:e.jsx("div",{className:"text-red-500 text-center p-8",children:u})}),e.jsx(d,{})]}):r?e.jsxs("div",{className:"min-h-screen bg-background field-grid",children:[e.jsx(k,{seo:{title:r.name||"Team Profile",description:`Explore the ${r.name} lacrosse team roster, schedule, stats, and performance data.`}}),e.jsx(i,{}),e.jsx("main",{className:"pt-[150px]",children:e.jsxs("div",{className:"container mx-auto p-4",children:[e.jsx(A,{team:r}),e.jsxs(C,{defaultValue:"roster",className:"w-full",children:[e.jsxs(E,{children:[e.jsx(o,{value:"roster",children:"Roster"}),e.jsx(o,{value:"schedule",children:"Schedule"}),e.jsx(o,{value:"stats",children:"Stats"}),e.jsx(o,{value:"news",children:"News"})]}),e.jsx(x,{value:"roster",children:e.jsx(P,{roster:r.roster})}),e.jsx(x,{value:"schedule",children:e.jsx(L,{schedule:r.schedule})}),e.jsx(x,{value:"stats",children:e.jsxs(l,{children:[e.jsx(n,{children:e.jsx(m,{children:"Statistics"})}),e.jsx(h,{children:"Coming soon..."})]})}),e.jsx(x,{value:"news",children:e.jsxs(l,{children:[e.jsx(n,{children:e.jsx(m,{children:"News"})}),e.jsx(h,{children:"Coming soon..."})]})})]})]})}),e.jsx(y,{variant:"floating",title:`${r.name} - ${r.conference} Lacrosse Team`,description:`Check out the ${r.name} lacrosse team roster, schedule, and stats on LaxAllStars`}),e.jsx(d,{})]}):e.jsxs("div",{className:"min-h-screen bg-background field-grid",children:[e.jsx(i,{}),e.jsx("main",{className:"pt-[150px]",children:e.jsx("div",{className:"text-center p-8",children:"Team not found."})}),e.jsx(d,{})]})}
1export{M as default};

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.