"use strict";var e=require("react"),r=require("prop-types"),s=require("lodash"),t=require("@material-ui/core"),a=require("../NoData.js"),i=require("./utils.js"),o=require("../../../../../StageDesignVActual/ComparisonHeader.js"),u=require("../../../../../StageDesignVActual/ComparisonRow.js"),n=require("../../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js"),l=require("react/jsx-runtime"),m=t.makeStyles({wrapper:{flex:"1",overflowY:"auto",padding:"0 5px"}}),p=function(r){var t,p=r.feedItem,c=r.stages,d=r.predictionsData,g=m(),j=(null===(t=p.context)||void 0===t?void 0:t.completion_actual_stage)||{},y=e.useMemo((function(){return i.getSummaries(j,c,d)}),[j,c,d]);return s.isEmpty(c)&&s.isEmpty(j)?l.jsx(a,{subject:"stages"}):l.jsxs("div",{className:g.wrapper,children:[l.jsx(o,{renderStages:function(){var e;return s.isEmpty(j)?"":"Stage Number: ".concat(null===(e=j.data)||void 0===e?void 0:e.stage_number)}}),l.jsx(u,{rowKey:"top_perforation",label:"Top Perforation",unitType:"length",summaries:y}),l.jsx(u,{rowKey:"bottom_perforation",label:"Bottom Perforation",unitType:"length",summaries:y}),l.jsx(u,{rowKey:"perforated_length",label:"Perforation Length",unitType:"length",summaries:y}),l.jsx(u,{rowKey:"total_shots",label:"Total Shots",summaries:y}),l.jsx(u,{rowKey:"flush_volume",label:"Flush Volume",unitType:"oil",summaries:y}),l.jsx(n,{rowKey:"chemicals",summaries:y}),l.jsx(n,{rowKey:"proppants",summaries:y}),l.jsx(n,{rowKey:"fluids",summaries:y})]})};p.propTypes={feedItem:r.shape().isRequired,stages:r.shape().isRequired,predictionsData:r.shape().isRequired},module.exports=p;
//# sourceMappingURL=Stages.js.map
