1import{d as Q,o as s,j as d,w as o,b as W,ak as q,c as z,F as B,i as E,u as T,al as G,$ as b,as as j,y as H,Q as C,h as I,n as J,l as K}from"./tJTT3x32.js";import{_ as L}from"./wQqeErj5.js";const S=Q({name:"ContentCarousel",__name:"index",props:{data:{},style:{},widget:{}},setup(t){const n=t,$=K(()=>n.data.data.length>0?n.data.data.filter(i=>i!==void 0):(n.widget.widgetData.contents||[]).filter(i=>i!==void 0));return(i,M)=>{var w;const A=H,F=q,O=L;return s(),d(O,{class:J(["flex flex-col items-center w-full mx-auto bg-cover carousel",{"lg:px-8":t.widget.width==="full"}]),title:t.widget.title||t.widget.widgetData.title||t.widget.widgetData.heading,description:t.widget.description,style:C(t.style),"slot-width":t.widget.width,"text-align":(w=t.widget)==null?void 0:w.align},{default:o(()=>{var l,g,r,c;return[W(F,{id:"splide-carousel",class:"carousel__splide","show-peek":(g=(l=t.widget)==null?void 0:l.widgetData)==null?void 0:g.showPeek,"show-arrows":((c=(r=t.widget)==null?void 0:r.widgetData)==null?void 0:c.showArrows)||!0},{default:o(()=>[(s(!0),z(B,null,E(T($),(e,a)=>(s(),d(T(G),{key:a},{default:o(()=>{var u,f,y,p,h,k,x,_,m,D,v;return[e.version?(s(),d(b(e.contentType),j({key:0,class:"w-full h-full",widget:t.widget.widgetData.contents[a],data:e,style:(y=(f=(u=t.widget.widgetData)==null?void 0:u.contents)==null?void 0:f[a])==null?void 0:y.style},{ref_for:!0},e),null,16,["widget","data","style"])):e!=null&&e.contentType&&((p=e==null?void 0:e.contentType)!=null&&p.includes("Widget")||e!=null&&e.version)?(s(),d(b(e==null?void 0:e.contentType),j({key:1,data:{contents:e},class:"!h-[384px]"},{ref_for:!0},(k=(h=t.widget)==null?void 0:h.contents)==null?void 0:k[a]),null,16,["data"])):e&&Object.keys(e).length>0?(s(),d(A,{key:`card${a}`,style:C((x=t.data)==null?void 0:x.style[a]),widget:(v=(D=(m=(_=t.widget)==null?void 0:_.widgetData)==null?void 0:m.contents)==null?void 0:D.filter(P=>P!=null))==null?void 0:v[a],data:e,class:"h-full"},null,8,["style","widget","data"])):I("",!0)]}),_:2},1024))),128))]),_:1},8,["show-peek","show-arrows"])]}),_:1},8,["title","description","style","slot-width","class","text-align"])}}});export{S 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.