import{j as e,q as f}from"./index-DxNxE5m4.js";import{g as o}from"./index-CDJl7tv8.js";import{g as m}from"./index-CI0LDXE_.js";import{C as d}from"./ChannelDisplayName-B7pQt-SE.js";import"./_sentry-release-injection-file-DmrSj-oX.js";import{G as c,a as i}from"./grid-item-DQyl3f5x.js";import{T as l}from"./text-CT7B28w3.js";import{F as s}from"./flex-BqdYWhF7.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="3606399b-3171-4118-93d0-22296096c98a",r._sentryDebugIdIdentifier="sentry-dbid-3606399b-3171-4118-93d0-22296096c98a")}catch{}})();function w({products:r,...t}){return e.jsx(c,{templateColumns:{base:"auto auto 1fr",md:"auto auto 3fr 4fr"},columnGap:.5,rowGap:.5,color:"gray.700",fontWeight:"medium",textStyle:"sm",...t,pt:2,children:r.map(({quantity:a,product:n})=>e.jsxs(f.Fragment,{children:[e.jsx(i,{children:e.jsx(l,{children:a})}),e.jsx(i,{px:1.5,children:e.jsx(l,{color:"gray.500",fontWeight:"normal",children:"x"})}),e.jsx(i,{pr:2,children:e.jsx(l,{noOfLines:1,children:m(n)})}),e.jsx(i,{pr:2,gridColumn:{base:"span 3",md:"auto"},_notLast:{mb:{base:3,md:1}},children:e.jsx(d,{channelDisplayName:o(n.channel),platformType:n.channel.platformType,align:"center",isColorful:!0})})]},n.id))})}function D({products:r,...t}){return e.jsx(s,{direction:"column",color:"text-default",fontWeight:"medium",textStyle:"sm",gap:1,...t,children:r.map(({quantity:a,product:n})=>e.jsxs(s,{alignItems:"center",w:"100%",children:[e.jsx(l,{mr:1.5,children:a}),e.jsx(l,{color:"text-vsubtle",fontWeight:"normal",mr:1.5,children:"x"}),e.jsxs(s,{flex:1,overflow:"hidden",gap:3,align:"center",children:[e.jsx(l,{noOfLines:1,wordBreak:"break-all",textOverflow:"ellipsis",overflow:"hidden",flexShrink:1,minWidth:0,children:m(n)}),e.jsx(d,{channelDisplayName:o(n.channel),platformType:n.channel.platformType,align:"center",isColorful:!0,overflow:"hidden",textOverflow:"ellipsis",flexShrink:1,minWidth:0,justify:"flex-end",ml:"auto"})]})]},n.id))})}export{w as P,D as a};
//# sourceMappingURL=PackageLineItems-DgguhUCa.js.map
