@corva/ui 3.2.0-4 → 3.2.0-7
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.
- package/cjs-bundle/components/UserMention/style.css.js +1 -1
- package/cjs-bundle/hocs/withMUIProvidersHOC.js +1 -1
- package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js +1 -1
- package/cjs-bundle/utils/bha.js +1 -1
- package/components/UserMention/style.css.js +1 -1
- package/hocs/withMUIProvidersHOC.js +1 -1
- package/package.json +1 -1
- package/testing/AppTestWrapper/AppTestWrapper.d.ts +1 -1
- package/testing/AppTestWrapper/AppTestWrapper.d.ts.map +1 -1
- package/testing/AppTestWrapper/AppTestWrapper.js +1 -1
- package/utils/bha.d.ts +1 -1
- package/utils/bha.d.ts.map +1 -1
- package/utils/bha.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./../../ext-esm/style-inject/dist/style-inject.es.js')('.style_mention__ItOCH{margin:0;min-width:0;width:100%}.style_mention__control__n07-d{width:100%}.style_mention--multiLine__AUiad .style_mention__control__n07-d{height:70px;max-height:70px;overflow-y:auto}.style_mention__suggestions__SA5o5{background-color:#fff;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);max-height:260px;max-width:calc(100% - 32px);min-width:250px!important;overflow-x:hidden}.style_mention__suggestions__list__rwfgI{font-size:14px;max-height:260px;overflow-y:auto;position:relative}.style_mention__suggestions__item__gqwq0{align-items:center;box-sizing:content-box;color:rgba(0,0,0,.87);display:flex;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:400;justify-content:flex-start;line-height:1.5em;min-width:250px;overflow:hidden;padding:11px 16px;position:relative;text-align:left;text-decoration:none;white-space:nowrap;width:auto}.style_mention__suggestions__item__gqwq0:hover{background-color:rgba(0,0,0,.08)!important}.style_mention__highlighter__pNPhl{letter-spacing:0;line-height:normal}.style_mention__highlighter__pNPhl span,.style_mention__highlighter__pNPhl strong{letter-spacing:normal;line-height:normal!important;margin:0!important;padding:0!important;visibility:visible!important}.style_mention__input__5-hJw{border:none;letter-spacing:normal!important;line-height:normal!important;outline:none;padding:0}.style_mention__suggestion__xzP4Y{align-items:center;display:flex;position:relative;width:100%}.style_mention__suggestion__xzP4Y:after{background-color:rgba(0,0,0,.08);bottom:-11px;content:"";height:1px;position:absolute;right:-16px;width:calc(100% - 35px)}.style_mention__suggestion__info__2yJKq{display:flex;flex:1;flex-direction:column;overflow:hidden;padding-left:1rem}.style_mention__suggestion__info__name__yq1t4{display:inline-block;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.style_mention__suggestion__info__group__MkVWS{color:#b1b1b1;font-size:.9rem}'),module.exports={mention:"style_mention__ItOCH",mention__control:"style_mention__control__n07-d","mention--multiLine":"style_mention--multiLine__AUiad",mention__suggestions:"style_mention__suggestions__SA5o5",mention__suggestions__list:"style_mention__suggestions__list__rwfgI",mention__suggestions__item:"style_mention__suggestions__item__gqwq0",mention__highlighter:"style_mention__highlighter__pNPhl",mention__input:"style_mention__input__5-hJw",mention__suggestion:"style_mention__suggestion__xzP4Y",mention__suggestion__info:"style_mention__suggestion__info__2yJKq",mention__suggestion__info__name:"style_mention__suggestion__info__name__yq1t4",mention__suggestion__info__group:"style_mention__suggestion__info__group__MkVWS"};
|
|
1
|
+
"use strict";require('./../../ext-esm/style-inject/dist/style-inject.es.js')('.style_mention__ItOCH{margin:0;min-width:0;width:100%}.style_mention__control__n07-d{width:100%}.style_mention--multiLine__AUiad .style_mention__control__n07-d{height:70px;max-height:70px;overflow-y:auto}.style_mention__suggestions__SA5o5{background-color:#fff;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);max-height:260px;max-width:calc(100% - 32px);min-width:250px!important;overflow-x:hidden;z-index:2!important}.style_mention__suggestions__list__rwfgI{font-size:14px;max-height:260px;overflow-y:auto;position:relative}.style_mention__suggestions__item__gqwq0{align-items:center;box-sizing:content-box;color:rgba(0,0,0,.87);display:flex;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:400;justify-content:flex-start;line-height:1.5em;min-width:250px;overflow:hidden;padding:11px 16px;position:relative;text-align:left;text-decoration:none;white-space:nowrap;width:auto}.style_mention__suggestions__item__gqwq0:hover{background-color:rgba(0,0,0,.08)!important}.style_mention__highlighter__pNPhl{letter-spacing:0;line-height:normal}.style_mention__highlighter__pNPhl span,.style_mention__highlighter__pNPhl strong{letter-spacing:normal;line-height:normal!important;margin:0!important;padding:0!important;visibility:visible!important}.style_mention__input__5-hJw{border:none;letter-spacing:normal!important;line-height:normal!important;outline:none;padding:0}.style_mention__suggestion__xzP4Y{align-items:center;display:flex;position:relative;width:100%}.style_mention__suggestion__xzP4Y:after{background-color:rgba(0,0,0,.08);bottom:-11px;content:"";height:1px;position:absolute;right:-16px;width:calc(100% - 35px)}.style_mention__suggestion__info__2yJKq{display:flex;flex:1;flex-direction:column;overflow:hidden;padding-left:1rem}.style_mention__suggestion__info__name__yq1t4{display:inline-block;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.style_mention__suggestion__info__group__MkVWS{color:#b1b1b1;font-size:.9rem}'),module.exports={mention:"style_mention__ItOCH",mention__control:"style_mention__control__n07-d","mention--multiLine":"style_mention--multiLine__AUiad",mention__suggestions:"style_mention__suggestions__SA5o5",mention__suggestions__list:"style_mention__suggestions__list__rwfgI",mention__suggestions__item:"style_mention__suggestions__item__gqwq0",mention__highlighter:"style_mention__highlighter__pNPhl",mention__input:"style_mention__input__5-hJw",mention__suggestion:"style_mention__suggestion__xzP4Y",mention__suggestion__info:"style_mention__suggestion__info__2yJKq",mention__suggestion__info__name:"style_mention__suggestion__info__name__yq1t4",mention__suggestion__info__group:"style_mention__suggestion__info__group__MkVWS"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),t=require("@material-ui/core"),i=require("@material-ui/pickers"),n=require("@date-io/moment"),u=require("moment"),o=require("../config/theme/index.js"),c=require("../constants/theme.js"),s=require("react/jsx-runtime");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(e),f=a(r),p=a(n),b=a(u),m=["theme"];function j(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function d(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?j(Object(t),!0).forEach((function(r){l.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}module.exports=function(e){return function(r){var n=r.theme,u=void 0===n?c.THEMES.DARK:n,a=f.default(r,m);return s.jsx(t.MuiThemeProvider,{theme:u
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),t=require("@material-ui/core"),i=require("@material-ui/pickers"),n=require("@date-io/moment"),u=require("moment"),o=require("../config/theme/index.js"),c=require("../constants/theme.js"),s=require("react/jsx-runtime");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(e),f=a(r),p=a(n),b=a(u),m=["theme"];function j(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function d(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?j(Object(t),!0).forEach((function(r){l.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}module.exports=function(e){return function(r){var n=r.theme,u=void 0===n?c.THEMES.DARK:n,a=f.default(r,m);return s.jsx(t.MuiThemeProvider,{theme:u!==c.THEMES.LIGHT?o.darkTheme:o.lightTheme,children:s.jsx(i.MuiPickersUtilsProvider,{libInstance:b.default,utils:p.default,children:s.jsx(e,d({},a))})})}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsProvider.js"),o=require("../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchProvider.js");require("react"),require("../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js"),require("../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js"),require("../../componentsV2/Text/Text.js"),require("../../componentsV2/Grid/Grid.js"),require("classnames"),require("../../componentsV2/Grid/Grid.scss.js"),require("../../componentsV2/Header/Header.scss.js"),require("../../componentsV2/Button/Button.js"),require("../../componentsV2/ButtonIcon/ButtonIcon.js"),require("@material-ui/core"),require("../../components/DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js"),require("../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js"),require("../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js"),require("uuid"),require("../../componentsV2/Tooltip/Tooltip.scss.js"),require("../../componentsV2/Paper/Paper.js"),require("../../componentsV2/Popover/Popover.scss.js"),require("../../componentsV2/Radio/Radio.js"),require("../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js"),require("../../componentsV2/Checkbox/Checkbox.js"),require("../../componentsV2/TextInput/TextInput.js"),require("lodash"),require("../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js"),require("../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js"),require("../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js"),require("../../componentsV2/TextLink/TextLink.js"),require("../../componentsV2/Chip/Chip.js"),require("../../componentsV2/ChipAlert/ChipAlert.js"),require("../../componentsV2/ChipIndicator/ChipIndicator.js"),require("../../componentsV2/Avatar/Avatar.js"),require("../../componentsV2/Avatar/constants.js"),require("../../componentsV2/AvatarGroup/AvatarGroup.scss.js"),require("@material-ui/lab"),require("../../componentsV2/ToggleButtons/ToggleButtons.scss.js"),require("../../componentsV2/Modal/Modal.scss.js"),require("@icon-park/react/es/all"),require("../../icons/IconParkProvider.js"),require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.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"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js"),require("../../icons/customIcons/icons/Pad.js"),require("../../icons/customIcons/icons/Gap.js"),require("../../componentsV2/Menu/Menu.js"),require("../../componentsV2/Counter/Counter.js"),require("../../componentsV2/BadgeBase/BadgeBase.scss.js"),require("../../componentsV2/BadgeDot/BadgeDot.scss.js"),require("../../componentsV2/LoaderLinear/LoaderLinear.scss.js"),require("../../componentsV2/LoaderLogo/LoaderLogo.scss.js"),require("../../componentsV2/Switch/Switch.js"),require("../../componentsV2/Tabs/Tabs.js"),require("../../componentsV2/EmptyState/EmptyState.scss.js"),require("../../componentsV2/FileIcon/FileIcon.js"),require("react-dropzone"),require("../../utils/index.js"),require("../../componentsV2/FilesDropzone/FilesDropzone.scss.js"),require("../../componentsV2/FilesLoader/FilesLoader.scss.js"),require("../../componentsV2/FilesProcessor/FilesProcessor.scss.js"),require("../../componentsV2/Skeleton/Skeleton.scss.js"),require("../../utils/main.js"),require("../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js"),require("../../componentsV2/Stepper/Step/Step.scss.js"),require("../../componentsV2/Stepper/Stepper.scss.js"),require("../../componentsV2/ButtonLive/ButtonLive.js"),require("../../componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js"),require("../../componentsV2/IndicatorLive/IndicatorLive.scss.js"),require("../../componentsV2/Accordion/Accordion.scss.js"),require("../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js"),require("../../componentsV2/BadgeComment/BadgeComment.js"),require("../../componentsV2/AppContainer/AppContainer.js"),require("../../componentsV2/AppContainer/AppContainer.constants.js"),require("../../componentsV2/AppFooter/AppFooter.js"),require("../../constants/goals.js"),require("../../constants/segment.js"),require("../../constants/alerts.js"),require("../../constants/apps.js"),require("../../constants/drillstring.js"),require("../../constants/completion.js"),require("../../constants/appPackages.js"),require("../../constants/notifications.js"),require("../../constants/feed.js"),require("../../constants/bha.js"),require("../../utils/env.js"),require("../../components/GradientManager/configuration/constants.js"),require("../../components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsContext.js"),require("../../componentsV2/AppHeader/AppHeader.constants.js"),require("../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js"),require("../../componentsV2/AppHeader/AppAssets/AppAssets.js"),require("../../components/PadModeSelect/PadModeSelect.js"),require("../../componentsV2/AppHeader/PadMode/PadMode.scss.js"),require("../../constants/streamSourceType.js"),require("../../componentsV2/AppHeader/AppHeader.scss.js");exports.AppTestWrapper=function(r){var n=r.children,t=r.commentsEnabled,i=r.app,c=r.appId,p=r.appSettings,u=r.onSettingChange,a=r.wells,m=r.well,d=r.rig,q=r.maximized,j=r.fracFleet,l=r.dashboardMeta,C=void 0===l?{v3:!1,isMultiAsset:!1,isMultiWell:!1}:l;return e.jsx(s.AppCommonsProvider,{app:i,appId:c,appSettings:p,onSettingChange:u,wells:a,well:m,rig:d,maximized
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsProvider.js"),o=require("../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchProvider.js");require("react"),require("../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js"),require("../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js"),require("../../componentsV2/Text/Text.js"),require("../../componentsV2/Grid/Grid.js"),require("classnames"),require("../../componentsV2/Grid/Grid.scss.js"),require("../../componentsV2/Header/Header.scss.js"),require("../../componentsV2/Button/Button.js"),require("../../componentsV2/ButtonIcon/ButtonIcon.js"),require("@material-ui/core"),require("../../components/DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js"),require("../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js"),require("../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js"),require("uuid"),require("../../componentsV2/Tooltip/Tooltip.scss.js"),require("../../componentsV2/Paper/Paper.js"),require("../../componentsV2/Popover/Popover.scss.js"),require("../../componentsV2/Radio/Radio.js"),require("../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js"),require("../../componentsV2/Checkbox/Checkbox.js"),require("../../componentsV2/TextInput/TextInput.js"),require("lodash"),require("../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js"),require("../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js"),require("../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js"),require("../../componentsV2/TextLink/TextLink.js"),require("../../componentsV2/Chip/Chip.js"),require("../../componentsV2/ChipAlert/ChipAlert.js"),require("../../componentsV2/ChipIndicator/ChipIndicator.js"),require("../../componentsV2/Avatar/Avatar.js"),require("../../componentsV2/Avatar/constants.js"),require("../../componentsV2/AvatarGroup/AvatarGroup.scss.js"),require("@material-ui/lab"),require("../../componentsV2/ToggleButtons/ToggleButtons.scss.js"),require("../../componentsV2/Modal/Modal.scss.js"),require("@icon-park/react/es/all"),require("../../icons/IconParkProvider.js"),require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.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"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js"),require("../../icons/customIcons/icons/Pad.js"),require("../../icons/customIcons/icons/Gap.js"),require("../../componentsV2/Menu/Menu.js"),require("../../componentsV2/Counter/Counter.js"),require("../../componentsV2/BadgeBase/BadgeBase.scss.js"),require("../../componentsV2/BadgeDot/BadgeDot.scss.js"),require("../../componentsV2/LoaderLinear/LoaderLinear.scss.js"),require("../../componentsV2/LoaderLogo/LoaderLogo.scss.js"),require("../../componentsV2/Switch/Switch.js"),require("../../componentsV2/Tabs/Tabs.js"),require("../../componentsV2/EmptyState/EmptyState.scss.js"),require("../../componentsV2/FileIcon/FileIcon.js"),require("react-dropzone"),require("../../utils/index.js"),require("../../componentsV2/FilesDropzone/FilesDropzone.scss.js"),require("../../componentsV2/FilesLoader/FilesLoader.scss.js"),require("../../componentsV2/FilesProcessor/FilesProcessor.scss.js"),require("../../componentsV2/Skeleton/Skeleton.scss.js"),require("../../utils/main.js"),require("../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js"),require("../../componentsV2/Stepper/Step/Step.scss.js"),require("../../componentsV2/Stepper/Stepper.scss.js"),require("../../componentsV2/ButtonLive/ButtonLive.js"),require("../../componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js"),require("../../componentsV2/IndicatorLive/IndicatorLive.scss.js"),require("../../componentsV2/Accordion/Accordion.scss.js"),require("../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js"),require("../../componentsV2/BadgeComment/BadgeComment.js"),require("../../componentsV2/AppContainer/AppContainer.js"),require("../../componentsV2/AppContainer/AppContainer.constants.js"),require("../../componentsV2/AppFooter/AppFooter.js"),require("../../constants/goals.js"),require("../../constants/segment.js"),require("../../constants/alerts.js"),require("../../constants/apps.js"),require("../../constants/drillstring.js"),require("../../constants/completion.js"),require("../../constants/appPackages.js"),require("../../constants/notifications.js"),require("../../constants/feed.js"),require("../../constants/bha.js"),require("../../utils/env.js"),require("../../components/GradientManager/configuration/constants.js"),require("../../components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsContext.js"),require("../../componentsV2/AppHeader/AppHeader.constants.js"),require("../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js"),require("../../componentsV2/AppHeader/AppAssets/AppAssets.js"),require("../../components/PadModeSelect/PadModeSelect.js"),require("../../componentsV2/AppHeader/PadMode/PadMode.scss.js"),require("../../constants/streamSourceType.js"),require("../../componentsV2/AppHeader/AppHeader.scss.js");exports.AppTestWrapper=function(r){var n=r.children,t=r.commentsEnabled,i=r.app,c=r.appId,p=r.appSettings,u=r.onSettingChange,a=r.wells,m=r.well,d=r.rig,q=r.maximized,j=r.fracFleet,l=r.dashboardMeta,C=void 0===l?{v3:!1,isMultiAsset:!1,isMultiWell:!1}:l;return e.jsx(s.AppCommonsProvider,{app:i||{},appId:c||-1,appSettings:p||{},onSettingChange:u||function(){},wells:a,well:m,rig:d,maximized:!!q,fracFleet:j,dashboardMeta:C,children:e.jsx(o.CommentsSwitchProvider,{initial:t,children:n})})};
|
package/cjs-bundle/utils/bha.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),r=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/helpers/defineProperty"),a=require("@babel/runtime/regenerator"),n=require("lodash/get"),i=require("lodash/maxBy"),o=require("./convert.js"),u=require("../clients/jsonApi/index.js"),l=require("../constants/bha.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=s(e),b=s(r),p=s(t),f=s(a),N=s(n),m=s(i);function d(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function h(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?d(Object(t),!0).forEach((function(r){p.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var v,E=function(e,r,t,a){var n=e;return!function(e){return e&&-1!==e}(a)?null!=r&&r.company_id&&(n=h({company_id:r.company_id},n)):n=h({company_id:a},n),t&&(n["data.well_sections"]={$in:t}),n},I=(v=b.default(f.default.mark((function e(r,t){var a,n,i,o;return f.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((a=r.map((function(e){var r=Number(e._id),a=e.bha_ids||[];return E({asset_id:r,"data.id":{$in:a}},e,null,t)}))).length){e.next=3;break}return e.abrupt("return",[]);case 3:return n=a.length>1?{$or:a}:a[0],i={aggregate:JSON.stringify([{$match:n},{$limit:1e4}])},o=[],e.prev=7,e.next=10,u.getAppStorage(l.COLLECTIONS.drillstring.provider,l.COLLECTIONS.drillstring.collection,null,i);case 10:o=e.sent,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(7),o=[];case 16:return e.abrupt("return",o);case 17:case"end":return e.stop()}}),e,null,[[7,13]])}))),function(e,r){return v.apply(this,arguments)}),S=function(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),r=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/helpers/defineProperty"),a=require("@babel/runtime/regenerator"),n=require("lodash/get"),i=require("lodash/maxBy"),o=require("./convert.js"),u=require("../clients/jsonApi/index.js"),l=require("../constants/bha.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=s(e),b=s(r),p=s(t),f=s(a),N=s(n),m=s(i);function d(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function h(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?d(Object(t),!0).forEach((function(r){p.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var v,E=function(e,r,t,a){var n=e;return!function(e){return e&&-1!==e}(a)?null!=r&&r.company_id&&(n=h({company_id:r.company_id},n)):n=h({company_id:a},n),t&&(n["data.well_sections"]={$in:t}),n},I=(v=b.default(f.default.mark((function e(r,t){var a,n,i,o;return f.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((a=r.map((function(e){var r=Number(e._id),a=e.bha_ids||[];return E({asset_id:r,"data.id":{$in:a}},e,null,t)}))).length){e.next=3;break}return e.abrupt("return",[]);case 3:return n=a.length>1?{$or:a}:a[0],i={aggregate:JSON.stringify([{$match:n},{$limit:1e4}])},o=[],e.prev=7,e.next=10,u.getAppStorage(l.COLLECTIONS.drillstring.provider,l.COLLECTIONS.drillstring.collection,null,i);case 10:o=e.sent,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(7),o=[];case 16:return e.abrupt("return",o);case 17:case"end":return e.stop()}}),e,null,[[7,13]])}))),function(e,r){return v.apply(this,arguments)}),S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=Object.values(l.BHA_FAMILY),t=!1,a=e.reduce((function(e,a){var n=a.family,i=a.material;if(t||r.includes(n)||i===l.NON_MAGNETIC_TYPE){if(t=!0,r.includes(n)){var o={family:n,bitType:n===l.BHA_FAMILY.bit?a.bit_type:""};return e.push(o),e}return e.length&&"other"===e[e.length-1].family||e.push({family:"other",bitType:""}),e}return e}),[]);return a},g=function(e,r){return parseFloat(parseFloat(e).toFixed(r)).toString()};exports.calculateBHALengthMax=function(e){var r;if(!e.length)return 0;var t=(null===(r=m.default(e,(function(e){var r,t=(null===(r=e.data)||void 0===r?void 0:r.components)||[];return S(t).reduce((function(e,r){var t=r.family;return t===l.BHA_FAMILY.rss||t===l.BHA_FAMILY.pdm?e+2:Object.values(l.BHA_FAMILY).includes(t)?e:e+1}),0)})).data)||void 0===r?void 0:r.components)||[];return S(t).reduce((function(e,r){var t=r.family;return t===l.BHA_FAMILY.rss||t===l.BHA_FAMILY.pdm?e+2:Object.values(l.BHA_FAMILY).includes(t)?e:e+1}),0)},exports.getBHAInformation=function(e,r,t){var a=t.filter((function(t){var a;return t.asset_id===e&&(null===(a=t.data)||void 0===a?void 0:a.id)===r}));return a.length>0?a[0]:[]},exports.getBHASchematic=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=[];return e.forEach((function(e){var t=e.family,a=e.material,n=e.stabilizer;["bit","pdm","rss","stabilizer","ur"].includes(t)?r.push({family:t,hasStabilizer:!!n,bitType:N.default(e,"bit_type")}):"Non Magnetic"!==a||0!==r.length&&r.slice(-1)[0].material===a||r.push({family:"other",material:a})})),r},exports.getBhaBitSize=function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="shortLength",a=null===(e=r.find((function(e){return"bit"===e.family})))||void 0===e?void 0:e.size,n=a?"".concat(Math.round(1e3*a)/1e3):a,i=o.convertValue(n,t,"in")||"-",u=o.getUnitDisplay(t);return"".concat(i," ").concat(u)},exports.getBhaDepthIn=function(e){var r=Number.isFinite(e)?o.convertValue(e,"length","ft",null,3):0;return"".concat(r," ").concat(o.getUnitDisplay("length"))},exports.getErrors=function(e,r,t){var a="inc"===t?l.MAX_INC_LIMIT:parseInt(o.convertValue(l.MAX_DEPTH_LIMIT,"length","ft"),10),n=[e,r].reduce((function(e,r){var n;return n=Number.isFinite(r)?a>=r?null:function(e){var r="inc"===e?l.MAX_INC_LIMIT:parseInt(o.convertValue(l.MAX_DEPTH_LIMIT,"length","ft"),10);return"Must be within 0 ~ ".concat(r)}(t):"Invalid value",e.concat([n])}),[]),i=c.default(n,2),u=i[0],s=i[1];return Number.isFinite(e)&&Number.isFinite(r)&&e>=r?["Should be less than max value","Should be greater than min value"]:[u,s]},exports.getUnitConvertedValue=function(e,r){var t;switch(r){case l.PERCENTILE_KEYS.ropRotary:case l.PERCENTILE_KEYS.ropSlide:case l.METRICS_KEYS.netROP:case l.METRICS_KEYS.ropRotary:case l.METRICS_KEYS.ropSlide:t=Number.isNaN(Number.parseFloat(e))?e:Math.floor(o.convertValue(e,"velocity","ft/h"));break;case l.METRICS_KEYS.distance:case l.METRICS_KEYS.holeDepth:t=Number.isNaN(Number.parseFloat(e))?e:Math.floor(o.convertValue(e,"length","ft"));break;case l.DRILLSTRING_KEYS.bitToBend:case l.DRILLSTRING_KEYS.hwdpLength:case l.METRICS_KEYS.rotaryFootage:case l.METRICS_KEYS.slideFootage:t=Number.isNaN(Number.parseFloat(e))?e:parseFloat(o.convertValue(e,"length","ft")).fixFloat(2);break;case l.METRICS_KEYS.turnRate:case l.METRICS_KEYS.buildRate:t=Number.isNaN(Number.parseFloat(e))?e:parseFloat(o.convertValue(e,"anglePerLength","dp100f")).toFixed(2);break;case l.METRICS_KEYS.onBottomTime:case l.METRICS_KEYS.totalTime:t=Number.isNaN(Number.parseFloat(e))?e:parseFloat(e).toFixed(2);break;case l.PERCENTILE_KEYS.mse:t=Number.isNaN(Number.parseFloat(e))?e:Math.floor(o.convertValue(e,"msePressure","psi"));break;case l.PERCENTILE_KEYS.wob:t=Number.isNaN(Number.parseFloat(e))?e:Math.floor(o.convertValue(e,"force","klbf"));break;case l.PERCENTILE_KEYS.diffPressure:t=Number.isNaN(Number.parseFloat(e))?e:Math.floor(o.convertValue(e,"pressure","psi"));break;case l.PERCENTILE_KEYS.flowIn:t=Number.isNaN(Number.parseFloat(e))?e:Math.floor(o.convertValue(e,"volumeFlowRate","gal/min"));break;case l.DRILLSTRING_KEYS.tfa:t=Number.isNaN(parseFloat(e))?e:parseFloat(e).fixFloat(2);break;case l.DRILLSTRING_KEYS.holeSize:t=Number.isNaN(Number.parseFloat(e))?e:g(o.convertValue(e,"shortLength","in"),3);break;case l.DRILLSTRING_KEYS.motorSize:t=Number.isNaN(Number.parseFloat(e))?e:g(o.convertValue(e,"shortLength","in"),2);break;case l.MOTOR_CONFIG.outer_diameter:t=Number.isNaN(Number.parseFloat(e))?e:g(o.convertValue(e,"shortLength","in"),1);break;case l.DRILLSTRING_KEYS.motorBend:t=Number.isNaN(Number.parseFloat(e))?e:g(e,2);break;default:t=Number.isNaN(Number.parseFloat(e))?e:Math.floor(e)}return t},exports.loadDrillStringData=I,exports.removeZero=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from'./../../ext-esm/style-inject/dist/style-inject.es.js';var n={mention:"style_mention__ItOCH",mention__control:"style_mention__control__n07-d","mention--multiLine":"style_mention--multiLine__AUiad",mention__suggestions:"style_mention__suggestions__SA5o5",mention__suggestions__list:"style_mention__suggestions__list__rwfgI",mention__suggestions__item:"style_mention__suggestions__item__gqwq0",mention__highlighter:"style_mention__highlighter__pNPhl",mention__input:"style_mention__input__5-hJw",mention__suggestion:"style_mention__suggestion__xzP4Y",mention__suggestion__info:"style_mention__suggestion__info__2yJKq",mention__suggestion__info__name:"style_mention__suggestion__info__name__yq1t4",mention__suggestion__info__group:"style_mention__suggestion__info__group__MkVWS"};t('.style_mention__ItOCH{margin:0;min-width:0;width:100%}.style_mention__control__n07-d{width:100%}.style_mention--multiLine__AUiad .style_mention__control__n07-d{height:70px;max-height:70px;overflow-y:auto}.style_mention__suggestions__SA5o5{background-color:#fff;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);max-height:260px;max-width:calc(100% - 32px);min-width:250px!important;overflow-x:hidden}.style_mention__suggestions__list__rwfgI{font-size:14px;max-height:260px;overflow-y:auto;position:relative}.style_mention__suggestions__item__gqwq0{align-items:center;box-sizing:content-box;color:rgba(0,0,0,.87);display:flex;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:400;justify-content:flex-start;line-height:1.5em;min-width:250px;overflow:hidden;padding:11px 16px;position:relative;text-align:left;text-decoration:none;white-space:nowrap;width:auto}.style_mention__suggestions__item__gqwq0:hover{background-color:rgba(0,0,0,.08)!important}.style_mention__highlighter__pNPhl{letter-spacing:0;line-height:normal}.style_mention__highlighter__pNPhl span,.style_mention__highlighter__pNPhl strong{letter-spacing:normal;line-height:normal!important;margin:0!important;padding:0!important;visibility:visible!important}.style_mention__input__5-hJw{border:none;letter-spacing:normal!important;line-height:normal!important;outline:none;padding:0}.style_mention__suggestion__xzP4Y{align-items:center;display:flex;position:relative;width:100%}.style_mention__suggestion__xzP4Y:after{background-color:rgba(0,0,0,.08);bottom:-11px;content:"";height:1px;position:absolute;right:-16px;width:calc(100% - 35px)}.style_mention__suggestion__info__2yJKq{display:flex;flex:1;flex-direction:column;overflow:hidden;padding-left:1rem}.style_mention__suggestion__info__name__yq1t4{display:inline-block;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.style_mention__suggestion__info__group__MkVWS{color:#b1b1b1;font-size:.9rem}');export{n as default};
|
|
1
|
+
import t from'./../../ext-esm/style-inject/dist/style-inject.es.js';var n={mention:"style_mention__ItOCH",mention__control:"style_mention__control__n07-d","mention--multiLine":"style_mention--multiLine__AUiad",mention__suggestions:"style_mention__suggestions__SA5o5",mention__suggestions__list:"style_mention__suggestions__list__rwfgI",mention__suggestions__item:"style_mention__suggestions__item__gqwq0",mention__highlighter:"style_mention__highlighter__pNPhl",mention__input:"style_mention__input__5-hJw",mention__suggestion:"style_mention__suggestion__xzP4Y",mention__suggestion__info:"style_mention__suggestion__info__2yJKq",mention__suggestion__info__name:"style_mention__suggestion__info__name__yq1t4",mention__suggestion__info__group:"style_mention__suggestion__info__group__MkVWS"};t('.style_mention__ItOCH{margin:0;min-width:0;width:100%}.style_mention__control__n07-d{width:100%}.style_mention--multiLine__AUiad .style_mention__control__n07-d{height:70px;max-height:70px;overflow-y:auto}.style_mention__suggestions__SA5o5{background-color:#fff;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);max-height:260px;max-width:calc(100% - 32px);min-width:250px!important;overflow-x:hidden;z-index:2!important}.style_mention__suggestions__list__rwfgI{font-size:14px;max-height:260px;overflow-y:auto;position:relative}.style_mention__suggestions__item__gqwq0{align-items:center;box-sizing:content-box;color:rgba(0,0,0,.87);display:flex;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:400;justify-content:flex-start;line-height:1.5em;min-width:250px;overflow:hidden;padding:11px 16px;position:relative;text-align:left;text-decoration:none;white-space:nowrap;width:auto}.style_mention__suggestions__item__gqwq0:hover{background-color:rgba(0,0,0,.08)!important}.style_mention__highlighter__pNPhl{letter-spacing:0;line-height:normal}.style_mention__highlighter__pNPhl span,.style_mention__highlighter__pNPhl strong{letter-spacing:normal;line-height:normal!important;margin:0!important;padding:0!important;visibility:visible!important}.style_mention__input__5-hJw{border:none;letter-spacing:normal!important;line-height:normal!important;outline:none;padding:0}.style_mention__suggestion__xzP4Y{align-items:center;display:flex;position:relative;width:100%}.style_mention__suggestion__xzP4Y:after{background-color:rgba(0,0,0,.08);bottom:-11px;content:"";height:1px;position:absolute;right:-16px;width:calc(100% - 35px)}.style_mention__suggestion__info__2yJKq{display:flex;flex:1;flex-direction:column;overflow:hidden;padding-left:1rem}.style_mention__suggestion__info__name__yq1t4{display:inline-block;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.style_mention__suggestion__info__group__MkVWS{color:#b1b1b1;font-size:.9rem}');export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import{MuiThemeProvider as t}from"@material-ui/core";import{MuiPickersUtilsProvider as o}from"@material-ui/pickers";import i from"@date-io/moment";import n from"moment";import{darkTheme as m,lightTheme as c}from"../config/theme/index.js";import{THEMES as p}from"../constants/theme.js";import{jsx as f}from"react/jsx-runtime";var a=["theme"];function s(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function u(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var b=function(e){return function(s){var b=s.theme,l=void 0===b?p.DARK:b,O=r(s,a);return f(t,{theme:l
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import{MuiThemeProvider as t}from"@material-ui/core";import{MuiPickersUtilsProvider as o}from"@material-ui/pickers";import i from"@date-io/moment";import n from"moment";import{darkTheme as m,lightTheme as c}from"../config/theme/index.js";import{THEMES as p}from"../constants/theme.js";import{jsx as f}from"react/jsx-runtime";var a=["theme"];function s(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function u(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var b=function(e){return function(s){var b=s.theme,l=void 0===b?p.DARK:b,O=r(s,a);return f(t,{theme:l!==p.LIGHT?m:c,children:f(o,{libInstance:n,utils:i,children:f(e,u({},O))})})}};export{b as default};
|
package/package.json
CHANGED
|
@@ -3,6 +3,6 @@ import { AppCommonsContextType } from '../../components/DevCenter/DevCenterAppCo
|
|
|
3
3
|
export type AppTestWrapperProps = {
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
commentsEnabled?: boolean;
|
|
6
|
-
} & AppCommonsContextType
|
|
6
|
+
} & Partial<AppCommonsContextType>;
|
|
7
7
|
export declare const AppTestWrapper: ({ children, commentsEnabled, app, appId, appSettings, onSettingChange, wells, well, rig, maximized, fracFleet, dashboardMeta, }: AppTestWrapperProps) => JSX.Element;
|
|
8
8
|
//# sourceMappingURL=AppTestWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppTestWrapper.d.ts","sourceRoot":"","sources":["../../../src/testing/AppTestWrapper/AppTestWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0FAA0F,CAAC;AAGjI,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"AppTestWrapper.d.ts","sourceRoot":"","sources":["../../../src/testing/AppTestWrapper/AppTestWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0FAA0F,CAAC;AAGjI,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAEnC,eAAO,MAAM,cAAc,oIAiBxB,mBAAmB,gBAiBrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{AppCommonsProvider as s}from"../../components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsProvider.js";import{CommentsSwitchProvider as t}from"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchProvider.js";import"react";import"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Grid/Grid.js";import"classnames";import"../../componentsV2/Grid/Grid.scss.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import"@material-ui/core";import"../../components/DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"uuid";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/Popover/Popover.scss.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInput/TextInput.js";import"lodash";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/Avatar/constants.js";import"../../componentsV2/AvatarGroup/AvatarGroup.scss.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Modal/Modal.scss.js";import"@icon-park/react/es/all";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.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"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/Gap.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.js";import"../../componentsV2/EmptyState/EmptyState.scss.js";import"../../componentsV2/FileIcon/FileIcon.js";import"react-dropzone";import"../../utils/index.js";import"../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../componentsV2/FilesLoader/FilesLoader.scss.js";import"../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../componentsV2/Skeleton/Skeleton.scss.js";import"../../utils/main.js";import"../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../componentsV2/Stepper/Step/Step.scss.js";import"../../componentsV2/Stepper/Stepper.scss.js";import"../../componentsV2/ButtonLive/ButtonLive.js";import"../../componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js";import"../../componentsV2/IndicatorLive/IndicatorLive.scss.js";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../utils/env.js";import"../../components/GradientManager/configuration/constants.js";import"../../components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/AppHeader/AppAssets/AppAssets.js";import"../../components/PadModeSelect/PadModeSelect.js";import"../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../constants/streamSourceType.js";import"../../componentsV2/AppHeader/AppHeader.scss.js";var n=function(n){var e=n.children,p=n.commentsEnabled,i=n.app,c=n.appId,r=n.appSettings,m=n.onSettingChange,a=n.wells,d=n.well,j=n.rig,l=n.maximized,u=n.fracFleet,C=n.dashboardMeta;return o(s,{app:i,appId:c,appSettings:r,onSettingChange:m,wells:a,well:d,rig:j,maximized
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{AppCommonsProvider as s}from"../../components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsProvider.js";import{CommentsSwitchProvider as t}from"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchProvider.js";import"react";import"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Grid/Grid.js";import"classnames";import"../../componentsV2/Grid/Grid.scss.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import"@material-ui/core";import"../../components/DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"uuid";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/Popover/Popover.scss.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInput/TextInput.js";import"lodash";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/Avatar/constants.js";import"../../componentsV2/AvatarGroup/AvatarGroup.scss.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Modal/Modal.scss.js";import"@icon-park/react/es/all";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.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"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/Gap.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.js";import"../../componentsV2/EmptyState/EmptyState.scss.js";import"../../componentsV2/FileIcon/FileIcon.js";import"react-dropzone";import"../../utils/index.js";import"../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../componentsV2/FilesLoader/FilesLoader.scss.js";import"../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../componentsV2/Skeleton/Skeleton.scss.js";import"../../utils/main.js";import"../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../componentsV2/Stepper/Step/Step.scss.js";import"../../componentsV2/Stepper/Stepper.scss.js";import"../../componentsV2/ButtonLive/ButtonLive.js";import"../../componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js";import"../../componentsV2/IndicatorLive/IndicatorLive.scss.js";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../utils/env.js";import"../../components/GradientManager/configuration/constants.js";import"../../components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/AppHeader/AppAssets/AppAssets.js";import"../../components/PadModeSelect/PadModeSelect.js";import"../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../constants/streamSourceType.js";import"../../componentsV2/AppHeader/AppHeader.scss.js";var n=function(n){var e=n.children,p=n.commentsEnabled,i=n.app,c=n.appId,r=n.appSettings,m=n.onSettingChange,a=n.wells,d=n.well,j=n.rig,l=n.maximized,u=n.fracFleet,C=n.dashboardMeta;return o(s,{app:i||{},appId:c||-1,appSettings:r||{},onSettingChange:m||function(){},wells:a,well:d,rig:j,maximized:!!l,fracFleet:u,dashboardMeta:void 0===C?{v3:!1,isMultiAsset:!1,isMultiWell:!1}:C,children:o(t,{initial:p,children:e})})};export{n as AppTestWrapper};
|
package/utils/bha.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export function calculateBHALengthMax(drillStringData: any): any;
|
|
|
6
6
|
export function removeZero(value: any, decimals: any): string;
|
|
7
7
|
export function getUnitConvertedValue(value: any, key: any): any;
|
|
8
8
|
export function getErrors(minValue: any, maxValue: any, incOrDepth: any): any[];
|
|
9
|
-
export function getBHASchematic(components
|
|
9
|
+
export function getBHASchematic(components?: any[]): any[];
|
|
10
10
|
//# sourceMappingURL=bha.d.ts.map
|
package/utils/bha.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bha.d.ts","sourceRoot":"","sources":["../../src/utils/bha.js"],"names":[],"mappings":"AAuBO,uFASN;AAOM,mDAFK,MAAM,CAYjB;AAEM,uDAKN;AA0BM,yFAoCN;AAuCM,iEAkCN;AAGM,8DAEN;AAEM,iEAoFN;AAYM,gFAqBN;AAEM,
|
|
1
|
+
{"version":3,"file":"bha.d.ts","sourceRoot":"","sources":["../../src/utils/bha.js"],"names":[],"mappings":"AAuBO,uFASN;AAOM,mDAFK,MAAM,CAYjB;AAEM,uDAKN;AA0BM,yFAoCN;AAuCM,iEAkCN;AAGM,8DAEN;AAEM,iEAoFN;AAYM,gFAqBN;AAEM,2DAuBN"}
|
package/utils/bha.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/defineProperty";import a from"@babel/runtime/regenerator";import n from"lodash/get";import i from"lodash/maxBy";import{convertValue as o,getUnitDisplay as s}from"./convert.js";import{getAppStorage as u}from"../clients/jsonApi/index.js";import{COLLECTIONS as l,BHA_FAMILY as c,DRILLSTRING_KEYS as m,MOTOR_CONFIG as b,PERCENTILE_KEYS as p,METRICS_KEYS as f,MAX_INC_LIMIT as d,MAX_DEPTH_LIMIT as h,NON_MAGNETIC_TYPE as N}from"../constants/bha.js";function v(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function g(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?v(Object(a),!0).forEach((function(r){t(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):v(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}var y,F=function(e,r,t){var a=t.filter((function(t){var a;return t.asset_id===e&&(null===(a=t.data)||void 0===a?void 0:a.id)===r}));return a.length>0?a[0]:[]},O=function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="shortLength",a=null===(e=r.find((function(e){return"bit"===e.family})))||void 0===e?void 0:e.size,n=a?"".concat(Math.round(1e3*a)/1e3):a,i=o(n,t,"in")||"-",u=s(t);return"".concat(i," ").concat(u)},k=function(e){var r=Number.isFinite(e)?o(e,"length","ft",null,3):0;return"".concat(r," ").concat(s("length"))},j=function(e,r,t,a){var n=e;return!function(e){return e&&-1!==e}(a)?null!=r&&r.company_id&&(n=g({company_id:r.company_id},n)):n=g({company_id:a},n),t&&(n["data.well_sections"]={$in:t}),n},w=(y=r(a.mark((function e(r,t){var n,i,o,s;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=r.map((function(e){var r=Number(e._id),a=e.bha_ids||[];return j({asset_id:r,"data.id":{$in:a}},e,null,t)}))).length){e.next=3;break}return e.abrupt("return",[]);case 3:return i=n.length>1?{$or:n}:n[0],o={aggregate:JSON.stringify([{$match:i},{$limit:1e4}])},s=[],e.prev=7,e.next=10,u(l.drillstring.provider,l.drillstring.collection,null,o);case 10:s=e.sent,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(7),s=[];case 16:return e.abrupt("return",s);case 17:case"end":return e.stop()}}),e,null,[[7,13]])}))),function(e,r){return y.apply(this,arguments)}),x=function(
|
|
1
|
+
import e from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/defineProperty";import a from"@babel/runtime/regenerator";import n from"lodash/get";import i from"lodash/maxBy";import{convertValue as o,getUnitDisplay as s}from"./convert.js";import{getAppStorage as u}from"../clients/jsonApi/index.js";import{COLLECTIONS as l,BHA_FAMILY as c,DRILLSTRING_KEYS as m,MOTOR_CONFIG as b,PERCENTILE_KEYS as p,METRICS_KEYS as f,MAX_INC_LIMIT as d,MAX_DEPTH_LIMIT as h,NON_MAGNETIC_TYPE as N}from"../constants/bha.js";function v(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function g(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?v(Object(a),!0).forEach((function(r){t(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):v(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}var y,F=function(e,r,t){var a=t.filter((function(t){var a;return t.asset_id===e&&(null===(a=t.data)||void 0===a?void 0:a.id)===r}));return a.length>0?a[0]:[]},O=function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="shortLength",a=null===(e=r.find((function(e){return"bit"===e.family})))||void 0===e?void 0:e.size,n=a?"".concat(Math.round(1e3*a)/1e3):a,i=o(n,t,"in")||"-",u=s(t);return"".concat(i," ").concat(u)},k=function(e){var r=Number.isFinite(e)?o(e,"length","ft",null,3):0;return"".concat(r," ").concat(s("length"))},j=function(e,r,t,a){var n=e;return!function(e){return e&&-1!==e}(a)?null!=r&&r.company_id&&(n=g({company_id:r.company_id},n)):n=g({company_id:a},n),t&&(n["data.well_sections"]={$in:t}),n},w=(y=r(a.mark((function e(r,t){var n,i,o,s;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=r.map((function(e){var r=Number(e._id),a=e.bha_ids||[];return j({asset_id:r,"data.id":{$in:a}},e,null,t)}))).length){e.next=3;break}return e.abrupt("return",[]);case 3:return i=n.length>1?{$or:n}:n[0],o={aggregate:JSON.stringify([{$match:i},{$limit:1e4}])},s=[],e.prev=7,e.next=10,u(l.drillstring.provider,l.drillstring.collection,null,o);case 10:s=e.sent,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(7),s=[];case 16:return e.abrupt("return",s);case 17:case"end":return e.stop()}}),e,null,[[7,13]])}))),function(e,r){return y.apply(this,arguments)}),x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=Object.values(c),t=!1,a=e.reduce((function(e,a){var n=a.family,i=a.material;if(t||r.includes(n)||i===N){if(t=!0,r.includes(n)){var o={family:n,bitType:n===c.bit?a.bit_type:""};return e.push(o),e}return e.length&&"other"===e[e.length-1].family||e.push({family:"other",bitType:""}),e}return e}),[]);return a},P=function(e){var r;if(!e.length)return 0;var t=(null===(r=i(e,(function(e){var r,t=(null===(r=e.data)||void 0===r?void 0:r.components)||[];return x(t).reduce((function(e,r){var t=r.family;return t===c.rss||t===c.pdm?e+2:Object.values(c).includes(t)?e:e+1}),0)})).data)||void 0===r?void 0:r.components)||[];return x(t).reduce((function(e,r){var t=r.family;return t===c.rss||t===c.pdm?e+2:Object.values(c).includes(t)?e:e+1}),0)},_=function(e,r){return parseFloat(parseFloat(e).toFixed(r)).toString()},S=function(e,r){var t;switch(r){case p.ropRotary:case p.ropSlide:case f.netROP:case f.ropRotary:case f.ropSlide:t=Number.isNaN(Number.parseFloat(e))?e:Math.floor(o(e,"velocity","ft/h"));break;case f.distance:case f.holeDepth:t=Number.isNaN(Number.parseFloat(e))?e:Math.floor(o(e,"length","ft"));break;case m.bitToBend:case m.hwdpLength:case f.rotaryFootage:case f.slideFootage:t=Number.isNaN(Number.parseFloat(e))?e:parseFloat(o(e,"length","ft")).fixFloat(2);break;case f.turnRate:case f.buildRate:t=Number.isNaN(Number.parseFloat(e))?e:parseFloat(o(e,"anglePerLength","dp100f")).toFixed(2);break;case f.onBottomTime:case f.totalTime:t=Number.isNaN(Number.parseFloat(e))?e:parseFloat(e).toFixed(2);break;case p.mse:t=Number.isNaN(Number.parseFloat(e))?e:Math.floor(o(e,"msePressure","psi"));break;case p.wob:t=Number.isNaN(Number.parseFloat(e))?e:Math.floor(o(e,"force","klbf"));break;case p.diffPressure:t=Number.isNaN(Number.parseFloat(e))?e:Math.floor(o(e,"pressure","psi"));break;case p.flowIn:t=Number.isNaN(Number.parseFloat(e))?e:Math.floor(o(e,"volumeFlowRate","gal/min"));break;case m.tfa:t=Number.isNaN(parseFloat(e))?e:parseFloat(e).fixFloat(2);break;case m.holeSize:t=Number.isNaN(Number.parseFloat(e))?e:_(o(e,"shortLength","in"),3);break;case m.motorSize:t=Number.isNaN(Number.parseFloat(e))?e:_(o(e,"shortLength","in"),2);break;case b.outer_diameter:t=Number.isNaN(Number.parseFloat(e))?e:_(o(e,"shortLength","in"),1);break;case m.motorBend:t=Number.isNaN(Number.parseFloat(e))?e:_(e,2);break;default:t=Number.isNaN(Number.parseFloat(e))?e:Math.floor(e)}return t},M=function(r,t,a){var n="inc"===a?d:parseInt(o(h,"length","ft"),10),i=[r,t].reduce((function(e,r){var t;return t=Number.isFinite(r)?n>=r?null:function(e){var r="inc"===e?d:parseInt(o(h,"length","ft"),10);return"Must be within 0 ~ ".concat(r)}(a):"Invalid value",e.concat([t])}),[]),s=e(i,2),u=s[0],l=s[1];return Number.isFinite(r)&&Number.isFinite(t)&&r>=t?["Should be less than max value","Should be greater than min value"]:[u,l]},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=[];return e.forEach((function(e){var t=e.family,a=e.material,i=e.stabilizer;["bit","pdm","rss","stabilizer","ur"].includes(t)?r.push({family:t,hasStabilizer:!!i,bitType:n(e,"bit_type")}):"Non Magnetic"!==a||0!==r.length&&r.slice(-1)[0].material===a||r.push({family:"other",material:a})})),r};export{P as calculateBHALengthMax,F as getBHAInformation,T as getBHASchematic,O as getBhaBitSize,k as getBhaDepthIn,M as getErrors,S as getUnitConvertedValue,w as loadDrillStringData,_ as removeZero};
|