PageSourceSearch

https://www.gloucesterrugby.co.uk/_nuxt/_matchSlug_.7HBRc5JO.js

js gloucesterrugby.co.uk collected 2026-10-02 07:52:34 UTC 14,795 bytes, 1 lines download raw bytes

1import{_ as he}from"./Spinner.vue.1cOUj6v2.js";import{_ as _e}from"./Image.vue.P4G8NEVC.js";import{az as O,aB as u,aZ as le,aF as c,aG as S,aH as s,aK as ye,aI as e,b4 as ge,aW as k,aX as M,b5 as xe,aL as D,aQ as be,aP as de,aS as d,aR as A,aO as n,aU as ve,aJ as U,aT as we,aA as ke,ay as Te,a_ as $e,b6 as Ie,b7 as Se}from"./entry.18Ab6wtJ.js";import{_ as Me}from"./Countdown.vue.acWSwrt9.js";import{b as R}from"./matchUtil.atpbJ4oK.js";import{u as Ue}from"./dateformatter.6IyrwTok.js";import{F as re,l as me,e as ie,f as De,g as Ne}from"./index.awlp7-2k.js";import{u as Be}from"./sponsor.aoUFjNmo.js";import{_ as Ee}from"./Tabs.vue.Cvnba9RX.js";import{p as je}from"./GridFeed.vue.QuF33qX2.js";import{_ as Fe}from"./EmptyState.vue.BtBnRQP-.js";import{a as Re,r as Ae}from"./asyncData.DIwTZhb-.js";import{f as ze}from"./index.DPyDSWfH.js";import"./imageUtil.PcyEBP_W.js";import"./TabItem.DWe7GPin.js";import"./composables.Djlt7zS-.js";import"./_plugin-vue_export-helper.DCyA4Sjg.js";import"./TransitionExpand.CBgGCccb.js";import"./index.CdEGs7T2.js";import"./Video.vue.CbK6NZ79.js";import"./sourcepoint.BgE437fX.js";import"./util.DEVswP8N.js";import"./Sponsor.vue.D3LXEFI8.js";import"./Card.vue.56iDo0YH.js";import"./content.BCf1b4Iv.js";(function(){try{var v=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_=new v.Error().stack;_&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[_]="639924c5-d606-46af-93c5-4b1dba8f803a",v._sentryDebugIdIdentifier="sentry-dbid-639924c5-d606-46af-93c5-4b1dba8f803a")}catch{}})();const Le={class:"flex justify-center text-secondary-foreground font-sans text-caption"},Ce={class:"flex justify-end px-4 border-r border-neutral-300 w-2/4"},He={class:"text-secondary-foreground-accent"},Oe={class:"text-left px-4 w-2/4"},Ve={class:"text-secondary-foreground-accent"},Ye={class:"flex justify-center text-secondary-foreground font-medium text-caption"},Ge={class:"flex justify-end px-4 border-r border-neutral-300 w-2/4"},Ze={class:"text-secondary-foreground-accent"},Je={class:"text-left px-4 w-2/4"},Ke={class:"text-secondary-foreground-accent"},Pe={class:"flex justify-center pb-6 text-secondary-foreground font-medium text-caption"},We={class:"flex justify-end px-4 border-r border-neutral-300 w-2/4"},Xe={class:"text-secondary-foreground-accent"},Qe={class:"text-left px-4 w-2/4"},qe={class:"text-secondary-foreground-accent"},et={class:"absolute bg-gradient-to-t from-secondary-background from-30% to-transparent opacity-90 inset-0"},tt={class:"absolute bottom-1 left-1/2 -translate-x-1/2"},st=O({__name:"ScoreSummary",props:{match:{}},setup(v){const _=v,g=u(()=>_.match.homeTeam.id),i=u(()=>_.match.awayTeam.id),T=f=>f==null?void 0:f.reduce((p,h)=>(p[h.id]=h,p),{}),w=u(()=>T(_.match.homeTeam.players)),N=u(()=>T(_.match.awayTeam.players)),b=(f,p)=>{var h,a;return(a=(h=_==null?void 0:_.match)==null?void 0:h.events)==null?void 0:a.filter(r=>r.type===f&&r.teamId===p)},$=u(()=>b(R.TRY,g.value)||[]),j=u(()=>b(R.CONVERSION,g.value)||[]),B=u(()=>b(R.PENALTY,g.value)||[]),m=u(()=>b(R.TRY,i.value)||[]),F=u(()=>b(R.CONVERSION,i.value)||[]),I=u(()=>b(R.PENALTY,i.value)||[]),t=u(()=>{var f;return((f=_==null?void 0:_.match)==null?void 0:f.status)==="fixture"}),o=u(()=>{var f,p,h,a,r,x;return!((f=$.value)!=null&&f.length)&&!((p=m.value)!=null&&p.length)&&!((h=j.value)!=null&&h.length)&&!((a=F.value)!=null&&a.length)&&!((r=B.value)!=null&&r.length)&&!((x=I.value)!=null&&x.length)}),l=le(!1),y=()=>{l.value=!l.value};return(f,p)=>{const h=be;return!s(t)&&!s(o)?(n(),c("div",{key:0,class:ye(["overflow-hidden mb-8 relative",s(l)?"max-h-full pb-10":"max-h-52"])},[p[0]||(p[0]=e("div",{class:"text-secondary-foreground text-center pt-4 pb-2 border-t-2 border-secondary-foreground-subtle uppercase font-bebas-neue"},"Tries",-1)),e("div",Le,[e("div",Ce,[e("div",null,[(n(!0),c(k,null,M(s($),a=>{var r;return n(),c("div",{key:`score-summary-home-try-${a.id}`,class:"text-right"},[e("span",null,d((r=s(w)[a.playerId])==null?void 0:r.name),1),e("span",He,d(` (${a==null?void 0:a.minute}’)`),1)])}),128))])]),e("div",Oe,[(n(!0),c(k,null,M(s(m),a=>{var r;return n(),c("div",{key:`score-summary-away-try-${a.id}`},[e("span",Ve,d(`(${a==null?void 0:a.minute}’) `),1),e("span",null,d((r=s(N)[a.playerId])==null?void 0:r.name),1)])}),128))])]),p[1]||(p[1]=e("div",{class:"text-secondary-foreground text-center pt-4 pb-2 uppercase font-bebas-neue"},"Conversions",-1)),e("div",Ye,[e("div",Ge,[e("div",null,[(n(!0),c(k,null,M(s(j),a=>{var r;return n(),c("div",{key:`score-summary-home-conversation-${a.id}`,class:"text-right"},[e("span",null,d((r=s(w)[a.playerId])==null?void 0:r.name),1),e("span",Ze,d(` (${a==null?void 0:a.minute}’)`),1)])}),128))])]),e("div",Je,[(n(!0),c(k,null,M(s(F),a=>{var r;return n(),c("div",{key:`score-summary-away-conversation-${a.id}`},[e("span",Ke,d(`(${a==null?void 0:a.minute}’) `),1),e("span",null,d((r=s(N)[a.playerId])==null?void 0:r.name),1)])}),128))])]),p[2]||(p[2]=e("div",{class:"text-secondary-foreground text-center pt-4 pb-2 uppercase font-bebas-neue"},"Penalties",-1)),e("div",Pe,[e("div",We,[e("div",null,[(n(!0),c(k,null,M(s(B),(a,r)=>{var x;return n(),c("div",{key:`score-summary-home-conversation-${r}`,class:"text-right"},[e("span",null,d((x=s(w)[a.playerId])==null?void 0:x.name),1),e("span",Xe,d(` (${a==null?void 0:a.minute}’)`),1)])}),128))])]),e("div",Qe,[(n(!0),c(k,null,M(s(I),(a,r)=>{var x;return n(),c("div",{key:`score-summary-away-conversation-${r}`},[e("span",qe,d(`(${a==null?void 0:a.minute}’) `),1),e("span",null,d((x=s(N)[a.playerId])==null?void 0:x.name),1)])}),128))])]),ge(e("div",et,null,512),[[xe,!s(l)]]),e("div",tt,[D(h,{variant:"transparent",class:"bg-secondary-background-subtle text-secondary-foreground-emphasis font-bebas-neue text-lg",iconAppend:s(l)?"chevron_up":"chevron_down",onClick:y},{default:de(()=>
1[A(d(s(l)?"SEE LESS":"SEE MORE"),1)]),_:1},8,["iconAppend"])])],2)):S("",!0)}}}),at={class:"relative w-full z-0"},nt={class:"bg-secondary-background w-full flex flex-col items-center"},ot={class:"my-6 flex flex-col items-center font-bebas-neue tracking-[1px]"},ct={key:0,class:"bg-secondary-background-subtle rounded-full px-2 py-1 caption text-secondary-foreground text-opacity-80 mb-1 font-sans"},rt={class:"text-secondary-foreground"},it={key:1,"data-testid":"date-text",class:"text-caption uppercase text-secondary-foreground-subtle leading-tight text-opacity-80"},lt={"data-testid":"venue",class:"text-caption text-secondary-foreground-subtle leading-tight text-opacity-80"},dt={key:2,class:"mt-1 md:mt-2 w-20 md:w-32"},mt={class:"flex justify-between items-center w-full max-w-7xl"},ut={class:"flex-1 flex flex-col justify-between justify-self-center h-full gap-y-1 md:gap-y-2"},pt={class:"w-12 md:w-24 mx-auto"},ft={key:0,class:"block"},ht={"data-testid":"home-team",class:"block leading-none text-subtitle font-bebas-neue font-step-2 uppercase md:text-h2 text-secondary-foreground md:whitespace-nowrap text-center w-full"},_t={key:0,class:"hidden lg:flex justify-center mt-4 space-x-1"},yt={class:"flex flex-col items-center font-bebas-neue"},gt={key:0,class:"flex space-x-2"},xt={class:"w-10 h-10 md:w-14 md:h-14 bg-secondary-background-subtle rounded-2xl text-h4 text-secondary-foreground flex justify-center items-center"},bt={class:"w-10 h-10 md:w-14 md:h-14 bg-secondary-background-subtle rounded-2xl text-h4 text-secondary-foreground flex justify-center items-center"},vt={class:"bg-secondary-background-subtle rounded-full px-4 py-2 text-subtitle text-secondary-foreground align-middle"},wt={class:"flex-1 flex flex-col justify-between justify-self-center h-full gap-y-1 md:gap-y-2"},kt={class:"w-12 md:w-24 mx-auto"},Tt={key:0,class:"block"},$t={"data-testid":"away-team",class:"block leading-none text-subtitle font-bebas-neue font-step-2 uppercase md:text-h2 text-secondary-foreground md:whitespace-nowrap text-center w-full"},It={key:0,class:"hidden lg:flex justify-center mt-4 space-x-1"},St={key:0,class:"mx-auto"},Mt={class:"flex flex-col items-center"},Ut=["src","alt"],Dt={class:"mx-auto mt-10 w-full max-w-sm"},Nt=O({__name:"MatchHero",props:{match:{},showCountDown:{type:Boolean}},setup(v){const _=Be(),{sponsors:g}=ve(_),i=v,T=u(()=>{var t;return((t=i.match)==null?void 0:t.status)===ie.FIXTURE}),w=u(()=>{var t;return me.includes((t=i.match)==null?void 0:t.status)}),N=u(()=>{var t;return((t=i.match)==null?void 0:t.status)===ie.RESULT}),{dayDateFormat:b,timeDateFormat:$}=Ue(),j=u(()=>i.match.tbc?"TBC":$(new Date(i.match.date))),B=u(()=>b(new Date(i.match.date)).replace(",","")),m=u(()=>{var o,l;const t=(l=(o=g.value)==null?void 0:o.filter(y=>!y.tags.includes("dark")))==null?void 0:l[0];return t?{image:t.url,name:t.name}:{}}),F=u(()=>{var t;return(t=i==null?void 0:i.match)==null?void 0:t.minute}),I=u(()=>{var t,o;return{logo:((t=i==null?void 0:i.match)==null?void 0:t.competitionImageUrl)||"",label:((o=i==null?void 0:i.match)==null?void 0:o.compName)||""}});return(t,o)=>{var h,a,r,x,z,L,C,H,V,Y,G,Z,J,K,P,W,X,Q,q,ee,te,se,ae,ne,oe,ce;const l=_e,y=we,f=Me,p=st;return n(),c("header",at,[e("div",nt,[e("div",ot,[s(w)?(n(),c("div",ct,[o[0]||(o[0]=e("span",{class:"text-secondary-foreground-accent"},"●",-1)),o[1]||(o[1]=A(" Live ")),e("span",rt,d(s(F))+"′",1)])):(n(),c("span",it,d(s(B))+" • "+d(s(j)),1)),e("span",lt,d(t.match.venue.name),1),(h=s(I))!=null&&h.logo?(n(),c("div",dt,[D(l,{class:"block mx-auto",src:s(I).logo,alt:((a=s(I))==null?void 0:a.label)||"Competition name",sizes:["320"]},null,8,["src","alt"])])):S("",!0)]),e("div",mt,[e("div",ut,[e("div",pt,[(x=(r=t.match)==null?void 0:r.homeTeam)!=null&&x.imageUrl?(n(),c("div",ft,[D(l,{src:(L=(z=t.match)==null?void 0:z.homeTeam)==null?void 0:L.imageUrl,alt:((H=(C=t.match)==null?void 0:C.homeTeam)==null?void 0:H.name)||((Y=(V=t.match)==null?void 0:V.homeTeam)==null?void 0:Y.shortName)||"Team name",sizes:["60","80","120"],lazy:!1,objectContain:"",class:"h-10 md:h-20 block mx-auto"},null,8,["src","alt"])])):(n(),U(y,{key:1,name:"placeholder_crest",size:"40"}))]),e("span",ht,d((Z=(G=t.match)==null?void 0:G.homeTeam)==null?void 0:Z.name),1),s(T)&&t.match.homeTeamForm?(n(),c("div",_t,[(n(!0),c(k,null,M(t.match.homeTeamForm,E=>(n(),U(y,{key:E.matchId,size:"20",name:s(re)[E.result]},null,8,["name"]))),128))])):S("",!0)]),e("div",yt,[s(w)||s(N)?(n(),c("div",gt,[e("div",xt,d(((K=(J=t.match)==null?void 0:J.homeTeam)==null?void 0:K.score)||0),1),e("div",bt,d(((W=(P=t.match)==null?void 0:P.awayTeam)==null?void 0:W.score)||0),1)])):s(T)&&t.showCountDown?(n(),c(k,{key:1},[o[6]||(o[6]=e("span",{class:"text-secondary-foreground text-caption mb-1 tracking-[1px]"},"Kickoff",-1)),e("div",vt,[t.showCountDown?(n(),U(f,{key:0,time:new Date(t.match.date).getTime()-new Date().getTime(),class:"flex items-center"},{default:de(({days:E,hours:ue,minutes:pe,seconds:fe})=>[A(d(E),1),o[2]||(o[2]=e("span",{class:"text-caption text-secondary-foreground-accent pl-1 pr-3"},"D",-1)),A(" "+d(ue),1),o[3]||(o[3]=e("span",{class:"text-caption text-secondary-foreground-accent pl-1 pr-3"},"H",-1)),A(" "+d(pe),1),o[4]||(o[4]=e("span",{class:"text-caption text-secondary-foreground-accent pl-1 pr-3"},"M",-1)),A(" "+d(fe),1),o[5]||(o[5]=e("span",{class:"text-caption text-secondary-foreground-accent pl-1 pr-3"},"S",-1))]),_:1,__:[2,3,4,5]},8,["time"])):S("",!0)])],64)):S("",!0)]),e("div",wt,[e("div",kt,[(Q=(X=t.match)==null?void 0:X.awayTeam)!=null&&Q.imageUrl?(n(),c("div",Tt,[D(l,{src:(ee=(q=t.match)==null?void 0:q.awayTeam)==null?void 0:ee.imageUrl,alt:((se=(te=t.match)==null?void 0:te.awayTeam)==null?void 0:se.name)||((ne
1=(ae=t.match)==null?void 0:ae.awayTeam)==null?void 0:ne.shortName)||"Team name",objectContain:"",sizes:["60","80","120"],class:"h-10 md:h-20 block mx-auto"},null,8,["src","alt"])])):(n(),U(y,{key:1,name:"placeholder_crest",size:"40"}))]),e("span",$t,d((ce=(oe=t.match)==null?void 0:oe.awayTeam)==null?void 0:ce.name),1),s(T)&&t.match.awayTeamForm?(n(),c("div",It,[(n(!0),c(k,null,M(t.match.awayTeamForm,E=>(n(),U(y,{key:E.matchId,size:"20",name:s(re)[E.result]},null,8,["name"]))),128))])):S("",!0)])]),s(m)&&(s(m).image||s(m).name)?(n(),c("div",St,[e("div",Mt,[o[7]||(o[7]=e("span",{class:"text-[12px] font-bebas-neue text-secondary-foreground-subtle text-opacity-70"},"Sponsored by",-1)),e("img",{role:"presentation",src:`${s(m).image}?width=70`,alt:s(m).name,class:"lazyload"},null,8,Ut)])])):S("",!0),e("div",Dt,[D(p,{match:t.match},null,8,["match"])])])])}}}),Bt={key:1},Et={class:"bg-white py-2 mb-10 font-bebas-neue flex justify-center"},jt={class:"2xl:container"},Ft={class:"pb-6 md:pb-10"},rs=O({__name:"[matchSlug]",setup(v){const g=ke().params.matchSlug.toString(),i=Te(),{teamId:T}=i.public.teams[0],w=le(null),N=u(()=>[{label:"News",path:`/match/${g}/news`},{label:"Commentary",path:`/match/${g}/commentary`},{label:"Stats",path:`/match/${g}/stats`},{label:"Lineups",path:`/match/${g}/lineups`}]),b=()=>{var l,y;if(me.includes((l=m==null?void 0:m.currentMatch)==null?void 0:l.status))return!0;const o=new Date((y=m==null?void 0:m.currentMatch)==null?void 0:y.date).getTime()-new Date().getTime();return o>0&&o<=i.public.timingForPrematch},$=()=>{w.value=setTimeout(j,i.public.timeToMatchUpdate)},j=async()=>{try{await F(),b()&&$()}catch{$()}},{pending:B,data:m}=Re(g,async()=>{var p,h;const{data:t}=await De(g,{params:{provider:i.public.dataProvider},noCache:!0}),o={status:"fixture",teamId:T,provider:i.public.dataProvider},{data:l}=await Ne({params:o}),y=l==null?void 0:l.find(({status:a})=>a==="fixture"),f=(h=(p=await ze({params:{linkedIds:`RUGBYVIZ_RUGBY_UNION_MATCH:${t==null?void 0:t.id}`,page:0}}))==null?void 0:p.data)==null?void 0:h.articles;return{currentMatch:t,nextMatch:y,matchArticles:f}},"$7WJ2BE75jl"),F=()=>Ae(g),I=u(()=>{var o,l;const t=(l=(o=m.value)==null?void 0:o.currentMatch)==null?void 0:l.id;return{linkedIds:t?[t.toString()]:[],linkType:"RUGBYVIZ_RUGBY_UNION_MATCH"}});return $e(()=>{window.scrollTo(0,0),b()&&$()}),Ie(()=>{w.value!==null&&window.clearTimeout(w)}),(t,o)=>{var r,x,z,L,C,H;const l=he,y=Nt,f=Ee,p=Se,h=je,a=Fe;return n(),c("div",null,[s(B)?(n(),U(l,{key:0,class:"mx-auto my-4",size:"100"})):(r=s(m))!=null&&r.currentMatch?(n(),c("div",Bt,[D(y,{match:(x=s(m))==null?void 0:x.currentMatch,showCountDown:((z=s(m))==null?void 0:z.currentMatch.id)&&new Date().getTime()<new Date(s(m).currentMatch.date).getTime()},null,8,["match","showCountDown"]),e("div",Et,[D(f,{tabItems:s(N)},null,8,["tabItems"])]),e("article",jt,[e("div",Ft,[(L=s(m))!=null&&L.currentMatch?(n(),U(p,{key:0,match:(C=s(m))==null?void 0:C.currentMatch,articles:(H=s(m))==null?void 0:H.matchArticles,pending:s(B)},null,8,["match","articles","pending"])):S("",!0)]),D(h,{class:"mb-6 md:mb-10",linkedBy:s(I)},null,8,["linkedBy"])])])):(n(),U(a,{key:2,class:"my-10",title:"Match"}))])}}});export{rs 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.