1import{d as N,m as S,u as y,o as r,c,a as h,b as g,w as u,f as z,t as M,g as O,F as R,i as V,j as C,al as $,n as D,$ as A,as as H,h as p,_ as q,ak as E,L as G,l as J}from"./7lLtnK4Z.js";import{u as K}from"./BmsGDp03.js";const Q={class:"!px-4 !pb-20 !pt-14 container mx-auto"},U={key:0,class:"absolute -left-4 w-[60px] h-full top-0 items-center justify-start flex"},X=["onClick"],Y={key:1,class:"absolute -right-4 w-[60px] h-full top-0 items-center justify-end flex"},Z=["onClick"],et=N({name:"ImpactHero",__name:"index",props:{widget:{},widgetData:{},style:{}},setup(w){var x,k,v;const n=w,W={backgroundImage:`url('${S(!0,2400,2400,(v=(k=(x=n.style)==null?void 0:x.background)==null?void 0:k.image)==null?void 0:v.image)||null}')`},j=["Fixture","WidgetAdvertisingSlot","WidgetImageLink","WidgetImage","WidgetCardNews","WidgetCardVideo","WidgetCardPromo","WidgetCardProduct"],_=["News","VideoCard","Fixture","Promo","video","news-article","ContentCard"],f=J(()=>K(n.widgetData.contents,!0)),F=a=>j.includes(a)?a:"ContentCard",L=a=>{var e,o,i,l,t;return((o=(e=n.widgetData)==null?void 0:e.style)==null?void 0:o[a])||((t=(l=(i=n.widgetData)==null?void 0:i.contents)==null?void 0:l[a])==null?void 0:t.style)},P=a=>{var e,o,i,l,t,s,d;return((l=(i=(o=(e=n.widgetData)==null?void 0:e.contents)==null?void 0:o[a])==null?void 0:i.span)==null?void 0:l.x)===2||((d=(s=(t=n.widgetData)==null?void 0:t.contents)==null?void 0:s[a])==null?void 0:d.span)===2?"md:w-[640px]":"md:w-[350px]"},m=a=>_.includes((a==null?void 0:a.widgetType)||(a==null?void 0:a.type)),b=(a,e)=>m(e)?f.value.data.value[a]:{contents:e},T=(a,e)=>m(e)&&e.widgetType!=="Fixture"?(o=>{var i,l,t,s;return(s=(t=(l=(i=n.widget)==null?void 0:i.widgetData)==null?void 0:l.contents)==null?void 0:t.filter(Boolean))==null?void 0:s[o]})(a):b(a,e),I={arrows:!1,pagination:!1,gap:16,autoWidth:!0,perMove:1,keyboard:!0,drag:!0,snap:!0,wheelMinThreshold:6,breakpoints:{860:{autoWidth:!1,perPage:1,padding:{right:16}}}};return(a,e)=>{const o=O,i=q,l=E;return y(f)?(r(),c("div",{key:0,class:D(["impact-hero",("useStyleObject"in a?a.useStyleObject:y(G))(w.style)]),style:W},[h("div",Q,[g(o,{tag:"h2",jumbo:"",class:"pb-2 lg:pb-4 !leading-[1]"},{default:u(()=>{var t;return[z(M((t=w.widgetData)==null?void 0:t.title),1)]}),_:1}),g(l,{class:"h-[524px] relative cursor-grab","show-peek":!0,"override-options":!0,options:I},{arrows:u(({slideRight:t,slideLeft:s,showNext:d,showPrev:B})=>[B?(r(),c("div",U,[h("button",{"aria-label":"slide left",class:"flex items-center justify-center w-8 h-8 text-gray-900 transition duration-300 bg-white rounded-full shadow-xl",onClick:s},[g(i,{icon:"chevronLeft",pack:"navigation",size:15,class:"mr-1"})],8,X)])):p("",!0),d?(r(),c("div",Y,[h("button",{"aria-label":"slide right",class:"flex items-center justify-center w-8 h-8 text-gray-900 transition duration-300 bg-white rounded-full shadow-xl",onClick:t},[g(i,{icon:"chevronRight",pack:"navigation",size:16,class:"ml-1"})],8,Z)])):p("",!0)]),default:u(()=>[(r(!0),c(R,null,V((n.widgetData.autofill?f.value.data.value.filter(Boolean):n.widgetData.contents).filter(Boolean),(t,s)=>(r(),C(y($),{key:(t==null?void 0:t.contents)||(t==null?void 0:t.id),class:D([P(s),"h-full"]),tabindex:s},{default:u(()=>{var d;return[t?(r(),C(A(F(t.widgetType)),H({key:t.uuid,widget:T(s,t),data:b(s,t),style:L(s),"card-style":!0,"background-key":((d=t.value)==null?void 0:d.image)||void 0},{ref_for:!0},t),null,16,["widget","data","style","background-key"])):p("",!0)]}),_:2},1032,["class","tabindex"]))),128))]),_:1})])],2)):p("",!0)}}});export{et 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.