1import{d as le,o as d,c as te,a as i,b as c,j as x,u as s,m as f,h as ae,w as y,f as _,t as h,n as u,g as ce,L as ie,l as se,k as oe,e as re}from"./CNDQyiD_.js";import{_ as ne}from"./DJtLr6En.js";import{_ as de}from"./UHzv6v-c.js";import{_ as ue}from"./DvOhX9-0.js";const he={class:"relative flex flex-col w-full h-full flex-wrapper"},pe={class:"flex flex-col flex-1 py-4 space-y-4 lg:py-0 lg:space-y-0 card__body"},ge={class:"flex items-start w-full py-[10px] px-4 gap-4 card__content flex-col flex-1"},xe={class:"flex flex-col gap-1 card__meta"},fe={class:"text-sm font-bold leading-none tracking-wider text-gray-400 uppercase card__meta-team"},ke=le({name:"UpcomingFixture",__name:"index",props:{dateString:{},timeString:{},match:{},isHome:{type:Boolean},isResult:{type:Boolean},home:{},opposition:{},theme:{},index:{},crest:{type:Function},data:{},backgroundKey:{}},setup(e){const m=e,me=se(()=>{var l,a;switch((a=(l=p.public)==null?void 0:l.baseStyleObjectCard)==null?void 0:a.borderRadius){case"small":return"rounded-sm";case"medium":return"rounded-lg";case"large":return"rounded-2xl"}}),p=oe(),b=se(()=>{var t,l,a,o;return((l=(t=m.match)==null?void 0:t.mediaAssets)==null?void 0:l.matchReportUrl)!=null||((o=(a=m.match)==null?void 0:a.mediaAssets)==null?void 0:o.ticketUrl)!=null});return(t,l)=>{var w,k,C,v,I,j,S,O,U,H,K,A,G,N,B,D,F,R,T,z,L,W,E,q,J,M,P,Q,V,X,Y,Z,$,ee;const a=re,o=ne,g=ce;return e.match!=null&&((w=e.match)!=null&&w.matchID)?(d(),te("div",{key:0,class:u(["flex flex-col h-full overflow-hidden rounded card upcoming wrapper md:mx-0 min-w-[256px] w-full",[("useStyleObject"in t?t.useStyleObject:s(ie))((k=e.data)==null?void 0:k.style),s(me),{"bg-white":e.theme=="light","bg-primary-500":e.theme=="club",hasButtons:s(b),"bg-slate-950":e.theme=="dark"}]])},[i("div",he,[c(ue,{"date-string":e.dateString,"time-string":e.timeString,"is-home":e.isHome,"is-home-away-custom":(v=(C=e.match)==null?void 0:C.mediaAssets)==null?void 0:v.homeOrAway_Custom,"is-result":e.isResult,"competition-crest":(j=(I=m.match)==null?void 0:I.competitionImage_Custom)!=null&&j.key?(O=(S=m.match)==null?void 0:S.competitionImage_Custom)==null?void 0:O.key:m.theme==="dark"||m.theme==="club"?(H=(U=m.match)==null?void 0:U.competitionIcons)==null?void 0:H["crest-white-outline"]:(A=(K=m.match)==null?void 0:K.competitionIcons)==null?void 0:A["crest-full-colour"],theme:e.theme,class:"card__header"},null,8,["date-string","time-string","is-home","is-home-away-custom","is-result","competition-crest","theme"]),e.index===0&&((D=(B=(N=(G=e.match)==null?void 0:G.mediaAssets)==null?void 0:N.calendarWidgetData)==null?void 0:B.image)!=null&&D.imageKey)?(d(),x(a,{key:0,src:("useGCImage"in t?t.useGCImage:s(f))(!0,1600,1600,(z=(T=(R=(F=e.match)==null?void 0:F.mediaAssets)==null?void 0:R.calendarWidgetData)==null?void 0:T.image)==null?void 0:z.imageKey),class:"absolute object-cover object-center w-full h-full card__crest z-[-1]"},null,8,["src"])):e.backgroundKey!=null?(d(),x(a,{key:1,src:("useGCImage"in t?t.useGCImage:s(f))(!0,1600,1600,e.backgroundKey),class:"absolute object-cover object-center w-full h-full card__crest z-[-1]"},null,8,["src"])):ae("",!0),i("div",pe,[i("div",ge,[c(o,{"event-time":(L=e.match)==null?void 0:L.kickOffUTC,class:"hidden text-[12px] card__timer--tall"},null,8,["event-time"]),c(g,{tag:"h3",class:u(["hidden text-5xl font-bold tracking-tight card__meta-name--tall",{"!font-sans heading-secondary":(E=(W=s(p).public)==null?void 0:W.styleOptions)==null?void 0:E.cardsUseSecondary,"text-gray-900":e.theme=="light","!text-white":e.theme=="club",hasButtons:s(b),"text-white":e.theme=="dark"}])},{default:y(()=>{var r,n;return[_(h(e.isHome?(r=e.opposition)==null?void 0:r.teamName:(n=e.home)==null?void 0:n.teamName),1)]}),_:1},8,["class"]),e.isHome&&((q=e.opposition)!=null&&q.teamCrest||(M=(J=e.opposition)==null?void 0:J.teamCrest_Custom)!=null&&M.Key)||!e.isHome&&((P=e.home)!=null&&P.teamCrest||(V=(Q=e.home)==null?void 0:Q.teamCrest_Custom)!=null&&V.Key)?(d(),x(a,{key:0,src:("useGCImage"in t?t.useGCImage:s(f))(!0,256,256,e.crest(e.isHome?e.opposition:e.home)),alt:"DEF Logo",class:"h-[128px] w-[128px] object-contain object-center card__crest"},null,8,["src"])):ae("",!0),i("div",xe,[i("p",fe,h((X=e.match)==null?void 0:X.slugTeamName),1),c(g,{tag:"h3",class:u(["text-5xl font-bold leading-none card__meta-name",{"text-gray-900":e.theme=="light","text-white":e.theme=="club","text-white":e.theme=="dark","!font-sans heading-secondary":(Z=(Y=s(p).public)==null?void 0:Y.styleOptions)==null?void 0:Z.cardsUseSecondary}])},{default:y(()=>{var r,n;return[_(h(e.isHome?(r=e.opposition)==null?void 0:r.teamName:(n=e.home)==null?void 0:n.teamName),1)]}),_:1},8,["class"]),i("p",{class:u(["leading-none text-md card__meta-venue",{"text-gray-800":e.theme=="light","text-primary-50":e.theme=="club","text-gray-100":e.theme=="dark"}])},h(($=e.match)==null?void 0:$.venue),3)]),c(o,{"event-time":(ee=e.match)==null?void 0:ee.kickOffUTC,class:"hidden text-[12px] card__timer"},null,8,["event-time"])]),c(de,{class:"m-auto actions",data:e.data,theme:e.theme},null,8,["data","theme"])])])],2)):(d(),te("div",{key:1,class:u(["flex flex-col items-center justify-center w-full h-full overflow-hidden rounded card upcoming wrapper min-w-[256px] md:mx-0",{"bg-white":e.theme=="light","bg-primary-300":e.theme=="club"}])},[c(g,{tag:"h5",class:"text-slate-800"},{default:y(()=>[...l[0]||(l[0]=[_(" No Upcoming Fixtures ",-1)])]),_:1})],2))}}});
1export{ke 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.