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