import"./ecb79917.js";import{M as u}from"./132ab464.js";import{a as r}from"./index.9be5fb1a.js";import"./a36cb30c.js";import"./d060b8a3.js";import"./119338b3.js";import"./097174ad.js";import"./f84d33f8.js";import"./1cfd448b.js";import"./a5033887.js";import{A as a}from"./3037522c.js";import"./ac04e32d.js";import"./3fd5546a.js";import"./30205710.js";import"./b84f6150.js";import"./7cc0a16d.js";import"./2dce7371.js";function k({media:o}){return o.length?r("div",{className:"h-full w-full hidden lg:flex flex-col",children:o.map((t,i)=>{let e={};const l=i===0,s=i===1,m=i===o.length-1,n=i%3===0,c={...t,image:{...t.image,altText:t.alt||"Product image"}};switch(t.mediaContentType){case"IMAGE":e={width:800,widths:[400,800,1200,1600,2e3,2400]};break;case"VIDEO":e={width:"100%",autoPlay:!0,controls:!1,muted:!0,loop:!0,preload:"auto"};break;case"EXTERNAL_VIDEO":e={width:"100%"};break;case"MODEL_3D":e={width:"100%",interactionPromptThreshold:"0",ar:!0,loading:a,disableZoom:!0};break}i===0&&t.mediaContentType==="IMAGE"&&(e.loading=a);const p=[l?"carousel-item-first":"",s?"carousel-item-middle":"",m?"carousel-item-last":""].join(" ");return r("div",{className:"carousel-item h-auto w-full carousel-wrapper mb-4",children:r("div",{className:"carousel-wrapper__inner h-auto w-full",children:r(u,{tabIndex:"0",data:c,sizes:n?"(min-width: 64em) 60vw, (min-width: 48em) 50vw, 90vw":"(min-width: 64em) 30vw, (min-width: 48em) 25vw, 90vw",options:{crop:"center",scale:2},className:`${p} w-full h-auto object-cover mix-blend-multiply carousel-image`,...e})})},t.id||t.image.id)})}):null}export{k as DesktopProductGallery};
//# sourceMappingURL=76258a34.js.map