1import{T as P,M as S,H as A}from"./BoRT9BZ7.js";import{_ as U}from"./B3_mcpaN.js";import{_ as j,a as q,b as D,c as E}from"./C33Si3Lm.js";import{_ as O}from"./BiKkI0yT.js";import{_ as R}from"./lOkwJK0A.js";import{a as z}from"./ImOp2hV6.js";import{u as G}from"./DERZRZSK.js";import{g as I,y as x,l as J,o as s,c as n,b as a,w as o,d as u,t as y,a as c,h as r,v as h,F as g,r as v,j as w}from"./JMWCQoRZ.js";import"./DYh49kP5.js";import"./B6QiGLlV.js";import"./7c6gfN-c.js";import"./CPxWZAmg.js";import"./DKJBrHti.js";import"./DKV_Ez61.js";import"./yabuE6bj.js";const K={class:"container grid pb-16"},Q={class:"px-2 md:px-0 py-2 md:py-4"},W={class:"flex flex-wrap items-center gap-2"},X=c("div",{class:"w-full md:w-fit mr-auto"},[c("h3",{class:"font-brand uppercase text-lg md:text-3xl"},"Players")],-1),Y={class:"flex flex-wrap gap-2 w-full md:w-fit"},Z={key:0,class:"px-2 md:px-0 text-foreground/50"},ee={key:1,class:"px-2 md:px-0 text-foreground/50"},te={key:2,class:"grid md:grid-cols-3 lg:grid-cols-4 gap-3 px-2 md:px-0"},he=I({__name:"index",setup(ae){const{players:k,pending:V}=z(),{teams:$,publicTeams:b}=G(),_=x(""),m=x("all");function T(l){return $.value.find(t=>t.team_id===l.team_id)??null}const p=J(()=>{const l=_.value.trim().toLowerCase();return k.value.filter(t=>{const d=!l||t.full_name.toLowerCase().includes(l),i=m.value==="all"||t.team_id===m.value;return d&&i})});return(l,t)=>{const d=P,i=S,N=A,B=U,C=O,L=j,f=q,F=D,H=E,M=R;return s(),n("div",null,[a(N,null,{default:o(()=>[a(d,null,{default:o(()=>[u("Players - "+y(l.$appName),1)]),_:1}),a(i,{name:"keywords",content:l.$keywords},null,8,["content"])]),_:1}),c("div",K,[c("div",Q,[c("div",W,[X,c("div",Y,[a(B,{modelValue:r(_),"onUpdate:modelValue":t[0]||(t[0]=e=>h(_)?_.value=e:null),type:"search",placeholder:"Search players",class:"md:w-[220px]"},null,8,["modelValue"]),a(H,{modelValue:r(m),"onUpdate:modelValue":t[1]||(t[1]=e=>h(m)?m.value=e:null)},{default:o(()=>[a(L,{class:"md:w-[200px]"},{default:o(()=>[a(C,{placeholder:"All clubs"})]),_:1}),a(F,null,{default:o(()=>[a(f,{value:"all"},{default:o(()=>[u("All clubs")]),_:1}),(s(!0),n(g,null,v(r(b),e=>(s(),w(f,{key:e.team_id,value:e.team_id},{default:o(()=>[u(y(e.team_name),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"])])])]),r(V)?(s(),n("p",Z,"Loading playersâ¦")):r(p).length?(s(),n("div",te,[(s(!0),n(g,null,v(r(p),e=>(s(),w(M,{key:e.player_id,player:e,team:T(e),class:"shadow rounded-xl dark:border"},null,8,["player","team"]))),128))])):(s(),n("p",ee," No players match that search. "))])])}}});export{he 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.