@corva/ui 0.72.0-5 → 0.72.0

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 (1330) hide show
  1. package/CLI/hocs/constants.js +1 -1
  2. package/CLI/hocs/utils.js +1 -1
  3. package/cjs-bundle/CLI/hocs/utils.js +1 -1
  4. package/cjs-bundle/clients/api/apiCore.js +1 -1
  5. package/cjs-bundle/clients/clientStorage/core.js +1 -1
  6. package/cjs-bundle/clients/clientStorage/index.js +1 -1
  7. package/cjs-bundle/clients/constants.js +1 -1
  8. package/cjs-bundle/clients/index.js +1 -1
  9. package/cjs-bundle/clients/jsonApi/index.js +1 -1
  10. package/cjs-bundle/clients/subscriptions.js +1 -1
  11. package/cjs-bundle/clients/utils.js +1 -1
  12. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  13. package/cjs-bundle/components/AddComment/Popup.js +1 -1
  14. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  15. package/cjs-bundle/components/AdvancedSlider/AdvancedSlider.js +1 -1
  16. package/cjs-bundle/components/AdvancedSlider/Handle.js +1 -1
  17. package/cjs-bundle/components/AnchorsList/AnchorsList.js +1 -1
  18. package/cjs-bundle/components/Annotations/AnnotationsContext.js +1 -1
  19. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  20. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
  21. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AnnotationComments/index.js +1 -1
  22. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AnnotationInput/StyledSelect.js +1 -1
  23. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js +1 -1
  24. package/cjs-bundle/components/Annotations/components/AnnotationsList/index.js +1 -1
  25. package/cjs-bundle/components/Annotations/components/LastAnnotation/index.js +1 -1
  26. package/cjs-bundle/components/AppIcon/assets/DrillingAppIcon.js +1 -1
  27. package/cjs-bundle/components/AppIcon/utils.js +1 -1
  28. package/cjs-bundle/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
  29. package/cjs-bundle/components/AppVersionsSelect/effects/index.js +1 -1
  30. package/cjs-bundle/components/AssetEditor/AssetEditorAutocomplete.js +1 -1
  31. package/cjs-bundle/components/AssetEditor/SingleAssetEditor.js +1 -1
  32. package/cjs-bundle/components/AssetEditor/effects/index.js +1 -1
  33. package/cjs-bundle/components/AssetEditor/index.js +1 -1
  34. package/cjs-bundle/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
  35. package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelect.js +1 -1
  36. package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelectV2.js +1 -1
  37. package/cjs-bundle/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
  38. package/cjs-bundle/components/AssetEditorV2/components/SelectItem.js +1 -1
  39. package/cjs-bundle/components/AssetEditorV2/effects/index.js +1 -1
  40. package/cjs-bundle/components/AssetEditorV2/effects/usePrimaryAssetSelectData.js +1 -1
  41. package/cjs-bundle/components/AssetEditorV2/index.js +1 -1
  42. package/cjs-bundle/components/AssetEditorV2/utils/index.js +1 -1
  43. package/cjs-bundle/components/AssetNameLabel/AssetNameLabel.js +1 -1
  44. package/cjs-bundle/components/Attachment/index.js +1 -1
  45. package/cjs-bundle/components/Autocomplete/Autocomplete.js +1 -1
  46. package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
  47. package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/index.js +1 -1
  48. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js +1 -1
  49. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetResultSection.js +1 -1
  50. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetTypesSection.js +1 -1
  51. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  52. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/constants.js +1 -1
  53. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/effects/useAssetsData.js +1 -1
  54. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/utils/apiCalls.js +1 -1
  55. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js +1 -1
  56. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +1 -1
  57. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/WellListItem.js +1 -1
  58. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
  59. package/cjs-bundle/components/BICOffsetPickerDialog/effects/index.js +1 -1
  60. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  61. package/cjs-bundle/components/BICOffsetPickerDialog/utils/apiCalls.js +1 -1
  62. package/cjs-bundle/components/Breadcrumbs/index.js +1 -1
  63. package/cjs-bundle/components/Casing/CasingComponentIcon.js +1 -1
  64. package/cjs-bundle/components/Casing/CasingTable/CasingComponent.js +1 -1
  65. package/cjs-bundle/components/Casing/CasingTable/index.js +1 -1
  66. package/cjs-bundle/components/Casing/CasingTableV2/CasingTableV2.js +1 -1
  67. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Browser.js +1 -1
  68. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  69. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  70. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Browser.js +1 -1
  71. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  72. package/cjs-bundle/components/Casing/CasingTableV2/components/EditComponentDialog.js +1 -1
  73. package/cjs-bundle/components/Casing/CasingTableV2/components/Header.js +1 -1
  74. package/cjs-bundle/components/Casing/CasingTableV2/components/SortableComponent.js +1 -1
  75. package/cjs-bundle/components/Casing/CasingTableV2/components/SortableComponents.js +1 -1
  76. package/cjs-bundle/components/Casing/CasingTile/CasingTile.js +1 -1
  77. package/cjs-bundle/components/Casing/CasingTile/style.js +1 -1
  78. package/cjs-bundle/components/Casing/CasingTileIcon.js +1 -1
  79. package/cjs-bundle/components/Chart/ChartWrapperContext.js +1 -1
  80. package/cjs-bundle/components/Chart/components/AxisDropdown.js +1 -1
  81. package/cjs-bundle/components/Chart/components/AxisOverlay.js +1 -1
  82. package/cjs-bundle/components/Chart/components/ChartButton.js +1 -1
  83. package/cjs-bundle/components/Chart/components/ChartButtons.js +1 -1
  84. package/cjs-bundle/components/Chart/components/ChartSelect.js +1 -1
  85. package/cjs-bundle/components/Chart/components/ChartWrapper.js +1 -1
  86. package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  87. package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  88. package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js +1 -1
  89. package/cjs-bundle/components/Chart/components/buttons/PanButton.js +1 -1
  90. package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  91. package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js +1 -1
  92. package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  93. package/cjs-bundle/components/Chart/effects/useChartModifier.js +1 -1
  94. package/cjs-bundle/components/Chart/effects/useChartTypeSwitch.js +1 -1
  95. package/cjs-bundle/components/Chart/effects/useHideAxes.js +1 -1
  96. package/cjs-bundle/components/Chart/effects/useKeyboardControl.js +1 -1
  97. package/cjs-bundle/components/Chart/effects/useZoom.js +1 -1
  98. package/cjs-bundle/components/Chart/formations.js +1 -1
  99. package/cjs-bundle/components/Chart/utils.js +1 -1
  100. package/cjs-bundle/components/ChartActionsList/ChartActionsList.js +1 -1
  101. package/cjs-bundle/components/ChartActionsList/icons/GoLive.js +1 -1
  102. package/cjs-bundle/components/ChartActionsList/icons/LeftArrow.js +1 -1
  103. package/cjs-bundle/components/ChartActionsList/icons/RightArrow.js +1 -1
  104. package/cjs-bundle/components/ChartActionsList/icons/ZoomIn.js +1 -1
  105. package/cjs-bundle/components/ChartActionsList/icons/ZoomOut.js +1 -1
  106. package/cjs-bundle/components/Checkbox/index.js +1 -1
  107. package/cjs-bundle/components/CollapsableSidebar.js +1 -1
  108. package/cjs-bundle/components/CollapsibleContent.js +1 -1
  109. package/cjs-bundle/components/ColorPicker/ColorPicker.js +1 -1
  110. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/ColorSquare/ColorSquare.js +1 -1
  111. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/Palette/Palette.js +1 -1
  112. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/Palette/PaletteConstants.js +1 -1
  113. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  114. package/cjs-bundle/components/Comment/index.js +1 -1
  115. package/cjs-bundle/components/CommentInput/index.js +1 -1
  116. package/cjs-bundle/components/CommentLoader.js +1 -1
  117. package/cjs-bundle/components/CommentWrapper.js +1 -1
  118. package/cjs-bundle/components/CommentsInfo/index.js +1 -1
  119. package/cjs-bundle/components/ConfirmationDialog.js +1 -1
  120. package/cjs-bundle/components/ContextMenuItem/index.js +1 -1
  121. package/cjs-bundle/components/CopyToClipboard/CopyToClipboard.js +1 -1
  122. package/cjs-bundle/components/CustomSelect/index.js +1 -1
  123. package/cjs-bundle/components/DevCenter/AppContext.js +1 -1
  124. package/cjs-bundle/components/DevCenter/AppHeader/AppHeader.js +1 -1
  125. package/cjs-bundle/components/DevCenter/AppHeader/AppHeaderStyles.js +1 -1
  126. package/cjs-bundle/components/DevCenter/AppHeader/PadMode.js +1 -1
  127. package/cjs-bundle/components/DevCenter/AppHeader/utils.js +1 -1
  128. package/cjs-bundle/components/DevCenter/AppsDataProvider/AppsDataProvider.js +1 -1
  129. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
  130. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/useAppsData.js +1 -1
  131. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  132. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  133. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js +1 -1
  134. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.js +1 -1
  135. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  136. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  137. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
  138. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js +1 -1
  139. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js +1 -1
  140. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  141. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js +1 -1
  142. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js +1 -1
  143. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  144. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
  145. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js +1 -1
  146. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js +1 -1
  147. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsList.js +1 -1
  148. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js +1 -1
  149. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/effects/useAppSettings.js +1 -1
  150. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/utils.js +1 -1
  151. package/cjs-bundle/components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js +1 -1
  152. package/cjs-bundle/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js +1 -1
  153. package/cjs-bundle/components/DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js +1 -1
  154. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
  155. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  156. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  157. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/effects/useXProps.js +1 -1
  158. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/utils/replaceUndefinedValuesWithNull.js +1 -1
  159. package/cjs-bundle/components/DevCenter/NavigationBar/NavigationBar.js +1 -1
  160. package/cjs-bundle/components/DevCenter/SideBar/SideBar.js +1 -1
  161. package/cjs-bundle/components/DisabledSettingsMessage/DisabledSettingsMessage.js +1 -1
  162. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  163. package/cjs-bundle/components/DocumentViewer/styles.js +1 -1
  164. package/cjs-bundle/components/Drillstring/BHACasingEmptyView/BHACasingEmptyView.js +1 -1
  165. package/cjs-bundle/components/Drillstring/BHAComponentDetail/constants.js +1 -1
  166. package/cjs-bundle/components/Drillstring/BHAComponentDetail/index.js +1 -1
  167. package/cjs-bundle/components/Drillstring/BHAComponentIcon.js +1 -1
  168. package/cjs-bundle/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js +1 -1
  169. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Browser.js +1 -1
  170. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  171. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Browser.js +1 -1
  172. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  173. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  174. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Browser.js +1 -1
  175. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  176. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Browser.js +1 -1
  177. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  178. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js +1 -1
  179. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Header.js +1 -1
  180. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Browser.js +1 -1
  181. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  182. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Browser.js +1 -1
  183. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  184. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js +1 -1
  185. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Browser.js +1 -1
  186. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  187. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js +1 -1
  188. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Browser.js +1 -1
  189. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  190. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js +1 -1
  191. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Browser.js +1 -1
  192. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  193. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/SortableComponent.js +1 -1
  194. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/SortableComponents.js +1 -1
  195. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Browser.js +1 -1
  196. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  197. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Browser.js +1 -1
  198. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  199. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Suggestions/AutoCompleteDialog.js +1 -1
  200. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js +1 -1
  201. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Browser.js +1 -1
  202. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  203. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/constants.js +1 -1
  204. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.js +1 -1
  205. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  206. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js +1 -1
  207. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js +1 -1
  208. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/InputText.js +1 -1
  209. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js +1 -1
  210. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js +1 -1
  211. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js +1 -1
  212. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js +1 -1
  213. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js +1 -1
  214. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/sharedStyles.js +1 -1
  215. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/utils/calculation.js +1 -1
  216. package/cjs-bundle/components/Drillstring/BHAList/BHAList.js +1 -1
  217. package/cjs-bundle/components/Drillstring/BHASchematic.js +1 -1
  218. package/cjs-bundle/components/Drillstring/BHATable/BHAComponent.js +1 -1
  219. package/cjs-bundle/components/Drillstring/BHATable/index.js +1 -1
  220. package/cjs-bundle/components/Drillstring/BHATile/BHATile.js +1 -1
  221. package/cjs-bundle/components/Drillstring/BHATileIcon.js +1 -1
  222. package/cjs-bundle/components/Drillstring/BhaIndicator/BhaIndicator.js +1 -1
  223. package/cjs-bundle/components/Drillstring/DrillstringDetail/DrillstringDetail.js +1 -1
  224. package/cjs-bundle/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  225. package/cjs-bundle/components/EditableItem/EditableItemWithBadge/index.js +1 -1
  226. package/cjs-bundle/components/EmbeddedApp/DevCenterEmbeddedApp.js +1 -1
  227. package/cjs-bundle/components/EmbeddedApp/EmbeddedApp.js +1 -1
  228. package/cjs-bundle/components/EmbeddedApp/components/AppInfo.js +1 -1
  229. package/cjs-bundle/components/EmojiIconButton.js +1 -1
  230. package/cjs-bundle/components/EmptyState/constants.js +1 -1
  231. package/cjs-bundle/components/EmptyView/EmptyAppView/EmptyAppView.js +1 -1
  232. package/cjs-bundle/components/EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js +1 -1
  233. package/cjs-bundle/components/EmptyView/EmptyView.js +1 -1
  234. package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
  235. package/cjs-bundle/components/ErrorBoundary/ErrorBoundary.js +1 -1
  236. package/cjs-bundle/components/FailedFileUploading.js +1 -1
  237. package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
  238. package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -1
  239. package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -1
  240. package/cjs-bundle/components/FeedItem/components/Actions.js +1 -1
  241. package/cjs-bundle/components/FeedItem/components/AvatarIcon.js +1 -1
  242. package/cjs-bundle/components/FeedItem/components/Content.js +1 -1
  243. package/cjs-bundle/components/FeedItem/components/CreatedAt.js +1 -1
  244. package/cjs-bundle/components/FeedItem/components/FeedComments.js +1 -1
  245. package/cjs-bundle/components/FeedItem/components/Icon.js +1 -1
  246. package/cjs-bundle/components/FeedItem/components/LessonsLearnedLeafIcon.js +1 -1
  247. package/cjs-bundle/components/FeedItem/components/Reactions.js +1 -1
  248. package/cjs-bundle/components/FeedItem/components/RigAndWell.js +1 -1
  249. package/cjs-bundle/components/FeedItem/components/TypeAndAssetTitle.js +1 -1
  250. package/cjs-bundle/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js +1 -1
  251. package/cjs-bundle/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.js +1 -1
  252. package/cjs-bundle/components/FeedItem/editModals/LessonsLearnedEdit/LessonsLearnedEdit.js +1 -1
  253. package/cjs-bundle/components/FeedItem/editModals/NptLessonsCommentEdit/NptLessonsCommentEdit.js +1 -1
  254. package/cjs-bundle/components/FeedItem/editModals/PCCommentEdit/PCCommentEdit.js +1 -1
  255. package/cjs-bundle/components/FeedItem/feedItemTypes/AlertFeedItem.js +1 -1
  256. package/cjs-bundle/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/helpers.js +1 -1
  257. package/cjs-bundle/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js +1 -1
  258. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js +1 -1
  259. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaNumber.js +1 -1
  260. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaSchematic.js +1 -1
  261. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js +1 -1
  262. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/NoData.js +1 -1
  263. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js +1 -1
  264. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionDocumentFeedItem.js +1 -1
  265. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionNptFeedItem.js +1 -1
  266. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js +1 -1
  267. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js +1 -1
  268. package/cjs-bundle/components/FeedItem/feedItemTypes/DepthCommentFeedItem.js +1 -1
  269. package/cjs-bundle/components/FeedItem/feedItemTypes/DocumentFeedItem.js +1 -1
  270. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.js +1 -1
  271. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js +1 -1
  272. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js +1 -1
  273. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js +1 -1
  274. package/cjs-bundle/components/FeedItem/feedItemTypes/DvDCommentFeedItem.js +1 -1
  275. package/cjs-bundle/components/FeedItem/feedItemTypes/FluidReportFeedItem.js +1 -1
  276. package/cjs-bundle/components/FeedItem/feedItemTypes/GeosteeringFeedItem.js +1 -1
  277. package/cjs-bundle/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js +1 -1
  278. package/cjs-bundle/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js +1 -1
  279. package/cjs-bundle/components/FeedItem/feedItemTypes/NptFeedItem.js +1 -1
  280. package/cjs-bundle/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js +1 -1
  281. package/cjs-bundle/components/FeedItem/feedItemTypes/PCCommentFeedItem.js +1 -1
  282. package/cjs-bundle/components/FeedItem/feedItemTypes/PostFeedItem.js +1 -1
  283. package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/api.js +1 -1
  284. package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/NoData.js +1 -1
  285. package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Predictions.js +1 -1
  286. package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/PredictionsItem.js +1 -1
  287. package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/Stages.js +1 -1
  288. package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/utils.js +1 -1
  289. package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/index.js +1 -1
  290. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/api.js +1 -1
  291. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +1 -1
  292. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js +1 -1
  293. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.js +1 -1
  294. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js +1 -1
  295. package/cjs-bundle/components/FeedItem/feedItemTypes/TracesMemoFeedItem.js +1 -1
  296. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js +1 -1
  297. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/VerticalSectionAzimuth.js +1 -1
  298. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.js +1 -1
  299. package/cjs-bundle/components/FilePreview/index.js +1 -1
  300. package/cjs-bundle/components/FileTypeIcon.js +1 -1
  301. package/cjs-bundle/components/FileUploadIconButton.js +1 -1
  302. package/cjs-bundle/components/FilesLoader/Icons/CSVFileIcon.js +1 -1
  303. package/cjs-bundle/components/FilesLoader/Icons/DocFileIcon.js +1 -1
  304. package/cjs-bundle/components/FilesLoader/Icons/EDMFileIcon.js +1 -1
  305. package/cjs-bundle/components/FilesLoader/Icons/ExelFileIcon.js +1 -1
  306. package/cjs-bundle/components/FilesLoader/Icons/FileIcon.js +1 -1
  307. package/cjs-bundle/components/FilesLoader/Icons/IconRefresh.js +1 -1
  308. package/cjs-bundle/components/FilesLoader/Icons/IconSuccess.js +1 -1
  309. package/cjs-bundle/components/FilesLoader/Icons/IconWarning.js +1 -1
  310. package/cjs-bundle/components/FilesLoader/Icons/ImageFileIcon.js +1 -1
  311. package/cjs-bundle/components/FilesLoader/Icons/PdfFileIcon.js +1 -1
  312. package/cjs-bundle/components/FilesLoader/Icons/UnknownFileIcon.js +1 -1
  313. package/cjs-bundle/components/FilesLoader/Icons/UploadIcon.js +1 -1
  314. package/cjs-bundle/components/FilesLoader/useStyles.js +1 -1
  315. package/cjs-bundle/components/FolderMenuItem/components/ClosedFolderIcon.js +1 -1
  316. package/cjs-bundle/components/FolderMenuItem/components/FolderIcon.js +1 -1
  317. package/cjs-bundle/components/FolderMenuItem/components/OpenFolderIcon.js +1 -1
  318. package/cjs-bundle/components/FolderMenuItem/index.js +1 -1
  319. package/cjs-bundle/components/FolderMenuItemWithLinks/index.js +1 -1
  320. package/cjs-bundle/components/GoogleDocsViewer/index.js +1 -1
  321. package/cjs-bundle/components/GradientManager/GradientManager.styles.js +1 -1
  322. package/cjs-bundle/components/GradientManager/GradientSelect.styles.js +1 -1
  323. package/cjs-bundle/components/GradientPicker/GradientPicker.js +1 -1
  324. package/cjs-bundle/components/GradientPicker/GradientPicker.styles.js +1 -1
  325. package/cjs-bundle/components/HeaderLayout/HeaderLayout.js +1 -1
  326. package/cjs-bundle/components/HeaderLayout/effects/index.js +1 -1
  327. package/cjs-bundle/components/HeaderLayout/utils.js +1 -1
  328. package/cjs-bundle/components/HelpCenter/HelpCenterIcon.js +1 -1
  329. package/cjs-bundle/components/IconMenu/index.js +1 -1
  330. package/cjs-bundle/components/Icons/AnnotationIcon.js +1 -1
  331. package/cjs-bundle/components/Icons/AttachIcon.js +1 -1
  332. package/cjs-bundle/components/Icons/DangerousIcon.js +1 -1
  333. package/cjs-bundle/components/Icons/EmojiIcon.js +1 -1
  334. package/cjs-bundle/components/Icons/RecommendationIcon.js +1 -1
  335. package/cjs-bundle/components/Icons/SendIcon.js +1 -1
  336. package/cjs-bundle/components/ImageViewer/index.js +1 -1
  337. package/cjs-bundle/components/InfiniteList/index.js +1 -1
  338. package/cjs-bundle/components/KeyboardDateTimePicker.js +1 -1
  339. package/cjs-bundle/components/LabelsCounter/LabelsCounter.js +1 -1
  340. package/cjs-bundle/components/MenuItem/index.js +1 -1
  341. package/cjs-bundle/components/MiddleTruncate/MiddleTruncate.js +1 -1
  342. package/cjs-bundle/components/MiddleTruncate/utils.js +1 -1
  343. package/cjs-bundle/components/OffsetWellChips/icons/SubjectIcon.js +1 -1
  344. package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js +1 -1
  345. package/cjs-bundle/components/OffsetWellMap/WellTooltip.js +1 -1
  346. package/cjs-bundle/components/OffsetWellMap/effects/usePreviousWells.js +1 -1
  347. package/cjs-bundle/components/OffsetWellMap/utils.js +1 -1
  348. package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  349. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.js +1 -1
  350. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/MultiSelect.js +1 -1
  351. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
  352. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/RadiusInput.js +1 -1
  353. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  354. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SingleSelect.js +1 -1
  355. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.js +1 -1
  356. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.js +1 -1
  357. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  358. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/index.js +1 -1
  359. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
  360. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/index.js +1 -1
  361. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/popupGenerator.js +1 -1
  362. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  363. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsSelect.js +1 -1
  364. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/index.js +1 -1
  365. package/cjs-bundle/components/OffsetWellPickerV2/constants.js +1 -1
  366. package/cjs-bundle/components/OffsetWellPickerV2/effects/biDirectionalFiltering.js +1 -1
  367. package/cjs-bundle/components/OffsetWellPickerV2/effects/index.js +1 -1
  368. package/cjs-bundle/components/OffsetWellPickerV2/utils/apiCalls.js +1 -1
  369. package/cjs-bundle/components/OffsetWellPickerV2/utils/index.js +1 -1
  370. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/ClearFiltersButton.js +1 -1
  371. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/MultiSelect.js +1 -1
  372. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/RadiusInput.js +1 -1
  373. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  374. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -1
  375. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/FormationsLegend.js +1 -1
  376. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
  377. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js +1 -1
  378. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/popupGenerator.js +1 -1
  379. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/utils.js +1 -1
  380. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.js +1 -1
  381. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetResultSection.js +1 -1
  382. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetTypesSection.js +1 -1
  383. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  384. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/constants.js +1 -1
  385. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/effects/useAssetsData.js +1 -1
  386. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  387. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsSelect.js +1 -1
  388. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/SubjectIndicator.js +1 -1
  389. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js +1 -1
  390. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/styles.js +1 -1
  391. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js +1 -1
  392. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/effects/biDirectionalFiltering.js +1 -1
  393. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js +1 -1
  394. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  395. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  396. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  397. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  398. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  399. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  400. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.js +1 -1
  401. package/cjs-bundle/components/OffsetWellPickerV3/effects/index.js +1 -1
  402. package/cjs-bundle/components/OffsetWellPickerV3/index.js +1 -1
  403. package/cjs-bundle/components/OffsetWellPickerV3/utils/apiCalls.js +1 -1
  404. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  405. package/cjs-bundle/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js +1 -1
  406. package/cjs-bundle/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.js +1 -1
  407. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  408. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/MultiSelect.js +1 -1
  409. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/PeriodSelect.js +1 -1
  410. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/RadiusInput.js +1 -1
  411. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/SingleSelect.js +1 -1
  412. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/WellSection.js +1 -1
  413. package/cjs-bundle/components/OffsetWellPickerV4/components/Map/WellsMap.js +1 -1
  414. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  415. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -1
  416. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetTypesSection.js +1 -1
  417. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
  418. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js +1 -1
  419. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.js +1 -1
  420. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  421. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  422. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
  423. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
  424. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.js +1 -1
  425. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/ViewWellSectionsName.js +1 -1
  426. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  427. package/cjs-bundle/components/OffsetWellPickerV4/constants.js +1 -1
  428. package/cjs-bundle/components/OffsetWellPickerV4/effects/useAdvancedWells.js +1 -1
  429. package/cjs-bundle/components/OffsetWellPickerV4/effects/useAssetsData.js +1 -1
  430. package/cjs-bundle/components/OffsetWellPickerV4/effects/useBicWells.js +1 -1
  431. package/cjs-bundle/components/OffsetWellPickerV4/effects/useCompanyMetricKey.js +1 -1
  432. package/cjs-bundle/components/OffsetWellPickerV4/effects/useFetchWells.js +1 -1
  433. package/cjs-bundle/components/OffsetWellPickerV4/effects/useFilterOptions.js +1 -1
  434. package/cjs-bundle/components/OffsetWellPickerV4/effects/useFilteredWells.js +1 -1
  435. package/cjs-bundle/components/OffsetWellPickerV4/effects/useSortedWells.js +1 -1
  436. package/cjs-bundle/components/OffsetWellPickerV4/effects/useTableColumns.js +1 -1
  437. package/cjs-bundle/components/OffsetWellPickerV4/utils/apiCalls.js +1 -1
  438. package/cjs-bundle/components/OffsetWellPickerV4/utils/index.js +1 -1
  439. package/cjs-bundle/components/OffsetWellPickerV4/utils/timePeriod.js +1 -1
  440. package/cjs-bundle/components/OffsetWellPickerV4/utils/unitSystem.js +1 -1
  441. package/cjs-bundle/components/PadModeSelect/PadModeSelect.js +1 -1
  442. package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetChip.js +1 -1
  443. package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetsListExpander.js +1 -1
  444. package/cjs-bundle/components/PadOffsetsPicker/PadOffsetsPicker.js +1 -1
  445. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  446. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  447. package/cjs-bundle/components/PadOffsetsPickerV2/useDialogState.js +1 -1
  448. package/cjs-bundle/components/ParameterCharts/AddEditTrack.js +1 -1
  449. package/cjs-bundle/components/ParameterCharts/ChartsContext.js +1 -1
  450. package/cjs-bundle/components/ParameterCharts/ParameterCharts.js +1 -1
  451. package/cjs-bundle/components/ParameterCharts/SettingsContext.js +1 -1
  452. package/cjs-bundle/components/ParameterCharts/components/ChartContainer.js +1 -1
  453. package/cjs-bundle/components/ParameterCharts/components/Charts/EmptyChart.js +1 -1
  454. package/cjs-bundle/components/ParameterCharts/components/Charts/LineChart.js +1 -1
  455. package/cjs-bundle/components/ParameterCharts/components/Charts/options.js +1 -1
  456. package/cjs-bundle/components/ParameterCharts/components/DataLoadingIndicator.js +1 -1
  457. package/cjs-bundle/components/ParameterCharts/components/SingleChannelTrackSettings.js +1 -1
  458. package/cjs-bundle/components/ParameterCharts/components/Tooltip/CursorPositioner.js +1 -1
  459. package/cjs-bundle/components/ParameterCharts/components/Tooltip/Tooltip.js +1 -1
  460. package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js +1 -1
  461. package/cjs-bundle/components/ParameterCharts/components/TraceSelect.js +1 -1
  462. package/cjs-bundle/components/ParameterCharts/components/TraceSettings.js +1 -1
  463. package/cjs-bundle/components/ParameterCharts/components/Track.js +1 -1
  464. package/cjs-bundle/components/ParameterCharts/components/TrackSettings.js +1 -1
  465. package/cjs-bundle/components/ParameterCharts/utils/dataParser.js +1 -1
  466. package/cjs-bundle/components/PinnableFilters/PinnableFilters.js +1 -1
  467. package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js +1 -1
  468. package/cjs-bundle/components/PinnableFilters/components/PinAppSwitch.js +1 -1
  469. package/cjs-bundle/components/PinnableFilters/effects/index.js +1 -1
  470. package/cjs-bundle/components/PinnableFilters/utils.js +1 -1
  471. package/cjs-bundle/components/Popover/Popover.js +1 -1
  472. package/cjs-bundle/components/Popper/Popper.js +1 -1
  473. package/cjs-bundle/components/PostInput/PostInput.js +1 -1
  474. package/cjs-bundle/components/PostPreviewDialog/index.js +1 -1
  475. package/cjs-bundle/components/PriceInput/FormattedNumber.js +1 -1
  476. package/cjs-bundle/components/PriceInput/PriceInput.js +1 -1
  477. package/cjs-bundle/components/RangeSlider/inputs/FromInput.js +1 -1
  478. package/cjs-bundle/components/RangeSlider/inputs/ToInput.js +1 -1
  479. package/cjs-bundle/components/RangeSlider/strategies/horizontal.js +1 -1
  480. package/cjs-bundle/components/RangeSlider/strategies/vertical.js +1 -1
  481. package/cjs-bundle/components/RangeSlider/utils.js +1 -1
  482. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  483. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -1
  484. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  485. package/cjs-bundle/components/Search/Search.js +1 -1
  486. package/cjs-bundle/components/Search/components/Groups.js +1 -1
  487. package/cjs-bundle/components/Search/components/InputAdornmentLeft.js +1 -1
  488. package/cjs-bundle/components/Search/components/Listbox.js +1 -1
  489. package/cjs-bundle/components/Search/components/Paper.js +1 -1
  490. package/cjs-bundle/components/Search/components/RecentSearches.js +1 -1
  491. package/cjs-bundle/components/Search/context/index.js +1 -1
  492. package/cjs-bundle/components/SearchInput/index.js +1 -1
  493. package/cjs-bundle/components/SettingEditors/DropdownEditor/index.js +1 -1
  494. package/cjs-bundle/components/SlateFormattedText/Elements/ImageElement/ImageElement.js +1 -1
  495. package/cjs-bundle/components/SlateFormattedText/Elements/VideoElement/VideoElement.js +1 -1
  496. package/cjs-bundle/components/SlateFormattedText/RenderElements.js +1 -1
  497. package/cjs-bundle/components/SlateFormattedText/SlateFormattedText.js +1 -1
  498. package/cjs-bundle/components/SlateFormattedText/utils.js +1 -1
  499. package/cjs-bundle/components/StageDesignVActual/ComparisonBar/ComparisonBar.js +1 -1
  500. package/cjs-bundle/components/StageDesignVActual/ComparisonBar/utils.js +1 -1
  501. package/cjs-bundle/components/StageDesignVActual/ComparisonHeader.js +1 -1
  502. package/cjs-bundle/components/StageDesignVActual/ComparisonRow.js +1 -1
  503. package/cjs-bundle/components/StageDesignVActual/ElementsComparison/ElementsComparison.js +1 -1
  504. package/cjs-bundle/components/StageDesignVActual/ElementsComparison/utils.js +1 -1
  505. package/cjs-bundle/components/StatusBadge/styles.js +1 -1
  506. package/cjs-bundle/components/StyledMenuItem/index.js +1 -1
  507. package/cjs-bundle/components/Table/TableCell/TableCell.js +1 -1
  508. package/cjs-bundle/components/Table/TableContainer/TableContainer.js +1 -1
  509. package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  510. package/cjs-bundle/components/Table/TableToolbar/TableToolbar.js +1 -1
  511. package/cjs-bundle/components/Tabs/Tab.js +1 -1
  512. package/cjs-bundle/components/Template/TemplatePopover/Styles.js +1 -1
  513. package/cjs-bundle/components/Template/TemplatePopover/index.js +1 -1
  514. package/cjs-bundle/components/Template/TemplateSharingDialog/ChipSelector.js +1 -1
  515. package/cjs-bundle/components/Template/TemplateSharingDialog/UsersChipSelector.js +1 -1
  516. package/cjs-bundle/components/Template/TemplateSharingDialog/index.js +1 -1
  517. package/cjs-bundle/components/TextField/effects/index.js +1 -1
  518. package/cjs-bundle/components/TextField/index.js +1 -1
  519. package/cjs-bundle/components/TextLink/index.js +1 -1
  520. package/cjs-bundle/components/TracesEditModal/TracesEditModal.js +1 -1
  521. package/cjs-bundle/components/TracesEditModal/TracesEditModalContainer.js +1 -1
  522. package/cjs-bundle/components/TruncatedText/index.js +1 -1
  523. package/cjs-bundle/components/Typography.js +1 -1
  524. package/cjs-bundle/components/UserCard/index.js +1 -1
  525. package/cjs-bundle/components/UserCardPopover.js +1 -1
  526. package/cjs-bundle/components/UserMention/index.js +1 -1
  527. package/cjs-bundle/components/UserMention/utils/index.js +1 -1
  528. package/cjs-bundle/components/VirtualizedTable/CustomizeColumnsDialog.js +1 -1
  529. package/cjs-bundle/components/VirtualizedTable/DraggableList.js +1 -1
  530. package/cjs-bundle/components/VirtualizedTable/VirtualizedTable.js +1 -1
  531. package/cjs-bundle/components/VirtualizedTable/index.js +1 -1
  532. package/cjs-bundle/components/WellSummary/ActivitySummaryChart.js +1 -1
  533. package/cjs-bundle/components/WellSummary/FracWirelineTimeChart.js +1 -1
  534. package/cjs-bundle/components/WellSummary/WellSummaryItemLabel.js +1 -1
  535. package/cjs-bundle/components/WellSummary/WellSummaryItemTitle.js +1 -1
  536. package/cjs-bundle/components/WellSummary/WellSummaryItemValue.js +1 -1
  537. package/cjs-bundle/components/WellSummary/effects/useWellSummaryData.js +1 -1
  538. package/cjs-bundle/components/WellSummary/utils.js +1 -1
  539. package/cjs-bundle/config/highcharts/highcharts-contour.js +1 -1
  540. package/cjs-bundle/config/mapbox/index.js +1 -1
  541. package/cjs-bundle/config/theme/accordionOverrides.js +1 -1
  542. package/cjs-bundle/config/theme/buttonOverrides.js +1 -1
  543. package/cjs-bundle/config/theme/checkboxOverrides.js +1 -1
  544. package/cjs-bundle/config/theme/chipOverrides.js +1 -1
  545. package/cjs-bundle/config/theme/dateTimePickerThemeOverrides.js +1 -1
  546. package/cjs-bundle/config/theme/fabOverrides.js +1 -1
  547. package/cjs-bundle/config/theme/index.js +1 -1
  548. package/cjs-bundle/config/theme/radioOverrides.js +1 -1
  549. package/cjs-bundle/config/theme/tableOverrides.js +1 -1
  550. package/cjs-bundle/config/theme/textFieldOverrides.js +1 -1
  551. package/cjs-bundle/config/theme/toggleButtonsGroupOverrides.js +1 -1
  552. package/cjs-bundle/constants/alerts.js +1 -1
  553. package/cjs-bundle/constants/appPackages.js +1 -1
  554. package/cjs-bundle/constants/apps.js +1 -1
  555. package/cjs-bundle/constants/bha.js +1 -1
  556. package/cjs-bundle/constants/completion.js +1 -1
  557. package/cjs-bundle/constants/componentsSettings.js +1 -1
  558. package/cjs-bundle/constants/corvaCompanyId.js +1 -1
  559. package/cjs-bundle/constants/drillstring.js +1 -1
  560. package/cjs-bundle/constants/feed.js +1 -1
  561. package/cjs-bundle/constants/goals.js +1 -1
  562. package/cjs-bundle/constants/notifications.js +1 -1
  563. package/cjs-bundle/constants/segment.js +1 -1
  564. package/cjs-bundle/constants/wellSummary.js +1 -1
  565. package/cjs-bundle/effects/useDevCenterApp.js +1 -1
  566. package/cjs-bundle/effects/useEscPress.js +1 -1
  567. package/cjs-bundle/effects/useResizeObserver.js +1 -1
  568. package/cjs-bundle/effects/useSharedDCStore.js +1 -1
  569. package/cjs-bundle/effects/useSignedURL.js +1 -1
  570. package/cjs-bundle/effects/useSubscriptions.js +1 -1
  571. package/cjs-bundle/hocs/withAssetEditorLockHOC.js +1 -1
  572. package/cjs-bundle/hocs/withMUIProvidersHOC.js +1 -1
  573. package/cjs-bundle/permissions/PermissionsContext.js +1 -1
  574. package/cjs-bundle/permissions/ProvidePermissions.js +1 -1
  575. package/cjs-bundle/permissions/constants/index.js +1 -1
  576. package/cjs-bundle/permissions/usePermissions.js +1 -1
  577. package/cjs-bundle/permissions/useProvidePermissions.js +1 -1
  578. package/cjs-bundle/permissions/utils.js +1 -1
  579. package/cjs-bundle/permissions/withPermissionsHOC.js +1 -1
  580. package/cjs-bundle/styles/globalStyles.js +1 -1
  581. package/cjs-bundle/styles/typography/index.js +1 -1
  582. package/cjs-bundle/utils/DrillstringUtils.js +1 -1
  583. package/cjs-bundle/utils/FluidCheckUtils.js +1 -1
  584. package/cjs-bundle/utils/StageDesignVActualUtils.js +1 -1
  585. package/cjs-bundle/utils/accuracy.js +1 -1
  586. package/cjs-bundle/utils/alerts.js +1 -1
  587. package/cjs-bundle/utils/apps.js +1 -1
  588. package/cjs-bundle/utils/audio.js +1 -1
  589. package/cjs-bundle/utils/bha.js +1 -1
  590. package/cjs-bundle/utils/casing/conversion.js +1 -1
  591. package/cjs-bundle/utils/casing/validation.js +1 -1
  592. package/cjs-bundle/utils/chartSeries.js +1 -1
  593. package/cjs-bundle/utils/completion.js +1 -1
  594. package/cjs-bundle/utils/components.js +1 -1
  595. package/cjs-bundle/utils/convert.js +1 -1
  596. package/cjs-bundle/utils/convertKeys.js +1 -1
  597. package/cjs-bundle/utils/csvExport.js +1 -1
  598. package/cjs-bundle/utils/dashboardReports.js +1 -1
  599. package/cjs-bundle/utils/delay.js +1 -1
  600. package/cjs-bundle/utils/devcenter.js +1 -1
  601. package/cjs-bundle/utils/devcenterToasts.js +1 -1
  602. package/cjs-bundle/utils/drillstring/conversion.js +1 -1
  603. package/cjs-bundle/utils/drillstring/schematic.js +1 -1
  604. package/cjs-bundle/utils/drillstring/validation.js +1 -1
  605. package/cjs-bundle/utils/env.js +1 -1
  606. package/cjs-bundle/utils/feed.js +1 -1
  607. package/cjs-bundle/utils/fileExtension.js +1 -1
  608. package/cjs-bundle/utils/formatting.js +1 -1
  609. package/cjs-bundle/utils/ga.js +1 -1
  610. package/cjs-bundle/utils/goals.js +1 -1
  611. package/cjs-bundle/utils/index.js +1 -1
  612. package/cjs-bundle/utils/jsonaDataFormatter.js +1 -1
  613. package/cjs-bundle/utils/lasParser.js +1 -1
  614. package/cjs-bundle/utils/localStorage.js +1 -1
  615. package/cjs-bundle/utils/main.js +1 -1
  616. package/cjs-bundle/utils/mapUnits.js +1 -1
  617. package/cjs-bundle/utils/mapbox.js +1 -1
  618. package/cjs-bundle/utils/metrics/index.js +1 -1
  619. package/cjs-bundle/utils/metrics/metricsConfig.js +1 -1
  620. package/cjs-bundle/utils/metrics/utils.js +1 -1
  621. package/cjs-bundle/utils/mobileDetect.js +1 -1
  622. package/cjs-bundle/utils/nativeMessages.js +1 -1
  623. package/cjs-bundle/utils/notificationToasts.js +1 -1
  624. package/cjs-bundle/utils/notifications.js +1 -1
  625. package/cjs-bundle/utils/permissions.js +1 -1
  626. package/cjs-bundle/utils/reports.js +1 -1
  627. package/cjs-bundle/utils/resolveWellHubSlug.js +1 -1
  628. package/cjs-bundle/utils/sharedDCStore.js +1 -1
  629. package/cjs-bundle/utils/themeVariables.js +1 -1
  630. package/cjs-bundle/utils/time.js +1 -1
  631. package/cjs-bundle/utils/torqueAndHookloadUtils.js +1 -1
  632. package/clients/api/apiCore.js +1 -1
  633. package/clients/api/httpMessages.js +1 -1
  634. package/clients/clientStorage/core.js +1 -1
  635. package/clients/clientStorage/index.js +1 -1
  636. package/clients/constants.js +1 -1
  637. package/clients/index.js +1 -1
  638. package/clients/jsonApi/index.js +1 -1
  639. package/clients/subscriptions.js +1 -1
  640. package/clients/utils.js +1 -1
  641. package/components/AddComment/Popover.js +1 -1
  642. package/components/AddComment/Popup.js +1 -1
  643. package/components/AddComment/components/Content.js +1 -1
  644. package/components/AdvancedSlider/AdvancedSlider.js +1 -1
  645. package/components/AdvancedSlider/Handle.js +1 -1
  646. package/components/AnchorsList/AnchorsList.js +1 -1
  647. package/components/Annotations/AnnotationsContext.js +1 -1
  648. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  649. package/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
  650. package/components/Annotations/components/AnnotationsList/components/AnnotationComments/index.js +1 -1
  651. package/components/Annotations/components/AnnotationsList/components/AnnotationInput/StyledSelect.js +1 -1
  652. package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js +1 -1
  653. package/components/Annotations/components/AnnotationsList/index.js +1 -1
  654. package/components/Annotations/components/LastAnnotation/index.js +1 -1
  655. package/components/Annotations/constants.js +1 -1
  656. package/components/AppIcon/assets/DrillingAppIcon.js +1 -1
  657. package/components/AppIcon/utils.js +1 -1
  658. package/components/AppVersionsSelect/AppVersionsSelect.d.ts.map +1 -1
  659. package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
  660. package/components/AppVersionsSelect/effects/index.js +1 -1
  661. package/components/AssetEditor/AssetEditorAutocomplete.d.ts +3 -3
  662. package/components/AssetEditor/AssetEditorAutocomplete.js +1 -1
  663. package/components/AssetEditor/SingleAssetEditor.d.ts +2 -2
  664. package/components/AssetEditor/SingleAssetEditor.js +1 -1
  665. package/components/AssetEditor/constants.js +1 -1
  666. package/components/AssetEditor/effects/index.d.ts +1 -1
  667. package/components/AssetEditor/effects/index.js +1 -1
  668. package/components/AssetEditor/index.js +1 -1
  669. package/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
  670. package/components/AssetEditorV2/components/PrimaryAssetSelect.js +1 -1
  671. package/components/AssetEditorV2/components/PrimaryAssetSelectV2.js +1 -1
  672. package/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
  673. package/components/AssetEditorV2/components/SelectItem.js +1 -1
  674. package/components/AssetEditorV2/constants.js +1 -1
  675. package/components/AssetEditorV2/effects/index.js +1 -1
  676. package/components/AssetEditorV2/effects/usePrimaryAssetSelectData.d.ts.map +1 -1
  677. package/components/AssetEditorV2/effects/usePrimaryAssetSelectData.js +1 -1
  678. package/components/AssetEditorV2/index.d.ts +2 -2
  679. package/components/AssetEditorV2/index.js +1 -1
  680. package/components/AssetEditorV2/utils/index.d.ts +2 -2
  681. package/components/AssetEditorV2/utils/index.js +1 -1
  682. package/components/AssetNameLabel/AssetNameLabel.js +1 -1
  683. package/components/Attachment/index.js +1 -1
  684. package/components/Autocomplete/Autocomplete.js +1 -1
  685. package/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
  686. package/components/BICOffsetPickerDialog/components/Map/index.js +1 -1
  687. package/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js +1 -1
  688. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetResultSection.js +1 -1
  689. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetTypesSection.js +1 -1
  690. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  691. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/constants.js +1 -1
  692. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/effects/useAssetsData.js +1 -1
  693. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/utils/apiCalls.js +1 -1
  694. package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js +1 -1
  695. package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +1 -1
  696. package/components/BICOffsetPickerDialog/components/WellSection/WellListItem.js +1 -1
  697. package/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
  698. package/components/BICOffsetPickerDialog/constants.js +1 -1
  699. package/components/BICOffsetPickerDialog/effects/index.js +1 -1
  700. package/components/BICOffsetPickerDialog/index.js +1 -1
  701. package/components/BICOffsetPickerDialog/utils/apiCalls.js +1 -1
  702. package/components/Breadcrumbs/index.js +1 -1
  703. package/components/Casing/CasingComponentIcon.js +1 -1
  704. package/components/Casing/CasingTable/CasingComponent.js +1 -1
  705. package/components/Casing/CasingTable/index.js +1 -1
  706. package/components/Casing/CasingTableV2/CasingTableV2.js +1 -1
  707. package/components/Casing/CasingTableV2/components/CasingJoints/Browser.js +1 -1
  708. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  709. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  710. package/components/Casing/CasingTableV2/components/DrillPipe/Browser.js +1 -1
  711. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  712. package/components/Casing/CasingTableV2/components/EditComponentDialog.js +1 -1
  713. package/components/Casing/CasingTableV2/components/Header.js +1 -1
  714. package/components/Casing/CasingTableV2/components/SortableComponent.js +1 -1
  715. package/components/Casing/CasingTableV2/components/SortableComponents.js +1 -1
  716. package/components/Casing/CasingTableV2/components/constants.js +1 -1
  717. package/components/Casing/CasingTile/CasingTile.js +1 -1
  718. package/components/Casing/CasingTile/style.js +1 -1
  719. package/components/Casing/CasingTileIcon.js +1 -1
  720. package/components/Chart/ChartWrapperContext.js +1 -1
  721. package/components/Chart/components/AxisDropdown.js +1 -1
  722. package/components/Chart/components/AxisOverlay.js +1 -1
  723. package/components/Chart/components/ChartButton.js +1 -1
  724. package/components/Chart/components/ChartButtons.js +1 -1
  725. package/components/Chart/components/ChartSelect.js +1 -1
  726. package/components/Chart/components/ChartWrapper.js +1 -1
  727. package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  728. package/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  729. package/components/Chart/components/buttons/HideAxesButton.js +1 -1
  730. package/components/Chart/components/buttons/PanButton.js +1 -1
  731. package/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  732. package/components/Chart/components/buttons/ZoomInButton.js +1 -1
  733. package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  734. package/components/Chart/constants.js +1 -1
  735. package/components/Chart/effects/useChartModifier.js +1 -1
  736. package/components/Chart/effects/useChartTypeSwitch.js +1 -1
  737. package/components/Chart/effects/useHideAxes.js +1 -1
  738. package/components/Chart/effects/useKeyboardControl.js +1 -1
  739. package/components/Chart/effects/useZoom.js +1 -1
  740. package/components/Chart/formations.js +1 -1
  741. package/components/Chart/utils.js +1 -1
  742. package/components/ChartActionsList/ChartActionsList.js +1 -1
  743. package/components/ChartActionsList/icons/GoLive.js +1 -1
  744. package/components/ChartActionsList/icons/LeftArrow.js +1 -1
  745. package/components/ChartActionsList/icons/RightArrow.js +1 -1
  746. package/components/ChartActionsList/icons/ZoomIn.js +1 -1
  747. package/components/ChartActionsList/icons/ZoomOut.js +1 -1
  748. package/components/Checkbox/index.js +1 -1
  749. package/components/CollapsableSidebar.js +1 -1
  750. package/components/CollapsibleContent.js +1 -1
  751. package/components/ColorPicker/PaletteChromePicker/ColorSquare/ColorSquare.js +1 -1
  752. package/components/ColorPicker/PaletteChromePicker/Palette/Palette.js +1 -1
  753. package/components/ColorPicker/PaletteChromePicker/Palette/PaletteConstants.js +1 -1
  754. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  755. package/components/Comment/index.js +1 -1
  756. package/components/CommentInput/index.js +1 -1
  757. package/components/CommentLoader.js +1 -1
  758. package/components/CommentWrapper.js +1 -1
  759. package/components/CommentsInfo/index.js +1 -1
  760. package/components/ConfirmationDialog.js +1 -1
  761. package/components/ContextMenuItem/index.js +1 -1
  762. package/components/CopyToClipboard/CopyToClipboard.js +1 -1
  763. package/components/CustomSelect/index.js +1 -1
  764. package/components/DevCenter/AppContext.js +1 -1
  765. package/components/DevCenter/AppHeader/AppHeader.js +1 -1
  766. package/components/DevCenter/AppHeader/AppHeaderStyles.js +1 -1
  767. package/components/DevCenter/AppHeader/PadMode.js +1 -1
  768. package/components/DevCenter/AppHeader/utils.js +1 -1
  769. package/components/DevCenter/AppsDataProvider/AppsDataProvider.js +1 -1
  770. package/components/DevCenter/AppsDataProvider/effects/constants.js +1 -1
  771. package/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
  772. package/components/DevCenter/AppsDataProvider/effects/useAppsData.js +1 -1
  773. package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  774. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  775. package/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js +1 -1
  776. package/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.js +1 -1
  777. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.d.ts +1 -1
  778. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  779. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts.map +1 -1
  780. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  781. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
  782. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js +1 -1
  783. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.d.ts +47 -0
  784. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.d.ts.map +1 -0
  785. package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js +1 -1
  786. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  787. package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js +1 -1
  788. package/components/DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js +1 -1
  789. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  790. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
  791. package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js +1 -1
  792. package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js +1 -1
  793. package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsList.js +1 -1
  794. package/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js +1 -1
  795. package/components/DevCenter/DevCenterAppContainer/effects/useAppSettings.js +1 -1
  796. package/components/DevCenter/DevCenterAppContainer/utils.js +1 -1
  797. package/components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js +1 -1
  798. package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js +1 -1
  799. package/components/DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js +1 -1
  800. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
  801. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  802. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  803. package/components/DevCenter/IsolatedDevCenterAppContainer/constants.js +1 -1
  804. package/components/DevCenter/IsolatedDevCenterAppContainer/effects/useXProps.js +1 -1
  805. package/components/DevCenter/IsolatedDevCenterAppContainer/utils/replaceUndefinedValuesWithNull.js +1 -1
  806. package/components/DevCenter/NavigationBar/NavigationBar.js +1 -1
  807. package/components/DevCenter/SideBar/SideBar.js +1 -1
  808. package/components/DisabledSettingsMessage/DisabledSettingsMessage.js +1 -1
  809. package/components/DocumentViewer/DocumentViewer.js +1 -1
  810. package/components/DocumentViewer/styles.js +1 -1
  811. package/components/Drillstring/BHACasingEmptyView/BHACasingEmptyView.js +1 -1
  812. package/components/Drillstring/BHAComponentDetail/constants.js +1 -1
  813. package/components/Drillstring/BHAComponentDetail/index.js +1 -1
  814. package/components/Drillstring/BHAComponentIcon.js +1 -1
  815. package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js +1 -1
  816. package/components/Drillstring/BHAComponentsTable/components/Agitator/Browser.js +1 -1
  817. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  818. package/components/Drillstring/BHAComponentsTable/components/Bit/Browser.js +1 -1
  819. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  820. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  821. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Browser.js +1 -1
  822. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  823. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Browser.js +1 -1
  824. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  825. package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js +1 -1
  826. package/components/Drillstring/BHAComponentsTable/components/Header.js +1 -1
  827. package/components/Drillstring/BHAComponentsTable/components/Jar/Browser.js +1 -1
  828. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  829. package/components/Drillstring/BHAComponentsTable/components/Lwd/Browser.js +1 -1
  830. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  831. package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js +1 -1
  832. package/components/Drillstring/BHAComponentsTable/components/Mwd/Browser.js +1 -1
  833. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  834. package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js +1 -1
  835. package/components/Drillstring/BHAComponentsTable/components/Pdm/Browser.js +1 -1
  836. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  837. package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js +1 -1
  838. package/components/Drillstring/BHAComponentsTable/components/Rss/Browser.js +1 -1
  839. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  840. package/components/Drillstring/BHAComponentsTable/components/SortableComponent.js +1 -1
  841. package/components/Drillstring/BHAComponentsTable/components/SortableComponents.js +1 -1
  842. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Browser.js +1 -1
  843. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  844. package/components/Drillstring/BHAComponentsTable/components/Sub/Browser.js +1 -1
  845. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  846. package/components/Drillstring/BHAComponentsTable/components/Suggestions/AutoCompleteDialog.js +1 -1
  847. package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js +1 -1
  848. package/components/Drillstring/BHAComponentsTable/components/Ur/Browser.js +1 -1
  849. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  850. package/components/Drillstring/BHAComponentsTable/components/constants.js +1 -1
  851. package/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.js +1 -1
  852. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  853. package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js +1 -1
  854. package/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js +1 -1
  855. package/components/Drillstring/BHAComponentsTable/components/shared/InputText.js +1 -1
  856. package/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js +1 -1
  857. package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js +1 -1
  858. package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js +1 -1
  859. package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js +1 -1
  860. package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js +1 -1
  861. package/components/Drillstring/BHAComponentsTable/components/sharedStyles.js +1 -1
  862. package/components/Drillstring/BHAComponentsTable/components/utils/calculation.js +1 -1
  863. package/components/Drillstring/BHAList/BHAList.js +1 -1
  864. package/components/Drillstring/BHASchematic.js +1 -1
  865. package/components/Drillstring/BHATable/BHAComponent.js +1 -1
  866. package/components/Drillstring/BHATable/index.js +1 -1
  867. package/components/Drillstring/BHATile/BHATile.js +1 -1
  868. package/components/Drillstring/BHATileIcon.js +1 -1
  869. package/components/Drillstring/BhaIndicator/BhaIndicator.js +1 -1
  870. package/components/Drillstring/DrillstringDetail/DrillstringDetail.js +1 -1
  871. package/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  872. package/components/EditableItem/EditableItemWithBadge/index.js +1 -1
  873. package/components/EmbeddedApp/DevCenterEmbeddedApp.js +1 -1
  874. package/components/EmbeddedApp/EmbeddedApp.js +1 -1
  875. package/components/EmbeddedApp/components/AppInfo.js +1 -1
  876. package/components/EmojiIconButton.js +1 -1
  877. package/components/EmptyState/EmptyState.d.ts +3 -0
  878. package/components/EmptyState/EmptyState.d.ts.map +1 -1
  879. package/components/EmptyState/constants.d.ts +3 -0
  880. package/components/EmptyState/constants.d.ts.map +1 -1
  881. package/components/EmptyState/constants.js +1 -1
  882. package/components/EmptyState/images/index.js +1 -1
  883. package/components/EmptyView/EmptyAppView/EmptyAppView.d.ts +6 -2
  884. package/components/EmptyView/EmptyAppView/EmptyAppView.d.ts.map +1 -1
  885. package/components/EmptyView/EmptyAppView/EmptyAppView.js +1 -1
  886. package/components/EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js +1 -1
  887. package/components/EmptyView/EmptyView.js +1 -1
  888. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
  889. package/components/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  890. package/components/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  891. package/components/ErrorBoundary/ErrorBoundary.js +1 -1
  892. package/components/FailedFileUploading.js +1 -1
  893. package/components/FeedItem/FeedItem.js +1 -1
  894. package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -1
  895. package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -1
  896. package/components/FeedItem/components/Actions.js +1 -1
  897. package/components/FeedItem/components/AvatarIcon.js +1 -1
  898. package/components/FeedItem/components/Content.js +1 -1
  899. package/components/FeedItem/components/CreatedAt.js +1 -1
  900. package/components/FeedItem/components/FeedComments.js +1 -1
  901. package/components/FeedItem/components/Icon.js +1 -1
  902. package/components/FeedItem/components/LessonsLearnedLeafIcon.js +1 -1
  903. package/components/FeedItem/components/Reactions.js +1 -1
  904. package/components/FeedItem/components/RigAndWell.js +1 -1
  905. package/components/FeedItem/components/TypeAndAssetTitle.js +1 -1
  906. package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js +1 -1
  907. package/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.js +1 -1
  908. package/components/FeedItem/editModals/LessonsLearnedEdit/LessonsLearnedEdit.js +1 -1
  909. package/components/FeedItem/editModals/NptLessonsCommentEdit/NptLessonsCommentEdit.js +1 -1
  910. package/components/FeedItem/editModals/PCCommentEdit/PCCommentEdit.js +1 -1
  911. package/components/FeedItem/feedItemTypes/AlertFeedItem.js +1 -1
  912. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/helpers.js +1 -1
  913. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js +1 -1
  914. package/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.d.ts.map +1 -1
  915. package/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js +1 -1
  916. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaNumber.js +1 -1
  917. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaSchematic.js +1 -1
  918. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js +1 -1
  919. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/NoData.js +1 -1
  920. package/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js +1 -1
  921. package/components/FeedItem/feedItemTypes/CompletionDocumentFeedItem.js +1 -1
  922. package/components/FeedItem/feedItemTypes/CompletionNptFeedItem.js +1 -1
  923. package/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js +1 -1
  924. package/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js +1 -1
  925. package/components/FeedItem/feedItemTypes/DepthCommentFeedItem.js +1 -1
  926. package/components/FeedItem/feedItemTypes/DocumentFeedItem.js +1 -1
  927. package/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.js +1 -1
  928. package/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js +1 -1
  929. package/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js +1 -1
  930. package/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js +1 -1
  931. package/components/FeedItem/feedItemTypes/DvDCommentFeedItem.js +1 -1
  932. package/components/FeedItem/feedItemTypes/FluidReportFeedItem.js +1 -1
  933. package/components/FeedItem/feedItemTypes/GeosteeringFeedItem.js +1 -1
  934. package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js +1 -1
  935. package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js +1 -1
  936. package/components/FeedItem/feedItemTypes/NptFeedItem.js +1 -1
  937. package/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js +1 -1
  938. package/components/FeedItem/feedItemTypes/PCCommentFeedItem.js +1 -1
  939. package/components/FeedItem/feedItemTypes/PostFeedItem.js +1 -1
  940. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/api.js +1 -1
  941. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/NoData.js +1 -1
  942. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Predictions.js +1 -1
  943. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/PredictionsItem.js +1 -1
  944. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/Stages.js +1 -1
  945. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/utils.js +1 -1
  946. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/index.js +1 -1
  947. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/api.js +1 -1
  948. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +1 -1
  949. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js +1 -1
  950. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.js +1 -1
  951. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js +1 -1
  952. package/components/FeedItem/feedItemTypes/TracesMemoFeedItem.js +1 -1
  953. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js +1 -1
  954. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/VerticalSectionAzimuth.js +1 -1
  955. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/constants.js +1 -1
  956. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.js +1 -1
  957. package/components/FilePreview/index.js +1 -1
  958. package/components/FileTypeIcon.js +1 -1
  959. package/components/FileUploadIconButton.js +1 -1
  960. package/components/FilesLoader/Icons/CSVFileIcon.js +1 -1
  961. package/components/FilesLoader/Icons/DocFileIcon.js +1 -1
  962. package/components/FilesLoader/Icons/EDMFileIcon.js +1 -1
  963. package/components/FilesLoader/Icons/ExelFileIcon.js +1 -1
  964. package/components/FilesLoader/Icons/FileIcon.js +1 -1
  965. package/components/FilesLoader/Icons/IconRefresh.js +1 -1
  966. package/components/FilesLoader/Icons/IconSuccess.js +1 -1
  967. package/components/FilesLoader/Icons/IconWarning.js +1 -1
  968. package/components/FilesLoader/Icons/ImageFileIcon.js +1 -1
  969. package/components/FilesLoader/Icons/PdfFileIcon.js +1 -1
  970. package/components/FilesLoader/Icons/UnknownFileIcon.js +1 -1
  971. package/components/FilesLoader/Icons/UploadIcon.js +1 -1
  972. package/components/FilesLoader/useStyles.js +1 -1
  973. package/components/FolderMenuItem/components/ClosedFolderIcon.js +1 -1
  974. package/components/FolderMenuItem/components/FolderIcon.js +1 -1
  975. package/components/FolderMenuItem/components/OpenFolderIcon.js +1 -1
  976. package/components/FolderMenuItem/index.js +1 -1
  977. package/components/FolderMenuItemWithLinks/index.js +1 -1
  978. package/components/GoogleDocsViewer/index.js +1 -1
  979. package/components/GradientManager/GradientManager.styles.js +1 -1
  980. package/components/GradientManager/GradientSelect.styles.js +1 -1
  981. package/components/GradientManager/__tests__/pageHelpers.d.ts.map +1 -1
  982. package/components/GradientPicker/GradientPicker.d.ts +2 -2
  983. package/components/GradientPicker/GradientPicker.d.ts.map +1 -1
  984. package/components/GradientPicker/GradientPicker.js +1 -1
  985. package/components/GradientPicker/GradientPicker.styles.d.ts.map +1 -1
  986. package/components/GradientPicker/GradientPicker.styles.js +1 -1
  987. package/components/GradientPicker/__tests__/pageHelpers.d.ts.map +1 -1
  988. package/components/HeaderLayout/HeaderLayout.js +1 -1
  989. package/components/HeaderLayout/constants.js +1 -1
  990. package/components/HeaderLayout/effects/index.js +1 -1
  991. package/components/HeaderLayout/utils.js +1 -1
  992. package/components/HelpCenter/HelpCenterIcon.js +1 -1
  993. package/components/IconMenu/index.js +1 -1
  994. package/components/Icons/AnnotationIcon.js +1 -1
  995. package/components/Icons/AttachIcon.js +1 -1
  996. package/components/Icons/DangerousIcon.js +1 -1
  997. package/components/Icons/EmojiIcon.js +1 -1
  998. package/components/Icons/RecommendationIcon.js +1 -1
  999. package/components/Icons/SendIcon.js +1 -1
  1000. package/components/ImageViewer/index.js +1 -1
  1001. package/components/InfiniteList/index.js +1 -1
  1002. package/components/KeyboardDateTimePicker.js +1 -1
  1003. package/components/LabelsCounter/LabelsCounter.js +1 -1
  1004. package/components/MenuItem/index.js +1 -1
  1005. package/components/MiddleTruncate/MiddleTruncate.js +1 -1
  1006. package/components/MiddleTruncate/utils.js +1 -1
  1007. package/components/OffsetWellChips/icons/SubjectIcon.js +1 -1
  1008. package/components/OffsetWellMap/OffsetWellMap.js +1 -1
  1009. package/components/OffsetWellMap/WellTooltip.js +1 -1
  1010. package/components/OffsetWellMap/effects/usePreviousWells.js +1 -1
  1011. package/components/OffsetWellMap/utils.js +1 -1
  1012. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  1013. package/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.js +1 -1
  1014. package/components/OffsetWellPickerV2/components/Filter/MultiSelect.js +1 -1
  1015. package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
  1016. package/components/OffsetWellPickerV2/components/Filter/RadiusInput.js +1 -1
  1017. package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  1018. package/components/OffsetWellPickerV2/components/Filter/SingleSelect.js +1 -1
  1019. package/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.js +1 -1
  1020. package/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.js +1 -1
  1021. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  1022. package/components/OffsetWellPickerV2/components/Filter/index.js +1 -1
  1023. package/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
  1024. package/components/OffsetWellPickerV2/components/Map/index.js +1 -1
  1025. package/components/OffsetWellPickerV2/components/Map/popupGenerator.js +1 -1
  1026. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  1027. package/components/OffsetWellPickerV2/components/Table/MetricsSelect.js +1 -1
  1028. package/components/OffsetWellPickerV2/components/Table/index.js +1 -1
  1029. package/components/OffsetWellPickerV2/constants.js +1 -1
  1030. package/components/OffsetWellPickerV2/effects/biDirectionalFiltering.js +1 -1
  1031. package/components/OffsetWellPickerV2/effects/index.js +1 -1
  1032. package/components/OffsetWellPickerV2/utils/apiCalls.js +1 -1
  1033. package/components/OffsetWellPickerV2/utils/index.js +1 -1
  1034. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/ClearFiltersButton.js +1 -1
  1035. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/MultiSelect.js +1 -1
  1036. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/RadiusInput.js +1 -1
  1037. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  1038. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -1
  1039. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/FormationsLegend.js +1 -1
  1040. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
  1041. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js +1 -1
  1042. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/popupGenerator.js +1 -1
  1043. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/utils.js +1 -1
  1044. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.js +1 -1
  1045. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetResultSection.js +1 -1
  1046. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetTypesSection.js +1 -1
  1047. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  1048. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/constants.js +1 -1
  1049. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/effects/useAssetsData.js +1 -1
  1050. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  1051. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsSelect.js +1 -1
  1052. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/SubjectIndicator.js +1 -1
  1053. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js +1 -1
  1054. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/styles.js +1 -1
  1055. package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js +1 -1
  1056. package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/biDirectionalFiltering.js +1 -1
  1057. package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js +1 -1
  1058. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  1059. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  1060. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  1061. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  1062. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  1063. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  1064. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.js +1 -1
  1065. package/components/OffsetWellPickerV3/constants.js +1 -1
  1066. package/components/OffsetWellPickerV3/effects/index.js +1 -1
  1067. package/components/OffsetWellPickerV3/index.js +1 -1
  1068. package/components/OffsetWellPickerV3/utils/apiCalls.js +1 -1
  1069. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  1070. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js +1 -1
  1071. package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.js +1 -1
  1072. package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  1073. package/components/OffsetWellPickerV4/components/Filter/MultiSelect.js +1 -1
  1074. package/components/OffsetWellPickerV4/components/Filter/PeriodSelect.js +1 -1
  1075. package/components/OffsetWellPickerV4/components/Filter/RadiusInput.js +1 -1
  1076. package/components/OffsetWellPickerV4/components/Filter/SingleSelect.js +1 -1
  1077. package/components/OffsetWellPickerV4/components/Filter/WellSection.js +1 -1
  1078. package/components/OffsetWellPickerV4/components/Map/WellsMap.js +1 -1
  1079. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  1080. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -1
  1081. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetTypesSection.js +1 -1
  1082. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
  1083. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js +1 -1
  1084. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.js +1 -1
  1085. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  1086. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  1087. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
  1088. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
  1089. package/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.js +1 -1
  1090. package/components/OffsetWellPickerV4/components/OffsetWellsTable/ViewWellSectionsName.js +1 -1
  1091. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  1092. package/components/OffsetWellPickerV4/constants.js +1 -1
  1093. package/components/OffsetWellPickerV4/effects/useAdvancedWells.js +1 -1
  1094. package/components/OffsetWellPickerV4/effects/useAssetsData.js +1 -1
  1095. package/components/OffsetWellPickerV4/effects/useBicWells.js +1 -1
  1096. package/components/OffsetWellPickerV4/effects/useCompanyMetricKey.js +1 -1
  1097. package/components/OffsetWellPickerV4/effects/useFetchWells.js +1 -1
  1098. package/components/OffsetWellPickerV4/effects/useFilterOptions.js +1 -1
  1099. package/components/OffsetWellPickerV4/effects/useFilteredWells.js +1 -1
  1100. package/components/OffsetWellPickerV4/effects/useSortedWells.js +1 -1
  1101. package/components/OffsetWellPickerV4/effects/useTableColumns.js +1 -1
  1102. package/components/OffsetWellPickerV4/utils/apiCalls.js +1 -1
  1103. package/components/OffsetWellPickerV4/utils/index.js +1 -1
  1104. package/components/OffsetWellPickerV4/utils/timePeriod.js +1 -1
  1105. package/components/OffsetWellPickerV4/utils/unitSystem.js +1 -1
  1106. package/components/PadModeSelect/PadModeSelect.js +1 -1
  1107. package/components/PadOffsetsPicker/OffsetAssetChip.js +1 -1
  1108. package/components/PadOffsetsPicker/OffsetAssetsListExpander.js +1 -1
  1109. package/components/PadOffsetsPicker/PadOffsetsPicker.js +1 -1
  1110. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  1111. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  1112. package/components/PadOffsetsPickerV2/useDialogState.js +1 -1
  1113. package/components/ParameterCharts/AddEditTrack.js +1 -1
  1114. package/components/ParameterCharts/ChartsContext.js +1 -1
  1115. package/components/ParameterCharts/ParameterCharts.js +1 -1
  1116. package/components/ParameterCharts/SettingsContext.js +1 -1
  1117. package/components/ParameterCharts/components/ChartContainer.js +1 -1
  1118. package/components/ParameterCharts/components/Charts/EmptyChart.js +1 -1
  1119. package/components/ParameterCharts/components/Charts/LineChart.js +1 -1
  1120. package/components/ParameterCharts/components/Charts/options.js +1 -1
  1121. package/components/ParameterCharts/components/DataLoadingIndicator.js +1 -1
  1122. package/components/ParameterCharts/components/SingleChannelTrackSettings.js +1 -1
  1123. package/components/ParameterCharts/components/Tooltip/CursorPositioner.js +1 -1
  1124. package/components/ParameterCharts/components/Tooltip/Tooltip.js +1 -1
  1125. package/components/ParameterCharts/components/TraceHeader.js +1 -1
  1126. package/components/ParameterCharts/components/TraceSelect.js +1 -1
  1127. package/components/ParameterCharts/components/TraceSettings.js +1 -1
  1128. package/components/ParameterCharts/components/Track.js +1 -1
  1129. package/components/ParameterCharts/components/TrackSettings.js +1 -1
  1130. package/components/ParameterCharts/constants.js +1 -1
  1131. package/components/ParameterCharts/utils/dataParser.js +1 -1
  1132. package/components/PinnableFilters/PinnableFilters.js +1 -1
  1133. package/components/PinnableFilters/components/FiltersToggler.js +1 -1
  1134. package/components/PinnableFilters/components/PinAppSwitch.js +1 -1
  1135. package/components/PinnableFilters/constants.js +1 -1
  1136. package/components/PinnableFilters/effects/index.js +1 -1
  1137. package/components/PinnableFilters/utils.js +1 -1
  1138. package/components/Popover/Popover.js +1 -1
  1139. package/components/Popper/Popper.js +1 -1
  1140. package/components/PostInput/PostInput.js +1 -1
  1141. package/components/PostPreviewDialog/index.js +1 -1
  1142. package/components/PriceInput/FormattedNumber.js +1 -1
  1143. package/components/PriceInput/PriceInput.js +1 -1
  1144. package/components/RangeSlider/constants.js +1 -1
  1145. package/components/RangeSlider/inputs/FromInput.js +1 -1
  1146. package/components/RangeSlider/inputs/ToInput.js +1 -1
  1147. package/components/RangeSlider/strategies/horizontal.js +1 -1
  1148. package/components/RangeSlider/strategies/vertical.js +1 -1
  1149. package/components/RangeSlider/utils.js +1 -1
  1150. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.d.ts.map +1 -1
  1151. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  1152. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -1
  1153. package/components/RealTimeValuesSidebar/SidebarFooter.d.ts.map +1 -1
  1154. package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  1155. package/components/Search/Search.d.ts +5 -6
  1156. package/components/Search/Search.d.ts.map +1 -1
  1157. package/components/Search/Search.js +1 -1
  1158. package/components/Search/__tests__/Search.test.d.ts +1 -4
  1159. package/components/Search/__tests__/Search.test.d.ts.map +1 -1
  1160. package/components/Search/components/Groups.js +1 -1
  1161. package/components/Search/components/InputAdornmentLeft.js +1 -1
  1162. package/components/Search/components/Listbox.d.ts +7 -1
  1163. package/components/Search/components/Listbox.js +1 -1
  1164. package/components/Search/components/Paper.js +1 -1
  1165. package/components/Search/components/RecentSearches.js +1 -1
  1166. package/components/Search/context/index.d.ts.map +1 -1
  1167. package/components/Search/context/index.js +1 -1
  1168. package/components/SearchInput/index.js +1 -1
  1169. package/components/SettingEditors/DropdownEditor/index.js +1 -1
  1170. package/components/SlateFormattedText/Constants.js +1 -1
  1171. package/components/SlateFormattedText/Elements/ImageElement/ImageElement.js +1 -1
  1172. package/components/SlateFormattedText/Elements/VideoElement/VideoElement.js +1 -1
  1173. package/components/SlateFormattedText/RenderElements.js +1 -1
  1174. package/components/SlateFormattedText/SlateFormattedText.js +1 -1
  1175. package/components/SlateFormattedText/utils.js +1 -1
  1176. package/components/StageDesignVActual/ComparisonBar/ComparisonBar.js +1 -1
  1177. package/components/StageDesignVActual/ComparisonBar/utils.js +1 -1
  1178. package/components/StageDesignVActual/ComparisonHeader.js +1 -1
  1179. package/components/StageDesignVActual/ComparisonRow.js +1 -1
  1180. package/components/StageDesignVActual/ElementsComparison/ElementsComparison.js +1 -1
  1181. package/components/StageDesignVActual/ElementsComparison/utils.js +1 -1
  1182. package/components/StatusBadge/styles.js +1 -1
  1183. package/components/Stepper/constants.js +1 -1
  1184. package/components/StyledMenuItem/index.js +1 -1
  1185. package/components/Table/TableCell/TableCell.js +1 -1
  1186. package/components/Table/TableContainer/TableContainer.js +1 -1
  1187. package/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  1188. package/components/Table/TableToolbar/TableToolbar.js +1 -1
  1189. package/components/Tabs/Tab.js +1 -1
  1190. package/components/Template/TemplatePopover/Styles.js +1 -1
  1191. package/components/Template/TemplatePopover/index.js +1 -1
  1192. package/components/Template/TemplateSharingDialog/ChipSelector.js +1 -1
  1193. package/components/Template/TemplateSharingDialog/UsersChipSelector.js +1 -1
  1194. package/components/Template/TemplateSharingDialog/index.js +1 -1
  1195. package/components/TextField/effects/index.js +1 -1
  1196. package/components/TextField/index.js +1 -1
  1197. package/components/TextLink/index.js +1 -1
  1198. package/components/TracesEditModal/TracesEditModal.js +1 -1
  1199. package/components/TracesEditModal/TracesEditModalContainer.js +1 -1
  1200. package/components/TruncatedText/index.js +1 -1
  1201. package/components/Typography.js +1 -1
  1202. package/components/UserCard/index.js +1 -1
  1203. package/components/UserCardPopover.js +1 -1
  1204. package/components/UserMention/constants.js +1 -1
  1205. package/components/UserMention/index.js +1 -1
  1206. package/components/UserMention/utils/index.js +1 -1
  1207. package/components/VirtualizedTable/CustomizeColumnsDialog.js +1 -1
  1208. package/components/VirtualizedTable/DraggableList.js +1 -1
  1209. package/components/VirtualizedTable/VirtualizedTable.d.ts.map +1 -1
  1210. package/components/VirtualizedTable/VirtualizedTable.js +1 -1
  1211. package/components/VirtualizedTable/index.js +1 -1
  1212. package/components/WellSummary/ActivitySummaryChart.js +1 -1
  1213. package/components/WellSummary/FracWirelineTimeChart.js +1 -1
  1214. package/components/WellSummary/WellSummaryItemLabel.js +1 -1
  1215. package/components/WellSummary/WellSummaryItemTitle.js +1 -1
  1216. package/components/WellSummary/WellSummaryItemValue.js +1 -1
  1217. package/components/WellSummary/effects/useWellSummaryData.js +1 -1
  1218. package/components/WellSummary/utils.js +1 -1
  1219. package/config/highcharts/highcharts-contour.js +1 -1
  1220. package/config/mapbox/index.js +1 -1
  1221. package/config/theme/accordionOverrides.js +1 -1
  1222. package/config/theme/buttonOverrides.js +1 -1
  1223. package/config/theme/checkboxOverrides.js +1 -1
  1224. package/config/theme/chipOverrides.js +1 -1
  1225. package/config/theme/dateTimePickerThemeOverrides.js +1 -1
  1226. package/config/theme/fabOverrides.js +1 -1
  1227. package/config/theme/index.js +1 -1
  1228. package/config/theme/radioOverrides.js +1 -1
  1229. package/config/theme/tableOverrides.js +1 -1
  1230. package/config/theme/textFieldOverrides.js +1 -1
  1231. package/config/theme/toggleButtonsGroupOverrides.js +1 -1
  1232. package/constants/accuracy.js +1 -1
  1233. package/constants/alerts.js +1 -1
  1234. package/constants/appPackages.js +1 -1
  1235. package/constants/apps.js +1 -1
  1236. package/constants/assetTypes.js +1 -1
  1237. package/constants/bha.js +1 -1
  1238. package/constants/casing.js +1 -1
  1239. package/constants/completion.js +1 -1
  1240. package/constants/componentsSettings.js +1 -1
  1241. package/constants/corvaCompanyId.js +1 -1
  1242. package/constants/dateTimeFormat.js +1 -1
  1243. package/constants/devcenter.js +1 -1
  1244. package/constants/drillstring.js +1 -1
  1245. package/constants/feed.js +1 -1
  1246. package/constants/goals.js +1 -1
  1247. package/constants/localStorageKeys.js +1 -1
  1248. package/constants/mixpanel.js +1 -1
  1249. package/constants/notifications.js +1 -1
  1250. package/constants/rigActivity.js +1 -1
  1251. package/constants/segment.js +1 -1
  1252. package/constants/sizes.js +1 -1
  1253. package/constants/subscriptions.js +1 -1
  1254. package/constants/theme.js +1 -1
  1255. package/constants/wellSummary.js +1 -1
  1256. package/effects/useDevCenterApp.js +1 -1
  1257. package/effects/useEscPress.js +1 -1
  1258. package/effects/useResizeObserver.js +1 -1
  1259. package/effects/useSharedDCStore.js +1 -1
  1260. package/effects/useSignedURL.js +1 -1
  1261. package/effects/useSubscriptions.js +1 -1
  1262. package/hocs/withAssetEditorLockHOC.js +1 -1
  1263. package/hocs/withMUIProvidersHOC.js +1 -1
  1264. package/package.json +2 -3
  1265. package/permissions/PermissionsContext.js +1 -1
  1266. package/permissions/ProvidePermissions.js +1 -1
  1267. package/permissions/constants/abilities.js +1 -1
  1268. package/permissions/constants/index.js +1 -1
  1269. package/permissions/usePermissions.js +1 -1
  1270. package/permissions/useProvidePermissions.js +1 -1
  1271. package/permissions/utils.js +1 -1
  1272. package/permissions/withPermissionsHOC.js +1 -1
  1273. package/styles/typography/index.js +1 -1
  1274. package/utils/DrillstringUtils.js +1 -1
  1275. package/utils/FluidCheckUtils.js +1 -1
  1276. package/utils/StageDesignVActualUtils.js +1 -1
  1277. package/utils/__tests__/fixtures/convert.fixture.d.ts.map +1 -1
  1278. package/utils/accuracy.js +1 -1
  1279. package/utils/alerts.js +1 -1
  1280. package/utils/apps.js +1 -1
  1281. package/utils/audio.js +1 -1
  1282. package/utils/bha.d.ts.map +1 -1
  1283. package/utils/bha.js +1 -1
  1284. package/utils/casing/conversion.js +1 -1
  1285. package/utils/casing/validation.js +1 -1
  1286. package/utils/chartSeries.js +1 -1
  1287. package/utils/completion.js +1 -1
  1288. package/utils/components.js +1 -1
  1289. package/utils/constants/units.js +1 -1
  1290. package/utils/convert.js +1 -1
  1291. package/utils/convertKeys.js +1 -1
  1292. package/utils/csvExport.js +1 -1
  1293. package/utils/dashboardReports.js +1 -1
  1294. package/utils/delay.js +1 -1
  1295. package/utils/devcenter.js +1 -1
  1296. package/utils/devcenterToasts.js +1 -1
  1297. package/utils/drillstring/conversion.js +1 -1
  1298. package/utils/drillstring/schematic.js +1 -1
  1299. package/utils/drillstring/validation.js +1 -1
  1300. package/utils/env.js +1 -1
  1301. package/utils/feed.js +1 -1
  1302. package/utils/fileExtension.js +1 -1
  1303. package/utils/formatting.js +1 -1
  1304. package/utils/ga.js +1 -1
  1305. package/utils/goals.js +1 -1
  1306. package/utils/index.js +1 -1
  1307. package/utils/jsonaDataFormatter.js +1 -1
  1308. package/utils/lasParser.js +1 -1
  1309. package/utils/localStorage.js +1 -1
  1310. package/utils/main.js +1 -1
  1311. package/utils/mapUnits.js +1 -1
  1312. package/utils/mapbox.js +1 -1
  1313. package/utils/metrics/index.js +1 -1
  1314. package/utils/metrics/metricsConfig.js +1 -1
  1315. package/utils/metrics/utils.js +1 -1
  1316. package/utils/mobileDetect.js +1 -1
  1317. package/utils/nativeMessages.js +1 -1
  1318. package/utils/notificationToasts.js +1 -1
  1319. package/utils/notifications.js +1 -1
  1320. package/utils/permissions.js +1 -1
  1321. package/utils/reports.js +1 -1
  1322. package/utils/resolveWellHubSlug.js +1 -1
  1323. package/utils/sharedDCStore.js +1 -1
  1324. package/utils/themeVariables.js +1 -1
  1325. package/utils/time.js +1 -1
  1326. package/utils/torqueAndHookloadUtils.js +1 -1
  1327. package/components/DevCenter/DevCenterAppContainer/components/__tests__/AppSettingsDialog.test.d.ts +0 -2
  1328. package/components/DevCenter/DevCenterAppContainer/components/__tests__/AppSettingsDialog.test.d.ts.map +0 -1
  1329. package/components/ErrorBoundary/DevCenterAppErrorView/__tests__/DevCenterAppErrorView.snapshot.test.d.ts +0 -2
  1330. package/components/ErrorBoundary/DevCenterAppErrorView/__tests__/DevCenterAppErrorView.snapshot.test.d.ts.map +0 -1
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as i,useEffect as l,useMemo as o}from"react";import{bool as n,string as r,shape as s,func as c}from"prop-types";import{get as a}from"lodash";import{makeStyles as d,Dialog as p,DialogTitle as u,Typography as f,Tooltip as m,IconButton as b,DialogContent as S,DialogActions as y,Button as x}from"@material-ui/core";import{Close as g}from"@material-ui/icons";import"../../utils/index.js";import W from"./components/TabSelection/index.js";import v from"./components/WellHubView/index.js";import h from"./components/OffsetWellSelectionView/index.js";import O from"./components/CustomSelectionView/index.js";import{DATA_SOURCE_TYPE as j,SELECTION_TAB_TYPE as I,ALL_KEY as w,FILTER_BASEDON_TYPE as T}from"./constants.js";import{jsx as C,Fragment as A,jsxs as M}from"react/jsx-runtime";import{isTabletDetected as U,isMobileDetected as H}from"../../utils/mobileDetect.js";function B(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,l)}return i}function P(t){for(var i=1;i<arguments.length;i++){var l=null!=arguments[i]?arguments[i]:{};i%2?B(Object(l),!0).forEach((function(i){e(t,i,l[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):B(Object(l)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(l,e))}))}return t}var k=d((function(e){return{paper:{width:function(e){var t=e.isTablet,i=e.isMobile;return t?"calc(100% - 24px)":i?"calc(100% - 16px)":"1100px"},maxWidth:"1100px",height:function(e){var t=e.isTablet,i=e.isMobile;return!t&&i&&"100%"},minHeight:function(e){var t=e.isTablet,i=e.isMobile;return t||!i&&"550px"},maxHeight:function(e){var t=e.isTablet,i=e.isMobile;return t?"702px":i?"calc(100% - 16px)":"calc(100% - 64px)"},margin:function(e){return e.isMobile?"0px":"32px"},background:e.palette.background.b9},rootHidden:{transition:"visibility 0.3s, opacity 0.3s",opacity:0,visibility:"hidden"},rootVisible:{transition:"visibility 0.3s, opacity 0.3s",opacity:1,visibility:"visible"},titleWrapper:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{fontSize:"20px",color:e.palette.primary.text1},closeIconButton:{fontSize:"20px",background:"transparent !important",padding:4},closeIcon:{color:e.palette.primary.text6,"&:hover":{color:e.palette.primary.text1}},dialogContent:{display:"flex",flexDirection:"column",overflow:"hidden",padding:function(e){return e.isTablet&&"0 40px"}},dialogActions:{padding:function(e){var t=e.isMobile;return e.isTablet?"8px 40px 40px 40px":t?"8px 16px":"24px 40px 40px 40px"}},actionButtons:{display:"flex",gap:"16px"}}}));function D(n){var r=n.open,s=n.dataSource,c=n.filterBasedOn,d=n.defaultSubjectWell,T=n.currentUser,B=n.offsetSettings,D=n.unusableWellAlarm,F=n.addWellsUsabilityInfo,N=n.onClose,V=n.onSave,_=U,q=H,E=k({isTablet:_,isMobile:q}),R=s===j.offsetWellSelectionApp?null==B?void 0:B.wdUser:null==B?void 0:B.notWdUser,z=i((null==R?void 0:R.selectedSelection)||I.bic),K=t(z,2),G=K[0],J=K[1],L=i((null==R?void 0:R.selectedSection)||w),Q=t(L,2),X=Q[0],Y=Q[1],Z=i([]),$=t(Z,2),ee=$[0],te=$[1],ie=i([]),le=t(ie,2),oe=le[0],ne=le[1],re=i(!1),se=t(re,2),ce=se[0],ae=se[1],de=i(!1),pe=t(de,2),ue=pe[0],fe=pe[1],me=i({}),be=t(me,2),Se=be[0],ye=be[1],xe=i(!1),ge=t(xe,2),We=ge[0],ve=ge[1],he=i("custom"),Oe=t(he,2),je=Oe[0],Ie=Oe[1],we=i(!1),Te=t(we,2),Ce=Te[0],Ae=Te[1];l((function(){r&&(J((null==R?void 0:R.selectedSelection)||I.bic),Y((null==R?void 0:R.selectedSection)||w),ve(!1),ae(!1),fe(!1))}),[r]);var Me=i(+a(d,"companyId")||+a(R,"companyId")||+a(T,"company_id")),Ue=t(Me,2),He=Ue[0],Be=Ue[1],Pe=i(a(d,"asset_id")||a(R,"subjectWellId")||null),ke=t(Pe,2),De=ke[0],Fe=ke[1];l((function(){Be(+a(d,"companyId")||+a(R,"companyId")||+a(T,"company_id")),Fe(a(d,"asset_id")||a(R,"subjectWellId")||null)}),[R]);var Ne=o((function(){return r?G===I.bic?s===j.offsetWellSelectionApp?j.offsetWellSelectionApp:j.wellHub:j.customSelection:"hidden"}),[G,s,r]),Ve=function(){We&&(ve(!1),Ie("custom-".concat(Math.random()))),N()};return C(A,{children:M(p,{open:!0,onBackdropClick:Ve,onEscapeKeyDown:Ve,classes:{paper:E.paper,root:r?E.rootVisible:E.rootHidden},children:[C(u,{children:M("div",{className:E.titleWrapper,children:[C(f,{className:E.title,children:"Offset Wells"}),C(m,{title:"Close",children:C(b,{"data-not-migrated-muiiconbutton":!0,"aria-label":"close",className:E.closeIconButton,onClick:Ve,children:C(g,{className:E.closeIcon})})})]})}),M(S,{className:E.dialogContent,children:[C(W,{dataSource:s,filterBasedOn:c,selectedTab:G,setSelectedTab:J,sectionOptions:ee,selectedSection:X,setSelectedSection:Y,mapHidden:ce,onToggleMap:ae,filtersHidden:ue,onToggleFilters:fe,isTablet:_,isMobile:q,customFilters:Se,setIsClearFilters:Ae}),C(h,{open:Ne===j.offsetWellSelectionApp,companyId:He,subjectWellId:De,filterBasedOn:c,setSectionOptions:te,selectedSection:X,setSelectedOffsetWells:ne,isTablet:_,isMobile:q}),C(v,{open:Ne===j.wellHub,subjectWellId:De,setSelectedOffsetWells:ne,isTablet:_,isMobile:q}),C(O,{open:Ne===j.customSelection,defaultSubjectWellId:a(d,"asset_id"),companyId:He,userSettings:R,currentUser:T,addWellsUsabilityInfo:F,unusableWellAlarm:D,mapHidden:ce,filtersHidden:ue,setSelectedOffsetWells:ne,setFilterChanged:ve,onSave:function(e){ye(e)},isTablet:_,isMobile:q,onToggleFilters:fe,isClearFilters:Ce,setIsClearFilters:Ae},je)]}),C(y,{className:E.dialogActions,children:M("div",{className:E.actionButtons,children:[C(x,{onClick:Ve,color:"primary",children:"Cancel"}),M(x,{variant:"contained",color:"primary",onClick:function(){var t=s===j.offsetWellSelectionApp?"wdUser":"notWdUser",i=P(P({},B),{},e({},t,P(P({companyId:He},Se),{},{selectedSelection:G,selectedSection:X,customWellIds:G===I.custom?oe.map((function(e){return e.id})):a(B,[t,"customWellIds"],[])})));V(i,oe)},children:["Select (",oe.length,")"]})]})})]})})}D.propTypes={open:n.isRequired,dataSource:r,filterBasedOn:r,defaultSubjectWell:s({}),currentUser:s({}),offsetSettings:s(),unusableWellAlarm:r,addWellsUsabilityInfo:c,onClose:c.isRequired,onSave:c.isRequired},D.defaultProps={dataSource:j.offsetWellSelectionApp,filterBasedOn:T.wellSections,defaultSubjectWell:null,currentUser:{},offsetSettings:{},unusableWellAlarm:"Unable to add",addWellsUsabilityInfo:null};export{D as default};
1
+ import{useState as e,useEffect as t,useMemo as l}from"react";import{bool as i,string as o,shape as s,func as n}from"prop-types";import{get as a}from"lodash";import{makeStyles as c,Dialog as r,DialogTitle as d,Typography as p,Tooltip as u,IconButton as m,DialogContent as f,DialogActions as b,Button as S}from"@material-ui/core";import{Close as x}from"@material-ui/icons";import"../../utils/index.js";import W from"./components/TabSelection/index.js";import y from"./components/WellHubView/index.js";import g from"./components/OffsetWellSelectionView/index.js";import h from"./components/CustomSelectionView/index.js";import{DATA_SOURCE_TYPE as I,SELECTION_TAB_TYPE as v,ALL_KEY as T,FILTER_BASEDON_TYPE as j}from"./constants.js";import{jsx as C,Fragment as w,jsxs as M}from"react/jsx-runtime";import{isTabletDetected as U,isMobileDetected as A}from"../../utils/mobileDetect.js";const O=c((e=>({paper:{width:e=>{let{isTablet:t,isMobile:l}=e;return t?"calc(100% - 24px)":l?"calc(100% - 16px)":"1100px"},maxWidth:"1100px",height:e=>{let{isTablet:t,isMobile:l}=e;return!t&&l&&"100%"},minHeight:e=>{let{isTablet:t,isMobile:l}=e;return t||!l&&"550px"},maxHeight:e=>{let{isTablet:t,isMobile:l}=e;return t?"702px":l?"calc(100% - 16px)":"calc(100% - 64px)"},margin:e=>{let{isMobile:t}=e;return t?"0px":"32px"},background:e.palette.background.b9},rootHidden:{transition:"visibility 0.3s, opacity 0.3s",opacity:0,visibility:"hidden"},rootVisible:{transition:"visibility 0.3s, opacity 0.3s",opacity:1,visibility:"visible"},titleWrapper:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{fontSize:"20px",color:e.palette.primary.text1},closeIconButton:{fontSize:"20px",background:"transparent !important",padding:4},closeIcon:{color:e.palette.primary.text6,"&:hover":{color:e.palette.primary.text1}},dialogContent:{display:"flex",flexDirection:"column",overflow:"hidden",padding:e=>{let{isTablet:t}=e;return t&&"0 40px"}},dialogActions:{padding:e=>{let{isMobile:t,isTablet:l}=e;return l?"8px 40px 40px 40px":t?"8px 16px":"24px 40px 40px 40px"}},actionButtons:{display:"flex",gap:"16px"}})));function H(i){let{open:o,dataSource:s,filterBasedOn:n,defaultSubjectWell:c,currentUser:j,offsetSettings:H,unusableWellAlarm:B,addWellsUsabilityInfo:k,onClose:F,onSave:N}=i;const V=U,_=A,D=O({isTablet:V,isMobile:_}),q=s===I.offsetWellSelectionApp?null==H?void 0:H.wdUser:null==H?void 0:H.notWdUser,[R,z]=e((null==q?void 0:q.selectedSelection)||v.bic),[E,K]=e((null==q?void 0:q.selectedSection)||T),[P,$]=e([]),[G,J]=e([]),[L,Q]=e(!1),[X,Y]=e(!1),[Z,ee]=e({}),[te,le]=e(!1),[ie,oe]=e("custom"),[se,ne]=e(!1);t((()=>{o&&(z((null==q?void 0:q.selectedSelection)||v.bic),K((null==q?void 0:q.selectedSection)||T),le(!1),Q(!1),Y(!1))}),[o]);const[ae,ce]=e(+a(c,"companyId")||+a(q,"companyId")||+a(j,"company_id")),[re,de]=e(a(c,"asset_id")||a(q,"subjectWellId")||null);t((()=>{ce(+a(c,"companyId")||+a(q,"companyId")||+a(j,"company_id")),de(a(c,"asset_id")||a(q,"subjectWellId")||null)}),[q]);const pe=l((()=>o?R===v.bic?s===I.offsetWellSelectionApp?I.offsetWellSelectionApp:I.wellHub:I.customSelection:"hidden"),[R,s,o]),ue=()=>{te&&(le(!1),oe(`custom-${Math.random()}`)),F()};return C(w,{children:M(r,{open:!0,onBackdropClick:ue,onEscapeKeyDown:ue,classes:{paper:D.paper,root:o?D.rootVisible:D.rootHidden},children:[C(d,{children:M("div",{className:D.titleWrapper,children:[C(p,{className:D.title,children:"Offset Wells"}),C(u,{title:"Close",children:C(m,{"data-not-migrated-muiiconbutton":!0,"aria-label":"close",className:D.closeIconButton,onClick:ue,children:C(x,{className:D.closeIcon})})})]})}),M(f,{className:D.dialogContent,children:[C(W,{dataSource:s,filterBasedOn:n,selectedTab:R,setSelectedTab:z,sectionOptions:P,selectedSection:E,setSelectedSection:K,mapHidden:L,onToggleMap:Q,filtersHidden:X,onToggleFilters:Y,isTablet:V,isMobile:_,customFilters:Z,setIsClearFilters:ne}),C(g,{open:pe===I.offsetWellSelectionApp,companyId:ae,subjectWellId:re,filterBasedOn:n,setSectionOptions:$,selectedSection:E,setSelectedOffsetWells:J,isTablet:V,isMobile:_}),C(y,{open:pe===I.wellHub,subjectWellId:re,setSelectedOffsetWells:J,isTablet:V,isMobile:_}),C(h,{open:pe===I.customSelection,defaultSubjectWellId:a(c,"asset_id"),companyId:ae,userSettings:q,currentUser:j,addWellsUsabilityInfo:k,unusableWellAlarm:B,mapHidden:L,filtersHidden:X,setSelectedOffsetWells:J,setFilterChanged:le,onSave:e=>{ee(e)},isTablet:V,isMobile:_,onToggleFilters:Y,isClearFilters:se,setIsClearFilters:ne},ie)]}),C(b,{className:D.dialogActions,children:M("div",{className:D.actionButtons,children:[C(S,{onClick:ue,color:"primary",children:"Cancel"}),M(S,{variant:"contained",color:"primary",onClick:()=>{const e=s===I.offsetWellSelectionApp?"wdUser":"notWdUser",t={...H,[e]:{companyId:ae,...Z,selectedSelection:R,selectedSection:E,customWellIds:R===v.custom?G.map((e=>e.id)):a(H,[e,"customWellIds"],[])}};N(t,G)},children:["Select (",G.length,")"]})]})})]})})}H.propTypes={open:i.isRequired,dataSource:o,filterBasedOn:o,defaultSubjectWell:s({}),currentUser:s({}),offsetSettings:s(),unusableWellAlarm:o,addWellsUsabilityInfo:n,onClose:n.isRequired,onSave:n.isRequired},H.defaultProps={dataSource:I.offsetWellSelectionApp,filterBasedOn:j.wellSections,defaultSubjectWell:null,currentUser:{},offsetSettings:{},unusableWellAlarm:"Unable to add",addWellsUsabilityInfo:null};export{H as default};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/regenerator";import a from"jsona";import{concat as s,range as i,get as u}from"lodash";import{getAppStorage as c,getAssets as o,getCompanyGoals as p,getRigs as l,getFracFleets as f,getDrilloutUnits as m}from"../../../clients/jsonApi/index.js";import{METRICS_KEYS as b}from"../components/CustomSelectionView/constants.js";function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?d(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=new a;function v(e,t){return y.apply(this,arguments)}function y(){return(y=r(n.mark((function e(t,r){var a,s,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=null,e.prev=1,e.next=4,o({types:["well"],company_id:t?+t:void 0,fields:["asset.name","asset.parent_asset_id","asset.parent_asset_name","asset.status","asset.stats","asset.target_formation","asset.string_design","asset.root_asset_name","asset.basin","asset.county","asset.area","asset.visibility","asset.top_hole","asset.settings","well.settings"],per_page:1e4,sort:"name"});case 4:a=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),console.error(e.t0);case 10:if(s=a?a.data.map((function(e){return{id:Number(e.id),name:u(e,"attributes.name"),status:u(e,"attributes.status"),rigId:u(e,"attributes.parent_asset_id")||"Null",rigName:u(e,"attributes.parent_asset_name")||"Null",formation:u(e,"attributes.target_formation")||"Null",stringDesign:u(e,"attributes.string_design")||"Null",programName:u(e,"attributes.root_asset_name")||"Null",basin:u(e,"attributes.basin")||"Null",county:u(e,"attributes.county")||"Null",area:u(e,"attributes.area")||"Null",visibility:u(e,"attributes.visibility"),topHole:u(e,"attributes.top_hole"),rigReleaseDate:u(e,"attributes.stats.well_end"),totalDepth:u(e,"attributes.stats.total_depth"),is_usable:!0,apiNumber:u(e,"attributes.settings.api_number","-")}})).filter((function(e){return"visible"===e.visibility})):[],!r){e.next=16;break}return e.next=14,r(s);case 14:return i=e.sent,e.abrupt("return",i);case 16:return e.abrupt("return",s);case 17:case"end":return e.stop()}}),e,null,[[1,7]])})))).apply(this,arguments)}function g(e){return w.apply(this,arguments)}function w(){return(w=r(n.mark((function e(t){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c("corva","data.offset-wells.bic",t,{limit:1,sort:"{timestamp: -1}"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return k.apply(this,arguments)}function k(){return(k=r(n.mark((function e(t){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=null,e.prev=1,e.next=4,c("corva","data.offset_wells",t,{limit:1});case 4:r=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),console.error(e.t0);case 10:return e.abrupt("return",r||[]);case 11:case"end":return e.stop()}}),e,null,[[1,7]])})))).apply(this,arguments)}function O(e,t){return j.apply(this,arguments)}function j(){return(j=r(n.mark((function e(t,r){var a,s,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={per_page:1e3,page:t,fields:["rig.name","rig.active_well","rig.asset_id"],sort:"name",company:r},e.prev=2,e.next=5,l(a);case 5:s=e.sent,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(2),console.error(e.t0),s=[];case 12:return i=_.deserialize(s),e.abrupt("return",i.map((function(e){return h({redirectAssetId:u(e,["active_well","asset_id"])||null},e)})));case 14:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function N(e,t){return P.apply(this,arguments)}function P(){return(P=r(n.mark((function e(t,r){var a,s,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={per_page:1e3,page:t,fields:["frac_fleet.name","frac_fleet.current_pad_id","frac_fleet.pad_frac_fleets"],sort:"name",company:r},e.prev=2,e.next=5,f(a);case 5:s=e.sent,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(2),console.error(e.t0),s=[];case 12:return i=_.deserialize(s),e.abrupt("return",i.map((function(e){return h({redirectAssetId:u(e,["current_pad_id"])||null},e)})));case 14:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function D(e,t){return A.apply(this,arguments)}function A(){return(A=r(n.mark((function e(t,r){var a,s,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={per_page:1e3,page:t,fields:["drillout_unit.name","drillout_unit.well"],sort:"name",company:r},e.prev=2,e.next=5,m(a);case 5:s=e.sent,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(2),console.error(e.t0),s=[];case 12:return i=_.deserialize(s),e.abrupt("return",i.map((function(e){return h({redirectAssetId:u(e,["well","asset_id"])||null},e)})));case 14:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function I(e){return $.apply(this,arguments)}function $(){return $=r(n.mark((function t(r){var a,i,u,c,o,p,l,f=arguments;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=f.length>1&&void 0!==f[1]?f[1]:1,i=f.length>2?f[2]:void 0,"well"!==r&&"api_number"!==r){t.next=7;break}return t.next=5,v(i,null);case 5:return u=t.sent,t.abrupt("return",u.map((function(e){return{redirectAssetId:e.id,apiNumber:e.api_number,name:e.name,asset_id:e.id,type:r}})));case 7:if("rig"!==r){t.next=12;break}return t.next=10,O(a,i);case 10:return c=t.sent,t.abrupt("return",c);case 12:if("frac_fleet"!==r){t.next=17;break}return t.next=15,N(a,i);case 15:return o=t.sent,t.abrupt("return",o);case 17:if("drillout_unit"!==r){t.next=22;break}return t.next=20,D(a,i);case 20:return p=t.sent,t.abrupt("return",p);case 22:return t.next=24,Promise.all([v("well",i),O(a,i),N(a,i),D(a,i)]);case 24:return l=t.sent,t.abrupt("return",s.apply(void 0,e(l)));case 26:case"end":return t.stop()}}),t)}))),$.apply(this,arguments)}function S(e){return z.apply(this,arguments)}function z(){return(z=r(n.mark((function e(t){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p(t);case 3:r=e.sent,e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error(e.t0);case 9:return e.abrupt("return",r&&u(r,"company_goals")||{});case 10:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function E(e,t){return C.apply(this,arguments)}function C(){return C=r(n.mark((function t(a,s){var u,o,p;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==s.length){t.next=2;break}return t.abrupt("return",[]);case 2:return u=Math.floor(s.length/200)+1,t.next=5,Promise.all(i(u).map(function(){var e=r(n.mark((function e(t,r){var i,u,o,p;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={company_id:a,"data.asset_id":{$in:s.slice(200*r,200*(r+1))},"data.key":{$in:b},"data.type":"asset"},u={_id:0,"data.key":1,"data.value":1,asset_id:"$data.asset_id"},o={aggregate:JSON.stringify([{$match:i},{$project:u}])},p=null,e.prev=4,e.next=7,c("corva","metrics",null,o);case 7:p=e.sent,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(4),console.error(e.t0);case 13:return e.abrupt("return",p||[]);case 14:case"end":return e.stop()}}),e,null,[[4,10]])})));return function(t,r){return e.apply(this,arguments)}}()));case 5:return o=t.sent,p=[],o.forEach((function(t){return p.push.apply(p,e(t))})),t.abrupt("return",p);case 9:case"end":return t.stop()}}),t)}))),C.apply(this,arguments)}export{I as fetchAllAssets,g as fetchBicWellSections,S as fetchCompanyGoals,E as fetchMetricsData,x as fetchWellhubWells,v as fetchWells};
1
+ import t from"jsona";import{get as e,concat as a,range as s}from"lodash";import{getAssets as r,getAppStorage as i,getCompanyGoals as n,getRigs as l,getFracFleets as o,getDrilloutUnits as c}from"../../../clients/jsonApi/index.js";import{METRICS_KEYS as u}from"../components/CustomSelectionView/constants.js";const d=new t;async function m(t,a){let s=null;try{s=await r({types:["well"],company_id:t?+t:void 0,fields:["asset.name","asset.parent_asset_id","asset.parent_asset_name","asset.status","asset.stats","asset.target_formation","asset.string_design","asset.root_asset_name","asset.basin","asset.county","asset.area","asset.visibility","asset.top_hole","asset.settings","well.settings"],per_page:1e4,sort:"name"})}catch(t){console.error(t)}const i=s?s.data.map((t=>({id:Number(t.id),name:e(t,"attributes.name"),status:e(t,"attributes.status"),rigId:e(t,"attributes.parent_asset_id")||"Null",rigName:e(t,"attributes.parent_asset_name")||"Null",formation:e(t,"attributes.target_formation")||"Null",stringDesign:e(t,"attributes.string_design")||"Null",programName:e(t,"attributes.root_asset_name")||"Null",basin:e(t,"attributes.basin")||"Null",county:e(t,"attributes.county")||"Null",area:e(t,"attributes.area")||"Null",visibility:e(t,"attributes.visibility"),topHole:e(t,"attributes.top_hole"),rigReleaseDate:e(t,"attributes.stats.well_end"),totalDepth:e(t,"attributes.stats.total_depth"),is_usable:!0,apiNumber:e(t,"attributes.settings.api_number","-")}))).filter((t=>"visible"===t.visibility)):[];if(a){return await a(i)}return i}async function _(t){return i("corva","data.offset-wells.bic",t,{limit:1,sort:"{timestamp: -1}"})}async function p(t){let e=null;try{e=await i("corva","data.offset_wells",t,{limit:1})}catch(t){console.error(t)}return e||[]}async function f(t,a){const s={per_page:1e3,page:t,fields:["rig.name","rig.active_well","rig.asset_id"],sort:"name",company:a};let r;try{r=await l(s)}catch(t){console.error(t),r=[]}return d.deserialize(r).map((t=>({redirectAssetId:e(t,["active_well","asset_id"])||null,...t})))}async function y(t,a){const s={per_page:1e3,page:t,fields:["frac_fleet.name","frac_fleet.current_pad_id","frac_fleet.pad_frac_fleets"],sort:"name",company:a};let r;try{r=await o(s)}catch(t){console.error(t),r=[]}return d.deserialize(r).map((t=>({redirectAssetId:e(t,["current_pad_id"])||null,...t})))}async function g(t,a){const s={per_page:1e3,page:t,fields:["drillout_unit.name","drillout_unit.well"],sort:"name",company:a};let r;try{r=await c(s)}catch(t){console.error(t),r=[]}return d.deserialize(r).map((t=>({redirectAssetId:e(t,["well","asset_id"])||null,...t})))}async function b(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if("well"===t||"api_number"===t){return(await m(s,null)).map((e=>({redirectAssetId:e.id,apiNumber:e.api_number,name:e.name,asset_id:e.id,type:t})))}if("rig"===t){return await f(e,s)}if("frac_fleet"===t){return await y(e,s)}if("drillout_unit"===t){return await g(e,s)}const r=await Promise.all([m("well",s),f(e,s),y(e,s),g(e,s)]);return a(...r)}async function w(t){let a;try{a=await n(t)}catch(t){console.error(t)}return a&&e(a,"company_goals")||{}}async function h(t,e){if(0===e.length)return[];const a=Math.floor(e.length/200)+1,r=await Promise.all(s(a).map((async(a,s)=>{const r={company_id:t,"data.asset_id":{$in:e.slice(200*s,200*(s+1))},"data.key":{$in:u},"data.type":"asset"},n={aggregate:JSON.stringify([{$match:r},{$project:{_id:0,"data.key":1,"data.value":1,asset_id:"$data.asset_id"}}])};let l=null;try{l=await i("corva","metrics",null,n)}catch(t){console.error(t)}return l||[]}))),n=[];return r.forEach((t=>n.push(...t))),n}export{b as fetchAllAssets,_ as fetchBicWellSections,w as fetchCompanyGoals,h as fetchMetricsData,p as fetchWellhubWells,m as fetchWells};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/defineProperty";import i from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/regenerator";import{useState as n,useRef as s,useEffect as l,useCallback as a,useMemo as p}from"react";import m from"prop-types";import c from"classnames";import{uniqBy as d,sortBy as u,isEmpty as f}from"lodash";import{Replay as j,InfoOutlined as C}from"@material-ui/icons";import v from"../Modal/Modal.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/core";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import{isMobileDetected as b,isNativeDetected as h}from"../../utils/mobileDetect.js";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../utils/env.js";import"../GradientManager/configuration/constants.js";import"../../utils/index.js";import"uuid";import"jsona";import"../StatusBadge/constants.js";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsx as g,jsxs as A,Fragment as S}from"react/jsx-runtime";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"rollbar";import"@rollbar/react";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import y from"../LoadingIndicator/LoadingIndicator.js";import{Regular14 as D,Regular12 as x}from"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../EmptyState/EmptyState.js";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/components/buttons/DragToZoomButton.js";import"../Chart/components/buttons/ZoomInButton.js";import"../Chart/components/buttons/ZoomOutButton.js";import"../Chart/components/buttons/PanButton.js";import"../Chart/components/buttons/ResetZoomButton.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/RangeSlider.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import I from"../Button/index.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.styles.js";import"../GradientPicker/GradientPicker.js";import"../GradientManager/GradientManager.styles.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTileIcon.js";import"../Casing/CasingTableV2/CasingTableV2.js";import"../Casing/CasingTile/CasingTile.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellButton/OffsetWellButton.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Toaster/Toaster.js";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PadModeSelect/PadModeSelect.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import{Tooltip as T}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Step.js";import"../Stepper/StepsWrapper.js";import"../Stepper/Stepper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../FilesLoader/Icons/FileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/InputAdornmentLeft.js";import"../Search/components/Groups.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import W from"../../styles/typography/index.js";import"../../styles/counter/counter.module.scss.js";import{useFetchWells as P}from"./effects/useFetchWells.js";import{useAdvancedWells as O}from"./effects/useAdvancedWells.js";import{useBicWells as E}from"./effects/useBicWells.js";import{useCompanyMetricKey as w}from"./effects/useCompanyMetricKey.js";import{useFilterOptions as M}from"./effects/useFilterOptions.js";import{useFilteredWells as B}from"./effects/useFilteredWells.js";import{useSortedWells as k}from"./effects/useSortedWells.js";import"./effects/useAssetsData.js";import{useTableColumns as V}from"./effects/useTableColumns.js";import{AppHeader as F}from"./components/AppHeader/AppHeader.js";import{Toolbar as H}from"./components/Toolbar/Toolbar.js";import{Filter as L}from"./components/Filter/Filter.js";import{WellsMap as N}from"./components/Map/WellsMap.js";import R from"./components/OffsetWellsTable/OffsetWellsTable.js";import G from"./OffsetWellPickerV4.module.css.js";import{ALL_SECTION_KEY as U,ViewType as z,TOP_GRADIENT_MAP as _,ColumnType as K,FilterType as q,ROWS_PER_PAGE as Z,LEAVE_TOUCH_DELAY as J,IOS_DEVICE as Q,DEFAULT_BIC_OFFSET_SIZE as X,DEFAULT_LOCAL_OFFSET_SIZE as Y,MAX_OFFSET_SIZE as $,SMALL_SCREEN_WIDTH as ee,SMALL_SCREEN_HEIGHT as te}from"./constants.js";import{SEARCH_CATEGORIES as ie}from"./components/OffsetWellsTable/AdvancedSearch/constants.js";import{getCoordinatedWells as re,getMobileOperatingSystem as oe}from"./utils/index.js";import{showInfoNotification as ne}from"../../utils/notificationToasts.js";function se(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function le(e){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?se(Object(r),!0).forEach((function(i){t(e,i,r[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ae="OffsetWellPickerV4",pe=function(m){var X,Y,se,pe=m.open,me=m.isWDUser,ce=m.defaultSubjectWell,de=m.currentUser,ue=m.offsetSettings,fe=m.addWellsUsabilityInfo,je=m.isViewOnly,Ce=m.onClose,ve=m.onSave,be=m.maxOffsetSize,he=m.localMaxOffsetSize,ge=m.syncAutoEnabled,Ae=n(null),Se=r(Ae,2),ye=Se[0],De=Se[1],xe=Math.min(be+1,he+1,$+1),Ie=Math.min(Math.max(xe,he+1),$+1),Te=n(null==ue?void 0:ue.filterExpanded),We=r(Te,2),Pe=We[0],Oe=We[1],Ee=n(null==ue?void 0:ue.mapHidden),we=r(Ee,2),Me=we[0],Be=we[1],ke=+(null==ce?void 0:ce.companyId)||+(null==de?void 0:de.company_id),Ve=null==ce?void 0:ce.asset_id,Fe=n((null==ue?void 0:ue.filters)||{}),He=r(Fe,2),Le=He[0],Ne=He[1],Re=n((null==ue?void 0:ue.wellSection)||U),Ge=r(Re,2),Ue=Ge[0],ze=Ge[1],_e=s(!0),Ke=n([]),qe=r(Ke,2),Ze=qe[0],Je=qe[1],Qe=n(null),Xe=r(Qe,2),Ye=Xe[0],$e=Xe[1],et=n(!0),tt=r(et,2),it=tt[0],rt=tt[1],ot=n(!1),nt=r(ot,2),st=nt[0],lt=nt[1],at=n(!1),pt=r(at,2),mt=pt[0],ct=pt[1],dt=s(),ut=n(z.none),ft=r(ut,2),jt=ft[0],Ct=ft[1],vt=s(),bt=n(!1),ht=r(bt,2),gt=ht[0],At=ht[1],St=Ie<=(null==Ze?void 0:Ze.length),yt=_[jt],Dt=s(),xt=n(!0),It=r(xt,2),Tt=It[0],Wt=It[1];l((function(){var e,t,i;(pe&&St&&ne("App can’t process more than (".concat(Ie-1,") Offset Wells.")),pe)||((null==ue||null===(e=ue.selectedWellIds)||void 0===e?void 0:e.length)===(null===(t=Dt.current)||void 0===t?void 0:t.length)&&(null==ue||null===(i=ue.selectedWellIds)||void 0===i?void 0:i.every((function(e){var t;return null===(t=Dt.current)||void 0===t?void 0:t.includes(e)})))||(_e.current=!0),Dt.current=null==ue?void 0:ue.selectedWellIds)}),[St,pe,ue]),l((function(){function e(){window.innerWidth<=ee||b||h?Ct(z.mobile):window.innerHeight<=te?Ct(z.small):Ct(z.normal)}return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[pe]),l((function(){vt.current&&jt===vt.current||(vt.current=jt,jt===z.small||jt===z.mobile?(Be(!0),Oe(!1)):(Oe(!je&&(null==ue?void 0:ue.filterExpanded)),Be(!je&&(null==ue?void 0:ue.mapHidden))),Ne((null==ue?void 0:ue.filters)||{}),ze((null==ue?void 0:ue.wellSection)||U))}),[ue,je,jt]);var Pt=P(ke,fe),Ot=E(me,Ve,Pt),Et=r(Ot,4),wt=Et[0],Mt=Et[1],Bt=Et[2],kt=Et[3];l((function(){Wt(!0),Mt(null),kt(null)}),[Ve]),l((function(){var e,t=(e=i(o.mark((function e(){var t,i,r,n,s,l,a,p,m,c;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=void 0===ue.isSynced||ue.isSynced,i=!0,!t){e.next=19;break}if(n=Bt[U],s=((null==ue?void 0:ue.selectedWellIds)||[]).every((function(e){return n.includes(e)})),n.length===(null===(r=ue.selectedWellIds)||void 0===r?void 0:r.length)&&s){e.next=16;break}return e.next=8,re(n,Ve);case 8:l=e.sent,a=l.slice(0,xe+1).map((function(e){return e.id})),a=l.slice(0,he+1).map((function(e){return e.id})),p=le(le({},ue),{},{subjectWellId:Ve,selectedWellIds:a,offsetWellsLimited:Ie<=a.length}),m=l.filter((function(e){return a.includes(e.id)})),ve(p,m),e.next=17;break;case 16:i=!1;case 17:e.next=20;break;case 19:i=!1;case 20:if(i){e.next=25;break}return e.next=23,re((null==ue?void 0:ue.selectedWellIds)||[],Ve);case 23:c=e.sent,ve(ue,c);case 25:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)});ge&&Tt&&ue&&Bt&&(t(),Wt(!1))}),[ue,Bt,Ve,Ie,ge]);var Vt=w(ke,null==ue?void 0:ue.metricsKeys),Ft=r(Vt,2),Ht=Ft[0],Lt=Ft[1],Nt=O(ke,Pt,wt,Bt,Ve,Ht),Rt=M(Nt);l((function(){if(Nt&&wt){var e=Nt.find((function(e){return e.id===Ve}));if(e){var i=wt.filter((function(e){return e.value!==U})).map((function(e){return e.label})),r=le(le({},e),i.length>0&&t({},K.wellSection,i));$e(r)}else $e(null)}}),[wt,Nt]);var Gt=V(Ht),Ut=B(Nt,Le);l((function(){if(Ut)if(_e.current){var e=Nt.filter((function(e){return((null==ue?void 0:ue.selectedWellIds)||[]).includes(e.id)}));Ye&&(e=e.concat(Ye)),Je(d(e,"id")),_e.current=!1}else Je((function(e){var t=(Ut||[]).filter((function(t){return!!e.find((function(e){var i=e.id;return t.id===i}))}));return Ye&&(t=t.concat(Ye)),d(t,"id")}))}),[Nt,Ut,null==ue?void 0:ue.selectedWellIds]);var zt=k(Ye,Ut,Ze,rt,_e.current),_t=r(zt,5),Kt=_t[0],qt=_t[1],Zt=_t[2],Jt=_t[3],Qt=_t[4],Xt=a((function(e,t,i){var r;r=i===ie.well.name?t:t.reduce((function(e,t){var i,r=null===(i=Nt.find((function(e){return e.id===t})))||void 0===i?void 0:i.rigName,o=Nt.filter((function(e){return e.rigName===r})).map((function(e){return e.id}));return e.concat(o)}),[]);var o=Nt.filter((function(e){var t=e.id;return r.includes(t)}));e?(o=o.slice(0,Math.min(o.length,Ie-Ze.length)),Je((function(e){return d(e.concat(o),"id")}))):Je((function(e){return d(e.filter((function(e){var t=e.id;return!o.find((function(e){return e.id===t}))})))}))}),[Nt,Ze]),Yt=a((function(){ct(!0)}),[]),$t=a((function(e){Lt(e)}),[]),ei=a((function(t,i){Je(i?function(i){return[].concat(e(i),[t])}:function(e){return e.filter((function(e){return e.id!==t.id}))})}),[]),ti=a((function(e){if(e){var t=Ye?Ut.concat(Ye):Ut,i=u(d(t,"id"),"distance");Je(i.slice(0,Ie))}else Je(Ye?[Ye]:[])}),[Ut,Ye,Ie]),ii=function(e){if(Bt){var t=Nt.filter((function(t){return Bt[e].includes(t.id)})),i=u(t,"distance");Je(i.slice(0,xe))}else Je(Ye?[Ye]:[])},ri=a((function(e){ze(e),ii(e)}),[ii]),oi=p((function(){return Ze.find((function(e){return e.id===Ve}))?Ze.length-1:Ze.length}),[Ze,Ve]),ni=p((function(){if(!Bt)return!1;var e=Ze.map((function(e){return e.id})),t=Bt[Ue]||[];return Math.min(t.length,xe)===e.length&&e.every((function(e){return t.includes(e)}))}),[Bt,Ze,Ue,xe]),si=function(){var e=(Nt||[]).filter((function(e){return((null==ue?void 0:ue.selectedWellIds)||[]).includes(e.id)}));Ye&&(e=e.concat(Ye)),Je(d(e,"id"));var t=le(le({},ue),{},{mapHidden:Me,filterExpanded:Pe});ve(t),Ne((null==ue?void 0:ue.filters)||{}),ze((null==ue?void 0:ue.wellSection)||U),Ce()},li=p((function(){return!ni||(!(f(Le)||!Le[q.sideTracks])||Ue!==U)}),[ni,Le,Ue]),ai=!Nt||!wt||!Qt||jt===z.none,pi=n(!1),mi=r(pi,2),ci=mi[0],di=mi[1],ui=n(Z),fi=r(ui,2),ji=fi[0],Ci=fi[1],vi=n([]),bi=r(vi,2),hi=bi[0],gi=bi[1];l((function(){if(Qt){var e=Qt.slice(0,ji);gi(e)}}),[Qt,ji,Ye]);return g(v,{open:pe,onClose:si,title:g(F,{isWDUser:me,viewType:jt,totalCount:null!==(X=null==Nt?void 0:Nt.length)&&void 0!==X?X:0,selectedCount:oi,isViewOnly:je,maxOffsetwellNumber:Ie}),isMobile:jt===z.mobile,contentContainerClassName:c(G.offsetWellDialog),contentClassName:c(G.contentContainer,(Y={},t(Y,G.smallContainer,jt===z.small),t(Y,G.contentContainerMobile,jt===z.mobile),Y)),actionsClassName:G.modalActions,actions:!je&&A("div",{className:G.actionsWrapper,children:[!ai&&li?g(T,{placement:"bottom-start",title:"Reset to Synced Offsets in ".concat(me?"Offset App":"Wellhub"),children:g("div",{children:g(I,{"data-testid":"".concat(ae,"_reset"),onClick:function(){Ne({}),ze(U),ii(U)},color:"primary",startIcon:jt!==z.mobile&&g(j,{}),classes:jt===z.mobile&&{root:G.resetButtonMobile},children:jt!==z.mobile?"Reset":g(j,{})})})}):g("div",{className:jt===z.mobile&&G.infoIconContainer,children:jt!==z.mobile?A(S,{children:[g("span",{className:c(W.regular12,W.colors.t6),children:"The offset list is being automatically populated by "}),g("span",{className:c(W.medium12,W.colors.t6),children:me?"Offset Selection App.":"WellHub."})]}):g(T,{title:A("div",{children:[g("span",{className:c(W.regular12,W.colors.t1),children:"The offset list is being automatically populated by "}),g("span",{className:c(W.medium12,W.colors.t1),children:me?"Offset Selection App.":"WellHub."})]}),enterTouchDelay:0,leaveTouchDelay:J,children:g(C,{className:G.infoIcon})})}),A("div",{className:G.buttonGap,children:[g(I,{"data-testid":"".concat(ae,"_cancel"),onClick:si,color:"primary",children:"Cancel"}),A(I,{"data-testid":"".concat(ae,"_selectedWells"),variant:"contained",color:"primary",onClick:function(){Ce();var e=le(le({},ue),{},{companyId:ke,subjectWellId:Ve,selectedWellIds:Ze.map((function(e){return e.id})),filters:Le,metricsKeys:Ht,wellSection:Ue,isSynced:ni,mapHidden:Me,filterExpanded:Pe,offsetWellsLimited:St});ve(e,Ze)},children:["Select (",oi,")"]})]})]}),children:ai?g(y,{fullscreen:!1}):A("div",{className:c(G.contentWrapper),ref:dt,children:[jt===z.mobile&&A("div",{className:c(G.countContainer,t({},G.countContainerMobile,jt===z.mobile)),children:[g(D,{className:G.totalLabel,children:"Total:"}),g(D,{"data-testid":"".concat(ae,"_totalWells"),className:G.countValue,children:Nt.length}),g(D,{className:G.selectedLabel,children:"Selected:"}),g(D,{"data-testid":"".concat(ae,"_selected"),className:G.countValue,children:oi}),g(T,{title:"App can’t process more than (".concat(Ie-1,") Offset Wells."),placement:"right",children:A(x,{"data-testid":"".concat(ae,"_maxOffsetSize"),className:G.maxOffsetSize,children:["/",Ie-1]})})]}),jt===z.normal&&g(H,{isViewOnly:je,viewType:jt,filters:Le,setFilters:Ne,isFilterExpanded:Pe,setIsFilterExpanded:Oe,isMapHidden:Me,setIsMapHidden:Be}),gt&&g("div",{className:G.topGradient,style:{top:yt}}),A("div",{className:c(G.content,(se={},t(se,G.contentMobile,jt===z.mobile),t(se,G.contentiOSMobile,oe()===Q),se)),onScroll:function(e){return function(e){e.target&&(mt&&(e.target.scrollLeft=0,ct(!1)),e.target.scrollLeft<=5&&ci&&di(!1),e.target.scrollLeft>5&&!ci&&di(!0),e.target.scrollTop<=5&&gt&&At(!1),e.target.scrollTop>5&&!gt&&At(!0),e.target.scrollHeight!==e.target.offsetHeight&&Math.round(e.target.scrollTop+e.target.offsetHeight+2)>=e.target.scrollHeight&&ji<Qt.length&&Ci((function(e){return e+Z})))}(e)},children:[jt!==z.normal&&g(H,{isViewOnly:je,viewType:jt,filters:Le,setFilters:Ne,isFilterExpanded:Pe,setIsFilterExpanded:Oe,isMapHidden:Me,setIsMapHidden:Be}),!Me&&pe&&g(N,{isViewOnly:je,mapHidden:Me,companyId:ke,subjectWell:Ye,offsetWellIds:Ze.map((function(e){return e.id})),wells:Ut,radius:Le[q.radius],handleChanageOffsetWell:ei,activeWellId:ye,viewType:jt}),g(L,{isHidden:!Pe,isWDUser:me,filterOptions:Rt,filters:Le,wellSections:wt,selectedWellSection:Ue,subjectWell:Ye,onChangeFilters:function(e){rt(!0),setTimeout((function(){return Ne(e)}),0)},onChangeBicWells:ri}),g(R,{open:pe,isTableLoading:it,companyId:ke,subjectWellId:Ve,sortBy:Kt,setSortBy:qt,sortDirection:Zt,setSortDirection:Jt,columnsWithDict:Gt,wells:hi,metricsKeys:Ht,setMetricsKeys:$t,handleChanageOffsetWell:ei,handleChangeAllOffsetWells:ti,handleAddRemoveAssets:Xt,isWellNameExpand:st,setIsWellNameExpand:lt,isHscrollMoved:ci,onHideAdvancedSearch:Yt,isViewOnly:je,isLastWell:Qt.length<=ji,contentRef:dt,isLimitedOffsetwells:St,maxOffsetwellNumber:Ie,wellSections:wt,setActiveWellId:De,viewType:jt,isWDUser:me})]}),je&&A("div",{className:G.viewOnlyInfoContainer,children:[g("span",{className:c(W.regular12,W.colors.t6),children:"The offset list is being automatically populated by "}),g("span",{className:c(W.medium12,W.colors.t6),children:me?"Offset Selection App.":"WellHub."})]})]})})};pe.propTypes={isWDUser:m.bool,defaultSubjectWell:m.shape({asset_id:m.number,companyId:m.number}),offsetSettings:m.shape({isSynced:m.bool,selectedWellIds:m.arrayOf(m.number),manualWellIds:m.arrayOf(m.number),filters:m.shape({}),metricsKeys:m.arrayOf(m.string),wellSection:m.string,companyId:m.number,subjectWellId:m.number,mapHidden:m.bool,filterExpanded:m.bool,hintPopupClosed:m.bool}),currentUser:m.shape({company_id:m.number}).isRequired,open:m.bool.isRequired,addWellsUsabilityInfo:m.func,isViewOnly:m.bool,onSave:m.func.isRequired,onClose:m.func.isRequired,maxOffsetSize:m.number,localMaxOffsetSize:m.number,syncAutoEnabled:m.bool},pe.defaultProps={isWDUser:!1,defaultSubjectWell:null,offsetSettings:{},addWellsUsabilityInfo:void 0,isViewOnly:!1,maxOffsetSize:X,localMaxOffsetSize:Y,syncAutoEnabled:!1};export{pe as default};
1
+ import{useState as e,useRef as t,useEffect as i,useCallback as o,useMemo as s}from"react";import r from"prop-types";import n from"classnames";import{uniqBy as l,sortBy as a,isEmpty as p}from"lodash";import{Replay as m,InfoOutlined as d}from"@material-ui/icons";import c from"../Modal/Modal.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/core";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import{isMobileDetected as u,isNativeDetected as j}from"../../utils/mobileDetect.js";import"querystring";import"uuid/v1";import"query-string";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/subscriptions.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../utils/env.js";import"../GradientManager/configuration/constants.js";import"../../utils/index.js";import"uuid";import"jsona";import"../StatusBadge/constants.js";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsx as f,jsxs as C,Fragment as v}from"react/jsx-runtime";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"rollbar";import"@rollbar/react";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import h from"../LoadingIndicator/LoadingIndicator.js";import{Regular14 as b,Regular12 as A}from"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../EmptyState/EmptyState.js";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/components/buttons/DragToZoomButton.js";import"../Chart/components/buttons/ZoomInButton.js";import"../Chart/components/buttons/ZoomOutButton.js";import"../Chart/components/buttons/PanButton.js";import"../Chart/components/buttons/ResetZoomButton.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/RangeSlider.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import g from"../Button/index.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.styles.js";import"../GradientPicker/GradientPicker.js";import"../GradientManager/GradientManager.styles.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTileIcon.js";import"../Casing/CasingTableV2/CasingTableV2.js";import"../Casing/CasingTile/CasingTile.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellButton/OffsetWellButton.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Toaster/Toaster.js";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PadModeSelect/PadModeSelect.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import{Tooltip as S}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Step.js";import"../Stepper/StepsWrapper.js";import"../Stepper/Stepper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../FilesLoader/Icons/FileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/InputAdornmentLeft.js";import"../Search/components/Groups.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import y from"../../styles/typography/index.js";import"../../styles/counter/counter.module.scss.js";import{useFetchWells as D}from"./effects/useFetchWells.js";import{useAdvancedWells as I}from"./effects/useAdvancedWells.js";import{useBicWells as x}from"./effects/useBicWells.js";import{useCompanyMetricKey as T}from"./effects/useCompanyMetricKey.js";import{useFilterOptions as W}from"./effects/useFilterOptions.js";import{useFilteredWells as P}from"./effects/useFilteredWells.js";import{useSortedWells as E}from"./effects/useSortedWells.js";import"./effects/useAssetsData.js";import{useTableColumns as O}from"./effects/useTableColumns.js";import{AppHeader as w}from"./components/AppHeader/AppHeader.js";import{Toolbar as M}from"./components/Toolbar/Toolbar.js";import{Filter as B}from"./components/Filter/Filter.js";import{WellsMap as V}from"./components/Map/WellsMap.js";import F from"./components/OffsetWellsTable/OffsetWellsTable.js";import H from"./OffsetWellPickerV4.module.css.js";import{ALL_SECTION_KEY as L,ViewType as k,ColumnType as N,FilterType as R,ROWS_PER_PAGE as U,LEAVE_TOUCH_DELAY as G,IOS_DEVICE as z,DEFAULT_BIC_OFFSET_SIZE as _,DEFAULT_LOCAL_OFFSET_SIZE as $,MAX_OFFSET_SIZE as K,TOP_GRADIENT_MAP as q,SMALL_SCREEN_WIDTH as Z,SMALL_SCREEN_HEIGHT as J}from"./constants.js";import{SEARCH_CATEGORIES as Q}from"./components/OffsetWellsTable/AdvancedSearch/constants.js";import{getMobileOperatingSystem as X,getCoordinatedWells as Y}from"./utils/index.js";import{showInfoNotification as ee}from"../../utils/notificationToasts.js";const te="OffsetWellPickerV4",ie=r=>{let{open:_,isWDUser:$,defaultSubjectWell:ie,currentUser:oe,offsetSettings:se,addWellsUsabilityInfo:re,isViewOnly:ne,onClose:le,onSave:ae,maxOffsetSize:pe,localMaxOffsetSize:me,syncAutoEnabled:de}=r;const[ce,ue]=e(null),je=Math.min(pe+1,me+1,K+1),fe=Math.min(Math.max(je,me+1),K+1),[Ce,ve]=e(null==se?void 0:se.filterExpanded),[he,be]=e(null==se?void 0:se.mapHidden),Ae=+(null==ie?void 0:ie.companyId)||+(null==oe?void 0:oe.company_id),ge=null==ie?void 0:ie.asset_id,[Se,ye]=e((null==se?void 0:se.filters)||{}),[De,Ie]=e((null==se?void 0:se.wellSection)||L),xe=t(!0),[Te,We]=e([]),[Pe,Ee]=e(null),[Oe,we]=e(!0),[Me,Be]=e(!1),[Ve,Fe]=e(!1),He=t(),[Le,ke]=e(k.none),Ne=t(),[Re,Ue]=e(!1),Ge=fe<=(null==Te?void 0:Te.length),ze=q[Le],_e=t(),[$e,Ke]=e(!0);i((()=>{if(_&&Ge&&ee(`App can’t process more than (${fe-1}) Offset Wells.`),!_){var e,t,i;(null==se||null===(e=se.selectedWellIds)||void 0===e?void 0:e.length)===(null===(t=_e.current)||void 0===t?void 0:t.length)&&(null==se||null===(i=se.selectedWellIds)||void 0===i?void 0:i.every((e=>{var t;return null===(t=_e.current)||void 0===t?void 0:t.includes(e)})))||(xe.current=!0),_e.current=null==se?void 0:se.selectedWellIds}}),[Ge,_,se]),i((()=>{function e(){window.innerWidth<=Z||u||j?ke(k.mobile):window.innerHeight<=J?ke(k.small):ke(k.normal)}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[_]),i((()=>{Ne.current&&Le===Ne.current||(Ne.current=Le,Le===k.small||Le===k.mobile?(be(!0),ve(!1)):(ve(!ne&&(null==se?void 0:se.filterExpanded)),be(!ne&&(null==se?void 0:se.mapHidden))),ye((null==se?void 0:se.filters)||{}),Ie((null==se?void 0:se.wellSection)||L))}),[se,ne,Le]);const qe=D(Ae,re),[Ze,Je,Qe,Xe]=x($,ge,qe);i((()=>{Ke(!0),Je(null),Xe(null)}),[ge]),i((()=>{de&&$e&&se&&Qe&&((async()=>{let e=!0;if(void 0===se.isSynced||se.isSynced){var t;const i=Qe[L],o=((null==se?void 0:se.selectedWellIds)||[]).every((e=>i.includes(e)));if(i.length===(null===(t=se.selectedWellIds)||void 0===t?void 0:t.length)&&o)e=!1;else{const e=await Y(i,ge);let t=e.slice(0,je+1).map((e=>e.id));t=e.slice(0,me+1).map((e=>e.id));const o={...se,subjectWellId:ge,selectedWellIds:t,offsetWellsLimited:fe<=t.length},s=e.filter((e=>t.includes(e.id)));ae(o,s)}}else e=!1;if(!e){const e=await Y((null==se?void 0:se.selectedWellIds)||[],ge);ae(se,e)}})(),Ke(!1))}),[se,Qe,ge,fe,de]);const[Ye,et]=T(Ae,null==se?void 0:se.metricsKeys),tt=I(Ae,qe,Ze,Qe,ge,Ye),it=W(tt);i((()=>{if(tt&&Ze){const e=tt.find((e=>e.id===ge));if(e){const t=Ze.filter((e=>e.value!==L)).map((e=>{let{label:t}=e;return t})),i={...e,...t.length>0&&{[N.wellSection]:t}};Ee(i)}else Ee(null)}}),[Ze,tt]);const ot=O(Ye),st=P(tt,Se);i((()=>{if(st)if(xe.current){let e=tt.filter((e=>((null==se?void 0:se.selectedWellIds)||[]).includes(e.id)));Pe&&(e=e.concat(Pe)),We(l(e,"id")),xe.current=!1}else We((e=>{let t=(st||[]).filter((t=>!!e.find((e=>{let{id:i}=e;return t.id===i}))));return Pe&&(t=t.concat(Pe)),l(t,"id")}))}),[tt,st,null==se?void 0:se.selectedWellIds]);const[rt,nt,lt,at,pt]=E(Pe,st,Te,we,xe.current),mt=o(((e,t,i)=>{let o;o=i===Q.well.name?t:t.reduce(((e,t)=>{var i;const o=null===(i=tt.find((e=>e.id===t)))||void 0===i?void 0:i.rigName,s=tt.filter((e=>e.rigName===o)).map((e=>e.id));return e.concat(s)}),[]);let s=tt.filter((e=>{let{id:t}=e;return o.includes(t)}));e?(s=s.slice(0,Math.min(s.length,fe-Te.length)),We((e=>l(e.concat(s),"id")))):We((e=>l(e.filter((e=>{let{id:t}=e;return!s.find((e=>e.id===t))})))))}),[tt,Te]),dt=o((()=>{Fe(!0)}),[]),ct=o((e=>{et(e)}),[]),ut=o(((e,t)=>{We(t?t=>[...t,e]:t=>t.filter((t=>t.id!==e.id)))}),[]),jt=o((e=>{if(e){const e=Pe?st.concat(Pe):st,t=a(l(e,"id"),"distance");We(t.slice(0,fe))}else We(Pe?[Pe]:[])}),[st,Pe,fe]),ft=e=>{if(Qe){const t=tt.filter((t=>Qe[e].includes(t.id))),i=a(t,"distance");We(i.slice(0,je))}else We(Pe?[Pe]:[])},Ct=o((e=>{Ie(e),ft(e)}),[ft]),vt=s((()=>Te.find((e=>e.id===ge))?Te.length-1:Te.length),[Te,ge]),ht=s((()=>{if(!Qe)return!1;const e=Te.map((e=>{let{id:t}=e;return t}));let t;const i=Qe[De]||[];return t=Math.min(i.length,je)===e.length&&e.every((e=>i.includes(e))),t}),[Qe,Te,De,je]),bt=()=>{let e=(tt||[]).filter((e=>((null==se?void 0:se.selectedWellIds)||[]).includes(e.id)));Pe&&(e=e.concat(Pe)),We(l(e,"id"));const t={...se,mapHidden:he,filterExpanded:Ce};ae(t),ye((null==se?void 0:se.filters)||{}),Ie((null==se?void 0:se.wellSection)||L),le()},At=s((()=>!ht||(!(p(Se)||!Se[R.sideTracks])||De!==L)),[ht,Se,De]),gt=!tt||!Ze||!pt||Le===k.none,[St,yt]=e(!1),[Dt,It]=e(U),[xt,Tt]=e([]);i((()=>{if(!pt)return;const e=pt.slice(0,Dt);Tt(e)}),[pt,Dt,Pe]);return f(c,{open:_,onClose:bt,title:f(w,{isWDUser:$,viewType:Le,totalCount:(null==tt?void 0:tt.length)??0,selectedCount:vt,isViewOnly:ne,maxOffsetwellNumber:fe}),isMobile:Le===k.mobile,contentContainerClassName:n(H.offsetWellDialog),contentClassName:n(H.contentContainer,{[H.smallContainer]:Le===k.small,[H.contentContainerMobile]:Le===k.mobile}),actionsClassName:H.modalActions,actions:!ne&&C("div",{className:H.actionsWrapper,children:[!gt&&At?f(S,{placement:"bottom-start",title:"Reset to Synced Offsets in "+($?"Offset App":"Wellhub"),children:f("div",{children:f(g,{"data-testid":`${te}_reset`,onClick:()=>{ye({}),Ie(L),ft(L)},color:"primary",startIcon:Le!==k.mobile&&f(m,{}),classes:Le===k.mobile&&{root:H.resetButtonMobile},children:Le!==k.mobile?"Reset":f(m,{})})})}):f("div",{className:Le===k.mobile&&H.infoIconContainer,children:Le!==k.mobile?C(v,{children:[f("span",{className:n(y.regular12,y.colors.t6),children:"The offset list is being automatically populated by "}),f("span",{className:n(y.medium12,y.colors.t6),children:$?"Offset Selection App.":"WellHub."})]}):f(S,{title:C("div",{children:[f("span",{className:n(y.regular12,y.colors.t1),children:"The offset list is being automatically populated by "}),f("span",{className:n(y.medium12,y.colors.t1),children:$?"Offset Selection App.":"WellHub."})]}),enterTouchDelay:0,leaveTouchDelay:G,children:f(d,{className:H.infoIcon})})}),C("div",{className:H.buttonGap,children:[f(g,{"data-testid":`${te}_cancel`,onClick:bt,color:"primary",children:"Cancel"}),C(g,{"data-testid":`${te}_selectedWells`,variant:"contained",color:"primary",onClick:()=>{le();const e={...se,companyId:Ae,subjectWellId:ge,selectedWellIds:Te.map((e=>{let{id:t}=e;return t})),filters:Se,metricsKeys:Ye,wellSection:De,isSynced:ht,mapHidden:he,filterExpanded:Ce,offsetWellsLimited:Ge};ae(e,Te)},children:["Select (",vt,")"]})]})]}),children:gt?f(h,{fullscreen:!1}):C("div",{className:n(H.contentWrapper),ref:He,children:[Le===k.mobile&&C("div",{className:n(H.countContainer,{[H.countContainerMobile]:Le===k.mobile}),children:[f(b,{className:H.totalLabel,children:"Total:"}),f(b,{"data-testid":`${te}_totalWells`,className:H.countValue,children:tt.length}),f(b,{className:H.selectedLabel,children:"Selected:"}),f(b,{"data-testid":`${te}_selected`,className:H.countValue,children:vt}),f(S,{title:`App can’t process more than (${fe-1}) Offset Wells.`,placement:"right",children:C(A,{"data-testid":`${te}_maxOffsetSize`,className:H.maxOffsetSize,children:["/",fe-1]})})]}),Le===k.normal&&f(M,{isViewOnly:ne,viewType:Le,filters:Se,setFilters:ye,isFilterExpanded:Ce,setIsFilterExpanded:ve,isMapHidden:he,setIsMapHidden:be}),Re&&f("div",{className:H.topGradient,style:{top:ze}}),C("div",{className:n(H.content,{[H.contentMobile]:Le===k.mobile,[H.contentiOSMobile]:X()===z}),onScroll:e=>(e=>{if(!e.target)return;if(Ve&&(e.target.scrollLeft=0,Fe(!1)),e.target.scrollLeft<=5&&St&&yt(!1),e.target.scrollLeft>5&&!St&&yt(!0),e.target.scrollTop<=5&&Re&&Ue(!1),e.target.scrollTop>5&&!Re&&Ue(!0),e.target.scrollHeight===e.target.offsetHeight)return;Math.round(e.target.scrollTop+e.target.offsetHeight+2)>=e.target.scrollHeight&&Dt<pt.length&&It((e=>e+U))})(e),children:[Le!==k.normal&&f(M,{isViewOnly:ne,viewType:Le,filters:Se,setFilters:ye,isFilterExpanded:Ce,setIsFilterExpanded:ve,isMapHidden:he,setIsMapHidden:be}),!he&&_&&f(V,{isViewOnly:ne,mapHidden:he,companyId:Ae,subjectWell:Pe,offsetWellIds:Te.map((e=>{let{id:t}=e;return t})),wells:st,radius:Se[R.radius],handleChanageOffsetWell:ut,activeWellId:ce,viewType:Le}),f(B,{isHidden:!Ce,isWDUser:$,filterOptions:it,filters:Se,wellSections:Ze,selectedWellSection:De,subjectWell:Pe,onChangeFilters:e=>{we(!0),setTimeout((()=>ye(e)),0)},onChangeBicWells:Ct}),f(F,{open:_,isTableLoading:Oe,companyId:Ae,subjectWellId:ge,sortBy:rt,setSortBy:nt,sortDirection:lt,setSortDirection:at,columnsWithDict:ot,wells:xt,metricsKeys:Ye,setMetricsKeys:ct,handleChanageOffsetWell:ut,handleChangeAllOffsetWells:jt,handleAddRemoveAssets:mt,isWellNameExpand:Me,setIsWellNameExpand:Be,isHscrollMoved:St,onHideAdvancedSearch:dt,isViewOnly:ne,isLastWell:pt.length<=Dt,contentRef:He,isLimitedOffsetwells:Ge,maxOffsetwellNumber:fe,wellSections:Ze,setActiveWellId:ue,viewType:Le,isWDUser:$})]}),ne&&C("div",{className:H.viewOnlyInfoContainer,children:[f("span",{className:n(y.regular12,y.colors.t6),children:"The offset list is being automatically populated by "}),f("span",{className:n(y.medium12,y.colors.t6),children:$?"Offset Selection App.":"WellHub."})]})]})})};ie.propTypes={isWDUser:r.bool,defaultSubjectWell:r.shape({asset_id:r.number,companyId:r.number}),offsetSettings:r.shape({isSynced:r.bool,selectedWellIds:r.arrayOf(r.number),manualWellIds:r.arrayOf(r.number),filters:r.shape({}),metricsKeys:r.arrayOf(r.string),wellSection:r.string,companyId:r.number,subjectWellId:r.number,mapHidden:r.bool,filterExpanded:r.bool,hintPopupClosed:r.bool}),currentUser:r.shape({company_id:r.number}).isRequired,open:r.bool.isRequired,addWellsUsabilityInfo:r.func,isViewOnly:r.bool,onSave:r.func.isRequired,onClose:r.func.isRequired,maxOffsetSize:r.number,localMaxOffsetSize:r.number,syncAutoEnabled:r.bool},ie.defaultProps={isWDUser:!1,defaultSubjectWell:null,offsetSettings:{},addWellsUsabilityInfo:void 0,isViewOnly:!1,maxOffsetSize:_,localMaxOffsetSize:$,syncAutoEnabled:!1};export{ie as default};
@@ -1 +1 @@
1
- import e from"prop-types";import{Divider as t,Tooltip as r}from"@material-ui/core";import{Regular20 as s,Regular14 as a,Regular12 as i}from"../../../Typography.js";import{ViewType as l}from"../../constants.js";import{CustomInfoIcon as o}from"../CustomInfoIcon/CustomInfoIcon.js";import c from"./AppHeader.module.css.js";import{jsx as n,jsxs as m}from"react/jsx-runtime";var d=function(e){var d=e.isWDUser,p=e.viewType,f=e.totalCount,u=e.selectedCount,h=e.isViewOnly,N=e.maxOffsetwellNumber;return p===l.mobile?n("div",{className:c.headerContainer,children:n(s,{children:"Select Offset Wells"})}):m("div",{className:c.headerContainer,children:[n(s,{children:"Select Offset Wells"}),n(t,{className:c.divideLine}),n(a,{className:c.totalLabel,children:"Total:"}),n(a,{"data-testid":"".concat("AppHeader","_totalWells"),className:c.countValue,children:f}),n(a,{className:c.selectedLabel,children:"Selected:"}),n(a,{"data-testid":"".concat("AppHeader","_selected"),className:c.countValue,children:u}),n(r,{title:"App can’t process more than (".concat(N-1,") Offset Wells."),placement:"right",children:m(i,{"data-testid":"".concat("AppHeader","_maxOffsetSize"),className:c.maxOffsetSize,children:["/",N-1]})}),h&&n(o,{viewType:p,isWDUser:d})]})};d.propTypes={viewType:e.string.isRequired,totalCount:e.number.isRequired,selectedCount:e.number.isRequired,maxOffsetwellNumber:e.number.isRequired};export{d as AppHeader};
1
+ import e from"prop-types";import{Divider as t,Tooltip as s}from"@material-ui/core";import{Regular20 as r,Regular14 as l,Regular12 as a}from"../../../Typography.js";import{ViewType as i}from"../../constants.js";import{CustomInfoIcon as o}from"../CustomInfoIcon/CustomInfoIcon.js";import m from"./AppHeader.module.css.js";import{jsx as n,jsxs as c}from"react/jsx-runtime";const d=e=>{let{isWDUser:d,viewType:p,totalCount:f,selectedCount:u,isViewOnly:h,maxOffsetwellNumber:N}=e;return p===i.mobile?n("div",{className:m.headerContainer,children:n(r,{children:"Select Offset Wells"})}):c("div",{className:m.headerContainer,children:[n(r,{children:"Select Offset Wells"}),n(t,{className:m.divideLine}),n(l,{className:m.totalLabel,children:"Total:"}),n(l,{"data-testid":"AppHeader_totalWells",className:m.countValue,children:f}),n(l,{className:m.selectedLabel,children:"Selected:"}),n(l,{"data-testid":"AppHeader_selected",className:m.countValue,children:u}),n(s,{title:`App can’t process more than (${N-1}) Offset Wells.`,placement:"right",children:c(a,{"data-testid":"AppHeader_maxOffsetSize",className:m.maxOffsetSize,children:["/",N-1]})}),h&&n(o,{viewType:p,isWDUser:d})]})};d.propTypes={viewType:e.string.isRequired,totalCount:e.number.isRequired,selectedCount:e.number.isRequired,maxOffsetwellNumber:e.number.isRequired};export{d as AppHeader};
@@ -1 +1 @@
1
- import e from"prop-types";import{Tooltip as o}from"@material-ui/core";import i from"@material-ui/icons/Info";import r from"./CustomInfoIcon.module.css.js";import{ViewType as t,LEAVE_TOUCH_DELAY as m}from"../../constants.js";import{jsx as s}from"react/jsx-runtime";function l(e){var l=e.viewType,n=e.isWDUser;return s(o,{title:"View only mode. To edit offsets, use ".concat(n?"Offset Well Selection app.":"Wellhub."),enterTouchDelay:l===t.mobile&&0,leaveTouchDelay:l===t.mobile&&m,placement:l===t.mobile?"":"right",children:s("div",{className:r.infoWrapper,children:s(i,{className:r.infoIcon})})})}l.propTypes={viewType:e.string.isRequired};export{l as CustomInfoIcon};
1
+ import e from"prop-types";import{Tooltip as o}from"@material-ui/core";import i from"@material-ui/icons/Info";import r from"./CustomInfoIcon.module.css.js";import{ViewType as t,LEAVE_TOUCH_DELAY as m}from"../../constants.js";import{jsx as s}from"react/jsx-runtime";function l(e){let{viewType:l,isWDUser:n}=e;return s(o,{title:"View only mode. To edit offsets, use "+(n?"Offset Well Selection app.":"Wellhub."),enterTouchDelay:l===t.mobile&&0,leaveTouchDelay:l===t.mobile&&m,placement:l===t.mobile?"":"right",children:s("div",{className:r.infoWrapper,children:s(i,{className:r.infoIcon})})})}l.propTypes={viewType:e.string.isRequired};export{l as CustomInfoIcon};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as r}from"react";import o from"prop-types";import{startCase as i,isEmpty as n,omit as s}from"lodash";import p from"moment";import a from"classnames";import{Divider as m,ListItemText as l,FormControlLabel as c,Switch as d}from"@material-ui/core";import{jsxs as j,jsx as u,Fragment as C}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"@material-ui/icons";import"../../../../utils/mobileDetect.js";import"../../../IconButton/index.js";import"../../../Modal/CorvaModal.css.js";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../AppIcon/AppIcon.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../Icons/AnnotationIcon.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../../clients/jsonApi/index.js";import"../../../../clients/subscriptions.js";import"../../../../constants/goals.js";import"../../../../constants/segment.js";import"../../../../constants/alerts.js";import"../../../../constants/apps.js";import"../../../../constants/drillstring.js";import"../../../../constants/completion.js";import"../../../../constants/appPackages.js";import"../../../../constants/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../../utils/env.js";import"../../../GradientManager/configuration/constants.js";import"../../../../utils/index.js";import"jsona";import"../../../StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"../../../../clients/api/apiCore.js";import"../../../../clients/constants.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../DevCenter/AppContext.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"rollbar";import"@rollbar/react";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AssetEditor/index.js";import"../../../AssetEditorV2/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../RealTimeValuesSidebar/RealTimeSidebar.js";import"../../../CollapsableSidebar.js";import A from"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../EmptyState/EmptyState.js";import"../../../ParameterCharts/ParameterCharts.js";import"../../../ParameterCharts/AddEditTrack.js";import"../../../ChartActionsList/ChartActionsList.js";import"../../../CopyToClipboard/CopyToClipboard.js";import"../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../AssetEditor/SingleAssetEditor.js";import"../../../SettingEditors/ColorEditor/index.js";import"../../../SettingEditors/DropdownEditor/index.js";import"../../../SettingEditors/RadioEditor/index.js";import"../../../SwitchControl/index.js";import"../../../ColorPicker/ColorPicker.js";import"../../../Chart/components/ChartButton.js";import"../../../Chart/components/ChartButtons.js";import"../../../Chart/components/ChartWrapper.js";import"../../../Chart/components/AxisDropdown.js";import"../../../Chart/components/ChartSelect.js";import"../../../Chart/components/buttons/DragToZoomButton.js";import"../../../Chart/components/buttons/ZoomInButton.js";import"../../../Chart/components/buttons/ZoomOutButton.js";import"../../../Chart/components/buttons/PanButton.js";import"../../../Chart/components/buttons/ResetZoomButton.js";import"../../../Chart/components/buttons/HideAxesButton.js";import"../../../Chart/components/buttons/ChartTypeButton.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../MiddleTruncatedText/MiddleTruncatedText.js";import"../../../RangeSlider/RangeSlider.js";import"../../../AdvancedSlider/AdvancedSlider.js";import"../../../Breadcrumbs/index.js";import"../../../VirtualizedTable/index.js";import"../../../EmptyView/EmptyView.js";import"../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../Button/index.js";import"../../../ContextMenuItem/index.js";import"../../../FolderMenuItem/index.js";import"../../../EditableItem/EditableItem/index.js";import"../../../EditableItem/EditableItemWithBadge/index.js";import"../../../Checkbox/index.js";import"../../../FolderMenuItemWithLinks/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import"../../../Select/index.js";import"../../../Select/SelectFilterBy.js";import"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../GradientManager/GradientSelect.styles.js";import"../../../GradientPicker/GradientPicker.js";import"../../../GradientManager/GradientManager.styles.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../../../Notifications/Toast.js";import"../../../Toaster/Toaster.js";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../Template/TemplateSharingDialog/index.js";import"../../../MenuItem/index.js";import"../../../MiddleTruncate/MiddleTruncate.js";import"../../../PadModeSelect/PadModeSelect.js";import"../../../PinnableFilters/PinnableFilters.js";import"../../../HeaderLayout/HeaderLayout.js";import"../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../PadOffsetsPicker/StagesSelector.js";import"../../../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/ScrollableTooltip.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.js";import"../../../SearchInput/index.js";import"../../../FeedItem/FeedItem.js";import"../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../PostInput/PostInput.js";import"../../../KeyboardDateTimePicker.js";import"../../../AddComment/Popover.js";import"../../../AddComment/Popup.js";import"../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../StageDesignVActual/ComparisonHeader.js";import"../../../StageDesignVActual/ComparisonRow.js";import"../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../EmbeddedApp/EmbeddedApp.js";import"../../../Autocomplete/Autocomplete.js";import"../../../DocumentViewer/DocumentViewer.js";import"../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../Search/Search.js";import"../../../Search/components/Listbox.js";import"../../../Search/components/Paper.js";import"../../../Search/components/RecentSearches.js";import"../../../Search/components/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import"../../../StatusBadge/index.js";import"../../../Attachment/index.js";import"../../../EmojiIconButton.js";import"../../../FileUploadIconButton.js";import"../../../FilePreview/index.js";import"../../../FailedFileUploading.js";import"../../../UserMention/index.js";import"../../../CommentsInfo/index.js";import"../../../CommentInput/index.js";import"../../../Comment/index.js";import"../../../CommentLoader.js";import"../../../AssetNameLabel/AssetStatusBadge.js";import"../../../AssetEditorV2/components/PrimaryAssetSelect.js";import"../../../AssetEditorV2/components/SecondaryAssetSelect.js";import"../../../AssetEditorV2/components/SelectItem.js";import"../../../AssetEditorV2/components/MultipleAssetsToggle.js";import"../../../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../../../EChartsWrapper/EChartsWrapper.js";import{RadiusInput as v}from"./RadiusInput.js";import{MultiSelect as g}from"./MultiSelect.js";import{WellSection as f}from"./WellSection.js";import{PeriodSelect as b}from"./PeriodSelect.js";import{StatusOptions as D,FilterType as h,OBJECTIVE_PERIOD_LIST as S}from"../../constants.js";import P from"./Filter.module.css.js";function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function x(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?T(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):T(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var y=function(o){var T=o.isHidden,y=o.isWDUser,I=o.filterOptions,E=o.wellSections,B=o.filters,k=o.selectedWellSection,F=o.subjectWell,O=o.onChangeFilters,V=o.onChangeBicWells,M=r({}),R=t(M,2),W=R[0],L=R[1],w=function(t,r){t===h.sideTracks?O(x(x({},B),{},e({},h.sideTracks,r))):O(r?x(x({},B),{},e({},t,r)):s(x({},B),[t]))},H=function(t){return function(r){var o=p(r);if(o.isValid()){var i=o.unix(),n=!1;"timeRangeFrom"===t?n=i>=B[h.timeRangeTo]:"timeRangeTo"===t&&(n=i<=B[h.timeRangeFrom]),L(n?e({},t,!0):{}),O(x(x({},B),{},e({},t,i)))}}};return j("div",{className:a(P.filterContainer,e({},P.hidden,T)),children:[u(m,{className:P.divideLine}),j("div",{className:P.filterGroup,children:[u(g,{label:"Status",options:D.map((function(e){return e.value})),currentValues:B[h.status],ValueComponent:function(e){var t,r=e.value;return j("div",{className:P.statusItem,children:[u("div",{className:P.statusIcon,style:{background:null===(t=D.find((function(e){return e.value===r})))||void 0===t?void 0:t.color}}),i(r)]})},ListMenuItem:function(e){var t,r=e.value;return j("div",{className:P.statusItem,children:[u("div",{className:P.statusIcon,style:{background:null===(t=D.find((function(e){return e.value===r})))||void 0===t?void 0:t.color}}),u(l,{primary:i(r)})]})},onChange:function(e){return w(h.status,e)}}),I.map((function(e){var t=e.value,r=e.label,o=e.options;return u(g,{label:r,options:o,currentValues:B[t],ListMenuItem:function(e){var t=e.value;return u(l,{primary:t})},onChange:function(e){return w(t,e)}})})),u(v,{"data-testid":"".concat("Filter","_radiusInput"),radius:B[h.radius],editable:!!F,onChange:function(e){return w(h.radius,e)}}),u(b,{label:"Last Active",currentValue:B[h.period]||"all",options:S,className:P.companySelect,onChange:function(e){return w(h.period,e)}}),"custom"===B[h.period]&&j(C,{children:[u("div",{className:P.filterItem,children:u(A,{variant:"inline",label:"Date From",format:"MM/DD/YY HH:mm",value:1e3*B[h.timeRangeFrom]||null,onChange:H("timeRangeFrom"),error:W.timeRangeFrom})}),u("div",{className:P.filterItem,children:u(A,{variant:"inline",label:"Date To",format:"MM/DD/YY HH:mm",value:1e3*B[h.timeRangeTo]||null,onChange:H("timeRangeTo"),error:W.timeRangeTo})})]}),u(c,{control:u(d,{"data-testid":"".concat("Filter","_ExcludeSidetracks"),size:"small",color:"primary",checked:B[h.sideTracks]||!1,onChange:function(e){return w(h.sideTracks,e.target.checked)}}),label:"Exclude Sidetracks",classes:{label:P.sidetrack}}),y&&!n(E)&&u(f,{selectedValue:k,wellSections:E,onChange:V})]})]})};y.propTypes={isHidden:o.bool.isRequired,isWDUser:o.bool.isRequired,filterOptions:o.arrayOf(o.shape({})).isRequired,wellSections:o.arrayOf(o.shape({})).isRequired,filters:o.shape({}).isRequired,selectedWellSection:o.string.isRequired,subjectWell:o.shape({}).isRequired,onChangeFilters:o.func.isRequired,onChangeBicWells:o.func.isRequired};export{y as Filter};
1
+ import{useState as e}from"react";import t from"prop-types";import{startCase as r,isEmpty as o,omit as i}from"lodash";import s from"moment";import n from"classnames";import{Divider as p,ListItemText as a,FormControlLabel as m,Switch as l}from"@material-ui/core";import{jsxs as d,jsx as c,Fragment as j}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"@material-ui/icons";import"../../../../utils/mobileDetect.js";import"../../../IconButton/index.js";import"../../../Modal/CorvaModal.css.js";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../AppIcon/AppIcon.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../Icons/AnnotationIcon.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"querystring";import"uuid/v1";import"query-string";import"../../../../clients/api/apiCore.js";import"../../../../clients/constants.js";import"../../../../clients/subscriptions.js";import"../../../../constants/goals.js";import"../../../../constants/segment.js";import"../../../../constants/alerts.js";import"../../../../constants/apps.js";import"../../../../constants/drillstring.js";import"../../../../constants/completion.js";import"../../../../constants/appPackages.js";import"../../../../constants/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../../utils/env.js";import"../../../GradientManager/configuration/constants.js";import"../../../../utils/index.js";import"jsona";import"../../../StatusBadge/constants.js";import"lodash/set";import"lodash/get";import"lodash/unset";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../DevCenter/AppContext.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"rollbar";import"@rollbar/react";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AssetEditor/index.js";import"../../../AssetEditorV2/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../RealTimeValuesSidebar/RealTimeSidebar.js";import"../../../CollapsableSidebar.js";import C from"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"slate";import"../../../EmptyState/EmptyState.js";import"../../../ParameterCharts/ParameterCharts.js";import"../../../ParameterCharts/AddEditTrack.js";import"../../../ChartActionsList/ChartActionsList.js";import"../../../CopyToClipboard/CopyToClipboard.js";import"../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../AssetEditor/SingleAssetEditor.js";import"../../../SettingEditors/ColorEditor/index.js";import"../../../SettingEditors/DropdownEditor/index.js";import"../../../SettingEditors/RadioEditor/index.js";import"../../../SwitchControl/index.js";import"../../../ColorPicker/ColorPicker.js";import"../../../Chart/components/ChartButton.js";import"../../../Chart/components/ChartButtons.js";import"../../../Chart/components/ChartWrapper.js";import"../../../Chart/components/AxisDropdown.js";import"../../../Chart/components/ChartSelect.js";import"../../../Chart/components/buttons/DragToZoomButton.js";import"../../../Chart/components/buttons/ZoomInButton.js";import"../../../Chart/components/buttons/ZoomOutButton.js";import"../../../Chart/components/buttons/PanButton.js";import"../../../Chart/components/buttons/ResetZoomButton.js";import"../../../Chart/components/buttons/HideAxesButton.js";import"../../../Chart/components/buttons/ChartTypeButton.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../MiddleTruncatedText/MiddleTruncatedText.js";import"../../../RangeSlider/RangeSlider.js";import"../../../AdvancedSlider/AdvancedSlider.js";import"../../../Breadcrumbs/index.js";import"../../../VirtualizedTable/index.js";import"../../../EmptyView/EmptyView.js";import"../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../Button/index.js";import"../../../ContextMenuItem/index.js";import"../../../FolderMenuItem/index.js";import"../../../EditableItem/EditableItem/index.js";import"../../../EditableItem/EditableItemWithBadge/index.js";import"../../../Checkbox/index.js";import"../../../FolderMenuItemWithLinks/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import"../../../Select/index.js";import"../../../Select/SelectFilterBy.js";import"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../GradientManager/GradientSelect.styles.js";import"../../../GradientPicker/GradientPicker.js";import"../../../GradientManager/GradientManager.styles.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../../../Notifications/Toast.js";import"../../../Toaster/Toaster.js";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../Template/TemplateSharingDialog/index.js";import"../../../MenuItem/index.js";import"../../../MiddleTruncate/MiddleTruncate.js";import"../../../PadModeSelect/PadModeSelect.js";import"../../../PinnableFilters/PinnableFilters.js";import"../../../HeaderLayout/HeaderLayout.js";import"../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../PadOffsetsPicker/StagesSelector.js";import"../../../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/ScrollableTooltip.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.js";import"../../../SearchInput/index.js";import"../../../FeedItem/FeedItem.js";import"../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../PostInput/PostInput.js";import"../../../KeyboardDateTimePicker.js";import"../../../AddComment/Popover.js";import"../../../AddComment/Popup.js";import"../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../StageDesignVActual/ComparisonHeader.js";import"../../../StageDesignVActual/ComparisonRow.js";import"../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../EmbeddedApp/EmbeddedApp.js";import"../../../Autocomplete/Autocomplete.js";import"../../../DocumentViewer/DocumentViewer.js";import"../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../Search/Search.js";import"../../../Search/components/Listbox.js";import"../../../Search/components/Paper.js";import"../../../Search/components/RecentSearches.js";import"../../../Search/components/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import"../../../StatusBadge/index.js";import"../../../Attachment/index.js";import"../../../EmojiIconButton.js";import"../../../FileUploadIconButton.js";import"../../../FilePreview/index.js";import"../../../FailedFileUploading.js";import"../../../UserMention/index.js";import"../../../CommentsInfo/index.js";import"../../../CommentInput/index.js";import"../../../Comment/index.js";import"../../../CommentLoader.js";import"../../../AssetNameLabel/AssetStatusBadge.js";import"../../../AssetEditorV2/components/PrimaryAssetSelect.js";import"../../../AssetEditorV2/components/SecondaryAssetSelect.js";import"../../../AssetEditorV2/components/SelectItem.js";import"../../../AssetEditorV2/components/MultipleAssetsToggle.js";import"../../../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../../../EChartsWrapper/EChartsWrapper.js";import{RadiusInput as u}from"./RadiusInput.js";import{MultiSelect as A}from"./MultiSelect.js";import{WellSection as v}from"./WellSection.js";import{PeriodSelect as g}from"./PeriodSelect.js";import{StatusOptions as D,FilterType as S,OBJECTIVE_PERIOD_LIST as h}from"../../constants.js";import b from"./Filter.module.css.js";const f=t=>{let{isHidden:f,isWDUser:P,filterOptions:T,wellSections:x,filters:I,selectedWellSection:E,subjectWell:y,onChangeFilters:B,onChangeBicWells:k}=t;const[F,V]=e({}),M=(e,t)=>{e===S.sideTracks?B({...I,[S.sideTracks]:t}):B(t?{...I,[e]:t}:i({...I},[e]))},R=e=>t=>{const r=s(t);if(!r.isValid())return;const o=r.unix();let i=!1;"timeRangeFrom"===e?i=o>=I[S.timeRangeTo]:"timeRangeTo"===e&&(i=o<=I[S.timeRangeFrom]),V(i?{[e]:!0}:{}),B({...I,[e]:o})};return d("div",{className:n(b.filterContainer,{[b.hidden]:f}),children:[c(p,{className:b.divideLine}),d("div",{className:b.filterGroup,children:[c(A,{label:"Status",options:D.map((e=>e.value)),currentValues:I[S.status],ValueComponent:e=>{var t;let{value:o}=e;return d("div",{className:b.statusItem,children:[c("div",{className:b.statusIcon,style:{background:null===(t=D.find((e=>e.value===o)))||void 0===t?void 0:t.color}}),r(o)]})},ListMenuItem:e=>{var t;let{value:o}=e;return d("div",{className:b.statusItem,children:[c("div",{className:b.statusIcon,style:{background:null===(t=D.find((e=>e.value===o)))||void 0===t?void 0:t.color}}),c(a,{primary:r(o)})]})},onChange:e=>M(S.status,e)}),T.map((e=>{let{value:t,label:r,options:o}=e;return c(A,{label:r,options:o,currentValues:I[t],ListMenuItem:e=>{let{value:t}=e;return c(a,{primary:t})},onChange:e=>M(t,e)})})),c(u,{"data-testid":"Filter_radiusInput",radius:I[S.radius],editable:!!y,onChange:e=>M(S.radius,e)}),c(g,{label:"Last Active",currentValue:I[S.period]||"all",options:h,className:b.companySelect,onChange:e=>M(S.period,e)}),"custom"===I[S.period]&&d(j,{children:[c("div",{className:b.filterItem,children:c(C,{variant:"inline",label:"Date From",format:"MM/DD/YY HH:mm",value:1e3*I[S.timeRangeFrom]||null,onChange:R("timeRangeFrom"),error:F.timeRangeFrom})}),c("div",{className:b.filterItem,children:c(C,{variant:"inline",label:"Date To",format:"MM/DD/YY HH:mm",value:1e3*I[S.timeRangeTo]||null,onChange:R("timeRangeTo"),error:F.timeRangeTo})})]}),c(m,{control:c(l,{"data-testid":"Filter_ExcludeSidetracks",size:"small",color:"primary",checked:I[S.sideTracks]||!1,onChange:e=>M(S.sideTracks,e.target.checked)}),label:"Exclude Sidetracks",classes:{label:b.sidetrack}}),P&&!o(x)&&c(v,{selectedValue:E,wellSections:x,onChange:k})]})]})};f.propTypes={isHidden:t.bool.isRequired,isWDUser:t.bool.isRequired,filterOptions:t.arrayOf(t.shape({})).isRequired,wellSections:t.arrayOf(t.shape({})).isRequired,filters:t.shape({}).isRequired,selectedWellSection:t.string.isRequired,subjectWell:t.shape({}).isRequired,onChangeFilters:t.func.isRequired,onChangeBicWells:t.func.isRequired};export{f as Filter};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import{useState as t,useEffect as n}from"react";import r from"prop-types";import{makeStyles as i,FormControl as l,InputLabel as a,Select as o,MenuItem as u,Checkbox as c,ListItemText as s,Divider as d}from"@material-ui/core";import{jsxs as p,jsx as m}from"react/jsx-runtime";var h=i({multiMenuItem:{paddingLeft:"9px !important",paddingRight:"18px !important"}}),f=function(r){var i=r.label,f=r.currentValues,g=r.options,v=r.ListMenuItem,y=r.ValueComponent,x=r.onChange,C=r["data-testid"],b=h(),M=t([]),R=e(M,2),V=R[0],_=R[1],k=t(!1),q=e(k,2),I=q[0],O=q[1],A=t(!1),L=e(A,2),S=L[0],T=L[1];n((function(){_(f||[])}),[f,g]);return p(l,{style:{width:"100%"},children:[m(a,{shrink:!0,children:i}),p(o,{"data-testid":"".concat(C,"_select_").concat(i),multiple:!0,displayEmpty:!0,fullWidth:!0,value:V,renderValue:function(e){return function(e){return y&&1===e.length?m(y,{value:e[0]}):0===e.length?"All":1===e.length?e[0]:"".concat(e.length," Selected")}(e)},open:I,onOpen:function(){O(!0),T(!1)},onClose:function(){O(!1),S&&x(0===V.length?null:V),T(!1)},onChange:function(e){var t=e.target.value;_(t.includes("all")?[]:t),T(!0)},children:[p(u,{value:"all",classes:{gutters:b.multiMenuItem},children:[m(c,{"data-testid":"".concat(C,"_checkbox_all"),checked:!0,indeterminate:V.length>0}),m(s,{primary:"All"})]},"all"),m(d,{}),g.map((function(e){return p(u,{value:e,classes:{gutters:b.multiMenuItem},children:[m(c,{"data-testid":"".concat(C,"_checkbox_").concat(e),checked:-1!==V.indexOf(e)}),m(v,{value:e})]},e)}))]})]})};f.propTypes={options:r.arrayOf(r.string).isRequired,currentValues:r.arrayOf(r.string).isRequired,label:r.string.isRequired,ListMenuItem:r.node.isRequired,onChange:r.func.isRequired,ValueComponent:r.node,"data-testid":r.string},f.defaultProps={ValueComponent:null,"data-testid":"MultiSelect"};export{f as MultiSelect};
1
+ import{useState as e,useEffect as t}from"react";import l from"prop-types";import{makeStyles as n,FormControl as i,InputLabel as a,Select as r,MenuItem as s,Checkbox as u,ListItemText as d,Divider as o}from"@material-ui/core";import{jsxs as p,jsx as c}from"react/jsx-runtime";const m=n({multiMenuItem:{paddingLeft:"9px !important",paddingRight:"18px !important"}}),h=l=>{let{label:n,currentValues:h,options:g,ListMenuItem:f,ValueComponent:y,onChange:x,"data-testid":C}=l;const v=m(),[M,R]=e([]),[V,$]=e(!1),[_,k]=e(!1);t((()=>{R(h||[])}),[h,g]);return p(i,{style:{width:"100%"},children:[c(a,{shrink:!0,children:n}),p(r,{"data-testid":`${C}_select_${n}`,multiple:!0,displayEmpty:!0,fullWidth:!0,value:M,renderValue:e=>(e=>y&&1===e.length?c(y,{value:e[0]}):0===e.length?"All":1===e.length?e[0]:`${e.length} Selected`)(e),open:V,onOpen:()=>{$(!0),k(!1)},onClose:()=>{$(!1),_&&x(0===M.length?null:M),k(!1)},onChange:e=>{const t=e.target.value;R(t.includes("all")?[]:t),k(!0)},children:[p(s,{value:"all",classes:{gutters:v.multiMenuItem},children:[c(u,{"data-testid":`${C}_checkbox_all`,checked:!0,indeterminate:M.length>0}),c(d,{primary:"All"})]},"all"),c(o,{}),g.map((e=>p(s,{value:e,classes:{gutters:v.multiMenuItem},children:[c(u,{"data-testid":`${C}_checkbox_${e}`,checked:-1!==M.indexOf(e)}),c(f,{value:e})]},e)))]})]})};h.propTypes={options:l.arrayOf(l.string).isRequired,currentValues:l.arrayOf(l.string).isRequired,label:l.string.isRequired,ListMenuItem:l.node.isRequired,onChange:l.func.isRequired,ValueComponent:l.node,"data-testid":l.string},h.defaultProps={ValueComponent:null,"data-testid":"MultiSelect"};export{h as MultiSelect};
@@ -1 +1 @@
1
- import e from"prop-types";import{FormControl as r,InputLabel as t,Select as a,MenuItem as n}from"@material-ui/core";import{jsxs as i,jsx as l}from"react/jsx-runtime";var o=function(e){var o=e.label,u=e.currentValue,c=e.options,s=e.onChange;return i(r,{style:{width:"100%"},children:[o&&l(t,{shrink:!0,children:o}),l(a,{"data-testid":"".concat("PeriodSelect","_select"),value:u,onChange:function(e){s(e.target.value.includes("all")?null:e.target.value)},children:c.map((function(e){var r=e.value,t=e.label;return l(n,{"data-testid":"".concat("PeriodSelect","_option_").concat(r,"MenuItem"),value:r,children:t},r)}))})]})};o.propTypes={label:e.string,currentValue:e.string.isRequired,options:e.arrayOf(e.shape({})).isRequired,onChange:e.func.isRequired},o.defaultProps={label:""};export{o as PeriodSelect};
1
+ import e from"prop-types";import{FormControl as r,InputLabel as t,Select as l,MenuItem as a}from"@material-ui/core";import{jsxs as i,jsx as n}from"react/jsx-runtime";const o=e=>{let{label:o,currentValue:u,options:s,onChange:d}=e;return i(r,{style:{width:"100%"},children:[o&&n(t,{shrink:!0,children:o}),n(l,{"data-testid":"PeriodSelect_select",value:u,onChange:e=>{d(e.target.value.includes("all")?null:e.target.value)},children:s.map((e=>{let{value:r,label:t}=e;return n(a,{"data-testid":`PeriodSelect_option_${r}MenuItem`,value:r,children:t},r)}))})]})};o.propTypes={label:e.string,currentValue:e.string.isRequired,options:e.arrayOf(e.shape({})).isRequired,onChange:e.func.isRequired},o.defaultProps={label:""};export{o as PeriodSelect};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import{useState as t,useMemo as r,useEffect as i}from"react";import a from"prop-types";import{Tooltip as n,TextField as o}from"@material-ui/core";import{debounce as u}from"lodash";import{convertValue as l}from"../../../../utils/index.js";import{getIsImperial as s}from"../../utils/unitSystem.js";import{jsx as d}from"react/jsx-runtime";var m=u((function(e){e()}),1500),p=function(e){var t,r=null==e||null===(t=e.nativeEvent)||void 0===t?void 0:t.data,i="-"===r&&""===e.target.value;return"e"===r||"E"===r||"+"===r||"."===r||i},c=function(a){var u=a.radius,c=a.editable,f=a.onChange,v=a["data-testid"],b=t(u),h=e(b,2),g=h[0],x=h[1],y=t(null),R=e(y,2),j=R[0],k=R[1],T=r((function(){return s()}),[]);i((function(){var e=T?u:l(u,"length","mi","km",3);x(Number.parseFloat(e).toFixed(2))}),[u]);return d(n,{title:c?"":"To make radius active select Subject Well.",children:d(o,{"data-testid":"".concat(v,"_input"),type:"number",label:"Radius (".concat(T?"miles":"km",")"),value:g||"",disabled:!c,onChange:function(e){var t=e.target.value;if(!p(e)){if(!Number.isFinite(+t)||+t<0)k("Incorrect radius");else{k(null);var r=T?+t:l(t,"length","km","mi",3);m((function(){f(+r)}))}x(t)}},error:!!j,helperText:j},"ows4-radius-input")})};c.propTypes={radius:a.number.isRequired,editable:a.bool.isRequired,onChange:a.func.isRequired,"data-testid":a.string},c.defaultProps={"data-testid":"RadiusInput"};export{c as RadiusInput,p as isBuggySymbolEntered};
1
+ import{useState as e,useMemo as t,useEffect as i}from"react";import r from"prop-types";import{Tooltip as a,TextField as o}from"@material-ui/core";import{debounce as s}from"lodash";import{convertValue as n}from"../../../../utils/index.js";import{getIsImperial as l}from"../../utils/unitSystem.js";import{jsx as u}from"react/jsx-runtime";const d=s((e=>{e()}),1500),m=e=>{var t;const i=null==e||null===(t=e.nativeEvent)||void 0===t?void 0:t.data,r="-"===i&&""===e.target.value;return"e"===i||"E"===i||"+"===i||"."===i||r},p=r=>{let{radius:s,editable:p,onChange:c,"data-testid":f}=r;const[b,v]=e(s),[g,h]=e(null),x=t((()=>l()),[]);i((()=>{const e=x?s:n(s,"length","mi","km",3);v(Number.parseFloat(e).toFixed(2))}),[s]);return u(a,{title:p?"":"To make radius active select Subject Well.",children:u(o,{"data-testid":`${f}_input`,type:"number",label:`Radius (${x?"miles":"km"})`,value:b||"",disabled:!p,onChange:e=>{const t=e.target.value;if(!m(e)){if(!Number.isFinite(+t)||+t<0)h("Incorrect radius");else{h(null);const e=x?+t:n(t,"length","km","mi",3);d((()=>{c(+e)}))}v(t)}},error:!!g,helperText:g},"ows4-radius-input")})};p.propTypes={radius:r.number.isRequired,editable:r.bool.isRequired,onChange:r.func.isRequired,"data-testid":r.string},p.defaultProps={"data-testid":"RadiusInput"};export{p as RadiusInput,m as isBuggySymbolEntered};
@@ -1 +1 @@
1
- import e from"prop-types";import{FormControl as r,InputLabel as a,Select as n,MenuItem as t}from"@material-ui/core";import{jsxs as l,jsx as i}from"react/jsx-runtime";var c=function(e){var c=e.label,o=e.currentValue,u=e.options,s=e.className,d=e.renderValue,p=e.onChange;return l(r,{className:s,children:[c&&i(a,{shrink:!0,children:c}),i(n,{"data-testid":"".concat("SingleSelect","_select_").concat(c),value:o,renderValue:d,onChange:p,children:u.map((function(e){var r=e.value,a=e.label;return i(t,{"data-testid":"".concat("SingleSelect","_option_").concat(r,"MenuItem"),value:r,children:a},r)}))})]})};c.propTypes={label:e.string,currentValue:e.string.isRequired,options:e.arrayOf(e.shape({})).isRequired,className:e.string.isRequired,renderValue:e.func,onChange:e.func.isRequired},c.defaultProps={label:"",renderValue:null};export{c as SingleSelect};
1
+ import e from"prop-types";import{FormControl as r,InputLabel as l,Select as a,MenuItem as n}from"@material-ui/core";import{jsxs as t,jsx as i}from"react/jsx-runtime";const s=e=>{let{label:s,currentValue:u,options:o,className:c,renderValue:d,onChange:p}=e;return t(r,{className:c,children:[s&&i(l,{shrink:!0,children:s}),i(a,{"data-testid":`SingleSelect_select_${s}`,value:u,renderValue:d,onChange:p,children:o.map((e=>{let{value:r,label:l}=e;return i(n,{"data-testid":`SingleSelect_option_${r}MenuItem`,value:r,children:l},r)}))})]})};s.propTypes={label:e.string,currentValue:e.string.isRequired,options:e.arrayOf(e.shape({})).isRequired,className:e.string.isRequired,renderValue:e.func,onChange:e.func.isRequired},s.defaultProps={label:"",renderValue:null};export{s as SingleSelect};
@@ -1 +1 @@
1
- import e from"prop-types";import{makeStyles as r}from"@material-ui/core";import{SingleSelect as t}from"./SingleSelect.js";import{jsx as i}from"react/jsx-runtime";var o=r({wellSection:{width:"100%"}}),n=function(e){var r=e.selectedValue,n=e.wellSections,l=e.onChange,a=o();return i(t,{label:"Well Section",currentValue:r,options:n,className:a.wellSection,onChange:function(e){return l(e.target.value)}})};n.propTypes={selectedValue:e.string.isRequired,wellSections:e.arrayOf(e.shape({})).isRequired,onChange:e.func.isRequired};export{n as WellSection};
1
+ import e from"prop-types";import{makeStyles as t}from"@material-ui/core";import{SingleSelect as r}from"./SingleSelect.js";import{jsx as o}from"react/jsx-runtime";const l=t({wellSection:{width:"100%"}}),i=e=>{let{selectedValue:t,wellSections:i,onChange:n}=e;const s=l();return o(r,{label:"Well Section",currentValue:t,options:i,className:s.wellSection,onChange:e=>n(e.target.value)})};i.propTypes={selectedValue:e.string.isRequired,wellSections:e.arrayOf(e.shape({})).isRequired,onChange:e.func.isRequired};export{i as WellSection};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import l from"prop-types";import s from"classnames";import i from"../../../OffsetWellMap/OffsetWellMap.js";import r from"./WellsMap.module.css.js";import{ViewType as a}from"../../constants.js";import{jsx as t}from"react/jsx-runtime";var n=function(l){var n=l.isViewOnly,o=l.subjectWell,d=l.wells,f=l.offsetWellIds,p=l.radius,m=l.mapHidden,u=l.handleChanageOffsetWell,W=l.activeWellId,c=l.viewType;return t("div",{className:m?r.mapContainerHidden:s(r.mapContainer,e({},r.mapContainerMobile,c===a.mobile)),children:t(i,{isViewOnly:n,subjectWell:o,wells:d,offsetWellIds:f,radius:p,handleChanageOffsetWell:u,activeWellId:W})})};n.propTypes={isViewOnly:l.bool.isRequired,subjectWell:l.shape({}),wells:l.arrayOf(l.shape({})).isRequired,offsetWellIds:l.arrayOf(l.number).isRequired,radius:l.number,mapHidden:l.bool.isRequired,handleChanageOffsetWell:l.func.isRequired,activeWellId:l.number.isRequired,viewType:l.string.isRequired},n.defaultProps={subjectWell:null,radius:null};export{n as WellsMap};
1
+ import e from"prop-types";import l from"classnames";import s from"../../../OffsetWellMap/OffsetWellMap.js";import i from"./WellsMap.module.css.js";import{ViewType as r}from"../../constants.js";import{jsx as a}from"react/jsx-runtime";const t=e=>{let{isViewOnly:t,subjectWell:n,wells:o,offsetWellIds:d,radius:f,mapHidden:p,handleChanageOffsetWell:m,activeWellId:u,viewType:W}=e;return a("div",{className:p?i.mapContainerHidden:l(i.mapContainer,{[i.mapContainerMobile]:W===r.mobile}),children:a(s,{isViewOnly:t,subjectWell:n,wells:o,offsetWellIds:d,radius:f,handleChanageOffsetWell:m,activeWellId:u})})};t.propTypes={isViewOnly:e.bool.isRequired,subjectWell:e.shape({}),wells:e.arrayOf(e.shape({})).isRequired,offsetWellIds:e.arrayOf(e.number).isRequired,radius:e.number,mapHidden:e.bool.isRequired,handleChanageOffsetWell:e.func.isRequired,activeWellId:e.number.isRequired,viewType:e.string.isRequired},t.defaultProps={subjectWell:null,radius:null};export{t as WellsMap};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import{useState as r,useRef as o}from"react";import t from"prop-types";import{TextField as n,InputAdornment as a,Popover as l}from"@material-ui/core";import{Search as c}from"@material-ui/icons";import i from"./AutoCompleteAssetSearch.js";import s from"./AdvancedSearch.module.css.js";import{jsxs as d,Fragment as u,jsx as m}from"react/jsx-runtime";var p=function(t){var p=t.companyId,f=t.subjectWellId,h=t.onChange,v=t.selectedWellIds,I=t.onHideAdvancedSearch,g=r(null),b=e(g,2),A=b[0],C=b[1],y=r(""),j=e(y,2),R=j[0],W=j[1],q=o(),O=function(){W(""),C(null),I()};return d(u,{children:[m(n,{"data-testid":"ows_advanced_search",id:"well-section-search-textfield",placeholder:"Add Offset ...",InputProps:{startAdornment:m(a,{position:"start",children:m(c,{className:s.searchIcon})}),className:s.searchInput},classes:{root:s.searchRoot},ref:q,value:R,onChange:function(e){W(e.target.value),e.target.value&&C(q.current)},onClick:function(e){C(e.currentTarget)}}),m(l,{open:Boolean(A),anchorEl:A,onClose:O,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:m(i,{subjectWellId:f,value:R,company:p,selectedWellIds:v,onChange:h,onClose:O})})]})};p.propTypes={companyId:t.number.isRequired,subjectWellId:t.number.isRequired,onChange:t.func.isRequired,selectedWellIds:t.arrayOf(t.number).isRequired,onHideAdvancedSearch:t.func.isRequired};export{p as AdvancedSearch};
1
+ import{useState as e,useRef as r}from"react";import o from"prop-types";import{TextField as t,InputAdornment as a,Popover as n}from"@material-ui/core";import{Search as l}from"@material-ui/icons";import s from"./AutoCompleteAssetSearch.js";import c from"./AdvancedSearch.module.css.js";import{jsxs as i,Fragment as d,jsx as m}from"react/jsx-runtime";const u=o=>{let{companyId:u,subjectWellId:p,onChange:h,selectedWellIds:f,onHideAdvancedSearch:I}=o;const[v,g]=e(null),[C,A]=e(""),b=r(),j=()=>{A(""),g(null),I()};return i(d,{children:[m(t,{"data-testid":"ows_advanced_search",id:"well-section-search-textfield",placeholder:"Add Offset ...",InputProps:{startAdornment:m(a,{position:"start",children:m(l,{className:c.searchIcon})}),className:c.searchInput},classes:{root:c.searchRoot},ref:b,value:C,onChange:e=>{A(e.target.value),e.target.value&&g(b.current)},onClick:e=>{g(e.currentTarget)}}),m(n,{open:Boolean(v),anchorEl:v,onClose:j,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:m(s,{subjectWellId:p,value:C,company:u,selectedWellIds:f,onChange:h,onClose:j})})]})};u.propTypes={companyId:o.number.isRequired,subjectWellId:o.number.isRequired,onChange:o.func.isRequired,selectedWellIds:o.arrayOf(o.number).isRequired,onHideAdvancedSearch:o.func.isRequired};export{u as AdvancedSearch};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import{useRef as t,useState as r,useMemo as i,useEffect as s}from"react";import n from"classnames";import a from"prop-types";import{sum as l,startCase as o,get as c,isEmpty as u}from"lodash";import{makeStyles as d,List as p,ListSubheader as m,Chip as h,ListItem as f,Checkbox as g,Typography as x}from"@material-ui/core";import{SEARCH_CATEGORIES as b}from"./constants.js";import{StatusOptions as v,ROWS_PER_PAGE as y}from"../../../constants.js";import{jsxs as R,jsx as A}from"react/jsx-runtime";var I=d((function(e){return{assetListWrapper:{margin:"8px 0",flex:1},assetListContainer:{maxHeight:"350px",backgroundColor:e.palette.background.paper,position:"relative",overflow:"auto"},listSection:{backgroundColor:"inherit"},ul:{backgroundColor:"inherit",padding:0},listGutters:{padding:"2px 8px"},assetTypeSubheaderChip:{height:"24px",color:e.palette.primary.text6},assetItemTextRoot:{minWidth:"300px"},assetItemTextPrimary:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},loadingInfo:{textAlign:"center",fontSize:"12px",lineHeight:"17px",color:e.palette.primary.text8},empty:{color:e.palette.primary.text6,fontSize:"12px",fontStyle:"italic",marginLeft:"8px"},menuItem:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},allMenuItem:{boxShadow:"inset 0px -1px 0px rgba(255, 255, 255, 0.25)"},statusWrapper:{display:"flex",alignItems:"center",width:"102px"},status:{width:"8px",height:"8px",marginRight:"8px",borderRadius:"50%",cursor:"default"}}})),k=function(a){var d=a.subjectWellId,k=a.page,C=a.assetType,S=a.loading,N=a.groupedAssets,T=a.onClickAsset,w=a.onClickAllAsset,H=a.onScrollReached,q=I(),W=t(null),j=r("top"),L=e(j,2),_=L[0],G=L[1],M=r(0),z=e(M,2),O=z[0],P=z[1],Y=l(null==N?void 0:N.map((function(t){var r=e(t,2);r[0];var i=r[1];return(null==i?void 0:i.length)||0}))),B=i((function(){if(1===N.length){var e=N[0][1],t=e.filter((function(e){return e.checked})).length;return[t>0&&e.length!==t,t===e.length]}return[!1,!1]}),[N]),D=e(B,2),E=D[0],F=D[1];s((function(){S?P(Y):("top"===_&&W.current.scrollTo(0,5),"bottom"===_&&W.current.scrollTo(0,W.current.scrollHeight-W.current.offsetHeight-5),"auto"===_&&W.current.scrollTo(0,(W.current.scrollHeight-W.current.offsetHeight)*O/Y))}),[S]);return R("div",{className:q.assetListWrapper,children:[R(p,{className:q.assetListContainer,subheader:A("li",{}),onScroll:function(t){if(t.target.scrollHeight!==t.target.offsetHeight){var r=t.target.scrollTop+t.target.offsetHeight;Math.abs(t.target.scrollHeight-r)<1&&!function(t,r){return!t.find((function(t){var i=e(t,2);return i[0],i[1].length===y*r}))}(N,k)&&(G("auto"),H("bottom"))}},ref:W,children:[N.map((function(t){var r=e(t,2),i=r[0],s=r[1];return A("li",{className:q.listSection,children:R("ul",{className:q.ul,children:[!C&&A(m,{classes:{gutters:q.listGutters},children:A(h,{className:q.assetTypeSubheaderChip,variant:"outlined",label:b[i].labelPlural},i)}),C&&A(f,{button:!0,classes:{gutters:q.listGutters},onClick:function(){return w(!F,i)},children:A("div",{className:n(q.menuItem,q.allMenuItem),children:R("div",{children:[A(g,{checked:F,indeterminate:E,style:{marginRight:8}}),"All"]})})}),s.map((function(e){var t;return A(f,{"data-testid":"".concat("AssetResultSection","_item_").concat(e.name,"MenuItem"),button:!0,classes:{gutters:q.listGutters},disabled:e.type===b.well.name&&!e.visibility.includes("visible")||!e.redirectAssetId||e.redirectAssetId===d,onClick:function(){return T(e,i)},children:R("div",{className:q.menuItem,children:[R("div",{children:[A(g,{checked:e.checked,style:{marginRight:8}}),e.name]}),R("div",{className:q.statusWrapper,children:[A("div",{className:q.status,style:{background:null===(t=v.find((function(t){return t.value===e.status})))||void 0===t?void 0:t.color}}),o(e.status)]})]})},"item-".concat(i,"-").concat(c(e,"asset_id")?c(e,"asset_id"):c(e,"id")))}))]})},"section-".concat(i))})),u(N)&&A("div",{className:q.empty,children:"Your search did not match any Asset Name"})]}),S&&A(x,{"data-testid":"".concat("AssetResultSection","_loading"),className:q.loadingInfo,children:"Loading..."})]})};k.propTypes={subjectWellId:a.number.isRequired,page:a.number.isRequired,assetType:a.string.isRequired,loading:a.bool.isRequired,groupedAssets:a.arrayOf(a.shape({})).isRequired,onClickAsset:a.func.isRequired,onClickAllAsset:a.func.isRequired,onScrollReached:a.func.isRequired};export{k as default};
1
+ import{useRef as e,useState as t,useMemo as s,useEffect as r}from"react";import i from"classnames";import l from"prop-types";import{sum as a,startCase as n,get as o,isEmpty as c}from"lodash";import{makeStyles as d,List as u,ListSubheader as p,Chip as m,ListItem as h,Checkbox as g,Typography as f}from"@material-ui/core";import{SEARCH_CATEGORIES as x}from"./constants.js";import{StatusOptions as b,ROWS_PER_PAGE as y}from"../../../constants.js";import{jsxs as v,jsx as R}from"react/jsx-runtime";const I=d((e=>({assetListWrapper:{margin:"8px 0",flex:1},assetListContainer:{maxHeight:"350px",backgroundColor:e.palette.background.paper,position:"relative",overflow:"auto"},listSection:{backgroundColor:"inherit"},ul:{backgroundColor:"inherit",padding:0},listGutters:{padding:"2px 8px"},assetTypeSubheaderChip:{height:"24px",color:e.palette.primary.text6},assetItemTextRoot:{minWidth:"300px"},assetItemTextPrimary:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},loadingInfo:{textAlign:"center",fontSize:"12px",lineHeight:"17px",color:e.palette.primary.text8},empty:{color:e.palette.primary.text6,fontSize:"12px",fontStyle:"italic",marginLeft:"8px"},menuItem:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},allMenuItem:{boxShadow:"inset 0px -1px 0px rgba(255, 255, 255, 0.25)"},statusWrapper:{display:"flex",alignItems:"center",width:"102px"},status:{width:"8px",height:"8px",marginRight:"8px",borderRadius:"50%",cursor:"default"}}))),k=l=>{let{subjectWellId:d,page:k,assetType:A,loading:C,groupedAssets:S,onClickAsset:N,onClickAllAsset:w,onScrollReached:T}=l;const H=I(),q=e(null),[W,j]=t("top"),[L,_]=t(0),G=a(null==S?void 0:S.map((e=>{let[t,s]=e;return(null==s?void 0:s.length)||0}))),[M,$]=s((()=>{if(1===S.length){const e=S[0][1],t=e.filter((e=>e.checked)).length;return[t>0&&e.length!==t,t===e.length]}return[!1,!1]}),[S]);r((()=>{C?_(G):("top"===W&&q.current.scrollTo(0,5),"bottom"===W&&q.current.scrollTo(0,q.current.scrollHeight-q.current.offsetHeight-5),"auto"===W&&q.current.scrollTo(0,(q.current.scrollHeight-q.current.offsetHeight)*L/G))}),[C]);return v("div",{className:H.assetListWrapper,children:[v(u,{className:H.assetListContainer,subheader:R("li",{}),onScroll:e=>{if(e.target.scrollHeight===e.target.offsetHeight)return;const t=e.target.scrollTop+e.target.offsetHeight;Math.abs(e.target.scrollHeight-t)<1&&!((e,t)=>!e.find((e=>{let[s,r]=e;return r.length===y*t})))(S,k)&&(j("auto"),T("bottom"))},ref:q,children:[S.map((e=>{let[t,s]=e;return R("li",{className:H.listSection,children:v("ul",{className:H.ul,children:[!A&&R(p,{classes:{gutters:H.listGutters},children:R(m,{className:H.assetTypeSubheaderChip,variant:"outlined",label:x[t].labelPlural},t)}),A&&R(h,{button:!0,classes:{gutters:H.listGutters},onClick:()=>w(!$,t),children:R("div",{className:i(H.menuItem,H.allMenuItem),children:v("div",{children:[R(g,{checked:$,indeterminate:M,style:{marginRight:8}}),"All"]})})}),s.map((e=>{var s;return R(h,{"data-testid":`AssetResultSection_item_${e.name}MenuItem`,button:!0,classes:{gutters:H.listGutters},disabled:e.type===x.well.name&&!e.visibility.includes("visible")||!e.redirectAssetId||e.redirectAssetId===d,onClick:()=>N(e,t),children:v("div",{className:H.menuItem,children:[v("div",{children:[R(g,{checked:e.checked,style:{marginRight:8}}),e.name]}),v("div",{className:H.statusWrapper,children:[R("div",{className:H.status,style:{background:null===(s=b.find((t=>t.value===e.status)))||void 0===s?void 0:s.color}}),n(e.status)]})]})},`item-${t}-${o(e,"asset_id")?o(e,"asset_id"):o(e,"id")}`)}))]})},`section-${t}`)})),c(S)&&R("div",{className:H.empty,children:"Your search did not match any Asset Name"})]}),C&&R(f,{"data-testid":"AssetResultSection_loading",className:H.loadingInfo,children:"Loading..."})]})};k.propTypes={subjectWellId:l.number.isRequired,page:l.number.isRequired,assetType:l.string.isRequired,loading:l.bool.isRequired,groupedAssets:l.arrayOf(l.shape({})).isRequired,onClickAsset:l.func.isRequired,onClickAllAsset:l.func.isRequired,onScrollReached:l.func.isRequired};export{k as default};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import r from"prop-types";import{makeStyles as t,Typography as i,Chip as a}from"@material-ui/core";import{CATEGORY_KEY_VALUES as o}from"./constants.js";import{jsxs as p,jsx as n}from"react/jsx-runtime";var l=t((function(e){return{assetSelectorWrapper:{margin:8},description:{color:e.palette.primary.text6,fontSize:"12px",lineHeight:"17px",paddingBottom:"8px"},assetTypeChip:{marginRight:"8px",color:e.palette.primary.text6,"&:last-child":{marginRight:"0px"}}}})),s=function(r){var t=r.onClickAssetType,s=l();return p("div",{className:s.assetSelectorWrapper,children:[n(i,{className:s.description,children:"I'm looking for..."}),n("div",{children:o.map((function(r){var i=e(r,2),o=i[0],p=i[1];return n(a,{"data-testid":"".concat("AssetTypesSection","_chip_").concat(p.labelPlural),className:s.assetTypeChip,variant:"outlined",label:p.labelPlural,onClick:function(){return t(o)}},o)}))})]})};s.propTypes={onClickAssetType:r.func.isRequired};export{s as default};
1
+ import e from"prop-types";import{makeStyles as t,Typography as r,Chip as i}from"@material-ui/core";import{CATEGORY_KEY_VALUES as a}from"./constants.js";import{jsxs as p,jsx as s}from"react/jsx-runtime";const l=t((e=>({assetSelectorWrapper:{margin:8},description:{color:e.palette.primary.text6,fontSize:"12px",lineHeight:"17px",paddingBottom:"8px"},assetTypeChip:{marginRight:"8px",color:e.palette.primary.text6,"&:last-child":{marginRight:"0px"}}}))),o=e=>{let{onClickAssetType:t}=e;const o=l();return p("div",{className:o.assetSelectorWrapper,children:[s(r,{className:o.description,children:"I'm looking for..."}),s("div",{children:a.map((e=>{let[r,a]=e;return s(i,{"data-testid":`AssetTypesSection_chip_${a.labelPlural}`,className:o.assetTypeChip,variant:"outlined",label:a.labelPlural,onClick:()=>t(r)},r)}))})]})};o.propTypes={onClickAssetType:e.func.isRequired};export{o as default};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import{useState as t,useMemo as r,useRef as n,useEffect as o}from"react";import i from"prop-types";import{get as s}from"lodash";import{withStyles as a,Tooltip as l,makeStyles as p,Chip as c,Input as u}from"@material-ui/core";import d from"@material-ui/icons/Close";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../utils/apiCalls.js";import"../../../effects/useAdvancedWells.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/defineProperty";import"../../../constants.js";import"../../../../../utils/index.js";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/appPackages.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../../utils/env.js";import"../../../../GradientManager/configuration/constants.js";import"@babel/runtime/helpers/typeof";import"moment";import"react-virtualized";import{useAssetsData as m}from"../../../effects/useAssetsData.js";import f from"./AssetTypesSection.js";import h from"./AssetResultSection.js";import{SEARCH_CATEGORIES as x,CATEGORY_KEY_VALUES as g}from"./constants.js";import{jsxs as b,jsx as y,Fragment as j}from"react/jsx-runtime";var C=a((function(){return{tooltip:{backgroundColor:"#414141",color:"#ffffff",fontSize:"11px",lineHeight:"16px",borderRadius:"4px",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.12)",padding:"4px"}}}))(l),I=p((function(e){return{wrapper:{width:function(e){return e.searchWidth},maxWidth:"996px",display:"flex",flexDirection:"column",padding:16},inputWrapper:{display:"flex",width:"auto",margin:"0 8px 8px",alignItems:"center",flexWrap:"nowrap",justifyContent:"space-between"},selectedChip:{height:"24px",margin:"4px"},selectedChipDeleteIcon:{width:"16px",height:"16px",color:e.palette.primary.text6,"&:hover":{color:e.palette.primary.text1}},selectedLabel:{fontWeight:400,fontSize:"16px",lineHeight:"22px",color:e.palette.primary.text1,whiteSpace:"nowrap",paddingLeft:"4px",paddingRight:"8px"},disabledIcon:{width:"16px",height:"16px",color:e.palette.primary.text6,opacity:.4},closeIconButton:{padding:0,"&:hover $closeIcon":{color:e.palette.primary.text1}},searchInput:{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottom:"2px solid #03BCD4"},closeIcon:{color:e.palette.primary.text6,fontSize:"18px"}}})),v=function(i){var a=i.company,l=i.subjectWellId,p=i.value,v=i.selectedWellIds,w=i.onChange,A=t(null),W=e(A,2),R=W[0],S=W[1],k=t(null),D=e(k,2),T=D[0],q=D[1],z=t(1),N=e(z,2),L=N[0],B=N[1],P=r((function(){return window.innerWidth-32}),[]),G=I({searchWidth:P}),H=n();o((function(){q(p)}),[p]);var K=m(T,R,L,a,v),O=e(K,2),U=O[0],F=O[1],M=r((function(){return R&&F&&0!==F.length?F[0][1].filter((function(e){return e.checked})).length:0}),[R,F]);return b("div",{className:G.wrapper,children:[y("div",{className:G.inputWrapper,children:b("div",{className:G.searchInput,children:[R&&b(j,{children:[y(c,{"data-not-migrated-muichip":!0,classes:{root:G.selectedChip,deleteIcon:G.selectedChipDeleteIcon},label:s(x,[R,"labelPlural"],"Assets"),deleteIcon:y(d,{}),onDelete:function(){S(null)}}),M>0&&b("span",{className:G.selectedLabel,children:[M," Selected"]})]}),y(u,{"data-testid":"".concat("AutoCompleteAssetSearch","_searchInput"),inputRef:H,autoFocus:!0,disableUnderline:!0,fullWidth:!0,value:T||"",placeholder:"Add Offset ...",onChange:function(e){var t=e.target.value;H.current.focus(),q(t),B(1)},onKeyUp:function(t){var r=t.target.value,n=t.keyCode,o=g.find((function(t){var n=e(t,2);return n[0],n[1].autoCategorizedKey===r.trim().toLowerCase()}));if(o&&(13===n||32===n))return q(""),S(o[0]),void B(1);""===r&&8===n&&(S(null),B(1))}}),y(C,{title:"Clear",children:y(d,{className:R||T?G.selectedChipDeleteIcon:G.disabledIcon,onClick:function(){H.current.focus(),q(""),S(null),B(1)}})})]})}),!R&&!T&&y(f,{onClickAssetType:function(e){H.current.focus(),S(e),B(1)}}),(R||T)&&y(h,{subjectWellId:l,page:L,assetType:R,loading:U,groupedAssets:F,onClickAsset:function(e,t){w(!e.checked,[e.redirectAssetId],t)},onClickAllAsset:function(e,t){var r=F[0][1];w(e,r.map((function(e){return e.redirectAssetId})),t)},onScrollReached:function(e){"top"===e&&L>1&&B((function(e){return e-1})),"bottom"===e&&B((function(e){return e+1}))}})]})};v.propTypes={subjectWellId:i.number.isRequired,company:i.number.isRequired,value:i.string.isRequired,selectedWellIds:i.arrayOf(i.number).isRequired,onChange:i.func.isRequired};export{v as default};
1
+ import{useState as e,useMemo as t,useRef as o,useEffect as s}from"react";import r from"prop-types";import{get as i}from"lodash";import{withStyles as n,Tooltip as l,makeStyles as a,Chip as p,Input as c}from"@material-ui/core";import d from"@material-ui/icons/Close";import"../../../utils/apiCalls.js";import"../../../../../utils/index.js";import"../../../constants.js";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/appPackages.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../../utils/env.js";import"../../../../GradientManager/configuration/constants.js";import"moment";import"react-virtualized";import{useAssetsData as m}from"../../../effects/useAssetsData.js";import u from"./AssetTypesSection.js";import h from"./AssetResultSection.js";import{SEARCH_CATEGORIES as f,CATEGORY_KEY_VALUES as x}from"./constants.js";import{jsxs as g,jsx as j,Fragment as y}from"react/jsx-runtime";const C=n((()=>({tooltip:{backgroundColor:"#414141",color:"#ffffff",fontSize:"11px",lineHeight:"16px",borderRadius:"4px",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.12)",padding:"4px"}})))(l),b=a((e=>({wrapper:{width:e=>{let{searchWidth:t}=e;return t},maxWidth:"996px",display:"flex",flexDirection:"column",padding:16},inputWrapper:{display:"flex",width:"auto",margin:"0 8px 8px",alignItems:"center",flexWrap:"nowrap",justifyContent:"space-between"},selectedChip:{height:"24px",margin:"4px"},selectedChipDeleteIcon:{width:"16px",height:"16px",color:e.palette.primary.text6,"&:hover":{color:e.palette.primary.text1}},selectedLabel:{fontWeight:400,fontSize:"16px",lineHeight:"22px",color:e.palette.primary.text1,whiteSpace:"nowrap",paddingLeft:"4px",paddingRight:"8px"},disabledIcon:{width:"16px",height:"16px",color:e.palette.primary.text6,opacity:.4},closeIconButton:{padding:0,"&:hover $closeIcon":{color:e.palette.primary.text1}},searchInput:{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottom:"2px solid #03BCD4"},closeIcon:{color:e.palette.primary.text6,fontSize:"18px"}}))),I=r=>{let{company:n,subjectWellId:l,value:a,selectedWellIds:I,onChange:w}=r;const[A,W]=e(null),[v,R]=e(null),[S,k]=e(1),D=t((()=>window.innerWidth-32),[]),q=b({searchWidth:D}),z=o();s((()=>{R(a)}),[a]);const[N,L]=m(v,A,S,n,I),T=t((()=>A&&L&&0!==L.length?L[0][1].filter((e=>e.checked)).length:0),[A,L]);return g("div",{className:q.wrapper,children:[j("div",{className:q.inputWrapper,children:g("div",{className:q.searchInput,children:[A&&g(y,{children:[j(p,{"data-not-migrated-muichip":!0,classes:{root:q.selectedChip,deleteIcon:q.selectedChipDeleteIcon},label:i(f,[A,"labelPlural"],"Assets"),deleteIcon:j(d,{}),onDelete:()=>{W(null)}}),T>0&&g("span",{className:q.selectedLabel,children:[T," Selected"]})]}),j(c,{"data-testid":"AutoCompleteAssetSearch_searchInput",inputRef:z,autoFocus:!0,disableUnderline:!0,fullWidth:!0,value:v||"",placeholder:"Add Offset ...",onChange:e=>{let{target:{value:t}}=e;z.current.focus(),R(t),k(1)},onKeyUp:e=>{const{value:t}=e.target,{keyCode:o}=e,s=x.find((e=>{let[o,s]=e;return s.autoCategorizedKey===t.trim().toLowerCase()}));if(s&&(13===o||32===o))return R(""),W(s[0]),void k(1);""===t&&8===o&&(W(null),k(1))}}),j(C,{title:"Clear",children:j(d,{className:A||v?q.selectedChipDeleteIcon:q.disabledIcon,onClick:()=>{z.current.focus(),R(""),W(null),k(1)}})})]})}),!A&&!v&&j(u,{onClickAssetType:e=>{z.current.focus(),W(e),k(1)}}),(A||v)&&j(h,{subjectWellId:l,page:S,assetType:A,loading:N,groupedAssets:L,onClickAsset:(e,t)=>{w(!e.checked,[e.redirectAssetId],t)},onClickAllAsset:(e,t)=>{const o=L[0][1];w(e,o.map((e=>e.redirectAssetId)),t)},onScrollReached:e=>{"top"===e&&S>1&&k((e=>e-1)),"bottom"===e&&k((e=>e+1))}})]})};I.propTypes={subjectWellId:r.number.isRequired,company:r.number.isRequired,value:r.string.isRequired,selectedWellIds:r.arrayOf(r.number).isRequired,onChange:r.func.isRequired};export{I as default};
@@ -1 +1 @@
1
- var e={well:{name:"well",labelSingular:"Well",labelPlural:"Wells",autoCategorizedKey:"well",isAssetType:!0},rig:{name:"rig",labelSingular:"Rig",labelPlural:"Rigs",autoCategorizedKey:"rig",isAssetType:!0}};Object.values(e).filter((function(e){return e.autoCategorizedKey})).map((function(e){return e.autoCategorizedKey}));var l=Object.entries(e);export{l as CATEGORY_KEY_VALUES,e as SEARCH_CATEGORIES};
1
+ const e={well:{name:"well",labelSingular:"Well",labelPlural:"Wells",autoCategorizedKey:"well",isAssetType:!0},rig:{name:"rig",labelSingular:"Rig",labelPlural:"Rigs",autoCategorizedKey:"rig",isAssetType:!0}};Object.values(e).filter((e=>e.autoCategorizedKey)).map((e=>e.autoCategorizedKey));const l=Object.entries(e);export{l as CATEGORY_KEY_VALUES,e as SEARCH_CATEGORIES};
@@ -1 +1 @@
1
- import e from"prop-types";import{makeStyles as r,FormControl as t,Tooltip as i,Typography as n,MenuItem as o}from"@material-ui/core";import{getUnitDisplay as a}from"../../../../utils/index.js";import c from"../../../Select/index.js";import{METRICS_LIST as l,DEFAULT_METRICS_KEY as p}from"../../constants.js";import{jsx as s}from"react/jsx-runtime";var u=r((function(e){return{metricsForm:{width:"calc(100% - 32px)","& .MuiInputBase-root":{"&:hover $primaryText":{color:e.palette.primary.text1},"&:hover $primaryIcon":{color:e.palette.primary.text1},"&:focused $primaryIcon":{color:e.palette.primary.main}}},metricsSelect:{"&:before":{borderBottom:"none !important"},"&:after":{borderBottom:"none !important"}},primaryText:{fontWeight:500,fontSize:"12px",lineHeight:"14px",letterSpacing:"0.4px",color:e.palette.primary.text7,overflow:"hidden",textOverflow:"ellipsis"},primaryIcon:{color:e.palette.primary.text6},metricsMenuPaper:{backgroundColor:e.palette.background.b9,maxHeight:"calc(100% - 300px)",top:"150px !important"},valueLabel:{display:"-webkit-box",alignItems:"center",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflowWrap:"break-word",fontWeight:500,fontSize:"12px",lineHeight:"14px",letterSpacing:"0.4px",overflow:"hidden",whiteSpace:"normal"}}}));function m(e){var r=l.find((function(r){return r.key===e}));if(!r)return"";var t=r.unitType?" (".concat(a(r.unitType),")"):"";return r.label+t}var d=function(e){var r=e.isTooltipVisible,a=e.currentValue,d=e.metricsKeys,f=e.onChange,y=e.setIsMenuOpen,x=u(),h=l.filter((function(e){return!d.includes(e.key)}));return a!==p?s(t,{className:x.metricsForm,children:s(c,{"data-testid":"".concat("MetricsSelect","_select_").concat(a),className:x.metricsSelect,classes:{select:x.primaryText,icon:x.primaryIcon},MenuProps:{paper:x.metricsMenuPaper},value:a,renderValue:function(e){return s(i,{title:r?m(e):"",children:s(n,{className:x.valueLabel,children:m(e)})})},onOpen:function(){return y(!0)},onClose:function(){return y(!1)},onChange:function(e){return f(e.target.value)},children:h.map((function(e){return s(o,{"data-testid":"".concat("MetricsSelect","_option_").concat(e.key,"MenuItem"),value:e.key,children:e.label},e.key)}))})}):s(i,{title:r?m(a):"",children:s(n,{className:x.valueLabel,children:m(a)})})};d.propTypes={isTooltipVisible:e.bool.isRequired,currentValue:e.string.isRequired,metricsKeys:e.arrayOf(e.string).isRequired,onChange:e.func.isRequired,setIsMenuOpen:e.func.isRequired};export{d as MetricsSelect};
1
+ import e from"prop-types";import{makeStyles as t,FormControl as r,Tooltip as i,Typography as o,MenuItem as n}from"@material-ui/core";import{getUnitDisplay as a}from"../../../../utils/index.js";import l from"../../../Select/index.js";import{METRICS_LIST as p,DEFAULT_METRICS_KEY as c}from"../../constants.js";import{jsx as s}from"react/jsx-runtime";const m=t((e=>({metricsForm:{width:"calc(100% - 32px)","& .MuiInputBase-root":{"&:hover $primaryText":{color:e.palette.primary.text1},"&:hover $primaryIcon":{color:e.palette.primary.text1},"&:focused $primaryIcon":{color:e.palette.primary.main}}},metricsSelect:{"&:before":{borderBottom:"none !important"},"&:after":{borderBottom:"none !important"}},primaryText:{fontWeight:500,fontSize:"12px",lineHeight:"14px",letterSpacing:"0.4px",color:e.palette.primary.text7,overflow:"hidden",textOverflow:"ellipsis"},primaryIcon:{color:e.palette.primary.text6},metricsMenuPaper:{backgroundColor:e.palette.background.b9,maxHeight:"calc(100% - 300px)",top:"150px !important"},valueLabel:{display:"-webkit-box",alignItems:"center",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflowWrap:"break-word",fontWeight:500,fontSize:"12px",lineHeight:"14px",letterSpacing:"0.4px",overflow:"hidden",whiteSpace:"normal"}})));function u(e){const t=p.find((t=>t.key===e));if(!t)return"";const r=t.unitType?` (${a(t.unitType)})`:"";return t.label+r}const d=e=>{let{isTooltipVisible:t,currentValue:a,metricsKeys:d,onChange:y,setIsMenuOpen:f}=e;const x=m(),h=p.filter((e=>!d.includes(e.key)));return a!==c?s(r,{className:x.metricsForm,children:s(l,{"data-testid":`MetricsSelect_select_${a}`,className:x.metricsSelect,classes:{select:x.primaryText,icon:x.primaryIcon},MenuProps:{paper:x.metricsMenuPaper},value:a,renderValue:e=>s(i,{title:t?u(e):"",children:s(o,{className:x.valueLabel,children:u(e)})}),onOpen:()=>f(!0),onClose:()=>f(!1),onChange:e=>y(e.target.value),children:h.map((e=>s(n,{"data-testid":`MetricsSelect_option_${e.key}MenuItem`,value:e.key,children:e.label},e.key)))})}):s(i,{title:t?u(a):"",children:s(o,{className:x.valueLabel,children:u(a)})})};d.propTypes={isTooltipVisible:e.bool.isRequired,currentValue:e.string.isRequired,metricsKeys:e.arrayOf(e.string).isRequired,onChange:e.func.isRequired,setIsMenuOpen:e.func.isRequired};export{d as MetricsSelect};