PageSourceSearch

https://bold.dk/_nuxtv3/GameListItem.vue.DaGhk_jh.js

js bold.dk collected 2026-10-02 03:03:16 UTC 5,431 bytes, 1 lines download raw bytes

1import{_ as C}from"./ResponsiveImage.vue.CHgZCLcN.js";import{_ as b}from"./TvLogosTooltip.vue.B-xqpCLh.js";import{h as u}from"./moment.DgIkdrus.js";import"./da.HjpNRIUZ.js";import{d as M,c,a as n,e as o,u as d,b as a,f as s,t as l,D as H,n as N,B as h,l as g,k as y}from"./entry.Qot5eQPL.js";const A=["href","aria-label"],D={class:"time"},S={class:"date-time-wrapper"},_={key:0,class:"pulse"},j={key:1,class:"time-progress",style:"width:50%"},F={key:2,class:"time-progress",style:"display:none"},V={key:0,class:"score-container d-flex flex-column justify-content-end"},I=["textContent"],R=["textContent"],U={class:"teams"},z={key:0,class:"w-100 match-round text-secondary"},O={class:"home"},Y=["textContent"],$={class:"d-flex align-items-center"},E=["innerHTML"],G=["innerHTML"],P={class:"away"},W=["textContent"],q={class:"d-flex align-items-center"},J=["innerHTML"],K=["innerHTML"],Q={class:"ms-auto d-flex align-items-center description-container"},X={key:0,class:"tournament-wrapper"},Z={class:"tournament me-3 me-sm-4"},p=["textContent"],me=M({__name:"GameListItem",props:{filterLive:{type:Boolean,default:!1},game:{type:Object,default:null},tournament:{type:Object,default:null},teamLogos:{type:Boolean,default:!1},shortNames:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},showRound:{type:Boolean,default:!1},sliderDate:{type:Boolean,default:!1},hideArrow:{type:Boolean,default:!1},tvlogos:{type:Array,default:null},tvlogosname:{type:Array,default:null},useNotificationDeeplink:{type:Boolean,default:!1},statusType:{type:String,default:null}},setup(e){const m=e;c(()=>m.statusType?m.statusType:m.game.status_type);const f=c(()=>m.game.status_type!="finished"?null:m.game.home_team.score==m.game.away_team.score?"result-x":m.game.home_team.score>m.game.away_team.score?"result-1":"result-2"),w=c(()=>{const t=m.game;return t.status_short==="UD"||t.status_short==="ABA"?"Udsat":t.status_short==="AFL"||t.status_short==="FAW"?"Aflyst":t.status_type==="finished"?"FT":t.status_type==="notstarted"?k(t.date):t.status_type==="inprogress"&&t.time?t.time:(t.status_type==="inprogress",t.status_short)}),v=c(()=>!!(m.game.away_team&&m.game.home_team)),k=t=>u(t).format("HH:mm"),x=t=>{let r=u(),i=u(t);return m.game.status_type==="inprogress"?"":r.diff(i,"days")>363?i.format("D.M.YY"):i.format("D. MMM")},T=t=>{let r=t/90*100;return r>100?100:r.toFixed()},L=t=>m.useNotificationDeeplink?"https://www.bold.dk/kampdetaljer/"+t.id:t.url+"/kampinfo";return(t,r)=>{const i=C,B=b;return d(v)&&!e.filterLive||e.filterLive&&e.game.status_type=="inprogress"?(a(),n("li",{key:0,class:g(["list-group-item list-games-item",[e.game.status_type,d(f)]])},[s("a",{class:"matchesbar-link",href:L(e.game),"aria-label":e.game.home_team.name+" vs. "+e.game.away_team.name},[s("div",D,[s("div",S,[s("small",null,l(x(e.game.date)),1),s("span",null,[H(l(d(w))+" ",1),e.game.status_type==="inprogress"&&e.game.time?(a(),n("div",_)):o("",!0)]),e.game.time?(a(),n("div",{key:0,class:"time-progress",style:N("width:"+T(e.game.time)+"%")}
1,null,4)):e.game.status_short=="HT"?(a(),n("div",j)):(a(),n("div",F))])]),e.showScore&&e.game.home_team.score!=null&&e.game.away_team.score!=null?(a(),n("div",V,[e.showScore&&e.game.home_team.score!=null?(a(),n("div",{key:0,class:"score home",textContent:l(e.game.status_type=="notstarted"?"":e.game.home_team.score)},null,8,I)):o("",!0),e.showScore&&e.game.away_team.score!=null?(a(),n("div",{key:1,class:"score away",textContent:l(e.game.status_type=="notstarted"?"":e.game.away_team.score)},null,8,R)):o("",!0)])):o("",!0),s("div",U,[e.showRound&&e.game.round?(a(),n("small",z,l(e.game.round),1)):o("",!0),s("div",O,[e.showScore?(a(),n("div",{key:0,class:"matchesbar-score score",textContent:l(e.game.status_type=="notstarted"?"":e.game.home_team.score)},null,8,Y)):o("",!0),s("div",$,[h(i,{"image-file-name":e.game.home_team.image_name!==null?e.game.home_team.image_name:"8653.png",width:16,height:16,alt:e.game.home_team.name,"image-type":"tag",class:"me-1"},null,8,["image-file-name","alt"]),e.shortNames?(a(),n("p",{key:0,class:"teamname d-md-none",innerHTML:e.game.home_team.shortname},null,8,E)):o("",!0),s("p",{class:g([{"d-none d-md-inline-block":e.shortNames},"teamname"]),innerHTML:e.game.home_team.name},null,10,G)])]),s("div",P,[e.showScore?(a(),n("div",{key:0,class:"matchesbar-score score",textContent:l(e.game.status_type=="notstarted"?"":e.game.away_team.score)},null,8,W)):o("",!0),s("div",q,[h(i,{"image-file-name":e.game.away_team.image_name!==null?e.game.away_team.image_name:"8653.png",width:16,height:16,alt:e.game.away_team.name,"image-type":"tag",class:"me-1"},null,8,["image-file-name","alt"]),e.shortNames?(a(),n("p",{key:0,class:"d-md-none teamname",innerHTML:e.game.away_team.shortname},null,8,J)):o("",!0),s("p",{class:g(["teamname",{"d-none d-md-inline-block":e.shortNames}]),innerHTML:e.game.away_team.name},null,10,K)])])]),s("div",Q,[e.tournament?(a(),n("div",X,[s("div",Z,[s("small",{class:"text-secondary d-none d-sm-inline-block mx-2",textContent:l(e.tournament.name)},null,8,p),e.tournament.image_name?(a(),y(i,{key:0,"image-file-name":e.tournament.image_name,alt:e.tournament.name,title:e.tournament.name,width:20,height:20,"image-type":"tag"},null,8,["image-file-name","alt","title"])):o("",!0)])])):o("",!0),e.tvlogos?(a(),y(B,{key:1,tvlogos:e.tvlogos,tvlogosname:e.tvlogosname},null,8,["tvlogos","tvlogosname"])):o("",!0)])],8,A)],2)):o("",!0)}}});export{me as _};

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.