'use client';
import{jsx as r,jsxs as t}from"react/jsx-runtime";import"react";import{useCartData as e,CartLineProvider as i,isEmptyChildren as m}from"@gem-sdk/core";import"next/head";import o from"../../grid/components/ChildrenDroppable.js";import"next/image";import"@gem-sdk/system";import"next/link";import"react-youtube";import d from"../../grid/components/col/Col.js";let CartList=({builderProps:n,advanced:l,setting:p,styles:a,children:s,...c})=>{let{data:h,error:u}=e();return r("div",{"data-id":n?.uid,...c,children:u?t("div",{children:["Error: ",u.message]}):h?r(d,{styles:a,children:h.lineItems.map(t=>t?r(i,{line:t,children:m(s)?r(o,{}):s},t.id):null)}):r("div",{children:"Cart Empty"})})};export{CartList as default};
