@corva/ui 3.43.0-7 → 3.43.0-9

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 (971) 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/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  51. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  52. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  53. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  54. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
  55. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js.map +1 -1
  56. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
  57. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  58. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
  59. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js.map +1 -1
  60. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  61. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
  62. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  63. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
  64. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  65. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  66. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  67. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  68. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  69. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  70. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  71. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  72. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  73. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  74. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  75. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  76. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  77. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  78. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  79. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  80. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  81. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  82. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  83. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  84. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  85. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  86. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  87. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  88. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  89. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  90. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  91. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  92. package/cjs-bundle/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  93. package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
  94. package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js.map +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/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
  148. package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
  149. package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.js +1 -1
  150. package/cjs-bundle/components/OffsetWellPickerV5/api/bic/fetchOffsetWellSelections.js +1 -1
  151. package/cjs-bundle/components/OffsetWellPickerV5/api/bic/fetchWellhubWells.js +1 -1
  152. package/cjs-bundle/components/OffsetWellPickerV5/api/metrics/fetchMetricsAggregate.js +2 -0
  153. package/cjs-bundle/components/OffsetWellPickerV5/api/metrics/fetchMetricsData.js +1 -1
  154. package/cjs-bundle/components/OffsetWellPickerV5/api/metrics/fetchMudAggregate.js +2 -0
  155. package/cjs-bundle/components/OffsetWellPickerV5/api/shared/constants.js +1 -1
  156. package/cjs-bundle/components/OffsetWellPickerV5/api/shared/fetchers/assetsFetcher.js +1 -1
  157. package/cjs-bundle/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.js +2 -0
  158. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js +1 -1
  159. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js.map +1 -1
  160. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  161. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  162. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.js +1 -1
  163. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.module.css.js +1 -1
  164. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.js +2 -0
  165. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.js.map +1 -0
  166. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.module.css.js +2 -0
  167. package/cjs-bundle/components/OffsetWellPickerV5/{api/shared/fetchers/wellsFetcher.js.map → components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.module.css.js.map} +1 -1
  168. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/DrawControl.js +1 -1
  169. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/GhostSelectionZone.js +2 -0
  170. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/GhostSelectionZone.js.map +1 -0
  171. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/constants.js +2 -0
  172. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/constants.js.map +1 -0
  173. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
  174. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  175. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.module.css.js +1 -1
  176. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHints.js +1 -1
  177. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js +2 -0
  178. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js.map +1 -0
  179. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.module.css.js +2 -0
  180. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.module.css.js.map +1 -0
  181. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.js +1 -1
  182. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useBoxSelection.js +1 -1
  183. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useConfirmationPopupPosition.js +2 -0
  184. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useConfirmationPopupPosition.js.map +1 -0
  185. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useElementSize.js +1 -1
  186. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.js +1 -1
  187. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLoadingTilesGeoJSON.js +2 -0
  188. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLoadingTilesGeoJSON.js.map +1 -0
  189. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.js +1 -1
  190. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapViewState.js +1 -1
  191. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusCircle.js +1 -1
  192. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusDrawing.js +2 -0
  193. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusDrawing.js.map +1 -0
  194. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusKeyboardHandlers.js +2 -0
  195. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusKeyboardHandlers.js.map +1 -0
  196. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSelectionToast.js +2 -0
  197. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSelectionToast.js.map +1 -0
  198. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSyncViewportBounds.js +2 -0
  199. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSyncViewportBounds.js.map +1 -0
  200. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useZoomLimitState.js +2 -0
  201. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useZoomLimitState.js.map +1 -0
  202. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getGhostZoneBounds.js +2 -0
  203. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getGhostZoneBounds.js.map +1 -0
  204. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/WellsMap.js +1 -1
  205. package/cjs-bundle/components/OffsetWellPickerV5/components/MapPreloader/MapPreloader.js +2 -0
  206. package/cjs-bundle/components/OffsetWellPickerV5/components/MapPreloader/MapPreloader.js.map +1 -0
  207. package/cjs-bundle/components/OffsetWellPickerV5/components/MapPreloader/MapPreloader.module.css.js +2 -0
  208. package/cjs-bundle/components/OffsetWellPickerV5/components/MapPreloader/MapPreloader.module.css.js.map +1 -0
  209. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  210. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
  211. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -1
  212. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js.map +1 -1
  213. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
  214. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +1 -1
  215. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricCell.js +2 -0
  216. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricCell.js.map +1 -0
  217. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricCell.module.css.js +2 -0
  218. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricCell.module.css.js.map +1 -0
  219. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  220. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricsSettingMenu.js.map +1 -1
  221. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  222. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js.map +1 -1
  223. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.module.css.js +1 -1
  224. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
  225. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.js.map +1 -1
  226. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
  227. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js.map +1 -1
  228. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/SkeletonTableRow.js +2 -0
  229. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/SkeletonTableRow.js.map +1 -0
  230. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/SkeletonTableRow.module.css.js +2 -0
  231. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/SkeletonTableRow.module.css.js.map +1 -0
  232. package/cjs-bundle/components/OffsetWellPickerV5/effects/useAdvancedWells.js +1 -1
  233. package/cjs-bundle/components/OffsetWellPickerV5/effects/useAdvancedWells.js.map +1 -1
  234. package/cjs-bundle/components/OffsetWellPickerV5/effects/useAssetsData.js +1 -1
  235. package/cjs-bundle/components/OffsetWellPickerV5/effects/useAssetsData.js.map +1 -1
  236. package/cjs-bundle/components/OffsetWellPickerV5/effects/useBicWells.js +1 -1
  237. package/cjs-bundle/components/OffsetWellPickerV5/effects/useBicWells.js.map +1 -1
  238. package/cjs-bundle/components/OffsetWellPickerV5/effects/useCompanies.js +1 -1
  239. package/cjs-bundle/components/OffsetWellPickerV5/effects/useCompanyMetricKey.js +1 -1
  240. package/cjs-bundle/components/OffsetWellPickerV5/effects/useCompanyProvider.js +1 -1
  241. package/cjs-bundle/components/OffsetWellPickerV5/effects/useDeferredLoading.js +2 -0
  242. package/cjs-bundle/components/OffsetWellPickerV5/effects/useDeferredLoading.js.map +1 -0
  243. package/cjs-bundle/components/OffsetWellPickerV5/effects/useFetchSubjectWell.js +1 -1
  244. package/cjs-bundle/components/OffsetWellPickerV5/effects/useFetchSubjectWell.js.map +1 -1
  245. package/cjs-bundle/components/OffsetWellPickerV5/effects/useFilteredWells.js +1 -1
  246. package/cjs-bundle/components/OffsetWellPickerV5/effects/useFilteredWells.js.map +1 -1
  247. package/cjs-bundle/components/OffsetWellPickerV5/effects/useInitialBounds.js +2 -0
  248. package/cjs-bundle/components/OffsetWellPickerV5/effects/useInitialBounds.js.map +1 -0
  249. package/cjs-bundle/components/OffsetWellPickerV5/effects/usePinnedWells.js +1 -1
  250. package/cjs-bundle/components/OffsetWellPickerV5/effects/useRowReorderAnimation.js +2 -0
  251. package/cjs-bundle/components/OffsetWellPickerV5/effects/useRowReorderAnimation.js.map +1 -0
  252. package/cjs-bundle/components/OffsetWellPickerV5/effects/useSearchedWells.js +1 -1
  253. package/cjs-bundle/components/OffsetWellPickerV5/effects/useSortedWells.js +1 -1
  254. package/cjs-bundle/components/OffsetWellPickerV5/effects/useSortedWells.js.map +1 -1
  255. package/cjs-bundle/components/OffsetWellPickerV5/effects/useTileCache/constants.js +2 -0
  256. package/cjs-bundle/components/OffsetWellPickerV5/effects/useTileCache/constants.js.map +1 -0
  257. package/cjs-bundle/components/OffsetWellPickerV5/effects/useTileCache/idle-callback.js +2 -0
  258. package/cjs-bundle/components/OffsetWellPickerV5/effects/useTileCache/idle-callback.js.map +1 -0
  259. package/cjs-bundle/components/OffsetWellPickerV5/effects/useTileCache/useTileCache.js +2 -0
  260. package/cjs-bundle/components/OffsetWellPickerV5/effects/useTileCache/useTileCache.js.map +1 -0
  261. package/cjs-bundle/components/OffsetWellPickerV5/effects/useTileLoading.js +2 -0
  262. package/cjs-bundle/components/OffsetWellPickerV5/effects/useTileLoading.js.map +1 -0
  263. package/cjs-bundle/components/OffsetWellPickerV5/effects/useViewportWells/constants.js +2 -0
  264. package/cjs-bundle/components/OffsetWellPickerV5/effects/useViewportWells/constants.js.map +1 -0
  265. package/cjs-bundle/components/OffsetWellPickerV5/effects/useViewportWells/fetchTile.js +2 -0
  266. package/cjs-bundle/components/OffsetWellPickerV5/effects/useViewportWells/fetchTile.js.map +1 -0
  267. package/cjs-bundle/components/OffsetWellPickerV5/effects/useViewportWells/processQueue.js +2 -0
  268. package/cjs-bundle/components/OffsetWellPickerV5/effects/useViewportWells/processQueue.js.map +1 -0
  269. package/cjs-bundle/components/OffsetWellPickerV5/effects/useViewportWells/useViewportWells.js +2 -0
  270. package/cjs-bundle/components/OffsetWellPickerV5/effects/useViewportWells/useViewportWells.js.map +1 -0
  271. package/cjs-bundle/components/OffsetWellPickerV5/stores/selection-tool-store/SelectionToolStoreContext.js +2 -0
  272. package/cjs-bundle/components/OffsetWellPickerV5/stores/selection-tool-store/SelectionToolStoreContext.js.map +1 -0
  273. package/cjs-bundle/components/OffsetWellPickerV5/stores/selection-tool-store/SelectionToolStoreProvider.js +2 -0
  274. package/cjs-bundle/components/OffsetWellPickerV5/stores/selection-tool-store/SelectionToolStoreProvider.js.map +1 -0
  275. package/cjs-bundle/components/OffsetWellPickerV5/stores/selection-tool-store/createSelectionToolStore.js +2 -0
  276. package/cjs-bundle/components/OffsetWellPickerV5/stores/selection-tool-store/createSelectionToolStore.js.map +1 -0
  277. package/cjs-bundle/components/OffsetWellPickerV5/stores/selection-tool-store/useSelectionToolStore.js +2 -0
  278. package/cjs-bundle/components/OffsetWellPickerV5/stores/selection-tool-store/useSelectionToolStore.js.map +1 -0
  279. package/cjs-bundle/components/OffsetWellPickerV5/stores/viewport-store/ViewportStoreContext.js +2 -0
  280. package/cjs-bundle/components/OffsetWellPickerV5/stores/viewport-store/ViewportStoreContext.js.map +1 -0
  281. package/cjs-bundle/components/OffsetWellPickerV5/stores/viewport-store/ViewportStoreProvider.js +2 -0
  282. package/cjs-bundle/components/OffsetWellPickerV5/stores/viewport-store/ViewportStoreProvider.js.map +1 -0
  283. package/cjs-bundle/components/OffsetWellPickerV5/stores/viewport-store/createViewportStore.js +2 -0
  284. package/cjs-bundle/components/OffsetWellPickerV5/stores/viewport-store/createViewportStore.js.map +1 -0
  285. package/cjs-bundle/components/OffsetWellPickerV5/stores/viewport-store/useViewportStore.js +2 -0
  286. package/cjs-bundle/components/OffsetWellPickerV5/stores/viewport-store/useViewportStore.js.map +1 -0
  287. package/cjs-bundle/components/OffsetWellPickerV5/utils/calculatePolygonCentroid.js +2 -0
  288. package/cjs-bundle/components/OffsetWellPickerV5/utils/calculatePolygonCentroid.js.map +1 -0
  289. package/cjs-bundle/components/OffsetWellPickerV5/utils/fetchByIdChunks.js +2 -0
  290. package/cjs-bundle/components/OffsetWellPickerV5/utils/selection-geometry.js +2 -0
  291. package/cjs-bundle/components/OffsetWellPickerV5/utils/selection-geometry.js.map +1 -0
  292. package/cjs-bundle/components/OffsetWellPickerV5/utils/tile-math.js +2 -0
  293. package/cjs-bundle/components/OffsetWellPickerV5/utils/tile-math.js.map +1 -0
  294. package/cjs-bundle/components/PadModeSelect/FracModeLabel.js +1 -1
  295. package/cjs-bundle/components/PadModeSelect/PadModeSelect.js +1 -1
  296. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  297. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  298. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  299. package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js +1 -1
  300. package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js.map +1 -1
  301. package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js +1 -1
  302. package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js.map +1 -1
  303. package/cjs-bundle/components/Popover/Popover.js +1 -1
  304. package/cjs-bundle/components/Popper/Popper.js +1 -1
  305. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  306. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  307. package/cjs-bundle/components/Search/Search.js +1 -1
  308. package/cjs-bundle/components/Select/SelectFilterBy.js +1 -1
  309. package/cjs-bundle/components/SettingEditors/ColorEditor/index.js +1 -1
  310. package/cjs-bundle/components/Stepper/Step/Step.js +1 -1
  311. package/cjs-bundle/components/Table/TableCell/TableCell.js +1 -1
  312. package/cjs-bundle/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
  313. package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  314. package/cjs-bundle/components/Toaster/Toaster.js +1 -1
  315. package/cjs-bundle/componentsV2/Accordion/Accordion.js +1 -1
  316. package/cjs-bundle/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
  317. package/cjs-bundle/componentsV2/AppDqPopover/DqAsset/DqAsset.js +1 -1
  318. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js +1 -1
  319. package/cjs-bundle/componentsV2/AppFooter/Warning.js +1 -1
  320. package/cjs-bundle/componentsV2/AppHeader/AppAssets/utils.js +1 -1
  321. package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  322. package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  323. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js +1 -1
  324. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js +1 -1
  325. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/constants.js +1 -1
  326. package/cjs-bundle/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js +1 -1
  327. package/cjs-bundle/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js +1 -1
  328. package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
  329. package/cjs-bundle/componentsV2/AppSettings/AppSettings.js +1 -1
  330. package/cjs-bundle/componentsV2/Autocomplete/Autocomplete.js +1 -1
  331. package/cjs-bundle/componentsV2/Breadcrumbs/Breadcrumbs.js +1 -1
  332. package/cjs-bundle/componentsV2/ButtonLive/ButtonLive.js +1 -1
  333. package/cjs-bundle/componentsV2/Chip/Chip.js +1 -1
  334. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
  335. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
  336. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  337. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
  338. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
  339. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
  340. package/cjs-bundle/componentsV2/CopyToClipboard/CopyToClipboard.js +1 -1
  341. package/cjs-bundle/componentsV2/Counter/Counter.js +1 -1
  342. package/cjs-bundle/componentsV2/DatePicker/CalendarControls/CalendarControls.js +1 -1
  343. package/cjs-bundle/componentsV2/DatePicker/Input/Input.js +1 -1
  344. package/cjs-bundle/componentsV2/DragHandle/DragHandle.js +1 -1
  345. package/cjs-bundle/componentsV2/FilesDropzone/FilesDropzone.js +1 -1
  346. package/cjs-bundle/componentsV2/FilesLoader/FilesLoader.js +1 -1
  347. package/cjs-bundle/componentsV2/Hint/Hint.js +1 -1
  348. package/cjs-bundle/componentsV2/ModalWindow/ModalWindow.js +1 -1
  349. package/cjs-bundle/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
  350. package/cjs-bundle/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js +1 -1
  351. package/cjs-bundle/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js +1 -1
  352. package/cjs-bundle/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
  353. package/cjs-bundle/componentsV2/Stepper/Step/Step.js +1 -1
  354. package/cjs-bundle/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js +1 -1
  355. package/cjs-bundle/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js +1 -1
  356. package/cjs-bundle/componentsV2/TemplatesControl/Popover/Popover.js +1 -1
  357. package/cjs-bundle/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js +1 -1
  358. package/cjs-bundle/componentsV2/TemplatesControl/ShareModal/ShareModal.js +1 -1
  359. package/cjs-bundle/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js +1 -1
  360. package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js +1 -1
  361. package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js +1 -1
  362. package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeTemplate/TemplatesTreeTemplate.js +1 -1
  363. package/cjs-bundle/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
  364. package/cjs-bundle/componentsV2/TemplatesControl/UnsavedChangesBadge/UnsavedChangesBadge.js +1 -1
  365. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js +1 -1
  366. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js +1 -1
  367. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js +1 -1
  368. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js +1 -1
  369. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js +1 -1
  370. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js +1 -1
  371. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js +1 -1
  372. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js +1 -1
  373. package/cjs-bundle/componentsV2/TextInput/TextInput.js +1 -1
  374. package/cjs-bundle/componentsV2/WellArchivedMessage/WellArchivedMessage.js +1 -1
  375. package/cjs-bundle/config/theme/index.js +1 -1
  376. package/cjs-bundle/config/theme/index.js.map +1 -1
  377. package/cjs-bundle/icons/customIcons/icons/Radius.js +2 -0
  378. package/cjs-bundle/icons/customIcons/icons/Radius.js.map +1 -0
  379. package/cjs-bundle/icons/index.js +1 -1
  380. package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  381. package/cjs-bundle/utils/goalsConfig/goalsConfig.js +1 -1
  382. package/components/AddComment/Popover.js +1 -1
  383. package/components/AddComment/Popover.js.map +1 -1
  384. package/components/AddComment/components/Content.js +1 -1
  385. package/components/AddComment/components/Content.js.map +1 -1
  386. package/components/AdvancedSlider/Handle.js +1 -1
  387. package/components/AdvancedSlider/Handle.js.map +1 -1
  388. package/components/Attachment/index.js +1 -1
  389. package/components/Attachment/index.js.map +1 -1
  390. package/components/BICOffsetPickerDialog/index.js +1 -1
  391. package/components/BICOffsetPickerDialog/index.js.map +1 -1
  392. package/components/Breadcrumbs/index.js +1 -1
  393. package/components/Button/components/LiveButton/index.js +1 -1
  394. package/components/Button/index.js +1 -1
  395. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  396. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  397. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  398. package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  399. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  400. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  401. package/components/Chart/components/AxisDropdown.js +1 -1
  402. package/components/Chart/components/AxisDropdown.js.map +1 -1
  403. package/components/Chart/components/ChartSelect.js +1 -1
  404. package/components/Chart/components/ChartSelect.js.map +1 -1
  405. package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  406. package/components/Chart/components/buttons/ChartTypeButton.js.map +1 -1
  407. package/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  408. package/components/Chart/components/buttons/DragToZoomButton.js.map +1 -1
  409. package/components/Chart/components/buttons/HideAxesButton.js +1 -1
  410. package/components/Chart/components/buttons/HideAxesButton.js.map +1 -1
  411. package/components/Chart/components/buttons/PanButton.js +1 -1
  412. package/components/Chart/components/buttons/PanButton.js.map +1 -1
  413. package/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  414. package/components/Chart/components/buttons/ResetZoomButton.js.map +1 -1
  415. package/components/Chart/components/buttons/ZoomInButton.js +1 -1
  416. package/components/Chart/components/buttons/ZoomInButton.js.map +1 -1
  417. package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  418. package/components/Chart/components/buttons/ZoomOutButton.js.map +1 -1
  419. package/components/Chip/index.js +1 -1
  420. package/components/CollapsableSidebar.js +1 -1
  421. package/components/CollapsableSidebar.js.map +1 -1
  422. package/components/ColorPicker/ColorPicker.js +1 -1
  423. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  424. package/components/CopyToClipboard/CopyToClipboard.js +1 -1
  425. package/components/Counter/index.js +1 -1
  426. package/components/DatePicker/index.js +1 -1
  427. package/components/DateTimePicker/index.js +1 -1
  428. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
  429. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  430. package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  431. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  432. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  433. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  434. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  435. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
  436. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js.map +1 -1
  437. package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
  438. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  439. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
  440. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js.map +1 -1
  441. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  442. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
  443. package/components/DocumentViewer/DocumentViewer.js +1 -1
  444. package/components/DocumentViewer/DocumentViewer.js.map +1 -1
  445. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  446. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  447. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  448. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  449. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  450. package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  451. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  452. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  453. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  454. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  455. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  456. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  457. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  458. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  459. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  460. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  461. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  462. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  463. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  464. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  465. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  466. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  467. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  468. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  469. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  470. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  471. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  472. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  473. package/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  474. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
  475. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js.map +1 -1
  476. package/components/FeedItem/FeedItem.js +1 -1
  477. package/components/FeedItem/FeedItem.js.map +1 -1
  478. package/components/FeedItem/components/FeedComments.js +1 -1
  479. package/components/FeedItem/components/FeedComments.js.map +1 -1
  480. package/components/FilesDropzone/FilesDropzone.js +1 -1
  481. package/components/FilesLoader/FilesLoader.js +1 -1
  482. package/components/FilesLoaderV2/FilesLoaderV2.js +1 -1
  483. package/components/Formula/CloseSuggestion.js +1 -1
  484. package/components/Formula/CloseSuggestion.js.map +1 -1
  485. package/components/Formula/Formula.js +1 -1
  486. package/components/GradientManager/GradientManager.js +1 -1
  487. package/components/GradientManager/GradientSelect.js +1 -1
  488. package/components/GradientPicker/GradientPicker.js +1 -1
  489. package/components/HelpCenter/HelpCenterIcon.js +1 -1
  490. package/components/HelpCenter/HelpCenterIcon.js.map +1 -1
  491. package/components/Hint/Hint.js +1 -1
  492. package/components/ImageViewer/index.js +1 -1
  493. package/components/ImageViewer/index.js.map +1 -1
  494. package/components/Modal/CorvaModal.js +1 -1
  495. package/components/Notifications/Toast.js +1 -1
  496. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  497. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  498. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  499. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  500. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  501. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  502. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  503. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  504. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  505. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  506. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  507. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  508. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  509. package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  510. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  511. package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  512. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  513. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  514. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  515. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js.map +1 -1
  516. package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  517. package/components/OffsetWellPickerV4/components/Filter/Filter.js.map +1 -1
  518. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  519. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
  520. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  521. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js.map +1 -1
  522. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  523. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js.map +1 -1
  524. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
  525. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js.map +1 -1
  526. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  527. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js.map +1 -1
  528. package/components/OffsetWellPickerV5/OffsetWellPickerV5.d.ts.map +1 -1
  529. package/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
  530. package/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
  531. package/components/OffsetWellPickerV5/OffsetWellPickerV5.types.d.ts +3 -0
  532. package/components/OffsetWellPickerV5/OffsetWellPickerV5.types.d.ts.map +1 -1
  533. package/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.d.ts.map +1 -1
  534. package/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.js +1 -1
  535. package/components/OffsetWellPickerV5/api/bic/fetchOffsetWellSelections.d.ts.map +1 -1
  536. package/components/OffsetWellPickerV5/api/bic/fetchOffsetWellSelections.js +1 -1
  537. package/components/OffsetWellPickerV5/api/bic/fetchWellhubWells.d.ts.map +1 -1
  538. package/components/OffsetWellPickerV5/api/bic/fetchWellhubWells.js +1 -1
  539. package/components/OffsetWellPickerV5/api/index.d.ts +0 -1
  540. package/components/OffsetWellPickerV5/api/index.d.ts.map +1 -1
  541. package/components/OffsetWellPickerV5/api/metrics/fetchMetricsAggregate.d.ts +4 -0
  542. package/components/OffsetWellPickerV5/api/metrics/fetchMetricsAggregate.d.ts.map +1 -0
  543. package/components/OffsetWellPickerV5/api/metrics/fetchMetricsAggregate.js +2 -0
  544. package/components/OffsetWellPickerV5/api/metrics/fetchMetricsData.d.ts +3 -1
  545. package/components/OffsetWellPickerV5/api/metrics/fetchMetricsData.d.ts.map +1 -1
  546. package/components/OffsetWellPickerV5/api/metrics/fetchMetricsData.js +1 -1
  547. package/components/OffsetWellPickerV5/api/metrics/fetchMetricsData.js.map +1 -1
  548. package/components/OffsetWellPickerV5/api/metrics/fetchMudAggregate.d.ts +4 -0
  549. package/components/OffsetWellPickerV5/api/metrics/fetchMudAggregate.d.ts.map +1 -0
  550. package/components/OffsetWellPickerV5/api/metrics/fetchMudAggregate.js +2 -0
  551. package/components/OffsetWellPickerV5/api/metrics/types.d.ts +9 -0
  552. package/components/OffsetWellPickerV5/api/metrics/types.d.ts.map +1 -0
  553. package/components/OffsetWellPickerV5/api/shared/constants.d.ts +1 -1
  554. package/components/OffsetWellPickerV5/api/shared/constants.d.ts.map +1 -1
  555. package/components/OffsetWellPickerV5/api/shared/constants.js +1 -1
  556. package/components/OffsetWellPickerV5/api/shared/fetchers/assetsFetcher.d.ts +3 -1
  557. package/components/OffsetWellPickerV5/api/shared/fetchers/assetsFetcher.d.ts.map +1 -1
  558. package/components/OffsetWellPickerV5/api/shared/fetchers/assetsFetcher.js +1 -1
  559. package/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.d.ts +3 -0
  560. package/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.d.ts.map +1 -0
  561. package/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.js +2 -0
  562. package/components/OffsetWellPickerV5/api/shared/types.d.ts +0 -9
  563. package/components/OffsetWellPickerV5/api/shared/types.d.ts.map +1 -1
  564. package/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js +1 -1
  565. package/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js.map +1 -1
  566. package/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  567. package/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  568. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.d.ts +9 -2
  569. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
  570. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.js +1 -1
  571. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.module.css.js +1 -1
  572. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.d.ts +11 -0
  573. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.d.ts.map +1 -0
  574. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.js +2 -0
  575. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.js.map +1 -0
  576. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.module.css.js +2 -0
  577. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.module.css.js.map +1 -0
  578. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/index.d.ts +2 -0
  579. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/index.d.ts.map +1 -0
  580. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/DrawControl.d.ts.map +1 -1
  581. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/DrawControl.js +1 -1
  582. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/GhostSelectionZone.d.ts +12 -0
  583. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/GhostSelectionZone.d.ts.map +1 -0
  584. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/GhostSelectionZone.js +2 -0
  585. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/GhostSelectionZone.js.map +1 -0
  586. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/constants.d.ts +15 -0
  587. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/constants.d.ts.map +1 -0
  588. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/constants.js +2 -0
  589. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/constants.js.map +1 -0
  590. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/index.d.ts +2 -0
  591. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/index.d.ts.map +1 -0
  592. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
  593. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.d.ts +2 -0
  594. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.d.ts.map +1 -1
  595. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  596. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.module.css.js +1 -1
  597. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHints.d.ts +6 -1
  598. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHints.d.ts.map +1 -1
  599. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHints.js +1 -1
  600. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/components/ConfirmationHint.d.ts +9 -0
  601. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/components/ConfirmationHint.d.ts.map +1 -0
  602. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.d.ts +8 -0
  603. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.d.ts.map +1 -0
  604. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js +2 -0
  605. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js.map +1 -0
  606. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.module.css.js +2 -0
  607. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.module.css.js.map +1 -0
  608. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/index.d.ts +2 -0
  609. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/index.d.ts.map +1 -0
  610. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.d.ts +8 -0
  611. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.d.ts.map +1 -1
  612. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.js +1 -1
  613. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/index.d.ts +7 -1
  614. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/index.d.ts.map +1 -1
  615. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useBoxSelection.d.ts +8 -2
  616. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useBoxSelection.d.ts.map +1 -1
  617. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useBoxSelection.js +1 -1
  618. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useConfirmationPopupPosition.d.ts +22 -0
  619. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useConfirmationPopupPosition.d.ts.map +1 -0
  620. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useConfirmationPopupPosition.js +2 -0
  621. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useConfirmationPopupPosition.js.map +1 -0
  622. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useElementSize.d.ts +3 -3
  623. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useElementSize.d.ts.map +1 -1
  624. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useElementSize.js +1 -1
  625. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.d.ts +10 -1
  626. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.d.ts.map +1 -1
  627. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.js +1 -1
  628. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLoadingTilesGeoJSON.d.ts +6 -0
  629. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLoadingTilesGeoJSON.d.ts.map +1 -0
  630. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLoadingTilesGeoJSON.js +2 -0
  631. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLoadingTilesGeoJSON.js.map +1 -0
  632. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.d.ts +5 -3
  633. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.d.ts.map +1 -1
  634. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.js +1 -1
  635. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapViewState.d.ts.map +1 -1
  636. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapViewState.js +1 -1
  637. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusCircle.d.ts +5 -3
  638. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusCircle.d.ts.map +1 -1
  639. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusCircle.js +1 -1
  640. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusDrawing.d.ts +32 -0
  641. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusDrawing.d.ts.map +1 -0
  642. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusDrawing.js +2 -0
  643. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusDrawing.js.map +1 -0
  644. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusKeyboardHandlers.d.ts +10 -0
  645. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusKeyboardHandlers.d.ts.map +1 -0
  646. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusKeyboardHandlers.js +2 -0
  647. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusKeyboardHandlers.js.map +1 -0
  648. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSelectionToast.d.ts +17 -0
  649. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSelectionToast.d.ts.map +1 -0
  650. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSelectionToast.js +2 -0
  651. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSelectionToast.js.map +1 -0
  652. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSyncViewportBounds.d.ts +4 -0
  653. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSyncViewportBounds.d.ts.map +1 -0
  654. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSyncViewportBounds.js +2 -0
  655. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSyncViewportBounds.js.map +1 -0
  656. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useZoomLimitState.d.ts +6 -0
  657. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useZoomLimitState.d.ts.map +1 -0
  658. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useZoomLimitState.js +2 -0
  659. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useZoomLimitState.js.map +1 -0
  660. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getGhostZoneBounds.d.ts +17 -0
  661. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getGhostZoneBounds.d.ts.map +1 -0
  662. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getGhostZoneBounds.js +2 -0
  663. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getGhostZoneBounds.js.map +1 -0
  664. package/components/OffsetWellPickerV5/components/Map/WellsMap.d.ts +8 -2
  665. package/components/OffsetWellPickerV5/components/Map/WellsMap.d.ts.map +1 -1
  666. package/components/OffsetWellPickerV5/components/Map/WellsMap.js +1 -1
  667. package/components/OffsetWellPickerV5/components/MapPreloader/MapPreloader.d.ts +9 -0
  668. package/components/OffsetWellPickerV5/components/MapPreloader/MapPreloader.d.ts.map +1 -0
  669. package/components/OffsetWellPickerV5/components/MapPreloader/MapPreloader.js +2 -0
  670. package/components/OffsetWellPickerV5/components/MapPreloader/MapPreloader.js.map +1 -0
  671. package/components/OffsetWellPickerV5/components/MapPreloader/MapPreloader.module.css.js +2 -0
  672. package/components/OffsetWellPickerV5/components/MapPreloader/MapPreloader.module.css.js.map +1 -0
  673. package/components/OffsetWellPickerV5/components/MapPreloader/index.d.ts +2 -0
  674. package/components/OffsetWellPickerV5/components/MapPreloader/index.d.ts.map +1 -0
  675. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  676. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
  677. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -1
  678. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js.map +1 -1
  679. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
  680. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +1 -1
  681. package/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricCell.d.ts +15 -0
  682. package/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricCell.d.ts.map +1 -0
  683. package/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricCell.js +2 -0
  684. package/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricCell.js.map +1 -0
  685. package/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricCell.module.css.js +2 -0
  686. package/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricCell.module.css.js.map +1 -0
  687. package/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  688. package/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricsSettingMenu.js.map +1 -1
  689. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.d.ts +13 -3
  690. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.d.ts.map +1 -1
  691. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  692. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js.map +1 -1
  693. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.module.css.js +1 -1
  694. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
  695. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.js.map +1 -1
  696. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.d.ts +5 -1
  697. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.d.ts.map +1 -1
  698. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
  699. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js.map +1 -1
  700. package/components/OffsetWellPickerV5/components/OffsetWellsTable/SkeletonTableRow.d.ts +16 -0
  701. package/components/OffsetWellPickerV5/components/OffsetWellsTable/SkeletonTableRow.d.ts.map +1 -0
  702. package/components/OffsetWellPickerV5/components/OffsetWellsTable/SkeletonTableRow.js +2 -0
  703. package/components/OffsetWellPickerV5/components/OffsetWellsTable/SkeletonTableRow.js.map +1 -0
  704. package/components/OffsetWellPickerV5/components/OffsetWellsTable/SkeletonTableRow.module.css.js +2 -0
  705. package/components/OffsetWellPickerV5/components/OffsetWellsTable/SkeletonTableRow.module.css.js.map +1 -0
  706. package/components/OffsetWellPickerV5/effects/index.d.ts +4 -2
  707. package/components/OffsetWellPickerV5/effects/index.d.ts.map +1 -1
  708. package/components/OffsetWellPickerV5/effects/useAdvancedWells.d.ts.map +1 -1
  709. package/components/OffsetWellPickerV5/effects/useAdvancedWells.js +1 -1
  710. package/components/OffsetWellPickerV5/effects/useAdvancedWells.js.map +1 -1
  711. package/components/OffsetWellPickerV5/effects/useAssetsData.js +1 -1
  712. package/components/OffsetWellPickerV5/effects/useAssetsData.js.map +1 -1
  713. package/components/OffsetWellPickerV5/effects/useBicWells.js +1 -1
  714. package/components/OffsetWellPickerV5/effects/useCompanies.js +1 -1
  715. package/components/OffsetWellPickerV5/effects/useCompanyMetricKey.js +1 -1
  716. package/components/OffsetWellPickerV5/effects/useCompanyProvider.js +1 -1
  717. package/components/OffsetWellPickerV5/effects/useDeferredLoading.d.ts +11 -0
  718. package/components/OffsetWellPickerV5/effects/useDeferredLoading.d.ts.map +1 -0
  719. package/components/OffsetWellPickerV5/effects/useDeferredLoading.js +2 -0
  720. package/components/OffsetWellPickerV5/effects/useDeferredLoading.js.map +1 -0
  721. package/components/OffsetWellPickerV5/effects/useFetchSubjectWell.js +1 -1
  722. package/components/OffsetWellPickerV5/effects/useFilteredWells.d.ts +1 -1
  723. package/components/OffsetWellPickerV5/effects/useFilteredWells.d.ts.map +1 -1
  724. package/components/OffsetWellPickerV5/effects/useFilteredWells.js +1 -1
  725. package/components/OffsetWellPickerV5/effects/useFilteredWells.js.map +1 -1
  726. package/components/OffsetWellPickerV5/effects/useInitialBounds.d.ts +25 -0
  727. package/components/OffsetWellPickerV5/effects/useInitialBounds.d.ts.map +1 -0
  728. package/components/OffsetWellPickerV5/effects/useInitialBounds.js +2 -0
  729. package/components/OffsetWellPickerV5/effects/useInitialBounds.js.map +1 -0
  730. package/components/OffsetWellPickerV5/effects/usePinnedWells.js +1 -1
  731. package/components/OffsetWellPickerV5/effects/useRowReorderAnimation.d.ts +24 -0
  732. package/components/OffsetWellPickerV5/effects/useRowReorderAnimation.d.ts.map +1 -0
  733. package/components/OffsetWellPickerV5/effects/useRowReorderAnimation.js +2 -0
  734. package/components/OffsetWellPickerV5/effects/useRowReorderAnimation.js.map +1 -0
  735. package/components/OffsetWellPickerV5/effects/useSearchedWells.js +1 -1
  736. package/components/OffsetWellPickerV5/effects/useSortedWells.d.ts +1 -1
  737. package/components/OffsetWellPickerV5/effects/useSortedWells.d.ts.map +1 -1
  738. package/components/OffsetWellPickerV5/effects/useSortedWells.js +1 -1
  739. package/components/OffsetWellPickerV5/effects/useSortedWells.js.map +1 -1
  740. package/components/OffsetWellPickerV5/effects/useTileCache/constants.d.ts +7 -0
  741. package/components/OffsetWellPickerV5/effects/useTileCache/constants.d.ts.map +1 -0
  742. package/components/OffsetWellPickerV5/effects/useTileCache/constants.js +2 -0
  743. package/components/OffsetWellPickerV5/effects/useTileCache/constants.js.map +1 -0
  744. package/components/OffsetWellPickerV5/effects/useTileCache/idle-callback.d.ts +25 -0
  745. package/components/OffsetWellPickerV5/effects/useTileCache/idle-callback.d.ts.map +1 -0
  746. package/components/OffsetWellPickerV5/effects/useTileCache/idle-callback.js +2 -0
  747. package/components/OffsetWellPickerV5/effects/useTileCache/idle-callback.js.map +1 -0
  748. package/components/OffsetWellPickerV5/effects/useTileCache/index.d.ts +3 -0
  749. package/components/OffsetWellPickerV5/effects/useTileCache/index.d.ts.map +1 -0
  750. package/components/OffsetWellPickerV5/effects/useTileCache/types.d.ts +18 -0
  751. package/components/OffsetWellPickerV5/effects/useTileCache/types.d.ts.map +1 -0
  752. package/components/OffsetWellPickerV5/effects/useTileCache/useTileCache.d.ts +84 -0
  753. package/components/OffsetWellPickerV5/effects/useTileCache/useTileCache.d.ts.map +1 -0
  754. package/components/OffsetWellPickerV5/effects/useTileCache/useTileCache.js +2 -0
  755. package/components/OffsetWellPickerV5/effects/useTileCache/useTileCache.js.map +1 -0
  756. package/components/OffsetWellPickerV5/effects/useTileLoading.d.ts +6 -0
  757. package/components/OffsetWellPickerV5/effects/useTileLoading.d.ts.map +1 -0
  758. package/components/OffsetWellPickerV5/effects/useTileLoading.js +2 -0
  759. package/components/OffsetWellPickerV5/effects/useTileLoading.js.map +1 -0
  760. package/components/OffsetWellPickerV5/effects/useViewportWells/constants.d.ts +5 -0
  761. package/components/OffsetWellPickerV5/effects/useViewportWells/constants.d.ts.map +1 -0
  762. package/components/OffsetWellPickerV5/effects/useViewportWells/constants.js +2 -0
  763. package/components/OffsetWellPickerV5/effects/useViewportWells/constants.js.map +1 -0
  764. package/components/OffsetWellPickerV5/effects/useViewportWells/fetchTile.d.ts +13 -0
  765. package/components/OffsetWellPickerV5/effects/useViewportWells/fetchTile.d.ts.map +1 -0
  766. package/components/OffsetWellPickerV5/effects/useViewportWells/fetchTile.js +2 -0
  767. package/components/OffsetWellPickerV5/effects/useViewportWells/fetchTile.js.map +1 -0
  768. package/components/OffsetWellPickerV5/effects/useViewportWells/index.d.ts +3 -0
  769. package/components/OffsetWellPickerV5/effects/useViewportWells/index.d.ts.map +1 -0
  770. package/components/OffsetWellPickerV5/effects/useViewportWells/processQueue.d.ts +14 -0
  771. package/components/OffsetWellPickerV5/effects/useViewportWells/processQueue.d.ts.map +1 -0
  772. package/components/OffsetWellPickerV5/effects/useViewportWells/processQueue.js +2 -0
  773. package/components/OffsetWellPickerV5/effects/useViewportWells/processQueue.js.map +1 -0
  774. package/components/OffsetWellPickerV5/effects/useViewportWells/types.d.ts +23 -0
  775. package/components/OffsetWellPickerV5/effects/useViewportWells/types.d.ts.map +1 -0
  776. package/components/OffsetWellPickerV5/effects/useViewportWells/useViewportWells.d.ts +6 -0
  777. package/components/OffsetWellPickerV5/effects/useViewportWells/useViewportWells.d.ts.map +1 -0
  778. package/components/OffsetWellPickerV5/effects/useViewportWells/useViewportWells.js +2 -0
  779. package/components/OffsetWellPickerV5/effects/useViewportWells/useViewportWells.js.map +1 -0
  780. package/components/OffsetWellPickerV5/stores/selection-tool-store/SelectionToolStoreContext.d.ts +3 -0
  781. package/components/OffsetWellPickerV5/stores/selection-tool-store/SelectionToolStoreContext.d.ts.map +1 -0
  782. package/components/OffsetWellPickerV5/stores/selection-tool-store/SelectionToolStoreContext.js +2 -0
  783. package/components/OffsetWellPickerV5/stores/selection-tool-store/SelectionToolStoreContext.js.map +1 -0
  784. package/components/OffsetWellPickerV5/stores/selection-tool-store/SelectionToolStoreProvider.d.ts +7 -0
  785. package/components/OffsetWellPickerV5/stores/selection-tool-store/SelectionToolStoreProvider.d.ts.map +1 -0
  786. package/components/OffsetWellPickerV5/stores/selection-tool-store/SelectionToolStoreProvider.js +2 -0
  787. package/components/OffsetWellPickerV5/stores/selection-tool-store/SelectionToolStoreProvider.js.map +1 -0
  788. package/components/OffsetWellPickerV5/stores/selection-tool-store/createSelectionToolStore.d.ts +5 -0
  789. package/components/OffsetWellPickerV5/stores/selection-tool-store/createSelectionToolStore.d.ts.map +1 -0
  790. package/components/OffsetWellPickerV5/stores/selection-tool-store/createSelectionToolStore.js +2 -0
  791. package/components/OffsetWellPickerV5/stores/selection-tool-store/createSelectionToolStore.js.map +1 -0
  792. package/components/OffsetWellPickerV5/stores/selection-tool-store/index.d.ts +7 -0
  793. package/components/OffsetWellPickerV5/stores/selection-tool-store/index.d.ts.map +1 -0
  794. package/components/OffsetWellPickerV5/stores/selection-tool-store/types.d.ts +51 -0
  795. package/components/OffsetWellPickerV5/stores/selection-tool-store/types.d.ts.map +1 -0
  796. package/components/OffsetWellPickerV5/stores/selection-tool-store/useSelectionToolStore.d.ts +3 -0
  797. package/components/OffsetWellPickerV5/stores/selection-tool-store/useSelectionToolStore.d.ts.map +1 -0
  798. package/components/OffsetWellPickerV5/stores/selection-tool-store/useSelectionToolStore.js +2 -0
  799. package/components/OffsetWellPickerV5/stores/selection-tool-store/useSelectionToolStore.js.map +1 -0
  800. package/components/OffsetWellPickerV5/stores/viewport-store/ViewportStoreContext.d.ts +3 -0
  801. package/components/OffsetWellPickerV5/stores/viewport-store/ViewportStoreContext.d.ts.map +1 -0
  802. package/components/OffsetWellPickerV5/stores/viewport-store/ViewportStoreContext.js +2 -0
  803. package/components/OffsetWellPickerV5/stores/viewport-store/ViewportStoreContext.js.map +1 -0
  804. package/components/OffsetWellPickerV5/stores/viewport-store/ViewportStoreProvider.d.ts +7 -0
  805. package/components/OffsetWellPickerV5/stores/viewport-store/ViewportStoreProvider.d.ts.map +1 -0
  806. package/components/OffsetWellPickerV5/stores/viewport-store/ViewportStoreProvider.js +2 -0
  807. package/components/OffsetWellPickerV5/stores/viewport-store/ViewportStoreProvider.js.map +1 -0
  808. package/components/OffsetWellPickerV5/stores/viewport-store/createViewportStore.d.ts +18 -0
  809. package/components/OffsetWellPickerV5/stores/viewport-store/createViewportStore.d.ts.map +1 -0
  810. package/components/OffsetWellPickerV5/stores/viewport-store/createViewportStore.js +2 -0
  811. package/components/OffsetWellPickerV5/stores/viewport-store/createViewportStore.js.map +1 -0
  812. package/components/OffsetWellPickerV5/stores/viewport-store/index.d.ts +7 -0
  813. package/components/OffsetWellPickerV5/stores/viewport-store/index.d.ts.map +1 -0
  814. package/components/OffsetWellPickerV5/stores/viewport-store/types.d.ts +41 -0
  815. package/components/OffsetWellPickerV5/stores/viewport-store/types.d.ts.map +1 -0
  816. package/components/OffsetWellPickerV5/stores/viewport-store/useViewportStore.d.ts +3 -0
  817. package/components/OffsetWellPickerV5/stores/viewport-store/useViewportStore.d.ts.map +1 -0
  818. package/components/OffsetWellPickerV5/stores/viewport-store/useViewportStore.js +2 -0
  819. package/components/OffsetWellPickerV5/stores/viewport-store/useViewportStore.js.map +1 -0
  820. package/components/OffsetWellPickerV5/types/SelectionZone.d.ts +16 -0
  821. package/components/OffsetWellPickerV5/types/SelectionZone.d.ts.map +1 -0
  822. package/components/OffsetWellPickerV5/utils/bounds-utils.d.ts +16 -0
  823. package/components/OffsetWellPickerV5/utils/bounds-utils.d.ts.map +1 -0
  824. package/components/OffsetWellPickerV5/utils/calculatePolygonCentroid.d.ts +15 -0
  825. package/components/OffsetWellPickerV5/utils/calculatePolygonCentroid.d.ts.map +1 -0
  826. package/components/OffsetWellPickerV5/utils/calculatePolygonCentroid.js +2 -0
  827. package/components/OffsetWellPickerV5/utils/calculatePolygonCentroid.js.map +1 -0
  828. package/components/OffsetWellPickerV5/utils/fetchByIdChunks.d.ts +9 -0
  829. package/components/OffsetWellPickerV5/utils/fetchByIdChunks.d.ts.map +1 -0
  830. package/components/OffsetWellPickerV5/utils/fetchByIdChunks.js +2 -0
  831. package/components/OffsetWellPickerV5/utils/fetchByIdChunks.js.map +1 -0
  832. package/components/OffsetWellPickerV5/utils/selection-geometry.d.ts +24 -0
  833. package/components/OffsetWellPickerV5/utils/selection-geometry.d.ts.map +1 -0
  834. package/components/OffsetWellPickerV5/utils/selection-geometry.js +2 -0
  835. package/components/OffsetWellPickerV5/utils/selection-geometry.js.map +1 -0
  836. package/components/OffsetWellPickerV5/utils/tile-math.d.ts +54 -0
  837. package/components/OffsetWellPickerV5/utils/tile-math.d.ts.map +1 -0
  838. package/components/OffsetWellPickerV5/utils/tile-math.js +2 -0
  839. package/components/OffsetWellPickerV5/utils/tile-math.js.map +1 -0
  840. package/components/PadModeSelect/FracModeLabel.js +1 -1
  841. package/components/PadModeSelect/PadModeSelect.js +1 -1
  842. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  843. package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  844. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  845. package/components/ParameterCharts/components/TraceHeader.js +1 -1
  846. package/components/ParameterCharts/components/TraceHeader.js.map +1 -1
  847. package/components/PinnableFilters/components/FiltersToggler.js +1 -1
  848. package/components/PinnableFilters/components/FiltersToggler.js.map +1 -1
  849. package/components/Popover/Popover.js +1 -1
  850. package/components/Popper/Popper.js +1 -1
  851. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  852. package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  853. package/components/Search/Search.js +1 -1
  854. package/components/Select/SelectFilterBy.js +1 -1
  855. package/components/SettingEditors/ColorEditor/index.js +1 -1
  856. package/components/Stepper/Step/Step.js +1 -1
  857. package/components/Table/TableCell/TableCell.js +1 -1
  858. package/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
  859. package/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  860. package/components/Template/TemplateSharingDialog/ChipSelector.d.ts +2 -2
  861. package/components/Toaster/Toaster.js +1 -1
  862. package/componentsV2/Accordion/Accordion.js +1 -1
  863. package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
  864. package/componentsV2/AppDqPopover/DqAsset/DqAsset.js +1 -1
  865. package/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js +1 -1
  866. package/componentsV2/AppFooter/Warning.js +1 -1
  867. package/componentsV2/AppHeader/AppAssets/utils.js +1 -1
  868. package/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  869. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  870. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js +1 -1
  871. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js +1 -1
  872. package/componentsV2/AppHeader/V3/AssetSelector/constants.js +1 -1
  873. package/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js +1 -1
  874. package/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js +1 -1
  875. package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
  876. package/componentsV2/AppSettings/AppSettings.js +1 -1
  877. package/componentsV2/Autocomplete/Autocomplete.js +1 -1
  878. package/componentsV2/Breadcrumbs/Breadcrumbs.js +1 -1
  879. package/componentsV2/ButtonLive/ButtonLive.js +1 -1
  880. package/componentsV2/Chip/Chip.js +1 -1
  881. package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
  882. package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
  883. package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  884. package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
  885. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
  886. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
  887. package/componentsV2/CopyToClipboard/CopyToClipboard.js +1 -1
  888. package/componentsV2/Counter/Counter.js +1 -1
  889. package/componentsV2/DatePicker/CalendarControls/CalendarControls.js +1 -1
  890. package/componentsV2/DatePicker/Input/Input.js +1 -1
  891. package/componentsV2/DragHandle/DragHandle.js +1 -1
  892. package/componentsV2/FilesDropzone/FilesDropzone.js +1 -1
  893. package/componentsV2/FilesLoader/FilesLoader.js +1 -1
  894. package/componentsV2/Hint/Hint.js +1 -1
  895. package/componentsV2/ModalWindow/ModalWindow.js +1 -1
  896. package/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
  897. package/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js +1 -1
  898. package/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js +1 -1
  899. package/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
  900. package/componentsV2/Stepper/Step/Step.js +1 -1
  901. package/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js +1 -1
  902. package/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js +1 -1
  903. package/componentsV2/TemplatesControl/Popover/Popover.js +1 -1
  904. package/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js +1 -1
  905. package/componentsV2/TemplatesControl/ShareModal/ShareModal.js +1 -1
  906. package/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js +1 -1
  907. package/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js +1 -1
  908. package/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js +1 -1
  909. package/componentsV2/TemplatesControl/TemplatesTreeTemplate/TemplatesTreeTemplate.js +1 -1
  910. package/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
  911. package/componentsV2/TemplatesControl/UnsavedChangesBadge/UnsavedChangesBadge.js +1 -1
  912. package/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js +1 -1
  913. package/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js +1 -1
  914. package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js +1 -1
  915. package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js +1 -1
  916. package/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js +1 -1
  917. package/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js +1 -1
  918. package/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js +1 -1
  919. package/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js +1 -1
  920. package/componentsV2/TextInput/TextInput.js +1 -1
  921. package/componentsV2/WellArchivedMessage/WellArchivedMessage.js +1 -1
  922. package/config/theme/index.js +1 -1
  923. package/config/theme/index.js.map +1 -1
  924. package/icons/customIcons/icons/Radius.d.ts +2 -0
  925. package/icons/customIcons/icons/Radius.d.ts.map +1 -0
  926. package/icons/customIcons/icons/Radius.js +2 -0
  927. package/icons/customIcons/icons/Radius.js.map +1 -0
  928. package/icons/customIcons/icons/index.d.ts +1 -0
  929. package/icons/customIcons/icons/index.d.ts.map +1 -1
  930. package/icons/index.js +1 -1
  931. package/package.json +4 -3
  932. package/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  933. package/utils/goalsConfig/goalsConfig.d.ts.map +1 -1
  934. package/utils/goalsConfig/goalsConfig.js +1 -1
  935. package/cjs-bundle/components/OffsetWellPickerV5/api/shared/fetchers/getAllWellAssetIds.js +0 -2
  936. package/cjs-bundle/components/OffsetWellPickerV5/api/shared/fetchers/wellsFetcher.js +0 -2
  937. package/cjs-bundle/components/OffsetWellPickerV5/api/wells/fetchCompanyIdsByWellIds.js +0 -2
  938. package/cjs-bundle/components/OffsetWellPickerV5/api/wells/fetchWells.js +0 -2
  939. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusResize.js +0 -2
  940. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusResize.js.map +0 -1
  941. package/cjs-bundle/components/OffsetWellPickerV5/effects/useFetchWells.js +0 -2
  942. package/cjs-bundle/components/OffsetWellPickerV5/utils/calculateBoundsFromRadius.js +0 -2
  943. package/cjs-bundle/components/OffsetWellPickerV5/utils/calculateBoundsFromRadius.js.map +0 -1
  944. package/components/OffsetWellPickerV5/api/shared/fetchers/getAllWellAssetIds.d.ts +0 -3
  945. package/components/OffsetWellPickerV5/api/shared/fetchers/getAllWellAssetIds.d.ts.map +0 -1
  946. package/components/OffsetWellPickerV5/api/shared/fetchers/getAllWellAssetIds.js +0 -2
  947. package/components/OffsetWellPickerV5/api/shared/fetchers/wellsFetcher.d.ts +0 -8
  948. package/components/OffsetWellPickerV5/api/shared/fetchers/wellsFetcher.d.ts.map +0 -1
  949. package/components/OffsetWellPickerV5/api/shared/fetchers/wellsFetcher.js +0 -2
  950. package/components/OffsetWellPickerV5/api/shared/fetchers/wellsFetcher.js.map +0 -1
  951. package/components/OffsetWellPickerV5/api/wells/fetchCompanyIdsByWellIds.js +0 -2
  952. package/components/OffsetWellPickerV5/api/wells/fetchWells.d.ts +0 -5
  953. package/components/OffsetWellPickerV5/api/wells/fetchWells.d.ts.map +0 -1
  954. package/components/OffsetWellPickerV5/api/wells/fetchWells.js +0 -2
  955. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusResize.js +0 -2
  956. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusResize.js.map +0 -1
  957. package/components/OffsetWellPickerV5/effects/useFetchWells.d.ts +0 -10
  958. package/components/OffsetWellPickerV5/effects/useFetchWells.d.ts.map +0 -1
  959. package/components/OffsetWellPickerV5/effects/useFetchWells.js +0 -2
  960. package/components/OffsetWellPickerV5/effects/useFetchWells.js.map +0 -1
  961. package/components/OffsetWellPickerV5/effects/useRadiusWells.d.ts +0 -2
  962. package/components/OffsetWellPickerV5/effects/useRadiusWells.d.ts.map +0 -1
  963. package/components/OffsetWellPickerV5/utils/calculateBoundsFromRadius.js +0 -2
  964. package/components/OffsetWellPickerV5/utils/calculateBoundsFromRadius.js.map +0 -1
  965. /package/cjs-bundle/components/OffsetWellPickerV5/api/{wells/fetchCompanyIdsByWellIds.js.map → metrics/fetchMetricsAggregate.js.map} +0 -0
  966. /package/cjs-bundle/components/OffsetWellPickerV5/api/{wells/fetchWells.js.map → metrics/fetchMudAggregate.js.map} +0 -0
  967. /package/cjs-bundle/components/OffsetWellPickerV5/api/shared/fetchers/{getAllWellAssetIds.js.map → getAssetsByBounds.js.map} +0 -0
  968. /package/cjs-bundle/components/OffsetWellPickerV5/{effects/useFetchWells.js.map → utils/fetchByIdChunks.js.map} +0 -0
  969. /package/components/OffsetWellPickerV5/api/{wells/fetchCompanyIdsByWellIds.js.map → metrics/fetchMetricsAggregate.js.map} +0 -0
  970. /package/components/OffsetWellPickerV5/api/{wells/fetchWells.js.map → metrics/fetchMudAggregate.js.map} +0 -0
  971. /package/components/OffsetWellPickerV5/api/shared/fetchers/{getAllWellAssetIds.js.map → getAssetsByBounds.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import s from"prop-types";import n from"../../DevCenter/AppHeader/AppHeader.js";import{AppHeader as c}from"../../../componentsV2/AppHeader/AppHeader.js";import"../../../componentsV2/AppHeader/AppHeader.constants.js";import{AppContainer as t}from"../../../componentsV2/AppContainer/AppContainer.js";import"../../../componentsV2/AppContainer/AppContainer.constants.js";import{EmptyState as i}from"../../../componentsV2/EmptyState/EmptyState.js";import{jsx as r,jsxs as e,Fragment as p}from"react/jsx-runtime";import"react";import{useAppCommonsInternal as m}from"../../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import{Button as a}from"../../../componentsV2/Button/Button.js";import u from"./DevCenterAppErrorView.scss.js";import l from"../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import{RefreshIcon as j}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/SearchOne.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"../../../icons/customIcons/icons/CloudDelete.js";import"../../../icons/customIcons/icons/Lasso.js";function d(o,s){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);s&&(c=c.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),n.push.apply(n,c)}return n}var I={content:u.appContainerContent},f=function(s,n){try{return r(s,function(s){for(var n=1;n<arguments.length;n++){var c=null!=arguments[n]?arguments[n]:{};n%2?d(Object(c),!0).forEach((function(n){o(s,n,c[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):d(Object(c)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(c,o))}))}return s}({},n))}catch(o){return console.error(o),null}};function h(o){var s=o.appHeaderProps,d=o.openIntercom,h=m(),b=!(null==h||!h.appHeadersV3Enabled),C=null==h?void 0:h.reloadApp,A=r(i,{title:"App Loading Error",subTitle:e(p,{children:[r(l,{openIntercom:d}),C&&r("div",{className:u.refresh,children:r(a,{prefix:r(j,{}),type:"primary",onClick:C,size:"large",children:"Refresh App"})})]}),image:"appLoadingError"});if(b){var O=f(c,{disableSettings:!0});return r(t,{header:O,elementsClassNames:I,children:A})}var y=f(n,s);return e("div",{className:u.container,children:[y,A]})}h.propTypes={app:s.shape({})},h.defaultProps={app:null};export{h as default};
1
+ import o from"@babel/runtime/helpers/defineProperty";import s from"prop-types";import n from"../../DevCenter/AppHeader/AppHeader.js";import{AppHeader as c}from"../../../componentsV2/AppHeader/AppHeader.js";import"../../../componentsV2/AppHeader/AppHeader.constants.js";import{AppContainer as t}from"../../../componentsV2/AppContainer/AppContainer.js";import"../../../componentsV2/AppContainer/AppContainer.constants.js";import{EmptyState as i}from"../../../componentsV2/EmptyState/EmptyState.js";import{jsx as r,jsxs as e,Fragment as p}from"react/jsx-runtime";import"react";import{useAppCommonsInternal as m}from"../../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import{Button as a}from"../../../componentsV2/Button/Button.js";import u from"./DevCenterAppErrorView.scss.js";import l from"../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import{RefreshIcon as j}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/SearchOne.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"../../../icons/customIcons/icons/CloudDelete.js";import"../../../icons/customIcons/icons/Lasso.js";import"../../../icons/customIcons/icons/Radius.js";function d(o,s){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);s&&(c=c.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),n.push.apply(n,c)}return n}var I={content:u.appContainerContent},f=function(s,n){try{return r(s,function(s){for(var n=1;n<arguments.length;n++){var c=null!=arguments[n]?arguments[n]:{};n%2?d(Object(c),!0).forEach((function(n){o(s,n,c[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):d(Object(c)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(c,o))}))}return s}({},n))}catch(o){return console.error(o),null}};function h(o){var s=o.appHeaderProps,d=o.openIntercom,h=m(),b=!(null==h||!h.appHeadersV3Enabled),C=null==h?void 0:h.reloadApp,A=r(i,{title:"App Loading Error",subTitle:e(p,{children:[r(l,{openIntercom:d}),C&&r("div",{className:u.refresh,children:r(a,{prefix:r(j,{}),type:"primary",onClick:C,size:"large",children:"Refresh App"})})]}),image:"appLoadingError"});if(b){var O=f(c,{disableSettings:!0});return r(t,{header:O,elementsClassNames:I,children:A})}var y=f(n,s);return e("div",{className:u.container,children:[y,A]})}h.propTypes={app:s.shape({})},h.defaultProps={app:null};export{h as default};
2
2
  //# sourceMappingURL=DevCenterAppErrorView.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DevCenterAppErrorView.js","sources":["../../../../src/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js"],"sourcesContent":["import PropTypes from 'prop-types';\n\nimport AppHeader from '../../DevCenter/AppHeader';\nimport { AppHeader as AppHeaderV3 } from '../../../componentsV2/AppHeader';\nimport { AppContainer } from '../../../componentsV2/AppContainer';\nimport { EmptyState } from '../../../componentsV2/EmptyState';\nimport { useAppCommonsInternal } from '../../../componentsV2/AppCommonsProvider';\nimport { Button } from '../../../componentsV2/Button';\n\nimport styles from './DevCenterAppErrorView.scss';\n\nimport SubtitleWithIntercomLink from '~/components/EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink';\nimport { RefreshIcon } from '~/icons';\n\nconst elementsClassNames = { content: styles.appContainerContent };\n\nconst tryRenderComponent = (Component, props) => {\n try {\n return <Component {...props} />;\n } catch (e) {\n console.error(e);\n return null;\n }\n};\n\nfunction DevCenterAppErrorView({ appHeaderProps, openIntercom }) {\n const appCommons = useAppCommonsInternal();\n const appHeadersV3Enabled = !!appCommons?.appHeadersV3Enabled;\n const reloadApp = appCommons?.reloadApp;\n\n const content = (\n <EmptyState\n title=\"App Loading Error\"\n subTitle={\n <>\n <SubtitleWithIntercomLink openIntercom={openIntercom} />\n {reloadApp && (\n <div className={styles.refresh}>\n <Button prefix={<RefreshIcon />} type=\"primary\" onClick={reloadApp} size=\"large\">\n Refresh App\n </Button>\n </div>\n )}\n </>\n }\n image=\"appLoadingError\"\n />\n );\n\n if (appHeadersV3Enabled) {\n const appHeader = tryRenderComponent(AppHeaderV3, { disableSettings: true });\n return (\n <AppContainer header={appHeader} elementsClassNames={elementsClassNames}>\n {content}\n </AppContainer>\n );\n }\n\n const appHeader = tryRenderComponent(AppHeader, appHeaderProps);\n return (\n <div className={styles.container}>\n {appHeader}\n {content}\n </div>\n );\n}\n\nDevCenterAppErrorView.propTypes = {\n app: PropTypes.shape({}),\n};\n\nDevCenterAppErrorView.defaultProps = {\n app: null,\n};\n\nexport default DevCenterAppErrorView;\n"],"names":["elementsClassNames","content","styles","appContainerContent","tryRenderComponent","Component","props","_jsx","e","console","error","DevCenterAppErrorView","_ref","appHeaderProps","openIntercom","appCommons","useAppCommonsInternal","appHeadersV3Enabled","reloadApp","EmptyState","title","subTitle","_jsxs","_Fragment","children","SubtitleWithIntercomLink","className","refresh","Button","prefix","RefreshIcon","type","onClick","size","image","appHeader","AppHeaderV3","disableSettings","AppContainer","header","AppHeader","container","propTypes","app","PropTypes","shape","defaultProps"],"mappings":"43GAcA,IAAMA,EAAqB,CAAEC,QAASC,EAAOC,qBAEvCC,EAAqB,SAACC,EAAWC,GACrC,IACE,OAAOC,EAACF,iWAAcC,CAAAA,CAAAA,EAAAA,GAIxB,CAHE,MAAOE,GAEP,OADAC,QAAQC,MAAMF,GACP,IACT,CACF,EAEA,SAASG,EAAwDC,GAAA,IAAhCC,IAAAA,eAAgBC,IAAAA,aACzCC,EAAaC,IACbC,IAAwBF,UAAAA,EAAYE,qBACpCC,EAAYH,aAAAA,EAAAA,EAAYG,UAExBjB,EACJM,EAACY,EAAU,CACTC,MAAM,oBACNC,SACEC,EAAAC,EAAA,CAAAC,SAAA,CACEjB,EAACkB,EAAwB,CAACX,aAAcA,IACvCI,GACCX,EAAA,MAAA,CAAKmB,UAAWxB,EAAOyB,QAAQH,SAC7BjB,EAACqB,EAAM,CAACC,OAAQtB,EAACuB,EAAe,IAACC,KAAK,UAAUC,QAASd,EAAWe,KAAK,QAAOT,SAAA,qBAOxFU,MAAM,oBAIV,GAAIjB,EAAqB,CACvB,IAAMkB,EAAY/B,EAAmBgC,EAAa,CAAEC,iBAAiB,IACrE,OACE9B,EAAC+B,EAAY,CAACC,OAAQJ,EAAWnC,mBAAoBA,EAAmBwB,SACrEvB,GAGP,CAEA,IAAMkC,EAAY/B,EAAmBoC,EAAW3B,GAChD,OACES,EAAA,MAAA,CAAKI,UAAWxB,EAAOuC,UAAUjB,SAC9BW,CAAAA,EACAlC,IAGP,CAEAU,EAAsB+B,UAAY,CAChCC,IAAKC,EAAUC,MAAM,KAGvBlC,EAAsBmC,aAAe,CACnCH,IAAK"}
1
+ {"version":3,"file":"DevCenterAppErrorView.js","sources":["../../../../src/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js"],"sourcesContent":["import PropTypes from 'prop-types';\n\nimport AppHeader from '../../DevCenter/AppHeader';\nimport { AppHeader as AppHeaderV3 } from '../../../componentsV2/AppHeader';\nimport { AppContainer } from '../../../componentsV2/AppContainer';\nimport { EmptyState } from '../../../componentsV2/EmptyState';\nimport { useAppCommonsInternal } from '../../../componentsV2/AppCommonsProvider';\nimport { Button } from '../../../componentsV2/Button';\n\nimport styles from './DevCenterAppErrorView.scss';\n\nimport SubtitleWithIntercomLink from '~/components/EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink';\nimport { RefreshIcon } from '~/icons';\n\nconst elementsClassNames = { content: styles.appContainerContent };\n\nconst tryRenderComponent = (Component, props) => {\n try {\n return <Component {...props} />;\n } catch (e) {\n console.error(e);\n return null;\n }\n};\n\nfunction DevCenterAppErrorView({ appHeaderProps, openIntercom }) {\n const appCommons = useAppCommonsInternal();\n const appHeadersV3Enabled = !!appCommons?.appHeadersV3Enabled;\n const reloadApp = appCommons?.reloadApp;\n\n const content = (\n <EmptyState\n title=\"App Loading Error\"\n subTitle={\n <>\n <SubtitleWithIntercomLink openIntercom={openIntercom} />\n {reloadApp && (\n <div className={styles.refresh}>\n <Button prefix={<RefreshIcon />} type=\"primary\" onClick={reloadApp} size=\"large\">\n Refresh App\n </Button>\n </div>\n )}\n </>\n }\n image=\"appLoadingError\"\n />\n );\n\n if (appHeadersV3Enabled) {\n const appHeader = tryRenderComponent(AppHeaderV3, { disableSettings: true });\n return (\n <AppContainer header={appHeader} elementsClassNames={elementsClassNames}>\n {content}\n </AppContainer>\n );\n }\n\n const appHeader = tryRenderComponent(AppHeader, appHeaderProps);\n return (\n <div className={styles.container}>\n {appHeader}\n {content}\n </div>\n );\n}\n\nDevCenterAppErrorView.propTypes = {\n app: PropTypes.shape({}),\n};\n\nDevCenterAppErrorView.defaultProps = {\n app: null,\n};\n\nexport default DevCenterAppErrorView;\n"],"names":["elementsClassNames","content","styles","appContainerContent","tryRenderComponent","Component","props","_jsx","e","console","error","DevCenterAppErrorView","_ref","appHeaderProps","openIntercom","appCommons","useAppCommonsInternal","appHeadersV3Enabled","reloadApp","EmptyState","title","subTitle","_jsxs","_Fragment","children","SubtitleWithIntercomLink","className","refresh","Button","prefix","RefreshIcon","type","onClick","size","image","appHeader","AppHeaderV3","disableSettings","AppContainer","header","AppHeader","container","propTypes","app","PropTypes","shape","defaultProps"],"mappings":"+6GAcA,IAAMA,EAAqB,CAAEC,QAASC,EAAOC,qBAEvCC,EAAqB,SAACC,EAAWC,GACrC,IACE,OAAOC,EAACF,iWAAcC,CAAAA,CAAAA,EAAAA,GAIxB,CAHE,MAAOE,GAEP,OADAC,QAAQC,MAAMF,GACP,IACT,CACF,EAEA,SAASG,EAAwDC,GAAA,IAAhCC,IAAAA,eAAgBC,IAAAA,aACzCC,EAAaC,IACbC,IAAwBF,UAAAA,EAAYE,qBACpCC,EAAYH,aAAAA,EAAAA,EAAYG,UAExBjB,EACJM,EAACY,EAAU,CACTC,MAAM,oBACNC,SACEC,EAAAC,EAAA,CAAAC,SAAA,CACEjB,EAACkB,EAAwB,CAACX,aAAcA,IACvCI,GACCX,EAAA,MAAA,CAAKmB,UAAWxB,EAAOyB,QAAQH,SAC7BjB,EAACqB,EAAM,CAACC,OAAQtB,EAACuB,EAAe,IAACC,KAAK,UAAUC,QAASd,EAAWe,KAAK,QAAOT,SAAA,qBAOxFU,MAAM,oBAIV,GAAIjB,EAAqB,CACvB,IAAMkB,EAAY/B,EAAmBgC,EAAa,CAAEC,iBAAiB,IACrE,OACE9B,EAAC+B,EAAY,CAACC,OAAQJ,EAAWnC,mBAAoBA,EAAmBwB,SACrEvB,GAGP,CAEA,IAAMkC,EAAY/B,EAAmBoC,EAAW3B,GAChD,OACES,EAAA,MAAA,CAAKI,UAAWxB,EAAOuC,UAAUjB,SAC9BW,CAAAA,EACAlC,IAGP,CAEAU,EAAsB+B,UAAY,CAChCC,IAAKC,EAAUC,MAAM,KAGvBlC,EAAsBmC,aAAe,CACnCH,IAAK"}
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/helpers/objectWithoutProperties";import n from"@babel/runtime/regenerator";import{useState as r,useRef as i}from"react";import p from"classnames";import{makeStyles as c,Paper as m,Divider as a,Typography as l}from"@material-ui/core";import{get as d,includes as u,startCase as j,noop as A}from"lodash";import C from"@material-ui/core/colors/grey";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{useDevCenterRouter as v}from"../DevCenter/DevCenterRouterContext/effects/useDevCenterRouter.js";import"react-router";import{jsxs as V,jsx as I}from"react/jsx-runtime";import"../../constants/goals.js";import"../../constants/segment.js";import{OPEN_ALERT_DETAILS_ID_STORAGE_KEY as D}from"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import{FEED_ITEM_TYPES as g,FEED_ITEM_TYPES_BY_KEY as f}from"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../GradientManager/configuration/constants.js";import"../../utils/index.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import{useIsInsideIsolatedDcApp as h}from"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"uuid";import"../../componentsV2/Tooltip/Tooltip.scss.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.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/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/ModalWindow/ModalWindow.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../componentsV2/Menu/Menu.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/SearchOne.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"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../componentsV2/utils.js";import"../../componentsV2/Hint/Hint.scss.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/TemplatesControl/TemplatesControl.js";import"zustand";import"../../componentsV2/TemplatesControl/utils.js";import"../../componentsV2/TemplatesControl/icons/folder/index.js";import"../../componentsV2/TemplatesControl/Store/utils.js";import"../../componentsV2/TemplatesControl/types.js";import{deleteFeedItem as b,toggleFeedItemLike as S}from"../../clients/jsonApi/index.js";import"../../permissions/PermissionsContext.js";import"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"../../permissions/ProvidePermissions.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 P from"../../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/IndicatorLive/IndicatorLive.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"immutable";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.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"../../constants/streamSourceType.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"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../clients/subscriptions/constants.js";import"../../clients/subscriptions.v1.js";import"../../clients/subscriptions/subscriptions-client.factory.js";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/PadModeSelect/PadModeSelect.scss.js";import"querystring";import"uuid/v1";import"jsona";import"../../utils/env.js";import"../StatusBadge/constants.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.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/AppHeader/V3/SettingsButton/SettingsButton.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../componentsV2/AppSettings/AppSettings.js";import"../../componentsV2/AppSettings/AppSettings.constants.js";import"../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../componentsV2/AppSizeProvider/AppSizeProvider.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.js";import"../../componentsV2/Autocomplete/Autocomplete.scss.js";import"../../componentsV2/Menu/MenuItem/MenuItem.js";import"../../componentsV2/Autocomplete/AutocompleteListBox.js";import"../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../componentsV2/DatePicker/DatePicker.js";import"../../componentsV2/DragHandle/DragHandle.js";import"../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"rollbar";import"@rollbar/react";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import{isNativeDetected as y}from"../../utils/mobileDetect.js";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../Toaster/Toaster.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import T from"./components/Actions.js";import x from"./components/FeedComments.js";import F from"./components/Content.js";import B from"./components/CreatedAt.js";import L from"./components/Icon.js";import M from"./components/Reactions.js";import k from"./components/RigAndWell.js";import H from"./components/TypeAndAssetTitle.js";import w from"./components/CompletionDateTimestamp.js";import O from"./FeedItem.css.js";import E from"../ConfirmationDialog.js";import R from"../LoadingIndicator/LoadingIndicator.js";import q from"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import{showSuccessNotification as N}from"../../utils/notificationToasts.js";var U=["feedItem","editableFeedItemTypes","removeFeedItem","enterEditMode","router","currentUser","appData","customFeedItemTypeTemplates","paperClassName","getFeedItemMessage"];function W(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}))),t.push.apply(t,s)}return t}function _(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?W(Object(s),!0).forEach((function(t){o(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):W(Object(s)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(s,o))}))}return e}var G=c((function(o){return{paperRoot:{position:"relative",marginBottom:10,paddingBottom:16,backgroundColor:function(e){return e.isInsideDcApp?"rgba(65, 65, 65, 0.9)":o.palette.background.b8},width:function(o){return o.isInsideDcApp?360:"100%"},boxShadow:function(o){return o.isInsideDcApp&&"0px 8px 10px rgba(0, 0, 0, 0.14), 0px 3px 14px rgba(0, 0, 0, 0.12), 0px 5px 5px rgba(0, 0, 0, 0.2)"}},clickablePaperRoot:{"&:hover":{filter:"brightness(90%)",transition:"filter 0.3s"}},headerDividerRoot:{margin:"8px 0 8px 0",backgroundColor:"#595959"},dateTimestamp:{color:o.palette.primary.text6,"& span":{color:o.palette.primary.contrastText}}}}));function z(c){var W,z,Z,J,K,Q,X,Y,$,oo,eo,to,so=c.feedItem,no=c.editableFeedItemTypes,ro=void 0===no?[g.POST]:no,io=c.removeFeedItem,po=void 0===io?A:io,co=c.enterEditMode,mo=void 0===co?A:co,ao=c.router,lo=c.currentUser,uo=c.appData,jo=c.customFeedItemTypeTemplates,Ao=void 0===jo?{}:jo,Co=c.paperClassName,vo=c.getFeedItemMessage,Vo=void 0===vo?function(o){var e,t,s=o.context;return(null==s||null===(e=s.post)||void 0===e?void 0:e.body)||(null==s||null===(t=s.dvd_comment)||void 0===t?void 0:t.body)}:vo,Io=s(c,U),Do=d(lo,["settings","uiSettings","corva_v3_features_enabled"]),go=u(so.allowed_actions,"destroy"),fo=h(),ho=G({isInsideDcApp:fo}),bo=r(!1),So=t(bo,2),Po=So[0],yo=So[1],To=r(!0),xo=t(To,2),Fo=xo[0],Bo=xo[1],Lo=r(!0),Mo=t(Lo,2),ko=Mo[0],Ho=Mo[1],wo=r(!1),Oo=t(wo,2),Eo=Oo[0],Ro=Oo[1],qo=so.type===f.post.type,No=ro.includes(so.type),Uo=so.type===f.geosteering_comments.type&&(null===(W=so.context)||void 0===W||null===(z=W.geosteering_comments)||void 0===z||null===(Z=z.data)||void 0===Z?void 0:Z.isRecommendation),Wo=(null===(J=f[so.type])||void 0===J?void 0:J.category)||"post",_o=P.getUserFullName(so.user),Go=null!==(K=f[so.type])&&void 0!==K&&K.showCreatorToLabel?_o:(null===(Q=f[so.type])||void 0===Q?void 0:Q.label)||j(so.type),zo=so.type===f.alert.type&&"/alerts/".concat(null===(X=so.context)||void 0===X||null===(Y=X.alert)||void 0===Y?void 0:Y.id),Zo=so.type===f.alert.type&&zo,Jo=(eo=e(n.mark((function o(){return n.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return yo(!0),o.prev=1,o.next=4,b(so.id);case 4:o.next=9;break;case 6:return o.prev=6,o.t0=o.catch(1),o.abrupt("return");case 9:return o.prev=9,yo(!1),o.finish(9);case 12:N("Item was deleted"),po(so.id);case 14:case"end":return o.stop()}}),o,null,[[1,6,9,12]])}))),function(){return eo.apply(this,arguments)}),Ko=i(!1),Qo=(to=e(n.mark((function o(){var e;return n.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(Ko.current){o.next=11;break}return e=so.id,Ko.current=!0,o.prev=3,o.next=6,S(e);case 6:o.next=10;break;case 8:o.prev=8,o.t0=o.catch(3);case 10:Ko.current=!1;case 11:case"end":return o.stop()}}),o,null,[[3,8]])}))),function(){return to.apply(this,arguments)}),Xo=v();return V(m,{"data-testid":"".concat("FeedPo","_post_").concat(Vo(so),"_rigName_").concat(function(o){var e,t,s;return!!o.rig?null===(e=o.rig)||void 0===e?void 0:e.name:null===(t=o.well)||void 0===t||null===(s=t.parent_asset)||void 0===s?void 0:s.name}(so)),className:p(ho.paperRoot,Co,($={},o($,ho.clickablePaperRoot,Zo),o($,O.hideOverflow,Po),$)),elevation:0,children:[V("div",{onClick:function(){Zo&&(Do?localStorage.setItem(D,so.context.alert.id):(ao||Xo).push(zo))},className:p(O.mainContainer,(oo={},o(oo,O.mainContainerClickable,Zo),o(oo,O.mainContainerNative,y),oo)),children:[I(L,{feedItem:so,classes:ho,displayName:_o,isRecommended:Uo,currentUser:lo}),V("div",{className:p(O.mainContainerTop,o({},O.mainContainerTopNative,y)),children:[V("div",{className:O.mainContainerTopLine,children:[I(H,{feedItem:so,userFullName:_o,typeLabel:Go,classes:ho,isPost:qo}),V("div",{className:O.mainContainerTopMenu,children:[I(B,{feedItem:so,classes:ho}),I(T,{"data-testid":"".concat("FeedPo","_actionsDropdown"),isPost:qo,isEditableItem:No,canDeleteFeedItem:go,handleEditMenuItem:function(){mo(so)},handleDeleteMenuItem:function(){Ro(!0)},copyFeedItemLink:function(){var o=so.id,e="".concat(window.location.host,"/feed/").concat(o);P.copyToClipboard(e)},feedItem:so,currentUser:lo})]})]}),I(k,{feedItem:so,isPost:qo})]}),I(a,{className:ho.headerDividerRoot}),I(w,{feedItem:so}),I(q,{ErrorView:function(){return I(l,{children:"Feed Item loading failed"})},children:I(F,_({feedItem:so,appData:uo,customFeedItemTypeTemplates:Ao,currentUser:lo,isCorvaV3FeaturesEnabled:Do},Io))})]}),I(M,{feedItem:so,handleToggleLike:Qo,setOpenCommentInput:Bo,setOpenCommentList:Ho,openCommentInput:Fo,openCommentList:ko,currentUser:lo}),I(x,{openCommentInput:Fo,openCommentList:ko,feedItem:so,currentUser:lo}),Po&&I("div",{className:O.loadingContainer,style:{backgroundColor:C[800]},children:I(R,{})}),Eo&&I(E,{open:Eo,title:"Delete ".concat(Wo),text:"Are you sure you want to delete ".concat(Wo," and all attachments?"),handleClose:function(){return Ro(!1)},handleOk:function(){Jo()},okText:"Delete"})]})}export{z as default};
1
+ import o from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/helpers/objectWithoutProperties";import n from"@babel/runtime/regenerator";import{useState as r,useRef as i}from"react";import p from"classnames";import{makeStyles as c,Paper as m,Divider as a,Typography as l}from"@material-ui/core";import{get as d,includes as u,startCase as j,noop as A}from"lodash";import C from"@material-ui/core/colors/grey";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{useDevCenterRouter as v}from"../DevCenter/DevCenterRouterContext/effects/useDevCenterRouter.js";import"react-router";import{jsxs as V,jsx as I}from"react/jsx-runtime";import"../../constants/goals.js";import"../../constants/segment.js";import{OPEN_ALERT_DETAILS_ID_STORAGE_KEY as D}from"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import{FEED_ITEM_TYPES as g,FEED_ITEM_TYPES_BY_KEY as f}from"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../GradientManager/configuration/constants.js";import"../../utils/index.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import{useIsInsideIsolatedDcApp as h}from"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"uuid";import"../../componentsV2/Tooltip/Tooltip.scss.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.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/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/ModalWindow/ModalWindow.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../componentsV2/Menu/Menu.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/SearchOne.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"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../componentsV2/utils.js";import"../../componentsV2/Hint/Hint.scss.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/TemplatesControl/TemplatesControl.js";import"zustand";import"../../componentsV2/TemplatesControl/utils.js";import"../../componentsV2/TemplatesControl/icons/folder/index.js";import"../../componentsV2/TemplatesControl/Store/utils.js";import"../../componentsV2/TemplatesControl/types.js";import{deleteFeedItem as b,toggleFeedItemLike as S}from"../../clients/jsonApi/index.js";import"../../permissions/PermissionsContext.js";import"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"../../permissions/ProvidePermissions.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 P from"../../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/IndicatorLive/IndicatorLive.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"immutable";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.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"../../constants/streamSourceType.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"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../clients/subscriptions/constants.js";import"../../clients/subscriptions.v1.js";import"../../clients/subscriptions/subscriptions-client.factory.js";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/PadModeSelect/PadModeSelect.scss.js";import"querystring";import"uuid/v1";import"jsona";import"../../utils/env.js";import"../StatusBadge/constants.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.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/AppHeader/V3/SettingsButton/SettingsButton.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../componentsV2/AppSettings/AppSettings.js";import"../../componentsV2/AppSettings/AppSettings.constants.js";import"../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../componentsV2/AppSizeProvider/AppSizeProvider.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.js";import"../../componentsV2/Autocomplete/Autocomplete.scss.js";import"../../componentsV2/Menu/MenuItem/MenuItem.js";import"../../componentsV2/Autocomplete/AutocompleteListBox.js";import"../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../componentsV2/DatePicker/DatePicker.js";import"../../componentsV2/DragHandle/DragHandle.js";import"../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"rollbar";import"@rollbar/react";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import{isNativeDetected as y}from"../../utils/mobileDetect.js";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../Toaster/Toaster.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import T from"./components/Actions.js";import x from"./components/FeedComments.js";import F from"./components/Content.js";import B from"./components/CreatedAt.js";import L from"./components/Icon.js";import M from"./components/Reactions.js";import k from"./components/RigAndWell.js";import H from"./components/TypeAndAssetTitle.js";import w from"./components/CompletionDateTimestamp.js";import O from"./FeedItem.css.js";import R from"../ConfirmationDialog.js";import E from"../LoadingIndicator/LoadingIndicator.js";import q from"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import{showSuccessNotification as N}from"../../utils/notificationToasts.js";var U=["feedItem","editableFeedItemTypes","removeFeedItem","enterEditMode","router","currentUser","appData","customFeedItemTypeTemplates","paperClassName","getFeedItemMessage"];function W(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}))),t.push.apply(t,s)}return t}function _(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?W(Object(s),!0).forEach((function(t){o(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):W(Object(s)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(s,o))}))}return e}var G=c((function(o){return{paperRoot:{position:"relative",marginBottom:10,paddingBottom:16,backgroundColor:function(e){return e.isInsideDcApp?"rgba(65, 65, 65, 0.9)":o.palette.background.b8},width:function(o){return o.isInsideDcApp?360:"100%"},boxShadow:function(o){return o.isInsideDcApp&&"0px 8px 10px rgba(0, 0, 0, 0.14), 0px 3px 14px rgba(0, 0, 0, 0.12), 0px 5px 5px rgba(0, 0, 0, 0.2)"}},clickablePaperRoot:{"&:hover":{filter:"brightness(90%)",transition:"filter 0.3s"}},headerDividerRoot:{margin:"8px 0 8px 0",backgroundColor:"#595959"},dateTimestamp:{color:o.palette.primary.text6,"& span":{color:o.palette.primary.contrastText}}}}));function z(c){var W,z,Z,J,K,Q,X,Y,$,oo,eo,to,so=c.feedItem,no=c.editableFeedItemTypes,ro=void 0===no?[g.POST]:no,io=c.removeFeedItem,po=void 0===io?A:io,co=c.enterEditMode,mo=void 0===co?A:co,ao=c.router,lo=c.currentUser,uo=c.appData,jo=c.customFeedItemTypeTemplates,Ao=void 0===jo?{}:jo,Co=c.paperClassName,vo=c.getFeedItemMessage,Vo=void 0===vo?function(o){var e,t,s=o.context;return(null==s||null===(e=s.post)||void 0===e?void 0:e.body)||(null==s||null===(t=s.dvd_comment)||void 0===t?void 0:t.body)}:vo,Io=s(c,U),Do=d(lo,["settings","uiSettings","corva_v3_features_enabled"]),go=u(so.allowed_actions,"destroy"),fo=h(),ho=G({isInsideDcApp:fo}),bo=r(!1),So=t(bo,2),Po=So[0],yo=So[1],To=r(!0),xo=t(To,2),Fo=xo[0],Bo=xo[1],Lo=r(!0),Mo=t(Lo,2),ko=Mo[0],Ho=Mo[1],wo=r(!1),Oo=t(wo,2),Ro=Oo[0],Eo=Oo[1],qo=so.type===f.post.type,No=ro.includes(so.type),Uo=so.type===f.geosteering_comments.type&&(null===(W=so.context)||void 0===W||null===(z=W.geosteering_comments)||void 0===z||null===(Z=z.data)||void 0===Z?void 0:Z.isRecommendation),Wo=(null===(J=f[so.type])||void 0===J?void 0:J.category)||"post",_o=P.getUserFullName(so.user),Go=null!==(K=f[so.type])&&void 0!==K&&K.showCreatorToLabel?_o:(null===(Q=f[so.type])||void 0===Q?void 0:Q.label)||j(so.type),zo=so.type===f.alert.type&&"/alerts/".concat(null===(X=so.context)||void 0===X||null===(Y=X.alert)||void 0===Y?void 0:Y.id),Zo=so.type===f.alert.type&&zo,Jo=(eo=e(n.mark((function o(){return n.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return yo(!0),o.prev=1,o.next=4,b(so.id);case 4:o.next=9;break;case 6:return o.prev=6,o.t0=o.catch(1),o.abrupt("return");case 9:return o.prev=9,yo(!1),o.finish(9);case 12:N("Item was deleted"),po(so.id);case 14:case"end":return o.stop()}}),o,null,[[1,6,9,12]])}))),function(){return eo.apply(this,arguments)}),Ko=i(!1),Qo=(to=e(n.mark((function o(){var e;return n.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(Ko.current){o.next=11;break}return e=so.id,Ko.current=!0,o.prev=3,o.next=6,S(e);case 6:o.next=10;break;case 8:o.prev=8,o.t0=o.catch(3);case 10:Ko.current=!1;case 11:case"end":return o.stop()}}),o,null,[[3,8]])}))),function(){return to.apply(this,arguments)}),Xo=v();return V(m,{"data-testid":"".concat("FeedPo","_post_").concat(Vo(so),"_rigName_").concat(function(o){var e,t,s;return!!o.rig?null===(e=o.rig)||void 0===e?void 0:e.name:null===(t=o.well)||void 0===t||null===(s=t.parent_asset)||void 0===s?void 0:s.name}(so)),className:p(ho.paperRoot,Co,($={},o($,ho.clickablePaperRoot,Zo),o($,O.hideOverflow,Po),$)),elevation:0,children:[V("div",{onClick:function(){Zo&&(Do?localStorage.setItem(D,so.context.alert.id):(ao||Xo).push(zo))},className:p(O.mainContainer,(oo={},o(oo,O.mainContainerClickable,Zo),o(oo,O.mainContainerNative,y),oo)),children:[I(L,{feedItem:so,classes:ho,displayName:_o,isRecommended:Uo,currentUser:lo}),V("div",{className:p(O.mainContainerTop,o({},O.mainContainerTopNative,y)),children:[V("div",{className:O.mainContainerTopLine,children:[I(H,{feedItem:so,userFullName:_o,typeLabel:Go,classes:ho,isPost:qo}),V("div",{className:O.mainContainerTopMenu,children:[I(B,{feedItem:so,classes:ho}),I(T,{"data-testid":"".concat("FeedPo","_actionsDropdown"),isPost:qo,isEditableItem:No,canDeleteFeedItem:go,handleEditMenuItem:function(){mo(so)},handleDeleteMenuItem:function(){Eo(!0)},copyFeedItemLink:function(){var o=so.id,e="".concat(window.location.host,"/feed/").concat(o);P.copyToClipboard(e)},feedItem:so,currentUser:lo})]})]}),I(k,{feedItem:so,isPost:qo})]}),I(a,{className:ho.headerDividerRoot}),I(w,{feedItem:so}),I(q,{ErrorView:function(){return I(l,{children:"Feed Item loading failed"})},children:I(F,_({feedItem:so,appData:uo,customFeedItemTypeTemplates:Ao,currentUser:lo,isCorvaV3FeaturesEnabled:Do},Io))})]}),I(M,{feedItem:so,handleToggleLike:Qo,setOpenCommentInput:Bo,setOpenCommentList:Ho,openCommentInput:Fo,openCommentList:ko,currentUser:lo}),I(x,{openCommentInput:Fo,openCommentList:ko,feedItem:so,currentUser:lo}),Po&&I("div",{className:O.loadingContainer,style:{backgroundColor:C[800]},children:I(E,{})}),Ro&&I(R,{open:Ro,title:"Delete ".concat(Wo),text:"Are you sure you want to delete ".concat(Wo," and all attachments?"),handleClose:function(){return Eo(!1)},handleOk:function(){Jo()},okText:"Delete"})]})}export{z as default};
2
2
  //# sourceMappingURL=FeedItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeedItem.js","sources":["../../../src/components/FeedItem/FeedItem.js"],"sourcesContent":["import { useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport { Divider, makeStyles, Paper, Typography } from '@material-ui/core';\nimport { get, includes, noop, startCase } from 'lodash';\nimport grey from '@material-ui/core/colors/grey';\n\nimport { useDevCenterRouter } from '../DevCenter';\n\nimport Actions from './components/Actions';\nimport FeedComments from './components/FeedComments';\nimport Content from './components/Content';\nimport CreatedAt from './components/CreatedAt';\nimport Icon from './components/Icon';\nimport Reactions from './components/Reactions';\nimport RigAndWell from './components/RigAndWell';\nimport TypeAndAssetTitle from './components/TypeAndAssetTitle';\nimport CompletionDateTimestamp from './components/CompletionDateTimestamp';\n\nimport styles from './FeedItem.css';\n\nimport { isNativeDetected } from '~/utils/mobileDetect';\nimport ConfirmationDialog from '~/components/ConfirmationDialog';\nimport LoadingIndicator from '~/components/LoadingIndicator';\nimport ErrorBoundary from '~/components/ErrorBoundary';\nimport { useIsInsideIsolatedDcApp } from '~/components/DevCenter/DevCenterAppContainer/components';\nimport { FEED_ITEM_TYPES, FEED_ITEM_TYPES_BY_KEY } from '~/constants/feed';\nimport { deleteFeedItem, toggleFeedItemLike } from '~/clients/jsonApi';\nimport { showSuccessNotification } from '~/utils';\nimport utils from '~/utils/main';\nimport { OPEN_ALERT_DETAILS_ID_STORAGE_KEY } from '~/constants/alerts';\n\nconst PAGE_NAME = 'FeedPo';\n\nconst useStyles = makeStyles(theme => ({\n paperRoot: {\n position: 'relative',\n marginBottom: 10,\n paddingBottom: 16,\n backgroundColor: ({ isInsideDcApp }) =>\n isInsideDcApp ? 'rgba(65, 65, 65, 0.9)' : theme.palette.background.b8,\n width: ({ isInsideDcApp }) => (isInsideDcApp ? 360 : '100%'),\n boxShadow: ({ isInsideDcApp }) =>\n isInsideDcApp &&\n '0px 8px 10px rgba(0, 0, 0, 0.14), 0px 3px 14px rgba(0, 0, 0, 0.12), 0px 5px 5px rgba(0, 0, 0, 0.2)',\n },\n clickablePaperRoot: {\n '&:hover': {\n filter: 'brightness(90%)',\n transition: 'filter 0.3s',\n },\n },\n headerDividerRoot: {\n margin: '8px 0 8px 0',\n backgroundColor: '#595959',\n },\n dateTimestamp: {\n color: theme.palette.primary.text6,\n '& span': {\n color: theme.palette.primary.contrastText,\n },\n },\n}));\n\n/**\n * @typedef {object} ActivityItem\n * @property {number} id\n * @property {string} type\n * @property {Record<string, any>} [context]\n * @property {Array<'update' | 'destroy' | 'like'>} [allowed_actions]\n * @property {number} [company_id]\n * @property {number} [asset_id] is not received from the back but have to be provided while saving activities\n * @property {any} [rig]\n * @property {any} [well]\n * @property {string} [updated_at]\n * @property {any} [segment]\n * @property {boolean} [liked]\n * @property {any[]} [likes]\n * @property {number} [likes_count]\n * @property {any[]} [mentioned_users]\n */\n\n/**\n * @param {object} props\n * @param {ActivityItem} props.feedItem\n * @param {string[]} [props.editableFeedItemTypes]\n * @param {(feedItemId: number) => void} [props.removeFeedItem] called after a feed item was removed by a user\n * @param {(feedItem: ActivityItem) => void} [props.enterEditMode] called when a used clicks \"Edit\" menu item\n * @param {any} [props.router]\n * @param {any} props.currentUser used to display Avatar and to determine the ability to edit comments\n * @param {any} [props.appData] passed to body Template\n * @param {Record<string, any>} [props.customFeedItemTypeTemplates]\n * @param {string} [props.paperClassName]\n * @param {any} [props.getFeedItemMessage] used only to create a data-testid attribute\n */\nfunction FeedItem({\n feedItem,\n editableFeedItemTypes = [FEED_ITEM_TYPES.POST],\n removeFeedItem = noop,\n enterEditMode = noop,\n router,\n currentUser,\n appData,\n customFeedItemTypeTemplates = {},\n paperClassName,\n getFeedItemMessage = ({ context }) => context?.post?.body || context?.dvd_comment?.body,\n ...props\n}) {\n const isCorvaV3FeaturesEnabled = get(currentUser, [\n 'settings',\n 'uiSettings',\n 'corva_v3_features_enabled',\n ]);\n\n const canDeleteFeedItem = includes(feedItem.allowed_actions, 'destroy');\n\n const isInsideDcApp = useIsInsideIsolatedDcApp();\n const classes = useStyles({ isInsideDcApp });\n const [isLoading, setIsLoading] = useState(false);\n const [openCommentInput, setOpenCommentInput] = useState(true);\n const [openCommentList, setOpenCommentList] = useState(true);\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\n\n const isPost = feedItem.type === FEED_ITEM_TYPES_BY_KEY.post.type;\n const isEditableItem = editableFeedItemTypes.includes(feedItem.type);\n\n const isGeosteering = feedItem.type === FEED_ITEM_TYPES_BY_KEY.geosteering_comments.type;\n const isRecommended =\n isGeosteering && feedItem.context?.geosteering_comments?.data?.isRecommendation;\n\n const typeCategory = FEED_ITEM_TYPES_BY_KEY[feedItem.type]?.category || 'post';\n\n const userFullName = utils.getUserFullName(feedItem.user);\n const typeLabel = FEED_ITEM_TYPES_BY_KEY[feedItem.type]?.showCreatorToLabel\n ? userFullName\n : FEED_ITEM_TYPES_BY_KEY[feedItem.type]?.label || startCase(feedItem.type);\n\n const feedItemSourceLink =\n feedItem.type === FEED_ITEM_TYPES_BY_KEY.alert.type && `/alerts/${feedItem.context?.alert?.id}`;\n\n const isFeedItemClickable =\n feedItem.type === FEED_ITEM_TYPES_BY_KEY.alert.type && feedItemSourceLink;\n\n const handleDeleteFeedItem = async () => {\n setIsLoading(true);\n\n try {\n await deleteFeedItem(feedItem.id);\n } catch (e) {\n return;\n } finally {\n setIsLoading(false);\n }\n\n showSuccessNotification('Item was deleted');\n\n removeFeedItem(feedItem.id);\n };\n\n const isBeingLikedRef = useRef(false);\n\n const handleToggleLike = async () => {\n if (!isBeingLikedRef.current) {\n const feedItemId = feedItem.id;\n isBeingLikedRef.current = true;\n try {\n await toggleFeedItemLike(feedItemId); // NOTE: Received through subscription\n } catch (e) {\n // NOTE: Do nothing\n }\n isBeingLikedRef.current = false;\n }\n };\n\n const handleEditMenuItem = () => {\n enterEditMode(feedItem);\n };\n\n const handleDeleteMenuItem = () => {\n setOpenDeleteDialog(true);\n };\n\n const copyFeedItemLink = () => {\n const feedId = feedItem.id;\n const text = `${window.location.host}/feed/${feedId}`;\n\n utils.copyToClipboard(text);\n };\n\n const handleDelete = () => {\n handleDeleteFeedItem();\n };\n\n const devCenterRouter = useDevCenterRouter();\n\n const handleMainContainerClick = () => {\n if (!isFeedItemClickable) return;\n\n if (isCorvaV3FeaturesEnabled)\n localStorage.setItem(OPEN_ALERT_DETAILS_ID_STORAGE_KEY, feedItem.context.alert.id);\n else (router || devCenterRouter).push(feedItemSourceLink);\n };\n\n const getRigName = feedItem => {\n const isRigBasedItem = !!feedItem.rig;\n return isRigBasedItem ? feedItem.rig?.name : feedItem.well?.parent_asset?.name;\n };\n\n return (\n <Paper\n data-testid={`${PAGE_NAME}_post_${getFeedItemMessage(feedItem)}_rigName_${getRigName(\n feedItem\n )}`}\n className={classNames(classes.paperRoot, paperClassName, {\n [classes.clickablePaperRoot]: isFeedItemClickable,\n [styles.hideOverflow]: isLoading,\n })}\n elevation={0}\n >\n <div\n onClick={handleMainContainerClick}\n className={classNames(styles.mainContainer, {\n [styles.mainContainerClickable]: isFeedItemClickable,\n [styles.mainContainerNative]: isNativeDetected,\n })}\n >\n <Icon\n feedItem={feedItem}\n classes={classes}\n displayName={userFullName}\n isRecommended={isRecommended}\n currentUser={currentUser}\n />\n <div\n className={classNames(styles.mainContainerTop, {\n [styles.mainContainerTopNative]: isNativeDetected,\n })}\n >\n <div className={styles.mainContainerTopLine}>\n <TypeAndAssetTitle\n feedItem={feedItem}\n userFullName={userFullName}\n typeLabel={typeLabel}\n classes={classes}\n isPost={isPost}\n />\n <div className={styles.mainContainerTopMenu}>\n <CreatedAt feedItem={feedItem} classes={classes} />\n\n <Actions\n data-testid={`${PAGE_NAME}_actionsDropdown`}\n isPost={isPost}\n isEditableItem={isEditableItem}\n canDeleteFeedItem={canDeleteFeedItem}\n handleEditMenuItem={handleEditMenuItem}\n handleDeleteMenuItem={handleDeleteMenuItem}\n copyFeedItemLink={copyFeedItemLink}\n feedItem={feedItem}\n currentUser={currentUser}\n />\n </div>\n </div>\n\n <RigAndWell feedItem={feedItem} isPost={isPost} />\n </div>\n <Divider className={classes.headerDividerRoot} />\n <CompletionDateTimestamp feedItem={feedItem} />\n <ErrorBoundary ErrorView={() => <Typography>Feed Item loading failed</Typography>}>\n <Content\n feedItem={feedItem}\n appData={appData}\n customFeedItemTypeTemplates={customFeedItemTypeTemplates}\n currentUser={currentUser}\n isCorvaV3FeaturesEnabled={isCorvaV3FeaturesEnabled}\n {...props}\n />\n </ErrorBoundary>\n </div>\n <Reactions\n feedItem={feedItem}\n handleToggleLike={handleToggleLike}\n setOpenCommentInput={setOpenCommentInput}\n setOpenCommentList={setOpenCommentList}\n openCommentInput={openCommentInput}\n openCommentList={openCommentList}\n currentUser={currentUser}\n />\n <FeedComments\n openCommentInput={openCommentInput}\n openCommentList={openCommentList}\n feedItem={feedItem}\n currentUser={currentUser}\n />\n {isLoading && ( // NOTE: Avoids feed item height change\n <div className={styles.loadingContainer} style={{ backgroundColor: grey[800] }}>\n <LoadingIndicator />\n </div>\n )}\n {openDeleteDialog && (\n <ConfirmationDialog\n open={openDeleteDialog}\n title={`Delete ${typeCategory}`}\n text={`Are you sure you want to delete ${typeCategory} and all attachments?`}\n handleClose={() => setOpenDeleteDialog(false)}\n handleOk={handleDelete}\n okText=\"Delete\"\n />\n )}\n </Paper>\n );\n}\n\nexport default FeedItem;\n"],"names":["useStyles","makeStyles","theme","paperRoot","position","marginBottom","paddingBottom","backgroundColor","_ref","isInsideDcApp","palette","background","b8","width","_ref2","boxShadow","_ref3","clickablePaperRoot","filter","transition","headerDividerRoot","margin","dateTimestamp","color","primary","text6","contrastText","FeedItem","_ref4","_feedItem$context","_feedItem$context$geo","_feedItem$context$geo2","_FEED_ITEM_TYPES_BY_K","_FEED_ITEM_TYPES_BY_K2","_FEED_ITEM_TYPES_BY_K3","_feedItem$context2","_feedItem$context2$al","_classNames","_classNames2","_ref6","_ref7","feedItem","_ref4$editableFeedIte","editableFeedItemTypes","FEED_ITEM_TYPES","POST","_ref4$removeFeedItem","removeFeedItem","noop","_ref4$enterEditMode","enterEditMode","router","currentUser","appData","_ref4$customFeedItemT","customFeedItemTypeTemplates","paperClassName","_ref4$getFeedItemMess","getFeedItemMessage","_ref5","_context$post","_context$dvd_comment","context","post","body","dvd_comment","props","_objectWithoutProperties","_excluded","isCorvaV3FeaturesEnabled","get","canDeleteFeedItem","includes","allowed_actions","useIsInsideIsolatedDcApp","classes","useState","_useState2","_slicedToArray","_useState","isLoading","setIsLoading","_useState4","_useState3","openCommentInput","setOpenCommentInput","_useState6","_useState5","openCommentList","setOpenCommentList","_useState8","_useState7","openDeleteDialog","setOpenDeleteDialog","isPost","type","FEED_ITEM_TYPES_BY_KEY","isEditableItem","isRecommended","geosteering_comments","data","isRecommendation","typeCategory","category","userFullName","utils","getUserFullName","user","typeLabel","showCreatorToLabel","label","startCase","feedItemSourceLink","alert","id","isFeedItemClickable","handleDeleteFeedItem","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","deleteFeedItem","t0","abrupt","finish","showSuccessNotification","stop","apply","this","arguments","isBeingLikedRef","useRef","handleToggleLike","_callee2","feedItemId","_context2","current","toggleFeedItemLike","devCenterRouter","useDevCenterRouter","_jsxs","Paper","PAGE_NAME","concat","_feedItem$rig","_feedItem$well","_feedItem$well$parent","rig","name","well","parent_asset","getRigName","className","classNames","styles","hideOverflow","elevation","children","onClick","localStorage","setItem","OPEN_ALERT_DETAILS_ID_STORAGE_KEY","push","mainContainer","mainContainerClickable","mainContainerNative","isNativeDetected","_jsx","Icon","displayName","mainContainerTop","mainContainerTopNative","mainContainerTopLine","TypeAndAssetTitle","mainContainerTopMenu","CreatedAt","Actions","handleEditMenuItem","handleDeleteMenuItem","copyFeedItemLink","feedId","text","window","location","host","copyToClipboard","RigAndWell","Divider","CompletionDateTimestamp","ErrorBoundary","ErrorView","Typography","Content","_objectSpread","Reactions","FeedComments","loadingContainer","style","grey","LoadingIndicator","ConfirmationDialog","open","title","handleClose","handleOk","okText"],"mappings":"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"}
1
+ {"version":3,"file":"FeedItem.js","sources":["../../../src/components/FeedItem/FeedItem.js"],"sourcesContent":["import { useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport { Divider, makeStyles, Paper, Typography } from '@material-ui/core';\nimport { get, includes, noop, startCase } from 'lodash';\nimport grey from '@material-ui/core/colors/grey';\n\nimport { useDevCenterRouter } from '../DevCenter';\n\nimport Actions from './components/Actions';\nimport FeedComments from './components/FeedComments';\nimport Content from './components/Content';\nimport CreatedAt from './components/CreatedAt';\nimport Icon from './components/Icon';\nimport Reactions from './components/Reactions';\nimport RigAndWell from './components/RigAndWell';\nimport TypeAndAssetTitle from './components/TypeAndAssetTitle';\nimport CompletionDateTimestamp from './components/CompletionDateTimestamp';\n\nimport styles from './FeedItem.css';\n\nimport { isNativeDetected } from '~/utils/mobileDetect';\nimport ConfirmationDialog from '~/components/ConfirmationDialog';\nimport LoadingIndicator from '~/components/LoadingIndicator';\nimport ErrorBoundary from '~/components/ErrorBoundary';\nimport { useIsInsideIsolatedDcApp } from '~/components/DevCenter/DevCenterAppContainer/components';\nimport { FEED_ITEM_TYPES, FEED_ITEM_TYPES_BY_KEY } from '~/constants/feed';\nimport { deleteFeedItem, toggleFeedItemLike } from '~/clients/jsonApi';\nimport { showSuccessNotification } from '~/utils';\nimport utils from '~/utils/main';\nimport { OPEN_ALERT_DETAILS_ID_STORAGE_KEY } from '~/constants/alerts';\n\nconst PAGE_NAME = 'FeedPo';\n\nconst useStyles = makeStyles(theme => ({\n paperRoot: {\n position: 'relative',\n marginBottom: 10,\n paddingBottom: 16,\n backgroundColor: ({ isInsideDcApp }) =>\n isInsideDcApp ? 'rgba(65, 65, 65, 0.9)' : theme.palette.background.b8,\n width: ({ isInsideDcApp }) => (isInsideDcApp ? 360 : '100%'),\n boxShadow: ({ isInsideDcApp }) =>\n isInsideDcApp &&\n '0px 8px 10px rgba(0, 0, 0, 0.14), 0px 3px 14px rgba(0, 0, 0, 0.12), 0px 5px 5px rgba(0, 0, 0, 0.2)',\n },\n clickablePaperRoot: {\n '&:hover': {\n filter: 'brightness(90%)',\n transition: 'filter 0.3s',\n },\n },\n headerDividerRoot: {\n margin: '8px 0 8px 0',\n backgroundColor: '#595959',\n },\n dateTimestamp: {\n color: theme.palette.primary.text6,\n '& span': {\n color: theme.palette.primary.contrastText,\n },\n },\n}));\n\n/**\n * @typedef {object} ActivityItem\n * @property {number} id\n * @property {string} type\n * @property {Record<string, any>} [context]\n * @property {Array<'update' | 'destroy' | 'like'>} [allowed_actions]\n * @property {number} [company_id]\n * @property {number} [asset_id] is not received from the back but have to be provided while saving activities\n * @property {any} [rig]\n * @property {any} [well]\n * @property {string} [updated_at]\n * @property {any} [segment]\n * @property {boolean} [liked]\n * @property {any[]} [likes]\n * @property {number} [likes_count]\n * @property {any[]} [mentioned_users]\n */\n\n/**\n * @param {object} props\n * @param {ActivityItem} props.feedItem\n * @param {string[]} [props.editableFeedItemTypes]\n * @param {(feedItemId: number) => void} [props.removeFeedItem] called after a feed item was removed by a user\n * @param {(feedItem: ActivityItem) => void} [props.enterEditMode] called when a used clicks \"Edit\" menu item\n * @param {any} [props.router]\n * @param {any} props.currentUser used to display Avatar and to determine the ability to edit comments\n * @param {any} [props.appData] passed to body Template\n * @param {Record<string, any>} [props.customFeedItemTypeTemplates]\n * @param {string} [props.paperClassName]\n * @param {any} [props.getFeedItemMessage] used only to create a data-testid attribute\n */\nfunction FeedItem({\n feedItem,\n editableFeedItemTypes = [FEED_ITEM_TYPES.POST],\n removeFeedItem = noop,\n enterEditMode = noop,\n router,\n currentUser,\n appData,\n customFeedItemTypeTemplates = {},\n paperClassName,\n getFeedItemMessage = ({ context }) => context?.post?.body || context?.dvd_comment?.body,\n ...props\n}) {\n const isCorvaV3FeaturesEnabled = get(currentUser, [\n 'settings',\n 'uiSettings',\n 'corva_v3_features_enabled',\n ]);\n\n const canDeleteFeedItem = includes(feedItem.allowed_actions, 'destroy');\n\n const isInsideDcApp = useIsInsideIsolatedDcApp();\n const classes = useStyles({ isInsideDcApp });\n const [isLoading, setIsLoading] = useState(false);\n const [openCommentInput, setOpenCommentInput] = useState(true);\n const [openCommentList, setOpenCommentList] = useState(true);\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\n\n const isPost = feedItem.type === FEED_ITEM_TYPES_BY_KEY.post.type;\n const isEditableItem = editableFeedItemTypes.includes(feedItem.type);\n\n const isGeosteering = feedItem.type === FEED_ITEM_TYPES_BY_KEY.geosteering_comments.type;\n const isRecommended =\n isGeosteering && feedItem.context?.geosteering_comments?.data?.isRecommendation;\n\n const typeCategory = FEED_ITEM_TYPES_BY_KEY[feedItem.type]?.category || 'post';\n\n const userFullName = utils.getUserFullName(feedItem.user);\n const typeLabel = FEED_ITEM_TYPES_BY_KEY[feedItem.type]?.showCreatorToLabel\n ? userFullName\n : FEED_ITEM_TYPES_BY_KEY[feedItem.type]?.label || startCase(feedItem.type);\n\n const feedItemSourceLink =\n feedItem.type === FEED_ITEM_TYPES_BY_KEY.alert.type && `/alerts/${feedItem.context?.alert?.id}`;\n\n const isFeedItemClickable =\n feedItem.type === FEED_ITEM_TYPES_BY_KEY.alert.type && feedItemSourceLink;\n\n const handleDeleteFeedItem = async () => {\n setIsLoading(true);\n\n try {\n await deleteFeedItem(feedItem.id);\n } catch (e) {\n return;\n } finally {\n setIsLoading(false);\n }\n\n showSuccessNotification('Item was deleted');\n\n removeFeedItem(feedItem.id);\n };\n\n const isBeingLikedRef = useRef(false);\n\n const handleToggleLike = async () => {\n if (!isBeingLikedRef.current) {\n const feedItemId = feedItem.id;\n isBeingLikedRef.current = true;\n try {\n await toggleFeedItemLike(feedItemId); // NOTE: Received through subscription\n } catch (e) {\n // NOTE: Do nothing\n }\n isBeingLikedRef.current = false;\n }\n };\n\n const handleEditMenuItem = () => {\n enterEditMode(feedItem);\n };\n\n const handleDeleteMenuItem = () => {\n setOpenDeleteDialog(true);\n };\n\n const copyFeedItemLink = () => {\n const feedId = feedItem.id;\n const text = `${window.location.host}/feed/${feedId}`;\n\n utils.copyToClipboard(text);\n };\n\n const handleDelete = () => {\n handleDeleteFeedItem();\n };\n\n const devCenterRouter = useDevCenterRouter();\n\n const handleMainContainerClick = () => {\n if (!isFeedItemClickable) return;\n\n if (isCorvaV3FeaturesEnabled)\n localStorage.setItem(OPEN_ALERT_DETAILS_ID_STORAGE_KEY, feedItem.context.alert.id);\n else (router || devCenterRouter).push(feedItemSourceLink);\n };\n\n const getRigName = feedItem => {\n const isRigBasedItem = !!feedItem.rig;\n return isRigBasedItem ? feedItem.rig?.name : feedItem.well?.parent_asset?.name;\n };\n\n return (\n <Paper\n data-testid={`${PAGE_NAME}_post_${getFeedItemMessage(feedItem)}_rigName_${getRigName(\n feedItem\n )}`}\n className={classNames(classes.paperRoot, paperClassName, {\n [classes.clickablePaperRoot]: isFeedItemClickable,\n [styles.hideOverflow]: isLoading,\n })}\n elevation={0}\n >\n <div\n onClick={handleMainContainerClick}\n className={classNames(styles.mainContainer, {\n [styles.mainContainerClickable]: isFeedItemClickable,\n [styles.mainContainerNative]: isNativeDetected,\n })}\n >\n <Icon\n feedItem={feedItem}\n classes={classes}\n displayName={userFullName}\n isRecommended={isRecommended}\n currentUser={currentUser}\n />\n <div\n className={classNames(styles.mainContainerTop, {\n [styles.mainContainerTopNative]: isNativeDetected,\n })}\n >\n <div className={styles.mainContainerTopLine}>\n <TypeAndAssetTitle\n feedItem={feedItem}\n userFullName={userFullName}\n typeLabel={typeLabel}\n classes={classes}\n isPost={isPost}\n />\n <div className={styles.mainContainerTopMenu}>\n <CreatedAt feedItem={feedItem} classes={classes} />\n\n <Actions\n data-testid={`${PAGE_NAME}_actionsDropdown`}\n isPost={isPost}\n isEditableItem={isEditableItem}\n canDeleteFeedItem={canDeleteFeedItem}\n handleEditMenuItem={handleEditMenuItem}\n handleDeleteMenuItem={handleDeleteMenuItem}\n copyFeedItemLink={copyFeedItemLink}\n feedItem={feedItem}\n currentUser={currentUser}\n />\n </div>\n </div>\n\n <RigAndWell feedItem={feedItem} isPost={isPost} />\n </div>\n <Divider className={classes.headerDividerRoot} />\n <CompletionDateTimestamp feedItem={feedItem} />\n <ErrorBoundary ErrorView={() => <Typography>Feed Item loading failed</Typography>}>\n <Content\n feedItem={feedItem}\n appData={appData}\n customFeedItemTypeTemplates={customFeedItemTypeTemplates}\n currentUser={currentUser}\n isCorvaV3FeaturesEnabled={isCorvaV3FeaturesEnabled}\n {...props}\n />\n </ErrorBoundary>\n </div>\n <Reactions\n feedItem={feedItem}\n handleToggleLike={handleToggleLike}\n setOpenCommentInput={setOpenCommentInput}\n setOpenCommentList={setOpenCommentList}\n openCommentInput={openCommentInput}\n openCommentList={openCommentList}\n currentUser={currentUser}\n />\n <FeedComments\n openCommentInput={openCommentInput}\n openCommentList={openCommentList}\n feedItem={feedItem}\n currentUser={currentUser}\n />\n {isLoading && ( // NOTE: Avoids feed item height change\n <div className={styles.loadingContainer} style={{ backgroundColor: grey[800] }}>\n <LoadingIndicator />\n </div>\n )}\n {openDeleteDialog && (\n <ConfirmationDialog\n open={openDeleteDialog}\n title={`Delete ${typeCategory}`}\n text={`Are you sure you want to delete ${typeCategory} and all attachments?`}\n handleClose={() => setOpenDeleteDialog(false)}\n handleOk={handleDelete}\n okText=\"Delete\"\n />\n )}\n </Paper>\n );\n}\n\nexport default FeedItem;\n"],"names":["useStyles","makeStyles","theme","paperRoot","position","marginBottom","paddingBottom","backgroundColor","_ref","isInsideDcApp","palette","background","b8","width","_ref2","boxShadow","_ref3","clickablePaperRoot","filter","transition","headerDividerRoot","margin","dateTimestamp","color","primary","text6","contrastText","FeedItem","_ref4","_feedItem$context","_feedItem$context$geo","_feedItem$context$geo2","_FEED_ITEM_TYPES_BY_K","_FEED_ITEM_TYPES_BY_K2","_FEED_ITEM_TYPES_BY_K3","_feedItem$context2","_feedItem$context2$al","_classNames","_classNames2","_ref6","_ref7","feedItem","_ref4$editableFeedIte","editableFeedItemTypes","FEED_ITEM_TYPES","POST","_ref4$removeFeedItem","removeFeedItem","noop","_ref4$enterEditMode","enterEditMode","router","currentUser","appData","_ref4$customFeedItemT","customFeedItemTypeTemplates","paperClassName","_ref4$getFeedItemMess","getFeedItemMessage","_ref5","_context$post","_context$dvd_comment","context","post","body","dvd_comment","props","_objectWithoutProperties","_excluded","isCorvaV3FeaturesEnabled","get","canDeleteFeedItem","includes","allowed_actions","useIsInsideIsolatedDcApp","classes","useState","_useState2","_slicedToArray","_useState","isLoading","setIsLoading","_useState4","_useState3","openCommentInput","setOpenCommentInput","_useState6","_useState5","openCommentList","setOpenCommentList","_useState8","_useState7","openDeleteDialog","setOpenDeleteDialog","isPost","type","FEED_ITEM_TYPES_BY_KEY","isEditableItem","isRecommended","geosteering_comments","data","isRecommendation","typeCategory","category","userFullName","utils","getUserFullName","user","typeLabel","showCreatorToLabel","label","startCase","feedItemSourceLink","alert","id","isFeedItemClickable","handleDeleteFeedItem","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","deleteFeedItem","t0","abrupt","finish","showSuccessNotification","stop","apply","this","arguments","isBeingLikedRef","useRef","handleToggleLike","_callee2","feedItemId","_context2","current","toggleFeedItemLike","devCenterRouter","useDevCenterRouter","_jsxs","Paper","PAGE_NAME","concat","_feedItem$rig","_feedItem$well","_feedItem$well$parent","rig","name","well","parent_asset","getRigName","className","classNames","styles","hideOverflow","elevation","children","onClick","localStorage","setItem","OPEN_ALERT_DETAILS_ID_STORAGE_KEY","push","mainContainer","mainContainerClickable","mainContainerNative","isNativeDetected","_jsx","Icon","displayName","mainContainerTop","mainContainerTopNative","mainContainerTopLine","TypeAndAssetTitle","mainContainerTopMenu","CreatedAt","Actions","handleEditMenuItem","handleDeleteMenuItem","copyFeedItemLink","feedId","text","window","location","host","copyToClipboard","RigAndWell","Divider","CompletionDateTimestamp","ErrorBoundary","ErrorView","Typography","Content","_objectSpread","Reactions","FeedComments","loadingContainer","style","grey","LoadingIndicator","ConfirmationDialog","open","title","handleClose","handleOk","okText"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/slicedToArray";import{useState as s,useRef as t,useMemo as e,useEffect as n}from"react";import i from"prop-types";import{sortBy as p,noop as r}from"lodash";import c from"moment";import{makeStyles as m,Typography as a}from"@material-ui/core";import l from"../../Comment/index.js";import d from"../../CommentLoader.js";import j from"../../CommentInput/index.js";import{postFeedItemComment as u}from"../../../clients/jsonApi/index.js";import"../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsxs as A,jsx as C}from"react/jsx-runtime";import"../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../componentsV2/Text/Text.js";import"../../../componentsV2/Grid/Grid.js";import"../../../componentsV2/Grid/Cell.js";import"classnames";import"../../../componentsV2/Header/Header.scss.js";import"../../../componentsV2/Button/Button.js";import"../../../componentsV2/ButtonIcon/ButtonIcon.js";import{useIsInsideIsolatedDcApp as V}from"../../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"uuid";import"../../../componentsV2/Tooltip/Tooltip.scss.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.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/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../../componentsV2/Paper/Paper.js";import"../../../componentsV2/ModalWindow/ModalWindow.js";import"../../../componentsV2/Modal/Modal.scss.js";import"../../../componentsV2/Menu/Menu.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/SearchOne.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"../../../icons/customIcons/icons/CloudDelete.js";import"../../../icons/customIcons/icons/Lasso.js";import"../../../componentsV2/utils.js";import"../../../componentsV2/Hint/Hint.scss.js";import"../../../componentsV2/Counter/Counter.js";import"../../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../../componentsV2/TemplatesControl/TemplatesControl.js";import"zustand";import"../../../componentsV2/TemplatesControl/utils.js";import"../../../componentsV2/TemplatesControl/icons/folder/index.js";import"../../../componentsV2/TemplatesControl/Store/utils.js";import"../../../componentsV2/TemplatesControl/types.js";import"../../../utils/index.js";import"../../../permissions/PermissionsContext.js";import"../../../permissions/constants/index.js";import"../../../permissions/withPermissionsHOC.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../permissions/ProvidePermissions.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/IndicatorLive/IndicatorLive.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"immutable";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"../../../constants/corvaCompanyId.js";import"../../GradientManager/configuration/constants.js";import"../../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../../componentsV2/AppHeader/AppHeader.constants.js";import"../../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";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"../../../constants/streamSourceType.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"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"../../../clients/subscriptions/constants.js";import"../../../clients/subscriptions.v1.js";import"../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import"../../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js";import"../../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../../componentsV2/PadModeSelect/PadModeSelect.scss.js";import"querystring";import"uuid/v1";import"jsona";import"../../../utils/env.js";import"../../StatusBadge/constants.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.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/AppHeader/V3/SettingsButton/SettingsButton.js";import"../../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../../componentsV2/AppSettings/AppSettings.js";import"../../../componentsV2/AppSettings/AppSettings.constants.js";import"../../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../../componentsV2/AppSizeProvider/AppSizeProvider.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.js";import"../../../componentsV2/Autocomplete/Autocomplete.scss.js";import"../../../componentsV2/Menu/MenuItem/MenuItem.js";import"../../../componentsV2/Autocomplete/AutocompleteListBox.js";import"../../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../../componentsV2/DatePicker/DatePicker.js";import"../../../componentsV2/DragHandle/DragHandle.js";import"../../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import{isNativeDetected as v}from"../../../utils/mobileDetect.js";var I=m({showMore:{cursor:"pointer"},feedCommentsContainer:{padding:"0 16px 0 24px"},feedCommentsList:{marginTop:24},feedCommentsListContent:{height:function(o){var s=o.commentsListHeight;return s&&s-8},overflow:function(o){return o.commentsListHeight&&"scroll"}},feedCommentsListContentWrapper:{position:"relative"},gradient:{position:"absolute",bottom:0,left:0,width:"100%",height:16,background:function(o){var s=o.isInsideDcApp;return"linear-gradient(180deg, rgba(61, 61, 61, 0) 0%, ".concat(s?"#414141":"3b3b3b"," 100%)")}}});function g(i){var m,g=i.openCommentInput,h=i.openCommentList,D=i.feedItem,S=i.currentUser,b=D.comments,f=b.length,P=f>3,T=s(!1),L=o(T,2),x=L[0],M=L[1],H=s(!1),B=o(H,2),F=B[0],k=B[1],y=s(!1),q=o(y,2),R=q[0],W=q[1],w=s(null),E=o(w,2),G=E[0],O=E[1],U=t(),z=t(),N=e((function(){var o=p(D.comments,(function(o){return-c(o.created_at).unix()}));return R?R&&!F?o.slice(0,5):R&&F?o:[]:o.slice(0,3)}),[b,F,R]);n((function(){if(5===N.length&&!G){var o=z.current.clientHeight;O(o),k(!0)}G&&!R&&(O(null),k(!1))}),[N.length,G,R]);var _=V(),K=I({commentsListHeight:G,isAllCommentsVisibleKeyPressed:R,isInsideDcApp:_});return A("div",{className:(g||!!f)&&K.feedCommentsContainer,children:[g&&!v&&C(j,{inputRef:U,postComment:function(o){u(D.id,o)},setIsPosting:M,companyId:D.company_id,autoFocus:!1,currentUser:S,parentId:"".concat(D.id,"-").concat(null===(m=D.comments)||void 0===m?void 0:m.size)}),h&&A("div",{className:K.feedCommentsList,children:[C("div",{className:K.feedCommentsListContentWrapper,children:A("div",{className:K.feedCommentsListContent,ref:z,children:[N.map((function(o){return C(l,{comment:o,handleDeleteCallback:r,patchCommentCallback:r,companyId:D.company_id,currentUser:S},o.id)})),G&&C("div",{className:K.gradient})]})}),P&&C(a,{variant:"caption",color:"primary","data-testid":"".concat("FeedComments","_viewMoreComments"),className:K.showMore,onClick:function(){W(!R)},children:R?"Hide older comments":"See all comments"})]}),x&&C(d,{})]})}g.propTypes={openCommentInput:i.bool.isRequired,feedItem:i.shape().isRequired,currentUser:i.shape().isRequired};export{g as default};
1
+ import o from"@babel/runtime/helpers/slicedToArray";import{useState as s,useRef as t,useMemo as e,useEffect as n}from"react";import i from"prop-types";import{sortBy as p,noop as r}from"lodash";import c from"moment";import{makeStyles as m,Typography as a}from"@material-ui/core";import l from"../../Comment/index.js";import d from"../../CommentLoader.js";import j from"../../CommentInput/index.js";import{postFeedItemComment as u}from"../../../clients/jsonApi/index.js";import"../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsxs as A,jsx as C}from"react/jsx-runtime";import"../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../componentsV2/Text/Text.js";import"../../../componentsV2/Grid/Grid.js";import"../../../componentsV2/Grid/Cell.js";import"classnames";import"../../../componentsV2/Header/Header.scss.js";import"../../../componentsV2/Button/Button.js";import"../../../componentsV2/ButtonIcon/ButtonIcon.js";import{useIsInsideIsolatedDcApp as V}from"../../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"uuid";import"../../../componentsV2/Tooltip/Tooltip.scss.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.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/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../../componentsV2/Paper/Paper.js";import"../../../componentsV2/ModalWindow/ModalWindow.js";import"../../../componentsV2/Modal/Modal.scss.js";import"../../../componentsV2/Menu/Menu.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/SearchOne.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"../../../icons/customIcons/icons/CloudDelete.js";import"../../../icons/customIcons/icons/Lasso.js";import"../../../icons/customIcons/icons/Radius.js";import"../../../componentsV2/utils.js";import"../../../componentsV2/Hint/Hint.scss.js";import"../../../componentsV2/Counter/Counter.js";import"../../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../../componentsV2/TemplatesControl/TemplatesControl.js";import"zustand";import"../../../componentsV2/TemplatesControl/utils.js";import"../../../componentsV2/TemplatesControl/icons/folder/index.js";import"../../../componentsV2/TemplatesControl/Store/utils.js";import"../../../componentsV2/TemplatesControl/types.js";import"../../../utils/index.js";import"../../../permissions/PermissionsContext.js";import"../../../permissions/constants/index.js";import"../../../permissions/withPermissionsHOC.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../permissions/ProvidePermissions.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/IndicatorLive/IndicatorLive.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"immutable";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"../../../constants/corvaCompanyId.js";import"../../GradientManager/configuration/constants.js";import"../../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../../componentsV2/AppHeader/AppHeader.constants.js";import"../../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";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"../../../constants/streamSourceType.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"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"../../../clients/subscriptions/constants.js";import"../../../clients/subscriptions.v1.js";import"../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import"../../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js";import"../../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../../componentsV2/PadModeSelect/PadModeSelect.scss.js";import"querystring";import"uuid/v1";import"jsona";import"../../../utils/env.js";import"../../StatusBadge/constants.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.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/AppHeader/V3/SettingsButton/SettingsButton.js";import"../../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../../componentsV2/AppSettings/AppSettings.js";import"../../../componentsV2/AppSettings/AppSettings.constants.js";import"../../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../../componentsV2/AppSizeProvider/AppSizeProvider.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.js";import"../../../componentsV2/Autocomplete/Autocomplete.scss.js";import"../../../componentsV2/Menu/MenuItem/MenuItem.js";import"../../../componentsV2/Autocomplete/AutocompleteListBox.js";import"../../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../../componentsV2/DatePicker/DatePicker.js";import"../../../componentsV2/DragHandle/DragHandle.js";import"../../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import{isNativeDetected as v}from"../../../utils/mobileDetect.js";var I=m({showMore:{cursor:"pointer"},feedCommentsContainer:{padding:"0 16px 0 24px"},feedCommentsList:{marginTop:24},feedCommentsListContent:{height:function(o){var s=o.commentsListHeight;return s&&s-8},overflow:function(o){return o.commentsListHeight&&"scroll"}},feedCommentsListContentWrapper:{position:"relative"},gradient:{position:"absolute",bottom:0,left:0,width:"100%",height:16,background:function(o){var s=o.isInsideDcApp;return"linear-gradient(180deg, rgba(61, 61, 61, 0) 0%, ".concat(s?"#414141":"3b3b3b"," 100%)")}}});function g(i){var m,g=i.openCommentInput,h=i.openCommentList,D=i.feedItem,S=i.currentUser,b=D.comments,f=b.length,P=f>3,T=s(!1),L=o(T,2),x=L[0],M=L[1],H=s(!1),B=o(H,2),F=B[0],k=B[1],y=s(!1),q=o(y,2),R=q[0],W=q[1],w=s(null),E=o(w,2),G=E[0],O=E[1],U=t(),z=t(),N=e((function(){var o=p(D.comments,(function(o){return-c(o.created_at).unix()}));return R?R&&!F?o.slice(0,5):R&&F?o:[]:o.slice(0,3)}),[b,F,R]);n((function(){if(5===N.length&&!G){var o=z.current.clientHeight;O(o),k(!0)}G&&!R&&(O(null),k(!1))}),[N.length,G,R]);var _=V(),K=I({commentsListHeight:G,isAllCommentsVisibleKeyPressed:R,isInsideDcApp:_});return A("div",{className:(g||!!f)&&K.feedCommentsContainer,children:[g&&!v&&C(j,{inputRef:U,postComment:function(o){u(D.id,o)},setIsPosting:M,companyId:D.company_id,autoFocus:!1,currentUser:S,parentId:"".concat(D.id,"-").concat(null===(m=D.comments)||void 0===m?void 0:m.size)}),h&&A("div",{className:K.feedCommentsList,children:[C("div",{className:K.feedCommentsListContentWrapper,children:A("div",{className:K.feedCommentsListContent,ref:z,children:[N.map((function(o){return C(l,{comment:o,handleDeleteCallback:r,patchCommentCallback:r,companyId:D.company_id,currentUser:S},o.id)})),G&&C("div",{className:K.gradient})]})}),P&&C(a,{variant:"caption",color:"primary","data-testid":"".concat("FeedComments","_viewMoreComments"),className:K.showMore,onClick:function(){W(!R)},children:R?"Hide older comments":"See all comments"})]}),x&&C(d,{})]})}g.propTypes={openCommentInput:i.bool.isRequired,feedItem:i.shape().isRequired,currentUser:i.shape().isRequired};export{g as default};
2
2
  //# sourceMappingURL=FeedComments.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeedComments.js","sources":["../../../../src/components/FeedItem/components/FeedComments.js"],"sourcesContent":["import { useState, useMemo, useEffect, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { noop, sortBy } from 'lodash';\nimport moment from 'moment';\nimport { Typography, makeStyles } from '@material-ui/core';\n\nimport Comment from '~/components/Comment';\nimport CommentLoader from '~/components/CommentLoader';\nimport CommentInput from '~/components/CommentInput';\nimport { postFeedItemComment } from '~/clients/jsonApi';\nimport { useIsInsideIsolatedDcApp } from '~/components/DevCenter/DevCenterAppContainer/components';\nimport { isNativeDetected } from '~utils/mobileDetect';\n\nconst PAGE_NAME = 'FeedComments';\n\nconst useStyles = makeStyles({\n showMore: {\n cursor: 'pointer',\n },\n feedCommentsContainer: { padding: '0 16px 0 24px' },\n feedCommentsList: { marginTop: 24 },\n feedCommentsListContent: {\n height: ({ commentsListHeight }) => commentsListHeight && commentsListHeight - 8,\n overflow: ({ commentsListHeight }) => commentsListHeight && 'scroll',\n },\n feedCommentsListContentWrapper: {\n position: 'relative',\n },\n gradient: {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%',\n height: 16,\n background: ({ isInsideDcApp }) =>\n `linear-gradient(180deg, rgba(61, 61, 61, 0) 0%, ${\n isInsideDcApp ? '#414141' : '3b3b3b'\n } 100%)`,\n },\n});\n\n// If there are more than 3 comments, we show only last 3, other comments are hidden.\n// To see all comments, user clicks ‘SEE ALL COMMENTS’.\n// To hide all comments back, user clicks ‘HIDE OLDER COMMENTS’\n// After clicking on a ‘SEE ALL COMMENTS’:\n// Height of the comments pop-over changes to show 5 comments instead of 3.\n// If all comments to initial comment can’t fit into comment pop-over, than User needs to scroll down to see them.\n// If there are more than 5 comments (so 6th+ comments in not seen at the moment, we cover bottom comment with gradient, to show that there is more to see.\n// The height of the Comments pop-over remains the same (to show first 5 comments), we don’t change it to show all possible 1000 comments. Only 5.\n\nconst INITIAL_VISIBLE_COMMENTS_COUNT = 3;\nconst COUNT_OF_COMMENTS_IN_SCROLLABLE_CONTAINER = 5;\nfunction FeedComments({ openCommentInput, openCommentList, feedItem, currentUser }) {\n const { comments } = feedItem;\n\n const commentsCount = comments.length;\n const moreCommentsExist = commentsCount > INITIAL_VISIBLE_COMMENTS_COUNT;\n\n const [isPosting, setIsPosting] = useState(false);\n const [isVisibleCommentsAppeared, setIsVisibleCommentsAppeared] = useState(false);\n const [isAllCommentsVisibleKeyPressed, setIsAllCommentsVisibleKeyPressed] = useState(false);\n const [commentsListHeight, setCommentsListHeight] = useState(null);\n\n const inputEl = useRef();\n const commentsListRef = useRef();\n\n const toggleShowAllComments = () => {\n setIsAllCommentsVisibleKeyPressed(!isAllCommentsVisibleKeyPressed);\n };\n\n const postComment = comment => {\n postFeedItemComment(feedItem.id, comment);\n };\n\n const visibleComments = useMemo(() => {\n const sortedComments = sortBy(feedItem.comments, item => -moment(item.created_at).unix());\n\n if (!isAllCommentsVisibleKeyPressed)\n return sortedComments.slice(0, INITIAL_VISIBLE_COMMENTS_COUNT);\n\n if (isAllCommentsVisibleKeyPressed && !isVisibleCommentsAppeared) {\n return sortedComments.slice(0, COUNT_OF_COMMENTS_IN_SCROLLABLE_CONTAINER);\n }\n\n if (isAllCommentsVisibleKeyPressed && isVisibleCommentsAppeared) return sortedComments;\n\n return [];\n }, [comments, isVisibleCommentsAppeared, isAllCommentsVisibleKeyPressed]);\n\n useEffect(() => {\n if (\n visibleComments.length === COUNT_OF_COMMENTS_IN_SCROLLABLE_CONTAINER &&\n !commentsListHeight\n ) {\n const divHeight = commentsListRef.current.clientHeight;\n setCommentsListHeight(divHeight);\n setIsVisibleCommentsAppeared(true);\n }\n\n if (commentsListHeight && !isAllCommentsVisibleKeyPressed) {\n setCommentsListHeight(null);\n setIsVisibleCommentsAppeared(false);\n }\n }, [visibleComments.length, commentsListHeight, isAllCommentsVisibleKeyPressed]);\n\n const isInsideDcApp = useIsInsideIsolatedDcApp();\n const classes = useStyles({ commentsListHeight, isAllCommentsVisibleKeyPressed, isInsideDcApp });\n\n return (\n <div className={(openCommentInput || !!commentsCount) && classes.feedCommentsContainer}>\n {openCommentInput && !isNativeDetected && (\n <CommentInput\n inputRef={inputEl}\n postComment={postComment}\n setIsPosting={setIsPosting}\n companyId={feedItem.company_id}\n autoFocus={false}\n currentUser={currentUser}\n parentId={`${feedItem.id}-${feedItem.comments?.size}`}\n />\n )}\n {openCommentList && (\n <div className={classes.feedCommentsList}>\n <div className={classes.feedCommentsListContentWrapper}>\n <div className={classes.feedCommentsListContent} ref={commentsListRef}>\n {visibleComments.map(comment => (\n <Comment\n key={comment.id}\n comment={comment}\n handleDeleteCallback={noop /* NOTE: Received through subscription */}\n patchCommentCallback={noop}\n companyId={feedItem.company_id}\n currentUser={currentUser}\n />\n ))}\n {commentsListHeight && <div className={classes.gradient} />}\n </div>\n </div>\n {moreCommentsExist && (\n <Typography\n variant=\"caption\"\n color=\"primary\"\n data-testid={`${PAGE_NAME}_viewMoreComments`}\n className={classes.showMore}\n onClick={toggleShowAllComments}\n >\n {isAllCommentsVisibleKeyPressed ? 'Hide older comments' : 'See all comments'}\n </Typography>\n )}\n </div>\n )}\n\n {isPosting && <CommentLoader />}\n </div>\n );\n}\n\nFeedComments.propTypes = {\n openCommentInput: PropTypes.bool.isRequired,\n feedItem: PropTypes.shape().isRequired,\n currentUser: PropTypes.shape().isRequired,\n};\n\nexport default FeedComments;\n"],"names":["useStyles","makeStyles","showMore","cursor","feedCommentsContainer","padding","feedCommentsList","marginTop","feedCommentsListContent","height","_ref","commentsListHeight","overflow","_ref2","feedCommentsListContentWrapper","position","gradient","bottom","left","width","background","_ref3","isInsideDcApp","concat","FeedComments","_ref4","_feedItem$comments","openCommentInput","openCommentList","feedItem","currentUser","comments","commentsCount","length","moreCommentsExist","useState","_useState2","_slicedToArray","_useState","isPosting","setIsPosting","_useState4","_useState3","isVisibleCommentsAppeared","setIsVisibleCommentsAppeared","_useState6","_useState5","isAllCommentsVisibleKeyPressed","setIsAllCommentsVisibleKeyPressed","_useState8","_useState7","setCommentsListHeight","inputEl","useRef","commentsListRef","visibleComments","useMemo","sortedComments","sortBy","item","moment","created_at","unix","slice","useEffect","divHeight","current","clientHeight","useIsInsideIsolatedDcApp","classes","_jsxs","className","children","isNativeDetected","_jsx","CommentInput","inputRef","postComment","comment","postFeedItemComment","id","companyId","company_id","autoFocus","parentId","size","ref","map","Comment","handleDeleteCallback","noop","patchCommentCallback","Typography","variant","color","onClick","CommentLoader","propTypes","PropTypes","bool","isRequired","shape"],"mappings":"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"}
1
+ {"version":3,"file":"FeedComments.js","sources":["../../../../src/components/FeedItem/components/FeedComments.js"],"sourcesContent":["import { useState, useMemo, useEffect, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { noop, sortBy } from 'lodash';\nimport moment from 'moment';\nimport { Typography, makeStyles } from '@material-ui/core';\n\nimport Comment from '~/components/Comment';\nimport CommentLoader from '~/components/CommentLoader';\nimport CommentInput from '~/components/CommentInput';\nimport { postFeedItemComment } from '~/clients/jsonApi';\nimport { useIsInsideIsolatedDcApp } from '~/components/DevCenter/DevCenterAppContainer/components';\nimport { isNativeDetected } from '~utils/mobileDetect';\n\nconst PAGE_NAME = 'FeedComments';\n\nconst useStyles = makeStyles({\n showMore: {\n cursor: 'pointer',\n },\n feedCommentsContainer: { padding: '0 16px 0 24px' },\n feedCommentsList: { marginTop: 24 },\n feedCommentsListContent: {\n height: ({ commentsListHeight }) => commentsListHeight && commentsListHeight - 8,\n overflow: ({ commentsListHeight }) => commentsListHeight && 'scroll',\n },\n feedCommentsListContentWrapper: {\n position: 'relative',\n },\n gradient: {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%',\n height: 16,\n background: ({ isInsideDcApp }) =>\n `linear-gradient(180deg, rgba(61, 61, 61, 0) 0%, ${\n isInsideDcApp ? '#414141' : '3b3b3b'\n } 100%)`,\n },\n});\n\n// If there are more than 3 comments, we show only last 3, other comments are hidden.\n// To see all comments, user clicks ‘SEE ALL COMMENTS’.\n// To hide all comments back, user clicks ‘HIDE OLDER COMMENTS’\n// After clicking on a ‘SEE ALL COMMENTS’:\n// Height of the comments pop-over changes to show 5 comments instead of 3.\n// If all comments to initial comment can’t fit into comment pop-over, than User needs to scroll down to see them.\n// If there are more than 5 comments (so 6th+ comments in not seen at the moment, we cover bottom comment with gradient, to show that there is more to see.\n// The height of the Comments pop-over remains the same (to show first 5 comments), we don’t change it to show all possible 1000 comments. Only 5.\n\nconst INITIAL_VISIBLE_COMMENTS_COUNT = 3;\nconst COUNT_OF_COMMENTS_IN_SCROLLABLE_CONTAINER = 5;\nfunction FeedComments({ openCommentInput, openCommentList, feedItem, currentUser }) {\n const { comments } = feedItem;\n\n const commentsCount = comments.length;\n const moreCommentsExist = commentsCount > INITIAL_VISIBLE_COMMENTS_COUNT;\n\n const [isPosting, setIsPosting] = useState(false);\n const [isVisibleCommentsAppeared, setIsVisibleCommentsAppeared] = useState(false);\n const [isAllCommentsVisibleKeyPressed, setIsAllCommentsVisibleKeyPressed] = useState(false);\n const [commentsListHeight, setCommentsListHeight] = useState(null);\n\n const inputEl = useRef();\n const commentsListRef = useRef();\n\n const toggleShowAllComments = () => {\n setIsAllCommentsVisibleKeyPressed(!isAllCommentsVisibleKeyPressed);\n };\n\n const postComment = comment => {\n postFeedItemComment(feedItem.id, comment);\n };\n\n const visibleComments = useMemo(() => {\n const sortedComments = sortBy(feedItem.comments, item => -moment(item.created_at).unix());\n\n if (!isAllCommentsVisibleKeyPressed)\n return sortedComments.slice(0, INITIAL_VISIBLE_COMMENTS_COUNT);\n\n if (isAllCommentsVisibleKeyPressed && !isVisibleCommentsAppeared) {\n return sortedComments.slice(0, COUNT_OF_COMMENTS_IN_SCROLLABLE_CONTAINER);\n }\n\n if (isAllCommentsVisibleKeyPressed && isVisibleCommentsAppeared) return sortedComments;\n\n return [];\n }, [comments, isVisibleCommentsAppeared, isAllCommentsVisibleKeyPressed]);\n\n useEffect(() => {\n if (\n visibleComments.length === COUNT_OF_COMMENTS_IN_SCROLLABLE_CONTAINER &&\n !commentsListHeight\n ) {\n const divHeight = commentsListRef.current.clientHeight;\n setCommentsListHeight(divHeight);\n setIsVisibleCommentsAppeared(true);\n }\n\n if (commentsListHeight && !isAllCommentsVisibleKeyPressed) {\n setCommentsListHeight(null);\n setIsVisibleCommentsAppeared(false);\n }\n }, [visibleComments.length, commentsListHeight, isAllCommentsVisibleKeyPressed]);\n\n const isInsideDcApp = useIsInsideIsolatedDcApp();\n const classes = useStyles({ commentsListHeight, isAllCommentsVisibleKeyPressed, isInsideDcApp });\n\n return (\n <div className={(openCommentInput || !!commentsCount) && classes.feedCommentsContainer}>\n {openCommentInput && !isNativeDetected && (\n <CommentInput\n inputRef={inputEl}\n postComment={postComment}\n setIsPosting={setIsPosting}\n companyId={feedItem.company_id}\n autoFocus={false}\n currentUser={currentUser}\n parentId={`${feedItem.id}-${feedItem.comments?.size}`}\n />\n )}\n {openCommentList && (\n <div className={classes.feedCommentsList}>\n <div className={classes.feedCommentsListContentWrapper}>\n <div className={classes.feedCommentsListContent} ref={commentsListRef}>\n {visibleComments.map(comment => (\n <Comment\n key={comment.id}\n comment={comment}\n handleDeleteCallback={noop /* NOTE: Received through subscription */}\n patchCommentCallback={noop}\n companyId={feedItem.company_id}\n currentUser={currentUser}\n />\n ))}\n {commentsListHeight && <div className={classes.gradient} />}\n </div>\n </div>\n {moreCommentsExist && (\n <Typography\n variant=\"caption\"\n color=\"primary\"\n data-testid={`${PAGE_NAME}_viewMoreComments`}\n className={classes.showMore}\n onClick={toggleShowAllComments}\n >\n {isAllCommentsVisibleKeyPressed ? 'Hide older comments' : 'See all comments'}\n </Typography>\n )}\n </div>\n )}\n\n {isPosting && <CommentLoader />}\n </div>\n );\n}\n\nFeedComments.propTypes = {\n openCommentInput: PropTypes.bool.isRequired,\n feedItem: PropTypes.shape().isRequired,\n currentUser: PropTypes.shape().isRequired,\n};\n\nexport default FeedComments;\n"],"names":["useStyles","makeStyles","showMore","cursor","feedCommentsContainer","padding","feedCommentsList","marginTop","feedCommentsListContent","height","_ref","commentsListHeight","overflow","_ref2","feedCommentsListContentWrapper","position","gradient","bottom","left","width","background","_ref3","isInsideDcApp","concat","FeedComments","_ref4","_feedItem$comments","openCommentInput","openCommentList","feedItem","currentUser","comments","commentsCount","length","moreCommentsExist","useState","_useState2","_slicedToArray","_useState","isPosting","setIsPosting","_useState4","_useState3","isVisibleCommentsAppeared","setIsVisibleCommentsAppeared","_useState6","_useState5","isAllCommentsVisibleKeyPressed","setIsAllCommentsVisibleKeyPressed","_useState8","_useState7","setCommentsListHeight","inputEl","useRef","commentsListRef","visibleComments","useMemo","sortedComments","sortBy","item","moment","created_at","unix","slice","useEffect","divHeight","current","clientHeight","useIsInsideIsolatedDcApp","classes","_jsxs","className","children","isNativeDetected","_jsx","CommentInput","inputRef","postComment","comment","postFeedItemComment","id","companyId","company_id","autoFocus","parentId","size","ref","map","Comment","handleDeleteCallback","noop","patchCommentCallback","Typography","variant","color","onClick","CommentLoader","propTypes","PropTypes","bool","isRequired","shape"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as c,Fragment as i}from"react/jsx-runtime";import{useDropzone as n}from"react-dropzone";import t from"classnames";import{useStyles as m}from"./styles.js";import{FileAdditionOne 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/SearchOne.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{CautionFilledCustomIcon as r}from"../../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"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import{Regular14 as p}from"../Typography.js";import l from"../Button/components/Button/index.js";import"moment-timezone";import"@material-ui/core";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import{parseAccept as u,formatDescription as a}from"../../componentsV2/FilesDropzone/utils.js";var d=function(d){var j=d.multiple,I=d.children,h=d.accept,v=d.onDrop,f=d.className,F=d.maxFiles,b=d.maxSize,x=d.errorText,C=d.disabled,g=m(),D=u(h),z=D.mimetypes,A=D.extensions,B=z.length||A.length?o({"*/*":A},Object.fromEntries(z.map((function(o){return[o,[]]})))):void 0,k=a(A,b),y=n({onDrop:v,multiple:j,accept:B,maxFiles:F,maxSize:b,disabled:C}),N=y.getRootProps,O=y.getInputProps,P=y.isDragActive;return s("div",{className:f,children:[s("div",o({},N(),{className:t(g.root,C&&g.disabled,P&&g.active),children:[c("input",o({},O())),I||s(i,{children:[c(e,{size:24,className:g.icon}),c(p,{children:"Drag & Drop your file here or"}),c(l,{variation:"tertiary",size:"small",disabled:C,className:g.uploadButton,children:"Choose file"})]})]})),!x&&k&&c(p,{className:t(g.description,C&&g.disabled),children:k}),x&&s(p,{className:g.error,children:[c(r,{size:20}),x]})]})};export{d as FilesDropzone};
1
+ import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as c,Fragment as i}from"react/jsx-runtime";import{useDropzone as n}from"react-dropzone";import t from"classnames";import{useStyles as m}from"./styles.js";import{FileAdditionOne as r}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/SearchOne.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{CautionFilledCustomIcon as e}from"../../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"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import{Regular14 as p}from"../Typography.js";import l from"../Button/components/Button/index.js";import"moment-timezone";import"@material-ui/core";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import{parseAccept as u,formatDescription as a}from"../../componentsV2/FilesDropzone/utils.js";var d=function(d){var j=d.multiple,I=d.children,h=d.accept,v=d.onDrop,f=d.className,F=d.maxFiles,b=d.maxSize,x=d.errorText,C=d.disabled,g=m(),D=u(h),z=D.mimetypes,A=D.extensions,B=z.length||A.length?o({"*/*":A},Object.fromEntries(z.map((function(o){return[o,[]]})))):void 0,k=a(A,b),y=n({onDrop:v,multiple:j,accept:B,maxFiles:F,maxSize:b,disabled:C}),N=y.getRootProps,O=y.getInputProps,P=y.isDragActive;return s("div",{className:f,children:[s("div",o({},N(),{className:t(g.root,C&&g.disabled,P&&g.active),children:[c("input",o({},O())),I||s(i,{children:[c(r,{size:24,className:g.icon}),c(p,{children:"Drag & Drop your file here or"}),c(l,{variation:"tertiary",size:"small",disabled:C,className:g.uploadButton,children:"Choose file"})]})]})),!x&&k&&c(p,{className:t(g.description,C&&g.disabled),children:k}),x&&s(p,{className:g.error,children:[c(e,{size:20}),x]})]})};export{d as FilesDropzone};
2
2
  //# sourceMappingURL=FilesDropzone.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as n,Fragment as i}from"react/jsx-runtime";import{useState as e,useEffect as c,useMemo as t}from"react";import r from"prop-types";import a from"classnames";import{Typography as m,LinearProgress as l}from"@material-ui/core";import d from"../IconButton/index.js";import u from"../Button/components/Button/index.js";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import{CloseSmallIcon as p,DeleteFourIcon as f,CheckOneIcon as I,RedoIcon as h,UploadIcon as j}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/SearchOne.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"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import g from"./Icons/IconWarning.js";import{FileIcon as v}from"../FileIcon/FileIcon.js";import{useStyles as z}from"./useStyles.js";function B(r){var B,C,N,S,b,y,w,L=r.size,F=r.unit,k=r.name,A=r.customUnitName,P=r.sizeBytes,x=r.handleCancel,M=r.onReload,E=r.onDelete,T=r.loadedBytes,O=r.error,R=r.errorText,U=r.formatError,D=r.importButtonType,W=r.isLoadingAnimation,q=r.showActions,G=z(),K=e({}),Z=K[0],_=K[1],H=e(0),J=H[0],Q=H[1],V=e(!0),X=V[0],Y=V[1],$="large"===L,oo=$?24:16,so=$?"medium":"small";c((function(){_(function(o,s,n){return"time"===s?{downloaded:0,unit:"min",convertedSize:o}:"custom"===s?{downloaded:0,unit:n,convertedSize:o}:o>=Math.pow(10,6)?{downloaded:0,unit:"MB",convertedSize:Math.floor(o/Math.pow(10,5))/10}:o>=Math.pow(10,3)?{downloaded:0,unit:"KB",convertedSize:Math.floor(o/Math.pow(10,2))/10}:{downloaded:0,unit:"B",convertedSize:Math.floor(10*o)/10}}(P,F,A))}),[P,F]),c((function(){if(T&&P){var s=Math.round(T/P*100);_((function(n){return o(o({},n),{downloaded:Math.floor(n.convertedSize*s/10)/10})})),Q(s)}}),[T,P]),c((function(){var o;return E&&J>=100&&(Y(!0),o=setTimeout((function(){Y(!1)}),5e3)),function(){return o&&clearTimeout(o)}}),[J]),c((function(){O&&(Q(0),_((function(s){return o(o({},s),{downloaded:0})})))}),[O]);var no=t((function(){var o,s;return[a(G.iconButton,((o={})[G.iconButtonLarge]=$,o)),a(G.actionIcon,((s={})[G.actionIconLarge]=$,s))]}),[$]),io=no[0],eo=no[1];return s("div",{className:G.fileStateWrapper,children:[n("div",{className:G.fileIconContainer,children:n(v,{name:k,style:{fontSize:$?48:32}})}),s("div",{className:G.fileState,children:[s("div",{className:G.fileStateProgress,children:[n("div",{className:G.fileNameWrapper,children:n(m,{className:a(G.fileName,(B={},B[G.fileNameLarge]=$,B)),children:k.length>7?s(i,{children:[n("span",{className:G.firstPart,children:k.slice(0,k.length-7)}),n("span",{children:k.slice(-7)})]}):k})}),!W&&n(l,{className:G.progressBar,variant:"determinate",value:J,classes:{colorPrimary:a(G.progressBackground,(C={},C[G.progressBarError]=O,C)),barColorPrimary:a(G.progressBarColor,(N={},N[G.progressBarError]=O,N))}}),s("div",{className:G.loaderProgressContainer,children:[!W&&n(m,{className:a(G.fileSize,(S={},S[G.fileSizeLarge]=$,S)),component:"span",children:"".concat(Z.downloaded," of ").concat(Z.convertedSize," ").concat(Z.unit)}),s("div",{className:a(G.progressStatus,(b={},b[G.fileSizeLarge]=$,b)),children:[O&&s(m,{component:"div",className:G.errorContainer,children:[n(g,{size:L}),n(m,{component:"span",className:a(G.errorText,(y={},y[G.fileSizeLarge]=$,y)),children:U?"Upload Error. Unacceptable file format.":"Upload Error".concat(R&&". ".concat(R))})]}),!O&&!W&&"".concat(J," %")]})]})]}),q&&s("div",{className:G.fileActions,children:[J<100&&!O&&n(i,{children:W?n("div",{className:a(G.loadingIcon,(w={},w[G.loadingLargeIcon]=$,w)),style:{backgroundImage:"url(".concat("/static/media/6fa6f1128bc0185126482345243bcd42.svg",")")}}):n(d,{tooltipProps:{title:"Cancel"},className:io,onClick:function(){x(k),Q(0),_((function(s){return o(o({},s),{downloaded:0})}))},size:so,children:n(p,{className:eo,size:oo})})}),100===J&&!O&&(!X&&E?n(d,{variant:"contained",tooltipProps:{title:"Delete"},className:io,onClick:E,size:so,children:n(f,{className:eo,size:oo})}):n(I,{fill:"#75DB29",size:oo,style:{marginLeft:12}})),M&&O&&n(i,{children:U?n(i,{children:"default"===D?n(u,{size:$?"medium":"small",variation:"primary",startIcon:n(j,{}),onClick:M,children:"Import"}):n(d,{size:so,tooltipProps:{title:"Import File"},className:io,onClick:M,children:n(j,{size:oo})})}):n(d,{size:so,tooltipProps:{title:"Reload"},className:io,onClick:M,children:n(h,{size:oo})})})]})]})]})}var C={size:r.oneOf(["small","large"]),unit:r.oneOf(["size","time","custom"]),customUnitName:r.string,onDelete:r.func,onReload:r.func,handleCancel:r.func,name:r.string,sizeBytes:r.number,error:r.bool,errorText:r.string,formatError:r.bool,importButtonType:r.oneOf(["default","icon"]),loadedBytes:r.number.isRequired,isLoadingAnimation:r.bool,showActions:r.bool};B.propTypes=C,B.defaultProps={size:"small",unit:"size",onDelete:null,onReload:null,name:"",customUnitName:"",sizeBytes:1,error:null,errorText:"",formatError:!1,importButtonType:"default",handleCancel:null,isLoadingAnimation:!1,showActions:!0};export{B as default};
1
+ import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as n,Fragment as i}from"react/jsx-runtime";import{useState as e,useEffect as c,useMemo as t}from"react";import r from"prop-types";import a from"classnames";import{Typography as m,LinearProgress as l}from"@material-ui/core";import d from"../IconButton/index.js";import u from"../Button/components/Button/index.js";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import{CloseSmallIcon as p,DeleteFourIcon as f,CheckOneIcon as I,RedoIcon as h,UploadIcon as j}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/SearchOne.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"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import g from"./Icons/IconWarning.js";import{FileIcon as v}from"../FileIcon/FileIcon.js";import{useStyles as z}from"./useStyles.js";function B(r){var B,C,N,S,b,y,w,L=r.size,F=r.unit,k=r.name,A=r.customUnitName,P=r.sizeBytes,x=r.handleCancel,M=r.onReload,E=r.onDelete,R=r.loadedBytes,T=r.error,O=r.errorText,U=r.formatError,D=r.importButtonType,W=r.isLoadingAnimation,q=r.showActions,G=z(),K=e({}),Z=K[0],_=K[1],H=e(0),J=H[0],Q=H[1],V=e(!0),X=V[0],Y=V[1],$="large"===L,oo=$?24:16,so=$?"medium":"small";c((function(){_(function(o,s,n){return"time"===s?{downloaded:0,unit:"min",convertedSize:o}:"custom"===s?{downloaded:0,unit:n,convertedSize:o}:o>=Math.pow(10,6)?{downloaded:0,unit:"MB",convertedSize:Math.floor(o/Math.pow(10,5))/10}:o>=Math.pow(10,3)?{downloaded:0,unit:"KB",convertedSize:Math.floor(o/Math.pow(10,2))/10}:{downloaded:0,unit:"B",convertedSize:Math.floor(10*o)/10}}(P,F,A))}),[P,F]),c((function(){if(R&&P){var s=Math.round(R/P*100);_((function(n){return o(o({},n),{downloaded:Math.floor(n.convertedSize*s/10)/10})})),Q(s)}}),[R,P]),c((function(){var o;return E&&J>=100&&(Y(!0),o=setTimeout((function(){Y(!1)}),5e3)),function(){return o&&clearTimeout(o)}}),[J]),c((function(){T&&(Q(0),_((function(s){return o(o({},s),{downloaded:0})})))}),[T]);var no=t((function(){var o,s;return[a(G.iconButton,((o={})[G.iconButtonLarge]=$,o)),a(G.actionIcon,((s={})[G.actionIconLarge]=$,s))]}),[$]),io=no[0],eo=no[1];return s("div",{className:G.fileStateWrapper,children:[n("div",{className:G.fileIconContainer,children:n(v,{name:k,style:{fontSize:$?48:32}})}),s("div",{className:G.fileState,children:[s("div",{className:G.fileStateProgress,children:[n("div",{className:G.fileNameWrapper,children:n(m,{className:a(G.fileName,(B={},B[G.fileNameLarge]=$,B)),children:k.length>7?s(i,{children:[n("span",{className:G.firstPart,children:k.slice(0,k.length-7)}),n("span",{children:k.slice(-7)})]}):k})}),!W&&n(l,{className:G.progressBar,variant:"determinate",value:J,classes:{colorPrimary:a(G.progressBackground,(C={},C[G.progressBarError]=T,C)),barColorPrimary:a(G.progressBarColor,(N={},N[G.progressBarError]=T,N))}}),s("div",{className:G.loaderProgressContainer,children:[!W&&n(m,{className:a(G.fileSize,(S={},S[G.fileSizeLarge]=$,S)),component:"span",children:"".concat(Z.downloaded," of ").concat(Z.convertedSize," ").concat(Z.unit)}),s("div",{className:a(G.progressStatus,(b={},b[G.fileSizeLarge]=$,b)),children:[T&&s(m,{component:"div",className:G.errorContainer,children:[n(g,{size:L}),n(m,{component:"span",className:a(G.errorText,(y={},y[G.fileSizeLarge]=$,y)),children:U?"Upload Error. Unacceptable file format.":"Upload Error".concat(O&&". ".concat(O))})]}),!T&&!W&&"".concat(J," %")]})]})]}),q&&s("div",{className:G.fileActions,children:[J<100&&!T&&n(i,{children:W?n("div",{className:a(G.loadingIcon,(w={},w[G.loadingLargeIcon]=$,w)),style:{backgroundImage:"url(".concat("/static/media/6fa6f1128bc0185126482345243bcd42.svg",")")}}):n(d,{tooltipProps:{title:"Cancel"},className:io,onClick:function(){x(k),Q(0),_((function(s){return o(o({},s),{downloaded:0})}))},size:so,children:n(p,{className:eo,size:oo})})}),100===J&&!T&&(!X&&E?n(d,{variant:"contained",tooltipProps:{title:"Delete"},className:io,onClick:E,size:so,children:n(f,{className:eo,size:oo})}):n(I,{fill:"#75DB29",size:oo,style:{marginLeft:12}})),M&&T&&n(i,{children:U?n(i,{children:"default"===D?n(u,{size:$?"medium":"small",variation:"primary",startIcon:n(j,{}),onClick:M,children:"Import"}):n(d,{size:so,tooltipProps:{title:"Import File"},className:io,onClick:M,children:n(j,{size:oo})})}):n(d,{size:so,tooltipProps:{title:"Reload"},className:io,onClick:M,children:n(h,{size:oo})})})]})]})]})}var C={size:r.oneOf(["small","large"]),unit:r.oneOf(["size","time","custom"]),customUnitName:r.string,onDelete:r.func,onReload:r.func,handleCancel:r.func,name:r.string,sizeBytes:r.number,error:r.bool,errorText:r.string,formatError:r.bool,importButtonType:r.oneOf(["default","icon"]),loadedBytes:r.number.isRequired,isLoadingAnimation:r.bool,showActions:r.bool};B.propTypes=C,B.defaultProps={size:"small",unit:"size",onDelete:null,onReload:null,name:"",customUnitName:"",sizeBytes:1,error:null,errorText:"",formatError:!1,importButtonType:"default",handleCancel:null,isLoadingAnimation:!1,showActions:!0};export{B as default};
2
2
  //# sourceMappingURL=FilesLoader.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as o,jsx as s,Fragment as c}from"react/jsx-runtime";import i from"classnames";import{LinearProgress as n}from"@material-ui/core";import{FileIcon as t}from"../FileIcon/FileIcon.js";import r from"../IconButton/index.js";import{CloseIcon as e,DeleteFourIcon as m,RedoIcon as l}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/SearchOne.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{CautionFilledCustomIcon as a}from"../../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"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import{MiddleTruncatedText as p}from"../MiddleTruncatedText/MiddleTruncatedText.js";import{Regular14 as u,Regular12 as d}from"../Typography.js";import{formatSizeProgress as j}from"./utils.js";import{useStyles as I}from"./styles.js";var h=function(h){var C=h.formatProgress,v=void 0===C?j:C,F=h.className,f=h.name,x=h.current,k=h.total,N=h.errorText,g=h.onCancel,T=h.onReload,P=h.onDelete,A=I(),M=k>=0&&x>=0,R=Math.min(100,Math.ceil(x/k*100)),b=x>=k;return o("div",{className:i(A.root,F),children:[s(t,{name:f,className:A.icon,strokeWidth:2}),o("div",{className:A.content,children:[s(u,{className:A.name,children:s(p,{children:f},f)}),!N&&!b&&o(c,{children:[s(n,{className:A.progressBar,variant:M?"determinate":void 0,value:R}),o("div",{className:A.progressTextContainer,children:[s(d,{className:A.progressText,children:v(k,x)}),M&&o(d,{className:A.progressText,children:[R,"%"]})]})]}),N&&o(u,{className:A.error,children:[s(a,{size:16}),N]})]}),g&&!N&&!b&&s(r,{onClick:g,size:"small",tooltipProps:{title:"Cancel"},children:s(e,{})}),P&&(N||b)&&s(r,{onClick:P,size:"small",tooltipProps:{title:"Remove File"},children:s(m,{})}),T&&N&&s(r,{onClick:T,size:"small",tooltipProps:{title:"Reload"},children:s(l,{})})]})};export{h as FilesLoaderV2};
1
+ import{jsxs as o,jsx as s,Fragment as c}from"react/jsx-runtime";import i from"classnames";import{LinearProgress as n}from"@material-ui/core";import{FileIcon as t}from"../FileIcon/FileIcon.js";import r from"../IconButton/index.js";import{CloseIcon as e,DeleteFourIcon as m,RedoIcon as l}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/SearchOne.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{CautionFilledCustomIcon as a}from"../../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"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import{MiddleTruncatedText as p}from"../MiddleTruncatedText/MiddleTruncatedText.js";import{Regular14 as u,Regular12 as d}from"../Typography.js";import{formatSizeProgress as j}from"./utils.js";import{useStyles as I}from"./styles.js";var h=function(h){var C=h.formatProgress,v=void 0===C?j:C,F=h.className,f=h.name,x=h.current,k=h.total,N=h.errorText,g=h.onCancel,T=h.onReload,P=h.onDelete,R=I(),A=k>=0&&x>=0,M=Math.min(100,Math.ceil(x/k*100)),b=x>=k;return o("div",{className:i(R.root,F),children:[s(t,{name:f,className:R.icon,strokeWidth:2}),o("div",{className:R.content,children:[s(u,{className:R.name,children:s(p,{children:f},f)}),!N&&!b&&o(c,{children:[s(n,{className:R.progressBar,variant:A?"determinate":void 0,value:M}),o("div",{className:R.progressTextContainer,children:[s(d,{className:R.progressText,children:v(k,x)}),A&&o(d,{className:R.progressText,children:[M,"%"]})]})]}),N&&o(u,{className:R.error,children:[s(a,{size:16}),N]})]}),g&&!N&&!b&&s(r,{onClick:g,size:"small",tooltipProps:{title:"Cancel"},children:s(e,{})}),P&&(N||b)&&s(r,{onClick:P,size:"small",tooltipProps:{title:"Remove File"},children:s(m,{})}),T&&N&&s(r,{onClick:T,size:"small",tooltipProps:{title:"Reload"},children:s(l,{})})]})};export{h as FilesLoaderV2};
2
2
  //# sourceMappingURL=FilesLoaderV2.js.map