"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("lodash"),r=require("../../../../../../utils/StageDesignVActualUtils.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=o(e);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){n.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}exports.getSummaries=function(e,o,n){var i,a,s={top_perforation:null===(i=e.data)||void 0===i?void 0:i.top_perforation,bottom_perforation:null===(a=e.data)||void 0===a?void 0:a.bottom_perforation,perforated_length:0,total_shots:0,flush_volume:0,fluids:{},chemicals:{},proppants:{}},l=u(u({},n),{},{flush_volume_design:t.get(n,"flush_volume","flush_volume_design")});return{actualSummary:!t.isEmpty(e)&&r.getStageSummary(s,e),designSummary:!t.isEmpty(o)&&r.getStageSummary(s,o),predictionSummary:l}};
//# sourceMappingURL=utils.js.map
