1import{k as G,u as M,r as e}from"./entry.1ffe6d42.js";import{u as Y}from"./useScreenBreakpoints.38597835.js";import{d as J}from"./vendor-forms.dc4a930e.js";const ro=G("handbook",()=>{const{$api:n}=M(),r=e(()=>!1,"$LimeBRupna"),d=e(()=>[],"$iWFm71f2O2"),i=e(()=>[],"$6HKaqWRCIq"),h=e(()=>[],"$wGeaJVRBxC"),u=e(()=>[],"$lvyMhdnCIa"),b=e(()=>[],"$hXQB5mTG6f"),k=e(()=>[],"$calE3d85PM"),f=e(()=>[],"$T29iDZFahQ"),c=e(()=>[],"$H8GSNhLbvi"),y=e(()=>[],"$i1H0dCgwXg"),m=e(()=>[],"$YiQPuwn82H"),H=e(()=>[],"$YkkyOU5YbR"),v=e(()=>({}),"$2nQmY8D3Jm"),T=e(()=>[],"$x0cnMfvEiV"),g=e(()=>[],"$Ri9weMfyHt"),C=e(()=>[],"$czJVNV6hhJ"),P=e(()=>[],"$jlwDjKQhMu"),p=e(()=>[],"$xWOSlaPCzT"),l=e(()=>({}),"$BGBLp6QVKg"),B=e(()=>"","$eLLGJjlYFJ"),w=e(()=>[],"$X0ioKQJtnd"),{smallerThanWideTablet:R}=Y(),$=J({get:()=>R.value?b.value.map(o=>({...o,title:o.short_title||o.title})):b.value,set:o=>b.value=o}),S=J({get:()=>R.value?h.value.map(o=>({...o,tournaments:o.tournaments.map(a=>({...a,title:a.short_title||a.title}))})):h.value,set:o=>h.value=o});return{$reset:()=>{r.value=!1,d.value=[],$.value=[],i.value=[],k.value=[],f.value=[],c.value=[],y.value=[],m.value=[],H.value=[],T.value=[],g.value=[],v.value={},C.value={},p.value=[],l.value={},w.value=[],u.value=[]},resetSeasons:()=>{S.value=[]},fetchHandbookClubs:async o=>{try{const{data:a}=await n.handbook.allClubs(o);i.value=a}catch(a){console.log("error in fetchHandbookClubs",a)}},handbookClubs:i,handbookTeams:d,handbookSeasonsByTeamId:u,handbookSeasons:S,handbookTournaments:$,handbookCities:k,handbookCountries:f,handbookTours:c,handbookJudges:y,hanbookStadiums:m,handbookMainTournament:v,handbookPenaltyReasons:H,handbookRemovalCauses:T,handbookUniformColors:g,handbookWorkPositions:C,handbookGoalTypes:P,handbookFormations:p,handbookFormationPositions:l,handbookDatetime:B,handbookPlayersBirthYears:w,fetchHandbookUniformColors:async()=>{try{const{data:o}=await n.handbook.allUniformColors();g.value=o}catch(o){console.log("error in fetchHandbookUniformColors",o)}},fetchHandbookRemovalCauses:async()=>{try{r.value=!0;const{data:o}=await n.handbook.allRemovalCauses();T.value=o}catch(o){console.log("error in fetchHandbookRemovalCauses",o)}finally{r.value=!1}},fetchHandbookPenaltyReasons:async()=>{try{r.value=!0;const{data:o}=await n.handbook.allPenaltyReasons();H.value=o}catch(o){console.log("error in fetchHandbookPenaltyReasons",o)}finally{r.value=!1}},fetchHandbookTeams:async o=>{try{const{data:a}=await n.handbook.allTeams(o);a.sort((t,s)=>{var F;return(F=t==null?void 0:t.title)==null?void 0:F.localeCompare(s==null?void 0:s.title)}),d.value=a}catch(a){console.log("error in fetchHandbookTeams",a)}},fetchHandbookSeasonsByTeamId:async o=>{try{const{data:a}=await n.handbook.allSeasons(o);a.sort((t,s)=>Number(s.title)-Number(t.title)),u.value=a}catch(a){console.log("error in fetchHandbookSeasonsByTeamId",a)}},fetchHandbookSeasons:async o=>{try{const{data:a}=await n.handbook.allSeasons(o);a.sort((t,s)=>Number(s.title)-Number(t.title)),S.value=a}catch(a){console.log("error in fetchHandbookSeasons",a)}},fetchHandbookTournaments:async o=>{try{const{data:a}=await n.handbook.allTournaments(o);return $.value=a,a}catch(a){console.log("error in fetchHandbookTournaments",a)}},fetchHandbookCities:async()=>{try{const{data:o}=await n.handbook.allCities();k.value=o}catch(o){console.log("error in fetchHandbookCities",o)}},fetchHandbookCountries:async()=>{try{const{data:o}=await n.handbook.allCountries();f.value=o}catch(o){console.log("error in fetchHandbookCountries",o)}},fetchHandbookTours:async o=>{try{c.value=[];const{data:a}=await n.handbook.allTours(o);c.value=a}catch(a){console.log("error in fetchHandbookTours",a)}},fetchHandbookJudges:async()=>{try{const{data:o}=await n.handbook.allJudges();y.value=o}catch(o){console.log("error in fetchHandbookJudges",o)}},fecthHanbookStadiums:async()=>{try{const{data:o}=await n.handbook.getStadiums();return m.value=o,o}catch{console.log("error in fetchHandbookStadiums")}},fetchHandbookMainTournament:async()=>{try{const{data:o}=await n.handbook.getMainTournament();return v.value=o,o}catch(o){return console.log("error in fetchMainTournament",o),null}},fetchHandbookWorkPositions:async()=>{try{const{data:o}=await n.handbook.allWorkPosition();C.value=o}catch(o){console.log("error in fetchHandbookWorkPositions",o)}},fetchHandbookGoalTypes:async()=>{try{const{data:o}=await n.handbook.allGoalTypes();P.value=o}catch(o){console.log("error in fetchHandbookGoalTypes",o)}},fetchHandbookDatetime:async()=>{try{const{data:o}=await n.handbook.getDatetime();return B.value=o.datetime,o}catch(o){console.log("error in fetchHandbookDatetime",o)}},fetchHandbookPlayersBirthYears:async o=>{try{const{data:a}=await n.handbook.allPlayersBirthYears(o);w.value=a}catch(a){console.log("error in fetchHandbookPlayersBirthYears",a)}},fetchHandbookFormations:async()=>{try{const{data:o}=await n.handbook.allFormations();p.value=o}catch(o){console.log("error in fetchHandbookFormations",o)}},fetchFormationPositionsByType:async o=>{try{const{data:a}=await n.handbook.formationByType(o);return l.value={...l.value,[o]:a},a}catch(a){return console.log("error in fetchFormationPositionsByType",a),[]}}}});
1export{ro as u};
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.