PageSourceSearch

https://my.phc.cz/assets/ClubListPage-64BSsjDv.js

js phc.cz collected 2026-10-02 16:20:37 UTC 4,100 bytes, 1 lines download raw bytes

1import{G as F}from"./PhArrowLeft.vue-DzABxcBw.js";import{d as P,i as U,as as O,j as T,A as h,f as r,o as n,g as _,w as p,a as s,b as u,u as b,e as C,t as l,a4 as j,c as x,F as E,k as M,p as g,l as y,x as q,y as N,av as d,r as z,aT as G,aX as X}from"./index-BRlEgfCl.js";import{C as H}from"./CountryFlag-DKg-XIs5.js";import{_ as $}from"./InputSelect.vue_vue_type_script_setup_true_lang-bcEF9xh3.js";import{_ as J}from"./InputString.vue_vue_type_script_setup_true_lang-CKqet2vT.js";import{s as w}from"./string-DoMohzY7.js";import{_ as K}from"./Layout.vue_vue_type_script_setup_true_lang-Dmg5kEs8.js";import{b as Q}from"./LocaleSwitcher.vue_vue_type_script_setup_true_lang-BYWN_9xX.js";import"./InputSelect-DRUejHcA.js";import"./input-BlI6HZWa.js";import"./form-9Rr8qCPh.js";import"./_baseDifference-7KM88ZHO.js";import"./dateTime-HpcSVMQW.js";import"./PhCaretRight.vue-5huur4RU.js";import"./Watcher-DDKFSCyJ.js";import"./Logo.vue_vue_type_script_setup_true_lang-BwpF6QV6.js";const W={class:"container mx-auto px-4 py-1.5"},Y={class:"font-bebas_neue text-4xl lg:text-5xl mb-1"},Z={class:"text-tertiary mb-6"},ee={class:"flex flex-col lg:flex-row gap-4 mb-6"},te={key:0,class:"card flex flex-col divide-y divide-gray-200"},oe={class:"flex items-center gap-3"},ae={class:"font-600"},se={class:"text-tertiary text-sm"},le={class:"flex gap-2"},Ve=P({__name:"ClubListPage",setup(re){const{locale:V,t:f}=U(),{hasRole:B}=O(),{teams:R,countriesByCode:L}=T(),i=h(""),c=h(null),m=h("name"),k=r(()=>{const t=R.map(e=>{var a;return{id:e.clubId,name:e.clubName,countryCode:e.clubCountryCode,countryName:((a=L[e.clubCountryCode])==null?void 0:a.nameByLocale(V.value))??e.clubCountryCode}});return Q(t,"id")}),S=r(()=>{const t=[...new Set(k.value.map(e=>
1e.countryCode).filter(Boolean))];return y(t.map(e=>{var a;return{id:e,label:((a=L[e])==null?void 0:a.nameByLocale(V.value))??e}}),"label")}),I=r(()=>[{id:"name",label:f("dashboard.clubList.sortByName")},{id:"id",label:f("dashboard.clubList.sortById")},{id:"countryName",label:f("dashboard.clubList.sortByCountry")}]),v=r(()=>q([t=>i.value?N(t,e=>w(e.name,i.value)||w(String(e.id),i.value)):t,t=>c.value?N(t,e=>e.countryCode===c.value):t,t=>m.value==="id"?y(t,"id"):m.value==="countryName"?y(t,["countryName","name"]):y(t,"name")])(k.value)),A=r(()=>B([d.competitionSuperReporter,d.superAdmin])),D=r(()=>B([d.clubManager,d.competitionSuperReporter,d.superAdmin]));return(t,e)=>{const a=z("router-link");return n(),_(K,null,{default:p(()=>[s("div",W,[u(a,{to:{name:b(j).dashboard},class:"link inline-flex items-center gap-2 mb-3"},{default:p(()=>[u(b(F)),C(" "+l(t.$t("dashboard.clubList.back")),1)]),_:1},8,["to"]),s("div",Y,l(t.$t("dashboard.clubList.title")),1),s("div",Z,l(t.$t("dashboard.clubList.subTitle",{count:v.value.length})),1),s("div",ee,[u(J,{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=o=>i.value=o),placeholder:t.$t("dashboard.clubList.searchPlaceholder")},null,8,["modelValue","placeholder"]),u($,{modelValue:c.value,"onUpdate:modelValue":e[1]||(e[1]=o=>c.value=o),options:S.value,placeholder:t.$t("dashboard.clubList.countryPlaceholder")},null,8,["modelValue","options","placeholder"]),u($,{modelValue:m.value,"onUpdate:modelValue":e[2]||(e[2]=o=>m.value=o),options:I.value,placeholder:t.$t("dashboard.clubList.sortPlaceholder")},null,8,["modelValue","options","placeholder"])]),v.value.length?(n(),x("div",te,[(n(!0),x(E,null,M(v.value,o=>(n(),x("div",{key:o.id,class:"flex items-center justify-between px-6 py-4"},[s("div",oe,[u(H,{country:o.countryCode,size:24},null,8,["country"]),s("div",null,[s("div",ae,l(o.name),1),s("div",se," #"+l(o.id)+" · "+l(o.countryName),1)])]),s("div",le,[A.value?(n(),_(a,{key:0,to:{name:b(G).clubRoster,params:{id:o.id}},class:"btn-white px-3 py-1.5 text-sm"},{default:p(()=>[C(l(t.$t("dashboard.clubList.roster")),1)]),_:2},1032,["to"])):g("",!0),D.value?(n(),_(a,{key:1,to:{name:b(X).clubDetail,params:{id:o.id}},class:"btn-white px-3 py-1.5 text-sm"},{default:p(()=>[C(l(t.$t("dashboard.clubList.detail")),1)]),_:2},1032,["to"])):g("",!0)])]))),128))])):g("",!0)])]),_:1})}}});
1export{Ve 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.