PageSourceSearch

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

js corbinrusswin.com collected 2026-10-02 12:33:17 UTC 3,906 bytes, 1 lines download raw bytes

1import{j as r,A as C,u as w,r as M,d as B,B as u,b as V,_ as j,C as v,M as G,S as H}from"../js/app.CzHXv3OC.js";import{B as R}from"./Button.B4XYJJnP.js";import{G as k}from"./GridSkeleton.BDuQCEMU.js";import{D as z}from"./DefaultEmbed.B8VM99hF.js";import{E as F}from"./EmptyState.CRCj9Gxe.js";import{E as I}from"./ErrorBoundary.BSDeRbzo.js";import{a as N}from"./appearanceDataTable.C0j-Deo1.js";import{p as A}from"./productURL.IJsGy0ON.js";import{s as $}from"./searchedBodyContent.pW6ELwvd.js";import{S as D,W as L,E as T}from"./elastic.CDqqVJuy.js";import{F as _}from"./FetchModel.b4lX_zup.js";import{e as f}from"./error.ME9RekgK.js";import{A as O,f as W}from"./button.BLXcxSDr.js";import{d as Q,e as U,f as Z,A as q,a as J,g as K}from"./productObjectTable.8lbMw21N.js";import{A as X}from"./appearance.psirUtVx.js";import{A as h}from"./facet.BpmjkMXL.js";import{b as Y,N as rr,S as ar,a as er}from"./swiper-slide.BjphSAvm.js";import{P as tr}from"./pagination.Bkt0voDI.js";import{f as ir,z as p}from"./index.D6mVWLHx.js";import"./vendor.CLXKpVbq.js";import"./lodash.B7ss2v9R.js";import"./LoadingButton.IAGvwvXG.js";import"./extends.Ba-yMveS.js";import"./Button.CgtN9LhY.js";import"./CardSkeleton.D1VzKHBG.js";import"./CardContent.DsAEvmb5.js";import"./CardHeader.Sb2UWEt_.js";import"./Grid.CSAL5IlU.js";import"./RichText.BafDqas4.js";import"./Markdown.Bs47RbOr.js";import"./CardMedia.D4cFNTVG.js";import"./CardActions.B0oQq-QH.js";import"./TableContainer.BTqRubWt.js";import"./TableRow.13XmO_Ug.js";const b="AEHGridPLPCardsSlider",g=new V({name:b,prefix:"o-",outputIsString:!0}),or=Q.extend({layout:O,searchOnInitialLoad:p.boolean(),link:Z.optional(),facets:p.array(h),sort:p.array(h),defaultFilter:p.array(h),appearance:X.extend({cardVariant:W.optional()}).optional(),configuration:U.extend({table:J.nullish(),color:q.nullish()}).nullable()}).merge(K),sr=({componentModel:d})=>{var x,E,S;const l=w(M.breakpoints.up("sm")),s=or.safeParse(d);if(!s.success){const{error:a}=s;return console.error(`${b}: ${ir(a).toString()}`),r.jsx(F,{illustration:r.jsx(f.illustration,{}),title:f.title,description:f.description})}const{data:e}=s,[P]=B(e.defaultFilter,e.sort,e.facets,"pim-products-facets",(x=e.configuration)==null?void 0:x.card),o=e.appearance,t=e.link,y=({result:a})=>{var c,m;const n=j.merge({},{type:"dam",dam:{url:a.image.raw,aspectRatio:"1:1",crop:"cm-pad_resize"}});return r.jsx(v,{initialState:{type:(c=e.appearance)==null?void 0:c.cardVariant,cardActionArea:{target:"_self",url:A(t==null?void 0:t.url,a)},data:a},children:r.jsx(z,{type:(m=e.appearance)==null?void 0:m.cardVariant,title:j.get(a,"name.raw",""),text:o&&o.body&&$(a),additionalData:N(o,a),actions:(t==null?void 0:t.include)&&r.jsx(H,{direction:"row",spacing:2,children:r.jsx(R,{label:"View",type:"primary",url:A(t==null?void 0:t.url,a),size:"small"})}),hasImage:o==null?void 0:o.image,image:r.jsx(G,{...n})})})};Y.use([tr,rr]);let i=4;if(!l)i=1;else switch((S=(E=e.configuration)==null?void 0:E.card)!=null&&S.size?parseInt(e.configuration.card.size,10):6){case 3:i=4;break;case 4:i=3;break;case 6:i=2;break;case 12:i=1;break;default:i=6;break}return r.jsx("div",{children:r.jsx(u,{className:g(),children:r.jsx(D,{config:P,children:r.jsx(L,{mapContextToProps:({isLoading:a,results:n})=>({isLoading:a,results:n}),children:({isLoading:a,results:n})=>r.jsxs(u,{children:[a&&r.jsx(k,{}),!a&&r.jsx(T,{children:r.jsx(u,{className:g("list"),children:r.jsx(ar,{pagination:{type:"progressbar"},navigation:!0,slidesPerView:i,spaceBetween:20,children:n.map((c,m)=>r.jsx(er,{children:r.jsx(y,{result:c})},`slider-card-id-${m}`))})})})]})})})})})},Lr=({pathModelHTLAttribute:d,componentModelHTLAttribute:l})=>r.jsx(I,{children:r.jsx(C,{componentName:"aeh-grid-plp-cards-slider",children:r.jsx(_,{pathModelHTLAttribute:d,componentModelHTLAttribute:l,children:(s,e)=>r.jsx(sr,{pathModel:s,componentModel:e})})})});export{Lr as AEHGridPLPCardsSlider};

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.