PageSourceSearch

https://qjl.kz/_nuxt/index.58110011.js

js qjl.kz collected 2026-10-02 17:13:34 UTC 6,222 bytes, 1 lines download raw bytes

1import{f as re,s as H,u as ie,c as le,b as ue,d as ce,i as L}from"./entry.1ffe6d42.js";import{_ as de}from"./index.ffb75ca0.js";import{_ as pe}from"./nuxt-link.60c7f835.js";import{D as _e,r as N,d as f,e as S,ad as me,w as R,X as l,a8 as v,a3 as a,a4 as s,z as o,E as fe,Y as y,a6 as C,Z as B,F as ve,a9 as ye,af as ge,aa as xe,ah as be,a5 as ke,a0 as we,ab as Me,ac as Ae}from"./vendor-forms.dc4a930e.js";import{u as Te}from"./useFilterOptions.91570f42.js";import{u as he}from"./useTranslations.c22cd7a7.js";import{_ as Pe}from"./calendar.20ea4896.js";import{_ as Se}from"./index.d86e95e5.js";import{d as w}from"./vendor-dayjs.c5063a37.js";import{S as Ce}from"./index.762bedbb.js";import{_ as Ie}from"./index.a6064f06.js";import{u as Oe}from"./index.92a09037.js";import{u as Ve}from"./index.871c5c28.js";import{u as De}from"./index.f781a138.js";import{_ as Ee}from"./_plugin-vue_export-helper.c27b6911.js";import"./index.1e76a479.js";import"./index.31b8c4a9.js";import"./index.22d43847.js";import"./useScreenBreakpoints.38597835.js";const $e=g=>(Me("data-v-d326f503"),g=g(),Ae(),g),He={class:"cabinet-matches__page"},Le={class:"cabinet-matches__filters"},Ne={class:"datePickerInput"},Re=$e(()=>a("img",{class:"datePickerInput__icon",src:Pe,alt:"Calendar Icon"},null,-1)),Be=["value","onInput","onKeydown"],Fe={key:1,class:"cabinet-table"},je={key:1,class:"protocol-link-disabled"},Ke=_e({__name:"index",async setup(g){var $;let I,O;const u=re(),M=Ve(),{matchCollection:x,pending:F}=H(M),V=De(),{tournamentsCollection:j}=H(V),K=Oe(),{$services:U,$api:z}=ie(),J=U,{locale:Q,t:_}=le();ue({title:`Freedom QJ League – ${_("pageTitles.allMatches")}`});const A=N("upcoming"),X=ce(),D=f(()=>{const t=x.value;if(!t)return[];const n=Array.isArray(t.current)?t.current:[],c=Array.isArray(t.upcoming)?t.upcoming:[],d=Array.isArray(t.past)?t.past:[];return A.value==="upcoming"?[...n,...c].sort((i,e)=>w(i.date).unix()-w(e.date).unix()):[...d].sort((i,e)=>w(e.date).unix()-w(i.date).unix())}),b=S({}),T=S({}),Y=t=>{var n;return X(`/cabinet/tournaments/${(n=t.tournament)==null?void 0:n.id}/matches/${t.id}`)},Z=t=>u.isSA?!0:!!b[t],q=async t=>{var n,c,d;if(!(u.isSA||T[t])&&typeof b[t]!="boolean"){T[t]=!0;try{const{data:i}=await z.cabinetMatches.getMatchProtocolById(t);b[t]=((c=(n=i==null?void 0:i.referees)==null?void 0:n.main_referee)==null?void 0:c.id)===((d=u.user)==null?void 0:d.id)}catch{b[t]=!1}finally{T[t]=!1}}},G=f(()=>{var t,n,c,d,i,e;return[{id:2,value:"upcoming",title:r.value.nextMatches,count:(((n=(t=x.value)==null?void 0:t.upcoming)==null?void 0:n.length)??0)+(((d=(c=x.value)==null?void 0:c.current)==null?void 0:d.length)??0)},{id:3,value:"past",title:r.value.finished,count:(e=(i=x.value)==null?void 0:i.past)==null?void 0:e.length}]});[I,O]=me(()=>Promise.all([V.fetchTournaments(),K.fetchHandbookTournaments()])),await I,O();const W=f(()=>{const t=Object.values(j.value||{}).flat();return Array.from(new Set(t.map(n=>n.id)))}),p=S({referee_id:(($=u==null?void 0:u.user)==null?void 0:$.id)||null,"tournament_ids[]":W.value,match_date:"",match_viewed:null}),E=Te(),ee=f(()=>[{match_viewed:1,title:r.value.seen},{match_viewed:0,title:r.value.unseen},{match_viewed:null,title:r.value.all}]),h=f(()=>u.isReferee||u.isInspector),te=f(()=>({backup_referee:_("referees.backup_referee"),first_assistant:_("referees.first_assistant"),delegate:_("referees.delegate"),main_referee:_("referees.main_referee"),second_assistant:_("referees.second_assistant"),inspector:_("referees.inspector")})),oe=t=>t?te.value[t]||t:"",ne=t=>(t||[]).map(n=>oe(n)).join(", "),r=he(),se=N({format:"dd.MM.yyyy HH:mm"});M.fetchMatches(p),R(D,t=>{u.isSA||t.forEach(n=>{q(n.id)})},{immediate:!0}),R(p,t=>{M.fetchMatches(t)},{deep:!0,immediate:!0});const ae=we(()=>L(()=>import("./vue-datepicker.58c14901.js"),["./vue-datepicker.58c14901.js","./vendor-forms.dc4a930e.js"],import.meta.url));return L(()=>Promise.resolve({}),["./main.eecdf94c.css"],import.meta.url),(t,n)=>{const c=de,d=pe,i=ge("maska");return l(),v("div",He,[a("h1",null,s(o(r).matches),1),a("div",Le,[fe(Ie,{"active-value":o(A),type:"border-style",color:"red",tabs:o(G),onChangeTab:n[0]||(n[0]=e=>A.value=e)},null,8,["active-value","tabs"]),o(h)?C("",!0):(l(),y(Ce,{key:0,options:o(ee),"binding-value":"match_viewed","default-option":o(p).match_viewed,onChange:n[1]||(n[1]=e=>o(p).match_viewed=e.match_viewed)},null,8,["options","default-option"])),!o(h)&&o(E).length?(l(),y(c,{key:1,value:o(p)["tournament_ids[]"],"onUpdate:value":n[2]||(n[2]=e=>o(p)["tournament_ids[]"]=e),class:"tournaments-multiselect",options:o(E),placeholder:o(r).chooseOption,"append-parent":""}
1,null,8,["value","options","placeholder"])):C("",!0),o(h)?C("",!0):(l(),y(o(ae),{key:2,modelValue:o(p).match_date,"onUpdate:modelValue":n[3]||(n[3]=e=>o(p).match_date=e),"model-type":"yyyy-MM-dd","text-input":"","auto-apply":"",placeholder:"30.12.1999","text-input-options":o(se),format:"dd.MM.yyyy",locale:o(Q),"select-text":o(r).choose,"cancel-text":o(r).cancel},{"dp-input":B(({value:e,onInput:P,onEnter:k})=>[a("div",Ne,[Re,xe(a("input",{type:"text",value:e,"data-maska":"##.##.####",class:"datePickerInput__field",onInput:m=>P(m),onKeydown:be(m=>k(m),["enter"])},null,40,Be),[[i]])])]),_:1},8,["modelValue","text-input-options","locale","select-text","cancel-text"]))]),o(F)?(l(),y(Se,{key:0})):(l(),v("table",Fe,[a("tr",null,[a("th",null,s(o(r).matchDay),1),a("th",null,s(o(r).teams),1),a("th",null,s(o(r).role),1),a("th",null,s(o(r).dateAndTime),1),a("th",null,s(o(r).tournament)+" / "+s(o(r).tournamentCreateSeason),1)]),(l(!0),v(ve,null,ye(o(D),(e,P)=>{var k,m;return l(),v("tr",{key:P},[a("td",null,s((k=e==null?void 0:e.tour)==null?void 0:k.title),1),a("td",null,[Z(e.id)?(l(),y(d,{key:0,to:Y(e)},{default:B(()=>[ke(s(e==null?void 0:e.host)+" — "+s(e==null?void 0:e.guest),1)]),_:2},1032,["to"])):(l(),v("span",je,s(e==null?void 0:e.host)+" — "+s(e==null?void 0:e.guest),1))]),a("td",null,s(ne(e.protocol_roles)),1),a("td",null,s(o(J).dateHelper.getDateTimeForMatch(e==null?void 0:e.date)||""),1),a("td",null,s((m=e==null?void 0:e.tournament)==null?void 0:m.title)+" / "+s(e==null?void 0:e.season),1)])}),128))]))])}}});const ut=Ee(Ke,[["__scopeId","data-v-d326f503"]]);export{ut 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.