1import{h,x as y,n as j,r as u,j as e,H as I,b as C,c as v,p as a,m as E}from"./app-5a1bf800.js";import $ from"./ShoppingBag-e50cd9c0.js";import{M as f}from"./MiniCartItemCard-6340bf73.js";import"./Alert-1bf6754a.js";import"./Trash-40f26c0f.js";import"./MiniCartQuantityStepper-e5877da9.js";const L=()=>{var c;const t=h(["common/emptyCart","miniCart/cartEmptyDescription"]),s=y(),m=j(),[i,g]=u.useState();return u.useEffect(()=>{g(s.lineItems)},[m.display]),e.jsx(e.Fragment,{children:m.display&&i&&i.length>0&&s&&((c=s.lineItems)==null?void 0:c.length)>0?e.jsx(M,{children:i==null?void 0:i.map((n,p)=>{var l,x;const r=!((l=s==null?void 0:s.lineItems)!=null&&l.find(o=>o.code===n.code));if(r)return e.jsx(f,{lineItem:n,inverseImage:!0,removed:r},p);const d=(x=s==null?void 0:s.lineItems)==null?void 0:x.find(o=>o.code===n.code);return d?e.jsx(f,{lineItem:d,inverseImage:!0,removed:r},p):e.jsx(e.Fragment,{})})}):s.numberOfItems===0&&e.jsx(b,{children:e.jsxs(S,{children:[e.jsx($,{size:"xl",color:"onSurface"}),e.jsxs(F,{children:[e.jsx(I,{tag:"h3",size:"m",weights:"bold",children:t["common/emptyCart"]}),e.jsx(C,{size:"m",css:v` 2 padding-top: ${n=>n.theme.space.s50}; 3 `,children:t["miniCart/cartEmptyDescription"]})]})]})})})},M=a.div` 4 display: flex; 5 flex-direction: column; 6 @media ${E.bpMax960} { 7 padding-top: ${({theme:t})=>t.space.s150}; 8 } 9`,b=a.div` 10 display: flex; 11 height: 100%; 12 padding: ${t=>`${t.theme.space.s500} 0 ${t.theme.space.s1000} 0`}; 13 gap: ${t=>t.theme.space.s300}; 14 flex-direction: column; 15 justify-content: center; 16 align-items: center; 17 text-align: center; 18 flex: 1 0 0; 19`,S=a.div` 20 display: flex; 21 flex-direction: column; 22 align-items: center; 23 gap: ${t=>t.theme.space.s150}; 24`,F=a.div``;export{L as default};
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.