PageSourceSearch

https://qjl.kz/_nuxt/index.5ce33d73.js

js qjl.kz collected 2026-09-25 04:30:16 UTC 6,455 bytes, 1 lines download raw bytes

1import{_ as Y}from"./nuxt-link.7d30672e.js";import{_ as Z}from"./index.5812d372.js";import{_ as j}from"./index.d86e95e5.js";import{u as G}from"./useTranslations.9cacb35e.js";import{d as J,m as F,k as K,u as O}from"./entry.b95e7f8d.js";import{D as tt,r as o,o as et,d as at,X as b,a8 as I,a3 as n,a4 as u,z as h,a5 as C,F as ot,a9 as st,E as L,Z as q,Y as nt,a6 as ct,ab as lt,ac as rt}from"./vendor-forms.dc4a930e.js";import{_ as ut}from"./_plugin-vue_export-helper.c27b6911.js";const it=c=>(lt("data-v-2832d17d"),c=c(),rt(),c),dt={class:"tournament-block"},ht={class:"tournament-block__header"},vt={class:"tournament-block__title"},ft={class:"tournament-block__tour"},_t={class:"tournament-block__body"},mt={class:"tournament-table"},pt={class:"tournament-table__header"},yt=it(()=>n("th",{class:"index"},"№",-1)),Mt={class:"team"},gt={class:"points"},Pt={key:0,class:"index"},kt={key:1,class:"index"},bt={class:"team"},wt=["src","alt"],xt={key:0,class:"current-match__indicator"},St={class:"points"},Tt={class:"tournament-block__footer"},It=tt({__name:"index",props:{index:{default:null},tournamentId:{default:null},pending:{type:Boolean,default:!1},handbookMainTournament:null,handbookTournaments:{default:()=>[]},statsStore:null,showContent:{type:Boolean}},setup(c){const _=c,a=G(),g=o(null),w=o(null),B=J();et(()=>{g.value&&(w.value=g.value.offsetHeight)});const x=at(()=>{var m,p;let v=F("tournament_id");if(!v){const l=(m=F("tournament_ids"))==null?void 0:m.split(",");(l==null?void 0:l.length)===1&&(v=l[0])}let P=v?+v:(p=_.handbookMainTournament)==null?void 0:p.id;if(_.tournamentId&&(P=_.tournamentId),_.handbookTournaments&&Array.isArray(_.handbookTournaments))return _.handbookTournaments.find(l=>(l==null?void 0:l.tournament_id)===P)});return(v,P)=>{var y,i,f,S;const m=Y,p=Z,l=j;return b(),I("div",dt,[n("div",ht,[n("div",vt,[n("span",ft,u((i=(y=h(x))==null?void 0:y.season)==null?void 0:i.title),1),C(" "+u((f=h(x))==null?void 0:f.title),1)])]),c.showContent?(b(),I("div",{key:0,ref_key:"table",ref:g},[n("div",_t,[n("table",mt,[n("tr",pt,[yt,n("th",Mt,u(h(a).team),1),n("th",null,u(h(a).i),1),n("th",null,u(h(a).rM),1),n("th",gt,u(h(a).o),1)]),(b(!0),I(ot,null,st(c.statsStore,(s,k)=>{var T;return b(),I("tr",{key:k},[s.chartPosition?(b(),I("td",Pt,u(s.chartPosition),1)):(b(),I("td",kt,u(k+1),1)),n("td",bt,[L(m,{to:h(B)(`/teams/${(T=s==null?void 0:s.team)==null?void 0:T.slug}`)},{default:q(()=>{var d,N,A;return[n("img",{src:(d=s.team)==null?void 0:d.logo,alt:` club logo ${(N=s.team)==null?void 0:N.title}`,loading:"lazy"},null,8,wt),C(" "+u((A=s.team)==null?void 0:A.title)+" ",1),s.has_current_match?(b(),I("div",xt)):ct("",!0)]}),_:2},1032,["to"])]),n("td",null,u(s.matches),1),n("td",null,u(s.goal_difference),1),n("td",St,u(s.scores),1)])}),128))])]),n("div",Tt,[L(m,{to:{path:h(B)("/tournaments"),query:{tournament:(S=h(x))==null?void 0:S.tournament_id}}},{default:q(()=>[n("span",null,u(h(a).fullTable),1),L(p,{type:"primary-dark",size:"sm"})]),_:1},8,["to"])])],512)):(b(),nt(l,{key:1,"props-height":`${h(w)}px`},null,8,["props-height"]))])}}});const Vt=ut(It,[["__scopeId","data-v-2832d17d"]]),zt=K("matches",()=>{const{$api:c,$services:_}=O(),a=o(!1),g=o({}),w=o({}),B=o({}),x=o({}),v=o({}),P=o({}),m=o([]),p=o([]),l=o({}),y=o([]),i=o(0),f=o(1),S=o(0),s=o(!1),k=o(!1),T=o(!1),d=o(null),N=()=>{a.value=!1,g.value={},w.value={},B.value={},x.value={},v.value={},P.value={},m.value=[],p.value=[],l.value={},y.value=[],i.value=0,f.value=1,S.value=0,s.value=!1,k.value=!1,T.value=!1,d.value=null},A=async e=>{try{a.value=!0,l.value={};const{data:t}=await c.matches.findMatchById(e);return l.value=t,t}catch{console.log("error in fetchMatchById")}finally{a.value=!1}},V=async e=>{try{a.value=!0,g.value={};const{data:t}=await c.matches.findAll(e);g.value=t}catch(t){console.log("error in fetchMainMatches",t)}finally{a.value=!1}},z=async e=>{try{a.value=!0,w.value={},p.value=[];const{data:t}=await c.matches.findMatchProtocol(e),r=_.protocolAdapter.combineEventsByTeamAndMinute(t.events),M=_.protocolAdapter.combineEventsByMinute(t.events);return t.events=r,w.value=t,p.value=M,r}catch{console.log("error in fetchMatchProtocol")}finally{a.value=!1}},D=async e=>{try{a.value=!0;const{data:t}=await c.matches.findMatchProtocolSquad(e);return B.value=t,t}catch{console.log("error in fetchMatchProtocolSquad")}finally{a.value=!1}},H=async e=>{try{a.value=!0;const{data:t}=await c.matches.findMatchProtocolStatistics(e);return x.value=t,t}catch{console.log("error in fetchMatchProtocolStatistics")}finally{a.value=!1}},Q=async e=>{try{a.value=!0,v.value={};const{data:t}=await c.matches.findMatchProtocolMedia(e);v.value=t}catch{console.log("error in fetchProtocolMedia")}finally{a.value=!1}},R=async(e,t)=>{try{a.value=!0;const{data:r}=await c.matches.findMatchProtocolNews(e,t);m.value=r}catch{console.log("error in fetchProtocolNews")}finally{a.value=!1}},U=async e=>{try{a.value=!0,P.value={};const{data:t}=await c.matches.findMatchProtocolFormations(e),r=t;P.value=r.data??t}catch{console.log("error in fetchMatchProtocolFormations")}finally{a.value=!1}},$=async(e,t)=>{if(d.value===e&&(s.value||k.value))return;const r=t===1;if(!(!r&&t<=i.value)&&!(!r&&t>f.value)){r?(s.value=!0,y.value=[],T.value=!1,i.value=0,f.value=1,S.value=0,d.value=e):k.value=!0;try{const{data:M}=await c.matches.findPreviousMeetings(e,t);if(d.value!==e)return;const W=new Set(y.value.map(E=>E.id)),X=M.data.filter(E=>!W.has(E.id));y.value=r?M.data:[...y.value,...X],i.value=M.current_page,f.value=M.last_page,S.value=M.total}catch(M){d.value===e&&(T.value=r,r||(f.value=t-1)),console.log("error in fetchPreviousMeetings",M)}finally{d.value===e&&(s.value=!1,k.value=!1)}}};return{$reset:N,pending:a,mainMatches:g,matchProtocol:w,matchProtocolSquad:B,matchProtocolStatistics:x,matchProtocolMedia:v,matchProtocolFormations:P,matchProtocolNews:m,matchProtocolTimeLineEvents:p,matchById:l,previousMeetings:y,previousMeetingsPage:i,previousMeetingsLastPage:f,previousMeetingsTotal:S,previousMeetingsPending:s,previousMeetingsLoadingMore:k,previousMeetingsError:T,fetch
1MatchProtochol:z,fetchMatchProtocolSquad:D,fetchMainMatches:V,fetchMatchProtocolStatistics:H,fetchProtocolMedia:Q,fetchProtocolNews:R,fetchMatchProtocolFormations:U,fetchMatchById:A,fetchPreviousMeetings:async e=>{d.value===e&&(s.value||i.value>0)||await $(e,1)},fetchNextPreviousMeetingsPage:async()=>{const e=d.value;!e||i.value>=f.value||await $(e,i.value+1)}}});export{Vt as _,zt 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.