PageSourceSearch

https://www.corbinrusswin.com/etc.clientlibs/aeh/clientlibs/depend…/resources/chunks/index.DL-irrtQ.js

js corbinrusswin.com collected 2026-09-25 00:50:54 UTC 4,635 bytes, 1 lines download raw bytes

1import{j as t,A as F,d as I,B as O,b as V,_ as s,C as v,M as _,S as H}from"../js/app.DBQURsxG.js";import{B as N}from"./Button.BkhlNZuL.js";import{E as T}from"./ElasticSearchProvider.BA8OK1W1.js";import{D as z}from"./DefaultEmbed.CMh9Qiud.js";import{E as $}from"./EmptyState.CTCoYbam.js";import{E as Q}from"./ErrorBoundary.C3jFYOOM.js";import{a as Z}from"./appearanceDataTable.BS9PzZb5.js";import{a as q}from"./searchedBodyContent.CZMPpEfB.js";import{G as J}from"./elastic.CDqqVJuy.js";import{F as K}from"./FetchModel.ZlcilBl9.js";import{e as c}from"./error.BZboM8T-.js";import{g as U,h as W}from"./button.ByCG42iX.js";import{d as X,e as Y,f as k,A as L,a as aa,g as ta}from"./productObjectTable.BmziY019.js";import{A as ra}from"./appearance.DL5Lofdn.js";import{A as l}from"./facet.CFEJUabM.js";import{f as ea,z as n}from"./index.Cs3sfIVF.js";import{G as oa}from"./Grid.48PEhE0D.js";import"./vendor.CLXKpVbq.js";import"./lodash.B7ss2v9R.js";import"./LoadingButton.BldJMeql.js";import"./extends.Ba-yMveS.js";import"./Button.C6UKXuNC.js";import"./CardContent.CX2wWBFh.js";import"./listItemTextClasses.CfqtyItM.js";import"./ListItem.Ba6UNdu8.js";import"./ListItemIcon.BTnlXCKC.js";import"./listItemIconClasses.Dkcvo0jL.js";import"./Clear.DQy1976u.js";import"./OutlinedInput.DkWhq0El.js";import"./ListItemText.B1FPLW1l.js";import"./Chip.BbxjqlfK.js";import"./Layout.BgzCuBfP.js";import"./CardHeader.CZLKg_l0.js";import"./TextField.DRTXmqVo.js";import"./dividerClasses.CxYsqIl5.js";import"./Grow.C_Nwg4wO.js";import"./ListItemButton.B7Ftilu-.js";import"./Divider.CN5hCrpC.js";import"./Search.bMT3ZdlC.js";import"./Search.kb56HE1B.js";import"./ListItemAvatar.DN6gqFc2.js";import"./Avatar.Dl8oVM6p.js";import"./ChevronRight.Dhme45SY.js";import"./ElasticSorting.5M7bP1oh.js";import"./LinearProgress.dYi3bjFt.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 P="AEHGridDAMCards",b=new V({name:P,prefix:"o-",outputIsString:!0}),ia=X.extend({layout:U,searchOnInitialLoad:n.boolean(),link:k.optional(),facets:n.array(l),sort:n.array(l),defaultFilter:n.array(l),appearance:ra.extend({cardVariant:W.optional()}).optional(),configuration:Y.extend({table:aa.nullish(),color:L.nullish()}).nullable()}).merge(ta),sa=({componentModel:m})=>{var d,u,g,h,f,x,E,C;const i=ia.safeParse(m);if(!i.success){const{error:e}=i;return console.error(`${P}: ${ea(e).toString()}`),t.jsx($,{illustration:t.jsx(c.illustration,{}),title:c.title,description:c.description})}const{data:a}=i,[p,R,D]=I(a.defaultFilter,a.sort,a.facets,"americas-marketing-dam",(d=a.configuration)==null?void 0:d.card),o=a.appearance,r=a.link,w=({result:e})=>{var j,S,y,M;const A=s.merge({},{type:"dam",dam:{url:e.image.raw,aspectRatio:"1:1"}}),B={target:r==null?void 0:r.target,aspectRatio:(j=a.appearance)==null?void 0:j.aspectRatio,url:e.url.raw},G={title:{text:s.get(e,"title.snippet",""),alt:s.get(e,"title.raw","")},content:{text:void 0,alt:void 0}};return t.jsx(oa,{item:!0,xs:12,md:(y=(S=a.configuration)==null?void 0:S.card)!=null&&y.size?parseInt(a.configuration.card.size,10):6,className:`${b("result")} m-elasticLayout__result`,children:t.jsx(v,{initialState:{type:o==null?void 0:o.cardVariant,cardActionArea:B,cardContent:G,data:e},children:t.jsx(z,{type:o==null?void 0:o.cardVariant,title:s.get(e,"title.snippet",""),text:q(e),additionalData:Z(o,e),actions:t.jsx(H,{direction:"row",spacing:2,children:t.jsx(N,{label:r==null?void 0:r.text,type:r==null?void 0:r.type,target:r==null?void 0:r.target,url:e.url.raw,aspectRatio:(M=a.appearance)==null?void 0:M.aspectRatio})}),hasImage:!0,image:(o==null?void 0:o.image)&&A&&t.jsx(_,{...A})})})})};return t.jsxs(O,{className:b(),children:[t.jsx(J,{styles:{".o-DamCards .m-elasticLayout__resultsContainer":{justifyContent:(g=(u=a.configuration)==null?void 0:u.card)!=null&&g.alignment?a.configuration.card.alignment:"space-between"}}}),t.jsx(T,{hasSearchBox:(h=a.appearance)==null?void 0:h.searchBar,hasSorting:!1,hasFacet:!1,hasPagingInfo:(f=a.appearance)==null?void 0:f.paging,hasResultsPerPage:(x=a.appearance)==null?void 0:x.paging,resultsPerPage:D,hasPaging:(E=a.appearance)==null?void 0:E.paging,resultView:w,sortOptions:R,config:p,autoFocus:(C=a.appearance)==null?void 0:C.autoFocus})]})},ot=({pathModelHTLAttribute:m,componentModelHTLAttribute:i})=>t.jsx(Q,{children:t.jsx(F,{componentName:"aeh-grid-dam-cards",children:t.jsx(K,{pathModelHTLAttribute:m,componentModelHTLAttribute:i,children:(a,p)=>t.jsx(sa,{pathModel:a,componentModel:p})})})});export{ot as AEHGridDAMCards};

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.