1import{j as r,A as h,B as l,b as E,_ as x}from"../js/app.CzHXv3OC.js";import{W as C}from"./Wrapper.DVjqp0wx.js";import{C as A}from"./Card.CpJkAS6_.js";import{E as j}from"./EmptyState.CRCj9Gxe.js";import{E as S}from"./ErrorBoundary.BSDeRbzo.js";import"./elastic.CDqqVJuy.js";import{F as b}from"./FetchModel.b4lX_zup.js";import{e as a}from"./error.ME9RekgK.js";import{i as y}from"./button.BLXcxSDr.js";import{d as M,e as k,f as w,h as B,A as H,a as $,b as D,g as v}from"./productObjectTable.8lbMw21N.js";import{a as G}from"./card.CS-4TwtJ.js";import{b as N,N as P,S as R,a as z}from"./swiper-slide.BjphSAvm.js";import{P as F}from"./pagination.Bkt0voDI.js";import{E as L}from"./effect-cards.B0WO8Nl5.js";import{f as T,z as W}from"./index.D6mVWLHx.js";import"./vendor.CLXKpVbq.js";import"./lodash.B7ss2v9R.js";import"./Button.B4XYJJnP.js";import"./LoadingButton.IAGvwvXG.js";import"./extends.Ba-yMveS.js";import"./Button.CgtN9LhY.js";import"./RichText.BafDqas4.js";import"./Markdown.Bs47RbOr.js";import"./CardContent.DsAEvmb5.js";import"./CardMedia.D4cFNTVG.js";import"./Avatar.iITegcJq.js";import"./CardActions.B0oQq-QH.js";import"./Cover.CJodL7d1.js";import"./colorVariableContrast.DtYi-E8s.js";import"./Grid.CSAL5IlU.js";const u="AEHGridCardsDeck",f=new E({name:u,prefix:"o-"}),I=M.extend({layout:y.optional(),content:B.optional(),link:w.optional(),cards:W.array(G),configuration:k.extend({card:D.nullish(),table:$.nullish(),color:H.nullish()})}).merge(v),O=({pathModel:s,componentModel:e})=>{var n,m,p,c;N.use([F,P,L]);const i=I.safeParse(e);if(!i.success){const{error:o}=i;return console.error(`${u}: ${T(o).toString()}`),r.jsx(j,{illustration:r.jsx(a.illustration,{}),title:a.title,description:a.description})}const{data:t}=i;return t.cards?r.jsx(C,{organismName:"o-CardsDeck",paddingTop:(m=(n=t.configuration)==null?void 0:n.padding)==null?void 0:m.top,paddingBottom:(c=(p=t.configuration)==null?void 0:p.padding)==null?void 0:c.bottom,children:r.jsx(l,{...f("grid"),children:r.jsx(l,{...f("list"),children:r.jsx(R,{pagination:{type:"progressbar"},effect:"cards",navigation:!0,spaceBetween:20,children:t.cards.map((o,d)=>{const g=x.merge({},{type:"image",image:{...o.image}});return r.jsx(z,{children:r.jsx(A,{id:`card-deck-id-${d}`,eyebrow:o.eyebrow,title:o.title,text:o.text,media:g,color:o.color,link:o.link,layout:o.layout,size:o.size})},`deck-card-id-${d}`)})})})})}):null},Ar=({pathModelHTLAttribute:s,componentModelHTLAttribute:e})=>r.jsx(S,{children:r.jsx(h,{componentName:"aeh-grid-cards-deck",children:r.jsx(b,{pathModelHTLAttribute:s,componentModelHTLAttribute:e,children:(i,t)=>r.jsx(O,{pathModel:i,componentModel:t})})})});export{Ar as AEHGridCardsDeck};
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.