1import{r as $}from"./BNNRdYrd.js";import{o as G}from"./crqBNO2U.js";import{B as I,F as _,Gt as a,I as n,Jt as h,Kt as O,M as r,N as t,Qt as o,St as U,jt as x,q as D,st as c}from"./DcGtCD8U.js";import{T as B}from"./BeCnAv6l.js";import{No as E,ef as A,ko as g,wl as k,wo as p}from"./C0ES5k8B.js";import{Yt as H,l as z}from"./BCh8aLr1.js";import{n as V}from"./4cbkXPIU.js";import{a as X}from"#entry";var ht=$({default:()=>ot});D();x(),O();var F={class:"o-list-bare__item team"},P={class:"team__left"},j={class:"team-name"},q={class:"team-odd"},J={class:"team__right"},K={key:0,class:"o-list-bare__item match-date"},Q={key:0,class:"live"},Y={key:1,class:"date-time"},W={class:"date"},Z={class:"time"},tt={key:2,class:"team-odd"},at={class:"o-list-bare__item team"},et={class:"team__left"},st={class:"team__right"},lt={class:"team-name"},rt={class:"team-odd"},ot={__name:"BannerBestMatch",props:{match:{type:Object,default:null},adCampaignTitle:{type:String,default:g.XBIT_ENGLISH}},setup(s){const l=s,f=r(()=>l.match?.tournament||null),b=r(()=>l.adCampaignTitle?.toLowerCase()),C=r(()=>E?.[b.value]||E[g.XBIT_ENGLISH]),u=r(()=>{if(!l.match?.start_date)return null;const e=X(l.match?.start_date).locale(C.value);return{date:e.format("DD MMM"),time:e.format("HH:mm")}}),y=H(),{getBestMatch:M}=y,{discipline:R}=B(y),{socketUpdatesMatchesMessage:m}=B(z()),N=r(()=>m.value?.key&&m.value.payload?.discipline_id===R.value?.id&&m.value.payload?.id===l.match?.id),d=r(()=>N.value&&m.value.payload?.bet_updates?m.value.payload.bet_updates:l.match?.bet_updates),S=r(()=>N.value&&m.value.payload?.status?m.value.payload.status:l.match.status),w=r(()=>[`c-${p}-best-match`,{[`c-banner-best-match--${b.value}`]:l.adCampaignTitle.length},{"c-banner-best-match--draw":!!d.value?.draw}]),{$filters:L}=G(),v=e=>e?L.number(e,"0.00"):"N/A";return U(()=>S.value,async e=>{e===k.FINISHED&&await M()}),(e,i)=>{const T=V;return s.match?.id?(c(),n("div",{key:0,class:h(a(w))},[a(f)?(c(),n("p",{key:0,class:h(`c-${a(p)}-best-match__tournament`)},o(a(f).name),3)):_("",!0),t("ul",{class:h(["o-list-bare",`c-${a(p)}-best-match__teams`])},[t("li",F,[t("div",P,[t("p",j,o(s.match?.team1?.name),1),t("p",q,[i[0]||(i[0]=t("label",null,"1",-1)),t("b",null,o(v(a(d).team_1?.coeff)),1)])]),t("div",J,[I(T,{url:e.$proxyImage({data:s.match?.team1,size:a(A).medium}),title:s.match?.team1?.name},null,8,["url","title"])])]),a(u)?(c(),n("li",K,[a(S)===a(k).CURRENT?(c(),n("p",Q,"LIVE")):(c(),n("div",Y,[t("p",W,o(a(u).date),1),t("p",Z,o(a(u).time),1)])),a(d)?.draw?(c(),n("p",tt,[i[1]||(i[1]=t("label",null,"x",-1)),t("b",null,o(v(a(d)?.draw?.coeff)),1)])):_("",!0)])):_("",!0),t("li",at,[t("div",et,[I(T,{url:e.$proxyImage({data:s.match?.team2,size:a(A).medium}),title:s.match?.team2?.name},null,8,["url","title"])]),t("div",st,[t("p",lt,o(s.match?.team2?.name),1),t("p",rt,[t("b",null,o(v(a(d).team_2?.coeff)),1),i[2]||(i[2]=t("label",null,"2",-1))])])])],2)],2)):_("",!0)}}};export{ot as n,ht as t};
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.