1import{o as m,r as p}from"./BNNRdYrd.js";import{I as d,P as S,Tt as _,pt as r,q as g,st as n}from"./DcGtCD8U.js";import{S as T,n as f}from"./BeCnAv6l.js";import{Cu as E,Du as I,El as u,Eu as k,Ja as c,il as C,wl as e}from"./C0ES5k8B.js";import{E as P}from"./Ce6h6zTZ.js";import{D as A,J as D,Yt as N}from"./BCh8aLr1.js";import{t as L}from"./K9rsuiWd.js";var o=m(P());g();var y={key:0,class:"c-global-match-link c-global-match-link--disabled",type:"button"};function b(t,i,a,l,H,s){const h=f;return!s.matchHasTeams||[l.MATCH_STATUSES.DEFWIN,l.MATCH_STATUSES.CANCELED].includes(a.status)?(n(),d("button",y,[r(t.$slots,"default")])):(n(),S(h,{key:1,class:"c-global-match-link","no-prefetch":t.$device.isCrawler,to:{path:s.matchLink,hash:a.hash},onClick:s.handleClick},{default:_(()=>[r(t.$slots,"default")]),_:3},8,["no-prefetch","to","onClick"]))}var G=p({default:()=>$}),M={props:{hash:{type:String},disciplineId:{type:Number},status:{type:String,default:""},slug:{type:String,default:""},boType:{type:Number},parsedStatus:{type:String},games:{type:Array,default:()=>[]},team1Id:{type:Number,default:null},team2Id:{type:Number,default:null}},emits:["on-clicked"],setup(){const t=D();return{MATCH_STATUSES:e,localePath:t}},computed:{...T(N,["disciplineSlugPath","discipline"]),resultingDiscipline(){return this.disciplineId?E[k[this.disciplineId]]:this.discipline},resultingDisciplineSlugPath(){const t=this.resultingDiscipline?.slug;return!t||t===I.CSGO?"":`/${t}`},matchHasTeams(){return!(0,o.default)(this.team1Id)&&!(0,o.default)(this.team2Id)},map(){return A({discipline:this.resultingDiscipline,games:this.games})},itemTo(){switch(!0){case this.status===e.FINISHED:{const t=[u.DONE,u.PARTIALLY_DONE].includes(this.parsedStatus),i=this.boType===C.BO1&&t&&this.map?`/${this.map.slug}`:"";return`${this.resultingDisciplineSlugPath}/${c.MATCHES}/${this.slug}${i}`}case[e.UPCOMING,e.CURRENT].includes(this.status):return`${this.resultingDisciplineSlugPath}/${c.MATCHES}/${this.slug}`;default:return""}},matchLink(){return this.localePath(this.itemTo)}},methods:{handleClick(){this.$emit("on-clicked",this.itemTo)}}},$=Object.assign(L(M,[["render",b]]),{__name:"MatchLink"});export{G as n,$ 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.