@corva/ui 0.81.0-3 → 0.81.0-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js +1 -1
  2. package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js +1 -1
  3. package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  4. package/cjs-bundle/components/Chart/utils.js +1 -1
  5. package/cjs-bundle/utils/metrics/metricsConfig.js +1 -1
  6. package/cjs-bundle/utils/metrics/utils.js +1 -1
  7. package/components/Chart/components/buttons/HideAxesButton.js +1 -1
  8. package/components/Chart/components/buttons/ZoomInButton.js +1 -1
  9. package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  10. package/components/Chart/constants.d.ts +1 -0
  11. package/components/Chart/constants.d.ts.map +1 -1
  12. package/components/Chart/options.d.ts +22 -0
  13. package/components/Chart/options.d.ts.map +1 -1
  14. package/components/Chart/utils.d.ts +1 -0
  15. package/components/Chart/utils.d.ts.map +1 -1
  16. package/components/Chart/utils.js +1 -1
  17. package/components/OffsetWellPickerV2/constants.d.ts +28 -1
  18. package/components/OffsetWellPickerV2/constants.d.ts.map +1 -1
  19. package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.d.ts +28 -1
  20. package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.d.ts.map +1 -1
  21. package/components/OffsetWellPickerV4/constants.d.ts +28 -1
  22. package/components/OffsetWellPickerV4/constants.d.ts.map +1 -1
  23. package/constants/goals.d.ts +20 -5
  24. package/constants/goals.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/utils/metrics/metricsConfig.d.ts +21 -5
  27. package/utils/metrics/metricsConfig.d.ts.map +1 -1
  28. package/utils/metrics/metricsConfig.js +1 -1
  29. package/utils/metrics/utils.d.ts +11 -2
  30. package/utils/metrics/utils.d.ts.map +1 -1
  31. package/utils/metrics/utils.js +1 -1
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("react"),s=require("classnames"),o=require("@material-ui/core"),t=require("../../../../icons/iconParkIcons.js");require("../../../../icons/customIcons/icons/AddMessage.js"),require("../../../../icons/customIcons/icons/Attention.js"),require("../../../../icons/customIcons/icons/Collapse.js"),require("../../../../icons/customIcons/icons/Expand.js"),require("../../../../icons/customIcons/icons/FolderClosed.js"),require("../../../../icons/customIcons/icons/FolderOpened.js"),require("../../../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../../../icons/customIcons/icons/LessOrEqual.js"),require("../../../../icons/customIcons/icons/Search.js"),require("../../../../icons/customIcons/icons/Wellhub.js");var n=require("../ChartButton.js"),c=require("../../ChartWrapperContext.js");require("@babel/runtime/helpers/slicedToArray"),require("lodash");var i=require("../../effects/useHideAxes.js");require("../../effects/useChartModifier.js");var u=require("react/jsx-runtime");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(e),p=a(s);function d(e,r){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),s.push.apply(s,o)}return s}function j(e){for(var r=1;r<arguments.length;r++){var s=null!=arguments[r]?arguments[r]:{};r%2?d(Object(s),!0).forEach((function(r){l.default(e,r,s[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):d(Object(s)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(s,r))}))}return e}var f=o.makeStyles({icon:{top:0,transform:"rotate(45deg)"}}),m=function(e){var s=r.useContext(c),o=s.chart,a=s.handleChangeChartStyles,l=i.useHideAxes({chart:o,onChartStylesChange:a}),d=l.isHiddenAxes,m=l.handleAxesHide,q=f();return u.jsx(n,j(j({},e),{},{className:p.default(q.hideAxesButton,e.className),tooltipProps:j({title:d?"Show Axes":"Hide Axes"},e.tooltipProps),onClick:m,children:d?u.jsx(t.ExpandIcon,{className:q.icon,size:16}):u.jsx(t.CollapseIcon,{className:q.icon,size:16})}))};m.defaultProps={tooltipProps:{}},module.exports=m;
1
+ "use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("react"),s=require("classnames"),o=require("@material-ui/core"),t=require("../../../../icons/iconParkIcons.js");require("../../../../icons/customIcons/icons/AddMessage.js"),require("../../../../icons/customIcons/icons/Attention.js"),require("../../../../icons/customIcons/icons/Collapse.js"),require("../../../../icons/customIcons/icons/Expand.js"),require("../../../../icons/customIcons/icons/FolderClosed.js"),require("../../../../icons/customIcons/icons/FolderOpened.js"),require("../../../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../../../icons/customIcons/icons/LessOrEqual.js"),require("../../../../icons/customIcons/icons/Search.js"),require("../../../../icons/customIcons/icons/Wellhub.js");var i=require("../ChartButton.js"),n=require("../../ChartWrapperContext.js");require("@babel/runtime/helpers/slicedToArray"),require("lodash"),require("../../../../utils/main.js");var c=require("../../effects/useHideAxes.js");require("../../effects/useChartModifier.js");var u=require("react/jsx-runtime");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(e),p=a(s);function j(e,r){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),s.push.apply(s,o)}return s}function d(e){for(var r=1;r<arguments.length;r++){var s=null!=arguments[r]?arguments[r]:{};r%2?j(Object(s),!0).forEach((function(r){l.default(e,r,s[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):j(Object(s)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(s,r))}))}return e}var f=o.makeStyles({icon:{top:0,transform:"rotate(45deg)"}}),m=function(e){var s=r.useContext(n),o=s.chart,a=s.handleChangeChartStyles,l=c.useHideAxes({chart:o,onChartStylesChange:a}),j=l.isHiddenAxes,m=l.handleAxesHide,q=f();return u.jsx(i,d(d({},e),{},{className:p.default(q.hideAxesButton,e.className),tooltipProps:d({title:j?"Show Axes":"Hide Axes"},e.tooltipProps),onClick:m,children:j?u.jsx(t.ExpandIcon,{className:q.icon,size:16}):u.jsx(t.CollapseIcon,{className:q.icon,size:16})}))};m.defaultProps={tooltipProps:{}},module.exports=m;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),o=require("react"),t=require("../../../../icons/iconParkIcons.js");require("../../../../icons/customIcons/icons/AddMessage.js"),require("../../../../icons/customIcons/icons/Attention.js"),require("../../../../icons/customIcons/icons/Collapse.js"),require("../../../../icons/customIcons/icons/Expand.js"),require("../../../../icons/customIcons/icons/FolderClosed.js"),require("../../../../icons/customIcons/icons/FolderOpened.js"),require("../../../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../../../icons/customIcons/icons/LessOrEqual.js"),require("../../../../icons/customIcons/icons/Search.js"),require("../../../../icons/customIcons/icons/Wellhub.js");var s=require("../../ChartWrapperContext.js"),n=require("../../constants.js"),i=require("../ChartButton.js");require("@babel/runtime/helpers/slicedToArray"),require("lodash");var c=require("../../effects/useKeyboardControl.js");require("../../effects/useChartModifier.js");var u=require("react/jsx-runtime");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(e),p=a(r),j=["onClick"];function f(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),o.push.apply(o,t)}return o}function b(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?f(Object(o),!0).forEach((function(r){l.default(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var d=function(e){var r=e.onClick,a=void 0===r?function(){}:r,l=p.default(e,j),f=o.useContext(s),d=f.zoomStatus,q=f.handleZoomEvent,O=function(){q(n.ZOOM_TYPE.zoomIn),a()};return c.useKeyboardControl({keyCode:n.HOT_KEYS.arrowUp,callback:O}),u.jsx(i,b(b({},l),{},{onClick:O,disabled:d.isMax,tooltipProps:b({title:"Zoom In"},l.tooltipProps),children:u.jsx(t.PlusIcon,{size:16})}))};d.defaultProps={onClick:function(){},tooltipProps:{}},module.exports=d;
1
+ "use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),o=require("react"),t=require("../../../../icons/iconParkIcons.js");require("../../../../icons/customIcons/icons/AddMessage.js"),require("../../../../icons/customIcons/icons/Attention.js"),require("../../../../icons/customIcons/icons/Collapse.js"),require("../../../../icons/customIcons/icons/Expand.js"),require("../../../../icons/customIcons/icons/FolderClosed.js"),require("../../../../icons/customIcons/icons/FolderOpened.js"),require("../../../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../../../icons/customIcons/icons/LessOrEqual.js"),require("../../../../icons/customIcons/icons/Search.js"),require("../../../../icons/customIcons/icons/Wellhub.js");var s=require("../../ChartWrapperContext.js"),n=require("../../constants.js"),i=require("../ChartButton.js");require("@babel/runtime/helpers/slicedToArray"),require("lodash"),require("../../../../utils/main.js");var c=require("../../effects/useKeyboardControl.js");require("../../effects/useChartModifier.js");var u=require("react/jsx-runtime");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(e),p=a(r),j=["onClick"];function f(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),o.push.apply(o,t)}return o}function b(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?f(Object(o),!0).forEach((function(r){l.default(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var d=function(e){var r=e.onClick,a=void 0===r?function(){}:r,l=p.default(e,j),f=o.useContext(s),d=f.zoomStatus,q=f.handleZoomEvent,m=function(){q(n.ZOOM_TYPE.zoomIn),a()};return c.useKeyboardControl({keyCode:n.HOT_KEYS.arrowUp,callback:m}),u.jsx(i,b(b({},l),{},{onClick:m,disabled:d.isMax,tooltipProps:b({title:"Zoom In"},l.tooltipProps),children:u.jsx(t.PlusIcon,{size:16})}))};d.defaultProps={onClick:function(){},tooltipProps:{}},module.exports=d;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),o=require("react"),t=require("../../../../icons/iconParkIcons.js");require("../../../../icons/customIcons/icons/AddMessage.js"),require("../../../../icons/customIcons/icons/Attention.js"),require("../../../../icons/customIcons/icons/Collapse.js"),require("../../../../icons/customIcons/icons/Expand.js"),require("../../../../icons/customIcons/icons/FolderClosed.js"),require("../../../../icons/customIcons/icons/FolderOpened.js"),require("../../../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../../../icons/customIcons/icons/LessOrEqual.js"),require("../../../../icons/customIcons/icons/Search.js"),require("../../../../icons/customIcons/icons/Wellhub.js");var s=require("../../ChartWrapperContext.js"),n=require("../../constants.js"),i=require("../ChartButton.js");require("@babel/runtime/helpers/slicedToArray"),require("lodash");var c=require("../../effects/useKeyboardControl.js");require("../../effects/useChartModifier.js");var u=require("react/jsx-runtime");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(e),p=a(r),j=["onClick"];function f(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),o.push.apply(o,t)}return o}function b(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?f(Object(o),!0).forEach((function(r){l.default(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var d=function(e){var r=e.onClick,a=void 0===r?function(){}:r,l=p.default(e,j),f=o.useContext(s),d=f.handleZoomEvent,O=f.zoomStatus,q=function(){d(n.ZOOM_TYPE.zoomOut),a()};return c.useKeyboardControl({keyCode:n.HOT_KEYS.arrowDown,callback:q}),u.jsx(i,b(b({},l),{},{onClick:q,tooltipProps:b({title:"Zoom Out"},l.tooltipProps),disabled:O.isReset,children:u.jsx(t.MinusIcon,{size:16})}))};d.defaultProps={onClick:function(){},tooltipProps:{}},module.exports=d;
1
+ "use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),o=require("react"),t=require("../../../../icons/iconParkIcons.js");require("../../../../icons/customIcons/icons/AddMessage.js"),require("../../../../icons/customIcons/icons/Attention.js"),require("../../../../icons/customIcons/icons/Collapse.js"),require("../../../../icons/customIcons/icons/Expand.js"),require("../../../../icons/customIcons/icons/FolderClosed.js"),require("../../../../icons/customIcons/icons/FolderOpened.js"),require("../../../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../../../icons/customIcons/icons/LessOrEqual.js"),require("../../../../icons/customIcons/icons/Search.js"),require("../../../../icons/customIcons/icons/Wellhub.js");var s=require("../../ChartWrapperContext.js"),n=require("../../constants.js"),i=require("../ChartButton.js");require("@babel/runtime/helpers/slicedToArray"),require("lodash"),require("../../../../utils/main.js");var c=require("../../effects/useKeyboardControl.js");require("../../effects/useChartModifier.js");var u=require("react/jsx-runtime");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(e),p=a(r),j=["onClick"];function f(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),o.push.apply(o,t)}return o}function b(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?f(Object(o),!0).forEach((function(r){l.default(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var d=function(e){var r=e.onClick,a=void 0===r?function(){}:r,l=p.default(e,j),f=o.useContext(s),d=f.handleZoomEvent,q=f.zoomStatus,O=function(){d(n.ZOOM_TYPE.zoomOut),a()};return c.useKeyboardControl({keyCode:n.HOT_KEYS.arrowDown,callback:O}),u.jsx(i,b(b({},l),{},{onClick:O,tooltipProps:b({title:"Zoom Out"},l.tooltipProps),disabled:q.isReset,children:u.jsx(t.MinusIcon,{size:16})}))};d.defaultProps={onClick:function(){},tooltipProps:{}},module.exports=d;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./constants.js");exports.getChartScale=function(t){var r=t.extremes,o=t.step,n=t.maxZoom;return(void 0===n?e.MAX_ZOOM:n)-(r.max-r.min)/o},exports.getCurrentMaxValue=function(e,t){return e>=t?t:e},exports.getCurrentMinValue=function(e,t){return e<=t?t:e},exports.getIsMaxZoom=function(t){var r=t.min,o=t.max,n=t.zoomStep;return t.zoomType===e.ZOOM_TYPE.zoomIn&&Math.round(r+n)===Math.round(o-n)},exports.getNextZoomCoordinates=function(t){var r=t.min,o=t.max,n=t.zoomType,u=t.zoomStep,s=t.scale;return n===e.ZOOM_TYPE.zoomIn?Math.round(r+u)===Math.round(o-u)||s>e.MAX_ZOOM-1?[r,o]:[r+u,o-u]:[r-u,o+u]},exports.getXExtremes=function(e){return null==e?void 0:e.xAxis[0].getExtremes()},exports.getYExtremes=function(e){return null==e?void 0:e.yAxis[0].getExtremes()};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../utils/main.js");var e=require("./constants.js");exports.getChartScale=function(t){var r=t.extremes,o=t.step,n=t.maxZoom;return(void 0===n?e.MAX_ZOOM:n)-(r.max-r.min)/o},exports.getCurrentMaxValue=function(e,t){return e>=t?t:e},exports.getCurrentMinValue=function(e,t){return e<=t?t:e},exports.getIsMaxZoom=function(t){var r=t.min,o=t.max,n=t.zoomStep;return t.zoomType===e.ZOOM_TYPE.zoomIn&&Math.round(r+n)===Math.round(o-n)},exports.getNextZoomCoordinates=function(t){var r=t.min,o=t.max,n=t.zoomType,u=t.zoomStep,s=t.scale;return n===e.ZOOM_TYPE.zoomIn?Math.round(r+u)===Math.round(o-u)||s>e.MAX_ZOOM-1?[r,o]:[r+u,o-u]:[r-u,o+u]},exports.getXExtremes=function(e){return null==e?void 0:e.xAxis[0].getExtremes()},exports.getYExtremes=function(e){return null==e?void 0:e.yAxis[0].getExtremes()};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../convert.js"),t=require("./utils.js"),i={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0,convertForMultiRigs:t.getAverage},o={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:t.convertPercentageMetrics,convertForMultiRigs:t.getAverage},n={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},r={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},p={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},s={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},l={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},_={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0,convertForMultiRigs:t.getAverage},g={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0,convertForMultiRigs:t.getAverage},a={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s",convertForMultiRigs:t.getAverage},c={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:t.getAverage},m={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:t.getAverage},u={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:t.getAverage},y={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:t.getAverage},d={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},v={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},f={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},T={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},h={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},b={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},x={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:t.getAverage},k={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h",convertForMultiRigs:t.getAverage},B={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h",convertForMultiRigs:t.getAverage},R={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h",convertForMultiRigs:t.getAverage},M={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h",convertForMultiRigs:t.getAverage},C={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h",convertForMultiRigs:t.getAverage},A={label:"Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")},convertForMultiRigs:t.getAverage},F={label:"Lateral Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_lat_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")},convertForMultiRigs:t.getAverage},S={label:"Cumulative Tortuosity",key:"cumulative_tortuosity",convertForMultiRigs:t.getAverage};exports.bha_count={label:"Total BHA's",key:"bha_count"},exports.bottom_to_slips_average=m,exports.build_rate={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.circulating_time={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h"},exports.cost_per_ft=A,exports.cost_per_lat_ft=F,exports.cumulative_tortuosity=S,exports.drilled_feet_rotary={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0},exports.drilled_feet_rotary_percentage=i,exports.drilled_feet_slide={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft"},exports.drilled_feet_slide_percentage=o,exports.drilling_connection_average=a,exports.drilling_percentage=n,exports.drilling_time_rotary={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},exports.drilling_time_slide={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},exports.feet_per_day=_,exports.gross_time={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},exports.gross_tripping_in_speed=R,exports.gross_tripping_in_speed_cased=k,exports.gross_tripping_in_speed_open=B,exports.gross_tripping_in_speed_total=M,exports.gross_tripping_in_time_cased={label:"Cased Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_cased",unitType:"time",from:"min"},exports.gross_tripping_in_time_open={label:"Open Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_open",unitType:"time",from:"min"},exports.gross_tripping_out_speed_total=C,exports.hole_depth={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft"},exports.hole_depth_change={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0},exports.npt={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h"},exports.on_bottom_percentage=g,exports.on_bottom_time={label:"On Bottom Time",key:"on_bottom_time",to:"h"},exports.pumps_on_to_bottom_average=y,exports.rop=r,exports.rop_gross=l,exports.rop_rotary=p,exports.rop_slide=s,exports.slips_to_bottom_average=u,exports.slips_to_slips=x,exports.slips_to_slips_count={label:"Casing Stand Count",key:"slips_to_slips_count"},exports.spud_to_landing_point={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d"},exports.spud_to_rig_release_time={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d"},exports.spud_to_target={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d"},exports.spud_to_total_depth_time={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d"},exports.tripping_connection_count={label:"Tripping Connection Count",key:"tripping_connection_count"},exports.tripping_in_connection_time={label:"Tripping in (Connection)",key:"tripping_in_connection_time",unitType:"time",from:"min"},exports.tripping_in_connection_time_cased={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_speed=d,exports.tripping_in_speed_cased=f,exports.tripping_in_speed_open=h,exports.tripping_in_time={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_cased={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_open={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_with_connection={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},exports.tripping_in_time_with_connection_open={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},exports.tripping_out_connection_time={label:"Tripping out (Connection)",key:"tripping_out_connection_time",unitType:"time",from:"min"},exports.tripping_out_speed=v,exports.tripping_out_speed_cased=T,exports.tripping_out_speed_open=b,exports.turn_rate={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.weight_to_weight_average=c,exports.weight_to_weight_count={label:"Drilling Stand Count",key:"weight_to_weight_count"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../convert.js"),t=require("./utils.js"),i={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft",convertForMultiRigs:t.getMax},o={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0,convertForMultiRigs:t.getSum},r={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0,convertForMultiRigs:t.getSum},n={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft",convertForMultiRigs:t.getSum},p={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0,convertForMultiRigs:t.getAverage},s={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:t.convertPercentageMetrics,convertForMultiRigs:t.getAverage},l={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},g={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},_={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},a={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},c={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},u={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0,convertForMultiRigs:t.getAverage},m={label:"On Bottom Time",key:"on_bottom_time",to:"h",convertForMultiRigs:t.getSum},y={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0,convertForMultiRigs:t.getAverage},d={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s",convertForMultiRigs:t.getAverage},v={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:t.getAverage},f={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:t.getAverage},T={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:t.getAverage},h={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:t.getAverage},b={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},x={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},k={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},R={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},M={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},B={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:t.getAverage},F={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:t.getAverage},S={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h",convertForMultiRigs:t.getAverage},C={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h",convertForMultiRigs:t.getAverage},A={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h",convertForMultiRigs:t.getAverage},H={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h",convertForMultiRigs:t.getAverage},w={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h",convertForMultiRigs:t.getAverage},O={label:"Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")},convertForMultiRigs:t.getAverage},D={label:"Lateral Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_lat_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")},convertForMultiRigs:t.getAverage},P={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h",convertForMultiRigs:t.getSum},I={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h",convertForMultiRigs:t.getSum},U={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d",convertForMultiRigs:t.getMax},E={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d",convertForMultiRigs:t.getMax},G={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d",convertForMultiRigs:t.getMax},L={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d",convertForMultiRigs:t.getMax},V={label:"Cumulative Tortuosity",key:"cumulative_tortuosity",convertForMultiRigs:t.getAverage},j={label:"Drilling Stand Count",key:"weight_to_weight_count",convertForMultiRigs:t.getSum},N={label:"Tripping Connection Count",key:"tripping_connection_count",convertForMultiRigs:t.getSum},q={label:"Casing Stand Count",key:"slips_to_slips_count",convertForMultiRigs:t.getSum};exports.bha_count={label:"Total BHA's",key:"bha_count"},exports.bottom_to_slips_average=f,exports.build_rate={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.circulating_time=I,exports.cost_per_ft=O,exports.cost_per_lat_ft=D,exports.cumulative_tortuosity=V,exports.drilled_feet_rotary=r,exports.drilled_feet_rotary_percentage=p,exports.drilled_feet_slide=n,exports.drilled_feet_slide_percentage=s,exports.drilling_connection_average=d,exports.drilling_percentage=l,exports.drilling_time_rotary={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},exports.drilling_time_slide={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},exports.feet_per_day=u,exports.gross_time={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},exports.gross_tripping_in_speed=A,exports.gross_tripping_in_speed_cased=S,exports.gross_tripping_in_speed_open=C,exports.gross_tripping_in_speed_total=H,exports.gross_tripping_in_time_cased={label:"Cased Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_cased",unitType:"time",from:"min"},exports.gross_tripping_in_time_open={label:"Open Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_open",unitType:"time",from:"min"},exports.gross_tripping_out_speed_total=w,exports.hole_depth=i,exports.hole_depth_change=o,exports.npt=P,exports.on_bottom_percentage=y,exports.on_bottom_time=m,exports.pumps_on_to_bottom_average=h,exports.rop=g,exports.rop_gross=c,exports.rop_rotary=_,exports.rop_slide=a,exports.slips_to_bottom_average=T,exports.slips_to_slips=F,exports.slips_to_slips_count=q,exports.spud_to_landing_point=L,exports.spud_to_rig_release_time=U,exports.spud_to_target=E,exports.spud_to_total_depth_time=G,exports.tripping_connection_count=N,exports.tripping_in_connection_time={label:"Tripping in (Connection)",key:"tripping_in_connection_time",unitType:"time",from:"min"},exports.tripping_in_connection_time_cased={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_speed=b,exports.tripping_in_speed_cased=k,exports.tripping_in_speed_open=M,exports.tripping_in_time={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_cased={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_open={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_with_connection={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},exports.tripping_in_time_with_connection_open={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},exports.tripping_out_connection_time={label:"Tripping out (Connection)",key:"tripping_out_connection_time",unitType:"time",from:"min"},exports.tripping_out_speed=x,exports.tripping_out_speed_cased=R,exports.tripping_out_speed_open=B,exports.turn_rate={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.weight_to_weight_average=v,exports.weight_to_weight_count=j;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lodash"),t=require("../convert.js");exports.convertCostToSave=function(e){return e*t.convertValue(1,"length","ft")},exports.convertCostToShow=function(e){return e/t.convertValue(1,"length","ft")},exports.convertPercentageMetrics=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.precision,o=void 0===n?2:n,i=100*t;return e.round(i>100&&i<101.5?100:i,o)},exports.convertPercentageToSave=function(e){return Number(e)/100},exports.getAverage=function(e,t){return t?e/t:e},exports.getConvertedMetricValue=function(r,n,o){if(!Number.isFinite(r)||!n)return null;var i=n.unitType,u=n.from,v=n.to,c=n.customConvert,a=n.convertForMultiRigs,s=n.precision,l=void 0===s?2:s,p=n.allowNegativeValue,f=void 0!==p&&p,d=a&&o?a(r,o):r;if(c)return c(d,n);var g=i?t.convertValue(d,i,u,v,l):d;return g=e.round(g,l),g=f?g:Math.max(g,0)},exports.getMetricUnitDisplay=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.formatUnitDisplay,o=void 0===n?e.identity:n,i=r.to,u=r.unitType;return i||u?o(i||t.getUnitDisplay(u)):""};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lodash"),t=require("../convert.js");exports.convertCostToSave=function(e){return e*t.convertValue(1,"length","ft")},exports.convertCostToShow=function(e){return e/t.convertValue(1,"length","ft")},exports.convertPercentageMetrics=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.precision,o=void 0===n?2:n,u=100*t;return e.round(u>100&&u<101.5?100:u,o)},exports.convertPercentageToSave=function(e){return Number(e)/100},exports.getAverage=function(e){return e.sumVal/e.number},exports.getConvertedMetricValue=function(r,n,o,u){if(!Number.isFinite(r)||!n)return null;var i=n.unitType,a=n.from,s=n.to,c=n.customConvert,v=n.convertForMultiRigs,l=n.precision,p=void 0===l?2:l,f=n.allowNegativeValue,g=void 0!==f&&f,m=v&&o?v({sumVal:r,maxVal:u,number:o}):r;if(c)return c(m,n);var x=i?t.convertValue(m,i,a,s,p):m;return x=e.round(x,p),x=g?x:Math.max(x,0)},exports.getMax=function(e){return e.maxVal},exports.getMetricUnitDisplay=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.formatUnitDisplay,o=void 0===n?e.identity:n,u=r.to,i=r.unitType;return u||i?o(u||t.getUnitDisplay(i)):""},exports.getSum=function(e){return e.sumVal};
@@ -1 +1 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import{useContext as t}from"react";import r from"classnames";import{makeStyles as e}from"@material-ui/core";import{ExpandIcon as s,CollapseIcon as i}from"../../../../icons/iconParkIcons.js";import"../../../../icons/customIcons/icons/AddMessage.js";import"../../../../icons/customIcons/icons/Attention.js";import"../../../../icons/customIcons/icons/Collapse.js";import"../../../../icons/customIcons/icons/Expand.js";import"../../../../icons/customIcons/icons/FolderClosed.js";import"../../../../icons/customIcons/icons/FolderOpened.js";import"../../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../../icons/customIcons/icons/LessOrEqual.js";import"../../../../icons/customIcons/icons/Search.js";import"../../../../icons/customIcons/icons/Wellhub.js";import c from"../ChartButton.js";import n from"../../ChartWrapperContext.js";import"@babel/runtime/helpers/slicedToArray";import"lodash";import{useHideAxes as p}from"../../effects/useHideAxes.js";import"../../effects/useChartModifier.js";import{jsx as m}from"react/jsx-runtime";function a(o,t){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(o);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),r.push.apply(r,e)}return r}function l(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?a(Object(e),!0).forEach((function(r){o(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}var u=e({icon:{top:0,transform:"rotate(45deg)"}}),f=function(o){var e=t(n),a=e.chart,f=e.handleChangeChartStyles,j=p({chart:a,onChartStylesChange:f}),d=j.isHiddenAxes,h=j.handleAxesHide,O=u();return m(c,l(l({},o),{},{className:r(O.hideAxesButton,o.className),tooltipProps:l({title:d?"Show Axes":"Hide Axes"},o.tooltipProps),onClick:h,children:m(d?s:i,{className:O.icon,size:16})}))};f.defaultProps={tooltipProps:{}};export{f as default};
1
+ import o from"@babel/runtime/helpers/defineProperty";import{useContext as t}from"react";import r from"classnames";import{makeStyles as e}from"@material-ui/core";import{ExpandIcon as s,CollapseIcon as i}from"../../../../icons/iconParkIcons.js";import"../../../../icons/customIcons/icons/AddMessage.js";import"../../../../icons/customIcons/icons/Attention.js";import"../../../../icons/customIcons/icons/Collapse.js";import"../../../../icons/customIcons/icons/Expand.js";import"../../../../icons/customIcons/icons/FolderClosed.js";import"../../../../icons/customIcons/icons/FolderOpened.js";import"../../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../../icons/customIcons/icons/LessOrEqual.js";import"../../../../icons/customIcons/icons/Search.js";import"../../../../icons/customIcons/icons/Wellhub.js";import n from"../ChartButton.js";import c from"../../ChartWrapperContext.js";import"@babel/runtime/helpers/slicedToArray";import"lodash";import"../../../../utils/main.js";import{useHideAxes as m}from"../../effects/useHideAxes.js";import"../../effects/useChartModifier.js";import{jsx as p}from"react/jsx-runtime";function a(o,t){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(o);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),r.push.apply(r,e)}return r}function l(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?a(Object(e),!0).forEach((function(r){o(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}var u=e({icon:{top:0,transform:"rotate(45deg)"}}),f=function(o){var e=t(c),a=e.chart,f=e.handleChangeChartStyles,j=m({chart:a,onChartStylesChange:f}),d=j.isHiddenAxes,h=j.handleAxesHide,O=u();return p(n,l(l({},o),{},{className:r(O.hideAxesButton,o.className),tooltipProps:l({title:d?"Show Axes":"Hide Axes"},o.tooltipProps),onClick:h,children:p(d?s:i,{className:O.icon,size:16})}))};f.defaultProps={tooltipProps:{}};export{f as default};
@@ -1 +1 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as r}from"react";import{PlusIcon as e}from"../../../../icons/iconParkIcons.js";import"../../../../icons/customIcons/icons/AddMessage.js";import"../../../../icons/customIcons/icons/Attention.js";import"../../../../icons/customIcons/icons/Collapse.js";import"../../../../icons/customIcons/icons/Expand.js";import"../../../../icons/customIcons/icons/FolderClosed.js";import"../../../../icons/customIcons/icons/FolderOpened.js";import"../../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../../icons/customIcons/icons/LessOrEqual.js";import"../../../../icons/customIcons/icons/Search.js";import"../../../../icons/customIcons/icons/Wellhub.js";import s from"../../ChartWrapperContext.js";import{ZOOM_TYPE as n,HOT_KEYS as i}from"../../constants.js";import c from"../ChartButton.js";import"@babel/runtime/helpers/slicedToArray";import"lodash";import{useKeyboardControl as p}from"../../effects/useKeyboardControl.js";import"../../effects/useChartModifier.js";import{jsx as m}from"react/jsx-runtime";var a=["onClick"];function l(o,t){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(o);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),r.push.apply(r,e)}return r}function u(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?l(Object(e),!0).forEach((function(r){o(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}var f=function(o){var l=o.onClick,f=void 0===l?function(){}:l,j=t(o,a),b=r(s),d=b.zoomStatus,O=b.handleZoomEvent,h=function(){O(n.zoomIn),f()};return p({keyCode:i.arrowUp,callback:h}),m(c,u(u({},j),{},{onClick:h,disabled:d.isMax,tooltipProps:u({title:"Zoom In"},j.tooltipProps),children:m(e,{size:16})}))};f.defaultProps={onClick:function(){},tooltipProps:{}};export{f as default};
1
+ import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as r}from"react";import{PlusIcon as e}from"../../../../icons/iconParkIcons.js";import"../../../../icons/customIcons/icons/AddMessage.js";import"../../../../icons/customIcons/icons/Attention.js";import"../../../../icons/customIcons/icons/Collapse.js";import"../../../../icons/customIcons/icons/Expand.js";import"../../../../icons/customIcons/icons/FolderClosed.js";import"../../../../icons/customIcons/icons/FolderOpened.js";import"../../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../../icons/customIcons/icons/LessOrEqual.js";import"../../../../icons/customIcons/icons/Search.js";import"../../../../icons/customIcons/icons/Wellhub.js";import s from"../../ChartWrapperContext.js";import{ZOOM_TYPE as n,HOT_KEYS as i}from"../../constants.js";import c from"../ChartButton.js";import"@babel/runtime/helpers/slicedToArray";import"lodash";import"../../../../utils/main.js";import{useKeyboardControl as p}from"../../effects/useKeyboardControl.js";import"../../effects/useChartModifier.js";import{jsx as m}from"react/jsx-runtime";var a=["onClick"];function l(o,t){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(o);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),r.push.apply(r,e)}return r}function u(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?l(Object(e),!0).forEach((function(r){o(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}var f=function(o){var l=o.onClick,f=void 0===l?function(){}:l,j=t(o,a),b=r(s),d=b.zoomStatus,O=b.handleZoomEvent,h=function(){O(n.zoomIn),f()};return p({keyCode:i.arrowUp,callback:h}),m(c,u(u({},j),{},{onClick:h,disabled:d.isMax,tooltipProps:u({title:"Zoom In"},j.tooltipProps),children:m(e,{size:16})}))};f.defaultProps={onClick:function(){},tooltipProps:{}};export{f as default};
@@ -1 +1 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as r}from"react";import{MinusIcon as e}from"../../../../icons/iconParkIcons.js";import"../../../../icons/customIcons/icons/AddMessage.js";import"../../../../icons/customIcons/icons/Attention.js";import"../../../../icons/customIcons/icons/Collapse.js";import"../../../../icons/customIcons/icons/Expand.js";import"../../../../icons/customIcons/icons/FolderClosed.js";import"../../../../icons/customIcons/icons/FolderOpened.js";import"../../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../../icons/customIcons/icons/LessOrEqual.js";import"../../../../icons/customIcons/icons/Search.js";import"../../../../icons/customIcons/icons/Wellhub.js";import s from"../../ChartWrapperContext.js";import{ZOOM_TYPE as n,HOT_KEYS as i}from"../../constants.js";import c from"../ChartButton.js";import"@babel/runtime/helpers/slicedToArray";import"lodash";import{useKeyboardControl as p}from"../../effects/useKeyboardControl.js";import"../../effects/useChartModifier.js";import{jsx as m}from"react/jsx-runtime";var u=["onClick"];function a(o,t){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(o);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),r.push.apply(r,e)}return r}function l(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?a(Object(e),!0).forEach((function(r){o(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}var f=function(o){var a=o.onClick,f=void 0===a?function(){}:a,j=t(o,u),b=r(s),d=b.handleZoomEvent,O=b.zoomStatus,h=function(){d(n.zoomOut),f()};return p({keyCode:i.arrowDown,callback:h}),m(c,l(l({},j),{},{onClick:h,tooltipProps:l({title:"Zoom Out"},j.tooltipProps),disabled:O.isReset,children:m(e,{size:16})}))};f.defaultProps={onClick:function(){},tooltipProps:{}};export{f as default};
1
+ import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as r}from"react";import{MinusIcon as e}from"../../../../icons/iconParkIcons.js";import"../../../../icons/customIcons/icons/AddMessage.js";import"../../../../icons/customIcons/icons/Attention.js";import"../../../../icons/customIcons/icons/Collapse.js";import"../../../../icons/customIcons/icons/Expand.js";import"../../../../icons/customIcons/icons/FolderClosed.js";import"../../../../icons/customIcons/icons/FolderOpened.js";import"../../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../../icons/customIcons/icons/LessOrEqual.js";import"../../../../icons/customIcons/icons/Search.js";import"../../../../icons/customIcons/icons/Wellhub.js";import s from"../../ChartWrapperContext.js";import{ZOOM_TYPE as i,HOT_KEYS as n}from"../../constants.js";import c from"../ChartButton.js";import"@babel/runtime/helpers/slicedToArray";import"lodash";import"../../../../utils/main.js";import{useKeyboardControl as p}from"../../effects/useKeyboardControl.js";import"../../effects/useChartModifier.js";import{jsx as m}from"react/jsx-runtime";var u=["onClick"];function a(o,t){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(o);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),r.push.apply(r,e)}return r}function l(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?a(Object(e),!0).forEach((function(r){o(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}var f=function(o){var a=o.onClick,f=void 0===a?function(){}:a,j=t(o,u),b=r(s),d=b.handleZoomEvent,O=b.zoomStatus,h=function(){d(i.zoomOut),f()};return p({keyCode:n.arrowDown,callback:h}),m(c,l(l({},j),{},{onClick:h,tooltipProps:l({title:"Zoom Out"},j.tooltipProps),disabled:O.isReset,children:m(e,{size:16})}))};f.defaultProps={onClick:function(){},tooltipProps:{}};export{f as default};
@@ -9,4 +9,5 @@ export namespace HOT_KEYS {
9
9
  }
10
10
  export const MIN_CHART_HEIGHT: 182;
11
11
  export const X_AXIS_RIGHT_GAP: 46;
12
+ export const LINE_COLORS: string[];
12
13
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/constants.js"],"names":[],"mappings":"AAAA,0BAA2B;;;;;;;;;AAW3B,mCAAoC;AAEpC,kCAAmC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/constants.js"],"names":[],"mappings":"AAAA,0BAA2B;;;;;;;;;AAW3B,mCAAoC;AAEpC,kCAAmC;AAEnC,mCAaE"}
@@ -8,6 +8,7 @@ declare function getChartOptions({ seriesCount, recordsCount, labelMinLength, la
8
8
  series: {
9
9
  name: string;
10
10
  data: number[];
11
+ color: string;
11
12
  }[];
12
13
  chart: {
13
14
  backgroundColor: string;
@@ -27,7 +28,24 @@ declare function getChartOptions({ seriesCount, recordsCount, labelMinLength, la
27
28
  };
28
29
  plotOptions: {
29
30
  series: {
31
+ zIndex: number;
32
+ marker: {
33
+ symbol: string;
34
+ radius: number;
35
+ states: {
36
+ hover: {
37
+ lineColor: string;
38
+ lineWidth: number;
39
+ };
40
+ };
41
+ };
30
42
  turboThreshold: number;
43
+ states: {
44
+ hover: {
45
+ enabled: boolean;
46
+ lineWidth: number;
47
+ };
48
+ };
31
49
  };
32
50
  spline: {
33
51
  marker: {
@@ -85,6 +103,10 @@ declare function getChartOptions({ seriesCount, recordsCount, labelMinLength, la
85
103
  };
86
104
  title: string;
87
105
  tooltip: {
106
+ crosshairs: {
107
+ width: number;
108
+ color: string;
109
+ }[];
88
110
  backgroundColor: string;
89
111
  borderWidth: number;
90
112
  shadow: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/options.js"],"names":[],"mappings":";AAgBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoJC"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/options.js"],"names":[],"mappings":";AAiBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+KC"}
@@ -21,4 +21,5 @@ export function getIsMaxZoom({ min, max, zoomStep, zoomType }: {
21
21
  zoomType: any;
22
22
  }): boolean;
23
23
  export function addXAxisNullablePoints(chart: any): void;
24
+ export function getLineColor(name: any): string;
24
25
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/utils.js"],"names":[],"mappings":"AAEO,8CAA2D;AAE3D,8CAA2D;AAE3D;;;;WACyC;AAEzC,6EAKN;AAEM,6EAKN;AAEM;;;;;;UASN;AAEM;;;;;YAMN;AAEM,yDAUN"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/utils.js"],"names":[],"mappings":"AAGO,8CAA2D;AAE3D,8CAA2D;AAE3D;;;;WACyC;AAEzC,6EAKN;AAEM,6EAKN;AAEM;;;;;;UASN;AAEM;;;;;YAMN;AAEM,yDAUN;AAEM,gDAEN"}
@@ -1 +1 @@
1
- import{ZOOM_TYPE as n,MAX_ZOOM as o}from"./constants.js";var t=function(n){return null==n?void 0:n.xAxis[0].getExtremes()},r=function(n){return null==n?void 0:n.yAxis[0].getExtremes()},e=function(n){var t=n.extremes,r=n.step,e=n.maxZoom;return(void 0===e?o:e)-(t.max-t.min)/r},u=function(n,o){return n<=o?o:n},m=function(n,o){return n>=o?o:n},i=function(t){var r=t.min,e=t.max,u=t.zoomType,m=t.zoomStep,i=t.scale;return u===n.zoomIn?Math.round(r+m)===Math.round(e-m)||i>o-1?[r,e]:[r+m,e-m]:[r-m,e+m]},a=function(o){var t=o.min,r=o.max,e=o.zoomStep;return o.zoomType===n.zoomIn&&Math.round(t+e)===Math.round(r-e)};export{e as getChartScale,m as getCurrentMaxValue,u as getCurrentMinValue,a as getIsMaxZoom,i as getNextZoomCoordinates,t as getXExtremes,r as getYExtremes};
1
+ import"../../utils/main.js";import{ZOOM_TYPE as n,MAX_ZOOM as o}from"./constants.js";var t=function(n){return null==n?void 0:n.xAxis[0].getExtremes()},r=function(n){return null==n?void 0:n.yAxis[0].getExtremes()},e=function(n){var t=n.extremes,r=n.step,e=n.maxZoom;return(void 0===e?o:e)-(t.max-t.min)/r},m=function(n,o){return n<=o?o:n},u=function(n,o){return n>=o?o:n},i=function(t){var r=t.min,e=t.max,m=t.zoomType,u=t.zoomStep,i=t.scale;return m===n.zoomIn?Math.round(r+u)===Math.round(e-u)||i>o-1?[r,e]:[r+u,e-u]:[r-u,e+u]},a=function(o){var t=o.min,r=o.max,e=o.zoomStep;return o.zoomType===n.zoomIn&&Math.round(t+e)===Math.round(r-e)};export{e as getChartScale,u as getCurrentMaxValue,m as getCurrentMinValue,a as getIsMaxZoom,i as getNextZoomCoordinates,t as getXExtremes,r as getYExtremes};
@@ -15,17 +15,44 @@ export const FILTERS_LIST: {
15
15
  export const METRICS_LIST: ({
16
16
  label: string;
17
17
  key: string;
18
+ isBiggestBest: boolean;
18
19
  unitType: string;
19
20
  from: string;
21
+ convertForMultiRigs: ({ maxVal }: {
22
+ maxVal: any;
23
+ }) => any;
24
+ } | {
25
+ label: string;
26
+ key: string;
27
+ unitType: string;
28
+ from: string;
29
+ convertForMultiRigs: ({ sumVal }: {
30
+ sumVal: any;
31
+ }) => any;
20
32
  } | {
21
33
  label: string;
22
34
  key: string;
23
35
  to: string;
36
+ convertForMultiRigs: ({ sumVal }: {
37
+ sumVal: any;
38
+ }) => any;
24
39
  } | {
25
40
  label: string;
26
41
  key: string;
27
42
  customConvert: (value: any) => number;
28
- convertForMultiRigs: (sum: any, number: any) => any;
43
+ convertForMultiRigs: ({ sumVal, number }: {
44
+ sumVal: any;
45
+ number: any;
46
+ }) => number;
47
+ } | {
48
+ label: string;
49
+ key: string;
50
+ unitType: string;
51
+ from: string;
52
+ to: string;
53
+ convertForMultiRigs: ({ maxVal }: {
54
+ maxVal: any;
55
+ }) => any;
29
56
  })[];
30
57
  export const METRICS_KEYS: string[];
31
58
  export const TABLE_COLUMNS: ({
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV2/constants.js"],"names":[],"mappings":";;;;;;;;AAeA;;;;;IAqCE;AAEF;;;;;;;;;;;;;;KAqCE;AAEF,oCAA+D;AAE/D;;;;;;;;;;KAqBE;;;;;;AAIF,kCAAmC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV2/constants.js"],"names":[],"mappings":";;;;;;;;AAeA;;;;;IAqCE;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqCE;AAEF,oCAA+D;AAE/D;;;;;;;;;;KAqBE;;;;;;AAIF,kCAAmC"}
@@ -16,17 +16,44 @@ export const FILTERS_LIST: {
16
16
  export const METRICS_LIST: ({
17
17
  label: string;
18
18
  key: string;
19
+ isBiggestBest: boolean;
19
20
  unitType: string;
20
21
  from: string;
22
+ convertForMultiRigs: ({ maxVal }: {
23
+ maxVal: any;
24
+ }) => any;
25
+ } | {
26
+ label: string;
27
+ key: string;
28
+ unitType: string;
29
+ from: string;
30
+ convertForMultiRigs: ({ sumVal }: {
31
+ sumVal: any;
32
+ }) => any;
21
33
  } | {
22
34
  label: string;
23
35
  key: string;
24
36
  to: string;
37
+ convertForMultiRigs: ({ sumVal }: {
38
+ sumVal: any;
39
+ }) => any;
25
40
  } | {
26
41
  label: string;
27
42
  key: string;
28
43
  customConvert: (value: any) => number;
29
- convertForMultiRigs: (sum: any, number: any) => any;
44
+ convertForMultiRigs: ({ sumVal, number }: {
45
+ sumVal: any;
46
+ number: any;
47
+ }) => number;
48
+ } | {
49
+ label: string;
50
+ key: string;
51
+ unitType: string;
52
+ from: string;
53
+ to: string;
54
+ convertForMultiRigs: ({ maxVal }: {
55
+ maxVal: any;
56
+ }) => any;
30
57
  })[];
31
58
  export const METRICS_KEYS: string[];
32
59
  export const TABLE_COLUMNS: ({
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js"],"names":[],"mappings":";;;;;;;;;AAgBA;;;;;IA2CE;AAEF;;;;;;;;;;;;;;KAqCE;AAEF,oCAA+D;AAE/D;;;;;;;;;;KAqBE;;;;;;AAIF,kCAAmC;AAEnC,wCAYE"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js"],"names":[],"mappings":";;;;;;;;;AAgBA;;;;;IA2CE;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqCE;AAEF,oCAA+D;AAE/D;;;;;;;;;;KAqBE;;;;;;AAIF,kCAAmC;AAEnC,wCAYE"}
@@ -75,17 +75,44 @@ export const MAX_METRICS_COUNT: 3;
75
75
  export const METRICS_LIST: ({
76
76
  label: string;
77
77
  key: string;
78
+ isBiggestBest: boolean;
78
79
  unitType: string;
79
80
  from: string;
81
+ convertForMultiRigs: ({ maxVal }: {
82
+ maxVal: any;
83
+ }) => any;
84
+ } | {
85
+ label: string;
86
+ key: string;
87
+ unitType: string;
88
+ from: string;
89
+ convertForMultiRigs: ({ sumVal }: {
90
+ sumVal: any;
91
+ }) => any;
80
92
  } | {
81
93
  label: string;
82
94
  key: string;
83
95
  to: string;
96
+ convertForMultiRigs: ({ sumVal }: {
97
+ sumVal: any;
98
+ }) => any;
84
99
  } | {
85
100
  label: string;
86
101
  key: string;
87
102
  customConvert: (value: any) => number;
88
- convertForMultiRigs: (sum: any, number: any) => any;
103
+ convertForMultiRigs: ({ sumVal, number }: {
104
+ sumVal: any;
105
+ number: any;
106
+ }) => number;
107
+ } | {
108
+ label: string;
109
+ key: string;
110
+ unitType: string;
111
+ from: string;
112
+ to: string;
113
+ convertForMultiRigs: ({ maxVal }: {
114
+ maxVal: any;
115
+ }) => any;
89
116
  })[];
90
117
  export namespace DEFAULT_SETTINGS {
91
118
  const radius_1: number;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV4/constants.js"],"names":[],"mappings":"AAGA,sCAAuC;AACvC,qCAAsC;;;;;;;;AAQtC,mCAAoC;AACpC,yCAA0C;AAC1C,2CAA4C;AAE5C,uCAAwC;AACxC,+BAAgC;AAChC,2CAA4C;AAC5C,mCAAoC;AAEpC,oCAAqC;AACrC,sCAAuC;AACvC,yCAA0C;AAC1C,+BAAgC;AAChC,4BAA6B;AAC7B,sCAAuC;;;;;;;;;;;;;;;;AAmBvC;;;IA6BE;;;;;;;;AAUF;;;IAME;;;;;;;;;;;;AAYF;;;;;IA2CE;AAEF;;;IAOE;AAEF,kCAAmC;AAEnC;;;;;;;;;;;;;;KAqCE;;;;;;;;;;AAWF,yCAYE;AAEF;;EAME;AAEF,sDAAuD"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV4/constants.js"],"names":[],"mappings":"AAGA,sCAAuC;AACvC,qCAAsC;;;;;;;;AAQtC,mCAAoC;AACpC,yCAA0C;AAC1C,2CAA4C;AAE5C,uCAAwC;AACxC,+BAAgC;AAChC,2CAA4C;AAC5C,mCAAoC;AAEpC,oCAAqC;AACrC,sCAAuC;AACvC,yCAA0C;AAC1C,+BAAgC;AAChC,4BAA6B;AAC7B,sCAAuC;;;;;;;;;;;;;;;;AAmBvC;;;IA6BE;;;;;;;;AAUF;;;IAME;;;;;;;;;;;;AAYF;;;;;IA2CE;AAEF;;;IAOE;AAEF,kCAAmC;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqCE;;;;;;;;;;AAWF,yCAYE;AAEF;;EAME;AAEF,sDAAuD"}
@@ -17,14 +17,20 @@ export const DRILLING_EFFICIENCY_GOALS: ({
17
17
  key: string;
18
18
  to: string;
19
19
  customConvert: typeof import("~/utils/metrics").convertPercentageMetrics;
20
- convertForMultiRigs: (sum: any, number: any) => any;
20
+ convertForMultiRigs: ({ sumVal, number }: {
21
+ sumVal: any;
22
+ number: any;
23
+ }) => number;
21
24
  } | {
22
25
  label: string;
23
26
  key: string;
24
27
  unitType: string;
25
28
  from: string;
26
29
  isBiggestBest: boolean;
27
- convertForMultiRigs: (sum: any, number: any) => any;
30
+ convertForMultiRigs: ({ sumVal, number }: {
31
+ sumVal: any;
32
+ number: any;
33
+ }) => number;
28
34
  })[];
29
35
  export const CONNECTIONS_GOALS: {
30
36
  label: string;
@@ -32,13 +38,19 @@ export const CONNECTIONS_GOALS: {
32
38
  to: string;
33
39
  unitType: string;
34
40
  from: string;
35
- convertForMultiRigs: (sum: any, number: any) => any;
41
+ convertForMultiRigs: ({ sumVal, number }: {
42
+ sumVal: any;
43
+ number: any;
44
+ }) => number;
36
45
  }[];
37
46
  export const COST_GOALS: ({
38
47
  label: string;
39
48
  key: string;
40
49
  customConvert: (value: any) => number;
41
- convertForMultiRigs: (sum: any, number: any) => any;
50
+ convertForMultiRigs: ({ sumVal, number }: {
51
+ sumVal: any;
52
+ number: any;
53
+ }) => number;
42
54
  } | {
43
55
  label: string;
44
56
  key: string;
@@ -46,7 +58,10 @@ export const COST_GOALS: ({
46
58
  export const ENGINEERING_GOALS: {
47
59
  label: string;
48
60
  key: string;
49
- convertForMultiRigs: (sum: any, number: any) => any;
61
+ convertForMultiRigs: ({ sumVal, number }: {
62
+ sumVal: any;
63
+ number: any;
64
+ }) => number;
50
65
  }[];
51
66
  export const COMPLETION_GOALS: {
52
67
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"goals.d.ts","sourceRoot":"","sources":["../../src/constants/goals.js"],"names":[],"mappings":"AAEA,uDAAwD;AAGxD,2DAA4D;AAC5D,6DAA8D;AAC9D,+DAAgE;AAChE,6DAA8D;AAG9D,sEAAuE;AAGvE,mDAAoD;AACpD,iEAAkE;AAClE,+CAAgD;AAChD,+DAAgE;AAChE,mDAAoD;AACpD,2DAA4D;AAC5D,6EAA8E;AAC9E,6EAA8E;AAG9E;;;;;;;;;;;;;KAUE;AAGF;;;;;;;IAKE;AAGF;;;;;;;;KAOE;AAGF;;;;IAAiE;AAGjE;;;IAiCE"}
1
+ {"version":3,"file":"goals.d.ts","sourceRoot":"","sources":["../../src/constants/goals.js"],"names":[],"mappings":"AAEA,uDAAwD;AAGxD,2DAA4D;AAC5D,6DAA8D;AAC9D,+DAAgE;AAChE,6DAA8D;AAG9D,sEAAuE;AAGvE,mDAAoD;AACpD,iEAAkE;AAClE,+CAAgD;AAChD,+DAAgE;AAChE,mDAAoD;AACpD,2DAA4D;AAC5D,6EAA8E;AAC9E,6EAA8E;AAG9E;;;;;;;;;;;;;;;;;;;KAUE;AAGF;;;;;;;;;;IAKE;AAGF;;;;;;;;;;;KAOE;AAGF;;;;;;;IAAiE;AAGjE;;;IAiCE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.81.0-3",
3
+ "version": "0.81.0-5",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -1,9 +1,10 @@
1
1
  export namespace hole_depth {
2
- const label: string;
3
- const key: string;
4
- const isBiggestBest: boolean;
5
- const unitType: string;
6
- const from: string;
2
+ export const label: string;
3
+ export const key: string;
4
+ export const isBiggestBest: boolean;
5
+ export const unitType: string;
6
+ export const from: string;
7
+ export { getMax as convertForMultiRigs };
7
8
  }
8
9
  export namespace hole_depth_change {
9
10
  const label_1: string;
@@ -16,6 +17,7 @@ export namespace hole_depth_change {
16
17
  export { from_1 as from };
17
18
  const isBiggestBest_1: boolean;
18
19
  export { isBiggestBest_1 as isBiggestBest };
20
+ export { getSum as convertForMultiRigs };
19
21
  }
20
22
  export namespace drilled_feet_rotary {
21
23
  const label_2: string;
@@ -28,6 +30,7 @@ export namespace drilled_feet_rotary {
28
30
  export { from_2 as from };
29
31
  const isBiggestBest_2: boolean;
30
32
  export { isBiggestBest_2 as isBiggestBest };
33
+ export { getSum as convertForMultiRigs };
31
34
  }
32
35
  export namespace drilled_feet_slide {
33
36
  const label_3: string;
@@ -38,6 +41,7 @@ export namespace drilled_feet_slide {
38
41
  export { unitType_3 as unitType };
39
42
  const from_3: string;
40
43
  export { from_3 as from };
44
+ export { getSum as convertForMultiRigs };
41
45
  }
42
46
  export namespace drilled_feet_rotary_percentage {
43
47
  const label_4: string;
@@ -162,6 +166,7 @@ export namespace on_bottom_time {
162
166
  export { key_14 as key };
163
167
  const to_5: string;
164
168
  export { to_5 as to };
169
+ export { getSum as convertForMultiRigs };
165
170
  }
166
171
  export namespace on_bottom_percentage {
167
172
  const label_15: string;
@@ -486,6 +491,7 @@ export namespace npt {
486
491
  export { from_32 as from };
487
492
  const to_19: string;
488
493
  export { to_19 as to };
494
+ export { getSum as convertForMultiRigs };
489
495
  }
490
496
  export namespace circulating_time {
491
497
  const label_42: string;
@@ -498,6 +504,7 @@ export namespace circulating_time {
498
504
  export { from_33 as from };
499
505
  const to_20: string;
500
506
  export { to_20 as to };
507
+ export { getSum as convertForMultiRigs };
501
508
  }
502
509
  export namespace spud_to_rig_release_time {
503
510
  const label_43: string;
@@ -510,6 +517,7 @@ export namespace spud_to_rig_release_time {
510
517
  export { from_34 as from };
511
518
  const to_21: string;
512
519
  export { to_21 as to };
520
+ export { getMax as convertForMultiRigs };
513
521
  }
514
522
  export namespace spud_to_target {
515
523
  const label_44: string;
@@ -522,6 +530,7 @@ export namespace spud_to_target {
522
530
  export { from_35 as from };
523
531
  const to_22: string;
524
532
  export { to_22 as to };
533
+ export { getMax as convertForMultiRigs };
525
534
  }
526
535
  export namespace spud_to_total_depth_time {
527
536
  const label_45: string;
@@ -534,6 +543,7 @@ export namespace spud_to_total_depth_time {
534
543
  export { from_36 as from };
535
544
  const to_23: string;
536
545
  export { to_23 as to };
546
+ export { getMax as convertForMultiRigs };
537
547
  }
538
548
  export namespace spud_to_landing_point {
539
549
  const label_46: string;
@@ -546,6 +556,7 @@ export namespace spud_to_landing_point {
546
556
  export { from_37 as from };
547
557
  const to_24: string;
548
558
  export { to_24 as to };
559
+ export { getMax as convertForMultiRigs };
549
560
  }
550
561
  export namespace gross_time {
551
562
  const label_47: string;
@@ -594,18 +605,21 @@ export namespace weight_to_weight_count {
594
605
  export { label_51 as label };
595
606
  const key_51: string;
596
607
  export { key_51 as key };
608
+ export { getSum as convertForMultiRigs };
597
609
  }
598
610
  export namespace tripping_connection_count {
599
611
  const label_52: string;
600
612
  export { label_52 as label };
601
613
  const key_52: string;
602
614
  export { key_52 as key };
615
+ export { getSum as convertForMultiRigs };
603
616
  }
604
617
  export namespace slips_to_slips_count {
605
618
  const label_53: string;
606
619
  export { label_53 as label };
607
620
  const key_53: string;
608
621
  export { key_53 as key };
622
+ export { getSum as convertForMultiRigs };
609
623
  }
610
624
  export namespace bha_count {
611
625
  const label_54: string;
@@ -653,6 +667,8 @@ export namespace tripping_out_connection_time {
653
667
  const from_44: string;
654
668
  export { from_44 as from };
655
669
  }
670
+ import { getMax } from "./utils";
671
+ import { getSum } from "./utils";
656
672
  import { convertPercentageMetrics } from "./utils";
657
673
  import { getAverage } from "./utils";
658
674
  //# sourceMappingURL=metricsConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"metricsConfig.d.ts","sourceRoot":"","sources":["../../../src/utils/metrics/metricsConfig.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoHqB,4DAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkNvC,kDAAgD;;;;;;;;IAOhD,oDAAgD"}
1
+ {"version":3,"file":"metricsConfig.d.ts","sourceRoot":"","sources":["../../../src/utils/metrics/metricsConfig.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwHqB,4DAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmNvC,kDAAgD;;;;;;;;IAOhD,oDAAgD"}
@@ -1 +1 @@
1
- import{getUnitDescription as e,getUnitPreference as t,convertValue as i}from"../convert.js";import{getAverage as o,convertPercentageMetrics as n}from"./utils.js";var l={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft"},r={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0},p={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0},s={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft"},g={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:n,isBiggestBest:!0,convertForMultiRigs:o},a={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:n,convertForMultiRigs:o},_={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:n,isBiggestBest:!0},m={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},y={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},u={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},c={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},d={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0,convertForMultiRigs:o},T={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},f={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},b={label:"On Bottom Time",key:"on_bottom_time",to:"h"},h={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:n,isBiggestBest:!0,convertForMultiRigs:o},v={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s",convertForMultiRigs:o},k={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:o},B={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:o},R={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:o},C={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:o},F={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},M={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},S={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},H={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},O={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},D={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},I={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},w={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},P={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},E={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},G={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},L={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},N={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:o},j={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h",convertForMultiRigs:o},V={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h",convertForMultiRigs:o},W={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h",convertForMultiRigs:o},x={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h",convertForMultiRigs:o},A={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h",convertForMultiRigs:o},U={label:"Cost/".concat(e(t("length")).singular),key:"cost_per_ft",customConvert:function(e){return e/i(1,"length","ft")},convertForMultiRigs:o},q={label:"Lateral Cost/".concat(e(t("length")).singular),key:"cost_per_lat_ft",customConvert:function(e){return e/i(1,"length","ft")},convertForMultiRigs:o},z={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h"},J={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h"},K={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d"},Q={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d"},X={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d"},Y={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d"},Z={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},$={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},ee={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},te={label:"Cumulative Tortuosity",key:"cumulative_tortuosity",convertForMultiRigs:o},ie={label:"Drilling Stand Count",key:"weight_to_weight_count"},oe={label:"Tripping Connection Count",key:"tripping_connection_count"},ne={label:"Casing Stand Count",key:"slips_to_slips_count"},le={label:"Total BHA's",key:"bha_count"},re={label:"Cased Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_cased",unitType:"time",from:"min"},pe={label:"Open Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_open",unitType:"time",from:"min"},se={label:"Tripping in (Connection)",key:"tripping_in_connection_time",unitType:"time",from:"min"},ge={label:"Tripping out (Connection)",key:"tripping_out_connection_time",unitType:"time",from:"min"};export{le as bha_count,B as bottom_to_slips_average,ee as build_rate,J as circulating_time,U as cost_per_ft,q as cost_per_lat_ft,te as cumulative_tortuosity,p as drilled_feet_rotary,g as drilled_feet_rotary_percentage,s as drilled_feet_slide,a as drilled_feet_slide_percentage,v as drilling_connection_average,_ as drilling_percentage,T as drilling_time_rotary,f as drilling_time_slide,d as feet_per_day,Z as gross_time,W as gross_tripping_in_speed,j as gross_tripping_in_speed_cased,V as gross_tripping_in_speed_open,x as gross_tripping_in_speed_total,re as gross_tripping_in_time_cased,pe as gross_tripping_in_time_open,A as gross_tripping_out_speed_total,l as hole_depth,r as hole_depth_change,z as npt,h as on_bottom_percentage,b as on_bottom_time,C as pumps_on_to_bottom_average,m as rop,c as rop_gross,y as rop_rotary,u as rop_slide,R as slips_to_bottom_average,N as slips_to_slips,ne as slips_to_slips_count,Y as spud_to_landing_point,K as spud_to_rig_release_time,Q as spud_to_target,X as spud_to_total_depth_time,oe as tripping_connection_count,se as tripping_in_connection_time,E as tripping_in_connection_time_cased,F as tripping_in_speed,S as tripping_in_speed_cased,O as tripping_in_speed_open,P as tripping_in_time,I as tripping_in_time_cased,w as tripping_in_time_open,L as tripping_in_time_with_connection,G as tripping_in_time_with_connection_open,ge as tripping_out_connection_time,M as tripping_out_speed,H as tripping_out_speed_cased,D as tripping_out_speed_open,$ as turn_rate,k as weight_to_weight_average,ie as weight_to_weight_count};
1
+ import{getUnitDescription as e,getUnitPreference as t,convertValue as i}from"../convert.js";import{getAverage as o,getMax as n,getSum as l,convertPercentageMetrics as r}from"./utils.js";var s={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft",convertForMultiRigs:n},p={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0,convertForMultiRigs:l},g={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0,convertForMultiRigs:l},a={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft",convertForMultiRigs:l},_={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:r,isBiggestBest:!0,convertForMultiRigs:o},u={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:r,convertForMultiRigs:o},m={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:r,isBiggestBest:!0},y={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},c={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},d={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},T={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},f={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0,convertForMultiRigs:o},v={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},b={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},h={label:"On Bottom Time",key:"on_bottom_time",to:"h",convertForMultiRigs:l},k={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:r,isBiggestBest:!0,convertForMultiRigs:o},R={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s",convertForMultiRigs:o},B={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:o},F={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:o},M={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:o},C={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:o},S={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},H={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},O={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},D={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},I={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},w={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0,convertForMultiRigs:o},P={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},E={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},G={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},L={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},N={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},j={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},V={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time",convertForMultiRigs:o},W={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h",convertForMultiRigs:o},x={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h",convertForMultiRigs:o},A={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h",convertForMultiRigs:o},U={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h",convertForMultiRigs:o},q={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h",convertForMultiRigs:o},z={label:"Cost/".concat(e(t("length")).singular),key:"cost_per_ft",customConvert:function(e){return e/i(1,"length","ft")},convertForMultiRigs:o},J={label:"Lateral Cost/".concat(e(t("length")).singular),key:"cost_per_lat_ft",customConvert:function(e){return e/i(1,"length","ft")},convertForMultiRigs:o},K={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h",convertForMultiRigs:l},Q={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h",convertForMultiRigs:l},X={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d",convertForMultiRigs:n},Y={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d",convertForMultiRigs:n},Z={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d",convertForMultiRigs:n},$={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d",convertForMultiRigs:n},ee={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},te={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},ie={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},oe={label:"Cumulative Tortuosity",key:"cumulative_tortuosity",convertForMultiRigs:o},ne={label:"Drilling Stand Count",key:"weight_to_weight_count",convertForMultiRigs:l},le={label:"Tripping Connection Count",key:"tripping_connection_count",convertForMultiRigs:l},re={label:"Casing Stand Count",key:"slips_to_slips_count",convertForMultiRigs:l},se={label:"Total BHA's",key:"bha_count"},pe={label:"Cased Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_cased",unitType:"time",from:"min"},ge={label:"Open Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_open",unitType:"time",from:"min"},ae={label:"Tripping in (Connection)",key:"tripping_in_connection_time",unitType:"time",from:"min"},_e={label:"Tripping out (Connection)",key:"tripping_out_connection_time",unitType:"time",from:"min"};export{se as bha_count,F as bottom_to_slips_average,ie as build_rate,Q as circulating_time,z as cost_per_ft,J as cost_per_lat_ft,oe as cumulative_tortuosity,g as drilled_feet_rotary,_ as drilled_feet_rotary_percentage,a as drilled_feet_slide,u as drilled_feet_slide_percentage,R as drilling_connection_average,m as drilling_percentage,v as drilling_time_rotary,b as drilling_time_slide,f as feet_per_day,ee as gross_time,A as gross_tripping_in_speed,W as gross_tripping_in_speed_cased,x as gross_tripping_in_speed_open,U as gross_tripping_in_speed_total,pe as gross_tripping_in_time_cased,ge as gross_tripping_in_time_open,q as gross_tripping_out_speed_total,s as hole_depth,p as hole_depth_change,K as npt,k as on_bottom_percentage,h as on_bottom_time,C as pumps_on_to_bottom_average,y as rop,T as rop_gross,c as rop_rotary,d as rop_slide,M as slips_to_bottom_average,V as slips_to_slips,re as slips_to_slips_count,$ as spud_to_landing_point,X as spud_to_rig_release_time,Y as spud_to_target,Z as spud_to_total_depth_time,le as tripping_connection_count,ae as tripping_in_connection_time,L as tripping_in_connection_time_cased,S as tripping_in_speed,O as tripping_in_speed_cased,I as tripping_in_speed_open,G as tripping_in_time,P as tripping_in_time_cased,E as tripping_in_time_open,j as tripping_in_time_with_connection,N as tripping_in_time_with_connection_open,_e as tripping_out_connection_time,H as tripping_out_speed,D as tripping_out_speed_cased,w as tripping_out_speed_open,te as turn_rate,B as weight_to_weight_average,ne as weight_to_weight_count};
@@ -20,7 +20,7 @@ export function getMetricUnitDisplay({ formatUnitDisplay, to, unitType }?: Funct
20
20
  * }>} metricConfig
21
21
  * @returns {Number}
22
22
  */
23
- export function getConvertedMetricValue(metricApiValue: number, metricConfig: any, rigsNum: any): number;
23
+ export function getConvertedMetricValue(metricApiValue: number, metricConfig: any, rigsNum: any, metricsMaxValue: any): number;
24
24
  /**
25
25
  * Round down all values between 100-101.50% to 100.00%. Leave all values above 101.50%.
26
26
  * @param {Number} value
@@ -46,5 +46,14 @@ export function convertCostToShow(value: number): number;
46
46
  * @returns {Number}
47
47
  */
48
48
  export function convertCostToSave(value: number): number;
49
- export function getAverage(sum: any, number: any): any;
49
+ export function getSum({ sumVal }: {
50
+ sumVal: any;
51
+ }): any;
52
+ export function getAverage({ sumVal, number }: {
53
+ sumVal: any;
54
+ number: any;
55
+ }): number;
56
+ export function getMax({ maxVal }: {
57
+ maxVal: any;
58
+ }): any;
50
59
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/metrics/utils.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,0FAIC;AAED;;;;;;;;;;;;;GAaG;AACH,yGA4BC;AAED;;;;;GAKG;AACH,qFAGC;AAED;;;;GAIG;AACH,+DAEC;AAED;;;;GAIG;AACH,yDAEC;AAED;;;;GAIG;AACH,yDAEC;AA/FM,uDAAiE"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/metrics/utils.js"],"names":[],"mappings":"AASA;;;;;;GAMG;AACH,0FAIC;AAED;;;;;;;;;;;;;GAaG;AACH,+HA8BC;AAED;;;;;GAKG;AACH,qFAGC;AAED;;;;GAIG;AACH,+DAEC;AAED;;;;GAIG;AACH,yDAEC;AAED;;;;GAIG;AACH,yDAEC;AAnGM;;QAAqC;AACrC;;;WAA0D;AAC1D;;QAAqC"}
@@ -1 +1 @@
1
- import{round as t,identity as r}from"lodash";import{getUnitDisplay as n,convertValue as i}from"../convert.js";var o=function(t,r){return r?t/r:t};function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.formatUnitDisplay,o=void 0===i?r:i,e=t.to,u=t.unitType;return e||u?o(e||n(u)):""}function u(r,n,o){if(!Number.isFinite(r)||!n)return null;var e=n.unitType,u=n.from,f=n.to,v=n.customConvert,a=n.convertForMultiRigs,c=n.precision,l=void 0===c?2:c,m=n.allowNegativeValue,p=void 0!==m&&m,s=a&&o?a(r,o):r;if(v)return v(s,n);var d=e?i(s,e,u,f,l):s;return d=t(d,l),d=p?d:Math.max(d,0)}function f(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.precision,o=void 0===i?2:i,e=100*r;return t(e>100&&e<101.5?100:e,o)}function v(t){return Number(t)/100}function a(t){return t/i(1,"length","ft")}function c(t){return t*i(1,"length","ft")}export{c as convertCostToSave,a as convertCostToShow,f as convertPercentageMetrics,v as convertPercentageToSave,o as getAverage,u as getConvertedMetricValue,e as getMetricUnitDisplay};
1
+ import{round as n,identity as r}from"lodash";import{getUnitDisplay as t,convertValue as i}from"../convert.js";var o=function(n){return n.sumVal},u=function(n){return n.sumVal/n.number},e=function(n){return n.maxVal};function a(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.formatUnitDisplay,o=void 0===i?r:i,u=n.to,e=n.unitType;return u||e?o(u||t(e)):""}function f(r,t,o,u){if(!Number.isFinite(r)||!t)return null;var e=t.unitType,a=t.from,f=t.to,l=t.customConvert,m=t.convertForMultiRigs,v=t.precision,c=void 0===v?2:v,s=t.allowNegativeValue,p=void 0!==s&&s,d=m&&o?m({sumVal:r,maxVal:u,number:o}):r;if(l)return l(d,t);var g=e?i(d,e,a,f,c):d;return g=n(g,c),g=p?g:Math.max(g,0)}function l(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.precision,o=void 0===i?2:i,u=100*r;return n(u>100&&u<101.5?100:u,o)}function m(n){return Number(n)/100}function v(n){return n/i(1,"length","ft")}function c(n){return n*i(1,"length","ft")}export{c as convertCostToSave,v as convertCostToShow,l as convertPercentageMetrics,m as convertPercentageToSave,u as getAverage,f as getConvertedMetricValue,e as getMax,a as getMetricUnitDisplay,o as getSum};