"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("lodash");require("../../utils/index.js");var r=require("../../utils/metrics/metricsConfig.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=i(e),o=r,a={formation:"formation",stringDesign:"stringDesign",program:"programName",basin:"basin",county:"county",area:"area"},s=[{key:a.program,title:"Program/BU",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Programs/BUs")}},{key:a.basin,title:"Basin",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Basins")}},{key:a.county,title:"County",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Counties")}},{key:a.area,title:"Area",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Areas")}},{key:a.formation,title:"Target Formation",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Formations")}},{key:a.stringDesign,title:"String Design",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Designs")}}],_=t.sortBy([o.weight_to_weight_average,o.bottom_to_slips_average,o.drilling_connection_average,o.slips_to_bottom_average,o.hole_depth,o.hole_depth_change,o.drilled_feet_rotary,o.drilled_feet_slide,o.rop_gross,o.rop,o.rop_rotary,o.rop_slide,o.drilled_feet_rotary_percentage,o.drilled_feet_slide_percentage,o.on_bottom_percentage,o.on_bottom_time,o.cost_per_ft,o.cost_per_lat_ft,o.feet_per_day,o.tripping_in_speed_cased,o.tripping_in_speed_open,o.tripping_in_speed,o.tripping_out_speed_cased,o.tripping_out_speed_open,o.tripping_out_speed].concat(n.default("production"!==process.env.REACT_APP_ENVIRONMENT?[o.npt,o.circulating_time,o.spud_to_rig_release_time,o.spud_to_total_depth_time]:[])),"label"),l=_.map((function(e){return e.key}));exports.DEFAULT_SETTINGS={radius:5,filters:{},sortInfo:{key:"name",direction:1}},exports.FILTERS=a,exports.FILTERS_LIST=s,exports.MAX_METRICS_COUNT=2,exports.METRICS_KEYS=l,exports.METRICS_LIST=_,exports.SETTINGS_COLUMN={key:"settings",label:"settings",width:100},exports.TABLE_COLUMNS=[{label:"Well Name",key:"name",minWidth:250},{label:"Rig",key:"rigName",width:200},{label:"Distance",key:"distance",width:120},{label:"Rig Release Date",key:"rigReleaseDate",width:150}];
