"use strict";var e=require("prop-types"),a=require("@material-ui/core"),i=require("../../../../../utils/bha.js"),t=require("react/jsx-runtime"),r=a.makeStyles((function(e){return{labelGrid:{marginRight:11},planUnit:{color:e.palette.grey[400],marginLeft:5,fontSize:12},planText:{color:e.palette.grey[400]},pointValue:{display:"flex",alignItems:"center"},columnWithMargin:{marginRight:40}}})),n=function(e){var n,l,s=e.feedItem,o=e.bitComponent,d=e.pageName,p=r(),c=null===(n=s.context)||void 0===n||null===(l=n.bha)||void 0===l?void 0:l.data,h=null==c?void 0:c.components,m=null==c?void 0:c.start_depth,y=i.getBhaBitSize(h),u=i.getBhaDepthIn(m),g=(null==o?void 0:o.make)||"-",x=(null==o?void 0:o.model)||"-";return t.jsxs(a.Grid,{container:!0,justify:"flex-start",children:[t.jsxs(a.Grid,{item:!0,className:p.labelGrid,children:[t.jsx(a.Typography,{variant:"body2",className:p.planText,children:"Bit Size:"}),t.jsx(a.Typography,{variant:"body2",className:p.planText,children:"Depth In:"})]}),t.jsxs(a.Grid,{item:!0,className:p.columnWithMargin,children:[t.jsx(a.Typography,{variant:"body2",className:p.pointValue,children:y}),t.jsx(a.Typography,{variant:"body2","data-testid":"".concat(d,"_bitSize"),className:p.pointValue,children:u})]}),t.jsxs(a.Grid,{item:!0,className:p.labelGrid,children:[t.jsx(a.Typography,{variant:"body2",className:p.planText,children:"Bit Maker:"}),t.jsx(a.Typography,{variant:"body2",className:p.planText,children:"Bit Model:"})]}),t.jsxs(a.Grid,{item:!0,children:[t.jsx(a.Typography,{variant:"body2","data-testid":"".concat(d,"_bitMaker"),className:p.pointValue,children:g}),t.jsx(a.Typography,{variant:"body2","data-testid":"".concat(d,"_bitModel"),className:p.pointValue,children:x})]})]})};n.propTypes={feedItem:e.shape().isRequired,bitComponent:e.shape().isRequired,pageName:e.string.isRequired},module.exports=n;
//# sourceMappingURL=Info.js.map
