"use strict";var e=require("@material-ui/core"),t=require("../../../utils/mobileDetect.js"),a=require("../../UserMention/utils/index.js"),n=require("../../Attachment/index.js"),r=require("../../../utils/convert.js"),i=require("../../../constants/feed.js"),s=require("react/jsx-runtime"),l=e.makeStyles((function(e){return{text:{color:e.palette.primary.text6},value:{color:"#fff"},attachment:{paddingTop:10,width:300},infoField:{color:e.palette.primary.text6,"& span":{color:"#fff"}}}}));module.exports=function(o){var c=o.feedItem,d=c.context[i.FEED_ITEM_TYPES.TRACES_MEMO],m=d.body,h=d.attachment,p=void 0===h?{}:h,u=d.bitDepth,x=d.holeDepth,f=c.mentioned_users,g=l(),j=r.convertValue(+x,"length","ft"),y=r.convertValue(+x,"length","ft");return s.jsxs("div",{className:g.wrapper,children:[(x||0===x)&&s.jsxs(e.Typography,{className:g.infoField,children:["Hole Depth:"," ",s.jsx("span",{children:"".concat(Math.round(j).toLocaleString()," ").concat(r.getUnitDisplay("length"))})]}),(u||0===x)&&s.jsxs(e.Typography,{className:g.infoField,children:["Bit Depth:"," ",s.jsx("span",{children:"".concat(Math.round(y).toLocaleString()," ").concat(r.getUnitDisplay("length"))})]}),m&&s.jsxs(s.Fragment,{children:[s.jsx(e.Typography,{className:g.infoField,children:"Description:"}),s.jsx(e.Typography,{"data-testid":"".concat("NptLessonsCommentFeedItem","_message"),variant:"body1",gutterBottom:!0,children:a.formatMentionText(m,f,t.isNativeDetected)})]}),p&&(p.signed_url||p.url||p.name)&&s.jsx("div",{className:g.attachment,children:s.jsx(n,{small:!0,attachmentUrl:p.signed_url||p.url,fileName:p.name,displayName:p.name})})]})};
