"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/toConsumableArray"),l=require("lodash");require("../../utils/index.js");var a=require("../../utils/metrics/metricsConfig.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o,s=r(e),i=r(t),_={none:"none",normal:"normal",small:"small screen",tablet:"tablet",mobile:"mobile"},n=a,p={status:"status",rig:"rigName",program:"programName",basin:"basin",county:"county",area:"area",formation:"formation",stringDesign:"stringDesign",radius:"radius",period:"period",sideTracks:"sideTracks",timeRangeFrom:"timeRangeFrom",timeRangeTo:"timeRangeTo"},u=[{value:p.rig,label:"Rig"},{value:p.program,label:"Program/BU"},{value:p.basin,label:"Basin"},{value:p.county,label:"County"},{value:p.area,label:"Area"},{value:p.formation,label:"Target Formation"},{value:p.stringDesign,label:"String Design"}],d={unknown:"unknown",idle:"idle",active:"active",paused:"paused",complete:"complete"},c=[{value:d.unknown,color:"#9E9E9E"},{value:d.idle,color:"#BDBDBD"},{value:d.active,color:"#95F126"},{value:d.paused,color:"#FFF350"},{value:d.complete,color:"#2196F3"}],E={name:"name",status:"status",rig:"rigName",distance:"distance",lastActive:"lastActive",metrics:"metrics",wellSection:"wellSection"},m=[{type:E.name,label:"Well Name",key:E.name,width:[280,197,197,186]},{type:E.status,label:"",key:E.status,width:[40,40,40,30]},{type:E.rig,label:"Rig",key:E.rig,width:[220,140,140,93]},{type:E.distance,label:"Distance",key:E.distance,width:[160,160,122,93]},{type:E.lastActive,label:"Last Active",key:E.lastActive,width:[140,140,108,98]},{type:E.metrics,label:"",key:"",width:[0,212,141,141]},{type:E.wellSection,label:"Well Section",key:E.wellSection,width:[180,131,131,97]}],g=l.sortBy([n.weight_to_weight_average,n.bottom_to_slips_average,n.drilling_connection_average,n.slips_to_bottom_average,n.hole_depth,n.hole_depth_change,n.drilled_feet_rotary,n.drilled_feet_slide,n.rop_gross,n.rop,n.rop_rotary,n.rop_slide,n.drilled_feet_rotary_percentage,n.drilled_feet_slide_percentage,n.on_bottom_percentage,n.on_bottom_time,n.cost_per_ft,n.cost_per_lat_ft,n.feet_per_day,n.tripping_in_speed_cased,n.tripping_in_speed_open,n.tripping_in_speed,n.tripping_out_speed_cased,n.tripping_out_speed_open,n.tripping_out_speed].concat(i.default("production"!==process.env.REACT_APP_ENVIRONMENT?[n.npt,n.circulating_time,n.spud_to_rig_release_time,n.spud_to_total_depth_time]:[])),"label"),b=(o={},s.default(o,_.small,0),s.default(o,_.mobile,52),s.default(o,_.none,48),s.default(o,_.tablet,48),s.default(o,_.normal,48),o);exports.ALL_SECTION_KEY="all",exports.ALL_SECTION_LABEL="All",exports.ANDROID_DEVICE="Android",exports.ColumnType=E,exports.DEFAULT_BIC_OFFSET_SIZE=50,exports.DEFAULT_LOCAL_OFFSET_SIZE=50,exports.DEFAULT_METRICS_KEY="hole_depth_change",exports.EXPANDED_WELL_NAME_WIDTH=450,exports.FilterOptions=u,exports.FilterType=p,exports.IOS_DEVICE="iOS",exports.LEAVE_TOUCH_DELAY=1e4,exports.MAX_METRICS_COUNT=3,exports.MAX_OFFSET_SIZE=1e3,exports.METRICS_LIST=g,exports.OBJECTIVE_PERIOD_LIST=[{value:"all",label:"All"},{value:"last12h",label:"Last 12 hrs"},{value:"last24h",label:"Last 24 hrs"},{value:"last7d",label:"Last 7 days"},{value:"lastMonth",label:"Last Month"},{value:"custom",label:"Custom"}],exports.OTHER_DEVICE="other",exports.ROWS_PER_PAGE=50,exports.ROW_HEIGHT=60,exports.SMALL_SCREEN_HEIGHT=800,exports.SMALL_SCREEN_WIDTH=650,exports.StatusOptions=c,exports.TOP_GRADIENT_MAP=b,exports.TableColumns=m,exports.ViewType=_,exports.WINDOWS_PHONE="Window Phone",exports.WellSectionColors=["#6EACFF","#69B919","#E95DAF","#A77DFF","#77FFC1","#018EFE","#FF5D7E","#B9E310","#FFD111","#24BB8E","#C426F3"],exports.WellStatus=d;
