PageSourceSearch

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

js medeco.com collected 2026-10-02 10:32:18 UTC 3,812 bytes, 1 lines download raw bytes

1import{j as e,A as v,af as I,a as B,b as G,_ as d,B as T,S as C,T as z}from"../js/app.CzHXv3OC.js";import{r as m}from"./elastic.CDqqVJuy.js";import{W as H}from"./Wrapper.DVjqp0wx.js";import{E as R}from"./EmptyState.CRCj9Gxe.js";import{P as W}from"./ProductCard.aCpkgJto.js";import{b as _,N as $,S as N,a as Q}from"./swiper-slide.BjphSAvm.js";import{P as V}from"./pagination.Bkt0voDI.js";import{V as D}from"./ViewMoreWrapper.DrDw4_-p.js";import{E as L}from"./ErrorBoundary.BSDeRbzo.js";import{p as q}from"./productAttributes.CaCCGjBi.js";import{p as F}from"./productIsEmpty.CCfoVqob.js";import{p as Z}from"./productSplitBy.BG8tTjfz.js";import{F as J}from"./FetchModel.b4lX_zup.js";import{e as u}from"./error.ME9RekgK.js";import{C as K,a as U}from"./button.BLXcxSDr.js";import{r as X,l as Y,e as ee,A as te,a as re}from"./productObjectTable.8lbMw21N.js";import{A as ie}from"./section.i3YPlAz5.js";import{f as oe}from"./index.D6mVWLHx.js";const se=({cards:o})=>(_.use([V,$]),e.jsx(N,{pagination:{type:"progressbar"},navigation:!0,slidesPerView:"auto",centeredSlides:!1,spaceBetween:10,children:Object.keys(o).map((n,p)=>e.jsx(Q,{children:o[n]},`slide-${p}`))})),E="AEHProductGridObjectsChips",y=new G({name:E,prefix:"o-"}),ae=X,ne=Y.extend({configuration:ee.extend({table:re.nullish(),color:te.nullish()}).nullable()}),ce=ie.extend({layout:U,cardLayout:K.optional()}),pe=({componentModel:o,modelType:n})=>{var h,x,g,b,j;const{openModal:p}=I(),{productState:i}=B();let s;if(n==="productCombinedObjectModel"?s=ae.safeParse(o):n==="productObjectTableModel"?s=ne.safeParse(o):s=ce.safeParse(o),!s.success){const{error:r}=s;return console.error(`${E}: ${oe(r).toString()}`),e.jsx(R,{illustration:e.jsx(u.illustration,{}),title:u.title,description:u.description})}const{data:t}=s,[P,A]=m.useState();if(m.useEffect(()=>{i&&A({attributes:i.meta,name:i.name,content:i.description,productId:i.pimID})},[i]),!i||!i.meta)return null;const a=q(t,P);if(F(a))return null;const f=[];for(const r in a){const l=[];for(const c in a[r]){const w=d.merge({},{type:"dam",dam:{url:a[r][c].image,aspectRatio:"1:1",imagekitChainQuery:t.imagekitChainQuery,alt:a[r][c].imageAlt}});a[r][c].image&&l.push(m.createElement(T,{...y("chip",void 0,"u-quickSearch--is-searchable"),key:`chip-${r}${c}`,sx:{cursor:"pointer"},onClick:()=>{const M={type:"dam",dam:{crop:"cm-pad_resize",url:a[r][c].image}};p({open:!0,image:M})}},e.jsx(W,{title:a[r][c].title,media:w,layout:"chip"})))}const k=d.take(l,t.maxItems),S=d.slice(l,t.maxItems+1);f[r]={title:r,html:t.isSlider?e.jsx(se,{cards:l}):e.jsxs("div",{...y("Wrapper","no-slider","u-quickSearch--is-searchable"),children:[e.jsx(C,{direction:"row",justifyContent:"flex-start",alignItems:"center",spacing:0,sx:{flexWrap:"wrap",gap:"8px"},children:k}),S.length>0&&e.jsx(D,{children:e.jsx(C,{direction:"row",justifyContent:"flex-start",alignItems:"center",spacing:0,sx:{flexWrap:"wrap",gap:"8px"},children:S})})]})}}const O=Z(t.splitBy,f);return e.jsx("div",{className:"u-visibility--is-visible",children:e.jsxs(H,{organismName:"o-AttributesChips",paddingTop:(x=(h=t.configuration)==null?void 0:h.padding)==null?void 0:x.top,paddingBottom:(b=(g=t.configuration)==null?void 0:g.padding)==null?void 0:b.bottom,children:[((j=t.content)==null?void 0:j.title)&&e.jsx(z,{size:"h5",type:"titleSize"in t&&t.titleSize?t.titleSize:"u-heading-xs",text:t.content.title}),O]})})},le=({modelType:o,pathModelHTLAttribute:n,componentModelHTLAttribute:p})=>e.jsx(L,{children:e.jsx(v,{componentName:"aeh-product-grid-objects-chips",children:e.jsx(J,{pathModelHTLAttribute:n,componentModelHTLAttribute:p,children:(i,s)=>e.jsx(pe,{modelType:o,pathModel:i,componentModel:s})})})}),Me=Object.freeze(Object.defineProperty({__proto__:null,AEHProductGridObjectsChips:le},Symbol.toStringTag,{value:"Module"}));export{pe as I,Me as i};

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.