PageSourceSearch

https://www.medeco.com/etc.clientlibs/aeh/clientlibs/dependencies/…/resources/chunks/index.BDSoiIkn.js

js medeco.com collected 2026-09-24 22:17:50 UTC 4,051 bytes, 1 lines download raw bytes

1import{j as a,A as w,u as D,r as R,d as v,B as h,b as B,_ as m,C as P,M as G,S as V}from"../js/app.DBQURsxG.js";import{B as k}from"./Button.BkhlNZuL.js";import{G as F}from"./GridSkeleton.DcOfWCDx.js";import{D as H}from"./DefaultEmbed.CMh9Qiud.js";import{E as I}from"./EmptyState.CTCoYbam.js";import{E as N}from"./ErrorBoundary.C3jFYOOM.js";import{a as $}from"./appearanceDataTable.BS9PzZb5.js";import{a as T}from"./searchedBodyContent.CZMPpEfB.js";import{S as z,W as Q,E as O}from"./elastic.CDqqVJuy.js";import{F as W}from"./FetchModel.ZlcilBl9.js";import{e as x}from"./error.BZboM8T-.js";import{g as Z,h as _}from"./button.ByCG42iX.js";import{d as q,e as J,f as K,A as U,a as X,g as Y}from"./productObjectTable.BmziY019.js";import{A as L}from"./appearance.DL5Lofdn.js";import{A as f}from"./facet.CFEJUabM.js";import{b as aa,N as ra,S as ta,a as ea}from"./swiper-slide.BjphSAvm.js";import{P as ia}from"./pagination.Bkt0voDI.js";import{f as oa,z as c}from"./index.Cs3sfIVF.js";import"./vendor.CLXKpVbq.js";import"./lodash.B7ss2v9R.js";import"./LoadingButton.BldJMeql.js";import"./extends.Ba-yMveS.js";import"./Button.C6UKXuNC.js";import"./CardSkeleton.Co09ZjVp.js";import"./CardContent.CX2wWBFh.js";import"./CardHeader.CZLKg_l0.js";import"./Grid.48PEhE0D.js";import"./RichText.De7IQ3AH.js";import"./Markdown.QdxFBtpr.js";import"./CardMedia.BE1_NLK-.js";import"./CardActions.Be_7oteF.js";import"./TableContainer.C9BBW-17.js";import"./TableRow.yr5jRgxl.js";const y="AEHGridDAMSlider",A=new B({name:y,prefix:"o-",outputIsString:!0}),sa=q.extend({layout:Z,searchOnInitialLoad:c.boolean(),link:K.optional(),facets:c.array(f),sort:c.array(f),defaultFilter:c.array(f),appearance:L.extend({cardVariant:_.optional()}).optional(),configuration:J.extend({table:X.nullish(),color:U.nullish()}).nullable()}).merge(Y),na=({componentModel:d})=>{var S,j,g;const l=D(R.breakpoints.up("sm")),s=sa.safeParse(d);if(!s.success){const{error:r}=s;return console.error(`${y}: ${oa(r).toString()}`),a.jsx(I,{illustration:a.jsx(x.illustration,{}
1),title:x.title,description:x.description})}const{data:t}=s,[C]=v(t.defaultFilter,t.sort,t.facets,"americas-marketing-dam",(S=t.configuration)==null?void 0:S.card),e=t.appearance,i=t.link,M=({result:r})=>{var E,b;const n=m.merge({},{type:"dam",dam:{url:r.image.raw,aspectRatio:"16:9"}}),p={target:i==null?void 0:i.target,aspectRatio:(E=t.appearance)==null?void 0:E.aspectRatio,url:r.url.raw},u={title:{text:m.get(r,"title.snippet",""),alt:m.get(r,"title.raw","")},content:{text:void 0,alt:void 0}};return a.jsx(P,{initialState:{type:e==null?void 0:e.cardVariant,cardActionArea:p,cardContent:u,data:r},children:a.jsx(H,{type:e==null?void 0:e.cardVariant,title:m.get(r,"title.snippet",""),text:e&&e.body&&T(r),additionalData:$(e,r),actions:a.jsx(V,{direction:"row",spacing:2,children:a.jsx(k,{label:i==null?void 0:i.text,type:i==null?void 0:i.type,target:i==null?void 0:i.target,url:r.url.raw,aspectRatio:(b=t.appearance)==null?void 0:b.aspectRatio})}),hasImage:!0,image:(e==null?void 0:e.image)&&a.jsx(G,{...n})})})};aa.use([ia,ra]);let o=4;if(!l)o=1;else switch((g=(j=t.configuration)==null?void 0:j.card)!=null&&g.size?parseInt(t.configuration.card.size,10):6){case 3:o=4;break;case 4:o=3;break;case 6:o=2;break;case 12:o=1;break;default:o=6;break}return a.jsx("div",{children:a.jsx(h,{className:A(),children:a.jsx(z,{config:C,children:a.jsx(Q,{mapContextToProps:({isLoading:r,results:n})=>({isLoading:r,results:n}),children:({isLoading:r,results:n})=>a.jsxs(h,{children:[r&&a.jsx(F,{}),!r&&a.jsx(O,{children:a.jsx(h,{className:A("list"),children:a.jsx(ta,{pagination:{type:"progressbar"},navigation:!0,slidesPerView:o,spaceBetween:20,children:n.map((p,u)=>a.jsx(ea,{children:a.jsx(M,{result:p})},`slider-card-id-${u}`))})})})]})})})})})},za=({pathModelHTLAttribute:d,componentModelHTLAttribute:l})=>a.jsx(N,{children:a.jsx(w,{componentName:"aeh-grid-academy-cards",children:a.jsx(W,{pathModelHTLAttribute:d,componentModelHTLAttribute:l,children:(s,t)=>a.jsx(na,{pathModel:s,componentModel:t})})})});export{za as AEHGridDAMSlider};

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.