1import{_ as V}from"./CtdfoRPv.js";import{d as X,ai as z,H,aE as J,aX as M,J as W,o,c as i,a as t,b as q,u as e,aI as h,aN as k,aK as S,F as T,i as I,t as C,h as y,j as B,k as G,K as O}from"./BsvfaeEe.js";import{u as P,F as D}from"./BUL33ilj.js";import"./Dsyp_R0s.js";const Q={class:"bg-white shadow-inset team-nav"},Y={class:"container justify-between mx-auto lg:flex"},Z={class:"flex flex-col p-4 my-auto ml-auto lg:flex-row lg:py-2"},$={class:"flex items-center gap-4"},aa={key:0,class:"w-1/2 lg:w-auto"},ea={class:"flex items-center w-full gap-2 text-lg"},la=["value"],ta={key:1,class:"w-1/2 lg:w-auto"},sa={class:"flex items-center w-full gap-2"},oa={class:"flex items-center gap-1 text-lg grow"},ia=["value"],ra=X({name:"NavTeams",__name:"index",setup(na){const F=z(),L=H(),U=J(),r=G(),b=P(),{activeTab:m,showSeasonSwitcher:x,showCompetitionSwitcher:A,activeTeam:n,season:c,competition:p,teamsTabs:E,fixtures:d,page:f,loading:u}=M(b),{fetchFixtures:w,goToDefaultTab:N}=b,_=async s=>{var v;const a=s.target,g=((v=n.value)==null?void 0:v.seasons[0].seasonID)!==c.value;c.value=a.value,m.value=g&&m.value===D.FIXTURES?D.RESULTS:m.value,d.value=[],f.value=1,u.value=!0;try{await w()}finally{u.value=!1}},j=async s=>{const a=s.target;p.value=a.value,d.value=[],f.value=1,u.value=!0;try{await w()}finally{u.value=!1}},K={autoWidth:!0,gap:24,arrows:!1,pagination:!1,perMove:1,type:"slide",trimSpace:!0,breakpoints:{640:{trimSpace:!1}}},R=async s=>{p.value="",f.value=1,d.value=[],u.value=!0;try{await U.push(s.slug),N(),await w()}finally{u.value=!1}};return W(()=>{var s;L.setChildFriendly(((s=n.value)==null?void 0:s.isChildFriendly)||!1)}),(s,a)=>{const g=V,v=O;return o(),i("div",Q,[t("div",Y,[q(g,{"active-tab":e(F).path,items:e(E),options:K,"show-arrows":!1,onTabUpdated:R},null,8,["active-tab","items"]),t("div",Z,[t("div",$,[e(n)&&e(A)?(o(),i("div",aa,[t("div",ea,[a[3]||(a[3]=t("p",{class:""},"Competition",-1)),h(t("select",{id:"competitions","onUpdate:modelValue":a[0]||(a[0]=l=>S(p)?p.value=l:null),name:"competitions-dropdown",class:"w-full font-bold lg:w-24 text-ellipsis",onChange:j},[a[2]||(a[2]=t("option",{value:""},"All",-1)),(o(!0),i(T,null,I(e(n).competitions,l=>(o(),i("option",{key:l.competitionID,value:l.competitionID},C(l.competitionName),9,la))),128))],544),[[k,e(p)]])])])):y("",!0),e(n)&&e(x)?(o(),i("div",ta,[t("div",sa,[t("div",oa,[a[4]||(a[4]=t("p",{class:""},"Season",-1)),h(t("select",{id:"seasons","onUpdate:modelValue":a[1]||(a[1]=l=>S(c)?c.value=l:null),name:"seasons-dropdown",class:"w-full font-bold",onChange:_},[(o(!0),i(T,null,I(e(n).seasons,l=>(o(),i("option",{key:l.seasonID,value:l.seasonID},C(l.season),9,ia))),128))],544),[[k,e(c)]])])])])):y("",!0)]),e(x)&&e(r).public.sport.football.ecalLink?(o(),B(v,{key:0,content:e(r).public.sport.football.ecalLinkLabel||"Add",icon:"calendar","icon-pack":"navigation",size:"16",style:{},to:e(r).public.sport.football.ecalLink,class:"min-w-[80px] mb-2 mt-4 lg:m-0 lg:ml-2"},null,8,["content","to"])):y("",!0)])])])}}});export{ra 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.