@corva/ui 3.32.0-2 → 3.32.0-4

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 (459) hide show
  1. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  2. package/cjs-bundle/components/AddComment/Popover.js.map +1 -1
  3. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  4. package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
  5. package/cjs-bundle/components/AdvancedSlider/Handle.js +1 -1
  6. package/cjs-bundle/components/AdvancedSlider/Handle.js.map +1 -1
  7. package/cjs-bundle/components/Attachment/index.js +1 -1
  8. package/cjs-bundle/components/Attachment/index.js.map +1 -1
  9. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  10. package/cjs-bundle/components/BICOffsetPickerDialog/index.js.map +1 -1
  11. package/cjs-bundle/components/Breadcrumbs/index.js +1 -1
  12. package/cjs-bundle/components/Button/components/LiveButton/index.js +1 -1
  13. package/cjs-bundle/components/Button/index.js +1 -1
  14. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  15. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  16. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  17. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  18. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  19. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  20. package/cjs-bundle/components/Chart/components/AxisDropdown.js +1 -1
  21. package/cjs-bundle/components/Chart/components/AxisDropdown.js.map +1 -1
  22. package/cjs-bundle/components/Chart/components/ChartSelect.js +1 -1
  23. package/cjs-bundle/components/Chart/components/ChartSelect.js.map +1 -1
  24. package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  25. package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js.map +1 -1
  26. package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  27. package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js.map +1 -1
  28. package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js +1 -1
  29. package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js.map +1 -1
  30. package/cjs-bundle/components/Chart/components/buttons/PanButton.js +1 -1
  31. package/cjs-bundle/components/Chart/components/buttons/PanButton.js.map +1 -1
  32. package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  33. package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js.map +1 -1
  34. package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js +1 -1
  35. package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js.map +1 -1
  36. package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  37. package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js.map +1 -1
  38. package/cjs-bundle/components/Chip/index.js +1 -1
  39. package/cjs-bundle/components/CollapsableSidebar.js +1 -1
  40. package/cjs-bundle/components/CollapsableSidebar.js.map +1 -1
  41. package/cjs-bundle/components/ColorPicker/ColorPicker.js +1 -1
  42. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  43. package/cjs-bundle/components/CopyToClipboard/CopyToClipboard.js +1 -1
  44. package/cjs-bundle/components/Counter/index.js +1 -1
  45. package/cjs-bundle/components/DatePicker/index.js +1 -1
  46. package/cjs-bundle/components/DateTimePicker/index.js +1 -1
  47. package/cjs-bundle/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
  48. package/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  49. package/cjs-bundle/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  50. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  51. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/utils.js.map +1 -1
  52. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  53. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  54. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  55. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  56. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
  57. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js.map +1 -1
  58. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
  59. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  60. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
  61. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js.map +1 -1
  62. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  63. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
  64. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  65. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
  66. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  67. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  68. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  69. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  70. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  71. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  72. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  73. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  74. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  75. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  76. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  77. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  78. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  79. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  80. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  81. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  82. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  83. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  84. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  85. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  86. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  87. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  88. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  89. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  90. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  91. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  92. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  93. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  94. package/cjs-bundle/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  95. package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
  96. package/cjs-bundle/components/FeedItem/FeedItem.js.map +1 -1
  97. package/cjs-bundle/components/FeedItem/components/FeedComments.js +1 -1
  98. package/cjs-bundle/components/FeedItem/components/FeedComments.js.map +1 -1
  99. package/cjs-bundle/components/FilesDropzone/FilesDropzone.js +1 -1
  100. package/cjs-bundle/components/FilesLoader/FilesLoader.js +1 -1
  101. package/cjs-bundle/components/FilesLoaderV2/FilesLoaderV2.js +1 -1
  102. package/cjs-bundle/components/Formula/CloseSuggestion.js +1 -1
  103. package/cjs-bundle/components/Formula/CloseSuggestion.js.map +1 -1
  104. package/cjs-bundle/components/Formula/Formula.js +1 -1
  105. package/cjs-bundle/components/GradientManager/GradientManager.js +1 -1
  106. package/cjs-bundle/components/GradientManager/GradientSelect.js +1 -1
  107. package/cjs-bundle/components/GradientPicker/GradientPicker.js +1 -1
  108. package/cjs-bundle/components/HelpCenter/HelpCenterIcon.js +1 -1
  109. package/cjs-bundle/components/HelpCenter/HelpCenterIcon.js.map +1 -1
  110. package/cjs-bundle/components/Hint/Hint.js +1 -1
  111. package/cjs-bundle/components/ImageViewer/index.js +1 -1
  112. package/cjs-bundle/components/ImageViewer/index.js.map +1 -1
  113. package/cjs-bundle/components/Modal/CorvaModal.js +1 -1
  114. package/cjs-bundle/components/Notifications/Toast.js +1 -1
  115. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  116. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  117. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  118. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  119. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  120. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  121. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  122. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  123. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  124. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  125. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  126. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  127. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  128. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  129. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  130. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  131. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  132. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  133. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  134. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js.map +1 -1
  135. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  136. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js.map +1 -1
  137. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  138. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
  139. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  140. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js.map +1 -1
  141. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  142. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js.map +1 -1
  143. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
  144. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js.map +1 -1
  145. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  146. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js.map +1 -1
  147. package/cjs-bundle/components/PadModeSelect/FracModeLabel.js +1 -1
  148. package/cjs-bundle/components/PadModeSelect/PadModeSelect.js +1 -1
  149. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  150. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  151. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  152. package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js +1 -1
  153. package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js.map +1 -1
  154. package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js +1 -1
  155. package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js.map +1 -1
  156. package/cjs-bundle/components/Popover/Popover.js +1 -1
  157. package/cjs-bundle/components/Popper/Popper.js +1 -1
  158. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  159. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  160. package/cjs-bundle/components/Search/Search.js +1 -1
  161. package/cjs-bundle/components/Search/components/Groups.js +1 -1
  162. package/cjs-bundle/components/Select/SelectFilterBy.js +1 -1
  163. package/cjs-bundle/components/SettingEditors/ColorEditor/index.js +1 -1
  164. package/cjs-bundle/components/Stepper/Step/Step.js +1 -1
  165. package/cjs-bundle/components/Table/TableCell/TableCell.js +1 -1
  166. package/cjs-bundle/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
  167. package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  168. package/cjs-bundle/components/Toaster/Toaster.js +1 -1
  169. package/cjs-bundle/componentsV2/Accordion/Accordion.js +1 -1
  170. package/cjs-bundle/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
  171. package/cjs-bundle/componentsV2/AppDqPopover/DqAsset/DqAsset.js +1 -1
  172. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js +1 -1
  173. package/cjs-bundle/componentsV2/AppFooter/Warning.js +1 -1
  174. package/cjs-bundle/componentsV2/AppHeader/AppAssets/utils.js +1 -1
  175. package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  176. package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  177. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js +1 -1
  178. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js +1 -1
  179. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetItem.js +1 -1
  180. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js +1 -1
  181. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.js +1 -1
  182. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js +1 -1
  183. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/constants.js +1 -1
  184. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/utils.js +2 -0
  185. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/utils.js.map +1 -0
  186. package/cjs-bundle/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js +1 -1
  187. package/cjs-bundle/componentsV2/AppHeader/V3/SettingsPopover/SettingsPopover.js +1 -1
  188. package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
  189. package/cjs-bundle/componentsV2/AppSettings/AppSettings.js +1 -1
  190. package/cjs-bundle/componentsV2/Autocomplete/Autocomplete.js +1 -1
  191. package/cjs-bundle/componentsV2/Breadcrumbs/Breadcrumbs.js +1 -1
  192. package/cjs-bundle/componentsV2/ButtonLive/ButtonLive.js +1 -1
  193. package/cjs-bundle/componentsV2/Chip/Chip.js +1 -1
  194. package/cjs-bundle/componentsV2/CopyToClipboard/CopyToClipboard.js +1 -1
  195. package/cjs-bundle/componentsV2/Counter/Counter.js +1 -1
  196. package/cjs-bundle/componentsV2/DatePicker/CalendarControls/CalendarControls.js +1 -1
  197. package/cjs-bundle/componentsV2/DatePicker/Input/Input.js +1 -1
  198. package/cjs-bundle/componentsV2/DragHandle/DragHandle.js +1 -1
  199. package/cjs-bundle/componentsV2/FilesDropzone/FilesDropzone.js +1 -1
  200. package/cjs-bundle/componentsV2/FilesLoader/FilesLoader.js +1 -1
  201. package/cjs-bundle/componentsV2/Menu/MenuItem/MenuItem.js +1 -1
  202. package/cjs-bundle/componentsV2/ModalWindow/ModalWindow.js +1 -1
  203. package/cjs-bundle/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
  204. package/cjs-bundle/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js +1 -1
  205. package/cjs-bundle/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js +1 -1
  206. package/cjs-bundle/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
  207. package/cjs-bundle/componentsV2/Stepper/Step/Step.js +1 -1
  208. package/cjs-bundle/componentsV2/TextInput/TextInput.js +1 -1
  209. package/cjs-bundle/componentsV2/WellArchivedMessage/WellArchivedMessage.js +1 -1
  210. package/cjs-bundle/config/theme/index.js +1 -1
  211. package/cjs-bundle/config/theme/index.js.map +1 -1
  212. package/cjs-bundle/icons/customIcons/icons/DrilloutUnit.js +1 -1
  213. package/cjs-bundle/icons/customIcons/icons/FracFleet.js +1 -1
  214. package/cjs-bundle/icons/customIcons/icons/InterventionUnit.js +2 -0
  215. package/cjs-bundle/icons/customIcons/icons/InterventionUnit.js.map +1 -0
  216. package/cjs-bundle/icons/index.js +1 -1
  217. package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  218. package/components/AddComment/Popover.js +1 -1
  219. package/components/AddComment/Popover.js.map +1 -1
  220. package/components/AddComment/components/Content.js +1 -1
  221. package/components/AddComment/components/Content.js.map +1 -1
  222. package/components/AdvancedSlider/Handle.js +1 -1
  223. package/components/AdvancedSlider/Handle.js.map +1 -1
  224. package/components/Attachment/index.js +1 -1
  225. package/components/Attachment/index.js.map +1 -1
  226. package/components/BICOffsetPickerDialog/index.js +1 -1
  227. package/components/BICOffsetPickerDialog/index.js.map +1 -1
  228. package/components/Breadcrumbs/index.js +1 -1
  229. package/components/Button/components/LiveButton/index.js +1 -1
  230. package/components/Button/index.js +1 -1
  231. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  232. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  233. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  234. package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  235. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  236. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  237. package/components/Chart/components/AxisDropdown.js +1 -1
  238. package/components/Chart/components/AxisDropdown.js.map +1 -1
  239. package/components/Chart/components/ChartSelect.js +1 -1
  240. package/components/Chart/components/ChartSelect.js.map +1 -1
  241. package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  242. package/components/Chart/components/buttons/ChartTypeButton.js.map +1 -1
  243. package/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  244. package/components/Chart/components/buttons/DragToZoomButton.js.map +1 -1
  245. package/components/Chart/components/buttons/HideAxesButton.js +1 -1
  246. package/components/Chart/components/buttons/HideAxesButton.js.map +1 -1
  247. package/components/Chart/components/buttons/PanButton.js +1 -1
  248. package/components/Chart/components/buttons/PanButton.js.map +1 -1
  249. package/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  250. package/components/Chart/components/buttons/ResetZoomButton.js.map +1 -1
  251. package/components/Chart/components/buttons/ZoomInButton.js +1 -1
  252. package/components/Chart/components/buttons/ZoomInButton.js.map +1 -1
  253. package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  254. package/components/Chart/components/buttons/ZoomOutButton.js.map +1 -1
  255. package/components/Chip/index.js +1 -1
  256. package/components/CollapsableSidebar.js +1 -1
  257. package/components/CollapsableSidebar.js.map +1 -1
  258. package/components/ColorPicker/ColorPicker.js +1 -1
  259. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  260. package/components/CopyToClipboard/CopyToClipboard.js +1 -1
  261. package/components/Counter/index.js +1 -1
  262. package/components/DatePicker/index.js +1 -1
  263. package/components/DateTimePicker/index.js +1 -1
  264. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
  265. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  266. package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  267. package/components/DevCenter/AppsDataProvider/effects/utils.d.ts.map +1 -1
  268. package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  269. package/components/DevCenter/AppsDataProvider/effects/utils.js.map +1 -1
  270. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  271. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  272. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  273. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  274. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
  275. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js.map +1 -1
  276. package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
  277. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  278. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
  279. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js.map +1 -1
  280. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  281. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
  282. package/components/DocumentViewer/DocumentViewer.js +1 -1
  283. package/components/DocumentViewer/DocumentViewer.js.map +1 -1
  284. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  285. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  286. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  287. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  288. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  289. package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  290. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  291. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  292. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  293. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  294. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  295. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  296. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  297. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  298. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  299. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  300. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  301. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  302. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  303. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  304. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  305. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  306. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  307. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  308. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  309. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  310. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  311. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  312. package/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  313. package/components/FeedItem/FeedItem.js +1 -1
  314. package/components/FeedItem/FeedItem.js.map +1 -1
  315. package/components/FeedItem/components/FeedComments.js +1 -1
  316. package/components/FeedItem/components/FeedComments.js.map +1 -1
  317. package/components/FilesDropzone/FilesDropzone.js +1 -1
  318. package/components/FilesLoader/FilesLoader.js +1 -1
  319. package/components/FilesLoaderV2/FilesLoaderV2.js +1 -1
  320. package/components/Formula/CloseSuggestion.js +1 -1
  321. package/components/Formula/CloseSuggestion.js.map +1 -1
  322. package/components/Formula/Formula.js +1 -1
  323. package/components/GradientManager/GradientManager.js +1 -1
  324. package/components/GradientManager/GradientSelect.js +1 -1
  325. package/components/GradientPicker/GradientPicker.js +1 -1
  326. package/components/HelpCenter/HelpCenterIcon.js +1 -1
  327. package/components/HelpCenter/HelpCenterIcon.js.map +1 -1
  328. package/components/Hint/Hint.js +1 -1
  329. package/components/ImageViewer/index.js +1 -1
  330. package/components/ImageViewer/index.js.map +1 -1
  331. package/components/Modal/CorvaModal.js +1 -1
  332. package/components/Notifications/Toast.js +1 -1
  333. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  334. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  335. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  336. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  337. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  338. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  339. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  340. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  341. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  342. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  343. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  344. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  345. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  346. package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  347. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  348. package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  349. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  350. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  351. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  352. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js.map +1 -1
  353. package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  354. package/components/OffsetWellPickerV4/components/Filter/Filter.js.map +1 -1
  355. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  356. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
  357. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  358. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js.map +1 -1
  359. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  360. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js.map +1 -1
  361. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
  362. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js.map +1 -1
  363. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  364. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js.map +1 -1
  365. package/components/PadModeSelect/FracModeLabel.js +1 -1
  366. package/components/PadModeSelect/PadModeSelect.js +1 -1
  367. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  368. package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  369. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  370. package/components/ParameterCharts/components/TraceHeader.js +1 -1
  371. package/components/ParameterCharts/components/TraceHeader.js.map +1 -1
  372. package/components/PinnableFilters/components/FiltersToggler.js +1 -1
  373. package/components/PinnableFilters/components/FiltersToggler.js.map +1 -1
  374. package/components/Popover/Popover.js +1 -1
  375. package/components/Popper/Popper.js +1 -1
  376. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  377. package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  378. package/components/Search/Search.js +1 -1
  379. package/components/Search/components/Groups.d.ts.map +1 -1
  380. package/components/Search/components/Groups.js +1 -1
  381. package/components/Select/SelectFilterBy.js +1 -1
  382. package/components/SettingEditors/ColorEditor/index.js +1 -1
  383. package/components/Stepper/Step/Step.js +1 -1
  384. package/components/Table/TableCell/TableCell.js +1 -1
  385. package/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
  386. package/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  387. package/components/Toaster/Toaster.js +1 -1
  388. package/componentsV2/Accordion/Accordion.js +1 -1
  389. package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
  390. package/componentsV2/AppDqPopover/DqAsset/DqAsset.js +1 -1
  391. package/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js +1 -1
  392. package/componentsV2/AppFooter/Warning.js +1 -1
  393. package/componentsV2/AppHeader/AppAssets/utils.js +1 -1
  394. package/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  395. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  396. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.d.ts.map +1 -1
  397. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js +1 -1
  398. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.d.ts +1 -1
  399. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.d.ts.map +1 -1
  400. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js +1 -1
  401. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetItem.d.ts +2 -1
  402. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetItem.d.ts.map +1 -1
  403. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetItem.js +1 -1
  404. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.d.ts +2 -1
  405. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.d.ts.map +1 -1
  406. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js +1 -1
  407. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.d.ts +2 -1
  408. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.d.ts.map +1 -1
  409. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.js +1 -1
  410. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js +1 -1
  411. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/constants.d.ts +1 -0
  412. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/constants.d.ts.map +1 -1
  413. package/componentsV2/AppHeader/V3/AssetSelector/constants.d.ts.map +1 -1
  414. package/componentsV2/AppHeader/V3/AssetSelector/constants.js +1 -1
  415. package/componentsV2/AppHeader/V3/AssetSelector/utils.d.ts +6 -0
  416. package/componentsV2/AppHeader/V3/AssetSelector/utils.d.ts.map +1 -0
  417. package/componentsV2/AppHeader/V3/AssetSelector/utils.js +2 -0
  418. package/componentsV2/AppHeader/V3/AssetSelector/utils.js.map +1 -0
  419. package/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js +1 -1
  420. package/componentsV2/AppHeader/V3/SettingsPopover/SettingsPopover.js +1 -1
  421. package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
  422. package/componentsV2/AppSettings/AppSettings.js +1 -1
  423. package/componentsV2/Autocomplete/Autocomplete.js +1 -1
  424. package/componentsV2/Breadcrumbs/Breadcrumbs.js +1 -1
  425. package/componentsV2/ButtonLive/ButtonLive.js +1 -1
  426. package/componentsV2/Chip/Chip.js +1 -1
  427. package/componentsV2/CopyToClipboard/CopyToClipboard.js +1 -1
  428. package/componentsV2/Counter/Counter.js +1 -1
  429. package/componentsV2/DatePicker/CalendarControls/CalendarControls.js +1 -1
  430. package/componentsV2/DatePicker/Input/Input.js +1 -1
  431. package/componentsV2/DragHandle/DragHandle.js +1 -1
  432. package/componentsV2/FilesDropzone/FilesDropzone.js +1 -1
  433. package/componentsV2/FilesLoader/FilesLoader.js +1 -1
  434. package/componentsV2/Menu/MenuItem/MenuItem.js +1 -1
  435. package/componentsV2/ModalWindow/ModalWindow.js +1 -1
  436. package/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
  437. package/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js +1 -1
  438. package/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js +1 -1
  439. package/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
  440. package/componentsV2/Stepper/Step/Step.js +1 -1
  441. package/componentsV2/TextInput/TextInput.js +1 -1
  442. package/componentsV2/WellArchivedMessage/WellArchivedMessage.js +1 -1
  443. package/config/theme/index.js +1 -1
  444. package/config/theme/index.js.map +1 -1
  445. package/icons/customIcons/icons/DrilloutUnit.js +1 -1
  446. package/icons/customIcons/icons/FracFleet.js +1 -1
  447. package/icons/customIcons/icons/InterventionUnit.d.ts +2 -0
  448. package/icons/customIcons/icons/InterventionUnit.d.ts.map +1 -0
  449. package/icons/customIcons/icons/InterventionUnit.js +2 -0
  450. package/icons/customIcons/icons/InterventionUnit.js.map +1 -0
  451. package/icons/customIcons/icons/index.d.ts +1 -0
  452. package/icons/customIcons/icons/index.d.ts.map +1 -1
  453. package/icons/index.js +1 -1
  454. package/package.json +1 -1
  455. package/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  456. package/types/shared/Common.d.ts +1 -0
  457. package/types/shared/Common.d.ts.map +1 -1
  458. package/types/shared/assets.d.ts +1 -0
  459. package/types/shared/assets.d.ts.map +1 -1
@@ -1,2 +1,2 @@
1
- import{__rest as o,__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as s}from"react/jsx-runtime";import c from"classnames";import{capitalize as t}from"lodash";import{makeStyles as n,Tooltip as e,Chip as r}from"@material-ui/core";import{CloseSmallIcon as m}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";var p=n((function(o){return{rootChip:{"&.MuiChip-root":{backgroundColor:o.palette.background.b9,color:o.palette.primary.text6,textAlign:"center","&:hover":{color:o.palette.primary.contrastText,"& .MuiSvgIcon-root":{color:o.palette.primary.contrastText}},"& span.MuiChip-label":{padding:0}}},tooltip:{marginTop:"10px"},closeIcon:{marginRight:"-2px !important",marginLeft:"2px !important",color:o.palette.primary.text6},sizeSmall:{"&.MuiChip-root":{minWidth:16,height:16,padding:"1px 2px","& span":{fontSize:"11px",lineHeight:"14px"}}},sizeSmallLimited:{"&.MuiChip-root":{padding:"1px 3px"}},sizeMedium:{"&.MuiChip-root":{minWidth:24,height:24,padding:"2px 4px","& span":{fontSize:"14px",lineHeight:"20px"}}},sizeMediumLimited:{"&.MuiChip-root":{padding:"2px 6px"}},sizeMediumClickable:{"&.MuiChip-root":{padding:"2px 6px"}},sizeLarge:{"&.MuiChip-root":{minWidth:32,height:32,padding:"5px 7px","& span":{fontSize:"16px",lineHeight:"22px"}}},sizeLargeLimited:{"&.MuiChip-root":{padding:"5px 8px"}},sizeLargeClickable:{"&.MuiChip-root":{padding:"5px 8px"}}}})),l=function(n){var l=n.classes,a=void 0===l?{}:l,u=n.size,d=void 0===u?"medium":u,I=n.limited,h=void 0!==I&&I,j=n.clickable,x=void 0!==j&&j,g=n.tooltip,C=void 0===g?"":g,b=o(n,["classes","size","limited","clickable","tooltip"]),z=p();return s(e,{title:C,classes:{tooltip:z.tooltip},children:s(r,i({},b,{size:d,classes:i(i({},a),{root:c(a.root,z.rootChip,z["size".concat(t(d))],h&&z["size".concat(t(d),"Limited")],x&&z["size".concat(t(d),"Clickable")])}),clickable:x,deleteIcon:s(m,{className:z.closeIcon,size:16})}))})};export{l as default};
1
+ import{__rest as o,__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as s}from"react/jsx-runtime";import c from"classnames";import{capitalize as n}from"lodash";import{makeStyles as t,Tooltip as e,Chip as r}from"@material-ui/core";import{CloseSmallIcon as m}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";var p=t((function(o){return{rootChip:{"&.MuiChip-root":{backgroundColor:o.palette.background.b9,color:o.palette.primary.text6,textAlign:"center","&:hover":{color:o.palette.primary.contrastText,"& .MuiSvgIcon-root":{color:o.palette.primary.contrastText}},"& span.MuiChip-label":{padding:0}}},tooltip:{marginTop:"10px"},closeIcon:{marginRight:"-2px !important",marginLeft:"2px !important",color:o.palette.primary.text6},sizeSmall:{"&.MuiChip-root":{minWidth:16,height:16,padding:"1px 2px","& span":{fontSize:"11px",lineHeight:"14px"}}},sizeSmallLimited:{"&.MuiChip-root":{padding:"1px 3px"}},sizeMedium:{"&.MuiChip-root":{minWidth:24,height:24,padding:"2px 4px","& span":{fontSize:"14px",lineHeight:"20px"}}},sizeMediumLimited:{"&.MuiChip-root":{padding:"2px 6px"}},sizeMediumClickable:{"&.MuiChip-root":{padding:"2px 6px"}},sizeLarge:{"&.MuiChip-root":{minWidth:32,height:32,padding:"5px 7px","& span":{fontSize:"16px",lineHeight:"22px"}}},sizeLargeLimited:{"&.MuiChip-root":{padding:"5px 8px"}},sizeLargeClickable:{"&.MuiChip-root":{padding:"5px 8px"}}}})),l=function(t){var l=t.classes,a=void 0===l?{}:l,u=t.size,d=void 0===u?"medium":u,I=t.limited,j=void 0!==I&&I,h=t.clickable,x=void 0!==h&&h,g=t.tooltip,C=void 0===g?"":g,b=o(t,["classes","size","limited","clickable","tooltip"]),z=p();return s(e,{title:C,classes:{tooltip:z.tooltip},children:s(r,i({},b,{size:d,classes:i(i({},a),{root:c(a.root,z.rootChip,z["size".concat(n(d))],j&&z["size".concat(n(d),"Limited")],x&&z["size".concat(n(d),"Clickable")])}),clickable:x,deleteIcon:s(m,{className:z.closeIcon,size:16})}))})};export{l as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as o,__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i}from"react/jsx-runtime";import c from"classnames";import n from"prop-types";import{KeyboardDatePicker as t}from"@material-ui/pickers";import{makeStyles as r}from"@material-ui/core";import m from"moment";import{DATE_FORMAT as e}from"../../constants/dateTimeFormat.js";import{CalendarIcon as a,RightIcon as p,LeftIcon as u}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";var l=r((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"&:hover .MuiIconButton-root":{color:o.palette.primary.contrastText},"& .MuiIconButton-root":{borderRadius:8,color:o.palette.primary.text6,fontSize:"unset",marginRight:-3,marginBottom:-8,padding:6,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.16)"}},"& .MuiIconButton-root > span > span svg":{fill:"transparent !important"}},paper:{marginTop:8}}})),I=function(n){var r,I,d=n.className,j=n.PopoverProps,f=o(n,["className","PopoverProps"]),h=l();return i(t,s({disableToolbar:!0,variant:"inline",keyboardIcon:i(a,{size:16}),rightArrowIcon:i(p,{size:24}),leftArrowIcon:i(u,{size:24}),format:e,placeholder:m().format(e),refuse:/[^(\w|\d)]+/gi,maxDate:null!==(r=f.maxDate)&&void 0!==r?r:void 0,minDate:null!==(I=f.minDate)&&void 0!==I?I:void 0},f,{PopoverProps:s({className:c(h.paper,j.className)},j),className:c(h.dateTimePickerInput,d)}))};I.propTypes={PopoverProps:n.shape({className:n.string}),className:n.string},I.defaultProps={PopoverProps:{},className:""};export{I as default};
1
+ import{__rest as o,__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i}from"react/jsx-runtime";import c from"classnames";import n from"prop-types";import{KeyboardDatePicker as t}from"@material-ui/pickers";import{makeStyles as r}from"@material-ui/core";import m from"moment";import{DATE_FORMAT as e}from"../../constants/dateTimeFormat.js";import{CalendarIcon as p,RightIcon as a,LeftIcon as u}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";var l=r((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"&:hover .MuiIconButton-root":{color:o.palette.primary.contrastText},"& .MuiIconButton-root":{borderRadius:8,color:o.palette.primary.text6,fontSize:"unset",marginRight:-3,marginBottom:-8,padding:6,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.16)"}},"& .MuiIconButton-root > span > span svg":{fill:"transparent !important"}},paper:{marginTop:8}}})),I=function(n){var r,I,d=n.className,j=n.PopoverProps,f=o(n,["className","PopoverProps"]),h=l();return i(t,s({disableToolbar:!0,variant:"inline",keyboardIcon:i(p,{size:16}),rightArrowIcon:i(a,{size:24}),leftArrowIcon:i(u,{size:24}),format:e,placeholder:m().format(e),refuse:/[^(\w|\d)]+/gi,maxDate:null!==(r=f.maxDate)&&void 0!==r?r:void 0,minDate:null!==(I=f.minDate)&&void 0!==I?I:void 0},f,{PopoverProps:s({className:c(h.paper,j.className)},j),className:c(h.dateTimePickerInput,d)}))};I.propTypes={PopoverProps:n.shape({className:n.string}),className:n.string},I.defaultProps={PopoverProps:{},className:""};export{I as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as o,__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as c}from"react/jsx-runtime";import i from"classnames";import n from"prop-types";import t from"moment";import{KeyboardDateTimePicker as r}from"@material-ui/pickers";import{makeStyles as m}from"@material-ui/core";import{CalendarIcon as e,TimeIcon as a,RightIcon as p,LeftIcon as u}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import{DATE_TIME_FORMAT as l}from"../../constants/dateTimeFormat.js";var I=m((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"&:hover .MuiIconButton-root":{color:o.palette.primary.contrastText},"& .MuiIconButton-root":{color:o.palette.primary.text6,borderRadius:8,fontSize:"unset",marginRight:-3,marginBottom:-8,padding:6,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.16)"}},"& .MuiIconButton-root > span > span svg":{fill:"transparent !important"}},paper:{marginTop:8}}}));function d(n){var m,l,d=n.className,j=n.PopoverProps,f=n.format,h=o(n,["className","PopoverProps","format"]),g=I();return c(r,s({dateRangeIcon:c(e,{size:24}),timeIcon:c(a,{size:24}),rightArrowIcon:c(p,{size:24}),leftArrowIcon:c(u,{size:24}),keyboardIcon:c(e,{size:16}),format:f,refuse:/[^(\w|\d)]+/gi,placeholder:t().format(f),maxDate:null!==(m=h.maxDate)&&void 0!==m?m:void 0,minDate:null!==(l=h.minDate)&&void 0!==l?l:void 0},h,{PopoverProps:s({className:g.paper},j),className:i(g.dateTimePickerInput,d)}))}d.propTypes={className:n.string,PopoverProps:n.shape({className:n.string}),format:n.string},d.defaultProps={className:"",PopoverProps:{},format:l};export{d as default};
1
+ import{__rest as o,__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i}from"react/jsx-runtime";import c from"classnames";import n from"prop-types";import t from"moment";import{KeyboardDateTimePicker as r}from"@material-ui/pickers";import{makeStyles as m}from"@material-ui/core";import{CalendarIcon as e,TimeIcon as p,RightIcon as a,LeftIcon as u}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import{DATE_TIME_FORMAT as l}from"../../constants/dateTimeFormat.js";var I=m((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"&:hover .MuiIconButton-root":{color:o.palette.primary.contrastText},"& .MuiIconButton-root":{color:o.palette.primary.text6,borderRadius:8,fontSize:"unset",marginRight:-3,marginBottom:-8,padding:6,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.16)"}},"& .MuiIconButton-root > span > span svg":{fill:"transparent !important"}},paper:{marginTop:8}}}));function d(n){var m,l,d=n.className,j=n.PopoverProps,f=n.format,h=o(n,["className","PopoverProps","format"]),v=I();return i(r,s({dateRangeIcon:i(e,{size:24}),timeIcon:i(p,{size:24}),rightArrowIcon:i(a,{size:24}),leftArrowIcon:i(u,{size:24}),keyboardIcon:i(e,{size:16}),format:f,refuse:/[^(\w|\d)]+/gi,placeholder:t().format(f),maxDate:null!==(m=h.maxDate)&&void 0!==m?m:void 0,minDate:null!==(l=h.minDate)&&void 0!==l?l:void 0},h,{PopoverProps:s({className:v.paper},j),className:c(v.dateTimePickerInput,d)}))}d.propTypes={className:n.string,PopoverProps:n.shape({className:n.string}),format:n.string},d.defaultProps={className:"",PopoverProps:{},format:l};export{d as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as i}from"react/jsx-runtime";import t from"classnames";import{makeStyles as n,useTheme as c}from"@material-ui/core";import{CenterAlignmentIcon as e}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import"../../../icons/customIcons/icons/Pad.js";import"../../../icons/customIcons/icons/DrilloutUnit.js";import"../../../icons/customIcons/icons/FracFleet.js";import"../../../icons/customIcons/icons/Global.js";import"../../../icons/customIcons/icons/Program.js";import"../../../icons/customIcons/icons/Rig.js";import"../../../icons/customIcons/icons/Well.js";import"../../../icons/customIcons/icons/Gap.js";import"../../../icons/customIcons/icons/Pin.js";import"../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../icons/customIcons/icons/AttentionFilled.js";import"../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../icons/customIcons/icons/Archive.js";import"../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../icons/customIcons/icons/Unarchive.js";import"../../../icons/customIcons/icons/Archived.js";import r from"../AppSideBar/AppSideBar.js";import m from"../../IconButton/index.js";import{AppSettingsPopover as p}from"../AppSettingsPopover/AppSettingsPopover.js";import a from"../../Button/components/Button/index.js";import"moment-timezone";import"../../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../../Button/components/LiveButton/styles.js";import{useMatchAppContainerSize as l}from"../../../effects/useMatchAppContainerSize.js";import{isNativeDetected as d,isMobileDetected as u}from"../../../utils/mobileDetect.js";var h=n({appLayout:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},header:{paddingLeft:12,paddingRight:12,display:"flex",height:36},contentWrapper:{display:"flex",position:"relative",flexGrow:1,height:"calc(100% - 36px)","@media (max-width: 960px)":{height:"100%"}},content:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"},popoverContent:{padding:"0 16px"},filtersTrigger:{width:30,height:30}}),j=function(s){var t=c(),n=l({width:{max:t.breakpoints.width("md")}}),r=h();return n?i(m,o({className:r.filtersTrigger,size:"small",tooltipProps:{title:"Filters"},variant:"contained"},s,{children:i(e,{size:16})})):i(a,o({startIcon:i(e,{size:16})},s,{children:"Filters"}))},I=function(n){var e=n.appSettingsPopoverProps,m=n.children,a=n.classes,I=void 0===a?{}:a,f=n.header,g=n.sideBarContent,v=n.sideBarProps,x=h(),C=c(),F=l({width:{max:C.breakpoints.width("md")}}),A=d||u||F;return s("div",{className:t(x.appLayout,I.appLayout),children:[A&&s("div",{className:t(x.header,I.header),children:[i(p,o({Trigger:j,classes:{popoverContent:x.popoverContent},header:"Filters",anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},e,{children:g})),f]}),s("div",{className:t(x.contentWrapper,I.contentWrapper),children:[!A&&i(r,o({},v,{anchor:"left",children:g})),m&&i("div",{className:t(x.content,I.content),children:m})]})]})};export{I as AppFilterPanelLayout};
1
+ import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as i}from"react/jsx-runtime";import t from"classnames";import{makeStyles as n,useTheme as c}from"@material-ui/core";import{CenterAlignmentIcon as e}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import"../../../icons/customIcons/icons/Pad.js";import"../../../icons/customIcons/icons/DrilloutUnit.js";import"../../../icons/customIcons/icons/FracFleet.js";import"../../../icons/customIcons/icons/Global.js";import"../../../icons/customIcons/icons/Program.js";import"../../../icons/customIcons/icons/Rig.js";import"../../../icons/customIcons/icons/Well.js";import"../../../icons/customIcons/icons/Gap.js";import"../../../icons/customIcons/icons/Pin.js";import"../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../icons/customIcons/icons/AttentionFilled.js";import"../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../icons/customIcons/icons/Archive.js";import"../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../icons/customIcons/icons/Unarchive.js";import"../../../icons/customIcons/icons/Archived.js";import"../../../icons/customIcons/icons/InterventionUnit.js";import r from"../AppSideBar/AppSideBar.js";import m from"../../IconButton/index.js";import{AppSettingsPopover as p}from"../AppSettingsPopover/AppSettingsPopover.js";import a from"../../Button/components/Button/index.js";import"moment-timezone";import"../../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../../Button/components/LiveButton/styles.js";import{useMatchAppContainerSize as l}from"../../../effects/useMatchAppContainerSize.js";import{isNativeDetected as d,isMobileDetected as u}from"../../../utils/mobileDetect.js";var h=n({appLayout:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},header:{paddingLeft:12,paddingRight:12,display:"flex",height:36},contentWrapper:{display:"flex",position:"relative",flexGrow:1,height:"calc(100% - 36px)","@media (max-width: 960px)":{height:"100%"}},content:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"},popoverContent:{padding:"0 16px"},filtersTrigger:{width:30,height:30}}),j=function(s){var t=c(),n=l({width:{max:t.breakpoints.width("md")}}),r=h();return n?i(m,o({className:r.filtersTrigger,size:"small",tooltipProps:{title:"Filters"},variant:"contained"},s,{children:i(e,{size:16})})):i(a,o({startIcon:i(e,{size:16})},s,{children:"Filters"}))},I=function(n){var e=n.appSettingsPopoverProps,m=n.children,a=n.classes,I=void 0===a?{}:a,f=n.header,g=n.sideBarContent,v=n.sideBarProps,x=h(),C=c(),F=l({width:{max:C.breakpoints.width("md")}}),A=d||u||F;return s("div",{className:t(x.appLayout,I.appLayout),children:[A&&s("div",{className:t(x.header,I.header),children:[i(p,o({Trigger:j,classes:{popoverContent:x.popoverContent},header:"Filters",anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},e,{children:g})),f]}),s("div",{className:t(x.contentWrapper,I.contentWrapper),children:[!A&&i(r,o({},v,{anchor:"left",children:g})),m&&i("div",{className:t(x.content,I.content),children:m})]})]})};export{I as AppFilterPanelLayout};
2
2
  //# sourceMappingURL=AppFilterPanelLayout.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as o,__assign as i}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as s,jsxs as n,Fragment as t}from"react/jsx-runtime";import{useState as c}from"react";import e from"classnames";import{makeStyles as r,Popover as l}from"@material-ui/core";import{SettingTwoIcon as a,CloseSmallIcon as m}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import"../../../icons/customIcons/icons/Pad.js";import"../../../icons/customIcons/icons/DrilloutUnit.js";import"../../../icons/customIcons/icons/FracFleet.js";import"../../../icons/customIcons/icons/Global.js";import"../../../icons/customIcons/icons/Program.js";import"../../../icons/customIcons/icons/Rig.js";import"../../../icons/customIcons/icons/Well.js";import"../../../icons/customIcons/icons/Gap.js";import"../../../icons/customIcons/icons/Pin.js";import"../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../icons/customIcons/icons/AttentionFilled.js";import"../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../icons/customIcons/icons/Archive.js";import"../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../icons/customIcons/icons/Unarchive.js";import"../../../icons/customIcons/icons/Archived.js";import{isNativeDetected as p,isMobileDetected as d}from"../../../utils/mobileDetect.js";import u from"../../IconButton/index.js";import h from"../../Modal/Modal.js";import j from"../../Button/components/Button/index.js";import"moment-timezone";import"../../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../../Button/components/LiveButton/styles.js";var g=p||d,v=r((function(o){return{popoverPaper:{position:"relative",marginTop:function(o){return o.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:o.palette.background.b9,maxHeight:function(o){var i=o.maxHeight;return i?i-24:"calc(100% - 24px)"},"&.scrollable":{height:function(o){return o.maxHeight||"100%"},"&::after":{content:'""',position:"absolute",left:0,bottom:0,height:16,width:"calc(100% - 16px)",zIndex:1,background:"linear-gradient(180deg, rgba(65, 65, 65, 0.00) 0%, ".concat(o.palette.background.b9," 100%);")}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(o.palette.background.b9,", ").concat(o.palette.background.b9," 89%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},modalActions:{display:"flex",justifyContent:"flex-end"}}}));function I(r){var d=r.Trigger,I=void 0===d?null:d,b=r.children,f=r.classes,C=r.defaultScrollable,x=void 0!==C&&C,k=r.header,S=void 0===k?"Settings":k,A=r.iconSettingsProps,F=void 0===A?{}:A,P=r.maxHeight,B=void 0===P?null:P,H=r.modalActions,z=void 0===H?null:H,T=r.modalProps,O=void 0===T?{}:T,w=r.onClose,y=void 0===w?function(){}:w,N=o(r,["Trigger","children","classes","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","onClose"]),E=c(null),L=E[0],M=E[1],D=c(!0),R=D[0],G=D[1],W=v({maxHeight:B,isScrollable:R,isNativeDetected:p}),q=f||{},U=q.popoverContent,Y=o(q,["popoverContent"]),X=function(){M(null),y()},Z=Boolean(L),_=function(o){return M(o.currentTarget)},J=z||s(j,{variation:"secondary",onClick:X,children:"CLOSE"});return n(t,{children:[I?s(I,{onClick:_,isActive:Z}):s(u,i({"data-testid":"chartSettingsButton",isActive:Z,onClick:_,size:"small",tooltipProps:{title:"Settings"},variant:"contained"},F,{children:s(a,{size:(null==F?void 0:F.size)||16})})),!g&&n(l,i({open:Z,anchorEl:L,onClose:X,anchorOrigin:{vertical:R?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},N,{classes:i(i({},Y),{paper:e(W.popoverPaper,R&&"scrollable",null==Y?void 0:Y.paper)}),children:[n("div",{className:e(W.popoverHeader,R&&"scrollable"),children:[s("div",{className:W.headerTitle,children:S}),s(u,{tooltipProps:{title:"Close"},onClick:X,children:s(m,{})})]}),s("div",{className:e(W.popoverContentContainer,R&&"scrollable"),ref:function(o){o&&o.scrollHeight<=o.clientHeight&&!x&&G(!1)},children:s("div",{className:e(W.popoverContent,U),children:b})})]})),g&&s(h,i({actions:J,onClose:X,open:Z,actionsClassName:W.modalActions,title:S},O,{children:b}))]})}export{I as AppSettingsPopover};
1
+ import{__rest as o,__assign as i}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as n,jsxs as s,Fragment as t}from"react/jsx-runtime";import{useState as c}from"react";import e from"classnames";import{makeStyles as r,Popover as l}from"@material-ui/core";import{SettingTwoIcon as a,CloseSmallIcon as m}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import"../../../icons/customIcons/icons/Pad.js";import"../../../icons/customIcons/icons/DrilloutUnit.js";import"../../../icons/customIcons/icons/FracFleet.js";import"../../../icons/customIcons/icons/Global.js";import"../../../icons/customIcons/icons/Program.js";import"../../../icons/customIcons/icons/Rig.js";import"../../../icons/customIcons/icons/Well.js";import"../../../icons/customIcons/icons/Gap.js";import"../../../icons/customIcons/icons/Pin.js";import"../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../icons/customIcons/icons/AttentionFilled.js";import"../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../icons/customIcons/icons/Archive.js";import"../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../icons/customIcons/icons/Unarchive.js";import"../../../icons/customIcons/icons/Archived.js";import"../../../icons/customIcons/icons/InterventionUnit.js";import{isNativeDetected as p,isMobileDetected as d}from"../../../utils/mobileDetect.js";import u from"../../IconButton/index.js";import h from"../../Modal/Modal.js";import j from"../../Button/components/Button/index.js";import"moment-timezone";import"../../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../../Button/components/LiveButton/styles.js";var g=p||d,I=r((function(o){return{popoverPaper:{position:"relative",marginTop:function(o){return o.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:o.palette.background.b9,maxHeight:function(o){var i=o.maxHeight;return i?i-24:"calc(100% - 24px)"},"&.scrollable":{height:function(o){return o.maxHeight||"100%"},"&::after":{content:'""',position:"absolute",left:0,bottom:0,height:16,width:"calc(100% - 16px)",zIndex:1,background:"linear-gradient(180deg, rgba(65, 65, 65, 0.00) 0%, ".concat(o.palette.background.b9," 100%);")}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(o.palette.background.b9,", ").concat(o.palette.background.b9," 89%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},modalActions:{display:"flex",justifyContent:"flex-end"}}}));function v(r){var d=r.Trigger,v=void 0===d?null:d,b=r.children,f=r.classes,C=r.defaultScrollable,x=void 0!==C&&C,k=r.header,S=void 0===k?"Settings":k,A=r.iconSettingsProps,F=void 0===A?{}:A,P=r.maxHeight,B=void 0===P?null:P,H=r.modalActions,z=void 0===H?null:H,T=r.modalProps,O=void 0===T?{}:T,w=r.onClose,y=void 0===w?function(){}:w,N=o(r,["Trigger","children","classes","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","onClose"]),E=c(null),L=E[0],M=E[1],D=c(!0),R=D[0],G=D[1],U=I({maxHeight:B,isScrollable:R,isNativeDetected:p}),W=f||{},q=W.popoverContent,Y=o(W,["popoverContent"]),X=function(){M(null),y()},Z=Boolean(L),_=function(o){return M(o.currentTarget)},J=z||n(j,{variation:"secondary",onClick:X,children:"CLOSE"});return s(t,{children:[v?n(v,{onClick:_,isActive:Z}):n(u,i({"data-testid":"chartSettingsButton",isActive:Z,onClick:_,size:"small",tooltipProps:{title:"Settings"},variant:"contained"},F,{children:n(a,{size:(null==F?void 0:F.size)||16})})),!g&&s(l,i({open:Z,anchorEl:L,onClose:X,anchorOrigin:{vertical:R?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},N,{classes:i(i({},Y),{paper:e(U.popoverPaper,R&&"scrollable",null==Y?void 0:Y.paper)}),children:[s("div",{className:e(U.popoverHeader,R&&"scrollable"),children:[n("div",{className:U.headerTitle,children:S}),n(u,{tooltipProps:{title:"Close"},onClick:X,children:n(m,{})})]}),n("div",{className:e(U.popoverContentContainer,R&&"scrollable"),ref:function(o){o&&o.scrollHeight<=o.clientHeight&&!x&&G(!1)},children:n("div",{className:e(U.popoverContent,q),children:b})})]})),g&&n(h,i({actions:J,onClose:X,open:Z,actionsClassName:U.modalActions,title:S},O,{children:b}))]})}export{v as AppSettingsPopover};
2
2
  //# sourceMappingURL=AppSettingsPopover.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as o,Fragment as e,jsx as n}from"react/jsx-runtime";import{useState as t,useRef as s,useEffect as i}from"react";import c from"prop-types";import r from"classnames";import{noop as a}from"lodash";import{makeStyles as l,createStyles as p,Drawer as d,Box as m,Tooltip as u}from"@material-ui/core";import h from"../../IconButton/index.js";import g from"../../Button/components/Button/index.js";import"moment-timezone";import"../../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../../Button/components/LiveButton/styles.js";import{LeftAlignmentIcon as f,CloseSmallIcon as I,CheckSmallIcon as j,RightIcon as C,LeftIcon as x}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import"../../../icons/customIcons/icons/Pad.js";import"../../../icons/customIcons/icons/DrilloutUnit.js";import"../../../icons/customIcons/icons/FracFleet.js";import"../../../icons/customIcons/icons/Global.js";import"../../../icons/customIcons/icons/Program.js";import"../../../icons/customIcons/icons/Rig.js";import"../../../icons/customIcons/icons/Well.js";import"../../../icons/customIcons/icons/Gap.js";import"../../../icons/customIcons/icons/Pin.js";import"../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../icons/customIcons/icons/AttentionFilled.js";import"../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../icons/customIcons/icons/Archive.js";import"../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../icons/customIcons/icons/Unarchive.js";import"../../../icons/customIcons/icons/Archived.js";var b=l((function(o){var e,n;return p({drawer:function(o){var e;return(e={height:"100%",position:"relative",zIndex:0,width:o.openedDrawerWidth})["&.".concat("closed")]={width:"48px"},e},drawerPaper:(e={position:"relative",width:"100%",borderRadius:function(o){return"left"===o.anchor?"0 8px 0 0":"8px 0 0 0"},backgroundColor:o.palette.background.b5},e["&.".concat("closed")]={cursor:"pointer","&:hover":{backgroundColor:o.palette.background.b7,"& > $header":{backgroundColor:o.palette.background.b7}}},e["&.MuiDrawer-paperAnchorDockedLeft"]={borderRight:"none"},e["&.MuiDrawer-paperAnchorDockedRight"]={borderLeft:"none"},e),header:(n={cursor:"pointer",alignItems:"center",backgroundColor:o.palette.background.b5,borderBottom:"1px solid",borderBottomColor:"#ffffff14",display:"flex",fontSize:16,fontWeight:400,height:48,justifyContent:"center",left:0,letterSpacing:"1px",lineHeight:"22px",position:"absolute",right:0,textTransform:"capitalize",top:0},n["&.".concat("open")]={padding:o.spacing(1.5),justifyContent:"flex-start"},n),openToggleIconOpen:{transform:"rotate(180deg)"},openToggleContainer:function(o){var e,n=o.anchor;return(e={alignItems:"center",bottom:0,display:"flex",flex:"0 0",height:48,justifyContent:"center",padding:6,position:"absolute",width:"100%"})["&.".concat("open")]={justifyContent:"left"===n?"flex-end":"flex-start",paddingRight:6},e},contentWrapper:{marginTop:48,height:"calc(100% - 96px)",overflowY:"auto"},content:{padding:"16px 12px",display:"flex",flexDirection:"column"},selectAllButton:{textTransform:"none",fontSize:"10px",lineHeight:"14px",letterSpacing:"0.4px","& .MuiButton-iconSizeMedium > *:first-child":{fontSize:"12px !important"},"& .MuiButton-startIcon":{marginRight:4},"&:hover":{background:"transparent"}},headerIcon:{cursor:"pointer"},headerIconText:{cursor:"pointer",paddingLeft:7,letterSpacing:1}})})),T=function(c){var a,l=c.classes,p=c.anchor,T=c.children,w=c.drawerPaperClassName,v=c.drawerClassName,k=c.expandedTooltipTitle,O=c.collapsedTooltipTitle,A=c.header,B=c.headerIcon,S=c.headerTitleIcon,N=c.isOpen,z=c.openedDrawerWidth,D=c.setIsOpen,W=c.size,F=c.allOptionsButtonShown,y=c.isAllOptionsSelected,P=c.onAllOptionsClick,R=t(!1);R[0];var M=R[1],L=s(),E=b({anchor:p,openedDrawerWidth:z||{small:235,medium:354,large:473}[W]});i((function(){var o=L.current,e=o.scrollHeight,n=o.clientHeight;M(e>n)}));var H="left"===p?C:x;return o(d,{"data-testid":"".concat("AppSideBar","_Drawer"),onClick:function(){N||D(!0)},className:r(E.drawer,!N&&"closed",v),variant:"permanent",classes:{paper:r(E.drawerPaper,w,!N&&"closed")},anchor:p,children:[o("div",{className:r(E.header,l.header,N&&"open"),onClick:function(){N&&D(!1)},children:[N&&o(e,{children:[S||n(f,{size:24}),n("div",{"data-testid":"".concat("AppSideBar","_header"),className:E.headerIconText,children:A}),F&&n(g,{className:E.selectAllButton,onClick:function(o){o.stopPropagation(),P(o)},startIcon:n(y?I:j,{size:16}),children:y?"Clear All":"Select All"})]}),!N&&B]}),n("div",{className:r(E.contentWrapper,l.contentWrapper),ref:L,children:n("div",{className:r(E.content,l.content),children:N&&T})}),n(m,{className:r(E.openToggleContainer,l.openToggleContainer,(a={},a.open=N,a)),children:n(u,{title:N?k:O,placement:"bottom",children:n("div",{children:n(h,{"aria-label":"toggle sidebar",onClick:function(){D(!N)},children:n(H,{size:24,"data-testid":"".concat("AppSideBar","_arrowButton"),className:r(N&&E.openToggleIconOpen)})})})})})]})},w={classes:c.shape({contentWrapper:c.shape({}),content:c.shape({}),header:c.shape({}),openToggleContainer:c.shape({})}),anchor:c.oneOf(["left","right"]),children:c.node.isRequired,drawerPaperClassName:c.string,expandedTooltipTitle:c.string,collapsedTooltipTitle:c.string,header:c.node,headerIcon:c.node,headerTitleIcon:c.node,isOpen:c.bool,openedDrawerWidth:c.oneOfType([c.string,c.number]),setIsOpen:c.func,size:c.oneOf(["small","medium","large"]),allOptionsButtonShown:c.bool,isAllOptionsSelected:c.bool,onAllOptionsClick:c.func,drawerClassName:c.string};T.propTypes=w,T.defaultProps={classes:{contentWrapper:{},content:{},header:{},openToggleContainer:{}},anchor:"left",drawerPaperClassName:"",drawerClassName:"",expandedTooltipTitle:"Collapse",collapsedTooltipTitle:"Expand",header:null,headerIcon:null,headerTitleIcon:null,isOpen:!1,openedDrawerWidth:0,setIsOpen:a,size:"medium",allOptionsButtonShown:!1,isAllOptionsSelected:!1,onAllOptionsClick:a};export{T as default};
1
+ import{jsxs as o,Fragment as e,jsx as n}from"react/jsx-runtime";import{useState as t,useRef as s,useEffect as i}from"react";import c from"prop-types";import r from"classnames";import{noop as a}from"lodash";import{makeStyles as l,createStyles as p,Drawer as d,Box as m,Tooltip as u}from"@material-ui/core";import h from"../../IconButton/index.js";import g from"../../Button/components/Button/index.js";import"moment-timezone";import"../../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../../Button/components/LiveButton/styles.js";import{LeftAlignmentIcon as f,CloseSmallIcon as I,CheckSmallIcon as j,RightIcon as C,LeftIcon as x}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import"../../../icons/customIcons/icons/Pad.js";import"../../../icons/customIcons/icons/DrilloutUnit.js";import"../../../icons/customIcons/icons/FracFleet.js";import"../../../icons/customIcons/icons/Global.js";import"../../../icons/customIcons/icons/Program.js";import"../../../icons/customIcons/icons/Rig.js";import"../../../icons/customIcons/icons/Well.js";import"../../../icons/customIcons/icons/Gap.js";import"../../../icons/customIcons/icons/Pin.js";import"../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../icons/customIcons/icons/AttentionFilled.js";import"../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../icons/customIcons/icons/Archive.js";import"../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../icons/customIcons/icons/Unarchive.js";import"../../../icons/customIcons/icons/Archived.js";import"../../../icons/customIcons/icons/InterventionUnit.js";var b=l((function(o){var e,n;return p({drawer:function(o){var e;return(e={height:"100%",position:"relative",zIndex:0,width:o.openedDrawerWidth})["&.".concat("closed")]={width:"48px"},e},drawerPaper:(e={position:"relative",width:"100%",borderRadius:function(o){return"left"===o.anchor?"0 8px 0 0":"8px 0 0 0"},backgroundColor:o.palette.background.b5},e["&.".concat("closed")]={cursor:"pointer","&:hover":{backgroundColor:o.palette.background.b7,"& > $header":{backgroundColor:o.palette.background.b7}}},e["&.MuiDrawer-paperAnchorDockedLeft"]={borderRight:"none"},e["&.MuiDrawer-paperAnchorDockedRight"]={borderLeft:"none"},e),header:(n={cursor:"pointer",alignItems:"center",backgroundColor:o.palette.background.b5,borderBottom:"1px solid",borderBottomColor:"#ffffff14",display:"flex",fontSize:16,fontWeight:400,height:48,justifyContent:"center",left:0,letterSpacing:"1px",lineHeight:"22px",position:"absolute",right:0,textTransform:"capitalize",top:0},n["&.".concat("open")]={padding:o.spacing(1.5),justifyContent:"flex-start"},n),openToggleIconOpen:{transform:"rotate(180deg)"},openToggleContainer:function(o){var e,n=o.anchor;return(e={alignItems:"center",bottom:0,display:"flex",flex:"0 0",height:48,justifyContent:"center",padding:6,position:"absolute",width:"100%"})["&.".concat("open")]={justifyContent:"left"===n?"flex-end":"flex-start",paddingRight:6},e},contentWrapper:{marginTop:48,height:"calc(100% - 96px)",overflowY:"auto"},content:{padding:"16px 12px",display:"flex",flexDirection:"column"},selectAllButton:{textTransform:"none",fontSize:"10px",lineHeight:"14px",letterSpacing:"0.4px","& .MuiButton-iconSizeMedium > *:first-child":{fontSize:"12px !important"},"& .MuiButton-startIcon":{marginRight:4},"&:hover":{background:"transparent"}},headerIcon:{cursor:"pointer"},headerIconText:{cursor:"pointer",paddingLeft:7,letterSpacing:1}})})),T=function(c){var a,l=c.classes,p=c.anchor,T=c.children,v=c.drawerPaperClassName,w=c.drawerClassName,k=c.expandedTooltipTitle,O=c.collapsedTooltipTitle,A=c.header,B=c.headerIcon,S=c.headerTitleIcon,N=c.isOpen,z=c.openedDrawerWidth,D=c.setIsOpen,W=c.size,F=c.allOptionsButtonShown,y=c.isAllOptionsSelected,P=c.onAllOptionsClick,R=t(!1);R[0];var M=R[1],L=s(),E=b({anchor:p,openedDrawerWidth:z||{small:235,medium:354,large:473}[W]});i((function(){var o=L.current,e=o.scrollHeight,n=o.clientHeight;M(e>n)}));var H="left"===p?C:x;return o(d,{"data-testid":"".concat("AppSideBar","_Drawer"),onClick:function(){N||D(!0)},className:r(E.drawer,!N&&"closed",w),variant:"permanent",classes:{paper:r(E.drawerPaper,v,!N&&"closed")},anchor:p,children:[o("div",{className:r(E.header,l.header,N&&"open"),onClick:function(){N&&D(!1)},children:[N&&o(e,{children:[S||n(f,{size:24}),n("div",{"data-testid":"".concat("AppSideBar","_header"),className:E.headerIconText,children:A}),F&&n(g,{className:E.selectAllButton,onClick:function(o){o.stopPropagation(),P(o)},startIcon:n(y?I:j,{size:16}),children:y?"Clear All":"Select All"})]}),!N&&B]}),n("div",{className:r(E.contentWrapper,l.contentWrapper),ref:L,children:n("div",{className:r(E.content,l.content),children:N&&T})}),n(m,{className:r(E.openToggleContainer,l.openToggleContainer,(a={},a.open=N,a)),children:n(u,{title:N?k:O,placement:"bottom",children:n("div",{children:n(h,{"aria-label":"toggle sidebar",onClick:function(){D(!N)},children:n(H,{size:24,"data-testid":"".concat("AppSideBar","_arrowButton"),className:r(N&&E.openToggleIconOpen)})})})})})]})},v={classes:c.shape({contentWrapper:c.shape({}),content:c.shape({}),header:c.shape({}),openToggleContainer:c.shape({})}),anchor:c.oneOf(["left","right"]),children:c.node.isRequired,drawerPaperClassName:c.string,expandedTooltipTitle:c.string,collapsedTooltipTitle:c.string,header:c.node,headerIcon:c.node,headerTitleIcon:c.node,isOpen:c.bool,openedDrawerWidth:c.oneOfType([c.string,c.number]),setIsOpen:c.func,size:c.oneOf(["small","medium","large"]),allOptionsButtonShown:c.bool,isAllOptionsSelected:c.bool,onAllOptionsClick:c.func,drawerClassName:c.string};T.propTypes=v,T.defaultProps={classes:{contentWrapper:{},content:{},header:{},openToggleContainer:{}},anchor:"left",drawerPaperClassName:"",drawerClassName:"",expandedTooltipTitle:"Collapse",collapsedTooltipTitle:"Expand",header:null,headerIcon:null,headerTitleIcon:null,isOpen:!1,openedDrawerWidth:0,setIsOpen:a,size:"medium",allOptionsButtonShown:!1,isAllOptionsSelected:!1,onAllOptionsClick:a};export{T as default};
2
2
  //# sourceMappingURL=AppSideBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/utils.js"],"names":[],"mappings":"AA2BA,mDA8BC;AAED,kDA0BC;AAED,0EAWC;AAoHD,8IAqBC;AAED,+DAYC;AAED,6EAwBC;AAED,wEAwBC;AA3RM,yEAAkF;AAElF,2EAKJ;AAgHI,0EAWN;AAEM,uEASN;AAEM,6FAkBN;AAEM,2EAYN;AAEM,gJAiBN;AA2FM,6CAUM;AAEN,qDAOJ;AAEI;;;;;;;;;;;;;;;;;;;;;;;EAuBL;AAEK,wDAOJ;AAEI;;;;;;;;;;;;EA+DN"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/utils.js"],"names":[],"mappings":"AA2BA,mDA8BC;AAED,kDA0BC;AAED,0EAWC;AAqHD,8IAqBC;AAED,+DAYC;AAED,6EAwBC;AAED,wEAwBC;AA5RM,yEAAkF;AAElF,2EAKJ;AAiHI,0EAWN;AAEM,uEASN;AAEM,6FAkBN;AAEM,2EAYN;AAEM,gJAiBN;AA2FM,6CAUM;AAEN,qDAOJ;AAEI;;;;;;;;;;;;;;;;;;;;;;;EAuBL;AAEK,wDAOJ;AAEI;;;;;;;;;;;;EA+DN"}
@@ -1,2 +1,2 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import a from"jsona";import{get as i,isEmpty as u,keyBy as s,uniq as l}from"lodash";import{getWells as c,getRigs as o,getFracFleets as p,getInterventionUnits as d,getFracFleetWells as f,getPadWells as m,getResolvedAssets as v}from"../../../../clients/jsonApi/index.js";import{DEV_CENTER_CLI_APP_ID as b}from"../../../../constants/devcenter.js";import"../../../../constants/goals.js";import"../../../../constants/segment.js";import"../../../../constants/alerts.js";import"../../../../constants/apps.js";import"../../../../constants/drillstring.js";import"../../../../constants/completion.js";import"../../../../constants/appPackages.js";import"../../../../constants/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import{ASSET_TYPES as h}from"../../../../constants/assetTypes.js";import"../../../../constants/corvaCompanyId.js";import"../../../GradientManager/configuration/constants.js";import{getAppSegment as w}from"../../../../utils/devcenter.js";function g(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function y(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){e(r,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}))}return r}var _=new a,j=function(e,r){return+i(e,["settings",r])},x=function(e,r){return l(e.map((function(e){var r=t(e,2);return r[0],r[1]})).filter((function(e){return Number.isFinite(e)&&!r.includes(String(e))})))};function k(e){return I.apply(this,arguments)}function I(){return(I=r(n.mark((function e(r){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.length){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,c({ids:r,fields:["well.name","well.settings","well.company","well.asset_id","well.last_active_at","well.program","well.pad","well.frac_fleet","well.id","well.rig","rig.name","rig.asset_id","company.id","well.status","well.archivation"],include_arhivation_data:!0});case 5:return e.abrupt("return",e.sent);case 8:return e.prev=8,e.t0=e.catch(2),console.error(e.t0),e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function O(e){return F.apply(this,arguments)}function F(){return(F=r(n.mark((function e(r){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.length){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,o({ids:r,fields:["rig.name","rig.settings","rig.asset_id","rig.active_well","rig.last_active_well","well.name","well.settings","well.company","rig.program","well.asset_id","well.last_active_at","well.id","well.company.id"]});case 5:return e.abrupt("return",e.sent);case 8:return e.prev=8,e.t0=e.catch(2),console.error(e.t0),e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function P(e){return B.apply(this,arguments)}function B(){return(B=r(n.mark((function e(r){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.length){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,v({assets:r});case 5:return e.abrupt("return",e.sent);case 8:return e.prev=8,e.t0=e.catch(2),console.error(e.t0),e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}var U=function(e,r,t){return y(y({well:e&&y(y({},e.attributes),{},{id:e.id,companyId:i(e,"relationships.company.data.id")}),rig:{name:i(r,"attributes.name"),id:i(r,"id"),asset_id:i(r,"attributes.asset_id")},program:{id:i(r,"program.id")||null,name:i(r,"program.attributes.name")||null}},t&&{interventionUnit:{id:+t.id,name:t.name}}),{},{completionWellInfo:{pad:{id:i(e,"pad.id")||null,name:i(e,"pad.attributes.name")||null},fracFleet:{id:i(e,"fracFleet.id")||null,name:i(e,"fracFleet.attributes.name")||null}}})},W=function(e,r){return!r||u(r)?{}:e.reduce((function(e,n){var a=t(n,2),i=a[0],u=a[1],s=r[u];return s?(e[i]=U(s,s.rig),e):e}),{})},q=function(e,r){return!r||u(r)?{}:e.reduce((function(e,n){var a=t(n,2),i=a[0],u=a[1],s=r[u];return e[i]=U(null==s?void 0:s.well,s),e}),{})},D=function(e,r,n){return r||n?e.reduce((function(e,a){var i,u,s=t(a,2),l=s[0],c=s[1],o=null==r?void 0:r[c],p=null==n?void 0:n[l];return e[l]={fracFleet:o,wells:p,program:{id:(null==o||null===(i=o.program)||void 0===i?void 0:i.id)||null,name:(null==o||null===(u=o.program)||void 0===u?void 0:u.name)||null}},e}),{}):{}},T=function(e,r){return e||r?e.reduce((function(e,n){var a=t(n,2),i=a[0];a[1];var u=null==r?void 0:r[i];return e[i]={wells:u},e}),{}):{}},z=function(e,r,n,a){return!r||u(r)?{}:e.reduce((function(e,i){var u,s=t(i,2),l=s[0],c=s[1],o=r[c],p=null===(u=n.find((function(e){return e[0]===l})))||void 0===u?void 0:u[1],d=a[p]||o.well;return e[l]=U(d,null==d?void 0:d.rig,o),e}),{})};function A(e){return E.apply(this,arguments)}function E(){return(E=r(n.mark((function e(r){var t;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.length){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,p({ids:r,fields:["frac_fleet.name","frac_fleet.pads","frac_fleet.program","frac_fleet.current_pad_id","frac_fleet.pad_frac_fleets","frac_fleet.pad_frac_fleet.frac_fleet_lines"]});case 5:return t=e.sent,e.abrupt("return",t?_.deserialize(t):[]);case 9:return e.prev=9,e.t0=e.catch(2),console.error(e.t0),e.abrupt("return",[]);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}function S(e){return G.apply(this,arguments)}function G(){return(G=r(n.mark((function e(r){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.length){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,d({ids:r,fields:["intervention_unit.name","intervention_unit.type","intervention_unit.active_well"]});case 5:return e.abrupt("return",e.sent);case 8:return e.prev=8,e.t0=e.catch(2),console.error(e.t0),e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function R(e,r){return C.apply(this,arguments)}function C(){return C=r(n.mark((function e(a,u){var l,c,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=s(u,"id"),c=a.map(function(){var e=r(n.mark((function e(r){var a,u,s,c,o,p;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t(r,2),u=a[0],s=a[1],c={fields:"all",frac_fleet_id:s},o=l[u],u===b?c.app_key=i(o,["app","app_key"]):c.app_id=i(o,["app","id"]),e.prev=4,e.next=7,f(c);case 7:return p=e.sent,e.abrupt("return",p?_.deserialize(p):[]);case 11:return e.prev=11,e.t0=e.catch(4),console.error(e.t0),e.abrupt("return",[]);case 15:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(r){return e.apply(this,arguments)}}()),e.next=4,Promise.all(c);case 4:return o=e.sent,e.abrupt("return",o.reduce((function(e,r,t){return e[a[t][0]]=r,e}),{}));case 6:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function H(e,r){return L.apply(this,arguments)}function L(){return L=r(n.mark((function e(a,u){var l,c,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=s(u,"id"),c=a.map(function(){var e=r(n.mark((function e(r){var a,u,s,c,o,p;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t(r,2),u=a[0],s=a[1],c={fields:"all"},o=l[u],u===b?c.app_key=i(o,["app","app_key"]):c.app_id=i(o,["app","id"]),e.prev=4,e.next=7,m(s,c);case 7:return p=e.sent,e.abrupt("return",p?_.deserialize(p):[]);case 11:return e.prev=11,e.t0=e.catch(4),console.error(e.t0),e.abrupt("return",[]);case 15:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(r){return e.apply(this,arguments)}}()),e.next=4,Promise.all(c);case 4:return o=e.sent,e.abrupt("return",o.reduce((function(e,r,t){return e[a[t][0]]=r,e}),{}));case 6:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}var M=function(e){return[e.id,j(e,h.well.id),j(e,h.rig.id),j(e,h.frac_fleet.id),j(e,h.pad.id),j(e,h.intervention_unit.id),j(e,"deprecatedAssetId"),w(e)].join("-")},N=function(e){return Boolean(j(e,h.well.id)||j(e,h.rig.id)||j(e,h.frac_fleet.id)||j(e,h.pad.id)||j(e,h.intervention_unit.id))},J=function(e){return{id:e.id,rig:null,well:null,fracFleet:null,interventionUnit:null,program:{id:null,name:null},completionWellInfo:{fracFleet:{id:null,name:null},pad:{id:null,name:null}},wells:null,isLoading:!0,appHash:M(e)}},K=function(r){return r.reduce((function(r,t){return y(y({},r),{},e({},t.id,J(t)))}),{})},Q=function(e,r){var t=[],n=[],a=[],i=[],u=[],s=[],l=[];e.forEach((function(e){var r=j(e,h.well.id),c=j(e,h.rig.id),o=j(e,h.frac_fleet.id),p=j(e,h.pad.id),d=j(e,h.intervention_unit.id),f=e.id;l.push([f]),d?(i.push([f,d]),r&&t.push([f,r])):r?t.push([f,r]):c?n.push([f,c]):o&&(a.push([f,o]),p?s.push([f,p]):u.push([f,o]))}));var c=r.current,o=c.rigsById,p=c.wellsById,d=c.fracFleetsById,f=c.interventionUnitsById,m=x(t,Object.keys(p)),v=x(n,Object.keys(o)),b=x(a,Object.keys(d)),w=x(i,Object.keys(f));return{appsWellIds:t,appsRigIds:n,appsFracFleetIds:a,appsPadIds:s,appIds:l,appsFracFleetToFetchWellsIds:u,appsInterventionUnitIds:i,uniqueWellIds:m,uniqueRigIds:v,uniqueFFIds:b,uniqueInterventionUnitIds:w}};export{P as fetchAssetEntitiesByAssetIds,R as fetchFracFleetWells,A as fetchFracFleets,S as fetchInterventionUnits,H as fetchPadWells,O as fetchRigs,k as fetchWells,j as getAppAssetSpecificTypeId,M as getAppHash,D as getAppsDataByFFs,z as getAppsDataByInterventionUnits,T as getAppsDataByPads,q as getAppsDataByRigs,W as getAppsDataByWells,J as getInitialAppData,K as getInitialAppsDataState,x as getUniqAssetIds,N as isAppWithSettings,Q as prepareDataForResolver};
1
+ import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import i from"jsona";import{get as a,isEmpty as u,keyBy as l,uniq as s}from"lodash";import{getWells as c,getRigs as o,getFracFleets as p,getInterventionUnits as d,getFracFleetWells as f,getPadWells as m,getResolvedAssets as v}from"../../../../clients/jsonApi/index.js";import{DEV_CENTER_CLI_APP_ID as b}from"../../../../constants/devcenter.js";import"../../../../constants/goals.js";import"../../../../constants/segment.js";import"../../../../constants/alerts.js";import"../../../../constants/apps.js";import"../../../../constants/drillstring.js";import"../../../../constants/completion.js";import"../../../../constants/appPackages.js";import"../../../../constants/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import{ASSET_TYPES as h}from"../../../../constants/assetTypes.js";import"../../../../constants/corvaCompanyId.js";import"../../../GradientManager/configuration/constants.js";import{getAppSegment as w}from"../../../../utils/devcenter.js";function g(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function y(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){e(r,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}))}return r}var _=new i,j=function(e,r){return+a(e,["settings",r])},x=function(e,r){return s(e.map((function(e){var r=t(e,2);return r[0],r[1]})).filter((function(e){return Number.isFinite(e)&&!r.includes(String(e))})))};function k(e){return I.apply(this,arguments)}function I(){return(I=r(n.mark((function e(r){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.length){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,c({ids:r,fields:["well.name","well.settings","well.company","well.asset_id","well.last_active_at","well.program","well.pad","well.frac_fleet","well.id","well.rig","rig.name","rig.asset_id","company.id","well.status","well.archivation"],include_arhivation_data:!0});case 5:return e.abrupt("return",e.sent);case 8:return e.prev=8,e.t0=e.catch(2),console.error(e.t0),e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function O(e){return F.apply(this,arguments)}function F(){return(F=r(n.mark((function e(r){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.length){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,o({ids:r,fields:["rig.name","rig.settings","rig.asset_id","rig.active_well","rig.last_active_well","well.name","well.settings","well.company","rig.program","well.asset_id","well.last_active_at","well.id","well.company.id"]});case 5:return e.abrupt("return",e.sent);case 8:return e.prev=8,e.t0=e.catch(2),console.error(e.t0),e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function P(e){return B.apply(this,arguments)}function B(){return(B=r(n.mark((function e(r){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.length){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,v({assets:r});case 5:return e.abrupt("return",e.sent);case 8:return e.prev=8,e.t0=e.catch(2),console.error(e.t0),e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}var U=function(e,r,t){return y(y({well:e&&y(y({},e.attributes),{},{id:e.id,companyId:a(e,"relationships.company.data.id")}),rig:{name:a(r,"attributes.name"),id:a(r,"id"),asset_id:a(r,"attributes.asset_id")},program:{id:a(r,"program.id")||null,name:a(r,"program.attributes.name")||null}},t&&{interventionUnit:y({id:+t.id,name:t.name},e&&{active_well:y({id:e.id},e.attributes)})}),{},{completionWellInfo:{pad:{id:a(e,"pad.id")||null,name:a(e,"pad.attributes.name")||null},fracFleet:{id:a(e,"fracFleet.id")||null,name:a(e,"fracFleet.attributes.name")||null}}})},W=function(e,r){return!r||u(r)?{}:e.reduce((function(e,n){var i=t(n,2),a=i[0],u=i[1],l=r[u];return l?(e[a]=U(l,l.rig),e):e}),{})},q=function(e,r){return!r||u(r)?{}:e.reduce((function(e,n){var i=t(n,2),a=i[0],u=i[1],l=r[u];return e[a]=U(null==l?void 0:l.well,l),e}),{})},D=function(e,r,n){return r||n?e.reduce((function(e,i){var a,u,l=t(i,2),s=l[0],c=l[1],o=null==r?void 0:r[c],p=null==n?void 0:n[s];return e[s]={fracFleet:o,wells:p,program:{id:(null==o||null===(a=o.program)||void 0===a?void 0:a.id)||null,name:(null==o||null===(u=o.program)||void 0===u?void 0:u.name)||null}},e}),{}):{}},T=function(e,r){return e||r?e.reduce((function(e,n){var i=t(n,2),a=i[0];i[1];var u=null==r?void 0:r[a];return e[a]={wells:u},e}),{}):{}},z=function(e,r,n,i){return!r||u(r)?{}:e.reduce((function(e,a){var u,l=t(a,2),s=l[0],c=l[1],o=r[c],p=null===(u=n.find((function(e){return e[0]===s})))||void 0===u?void 0:u[1],d=i[p]||o.well;return e[s]=U(d,null==d?void 0:d.rig,o),e}),{})};function A(e){return E.apply(this,arguments)}function E(){return(E=r(n.mark((function e(r){var t;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.length){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,p({ids:r,fields:["frac_fleet.name","frac_fleet.pads","frac_fleet.program","frac_fleet.current_pad_id","frac_fleet.pad_frac_fleets","frac_fleet.pad_frac_fleet.frac_fleet_lines"]});case 5:return t=e.sent,e.abrupt("return",t?_.deserialize(t):[]);case 9:return e.prev=9,e.t0=e.catch(2),console.error(e.t0),e.abrupt("return",[]);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}function S(e){return G.apply(this,arguments)}function G(){return(G=r(n.mark((function e(r){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.length){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,d({ids:r,fields:["intervention_unit.name","intervention_unit.type","intervention_unit.active_well"]});case 5:return e.abrupt("return",e.sent);case 8:return e.prev=8,e.t0=e.catch(2),console.error(e.t0),e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function R(e,r){return C.apply(this,arguments)}function C(){return C=r(n.mark((function e(i,u){var s,c,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=l(u,"id"),c=i.map(function(){var e=r(n.mark((function e(r){var i,u,l,c,o,p;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t(r,2),u=i[0],l=i[1],c={fields:"all",frac_fleet_id:l},o=s[u],u===b?c.app_key=a(o,["app","app_key"]):c.app_id=a(o,["app","id"]),e.prev=4,e.next=7,f(c);case 7:return p=e.sent,e.abrupt("return",p?_.deserialize(p):[]);case 11:return e.prev=11,e.t0=e.catch(4),console.error(e.t0),e.abrupt("return",[]);case 15:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(r){return e.apply(this,arguments)}}()),e.next=4,Promise.all(c);case 4:return o=e.sent,e.abrupt("return",o.reduce((function(e,r,t){return e[i[t][0]]=r,e}),{}));case 6:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function H(e,r){return L.apply(this,arguments)}function L(){return L=r(n.mark((function e(i,u){var s,c,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=l(u,"id"),c=i.map(function(){var e=r(n.mark((function e(r){var i,u,l,c,o,p;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t(r,2),u=i[0],l=i[1],c={fields:"all"},o=s[u],u===b?c.app_key=a(o,["app","app_key"]):c.app_id=a(o,["app","id"]),e.prev=4,e.next=7,m(l,c);case 7:return p=e.sent,e.abrupt("return",p?_.deserialize(p):[]);case 11:return e.prev=11,e.t0=e.catch(4),console.error(e.t0),e.abrupt("return",[]);case 15:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(r){return e.apply(this,arguments)}}()),e.next=4,Promise.all(c);case 4:return o=e.sent,e.abrupt("return",o.reduce((function(e,r,t){return e[i[t][0]]=r,e}),{}));case 6:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}var M=function(e){return[e.id,j(e,h.well.id),j(e,h.rig.id),j(e,h.frac_fleet.id),j(e,h.pad.id),j(e,h.intervention_unit.id),j(e,"deprecatedAssetId"),w(e)].join("-")},N=function(e){return Boolean(j(e,h.well.id)||j(e,h.rig.id)||j(e,h.frac_fleet.id)||j(e,h.pad.id)||j(e,h.intervention_unit.id))},J=function(e){return{id:e.id,rig:null,well:null,fracFleet:null,interventionUnit:null,program:{id:null,name:null},completionWellInfo:{fracFleet:{id:null,name:null},pad:{id:null,name:null}},wells:null,isLoading:!0,appHash:M(e)}},K=function(r){return r.reduce((function(r,t){return y(y({},r),{},e({},t.id,J(t)))}),{})},Q=function(e,r){var t=[],n=[],i=[],a=[],u=[],l=[],s=[];e.forEach((function(e){var r=j(e,h.well.id),c=j(e,h.rig.id),o=j(e,h.frac_fleet.id),p=j(e,h.pad.id),d=j(e,h.intervention_unit.id),f=e.id;s.push([f]),d?(a.push([f,d]),r&&t.push([f,r])):r?t.push([f,r]):c?n.push([f,c]):o&&(i.push([f,o]),p?l.push([f,p]):u.push([f,o]))}));var c=r.current,o=c.rigsById,p=c.wellsById,d=c.fracFleetsById,f=c.interventionUnitsById,m=x(t,Object.keys(p)),v=x(n,Object.keys(o)),b=x(i,Object.keys(d)),w=x(a,Object.keys(f));return{appsWellIds:t,appsRigIds:n,appsFracFleetIds:i,appsPadIds:l,appIds:s,appsFracFleetToFetchWellsIds:u,appsInterventionUnitIds:a,uniqueWellIds:m,uniqueRigIds:v,uniqueFFIds:b,uniqueInterventionUnitIds:w}};export{P as fetchAssetEntitiesByAssetIds,R as fetchFracFleetWells,A as fetchFracFleets,S as fetchInterventionUnits,H as fetchPadWells,O as fetchRigs,k as fetchWells,j as getAppAssetSpecificTypeId,M as getAppHash,D as getAppsDataByFFs,z as getAppsDataByInterventionUnits,T as getAppsDataByPads,q as getAppsDataByRigs,W as getAppsDataByWells,J as getInitialAppData,K as getInitialAppsDataState,x as getUniqAssetIds,N as isAppWithSettings,Q as prepareDataForResolver};
2
2
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/utils.js"],"sourcesContent":["import Jsona from 'jsona';\nimport { get, isEmpty, keyBy, uniq } from 'lodash';\n\nimport {\n getFracFleets,\n getFracFleetWells,\n getInterventionUnits,\n getPadWells,\n getResolvedAssets,\n getRigs,\n getWells,\n} from '~/clients/jsonApi';\nimport { DEV_CENTER_CLI_APP_ID } from '~constants';\nimport { ASSET_TYPES } from '~/constants/assetTypes';\nimport { getAppSegment } from '~/utils/devcenter';\n\nconst dataFormatter = new Jsona();\n\nexport const getAppAssetSpecificTypeId = (app, typeId) => +get(app, ['settings', typeId]);\n\nexport const getUniqAssetIds = (assetIds, cachedAssetIds) =>\n uniq(\n assetIds\n .map(([_appId, assetId]) => assetId)\n .filter(assetId => Number.isFinite(assetId) && !cachedAssetIds.includes(String(assetId)))\n );\n\nexport async function fetchWells(ids) {\n if (!ids.length) return null;\n\n try {\n // eslint-disable-next-line no-return-await\n return await getWells({\n ids,\n fields: [\n 'well.name',\n 'well.settings',\n 'well.company',\n 'well.asset_id',\n 'well.last_active_at',\n 'well.program',\n 'well.pad',\n 'well.frac_fleet',\n 'well.id',\n 'well.rig',\n 'rig.name',\n 'rig.asset_id',\n 'company.id',\n 'well.status',\n 'well.archivation',\n ],\n include_arhivation_data: true,\n });\n } catch (e) {\n console.error(e);\n return null;\n }\n}\n\nexport async function fetchRigs(ids) {\n if (!ids.length) return null;\n\n try {\n return await getRigs({\n ids,\n fields: [\n 'rig.name',\n 'rig.settings',\n 'rig.asset_id',\n 'rig.active_well',\n 'rig.last_active_well',\n 'well.name',\n 'well.settings',\n 'well.company',\n 'rig.program',\n 'well.asset_id',\n 'well.last_active_at',\n 'well.id',\n 'well.company.id',\n ],\n });\n } catch (e) {\n console.error(e);\n return null;\n }\n}\n\nexport async function fetchAssetEntitiesByAssetIds(assetIds) {\n if (!assetIds.length) return null;\n\n try {\n return await getResolvedAssets({\n assets: assetIds,\n });\n } catch (e) {\n console.error(e);\n return null;\n }\n}\n\nconst getWellObjectFromWellData = (well, rig, interventionUnit) => {\n return {\n well: well && {\n ...well.attributes,\n id: well.id,\n // NOTE: API doesn't return active child company id\n companyId: get(well, 'relationships.company.data.id'),\n },\n rig: {\n name: get(rig, 'attributes.name'),\n id: get(rig, 'id'),\n asset_id: get(rig, 'attributes.asset_id'),\n },\n program: {\n id: get(rig, 'program.id') || null,\n name: get(rig, 'program.attributes.name') || null,\n },\n ...(interventionUnit && {\n interventionUnit: {\n id: +interventionUnit.id,\n name: interventionUnit.name,\n },\n }),\n // NOTE: Support ff/pad in mixpanel for Asset Dashboards\n completionWellInfo: {\n pad: {\n id: get(well, 'pad.id') || null,\n name: get(well, 'pad.attributes.name') || null,\n },\n fracFleet: {\n id: get(well, 'fracFleet.id') || null,\n name: get(well, 'fracFleet.attributes.name') || null,\n },\n },\n };\n};\n\nexport const getAppsDataByWells = (appsWellIds, wellsById) => {\n if (!wellsById || isEmpty(wellsById)) return {};\n\n return appsWellIds.reduce((acc, [appId, wellId]) => {\n const well = wellsById[wellId];\n if (!well) return acc;\n\n acc[appId] = getWellObjectFromWellData(well, well.rig);\n\n return acc;\n }, {});\n};\n\nexport const getAppsDataByRigs = (appsRigIds, rigsById) => {\n if (!rigsById || isEmpty(rigsById)) return {};\n\n return appsRigIds.reduce((acc, [appId, rigId]) => {\n const rig = rigsById[rigId];\n acc[appId] = getWellObjectFromWellData(rig?.well, rig);\n\n return acc;\n }, {});\n};\n\nexport const getAppsDataByFFs = (appsFracFleetIds, ffsById, ffWellsData) => {\n if (!ffsById && !ffWellsData) return {};\n\n return appsFracFleetIds.reduce((acc, [appId, ffId]) => {\n const fracFleet = ffsById?.[ffId];\n const wells = ffWellsData?.[appId];\n\n acc[appId] = {\n fracFleet,\n wells,\n program: {\n id: fracFleet?.program?.id || null,\n name: fracFleet?.program?.name || null,\n },\n };\n\n return acc;\n }, {});\n};\n\nexport const getAppsDataByPads = (appsPadIds, padWellsData) => {\n if (!appsPadIds && !padWellsData) return {};\n\n return appsPadIds.reduce((acc, [appId, _padId]) => {\n const wells = padWellsData?.[appId];\n\n acc[appId] = {\n wells,\n };\n\n return acc;\n }, {});\n};\n\nexport const getAppsDataByInterventionUnits = (\n appsInterventionUnitIds,\n interventionUnitsById,\n appsWellIds,\n wellsById\n) => {\n if (!interventionUnitsById || isEmpty(interventionUnitsById)) return {};\n\n return appsInterventionUnitIds.reduce((acc, [appId, interventionUnitId]) => {\n const interventionUnit = interventionUnitsById[interventionUnitId];\n const appWellId = appsWellIds.find(appWellId => appWellId[0] === appId)?.[1];\n const well = wellsById[appWellId] || interventionUnit.well;\n\n acc[appId] = getWellObjectFromWellData(well, well?.rig, interventionUnit);\n\n return acc;\n }, {});\n};\n\nexport async function fetchFracFleets(ids) {\n if (!ids.length) return null;\n\n try {\n const response = await getFracFleets({\n ids,\n fields: [\n 'frac_fleet.name',\n 'frac_fleet.pads',\n 'frac_fleet.program',\n 'frac_fleet.current_pad_id',\n 'frac_fleet.pad_frac_fleets',\n 'frac_fleet.pad_frac_fleet.frac_fleet_lines',\n ],\n });\n\n return response ? dataFormatter.deserialize(response) : [];\n } catch (e) {\n console.error(e);\n return [];\n }\n}\n\nexport async function fetchInterventionUnits(ids) {\n if (!ids.length) return null;\n\n try {\n return await getInterventionUnits({\n ids,\n fields: ['intervention_unit.name', 'intervention_unit.type', 'intervention_unit.active_well'],\n });\n } catch (e) {\n console.error(e);\n return null;\n }\n}\n\nexport async function fetchFracFleetWells(appsFFIds, apps) {\n const appsById = keyBy(apps, 'id');\n const requests = appsFFIds.map(async ([appId, fracFleetId]) => {\n const options = { fields: 'all', frac_fleet_id: fracFleetId };\n\n const app = appsById[appId];\n\n if (appId === DEV_CENTER_CLI_APP_ID) options.app_key = get(app, ['app', 'app_key']);\n else options.app_id = get(app, ['app', 'id']);\n try {\n const response = await getFracFleetWells(options);\n return response ? dataFormatter.deserialize(response) : [];\n } catch (e) {\n console.error(e);\n return [];\n }\n });\n\n const responses = await Promise.all(requests);\n\n return responses.reduce((acc, currFFWells, i) => {\n acc[appsFFIds[i][0]] = currFFWells;\n return acc;\n }, {});\n}\n\nexport async function fetchPadWells(appsPadIds, apps) {\n const appsById = keyBy(apps, 'id');\n const requests = appsPadIds.map(async ([appId, padId]) => {\n const options = { fields: 'all' };\n\n const app = appsById[appId];\n\n if (appId === DEV_CENTER_CLI_APP_ID) options.app_key = get(app, ['app', 'app_key']);\n else options.app_id = get(app, ['app', 'id']);\n try {\n const response = await getPadWells(padId, options);\n return response ? dataFormatter.deserialize(response) : [];\n } catch (e) {\n console.error(e);\n return [];\n }\n });\n\n const responses = await Promise.all(requests);\n\n return responses.reduce((acc, currFFWells, i) => {\n acc[appsPadIds[i][0]] = currFFWells;\n return acc;\n }, {});\n}\n\nexport const getAppHash = app =>\n [\n app.id,\n getAppAssetSpecificTypeId(app, ASSET_TYPES.well.id),\n getAppAssetSpecificTypeId(app, ASSET_TYPES.rig.id),\n getAppAssetSpecificTypeId(app, ASSET_TYPES.frac_fleet.id),\n getAppAssetSpecificTypeId(app, ASSET_TYPES.pad.id),\n getAppAssetSpecificTypeId(app, ASSET_TYPES.intervention_unit.id),\n getAppAssetSpecificTypeId(app, 'deprecatedAssetId'),\n getAppSegment(app),\n ].join('-');\n\nexport const isAppWithSettings = app =>\n Boolean(\n getAppAssetSpecificTypeId(app, ASSET_TYPES.well.id) ||\n getAppAssetSpecificTypeId(app, ASSET_TYPES.rig.id) ||\n getAppAssetSpecificTypeId(app, ASSET_TYPES.frac_fleet.id) ||\n getAppAssetSpecificTypeId(app, ASSET_TYPES.pad.id) ||\n getAppAssetSpecificTypeId(app, ASSET_TYPES.intervention_unit.id)\n );\n\nexport const getInitialAppData = app => ({\n id: app.id,\n rig: null,\n well: null,\n fracFleet: null,\n interventionUnit: null,\n program: {\n id: null,\n name: null,\n },\n completionWellInfo: {\n fracFleet: {\n id: null,\n name: null,\n },\n pad: {\n id: null,\n name: null,\n },\n },\n wells: null,\n isLoading: true,\n appHash: getAppHash(app),\n});\n\nexport const getInitialAppsDataState = apps =>\n apps.reduce(\n (acc, app) => ({\n ...acc,\n [app.id]: getInitialAppData(app),\n }),\n {}\n );\n\nexport const prepareDataForResolver = (apps, cache) => {\n const appsWellIds = [];\n const appsRigIds = [];\n const appsFracFleetIds = [];\n const appsInterventionUnitIds = [];\n const appsFracFleetToFetchWellsIds = [];\n const appsPadIds = [];\n const appIds = [];\n\n apps.forEach(app => {\n const appWellId = getAppAssetSpecificTypeId(app, ASSET_TYPES.well.id);\n const appRigId = getAppAssetSpecificTypeId(app, ASSET_TYPES.rig.id);\n const appFracFleetId = getAppAssetSpecificTypeId(app, ASSET_TYPES.frac_fleet.id);\n const appPadId = getAppAssetSpecificTypeId(app, ASSET_TYPES.pad.id);\n const appInterventionUnitId = getAppAssetSpecificTypeId(app, ASSET_TYPES.intervention_unit.id);\n\n const appId = app.id;\n appIds.push([appId]);\n\n if (appInterventionUnitId) {\n appsInterventionUnitIds.push([appId, appInterventionUnitId]);\n // NOTE: we need to fetch well for intervention unit as there is no well in intervention unit\n if (appWellId) {\n appsWellIds.push([appId, appWellId]);\n }\n } else if (appWellId) {\n appsWellIds.push([appId, appWellId]);\n } else if (appRigId) {\n appsRigIds.push([appId, appRigId]);\n } else if (appFracFleetId) {\n appsFracFleetIds.push([appId, appFracFleetId]);\n if (appPadId) {\n appsPadIds.push([appId, appPadId]);\n } else {\n appsFracFleetToFetchWellsIds.push([appId, appFracFleetId]);\n }\n }\n });\n\n const { rigsById, wellsById, fracFleetsById, interventionUnitsById } = cache.current;\n\n const uniqueWellIds = getUniqAssetIds(appsWellIds, Object.keys(wellsById));\n const uniqueRigIds = getUniqAssetIds(appsRigIds, Object.keys(rigsById));\n const uniqueFFIds = getUniqAssetIds(appsFracFleetIds, Object.keys(fracFleetsById));\n const uniqueInterventionUnitIds = getUniqAssetIds(\n appsInterventionUnitIds,\n Object.keys(interventionUnitsById)\n );\n\n return {\n appsWellIds,\n appsRigIds,\n appsFracFleetIds,\n appsPadIds,\n appIds,\n appsFracFleetToFetchWellsIds,\n appsInterventionUnitIds,\n\n uniqueWellIds,\n uniqueRigIds,\n uniqueFFIds,\n uniqueInterventionUnitIds,\n };\n};\n"],"names":["dataFormatter","Jsona","getAppAssetSpecificTypeId","app","typeId","get","getUniqAssetIds","assetIds","cachedAssetIds","uniq","map","_ref","_ref2","_slicedToArray","filter","assetId","Number","isFinite","includes","String","fetchWells","_x","_fetchWells","apply","this","arguments","_asyncToGenerator","_regeneratorRuntime","mark","ids","wrap","_context","prev","next","length","abrupt","getWells","fields","include_arhivation_data","sent","t0","console","error","stop","_callee","fetchRigs","_x2","_fetchRigs","_context2","getRigs","_callee2","fetchAssetEntitiesByAssetIds","_x3","_fetchAssetEntitiesByAssetIds","_context3","getResolvedAssets","assets","_callee3","getWellObjectFromWellData","well","rig","interventionUnit","_objectSpread","attributes","id","companyId","name","asset_id","program","completionWellInfo","pad","fracFleet","getAppsDataByWells","appsWellIds","wellsById","isEmpty","reduce","acc","_ref3","_ref4","appId","wellId","getAppsDataByRigs","appsRigIds","rigsById","_ref5","_ref6","rigId","getAppsDataByFFs","appsFracFleetIds","ffsById","ffWellsData","_ref7","_fracFleet$program","_fracFleet$program2","_ref8","ffId","wells","getAppsDataByPads","appsPadIds","padWellsData","_ref9","_ref10","getAppsDataByInterventionUnits","appsInterventionUnitIds","interventionUnitsById","_ref11","_appsWellIds$find","_ref12","interventionUnitId","appWellId","find","fetchFracFleets","_x4","_fetchFracFleets","response","_context4","getFracFleets","deserialize","_callee4","fetchInterventionUnits","_x5","_fetchInterventionUnits","_context5","getInterventionUnits","_callee5","fetchFracFleetWells","_x6","_x7","_fetchFracFleetWells","_callee7","appsFFIds","apps","appsById","requests","responses","_context7","keyBy","_ref14","_callee6","_ref13","_ref15","fracFleetId","options","_context6","frac_fleet_id","DEV_CENTER_CLI_APP_ID","app_key","app_id","getFracFleetWells","_x10","Promise","all","currFFWells","i","fetchPadWells","_x8","_x9","_fetchPadWells","_callee9","_context9","_ref17","_callee8","_ref16","_ref18","padId","_context8","getPadWells","_x11","getAppHash","ASSET_TYPES","frac_fleet","intervention_unit","getAppSegment","join","isAppWithSettings","Boolean","getInitialAppData","isLoading","appHash","getInitialAppsDataState","prepareDataForResolver","cache","appsFracFleetToFetchWellsIds","appIds","forEach","appRigId","appFracFleetId","appPadId","appInterventionUnitId","push","current","fracFleetsById","uniqueWellIds","Object","keys","uniqueRigIds","uniqueFFIds","uniqueInterventionUnitIds"],"mappings":"4uDAgBA,IAAMA,EAAgB,IAAIC,EAEbC,EAA4B,SAACC,EAAKC,GAAM,OAAMC,EAAIF,EAAK,CAAC,WAAYC,GAAQ,EAE5EE,EAAkB,SAACC,EAAUC,GAAc,OACtDC,EACEF,EACGG,KAAI,SAAAC,GAAA,IAAAC,EAAAC,EAAAF,EAAA,GAAiB,OAATC,EAAA,GAASA,EAAA,EAAa,IAClCE,QAAO,SAAAC,GAAO,OAAIC,OAAOC,SAASF,KAAaP,EAAeU,SAASC,OAAOJ,GAAS,IAC3F,EAEH,SAAsBK,EAAUC,GAAA,OAAAC,EAAAC,MAAAC,KAAAC,UAAA,CA8B/B,SAAAH,IAAA,OAAAA,EAAAI,EAAAC,EAAAC,MA9BM,WAA0BC,GAAG,OAAAF,EAAAG,MAAA,SAAAC,GAAA,OAAA,OAAAA,EAAAC,KAAAD,EAAAE,MAAA,KAAA,EAAA,GAC7BJ,EAAIK,OAAM,CAAAH,EAAAE,KAAA,EAAA,KAAA,CAAA,OAAAF,EAAAI,OAAA,SAAS,MAAI,KAAA,EAAA,OAAAJ,EAAAC,KAAA,EAAAD,EAAAE,KAAA,EAIbG,EAAS,CACpBP,IAAAA,EACAQ,OAAQ,CACN,YACA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iBqG,KAAK,CAAC9G,EAAO2G,IAC1BC,EACFzF,EAAW2F,KAAK,CAAC9G,EAAO4G,IAExBL,EAA6BO,KAAK,CAAC9G,EAAO2G,IAGhD,IAEA,IAAuEL,EAAAA,EAAMS,QAArE3G,IAAAA,SAAUV,IAAAA,UAAWsH,IAAAA,eAAgBvF,IAAAA,sBAEvCwF,EAAgB3L,EAAgBmE,EAAayH,OAAOC,KAAKzH,IACzD0H,EAAe9L,EAAgB6E,EAAY+G,OAAOC,KAAK/G,IACvDiH,EAAc/L,EAAgBmF,EAAkByG,OAAOC,KAAKH,IAC5DM,EAA4BhM,EAChCkG,EACA0F,OAAOC,KAAK1F,IAGd,MAAO,CACLhC,YAAAA,EACAU,WAAAA,EACAM,iBAAAA,EACAU,WAAAA,EACAqF,OAAAA,EACAD,6BAAAA,EACA/E,wBAAAA,EAEAyF,cAAAA,EACAG,aAAAA,EACAC,YAAAA,EACAC,0BAAAA,EAEJ"}
1
+ {"version":3,"file":"utils.js","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/utils.js"],"sourcesContent":["import Jsona from 'jsona';\nimport { get, isEmpty, keyBy, uniq } from 'lodash';\n\nimport {\n getFracFleets,\n getFracFleetWells,\n getInterventionUnits,\n getPadWells,\n getResolvedAssets,\n getRigs,\n getWells,\n} from '~/clients/jsonApi';\nimport { DEV_CENTER_CLI_APP_ID } from '~constants';\nimport { ASSET_TYPES } from '~/constants/assetTypes';\nimport { getAppSegment } from '~/utils/devcenter';\n\nconst dataFormatter = new Jsona();\n\nexport const getAppAssetSpecificTypeId = (app, typeId) => +get(app, ['settings', typeId]);\n\nexport const getUniqAssetIds = (assetIds, cachedAssetIds) =>\n uniq(\n assetIds\n .map(([_appId, assetId]) => assetId)\n .filter(assetId => Number.isFinite(assetId) && !cachedAssetIds.includes(String(assetId)))\n );\n\nexport async function fetchWells(ids) {\n if (!ids.length) return null;\n\n try {\n // eslint-disable-next-line no-return-await\n return await getWells({\n ids,\n fields: [\n 'well.name',\n 'well.settings',\n 'well.company',\n 'well.asset_id',\n 'well.last_active_at',\n 'well.program',\n 'well.pad',\n 'well.frac_fleet',\n 'well.id',\n 'well.rig',\n 'rig.name',\n 'rig.asset_id',\n 'company.id',\n 'well.status',\n 'well.archivation',\n ],\n include_arhivation_data: true,\n });\n } catch (e) {\n console.error(e);\n return null;\n }\n}\n\nexport async function fetchRigs(ids) {\n if (!ids.length) return null;\n\n try {\n return await getRigs({\n ids,\n fields: [\n 'rig.name',\n 'rig.settings',\n 'rig.asset_id',\n 'rig.active_well',\n 'rig.last_active_well',\n 'well.name',\n 'well.settings',\n 'well.company',\n 'rig.program',\n 'well.asset_id',\n 'well.last_active_at',\n 'well.id',\n 'well.company.id',\n ],\n });\n } catch (e) {\n console.error(e);\n return null;\n }\n}\n\nexport async function fetchAssetEntitiesByAssetIds(assetIds) {\n if (!assetIds.length) return null;\n\n try {\n return await getResolvedAssets({\n assets: assetIds,\n });\n } catch (e) {\n console.error(e);\n return null;\n }\n}\n\nconst getWellObjectFromWellData = (well, rig, interventionUnit) => {\n return {\n well: well && {\n ...well.attributes,\n id: well.id,\n // NOTE: API doesn't return active child company id\n companyId: get(well, 'relationships.company.data.id'),\n },\n rig: {\n name: get(rig, 'attributes.name'),\n id: get(rig, 'id'),\n asset_id: get(rig, 'attributes.asset_id'),\n },\n program: {\n id: get(rig, 'program.id') || null,\n name: get(rig, 'program.attributes.name') || null,\n },\n ...(interventionUnit && {\n interventionUnit: {\n id: +interventionUnit.id,\n name: interventionUnit.name,\n ...(well && { active_well: { id: well.id, ...well.attributes } }),\n },\n }),\n // NOTE: Support ff/pad in mixpanel for Asset Dashboards\n completionWellInfo: {\n pad: {\n id: get(well, 'pad.id') || null,\n name: get(well, 'pad.attributes.name') || null,\n },\n fracFleet: {\n id: get(well, 'fracFleet.id') || null,\n name: get(well, 'fracFleet.attributes.name') || null,\n },\n },\n };\n};\n\nexport const getAppsDataByWells = (appsWellIds, wellsById) => {\n if (!wellsById || isEmpty(wellsById)) return {};\n\n return appsWellIds.reduce((acc, [appId, wellId]) => {\n const well = wellsById[wellId];\n if (!well) return acc;\n\n acc[appId] = getWellObjectFromWellData(well, well.rig);\n\n return acc;\n }, {});\n};\n\nexport const getAppsDataByRigs = (appsRigIds, rigsById) => {\n if (!rigsById || isEmpty(rigsById)) return {};\n\n return appsRigIds.reduce((acc, [appId, rigId]) => {\n const rig = rigsById[rigId];\n acc[appId] = getWellObjectFromWellData(rig?.well, rig);\n\n return acc;\n }, {});\n};\n\nexport const getAppsDataByFFs = (appsFracFleetIds, ffsById, ffWellsData) => {\n if (!ffsById && !ffWellsData) return {};\n\n return appsFracFleetIds.reduce((acc, [appId, ffId]) => {\n const fracFleet = ffsById?.[ffId];\n const wells = ffWellsData?.[appId];\n\n acc[appId] = {\n fracFleet,\n wells,\n program: {\n id: fracFleet?.program?.id || null,\n name: fracFleet?.program?.name || null,\n },\n };\n\n return acc;\n }, {});\n};\n\nexport const getAppsDataByPads = (appsPadIds, padWellsData) => {\n if (!appsPadIds && !padWellsData) return {};\n\n return appsPadIds.reduce((acc, [appId, _padId]) => {\n const wells = padWellsData?.[appId];\n\n acc[appId] = {\n wells,\n };\n\n return acc;\n }, {});\n};\n\nexport const getAppsDataByInterventionUnits = (\n appsInterventionUnitIds,\n interventionUnitsById,\n appsWellIds,\n wellsById\n) => {\n if (!interventionUnitsById || isEmpty(interventionUnitsById)) return {};\n\n return appsInterventionUnitIds.reduce((acc, [appId, interventionUnitId]) => {\n const interventionUnit = interventionUnitsById[interventionUnitId];\n const appWellId = appsWellIds.find(appWellId => appWellId[0] === appId)?.[1];\n const well = wellsById[appWellId] || interventionUnit.well;\n\n acc[appId] = getWellObjectFromWellData(well, well?.rig, interventionUnit);\n\n return acc;\n }, {});\n};\n\nexport async function fetchFracFleets(ids) {\n if (!ids.length) return null;\n\n try {\n const response = await getFracFleets({\n ids,\n fields: [\n 'frac_fleet.name',\n 'frac_fleet.pads',\n 'frac_fleet.program',\n 'frac_fleet.current_pad_id',\n 'frac_fleet.pad_frac_fleets',\n 'frac_fleet.pad_frac_fleet.frac_fleet_lines',\n ],\n });\n\n return response ? dataFormatter.deserialize(response) : [];\n } catch (e) {\n console.error(e);\n return [];\n }\n}\n\nexport async function fetchInterventionUnits(ids) {\n if (!ids.length) return null;\n\n try {\n return await getInterventionUnits({\n ids,\n fields: ['intervention_unit.name', 'intervention_unit.type', 'intervention_unit.active_well'],\n });\n } catch (e) {\n console.error(e);\n return null;\n }\n}\n\nexport async function fetchFracFleetWells(appsFFIds, apps) {\n const appsById = keyBy(apps, 'id');\n const requests = appsFFIds.map(async ([appId, fracFleetId]) => {\n const options = { fields: 'all', frac_fleet_id: fracFleetId };\n\n const app = appsById[appId];\n\n if (appId === DEV_CENTER_CLI_APP_ID) options.app_key = get(app, ['app', 'app_key']);\n else options.app_id = get(app, ['app', 'id']);\n try {\n const response = await getFracFleetWells(options);\n return response ? dataFormatter.deserialize(response) : [];\n } catch (e) {\n console.error(e);\n return [];\n }\n });\n\n const responses = await Promise.all(requests);\n\n return responses.reduce((acc, currFFWells, i) => {\n acc[appsFFIds[i][0]] = currFFWells;\n return acc;\n }, {});\n}\n\nexport async function fetchPadWells(appsPadIds, apps) {\n const appsById = keyBy(apps, 'id');\n const requests = appsPadIds.map(async ([appId, padId]) => {\n const options = { fields: 'all' };\n\n const app = appsById[appId];\n\n if (appId === DEV_CENTER_CLI_APP_ID) options.app_key = get(app, ['app', 'app_key']);\n else options.app_id = get(app, ['app', 'id']);\n try {\n const response = await getPadWells(padId, options);\n return response ? dataFormatter.deserialize(response) : [];\n } catch (e) {\n console.error(e);\n return [];\n }\n });\n\n const responses = await Promise.all(requests);\n\n return responses.reduce((acc, currFFWells, i) => {\n acc[appsPadIds[i][0]] = currFFWells;\n return acc;\n }, {});\n}\n\nexport const getAppHash = app =>\n [\n app.id,\n getAppAssetSpecificTypeId(app, ASSET_TYPES.well.id),\n getAppAssetSpecificTypeId(app, ASSET_TYPES.rig.id),\n getAppAssetSpecificTypeId(app, ASSET_TYPES.frac_fleet.id),\n getAppAssetSpecificTypeId(app, ASSET_TYPES.pad.id),\n getAppAssetSpecificTypeId(app, ASSET_TYPES.intervention_unit.id),\n getAppAssetSpecificTypeId(app, 'deprecatedAssetId'),\n getAppSegment(app),\n ].join('-');\n\nexport const isAppWithSettings = app =>\n Boolean(\n getAppAssetSpecificTypeId(app, ASSET_TYPES.well.id) ||\n getAppAssetSpecificTypeId(app, ASSET_TYPES.rig.id) ||\n getAppAssetSpecificTypeId(app, ASSET_TYPES.frac_fleet.id) ||\n getAppAssetSpecificTypeId(app, ASSET_TYPES.pad.id) ||\n getAppAssetSpecificTypeId(app, ASSET_TYPES.intervention_unit.id)\n );\n\nexport const getInitialAppData = app => ({\n id: app.id,\n rig: null,\n well: null,\n fracFleet: null,\n interventionUnit: null,\n program: {\n id: null,\n name: null,\n },\n completionWellInfo: {\n fracFleet: {\n id: null,\n name: null,\n },\n pad: {\n id: null,\n name: null,\n },\n },\n wells: null,\n isLoading: true,\n appHash: getAppHash(app),\n});\n\nexport const getInitialAppsDataState = apps =>\n apps.reduce(\n (acc, app) => ({\n ...acc,\n [app.id]: getInitialAppData(app),\n }),\n {}\n );\n\nexport const prepareDataForResolver = (apps, cache) => {\n const appsWellIds = [];\n const appsRigIds = [];\n const appsFracFleetIds = [];\n const appsInterventionUnitIds = [];\n const appsFracFleetToFetchWellsIds = [];\n const appsPadIds = [];\n const appIds = [];\n\n apps.forEach(app => {\n const appWellId = getAppAssetSpecificTypeId(app, ASSET_TYPES.well.id);\n const appRigId = getAppAssetSpecificTypeId(app, ASSET_TYPES.rig.id);\n const appFracFleetId = getAppAssetSpecificTypeId(app, ASSET_TYPES.frac_fleet.id);\n const appPadId = getAppAssetSpecificTypeId(app, ASSET_TYPES.pad.id);\n const appInterventionUnitId = getAppAssetSpecificTypeId(app, ASSET_TYPES.intervention_unit.id);\n\n const appId = app.id;\n appIds.push([appId]);\n\n if (appInterventionUnitId) {\n appsInterventionUnitIds.push([appId, appInterventionUnitId]);\n // NOTE: we need to fetch well for intervention unit as there is no well in intervention unit\n if (appWellId) {\n appsWellIds.push([appId, appWellId]);\n }\n } else if (appWellId) {\n appsWellIds.push([appId, appWellId]);\n } else if (appRigId) {\n appsRigIds.push([appId, appRigId]);\n } else if (appFracFleetId) {\n appsFracFleetIds.push([appId, appFracFleetId]);\n if (appPadId) {\n appsPadIds.push([appId, appPadId]);\n } else {\n appsFracFleetToFetchWellsIds.push([appId, appFracFleetId]);\n }\n }\n });\n\n const { rigsById, wellsById, fracFleetsById, interventionUnitsById } = cache.current;\n\n const uniqueWellIds = getUniqAssetIds(appsWellIds, Object.keys(wellsById));\n const uniqueRigIds = getUniqAssetIds(appsRigIds, Object.keys(rigsById));\n const uniqueFFIds = getUniqAssetIds(appsFracFleetIds, Object.keys(fracFleetsById));\n const uniqueInterventionUnitIds = getUniqAssetIds(\n appsInterventionUnitIds,\n Object.keys(interventionUnitsById)\n );\n\n return {\n appsWellIds,\n appsRigIds,\n appsFracFleetIds,\n appsPadIds,\n appIds,\n appsFracFleetToFetchWellsIds,\n appsInterventionUnitIds,\n\n uniqueWellIds,\n uniqueRigIds,\n uniqueFFIds,\n uniqueInterventionUnitIds,\n };\n};\n"],"names":["dataFormatter","Jsona","getAppAssetSpecificTypeId","app","typeId","get","getUniqAssetIds","assetIds","cachedAssetIds","uniq","map","_ref","_ref2","_slicedToArray","filter","assetId","Number","isFinite","includes","String","fetchWells","_x","_fetchWells","apply","this","arguments","_asyncToGenerator","_regeneratorRuntime","mark","ids","wrap","_context","prev","next","length","abrupt","getWells","fields","include_arhivation_data","sent","t0","console","error","stop","_callee","fetchRigs","_x2","_fetchRigs","_context2","getRigs","_callee2","fetchAssetEntitiesByAssetIds","_x3","_fetchAssetEntitiesByAssetIds","_context3","getResolvedAssets","assets","_callee3","getWellObjectFromWellData","well","rig","interventionUnit","_objectSpread","attributes","id","companyId","name","asset_id","program","active_well","completionWellInfo","pad","fracFleet","getAppsDataByWells","appsWellIds","wellsById","isEmpty","reduce","acc","_ref3","_ref4","appId","wellId","getAppsDataByRigs","appsRigIds","rigsById","_ref5","_ref6","rigId","getAppsDataByFFs","appsFracFleetIds","ffsById","ffWellsData","_ref7","_fracFleet$program","_fracFleet$program2","_ref8","ffId","wells","getAppsDataByPads","appsPadIds","padWellsData","_ref9","_ref10","getAppsDataByInterventionUnits","appsInterventionUnitIds","interventionUnitsById","_ref11","_appsWellIds$find","_ref12","interventionUnitId","appWellId","find","fetchFracFleets","_x4","_fetchFracFleets","response","_context4","getFracFleets","deserialize","_callee4","fetchInterventionUnits","_x5","_fetchInterventionUnits","_context5","getInterventionUnits","_callee5","fetchFracFleetWells","_x6","_x7","_fetchFracFleetWells","_callee7","appsFFIds","apps","appsById","requests","responses","_context7","keyBy","_ref14","_callee6","_ref13","_ref15","fracFleetId","options","_context6","frac_fleet_id","DEV_CENTER_CLI_APP_ID","app_key","app_id","getFracFleetWells","_x10","Promise","all","currFFWells","i","fetchPadWells","_x8","_x9","_fetchPadWells","_callee9","_context9","_ref17","_callee8","_ref16","_ref18","padId","_context8","getPadWells","_x11","getAppHash","ASSET_TYPES","frac_fleet","intervention_unit","getAppSegment","join","isAppWithSettings","Boolean","getInitialAppData","isLoading","appHash","getInitialAppsDataState","prepareDataForResolver","cache","appsFracFleetToFetchWellsIds","appIds","forEach","appRigId","appFracFleetId","appPadId","appInterventionUnitId","push","current","fracFleetsById","uniqueWellIds","Object","keys","uniqueRigIds","uniqueFFIds","uniqueInterventionUnitIds"],"mappings":"4uDAgBA,IAAMA,EAAgB,IAAIC,EAEbC,EAA4B,SAACC,EAAKC,GAAM,OAAMC,EAAIF,EAAK,CAAC,WAAYC,GAAQ,EAE5EE,EAAkB,SAACC,EAAUC,GAAc,OACtDC,EACEF,EACGG,KAAI,SAAAC,GAAA,IAAAC,EAAAC,EAAAF,EAAA,GAAiB,OAATC,EAAA,GAASA,EAAA,EAAa,IAClCE,QAAO,SAAAC,GAAO,OAAIC,OAAO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D,EAAKqD,SAAQ,SAAAvL,GACX,IAAM4G,EAAY7G,EAA0BC,EAAKwK,EAAYhH,KAAKK,IAC5D2H,EAAWzL,EAA0BC,EAAKwK,EAAY/G,IAAII,IAC1D4H,EAAiB1L,EAA0BC,EAAKwK,EAAYC,WAAW5G,IACvE6H,EAAW3L,EAA0BC,EAAKwK,EAAYpG,IAAIP,IAC1D8H,EAAwB5L,EAA0BC,EAAKwK,EAAYE,kBAAkB7G,IAErFiB,EAAQ9E,EAAI6D,GAClByH,EAAOM,KAAK,CAAC9G,IAET6G,GACFrF,EAAwBsF,KAAK,CAAC9G,EAAO6G,IAEjC/E,GACFrC,EAAYqH,KAAK,CAAC9G,EAAO8B,KAElBA,EACTrC,EAAYqH,KAAK,CAAC9G,EAAO8B,IAChB4E,EACTvG,EAAW2G,KAAK,CAAC9G,EAAO0G,IACfC,IACTlG,EAAiBqG,KAAK,CAAC9G,EAAO2G,IAC1BC,EACFzF,EAAW2F,KAAK,CAAC9G,EAAO4G,IAExBL,EAA6BO,KAAK,CAAC9G,EAAO2G,IAGhD,IAEA,IAAuEL,EAAAA,EAAMS,QAArE3G,IAAAA,SAAUV,IAAAA,UAAWsH,IAAAA,eAAgBvF,IAAAA,sBAEvCwF,EAAgB5L,EAAgBoE,EAAayH,OAAOC,KAAKzH,IACzD0H,EAAe/L,EAAgB8E,EAAY+G,OAAOC,KAAK/G,IACvDiH,EAAchM,EAAgBoF,EAAkByG,OAAOC,KAAKH,IAC5DM,EAA4BjM,EAChCmG,EACA0F,OAAOC,KAAK1F,IAGd,MAAO,CACLhC,YAAAA,EACAU,WAAAA,EACAM,iBAAAA,EACAU,WAAAA,EACAqF,OAAAA,EACAD,6BAAAA,EACA/E,wBAAAA,EAEAyF,cAAAA,EACAG,aAAAA,EACAC,YAAAA,EACAC,0BAAAA,EAEJ"}
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useContext as s,useState as e,useMemo as n,useCallback as i}from"react";import p from"classnames";import{pickBy as r,pick as c,noop as m}from"lodash";import{useTheme as a}from"@material-ui/core";import{BugReport as l}from"@material-ui/icons";import d from"../AppContext.js";import{DevCenterRouterContext as u}from"../DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import{jsx as j,jsxs as A,Fragment as g}from"react/jsx-runtime";import C from"./effects/useAppSettings.js";import V from"./effects/useAnnotationsList.js";import v from"./effects/useAnnotationsData.js";import I from"./effects/useAppMaximized.js";import h from"./components/AppActions/AppActions.js";import S from"./components/AppSettingsDialog/AppSettingsDialog.js";import"./components/AppSettingsDialog/components/RemoveAppButton.js";import"./components/AppSettingsDialog/components/SettingsAccordion.js";import"./components/AnnotationsButton/AnnotationsButton.js";import{NonPriorityMenus as f}from"./components/NonPriorityMenus/NonPriorityMenus.js";import b from"./components/FullscreenButton/FullscreenButton.js";import"./components/AppInfoMessage/AppInfoMessage.js";import D from"./components/DevCenterAppView/DevCenterAppView.js";import{DcFullscreenElemsCoordinatorProvider as M}from"./components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"./components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"./components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import P from"./components/RestoreAppSizeButton/index.js";import{getAppVersion as y,getAppAvailability as L}from"./utils.js";import x from"./components/PriorityMenus/PriorityMenus.js";import{RollbarWrapper as T}from"./components/RollbarWrapper/RollbarWrapper.js";import{CommentsSwitchProvider as k}from"./components/CommentsSwitch/CommentsSwitchProvider.js";import{CommentsSwitchButton as B}from"./components/CommentsSwitch/CommentsSwitchButton.js";import F from"./DevCenterAppContainer.css.js";import{isInsideNewMobileApp as H,isNativeDetected as O,isMobileDetected as w}from"../../../utils/mobileDetect.js";import R from"../../Icons/AnnotationIcon.js";import q from"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import{AnnotationsProvider as z}from"../../Annotations/AnnotationsContext.js";import"../../Toaster/Toaster.js";import{ToastContainer as E}from"../../Toaster/ToastContainer.js";import"../../../clients/subscriptions/constants.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../clients/subscriptions.v1.js";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions/subscriptions-client.factory.js";import W from"../../../effects/useDevCenterApp.js";import"../../../utils/index.js";import"uuid";import"jsona";import"../../../constants/segment.js";import"../../../utils/env.js";import{DEV_CENTER_CLI_APP_ID as _}from"../../../constants/devcenter.js";import"../../../constants/goals.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/appPackages.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../../constants/corvaCompanyId.js";import"../../GradientManager/configuration/constants.js";import"../../StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../../constants/streamSourceType.js";import"./components/CommentsSwitch/CommentsSwitchContext.js";import{AppCommonsProvider as G}from"../../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import{getAppSegment as U,getAppName as N,getTimestampFromQuery as K}from"../../../utils/devcenter.js";import{HelpCenterIcon as Z}from"../../HelpCenter/HelpCenterIcon.js";import"../../../componentsV2/Text/Text.js";import"../../../componentsV2/Grid/Grid.js";import"../../../componentsV2/Grid/Grid.scss.js";import"../../../componentsV2/Header/Header.scss.js";import"../../../componentsV2/Button/Button.js";import{ButtonIcon as J}from"../../../componentsV2/ButtonIcon/ButtonIcon.js";import{Tooltip as Q}from"../../../componentsV2/Tooltip/Tooltip.js";import"../../../componentsV2/Popover/Popover.js";import"../../../componentsV2/Radio/Radio.js";import"../../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../../componentsV2/Checkbox/Checkbox.js";import"../../../componentsV2/TextInput/TextInput.js";import"../../../componentsV2/Label/Label.scss.js";import"../../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../../componentsV2/TextLink/TextLink.js";import"../../../componentsV2/Chip/Chip.js";import"../../../componentsV2/ChipAlert/ChipAlert.js";import"../../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../../componentsV2/Avatar/Avatar.js";import"../../../componentsV2/Avatar/constants.js";import"../../../componentsV2/AvatarGroup/AvatarGroup.scss.js";import"@material-ui/lab";import"../../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../../componentsV2/Paper/Paper.js";import"../../../componentsV2/ModalWindow/ModalWindow.scss.js";import"@icon-park/react/es/all";import"../../../icons/IconParkProvider.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import"../../../icons/customIcons/icons/Pad.js";import"../../../icons/customIcons/icons/DrilloutUnit.js";import"../../../icons/customIcons/icons/FracFleet.js";import"../../../icons/customIcons/icons/Global.js";import"../../../icons/customIcons/icons/Program.js";import"../../../icons/customIcons/icons/Rig.js";import"../../../icons/customIcons/icons/Well.js";import"../../../icons/customIcons/icons/Gap.js";import"../../../icons/customIcons/icons/Pin.js";import"../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../icons/customIcons/icons/AttentionFilled.js";import"../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../icons/customIcons/icons/Archive.js";import"../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../icons/customIcons/icons/Unarchive.js";import"../../../icons/customIcons/icons/Archived.js";import"../../../componentsV2/Modal/Modal.scss.js";import"../../../componentsV2/Menu/Menu.js";import"../../../componentsV2/Counter/Counter.js";import"../../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../../componentsV2/Switch/Switch.js";import"../../../componentsV2/Tabs/Tabs.js";import"../../../componentsV2/EmptyState/EmptyState.scss.js";import"../../../componentsV2/FileIcon/FileIcon.js";import"../../../componentsV2/Tag/Tag.js";import"react-dropzone";import"../../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../../componentsV2/FilesLoader/FilesLoader.scss.js";import"../../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../../componentsV2/Skeleton/Skeleton.scss.js";import"../../../utils/main.js";import"../../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../../componentsV2/Stepper/Step/Step.scss.js";import"../../../componentsV2/Stepper/Stepper.scss.js";import"../../../componentsV2/ButtonLive/ButtonLive.js";import"../../../componentsV2/ButtonText/ButtonText.js";import"../../../componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js";import"../../../componentsV2/IndicatorLive/IndicatorLive.scss.js";import"../../../componentsV2/Accordion/Accordion.scss.js";import"../../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../../componentsV2/BadgeComment/BadgeComment.js";import"../../../componentsV2/AppContainer/AppContainer.js";import"../../../componentsV2/AppContainer/AppContainer.constants.js";import"../../../componentsV2/AppFooter/AppFooter.js";import"../../../componentsV2/AppHeader/AppHeader.constants.js";import"../../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../../componentsV2/AppHeader/AppAssets/utils.js";import"../../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../../PadModeSelect/PadModeSelect.js";import"../../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../../types/shared/Completions.js";import"../../PadModeSelect/types.js";import"lodash/flatten";import"lodash/partition";import"../../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js";import"../../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.constants.js";import"../../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js";import"../../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../../componentsV2/PadModeSelect/PadModeSelect.scss.js";import"../../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../AppIcon/AppIcon.js";import"../../../utils/getSingleAsset.js";import"../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"../../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../../componentsV2/AppContainer/headerCommon.scss.js";import"../../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../../componentsV2/AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../../componentsV2/AppSizeProvider/AppSizeProvider.js";import"../../../componentsV2/AppSettings/AppSettings.js";import"../../../componentsV2/AppSettings/AppSettings.constants.js";import"../../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../../componentsV2/AppHeader/V3/SettingsPopover/SettingsPopover.constants.js";import"../../../componentsV2/AppHeader/V3/SettingsPopover/SettingsPopover.scss.js";import"../../../componentsV2/AppHeader/V3/Actions/Actions.constants.js";import"../../../componentsV2/AppHeader/V3/Actions/Actions.scss.js";import"../../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js";import"../../../componentsV2/AppHeader/AppHeader.scss.js";import"../../../componentsV2/OffsetWellsButton/OffsetWellsButton.scss.js";import"../../../componentsV2/Autocomplete/Autocomplete.scss.js";import"../../../componentsV2/Menu/MenuItem/MenuItem.scss.js";import"../../../componentsV2/Autocomplete/AutocompleteListBox.js";import"../../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../../componentsV2/DatePicker/CalendarControls/CalendarControls.scss.js";import"../../../componentsV2/DatePicker/TimePicker/TimePicker.js";import"../../../componentsV2/DatePicker/Input/Input.js";import"../../../componentsV2/DatePicker/CalendarGrid/CalendarGrid.scss.js";import"../../../componentsV2/DatePicker/DatePicker.scss.js";import"../../../componentsV2/DragHandle/DragHandle.js";import{showSuccessNotification as X}from"../../../utils/notificationToasts.js";function Y(o,t){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(o);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),s.push.apply(s,e)}return s}function $(t){for(var s=1;s<arguments.length;s++){var e=null!=arguments[s]?arguments[s]:{};s%2?Y(Object(e),!0).forEach((function(s){o(t,s,e[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Y(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}var oo=O||w,to="DevCenter_AppContainer";function so(o){var w,Y,so,eo,no,io,po,ro,co,mo,ao,lo,uo,jo,Ao,go,Co,Vo,vo,Io,ho=o.CLIAppComponent,So=o.CLIAppSettings,fo=o.app,bo=o.appId,Do=o.className,Mo=o.coordinates,Po=o.currentDashboardAppsLastAnnotations,yo=o.currentUser,Lo=o.devCenterRouter,xo=o.isActionsDisabled,To=o.isSettingsDialogHidden,ko=o.layoutEnvironment,Bo=o.onAppContainerClick,Fo=void 0===Bo?m:Bo,Ho=o.onAppRemove,Oo=o.onReportBugClick,wo=o.onCloneDashboard,Ro=o.onHelpCenterClick,qo=o.onIsMaximizedChange,zo=o.onSettingChange,Eo=o.onSettingsChange,Wo=o.openIntercom,_o=void 0===Wo?m:Wo,Go=o.setIsFullscreenModalMode,Uo=void 0===Go?m:Go,No=o.timestamp,Ko=o.updateCurrentDashboardAppLastAnnotation,Zo=o.dashboardMeta,Jo=s(d),Qo=a(),Xo=e([]),Yo=t(Xo,2),$o=Yo[0],ot=Yo[1],tt=e([]),st=t(tt,2),et=st[0],nt=st[1],it=null!==(w=null==Jo?void 0:Jo[bo||fo.id])&&void 0!==w?w:{isLoading:!0},pt=null===(Y=fo.package)||void 0===Y||null===(so=Y.manifest)||void 0===so?void 0:so.application,rt=U(fo),ct=!(null==pt||null===(eo=pt.ui)||void 0===eo||!eo.multi_rig),mt=!(null==pt||null===(no=pt.ui)||void 0===no||!no.enable_comments),at=N(fo),lt=I({onIsMaximizedChange:qo,devCenterRouter:Lo,appId:bo}),dt=lt.isMaximized,ut=lt.setIsMaximized,jt=No||K(null===(io=Lo.location.query)||void 0===io?void 0:io.query),At=fo.id===_,gt=At&&oo?$($({},Mo),{},{w:12}):Mo,Ct=y(fo),Vt=W({CLIAppComponent:ho,CLIAppSettings:So,app:fo,version:Ct}),vt=Vt.isLoading,It=Vt.AppSettings,ht=Vt.AppComponent,St=C({setIsFullscreenModalMode:Uo}),ft=St.isAppSettingsDialogOpened,bt=St.toggleAppSettingsDialog,Dt=V(),Mt=Dt.isAnnotationsListOpened,Pt=Dt.toggleAnnotationsList,yt=vt||!yo||!ct&&it.isLoading,Lt=v({app:fo,appData:it,currentDashboardAppsLastAnnotations:Po}),xt=Lt.appLastAnnotation,Tt=Lt.assetCompanyId,kt=Lt.assetIdForAnnotation,Bt=Lt.isAppSupportsAnnotations,Ft=r(c(it,["well","rig","fracFleet","wells","interventionUnit"]),Boolean),Ht=n((function(){return null==et?void 0:et.map((function(o){return $($({},o),{},{onClick:function(){var t;null===(t=o.onClick)||void 0===t||t.call(o),o.to&&Lo.push(o.to)}})}))}),[et,Lo]),Ot=!(null==fo||null===(po=fo.package)||void 0===po||null===(ro=po.manifest)||void 0===ro||null===(co=ro.application)||void 0===co||null===(mo=co.ui)||void 0===mo||!mo.use_app_header_v3),wt=!(null==(Vo=Lo)||null===(vo=Vo.location)||void 0===vo||null===(Io=vo.pathname)||void 0===Io||!Io.startsWith("/home")),Rt=e(!1),qt=t(Rt,2),zt=qt[0],Et=qt[1],Wt=i((function(){Et(!0)}));return j(T,{companyId:null==fo||null===(ao=fo.app)||void 0===ao?void 0:ao.company_id,appKey:null==pt?void 0:pt.key,isCLIApp:At,rollbarManifestConfig:null==fo||null===(lo=fo.package)||void 0===lo||null===(uo=lo.manifest)||void 0===uo||null===(jo=uo.settings)||void 0===jo?void 0:jo.rollbar,version:Ct,children:j(u.Provider,{value:Lo,children:j(M,{setIsFullscreenModalMode:Uo,children:j(G,$($({maximized:dt,setMaximized:ut,appId:null==fo||null===(Ao=fo.app)||void 0===Ao?void 0:Ao.id,app:fo,appSettings:fo.settings,onSettingChange:zo,onSettingsChange:Eo,appHeadersV3Enabled:Ot,currentUser:yo,appData:it,layoutEnvironment:ko,appSettingsComponent:It,dashboardMeta:Zo,toggleAnnotationsList:Bt?Pt:void 0,onHelpCenterClick:Ro,secondaryMenuItems:Ht,onAppRemove:Ho,isInsideNewMobileApp:H,globalOffsetWells:null==Zo?void 0:Zo.globalOffsetWells,globalOffsetWellsVersion:null==Zo?void 0:Zo.globalOffsetWellsVersion},Ft),{},{children:j(k,{children:A("div",{className:p("dc-app-container",H&&"dc-app-container--inside-new-mobile-app",wt&&"dc-app-container--inside-home-page",Do,dt&&"dc-app-container__maximized",Qo.isLightTheme&&"dc-app-container__light-theme",F.container),"data-testid":"".concat(to,"_").concat(at),onClick:function(){return Fo()},children:[j(E,{}),j("div",{className:F.containerContent,children:j(D,{AppComponent:ht,app:fo,appData:Ft,isAppLoading:vt,availability:L(fo.availability,yo.company.with_subscription),isCLIApp:At,isLoading:yt,isMultiRig:ct,layoutEnvironment:ko,openIntercom:_o,segment:rt,toggleAppSettingsDialog:bt,onError:Wt,appProps:{coordinates:gt,currentUser:yo,devCenterRouter:Lo,onSettingChange:zo,onSettingsChange:Eo,segment:rt,setIsFullscreenModalMode:Uo,setIsMaximized:ut,setMainMenuItems:ot,setSecondaryMenuItems:nt,toggleAppSettingsDialog:bt,appHeaderProps:$({app:fo,appLastAnnotation:xt,appSettings:fo.settings,coordinates:gt,currentUser:yo,isMaximized:dt,layoutEnvironment:ko,onSettingChange:zo,toggleAnnotationsList:Pt,updateCurrentDashboardAppLastAnnotation:Ko},Ft),isNative:O,layoutEnvironment:ko,timestamp:jt}})}),ft&&j(S,{AppSettingsComponent:It,app:fo,appData:it,appName:at,currentUser:yo,isMultiRig:ct,isSettingsDialogHidden:To,layoutEnvironment:ko,onAppRemove:Ho,onCloneDashboard:wo,onSettingChange:zo,onSettingsChange:Eo,openIntercom:_o,rigId:null!==(go=null===(Co=it.rig)||void 0===Co?void 0:Co.id)&&void 0!==go?go:null,timestamp:jt,toggleAppSettingsDialog:bt}),Mt&&j(z,{children:j(q,{appId:fo.app.id,appSettings:fo.settings,appTitle:at,assetCompanyId:Tt,assetId:kt,currentUser:yo,onClose:Pt,showSuccessNotification:X})}),dt&&!Ot&&j(P,{setIsMaximized:ut}),!xo&&(!Ot||yt||zt)&&A(h,{children:[mt&&j(B,{currentUser:yo}),Bt&&j(Q,{title:"Add Annotation",placement:"top",disabled:!!oo,children:j(J,{size:"small",type:"tertiaryBg",onClick:Pt,testId:"".concat(to,"_addAnnotation"),children:j(R,{})})}),Oo&&!At&&j(Q,{title:"Report A Bug",placement:"top",disabled:!!oo,children:j(J,{size:"small",type:"tertiaryBg",onClick:function(){return Oo()},children:j(l,{})})}),j(Q,{placement:"top",disabled:!!oo||At,title:"Help Center",children:j(J,{testId:"".concat(to,"_helpContent"),onClick:function(){return Ro()},disabled:At,size:"small",type:"tertiaryBg",children:j(Z,{appId:fo.app.id,helpContentUpdatedAt:fo.help_content_updated_at})})}),!oo||dt||H?A(g,{children:[j(x,{menuItems:$o,devCenterRouter:Lo,isMobileView:oo}),j(f,{devCenterRouter:Lo,isMaximized:dt,isMobileView:oo,menuItems:et,setIsFullscreenModalMode:Uo,setIsMaximized:ut,toggleAppSettingsDialog:bt})]}):j(b,{setIsMaximized:ut})]})]})})}))})})})}export{so as default};
1
+ import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useContext as s,useState as e,useMemo as n,useCallback as i}from"react";import p from"classnames";import{pickBy as r,pick as c,noop as m}from"lodash";import{useTheme as a}from"@material-ui/core";import{BugReport as l}from"@material-ui/icons";import d from"../AppContext.js";import{DevCenterRouterContext as u}from"../DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import{jsx as j,jsxs as A,Fragment as g}from"react/jsx-runtime";import C from"./effects/useAppSettings.js";import V from"./effects/useAnnotationsList.js";import v from"./effects/useAnnotationsData.js";import I from"./effects/useAppMaximized.js";import h from"./components/AppActions/AppActions.js";import S from"./components/AppSettingsDialog/AppSettingsDialog.js";import"./components/AppSettingsDialog/components/RemoveAppButton.js";import"./components/AppSettingsDialog/components/SettingsAccordion.js";import"./components/AnnotationsButton/AnnotationsButton.js";import{NonPriorityMenus as f}from"./components/NonPriorityMenus/NonPriorityMenus.js";import b from"./components/FullscreenButton/FullscreenButton.js";import"./components/AppInfoMessage/AppInfoMessage.js";import D from"./components/DevCenterAppView/DevCenterAppView.js";import{DcFullscreenElemsCoordinatorProvider as M}from"./components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"./components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"./components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import P from"./components/RestoreAppSizeButton/index.js";import{getAppVersion as y,getAppAvailability as L}from"./utils.js";import x from"./components/PriorityMenus/PriorityMenus.js";import{RollbarWrapper as T}from"./components/RollbarWrapper/RollbarWrapper.js";import{CommentsSwitchProvider as k}from"./components/CommentsSwitch/CommentsSwitchProvider.js";import{CommentsSwitchButton as B}from"./components/CommentsSwitch/CommentsSwitchButton.js";import F from"./DevCenterAppContainer.css.js";import{isInsideNewMobileApp as H,isNativeDetected as O,isMobileDetected as w}from"../../../utils/mobileDetect.js";import R from"../../Icons/AnnotationIcon.js";import q from"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import{AnnotationsProvider as z}from"../../Annotations/AnnotationsContext.js";import"../../Toaster/Toaster.js";import{ToastContainer as E}from"../../Toaster/ToastContainer.js";import"../../../clients/subscriptions/constants.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../clients/subscriptions.v1.js";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions/subscriptions-client.factory.js";import W from"../../../effects/useDevCenterApp.js";import"../../../utils/index.js";import"uuid";import"jsona";import"../../../constants/segment.js";import"../../../utils/env.js";import{DEV_CENTER_CLI_APP_ID as _}from"../../../constants/devcenter.js";import"../../../constants/goals.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/appPackages.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../../constants/corvaCompanyId.js";import"../../GradientManager/configuration/constants.js";import"../../StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../../constants/streamSourceType.js";import"./components/CommentsSwitch/CommentsSwitchContext.js";import{AppCommonsProvider as U}from"../../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import{getAppSegment as G,getAppName as N,getTimestampFromQuery as K}from"../../../utils/devcenter.js";import{HelpCenterIcon as Z}from"../../HelpCenter/HelpCenterIcon.js";import"../../../componentsV2/Text/Text.js";import"../../../componentsV2/Grid/Grid.js";import"../../../componentsV2/Grid/Grid.scss.js";import"../../../componentsV2/Header/Header.scss.js";import"../../../componentsV2/Button/Button.js";import{ButtonIcon as J}from"../../../componentsV2/ButtonIcon/ButtonIcon.js";import{Tooltip as Q}from"../../../componentsV2/Tooltip/Tooltip.js";import"../../../componentsV2/Popover/Popover.js";import"../../../componentsV2/Radio/Radio.js";import"../../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../../componentsV2/Checkbox/Checkbox.js";import"../../../componentsV2/TextInput/TextInput.js";import"../../../componentsV2/Label/Label.scss.js";import"../../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../../componentsV2/TextLink/TextLink.js";import"../../../componentsV2/Chip/Chip.js";import"../../../componentsV2/ChipAlert/ChipAlert.js";import"../../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../../componentsV2/Avatar/Avatar.js";import"../../../componentsV2/Avatar/constants.js";import"../../../componentsV2/AvatarGroup/AvatarGroup.scss.js";import"@material-ui/lab";import"../../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../../componentsV2/Paper/Paper.js";import"../../../componentsV2/ModalWindow/ModalWindow.scss.js";import"@icon-park/react/es/all";import"../../../icons/IconParkProvider.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import"../../../icons/customIcons/icons/Pad.js";import"../../../icons/customIcons/icons/DrilloutUnit.js";import"../../../icons/customIcons/icons/FracFleet.js";import"../../../icons/customIcons/icons/Global.js";import"../../../icons/customIcons/icons/Program.js";import"../../../icons/customIcons/icons/Rig.js";import"../../../icons/customIcons/icons/Well.js";import"../../../icons/customIcons/icons/Gap.js";import"../../../icons/customIcons/icons/Pin.js";import"../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../icons/customIcons/icons/AttentionFilled.js";import"../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../icons/customIcons/icons/Archive.js";import"../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../icons/customIcons/icons/Unarchive.js";import"../../../icons/customIcons/icons/Archived.js";import"../../../icons/customIcons/icons/InterventionUnit.js";import"../../../componentsV2/Modal/Modal.scss.js";import"../../../componentsV2/Menu/Menu.js";import"../../../componentsV2/Counter/Counter.js";import"../../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../../componentsV2/Switch/Switch.js";import"../../../componentsV2/Tabs/Tabs.js";import"../../../componentsV2/EmptyState/EmptyState.scss.js";import"../../../componentsV2/FileIcon/FileIcon.js";import"../../../componentsV2/Tag/Tag.js";import"react-dropzone";import"../../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../../componentsV2/FilesLoader/FilesLoader.scss.js";import"../../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../../componentsV2/Skeleton/Skeleton.scss.js";import"../../../utils/main.js";import"../../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../../componentsV2/Stepper/Step/Step.scss.js";import"../../../componentsV2/Stepper/Stepper.scss.js";import"../../../componentsV2/ButtonLive/ButtonLive.js";import"../../../componentsV2/ButtonText/ButtonText.js";import"../../../componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js";import"../../../componentsV2/IndicatorLive/IndicatorLive.scss.js";import"../../../componentsV2/Accordion/Accordion.scss.js";import"../../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../../componentsV2/BadgeComment/BadgeComment.js";import"../../../componentsV2/AppContainer/AppContainer.js";import"../../../componentsV2/AppContainer/AppContainer.constants.js";import"../../../componentsV2/AppFooter/AppFooter.js";import"../../../componentsV2/AppHeader/AppHeader.constants.js";import"../../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../../componentsV2/AppHeader/AppAssets/utils.js";import"../../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../../PadModeSelect/PadModeSelect.js";import"../../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../../types/shared/Completions.js";import"../../PadModeSelect/types.js";import"lodash/flatten";import"lodash/partition";import"../../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js";import"../../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.constants.js";import"../../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js";import"../../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../../componentsV2/PadModeSelect/PadModeSelect.scss.js";import"../../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../AppIcon/AppIcon.js";import"../../../utils/getSingleAsset.js";import"../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"../../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../../componentsV2/AppContainer/headerCommon.scss.js";import"../../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../../componentsV2/AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../../componentsV2/AppSizeProvider/AppSizeProvider.js";import"../../../componentsV2/AppSettings/AppSettings.js";import"../../../componentsV2/AppSettings/AppSettings.constants.js";import"../../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../../componentsV2/AppHeader/V3/SettingsPopover/SettingsPopover.constants.js";import"../../../componentsV2/AppHeader/V3/SettingsPopover/SettingsPopover.scss.js";import"../../../componentsV2/AppHeader/V3/Actions/Actions.constants.js";import"../../../componentsV2/AppHeader/V3/Actions/Actions.scss.js";import"../../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js";import"../../../componentsV2/AppHeader/AppHeader.scss.js";import"../../../componentsV2/OffsetWellsButton/OffsetWellsButton.scss.js";import"../../../componentsV2/Autocomplete/Autocomplete.scss.js";import"../../../componentsV2/Menu/MenuItem/MenuItem.scss.js";import"../../../componentsV2/Autocomplete/AutocompleteListBox.js";import"../../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../../componentsV2/DatePicker/CalendarControls/CalendarControls.scss.js";import"../../../componentsV2/DatePicker/TimePicker/TimePicker.js";import"../../../componentsV2/DatePicker/Input/Input.js";import"../../../componentsV2/DatePicker/CalendarGrid/CalendarGrid.scss.js";import"../../../componentsV2/DatePicker/DatePicker.scss.js";import"../../../componentsV2/DragHandle/DragHandle.js";import{showSuccessNotification as X}from"../../../utils/notificationToasts.js";function Y(o,t){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(o);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),s.push.apply(s,e)}return s}function $(t){for(var s=1;s<arguments.length;s++){var e=null!=arguments[s]?arguments[s]:{};s%2?Y(Object(e),!0).forEach((function(s){o(t,s,e[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Y(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}var oo=O||w,to="DevCenter_AppContainer";function so(o){var w,Y,so,eo,no,io,po,ro,co,mo,ao,lo,uo,jo,Ao,go,Co,Vo,vo,Io,ho=o.CLIAppComponent,So=o.CLIAppSettings,fo=o.app,bo=o.appId,Do=o.className,Mo=o.coordinates,Po=o.currentDashboardAppsLastAnnotations,yo=o.currentUser,Lo=o.devCenterRouter,xo=o.isActionsDisabled,To=o.isSettingsDialogHidden,ko=o.layoutEnvironment,Bo=o.onAppContainerClick,Fo=void 0===Bo?m:Bo,Ho=o.onAppRemove,Oo=o.onReportBugClick,wo=o.onCloneDashboard,Ro=o.onHelpCenterClick,qo=o.onIsMaximizedChange,zo=o.onSettingChange,Eo=o.onSettingsChange,Wo=o.openIntercom,_o=void 0===Wo?m:Wo,Uo=o.setIsFullscreenModalMode,Go=void 0===Uo?m:Uo,No=o.timestamp,Ko=o.updateCurrentDashboardAppLastAnnotation,Zo=o.dashboardMeta,Jo=s(d),Qo=a(),Xo=e([]),Yo=t(Xo,2),$o=Yo[0],ot=Yo[1],tt=e([]),st=t(tt,2),et=st[0],nt=st[1],it=null!==(w=null==Jo?void 0:Jo[bo||fo.id])&&void 0!==w?w:{isLoading:!0},pt=null===(Y=fo.package)||void 0===Y||null===(so=Y.manifest)||void 0===so?void 0:so.application,rt=G(fo),ct=!(null==pt||null===(eo=pt.ui)||void 0===eo||!eo.multi_rig),mt=!(null==pt||null===(no=pt.ui)||void 0===no||!no.enable_comments),at=N(fo),lt=I({onIsMaximizedChange:qo,devCenterRouter:Lo,appId:bo}),dt=lt.isMaximized,ut=lt.setIsMaximized,jt=No||K(null===(io=Lo.location.query)||void 0===io?void 0:io.query),At=fo.id===_,gt=At&&oo?$($({},Mo),{},{w:12}):Mo,Ct=y(fo),Vt=W({CLIAppComponent:ho,CLIAppSettings:So,app:fo,version:Ct}),vt=Vt.isLoading,It=Vt.AppSettings,ht=Vt.AppComponent,St=C({setIsFullscreenModalMode:Go}),ft=St.isAppSettingsDialogOpened,bt=St.toggleAppSettingsDialog,Dt=V(),Mt=Dt.isAnnotationsListOpened,Pt=Dt.toggleAnnotationsList,yt=vt||!yo||!ct&&it.isLoading,Lt=v({app:fo,appData:it,currentDashboardAppsLastAnnotations:Po}),xt=Lt.appLastAnnotation,Tt=Lt.assetCompanyId,kt=Lt.assetIdForAnnotation,Bt=Lt.isAppSupportsAnnotations,Ft=r(c(it,["well","rig","fracFleet","wells","interventionUnit"]),Boolean),Ht=n((function(){return null==et?void 0:et.map((function(o){return $($({},o),{},{onClick:function(){var t;null===(t=o.onClick)||void 0===t||t.call(o),o.to&&Lo.push(o.to)}})}))}),[et,Lo]),Ot=!(null==fo||null===(po=fo.package)||void 0===po||null===(ro=po.manifest)||void 0===ro||null===(co=ro.application)||void 0===co||null===(mo=co.ui)||void 0===mo||!mo.use_app_header_v3),wt=!(null==(Vo=Lo)||null===(vo=Vo.location)||void 0===vo||null===(Io=vo.pathname)||void 0===Io||!Io.startsWith("/home")),Rt=e(!1),qt=t(Rt,2),zt=qt[0],Et=qt[1],Wt=i((function(){Et(!0)}));return j(T,{companyId:null==fo||null===(ao=fo.app)||void 0===ao?void 0:ao.company_id,appKey:null==pt?void 0:pt.key,isCLIApp:At,rollbarManifestConfig:null==fo||null===(lo=fo.package)||void 0===lo||null===(uo=lo.manifest)||void 0===uo||null===(jo=uo.settings)||void 0===jo?void 0:jo.rollbar,version:Ct,children:j(u.Provider,{value:Lo,children:j(M,{setIsFullscreenModalMode:Go,children:j(U,$($({maximized:dt,setMaximized:ut,appId:null==fo||null===(Ao=fo.app)||void 0===Ao?void 0:Ao.id,app:fo,appSettings:fo.settings,onSettingChange:zo,onSettingsChange:Eo,appHeadersV3Enabled:Ot,currentUser:yo,appData:it,layoutEnvironment:ko,appSettingsComponent:It,dashboardMeta:Zo,toggleAnnotationsList:Bt?Pt:void 0,onHelpCenterClick:Ro,secondaryMenuItems:Ht,onAppRemove:Ho,isInsideNewMobileApp:H,globalOffsetWells:null==Zo?void 0:Zo.globalOffsetWells,globalOffsetWellsVersion:null==Zo?void 0:Zo.globalOffsetWellsVersion},Ft),{},{children:j(k,{children:A("div",{className:p("dc-app-container",H&&"dc-app-container--inside-new-mobile-app",wt&&"dc-app-container--inside-home-page",Do,dt&&"dc-app-container__maximized",Qo.isLightTheme&&"dc-app-container__light-theme",F.container),"data-testid":"".concat(to,"_").concat(at),onClick:function(){return Fo()},children:[j(E,{}),j("div",{className:F.containerContent,children:j(D,{AppComponent:ht,app:fo,appData:Ft,isAppLoading:vt,availability:L(fo.availability,yo.company.with_subscription),isCLIApp:At,isLoading:yt,isMultiRig:ct,layoutEnvironment:ko,openIntercom:_o,segment:rt,toggleAppSettingsDialog:bt,onError:Wt,appProps:{coordinates:gt,currentUser:yo,devCenterRouter:Lo,onSettingChange:zo,onSettingsChange:Eo,segment:rt,setIsFullscreenModalMode:Go,setIsMaximized:ut,setMainMenuItems:ot,setSecondaryMenuItems:nt,toggleAppSettingsDialog:bt,appHeaderProps:$({app:fo,appLastAnnotation:xt,appSettings:fo.settings,coordinates:gt,currentUser:yo,isMaximized:dt,layoutEnvironment:ko,onSettingChange:zo,toggleAnnotationsList:Pt,updateCurrentDashboardAppLastAnnotation:Ko},Ft),isNative:O,layoutEnvironment:ko,timestamp:jt}})}),ft&&j(S,{AppSettingsComponent:It,app:fo,appData:it,appName:at,currentUser:yo,isMultiRig:ct,isSettingsDialogHidden:To,layoutEnvironment:ko,onAppRemove:Ho,onCloneDashboard:wo,onSettingChange:zo,onSettingsChange:Eo,openIntercom:_o,rigId:null!==(go=null===(Co=it.rig)||void 0===Co?void 0:Co.id)&&void 0!==go?go:null,timestamp:jt,toggleAppSettingsDialog:bt}),Mt&&j(z,{children:j(q,{appId:fo.app.id,appSettings:fo.settings,appTitle:at,assetCompanyId:Tt,assetId:kt,currentUser:yo,onClose:Pt,showSuccessNotification:X})}),dt&&!Ot&&j(P,{setIsMaximized:ut}),!xo&&(!Ot||yt||zt)&&A(h,{children:[mt&&j(B,{currentUser:yo}),Bt&&j(Q,{title:"Add Annotation",placement:"top",disabled:!!oo,children:j(J,{size:"small",type:"tertiaryBg",onClick:Pt,testId:"".concat(to,"_addAnnotation"),children:j(R,{})})}),Oo&&!At&&j(Q,{title:"Report A Bug",placement:"top",disabled:!!oo,children:j(J,{size:"small",type:"tertiaryBg",onClick:function(){return Oo()},children:j(l,{})})}),j(Q,{placement:"top",disabled:!!oo||At,title:"Help Center",children:j(J,{testId:"".concat(to,"_helpContent"),onClick:function(){return Ro()},disabled:At,size:"small",type:"tertiaryBg",children:j(Z,{appId:fo.app.id,helpContentUpdatedAt:fo.help_content_updated_at})})}),!oo||dt||H?A(g,{children:[j(x,{menuItems:$o,devCenterRouter:Lo,isMobileView:oo}),j(f,{devCenterRouter:Lo,isMaximized:dt,isMobileView:oo,menuItems:et,setIsFullscreenModalMode:Go,setIsMaximized:ut,toggleAppSettingsDialog:bt})]}):j(b,{setIsMaximized:ut})]})]})})}))})})})}export{so as default};
2
2
  //# sourceMappingURL=DevCenterAppContainer.js.map