PageSourceSearch

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

js medeco.com collected 2026-10-02 10:32:05 UTC 13,584 bytes, 1 lines download raw bytes

1import{_ as h,j as r,f as $,a3 as K,a4 as Q,a5 as X,A as Y,a as O,af as ee,S as W,b as re,ah as k,B as y,r as se,U as ce}from"../js/app.CzHXv3OC.js";import{G as z}from"./Grid.CSAL5IlU.js";import{E as ae}from"./EmptyState.CRCj9Gxe.js";import{E as oe}from"./ErrorBoundary.BSDeRbzo.js";import{r as le}from"./elastic.CDqqVJuy.js";import{F as ie}from"./FetchModel.b4lX_zup.js";import{e as T}from"./error.ME9RekgK.js";import{d as te,e as ne,A as de,a as me,b as ue,c as he}from"./productObjectTable.8lbMw21N.js";import{A as ge}from"./facet.BpmjkMXL.js";import{g as pe}from"./vendor.CLXKpVbq.js";import{Z as xe}from"./ZoomIn.DOaExT_F.js";import{V as fe,i as ve,P as je}from"./index.DW1JsKWW.js";import"./index.CC2ZByOf.js";import{b as we,N as Se,S as V,a as q}from"./swiper-slide.BjphSAvm.js";import{P as ye}from"./pagination.Bkt0voDI.js";import{T as Ie}from"./thumbs.xIpNZ9gR.js";import{f as Me}from"./free-mode.D14yco0a.js";import{f as Ce,z as R}from"./index.D6mVWLHx.js";import{T as Pe}from"./Tooltip.DqwBdypF.js";import"./lodash.B7ss2v9R.js";import"./button.BLXcxSDr.js";import"./tslib.es6.CldWHa1R.js";import"./Snackbar._O1-GHhM.js";import"./Grow.CzVRrPSo.js";import"./Close.BhYxV2yd.js";import"./index.BFMw__sO.js";import"./Divider.BEaDXBNY.js";import"./dividerClasses.cwlpX7j_.js";import"./Button.CgtN9LhY.js";import"./LoadingButton.IAGvwvXG.js";import"./extends.Ba-yMveS.js";import"./TextField.D-B0Xnh_.js";import"./listItemTextClasses.BTk6l-j9.js";import"./listItemIconClasses.CoJwVP-R.js";import"./OutlinedInput.BbKBd__G.js";import"./SpeedDialAction.cRM8ixRh.js";import"./CardContent.DsAEvmb5.js";import"./CardMedia.D4cFNTVG.js";const ze=(s,m="json")=>s.currentPagePath+"/_jcr_content.export."+h.last(s.selectors)+"."+m,$e=s=>{var m;return s!=null&&s.currentPagePath&&((m=s==null?void 0:s.selectors)!=null&&m.length)?`${s.currentPagePath}.${h.last(s.selectors)}`:(s==null?void 0:s.requestURL)||window.location.href};function Ae({swiper:s,extendParams:m}){m({grid:{rows:1,fill:"column"}});let i,g,p;const j=()=>{let c=s.params.spaceBetween;return typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*s.size:typeof c=="string"&&(c=parseFloat(c)),c},_=c=>{const{slidesPerView:l}=s.params,{rows:t,fill:x}=s.params.grid;p=Math.floor(c/t),Math.floor(c/t)===c/t?i=c:i=Math.ceil(c/t)*t,l!=="auto"&&x==="row"&&(i=Math.max(i,l*t)),g=i/t},B=(c,l,t,x)=>{const{slidesPerGroup:u}=s.params,w=j(),{rows:d,fill:P}=s.params.grid;let f,e,a;if(P==="row"&&u>1){const o=Math.floor(c/(u*d)),n=c-d*u*o,I=o===0?u:Math.min(Math.ceil((t-o*d*u)/d),u);a=Math.floor(n/I),e=n-a*I+o*u,f=e+a*i/d,l.style.order=f}else P==="column"?(e=Math.floor(c/d),a=c-e*d,(e>p||e===p&&a===d-1)&&(a+=1,a>=d&&(a=0,e+=1))):(a=Math.floor(c/g),e=c-a*g);l.row=a,l.column=e,l.style[x("margin-top")]=a!==0?w&&`${w}px`:""},L=(c,l,t)=>{const{centeredSlides:x,roundLengths:u}=s.params,w=j(),{rows:d}=s.params.grid;if(s.virtualSize=(c+w)*i,s.virtualSize=Math.ceil(s.virtualSize/d)-w,s.wrapperEl.style[t("width")]=`${s.virtualSize+w}px`,x){const P=[];for(let f=0;f<l.length;f+=1){let e=l[f];u&&(e=Math.floor(e)),l[f]<s.virtualSize+l[0]&&P.push(e)}l.splice(0,l.length),l.push(...P)}};s.grid={initSlides:_,updateSlide:B,updateWrapperSize:L}}const De=()=>r.jsxs(z,{container:!0,spacing:2,children:[r.jsx(z,{item:!0,xs:12,children:r.jsx($,{variant:"rectangular",width:"100%",height:"400px"})}),r.jsx(z,{item:!0,xs:3,children:r.jsx($,{variant:"rectangular",height:100})}),r.jsx(z,{item:!0,xs:3,children:r.jsx($,{variant:"rectangular",height:100})}),r.jsx(z,{item:!0,xs:3,children:r.jsx($,{variant:"rectangular",height:100})}),r.jsx(z,{item:!0,xs:3,children:r.jsx($,{variant:"rectangular",height:100})})]});var A={},F;function Ee(){if(F)return A;F=1;var s=K();Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var m=s(Q()),i=X();return A.default=(0,m.default)((0,i.jsx)("path",{d:"M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7m17 3c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4z"}),"DataObject"),A}var Ne=Ee();const Re=pe(Ne),b="AEHProductHeroGallery",C=new re({name:b,prefix:"o-",outputIsString:!0}
1),_e=te.extend({viewJson:R.boolean(),viewCsv:R.boolean(),showImageCaption:R.boolean(),defaultImageFilter:R.array(ge).optional(),configuration:ne.extend({card:ue.nullish(),table:me.nullish(),color:de.extend({image:he.nullish()}).nullish()}).nullable()}),Be=({pathModel:s,componentModel:m})=>{const{productState:i}=O(),g=_e.safeParse(m);if(!g.success){const{error:e}=g;return console.error(`${b}: ${Ce(e).toString()}`),r.jsx(ae,{illustration:r.jsx(T.illustration,{}),title:T.title,description:T.description})}const{data:p}=g,j=`&updatedAt=${new Date().toJSON().slice(0,10).replaceAll("-","")}`,[_,B]=le.useState(null),{openModal:L}=ee();if(!i||!i.meta)return r.jsx(De,{});we.use([Ae,ye,Me,Se,Ie]);const c={gallery:[]},l=[],t=[],x=[],{includeDefaultImages:u,includeDSSImages:w,dssImagePosition:d}=s.productImage;Object.values(i.meta).sort((e,a)=>{const o=n=>parseInt(n.replace("image-web-image",""),10)||0;return o(e.name)-o(a.name)}).forEach(e=>{e&&(w&&e.name.includes("image-dss-web-image")&&t.push(e.value),u&&e.name.includes("image-web-image")&&(p.defaultImageFilter&&p.defaultImageFilter.length>0?p.defaultImageFilter.forEach(a=>{var I,S,M,D;const o=(I=e.value)==null?void 0:I[a.data.filter];let n=[];typeof o=="string"&&(n=o.includes("|")?o.split("|"):[o]),n.length>0&&(((S=a.data)==null?void 0:S.include)==="1"?n.some(v=>a.data.values.includes(v))&&l.push(e.value):((M=a.data)==null?void 0:M.include)==="2"?n.every(v=>a.data.values.includes(v))&&a.data.values.every(v=>n.includes(v))&&l.push(e.value):((D=a.data)==null?void 0:D.include)==="0"&&(n.some(v=>a.data.values.includes(v))||l.push(e.value)))}):l.push(e.value)),e.name.includes("image-360-asset")&&x.push({type:"360",...e.value}))}),d==="first"?c.gallery.push(...t,...l,...x):d==="last"&&c.gallery.push(...l,...t,...x),c.gallery=h.sortBy(c.gallery,["sort-order"]);const f=$e(s);return r.jsx(oe,{children:r.jsxs(W,{className:C(),spacing:2,children:[r.jsx(W,{direction:"row",justifyContent:"flex-end",alignItems:"center",children:p.viewJson&&s&&r.jsx(Pe,{title:"JSON",children:r.jsx(k,{size:"small",color:"primary",target:"_blank",href:ze(s),children:r.jsx(Re,{fontSize:"inherit"})})})}),r.jsx(y,{sx:{width:"100%"},children:r.jsx(V,{className:"o-heroProduct__SwiperMain",slidesPerView:1,centeredSlides:!0,navigation:!1,thumbs:{swiper:_},children:c==null?void 0:c.gallery.map((e,a)=>{const o=e==null?void 0:e["image-hi-res-url"],n=e==null?void 0:e["asset-alternate-url"],I=h.get(e,"asset-display-name",null)||h.get(e,"asset-title",null)||o,S=o.includes("?tr=")?":":"?tr=",M=e==null?void 0:e["image-image-caption"],D={800:`${o+S}w-800${j}`,1e3:`${o+S}w-1000${j}`,1200:`${o+S}w-1200${j}`,1600:`${o+S}w-1600${j}`},v=Object.entries(D||{}).map(E=>{const N=parseInt(E[0],10),Z=E[1];return Number.isInteger(N)?`${Z} ${N}w`:null}).join(","),U=`${o+S}w-200:q-20,bl-6${j}`,G=r.jsx(y,{className:C("HoverIconWrapper"),sx:{zIndex:2,top:"7px",right:"15px",display:"flex",cursor:"pointer",position:"absolute",flexDirection:"column"},children:r.jsx(k,{onClick:()=>{const E={type:"dam",dam:{crop:"cm-pad_resize",url:o}},N={url:n};L({open:!0,image:(e==null?void 0:e.type)==="360"?void 0:E,threeSixtyImage:(e==null?void 0:e.type)==="360"?N:void 0})},children:r.jsx(xe,{color:"primary",fontSize:"large"})})}),J=r.jsx(y,{sx:{img:{maxWidth:"100%",height:"500px",objectFit:"contain"}},className:C(),children:(e==null?void 0:e.type)==="360"?r.jsx("iframe",{src:e==null?void 0:e["asset-alternate-url"],width:"100%",height:"500px",style:{border:"none"}}):r.jsx("img",{alt:I,className:C("img",void 0,"lazyload"),src:U,"data-srcset":v,"data-src":o,"data-sizes":"auto"})}),H=r.jsx(y,{className:C("SwiperImage"),sx:{maxWidth:600,minHeight:400,overflow:"hidden",padding:1,height:"100%",backgroundColor:"white",border:"1px solid",borderRadius:"10px",borderColor:"grey.400",flexDirection:"column",justifyContent:"space-between"},children:r.jsxs(y,{className:C("SwiperImageWrapper"),sx:{textAlign:"center",position:"relative",[se.breakpoints.down("sm")]:{display:"block"}},children:[G,J]})});return r.jsx(q,{children:M&&p.showImageCaption?r.jsxs(y,{sx:{display:"flex",flexDirection:"column",maxWidth:600,width:"100%",margin:"0 auto",marginLeft:0,gap:1},children:[H,r.jsx(y,{component:"figcaption",sx:{maxWidth:500},children:M.length>124?`${M.slice(0,124)}...`:M})]}):H},a)})})}),r.jsx(V,{className:"o-heroProduct__SwiperThumbs",onSwiper:B,cssMode:!0,spaceBetween:0,slidesPerView:5,grid:{rows:2},freeMode:!0,watchSlidesProgress:!0,children:c.gallery.map((e,a)=>{const o=e["image-hi-res-url"],n=h.get(e,"asset-display-name",null)||h.get(e,"asset-title",null)||o;return r.jsx(q,{children:r.jsx(y,{className:C("imageThumbnail"),sx:{overflow:"hidden",padding:0,width:80,height:80,minWidth:80,backgroundColor:"white",border:"1px solid",borderRadius:"10px",cursor:"pointer",borderColor:"grey.400"},children:(e==null?void 0:e.type)==="360"?r.jsx("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 122.88 65.79",xmlSpace:"preserve",style:{height:"100%",width:"100%",padding:"8px",paddingTop:"15px"},children:r.jsx("g",{children:r.jsx("path",{className:"st0",d:"M13.37,31.32c-22.23,12.2,37.65,19.61,51.14,19.49v-7.44l11.21,11.2L64.51,65.79v-6.97 C37.4,59.85-26.41,42.4,11.97,27.92c0.36,1.13,0.8,2.2,1.3,3.2L13.37,31.32L13.37,31.32z M108.36,8.31c0-2.61,0.47-4.44,1.41-5.48 c0.94-1.
104,2.37-1.56,4.3-1.56c0.92,0,1.69,0.12,2.28,0.34c0.59,0.23,1.08,0.52,1.45,0.89c0.38,0.36,0.67,0.75,0.89,1.15 c0.22,0.4,0.39,0.87,0.52,1.41c0.26,1.02,0.38,2.09,0.38,3.21c0,2.49-0.42,4.32-1.27,5.47c-0.84,1.15-2.29,1.73-4.36,1.73 c-1.15,0-2.09-0.19-2.8-0.55c-0.71-0.37-1.3-0.91-1.75-1.62c-0.33-0.51-0.59-1.2-0.77-2.07C108.45,10.34,108.36,9.38,108.36,8.31 L108.36,8.31z M26.47,10.49l-9-1.6c0.75-2.86,2.18-5.06,4.31-6.59C23.9,0.77,26.91,0,30.8,0c4.47,0,7.69,0.83,9.69,2.5 c1.99,1.67,2.98,3.77,2.98,6.29c0,1.48-0.41,2.82-1.21,4.01c-0.81,1.2-2.02,2.25-3.65,3.15c1.32,0.33,2.34,0.71,3.03,1.15 c1.14,0.7,2.02,1.63,2.65,2.77c0.63,1.15,0.95,2.51,0.95,4.1c0,2-0.52,3.91-1.56,5.75c-1.05,1.83-2.55,3.24-4.51,4.23 c-1.96,0.99-4.54,1.48-7.74,1.48c-3.11,0-5.57-0.37-7.36-1.1c-1.8-0.73-3.28-1.8-4.44-3.22c-1.16-1.41-2.05-3.19-2.67-5.33 l9.53-1.27c0.38,1.92,0.95,3.26,1.74,4.01c0.78,0.74,1.78,1.12,3,1.12c1.27,0,2.33-0.47,3.18-1.4c0.85-0.93,1.27-2.18,1.27-3.74 c0-1.59-0.41-2.82-1.22-3.69c-0.81-0.87-1.92-1.31-3.32-1.31c-0.74,0-1.77,0.18-3.07,0.56l0.49-6.81c0.52,0.08,0.93,0.12,1.22,0.12 c1.23,0,2.26-0.4,3.08-1.19c0.82-0.79,1.24-1.72,1.24-2.81c0-1.05-0.31-1.88-0.93-2.49c-0.62-0.62-1.48-0.93-2.55-0.93 c-1.12,0-2.02,0.34-2.72,1.01C27.19,7.62,26.72,8.8,26.47,10.49L26.47,10.49z M75.15,8.27l-9.48,1.16 c-0.25-1.32-0.66-2.24-1.24-2.78c-0.59-0.54-1.31-0.81-2.16-0.81c-1.54,0-2.74,0.77-3.59,2.33c-0.62,1.13-1.09,3.52-1.38,7.19 c1.14-1.16,2.31-2.01,3.5-2.56c1.2-0.55,2.59-0.83,4.16-0.83c3.06,0,5.64,1.09,7.75,3.27c2.11,2.19,3.17,4.96,3.17,8.31 c0,2.26-0.53,4.32-1.6,6.2c-1.07,1.87-2.55,3.29-4.44,4.25c-1.9,0.96-4.27,1.44-7.13,1.44c-3.43,0-6.18-0.58-8.25-1.76 c-2.07-1.17-3.73-3.03-4.97-5.59c-1.24-2.56-1.86-5.95-1.86-10.18c0-6.18,1.3-10.71,3.91-13.59C54.13,1.44,57.74,0,62.36,0 c2.73,0,4.88,0.31,6.46,0.94c1.58,0.63,2.9,1.56,3.94,2.76C73.81,4.92,74.61,6.44,75.15,8.27L75.15,8.27z M57.62,23.55 c0,1.86,0.47,3.31,1.4,4.36c0.94,1.05,2.08,1.58,3.44,1.58c1.25,0,2.3-0.48,3.14-1.43c0.84-0.95,1.26-2.37,1.26-4.26 c0-1.93-0.44-3.41-1.31-4.42c-0.88-1.01-1.96-1.52-3.26-1.52c-1.32,0-2.44,0.49-3.34,1.48C58.06,20.32,57.62,21.72,57.62,23.55 L57.62,23.55z M77.91,17.57c0-6.51,1.17-11.07,3.52-13.67C83.77,1.3,87.35,0,92.14,0c2.31,0,4.2,0.29,5.68,0.85 c1.48,0.57,2.69,1.31,3.62,2.22c0.94,0.91,1.68,1.87,2.21,2.87c0.54,1.01,0.97,2.18,1.3,3.52c0.64,2.55,0.96,5.22,0.96,8 c0,6.22-1.05,10.76-3.16,13.64c-2.1,2.88-5.72,4.32-10.87,4.32c-2.88,0-5.21-0.46-6.99-1.38c-1.78-0.92-3.23-2.27-4.37-4.05 c-0.82-1.26-1.47-2.98-1.93-5.17C78.14,22.64,77.91,20.22,77.91,17.57L77.91,17.57z M87.34,17.59c0,4.36,0.38,7.34,1.16,8.94 c0.77,1.6,1.89,2.39,3.36,2.39c0.97,0,1.8-0.34,2.51-1.01c0.71-0.68,1.23-1.76,1.56-3.22c0.34-1.47,0.5-3.75,0.5-6.85 c0-4.55-0.38-7.6-1.16-9.18c-0.77-1.56-1.93-2.35-3.47-2.35c-1.58,0-2.71,0.8-3.42,2.39C87.69,10.31,87.34,13.27,87.34,17.59 L87.34,17.59z M112.14,8.32c0,1.75,0.15,2.94,0.46,3.58c0.31,0.64,0.76,0.96,1.35,0.96c0.39,0,0.72-0.13,1.01-0.41 c0.28-0.27,0.49-0.7,0.63-1.29c0.13-0.59,0.2-1.5,0.2-2.74c0-1.82-0.15-3.05-0.46-3.68c-0.31-0.63-0.77-0.94-1.39-0.94 c-0.63,0-1.09,0.32-1.37,0.96C112.28,5.4,112.14,6.59,112.14,8.32L112.14,8.32z M109.3,30.23c10.56,5.37,8.04,12.99-10.66,17.62 c-5.3,1.31-11.29,2.5-17.86,2.99v6.05c7.31-0.51,14.11-2.19,20.06-3.63c28.12-6.81,27.14-18.97,9.36-25.83 C109.95,28.42,109.65,29.35,109.3,30.23L109.3,30.23z"})})}):r.jsx(ce,{url:o,alt:n,aspectRatio:"1:1",crop:"cm-pad_resize",sizes:"(min-width: 768px), 50vw, 100vw"})})},a)})}),ve&&r.jsx(je,{name:h.get(i,"name",""),image:h.get(c,"gallery[0]['image-hi-res-url']",""),pimId:h.get(i,"pimID",""),description:h.get(i,"description",""),productDescriptionUrl:f})]})})},w1=({pathModelHTLAttribute:s,componentModelHTLAttribute:m})=>r.jsx(Y,{componentName:"aeh-product-hero-gallery",children:r.jsx(ie,{pathModelHTLAttribute:s,componentModelHTLAttribute:m,children:(i,g)=>r.jsx(fe,{children:r.jsx(Be,{pathModel:i,componentModel:g})})})});export{w1 as AEHProductHeroGallery};

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.