@corva/ui 3.75.0-17 → 3.75.0-19

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 (1045) hide show
  1. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  2. package/cjs-bundle/components/AddComment/Popover.js.map +1 -1
  3. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  4. package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
  5. package/cjs-bundle/components/AdvancedSlider/Handle.js +1 -1
  6. package/cjs-bundle/components/AdvancedSlider/Handle.js.map +1 -1
  7. package/cjs-bundle/components/AttachFileButton/AttachFileButton.js +1 -1
  8. package/cjs-bundle/components/AttachFileButton/AttachFileButton.js.map +1 -1
  9. package/cjs-bundle/components/Attachment/index.js +1 -1
  10. package/cjs-bundle/components/Attachment/index.js.map +1 -1
  11. package/cjs-bundle/components/AttachmentLightbox/AttachmentLightbox.js +1 -1
  12. package/cjs-bundle/components/AttachmentLightbox/AttachmentLightbox.js.map +1 -1
  13. package/cjs-bundle/components/AttachmentLightbox/AttachmentPreviewPane.js +1 -1
  14. package/cjs-bundle/components/AttachmentLightbox/AttachmentPreviewPane.js.map +1 -1
  15. package/cjs-bundle/components/AttachmentPreview/AttachmentActionsMenu.js +1 -1
  16. package/cjs-bundle/components/AttachmentPreview/AttachmentActionsMenu.js.map +1 -1
  17. package/cjs-bundle/components/AttachmentPreview/AttachmentDownloadLink.js +1 -1
  18. package/cjs-bundle/components/AttachmentPreview/AttachmentDownloadLink.js.map +1 -1
  19. package/cjs-bundle/components/AttachmentPreview/AttachmentTile.js +1 -1
  20. package/cjs-bundle/components/AttachmentPreview/AttachmentTile.js.map +1 -1
  21. package/cjs-bundle/components/AttachmentPreview/SortableAttachments.js +1 -1
  22. package/cjs-bundle/components/AttachmentPreview/SortableAttachments.js.map +1 -1
  23. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  24. package/cjs-bundle/components/BICOffsetPickerDialog/index.js.map +1 -1
  25. package/cjs-bundle/components/Breadcrumbs/index.js +1 -1
  26. package/cjs-bundle/components/Breadcrumbs/index.js.map +1 -1
  27. package/cjs-bundle/components/Button/components/LiveButton/index.js +1 -1
  28. package/cjs-bundle/components/Button/components/LiveButton/index.js.map +1 -1
  29. package/cjs-bundle/components/Button/index.js +1 -1
  30. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  31. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  32. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  33. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  34. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  35. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  36. package/cjs-bundle/components/Chart/components/AxisDropdown.js +1 -1
  37. package/cjs-bundle/components/Chart/components/AxisDropdown.js.map +1 -1
  38. package/cjs-bundle/components/Chart/components/ChartSelect.js +1 -1
  39. package/cjs-bundle/components/Chart/components/ChartSelect.js.map +1 -1
  40. package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  41. package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js.map +1 -1
  42. package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  43. package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js.map +1 -1
  44. package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js +1 -1
  45. package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js.map +1 -1
  46. package/cjs-bundle/components/Chart/components/buttons/PanButton.js +1 -1
  47. package/cjs-bundle/components/Chart/components/buttons/PanButton.js.map +1 -1
  48. package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  49. package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js.map +1 -1
  50. package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js +1 -1
  51. package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js.map +1 -1
  52. package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  53. package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js.map +1 -1
  54. package/cjs-bundle/components/Chip/index.js +1 -1
  55. package/cjs-bundle/components/Chip/index.js.map +1 -1
  56. package/cjs-bundle/components/CollapsableSidebar.js +1 -1
  57. package/cjs-bundle/components/CollapsableSidebar.js.map +1 -1
  58. package/cjs-bundle/components/ColorPicker/ColorPicker.js +1 -1
  59. package/cjs-bundle/components/ColorPicker/ColorPicker.js.map +1 -1
  60. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  61. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js.map +1 -1
  62. package/cjs-bundle/components/CommentCard/CommentCard.js +1 -1
  63. package/cjs-bundle/components/CommentCard/CommentCard.js.map +1 -1
  64. package/cjs-bundle/components/CommentCard/CommentCardReactions.js +1 -1
  65. package/cjs-bundle/components/CommentCard/CommentCardReactions.js.map +1 -1
  66. package/cjs-bundle/components/CommentCard/CommentCardReplies.js +1 -1
  67. package/cjs-bundle/components/CommentCard/CommentCardReplies.js.map +1 -1
  68. package/cjs-bundle/components/CommentCard/buildCommentReply.js +1 -1
  69. package/cjs-bundle/components/CommentCard/buildCommentReply.js.map +1 -1
  70. package/cjs-bundle/components/CommentComposer/ChatChannelSelector.js +1 -1
  71. package/cjs-bundle/components/CommentComposer/ChatChannelSelector.js.map +1 -1
  72. package/cjs-bundle/components/CommentComposer/CommentComposer.js +1 -1
  73. package/cjs-bundle/components/CommentComposer/CommentComposer.js.map +1 -1
  74. package/cjs-bundle/components/CommentInputNext/CommentInputNext.js +1 -1
  75. package/cjs-bundle/components/CommentInputNext/CommentInputNext.js.map +1 -1
  76. package/cjs-bundle/components/ConfirmationDialog.js +1 -1
  77. package/cjs-bundle/components/ConfirmationDialog.js.map +1 -1
  78. package/cjs-bundle/components/CopyToClipboard/CopyToClipboard.js +1 -1
  79. package/cjs-bundle/components/CopyToClipboard/CopyToClipboard.js.map +1 -1
  80. package/cjs-bundle/components/Counter/index.js +1 -1
  81. package/cjs-bundle/components/Counter/index.js.map +1 -1
  82. package/cjs-bundle/components/DatePicker/index.js +1 -1
  83. package/cjs-bundle/components/DatePicker/index.js.map +1 -1
  84. package/cjs-bundle/components/DateTimePicker/index.js +1 -1
  85. package/cjs-bundle/components/DateTimePicker/index.js.map +1 -1
  86. package/cjs-bundle/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
  87. package/cjs-bundle/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js.map +1 -1
  88. package/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  89. package/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js.map +1 -1
  90. package/cjs-bundle/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  91. package/cjs-bundle/components/DevCenter/AppSideBar/AppSideBar.js.map +1 -1
  92. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  93. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  94. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  95. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  96. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
  97. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js.map +1 -1
  98. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
  99. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js.map +1 -1
  100. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js +1 -1
  101. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js.map +1 -1
  102. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js +1 -1
  103. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js.map +1 -1
  104. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js +1 -1
  105. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js.map +1 -1
  106. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js +1 -1
  107. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js.map +1 -1
  108. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  109. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
  110. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  111. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
  112. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  113. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  114. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  115. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  116. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  117. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  118. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  119. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  120. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  121. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  122. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  123. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  124. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  125. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  126. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  127. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  128. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  129. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  130. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  131. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  132. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  133. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  134. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  135. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  136. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  137. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  138. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  139. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  140. package/cjs-bundle/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  141. package/cjs-bundle/components/EChartsWrapper/components/Toolbox/Toolbox.js.map +1 -1
  142. package/cjs-bundle/components/EmojiIconButton.js +1 -1
  143. package/cjs-bundle/components/EmojiIconButton.js.map +1 -1
  144. package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
  145. package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js.map +1 -1
  146. package/cjs-bundle/components/ErrorBoundary/ErrorBoundary.js +1 -1
  147. package/cjs-bundle/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  148. package/cjs-bundle/components/FeedCard/useFeedActivity.js +1 -1
  149. package/cjs-bundle/components/FeedCard/useFeedActivity.js.map +1 -1
  150. package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
  151. package/cjs-bundle/components/FeedItem/FeedItem.js.map +1 -1
  152. package/cjs-bundle/components/FilesDropzone/FilesDropzone.js +1 -1
  153. package/cjs-bundle/components/FilesDropzone/FilesDropzone.js.map +1 -1
  154. package/cjs-bundle/components/FilesLoader/FilesLoader.js +1 -1
  155. package/cjs-bundle/components/FilesLoader/FilesLoader.js.map +1 -1
  156. package/cjs-bundle/components/FilesLoaderV2/FilesLoaderV2.js +1 -1
  157. package/cjs-bundle/components/FilesLoaderV2/FilesLoaderV2.js.map +1 -1
  158. package/cjs-bundle/components/Formula/CloseSuggestion.js +1 -1
  159. package/cjs-bundle/components/Formula/CloseSuggestion.js.map +1 -1
  160. package/cjs-bundle/components/Formula/Formula.js +1 -1
  161. package/cjs-bundle/components/Formula/Formula.js.map +1 -1
  162. package/cjs-bundle/components/GradientManager/GradientManager.js +1 -1
  163. package/cjs-bundle/components/GradientManager/GradientManager.js.map +1 -1
  164. package/cjs-bundle/components/GradientManager/GradientSelect.js +1 -1
  165. package/cjs-bundle/components/GradientManager/GradientSelect.js.map +1 -1
  166. package/cjs-bundle/components/GradientPicker/GradientPicker.js +1 -1
  167. package/cjs-bundle/components/GradientPicker/GradientPicker.js.map +1 -1
  168. package/cjs-bundle/components/HelpCenter/HelpCenterIcon.js +1 -1
  169. package/cjs-bundle/components/HelpCenter/HelpCenterIcon.js.map +1 -1
  170. package/cjs-bundle/components/Hint/Hint.js +1 -1
  171. package/cjs-bundle/components/Hint/Hint.js.map +1 -1
  172. package/cjs-bundle/components/Modal/CorvaModal.js +1 -1
  173. package/cjs-bundle/components/Modal/CorvaModal.js.map +1 -1
  174. package/cjs-bundle/components/Notifications/Toast.js +1 -1
  175. package/cjs-bundle/components/Notifications/Toast.js.map +1 -1
  176. package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  177. package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js.map +1 -1
  178. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  179. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  180. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  181. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  182. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  183. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  184. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  185. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  186. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  187. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  188. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  189. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  190. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  191. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  192. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  193. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  194. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  195. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  196. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
  197. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js.map +1 -1
  198. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js +1 -1
  199. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js.map +1 -1
  200. package/cjs-bundle/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js +1 -1
  201. package/cjs-bundle/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js.map +1 -1
  202. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  203. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  204. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  205. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  206. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
  207. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js.map +1 -1
  208. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
  209. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js.map +1 -1
  210. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +1 -1
  211. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js.map +1 -1
  212. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
  213. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js.map +1 -1
  214. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  215. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js.map +1 -1
  216. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js +1 -1
  217. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js.map +1 -1
  218. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js +1 -1
  219. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js.map +1 -1
  220. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js +1 -1
  221. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js.map +1 -1
  222. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js +1 -1
  223. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js.map +1 -1
  224. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  225. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  226. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js +1 -1
  227. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js.map +1 -1
  228. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js +1 -1
  229. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js.map +1 -1
  230. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  231. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
  232. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
  233. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js.map +1 -1
  234. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  235. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js.map +1 -1
  236. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js +1 -1
  237. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js.map +1 -1
  238. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js +1 -1
  239. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js.map +1 -1
  240. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js +1 -1
  241. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js.map +1 -1
  242. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js +1 -1
  243. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js.map +1 -1
  244. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js +1 -1
  245. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js.map +1 -1
  246. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js +1 -1
  247. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js.map +1 -1
  248. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js +1 -1
  249. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js.map +1 -1
  250. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js +1 -1
  251. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js.map +1 -1
  252. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/SettingsAccordion/SettingsAccordion.js +1 -1
  253. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/SettingsAccordion/SettingsAccordion.js.map +1 -1
  254. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js +1 -1
  255. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js.map +1 -1
  256. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js +1 -1
  257. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js.map +1 -1
  258. package/cjs-bundle/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
  259. package/cjs-bundle/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js.map +1 -1
  260. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
  261. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js.map +1 -1
  262. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useIsAdmin.js +1 -1
  263. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useIsAdmin.js.map +1 -1
  264. package/cjs-bundle/components/PadModeSelect/FracModeLabel.js +1 -1
  265. package/cjs-bundle/components/PadModeSelect/FracModeLabel.js.map +1 -1
  266. package/cjs-bundle/components/PadModeSelect/PadModeSelect.js +1 -1
  267. package/cjs-bundle/components/PadModeSelect/PadModeSelect.js.map +1 -1
  268. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  269. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  270. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  271. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  272. package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js +1 -1
  273. package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js.map +1 -1
  274. package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js +1 -1
  275. package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js.map +1 -1
  276. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  277. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js.map +1 -1
  278. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  279. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js.map +1 -1
  280. package/cjs-bundle/components/Search/Search.js +1 -1
  281. package/cjs-bundle/components/Search/Search.js.map +1 -1
  282. package/cjs-bundle/components/Select/SelectFilterBy.js +1 -1
  283. package/cjs-bundle/components/Select/SelectFilterBy.js.map +1 -1
  284. package/cjs-bundle/components/SettingEditors/ColorEditor/index.js +1 -1
  285. package/cjs-bundle/components/SettingEditors/ColorEditor/index.js.map +1 -1
  286. package/cjs-bundle/components/Stepper/Step/Step.js +1 -1
  287. package/cjs-bundle/components/Stepper/Step/Step.js.map +1 -1
  288. package/cjs-bundle/components/Table/TableCell/TableCell.js +1 -1
  289. package/cjs-bundle/components/Table/TableCell/TableCell.js.map +1 -1
  290. package/cjs-bundle/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
  291. package/cjs-bundle/components/Table/TablePaginationActions/TablePaginationActions.js.map +1 -1
  292. package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  293. package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js.map +1 -1
  294. package/cjs-bundle/components/Toaster/Toaster.js +1 -1
  295. package/cjs-bundle/components/Toaster/Toaster.js.map +1 -1
  296. package/cjs-bundle/components/index.js +1 -1
  297. package/cjs-bundle/componentsV2/Accordion/Accordion.js +1 -1
  298. package/cjs-bundle/componentsV2/Accordion/Accordion.js.map +1 -1
  299. package/cjs-bundle/componentsV2/AppContainer/AppContainer.constants.scss.js +2 -0
  300. package/cjs-bundle/componentsV2/AppContainer/AppContainer.constants.scss.js.map +1 -0
  301. package/cjs-bundle/componentsV2/AppContainer/AppContainer.js +1 -1
  302. package/cjs-bundle/componentsV2/AppContainer/AppContainer.js.map +1 -1
  303. package/cjs-bundle/componentsV2/AppContainer/AppContainer.scss.js +1 -1
  304. package/cjs-bundle/componentsV2/AppContainer/Content.js +1 -1
  305. package/cjs-bundle/componentsV2/AppContainer/Content.js.map +1 -1
  306. package/cjs-bundle/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
  307. package/cjs-bundle/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js.map +1 -1
  308. package/cjs-bundle/componentsV2/AppDqPopover/DqAsset/DqAsset.js +1 -1
  309. package/cjs-bundle/componentsV2/AppDqPopover/DqAsset/DqAsset.js.map +1 -1
  310. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqPopover.js +1 -1
  311. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqPopover.js.map +1 -1
  312. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js +1 -1
  313. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js.map +1 -1
  314. package/cjs-bundle/componentsV2/AppFooter/Warning.js +1 -1
  315. package/cjs-bundle/componentsV2/AppFooter/Warning.js.map +1 -1
  316. package/cjs-bundle/componentsV2/AppHeader/AppAssets/utils.js +1 -1
  317. package/cjs-bundle/componentsV2/AppHeader/AppAssets/utils.js.map +1 -1
  318. package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  319. package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.js.map +1 -1
  320. package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.scss.js +1 -1
  321. package/cjs-bundle/componentsV2/AppHeader/V3/AppHeaderV3.js +1 -1
  322. package/cjs-bundle/componentsV2/AppHeader/V3/AppHeaderV3.js.map +1 -1
  323. package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  324. package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.js.map +1 -1
  325. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js +1 -1
  326. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js.map +1 -1
  327. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js +1 -1
  328. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js.map +1 -1
  329. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js +1 -1
  330. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js.map +1 -1
  331. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/constants.js +1 -1
  332. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/constants.js.map +1 -1
  333. package/cjs-bundle/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js +1 -1
  334. package/cjs-bundle/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js.map +1 -1
  335. package/cjs-bundle/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js +1 -1
  336. package/cjs-bundle/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js.map +1 -1
  337. package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
  338. package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js.map +1 -1
  339. package/cjs-bundle/componentsV2/AppPanel/AppPanel.js +2 -0
  340. package/cjs-bundle/componentsV2/AppPanel/AppPanel.js.map +1 -0
  341. package/cjs-bundle/componentsV2/AppPanel/AppPanelDisplay.js +2 -0
  342. package/cjs-bundle/componentsV2/AppPanel/AppPanelDisplay.js.map +1 -0
  343. package/cjs-bundle/componentsV2/AppPanel/AppPanelDisplay.scss.js +2 -0
  344. package/cjs-bundle/componentsV2/AppPanel/AppPanelDisplay.scss.js.map +1 -0
  345. package/cjs-bundle/componentsV2/AppPanel/AppPanelIdContext.js +2 -0
  346. package/cjs-bundle/componentsV2/AppPanel/AppPanelIdContext.js.map +1 -0
  347. package/cjs-bundle/componentsV2/AppPanel/AppPanelsContext.js +2 -0
  348. package/cjs-bundle/componentsV2/AppPanel/AppPanelsContext.js.map +1 -0
  349. package/cjs-bundle/componentsV2/AppPanel/Header/Header.js +2 -0
  350. package/cjs-bundle/componentsV2/AppPanel/Header/Header.js.map +1 -0
  351. package/cjs-bundle/componentsV2/AppPanel/utils.js +2 -0
  352. package/cjs-bundle/componentsV2/AppPanel/utils.js.map +1 -0
  353. package/cjs-bundle/componentsV2/AppSettings/AppSettings.js +1 -1
  354. package/cjs-bundle/componentsV2/AppSettings/AppSettings.js.map +1 -1
  355. package/cjs-bundle/componentsV2/AppSettings/AppSettings.scss.js +1 -1
  356. package/cjs-bundle/componentsV2/AppSettingsDivider/AppSettingsDivider.js +1 -1
  357. package/cjs-bundle/componentsV2/AppSettingsDivider/AppSettingsDivider.js.map +1 -1
  358. package/cjs-bundle/componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js +1 -1
  359. package/cjs-bundle/componentsV2/Autocomplete/Autocomplete.js +1 -1
  360. package/cjs-bundle/componentsV2/Autocomplete/Autocomplete.js.map +1 -1
  361. package/cjs-bundle/componentsV2/Breadcrumbs/Breadcrumbs.js +1 -1
  362. package/cjs-bundle/componentsV2/Breadcrumbs/Breadcrumbs.js.map +1 -1
  363. package/cjs-bundle/componentsV2/ButtonLive/ButtonLive.js +1 -1
  364. package/cjs-bundle/componentsV2/ButtonLive/ButtonLive.js.map +1 -1
  365. package/cjs-bundle/componentsV2/ChartAxisExtreme/ChartAxisExtreme.js +1 -1
  366. package/cjs-bundle/componentsV2/ChartAxisExtreme/ChartAxisExtreme.js.map +1 -1
  367. package/cjs-bundle/componentsV2/Chip/Chip.js +1 -1
  368. package/cjs-bundle/componentsV2/Chip/Chip.js.map +1 -1
  369. package/cjs-bundle/componentsV2/ColorPicker/ColorPicker.js +1 -1
  370. package/cjs-bundle/componentsV2/ColorPicker/ColorPicker.js.map +1 -1
  371. package/cjs-bundle/componentsV2/ColorPicker/Swatches/Swatches.js +1 -1
  372. package/cjs-bundle/componentsV2/ColorPicker/Swatches/Swatches.js.map +1 -1
  373. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
  374. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js.map +1 -1
  375. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
  376. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js.map +1 -1
  377. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  378. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
  379. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
  380. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js.map +1 -1
  381. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
  382. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js.map +1 -1
  383. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
  384. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js.map +1 -1
  385. package/cjs-bundle/componentsV2/CopyToClipboard/CopyToClipboard.js +1 -1
  386. package/cjs-bundle/componentsV2/CopyToClipboard/CopyToClipboard.js.map +1 -1
  387. package/cjs-bundle/componentsV2/Counter/Counter.js +1 -1
  388. package/cjs-bundle/componentsV2/Counter/Counter.js.map +1 -1
  389. package/cjs-bundle/componentsV2/DatePicker/CalendarControls/CalendarControls.js +1 -1
  390. package/cjs-bundle/componentsV2/DatePicker/CalendarControls/CalendarControls.js.map +1 -1
  391. package/cjs-bundle/componentsV2/DatePicker/Input/Input.js +1 -1
  392. package/cjs-bundle/componentsV2/DatePicker/Input/Input.js.map +1 -1
  393. package/cjs-bundle/componentsV2/DatePicker/TimePicker/TimePicker.js +1 -1
  394. package/cjs-bundle/componentsV2/DatePicker/TimePicker/TimePicker.js.map +1 -1
  395. package/cjs-bundle/componentsV2/DragHandle/DragHandle.js +1 -1
  396. package/cjs-bundle/componentsV2/DragHandle/DragHandle.js.map +1 -1
  397. package/cjs-bundle/componentsV2/FilesDropzone/FilesDropzone.js +1 -1
  398. package/cjs-bundle/componentsV2/FilesDropzone/FilesDropzone.js.map +1 -1
  399. package/cjs-bundle/componentsV2/FilesLoader/FilesLoader.js +1 -1
  400. package/cjs-bundle/componentsV2/FilesLoader/FilesLoader.js.map +1 -1
  401. package/cjs-bundle/componentsV2/Hint/Hint.js +1 -1
  402. package/cjs-bundle/componentsV2/Hint/Hint.js.map +1 -1
  403. package/cjs-bundle/componentsV2/ImageViewer/ImageViewer.js +1 -1
  404. package/cjs-bundle/componentsV2/ImageViewer/ImageViewer.js.map +1 -1
  405. package/cjs-bundle/componentsV2/InterventionEventSelector/InterventionEventSelector.js +1 -1
  406. package/cjs-bundle/componentsV2/InterventionEventSelector/InterventionEventSelector.js.map +1 -1
  407. package/cjs-bundle/componentsV2/ModalWindow/ModalWindow.js +1 -1
  408. package/cjs-bundle/componentsV2/ModalWindow/ModalWindow.js.map +1 -1
  409. package/cjs-bundle/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
  410. package/cjs-bundle/componentsV2/OffsetWellsButton/OffsetWellsButton.js.map +1 -1
  411. package/cjs-bundle/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js +1 -1
  412. package/cjs-bundle/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js.map +1 -1
  413. package/cjs-bundle/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js +1 -1
  414. package/cjs-bundle/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js.map +1 -1
  415. package/cjs-bundle/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
  416. package/cjs-bundle/componentsV2/PadModeSelect/PadModeSelect.js.map +1 -1
  417. package/cjs-bundle/componentsV2/Paper/Paper.js.map +1 -1
  418. package/cjs-bundle/componentsV2/Popover/Popover.js +1 -1
  419. package/cjs-bundle/componentsV2/Popover/Popover.js.map +1 -1
  420. package/cjs-bundle/componentsV2/PopoverPanel/PopoverPanel.scss.js +1 -1
  421. package/cjs-bundle/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.js +1 -1
  422. package/cjs-bundle/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.js.map +1 -1
  423. package/cjs-bundle/componentsV2/SliderAdvanced/Bar.js +1 -1
  424. package/cjs-bundle/componentsV2/SliderAdvanced/Bar.js.map +1 -1
  425. package/cjs-bundle/componentsV2/SliderAdvanced/HandleWrapper.js +1 -1
  426. package/cjs-bundle/componentsV2/SliderAdvanced/HandleWrapper.js.map +1 -1
  427. package/cjs-bundle/componentsV2/Stepper/Step/Step.js +1 -1
  428. package/cjs-bundle/componentsV2/Stepper/Step/Step.js.map +1 -1
  429. package/cjs-bundle/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js +1 -1
  430. package/cjs-bundle/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js.map +1 -1
  431. package/cjs-bundle/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js +1 -1
  432. package/cjs-bundle/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js.map +1 -1
  433. package/cjs-bundle/componentsV2/TemplatesControl/Popover/Popover.js +1 -1
  434. package/cjs-bundle/componentsV2/TemplatesControl/Popover/Popover.js.map +1 -1
  435. package/cjs-bundle/componentsV2/TemplatesControl/PopoverFooter/PopoverFooter.js +1 -1
  436. package/cjs-bundle/componentsV2/TemplatesControl/PopoverFooter/PopoverFooter.js.map +1 -1
  437. package/cjs-bundle/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js +1 -1
  438. package/cjs-bundle/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js.map +1 -1
  439. package/cjs-bundle/componentsV2/TemplatesControl/PublishModal/PublishModal.js +1 -1
  440. package/cjs-bundle/componentsV2/TemplatesControl/PublishModal/PublishModal.js.map +1 -1
  441. package/cjs-bundle/componentsV2/TemplatesControl/ShareModal/ShareModal.js +1 -1
  442. package/cjs-bundle/componentsV2/TemplatesControl/ShareModal/ShareModal.js.map +1 -1
  443. package/cjs-bundle/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js +1 -1
  444. package/cjs-bundle/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js.map +1 -1
  445. package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js +1 -1
  446. package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js.map +1 -1
  447. package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js +1 -1
  448. package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js.map +1 -1
  449. package/cjs-bundle/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
  450. package/cjs-bundle/componentsV2/TemplatesControl/Toggle/Toggle.js.map +1 -1
  451. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js +1 -1
  452. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js.map +1 -1
  453. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js +1 -1
  454. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js.map +1 -1
  455. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js +1 -1
  456. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js.map +1 -1
  457. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js +1 -1
  458. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js.map +1 -1
  459. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js +1 -1
  460. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js.map +1 -1
  461. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js +1 -1
  462. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js.map +1 -1
  463. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js +1 -1
  464. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js.map +1 -1
  465. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js +1 -1
  466. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js.map +1 -1
  467. package/cjs-bundle/componentsV2/TextInput/TextInput.js +1 -1
  468. package/cjs-bundle/componentsV2/TextInput/TextInput.js.map +1 -1
  469. package/cjs-bundle/componentsV2/TextInputBase/TextInputBase.js +1 -1
  470. package/cjs-bundle/componentsV2/TextInputBase/TextInputBase.js.map +1 -1
  471. package/cjs-bundle/componentsV2/TextInputBase/components/InfoIcon.js +1 -1
  472. package/cjs-bundle/componentsV2/TextInputBase/components/InfoIcon.js.map +1 -1
  473. package/cjs-bundle/componentsV2/TextInputNext/TextInputNext.js +1 -1
  474. package/cjs-bundle/componentsV2/TextInputNext/TextInputNext.js.map +1 -1
  475. package/cjs-bundle/componentsV2/index.js +1 -1
  476. package/cjs-bundle/config/theme/index.js +1 -1
  477. package/cjs-bundle/config/theme/index.js.map +1 -1
  478. package/cjs-bundle/effects/index.js +1 -1
  479. package/cjs-bundle/effects/useGlobalOffsetWellsSync.js +1 -1
  480. package/cjs-bundle/effects/useGlobalOffsetWellsSync.js.map +1 -1
  481. package/cjs-bundle/icons/customIcons/icons/PinOne.js +2 -0
  482. package/cjs-bundle/icons/customIcons/icons/PinOne.js.map +1 -0
  483. package/cjs-bundle/icons/customIcons/icons/PinOneCrossed.js +2 -0
  484. package/cjs-bundle/icons/customIcons/icons/PinOneCrossed.js.map +1 -0
  485. package/cjs-bundle/icons/index.js +1 -1
  486. package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  487. package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js.map +1 -1
  488. package/cjs-bundle/utils/feed.js +1 -1
  489. package/cjs-bundle/utils/feed.js.map +1 -1
  490. package/components/AddComment/Popover.js +1 -1
  491. package/components/AddComment/Popover.js.map +1 -1
  492. package/components/AddComment/components/Content.js +1 -1
  493. package/components/AddComment/components/Content.js.map +1 -1
  494. package/components/AdvancedSlider/Handle.js +1 -1
  495. package/components/AdvancedSlider/Handle.js.map +1 -1
  496. package/components/AttachFileButton/AttachFileButton.js +1 -1
  497. package/components/AttachFileButton/AttachFileButton.js.map +1 -1
  498. package/components/Attachment/index.js +1 -1
  499. package/components/Attachment/index.js.map +1 -1
  500. package/components/AttachmentLightbox/AttachmentLightbox.js +1 -1
  501. package/components/AttachmentLightbox/AttachmentLightbox.js.map +1 -1
  502. package/components/AttachmentLightbox/AttachmentPreviewPane.js +1 -1
  503. package/components/AttachmentLightbox/AttachmentPreviewPane.js.map +1 -1
  504. package/components/AttachmentPreview/AttachmentActionsMenu.js +1 -1
  505. package/components/AttachmentPreview/AttachmentActionsMenu.js.map +1 -1
  506. package/components/AttachmentPreview/AttachmentDownloadLink.js +1 -1
  507. package/components/AttachmentPreview/AttachmentDownloadLink.js.map +1 -1
  508. package/components/AttachmentPreview/AttachmentTile.js +1 -1
  509. package/components/AttachmentPreview/AttachmentTile.js.map +1 -1
  510. package/components/AttachmentPreview/SortableAttachments.js +1 -1
  511. package/components/AttachmentPreview/SortableAttachments.js.map +1 -1
  512. package/components/BICOffsetPickerDialog/index.js +1 -1
  513. package/components/BICOffsetPickerDialog/index.js.map +1 -1
  514. package/components/Breadcrumbs/index.js +1 -1
  515. package/components/Breadcrumbs/index.js.map +1 -1
  516. package/components/Button/components/LiveButton/index.js +1 -1
  517. package/components/Button/components/LiveButton/index.js.map +1 -1
  518. package/components/Button/index.js +1 -1
  519. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  520. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  521. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  522. package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  523. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  524. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  525. package/components/Chart/components/AxisDropdown.js +1 -1
  526. package/components/Chart/components/AxisDropdown.js.map +1 -1
  527. package/components/Chart/components/ChartSelect.js +1 -1
  528. package/components/Chart/components/ChartSelect.js.map +1 -1
  529. package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  530. package/components/Chart/components/buttons/ChartTypeButton.js.map +1 -1
  531. package/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  532. package/components/Chart/components/buttons/DragToZoomButton.js.map +1 -1
  533. package/components/Chart/components/buttons/HideAxesButton.js +1 -1
  534. package/components/Chart/components/buttons/HideAxesButton.js.map +1 -1
  535. package/components/Chart/components/buttons/PanButton.js +1 -1
  536. package/components/Chart/components/buttons/PanButton.js.map +1 -1
  537. package/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  538. package/components/Chart/components/buttons/ResetZoomButton.js.map +1 -1
  539. package/components/Chart/components/buttons/ZoomInButton.js +1 -1
  540. package/components/Chart/components/buttons/ZoomInButton.js.map +1 -1
  541. package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  542. package/components/Chart/components/buttons/ZoomOutButton.js.map +1 -1
  543. package/components/Chip/index.js +1 -1
  544. package/components/Chip/index.js.map +1 -1
  545. package/components/CollapsableSidebar.js +1 -1
  546. package/components/CollapsableSidebar.js.map +1 -1
  547. package/components/ColorPicker/ColorPicker.js +1 -1
  548. package/components/ColorPicker/ColorPicker.js.map +1 -1
  549. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  550. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js.map +1 -1
  551. package/components/CommentCard/CommentCard.js +1 -1
  552. package/components/CommentCard/CommentCard.js.map +1 -1
  553. package/components/CommentCard/CommentCardReactions.js +1 -1
  554. package/components/CommentCard/CommentCardReactions.js.map +1 -1
  555. package/components/CommentCard/CommentCardReplies.js +1 -1
  556. package/components/CommentCard/CommentCardReplies.js.map +1 -1
  557. package/components/CommentCard/buildCommentReply.js +1 -1
  558. package/components/CommentCard/buildCommentReply.js.map +1 -1
  559. package/components/CommentComposer/ChatChannelSelector.js +1 -1
  560. package/components/CommentComposer/ChatChannelSelector.js.map +1 -1
  561. package/components/CommentComposer/CommentComposer.js +1 -1
  562. package/components/CommentComposer/CommentComposer.js.map +1 -1
  563. package/components/CommentInputNext/CommentInputNext.js +1 -1
  564. package/components/CommentInputNext/CommentInputNext.js.map +1 -1
  565. package/components/ConfirmationDialog.d.ts +75 -12
  566. package/components/ConfirmationDialog.js +1 -1
  567. package/components/ConfirmationDialog.js.map +1 -1
  568. package/components/CopyToClipboard/CopyToClipboard.js +1 -1
  569. package/components/CopyToClipboard/CopyToClipboard.js.map +1 -1
  570. package/components/Counter/index.js +1 -1
  571. package/components/Counter/index.js.map +1 -1
  572. package/components/DatePicker/index.js +1 -1
  573. package/components/DatePicker/index.js.map +1 -1
  574. package/components/DateTimePicker/index.js +1 -1
  575. package/components/DateTimePicker/index.js.map +1 -1
  576. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
  577. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js.map +1 -1
  578. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  579. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js.map +1 -1
  580. package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  581. package/components/DevCenter/AppSideBar/AppSideBar.js.map +1 -1
  582. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  583. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  584. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  585. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  586. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
  587. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js.map +1 -1
  588. package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
  589. package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js.map +1 -1
  590. package/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js +1 -1
  591. package/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js.map +1 -1
  592. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js +1 -1
  593. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js.map +1 -1
  594. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js +1 -1
  595. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js.map +1 -1
  596. package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js +1 -1
  597. package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js.map +1 -1
  598. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  599. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
  600. package/components/DocumentViewer/DocumentViewer.js +1 -1
  601. package/components/DocumentViewer/DocumentViewer.js.map +1 -1
  602. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  603. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  604. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  605. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  606. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  607. package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  608. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  609. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  610. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  611. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  612. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  613. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  614. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  615. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  616. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  617. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  618. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  619. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  620. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  621. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  622. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  623. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  624. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  625. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  626. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  627. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  628. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  629. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  630. package/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  631. package/components/EChartsWrapper/components/Toolbox/Toolbox.js.map +1 -1
  632. package/components/EmojiIconButton.d.ts +4 -34
  633. package/components/EmojiIconButton.d.ts.map +1 -1
  634. package/components/EmojiIconButton.js +1 -1
  635. package/components/EmojiIconButton.js.map +1 -1
  636. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
  637. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js.map +1 -1
  638. package/components/ErrorBoundary/ErrorBoundary.js +1 -1
  639. package/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  640. package/components/FeedCard/useFeedActivity.js +1 -1
  641. package/components/FeedCard/useFeedActivity.js.map +1 -1
  642. package/components/FeedItem/FeedItem.js +1 -1
  643. package/components/FeedItem/FeedItem.js.map +1 -1
  644. package/components/FilesDropzone/FilesDropzone.js +1 -1
  645. package/components/FilesDropzone/FilesDropzone.js.map +1 -1
  646. package/components/FilesLoader/FilesLoader.js +1 -1
  647. package/components/FilesLoader/FilesLoader.js.map +1 -1
  648. package/components/FilesLoaderV2/FilesLoaderV2.js +1 -1
  649. package/components/FilesLoaderV2/FilesLoaderV2.js.map +1 -1
  650. package/components/Formula/CloseSuggestion.js +1 -1
  651. package/components/Formula/CloseSuggestion.js.map +1 -1
  652. package/components/Formula/Formula.js +1 -1
  653. package/components/Formula/Formula.js.map +1 -1
  654. package/components/GradientManager/GradientManager.js +1 -1
  655. package/components/GradientManager/GradientManager.js.map +1 -1
  656. package/components/GradientManager/GradientSelect.js +1 -1
  657. package/components/GradientManager/GradientSelect.js.map +1 -1
  658. package/components/GradientPicker/GradientPicker.js +1 -1
  659. package/components/GradientPicker/GradientPicker.js.map +1 -1
  660. package/components/HelpCenter/HelpCenterIcon.js +1 -1
  661. package/components/HelpCenter/HelpCenterIcon.js.map +1 -1
  662. package/components/Hint/Hint.js +1 -1
  663. package/components/Hint/Hint.js.map +1 -1
  664. package/components/Modal/CorvaModal.js +1 -1
  665. package/components/Modal/CorvaModal.js.map +1 -1
  666. package/components/Notifications/Toast.js +1 -1
  667. package/components/Notifications/Toast.js.map +1 -1
  668. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  669. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js.map +1 -1
  670. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  671. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  672. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  673. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  674. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  675. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  676. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  677. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  678. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  679. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  680. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  681. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  682. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  683. package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  684. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  685. package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  686. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  687. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  688. package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
  689. package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js.map +1 -1
  690. package/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js +1 -1
  691. package/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js.map +1 -1
  692. package/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js +1 -1
  693. package/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js.map +1 -1
  694. package/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  695. package/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  696. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  697. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  698. package/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
  699. package/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js.map +1 -1
  700. package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
  701. package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js.map +1 -1
  702. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +1 -1
  703. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js.map +1 -1
  704. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
  705. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js.map +1 -1
  706. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  707. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js.map +1 -1
  708. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js +1 -1
  709. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js.map +1 -1
  710. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js +1 -1
  711. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js.map +1 -1
  712. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js +1 -1
  713. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js.map +1 -1
  714. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js +1 -1
  715. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js.map +1 -1
  716. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  717. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  718. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js +1 -1
  719. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js.map +1 -1
  720. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js +1 -1
  721. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js.map +1 -1
  722. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  723. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
  724. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
  725. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js.map +1 -1
  726. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  727. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js.map +1 -1
  728. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js +1 -1
  729. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js.map +1 -1
  730. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js +1 -1
  731. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js.map +1 -1
  732. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js +1 -1
  733. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js.map +1 -1
  734. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js +1 -1
  735. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js.map +1 -1
  736. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js +1 -1
  737. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js.map +1 -1
  738. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js +1 -1
  739. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js.map +1 -1
  740. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js +1 -1
  741. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js.map +1 -1
  742. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js +1 -1
  743. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js.map +1 -1
  744. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/SettingsAccordion/SettingsAccordion.js +1 -1
  745. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/SettingsAccordion/SettingsAccordion.js.map +1 -1
  746. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js +1 -1
  747. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js.map +1 -1
  748. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js +1 -1
  749. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js.map +1 -1
  750. package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
  751. package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js.map +1 -1
  752. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
  753. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js.map +1 -1
  754. package/components/OffsetWellPickerV5/hooks/useIsAdmin.js +1 -1
  755. package/components/OffsetWellPickerV5/hooks/useIsAdmin.js.map +1 -1
  756. package/components/PadModeSelect/FracModeLabel.js +1 -1
  757. package/components/PadModeSelect/FracModeLabel.js.map +1 -1
  758. package/components/PadModeSelect/PadModeSelect.js +1 -1
  759. package/components/PadModeSelect/PadModeSelect.js.map +1 -1
  760. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  761. package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  762. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  763. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  764. package/components/ParameterCharts/components/TraceHeader.js +1 -1
  765. package/components/ParameterCharts/components/TraceHeader.js.map +1 -1
  766. package/components/PinnableFilters/components/FiltersToggler.js +1 -1
  767. package/components/PinnableFilters/components/FiltersToggler.js.map +1 -1
  768. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  769. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js.map +1 -1
  770. package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  771. package/components/RealTimeValuesSidebar/SidebarFooter.js.map +1 -1
  772. package/components/Search/Search.js +1 -1
  773. package/components/Search/Search.js.map +1 -1
  774. package/components/Select/SelectFilterBy.js +1 -1
  775. package/components/Select/SelectFilterBy.js.map +1 -1
  776. package/components/SettingEditors/ColorEditor/index.js +1 -1
  777. package/components/SettingEditors/ColorEditor/index.js.map +1 -1
  778. package/components/Stepper/Step/Step.js +1 -1
  779. package/components/Stepper/Step/Step.js.map +1 -1
  780. package/components/Table/TableCell/TableCell.js +1 -1
  781. package/components/Table/TableCell/TableCell.js.map +1 -1
  782. package/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
  783. package/components/Table/TablePaginationActions/TablePaginationActions.js.map +1 -1
  784. package/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  785. package/components/Table/TableSortLabel/TableSortLabel.js.map +1 -1
  786. package/components/Toaster/Toaster.js +1 -1
  787. package/components/Toaster/Toaster.js.map +1 -1
  788. package/components/__tests__/ConfirmationDialog.test.d.ts +2 -0
  789. package/components/__tests__/ConfirmationDialog.test.d.ts.map +1 -0
  790. package/components/__tests__/EmojiIconButton.test.d.ts +2 -0
  791. package/components/__tests__/EmojiIconButton.test.d.ts.map +1 -0
  792. package/components/index.js +1 -1
  793. package/componentsV2/Accordion/Accordion.js +1 -1
  794. package/componentsV2/Accordion/Accordion.js.map +1 -1
  795. package/componentsV2/AppContainer/AppContainer.constants.scss.js +2 -0
  796. package/componentsV2/AppContainer/AppContainer.constants.scss.js.map +1 -0
  797. package/componentsV2/AppContainer/AppContainer.d.ts +5 -0
  798. package/componentsV2/AppContainer/AppContainer.d.ts.map +1 -1
  799. package/componentsV2/AppContainer/AppContainer.js +1 -1
  800. package/componentsV2/AppContainer/AppContainer.js.map +1 -1
  801. package/componentsV2/AppContainer/AppContainer.scss.js +1 -1
  802. package/componentsV2/AppContainer/Content.d.ts +0 -4
  803. package/componentsV2/AppContainer/Content.d.ts.map +1 -1
  804. package/componentsV2/AppContainer/Content.js +1 -1
  805. package/componentsV2/AppContainer/Content.js.map +1 -1
  806. package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
  807. package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js.map +1 -1
  808. package/componentsV2/AppDqPopover/DqAsset/DqAsset.js +1 -1
  809. package/componentsV2/AppDqPopover/DqAsset/DqAsset.js.map +1 -1
  810. package/componentsV2/AppFooter/DqPopover/DqPopover.js +1 -1
  811. package/componentsV2/AppFooter/DqPopover/DqPopover.js.map +1 -1
  812. package/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js +1 -1
  813. package/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js.map +1 -1
  814. package/componentsV2/AppFooter/Warning.js +1 -1
  815. package/componentsV2/AppFooter/Warning.js.map +1 -1
  816. package/componentsV2/AppHeader/AppAssets/utils.js +1 -1
  817. package/componentsV2/AppHeader/AppAssets/utils.js.map +1 -1
  818. package/componentsV2/AppHeader/V3/Actions/Actions.d.ts +1 -3
  819. package/componentsV2/AppHeader/V3/Actions/Actions.d.ts.map +1 -1
  820. package/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  821. package/componentsV2/AppHeader/V3/Actions/Actions.js.map +1 -1
  822. package/componentsV2/AppHeader/V3/Actions/Actions.scss.js +1 -1
  823. package/componentsV2/AppHeader/V3/AppHeaderV3.d.ts +1 -1
  824. package/componentsV2/AppHeader/V3/AppHeaderV3.d.ts.map +1 -1
  825. package/componentsV2/AppHeader/V3/AppHeaderV3.js +1 -1
  826. package/componentsV2/AppHeader/V3/AppHeaderV3.js.map +1 -1
  827. package/componentsV2/AppHeader/V3/AppHeaderV3.stories.d.ts.map +1 -1
  828. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  829. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.js.map +1 -1
  830. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js +1 -1
  831. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js.map +1 -1
  832. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js +1 -1
  833. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js.map +1 -1
  834. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js +1 -1
  835. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js.map +1 -1
  836. package/componentsV2/AppHeader/V3/AssetSelector/constants.js +1 -1
  837. package/componentsV2/AppHeader/V3/AssetSelector/constants.js.map +1 -1
  838. package/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js +1 -1
  839. package/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js.map +1 -1
  840. package/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.d.ts +1 -2
  841. package/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.d.ts.map +1 -1
  842. package/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js +1 -1
  843. package/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js.map +1 -1
  844. package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
  845. package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js.map +1 -1
  846. package/componentsV2/AppPanel/AppPanel.d.ts +16 -0
  847. package/componentsV2/AppPanel/AppPanel.d.ts.map +1 -0
  848. package/componentsV2/AppPanel/AppPanel.js +2 -0
  849. package/componentsV2/AppPanel/AppPanel.js.map +1 -0
  850. package/componentsV2/AppPanel/AppPanelDisplay.d.ts +7 -0
  851. package/componentsV2/AppPanel/AppPanelDisplay.d.ts.map +1 -0
  852. package/componentsV2/AppPanel/AppPanelDisplay.js +2 -0
  853. package/componentsV2/AppPanel/AppPanelDisplay.js.map +1 -0
  854. package/componentsV2/AppPanel/AppPanelDisplay.scss.js +2 -0
  855. package/componentsV2/AppPanel/AppPanelDisplay.scss.js.map +1 -0
  856. package/componentsV2/AppPanel/AppPanelIdContext.d.ts +7 -0
  857. package/componentsV2/AppPanel/AppPanelIdContext.d.ts.map +1 -0
  858. package/componentsV2/AppPanel/AppPanelIdContext.js +2 -0
  859. package/componentsV2/AppPanel/AppPanelIdContext.js.map +1 -0
  860. package/componentsV2/AppPanel/AppPanels.stories.d.ts +15 -0
  861. package/componentsV2/AppPanel/AppPanels.stories.d.ts.map +1 -0
  862. package/componentsV2/AppPanel/AppPanelsContext.d.ts +61 -0
  863. package/componentsV2/AppPanel/AppPanelsContext.d.ts.map +1 -0
  864. package/componentsV2/AppPanel/AppPanelsContext.js +2 -0
  865. package/componentsV2/AppPanel/AppPanelsContext.js.map +1 -0
  866. package/componentsV2/AppPanel/Header/Header.d.ts +9 -0
  867. package/componentsV2/AppPanel/Header/Header.d.ts.map +1 -0
  868. package/componentsV2/AppPanel/Header/Header.js +2 -0
  869. package/componentsV2/AppPanel/Header/Header.js.map +1 -0
  870. package/componentsV2/AppPanel/Header/index.d.ts +2 -0
  871. package/componentsV2/AppPanel/Header/index.d.ts.map +1 -0
  872. package/componentsV2/AppPanel/index.d.ts +3 -0
  873. package/componentsV2/AppPanel/index.d.ts.map +1 -0
  874. package/componentsV2/AppPanel/utils.d.ts +53 -0
  875. package/componentsV2/AppPanel/utils.d.ts.map +1 -0
  876. package/componentsV2/AppPanel/utils.js +2 -0
  877. package/componentsV2/AppPanel/utils.js.map +1 -0
  878. package/componentsV2/AppSettings/AppSettings.d.ts +1 -6
  879. package/componentsV2/AppSettings/AppSettings.d.ts.map +1 -1
  880. package/componentsV2/AppSettings/AppSettings.js +1 -1
  881. package/componentsV2/AppSettings/AppSettings.js.map +1 -1
  882. package/componentsV2/AppSettings/AppSettings.scss.js +1 -1
  883. package/componentsV2/AppSettings/index.d.ts +0 -1
  884. package/componentsV2/AppSettings/index.d.ts.map +1 -1
  885. package/componentsV2/AppSettingsDivider/AppSettingsDivider.d.ts.map +1 -1
  886. package/componentsV2/AppSettingsDivider/AppSettingsDivider.js +1 -1
  887. package/componentsV2/AppSettingsDivider/AppSettingsDivider.js.map +1 -1
  888. package/componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js +1 -1
  889. package/componentsV2/Autocomplete/Autocomplete.js +1 -1
  890. package/componentsV2/Autocomplete/Autocomplete.js.map +1 -1
  891. package/componentsV2/Breadcrumbs/Breadcrumbs.js +1 -1
  892. package/componentsV2/Breadcrumbs/Breadcrumbs.js.map +1 -1
  893. package/componentsV2/ButtonLive/ButtonLive.js +1 -1
  894. package/componentsV2/ButtonLive/ButtonLive.js.map +1 -1
  895. package/componentsV2/ChartAxisExtreme/ChartAxisExtreme.js +1 -1
  896. package/componentsV2/ChartAxisExtreme/ChartAxisExtreme.js.map +1 -1
  897. package/componentsV2/Chip/Chip.js +1 -1
  898. package/componentsV2/Chip/Chip.js.map +1 -1
  899. package/componentsV2/ColorPicker/ColorPicker.js +1 -1
  900. package/componentsV2/ColorPicker/ColorPicker.js.map +1 -1
  901. package/componentsV2/ColorPicker/Swatches/Swatches.js +1 -1
  902. package/componentsV2/ColorPicker/Swatches/Swatches.js.map +1 -1
  903. package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
  904. package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js.map +1 -1
  905. package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
  906. package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js.map +1 -1
  907. package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  908. package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
  909. package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
  910. package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js.map +1 -1
  911. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
  912. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js.map +1 -1
  913. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
  914. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js.map +1 -1
  915. package/componentsV2/CopyToClipboard/CopyToClipboard.js +1 -1
  916. package/componentsV2/CopyToClipboard/CopyToClipboard.js.map +1 -1
  917. package/componentsV2/Counter/Counter.js +1 -1
  918. package/componentsV2/Counter/Counter.js.map +1 -1
  919. package/componentsV2/DatePicker/CalendarControls/CalendarControls.js +1 -1
  920. package/componentsV2/DatePicker/CalendarControls/CalendarControls.js.map +1 -1
  921. package/componentsV2/DatePicker/Input/Input.js +1 -1
  922. package/componentsV2/DatePicker/Input/Input.js.map +1 -1
  923. package/componentsV2/DatePicker/TimePicker/TimePicker.js +1 -1
  924. package/componentsV2/DatePicker/TimePicker/TimePicker.js.map +1 -1
  925. package/componentsV2/DragHandle/DragHandle.js +1 -1
  926. package/componentsV2/DragHandle/DragHandle.js.map +1 -1
  927. package/componentsV2/FilesDropzone/FilesDropzone.js +1 -1
  928. package/componentsV2/FilesDropzone/FilesDropzone.js.map +1 -1
  929. package/componentsV2/FilesLoader/FilesLoader.js +1 -1
  930. package/componentsV2/FilesLoader/FilesLoader.js.map +1 -1
  931. package/componentsV2/Hint/Hint.js +1 -1
  932. package/componentsV2/Hint/Hint.js.map +1 -1
  933. package/componentsV2/ImageViewer/ImageViewer.js +1 -1
  934. package/componentsV2/ImageViewer/ImageViewer.js.map +1 -1
  935. package/componentsV2/InterventionEventSelector/InterventionEventSelector.js +1 -1
  936. package/componentsV2/InterventionEventSelector/InterventionEventSelector.js.map +1 -1
  937. package/componentsV2/ModalWindow/ModalWindow.js +1 -1
  938. package/componentsV2/ModalWindow/ModalWindow.js.map +1 -1
  939. package/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
  940. package/componentsV2/OffsetWellsButton/OffsetWellsButton.js.map +1 -1
  941. package/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js +1 -1
  942. package/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js.map +1 -1
  943. package/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js +1 -1
  944. package/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js.map +1 -1
  945. package/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
  946. package/componentsV2/PadModeSelect/PadModeSelect.js.map +1 -1
  947. package/componentsV2/Paper/Paper.d.ts +2 -1
  948. package/componentsV2/Paper/Paper.d.ts.map +1 -1
  949. package/componentsV2/Paper/Paper.js.map +1 -1
  950. package/componentsV2/Popover/Popover.d.ts +5 -1
  951. package/componentsV2/Popover/Popover.d.ts.map +1 -1
  952. package/componentsV2/Popover/Popover.js +1 -1
  953. package/componentsV2/Popover/Popover.js.map +1 -1
  954. package/componentsV2/PopoverPanel/PopoverPanel.scss.js +1 -1
  955. package/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.d.ts +2 -1
  956. package/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.d.ts.map +1 -1
  957. package/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.js +1 -1
  958. package/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.js.map +1 -1
  959. package/componentsV2/SliderAdvanced/Bar.js +1 -1
  960. package/componentsV2/SliderAdvanced/Bar.js.map +1 -1
  961. package/componentsV2/SliderAdvanced/HandleWrapper.js +1 -1
  962. package/componentsV2/SliderAdvanced/HandleWrapper.js.map +1 -1
  963. package/componentsV2/Stepper/Step/Step.js +1 -1
  964. package/componentsV2/Stepper/Step/Step.js.map +1 -1
  965. package/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js +1 -1
  966. package/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js.map +1 -1
  967. package/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js +1 -1
  968. package/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js.map +1 -1
  969. package/componentsV2/TemplatesControl/Popover/Popover.d.ts.map +1 -1
  970. package/componentsV2/TemplatesControl/Popover/Popover.js +1 -1
  971. package/componentsV2/TemplatesControl/Popover/Popover.js.map +1 -1
  972. package/componentsV2/TemplatesControl/PopoverFooter/PopoverFooter.js +1 -1
  973. package/componentsV2/TemplatesControl/PopoverFooter/PopoverFooter.js.map +1 -1
  974. package/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js +1 -1
  975. package/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js.map +1 -1
  976. package/componentsV2/TemplatesControl/PublishModal/PublishModal.js +1 -1
  977. package/componentsV2/TemplatesControl/PublishModal/PublishModal.js.map +1 -1
  978. package/componentsV2/TemplatesControl/ShareModal/ShareModal.js +1 -1
  979. package/componentsV2/TemplatesControl/ShareModal/ShareModal.js.map +1 -1
  980. package/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js +1 -1
  981. package/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js.map +1 -1
  982. package/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js +1 -1
  983. package/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js.map +1 -1
  984. package/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js +1 -1
  985. package/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js.map +1 -1
  986. package/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
  987. package/componentsV2/TemplatesControl/Toggle/Toggle.js.map +1 -1
  988. package/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js +1 -1
  989. package/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js.map +1 -1
  990. package/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js +1 -1
  991. package/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js.map +1 -1
  992. package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js +1 -1
  993. package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js.map +1 -1
  994. package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js +1 -1
  995. package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js.map +1 -1
  996. package/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js +1 -1
  997. package/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js.map +1 -1
  998. package/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js +1 -1
  999. package/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js.map +1 -1
  1000. package/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js +1 -1
  1001. package/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js.map +1 -1
  1002. package/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js +1 -1
  1003. package/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js.map +1 -1
  1004. package/componentsV2/TextInput/TextInput.js +1 -1
  1005. package/componentsV2/TextInput/TextInput.js.map +1 -1
  1006. package/componentsV2/TextInputBase/TextInputBase.js +1 -1
  1007. package/componentsV2/TextInputBase/TextInputBase.js.map +1 -1
  1008. package/componentsV2/TextInputBase/components/InfoIcon.js +1 -1
  1009. package/componentsV2/TextInputBase/components/InfoIcon.js.map +1 -1
  1010. package/componentsV2/TextInputNext/TextInputNext.js +1 -1
  1011. package/componentsV2/TextInputNext/TextInputNext.js.map +1 -1
  1012. package/componentsV2/index.d.ts +1 -0
  1013. package/componentsV2/index.d.ts.map +1 -1
  1014. package/componentsV2/index.js +1 -1
  1015. package/config/theme/index.js +1 -1
  1016. package/config/theme/index.js.map +1 -1
  1017. package/effects/index.d.ts +1 -1
  1018. package/effects/index.d.ts.map +1 -1
  1019. package/effects/index.js +1 -1
  1020. package/effects/useGlobalOffsetWellsSync.js +1 -1
  1021. package/effects/useGlobalOffsetWellsSync.js.map +1 -1
  1022. package/icons/customIcons/icons/PinOne.d.ts +2 -0
  1023. package/icons/customIcons/icons/PinOne.d.ts.map +1 -0
  1024. package/icons/customIcons/icons/PinOne.js +2 -0
  1025. package/icons/customIcons/icons/PinOne.js.map +1 -0
  1026. package/icons/customIcons/icons/PinOneCrossed.d.ts +2 -0
  1027. package/icons/customIcons/icons/PinOneCrossed.d.ts.map +1 -0
  1028. package/icons/customIcons/icons/PinOneCrossed.js +2 -0
  1029. package/icons/customIcons/icons/PinOneCrossed.js.map +1 -0
  1030. package/icons/customIcons/icons/index.d.ts +2 -0
  1031. package/icons/customIcons/icons/index.d.ts.map +1 -1
  1032. package/icons/index.js +1 -1
  1033. package/mcp-server/server.mjs +130 -23
  1034. package/package.json +1 -1
  1035. package/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  1036. package/testing/AppTestWrapper/AppTestWrapper.js.map +1 -1
  1037. package/tsconfig.tsbuildinfo +1 -1
  1038. package/utils/feed.js +1 -1
  1039. package/utils/feed.js.map +1 -1
  1040. package/cjs-bundle/componentsV2/AppSettings/AppSettingsPinningContext.js +0 -2
  1041. package/cjs-bundle/componentsV2/AppSettings/AppSettingsPinningContext.js.map +0 -1
  1042. package/componentsV2/AppSettings/AppSettingsPinningContext.d.ts +0 -21
  1043. package/componentsV2/AppSettings/AppSettingsPinningContext.d.ts.map +0 -1
  1044. package/componentsV2/AppSettings/AppSettingsPinningContext.js +0 -2
  1045. package/componentsV2/AppSettings/AppSettingsPinningContext.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/toConsumableArray";import s from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/slicedToArray";import{useRef as i,useState as c,useEffect as t,useMemo as r}from"react";import e from"classnames";import m from"react-draggable";import{find as u,noop as a,sortBy as l,reject as p,clamp as d,omit as j}from"lodash";import I from"tinygradient";import{v4 as f}from"uuid";import{Typography as h,Tooltip as v,Popover as b,TextField as g}from"@material-ui/core";import{Add as C}from"@material-ui/icons";import{DeleteFourIcon as O}from"../../icons/iconParkIcons.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/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 y from"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import{calcGradientStyle as P,getStopText as F,roundToStep as k,getRangeStep as N}from"./GradientPicker.utils.js";import{useThrottledCallback as x}from"../shared/useThrottledCallback.js";import A from"../IconButton/index.js";import{useStyles as D}from"./GradientPicker.styles.js";import{withSize as M}from"react-sizeme";import{jsxs as S,jsx as T}from"react/jsx-runtime";function E(o,s){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),n.push.apply(n,i)}return n}function w(o){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?E(Object(i),!0).forEach((function(n){s(o,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):E(Object(i)).forEach((function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(i,s))}))}return o}var z=M()((function(s){var M,E=s.size,z=s.from,B=void 0===z?0:z,R=s.to,_=void 0===R?100:R,G=s.unit,L=s.gradientStops,U=s.onChange,V=s.style,W=s.isMoveInputVisible,q=s.readonly,K=s.noScale,H=s["data-testid"],X=void 0===H?"GradientPicker":H,Z=i(null),J=c([]),Q=n(J,2),Y=Q[0],$=Q[1],oo=c(null),so=n(oo,2),no=so[0],io=so[1],co=c(null),to=n(co,2),ro=to[0],eo=to[1],mo=c(null),uo=n(mo,2),ao=uo[0],lo=uo[1],po=D({readonly:q}),jo=Number.isFinite(B)?Number(B):0,Io=Number.isFinite(_)?Number(_):100,fo=Io-jo;t((function(){(L.length!==(null==Y?void 0:Y.length)||L.some((function(o,s){return o.color!==Y[s].color||o.pos!==Y[s].pos})))&&$(L.map((function(o){return w(w({},o),{},{id:f()})})))}),[L]);var ho=r((function(){return P(Y)}),[Y]),vo=r((function(){var o;return null===(o=Z.current)||void 0===o?void 0:o.clientWidth}),[null==E?void 0:E.width,Z.current]),bo=function(o){var s=l(o,"pos");$(s),U&&U(s.map((function(o){return j(o,"id")})))},go=function(o){if(o.target===o.currentTarget){var s=o.currentTarget.getBoundingClientRect(),n=o.clientX-s.left;lo(Number.isFinite(n)?n:null)}else lo(null)},Co=x((function(s,n,i){var c=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!no&&vo){var t=n/vo*100,r=u(Y,{id:s});if(i>=40||i<=-50)yo();else if(r){var e=w(w({},r),{},{pos:t}),m=l([].concat(o(p(Y,{id:s})),[e]),"pos");if(c)return bo(m),void eo(null);$(m),Fo||eo(s)}}}),0),Oo=function(){bo(Y),eo(null),io(null)},yo=function(){Y.length>2&&(bo(p(Y,{id:ro})),io(null),eo(null))},Po=!no&&Number.isFinite(ao)&&!q,Fo=ro?u(Y,{id:ro}):void 0,ko=N(fo),No=function(o){if(!o)return null;var s=jo+(null==o?void 0:o.pos)/100*fo;return k(s,ko/100)}(Fo);return S("div",{className:po.root,style:V,children:[!K&&S("div",{className:po.indicatorContainer,children:[T("div",{children:S(h,{"data-testid":"".concat(X,"_from"),className:po.indicator,children:[jo," ",G]})}),T("div",{children:S(h,{"data-testid":"".concat(X,"_to"),className:po.indicator,children:[Io," ",G]})})]}),S("div",{onMouseEnter:go,onMouseMove:go,onMouseLeave:function(){return lo(null)},onClick:function(s){if(!q&&null!==ao&&vo){var n=ao/vo*100,i=I(Y.map((function(o){return{color:o.color,pos:o.pos/100}}))),c="#".concat(i.rgbAt(n/100).toHex()),t={id:f(),pos:n,color:c};bo([].concat(o(Y),[t]))}},"data-testid":"".concat(X,"_track"),className:po.mainBar,style:{background:"linear-gradient(90deg, ".concat(ho,")")},ref:Z,children:[Po&&T("div",{"data-testid":"".concat(X,"_addCircle"),className:po.addCircle,style:{left:ao-12},children:T(C,{fontSize:"small",className:po.addIcon})}),!!vo&&Y.map((function(o,s){var n,i=o.pos,c=o.color,t=o.id;return T(m,{disabled:q,axis:"x",bounds:{left:-12,right:vo-12,top:-50,bottom:40},onDrag:function(o,s){return Co(t,s.x+12,s.y,!1)},onStop:function(o,s){return Co(t,s.x+12,s.y,!0)},position:{x:vo*i/100-12,y:-4},children:T("div",{onClick:function(o){return function(o,s){o.stopPropagation(),q||ro||(eo(s),io(o.currentTarget))}(o,t)},"data-testid":"".concat(X,"_stop_").concat(s),className:e(po.circle,{highlight:ro===t}),style:{backgroundColor:c},children:T(v,{title:(n=i,F(n,{fromValue:jo,toValue:Io})),placement:"top",children:T("div",{style:{height:"100%"}})})})},t)}))]}),Boolean(no)&&S(b,{id:"colors-popper",open:Boolean(no),anchorEl:no,onClose:Oo,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:[T(y,{color:null!==(M=null==Fo?void 0:Fo.color)&&void 0!==M?M:"#000000",onChange:function(o){var s=o.hex;$(Y.map((function(o){return o.id===ro?w(w({},o),{},{color:s}):o})))},onSizeChange:a,enableTransparencyPalette:!1}),T(A,{"data-testid":"".concat(X,"_stopDelete"),className:po.removeButton,onClick:yo,children:T(O,{className:po.deleteIcon})}),W&&T(g,{"data-testid":"".concat(X,"_moveInput"),type:"number",variant:"outlined",value:No,classes:{root:po.posTextfield},InputProps:{inputProps:{min:jo,max:Io,step:ko,maxLength:10},classes:{root:po.posOutlinedRoot,input:po.posOutlinedInput}},autoFocus:!0,onFocus:function(o){return o.target.select()},onChange:function(o){if(""===o.target.value){var s=o.target;setTimeout((function(){return null==s?void 0:s.select()}))}var n=d(Number(o.target.value),jo,Io);n||o.target.select();var i=(n-jo)/fo*100;$(Y.map((function(o){return o.id===ro?w(w({},o),{},{pos:i}):o})))},onKeyDown:function(o){return"Enter"===o.key&&Oo()}})]})]})})),B=function(o){return T(z,w({},o))};export{B as GradientPicker};
1
+ import o from"@babel/runtime/helpers/toConsumableArray";import s from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/slicedToArray";import{useRef as i,useState as c,useEffect as t,useMemo as r}from"react";import e from"classnames";import m from"react-draggable";import{find as u,noop as a,sortBy as l,reject as p,clamp as d,omit as j}from"lodash";import I from"tinygradient";import{v4 as f}from"uuid";import{Typography as h,Tooltip as v,Popover as b,TextField as g}from"@material-ui/core";import{Add as C}from"@material-ui/icons";import{DeleteFourIcon as O}from"../../icons/iconParkIcons.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 y from"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import{calcGradientStyle as P,getStopText as F,roundToStep as k,getRangeStep as N}from"./GradientPicker.utils.js";import{useThrottledCallback as x}from"../shared/useThrottledCallback.js";import A from"../IconButton/index.js";import{useStyles as D}from"./GradientPicker.styles.js";import{withSize as M}from"react-sizeme";import{jsxs as S,jsx as T}from"react/jsx-runtime";function E(o,s){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),n.push.apply(n,i)}return n}function w(o){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?E(Object(i),!0).forEach((function(n){s(o,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):E(Object(i)).forEach((function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(i,s))}))}return o}var z=M()((function(s){var M,E=s.size,z=s.from,B=void 0===z?0:z,R=s.to,_=void 0===R?100:R,G=s.unit,L=s.gradientStops,U=s.onChange,V=s.style,W=s.isMoveInputVisible,q=s.readonly,K=s.noScale,H=s["data-testid"],X=void 0===H?"GradientPicker":H,Z=i(null),J=c([]),Q=n(J,2),Y=Q[0],$=Q[1],oo=c(null),so=n(oo,2),no=so[0],io=so[1],co=c(null),to=n(co,2),ro=to[0],eo=to[1],mo=c(null),uo=n(mo,2),ao=uo[0],lo=uo[1],po=D({readonly:q}),jo=Number.isFinite(B)?Number(B):0,Io=Number.isFinite(_)?Number(_):100,fo=Io-jo;t((function(){(L.length!==(null==Y?void 0:Y.length)||L.some((function(o,s){return o.color!==Y[s].color||o.pos!==Y[s].pos})))&&$(L.map((function(o){return w(w({},o),{},{id:f()})})))}),[L]);var ho=r((function(){return P(Y)}),[Y]),vo=r((function(){var o;return null===(o=Z.current)||void 0===o?void 0:o.clientWidth}),[null==E?void 0:E.width,Z.current]),bo=function(o){var s=l(o,"pos");$(s),U&&U(s.map((function(o){return j(o,"id")})))},go=function(o){if(o.target===o.currentTarget){var s=o.currentTarget.getBoundingClientRect(),n=o.clientX-s.left;lo(Number.isFinite(n)?n:null)}else lo(null)},Co=x((function(s,n,i){var c=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!no&&vo){var t=n/vo*100,r=u(Y,{id:s});if(i>=40||i<=-50)yo();else if(r){var e=w(w({},r),{},{pos:t}),m=l([].concat(o(p(Y,{id:s})),[e]),"pos");if(c)return bo(m),void eo(null);$(m),Fo||eo(s)}}}),0),Oo=function(){bo(Y),eo(null),io(null)},yo=function(){Y.length>2&&(bo(p(Y,{id:ro})),io(null),eo(null))},Po=!no&&Number.isFinite(ao)&&!q,Fo=ro?u(Y,{id:ro}):void 0,ko=N(fo),No=function(o){if(!o)return null;var s=jo+(null==o?void 0:o.pos)/100*fo;return k(s,ko/100)}(Fo);return S("div",{className:po.root,style:V,children:[!K&&S("div",{className:po.indicatorContainer,children:[T("div",{children:S(h,{"data-testid":"".concat(X,"_from"),className:po.indicator,children:[jo," ",G]})}),T("div",{children:S(h,{"data-testid":"".concat(X,"_to"),className:po.indicator,children:[Io," ",G]})})]}),S("div",{onMouseEnter:go,onMouseMove:go,onMouseLeave:function(){return lo(null)},onClick:function(s){if(!q&&null!==ao&&vo){var n=ao/vo*100,i=I(Y.map((function(o){return{color:o.color,pos:o.pos/100}}))),c="#".concat(i.rgbAt(n/100).toHex()),t={id:f(),pos:n,color:c};bo([].concat(o(Y),[t]))}},"data-testid":"".concat(X,"_track"),className:po.mainBar,style:{background:"linear-gradient(90deg, ".concat(ho,")")},ref:Z,children:[Po&&T("div",{"data-testid":"".concat(X,"_addCircle"),className:po.addCircle,style:{left:ao-12},children:T(C,{fontSize:"small",className:po.addIcon})}),!!vo&&Y.map((function(o,s){var n,i=o.pos,c=o.color,t=o.id;return T(m,{disabled:q,axis:"x",bounds:{left:-12,right:vo-12,top:-50,bottom:40},onDrag:function(o,s){return Co(t,s.x+12,s.y,!1)},onStop:function(o,s){return Co(t,s.x+12,s.y,!0)},position:{x:vo*i/100-12,y:-4},children:T("div",{onClick:function(o){return function(o,s){o.stopPropagation(),q||ro||(eo(s),io(o.currentTarget))}(o,t)},"data-testid":"".concat(X,"_stop_").concat(s),className:e(po.circle,{highlight:ro===t}),style:{backgroundColor:c},children:T(v,{title:(n=i,F(n,{fromValue:jo,toValue:Io})),placement:"top",children:T("div",{style:{height:"100%"}})})})},t)}))]}),Boolean(no)&&S(b,{id:"colors-popper",open:Boolean(no),anchorEl:no,onClose:Oo,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:[T(y,{color:null!==(M=null==Fo?void 0:Fo.color)&&void 0!==M?M:"#000000",onChange:function(o){var s=o.hex;$(Y.map((function(o){return o.id===ro?w(w({},o),{},{color:s}):o})))},onSizeChange:a,enableTransparencyPalette:!1}),T(A,{"data-testid":"".concat(X,"_stopDelete"),className:po.removeButton,onClick:yo,children:T(O,{className:po.deleteIcon})}),W&&T(g,{"data-testid":"".concat(X,"_moveInput"),type:"number",variant:"outlined",value:No,classes:{root:po.posTextfield},InputProps:{inputProps:{min:jo,max:Io,step:ko,maxLength:10},classes:{root:po.posOutlinedRoot,input:po.posOutlinedInput}},autoFocus:!0,onFocus:function(o){return o.target.select()},onChange:function(o){if(""===o.target.value){var s=o.target;setTimeout((function(){return null==s?void 0:s.select()}))}var n=d(Number(o.target.value),jo,Io);n||o.target.select();var i=(n-jo)/fo*100;$(Y.map((function(o){return o.id===ro?w(w({},o),{},{pos:i}):o})))},onKeyDown:function(o){return"Enter"===o.key&&Oo()}})]})]})})),B=function(o){return T(z,w({},o))};export{B as GradientPicker};
2
2
  //# sourceMappingURL=GradientPicker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GradientPicker.js","sources":["../../../src/components/GradientPicker/GradientPicker.tsx"],"sourcesContent":["import React, { MouseEventHandler, useEffect, useMemo, useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport Draggable from 'react-draggable';\nimport { clamp, find, noop, omit, reject, sortBy } from 'lodash';\nimport tinygradient from 'tinygradient';\nimport { v4 as uuidv4 } from 'uuid';\nimport { Popover, TextField, Tooltip, Typography } from '@material-ui/core';\nimport { Add } from '@material-ui/icons';\n\nimport { DeleteFourIcon } from '~/icons';\n\nimport { GradientFillStop } from '~/types';\nimport PaletteChromePicker from '../ColorPicker/PaletteChromePicker';\nimport { calcGradientStyle, getRangeStep, getStopText, roundToStep } from './GradientPicker.utils';\nimport { GradientPickerComponentProps } from './GradientPickerProps';\nimport { useThrottledCallback } from '../shared/useThrottledCallback';\nimport IconButton from '../IconButton';\nimport { useStyles } from './GradientPicker.styles';\nimport { withSize } from 'react-sizeme';\n\nconst DRAG_TOP_LIMIT = -50;\nconst DRAG_BOTTOM_LIMIT = 40;\nconst DRAG_OFFSET_X = 12;\nconst DRAG_OFFSET_Y = -4;\n\nconst GradientPickerComponent = withSize()(\n ({\n size,\n from = 0,\n to = 100,\n unit,\n gradientStops,\n onChange,\n style,\n isMoveInputVisible,\n readonly,\n noScale,\n 'data-testid': PAGE_NAME = 'GradientPicker',\n }: GradientPickerComponentProps) => {\n const trackRef = useRef<HTMLDivElement>(null);\n\n const [stops, setStops] = useState<Array<GradientFillStop & { id: string }>>([]);\n\n const [paletteAnchorEl, setPaletteAnchorEl] = useState<HTMLElement | null>(null);\n const [activeStopId, setActiveStopId] = useState<string | null>(null);\n const [addCirclePos, setAddCirclePos] = useState<number | null>(null);\n\n const classes = useStyles({ readonly });\n\n const fromValue = Number.isFinite(from) ? Number(from) : 0;\n const toValue = Number.isFinite(to) ? Number(to) : 100;\n const range = toValue - fromValue;\n\n useEffect(() => {\n const changed =\n gradientStops.length !== stops?.length ||\n gradientStops.some(\n (stop, index) => stop.color !== stops[index].color || stop.pos !== stops[index].pos\n );\n\n if (changed) {\n setStops(gradientStops.map(stop => ({ ...stop, id: uuidv4() })));\n }\n }, [gradientStops]);\n\n const gradient = useMemo(() => calcGradientStyle(stops), [stops]);\n const containerWidth = useMemo(\n () => trackRef.current?.clientWidth,\n [size?.width, trackRef.current]\n );\n\n const emitChange = (stops: Array<GradientFillStop & { id: string }>) => {\n const sorted = sortBy(stops, 'pos');\n setStops(sorted);\n if (onChange) {\n onChange(sorted.map(stop => omit(stop, 'id')));\n }\n };\n\n const handleTrackHover: MouseEventHandler<HTMLDivElement> = evt => {\n if (evt.target !== evt.currentTarget) {\n setAddCirclePos(null);\n return;\n }\n const rect = evt.currentTarget.getBoundingClientRect();\n const x = evt.clientX - rect.left;\n setAddCirclePos(Number.isFinite(x) ? x : null);\n };\n\n /**\n * When a user clicks a stop the \"startDrag\" and \"click\" events are fired simultaneously.\n * So useThrottledCallback (or any other scheduler, like setTimeout) solves\n * this conflict by waiting a tick and allowing the palette to open.\n * Then if it was a click and palette is open - do not initiate drag-n-drop.\n */\n const handleDragMove = useThrottledCallback(\n (id: string, xPos: number, yPos: number, isStopped = false) => {\n if (paletteAnchorEl || !containerWidth) {\n return;\n }\n const pos = (xPos / containerWidth) * 100;\n const stop = find(stops, { id });\n if (yPos >= DRAG_BOTTOM_LIMIT || yPos <= DRAG_TOP_LIMIT) {\n handleRemoveStop();\n return;\n }\n\n if (!stop) {\n return;\n }\n\n const currentStop = { ...stop, pos };\n\n const newStops = sortBy([...reject(stops, { id }) as typeof stops, currentStop], 'pos');\n\n if (isStopped) {\n emitChange(newStops);\n setActiveStopId(null);\n return;\n }\n\n setStops(newStops);\n if (!activeStop) {\n setActiveStopId(id);\n }\n },\n 0\n );\n\n const handleAdd: MouseEventHandler<HTMLDivElement> = _evt => {\n if (readonly || addCirclePos === null || !containerWidth) {\n return;\n }\n const pos = (addCirclePos / containerWidth) * 100;\n const gradient = tinygradient(\n stops.map(item => ({\n color: item.color,\n pos: item.pos / 100,\n }))\n );\n\n const color = `#${gradient.rgbAt(pos / 100).toHex()}`;\n const newStop = { id: uuidv4(), pos, color };\n emitChange([...stops, newStop]);\n };\n\n const handleColorPickerOpen = (evt: React.MouseEvent, id: string) => {\n evt.stopPropagation();\n if (readonly || activeStopId) {\n return;\n }\n setActiveStopId(id);\n setPaletteAnchorEl(evt.currentTarget as HTMLElement);\n };\n\n const handleColorPickerClose = () => {\n emitChange(stops);\n setActiveStopId(null);\n setPaletteAnchorEl(null);\n };\n\n const handleStopPositionTextInput = (evt: React.ChangeEvent<HTMLInputElement>) => {\n // give React a moment to update state and draw input with a zero and select the zero\n // to allow user type a new value\n if (evt.target.value === '') {\n const inputElement = evt.target;\n setTimeout(() => inputElement?.select());\n }\n const posScaled = clamp(Number(evt.target.value), fromValue, toValue);\n if (!posScaled) {\n evt.target.select();\n }\n const pos = ((posScaled - fromValue) / range) * 100;\n setStops(stops.map(stop => (stop.id === activeStopId ? { ...stop, pos } : stop)));\n };\n\n const handleColorChange = (newColor: { hex: string }) => {\n const color = newColor.hex;\n setStops(stops.map(stop => (stop.id === activeStopId ? { ...stop, color } : stop)));\n };\n\n const handleRemoveStop = () => {\n if (stops.length > 2) {\n emitChange(reject(stops, { id: activeStopId }) as typeof stops);\n setPaletteAnchorEl(null);\n setActiveStopId(null);\n }\n };\n\n const getStopTooltipValue = (position: number) => {\n return getStopText(position, { fromValue, toValue });\n };\n\n const addCircleVisible = !paletteAnchorEl && Number.isFinite(addCirclePos) && !readonly;\n\n const getStopScaledPosition = (activeStop: (GradientFillStop & { id: string }) | undefined) => {\n if (!activeStop) {\n return null;\n }\n const stopValue = fromValue + (activeStop?.pos / 100) * range;\n return roundToStep(stopValue, stopStep / 100);\n };\n\n const activeStop = activeStopId ? find(stops, { id: activeStopId }) : undefined;\n const stopStep = getRangeStep(range);\n\n const activeStopScaledPos = getStopScaledPosition(activeStop);\n\n return (\n <div className={classes.root} style={style}>\n {!noScale && (\n <div className={classes.indicatorContainer}>\n <div>\n <Typography data-testid={`${PAGE_NAME}_from`} className={classes.indicator}>\n {fromValue} {unit}\n </Typography>\n </div>\n <div>\n <Typography data-testid={`${PAGE_NAME}_to`} className={classes.indicator}>\n {toValue} {unit}\n </Typography>\n </div>\n </div>\n )}\n\n <div\n onMouseEnter={handleTrackHover}\n onMouseMove={handleTrackHover}\n onMouseLeave={() => setAddCirclePos(null)}\n onClick={handleAdd}\n data-testid={`${PAGE_NAME}_track`}\n className={classes.mainBar}\n style={{ background: `linear-gradient(90deg, ${gradient})` }}\n ref={trackRef}\n >\n {addCircleVisible && (\n <div\n data-testid={`${PAGE_NAME}_addCircle`}\n className={classes.addCircle}\n style={{ left: addCirclePos! - DRAG_OFFSET_X }}\n >\n <Add fontSize=\"small\" className={classes.addIcon} />\n </div>\n )}\n\n {!!containerWidth &&\n stops.map(({ pos, color, id }, index) => (\n // @ts-ignore Draggable propTypes issues\n <Draggable\n disabled={readonly}\n key={id}\n axis=\"x\"\n bounds={{\n left: -DRAG_OFFSET_X,\n right: containerWidth - DRAG_OFFSET_X,\n top: DRAG_TOP_LIMIT,\n bottom: DRAG_BOTTOM_LIMIT,\n }}\n onDrag={(_e, dragData) =>\n handleDragMove(id, dragData.x + DRAG_OFFSET_X, dragData.y, false)\n }\n onStop={(_e, dragData) =>\n handleDragMove(id, dragData.x + DRAG_OFFSET_X, dragData.y, true)\n }\n position={{\n x: (containerWidth * pos) / 100 - DRAG_OFFSET_X,\n y: DRAG_OFFSET_Y,\n }}\n >\n <div\n onClick={e => handleColorPickerOpen(e, id)}\n data-testid={`${PAGE_NAME}_stop_${index}`}\n className={classNames(classes.circle, {\n highlight: activeStopId === id,\n })}\n style={{ backgroundColor: color }}\n >\n <Tooltip title={getStopTooltipValue(pos)} placement=\"top\">\n <div style={{ height: '100%' }} />\n </Tooltip>\n </div>\n </Draggable>\n ))}\n </div>\n\n {Boolean(paletteAnchorEl) && (\n <Popover\n id=\"colors-popper\"\n open={Boolean(paletteAnchorEl)}\n anchorEl={paletteAnchorEl}\n onClose={handleColorPickerClose}\n anchorOrigin={{\n vertical: 'bottom',\n horizontal: 'left',\n }}\n transformOrigin={{\n vertical: 'top',\n horizontal: 'left',\n }}\n >\n <PaletteChromePicker\n color={activeStop?.color ?? '#000000'}\n onChange={handleColorChange}\n onSizeChange={noop}\n enableTransparencyPalette={false}\n />\n <IconButton\n data-testid={`${PAGE_NAME}_stopDelete`}\n className={classes.removeButton}\n onClick={handleRemoveStop}\n >\n <DeleteFourIcon className={classes.deleteIcon} />\n </IconButton>\n {isMoveInputVisible && (\n <TextField\n data-testid={`${PAGE_NAME}_moveInput`}\n type=\"number\"\n variant=\"outlined\"\n value={activeStopScaledPos}\n classes={{ root: classes.posTextfield }}\n InputProps={{\n inputProps: {\n min: fromValue,\n max: toValue,\n step: stopStep,\n maxLength: 10,\n },\n classes: {\n root: classes.posOutlinedRoot,\n input: classes.posOutlinedInput,\n },\n }}\n autoFocus\n onFocus={evt => evt.target.select()}\n onChange={handleStopPositionTextInput}\n onKeyDown={evt => evt.key === 'Enter' && handleColorPickerClose()}\n />\n )}\n </Popover>\n )}\n </div>\n );\n }\n);\n\n// \"Hiding\" react-sizeme so Storybook can get the props type\nexport const GradientPicker = (props: Omit<GradientPickerComponentProps, 'size'>) => (\n <GradientPickerComponent {...props} />\n);\n"],"names":["GradientPickerComponent","withSize","_ref","_activeStop$color","size","_ref$from","from","_ref$to","to","unit","gradientStops","onChange","style","isMoveInputVisible","readonly","noScale","_ref$dataTestid","PAGE_NAME","trackRef","useRef","useState","_useState2","_slicedToArray","_useState","stops","setStops","_useState4","_useState3","paletteAnchorEl","setPaletteAnchorEl","_useState6","_useState5","activeStopId","setActiveStopId","_useState8","_useState7","addCirclePos","setAddCirclePos","classes","useStyles","fromValue","Number","isFinite","toValue","range","useEffect","length","some","stop","index","color","pos","map","_objectSpread","id","uuidv4","gradient","useMemo","calcGradientStyle","containerWidth","_trackRef$current","current","clientWidth","width","emitChange","sorted","sortBy","omit","handleTrackHover","evt","target","currentTarget","rect","getBoundingClientRect","x","clientX","left","handleDragMove","useThrottledCallback","xPos","yPos","isStopped","find","handleRemoveStop","currentStop","newStops","reject","activeStop","handleColorPickerClose","addCircleVisible","undefined","stopStep","getRangeStep","activeStopScaledPos","stopValue","roundToStep","getStopScaledPosition","_jsxs","className","root","children","indicatorContainer","_jsx","Typography","concat","indicator","onMouseEnter","onMouseMove","onMouseLeave","onClick","_evt","tinygradient","item","rgbAt","toHex","newStop","mainBar","background","ref","addCircle","Add","fontSize","addIcon","_ref2","position","Draggable","disabled","axis","bounds","right","top","bottom","onDrag","_e","dragData","y","onStop","e","stopPropagation","handleColorPickerOpen","classNames","circle","highlight","backgroundColor","Tooltip","title","getStopText","placement","height","Boolean","Popover","open","anchorEl","onClose","anchorOrigin","vertical","horizontal","transformOrigin","PaletteChromePicker","newColor","hex","onSizeChange","noop","enableTransparencyPalette","IconButton","removeButton","DeleteFourIcon","deleteIcon","TextField","type","variant","value","posTextfield","InputProps","inputProps","min","max","step","maxLength","posOutlinedRoot","input","posOutlinedInput","autoFocus","onFocus","select","inputElement","setTimeout","posScaled","clamp","onKeyDown","key","GradientPicker","props"],"mappings":"kyKAoBA,IAKMA,EAA0BC,KAC9B,SAYoCC,GAAA,IAAAC,EAXlCC,IAAAA,KAAIC,EAAAH,EACJI,KAAAA,aAAO,EAACD,EAAAE,EAAAL,EACRM,GAAAA,aAAK,IAAGD,EACRE,IAAAA,KACAC,IAAAA,cACAC,IAAAA,SACAC,IAAAA,MACAC,IAAAA,mBACAC,IAAAA,SACAC,IAAAA,QAAOC,EAAAd,EACP,eAAee,aAAY,iBAAgBD,EAErCE,EAAWC,EAAuB,MAEdC,EAAAA,EAAmD,IAAGC,EAAAC,EAAAC,EAAA,GAAzEC,EAAKH,EAAA,GAAEI,EAAQJ,EAAA,GAEwBD,GAAAA,EAA6B,MAAKM,GAAAJ,EAAAK,GAAA,GAAzEC,GAAeF,GAAA,GAAEG,GAAkBH,GAAA,GACFN,GAAAA,EAAwB,MAAKU,GAAAR,EAAAS,GAAA,GAA9DC,GAAYF,GAAA,GAAEG,GAAeH,GAAA,GACIV,GAAAA,EAAwB,MAAKc,GAAAZ,EAAAa,GAAA,GAA9DC,GAAYF,GAAA,GAAEG,GAAeH,GAAA,GAE9BI,GAAUC,EAAU,CAAEzB,SAAAA,IAEtB0B,GAAYC,OAAOC,SAASpC,GAAQmC,OAAOnC,GAAQ,EACnDqC,GAAUF,OAAOC,SAASlC,GAAMiC,OAAOjC,GAAM,IAC7CoC,GAAQD,GAAUH,GAExBK,GAAU,YAENnC,EAAcoC,UAAWtB,aAAK,EAALA,EAAOsB,SAChCpC,EAAcqC,MACZ,SAACC,EAAMC,GAAK,OAAKD,EAAKE,QAAU1B,EAAMyB,GAAOC,OAASF,EAAKG,MAAQ3B,EAAMyB,GAAOE,SAIlF1B,EAASf,EAAc0C,KAAI,SAAAJ,GAAI,OAAAK,EAAAA,EAAA,CAAA,EAAUL,GAAI,CAAA,EAAA,CAAEM,GAAIC,KAAW,IAElE,GAAG,CAAC7C,IAEJ,IAAM8C,GAAWC,GAAQ,WAAA,OAAMC,EAAkBlC,KAAQ,CAACA,IACpDmC,GAAiBF,GACrB,WAAA,IAAAG,EAAA,OAAsB,QAAtBA,EAAM1C,EAAS2C,eAAO,IAAAD,OAAA,EAAhBA,EAAkBE,WAAW,GACnC,CAAC1D,aAAAA,EAAAA,EAAM2D,MAAO7C,EAAS2C,UAGnBG,GAAa,SAACxC,GAClB,IAAMyC,EAASC,EAAO1C,EAAO,OAC7BC,EAASwC,GACLtD,GACFA,EAASsD,EAAOb,KAAI,SAAAJ,GAAI,OAAImB,EAAKnB,EAAM,KAAK,MAI1CoB,GAAsD,SAAAC,GAC1D,GAAIA,EAAIC,SAAWD,EAAIE,cAAvB,CAIA,IAAMC,EAAOH,EAAIE,cAAcE,wBACzBC,EAAIL,EAAIM,QAAUH,EAAKI,KAC7BvC,GAAgBI,OAAOC,SAASgC,GAAKA,EAAI,KAHzC,MAFErC,GAAgB,OAcdwC,GAAiBC,GACrB,SAACxB,EAAYyB,EAAcC,GAAoC,IAAtBC,0DACvC,IAAIrD,IAAoB+B,GAAxB,CAGA,IAAMR,EAAO4B,EAAOpB,GAAkB,IAChCX,EAAOkC,EAAK1D,EAAO,CAAE8B,GAAAA,IAC3B,GAAI0B,GAjFc,IAiFeA,IAlFlB,GAmFbG,UAIF,GAAKnC,EAAL,CAIA,IAAMoC,SAAmBpC,GAAI,GAAA,CAAEG,IAAAA,IAEzBkC,EAAWnB,cAAWoB,EAAO9D,EAAO,CAAE8B,GAAAA,KAAK,CAAkB8B,IAAc,OAEjF,GAAIH,EAGF,OAFAjB,GAAWqB,QACXpD,GAAgB,MAIlBR,EAAS4D,GACJE,IACHtD,GAAgBqB,EAdlB,CAVA,CA0BD,GACD,GA6BIkC,GAAyB,WAC7BxB,GAAWxC,GACXS,GAAgB,MAChBJ,GAAmB,OAuBfsD,GAAmB,WACnB3D,EAAMsB,OAAS,IACjBkB,GAAWsB,EAAO9D,EAAO,CAAE8B,GAAItB,MAC/BH,GAAmB,MACnBI,GAAgB,QAQdwD,IAAoB7D,IAAmBa,OAAOC,SAASN,MAAkBtB,EAUzEyE,GAAavD,GAAekD,EAAK1D,EAAO,CAAE8B,GAAItB,UAAkB0D,EAChEC,GAAWC,EAAahD,IAExBiD,GAXwB,SAACN,GAC7B,IAAKA,EACH,OAAO,KAET,IAAMO,EAAYtD,IAAa+C,aAAU,EAAVA,EAAYpC,KAAM,IAAOP,GACxD,OAAOmD,EAAYD,EAAWH,GAAW,KAMfK,CAAsBT,IAElD,OACEU,EAAA,MAAA,CAAKC,UAAW5D,GAAQ6D,KAAMvF,MAAOA,EAAMwF,SACxC,EAACrF,GACAkF,EAAA,MAAA,CAAKC,UAAW5D,GAAQ+D,mBAAmBD,SACzC,CAAAE,EAAA,MAAA,CAAAF,SACEH,EAACM,EAAU,CAAC,cAAA,GAAAC,OAAgBvF,EAAiB,SAACiF,UAAW5D,GAAQmE,UAAUL,SACxE5D,CAAAA,OAAY/B,OAGjB6F,EAAA,MAAA,CAAAF,SACEH,EAACM,EAAU,CAAC,cAAA,GAAAC,OAAgBvF,EAAe,OAACiF,UAAW5D,GAAQmE,UAAUL,SACtEzD,CAAAA,OAAUlC,UAMnBwF,EAAA,MAAA,CACES,aAActC,GACduC,YAAavC,GACbwC,aAAc,WAAA,OAAMvE,GAAgB,KAAM,EAC1CwE,QApG+C,SAAAC,GACnD,IAAIhG,GAA6B,OAAjBsB,IAA0BuB,GAA1C,CAGA,IAAMR,EAAOf,GAAeuB,GAAkB,IACxCH,EAAWuD,EACfvF,EAAM4B,KAAI,SAAA4D,GAAI,MAAK,CACjB9D,MAAO8D,EAAK9D,MACZC,IAAK6D,EAAK7D,IAAM,IAChB,KAGED,EAAK,IAAAsD,OAAOhD,EAASyD,MAAM9D,EAAM,KAAK+D,SACtCC,EAAU,CAAE7D,GAAIC,IAAUJ,IAAAA,EAAKD,MAAAA,GACrCc,GAAexC,GAAAA,OAAAA,EAAAA,GAAO2F,CAAAA,IAXtB,GAkGI,cAAA,GAAAX,OAAgBvF,EAAkB,UAClCiF,UAAW5D,GAAQ8E,QACnBxG,MAAO,CAAEyG,4CAAsC7D,GAAQ,MACvD8D,IAAKpG,EAASkF,SAAA,CAEbX,IACCa,EAAA,MAAA,CACE,cAAA,GAAAE,OAAgBvF,EAAsB,cACtCiF,UAAW5D,GAAQiF,UACnB3G,MAAO,CAAEgE,KAAMxC,GAzNP,IAyNuCgE,SAE/CE,EAACkB,EAAG,CAACC,SAAS,QAAQvB,UAAW5D,GAAQoF,cAI1C/D,IACDnC,EAAM4B,KAAI,SAAAuE,EAAqB1E,GAAK,IAzDf2E,EAyDRzE,IAAAA,IAAKD,IAAAA,MAAOI,IAAAA,GAAE,OAEzBgD,EAACuB,EAAS,CACRC,SAAUhH,EAEViH,KAAK,IACLC,OAAQ,CACNpD,MAvOI,GAwOJqD,MAAOtE,GAxOH,GAyOJuE,KA3OK,GA4OLC,OA3OQ,IA6OVC,OAAQ,SAACC,EAAIC,GAAQ,OACnBzD,GAAevB,EAAIgF,EAAS5D,EA7OxB,GA6O2C4D,EAASC,GAAG,EAC5D,EACDC,OAAQ,SAACH,EAAIC,GAAQ,OACnBzD,GAAevB,EAAIgF,EAAS5D,EAhPxB,GAgP2C4D,EAASC,GAAG,EAC5D,EACDX,SAAU,CACRlD,EAAIf,GAAiBR,EAAO,IAnPxB,GAoPJoF,GAnPI,GAoPJnC,SAEFE,EAAA,MAAA,CACEO,QAAS,SAAA4B,GAAC,OA5HM,SAACpE,EAAuBf,GACpDe,EAAIqE,kBACA5H,GAAYkB,KAGhBC,GAAgBqB,GAChBzB,GAAmBwC,EAAIE,gBAsHGoE,CAAsBF,EAAGnF,EAAI,EAC3C,cAAgBrC,GAAAA,OAAAA,EAAkBgC,UAAAA,OAAAA,GAClCiD,UAAW0C,EAAWtG,GAAQuG,OAAQ,CACpCC,UAAW9G,KAAiBsB,IAE9B1C,MAAO,CAAEmI,gBAAiB7F,GAAQkD,SAElCE,EAAC0C,EAAO,CAACC,OAxFMrB,EAwFqBzE,EAvFzC+F,EAAYtB,EAAU,CAAEpF,UAAAA,GAAWG,QAAAA,MAuFYwG,UAAU,MAAK/C,SACvDE,EAAA,MAAA,CAAK1F,MAAO,CAAEwI,OAAQ,eA5BrB9F,EA+BK,OAIjB+F,QAAQzH,KACPqE,EAACqD,EAAO,CACNhG,GAAG,gBACHiG,KAAMF,QAAQzH,IACd4H,SAAU5H,GACV6H,QAASjE,GACTkE,aAAc,CACZC,SAAU,SACVC,WAAY,QAEdC,gBAAiB,CACfF,SAAU,MACVC,WAAY,QACZxD,SAAA,CAEFE,EAACwD,EAAmB,CAClB5G,MAAwB,QAAnB/C,EAAEoF,gBAAAA,GAAYrC,aAAK,IAAA/C,EAAAA,EAAI,UAC5BQ,SA9HgB,SAACoJ,GACzB,IAAM7G,EAAQ6G,EAASC,IACvBvI,EAASD,EAAM4B,KAAI,SAAAJ,GAAI,OAAKA,EAAKM,KAAOtB,UAAoBgB,GAAI,GAAA,CAAEE,MAAAA,IAAUF,CAAK,MA6HzEiH,aAAcC,EACdC,2BAA2B,IAE7B7D,EAAC8D,EAAU,CACT,cAAA,GAAA5D,OAAgBvF,EAAuB,eACvCiF,UAAW5D,GAAQ+H,aACnBxD,QAAS1B,GAAiBiB,SAE1BE,EAACgE,EAAc,CAACpE,UAAW5D,GAAQiI,eAEpC1J,GACCyF,EAACkE,EAAS,CACR,cAAA,GAAAhE,OAAgBvF,EAAsB,cACtCwJ,KAAK,SACLC,QAAQ,WACRC,MAAO9E,GACPvD,QAAS,CAAE6D,KAAM7D,GAAQsI,cACzBC,WAAY,CACVC,WAAY,CACVC,IAAKvI,GACLwI,IAAKrI,GACLsI,KAAMtF,GACNuF,UAAW,IAEb5I,QAAS,CACP6D,KAAM7D,GAAQ6I,gBACdC,MAAO9I,GAAQ+I,mBAGnBC,WAAS,EACTC,QAAS,SAAAlH,GAAG,OAAIA,EAAIC,OAAOkH,QAAS,EACpC7K,SA7KwB,SAAC0D,GAGnC,GAAyB,KAArBA,EAAIC,OAAOqG,MAAc,CAC3B,IAAMc,EAAepH,EAAIC,OACzBoH,YAAW,WAAA,OAAMD,eAAAA,EAAcD,WACjC,CACA,IAAMG,EAAYC,EAAMnJ,OAAO4B,EAAIC,OAAOqG,OAAQnI,GAAWG,IACxDgJ,GACHtH,EAAIC,OAAOkH,SAEb,IAAMrI,GAAQwI,EAAYnJ,IAAaI,GAAS,IAChDnB,EAASD,EAAM4B,KAAI,SAAAJ,GAAI,OAAKA,EAAKM,KAAOtB,UAAoBgB,GAAI,GAAA,CAAEG,IAAAA,IAAQH,CAAK,MAkKrE6I,UAAW,SAAAxH,GAAG,MAAgB,UAAZA,EAAIyH,KAAmBtG,IAAwB,SAO/E,IAIWuG,EAAiB,SAACC,GAAiD,OAC9E1F,EAACtG,EAA4BgM,EAAAA,CAAAA,EAAAA,GAAS"}
1
+ {"version":3,"file":"GradientPicker.js","sources":["../../../src/components/GradientPicker/GradientPicker.tsx"],"sourcesContent":["import React, { MouseEventHandler, useEffect, useMemo, useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport Draggable from 'react-draggable';\nimport { clamp, find, noop, omit, reject, sortBy } from 'lodash';\nimport tinygradient from 'tinygradient';\nimport { v4 as uuidv4 } from 'uuid';\nimport { Popover, TextField, Tooltip, Typography } from '@material-ui/core';\nimport { Add } from '@material-ui/icons';\n\nimport { DeleteFourIcon } from '~/icons';\n\nimport { GradientFillStop } from '~/types';\nimport PaletteChromePicker from '../ColorPicker/PaletteChromePicker';\nimport { calcGradientStyle, getRangeStep, getStopText, roundToStep } from './GradientPicker.utils';\nimport { GradientPickerComponentProps } from './GradientPickerProps';\nimport { useThrottledCallback } from '../shared/useThrottledCallback';\nimport IconButton from '../IconButton';\nimport { useStyles } from './GradientPicker.styles';\nimport { withSize } from 'react-sizeme';\n\nconst DRAG_TOP_LIMIT = -50;\nconst DRAG_BOTTOM_LIMIT = 40;\nconst DRAG_OFFSET_X = 12;\nconst DRAG_OFFSET_Y = -4;\n\nconst GradientPickerComponent = withSize()(\n ({\n size,\n from = 0,\n to = 100,\n unit,\n gradientStops,\n onChange,\n style,\n isMoveInputVisible,\n readonly,\n noScale,\n 'data-testid': PAGE_NAME = 'GradientPicker',\n }: GradientPickerComponentProps) => {\n const trackRef = useRef<HTMLDivElement>(null);\n\n const [stops, setStops] = useState<Array<GradientFillStop & { id: string }>>([]);\n\n const [paletteAnchorEl, setPaletteAnchorEl] = useState<HTMLElement | null>(null);\n const [activeStopId, setActiveStopId] = useState<string | null>(null);\n const [addCirclePos, setAddCirclePos] = useState<number | null>(null);\n\n const classes = useStyles({ readonly });\n\n const fromValue = Number.isFinite(from) ? Number(from) : 0;\n const toValue = Number.isFinite(to) ? Number(to) : 100;\n const range = toValue - fromValue;\n\n useEffect(() => {\n const changed =\n gradientStops.length !== stops?.length ||\n gradientStops.some(\n (stop, index) => stop.color !== stops[index].color || stop.pos !== stops[index].pos\n );\n\n if (changed) {\n setStops(gradientStops.map(stop => ({ ...stop, id: uuidv4() })));\n }\n }, [gradientStops]);\n\n const gradient = useMemo(() => calcGradientStyle(stops), [stops]);\n const containerWidth = useMemo(\n () => trackRef.current?.clientWidth,\n [size?.width, trackRef.current]\n );\n\n const emitChange = (stops: Array<GradientFillStop & { id: string }>) => {\n const sorted = sortBy(stops, 'pos');\n setStops(sorted);\n if (onChange) {\n onChange(sorted.map(stop => omit(stop, 'id')));\n }\n };\n\n const handleTrackHover: MouseEventHandler<HTMLDivElement> = evt => {\n if (evt.target !== evt.currentTarget) {\n setAddCirclePos(null);\n return;\n }\n const rect = evt.currentTarget.getBoundingClientRect();\n const x = evt.clientX - rect.left;\n setAddCirclePos(Number.isFinite(x) ? x : null);\n };\n\n /**\n * When a user clicks a stop the \"startDrag\" and \"click\" events are fired simultaneously.\n * So useThrottledCallback (or any other scheduler, like setTimeout) solves\n * this conflict by waiting a tick and allowing the palette to open.\n * Then if it was a click and palette is open - do not initiate drag-n-drop.\n */\n const handleDragMove = useThrottledCallback(\n (id: string, xPos: number, yPos: number, isStopped = false) => {\n if (paletteAnchorEl || !containerWidth) {\n return;\n }\n const pos = (xPos / containerWidth) * 100;\n const stop = find(stops, { id });\n if (yPos >= DRAG_BOTTOM_LIMIT || yPos <= DRAG_TOP_LIMIT) {\n handleRemoveStop();\n return;\n }\n\n if (!stop) {\n return;\n }\n\n const currentStop = { ...stop, pos };\n\n const newStops = sortBy([...reject(stops, { id }) as typeof stops, currentStop], 'pos');\n\n if (isStopped) {\n emitChange(newStops);\n setActiveStopId(null);\n return;\n }\n\n setStops(newStops);\n if (!activeStop) {\n setActiveStopId(id);\n }\n },\n 0\n );\n\n const handleAdd: MouseEventHandler<HTMLDivElement> = _evt => {\n if (readonly || addCirclePos === null || !containerWidth) {\n return;\n }\n const pos = (addCirclePos / containerWidth) * 100;\n const gradient = tinygradient(\n stops.map(item => ({\n color: item.color,\n pos: item.pos / 100,\n }))\n );\n\n const color = `#${gradient.rgbAt(pos / 100).toHex()}`;\n const newStop = { id: uuidv4(), pos, color };\n emitChange([...stops, newStop]);\n };\n\n const handleColorPickerOpen = (evt: React.MouseEvent, id: string) => {\n evt.stopPropagation();\n if (readonly || activeStopId) {\n return;\n }\n setActiveStopId(id);\n setPaletteAnchorEl(evt.currentTarget as HTMLElement);\n };\n\n const handleColorPickerClose = () => {\n emitChange(stops);\n setActiveStopId(null);\n setPaletteAnchorEl(null);\n };\n\n const handleStopPositionTextInput = (evt: React.ChangeEvent<HTMLInputElement>) => {\n // give React a moment to update state and draw input with a zero and select the zero\n // to allow user type a new value\n if (evt.target.value === '') {\n const inputElement = evt.target;\n setTimeout(() => inputElement?.select());\n }\n const posScaled = clamp(Number(evt.target.value), fromValue, toValue);\n if (!posScaled) {\n evt.target.select();\n }\n const pos = ((posScaled - fromValue) / range) * 100;\n setStops(stops.map(stop => (stop.id === activeStopId ? { ...stop, pos } : stop)));\n };\n\n const handleColorChange = (newColor: { hex: string }) => {\n const color = newColor.hex;\n setStops(stops.map(stop => (stop.id === activeStopId ? { ...stop, color } : stop)));\n };\n\n const handleRemoveStop = () => {\n if (stops.length > 2) {\n emitChange(reject(stops, { id: activeStopId }) as typeof stops);\n setPaletteAnchorEl(null);\n setActiveStopId(null);\n }\n };\n\n const getStopTooltipValue = (position: number) => {\n return getStopText(position, { fromValue, toValue });\n };\n\n const addCircleVisible = !paletteAnchorEl && Number.isFinite(addCirclePos) && !readonly;\n\n const getStopScaledPosition = (activeStop: (GradientFillStop & { id: string }) | undefined) => {\n if (!activeStop) {\n return null;\n }\n const stopValue = fromValue + (activeStop?.pos / 100) * range;\n return roundToStep(stopValue, stopStep / 100);\n };\n\n const activeStop = activeStopId ? find(stops, { id: activeStopId }) : undefined;\n const stopStep = getRangeStep(range);\n\n const activeStopScaledPos = getStopScaledPosition(activeStop);\n\n return (\n <div className={classes.root} style={style}>\n {!noScale && (\n <div className={classes.indicatorContainer}>\n <div>\n <Typography data-testid={`${PAGE_NAME}_from`} className={classes.indicator}>\n {fromValue} {unit}\n </Typography>\n </div>\n <div>\n <Typography data-testid={`${PAGE_NAME}_to`} className={classes.indicator}>\n {toValue} {unit}\n </Typography>\n </div>\n </div>\n )}\n\n <div\n onMouseEnter={handleTrackHover}\n onMouseMove={handleTrackHover}\n onMouseLeave={() => setAddCirclePos(null)}\n onClick={handleAdd}\n data-testid={`${PAGE_NAME}_track`}\n className={classes.mainBar}\n style={{ background: `linear-gradient(90deg, ${gradient})` }}\n ref={trackRef}\n >\n {addCircleVisible && (\n <div\n data-testid={`${PAGE_NAME}_addCircle`}\n className={classes.addCircle}\n style={{ left: addCirclePos! - DRAG_OFFSET_X }}\n >\n <Add fontSize=\"small\" className={classes.addIcon} />\n </div>\n )}\n\n {!!containerWidth &&\n stops.map(({ pos, color, id }, index) => (\n // @ts-ignore Draggable propTypes issues\n <Draggable\n disabled={readonly}\n key={id}\n axis=\"x\"\n bounds={{\n left: -DRAG_OFFSET_X,\n right: containerWidth - DRAG_OFFSET_X,\n top: DRAG_TOP_LIMIT,\n bottom: DRAG_BOTTOM_LIMIT,\n }}\n onDrag={(_e, dragData) =>\n handleDragMove(id, dragData.x + DRAG_OFFSET_X, dragData.y, false)\n }\n onStop={(_e, dragData) =>\n handleDragMove(id, dragData.x + DRAG_OFFSET_X, dragData.y, true)\n }\n position={{\n x: (containerWidth * pos) / 100 - DRAG_OFFSET_X,\n y: DRAG_OFFSET_Y,\n }}\n >\n <div\n onClick={e => handleColorPickerOpen(e, id)}\n data-testid={`${PAGE_NAME}_stop_${index}`}\n className={classNames(classes.circle, {\n highlight: activeStopId === id,\n })}\n style={{ backgroundColor: color }}\n >\n <Tooltip title={getStopTooltipValue(pos)} placement=\"top\">\n <div style={{ height: '100%' }} />\n </Tooltip>\n </div>\n </Draggable>\n ))}\n </div>\n\n {Boolean(paletteAnchorEl) && (\n <Popover\n id=\"colors-popper\"\n open={Boolean(paletteAnchorEl)}\n anchorEl={paletteAnchorEl}\n onClose={handleColorPickerClose}\n anchorOrigin={{\n vertical: 'bottom',\n horizontal: 'left',\n }}\n transformOrigin={{\n vertical: 'top',\n horizontal: 'left',\n }}\n >\n <PaletteChromePicker\n color={activeStop?.color ?? '#000000'}\n onChange={handleColorChange}\n onSizeChange={noop}\n enableTransparencyPalette={false}\n />\n <IconButton\n data-testid={`${PAGE_NAME}_stopDelete`}\n className={classes.removeButton}\n onClick={handleRemoveStop}\n >\n <DeleteFourIcon className={classes.deleteIcon} />\n </IconButton>\n {isMoveInputVisible && (\n <TextField\n data-testid={`${PAGE_NAME}_moveInput`}\n type=\"number\"\n variant=\"outlined\"\n value={activeStopScaledPos}\n classes={{ root: classes.posTextfield }}\n InputProps={{\n inputProps: {\n min: fromValue,\n max: toValue,\n step: stopStep,\n maxLength: 10,\n },\n classes: {\n root: classes.posOutlinedRoot,\n input: classes.posOutlinedInput,\n },\n }}\n autoFocus\n onFocus={evt => evt.target.select()}\n onChange={handleStopPositionTextInput}\n onKeyDown={evt => evt.key === 'Enter' && handleColorPickerClose()}\n />\n )}\n </Popover>\n )}\n </div>\n );\n }\n);\n\n// \"Hiding\" react-sizeme so Storybook can get the props type\nexport const GradientPicker = (props: Omit<GradientPickerComponentProps, 'size'>) => (\n <GradientPickerComponent {...props} />\n);\n"],"names":["GradientPickerComponent","withSize","_ref","_activeStop$color","size","_ref$from","from","_ref$to","to","unit","gradientStops","onChange","style","isMoveInputVisible","readonly","noScale","_ref$dataTestid","PAGE_NAME","trackRef","useRef","useState","_useState2","_slicedToArray","_useState","stops","setStops","_useState4","_useState3","paletteAnchorEl","setPaletteAnchorEl","_useState6","_useState5","activeStopId","setActiveStopId","_useState8","_useState7","addCirclePos","setAddCirclePos","classes","useStyles","fromValue","Number","isFinite","toValue","range","useEffect","length","some","stop","index","color","pos","map","_objectSpread","id","uuidv4","gradient","useMemo","calcGradientStyle","containerWidth","_trackRef$current","current","clientWidth","width","emitChange","sorted","sortBy","omit","handleTrackHover","evt","target","currentTarget","rect","getBoundingClientRect","x","clientX","left","handleDragMove","useThrottledCallback","xPos","yPos","isStopped","find","handleRemoveStop","currentStop","newStops","reject","activeStop","handleColorPickerClose","addCircleVisible","undefined","stopStep","getRangeStep","activeStopScaledPos","stopValue","roundToStep","getStopScaledPosition","_jsxs","className","root","children","indicatorContainer","_jsx","Typography","concat","indicator","onMouseEnter","onMouseMove","onMouseLeave","onClick","_evt","tinygradient","item","rgbAt","toHex","newStop","mainBar","background","ref","addCircle","Add","fontSize","addIcon","_ref2","position","Draggable","disabled","axis","bounds","right","top","bottom","onDrag","_e","dragData","y","onStop","e","stopPropagation","handleColorPickerOpen","classNames","circle","highlight","backgroundColor","Tooltip","title","getStopText","placement","height","Boolean","Popover","open","anchorEl","onClose","anchorOrigin","vertical","horizontal","transformOrigin","PaletteChromePicker","newColor","hex","onSizeChange","noop","enableTransparencyPalette","IconButton","removeButton","DeleteFourIcon","deleteIcon","TextField","type","variant","value","posTextfield","InputProps","inputProps","min","max","step","maxLength","posOutlinedRoot","input","posOutlinedInput","autoFocus","onFocus","select","inputElement","setTimeout","posScaled","clamp","onKeyDown","key","GradientPicker","props"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- import{createSvgIcon as o}from"@material-ui/core";import s from"moment";import{HelpIcon as c}from"../../icons/iconParkIcons.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/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{getLocalStorageItem as i}from"../../utils/localStorage.js";import{jsxs as n,jsx as t}from"react/jsx-runtime";var m=o(n("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n("g",{clipPath:"url(#clip0_69385_73795)",children:[t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.3986 4.3986C6.34317 2.45406 9.0317 1.25 12 1.25C14.9683 1.25 17.6568 2.45406 19.6014 4.3986L19.0711 4.92893L19.6014 4.3986C21.5459 6.34317 22.75 9.0317 22.75 12C22.75 14.9683 21.5459 17.6568 19.6014 19.6014C17.6568 21.5459 14.9683 22.75 12 22.75C9.0317 22.75 6.34317 21.5459 4.3986 19.6014L4.92893 19.0711L4.3986 19.6014C2.45406 17.6568 1.25 14.9683 1.25 12C1.25 9.0317 2.45406 6.34317 4.3986 4.3986L4.3986 4.3986ZM12 2.75C9.4455 2.75 7.13403 3.78452 5.45926 5.45926C3.78451 7.13404 2.75 9.4455 2.75 12C2.75 14.5545 3.78452 16.866 5.45926 18.5407C7.13403 20.2155 9.4455 21.25 12 21.25C14.5545 21.25 16.866 20.2155 18.5407 18.5407C20.2155 16.866 21.25 14.5545 21.25 12C21.25 9.4455 20.2155 7.13403 18.5407 5.45926C16.866 3.78452 14.5545 2.75 12 2.75Z",fill:"#BDBDBD"}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.8125C12.6904 18.8125 13.25 18.2529 13.25 17.5625C13.25 16.8722 12.6904 16.3125 12 16.3125C11.3097 16.3125 10.75 16.8722 10.75 17.5625C10.75 18.2529 11.3097 18.8125 12 18.8125Z",fill:"#BDBDBD"}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.25 9.3125C8.25 7.24144 9.92894 5.5625 12 5.5625C14.0711 5.5625 15.75 7.24144 15.75 9.3125C15.75 11.1267 14.4617 12.64 12.75 12.9875V14.3125C12.75 14.7267 12.4142 15.0625 12 15.0625C11.5858 15.0625 11.25 14.7267 11.25 14.3125V12.3125C11.25 11.8983 11.5858 11.5625 12 11.5625C13.2426 11.5625 14.25 10.5551 14.25 9.3125C14.25 8.06986 13.2426 7.0625 12 7.0625C10.7574 7.0625 9.75 8.06986 9.75 9.3125C9.75 9.72671 9.41421 10.0625 9 10.0625C8.58579 10.0625 8.25 9.72671 8.25 9.3125Z",fill:"#BDBDBD"}),t("rect",{x:"15.5",y:"-0.5",width:"9",height:"9",rx:"4.5",fill:"#75DB29"}),t("rect",{x:"15.5",y:"-0.5",width:"9",height:"9",rx:"4.5",stroke:"#212121"})]}),t("defs",{children:t("clipPath",{id:"clip0_69385_73795",children:t("rect",{width:"24",height:"24",fill:"white"})})})]}),"NewContentIcon");function r(o){var n,r=o.appId,e=o.helpContentUpdatedAt,p=null===(n=i("helpCenter"))||void 0===n?void 0:n[r],u=e&&(!p||s(p).isBefore(e));return t(u?m:c,{})}export{r as HelpCenterIcon};
1
+ import{createSvgIcon as o}from"@material-ui/core";import s from"moment";import{HelpIcon as c}from"../../icons/iconParkIcons.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{getLocalStorageItem as i}from"../../utils/localStorage.js";import{jsxs as n,jsx as t}from"react/jsx-runtime";var m=o(n("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n("g",{clipPath:"url(#clip0_69385_73795)",children:[t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.3986 4.3986C6.34317 2.45406 9.0317 1.25 12 1.25C14.9683 1.25 17.6568 2.45406 19.6014 4.3986L19.0711 4.92893L19.6014 4.3986C21.5459 6.34317 22.75 9.0317 22.75 12C22.75 14.9683 21.5459 17.6568 19.6014 19.6014C17.6568 21.5459 14.9683 22.75 12 22.75C9.0317 22.75 6.34317 21.5459 4.3986 19.6014L4.92893 19.0711L4.3986 19.6014C2.45406 17.6568 1.25 14.9683 1.25 12C1.25 9.0317 2.45406 6.34317 4.3986 4.3986L4.3986 4.3986ZM12 2.75C9.4455 2.75 7.13403 3.78452 5.45926 5.45926C3.78451 7.13404 2.75 9.4455 2.75 12C2.75 14.5545 3.78452 16.866 5.45926 18.5407C7.13403 20.2155 9.4455 21.25 12 21.25C14.5545 21.25 16.866 20.2155 18.5407 18.5407C20.2155 16.866 21.25 14.5545 21.25 12C21.25 9.4455 20.2155 7.13403 18.5407 5.45926C16.866 3.78452 14.5545 2.75 12 2.75Z",fill:"#BDBDBD"}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.8125C12.6904 18.8125 13.25 18.2529 13.25 17.5625C13.25 16.8722 12.6904 16.3125 12 16.3125C11.3097 16.3125 10.75 16.8722 10.75 17.5625C10.75 18.2529 11.3097 18.8125 12 18.8125Z",fill:"#BDBDBD"}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.25 9.3125C8.25 7.24144 9.92894 5.5625 12 5.5625C14.0711 5.5625 15.75 7.24144 15.75 9.3125C15.75 11.1267 14.4617 12.64 12.75 12.9875V14.3125C12.75 14.7267 12.4142 15.0625 12 15.0625C11.5858 15.0625 11.25 14.7267 11.25 14.3125V12.3125C11.25 11.8983 11.5858 11.5625 12 11.5625C13.2426 11.5625 14.25 10.5551 14.25 9.3125C14.25 8.06986 13.2426 7.0625 12 7.0625C10.7574 7.0625 9.75 8.06986 9.75 9.3125C9.75 9.72671 9.41421 10.0625 9 10.0625C8.58579 10.0625 8.25 9.72671 8.25 9.3125Z",fill:"#BDBDBD"}),t("rect",{x:"15.5",y:"-0.5",width:"9",height:"9",rx:"4.5",fill:"#75DB29"}),t("rect",{x:"15.5",y:"-0.5",width:"9",height:"9",rx:"4.5",stroke:"#212121"})]}),t("defs",{children:t("clipPath",{id:"clip0_69385_73795",children:t("rect",{width:"24",height:"24",fill:"white"})})})]}),"NewContentIcon");function r(o){var n,r=o.appId,e=o.helpContentUpdatedAt,p=null===(n=i("helpCenter"))||void 0===n?void 0:n[r],u=e&&(!p||s(p).isBefore(e));return t(u?m:c,{})}export{r as HelpCenterIcon};
2
2
  //# sourceMappingURL=HelpCenterIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HelpCenterIcon.js","sources":["../../../src/components/HelpCenter/HelpCenterIcon.js"],"sourcesContent":["import { createSvgIcon } from '@material-ui/core';\nimport moment from 'moment';\n\nimport { HelpIcon } from '~/icons';\nimport { getLocalStorageItem } from '~/utils/localStorage';\n\nconst NewContentIcon = createSvgIcon(\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clipPath=\"url(#clip0_69385_73795)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M4.3986 4.3986C6.34317 2.45406 9.0317 1.25 12 1.25C14.9683 1.25 17.6568 2.45406 19.6014 4.3986L19.0711 4.92893L19.6014 4.3986C21.5459 6.34317 22.75 9.0317 22.75 12C22.75 14.9683 21.5459 17.6568 19.6014 19.6014C17.6568 21.5459 14.9683 22.75 12 22.75C9.0317 22.75 6.34317 21.5459 4.3986 19.6014L4.92893 19.0711L4.3986 19.6014C2.45406 17.6568 1.25 14.9683 1.25 12C1.25 9.0317 2.45406 6.34317 4.3986 4.3986L4.3986 4.3986ZM12 2.75C9.4455 2.75 7.13403 3.78452 5.45926 5.45926C3.78451 7.13404 2.75 9.4455 2.75 12C2.75 14.5545 3.78452 16.866 5.45926 18.5407C7.13403 20.2155 9.4455 21.25 12 21.25C14.5545 21.25 16.866 20.2155 18.5407 18.5407C20.2155 16.866 21.25 14.5545 21.25 12C21.25 9.4455 20.2155 7.13403 18.5407 5.45926C16.866 3.78452 14.5545 2.75 12 2.75Z\"\n fill=\"#BDBDBD\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12 18.8125C12.6904 18.8125 13.25 18.2529 13.25 17.5625C13.25 16.8722 12.6904 16.3125 12 16.3125C11.3097 16.3125 10.75 16.8722 10.75 17.5625C10.75 18.2529 11.3097 18.8125 12 18.8125Z\"\n fill=\"#BDBDBD\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8.25 9.3125C8.25 7.24144 9.92894 5.5625 12 5.5625C14.0711 5.5625 15.75 7.24144 15.75 9.3125C15.75 11.1267 14.4617 12.64 12.75 12.9875V14.3125C12.75 14.7267 12.4142 15.0625 12 15.0625C11.5858 15.0625 11.25 14.7267 11.25 14.3125V12.3125C11.25 11.8983 11.5858 11.5625 12 11.5625C13.2426 11.5625 14.25 10.5551 14.25 9.3125C14.25 8.06986 13.2426 7.0625 12 7.0625C10.7574 7.0625 9.75 8.06986 9.75 9.3125C9.75 9.72671 9.41421 10.0625 9 10.0625C8.58579 10.0625 8.25 9.72671 8.25 9.3125Z\"\n fill=\"#BDBDBD\"\n />\n <rect x=\"15.5\" y=\"-0.5\" width=\"9\" height=\"9\" rx=\"4.5\" fill=\"#75DB29\" />\n <rect x=\"15.5\" y=\"-0.5\" width=\"9\" height=\"9\" rx=\"4.5\" stroke=\"#212121\" />\n </g>\n <defs>\n <clipPath id=\"clip0_69385_73795\">\n <rect width=\"24\" height=\"24\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>,\n 'NewContentIcon'\n);\n\nexport function HelpCenterIcon({ appId, helpContentUpdatedAt }) {\n const helpCenterLastOpenedAt = getLocalStorageItem('helpCenter')?.[appId];\n\n const isNewContent =\n helpContentUpdatedAt &&\n (!helpCenterLastOpenedAt || moment(helpCenterLastOpenedAt).isBefore(helpContentUpdatedAt));\n\n const Icon = isNewContent ? NewContentIcon : HelpIcon;\n return <Icon />;\n}\n"],"names":["NewContentIcon","createSvgIcon","_jsxs","width","height","viewBox","fill","xmlns","children","clipPath","_jsx","fillRule","clipRule","d","x","y","rx","stroke","id","HelpCenterIcon","_ref","_getLocalStorageItem","appId","helpContentUpdatedAt","helpCenterLastOpenedAt","getLocalStorageItem","isNewContent","moment","isBefore","HelpIcon"],"mappings":"+6HAMA,IAAMA,EAAiBC,EACrBC,EAAA,MAAA,CAAKC,MAAM,KAAKC,OAAO,KAAKC,QAAQ,YAAYC,KAAK,OAAOC,MAAM,6BAA4BC,SAC5F,CAAAN,EAAA,IAAA,CAAGO,SAAS,0BAAyBD,SACnC,CAAAE,EAAA,OAAA,CACEC,SAAS,UACTC,SAAS,UACTC,EAAE,mvBACFP,KAAK,YAEPI,EAAA,OAAA,CACEC,SAAS,UACTC,SAAS,UACTC,EAAE,yLACFP,KAAK,YAEPI,EAAA,OAAA,CACEC,SAAS,UACTC,SAAS,UACTC,EAAE,keACFP,KAAK,YAEPI,EAAA,OAAA,CAAMI,EAAE,OAAOC,EAAE,OAAOZ,MAAM,IAAIC,OAAO,IAAIY,GAAG,MAAMV,KAAK,YAC3DI,EAAA,OAAA,CAAMI,EAAE,OAAOC,EAAE,OAAOZ,MAAM,IAAIC,OAAO,IAAIY,GAAG,MAAMC,OAAO,eAE/DP,EAAA,OAAA,CAAAF,SACEE,EAAA,WAAA,CAAUQ,GAAG,oBAAmBV,SAC9BE,EAAA,OAAA,CAAMP,MAAM,KAAKC,OAAO,KAAKE,KAAK,iBAIxC,kBAGK,SAASa,EAAgDC,GAAA,IAAAC,EAA/BC,IAAAA,MAAOC,IAAAA,qBAChCC,EAA0D,UAAjCC,EAAoB,qBAAa,IAAAJ,OAAA,EAAjCA,EAAoCC,GAE7DI,EACJH,KACEC,GAA0BG,EAAOH,GAAwBI,SAASL,IAGtE,OAAOb,EADMgB,EAAe1B,EAAiB6B,EAC9B,CAAA,EACjB"}
1
+ {"version":3,"file":"HelpCenterIcon.js","sources":["../../../src/components/HelpCenter/HelpCenterIcon.js"],"sourcesContent":["import { createSvgIcon } from '@material-ui/core';\nimport moment from 'moment';\n\nimport { HelpIcon } from '~/icons';\nimport { getLocalStorageItem } from '~/utils/localStorage';\n\nconst NewContentIcon = createSvgIcon(\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clipPath=\"url(#clip0_69385_73795)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M4.3986 4.3986C6.34317 2.45406 9.0317 1.25 12 1.25C14.9683 1.25 17.6568 2.45406 19.6014 4.3986L19.0711 4.92893L19.6014 4.3986C21.5459 6.34317 22.75 9.0317 22.75 12C22.75 14.9683 21.5459 17.6568 19.6014 19.6014C17.6568 21.5459 14.9683 22.75 12 22.75C9.0317 22.75 6.34317 21.5459 4.3986 19.6014L4.92893 19.0711L4.3986 19.6014C2.45406 17.6568 1.25 14.9683 1.25 12C1.25 9.0317 2.45406 6.34317 4.3986 4.3986L4.3986 4.3986ZM12 2.75C9.4455 2.75 7.13403 3.78452 5.45926 5.45926C3.78451 7.13404 2.75 9.4455 2.75 12C2.75 14.5545 3.78452 16.866 5.45926 18.5407C7.13403 20.2155 9.4455 21.25 12 21.25C14.5545 21.25 16.866 20.2155 18.5407 18.5407C20.2155 16.866 21.25 14.5545 21.25 12C21.25 9.4455 20.2155 7.13403 18.5407 5.45926C16.866 3.78452 14.5545 2.75 12 2.75Z\"\n fill=\"#BDBDBD\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12 18.8125C12.6904 18.8125 13.25 18.2529 13.25 17.5625C13.25 16.8722 12.6904 16.3125 12 16.3125C11.3097 16.3125 10.75 16.8722 10.75 17.5625C10.75 18.2529 11.3097 18.8125 12 18.8125Z\"\n fill=\"#BDBDBD\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8.25 9.3125C8.25 7.24144 9.92894 5.5625 12 5.5625C14.0711 5.5625 15.75 7.24144 15.75 9.3125C15.75 11.1267 14.4617 12.64 12.75 12.9875V14.3125C12.75 14.7267 12.4142 15.0625 12 15.0625C11.5858 15.0625 11.25 14.7267 11.25 14.3125V12.3125C11.25 11.8983 11.5858 11.5625 12 11.5625C13.2426 11.5625 14.25 10.5551 14.25 9.3125C14.25 8.06986 13.2426 7.0625 12 7.0625C10.7574 7.0625 9.75 8.06986 9.75 9.3125C9.75 9.72671 9.41421 10.0625 9 10.0625C8.58579 10.0625 8.25 9.72671 8.25 9.3125Z\"\n fill=\"#BDBDBD\"\n />\n <rect x=\"15.5\" y=\"-0.5\" width=\"9\" height=\"9\" rx=\"4.5\" fill=\"#75DB29\" />\n <rect x=\"15.5\" y=\"-0.5\" width=\"9\" height=\"9\" rx=\"4.5\" stroke=\"#212121\" />\n </g>\n <defs>\n <clipPath id=\"clip0_69385_73795\">\n <rect width=\"24\" height=\"24\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>,\n 'NewContentIcon'\n);\n\nexport function HelpCenterIcon({ appId, helpContentUpdatedAt }) {\n const helpCenterLastOpenedAt = getLocalStorageItem('helpCenter')?.[appId];\n\n const isNewContent =\n helpContentUpdatedAt &&\n (!helpCenterLastOpenedAt || moment(helpCenterLastOpenedAt).isBefore(helpContentUpdatedAt));\n\n const Icon = isNewContent ? NewContentIcon : HelpIcon;\n return <Icon />;\n}\n"],"names":["NewContentIcon","createSvgIcon","_jsxs","width","height","viewBox","fill","xmlns","children","clipPath","_jsx","fillRule","clipRule","d","x","y","rx","stroke","id","HelpCenterIcon","_ref","_getLocalStorageItem","appId","helpContentUpdatedAt","helpCenterLastOpenedAt","getLocalStorageItem","isNewContent","moment","isBefore","HelpIcon"],"mappings":"shIAMA,IAAMA,EAAiBC,EACrBC,EAAA,MAAA,CAAKC,MAAM,KAAKC,OAAO,KAAKC,QAAQ,YAAYC,KAAK,OAAOC,MAAM,6BAA4BC,SAC5F,CAAAN,EAAA,IAAA,CAAGO,SAAS,0BAAyBD,SACnC,CAAAE,EAAA,OAAA,CACEC,SAAS,UACTC,SAAS,UACTC,EAAE,mvBACFP,KAAK,YAEPI,EAAA,OAAA,CACEC,SAAS,UACTC,SAAS,UACTC,EAAE,yLACFP,KAAK,YAEPI,EAAA,OAAA,CACEC,SAAS,UACTC,SAAS,UACTC,EAAE,keACFP,KAAK,YAEPI,EAAA,OAAA,CAAMI,EAAE,OAAOC,EAAE,OAAOZ,MAAM,IAAIC,OAAO,IAAIY,GAAG,MAAMV,KAAK,YAC3DI,EAAA,OAAA,CAAMI,EAAE,OAAOC,EAAE,OAAOZ,MAAM,IAAIC,OAAO,IAAIY,GAAG,MAAMC,OAAO,eAE/DP,EAAA,OAAA,CAAAF,SACEE,EAAA,WAAA,CAAUQ,GAAG,oBAAmBV,SAC9BE,EAAA,OAAA,CAAMP,MAAM,KAAKC,OAAO,KAAKE,KAAK,iBAIxC,kBAGK,SAASa,EAAgDC,GAAA,IAAAC,EAA/BC,IAAAA,MAAOC,IAAAA,qBAChCC,EAA0D,UAAjCC,EAAoB,qBAAa,IAAAJ,OAAA,EAAjCA,EAAoCC,GAE7DI,EACJH,KACEC,GAA0BG,EAAOH,GAAwBI,SAASL,IAGtE,OAAOb,EADMgB,EAAe1B,EAAiB6B,EAC9B,CAAA,EACjB"}
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/slicedToArray";import{useRef as s,useState as c,useEffect as n,Children as i,isValidElement as t,cloneElement as m}from"react";import r from"classnames";import e from"../Button/components/Button/index.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"moment-timezone";import"@material-ui/core";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import{CloseIcon as p}from"../../icons/iconParkIcons.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/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{jsxs as u,Fragment as l,jsx as a}from"react/jsx-runtime";import{Regular14 as j}from"../Typography.js";import{Popper as I}from"../Popper/Popper.js";import d from"../IconButton/index.js";import{useStyles as h}from"./styles.js";var C=function(C){var f=h(),b=s(),F=c(),v=o(F,2),O=v[0],P=v[1],x=c(),A=o(x,2),B=A[0],g=A[1];if(n((function(){setTimeout((function(){return g(C.open?C.anchorEl||b.current:void 0)}),100)})),!C.anchorEl&&i.count(C.children)>1)throw new Error("Hint expects a single reffable element as a child");var k=C.anchorEl?C.children:i.map(C.children,(function(o){return t(o)?m(o,{ref:b}):o}));return u(l,{children:[k,u(I,{className:r(f.popper,C.className),transition:!0,open:!!B,anchorEl:B,placement:C.placement,modifiers:{flip:{enabled:!0},arrow:{enabled:!!O,element:O}},children:[a("div",{ref:P,className:f.arrow}),u("div",{className:f.tooltip,children:[C.title&&a("span",{className:r(f.title,C.onClose&&f.hasClose),children:C.title}),C.onClose&&a(d,{onClick:C.onClose,className:f.close,size:"small",children:a(p,{})}),C.content&&a(j,{className:f.content,children:C.content}),C.onConfirm&&a(e,{color:"inherit",className:f.button,onClick:C.onConfirm,children:C.confirmText||"Got It"})]})]})]})};export{C as Hint};
1
+ import o from"@babel/runtime/helpers/slicedToArray";import{useRef as s,useState as c,useEffect as n,Children as i,isValidElement as t,cloneElement as m}from"react";import r from"classnames";import e from"../Button/components/Button/index.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"moment-timezone";import"@material-ui/core";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import{CloseIcon as p}from"../../icons/iconParkIcons.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{jsxs as u,Fragment as l,jsx as a}from"react/jsx-runtime";import{Regular14 as j}from"../Typography.js";import{Popper as I}from"../Popper/Popper.js";import d from"../IconButton/index.js";import{useStyles as h}from"./styles.js";var C=function(C){var f=h(),b=s(),F=c(),v=o(F,2),O=v[0],P=v[1],x=c(),A=o(x,2),B=A[0],g=A[1];if(n((function(){setTimeout((function(){return g(C.open?C.anchorEl||b.current:void 0)}),100)})),!C.anchorEl&&i.count(C.children)>1)throw new Error("Hint expects a single reffable element as a child");var k=C.anchorEl?C.children:i.map(C.children,(function(o){return t(o)?m(o,{ref:b}):o}));return u(l,{children:[k,u(I,{className:r(f.popper,C.className),transition:!0,open:!!B,anchorEl:B,placement:C.placement,modifiers:{flip:{enabled:!0},arrow:{enabled:!!O,element:O}},children:[a("div",{ref:P,className:f.arrow}),u("div",{className:f.tooltip,children:[C.title&&a("span",{className:r(f.title,C.onClose&&f.hasClose),children:C.title}),C.onClose&&a(d,{onClick:C.onClose,className:f.close,size:"small",children:a(p,{})}),C.content&&a(j,{className:f.content,children:C.content}),C.onConfirm&&a(e,{color:"inherit",className:f.button,onClick:C.onConfirm,children:C.confirmText||"Got It"})]})]})]})};export{C as Hint};
2
2
  //# sourceMappingURL=Hint.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Hint.js","sources":["../../../src/components/Hint/Hint.tsx"],"sourcesContent":["import {\n Children,\n cloneElement,\n isValidElement,\n ReactElement,\n ReactNode,\n useEffect,\n useRef,\n useState,\n} from 'react';\nimport classNames from 'classnames';\nimport { PopperProps } from '@material-ui/core';\n\nimport Button from '../Button';\nimport { Regular14 } from '../Typography';\nimport { Popper } from '../Popper';\nimport IconButton from '../IconButton';\n\nimport { useStyles } from './styles';\n\nimport { CloseIcon } from '~/icons';\n\ntype HintProps = {\n open: boolean;\n /**\n * ⚠️ Has to be a <i>single</i> reffable child (use `forwardRef` for custom components)\n */\n children?: ReactElement;\n title?: ReactNode;\n content?: ReactNode;\n /**\n * @default Got It\n */\n confirmText?: ReactNode;\n /**\n * Action button is shown only if this prop is present\n */\n onConfirm?: () => void;\n /**\n * Check [Positioned Popper](https://v4.mui.com/components/popper/#positioned-popper) example for more info\n * @default bottom\n */\n placement?: PopperProps['placement'];\n /**\n * Allows anchoring to arbitrary element\n */\n anchorEl?: HTMLElement | null;\n className?: string;\n /**\n * Close button is shown only when this prop is present\n */\n onClose?: () => void;\n};\n\nexport const Hint = (props: HintProps) => {\n const styles = useStyles();\n\n const childAnchorRef = useRef<HTMLElement>();\n const [arrowRef, setArrowRef] = useState();\n const [anchor, setAnchor] = useState<HTMLElement>();\n\n // This is needed for Popper to properly position itself on initial render\n useEffect(() => {\n setTimeout(\n () => setAnchor(props.open ? props.anchorEl || childAnchorRef.current : undefined),\n 100\n );\n });\n\n if (!props.anchorEl && Children.count(props.children) > 1) {\n throw new Error('Hint expects a single reffable element as a child');\n }\n\n const childrenWithRef = props.anchorEl\n ? props.children\n : Children.map(props.children, child => {\n // Checking isValidElement is the safe way and avoids a typescript error too.\n if (isValidElement(child)) {\n return cloneElement(child, { ref: childAnchorRef } as any);\n }\n\n return child;\n });\n\n return (\n <>\n {childrenWithRef}\n <Popper\n className={classNames(styles.popper, props.className)}\n transition\n open={!!anchor}\n anchorEl={anchor as HTMLElement}\n placement={props.placement}\n modifiers={{\n flip: {\n enabled: true,\n },\n arrow: {\n enabled: !!arrowRef,\n element: arrowRef,\n },\n }}\n >\n <div ref={setArrowRef as any} className={styles.arrow} />\n <div className={styles.tooltip}>\n {props.title && (\n <span className={classNames(styles.title, props.onClose && styles.hasClose)}>\n {props.title}\n </span>\n )}\n {props.onClose && (\n <IconButton onClick={props.onClose} className={styles.close} size=\"small\">\n <CloseIcon />\n </IconButton>\n )}\n {props.content && <Regular14 className={styles.content}>{props.content}</Regular14>}\n {props.onConfirm && (\n <Button color=\"inherit\" className={styles.button} onClick={props.onConfirm}>\n {props.confirmText || 'Got It'}\n </Button>\n )}\n </div>\n </Popper>\n </>\n );\n};\n"],"names":["Hint","props","styles","useStyles","childAnchorRef","useRef","_useState","useState","_useState2","_slicedToArray","arrowRef","setArrowRef","_useState3","_useState4","anchor","setAnchor","useEffect","setTimeout","open","anchorEl","current","undefined","Children","count","children","Error","childrenWithRef","map","child","isValidElement","cloneElement","ref","_jsxs","_Fragment","Popper","className","classNames","popper","transition","placement","modifiers","flip","enabled","arrow","element","_jsx","tooltip","title","onClose","hasClose","IconButton","onClick","close","size","CloseIcon","content","Regular14","onConfirm","Button","color","button","confirmText"],"mappings":"g/IAsDaA,EAAO,SAACC,GACnB,IAAMC,EAASC,IAETC,EAAiBC,IACvBC,EAAgCC,IAAUC,EAAAC,EAAAH,EAAA,GAAnCI,EAAQF,EAAA,GAAEG,EAAWH,EAAA,GAC5BI,EAA4BL,IAAuBM,EAAAJ,EAAAG,EAAA,GAA5CE,EAAMD,EAAA,GAAEE,EAASF,EAAA,GAUxB,GAPAG,GAAU,WACRC,YACE,WAAA,OAAMF,EAAUd,EAAMiB,KAAOjB,EAAMkB,UAAYf,EAAegB,aAAUC,EAAU,GAClF,IAEJ,KAEKpB,EAAMkB,UAAYG,EAASC,MAAMtB,EAAMuB,UAAY,EACtD,MAAM,IAAIC,MAAM,qDAGlB,IAAMC,EAAkBzB,EAAMkB,SAC1BlB,EAAMuB,SACNF,EAASK,IAAI1B,EAAMuB,UAAU,SAAAI,GAE3B,OAAIC,EAAeD,GACVE,EAAaF,EAAO,CAAEG,IAAK3B,IAG7BwB,CACT,IAEJ,OACEI,EAAAC,EAAA,CAAAT,SACGE,CAAAA,EACDM,EAACE,EAAM,CACLC,UAAWC,EAAWlC,EAAOmC,OAAQpC,EAAMkC,WAC3CG,YAAU,EACVpB,OAAQJ,EACRK,SAAUL,EACVyB,UAAWtC,EAAMsC,UACjBC,UAAW,CACTC,KAAM,CACJC,SAAS,GAEXC,MAAO,CACLD,UAAWhC,EACXkC,QAASlC,IAEXc,SAEF,CAAAqB,EAAA,MAAA,CAAKd,IAAKpB,EAAoBwB,UAAWjC,EAAOyC,QAChDX,EAAA,MAAA,CAAKG,UAAWjC,EAAO4C,QAAQtB,SAC5BvB,CAAAA,EAAM8C,OACLF,EAAA,OAAA,CAAMV,UAAWC,EAAWlC,EAAO6C,MAAO9C,EAAM+C,SAAW9C,EAAO+C,UAAUzB,SACzEvB,EAAM8C,QAGV9C,EAAM+C,SACLH,EAACK,EAAU,CAACC,QAASlD,EAAM+C,QAASb,UAAWjC,EAAOkD,MAAOC,KAAK,QAAO7B,SACvEqB,EAACS,EAAS,MAGbrD,EAAMsD,SAAWV,EAACW,EAAS,CAACrB,UAAWjC,EAAOqD,QAAQ/B,SAAEvB,EAAMsD,UAC9DtD,EAAMwD,WACLZ,EAACa,EAAM,CAACC,MAAM,UAAUxB,UAAWjC,EAAO0D,OAAQT,QAASlD,EAAMwD,UAAUjC,SACxEvB,EAAM4D,aAAe,mBAOpC"}
1
+ {"version":3,"file":"Hint.js","sources":["../../../src/components/Hint/Hint.tsx"],"sourcesContent":["import {\n Children,\n cloneElement,\n isValidElement,\n ReactElement,\n ReactNode,\n useEffect,\n useRef,\n useState,\n} from 'react';\nimport classNames from 'classnames';\nimport { PopperProps } from '@material-ui/core';\n\nimport Button from '../Button';\nimport { Regular14 } from '../Typography';\nimport { Popper } from '../Popper';\nimport IconButton from '../IconButton';\n\nimport { useStyles } from './styles';\n\nimport { CloseIcon } from '~/icons';\n\ntype HintProps = {\n open: boolean;\n /**\n * ⚠️ Has to be a <i>single</i> reffable child (use `forwardRef` for custom components)\n */\n children?: ReactElement;\n title?: ReactNode;\n content?: ReactNode;\n /**\n * @default Got It\n */\n confirmText?: ReactNode;\n /**\n * Action button is shown only if this prop is present\n */\n onConfirm?: () => void;\n /**\n * Check [Positioned Popper](https://v4.mui.com/components/popper/#positioned-popper) example for more info\n * @default bottom\n */\n placement?: PopperProps['placement'];\n /**\n * Allows anchoring to arbitrary element\n */\n anchorEl?: HTMLElement | null;\n className?: string;\n /**\n * Close button is shown only when this prop is present\n */\n onClose?: () => void;\n};\n\nexport const Hint = (props: HintProps) => {\n const styles = useStyles();\n\n const childAnchorRef = useRef<HTMLElement>();\n const [arrowRef, setArrowRef] = useState();\n const [anchor, setAnchor] = useState<HTMLElement>();\n\n // This is needed for Popper to properly position itself on initial render\n useEffect(() => {\n setTimeout(\n () => setAnchor(props.open ? props.anchorEl || childAnchorRef.current : undefined),\n 100\n );\n });\n\n if (!props.anchorEl && Children.count(props.children) > 1) {\n throw new Error('Hint expects a single reffable element as a child');\n }\n\n const childrenWithRef = props.anchorEl\n ? props.children\n : Children.map(props.children, child => {\n // Checking isValidElement is the safe way and avoids a typescript error too.\n if (isValidElement(child)) {\n return cloneElement(child, { ref: childAnchorRef } as any);\n }\n\n return child;\n });\n\n return (\n <>\n {childrenWithRef}\n <Popper\n className={classNames(styles.popper, props.className)}\n transition\n open={!!anchor}\n anchorEl={anchor as HTMLElement}\n placement={props.placement}\n modifiers={{\n flip: {\n enabled: true,\n },\n arrow: {\n enabled: !!arrowRef,\n element: arrowRef,\n },\n }}\n >\n <div ref={setArrowRef as any} className={styles.arrow} />\n <div className={styles.tooltip}>\n {props.title && (\n <span className={classNames(styles.title, props.onClose && styles.hasClose)}>\n {props.title}\n </span>\n )}\n {props.onClose && (\n <IconButton onClick={props.onClose} className={styles.close} size=\"small\">\n <CloseIcon />\n </IconButton>\n )}\n {props.content && <Regular14 className={styles.content}>{props.content}</Regular14>}\n {props.onConfirm && (\n <Button color=\"inherit\" className={styles.button} onClick={props.onConfirm}>\n {props.confirmText || 'Got It'}\n </Button>\n )}\n </div>\n </Popper>\n </>\n );\n};\n"],"names":["Hint","props","styles","useStyles","childAnchorRef","useRef","_useState","useState","_useState2","_slicedToArray","arrowRef","setArrowRef","_useState3","_useState4","anchor","setAnchor","useEffect","setTimeout","open","anchorEl","current","undefined","Children","count","children","Error","childrenWithRef","map","child","isValidElement","cloneElement","ref","_jsxs","_Fragment","Popper","className","classNames","popper","transition","placement","modifiers","flip","enabled","arrow","element","_jsx","tooltip","title","onClose","hasClose","IconButton","onClick","close","size","CloseIcon","content","Regular14","onConfirm","Button","color","button","confirmText"],"mappings":"ulJAsDaA,EAAO,SAACC,GACnB,IAAMC,EAASC,IAETC,EAAiBC,IACvBC,EAAgCC,IAAUC,EAAAC,EAAAH,EAAA,GAAnCI,EAAQF,EAAA,GAAEG,EAAWH,EAAA,GAC5BI,EAA4BL,IAAuBM,EAAAJ,EAAAG,EAAA,GAA5CE,EAAMD,EAAA,GAAEE,EAASF,EAAA,GAUxB,GAPAG,GAAU,WACRC,YACE,WAAA,OAAMF,EAAUd,EAAMiB,KAAOjB,EAAMkB,UAAYf,EAAegB,aAAUC,EAAU,GAClF,IAEJ,KAEKpB,EAAMkB,UAAYG,EAASC,MAAMtB,EAAMuB,UAAY,EACtD,MAAM,IAAIC,MAAM,qDAGlB,IAAMC,EAAkBzB,EAAMkB,SAC1BlB,EAAMuB,SACNF,EAASK,IAAI1B,EAAMuB,UAAU,SAAAI,GAE3B,OAAIC,EAAeD,GACVE,EAAaF,EAAO,CAAEG,IAAK3B,IAG7BwB,CACT,IAEJ,OACEI,EAAAC,EAAA,CAAAT,SACGE,CAAAA,EACDM,EAACE,EAAM,CACLC,UAAWC,EAAWlC,EAAOmC,OAAQpC,EAAMkC,WAC3CG,YAAU,EACVpB,OAAQJ,EACRK,SAAUL,EACVyB,UAAWtC,EAAMsC,UACjBC,UAAW,CACTC,KAAM,CACJC,SAAS,GAEXC,MAAO,CACLD,UAAWhC,EACXkC,QAASlC,IAEXc,SAEF,CAAAqB,EAAA,MAAA,CAAKd,IAAKpB,EAAoBwB,UAAWjC,EAAOyC,QAChDX,EAAA,MAAA,CAAKG,UAAWjC,EAAO4C,QAAQtB,SAC5BvB,CAAAA,EAAM8C,OACLF,EAAA,OAAA,CAAMV,UAAWC,EAAWlC,EAAO6C,MAAO9C,EAAM+C,SAAW9C,EAAO+C,UAAUzB,SACzEvB,EAAM8C,QAGV9C,EAAM+C,SACLH,EAACK,EAAU,CAACC,QAASlD,EAAM+C,QAASb,UAAWjC,EAAOkD,MAAOC,KAAK,QAAO7B,SACvEqB,EAACS,EAAS,MAGbrD,EAAMsD,SAAWV,EAACW,EAAS,CAACrB,UAAWjC,EAAOqD,QAAQ/B,SAAEvB,EAAMsD,UAC9DtD,EAAMwD,WACLZ,EAACa,EAAM,CAACC,MAAM,UAAUxB,UAAWjC,EAAO0D,OAAQT,QAASlD,EAAMwD,UAAUjC,SACxEvB,EAAM4D,aAAe,mBAOpC"}
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/objectWithoutProperties";import c from"classnames";import{noop as i}from"lodash";import{Modal as n}from"@material-ui/core";import t from"./CorvaModal.scss.js";import{CloseSmallIcon as e}from"../../icons/iconParkIcons.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/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{isMobileDetected as r,isNativeDetected as m}from"../../utils/mobileDetect.js";import a 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{CLASSNAMES as p}from"../../constants/classNames.js";import{jsx as l,jsxs as u}from"react/jsx-runtime";var j=["actions","actionsClassName","children","contentClassName","contentContainerClassName","isCloseIconHidden","isMobile","isNative","modalTitleClassName","closeIconClassName","onClose","open","rootClassName","size","stickyFooterClassName","title","type","contentRef","data-testid"];function d(o,s){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),c.push.apply(c,i)}return c}function I(s){for(var c=1;c<arguments.length;c++){var i=null!=arguments[c]?arguments[c]:{};c%2?d(Object(i),!0).forEach((function(c){o(s,c,i[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var C={filters:"Filters",settings:"Settings"};function b(o){var d=o.actions,b=o.actionsClassName,h=o.children,f=o.contentClassName,v=o.contentContainerClassName,O=o.isCloseIconHidden,N=void 0!==O&&O,g=o.isMobile,F=void 0===g?r:g,P=o.isNative,y=void 0===P?m:P,M=o.modalTitleClassName,k=o.closeIconClassName,A=o.onClose,D=void 0===A?i:A,x=o.open,R=o.rootClassName,S=o.size,w=o.stickyFooterClassName,E=o.title,T=o.type,z=o.contentRef,G=o["data-testid"],B=void 0===G?"CorvaModal":G,U=s(o,j),W=y||F,q=E||(T?C[T]:void 0);return l(n,I(I({open:null!=x&&x,onClose:D,className:c(!W&&"c-modal",t.modalWrapper,R,p.modal)},U),{},{children:u("div",{className:c(t.modalContainer,W&&t.modalContainerMobile,S&&t[S],v),children:[q&&u("div",{className:c(t.title,W&&t.titleMobile,M),children:[l("div",{className:c(t.titleText),children:q}),(!N||T)&&l(a,{className:k,tooltipProps:{title:"Close"},onClick:D,"data-testid":"".concat(B,"_closeButton"),children:l(e,{size:24})})]}),h&&l("div",{ref:z,className:c(t.modalContent,W&&t.modalContentMobile,f),children:h}),d&&l("div",{className:c(t.modalActions,W&&t.modalActionsMobile,w,b),children:d})]})}))}export{b as CorvaModal};
1
+ import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/objectWithoutProperties";import c from"classnames";import{noop as i}from"lodash";import{Modal as n}from"@material-ui/core";import t from"./CorvaModal.scss.js";import{CloseSmallIcon as e}from"../../icons/iconParkIcons.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{isMobileDetected as r,isNativeDetected as m}from"../../utils/mobileDetect.js";import a 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{CLASSNAMES as p}from"../../constants/classNames.js";import{jsx as l,jsxs as u}from"react/jsx-runtime";var j=["actions","actionsClassName","children","contentClassName","contentContainerClassName","isCloseIconHidden","isMobile","isNative","modalTitleClassName","closeIconClassName","onClose","open","rootClassName","size","stickyFooterClassName","title","type","contentRef","data-testid"];function d(o,s){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),c.push.apply(c,i)}return c}function I(s){for(var c=1;c<arguments.length;c++){var i=null!=arguments[c]?arguments[c]:{};c%2?d(Object(i),!0).forEach((function(c){o(s,c,i[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var C={filters:"Filters",settings:"Settings"};function b(o){var d=o.actions,b=o.actionsClassName,h=o.children,f=o.contentClassName,O=o.contentContainerClassName,v=o.isCloseIconHidden,N=void 0!==v&&v,P=o.isMobile,g=void 0===P?r:P,F=o.isNative,y=void 0===F?m:F,M=o.modalTitleClassName,k=o.closeIconClassName,A=o.onClose,D=void 0===A?i:A,x=o.open,R=o.rootClassName,S=o.size,w=o.stickyFooterClassName,E=o.title,T=o.type,z=o.contentRef,G=o["data-testid"],B=void 0===G?"CorvaModal":G,U=s(o,j),W=y||g,q=E||(T?C[T]:void 0);return l(n,I(I({open:null!=x&&x,onClose:D,className:c(!W&&"c-modal",t.modalWrapper,R,p.modal)},U),{},{children:u("div",{className:c(t.modalContainer,W&&t.modalContainerMobile,S&&t[S],O),children:[q&&u("div",{className:c(t.title,W&&t.titleMobile,M),children:[l("div",{className:c(t.titleText),children:q}),(!N||T)&&l(a,{className:k,tooltipProps:{title:"Close"},onClick:D,"data-testid":"".concat(B,"_closeButton"),children:l(e,{size:24})})]}),h&&l("div",{ref:z,className:c(t.modalContent,W&&t.modalContentMobile,f),children:h}),d&&l("div",{className:c(t.modalActions,W&&t.modalActionsMobile,w,b),children:d})]})}))}export{b as CorvaModal};
2
2
  //# sourceMappingURL=CorvaModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CorvaModal.js","sources":["../../../src/components/Modal/CorvaModal.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { noop } from 'lodash';\nimport { Modal as MUIModal } from '@material-ui/core';\n\nimport styles from './CorvaModal.scss';\n\nimport { CloseSmallIcon } from '~/icons';\nimport { isMobileDetected, isNativeDetected } from '~/utils/mobileDetect';\nimport { ModalProps } from '~/components/Modal/types';\nimport IconButton from '~/components/IconButton';\nimport { CLASSNAMES } from '~/constants';\n\nconst DEFAULT_TITLES = {\n filters: 'Filters',\n settings: 'Settings',\n};\n\nexport function CorvaModal({\n actions,\n actionsClassName,\n children,\n contentClassName,\n contentContainerClassName,\n isCloseIconHidden = false,\n isMobile = isMobileDetected,\n isNative = isNativeDetected,\n modalTitleClassName,\n closeIconClassName,\n onClose = noop,\n open,\n rootClassName,\n size,\n stickyFooterClassName,\n title,\n type,\n contentRef,\n 'data-testid': PAGE_NAME = 'CorvaModal',\n ...otherProps\n}: ModalProps): JSX.Element {\n const isMobileOrNative = isNative || isMobile;\n const modalTitle = title || (type ? DEFAULT_TITLES[type] : undefined);\n\n return (\n <MUIModal\n open={open ?? false}\n onClose={onClose}\n className={classNames(\n !isMobileOrNative && 'c-modal',\n styles.modalWrapper,\n rootClassName,\n CLASSNAMES.modal\n )}\n {...otherProps}\n >\n <div\n className={classNames(\n styles.modalContainer,\n isMobileOrNative && styles.modalContainerMobile,\n size && styles[size],\n contentContainerClassName\n )}\n >\n {modalTitle && (\n <div\n className={classNames(\n styles.title,\n isMobileOrNative && styles.titleMobile,\n modalTitleClassName\n )}\n >\n <div className={classNames(styles.titleText)}>{modalTitle}</div>\n {(!isCloseIconHidden || type) && (\n <IconButton\n className={closeIconClassName}\n tooltipProps={{ title: 'Close' }}\n onClick={onClose}\n data-testid={`${PAGE_NAME}_closeButton`}\n >\n <CloseSmallIcon size={24} />\n </IconButton>\n )}\n </div>\n )}\n\n {children && (\n <div\n ref={contentRef}\n className={classNames(\n styles.modalContent,\n isMobileOrNative && styles.modalContentMobile,\n contentClassName\n )}\n >\n {children}\n </div>\n )}\n\n {actions && (\n <div\n className={classNames(\n styles.modalActions,\n isMobileOrNative && styles.modalActionsMobile,\n stickyFooterClassName,\n actionsClassName\n )}\n >\n {actions}\n </div>\n )}\n </div>\n </MUIModal>\n );\n}\n"],"names":["DEFAULT_TITLES","filters","settings","CorvaModal","_ref","actions","actionsClassName","children","contentClassName","contentContainerClassName","_ref$isCloseIconHidde","isCloseIconHidden","_ref$isMobile","isMobile","isMobileDetected","_ref$isNative","isNative","isNativeDetected","modalTitleClassName","closeIconClassName","_ref$onClose","onClose","noop","open","rootClassName","size","stickyFooterClassName","title","type","contentRef","_ref$dataTestid","PAGE_NAME","otherProps","_objectWithoutProperties","_excluded","isMobileOrNative","modalTitle","undefined","_jsx","MUIModal","_objectSpread","className","classNames","styles","modalWrapper","CLASSNAMES","modal","_jsxs","modalContainer","modalContainerMobile","titleMobile","titleText","IconButton","tooltipProps","onClick","concat","CloseSmallIcon","ref","modalContent","modalContentMobile","modalActions","modalActionsMobile"],"mappings":"y/KAYA,IAAMA,EAAiB,CACrBC,QAAS,UACTC,SAAU,YAGL,SAASC,EAqBYC,GAAA,IApB1BC,IAAAA,QACAC,IAAAA,iBACAC,IAAAA,SACAC,IAAAA,iBACAC,IAAAA,0BAAyBC,EAAAN,EACzBO,kBAAAA,cAAyBD,EAAAE,EAAAR,EACzBS,SAAAA,aAAWC,EAAgBF,EAAAG,EAAAX,EAC3BY,SAAAA,aAAWC,EAAgBF,EAC3BG,IAAAA,oBACAC,IAAAA,mBAAkBC,EAAAhB,EAClBiB,QAAAA,aAAUC,EAAIF,EACdG,IAAAA,KACAC,IAAAA,cACAC,IAAAA,KACAC,IAAAA,sBACAC,IAAAA,MACAC,IAAAA,KACAC,IAAAA,WAAUC,EAAA1B,EACV,eAAe2B,aAAY,aAAYD,EACpCE,EAAUC,EAAA7B,EAAA8B,GAEPC,EAAmBnB,GAAYH,EAC/BuB,EAAaT,IAAUC,EAAO5B,EAAe4B,QAAQS,GAE3D,OACEC,EAACC,EAAQC,EAAAA,EAAA,CACPjB,KAAMA,SAAAA,EACNF,QAASA,EACToB,UAAWC,GACRP,GAAoB,UACrBQ,EAAOC,aACPpB,EACAqB,EAAWC,QAETd,GAAU,GAAA,CAAAzB,SAEdwC,EAAA,MAAA,CACEN,UAAWC,EACTC,EAAOK,eACPb,GAAoBQ,EAAOM,qBAC3BxB,GAAQkB,EAAOlB,GACfhB,GACAF,SAAA,CAED6B,GACCW,EAAA,MAAA,CACEN,UAAWC,EACTC,EAAOhB,MACPQ,GAAoBQ,EAAOO,YAC3BhC,GACAX,SAEF,CAAA+B,EAAA,MAAA,CAAKG,UAAWC,EAAWC,EAAOQ,WAAW5C,SAAE6B,MAC5CzB,GAAqBiB,IACtBU,EAACc,EAAU,CACTX,UAAWtB,EACXkC,aAAc,CAAE1B,MAAO,SACvB2B,QAASjC,EACT,cAAA,GAAAkC,OAAgBxB,EAAwB,gBAAAxB,SAExC+B,EAACkB,EAAc,CAAC/B,KAAM,UAM7BlB,GACC+B,EAAA,MAAA,CACEmB,IAAK5B,EACLY,UAAWC,EACTC,EAAOe,aACPvB,GAAoBQ,EAAOgB,mBAC3BnD,GACAD,SAEDA,IAIJF,GACCiC,EAAA,MAAA,CACEG,UAAWC,EACTC,EAAOiB,aACPzB,GAAoBQ,EAAOkB,mBAC3BnC,EACApB,GACAC,SAEDF,SAMb"}
1
+ {"version":3,"file":"CorvaModal.js","sources":["../../../src/components/Modal/CorvaModal.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { noop } from 'lodash';\nimport { Modal as MUIModal } from '@material-ui/core';\n\nimport styles from './CorvaModal.scss';\n\nimport { CloseSmallIcon } from '~/icons';\nimport { isMobileDetected, isNativeDetected } from '~/utils/mobileDetect';\nimport { ModalProps } from '~/components/Modal/types';\nimport IconButton from '~/components/IconButton';\nimport { CLASSNAMES } from '~/constants';\n\nconst DEFAULT_TITLES = {\n filters: 'Filters',\n settings: 'Settings',\n};\n\nexport function CorvaModal({\n actions,\n actionsClassName,\n children,\n contentClassName,\n contentContainerClassName,\n isCloseIconHidden = false,\n isMobile = isMobileDetected,\n isNative = isNativeDetected,\n modalTitleClassName,\n closeIconClassName,\n onClose = noop,\n open,\n rootClassName,\n size,\n stickyFooterClassName,\n title,\n type,\n contentRef,\n 'data-testid': PAGE_NAME = 'CorvaModal',\n ...otherProps\n}: ModalProps): JSX.Element {\n const isMobileOrNative = isNative || isMobile;\n const modalTitle = title || (type ? DEFAULT_TITLES[type] : undefined);\n\n return (\n <MUIModal\n open={open ?? false}\n onClose={onClose}\n className={classNames(\n !isMobileOrNative && 'c-modal',\n styles.modalWrapper,\n rootClassName,\n CLASSNAMES.modal\n )}\n {...otherProps}\n >\n <div\n className={classNames(\n styles.modalContainer,\n isMobileOrNative && styles.modalContainerMobile,\n size && styles[size],\n contentContainerClassName\n )}\n >\n {modalTitle && (\n <div\n className={classNames(\n styles.title,\n isMobileOrNative && styles.titleMobile,\n modalTitleClassName\n )}\n >\n <div className={classNames(styles.titleText)}>{modalTitle}</div>\n {(!isCloseIconHidden || type) && (\n <IconButton\n className={closeIconClassName}\n tooltipProps={{ title: 'Close' }}\n onClick={onClose}\n data-testid={`${PAGE_NAME}_closeButton`}\n >\n <CloseSmallIcon size={24} />\n </IconButton>\n )}\n </div>\n )}\n\n {children && (\n <div\n ref={contentRef}\n className={classNames(\n styles.modalContent,\n isMobileOrNative && styles.modalContentMobile,\n contentClassName\n )}\n >\n {children}\n </div>\n )}\n\n {actions && (\n <div\n className={classNames(\n styles.modalActions,\n isMobileOrNative && styles.modalActionsMobile,\n stickyFooterClassName,\n actionsClassName\n )}\n >\n {actions}\n </div>\n )}\n </div>\n </MUIModal>\n );\n}\n"],"names":["DEFAULT_TITLES","filters","settings","CorvaModal","_ref","actions","actionsClassName","children","contentClassName","contentContainerClassName","_ref$isCloseIconHidde","isCloseIconHidden","_ref$isMobile","isMobile","isMobileDetected","_ref$isNative","isNative","isNativeDetected","modalTitleClassName","closeIconClassName","_ref$onClose","onClose","noop","open","rootClassName","size","stickyFooterClassName","title","type","contentRef","_ref$dataTestid","PAGE_NAME","otherProps","_objectWithoutProperties","_excluded","isMobileOrNative","modalTitle","undefined","_jsx","MUIModal","_objectSpread","className","classNames","styles","modalWrapper","CLASSNAMES","modal","_jsxs","modalContainer","modalContainerMobile","titleMobile","titleText","IconButton","tooltipProps","onClick","concat","CloseSmallIcon","ref","modalContent","modalContentMobile","modalActions","modalActionsMobile"],"mappings":"gmLAYA,IAAMA,EAAiB,CACrBC,QAAS,UACTC,SAAU,YAGL,SAASC,EAqBYC,GAAA,IApB1BC,IAAAA,QACAC,IAAAA,iBACAC,IAAAA,SACAC,IAAAA,iBACAC,IAAAA,0BAAyBC,EAAAN,EACzBO,kBAAAA,cAAyBD,EAAAE,EAAAR,EACzBS,SAAAA,aAAWC,EAAgBF,EAAAG,EAAAX,EAC3BY,SAAAA,aAAWC,EAAgBF,EAC3BG,IAAAA,oBACAC,IAAAA,mBAAkBC,EAAAhB,EAClBiB,QAAAA,aAAUC,EAAIF,EACdG,IAAAA,KACAC,IAAAA,cACAC,IAAAA,KACAC,IAAAA,sBACAC,IAAAA,MACAC,IAAAA,KACAC,IAAAA,WAAUC,EAAA1B,EACV,eAAe2B,aAAY,aAAYD,EACpCE,EAAUC,EAAA7B,EAAA8B,GAEPC,EAAmBnB,GAAYH,EAC/BuB,EAAaT,IAAUC,EAAO5B,EAAe4B,QAAQS,GAE3D,OACEC,EAACC,EAAQC,EAAAA,EAAA,CACPjB,KAAMA,SAAAA,EACNF,QAASA,EACToB,UAAWC,GACRP,GAAoB,UACrBQ,EAAOC,aACPpB,EACAqB,EAAWC,QAETd,GAAU,GAAA,CAAAzB,SAEdwC,EAAA,MAAA,CACEN,UAAWC,EACTC,EAAOK,eACPb,GAAoBQ,EAAOM,qBAC3BxB,GAAQkB,EAAOlB,GACfhB,GACAF,SAAA,CAED6B,GACCW,EAAA,MAAA,CACEN,UAAWC,EACTC,EAAOhB,MACPQ,GAAoBQ,EAAOO,YAC3BhC,GACAX,SAEF,CAAA+B,EAAA,MAAA,CAAKG,UAAWC,EAAWC,EAAOQ,WAAW5C,SAAE6B,MAC5CzB,GAAqBiB,IACtBU,EAACc,EAAU,CACTX,UAAWtB,EACXkC,aAAc,CAAE1B,MAAO,SACvB2B,QAASjC,EACT,cAAA,GAAAkC,OAAgBxB,EAAwB,gBAAAxB,SAExC+B,EAACkB,EAAc,CAAC/B,KAAM,UAM7BlB,GACC+B,EAAA,MAAA,CACEmB,IAAK5B,EACLY,UAAWC,EACTC,EAAOe,aACPvB,GAAoBQ,EAAOgB,mBAC3BnD,GACAD,SAEDA,IAIJF,GACCiC,EAAA,MAAA,CACEG,UAAWC,EACTC,EAAOiB,aACPzB,GAAoBQ,EAAOkB,mBAC3BnC,EACApB,GACAC,SAEDF,SAMb"}
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/objectWithoutProperties";import s from"@babel/runtime/helpers/defineProperty";import{useEffect as c,cloneElement as i}from"react";import n from"classnames";import{noop as t}from"lodash";import{Grow as r,SnackbarContent as e,Tooltip as m,Typography as a}from"@material-ui/core";import{useStyles as p}from"./Toast.styles.js";import l from"../IconButton/index.js";import{NOTIFICATION_VARIANTS as u}from"../../constants/notifications.js";import{CheckOneIcon as j,CautionIcon as I,AttentionIcon as d,InfoIcon as b,CloseSmallIcon as f}from"../../icons/iconParkIcons.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/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{jsx as h,jsxs as C}from"react/jsx-runtime";var v,O=["onDismissClick","toast"];function g(o,s){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),c.push.apply(c,i)}return c}function P(o){for(var c=1;c<arguments.length;c++){var i=null!=arguments[c]?arguments[c]:{};c%2?g(Object(i),!0).forEach((function(c){s(o,c,i[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):g(Object(i)).forEach((function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(i,s))}))}return o}var F=(s(v={},u.success,j),s(v,u.warning,I),s(v,u.error,d),s(v,u.info,b),v),y=function(j){var I=j.onDismissClick,d=j.toast,b=o(j,O),v=d.alertLevel,g=d.autoHideDuration,y=void 0===g?3e3:g,k=d.content,D=d.hideIcon,N=d.icon,A=d.id,M=d.onClick,T=void 0===M?t:M,w=d.onClose,x=void 0===w?t:w,S=d.timestamp,E=d.title,R=d.tooltipProps,z=d.variant,B=void 0===z?"info":z;c((function(){if(y!==1/0){var o=setTimeout((function(){return I(A)}),y);return function(){return clearTimeout(o)}}}),[]);var W=p(),G=F[B];return h(r,{appear:!0,in:!0,children:h(e,P({classes:{root:n(W.main,!v&&W[B],v&&W.alertNotification,v&&W["alertLevels-".concat(v)]),action:W.actionContainer,message:W.messageContainer},"aria-describedby":"client-snackbar","data-testid":"notificationPopup_".concat(u[B]),message:h(m,P(P({},R),{},{title:null!=k?k:"",classes:{tooltip:W.tooltip},placement:"bottom",children:C("div",{id:"client-snackbar",className:W.messageWrapper,onClick:T,children:[!D&&h("div",{className:W.iconWrapper,children:N?i(N,{className:W.icon,nativeColor:"#000"}):h(G,{size:16,className:W.icon})}),C("div",{className:W.message,children:[C("div",{className:W.messageTop,children:[E&&h(a,{"data-testid":"title",variant:"subtitle2",className:n(W.title,s({},W.alertTitle,v)),children:E}),S&&h(a,{className:n(W.timestamp,!v&&W[B]),children:S})]}),h("div",{className:n(W.messageContent,!v&&W[B]),children:h(a,{"data-testid":"content",className:n(v?W.alertContent:W.content),children:k})})]})]})})),action:[h(l,{"data-testid":"closeButton","aria-label":"Close",color:"inherit",onClick:function(){x(),I(A)},size:"small",tooltipProps:{title:"Close",classes:{tooltip:W.tooltip}},className:W.closeIconButton,children:h(f,{size:20,fill:"#000"})},"close")]},b))})};export{y as Toast};
1
+ import o from"@babel/runtime/helpers/objectWithoutProperties";import s from"@babel/runtime/helpers/defineProperty";import{useEffect as c,cloneElement as i}from"react";import n from"classnames";import{noop as t}from"lodash";import{Grow as r,SnackbarContent as e,Tooltip as m,Typography as a}from"@material-ui/core";import{useStyles as p}from"./Toast.styles.js";import l from"../IconButton/index.js";import{NOTIFICATION_VARIANTS as u}from"../../constants/notifications.js";import{CheckOneIcon as j,CautionIcon as I,AttentionIcon as d,InfoIcon as C,CloseSmallIcon as b}from"../../icons/iconParkIcons.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{jsx as f,jsxs as h}from"react/jsx-runtime";var O,v=["onDismissClick","toast"];function P(o,s){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),c.push.apply(c,i)}return c}function g(o){for(var c=1;c<arguments.length;c++){var i=null!=arguments[c]?arguments[c]:{};c%2?P(Object(i),!0).forEach((function(c){s(o,c,i[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):P(Object(i)).forEach((function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(i,s))}))}return o}var F=(s(O={},u.success,j),s(O,u.warning,I),s(O,u.error,d),s(O,u.info,C),O),y=function(j){var I=j.onDismissClick,d=j.toast,C=o(j,v),O=d.alertLevel,P=d.autoHideDuration,y=void 0===P?3e3:P,k=d.content,D=d.hideIcon,N=d.icon,A=d.id,M=d.onClick,T=void 0===M?t:M,w=d.onClose,x=void 0===w?t:w,S=d.timestamp,E=d.title,R=d.tooltipProps,z=d.variant,B=void 0===z?"info":z;c((function(){if(y!==1/0){var o=setTimeout((function(){return I(A)}),y);return function(){return clearTimeout(o)}}}),[]);var W=p(),G=F[B];return f(r,{appear:!0,in:!0,children:f(e,g({classes:{root:n(W.main,!O&&W[B],O&&W.alertNotification,O&&W["alertLevels-".concat(O)]),action:W.actionContainer,message:W.messageContainer},"aria-describedby":"client-snackbar","data-testid":"notificationPopup_".concat(u[B]),message:f(m,g(g({},R),{},{title:null!=k?k:"",classes:{tooltip:W.tooltip},placement:"bottom",children:h("div",{id:"client-snackbar",className:W.messageWrapper,onClick:T,children:[!D&&f("div",{className:W.iconWrapper,children:N?i(N,{className:W.icon,nativeColor:"#000"}):f(G,{size:16,className:W.icon})}),h("div",{className:W.message,children:[h("div",{className:W.messageTop,children:[E&&f(a,{"data-testid":"title",variant:"subtitle2",className:n(W.title,s({},W.alertTitle,O)),children:E}),S&&f(a,{className:n(W.timestamp,!O&&W[B]),children:S})]}),f("div",{className:n(W.messageContent,!O&&W[B]),children:f(a,{"data-testid":"content",className:n(O?W.alertContent:W.content),children:k})})]})]})})),action:[f(l,{"data-testid":"closeButton","aria-label":"Close",color:"inherit",onClick:function(){x(),I(A)},size:"small",tooltipProps:{title:"Close",classes:{tooltip:W.tooltip}},className:W.closeIconButton,children:f(b,{size:20,fill:"#000"})},"close")]},C))})};export{y as Toast};
2
2
  //# sourceMappingURL=Toast.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.js","sources":["../../../src/components/Notifications/Toast.tsx"],"sourcesContent":["import { cloneElement, useEffect } from 'react';\nimport classNames from 'classnames';\nimport { noop } from 'lodash';\nimport { Grow, SnackbarContent, Tooltip, Typography } from '@material-ui/core';\n\nimport { Notification } from './types';\nimport { useStyles } from './Toast.styles';\n\nimport IconButton from '~/components/IconButton';\nimport { NOTIFICATION_VARIANTS } from '~/constants/notifications';\nimport { AttentionIcon, CautionIcon, CheckOneIcon, CloseSmallIcon, InfoIcon } from '~/icons';\n\nconst icons = {\n [NOTIFICATION_VARIANTS.success]: CheckOneIcon,\n [NOTIFICATION_VARIANTS.warning]: CautionIcon,\n [NOTIFICATION_VARIANTS.error]: AttentionIcon,\n [NOTIFICATION_VARIANTS.info]: InfoIcon,\n};\n\ninterface ToastProps {\n onDismissClick: (id: string) => void;\n toast: Notification;\n}\n\nexport const Toast = ({ onDismissClick, toast, ...other }: ToastProps): JSX.Element => {\n const {\n alertLevel,\n autoHideDuration = 3000,\n content,\n hideIcon,\n icon,\n id,\n onClick = noop,\n onClose = noop,\n timestamp,\n title,\n tooltipProps,\n variant = 'info',\n } = toast;\n\n useEffect(() => {\n if (autoHideDuration === Infinity) return undefined;\n\n const timeout = setTimeout(() => onDismissClick(id), autoHideDuration);\n\n return () => clearTimeout(timeout);\n }, []);\n\n const styles = useStyles();\n\n const Icon = icons[variant];\n\n return (\n <Grow appear in>\n <SnackbarContent\n classes={{\n root: classNames(\n styles.main,\n !alertLevel && styles[variant],\n alertLevel && styles.alertNotification,\n alertLevel && styles[`alertLevels-${alertLevel}`]\n ),\n action: styles.actionContainer,\n message: styles.messageContainer,\n }}\n aria-describedby=\"client-snackbar\"\n data-testid={`notificationPopup_${NOTIFICATION_VARIANTS[variant]}`}\n message={\n <Tooltip\n {...tooltipProps}\n title={content ?? ''}\n classes={{ tooltip: styles.tooltip }}\n placement=\"bottom\"\n >\n <div id=\"client-snackbar\" className={styles.messageWrapper} onClick={onClick}>\n {!hideIcon && (\n <div className={styles.iconWrapper}>\n {icon ? (\n cloneElement(icon, {\n className: styles.icon,\n nativeColor: '#000',\n })\n ) : (\n <Icon size={16} className={styles.icon} />\n )}\n </div>\n )}\n <div className={styles.message}>\n <div className={styles.messageTop}>\n {title && (\n <Typography\n data-testid=\"title\"\n variant=\"subtitle2\"\n className={classNames(styles.title, { [styles.alertTitle]: alertLevel })}\n >\n {title}\n </Typography>\n )}\n {timestamp && (\n <Typography\n className={classNames(styles.timestamp, !alertLevel && styles[variant])}\n >\n {timestamp}\n </Typography>\n )}\n </div>\n <div className={classNames(styles.messageContent, !alertLevel && styles[variant])}>\n <Typography\n data-testid=\"content\"\n className={classNames(alertLevel ? styles.alertContent : styles.content)}\n >\n {content}\n </Typography>\n </div>\n </div>\n </div>\n </Tooltip>\n }\n action={[\n <IconButton\n data-testid=\"closeButton\"\n key=\"close\"\n aria-label=\"Close\"\n color=\"inherit\"\n onClick={() => {\n onClose();\n onDismissClick(id);\n }}\n size=\"small\"\n // @ts-ignore\n tooltipProps={{ title: 'Close', classes: { tooltip: styles.tooltip } }}\n className={styles.closeIconButton}\n >\n <CloseSmallIcon size={20} fill=\"#000\" />\n </IconButton>,\n ]}\n {...other}\n />\n </Grow>\n );\n};\n"],"names":["icons","NOTIFICATION_VARIANTS","success","CheckOneIcon","_defineProperty","_icons","warning","CautionIcon","error","AttentionIcon","info","InfoIcon","Toast","_ref","onDismissClick","toast","other","_objectWithoutProperties","_excluded","alertLevel","_toast$autoHideDurati","autoHideDuration","content","hideIcon","icon","id","_toast$onClick","onClick","noop","_toast$onClose","onClose","timestamp","title","tooltipProps","_toast$variant","variant","useEffect","Infinity","timeout","setTimeout","clearTimeout","styles","useStyles","Icon","_jsx","Grow","appear","in","children","SnackbarContent","_objectSpread","classes","root","classNames","main","alertNotification","concat","action","actionContainer","message","messageContainer","Tooltip","tooltip","placement","_jsxs","className","messageWrapper","iconWrapper","cloneElement","nativeColor","size","messageTop","Typography","alertTitle","messageContent","alertContent","IconButton","color","closeIconButton","CloseSmallIcon","fill"],"mappings":"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"}
1
+ {"version":3,"file":"Toast.js","sources":["../../../src/components/Notifications/Toast.tsx"],"sourcesContent":["import { cloneElement, useEffect } from 'react';\nimport classNames from 'classnames';\nimport { noop } from 'lodash';\nimport { Grow, SnackbarContent, Tooltip, Typography } from '@material-ui/core';\n\nimport { Notification } from './types';\nimport { useStyles } from './Toast.styles';\n\nimport IconButton from '~/components/IconButton';\nimport { NOTIFICATION_VARIANTS } from '~/constants/notifications';\nimport { AttentionIcon, CautionIcon, CheckOneIcon, CloseSmallIcon, InfoIcon } from '~/icons';\n\nconst icons = {\n [NOTIFICATION_VARIANTS.success]: CheckOneIcon,\n [NOTIFICATION_VARIANTS.warning]: CautionIcon,\n [NOTIFICATION_VARIANTS.error]: AttentionIcon,\n [NOTIFICATION_VARIANTS.info]: InfoIcon,\n};\n\ninterface ToastProps {\n onDismissClick: (id: string) => void;\n toast: Notification;\n}\n\nexport const Toast = ({ onDismissClick, toast, ...other }: ToastProps): JSX.Element => {\n const {\n alertLevel,\n autoHideDuration = 3000,\n content,\n hideIcon,\n icon,\n id,\n onClick = noop,\n onClose = noop,\n timestamp,\n title,\n tooltipProps,\n variant = 'info',\n } = toast;\n\n useEffect(() => {\n if (autoHideDuration === Infinity) return undefined;\n\n const timeout = setTimeout(() => onDismissClick(id), autoHideDuration);\n\n return () => clearTimeout(timeout);\n }, []);\n\n const styles = useStyles();\n\n const Icon = icons[variant];\n\n return (\n <Grow appear in>\n <SnackbarContent\n classes={{\n root: classNames(\n styles.main,\n !alertLevel && styles[variant],\n alertLevel && styles.alertNotification,\n alertLevel && styles[`alertLevels-${alertLevel}`]\n ),\n action: styles.actionContainer,\n message: styles.messageContainer,\n }}\n aria-describedby=\"client-snackbar\"\n data-testid={`notificationPopup_${NOTIFICATION_VARIANTS[variant]}`}\n message={\n <Tooltip\n {...tooltipProps}\n title={content ?? ''}\n classes={{ tooltip: styles.tooltip }}\n placement=\"bottom\"\n >\n <div id=\"client-snackbar\" className={styles.messageWrapper} onClick={onClick}>\n {!hideIcon && (\n <div className={styles.iconWrapper}>\n {icon ? (\n cloneElement(icon, {\n className: styles.icon,\n nativeColor: '#000',\n })\n ) : (\n <Icon size={16} className={styles.icon} />\n )}\n </div>\n )}\n <div className={styles.message}>\n <div className={styles.messageTop}>\n {title && (\n <Typography\n data-testid=\"title\"\n variant=\"subtitle2\"\n className={classNames(styles.title, { [styles.alertTitle]: alertLevel })}\n >\n {title}\n </Typography>\n )}\n {timestamp && (\n <Typography\n className={classNames(styles.timestamp, !alertLevel && styles[variant])}\n >\n {timestamp}\n </Typography>\n )}\n </div>\n <div className={classNames(styles.messageContent, !alertLevel && styles[variant])}>\n <Typography\n data-testid=\"content\"\n className={classNames(alertLevel ? styles.alertContent : styles.content)}\n >\n {content}\n </Typography>\n </div>\n </div>\n </div>\n </Tooltip>\n }\n action={[\n <IconButton\n data-testid=\"closeButton\"\n key=\"close\"\n aria-label=\"Close\"\n color=\"inherit\"\n onClick={() => {\n onClose();\n onDismissClick(id);\n }}\n size=\"small\"\n // @ts-ignore\n tooltipProps={{ title: 'Close', classes: { tooltip: styles.tooltip } }}\n className={styles.closeIconButton}\n >\n <CloseSmallIcon size={20} fill=\"#000\" />\n </IconButton>,\n ]}\n {...other}\n />\n </Grow>\n );\n};\n"],"names":["icons","NOTIFICATION_VARIANTS","success","CheckOneIcon","_defineProperty","_icons","warning","CautionIcon","error","AttentionIcon","info","InfoIcon","Toast","_ref","onDismissClick","toast","other","_objectWithoutProperties","_excluded","alertLevel","_toast$autoHideDurati","autoHideDuration","content","hideIcon","icon","id","_toast$onClick","onClick","noop","_toast$onClose","onClose","timestamp","title","tooltipProps","_toast$variant","variant","useEffect","Infinity","timeout","setTimeout","clearTimeout","styles","useStyles","Icon","_jsx","Grow","appear","in","children","SnackbarContent","_objectSpread","classes","root","classNames","main","alertNotification","concat","action","actionContainer","message","messageContainer","Tooltip","tooltip","placement","_jsxs","className","messageWrapper","iconWrapper","cloneElement","nativeColor","size","messageTop","Typography","alertTitle","messageContent","alertContent","IconButton","color","closeIconButton","CloseSmallIcon","fill"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{memo as n,useState as i,useEffect as o,useMemo as s,useCallback as r}from"react";import l from"prop-types";import{get as c,orderBy as a,uniq as m}from"lodash";import{makeStyles as d,Dialog as u,DialogTitle as p,Typography as f,Tooltip as b,IconButton as g,DialogContent as j,DialogActions as h,Button as y}from"@material-ui/core";import S from"@material-ui/icons/Close";import{useTheme as v}from"@material-ui/core/styles";import C from"@material-ui/core/useMediaQuery";import W from"classnames";import O from"./components/Filter/index.js";import x from"./components/Map/index.js";import A from"./components/Table/index.js";import{useCompanies as I,useWells as N,useCompanyMetricKey as D,useWellsWithCoords as k,useRadiusWells as w,useOffsetWells as P,useMetricsData as T}from"./effects/index.js";import{getFilteredWells as B,getFilteredWellsByNonEngineered as E}from"./utils/index.js";import{DEFAULT_SETTINGS as z}from"./constants.js";import R from"../LoadingIndicator/LoadingIndicator.js";import L from"../../permissions/usePermissions.js";import{PERMISSIONS as q}from"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../clients/jsonApi/index.js";import"../../permissions/ProvidePermissions.js";import"../../permissions/PermissionsContext.js";import"../../clients/subscriptions/constants.js";import"querystring";import"uuid/v1";import"../../clients/subscriptions.v1.js";import"../../clients/subscriptions/subscriptions-client.factory.js";import"immutable";import"query-string";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"../../utils/index.js";import"uuid";import"jsona";import"../../utils/env.js";import"../StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../constants/streamSourceType.js";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppSettings/AppSettingsPinningContext.js";import{useGlobalOffsetWellsSync as M}from"../../effects/useGlobalOffsetWellsSync.js";import{jsxs as _,jsx as U,Fragment as V}from"react/jsx-runtime";import F from"./effects/biDirectionalFiltering.js";function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function H(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?G(Object(i),!0).forEach((function(n){e(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):G(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var K=d((function(e){return{dialogTitles:{display:"flex",justifyContent:"space-between",alignItems:"center"},title:{fontSize:20},subTitle:{fontSize:14,color:"#03BCD4","&:hover":{cursor:"pointer",textDecoration:"underline"}},subTitleSpace:{fontSize:14,color:"#03BCD4"},titleArea:{display:"flex",alignItems:"center"},closeIconButton:{fontSize:20,padding:4,"&:hover $closeIcon":{color:"#fff"}},closeIcon:{color:"#BDBDBD"},dialogActions:{justifyContent:"space-between",paddingTop:8,paddingBottom:8},bottomShadow:{width:"100%",height:"16px",backgroundImage:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9,")"),position:"absolute",bottom:"52px",zIndex:2},dialogActionsSmallScreen:{paddingRight:"100px"},dialogContent:{display:"flex",flexDirection:"column"},tabs:{background:"#414141"},selectedWells:{display:"flex",alignItems:"center"},selected:{fontSize:16},selectedLabel:{fontSize:12,marginLeft:14,color:"rgba(255, 255, 255, 0.54)"},selectedNumber:{fontSize:12,margin:4,color:"rgba(255, 255, 255, 0.8)"}}})),Q=function(n){var l=n.isOpen,d=n.defaultSubjectWellId,G=void 0===d?null:d,Q=n.companyId,$=void 0===Q?null:Q,J=n.offsetSetting,X=n.currentUser,Y=n.addWellsUsabilityInfo,Z=void 0===Y?null:Y,ee=n.unusableWellAlarm,te=void 0===ee?"Unable to add":ee,ne=n.isAdvancedSearch,ie=void 0!==ne&&ne,oe=n.bestCount,se=void 0===oe?0:oe,re=n.maxOffsetSize,le=void 0===re?1e3:re,ce=n.onClose,ae=n.onSave,me=K(),de=v(),ue=C(de.breakpoints.down("sm")),pe=L([q.companySelectorView]),fe=t(pe,1)[0].active,be=i($||c(J,"companyId")||+c(X,"company_id")),ge=t(be,2),je=ge[0],he=ge[1],ye=i(c(J,"subjectWellId")||G),Se=t(ye,2),ve=Se[0],Ce=Se[1];M(J,ae,le);var We=i(c(J,"filters")||z.filters),Oe=t(We,2),xe=Oe[0],Ae=Oe[1],Ie=i(c(J,"radius")||z.radius),Ne=t(Ie,2),De=Ne[0],ke=Ne[1],we=i(c(J,"excludeSideTrack")||!1),Pe=t(we,2),Te=Pe[0],Be=Pe[1],Ee=i(c(J,"includeNonEngineeredWells")||!1),ze=t(Ee,2),Re=ze[0],Le=ze[1],qe=i([]),Me=t(qe,2),_e=Me[0],Ue=Me[1],Ve=i(z.sortInfo),Fe=t(Ve,2),Ge=Fe[0],He=Fe[1],Ke=i(!1),Qe=t(Ke,2),$e=Qe[0],Je=Qe[1],Xe=i([]),Ye=t(Xe,2),Ze=Ye[0],et=Ye[1];o((function(){l&&(et(c(J,"selectedWellIds")||[]),he($||c(J,"companyId")||+c(X,"company_id")),Ce(c(J,"subjectWellId")||G))}),[l,J]);var tt=s((function(){return!!ve}),[ve]),nt=I(fe,ie&&G,je),it=N(je,Z),ot=D(je);o((function(){Ue((function(e){return ot?[ot]:e}))}),[ot]);var st=F(xe,it),rt=s((function(){return B(xe,Te,it)}),[xe,Te,it]),lt=s((function(){return E(rt,Re)}),[rt,Re]),ct=s((function(){return lt&&ve?lt.find((function(e){return e.id===ve})):null}),[lt,ve]),at=k(rt,ct),mt=s((function(){return E(at,!1)}),[at]),dt=Re?at:mt,ut=at&&at.length!==mt.length;w(De,at,et);var pt=P(De,it,Ze),ft=T(je,dt),bt=t(ft,2),gt=bt[0],jt=bt[1],ht=s((function(){return jt?a(jt,Ge.key,1===Ge.direction?"asc":"desc"):jt}),[Ge,jt]),yt=r((function(e){he(e),Ce(null),et([]),Ae(z.filters)}),[]),St=r((function(e){var t=lt.find((function(t){return t.id===e}));t&&t.is_usable&&et(m(Ze.concat(e)))}),[Ze,lt]),vt=r((function(e){et(m(Ze.filter((function(t){return t!==e}))))}),[Ze]),Ct=r((function(){et(lt.filter((function(e){return e.is_usable})).map((function(e){return e.id})))}),[lt]),Wt=r((function(){et([])}),[]),Ot=r((function(e){et([]),Ce(e)}),[it]),xt=r((function(){et([]),Ce(null)}),[]),At=r((function(e){ke(e)}),[]),It=r((function(e){Be(e)}),[]),Nt=r((function(e){e||et((function(e){return e.filter((function(e){return mt.map((function(e){return e.id})).includes(e)}))})),Le(e)}),[mt]),Dt=r((function(t,n){Ae((function(i){return H(H({},i),{},e({},t,n))})),et([])}),[]),kt=r((function(){Ae(H({},z.filters)),et([])}),[]),wt=r((function(){Je((function(e){return!e}))}),[]),Pt=r((function(e){Ue(e)}),[]),Tt=r((function(e){He((function(t){return t.key===e?H(H({},t),{},{direction:-1*t.direction}):{key:e,direction:1}}))}),[]),Bt=function(){ce()},Et=!(it&&lt&&dt&&jt&&pt&&ht);return _(u,{onBackdropClick:ce,onEscapeKeyDown:ce,maxWidth:"lg",fullWidth:!0,fullScreen:ue,open:l,children:[U(p,{children:_("div",{className:me.dialogTitles,children:[ie?_("div",{className:me.titleArea,children:[U(f,{className:me.subTitle,onClick:Bt,children:"Select Offset Wells"}),U(f,{className:me.subTitleSpace,children:" / "}),U(f,{className:me.title,children:"Advanced Search"})]}):U(f,{className:me.title,children:"Select Offset Wells"}),U(b,{title:"Close",children:U(g,{"data-not-migrated-muiiconbutton":!0,"aria-label":"close",className:me.closeIconButton,onClick:ce,children:U(S,{className:me.closeIcon})})})]})}),U(j,{className:me.dialogContent,children:Et?U(R,{fullscreen:!1}):_(V,{children:[U(O,{companyId:je,companies:nt,canViewCompanies:fe,radius:De,excludeSideTrack:Te,includeNonEngineeredWells:Re,wells:lt,subjectWell:ct,filters:xe,filtersOptions:st,mapHidden:$e,isRadiusEditable:tt,isExistNonEngineeredWells:ut,onChangeCompany:yt,onSetSubjectWell:Ot,onChangeRadius:At,onChangeSidetrack:It,onChangeNonEngineeredWells:Nt,onChangeFilters:Dt,onClearFilters:kt,onToggleMap:wt}),U(x,{subjectWell:ct,wells:lt,offsetWells:pt,radius:De,mapHidden:$e,onSetSubjectWell:Ot,onRemoveSubjectWell:xt,onAddOffsetWell:St,onDeleteOffsetWell:vt}),U(A,{subjectWell:ct,wells:ht,offsetWells:pt,metricsKeys:_e,sortInfo:Ge,isMetricsLoading:gt,unusableWellAlarm:te,onChangeMetricsKeys:Pt,onSorting:Tt,onAddOffsetWell:St,onDeleteOffsetWell:vt,onAddAllOffsetWells:Ct,onDeleteAllOffsetWells:Wt})]})}),U("div",{className:me.bottomShadow}),_(h,{className:W(me.dialogActions,e({},me.dialogActionsSmallScreen,ue)),children:[ie?_("div",{className:me.selectedWells,children:[U(f,{className:me.selected,children:"Selected:"}),U(f,{className:me.selectedLabel,children:"Best:"}),U(f,{className:me.selectedNumber,children:se}),U(f,{className:me.selectedLabel,children:"Advanced Search:"}),U(f,{className:me.selectedNumber,children:(null==pt?void 0:pt.length)||0})]}):U("div",{}),_("div",{children:[U(y,{"data-testid":"".concat("OffsetsPickerDialog","_cancel"),onClick:Bt,color:"primary",style:{marginRight:16},children:"CANCEL"}),_(y,{"data-testid":"".concat("OffsetsPickerDialog","_add"),variant:"contained",color:"primary",onClick:function(){var e=H(H({},J),{},{companyId:je,subjectWellId:ve,radius:De,excludeSideTrack:Te,includeNonEngineeredWells:Re,filters:xe,selectedWellIds:m(pt.map((function(e){return e.id})))});ae(e,pt)},children:["ADD (",(null==pt?void 0:pt.length)||0,")"]})]})]})]})};Q.propTypes={isOpen:l.bool.isRequired,defaultSubjectWellId:l.number,companyId:l.number,offsetSetting:l.shape({}).isRequired,currentUser:l.shape({}).isRequired,addWellsUsabilityInfo:l.func,unusableWellAlarm:l.string,isAdvancedSearch:l.bool,bestCount:l.number,maxOffsetSize:l.number,onSave:l.func.isRequired,onClose:l.func.isRequired};var $=n(Q);export{$ as default};
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{memo as n,useState as o,useEffect as i,useMemo as s,useCallback as r}from"react";import l from"prop-types";import{get as c,orderBy as a,uniq as m}from"lodash";import{makeStyles as d,Dialog as u,DialogTitle as p,Typography as f,Tooltip as b,IconButton as g,DialogContent as j,DialogActions as h,Button as y}from"@material-ui/core";import v from"@material-ui/icons/Close";import{useTheme as S}from"@material-ui/core/styles";import C from"@material-ui/core/useMediaQuery";import W from"classnames";import O from"./components/Filter/index.js";import x from"./components/Map/index.js";import A from"./components/Table/index.js";import{useCompanies as I,useWells as N,useCompanyMetricKey as D,useWellsWithCoords as P,useRadiusWells as k,useOffsetWells as w,useMetricsData as T}from"./effects/index.js";import{getFilteredWells as B,getFilteredWellsByNonEngineered as E}from"./utils/index.js";import{DEFAULT_SETTINGS as z}from"./constants.js";import R from"../LoadingIndicator/LoadingIndicator.js";import L from"../../permissions/usePermissions.js";import{PERMISSIONS as q}from"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../clients/jsonApi/index.js";import"../../permissions/ProvidePermissions.js";import"../../permissions/PermissionsContext.js";import"../../clients/subscriptions/constants.js";import"querystring";import"uuid/v1";import"../../clients/subscriptions.v1.js";import"../../clients/subscriptions/subscriptions-client.factory.js";import"immutable";import"query-string";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"../../utils/index.js";import"uuid";import"jsona";import"../../utils/env.js";import"../StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../constants/streamSourceType.js";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppPanel/AppPanelsContext.js";import{useGlobalOffsetWellsSync as M}from"../../effects/useGlobalOffsetWellsSync.js";import{jsxs as _,jsx as U,Fragment as V}from"react/jsx-runtime";import F from"./effects/biDirectionalFiltering.js";function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function H(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?G(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):G(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var K=d((function(e){return{dialogTitles:{display:"flex",justifyContent:"space-between",alignItems:"center"},title:{fontSize:20},subTitle:{fontSize:14,color:"#03BCD4","&:hover":{cursor:"pointer",textDecoration:"underline"}},subTitleSpace:{fontSize:14,color:"#03BCD4"},titleArea:{display:"flex",alignItems:"center"},closeIconButton:{fontSize:20,padding:4,"&:hover $closeIcon":{color:"#fff"}},closeIcon:{color:"#BDBDBD"},dialogActions:{justifyContent:"space-between",paddingTop:8,paddingBottom:8},bottomShadow:{width:"100%",height:"16px",backgroundImage:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9,")"),position:"absolute",bottom:"52px",zIndex:2},dialogActionsSmallScreen:{paddingRight:"100px"},dialogContent:{display:"flex",flexDirection:"column"},tabs:{background:"#414141"},selectedWells:{display:"flex",alignItems:"center"},selected:{fontSize:16},selectedLabel:{fontSize:12,marginLeft:14,color:"rgba(255, 255, 255, 0.54)"},selectedNumber:{fontSize:12,margin:4,color:"rgba(255, 255, 255, 0.8)"}}})),Q=function(n){var l=n.isOpen,d=n.defaultSubjectWellId,G=void 0===d?null:d,Q=n.companyId,$=void 0===Q?null:Q,J=n.offsetSetting,X=n.currentUser,Y=n.addWellsUsabilityInfo,Z=void 0===Y?null:Y,ee=n.unusableWellAlarm,te=void 0===ee?"Unable to add":ee,ne=n.isAdvancedSearch,oe=void 0!==ne&&ne,ie=n.bestCount,se=void 0===ie?0:ie,re=n.maxOffsetSize,le=void 0===re?1e3:re,ce=n.onClose,ae=n.onSave,me=K(),de=S(),ue=C(de.breakpoints.down("sm")),pe=L([q.companySelectorView]),fe=t(pe,1)[0].active,be=o($||c(J,"companyId")||+c(X,"company_id")),ge=t(be,2),je=ge[0],he=ge[1],ye=o(c(J,"subjectWellId")||G),ve=t(ye,2),Se=ve[0],Ce=ve[1];M(J,ae,le);var We=o(c(J,"filters")||z.filters),Oe=t(We,2),xe=Oe[0],Ae=Oe[1],Ie=o(c(J,"radius")||z.radius),Ne=t(Ie,2),De=Ne[0],Pe=Ne[1],ke=o(c(J,"excludeSideTrack")||!1),we=t(ke,2),Te=we[0],Be=we[1],Ee=o(c(J,"includeNonEngineeredWells")||!1),ze=t(Ee,2),Re=ze[0],Le=ze[1],qe=o([]),Me=t(qe,2),_e=Me[0],Ue=Me[1],Ve=o(z.sortInfo),Fe=t(Ve,2),Ge=Fe[0],He=Fe[1],Ke=o(!1),Qe=t(Ke,2),$e=Qe[0],Je=Qe[1],Xe=o([]),Ye=t(Xe,2),Ze=Ye[0],et=Ye[1];i((function(){l&&(et(c(J,"selectedWellIds")||[]),he($||c(J,"companyId")||+c(X,"company_id")),Ce(c(J,"subjectWellId")||G))}),[l,J]);var tt=s((function(){return!!Se}),[Se]),nt=I(fe,oe&&G,je),ot=N(je,Z),it=D(je);i((function(){Ue((function(e){return it?[it]:e}))}),[it]);var st=F(xe,ot),rt=s((function(){return B(xe,Te,ot)}),[xe,Te,ot]),lt=s((function(){return E(rt,Re)}),[rt,Re]),ct=s((function(){return lt&&Se?lt.find((function(e){return e.id===Se})):null}),[lt,Se]),at=P(rt,ct),mt=s((function(){return E(at,!1)}),[at]),dt=Re?at:mt,ut=at&&at.length!==mt.length;k(De,at,et);var pt=w(De,ot,Ze),ft=T(je,dt),bt=t(ft,2),gt=bt[0],jt=bt[1],ht=s((function(){return jt?a(jt,Ge.key,1===Ge.direction?"asc":"desc"):jt}),[Ge,jt]),yt=r((function(e){he(e),Ce(null),et([]),Ae(z.filters)}),[]),vt=r((function(e){var t=lt.find((function(t){return t.id===e}));t&&t.is_usable&&et(m(Ze.concat(e)))}),[Ze,lt]),St=r((function(e){et(m(Ze.filter((function(t){return t!==e}))))}),[Ze]),Ct=r((function(){et(lt.filter((function(e){return e.is_usable})).map((function(e){return e.id})))}),[lt]),Wt=r((function(){et([])}),[]),Ot=r((function(e){et([]),Ce(e)}),[ot]),xt=r((function(){et([]),Ce(null)}),[]),At=r((function(e){Pe(e)}),[]),It=r((function(e){Be(e)}),[]),Nt=r((function(e){e||et((function(e){return e.filter((function(e){return mt.map((function(e){return e.id})).includes(e)}))})),Le(e)}),[mt]),Dt=r((function(t,n){Ae((function(o){return H(H({},o),{},e({},t,n))})),et([])}),[]),Pt=r((function(){Ae(H({},z.filters)),et([])}),[]),kt=r((function(){Je((function(e){return!e}))}),[]),wt=r((function(e){Ue(e)}),[]),Tt=r((function(e){He((function(t){return t.key===e?H(H({},t),{},{direction:-1*t.direction}):{key:e,direction:1}}))}),[]),Bt=function(){ce()},Et=!(ot&&lt&&dt&&jt&&pt&&ht);return _(u,{onBackdropClick:ce,onEscapeKeyDown:ce,maxWidth:"lg",fullWidth:!0,fullScreen:ue,open:l,children:[U(p,{children:_("div",{className:me.dialogTitles,children:[oe?_("div",{className:me.titleArea,children:[U(f,{className:me.subTitle,onClick:Bt,children:"Select Offset Wells"}),U(f,{className:me.subTitleSpace,children:" / "}),U(f,{className:me.title,children:"Advanced Search"})]}):U(f,{className:me.title,children:"Select Offset Wells"}),U(b,{title:"Close",children:U(g,{"data-not-migrated-muiiconbutton":!0,"aria-label":"close",className:me.closeIconButton,onClick:ce,children:U(v,{className:me.closeIcon})})})]})}),U(j,{className:me.dialogContent,children:Et?U(R,{fullscreen:!1}):_(V,{children:[U(O,{companyId:je,companies:nt,canViewCompanies:fe,radius:De,excludeSideTrack:Te,includeNonEngineeredWells:Re,wells:lt,subjectWell:ct,filters:xe,filtersOptions:st,mapHidden:$e,isRadiusEditable:tt,isExistNonEngineeredWells:ut,onChangeCompany:yt,onSetSubjectWell:Ot,onChangeRadius:At,onChangeSidetrack:It,onChangeNonEngineeredWells:Nt,onChangeFilters:Dt,onClearFilters:Pt,onToggleMap:kt}),U(x,{subjectWell:ct,wells:lt,offsetWells:pt,radius:De,mapHidden:$e,onSetSubjectWell:Ot,onRemoveSubjectWell:xt,onAddOffsetWell:vt,onDeleteOffsetWell:St}),U(A,{subjectWell:ct,wells:ht,offsetWells:pt,metricsKeys:_e,sortInfo:Ge,isMetricsLoading:gt,unusableWellAlarm:te,onChangeMetricsKeys:wt,onSorting:Tt,onAddOffsetWell:vt,onDeleteOffsetWell:St,onAddAllOffsetWells:Ct,onDeleteAllOffsetWells:Wt})]})}),U("div",{className:me.bottomShadow}),_(h,{className:W(me.dialogActions,e({},me.dialogActionsSmallScreen,ue)),children:[oe?_("div",{className:me.selectedWells,children:[U(f,{className:me.selected,children:"Selected:"}),U(f,{className:me.selectedLabel,children:"Best:"}),U(f,{className:me.selectedNumber,children:se}),U(f,{className:me.selectedLabel,children:"Advanced Search:"}),U(f,{className:me.selectedNumber,children:(null==pt?void 0:pt.length)||0})]}):U("div",{}),_("div",{children:[U(y,{"data-testid":"".concat("OffsetsPickerDialog","_cancel"),onClick:Bt,color:"primary",style:{marginRight:16},children:"CANCEL"}),_(y,{"data-testid":"".concat("OffsetsPickerDialog","_add"),variant:"contained",color:"primary",onClick:function(){var e=H(H({},J),{},{companyId:je,subjectWellId:Se,radius:De,excludeSideTrack:Te,includeNonEngineeredWells:Re,filters:xe,selectedWellIds:m(pt.map((function(e){return e.id})))});ae(e,pt)},children:["ADD (",(null==pt?void 0:pt.length)||0,")"]})]})]})]})};Q.propTypes={isOpen:l.bool.isRequired,defaultSubjectWellId:l.number,companyId:l.number,offsetSetting:l.shape({}).isRequired,currentUser:l.shape({}).isRequired,addWellsUsabilityInfo:l.func,unusableWellAlarm:l.string,isAdvancedSearch:l.bool,bestCount:l.number,maxOffsetSize:l.number,onSave:l.func.isRequired,onClose:l.func.isRequired};var $=n(Q);export{$ as default};
2
2
  //# sourceMappingURL=OffsetWellPickerDialog.js.map