import{z as a,ad as e,ae as n,af as s}from"./index-BbBXKozi.js";const i=a.object({id:a.string(),firstName:a.string(),lastName:a.string(),nickname:a.string(),nationality:a.string().nullable(),dateOfBirth:a.coerce.date().nullable(),role:a.string().nullish(),ingameId:a.string().nullish(),team:e.nullish(),dotaMetadata:a.object({role:a.string().nullish(),tiAppearances:a.number().nullish()}).nullish()}),o=a.object({teamA:a.object({id:a.string(),name:a.string(),shortName:a.string(),nationality:a.string(),players:i.array()}),teamB:a.object({id:a.string(),name:a.string(),shortName:a.string(),nationality:a.string(),players:i.array()})});function r(t){return{uuid:t.id,firstName:t.firstName,lastName:t.lastName,nationality:t.nationality??"",nickname:t.nickname,dateOfBirth:t.dateOfBirth||void 0,ingameId:t.ingameId||void 0,playerType:t.role==="player"?"player":t.role==="substitute"?"substitute":t.role==="coach"?"coach":void 0,team:t.team?s(t.team):void 0}}const l=t=>({id:t.uuid,firstName:t.firstName,lastName:t.lastName,nationality:t.nationality,dateOfBirth:t.dateOfBirth,nickname:t.nickname,role:t.playerType==="player"?"player":t.playerType==="substitute"?"substitute":"coach",team:t.team?n(t.team):void 0});export{o as L,i as P,l as a,r as m}; //# sourceMappingURL=player-DDpxJGp8.js.map