"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("@gem-sdk/core"),s=require("../../../carousel/components/root/Carousel.js"),t=require("../../../carousel/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:y}=u.getStyle(a),{carouselClass:C,productItemClass:b}=d.getClass(a);return e.jsx(s.default,{advanced:j,builderProps:{uid:n?.uid},rootAttrs:{...g},rootClass:C,setting:q,styles:x,children:m?.map(s=>e.jsx(t.default,{style:y,children:e.jsx(r.ProductProvider,{product:s,readOnly:!0,children:e.jsx("div",{..."edit"===p?h(s?.baseID):{},className:b,children:r.isEmptyChildren(c)?e.jsx(o.default,{}):c})})},s?.baseID))})};
