1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./LM83iy0O.js","./D2N_0DgN.js","./CA2XS5vc.js","./BNSmWXVL.js","./CE1G-McA.js","./C9PRN-vl.js","./entry.B7GJ3Kmf.css","./Dlf4TaTn.js","./CasueZii.js","./zWiqvHKC.js","./BPfucxcY.js","./CrTYaLnw.js","./DPJf4cMA.js","./Bn8I-5KH.js","./7IqXOVsu.js","./C3JVHm9x.js","./0P297ntF.js","./CciOexYN.js","./4J4ez-eU.js","./BluF4yiU.js","./VbAEQKA7.js","./C64r44ht.js","./B6RqTbnE.js","./BaS7NpLY.js"])))=>i.map(i=>d[i]); 2import{s as ke,a as me,t as We,o as ze,_ as nt,j as Ke,y as Ze,u as ot,b as it,ao as rt,k as Oe,d as lt,l as ct,c as dt,e as mt}from"./CA2XS5vc.js";import{c as ut}from"./DPJf4cMA.js";import{_ as pt}from"./B6CXINza.js";import{_ as Ee}from"./Dlf4TaTn.js";import{_ as gt,a as ht}from"./VwWxt1nw.js";import{d as oe,r as H,a as Re,c as l,l as n,m as c,I as Z,q as t,M as K,_ as e,a9 as z,aa as E,z as o,y as P,A,F as T,J as we,al as xt,w as X,H as ne,K as Ge,af as ft,B as _t,T as He,e as vt,f as bt}from"./BNSmWXVL.js";import{u as kt}from"./C3mUvzsg.js";import{u as Ae}from"./VbAEQKA7.js";import{_ as wt}from"./xhJDBFYd.js";import{_ as yt}from"./Bjn8xmAX.js";import{_ as $t}from"./BkRqwLFH.js";import{_ as Qe}from"./CFHbqMwV.js";import{_ as Ct}from"./zk1teFLg.js";import{_ as St}from"./CDN-LmXf.js";import{d as be}from"./0P297ntF.js";import{r as Lt,C as Je,k as Pt,D as Mt,p as Ve,E as It,F as Ye}from"./CciOexYN.js";import{w as Xe,g as Se,a as Tt,s as Dt,b as De}from"./DExTE_b2.js";import{d as At}from"./b57WjwM7.js";import{u as et}from"./DogMtPth.js";import{a as Bt}from"./CkSh2bz4.js";import{a as jt}from"./Toz6CpEc.js";import{u as zt}from"./DNe9rnc2.js";import{_ as tt}from"./CBMunnfE.js";import{_ as at}from"./DxpbJRT8.js";import{_ as Et}from"./Cl0cMjU7.js";import{u as Ue}from"./7IqXOVsu.js";import{k as Rt}from"./BzJqYAtT.js";import{f as Ft}from"./BIlCB8_d.js";import{u as Nt}from"./ChSvNwKw.js";import{_ as Ot}from"./D58yKZ4T.js";import{u as Ht}from"./BqKz_0wo.js";import{u as Vt}from"./BWcDXqME.js";import{u as Yt,d as Ut}from"./qTSPkKMu.js";import{u as qt}from"./CrTYaLnw.js";import{u as Wt}from"./Dj0Ew4IM.js";import{u as Kt}from"./FTl_NZxF.js";import{_ as Zt}from"./B6z0sz84.js";import"./CE1G-McA.js";import"./C9PRN-vl.js";import"./BaS7NpLY.js";import"./CasueZii.js";import"./CwfOIdin.js";import"./D036l5OJ.js";import"./CPRzABlW.js";import"./BSDX_gmm.js";import"./HgkweOyr.js";import"./zQLGB-An.js";import"./CnFrPRhO.js";import"./B4xUxZny.js";import"./C64r44ht.js";import"./B6RqTbnE.js";import"./4J4ez-eU.js";import"./k6iXd6Eo.js";import"./B_A_SYnc.js";import"./CXoZ439u.js";import"./DeRQItFD.js";import"./D4qx0yk_.js";import"./C3JVHm9x.js";import"./tieoP9al.js";import"./C32ghYUr.js";const Gt={class:"flex h-5 min-w-5 items-center justify-center rounded-circle bg-neutral-100 px-3xs text-paragraph-3-medium text-sub-heading"},Qt={key:0,class:"absolute right-0 top-1 h-3 w-3 rounded-full bg-red-500"},Jt=oe({__name:"league-filter-multiple",props:{withRoute:{type:Boolean},name:{},slugName:{},tier:{}},setup(d){const f=H(!1);Re(()=>{setTimeout(()=>{f.value=!0},300)});const v=H(!1),g=kt(),s=Ae(),{filterLeagues:C,initFilterLeagues:i,popularsSearch:_}=ke(s),{groupBy:w}=ke(g),y=l(()=>C.value?C?.value?.length>0:!1),p=(M,h)=>{v.value=!1,s.setFilteredLeagues(M),g.setGroupSort(h)};return(M,h)=>{const R=Ee,G=gt;return n(),c(Z,null,[t("button",{"aria-label":"open",class:z(["flex h-[32px] min-w-5 select-none items-center justify-between gap-3xs whitespace-nowrap rounded-circle border border-neutral-200 bg-neutral-0 py-[7px] pl-xs pr-3xs text-paragraph-1-regular text-sub-heading transition-colors duration-200 hover:border-blue-400 max-sm:hidden",{"!border-blue-500":e(v)}]),onClick:h[0]||(h[0]=K(F=>v.value=!e(v),["prevent"]))},[E(o(M.$t("home.toolbar.filter.league"))+" ",1),t("span",Gt,[e(f)?(n(),c(Z,{key:1},[E(o(e(C)?.length??e(i)?.length??0),1)],64)):(n(),c(Z,{key:0},[E(" ... ")],64))]),P(R,{src:"/images/icons/common/arrow-down.svg",alt:"loading",class:"mr-1 size-3 stroke-1",loading:"lazy",provider:"local",width:"16",height:"16"})],2),t("button",{"aria-label":"open modal",class:"relative flex h-10 w-10 items-center justify-center rounded-circle bg-neutral-100 text-neutral-800 sm:hidden",onClick:h[1]||(h[1]=K(F=>v.value=!e(v),["prevent"]))},[P(R,{provider:"local",loading:"lazy",class:"size-5",src:"/images/icons/common/setting.svg",alt:"setting",width:"20",height:"20"}),e(y)?(n(),c("div",Qt)):A("",!0)]),e(v)?(n(),T(G,{key:0,"default-filters":e(C)?[...e(C)]:e(C),sort:e(w),"init-leagues":e(i),tier:d.tier,onModalClose:h[2]||(h[2]=F=>v.value=!e(v)),onOnApply:p},null,8,["default-filters","sort","init-leagues","tier"])):A("",!0)],64)}}}),Xt=["aria-label"],ea={class:"flex flex-col gap-3xs rounded-xs border border-neutral-300 bg-white"},ta={class:"flex flex-col gap-[6px] rounded-bl-xs rounded-br-xs bg-[#F0F3F8] pt-[10px] pb-[12px] px-[12px]"},aa={class:"grid gap-2 overflow-hidden sm:grid-cols-[auto_1fr]"},sa={class:"shrink-0 whitespace-nowrap text-paragraph-1-medium text-heading max-sm:hidden"},na={class:"flex items-center justify-between gap-2"},oa={class:"flex items-center gap-2"},ia={class:"text-paragraph-1-medium text-heading max-sm:hidden"},ra=oe({__name:"match",setup(d){const{t:f}=me(),v=Array.from({length:6},(g,s)=>s+1);return(g,s)=>(n(),c("div",{role:"status","aria-busy":"true","aria-label":e(f)("prediction.title")+" - loading...","aria-hidden":"true",class:"grid grid-cols-1 gap-xs"},[(n(!0),c(Z,null,we(e(v),C=>(n(),c("div",{key:C,class:"w-full px-1 pb-1"},[t("div",ea,[s[3]||(s[3]=xt('<div class="flex min-h-[42px] items-center justify-between px-s py-2"><div class="flex items-center gap-3xs">
2<span class="bg-skeleton size-5 shrink-0 rounded-xs"></span><span class="bg-skeleton h-4 w-32 max-w-[8.5rem] shrink-0 rounded-xs sm:w-40 sm:max-w-none"></span><span class="bg-skeleton size-6 shrink-0 rounded-xs"></span></div><div class="flex items-center gap-[10px]"><span class="bg-skeleton h-[26px] w-14 shrink-0 rounded-3xl"></span><span class="bg-skeleton h-[26px] w-16 shrink-0 rounded-full"></span></div></div><div class="grid grid-cols-[1fr_auto_1fr] gap-3xs px-s pb-2 sm:gap-xs"><div class="flex items-center justify-end gap-3xs max-sm:flex-col"><span class="bg-skeleton h-4 w-20 max-w-[8rem] shrink-0 rounded-xs max-sm:order-2 max-sm:max-w-[7rem] max-3xs:max-w-[5rem]"></span><span class="bg-skeleton size-14 shrink-0 rounded-xs max-sm:size-10"></span></div><div class="flex min-w-[90px] flex-col items-center justify-center gap-3xs"><span class="bg-skeleton h-3 w-10 shrink-0 rounded-xs"></span><span class="bg-skeleton h-5 w-12 shrink-0 rounded-xs"></span><span class="bg-skeleton h-3 w-8 shrink-0 rounded-full"></span></div><div class="flex items-center justify-start gap-3xs max-sm:flex-col"><span class="bg-skeleton size-14 shrink-0 rounded-xs max-sm:size-10"></span><span class="bg-skeleton h-4 w-20 max-w-[8rem] shrink-0 rounded-xs max-sm:max-w-[7rem] max-3xs:max-w-[5rem]"></span></div></div>',2)),t("div",ta,[t("div",aa,[t("span",sa,o(e(f)("prediction.title"))+": ",1),s[0]||(s[0]=t("div",{class:"flex w-full flex-col gap-1.5 pt-[4px]"},[t("span",{class:"bg-skeleton h-4 w-full rounded-xs"}),t("span",{class:"bg-skeleton h-4 w-4/5 rounded-xs"})],-1))]),t("div",na,[t("div",oa,[t("span",ia,o(e(f)("prediction.ai_source"))+": ",1),s[1]||(s[1]=t("span",{class:"bg-skeleton h-[26px] w-28 shrink-0 rounded-xs"},null,-1))]),s[2]||(s[2]=t("span",{class:"bg-skeleton h-4 w-28 shrink-0 rounded-xs"},null,-1))])])])]))),128))],8,Xt))}}),la={key:0,class:"flex items-center justify-between p-1 text-grey-0"},ca={class:"flex items-center gap-3xs text-paragraph-3-bold max-sm:text-paragraph-1-bold"},da={class:"text-center text-paragraph-1-medium md:hidden"},ma={class:"flex min-h-[42px] items-center justify-between px-s py-2"},ua={class:"flex items-center justify-center gap-3xs"},pa={key:2,class:"max-w-[340px] truncate text-left text-paragraph-1-regular text-body max-sm:max-w-[8.5rem]"},ga={class:"flex items-center gap-[10px]"},ha={key:0,class:"flex items-center gap-3xs rounded-3xl bg-red-50 px-2 py-1 text-paragraph-3-bold text-highlight"},xa={key:1,class:"flex h-[26px] items-center rounded-full bg-neutral-100 px-2 py-1 text-paragraph-4-regular text-body"},fa={class:"grid grid-cols-[1fr_auto_1fr] gap-3xs px-s pb-2 sm:grid-cols-[1fr_auto_1fr] sm:gap-xs"},_a={class:"flex flex-row items-center justify-end gap-[8px] max-sm:flex-col"},va={class:"max-w-[8rem] truncate text-center text-paragraph-1-medium max-sm:order-2 max-sm:max-w-[7rem] max-3xs:max-w-[5rem]"},ba={key:0,class:"flex min-w-[90px] flex-col justify-center"},ka={class:"text-center"},wa={class:"text-center"},ya={key:0,class:"text-paragraph-1-medium text-yellow-500"},$a={key:1,class:"text-paragraph-1-medium text-red-500"},Ca={key:1,class:"flex min-w-[90px] flex-col justify-center"},Sa={class:"text-center text-paragraph-3-regular text-sub-heading"},La={key:0,class:"hidden text-paragraph-3-medium text-heading md:inline"},Pa={class:"inline-block w-[28px] text-center max-sm:w-[20px]"},Ma={key:0,class:"flex items-center justify-center whitespace-nowrap rounded-3xl bg-green-50 px-[6px] py-[2px] text-paragraph-3-bold text-green-500 max-sm:px-[4px] max-sm:text-[10px]"},Ia={key:1,class:"text-neutral-300"},Ta={class:"inline-block w-[28px] text-center max-sm:w-[20px]"},Da={key:0,class:"mt-1 flex justify-center md:hidden"},Aa={key:1,class:"mt-[-2px] text-center text-paragraph-3-regular text-sub-heading"},Ba={class:"flex flex-row items-center justify-start gap-[8px] max-sm:flex-col"},ja={class:"max-w-[8rem] truncate text-center text-paragraph-1-medium max-sm:max-w-[7rem] max-3xs:max-w-[5rem]"},za={key:0,class:"no-scrollbar flex flex-1 gap-1 overflow-x-auto"},Ea=["aria-label","onClick"],Ra=["src","alt"],Fa={key:0,class:"absolute inset-x-0 bottom-0 h-[2px] bg-red-500"},Na={class:"flex flex-col gap-[6px] rounded-bl-s rounded-br-s bg-[#F7F9FB] px-[12px] pb-[12px] pt-[10px] md:rounded-bl-xs md:rounded-br-xs"},Oa={class:"grid grid-flow-col grid-cols-1 gap-2 sm:grid-cols-[auto_1fr]"},Ha={class:"shrink-0 whitespace-nowrap text-paragraph-1-medium text-heading max-sm:hidden"},Va={key:0,class:"relative z-[2] h-full w-full flex-1"},Ya={class:"inline text-paragraph-1-regular text-sub-heading"},Ua={key:1,class:"flex items-center gap-2xs text-paragraph-1-regular text-sub-heading"},qa={class:"flex items-center justify-between gap-2"},Wa={class:"flex min-w-0 items-center gap-2"},Ka={class:"shrink-0 text-paragraph-1-medium text-heading"},Za={key:0,class:"flex min-w-0 items-center rounded-xs bg-white px-2 py-1"},Ga=["title"],Qa={class:"ml-1 shrink-0 whitespace-nowrap text-paragraph-3-bold"},Ja={class:"text-heading"},Xa={key:1,class:"text-paragraph-1-medium text-heading"},es={class:"max-sm:hidden"},ts={class:"sm:hidden"},as=oe({__name:"index",props:{prediction:{},modelPredictions:{default:()=>[]},seasonComponent:{}},setup(d){const f=H(null),v=H(!1),g=()=>{const a=f.value;a&&(v.value=a.scrollHeight>a.clientHeight)};Re(()=>{g()});const{t:s,locale:C}=me(),i=d,_=[{id:"1",label:"Tactix",icon:"/images/ai-profile/icon1.svg",logoWidth:22,logoHeight:22,crop:!1},{id:"2",label:"PitchIQ",icon:"/images/ai-profile/icon2.svg",logoWidth:22,logoHeight:20,crop:!1},{id:"3",label:"Optix",icon:"/images/ai-profile/icon3.svg",logoWidth:21,logoHeight:20,crop:!1},{id:"4",label:"FootAI",icon:"/images/ai-profile/icon4.svg",logoWidth:21,logoHeight:22,crop:!1}],w=a=>
2{if(!a.api_data)return a;try{const b=typeof a.api_data=="string"?JSON.parse(a.api_data):a.api_data;return{...a,...b,id:a.id,ai_id:a.ai_id??b.ai_id,ai_name:a.ai_name??b.ai_name,agent_name:a.agent_name??b.agent_name}}catch{return a}},y=l(()=>Xe(i.modelPredictions.length?i.modelPredictions:[i.prediction]).map(w)),p=H(_[0].id),M=l(()=>Se(i.prediction)),h=l(()=>Tt(y.value,M.value,_.map(a=>a.id))),R=l(()=>_.filter(a=>h.value.has(a.id))),G=a=>h.value.has(a),F=a=>{G(a)&&(p.value=a)},B=l(()=>h.value.get(p.value)||y.value[0]||i.prediction),ie=l(()=>Dt(h.value));X(R,a=>{!a.length||G(p.value)||(p.value=a[0].id)},{immediate:!0}),X(()=>B.value.id,()=>{_t(()=>g())}),X(()=>i.prediction,()=>{i.prediction&&g()});const{displayStatus:ue}=jt({eventId:()=>i.prediction.linked_match,status:()=>i.prediction.linked_match_data.sport_event_status,startTime:()=>i.prediction.linked_match_data.start_time||i.prediction.start_time,homeName:()=>i.prediction.linked_match_data.competitors?.[0]?.name_vi||i.prediction.linked_match_data.competitors?.[0]?.name,awayName:()=>i.prediction.linked_match_data.competitors?.[1]?.name_vi||i.prediction.linked_match_data.competitors?.[1]?.name,poll:!0}),I=l(()=>ue.value),N=l(()=>I.value?.status==="live"),Q=l(()=>I.value?.status==="ended"),L=l(()=>I.value?.status==="postponed"),D=l(()=>I.value?.status==="cancelled"),V=l(()=>I.value?.status==="not_started"),O=l(()=>{if(!Q.value||!I.value?.period_scores)return"";const a=I.value.period_scores.find(m=>m.type==="regular_period"&&m.number===1)||I.value.period_scores[0];return a?`${a.home_score}-${a.away_score}`:""}),pe=l(()=>N.value&&I.value?.match_status==="penalties"),re=l(()=>{if(!I.value?.period_scores)return null;const a=I.value.period_scores.find(m=>m.type==="penalties");return a?`Pen (${a.home_score}-${a.away_score})`:null}),le=l(()=>re.value?re.value:I.value?.match_status==="aet"||I.value?.status==="aet"||I.value?.period_scores?.some(m=>m.type==="overtime")?"AET":"FT"),ae=a=>Number(a?.split(":")[0]??0),Y=a=>{if(a.status!=="live"||!(a.match_status==="1st_half"?"first-half":a.match_status==="2nd_half"?"second-half":a.match_status==="1st_extra"?"first-extra-time":a.match_status==="2nd_extra"?"second-extra-time":""))return"";const b=a.clock&&a.clock.stoppage_time_played?ae(a.clock.stoppage_time_played):0,S=ae(a.clock?.played??"");return S?b>0?`${S} + ${b}'`:`${S}'`:""},Le=l(()=>{if(!et().blockLiveStream)return Lt({matchId:i.prediction.linked_match,competitorAway:i.prediction.linked_match_data.competitors?.[1]?.name,competitorHome:i.prediction.linked_match_data.competitors?.[0]?.name,date:At(be(i.prediction.start_time))})}),ge=l(()=>`${Je({linkedMatch:B.value.linked_match,competitorAway:i.prediction.linked_match_data.competitors?.[1]?.name,competitorHome:i.prediction.linked_match_data.competitors?.[0]?.name,date:be(i.prediction.start_time).format("DD-MM-YYYY")})}?ai=${p.value}`),ee=a=>a.replace(/-?\d+(\.\d+)?/g,m=>Number(m)===0?"0":m),U=l(()=>{const a=B.value.predict_result?.trim()||"";if(!a)return{name:"",odd:"",handicap:"",rate:"",isZero:!1};const m=a.indexOf("(");let b="",S="";if(m>=0)b=a.slice(0,m).trim(),S=ee(a.slice(m).trim());
2else{const k=a.split(" ");S=ee(k.pop()||""),b=k.join(" ")}let q=S,r="";if(S.includes("@")){const k=S.split("@");q=k[0].trim().replace(/\(/g,"").replace(/\)/g,""),r=("@"+k[1]).replace(/\(/g,"").replace(/\)/g,"")}else q=q.replace(/\(/g,"").replace(/\)/g,"");return{name:b,odd:S,handicap:q,rate:r,isZero:q==="0"}}),Pe=["dá»± Äoán","prediction"],Be=a=>{const m=a.toLocaleLowerCase("vi");return Pe.reduce((b,S)=>{const q=m.lastIndexOf(S);return q>b?q:b},-1)},Me=a=>{const m=String(a||"").trim();if(!m)return"";const b=m.replace(/<br\s*\/?>/gi," ").replace(/<\/(p|div|li|h\d|tr|td|blockquote)>/gi," ").replace(/<(p|div|li|h\d|tr|td|blockquote)[^>]*>/gi," ").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim();if(!b)return"";const S=Be(b);return S<0?b:b.slice(0,S).trim()||b},se=l(()=>{const a=C.value==="vi"?B.value.agent_probabilities?.summary||B.value.desc:B.value.agent_probabilities?.summary||B.value.desc_en||B.value.desc;return Me(a)}),he=l(()=>{const a=C.value==="vi"&&i.prediction.linked_season_name_vi||i.prediction.linked_season_name;return We(i.prediction.linked_season,a)}),ce=zt(),de=l(()=>B.value.source_url==="AI_BOT"||!!De(B.value)),ye=l(()=>De(B.value)),xe=l(()=>_.find(m=>m.id===ye.value)?.label||B.value.ai_name||B.value.agent_name||""),fe=l(()=>se.value?se.value.length>110?se.value.substring(0,110)+"...":se.value:""),_e=(a,m)=>m?"text-[#0A0E14]":a?a.includes("-")?"text-red-500":"text-success":"text-neutral-800";return(a,m)=>{const b=yt,S=Ee,q=$t,r=Qe,u=Ct,k=St,j=ze;return n(),T(j,{to:e(ge),class:z(["w-full cursor-pointer self-end rounded-xs px-1 pb-1 transition-colors duration-300",{"!rounded-lg bg-gradient-to-t from-[#FFE4E5] to-[#D71A1E]":e(N)}])},{default:ne(()=>[e(N)?(n(),c("div",la,[t("div",ca,[P(b,{class:"h-4 w-4",color:"#ffffff"}),E(" "+o(e(s)("prediction.live")),1)]),t("div",da,o(Y(e(I))),1),t("button",{"aria-label":"live",class:"hidden items-center gap-3xs rounded-3xl bg-white px-2 py-[2px] text-paragraph-5-bold text-highlight md:flex",onClick:m[0]||(m[0]=K($=>e(ce)(e(Le)),["prevent"]))},[E(o(e(s)("live.match.header.live"))+" ",1),P(S,{src:"/images/prediction/arrow.svg",alt:"arrow",class:"h-3 w-3",loading:"lazy",provider:"local"})])])):A("",!0),t("div",{class:z([{"border-[#B6BDCB] ring-red-50 transition-[border,box-shadow] md:border md:hover:border-red-500 md:hover:ring-4":!e(N)},"relative flex w-full flex-col justify-end rounded-s bg-white md:rounded-xs"])},[t("div",ma,[t("div",ua,[d.prediction.linked_season_image?(n(),T(q,{key:0,class:"h-5 w-5 object-contain"},{default:ne(()=>[d.prediction.linked_season_image?(n(),T(S,{key:0,src:d.prediction.linked_season_image,alt:e(he)||"season image",provider:"image7bong",width:"64",height:"64",densities:"1",class:"h-5 w-5 object-contain",loading:"lazy"},null,8,["src","alt"])):A("",!0)]),_:1})):A("",!0),d.seasonComponent?(n(),T(Ge(d.seasonComponent),{key:1,class:"max-w-[340px] truncate text-left text-paragraph-1-regular text-body max-sm:max-w-[8.5rem]"},{default:ne(()=>[E(o(e(he)),1)]),_:1})):(n(),c("div",pa,o(e(he)),1))]),t("div",ga,[d.prediction.is_trend?(n(),c("div",ha,[P(S,{src:"/images/icons/common/prediction-hot.svg",alt:"prediction-hot",loading:"lazy",provider:"local",class:"size-s"}),m[7]||(m[7]=E(" Hot ",-1))])):A("",!0),e(Q)?(n(),c("div",xa,o(e(s)("live.match.timer.end")),1)):(n(),c("button",{key:2,"aria-label":"doi dau",class:"text-paragraph-1-medium text-hyperlink",onClick:m[1]||(m[1]=K(()=>{e(Bt)().matchTab="doi-dau",e(ce)(e(Pt)(d.prediction.linked_match,d.prediction.home_name,d.prediction.away_name))},["prevent"]))},o(e(s)("prediction.team_performance")),1))])]),t("div",fa,[t("div",_a,[t("span",va,[P(r,{id:d.prediction?.linked_match_data?.competitors?.[0]?.id,name:e(C)==="vi"&&d.prediction?.linked_match_data?.competitors?.[0]?.name_vi||d.prediction?.linked_match_data?.competitors?.[0]?.name},null,8,["id","name"])]),P(u,{team:d.prediction.linked_match_data?.competitors?.[0],"league-id":d.prediction.linked_season,"img-class":"h-full w-full object-contain","wrapper-class":"h-12 w-12 max-sm:size-10"},null,8,["team","league-id"])]),e(V)||e(D)||e(L)?(n(),c("div",ba,[t("div",ka,[P(k,{class:"text-paragraph-3-regular text-sub-heading","with-date":"","custom-format":"DD/MM",date:d.prediction.start_time},null,8,["date"])]),t("div",wa,[e(L)?(n(),c("span",ya,o(e(s)("match.timer.postponed")),1
2)):e(D)?(n(),c("span",$a,o(e(s)("match.timer.cancelled")),1)):(n(),T(k,{key:2,class:"!text-heading-5-bold !text-hyperlink","with-time":"",date:d.prediction.start_time},null,8,["date"]))])])):(n(),c("div",Ca,[t("div",Sa,[e(N)?(n(),c("span",La,o(e(pe)?e(re)||"Pen (0-0)":Y(e(I))),1)):(n(),T(k,{key:1,"with-date":"","custom-format":"HH:mm - DD/MM",date:d.prediction.start_time},null,8,["date"]))]),t("div",{class:z(["flex items-center justify-center gap-2 text-heading-3-bold max-sm:gap-1 max-sm:text-[20px]",e(N)?"text-red-500":""])},[t("span",Pa,o(e(I)?.home_score??0),1),e(Q)?(n(),c("span",Ma,o(e(le)),1)):(n(),c("span",Ia,"-")),t("span",Ta,o(e(I)?.away_score??0),1)],2),e(N)?(n(),c("div",Da,[t("button",{"aria-label":"live",class:"flex items-center justify-center gap-1 rounded-3xl bg-highlight px-2 py-[2px] text-[10px] font-bold leading-tight text-white",onClick:m[2]||(m[2]=K($=>e(ce)(e(Le)),["prevent"]))},[E(o(e(s)("live.match.header.live"))+" ",1),P(S,{src:"/images/prediction/arrow.svg",alt:"arrow",class:"h-2 w-2",style:{filter:"brightness(0) invert(1)"},loading:"lazy",provider:"local"})])])):A("",!0),e(Q)&&e(O)?(n(),c("div",Aa," ("+o(e(O))+") ",1)):A("",!0)])),t("div",Ba,[P(u,{team:d.prediction.linked_match_data?.competitors?.[1],"league-id":d.prediction.linked_season,"img-class":"h-full w-full object-contain","wrapper-class":"h-12 w-12 max-sm:size-10"},null,8,["team","league-id"]),t("span",ja,[P(r,{id:d.prediction?.linked_match_data?.competitors?.[1]?.id,name:e(C)==="vi"&&d.prediction?.linked_match_data?.competitors?.[1]?.name_vi||d.prediction?.linked_match_data?.competitors?.[1]?.name},null,8,["id","name"])])])]),e(de)||e(ie)?(n(),c("div",{key:0,class:z(["flex gap-2 overflow-hidden bg-white pr-[12px]",e(ie)?"justify-between border-b border-neutral-200":"-mt-[6px] justify-end"]),onClick:m[3]||(m[3]=K(()=>{},["stop","prevent"]))},[e(ie)?(n(),c("div",za,[(n(!0),c(Z,null,we(e(R),$=>(n(),c("button",{key:$.id,type:"button",class:"relative flex h-11 items-center justify-center gap-3xs px-1 transition-colors max-md:flex-1 md:px-2","aria-label":$.label,onClick:K(te=>F($.id),["stop","prevent"])},[t("span",{class:"relative block shrink-0 overflow-hidden",style:ft({width:`${$.logoWidth}px`,height:`${$.logoHeight}px`})},[t("img",{src:$.icon,alt:$.label,class:z(["block h-full w-full object-contain",{"ai-provider-logo--cropped":$.crop}])},null,10,Ra)],4),t("span",{class:z(["whitespace-nowrap text-paragraph-3-medium",e(p)===$.id?"text-red-500":"text-sub-heading"])},o($.label),3),e(p)===$.id?(n(),c("span",Fa)):A("",!0)],8,Ea))),128))])):A("",!0),e(de)?(n(),T(S,{key:1,src:"/images/icons/prediction/AI.png",alt:"AI",loading:"lazy",provider:"local",class:"my-auto size-6 shrink-0"})):A("",!0)],2)):A("",!0),t("div",Na,[t("div",Oa,[t("div",Ha,o(e(s)("prediction.title"))+": ",1),e(se)?(n(),c("div",Va,[t("div",Ya,o(e(fe)),1),t("button",{"aria-label":"detail",class:"ml-1 inline-block text-paragraph-1-regular text-hyperlink max-sm:hidden",onClick:m[4]||(m[4]=K($=>e(ce)(e(ge)),["prevent"]))}," ["+o(e(s)("common.show_detail"))+"] ",1)])):(n(),c("div",Ua,[E(o(e(s)("blocks_match_info.no_prediction"))+" ",1),t("button",{"aria-label":"show detail",class:"text-paragraph-1-regular text-hyperlink max-sm:hidden",onClick:m[5]||(m[5]=K($=>e(ce)(e(ge)),["prevent"]))}," ["+o(e(s)("common.show_detail"))+"] ",1)]))]),t("div",qa,[t("div",Wa,[t("div",Ka,o(e(de)?e(s)("prediction.ai_source"):e(s)("prediction.odd_asia"))+": ",1),e(U)?.name?(n(),c("div",Za,[t("div",{class:"truncate whitespace-nowrap text-paragraph-3-medium text-sub-heading",title:e(U)?.n
2ame},o(e(U)?.name),9,Ga),t("div",Qa,[e(U)?.rate?(n(),c(Z,{key:0},[t("span",{class:z(_e(e(U).handicap,e(U).isZero))},o(e(U).handicap),3),t("span",Ja,"Â "+o(e(U).rate),1)],64)):(n(),c("span",{key:1,class:z(_e(e(U)?.odd,e(U)?.isZero))},o(e(U)?.handicap||e(U)?.odd),3))])])):(n(),c("div",Xa,"-"))]),e(de)&&e(xe)?(n(),T(j,{key:0,to:e(Mt)(e(ye)),class:"flex shrink-0 items-center gap-3xs text-paragraph-3-medium text-hyperlink",onClick:m[6]||(m[6]=K(()=>{},["stop"]))},{default:ne(()=>[t("span",es,o(e(s)("prediction.ai_detail",{name:e(xe)})),1),t("span",ts,o(e(xe))+" AI",1),m[8]||(m[8]=t("svg",{class:"size-3 shrink-0",viewBox:"0 0 8 13",fill:"none","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M1 1.5L6 6.5L1 11.5",stroke:"currentColor","stroke-width":"1.5"})],-1))]),_:1},8,["to"])):A("",!0)])])],2)]),_:1},8,["to","class"])}}}),ss=nt(as,[["__scopeId","data-v-bf8662ed"]]),ns=oe({__name:"league-filter",props:{slugName:{default:"leagueId"},autocomplete:{type:Boolean,default:!1},withRoute:{type:Boolean,default:!0},value:{default:""},clearable:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(d,{emit:f}){const{locale:v}=me(),g=f,s=d,C=Ke(),i=Ze(),_=Ae(),{popularsSearch:w}=ke(_),y=H(s.withRoute?String(C.query[s.slugName])??"":s.value),p=h=>{const R=new URLSearchParams(C.query);return R.set(s.slugName,h),`?${R}`};X(y,h=>{if(s.withRoute)return i.push(p(h));g("update:modelValue",h)});const M=l(()=>w.value.map(h=>({value:h.id,icon:h.logo,label:We(h.id,v.value==="vi"&&h.name_vi||h.name)})));
2return(h,R)=>{const G=at;return n(),T(G,{id:"dropdown-league",modelValue:y.value,"onUpdate:modelValue":R[0]||(R[0]=F=>y.value=F),value:d.value,options:e(M),placeholder:h.$t("common.select_league"),autocomplete:d.autocomplete,clearable:d.clearable,"show-icon":!0,"show-sticky-modal":!0,"truncate-label":!0,size:"small"},null,8,["modelValue","value","options","placeholder","autocomplete","clearable"])}}}),os=["aria-label"],is={"aria-hidden":"true"},rs={class:"prediction-ranking ranking w-full overflow-x-auto"},ls={class:"table-prediction w-full table-auto border-separate border-spacing-0 rounded-s"},cs={class:"bg-[#f0f3f8] text-heading"},ds={class:"sticky left-10 w-[40%] bg-[#f0f3f8] text-start text-paragraph-3-bold text-heading"},ms={class:"text-paragraph-3-regular"},us={class:"text-paragraph-3-regular"},ps={colspan:"3",class:"text-paragraph-3-regular"},gs={class:"text-success"},hs={class:"text-yellow-500"},xs={class:"text-red-500"},fs=oe({__name:"ranking",setup(d){const{t:f}=me(),v=Array.from({length:8},(g,s)=>s+1);return(g,s)=>(n(),c("div",{role:"status","aria-busy":"true","aria-label":e(f)("match.navigation.ranking")+" - loading...",class:"flex flex-col gap-s px-s py-3xs max-lg:px-0 lg:p-0"},[t("div",is,[t("div",rs,[t("table",ls,[t("thead",null,[t("tr",cs,[s[2]||(s[2]=t("th",{class:"sticky left-0 w-10 bg-[#f0f3f8] text-paragraph-3-bold text-heading"}," # ",-1)),t("th",ds,o(e(f)("ranking.table.team")),1),t("th",ms,o(e(f)("ranking.table.match")),1),t("th",us,o(e(f)("ranking.table.score")),1),t("th",ps,[t("span",gs,o(e(f)("ranking.table.win")),1),s[0]||(s[0]=E(" / ",-1)),t("span",hs,o(e(f)("ranking.table.draw")),1),s[1]||(s[1]=E(" / ",-1)),t("span",xs,o(e(f)("ranking.table.lose")),1)])])]),t("tbody",null,[(n(!0),c(Z,null,we(e(v),(C,i)=>(n(),c("tr",{key:C,class:z(["text-heading",{"bg-neutral-50":i%2!==0}])},[t("td",{class:z(["sticky left-0 w-10",{"bg-neutral-50":i%2!==0,"bg-white":i%2===0}])},[...s[3]||(s[3]=[t("div",{class:"flex items-center justify-center"},[t("span",{class:"bg-skeleton flex h-6 w-6 min-w-6 items-center justify-center rounded-xs text-transparent"},"Â ")],-1)])],2),t("td",{class:z(["sticky left-10 w-[40%] min-w-[40vw] border-r md:min-w-0",{"border-neutral-50 bg-neutral-50":i%2!==0,"border-white bg-white":i%2===0}])},[...s[4]||(s[4]=[t("div",{class:"relative flex min-w-0 items-center"},[t("span",{class:"bg-skeleton inline-block h-4 w-20 max-w-full flex-grow truncate rounded-xs text-transparent"},"Â ")],-1)])],2),s[5]||(s[5]=t("td",{class:"!text-paragraph-1-regular text-body"},[t("span",{class:"bg-skeleton inline-block h-4 w-4 rounded-xs text-transparent"},"Â ")],-1)),s[6]||(s[6]=t("td",{class:"!font-medium !tracking-[-0.13px] text-heading"},[t("span",{class:"bg-skeleton inline-block h-4 w-4 rounded-xs text-transparent"},"Â ")],-1)),s[7]||(s[7]=t("td",{colspan:"3",class:"!text-paragraph-1-regular text-body"},[t("span",{class:"bg-skeleton mx-auto inline-block h-4 w-16 rounded-xs text-transparent"},"Â ")],-1))],2))),128))])])])]),s[8]||(s[8]=t("div",{class:"text-center"},[t("span",{class:"bg-skeleton mx-auto inline-block h-4 w-32 rounded-xs text-paragraph-1-medium text-transparent"},"Â ")],-1))],8,os))}}),_s={class:"prediction-ranking ranking w-full overflow-x-auto"},vs={class:"table-prediction w-full table-auto border-separate border-spacing-0 rounded-s"},bs={class:"bg-[#f0f3f8] text-heading"},ks={class:"sticky left-10 w-[40%] bg-[#f0f3f8] text-start text-paragraph-3-bold text-heading"},ws={class:"text-paragraph-3-regular"},ys={class:"text-paragraph-3-regular"},$s={colspan:"3",class:"text-paragraph-3-regular"},Cs={class:"text-success"},Ss={class:"text-yellow-500"},Ls={class:"text-red-500"},Ps={class:"!text-paragraph-1-regular text-body"},Ms={class:"!font-medium !tracking-[-0.13px] text-heading"},Is={colspan:"3",class:"!text-paragraph-1-regular text-body"},Ts=oe({__name:"table",props:{teamLabel:{},rankingTable:{},activeLine:{default:""},outcomes:{default:()=>[]},showOutcomesLegend:{type:Boolean,default:!0},showPositionChange:{type:Boolean,default:!0},competitorA:{},competitorB:{},league:{}},setup(d){const{t:f,locale:v}=me(),g=d,s=(i,_)=>_?.length>0&&i===_.length-1,C=i=>{const _=String(i?.current_outcome||"").trim().toLowerCase(),w=g.outcomes.findIndex(y=>String(y||"").trim().toLowerCase()===_);return w===0?"bg-success text-grey-0":!s(w,g.outcomes)&&w===1?"bg-blue-500 text-grey-0":!s(w,g.outcomes)&&w===2?"bg-yellow-500 text-grey-0":!s(w,g.outcomes)&&w===3?"bg-orange-500 text-grey-0":w!==0&&s(w,g.outcomes)?"bg-[#F92E32] text-grey-0":!s(w,g.outcomes)&&w>=4?"bg-red-900 text-grey-0":"bg-[#F0F0F0] text-[#656565]"};return(i,_)=>{const w=ze,y=Qe;return n(),c("div",_s,[t("table",vs,[t("thead",null,[t("tr",bs,[_[2]||(_[2]=t("th",{class:"sticky left-0 w-10 bg-[#f0f3f8] text-paragraph-3-bold text-heading"}," # ",-1)),t("th",ks,o(d.teamLabel||e(f)("ranking.table.team")),1),t("th",ws,o(e(f)("ranking.table.match")),1),t("th",ys,o(e(f)("ranking.table.score")),1),t("th",$s,[t("span",Cs,o(e(f)("ranking.table.
2win")),1),_[0]||(_[0]=E(" / ",-1)),t("span",Ss,o(e(f)("ranking.table.draw")),1),_[1]||(_[1]=E(" / ",-1)),t("span",Ls,o(e(f)("ranking.table.lose")),1)])])]),t("tbody",null,[(n(!0),c(Z,null,we(d.rankingTable,(p,M)=>(n(),c("tr",{key:M,class:z(["text-heading",{"bg-neutral-50":M%2!==0}])},[t("td",{class:z(["sticky left-0 w-10",{"bg-neutral-50":M%2!==0,"bg-white":M%2===0}])},[P(w,{to:e(Ve)(p?.competitor?.id,p?.competitor?.name),class:"flex items-center justify-center"},{default:ne(()=>[t("span",{class:z(["flex h-6 w-6 min-w-6 items-center justify-center rounded-xs text-paragraph-3-bold",C(p)])},o(M+1),3)]),_:2},1032,["to"])],2),t("td",{class:z(["sticky left-10 w-[40%] min-w-[40vw] border-r md:min-w-0",{"border-neutral-50 bg-neutral-50":M%2!==0,"border-white bg-white":M%2===0}])},[P(w,{to:e(Ve)(p?.competitor?.id,p?.competitor?.name),class:"relative flex min-w-0 items-center text-heading hover:text-heading"},{default:ne(()=>[t("span",{class:z(["flex-grow truncate text-start",{"text-paragraph-1-regular text-heading":d.competitorA?.id==p.competitor?.id||d.competitorB?.id==p.competitor?.id}])},[P(y,{id:p?.competitor?.id,name:e(v)==="vi"&&p?.competitor?.name_vi||p?.competitor?.name},null,8,["id","name"])],2)]),_:2},1032,["to"])],2),t("td",Ps,o(p.played),1),t("td",Ms,o(p.points),1),t("td",Is,o(p.win)+" / "+o(p.draw)+" / "+o(p.loss),1)],2))),128))])])])}}}),Ds={class:"flex flex-col gap-s"},As={class:"flex flex-wrap items-center justify-between gap-xs"},Bs={class:"flex items-center gap-xs text-heading-5-bold text-heading"},js={class:"w-full flex md:block items-center gap-2 md:gap-0"},zs={class:"flex flex-col gap-s px-s py-3xs max-lg:px-0 lg:p-0"},Es={class:"text-center"},Rs=oe({__name:"index",props:{titleComponent:{}},setup(d){const f=Ae(),{popularsSearch:v}=ke(f),g=H(v.value?.[0]?.id);X(()=>v.value,()=>{g.value=v.value?.[0]?.id});const{t:s}=me(),C=Nt(),i=l(()=>v.value.find(L=>L.id===g.value)?.competition_id??""),{data:_}=Ue({queryKey:l(()=>["prediction-ranking-seasons",i.value]),enabled:l(()=>!!i.value),queryFn:()=>C.getCompetitionSeasons(i.value)}),w=l(()=>(_.value?.seasons??[]).map(L=>({value:L.id,label:L.year}))),y=H("");X(g,()=>{y.value=""}),X(_,L=>{if(y.value)return;const D=L?.seasons??[],V=D.find(O=>O.id===g.value);y.value=V?.id||D[0]?.id||""},{immediate:!0});const p=l(()=>y.value||g.value),M=l(()=>`/giai-dau/${It(I.value?.name)}-${I.value?.id}?tab=bxh`),h=L=>{if(!L.group_name&&!L.name)return s("common.football_team");const D=Ft(L.stage_name,L.group_name,s);if(D)return D;const V=String(L.group_name||"").trim().replace(/^(group|bảng)[\s_-]*/i,"");if(V)return`${s("common.title-banner-group")} ${V}`;let O=s(`tournament.sections.knockout.round.${Rt(L.stage_name)}`);return O.startsWith("tournament")&&(L.stage_name?O=`${L.stage_name} - `:O=L.name),O},R=l(()=>!!p.value),G=l(()=>["prediction-ranking",`select-${p.value}`]),{suspense:F,data:B,isLoading:ie}=Ue({queryKey:G,enabled:R,queryFn:()=>C.fetchRankings(p.value)}),ue=l(()=>B.value?.rankings),I=l(()=>B.value?.seasonStandings),N=l(()=>(ue.value?.[0]?.groups?.length??0)>0),Q=l(()=>v.value.length?p.value?!N.value&&ie.value:!1:!0);return(L,D)=>{const V=ns,O=at,pe=fs,re=Ts,le=ze,ae=tt;return n(),c("section",Ds,[t("div",As,[t("div",Bs,[D[2]||(D[2]=t("img",{src:Et,width:"24",height:"24",class:"h-6 w-6",alt:"cup",loading:"lazy"},null,-1)),d.titleComponent?(n(),T(Ge(d.titleComponent),{key:0},{default:ne(()=>[E(o(e(s)("match.navigation.ranking")),1)]),_:1})):(n(),c(Z,{key:1},[E(o(e(s)("match.navigation.ranking")),1)],64))]),t("div",js,[P(V,{modelValue:e(g),"onUpdate:modelValue":D[0]||(D[0]=Y=>He(g)?g.value=Y:null),autocomplete:!0,class:"lg:w-full",clearable:!1,"with-route":!1,value:e(g),"label-class":"xl:max-w-[200px]"},null,8,["modelValue","value"]),e(w).length>1?(n(),T(O,{key:0,id:"dropdown-prediction-ranking-season",modelValue:e(y),"onUpdate:modelValue":D[1]||(D[1]=Y=>He(y)?y.value=Y:null),value:e(p),options:e(w),clearable:!1,class:"!w-fit shrink-0 lg:hidden",size:"small"},null,8,["modelValue","value","options"])):A("",!0)])]),e(Q)?(n(),T(pe,{key:0})):e(N)?(n(),c(Z,{key:1},[t("div",zs,[(n(!0),c(Z,null,we(e(ue)?.[0]?.groups,Y=>(n(),T(re,{key:Y.id,"ranking-table":Y?.standings,"team-label":h(Y),outcomes:Y.current_outcome},null,8,["ranking-table","team-label","outcomes"]))),128))]),t("div",Es,[P(le,{to:e(M),class:"text-paragraph-1-medium text-blue-500"},{default:ne(()=>[E(o(e(s)("prediction.ranking_detail")),1)]),_:1},8,["to"])])],64)):(n(),T(ae,{key:2,title:e(s)("prediction.empty_ranking_title"),subtitle:e(s)("prediction.empty_ranking_subtitle")},null,8,["title","subtitle"]))])}}}),Fs=ut("components/blocks/aside/search.vue",()=>mt(()=>import("./LM83iy0O.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]),import.meta.url).then(d=>d.default||d)),Ns={key:0,class:"sr-only"},Os={class:"grid w-full grid-cols-1 lg:grid-cols-[minmax(0,_1fr)_340px] lg:gap-x-l xl:grid-cols-[200px_minmax(0,_1fr)_340px]"},Hs={ref:"leftSidebarRef",class:"max-xl:hidden xl:sticky xl:top-[70px] xl:max-h-[calc(100dvh-80px)] xl:self-start xl:overflow-y-auto xl:pr-2"}
2,Vs={class:"relative h-fit rounded-s bg-grey-0 max-sm:rounded-none max-sm:bg-transparent"},Ys={class:"flex flex-wrap items-center gap-x-s gap-y-xs rounded-t-s bg-grey-0 py-s max-md:pb-xs max-md:pt-xs max-sm:gap-x-3xs max-sm:rounded-none max-sm:bg-transparent max-sm:px-s sm:px-s"},Us={class:"flex min-w-0 flex-1 items-center justify-end gap-2xs max-sm:mr-3xs max-sm:flex-none"},qs={class:"prediction-league-filter max-sm:order-2"},Ws={class:"flex-1 truncate text-left text-paragraph-1-regular text-heading max-sm:hidden sm:max-w-[160px]"},Ks={class:"flex-1 truncate whitespace-nowrap text-left text-paragraph-1-regular text-sub-heading max-sm:hidden"},Zs={class:"h-min rounded-s bg-grey-0 p-s max-sm:mx-s","aria-label":"Ranking per tournament"},qe="nhan-dinh-bong-da",Gs=10,Qs=4,Js=16,Xs=18,ro=oe({__name:"index",async setup(d){const{isMobileOrTablet:f}=qt(),v=Yt("(max-width: 767px)"),g=et(),s=ot("contentBottom-nhan-dinh-bong-da",()=>null);(async()=>{const{data:r}=await Wt(()=>`content-bottom-${qe}`,async()=>{const{content:u}=await g.getContentBottomBySlug(qe);return u},{server:!0,dedupe:"defer"});s.value=r.value})();const{t:i}=me(),_=dt(),w=[{name:i("home.toolbar.filter.all"),slug:"tat-ca"},{name:i("prediction.filter.hot"),slug:"hot",icon:Zt,iconColor:"#D71A1E",iconActiveColor:"#ffffff",iconClass:"w-5 h-5"},{name:i("date.today"),slug:"hom-nay"}],y=H(!1),p=H(""),M=H(""),h=({label:r,competitorId:u})=>{M.value=r,p.value=u},R=()=>{M.value="",p.value=""},G=Ht(),{predictionTab:F,predictionPage:B}=ke(G),ie=it(),ue=r=>{F.value=r},N=Ke().query.filter;F.value=N&&w.some(r=>r.slug===N)?N:"hot";const Q=Ae(),{popularsSearch:L,filterLeagues:D}=ke(Q),V=H();Ze();const O={"tat-ca":"all",hot:"is_trend","hom-nay":"today"},pe=["game_event","match_scenarios","extracted_score"],re=(r,u)=>{const k=[];for(let j=0;j<r.length;j+=u)k.push(r.slice(j,j+u));return k},le=B;X(()=>L.value,()=>{ae()});const ae=()=>{const r=L.value.map(u=>({name:u.name,name_vi:u.name_vi,id:u.id,logo:u.logo,tier:u.tier,order:u.order}));Q.setInitFilterLeagues([],r)},Y=async r=>{const u=O[F.value]||O["tat-ca"];V.value=D.value?.length?D.value.join(","):"";let k={};u==="today"?k={start_time_from:be().startOf("d").format("YYYY-MM-DD HH:mm:ss"),start_time_to:be().startOf("d").add(30,"hour").format("YYYY-MM-DD HH:mm:ss"),is_trend:0,season_id:V.value,sort_by:"start_time",sort_type:"asc",is_today_sort:1}:u==="is_trend"?k={is_trend:1,season_id:V.value}:k={is_trend:0,season_id:V.value};const j=await G.getPredictions({page:r,per_page:Gs*Qs,...k,competitor_id:p.value,exclude_fields:pe}),$=[...new Set(j.predictions.map(x=>x.linked_match).filter(Boolean))],te=await Promise.allSettled(re($,Xs).map(x=>ie.runWithContext(()=>G.getPredictions({match_id:x.join(","),page:1,per_page:x.length*Js,sort_by:"created_at",sort_type:"desc",competitor_id:p.value,exclude_fields:pe})))),$e=new Map;te.forEach(x=>{x.status==="fulfilled"&&x.value.predictions.forEach(W=>{const J=Se(W);if(!J)return;const Te=$e.get(J)||[];Te.push(W),$e.set(J,Te)})});const ve=new Map,Ce=new Set;j.predictions.forEach(x=>{const W=Se(x),J=ve.get(W)||[];J.push(x),ve.set(W,J),x.is_trend&&Ce.add(W)}),$.forEach(x=>{if(!x)return;const W=($e.get(x)||[]).map(J=>Ce.has(x)?{...J,is_trend:!0}:J);W.length&&ve.set(x,W)});const Ie=Xe([...ve.values()].flat()).filter((x,W,J)=>{const Te=Se(x),st=De(x);return W===J.findIndex(Ne=>Se(Ne)===Te&&De(Ne)===st)}),je=u==="today"?1:-1;return Ie.sort((x,W)=>
2je*(new Date(x.start_time).getTime()-new Date(W.start_time).getTime())),{...j,predictions:Ie}};X(()=>F.value,()=>{le.value=1,Q.cleatInitFilterLeagues(),ae()}),X(D,()=>{le.value=1}),X(p,()=>{le.value=1});const Le=l(()=>(D.value??[]).slice().sort().join(",")),ge=l(()=>["nhan-dinh-bong-da",`tab-${F.value}`,Le.value,p.value]),{data:ee,suspense:U,isLoading:Pe,isFetching:Be,fetchNextPage:Me,hasNextPage:se,isFetchingNextPage:he}=Vt({queryKey:ge,initialPageParam:1,queryFn:({pageParam:r=1})=>Y(r),getNextPageParam:(r,u)=>{if(r.hasMore)return u.length+1}}),ce=l(()=>ee.value?ee.value.pages.flatMap(r=>r.predictions):[]);l(()=>ee.value?ee.value.pages[ee.value.pages.length-1].pagination:null);const de=H(null),ye=H(!1);Ut(de,([{isIntersecting:r}])=>{ye.value=r}),vt(()=>{!v.value&&ye.value&&se.value&&!he.value&&!Pe.value&&Me()});const xe=l(()=>(ce.value||[]).reduce((r,u)=>{const k=u.linked_match||u.id;return(r[k]||=[]).push(u),r},{})),fe=l(()=>Object.values(xe.value).map(r=>r[0])),_e=Kt({data:ee,loading:[Pe,Be],resetKey:ge,debug:!1});Re(()=>{ae()}),bt(()=>{Q.cleatInitFilterLeagues()}),rt(r=>{r.path.startsWith("/nhan-dinh-bong-da")||(B.value=1)});const a=l(()=>i("meta.v3.prediction.title")),m=l(()=>i("meta.v3.prediction.h1")),b=l(()=>i("meta.v3.prediction.description"));Oe({title:a,ogTitle:a,twitterTitle:a,description:b,ogDescription:b,twitterDescription:b}),lt({link:[{key:"canonical",rel:"canonical",href:`${_.public.siteUrl}${Ye()}`}]});const S=l(()=>fe.value?fe.value.map((r,u)=>{const k=r.linked_match_data?.competitors?.[0],j=r.linked_match_data?.competitors?.[1];if(!k||!j)return null;const $=`${_.public.siteUrl}${Je({linkedMatch:r.linked_match,competitorHome:k.name,competitorAway:j.name,date:be(r.start_time).format("DD-MM-YYYY")})}`;return{"@type":"ListItem",position:u+1,item:{"@type":"Article","@id":$,url:$,name:`Nháºn Äá»nh ${k.name} vs ${j.name}`,datePublished:be(r.start_time).format("YYYY-MM-DD")}}}).filter(Boolean):[]),q=l(()=>{const r=`${_.public.siteUrl}${Ye()}`,u=`${_.public.siteUrl}#website`,k=`${r}#breadcrumb`,j=`${r}#webpage`,$=`${r}#itemlist`,te=[{"@type":"WebSite","@id":u,url:_.public.siteUrl,name:`7bong - ${i("blocks_news.football_analysis")}`,alternateName:a.value,description:b.value},{"@type":"BreadcrumbList","@id":k,itemListElement:[{"@type":"ListItem",position:1,name:"Trang chá»§",item:_.public.siteUrl},{"@type":"ListItem",position:2,name:"Nháºn Äá»nh bóng Äá",item:r}]},{"@type":"CollectionPage","@id":j,url:r,name:a.value,description:b.value,isPartOf:{"@id":u},breadcrumb:{"@id":k},mainEntity:{"@id":$}}];return S.value.length>0&&te.push({"@type":"ItemList","@id":$,name:"Danh sách nháºn Äá»nh bóng Äá",description:"Các bà i nháºn Äá»nh tráºn Äấu hôm nay và rạng sáng mai",itemListOrder:"https://schema.org/ItemListOrderDe
2scending",itemListElement:S.value}),te});return ct(q),Oe({robots:"index, follow"}),(r,u)=>{const k=Fs,j=pt,$=Jt,te=Ee,$e=wt,ve=ht,Ce=ra,Fe=ss,Ie=tt,je=Rs;return n(),c(Z,null,[e(s)?.title?A("",!0):(n(),c("h1",Ns,o(e(m)),1)),t("div",Os,[t("aside",Hs,[e(f)?A("",!0):(n(),T(k,{key:0,"hydrate-on-visible":!0}))],512),t("section",Vs,[t("header",Ys,[P(j,{class:"tab-prediction-filter min-w-0 max-sm:flex-1",tabs:w,"with-content":!1,variant:"secondary","slug-name":"filter","clear-slug":!1,slug:e(F),type:"event",onChange:ue},null,8,["slug"]),t("div",Us,[t("div",qs,[P($,{"with-route":!0,"slug-name":"season_id",name:"prediction",tier:1})]),e(M)?(n(),c("button",{key:0,"aria-label":"search",class:"flex h-[32px] w-full min-w-0 items-center gap-2xs rounded-circle border border-neutral-200 bg-neutral-0 px-xs transition-colors duration-200 hover:border-blue-400 max-sm:order-1 max-sm:h-9 max-sm:w-auto max-sm:shrink-0 max-sm:gap-3xs max-sm:border-0 max-sm:bg-white max-sm:px-2xs max-sm:shadow-sm sm:w-auto",onClick:u[0]||(u[0]=K(x=>y.value=!0,["prevent"]))},[P(te,{provider:"local",loading:"lazy",src:"/images/icons/common/search-outline.svg",alt:"search",width:"16",height:"16",class:"size-4 shrink-0"}),t("span",Ws,o(e(M)),1),t("span",{"aria-label":"clear",class:"grid h-4 w-4 shrink-0 place-items-center",onClick:K(R,["stop","prevent"])},[...u[4]||(u[4]=[t("img",{src:Ot,alt:"close",loading:"lazy",width:"16",height:"16",class:"h-full w-full"},null,-1)])])])):(n(),c("button",{key:1,"aria-label":"search",class:"flex h-[32px] w-full min-w-0 items-center gap-2xs rounded-circle border border-neutral-200 bg-neutral-0 px-s transition-colors duration-200 hover:border-blue-400 max-sm:order-1 max-sm:size-9 max-sm:shrink-0 max-sm:justify-center max-sm:border-0 max-sm:bg-white max-sm:p-0 max-sm:shadow-sm sm:w-auto",onClick:u[1]||(u[1]=K(x=>y.value=!0,["prevent"]))},[P(te,{provider:"local",loading:"lazy",src:"/images/icons/common/search-outline.svg",alt:"search",width:"16",height:"16",class:"size-4 shrink-0"}),t("span",Ks,o(r.$t("common.search_by_team_name")),1)]))]),P($e,{class:"leaguefilter-prediction w-full basis-full overflow-hidden max-sm:mb-2","current-filter":e(F),"multi-select":"","square-tiles":"",tier:1},null,8,["current-filter"])]),e(y)?(n(),T(ve,{key:0,"is-open":e(y),onClose:u[2]||(u[2]=x=>y.value=!1),onSelect:h},null,8,["is-open"])):A("",!0),t("main",null,[t("div",{class:z(["relative grid grid-cols-1 gap-xs p-s pt-0 max-md:gap-xs max-md:p-xs",{"min-h-[500px]":e(_e)}])},[e(_e)?(n(),T(Ce,{key:0})):e(fe)?.length?(n(!0),c(Z,{key:1},we(e(fe),x=>(n(),T(Fe,{key:x.id,prediction:x,"model-predictions":e(xe)[x.linked_match]||[x],"season-component":"h3"},null,8,["prediction","model-predictions"]))),128)):e(_e)?A("",!0):(n(),T(Ie,{key:2,title:r.$t("live.schedule.empty-live-title"),subtitle:r.$t("live.schedule.empty-live-subtitle")},null,8,["title","subtitle"]))],2),e(se)?(n(),c("div",{key:0,ref_key:"loadMoreRef",ref:de,class:"w-full pb-s"},[e(he)?(n(),T(Ce,{key:0})):e(v)?(n(),c("button",{key:1,type:"button",class:"mx-auto flex items-center gap-2xs rounded-s bg-grey-0 px-m py-s text-paragraph-1-medium text-heading shadow-sm",onClick:u[3]||(u[3]=x=>e(Me)())},[E(o(r.$t("common.show_more"))+" ",1),P(te,{src:"/images/icons/common/arrow-down.svg",alt:"arrow-down",loading:"lazy",provider:"local",class:"size-4"})])):A("",!0)],512)):A("",!0)])]),t("aside",Zs,[P(je,{"title-component":"h2"})])])],64)}}});export{ro 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.