"use strict";var e=require("react"),l=require("prop-types"),n=require("@material-ui/core"),r=require("@material-ui/icons"),i=require("../BHAComponentIcon.js"),a=require("react/jsx-runtime"),s=n.makeStyles({tableBodyCell:{padding:0,borderBottom:"none",height:49,fontSize:"13px"},componentIconCell:{padding:0,borderBottom:"none",height:49,display:"flex",alignItems:"center",fontSize:"13px"},infoIcon:{fontSize:16,color:"#ccc",cursor:"pointer"},iconWrapper:{width:"40px",height:"48px",display:"flex",justifyContent:"center",marginRight:"4px"}}),c=function(e){var l=e.component,c=e.order,o=e.onSelect,t=s(),d=t.tableBodyCell,m=t.componentIconCell,h=t.iconWrapper,p=t.infoIcon;return a.jsxs(n.TableRow,{children:[a.jsx(n.TableCell,{className:d,children:c}),a.jsxs(n.TableCell,{className:m,children:[a.jsx("div",{className:h,children:a.jsx(i,{component:l})}),a.jsx("div",{children:l.family_name||l.family})]}),a.jsx(n.TableCell,{className:d,children:l.name}),a.jsx(n.TableCell,{className:d,children:l.outer_diameter}),a.jsx(n.TableCell,{className:d,children:l.inner_diameter}),a.jsx(n.TableCell,{className:d,children:l.linear_weight}),a.jsx(n.TableCell,{className:d,children:l.length}),a.jsx(n.TableCell,{className:d,children:l.weight}),a.jsx(n.TableCell,{className:d,children:Number.isFinite(l.c_length)?l.c_length.toFixed(2):""}),a.jsx(n.TableCell,{className:d,children:l.grade}),a.jsx(n.TableCell,{className:d,children:a.jsx(r.InfoOutlined,{className:p,onClick:function(){return o(l)}})})]})};c.propTypes={component:l.shape({}).isRequired,order:l.number.isRequired,onSelect:l.func.isRequired};var o=e.memo(c);module.exports=o;
//# sourceMappingURL=BHAComponent.js.map
