@corva/ui 3.75.0-10 → 3.75.0-11

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 (1098) 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/CollapsibleContent.js +1 -1
  59. package/cjs-bundle/components/CollapsibleContent.js.map +1 -1
  60. package/cjs-bundle/components/ColorPicker/ColorPicker.js +1 -1
  61. package/cjs-bundle/components/ColorPicker/ColorPicker.js.map +1 -1
  62. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  63. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js.map +1 -1
  64. package/cjs-bundle/components/CommentCard/CommentCard.js +1 -1
  65. package/cjs-bundle/components/CommentCard/CommentCard.js.map +1 -1
  66. package/cjs-bundle/components/CommentCard/CommentCardReactions.js +1 -1
  67. package/cjs-bundle/components/CommentCard/CommentCardReactions.js.map +1 -1
  68. package/cjs-bundle/components/CommentCard/CommentCardReplies.js +1 -1
  69. package/cjs-bundle/components/CommentCard/CommentCardReplies.js.map +1 -1
  70. package/cjs-bundle/components/CommentCard/buildCommentReply.js +1 -1
  71. package/cjs-bundle/components/CommentCard/buildCommentReply.js.map +1 -1
  72. package/cjs-bundle/components/CommentComposer/ChatChannelSelector.js +1 -1
  73. package/cjs-bundle/components/CommentComposer/ChatChannelSelector.js.map +1 -1
  74. package/cjs-bundle/components/CommentComposer/CommentComposer.js +1 -1
  75. package/cjs-bundle/components/CommentComposer/CommentComposer.js.map +1 -1
  76. package/cjs-bundle/components/CommentInputNext/CommentInputNext.js +1 -1
  77. package/cjs-bundle/components/CommentInputNext/CommentInputNext.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/Drillstring/BhaIndicator/styles.css.js +1 -1
  141. package/cjs-bundle/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  142. package/cjs-bundle/components/EChartsWrapper/components/Toolbox/Toolbox.js.map +1 -1
  143. package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
  144. package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js.map +1 -1
  145. package/cjs-bundle/components/FeedCard/useFeedActivity.js +1 -1
  146. package/cjs-bundle/components/FeedCard/useFeedActivity.js.map +1 -1
  147. package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
  148. package/cjs-bundle/components/FeedItem/FeedItem.js.map +1 -1
  149. package/cjs-bundle/components/FeedItem/components/Icon.js +1 -1
  150. package/cjs-bundle/components/FeedItem/components/Icon.js.map +1 -1
  151. package/cjs-bundle/components/FeedItem/components/LessonsLearnedLeafIcon.js +1 -1
  152. package/cjs-bundle/components/FeedItem/components/LessonsLearnedLeafIcon.js.map +1 -1
  153. package/cjs-bundle/components/FeedItem/feedItemTypes/AlertFeedItem.js +1 -1
  154. package/cjs-bundle/components/FeedItem/feedItemTypes/AlertFeedItem.js.map +1 -1
  155. package/cjs-bundle/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js +1 -1
  156. package/cjs-bundle/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js.map +1 -1
  157. package/cjs-bundle/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/styles.scss.js +2 -0
  158. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js +1 -1
  159. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js.map +1 -1
  160. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaNumber.js +1 -1
  161. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaNumber.js.map +1 -1
  162. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js +1 -1
  163. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js.map +1 -1
  164. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/NoData.js +1 -1
  165. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/NoData.js.map +1 -1
  166. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/styles.scss.js +2 -0
  167. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js +1 -1
  168. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js.map +1 -1
  169. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionDocumentFeedItem.js +1 -1
  170. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionDocumentFeedItem.js.map +1 -1
  171. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionNptFeedItem.js +1 -1
  172. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionNptFeedItem.js.map +1 -1
  173. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js +1 -1
  174. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js.map +1 -1
  175. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js +1 -1
  176. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js.map +1 -1
  177. package/cjs-bundle/components/FeedItem/feedItemTypes/DepthCommentFeedItem.js +1 -1
  178. package/cjs-bundle/components/FeedItem/feedItemTypes/DepthCommentFeedItem.js.map +1 -1
  179. package/cjs-bundle/components/FeedItem/feedItemTypes/DocumentFeedItem.js +1 -1
  180. package/cjs-bundle/components/FeedItem/feedItemTypes/DocumentFeedItem.js.map +1 -1
  181. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.js +1 -1
  182. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.js.map +1 -1
  183. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js +1 -1
  184. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js.map +1 -1
  185. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js +1 -1
  186. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js.map +1 -1
  187. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js +1 -1
  188. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js.map +1 -1
  189. package/cjs-bundle/components/FeedItem/feedItemTypes/DvDCommentFeedItem.js +1 -1
  190. package/cjs-bundle/components/FeedItem/feedItemTypes/DvDCommentFeedItem.js.map +1 -1
  191. package/cjs-bundle/components/FeedItem/feedItemTypes/FluidReportFeedItem.js +1 -1
  192. package/cjs-bundle/components/FeedItem/feedItemTypes/FluidReportFeedItem.js.map +1 -1
  193. package/cjs-bundle/components/FeedItem/feedItemTypes/GenericDataCommentFeedItem.js +1 -1
  194. package/cjs-bundle/components/FeedItem/feedItemTypes/GenericDataCommentFeedItem.js.map +1 -1
  195. package/cjs-bundle/components/FeedItem/feedItemTypes/GeosteeringFeedItem.js +1 -1
  196. package/cjs-bundle/components/FeedItem/feedItemTypes/GeosteeringFeedItem.js.map +1 -1
  197. package/cjs-bundle/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js +1 -1
  198. package/cjs-bundle/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js.map +1 -1
  199. package/cjs-bundle/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js +1 -1
  200. package/cjs-bundle/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js.map +1 -1
  201. package/cjs-bundle/components/FeedItem/feedItemTypes/NptFeedItem.js +1 -1
  202. package/cjs-bundle/components/FeedItem/feedItemTypes/NptFeedItem.js.map +1 -1
  203. package/cjs-bundle/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js +1 -1
  204. package/cjs-bundle/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js.map +1 -1
  205. package/cjs-bundle/components/FeedItem/feedItemTypes/PCCommentFeedItem.js +1 -1
  206. package/cjs-bundle/components/FeedItem/feedItemTypes/PCCommentFeedItem.js.map +1 -1
  207. package/cjs-bundle/components/FeedItem/feedItemTypes/PostFeedItem.js +1 -1
  208. package/cjs-bundle/components/FeedItem/feedItemTypes/PostFeedItem.js.map +1 -1
  209. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +1 -1
  210. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js.map +1 -1
  211. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js +1 -1
  212. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js.map +1 -1
  213. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.js +1 -1
  214. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.js.map +1 -1
  215. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js +1 -1
  216. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js.map +1 -1
  217. package/cjs-bundle/components/FeedItem/feedItemTypes/TracesMemoFeedItem.js +1 -1
  218. package/cjs-bundle/components/FeedItem/feedItemTypes/TracesMemoFeedItem.js.map +1 -1
  219. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js +1 -1
  220. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js.map +1 -1
  221. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/VerticalSectionAzimuth.js +1 -1
  222. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/VerticalSectionAzimuth.js.map +1 -1
  223. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.js +1 -1
  224. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.js.map +1 -1
  225. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/styles.scss.js +2 -0
  226. package/cjs-bundle/components/FeedItem/feedItemTypes/components/ContextRow.js +2 -0
  227. package/cjs-bundle/components/FeedItem/feedItemTypes/components/ContextRow.js.map +1 -0
  228. package/cjs-bundle/components/FeedItem/feedItemTypes/components/FeedAttachment.js +2 -0
  229. package/cjs-bundle/components/FeedItem/feedItemTypes/components/FeedAttachment.js.map +1 -0
  230. package/cjs-bundle/components/FilesDropzone/FilesDropzone.js +1 -1
  231. package/cjs-bundle/components/FilesDropzone/FilesDropzone.js.map +1 -1
  232. package/cjs-bundle/components/FilesLoader/FilesLoader.js +1 -1
  233. package/cjs-bundle/components/FilesLoader/FilesLoader.js.map +1 -1
  234. package/cjs-bundle/components/FilesLoaderV2/FilesLoaderV2.js +1 -1
  235. package/cjs-bundle/components/FilesLoaderV2/FilesLoaderV2.js.map +1 -1
  236. package/cjs-bundle/components/Formula/CloseSuggestion.js +1 -1
  237. package/cjs-bundle/components/Formula/CloseSuggestion.js.map +1 -1
  238. package/cjs-bundle/components/Formula/Formula.js +1 -1
  239. package/cjs-bundle/components/Formula/Formula.js.map +1 -1
  240. package/cjs-bundle/components/GradientManager/GradientManager.js +1 -1
  241. package/cjs-bundle/components/GradientManager/GradientManager.js.map +1 -1
  242. package/cjs-bundle/components/GradientManager/GradientSelect.js +1 -1
  243. package/cjs-bundle/components/GradientManager/GradientSelect.js.map +1 -1
  244. package/cjs-bundle/components/GradientPicker/GradientPicker.js +1 -1
  245. package/cjs-bundle/components/GradientPicker/GradientPicker.js.map +1 -1
  246. package/cjs-bundle/components/HelpCenter/HelpCenterIcon.js +1 -1
  247. package/cjs-bundle/components/HelpCenter/HelpCenterIcon.js.map +1 -1
  248. package/cjs-bundle/components/Hint/Hint.js +1 -1
  249. package/cjs-bundle/components/Hint/Hint.js.map +1 -1
  250. package/cjs-bundle/components/Modal/CorvaModal.js +1 -1
  251. package/cjs-bundle/components/Modal/CorvaModal.js.map +1 -1
  252. package/cjs-bundle/components/Notifications/Toast.js +1 -1
  253. package/cjs-bundle/components/Notifications/Toast.js.map +1 -1
  254. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  255. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  256. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  257. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  258. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  259. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  260. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  261. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  262. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  263. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  264. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  265. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  266. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  267. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  268. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  269. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  270. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  271. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  272. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
  273. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js.map +1 -1
  274. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js +1 -1
  275. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js.map +1 -1
  276. package/cjs-bundle/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js +1 -1
  277. package/cjs-bundle/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js.map +1 -1
  278. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  279. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  280. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  281. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  282. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
  283. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js.map +1 -1
  284. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
  285. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js.map +1 -1
  286. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +1 -1
  287. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js.map +1 -1
  288. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
  289. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js.map +1 -1
  290. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  291. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js.map +1 -1
  292. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js +1 -1
  293. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js.map +1 -1
  294. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js +1 -1
  295. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js.map +1 -1
  296. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js +1 -1
  297. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js.map +1 -1
  298. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js +1 -1
  299. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js.map +1 -1
  300. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  301. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  302. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  303. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
  304. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
  305. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js.map +1 -1
  306. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  307. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js.map +1 -1
  308. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js +1 -1
  309. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js.map +1 -1
  310. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js +1 -1
  311. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js.map +1 -1
  312. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js +1 -1
  313. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js.map +1 -1
  314. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js +1 -1
  315. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js.map +1 -1
  316. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js +1 -1
  317. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js.map +1 -1
  318. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js +1 -1
  319. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js.map +1 -1
  320. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js +1 -1
  321. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js.map +1 -1
  322. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js +1 -1
  323. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js.map +1 -1
  324. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/SettingsAccordion/SettingsAccordion.js +1 -1
  325. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/SettingsAccordion/SettingsAccordion.js.map +1 -1
  326. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js +1 -1
  327. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js.map +1 -1
  328. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js +1 -1
  329. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js.map +1 -1
  330. package/cjs-bundle/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
  331. package/cjs-bundle/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js.map +1 -1
  332. package/cjs-bundle/components/PadModeSelect/FracModeLabel.js +1 -1
  333. package/cjs-bundle/components/PadModeSelect/FracModeLabel.js.map +1 -1
  334. package/cjs-bundle/components/PadModeSelect/PadModeSelect.js +1 -1
  335. package/cjs-bundle/components/PadModeSelect/PadModeSelect.js.map +1 -1
  336. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  337. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  338. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  339. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  340. package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js +1 -1
  341. package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js.map +1 -1
  342. package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js +1 -1
  343. package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js.map +1 -1
  344. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  345. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js.map +1 -1
  346. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  347. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js.map +1 -1
  348. package/cjs-bundle/components/Search/Search.js +1 -1
  349. package/cjs-bundle/components/Search/Search.js.map +1 -1
  350. package/cjs-bundle/components/Select/SelectFilterBy.js +1 -1
  351. package/cjs-bundle/components/Select/SelectFilterBy.js.map +1 -1
  352. package/cjs-bundle/components/SettingEditors/ColorEditor/index.js +1 -1
  353. package/cjs-bundle/components/SettingEditors/ColorEditor/index.js.map +1 -1
  354. package/cjs-bundle/components/Stepper/Step/Step.js +1 -1
  355. package/cjs-bundle/components/Stepper/Step/Step.js.map +1 -1
  356. package/cjs-bundle/components/Table/TableCell/TableCell.js +1 -1
  357. package/cjs-bundle/components/Table/TableCell/TableCell.js.map +1 -1
  358. package/cjs-bundle/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
  359. package/cjs-bundle/components/Table/TablePaginationActions/TablePaginationActions.js.map +1 -1
  360. package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  361. package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js.map +1 -1
  362. package/cjs-bundle/components/Toaster/Toaster.js +1 -1
  363. package/cjs-bundle/components/Toaster/Toaster.js.map +1 -1
  364. package/cjs-bundle/components/index.js +1 -1
  365. package/cjs-bundle/componentsV2/Accordion/Accordion.js +1 -1
  366. package/cjs-bundle/componentsV2/Accordion/Accordion.js.map +1 -1
  367. package/cjs-bundle/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
  368. package/cjs-bundle/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js.map +1 -1
  369. package/cjs-bundle/componentsV2/AppDqPopover/DqAsset/DqAsset.js +1 -1
  370. package/cjs-bundle/componentsV2/AppDqPopover/DqAsset/DqAsset.js.map +1 -1
  371. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js +1 -1
  372. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js.map +1 -1
  373. package/cjs-bundle/componentsV2/AppFooter/Warning.js +1 -1
  374. package/cjs-bundle/componentsV2/AppFooter/Warning.js.map +1 -1
  375. package/cjs-bundle/componentsV2/AppHeader/AppAssets/utils.js +1 -1
  376. package/cjs-bundle/componentsV2/AppHeader/AppAssets/utils.js.map +1 -1
  377. package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  378. package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.js.map +1 -1
  379. package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  380. package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.js.map +1 -1
  381. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js +1 -1
  382. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js.map +1 -1
  383. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js +1 -1
  384. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js.map +1 -1
  385. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/constants.js +1 -1
  386. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/constants.js.map +1 -1
  387. package/cjs-bundle/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js +1 -1
  388. package/cjs-bundle/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js.map +1 -1
  389. package/cjs-bundle/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js +1 -1
  390. package/cjs-bundle/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js.map +1 -1
  391. package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
  392. package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js.map +1 -1
  393. package/cjs-bundle/componentsV2/AppSettings/AppSettings.js +1 -1
  394. package/cjs-bundle/componentsV2/AppSettings/AppSettings.js.map +1 -1
  395. package/cjs-bundle/componentsV2/Autocomplete/Autocomplete.js +1 -1
  396. package/cjs-bundle/componentsV2/Autocomplete/Autocomplete.js.map +1 -1
  397. package/cjs-bundle/componentsV2/Breadcrumbs/Breadcrumbs.js +1 -1
  398. package/cjs-bundle/componentsV2/Breadcrumbs/Breadcrumbs.js.map +1 -1
  399. package/cjs-bundle/componentsV2/ButtonLive/ButtonLive.js +1 -1
  400. package/cjs-bundle/componentsV2/ButtonLive/ButtonLive.js.map +1 -1
  401. package/cjs-bundle/componentsV2/ChartAxisExtreme/ChartAxisExtreme.js +1 -1
  402. package/cjs-bundle/componentsV2/ChartAxisExtreme/ChartAxisExtreme.js.map +1 -1
  403. package/cjs-bundle/componentsV2/Chip/Chip.js +1 -1
  404. package/cjs-bundle/componentsV2/Chip/Chip.js.map +1 -1
  405. package/cjs-bundle/componentsV2/ColorPicker/ColorPicker.js +1 -1
  406. package/cjs-bundle/componentsV2/ColorPicker/ColorPicker.js.map +1 -1
  407. package/cjs-bundle/componentsV2/ColorPicker/Swatches/Swatches.js +1 -1
  408. package/cjs-bundle/componentsV2/ColorPicker/Swatches/Swatches.js.map +1 -1
  409. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
  410. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js.map +1 -1
  411. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
  412. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js.map +1 -1
  413. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  414. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
  415. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
  416. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js.map +1 -1
  417. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
  418. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js.map +1 -1
  419. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
  420. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js.map +1 -1
  421. package/cjs-bundle/componentsV2/CopyToClipboard/CopyToClipboard.js +1 -1
  422. package/cjs-bundle/componentsV2/CopyToClipboard/CopyToClipboard.js.map +1 -1
  423. package/cjs-bundle/componentsV2/Counter/Counter.js +1 -1
  424. package/cjs-bundle/componentsV2/Counter/Counter.js.map +1 -1
  425. package/cjs-bundle/componentsV2/DatePicker/CalendarControls/CalendarControls.js +1 -1
  426. package/cjs-bundle/componentsV2/DatePicker/CalendarControls/CalendarControls.js.map +1 -1
  427. package/cjs-bundle/componentsV2/DatePicker/Input/Input.js +1 -1
  428. package/cjs-bundle/componentsV2/DatePicker/Input/Input.js.map +1 -1
  429. package/cjs-bundle/componentsV2/DragHandle/DragHandle.js +1 -1
  430. package/cjs-bundle/componentsV2/DragHandle/DragHandle.js.map +1 -1
  431. package/cjs-bundle/componentsV2/FilesDropzone/FilesDropzone.js +1 -1
  432. package/cjs-bundle/componentsV2/FilesDropzone/FilesDropzone.js.map +1 -1
  433. package/cjs-bundle/componentsV2/FilesLoader/FilesLoader.js +1 -1
  434. package/cjs-bundle/componentsV2/FilesLoader/FilesLoader.js.map +1 -1
  435. package/cjs-bundle/componentsV2/Hint/Hint.js +1 -1
  436. package/cjs-bundle/componentsV2/Hint/Hint.js.map +1 -1
  437. package/cjs-bundle/componentsV2/ImageViewer/ImageViewer.js +1 -1
  438. package/cjs-bundle/componentsV2/ImageViewer/ImageViewer.js.map +1 -1
  439. package/cjs-bundle/componentsV2/InterventionEventSelector/InterventionEventSelector.js +1 -1
  440. package/cjs-bundle/componentsV2/InterventionEventSelector/InterventionEventSelector.js.map +1 -1
  441. package/cjs-bundle/componentsV2/ModalWindow/ModalWindow.js +1 -1
  442. package/cjs-bundle/componentsV2/ModalWindow/ModalWindow.js.map +1 -1
  443. package/cjs-bundle/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
  444. package/cjs-bundle/componentsV2/OffsetWellsButton/OffsetWellsButton.js.map +1 -1
  445. package/cjs-bundle/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js +1 -1
  446. package/cjs-bundle/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js.map +1 -1
  447. package/cjs-bundle/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js +1 -1
  448. package/cjs-bundle/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js.map +1 -1
  449. package/cjs-bundle/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
  450. package/cjs-bundle/componentsV2/PadModeSelect/PadModeSelect.js.map +1 -1
  451. package/cjs-bundle/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.js +1 -1
  452. package/cjs-bundle/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.js.map +1 -1
  453. package/cjs-bundle/componentsV2/SliderAdvanced/Bar.js +1 -1
  454. package/cjs-bundle/componentsV2/SliderAdvanced/Bar.js.map +1 -1
  455. package/cjs-bundle/componentsV2/SliderAdvanced/HandleWrapper.js +1 -1
  456. package/cjs-bundle/componentsV2/SliderAdvanced/HandleWrapper.js.map +1 -1
  457. package/cjs-bundle/componentsV2/Stepper/Step/Step.js +1 -1
  458. package/cjs-bundle/componentsV2/Stepper/Step/Step.js.map +1 -1
  459. package/cjs-bundle/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js +1 -1
  460. package/cjs-bundle/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js.map +1 -1
  461. package/cjs-bundle/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js +1 -1
  462. package/cjs-bundle/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js.map +1 -1
  463. package/cjs-bundle/componentsV2/TemplatesControl/Popover/Popover.js +1 -1
  464. package/cjs-bundle/componentsV2/TemplatesControl/Popover/Popover.js.map +1 -1
  465. package/cjs-bundle/componentsV2/TemplatesControl/PopoverFooter/PopoverFooter.js +1 -1
  466. package/cjs-bundle/componentsV2/TemplatesControl/PopoverFooter/PopoverFooter.js.map +1 -1
  467. package/cjs-bundle/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js +1 -1
  468. package/cjs-bundle/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js.map +1 -1
  469. package/cjs-bundle/componentsV2/TemplatesControl/ShareModal/ShareModal.js +1 -1
  470. package/cjs-bundle/componentsV2/TemplatesControl/ShareModal/ShareModal.js.map +1 -1
  471. package/cjs-bundle/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js +1 -1
  472. package/cjs-bundle/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js.map +1 -1
  473. package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js +1 -1
  474. package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js.map +1 -1
  475. package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js +1 -1
  476. package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js.map +1 -1
  477. package/cjs-bundle/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
  478. package/cjs-bundle/componentsV2/TemplatesControl/Toggle/Toggle.js.map +1 -1
  479. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js +1 -1
  480. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js.map +1 -1
  481. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js +1 -1
  482. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js.map +1 -1
  483. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js +1 -1
  484. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js.map +1 -1
  485. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js +1 -1
  486. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js.map +1 -1
  487. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js +1 -1
  488. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js.map +1 -1
  489. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js +1 -1
  490. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js.map +1 -1
  491. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js +1 -1
  492. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js.map +1 -1
  493. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js +1 -1
  494. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js.map +1 -1
  495. package/cjs-bundle/componentsV2/TextInput/TextInput.js +1 -1
  496. package/cjs-bundle/componentsV2/TextInput/TextInput.js.map +1 -1
  497. package/cjs-bundle/componentsV2/TextInputBase/TextInputBase.js +1 -1
  498. package/cjs-bundle/componentsV2/TextInputBase/TextInputBase.js.map +1 -1
  499. package/cjs-bundle/componentsV2/TextInputBase/components/InfoIcon.js +1 -1
  500. package/cjs-bundle/componentsV2/TextInputBase/components/InfoIcon.js.map +1 -1
  501. package/cjs-bundle/componentsV2/TextInputNext/TextInputNext.js +1 -1
  502. package/cjs-bundle/componentsV2/TextInputNext/TextInputNext.js.map +1 -1
  503. package/cjs-bundle/config/theme/index.js +1 -1
  504. package/cjs-bundle/config/theme/index.js.map +1 -1
  505. package/cjs-bundle/constants/feed.js +1 -1
  506. package/cjs-bundle/constants/feed.js.map +1 -1
  507. package/cjs-bundle/icons/customIcons/icons/FlameFilled.js +2 -0
  508. package/cjs-bundle/icons/customIcons/icons/FlameFilled.js.map +1 -0
  509. package/cjs-bundle/icons/customIcons/icons/InfoRounded.js +2 -0
  510. package/cjs-bundle/icons/customIcons/icons/InfoRounded.js.map +1 -0
  511. package/cjs-bundle/icons/index.js +1 -1
  512. package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  513. package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js.map +1 -1
  514. package/cjs-bundle/utils/feed.js +1 -1
  515. package/cjs-bundle/utils/feed.js.map +1 -1
  516. package/components/AddComment/Popover.js +1 -1
  517. package/components/AddComment/Popover.js.map +1 -1
  518. package/components/AddComment/components/Content.js +1 -1
  519. package/components/AddComment/components/Content.js.map +1 -1
  520. package/components/AdvancedSlider/Handle.js +1 -1
  521. package/components/AdvancedSlider/Handle.js.map +1 -1
  522. package/components/AttachFileButton/AttachFileButton.js +1 -1
  523. package/components/AttachFileButton/AttachFileButton.js.map +1 -1
  524. package/components/Attachment/index.js +1 -1
  525. package/components/Attachment/index.js.map +1 -1
  526. package/components/AttachmentLightbox/AttachmentLightbox.js +1 -1
  527. package/components/AttachmentLightbox/AttachmentLightbox.js.map +1 -1
  528. package/components/AttachmentLightbox/AttachmentPreviewPane.js +1 -1
  529. package/components/AttachmentLightbox/AttachmentPreviewPane.js.map +1 -1
  530. package/components/AttachmentPreview/AttachmentActionsMenu.js +1 -1
  531. package/components/AttachmentPreview/AttachmentActionsMenu.js.map +1 -1
  532. package/components/AttachmentPreview/AttachmentDownloadLink.js +1 -1
  533. package/components/AttachmentPreview/AttachmentDownloadLink.js.map +1 -1
  534. package/components/AttachmentPreview/AttachmentTile.js +1 -1
  535. package/components/AttachmentPreview/AttachmentTile.js.map +1 -1
  536. package/components/AttachmentPreview/SortableAttachments.js +1 -1
  537. package/components/AttachmentPreview/SortableAttachments.js.map +1 -1
  538. package/components/BICOffsetPickerDialog/index.js +1 -1
  539. package/components/BICOffsetPickerDialog/index.js.map +1 -1
  540. package/components/Breadcrumbs/index.js +1 -1
  541. package/components/Breadcrumbs/index.js.map +1 -1
  542. package/components/Button/components/LiveButton/index.js +1 -1
  543. package/components/Button/components/LiveButton/index.js.map +1 -1
  544. package/components/Button/index.js +1 -1
  545. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  546. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  547. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  548. package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  549. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  550. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  551. package/components/Chart/components/AxisDropdown.js +1 -1
  552. package/components/Chart/components/AxisDropdown.js.map +1 -1
  553. package/components/Chart/components/ChartSelect.js +1 -1
  554. package/components/Chart/components/ChartSelect.js.map +1 -1
  555. package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  556. package/components/Chart/components/buttons/ChartTypeButton.js.map +1 -1
  557. package/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  558. package/components/Chart/components/buttons/DragToZoomButton.js.map +1 -1
  559. package/components/Chart/components/buttons/HideAxesButton.js +1 -1
  560. package/components/Chart/components/buttons/HideAxesButton.js.map +1 -1
  561. package/components/Chart/components/buttons/PanButton.js +1 -1
  562. package/components/Chart/components/buttons/PanButton.js.map +1 -1
  563. package/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  564. package/components/Chart/components/buttons/ResetZoomButton.js.map +1 -1
  565. package/components/Chart/components/buttons/ZoomInButton.js +1 -1
  566. package/components/Chart/components/buttons/ZoomInButton.js.map +1 -1
  567. package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  568. package/components/Chart/components/buttons/ZoomOutButton.js.map +1 -1
  569. package/components/Chip/index.js +1 -1
  570. package/components/Chip/index.js.map +1 -1
  571. package/components/CollapsableSidebar.js +1 -1
  572. package/components/CollapsableSidebar.js.map +1 -1
  573. package/components/CollapsibleContent.d.ts.map +1 -1
  574. package/components/CollapsibleContent.js +1 -1
  575. package/components/CollapsibleContent.js.map +1 -1
  576. package/components/ColorPicker/ColorPicker.js +1 -1
  577. package/components/ColorPicker/ColorPicker.js.map +1 -1
  578. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  579. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js.map +1 -1
  580. package/components/CommentCard/CommentCard.js +1 -1
  581. package/components/CommentCard/CommentCard.js.map +1 -1
  582. package/components/CommentCard/CommentCardReactions.js +1 -1
  583. package/components/CommentCard/CommentCardReactions.js.map +1 -1
  584. package/components/CommentCard/CommentCardReplies.js +1 -1
  585. package/components/CommentCard/CommentCardReplies.js.map +1 -1
  586. package/components/CommentCard/buildCommentReply.js +1 -1
  587. package/components/CommentCard/buildCommentReply.js.map +1 -1
  588. package/components/CommentComposer/ChatChannelSelector.js +1 -1
  589. package/components/CommentComposer/ChatChannelSelector.js.map +1 -1
  590. package/components/CommentComposer/CommentComposer.js +1 -1
  591. package/components/CommentComposer/CommentComposer.js.map +1 -1
  592. package/components/CommentInputNext/CommentInputNext.js +1 -1
  593. package/components/CommentInputNext/CommentInputNext.js.map +1 -1
  594. package/components/CopyToClipboard/CopyToClipboard.js +1 -1
  595. package/components/CopyToClipboard/CopyToClipboard.js.map +1 -1
  596. package/components/Counter/index.js +1 -1
  597. package/components/Counter/index.js.map +1 -1
  598. package/components/DatePicker/index.js +1 -1
  599. package/components/DatePicker/index.js.map +1 -1
  600. package/components/DateTimePicker/index.js +1 -1
  601. package/components/DateTimePicker/index.js.map +1 -1
  602. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
  603. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js.map +1 -1
  604. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  605. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js.map +1 -1
  606. package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  607. package/components/DevCenter/AppSideBar/AppSideBar.js.map +1 -1
  608. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  609. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  610. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  611. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  612. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
  613. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js.map +1 -1
  614. package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
  615. package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js.map +1 -1
  616. package/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js +1 -1
  617. package/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js.map +1 -1
  618. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js +1 -1
  619. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js.map +1 -1
  620. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js +1 -1
  621. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js.map +1 -1
  622. package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js +1 -1
  623. package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js.map +1 -1
  624. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  625. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
  626. package/components/DocumentViewer/DocumentViewer.js +1 -1
  627. package/components/DocumentViewer/DocumentViewer.js.map +1 -1
  628. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  629. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  630. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  631. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  632. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  633. package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  634. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  635. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  636. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  637. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  638. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  639. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  640. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  641. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  642. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  643. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  644. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  645. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  646. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  647. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  648. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  649. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  650. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  651. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  652. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  653. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  654. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  655. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  656. package/components/Drillstring/BhaIndicator/styles.css.js +1 -1
  657. package/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  658. package/components/EChartsWrapper/components/Toolbox/Toolbox.js.map +1 -1
  659. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
  660. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js.map +1 -1
  661. package/components/FeedCard/useFeedActivity.js +1 -1
  662. package/components/FeedCard/useFeedActivity.js.map +1 -1
  663. package/components/FeedItem/FeedItem.js +1 -1
  664. package/components/FeedItem/FeedItem.js.map +1 -1
  665. package/components/FeedItem/components/Icon.d.ts.map +1 -1
  666. package/components/FeedItem/components/Icon.js +1 -1
  667. package/components/FeedItem/components/Icon.js.map +1 -1
  668. package/components/FeedItem/components/LessonsLearnedLeafIcon.d.ts +3 -1
  669. package/components/FeedItem/components/LessonsLearnedLeafIcon.d.ts.map +1 -1
  670. package/components/FeedItem/components/LessonsLearnedLeafIcon.js +1 -1
  671. package/components/FeedItem/components/LessonsLearnedLeafIcon.js.map +1 -1
  672. package/components/FeedItem/feedItemTypes/AlertFeedItem.d.ts +1 -1
  673. package/components/FeedItem/feedItemTypes/AlertFeedItem.d.ts.map +1 -1
  674. package/components/FeedItem/feedItemTypes/AlertFeedItem.js +1 -1
  675. package/components/FeedItem/feedItemTypes/AlertFeedItem.js.map +1 -1
  676. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.d.ts.map +1 -1
  677. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js +1 -1
  678. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js.map +1 -1
  679. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/styles.scss.js +2 -0
  680. package/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js +1 -1
  681. package/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js.map +1 -1
  682. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaNumber.d.ts.map +1 -1
  683. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaNumber.js +1 -1
  684. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaNumber.js.map +1 -1
  685. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.d.ts.map +1 -1
  686. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js +1 -1
  687. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js.map +1 -1
  688. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/NoData.d.ts.map +1 -1
  689. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/NoData.js +1 -1
  690. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/NoData.js.map +1 -1
  691. package/components/FeedItem/feedItemTypes/BhaFeedItem/styles.scss.js +2 -0
  692. package/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.d.ts.map +1 -1
  693. package/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js +1 -1
  694. package/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js.map +1 -1
  695. package/components/FeedItem/feedItemTypes/CompletionDocumentFeedItem.d.ts.map +1 -1
  696. package/components/FeedItem/feedItemTypes/CompletionDocumentFeedItem.js +1 -1
  697. package/components/FeedItem/feedItemTypes/CompletionDocumentFeedItem.js.map +1 -1
  698. package/components/FeedItem/feedItemTypes/CompletionNptFeedItem.d.ts.map +1 -1
  699. package/components/FeedItem/feedItemTypes/CompletionNptFeedItem.js +1 -1
  700. package/components/FeedItem/feedItemTypes/CompletionNptFeedItem.js.map +1 -1
  701. package/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.d.ts.map +1 -1
  702. package/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js +1 -1
  703. package/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js.map +1 -1
  704. package/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.d.ts.map +1 -1
  705. package/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js +1 -1
  706. package/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js.map +1 -1
  707. package/components/FeedItem/feedItemTypes/DepthCommentFeedItem.d.ts.map +1 -1
  708. package/components/FeedItem/feedItemTypes/DepthCommentFeedItem.js +1 -1
  709. package/components/FeedItem/feedItemTypes/DepthCommentFeedItem.js.map +1 -1
  710. package/components/FeedItem/feedItemTypes/DocumentFeedItem.d.ts +14 -1
  711. package/components/FeedItem/feedItemTypes/DocumentFeedItem.d.ts.map +1 -1
  712. package/components/FeedItem/feedItemTypes/DocumentFeedItem.js +1 -1
  713. package/components/FeedItem/feedItemTypes/DocumentFeedItem.js.map +1 -1
  714. package/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.d.ts.map +1 -1
  715. package/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.js +1 -1
  716. package/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.js.map +1 -1
  717. package/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.d.ts.map +1 -1
  718. package/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js +1 -1
  719. package/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js.map +1 -1
  720. package/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.d.ts.map +1 -1
  721. package/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js +1 -1
  722. package/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js.map +1 -1
  723. package/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.d.ts.map +1 -1
  724. package/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js +1 -1
  725. package/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js.map +1 -1
  726. package/components/FeedItem/feedItemTypes/DvDCommentFeedItem.d.ts.map +1 -1
  727. package/components/FeedItem/feedItemTypes/DvDCommentFeedItem.js +1 -1
  728. package/components/FeedItem/feedItemTypes/DvDCommentFeedItem.js.map +1 -1
  729. package/components/FeedItem/feedItemTypes/FluidReportFeedItem.d.ts.map +1 -1
  730. package/components/FeedItem/feedItemTypes/FluidReportFeedItem.js +1 -1
  731. package/components/FeedItem/feedItemTypes/FluidReportFeedItem.js.map +1 -1
  732. package/components/FeedItem/feedItemTypes/GenericDataCommentFeedItem.d.ts.map +1 -1
  733. package/components/FeedItem/feedItemTypes/GenericDataCommentFeedItem.js +1 -1
  734. package/components/FeedItem/feedItemTypes/GenericDataCommentFeedItem.js.map +1 -1
  735. package/components/FeedItem/feedItemTypes/GeosteeringFeedItem.d.ts.map +1 -1
  736. package/components/FeedItem/feedItemTypes/GeosteeringFeedItem.js +1 -1
  737. package/components/FeedItem/feedItemTypes/GeosteeringFeedItem.js.map +1 -1
  738. package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.d.ts.map +1 -1
  739. package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js +1 -1
  740. package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js.map +1 -1
  741. package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.d.ts.map +1 -1
  742. package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js +1 -1
  743. package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js.map +1 -1
  744. package/components/FeedItem/feedItemTypes/NptFeedItem.d.ts.map +1 -1
  745. package/components/FeedItem/feedItemTypes/NptFeedItem.js +1 -1
  746. package/components/FeedItem/feedItemTypes/NptFeedItem.js.map +1 -1
  747. package/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.d.ts.map +1 -1
  748. package/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js +1 -1
  749. package/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js.map +1 -1
  750. package/components/FeedItem/feedItemTypes/PCCommentFeedItem.d.ts.map +1 -1
  751. package/components/FeedItem/feedItemTypes/PCCommentFeedItem.js +1 -1
  752. package/components/FeedItem/feedItemTypes/PCCommentFeedItem.js.map +1 -1
  753. package/components/FeedItem/feedItemTypes/PostFeedItem.d.ts.map +1 -1
  754. package/components/FeedItem/feedItemTypes/PostFeedItem.js +1 -1
  755. package/components/FeedItem/feedItemTypes/PostFeedItem.js.map +1 -1
  756. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.d.ts.map +1 -1
  757. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +1 -1
  758. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js.map +1 -1
  759. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.d.ts.map +1 -1
  760. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js +1 -1
  761. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js.map +1 -1
  762. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.d.ts.map +1 -1
  763. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.js +1 -1
  764. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.js.map +1 -1
  765. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.d.ts.map +1 -1
  766. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js +1 -1
  767. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js.map +1 -1
  768. package/components/FeedItem/feedItemTypes/TracesMemoFeedItem.d.ts.map +1 -1
  769. package/components/FeedItem/feedItemTypes/TracesMemoFeedItem.js +1 -1
  770. package/components/FeedItem/feedItemTypes/TracesMemoFeedItem.js.map +1 -1
  771. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.d.ts.map +1 -1
  772. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js +1 -1
  773. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js.map +1 -1
  774. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/VerticalSectionAzimuth.d.ts.map +1 -1
  775. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/VerticalSectionAzimuth.js +1 -1
  776. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/VerticalSectionAzimuth.js.map +1 -1
  777. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.js +1 -1
  778. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.js.map +1 -1
  779. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/styles.scss.js +2 -0
  780. package/components/FeedItem/feedItemTypes/components/ContextRow.d.ts +79 -0
  781. package/components/FeedItem/feedItemTypes/components/ContextRow.d.ts.map +1 -0
  782. package/components/FeedItem/feedItemTypes/components/ContextRow.js +2 -0
  783. package/components/FeedItem/feedItemTypes/components/ContextRow.js.map +1 -0
  784. package/components/FeedItem/feedItemTypes/components/FeedAttachment.d.ts +22 -0
  785. package/components/FeedItem/feedItemTypes/components/FeedAttachment.d.ts.map +1 -0
  786. package/components/FeedItem/feedItemTypes/components/FeedAttachment.js +2 -0
  787. package/components/FeedItem/feedItemTypes/components/FeedAttachment.js.map +1 -0
  788. package/components/FilesDropzone/FilesDropzone.js +1 -1
  789. package/components/FilesDropzone/FilesDropzone.js.map +1 -1
  790. package/components/FilesLoader/FilesLoader.js +1 -1
  791. package/components/FilesLoader/FilesLoader.js.map +1 -1
  792. package/components/FilesLoaderV2/FilesLoaderV2.js +1 -1
  793. package/components/FilesLoaderV2/FilesLoaderV2.js.map +1 -1
  794. package/components/Formula/CloseSuggestion.js +1 -1
  795. package/components/Formula/CloseSuggestion.js.map +1 -1
  796. package/components/Formula/Formula.js +1 -1
  797. package/components/Formula/Formula.js.map +1 -1
  798. package/components/GradientManager/GradientManager.js +1 -1
  799. package/components/GradientManager/GradientManager.js.map +1 -1
  800. package/components/GradientManager/GradientSelect.js +1 -1
  801. package/components/GradientManager/GradientSelect.js.map +1 -1
  802. package/components/GradientPicker/GradientPicker.js +1 -1
  803. package/components/GradientPicker/GradientPicker.js.map +1 -1
  804. package/components/HelpCenter/HelpCenterIcon.js +1 -1
  805. package/components/HelpCenter/HelpCenterIcon.js.map +1 -1
  806. package/components/Hint/Hint.js +1 -1
  807. package/components/Hint/Hint.js.map +1 -1
  808. package/components/Modal/CorvaModal.js +1 -1
  809. package/components/Modal/CorvaModal.js.map +1 -1
  810. package/components/Notifications/Toast.js +1 -1
  811. package/components/Notifications/Toast.js.map +1 -1
  812. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  813. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  814. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  815. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  816. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  817. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  818. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  819. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  820. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  821. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  822. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  823. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  824. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  825. package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  826. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  827. package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  828. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  829. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  830. package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
  831. package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js.map +1 -1
  832. package/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js +1 -1
  833. package/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js.map +1 -1
  834. package/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js +1 -1
  835. package/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js.map +1 -1
  836. package/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  837. package/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  838. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  839. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  840. package/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
  841. package/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js.map +1 -1
  842. package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
  843. package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js.map +1 -1
  844. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +1 -1
  845. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js.map +1 -1
  846. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
  847. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js.map +1 -1
  848. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  849. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js.map +1 -1
  850. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js +1 -1
  851. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js.map +1 -1
  852. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js +1 -1
  853. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js.map +1 -1
  854. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js +1 -1
  855. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js.map +1 -1
  856. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js +1 -1
  857. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js.map +1 -1
  858. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  859. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  860. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  861. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
  862. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
  863. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js.map +1 -1
  864. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  865. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js.map +1 -1
  866. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js +1 -1
  867. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js.map +1 -1
  868. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js +1 -1
  869. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js.map +1 -1
  870. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js +1 -1
  871. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js.map +1 -1
  872. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js +1 -1
  873. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js.map +1 -1
  874. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js +1 -1
  875. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js.map +1 -1
  876. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js +1 -1
  877. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js.map +1 -1
  878. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js +1 -1
  879. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js.map +1 -1
  880. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js +1 -1
  881. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js.map +1 -1
  882. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/SettingsAccordion/SettingsAccordion.js +1 -1
  883. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/SettingsAccordion/SettingsAccordion.js.map +1 -1
  884. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js +1 -1
  885. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js.map +1 -1
  886. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js +1 -1
  887. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js.map +1 -1
  888. package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
  889. package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js.map +1 -1
  890. package/components/PadModeSelect/FracModeLabel.js +1 -1
  891. package/components/PadModeSelect/FracModeLabel.js.map +1 -1
  892. package/components/PadModeSelect/PadModeSelect.js +1 -1
  893. package/components/PadModeSelect/PadModeSelect.js.map +1 -1
  894. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  895. package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  896. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  897. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  898. package/components/ParameterCharts/components/TraceHeader.js +1 -1
  899. package/components/ParameterCharts/components/TraceHeader.js.map +1 -1
  900. package/components/PinnableFilters/components/FiltersToggler.js +1 -1
  901. package/components/PinnableFilters/components/FiltersToggler.js.map +1 -1
  902. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  903. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js.map +1 -1
  904. package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  905. package/components/RealTimeValuesSidebar/SidebarFooter.js.map +1 -1
  906. package/components/Search/Search.js +1 -1
  907. package/components/Search/Search.js.map +1 -1
  908. package/components/Select/SelectFilterBy.js +1 -1
  909. package/components/Select/SelectFilterBy.js.map +1 -1
  910. package/components/SettingEditors/ColorEditor/index.js +1 -1
  911. package/components/SettingEditors/ColorEditor/index.js.map +1 -1
  912. package/components/Stepper/Step/Step.js +1 -1
  913. package/components/Stepper/Step/Step.js.map +1 -1
  914. package/components/Table/TableCell/TableCell.js +1 -1
  915. package/components/Table/TableCell/TableCell.js.map +1 -1
  916. package/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
  917. package/components/Table/TablePaginationActions/TablePaginationActions.js.map +1 -1
  918. package/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  919. package/components/Table/TableSortLabel/TableSortLabel.js.map +1 -1
  920. package/components/Toaster/Toaster.js +1 -1
  921. package/components/Toaster/Toaster.js.map +1 -1
  922. package/components/index.js +1 -1
  923. package/componentsV2/Accordion/Accordion.js +1 -1
  924. package/componentsV2/Accordion/Accordion.js.map +1 -1
  925. package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
  926. package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js.map +1 -1
  927. package/componentsV2/AppDqPopover/DqAsset/DqAsset.js +1 -1
  928. package/componentsV2/AppDqPopover/DqAsset/DqAsset.js.map +1 -1
  929. package/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js +1 -1
  930. package/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js.map +1 -1
  931. package/componentsV2/AppFooter/Warning.js +1 -1
  932. package/componentsV2/AppFooter/Warning.js.map +1 -1
  933. package/componentsV2/AppHeader/AppAssets/utils.js +1 -1
  934. package/componentsV2/AppHeader/AppAssets/utils.js.map +1 -1
  935. package/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  936. package/componentsV2/AppHeader/V3/Actions/Actions.js.map +1 -1
  937. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  938. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.js.map +1 -1
  939. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js +1 -1
  940. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js.map +1 -1
  941. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js +1 -1
  942. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js.map +1 -1
  943. package/componentsV2/AppHeader/V3/AssetSelector/constants.js +1 -1
  944. package/componentsV2/AppHeader/V3/AssetSelector/constants.js.map +1 -1
  945. package/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js +1 -1
  946. package/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js.map +1 -1
  947. package/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js +1 -1
  948. package/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js.map +1 -1
  949. package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
  950. package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js.map +1 -1
  951. package/componentsV2/AppSettings/AppSettings.js +1 -1
  952. package/componentsV2/AppSettings/AppSettings.js.map +1 -1
  953. package/componentsV2/Autocomplete/Autocomplete.js +1 -1
  954. package/componentsV2/Autocomplete/Autocomplete.js.map +1 -1
  955. package/componentsV2/Breadcrumbs/Breadcrumbs.js +1 -1
  956. package/componentsV2/Breadcrumbs/Breadcrumbs.js.map +1 -1
  957. package/componentsV2/ButtonLive/ButtonLive.js +1 -1
  958. package/componentsV2/ButtonLive/ButtonLive.js.map +1 -1
  959. package/componentsV2/ChartAxisExtreme/ChartAxisExtreme.js +1 -1
  960. package/componentsV2/ChartAxisExtreme/ChartAxisExtreme.js.map +1 -1
  961. package/componentsV2/Chip/Chip.js +1 -1
  962. package/componentsV2/Chip/Chip.js.map +1 -1
  963. package/componentsV2/ColorPicker/ColorPicker.js +1 -1
  964. package/componentsV2/ColorPicker/ColorPicker.js.map +1 -1
  965. package/componentsV2/ColorPicker/Swatches/Swatches.js +1 -1
  966. package/componentsV2/ColorPicker/Swatches/Swatches.js.map +1 -1
  967. package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
  968. package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js.map +1 -1
  969. package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
  970. package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js.map +1 -1
  971. package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  972. package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
  973. package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
  974. package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js.map +1 -1
  975. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
  976. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js.map +1 -1
  977. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
  978. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js.map +1 -1
  979. package/componentsV2/CopyToClipboard/CopyToClipboard.js +1 -1
  980. package/componentsV2/CopyToClipboard/CopyToClipboard.js.map +1 -1
  981. package/componentsV2/Counter/Counter.js +1 -1
  982. package/componentsV2/Counter/Counter.js.map +1 -1
  983. package/componentsV2/DatePicker/CalendarControls/CalendarControls.js +1 -1
  984. package/componentsV2/DatePicker/CalendarControls/CalendarControls.js.map +1 -1
  985. package/componentsV2/DatePicker/Input/Input.js +1 -1
  986. package/componentsV2/DatePicker/Input/Input.js.map +1 -1
  987. package/componentsV2/DragHandle/DragHandle.js +1 -1
  988. package/componentsV2/DragHandle/DragHandle.js.map +1 -1
  989. package/componentsV2/FilesDropzone/FilesDropzone.js +1 -1
  990. package/componentsV2/FilesDropzone/FilesDropzone.js.map +1 -1
  991. package/componentsV2/FilesLoader/FilesLoader.js +1 -1
  992. package/componentsV2/FilesLoader/FilesLoader.js.map +1 -1
  993. package/componentsV2/Hint/Hint.js +1 -1
  994. package/componentsV2/Hint/Hint.js.map +1 -1
  995. package/componentsV2/ImageViewer/ImageViewer.js +1 -1
  996. package/componentsV2/ImageViewer/ImageViewer.js.map +1 -1
  997. package/componentsV2/InterventionEventSelector/InterventionEventSelector.js +1 -1
  998. package/componentsV2/InterventionEventSelector/InterventionEventSelector.js.map +1 -1
  999. package/componentsV2/ModalWindow/ModalWindow.js +1 -1
  1000. package/componentsV2/ModalWindow/ModalWindow.js.map +1 -1
  1001. package/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
  1002. package/componentsV2/OffsetWellsButton/OffsetWellsButton.js.map +1 -1
  1003. package/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js +1 -1
  1004. package/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js.map +1 -1
  1005. package/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js +1 -1
  1006. package/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js.map +1 -1
  1007. package/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
  1008. package/componentsV2/PadModeSelect/PadModeSelect.js.map +1 -1
  1009. package/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.js +1 -1
  1010. package/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.js.map +1 -1
  1011. package/componentsV2/SliderAdvanced/Bar.js +1 -1
  1012. package/componentsV2/SliderAdvanced/Bar.js.map +1 -1
  1013. package/componentsV2/SliderAdvanced/HandleWrapper.js +1 -1
  1014. package/componentsV2/SliderAdvanced/HandleWrapper.js.map +1 -1
  1015. package/componentsV2/Stepper/Step/Step.js +1 -1
  1016. package/componentsV2/Stepper/Step/Step.js.map +1 -1
  1017. package/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js +1 -1
  1018. package/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js.map +1 -1
  1019. package/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js +1 -1
  1020. package/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js.map +1 -1
  1021. package/componentsV2/TemplatesControl/Popover/Popover.js +1 -1
  1022. package/componentsV2/TemplatesControl/Popover/Popover.js.map +1 -1
  1023. package/componentsV2/TemplatesControl/PopoverFooter/PopoverFooter.js +1 -1
  1024. package/componentsV2/TemplatesControl/PopoverFooter/PopoverFooter.js.map +1 -1
  1025. package/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js +1 -1
  1026. package/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js.map +1 -1
  1027. package/componentsV2/TemplatesControl/ShareModal/ShareModal.js +1 -1
  1028. package/componentsV2/TemplatesControl/ShareModal/ShareModal.js.map +1 -1
  1029. package/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js +1 -1
  1030. package/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js.map +1 -1
  1031. package/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js +1 -1
  1032. package/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js.map +1 -1
  1033. package/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js +1 -1
  1034. package/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js.map +1 -1
  1035. package/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
  1036. package/componentsV2/TemplatesControl/Toggle/Toggle.js.map +1 -1
  1037. package/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js +1 -1
  1038. package/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js.map +1 -1
  1039. package/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js +1 -1
  1040. package/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js.map +1 -1
  1041. package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js +1 -1
  1042. package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js.map +1 -1
  1043. package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js +1 -1
  1044. package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js.map +1 -1
  1045. package/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js +1 -1
  1046. package/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js.map +1 -1
  1047. package/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js +1 -1
  1048. package/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js.map +1 -1
  1049. package/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js +1 -1
  1050. package/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js.map +1 -1
  1051. package/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js +1 -1
  1052. package/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js.map +1 -1
  1053. package/componentsV2/TextInput/TextInput.js +1 -1
  1054. package/componentsV2/TextInput/TextInput.js.map +1 -1
  1055. package/componentsV2/TextInputBase/TextInputBase.js +1 -1
  1056. package/componentsV2/TextInputBase/TextInputBase.js.map +1 -1
  1057. package/componentsV2/TextInputBase/components/InfoIcon.js +1 -1
  1058. package/componentsV2/TextInputBase/components/InfoIcon.js.map +1 -1
  1059. package/componentsV2/TextInputNext/TextInputNext.js +1 -1
  1060. package/componentsV2/TextInputNext/TextInputNext.js.map +1 -1
  1061. package/config/theme/index.js +1 -1
  1062. package/config/theme/index.js.map +1 -1
  1063. package/constants/feed.d.ts +1 -1
  1064. package/constants/feed.d.ts.map +1 -1
  1065. package/constants/feed.js +1 -1
  1066. package/constants/feed.js.map +1 -1
  1067. package/icons/customIcons/icons/FlameFilled.d.ts +2 -0
  1068. package/icons/customIcons/icons/FlameFilled.d.ts.map +1 -0
  1069. package/icons/customIcons/icons/FlameFilled.js +2 -0
  1070. package/icons/customIcons/icons/FlameFilled.js.map +1 -0
  1071. package/icons/customIcons/icons/InfoRounded.d.ts +2 -0
  1072. package/icons/customIcons/icons/InfoRounded.d.ts.map +1 -0
  1073. package/icons/customIcons/icons/InfoRounded.js +2 -0
  1074. package/icons/customIcons/icons/InfoRounded.js.map +1 -0
  1075. package/icons/customIcons/icons/index.d.ts +2 -0
  1076. package/icons/customIcons/icons/index.d.ts.map +1 -1
  1077. package/icons/index.js +1 -1
  1078. package/mcp-server/server.mjs +39 -7
  1079. package/package.json +1 -1
  1080. package/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  1081. package/testing/AppTestWrapper/AppTestWrapper.js.map +1 -1
  1082. package/tsconfig.tsbuildinfo +1 -1
  1083. package/utils/feed.d.ts +8 -0
  1084. package/utils/feed.d.ts.map +1 -1
  1085. package/utils/feed.js +1 -1
  1086. package/utils/feed.js.map +1 -1
  1087. package/cjs-bundle/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/styles.css.js +0 -2
  1088. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/styles.css.js +0 -2
  1089. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/styles.css.js +0 -2
  1090. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/styles.css.js +0 -2
  1091. package/components/FeedItem/feedItemTypes/BhaFeedItem/styles.css.js +0 -2
  1092. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/styles.css.js +0 -2
  1093. /package/cjs-bundle/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/{styles.css.js.map → styles.scss.js.map} +0 -0
  1094. /package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/{styles.css.js.map → styles.scss.js.map} +0 -0
  1095. /package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/{styles.css.js.map → styles.scss.js.map} +0 -0
  1096. /package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/{styles.css.js.map → styles.scss.js.map} +0 -0
  1097. /package/components/FeedItem/feedItemTypes/BhaFeedItem/{styles.css.js.map → styles.scss.js.map} +0 -0
  1098. /package/components/FeedItem/feedItemTypes/WellPlanFeedItem/{styles.css.js.map → styles.scss.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import{useDropzone as s}from"react-dropzone";import c from"classnames";import{useStyles as i}from"./styles.js";import{FileAdditionOne as n}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{CautionFilledCustomIcon as t}from"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../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{Regular14 as r}from"../Typography.js";import e from"../Button/components/Button/index.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react";import"moment-timezone";import"@material-ui/core";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import{jsxs as m,jsx as p,Fragment as u}from"react/jsx-runtime";import{parseAccept as a,formatDescription as l}from"../../componentsV2/FilesDropzone/utils.js";function j(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?j(Object(i),!0).forEach((function(c){o(s,c,i[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var d=function(o){var j=o.multiple,d=o.children,b=o.accept,h=o.onDrop,O=o.className,f=o.maxFiles,C=o.maxSize,v=o.errorText,y=o.disabled,g=i(),P=a(b),F=P.mimetypes,D=P.extensions,x=F.length||D.length?I({"*/*":D},Object.fromEntries(F.map((function(o){return[o,[]]})))):void 0,A=l(D,C),z=s({onDrop:h,multiple:j,accept:x,maxFiles:f,maxSize:C,disabled:y}),B=z.getRootProps,S=z.getInputProps,k=z.isDragActive;return m("div",{className:O,children:[m("div",I(I({},B()),{},{className:c(g.root,y&&g.disabled,k&&g.active),children:[p("input",I({},S())),d||m(u,{children:[p(n,{size:24,className:g.icon}),p(r,{children:"Drag & Drop your file here or"}),p(e,{variation:"tertiary",size:"small",disabled:y,className:g.uploadButton,children:"Choose file"})]})]})),!v&&A&&p(r,{className:c(g.description,y&&g.disabled),children:A}),v&&m(r,{className:g.error,children:[p(t,{size:20}),v]})]})};export{d as FilesDropzone};
1
+ import o from"@babel/runtime/helpers/defineProperty";import{useDropzone as s}from"react-dropzone";import c from"classnames";import{useStyles as i}from"./styles.js";import{FileAdditionOne as n}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{CautionFilledCustomIcon as t}from"../../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{Regular14 as r}from"../Typography.js";import e from"../Button/components/Button/index.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react";import"moment-timezone";import"@material-ui/core";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import{jsxs as m,jsx as p,Fragment as u}from"react/jsx-runtime";import{parseAccept as a,formatDescription as l}from"../../componentsV2/FilesDropzone/utils.js";function j(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?j(Object(i),!0).forEach((function(c){o(s,c,i[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var d=function(o){var j=o.multiple,d=o.children,b=o.accept,h=o.onDrop,O=o.className,f=o.maxFiles,C=o.maxSize,v=o.errorText,y=o.disabled,g=i(),F=a(b),P=F.mimetypes,D=F.extensions,x=P.length||D.length?I({"*/*":D},Object.fromEntries(P.map((function(o){return[o,[]]})))):void 0,A=l(D,C),z=s({onDrop:h,multiple:j,accept:x,maxFiles:f,maxSize:C,disabled:y}),B=z.getRootProps,S=z.getInputProps,k=z.isDragActive;return m("div",{className:O,children:[m("div",I(I({},B()),{},{className:c(g.root,y&&g.disabled,k&&g.active),children:[p("input",I({},S())),d||m(u,{children:[p(n,{size:24,className:g.icon}),p(r,{children:"Drag & Drop your file here or"}),p(e,{variation:"tertiary",size:"small",disabled:y,className:g.uploadButton,children:"Choose file"})]})]})),!v&&A&&p(r,{className:c(g.description,y&&g.disabled),children:A}),v&&m(r,{className:g.error,children:[p(t,{size:20}),v]})]})};export{d as FilesDropzone};
2
2
  //# sourceMappingURL=FilesDropzone.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilesDropzone.js","sources":["../../../src/components/FilesDropzone/FilesDropzone.tsx"],"sourcesContent":["import { Accept, DropzoneOptions, useDropzone } from 'react-dropzone';\nimport { ReactNode } from 'react';\nimport classNames from 'classnames';\n\nimport { useStyles } from './styles';\n\nimport { CautionFilledCustomIcon, FileAdditionOne } from '~/icons';\nimport { Regular14 } from '~/components/Typography';\nimport Button from '~/components/Button';\nimport { formatDescription, parseAccept } from '~/componentsV2/FilesDropzone/utils';\n\nexport type FilesDropzoneProps = {\n /**\n * Handles file drop\n */\n onDrop?: DropzoneOptions['onDrop'];\n\n /**\n * Content to render\n */\n children?: ReactNode;\n\n /**\n * Controls if dropzone accepts multiple files\n */\n multiple?: boolean;\n\n /**\n * Array of or comma-separated MIME types/File Extensions to accept\n *\n * NB: file extensions <b>must</b> start with `.`<br/>, otherwise they will be treated as MIME types\n * file extensions will be shown below the dropzone in the description\n *\n * Example:<br/>\n * `.xsl,image/*,.csv`<br/>\n * Will accept any file with `xsl` or `csv` extensions, and also - any file with `image/...` MIME type\n */\n accept?: string[] | string;\n\n /**\n * Maximum files to accept\n */\n maxFiles?: number;\n\n /**\n * Maximum file size to accept\n */\n maxSize?: number;\n\n errorText?: string;\n className?: string;\n disabled?: boolean;\n};\n\nexport const FilesDropzone = (props: FilesDropzoneProps) => {\n const { multiple, children, accept, onDrop, className, maxFiles, maxSize, errorText, disabled } =\n props;\n const styles = useStyles();\n const { mimetypes, extensions } = parseAccept(accept);\n\n const acceptObject: Accept | undefined =\n mimetypes.length || extensions.length\n ? {\n '*/*': extensions,\n ...Object.fromEntries(mimetypes.map((mimetype): [string, string[]] => [mimetype, []])),\n }\n : undefined;\n\n const description = formatDescription(extensions, maxSize);\n\n const { getRootProps, getInputProps, isDragActive } = useDropzone({\n onDrop,\n multiple,\n accept: acceptObject,\n maxFiles,\n maxSize,\n disabled,\n });\n return (\n <div className={className}>\n <div\n {...getRootProps()}\n className={classNames(\n styles.root,\n disabled && styles.disabled,\n isDragActive && styles.active\n )}\n >\n <input {...getInputProps()} />\n {children || (\n <>\n <FileAdditionOne size={24} className={styles.icon} />\n <Regular14>Drag & Drop your file here or</Regular14>\n <Button\n variation=\"tertiary\"\n size=\"small\"\n disabled={disabled}\n className={styles.uploadButton}\n >\n Choose file\n </Button>\n </>\n )}\n </div>\n\n {!errorText && description && (\n <Regular14 className={classNames(styles.description, disabled && styles.disabled)}>\n {description}\n </Regular14>\n )}\n\n {errorText && (\n <Regular14 className={styles.error}>\n <CautionFilledCustomIcon size={20} />\n {errorText}\n </Regular14>\n )}\n </div>\n );\n};\n"],"names":["FilesDropzone","props","multiple","children","accept","onDrop","className","maxFiles","maxSize","errorText","disabled","styles","useStyles","parseAccept","mimetypes","extensions","acceptObject","length","_objectSpread","Object","fromEntries","map","mimetype","undefined","description","formatDescription","_useDropzone","useDropzone","getRootProps","getInputProps","isDragActive","_jsxs","classNames","root","active","_jsx","_Fragment","FileAdditionOne","size","icon","Regular14","Button","variation","uploadButton","error","CautionFilledCustomIcon"],"mappings":"u5JAsDaA,EAAgB,SAACC,GAC5B,IAAQC,EACND,EADMC,SAAUC,EAChBF,EADgBE,SAAUC,EAC1BH,EAD0BG,OAAQC,EAClCJ,EADkCI,OAAQC,EAC1CL,EAD0CK,UAAWC,EACrDN,EADqDM,SAAUC,EAC/DP,EAD+DO,QAASC,EACxER,EADwEQ,UAAWC,EACnFT,EADmFS,SAE/EC,EAASC,IACmBC,EAAAA,EAAYT,GAAtCU,IAAAA,UAAWC,IAAAA,WAEbC,EACJF,EAAUG,QAAUF,EAAWE,OAAMC,EAAA,CAE/B,MAAOH,GACJI,OAAOC,YAAYN,EAAUO,KAAI,SAACC,GAAQ,MAAyB,CAACA,EAAU,cAEnFC,EAEAC,EAAcC,EAAkBV,EAAYP,GAElDkB,EAAsDC,EAAY,CAChEtB,OAAAA,EACAH,SAAAA,EACAE,OAAQY,EACRT,SAAAA,EACAC,QAAAA,EACAE,SAAAA,IANMkB,IAAAA,aAAcC,IAAAA,cAAeC,IAAAA,aAQrC,OACEC,EAAA,MAAA,CAAKzB,UAAWA,EAAUH,SACxB,CAAA4B,EAAA,MAAAb,EAAAA,EAAA,GACMU,KAAc,GAAA,CAClBtB,UAAW0B,EACTrB,EAAOsB,KACPvB,GAAYC,EAAOD,SACnBoB,GAAgBnB,EAAOuB,QACvB/B,SAAA,CAEFgC,eAAWN,MACV1B,GACC4B,EAAAK,EAAA,CAAAjC,SAAA,CACEgC,EAACE,EAAe,CAACC,KAAM,GAAIhC,UAAWK,EAAO4B,OAC7CJ,EAACK,EAAS,CAAArC,SAAA,kCACVgC,EAACM,EAAM,CACLC,UAAU,WACVJ,KAAK,QACL5B,SAAUA,EACVJ,UAAWK,EAAOgC,aAAaxC,SAAA,wBAQrCM,GAAae,GACbW,EAACK,EAAS,CAAClC,UAAW0B,EAAWrB,EAAOa,YAAad,GAAYC,EAAOD,UAAUP,SAC/EqB,IAIJf,GACCsB,EAACS,EAAS,CAAClC,UAAWK,EAAOiC,MAAMzC,SAAA,CACjCgC,EAACU,EAAuB,CAACP,KAAM,KAC9B7B,OAKX"}
1
+ {"version":3,"file":"FilesDropzone.js","sources":["../../../src/components/FilesDropzone/FilesDropzone.tsx"],"sourcesContent":["import { Accept, DropzoneOptions, useDropzone } from 'react-dropzone';\nimport { ReactNode } from 'react';\nimport classNames from 'classnames';\n\nimport { useStyles } from './styles';\n\nimport { CautionFilledCustomIcon, FileAdditionOne } from '~/icons';\nimport { Regular14 } from '~/components/Typography';\nimport Button from '~/components/Button';\nimport { formatDescription, parseAccept } from '~/componentsV2/FilesDropzone/utils';\n\nexport type FilesDropzoneProps = {\n /**\n * Handles file drop\n */\n onDrop?: DropzoneOptions['onDrop'];\n\n /**\n * Content to render\n */\n children?: ReactNode;\n\n /**\n * Controls if dropzone accepts multiple files\n */\n multiple?: boolean;\n\n /**\n * Array of or comma-separated MIME types/File Extensions to accept\n *\n * NB: file extensions <b>must</b> start with `.`<br/>, otherwise they will be treated as MIME types\n * file extensions will be shown below the dropzone in the description\n *\n * Example:<br/>\n * `.xsl,image/*,.csv`<br/>\n * Will accept any file with `xsl` or `csv` extensions, and also - any file with `image/...` MIME type\n */\n accept?: string[] | string;\n\n /**\n * Maximum files to accept\n */\n maxFiles?: number;\n\n /**\n * Maximum file size to accept\n */\n maxSize?: number;\n\n errorText?: string;\n className?: string;\n disabled?: boolean;\n};\n\nexport const FilesDropzone = (props: FilesDropzoneProps) => {\n const { multiple, children, accept, onDrop, className, maxFiles, maxSize, errorText, disabled } =\n props;\n const styles = useStyles();\n const { mimetypes, extensions } = parseAccept(accept);\n\n const acceptObject: Accept | undefined =\n mimetypes.length || extensions.length\n ? {\n '*/*': extensions,\n ...Object.fromEntries(mimetypes.map((mimetype): [string, string[]] => [mimetype, []])),\n }\n : undefined;\n\n const description = formatDescription(extensions, maxSize);\n\n const { getRootProps, getInputProps, isDragActive } = useDropzone({\n onDrop,\n multiple,\n accept: acceptObject,\n maxFiles,\n maxSize,\n disabled,\n });\n return (\n <div className={className}>\n <div\n {...getRootProps()}\n className={classNames(\n styles.root,\n disabled && styles.disabled,\n isDragActive && styles.active\n )}\n >\n <input {...getInputProps()} />\n {children || (\n <>\n <FileAdditionOne size={24} className={styles.icon} />\n <Regular14>Drag & Drop your file here or</Regular14>\n <Button\n variation=\"tertiary\"\n size=\"small\"\n disabled={disabled}\n className={styles.uploadButton}\n >\n Choose file\n </Button>\n </>\n )}\n </div>\n\n {!errorText && description && (\n <Regular14 className={classNames(styles.description, disabled && styles.disabled)}>\n {description}\n </Regular14>\n )}\n\n {errorText && (\n <Regular14 className={styles.error}>\n <CautionFilledCustomIcon size={20} />\n {errorText}\n </Regular14>\n )}\n </div>\n );\n};\n"],"names":["FilesDropzone","props","multiple","children","accept","onDrop","className","maxFiles","maxSize","errorText","disabled","styles","useStyles","parseAccept","mimetypes","extensions","acceptObject","length","_objectSpread","Object","fromEntries","map","mimetype","undefined","description","formatDescription","_useDropzone","useDropzone","getRootProps","getInputProps","isDragActive","_jsxs","classNames","root","active","_jsx","_Fragment","FileAdditionOne","size","icon","Regular14","Button","variation","uploadButton","error","CautionFilledCustomIcon"],"mappings":"igKAsDaA,EAAgB,SAACC,GAC5B,IAAQC,EACND,EADMC,SAAUC,EAChBF,EADgBE,SAAUC,EAC1BH,EAD0BG,OAAQC,EAClCJ,EADkCI,OAAQC,EAC1CL,EAD0CK,UAAWC,EACrDN,EADqDM,SAAUC,EAC/DP,EAD+DO,QAASC,EACxER,EADwEQ,UAAWC,EACnFT,EADmFS,SAE/EC,EAASC,IACmBC,EAAAA,EAAYT,GAAtCU,IAAAA,UAAWC,IAAAA,WAEbC,EACJF,EAAUG,QAAUF,EAAWE,OAAMC,EAAA,CAE/B,MAAOH,GACJI,OAAOC,YAAYN,EAAUO,KAAI,SAACC,GAAQ,MAAyB,CAACA,EAAU,cAEnFC,EAEAC,EAAcC,EAAkBV,EAAYP,GAElDkB,EAAsDC,EAAY,CAChEtB,OAAAA,EACAH,SAAAA,EACAE,OAAQY,EACRT,SAAAA,EACAC,QAAAA,EACAE,SAAAA,IANMkB,IAAAA,aAAcC,IAAAA,cAAeC,IAAAA,aAQrC,OACEC,EAAA,MAAA,CAAKzB,UAAWA,EAAUH,SACxB,CAAA4B,EAAA,MAAAb,EAAAA,EAAA,GACMU,KAAc,GAAA,CAClBtB,UAAW0B,EACTrB,EAAOsB,KACPvB,GAAYC,EAAOD,SACnBoB,GAAgBnB,EAAOuB,QACvB/B,SAAA,CAEFgC,eAAWN,MACV1B,GACC4B,EAAAK,EAAA,CAAAjC,SAAA,CACEgC,EAACE,EAAe,CAACC,KAAM,GAAIhC,UAAWK,EAAO4B,OAC7CJ,EAACK,EAAS,CAAArC,SAAA,kCACVgC,EAACM,EAAM,CACLC,UAAU,WACVJ,KAAK,QACL5B,SAAUA,EACVJ,UAAWK,EAAOgC,aAAaxC,SAAA,wBAQrCM,GAAae,GACbW,EAACK,EAAS,CAAClC,UAAW0B,EAAWrB,EAAOa,YAAad,GAAYC,EAAOD,UAAUP,SAC/EqB,IAIJf,GACCsB,EAACS,EAAS,CAAClC,UAAWK,EAAOiC,MAAMzC,SAAA,CACjCgC,EAACU,EAAuB,CAACP,KAAM,KAC9B7B,OAKX"}
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{useState as n,useEffect as i,useMemo as c}from"react";import t from"prop-types";import e from"classnames";import{Typography as r,LinearProgress as m}from"@material-ui/core";import a from"../IconButton/index.js";import l from"../Button/components/Button/index.js";import"@babel/runtime/helpers/objectWithoutProperties";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import{CloseSmallIcon as p,DeleteFourIcon as u,CheckOneIcon as d,RedoIcon as j,UploadIcon as I}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/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 f,jsx as h,Fragment as v}from"react/jsx-runtime";import g from"./Icons/IconWarning.js";import{FileIcon as b}from"../FileIcon/FileIcon.js";import{useStyles as C}from"./useStyles.js";function O(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 z(s){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?O(Object(i),!0).forEach((function(n){o(s,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):O(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}function y(t){var O=t.size,y=void 0===O?"small":O,P=t.unit,B=void 0===P?"size":P,N=t.name,S=void 0===N?"":N,w=t.customUnitName,F=void 0===w?"":w,M=t.sizeBytes,A=void 0===M?1:M,k=t.handleCancel,L=void 0===k?null:k,D=t.onReload,x=void 0===D?null:D,E=t.onDelete,T=void 0===E?null:E,R=t.loadedBytes,U=t.error,W=void 0===U?null:U,G=t.errorText,q=void 0===G?"":G,K=t.formatError,Z=void 0!==K&&K,H=t.importButtonType,J=void 0===H?"default":H,Q=t.isLoadingAnimation,V=void 0!==Q&&Q,X=t.showActions,Y=void 0===X||X,$=C(),_=n({}),oo=s(_,2),so=oo[0],no=oo[1],io=n(0),co=s(io,2),to=co[0],eo=co[1],ro=n(!0),mo=s(ro,2),ao=mo[0],lo=mo[1],po="large"===y,uo=po?24:16,jo=po?"medium":"small";i((function(){no(function(o,s,n){return"time"===s?{downloaded:0,unit:"min",convertedSize:o}:"custom"===s?{downloaded:0,unit:n,convertedSize:o}:o>=Math.pow(10,6)?{downloaded:0,unit:"MB",convertedSize:Math.floor(o/Math.pow(10,5))/10}:o>=Math.pow(10,3)?{downloaded:0,unit:"KB",convertedSize:Math.floor(o/Math.pow(10,2))/10}:{downloaded:0,unit:"B",convertedSize:Math.floor(10*o)/10}}(null!=A?A:1,null!=B?B:"size",null!=F?F:""))}),[A,B]),i((function(){if(R&&A){var o=Math.round(R/A*100);no((function(s){var n;return z(z({},s),{},{downloaded:Math.floor((null!==(n=s.convertedSize)&&void 0!==n?n:0)*o/10)/10})})),eo(o)}}),[R,A]),i((function(){var o;return T&&to>=100&&(lo(!0),o=setTimeout((function(){lo(!1)}),5e3)),function(){return o&&clearTimeout(o)}}),[to]),i((function(){W&&(eo(0),no((function(o){return z(z({},o),{},{downloaded:0})})))}),[W]);var Io=c((function(){return[e($.iconButton,o({},$.iconButtonLarge,po)),e($.actionIcon,o({},$.actionIconLarge,po))]}),[po]),fo=s(Io,2),ho=fo[0],vo=fo[1];return f("div",{className:$.fileStateWrapper,children:[h("div",{className:$.fileIconContainer,children:h(b,{name:null!=S?S:"",style:{fontSize:po?48:32}})}),f("div",{className:$.fileState,children:[f("div",{className:$.fileStateProgress,children:[h("div",{className:$.fileNameWrapper,children:h(r,{className:e($.fileName,o({},$.fileNameLarge,po)),children:S&&S.length>7?f(v,{children:[h("span",{className:$.firstPart,children:S.slice(0,S.length-7)}),h("span",{children:S.slice(-7)})]}):S})}),!V&&h(m,{className:$.progressBar,variant:"determinate",value:to,classes:{colorPrimary:e($.progressBackground,o({},$.progressBarError,W)),barColorPrimary:e($.progressBarColor,o({},$.progressBarError,W))}}),f("div",{className:$.loaderProgressContainer,children:[!V&&h(r,{className:e($.fileSize,o({},$.fileSizeLarge,po)),component:"span",children:"".concat(so.downloaded," of ").concat(so.convertedSize," ").concat(so.unit)}),f("div",{className:e($.progressStatus,o({},$.fileSizeLarge,po)),children:[W&&f(r,{component:"div",className:$.errorContainer,children:[h(g,{size:y}),h(r,{component:"span",className:e($.errorText,o({},$.fileSizeLarge,po)),children:Z?"Upload Error. Unacceptable file format.":"Upload Error".concat(q&&". ".concat(q))})]}),!W&&!V&&"".concat(to," %")]})]})]}),Y&&f("div",{className:$.fileActions,children:[to<100&&!W&&h(v,{children:V?h("div",{className:e($.loadingIcon,o({},$.loadingLargeIcon,po)),style:{backgroundImage:"url(".concat("/static/media/6fa6f1128bc0185126482345243bcd42.svg",")")}}):h(a,{tooltipProps:{title:"Cancel"},className:ho,onClick:function(){null==L||L(S),eo(0),no((function(o){return z(z({},o),{},{downloaded:0})}))},size:jo,children:h(p,{className:vo,size:uo})})}),100===to&&!W&&(!ao&&T?h(a,{variant:"contained",tooltipProps:{title:"Delete"},className:ho,onClick:T,size:jo,children:h(u,{className:vo,size:uo})}):h(d,{fill:"#75DB29",size:uo,style:{marginLeft:12}})),x&&W&&h(v,{children:Z?h(v,{children:"default"===J?h(l,{size:po?"medium":"small",variation:"primary",startIcon:h(I,{}),onClick:x,children:"Import"}):h(a,{size:jo,tooltipProps:{title:"Import File"},className:ho,onClick:x,children:h(I,{size:uo})})}):h(a,{size:jo,tooltipProps:{title:"Reload"},className:ho,onClick:x,children:h(j,{size:uo})})})]})]})]})}var P={size:t.oneOf(["small","large"]),unit:t.oneOf(["size","time","custom"]),customUnitName:t.string,onDelete:t.func,onReload:t.func,handleCancel:t.func,name:t.string,sizeBytes:t.number,error:t.bool,errorText:t.string,formatError:t.bool,importButtonType:t.oneOf(["default","icon"]),loadedBytes:t.number.isRequired,isLoadingAnimation:t.bool,showActions:t.bool};y.propTypes=P;export{y as default};
1
+ import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{useState as n,useEffect as i,useMemo as c}from"react";import t from"prop-types";import e from"classnames";import{Typography as r,LinearProgress as m}from"@material-ui/core";import a from"../IconButton/index.js";import l from"../Button/components/Button/index.js";import"@babel/runtime/helpers/objectWithoutProperties";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import{CloseSmallIcon as p,DeleteFourIcon as u,CheckOneIcon as d,RedoIcon as j,UploadIcon as I}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 f,jsx as h,Fragment as v}from"react/jsx-runtime";import g from"./Icons/IconWarning.js";import{FileIcon as b}from"../FileIcon/FileIcon.js";import{useStyles as C}from"./useStyles.js";function O(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 z(s){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?O(Object(i),!0).forEach((function(n){o(s,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):O(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}function y(t){var O=t.size,y=void 0===O?"small":O,P=t.unit,B=void 0===P?"size":P,N=t.name,S=void 0===N?"":N,w=t.customUnitName,F=void 0===w?"":w,M=t.sizeBytes,A=void 0===M?1:M,k=t.handleCancel,L=void 0===k?null:k,D=t.onReload,x=void 0===D?null:D,E=t.onDelete,T=void 0===E?null:E,R=t.loadedBytes,U=t.error,W=void 0===U?null:U,G=t.errorText,q=void 0===G?"":G,K=t.formatError,Z=void 0!==K&&K,H=t.importButtonType,J=void 0===H?"default":H,Q=t.isLoadingAnimation,V=void 0!==Q&&Q,X=t.showActions,Y=void 0===X||X,$=C(),_=n({}),oo=s(_,2),so=oo[0],no=oo[1],io=n(0),co=s(io,2),to=co[0],eo=co[1],ro=n(!0),mo=s(ro,2),ao=mo[0],lo=mo[1],po="large"===y,uo=po?24:16,jo=po?"medium":"small";i((function(){no(function(o,s,n){return"time"===s?{downloaded:0,unit:"min",convertedSize:o}:"custom"===s?{downloaded:0,unit:n,convertedSize:o}:o>=Math.pow(10,6)?{downloaded:0,unit:"MB",convertedSize:Math.floor(o/Math.pow(10,5))/10}:o>=Math.pow(10,3)?{downloaded:0,unit:"KB",convertedSize:Math.floor(o/Math.pow(10,2))/10}:{downloaded:0,unit:"B",convertedSize:Math.floor(10*o)/10}}(null!=A?A:1,null!=B?B:"size",null!=F?F:""))}),[A,B]),i((function(){if(R&&A){var o=Math.round(R/A*100);no((function(s){var n;return z(z({},s),{},{downloaded:Math.floor((null!==(n=s.convertedSize)&&void 0!==n?n:0)*o/10)/10})})),eo(o)}}),[R,A]),i((function(){var o;return T&&to>=100&&(lo(!0),o=setTimeout((function(){lo(!1)}),5e3)),function(){return o&&clearTimeout(o)}}),[to]),i((function(){W&&(eo(0),no((function(o){return z(z({},o),{},{downloaded:0})})))}),[W]);var Io=c((function(){return[e($.iconButton,o({},$.iconButtonLarge,po)),e($.actionIcon,o({},$.actionIconLarge,po))]}),[po]),fo=s(Io,2),ho=fo[0],vo=fo[1];return f("div",{className:$.fileStateWrapper,children:[h("div",{className:$.fileIconContainer,children:h(b,{name:null!=S?S:"",style:{fontSize:po?48:32}})}),f("div",{className:$.fileState,children:[f("div",{className:$.fileStateProgress,children:[h("div",{className:$.fileNameWrapper,children:h(r,{className:e($.fileName,o({},$.fileNameLarge,po)),children:S&&S.length>7?f(v,{children:[h("span",{className:$.firstPart,children:S.slice(0,S.length-7)}),h("span",{children:S.slice(-7)})]}):S})}),!V&&h(m,{className:$.progressBar,variant:"determinate",value:to,classes:{colorPrimary:e($.progressBackground,o({},$.progressBarError,W)),barColorPrimary:e($.progressBarColor,o({},$.progressBarError,W))}}),f("div",{className:$.loaderProgressContainer,children:[!V&&h(r,{className:e($.fileSize,o({},$.fileSizeLarge,po)),component:"span",children:"".concat(so.downloaded," of ").concat(so.convertedSize," ").concat(so.unit)}),f("div",{className:e($.progressStatus,o({},$.fileSizeLarge,po)),children:[W&&f(r,{component:"div",className:$.errorContainer,children:[h(g,{size:y}),h(r,{component:"span",className:e($.errorText,o({},$.fileSizeLarge,po)),children:Z?"Upload Error. Unacceptable file format.":"Upload Error".concat(q&&". ".concat(q))})]}),!W&&!V&&"".concat(to," %")]})]})]}),Y&&f("div",{className:$.fileActions,children:[to<100&&!W&&h(v,{children:V?h("div",{className:e($.loadingIcon,o({},$.loadingLargeIcon,po)),style:{backgroundImage:"url(".concat("/static/media/6fa6f1128bc0185126482345243bcd42.svg",")")}}):h(a,{tooltipProps:{title:"Cancel"},className:ho,onClick:function(){null==L||L(S),eo(0),no((function(o){return z(z({},o),{},{downloaded:0})}))},size:jo,children:h(p,{className:vo,size:uo})})}),100===to&&!W&&(!ao&&T?h(a,{variant:"contained",tooltipProps:{title:"Delete"},className:ho,onClick:T,size:jo,children:h(u,{className:vo,size:uo})}):h(d,{fill:"#75DB29",size:uo,style:{marginLeft:12}})),x&&W&&h(v,{children:Z?h(v,{children:"default"===J?h(l,{size:po?"medium":"small",variation:"primary",startIcon:h(I,{}),onClick:x,children:"Import"}):h(a,{size:jo,tooltipProps:{title:"Import File"},className:ho,onClick:x,children:h(I,{size:uo})})}):h(a,{size:jo,tooltipProps:{title:"Reload"},className:ho,onClick:x,children:h(j,{size:uo})})})]})]})]})}var P={size:t.oneOf(["small","large"]),unit:t.oneOf(["size","time","custom"]),customUnitName:t.string,onDelete:t.func,onReload:t.func,handleCancel:t.func,name:t.string,sizeBytes:t.number,error:t.bool,errorText:t.string,formatError:t.bool,importButtonType:t.oneOf(["default","icon"]),loadedBytes:t.number.isRequired,isLoadingAnimation:t.bool,showActions:t.bool};y.propTypes=P;export{y as default};
2
2
  //# sourceMappingURL=FilesLoader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilesLoader.js","sources":["../../../src/components/FilesLoader/FilesLoader.tsx"],"sourcesContent":["import { useEffect, useMemo, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { LinearProgress, Typography } from '@material-ui/core';\nimport IconButton from '~/components/IconButton';\nimport Button from '~/components/Button';\n\nimport { CheckOneIcon, CloseSmallIcon, DeleteFourIcon, RedoIcon, UploadIcon } from '~/icons';\n\nimport IconWarning from './Icons/IconWarning';\nimport LoaderIcon from './Icons/IconLoader.svg';\nimport { FileIcon } from '~/components/FileIcon';\nimport { useStyles } from './useStyles';\n\nfunction getInitSizeParams(sizeBytes: number, unit: string, customUnitName: string) {\n if (unit === 'time') {\n return {\n downloaded: 0,\n unit: 'min',\n convertedSize: sizeBytes,\n };\n }\n\n if (unit === 'custom') {\n return {\n downloaded: 0,\n unit: customUnitName,\n convertedSize: sizeBytes,\n };\n }\n\n if (sizeBytes >= 10 ** 6) {\n return {\n downloaded: 0,\n unit: 'MB',\n convertedSize: Math.floor(sizeBytes / 10 ** 5) / 10,\n };\n }\n if (sizeBytes >= 10 ** 3) {\n return {\n downloaded: 0,\n unit: 'KB',\n convertedSize: Math.floor(sizeBytes / 10 ** 2) / 10,\n };\n }\n return {\n downloaded: 0,\n unit: 'B',\n convertedSize: Math.floor(sizeBytes * 10) / 10,\n };\n}\n\ninterface FilesLoaderProps extends PropTypes.InferProps<typeof filesLoaderPropTypes> {}\ninterface SizeParams {\n downloaded?: number;\n convertedSize?: number;\n unit?: string;\n}\n\n/**\n * @deprecated\n */\nfunction FilesLoader({\n size = 'small',\n unit = 'size',\n name = '',\n customUnitName = '',\n sizeBytes = 1,\n handleCancel = null,\n onReload = null,\n onDelete = null,\n loadedBytes,\n error = null,\n errorText = '',\n formatError = false,\n importButtonType = 'default',\n isLoadingAnimation = false,\n showActions = true,\n}: FilesLoaderProps): JSX.Element {\n const classes = useStyles();\n const [sizeParams, setSizeParams] = useState<SizeParams>({});\n const [progressPercent, setProgressPercent] = useState(0);\n const [isSuccessButtonVisible, setIsSuccessButtonVisible] = useState(true);\n const isLarge = size === 'large';\n const iconSize = isLarge ? 24 : 16;\n const iconButtonSize = isLarge ? 'medium' : 'small';\n\n const handleCancelProgress = () => {\n handleCancel?.(name);\n setProgressPercent(0);\n setSizeParams(prev => ({ ...prev, downloaded: 0 }));\n };\n\n useEffect(() => {\n setSizeParams(getInitSizeParams(sizeBytes ?? 1, unit ?? 'size', customUnitName ?? ''));\n }, [sizeBytes, unit]);\n\n useEffect(() => {\n if (loadedBytes && sizeBytes) {\n const currentPercent = Math.round((loadedBytes / sizeBytes) * 100);\n setSizeParams(prev => ({\n ...prev,\n downloaded: Math.floor(((prev.convertedSize ?? 0) * currentPercent) / 10) / 10,\n }));\n setProgressPercent(currentPercent);\n }\n }, [loadedBytes, sizeBytes]);\n\n useEffect(() => {\n let timerId: ReturnType<typeof setTimeout>;\n if (onDelete && progressPercent >= 100) {\n setIsSuccessButtonVisible(true);\n timerId = setTimeout(() => {\n setIsSuccessButtonVisible(false);\n }, 5000);\n }\n return () => timerId && clearTimeout(timerId);\n }, [progressPercent]);\n\n useEffect(() => {\n if (error) {\n setProgressPercent(0);\n setSizeParams(prev => ({ ...prev, downloaded: 0 }));\n }\n }, [error]);\n\n const [iconButtonClassName, actionIconClassName] = useMemo(() => {\n const iconButtonStyle = classNames(classes.iconButton, {\n [classes.iconButtonLarge]: isLarge,\n });\n const actionIconStyle = classNames(classes.actionIcon, {\n [classes.actionIconLarge]: isLarge,\n });\n return [iconButtonStyle, actionIconStyle];\n }, [isLarge]);\n\n return (\n <div className={classes.fileStateWrapper}>\n <div className={classes.fileIconContainer}>\n <FileIcon name={name ?? ''} style={{ fontSize: isLarge ? 48 : 32 }} />\n </div>\n <div className={classes.fileState}>\n <div className={classes.fileStateProgress}>\n <div className={classes.fileNameWrapper}>\n <Typography\n className={classNames(classes.fileName, { [classes.fileNameLarge]: isLarge })}\n >\n {name && name.length > 7 ? (\n <>\n <span className={classes.firstPart}>{name.slice(0, name.length - 7)}</span>\n <span>{name.slice(-7)}</span>\n </>\n ) : (\n name\n )}\n </Typography>\n </div>\n {!isLoadingAnimation && (\n <LinearProgress\n className={classes.progressBar}\n variant=\"determinate\"\n value={progressPercent}\n classes={{\n colorPrimary: classNames(classes.progressBackground, {\n [classes.progressBarError]: error,\n }),\n barColorPrimary: classNames(classes.progressBarColor, {\n [classes.progressBarError]: error,\n }),\n }}\n />\n )}\n <div className={classes.loaderProgressContainer}>\n {!isLoadingAnimation && (\n <Typography\n className={classNames(classes.fileSize, { [classes.fileSizeLarge]: isLarge })}\n component=\"span\"\n >\n {`${sizeParams.downloaded} of ${sizeParams.convertedSize} ${sizeParams.unit}`}\n </Typography>\n )}\n <div\n className={classNames(classes.progressStatus, { [classes.fileSizeLarge]: isLarge })}\n >\n {error && (\n <Typography component=\"div\" className={classes.errorContainer}>\n <IconWarning size={size} />\n <Typography\n component=\"span\"\n className={classNames(classes.errorText, { [classes.fileSizeLarge]: isLarge })}\n >\n {formatError\n ? 'Upload Error. Unacceptable file format.'\n : `Upload Error${errorText && `. ${errorText}`}`}\n </Typography>\n </Typography>\n )}\n {!error && !isLoadingAnimation && `${progressPercent} %`}\n </div>\n </div>\n </div>\n\n {showActions && (\n <div className={classes.fileActions}>\n {progressPercent < 100 && !error && (\n <>\n {isLoadingAnimation ? (\n <div\n className={classNames(classes.loadingIcon, {\n [classes.loadingLargeIcon]: isLarge,\n })}\n style={{ backgroundImage: `url(${LoaderIcon})` }}\n />\n ) : (\n <IconButton\n tooltipProps={{ title: 'Cancel' }}\n className={iconButtonClassName}\n onClick={handleCancelProgress}\n size={iconButtonSize}\n >\n <CloseSmallIcon className={actionIconClassName} size={iconSize} />\n </IconButton>\n )}\n </>\n )}\n {progressPercent === 100 &&\n !error &&\n (!isSuccessButtonVisible && onDelete ? (\n <IconButton\n variant=\"contained\"\n tooltipProps={{ title: 'Delete' }}\n className={iconButtonClassName}\n onClick={onDelete}\n size={iconButtonSize}\n >\n <DeleteFourIcon className={actionIconClassName} size={iconSize} />\n </IconButton>\n ) : (\n <CheckOneIcon fill=\"#75DB29\" size={iconSize} style={{ marginLeft: 12 }} />\n ))}\n\n {onReload && error && (\n <>\n {!formatError ? (\n <IconButton\n size={iconButtonSize}\n tooltipProps={{ title: 'Reload' }}\n className={iconButtonClassName}\n onClick={onReload}\n >\n <RedoIcon size={iconSize} />\n </IconButton>\n ) : (\n <>\n {importButtonType === 'default' ? (\n <Button\n size={isLarge ? 'medium' : 'small'}\n variation=\"primary\"\n startIcon={<UploadIcon />}\n onClick={onReload}\n >\n Import\n </Button>\n ) : (\n <IconButton\n size={iconButtonSize}\n tooltipProps={{ title: 'Import File' }}\n className={iconButtonClassName}\n onClick={onReload}\n >\n <UploadIcon size={iconSize} />\n </IconButton>\n )}\n </>\n )}\n </>\n )}\n </div>\n )}\n </div>\n </div>\n );\n}\n\nconst filesLoaderPropTypes = {\n size: PropTypes.oneOf(['small', 'large']),\n unit: PropTypes.oneOf(['size', 'time', 'custom']),\n customUnitName: PropTypes.string,\n onDelete: PropTypes.func,\n onReload: PropTypes.func,\n handleCancel: PropTypes.func,\n name: PropTypes.string,\n sizeBytes: PropTypes.number,\n error: PropTypes.bool,\n errorText: PropTypes.string,\n formatError: PropTypes.bool,\n importButtonType: PropTypes.oneOf(['default', 'icon']),\n loadedBytes: PropTypes.number.isRequired,\n isLoadingAnimation: PropTypes.bool,\n showActions: PropTypes.bool,\n};\n\nFilesLoader.propTypes = filesLoaderPropTypes;\n\nexport default FilesLoader;\n"],"names":["FilesLoader","_ref","_ref$size","size","_ref$unit","unit","_ref$name","name","_ref$customUnitName","customUnitName","_ref$sizeBytes","sizeBytes","_ref$handleCancel","handleCancel","_ref$onReload","onReload","_ref$onDelete","onDelete","loadedBytes","_ref$error","error","_ref$errorText","errorText","_ref$formatError","formatError","_ref$importButtonType","importButtonType","_ref$isLoadingAnimati","isLoadingAnimation","_ref$showActions","showActions","classes","useStyles","_useState","useState","_useState2","_slicedToArray","sizeParams","setSizeParams","_useState4","_useState3","progressPercent","setProgressPercent","_useState6","_useState5","isSuccessButtonVisible","setIsSuccessButtonVisible","isLarge","iconSize","iconButtonSize","useEffect","downloaded","convertedSize","Math","pow","floor","getInitSizeParams","currentPercent","round","prev","_prev$convertedSize","_objectSpread","timerId","setTimeout","clearTimeout","useMemo","classNames","iconButton","_defineProperty","iconButtonLarge","actionIcon","actionIconLarge","_useMemo2","_useMemo","iconButtonClassName","actionIconClassName","_jsxs","className","fileStateWrapper","children","_jsx","fileIconContainer","FileIcon","style","fontSize","fileState","fileStateProgress","fileNameWrapper","Typography","fileName","fileNameLarge","length","_Fragment","firstPart","slice","LinearProgress","progressBar","variant","value","colorPrimary","progressBackground","progressBarError","barColorPrimary","progressBarColor","loaderProgressContainer","fileSize","fileSizeLarge","component","concat","progressStatus","errorContainer","IconWarning","fileActions","loadingIcon","loadingLargeIcon","backgroundImage","IconButton","tooltipProps","title","onClick","CloseSmallIcon","DeleteFourIcon","CheckOneIcon","fill","marginLeft","Button","variation","startIcon","UploadIcon","RedoIcon","filesLoaderPropTypes","PropTypes","oneOf","string","func","number","bool","isRequired","propTypes"],"mappings":"miKA8DA,SAASA,EAgByBC,GAAA,IAAAC,EAAAD,EAfhCE,KAAAA,aAAO,QAAOD,EAAAE,EAAAH,EACdI,KAAAA,aAAO,OAAMD,EAAAE,EAAAL,EACbM,KAAAA,aAAO,GAAED,EAAAE,EAAAP,EACTQ,eAAAA,aAAiB,GAAED,EAAAE,EAAAT,EACnBU,UAAAA,aAAY,EAACD,EAAAE,EAAAX,EACbY,aAAAA,aAAe,KAAID,EAAAE,EAAAb,EACnBc,SAAAA,aAAW,KAAID,EAAAE,EAAAf,EACfgB,SAAAA,aAAW,KAAID,EACfE,IAAAA,YAAWC,EAAAlB,EACXmB,MAAAA,aAAQ,KAAID,EAAAE,EAAApB,EACZqB,UAAAA,aAAY,GAAED,EAAAE,EAAAtB,EACduB,YAAAA,cAAmBD,EA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AEC,MAAO,eACvBzC,UAAWH,GACX6C,QAASxG,EAASgE,SAElBC,EAACgD,EAAU,CAAC7H,KAAM6C,SA1BxBgC,EAACoC,EAAU,CACTjH,KAAM8C,GACNoE,aAAc,CAAEC,MAAO,UACvBzC,UAAWH,GACX6C,QAASxG,EAASgE,SAElBC,EAACiD,EAAQ,CAAC9H,KAAM6C,iBAgCpC,CAEA,IAAMkF,EAAuB,CAC3B/H,KAAMgI,EAAUC,MAAM,CAAC,QAAS,UAChC/H,KAAM8H,EAAUC,MAAM,CAAC,OAAQ,OAAQ,WACvC3H,eAAgB0H,EAAUE,OAC1BpH,SAAUkH,EAAUG,KACpBvH,SAAUoH,EAAUG,KACpBzH,aAAcsH,EAAUG,KACxB/H,KAAM4H,EAAUE,OAChB1H,UAAWwH,EAAUI,OACrBnH,MAAO+G,EAAUK,KACjBlH,UAAW6G,EAAUE,OACrB7G,YAAa2G,EAAUK,KACvB9G,iBAAkByG,EAAUC,MAAM,CAAC,UAAW,SAC9ClH,YAAaiH,EAAUI,OAAOE,WAC9B7G,mBAAoBuG,EAAUK,KAC9B1G,YAAaqG,EAAUK,MAGzBxI,EAAY0I,UAAYR"}
1
+ {"version":3,"file":"FilesLoader.js","sources":["../../../src/components/FilesLoader/FilesLoader.tsx"],"sourcesContent":["import { useEffect, useMemo, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { LinearProgress, Typography } from '@material-ui/core';\nimport IconButton from '~/components/IconButton';\nimport Button from '~/components/Button';\n\nimport { CheckOneIcon, CloseSmallIcon, DeleteFourIcon, RedoIcon, UploadIcon } from '~/icons';\n\nimport IconWarning from './Icons/IconWarning';\nimport LoaderIcon from './Icons/IconLoader.svg';\nimport { FileIcon } from '~/components/FileIcon';\nimport { useStyles } from './useStyles';\n\nfunction getInitSizeParams(sizeBytes: number, unit: string, customUnitName: string) {\n if (unit === 'time') {\n return {\n downloaded: 0,\n unit: 'min',\n convertedSize: sizeBytes,\n };\n }\n\n if (unit === 'custom') {\n return {\n downloaded: 0,\n unit: customUnitName,\n convertedSize: sizeBytes,\n };\n }\n\n if (sizeBytes >= 10 ** 6) {\n return {\n downloaded: 0,\n unit: 'MB',\n convertedSize: Math.floor(sizeBytes / 10 ** 5) / 10,\n };\n }\n if (sizeBytes >= 10 ** 3) {\n return {\n downloaded: 0,\n unit: 'KB',\n convertedSize: Math.floor(sizeBytes / 10 ** 2) / 10,\n };\n }\n return {\n downloaded: 0,\n unit: 'B',\n convertedSize: Math.floor(sizeBytes * 10) / 10,\n };\n}\n\ninterface FilesLoaderProps extends PropTypes.InferProps<typeof filesLoaderPropTypes> {}\ninterface SizeParams {\n downloaded?: number;\n convertedSize?: number;\n unit?: string;\n}\n\n/**\n * @deprecated\n */\nfunction FilesLoader({\n size = 'small',\n unit = 'size',\n name = '',\n customUnitName = '',\n sizeBytes = 1,\n handleCancel = null,\n onReload = null,\n onDelete = null,\n loadedBytes,\n error = null,\n errorText = '',\n formatError = false,\n importButtonType = 'default',\n isLoadingAnimation = false,\n showActions = true,\n}: FilesLoaderProps): JSX.Element {\n const classes = useStyles();\n const [sizeParams, setSizeParams] = useState<SizeParams>({});\n const [progressPercent, setProgressPercent] = useState(0);\n const [isSuccessButtonVisible, setIsSuccessButtonVisible] = useState(true);\n const isLarge = size === 'large';\n const iconSize = isLarge ? 24 : 16;\n const iconButtonSize = isLarge ? 'medium' : 'small';\n\n const handleCancelProgress = () => {\n handleCancel?.(name);\n setProgressPercent(0);\n setSizeParams(prev => ({ ...prev, downloaded: 0 }));\n };\n\n useEffect(() => {\n setSizeParams(getInitSizeParams(sizeBytes ?? 1, unit ?? 'size', customUnitName ?? ''));\n }, [sizeBytes, unit]);\n\n useEffect(() => {\n if (loadedBytes && sizeBytes) {\n const currentPercent = Math.round((loadedBytes / sizeBytes) * 100);\n setSizeParams(prev => ({\n ...prev,\n downloaded: Math.floor(((prev.convertedSize ?? 0) * currentPercent) / 10) / 10,\n }));\n setProgressPercent(currentPercent);\n }\n }, [loadedBytes, sizeBytes]);\n\n useEffect(() => {\n let timerId: ReturnType<typeof setTimeout>;\n if (onDelete && progressPercent >= 100) {\n setIsSuccessButtonVisible(true);\n timerId = setTimeout(() => {\n setIsSuccessButtonVisible(false);\n }, 5000);\n }\n return () => timerId && clearTimeout(timerId);\n }, [progressPercent]);\n\n useEffect(() => {\n if (error) {\n setProgressPercent(0);\n setSizeParams(prev => ({ ...prev, downloaded: 0 }));\n }\n }, [error]);\n\n const [iconButtonClassName, actionIconClassName] = useMemo(() => {\n const iconButtonStyle = classNames(classes.iconButton, {\n [classes.iconButtonLarge]: isLarge,\n });\n const actionIconStyle = classNames(classes.actionIcon, {\n [classes.actionIconLarge]: isLarge,\n });\n return [iconButtonStyle, actionIconStyle];\n }, [isLarge]);\n\n return (\n <div className={classes.fileStateWrapper}>\n <div className={classes.fileIconContainer}>\n <FileIcon name={name ?? ''} style={{ fontSize: isLarge ? 48 : 32 }} />\n </div>\n <div className={classes.fileState}>\n <div className={classes.fileStateProgress}>\n <div className={classes.fileNameWrapper}>\n <Typography\n className={classNames(classes.fileName, { [classes.fileNameLarge]: isLarge })}\n >\n {name && name.length > 7 ? (\n <>\n <span className={classes.firstPart}>{name.slice(0, name.length - 7)}</span>\n <span>{name.slice(-7)}</span>\n </>\n ) : (\n name\n )}\n </Typography>\n </div>\n {!isLoadingAnimation && (\n <LinearProgress\n className={classes.progressBar}\n variant=\"determinate\"\n value={progressPercent}\n classes={{\n colorPrimary: classNames(classes.progressBackground, {\n [classes.progressBarError]: error,\n }),\n barColorPrimary: classNames(classes.progressBarColor, {\n [classes.progressBarError]: error,\n }),\n }}\n />\n )}\n <div className={classes.loaderProgressContainer}>\n {!isLoadingAnimation && (\n <Typography\n className={classNames(classes.fileSize, { [classes.fileSizeLarge]: isLarge })}\n component=\"span\"\n >\n {`${sizeParams.downloaded} of ${sizeParams.convertedSize} ${sizeParams.unit}`}\n </Typography>\n )}\n <div\n className={classNames(classes.progressStatus, { [classes.fileSizeLarge]: isLarge })}\n >\n {error && (\n <Typography component=\"div\" className={classes.errorContainer}>\n <IconWarning size={size} />\n <Typography\n component=\"span\"\n className={classNames(classes.errorText, { [classes.fileSizeLarge]: isLarge })}\n >\n {formatError\n ? 'Upload Error. Unacceptable file format.'\n : `Upload Error${errorText && `. ${errorText}`}`}\n </Typography>\n </Typography>\n )}\n {!error && !isLoadingAnimation && `${progressPercent} %`}\n </div>\n </div>\n </div>\n\n {showActions && (\n <div className={classes.fileActions}>\n {progressPercent < 100 && !error && (\n <>\n {isLoadingAnimation ? (\n <div\n className={classNames(classes.loadingIcon, {\n [classes.loadingLargeIcon]: isLarge,\n })}\n style={{ backgroundImage: `url(${LoaderIcon})` }}\n />\n ) : (\n <IconButton\n tooltipProps={{ title: 'Cancel' }}\n className={iconButtonClassName}\n onClick={handleCancelProgress}\n size={iconButtonSize}\n >\n <CloseSmallIcon className={actionIconClassName} size={iconSize} />\n </IconButton>\n )}\n </>\n )}\n {progressPercent === 100 &&\n !error &&\n (!isSuccessButtonVisible && onDelete ? (\n <IconButton\n variant=\"contained\"\n tooltipProps={{ title: 'Delete' }}\n className={iconButtonClassName}\n onClick={onDelete}\n size={iconButtonSize}\n >\n <DeleteFourIcon className={actionIconClassName} size={iconSize} />\n </IconButton>\n ) : (\n <CheckOneIcon fill=\"#75DB29\" size={iconSize} style={{ marginLeft: 12 }} />\n ))}\n\n {onReload && error && (\n <>\n {!formatError ? (\n <IconButton\n size={iconButtonSize}\n tooltipProps={{ title: 'Reload' }}\n className={iconButtonClassName}\n onClick={onReload}\n >\n <RedoIcon size={iconSize} />\n </IconButton>\n ) : (\n <>\n {importButtonType === 'default' ? (\n <Button\n size={isLarge ? 'medium' : 'small'}\n variation=\"primary\"\n startIcon={<UploadIcon />}\n onClick={onReload}\n >\n Import\n </Button>\n ) : (\n <IconButton\n size={iconButtonSize}\n tooltipProps={{ title: 'Import File' }}\n className={iconButtonClassName}\n onClick={onReload}\n >\n <UploadIcon size={iconSize} />\n </IconButton>\n )}\n </>\n )}\n </>\n )}\n </div>\n )}\n </div>\n </div>\n );\n}\n\nconst filesLoaderPropTypes = {\n size: PropTypes.oneOf(['small', 'large']),\n unit: PropTypes.oneOf(['size', 'time', 'custom']),\n customUnitName: PropTypes.string,\n onDelete: PropTypes.func,\n onReload: PropTypes.func,\n handleCancel: PropTypes.func,\n name: PropTypes.string,\n sizeBytes: PropTypes.number,\n error: PropTypes.bool,\n errorText: PropTypes.string,\n formatError: PropTypes.bool,\n importButtonType: PropTypes.oneOf(['default', 'icon']),\n loadedBytes: PropTypes.number.isRequired,\n isLoadingAnimation: PropTypes.bool,\n showActions: PropTypes.bool,\n};\n\nFilesLoader.propTypes = filesLoaderPropTypes;\n\nexport default FilesLoader;\n"],"names":["FilesLoader","_ref","_ref$size","size","_ref$unit","unit","_ref$name","name","_ref$customUnitName","customUnitName","_ref$sizeBytes","sizeBytes","_ref$handleCancel","handleCancel","_ref$onReload","onReload","_ref$onDelete","onDelete","loadedBytes","_ref$error","error","_ref$errorText","errorText","_ref$formatError","formatError","_ref$importButtonType","importButtonType","_ref$isLoadingAnimati","isLoadingAnimation","_ref$showActions","showActions","classes","useStyles","_useState","useState","_useState2","_slicedToArray","sizeParams","setSizeParams","_useState4","_useState3","progressPercent","setProgressPercent","_useState6","_useState5","isSuccessButtonVisible","setIsSuccessButtonVisible","isLarge","iconSize","iconButtonSize","useEffect","downloaded","convertedSize","Math","pow","floor","getInitSizeParams","currentPercent","round","prev","_prev$convertedSize","_objectSpread","timerId","setTimeout","clearTimeout","useMemo","classNames","iconButton","_defineProperty","iconButtonLarge","actionIcon","actionIconLarge","_useMemo2","_useMemo","iconButtonClassName","actionIconClassName","_jsxs","className","fileStateWrapper","children","_jsx","fileIconContainer","FileIcon","style","fontSize","fileState","fileStateProgress","fileNameWrapper","Typography","fileName","fileNameLarge","length","_Fragment","firstPart","slice","LinearProgress","progressBar","variant","value","colorPrimary","progressBackground","progressBarError","barColorPrimary","progressBarColor","loaderProgressContainer","fileSize","fileSizeLarge","component","concat","progressStatus","errorContainer","IconWarning","fileActions","loadingIcon","loadingLargeIcon","backgroundImage","IconButton","tooltipProps","title","onClick","CloseSmallIcon","DeleteFourIcon","CheckOneIcon","fill","marginLeft","Button","variation","startIcon","UploadIcon","RedoIcon","filesLoaderPropTypes","PropTypes","oneOf","string","func","number","bool","isRequired","propTypes"],"mappings":"6oKA8DA,SAASA,EAgByBC,GAAA,IAAAC,EAAAD,EAfhCE,KAAAA,aAAO,QAAOD,EAAAE,EAAAH,EACdI,KAAAA,aAAO,OAAMD,EAAAE,EAAAL,EACbM,KAAAA,aAAO,GAAED,EAAAE,EAAAP,EACTQ,eAAAA,aAAiB,GAAED,EAAAE,EAAAT,EACnBU,UAAAA,aAAY,EAACD,EAAAE,EAAAX,EACbY,aAAAA,aAAe,KAAID,EAAAE,EAAAb,EACnBc,SAAAA,aAAW,KAAID,EAAAE,EAAAf,EACfgB,SAAAA,aAAW,KAAID,EACfE,IAAAA,YAAWC,EAAAlB,EACXmB,MAAAA,aAAQ,KAAID,EAAAE,EAAApB,EACZqB,UAAAA,aAAY,GAAED,EAAAE,EAAAtB,EACduB,YAAAA,cAAmBD,EAAAE,EAAAxB,EACnByB,iBAAAA,aAAmB,UAASD,EAAAE,EAAA1B,EAC5B2B,mBAAAA,cAA0BD,EAAAE,EAAA5B,EAC1B6B,YAAAA,cAAkBD,EAEZE,EAAUC,IAChBC,EAAoCC,EAAqB,IAAGC,GAAAC,EAAAH,EAAA,GAArDI,GAAUF,GAAA,GAAEG,GAAaH,GAAA,GACcD,GAAAA,EAAS,GAAEK,GAAAH,EAAAI,GAAA,GAAlDC,GAAeF,GAAA,GAAEG,GAAkBH,GAAA,GACkBL,GAAAA,GAAS,GAAKS,GAAAP,EAAAQ,GAAA,GAAnEC,GAAsBF,GAAA,GAAEG,GAAyBH,GAAA,GAClDI,GAAmB,UAAT5C,EACV6C,GAAWD,GAAU,GAAK,GAC1BE,GAAiBF,GAAU,SAAW,QAQ5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OACrBnH,MAAO+G,EAAUK,KACjBlH,UAAW6G,EAAUE,OACrB7G,YAAa2G,EAAUK,KACvB9G,iBAAkByG,EAAUC,MAAM,CAAC,UAAW,SAC9ClH,YAAaiH,EAAUI,OAAOE,WAC9B7G,mBAAoBuG,EAAUK,KAC9B1G,YAAaqG,EAAUK,MAGzBxI,EAAY0I,UAAYR"}
@@ -1,2 +1,2 @@
1
- import o from"classnames";import{LinearProgress as s}from"@material-ui/core";import{FileIcon as c}from"../FileIcon/FileIcon.js";import i from"../IconButton/index.js";import{CloseIcon as n,DeleteFourIcon as t,RedoIcon as m}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{CautionFilledCustomIcon as r}from"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../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{MiddleTruncatedText as e}from"../MiddleTruncatedText/MiddleTruncatedText.js";import{Regular14 as p,Regular12 as l}from"../Typography.js";import{formatSizeProgress as u}from"./utils.js";import{useStyles as a}from"./styles.js";import{jsxs as j,jsx as I,Fragment as d}from"react/jsx-runtime";var h=function(h){var C=h.formatProgress,v=void 0===C?u:C,F=h.className,O=h.name,f=h.current,g=h.total,x=h.errorText,P=h.onCancel,M=h.onReload,T=h.onDelete,b=a(),k=void 0!==g&&g>=0&&void 0!==f&&f>=0,N=Math.min(100,Math.ceil((null!=f?f:0)/(null!=g?g:1)*100)),A=void 0!==f&&void 0!==g&&f>=g;return j("div",{className:o(b.root,F),children:[I(c,{name:O,className:b.icon,strokeWidth:2}),j("div",{className:b.content,children:[I(p,{className:b.name,children:I(e,{children:O},O)}),!x&&!A&&j(d,{children:[I(s,{className:b.progressBar,variant:k?"determinate":void 0,value:N}),j("div",{className:b.progressTextContainer,children:[I(l,{className:b.progressText,children:v(g,f)}),k&&j(l,{className:b.progressText,children:[N,"%"]})]})]}),x&&j(p,{className:b.error,children:[I(r,{size:16}),x]})]}),P&&!x&&!A&&I(i,{onClick:P,size:"small",tooltipProps:{title:"Cancel"},children:I(n,{})}),T&&(x||A)&&I(i,{onClick:T,size:"small",tooltipProps:{title:"Remove File"},children:I(t,{})}),M&&x&&I(i,{onClick:M,size:"small",tooltipProps:{title:"Reload"},children:I(m,{})})]})};export{h as FilesLoaderV2};
1
+ import o from"classnames";import{LinearProgress as s}from"@material-ui/core";import{FileIcon as c}from"../FileIcon/FileIcon.js";import i from"../IconButton/index.js";import{CloseIcon as n,DeleteFourIcon as t,RedoIcon as m}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{CautionFilledCustomIcon as r}from"../../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{MiddleTruncatedText as e}from"../MiddleTruncatedText/MiddleTruncatedText.js";import{Regular14 as p,Regular12 as l}from"../Typography.js";import{formatSizeProgress as u}from"./utils.js";import{useStyles as a}from"./styles.js";import{jsxs as j,jsx as I,Fragment as d}from"react/jsx-runtime";var h=function(h){var C=h.formatProgress,v=void 0===C?u:C,F=h.className,f=h.name,O=h.current,g=h.total,x=h.errorText,P=h.onCancel,M=h.onReload,T=h.onDelete,b=a(),k=void 0!==g&&g>=0&&void 0!==O&&O>=0,N=Math.min(100,Math.ceil((null!=O?O:0)/(null!=g?g:1)*100)),A=void 0!==O&&void 0!==g&&O>=g;return j("div",{className:o(b.root,F),children:[I(c,{name:f,className:b.icon,strokeWidth:2}),j("div",{className:b.content,children:[I(p,{className:b.name,children:I(e,{children:f},f)}),!x&&!A&&j(d,{children:[I(s,{className:b.progressBar,variant:k?"determinate":void 0,value:N}),j("div",{className:b.progressTextContainer,children:[I(l,{className:b.progressText,children:v(g,O)}),k&&j(l,{className:b.progressText,children:[N,"%"]})]})]}),x&&j(p,{className:b.error,children:[I(r,{size:16}),x]})]}),P&&!x&&!A&&I(i,{onClick:P,size:"small",tooltipProps:{title:"Cancel"},children:I(n,{})}),T&&(x||A)&&I(i,{onClick:T,size:"small",tooltipProps:{title:"Remove File"},children:I(t,{})}),M&&x&&I(i,{onClick:M,size:"small",tooltipProps:{title:"Reload"},children:I(m,{})})]})};export{h as FilesLoaderV2};
2
2
  //# sourceMappingURL=FilesLoaderV2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilesLoaderV2.js","sources":["../../../src/components/FilesLoaderV2/FilesLoaderV2.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport classNames from 'classnames';\nimport { LinearProgress } from '@material-ui/core';\nimport { FileIcon } from '~/components/FileIcon';\nimport IconButton from '~/components/IconButton';\nimport { CautionFilledCustomIcon, CloseIcon, DeleteFourIcon, RedoIcon } from '~/icons';\nimport { MiddleTruncatedText } from '~/components/MiddleTruncatedText';\nimport { Regular12, Regular14 } from '~/components/Typography';\nimport { formatSizeProgress } from './utils';\nimport { useStyles } from './styles';\n\nexport type FilesLoaderV2Props = {\n name: string;\n /**\n * Total progress value (bytes by default)\n *\n * If undefined or < 0 - makes progress bar indeterminate\n */\n total?: number;\n /**\n * Current progress value (bytes by default)\n *\n * If undefined or < 0 - makes progress bar indeterminate\n */\n current?: number;\n /**\n * Error to show\n */\n errorText?: string;\n /**\n * If exists - displays the \"Delete\" button\n */\n onDelete?: () => void;\n /**\n * If exists - displays the \"Reload\" button on error state\n */\n onReload?: () => void;\n /**\n * If exists - displays the \"Cancel\" button when loading\n */\n onCancel?: () => void;\n /**\n * Allows custom progress units\n * @param total total progress value\n * @param current current progress value\n */\n formatProgress?: (total?: number, current?: number) => ReactNode;\n className?: string;\n};\n\nexport const FilesLoaderV2 = (props: FilesLoaderV2Props) => {\n const {\n formatProgress = formatSizeProgress,\n className,\n name,\n current,\n total,\n errorText,\n onCancel,\n onReload,\n onDelete,\n } = props;\n const styles = useStyles();\n const isDeterminate = total !== undefined && total >= 0 && current !== undefined && current >= 0;\n const progressPercent = Math.min(100, Math.ceil(((current ?? 0) / (total ?? 1)) * 100));\n const isComplete = current !== undefined && total !== undefined && current >= total;\n\n return (\n <div className={classNames(styles.root, className)}>\n <FileIcon name={name} className={styles.icon} strokeWidth={2} />\n\n <div className={styles.content}>\n <Regular14 className={styles.name}>\n <MiddleTruncatedText key={name}>{name}</MiddleTruncatedText>\n </Regular14>\n\n {!errorText && !isComplete && (\n <>\n <LinearProgress\n className={styles.progressBar}\n variant={isDeterminate ? 'determinate' : undefined}\n value={progressPercent}\n />\n\n <div className={styles.progressTextContainer}>\n <Regular12 className={styles.progressText}>\n {formatProgress(total, current)}\n </Regular12>\n\n {isDeterminate && (\n <Regular12 className={styles.progressText}>{progressPercent}%</Regular12>\n )}\n </div>\n </>\n )}\n\n {errorText && (\n <Regular14 className={styles.error}>\n <CautionFilledCustomIcon size={16} />\n {errorText}\n </Regular14>\n )}\n </div>\n\n {onCancel && !errorText && !isComplete && (\n <IconButton onClick={onCancel} size={'small'} tooltipProps={{ title: 'Cancel' }}>\n <CloseIcon />\n </IconButton>\n )}\n\n {onDelete && (errorText || isComplete) && (\n <IconButton onClick={onDelete} size={'small'} tooltipProps={{ title: 'Remove File' }}>\n <DeleteFourIcon />\n </IconButton>\n )}\n\n {onReload && errorText && (\n <IconButton onClick={onReload} size={'small'} tooltipProps={{ title: 'Reload' }}>\n <RedoIcon />\n </IconButton>\n )}\n </div>\n );\n};\n"],"names":["FilesLoaderV2","props","formatProgress","formatSizeProgress","_props$formatProgress","className","name","current","total","errorText","onCancel","onReload","onDelete","styles","useStyles","isDeterminate","undefined","progressPercent","Math","min","ceil","isComplete","_jsxs","classNames","root","children","_jsx","FileIcon","icon","strokeWidth","content","Regular14","MiddleTruncatedText","_Fragment","LinearProgress","progressBar","variant","value","progressTextContainer","Regular12","progressText","error","CautionFilledCustomIcon","size","IconButton","onClick","tooltipProps","title","CloseIcon","DeleteFourIcon","RedoIcon"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lC,QAKNC,IAAaD,IAAcY,GAC1BK,EAACkB,EAAU,CAACC,QAASnC,EAAUiC,KAAM,QAASG,aAAc,CAAEC,MAAO,UAAWtB,SAC9EC,EAACsB,EAAS,MAIbpC,IAAaH,GAAaY,IACzBK,EAACkB,EAAU,CAACC,QAASjC,EAAU+B,KAAM,QAASG,aAAc,CAAEC,MAAO,eAAgBtB,SACnFC,EAACuB,EAAc,MAIlBtC,GAAYF,GACXiB,EAACkB,EAAU,CAACC,QAASlC,EAAUgC,KAAM,QAASG,aAAc,CAAEC,MAAO,UAAWtB,SAC9EC,EAACwB,EAAQ,QAKnB"}
1
+ {"version":3,"file":"FilesLoaderV2.js","sources":["../../../src/components/FilesLoaderV2/FilesLoaderV2.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport classNames from 'classnames';\nimport { LinearProgress } from '@material-ui/core';\nimport { FileIcon } from '~/components/FileIcon';\nimport IconButton from '~/components/IconButton';\nimport { CautionFilledCustomIcon, CloseIcon, DeleteFourIcon, RedoIcon } from '~/icons';\nimport { MiddleTruncatedText } from '~/components/MiddleTruncatedText';\nimport { Regular12, Regular14 } from '~/components/Typography';\nimport { formatSizeProgress } from './utils';\nimport { useStyles } from './styles';\n\nexport type FilesLoaderV2Props = {\n name: string;\n /**\n * Total progress value (bytes by default)\n *\n * If undefined or < 0 - makes progress bar indeterminate\n */\n total?: number;\n /**\n * Current progress value (bytes by default)\n *\n * If undefined or < 0 - makes progress bar indeterminate\n */\n current?: number;\n /**\n * Error to show\n */\n errorText?: string;\n /**\n * If exists - displays the \"Delete\" button\n */\n onDelete?: () => void;\n /**\n * If exists - displays the \"Reload\" button on error state\n */\n onReload?: () => void;\n /**\n * If exists - displays the \"Cancel\" button when loading\n */\n onCancel?: () => void;\n /**\n * Allows custom progress units\n * @param total total progress value\n * @param current current progress value\n */\n formatProgress?: (total?: number, current?: number) => ReactNode;\n className?: string;\n};\n\nexport const FilesLoaderV2 = (props: FilesLoaderV2Props) => {\n const {\n formatProgress = formatSizeProgress,\n className,\n name,\n current,\n total,\n errorText,\n onCancel,\n onReload,\n onDelete,\n } = props;\n const styles = useStyles();\n const isDeterminate = total !== undefined && total >= 0 && current !== undefined && current >= 0;\n const progressPercent = Math.min(100, Math.ceil(((current ?? 0) / (total ?? 1)) * 100));\n const isComplete = current !== undefined && total !== undefined && current >= total;\n\n return (\n <div className={classNames(styles.root, className)}>\n <FileIcon name={name} className={styles.icon} strokeWidth={2} />\n\n <div className={styles.content}>\n <Regular14 className={styles.name}>\n <MiddleTruncatedText key={name}>{name}</MiddleTruncatedText>\n </Regular14>\n\n {!errorText && !isComplete && (\n <>\n <LinearProgress\n className={styles.progressBar}\n variant={isDeterminate ? 'determinate' : undefined}\n value={progressPercent}\n />\n\n <div className={styles.progressTextContainer}>\n <Regular12 className={styles.progressText}>\n {formatProgress(total, current)}\n </Regular12>\n\n {isDeterminate && (\n <Regular12 className={styles.progressText}>{progressPercent}%</Regular12>\n )}\n </div>\n </>\n )}\n\n {errorText && (\n <Regular14 className={styles.error}>\n <CautionFilledCustomIcon size={16} />\n {errorText}\n </Regular14>\n )}\n </div>\n\n {onCancel && !errorText && !isComplete && (\n <IconButton onClick={onCancel} size={'small'} tooltipProps={{ title: 'Cancel' }}>\n <CloseIcon />\n </IconButton>\n )}\n\n {onDelete && (errorText || isComplete) && (\n <IconButton onClick={onDelete} size={'small'} tooltipProps={{ title: 'Remove File' }}>\n <DeleteFourIcon />\n </IconButton>\n )}\n\n {onReload && errorText && (\n <IconButton onClick={onReload} size={'small'} tooltipProps={{ title: 'Reload' }}>\n <RedoIcon />\n </IconButton>\n )}\n </div>\n );\n};\n"],"names":["FilesLoaderV2","props","formatProgress","formatSizeProgress","_props$formatProgress","className","name","current","total","errorText","onCancel","onReload","onDelete","styles","useStyles","isDeterminate","undefined","progressPercent","Math","min","ceil","isComplete","_jsxs","classNames","root","children","_jsx","FileIcon","icon","strokeWidth","content","Regular14","MiddleTruncatedText","_Fragment","LinearProgress","progressBar","variant","value","progressTextContainer","Regular12","progressText","error","CautionFilledCustomIcon","size","IconButton","onClick","tooltipProps","title","CloseIcon","DeleteFourIcon","RedoIcon"],"mappings":"0wIAkDaA,EAAgB,SAACC,GAC5B,IAUIA,EAAAA,EATFC,eAAAA,aAAiBC,EAAkBC,EACnCC,EAQEJ,EARFI,UACAC,EAOEL,EAPFK,KACAC,EAMEN,EANFM,QACAC,EAKEP,EALFO,MACAC,EAIER,EAJFQ,UACAC,EAGET,EAHFS,SACAC,EAEEV,EAFFU,SACAC,EACEX,EADFW,SAEIC,EAASC,IACTC,OAA0BC,IAAVR,GAAuBA,GAAS,QAAiBQ,IAAZT,GAAyBA,GAAW,EACzFU,EAAkBC,KAAKC,IAAI,IAAKD,KAAKE,MAAOb,QAAAA,EAAW,IAAMC,QAAAA,EAAS,GAAM,MAC5Ea,OAAyBL,IAAZT,QAAmCS,IAAVR,GAAuBD,GAAWC,EAE9E,OACEc,EAAA,MAAA,CAAKjB,UAAWkB,EAAWV,EAAOW,KAAMnB,GAAWoB,SAAA,CACjDC,EAACC,EAAQ,CAACrB,KAAMA,EAAMD,UAAWQ,EAAOe,KAAMC,YAAa,IAE3DP,EAAA,MAAA,CAAKjB,UAAWQ,EAAOiB,QAAQL,SAAA,CAC7BC,EAACK,EAAS,CAAC1B,UAAWQ,EAAOP,KAAKmB,SAChCC,EAACM,EAAmB,CAAAP,SAAanB,GAAPA,MAG1BG,IAAcY,GACdC,EAAAW,EAAA,CAAAR,SAAA,CACEC,EAACQ,EAAc,CACb7B,UAAWQ,EAAOsB,YAClBC,QAASrB,EAAgB,mBAAgBC,EACzCqB,MAAOpB,IAGTK,EAAA,MAAA,CAAKjB,UAAWQ,EAAOyB,sBAAsBb,SAAA,CAC3CC,EAACa,EAAS,CAAClC,UAAWQ,EAAO2B,aAAaf,SACvCvB,EAAeM,EAAOD,KAGxBQ,GACCO,EAACiB,EAAS,CAAClC,UAAWQ,EAAO2B,aAAaf,SAAA,CAAER,EAAe,aAMlER,GACCa,EAACS,EAAS,CAAC1B,UAAWQ,EAAO4B,MAAMhB,SAAA,CACjCC,EAACgB,EAAuB,CAACC,KAAM,KAC9BlC,QAKNC,IAAaD,IAAcY,GAC1BK,EAACkB,EAAU,CAACC,QAASnC,EAAUiC,KAAM,QAASG,aAAc,CAAEC,MAAO,UAAWtB,SAC9EC,EAACsB,EAAS,MAIbpC,IAAaH,GAAaY,IACzBK,EAACkB,EAAU,CAACC,QAASjC,EAAU+B,KAAM,QAASG,aAAc,CAAEC,MAAO,eAAgBtB,SACnFC,EAACuB,EAAc,MAIlBtC,GAAYF,GACXiB,EAACkB,EAAU,CAACC,QAASlC,EAAUgC,KAAM,QAASG,aAAc,CAAEC,MAAO,UAAWtB,SAC9EC,EAACwB,EAAQ,QAKnB"}
@@ -1,2 +1,2 @@
1
- import{makeStyles as o}from"@material-ui/core";import{Tooltip as s}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import{CloseSmallIcon 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/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 i}from"react/jsx-runtime";var n=o((function(o){return{buttonWrapper:{display:"flex",alignItems:"center",color:o.palette.primary.text7,"&:hover":{color:o.palette.primary.text1,cursor:"pointer"},marginLeft:"-24px",zIndex:999}}}));function t(o){var t=o.onClose,m=n();return i("div",{className:m.buttonWrapper,onClick:t,children:i(s,{title:"Clear",placement:"bottom",children:i(c,{size:16,strokeWidth:3})})})}export{t as default};
1
+ import{makeStyles as o}from"@material-ui/core";import{Tooltip as s}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import{CloseSmallIcon 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{jsx as i}from"react/jsx-runtime";var n=o((function(o){return{buttonWrapper:{display:"flex",alignItems:"center",color:o.palette.primary.text7,"&:hover":{color:o.palette.primary.text1,cursor:"pointer"},marginLeft:"-24px",zIndex:999}}}));function t(o){var t=o.onClose,m=n();return i("div",{className:m.buttonWrapper,onClick:t,children:i(s,{title:"Clear",placement:"bottom",children:i(c,{size:16,strokeWidth:3})})})}export{t as default};
2
2
  //# sourceMappingURL=CloseSuggestion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CloseSuggestion.js","sources":["../../../src/components/Formula/CloseSuggestion.js"],"sourcesContent":["import { makeStyles } from '@material-ui/core';\n\nimport Tooltip from '~/components/Tooltip';\nimport { CloseSmallIcon } from '~/icons';\n\nconst useStyles = makeStyles(theme => ({\n buttonWrapper: {\n display: 'flex',\n alignItems: 'center',\n color: theme.palette.primary.text7,\n '&:hover': {\n color: theme.palette.primary.text1,\n cursor: 'pointer',\n },\n marginLeft: '-24px',\n zIndex: 999,\n },\n}));\n\nexport default function CloseSuggestion({ onClose }) {\n const classes = useStyles();\n return (\n <div className={classes.buttonWrapper} onClick={onClose}>\n <Tooltip title=\"Clear\" placement=\"bottom\">\n <CloseSmallIcon size={16} strokeWidth={3} />\n </Tooltip>\n </div>\n );\n}\n"],"names":["useStyles","makeStyles","theme","buttonWrapper","display","alignItems","color","palette","primary","text7","text1","cursor","marginLeft","zIndex","CloseSuggestion","_ref","onClose","classes","_jsx","className","onClick","children","Tooltip","title","placement","CloseSmallIcon","size","strokeWidth"],"mappings":"8zHAKA,IAAMA,EAAYC,GAAW,SAAAC,GAAK,MAAK,CACrCC,cAAe,CACbC,QAAS,OACTC,WAAY,SACZC,MAAOJ,EAAMK,QAAQC,QAAQC,MAC7B,UAAW,CACTH,MAAOJ,EAAMK,QAAQC,QAAQE,MAC7BC,OAAQ,WAEVC,WAAY,QACZC,OAAQ,KAEX,IAEc,SAASC,EAA6BC,GAAA,IAAXC,IAAAA,QAClCC,EAAUjB,IAChB,OACEkB,EAAA,MAAA,CAAKC,UAAWF,EAAQd,cAAeiB,QAASJ,EAAQK,SACtDH,EAACI,EAAO,CAACC,MAAM,QAAQC,UAAU,SAAQH,SACvCH,EAACO,EAAc,CAACC,KAAM,GAAIC,YAAa,OAI/C"}
1
+ {"version":3,"file":"CloseSuggestion.js","sources":["../../../src/components/Formula/CloseSuggestion.js"],"sourcesContent":["import { makeStyles } from '@material-ui/core';\n\nimport Tooltip from '~/components/Tooltip';\nimport { CloseSmallIcon } from '~/icons';\n\nconst useStyles = makeStyles(theme => ({\n buttonWrapper: {\n display: 'flex',\n alignItems: 'center',\n color: theme.palette.primary.text7,\n '&:hover': {\n color: theme.palette.primary.text1,\n cursor: 'pointer',\n },\n marginLeft: '-24px',\n zIndex: 999,\n },\n}));\n\nexport default function CloseSuggestion({ onClose }) {\n const classes = useStyles();\n return (\n <div className={classes.buttonWrapper} onClick={onClose}>\n <Tooltip title=\"Clear\" placement=\"bottom\">\n <CloseSmallIcon size={16} strokeWidth={3} />\n </Tooltip>\n </div>\n );\n}\n"],"names":["useStyles","makeStyles","theme","buttonWrapper","display","alignItems","color","palette","primary","text7","text1","cursor","marginLeft","zIndex","CloseSuggestion","_ref","onClose","classes","_jsx","className","onClick","children","Tooltip","title","placement","CloseSmallIcon","size","strokeWidth"],"mappings":"w6HAKA,IAAMA,EAAYC,GAAW,SAAAC,GAAK,MAAK,CACrCC,cAAe,CACbC,QAAS,OACTC,WAAY,SACZC,MAAOJ,EAAMK,QAAQC,QAAQC,MAC7B,UAAW,CACTH,MAAOJ,EAAMK,QAAQC,QAAQE,MAC7BC,OAAQ,WAEVC,WAAY,QACZC,OAAQ,KAEX,IAEc,SAASC,EAA6BC,GAAA,IAAXC,IAAAA,QAClCC,EAAUjB,IAChB,OACEkB,EAAA,MAAA,CAAKC,UAAWF,EAAQd,cAAeiB,QAASJ,EAAQK,SACtDH,EAACI,EAAO,CAACC,MAAM,QAAQC,UAAU,SAAQH,SACvCH,EAACO,EAAc,CAACC,KAAM,GAAIC,YAAa,OAI/C"}
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{useState as i,useMemo as c,useRef as n,useCallback as t,useEffect as r}from"react";import e from"classnames";import{useTheme as m,Button as a}from"@material-ui/core";import{replaceStringToLabel as l}from"./utils.js";import{useFormulaFunction as u}from"./useFormulaFunction.js";import{useFormulaStyles as p}from"./useFormulaStyles.js";import d from"./RootXIcon.js";import j from"./FormulaTextEditor.js";import I from"./CloseSuggestion.js";import f from"./SuggestionsMenu.js";import{CloseSmallIcon as h,InfoIcon as v}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/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 C from"../../effects/useOutsideClick.js";import{Tooltip as b}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import{jsxs as F,jsx as g}from"react/jsx-runtime";var y=[{value:"*",isShift:!0,label:"8"},{value:"/",label:"/"},{value:"(",isShift:!0,label:"9"},{value:")",isShift:!0,label:"0"},{value:"+",isShift:!0,label:"+"},{value:"-",label:"-"},{value:"^",isShift:!0,label:"6"}],N=function(o,s,i){return s?i?o.palette.error.main:o.palette.primary.main:o.palette.primary.text7},S=function(S){var T,k=S.suggestions,x=void 0===k?[]:k,O=S.initFormula,A=void 0===O?"":O,P=S.onSave,W=void 0===P?function(){}:P,M=i(!0),E=s(M,2),U=E[0],D=E[1],H=i(!1),R=s(H,2),V=R[0],z=R[1],B=i(!1),G=s(B,2),L=G[0],q=G[1],K=i(A),X=s(K,2),Z=X[0],w=X[1],J=i(0),Q=s(J,2),Y=Q[0],$=Q[1],_=i(0),oo=s(_,2),so=oo[0],io=oo[1],co=l(Z,x),no=co.search("/f"),to=-1!==no,ro=c((function(){return x.map((function(o){return o.key}))}),[x]),eo=co.substring(no+"/f".length,Y),mo=n(null),ao=p({isValue:!to&&!!Z}),lo=m(),uo=u(Z,ro),po=uo.formulaFunction,jo=uo.error;C(mo,(function(){q(!1)}));var Io=function(o){var s,i=x.find((function(s){return s.key===o}));z(!0),q(!0),w((function(s){return s.replace("".concat("/f").concat(eo),o?"[".concat(o,"]"):"")})),$(no+((null==i||null===(s=i.label)||void 0===s?void 0:s.length)||0))},fo=t((function(o,s){Y!==s&&$(s),o!==Z&&(w(o),D(!1))}),[Z,Y]);return r((function(){w(A)}),[A]),F("div",{className:ao.formulaContainer,children:[F("div",{className:ao.formulaHeaderWrapper,children:[F("div",{className:ao.formulaHeaderTextWrapper,children:[g(d,{color:N(lo,L,jo)}),g("div",{className:ao.formulaHeaderText,style:{color:N(lo,L,jo)},children:"Formula Expression"})]}),F("div",{className:ao.formulaHeaderButtonWrapper,onClick:function(){to||(D(!1),w(""),$(0),z(!0))},children:[g(h,{strokeWidth:3,size:16}),g("div",{className:ao.formulaHeaderText,children:"Clear"})]})]}),F("div",{className:ao.formulaEditorWrapper,children:[g("div",{ref:mo,onClick:function(){q(!0)},children:g(j,{initFormula:Z,cursorPos:Y,color:N(lo,L,jo),suggestions:x,isValueUpdated:V,setIsValueUpdated:z,onChange:fo})}),to&&g(I,{onClose:function(){return Io("")}})]}),to&&g(f,{suggestions:x,keyStr:eo,onAddSuggestion:Io,onChangeHeight:io}),F("div",{className:ao.formulaFooterWrapper,style:{marginTop:to?-so:0},children:[g(v,{className:ao.formulaFooterIcon,strokeWidth:3,size:16}),g("div",{className:ao.formulaFooterTextWrapper,children:F("div",{className:ao.formulaFooterText,children:["Type ",g("span",{className:ao.funcText,children:"/f"})," to do add live channels to your equation. Use your keybord for numbers and"," ",g(b,{title:g("div",{className:ao.tooltipWrapper,children:y.map((function(o){return F("div",{className:ao.tooltipLine,children:[g("span",{className:ao.tooltipValue,children:o.value}),F("div",{className:ao.tooltipLabelContainer,children:[!!o.isShift&&g("span",{className:ao.tooltipSymbol,children:"⇧"}),g("span",{children:o.label})]},o.value)]},o.value)}))}),placement:"bottom",children:g("span",{className:ao.successColor,children:"math symbols"})})]})})]}),g(a,{className:ao.verifyButton,variant:"contained",color:"primary",onClick:function(){D(!0);var o=x.map((function(o){return o.key})).filter((function(o){return Z&&Z.includes(o)}));W({formula:Z,variables:o,formulaFunc:po})},disabled:U||!po,children:"Verify"}),!!Z&&g("span",{className:e(ao.resultText,(T={},o(T,ao.errorColor,!!jo),o(T,ao.resultSuccessColor,!jo),T)),children:jo?"The formula is not valid":"The formula is valid"})]})};export{S as default};
1
+ import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{useState as i,useMemo as c,useRef as n,useCallback as t,useEffect as r}from"react";import e from"classnames";import{useTheme as m,Button as l}from"@material-ui/core";import{replaceStringToLabel as a}from"./utils.js";import{useFormulaFunction as u}from"./useFormulaFunction.js";import{useFormulaStyles as p}from"./useFormulaStyles.js";import d from"./RootXIcon.js";import j from"./FormulaTextEditor.js";import I from"./CloseSuggestion.js";import f from"./SuggestionsMenu.js";import{CloseSmallIcon as h,InfoIcon as v}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 C from"../../effects/useOutsideClick.js";import{Tooltip as b}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import{jsxs as F,jsx as g}from"react/jsx-runtime";var y=[{value:"*",isShift:!0,label:"8"},{value:"/",label:"/"},{value:"(",isShift:!0,label:"9"},{value:")",isShift:!0,label:"0"},{value:"+",isShift:!0,label:"+"},{value:"-",label:"-"},{value:"^",isShift:!0,label:"6"}],N=function(o,s,i){return s?i?o.palette.error.main:o.palette.primary.main:o.palette.primary.text7},S=function(S){var T,k=S.suggestions,x=void 0===k?[]:k,O=S.initFormula,A=void 0===O?"":O,P=S.onSave,W=void 0===P?function(){}:P,M=i(!0),E=s(M,2),R=E[0],U=E[1],D=i(!1),H=s(D,2),V=H[0],z=H[1],B=i(!1),G=s(B,2),L=G[0],q=G[1],K=i(A),X=s(K,2),Z=X[0],w=X[1],J=i(0),Q=s(J,2),Y=Q[0],$=Q[1],_=i(0),oo=s(_,2),so=oo[0],io=oo[1],co=a(Z,x),no=co.search("/f"),to=-1!==no,ro=c((function(){return x.map((function(o){return o.key}))}),[x]),eo=co.substring(no+"/f".length,Y),mo=n(null),lo=p({isValue:!to&&!!Z}),ao=m(),uo=u(Z,ro),po=uo.formulaFunction,jo=uo.error;C(mo,(function(){q(!1)}));var Io=function(o){var s,i=x.find((function(s){return s.key===o}));z(!0),q(!0),w((function(s){return s.replace("".concat("/f").concat(eo),o?"[".concat(o,"]"):"")})),$(no+((null==i||null===(s=i.label)||void 0===s?void 0:s.length)||0))},fo=t((function(o,s){Y!==s&&$(s),o!==Z&&(w(o),U(!1))}),[Z,Y]);return r((function(){w(A)}),[A]),F("div",{className:lo.formulaContainer,children:[F("div",{className:lo.formulaHeaderWrapper,children:[F("div",{className:lo.formulaHeaderTextWrapper,children:[g(d,{color:N(ao,L,jo)}),g("div",{className:lo.formulaHeaderText,style:{color:N(ao,L,jo)},children:"Formula Expression"})]}),F("div",{className:lo.formulaHeaderButtonWrapper,onClick:function(){to||(U(!1),w(""),$(0),z(!0))},children:[g(h,{strokeWidth:3,size:16}),g("div",{className:lo.formulaHeaderText,children:"Clear"})]})]}),F("div",{className:lo.formulaEditorWrapper,children:[g("div",{ref:mo,onClick:function(){q(!0)},children:g(j,{initFormula:Z,cursorPos:Y,color:N(ao,L,jo),suggestions:x,isValueUpdated:V,setIsValueUpdated:z,onChange:fo})}),to&&g(I,{onClose:function(){return Io("")}})]}),to&&g(f,{suggestions:x,keyStr:eo,onAddSuggestion:Io,onChangeHeight:io}),F("div",{className:lo.formulaFooterWrapper,style:{marginTop:to?-so:0},children:[g(v,{className:lo.formulaFooterIcon,strokeWidth:3,size:16}),g("div",{className:lo.formulaFooterTextWrapper,children:F("div",{className:lo.formulaFooterText,children:["Type ",g("span",{className:lo.funcText,children:"/f"})," to do add live channels to your equation. Use your keybord for numbers and"," ",g(b,{title:g("div",{className:lo.tooltipWrapper,children:y.map((function(o){return F("div",{className:lo.tooltipLine,children:[g("span",{className:lo.tooltipValue,children:o.value}),F("div",{className:lo.tooltipLabelContainer,children:[!!o.isShift&&g("span",{className:lo.tooltipSymbol,children:"⇧"}),g("span",{children:o.label})]},o.value)]},o.value)}))}),placement:"bottom",children:g("span",{className:lo.successColor,children:"math symbols"})})]})})]}),g(l,{className:lo.verifyButton,variant:"contained",color:"primary",onClick:function(){U(!0);var o=x.map((function(o){return o.key})).filter((function(o){return Z&&Z.includes(o)}));W({formula:Z,variables:o,formulaFunc:po})},disabled:R||!po,children:"Verify"}),!!Z&&g("span",{className:e(lo.resultText,(T={},o(T,lo.errorColor,!!jo),o(T,lo.resultSuccessColor,!jo),T)),children:jo?"The formula is not valid":"The formula is valid"})]})};export{S as default};
2
2
  //# sourceMappingURL=Formula.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Formula.js","sources":["../../../src/components/Formula/Formula.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport classnames from 'classnames';\nimport { Button, Theme, useTheme } from '@material-ui/core';\n\nimport { replaceStringToLabel } from './utils';\nimport { useFormulaFunction } from './useFormulaFunction';\nimport { useFormulaStyles } from './useFormulaStyles';\nimport RootXIcon from './RootXIcon';\nimport FormulaTextEditor from './FormulaTextEditor';\nimport CloseSuggestion from './CloseSuggestion';\nimport SuggestionsMenu from './SuggestionsMenu';\n\nimport { CloseSmallIcon, InfoIcon } from '~/icons';\nimport useOutsideClick from '~/effects/useOutsideClick';\nimport Tooltip from '~/components/Tooltip';\n\nconst HOT_STR = '/f';\nconst mathSymbols = [\n { value: '*', isShift: true, label: '8' },\n { value: '/', label: '/' },\n { value: '(', isShift: true, label: '9' },\n { value: ')', isShift: true, label: '0' },\n { value: '+', isShift: true, label: '+' },\n { value: '-', label: '-' },\n { value: '^', isShift: true, label: '6' },\n];\nconst getColor = (theme: Theme, isHighlight: boolean, isError: string) => {\n if (!isHighlight) return theme.palette.primary.text7;\n return isError ? theme.palette.error.main : theme.palette.primary.main;\n};\n\ntype FormulaObject = any;\n\ntype FormulaProps = {\n suggestions?: { key: string; label: string; unit?: string; type: string }[];\n initFormula?: string;\n /**\n * `FormulaObject` is an instance of [fparser](https://github.com/bylexus/fparse)\n */\n onSave?: (param: { formula: string; variables: string[]; formulaFunc: FormulaObject }) => void;\n};\n\nconst Formula = ({ suggestions = [], initFormula = '', onSave = () => {} }: FormulaProps) => {\n const [isVerified, setIsVerified] = useState(true);\n const [isValueUpdated, setIsValueUpdated] = useState(false);\n const [isHighlight, setIsHighlight] = useState(false);\n const [formulaValue, setFormulaValue] = useState(initFormula);\n const [cursorPos, setCursorPos] = useState(0);\n const [suggestionsMenuHeight, setSuggestionsMenuHeight] = useState(0);\n const formulaLabel = replaceStringToLabel(formulaValue, suggestions);\n const hotStrPos = formulaLabel.search(HOT_STR);\n const isSuggestionState = hotStrPos !== -1;\n const suggestionKeys = useMemo(() => suggestions.map(item => item.key), [suggestions]);\n const keyStr = formulaLabel.substring(hotStrPos + HOT_STR.length, cursorPos);\n\n const formulaRef = useRef<HTMLDivElement>(null);\n const classes = useFormulaStyles({ isValue: !isSuggestionState && !!formulaValue });\n\n const theme = useTheme();\n const { formulaFunction, error } = useFormulaFunction(formulaValue, suggestionKeys);\n\n useOutsideClick(formulaRef, () => {\n setIsHighlight(false);\n });\n\n const handleAddSuggestion = (value: string) => {\n const suggestion = suggestions.find(item => item.key === value);\n setIsValueUpdated(true);\n setIsHighlight(true);\n setFormulaValue(prev => prev.replace(`${HOT_STR}${keyStr}`, value ? `[${value}]` : ''));\n setCursorPos(hotStrPos + (suggestion?.label?.length || 0));\n };\n\n const handleCloseSuggestionState = () => handleAddSuggestion('');\n\n const handleChangeEditorValue = useCallback(\n (newValue: string, newCursorPos: number) => {\n if (cursorPos !== newCursorPos) {\n setCursorPos(newCursorPos);\n }\n if (newValue !== formulaValue) {\n setFormulaValue(newValue);\n setIsVerified(false);\n }\n },\n [formulaValue, cursorPos]\n );\n\n const handleClickValue = () => {\n setIsHighlight(true);\n };\n\n const handleClear = () => {\n if (isSuggestionState) return;\n setIsVerified(false);\n setFormulaValue('');\n setCursorPos(0);\n setIsValueUpdated(true);\n };\n\n const handleVerify = () => {\n setIsVerified(true);\n const variables = suggestions\n .map(suggestion => suggestion.key)\n .filter(item => formulaValue && formulaValue.includes(item));\n onSave({ formula: formulaValue, variables, formulaFunc: formulaFunction });\n };\n\n useEffect(() => {\n setFormulaValue(initFormula);\n }, [initFormula]);\n\n return (\n <div className={classes.formulaContainer}>\n <div className={classes.formulaHeaderWrapper}>\n <div className={classes.formulaHeaderTextWrapper}>\n <RootXIcon color={getColor(theme, isHighlight, error)} />\n <div\n className={classes.formulaHeaderText}\n style={{ color: getColor(theme, isHighlight, error) }}\n >\n Formula Expression\n </div>\n </div>\n <div className={classes.formulaHeaderButtonWrapper} onClick={handleClear}>\n <CloseSmallIcon strokeWidth={3} size={16} />\n <div className={classes.formulaHeaderText}>Clear</div>\n </div>\n </div>\n <div className={classes.formulaEditorWrapper}>\n <div ref={formulaRef} onClick={handleClickValue}>\n <FormulaTextEditor\n initFormula={formulaValue}\n cursorPos={cursorPos}\n color={getColor(theme, isHighlight, error)}\n suggestions={suggestions}\n isValueUpdated={isValueUpdated}\n setIsValueUpdated={setIsValueUpdated}\n onChange={handleChangeEditorValue}\n />\n </div>\n {isSuggestionState && <CloseSuggestion onClose={handleCloseSuggestionState} />}\n </div>\n {isSuggestionState && (\n <SuggestionsMenu\n suggestions={suggestions}\n keyStr={keyStr}\n onAddSuggestion={handleAddSuggestion}\n onChangeHeight={setSuggestionsMenuHeight}\n />\n )}\n <div\n className={classes.formulaFooterWrapper}\n style={{ marginTop: isSuggestionState ? -suggestionsMenuHeight : 0 }}\n >\n <InfoIcon className={classes.formulaFooterIcon} strokeWidth={3} size={16} />\n <div className={classes.formulaFooterTextWrapper}>\n <div className={classes.formulaFooterText}>\n Type <span className={classes.funcText}>/f</span> to do add live channels to your\n equation. Use your keybord for numbers and{' '}\n <Tooltip\n title={\n <div className={classes.tooltipWrapper}>\n {mathSymbols.map(item => (\n <div key={item.value} className={classes.tooltipLine}>\n <span className={classes.tooltipValue}>{item.value}</span>\n <div key={item.value} className={classes.tooltipLabelContainer}>\n {!!item.isShift && <span className={classes.tooltipSymbol}>&#8679;</span>}\n <span>{item.label}</span>\n </div>\n </div>\n ))}\n </div>\n }\n placement=\"bottom\"\n >\n <span className={classes.successColor}>math symbols</span>\n </Tooltip>\n </div>\n </div>\n </div>\n <Button\n className={classes.verifyButton}\n variant=\"contained\"\n color=\"primary\"\n onClick={handleVerify}\n disabled={isVerified || !formulaFunction}\n >\n Verify\n </Button>\n {!!formulaValue && (\n <span\n className={classnames(classes.resultText, {\n [classes.errorColor]: !!error,\n [classes.resultSuccessColor]: !error,\n })}\n >\n {error ? 'The formula is not valid' : 'The formula is valid'}\n </span>\n )}\n </div>\n );\n};\n\nexport default Formula;\n"],"names":["mathSymbols","value","isShift","label","getColor","theme","isHighlight","isError","palette","error","main","primary","text7","Formula","_ref","_classnames","_ref$suggestions","suggestions","_ref$initFormula","initFormula","_ref$onSave","onSave","useState","_useState2","_slicedToArray","_useState","isVerified","setIsVerified","_useState4","_useState3","isValueUpdated","setIsValueUpdated","_useState6","_useState5","setIsHighlight","_useState8","_useState7","formulaValue","setFormulaValue","_useState10","_useState9","cursorPos","setCursorPos","_useState12","_useState11","suggestionsMenuHeight","setSuggestionsMenuHeight","formulaLabel","replaceStringToLabel","hotStrPos","search","isSuggestionState","suggestionKeys","useMemo","map","item","key","keyStr","substring","length","formulaRef","useRef","classes","useFormulaStyles","isValue","useTheme","_useFormulaFunction","useFormulaFunction","formulaFunction","useOutsideClick","handleAddSuggestion","_suggestion$label","suggestion","find","prev","replace","concat","handleChangeEditorValue","useCallback","newValue","newCursorPos","useEffect","_jsxs","className","formulaContainer","children","formulaHeaderWrapper","formulaHeaderTextWrapper","_jsx","RootXIcon","color","formulaHeaderText","style","formulaHeaderButtonWrapper","onClick","CloseSmallIcon","strokeWidth","size","formulaEditorWrapper","ref","FormulaTextEditor","onChange","CloseSuggestion","onClose","SuggestionsMenu","onAddSuggestion","onChangeHeight","formulaFooterWrapper","marginTop","InfoIcon","formulaFooterIcon","formulaFooterTextWrapper","formulaFooterText","funcText","Tooltip","title","tooltipWrapper","tooltipLine","tooltipValue","tooltipLabelContainer","tooltipSymbol","placement","successColor","Button","verifyButton","variant","variables","filter","includes","formula","formulaFunc","disabled","classnames","resultText","_defineProperty","errorColor","resultSuccessColor"],"mappings":"i6IAgBA,IACMA,EAAc,CAClB,CAAEC,MAAO,IAAKC,SAAS,EAAMC,MAAO,KACpC,CAAEF,MAAO,IAAKE,MAAO,KACrB,CAAEF,MAAO,IAAKC,SAAS,EAAMC,MAAO,KACpC,CAAEF,MAAO,IAAKC,SAAS,EAAMC,MAAO,KACpC,CAAEF,MAAO,IAAKC,SAAS,EAAMC,MAAO,KACpC,CAAEF,MAAO,IAAKE,MAAO,KACrB,CAAEF,MAAO,IAAKC,SAAS,EAAMC,MAAO,MAEhCC,EAAW,SAACC,EAAcC,EAAsBC,GACpD,OAAKD,EACEC,EAAUF,EAAMG,QAAQC,MAAMC,KAAOL,EAAMG,QAAQG,QAAQD,KADzCL,EAAMG,QAAQG,QAAQC,KAEjD,EAaMC,EAAU,SAA6EC,GAAA,IAAAC,EAAAC,EAAAF,EAA1EG,YAAAA,aAAc,GAAED,EAAAE,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,GACd,IAAMmG,EAAY7G,EACfqC,KAAI,SAAAkB,GAAU,OAAIA,EAAWhB,GAAG,IAChCuE,QAAO,SAAAxE,GAAI,OAAIlB,GAAgBA,EAAa2F,SAASzE,MACxDlC,EAAO,CAAE4G,QAAS5F,EAAcyF,UAAAA,EAAWI,YAAa9D,MAiFpD+D,SAAUzG,IAAe0C,GAAgBiB,SAAA,aAIxChD,GACDmD,EAAA,OAAA,CACEL,UAAWiD,EAAWtE,GAAQuE,YAAUtH,EAAA,GAAAuH,EAAAvH,EACrC+C,GAAQyE,aAAe9H,IACvBqD,EAAAA,EAAAA,GAAQ0E,oBAAsB/H,IAC9BM,IAAAsE,SAEF5E,GAAQ,2BAA6B,2BAKhD"}
1
+ {"version":3,"file":"Formula.js","sources":["../../../src/components/Formula/Formula.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport classnames from 'classnames';\nimport { Button, Theme, useTheme } from '@material-ui/core';\n\nimport { replaceStringToLabel } from './utils';\nimport { useFormulaFunction } from './useFormulaFunction';\nimport { useFormulaStyles } from './useFormulaStyles';\nimport RootXIcon from './RootXIcon';\nimport FormulaTextEditor from './FormulaTextEditor';\nimport CloseSuggestion from './CloseSuggestion';\nimport SuggestionsMenu from './SuggestionsMenu';\n\nimport { CloseSmallIcon, InfoIcon } from '~/icons';\nimport useOutsideClick from '~/effects/useOutsideClick';\nimport Tooltip from '~/components/Tooltip';\n\nconst HOT_STR = '/f';\nconst mathSymbols = [\n { value: '*', isShift: true, label: '8' },\n { value: '/', label: '/' },\n { value: '(', isShift: true, label: '9' },\n { value: ')', isShift: true, label: '0' },\n { value: '+', isShift: true, label: '+' },\n { value: '-', label: '-' },\n { value: '^', isShift: true, label: '6' },\n];\nconst getColor = (theme: Theme, isHighlight: boolean, isError: string) => {\n if (!isHighlight) return theme.palette.primary.text7;\n return isError ? theme.palette.error.main : theme.palette.primary.main;\n};\n\ntype FormulaObject = any;\n\ntype FormulaProps = {\n suggestions?: { key: string; label: string; unit?: string; type: string }[];\n initFormula?: string;\n /**\n * `FormulaObject` is an instance of [fparser](https://github.com/bylexus/fparse)\n */\n onSave?: (param: { formula: string; variables: string[]; formulaFunc: FormulaObject }) => void;\n};\n\nconst Formula = ({ suggestions = [], initFormula = '', onSave = () => {} }: FormulaProps) => {\n const [isVerified, setIsVerified] = useState(true);\n const [isValueUpdated, setIsValueUpdated] = useState(false);\n const [isHighlight, setIsHighlight] = useState(false);\n const [formulaValue, setFormulaValue] = useState(initFormula);\n const [cursorPos, setCursorPos] = useState(0);\n const [suggestionsMenuHeight, setSuggestionsMenuHeight] = useState(0);\n const formulaLabel = replaceStringToLabel(formulaValue, suggestions);\n const hotStrPos = formulaLabel.search(HOT_STR);\n const isSuggestionState = hotStrPos !== -1;\n const suggestionKeys = useMemo(() => suggestions.map(item => item.key), [suggestions]);\n const keyStr = formulaLabel.substring(hotStrPos + HOT_STR.length, cursorPos);\n\n const formulaRef = useRef<HTMLDivElement>(null);\n const classes = useFormulaStyles({ isValue: !isSuggestionState && !!formulaValue });\n\n const theme = useTheme();\n const { formulaFunction, error } = useFormulaFunction(formulaValue, suggestionKeys);\n\n useOutsideClick(formulaRef, () => {\n setIsHighlight(false);\n });\n\n const handleAddSuggestion = (value: string) => {\n const suggestion = suggestions.find(item => item.key === value);\n setIsValueUpdated(true);\n setIsHighlight(true);\n setFormulaValue(prev => prev.replace(`${HOT_STR}${keyStr}`, value ? `[${value}]` : ''));\n setCursorPos(hotStrPos + (suggestion?.label?.length || 0));\n };\n\n const handleCloseSuggestionState = () => handleAddSuggestion('');\n\n const handleChangeEditorValue = useCallback(\n (newValue: string, newCursorPos: number) => {\n if (cursorPos !== newCursorPos) {\n setCursorPos(newCursorPos);\n }\n if (newValue !== formulaValue) {\n setFormulaValue(newValue);\n setIsVerified(false);\n }\n },\n [formulaValue, cursorPos]\n );\n\n const handleClickValue = () => {\n setIsHighlight(true);\n };\n\n const handleClear = () => {\n if (isSuggestionState) return;\n setIsVerified(false);\n setFormulaValue('');\n setCursorPos(0);\n setIsValueUpdated(true);\n };\n\n const handleVerify = () => {\n setIsVerified(true);\n const variables = suggestions\n .map(suggestion => suggestion.key)\n .filter(item => formulaValue && formulaValue.includes(item));\n onSave({ formula: formulaValue, variables, formulaFunc: formulaFunction });\n };\n\n useEffect(() => {\n setFormulaValue(initFormula);\n }, [initFormula]);\n\n return (\n <div className={classes.formulaContainer}>\n <div className={classes.formulaHeaderWrapper}>\n <div className={classes.formulaHeaderTextWrapper}>\n <RootXIcon color={getColor(theme, isHighlight, error)} />\n <div\n className={classes.formulaHeaderText}\n style={{ color: getColor(theme, isHighlight, error) }}\n >\n Formula Expression\n </div>\n </div>\n <div className={classes.formulaHeaderButtonWrapper} onClick={handleClear}>\n <CloseSmallIcon strokeWidth={3} size={16} />\n <div className={classes.formulaHeaderText}>Clear</div>\n </div>\n </div>\n <div className={classes.formulaEditorWrapper}>\n <div ref={formulaRef} onClick={handleClickValue}>\n <FormulaTextEditor\n initFormula={formulaValue}\n cursorPos={cursorPos}\n color={getColor(theme, isHighlight, error)}\n suggestions={suggestions}\n isValueUpdated={isValueUpdated}\n setIsValueUpdated={setIsValueUpdated}\n onChange={handleChangeEditorValue}\n />\n </div>\n {isSuggestionState && <CloseSuggestion onClose={handleCloseSuggestionState} />}\n </div>\n {isSuggestionState && (\n <SuggestionsMenu\n suggestions={suggestions}\n keyStr={keyStr}\n onAddSuggestion={handleAddSuggestion}\n onChangeHeight={setSuggestionsMenuHeight}\n />\n )}\n <div\n className={classes.formulaFooterWrapper}\n style={{ marginTop: isSuggestionState ? -suggestionsMenuHeight : 0 }}\n >\n <InfoIcon className={classes.formulaFooterIcon} strokeWidth={3} size={16} />\n <div className={classes.formulaFooterTextWrapper}>\n <div className={classes.formulaFooterText}>\n Type <span className={classes.funcText}>/f</span> to do add live channels to your\n equation. Use your keybord for numbers and{' '}\n <Tooltip\n title={\n <div className={classes.tooltipWrapper}>\n {mathSymbols.map(item => (\n <div key={item.value} className={classes.tooltipLine}>\n <span className={classes.tooltipValue}>{item.value}</span>\n <div key={item.value} className={classes.tooltipLabelContainer}>\n {!!item.isShift && <span className={classes.tooltipSymbol}>&#8679;</span>}\n <span>{item.label}</span>\n </div>\n </div>\n ))}\n </div>\n }\n placement=\"bottom\"\n >\n <span className={classes.successColor}>math symbols</span>\n </Tooltip>\n </div>\n </div>\n </div>\n <Button\n className={classes.verifyButton}\n variant=\"contained\"\n color=\"primary\"\n onClick={handleVerify}\n disabled={isVerified || !formulaFunction}\n >\n Verify\n </Button>\n {!!formulaValue && (\n <span\n className={classnames(classes.resultText, {\n [classes.errorColor]: !!error,\n [classes.resultSuccessColor]: !error,\n })}\n >\n {error ? 'The formula is not valid' : 'The formula is valid'}\n </span>\n )}\n </div>\n );\n};\n\nexport default Formula;\n"],"names":["mathSymbols","value","isShift","label","getColor","theme","isHighlight","isError","palette","error","main","primary","text7","Formula","_ref","_classnames","_ref$suggestions","suggestions","_ref$initFormula","initFormula","_ref$onSave","onSave","useState","_useState2","_slicedToArray","_useState","isVerified","setIsVerified","_useState4","_useState3","isValueUpdated","setIsValueUpdated","_useState6","_useState5","setIsHighlight","_useState8","_useState7","formulaValue","setFormulaValue","_useState10","_useState9","cursorPos","setCursorPos","_useState12","_useState11","suggestionsMenuHeight","setSuggestionsMenuHeight","formulaLabel","replaceStringToLabel","hotStrPos","search","isSuggestionState","suggestionKeys","useMemo","map","item","key","keyStr","substring","length","formulaRef","useRef","classes","useFormulaStyles","isValue","useTheme","_useFormulaFunction","useFormulaFunction","formulaFunction","useOutsideClick","handleAddSuggestion","_suggestion$label","suggestion","find","prev","replace","concat","handleChangeEditorValue","useCallback","newValue","newCursorPos","useEffect","_jsxs","className","formulaContainer","children","formulaHeaderWrapper","formulaHeaderTextWrapper","_jsx","RootXIcon","color","formulaHeaderText","style","formulaHeaderButtonWrapper","onClick","CloseSmallIcon","strokeWidth","size","formulaEditorWrapper","ref","FormulaTextEditor","onChange","CloseSuggestion","onClose","SuggestionsMenu","onAddSuggestion","onChangeHeight","formulaFooterWrapper","marginTop","InfoIcon","formulaFooterIcon","formulaFooterTextWrapper","formulaFooterText","funcText","Tooltip","title","tooltipWrapper","tooltipLine","tooltipValue","tooltipLabelContainer","tooltipSymbol","placement","successColor","Button","verifyButton","variant","variables","filter","includes","formula","formulaFunc","disabled","classnames","resultText","_defineProperty","errorColor","resultSuccessColor"],"mappings":"2gJAgBA,IACMA,EAAc,CAClB,CAAEC,MAAO,IAAKC,SAAS,EAAMC,MAAO,KACpC,CAAEF,MAAO,IAAKE,MAAO,KACrB,CAAEF,MAAO,IAAKC,SAAS,EAAMC,MAAO,KACpC,CAAEF,MAAO,IAAKC,SAAS,EAAMC,MAAO,KACpC,CAAEF,MAAO,IAAKC,SAAS,EAAMC,MAAO,KACpC,CAAEF,MAAO,IAAKE,MAAO,KACrB,CAAEF,MAAO,IAAKC,SAAS,EAAMC,MAAO,MAEhCC,EAAW,SAACC,EAAcC,EAAsBC,GACpD,OAAKD,EACEC,EAAUF,EAAMG,QAAQC,MAAMC,KAAOL,EAAMG,QAAQG,QAAQD,KADzCL,EAAMG,QAAQG,QAAQC,KAEjD,EAaMC,EAAU,SAA6EC,GAAA,IAAAC,EAAAC,EAAAF,EAA1EG,YAAAA,aAAc,GAAED,EAAAE,EAAAJ,EAAEK,YAAAA,aAAc,GAAED,EAAAE,EAAAN,EAAEO,OAAAA,OAAM,IAAAD,EAAG,WAAM,EAAEA,EAClCE,EAAAA,GAAS,GAAKC,EAAAC,EAAAC,EAAA,GAA3CC,EAAUH,EAAA,GAAEI,EAAaJ,EAAA,GACYD,EAAAA,GAAS,GAAMM,EAAAJ,EAAAK,EAAA,GAApDC,EAAcF,EAAA,GAAEG,EAAiBH,EAAA,GACFN,EAAAA,GAAS,GAAMU,EAAAR,EAAAS,EAAA,GAA9C3B,EAAW0B,EAAA,GAAEE,EAAcF,EAAA,GACMV,EAAAA,EAASH,GAAYgB,EAAAX,EAAAY,EAAA,GAAtDC,EAA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