PageSourceSearch

https://premrugby.com/_nuxt/CYokxvGm.js

js premrugby.com collected 2026-10-09 05:21:23 UTC 12,405 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./8L7Q-2LZ.js","./CLrDBPev.js","./Bp1QeOTI.js"])))=>i.map(i=>d[i]);
2import{_ as X,a as ee}from"./CLrDBPev.js";import{_ as F}from"./D52bY9Fy.js";import{d as V,B as E,c as m,g as i,e,b as t,t as r,j as O,a as R,o as n,h as d,_ as Y,E as P,i as b,F as C,f as T,J as te,K as se,k as le,r as ae,n as L,M as oe,u as ne,x as ie,z as re,A as ce,C as pe,I as de,T as M,aL as me,H as ue}from"./Bp1QeOTI.js";import{m as fe}from"./DRciebZC.js";import{_ as ge,u as _e}from"./B1idGHvH.js";import{_ as ye}from"./e0bzrMxD.js";import{a as H}from"./CUvC6PaI.js";import{_ as xe}from"./4cOBOybJ.js";import{_ as he}from"./BIxjx2x8.js";import{s as be}from"./DYn5QHwY.js";import{S as ve,N as we,V as Pe,a as ke}from"./CbNwexQu.js";import{u as q}from"./CnZlVLMO.js";import{u as Se}from"./lvRT-IKM.js";import"./BNlkgt5x.js";import"./DlAUqK2U.js";import"./YhPBtSkN.js";import"./DJ42xg4l.js";import"./DuhF3jpv.js";import"./B34e4RDf.js";import"./CuwTIeuT.js";import"./TcLcVymJ.js";import"./BOWGHeA2.js";const Ie={class:"relative flex flex-col overflow-hidden h-[870px] xl:h-[800px] xl:py-20"},$e={class:"relative container pt-4 flex flex-col h-full max-w-7xl z-40"},Ae={class:"flex justify-between lg:px-0"},Ne={class:"w-fit py-[3px] px-1 font-condensed font-bold text-tiny leading-[1.1] bg-highlight text-primary-600 uppercase xl:px-3 xl:text-body-1"},Be={class:"mt-1 font-ultracondensed text-mono-50 font-bold text-super-heading leading-[0.85] tracking-[0.3px] uppercase xl:mt-4 lg:leading-[0.8]"},Re={class:"font-ultracondensed font-bold text-mono-50 text-h1 leading-[1] tracking-[0.3px] uppercase"},Ce={class:"h-[82px] aspect-square lg:h-60"},Ve={class:"flex justify-between bg-primary-600 text-mono-50 p-4 absolute bottom-0 left-0 w-full lg:bg-transparent"},je={class:"flex flex-col gap-6"},Ee={class:"flex gap-2"},Te={class:"flex flex-col"},Oe={class:"flex gap-2"},ze={class:"flex flex-col"},Ue={key:0,class:"flex gap-2"},De={class:"flex flex-col"},Le={class:"flex flex-col gap-6"},Me={class:"flex gap-2"},He={class:"flex flex-col"},qe={class:"flex gap-2"},Fe={class:"flex flex-col"},Ye=V({__name:"Hero",props:{playerProfile:{},club:{},playerProfileImage:{},playerBackgroundImage:{}},setup(o){const s=o,f=E().public.silhouetteImages.player,a=d(()=>({position:s.playerProfile?.position_select,firstName:s.playerProfile?.playerFirstName_string,lastName:s.playerProfile?.playerLastName_string,dateOfBirth:s.playerProfile?.dateOfBirth_string,placeOfBirth:s.playerProfile?.placeOfBirth_string||"N/A",honours:s.playerProfile?.honours_string,height:s.playerProfile?.height_string||"N/A",weight:s.playerProfile?.weight_string||"N/A"})),g=d(()=>s.playerProfileImage||s.playerProfile?.profileImage_content?.image),h=d(()=>s.playerBackgroundImage||s.playerProfile?.backgroundImage_content?.image);return(u,l)=>{const _=F,p=Y;return n(),m("div",Ie,[i(_,{src:t(h)||"https://media-cdn.incrowdsports.com/9489bd54-50fd-4b6b-992e-08493d1c34c2.png?width=1920",alt:"background image",class:"absolute top-0 left-0 w-full h-full object-cover max-w-7xl"},null,8,["src"]),l[6]||(l[6]=e("img",{src:"https://media-cdn.incrowdsports.com/685f714f-871c-4232-b45e-54c5e37d1b6d.svg",class:"absolute top-0 right-0 lg:right-[-300px] xl:-right-0 w-[max(375px,min(88vw,570px))] md:w-[min(min(70vw,660px),100%)] lg:w-[98%] xl:w-[60vw] 2xl:w-[64vw] h-full z-10 object-cover object-left-bottom lg:object-[left_center]"},null,-1)),l[7]||(l[7]=e("span",{class:"absolute top-0 left-0 w-full h-full z-10 bg-primary-600 opacity-90"},null,-1)),i(_,{src:t(g)||t(f),alt:`${t(a).firstName} ${t(a).lastName}`,class:"absolute bottom-[220px] lg:bottom-0 left-1/2 -translate-x-1/2 h-[500px] lg:h-full object-cover z-30 xl:block"},null,8,["src","alt"]),e("div",$e,[e("div",Ae,[e("div",null,[e("p",Ne,r(t(a).position),1),e("p",Be,[O(r(t(a).firstName)+" ",1),l[0]||(l[0]=e("br",null,null,-1)),O(" "+r(t(a).lastName),1)]),e("p",Re,r(o.club?.name),1)]),e("div",Ce,[i(_,{src:o.club?.logoLight?.src||o.club?.logoDark?.src,alt:o.club?.name},null,8,["src","alt"])])]),e("div",Ve,[e("div",je,[e("div",Ee,[i(p,{name:"calendar",class:"text-highlight"}),e("div",Te,[l[1]||(l[1]=e("p",{class:"font-condensed font-bold text-subtitle leading-[1.21] tracking-[0.3px] uppercase xl:leading-[1.03]"},"Date of birth",-1)),e("p",null,r(t(a).dateOfBirth),1)])]),e("div",Oe,[i(
2p,{name:"location-pin",class:"text-highlight"}),e("div",ze,[l[2]||(l[2]=e("p",{class:"font-condensed font-bold text-subtitle leading-[1.21] tracking-[0.3px] uppercase xl:leading-[1.03]"},"place of birth",-1)),e("p",null,r(t(a).placeOfBirth),1)])]),t(a).honours?(n(),m("div",Ue,[i(p,{name:"shield",class:"text-highlight"}),e("div",De,[l[3]||(l[3]=e("p",{class:"font-condensed font-bold text-subtitle leading-[1.21] tracking-[0.3px] uppercase xl:leading-[1.03]"},"Honours",-1)),e("p",null,r(t(a).honours),1)])])):R("",!0)]),e("div",Le,[e("div",Me,[i(p,{name:"ruler",class:"text-highlight"}),e("div",He,[l[4]||(l[4]=e("p",{class:"font-condensed font-bold text-subtitle leading-[1.21] tracking-[0.3px] uppercase xl:leading-[1.03]"},"height",-1)),e("p",null,r(t(a).height),1)])]),e("div",qe,[i(p,{name:"weight",class:"text-highlight"}),e("div",Fe,[l[5]||(l[5]=e("p",{class:"font-condensed font-bold text-subtitle leading-[1.21] tracking-[0.3px] uppercase xl:leading-[1.03]"},"weight",-1)),e("p",null,r(t(a).weight),1)])])])])])])}}}),Ge=te(()=>se(()=>import("./8L7Q-2LZ.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.default||o)),Ze={class:"mt-4 xl:mt-10"},Je={class:"grid lg:grid-cols-5 md:grid-cols-3 sm:grid-cols-2 gap-4"},Ke={class:"flex justify-center items-center grow overflow-hidden"},We={class:"font-condensed font-extrabold text-primary-600 text-4xl md:text-7xl tracking-[0.3px] uppercase"},Qe={class:"flex justify-center align-items p-2 md:p-5 font-flama font-bold text-[10px] md:text-sm text-mono-50 tracking-[0.4px] md:tracking-[0.48px] whitespace-nowrap uppercase bg-primary-600"},Xe=V({__name:"Stats",props:{playerStats:{}},setup(o){const s=o,{getRequiredStats:x}=_e(),f=d(()=>!s.playerStats),a=d(()=>x(s.playerStats,H)),g=d(()=>Object.keys(H));
2return(h,u)=>{const l=Ge,_=ge;return n(),m("div",Ze,[u[1]||(u[1]=e("h1",{class:"font-condensed font-semibold text-h2 leading-[1.2] tracking-[0.3px] text-primary-600"},"SEASON STATS",-1)),t(f)?(n(),P(l,{key:0,subject:"Club Profile Stats",pronoun:"the"},{image:b(()=>[...u[0]||(u[0]=[e("img",{src:ye,class:"block mb-7",alt:"Club Profile Stats Unavailable"},null,-1)])]),_:1})):(n(!0),m(C,{key:1},T(t(g),(p,k)=>(n(),m("div",{key:p,class:"bg-mono-50 w-full mb-4 drop-shadow-xl"},[i(_,{collapsed:k>0},{name:b(()=>[O(r(p),1)]),default:b(()=>[e("div",Je,[(n(!0),m(C,null,T(t(a)[p],y=>(n(),m("div",{key:y.key,class:"flex flex-col justify-between border border-primary-600 min-h-[176px]"},[e("div",Ke,[e("span",We,r(y.val)+r(y.percentage?"%":""),1)]),e("div",Qe,r(y.text),1)]))),128))])]),_:2},1032,["collapsed"])]))),128))])}}}),et={class:"h-[218px] lg:h-[402px]"},tt={class:"flex flex-col bg-primary-600 py-2 md:py-4 px-2 relative"},st={class:"flex flex-col gap-[3px] items-center font-condensed font-extrabold uppercase"},lt={class:"text-mono-50 text-subtitle leading-[1.2] tracking-[0.3px]"},at={class:"text-primary-200 text-body-2 leading-[1.2] tracking-[0.35px] uppercase"},ot=V({__name:"Card",props:{player:{},club:{}},setup(o){const s=o,f=E().public.silhouetteImages.player,a=d(()=>`${s.player?.firstName} ${s.player?.lastName}`);return(g,h)=>{const u=F,l=le;return n(),P(l,{to:`/clubs/${o.club}/${t(be)(t(a))}`,class:"flex flex-col justify-end shadow-[0_0_16px_rgba(0,0,0,0.1)] lg:shadow-[0_0_20px_rgba(0,0,0,0.1)] overflow-hidden"},{default:b(()=>[e("div",et,[i(u,{class:"w-full h-full object-cover",src:o.player.playerImageUrl||t(f),alt:t(a)},null,8,["src","alt"])]),e("div",tt,[e("div",st,[e("div",lt,r(o.player.firstName.charAt(0))+". "+r(o.player.lastName),1),e("div",at,r(o.player.position),1)])])]),_:1},8,["to"])}}}),nt={class:"my-4 xl:my-10"},it={class:"overflow-x-hidden"},rt={class:"flex items-center justify-between"},ct={class:"text-h2 font-condensed font-bold text-primary-600 tracking-[0.3px]"},pt={class:"flex"},dt=V({__name:"PlayersSlider",props:{players:{},title:{default:"RELATED PLAYERS"},club:{}},setup(o){let s=ae(null);const x=h=>{s.value=h},f=()=>s?.value?.slidePrev(),a=()=>s?.value?.slideNext(),g={320:{slidesPerView:1.21,spaceBetween:16},768:{slidesPerView:2.2,spaceBetween:24},1024:{slidesPerView:4.2,spaceBetween:24}};
2return(h,u)=>{const l=ot,_=oe,p=Y;return n(),m("div",nt,[e("div",it,[e("div",rt,[e("p",ct,r(o.title),1)]),i(_,null,{default:b(()=>[i(t(ve),{breakpoints:g,modules:[t(we),t(Pe)],class:"!overflow-visible mb-4",virtual:"",watchSlidesProgress:!0,preloadImages:!0,onSwiper:x},{default:b(()=>[(n(!0),m(C,null,T(o.players,k=>(n(),P(t(ke),{key:k.id,class:"!h-auto"},{default:b(()=>[i(l,{player:k,club:o.club},null,8,["player","club"]),u[0]||(u[0]=e("div",{class:"swiper-lazy-preloader"},null,-1))]),_:2},1024))),128))]),_:1},8,["modules"])]),_:1})]),e("div",pt,[e("button",{class:L([{"opacity-40 pointer-events-none":t(s)?.isBeginning},"flex items-center justify-center w-14 h-14 bg-secondary-400 text-primary-600"]),onClick:f},[i(p,{name:"chevron_left"})],2),e("button",{class:L([{"opacity-40 pointer-events-none":t(s)?.isEnd},"flex items-center justify-center w-14 h-14 bg-secondary-400 text-primary-600"]),onClick:a},[i(p,{name:"chevron_right"})],2)])])}}}),mt={key:0},ut={class:"container pt-0 md:pt-6 !max-w-7xl"},Tt=V({__name:"[player]",async setup(o){let s,x;const f=ne(),a=E(),{teams:g}=ie(q()),{initTeamsStore:h}=q(),{teamIdCategoryMapping:u,categories:l}=E().public,_=f.params?.player,p=f.params?.club,k=async S=>{const I={provider:a.public.dataProvider,competitionId:a.public.compId,seasonId:a.public.season},{data:$}=await me(S,{params:I}),{data:{article:v}}=await ue(f.params.player),N=v?.linkedIds.find(({sourceSystem:w})=>w==="RUGBYVIZ_RUGBY_UNION_PLAYER")?.sourceSystemId,A=$?.find(w=>+w?.playerId==+N),B=$?.filter(w=>w.id!==A?.id);return{player:A,playerArticle:v,relatedPlayers:B}};g.value?.length||([s,x]=re(()=>h()),await s,x());const y=d(()=>g.value?.find(S=>S.slug===p)),j=y.value?.id,{data:c,pending:G}=ce(`player-${_}`,async()=>{if(!j)return;const{relatedPlayers:S,player:I,playerArticle:$}=await k(j),v=d(()=>u.find(B=>+B.teamId==+y.value?.id)?.categoryId||""),[N,A]=await Promise.all([M({params:{size:6,query:`singlePage:false AND ((linkedIds.sourceSystem:RUGBYVIZ_RUGBY_UNION_TEAM AND linkedIds.sourceSystemId:${j}) OR categories.id:("${l.news}" AND "${v.value}"))`}}),M({params:{size:6,query:`categories.id:("${l.matchHighlights}" AND "${v.value}")`}})]);return{club:y,clubId:j,player:I,playerArticle:$,relatedPlayers:S,matchArticlesResponse:N.data?.articles||[],matchVideosResponse:A.data?.articles||[]}}),{width:z}=Se(),Z=d(()=>z.value<1024),J=d(()=>z.value<768),K=d(()=>J.value?1.2:Z.value?2.2:1.6),U=d(()=>c.value?.playerArticle?.heroMedia.title),W=d(()=>!c.value?.playerArticle);return pe(de({title:`PREM Rugby | ${y?.value?.name} | ${U.value}`,description:`Find out more about ${U.value}`,image:a.public.metaImage},"")),(S,I)=>{const $=X,v=Ye,N=fe,A=Xe,B=xe,w=he,Q=dt;return t(G)?R("",!0):(n(),m("div",mt,[t(W)?(n(),P($,{key:0,subject:"player data"},{image:b(()=>[...I[0]||(I[0]=[e("img",{src:ee,class:"block mb-7",alt:"Player Unavailable"},null,-1)])]),_:1})):(n(),m(C,{key:1},[i(v,{playerProfile:t(c)?.playerArticle?.content[0].customContent,club:t(c)?.club,playerProfileImage:t(c)?.playerArticle?.heroMedia?.content?.imageThumbnail,playerBackgroundImage:t(c)?.playerArticle?.heroMedia?.content?.image},null,8,["playerProfile","club","playerProfileImage","playerBackgroundImage"]),(n(!0),m(C,null,T(t(c)?.playerArticle?.content,D=>(n(),m("div",{key:D.id,class:"container !max-w-7xl !mb-6 xl:!mb-10 last:!mb-0"},[i(N,{content:D},null,8,["content"])]))),128)),e("div",ut,[i(A,{playerStats:t(c)?.player?.stats},null,8,["playerStats"]),t(c)?.matchVideosResponse.length?(n(),P(B,{key:0,articles:t(c)?.matchVideosResponse,slidesPerView:t(K),title:"RELATED VIDEOS",class:"mb-4 md:mb-10 overflow-hidden"},null,8,["articles","slidesPerView"])):R("",!0),t(c)?.matchArticlesResponse.length?(n(),P(w,{key:1,articles:t(c)?.matchArticlesResponse},null,8,["articles"])):R("",!0),t(c)?.relatedPlayers?(n(),P(Q,{key:2,players:t(c)?.relatedPlayers,club:t(c)?.club?.slug},null,8,["players","club"])):R("",!0)])],64))]))}}});
2export{Tt 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.