"use strict";var e=require("lodash"),n=require("@material-ui/core"),t=require("../../../constants/segment.js"),i=require("react/jsx-runtime"),r=n.makeStyles((function(e){return{rigAndWellContainer:{display:"flex",gap:"8px",alignItems:"flex-end"},contentAssetInfo:{color:e.palette.primary.main,width:"100%",fontSize:12},assetLink:{cursor:"pointer",display:"block",marginTop:e.spacing(.5),fontSize:"12px",pointerEvents:"auto",zIndex:1},stageNumber:{color:e.palette.primary.text6,fontSize:12}}}));module.exports=function(a){var l,o,s,d,c,u,v=a.feedItem,g=r(),m=!!v.rig,p=function(e){var n,t,i;return e.rig?null===(n=e.rig)||void 0===n?void 0:n.name:null===(t=e.well)||void 0===t||null===(i=t.parent_asset)||void 0===i?void 0:i.name}(v),f=m?null===(l=v.rig)||void 0===l||null===(o=l.active_well)||void 0===o?void 0:o.name:null===(s=v.well)||void 0===s?void 0:s.name,x=m?null===(d=v.rig)||void 0===d||null===(c=d.active_well)||void 0===c?void 0:c.id:null===(u=v.well)||void 0===u?void 0:u.id,y=e.get(v,["segment",0])===t.SEGMENTS.COMPLETION&&e.get(v,["context","alert","stage_numbers",0]);return i.jsxs("div",{className:g.rigAndWellContainer,children:[x?i.jsx("a",{"data-testid":"".concat("FeedPo","_wellLink"),className:g.assetLink,onClick:function(e){return e.stopPropagation()},href:"/assets/".concat(x,"/"),target:"_blank",rel:"noreferrer",children:i.jsxs(n.Typography,{variant:"body2",className:g.contentAssetInfo,children:[p," - ",f]})}):i.jsxs(n.Typography,{variant:"body2",className:g.contentAssetInfo,children:[p," - No Active Well"]}),y&&i.jsxs(n.Typography,{variant:"body2",className:g.stageNumber,children:["Stage ",y]})]})};
//# sourceMappingURL=RigAndWell.js.map
