"use strict";var e=require("react"),l=require("prop-types"),t=require("@material-ui/core"),s=require("./BHAComponent.js"),a=require("../../../utils/index.js"),i=require("react/jsx-runtime");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(l),d=t.makeStyles({tableStyle:{tableLayout:"fixed"},tableHeadCellStyle:{height:"38px",padding:"0px",color:"#999999",fontSize:"12px",borderTop:"1px solid rgba(81, 81, 81, 1)"}});function c(e){var l=e.components,r=e.onSelectComponent,n=d(),c=n.tableStyle,h=n.tableHeadCellStyle;return i.jsxs(t.Table,{className:c,children:[i.jsx(t.TableHead,{children:i.jsxs(t.TableRow,{children:[i.jsx(t.TableCell,{className:h,style:{width:"2%"},children:"#"}),i.jsx(t.TableCell,{className:h,style:{width:"13%",paddingLeft:44},children:"Category"}),i.jsx(t.TableCell,{className:h,style:{width:"13%"},children:"Name"}),i.jsxs(t.TableCell,{className:h,style:{width:"7%"},children:["OD (",a.getUnitDisplay("shortLength"),")"]}),i.jsxs(t.TableCell,{className:h,style:{width:"7%"},children:["ID (",a.getUnitDisplay("shortLength"),")"]}),i.jsxs(t.TableCell,{className:h,style:{width:"15%"},children:["Linear Weight (",a.getUnitDisplay("massPerLength"),")"]}),i.jsxs(t.TableCell,{className:h,style:{width:"10%"},children:["Length (",a.getUnitDisplay("length"),")"]}),i.jsxs(t.TableCell,{className:h,style:{width:"10%"},children:["Weight (",a.getUnitDisplay("mass"),")"]}),i.jsxs(t.TableCell,{className:h,style:{width:"13%"},children:["Cum.Length (",a.getUnitDisplay("length"),")"]}),i.jsx(t.TableCell,{className:h,style:{width:"7%"},children:"Grade"}),i.jsx(t.TableCell,{className:h,style:{width:"3%"}})]})}),i.jsx(t.TableBody,{children:l.map((function(e,l){return i.jsx(s,{component:e,order:l+1,onSelect:r},e.id)}))})]})}c.propTypes={components:n.default.arrayOf(n.default.shape({})).isRequired,onSelectComponent:n.default.func.isRequired};var h=e.memo(c);module.exports=h;
//# sourceMappingURL=index.js.map
