1import{d as Ge,as as Je,Q as Me,o as g,c as Te,u as t,j as w,h as D,a as Oe,n as p,P as Ne,aq as qe,Z as Qe,K as Re,k as Ue,r as Ve,l as Ze,a2 as Xe,y as Ye}from"./B7jKphlx.js";import{_ as ta}from"./EfG6EZTU.js";import{_ as ea}from"./OY9jkKes.js";import{u as aa}from"./Cv-iJP_1.js";import{u as Ae}from"./CcdEmVkr.js";import"./BMjN2f3G.js";import"./B8wSQjMs.js";import"./COSkJVSb.js";import"./B7i2tHra.js";import"./BTmSVim3.js";import"./Fy2xM-D5.js";import"./scNzA83f.js";import"./DYTfHWGQ.js";import"./CaaC17Ga.js";import"./BzQB0MO4.js";import"./R5usx2lU.js";import"./DyAHmHS3.js";import"./DGgyaokG.js";import"./CPfO20CH.js";import"./BjdxBe_l.js";import"./DMMjVHYg.js";import"./ZENHgEyc.js";const Pa=Ge({name:"DynamicHero",__name:"index",props:{data:{},style:{},widget:{},widgetData:{}},async setup(i){var P,_,j,z,C,F,S,H,K,$,I,L,T,O,q,Q,Z,A,B,E,G,J,M;let u,x;const e=i,b=Ue();let n;n=(P=e==null?void 0:e.style)!=null&&P.theme?{color:{...(j=(_=b.public.club.theme)==null?void 0:_[e.style.theme])==null?void 0:j.color},background:{image:(C=(z=e.style)==null?void 0:z.background)==null?void 0:C.image,color:{...(S=(F=b.public.club.theme)==null?void 0:F[e.style.theme])==null?void 0:S.backgroundColor}},...e.style}:e.style;const m=Ve();m.value=Je();const k=(($=(K=(H=e.widgetData.contents)==null?void 0:H[0].widgetData)==null?void 0:K.contents)==null?void 0:$.length)>=1,Be=(I=e.widgetData)==null?void 0:I.style,a=((T=(L=e==null?void 0:e.data)==null?void 0:L.grid)==null?void 0:T.position)||((Q=(q=(O=e.widget)==null?void 0:O.widgetData)==null?void 0:q.grid)==null?void 0:Q.position),l=((A=(Z=e==null?void 0:e.data)==null?void 0:Z.grid)==null?void 0:A.type)||((G=(E=(B=e.widget)==null?void 0:B.widgetData)==null?void 0:E.grid)==null?void 0:G.type),h=(J=b.public.menus.header)==null?void 0:J.showFixtureCarousel,d=["tight","contained"].includes((M=e==null?void 0:e.widgetData.grid)==null?void 0:M.type),Ee=([u,x]=Me(()=>{var o,s;return Ae((s=(o=e.widgetData)==null?void 0:o.contents)==null?void 0:s[1])}),u=await u,x(),u).data.value,v=Ze(()=>{var o,s,r,c,f,y;return(c=(r=(s=(o=e.widgetData)==null?void 0:o.contents)==null?void 0:s[1])==null?void 0:r.widgetType)!=null&&c.includes("Fixture")?Ae((y=(f=e.widgetData)==null?void 0:f.contents)==null?void 0:y[1]):void 0}),W=Ze(()=>{var o,s,r,c;return((r=(s=(o=v.value)==null?void 0:o.data)==null?void 0:s.value)==null?void 0:r[0])||((c=v.value)==null?void 0:c.data)});return(o,s)=>{var N,R,U,V,X,Y,tt,et,at,it,ot,nt,lt,dt,st,gt,rt,ct,wt,mt,pt,ut,ht,ft,yt,Dt,bt,xt,kt,vt,Wt,Pt,_t,jt,zt,Ct,Ft,St,Ht,Kt,$t,It,Lt,Tt,Ot,qt,Qt,Zt,At,Bt,Et,Gt,Jt,Mt,Nt,Rt,Ut,Vt,Xt,Yt,te,ee,ae,ie,oe,ne,le,de,se,ge,re,ce,we,me,pe,ue,he,fe,ye,De,be,xe,ke,ve,We,Pe,_e,je,ze,Ce,Fe,Se,He,Ke,$e,Ie,Le;const r=Xe,c=Ye,f=ta,y=ea;return g(),Te("section",{class:p(["relative flex w-full overflow-hidden bg-cover hero bg-surface",[{"h-[620px] p-4":t(d)&&(t(a)==="right"||t(a)==="left"),"h-[720px] md:h-[860px] p-4":t(d)&&(t(a)!=="right"||t(a)!=="left"),"h-[620px] md:h-[820px]":t(l)==="inset","h-full mb-4":t(l)==="profile","max-h-[490px] md:max-h-[860px]":!k&&t(d)&&(t(a)!=="right"||t(a)!=="left")&&!t(W),"h-[950px] md:!h-[calc(100%+var(--header-complex))]":t(m).logoPosition==="detached"&&t(h)},`${t(l)} ${t(a)} ${t(n).theme}`,("useStyleObject"in o?o.useStyleObject:t(Re))(t(n))]])},[((U=(R=(N=t(n))==null?void 0:N.background)==null?void 0:R.image)==null?void 0:U.image)!=null?(g(),w(r,{key:0,"image-key":(Y=(X=(V=t(n))==null?void 0:V.background)==null?void 0:X.image)==null?void 0:Y.image,"base-width":1600,"base-height":1600,alt:(tt=i.widget)==null?void 0:tt.title,sizes:[1600,1200,800,600,400],"disable-retina":!0,"disable-lazy":!0,mobile:"blur",class:"absolute top-0 left-0 w-full h-full"},null,8,["image-key","alt"])):D("",!0),Oe("div",{class:p(["relative z-10 flex w-full h-full mx-auto grow",{"flex-col":t(l)==="inset"&&t(a)!=="top"||t(d)&&t(a)==="bottom","gap-4":t(l)==="contained","lg:px-4 container":t(d),"flex-col lg:flex-row":t(d)&&t(a)==="right","flex-col lg:flex-row-reverse":t(d)&&t(a)==="left","flex-col-reverse":t(d)&&t(a)==="top","pt-[14rem] md:pt-[13rem]":((et=t(m))==null?void 0:et.logoPosition)==="detached"&&t(h),"pt-[6rem]":((at=t(m))==null?void 0:at.logoPosition)==="detached"&&!t(h)}])},[Oe("div",{class:p(["flex-1 w-full h-full min-h-0 overflow-hidden hero",{absolute:!t(d)&&t(l)!=="profile"&&t(a)==="top","w-full lg:max-w-[85%]":t(d)&&(t(a)==="left"||t(a)==="right"),inline:t(l)==="profile","md:!h-auto":t(m).logoPosition==="detached"&&t(h)}])},[(lt=(nt=(ot=(it=i.data)==null?void 0:it.contents)==null?void 0:ot[1])==null?void 0:nt.widgetType)!=null&<.includes("Widget")||(ct=(rt=(gt=(st=(dt=e.widget)==null?void 0:dt.widgetData)==null?void 0:st.contents)==null?void 0:gt[1])==null?void 0:rt.widgetType)!=null&&ct.includes("Widget")||(ut=(pt=(mt=(wt=i.data)==null?void 0:wt.contents)==null?void 0:mt[1])==null?void 0:pt.widgetType)!=null&&ut.includes("Fixture")||(bt=(Dt=(yt=(ft=(ht=e.widget)==null?void 0:ht.widgetData)==null?void 0:ft.contents)==null?void 0:yt[1])==null?void 0:Dt.widgetType)!=null&&bt.includes("Fixture")?(Wt=(vt=(kt=(xt=i.widgetData)==null?void 0:xt.contents)==null?void 0:kt[1])==null?void 0:vt.widgetType)!=null&&Wt.includes("WidgetImageLink","WidgetImage")?(g(),w(Qe((jt=(_t=(Pt=i.widgetData)==null?void 0:Pt.contents)==null?void 0:_t[1])==null?void 0:jt.widgetType),qe({key:1,class:"hero-card","is-hero":!0,data:(Ct=(zt=i.widgetData)==null?void 0:zt.contents)==null?void 0:Ct[1],widget:((Ft=i.widgetData.contents)==null?void 0:Ft[1])||((Kt=(Ht=(St=e.widget)==null?void 0:St.widgetData)==null?void 0:Ht.contents)==null?void 0:Kt[1])},(($t=i.widgetData.contents)==null?void 0:$t[1])||((Tt=(Lt=(It=e.widget)==null?void 0:It.widgetData)==null?void 0:Lt.contents)==null?void 0:Tt[1])),null,16,["data","widget"])):(g(),w(Qe(((Qt=(qt=(Ot=i.data)==null?void 0:Ot.contents)==null?void 0:qt[1])==null?void 0:Qt.widgetType)||((Et=(Bt=(At=(Zt=e.widget)==null?void 0:Zt.widgetData)==null?void 0:At.contents)==null?void 0:Bt[1])==null?void 0:Et.widgetType)),qe({key:2,data:((Gt=t(W))==null?void 0:Gt[0])||((Mt=(Jt=i.data)==null?void 0:Jt.contents)==null?void 0:Mt[1])||((Ut=(Rt=(Nt=e.widget)==null?void 0:Nt.widgetData)==null?void 0:Rt.contents)==null?void 0:Ut[1]),widget:((Vt=i.widgetData.contents)==null?void 0:Vt[1])||((te=(Yt=(Xt=e.widget)==null?void 0:Xt.widgetData)==null?void 0:Yt.contents)==null?void 0:te[1]),theme:((ae=(ee=i.widgetData.contents)==null?void 0:ee[1])==null?void 0:ae.theme)||((le=(ne=(oe=(ie=e.widget)==null?void 0:ie.widgetData)==null?void 0:oe.contents)==null?void 0:ne[1])==null?void 0:le.theme),"background-key":((se=(de=i.widgetData.contents)==null?void 0:de[1])==null?void 0:se.backgroundKey)||((we=(ce=(re=(ge=e.widget)==null?void 0:ge.widgetData)==null?void 0:re.contents)==null?void 0:ce[1])==null?void 0:we.backgroundKey)},((pe=(me=i.data)==null?void 0:me.contents)==null?void 0:pe[1])||((fe=(he=(ue=i.widget)==null?void 0:ue.widgetData)==null?void 0:he.contents)==null?void 0:fe[1]),{aspect:"aspect-none",variant:"cover",fit:"cover",transition:"none"}),null,16,["data","widget","theme","background-key"])):(g(),w(c,{key:0,class:"hero-card","is-hero":!0,style:Ne(((be=(De=(ye=i.data)==null?void 0:ye.contents)==null?void 0:De[1])==null?void 0:be.style)||((We=(ve=(ke=(xe=e.widget)==null?void 0:xe.widgetData)==null?void 0:ke.contents)==null?void 0:ve[1])==null?void 0:We.style)),data:(Pe=t(Ee))==null?void 0:Pe[0],widget:((_e=i.widgetData.contents)==null?void 0:_e[1])||((Ce=(ze=(je=e.widget)==null?void 0:je.widgetData)==null?void 0:ze.contents)==null?void 0:Ce[1])},null,8,["style","data","widget"]))],2),(Ke=(He=(Se=(Fe=i.widgetData.contents)==null?void 0:Fe[0])==null?void 0:Se.widgetData)==null?void 0:He.contents)!=null&&Ke.length?(g(),Te("div",{key:0,class:p([t(d)||t(a)!=="top"?"z-10":"absolute",{"":t(l)==="inset"&&t(a)==="bottom","lg:absolute bottom-0":t(l)==="inset"&&(t(a)==="left"||t(a)==="right"),"top-0 w-full min-h-[215px]":t(a)==="top","bottom-0 w-full min-h-[215px]":t(a)==="bottom"&&t(l)!="profile","lg:left-0 lg:top-0 lg:bottom-0 lg:h-full min-w-[375px]":t(a)==="left","flex-[0] lg:right-0 lg:top-0 lg:bottom-0 h-full min-w-[375px]":t(a)==="right","min-h-full":(t(a)==="top"||t(a)==="bottom")&&t(l)==="profile"}])},[k?(g(),w(f,{key:0,class:p(["relative my-8 split-container",t(n).alignment==="left"||t(n).alignment==="right"?void 0:"max-h-[300px]"]),carousel:!0,orientation:t(n).alignment==="left"||t(n).alignment==="right"?"col":"row",data:("useWidgetHandler"in o?o.useWidgetHandler:t(aa))({widgetType:"ContentContainerSplit",widgetData:{contents:($e=e.widgetData.contents)==null?void 0:$e[0].widgetData.contents,grid:{...e.widgetData.grid,layout:t(n).alignment==="left"||t(n).alignment==="right"?"col":"row",length:(Ie=e.widgetData.contents)==null?void 0:Ie[0].widgetData.contents.length},style:t(Be)}}),widget:{...(Le=i.widgetData.contents)==null?void 0:Le[0],width:"full"},style:{},"in-hero":""},null,8,["class","orientation","data","widget"])):D("",!0)],2)):D("",!0),i.widgetData.showSponsor?(g(),w(y,{key:1,class:"pt-4","section-id":"newsListing_Web"})):D("",!0)],2)],2)}}});
1export{Pa 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.