PageSourceSearch

https://tylekeonhacai.news/wp-content/plugins/wp-sport-advanced/assets/dist/assets/HotMatchesPage-D8Vm31Za.js

js tylekeonhacai.news collected 2026-10-10 00:39:18 UTC 3,480 bytes, 1 lines download raw bytes

1import{u as Y,Q as B,cU as g,db as O,cZ as P,cX as I,di as S}from"./main-Dx4_sGQs.js";import{f as R}from"./client-D-piEjCZ.js";import{c as p,l as k,p as U,D as m,F as n,E as K,u as v,U as l,K as q,O as x,S as c,H as C,a3 as A}from"./_plugin-vue_export-helper-C8YFU58O.js";function b(t={}){var d,h;const a=new URLSearchParams;return t.limit!==void 0&&a.set("limit",String(t.limit)),t.page!==void 0&&a.set("page",String(t.page)),t.fromDate&&a.set("fromDate",t.fromDate),t.toDate&&a.set("toDate",t.toDate),(d=t.statuses)==null||d.forEach(_=>a.append("statuses",_)),t.sortMatchTime&&a.set("sortMatchTime",t.sortMatchTime),t.sortCompetition&&a.set("sortCompetition",t.sortCompetition),(h=t.returnList)==null||h.forEach(_=>a.append("returnList",_)),t.lang&&a.set("lang",t.lang),t.isIncludedRelation!==void 0&&a.set("isIncludedRelation",String(t.isIncludedRelation)),`matches?${a.toString()}`}function F(t){return R(b(t))}const Q=t=>({...Y({queryKey:[B.V3.MATCHES,p(()=>k(t))],queryFn:()=>F(k(t))})}),z={class:"hot-matches"},j={key:1,class:"hot-matches__error"},G={key:2,class:"hot-matches__empty"},X={key:3,class:"hot-matches__list"},Z=["onClick"],J={class:"hot-matches__team"},W={class:"hot-matches__team-name"},ee={class:"hot-matches__info"},te={class:"hot-matches__league"},se={class:"hot-matches__date"},ae={class:"hot-matches__time-badge"},oe={class:"hot-matches__team"},ie={class:"hot-matches__team-name"},ce=3,ne=1,re=U({__name:"HotMatchesPage",setup(t){var T;const{data:a,isLoading:d,isError:h,error:_}=Q({limit:ce,statuses:["UPCOMING"],sortMatchTime:"asc",sortCompetition:"desc",fromDate:g().format(),toDate:g().add(ne,"day").format(),returnList:["info"],isIncludedRelation:!0,lang:"vi"}),y=p(()=>{var e,s;return new Map((((s=(e=a.value)==null?void 0:e.relation)==null?void 0:s.teams)??[]).map(o=>[o.id,o]))}),E=p(()=>{var e,s;return new Map((((s=(e=a.value)==null?void 0:e.relation)==null?void 0:s.competitions)??[]).map(o=>[o.id,o]))}),M=p(()=>{var e;return((e=a.value)==null?void 0:e.matches)??[]}),u=e=>{var s;return y.value.get(((s=e.info)==null?void 0:s.homeTeamId)??"")},f=e=>{var s;return y.value.get(((s=e.info)==null?void 0:s.awayTeamId)??"")},$=e=>{var s,o;return(o=E.value.get(((s=e.info)==null?void 0:s.competitionId)??""))==null?void 0:o.name},r=(e,s)=>{var o;return s?P(s.name,(o=e.info)==null?void 0:o.competitionId):""},H=e=>g(e).format("DD/MM/YYYY"),L=e=>g(e).format("HH:mm"),N=((T=window.wp_sport_advanced)==null?void 0:T.matchSlug)||"/tran-dau",V=e=>{const s=r(e,u(e)),o=r(e,f(e));window.location.href=`${N}/${S(s)}-vs-${S(o)}-${e.id}?view=h2h`};return(e,s)=>{var o;return n(),m("div",z,[v(d)?(n(),K(O,{key:0,rows:3})):v(h)?(n(),m("div",j,l(((o=v(_))==null?void 0:o.message)||"Đã xảy ra lỗi khi tải dữ liệu."),1)):M.value.length?(n(),m("div",X,[(n(!0),m(q,null,x(M.value,i=>{var D,w;return n(),m("div",{key:i.id,class:"hot-matches__row",onClick:me=>V(i)},[c("div",J,[C(I,{src:(D=u(i))==null?void 0:D.logo,alt:r(i,u(i)),"image-size":"sm",class:"hot-matches__logo"},null,8,["src","alt"]),c("span",W,l(r(i,u(i))),1)]),c("div",ee,[c("span",te,l($(i)),1),c("span",se,l(H(i.info.matchTime)),1),c("span",ae,l(L(i.info.matchTime)),1)]),c("div",oe,[C(I,{src:(w=f(i))==null?void 0:w.logo,alt:r(i,f(i)),"image-size":"sm",class:"hot-matches__logo"},null,8,["src","alt"]),c("span",ie,l(r(i,f(i))),1)])],8,Z)}),128))])):(n(),m("div",G," Không có trận đấu hot sắp diễn ra. "))])}}}),he=A(re,[["__scopeId","data-v-e44572a4"]]);export{he 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.