@corva/ui 0.54.0-17 → 0.54.0-18

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 (839) hide show
  1. package/CLI/hocs/constants.js +1 -0
  2. package/CLI/hocs/utils.js +1 -0
  3. package/clients/api/apiCore.js +1 -0
  4. package/clients/api/httpMessages.js +1 -0
  5. package/clients/clientStorage/core.js +1 -0
  6. package/clients/clientStorage/index.js +1 -0
  7. package/clients/constants.js +1 -0
  8. package/clients/index.js +1 -0
  9. package/clients/jsonApi/index.js +1 -0
  10. package/clients/subscriptions.js +1 -0
  11. package/clients/utils.js +1 -0
  12. package/components/AddComment/Popover.js +1 -0
  13. package/components/AddComment/Popup.js +1 -0
  14. package/components/AddComment/components/Content.js +1 -0
  15. package/components/AdvancedSlider/AdvancedSlider.js +1 -0
  16. package/components/AdvancedSlider/Handle.js +1 -0
  17. package/components/AnchorsList/AnchorsList.js +1 -0
  18. package/components/Annotations/AnnotationsContext.js +1 -0
  19. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -0
  20. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/style.css.js +1 -0
  21. package/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -0
  22. package/components/Annotations/components/AnnotationsList/components/Annotation/style.css.js +1 -0
  23. package/components/Annotations/components/AnnotationsList/components/AnnotationComments/index.js +1 -0
  24. package/components/Annotations/components/AnnotationsList/components/AnnotationComments/style.css.js +1 -0
  25. package/components/Annotations/components/AnnotationsList/components/AnnotationInput/StyledSelect.js +1 -0
  26. package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js +1 -0
  27. package/components/Annotations/components/AnnotationsList/components/AnnotationInput/style.css.js +1 -0
  28. package/components/Annotations/components/AnnotationsList/index.js +1 -0
  29. package/components/Annotations/components/AnnotationsList/style.css.js +1 -0
  30. package/components/Annotations/components/LastAnnotation/index.js +1 -0
  31. package/components/Annotations/components/LastAnnotation/style.css.js +1 -0
  32. package/components/Annotations/constants.js +1 -0
  33. package/components/AppVersionsSelect/AppVersionsSelect.js +1 -0
  34. package/components/AppVersionsSelect/effects/index.js +1 -0
  35. package/components/AssetEditor/AssetEditorAutocomplete.js +1 -0
  36. package/components/AssetEditor/AssetEditors.css.js +1 -0
  37. package/components/AssetEditor/SingleAssetEditor.js +1 -0
  38. package/components/AssetEditor/constants.js +1 -0
  39. package/components/AssetEditor/effects/index.js +1 -0
  40. package/components/AssetEditor/index.js +1 -0
  41. package/components/AssetNameLabel/PrimaryAssetNameLabel.js +1 -0
  42. package/components/AssetNameLabel/SecondaryAssetNameLabel.js +1 -0
  43. package/components/AssetNameLabel/styles.css.js +1 -0
  44. package/components/Attachment/index.js +1 -0
  45. package/components/Attachment/styles.css.js +1 -0
  46. package/components/Autocomplete/Autocomplete.js +1 -0
  47. package/components/Avatar/index.js +1 -0
  48. package/components/BICOffsetPickerDialog/components/Map/Map.css.js +1 -0
  49. package/components/BICOffsetPickerDialog/components/Map/Map.js +1 -0
  50. package/components/BICOffsetPickerDialog/components/Map/index.css.js +1 -0
  51. package/components/BICOffsetPickerDialog/components/Map/index.js +1 -0
  52. package/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js +1 -0
  53. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetResultSection.js +1 -0
  54. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetTypesSection.js +1 -0
  55. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -0
  56. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/constants.js +1 -0
  57. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/effects/useAssetsData.js +1 -0
  58. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/utils/apiCalls.js +1 -0
  59. package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js +1 -0
  60. package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +1 -0
  61. package/components/BICOffsetPickerDialog/components/WellSection/WellListItem.js +1 -0
  62. package/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -0
  63. package/components/BICOffsetPickerDialog/constants.js +1 -0
  64. package/components/BICOffsetPickerDialog/effects/index.js +1 -0
  65. package/components/BICOffsetPickerDialog/index.js +1 -0
  66. package/components/BICOffsetPickerDialog/utils/apiCalls.js +1 -0
  67. package/components/Breadcrumbs/index.js +1 -0
  68. package/components/Button/index.js +1 -0
  69. package/components/Casing/CasingComponentIcon.js +1 -0
  70. package/components/Casing/CasingTable/CasingComponent.js +1 -0
  71. package/components/Casing/CasingTable/index.js +1 -0
  72. package/components/Casing/CasingTableV2/CasingTableV2.css.js +1 -0
  73. package/components/Casing/CasingTableV2/CasingTableV2.js +1 -0
  74. package/components/Casing/CasingTableV2/components/CasingJoints/Browser.js +1 -0
  75. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -0
  76. package/components/Casing/CasingTableV2/components/Component.js +1 -0
  77. package/components/Casing/CasingTableV2/components/DrillPipe/Browser.js +1 -0
  78. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -0
  79. package/components/Casing/CasingTableV2/components/EditComponentDialog.js +1 -0
  80. package/components/Casing/CasingTableV2/components/Header.js +1 -0
  81. package/components/Casing/CasingTableV2/components/SortableComponent.js +1 -0
  82. package/components/Casing/CasingTableV2/components/SortableComponents.js +1 -0
  83. package/components/Casing/CasingTableV2/components/constants.js +1 -0
  84. package/components/Casing/CasingTile/CasingTile.js +1 -0
  85. package/components/Casing/CasingTile/style.js +1 -0
  86. package/components/Casing/CasingTileIcon.js +1 -0
  87. package/components/Chart/ChartWrapperContext.js +1 -0
  88. package/components/Chart/components/AxisDropdown.js +1 -0
  89. package/components/Chart/components/AxisOverlay.js +1 -0
  90. package/components/Chart/components/ChartButton.js +1 -0
  91. package/components/Chart/components/ChartButtons.js +1 -0
  92. package/components/Chart/components/ChartWrapper.js +1 -0
  93. package/components/Chart/components/buttons/DragToZoomButton.js +1 -0
  94. package/components/Chart/components/buttons/HideAxesButton.js +1 -0
  95. package/components/Chart/components/buttons/PanButton.js +1 -0
  96. package/components/Chart/components/buttons/ResetZoomButton.js +1 -0
  97. package/components/Chart/components/buttons/ZoomInButton.js +1 -0
  98. package/components/Chart/components/buttons/ZoomOutButton.js +1 -0
  99. package/components/Chart/constants.js +1 -0
  100. package/components/Chart/effects/useChartModifier.js +1 -0
  101. package/components/Chart/effects/useHideAxes.js +1 -0
  102. package/components/Chart/effects/useKeyboardControl.js +1 -0
  103. package/components/Chart/effects/useZoom.js +1 -0
  104. package/components/Chart/formations.js +1 -0
  105. package/components/Chart/utils.js +1 -0
  106. package/components/ChartActionsList/ChartActionsList.css.js +1 -0
  107. package/components/ChartActionsList/ChartActionsList.js +1 -0
  108. package/components/ChartActionsList/icons/GoLive.js +1 -0
  109. package/components/ChartActionsList/icons/LeftArrow.js +1 -0
  110. package/components/ChartActionsList/icons/RightArrow.js +1 -0
  111. package/components/ChartActionsList/icons/TimeRange.js +1 -0
  112. package/components/ChartActionsList/icons/ZoomIn.js +1 -0
  113. package/components/ChartActionsList/icons/ZoomOut.js +1 -0
  114. package/components/Checkbox/index.js +1 -0
  115. package/components/Chip/index.js +1 -0
  116. package/components/CollapsableSidebar.js +1 -0
  117. package/components/CollapsibleContent.js +1 -0
  118. package/components/ColorPicker/ColorPicker.js +1 -0
  119. package/components/ColorPicker/PaletteChromePicker/ColorSquare/ColorSquare.js +1 -0
  120. package/components/ColorPicker/PaletteChromePicker/Palette/Palette.css.js +1 -0
  121. package/components/ColorPicker/PaletteChromePicker/Palette/Palette.js +1 -0
  122. package/components/ColorPicker/PaletteChromePicker/Palette/PaletteConstants.js +1 -0
  123. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -0
  124. package/components/ColorPickerPalette/ColorPickerPalette.js +1 -0
  125. package/components/Comment/CommentIcon/BadgeIcon.js +1 -0
  126. package/components/Comment/CommentIcon/index.js +1 -0
  127. package/components/Comment/index.js +1 -0
  128. package/components/Comment/styles.css.js +1 -0
  129. package/components/CommentInput/index.js +1 -0
  130. package/components/CommentInput/styles.css.js +1 -0
  131. package/components/CommentLoader.js +1 -0
  132. package/components/CommentWrapper.js +1 -0
  133. package/components/CommentsInfo/index.js +1 -0
  134. package/components/CommentsInfo/styles.css.js +1 -0
  135. package/components/ConfirmationDialog.js +1 -0
  136. package/components/ContextMenuItem/index.js +1 -0
  137. package/components/CopyToClipboard/CopyToClipboard.js +1 -0
  138. package/components/Counter/index.js +1 -0
  139. package/components/CustomSelect/index.js +1 -0
  140. package/components/DatePicker/index.js +1 -0
  141. package/components/DateTimePicker/index.js +1 -0
  142. package/components/DevCenter/AppContext.js +1 -0
  143. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -0
  144. package/components/DevCenter/AppHeader/AppHeader.css.js +1 -0
  145. package/components/DevCenter/AppHeader/AppHeader.js +1 -0
  146. package/components/DevCenter/AppHeader/AppHeaderStyles.js +1 -0
  147. package/components/DevCenter/AppHeader/PadMode.js +1 -0
  148. package/components/DevCenter/AppHeader/VersionBadge.js +1 -0
  149. package/components/DevCenter/AppHeader/utils.js +1 -0
  150. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -0
  151. package/components/DevCenter/AppSideBar/AppSideBar.js +1 -0
  152. package/components/DevCenter/AppsDataProvider/AppsDataProvider.js +1 -0
  153. package/components/DevCenter/AppsDataProvider/effects/constants.js +1 -0
  154. package/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -0
  155. package/components/DevCenter/AppsDataProvider/effects/useAppsData.js +1 -0
  156. package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -0
  157. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js +1 -0
  158. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -0
  159. package/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js +1 -0
  160. package/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js +1 -0
  161. package/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.js +1 -0
  162. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.css.js +1 -0
  163. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -0
  164. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppDetails.js +1 -0
  165. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -0
  166. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.module.css.js +1 -0
  167. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -0
  168. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/style.css.js +1 -0
  169. package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js +1 -0
  170. package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js +1 -0
  171. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -0
  172. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js +1 -0
  173. package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.css.js +1 -0
  174. package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js +1 -0
  175. package/components/DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js +1 -0
  176. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.css.js +1 -0
  177. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -0
  178. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js +1 -0
  179. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -0
  180. package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/RestoreAppSizeButton.css.js +1 -0
  181. package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js +1 -0
  182. package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js +1 -0
  183. package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsList.js +1 -0
  184. package/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js +1 -0
  185. package/components/DevCenter/DevCenterAppContainer/effects/useAppSettings.js +1 -0
  186. package/components/DevCenter/DevCenterAppContainer/utils.js +1 -0
  187. package/components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js +1 -0
  188. package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.css.js +1 -0
  189. package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js +1 -0
  190. package/components/DevCenter/DevCenterRouterContext/effects/useDevCenterRouter.js +1 -0
  191. package/components/DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js +1 -0
  192. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -0
  193. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -0
  194. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.module.css.js +1 -0
  195. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -0
  196. package/components/DevCenter/IsolatedDevCenterAppContainer/constants.js +1 -0
  197. package/components/DevCenter/IsolatedDevCenterAppContainer/effects/useXProps.js +1 -0
  198. package/components/DevCenter/IsolatedDevCenterAppContainer/utils/replaceUndefinedValuesWithNull.js +1 -0
  199. package/components/DevCenter/NavigationBar/NavigationBar.js +1 -0
  200. package/components/DevCenter/SideBar/SideBar.js +1 -0
  201. package/components/DisabledSettingsMessage/DisabledSettingsMessage.js +1 -0
  202. package/components/DocumentViewer/DocumentViewer.js +1 -0
  203. package/components/DocumentViewer/styles.js +1 -0
  204. package/components/Drillstring/BHACasingEmptyView/BHACasingEmptyView.js +1 -0
  205. package/components/Drillstring/BHAComponentDetail/constants.js +1 -0
  206. package/components/Drillstring/BHAComponentDetail/index.js +1 -0
  207. package/components/Drillstring/BHAComponentIcon.js +1 -0
  208. package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js +1 -0
  209. package/components/Drillstring/BHAComponentsTable/BhaComponentsTable.css.js +1 -0
  210. package/components/Drillstring/BHAComponentsTable/components/Agitator/Browser.js +1 -0
  211. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -0
  212. package/components/Drillstring/BHAComponentsTable/components/Bit/Browser.js +1 -0
  213. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -0
  214. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -0
  215. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Browser.js +1 -0
  216. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -0
  217. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Browser.js +1 -0
  218. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -0
  219. package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js +1 -0
  220. package/components/Drillstring/BHAComponentsTable/components/Header.js +1 -0
  221. package/components/Drillstring/BHAComponentsTable/components/Jar/Browser.js +1 -0
  222. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -0
  223. package/components/Drillstring/BHAComponentsTable/components/Lwd/Browser.js +1 -0
  224. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -0
  225. package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js +1 -0
  226. package/components/Drillstring/BHAComponentsTable/components/Mwd/Browser.js +1 -0
  227. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -0
  228. package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js +1 -0
  229. package/components/Drillstring/BHAComponentsTable/components/Pdm/Browser.js +1 -0
  230. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -0
  231. package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js +1 -0
  232. package/components/Drillstring/BHAComponentsTable/components/Rss/Browser.js +1 -0
  233. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -0
  234. package/components/Drillstring/BHAComponentsTable/components/SortableComponent.js +1 -0
  235. package/components/Drillstring/BHAComponentsTable/components/SortableComponents.js +1 -0
  236. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Browser.js +1 -0
  237. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -0
  238. package/components/Drillstring/BHAComponentsTable/components/Sub/Browser.js +1 -0
  239. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -0
  240. package/components/Drillstring/BHAComponentsTable/components/Suggestions/AutoCompleteDialog.js +1 -0
  241. package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js +1 -0
  242. package/components/Drillstring/BHAComponentsTable/components/Ur/Browser.js +1 -0
  243. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -0
  244. package/components/Drillstring/BHAComponentsTable/components/constants.js +1 -0
  245. package/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.js +1 -0
  246. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -0
  247. package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js +1 -0
  248. package/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js +1 -0
  249. package/components/Drillstring/BHAComponentsTable/components/shared/InputText.js +1 -0
  250. package/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js +1 -0
  251. package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js +1 -0
  252. package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js +1 -0
  253. package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js +1 -0
  254. package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js +1 -0
  255. package/components/Drillstring/BHAComponentsTable/components/sharedStyles.js +1 -0
  256. package/components/Drillstring/BHAComponentsTable/components/utils/calculation.js +1 -0
  257. package/components/Drillstring/BHAList/BHAList.js +1 -0
  258. package/components/Drillstring/BHAList/styles.css.js +1 -0
  259. package/components/Drillstring/BHASchematic.js +1 -0
  260. package/components/Drillstring/BHATable/BHAComponent.js +1 -0
  261. package/components/Drillstring/BHATable/index.js +1 -0
  262. package/components/Drillstring/BHATile/BHATile.js +1 -0
  263. package/components/Drillstring/BHATile/styles.css.js +1 -0
  264. package/components/Drillstring/BHATileIcon.js +1 -0
  265. package/components/Drillstring/BhaIndicator/BhaIndicator.js +1 -0
  266. package/components/Drillstring/BhaIndicator/styles.css.js +1 -0
  267. package/components/Drillstring/DrillstringDetail/DrillstringDetail.js +1 -0
  268. package/components/Drillstring/DrillstringDetail/styles.css.js +1 -0
  269. package/components/EditableItem/EditableItem/index.js +1 -0
  270. package/components/EditableItem/EditableItemWithBadge/index.js +1 -0
  271. package/components/EmbeddedApp/DevCenterEmbeddedApp.js +1 -0
  272. package/components/EmbeddedApp/EmbeddedApp.js +1 -0
  273. package/components/EmbeddedApp/components/AppInfo.js +1 -0
  274. package/components/EmbeddedApp/styles.css.js +1 -0
  275. package/components/EmojiIconButton.js +1 -0
  276. package/components/EmptyView/EmptyAppView/EmptyAppView.js +1 -0
  277. package/components/EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js +1 -0
  278. package/components/EmptyView/EmptyView.js +1 -0
  279. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.css.js +1 -0
  280. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -0
  281. package/components/ErrorBoundary/ErrorBoundary.js +1 -0
  282. package/components/FailedFileUploading.js +1 -0
  283. package/components/FeedItem/FeedItem.css.js +1 -0
  284. package/components/FeedItem/FeedItem.js +1 -0
  285. package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -0
  286. package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -0
  287. package/components/FeedItem/components/Actions.js +1 -0
  288. package/components/FeedItem/components/AvatarIcon.js +1 -0
  289. package/components/FeedItem/components/Content.js +1 -0
  290. package/components/FeedItem/components/CreatedAt.js +1 -0
  291. package/components/FeedItem/components/FeedComments.js +1 -0
  292. package/components/FeedItem/components/Icon.js +1 -0
  293. package/components/FeedItem/components/Reactions.js +1 -0
  294. package/components/FeedItem/components/RigAndWell.js +1 -0
  295. package/components/FeedItem/components/TypeAndAssetTitle.js +1 -0
  296. package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js +1 -0
  297. package/components/FeedItem/editModals/PCCommentEdit/PCCommentEdit.js +1 -0
  298. package/components/FeedItem/feedItemTypes/AlertFeedItem.js +1 -0
  299. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/helpers.js +1 -0
  300. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js +1 -0
  301. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/styles.css.js +1 -0
  302. package/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js +1 -0
  303. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaNumber.js +1 -0
  304. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaSchematic.js +1 -0
  305. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js +1 -0
  306. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/NoData.js +1 -0
  307. package/components/FeedItem/feedItemTypes/BhaFeedItem/styles.css.js +1 -0
  308. package/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js +1 -0
  309. package/components/FeedItem/feedItemTypes/CompletionDocumentFeedItem.js +1 -0
  310. package/components/FeedItem/feedItemTypes/CompletionNptFeedItem.js +1 -0
  311. package/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js +1 -0
  312. package/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js +1 -0
  313. package/components/FeedItem/feedItemTypes/DepthCommentFeedItem.js +1 -0
  314. package/components/FeedItem/feedItemTypes/DocumentFeedItem.js +1 -0
  315. package/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.js +1 -0
  316. package/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js +1 -0
  317. package/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js +1 -0
  318. package/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js +1 -0
  319. package/components/FeedItem/feedItemTypes/DvDCommentFeedItem.js +1 -0
  320. package/components/FeedItem/feedItemTypes/FluidReportFeedItem.js +1 -0
  321. package/components/FeedItem/feedItemTypes/GeosteeringFeedItem.js +1 -0
  322. package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Critical.js +1 -0
  323. package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Major.js +1 -0
  324. package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Minor.js +1 -0
  325. package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js +1 -0
  326. package/components/FeedItem/feedItemTypes/NptFeedItem.js +1 -0
  327. package/components/FeedItem/feedItemTypes/PCCommentFeedItem.js +1 -0
  328. package/components/FeedItem/feedItemTypes/PostFeedItem.js +1 -0
  329. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/api.js +1 -0
  330. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/NoData.js +1 -0
  331. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Predictions.js +1 -0
  332. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/PredictionsItem.js +1 -0
  333. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/Stages.js +1 -0
  334. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/utils.js +1 -0
  335. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/index.js +1 -0
  336. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/api.js +1 -0
  337. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +1 -0
  338. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js +1 -0
  339. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.js +1 -0
  340. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js +1 -0
  341. package/components/FeedItem/feedItemTypes/TracesMemoFeedItem.js +1 -0
  342. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js +1 -0
  343. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/VerticalSectionAzimuth.js +1 -0
  344. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/constants.js +1 -0
  345. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.js +1 -0
  346. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/styles.css.js +1 -0
  347. package/components/FilePreview/index.js +1 -0
  348. package/components/FilePreview/styles.css.js +1 -0
  349. package/components/FileTypeIcon.js +1 -0
  350. package/components/FileUploadIconButton.js +1 -0
  351. package/components/FilesLoader/FilesLoader.js +1 -0
  352. package/components/FilesLoader/Icons/CSVFileIcon.js +1 -0
  353. package/components/FilesLoader/Icons/DocFileIcon.js +1 -0
  354. package/components/FilesLoader/Icons/EDMFileIcon.js +1 -0
  355. package/components/FilesLoader/Icons/ExelFileIcon.js +1 -0
  356. package/components/FilesLoader/Icons/FileIcon.js +1 -0
  357. package/components/FilesLoader/Icons/IconRefresh.js +1 -0
  358. package/components/FilesLoader/Icons/IconSuccess.js +1 -0
  359. package/components/FilesLoader/Icons/IconWarning.js +1 -0
  360. package/components/FilesLoader/Icons/ImageFileIcon.js +1 -0
  361. package/components/FilesLoader/Icons/PdfFileIcon.js +1 -0
  362. package/components/FilesLoader/Icons/UnknownFileIcon.js +1 -0
  363. package/components/FilesLoader/Icons/UploadIcon.js +1 -0
  364. package/components/FilesLoader/useStyles.js +1 -0
  365. package/components/FolderMenuItem/components/ClosedFolderIcon.js +1 -0
  366. package/components/FolderMenuItem/components/FolderIcon.js +1 -0
  367. package/components/FolderMenuItem/components/OpenFolderIcon.js +1 -0
  368. package/components/FolderMenuItem/index.js +1 -0
  369. package/components/FolderMenuItemWithLinks/index.js +1 -0
  370. package/components/GoogleDocsViewer/index.js +1 -0
  371. package/components/GoogleDocsViewer/styles.css.js +1 -0
  372. package/components/GradientManager/GradientList.js +1 -0
  373. package/components/GradientManager/GradientManager.js +1 -0
  374. package/components/GradientManager/GradientManager.styles.js +1 -0
  375. package/components/GradientManager/GradientPreview/GradientPreview.js +1 -0
  376. package/components/GradientManager/GradientSelect.js +1 -0
  377. package/components/GradientManager/GradientSelect.styles.js +1 -0
  378. package/components/GradientManager/configuration/constants.js +1 -0
  379. package/components/GradientPicker/GradientPicker.js +1 -0
  380. package/components/GradientPicker/GradientPicker.styles.js +1 -0
  381. package/components/GradientPicker/GradientPicker.utils.js +1 -0
  382. package/components/HeaderLayout/HeaderLayout.css.js +1 -0
  383. package/components/HeaderLayout/HeaderLayout.js +1 -0
  384. package/components/HeaderLayout/constants.js +1 -0
  385. package/components/HeaderLayout/effects/index.js +1 -0
  386. package/components/HeaderLayout/utils.js +1 -0
  387. package/components/HelpCenter/HelpCenterIcon.js +1 -0
  388. package/components/HelpCenter/index.js +1 -0
  389. package/components/IconButton/index.js +1 -0
  390. package/components/IconMenu/index.js +1 -0
  391. package/components/Icons/AnnotationIcon.js +1 -0
  392. package/components/Icons/AttachIcon.js +1 -0
  393. package/components/Icons/EmojiIcon.js +1 -0
  394. package/components/Icons/GppBadIcon.js +1 -0
  395. package/components/Icons/GppGoodIcon.js +1 -0
  396. package/components/Icons/RecommendationIcon.js +1 -0
  397. package/components/Icons/SendIcon.js +1 -0
  398. package/components/ImageViewer/index.js +1 -0
  399. package/components/ImageViewer/styles.css.js +1 -0
  400. package/components/ImagesGrid/index.js +1 -0
  401. package/components/InfiniteList/index.js +1 -0
  402. package/components/InfiniteList/styles.css.js +1 -0
  403. package/components/KeyboardDateTimePicker.js +1 -0
  404. package/components/LabelsCounter/LabelsCounter.js +1 -0
  405. package/components/LoadingIndicator/FullScreenLoadingIndicator.js +1 -0
  406. package/components/LoadingIndicator/InlineLoadingIndicator.js +1 -0
  407. package/components/LoadingIndicator/Loader.js +1 -0
  408. package/components/LoadingIndicator/LoadingIndicator.css.js +1 -0
  409. package/components/LoadingIndicator/LoadingIndicator.js +1 -0
  410. package/components/LoadingIndicator/types.js +1 -0
  411. package/components/MenuItem/index.js +1 -0
  412. package/components/Modal/CorvaModal.css.js +1 -0
  413. package/components/Modal/CorvaModal.js +1 -0
  414. package/components/Modal/DcCorvaModal.js +1 -0
  415. package/components/Modal/Modal.js +1 -0
  416. package/components/Notifications/Notifications.js +1 -0
  417. package/components/Notifications/NotificationsContainer.js +1 -0
  418. package/components/Notifications/components/Toast.js +1 -0
  419. package/components/Notifications/components/styles.js +1 -0
  420. package/components/OffsetWellButton/OffsetWellButton.js +1 -0
  421. package/components/OffsetWellChips/Chip.js +1 -0
  422. package/components/OffsetWellChips/ChipsContainer.js +1 -0
  423. package/components/OffsetWellChips/components/OffsetWellTruncatedText.js +1 -0
  424. package/components/OffsetWellChips/icons/SubjectIcon.js +1 -0
  425. package/components/OffsetWellChips/types.js +1 -0
  426. package/components/OffsetWellChips/utils.js +1 -0
  427. package/components/OffsetWellMap/OffsetWellMap.js +1 -0
  428. package/components/OffsetWellMap/OffsetWellMap.module.css.js +1 -0
  429. package/components/OffsetWellMap/WellTooltip.js +1 -0
  430. package/components/OffsetWellMap/WellTooltip.module.css.js +1 -0
  431. package/components/OffsetWellMap/effects/usePreviousWells.js +1 -0
  432. package/components/OffsetWellMap/utils.js +1 -0
  433. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -0
  434. package/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.js +1 -0
  435. package/components/OffsetWellPickerV2/components/Filter/MultiSelect.js +1 -0
  436. package/components/OffsetWellPickerV2/components/Filter/RadiusInput.js +1 -0
  437. package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -0
  438. package/components/OffsetWellPickerV2/components/Filter/SingleSelect.js +1 -0
  439. package/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.js +1 -0
  440. package/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.js +1 -0
  441. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -0
  442. package/components/OffsetWellPickerV2/components/Filter/index.js +1 -0
  443. package/components/OffsetWellPickerV2/components/Map/Map.css.js +1 -0
  444. package/components/OffsetWellPickerV2/components/Map/Map.js +1 -0
  445. package/components/OffsetWellPickerV2/components/Map/index.css.js +1 -0
  446. package/components/OffsetWellPickerV2/components/Map/index.js +1 -0
  447. package/components/OffsetWellPickerV2/components/Map/popup.css.js +1 -0
  448. package/components/OffsetWellPickerV2/components/Map/popupGenerator.js +1 -0
  449. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -0
  450. package/components/OffsetWellPickerV2/components/Table/MetricsSelect.js +1 -0
  451. package/components/OffsetWellPickerV2/components/Table/SubjectIndicator.css.js +1 -0
  452. package/components/OffsetWellPickerV2/components/Table/SubjectIndicator.js +1 -0
  453. package/components/OffsetWellPickerV2/components/Table/index.js +1 -0
  454. package/components/OffsetWellPickerV2/constants.js +1 -0
  455. package/components/OffsetWellPickerV2/effects/biDirectionalFiltering.js +1 -0
  456. package/components/OffsetWellPickerV2/effects/index.js +1 -0
  457. package/components/OffsetWellPickerV2/utils/apiCalls.js +1 -0
  458. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/ClearFiltersButton.js +1 -0
  459. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/MultiSelect.js +1 -0
  460. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/RadiusInput.js +1 -0
  461. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -0
  462. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -0
  463. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/FormationsLegend.js +1 -0
  464. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.css.js +1 -0
  465. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -0
  466. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js +1 -0
  467. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/popupGenerator.js +1 -0
  468. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/utils.js +1 -0
  469. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.js +1 -0
  470. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetResultSection.js +1 -0
  471. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetTypesSection.js +1 -0
  472. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -0
  473. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/constants.js +1 -0
  474. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/effects/useAssetsData.js +1 -0
  475. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -0
  476. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsSelect.js +1 -0
  477. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/SubjectIndicator.js +1 -0
  478. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js +1 -0
  479. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/styles.js +1 -0
  480. package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js +1 -0
  481. package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/biDirectionalFiltering.js +1 -0
  482. package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js +1 -0
  483. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -0
  484. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -0
  485. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -0
  486. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -0
  487. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -0
  488. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -0
  489. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.js +1 -0
  490. package/components/OffsetWellPickerV3/constants.js +1 -0
  491. package/components/OffsetWellPickerV3/effects/index.js +1 -0
  492. package/components/OffsetWellPickerV3/index.js +1 -0
  493. package/components/OffsetWellPickerV3/utils/apiCalls.js +1 -0
  494. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -0
  495. package/components/OffsetWellPickerV4/OffsetWellPickerV4.module.css.js +1 -0
  496. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js +1 -0
  497. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.module.css.js +1 -0
  498. package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.js +1 -0
  499. package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.module.css.js +1 -0
  500. package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -0
  501. package/components/OffsetWellPickerV4/components/Filter/Filter.module.css.js +1 -0
  502. package/components/OffsetWellPickerV4/components/Filter/MultiSelect.js +1 -0
  503. package/components/OffsetWellPickerV4/components/Filter/PeriodSelect.js +1 -0
  504. package/components/OffsetWellPickerV4/components/Filter/RadiusInput.js +1 -0
  505. package/components/OffsetWellPickerV4/components/Filter/SingleSelect.js +1 -0
  506. package/components/OffsetWellPickerV4/components/Filter/WellSection.js +1 -0
  507. package/components/OffsetWellPickerV4/components/Map/WellsMap.js +1 -0
  508. package/components/OffsetWellPickerV4/components/Map/WellsMap.module.css.js +1 -0
  509. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -0
  510. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.module.css.js +1 -0
  511. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -0
  512. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetTypesSection.js +1 -0
  513. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -0
  514. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js +1 -0
  515. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.js +1 -0
  516. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -0
  517. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -0
  518. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js +1 -0
  519. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -0
  520. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.module.css.js +1 -0
  521. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -0
  522. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.module.css.js +1 -0
  523. package/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.js +1 -0
  524. package/components/OffsetWellPickerV4/components/OffsetWellsTable/ViewWellSectionsName.js +1 -0
  525. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -0
  526. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.module.css.js +1 -0
  527. package/components/OffsetWellPickerV4/constants.js +1 -0
  528. package/components/OffsetWellPickerV4/effects/useAdvancedWells.js +1 -0
  529. package/components/OffsetWellPickerV4/effects/useAssetsData.js +1 -0
  530. package/components/OffsetWellPickerV4/effects/useBicWells.js +1 -0
  531. package/components/OffsetWellPickerV4/effects/useCompanyMetricKey.js +1 -0
  532. package/components/OffsetWellPickerV4/effects/useFetchWells.js +1 -0
  533. package/components/OffsetWellPickerV4/effects/useFilterOptions.js +1 -0
  534. package/components/OffsetWellPickerV4/effects/useFilteredWells.js +1 -0
  535. package/components/OffsetWellPickerV4/effects/useRadiusWells.js +1 -0
  536. package/components/OffsetWellPickerV4/effects/useSortedWells.js +1 -0
  537. package/components/OffsetWellPickerV4/effects/useTableColumns.js +1 -0
  538. package/components/OffsetWellPickerV4/utils/apiCalls.js +1 -0
  539. package/components/OffsetWellPickerV4/utils/index.js +1 -0
  540. package/components/OffsetWellPickerV4/utils/timePeriod.js +1 -0
  541. package/components/OffsetWellPickerV4/utils/unitSystem.js +1 -0
  542. package/components/PadModeSelect/PadModeSelect.js +1 -0
  543. package/components/PadModeSelect/utils.js +1 -0
  544. package/components/PadOffsetsPicker/OffsetAssetChip.js +1 -0
  545. package/components/PadOffsetsPicker/OffsetAssetsListExpander.js +1 -0
  546. package/components/PadOffsetsPicker/PadOffsetsPicker.js +1 -0
  547. package/components/PadOffsetsPicker/StagesSelector.js +1 -0
  548. package/components/PadOffsetsPicker/index.js +1 -0
  549. package/components/ParameterCharts/AddEditTrack.css.js +1 -0
  550. package/components/ParameterCharts/AddEditTrack.js +1 -0
  551. package/components/ParameterCharts/ChartsContext.js +1 -0
  552. package/components/ParameterCharts/DataContext.js +1 -0
  553. package/components/ParameterCharts/ParameterCharts.css.js +1 -0
  554. package/components/ParameterCharts/ParameterCharts.js +1 -0
  555. package/components/ParameterCharts/SettingsContext.js +1 -0
  556. package/components/ParameterCharts/components/ChartContainer.css.js +1 -0
  557. package/components/ParameterCharts/components/ChartContainer.js +1 -0
  558. package/components/ParameterCharts/components/Charts/EmptyChart.css.js +1 -0
  559. package/components/ParameterCharts/components/Charts/EmptyChart.js +1 -0
  560. package/components/ParameterCharts/components/Charts/LineChart.css.js +1 -0
  561. package/components/ParameterCharts/components/Charts/LineChart.js +1 -0
  562. package/components/ParameterCharts/components/Charts/options.js +1 -0
  563. package/components/ParameterCharts/components/DataLoadingIndicator.js +1 -0
  564. package/components/ParameterCharts/components/SingleChannelTrackSettings.js +1 -0
  565. package/components/ParameterCharts/components/Tooltip/CursorPositioner.css.js +1 -0
  566. package/components/ParameterCharts/components/Tooltip/CursorPositioner.js +1 -0
  567. package/components/ParameterCharts/components/Tooltip/Tooltip.css.js +1 -0
  568. package/components/ParameterCharts/components/Tooltip/Tooltip.js +1 -0
  569. package/components/ParameterCharts/components/TraceHeader.css.js +1 -0
  570. package/components/ParameterCharts/components/TraceHeader.js +1 -0
  571. package/components/ParameterCharts/components/TraceSelect.js +1 -0
  572. package/components/ParameterCharts/components/TraceSettings.css.js +1 -0
  573. package/components/ParameterCharts/components/TraceSettings.js +1 -0
  574. package/components/ParameterCharts/components/Track.css.js +1 -0
  575. package/components/ParameterCharts/components/Track.js +1 -0
  576. package/components/ParameterCharts/components/TrackSettings.css.js +1 -0
  577. package/components/ParameterCharts/components/TrackSettings.js +1 -0
  578. package/components/ParameterCharts/constants.js +1 -0
  579. package/components/ParameterCharts/utils/dataParser.js +1 -0
  580. package/components/PinnableFilters/PinnableFilters.css.js +1 -0
  581. package/components/PinnableFilters/PinnableFilters.js +1 -0
  582. package/components/PinnableFilters/components/FiltersToggler.js +1 -0
  583. package/components/PinnableFilters/components/PinAppSwitch.js +1 -0
  584. package/components/PinnableFilters/constants.js +1 -0
  585. package/components/PinnableFilters/effects/index.js +1 -0
  586. package/components/PinnableFilters/utils.js +1 -0
  587. package/components/Popover/Popover.js +1 -0
  588. package/components/Popper/Popper.js +1 -0
  589. package/components/PostInput/PostInput.css.js +1 -0
  590. package/components/PostInput/PostInput.js +1 -0
  591. package/components/PostPreviewDialog/index.js +1 -0
  592. package/components/PostPreviewDialog/styles.css.js +1 -0
  593. package/components/PriceInput/FormattedNumber.js +1 -0
  594. package/components/PriceInput/PriceInput.js +1 -0
  595. package/components/RangeSlider/Input.css.js +1 -0
  596. package/components/RangeSlider/RangeSlider.css.js +1 -0
  597. package/components/RangeSlider/RangeSlider.js +1 -0
  598. package/components/RangeSlider/constants.js +1 -0
  599. package/components/RangeSlider/inputs/FromInput.js +1 -0
  600. package/components/RangeSlider/inputs/ToInput.js +1 -0
  601. package/components/RangeSlider/strategies/horizontal.js +1 -0
  602. package/components/RangeSlider/strategies/vertical.js +1 -0
  603. package/components/RangeSlider/utils.js +1 -0
  604. package/components/ResizableTable/ResizableTable.js +1 -0
  605. package/components/ResizableTable/ResizableTableCell.js +1 -0
  606. package/components/ResizableTable/ResizableTableHeaderCell.js +1 -0
  607. package/components/Search/Search.js +1 -0
  608. package/components/Search/components/Groups.js +1 -0
  609. package/components/Search/components/InputAdornmentLeft.js +1 -0
  610. package/components/Search/components/Listbox.js +1 -0
  611. package/components/Search/components/Paper.js +1 -0
  612. package/components/Search/components/RecentSearches.js +1 -0
  613. package/components/Search/styles.js +1 -0
  614. package/components/SearchInput/index.js +1 -0
  615. package/components/Select/index.js +1 -0
  616. package/components/SettingEditors/ColorEditor/index.js +1 -0
  617. package/components/SettingEditors/ColorEditor/style.css.js +1 -0
  618. package/components/SettingEditors/DropdownEditor/index.js +1 -0
  619. package/components/SettingEditors/RadioEditor/index.js +1 -0
  620. package/components/SlateFormattedText/Constants.js +1 -0
  621. package/components/SlateFormattedText/Elements/ImageElement/ImageElement.css.js +1 -0
  622. package/components/SlateFormattedText/Elements/ImageElement/ImageElement.js +1 -0
  623. package/components/SlateFormattedText/Elements/VideoElement/VideoElement.js +1 -0
  624. package/components/SlateFormattedText/Elements/VideoElement/style.css.js +1 -0
  625. package/components/SlateFormattedText/RenderElements.js +1 -0
  626. package/components/SlateFormattedText/SlateFormattedText.js +1 -0
  627. package/components/SlateFormattedText/style.css.js +1 -0
  628. package/components/SlateFormattedText/utils.js +1 -0
  629. package/components/StageDesignVActual/ComparisonBar/ComparisonBar.js +1 -0
  630. package/components/StageDesignVActual/ComparisonBar/utils.js +1 -0
  631. package/components/StageDesignVActual/ComparisonHeader.js +1 -0
  632. package/components/StageDesignVActual/ComparisonRow.js +1 -0
  633. package/components/StageDesignVActual/ComparisonTable.css.js +1 -0
  634. package/components/StageDesignVActual/ElementsComparison/ElementsComparison.js +1 -0
  635. package/components/StageDesignVActual/ElementsComparison/utils.js +1 -0
  636. package/components/StatusBadge/DQChip.js +1 -0
  637. package/components/StatusBadge/DQStatusIcon.js +1 -0
  638. package/components/StatusBadge/DQUnvalidatedContent.js +1 -0
  639. package/components/StatusBadge/constants.js +1 -0
  640. package/components/StatusBadge/index.js +1 -0
  641. package/components/Stepper/Step.css.js +1 -0
  642. package/components/Stepper/Step.js +1 -0
  643. package/components/Stepper/Stepper.js +1 -0
  644. package/components/Stepper/StepsWrapper.css.js +1 -0
  645. package/components/Stepper/StepsWrapper.js +1 -0
  646. package/components/Stepper/constants.js +1 -0
  647. package/components/StyledMenuItem/index.js +1 -0
  648. package/components/SwitchControl/index.js +1 -0
  649. package/components/SwitchControl/style.css.js +1 -0
  650. package/components/Table/TableCell/TableCell.js +1 -0
  651. package/components/Table/TableContainer/TableContainer.js +1 -0
  652. package/components/Table/TableSortLabel/TableSortLabel.js +1 -0
  653. package/components/Table/TableToolbar/TableToolbar.js +1 -0
  654. package/components/Tabs/Tab.js +1 -0
  655. package/components/Tabs/Tabs.js +1 -0
  656. package/components/Template/TemplatePopover/Styles.js +1 -0
  657. package/components/Template/TemplatePopover/index.js +1 -0
  658. package/components/Template/TemplateSharingDialog/ChipSelector.css.js +1 -0
  659. package/components/Template/TemplateSharingDialog/ChipSelector.js +1 -0
  660. package/components/Template/TemplateSharingDialog/UsersChipSelector.js +1 -0
  661. package/components/Template/TemplateSharingDialog/index.js +1 -0
  662. package/components/TextField/effects/index.js +1 -0
  663. package/components/TextField/index.js +1 -0
  664. package/components/TextLink/index.js +1 -0
  665. package/components/Toaster/ToastContainer.js +1 -0
  666. package/components/Toaster/Toaster.js +1 -0
  667. package/components/Tooltip/MuiTooltipDcWrapper.js +1 -0
  668. package/components/Tooltip/ScrollableTooltip.js +1 -0
  669. package/components/Tooltip/Tooltip.js +1 -0
  670. package/components/TracesEditModal/TracesEditModal.css.js +1 -0
  671. package/components/TracesEditModal/TracesEditModal.js +1 -0
  672. package/components/TracesEditModal/TracesEditModalContainer.js +1 -0
  673. package/components/TruncatedText/index.js +1 -0
  674. package/components/Typography.js +1 -0
  675. package/components/UserCard/index.js +1 -0
  676. package/components/UserCard/style.css.js +1 -0
  677. package/components/UserCardPopover.js +1 -0
  678. package/components/UserMention/constants.js +1 -0
  679. package/components/UserMention/index.js +1 -0
  680. package/components/UserMention/style.css.js +1 -0
  681. package/components/UserMention/utils/index.js +1 -0
  682. package/components/VirtualizedTable/CustomizeColumnsDialog.js +1 -0
  683. package/components/VirtualizedTable/DraggableList.js +1 -0
  684. package/components/VirtualizedTable/VirtualizedTable.js +1 -0
  685. package/components/VirtualizedTable/index.js +1 -0
  686. package/components/WellSummary/ActivitySummaryChart.js +1 -0
  687. package/components/WellSummary/FracWirelineTimeChart.js +1 -0
  688. package/components/WellSummary/WellSummaryItemLabel.js +1 -0
  689. package/components/WellSummary/WellSummaryItemTitle.js +1 -0
  690. package/components/WellSummary/WellSummaryItemValue.js +1 -0
  691. package/components/WellSummary/effects/useWellSummaryData.js +1 -0
  692. package/components/WellSummary/index.js +1 -0
  693. package/components/WellSummary/utils.js +1 -0
  694. package/components/index.js +1 -0
  695. package/components/shared/useThrottledCallback.js +1 -0
  696. package/config/extendNative.js +1 -0
  697. package/config/highcharts/highcharts-contour.js +1 -0
  698. package/config/highcharts/highcharts.js +1 -0
  699. package/config/index.js +1 -0
  700. package/config/initGlobalDependencies.js +1 -0
  701. package/config/mapbox/index.js +1 -0
  702. package/config/theme/accordionOverrides.js +1 -0
  703. package/config/theme/buttonOverrides.js +1 -0
  704. package/config/theme/checkboxOverrides.js +1 -0
  705. package/config/theme/chipOverrides.js +1 -0
  706. package/config/theme/dateTimePickerThemeOverrides.js +1 -0
  707. package/config/theme/fabOverrides.js +1 -0
  708. package/config/theme/formControlLabelOverrides.js +1 -0
  709. package/config/theme/formGroupOverrides.js +1 -0
  710. package/config/theme/index.js +1 -0
  711. package/config/theme/lightThemePalette.mjs.js +1 -0
  712. package/config/theme/palette.mjs.js +1 -0
  713. package/config/theme/radioOverrides.js +1 -0
  714. package/config/theme/tableOverrides.js +1 -0
  715. package/config/theme/textFieldOverrides.js +1 -0
  716. package/config/theme/themeVariables.mjs.js +1 -0
  717. package/config/theme/toggleButtonsGroupOverrides.js +1 -0
  718. package/config/theme/tooltipOverrides.js +1 -0
  719. package/constants/accuracy.js +1 -0
  720. package/constants/alerts.js +1 -0
  721. package/constants/appPackages.js +1 -0
  722. package/constants/apps.js +1 -0
  723. package/constants/assetTypes.js +1 -0
  724. package/constants/bha.js +1 -0
  725. package/constants/casing.js +1 -0
  726. package/constants/completion.js +1 -0
  727. package/constants/componentsSettings.js +1 -0
  728. package/constants/dateTimeFormat.js +1 -0
  729. package/constants/devcenter.js +1 -0
  730. package/constants/drillstring.js +1 -0
  731. package/constants/feed.js +1 -0
  732. package/constants/goals.js +1 -0
  733. package/constants/index.js +1 -0
  734. package/constants/notifications.js +1 -0
  735. package/constants/rigActivity.js +1 -0
  736. package/constants/segment.js +1 -0
  737. package/constants/sizes.js +1 -0
  738. package/constants/subscriptions.js +1 -0
  739. package/constants/theme.js +1 -0
  740. package/constants/wellSummary.js +1 -0
  741. package/effects/index.js +1 -0
  742. package/effects/useDelayedDcFullscreenElemOpen.js +1 -0
  743. package/effects/useDevCenterApp.js +1 -0
  744. package/effects/useEscPress.js +1 -0
  745. package/effects/useOutsideClick.js +1 -0
  746. package/effects/useSharedDCStore.js +1 -0
  747. package/effects/useSignedURL.js +1 -0
  748. package/effects/useSubscriptions.js +1 -0
  749. package/ext-esm/@material-ui/icons/esm/ExpandLess.js +1 -0
  750. package/ext-esm/@material-ui/icons/esm/ExpandMore.js +1 -0
  751. package/ext-esm/@material-ui/icons/esm/Map.js +1 -0
  752. package/ext-esm/@material-ui/icons/esm/UnfoldLess.js +1 -0
  753. package/ext-esm/@material-ui/icons/esm/UnfoldMore.js +1 -0
  754. package/ext-esm/@material-ui/icons/esm/utils/createSvgIcon.js +1 -0
  755. package/ext-esm/style-inject/dist/style-inject.es.js +1 -0
  756. package/ext-esm/tslib/tslib.es6.js +1 -0
  757. package/hocs/index.js +1 -0
  758. package/hocs/withMUIProvidersHOC.js +1 -0
  759. package/index.js +1 -0
  760. package/package.json +1 -1
  761. package/permissions/PermissionsContext.js +1 -0
  762. package/permissions/ProvidePermissions.js +1 -0
  763. package/permissions/constants/abilities.js +1 -0
  764. package/permissions/constants/appsPermissions.js +1 -0
  765. package/permissions/constants/index.js +1 -0
  766. package/permissions/constants/settingsApps.js +1 -0
  767. package/permissions/index.js +1 -0
  768. package/permissions/usePermissions.js +1 -0
  769. package/permissions/useProvidePermissions.js +1 -0
  770. package/permissions/utils.js +1 -0
  771. package/permissions/withPermissionsHOC.js +1 -0
  772. package/styles/counter/counter.module.scss.js +1 -0
  773. package/styles/counter/index.js +1 -3
  774. package/styles/customScrollbars.global.css.js +1 -0
  775. package/styles/emojiMart.global.css.js +1 -0
  776. package/styles/generatedThemesVariables.global.css.js +1 -0
  777. package/styles/globalStyles.js +1 -13
  778. package/styles/index.global.css.js +1 -0
  779. package/styles/index.js +1 -2
  780. package/styles/lightbox.global.css.js +1 -0
  781. package/styles/mapbox.global.css.js +1 -0
  782. package/styles/reactVirtualized.global.css.js +1 -0
  783. package/styles/typography/colors.module.scss.js +1 -0
  784. package/styles/typography/index.js +1 -7
  785. package/styles/typography/typography.module.scss.js +1 -0
  786. package/utils/DrillstringUtils.js +1 -0
  787. package/utils/FluidCheckUtils.js +1 -0
  788. package/utils/StageDesignVActualUtils.js +1 -0
  789. package/utils/accuracy.js +1 -0
  790. package/utils/alerts.js +1 -0
  791. package/utils/apps.js +1 -0
  792. package/utils/audio.js +1 -0
  793. package/utils/bha.js +1 -0
  794. package/utils/casing/conversion.js +1 -0
  795. package/utils/casing/index.js +1 -0
  796. package/utils/casing/validation.js +1 -0
  797. package/utils/chartSeries.js +1 -0
  798. package/utils/completion.js +1 -0
  799. package/utils/components.js +1 -0
  800. package/utils/constants/units.js +1 -0
  801. package/utils/convert.js +1 -0
  802. package/utils/convertKeys.js +1 -0
  803. package/utils/csvExport.js +1 -0
  804. package/utils/dashboardReports.js +1 -0
  805. package/utils/devcenter.js +1 -0
  806. package/utils/devcenterToasts.js +1 -0
  807. package/utils/drillstring/conversion.js +1 -0
  808. package/utils/drillstring/index.js +1 -0
  809. package/utils/drillstring/schematic.js +1 -0
  810. package/utils/drillstring/validation.js +1 -0
  811. package/utils/env.js +1 -0
  812. package/utils/feed.js +1 -0
  813. package/utils/fileExtension.js +1 -0
  814. package/utils/formatting.js +1 -0
  815. package/utils/ga.js +1 -0
  816. package/utils/goals.js +1 -0
  817. package/utils/index.js +1 -0
  818. package/utils/jsonaDataFormatter.js +1 -0
  819. package/utils/lasParser.js +1 -0
  820. package/utils/loadable.js +1 -0
  821. package/utils/localStorage.js +1 -0
  822. package/utils/main.js +1 -0
  823. package/utils/mapUnits.js +1 -0
  824. package/utils/mapbox.js +1 -0
  825. package/utils/metrics/index.js +1 -0
  826. package/utils/metrics/metricsConfig.js +1 -0
  827. package/utils/metrics/utils.js +1 -0
  828. package/utils/mobileDetect.js +1 -0
  829. package/utils/nativeMessages.js +1 -0
  830. package/utils/notificationToasts.js +1 -0
  831. package/utils/notifications.js +1 -0
  832. package/utils/permissions.js +1 -0
  833. package/utils/reports.js +1 -0
  834. package/utils/rollbar.js +1 -0
  835. package/utils/sharedDCStore.js +1 -0
  836. package/utils/sqlParser.js +1 -0
  837. package/utils/themeVariables.js +1 -0
  838. package/utils/time.js +1 -0
  839. package/utils/torqueAndHookloadUtils.js +1 -0
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/toConsumableArray";import{memo as r,useMemo as n}from"react";import i from"prop-types";import{isEqual as a,get as l,clone as o}from"lodash";import c from"moment";import s from"classnames";import{withStyles as d,Checkbox as u,Typography as f,IconButton as m}from"@material-ui/core";import p from"@material-ui/icons/Sort";import h from"@material-ui/icons/NotInterested";import{AutoSizer as b,Table as g,Column as y}from"react-virtualized";import{SizeMe as w}from"react-sizeme";import{getUnitDisplay as v,convertValue as C}from"../../../../utils/index.js";import x from"./SubjectIndicator.js";import _ from"./MetricsAddMenu.js";import k from"./MetricsSelect.js";import{METRICS_LIST as W,TABLE_COLUMNS as O,SETTINGS_COLUMN as N,METRICS_KEYS as R}from"../../constants.js";import{jsx as j,Fragment as D,jsxs as I}from"react/jsx-runtime";function S(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 T(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?S(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var A=48,q=44,z="WellsTable";function M(e,t){var r,n=l(e,t);switch(t){case"distance":r=Number.isFinite(n)?parseFloat(n).toFixed(2):"N/A";break;case"rigReleaseDate":r=Number.isFinite(n)?c.unix(n).format("MM/DD/YYYY"):"N/A";break;default:r=n||""}return r}function B(r){var i=r.subjectWell,c=r.wells,d=r.offsetWells,w=r.metricsKeys,S=r.isMetricsLoading,A=r.sortInfo,q=r.unusableWellAlarm,B=r.dialogWidth,L=r.classes,P=r.onChangeMetricsKeys,K=r.onAddOffsetWell,F=r.onDeleteOffsetWell,H=r.onAddAllOffsetWells,Y=r.onDeleteAllOffsetWells,E=r.onSorting,V=n((function(){return c.filter((function(e){return e.is_usable}))}),[c]),G=n((function(){var e=V.map((function(e){return e.id})).sort(),t=d.map((function(e){return e.id})).sort();return e.length&&a(e,t)}),[V,d]),X=n((function(){return w.reduce((function(e,t){return e.concat(W.filter((function(e){return e.key===t})))}),[])}),[w]),$=n((function(){return[].concat(t(O),t(X.map((function(e){return T(T({},e),{},{width:240})}))),[N])}),[X]),J=n((function(){if(!B||B<=0)return{};var e={},t=[];return $.filter((function(e){return Number.isFinite(e.width)})).forEach((function(r){e[r.key]=r.width-1,t.push(r.width-1)})),$.filter((function(e){return!Number.isFinite(e.width)})).forEach((function(r){var n=t.reduce((function(e,t){return e+t}),0),i=Math.floor((B-n)/($.length-t.length)),a=r.minWidth||200,l=i<a?a:i;e[r.key]=l-1,t.push(l-1)})),e}),[B,$]),Q=n((function(){return Object.values(J).reduce((function(e,t){return e+t}),0)}),[J]),U=function(e){P(e)},Z=function(e){e.target.checked?H():Y()},ee=function(t){return j(m,{"data-testid":"".concat(z,"_sortRemove"),"data-not-migrated-muiiconbutton":!0,className:L.sortIconButton,onClick:function(){return function(e){E(e)}(t)},children:t!==A.key?j(h,{className:L.sortIcon}):j(p,{className:s(L.sortIcon,e({},L.ascendingSortIcon,1===A.direction))})})},te=function(e){var t,r=e.label,n=e.dataKey;if("name"===n)return I("div",{"data-testid":"".concat(z,"_wellHeader"),className:L.nameWrapper,children:[j(u,{"data-testid":"".concat(z,"_selectAll"),classes:{checked:L.nameCheckBox,indeterminate:L.nameCheckBox},onClick:Z,checked:G,indeterminate:d.length>0&&!G,size:"small"}),j(f,{className:s(L.cell,L.nameCell),children:r}),ee(n)]});if(w.includes(n)){var i=X.find((function(e){return e.key===n})),a=X.findIndex((function(e){return e.key===n}));return I("div",{"data-testid":"".concat(z,"_header_").concat(n),className:L.metricsColumn,children:[j(k,{items:W,currentValue:n,onChange:(t=a,function(e){var r=o(w);r[t]=e,P(r)})}),j(f,{className:s(L.cell,L.unitCell),children:i.unitType?"(".concat(v(i.unitType,i.to),")"):""}),ee(n)]})}return n===N.key?j("div",{className:L.settingsCell,children:j(_,{metricsKeys:w,onChange:U})}):I("div",{"data-testid":"".concat(z,"_header_").concat(r),className:L.nameWrapper,children:[j(f,{className:L.cell,children:r}),ee(n)]})},re=function(t){var r=t.rowData,n=t.dataKey;if("name"===n)return I("div",{"data-testid":"".concat(z,"_row_").concat(r.name),className:L.nameWrapper,children:[j(u,{"data-testid":"".concat(z,"_wellCheckbox"),color:"primary",checked:d.findIndex((function(e){return e.id===r.id}))>-1,onChange:function(e){return t=r.id,void(e.target.checked?K(t):F(t));var t},size:"small",disabled:!r.is_usable}),j(f,{"data-testid":"".concat(z,"_wellName"),className:s(L.tableCellLabel,e({},L.tableCellLabelDisabled,!r.is_usable)),children:M(r,n)}),i&&r.id===i.id&&j(x,{})]});if(n===N.key)return j("div",{className:L.settingsCell,children:!r.is_usable&&j(f,{className:L.errorMsg,children:q})});var a=null;if(w.includes(n)){var o=X.find((function(e){return e.key===n}));a=function(e,t,r){var n=l(e,t.key);if(R.includes(t.key)){if(Number.isFinite(n)||n)return t.unitType?C(n,t.unitType,t.from,t.to):n;if(r)return"loading..."}return""}(r,o,S)}else a=M(r,n);return j(f,{"data-testid":"".concat(z,"_cell}"),className:s(L.cell,L.tableCellLabel,e({},L.tableCellLabelDisabled,!r.is_usable)),children:a})};return j(D,{children:j("div",{className:L.tableWrapper,children:j(b,{children:function(e){var t=e.height;return j(g,{width:Q,height:t,headerHeight:44,rowHeight:48,rowCount:c.length,rowGetter:function(e){var t=e.index;return c[t]},className:L.table,children:$.map((function(e){return j(y,{width:J[e.key]||200,dataKey:e.key,label:e.label,headerRenderer:te,cellRenderer:re},e.key)}))})}})})})}B.propTypes={subjectWell:i.shape({id:i.number}),wells:i.arrayOf(i.shape({})).isRequired,offsetWells:i.arrayOf(i.shape({})).isRequired,metricsKeys:i.arrayOf(i.string).isRequired,isMetricsLoading:i.bool.isRequired,sortInfo:i.shape({key:i.string.isRequired,direction:i.number.isRequired}).isRequired,classes:i.shape({}).isRequired,onChangeMetricsKeys:i.func.isRequired,onAddOffsetWell:i.func.isRequired,onDeleteOffsetWell:i.func.isRequired,onAddAllOffsetWells:i.func.isRequired,onDeleteAllOffsetWells:i.func.isRequired,onSorting:i.func.isRequired,unusableWellAlarm:i.string.isRequired,dialogWidth:i.number},B.defaultProps={subjectWell:null,dialogWidth:0};var L=d((function(e){return{title:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",marginBottom:"15px",marginTop:"16px"},tableWrapper:{marginTop:"24px",overflowX:"auto",overflowY:"hidden",position:"relative",height:2e3,minHeight:150,borderTop:"1px solid rgba(81, 81, 81, 1)"},table:{"& .ReactVirtualized__Table__headerRow":{textTransform:"none",borderBottom:e.isLightTheme?"1px solid rgba(224, 224, 224, 1)":"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__row":{borderBottom:e.isLightTheme?"1px solid rgba(224, 224, 224, 1)":"1px solid rgba(81, 81, 81, 1)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.03)"}},"& .ReactVirtualized__Table__Grid":{outline:"none"},"& .ReactVirtualized__Table__headerColumn":{outline:"none"}},cell:{color:"rgba(255, 255, 255, 0.54)",padding:"5px 10px",fontSize:"12px",whiteSpace:"nowrap"},nameWrapper:{display:"flex",alignItems:"center"},nameCell:{padding:0},unitCell:{padding:0},tableRowHoverEnabled:{"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"}},settingsCell:{textAlign:"right"},rigReleaseCell:{whiteSpace:"nowrap"},nameCheckBox:{color:e.palette.primary.main},bodyCell:{fontSize:"0.90rem",padding:"5px 10px"},metricsCellWrapper:{display:"flex",flexDirection:"row",alignContent:"center"},tableTitle:{fontSize:"16px",lineHeight:"140.6%",marginTop:10},tableTitleItems:{display:"flex",flexDirection:"row",alignItems:"center"},addWellInput:{width:300,marginTop:10},sortIconButton:{padding:"8px","&:hover $sortIcon":{color:"#fff"}},ascendingSortIcon:{transform:"scaleY(-1)"},sortIcon:{fontSize:"14px",color:"#BDBDBD"},metricsColumn:{display:"flex",alignItems:"center"},tableCellLabel:{fontSize:"0.90rem",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",color:"#fff"},tableCellLabelDisabled:{color:"#C4C4C4"},errorMsg:{color:"#C4C4C4",fontStyle:"italic",fontSize:"14px",padding:"0 16px",whiteSpace:"nowrap"}}}))(r((function(e){return j(w,{monitorWidth:!0,children:function(t){var r=t.size;return j(B,T({dialogWidth:r.width},e))}})})));export{q as HEADER_HEIGHT,A as ROW_HEIGHT,L as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import{sortBy as t}from"lodash";import"../../utils/index.js";import*as r from"../../utils/metrics/metricsConfig.js";var i=r,n={formation:"formation",stringDesign:"stringDesign",program:"programName",basin:"basin",county:"county",area:"area"},o=[{key:n.program,title:"Program/BU",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Programs/BUs")}},{key:n.basin,title:"Basin",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Basins")}},{key:n.county,title:"County",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Counties")}},{key:n.area,title:"Area",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Areas")}},{key:n.formation,title:"Target Formation",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Formations")}},{key:n.stringDesign,title:"String Design",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Designs")}}],a=t([i.weight_to_weight_average,i.bottom_to_slips_average,i.drilling_connection_average,i.slips_to_bottom_average,i.hole_depth,i.hole_depth_change,i.drilled_feet_rotary,i.drilled_feet_slide,i.rop_gross,i.rop,i.rop_rotary,i.rop_slide,i.drilled_feet_rotary_percentage,i.drilled_feet_slide_percentage,i.on_bottom_percentage,i.on_bottom_time,i.cost_per_ft,i.cost_per_lat_ft,i.feet_per_day,i.tripping_in_speed_cased,i.tripping_in_speed_open,i.tripping_in_speed,i.tripping_out_speed_cased,i.tripping_out_speed_open,i.tripping_out_speed].concat(e("production"!==process.env.REACT_APP_ENVIRONMENT?[i.npt,i.circulating_time,i.spud_to_rig_release_time,i.spud_to_total_depth_time]:[])),"label"),s=a.map((function(e){return e.key})),l=[{label:"Well Name",key:"name",minWidth:250},{label:"Rig",key:"rigName",width:200},{label:"Distance",key:"distance",width:120},{label:"Rig Release Date",key:"rigReleaseDate",width:150}],_={key:"settings",label:"settings",width:100},p=2,c={radius:5,filters:{},sortInfo:{key:"name",direction:1}};export{c as DEFAULT_SETTINGS,n as FILTERS,o as FILTERS_LIST,p as MAX_METRICS_COUNT,s as METRICS_KEYS,a as METRICS_LIST,_ as SETTINGS_COLUMN,l as TABLE_COLUMNS};
@@ -0,0 +1 @@
1
+ import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useState as t,useEffect as n}from"react";import{sortBy as o,uniqBy as c}from"lodash";import{FILTERS as u}from"../constants.js";function i(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var l=Object.values(u);function p(u,i){var p=t({}),a=e(p,2),s=a[0],b=a[1];return n((function(){i&&b(l.reduce((function(e,t){return f(f({},e),{},r({},t,function(r,e,t,n){var u=e.reduce((function(r,e){return r.filter((function(r){return!t[e]||0===t[e].length||t[e].includes(r[e])}))}),n),i=o(c(u.map((function(e){return e[r]}))));return i.includes("Null")?i.filter((function(r){return"Null"!==r})).concat("Null"):i}(t,l.filter((function(r){return r!==t})),u,i)))}),{}))}),[u,i]),s}export{p as default};
@@ -0,0 +1 @@
1
+ import t from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/regenerator";import{useRef as i,useEffect as o,useState as s}from"react";import{get as a}from"lodash";import{mapbox as u}from"../../../utils/index.js";import{BENCHMARK_METRIC_GOAL as c}from"../../../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/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../GradientManager/configuration/constants.js";import{fetchCompanies as f,fetchCompanyGoals as l,fetchWells as p,fetchMetricsData as m}from"../utils/apiCalls.js";import{FILTERS as h,METRICS_KEYS as v}from"../constants.js";export{default as useBidirectionalFiltering}from"./biDirectionalFiltering.js";import{getCompanyGoalSetting as d}from"../../../utils/goals.js";function b(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),r.push.apply(r,e)}return r}function j(n){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?b(Object(e),!0).forEach((function(r){t(n,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):b(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var y=u.getAssetV2Coordinates,g=u.getDistanceByCoordinates;function O(t){var n=i();return o((function(){n.current=t})),n.current}function x(t,i,a){var u=s([]),c=r(u,2),l=c[0],p=c[1];return o((function(){function r(){return(r=n(e.mark((function n(){var r;return e.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t){n.next=3;break}return p([]),n.abrupt("return");case 3:return n.next=5,f();case 5:r=n.sent,i&&(r=r.filter((function(t){return t.id===a}))),p(r);case 8:case"end":return n.stop()}}),n)})))).apply(this,arguments)}!function(){r.apply(this,arguments)}()}),[t]),l}function w(t){var i=s(null),a=r(i,2),u=a[0],f=a[1];return o((function(){function r(){return(r=n(e.mark((function n(){var r,i;return e.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,l(t);case 2:r=n.sent,i=d(r,c),f(i);case 5:case"end":return n.stop()}}),n)})))).apply(this,arguments)}f(null),function(){r.apply(this,arguments)}()}),[t]),u}function k(t,i){var a=s(null),u=r(a,2),c=u[0],f=u[1];return o((function(){function r(){return(r=n(e.mark((function n(){var r;return e.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t){n.next=6;break}return n.next=3,p(t,i);case 3:n.t0=n.sent,n.next=7;break;case 6:n.t0=null;case 7:r=n.t0,f(r);case 9:case"end":return n.stop()}}),n)})))).apply(this,arguments)}f(null),function(){r.apply(this,arguments)}()}),[t]),c}function E(t,n,e){var i=s(null),a=r(i,2),u=a[0],c=a[1],f=/\sST0/g;return o((function(){if(e){var r=Object.values(h).reduce((function(n,r){return n.filter((function(n){return e=n[r],!(i=t[r])||0===i.length||i.includes(e);var e,i}))}),e).filter((function(t){return n&&!t.name.match(f)||!n}));c(r)}else c(null)}),[e,t,n]),u}function P(t,n){var e=s(null),i=r(e,2),a=i[0],u=i[1];return o((function(){if(t){var r=n&&y(n,"topHole");if(r){var e=[];t.forEach((function(t){var n=y(t,"topHole");if(n){var i=parseFloat(g(r,n));e.push(j(j({},t),{},{distance:i}))}else e.push(t)})),u(e)}else u(t)}else u(t)}),[t,n]),a}function D(t,n,e){var i=s(null),a=r(i,2),u=a[0],c=a[1];return o((function(){if(n){var t=[];n.forEach((function(n){e.includes(n.id)&&n.is_usable&&t.push(n)})),c(t)}else c(null)}),[t,n,e]),u}function F(t,u){var c=i({}),f=s(!0),l=r(f,2),p=l[0],h=l[1],d=s(null),b=r(d,2),y=b[0],g=b[1];return o((function(){function r(){return(r=n(e.mark((function n(r){var i,o,s;return e.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,m(t,r);case 2:i=n.sent,o={},r.forEach((function(t){var n={},r=i.filter((function(n){return a(n,"asset_id")===t}));v.forEach((function(t){var e=r.find((function(n){return a(n,"data.key")===t})),i=a(e,"data.value");n[t]=Number.isFinite(i)?parseFloat(i).toFixed(2):null})),o[t]=n})),c.current=j(j({},c.current),o),s=[],u.forEach((function(t){s.push(j(j({},t),c.current[t.id]))})),h(!1),g(s);case 10:case"end":return n.stop()}}),n)})))).apply(this,arguments)}if(u)if(0!==u.length){var i=[];u.forEach((function(t){c.current[t.id]||i.push(t.id)})),h(!0),function(t){r.apply(this,arguments)}(i)}else g([]);else g(null)}),[u]),[p,y]}function C(t,n,r){var e=i(!1);o((function(){if(n){if(e.current){var i=[];n.forEach((function(n){n.distance<=t&&i.push(n.id)})),r(i)}e.current=!0}}),[t,n])}export{x as useCompanies,w as useCompanyMetricKey,E as useFilteredWells,F as useMetricsData,D as useOffsetWells,O as usePrevious,C as useRadiusWells,k as useWells,P as useWellsWithCoords};
@@ -0,0 +1 @@
1
+ import t from"@babel/runtime/helpers/toConsumableArray";import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/regenerator";import{range as a,sortBy as n,get as s}from"lodash";import{getCompanies as i,getAssets as u,getCompanyGoals as o,getAppStorage as c}from"../../../clients/jsonApi/index.js";import{METRICS_KEYS as p}from"../constants.js";function l(){return m.apply(this,arguments)}function m(){return(m=e(r.mark((function t(){var e;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i();case 3:e=t.sent,t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.error(t.t0);case 9:return t.abrupt("return",e?n(e,["name"]):[]);case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))).apply(this,arguments)}function f(t,e){return b.apply(this,arguments)}function b(){return(b=e(r.mark((function t(e,a){var n,i,o;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=null,t.prev=1,t.next=4,u({types:["well"],company_id:e?+e:void 0,fields:["asset.name","asset.parent_asset_id","asset.parent_asset_name","asset.stats","asset.target_formation","asset.string_design","asset.root_asset_name","asset.basin","asset.county","asset.area","asset.visibility","asset.top_hole"],per_page:1e4,sort:"name"});case 4:n=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),console.error(t.t0);case 10:if(i=n?n.data.map((function(t){return{id:Number(t.id),name:s(t,"attributes.name"),rigId:s(t,"attributes.parent_asset_id")||"Null",rigName:s(t,"attributes.parent_asset_name")||"Null",formation:s(t,"attributes.target_formation")||"Null",stringDesign:s(t,"attributes.string_design")||"Null",programName:s(t,"attributes.root_asset_name")||"Null",basin:s(t,"attributes.basin")||"Null",county:s(t,"attributes.county")||"Null",area:s(t,"attributes.area")||"Null",visibility:s(t,"attributes.visibility"),topHole:s(t,"attributes.top_hole"),rigReleaseDate:s(t,"attributes.stats.well_end"),totalDepth:s(t,"attributes.stats.total_depth"),is_usable:!0}})).filter((function(t){return"visible"===t.visibility})):[],!a){t.next=16;break}return t.next=14,a(i);case 14:return o=t.sent,t.abrupt("return",o);case 16:return t.abrupt("return",i);case 17:case"end":return t.stop()}}),t,null,[[1,7]])})))).apply(this,arguments)}function d(t){return h.apply(this,arguments)}function h(){return(h=e(r.mark((function t(e){var a;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,o(e);case 3:a=t.sent,t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.error(t.t0);case 9:return t.abrupt("return",a&&s(a,"company_goals")||{});case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))).apply(this,arguments)}function _(t,e){return v.apply(this,arguments)}function v(){return v=e(r.mark((function n(s,i){var u,o,l;return r.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(0!==i.length){n.next=2;break}return n.abrupt("return",[]);case 2:return u=Math.floor(i.length/200)+1,n.next=5,Promise.all(a(u).map(function(){var t=e(r.mark((function t(e,a){var n,u,o,l;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={company_id:s,"data.asset_id":{$in:i.slice(200*a,200*(a+1))},"data.key":{$in:p},"data.type":"asset"},u={_id:0,"data.key":1,"data.value":1,asset_id:"$data.asset_id"},o={aggregate:JSON.stringify([{$match:n},{$project:u}])},l=null,t.prev=4,t.next=7,c("corva","metrics",null,o);case 7:l=t.sent,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(4),console.error(t.t0);case 13:return t.abrupt("return",l||[]);case 14:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(e,r){return t.apply(this,arguments)}}()));case 5:return o=n.sent,l=[],o.forEach((function(e){return l.push.apply(l,t(e))})),n.abrupt("return",l);case 9:case"end":return n.stop()}}),n)}))),v.apply(this,arguments)}export{l as fetchCompanies,d as fetchCompanyGoals,_ as fetchMetricsData,f as fetchWells};
@@ -0,0 +1 @@
1
+ import r from"prop-types";import e from"@material-ui/icons/Clear";import{makeStyles as t,Typography as a}from"@material-ui/core";import{jsxs as o,jsx as i}from"react/jsx-runtime";var l=t((function(r){return{wrapper:{display:"flex",alignItems:"center",width:"150px",marginTop:"8px",cursor:"pointer","&:hover $clearText":{color:r.palette.primary.text1},"&:hover $clearIcon":{color:r.palette.primary.text1}},clearText:{color:r.palette.primary.text6,fontSize:"14px"},clearIcon:{color:r.palette.primary.text6,marginRight:"5px"}}}));function p(r){var t=r.onClick,p=l();return o("div",{className:p.wrapper,onClick:t,children:[i(e,{className:p.clearIcon}),i(a,{className:p.clearText,children:"Clear"})]})}p.propTypes={onClick:r.func.isRequired};export{p as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{useState as r,useEffect as i}from"react";import t from"prop-types";import{makeStyles as n,FormControl as a,InputLabel as l,Select as o,MenuItem as c,Checkbox as s,ListItemText as u,Divider as m}from"@material-ui/core";import{jsxs as p,jsx as d}from"react/jsx-runtime";var f=n({checkBox:{color:"grey",paddingLeft:0},formControl:{width:function(e){return e.size}},listItemPrimaryText:{color:"#fff"},paper:{backgroundColor:"#414141"}});function h(t){var n=t.options,h=t.currentValues,y=t.title,g=t.size,x=t.renderValue,k=t.onChange,v=r([]),C=e(v,2),q=C[0],R=C[1],P=r(!1),T=e(P,2),V=T[0],b=T[1],w=r(!1),z=e(w,2),N=z[0],O=z[1],B=f({size:g});i((function(){R(h.filter((function(e){return n.includes(e)})))}),[h,n]);return p(a,{className:B.formControl,children:[d(l,{shrink:!0,htmlFor:"c-owp-multi-select-".concat(y),children:y}),p(o,{className:B.select,MenuProps:{classes:{paper:B.paper}},multiple:!0,displayEmpty:!0,fullWidth:!0,value:q,inputProps:{name:"c-owp-multi-select-".concat(y),id:"c-owp-multi-select-".concat(y)},renderValue:function(e){return x(e.length)},open:V,onOpen:function(){b(!0),O(!1)},onClose:function(){b(!1),N&&k(q),O(!1)},onChange:function(e){var r=e.target.value;R(r.includes("all")?[]:r),O(!0)},children:[p(c,{value:"all",children:[d(s,{checked:!0,indeterminate:q.length>0,className:B.checkBox}),d(u,{primary:x(0),classes:{primary:B.listItemPrimaryText}})]},"all"),d(m,{}),n.map((function(e){return p(c,{value:e,children:[d(s,{checked:q.indexOf(e)>-1,className:B.checkBox}),d(u,{primary:e,classes:{primary:B.listItemPrimaryText}})]},e)}))]})]})}h.propTypes={options:t.arrayOf(t.string).isRequired,currentValues:t.arrayOf(t.string).isRequired,title:t.string.isRequired,size:t.number.isRequired,renderValue:t.func.isRequired,onChange:t.func.isRequired};export{h as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{useState as r,useEffect as i}from"react";import t from"prop-types";import{makeStyles as o,Tooltip as a,TextField as l}from"@material-ui/core";import{debounce as n}from"lodash";import{jsx as u}from"react/jsx-runtime";var s=o({formControl:{width:function(e){return e.isTablet?"200px":"150px"}}}),m=n((function(e){e()}),1500);function c(t){var o=t.radius,n=t.editable,c=t.onChange,d=t.isTablet,p=s({isTablet:d}),b=r(o),f=e(b,2),h=f[0],T=f[1],v=r(null),x=e(v,2),C=x[0],R=x[1];i((function(){T(o)}),[o]);return u(a,{title:n?"":"To make radius active select Subject Well.",children:u(l,{type:"number",label:"Radius (miles)",value:h,disabled:!n,onChange:function(e){var r=e.target.value;!Number.isFinite(+r)||+r<0?R("Incorrect radius"):(R(null),m((function(){c(+r)}))),T(r)},error:!!C,helperText:C,className:p.formControl})})}c.propTypes={radius:t.number.isRequired,editable:t.bool.isRequired,onChange:t.func.isRequired,isTablet:t.bool.isRequired};export{c as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{useState as t,useEffect as o}from"react";import r from"prop-types";import{debounce as i}from"lodash";import{makeStyles as n}from"@material-ui/core";import{jsx as s}from"react/jsx-runtime";import"../../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.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"../../../../../Modal/CorvaModal.js";import"uuid";import"../../../../../IconMenu/index.js";import"../../../../../StyledMenuItem/index.js";import"../../../../../ImagesGrid/index.js";import"../../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../../DevCenter/SideBar/SideBar.js";import"../../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../../DevCenter/AppContext.js";import"../../../../../AssetEditor/index.js";import"../../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../../Typography.js";import"../../../../../CollapsableSidebar.js";import"../../../../../DateTimePicker/index.js";import"../../../../../DatePicker/index.js";import"../../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../../Annotations/components/AnnotationsList/index.js";import"../../../../../Annotations/components/LastAnnotation/index.js";import"../../../../../Annotations/AnnotationsContext.js";import"../../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";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 p from"../../../../../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/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"../../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../../TruncatedText/index.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"../../../../../IconButton/index.js";import"../../../../../TextField/index.js";import"../../../../../Chip/index.js";import"../../../../../Counter/index.js";import"../../../../../AnchorsList/AnchorsList.js";import"../../../../../Select/index.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/configuration/constants.js";import"../../../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"classnames";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"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../../../clients/jsonApi/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/notifications.js";import"../../../../../../constants/feed.js";import"../../../../../../constants/bha.js";import"../../../../../BICOffsetPickerDialog/index.js";import"../../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../index.js";import"../../../../../OffsetWellChips/Chip.js";import"../../../../../OffsetWellChips/ChipsContainer.js";import"../../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../../OffsetWellMap/OffsetWellMap.js";import"../../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";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"../../../../../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"../../../../../Table/TableToolbar/TableToolbar.js";import"../../../../../Table/TableContainer/TableContainer.js";import"../../../../../Table/TableCell/TableCell.js";import"../../../../../Tooltip/MuiTooltipDcWrapper.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"../../../../../HelpCenter/HelpCenterIcon.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";var m=n({formControl:{width:function(e){return e.isMobile?"200px":"150px"}},root:{marginLeft:"-10px"},label:{width:function(e){return!e.isMobile&&"66px"}}}),a=i((function(e){e()}),500);function l(r){var i=r.checked,n=r.onChange,l=r.isMobile,d=m({isMobile:l}),j=t(i),c=e(j,2),C=c[0],u=c[1];o((function(){u(i)}),[i]);return s(p,{rightLabel:"Exclude Sidetracks",color:"primary",checked:C,onChange:function(e){u(e.target.checked),a((function(){n(e.target.checked)}))},size:"small",className:d.formControl,classes:{root:d.root,label:d.label}})}l.propTypes={checked:r.bool.isRequired,onChange:r.func.isRequired,isMobile:r.bool.isRequired};export{l as default};
@@ -0,0 +1 @@
1
+ import{memo as e}from"react";import i from"prop-types";import{get as r}from"lodash";import{makeStyles as t,Dialog as l,DialogTitle as n,Typography as a,DialogContent as o}from"@material-ui/core";import{Close as s}from"@material-ui/icons";import d from"./RadiusInput.js";import c from"./SidetrackSwitch.js";import p from"./MultiSelect.js";import u from"./ClearFiltersButton.js";import{FILTERS_LIST as f}from"../../constants.js";import{jsxs as m,jsx as h}from"react/jsx-runtime";var g=t((function(e){return{container:{display:"flex",marginBottom:"24px"},filters:{display:"flex",flexWrap:"wrap"},fileterSection:{display:"flex",width:"100%",alignItems:"center",flexWrap:"wrap"},filterRow:{display:"flex",width:"100%",flexFlow:"row wrap",alignContent:"flex-start",gap:"24px"},paper:{background:e.palette.background.b4,overflow:"hidden"},dialogTitle:{padding:"14px 0",height:"60px",borderBottom:"1px solid ".concat(e.palette.background.b7)},titleWrapper:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 16px",fontSize:"18px"},title:{fontSize:"20px"},dialogContent:{display:"flex",width:"100%",flexFlow:"row wrap",alignContent:"flex-start",height:"100%",paddingRight:"16px",justifyContent:"space-between"}}}));function b(e){var i=e.radius,t=e.excludeSideTrack,b=e.filters,x=e.filtersOptions,C=e.isRadiusEditable,R=e.filtersHidden,w=e.onChangeFilters,k=e.onChangeRadius,q=e.onChangeSidetrack,y=e.onClearFilters,S=e.isTablet,v=e.isMobile,j=e.onToggleFilters,F=g({isMobile:v}),T=S?200:150,N=function(){j(!1)};return R&&v&&!S?m(l,{onBackdropClick:N,onEscapeKeyDown:N,fullScreen:!0,maxWidth:"xs",fullWidth:!0,open:!0,classes:{paper:F.paper},children:[h(n,{className:F.dialogTitle,children:m("div",{className:F.titleWrapper,children:[h(a,{className:F.title,children:"Filter"}),h(s,{className:F.closeIcon,onClick:N})]})}),m(o,{className:F.dialogContent,children:[f.map((function(e){var i=e.key,t=e.title,l=e.renderValue;return h(p,{title:t,size:T,options:r(x,i,[]),currentValues:r(b,i,[]),renderValue:l,onChange:function(e){return w(i,e)}},i)})),h(d,{radius:i,editable:C,onChange:k,isMobile:v}),h(c,{checked:t,onChange:q,isMobile:v})]})]}):R||v&&!S?null:h("div",{className:F.container,children:h("div",{className:F.filters,children:h("div",{className:F.fileterSection,children:m("div",{className:F.filterRow,children:[f.map((function(e){var i=e.key,t=e.title,l=e.renderValue;return h(p,{title:t,size:T,options:r(x,i,[]),currentValues:r(b,i,[]),renderValue:l,onChange:function(e){return w(i,e)}},i)})),h(d,{radius:i,editable:C,onChange:k,isTablet:S}),h(c,{checked:t,onChange:q,isMobile:v}),h(u,{onClick:y})]})})})})}b.propTypes={subjectWell:i.shape({}),radius:i.number.isRequired,isRadiusEditable:i.bool.isRequired,excludeSideTrack:i.bool.isRequired,filters:i.shape({}).isRequired,filtersOptions:i.shape({}).isRequired,filtersHidden:i.bool.isRequired,onChangeFilters:i.func.isRequired,onChangeRadius:i.func.isRequired,onChangeSidetrack:i.func.isRequired,onClearFilters:i.func.isRequired,isTablet:i.bool.isRequired,isMobile:i.bool.isRequired,onToggleFilters:i.func.isRequired},b.defaultProps={subjectWell:null};var x=e(b);export{x as default};
@@ -0,0 +1 @@
1
+ import r from"prop-types";import{makeStyles as e,Typography as a}from"@material-ui/core";import{jsx as i,jsxs as o}from"react/jsx-runtime";var t=e((function(r){return{root:{display:"flex",flexWrap:"wrap",alignItems:"center",marginTop:r.spacing(1)/2},formationItem:{display:"flex",alignItems:"center",marginRight:r.spacing(1)},marker:{width:8,height:8,borderRadius:"50%"},label:{color:r.palette.primary.text6,fontSize:"10px",marginLeft:r.spacing(1)}}}));function n(r){var e=r.formations,n=r.formationColors,m=t();return i("div",{className:m.root,children:e.map((function(r){return o("div",{className:m.formationItem,children:[i("div",{className:m.marker,style:{backgroundColor:n[r]}}),i(a,{className:m.label,children:r})]},r)}))})}n.propTypes={formations:r.arrayOf(r.string).isRequired,formationColors:r.shape({}).isRequired};export{n as default};
@@ -0,0 +1 @@
1
+ import a from'./../../../../../../ext-esm/style-inject/dist/style-inject.es.js';var p={map:"Map_map__pdvR2",mapMain:"Map_mapMain__em8S8"};a(".Map_map__pdvR2{width:100%}.Map_mapMain__em8S8{background-color:#414141;border-radius:4px;flex:100;height:200px;width:100%}.Map_map__pdvR2 .leaflet-popup-content-wrapper{background-color:#414141;border-radius:4px;box-shadow:0 5px 5px rgba(0,0,0,.2),0 3px 14px rgba(0,0,0,.12),0 8px 10px rgba(0,0,0,.14)}.Map_map__pdvR2 .leaflet-popup-content{padding:10px 16px}.Map_map__pdvR2 .leaflet-popup-close-button,.Map_map__pdvR2 .leaflet-popup-tip{display:none}.Map_map__pdvR2 .leaflet-control-zoom{background:none;border:none;box-shadow:none}.Map_map__pdvR2 .leaflet-control-zoom a{background-image:none;background:#272727;color:#bdbdbd}.Map_map__pdvR2 .leaflet-control-zoom a,.Map_map__pdvR2 .leaflet-control-zoom a:hover{align-items:center;border-radius:4px;content:unset;display:flex;font-size:22px;height:32px;justify-content:center;margin-top:4px;opacity:1;text-align:center;text-indent:unset;width:32px}.Map_map__pdvR2 .leaflet-control-zoom a:hover{background:#303030;background-image:none;color:#fff}.Map_map__pdvR2 .leaflet-touch .leaflet-bar,.Map_map__pdvR2 .leaflet-touch .leaflet-control-layers{background-clip:padding-box;border:0 solid transparent}");export{p as default};
@@ -0,0 +1 @@
1
+ import{memo as r,useRef as e,useMemo as t,useEffect as o,createElement as n}from"react";import u from"react-dom";import i from"prop-types";import c from"mapbox.js";import{get as l,sortBy as s}from"lodash";import{mapbox as a}from"../../../../../../utils/index.js";import{usePrevious as d}from"../../effects/index.js";import f from"./Map.css.js";import{jsx as m,Fragment as p}from"react/jsx-runtime";var v=a.isValidCoordinates,h=[29.749907,-95.358421];function b(r){var i=r.open,a=r.subjectWell,b=r.wells,B=r.offsetWells,g=r.radius,D=r.formationColors,W=r.popUpFormatter,y=r.coordsDataPath,x=r.onAddOffsetWell,C=r.onDeleteOffsetWell,O=e(null),T=e(),j=e(null),F=e(null),k=d(b),L=t((function(){return a&&l(a,y)}),[a,y]);return o((function(){i&&!T.current&&(T.current=c.mapbox.map(O.current,null,{attributionControl:!1,scrollWheelZoom:!1,zoomControl:!1}).setView(h,1),c.control.zoom({position:"bottomright"}).addTo(T.current),c.mapbox.styleLayer("mapbox://styles/mapbox/dark-v9").addTo(T.current))}),[i]),o((function(){T.current&&i&&(j.current&&T.current.removeLayer(j.current),L?(j.current=c.circle(L,1609.34*g,{stroke:!1,fill:!0,fillOpacity:.2,fillColor:"#03BCD4",className:"circle_500"}),j.current.addTo(T.current)):j.current=null)}),[g,L,i]),o((function(){if(T.current&&i){F.current&&F.current.removeFrom(T.current);var r=B.map((function(r){return r.id})),e=s(b,(function(e){return r.includes(e.id)})),t=[];e.forEach((function(e){var o=l(e,y);if(o&&v(o)){var i=a&&a.id===e.id,s=r.includes(e.id),d=i?10:5,f=i||s?"#00FFFF":l(D,e.formation,"#BDBDBD"),h=i||s?1:.3,b=c.circleMarker(o,{radius:d,stroke:!1,fill:!0,fillOpacity:h,fillColor:f,className:"circle_500"});b.addEventListener("mouseover",(function(){if(W){var r=document.createElement("div"),t=n(W,{well:e,color:l(D,e.formation,"#BDBDBD")});u.render(m(p,{children:t}),r),c.popup().setLatLng(o).setContent(r).openOn(T.current)}})),b.addEventListener("mouseout",(function(){T.current.closePopup()})),b.addEventListener("click",(function(){s&&!i?C(e.id):x(e.id)})),t.push(b)}})),t.length&&(F.current=c.featureGroup(t),F.current.addTo(T.current)),setTimeout((function(){j.current&&j.current.bringToBack(),T.current&&j.current&&b!==k&&T.current.fitBounds(j.current.getBounds(),{padding:[5,5]})}),500)}}),[a,b,B,i]),o((function(){i&&setTimeout((function(){j.current&&j.current.bringToBack(),a?T.current&&j.current&&T.current.fitBounds(j.current.getBounds(),{padding:[5,5]}):T.current&&F.current&&T.current.fitBounds(F.current.getBounds())}),500)}),[g,a,i]),m("div",{className:f.map,children:m("div",{className:f.mapMain,ref:O})})}b.propTypes={open:i.bool.isRequired,subjectWell:i.shape({id:i.number,formation:i.string}),wells:i.arrayOf(i.shape({})).isRequired,offsetWells:i.arrayOf(i.shape({})),radius:i.number.isRequired,formationColors:i.shape({}).isRequired,popUpFormatter:i.func,coordsDataPath:i.string,onAddOffsetWell:i.func.isRequired,onDeleteOffsetWell:i.func.isRequired},b.defaultProps={subjectWell:null,popUpFormatter:null,coordsDataPath:"settings.top_hole.coordinates",offsetWells:null};var B=r(b);export{B as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{memo as o,useMemo as r}from"react";import l from"prop-types";import{makeStyles as s}from"@material-ui/core";import i from"./FormationsLegend.js";import t from"./popupGenerator.js";import{getAllFormations as a}from"./utils.js";import n from"./Map.js";import{jsxs as p,jsx as f}from"react/jsx-runtime";var d=s({mapContainerHidden:{marginTop:"20px",display:"none"}});function m(o){var l=o.open,s=o.subjectWell,m=o.wells,u=o.offsetWells,c=o.radius,W=o.mapHidden,b=o.isMobile,j=o.onAddOffsetWell,O=o.onDeleteOffsetWell,q=d(),R=r((function(){return a(m)}),[m]),h=e(R,2),y=h[0],H=h[1];return p("div",{className:W&&q.mapContainerHidden,children:[f(n,{open:l,subjectWell:s,wells:m,offsetWells:u,radius:c,formationColors:H,popUpFormatter:t(),coordsDataPath:"topHole.coordinates",onAddOffsetWell:j,onDeleteOffsetWell:O}),!b&&f(i,{formations:y,formationColors:H})]})}m.propTypes={open:l.bool.isRequired,subjectWell:l.shape({}),wells:l.arrayOf(l.shape({})).isRequired,offsetWells:l.arrayOf(l.shape({})).isRequired,radius:l.number,mapHidden:l.bool.isRequired,isMobile:l.bool.isRequired,onAddOffsetWell:l.func.isRequired,onDeleteOffsetWell:l.func.isRequired},m.defaultProps={subjectWell:null,radius:null};var u=o(m);export{u as default};
@@ -0,0 +1 @@
1
+ import e from"moment";import{makeStyles as o}from"@material-ui/core";import{jsxs as l,jsx as t}from"react/jsx-runtime";var a=o({popup:{color:"#fff",fontFamily:"Roboto"},wellColor:{width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},wellNameWrapper:{marginBottom:"8px"},wellName:{fontFamily:"Roboto",fontStyle:"normal",fontWeight:"normal",fontSize:"11px",lineHeight:"16px",letterSpacing:"0.4px",color:"#FFFFFF"},popupInfo:{fontFamily:"Roboto",fontStyle:"normal",fontWeight:"normal",fontSize:"11px",lineHeight:"16px",letterSpacing:"0.4px",color:"#BDBDBD"},popupFormation:{fontFamily:"Roboto",fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"17px",letterSpacing:"0.4px",color:"#BDBDBD"}}),i=function(){return function(o){var i=o.well,r=o.color,n=a();return l("div",{className:n.popup,children:[t("div",{className:n.wellNameWrapper,children:t("span",{className:n.wellName,children:i.name})}),l("div",{className:n.popupInfo,children:["Well Depth:",Number.isFinite(i.rigReleaseDate)?"".concat(Math.floor(i.totalDepth)," ft"):"N/A"]}),l("div",{className:n.popupInfo,children:["Release Date:",Number.isFinite(i.rigReleaseDate)?e.unix(i.rigReleaseDate).format("MM/DD/YYYY"):"N/A"]}),l("div",{className:n.popupFormation,children:[t("div",{className:n.wellColor,style:{backgroundColor:r}}),i.formation]})]})}};export{i as default};
@@ -0,0 +1 @@
1
+ import r from"@babel/runtime/helpers/defineProperty";import{get as e,sortBy as t}from"lodash";import{FORMATION_COLORS as n}from"../../constants.js";function o(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function i(o){var i=[],u=!1;o.forEach((function(r){"Null"===r.formation?u=!0:i.includes(e(r,"formation"))||i.push(e(r,"formation"))}));var f=t(i);u&&!f.includes("Null")&&f.push("Null");var p=f.reduce((function(e,t,o){return c(c({},e),{},r({},t,n[o%n.length]))}),{});return[f,p]}export{i as getAllFormations};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{memo as t,useState as o}from"react";import r from"prop-types";import{makeStyles as i,TextField as l,InputAdornment as a,Popover as n,Dialog as s,DialogTitle as c,Typography as p,DialogContent as m}from"@material-ui/core";import{Search as d,Close as h}from"@material-ui/icons";import f from"./AutoCompleteAssetSearch/AutoCompleteAssetSearch.js";import{jsxs as u,Fragment as b,jsx as x}from"react/jsx-runtime";var g=i((function(e){return{searchInput:{fontSize:"16px",width:"270px","&:hover":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.text1," !important")}},"&:hover $searchIcon":{fill:"".concat(e.palette.primary.text1," !important")}},searchIcon:{fill:"".concat(e.palette.primary.text6," !important"),fontSize:"24px !important"},paper:{background:e.palette.background.b9,overflow:"hidden"},dialogTitle:{padding:"16px",height:"60px"},titleWrapper:{display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:"20px"},title:{fontSize:"20px"},dialogContent:{display:"flex",width:"100%",height:"100%",flexFlow:"row wrap",alignContent:"flex-start",padding:0,justifyContent:"space-between",overflow:"hidden"},closeIcon:{color:e.palette.primary.text6}}}));function y(t){var r=t.company,i=t.onClickAsset,y=t.isTablet,C=t.isMobile,A=g(),v=o(null),w=e(v,2),I=w[0],S=w[1],T=function(){S(null)},k=function(e){var t=e.redirectAssetId;t&&(i(t),T())};return u(b,{children:[x(l,{type:"text",id:"well-section-search-textfield",placeholder:!y&&C?"Well/Rig Search":"Add to List by Well/Rig Search",InputProps:{startAdornment:x(a,{position:"start",children:x(d,{className:A.searchIcon})}),className:A.searchInput},onClick:function(e){S(e.currentTarget)}}),(y||!C)&&x(n,{open:Boolean(I),anchorEl:I,onClose:T,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:x(f,{company:r,onClickAsset:k,onClose:T,isTablet:y,isMobile:C})}),!y&&C&&u(s,{fullScreen:!0,open:Boolean(I),classes:{paper:A.paper},children:[x(c,{className:A.dialogTitle,children:u("div",{className:A.titleWrapper,children:[x(p,{className:A.title,children:"Search"}),x(h,{className:A.closeIcon,onClick:T})]})}),x(m,{className:A.dialogContent,children:x(f,{company:r,onClickAsset:k,onClose:T,isTablet:y,isMobile:C})})]})]})}y.propTypes={company:r.number.isRequired,onClickAsset:r.func.isRequired,isTablet:r.bool.isRequired,isMobile:r.bool.isRequired};var C=t(y);export{C as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{useRef as t,useState as o,useEffect as r}from"react";import i from"prop-types";import{get as a,isEmpty as s}from"lodash";import{makeStyles as n,List as l,ListItem as c,ListItemText as d,Typography as p}from"@material-ui/core";import{jsxs as u,jsx as m}from"react/jsx-runtime";var g=n((function(e){return{assetListWrapper:{height:"calc(100% - 110px)",margin:"8px 0 4px",flex:1},assetListContainer:{maxHeight:function(e){var t=e.isTablet,o=e.isMobile;return t||!o?"350px":"100% "},backgroundColor:e.palette.background.paper,position:"relative",overflowY:"auto",overFlowX:"hidden"},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"},topShadow:{top:function(e){return e.isMobile?"170px":"111px"},width:"100%",height:"16px",backgroundImage:"linear-gradient(0deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9," 100%)"),position:"absolute",zIndex:2},bottomShadow:{width:"100%",height:"15px",backgroundImage:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9," 100%)"),position:"absolute",bottom:"16px",zIndex:2}}})),h=function(i){var n=i.page,h=i.loading,b=i.groupedAssets,f=i.onClickAsset,x=i.onScrollReached,y=i.isTablet,S=i.isMobile,v=g({isTablet:y,isMobile:S}),T=t(null),R=o("top"),w=e(R,2),I=w[0],k=w[1];r((function(){h||("top"===I&&T.current.scrollTo(0,5),"bottom"===I&&T.current.scrollTo(0,T.current.scrollHeight-T.current.offsetHeight-5))}),[h]);return u("div",{className:v.assetListWrapper,children:[m("div",{className:v.topShadow,children:" "}),u(l,{className:v.assetListContainer,subheader:m("li",{}),onScroll:function(t){if(t.target.scrollHeight!==t.target.offsetHeight){var o=t.target.scrollTop+t.target.offsetHeight;Math.abs(t.target.scrollHeight-o)<1&&b.find((function(t){var o=e(t,2);return o[0],40===o[1].length}))&&(k("top"),x("bottom")),0===Math.round(t.target.scrollTop)&&n>1&&(k("bottom"),x("top"))}},ref:T,children:[b.map((function(t){var o=e(t,2),r=o[0],i=o[1];return m("li",{className:v.listSection,children:m("ul",{className:v.ul,children:i.map((function(e){return m(c,{"data-testid":"".concat("AssetResultSection","_item_").concat(e.name,"MenuItem"),button:!0,classes:{gutters:v.listGutters},disabled:!e.redirectAssetId,onClick:function(){return f(e)},children:m(d,{primary:e.name,classes:{root:v.assetItemTextRoot,primary:v.assetItemTextPrimary}})},"item-".concat(r,"-").concat(a(e,"asset_id")?a(e,"asset_id"):a(e,"id")))}))})},"section-".concat(r))})),!h&&s(b)&&m("div",{className:v.empty,children:"Your search did not match any Asset Name"})]}),h&&m(p,{"data-testid":"".concat("AssetResultSection","_loading"),className:v.loadingInfo,children:"Loading..."}),m("div",{className:v.bottomShadow,children:" "})]})};h.propTypes={page:i.number.isRequired,loading:i.bool.isRequired,groupedAssets:i.arrayOf([]).isRequired,onClickAsset:i.func.isRequired,onScrollReached:i.func.isRequired,isTablet:i.bool.isRequired,isMobile:i.bool.isRequired};export{h as default};
@@ -0,0 +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 l}from"react/jsx-runtime";var s=t({assetSelectorWrapper:{display:"flex",flexWrap:"wrap",gap:"8px"},description:{color:"#BDBDBD",fontSize:"12px",lineHeight:"17px",marginBottom:"8px"},assetTypeChip:{color:"#BDBDBD","&:last-child":{marginRight:"0px"}}}),n=function(r){var t=r.onClickAssetType,n=s();return p("div",{children:[l(i,{className:n.description,children:"I'm looking for..."}),l("div",{className:n.assetSelectorWrapper,children:o.map((function(r){var i=e(r,2),o=i[0],p=i[1];return l(a,{"data-testid":"".concat("AssetTypesSection","_chip_").concat(p.labelPlural),className:n.assetTypeChip,variant:"outlined",label:p.labelPlural,onClick:function(){return t(o)}},o)}))})]})};n.propTypes={onClickAssetType:r.func.isRequired};export{n as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{useState as t,useRef as o}from"react";import r from"prop-types";import{withRouter as i}from"react-router";import n from"lodash/get";import{withStyles as l,Tooltip as a,makeStyles as s,Input as c,Chip as p}from"@material-ui/core";import u from"@material-ui/icons/Close";import d from"./AssetTypesSection.js";import m from"./AssetResultSection.js";import{useAssetsData as f}from"./effects/useAssetsData.js";import{SEARCH_CATEGORIES as h,CATEGORY_KEY_VALUES as x}from"./constants.js";import{jsxs as b,jsx as g}from"react/jsx-runtime";var y=l((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"}}}))(a),C=s((function(e){return{wrapper:{width:function(e){var t=e.isTablet,o=e.isMobile;return!t&&o?"100%":"472px"},height:function(e){var t=e.isTablet,o=e.isMobile;return!t&&o&&"100%"},display:"flex",flexDirection:"column",padding:"12px 16px"},inputWrapper:{display:"flex",width:"auto",marginBottom:"16px",alignItems:"center",flexWrap:"nowrap",justifyContent:"space-between"},selectedChip:{width:"fit-content",marginBottom:"10px",fontSize:"14px"},selectedChipDeleteIcon:{width:"16px",height:"16px",color:e.palette.primary.text6,"&:hover":{color:e.palette.primary.text1}},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"},deleteIcon:{color:e.palette.primary.text1,height:"16px"}}})),v=function(r){var i=r.onClickAsset,l=r.company,a=r.isTablet,s=r.isMobile,v=t(null),I=e(v,2),w=I[0],A=I[1],T=t(null),S=e(T,2),R=S[0],j=S[1],k=t(1),D=e(k,2),M=D[0],B=D[1],q=C({isTablet:a,isMobile:s}),z=o(),N=f(R,w,M,l),W=e(N,2),K=W[0],P=W[1];return b("div",{className:q.wrapper,children:[g("div",{className:q.inputWrapper,children:b("div",{className:q.searchInput,children:[g(c,{"data-testid":"".concat("AutoCompleteAssetSearch","_searchInput"),inputRef:z,autoFocus:!0,disableUnderline:!0,fullWidth:!0,value:R||"",placeholder:"Search ".concat(n(h,[w,"labelPlural"],"assets"),"..."),onChange:function(e){var t=e.target.value;j(t),B(1)},onKeyUp:function(t){var o=t.target.value,r=t.keyCode,i=x.find((function(t){var r=e(t,2);return r[0],r[1].autoCategorizedKey===o.trim().toLowerCase()}));if(i&&(13===r||32===r))return j(""),A(i[0]),void B(1);""===o&&8===r&&(A(null),B(1))}}),g(y,{title:"Clear",children:g(u,{className:w||R?q.selectedChipDeleteIcon:q.disabledIcon,onClick:function(){z.current.focus(),j(""),A(null),B(1)}})})]})}),w&&g(p,{"data-not-migrated-muichip":!0,classes:{root:q.selectedChip,deleteIcon:q.deleteIcon},color:"primary",label:n(h,[w,"labelPlural"],"Assets"),deleteIcon:g(u,{}),onDelete:function(){A(null),B(1)}}),!w&&!R&&g(d,{onClickAssetType:function(e){z.current.focus(),A(e),B(1)}}),(w||R)&&g(m,{loading:K,page:M,groupedAssets:P,onClickAsset:i,onScrollReached:function(e){"top"===e&&M>1&&B((function(e){return e-1})),"bottom"===e&&B((function(e){return e+1}))},isTablet:a,isMobile:s})]})};v.propTypes={company:r.number.isRequired,onClickAsset:r.func.isRequired,isTablet:r.bool.isRequired,isMobile:r.bool.isRequired};var I=i(v);export{I as default};
@@ -0,0 +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},frac_fleet:{name:"frac_fleet",labelSingular:"Frac Fleet",labelPlural:"Frac Fleets",autoCategorizedKey:"frac fleet",isAssetType:!0},drillout_unit:{name:"drillout_unit",labelSingular:"Drillout unit",labelPlural:"Drillout Units",autoCategorizedKey:"drillout unit",isAssetType:!0},api_number:{name:"api_number",labelSingular:"API#",labelPlural:"API#",isAssetType:!1}};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};
@@ -0,0 +1 @@
1
+ import r from"@babel/runtime/helpers/asyncToGenerator";import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/regenerator";import{useState as o,useEffect as n,useMemo as a}from"react";import i from"lodash/debounce";import u from"lodash/groupBy";import s from"lodash/every";import{fetchAllAssets as c}from"../../../../../../utils/apiCalls.js";var p=i((function(r){r()}),500);function l(i,l,m,f){var v=o([]),b=e(v,2),d=b[0],h=b[1],y=o(!1),w=e(y,2),C=w[0],x=w[1];n((function(){function e(){return(e=r(t.mark((function r(){var e;return t.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,c(l,m,f);case 3:e=r.sent,h(e),x(!1),r.next=12;break;case 8:r.prev=8,r.t0=r.catch(0),console.error(r.t0),x(!1);case 12:case"end":return r.stop()}}),r,null,[[0,8]])})))).apply(this,arguments)}x(!0),p((function(){return e.apply(this,arguments)}))}),[l,m,f]);var L=a((function(){var r=d.filter((function(r){var e;return(!l||r.type===l)&&(function(r,e){var t=e.split(" ");return s(t,(function(e){return r.toLowerCase().includes(e||"")}))}(r.name,(i||"").toLowerCase())||(null===(e=r.apiNumber)||void 0===e?void 0:e.toLowerCase().includes((i||"").toLowerCase())))}));return Object.entries(u(r,"type"))}),[i,d,l]);return[C,L]}export{l as useAssetsData};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{useState as t,useEffect as r}from"react";import o from"prop-types";import{withStyles as i,Menu as n,MenuItem as s,Checkbox as p,ListItemText as m}from"@material-ui/core";import a from"@material-ui/icons/Settings";import{isEqual as l}from"lodash";import{jsxs as d,Fragment as c,jsx 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/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"../../../../../Modal/CorvaModal.js";import"uuid";import"../../../../../IconMenu/index.js";import"../../../../../StyledMenuItem/index.js";import"../../../../../ImagesGrid/index.js";import"../../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../../DevCenter/SideBar/SideBar.js";import"../../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../../DevCenter/AppContext.js";import"../../../../../AssetEditor/index.js";import"../../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../../Typography.js";import"../../../../../CollapsableSidebar.js";import"../../../../../DateTimePicker/index.js";import"../../../../../DatePicker/index.js";import"../../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../../Annotations/components/AnnotationsList/index.js";import"../../../../../Annotations/components/LastAnnotation/index.js";import"../../../../../Annotations/AnnotationsContext.js";import"../../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";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/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"../../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../../TruncatedText/index.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 C from"../../../../../IconButton/index.js";import"../../../../../TextField/index.js";import"../../../../../Chip/index.js";import"../../../../../Counter/index.js";import"../../../../../AnchorsList/AnchorsList.js";import"../../../../../Select/index.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/configuration/constants.js";import"../../../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"classnames";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"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../../../clients/jsonApi/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/notifications.js";import"../../../../../../constants/feed.js";import"../../../../../../constants/bha.js";import"../../../../../BICOffsetPickerDialog/index.js";import"../../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../index.js";import"../../../../../OffsetWellChips/Chip.js";import"../../../../../OffsetWellChips/ChipsContainer.js";import"../../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../../OffsetWellMap/OffsetWellMap.js";import"../../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";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"../../../../../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"../../../../../Table/TableToolbar/TableToolbar.js";import"../../../../../Table/TableContainer/TableContainer.js";import"../../../../../Table/TableCell/TableCell.js";import"../../../../../Tooltip/MuiTooltipDcWrapper.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"../../../../../HelpCenter/HelpCenterIcon.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{METRICS_LIST as u,MAX_METRICS_COUNT as A}from"../../constants.js";function g(o){var i=o.metricsKeys,g=o.onChange,D=o.classes,v=t([]),b=e(v,2),h=b[0],f=b[1],x=t(null),P=e(x,2),S=P[0],T=P[1];r((function(){f(i)}),[i]);return d(c,{children:[j(C,{tooltipProps:{title:"Add Metric"},size:"small",onClick:function(e){T(e.currentTarget)},children:j(a,{size:"small"})}),j(n,{id:"simple-menu",anchorEl:S,getContentAnchorEl:null,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},PaperProps:{style:{maxHeight:"300px",backgroundColor:"#414141"}},keepMounted:!0,open:Boolean(S),onClose:function(){T(null),l(h,i)||g(h)},children:u.map((function(e){return d(s,{disabled:h.length===A&&!h.includes(e.key),onClick:function(){return t=e.key,void(h.includes(t)?f((function(e){return e.filter((function(e){return e!==t}))})):f((function(e){return e.concat(t)})));var t},children:[j(p,{checked:h.includes(e.key),className:D.checkBox}),j(m,{primary:e.label,classes:{primary:D.listItemPrimaryText}})]},e.key)}))})]})}g.propTypes={metricsKeys:o.arrayOf(o.string).isRequired,onChange:o.func.isRequired,classes:o.shape({}).isRequired};var D=i({listItemPrimaryText:{color:"#fff",fontSize:"14px"},checkBox:{color:"grey",padding:"5px"}})(g);export{D as default};
@@ -0,0 +1 @@
1
+ import e from"prop-types";import{withStyles as r,FormControl as t,Select as o,MenuItem as a,ListItemText as i}from"@material-ui/core";import{jsx as s}from"react/jsx-runtime";function l(e){var r=e.items,l=e.currentValue,n=e.onChange,m=e.classes;return s(t,{className:m.formControl,children:s(o,{className:m.select,MenuProps:{classes:{paper:m.paper}},autoWidth:!0,value:l,onChange:function(e){return n(e.target.value)},children:r.map((function(e){return s(a,{value:e.key,children:s(i,{primary:e.label,classes:{root:m.listItem,primary:m.listItemPrimaryText}})},e.key)}))})})}l.propTypes={items:e.array.isRequired,currentValue:e.string.isRequired,onChange:e.func.isRequired,classes:e.shape({}).isRequired};var n=r({select:{"&:before":{borderBottom:0},"&:after":{borderBottom:0}},formControl:{width:"150px"},listItem:{padding:0},listItemPrimaryText:{color:"#fff",fontSize:"14px",overflow:"hidden",textOverflow:"ellipsis"},paper:{backgroundColor:"#414141",maxHeight:"300px"}})(l);export{n as default};
@@ -0,0 +1 @@
1
+ import{makeStyles as r}from"@material-ui/core";import{jsx as e}from"react/jsx-runtime";var t=r({subjectIndicator:{background:"#388e3c",borderRadius:"10px",padding:"4px",fontSize:"12px",marginLeft:"4px"}});function a(){var r=t();return e("div",{className:r.subjectIndicator,children:"Subject"})}export{a as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/toConsumableArray";import{AutoSizer as t,Table as i,Column as n}from"react-virtualized";import{SizeMe as l}from"react-sizeme";import{memo as o,useRef as s,useMemo as a}from"react";import{bool as c,shape as u,number as d,arrayOf as f,string as m,func as h}from"prop-types";import{isEqual as p,get as b,clone as y}from"lodash";import g from"moment";import v from"classnames";import{Typography as N,Checkbox as W,IconButton as k}from"@material-ui/core";import O from"@material-ui/icons/Sort";import j from"@material-ui/icons/NotInterested";import{getUnitDisplay as w,convertValue as C}from"../../../../../../utils/index.js";import R from"./SubjectIndicator.js";import q from"./MetricsAddMenu.js";import A from"./MetricsSelect.js";import{METRICS_LIST as M,TABLE_COLUMNS as D,SETTINGS_COLUMN as I,METRICS_KEYS as T}from"../../constants.js";import{useStyles as x}from"./styles.js";import P from"./AssetSearch.js";import{jsx as S,Fragment as K,jsxs as F}from"react/jsx-runtime";function L(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function z(r){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?L(Object(i),!0).forEach((function(t){e(r,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):L(Object(i)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))}))}return r}function _(e,r){var t,i=b(e,r);switch(r){case"distance":t=Number.isFinite(i)?parseFloat(i).toFixed(2):"N/A";break;case"rigReleaseDate":t=Number.isFinite(i)?g.unix(i).format("MM/DD/YYYY"):"N/A";break;default:t=i||""}return t}function B(l){var o=l.open,c=l.subjectWell,u=l.wells,d=l.offsetWells,f=l.metricsKeys,m=l.isMetricsLoading,h=l.sortInfo,g=l.unusableWellAlarm,L=l.dialogWidth,B=l.onChangeMetricsKeys,E=l.onAddOffsetWell,Y=l.onDeleteOffsetWell,H=l.onAddAllOffsetWells,G=l.onDeleteAllOffsetWells,V=l.onSorting,J=l.isTablet,Q=l.isMobile,U=l.companyId,X=x({isTablet:J,isMobile:Q}),Z=s(),$=a((function(){return u.filter((function(e){return e.is_usable}))}),[u]),ee=a((function(){var e=$.map((function(e){return e.id})).sort(),r=d.map((function(e){return e.id})).sort();return e.length&&p(e,r)}),[$,d]),re=a((function(){return f.reduce((function(e,r){return e.concat(M.filter((function(e){return e.key===r})))}),[])}),[f]),te=a((function(){return[].concat(r(D),r(re.map((function(e){return z(z({},e),{},{width:240})}))),[I])}),[re]),ie=a((function(){if(!L||L<=0)return{};var e={},r=[];return te.filter((function(e){return Number.isFinite(e.width)})).forEach((function(t){e[t.key]=t.width-1,r.push(t.width-1)})),te.filter((function(e){return!Number.isFinite(e.width)})).forEach((function(t){var i=r.reduce((function(e,r){return e+r}),0),n=Math.floor((L-i)/(te.length-r.length)),l=t.minWidth||200,o=n<l?l:n;e[t.key]=o-1,r.push(o-1)})),e}),[L,te]),ne=a((function(){var e;return(null===(e=Z.current)||void 0===e?void 0:e.clientWidth)>1004&&o?Z.current.clientWidth:1004}),[ie,Z.current,o]),le=function(e){B(e)},oe=function(e){e.target.checked?H():G()},se=function(r){return S(k,{"data-not-migrated-muiiconbutton":!0,className:X.sortIconButton,onClick:function(){return function(e){V(e)}(r)},children:r!==h.key?S(j,{className:X.sortIcon}):S(O,{className:v(X.sortIcon,e({},X.ascendingSortIcon,1===h.direction))})})},ae=function(e){var r,t=e.label,i=e.dataKey;if("name"===i)return F("div",{className:X.nameWrapper,children:[S(W,{classes:{checked:X.nameCheckBox,indeterminate:X.nameCheckBox},onClick:oe,checked:ee,indeterminate:d.length>0&&!ee,size:"small"}),S(N,{className:v(X.cell,X.nameCell),children:t}),se(i)]});if(f.includes(i)){var n=re.find((function(e){return e.key===i})),l=re.findIndex((function(e){return e.key===i}));return F("div",{className:X.metricsColumn,children:[S(A,{items:M,currentValue:i,onChange:(r=l,function(e){var t=y(f);t[r]=e,B(t)})}),S(N,{className:v(X.cell,X.unitCell),children:n.unitType?"(".concat(w(n.unitType,n.to),")"):""}),se(i)]})}return i===I.key?S("div",{className:X.settingsCell,children:S(q,{metricsKeys:f,onChange:le})}):F("div",{className:X.nameWrapper,children:[S(N,{className:X.cell,children:t}),se(i)]})},ce=function(r){var t=r.rowData,i=r.dataKey;if("name"===i)return F("div",{className:X.nameWrapper,children:[S(W,{color:"primary",checked:d.findIndex((function(e){return e.id===t.id}))>-1,onChange:function(e){return r=t.id,void(e.target.checked?E(r):Y(r));var r},size:"small",disabled:!t.is_usable}),S(N,{className:v(X.tableCellLabel,e({},X.tableCellLabelDisabled,!t.is_usable)),children:_(t,i)}),c&&t.id===c.id&&S(R,{})]});if(i===I.key)return S("div",{className:X.settingsCell,children:!t.is_usable&&S(N,{className:X.errorMsg,children:g})});var n=null;if(f.includes(i)){var l=re.find((function(e){return e.key===i}));n=function(e,r,t){var i=b(e,r.key);if(T.includes(r.key)){if(Number.isFinite(i)||i)return r.unitType?C(i,r.unitType,r.from,r.to):i;if(t)return"loading..."}return""}(t,l,m)}else n=_(t,i);return S(N,{className:v(X.cell,X.tableCellLabel,e({},X.tableCellLabelDisabled,!t.is_usable)),children:n})},ue=a((function(){return Math.min(48*u.length+44+52,2e3)}),[u]);return S(K,{children:F("div",{className:X.tableContainer,style:{height:ue},children:[F("div",{className:X.titleWrapper,children:[F(N,{variant:"body2",className:X.tableTitle,children:["Well Names (",d.length,")"]}),S("div",{className:X.addWellInput,children:S(P,{company:U,onClickAsset:function(e){E(e)},isTablet:J,isMobile:Q})})]}),S("div",{className:X.tableTopBorder,ref:Z,style:{width:!J&&Q&&ne}}),S(t,{children:function(){return S(i,{width:ne,height:ue,headerHeight:44,rowHeight:48,rowCount:u.length,rowGetter:function(e){var r=e.index;return u[r]},className:X.table,children:te.map((function(e){return S(n,{width:ie[e.key]||200,dataKey:e.key,label:e.label,headerRenderer:ae,cellRenderer:ce},e.key)}))})}})]})})}B.propTypes={open:c.isRequired,subjectWell:u({id:d}),wells:f(u({})).isRequired,offsetWells:f(u({})).isRequired,metricsKeys:f(m).isRequired,isMetricsLoading:c.isRequired,sortInfo:u({key:m.isRequired,direction:d.isRequired}).isRequired,onChangeMetricsKeys:h.isRequired,onAddOffsetWell:h.isRequired,onDeleteOffsetWell:h.isRequired,onAddAllOffsetWells:h.isRequired,onDeleteAllOffsetWells:h.isRequired,onSorting:h.isRequired,unusableWellAlarm:m.isRequired,dialogWidth:d,isMobile:c.isRequired,isTablet:c.isRequired,companyId:d.isRequired},B.defaultProps={subjectWell:null,dialogWidth:0};var E=o((function(e){return S(l,{monitorWidth:!0,children:function(r){var t=r.size;return S(B,z({dialogWidth:t.width},e))}})}));export{E as default};
@@ -0,0 +1 @@
1
+ import{makeStyles as e}from"@material-ui/core";var t=e((function(e){return{tableContainer:{marginTop:"22px",overflowX:"auto",overflowY:"hidden",position:"relative",minHeight:"150px"},titleWrapper:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"15px",position:"sticky",left:0},tableTitle:{fontSize:"18px",fontWeight:400,lineHeight:"24px",color:e.palette.primary.text1},addWellInput:{width:function(e){var t=e.isTablet;return e.isMobile&&!t?"153px":"260px"}},tableTopBorder:{borderTop:"1px solid rgba(81, 81, 81, 1)"},table:{"& .ReactVirtualized__Table__headerRow":{textTransform:"none",borderBottom:e.isLightTheme?"1px solid rgba(224, 224, 224, 1)":"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__row":{borderBottom:e.isLightTheme?"1px solid rgba(224, 224, 224, 1)":"1px solid rgba(81, 81, 81, 1)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.03)"}},"& .ReactVirtualized__Table__Grid":{outline:"none"},"& .ReactVirtualized__Table__headerColumn":{outline:"none"}},cell:{color:"rgba(255, 255, 255, 0.54)",padding:"5px 10px",fontSize:"12px",whiteSpace:"nowrap"},nameWrapper:{display:"flex",alignItems:"center"},nameCell:{padding:0},unitCell:{padding:0},settingsCell:{textAlign:"right"},sortIconButton:{padding:"8px","&:hover $sortIcon":{color:"#fff"}},ascendingSortIcon:{transform:"scaleY(-1)"},sortIcon:{fontSize:"14px",color:"#BDBDBD"},metricsColumn:{display:"flex",alignItems:"center"},tableCellLabel:{fontSize:"0.90rem",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",color:"#fff"},tableCellLabelDisabled:{color:"#C4C4C4"},errorMsg:{color:"#C4C4C4",fontStyle:"italic",fontSize:"14px",padding:"0 16px",whiteSpace:"nowrap"}}}));export{t as useStyles};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import{sortBy as t}from"lodash";import"../../../../utils/index.js";import*as r from"../../../../utils/metrics/metricsConfig.js";var i=r,n={formation:"formation",stringDesign:"stringDesign",program:"programName",basin:"basin",county:"county",area:"area",status:"status"},a=[{key:n.status,title:"Status",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Status")}},{key:n.program,title:"Program/BU",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Programs/BUs")}},{key:n.basin,title:"Basin",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Basins")}},{key:n.county,title:"County",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Counties")}},{key:n.area,title:"Area",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Areas")}},{key:n.formation,title:"Target Formation",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Formations")}},{key:n.stringDesign,title:"String Design",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Designs")}}],o=t([i.weight_to_weight_average,i.bottom_to_slips_average,i.drilling_connection_average,i.slips_to_bottom_average,i.hole_depth,i.hole_depth_change,i.drilled_feet_rotary,i.drilled_feet_slide,i.rop_gross,i.rop,i.rop_rotary,i.rop_slide,i.drilled_feet_rotary_percentage,i.drilled_feet_slide_percentage,i.on_bottom_percentage,i.on_bottom_time,i.cost_per_ft,i.cost_per_lat_ft,i.feet_per_day,i.tripping_in_speed_cased,i.tripping_in_speed_open,i.tripping_in_speed,i.tripping_out_speed_cased,i.tripping_out_speed_open,i.tripping_out_speed].concat(e("production"!==process.env.REACT_APP_ENVIRONMENT?[i.npt,i.circulating_time,i.spud_to_rig_release_time,i.spud_to_total_depth_time]:[])),"label"),s=o.map((function(e){return e.key})),l=[{label:"Well Name",key:"name",minWidth:250},{label:"Rig",key:"rigName",width:200},{label:"Distance",key:"distance",width:120},{label:"Rig Release Date",key:"rigReleaseDate",width:150}],_={key:"settings",label:"settings",width:100},p=2,c=["#FF00FF","#F5BD80","#FF0000","#0080FF","#FF8000","#58ACFA","#FA58F4","#40FF00","#4B8A08","#40FF00","#D8F781"],u={radius:5,filters:{},sortInfo:{key:"name",direction:1}};export{u as DEFAULT_SETTINGS,n as FILTERS,a as FILTERS_LIST,c as FORMATION_COLORS,p as MAX_METRICS_COUNT,s as METRICS_KEYS,o as METRICS_LIST,_ as SETTINGS_COLUMN,l as TABLE_COLUMNS};
@@ -0,0 +1 @@
1
+ import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useState as t,useEffect as n}from"react";import{sortBy as o,uniqBy as c}from"lodash";import{FILTERS as u}from"../constants.js";function i(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var l=Object.values(u);function p(u,i){var p=t({}),a=e(p,2),s=a[0],b=a[1];return n((function(){i&&b(l.reduce((function(e,t){return f(f({},e),{},r({},t,function(r,e,t,n){var u=e.reduce((function(r,e){return r.filter((function(r){return!t[e]||0===t[e].length||t[e].includes(r[e])}))}),n),i=o(c(u.map((function(e){return e[r]}))));return i.includes("Null")?i.filter((function(r){return"Null"!==r})).concat("Null"):i}(t,l.filter((function(r){return r!==t})),u,i)))}),{}))}),[u,i]),s}export{p as default};
@@ -0,0 +1 @@
1
+ import t from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/regenerator";import{useRef as o,useEffect as i,useState as s}from"react";import{get as a}from"lodash";import{mapbox as c}from"../../../../../utils/index.js";import{BENCHMARK_METRIC_GOAL as u}from"../../../../../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/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../GradientManager/configuration/constants.js";import{fetchCompanyGoals as f,fetchWells as l,fetchMetricsData as p}from"../../../utils/apiCalls.js";import{FILTERS as m,METRICS_KEYS as h}from"../constants.js";export{default as useBidirectionalFiltering}from"./biDirectionalFiltering.js";import{getCompanyGoalSetting as v}from"../../../../../utils/goals.js";function d(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),r.push.apply(r,e)}return r}function b(n){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?d(Object(e),!0).forEach((function(r){t(n,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var j=c.getAssetV2Coordinates,y=c.getDistanceByCoordinates;function g(t){var n=o();return i((function(){n.current=t})),n.current}function O(t){var o=s(null),a=r(o,2),c=a[0],l=a[1];return i((function(){function r(){return(r=n(e.mark((function n(){var r,o;return e.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,f(t);case 2:r=n.sent,o=v(r,u),l(o);case 5:case"end":return n.stop()}}),n)})))).apply(this,arguments)}l(null),function(){r.apply(this,arguments)}()}),[t]),c}function w(t,o){var a=s(null),c=r(a,2),u=c[0],f=c[1];return i((function(){function r(){return(r=n(e.mark((function n(){var r;return e.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t){n.next=6;break}return n.next=3,l(t,o);case 3:n.t0=n.sent,n.next=7;break;case 6:n.t0=null;case 7:r=n.t0,f(r);case 9:case"end":return n.stop()}}),n)})))).apply(this,arguments)}f(null),function(){r.apply(this,arguments)}()}),[t]),u}function x(t,n,e){var o=s(null),a=r(o,2),c=a[0],u=a[1],f=/\sST0/g;return i((function(){if(e){var r=Object.values(m).reduce((function(n,r){return n.filter((function(n){return e=n[r],!(o=t[r])||0===o.length||o.includes(e);var e,o}))}),e).filter((function(t){return n&&!t.name.match(f)||!n}));u(r)}else u(null)}),[e,t,n]),c}function E(t,n){var e=s(null),o=r(e,2),a=o[0],c=o[1];return i((function(){if(t){var r=n&&j(n,"topHole");if(r){var e=[];t.forEach((function(t){var n=j(t,"topHole");if(n){var o=parseFloat(y(r,n));e.push(b(b({},t),{},{distance:o}))}else e.push(t)})),c(e)}else c(t)}else c(t)}),[t,n]),a}function P(t,n,e){var o=s(null),a=r(o,2),c=a[0],u=a[1];return i((function(){if(n){var t=[];n.forEach((function(n){e.includes(n.id)&&n.is_usable&&t.push(n)})),u(t)}else u(null)}),[t,n,e]),c}function k(t,c){var u=o({}),f=s(!0),l=r(f,2),m=l[0],v=l[1],d=s(null),j=r(d,2),y=j[0],g=j[1];return i((function(){function r(){return(r=n(e.mark((function n(r){var o,i,s;return e.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,p(t,r);case 2:o=n.sent,i={},r.forEach((function(t){var n={},r=o.filter((function(n){return a(n,"asset_id")===t}));h.forEach((function(t){var e=r.find((function(n){return a(n,"data.key")===t})),o=a(e,"data.value");n[t]=Number.isFinite(o)?parseFloat(o).toFixed(2):null})),i[t]=n})),u.current=b(b({},u.current),i),s=[],c.forEach((function(t){s.push(b(b({},t),u.current[t.id]))})),v(!1),g(s);case 10:case"end":return n.stop()}}),n)})))).apply(this,arguments)}if(c)if(0!==c.length){var o=[];c.forEach((function(t){u.current[t.id]||o.push(t.id)})),v(!0),function(t){r.apply(this,arguments)}(o)}else g([]);else g(null)}),[c]),[m,y]}function D(t,n,r){var e=o(!1);i((function(){if(n){if(e.current){var o=[];n.forEach((function(n){n.distance<=t&&o.push(n.id)})),r(o)}e.current=!0}}),[t,n])}export{O as useCompanyMetricKey,x as useFilteredWells,k as useMetricsData,P as useOffsetWells,g as usePrevious,D as useRadiusWells,w as useWells,E as useWellsWithCoords};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{memo as r,useMemo as i,useState as o,useRef as n,useEffect as s,useCallback as p}from"react";import{bool as a,number as m,shape as l,func as d,string as c}from"prop-types";import u from"classnames";import{get as j,orderBy as C,uniq as f}from"lodash";import{makeStyles as b}from"@material-ui/core";import{jsx as A,jsxs as g,Fragment as D}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.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"../../../Modal/CorvaModal.js";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../ImagesGrid/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import v from"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";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/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"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.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"../../../IconButton/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import"../../../Select/index.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/configuration/constants.js";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"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/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/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";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"../../../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"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/MuiTooltipDcWrapper.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"../../../HelpCenter/HelpCenterIcon.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 S from"./components/Filter/index.js";import P from"./components/Map/index.js";import x from"./components/Table/index.js";import{useWells as I,useCompanyMetricKey as h,useFilteredWells as T,useWellsWithCoords as y,useRadiusWells as W,useOffsetWells as E,useMetricsData as O}from"./effects/index.js";import{DEFAULT_SETTINGS as B}from"./constants.js";import F from"./effects/biDirectionalFiltering.js";function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function M(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?k(Object(i),!0).forEach((function(r){e(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var L=b({customSelectionContainer:{overflow:"auto","&::-webkit-scrollbar-corner":{background:"rgba(0, 0, 0, 0)"}},containerHidden:{display:"none"},loadingWrapper:{display:"flex",alignItems:"center",height:"550px"}});function w(r){var a=r.open,m=r.defaultSubjectWellId,l=r.companyId,d=r.userSettings,c=r.currentUser,b=r.addWellsUsabilityInfo,k=r.unusableWellAlarm,w=r.mapHidden,H=r.filtersHidden,R=r.setSelectedOffsetWells,V=r.setFilterChanged,G=r.onSave,q=r.isMobile,U=r.isTablet,N=r.onToggleFilters,Z=r.isClearFilters,z=r.setIsClearFilters,K=L(),_=i((function(){return l||j(d,"companyId")||+j(c,"company_id")}),[d]),J=i((function(){return j(d,"subjectWellId")||m}),[d]),Q=o(j(d,"filters")||B.filters),X=t(Q,2),Y=X[0],$=X[1],ee=o(j(d,"radius")||B.radius),te=t(ee,2),re=te[0],ie=te[1],oe=o(j(d,"excludeSideTrack")),ne=t(oe,2),se=ne[0],pe=ne[1],ae=o([]),me=t(ae,2),le=me[0],de=me[1],ce=o(B.sortInfo),ue=t(ce,2),je=ue[0],Ce=ue[1],fe=o([]),be=t(fe,2),Ae=be[0],ge=be[1],De=n();s((function(){a&&De.current&&De.current.scrollTo({top:0})}),[a]),s((function(){ge(j(d,"customWellIds")||[])}),[d]);var ve=i((function(){return!!J}),[J]),Se=I(_,b),Pe=h(_);s((function(){de((function(e){return Pe?[Pe]:e}))}),[Pe]);var xe=F(Y,Se),Ie=T(Y,se,Se),he=i((function(){return Se&&J?Se.find((function(e){return e.id===J})):null}),[Se,J]),Te=y(Ie,he);W(re,Te,ge);var ye=E(re,Se,Ae);s((function(){ye&&a&&R(ye)}),[ye,a]);var We=O(_,Te),Ee=t(We,2),Oe=Ee[0],Be=Ee[1];s((function(){V(!0)}),[Y,re,se,Ae,J,je]);var Fe=i((function(){return Be?C(Be,je.key,1===je.direction?"asc":"desc"):Be}),[je,Be]),ke=p((function(e){var t=Ie.find((function(t){return t.id===e}));t&&t.is_usable&&ge(f(Ae.concat(e)))}),[Ae,Ie]),Me=p((function(e){ge(f(Ae.filter((function(t){return t!==e}))))}),[Ae]),Le=p((function(){ge(Ie.filter((function(e){return e.is_usable})).map((function(e){return e.id})))}),[Ie]),we=p((function(){ge([])}),[Ie]),He=p((function(e){ie(e)}),[]),Re=p((function(e){pe(e)}),[]),Ve=p((function(t,r){$((function(i){return M(M({},i),{},e({},t,r))})),ge([])}),[]),Ge=p((function(){$(M({},B.filters)),ie(B.radius),pe(!1),ge([])}),[]);s((function(){Z&&(Ge(),z(!1))}),[Z]);var qe=p((function(e){de(e)}),[]),Ue=p((function(e){Ce((function(t){return t.key===e?M(M({},t),{},{direction:-1*t.direction}):{key:e,direction:1}}))}),[]);s((function(){G({subjectWellId:J,radius:re,excludeSideTrack:se,filters:Y})}),[J,re,se,Y]);var Ne=!(Se&&Ie&&Te&&Be&&ye&&Fe);return A("div",{className:u(K.customSelectionContainer,e({},K.containerHidden,!a)),ref:De,children:Ne?A("div",{className:K.loadingWrapper,children:A(v,{fullscreen:!1})}):g(D,{children:[A(S,{radius:re,excludeSideTrack:se||!1,filters:Y,filtersOptions:xe,isRadiusEditable:ve,filtersHidden:H,onChangeRadius:He,onChangeSidetrack:Re,onChangeFilters:Ve,onClearFilters:Ge,isTablet:U,isMobile:q,onToggleFilters:N}),A(P,{open:a,subjectWell:he,wells:Ie,offsetWells:ye,radius:re,mapHidden:w,isMobile:q,onAddOffsetWell:ke,onDeleteOffsetWell:Me}),A(x,{open:a,subjectWell:he,wells:Fe,offsetWells:ye,metricsKeys:le,sortInfo:je,isMetricsLoading:Oe,unusableWellAlarm:k,onChangeMetricsKeys:qe,onSorting:Ue,onAddOffsetWell:ke,onDeleteOffsetWell:Me,onAddAllOffsetWells:Le,onDeleteAllOffsetWells:we,isMobile:q,isTablet:U,companyId:l})]})})}w.propTypes={open:a.isRequired,defaultSubjectWellId:m,companyId:m,userSettings:l({}).isRequired,currentUser:l({}).isRequired,addWellsUsabilityInfo:d,unusableWellAlarm:c,mapHidden:a.isRequired,filtersHidden:a.isRequired,setSelectedOffsetWells:d.isRequired,setFilterChanged:d.isRequired,onSave:d.isRequired,isMobile:a.isRequired,isTablet:a.isRequired,onToggleFilters:d.isRequired,isClearFilters:a.isRequired,setIsClearFilters:d.isRequired},w.defaultProps={defaultSubjectWellId:null,companyId:null,addWellsUsabilityInfo:null,unusableWellAlarm:"Unable to add"};var H=r(w);export{H as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/toConsumableArray";import r from"@babel/runtime/helpers/typeof";import i from"@babel/runtime/helpers/slicedToArray";import{memo as o,useState as n,useCallback as s,useEffect as p,useMemo as a}from"react";import m from"prop-types";import l from"classnames";import{union as d,get as c}from"lodash";import{makeStyles as j,Table as u}from"@material-ui/core";import{jsx as C,jsxs as f}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.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"../../../Modal/CorvaModal.js";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../ImagesGrid/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import b from"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"slate";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/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"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.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"../../../IconButton/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import"../../../Select/index.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/configuration/constants.js";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"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/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/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"../../../Notifications/Notifications.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"../../../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"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/MuiTooltipDcWrapper.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"../../../HelpCenter/HelpCenterIcon.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{useWells as v,useFetchBicWellsData as A}from"../../effects/index.js";import{ALL_KEY as g,FILTER_BASEDON_TYPE as D,WELL_NAME_KEY as h,DEFAULT_WELL_SECTIONS as P}from"../../constants.js";import S from"../shared/OffsetWellTableHead.js";import x from"../shared/OffsetWellTableRows.js";function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function y(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?T(Object(i),!0).forEach((function(r){e(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var I=j({offsetwellContainer:{position:"relative",flex:1,overflow:"auto","&::-webkit-scrollbar-corner":{background:"rgba(0, 0, 0, 0)"},display:"inline-block"},containerHidden:{display:"none"},loadingWrapper:{display:"flex",alignItems:"center",height:"550px"}});function B(o){var m=o.open,j=o.companyId,T=o.subjectWellId,B=o.filterBasedOn,E=o.setSectionOptions,O=o.selectedSection,W=o.setSelectedOffsetWells,w=o.isTablet,M=o.isMobile,k=I({isTablet:w,isMobile:M}),F=v(j),L=A(T),V=n([]),R=i(V,2),H=R[0],G=R[1],q=s((function(e){return"well"===e.name?"Entire Well":"section"===e.filterMode?"".concat(e.name):"".concat(e.name," in")}),[]);p((function(){if(F){var e,t=function(e,t){var r=e.find((function(e){return e.id===t}));return c(r,h)||"-"};if(L&&L.filters&&L.result){var i,o,n=(null==L||null===(i=L.filters)||void 0===i?void 0:i.filterTabs)||[],s=null==L||null===(o=L.filters)||void 0===o?void 0:o.filterMode;e=n.map((function(e){var i;return{id:e.value,name:e.value,filterMode:s,wells:(null===(i=L.result[e.value])||void 0===i?void 0:i.filter((function(e){return F.find((function(t){return t.id===e}))})).map((function(e){var i="object"===r(e)?e.id:e;return{id:i,name:t(F,i)}})))||[]}}))}else e=P;G(e);var p=[{id:g,name:"All"}];e.forEach((function(e){p.push({id:e.id,name:q(e)})})),E(p)}}),[F,L]);var N=a((function(){var r=H.reduce((function(e,t){return d(e,t.wells)}),[]).reduce((function(e,r){return e.find((function(e){return e.id===r.id}))?e:[].concat(t(e),[{id:r.id,name:r.name}])}),[]),i=[],o=H.filter((function(e){return O===g||O===e.id}));B===D.entireWell?i.push({id:"All Wells",numeric:!0,label:"All Wells (".concat(r.length,")")}):o.forEach((function(e){i.push({id:e.name,numeric:!0,label:"".concat(q(e)," (").concat(e.wells.length,")")})}));var n=[];return r.forEach((function(t){var r=i.reduce((function(r,i){return B===D.entireWell||o.find((function(e){return e.name===i.id})).wells.find((function(e){return t.name===e.name}))?y(y({},r),{},e({},i.id,1)):O===g?y(y({},r),{},e({},i.id,0)):null}),{id:t.id,name:t.name});r&&n.push(r)})),i.unshift({id:h,numeric:!1,label:"Well Names (".concat(n.length,")")}),[i,n]}),[H,O]),U=i(N,2),z=U[0],Z=U[1];p((function(){if(m){var e=Z.map((function(e){return{id:e.id}}));W(e)}}),[m,Z]);var K=n("asc"),J=i(K,2),Q=J[0],X=J[1],Y=n(h),$=i(Y,2),_=$[0],ee=$[1],te=!F;return C("div",{className:l(k.offsetwellContainer,e({},k.containerHidden,!m)),children:te?C("div",{className:k.loadingWrapper,children:C(b,{fullscreen:!1})}):f(u,{size:"small",style:{borderCollapse:"separate"},children:[C(S,{headCells:z,order:Q,orderBy:_,onRequestSort:function(e,t){X(_===t&&"asc"===Q?"desc":"asc"),ee(t)},isTablet:w,isMobile:M,rowNum:Z.length}),C(x,{rows:Z,headCells:z.slice(1),order:Q,orderBy:_,isTablet:w,isMobile:M})]})})}B.propTypes={open:m.bool.isRequired,companyId:m.number.isRequired,subjectWellId:m.number.isRequired,filterBasedOn:m.string.isRequired,setSectionOptions:m.func.isRequired,selectedSection:m.any.isRequired,setSelectedOffsetWells:m.func.isRequired,isTablet:m.bool.isRequired,isMobile:m.bool.isRequired};var E=o(B);export{E as default};
@@ -0,0 +1 @@
1
+ import{memo as e}from"react";import t from"prop-types";import{makeStyles as o}from"@material-ui/core";import{jsx as r,jsxs as i}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.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"../../../Modal/CorvaModal.js";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../ImagesGrid/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"lodash";import"slate";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/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"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.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 n from"../../../IconButton/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import"../../../Select/index.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/configuration/constants.js";import"../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"classnames";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"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/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/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";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"../../../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"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/MuiTooltipDcWrapper.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"../../../HelpCenter/HelpCenterIcon.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 s from'./../../../../ext-esm/@material-ui/icons/esm/Map.js';import p from'./../../../../ext-esm/@material-ui/icons/esm/UnfoldMore.js';import m from'./../../../../ext-esm/@material-ui/icons/esm/UnfoldLess.js';var a=o({iconButtonWrapper:{marginTop:5,width:"40px"},mapExpandIconGroup:{display:"flex",flexDirection:"column",height:"26px",width:"26px",alignItems:"center",justifyContent:"center"}}),l=function(e){var t=e.mapHidden,o=e.onToggleMap,l=e.isMobile,d=a();return r("div",{className:d.iconButtonWrapper,children:r(n,{size:"small",variant:"contained",tooltipProps:l?{title:""}:{title:t?"Expand Map":"Collapse Map"},onClick:function(){o()},children:i("div",{className:d.mapExpandIconGroup,children:[r(s,{fontSize:"inherit"}),r(t?p:m,{fontSize:"inherit"})]})})})};l.propTypes={mapHidden:t.bool.isRequired,onToggleMap:t.func.isRequired,isMobile:t.bool.isRequired};var d=e(l);export{d as default};
@@ -0,0 +1 @@
1
+ import{useMemo as e}from"react";import t from"prop-types";import{isEmpty as i,get as r}from"lodash";import o from"classnames";import{makeStyles as n,Typography as s,MenuItem as p,Tooltip as a,Chip as m}from"@material-ui/core";import{ToggleButtonGroup as l,ToggleButton as c}from"@material-ui/lab";import d from"@material-ui/icons/FilterList";import j from"@material-ui/icons/Sort";import u from"@material-ui/icons/Close";import{jsxs as C,jsx as b}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.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"../../../Modal/CorvaModal.js";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../ImagesGrid/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";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/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"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.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"../../../IconButton/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import g from"../../../Select/index.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/Edit";import"@material-ui/icons/Delete";import"../../../GradientManager/configuration/constants.js";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"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/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/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";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"../../../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"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/MuiTooltipDcWrapper.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"../../../HelpCenter/HelpCenterIcon.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{DATA_SOURCE_TYPE as f,SELECTION_TAB_TYPE as A,SELECTION_TABS_LABEL as x,FILTER_BASEDON_TYPE as v}from"../../constants.js";import S from"./ToggleMapButton.js";import{DEFAULT_SETTINGS as D}from"../CustomSelectionView/constants.js";var h=n((function(e){return{tabSelectionWrapper:{display:"flex",justifyContent:"space-between",paddingTop:"12px",flexDirection:function(e){var t=e.isTablet,i=e.isMobile;return!t&&i&&"column"},gap:function(e){var t=e.isTablet,i=e.isMobile;return!t&&i&&"12px"},marginBottom:function(e){var t=e.isMobile,i=e.isTablet;return t&&!i?"16px":"24px"}},toggleButton:{width:function(e){var t=e.isTablet,i=e.isMobile;return t?"160px":i?"100%":"215px"},padding:function(e){return e.isMobile&&"0px !important"}},toggleLabel:{marginTop:"2px"},wellSections:{fontSize:"12px",color:e.palette.primary.text6,marginRight:"16px"},actionWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-evenly"},customAction:{justifyContent:"space-between"},filterWrapper:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:function(e){var t=e.isMobile,i=e.isTablet;return t&&!i?"0px":"16px"},padding:"5px 8px",cursor:"pointer",color:e.palette.primary.text6,"&:hover":{background:e.palette.background.b7,boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.16)",borderRadius:"4px",color:e.palette.primary.text1}},filters:{fontSize:"13px",fontWeight:500,letterSpacing:"1px"},selectComponent:{maxWidth:240,minWidth:60},filterContainer:{display:"flex",alignItems:"center"},selectedChip:{background:"".concat(e.palette.background.b7," !important")},chipLabel:{color:"".concat(e.palette.primary.text6," !important")}}}));function T(t){var n=t.dataSource,T=t.filterBasedOn,P=t.selectedTab,I=t.setSelectedTab,y=t.sectionOptions,B=t.selectedSection,E=t.setSelectedSection,k=t.mapHidden,F=t.onToggleMap,M=t.filtersHidden,W=t.onToggleFilters,L=t.isTablet,R=t.isMobile,w=t.customFilters,O=t.setIsClearFilters,V=h({isTablet:L,isMobile:R}),H=e((function(){return n===f.offsetWellSelectionApp?[{key:A.bic,label:x.offsetWell},{key:A.custom,label:x.custom}]:[{key:A.bic,label:x.wellhub},{key:A.custom,label:x.custom}]}),[n]),q=e((function(){return i(w)?0:Object.keys(r(w,"filters")).length+(r(w,"excludeSideTrack")?1:0)+(r(w,"radius")!==D.radius?1:0)}),[w]);return C("div",{className:V.tabSelectionWrapper,children:[b(l,{value:P,onChange:function(e,t){t&&I(t)},size:"medium",exclusive:!0,children:H.map((function(e){var t=e.key,i=e.label;return b(c,{value:t,className:V.toggleButton,classes:{label:V.toggleLabel},children:i},"tab-selection-".concat(t))}))}),P===A.bic&&n===f.offsetWellSelectionApp&&T===v.wellSections&&C("div",{className:V.actionWrapper,children:[b(s,{className:V.wellSections,children:"Well Section:"}),b(g,{disableUnderline:!0,value:B,className:V.selectComponent,onChange:function(e){E(e.target.value)},FormControlProps:{variant:"standard"},children:y.map((function(e){return b(p,{value:e.id,children:e.name},e.id)}))})]}),P===A.custom&&C("div",{className:o(V.actionWrapper,V.customAction),children:[C("div",{className:V.filterContainer,children:[b(a,{title:M?"Expand Filters":"Collapse Filters",children:C("div",{className:V.filterWrapper,onClick:function(){W((function(e){return!e}))},children:[b(M||!L&&R?d:j,{}),b(s,{className:V.filters,children:"FILTERS"})]})}),!L&&R&&b(m,{classes:{root:V.selectedChip,labelSmall:V.chipLabel,deleteIcon:V.chipLabel},size:"small",label:q,deleteIcon:b(u,{}),onDelete:function(){return O(!0)}})]}),b(S,{mapHidden:k,onToggleMap:function(){F((function(e){return!e}))},isMobile:R})]})]})}T.propTypes={dataSource:t.string.isRequired,filterBasedOn:t.string.isRequired,selectedTab:t.string.isRequired,setSelectedTab:t.func.isRequired,sectionOptions:t.arrayOf(t.shape({})).isRequired,selectedSection:t.any.isRequired,setSelectedSection:t.func.isRequired,mapHidden:t.bool.isRequired,onToggleMap:t.func.isRequired,filtersHidden:t.bool.isRequired,onToggleFilters:t.func.isRequired,isTablet:t.bool.isRequired,isMobile:t.bool.isRequired,customFilters:t.shape({}).isRequired,setIsClearFilters:t.func.isRequired};export{T as default};