1import{b as j,u as x,e as F,a as H,_ as z}from"./index.js";import{s as L,t as J,i as K,f as c,r as U,o as s,g as l,K as g,l as d,n as i,p as y,O as k,e as w,w as b,u as v,F as B,j as M,J as S,L as q}from"./vendor.js";const G={class:"game e p"},Q={key:0,class:"op"},W={key:0,class:"ho"},X={key:1,class:"si"},Y={class:"info"},Z={key:0,class:"t"},ee={class:"t-l"},te={class:"t-l"},se={class:"t-m"},ae={key:0,class:"font-bold"},le={key:1,class:"live"},oe={key:2,class:"live"},ue={key:0},_e={key:3,class:"font-bold"},ne={class:"t-l"},ie={class:"t-l"},de={class:"t-m"},me={key:0,class:"font-bold"},ve={key:1,class:"live"},re={key:2,class:"live"},ce={key:0},pe={class:"s"},fe={key:1,class:"odds"},he={key:1,class:"o s-1 m1"},ye={key:2,class:"odds"},ke={key:1,class:"o s-1 m1"},be={key:3,class:"o s-2 m1"},ge={key:5,class:"o s-3 m1"},we={key:3,class:"odds"},Se={class:"o s-1 m1"},De={__name:"m-event",props:["m_event","meta","markets_sportsbook"],setup(I){const D=q(()=>z(()=>import("./m-outcome.js"),["js/m-outcome.js","js/locked.js","js/vendor.js","js/index.js"])),{appRef:V}=L(x()),O=I,{m_event:u,meta:p,markets_sportsbook:m}=J(O),{betslip:A}=L(F());L(H()),H();const $=K("diff"),N=c(()=>V.value.platform),t=c(()=>{let a=u.value,e=$(a.start_time);e=Math.ceil(Number(e)/60),a.diff=Number(e),a.status_desc=a.status==1&&(!a.status_desc||a.status_desc=="null")?"live":a.status_desc;var o=a.result&&a.result!="null"?a.result.split(":"):[];return a.home_score=o.length!=0&&!(o[0]=="null"||!o[0])?o[0]:"",a.away_score=o.length!=0&&!(o[1]=="null"||!o[1])?o[1]:"",a}),n=c(()=>u.value&&u.value.markets!=null&&u.value.markets?u.value.markets:[]),f=c(()=>{let a=n.value.filter(o=>o.sub_type_id==p.value.sub_type_id),e=a.length!=0?a[0]:"";return!e&&n.value.length!=0&&(e=n.value[0]),e}),T=c(()=>f.value&&f.value.lines!=null&&f.value.lines&&f.value.lines.length!=0?f.value.lines[0]:""),R=c(()=>({parent_match_id:u.value.parent_match_id,home_team:u.value.home_team,away_team:u.value.away_team,start_time:u.value.start_time,sport_id:u.value.sport_id,sport_name:u.value.sport_name,competition_id:u.value.competition_id,competition_name:u.value.competition_name})),P=c(()=>({sub_type_id:f.value.sub_type_id,odd_type:f.value.odd_type}));c(()=>{});const C=c(()=>{let a=[];for(let e=0;e<n.value.length;e++)N.value=="mobile"?n.value[e].sub_type_id==p.value.sub_type_id&&a.push(n.value[e].sub_type_id):a.push(n.value[e].sub_type_id);return A.value[u.value.parent_match_id]!=null&&!a.includes(A.value[u.value.parent_match_id].sub_type_id)});function r(a){let e="";switch(a){case 0:e=m.value.length!=0?m.value[0].sub_type_id:"",!e&&n.value.length!=0&&(e=n.value[0].sub_type_id);break;case 1:e=m.value.length>1?m.value[1].sub_type_id:"",!e&&n.value.length>1&&(e=n.value[1].sub_type_id);break;default:e=m.value.length>2?p.value.sub_type_id:"",!e&&(!p.value.sub_type_id||p.value.sub_type_id==null)&&n.value.length>2&&(e=n.value[2].sub_type_id)}let o=n.value.filter(_=>_.sub_type_id==e);return o=o.length!=0?o[0]:"",o&&o.lines!=null&&o.lines&&o.lines.length!=0?o.lines[0]:""}function E(a){let e="";switch(a){case 0:e=m.value.length!=0?m.value[0]:"",!e&&n.value.length!=0&&(e=n.value[0]);break;case 1:e=m.value.length>1?m.value[1]:"",!e&&n.value.length>1&&(e=n.value[1]);break;default:e=m.value.filter(o=>o.sub_type_id==p.value.sub_type_id),e=e.length!=0?e[0]:"",!e&&n.value.length>2&&(!p.value.sub_type_id||p.value.sub_type_id==null)&&(e=n.value[2])}return e}return(a,e)=>{const o=U("RouteLink");return s(),l("div",G,[t.value.category_name=="Simulated Reality League"||t.value.boosted==1?(s(),l("div",Q,[t.value.boosted==1?(s(),l("span",W,"ð¥Â  HOT")):g("",!0),t.value.category_name=="Simulated Reality League"?(s(),l("span",X,"ð¤Â  SIMULATED")):g("",!0)])):g("",!0),d("div",Y,[t.value.status>1||t.value.side_bets==0?(s(),l("div",Z,[d("div",ee,i(t.value.home_team),1),d("div",te,i(t.value.away_team),1),d("div",se,[t.value.diff<=-60?(s(),l("span",ae,i(a.$filters.fdDDMMHHmm(t.value.start_time)),1)):t.value.diff>-60&&t.value.diff<0?(s(),l("span",le,"STARTS IN ⢠"+i(Math.abs(t.value.diff))+"'",1)):t.value.diff>=0&&t.value.diff<=120?(s(),l("span",oe,[y(i(a.$filters.uppercase(t.value.status_desc)),1),t.value.periodic_time?(s(),l("span",ue," ⢠"+i(t.value.periodic_time)+"'",1)):g("",!0)])):(s(),l("span",_e,"ENDED")),d("span",null,"#"+i(t.value.game_id),1),d("span",{class:k({"mo selected":C.value})},"+"+i(t.value.side_bets)+" more",3)])])):(s(),w(o,{key:1,to:"/sportevent/"+v(u).parent_match_id,to1:"?src=event&id="+t.value.parent_match_id,class:"t"},{default:b(()=>[d("div",ne,i(t.value.home_team),1),d("div",ie,i(t.value.away_team),1),d("div",de,[t.value.diff<=-60?(s(),l("span",me,i(a.$filters.fdDDMMHHmm(t.value.start_time)),1)):t.value.diff>-60&&t.value.diff<0?(s(),l("span",ve,"STARTS IN ⢠"+i(Math.abs(t.value.diff))+"'",1)):(s(),l("span",re,[y(i(a.$filters.uppercase(t.value.status_desc)),1),t.value.periodic_time?(s(),l("span",ce," ⢠"+i(t.value.periodic_time)+"'",1)):g("",!0)])),d("span",null,"#"+i(t.value.game_id),1),d("span",{class:k({"mo selected":C.value})},"+"+i(t.value.side_bets)+" more",3)])]),_:1},8,["to","to1"])),d("div",pe,[d("span",null,i(t.value.home_score),1),d("span",null,i(t.value.away_score),1)])]),N.value=="mobile"?(s(),l("div",fe,[T.value?(s(),l("div",{key:0,class:k(["o s-1","m"+T.value.outcomes.length])},[(s(!0),l(B,null,M(T.value.outcomes.sort((_,h)=>_.outcome_id-h.outcome_id),_=>(s(),w(v(D),{m_outcome:_,m_market:P.value,m_event:R.value,key:_.outcome_id},null,8,["m_outcome","m_market","m_event"]))),128))],2)):(s(),l("div",he,[S(o,{to:"/sportevent/"+v(u).parent_match_id,class:"bet-now"},{default:b(()=>e[0]||(e[0]=[y("Bet now  â")])),_:1},8,["to"])]))])):N.value=="desktop"?(s(),l("div",ye,[r(0)?(s(),l("div",{key:0,class:k(["o s-1","m"+r(0).outcomes.length])},[(s(!0),l(B,null,M(r(0).outcomes.sort((_,h)=>_.outcome_id-h.outcome_id),_=>(s(),w(v(D),{m_outcome:_,m_market:E(0),m_event:R.value,key:_.outcome_id},null,8,["m_outcome","m_market","m_event"]))),128))],2)):(s(),l("div",ke,[S(o,{to:"/sportevent/"+v(u).parent_match_id,class:"bet-now"},{default:b(()=>e[1]||(e[1]=[y("Bet now  â")])),_:1},8,["to"])])),r(1)?(s(),l("div",{key:2,class:k(["o s-2","m"+r(1).outcomes.length])},[(s(!0),l(B,null,M(r(1).outcomes.sort((_,h)=>_.outcome_id-h.outcome_id),_=>(s(),w(v(D),{m_outcome:_,m_market:E(1),m_event:R.value,key:_.outcome_id},null,8,["m_outcome","m_market","m_event"]))),128))],2)):(s(),l("div",be,[S(o,{to:"/sportevent/"+v(u).parent_match_id,class:"bet-now"},{default:b(()=>e[2]||(e[2]=[y("Bet now  â")])),_:1},8,["to"])])),r(2)?(s(),l("div",{key:4,class:k(["o s-3","m"+r(2).outcomes.length])},[(s(!0),l(B,null,M(r(2).outcomes.sort((_,h)=>_.outcome_id-h.outcome_id),_=>(s(),w(v(D),{m_outcome:_,m_market:E(2),m_event:R.value,key:_.outcome_id},null,8,["m_outcome","m_market","m_event"]))),128))],2)):(s(),l("div",ge,[S(o,{to:"/sportevent/"+v(u).parent_match_id,class:"bet-now"},{default:b(()=>e[3]||(e[3]=[y("Bet now  â")])),_:1},8,["to"])]))])):(s(),l("div",we,[d("div",Se,[S(o,{to:"/sportevent/"+v(u).parent_match_id,class:"bet-now"},{default:b(()=>e[4]||(e[4]=[y("Bet now  â")])),_:1},8,["to"])])]))])}}},Me=j(De,[["__scopeId","data-v-46ddbc79"]]);export{Me 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.