"use strict";var e=require("react"),o=require("prop-types"),i=require("react-sortable-hoc"),n=require("@material-ui/core"),r=require("./SortableComponent.js"),t=require("react/jsx-runtime"),s=n.makeStyles({body:{flex:1,minHeight:0,zIndex:0,position:"relative"}}),u=i.SortableContainer((function(e){var o=e.isActualBha,i=e.components,n=e.validate,u=e.sortableIndex,l=e.onDeleteComponent,a=e.onSaveComponent,d=e.isMobile,m=e.viewColumnsPerRow,p=e.editColumnsPerRow,c=e.onAutocompleteApplied,b=s();return t.jsx("div",{className:b.body,children:i.map((function(e,s){return t.jsx(r,{index:s,isSortable:u===s,sortableIndex:u,component:e,isActualBha:o,isTopComponent:0===s,isLastCompnent:s===i.length-1,validate:n,onDelete:l,onSave:a,isMobile:d,viewColumnsPerRow:m,editColumnsPerRow:p,onAutocompleteApplied:c},e.id)}))})}));u.propTypes={isActualBha:o.bool.isRequired,components:o.arrayOf(o.shape({id:o.string.isRequired})),validate:o.func.isRequired,sortableIndex:o.number.isRequired,onSaveComponent:o.func.isRequired,onDeleteComponent:o.func.isRequired,isMobile:o.bool.isRequired,viewColumnsPerRow:o.number.isRequired,editColumnsPerRow:o.number.isRequired,onAutocompleteApplied:o.func.isRequired};var l=e.memo(u);module.exports=l;
//# sourceMappingURL=SortableComponents.js.map
