"use strict";var e=require("@material-ui/core"),t=require("../../../utils/mobileDetect.js"),n=require("../../UserMention/utils/index.js"),i=require("../../Attachment/index.js"),a=require("../../../utils/convert.js"),r=require("../../../constants/feed.js"),l=require("react/jsx-runtime"),s=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[r.FEED_ITEM_TYPES.TRACES_MEMO],m=d.body,u=d.attachment,h=void 0===u?{}:u,p=d.bitDepth,f=d.holeDepth,x=c.mentioned_users,g=s(),j=a.convertValue(+f,"length","ft"),y=a.convertValue(+f,"length","ft"),v=(null==h?void 0:h.signed_url)||(null==h?void 0:h.url),D=(null==h?void 0:h.file_name)||(null==h?void 0:h.name);return l.jsxs("div",{className:g.wrapper,children:[(f||0===f)&&l.jsxs(e.Typography,{className:g.infoField,children:["Hole Depth:"," ",l.jsx("span",{children:"".concat(Math.round(j).toLocaleString()," ").concat(a.getUnitDisplay("length"))})]}),(p||0===f)&&l.jsxs(e.Typography,{className:g.infoField,children:["Bit Depth:"," ",l.jsx("span",{children:"".concat(Math.round(y).toLocaleString()," ").concat(a.getUnitDisplay("length"))})]}),m&&l.jsxs(l.Fragment,{children:[l.jsx(e.Typography,{className:g.infoField,children:"Description:"}),l.jsx(e.Typography,{"data-testid":"".concat("NptLessonsCommentFeedItem","_message"),variant:"body1",gutterBottom:!0,children:n.formatMentionText(m,x,t.isNativeDetected)})]}),h&&(v||D)&&l.jsx("div",{className:g.attachment,children:l.jsx(i,{small:!0,attachmentUrl:v,fileName:D,displayName:D})})]})};
//# sourceMappingURL=NptLessonsCommentFeedItem.js.map
