"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("@gem-sdk/core"),s=require("../../../carousel-v3/components/root/Carousel.js"),t=require("../../../carousel-v3/components/item/CarouselItem.js"),o=require("../../../grid/components/ChildrenDroppable.js"),i=require("./common/helpers.js"),l=require("./common/attrs.js"),u=require("./common/styles.js"),d=require("./common/classes.js");exports.default=a=>{let{children:c,builderProps:n,productSortedById:m,advanced:j}=a,p=r.useEditorMode(),{carouselConfigSetting:q,carouselConfigStyle:x}=i.getData(a),{productListAttr:g,getAttrProductItemEditor:h}=l.getAttr(a),{carouselItemStyle:v}=u.getStyle(a),{carouselClass:y,productItemClass:C}=d.getClass(a);return e.jsx(s.default,{advanced:j,builderProps:{uid:n?.uid},rootAttrs:{...g},rootClass:y,setting:q,styles:x,isProductList:!0,children:m?.map(s=>e.jsx(t.default,{style:v,children:e.jsx(r.ProductProvider,{product:s,readOnly:!0,children:e.jsx("div",{..."edit"===p?h(s?.baseID):{},className:C,children:r.isEmptyChildren(c)?e.jsx(o.default,{}):c})})},s?.baseID))})};
