import{shape as e,string as a}from"prop-types";import{makeStyles as t,Grid as i,Typography as n}from"@material-ui/core";import{getBhaBitSize as l,getBhaDepthIn as r}from"../../../../../utils/bha.js";import{jsxs as o,jsx as d}from"react/jsx-runtime";var c=t((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}}})),s=function(e){var a,t,s=e.feedItem,m=e.bitComponent,p=e.pageName,u=c(),h=null===(a=s.context)||void 0===a||null===(t=a.bha)||void 0===t?void 0:t.data,b=null==h?void 0:h.components,v=null==h?void 0:h.start_depth,f=l(b),y=r(v),g=(null==m?void 0:m.make)||"-",N=(null==m?void 0:m.model)||"-";return o(i,{container:!0,spacing:16,justify:"flex-start",children:[o(i,{item:!0,className:u.labelGrid,children:[d(n,{variant:"body2",className:u.planText,children:"Bit Size:"}),d(n,{variant:"body2",className:u.planText,children:"Depth In:"})]}),o(i,{item:!0,className:u.columnWithMargin,children:[d(n,{variant:"body2",className:u.pointValue,children:f}),d(n,{variant:"body2","data-testid":"".concat(p,"_bitSize"),className:u.pointValue,children:y})]}),o(i,{item:!0,className:u.labelGrid,children:[d(n,{variant:"body2",className:u.planText,children:"Bit Maker:"}),d(n,{variant:"body2",className:u.planText,children:"Bit Model:"})]}),o(i,{item:!0,children:[d(n,{variant:"body2","data-testid":"".concat(p,"_bitMaker"),className:u.pointValue,children:g}),d(n,{variant:"body2","data-testid":"".concat(p,"_bitModel"),className:u.pointValue,children:N})]})]})};s.propTypes={feedItem:e().isRequired,bitComponent:e().isRequired,pageName:a.isRequired};export{s as default};
