1import{cS as w,cU as G,d0 as N,ds as O,d1 as D,d9 as P,cZ as x,db as B}from"./main-Dx4_sGQs.js";import{u as $}from"./useLeagueOddsSchedule-V_37jMbu.js";import{c as I}from"./convertGoal-DkJG4FMn.js";import{p as C,c,D as m,F as i,L as M,a1 as U,u as k,S as s,U as n,N as z,a3 as S,r as L,E as H,K as j,O as K}from"./_plugin-vue_export-helper-C8YFU58O.js";const R={class:"hot-card__datetime"},E={class:"date"},W={class:"time"},F={class:"hot-card__matchup"},V={class:"team"},X=["src","alt"],Z={class:"name"},q={class:"team"},A=["src","alt"],J={class:"name"},Q={class:"hot-card__odds"},Y={class:"odds-col"},ss={class:"odds-col"},as={class:"odds-val"},ts={class:"odds-col odds-1x2-el"},es={class:"odds-1x2-row"},os={class:"hot-card__actions"},ls=["href"],ns=C({__name:"HotPickOddCard",props:{match:{},companyId:{},betLink:{}},setup(o){const e=o,p=w(),h=c(()=>{const a=G.utc(e.match.matchTime).local();return{date:a.format("DD/MM"),time:a.format("HH:mm")}}),v=c(()=>{var a;return(a=e.match.odds)==null?void 0:a.HDP}),_=c(()=>{var a;return(a=e.match.odds)==null?void 0:a.OU}),r=c(()=>{var a;return(a=e.match.odds)==null?void 0:a["1x2"]}),l=c(()=>{var t;const a=Number((t=v.value)==null?void 0:t.Goal);return!isNaN(a)&&a<0}),g=c(()=>{var a;return I((a=v.value)==null?void 0:a.Goal)}),f=c(()=>{var a;return I((a=_.value)==null?void 0:a.Goal)}),u=N(()=>O(D.matchDetail(e.match.ScheduleID??void 0),D.matchDetailTab("h2h",e.match.ScheduleID??void 0)));function d(){e.match.ScheduleID&&p.goToMatchDetail(e.match.ScheduleID,"h2h")}return(a,t)=>{var b,y,T;return i(),m("div",M({class:"hot-card"},U(k(u))),[s("div",R,[s("span",E,n(h.value.date),1),s("strong",W,n(h.value.time),1)]),s("div",F,[s("div",V,[s("img",{class:"flag",src:o.match.HomeImage,alt:o.match.homeTeam,loading:"lazy"},null,8,X),s("span",Z,n(o.match.homeTeam),1)]),t[0]||(t[0]=s("span",{class:"vs"},"VS",-1)),s("div",q,[s("img",{class:"flag",src:o.match.GuestImage,alt:o.match.guestTeam,loading:"lazy"},null,8,A),s("span",J,n(o.match.guestTeam),1)])]),s("div",Q,[t[4]||(t[4]=s("hr",{class:"hot-card_divider"},null,-1)),s("div",Y,[t[1]||(t[1]=s("span",{class:"odds-label"},"Kèo châu Ã",-1)),s("span",{class:z(["odds-val",{"val-neg":l.value}])},n(g.value||"--"),3)]),t[5]||(t[5]=s("span",{class:"odds-sep"},null,-1)),s("div",ss,[t[2]||(t[2]=s("span",{class:"odds-label"},"Tà i xá»u",-1)),s("span",as,n(f.value||"--"),1)]),t[6]||(t[6]=s("span",{class:"odds-sep odds-1x2-el"},null,-1)),s("div",ts,[t[3]||(t[3]=s("span",{class:"odds-label"},"1X2",-1)),s("div",es,[s("span",null,n(((b=r.value)==null?void 0:b.UpOdds)||"--"),1),s("span",null,n(((y=r.value)==null?void 0:y.DownOdds)||"--"),1),s("span",null,n(((T=r.value)==null?void 0:T.Goal)||"--"),1)])])]),s("div",os,[s("button",{class:"btn-analyze",onClick:d},"Phân tÃch"),s("a",{class:"btn-bet",href:o.betLink||"#",target:"_blank",rel:"noopener noreferrer"}," Cược ngay ",8,ls)])],16)}}}),cs=S(ns,[["__scopeId","data-v-de9436bf"]]),ds=""+new URL("hot-icon-DdHx0jEe.png",import.meta.url).href,is={class:"hot-carousel"},rs={class:"hot-carousel__header"},us={class:"hc-title"},hs=["src"],ms={key:1,class:"hc-empty"},vs=C({__name:"HotPickCarousel",props:{league:{},betLink:{}},setup(o){const e=o,p=c(()=>e.league.cur_season_id),h=L(P[0].value),{upcomingMatchesWithOdds:v,isLoading:_}=$({seasonId:p,companyId:h}),r=c(()=>v.value.map(u=>({...u,homeTeam:x(u.homeTeam,e.league.id),guestTeam:x(u.guestTeam,e.league.id)}))),l=L(null);function g(){l.value&&l.value.scrollBy({left:-l.value.clientWidth,behavior:"smooth"})}function f(){l.value&&l.value.scrollBy({left:l.value.clientWidth,behavior:"smooth"})}return(u,d)=>(i(),m("div",is,[s("div",rs,[s("div",us,[d[0]||(d[0]=s("span",null,"Kèo hot hôm nay",-1)),s("img",{src:k(ds),alt:"HOT!",class:"hc-hot-icon"},null,8,hs)]),s("div",{class:"hc-nav"},[s("button",{class:"hc-nav-btn",onClick:g,"aria-label":"Trưá»c"},[...d[1]||(d[1]=[s("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[s("path",{d:"M10 12L6 8L10 4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]),s("button",{class:"hc-nav-btn",onClick:f,"aria-label":"Tiếp"},[...d[2]||(d[2]=[s("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[s("path",{d:"M6 4L10 8L6 12",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])])]),k(_)?(i(),H(B,{key:0,rows:3})):r.value.length===0?(i(),m("div",ms,"Không có kèo sắp tá»i.")):(i(),m("div",{key:2,ref_key:"trackRef",ref:l,class:"hot-carou
1sel__track"},[(i(!0),m(j,null,K(r.value,a=>(i(),H(cs,{key:a.ScheduleID??a.matchTime,match:a,companyId:h.value,betLink:o.betLink},null,8,["match","companyId","betLink"]))),128))],512))]))}}),ks=S(vs,[["__scopeId","data-v-429714b0"]]);export{ks as H};
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.