import{L as I,u as _,B as S,r as C,f as a,C as l,D as g,O as L,I as p,E as $,Q as G,P as K,V as R,A as T,a7 as b}from"./BOLB14ke.js";const A={key:0,class:"sponsorship text-center text-clear"},B={key:0,class:"text-sm"},D={key:1,class:"h-16 md:h-20 lg:h-32 w-16 md:w-20 lg:w-32 mt-2 mx-auto"},O=I({name:"SponsorListingSponsor",__name:"ListingSponsor",props:{sectionId:{}},setup(v){const x=v,{$gc:k}=_();S(async()=>{await h()});const s=C();let u;const h=async()=>{var e,m,r,i,t,n,o,c;s.value=await k().sponsors.web().getSponsors(x.sectionId),u=(m=(e=s.value)==null?void 0:e[0])!=null&&m.campaignReference?`${(i=(r=s.value)==null?void 0:r[0])==null?void 0:i.link}?utm_campaign=${(n=(t=s.value)==null?void 0:t[0])==null?void 0:n.campaignReference}`:(c=(o=s.value)==null?void 0:o[0])==null?void 0:c.link};return(e,m)=>{var t,n,o,c,w,y;const r=R,i=b;return a(s)?(l(),g("div",A,[(n=(t=a(s))==null?void 0:t[0])!=null&&n.supportingText?(l(),g("p",B,L((c=(o=a(s))==null?void 0:o[0])==null?void 0:c.supportingText),1)):p("",!0),(y=(w=a(s))==null?void 0:w[0])!=null&&y.imageKey?(l(),g("div",D,[a(u)?(l(),$(i,{key:0,to:a(u)},{default:G(()=>{var d,f;return[K(r,{src:("useGCImage"in e?e.useGCImage:a(T))(!0,160,80,(f=(d=a(s))==null?void 0:d[0])==null?void 0:f.imageKey),class:"w-full h-full"},null,8,["src"])]}),_:1},8,["to"])):p("",!0)])):p("",!0)])):p("",!0)}}});export{O as _};