"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.mapPad=function(e){var t,o,l,n,i=null===(t=e.pad_frac_fleets)||void 0===t?void 0:t.find((function(t){var o;return"pad_frac_fleet"===t.type&&t.frac_fleet.id.toString()===(null===(o=e.current_frac_fleet_id)||void 0===o?void 0:o.toString())}));return{id:e.id,name:e.name,fleetName:(null==i?void 0:i.frac_fleet.name)||"N/A",wells:null===(o=e.wells)||void 0===o?void 0:o.map((function(e){var t,o,l;return{id:Number(e.id),assetId:e.asset_id,name:e.name,color:null===(t=e.custom_properties)||void 0===t?void 0:t.color,status:e.status,rigReleaseDate:e.stats.well_end,totalDepth:e.stats.total_depth,formation:e.target_formation||"N/A",topHole:{coordinates:[null==e||null===(o=e.lon_lat)||void 0===o?void 0:o.latitude,null==e||null===(l=e.lon_lat)||void 0===l?void 0:l.longitude]}}})),wellsNamesCombined:null===(l=e.wells)||void 0===l?void 0:l.map((function(e){return e.name})).join(", "),formationsCombined:null===(n=e.wells)||void 0===n?void 0:n.map((function(e){return e.target_formation})).filter(Boolean).join(", ")}};
//# sourceMappingURL=mapPad.js.map
