1import{_ as Q,u as Z}from"./CpZGCxPR.js";import{d as G,f as e,o,c as l,a,t as n,i as d,J as I,K as L,F as _,n as T,_ as V,P as ee,e as te,s as ae,u as se,b as $,L as oe,N as ne,z as D,w as S,V as ie,v as F,x as le,j as ce,B as re,W as me,X as ue}from"./CR4wuR4j.js";import{_ as _e}from"./BY82nAvU.js";import{u as r,a as de,c as pe}from"./CpmtqNxa.js";const ge={key:0,class:"game-detail"},he={class:"game-header whitebox"},ve={class:"game-data"},ye={class:"game-date"},fe={class:"game-title"},$e={class:"game-events"},xe={class:"game-events-home game-events-wrap"},we={class:"game-events-left"},be={key:0,class:"game-events-heading"},ke={key:1,class:"game-events-flex"},Ce={class:"game-event-minute"},De={class:"game-event-icon"},Ae=["src"],Ne={class:"home-logo team-logo"},Te=["src"],Pe={class:"game-score"},Be={class:"big-scores"},Ue={key:0,class:"game-status"},Fe={key:1,class:"game-status"},Ie={class:"game-events-away game-events-wrap"},Le={class:"away-logo team-logo"},Oe=["src"],Ee={class:"game-events-right"},Se={key:0,class:"game-events-heading"},Ge={key:1,class:"game-events-flex"},Ve={class:"game-event-icon"},He=["src"],Re={class:"game-event-minute"},je=G({__name:"Header",props:{game:{}},setup(O){const h=O,{game:i}=h,x=_(()=>i.latestEvents.home.filter(t=>t.type==="goal"||t.type==="owngoal"||t.type==="penalty"||t.type==="yellowcard"||t.type==="redcard")),m=_(()=>i.latestEvents.away.filter(t=>t.type==="goal"||t.type==="owngoal"||t.type==="penalty"||t.type==="yellowcard"||t.type==="redcard")),f={};return h.game.scores&&h.game.scores.forEach(t=>{t.description==="PENALTY_SHOOTOUT"&&(f[t.score.participant]=t.score.goals)}),(t,g)=>e(i)?(o(),l("div",ge,[a("div",he,[a("header",ve,[a("div",ye,n(e(i).startDate.displayDateFull)+", "+n(e(i).startDate.time),1),a("div",fe,n(e(i).teams.home.name)+" â "+n(e(i).teams.away.name),1)]),a("div",$e,[a("div",xe,[a("div",we,[e(x).length?(o(),l("div",be,n(t.$t("ÐоÑледние ÑобÑÑиÑ")),1)):d("",!0),e(x)?(o(),l("div",ke,[(o(!0),l(I,null,L(e(x),s=>(o(),l("div",{class:"game-event",key:s.minute},[s.player?(o(),l("span",{key:0,class:T(["game-event-player",{"font-bolder":s.type=="goal"}])},n(s.player.name),3)):d("",!0),a("span",Ce,n(s.minute)+"â²",1),a("span",De,[a("img",{src:`/images/events/${s.type}.svg`,alt:""},null,8,Ae)])]))),128))])):d("",!0)]),a("div",Ne,[a("img",{src:e(i).teams.home.logoUrl,alt:"",width:"96"},null,8,Te)])]),a("div",Pe,[a("div",Be,n(e(i).teams.home.score)+" â "+n(e(i).teams.away.score),1),e(i).status==="After Penalties"?(o(),l("div",Ue,n(t.$t("СÑÐµÑ Ð² ÑеÑии пеналÑÑи"))+": "+n(f.home)+" â "+n(f.away),1)):(o(),l("div",Fe,n(e(i).status)+n(e(i).inProgress&&e(i).playTime?", "+e(i).playTime+"'":""),1))]),a("div",Ie,[a("div",Le,[a("img",{src:e(i).teams.away.logoUrl,width:"96",alt:""},null,8,Oe)]),a("div",Ee,[e(m).length?(o(),l("div",Se,n(t.$t("ÐоÑледние ÑобÑÑиÑ")),1)):d("",!0),e(m)?(o(),l("div",Ge,[(o(!0),l(I,null,L(e(m),s=>(o(),l("div",{class:"game-event",key:s.minute},[a("span",Ve,[a("img",{src:`/images/events/${s.type}.svg`,alt:""},null,8,He)]),a("span",Re,n(s.minute)+"â²",1),s.player?(o(),l("span",{key:0,class:T(["game-event-player",{"font-bolder":s.type=="goal"}])},n(s.player.name),3)):d("",!0)]))),128))])):d("",!0)])])])])])):d("",!0)}}),ze=Object.assign(V(je,[["__scopeId","data-v-c6b416bc"]]),{__name:"AppGameHeader"}),Me=me(ue),qe={class:"page-wrapper"},Je={class:"single-wrapper"},Ke={class:"whitebox whiterow"},We={class:"game-detail-nav detail-tabs whitebox"},Xe={class:"left-column page-column"},Ye={class:"inner-page-wrapper"},Qe={class:"right-column sidebar sidebar--mobile-bottom page-column"},Ze={key:0,class:"game-about preview-block whitebox"},et={class:"text-block"},tt=G({__name:"[id]",async setup(O){let h,i;const{$i18n:x}=ee(),m=te(),{id:f}=m.params,t=F();let g={};const s=F(),u=F();let P=[{to:"/",text:"ÐлавнаÑ",image:""},{to:`${r.matchCenter.root}/${r.matchCenter.child.league.root}`,text:"ТÑÑниÑÑ"}];const{data:w}=([h,i]=ae(()=>le(`/fixture/${f}`,{pick:["data"]})),h=await h,i(),h);g=w.value?.data.league,t.value=w.value?.data,s.value=w.value?.data.venue;const H=c=>{if(!c||c.length<=0)return null;const b=c.find(p=>p.code==="referee"),v=c.find(p=>p.code==="reserved"),k=c.filter(p=>p.code!=="referee");let y="";
1return k.forEach((p,C)=>{C>0&&(y+=", "),y+=p.name}),{main:b,reserved:v,helpers:y}};u.value=H(w.value?.data.referees);const{isAsia:R}=de(),{isMobile:j}=Z(),E=_(()=>(R?w.value?.data?.prediction:null)??null),z=_(()=>j&&E.value!==null);pe({prediction:E,homeName:_(()=>t.value?.teams?.home?.name??""),awayName:_(()=>t.value?.teams?.away?.name??"")}),g&&(P.push({to:`${r.matchCenter.root}/${r.matchCenter.child.league.root}/${g.id}`,text:`${g.country}. ${g.name}`,image:g.logoUrl}),P.push({to:"#",text:`${t.value.teams.home.name} â ${t.value.teams.away.name}`}));const B=_(()=>{if(!t.value?.teams||!s.value)return"";const c=t.value.teams.home.name,b=t.value.teams.away.name,v=g?.name,k=t.value.round?`, ${t.value.round}`:"",y=`${s.value.name} (${s.value.city})`,p=t.value.startDate.displayDateFull,C=t.value.startDate.time;return x.t("ТекÑÑ Ð¾ маÑÑе",{home:c,away:b,league:v,round:k,venue:y,date:p,time:C})}),M=_(()=>[{to:`${r.matchCenter.root}/${r.matchCenter.child.game}/${m.params.id}`,text:"ÐбзоÑ"},...z.value?[{to:`${r.matchCenter.root}/${r.matchCenter.child.game}/${m.params.id}/ai`,text:"AI-пÑогноз",class:"hidden-md-min"}]:[],{to:`${r.matchCenter.root}/${r.matchCenter.child.game}/${m.params.id}/stats`,text:"СÑаÑиÑÑика"},{to:`${r.matchCenter.root}/${r.matchCenter.child.game}/${m.params.id}/lineups`,text:"СоÑÑавÑ"},{to:`${r.matchCenter.root}/${r.matchCenter.child.game}/${m.params.id}/comments`,text:"ÐомменÑаÑии"}]),U=_(()=>{if(!m.name)return null;const v=String(m.name).split("___")[0].match(/id-(.+)$/);return v?v[1]:null}),q=_(()=>U.value==="lineups"),J={ai:{title:"fixture_ai",ogTitle:"fixture_ai",description:"fixture_ai",ogDescription:"fixture_ai"},stats:{title:"fixture_stats",ogTitle:"fixture_stats",description:"fixture_stats",ogDescription:"fixture_stat"},lineups:{title:"fixture_lineups",description:"fixture_lineups",ogTitle:"fixture_lineups",ogDescription:"fixture_lineups"},live:{title:"fixture_live",description:"fixture_live",ogTitle:"fixture_live",ogDescription:"fixture_live"},comments:{title:"fixture_comments",description:"fixture_comments",ogTitle:"fixture_comments",ogDescription:"fixture_comments"}},K=_(()=>U.value?J[U.value]??{}:{}),W=_(()=>({home:t.value?.teams?.home?.name,away:t.value?.teams?.away?.name,date:t.value?.startDate?.displayDateFull,league:g?.name,country:g?.country}));return se("fixture",{override:K,params:W}),(c,b)=>{const v=Q,k=ze,y=re,p=oe,C=ne,A=_e,X=Me,Y=ie;return o(),l("div",qe,[a("div",Je,[a("div",Ke,[$(v,{path:e(P)},null,8,["path"])]),$(k,{game:e(t)},null,8,["game"]),a("nav",We,[(o(!0),l(I,null,L(e(M),N=>(o(),D(y,{key:N.to,to:N.to,class:T(N.class)},{default:S(()=>
1[ce(n(c.$t(N.text)),1)]),_:2},1032,["to","class"]))),128))]),a("div",{class:T(["page-wrapper",{"page-wrapper--lineups":e(q)}])},[a("div",Xe,[$(p),a("div",Ye,[$(C,{id:e(f)},null,8,["id"])])]),a("aside",Qe,[e(B)&&e(B).length?(o(),l("div",Ze,[a("header",null,[a("h3",null,n(c.$t("РмаÑÑе")),1)]),a("div",et,n(e(B)),1),e(s)!=null?(o(),D(A,{key:0,caption:c.$t("СÑадион"),image:e(s).imageUrl,title:`${e(s).name} (${e(s).city})`,subtitle:`(${Intl.NumberFormat("fr-FR").format(e(s).capacity)})`},null,8,["caption","image","title","subtitle"])):d("",!0),e(u)&&e(u).main?(o(),D(A,{key:1,caption:c.$t("ÐлавнÑй ÑÑдÑÑ"),image:e(u).main.imageUrl,title:e(u).main.name},null,8,["caption","image","title"])):d("",!0),e(u)&&e(u).reserved?(o(),D(A,{key:2,caption:c.$t("РезеÑвнÑй ÑÑдÑÑ"),image:e(u).main.imageUrl,title:e(u).main.name},null,8,["caption","image","title"])):d("",!0),e(u)&&e(u).helpers?(o(),D(A,{key:3,caption:c.$t("ÐомоÑники ÑÑдÑи"),description:e(u).helpers},null,8,["caption","description"])):d("",!0)])):d("",!0),$(Y,null,{default:S(()=>[$(X,{"container-id":"adfox_dt_right_column",params:{p1:"dmoqy",p2:"joud"}})]),_:1})])],2)])])}}}),it=V(tt,[["__scopeId","data-v-df1e50b6"]]);export{it 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.