import{P as o,Q as i,R as n}from"./YTYhyFR4.js";const l=n(),p=o({id:"team-store",state:()=>({loadingTeams:!1,teams:[],team:{}}),actions:{async getTeams(){const{data:e,pending:a}=await i(`${l.public.api}/equipos`,{method:"GET",headers:{"Content-Type":"application/json","Allow-Control-Allow-Origin":"*"}},"$Ee6mwRs4Ap");this.loadingTeams=a,e.value?this.teams=e.value.body.sort((s,t)=>s.NOMBRE.localeCompare(t.NOMBRE)):this.teams=[]}}});export{p as u};
