'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime");require("react");var core=require("@gem-sdk/core");require("next/head");var ChildrenDroppable=require("../../grid/components/ChildrenDroppable.js");require("next/image"),require("@gem-sdk/system"),require("next/link"),require("react-youtube");var Col=require("../../grid/components/col/Col.js");const CartList=({builderProps:e,advanced:r,setting:i,styles:t,children:s,...n})=>{let{data:u,error:a}=core.useCartData();return jsxRuntime.jsx("div",{"data-id":e?.uid,...n,children:a?jsxRuntime.jsxs("div",{children:["Error: ",a.message]}):u?jsxRuntime.jsx(Col.default,{styles:t,children:u.lineItems.map(e=>e?jsxRuntime.jsx(core.CartLineProvider,{line:e,children:core.isEmptyChildren(s)?jsxRuntime.jsx(ChildrenDroppable.default,{}):s},e.id):null)}):jsxRuntime.jsx("div",{children:"Cart Empty"})})};exports.default=CartList;
