import{u as i}from"./vendor.CynPCimz.js";import{u as d,P as b,a as h,B as o}from"./app.BXvw8ij6.js";function T({merchandiseItem:s,hideBadge:t,size:m="small"}){const{lineItems:{quantityPosition:n="thumbnailBadge"}}=d(),{title:r,quantity:a,image:e}=s,c=a!==1&&n==="thumbnailBadge"?a:void 0;return i(b,{size:m,alt:e?.altText||r,src:e?.one,srcSet:e?`${e.one} 1x, ${e.two} 2x, ${e.four} 4x`:void 0,totalItems:t?void 0:c})}const B="H0GUh",S="QYcl8",x="sFM5S",l={Container:B,PrimaryThumbnail:S,EmptyThumbnailBox:x},p=.8125,y=.625;function g({merchandiseItem:s,merchandiseLinesLength:t}){const{global:{cornerRadius:m="base"},merchandiseThumbnail:{cornerRadius:n=m}}=d(),{blockSize:r,inlineSize:a}=h("small"),e=r*p,u=r*y;return i(o,{minBlockSize:`${r}px`,minInlineSize:`${a}px`,borderRadius:n,children:i("div",{className:l.Container,children:[i(o,{className:l.PrimaryThumbnail,borderRadius:n,children:i(T,{merchandiseItem:s,hideBadge:!0})}),t>=2&&i(o,{disableGlobalBranding:!0,className:l.EmptyThumbnailBox,borderRadius:n,children:i(o,{disableGlobalBranding:!0,minBlockSize:`${e}px`,minInlineSize:`${a}px`,borderRadius:n})}),t>=3&&i(o,{disableGlobalBranding:!0,className:l.EmptyThumbnailBox,borderRadius:n,children:i(o,{disableGlobalBranding:!0,minBlockSize:`${u}px`,minInlineSize:`${a}px`,borderRadius:n})})]})})}export{T as M,g as S};
