1import{d as b,f as h,r as $,o,g as m,w as x,a as t,h as k,b as f,t as l,u as p,C as w,i as B,j as L,c as d,k as v,F as C,l as j}from"./index-BRlEgfCl.js";import{_ as F}from"./CardStatistic.vue_vue_type_script_setup_true_lang-uxuLH6M4.js";import{_ as R}from"./Layout.vue_vue_type_script_setup_true_lang-Dmg5kEs8.js";import{G as D}from"./PhCaretRight.vue-5huur4RU.js";import{C as E}from"./CountryFlag-DKg-XIs5.js";import"./LocaleSwitcher.vue_vue_type_script_setup_true_lang-BYWN_9xX.js";import"./Logo.vue_vue_type_script_setup_true_lang-BwpF6QV6.js";const I=["href","onClick"],N={class:"flex-grow"},P={class:"font-bebas_neue text-xl"},S={class:"lg:hidden text-gray-400 text-sm"},V={class:"hidden lg:block text-gray-400 text-sm"},z={class:"block"},G=b({__name:"CountryListItem",props:{country:{},teams:{}},setup(g){const c=g,i=h(()=>{var e;return((e=c.teams)==null?void 0:e.length)??0});return(e,u)=>{const r=$("RouterLink");return o(),m(r,{to:{name:p(w).countryDetail,params:{countryCode:e.country.countryCode}},custom:""},{default:x(({href:y,navigate:s})=>[t("a",{href:y,class:"group list-row__link",onClick:k(n=>s(),["prevent"])},[t("div",null,[f(E,{country:e.country.countryCode,size:32,class:"w-9 h-9 rounded object-cover"},null,8,["country"])]),t("div",N,[t("div",P,l(e.$t("country.list.item.title",{order:e.country.id,name:e.country.nameByLocale(e.$i18n.locale)})),1),t("div",S,l(e.$t("country.list.teamsCount",i.value)),1)]),t("div",V,l(e.$t("country.list.teamsCount",i.value)),1),t("div",z,[f(p(D),{weight:"bold",class:"text-lg text-gray-400 group-hover:text-gray-900 transition-colors"})])],8,I)]),_:1},8,["to"])}}}),M={class:"container mx-auto px-4 py-1.5"},T={class:"lg:flex lg:justify-between"},q={class:"font-bebas_neue text-4xl lg:text-5xl mb-1"},A={class:"text-tertiary mb-3 xl:mb-6"},H={class:"mt-6 lg:mt-0 flex gap-6"},J={class:"mt-6"},K={key:0,class:"text-center text-red-400 font-600 text-xl"},O={key:1,class:"card flex flex-col divide-y divide-gray-200"},et=b({__name:"CountryListPage",setup(g){const{t:c}=B(),{countries:i,teams:e,teamsByClubCountryCode:u}=L(),r=h(()=>j(i.filter(s=>{var n;return((n=u[s.countryCode])==null?void 0:n.length)>0}),s=>{var n;return((n=u[s.countryCode])==null?void 0:n.length)??0},"desc")),y=h(()=>[{label:c("country.list.statistics.countries"),count:r.value.length},{label:c("country.list.statistics.teams"),count:e.length}]);return(s,n)=>(o(),m(R,null,{default:x(()=>[t("div",M,[t("div",T,[t("div",null,[t("div",q,l(s.$t("country.list.title")),1),t("div",A,l(s.$t("country.list.subTitle")),1)]),t("div",H,[(o(!0),d(C,null,v(y.value,(a,_)=>(o(),m(F,{key:`statistic-${_}`,label:a.label,count:a.count,class:"grow w-60"},null,8,["label","count"]))),128))])]),t("div",J,[r.value.length?(o(),d("div",O,[(o(!0),d(C,null,v(r.value,(a,_)=>(o(),m(G,{key:`country-${_}`,country:a,teams:p(u)[a.countryCode]},null,8,["country","teams"]))),128))])):(o(),d("div",K,l(s.$t("country.list.noPlaces")),1))])])]),_:1}))}});export{et 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.