import{get as t}from"lodash";var e=function(e){return{id:Number(t(e,"id")),name:t(e,"attributes.name"),status:t(e,"attributes.status"),wellState:t(e,"attributes.state"),companyId:t(e,"attributes.company_id"),companyName:"Null",rigId:t(e,"attributes.parent_asset_id")||"Null",rigName:t(e,"attributes.parent_asset_name")||"Null",formation:t(e,"attributes.target_formation")||"Null",stringDesign:t(e,"attributes.string_design")||"Null",programName:t(e,"attributes.root_asset_name")||"Null",basin:t(e,"attributes.basin")||"Null",county:t(e,"attributes.county")||"Null",area:t(e,"attributes.area")||"Null",visibility:t(e,"attributes.visibility"),topHole:t(e,"attributes.top_hole"),rigReleaseDate:t(e,"attributes.stats.well_end"),totalDepth:t(e,"attributes.stats.total_depth"),is_usable:!0,apiNumber:t(e,"attributes.settings.api_number","-"),lastActive:new Date(t(e,"attributes.last_active_at")).getTime()/1e3,lastDrillingAt:t(e,"attributes.last_drilling_at")?new Date(t(e,"attributes.last_drilling_at")).getTime()/1e3:void 0,lastInterventionAt:t(e,"attributes.last_intervention_at")?new Date(t(e,"attributes.last_intervention_at")).getTime()/1e3:void 0}};export{e as transformAssetToOffsetWell};
//# sourceMappingURL=transformAssetToOffsetWell.js.map
