@corva/ui 3.79.0-1 → 3.79.0-10

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 (452) hide show
  1. package/cjs-bundle/clients/api/apiCore.js +1 -1
  2. package/cjs-bundle/clients/api/apiCore.js.map +1 -1
  3. package/cjs-bundle/clients/subscriptions/socket-client.v2.js +1 -1
  4. package/cjs-bundle/clients/subscriptions/socket-client.v2.js.map +1 -1
  5. package/cjs-bundle/clients/subscriptions/subscriptions-auth-recovery.js +2 -0
  6. package/cjs-bundle/clients/subscriptions/subscriptions-auth-recovery.js.map +1 -0
  7. package/cjs-bundle/clients/subscriptions/subscriptions-client.dummy.js +1 -1
  8. package/cjs-bundle/clients/subscriptions/subscriptions-client.dummy.js.map +1 -1
  9. package/cjs-bundle/clients/subscriptions/subscriptions-client.factory.js +1 -1
  10. package/cjs-bundle/clients/subscriptions/subscriptions-client.factory.js.map +1 -1
  11. package/cjs-bundle/clients/subscriptions/subscriptions-client.js +1 -1
  12. package/cjs-bundle/clients/subscriptions/subscriptions-client.js.map +1 -1
  13. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  14. package/cjs-bundle/components/AddComment/Popover.js.map +1 -1
  15. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  16. package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
  17. package/cjs-bundle/components/AssetEditor/AssetEditorAutocomplete.js +1 -1
  18. package/cjs-bundle/components/AssetEditor/AssetEditorAutocomplete.js.map +1 -1
  19. package/cjs-bundle/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
  20. package/cjs-bundle/components/AssetEditorV2/components/MultipleAssetsToggle.js.map +1 -1
  21. package/cjs-bundle/components/AssetEditorV2/components/SelectItem.js +1 -1
  22. package/cjs-bundle/components/AssetEditorV2/components/SelectItem.js.map +1 -1
  23. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js +1 -1
  24. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js.map +1 -1
  25. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +1 -1
  26. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js.map +1 -1
  27. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
  28. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/index.js.map +1 -1
  29. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  30. package/cjs-bundle/components/BICOffsetPickerDialog/index.js.map +1 -1
  31. package/cjs-bundle/components/Casing/CasingTable/CasingComponent.js +1 -1
  32. package/cjs-bundle/components/Casing/CasingTable/CasingComponent.js.map +1 -1
  33. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  34. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  35. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  36. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  37. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  38. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  39. package/cjs-bundle/components/Casing/CasingTableV2/components/EditComponentDialog.js +1 -1
  40. package/cjs-bundle/components/Casing/CasingTableV2/components/EditComponentDialog.js.map +1 -1
  41. package/cjs-bundle/components/CollapsableSidebar.js +1 -1
  42. package/cjs-bundle/components/CollapsableSidebar.js.map +1 -1
  43. package/cjs-bundle/components/CommentComposer/CommentReplyInput.js +1 -1
  44. package/cjs-bundle/components/CommentComposer/CommentReplyInput.js.map +1 -1
  45. package/cjs-bundle/components/CommentComposer/replyDrafts.js +2 -0
  46. package/cjs-bundle/components/CommentComposer/replyDrafts.js.map +1 -0
  47. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  48. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  49. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js +1 -1
  50. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js.map +1 -1
  51. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js +1 -1
  52. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js.map +1 -1
  53. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js +1 -1
  54. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js.map +1 -1
  55. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  56. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
  57. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  58. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  59. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  60. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  61. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  62. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  63. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  64. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  65. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  66. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  67. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js +1 -1
  68. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js.map +1 -1
  69. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  70. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  71. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  72. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  73. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  74. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  75. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  76. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  77. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  78. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  79. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  80. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  81. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  82. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  83. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  84. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  85. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.js +1 -1
  86. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.js.map +1 -1
  87. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  88. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  89. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js +1 -1
  90. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js.map +1 -1
  91. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js +1 -1
  92. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js.map +1 -1
  93. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js +1 -1
  94. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js.map +1 -1
  95. package/cjs-bundle/components/Drillstring/BHATable/BHAComponent.js +1 -1
  96. package/cjs-bundle/components/Drillstring/BHATable/BHAComponent.js.map +1 -1
  97. package/cjs-bundle/components/FeedCard/useActivityInteractions.js +1 -1
  98. package/cjs-bundle/components/FeedCard/useActivityInteractions.js.map +1 -1
  99. package/cjs-bundle/components/FeedCard/useFeedActivity.js +1 -1
  100. package/cjs-bundle/components/FeedCard/useFeedActivity.js.map +1 -1
  101. package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
  102. package/cjs-bundle/components/FeedItem/FeedItem.js.map +1 -1
  103. package/cjs-bundle/components/IconMenu/index.js +1 -1
  104. package/cjs-bundle/components/IconMenu/index.js.map +1 -1
  105. package/cjs-bundle/components/OffsetWellChips/Chip.js +1 -1
  106. package/cjs-bundle/components/OffsetWellChips/Chip.js.map +1 -1
  107. package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js +1 -1
  108. package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js.map +1 -1
  109. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
  110. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js.map +1 -1
  111. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.js +1 -1
  112. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.js.map +1 -1
  113. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  114. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  115. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  116. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  117. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -1
  118. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js.map +1 -1
  119. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.js +1 -1
  120. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.js.map +1 -1
  121. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  122. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  123. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  124. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  125. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  126. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  127. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  128. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  129. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  130. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  131. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  132. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  133. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  134. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  135. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.js +1 -1
  136. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.js.map +1 -1
  137. package/cjs-bundle/components/OffsetWellPickerV3/index.js +1 -1
  138. package/cjs-bundle/components/OffsetWellPickerV3/index.js.map +1 -1
  139. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  140. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  141. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  142. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  143. package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetChip.js +1 -1
  144. package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetChip.js.map +1 -1
  145. package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetsListExpander.js +1 -1
  146. package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetsListExpander.js.map +1 -1
  147. package/cjs-bundle/components/PadOffsetsPicker/PadOffsetsPicker.js +1 -1
  148. package/cjs-bundle/components/PadOffsetsPicker/PadOffsetsPicker.js.map +1 -1
  149. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  150. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  151. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  152. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  153. package/cjs-bundle/components/Search/Search.js +1 -1
  154. package/cjs-bundle/components/Search/Search.js.map +1 -1
  155. package/cjs-bundle/components/StatusBadge/components/DQAccordionDetailsContent.js +1 -1
  156. package/cjs-bundle/components/StatusBadge/components/DQAccordionDetailsContent.js.map +1 -1
  157. package/cjs-bundle/components/Template/TemplatePopover/index.js +1 -1
  158. package/cjs-bundle/components/Template/TemplatePopover/index.js.map +1 -1
  159. package/cjs-bundle/components/VirtualizedTable/VirtualizedTable.js +1 -1
  160. package/cjs-bundle/components/VirtualizedTable/VirtualizedTable.js.map +1 -1
  161. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.js +1 -1
  162. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.js.map +1 -1
  163. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
  164. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js.map +1 -1
  165. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
  166. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js.map +1 -1
  167. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  168. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
  169. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
  170. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js.map +1 -1
  171. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.js +1 -1
  172. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.js.map +1 -1
  173. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
  174. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js.map +1 -1
  175. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.js +1 -1
  176. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.js.map +1 -1
  177. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.js +1 -1
  178. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.js.map +1 -1
  179. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.js +1 -1
  180. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.js.map +1 -1
  181. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
  182. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js.map +1 -1
  183. package/cjs-bundle/hocs/withAssetEditorLockHOC.js +1 -1
  184. package/cjs-bundle/hocs/withAssetEditorLockHOC.js.map +1 -1
  185. package/cjs-bundle/permissions/withPermissionsHOC.js +1 -1
  186. package/cjs-bundle/permissions/withPermissionsHOC.js.map +1 -1
  187. package/clients/api/apiCore.d.ts +2 -0
  188. package/clients/api/apiCore.d.ts.map +1 -1
  189. package/clients/api/apiCore.js +1 -1
  190. package/clients/api/apiCore.js.map +1 -1
  191. package/clients/subscriptions/__tests__/subscriptions-auth-recovery.test.d.ts +2 -0
  192. package/clients/subscriptions/__tests__/subscriptions-auth-recovery.test.d.ts.map +1 -0
  193. package/clients/subscriptions/socket-client.v2.d.ts +8 -0
  194. package/clients/subscriptions/socket-client.v2.d.ts.map +1 -1
  195. package/clients/subscriptions/socket-client.v2.js +1 -1
  196. package/clients/subscriptions/socket-client.v2.js.map +1 -1
  197. package/clients/subscriptions/subscriptions-auth-recovery.d.ts +53 -0
  198. package/clients/subscriptions/subscriptions-auth-recovery.d.ts.map +1 -0
  199. package/clients/subscriptions/subscriptions-auth-recovery.js +2 -0
  200. package/clients/subscriptions/subscriptions-auth-recovery.js.map +1 -0
  201. package/clients/subscriptions/subscriptions-client.d.ts +6 -1
  202. package/clients/subscriptions/subscriptions-client.d.ts.map +1 -1
  203. package/clients/subscriptions/subscriptions-client.dummy.d.ts +2 -1
  204. package/clients/subscriptions/subscriptions-client.dummy.d.ts.map +1 -1
  205. package/clients/subscriptions/subscriptions-client.dummy.js +1 -1
  206. package/clients/subscriptions/subscriptions-client.dummy.js.map +1 -1
  207. package/clients/subscriptions/subscriptions-client.factory.d.ts +8 -0
  208. package/clients/subscriptions/subscriptions-client.factory.d.ts.map +1 -1
  209. package/clients/subscriptions/subscriptions-client.factory.js +1 -1
  210. package/clients/subscriptions/subscriptions-client.factory.js.map +1 -1
  211. package/clients/subscriptions/subscriptions-client.js +1 -1
  212. package/clients/subscriptions/subscriptions-client.js.map +1 -1
  213. package/clients/subscriptions/types.d.ts +5 -0
  214. package/clients/subscriptions/types.d.ts.map +1 -1
  215. package/components/AddComment/Popover.js +1 -1
  216. package/components/AddComment/Popover.js.map +1 -1
  217. package/components/AddComment/components/Content.js +1 -1
  218. package/components/AddComment/components/Content.js.map +1 -1
  219. package/components/AssetEditor/AssetEditorAutocomplete.js +1 -1
  220. package/components/AssetEditor/AssetEditorAutocomplete.js.map +1 -1
  221. package/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
  222. package/components/AssetEditorV2/components/MultipleAssetsToggle.js.map +1 -1
  223. package/components/AssetEditorV2/components/SelectItem.d.ts.map +1 -1
  224. package/components/AssetEditorV2/components/SelectItem.js +1 -1
  225. package/components/AssetEditorV2/components/SelectItem.js.map +1 -1
  226. package/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js +1 -1
  227. package/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js.map +1 -1
  228. package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +1 -1
  229. package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js.map +1 -1
  230. package/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
  231. package/components/BICOffsetPickerDialog/components/WellSection/index.js.map +1 -1
  232. package/components/BICOffsetPickerDialog/index.js +1 -1
  233. package/components/BICOffsetPickerDialog/index.js.map +1 -1
  234. package/components/Casing/CasingTable/CasingComponent.js +1 -1
  235. package/components/Casing/CasingTable/CasingComponent.js.map +1 -1
  236. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  237. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  238. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  239. package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  240. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  241. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  242. package/components/Casing/CasingTableV2/components/EditComponentDialog.d.ts.map +1 -1
  243. package/components/Casing/CasingTableV2/components/EditComponentDialog.js +1 -1
  244. package/components/Casing/CasingTableV2/components/EditComponentDialog.js.map +1 -1
  245. package/components/CollapsableSidebar.js +1 -1
  246. package/components/CollapsableSidebar.js.map +1 -1
  247. package/components/CommentComposer/CommentReplyInput.d.ts +3 -1
  248. package/components/CommentComposer/CommentReplyInput.d.ts.map +1 -1
  249. package/components/CommentComposer/CommentReplyInput.js +1 -1
  250. package/components/CommentComposer/CommentReplyInput.js.map +1 -1
  251. package/components/CommentComposer/__tests__/CommentReplyInput.draft.test.d.ts +2 -0
  252. package/components/CommentComposer/__tests__/CommentReplyInput.draft.test.d.ts.map +1 -0
  253. package/components/CommentComposer/replyDrafts.d.ts +12 -0
  254. package/components/CommentComposer/replyDrafts.d.ts.map +1 -0
  255. package/components/CommentComposer/replyDrafts.js +2 -0
  256. package/components/CommentComposer/replyDrafts.js.map +1 -0
  257. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  258. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  259. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js +1 -1
  260. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js.map +1 -1
  261. package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js +1 -1
  262. package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js.map +1 -1
  263. package/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js +1 -1
  264. package/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js.map +1 -1
  265. package/components/DocumentViewer/DocumentViewer.js +1 -1
  266. package/components/DocumentViewer/DocumentViewer.js.map +1 -1
  267. package/components/Drillstring/BHAComponentDetail/constants.d.ts +2 -2
  268. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  269. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  270. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  271. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  272. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  273. package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  274. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  275. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  276. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  277. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  278. package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.d.ts.map +1 -1
  279. package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js +1 -1
  280. package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js.map +1 -1
  281. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  282. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  283. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  284. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  285. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  286. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  287. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  288. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  289. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  290. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  291. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  292. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  293. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  294. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  295. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  296. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  297. package/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.js +1 -1
  298. package/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.js.map +1 -1
  299. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  300. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  301. package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.d.ts.map +1 -1
  302. package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js +1 -1
  303. package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js.map +1 -1
  304. package/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js +1 -1
  305. package/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js.map +1 -1
  306. package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js +1 -1
  307. package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js.map +1 -1
  308. package/components/Drillstring/BHATable/BHAComponent.js +1 -1
  309. package/components/Drillstring/BHATable/BHAComponent.js.map +1 -1
  310. package/components/FeedCard/useActivityInteractions.d.ts.map +1 -1
  311. package/components/FeedCard/useActivityInteractions.js +1 -1
  312. package/components/FeedCard/useActivityInteractions.js.map +1 -1
  313. package/components/FeedCard/useFeedActivity.d.ts.map +1 -1
  314. package/components/FeedCard/useFeedActivity.js +1 -1
  315. package/components/FeedCard/useFeedActivity.js.map +1 -1
  316. package/components/FeedItem/FeedItem.js +1 -1
  317. package/components/FeedItem/FeedItem.js.map +1 -1
  318. package/components/IconMenu/index.js +1 -1
  319. package/components/IconMenu/index.js.map +1 -1
  320. package/components/OffsetWellChips/Chip.js +1 -1
  321. package/components/OffsetWellChips/Chip.js.map +1 -1
  322. package/components/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
  323. package/components/OffsetWellMap/OffsetWellMap.js +1 -1
  324. package/components/OffsetWellMap/OffsetWellMap.js.map +1 -1
  325. package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
  326. package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js.map +1 -1
  327. package/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.d.ts.map +1 -1
  328. package/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.js +1 -1
  329. package/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.js.map +1 -1
  330. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.d.ts.map +1 -1
  331. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  332. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  333. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  334. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  335. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -1
  336. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js.map +1 -1
  337. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.d.ts.map +1 -1
  338. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.js +1 -1
  339. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.js.map +1 -1
  340. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  341. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  342. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  343. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  344. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  345. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  346. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.d.ts.map +1 -1
  347. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  348. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  349. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  350. package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  351. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  352. package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  353. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  354. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  355. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.js +1 -1
  356. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.js.map +1 -1
  357. package/components/OffsetWellPickerV3/index.js +1 -1
  358. package/components/OffsetWellPickerV3/index.js.map +1 -1
  359. package/components/OffsetWellPickerV4/OffsetWellPickerV4.d.ts.map +1 -1
  360. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  361. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  362. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  363. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  364. package/components/PadOffsetsPicker/OffsetAssetChip.js +1 -1
  365. package/components/PadOffsetsPicker/OffsetAssetChip.js.map +1 -1
  366. package/components/PadOffsetsPicker/OffsetAssetsListExpander.d.ts.map +1 -1
  367. package/components/PadOffsetsPicker/OffsetAssetsListExpander.js +1 -1
  368. package/components/PadOffsetsPicker/OffsetAssetsListExpander.js.map +1 -1
  369. package/components/PadOffsetsPicker/PadOffsetsPicker.js +1 -1
  370. package/components/PadOffsetsPicker/PadOffsetsPicker.js.map +1 -1
  371. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  372. package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  373. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  374. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  375. package/components/Search/Search.js +1 -1
  376. package/components/Search/Search.js.map +1 -1
  377. package/components/StatusBadge/components/DQAccordionDetailsContent.d.ts.map +1 -1
  378. package/components/StatusBadge/components/DQAccordionDetailsContent.js +1 -1
  379. package/components/StatusBadge/components/DQAccordionDetailsContent.js.map +1 -1
  380. package/components/Template/TemplatePopover/index.d.ts.map +1 -1
  381. package/components/Template/TemplatePopover/index.js +1 -1
  382. package/components/Template/TemplatePopover/index.js.map +1 -1
  383. package/components/VirtualizedTable/VirtualizedTable.d.ts.map +1 -1
  384. package/components/VirtualizedTable/VirtualizedTable.js +1 -1
  385. package/components/VirtualizedTable/VirtualizedTable.js.map +1 -1
  386. package/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.d.ts.map +1 -1
  387. package/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.js +1 -1
  388. package/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.js.map +1 -1
  389. package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.d.ts.map +1 -1
  390. package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
  391. package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js.map +1 -1
  392. package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.d.ts.map +1 -1
  393. package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
  394. package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js.map +1 -1
  395. package/componentsV2/CompletionsOffsetWellPicker/Map/Map.d.ts.map +1 -1
  396. package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  397. package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
  398. package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.d.ts.map +1 -1
  399. package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
  400. package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js.map +1 -1
  401. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.d.ts.map +1 -1
  402. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.js +1 -1
  403. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.js.map +1 -1
  404. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
  405. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js.map +1 -1
  406. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.d.ts.map +1 -1
  407. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.js +1 -1
  408. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.js.map +1 -1
  409. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.d.ts.map +1 -1
  410. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.js +1 -1
  411. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.js.map +1 -1
  412. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.d.ts.map +1 -1
  413. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.js +1 -1
  414. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.js.map +1 -1
  415. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.d.ts +1 -0
  416. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.d.ts.map +1 -1
  417. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
  418. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js.map +1 -1
  419. package/hocs/withAssetEditorLockHOC.d.ts.map +1 -1
  420. package/hocs/withAssetEditorLockHOC.js +1 -1
  421. package/hocs/withAssetEditorLockHOC.js.map +1 -1
  422. package/mcp-server/server.mjs +34 -15
  423. package/package.json +1 -2
  424. package/permissions/__tests__/withPermissionsHOC.test.d.ts.map +1 -1
  425. package/permissions/withPermissionsHOC.d.ts.map +1 -1
  426. package/permissions/withPermissionsHOC.js +1 -1
  427. package/permissions/withPermissionsHOC.js.map +1 -1
  428. package/tsconfig.tsbuildinfo +1 -1
  429. package/cjs-bundle/ext-esm/@material-ui/icons/esm/ExpandLess.js +0 -2
  430. package/cjs-bundle/ext-esm/@material-ui/icons/esm/ExpandLess.js.map +0 -1
  431. package/cjs-bundle/ext-esm/@material-ui/icons/esm/ExpandMore.js +0 -2
  432. package/cjs-bundle/ext-esm/@material-ui/icons/esm/ExpandMore.js.map +0 -1
  433. package/cjs-bundle/ext-esm/@material-ui/icons/esm/Map.js +0 -2
  434. package/cjs-bundle/ext-esm/@material-ui/icons/esm/Map.js.map +0 -1
  435. package/cjs-bundle/ext-esm/@material-ui/icons/esm/UnfoldLess.js +0 -2
  436. package/cjs-bundle/ext-esm/@material-ui/icons/esm/UnfoldLess.js.map +0 -1
  437. package/cjs-bundle/ext-esm/@material-ui/icons/esm/UnfoldMore.js +0 -2
  438. package/cjs-bundle/ext-esm/@material-ui/icons/esm/UnfoldMore.js.map +0 -1
  439. package/cjs-bundle/ext-esm/@material-ui/icons/esm/utils/createSvgIcon.js +0 -2
  440. package/cjs-bundle/ext-esm/@material-ui/icons/esm/utils/createSvgIcon.js.map +0 -1
  441. package/ext-esm/@material-ui/icons/esm/ExpandLess.js +0 -2
  442. package/ext-esm/@material-ui/icons/esm/ExpandLess.js.map +0 -1
  443. package/ext-esm/@material-ui/icons/esm/ExpandMore.js +0 -2
  444. package/ext-esm/@material-ui/icons/esm/ExpandMore.js.map +0 -1
  445. package/ext-esm/@material-ui/icons/esm/Map.js +0 -2
  446. package/ext-esm/@material-ui/icons/esm/Map.js.map +0 -1
  447. package/ext-esm/@material-ui/icons/esm/UnfoldLess.js +0 -2
  448. package/ext-esm/@material-ui/icons/esm/UnfoldLess.js.map +0 -1
  449. package/ext-esm/@material-ui/icons/esm/UnfoldMore.js +0 -2
  450. package/ext-esm/@material-ui/icons/esm/UnfoldMore.js.map +0 -1
  451. package/ext-esm/@material-ui/icons/esm/utils/createSvgIcon.js +0 -2
  452. package/ext-esm/@material-ui/icons/esm/utils/createSvgIcon.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions-client.dummy.js","sources":["../../../src/clients/subscriptions/subscriptions-client.dummy.ts"],"sourcesContent":["import { AcknowledgeCb, OnConnectionChange, OnDataReceive, SubcriptionsClient } from \"./types\";\n\nexport class DummySubscriptionsClient implements SubcriptionsClient {\n subscribe<T>(_channel: string, _onData: OnDataReceive<T>, _ack?: AcknowledgeCb): () => void {\n return () => {};\n }\n\n unsubscribe<T>(_channel: string, _onData: OnDataReceive<T>, _ack?: AcknowledgeCb): void {\n return;\n }\n\n disconnect(): void {\n return;\n }\n\n onConnectionChange(_handler: OnConnectionChange): () => void {\n // no socket on reports routes; return noop unsubscriber\n return () => {};\n }\n}\n"],"names":["DummySubscriptionsClient","_classCallCheck","this","_createClass","key","value","_channel","_onData","_ack","_handler"],"mappings":"uGAEA,IAAaA,EAAwB,WAAA,SAAAA,IAAAC,EAAAC,KAAAF,EAAA,CAgBlC,OAhBkCG,EAAAH,EAAA,CAAA,CAAAI,IAAA,YAAAC,MACnC,SAAaC,EAAkBC,EAA2BC,GACxD,OAAO,WAAM,CACf,GAAC,CAAAJ,IAAA,cAAAC,MAED,SAAeC,EAAkBC,EAA2BC,GAE5D,GAAC,CAAAJ,IAAA,aAAAC,MAED,WAEA,GAAC,CAAAD,IAAA,qBAAAC,MAED,SAAmBI,GAEjB,OAAO,WAAM,CACf,KAACT,CAAA,CAhBkC"}
1
+ {"version":3,"file":"subscriptions-client.dummy.js","sources":["../../../src/clients/subscriptions/subscriptions-client.dummy.ts"],"sourcesContent":["import { AcknowledgeCb, OnConnectionChange, OnDataReceive, SubcriptionsClient } from './types';\n\nexport class DummySubscriptionsClient implements SubcriptionsClient {\n subscribe<T>(_channel: string, _onData: OnDataReceive<T>, _ack?: AcknowledgeCb): () => void {\n return () => {};\n }\n\n unsubscribe<T>(_channel: string, _onData: OnDataReceive<T>, _ack?: AcknowledgeCb): void {\n return;\n }\n\n disconnect(): void {\n return;\n }\n\n ensureConnected(): void {\n return;\n }\n\n onConnectionChange(_handler: OnConnectionChange): () => void {\n // no socket on reports routes; return noop unsubscriber\n return () => {};\n }\n}\n"],"names":["DummySubscriptionsClient","_classCallCheck","this","_createClass","key","value","_channel","_onData","_ack","_handler"],"mappings":"uGAEA,IAAaA,EAAwB,WAAA,SAAAA,IAAAC,EAAAC,KAAAF,EAAA,CAoBlC,OApBkCG,EAAAH,EAAA,CAAA,CAAAI,IAAA,YAAAC,MACnC,SAAaC,EAAkBC,EAA2BC,GACxD,OAAO,WAAM,CACf,GAAC,CAAAJ,IAAA,cAAAC,MAED,SAAeC,EAAkBC,EAA2BC,GAE5D,GAAC,CAAAJ,IAAA,aAAAC,MAED,WAEA,GAAC,CAAAD,IAAA,kBAAAC,MAED,WAEA,GAAC,CAAAD,IAAA,qBAAAC,MAED,SAAmBI,GAEjB,OAAO,WAAM,CACf,KAACT,CAAA,CApBkC"}
@@ -2,6 +2,14 @@ import { SubcriptionsClient } from './types';
2
2
  export declare class SubscriptionsClientFactory {
3
3
  private static readonly instances;
4
4
  static init(url?: string): SubcriptionsClient;
5
+ /** The client for `url` if one exists; unlike `init()` this never creates a socket. */
6
+ static get(url?: string): SubcriptionsClient | undefined;
7
+ /**
8
+ * Disconnect and forget the client for `url`, so the next `init()` builds a fresh socket.
9
+ * A manually disconnected socket.io client never reconnects on its own, so keeping it cached
10
+ * (as logout used to) handed a later login in the same tab a permanently dead client.
11
+ */
12
+ static dispose(url?: string): void;
5
13
  private static create;
6
14
  }
7
15
  //# sourceMappingURL=subscriptions-client.factory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions-client.factory.d.ts","sourceRoot":"","sources":["../../../src/clients/subscriptions/subscriptions-client.factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,qBAAa,0BAA0B;IACrC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAyC;IAE1E,OAAc,IAAI,CAAC,GAAG,SAAoB,sBAQzC;IACD,OAAO,CAAC,MAAM,CAAC,MAAM;CAqDtB"}
1
+ {"version":3,"file":"subscriptions-client.factory.d.ts","sourceRoot":"","sources":["../../../src/clients/subscriptions/subscriptions-client.factory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,qBAAa,0BAA0B;IACrC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAyC;IAE1E,OAAc,IAAI,CAAC,GAAG,SAAoB,sBAQzC;IAED,uFAAuF;IACvF,OAAc,GAAG,CAAC,GAAG,SAAoB,kCAExC;IAED;;;;OAIG;IACH,OAAc,OAAO,CAAC,GAAG,SAAoB,QAK5C;IAED,OAAO,CAAC,MAAM,CAAC,MAAM;CAmEtB"}
@@ -1,2 +1,2 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/defineProperty";import{io as n}from"socket.io-client";import{IGNORED_ROUTES_REGEXP as o,getHrefDebugField as i,SUBSCRIPTIONS_URL as c}from"./constants.js";import{SubscriptionsClientV2 as s}from"./subscriptions-client.js";import{DummySubscriptionsClient as a}from"./subscriptions-client.dummy.js";function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var u=function(){function u(){e(this,u)}return t(u,null,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=new URL(e).origin;return this.instances.has(t)||this.instances.set(t,this.create(e)),this.instances.get(t)}},{key:"create",value:function(e){if(o.test(window.location.pathname))return new a;var t=n(e,{transports:["websocket"],autoConnect:!0,path:process.env.REACT_APP_SUBSCRIPTIONS_PATH||"/socket.io"}),c=0;return t.on("connect",(function(){(c+=1,t.recovered)||1!==c&&Object.keys(t._callbacks).filter((function(e){return e.startsWith("$data#")})).map((function(e){return e.replace("$data#","")})).forEach((function(e){t.emit("subscribe",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({channel:e},i()))}))})),new s(t)}}]),u}();r(u,"instances",new Map);export{u as SubscriptionsClientFactory};
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/defineProperty";import{io as r}from"socket.io-client";import{IGNORED_ROUTES_REGEXP as i,getHrefDebugField as o,SUBSCRIPTIONS_URL as s}from"./constants.js";import{isUnauthorizedConnectError as c,attachAuthRecovery as a}from"./subscriptions-auth-recovery.js";import{SubscriptionsClientV2 as u}from"./subscriptions-client.js";import{DummySubscriptionsClient as l}from"./subscriptions-client.dummy.js";function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var f=function(){function f(){e(this,f)}return t(f,null,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=new URL(e).origin;return this.instances.has(t)||this.instances.set(t,this.create(e)),this.instances.get(t)}},{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return this.instances.get(new URL(e).origin)}},{key:"dispose",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,n=new URL(t).origin;null===(e=this.instances.get(n))||void 0===e||e.disconnect(),this.instances.delete(n)}},{key:"create",value:function(e){if(i.test(window.location.pathname))return new l;var t=r(e,{transports:["websocket"],autoConnect:!0,path:process.env.REACT_APP_SUBSCRIPTIONS_PATH||"/socket.io"}),s=0,f=!1;return t.on("connect_error",(function(e){c(e)&&(f=!0)})),t.on("connect",(function(){var e=1===(s+=1)&&!f;(f=!1,t.recovered)||(e||Object.keys(t._callbacks).filter((function(e){return e.startsWith("$data#")})).map((function(e){return e.replace("$data#","")})).forEach((function(e){t.emit("subscribe",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({channel:e},o()))})))})),new u(t,a(t))}}]),f}();n(f,"instances",new Map);export{f as SubscriptionsClientFactory};
2
2
  //# sourceMappingURL=subscriptions-client.factory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions-client.factory.js","sources":["../../../src/clients/subscriptions/subscriptions-client.factory.ts"],"sourcesContent":["import { io } from 'socket.io-client';\nimport { IGNORED_ROUTES_REGEXP, SUBSCRIPTIONS_URL, getHrefDebugField } from './constants';\nimport { SubscriptionsClientV2 } from './subscriptions-client';\nimport { DummySubscriptionsClient } from './subscriptions-client.dummy';\nimport { SubcriptionsClient } from './types';\n\nexport class SubscriptionsClientFactory {\n private static readonly instances = new Map<string, SubcriptionsClient>();\n\n public static init(url = SUBSCRIPTIONS_URL) {\n const key = new URL(url).origin;\n\n if (!this.instances.has(key)) {\n this.instances.set(key, this.create(url));\n }\n\n return this.instances.get(key)!;\n }\n private static create(url: string): SubcriptionsClient {\n if (IGNORED_ROUTES_REGEXP.test(window.location.pathname)) {\n return new DummySubscriptionsClient();\n }\n\n const socket = io(url, {\n transports: ['websocket'],\n // NOTE: no need to connect manually, it will be done automatically\n autoConnect: true,\n path: process.env.REACT_APP_SUBSCRIPTIONS_PATH || '/socket.io',\n });\n\n let connectAttempts = 0;\n\n /**\n * We need to resend \"subscribe\" events on 2+ \"connect\" events:\n * 1. initial connection, subscribes will be handled by io queue\n * 2. reconnection, need to resend existing subscriptions\n * 3. ...\n */\n socket.on('connect', () => {\n connectAttempts += 1;\n\n if (socket.recovered) {\n /**\n * initial connection, subscribes will be handled by socket.io server\n * @see https://socket.io/docs/v4/server-initialization/#server-events\n */\n return;\n }\n\n if (connectAttempts === 1) {\n // initial connection, subscribes will be handled by io queue\n return;\n }\n\n /**\n * @description\n * channel names resolved from private property of socket.io lib\n * @see https://github.com/socketio/emitter/blob/8a2ece1f367dd9898791ee663940386147d2d688/lib/cjs/index.js#L161\n */\n // @ts-ignore\n const channels = Object.keys(socket._callbacks)\n .filter(key => key.startsWith('$data#'))\n .map(key => key.replace('$data#', ''));\n\n channels.forEach(channel => {\n socket.emit('subscribe', { channel, ...getHrefDebugField() });\n });\n });\n\n return new SubscriptionsClientV2(socket);\n }\n}\n"],"names":["SubscriptionsClientFactory","_classCallCheck","this","_createClass","key","value","url","SUBSCRIPTIONS_URL","URL","origin","instances","has","set","create","get","IGNORED_ROUTES_REGEXP","test","window","location","pathname","DummySubscriptionsClient","socket","io","transports","autoConnect","path","process","env","REACT_APP_SUBSCRIPTIONS_PATH","connectAttempts","on","recovered","Object","keys","_callbacks","filter","startsWith","map","replace","forEach","channel","emit","_objectSpread","getHrefDebugField","SubscriptionsClientV2","_defineProperty","Map"],"mappings":"kpBAMA,IAAaA,EAA0B,WAAA,SAAAA,IAAAC,EAAAC,KAAAF,EAAA,CAgEpC,OAhEoCG,EAAAH,EAAA,KAAA,CAAA,CAAAI,IAAA,OAAAC,MAGrC,WAA4C,IAAzBC,yDAAMC,EACjBH,EAAM,IAAII,IAAIF,GAAKG,OAMzB,OAJKP,KAAKQ,UAAUC,IAAIP,IACtBF,KAAKQ,UAAUE,IAAIR,EAAKF,KAAKW,OAAOP,IAG/BJ,KAAKQ,UAAUI,IAAIV,EAC5B,GAAC,CAAAA,IAAA,SAAAC,MACD,SAAsBC,GACpB,GAAIS,EAAsBC,KAAKC,OAAOC,SAASC,UAC7C,OAAO,IAAIC,EAGb,IAAMC,EAASC,EAAGhB,EAAK,CACrBiB,WAAY,CAAC,aAEbC,aAAa,EACbC,KAAMC,QAAQC,IAAIC,8BAAgC,eAGhDC,EAAkB,EAuCtB,OA/BAR,EAAOS,GAAG,WAAW,YACnBD,GAAmB,EAEfR,EAAOU,YAQa,IAApBF,GAWaG,OAAOC,KAAKZ,EAAOa,YACjCC,QAAO,SAAA/B,GAAG,OAAIA,EAAIgC,WAAW,SAAS,IACtCC,KAAI,SAAAjC,GAAG,OAAIA,EAAIkC,QAAQ,SAAU,OAE3BC,SAAQ,SAAAC,GACfnB,EAAOoB,KAAK,2WAAWC,CAAA,CAAIF,QAAAA,GAAYG,KACzC,GACF,IAEO,IAAIC,EAAsBvB,EACnC,KAACrB,CAAA,CAhEoC,GAiEtC6C,EAjEY7C,EAA0B,YACD,IAAI8C"}
1
+ {"version":3,"file":"subscriptions-client.factory.js","sources":["../../../src/clients/subscriptions/subscriptions-client.factory.ts"],"sourcesContent":["import { io } from 'socket.io-client';\nimport { IGNORED_ROUTES_REGEXP, SUBSCRIPTIONS_URL, getHrefDebugField } from './constants';\nimport { attachAuthRecovery, isUnauthorizedConnectError } from './subscriptions-auth-recovery';\nimport { SubscriptionsClientV2 } from './subscriptions-client';\nimport { DummySubscriptionsClient } from './subscriptions-client.dummy';\nimport { SubcriptionsClient } from './types';\n\nexport class SubscriptionsClientFactory {\n private static readonly instances = new Map<string, SubcriptionsClient>();\n\n public static init(url = SUBSCRIPTIONS_URL) {\n const key = new URL(url).origin;\n\n if (!this.instances.has(key)) {\n this.instances.set(key, this.create(url));\n }\n\n return this.instances.get(key)!;\n }\n\n /** The client for `url` if one exists; unlike `init()` this never creates a socket. */\n public static get(url = SUBSCRIPTIONS_URL) {\n return this.instances.get(new URL(url).origin);\n }\n\n /**\n * Disconnect and forget the client for `url`, so the next `init()` builds a fresh socket.\n * A manually disconnected socket.io client never reconnects on its own, so keeping it cached\n * (as logout used to) handed a later login in the same tab a permanently dead client.\n */\n public static dispose(url = SUBSCRIPTIONS_URL) {\n const key = new URL(url).origin;\n\n this.instances.get(key)?.disconnect();\n this.instances.delete(key);\n }\n\n private static create(url: string): SubcriptionsClient {\n if (IGNORED_ROUTES_REGEXP.test(window.location.pathname)) {\n return new DummySubscriptionsClient();\n }\n\n const socket = io(url, {\n transports: ['websocket'],\n // NOTE: no need to connect manually, it will be done automatically\n autoConnect: true,\n path: process.env.REACT_APP_SUBSCRIPTIONS_PATH || '/socket.io',\n });\n\n let connectAttempts = 0;\n let handshakeRejected = false;\n\n socket.on('connect_error', err => {\n if (isUnauthorizedConnectError(err)) handshakeRejected = true;\n });\n\n /**\n * We need to resend \"subscribe\" events on 2+ \"connect\" events:\n * 1. initial connection, subscribes will be handled by io queue\n * 2. reconnection, need to resend existing subscriptions\n * 3. ...\n *\n * A first connection that follows a rejected handshake counts as a reconnection too. The\n * subscribes emitted before it sat in socket.io's send buffer, but every emit carries an ack\n * timeout (see the frontend's Sentry integration) and a timed-out ack removes its packet from\n * that buffer. If refreshing the session took longer than the timeout, relying on the buffer\n * would leave a connected socket with no subscriptions.\n */\n socket.on('connect', () => {\n connectAttempts += 1;\n\n const isCleanFirstConnect = connectAttempts === 1 && !handshakeRejected;\n handshakeRejected = false;\n\n if (socket.recovered) {\n /**\n * subscriptions restored by the socket.io server\n * @see https://socket.io/docs/v4/server-initialization/#server-events\n */\n return;\n }\n\n if (isCleanFirstConnect) {\n // initial connection, subscribes will be handled by io queue\n return;\n }\n\n /**\n * @description\n * channel names resolved from private property of socket.io lib\n * @see https://github.com/socketio/emitter/blob/8a2ece1f367dd9898791ee663940386147d2d688/lib/cjs/index.js#L161\n */\n // @ts-expect-error\n const channels = Object.keys(socket._callbacks)\n .filter(key => key.startsWith('$data#'))\n .map(key => key.replace('$data#', ''));\n\n channels.forEach(channel => {\n socket.emit('subscribe', { channel, ...getHrefDebugField() });\n });\n });\n\n return new SubscriptionsClientV2(socket, attachAuthRecovery(socket));\n }\n}\n"],"names":["SubscriptionsClientFactory","_classCallCheck","this","_createClass","key","value","url","SUBSCRIPTIONS_URL","URL","origin","instances","has","set","create","get","_this$instances$get","disconnect","delete","IGNORED_ROUTES_REGEXP","test","window","location","pathname","DummySubscriptionsClient","socket","io","transports","autoConnect","path","process","env","REACT_APP_SUBSCRIPTIONS_PATH","connectAttempts","handshakeRejected","on","err","isUnauthorizedConnectError","isCleanFirstConnect","recovered","Object","keys","_callbacks","filter","startsWith","map","replace","forEach","channel","emit","_objectSpread","getHrefDebugField","SubscriptionsClientV2","attachAuthRecovery","_defineProperty","Map"],"mappings":"wvBAOA,IAAaA,EAA0B,WAAA,SAAAA,IAAAC,EAAAC,KAAAF,EAAA,CAgGpC,OAhGoCG,EAAAH,EAAA,KAAA,CAAA,CAAAI,IAAA,OAAAC,MAGrC,WAA4C,IAAzBC,yDAAMC,EACjBH,EAAM,IAAII,IAAIF,GAAKG,OAMzB,OAJKP,KAAKQ,UAAUC,IAAIP,IACtBF,KAAKQ,UAAUE,IAAIR,EAAKF,KAAKW,OAAOP,IAG/BJ,KAAKQ,UAAUI,IAAIV,EAC5B,GAEA,CAAAA,IAAA,MAAAC,MACA,WAA2C,IAAzBC,yDAAMC,EACtB,OAAOL,KAAKQ,UAAUI,IAAI,IAAIN,IAAIF,GAAKG,OACzC,GAEA,CAAAL,IAAA,UAAAC,MAKA,WAA+C,IAAAU,EAAzBT,yDAAMC,EACpBH,EAAM,IAAII,IAAIF,GAAKG,OAEF,QAAnBM,EAAAb,KAACQ,UAAUI,IAAIV,UAAI,IAAAW,GAAvBA,EAAyBC,aACzBd,KAAKQ,UAAUO,OAAOb,EACxB,GAAC,CAAAA,IAAA,SAAAC,MAED,SAAsBC,GACpB,GAAIY,EAAsBC,KAAKC,OAAOC,SAASC,UAC7C,OAAO,IAAIC,EAGb,IAAMC,EAASC,EAAGnB,EAAK,CACrBoB,WAAY,CAAC,aAEbC,aAAa,EACbC,KAAMC,QAAQC,IAAIC,8BAAgC,eAGhDC,EAAkB,EAClBC,GAAoB,EAoDxB,OAlDAT,EAAOU,GAAG,iBAAiB,SAAAC,GACrBC,EAA2BD,KAAMF,GAAoB,EAC3D,IAcAT,EAAOU,GAAG,WAAW,WAGnB,IAAMG,EAA0C,KAFhDL,GAAmB,KAEmCC,GACtDA,GAAoB,EAEhBT,EAAOc,aAQPD,GAWaE,OAAOC,KAAKhB,EAAOiB,YACjCC,QAAO,SAAAtC,GAAG,OAAIA,EAAIuC,WAAW,SAAS,IACtCC,KAAI,SAAAxC,GAAG,OAAIA,EAAIyC,QAAQ,SAAU,OAE3BC,SAAQ,SAAAC,GACfvB,EAAOwB,KAAK,2WAAWC,CAAA,CAAIF,QAAAA,GAAYG,KACzC,IACF,IAEO,IAAIC,EAAsB3B,EAAQ4B,EAAmB5B,GAC9D,KAACxB,CAAA,CAhGoC,GAiGtCqD,EAjGYrD,EAA0B,YACD,IAAIsD"}
@@ -1,2 +1,2 @@
1
- import t from"@babel/runtime/helpers/classCallCheck";import e from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/defineProperty";import{getHrefDebugField as r}from"./constants.js";function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var i=function(){function o(e){var r=this;t(this,o),this._socket=e,n(this,"onConnectionChange",(function(t){var e=function(){return t({status:"connected"})},n=function(e){return t({status:"disconnected",reason:e})},o=function(){return t({status:"reconnecting"})},c=function(e){return t({status:"error",reason:(null==e?void 0:e.message)||String(e)})};return r._socket.on("connect",e),r._socket.on("disconnect",n),r._socket.on("reconnect",o),r._socket.on("connect_error",c),function(){r._socket.off("connect",e),r._socket.off("disconnect",n),r._socket.off("reconnect",o),r._socket.off("connect_error",c)}}))}return e(o,[{key:"subscribe",value:function(t,e,n){var r=this;this._validateArgs(t,e,n),this._socket.on("data#".concat(t),e),this._emit("subscribe",t,n);var o=function(){return r.unsubscribe(t,e,n)};return Object.defineProperty(o,"name",{value:"unsubscribe_".concat(t.replace(/[^\w]/g,"_")),writable:!1}),o}},{key:"unsubscribe",value:function(t,e,n){this._validateArgs(t,e,n),this._emit("unsubscribe",t,n),this._socket.off("data#".concat(t),e)}},{key:"disconnect",value:function(){return this._socket.disconnect(),this._socket.removeAllListeners(),this}},{key:"_validateArgs",value:function(t,e,n){if("string"!=typeof t||!t)throw new Error("Channel must be a non-empty string");if("function"!=typeof e)throw new Error("onData handler must be a function");if(void 0!==n&&"function"!=typeof n)throw new Error("ack must be a function")}},{key:"_shouldEmitToServer",value:function(t){return 1===this._socket.listeners("data#".concat(t)).length}},{key:"_emit",value:function(t,e,n){if(!this._shouldEmitToServer(e))return null==n?void 0:n();n?this._socket.emitWithAck(t,c({channel:e},r()),(function(r){return r.ok?n():n(new Error("Failed to ".concat(t," to channel ").concat(e,": ").concat(r.error)))})):this._socket.emit(t,c({channel:e},r()))}}]),o}();export{i as SubscriptionsClientV2};
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/defineProperty";import{getHrefDebugField as r}from"./constants.js";function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s=function(){function o(t,r){var c=this;e(this,o),this._socket=t,this._recovery=r,n(this,"_managerListeners",new Set),n(this,"onConnectionChange",(function(e){var t=function(){return e({status:"connected"})},n=function(t){return e({status:"disconnected",reason:t})},r=function(){return e({status:"reconnecting"})},o=function(t){return e({status:"error",reason:(null==t?void 0:t.message)||String(t)})},s=c._socket.io;return c._socket.on("connect",t),c._socket.on("disconnect",n),null==s||s.on("reconnect_attempt",r),c._managerListeners.add(r),c._socket.on("connect_error",o),function(){c._socket.off("connect",t),c._socket.off("disconnect",n),null==s||s.off("reconnect_attempt",r),c._managerListeners.delete(r),c._socket.off("connect_error",o)}}))}return t(o,[{key:"subscribe",value:function(e,t,n){var r=this;this._validateArgs(e,t,n),this._socket.on("data#".concat(e),t),this._emit("subscribe",e,n);var o=function(){return r.unsubscribe(e,t,n)};return Object.defineProperty(o,"name",{value:"unsubscribe_".concat(e.replace(/[^\w]/g,"_")),writable:!1}),o}},{key:"unsubscribe",value:function(e,t,n){this._validateArgs(e,t,n),this._emit("unsubscribe",e,n),this._socket.off("data#".concat(e),t)}},{key:"disconnect",value:function(){var e,t=this;return null===(e=this._recovery)||void 0===e||e.dispose(),this._socket.disconnect(),this._socket.removeAllListeners(),this._managerListeners.forEach((function(e){var n;return null===(n=t._socket.io)||void 0===n?void 0:n.off("reconnect_attempt",e)})),this._managerListeners.clear(),this}},{key:"ensureConnected",value:function(){this._recovery?this._recovery.ensureConnected():this._socket.connected||this._socket.active||this._socket.connect()}},{key:"_validateArgs",value:function(e,t,n){if("string"!=typeof e||!e)throw new Error("Channel must be a non-empty string");if("function"!=typeof t)throw new Error("onData handler must be a function");if(void 0!==n&&"function"!=typeof n)throw new Error("ack must be a function")}},{key:"_shouldEmitToServer",value:function(e){return 1===this._socket.listeners("data#".concat(e)).length}},{key:"_emit",value:function(e,t,n){if(!this._shouldEmitToServer(t))return null==n?void 0:n();n?this._socket.emitWithAck(e,c({channel:t},r()),(function(r){return r.ok?n():n(new Error("Failed to ".concat(e," to channel ").concat(t,": ").concat(r.error)))})):this._socket.emit(e,c({channel:t},r()))}}]),o}();export{s as SubscriptionsClientV2};
2
2
  //# sourceMappingURL=subscriptions-client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions-client.js","sources":["../../../src/clients/subscriptions/subscriptions-client.ts"],"sourcesContent":["import { Socket } from 'socket.io-client';\nimport { getHrefDebugField } from './constants';\nimport {\n SubcriptionsClient,\n SubscriptionsClientV2Events,\n SubscriptionsClientV2ServerEvents,\n AcknowledgeCb,\n OnDataReceive,\n OnConnectionChange,\n} from './types';\n\nexport class SubscriptionsClientV2 implements SubcriptionsClient {\n constructor(\n private readonly _socket: Socket<SubscriptionsClientV2Events, SubscriptionsClientV2ServerEvents>\n ) {}\n\n subscribe<T>(channel: string, onData: OnDataReceive<T>, ack?: AcknowledgeCb) {\n this._validateArgs(channel, onData, ack);\n\n this._socket.on(`data#${channel}`, onData);\n\n this._emit('subscribe', channel, ack);\n\n const unsubscribe = () => this.unsubscribe(channel, onData, ack);\n\n Object.defineProperty(unsubscribe, 'name', {\n value: `unsubscribe_${channel.replace(/[^\\w]/g, '_')}`,\n writable: false,\n });\n\n return unsubscribe;\n }\n\n unsubscribe<T>(channel: string, onData: OnDataReceive<T>, ack?: AcknowledgeCb) {\n this._validateArgs(channel, onData, ack);\n\n this._emit('unsubscribe', channel, ack);\n\n this._socket.off(`data#${channel}`, onData);\n }\n\n disconnect() {\n this._socket.disconnect();\n this._socket.removeAllListeners();\n\n return this;\n }\n\n onConnectionChange: (handler: OnConnectionChange) => () => void = handler => {\n const onConnect = () => handler({ status: 'connected' });\n const onDisconnect = (reason?: string) => handler({ status: 'disconnected', reason });\n const onReconnect = () => handler({ status: 'reconnecting' });\n const onConnectError = (err?: any) =>\n handler({ status: 'error', reason: err?.message || String(err) });\n\n this._socket.on('connect', onConnect as any);\n this._socket.on('disconnect', onDisconnect as any);\n // @ts-ignore socket.io types may vary\n this._socket.on('reconnect', onReconnect as any);\n this._socket.on('connect_error', onConnectError as any);\n\n return () => {\n this._socket.off('connect', onConnect as any);\n this._socket.off('disconnect', onDisconnect as any);\n // @ts-ignore\n this._socket.off('reconnect', onReconnect as any);\n this._socket.off('connect_error', onConnectError as any);\n };\n };\n\n private _validateArgs(channel: unknown, onData: unknown, ack?: unknown) {\n if (typeof channel !== 'string' || !channel) {\n throw new Error('Channel must be a non-empty string');\n }\n if (typeof onData !== 'function') {\n throw new Error('onData handler must be a function');\n }\n\n if (ack !== undefined && typeof ack !== 'function') {\n throw new Error('ack must be a function');\n }\n }\n\n private _shouldEmitToServer(channel: string) {\n // emit when the only present listener is a current one\n return this._socket.listeners(`data#${channel}`).length === 1;\n }\n\n private _emit(event: 'subscribe' | 'unsubscribe', channel: string, ack?: AcknowledgeCb) {\n if (!this._shouldEmitToServer(channel)) {\n return ack?.();\n }\n\n if (!ack) {\n this._socket.emit(event, { channel, ...getHrefDebugField() });\n\n return;\n }\n\n void this._socket.emitWithAck(\n event,\n { channel, ...getHrefDebugField() },\n (res: { ok: boolean; error?: string }) => {\n if (res.ok) {\n return ack();\n }\n\n return ack(new Error(`Failed to ${event} to channel ${channel}: ${res.error}`));\n }\n );\n }\n}\n"],"names":["SubscriptionsClientV2","_socket","_this","this","_classCallCheck","_defineProperty","handler","onConnect","status","onDisconnect","reason","onReconnect","onConnectError","err","message","String","on","off","_createClass","key","value","channel","onData","ack","_this2","_validateArgs","_emit","unsubscribe","Object","defineProperty","concat","replace","writable","disconnect","removeAllListeners","Error","undefined","listeners","length","event","_shouldEmitToServer","emitWithAck","_objectSpread","getHrefDebugField","res","ok","error","emit"],"mappings":"8wBAWA,IAAaA,EAAqB,WAChC,SAAAA,EACmBC,GACjB,IAAAC,EAAAC,KAAAC,EAAAD,KAAAH,GAAAG,KADiBF,QAAAA,EAA+EI,EAmChCF,KAAA,sBAAA,SAAAG,GAChE,IAAMC,EAAY,WAAH,OAASD,EAAQ,CAAEE,OAAQ,aAAc,EAClDC,EAAe,SAACC,GAAe,OAAKJ,EAAQ,CAAEE,OAAQ,eAAgBE,OAAAA,GAAS,EAC/EC,EAAc,WAAH,OAASL,EAAQ,CAAEE,OAAQ,gBAAiB,EACvDI,EAAiB,SAACC,GAAS,OAC/BP,EAAQ,CAAEE,OAAQ,QAASE,QAAQG,aAAG,EAAHA,EAAKC,UAAWC,OAAOF,IAAO,EAQnE,OANAX,EAAKD,QAAQe,GAAG,UAAWT,GAC3BL,EAAKD,QAAQe,GAAG,aAAcP,GAE9BP,EAAKD,QAAQe,GAAG,YAAaL,GAC7BT,EAAKD,QAAQe,GAAG,gBAAiBJ,GAE1B,WACLV,EAAKD,QAAQgB,IAAI,UAAWV,GAC5BL,EAAKD,QAAQgB,IAAI,aAAcR,GAE/BP,EAAKD,QAAQgB,IAAI,YAAaN,GAC9BT,EAAKD,QAAQgB,IAAI,gBAAiBL,MApDnC,CAgGF,OAhGGM,EAAAlB,EAAA,CAAA,CAAAmB,IAAA,YAAAC,MAEJ,SAAaC,EAAiBC,EAA0BC,GAAqB,IAAAC,EAAArB,KAC3EA,KAAKsB,cAAcJ,EAASC,EAAQC,GAEpCpB,KAAKF,QAAQe,kBAAWK,GAAWC,GAEnCnB,KAAKuB,MAAM,YAAaL,EAASE,GAEjC,IAAMI,EAAc,WAAH,OAASH,EAAKG,YAAYN,EAASC,EAAQC,EAAI,EAOhE,OALAK,OAAOC,eAAeF,EAAa,OAAQ,CACzCP,MAAK,eAAAU,OAAiBT,EAAQU,QAAQ,SAAU,MAChDC,UAAU,IAGLL,CACT,GAAC,CAAAR,IAAA,cAAAC,MAED,SAAeC,EAAiBC,EAA0BC,GACxDpB,KAAKsB,cAAcJ,EAASC,EAAQC,GAEpCpB,KAAKuB,MAAM,cAAeL,EAASE,GAEnCpB,KAAKF,QAAQgB,mBAAYI,GAAWC,EACtC,GAAC,CAAAH,IAAA,aAAAC,MAED,WAIE,OAHAjB,KAAKF,QAAQgC,aACb9B,KAAKF,QAAQiC,qBAEN/B,IACT,GAAC,CAAAgB,IAAA,gBAAAC,MAwBD,SAAsBC,EAAkBC,EAAiBC,GACvD,GAAuB,iBAAZF,IAAyBA,EAClC,MAAM,IAAIc,MAAM,sCAElB,GAAsB,mBAAXb,EACT,MAAM,IAAIa,MAAM,qCAGlB,QAAYC,IAARb,GAAoC,mBAARA,EAC9B,MAAM,IAAIY,MAAM,yBAEpB,GAAC,CAAAhB,IAAA,sBAAAC,MAED,SAA4BC,GAE1B,OAA4D,IAArDlB,KAAKF,QAAQoC,UAAkBhB,QAAAA,OAAAA,IAAWiB,MACnD,GAAC,CAAAnB,IAAA,QAAAC,MAED,SAAcmB,EAAoClB,EAAiBE,GACjE,IAAKpB,KAAKqC,oBAAoBnB,GAC5B,OAAOE,aAAG,EAAHA,IAGJA,EAMApB,KAAKF,QAAQwC,YAChBF,EAAKG,EAAA,CACHrB,QAAAA,GAAYsB,MACd,SAACC,GACC,OAAIA,EAAIC,GACCtB,IAGFA,EAAI,IAAIY,MAAmBI,aAAAA,OAAAA,EAAoBlB,gBAAAA,OAAAA,EAAYuB,MAAAA,OAAAA,EAAIE,QACxE,IAdA3C,KAAKF,QAAQ8C,KAAKR,EAAKG,EAAA,CAAIrB,QAAAA,GAAYsB,KAgB3C,KAAC3C,CAAA,CAnG+B"}
1
+ {"version":3,"file":"subscriptions-client.js","sources":["../../../src/clients/subscriptions/subscriptions-client.ts"],"sourcesContent":["import { Socket } from 'socket.io-client';\nimport { getHrefDebugField } from './constants';\nimport { SocketAuthRecovery } from './subscriptions-auth-recovery';\nimport {\n SubcriptionsClient,\n SubscriptionsClientV2Events,\n SubscriptionsClientV2ServerEvents,\n AcknowledgeCb,\n OnDataReceive,\n OnConnectionChange,\n} from './types';\n\nexport class SubscriptionsClientV2 implements SubcriptionsClient {\n /** Listeners this client put on the Manager; `socket.removeAllListeners()` does not reach those. */\n private readonly _managerListeners = new Set<() => void>();\n\n constructor(\n // Keep the name: corva-web-frontend's Sentry integration reaches the raw socket through it.\n private readonly _socket: Socket<\n SubscriptionsClientV2Events,\n SubscriptionsClientV2ServerEvents\n >,\n private readonly _recovery?: SocketAuthRecovery\n ) {}\n\n subscribe<T>(channel: string, onData: OnDataReceive<T>, ack?: AcknowledgeCb) {\n this._validateArgs(channel, onData, ack);\n\n this._socket.on(`data#${channel}`, onData);\n\n this._emit('subscribe', channel, ack);\n\n const unsubscribe = () => this.unsubscribe(channel, onData, ack);\n\n Object.defineProperty(unsubscribe, 'name', {\n value: `unsubscribe_${channel.replace(/[^\\w]/g, '_')}`,\n writable: false,\n });\n\n return unsubscribe;\n }\n\n unsubscribe<T>(channel: string, onData: OnDataReceive<T>, ack?: AcknowledgeCb) {\n this._validateArgs(channel, onData, ack);\n\n this._emit('unsubscribe', channel, ack);\n\n this._socket.off(`data#${channel}`, onData);\n }\n\n disconnect() {\n this._recovery?.dispose();\n this._socket.disconnect();\n this._socket.removeAllListeners();\n this._managerListeners.forEach(listener => this._socket.io?.off('reconnect_attempt', listener));\n this._managerListeners.clear();\n\n return this;\n }\n\n ensureConnected() {\n if (this._recovery) {\n this._recovery.ensureConnected();\n return;\n }\n\n if (!this._socket.connected && !this._socket.active) {\n this._socket.connect();\n }\n }\n\n onConnectionChange: (handler: OnConnectionChange) => () => void = handler => {\n const onConnect = () => handler({ status: 'connected' });\n const onDisconnect = (reason?: string) => handler({ status: 'disconnected', reason });\n const onReconnectAttempt = () => handler({ status: 'reconnecting' });\n const onConnectError = (err?: any) =>\n handler({ status: 'error', reason: err?.message || String(err) });\n\n // Reconnection events belong to the Manager (`socket.io`), not the Socket: a `reconnect*`\n // listener on the Socket never fires in socket.io v4.\n const manager = this._socket.io;\n\n this._socket.on('connect', onConnect as any);\n this._socket.on('disconnect', onDisconnect as any);\n manager?.on('reconnect_attempt', onReconnectAttempt);\n this._managerListeners.add(onReconnectAttempt);\n this._socket.on('connect_error', onConnectError as any);\n\n return () => {\n this._socket.off('connect', onConnect as any);\n this._socket.off('disconnect', onDisconnect as any);\n manager?.off('reconnect_attempt', onReconnectAttempt);\n this._managerListeners.delete(onReconnectAttempt);\n this._socket.off('connect_error', onConnectError as any);\n };\n };\n\n private _validateArgs(channel: unknown, onData: unknown, ack?: unknown) {\n if (typeof channel !== 'string' || !channel) {\n throw new Error('Channel must be a non-empty string');\n }\n if (typeof onData !== 'function') {\n throw new Error('onData handler must be a function');\n }\n\n if (ack !== undefined && typeof ack !== 'function') {\n throw new Error('ack must be a function');\n }\n }\n\n private _shouldEmitToServer(channel: string) {\n // emit when the only present listener is a current one\n return this._socket.listeners(`data#${channel}`).length === 1;\n }\n\n private _emit(event: 'subscribe' | 'unsubscribe', channel: string, ack?: AcknowledgeCb) {\n if (!this._shouldEmitToServer(channel)) {\n return ack?.();\n }\n\n if (!ack) {\n this._socket.emit(event, { channel, ...getHrefDebugField() });\n\n return;\n }\n\n void this._socket.emitWithAck(\n event,\n { channel, ...getHrefDebugField() },\n (res: { ok: boolean; error?: string }) => {\n if (res.ok) {\n return ack();\n }\n\n return ack(new Error(`Failed to ${event} to channel ${channel}: ${res.error}`));\n }\n );\n }\n}\n"],"names":["SubscriptionsClientV2","_socket","_recovery","_this","this","_classCallCheck","_defineProperty","Set","handler","onConnect","status","onDisconnect","reason","onReconnectAttempt","onConnectError","err","message","String","manager","io","on","_managerListeners","add","off","delete","_createClass","key","value","channel","onData","ack","_this2","_validateArgs","_emit","unsubscribe","Object","defineProperty","concat","replace","writable","_this$_recovery","_this3","dispose","disconnect","removeAllListeners","forEach","listener","_this3$_socket$io","clear","ensureConnected","connected","active","connect","Error","undefined","listeners","length","event","_shouldEmitToServer","emitWithAck","_objectSpread","getHrefDebugField","res","ok","error","emit"],"mappings":"8wBAYA,IAAaA,EAAqB,WAIhC,SAAAA,EAEmBC,EAIAC,GACjB,IAAAC,EAAAC,KAAAC,EAAAD,KAAAJ,GAAAI,KALiBH,QAAAA,EAGhBG,KACgBF,UAAAA,EAA8BI,EARZF,KAAA,oBAAA,IAAIG,KAAiBD,EAyDQF,KAAA,sBAAA,SAAAI,GAChE,IAAMC,EAAY,WAAH,OAASD,EAAQ,CAAEE,OAAQ,aAAc,EAClDC,EAAe,SAACC,GAAe,OAAKJ,EAAQ,CAAEE,OAAQ,eAAgBE,OAAAA,GAAS,EAC/EC,EAAqB,WAAH,OAASL,EAAQ,CAAEE,OAAQ,gBAAiB,EAC9DI,EAAiB,SAACC,GAAS,OAC/BP,EAAQ,CAAEE,OAAQ,QAASE,QAAQG,aAAG,EAAHA,EAAKC,UAAWC,OAAOF,IAAO,EAI7DG,EAAUf,EAAKF,QAAQkB,GAQ7B,OANAhB,EAAKF,QAAQmB,GAAG,UAAWX,GAC3BN,EAAKF,QAAQmB,GAAG,aAAcT,GAC9BO,SAAAA,EAASE,GAAG,oBAAqBP,GACjCV,EAAKkB,kBAAkBC,IAAIT,GAC3BV,EAAKF,QAAQmB,GAAG,gBAAiBN,GAE1B,WACLX,EAAKF,QAAQsB,IAAI,UAAWd,GAC5BN,EAAKF,QAAQsB,IAAI,aAAcZ,GAC/BO,SAAAA,EAASK,IAAI,oBAAqBV,GAClCV,EAAKkB,kBAAkBG,OAAOX,GAC9BV,EAAKF,QAAQsB,IAAI,gBAAiBT,MAtEnC,CAkHF,OAlHGW,EAAAzB,EAAA,CAAA,CAAA0B,IAAA,YAAAC,MAEJ,SAAaC,EAAiBC,EAA0BC,GAAqB,IAAAC,EAAA3B,KAC3EA,KAAK4B,cAAcJ,EAASC,EAAQC,GAEpC1B,KAAKH,QAAQmB,kBAAWQ,GAAWC,GAEnCzB,KAAK6B,MAAM,YAAaL,EAASE,GAEjC,IAAMI,EAAc,WAAH,OAASH,EAAKG,YAAYN,EAASC,EAAQC,EAAI,EAOhE,OALAK,OAAOC,eAAeF,EAAa,OAAQ,CACzCP,MAAK,eAAAU,OAAiBT,EAAQU,QAAQ,SAAU,MAChDC,UAAU,IAGLL,CACT,GAAC,CAAAR,IAAA,cAAAC,MAED,SAAeC,EAAiBC,EAA0BC,GACxD1B,KAAK4B,cAAcJ,EAASC,EAAQC,GAEpC1B,KAAK6B,MAAM,cAAeL,EAASE,GAEnC1B,KAAKH,QAAQsB,mBAAYK,GAAWC,EACtC,GAAC,CAAAH,IAAA,aAAAC,MAED,WAAa,IAAAa,EAAAC,EAAArC,KAOX,OANA,QAAAoC,EAAApC,KAAKF,iBAAL,IAAAsC,GAAAA,EAAgBE,UAChBtC,KAAKH,QAAQ0C,aACbvC,KAAKH,QAAQ2C,qBACbxC,KAAKiB,kBAAkBwB,SAAQ,SAAAC,GAAQ,IAAAC,EAAA,OAAmB,QAAnBA,EAAIN,EAAKxC,QAAQkB,UAAE,IAAA4B,OAAA,EAAfA,EAAiBxB,IAAI,oBAAqBuB,MACrF1C,KAAKiB,kBAAkB2B,QAEhB5C,IACT,GAAC,CAAAsB,IAAA,kBAAAC,MAED,WACMvB,KAAKF,UACPE,KAAKF,UAAU+C,kBAIZ7C,KAAKH,QAAQiD,WAAc9C,KAAKH,QAAQkD,QAC3C/C,KAAKH,QAAQmD,SAEjB,GAAC,CAAA1B,IAAA,gBAAAC,MA4BD,SAAsBC,EAAkBC,EAAiBC,GACvD,GAAuB,iBAAZF,IAAyBA,EAClC,MAAM,IAAIyB,MAAM,sCAElB,GAAsB,mBAAXxB,EACT,MAAM,IAAIwB,MAAM,qCAGlB,QAAYC,IAARxB,GAAoC,mBAARA,EAC9B,MAAM,IAAIuB,MAAM,yBAEpB,GAAC,CAAA3B,IAAA,sBAAAC,MAED,SAA4BC,GAE1B,OAA4D,IAArDxB,KAAKH,QAAQsD,UAAkB3B,QAAAA,OAAAA,IAAW4B,MACnD,GAAC,CAAA9B,IAAA,QAAAC,MAED,SAAc8B,EAAoC7B,EAAiBE,GACjE,IAAK1B,KAAKsD,oBAAoB9B,GAC5B,OAAOE,aAAG,EAAHA,IAGJA,EAMA1B,KAAKH,QAAQ0D,YAChBF,EAAKG,EAAA,CACHhC,QAAAA,GAAYiC,MACd,SAACC,GACC,OAAIA,EAAIC,GACCjC,IAGFA,EAAI,IAAIuB,MAAmBI,aAAAA,OAAAA,EAAoB7B,gBAAAA,OAAAA,EAAYkC,MAAAA,OAAAA,EAAIE,QACxE,IAdA5D,KAAKH,QAAQgE,KAAKR,EAAKG,EAAA,CAAIhC,QAAAA,GAAYiC,KAgB3C,KAAC7D,CAAA,CA7H+B"}
@@ -35,6 +35,11 @@ export interface SubcriptionsClient {
35
35
  subscribe<T>(channel: string, onData: OnDataReceive<T>, ack?: AcknowledgeCb): () => void;
36
36
  unsubscribe<T>(channel: string, onData: OnDataReceive<T>, ack?: AcknowledgeCb): void;
37
37
  disconnect(): void;
38
+ /**
39
+ * Reconnect if the socket has given up (after an auth rejection, or a manual disconnect). No-op
40
+ * while connected or while socket.io is already retrying. Call when the tab becomes visible.
41
+ */
42
+ ensureConnected(): void;
38
43
  onConnectionChange(handler: OnConnectionChange): () => void;
39
44
  }
40
45
  export type ConnectionStatus = 'connected' | 'disconnected' | 'reconnecting' | 'error';
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/clients/subscriptions/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,EAAE,GAAG,QAAQ,GAAG,SAAS,CAAC;AAExD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE;QACL,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AAED,MAAM,WAAW,aAAa;IAC5B,CAAC,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,2BAA2B;IAC1C,CAAC,KAAK,EAAE,QAAQ,MAAM,EAAE,GAAG,GAAG,CAAC;CAChC;AAED,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,CACT,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,sBAAsB,CAAC,EAAE,MAAM,CAAA;KAAE,EAC1D,GAAG,CAAC,EAAE,aAAa,KAChB,IAAI,CAAC;IACV,WAAW,EAAE,CACX,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,sBAAsB,CAAC,EAAE,MAAM,CAAA;KAAE,EAC1D,GAAG,CAAC,EAAE,aAAa,KAChB,IAAI,CAAC;CACX;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,aAAa,GAAG,MAAM,IAAI,CAAC;IACzF,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrF,UAAU,IAAI,IAAI,CAAC;IACnB,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,IAAI,CAAC;CAC7D;AAED,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,cAAc,GAAG,cAAc,GAAG,OAAO,CAAC;AACvF,MAAM,MAAM,gBAAgB,GAAG;IAAE,MAAM,EAAE,gBAAgB,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC7E,MAAM,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/clients/subscriptions/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,EAAE,GAAG,QAAQ,GAAG,SAAS,CAAC;AAExD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE;QACL,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AAED,MAAM,WAAW,aAAa;IAC5B,CAAC,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,2BAA2B;IAC1C,CAAC,KAAK,EAAE,QAAQ,MAAM,EAAE,GAAG,GAAG,CAAC;CAChC;AAED,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,CACT,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,sBAAsB,CAAC,EAAE,MAAM,CAAA;KAAE,EAC1D,GAAG,CAAC,EAAE,aAAa,KAChB,IAAI,CAAC;IACV,WAAW,EAAE,CACX,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,sBAAsB,CAAC,EAAE,MAAM,CAAA;KAAE,EAC1D,GAAG,CAAC,EAAE,aAAa,KAChB,IAAI,CAAC;CACX;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,aAAa,GAAG,MAAM,IAAI,CAAC;IACzF,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrF,UAAU,IAAI,IAAI,CAAC;IACnB;;;OAGG;IACH,eAAe,IAAI,IAAI,CAAC;IACxB,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,IAAI,CAAC;CAC7D;AAED,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,cAAc,GAAG,cAAc,GAAG,OAAO,CAAC;AACvF,MAAM,MAAM,gBAAgB,GAAG;IAAE,MAAM,EAAE,gBAAgB,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC7E,MAAM,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC"}
@@ -1,2 +1,2 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useState as s}from"react";import{func as i,node as n,shape as r,number as p}from"prop-types";import{makeStyles as m,Popover as c,Grid as a,Typography as l}from"@material-ui/core";import d from"classnames";import j from"./components/Content.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"lodash";import"../Modal/CorvaModal.scss.js";import"@icon-park/react/es/all";import{jsxs as u,jsx as C}from"react/jsx-runtime";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.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/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.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/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.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"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import"../../utils/mobileDetect.js";import I from"../IconButton/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../GradientManager/configuration/constants.js";import"uuid";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../DevCenter/AppsDataProvider/effects/utils.js";import"@babel/runtime/helpers/toConsumableArray";import"query-string";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router-dom";import"../UserMention/utils/index.js";import"../../utils/convert.js";import"moment";import"../../utils/casing/validation.js";import"lodash/mean";import"../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"../../utils/drillstring/conversion.js";import"lodash/set";import"lodash/cloneDeep";import"lodash/isNumber";import"lodash/has";import"../../utils/ga.js";import"../../utils/goalsConfig/goalsConfig.js";import"../../utils/lasParser.js";import"../../utils/main.js";import"../../utils/metrics/metricsConfig.js";import"../../utils/feed.js";import"../../utils/reports.js";import"moment-timezone";import"@babel/runtime/helpers/typeof";import"../../utils/dashboardReports.js";import"../../utils/env.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../utils/jsonaDataFormatter.js";import"../../utils/bha.js";import"jsona";import"../../clients/jsonApi/index.js";import"../../utils/charts/Styles.scss.js";import"../../utils/getSingleAsset.js";import"@material-ui/icons";import"../EmptyState/EmptyState.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js";import"@material-ui/pickers";import"@date-io/moment";import"../../config/theme/index.js";import"../../hocs/withAssetEditorLockHOC.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../Button/components/Button/index.js";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../ConfirmationDialog.js";import"../../permissions/PermissionsContext.js";import"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"../../permissions/ProvidePermissions.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.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"../../componentsV2/PadModeSelect/PadModeSelect.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../componentsV2/utils.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../componentsV2/Popover/Popover.js";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/ButtonIcon/ButtonIcon.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"../../componentsV2/Menu/Menu.js";import"../../componentsV2/ModalWindow/ModalWindow.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../componentsV2/TextInput/TextInput.js";import"../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"querystring";import"../../clients/subscriptions/subscriptions-client.factory.js";import"../StatusBadge/constants.js";import"lodash/unset";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppPanel/AppPanelsContext.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../componentsV2/AppHeader/V3/constants.scss.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.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/EmptyState/EmptyState.scss.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.scss.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/PopoverPanel/PopoverPanel.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInputNext/TextInputNext.js";import"../../componentsV2/TextArea/TextArea.js";import"../../componentsV2/Label/Label.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/ChipAlert/ChipAlert.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/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"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.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"../../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/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtreme.scss.js";import"highcharts";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtremeDragTracker.js";import"../../componentsV2/Autocomplete/Autocomplete.js";import"../../componentsV2/Select/Select.js";import"../../componentsV2/AppPanel/AppPanel.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"../../componentsV2/Slider/constants.js";import"../../componentsV2/Slider/components/SliderThumb.js";import"../../componentsV2/Slider/Slider.scss.js";import"../../componentsV2/SliderAdvanced/SliderAdvanced.js";import"react-color";import"../../componentsV2/ColorPicker/Swatches/Swatches.scss.js";import"../../componentsV2/ColorPicker/OpacityDragtracker/OpacityDragTracker.scss.js";import"../../componentsV2/ColorPicker/ColorPicker.scss.js";import"../../componentsV2/ChartHelper/ChartHelper.scss.js";import"../../componentsV2/Hotkey/Hotkey.js";import"@tanstack/react-query";import"../../componentsV2/InterventionEventSelector/useInterventionUnitEvents.js";import"../../componentsV2/InterventionEventSelector/InterventionEventSelector.scss.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.css.js";import"../Icons/AnnotationIcon.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/RestoreAppSizeButton.css.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.scss.js";import"../Toaster/Toaster.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"../AssetEditor/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"../SettingEditors/ColorEditor/style.css.js";import"../SettingEditors/DropdownEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/ChartWrapperContext.js";import"../Chart/effects/useChartModifier.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/constants.js";import"../RangeSlider/Input.css.js";import"../RangeSlider/RangeSlider.css.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.scss.js";import"../GradientManager/GradientManager.styles.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTileIcon.js";import"../Casing/CasingTableV2/CasingTableV2.js";import"../Casing/CasingTile/CasingTile.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellButton/OffsetWellButton.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js";import"mapbox-gl/dist/mapbox-gl.css";import"@material-ui/icons/Info";import"@material-ui/icons/Block";import"../OffsetWellMap/WellTooltip.module.css.js";import"../OffsetWellMap/OffsetWellMap.module.css.js";import"../../config/mapboxGl/index.js";import"../../config/mapbox/index.js";import"react-dom";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Notifications/Notifications.scss.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import"../Table/TablePagination/TablePagination.js";import"../Table/TablePaginationActions/TablePaginationActions.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Stepper.js";import"../Stepper/Step/Step.js";import"../Stepper/StepsWrapper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../../componentsV2/FileIcon/icons/ArchiveFileIcon.js";import"../../componentsV2/FileIcon/icons/CSVFileIcon.js";import"../../componentsV2/FileIcon/icons/DocFileIcon.js";import"../../componentsV2/FileIcon/icons/EDMFileIcon.js";import"../../componentsV2/FileIcon/icons/ExcelFileIcon.js";import"../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"./Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../Formula/useFormulaStyles.js";import"../Formula/RootXIcon.js";import"../Formula/FormulaTextEditor.js";import"../Formula/CloseSuggestion.js";import"../Formula/SuggestionsMenu.js";import"../CommentCard/CommentCard.js";import"@material-ui/icons/AlternateEmail";import"../AttachFileButton/AttachFileButton.scss.js";import"../CommentInputNext/CommentInputNext.js";import"../WellhubFilePicker/components/WellhubFileCard/WellhubFileCard.scss.js";import"../WellhubFilePicker/components/WellhubFilePickerView/WellhubFilePickerView.scss.js";import"react-s3-uploader/s3upload";import"../CommentComposer/CommentMetaLine.scss.js";import"../CommentComposer/ChatChannelSelector.scss.js";import"../CommentComposer/ShareToChatRow.scss.js";import"../CommentComposer/CommentComposer.scss.js";import"../AttachmentPreview/AttachmentPreview.js";import"../AttachmentPreview/AttachmentImage.js";import"../AttachmentPreview/AttachmentPreview.scss.js";import"../CommentPin/CommentPin.js";import"../FeedCard/FeedCard.js";import"../FeedItemCard/FeedItemCard.js";import"../NewCommentCursor/NewCommentCursor.js";import"../LinkedText/LinkedText.js";import"../FeedItem/feedItemTypes/AlertFeedItem.js";import"../FeedItem/feedItemTypes/PostFeedItem.js";import"../FeedItem/feedItemTypes/GeosteeringFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/DocumentFeedItem.js";import"../FeedItem/feedItemTypes/DrillerMemoFeedItem.js";import"../FeedItem/feedItemTypes/NptFeedItem.js";import"../FeedItem/feedItemTypes/SurveyStationFeedItem/index.js";import"../FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js";import"../FeedItem/feedItemTypes/TracesMemoFeedItem.js";import"../FeedItem/feedItemTypes/DepthCommentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDocumentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionNptFeedItem.js";import"../FeedItem/feedItemTypes/StageOverviewFeedItem/index.js";import"../FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js";import"../FeedItem/feedItemTypes/WellPlanFeedItem/index.js";import"../FeedItem/feedItemTypes/FluidReportFeedItem.js";import"../FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js";import"../FeedItem/feedItemTypes/DvDCommentFeedItem.js";import"../FeedItem/feedItemTypes/PCCommentFeedItem.js";import"../FeedItem/feedItemTypes/HookloadCommentFeedItem.js";import"../FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js";import"../FeedItem/feedItemTypes/GenericDataCommentFeedItem.js";import A from"../Icons/SendIcon.js";var V=["anchorEl","anchorOrigin","onClose","onSave","startAdornment","endAdornment","customContent","userCompanyId"];function h(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);o&&(s=s.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),t.push.apply(t,s)}return t}function S(o){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?h(Object(s),!0).forEach((function(t){e(o,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):h(Object(s)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(s,e))}))}return o}var g=m((function(e){return{paper:{width:368,padding:16},inputMain:{marginBottom:0,fontSize:"11px",color:e.palette.primary.text8},inputHelper:{display:"flex",paddingRight:5},cancelText:{cursor:"pointer"},highlightedLabel:{color:e.palette.primary.main},actions:{height:36},sendRow:{display:"flex"},sendIcon:{"&.Mui-disabled":{cursor:"not-allowed!important"}}}}));function v(e){var i=e.anchorEl,n=e.anchorOrigin,r=void 0===n?F:n,p=e.onClose,m=void 0===p?T:p,h=e.onSave,v=e.startAdornment,P=void 0===v?null:v,D=e.endAdornment,b=void 0===D?null:D,f=e.customContent,x=void 0===f?null:f,y=e.userCompanyId,B=t(e,V),k=g(),E=s(),O=o(E,2),L=O[0],M=O[1];return u(c,S(S({open:!0,anchorEl:i,anchorOrigin:r,onClose:m,classes:{paper:k.paper}},B),{},{children:[C(j,{userCompanyId:y,startAdornment:P,endAdornment:b,customContent:x,setComment:M,onSave:function(){return h(L)},smallerView:!0,comment:L}),u(a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",className:k.actions,children:[C(a,{item:!0,children:C(l,{"data-testid":"".concat("AddCommentPopover","_cancel"),variant:"caption",className:d(k.inputMain,k.cancelText,k.highlightedLabel),component:"div",gutterBottom:!0,onClick:m,children:"Cancel"})}),u(a,{item:!0,direction:"row",alignItems:"center",className:k.sendRow,children:[u(l,{variant:"caption",className:d(k.inputMain,k.inputHelper),component:"div",gutterBottom:!0,children:["Press ",C(l,{variant:"caption",color:"primary",className:d(k.inputMain,k.highlightedLabel),children:"Enter"})," to send"]}),C(I,{"data-testid":"".concat("AddCommentPopover","_send"),onClick:function(){return h(L)},className:k.sendIcon,disabled:!L||!L.body&&!L.attachment,children:C(A,{})})]})]})]}))}v.propTypes={onClose:i,onSave:i.isRequired,anchorEl:n.isRequired,anchorOrigin:r,startAdornment:n,endAdornment:n,customContent:n,userCompanyId:p.isRequired};var F={horizontal:"right",vertical:"bottom"},T=function(){};export{v as default};
1
+ import e from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useState as s}from"react";import{func as i,node as n,shape as r,number as p}from"prop-types";import{makeStyles as m,Popover as c,Grid as a,Typography as l}from"@material-ui/core";import d from"classnames";import j from"./components/Content.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"lodash";import"../Modal/CorvaModal.scss.js";import"@icon-park/react/es/all";import{jsxs as u,jsx as C}from"react/jsx-runtime";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.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/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.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/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.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"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import"../../utils/mobileDetect.js";import I from"../IconButton/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../GradientManager/configuration/constants.js";import"uuid";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../DevCenter/AppsDataProvider/effects/utils.js";import"@babel/runtime/helpers/toConsumableArray";import"query-string";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router-dom";import"../UserMention/utils/index.js";import"../../utils/convert.js";import"moment";import"../../utils/casing/validation.js";import"lodash/mean";import"../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"../../utils/drillstring/conversion.js";import"lodash/set";import"lodash/cloneDeep";import"lodash/isNumber";import"lodash/has";import"../../utils/ga.js";import"../../utils/goalsConfig/goalsConfig.js";import"../../utils/lasParser.js";import"../../utils/main.js";import"../../utils/metrics/metricsConfig.js";import"../../utils/feed.js";import"../../utils/reports.js";import"moment-timezone";import"@babel/runtime/helpers/typeof";import"../../utils/dashboardReports.js";import"../../utils/env.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../utils/jsonaDataFormatter.js";import"../../utils/bha.js";import"jsona";import"../../clients/jsonApi/index.js";import"../../utils/charts/Styles.scss.js";import"../../utils/getSingleAsset.js";import"@material-ui/icons/ArrowForward";import"../EmptyState/EmptyState.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js";import"@material-ui/pickers";import"@date-io/moment";import"../../config/theme/index.js";import"../../hocs/withAssetEditorLockHOC.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../Button/components/Button/index.js";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../ConfirmationDialog.js";import"../../permissions/PermissionsContext.js";import"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"../../permissions/ProvidePermissions.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.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"../../componentsV2/PadModeSelect/PadModeSelect.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../componentsV2/utils.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../componentsV2/Popover/Popover.js";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/ButtonIcon/ButtonIcon.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"../../componentsV2/Menu/Menu.js";import"../../componentsV2/ModalWindow/ModalWindow.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../componentsV2/TextInput/TextInput.js";import"../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"querystring";import"../../clients/subscriptions/subscriptions-client.factory.js";import"../StatusBadge/constants.js";import"lodash/unset";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppPanel/AppPanelsContext.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../componentsV2/AppHeader/V3/constants.scss.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.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/EmptyState/EmptyState.scss.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.scss.js";import"@material-ui/icons/BugReport";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/PopoverPanel/PopoverPanel.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInputNext/TextInputNext.js";import"../../componentsV2/TextArea/TextArea.js";import"../../componentsV2/Label/Label.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/ChipAlert/ChipAlert.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/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"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.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"../../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/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtreme.scss.js";import"highcharts";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtremeDragTracker.js";import"../../componentsV2/Autocomplete/Autocomplete.js";import"../../componentsV2/Select/Select.js";import"../../componentsV2/AppPanel/AppPanel.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"../../componentsV2/Slider/constants.js";import"../../componentsV2/Slider/components/SliderThumb.js";import"../../componentsV2/Slider/Slider.scss.js";import"../../componentsV2/SliderAdvanced/SliderAdvanced.js";import"react-color";import"../../componentsV2/ColorPicker/Swatches/Swatches.scss.js";import"../../componentsV2/ColorPicker/OpacityDragtracker/OpacityDragTracker.scss.js";import"../../componentsV2/ColorPicker/ColorPicker.scss.js";import"../../componentsV2/ChartHelper/ChartHelper.scss.js";import"../../componentsV2/Hotkey/Hotkey.js";import"@tanstack/react-query";import"../../componentsV2/InterventionEventSelector/useInterventionUnitEvents.js";import"../../componentsV2/InterventionEventSelector/InterventionEventSelector.scss.js";import"@material-ui/icons/Launch";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.css.js";import"../Icons/AnnotationIcon.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/RestoreAppSizeButton.css.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.scss.js";import"../Toaster/Toaster.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"../AssetEditor/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"../SettingEditors/ColorEditor/style.css.js";import"../SettingEditors/DropdownEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/ChartWrapperContext.js";import"../Chart/effects/useChartModifier.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/constants.js";import"../RangeSlider/Input.css.js";import"../RangeSlider/RangeSlider.css.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.scss.js";import"../GradientManager/GradientManager.styles.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTileIcon.js";import"../Casing/CasingTableV2/CasingTableV2.js";import"../Casing/CasingTile/CasingTile.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellButton/OffsetWellButton.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js";import"@material-ui/icons/Add";import"@material-ui/icons/Remove";import"mapbox-gl/dist/mapbox-gl.css";import"@material-ui/icons/Info";import"@material-ui/icons/Block";import"../OffsetWellMap/WellTooltip.module.css.js";import"../OffsetWellMap/OffsetWellMap.module.css.js";import"../../config/mapboxGl/index.js";import"../../config/mapbox/index.js";import"react-dom";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Notifications/Notifications.scss.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import"../Table/TablePagination/TablePagination.js";import"../Table/TablePaginationActions/TablePaginationActions.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Stepper.js";import"../Stepper/Step/Step.js";import"../Stepper/StepsWrapper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../../componentsV2/FileIcon/icons/ArchiveFileIcon.js";import"../../componentsV2/FileIcon/icons/CSVFileIcon.js";import"../../componentsV2/FileIcon/icons/DocFileIcon.js";import"../../componentsV2/FileIcon/icons/EDMFileIcon.js";import"../../componentsV2/FileIcon/icons/ExcelFileIcon.js";import"../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"./Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../Formula/useFormulaStyles.js";import"../Formula/RootXIcon.js";import"../Formula/FormulaTextEditor.js";import"../Formula/CloseSuggestion.js";import"../Formula/SuggestionsMenu.js";import"../CommentCard/CommentCard.js";import"@material-ui/icons/AlternateEmail";import"../AttachFileButton/AttachFileButton.scss.js";import"../CommentInputNext/CommentInputNext.js";import"../WellhubFilePicker/components/WellhubFileCard/WellhubFileCard.scss.js";import"../WellhubFilePicker/components/WellhubFilePickerView/WellhubFilePickerView.scss.js";import"react-s3-uploader/s3upload";import"../CommentComposer/CommentMetaLine.scss.js";import"../CommentComposer/ChatChannelSelector.scss.js";import"../CommentComposer/ShareToChatRow.scss.js";import"../CommentComposer/CommentComposer.scss.js";import"../AttachmentPreview/AttachmentPreview.js";import"../AttachmentPreview/AttachmentImage.js";import"../AttachmentPreview/AttachmentPreview.scss.js";import"../CommentPin/CommentPin.js";import"../FeedCard/FeedCard.js";import"../FeedItemCard/FeedItemCard.js";import"../NewCommentCursor/NewCommentCursor.js";import"../LinkedText/LinkedText.js";import"../FeedItem/feedItemTypes/AlertFeedItem.js";import"../FeedItem/feedItemTypes/PostFeedItem.js";import"../FeedItem/feedItemTypes/GeosteeringFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/DocumentFeedItem.js";import"../FeedItem/feedItemTypes/DrillerMemoFeedItem.js";import"../FeedItem/feedItemTypes/NptFeedItem.js";import"../FeedItem/feedItemTypes/SurveyStationFeedItem/index.js";import"../FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js";import"../FeedItem/feedItemTypes/TracesMemoFeedItem.js";import"../FeedItem/feedItemTypes/DepthCommentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDocumentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionNptFeedItem.js";import"../FeedItem/feedItemTypes/StageOverviewFeedItem/index.js";import"../FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js";import"../FeedItem/feedItemTypes/WellPlanFeedItem/index.js";import"../FeedItem/feedItemTypes/FluidReportFeedItem.js";import"../FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js";import"../FeedItem/feedItemTypes/DvDCommentFeedItem.js";import"../FeedItem/feedItemTypes/PCCommentFeedItem.js";import"../FeedItem/feedItemTypes/HookloadCommentFeedItem.js";import"../FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js";import"../FeedItem/feedItemTypes/GenericDataCommentFeedItem.js";import A from"../Icons/SendIcon.js";var V=["anchorEl","anchorOrigin","onClose","onSave","startAdornment","endAdornment","customContent","userCompanyId"];function h(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);o&&(s=s.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),t.push.apply(t,s)}return t}function S(o){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?h(Object(s),!0).forEach((function(t){e(o,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):h(Object(s)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(s,e))}))}return o}var g=m((function(e){return{paper:{width:368,padding:16},inputMain:{marginBottom:0,fontSize:"11px",color:e.palette.primary.text8},inputHelper:{display:"flex",paddingRight:5},cancelText:{cursor:"pointer"},highlightedLabel:{color:e.palette.primary.main},actions:{height:36},sendRow:{display:"flex"},sendIcon:{"&.Mui-disabled":{cursor:"not-allowed!important"}}}}));function v(e){var i=e.anchorEl,n=e.anchorOrigin,r=void 0===n?F:n,p=e.onClose,m=void 0===p?T:p,h=e.onSave,v=e.startAdornment,P=void 0===v?null:v,D=e.endAdornment,b=void 0===D?null:D,f=e.customContent,x=void 0===f?null:f,y=e.userCompanyId,B=t(e,V),k=g(),E=s(),O=o(E,2),L=O[0],M=O[1];return u(c,S(S({open:!0,anchorEl:i,anchorOrigin:r,onClose:m,classes:{paper:k.paper}},B),{},{children:[C(j,{userCompanyId:y,startAdornment:P,endAdornment:b,customContent:x,setComment:M,onSave:function(){return h(L)},smallerView:!0,comment:L}),u(a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",className:k.actions,children:[C(a,{item:!0,children:C(l,{"data-testid":"".concat("AddCommentPopover","_cancel"),variant:"caption",className:d(k.inputMain,k.cancelText,k.highlightedLabel),component:"div",gutterBottom:!0,onClick:m,children:"Cancel"})}),u(a,{item:!0,direction:"row",alignItems:"center",className:k.sendRow,children:[u(l,{variant:"caption",className:d(k.inputMain,k.inputHelper),component:"div",gutterBottom:!0,children:["Press ",C(l,{variant:"caption",color:"primary",className:d(k.inputMain,k.highlightedLabel),children:"Enter"})," to send"]}),C(I,{"data-testid":"".concat("AddCommentPopover","_send"),onClick:function(){return h(L)},className:k.sendIcon,disabled:!L||!L.body&&!L.attachment,children:C(A,{})})]})]})]}))}v.propTypes={onClose:i,onSave:i.isRequired,anchorEl:n.isRequired,anchorOrigin:r,startAdornment:n,endAdornment:n,customContent:n,userCompanyId:p.isRequired};var F={horizontal:"right",vertical:"bottom"},T=function(){};export{v as default};
2
2
  //# sourceMappingURL=Popover.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.js","sources":["../../../src/components/AddComment/Popover.js"],"sourcesContent":["import { useState } from 'react';\nimport { node, shape, func, number } from 'prop-types';\nimport { Popover, Grid, Typography, makeStyles } from '@material-ui/core';\nimport classNames from 'classnames';\n\nimport Content from './components/Content';\n\nimport { IconButton } from '~/components';\nimport SendIcon from '~components/Icons/SendIcon';\n\nconst PAGE_NAME = 'AddCommentPopover';\n\nconst useStyles = makeStyles(theme => ({\n paper: {\n width: 368,\n padding: 16,\n },\n inputMain: {\n marginBottom: 0,\n fontSize: '11px',\n color: theme.palette.primary.text8,\n },\n inputHelper: {\n display: 'flex',\n paddingRight: 5,\n },\n cancelText: {\n cursor: 'pointer',\n },\n highlightedLabel: {\n color: theme.palette.primary.main,\n },\n actions: { height: 36 },\n sendRow: { display: 'flex' },\n sendIcon: {\n '&.Mui-disabled': {\n cursor: 'not-allowed!important',\n },\n },\n}));\n\nfunction AddCommentPopover({\n anchorEl,\n anchorOrigin = DEFAULT_ADD_COMMENT_POPOVER_ANCHOR_ORIGIN,\n onClose = DEFAULT_ADD_COMMENT_POPOVER_ON_CLOSE,\n onSave,\n startAdornment = null, // Render node on the top of the content\n endAdornment = null, // Render node on the bottom of the content\n customContent = null, // Render custom content instead of Post Input\n userCompanyId,\n ...otherProps\n}) {\n const classes = useStyles();\n const [comment, setComment] = useState();\n\n return (\n <Popover\n open\n anchorEl={anchorEl}\n anchorOrigin={anchorOrigin}\n onClose={onClose}\n classes={{ paper: classes.paper }}\n {...otherProps}\n >\n <Content\n userCompanyId={userCompanyId}\n startAdornment={startAdornment}\n endAdornment={endAdornment}\n customContent={customContent}\n setComment={setComment}\n onSave={() => onSave(comment)}\n smallerView\n comment={comment}\n />\n\n <Grid\n container\n direction=\"row\"\n justify=\"space-between\"\n alignItems=\"center\"\n className={classes.actions}\n >\n <Grid item>\n <Typography\n data-testid={`${PAGE_NAME}_cancel`}\n variant=\"caption\"\n className={classNames(classes.inputMain, classes.cancelText, classes.highlightedLabel)}\n component=\"div\"\n gutterBottom\n onClick={onClose}\n >\n Cancel\n </Typography>\n </Grid>\n <Grid item direction=\"row\" alignItems=\"center\" className={classes.sendRow}>\n <Typography\n variant=\"caption\"\n className={classNames(classes.inputMain, classes.inputHelper)}\n component=\"div\"\n gutterBottom\n >\n Press&nbsp;\n <Typography\n variant=\"caption\"\n color=\"primary\"\n className={classNames(classes.inputMain, classes.highlightedLabel)}\n >\n Enter\n </Typography>\n &nbsp;to send\n </Typography>\n <IconButton\n data-testid={`${PAGE_NAME}_send`}\n onClick={() => onSave(comment)}\n className={classes.sendIcon}\n disabled={!comment || (!comment.body && !comment.attachment)}\n >\n <SendIcon />\n </IconButton>\n </Grid>\n </Grid>\n </Popover>\n );\n}\n\nAddCommentPopover.propTypes = {\n onClose: func,\n onSave: func.isRequired,\n anchorEl: node.isRequired,\n anchorOrigin: shape,\n startAdornment: node,\n endAdornment: node,\n customContent: node,\n userCompanyId: number.isRequired,\n};\n\nconst DEFAULT_ADD_COMMENT_POPOVER_ANCHOR_ORIGIN = { horizontal: 'right', vertical: 'bottom' };\nconst DEFAULT_ADD_COMMENT_POPOVER_ON_CLOSE = () => undefined;\n\nexport default AddCommentPopover;\n"],"names":["useStyles","makeStyles","theme","paper","width","padding","inputMain","marginBottom","fontSize","color","palette","primary","text8","inputHelper","display","paddingRight","cancelText","cursor","highlightedLabel","main","actions","height","sendRow","sendIcon","AddCommentPopover","_ref","anchorEl","_ref$anchorOrigin","anchorOrigin","DEFAULT_ADD_COMMENT_POPOVER_ANCHOR_ORIGIN","_ref$onClose","onClose","DEFAULT_ADD_COMMENT_POPOVER_ON_CLOSE","onSave","_ref$startAdornment","startAdornment","_ref$endAdornment","endAdornment","_ref$customContent","customContent","userCompanyId","otherProps","_objectWithoutProperties","_excluded","classes","_useState","useState","_useState2","_slicedToArray","comment","setComment","_jsxs","Popover","_objectSpread","open","children","_jsx","Content","smallerView","Grid","container","direction","justify","alignItems","className","item","Typography","concat","variant","classNames","component","gutterBottom","onClick","IconButton","disabled","body","attachment","SendIcon","propTypes","func","isRequired","node","shape","number","horizontal","vertical"],"mappings":"4w4BAUA,IAEMA,EAAYC,GAAW,SAAAC,GAAK,MAAK,CACrCC,MAAO,CACLC,MAAO,IACPC,QAAS,IAEXC,UAAW,CACTC,aAAc,EACdC,SAAU,OACVC,MAAOP,EAAMQ,QAAQC,QAAQC,OAE/BC,YAAa,CACXC,QAAS,OACTC,aAAc,GAEhBC,WAAY,CACVC,OAAQ,WAEVC,iBAAkB,CAChBT,MAAOP,EAAMQ,QAAQC,QAAQQ,MAE/BC,QAAS,CAAEC,OAAQ,IACnBC,QAAS,CAAER,QAAS,QACpBS,SAAU,CACR,iBAAkB,CAChBN,OAAQ,0BAGb,IAED,SAASO,EAUNC,GAAA,IATDC,IAAAA,SAAQC,EAAAF,EACRG,aAAAA,aAAeC,EAAyCF,EAAAG,EAAAL,EACxDM,QAAAA,aAAUC,EAAoCF,EAC9CG,IAAAA,OAAMC,EAAAT,EACNU,eAAAA,aAAiB,KAAID,EAAAE,EAAAX,EACrBY,aAAAA,aAAe,KAAID,EAAAE,EAAAb,EACnBc,cAAAA,aAAgB,KAAID,EACpBE,IAAAA,cACGC,EAAUC,EAAAjB,EAAAkB,GAEPC,EAAU5C,IAChB6C,EAA8BC,IAAUC,EAAAC,EAAAH,EAAA,GAAjCI,EAAOF,EAAA,GAAEG,EAAUH,EAAA,GAE1B,OACEI,EAACC,EAAOC,EAAAA,EAAA,CACNC,MAAI,EACJ5B,SAAUA,EACVE,aAAcA,EACdG,QAASA,EACTa,QAAS,CAAEzC,MAAOyC,EAAQzC,QACtBsC,GAAU,GAAA,CAAAc,SAAA,CAEdC,EAACC,EAAO,CACNjB,cAAeA,EACfL,eAAgBA,EAChBE,aAAcA,EACdE,cAAeA,EACfW,WAAYA,EACZjB,OAAQ,WAAA,OAAMA,EAAOgB,EAAS,EAC9BS,aAAW,EACXT,QAASA,IAGXE,EAACQ,EAAI,CACHC,WAAS,EACTC,UAAU,MACVC,QAAQ,gBACRC,WAAW,SACXC,UAAWpB,EAAQxB,QAAQmC,SAAA,CAE3BC,EAACG,EAAI,CAACM,MAAI,EAAAV,SACRC,EAACU,EAAU,CACT,cAAA,GAAAC,OA1EM,oBA0E6B,WACnCC,QAAQ,UACRJ,UAAWK,EAAWzB,EAAQtC,UAAWsC,EAAQ5B,WAAY4B,EAAQ1B,kBACrEoD,UAAU,MACVC,cAAY,EACZC,QAASzC,EAAQwB,SAAA,aAKrBJ,EAACQ,EAAI,CAACM,MAAI,EAACJ,UAAU,MAAME,WAAW,SAASC,UAAWpB,EAAQtB,QAAQiC,SAAA,CACxEJ,EAACe,EAAU,CACTE,QAAQ,UACRJ,UAAWK,EAAWzB,EAAQtC,UAAWsC,EAAQ/B,aACjDyD,UAAU,MACVC,cAAY,EAAAhB,SAAA,CAAA,SAGZC,EAACU,EAAU,CACTE,QAAQ,UACR3D,MAAM,UACNuD,UAAWK,EAAWzB,EAAQtC,UAAWsC,EAAQ1B,kBAAkBqC,SAAA,UAGxD,cAGfC,EAACiB,EAAU,CACT,cAAA,GAAAN,OAtGM,oBAsG2B,SACjCK,QAAS,WAAA,OAAMvC,EAAOgB,EAAS,EAC/Be,UAAWpB,EAAQrB,SACnBmD,UAAWzB,IAAaA,EAAQ0B,OAAS1B,EAAQ2B,WAAYrB,SAE7DC,EAACqB,EAAQ,eAMrB,CAEArD,EAAkBsD,UAAY,CAC5B/C,QAASgD,EACT9C,OAAQ8C,EAAKC,WACbtD,SAAUuD,EAAKD,WACfpD,aAAcsD,EACd/C,eAAgB8C,EAChB5C,aAAc4C,EACd1C,cAAe0C,EACfzC,cAAe2C,EAAOH,YAGxB,IAAMnD,EAA4C,CAAEuD,WAAY,QAASC,SAAU,UAC7ErD,EAAuC,WAAe"}
1
+ {"version":3,"file":"Popover.js","sources":["../../../src/components/AddComment/Popover.js"],"sourcesContent":["import { useState } from 'react';\nimport { node, shape, func, number } from 'prop-types';\nimport { Popover, Grid, Typography, makeStyles } from '@material-ui/core';\nimport classNames from 'classnames';\n\nimport Content from './components/Content';\n\nimport { IconButton } from '~/components';\nimport SendIcon from '~components/Icons/SendIcon';\n\nconst PAGE_NAME = 'AddCommentPopover';\n\nconst useStyles = makeStyles(theme => ({\n paper: {\n width: 368,\n padding: 16,\n },\n inputMain: {\n marginBottom: 0,\n fontSize: '11px',\n color: theme.palette.primary.text8,\n },\n inputHelper: {\n display: 'flex',\n paddingRight: 5,\n },\n cancelText: {\n cursor: 'pointer',\n },\n highlightedLabel: {\n color: theme.palette.primary.main,\n },\n actions: { height: 36 },\n sendRow: { display: 'flex' },\n sendIcon: {\n '&.Mui-disabled': {\n cursor: 'not-allowed!important',\n },\n },\n}));\n\nfunction AddCommentPopover({\n anchorEl,\n anchorOrigin = DEFAULT_ADD_COMMENT_POPOVER_ANCHOR_ORIGIN,\n onClose = DEFAULT_ADD_COMMENT_POPOVER_ON_CLOSE,\n onSave,\n startAdornment = null, // Render node on the top of the content\n endAdornment = null, // Render node on the bottom of the content\n customContent = null, // Render custom content instead of Post Input\n userCompanyId,\n ...otherProps\n}) {\n const classes = useStyles();\n const [comment, setComment] = useState();\n\n return (\n <Popover\n open\n anchorEl={anchorEl}\n anchorOrigin={anchorOrigin}\n onClose={onClose}\n classes={{ paper: classes.paper }}\n {...otherProps}\n >\n <Content\n userCompanyId={userCompanyId}\n startAdornment={startAdornment}\n endAdornment={endAdornment}\n customContent={customContent}\n setComment={setComment}\n onSave={() => onSave(comment)}\n smallerView\n comment={comment}\n />\n\n <Grid\n container\n direction=\"row\"\n justify=\"space-between\"\n alignItems=\"center\"\n className={classes.actions}\n >\n <Grid item>\n <Typography\n data-testid={`${PAGE_NAME}_cancel`}\n variant=\"caption\"\n className={classNames(classes.inputMain, classes.cancelText, classes.highlightedLabel)}\n component=\"div\"\n gutterBottom\n onClick={onClose}\n >\n Cancel\n </Typography>\n </Grid>\n <Grid item direction=\"row\" alignItems=\"center\" className={classes.sendRow}>\n <Typography\n variant=\"caption\"\n className={classNames(classes.inputMain, classes.inputHelper)}\n component=\"div\"\n gutterBottom\n >\n Press&nbsp;\n <Typography\n variant=\"caption\"\n color=\"primary\"\n className={classNames(classes.inputMain, classes.highlightedLabel)}\n >\n Enter\n </Typography>\n &nbsp;to send\n </Typography>\n <IconButton\n data-testid={`${PAGE_NAME}_send`}\n onClick={() => onSave(comment)}\n className={classes.sendIcon}\n disabled={!comment || (!comment.body && !comment.attachment)}\n >\n <SendIcon />\n </IconButton>\n </Grid>\n </Grid>\n </Popover>\n );\n}\n\nAddCommentPopover.propTypes = {\n onClose: func,\n onSave: func.isRequired,\n anchorEl: node.isRequired,\n anchorOrigin: shape,\n startAdornment: node,\n endAdornment: node,\n customContent: node,\n userCompanyId: number.isRequired,\n};\n\nconst DEFAULT_ADD_COMMENT_POPOVER_ANCHOR_ORIGIN = { horizontal: 'right', vertical: 'bottom' };\nconst DEFAULT_ADD_COMMENT_POPOVER_ON_CLOSE = () => undefined;\n\nexport default AddCommentPopover;\n"],"names":["useStyles","makeStyles","theme","paper","width","padding","inputMain","marginBottom","fontSize","color","palette","primary","text8","inputHelper","display","paddingRight","cancelText","cursor","highlightedLabel","main","actions","height","sendRow","sendIcon","AddCommentPopover","_ref","anchorEl","_ref$anchorOrigin","anchorOrigin","DEFAULT_ADD_COMMENT_POPOVER_ANCHOR_ORIGIN","_ref$onClose","onClose","DEFAULT_ADD_COMMENT_POPOVER_ON_CLOSE","onSave","_ref$startAdornment","startAdornment","_ref$endAdornment","endAdornment","_ref$customContent","customContent","userCompanyId","otherProps","_objectWithoutProperties","_excluded","classes","_useState","useState","_useState2","_slicedToArray","comment","setComment","_jsxs","Popover","_objectSpread","open","children","_jsx","Content","smallerView","Grid","container","direction","justify","alignItems","className","item","Typography","concat","variant","classNames","component","gutterBottom","onClick","IconButton","disabled","body","attachment","SendIcon","propTypes","func","isRequired","node","shape","number","horizontal","vertical"],"mappings":"i64BAUA,IAEMA,EAAYC,GAAW,SAAAC,GAAK,MAAK,CACrCC,MAAO,CACLC,MAAO,IACPC,QAAS,IAEXC,UAAW,CACTC,aAAc,EACdC,SAAU,OACVC,MAAOP,EAAMQ,QAAQC,QAAQC,OAE/BC,YAAa,CACXC,QAAS,OACTC,aAAc,GAEhBC,WAAY,CACVC,OAAQ,WAEVC,iBAAkB,CAChBT,MAAOP,EAAMQ,QAAQC,QAAQQ,MAE/BC,QAAS,CAAEC,OAAQ,IACnBC,QAAS,CAAER,QAAS,QACpBS,SAAU,CACR,iBAAkB,CAChBN,OAAQ,0BAGb,IAED,SAASO,EAUNC,GAAA,IATDC,IAAAA,SAAQC,EAAAF,EACRG,aAAAA,aAAeC,EAAyCF,EAAAG,EAAAL,EACxDM,QAAAA,aAAUC,EAAoCF,EAC9CG,IAAAA,OAAMC,EAAAT,EACNU,eAAAA,aAAiB,KAAID,EAAAE,EAAAX,EACrBY,aAAAA,aAAe,KAAID,EAAAE,EAAAb,EACnBc,cAAAA,aAAgB,KAAID,EACpBE,IAAAA,cACGC,EAAUC,EAAAjB,EAAAkB,GAEPC,EAAU5C,IAChB6C,EAA8BC,IAAUC,EAAAC,EAAAH,EAAA,GAAjCI,EAAOF,EAAA,GAAEG,EAAUH,EAAA,GAE1B,OACEI,EAACC,EAAOC,EAAAA,EAAA,CACNC,MAAI,EACJ5B,SAAUA,EACVE,aAAcA,EACdG,QAASA,EACTa,QAAS,CAAEzC,MAAOyC,EAAQzC,QACtBsC,GAAU,GAAA,CAAAc,SAAA,CAEdC,EAACC,EAAO,CACNjB,cAAeA,EACfL,eAAgBA,EAChBE,aAAcA,EACdE,cAAeA,EACfW,WAAYA,EACZjB,OAAQ,WAAA,OAAMA,EAAOgB,EAAS,EAC9BS,aAAW,EACXT,QAASA,IAGXE,EAACQ,EAAI,CACHC,WAAS,EACTC,UAAU,MACVC,QAAQ,gBACRC,WAAW,SACXC,UAAWpB,EAAQxB,QAAQmC,SAAA,CAE3BC,EAACG,EAAI,CAACM,MAAI,EAAAV,SACRC,EAACU,EAAU,CACT,cAAA,GAAAC,OA1EM,oBA0E6B,WACnCC,QAAQ,UACRJ,UAAWK,EAAWzB,EAAQtC,UAAWsC,EAAQ5B,WAAY4B,EAAQ1B,kBACrEoD,UAAU,MACVC,cAAY,EACZC,QAASzC,EAAQwB,SAAA,aAKrBJ,EAACQ,EAAI,CAACM,MAAI,EAACJ,UAAU,MAAME,WAAW,SAASC,UAAWpB,EAAQtB,QAAQiC,SAAA,CACxEJ,EAACe,EAAU,CACTE,QAAQ,UACRJ,UAAWK,EAAWzB,EAAQtC,UAAWsC,EAAQ/B,aACjDyD,UAAU,MACVC,cAAY,EAAAhB,SAAA,CAAA,SAGZC,EAACU,EAAU,CACTE,QAAQ,UACR3D,MAAM,UACNuD,UAAWK,EAAWzB,EAAQtC,UAAWsC,EAAQ1B,kBAAkBqC,SAAA,UAGxD,cAGfC,EAACiB,EAAU,CACT,cAAA,GAAAN,OAtGM,oBAsG2B,SACjCK,QAAS,WAAA,OAAMvC,EAAOgB,EAAS,EAC/Be,UAAWpB,EAAQrB,SACnBmD,UAAWzB,IAAaA,EAAQ0B,OAAS1B,EAAQ2B,WAAYrB,SAE7DC,EAACqB,EAAQ,eAMrB,CAEArD,EAAkBsD,UAAY,CAC5B/C,QAASgD,EACT9C,OAAQ8C,EAAKC,WACbtD,SAAUuD,EAAKD,WACfpD,aAAcsD,EACd/C,eAAgB8C,EAChB5C,aAAc4C,EACd1C,cAAe0C,EACfzC,cAAe2C,EAAOH,YAGxB,IAAMnD,EAA4C,CAAEuD,WAAY,QAASC,SAAU,UAC7ErD,EAAuC,WAAe"}