@corva/ui 3.30.0-rc.0 → 3.30.0-rc.2

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 (125) hide show
  1. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  2. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  3. package/cjs-bundle/components/Drillstring/BHAComponentDetail/constants.js +1 -1
  4. package/cjs-bundle/components/Drillstring/BHAComponentDetail/constants.js.map +1 -1
  5. package/cjs-bundle/components/Drillstring/BHAComponentIcon.js +1 -1
  6. package/cjs-bundle/components/Drillstring/BHAComponentIcon.js.map +1 -1
  7. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  8. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  9. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js +1 -1
  10. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js.map +1 -1
  11. package/cjs-bundle/components/Drillstring/BHASchematic.js +1 -1
  12. package/cjs-bundle/components/Drillstring/BHASchematic.js.map +1 -1
  13. package/cjs-bundle/components/Drillstring/BHATileIcon.js +1 -1
  14. package/cjs-bundle/components/Drillstring/BHATileIcon.js.map +1 -1
  15. package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  16. package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js.map +1 -1
  17. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  18. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js.map +1 -1
  19. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.module.css.js +1 -1
  20. package/cjs-bundle/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js +1 -1
  21. package/cjs-bundle/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js.map +1 -1
  22. package/cjs-bundle/components/OffsetWellPickerV4/components/AppHeader/AppHeader.module.css.js +1 -1
  23. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
  24. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +1 -1
  25. package/cjs-bundle/componentsV2/AppCommonsProvider/utils.js +1 -1
  26. package/cjs-bundle/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
  27. package/cjs-bundle/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js +1 -1
  28. package/cjs-bundle/constants/bha.js +1 -1
  29. package/cjs-bundle/constants/bha.js.map +1 -1
  30. package/cjs-bundle/constants/drillstring.js +1 -1
  31. package/cjs-bundle/constants/drillstring.js.map +1 -1
  32. package/cjs-bundle/effects/index.js +1 -1
  33. package/cjs-bundle/effects/useGlobalOffsetWellsSync.js +2 -0
  34. package/cjs-bundle/effects/useGlobalOffsetWellsSync.js.map +1 -0
  35. package/cjs-bundle/utils/DrillstringUtils.js +1 -1
  36. package/cjs-bundle/utils/DrillstringUtils.js.map +1 -1
  37. package/cjs-bundle/utils/bha.js +1 -1
  38. package/cjs-bundle/utils/bha.js.map +1 -1
  39. package/cjs-bundle/utils/drillstring/conversion.js +1 -1
  40. package/cjs-bundle/utils/drillstring/conversion.js.map +1 -1
  41. package/cjs-bundle/utils/drillstring/schematic.js +1 -1
  42. package/cjs-bundle/utils/drillstring/schematic.js.map +1 -1
  43. package/cjs-bundle/utils/drillstring/validation.js +1 -1
  44. package/cjs-bundle/utils/drillstring/validation.js.map +1 -1
  45. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.d.ts.map +1 -1
  46. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  47. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  48. package/components/Drillstring/BHAComponentDetail/constants.d.ts.map +1 -1
  49. package/components/Drillstring/BHAComponentDetail/constants.js +1 -1
  50. package/components/Drillstring/BHAComponentDetail/constants.js.map +1 -1
  51. package/components/Drillstring/BHAComponentIcon.d.ts.map +1 -1
  52. package/components/Drillstring/BHAComponentIcon.js +1 -1
  53. package/components/Drillstring/BHAComponentIcon.js.map +1 -1
  54. package/components/Drillstring/BHAComponentsTable/components/Component.d.ts.map +1 -1
  55. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  56. package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  57. package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.d.ts.map +1 -1
  58. package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js +1 -1
  59. package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js.map +1 -1
  60. package/components/Drillstring/BHASchematic.d.ts.map +1 -1
  61. package/components/Drillstring/BHASchematic.js +1 -1
  62. package/components/Drillstring/BHASchematic.js.map +1 -1
  63. package/components/Drillstring/BHATileIcon.d.ts.map +1 -1
  64. package/components/Drillstring/BHATileIcon.js +1 -1
  65. package/components/Drillstring/BHATileIcon.js.map +1 -1
  66. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.d.ts +4 -1
  67. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.d.ts.map +1 -1
  68. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  69. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js.map +1 -1
  70. package/components/OffsetWellPickerV4/OffsetWellPickerV4.d.ts.map +1 -1
  71. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  72. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js.map +1 -1
  73. package/components/OffsetWellPickerV4/OffsetWellPickerV4.module.css.js +1 -1
  74. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.d.ts +2 -1
  75. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.d.ts.map +1 -1
  76. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js +1 -1
  77. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js.map +1 -1
  78. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.module.css.js +1 -1
  79. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
  80. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +1 -1
  81. package/components/OffsetWellPickerV4/effects/index.d.ts +0 -1
  82. package/componentsV2/AppCommonsProvider/AppCommonsContext.d.ts +1 -0
  83. package/componentsV2/AppCommonsProvider/AppCommonsContext.d.ts.map +1 -1
  84. package/componentsV2/AppCommonsProvider/utils.d.ts +2 -1
  85. package/componentsV2/AppCommonsProvider/utils.d.ts.map +1 -1
  86. package/componentsV2/AppCommonsProvider/utils.js +1 -1
  87. package/componentsV2/OffsetWellsButton/OffsetWellsButton.d.ts.map +1 -1
  88. package/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
  89. package/componentsV2/OffsetWellsButton/useOffsetWellsIcon.d.ts +1 -2
  90. package/componentsV2/OffsetWellsButton/useOffsetWellsIcon.d.ts.map +1 -1
  91. package/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js +1 -1
  92. package/constants/bha.d.ts +1 -0
  93. package/constants/bha.d.ts.map +1 -1
  94. package/constants/bha.js +1 -1
  95. package/constants/bha.js.map +1 -1
  96. package/constants/drillstring.d.ts.map +1 -1
  97. package/constants/drillstring.js +1 -1
  98. package/constants/drillstring.js.map +1 -1
  99. package/effects/index.d.ts +1 -0
  100. package/effects/index.d.ts.map +1 -1
  101. package/effects/index.js +1 -1
  102. package/effects/useGlobalOffsetWellsSync.d.ts +2 -0
  103. package/effects/useGlobalOffsetWellsSync.d.ts.map +1 -0
  104. package/effects/useGlobalOffsetWellsSync.js +2 -0
  105. package/effects/useGlobalOffsetWellsSync.js.map +1 -0
  106. package/package.json +1 -1
  107. package/utils/DrillstringUtils.d.ts.map +1 -1
  108. package/utils/DrillstringUtils.js +1 -1
  109. package/utils/DrillstringUtils.js.map +1 -1
  110. package/utils/bha.js +1 -1
  111. package/utils/bha.js.map +1 -1
  112. package/utils/drillstring/conversion.d.ts.map +1 -1
  113. package/utils/drillstring/conversion.js +1 -1
  114. package/utils/drillstring/conversion.js.map +1 -1
  115. package/utils/drillstring/schematic.js +1 -1
  116. package/utils/drillstring/schematic.js.map +1 -1
  117. package/utils/drillstring/validation.d.ts.map +1 -1
  118. package/utils/drillstring/validation.js +1 -1
  119. package/utils/drillstring/validation.js.map +1 -1
  120. package/cjs-bundle/components/OffsetWellPickerV4/effects/useGlobalOffsetWellsSync.js +0 -2
  121. package/cjs-bundle/components/OffsetWellPickerV4/effects/useGlobalOffsetWellsSync.js.map +0 -1
  122. package/components/OffsetWellPickerV4/effects/useGlobalOffsetWellsSync.d.ts +0 -2
  123. package/components/OffsetWellPickerV4/effects/useGlobalOffsetWellsSync.d.ts.map +0 -1
  124. package/components/OffsetWellPickerV4/effects/useGlobalOffsetWellsSync.js +0 -2
  125. package/components/OffsetWellPickerV4/effects/useGlobalOffsetWellsSync.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("@babel/runtime/helpers/defineProperty"),s=require("@babel/runtime/helpers/slicedToArray"),o=require("react"),n=require("classnames"),t=require("lodash"),r=require("@material-ui/core"),i=require("@material-ui/icons"),c=require("../AppContext.js"),p=require("../DevCenterRouterContext/DevCenterRouterContext.js");require("../DevCenterRouterContext/UniversalLink/UniversalLink.js"),require("@babel/runtime/helpers/objectWithoutProperties"),require("react-router");var a=require("react/jsx-runtime"),u=require("./effects/useAppSettings.js"),l=require("./effects/useAnnotationsList.js"),d=require("./effects/useAnnotationsData.js"),m=require("./effects/useAppMaximized.js"),q=require("./components/AppActions/AppActions.js"),j=require("./components/AppSettingsDialog/AppSettingsDialog.js");require("./components/AppSettingsDialog/components/RemoveAppButton.js"),require("./components/AppSettingsDialog/components/SettingsAccordion.js"),require("./components/AnnotationsButton/AnnotationsButton.js");var A=require("./components/NonPriorityMenus/NonPriorityMenus.js"),g=require("./components/FullscreenButton/FullscreenButton.js");require("./components/AppInfoMessage/AppInfoMessage.js");var v=require("./components/DevCenterAppView/DevCenterAppView.js"),C=require("./components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js");require("./components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js"),require("./components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js");var V=require("./components/RestoreAppSizeButton/index.js"),I=require("./utils.js"),S=require("./components/PriorityMenus/PriorityMenus.js"),h=require("./components/RollbarWrapper/RollbarWrapper.js"),b=require("./components/CommentsSwitch/CommentsSwitchProvider.js"),D=require("./components/CommentsSwitch/CommentsSwitchButton.js"),x=require("./DevCenterAppContainer.css.js"),M=require("../../../utils/mobileDetect.js"),P=require("../../Icons/AnnotationIcon.js"),f=require("../../Annotations/components/AnnotationsList/index.js");require("../../Annotations/components/LastAnnotation/index.js");var y=require("../../Annotations/AnnotationsContext.js");require("../../Toaster/Toaster.js");var L=require("../../Toaster/ToastContainer.js");require("../../../clients/subscriptions/constants.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("querystring"),require("uuid/v1"),require("../../../clients/subscriptions.v1.js"),require("../../../clients/jsonApi/index.js"),require("../../../clients/subscriptions/subscriptions-client.factory.js");var T=require("../../../effects/useDevCenterApp.js");require("../../../utils/index.js"),require("uuid"),require("jsona"),require("../../../constants/segment.js"),require("../../../utils/env.js");var k=require("../../../constants/devcenter.js");require("../../../constants/goals.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("../../../constants/corvaCompanyId.js"),require("../../GradientManager/configuration/constants.js"),require("../../StatusBadge/constants.js"),require("@babel/runtime/helpers/toConsumableArray"),require("lodash/set"),require("lodash/get"),require("lodash/unset"),require("moment"),require("../../../clients/api/apiCore.js"),require("../../../clients/constants.js"),require("../../../clients/sso/auth0.js"),require("../../../clients/sso/oauth2.js"),require("lodash/isEmpty"),require("lodash/sortBy"),require("../../../constants/streamSourceType.js"),require("./components/CommentsSwitch/CommentsSwitchContext.js");var B=require("../../../componentsV2/AppCommonsProvider/AppCommonsProvider.js");require("../../../componentsV2/AppCommonsProvider/AppCommonsContext.js");var F=require("../../../utils/devcenter.js"),H=require("../../HelpCenter/HelpCenterIcon.js");require("../../../componentsV2/Text/Text.js"),require("../../../componentsV2/Grid/Grid.js"),require("../../../componentsV2/Grid/Grid.scss.js"),require("../../../componentsV2/Header/Header.scss.js"),require("../../../componentsV2/Button/Button.js");var w=require("../../../componentsV2/ButtonIcon/ButtonIcon.js"),R=require("../../../componentsV2/Tooltip/Tooltip.js");require("../../../componentsV2/Popover/Popover.js"),require("../../../componentsV2/Radio/Radio.js"),require("../../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js"),require("../../../componentsV2/Checkbox/Checkbox.js"),require("../../../componentsV2/TextInput/TextInput.js"),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/Paper/Paper.js"),require("../../../componentsV2/ModalWindow/ModalWindow.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/DrilloutUnit.js"),require("../../../icons/customIcons/icons/FracFleet.js"),require("../../../icons/customIcons/icons/Global.js"),require("../../../icons/customIcons/icons/Program.js"),require("../../../icons/customIcons/icons/Rig.js"),require("../../../icons/customIcons/icons/Well.js"),require("../../../icons/customIcons/icons/Gap.js"),require("../../../icons/customIcons/icons/Pin.js"),require("../../../icons/customIcons/icons/CloseOneFilled.js"),require("../../../icons/customIcons/icons/AttentionFilled.js"),require("../../../icons/customIcons/icons/CheckOneFilled.js"),require("../../../icons/customIcons/icons/Archive.js"),require("../../../icons/customIcons/icons/ArchiveCancel.js"),require("../../../icons/customIcons/icons/Unarchive.js"),require("../../../icons/customIcons/icons/Archived.js"),require("../../../componentsV2/Modal/Modal.scss.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.constants.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("../../../componentsV2/Tag/Tag.js"),require("react-dropzone"),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/ButtonText/ButtonText.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("../../../componentsV2/AppHeader/AppHeader.constants.js"),require("../../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js"),require("../../../componentsV2/AppHeader/AppAssets/utils.js"),require("../../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js"),require("../../PadModeSelect/PadModeSelect.js"),require("../../../componentsV2/AppHeader/PadMode/PadMode.scss.js"),require("../../../types/shared/Completions.js"),require("../../PadModeSelect/types.js"),require("lodash/flatten"),require("lodash/partition"),require("../../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js"),require("../../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.constants.js"),require("../../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js"),require("../../../componentsV2/PadModeSelect/PadModeSelect.constants.js"),require("../../../componentsV2/PadModeSelect/PadModeSelect.scss.js"),require("../../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js"),require("../../../componentsV2/UniversalLink/UniversalLink.scss.js"),require("../../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js"),require("../../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js"),require("../../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js"),require("../../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js"),require("../../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js"),require("../../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js"),require("../../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js"),require("../../../componentsV2/AppDqPopover/AppDqPopover.scss.js"),require("../../AppIcon/AppIcon.js"),require("../../../utils/getSingleAsset.js"),require("../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js"),require("../../../componentsV2/AppHeader/V3/AssetSelector/constants.js"),require("../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js"),require("../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js"),require("../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js"),require("../../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js"),require("../../../componentsV2/AppContainer/headerCommon.scss.js"),require("../../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js"),require("../../../componentsV2/AppHeader/V3/constants.scss.js"),require("@babel/runtime/helpers/typeof"),require("../../../componentsV2/AppSizeProvider/AppSizeProvider.js"),require("../../../componentsV2/AppSettings/AppSettings.js"),require("../../../componentsV2/AppSettings/AppSettings.constants.js"),require("../../../componentsV2/AppSettings/AppSettingsPinningContext.js"),require("../../../componentsV2/AppHeader/V3/SettingsPopover/SettingsPopover.constants.js"),require("../../../componentsV2/AppHeader/V3/SettingsPopover/SettingsPopover.scss.js"),require("../../../componentsV2/AppHeader/V3/Actions/Actions.constants.js"),require("../../../componentsV2/AppHeader/V3/Actions/Actions.scss.js"),require("../../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js"),require("../../../componentsV2/AppHeader/AppHeader.scss.js"),require("../../../componentsV2/OffsetWellsButton/OffsetWellsButton.scss.js"),require("../../../componentsV2/Autocomplete/Autocomplete.scss.js"),require("../../../componentsV2/Menu/MenuItem/MenuItem.scss.js"),require("../../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js"),require("../../../componentsV2/WellArchivedMessage/WellArchivedMessage.js"),require("../../../componentsV2/DatePicker/CalendarControls/CalendarControls.scss.js"),require("../../../componentsV2/DatePicker/TimePicker/TimePicker.js"),require("../../../componentsV2/DatePicker/Input/Input.js"),require("../../../componentsV2/DatePicker/CalendarGrid/CalendarGrid.scss.js"),require("../../../componentsV2/DatePicker/DatePicker.scss.js"),require("../../../componentsV2/DragHandle/DragHandle.js");var O=require("../../../utils/notificationToasts.js");function E(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var z=E(e),_=E(s),N=E(n);function W(e,s){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);s&&(n=n.filter((function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),o.push.apply(o,n)}return o}function G(e){for(var s=1;s<arguments.length;s++){var o=null!=arguments[s]?arguments[s]:{};s%2?W(Object(o),!0).forEach((function(s){z.default(e,s,o[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):W(Object(o)).forEach((function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(o,s))}))}return e}var U=M.isNativeDetected||M.isMobileDetected,K="DevCenter_AppContainer";module.exports=function(e){var s,n,E,z,W,Q,Z,J,X,Y,$,ee,se,oe,ne,te,re,ie,ce,pe,ae=e.CLIAppComponent,ue=e.CLIAppSettings,le=e.app,de=e.appId,me=e.className,qe=e.coordinates,je=e.currentDashboardAppsLastAnnotations,Ae=e.currentUser,ge=e.devCenterRouter,ve=e.isActionsDisabled,Ce=e.isSettingsDialogHidden,Ve=e.layoutEnvironment,Ie=e.onAppContainerClick,Se=void 0===Ie?t.noop:Ie,he=e.onAppRemove,be=e.onReportBugClick,De=e.onCloneDashboard,xe=e.onHelpCenterClick,Me=e.onIsMaximizedChange,Pe=e.onSettingChange,fe=e.onSettingsChange,ye=e.openIntercom,Le=void 0===ye?t.noop:ye,Te=e.setIsFullscreenModalMode,ke=void 0===Te?t.noop:Te,Be=e.timestamp,Fe=e.updateCurrentDashboardAppLastAnnotation,He=e.dashboardMeta,we=o.useContext(c),Re=r.useTheme(),Oe=o.useState([]),Ee=_.default(Oe,2),ze=Ee[0],_e=Ee[1],Ne=o.useState([]),We=_.default(Ne,2),Ge=We[0],Ue=We[1],Ke=null!==(s=null==we?void 0:we[de||le.id])&&void 0!==s?s:{isLoading:!0},Qe=null===(n=le.package)||void 0===n||null===(E=n.manifest)||void 0===E?void 0:E.application,Ze=F.getAppSegment(le),Je=!(null==Qe||null===(z=Qe.ui)||void 0===z||!z.multi_rig),Xe=!(null==Qe||null===(W=Qe.ui)||void 0===W||!W.enable_comments),Ye=F.getAppName(le),$e=m({onIsMaximizedChange:Me,devCenterRouter:ge,appId:de}),es=$e.isMaximized,ss=$e.setIsMaximized,os=Be||F.getTimestampFromQuery(null===(Q=ge.location.query)||void 0===Q?void 0:Q.query),ns=le.id===k.DEV_CENTER_CLI_APP_ID,ts=ns&&U?G(G({},qe),{},{w:12}):qe,rs=I.getAppVersion(le),is=T({CLIAppComponent:ae,CLIAppSettings:ue,app:le,version:rs}),cs=is.isLoading,ps=is.AppSettings,as=is.AppComponent,us=u({setIsFullscreenModalMode:ke}),ls=us.isAppSettingsDialogOpened,ds=us.toggleAppSettingsDialog,ms=l(),qs=ms.isAnnotationsListOpened,js=ms.toggleAnnotationsList,As=cs||!Ae||!Je&&Ke.isLoading,gs=d({app:le,appData:Ke,currentDashboardAppsLastAnnotations:je}),vs=gs.appLastAnnotation,Cs=gs.assetCompanyId,Vs=gs.assetIdForAnnotation,Is=gs.isAppSupportsAnnotations,Ss=t.pickBy(t.pick(Ke,["well","rig","fracFleet","wells","interventionUnit"]),Boolean),hs=o.useMemo((function(){return null==Ge?void 0:Ge.map((function(e){return G(G({},e),{},{onClick:function(){var s;null===(s=e.onClick)||void 0===s||s.call(e),e.to&&ge.push(e.to)}})}))}),[Ge,ge]),bs=!(null==le||null===(Z=le.package)||void 0===Z||null===(J=Z.manifest)||void 0===J||null===(X=J.application)||void 0===X||null===(Y=X.ui)||void 0===Y||!Y.use_app_header_v3),Ds=!(null==(ie=ge)||null===(ce=ie.location)||void 0===ce||null===(pe=ce.pathname)||void 0===pe||!pe.startsWith("/home")),xs=o.useState(!1),Ms=_.default(xs,2),Ps=Ms[0],fs=Ms[1],ys=o.useCallback((function(){fs(!0)}));return a.jsx(h.RollbarWrapper,{companyId:null==le||null===($=le.app)||void 0===$?void 0:$.company_id,appKey:null==Qe?void 0:Qe.key,isCLIApp:ns,rollbarManifestConfig:null==le||null===(ee=le.package)||void 0===ee||null===(se=ee.manifest)||void 0===se||null===(oe=se.settings)||void 0===oe?void 0:oe.rollbar,version:rs,children:a.jsx(p.DevCenterRouterContext.Provider,{value:ge,children:a.jsx(C.DcFullscreenElemsCoordinatorProvider,{setIsFullscreenModalMode:ke,children:a.jsx(B.AppCommonsProvider,G(G({maximized:es,setMaximized:ss,appId:null==le||null===(ne=le.app)||void 0===ne?void 0:ne.id,app:le,appSettings:le.settings,onSettingChange:Pe,onSettingsChange:fe,appHeadersV3Enabled:bs,currentUser:Ae,appData:Ke,layoutEnvironment:Ve,appSettingsComponent:ps,dashboardMeta:He,toggleAnnotationsList:Is?js:void 0,onHelpCenterClick:xe,secondaryMenuItems:hs,onAppRemove:he,isInsideNewMobileApp:M.isInsideNewMobileApp,globalOffsetWells:null==He?void 0:He.globalOffsetWells},Ss),{},{children:a.jsx(b.CommentsSwitchProvider,{children:a.jsxs("div",{className:N.default("dc-app-container",M.isInsideNewMobileApp&&"dc-app-container--inside-new-mobile-app",Ds&&"dc-app-container--inside-home-page",me,es&&"dc-app-container__maximized",Re.isLightTheme&&"dc-app-container__light-theme",x.container),"data-testid":"".concat(K,"_").concat(Ye),onClick:function(){return Se()},children:[a.jsx(L.ToastContainer,{}),a.jsx("div",{className:x.containerContent,children:a.jsx(v.default,{AppComponent:as,app:le,appData:Ss,isAppLoading:cs,availability:I.getAppAvailability(le.availability,Ae.company.with_subscription),isCLIApp:ns,isLoading:As,isMultiRig:Je,layoutEnvironment:Ve,openIntercom:Le,segment:Ze,toggleAppSettingsDialog:ds,onError:ys,appProps:{coordinates:ts,currentUser:Ae,devCenterRouter:ge,onSettingChange:Pe,onSettingsChange:fe,segment:Ze,setIsFullscreenModalMode:ke,setIsMaximized:ss,setMainMenuItems:_e,setSecondaryMenuItems:Ue,toggleAppSettingsDialog:ds,appHeaderProps:G({app:le,appLastAnnotation:vs,appSettings:le.settings,coordinates:ts,currentUser:Ae,isMaximized:es,layoutEnvironment:Ve,onSettingChange:Pe,toggleAnnotationsList:js,updateCurrentDashboardAppLastAnnotation:Fe},Ss),isNative:M.isNativeDetected,layoutEnvironment:Ve,timestamp:os}})}),ls&&a.jsx(j.default,{AppSettingsComponent:ps,app:le,appData:Ke,appName:Ye,currentUser:Ae,isMultiRig:Je,isSettingsDialogHidden:Ce,layoutEnvironment:Ve,onAppRemove:he,onCloneDashboard:De,onSettingChange:Pe,onSettingsChange:fe,openIntercom:Le,rigId:null!==(te=null===(re=Ke.rig)||void 0===re?void 0:re.id)&&void 0!==te?te:null,timestamp:os,toggleAppSettingsDialog:ds}),qs&&a.jsx(y.AnnotationsProvider,{children:a.jsx(f,{appId:le.app.id,appSettings:le.settings,appTitle:Ye,assetCompanyId:Cs,assetId:Vs,currentUser:Ae,onClose:js,showSuccessNotification:O.showSuccessNotification})}),es&&!bs&&a.jsx(V,{setIsMaximized:ss}),!ve&&(!bs||As||Ps)&&a.jsxs(q,{children:[Xe&&a.jsx(D.CommentsSwitchButton,{currentUser:Ae}),Is&&a.jsx(R.Tooltip,{title:"Add Annotation",placement:"top",disabled:!!U,children:a.jsx(w.ButtonIcon,{size:"small",type:"tertiaryBg",onClick:js,testId:"".concat(K,"_addAnnotation"),children:a.jsx(P,{})})}),be&&!ns&&a.jsx(R.Tooltip,{title:"Report A Bug",placement:"top",disabled:!!U,children:a.jsx(w.ButtonIcon,{size:"small",type:"tertiaryBg",onClick:function(){return be()},children:a.jsx(i.BugReport,{})})}),a.jsx(R.Tooltip,{placement:"top",disabled:!!U||ns,title:"Help Center",children:a.jsx(w.ButtonIcon,{testId:"".concat(K,"_helpContent"),onClick:function(){return xe()},disabled:ns,size:"small",type:"tertiaryBg",children:a.jsx(H.HelpCenterIcon,{appId:le.app.id,helpContentUpdatedAt:le.help_content_updated_at})})}),!U||es||M.isInsideNewMobileApp?a.jsxs(a.Fragment,{children:[a.jsx(S,{menuItems:ze,devCenterRouter:ge,isMobileView:U}),a.jsx(A.NonPriorityMenus,{devCenterRouter:ge,isMaximized:es,isMobileView:U,menuItems:Ge,setIsFullscreenModalMode:ke,setIsMaximized:ss,toggleAppSettingsDialog:ds})]}):a.jsx(g,{setIsMaximized:ss})]})]})})}))})})})};
1
+ "use strict";var e=require("@babel/runtime/helpers/defineProperty"),s=require("@babel/runtime/helpers/slicedToArray"),o=require("react"),n=require("classnames"),t=require("lodash"),r=require("@material-ui/core"),i=require("@material-ui/icons"),c=require("../AppContext.js"),p=require("../DevCenterRouterContext/DevCenterRouterContext.js");require("../DevCenterRouterContext/UniversalLink/UniversalLink.js"),require("@babel/runtime/helpers/objectWithoutProperties"),require("react-router");var a=require("react/jsx-runtime"),u=require("./effects/useAppSettings.js"),l=require("./effects/useAnnotationsList.js"),d=require("./effects/useAnnotationsData.js"),m=require("./effects/useAppMaximized.js"),q=require("./components/AppActions/AppActions.js"),j=require("./components/AppSettingsDialog/AppSettingsDialog.js");require("./components/AppSettingsDialog/components/RemoveAppButton.js"),require("./components/AppSettingsDialog/components/SettingsAccordion.js"),require("./components/AnnotationsButton/AnnotationsButton.js");var A=require("./components/NonPriorityMenus/NonPriorityMenus.js"),g=require("./components/FullscreenButton/FullscreenButton.js");require("./components/AppInfoMessage/AppInfoMessage.js");var v=require("./components/DevCenterAppView/DevCenterAppView.js"),C=require("./components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js");require("./components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js"),require("./components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js");var V=require("./components/RestoreAppSizeButton/index.js"),I=require("./utils.js"),S=require("./components/PriorityMenus/PriorityMenus.js"),h=require("./components/RollbarWrapper/RollbarWrapper.js"),b=require("./components/CommentsSwitch/CommentsSwitchProvider.js"),D=require("./components/CommentsSwitch/CommentsSwitchButton.js"),x=require("./DevCenterAppContainer.css.js"),M=require("../../../utils/mobileDetect.js"),P=require("../../Icons/AnnotationIcon.js"),f=require("../../Annotations/components/AnnotationsList/index.js");require("../../Annotations/components/LastAnnotation/index.js");var y=require("../../Annotations/AnnotationsContext.js");require("../../Toaster/Toaster.js");var L=require("../../Toaster/ToastContainer.js");require("../../../clients/subscriptions/constants.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("querystring"),require("uuid/v1"),require("../../../clients/subscriptions.v1.js"),require("../../../clients/jsonApi/index.js"),require("../../../clients/subscriptions/subscriptions-client.factory.js");var T=require("../../../effects/useDevCenterApp.js");require("../../../utils/index.js"),require("uuid"),require("jsona"),require("../../../constants/segment.js"),require("../../../utils/env.js");var k=require("../../../constants/devcenter.js");require("../../../constants/goals.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("../../../constants/corvaCompanyId.js"),require("../../GradientManager/configuration/constants.js"),require("../../StatusBadge/constants.js"),require("@babel/runtime/helpers/toConsumableArray"),require("lodash/set"),require("lodash/get"),require("lodash/unset"),require("moment"),require("../../../clients/api/apiCore.js"),require("../../../clients/constants.js"),require("../../../clients/sso/auth0.js"),require("../../../clients/sso/oauth2.js"),require("lodash/isEmpty"),require("lodash/sortBy"),require("../../../constants/streamSourceType.js"),require("./components/CommentsSwitch/CommentsSwitchContext.js");var B=require("../../../componentsV2/AppCommonsProvider/AppCommonsProvider.js");require("../../../componentsV2/AppCommonsProvider/AppCommonsContext.js");var F=require("../../../utils/devcenter.js"),H=require("../../HelpCenter/HelpCenterIcon.js");require("../../../componentsV2/Text/Text.js"),require("../../../componentsV2/Grid/Grid.js"),require("../../../componentsV2/Grid/Grid.scss.js"),require("../../../componentsV2/Header/Header.scss.js"),require("../../../componentsV2/Button/Button.js");var w=require("../../../componentsV2/ButtonIcon/ButtonIcon.js"),R=require("../../../componentsV2/Tooltip/Tooltip.js");require("../../../componentsV2/Popover/Popover.js"),require("../../../componentsV2/Radio/Radio.js"),require("../../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js"),require("../../../componentsV2/Checkbox/Checkbox.js"),require("../../../componentsV2/TextInput/TextInput.js"),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/Paper/Paper.js"),require("../../../componentsV2/ModalWindow/ModalWindow.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/DrilloutUnit.js"),require("../../../icons/customIcons/icons/FracFleet.js"),require("../../../icons/customIcons/icons/Global.js"),require("../../../icons/customIcons/icons/Program.js"),require("../../../icons/customIcons/icons/Rig.js"),require("../../../icons/customIcons/icons/Well.js"),require("../../../icons/customIcons/icons/Gap.js"),require("../../../icons/customIcons/icons/Pin.js"),require("../../../icons/customIcons/icons/CloseOneFilled.js"),require("../../../icons/customIcons/icons/AttentionFilled.js"),require("../../../icons/customIcons/icons/CheckOneFilled.js"),require("../../../icons/customIcons/icons/Archive.js"),require("../../../icons/customIcons/icons/ArchiveCancel.js"),require("../../../icons/customIcons/icons/Unarchive.js"),require("../../../icons/customIcons/icons/Archived.js"),require("../../../componentsV2/Modal/Modal.scss.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.constants.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("../../../componentsV2/Tag/Tag.js"),require("react-dropzone"),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/ButtonText/ButtonText.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("../../../componentsV2/AppHeader/AppHeader.constants.js"),require("../../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js"),require("../../../componentsV2/AppHeader/AppAssets/utils.js"),require("../../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js"),require("../../PadModeSelect/PadModeSelect.js"),require("../../../componentsV2/AppHeader/PadMode/PadMode.scss.js"),require("../../../types/shared/Completions.js"),require("../../PadModeSelect/types.js"),require("lodash/flatten"),require("lodash/partition"),require("../../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js"),require("../../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.constants.js"),require("../../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js"),require("../../../componentsV2/PadModeSelect/PadModeSelect.constants.js"),require("../../../componentsV2/PadModeSelect/PadModeSelect.scss.js"),require("../../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js"),require("../../../componentsV2/UniversalLink/UniversalLink.scss.js"),require("../../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js"),require("../../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js"),require("../../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js"),require("../../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js"),require("../../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js"),require("../../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js"),require("../../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js"),require("../../../componentsV2/AppDqPopover/AppDqPopover.scss.js"),require("../../AppIcon/AppIcon.js"),require("../../../utils/getSingleAsset.js"),require("../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js"),require("../../../componentsV2/AppHeader/V3/AssetSelector/constants.js"),require("../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js"),require("../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js"),require("../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js"),require("../../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js"),require("../../../componentsV2/AppContainer/headerCommon.scss.js"),require("../../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js"),require("../../../componentsV2/AppHeader/V3/constants.scss.js"),require("@babel/runtime/helpers/typeof"),require("../../../componentsV2/AppSizeProvider/AppSizeProvider.js"),require("../../../componentsV2/AppSettings/AppSettings.js"),require("../../../componentsV2/AppSettings/AppSettings.constants.js"),require("../../../componentsV2/AppSettings/AppSettingsPinningContext.js"),require("../../../componentsV2/AppHeader/V3/SettingsPopover/SettingsPopover.constants.js"),require("../../../componentsV2/AppHeader/V3/SettingsPopover/SettingsPopover.scss.js"),require("../../../componentsV2/AppHeader/V3/Actions/Actions.constants.js"),require("../../../componentsV2/AppHeader/V3/Actions/Actions.scss.js"),require("../../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js"),require("../../../componentsV2/AppHeader/AppHeader.scss.js"),require("../../../componentsV2/OffsetWellsButton/OffsetWellsButton.scss.js"),require("../../../componentsV2/Autocomplete/Autocomplete.scss.js"),require("../../../componentsV2/Menu/MenuItem/MenuItem.scss.js"),require("../../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js"),require("../../../componentsV2/WellArchivedMessage/WellArchivedMessage.js"),require("../../../componentsV2/DatePicker/CalendarControls/CalendarControls.scss.js"),require("../../../componentsV2/DatePicker/TimePicker/TimePicker.js"),require("../../../componentsV2/DatePicker/Input/Input.js"),require("../../../componentsV2/DatePicker/CalendarGrid/CalendarGrid.scss.js"),require("../../../componentsV2/DatePicker/DatePicker.scss.js"),require("../../../componentsV2/DragHandle/DragHandle.js");var O=require("../../../utils/notificationToasts.js");function E(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var z=E(e),_=E(s),W=E(n);function N(e,s){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);s&&(n=n.filter((function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),o.push.apply(o,n)}return o}function G(e){for(var s=1;s<arguments.length;s++){var o=null!=arguments[s]?arguments[s]:{};s%2?N(Object(o),!0).forEach((function(s){z.default(e,s,o[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):N(Object(o)).forEach((function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(o,s))}))}return e}var U=M.isNativeDetected||M.isMobileDetected,K="DevCenter_AppContainer";module.exports=function(e){var s,n,E,z,N,Q,Z,J,X,Y,$,ee,se,oe,ne,te,re,ie,ce,pe,ae=e.CLIAppComponent,ue=e.CLIAppSettings,le=e.app,de=e.appId,me=e.className,qe=e.coordinates,je=e.currentDashboardAppsLastAnnotations,Ae=e.currentUser,ge=e.devCenterRouter,ve=e.isActionsDisabled,Ce=e.isSettingsDialogHidden,Ve=e.layoutEnvironment,Ie=e.onAppContainerClick,Se=void 0===Ie?t.noop:Ie,he=e.onAppRemove,be=e.onReportBugClick,De=e.onCloneDashboard,xe=e.onHelpCenterClick,Me=e.onIsMaximizedChange,Pe=e.onSettingChange,fe=e.onSettingsChange,ye=e.openIntercom,Le=void 0===ye?t.noop:ye,Te=e.setIsFullscreenModalMode,ke=void 0===Te?t.noop:Te,Be=e.timestamp,Fe=e.updateCurrentDashboardAppLastAnnotation,He=e.dashboardMeta,we=o.useContext(c),Re=r.useTheme(),Oe=o.useState([]),Ee=_.default(Oe,2),ze=Ee[0],_e=Ee[1],We=o.useState([]),Ne=_.default(We,2),Ge=Ne[0],Ue=Ne[1],Ke=null!==(s=null==we?void 0:we[de||le.id])&&void 0!==s?s:{isLoading:!0},Qe=null===(n=le.package)||void 0===n||null===(E=n.manifest)||void 0===E?void 0:E.application,Ze=F.getAppSegment(le),Je=!(null==Qe||null===(z=Qe.ui)||void 0===z||!z.multi_rig),Xe=!(null==Qe||null===(N=Qe.ui)||void 0===N||!N.enable_comments),Ye=F.getAppName(le),$e=m({onIsMaximizedChange:Me,devCenterRouter:ge,appId:de}),es=$e.isMaximized,ss=$e.setIsMaximized,os=Be||F.getTimestampFromQuery(null===(Q=ge.location.query)||void 0===Q?void 0:Q.query),ns=le.id===k.DEV_CENTER_CLI_APP_ID,ts=ns&&U?G(G({},qe),{},{w:12}):qe,rs=I.getAppVersion(le),is=T({CLIAppComponent:ae,CLIAppSettings:ue,app:le,version:rs}),cs=is.isLoading,ps=is.AppSettings,as=is.AppComponent,us=u({setIsFullscreenModalMode:ke}),ls=us.isAppSettingsDialogOpened,ds=us.toggleAppSettingsDialog,ms=l(),qs=ms.isAnnotationsListOpened,js=ms.toggleAnnotationsList,As=cs||!Ae||!Je&&Ke.isLoading,gs=d({app:le,appData:Ke,currentDashboardAppsLastAnnotations:je}),vs=gs.appLastAnnotation,Cs=gs.assetCompanyId,Vs=gs.assetIdForAnnotation,Is=gs.isAppSupportsAnnotations,Ss=t.pickBy(t.pick(Ke,["well","rig","fracFleet","wells","interventionUnit"]),Boolean),hs=o.useMemo((function(){return null==Ge?void 0:Ge.map((function(e){return G(G({},e),{},{onClick:function(){var s;null===(s=e.onClick)||void 0===s||s.call(e),e.to&&ge.push(e.to)}})}))}),[Ge,ge]),bs=!(null==le||null===(Z=le.package)||void 0===Z||null===(J=Z.manifest)||void 0===J||null===(X=J.application)||void 0===X||null===(Y=X.ui)||void 0===Y||!Y.use_app_header_v3),Ds=!(null==(ie=ge)||null===(ce=ie.location)||void 0===ce||null===(pe=ce.pathname)||void 0===pe||!pe.startsWith("/home")),xs=o.useState(!1),Ms=_.default(xs,2),Ps=Ms[0],fs=Ms[1],ys=o.useCallback((function(){fs(!0)}));return a.jsx(h.RollbarWrapper,{companyId:null==le||null===($=le.app)||void 0===$?void 0:$.company_id,appKey:null==Qe?void 0:Qe.key,isCLIApp:ns,rollbarManifestConfig:null==le||null===(ee=le.package)||void 0===ee||null===(se=ee.manifest)||void 0===se||null===(oe=se.settings)||void 0===oe?void 0:oe.rollbar,version:rs,children:a.jsx(p.DevCenterRouterContext.Provider,{value:ge,children:a.jsx(C.DcFullscreenElemsCoordinatorProvider,{setIsFullscreenModalMode:ke,children:a.jsx(B.AppCommonsProvider,G(G({maximized:es,setMaximized:ss,appId:null==le||null===(ne=le.app)||void 0===ne?void 0:ne.id,app:le,appSettings:le.settings,onSettingChange:Pe,onSettingsChange:fe,appHeadersV3Enabled:bs,currentUser:Ae,appData:Ke,layoutEnvironment:Ve,appSettingsComponent:ps,dashboardMeta:He,toggleAnnotationsList:Is?js:void 0,onHelpCenterClick:xe,secondaryMenuItems:hs,onAppRemove:he,isInsideNewMobileApp:M.isInsideNewMobileApp,globalOffsetWells:null==He?void 0:He.globalOffsetWells,globalOffsetWellsVersion:null==He?void 0:He.globalOffsetWellsVersion},Ss),{},{children:a.jsx(b.CommentsSwitchProvider,{children:a.jsxs("div",{className:W.default("dc-app-container",M.isInsideNewMobileApp&&"dc-app-container--inside-new-mobile-app",Ds&&"dc-app-container--inside-home-page",me,es&&"dc-app-container__maximized",Re.isLightTheme&&"dc-app-container__light-theme",x.container),"data-testid":"".concat(K,"_").concat(Ye),onClick:function(){return Se()},children:[a.jsx(L.ToastContainer,{}),a.jsx("div",{className:x.containerContent,children:a.jsx(v.default,{AppComponent:as,app:le,appData:Ss,isAppLoading:cs,availability:I.getAppAvailability(le.availability,Ae.company.with_subscription),isCLIApp:ns,isLoading:As,isMultiRig:Je,layoutEnvironment:Ve,openIntercom:Le,segment:Ze,toggleAppSettingsDialog:ds,onError:ys,appProps:{coordinates:ts,currentUser:Ae,devCenterRouter:ge,onSettingChange:Pe,onSettingsChange:fe,segment:Ze,setIsFullscreenModalMode:ke,setIsMaximized:ss,setMainMenuItems:_e,setSecondaryMenuItems:Ue,toggleAppSettingsDialog:ds,appHeaderProps:G({app:le,appLastAnnotation:vs,appSettings:le.settings,coordinates:ts,currentUser:Ae,isMaximized:es,layoutEnvironment:Ve,onSettingChange:Pe,toggleAnnotationsList:js,updateCurrentDashboardAppLastAnnotation:Fe},Ss),isNative:M.isNativeDetected,layoutEnvironment:Ve,timestamp:os}})}),ls&&a.jsx(j.default,{AppSettingsComponent:ps,app:le,appData:Ke,appName:Ye,currentUser:Ae,isMultiRig:Je,isSettingsDialogHidden:Ce,layoutEnvironment:Ve,onAppRemove:he,onCloneDashboard:De,onSettingChange:Pe,onSettingsChange:fe,openIntercom:Le,rigId:null!==(te=null===(re=Ke.rig)||void 0===re?void 0:re.id)&&void 0!==te?te:null,timestamp:os,toggleAppSettingsDialog:ds}),qs&&a.jsx(y.AnnotationsProvider,{children:a.jsx(f,{appId:le.app.id,appSettings:le.settings,appTitle:Ye,assetCompanyId:Cs,assetId:Vs,currentUser:Ae,onClose:js,showSuccessNotification:O.showSuccessNotification})}),es&&!bs&&a.jsx(V,{setIsMaximized:ss}),!ve&&(!bs||As||Ps)&&a.jsxs(q,{children:[Xe&&a.jsx(D.CommentsSwitchButton,{currentUser:Ae}),Is&&a.jsx(R.Tooltip,{title:"Add Annotation",placement:"top",disabled:!!U,children:a.jsx(w.ButtonIcon,{size:"small",type:"tertiaryBg",onClick:js,testId:"".concat(K,"_addAnnotation"),children:a.jsx(P,{})})}),be&&!ns&&a.jsx(R.Tooltip,{title:"Report A Bug",placement:"top",disabled:!!U,children:a.jsx(w.ButtonIcon,{size:"small",type:"tertiaryBg",onClick:function(){return be()},children:a.jsx(i.BugReport,{})})}),a.jsx(R.Tooltip,{placement:"top",disabled:!!U||ns,title:"Help Center",children:a.jsx(w.ButtonIcon,{testId:"".concat(K,"_helpContent"),onClick:function(){return xe()},disabled:ns,size:"small",type:"tertiaryBg",children:a.jsx(H.HelpCenterIcon,{appId:le.app.id,helpContentUpdatedAt:le.help_content_updated_at})})}),!U||es||M.isInsideNewMobileApp?a.jsxs(a.Fragment,{children:[a.jsx(S,{menuItems:ze,devCenterRouter:ge,isMobileView:U}),a.jsx(A.NonPriorityMenus,{devCenterRouter:ge,isMaximized:es,isMobileView:U,menuItems:Ge,setIsFullscreenModalMode:ke,setIsMaximized:ss,toggleAppSettingsDialog:ds})]}):a.jsx(g,{setIsMaximized:ss})]})]})})}))})})})};
2
2
  //# sourceMappingURL=DevCenterAppContainer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DevCenterAppContainer.js","sources":["../../../../../src/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js"],"sourcesContent":["/* eslint-disable react/prop-types */\nimport { useCallback, useContext, useMemo, useState } from 'react';\nimport classNames from 'classnames';\nimport { noop, pick, pickBy } from 'lodash';\nimport { useTheme } from '@material-ui/core';\nimport { BugReport as BugReportIcon } from '@material-ui/icons';\n\nimport AppContext from '../AppContext';\nimport { DevCenterRouterContext } from '../DevCenterRouterContext';\n\nimport { useAnnotationsData, useAnnotationsList, useAppMaximized, useAppSettings } from './effects';\nimport {\n AppActions,\n AppSettingsDialog,\n DcFullscreenElemsCoordinatorProvider,\n DevCenterAppView,\n FullscreenButton,\n NonPriorityMenus,\n} from './components';\nimport RestoreAppSizeButton from './components/RestoreAppSizeButton';\nimport { getAppAvailability, getAppVersion } from './utils';\nimport PriorityMenus from './components/PriorityMenus';\nimport { RollbarWrapper } from './components/RollbarWrapper/RollbarWrapper';\nimport { CommentsSwitchButton, CommentsSwitchProvider } from './components/CommentsSwitch';\n\nimport styles from './DevCenterAppContainer.css';\n\nimport { isInsideNewMobileApp, isMobileDetected, isNativeDetected } from '~/utils/mobileDetect';\nimport AnnotationIcon from '~components/Icons/AnnotationIcon';\nimport { AnnotationsList, AnnotationsProvider } from '~/components/Annotations';\nimport { ToastContainer } from '~/components/Toaster';\nimport { useDevCenterApp } from '~/effects';\nimport { DEV_CENTER_CLI_APP_ID } from '~/constants';\nimport { getAppName, getAppSegment, getTimestampFromQuery } from '~/utils/devcenter';\nimport { showSuccessNotification } from '~/utils';\nimport { HelpCenterIcon } from '~/components/HelpCenter';\nimport { ButtonIcon, Tooltip } from '~/componentsV2';\nimport { AppCommonsProvider } from '~/componentsV2/AppCommonsProvider';\n\nconst isMobileView = isNativeDetected || isMobileDetected;\nconst PAGE_NAME = 'DevCenter_AppContainer';\n\nconst isHomePage = router => !!router?.location?.pathname?.startsWith('/home');\n\nfunction DevCenterAppContainer({\n CLIAppComponent,\n CLIAppSettings,\n app,\n appId,\n className,\n coordinates,\n currentDashboardAppsLastAnnotations,\n currentUser,\n devCenterRouter,\n isActionsDisabled,\n isSettingsDialogHidden,\n layoutEnvironment,\n onAppContainerClick = noop,\n onAppRemove,\n onReportBugClick,\n onCloneDashboard,\n onHelpCenterClick,\n onIsMaximizedChange,\n onSettingChange,\n onSettingsChange,\n openIntercom = noop,\n setIsFullscreenModalMode = noop,\n timestamp,\n updateCurrentDashboardAppLastAnnotation,\n dashboardMeta,\n}) {\n const appsData = useContext(AppContext);\n const theme = useTheme();\n const [mainMenuItems, setMainMenuItems] = useState([]);\n const [secondaryMenuItems, setSecondaryMenuItems] = useState([]);\n const appData = appsData?.[appId || app.id] ?? {\n isLoading: true,\n };\n const application = app.package?.manifest?.application;\n const segment = getAppSegment(app);\n const isMultiRig = !!application?.ui?.multi_rig;\n const areCommentsEnabled = !!application?.ui?.enable_comments;\n const appName = getAppName(app);\n const { isMaximized, setIsMaximized } = useAppMaximized({\n onIsMaximizedChange,\n devCenterRouter,\n appId,\n });\n\n // Note: we need to pass timestamp directly for apps that are embedded in isolated apps\n const appTimestamp = timestamp || getTimestampFromQuery(devCenterRouter.location.query?.query);\n const isCLIApp = app.id === DEV_CENTER_CLI_APP_ID;\n const updatedCoordinates = isCLIApp && isMobileView ? { ...coordinates, w: 12 } : coordinates;\n const version = getAppVersion(app);\n\n const {\n isLoading: isAppLoading,\n AppSettings,\n AppComponent,\n } = useDevCenterApp({\n CLIAppComponent,\n CLIAppSettings,\n app,\n version,\n });\n\n const { isAppSettingsDialogOpened, toggleAppSettingsDialog } = useAppSettings({\n setIsFullscreenModalMode,\n });\n const { isAnnotationsListOpened, toggleAnnotationsList } = useAnnotationsList();\n\n const isLoading = isAppLoading || !currentUser || (!isMultiRig && appData.isLoading);\n\n const { appLastAnnotation, assetCompanyId, assetIdForAnnotation, isAppSupportsAnnotations } =\n useAnnotationsData({\n app,\n appData,\n currentDashboardAppsLastAnnotations,\n });\n\n const filteredAppData = pickBy(\n pick(appData, ['well', 'rig', 'fracFleet', 'wells', 'interventionUnit']),\n Boolean\n );\n\n const simplifiedSecondaryMenuItems = useMemo(\n () =>\n secondaryMenuItems?.map(item => ({\n ...item,\n onClick: () => {\n item.onClick?.();\n if (item.to) {\n devCenterRouter.push(item.to);\n }\n },\n })),\n [secondaryMenuItems, devCenterRouter]\n );\n\n const appHeadersV3Enabled = !!app?.package?.manifest?.application?.ui?.use_app_header_v3;\n const isInsideHomePage = isHomePage(devCenterRouter);\n\n const [hasAppCrashed, setHasAppCrashed] = useState(false);\n const onError = useCallback(() => {\n setHasAppCrashed(true);\n });\n\n // ⚠️⚠️⚠️ When adding/changing providers, also add them to/change /src/testing/AppTestWrapper\n return (\n <RollbarWrapper\n companyId={app?.app?.company_id}\n appKey={application?.key}\n isCLIApp={isCLIApp}\n rollbarManifestConfig={app?.package?.manifest?.settings?.rollbar}\n version={version}\n >\n <DevCenterRouterContext.Provider value={devCenterRouter}>\n <DcFullscreenElemsCoordinatorProvider setIsFullscreenModalMode={setIsFullscreenModalMode}>\n <AppCommonsProvider\n maximized={isMaximized}\n setMaximized={setIsMaximized}\n appId={app?.app?.id}\n app={app}\n appSettings={app.settings}\n onSettingChange={onSettingChange}\n onSettingsChange={onSettingsChange}\n appHeadersV3Enabled={appHeadersV3Enabled}\n currentUser={currentUser}\n appData={appData}\n layoutEnvironment={layoutEnvironment}\n appSettingsComponent={AppSettings}\n dashboardMeta={dashboardMeta}\n toggleAnnotationsList={isAppSupportsAnnotations ? toggleAnnotationsList : undefined}\n onHelpCenterClick={onHelpCenterClick}\n secondaryMenuItems={simplifiedSecondaryMenuItems}\n onAppRemove={onAppRemove}\n isInsideNewMobileApp={isInsideNewMobileApp}\n globalOffsetWells={dashboardMeta?.globalOffsetWells}\n {...filteredAppData}\n >\n <CommentsSwitchProvider>\n <div\n className={classNames(\n 'dc-app-container',\n isInsideNewMobileApp && 'dc-app-container--inside-new-mobile-app',\n isInsideHomePage && 'dc-app-container--inside-home-page',\n className,\n // This class is applied so that DC apps developers can style their content\n // when an app is in fullscreen\n isMaximized && 'dc-app-container__maximized',\n theme.isLightTheme && 'dc-app-container__light-theme',\n styles.container\n )}\n data-testid={`${PAGE_NAME}_${appName}`}\n // It's important to call it without native event because it's passed through iframe\n onClick={() => onAppContainerClick()}\n >\n <ToastContainer />\n <div className={styles.containerContent}>\n <DevCenterAppView\n AppComponent={AppComponent}\n app={app}\n appData={filteredAppData}\n isAppLoading={isAppLoading}\n availability={getAppAvailability(\n app.availability,\n currentUser.company.with_subscription\n )}\n isCLIApp={isCLIApp}\n isLoading={isLoading}\n isMultiRig={isMultiRig}\n layoutEnvironment={layoutEnvironment}\n openIntercom={openIntercom}\n segment={segment}\n toggleAppSettingsDialog={toggleAppSettingsDialog}\n onError={onError}\n appProps={{\n coordinates: updatedCoordinates,\n currentUser,\n devCenterRouter,\n onSettingChange,\n onSettingsChange,\n segment,\n setIsFullscreenModalMode,\n setIsMaximized,\n setMainMenuItems,\n setSecondaryMenuItems,\n toggleAppSettingsDialog,\n // TODO remove when componentsV2 AppHeader is used everywhere\n appHeaderProps: {\n app,\n appLastAnnotation,\n appSettings: app.settings,\n coordinates: updatedCoordinates,\n currentUser,\n isMaximized,\n layoutEnvironment,\n onSettingChange,\n toggleAnnotationsList,\n updateCurrentDashboardAppLastAnnotation,\n ...filteredAppData,\n },\n isNative: isNativeDetected,\n layoutEnvironment,\n timestamp: appTimestamp,\n }}\n />\n </div>\n {isAppSettingsDialogOpened && (\n <AppSettingsDialog\n AppSettingsComponent={AppSettings}\n app={app}\n appData={appData}\n appName={appName}\n currentUser={currentUser}\n isMultiRig={isMultiRig}\n isSettingsDialogHidden={isSettingsDialogHidden}\n layoutEnvironment={layoutEnvironment}\n onAppRemove={onAppRemove}\n onCloneDashboard={onCloneDashboard}\n onSettingChange={onSettingChange}\n onSettingsChange={onSettingsChange}\n openIntercom={openIntercom}\n rigId={appData.rig?.id ?? null}\n timestamp={appTimestamp}\n toggleAppSettingsDialog={toggleAppSettingsDialog}\n />\n )}\n {isAnnotationsListOpened && (\n <AnnotationsProvider>\n <AnnotationsList\n appId={app.app.id}\n appSettings={app.settings}\n appTitle={appName}\n assetCompanyId={assetCompanyId}\n assetId={assetIdForAnnotation}\n currentUser={currentUser}\n onClose={toggleAnnotationsList}\n showSuccessNotification={showSuccessNotification}\n />\n </AnnotationsProvider>\n )}\n {isMaximized && !appHeadersV3Enabled && (\n <RestoreAppSizeButton setIsMaximized={setIsMaximized} />\n )}\n\n {!isActionsDisabled && (!appHeadersV3Enabled || isLoading || hasAppCrashed) && (\n <AppActions>\n {areCommentsEnabled && <CommentsSwitchButton currentUser={currentUser} />}\n\n {isAppSupportsAnnotations && (\n <Tooltip title=\"Add Annotation\" placement=\"top\" disabled={!!isMobileView}>\n <ButtonIcon\n size=\"small\"\n type=\"tertiaryBg\"\n onClick={toggleAnnotationsList}\n testId={`${PAGE_NAME}_addAnnotation`}\n >\n <AnnotationIcon />\n </ButtonIcon>\n </Tooltip>\n )}\n\n {onReportBugClick && !isCLIApp && (\n <Tooltip title=\"Report A Bug\" placement=\"top\" disabled={!!isMobileView}>\n <ButtonIcon\n size=\"small\"\n type=\"tertiaryBg\"\n onClick={() => onReportBugClick()}\n >\n <BugReportIcon />\n </ButtonIcon>\n </Tooltip>\n )}\n\n <Tooltip\n placement=\"top\"\n disabled={!!isMobileView || isCLIApp}\n title=\"Help Center\"\n >\n <ButtonIcon\n testId={`${PAGE_NAME}_helpContent`}\n onClick={() => onHelpCenterClick()}\n disabled={isCLIApp}\n size=\"small\"\n type=\"tertiaryBg\"\n >\n <HelpCenterIcon\n appId={app.app.id}\n helpContentUpdatedAt={app.help_content_updated_at}\n />\n </ButtonIcon>\n </Tooltip>\n\n {isMobileView && !isMaximized && !isInsideNewMobileApp ? (\n <FullscreenButton setIsMaximized={setIsMaximized} />\n ) : (\n <>\n <PriorityMenus\n menuItems={mainMenuItems}\n devCenterRouter={devCenterRouter}\n isMobileView={isMobileView}\n />\n <NonPriorityMenus\n devCenterRouter={devCenterRouter}\n isMaximized={isMaximized}\n isMobileView={isMobileView}\n menuItems={secondaryMenuItems}\n setIsFullscreenModalMode={setIsFullscreenModalMode}\n setIsMaximized={setIsMaximized}\n toggleAppSettingsDialog={toggleAppSettingsDialog}\n />\n </>\n )}\n </AppActions>\n )}\n </div>\n </CommentsSwitchProvider>\n </AppCommonsProvider>\n </DcFullscreenElemsCoordinatorProvider>\n </DevCenterRouterContext.Provider>\n </RollbarWrapper>\n );\n}\n\nexport default DevCenterAppContainer;\n"],"names":["isMobileView","isNativeDetected","isMobileDetected","PAGE_NAME","_ref","_appsData","_app$package","_app$package$manifest","_application$ui","_application$ui2","_devCenterRouter$loca","_app$package2","_app$package2$manifes","_app$package2$manifes2","_app$package2$manifes3","_app$app","_app$package3","_app$package3$manifes","_app$package3$manifes2","_app$app2","_appData$rig$id","_appData$rig","router","_router$location","_router$location$path","CLIAppComponent","CLIAppSettings","app","appId","className","coordinates","currentDashboardAppsLastAnnotations","currentUser","devCenterRouter","isActionsDisabled","isSettingsDialogHidden","layoutEnvironment","_ref$onAppContainerCl","onAppContainerClick","noop","onAppRemove","onReportBugClick","onCloneDashboard","onHelpCenterClick","onIsMaximizedChange","onSettingChange","onSettingsChange","_ref$openIntercom","openIntercom","_ref$setIsFullscreenM","setIsFullscreenModalMode","timestamp","updateCurrentDashboardAppLastAnnotation","dashboardMeta","appsData","useContext","AppContext","theme","useTheme","useState","_useState2","_slicedToArray","_useState","mainMenuItems","setMainMenuItems","_useState4","_useState3","secondaryMenuItems","setSecondaryMenuItems","appData","id","isLoading","application","package","manifest","segment","getAppSegment","isMultiRig","ui","multi_rig","areCommentsEnabled","enable_comments","appName","getAppName","_useAppMaximized","useAppMaximized","isMaximized","setIsMaximized","appTimestamp","getTimestampFromQuery","location","query","isCLIApp","DEV_CENTER_CLI_APP_ID","updatedCoordinates","w","version","getAppVersion","_useDevCenterApp","useDevCenterApp","isAppLoading","AppSettings","AppComponent","_useAppSettings","useAppSettings","isAppSettingsDialogOpened","toggleAppSettingsDialog","_useAnnotationsList","useAnnotationsList","isAnnotationsListOpened","toggleAnnotationsList","_useAnnotationsData","useAnnotationsData","appLastAnnotation","assetCompanyId","assetIdForAnnotation","isAppSupportsAnnotations","filteredAppData","pickBy","pick","Boolean","simplifiedSecondaryMenuItems","useMemo","map","item","_objectSpread","onClick","_item$onClick","call","to","push","appHeadersV3Enabled","use_app_header_v3","isInsideHomePage","pathname","startsWith","_useState6","_useState5","hasAppCrashed","setHasAppCrashed","onError","useCallback","_jsx","RollbarWrapper","companyId","company_id","appKey","key","rollbarManifestConfig","settings","rollbar","children","DevCenterRouterContext","Provider","value","DcFullscreenElemsCoordinatorProvider","AppCommonsProvider","maximized","setMaximized","appSettings","appSettingsComponent","undefined","isInsideNewMobileApp","globalOffsetWells","CommentsSwitchProvider","_jsxs","jsxs","classNames","isLightTheme","styles","container","ToastContainer","jsx","containerContent","DevCenterAppView","availability","getAppAvailability","company","with_subscription","appProps","appHeaderProps","isNative","AppSettingsDialog","AppSettingsComponent","rigId","rig","AnnotationsProvider","AnnotationsList","appTitle","assetId","onClose","showSuccessNotification","RestoreAppSizeButton","AppActions","CommentsSwitchButton","Tooltip","title","placement","disabled","ButtonIcon","size","type","testId","concat","AnnotationIcon","BugReportIcon","BugReport","HelpCenterIcon","helpContentUpdatedAt","help_content_updated_at","_Fragment","PriorityMenus","menuItems","NonPriorityMenus","FullscreenButton"],"mappings":"kucAuCA,IAAMA,E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QACLC,KAAK,aACL3E,QAAS,WAAA,OAAMrF,IAAmB,EAAA8G,SAElCT,EAAAA,IAAC+D,EAAaC,UAAA,QAKpBhE,MAACqD,UAAO,CACNE,UAAU,MACVC,WAAYtM,GAAgB4F,GAC5BwG,MAAM,cAAa7C,SAEnBT,MAACyD,aAAU,CACTG,OAAM,GAAAC,OAAKxM,EAAwB,gBACnC2H,QAAS,WAAA,OAAMnF,IAAoB,EACnC2J,SAAU1G,GACV4G,KAAK,QACLC,KAAK,aAAYlD,SAEjBT,MAACiE,iBAAc,CACbnL,MAAOD,GAAIA,IAAI2C,GACf0I,qBAAsBrL,GAAIsL,+BAK/BjN,GAAiBsF,IAAgB4E,EAAoBA,qBAGpDG,EAAAC,KAAA4C,WAAA,CAAA3D,SAAA,CACET,MAACqE,EAAa,CACZC,UAAWrJ,GACX9B,gBAAiBA,GACjBjC,aAAcA,IAEhB8I,MAACuE,mBAAgB,CACfpL,gBAAiBA,GACjBqD,YAAaA,GACbtF,aAAcA,EACdoN,UAAWjJ,GACXjB,yBAA0BA,GAC1BqC,eAAgBA,GAChBmB,wBAAyBA,QAf7BoC,EAAA8B,IAAC0C,EAAgB,CAAC/H,eAAgBA,qBA4BxD"}
1
+ {"version":3,"file":"DevCenterAppContainer.js","sources":["../../../../../src/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js"],"sourcesContent":["/* eslint-disable react/prop-types */\nimport { useCallback, useContext, useMemo, useState } from 'react';\nimport classNames from 'classnames';\nimport { noop, pick, pickBy } from 'lodash';\nimport { useTheme } from '@material-ui/core';\nimport { BugReport as BugReportIcon } from '@material-ui/icons';\n\nimport AppContext from '../AppContext';\nimport { DevCenterRouterContext } from '../DevCenterRouterContext';\n\nimport { useAnnotationsData, useAnnotationsList, useAppMaximized, useAppSettings } from './effects';\nimport {\n AppActions,\n AppSettingsDialog,\n DcFullscreenElemsCoordinatorProvider,\n DevCenterAppView,\n FullscreenButton,\n NonPriorityMenus,\n} from './components';\nimport RestoreAppSizeButton from './components/RestoreAppSizeButton';\nimport { getAppAvailability, getAppVersion } from './utils';\nimport PriorityMenus from './components/PriorityMenus';\nimport { RollbarWrapper } from './components/RollbarWrapper/RollbarWrapper';\nimport { CommentsSwitchButton, CommentsSwitchProvider } from './components/CommentsSwitch';\n\nimport styles from './DevCenterAppContainer.css';\n\nimport { isInsideNewMobileApp, isMobileDetected, isNativeDetected } from '~/utils/mobileDetect';\nimport AnnotationIcon from '~components/Icons/AnnotationIcon';\nimport { AnnotationsList, AnnotationsProvider } from '~/components/Annotations';\nimport { ToastContainer } from '~/components/Toaster';\nimport { useDevCenterApp } from '~/effects';\nimport { DEV_CENTER_CLI_APP_ID } from '~/constants';\nimport { getAppName, getAppSegment, getTimestampFromQuery } from '~/utils/devcenter';\nimport { showSuccessNotification } from '~/utils';\nimport { HelpCenterIcon } from '~/components/HelpCenter';\nimport { ButtonIcon, Tooltip } from '~/componentsV2';\nimport { AppCommonsProvider } from '~/componentsV2/AppCommonsProvider';\n\nconst isMobileView = isNativeDetected || isMobileDetected;\nconst PAGE_NAME = 'DevCenter_AppContainer';\n\nconst isHomePage = router => !!router?.location?.pathname?.startsWith('/home');\n\nfunction DevCenterAppContainer({\n CLIAppComponent,\n CLIAppSettings,\n app,\n appId,\n className,\n coordinates,\n currentDashboardAppsLastAnnotations,\n currentUser,\n devCenterRouter,\n isActionsDisabled,\n isSettingsDialogHidden,\n layoutEnvironment,\n onAppContainerClick = noop,\n onAppRemove,\n onReportBugClick,\n onCloneDashboard,\n onHelpCenterClick,\n onIsMaximizedChange,\n onSettingChange,\n onSettingsChange,\n openIntercom = noop,\n setIsFullscreenModalMode = noop,\n timestamp,\n updateCurrentDashboardAppLastAnnotation,\n dashboardMeta,\n}) {\n const appsData = useContext(AppContext);\n const theme = useTheme();\n const [mainMenuItems, setMainMenuItems] = useState([]);\n const [secondaryMenuItems, setSecondaryMenuItems] = useState([]);\n const appData = appsData?.[appId || app.id] ?? {\n isLoading: true,\n };\n const application = app.package?.manifest?.application;\n const segment = getAppSegment(app);\n const isMultiRig = !!application?.ui?.multi_rig;\n const areCommentsEnabled = !!application?.ui?.enable_comments;\n const appName = getAppName(app);\n const { isMaximized, setIsMaximized } = useAppMaximized({\n onIsMaximizedChange,\n devCenterRouter,\n appId,\n });\n\n // Note: we need to pass timestamp directly for apps that are embedded in isolated apps\n const appTimestamp = timestamp || getTimestampFromQuery(devCenterRouter.location.query?.query);\n const isCLIApp = app.id === DEV_CENTER_CLI_APP_ID;\n const updatedCoordinates = isCLIApp && isMobileView ? { ...coordinates, w: 12 } : coordinates;\n const version = getAppVersion(app);\n\n const {\n isLoading: isAppLoading,\n AppSettings,\n AppComponent,\n } = useDevCenterApp({\n CLIAppComponent,\n CLIAppSettings,\n app,\n version,\n });\n\n const { isAppSettingsDialogOpened, toggleAppSettingsDialog } = useAppSettings({\n setIsFullscreenModalMode,\n });\n const { isAnnotationsListOpened, toggleAnnotationsList } = useAnnotationsList();\n\n const isLoading = isAppLoading || !currentUser || (!isMultiRig && appData.isLoading);\n\n const { appLastAnnotation, assetCompanyId, assetIdForAnnotation, isAppSupportsAnnotations } =\n useAnnotationsData({\n app,\n appData,\n currentDashboardAppsLastAnnotations,\n });\n\n const filteredAppData = pickBy(\n pick(appData, ['well', 'rig', 'fracFleet', 'wells', 'interventionUnit']),\n Boolean\n );\n\n const simplifiedSecondaryMenuItems = useMemo(\n () =>\n secondaryMenuItems?.map(item => ({\n ...item,\n onClick: () => {\n item.onClick?.();\n if (item.to) {\n devCenterRouter.push(item.to);\n }\n },\n })),\n [secondaryMenuItems, devCenterRouter]\n );\n\n const appHeadersV3Enabled = !!app?.package?.manifest?.application?.ui?.use_app_header_v3;\n const isInsideHomePage = isHomePage(devCenterRouter);\n\n const [hasAppCrashed, setHasAppCrashed] = useState(false);\n const onError = useCallback(() => {\n setHasAppCrashed(true);\n });\n\n // ⚠️⚠️⚠️ When adding/changing providers, also add them to/change /src/testing/AppTestWrapper\n return (\n <RollbarWrapper\n companyId={app?.app?.company_id}\n appKey={application?.key}\n isCLIApp={isCLIApp}\n rollbarManifestConfig={app?.package?.manifest?.settings?.rollbar}\n version={version}\n >\n <DevCenterRouterContext.Provider value={devCenterRouter}>\n <DcFullscreenElemsCoordinatorProvider setIsFullscreenModalMode={setIsFullscreenModalMode}>\n <AppCommonsProvider\n maximized={isMaximized}\n setMaximized={setIsMaximized}\n appId={app?.app?.id}\n app={app}\n appSettings={app.settings}\n onSettingChange={onSettingChange}\n onSettingsChange={onSettingsChange}\n appHeadersV3Enabled={appHeadersV3Enabled}\n currentUser={currentUser}\n appData={appData}\n layoutEnvironment={layoutEnvironment}\n appSettingsComponent={AppSettings}\n dashboardMeta={dashboardMeta}\n toggleAnnotationsList={isAppSupportsAnnotations ? toggleAnnotationsList : undefined}\n onHelpCenterClick={onHelpCenterClick}\n secondaryMenuItems={simplifiedSecondaryMenuItems}\n onAppRemove={onAppRemove}\n isInsideNewMobileApp={isInsideNewMobileApp}\n globalOffsetWells={dashboardMeta?.globalOffsetWells}\n globalOffsetWellsVersion={dashboardMeta?.globalOffsetWellsVersion}\n {...filteredAppData}\n >\n <CommentsSwitchProvider>\n <div\n className={classNames(\n 'dc-app-container',\n isInsideNewMobileApp && 'dc-app-container--inside-new-mobile-app',\n isInsideHomePage && 'dc-app-container--inside-home-page',\n className,\n // This class is applied so that DC apps developers can style their content\n // when an app is in fullscreen\n isMaximized && 'dc-app-container__maximized',\n theme.isLightTheme && 'dc-app-container__light-theme',\n styles.container\n )}\n data-testid={`${PAGE_NAME}_${appName}`}\n // It's important to call it without native event because it's passed through iframe\n onClick={() => onAppContainerClick()}\n >\n <ToastContainer />\n <div className={styles.containerContent}>\n <DevCenterAppView\n AppComponent={AppComponent}\n app={app}\n appData={filteredAppData}\n isAppLoading={isAppLoading}\n availability={getAppAvailability(\n app.availability,\n currentUser.company.with_subscription\n )}\n isCLIApp={isCLIApp}\n isLoading={isLoading}\n isMultiRig={isMultiRig}\n layoutEnvironment={layoutEnvironment}\n openIntercom={openIntercom}\n segment={segment}\n toggleAppSettingsDialog={toggleAppSettingsDialog}\n onError={onError}\n appProps={{\n coordinates: updatedCoordinates,\n currentUser,\n devCenterRouter,\n onSettingChange,\n onSettingsChange,\n segment,\n setIsFullscreenModalMode,\n setIsMaximized,\n setMainMenuItems,\n setSecondaryMenuItems,\n toggleAppSettingsDialog,\n // TODO remove when componentsV2 AppHeader is used everywhere\n appHeaderProps: {\n app,\n appLastAnnotation,\n appSettings: app.settings,\n coordinates: updatedCoordinates,\n currentUser,\n isMaximized,\n layoutEnvironment,\n onSettingChange,\n toggleAnnotationsList,\n updateCurrentDashboardAppLastAnnotation,\n ...filteredAppData,\n },\n isNative: isNativeDetected,\n layoutEnvironment,\n timestamp: appTimestamp,\n }}\n />\n </div>\n {isAppSettingsDialogOpened && (\n <AppSettingsDialog\n AppSettingsComponent={AppSettings}\n app={app}\n appData={appData}\n appName={appName}\n currentUser={currentUser}\n isMultiRig={isMultiRig}\n isSettingsDialogHidden={isSettingsDialogHidden}\n layoutEnvironment={layoutEnvironment}\n onAppRemove={onAppRemove}\n onCloneDashboard={onCloneDashboard}\n onSettingChange={onSettingChange}\n onSettingsChange={onSettingsChange}\n openIntercom={openIntercom}\n rigId={appData.rig?.id ?? null}\n timestamp={appTimestamp}\n toggleAppSettingsDialog={toggleAppSettingsDialog}\n />\n )}\n {isAnnotationsListOpened && (\n <AnnotationsProvider>\n <AnnotationsList\n appId={app.app.id}\n appSettings={app.settings}\n appTitle={appName}\n assetCompanyId={assetCompanyId}\n assetId={assetIdForAnnotation}\n currentUser={currentUser}\n onClose={toggleAnnotationsList}\n showSuccessNotification={showSuccessNotification}\n />\n </AnnotationsProvider>\n )}\n {isMaximized && !appHeadersV3Enabled && (\n <RestoreAppSizeButton setIsMaximized={setIsMaximized} />\n )}\n\n {!isActionsDisabled && (!appHeadersV3Enabled || isLoading || hasAppCrashed) && (\n <AppActions>\n {areCommentsEnabled && <CommentsSwitchButton currentUser={currentUser} />}\n\n {isAppSupportsAnnotations && (\n <Tooltip title=\"Add Annotation\" placement=\"top\" disabled={!!isMobileView}>\n <ButtonIcon\n size=\"small\"\n type=\"tertiaryBg\"\n onClick={toggleAnnotationsList}\n testId={`${PAGE_NAME}_addAnnotation`}\n >\n <AnnotationIcon />\n </ButtonIcon>\n </Tooltip>\n )}\n\n {onReportBugClick && !isCLIApp && (\n <Tooltip title=\"Report A Bug\" placement=\"top\" disabled={!!isMobileView}>\n <ButtonIcon\n size=\"small\"\n type=\"tertiaryBg\"\n onClick={() => onReportBugClick()}\n >\n <BugReportIcon />\n </ButtonIcon>\n </Tooltip>\n )}\n\n <Tooltip\n placement=\"top\"\n disabled={!!isMobileView || isCLIApp}\n title=\"Help Center\"\n >\n <ButtonIcon\n testId={`${PAGE_NAME}_helpContent`}\n onClick={() => onHelpCenterClick()}\n disabled={isCLIApp}\n size=\"small\"\n type=\"tertiaryBg\"\n >\n <HelpCenterIcon\n appId={app.app.id}\n helpContentUpdatedAt={app.help_content_updated_at}\n />\n </ButtonIcon>\n </Tooltip>\n\n {isMobileView && !isMaximized && !isInsideNewMobileApp ? (\n <FullscreenButton setIsMaximized={setIsMaximized} />\n ) : (\n <>\n <PriorityMenus\n menuItems={mainMenuItems}\n devCenterRouter={devCenterRouter}\n isMobileView={isMobileView}\n />\n <NonPriorityMenus\n devCenterRouter={devCenterRouter}\n isMaximized={isMaximized}\n isMobileView={isMobileView}\n menuItems={secondaryMenuItems}\n setIsFullscreenModalMode={setIsFullscreenModalMode}\n setIsMaximized={setIsMaximized}\n toggleAppSettingsDialog={toggleAppSettingsDialog}\n />\n </>\n )}\n </AppActions>\n )}\n </div>\n </CommentsSwitchProvider>\n </AppCommonsProvider>\n </DcFullscreenElemsCoordinatorProvider>\n </DevCenterRouterContext.Provider>\n </RollbarWrapper>\n );\n}\n\nexport default DevCenterAppContainer;\n"],"names":["isMobileView","isNativeDetected","isMobileDetected","PAGE_NAME","_ref","_appsData","_app$package","_app$package$manifest","_application$ui","_application$ui2","_devCenterRouter$loca","_app$package2","_app$package2$manifes","_app$package2$manifes2","_app$package2$manifes3","_app$app","_app$package3","_app$package3$manifes","_app$package3$manifes2","_app$app2","_appData$rig$id","_appData$rig","router","_router$location","_router$location$path","CLIAppComponent","CLIAppSettings","app","appId","className","coordinates","currentDashboardAppsLastAnnotations","currentUser","devCenterRouter","isActionsDisabled","isSettingsDialogHidden","layoutEnvironment","_ref$onAppContainerCl","onAppContainerClick","noop","onAppRemove","onReportBugClick","onCloneDashboard","onHelpCenterClick","onIsMaximizedChange","onSettingChange","onSettingsChange","_ref$openIntercom","openIntercom","_ref$setIsFullscreenM","setIsFullscreenModalMode","timestamp","updateCurrentDashboardAppLastAnnotation","dashboardMeta","appsData","useContext","AppContext","theme","useTheme","useState","_useState2","_slicedToArray","_useState","mainMenuItems","setMainMenuItems","_useState4","_useState3","secondaryMenuItems","setSecondaryMenuItems","appData","id","isLoading","application","package","manifest","segment","getAppSegment","isMultiRig","ui","multi_rig","areCommentsEnabled","enable_comments","appName","getAppName","_useAppMaximized","useAppMaximized","isMaximized","setIsMaximized","appTimestamp","getTimestampFromQuery","location","query","isCLIApp","DEV_CENTER_CLI_APP_ID","updatedCoordinates","w","version","getAppVersion","_useDevCenterApp","useDevCenterApp","isAppLoading","AppSettings","AppComponent","_useAppSettings","useAppSettings","isAppSettingsDialogOpened","toggleAppSettingsDialog","_useAnnotationsList","useAnnotationsList","isAnnotationsListOpened","toggleAnnotationsList","_useAnnotationsData","useAnnotationsData","appLastAnnotation","assetCompanyId","assetIdForAnnotation","isAppSupportsAnnotations","filteredAppData","pickBy","pick","Boolean","simplifiedSecondaryMenuItems","useMemo","map","item","_objectSpread","onClick","_item$onClick","call","to","push","appHeadersV3Enabled","use_app_header_v3","isInsideHomePage","pathname","startsWith","_useState6","_useState5","hasAppCrashed","setHasAppCrashed","onError","useCallback","_jsx","RollbarWrapper","companyId","company_id","appKey","key","rollbarManifestConfig","settings","rollbar","children","DevCenterRouterContext","Provider","value","DcFullscreenElemsCoordinatorProvider","AppCommonsProvider","maximized","setMaximized","appSettings","appSettingsComponent","undefined","isInsideNewMobileApp","globalOffsetWells","globalOffsetWellsVersion","CommentsSwitchProvider","_jsxs","jsxs","classNames","isLightTheme","styles","container","ToastContainer","jsx","containerContent","DevCenterAppView","availability","getAppAvailability","company","with_subscription","appProps","appHeaderProps","isNative","AppSettingsDialog","AppSettingsComponent","rigId","rig","AnnotationsProvider","AnnotationsList","appTitle","assetId","onClose","showSuccessNotification","RestoreAppSizeButton","AppActions","CommentsSwitchButton","Tooltip","title","placement","disabled","ButtonIcon","size","type","testId","concat","AnnotationIcon","BugReportIcon","BugReport","HelpCenterIcon","helpContentUpdatedAt","help_content_updated_at","_Fragment","PriorityMenus","menuItems","NonPriorityMenus","FullscreenButton"],"mappings":"kucAuCA,IAAMA,EAAeC,EAAgBA,kBAAIC,mBACnCC,EAAY,wCAIlB,SA0BGC,GAAA,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GA5BgBC,GAAMC,GAAAC,GAGvBC,KAAAA,gBACAC,KAAAA,eACAC,KAAAA,IACAC,KAAAA,MACAC,KAAAA,UACAC,KAAAA,YACAC,KAAAA,oCACAC,KAAAA,YACAC,KAAAA,gBACAC,KAAAA,kBACAC,KAAAA,uBACAC,KAAAA,kBAAiBC,GAAAjC,EACjBkC,oBAAAA,eAAsBC,EAAIA,KAAAF,GAC1BG,KAAAA,YACAC,KAAAA,iBACAC,KAAAA,iBACAC,KAAAA,kBACAC,KAAAA,oBACAC,KAAAA,gBACAC,KAAAA,iBAAgBC,GAAA3C,EAChB4C,aAAAA,eAAeT,EAAIA,KAAAQ,GAAAE,GAAA7C,EACnB8C,yBAAAA,eAA2BX,EAAIA,KAAAU,GAC/BE,KAAAA,UACAC,KAAAA,wCACAC,KAAAA,cAEMC,GAAWC,aAAWC,GACtBC,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GAChBmB,wBAAyBA,QAf7BoC,EAAA+B,IAAC0C,EAAgB,CAAChI,eAAgBA,qBA4BxD"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={FLOW_ACTIVATED:"flow_activated",OPEN_HOLE_ACTIVATED:"open_hole_activated",DEPTH_ACTIVATION:"depth_activation"},t=[{name:"Flow Activated",type:e.FLOW_ACTIVATED},{name:"Open Hole Activation",type:e.OPEN_HOLE_ACTIVATED},{name:"Depth Activation",type:e.DEPTH_ACTIVATION}];exports.BHA_ALTERNATIVE_FIELD_TYPES=[{name:"min_standard_flowrate",label:"Min",col_size:3,unit:"volumeFlowRate"},{name:"max_standard_flowrate",label:"Max",col_size:3,unit:"volumeFlowRate"}],exports.BHA_COMPONENT_TYPES=[{family:"ct",data:[{key:"ct-1",col_size:4,fields:["outer_diameter","inner_diameter","reel_diameter","component_length","length","linear_weight","weight","grade","material","class"]}]},{family:"dp",data:[{key:"dp-1",col_size:4,fields:["outer_diameter","inner_diameter","number_of_joints","component_length","length","linear_weight","weight","grade","outer_diameter_tooljoint","inner_diameter_tooljoint","length_tooljoint","connection_type","material","class"]}]},{family:"hwdp",data:[{key:"hwdp-1",col_size:4,fields:["sub_category","outer_diameter","inner_diameter","number_of_joints","component_length","length","linear_weight","weight","grade","outer_diameter_tooljoint","inner_diameter_tooljoint","length_tooljoint","connection_type","material","class"]}]},{family:"pdm",data:[{key:"pdm-1",col_size:4,fields:["outer_diameter","inner_diameter","rpg","length","linear_weight","weight","stages","number_rotor_lobes","number_stator_lobes","bend_range","max_weight_on_bit","make","bit_to_bend","name","model"]},{key:"pdm-standard-flow-range",col_size:4,sub_title:"Standard Flow Range",fields:["min_standard_flowrate","max_standard_flowrate"]},{key:"pdm-op-diff-pressure",col_size:3,fields:["max_operating_differential_pressure","torque_at_max_operating_differential_pressure"]},{key:"pdm-flow-loss",col_size:3,fields:["flow_loss_percentage"]},{key:"pdm-pressure-loss",col_size:3,sub_title:"Off Bottom Pressure Loss",tb_field:"off_bottom_pressure_loss",tb_head:["Flow Rate","Pressure Loss"],tb_body:[{field:"flow_rate",isNumber:!0},{field:"pressure_loss",isNumber:!0}]},{key:"pdm-stabilizer-1",col_size:2,sub_title:"Stabilizer",stablizer_fields:["name","outer_diameter","inner_diameter","length","linear_weight","weight","outer_diameter"]},{key:"pdm-stabilizer-2",col_size:2,stablizer_fields:["gauge_od","gauge_length","no_of_blades","stab_centerpoint_to_bit","blade_width","connection_type","material"]}]},{family:"bit",data:[{key:"bit-1",col_size:3,fields:["size","bit_type","length","weight"]},{key:"bit-nozzles",col_size:3,tb_field:"nozzle_sizes",tb_head:["# of this size","Nozzle Size"],tb_body:[{field:"count",isNumber:!1},{field:"size",isNumber:!0}]},{key:"bit-3",col_size:3,fields:["shank_od","make","serial_number","model","tfa","bit_reason_pulled"]}]},{family:"dc",data:[{key:"dc-1",col_size:4,fields:["sub_category","outer_diameter","inner_diameter","number_of_joints","component_length","length","linear_weight","weight","connection_type","material"]}]},{family:"stabilizer",data:[{key:"stabilizer-1",col_size:4,fields:["outer_diameter","inner_diameter","length","linear_weight","weight","gauge_od","gauge_length","no_of_blades","blade_width","connection_type","material"]}]},{family:"sub",data:[{key:"sub-1",col_size:4,fields:["outer_diameter","inner_diameter","length","linear_weight","weight","connection_type","material"]}]},{family:"mwd",data:[{key:"mwd-1",col_size:3,fields:["outer_diameter","inner_diameter","length","linear_weight","weight","connection_type","material","gamma_sensor_to_bit_distance","bit_to_survey_distance","vibration_source"]},{key:"mwd-pressure-loss",col_size:3,tb_field:"pressure_loss",sub_title:"Pressure Loss",tb_head:["Flow Rate","Pressure Loss"],tb_body:[{field:"flow_rate",isNumber:!0},{field:"pressure_loss",isNumber:!0}]}]},{family:"rss",data:[{key:"rss-1",col_size:4,fields:["outer_diameter","inner_diameter","length","linear_weight","weight","connection_type","material","vibration_source","flow_loss_percentage"]},{key:"rss-pressure-loss",col_size:4,tb_field:"pressure_loss",sub_title:"Pressure Loss",tb_head:["Flow Rate","Pressure Loss"],tb_body:[{field:"flow_rate",isNumber:!0},{field:"pressure_loss",isNumber:!0}]}]},{family:"ur",data:[{key:"ur-1",col_size:4,fields:["outer_diameter","inner_diameter","length","linear_weight","weight","connection_type","material","name"]},{key:"ur-nozzles",col_size:4,tb_field:"nozzle_sizes",tb_head:["# of this size","Nozzle Size"],tb_body:[{field:"count",isNumber:!1},{field:"size",isNumber:!0}]},{key:"ur-configuration-block",col_size:4,sub_title:"Under Reamer Configuration",sub_key:"ur-configuration-info",sub_fields:["ur_opened_od","gauge_length","no_of_blades","blade_width","ur_to_bit","flow_rate","tfa","ur_opened_depth"]}]},{family:"lwd",data:[{key:"lwd-1",col_size:4,fields:["outer_diameter","inner_diameter","length","linear_weight","weight","connection_type","material"]},{key:"lwd-measurements",col_size:4,tb_field:"lwd_measurements",tb_head:["Type","Name","Distance"],tb_body:[{field:"type",isNumber:!1},{field:"name",isNumber:!1},{field:"distance",isNumber:!0}]}]},{family:"agitator",data:[{key:"agitator-1",col_size:4,fields:["outer_diameter","inner_diameter","length","linear_weight","weight","connection_type","material"]},{key:"agitator-pressure-loss",col_size:4,tb_field:"pressure_loss",sub_title:"Pressure Loss",tb_head:["Flow Rate","Pressure Loss"],tb_body:[{field:"flow_rate",isNumber:!0},{field:"pressure_loss",isNumber:!0}]}]},{family:"jar",data:[{key:"jar-1",col_size:4,fields:["sub_category","outer_diameter","inner_diameter","length","linear_weight","weight","connection_type","material"]}]}],exports.BHA_GENERAL_FIELD_TYPES=[{name:"sub_category",label:"Sub Category"},{name:"outer_diameter",label:"OD",unit:"shortLength"},{name:"inner_diameter",label:"ID",unit:"shortLength"},{name:"reel_diameter",label:"Reel Diameter",unit:"shortLength"},{name:"number_of_joints",label:"# of Joints"},{name:"component_length",label:"Component Length",unit:"length"},{name:"size",label:"Size",unit:"shortLength"},{name:"bit_type",label:"Bit Type"},{name:"rpg",label:"RPG",unit:"revolutionPerVolume"},{name:"length",label:"Total Length",unit:"length"},{name:"linear_weight",label:"Adjusted Linear Weight",unit:"massPerLength"},{name:"weight",label:"Total Weight",unit:"mass"},{name:"grade",label:"Grade"},{name:"gauge_od",label:"Gauge OD",unit:"shortLength"},{name:"outer_diameter_tooljoint",label:"TJ OD"},{name:"inner_diameter_tooljoint",label:"TJ ID"},{name:"length_tooljoint",label:"TJ Length per Joint",unit:"length"},{name:"gauge_length",label:"Gauge Length",unit:"shortLength"},{name:"no_of_blades",label:"# of Blades"},{name:"blade_width",label:"Blade Width",unit:"shortLength"},{name:"connection_type",label:"Connection Type"},{name:"material",label:"Material",unit:"shortLength"},{name:"stages",label:"# of stages"},{name:"number_rotor_lobes",label:"# of rotor lobes"},{name:"number_stator_lobes",label:"# of stator lobes"},{name:"bend_range",label:"Bend Range"},{name:"max_weight_on_bit",label:"Max WOB",unit:"force"},{name:"shank_od",label:"Shank OD",unit:"shortLength"},{name:"make",label:"Make"},{name:"bit_to_bend",label:"Bit to Bend",unit:"length"},{name:"name",label:"Name"},{name:"gamma_sensor_to_bit_distance",label:"Gamma Sensor To Bit Distance",cond:"has_gamma_sensor",unit:"length"},{name:"bit_to_survey_distance",label:"Survey Sensor to Bit Distance",cond:"has_survey_sensor",unit:"length"},{name:"vibration_source",label:"Vibration Sensor"},{name:"class",label:"Class"},{name:"serial_number",label:"Serial Number"},{name:"model",label:"Model"},{name:"tfa",label:"TFA"},{name:"bit_reason_pulled",label:"Reason Pulled"},{name:"max_operating_differential_pressure",label:"Max Operating Diff Pressure",unit:"pressure",col_size:3},{name:"torque_at_max_operating_differential_pressure",label:"Torque at Max Operating Diff Pressure",unit:"torque",col_size:3},{name:"flow_loss_percentage",label:"% Actuator Flow Loss",col_size:5,family:"rss"},{name:"flow_loss_percentage",label:"% Leakage Flow Loss",col_size:3,family:"pdm"}],exports.BHA_STABILIZER_FIELD_TYPES=[{name:"name",label:"Name"},{name:"outer_diameter",label:"OD",unit:"shortLength"},{name:"inner_diameter",label:"ID"},{name:"length",label:"Total Length",unit:"length"},{name:"linear_weight",label:"Adjusted Linear Weight",unit:"massPerLength"},{name:"weight",label:"Total Weight",unit:"mass"},{name:"gauge_od",label:"Gauge OD",unit:"shortLength"},{name:"gauge_length",label:"Gauge Length",unit:"shortLength"},{name:"no_of_blades",label:"# of Blades"},{name:"stab_centerpoint_to_bit",label:"Stab Centerpoint To Bit",unit:"length"},{name:"blade_width",label:"Blade Width",unit:"shortLength"},{name:"connection_type",label:"Connection Type"},{name:"material",label:"Material",col_size:2}],exports.BHA_TABLE_FIELD_TYPES=[{name:"ur_opened_od",label:"Max OD (Opened)",unit:"shortLength"},{name:"gauge_length",label:"Gauge Length",unit:"shortLength"},{name:"no_of_blades",label:"# of Blades"},{name:"blade_width",label:"Blade Width",unit:"shortLength"},{name:"ur_to_bit",label:"Reamer to Bit Distance",unit:"shortLength"},{name:"flow_rate",label:"Activation Flow Rate",unit_from_segment:!0},{name:"tfa",label:"TFA"}],exports.FLOW_RATE_UNIT={drilling:{unitType:"volumeFlowRate",unit:"gal/min"},completion:{unitType:"oilFlowRate",unit:"bbl/min"}},exports.UR_ACTIVATION_LOGIC_KEYS=e,exports.UR_ACTIVATION_LOGIC_TYPES=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={FLOW_ACTIVATED:"flow_activated",OPEN_HOLE_ACTIVATED:"open_hole_activated",DEPTH_ACTIVATION:"depth_activation"},t=[{name:"Flow Activated",type:e.FLOW_ACTIVATED},{name:"Open Hole Activation",type:e.OPEN_HOLE_ACTIVATED},{name:"Depth Activation",type:e.DEPTH_ACTIVATION}];exports.BHA_ALTERNATIVE_FIELD_TYPES=[{name:"min_standard_flowrate",label:"Min",col_size:3,unit:"volumeFlowRate"},{name:"max_standard_flowrate",label:"Max",col_size:3,unit:"volumeFlowRate"}],exports.BHA_COMPONENT_TYPES=[{family:"ct",data:[{key:"ct-1",col_size:4,fields:["outer_diameter","inner_diameter","reel_diameter","component_length","length","linear_weight","weight","grade","material","class"]}]},{family:"dp",data:[{key:"dp-1",col_size:4,fields:["outer_diameter","inner_diameter","number_of_joints","component_length","length","linear_weight","weight","grade","outer_diameter_tooljoint","inner_diameter_tooljoint","length_tooljoint","connection_type","material","class"]}]},{family:"hwdp",data:[{key:"hwdp-1",col_size:4,fields:["sub_category","outer_diameter","inner_diameter","number_of_joints","component_length","length","linear_weight","weight","grade","outer_diameter_tooljoint","inner_diameter_tooljoint","length_tooljoint","connection_type","material","class"]}]},{family:"pdm",data:[{key:"pdm-1",col_size:4,fields:["outer_diameter","inner_diameter","rpg","length","linear_weight","weight","stages","number_rotor_lobes","number_stator_lobes","bend_range","max_weight_on_bit","make","bit_to_bend","name","model"]},{key:"pdm-standard-flow-range",col_size:4,sub_title:"Standard Flow Range",fields:["min_standard_flowrate","max_standard_flowrate"]},{key:"pdm-op-diff-pressure",col_size:3,fields:["max_operating_differential_pressure","torque_at_max_operating_differential_pressure"]},{key:"pdm-flow-loss",col_size:3,fields:["flow_loss_percentage"]},{key:"pdm-pressure-loss",col_size:3,sub_title:"Off Bottom Pressure Loss",tb_field:"off_bottom_pressure_loss",tb_head:["Flow Rate","Pressure Loss"],tb_body:[{field:"flow_rate",isNumber:!0},{field:"pressure_loss",isNumber:!0}]},{key:"pdm-stabilizer-1",col_size:2,sub_title:"Stabilizer",stablizer_fields:["name","outer_diameter","inner_diameter","length","linear_weight","weight","outer_diameter"]},{key:"pdm-stabilizer-2",col_size:2,stablizer_fields:["gauge_od","gauge_length","no_of_blades","stab_centerpoint_to_bit","blade_width","connection_type","material"]}]},{family:"bit",data:[{key:"bit-1",col_size:3,fields:["size","bit_type","length","weight"]},{key:"bit-nozzles",col_size:3,tb_field:"nozzle_sizes",tb_head:["# of this size","Nozzle Size"],tb_body:[{field:"count",isNumber:!1},{field:"size",isNumber:!0}]},{key:"bit-3",col_size:3,fields:["shank_od","make","serial_number","model","tfa","bit_reason_pulled"]}]},{family:"dc",data:[{key:"dc-1",col_size:4,fields:["sub_category","outer_diameter","inner_diameter","number_of_joints","component_length","length","linear_weight","weight","connection_type","material"]}]},{family:"stabilizer",data:[{key:"stabilizer-1",col_size:4,fields:["outer_diameter","inner_diameter","length","linear_weight","weight","gauge_od","gauge_length","no_of_blades","blade_width","connection_type","material"]}]},{family:"ags",data:[{key:"ags-1",col_size:4,fields:["outer_diameter","inner_diameter","length","linear_weight","weight","gauge_od","gauge_length","no_of_blades","blade_width","connection_type","material"]}]},{family:"sub",data:[{key:"sub-1",col_size:4,fields:["outer_diameter","inner_diameter","length","linear_weight","weight","connection_type","material"]}]},{family:"mwd",data:[{key:"mwd-1",col_size:3,fields:["outer_diameter","inner_diameter","length","linear_weight","weight","connection_type","material","gamma_sensor_to_bit_distance","bit_to_survey_distance","vibration_source"]},{key:"mwd-pressure-loss",col_size:3,tb_field:"pressure_loss",sub_title:"Pressure Loss",tb_head:["Flow Rate","Pressure Loss"],tb_body:[{field:"flow_rate",isNumber:!0},{field:"pressure_loss",isNumber:!0}]}]},{family:"rss",data:[{key:"rss-1",col_size:4,fields:["outer_diameter","inner_diameter","length","linear_weight","weight","connection_type","material","vibration_source","flow_loss_percentage"]},{key:"rss-pressure-loss",col_size:4,tb_field:"pressure_loss",sub_title:"Pressure Loss",tb_head:["Flow Rate","Pressure Loss"],tb_body:[{field:"flow_rate",isNumber:!0},{field:"pressure_loss",isNumber:!0}]}]},{family:"ur",data:[{key:"ur-1",col_size:4,fields:["outer_diameter","inner_diameter","length","linear_weight","weight","connection_type","material","name"]},{key:"ur-nozzles",col_size:4,tb_field:"nozzle_sizes",tb_head:["# of this size","Nozzle Size"],tb_body:[{field:"count",isNumber:!1},{field:"size",isNumber:!0}]},{key:"ur-configuration-block",col_size:4,sub_title:"Under Reamer Configuration",sub_key:"ur-configuration-info",sub_fields:["ur_opened_od","gauge_length","no_of_blades","blade_width","ur_to_bit","flow_rate","tfa","ur_opened_depth"]}]},{family:"lwd",data:[{key:"lwd-1",col_size:4,fields:["outer_diameter","inner_diameter","length","linear_weight","weight","connection_type","material"]},{key:"lwd-measurements",col_size:4,tb_field:"lwd_measurements",tb_head:["Type","Name","Distance"],tb_body:[{field:"type",isNumber:!1},{field:"name",isNumber:!1},{field:"distance",isNumber:!0}]}]},{family:"agitator",data:[{key:"agitator-1",col_size:4,fields:["outer_diameter","inner_diameter","length","linear_weight","weight","connection_type","material"]},{key:"agitator-pressure-loss",col_size:4,tb_field:"pressure_loss",sub_title:"Pressure Loss",tb_head:["Flow Rate","Pressure Loss"],tb_body:[{field:"flow_rate",isNumber:!0},{field:"pressure_loss",isNumber:!0}]}]},{family:"jar",data:[{key:"jar-1",col_size:4,fields:["sub_category","outer_diameter","inner_diameter","length","linear_weight","weight","connection_type","material"]}]}],exports.BHA_GENERAL_FIELD_TYPES=[{name:"sub_category",label:"Sub Category"},{name:"outer_diameter",label:"OD",unit:"shortLength"},{name:"inner_diameter",label:"ID",unit:"shortLength"},{name:"reel_diameter",label:"Reel Diameter",unit:"shortLength"},{name:"number_of_joints",label:"# of Joints"},{name:"component_length",label:"Component Length",unit:"length"},{name:"size",label:"Size",unit:"shortLength"},{name:"bit_type",label:"Bit Type"},{name:"rpg",label:"RPG",unit:"revolutionPerVolume"},{name:"length",label:"Total Length",unit:"length"},{name:"linear_weight",label:"Adjusted Linear Weight",unit:"massPerLength"},{name:"weight",label:"Total Weight",unit:"mass"},{name:"grade",label:"Grade"},{name:"gauge_od",label:"Gauge OD",unit:"shortLength"},{name:"outer_diameter_tooljoint",label:"TJ OD"},{name:"inner_diameter_tooljoint",label:"TJ ID"},{name:"length_tooljoint",label:"TJ Length per Joint",unit:"length"},{name:"gauge_length",label:"Gauge Length",unit:"shortLength"},{name:"no_of_blades",label:"# of Blades"},{name:"blade_width",label:"Blade Width",unit:"shortLength"},{name:"connection_type",label:"Connection Type"},{name:"material",label:"Material",unit:"shortLength"},{name:"stages",label:"# of stages"},{name:"number_rotor_lobes",label:"# of rotor lobes"},{name:"number_stator_lobes",label:"# of stator lobes"},{name:"bend_range",label:"Bend Range"},{name:"max_weight_on_bit",label:"Max WOB",unit:"force"},{name:"shank_od",label:"Shank OD",unit:"shortLength"},{name:"make",label:"Make"},{name:"bit_to_bend",label:"Bit to Bend",unit:"length"},{name:"name",label:"Name"},{name:"gamma_sensor_to_bit_distance",label:"Gamma Sensor To Bit Distance",cond:"has_gamma_sensor",unit:"length"},{name:"bit_to_survey_distance",label:"Survey Sensor to Bit Distance",cond:"has_survey_sensor",unit:"length"},{name:"vibration_source",label:"Vibration Sensor"},{name:"class",label:"Class"},{name:"serial_number",label:"Serial Number"},{name:"model",label:"Model"},{name:"tfa",label:"TFA"},{name:"bit_reason_pulled",label:"Reason Pulled"},{name:"max_operating_differential_pressure",label:"Max Operating Diff Pressure",unit:"pressure",col_size:3},{name:"torque_at_max_operating_differential_pressure",label:"Torque at Max Operating Diff Pressure",unit:"torque",col_size:3},{name:"flow_loss_percentage",label:"% Actuator Flow Loss",col_size:5,family:"rss"},{name:"flow_loss_percentage",label:"% Leakage Flow Loss",col_size:3,family:"pdm"}],exports.BHA_STABILIZER_FIELD_TYPES=[{name:"name",label:"Name"},{name:"outer_diameter",label:"OD",unit:"shortLength"},{name:"inner_diameter",label:"ID"},{name:"length",label:"Total Length",unit:"length"},{name:"linear_weight",label:"Adjusted Linear Weight",unit:"massPerLength"},{name:"weight",label:"Total Weight",unit:"mass"},{name:"gauge_od",label:"Gauge OD",unit:"shortLength"},{name:"gauge_length",label:"Gauge Length",unit:"shortLength"},{name:"no_of_blades",label:"# of Blades"},{name:"stab_centerpoint_to_bit",label:"Stab Centerpoint To Bit",unit:"length"},{name:"blade_width",label:"Blade Width",unit:"shortLength"},{name:"connection_type",label:"Connection Type"},{name:"material",label:"Material",col_size:2}],exports.BHA_TABLE_FIELD_TYPES=[{name:"ur_opened_od",label:"Max OD (Opened)",unit:"shortLength"},{name:"gauge_length",label:"Gauge Length",unit:"shortLength"},{name:"no_of_blades",label:"# of Blades"},{name:"blade_width",label:"Blade Width",unit:"shortLength"},{name:"ur_to_bit",label:"Reamer to Bit Distance",unit:"shortLength"},{name:"flow_rate",label:"Activation Flow Rate",unit_from_segment:!0},{name:"tfa",label:"TFA"}],exports.FLOW_RATE_UNIT={drilling:{unitType:"volumeFlowRate",unit:"gal/min"},completion:{unitType:"oilFlowRate",unit:"bbl/min"}},exports.UR_ACTIVATION_LOGIC_KEYS=e,exports.UR_ACTIVATION_LOGIC_TYPES=t;
2
2
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../../src/components/Drillstring/BHAComponentDetail/constants.js"],"sourcesContent":["export const UR_ACTIVATION_LOGIC_KEYS = {\n FLOW_ACTIVATED: 'flow_activated',\n OPEN_HOLE_ACTIVATED: 'open_hole_activated',\n DEPTH_ACTIVATION: 'depth_activation',\n};\n\nexport const UR_ACTIVATION_LOGIC_TYPES = [\n { name: 'Flow Activated', type: UR_ACTIVATION_LOGIC_KEYS.FLOW_ACTIVATED },\n { name: 'Open Hole Activation', type: UR_ACTIVATION_LOGIC_KEYS.OPEN_HOLE_ACTIVATED },\n { name: 'Depth Activation', type: UR_ACTIVATION_LOGIC_KEYS.DEPTH_ACTIVATION },\n];\n\nexport const FLOW_RATE_UNIT = {\n drilling: {\n unitType: 'volumeFlowRate',\n unit: 'gal/min',\n },\n completion: {\n unitType: 'oilFlowRate',\n unit: 'bbl/min',\n },\n};\n\nexport const BHA_COMPONENT_TYPES = [\n {\n family: 'ct',\n data: [\n {\n key: 'ct-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'reel_diameter',\n 'component_length',\n 'length',\n 'linear_weight',\n 'weight',\n 'grade',\n 'material',\n 'class',\n ],\n },\n ],\n },\n {\n family: 'dp',\n data: [\n {\n key: 'dp-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'number_of_joints',\n 'component_length',\n 'length',\n 'linear_weight',\n 'weight',\n 'grade',\n 'outer_diameter_tooljoint',\n 'inner_diameter_tooljoint',\n 'length_tooljoint',\n 'connection_type',\n 'material',\n 'class',\n ],\n },\n ],\n },\n {\n family: 'hwdp',\n data: [\n {\n key: 'hwdp-1',\n col_size: 4,\n fields: [\n 'sub_category',\n 'outer_diameter',\n 'inner_diameter',\n 'number_of_joints',\n 'component_length',\n 'length',\n 'linear_weight',\n 'weight',\n 'grade',\n 'outer_diameter_tooljoint',\n 'inner_diameter_tooljoint',\n 'length_tooljoint',\n 'connection_type',\n 'material',\n 'class',\n ],\n },\n ],\n },\n {\n family: 'pdm',\n data: [\n {\n key: 'pdm-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'rpg',\n 'length',\n 'linear_weight',\n 'weight',\n 'stages',\n 'number_rotor_lobes',\n 'number_stator_lobes',\n 'bend_range',\n 'max_weight_on_bit',\n 'make',\n 'bit_to_bend',\n 'name',\n 'model',\n ],\n },\n {\n key: 'pdm-standard-flow-range',\n col_size: 4,\n sub_title: 'Standard Flow Range',\n fields: ['min_standard_flowrate', 'max_standard_flowrate'],\n },\n {\n key: 'pdm-op-diff-pressure',\n col_size: 3,\n fields: [\n 'max_operating_differential_pressure',\n 'torque_at_max_operating_differential_pressure',\n ],\n },\n {\n key: 'pdm-flow-loss',\n col_size: 3,\n fields: ['flow_loss_percentage'],\n },\n {\n key: 'pdm-pressure-loss',\n col_size: 3,\n sub_title: 'Off Bottom Pressure Loss',\n tb_field: 'off_bottom_pressure_loss',\n tb_head: ['Flow Rate', 'Pressure Loss'],\n tb_body: [\n { field: 'flow_rate', isNumber: true },\n { field: 'pressure_loss', isNumber: true },\n ],\n },\n {\n key: 'pdm-stabilizer-1',\n col_size: 2,\n sub_title: 'Stabilizer',\n stablizer_fields: [\n 'name',\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'outer_diameter',\n ],\n },\n {\n key: 'pdm-stabilizer-2',\n col_size: 2,\n stablizer_fields: [\n 'gauge_od',\n 'gauge_length',\n 'no_of_blades',\n 'stab_centerpoint_to_bit',\n 'blade_width',\n 'connection_type',\n 'material',\n ],\n },\n ],\n },\n {\n family: 'bit',\n data: [\n {\n key: 'bit-1',\n col_size: 3,\n fields: ['size', 'bit_type', 'length', 'weight'],\n },\n {\n key: 'bit-nozzles',\n col_size: 3,\n tb_field: 'nozzle_sizes',\n tb_head: ['# of this size', 'Nozzle Size'],\n tb_body: [\n { field: 'count', isNumber: false },\n { field: 'size', isNumber: true },\n ],\n },\n {\n key: 'bit-3',\n col_size: 3,\n fields: ['shank_od', 'make', 'serial_number', 'model', 'tfa', 'bit_reason_pulled'],\n },\n ],\n },\n {\n family: 'dc',\n data: [\n {\n key: 'dc-1',\n col_size: 4,\n fields: [\n 'sub_category',\n 'outer_diameter',\n 'inner_diameter',\n 'number_of_joints',\n 'component_length',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n ],\n },\n ],\n },\n {\n family: 'stabilizer',\n data: [\n {\n key: 'stabilizer-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'gauge_od',\n 'gauge_length',\n 'no_of_blades',\n 'blade_width',\n 'connection_type',\n 'material',\n ],\n },\n ],\n },\n {\n family: 'sub',\n data: [\n {\n key: 'sub-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n ],\n },\n ],\n },\n {\n family: 'mwd',\n data: [\n {\n key: 'mwd-1',\n col_size: 3,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n 'gamma_sensor_to_bit_distance',\n 'bit_to_survey_distance',\n 'vibration_source',\n ],\n },\n {\n key: 'mwd-pressure-loss',\n col_size: 3,\n tb_field: 'pressure_loss',\n sub_title: 'Pressure Loss',\n tb_head: ['Flow Rate', 'Pressure Loss'],\n tb_body: [\n { field: 'flow_rate', isNumber: true },\n { field: 'pressure_loss', isNumber: true },\n ],\n },\n ],\n },\n {\n family: 'rss',\n data: [\n {\n key: 'rss-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n 'vibration_source',\n 'flow_loss_percentage',\n ],\n },\n {\n key: 'rss-pressure-loss',\n col_size: 4,\n tb_field: 'pressure_loss',\n sub_title: 'Pressure Loss',\n tb_head: ['Flow Rate', 'Pressure Loss'],\n tb_body: [\n { field: 'flow_rate', isNumber: true },\n { field: 'pressure_loss', isNumber: true },\n ],\n },\n ],\n },\n {\n family: 'ur',\n data: [\n {\n key: 'ur-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n 'name',\n ],\n },\n {\n key: 'ur-nozzles',\n col_size: 4,\n tb_field: 'nozzle_sizes',\n tb_head: ['# of this size', 'Nozzle Size'],\n tb_body: [\n { field: 'count', isNumber: false },\n { field: 'size', isNumber: true },\n ],\n },\n {\n key: 'ur-configuration-block',\n col_size: 4,\n sub_title: 'Under Reamer Configuration',\n sub_key: 'ur-configuration-info',\n sub_fields: [\n 'ur_opened_od',\n 'gauge_length',\n 'no_of_blades',\n 'blade_width',\n 'ur_to_bit',\n 'flow_rate',\n 'tfa',\n 'ur_opened_depth',\n ],\n },\n ],\n },\n {\n family: 'lwd',\n data: [\n {\n key: 'lwd-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n ],\n },\n {\n key: 'lwd-measurements',\n col_size: 4,\n tb_field: 'lwd_measurements',\n tb_head: ['Type', 'Name', 'Distance'],\n tb_body: [\n { field: 'type', isNumber: false },\n { field: 'name', isNumber: false },\n { field: 'distance', isNumber: true },\n ],\n },\n ],\n },\n {\n family: 'agitator',\n data: [\n {\n key: 'agitator-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n ],\n },\n {\n key: 'agitator-pressure-loss',\n col_size: 4,\n tb_field: 'pressure_loss',\n sub_title: 'Pressure Loss',\n tb_head: ['Flow Rate', 'Pressure Loss'],\n tb_body: [\n { field: 'flow_rate', isNumber: true },\n { field: 'pressure_loss', isNumber: true },\n ],\n },\n ],\n },\n {\n family: 'jar',\n data: [\n {\n key: 'jar-1',\n col_size: 4,\n fields: [\n 'sub_category',\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n ],\n },\n ],\n },\n];\n\nexport const BHA_GENERAL_FIELD_TYPES = [\n { name: 'sub_category', label: 'Sub Category' },\n { name: 'outer_diameter', label: 'OD', unit: 'shortLength' },\n { name: 'inner_diameter', label: 'ID', unit: 'shortLength' },\n { name: 'reel_diameter', label: 'Reel Diameter', unit: 'shortLength' },\n { name: 'number_of_joints', label: '# of Joints' },\n { name: 'component_length', label: 'Component Length', unit: 'length' },\n { name: 'size', label: 'Size', unit: 'shortLength' },\n { name: 'bit_type', label: 'Bit Type' },\n { name: 'rpg', label: 'RPG', unit: 'revolutionPerVolume' },\n { name: 'length', label: 'Total Length', unit: 'length' },\n { name: 'linear_weight', label: 'Adjusted Linear Weight', unit: 'massPerLength' },\n { name: 'weight', label: 'Total Weight', unit: 'mass' },\n { name: 'grade', label: 'Grade' },\n { name: 'gauge_od', label: 'Gauge OD', unit: 'shortLength' },\n { name: 'outer_diameter_tooljoint', label: 'TJ OD' },\n { name: 'inner_diameter_tooljoint', label: 'TJ ID' },\n { name: 'length_tooljoint', label: 'TJ Length per Joint', unit: 'length' },\n { name: 'gauge_length', label: 'Gauge Length', unit: 'shortLength' },\n { name: 'no_of_blades', label: '# of Blades' },\n { name: 'blade_width', label: 'Blade Width', unit: 'shortLength' },\n { name: 'connection_type', label: 'Connection Type' },\n { name: 'material', label: 'Material', unit: 'shortLength' },\n { name: 'stages', label: '# of stages' },\n { name: 'number_rotor_lobes', label: '# of rotor lobes' },\n { name: 'number_stator_lobes', label: '# of stator lobes' },\n { name: 'bend_range', label: 'Bend Range' },\n { name: 'max_weight_on_bit', label: 'Max WOB', unit: 'force' },\n { name: 'shank_od', label: 'Shank OD', unit: 'shortLength' },\n { name: 'make', label: 'Make' },\n { name: 'bit_to_bend', label: 'Bit to Bend', unit: 'length' },\n { name: 'name', label: 'Name' },\n {\n name: 'gamma_sensor_to_bit_distance',\n label: 'Gamma Sensor To Bit Distance',\n cond: 'has_gamma_sensor',\n unit: 'length',\n },\n {\n name: 'bit_to_survey_distance',\n label: 'Survey Sensor to Bit Distance',\n cond: 'has_survey_sensor',\n unit: 'length',\n },\n { name: 'vibration_source', label: 'Vibration Sensor' },\n { name: 'class', label: 'Class' },\n { name: 'serial_number', label: 'Serial Number' },\n { name: 'model', label: 'Model' },\n { name: 'tfa', label: 'TFA' },\n { name: 'bit_reason_pulled', label: 'Reason Pulled' },\n {\n name: 'max_operating_differential_pressure',\n label: 'Max Operating Diff Pressure',\n unit: 'pressure',\n col_size: 3,\n },\n {\n name: 'torque_at_max_operating_differential_pressure',\n label: 'Torque at Max Operating Diff Pressure',\n unit: 'torque',\n col_size: 3,\n },\n { name: 'flow_loss_percentage', label: '% Actuator Flow Loss', col_size: 5, family: 'rss' },\n { name: 'flow_loss_percentage', label: '% Leakage Flow Loss', col_size: 3, family: 'pdm' },\n];\n\nexport const BHA_ALTERNATIVE_FIELD_TYPES = [\n { name: 'min_standard_flowrate', label: 'Min', col_size: 3, unit: 'volumeFlowRate' },\n { name: 'max_standard_flowrate', label: 'Max', col_size: 3, unit: 'volumeFlowRate' },\n];\n\nexport const BHA_TABLE_FIELD_TYPES = [\n { name: 'ur_opened_od', label: 'Max OD (Opened)', unit: 'shortLength' },\n { name: 'gauge_length', label: 'Gauge Length', unit: 'shortLength' },\n { name: 'no_of_blades', label: '# of Blades' },\n { name: 'blade_width', label: 'Blade Width', unit: 'shortLength' },\n { name: 'ur_to_bit', label: 'Reamer to Bit Distance', unit: 'shortLength' },\n { name: 'flow_rate', label: 'Activation Flow Rate', unit_from_segment: true },\n { name: 'tfa', label: 'TFA' },\n];\n\nexport const BHA_STABILIZER_FIELD_TYPES = [\n { name: 'name', label: 'Name' },\n { name: 'outer_diameter', label: 'OD', unit: 'shortLength' },\n { name: 'inner_diameter', label: 'ID' },\n { name: 'length', label: 'Total Length', unit: 'length' },\n { name: 'linear_weight', label: 'Adjusted Linear Weight', unit: 'massPerLength' },\n { name: 'weight', label: 'Total Weight', unit: 'mass' },\n { name: 'gauge_od', label: 'Gauge OD', unit: 'shortLength' },\n { name: 'gauge_length', label: 'Gauge Length', unit: 'shortLength' },\n { name: 'no_of_blades', label: '# of Blades' },\n { name: 'stab_centerpoint_to_bit', label: 'Stab Centerpoint To Bit', unit: 'length' },\n { name: 'blade_width', label: 'Blade Width', unit: 'shortLength' },\n { name: 'connection_type', label: 'Connection Type' },\n { name: 'material', label: 'Material', col_size: 2 },\n];\n"],"names":["UR_ACTIVATION_LOGIC_KEYS","FLOW_ACTIVATED","OPEN_HOLE_ACTIVATED","DEPTH_ACTIVATION","UR_ACTIVATION_LOGIC_TYPES","name","type","label","col_size","unit","family","data","key","fields","sub_title","tb_field","tb_head","tb_body","field","isNumber","stablizer_fields","sub_key","sub_fields","cond","unit_from_segment","drilling","unitType","completion"],"mappings":"oEAAO,IAAMA,EAA2B,CACtCC,eAAgB,iBAChBC,oBAAqB,sBACrBC,iBAAkB,oBAGPC,EAA4B,CACvC,CAAEC,KAAM,iBAAkBC,KAAMN,EAAyBC,gBACzD,CAAEI,KAAM,uBAAwBC,KAAMN,EAAyBE,qBAC/D,CAAEG,KAAM,mBAAoBC,KAAMN,EAAyBG,uDA6flB,CACzC,CAAEE,KAAM,wBAAyBE,MAAO,MAAOC,SAAU,EAAGC,KAAM,kBAClE,CAAEJ,KAAM,wBAAyBE,MAAO,MAAOC,SAAU,EAAGC,KAAM,+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cAAeE,MAAO,cAAeE,KAAM,eACnD,CAAEJ,KAAM,YAAaE,MAAO,yBAA0BE,KAAM,eAC5D,CAAEJ,KAAM,YAAaE,MAAO,uBAAwBiB,mBAAmB,GACvE,CAAEnB,KAAM,MAAOE,MAAO,+BAtgBM,CAC5BkB,SAAU,CACRC,SAAU,iBACVjB,KAAM,WAERkB,WAAY,CACVD,SAAU,cACVjB,KAAM"}
1
+ {"version":3,"file":"constants.js","sources":["../../../../../src/components/Drillstring/BHAComponentDetail/constants.js"],"sourcesContent":["export const UR_ACTIVATION_LOGIC_KEYS = {\n FLOW_ACTIVATED: 'flow_activated',\n OPEN_HOLE_ACTIVATED: 'open_hole_activated',\n DEPTH_ACTIVATION: 'depth_activation',\n};\n\nexport const UR_ACTIVATION_LOGIC_TYPES = [\n { name: 'Flow Activated', type: UR_ACTIVATION_LOGIC_KEYS.FLOW_ACTIVATED },\n { name: 'Open Hole Activation', type: UR_ACTIVATION_LOGIC_KEYS.OPEN_HOLE_ACTIVATED },\n { name: 'Depth Activation', type: UR_ACTIVATION_LOGIC_KEYS.DEPTH_ACTIVATION },\n];\n\nexport const FLOW_RATE_UNIT = {\n drilling: {\n unitType: 'volumeFlowRate',\n unit: 'gal/min',\n },\n completion: {\n unitType: 'oilFlowRate',\n unit: 'bbl/min',\n },\n};\n\nexport const BHA_COMPONENT_TYPES = [\n {\n family: 'ct',\n data: [\n {\n key: 'ct-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'reel_diameter',\n 'component_length',\n 'length',\n 'linear_weight',\n 'weight',\n 'grade',\n 'material',\n 'class',\n ],\n },\n ],\n },\n {\n family: 'dp',\n data: [\n {\n key: 'dp-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'number_of_joints',\n 'component_length',\n 'length',\n 'linear_weight',\n 'weight',\n 'grade',\n 'outer_diameter_tooljoint',\n 'inner_diameter_tooljoint',\n 'length_tooljoint',\n 'connection_type',\n 'material',\n 'class',\n ],\n },\n ],\n },\n {\n family: 'hwdp',\n data: [\n {\n key: 'hwdp-1',\n col_size: 4,\n fields: [\n 'sub_category',\n 'outer_diameter',\n 'inner_diameter',\n 'number_of_joints',\n 'component_length',\n 'length',\n 'linear_weight',\n 'weight',\n 'grade',\n 'outer_diameter_tooljoint',\n 'inner_diameter_tooljoint',\n 'length_tooljoint',\n 'connection_type',\n 'material',\n 'class',\n ],\n },\n ],\n },\n {\n family: 'pdm',\n data: [\n {\n key: 'pdm-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'rpg',\n 'length',\n 'linear_weight',\n 'weight',\n 'stages',\n 'number_rotor_lobes',\n 'number_stator_lobes',\n 'bend_range',\n 'max_weight_on_bit',\n 'make',\n 'bit_to_bend',\n 'name',\n 'model',\n ],\n },\n {\n key: 'pdm-standard-flow-range',\n col_size: 4,\n sub_title: 'Standard Flow Range',\n fields: ['min_standard_flowrate', 'max_standard_flowrate'],\n },\n {\n key: 'pdm-op-diff-pressure',\n col_size: 3,\n fields: [\n 'max_operating_differential_pressure',\n 'torque_at_max_operating_differential_pressure',\n ],\n },\n {\n key: 'pdm-flow-loss',\n col_size: 3,\n fields: ['flow_loss_percentage'],\n },\n {\n key: 'pdm-pressure-loss',\n col_size: 3,\n sub_title: 'Off Bottom Pressure Loss',\n tb_field: 'off_bottom_pressure_loss',\n tb_head: ['Flow Rate', 'Pressure Loss'],\n tb_body: [\n { field: 'flow_rate', isNumber: true },\n { field: 'pressure_loss', isNumber: true },\n ],\n },\n {\n key: 'pdm-stabilizer-1',\n col_size: 2,\n sub_title: 'Stabilizer',\n stablizer_fields: [\n 'name',\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'outer_diameter',\n ],\n },\n {\n key: 'pdm-stabilizer-2',\n col_size: 2,\n stablizer_fields: [\n 'gauge_od',\n 'gauge_length',\n 'no_of_blades',\n 'stab_centerpoint_to_bit',\n 'blade_width',\n 'connection_type',\n 'material',\n ],\n },\n ],\n },\n {\n family: 'bit',\n data: [\n {\n key: 'bit-1',\n col_size: 3,\n fields: ['size', 'bit_type', 'length', 'weight'],\n },\n {\n key: 'bit-nozzles',\n col_size: 3,\n tb_field: 'nozzle_sizes',\n tb_head: ['# of this size', 'Nozzle Size'],\n tb_body: [\n { field: 'count', isNumber: false },\n { field: 'size', isNumber: true },\n ],\n },\n {\n key: 'bit-3',\n col_size: 3,\n fields: ['shank_od', 'make', 'serial_number', 'model', 'tfa', 'bit_reason_pulled'],\n },\n ],\n },\n {\n family: 'dc',\n data: [\n {\n key: 'dc-1',\n col_size: 4,\n fields: [\n 'sub_category',\n 'outer_diameter',\n 'inner_diameter',\n 'number_of_joints',\n 'component_length',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n ],\n },\n ],\n },\n {\n family: 'stabilizer',\n data: [\n {\n key: 'stabilizer-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'gauge_od',\n 'gauge_length',\n 'no_of_blades',\n 'blade_width',\n 'connection_type',\n 'material',\n ],\n },\n ],\n },\n {\n family: 'ags',\n data: [\n {\n key: 'ags-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'gauge_od',\n 'gauge_length',\n 'no_of_blades',\n 'blade_width',\n 'connection_type',\n 'material',\n ],\n },\n ],\n },\n {\n family: 'sub',\n data: [\n {\n key: 'sub-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n ],\n },\n ],\n },\n {\n family: 'mwd',\n data: [\n {\n key: 'mwd-1',\n col_size: 3,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n 'gamma_sensor_to_bit_distance',\n 'bit_to_survey_distance',\n 'vibration_source',\n ],\n },\n {\n key: 'mwd-pressure-loss',\n col_size: 3,\n tb_field: 'pressure_loss',\n sub_title: 'Pressure Loss',\n tb_head: ['Flow Rate', 'Pressure Loss'],\n tb_body: [\n { field: 'flow_rate', isNumber: true },\n { field: 'pressure_loss', isNumber: true },\n ],\n },\n ],\n },\n {\n family: 'rss',\n data: [\n {\n key: 'rss-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n 'vibration_source',\n 'flow_loss_percentage',\n ],\n },\n {\n key: 'rss-pressure-loss',\n col_size: 4,\n tb_field: 'pressure_loss',\n sub_title: 'Pressure Loss',\n tb_head: ['Flow Rate', 'Pressure Loss'],\n tb_body: [\n { field: 'flow_rate', isNumber: true },\n { field: 'pressure_loss', isNumber: true },\n ],\n },\n ],\n },\n {\n family: 'ur',\n data: [\n {\n key: 'ur-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n 'name',\n ],\n },\n {\n key: 'ur-nozzles',\n col_size: 4,\n tb_field: 'nozzle_sizes',\n tb_head: ['# of this size', 'Nozzle Size'],\n tb_body: [\n { field: 'count', isNumber: false },\n { field: 'size', isNumber: true },\n ],\n },\n {\n key: 'ur-configuration-block',\n col_size: 4,\n sub_title: 'Under Reamer Configuration',\n sub_key: 'ur-configuration-info',\n sub_fields: [\n 'ur_opened_od',\n 'gauge_length',\n 'no_of_blades',\n 'blade_width',\n 'ur_to_bit',\n 'flow_rate',\n 'tfa',\n 'ur_opened_depth',\n ],\n },\n ],\n },\n {\n family: 'lwd',\n data: [\n {\n key: 'lwd-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n ],\n },\n {\n key: 'lwd-measurements',\n col_size: 4,\n tb_field: 'lwd_measurements',\n tb_head: ['Type', 'Name', 'Distance'],\n tb_body: [\n { field: 'type', isNumber: false },\n { field: 'name', isNumber: false },\n { field: 'distance', isNumber: true },\n ],\n },\n ],\n },\n {\n family: 'agitator',\n data: [\n {\n key: 'agitator-1',\n col_size: 4,\n fields: [\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n ],\n },\n {\n key: 'agitator-pressure-loss',\n col_size: 4,\n tb_field: 'pressure_loss',\n sub_title: 'Pressure Loss',\n tb_head: ['Flow Rate', 'Pressure Loss'],\n tb_body: [\n { field: 'flow_rate', isNumber: true },\n { field: 'pressure_loss', isNumber: true },\n ],\n },\n ],\n },\n {\n family: 'jar',\n data: [\n {\n key: 'jar-1',\n col_size: 4,\n fields: [\n 'sub_category',\n 'outer_diameter',\n 'inner_diameter',\n 'length',\n 'linear_weight',\n 'weight',\n 'connection_type',\n 'material',\n ],\n },\n ],\n },\n];\n\nexport const BHA_GENERAL_FIELD_TYPES = [\n { name: 'sub_category', label: 'Sub Category' },\n { name: 'outer_diameter', label: 'OD', unit: 'shortLength' },\n { name: 'inner_diameter', label: 'ID', unit: 'shortLength' },\n { name: 'reel_diameter', label: 'Reel Diameter', unit: 'shortLength' },\n { name: 'number_of_joints', label: '# of Joints' },\n { name: 'component_length', label: 'Component Length', unit: 'length' },\n { name: 'size', label: 'Size', unit: 'shortLength' },\n { name: 'bit_type', label: 'Bit Type' },\n { name: 'rpg', label: 'RPG', unit: 'revolutionPerVolume' },\n { name: 'length', label: 'Total Length', unit: 'length' },\n { name: 'linear_weight', label: 'Adjusted Linear Weight', unit: 'massPerLength' },\n { name: 'weight', label: 'Total Weight', unit: 'mass' },\n { name: 'grade', label: 'Grade' },\n { name: 'gauge_od', label: 'Gauge OD', unit: 'shortLength' },\n { name: 'outer_diameter_tooljoint', label: 'TJ OD' },\n { name: 'inner_diameter_tooljoint', label: 'TJ ID' },\n { name: 'length_tooljoint', label: 'TJ Length per Joint', unit: 'length' },\n { name: 'gauge_length', label: 'Gauge Length', unit: 'shortLength' },\n { name: 'no_of_blades', label: '# of Blades' },\n { name: 'blade_width', label: 'Blade Width', unit: 'shortLength' },\n { name: 'connection_type', label: 'Connection Type' },\n { name: 'material', label: 'Material', unit: 'shortLength' },\n { name: 'stages', label: '# of stages' },\n { name: 'number_rotor_lobes', label: '# of rotor lobes' },\n { name: 'number_stator_lobes', label: '# of stator lobes' },\n { name: 'bend_range', label: 'Bend Range' },\n { name: 'max_weight_on_bit', label: 'Max WOB', unit: 'force' },\n { name: 'shank_od', label: 'Shank OD', unit: 'shortLength' },\n { name: 'make', label: 'Make' },\n { name: 'bit_to_bend', label: 'Bit to Bend', unit: 'length' },\n { name: 'name', label: 'Name' },\n {\n name: 'gamma_sensor_to_bit_distance',\n label: 'Gamma Sensor To Bit Distance',\n cond: 'has_gamma_sensor',\n unit: 'length',\n },\n {\n name: 'bit_to_survey_distance',\n label: 'Survey Sensor to Bit Distance',\n cond: 'has_survey_sensor',\n unit: 'length',\n },\n { name: 'vibration_source', label: 'Vibration Sensor' },\n { name: 'class', label: 'Class' },\n { name: 'serial_number', label: 'Serial Number' },\n { name: 'model', label: 'Model' },\n { name: 'tfa', label: 'TFA' },\n { name: 'bit_reason_pulled', label: 'Reason Pulled' },\n {\n name: 'max_operating_differential_pressure',\n label: 'Max Operating Diff Pressure',\n unit: 'pressure',\n col_size: 3,\n },\n {\n name: 'torque_at_max_operating_differential_pressure',\n label: 'Torque at Max Operating Diff Pressure',\n unit: 'torque',\n col_size: 3,\n },\n { name: 'flow_loss_percentage', label: '% Actuator Flow Loss', col_size: 5, family: 'rss' },\n { name: 'flow_loss_percentage', label: '% Leakage Flow Loss', col_size: 3, family: 'pdm' },\n];\n\nexport const BHA_ALTERNATIVE_FIELD_TYPES = [\n { name: 'min_standard_flowrate', label: 'Min', col_size: 3, unit: 'volumeFlowRate' },\n { name: 'max_standard_flowrate', label: 'Max', col_size: 3, unit: 'volumeFlowRate' },\n];\n\nexport const BHA_TABLE_FIELD_TYPES = [\n { name: 'ur_opened_od', label: 'Max OD (Opened)', unit: 'shortLength' },\n { name: 'gauge_length', label: 'Gauge Length', unit: 'shortLength' },\n { name: 'no_of_blades', label: '# of Blades' },\n { name: 'blade_width', label: 'Blade Width', unit: 'shortLength' },\n { name: 'ur_to_bit', label: 'Reamer to Bit Distance', unit: 'shortLength' },\n { name: 'flow_rate', label: 'Activation Flow Rate', unit_from_segment: true },\n { name: 'tfa', label: 'TFA' },\n];\n\nexport const BHA_STABILIZER_FIELD_TYPES = [\n { name: 'name', label: 'Name' },\n { name: 'outer_diameter', label: 'OD', unit: 'shortLength' },\n { name: 'inner_diameter', label: 'ID' },\n { name: 'length', label: 'Total Length', unit: 'length' },\n { name: 'linear_weight', label: 'Adjusted Linear Weight', unit: 'massPerLength' },\n { name: 'weight', label: 'Total Weight', unit: 'mass' },\n { name: 'gauge_od', label: 'Gauge OD', unit: 'shortLength' },\n { name: 'gauge_length', label: 'Gauge Length', unit: 'shortLength' },\n { name: 'no_of_blades', label: '# of Blades' },\n { name: 'stab_centerpoint_to_bit', label: 'Stab Centerpoint To Bit', unit: 'length' },\n { name: 'blade_width', label: 'Blade Width', unit: 'shortLength' },\n { name: 'connection_type', label: 'Connection Type' },\n { name: 'material', label: 'Material', col_size: 2 },\n];\n"],"names":["UR_ACTIVATION_LOGIC_KEYS","FLOW_ACTIVATED","OPEN_HOLE_ACTIVATED","DEPTH_ACTIVATION","UR_ACTIVATION_LOGIC_TYPES","name","type","label","col_size","unit","family","data","key","fields","sub_title","tb_field","tb_head","tb_body","field","isNumber","stablizer_fields","sub_key","sub_fields","cond","unit_from_segment","drilling","unitType","completion"],"mappings":"oEAAO,IAAMA,EAA2B,CACtCC,eAAgB,iBAChBC,oBAAqB,sBACrBC,iBAAkB,oBAGPC,EAA4B,CACvC,CAAEC,KAAM,iBAAkBC,KAAMN,EAAyBC,gBACzD,CAAEI,KAAM,uBAAwBC,KAAMN,EAAyBE,qBAC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AAO,0BAA2BE,KAAM,UAC3E,CAAEJ,KAAM,cAAeE,MAAO,cAAeE,KAAM,eACnD,CAAEJ,KAAM,kBAAmBE,MAAO,mBAClC,CAAEF,KAAM,WAAYE,MAAO,WAAYC,SAAU,kCAvBd,CACnC,CAAEH,KAAM,eAAgBE,MAAO,kBAAmBE,KAAM,eACxD,CAAEJ,KAAM,eAAgBE,MAAO,eAAgBE,KAAM,eACrD,CAAEJ,KAAM,eAAgBE,MAAO,eAC/B,CAAEF,KAAM,cAAeE,MAAO,cAAeE,KAAM,eACnD,CAAEJ,KAAM,YAAaE,MAAO,yBAA0BE,KAAM,eAC5D,CAAEJ,KAAM,YAAaE,MAAO,uBAAwBiB,mBAAmB,GACvE,CAAEnB,KAAM,MAAOE,MAAO,+BA5hBM,CAC5BkB,SAAU,CACRC,SAAU,iBACVjB,KAAM,WAERkB,WAAY,CACVD,SAAU,cACVjB,KAAM"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("prop-types"),a=require("react/jsx-runtime");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=t(e);function i(e){var t,d=e.component,i=e.width,c=e.height,b=d.family,f=d.material,n=d.bit_type;return t="dp"===b?"/static/media/006c9aec83e4e1d5623a520c6debe5ec.png":"dc"===b?"Steel"!==f?"/static/media/e0ba9254af3c235797de1b8660630ac0.png":"/static/media/bd46ae1cd29ed1553fd36d3fb9b6ca9e.png":"hwdp"===b?"/static/media/771d537f0b0f13e9da457cd7a6902e94.png":"pdm"===b?"/static/media/79993ae531d2a8a81347b11de94542cb.png":"mwd"===b?"/static/media/6fb9ebec6308b35528b84a41acf93ed7.png":"jar"===b?"/static/media/083546083cd132bbaffd6620db709516.png":"rss"===b?"/static/media/bb8a5a297df74bbdabbe557e02e969eb.png":"sub"===b?"Steel"!==f?"/static/media/66ac95b0480ac2a8f3220f469b68ca5b.png":"/static/media/bd46ae1cd29ed1553fd36d3fb9b6ca9e.png":"agitator"===b?"/static/media/72e175107512ebef943c463d4539f556.png":"stabilizer"===b?"/static/media/17b94ca82a36d5d09ab8825006835a59.png":"bit"===b?"Tri Cone"===n?"/static/media/f5e653a472efce6a197a32e0946db802.png":"/static/media/4e12a801cf281b17a26a017c395a778e.png":"ur"===b?"/static/media/81eb00627fd05e4ca52b335a7ac52e25.png":"lwd"===b?"/static/media/7f0a9a40a7f11250ce780c274026ff30.png":null,a.jsx("img",{src:t,alt:b,width:i,height:c})}i.propTypes={width:d.default.number,height:d.default.number,component:d.default.shape({family:d.default.string,material:d.default.string,bit_type:d.default.string}).isRequired},i.defaultProps={width:32,height:48},module.exports=i;
1
+ "use strict";var a=require("prop-types"),e=require("react/jsx-runtime");function t(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var d=t(a),i="/static/media/17b94ca82a36d5d09ab8825006835a59.png";function c(a){var t,d=a.component,c=a.width,b=a.height,f=d.family,n=d.material,s=d.bit_type;return t="dp"===f?"/static/media/006c9aec83e4e1d5623a520c6debe5ec.png":"dc"===f?"Steel"!==n?"/static/media/e0ba9254af3c235797de1b8660630ac0.png":"/static/media/bd46ae1cd29ed1553fd36d3fb9b6ca9e.png":"hwdp"===f?"/static/media/771d537f0b0f13e9da457cd7a6902e94.png":"pdm"===f?"/static/media/79993ae531d2a8a81347b11de94542cb.png":"mwd"===f?"/static/media/6fb9ebec6308b35528b84a41acf93ed7.png":"jar"===f?"/static/media/083546083cd132bbaffd6620db709516.png":"rss"===f?"/static/media/bb8a5a297df74bbdabbe557e02e969eb.png":"sub"===f?"Steel"!==n?"/static/media/66ac95b0480ac2a8f3220f469b68ca5b.png":"/static/media/bd46ae1cd29ed1553fd36d3fb9b6ca9e.png":"agitator"===f?"/static/media/72e175107512ebef943c463d4539f556.png":"stabilizer"===f||"ags"===f?i:"bit"===f?"Tri Cone"===s?"/static/media/f5e653a472efce6a197a32e0946db802.png":"/static/media/4e12a801cf281b17a26a017c395a778e.png":"ur"===f?"/static/media/81eb00627fd05e4ca52b335a7ac52e25.png":"lwd"===f?"/static/media/7f0a9a40a7f11250ce780c274026ff30.png":null,e.jsx("img",{src:t,alt:f,width:c,height:b})}c.propTypes={width:d.default.number,height:d.default.number,component:d.default.shape({family:d.default.string,material:d.default.string,bit_type:d.default.string}).isRequired},c.defaultProps={width:32,height:48},module.exports=c;
2
2
  //# sourceMappingURL=BHAComponentIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BHAComponentIcon.js","sources":["../../../../src/components/Drillstring/BHAComponentIcon.js"],"sourcesContent":["import PropTypes from 'prop-types';\n\nimport DrillPipe from './assets/regular-bha/drill_pipe.png';\nimport DrillCollar from './assets/regular-bha/drill_collar.png';\nimport DrillCollarWhite from './assets/regular-bha/drill_collar_white.png';\nimport HeavyWeightDrillPipe from './assets/regular-bha/heavy_weight_drill_pipe.png';\nimport Jar from './assets/regular-bha/jar.png';\nimport Motor from './assets/regular-bha/motor.png';\nimport Mwd from './assets/regular-bha/mwd.png';\nimport Rss from './assets/regular-bha/rss.png';\nimport Sub from './assets/regular-bha/sub.png';\nimport SubWhite from './assets/regular-bha/sub_white.png';\nimport Agitator from './assets/regular-bha/agitator.png';\nimport Stabilizer from './assets/regular-bha/stabilizer.png';\nimport BitPdc from './assets/regular-bha/pdcbit.png';\nimport BitCone from './assets/regular-bha/rollerconebit.png';\nimport UnderReamer from './assets/regular-bha/ur.png';\nimport Lwd from './assets/regular-bha/lwd.png';\n\nfunction ComponentIcon({ component, width, height }) {\n const { family, material, bit_type: bitType } = component;\n\n let icon;\n\n if (family === 'dp') {\n icon = DrillPipe;\n } else if (family === 'dc') {\n icon = material !== 'Steel' ? DrillCollarWhite : DrillCollar;\n } else if (family === 'hwdp') {\n icon = HeavyWeightDrillPipe;\n } else if (family === 'pdm') {\n icon = Motor;\n } else if (family === 'mwd') {\n icon = Mwd;\n } else if (family === 'jar') {\n icon = Jar;\n } else if (family === 'rss') {\n icon = Rss;\n } else if (family === 'sub') {\n icon = material !== 'Steel' ? SubWhite : Sub;\n } else if (family === 'agitator') {\n icon = Agitator;\n } else if (family === 'stabilizer') {\n icon = Stabilizer;\n } else if (family === 'bit') {\n icon = bitType === 'Tri Cone' ? BitCone : BitPdc;\n } else if (family === 'ur') {\n icon = UnderReamer;\n } else if (family === 'lwd') {\n icon = Lwd;\n } else {\n icon = null;\n }\n\n return <img src={icon} alt={family} width={width} height={height} />;\n}\n\nComponentIcon.propTypes = {\n width: PropTypes.number,\n height: PropTypes.number,\n component: PropTypes.shape({\n family: PropTypes.string,\n material: PropTypes.string,\n bit_type: PropTypes.string,\n }).isRequired,\n};\n\nComponentIcon.defaultProps = {\n width: 32,\n height: 48,\n};\n\nexport default ComponentIcon;\n"],"names":["ComponentIcon","_ref","icon","component","width","height","family","material","bitType","bit_type","_jsx","src","alt","propTypes","PropTypes","number","shape","string","isRequired","defaultProps"],"mappings":"2JAmBA,SAASA,EAA4CC,GAAA,IAG/CC,EAHmBC,IAAAA,UAAWC,IAAAA,MAAOC,IAAAA,OACjCC,EAAwCH,EAAxCG,OAAQC,EAAgCJ,EAAhCI,SAAoBC,EAAYL,EAAtBM,SAkC1B,OA7BEP,EADa,OAAXI,EAxB6B,qDA0BX,OAAXA,EACW,UAAbC,EA3BwB,qDAAA,qDA4BX,SAAXD,EA5BsB,qDA8BX,QAAXA,EA9BsB,qDAgCX,QAAXA,EAhCsB,qDAkCX,QAAXA,EAlCsB,qDAoCX,QAAXA,EApCsB,qDAsCX,QAAXA,EACW,UAAbC,EAvCwB,qDAAA,qDAwCX,aAAXD,EAxCsB,qDA0CX,eAAXA,EA1CsB,qDA4CX,QAAXA,EACU,aAAZE,EA7CwB,qDAAA,qDA8CX,OAAXF,EA9CsB,qDAgDX,QAAXA,EAhDsB,qDAmDxB,KAGFI,EAAAA,IAAA,MAAA,CAAKC,IAAKT,EAAMU,IAAKN,EAAQF,MAAOA,EAAOC,OAAQA,GAC5D,CAEAL,EAAca,UAAY,CACxBT,MAAOU,EAAS,QAACC,OACjBV,OAAQS,EAAS,QAACC,OAClBZ,UAAWW,EAAS,QAACE,MAAM,CACzBV,OAAQQ,EAAS,QAACG,OAClBV,SAAUO,EAAS,QAACG,OACpBR,SAAUK,EAAS,QAACG,SACnBC,YAGLlB,EAAcmB,aAAe,CAC3Bf,MAAO,GACPC,OAAQ"}
1
+ {"version":3,"file":"BHAComponentIcon.js","sources":["../../../../src/components/Drillstring/BHAComponentIcon.js"],"sourcesContent":["import PropTypes from 'prop-types';\n\nimport DrillPipe from './assets/regular-bha/drill_pipe.png';\nimport DrillCollar from './assets/regular-bha/drill_collar.png';\nimport DrillCollarWhite from './assets/regular-bha/drill_collar_white.png';\nimport HeavyWeightDrillPipe from './assets/regular-bha/heavy_weight_drill_pipe.png';\nimport Jar from './assets/regular-bha/jar.png';\nimport Motor from './assets/regular-bha/motor.png';\nimport Mwd from './assets/regular-bha/mwd.png';\nimport Rss from './assets/regular-bha/rss.png';\nimport Sub from './assets/regular-bha/sub.png';\nimport SubWhite from './assets/regular-bha/sub_white.png';\nimport Agitator from './assets/regular-bha/agitator.png';\nimport Stabilizer from './assets/regular-bha/stabilizer.png';\nimport BitPdc from './assets/regular-bha/pdcbit.png';\nimport BitCone from './assets/regular-bha/rollerconebit.png';\nimport UnderReamer from './assets/regular-bha/ur.png';\nimport Lwd from './assets/regular-bha/lwd.png';\n\nfunction ComponentIcon({ component, width, height }) {\n const { family, material, bit_type: bitType } = component;\n\n let icon;\n\n if (family === 'dp') {\n icon = DrillPipe;\n } else if (family === 'dc') {\n icon = material !== 'Steel' ? DrillCollarWhite : DrillCollar;\n } else if (family === 'hwdp') {\n icon = HeavyWeightDrillPipe;\n } else if (family === 'pdm') {\n icon = Motor;\n } else if (family === 'mwd') {\n icon = Mwd;\n } else if (family === 'jar') {\n icon = Jar;\n } else if (family === 'rss') {\n icon = Rss;\n } else if (family === 'sub') {\n icon = material !== 'Steel' ? SubWhite : Sub;\n } else if (family === 'agitator') {\n icon = Agitator;\n } else if (family === 'stabilizer') {\n icon = Stabilizer;\n } else if (family === 'ags') {\n icon = Stabilizer;\n } else if (family === 'bit') {\n icon = bitType === 'Tri Cone' ? BitCone : BitPdc;\n } else if (family === 'ur') {\n icon = UnderReamer;\n } else if (family === 'lwd') {\n icon = Lwd;\n } else {\n icon = null;\n }\n\n return <img src={icon} alt={family} width={width} height={height} />;\n}\n\nComponentIcon.propTypes = {\n width: PropTypes.number,\n height: PropTypes.number,\n component: PropTypes.shape({\n family: PropTypes.string,\n material: PropTypes.string,\n bit_type: PropTypes.string,\n }).isRequired,\n};\n\nComponentIcon.defaultProps = {\n width: 32,\n height: 48,\n};\n\nexport default ComponentIcon;\n"],"names":["Stabilizer","ComponentIcon","_ref","icon","component","width","height","family","material","bitType","bit_type","_jsx","src","alt","propTypes","PropTypes","number","shape","string","isRequired","defaultProps"],"mappings":"2JAAmCA,EAAA,qDAmBnC,SAASC,EAA4CC,GAAA,IAG/CC,EAHmBC,IAAAA,UAAWC,IAAAA,MAAOC,IAAAA,OACjCC,EAAwCH,EAAxCG,OAAQC,EAAgCJ,EAAhCI,SAAoBC,EAAYL,EAAtBM,SAoC1B,OA/BEP,EADa,OAAXI,EAxB6B,qDA0BX,OAAXA,EACW,UAAbC,EA3BwB,qDAAA,qDA4BX,SAAXD,EA5BsB,qDA8BX,QAAXA,EA9BsB,qDAgCX,QAAXA,EAhCsB,qDAkCX,QAAXA,EAlCsB,qDAoCX,QAAXA,EApCsB,qDAsCX,QAAXA,EACW,UAAbC,EAvCwB,qDAAA,qDAwCX,aAAXD,EAxCsB,qDA0CX,eAAXA,GAEW,QAAXA,EADFP,EAGa,QAAXO,EACU,aAAZE,EA/CwB,qDAAA,qDAgDX,OAAXF,EAhDsB,qDAkDX,QAAXA,EAlDsB,qDAqDxB,KAGFI,EAAAA,IAAA,MAAA,CAAKC,IAAKT,EAAMU,IAAKN,EAAQF,MAAOA,EAAOC,OAAQA,GAC5D,CAEAL,EAAca,UAAY,CACxBT,MAAOU,EAAS,QAACC,OACjBV,OAAQS,EAAS,QAACC,OAClBZ,UAAWW,EAAS,QAACE,MAAM,CACzBV,OAAQQ,EAAS,QAACG,OAClBV,SAAUO,EAAS,QAACG,OACpBR,SAAUK,EAAS,QAACG,SACnBC,YAGLlB,EAAcmB,aAAe,CAC3Bf,MAAO,GACPC,OAAQ"}