1import{j as r,A as h,B as l,b as E,_ as x}from"../js/app.DBQURsxG.js";import{W as C}from"./Wrapper.Cjc4gxtt.js";import{C as A}from"./Card.UTGcflFe.js";import{E as j}from"./EmptyState.CTCoYbam.js";import{E as S}from"./ErrorBoundary.C3jFYOOM.js";import"./elastic.CDqqVJuy.js";import{F as b}from"./FetchModel.ZlcilBl9.js";import{e as a}from"./error.BZboM8T-.js";import{i as y}from"./button.ByCG42iX.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.BmziY019.js";import{a as G}from"./card.nUc19fzf.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.Cs3sfIVF.js";import"./vendor.CLXKpVbq.js";import"./lodash.B7ss2v9R.js";import"./Button.BkhlNZuL.js";import"./LoadingButton.BldJMeql.js";import"./extends.Ba-yMveS.js";import"./Button.C6UKXuNC.js";import"./RichText.De7IQ3AH.js";import"./Markdown.QdxFBtpr.js";import"./CardContent.CX2wWBFh.js";import"./CardMedia.BE1_NLK-.js";import"./Avatar.Dl8oVM6p.js";import"./CardActions.Be_7oteF.js";import"./Cover.DGf7R4Bg.js";import"./colorVariableContrast.DtYi-E8s.js";import"./Grid.48PEhE0D.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.