@corva/ui 0.72.0-5 → 0.73.0-0

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 (1323) hide show
  1. package/CLI/hocs/constants.js +1 -1
  2. package/CLI/hocs/utils.js +1 -1
  3. package/cjs-bundle/CLI/hocs/utils.js +1 -1
  4. package/cjs-bundle/clients/api/apiCore.js +1 -1
  5. package/cjs-bundle/clients/clientStorage/core.js +1 -1
  6. package/cjs-bundle/clients/clientStorage/index.js +1 -1
  7. package/cjs-bundle/clients/constants.js +1 -1
  8. package/cjs-bundle/clients/index.js +1 -1
  9. package/cjs-bundle/clients/jsonApi/index.js +1 -1
  10. package/cjs-bundle/clients/subscriptions.js +1 -1
  11. package/cjs-bundle/clients/utils.js +1 -1
  12. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  13. package/cjs-bundle/components/AddComment/Popup.js +1 -1
  14. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  15. package/cjs-bundle/components/AdvancedSlider/AdvancedSlider.js +1 -1
  16. package/cjs-bundle/components/AdvancedSlider/Handle.js +1 -1
  17. package/cjs-bundle/components/AnchorsList/AnchorsList.js +1 -1
  18. package/cjs-bundle/components/Annotations/AnnotationsContext.js +1 -1
  19. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  20. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
  21. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AnnotationComments/index.js +1 -1
  22. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AnnotationInput/StyledSelect.js +1 -1
  23. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js +1 -1
  24. package/cjs-bundle/components/Annotations/components/AnnotationsList/index.js +1 -1
  25. package/cjs-bundle/components/Annotations/components/LastAnnotation/index.js +1 -1
  26. package/cjs-bundle/components/AppIcon/assets/DrillingAppIcon.js +1 -1
  27. package/cjs-bundle/components/AppIcon/utils.js +1 -1
  28. package/cjs-bundle/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
  29. package/cjs-bundle/components/AppVersionsSelect/effects/index.js +1 -1
  30. package/cjs-bundle/components/AssetEditor/AssetEditorAutocomplete.js +1 -1
  31. package/cjs-bundle/components/AssetEditor/SingleAssetEditor.js +1 -1
  32. package/cjs-bundle/components/AssetEditor/effects/index.js +1 -1
  33. package/cjs-bundle/components/AssetEditor/index.js +1 -1
  34. package/cjs-bundle/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
  35. package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelect.js +1 -1
  36. package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelectV2.js +1 -1
  37. package/cjs-bundle/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
  38. package/cjs-bundle/components/AssetEditorV2/components/SelectItem.js +1 -1
  39. package/cjs-bundle/components/AssetEditorV2/effects/index.js +1 -1
  40. package/cjs-bundle/components/AssetEditorV2/effects/usePrimaryAssetSelectData.js +1 -1
  41. package/cjs-bundle/components/AssetEditorV2/index.js +1 -1
  42. package/cjs-bundle/components/AssetEditorV2/utils/index.js +1 -1
  43. package/cjs-bundle/components/AssetNameLabel/AssetNameLabel.js +1 -1
  44. package/cjs-bundle/components/Attachment/index.js +1 -1
  45. package/cjs-bundle/components/Autocomplete/Autocomplete.js +1 -1
  46. package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
  47. package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/index.js +1 -1
  48. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js +1 -1
  49. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetResultSection.js +1 -1
  50. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetTypesSection.js +1 -1
  51. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  52. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/constants.js +1 -1
  53. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/effects/useAssetsData.js +1 -1
  54. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/utils/apiCalls.js +1 -1
  55. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js +1 -1
  56. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +1 -1
  57. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/WellListItem.js +1 -1
  58. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
  59. package/cjs-bundle/components/BICOffsetPickerDialog/effects/index.js +1 -1
  60. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  61. package/cjs-bundle/components/BICOffsetPickerDialog/utils/apiCalls.js +1 -1
  62. package/cjs-bundle/components/Breadcrumbs/index.js +1 -1
  63. package/cjs-bundle/components/Casing/CasingComponentIcon.js +1 -1
  64. package/cjs-bundle/components/Casing/CasingTable/CasingComponent.js +1 -1
  65. package/cjs-bundle/components/Casing/CasingTable/index.js +1 -1
  66. package/cjs-bundle/components/Casing/CasingTableV2/CasingTableV2.js +1 -1
  67. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Browser.js +1 -1
  68. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  69. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  70. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Browser.js +1 -1
  71. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  72. package/cjs-bundle/components/Casing/CasingTableV2/components/EditComponentDialog.js +1 -1
  73. package/cjs-bundle/components/Casing/CasingTableV2/components/Header.js +1 -1
  74. package/cjs-bundle/components/Casing/CasingTableV2/components/SortableComponent.js +1 -1
  75. package/cjs-bundle/components/Casing/CasingTableV2/components/SortableComponents.js +1 -1
  76. package/cjs-bundle/components/Casing/CasingTile/CasingTile.js +1 -1
  77. package/cjs-bundle/components/Casing/CasingTile/style.js +1 -1
  78. package/cjs-bundle/components/Casing/CasingTileIcon.js +1 -1
  79. package/cjs-bundle/components/Chart/ChartWrapperContext.js +1 -1
  80. package/cjs-bundle/components/Chart/components/AxisDropdown.js +1 -1
  81. package/cjs-bundle/components/Chart/components/AxisOverlay.js +1 -1
  82. package/cjs-bundle/components/Chart/components/ChartButton.js +1 -1
  83. package/cjs-bundle/components/Chart/components/ChartButtons.js +1 -1
  84. package/cjs-bundle/components/Chart/components/ChartSelect.js +1 -1
  85. package/cjs-bundle/components/Chart/components/ChartWrapper.js +1 -1
  86. package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  87. package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  88. package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js +1 -1
  89. package/cjs-bundle/components/Chart/components/buttons/PanButton.js +1 -1
  90. package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  91. package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js +1 -1
  92. package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  93. package/cjs-bundle/components/Chart/effects/useChartModifier.js +1 -1
  94. package/cjs-bundle/components/Chart/effects/useChartTypeSwitch.js +1 -1
  95. package/cjs-bundle/components/Chart/effects/useHideAxes.js +1 -1
  96. package/cjs-bundle/components/Chart/effects/useKeyboardControl.js +1 -1
  97. package/cjs-bundle/components/Chart/effects/useZoom.js +1 -1
  98. package/cjs-bundle/components/Chart/formations.js +1 -1
  99. package/cjs-bundle/components/Chart/utils.js +1 -1
  100. package/cjs-bundle/components/ChartActionsList/ChartActionsList.js +1 -1
  101. package/cjs-bundle/components/ChartActionsList/icons/GoLive.js +1 -1
  102. package/cjs-bundle/components/ChartActionsList/icons/LeftArrow.js +1 -1
  103. package/cjs-bundle/components/ChartActionsList/icons/RightArrow.js +1 -1
  104. package/cjs-bundle/components/ChartActionsList/icons/ZoomIn.js +1 -1
  105. package/cjs-bundle/components/ChartActionsList/icons/ZoomOut.js +1 -1
  106. package/cjs-bundle/components/Checkbox/index.js +1 -1
  107. package/cjs-bundle/components/CollapsableSidebar.js +1 -1
  108. package/cjs-bundle/components/CollapsibleContent.js +1 -1
  109. package/cjs-bundle/components/ColorPicker/ColorPicker.js +1 -1
  110. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/ColorSquare/ColorSquare.js +1 -1
  111. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/Palette/Palette.js +1 -1
  112. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/Palette/PaletteConstants.js +1 -1
  113. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  114. package/cjs-bundle/components/Comment/index.js +1 -1
  115. package/cjs-bundle/components/CommentInput/index.js +1 -1
  116. package/cjs-bundle/components/CommentLoader.js +1 -1
  117. package/cjs-bundle/components/CommentWrapper.js +1 -1
  118. package/cjs-bundle/components/CommentsInfo/index.js +1 -1
  119. package/cjs-bundle/components/ConfirmationDialog.js +1 -1
  120. package/cjs-bundle/components/ContextMenuItem/index.js +1 -1
  121. package/cjs-bundle/components/CopyToClipboard/CopyToClipboard.js +1 -1
  122. package/cjs-bundle/components/CustomSelect/index.js +1 -1
  123. package/cjs-bundle/components/DevCenter/AppContext.js +1 -1
  124. package/cjs-bundle/components/DevCenter/AppHeader/AppHeader.js +1 -1
  125. package/cjs-bundle/components/DevCenter/AppHeader/AppHeaderStyles.js +1 -1
  126. package/cjs-bundle/components/DevCenter/AppHeader/PadMode.js +1 -1
  127. package/cjs-bundle/components/DevCenter/AppHeader/utils.js +1 -1
  128. package/cjs-bundle/components/DevCenter/AppsDataProvider/AppsDataProvider.js +1 -1
  129. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
  130. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/useAppsData.js +1 -1
  131. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  132. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  133. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js +1 -1
  134. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.js +1 -1
  135. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  136. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  137. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
  138. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js +1 -1
  139. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js +1 -1
  140. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  141. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js +1 -1
  142. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js +1 -1
  143. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  144. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
  145. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js +1 -1
  146. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js +1 -1
  147. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsList.js +1 -1
  148. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js +1 -1
  149. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/effects/useAppSettings.js +1 -1
  150. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/utils.js +1 -1
  151. package/cjs-bundle/components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js +1 -1
  152. package/cjs-bundle/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js +1 -1
  153. package/cjs-bundle/components/DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js +1 -1
  154. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
  155. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  156. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  157. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/effects/useXProps.js +1 -1
  158. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/utils/replaceUndefinedValuesWithNull.js +1 -1
  159. package/cjs-bundle/components/DevCenter/NavigationBar/NavigationBar.js +1 -1
  160. package/cjs-bundle/components/DevCenter/SideBar/SideBar.js +1 -1
  161. package/cjs-bundle/components/DisabledSettingsMessage/DisabledSettingsMessage.js +1 -1
  162. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  163. package/cjs-bundle/components/DocumentViewer/styles.js +1 -1
  164. package/cjs-bundle/components/Drillstring/BHACasingEmptyView/BHACasingEmptyView.js +1 -1
  165. package/cjs-bundle/components/Drillstring/BHAComponentDetail/constants.js +1 -1
  166. package/cjs-bundle/components/Drillstring/BHAComponentDetail/index.js +1 -1
  167. package/cjs-bundle/components/Drillstring/BHAComponentIcon.js +1 -1
  168. package/cjs-bundle/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js +1 -1
  169. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Browser.js +1 -1
  170. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  171. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Browser.js +1 -1
  172. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  173. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  174. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Browser.js +1 -1
  175. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  176. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Browser.js +1 -1
  177. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  178. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js +1 -1
  179. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Header.js +1 -1
  180. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Browser.js +1 -1
  181. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  182. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Browser.js +1 -1
  183. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  184. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js +1 -1
  185. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Browser.js +1 -1
  186. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  187. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js +1 -1
  188. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Browser.js +1 -1
  189. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  190. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js +1 -1
  191. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Browser.js +1 -1
  192. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  193. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/SortableComponent.js +1 -1
  194. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/SortableComponents.js +1 -1
  195. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Browser.js +1 -1
  196. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  197. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Browser.js +1 -1
  198. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  199. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Suggestions/AutoCompleteDialog.js +1 -1
  200. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js +1 -1
  201. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Browser.js +1 -1
  202. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  203. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/constants.js +1 -1
  204. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.js +1 -1
  205. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  206. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js +1 -1
  207. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js +1 -1
  208. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/InputText.js +1 -1
  209. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js +1 -1
  210. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js +1 -1
  211. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js +1 -1
  212. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js +1 -1
  213. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js +1 -1
  214. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/sharedStyles.js +1 -1
  215. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/utils/calculation.js +1 -1
  216. package/cjs-bundle/components/Drillstring/BHAList/BHAList.js +1 -1
  217. package/cjs-bundle/components/Drillstring/BHASchematic.js +1 -1
  218. package/cjs-bundle/components/Drillstring/BHATable/BHAComponent.js +1 -1
  219. package/cjs-bundle/components/Drillstring/BHATable/index.js +1 -1
  220. package/cjs-bundle/components/Drillstring/BHATile/BHATile.js +1 -1
  221. package/cjs-bundle/components/Drillstring/BHATileIcon.js +1 -1
  222. package/cjs-bundle/components/Drillstring/BhaIndicator/BhaIndicator.js +1 -1
  223. package/cjs-bundle/components/Drillstring/DrillstringDetail/DrillstringDetail.js +1 -1
  224. package/cjs-bundle/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  225. package/cjs-bundle/components/EditableItem/EditableItemWithBadge/index.js +1 -1
  226. package/cjs-bundle/components/EmbeddedApp/DevCenterEmbeddedApp.js +1 -1
  227. package/cjs-bundle/components/EmbeddedApp/EmbeddedApp.js +1 -1
  228. package/cjs-bundle/components/EmbeddedApp/components/AppInfo.js +1 -1
  229. package/cjs-bundle/components/EmojiIconButton.js +1 -1
  230. package/cjs-bundle/components/EmptyState/constants.js +1 -1
  231. package/cjs-bundle/components/EmptyView/EmptyAppView/EmptyAppView.js +1 -1
  232. package/cjs-bundle/components/EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js +1 -1
  233. package/cjs-bundle/components/EmptyView/EmptyView.js +1 -1
  234. package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
  235. package/cjs-bundle/components/ErrorBoundary/ErrorBoundary.js +1 -1
  236. package/cjs-bundle/components/FailedFileUploading.js +1 -1
  237. package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
  238. package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -1
  239. package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -1
  240. package/cjs-bundle/components/FeedItem/components/Actions.js +1 -1
  241. package/cjs-bundle/components/FeedItem/components/AvatarIcon.js +1 -1
  242. package/cjs-bundle/components/FeedItem/components/Content.js +1 -1
  243. package/cjs-bundle/components/FeedItem/components/CreatedAt.js +1 -1
  244. package/cjs-bundle/components/FeedItem/components/FeedComments.js +1 -1
  245. package/cjs-bundle/components/FeedItem/components/Icon.js +1 -1
  246. package/cjs-bundle/components/FeedItem/components/LessonsLearnedLeafIcon.js +1 -1
  247. package/cjs-bundle/components/FeedItem/components/Reactions.js +1 -1
  248. package/cjs-bundle/components/FeedItem/components/RigAndWell.js +1 -1
  249. package/cjs-bundle/components/FeedItem/components/TypeAndAssetTitle.js +1 -1
  250. package/cjs-bundle/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js +1 -1
  251. package/cjs-bundle/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.js +1 -1
  252. package/cjs-bundle/components/FeedItem/editModals/LessonsLearnedEdit/LessonsLearnedEdit.js +1 -1
  253. package/cjs-bundle/components/FeedItem/editModals/NptLessonsCommentEdit/NptLessonsCommentEdit.js +1 -1
  254. package/cjs-bundle/components/FeedItem/editModals/PCCommentEdit/PCCommentEdit.js +1 -1
  255. package/cjs-bundle/components/FeedItem/feedItemTypes/AlertFeedItem.js +1 -1
  256. package/cjs-bundle/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/helpers.js +1 -1
  257. package/cjs-bundle/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js +1 -1
  258. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js +1 -1
  259. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaNumber.js +1 -1
  260. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaSchematic.js +1 -1
  261. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js +1 -1
  262. package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/NoData.js +1 -1
  263. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js +1 -1
  264. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionDocumentFeedItem.js +1 -1
  265. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionNptFeedItem.js +1 -1
  266. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js +1 -1
  267. package/cjs-bundle/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js +1 -1
  268. package/cjs-bundle/components/FeedItem/feedItemTypes/DepthCommentFeedItem.js +1 -1
  269. package/cjs-bundle/components/FeedItem/feedItemTypes/DocumentFeedItem.js +1 -1
  270. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.js +1 -1
  271. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js +1 -1
  272. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js +1 -1
  273. package/cjs-bundle/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js +1 -1
  274. package/cjs-bundle/components/FeedItem/feedItemTypes/DvDCommentFeedItem.js +1 -1
  275. package/cjs-bundle/components/FeedItem/feedItemTypes/FluidReportFeedItem.js +1 -1
  276. package/cjs-bundle/components/FeedItem/feedItemTypes/GeosteeringFeedItem.js +1 -1
  277. package/cjs-bundle/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js +1 -1
  278. package/cjs-bundle/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js +1 -1
  279. package/cjs-bundle/components/FeedItem/feedItemTypes/NptFeedItem.js +1 -1
  280. package/cjs-bundle/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js +1 -1
  281. package/cjs-bundle/components/FeedItem/feedItemTypes/PCCommentFeedItem.js +1 -1
  282. package/cjs-bundle/components/FeedItem/feedItemTypes/PostFeedItem.js +1 -1
  283. package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/api.js +1 -1
  284. package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/NoData.js +1 -1
  285. package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Predictions.js +1 -1
  286. package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/PredictionsItem.js +1 -1
  287. package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/Stages.js +1 -1
  288. package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/utils.js +1 -1
  289. package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/index.js +1 -1
  290. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/api.js +1 -1
  291. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +1 -1
  292. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js +1 -1
  293. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.js +1 -1
  294. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js +1 -1
  295. package/cjs-bundle/components/FeedItem/feedItemTypes/TracesMemoFeedItem.js +1 -1
  296. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js +1 -1
  297. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/VerticalSectionAzimuth.js +1 -1
  298. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.js +1 -1
  299. package/cjs-bundle/components/FilePreview/index.js +1 -1
  300. package/cjs-bundle/components/FileTypeIcon.js +1 -1
  301. package/cjs-bundle/components/FileUploadIconButton.js +1 -1
  302. package/cjs-bundle/components/FilesLoader/Icons/CSVFileIcon.js +1 -1
  303. package/cjs-bundle/components/FilesLoader/Icons/DocFileIcon.js +1 -1
  304. package/cjs-bundle/components/FilesLoader/Icons/EDMFileIcon.js +1 -1
  305. package/cjs-bundle/components/FilesLoader/Icons/ExelFileIcon.js +1 -1
  306. package/cjs-bundle/components/FilesLoader/Icons/FileIcon.js +1 -1
  307. package/cjs-bundle/components/FilesLoader/Icons/IconRefresh.js +1 -1
  308. package/cjs-bundle/components/FilesLoader/Icons/IconSuccess.js +1 -1
  309. package/cjs-bundle/components/FilesLoader/Icons/IconWarning.js +1 -1
  310. package/cjs-bundle/components/FilesLoader/Icons/ImageFileIcon.js +1 -1
  311. package/cjs-bundle/components/FilesLoader/Icons/PdfFileIcon.js +1 -1
  312. package/cjs-bundle/components/FilesLoader/Icons/UnknownFileIcon.js +1 -1
  313. package/cjs-bundle/components/FilesLoader/Icons/UploadIcon.js +1 -1
  314. package/cjs-bundle/components/FilesLoader/useStyles.js +1 -1
  315. package/cjs-bundle/components/FolderMenuItem/components/ClosedFolderIcon.js +1 -1
  316. package/cjs-bundle/components/FolderMenuItem/components/FolderIcon.js +1 -1
  317. package/cjs-bundle/components/FolderMenuItem/components/OpenFolderIcon.js +1 -1
  318. package/cjs-bundle/components/FolderMenuItem/index.js +1 -1
  319. package/cjs-bundle/components/FolderMenuItemWithLinks/index.js +1 -1
  320. package/cjs-bundle/components/GoogleDocsViewer/index.js +1 -1
  321. package/cjs-bundle/components/GradientManager/GradientManager.styles.js +1 -1
  322. package/cjs-bundle/components/GradientManager/GradientSelect.styles.js +1 -1
  323. package/cjs-bundle/components/GradientPicker/GradientPicker.js +1 -1
  324. package/cjs-bundle/components/GradientPicker/GradientPicker.styles.js +1 -1
  325. package/cjs-bundle/components/HeaderLayout/HeaderLayout.js +1 -1
  326. package/cjs-bundle/components/HeaderLayout/effects/index.js +1 -1
  327. package/cjs-bundle/components/HeaderLayout/utils.js +1 -1
  328. package/cjs-bundle/components/HelpCenter/HelpCenterIcon.js +1 -1
  329. package/cjs-bundle/components/IconMenu/index.js +1 -1
  330. package/cjs-bundle/components/Icons/AnnotationIcon.js +1 -1
  331. package/cjs-bundle/components/Icons/AttachIcon.js +1 -1
  332. package/cjs-bundle/components/Icons/DangerousIcon.js +1 -1
  333. package/cjs-bundle/components/Icons/EmojiIcon.js +1 -1
  334. package/cjs-bundle/components/Icons/RecommendationIcon.js +1 -1
  335. package/cjs-bundle/components/Icons/SendIcon.js +1 -1
  336. package/cjs-bundle/components/ImageViewer/index.js +1 -1
  337. package/cjs-bundle/components/InfiniteList/index.js +1 -1
  338. package/cjs-bundle/components/KeyboardDateTimePicker.js +1 -1
  339. package/cjs-bundle/components/LabelsCounter/LabelsCounter.js +1 -1
  340. package/cjs-bundle/components/MenuItem/index.js +1 -1
  341. package/cjs-bundle/components/MiddleTruncate/MiddleTruncate.js +1 -1
  342. package/cjs-bundle/components/MiddleTruncate/utils.js +1 -1
  343. package/cjs-bundle/components/OffsetWellChips/icons/SubjectIcon.js +1 -1
  344. package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js +1 -1
  345. package/cjs-bundle/components/OffsetWellMap/WellTooltip.js +1 -1
  346. package/cjs-bundle/components/OffsetWellMap/effects/usePreviousWells.js +1 -1
  347. package/cjs-bundle/components/OffsetWellMap/utils.js +1 -1
  348. package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  349. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.js +1 -1
  350. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/MultiSelect.js +1 -1
  351. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
  352. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/RadiusInput.js +1 -1
  353. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  354. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SingleSelect.js +1 -1
  355. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.js +1 -1
  356. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.js +1 -1
  357. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  358. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/index.js +1 -1
  359. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
  360. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/index.js +1 -1
  361. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/popupGenerator.js +1 -1
  362. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  363. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsSelect.js +1 -1
  364. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/index.js +1 -1
  365. package/cjs-bundle/components/OffsetWellPickerV2/constants.js +1 -1
  366. package/cjs-bundle/components/OffsetWellPickerV2/effects/biDirectionalFiltering.js +1 -1
  367. package/cjs-bundle/components/OffsetWellPickerV2/effects/index.js +1 -1
  368. package/cjs-bundle/components/OffsetWellPickerV2/utils/apiCalls.js +1 -1
  369. package/cjs-bundle/components/OffsetWellPickerV2/utils/index.js +1 -1
  370. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/ClearFiltersButton.js +1 -1
  371. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/MultiSelect.js +1 -1
  372. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/RadiusInput.js +1 -1
  373. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  374. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -1
  375. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/FormationsLegend.js +1 -1
  376. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
  377. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js +1 -1
  378. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/popupGenerator.js +1 -1
  379. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/utils.js +1 -1
  380. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.js +1 -1
  381. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetResultSection.js +1 -1
  382. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetTypesSection.js +1 -1
  383. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  384. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/constants.js +1 -1
  385. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/effects/useAssetsData.js +1 -1
  386. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  387. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsSelect.js +1 -1
  388. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/SubjectIndicator.js +1 -1
  389. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js +1 -1
  390. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/styles.js +1 -1
  391. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js +1 -1
  392. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/effects/biDirectionalFiltering.js +1 -1
  393. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js +1 -1
  394. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  395. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  396. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  397. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  398. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  399. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  400. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.js +1 -1
  401. package/cjs-bundle/components/OffsetWellPickerV3/effects/index.js +1 -1
  402. package/cjs-bundle/components/OffsetWellPickerV3/index.js +1 -1
  403. package/cjs-bundle/components/OffsetWellPickerV3/utils/apiCalls.js +1 -1
  404. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  405. package/cjs-bundle/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js +1 -1
  406. package/cjs-bundle/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.js +1 -1
  407. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  408. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/MultiSelect.js +1 -1
  409. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/PeriodSelect.js +1 -1
  410. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/RadiusInput.js +1 -1
  411. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/SingleSelect.js +1 -1
  412. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/WellSection.js +1 -1
  413. package/cjs-bundle/components/OffsetWellPickerV4/components/Map/WellsMap.js +1 -1
  414. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  415. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -1
  416. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetTypesSection.js +1 -1
  417. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
  418. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js +1 -1
  419. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.js +1 -1
  420. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  421. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  422. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
  423. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
  424. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.js +1 -1
  425. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/ViewWellSectionsName.js +1 -1
  426. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  427. package/cjs-bundle/components/OffsetWellPickerV4/constants.js +1 -1
  428. package/cjs-bundle/components/OffsetWellPickerV4/effects/useAdvancedWells.js +1 -1
  429. package/cjs-bundle/components/OffsetWellPickerV4/effects/useAssetsData.js +1 -1
  430. package/cjs-bundle/components/OffsetWellPickerV4/effects/useBicWells.js +1 -1
  431. package/cjs-bundle/components/OffsetWellPickerV4/effects/useCompanyMetricKey.js +1 -1
  432. package/cjs-bundle/components/OffsetWellPickerV4/effects/useFetchWells.js +1 -1
  433. package/cjs-bundle/components/OffsetWellPickerV4/effects/useFilterOptions.js +1 -1
  434. package/cjs-bundle/components/OffsetWellPickerV4/effects/useFilteredWells.js +1 -1
  435. package/cjs-bundle/components/OffsetWellPickerV4/effects/useSortedWells.js +1 -1
  436. package/cjs-bundle/components/OffsetWellPickerV4/effects/useTableColumns.js +1 -1
  437. package/cjs-bundle/components/OffsetWellPickerV4/utils/apiCalls.js +1 -1
  438. package/cjs-bundle/components/OffsetWellPickerV4/utils/index.js +1 -1
  439. package/cjs-bundle/components/OffsetWellPickerV4/utils/timePeriod.js +1 -1
  440. package/cjs-bundle/components/OffsetWellPickerV4/utils/unitSystem.js +1 -1
  441. package/cjs-bundle/components/PadModeSelect/PadModeSelect.js +1 -1
  442. package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetChip.js +1 -1
  443. package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetsListExpander.js +1 -1
  444. package/cjs-bundle/components/PadOffsetsPicker/PadOffsetsPicker.js +1 -1
  445. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  446. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  447. package/cjs-bundle/components/PadOffsetsPickerV2/useDialogState.js +1 -1
  448. package/cjs-bundle/components/ParameterCharts/AddEditTrack.js +1 -1
  449. package/cjs-bundle/components/ParameterCharts/ChartsContext.js +1 -1
  450. package/cjs-bundle/components/ParameterCharts/ParameterCharts.js +1 -1
  451. package/cjs-bundle/components/ParameterCharts/SettingsContext.js +1 -1
  452. package/cjs-bundle/components/ParameterCharts/components/ChartContainer.js +1 -1
  453. package/cjs-bundle/components/ParameterCharts/components/Charts/EmptyChart.js +1 -1
  454. package/cjs-bundle/components/ParameterCharts/components/Charts/LineChart.js +1 -1
  455. package/cjs-bundle/components/ParameterCharts/components/Charts/options.js +1 -1
  456. package/cjs-bundle/components/ParameterCharts/components/DataLoadingIndicator.js +1 -1
  457. package/cjs-bundle/components/ParameterCharts/components/SingleChannelTrackSettings.js +1 -1
  458. package/cjs-bundle/components/ParameterCharts/components/Tooltip/CursorPositioner.js +1 -1
  459. package/cjs-bundle/components/ParameterCharts/components/Tooltip/Tooltip.js +1 -1
  460. package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js +1 -1
  461. package/cjs-bundle/components/ParameterCharts/components/TraceSelect.js +1 -1
  462. package/cjs-bundle/components/ParameterCharts/components/TraceSettings.js +1 -1
  463. package/cjs-bundle/components/ParameterCharts/components/Track.js +1 -1
  464. package/cjs-bundle/components/ParameterCharts/components/TrackSettings.js +1 -1
  465. package/cjs-bundle/components/ParameterCharts/utils/dataParser.js +1 -1
  466. package/cjs-bundle/components/PinnableFilters/PinnableFilters.js +1 -1
  467. package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js +1 -1
  468. package/cjs-bundle/components/PinnableFilters/components/PinAppSwitch.js +1 -1
  469. package/cjs-bundle/components/PinnableFilters/effects/index.js +1 -1
  470. package/cjs-bundle/components/PinnableFilters/utils.js +1 -1
  471. package/cjs-bundle/components/Popover/Popover.js +1 -1
  472. package/cjs-bundle/components/Popper/Popper.js +1 -1
  473. package/cjs-bundle/components/PostInput/PostInput.js +1 -1
  474. package/cjs-bundle/components/PostPreviewDialog/index.js +1 -1
  475. package/cjs-bundle/components/PriceInput/FormattedNumber.js +1 -1
  476. package/cjs-bundle/components/PriceInput/PriceInput.js +1 -1
  477. package/cjs-bundle/components/RangeSlider/inputs/FromInput.js +1 -1
  478. package/cjs-bundle/components/RangeSlider/inputs/ToInput.js +1 -1
  479. package/cjs-bundle/components/RangeSlider/strategies/horizontal.js +1 -1
  480. package/cjs-bundle/components/RangeSlider/strategies/vertical.js +1 -1
  481. package/cjs-bundle/components/RangeSlider/utils.js +1 -1
  482. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  483. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -1
  484. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  485. package/cjs-bundle/components/Search/Search.js +1 -1
  486. package/cjs-bundle/components/Search/components/Groups.js +1 -1
  487. package/cjs-bundle/components/Search/components/InputAdornmentLeft.js +1 -1
  488. package/cjs-bundle/components/Search/components/Listbox.js +1 -1
  489. package/cjs-bundle/components/Search/components/Paper.js +1 -1
  490. package/cjs-bundle/components/Search/components/RecentSearches.js +1 -1
  491. package/cjs-bundle/components/Search/context/index.js +1 -1
  492. package/cjs-bundle/components/SearchInput/index.js +1 -1
  493. package/cjs-bundle/components/SettingEditors/DropdownEditor/index.js +1 -1
  494. package/cjs-bundle/components/SlateFormattedText/Elements/ImageElement/ImageElement.js +1 -1
  495. package/cjs-bundle/components/SlateFormattedText/Elements/VideoElement/VideoElement.js +1 -1
  496. package/cjs-bundle/components/SlateFormattedText/RenderElements.js +1 -1
  497. package/cjs-bundle/components/SlateFormattedText/SlateFormattedText.js +1 -1
  498. package/cjs-bundle/components/SlateFormattedText/utils.js +1 -1
  499. package/cjs-bundle/components/StageDesignVActual/ComparisonBar/ComparisonBar.js +1 -1
  500. package/cjs-bundle/components/StageDesignVActual/ComparisonBar/utils.js +1 -1
  501. package/cjs-bundle/components/StageDesignVActual/ComparisonHeader.js +1 -1
  502. package/cjs-bundle/components/StageDesignVActual/ComparisonRow.js +1 -1
  503. package/cjs-bundle/components/StageDesignVActual/ElementsComparison/ElementsComparison.js +1 -1
  504. package/cjs-bundle/components/StageDesignVActual/ElementsComparison/utils.js +1 -1
  505. package/cjs-bundle/components/StatusBadge/styles.js +1 -1
  506. package/cjs-bundle/components/StyledMenuItem/index.js +1 -1
  507. package/cjs-bundle/components/Table/TableCell/TableCell.js +1 -1
  508. package/cjs-bundle/components/Table/TableContainer/TableContainer.js +1 -1
  509. package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  510. package/cjs-bundle/components/Table/TableToolbar/TableToolbar.js +1 -1
  511. package/cjs-bundle/components/Tabs/Tab.js +1 -1
  512. package/cjs-bundle/components/Template/TemplatePopover/Styles.js +1 -1
  513. package/cjs-bundle/components/Template/TemplatePopover/index.js +1 -1
  514. package/cjs-bundle/components/Template/TemplateSharingDialog/ChipSelector.js +1 -1
  515. package/cjs-bundle/components/Template/TemplateSharingDialog/UsersChipSelector.js +1 -1
  516. package/cjs-bundle/components/Template/TemplateSharingDialog/index.js +1 -1
  517. package/cjs-bundle/components/TextField/effects/index.js +1 -1
  518. package/cjs-bundle/components/TextField/index.js +1 -1
  519. package/cjs-bundle/components/TextLink/index.js +1 -1
  520. package/cjs-bundle/components/TracesEditModal/TracesEditModal.js +1 -1
  521. package/cjs-bundle/components/TracesEditModal/TracesEditModalContainer.js +1 -1
  522. package/cjs-bundle/components/TruncatedText/index.js +1 -1
  523. package/cjs-bundle/components/Typography.js +1 -1
  524. package/cjs-bundle/components/UserCard/index.js +1 -1
  525. package/cjs-bundle/components/UserCardPopover.js +1 -1
  526. package/cjs-bundle/components/UserMention/index.js +1 -1
  527. package/cjs-bundle/components/UserMention/utils/index.js +1 -1
  528. package/cjs-bundle/components/VirtualizedTable/CustomizeColumnsDialog.js +1 -1
  529. package/cjs-bundle/components/VirtualizedTable/DraggableList.js +1 -1
  530. package/cjs-bundle/components/VirtualizedTable/index.js +1 -1
  531. package/cjs-bundle/components/WellSummary/ActivitySummaryChart.js +1 -1
  532. package/cjs-bundle/components/WellSummary/FracWirelineTimeChart.js +1 -1
  533. package/cjs-bundle/components/WellSummary/WellSummaryItemLabel.js +1 -1
  534. package/cjs-bundle/components/WellSummary/WellSummaryItemTitle.js +1 -1
  535. package/cjs-bundle/components/WellSummary/WellSummaryItemValue.js +1 -1
  536. package/cjs-bundle/components/WellSummary/effects/useWellSummaryData.js +1 -1
  537. package/cjs-bundle/components/WellSummary/utils.js +1 -1
  538. package/cjs-bundle/config/highcharts/highcharts-contour.js +1 -1
  539. package/cjs-bundle/config/mapbox/index.js +1 -1
  540. package/cjs-bundle/config/theme/accordionOverrides.js +1 -1
  541. package/cjs-bundle/config/theme/buttonOverrides.js +1 -1
  542. package/cjs-bundle/config/theme/checkboxOverrides.js +1 -1
  543. package/cjs-bundle/config/theme/chipOverrides.js +1 -1
  544. package/cjs-bundle/config/theme/dateTimePickerThemeOverrides.js +1 -1
  545. package/cjs-bundle/config/theme/fabOverrides.js +1 -1
  546. package/cjs-bundle/config/theme/index.js +1 -1
  547. package/cjs-bundle/config/theme/radioOverrides.js +1 -1
  548. package/cjs-bundle/config/theme/tableOverrides.js +1 -1
  549. package/cjs-bundle/config/theme/textFieldOverrides.js +1 -1
  550. package/cjs-bundle/config/theme/toggleButtonsGroupOverrides.js +1 -1
  551. package/cjs-bundle/constants/alerts.js +1 -1
  552. package/cjs-bundle/constants/appPackages.js +1 -1
  553. package/cjs-bundle/constants/apps.js +1 -1
  554. package/cjs-bundle/constants/bha.js +1 -1
  555. package/cjs-bundle/constants/completion.js +1 -1
  556. package/cjs-bundle/constants/componentsSettings.js +1 -1
  557. package/cjs-bundle/constants/corvaCompanyId.js +1 -1
  558. package/cjs-bundle/constants/drillstring.js +1 -1
  559. package/cjs-bundle/constants/feed.js +1 -1
  560. package/cjs-bundle/constants/goals.js +1 -1
  561. package/cjs-bundle/constants/notifications.js +1 -1
  562. package/cjs-bundle/constants/segment.js +1 -1
  563. package/cjs-bundle/constants/wellSummary.js +1 -1
  564. package/cjs-bundle/effects/useDevCenterApp.js +1 -1
  565. package/cjs-bundle/effects/useEscPress.js +1 -1
  566. package/cjs-bundle/effects/useResizeObserver.js +1 -1
  567. package/cjs-bundle/effects/useSharedDCStore.js +1 -1
  568. package/cjs-bundle/effects/useSignedURL.js +1 -1
  569. package/cjs-bundle/effects/useSubscriptions.js +1 -1
  570. package/cjs-bundle/hocs/withAssetEditorLockHOC.js +1 -1
  571. package/cjs-bundle/hocs/withMUIProvidersHOC.js +1 -1
  572. package/cjs-bundle/permissions/PermissionsContext.js +1 -1
  573. package/cjs-bundle/permissions/ProvidePermissions.js +1 -1
  574. package/cjs-bundle/permissions/constants/index.js +1 -1
  575. package/cjs-bundle/permissions/usePermissions.js +1 -1
  576. package/cjs-bundle/permissions/useProvidePermissions.js +1 -1
  577. package/cjs-bundle/permissions/utils.js +1 -1
  578. package/cjs-bundle/permissions/withPermissionsHOC.js +1 -1
  579. package/cjs-bundle/styles/globalStyles.js +1 -1
  580. package/cjs-bundle/styles/typography/index.js +1 -1
  581. package/cjs-bundle/utils/DrillstringUtils.js +1 -1
  582. package/cjs-bundle/utils/FluidCheckUtils.js +1 -1
  583. package/cjs-bundle/utils/StageDesignVActualUtils.js +1 -1
  584. package/cjs-bundle/utils/accuracy.js +1 -1
  585. package/cjs-bundle/utils/alerts.js +1 -1
  586. package/cjs-bundle/utils/apps.js +1 -1
  587. package/cjs-bundle/utils/audio.js +1 -1
  588. package/cjs-bundle/utils/bha.js +1 -1
  589. package/cjs-bundle/utils/casing/conversion.js +1 -1
  590. package/cjs-bundle/utils/casing/validation.js +1 -1
  591. package/cjs-bundle/utils/chartSeries.js +1 -1
  592. package/cjs-bundle/utils/completion.js +1 -1
  593. package/cjs-bundle/utils/components.js +1 -1
  594. package/cjs-bundle/utils/convert.js +1 -1
  595. package/cjs-bundle/utils/convertKeys.js +1 -1
  596. package/cjs-bundle/utils/csvExport.js +1 -1
  597. package/cjs-bundle/utils/dashboardReports.js +1 -1
  598. package/cjs-bundle/utils/delay.js +1 -1
  599. package/cjs-bundle/utils/devcenter.js +1 -1
  600. package/cjs-bundle/utils/devcenterToasts.js +1 -1
  601. package/cjs-bundle/utils/drillstring/conversion.js +1 -1
  602. package/cjs-bundle/utils/drillstring/schematic.js +1 -1
  603. package/cjs-bundle/utils/drillstring/validation.js +1 -1
  604. package/cjs-bundle/utils/env.js +1 -1
  605. package/cjs-bundle/utils/feed.js +1 -1
  606. package/cjs-bundle/utils/fileExtension.js +1 -1
  607. package/cjs-bundle/utils/formatting.js +1 -1
  608. package/cjs-bundle/utils/ga.js +1 -1
  609. package/cjs-bundle/utils/goals.js +1 -1
  610. package/cjs-bundle/utils/index.js +1 -1
  611. package/cjs-bundle/utils/jsonaDataFormatter.js +1 -1
  612. package/cjs-bundle/utils/lasParser.js +1 -1
  613. package/cjs-bundle/utils/localStorage.js +1 -1
  614. package/cjs-bundle/utils/main.js +1 -1
  615. package/cjs-bundle/utils/mapUnits.js +1 -1
  616. package/cjs-bundle/utils/mapbox.js +1 -1
  617. package/cjs-bundle/utils/metrics/index.js +1 -1
  618. package/cjs-bundle/utils/metrics/metricsConfig.js +1 -1
  619. package/cjs-bundle/utils/metrics/utils.js +1 -1
  620. package/cjs-bundle/utils/mobileDetect.js +1 -1
  621. package/cjs-bundle/utils/nativeMessages.js +1 -1
  622. package/cjs-bundle/utils/notificationToasts.js +1 -1
  623. package/cjs-bundle/utils/notifications.js +1 -1
  624. package/cjs-bundle/utils/permissions.js +1 -1
  625. package/cjs-bundle/utils/reports.js +1 -1
  626. package/cjs-bundle/utils/resolveWellHubSlug.js +1 -1
  627. package/cjs-bundle/utils/sharedDCStore.js +1 -1
  628. package/cjs-bundle/utils/themeVariables.js +1 -1
  629. package/cjs-bundle/utils/time.js +1 -1
  630. package/cjs-bundle/utils/torqueAndHookloadUtils.js +1 -1
  631. package/clients/api/apiCore.js +1 -1
  632. package/clients/api/httpMessages.js +1 -1
  633. package/clients/clientStorage/core.js +1 -1
  634. package/clients/clientStorage/index.js +1 -1
  635. package/clients/constants.js +1 -1
  636. package/clients/index.js +1 -1
  637. package/clients/jsonApi/index.js +1 -1
  638. package/clients/subscriptions.js +1 -1
  639. package/clients/utils.js +1 -1
  640. package/components/AddComment/Popover.js +1 -1
  641. package/components/AddComment/Popup.js +1 -1
  642. package/components/AddComment/components/Content.js +1 -1
  643. package/components/AdvancedSlider/AdvancedSlider.js +1 -1
  644. package/components/AdvancedSlider/Handle.js +1 -1
  645. package/components/AnchorsList/AnchorsList.js +1 -1
  646. package/components/Annotations/AnnotationsContext.js +1 -1
  647. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  648. package/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
  649. package/components/Annotations/components/AnnotationsList/components/AnnotationComments/index.js +1 -1
  650. package/components/Annotations/components/AnnotationsList/components/AnnotationInput/StyledSelect.js +1 -1
  651. package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js +1 -1
  652. package/components/Annotations/components/AnnotationsList/index.js +1 -1
  653. package/components/Annotations/components/LastAnnotation/index.js +1 -1
  654. package/components/Annotations/constants.js +1 -1
  655. package/components/AppIcon/assets/DrillingAppIcon.js +1 -1
  656. package/components/AppIcon/utils.js +1 -1
  657. package/components/AppVersionsSelect/AppVersionsSelect.d.ts.map +1 -1
  658. package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
  659. package/components/AppVersionsSelect/effects/index.js +1 -1
  660. package/components/AssetEditor/AssetEditorAutocomplete.d.ts +3 -3
  661. package/components/AssetEditor/AssetEditorAutocomplete.js +1 -1
  662. package/components/AssetEditor/SingleAssetEditor.d.ts +2 -2
  663. package/components/AssetEditor/SingleAssetEditor.js +1 -1
  664. package/components/AssetEditor/constants.js +1 -1
  665. package/components/AssetEditor/effects/index.d.ts +1 -1
  666. package/components/AssetEditor/effects/index.js +1 -1
  667. package/components/AssetEditor/index.js +1 -1
  668. package/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
  669. package/components/AssetEditorV2/components/PrimaryAssetSelect.js +1 -1
  670. package/components/AssetEditorV2/components/PrimaryAssetSelectV2.js +1 -1
  671. package/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
  672. package/components/AssetEditorV2/components/SelectItem.js +1 -1
  673. package/components/AssetEditorV2/constants.js +1 -1
  674. package/components/AssetEditorV2/effects/index.js +1 -1
  675. package/components/AssetEditorV2/effects/usePrimaryAssetSelectData.d.ts.map +1 -1
  676. package/components/AssetEditorV2/effects/usePrimaryAssetSelectData.js +1 -1
  677. package/components/AssetEditorV2/index.d.ts +2 -2
  678. package/components/AssetEditorV2/index.js +1 -1
  679. package/components/AssetEditorV2/utils/index.d.ts +2 -2
  680. package/components/AssetEditorV2/utils/index.js +1 -1
  681. package/components/AssetNameLabel/AssetNameLabel.js +1 -1
  682. package/components/Attachment/index.js +1 -1
  683. package/components/Autocomplete/Autocomplete.js +1 -1
  684. package/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
  685. package/components/BICOffsetPickerDialog/components/Map/index.js +1 -1
  686. package/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js +1 -1
  687. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetResultSection.js +1 -1
  688. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetTypesSection.js +1 -1
  689. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  690. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/constants.js +1 -1
  691. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/effects/useAssetsData.js +1 -1
  692. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/utils/apiCalls.js +1 -1
  693. package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js +1 -1
  694. package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +1 -1
  695. package/components/BICOffsetPickerDialog/components/WellSection/WellListItem.js +1 -1
  696. package/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
  697. package/components/BICOffsetPickerDialog/constants.js +1 -1
  698. package/components/BICOffsetPickerDialog/effects/index.js +1 -1
  699. package/components/BICOffsetPickerDialog/index.js +1 -1
  700. package/components/BICOffsetPickerDialog/utils/apiCalls.js +1 -1
  701. package/components/Breadcrumbs/index.js +1 -1
  702. package/components/Casing/CasingComponentIcon.js +1 -1
  703. package/components/Casing/CasingTable/CasingComponent.js +1 -1
  704. package/components/Casing/CasingTable/index.js +1 -1
  705. package/components/Casing/CasingTableV2/CasingTableV2.js +1 -1
  706. package/components/Casing/CasingTableV2/components/CasingJoints/Browser.js +1 -1
  707. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  708. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  709. package/components/Casing/CasingTableV2/components/DrillPipe/Browser.js +1 -1
  710. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  711. package/components/Casing/CasingTableV2/components/EditComponentDialog.js +1 -1
  712. package/components/Casing/CasingTableV2/components/Header.js +1 -1
  713. package/components/Casing/CasingTableV2/components/SortableComponent.js +1 -1
  714. package/components/Casing/CasingTableV2/components/SortableComponents.js +1 -1
  715. package/components/Casing/CasingTableV2/components/constants.js +1 -1
  716. package/components/Casing/CasingTile/CasingTile.js +1 -1
  717. package/components/Casing/CasingTile/style.js +1 -1
  718. package/components/Casing/CasingTileIcon.js +1 -1
  719. package/components/Chart/ChartWrapperContext.js +1 -1
  720. package/components/Chart/components/AxisDropdown.js +1 -1
  721. package/components/Chart/components/AxisOverlay.js +1 -1
  722. package/components/Chart/components/ChartButton.js +1 -1
  723. package/components/Chart/components/ChartButtons.js +1 -1
  724. package/components/Chart/components/ChartSelect.js +1 -1
  725. package/components/Chart/components/ChartWrapper.js +1 -1
  726. package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  727. package/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  728. package/components/Chart/components/buttons/HideAxesButton.js +1 -1
  729. package/components/Chart/components/buttons/PanButton.js +1 -1
  730. package/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  731. package/components/Chart/components/buttons/ZoomInButton.js +1 -1
  732. package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  733. package/components/Chart/constants.js +1 -1
  734. package/components/Chart/effects/useChartModifier.js +1 -1
  735. package/components/Chart/effects/useChartTypeSwitch.js +1 -1
  736. package/components/Chart/effects/useHideAxes.js +1 -1
  737. package/components/Chart/effects/useKeyboardControl.js +1 -1
  738. package/components/Chart/effects/useZoom.js +1 -1
  739. package/components/Chart/formations.js +1 -1
  740. package/components/Chart/utils.js +1 -1
  741. package/components/ChartActionsList/ChartActionsList.js +1 -1
  742. package/components/ChartActionsList/icons/GoLive.js +1 -1
  743. package/components/ChartActionsList/icons/LeftArrow.js +1 -1
  744. package/components/ChartActionsList/icons/RightArrow.js +1 -1
  745. package/components/ChartActionsList/icons/ZoomIn.js +1 -1
  746. package/components/ChartActionsList/icons/ZoomOut.js +1 -1
  747. package/components/Checkbox/index.js +1 -1
  748. package/components/CollapsableSidebar.js +1 -1
  749. package/components/CollapsibleContent.js +1 -1
  750. package/components/ColorPicker/PaletteChromePicker/ColorSquare/ColorSquare.js +1 -1
  751. package/components/ColorPicker/PaletteChromePicker/Palette/Palette.js +1 -1
  752. package/components/ColorPicker/PaletteChromePicker/Palette/PaletteConstants.js +1 -1
  753. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  754. package/components/Comment/index.js +1 -1
  755. package/components/CommentInput/index.js +1 -1
  756. package/components/CommentLoader.js +1 -1
  757. package/components/CommentWrapper.js +1 -1
  758. package/components/CommentsInfo/index.js +1 -1
  759. package/components/ConfirmationDialog.js +1 -1
  760. package/components/ContextMenuItem/index.js +1 -1
  761. package/components/CopyToClipboard/CopyToClipboard.js +1 -1
  762. package/components/CustomSelect/index.js +1 -1
  763. package/components/DevCenter/AppContext.js +1 -1
  764. package/components/DevCenter/AppHeader/AppHeader.js +1 -1
  765. package/components/DevCenter/AppHeader/AppHeaderStyles.js +1 -1
  766. package/components/DevCenter/AppHeader/PadMode.js +1 -1
  767. package/components/DevCenter/AppHeader/utils.js +1 -1
  768. package/components/DevCenter/AppsDataProvider/AppsDataProvider.js +1 -1
  769. package/components/DevCenter/AppsDataProvider/effects/constants.js +1 -1
  770. package/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
  771. package/components/DevCenter/AppsDataProvider/effects/useAppsData.js +1 -1
  772. package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  773. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  774. package/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js +1 -1
  775. package/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.js +1 -1
  776. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.d.ts +1 -1
  777. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  778. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts.map +1 -1
  779. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  780. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
  781. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js +1 -1
  782. package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js +1 -1
  783. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  784. package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js +1 -1
  785. package/components/DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js +1 -1
  786. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  787. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
  788. package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js +1 -1
  789. package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js +1 -1
  790. package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsList.js +1 -1
  791. package/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js +1 -1
  792. package/components/DevCenter/DevCenterAppContainer/effects/useAppSettings.js +1 -1
  793. package/components/DevCenter/DevCenterAppContainer/utils.js +1 -1
  794. package/components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js +1 -1
  795. package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js +1 -1
  796. package/components/DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js +1 -1
  797. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
  798. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  799. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  800. package/components/DevCenter/IsolatedDevCenterAppContainer/constants.js +1 -1
  801. package/components/DevCenter/IsolatedDevCenterAppContainer/effects/useXProps.js +1 -1
  802. package/components/DevCenter/IsolatedDevCenterAppContainer/utils/replaceUndefinedValuesWithNull.js +1 -1
  803. package/components/DevCenter/NavigationBar/NavigationBar.js +1 -1
  804. package/components/DevCenter/SideBar/SideBar.js +1 -1
  805. package/components/DisabledSettingsMessage/DisabledSettingsMessage.js +1 -1
  806. package/components/DocumentViewer/DocumentViewer.js +1 -1
  807. package/components/DocumentViewer/styles.js +1 -1
  808. package/components/Drillstring/BHACasingEmptyView/BHACasingEmptyView.js +1 -1
  809. package/components/Drillstring/BHAComponentDetail/constants.js +1 -1
  810. package/components/Drillstring/BHAComponentDetail/index.js +1 -1
  811. package/components/Drillstring/BHAComponentIcon.js +1 -1
  812. package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js +1 -1
  813. package/components/Drillstring/BHAComponentsTable/components/Agitator/Browser.js +1 -1
  814. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  815. package/components/Drillstring/BHAComponentsTable/components/Bit/Browser.js +1 -1
  816. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  817. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  818. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Browser.js +1 -1
  819. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  820. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Browser.js +1 -1
  821. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  822. package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js +1 -1
  823. package/components/Drillstring/BHAComponentsTable/components/Header.js +1 -1
  824. package/components/Drillstring/BHAComponentsTable/components/Jar/Browser.js +1 -1
  825. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  826. package/components/Drillstring/BHAComponentsTable/components/Lwd/Browser.js +1 -1
  827. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  828. package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js +1 -1
  829. package/components/Drillstring/BHAComponentsTable/components/Mwd/Browser.js +1 -1
  830. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  831. package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js +1 -1
  832. package/components/Drillstring/BHAComponentsTable/components/Pdm/Browser.js +1 -1
  833. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  834. package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js +1 -1
  835. package/components/Drillstring/BHAComponentsTable/components/Rss/Browser.js +1 -1
  836. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  837. package/components/Drillstring/BHAComponentsTable/components/SortableComponent.js +1 -1
  838. package/components/Drillstring/BHAComponentsTable/components/SortableComponents.js +1 -1
  839. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Browser.js +1 -1
  840. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  841. package/components/Drillstring/BHAComponentsTable/components/Sub/Browser.js +1 -1
  842. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  843. package/components/Drillstring/BHAComponentsTable/components/Suggestions/AutoCompleteDialog.js +1 -1
  844. package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js +1 -1
  845. package/components/Drillstring/BHAComponentsTable/components/Ur/Browser.js +1 -1
  846. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  847. package/components/Drillstring/BHAComponentsTable/components/constants.js +1 -1
  848. package/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.js +1 -1
  849. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  850. package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js +1 -1
  851. package/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js +1 -1
  852. package/components/Drillstring/BHAComponentsTable/components/shared/InputText.js +1 -1
  853. package/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js +1 -1
  854. package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js +1 -1
  855. package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js +1 -1
  856. package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js +1 -1
  857. package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js +1 -1
  858. package/components/Drillstring/BHAComponentsTable/components/sharedStyles.js +1 -1
  859. package/components/Drillstring/BHAComponentsTable/components/utils/calculation.js +1 -1
  860. package/components/Drillstring/BHAList/BHAList.js +1 -1
  861. package/components/Drillstring/BHASchematic.js +1 -1
  862. package/components/Drillstring/BHATable/BHAComponent.js +1 -1
  863. package/components/Drillstring/BHATable/index.js +1 -1
  864. package/components/Drillstring/BHATile/BHATile.js +1 -1
  865. package/components/Drillstring/BHATileIcon.js +1 -1
  866. package/components/Drillstring/BhaIndicator/BhaIndicator.js +1 -1
  867. package/components/Drillstring/DrillstringDetail/DrillstringDetail.js +1 -1
  868. package/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  869. package/components/EditableItem/EditableItemWithBadge/index.js +1 -1
  870. package/components/EmbeddedApp/DevCenterEmbeddedApp.js +1 -1
  871. package/components/EmbeddedApp/EmbeddedApp.js +1 -1
  872. package/components/EmbeddedApp/components/AppInfo.js +1 -1
  873. package/components/EmojiIconButton.js +1 -1
  874. package/components/EmptyState/EmptyState.d.ts +3 -0
  875. package/components/EmptyState/EmptyState.d.ts.map +1 -1
  876. package/components/EmptyState/constants.d.ts +3 -0
  877. package/components/EmptyState/constants.d.ts.map +1 -1
  878. package/components/EmptyState/constants.js +1 -1
  879. package/components/EmptyState/images/index.js +1 -1
  880. package/components/EmptyView/EmptyAppView/EmptyAppView.d.ts +6 -2
  881. package/components/EmptyView/EmptyAppView/EmptyAppView.d.ts.map +1 -1
  882. package/components/EmptyView/EmptyAppView/EmptyAppView.js +1 -1
  883. package/components/EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js +1 -1
  884. package/components/EmptyView/EmptyView.js +1 -1
  885. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
  886. package/components/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  887. package/components/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  888. package/components/ErrorBoundary/ErrorBoundary.js +1 -1
  889. package/components/FailedFileUploading.js +1 -1
  890. package/components/FeedItem/FeedItem.js +1 -1
  891. package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -1
  892. package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -1
  893. package/components/FeedItem/components/Actions.js +1 -1
  894. package/components/FeedItem/components/AvatarIcon.js +1 -1
  895. package/components/FeedItem/components/Content.js +1 -1
  896. package/components/FeedItem/components/CreatedAt.js +1 -1
  897. package/components/FeedItem/components/FeedComments.js +1 -1
  898. package/components/FeedItem/components/Icon.js +1 -1
  899. package/components/FeedItem/components/LessonsLearnedLeafIcon.js +1 -1
  900. package/components/FeedItem/components/Reactions.js +1 -1
  901. package/components/FeedItem/components/RigAndWell.js +1 -1
  902. package/components/FeedItem/components/TypeAndAssetTitle.js +1 -1
  903. package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js +1 -1
  904. package/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.js +1 -1
  905. package/components/FeedItem/editModals/LessonsLearnedEdit/LessonsLearnedEdit.js +1 -1
  906. package/components/FeedItem/editModals/NptLessonsCommentEdit/NptLessonsCommentEdit.js +1 -1
  907. package/components/FeedItem/editModals/PCCommentEdit/PCCommentEdit.js +1 -1
  908. package/components/FeedItem/feedItemTypes/AlertFeedItem.js +1 -1
  909. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/helpers.js +1 -1
  910. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js +1 -1
  911. package/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js +1 -1
  912. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaNumber.js +1 -1
  913. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaSchematic.js +1 -1
  914. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js +1 -1
  915. package/components/FeedItem/feedItemTypes/BhaFeedItem/components/NoData.js +1 -1
  916. package/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js +1 -1
  917. package/components/FeedItem/feedItemTypes/CompletionDocumentFeedItem.js +1 -1
  918. package/components/FeedItem/feedItemTypes/CompletionNptFeedItem.js +1 -1
  919. package/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js +1 -1
  920. package/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js +1 -1
  921. package/components/FeedItem/feedItemTypes/DepthCommentFeedItem.js +1 -1
  922. package/components/FeedItem/feedItemTypes/DocumentFeedItem.js +1 -1
  923. package/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.js +1 -1
  924. package/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js +1 -1
  925. package/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js +1 -1
  926. package/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js +1 -1
  927. package/components/FeedItem/feedItemTypes/DvDCommentFeedItem.js +1 -1
  928. package/components/FeedItem/feedItemTypes/FluidReportFeedItem.js +1 -1
  929. package/components/FeedItem/feedItemTypes/GeosteeringFeedItem.js +1 -1
  930. package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js +1 -1
  931. package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js +1 -1
  932. package/components/FeedItem/feedItemTypes/NptFeedItem.js +1 -1
  933. package/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js +1 -1
  934. package/components/FeedItem/feedItemTypes/PCCommentFeedItem.js +1 -1
  935. package/components/FeedItem/feedItemTypes/PostFeedItem.js +1 -1
  936. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/api.js +1 -1
  937. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/NoData.js +1 -1
  938. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Predictions.js +1 -1
  939. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/PredictionsItem.js +1 -1
  940. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/Stages.js +1 -1
  941. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/utils.js +1 -1
  942. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/index.js +1 -1
  943. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/api.js +1 -1
  944. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +1 -1
  945. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js +1 -1
  946. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.js +1 -1
  947. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js +1 -1
  948. package/components/FeedItem/feedItemTypes/TracesMemoFeedItem.js +1 -1
  949. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js +1 -1
  950. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/VerticalSectionAzimuth.js +1 -1
  951. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/constants.js +1 -1
  952. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.js +1 -1
  953. package/components/FilePreview/index.js +1 -1
  954. package/components/FileTypeIcon.js +1 -1
  955. package/components/FileUploadIconButton.js +1 -1
  956. package/components/FilesLoader/Icons/CSVFileIcon.js +1 -1
  957. package/components/FilesLoader/Icons/DocFileIcon.js +1 -1
  958. package/components/FilesLoader/Icons/EDMFileIcon.js +1 -1
  959. package/components/FilesLoader/Icons/ExelFileIcon.js +1 -1
  960. package/components/FilesLoader/Icons/FileIcon.js +1 -1
  961. package/components/FilesLoader/Icons/IconRefresh.js +1 -1
  962. package/components/FilesLoader/Icons/IconSuccess.js +1 -1
  963. package/components/FilesLoader/Icons/IconWarning.js +1 -1
  964. package/components/FilesLoader/Icons/ImageFileIcon.js +1 -1
  965. package/components/FilesLoader/Icons/PdfFileIcon.js +1 -1
  966. package/components/FilesLoader/Icons/UnknownFileIcon.js +1 -1
  967. package/components/FilesLoader/Icons/UploadIcon.js +1 -1
  968. package/components/FilesLoader/useStyles.js +1 -1
  969. package/components/FolderMenuItem/components/ClosedFolderIcon.js +1 -1
  970. package/components/FolderMenuItem/components/FolderIcon.js +1 -1
  971. package/components/FolderMenuItem/components/OpenFolderIcon.js +1 -1
  972. package/components/FolderMenuItem/index.js +1 -1
  973. package/components/FolderMenuItemWithLinks/index.js +1 -1
  974. package/components/GoogleDocsViewer/index.js +1 -1
  975. package/components/GradientManager/GradientManager.styles.js +1 -1
  976. package/components/GradientManager/GradientSelect.styles.js +1 -1
  977. package/components/GradientManager/__tests__/pageHelpers.d.ts.map +1 -1
  978. package/components/GradientPicker/GradientPicker.d.ts +2 -2
  979. package/components/GradientPicker/GradientPicker.d.ts.map +1 -1
  980. package/components/GradientPicker/GradientPicker.js +1 -1
  981. package/components/GradientPicker/GradientPicker.styles.d.ts.map +1 -1
  982. package/components/GradientPicker/GradientPicker.styles.js +1 -1
  983. package/components/GradientPicker/__tests__/pageHelpers.d.ts.map +1 -1
  984. package/components/HeaderLayout/HeaderLayout.js +1 -1
  985. package/components/HeaderLayout/constants.js +1 -1
  986. package/components/HeaderLayout/effects/index.js +1 -1
  987. package/components/HeaderLayout/utils.js +1 -1
  988. package/components/HelpCenter/HelpCenterIcon.js +1 -1
  989. package/components/IconMenu/index.js +1 -1
  990. package/components/Icons/AnnotationIcon.js +1 -1
  991. package/components/Icons/AttachIcon.js +1 -1
  992. package/components/Icons/DangerousIcon.js +1 -1
  993. package/components/Icons/EmojiIcon.js +1 -1
  994. package/components/Icons/RecommendationIcon.js +1 -1
  995. package/components/Icons/SendIcon.js +1 -1
  996. package/components/ImageViewer/index.js +1 -1
  997. package/components/InfiniteList/index.js +1 -1
  998. package/components/KeyboardDateTimePicker.js +1 -1
  999. package/components/LabelsCounter/LabelsCounter.js +1 -1
  1000. package/components/MenuItem/index.js +1 -1
  1001. package/components/MiddleTruncate/MiddleTruncate.js +1 -1
  1002. package/components/MiddleTruncate/utils.js +1 -1
  1003. package/components/OffsetWellChips/icons/SubjectIcon.js +1 -1
  1004. package/components/OffsetWellMap/OffsetWellMap.js +1 -1
  1005. package/components/OffsetWellMap/WellTooltip.js +1 -1
  1006. package/components/OffsetWellMap/effects/usePreviousWells.js +1 -1
  1007. package/components/OffsetWellMap/utils.js +1 -1
  1008. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  1009. package/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.js +1 -1
  1010. package/components/OffsetWellPickerV2/components/Filter/MultiSelect.js +1 -1
  1011. package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
  1012. package/components/OffsetWellPickerV2/components/Filter/RadiusInput.js +1 -1
  1013. package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  1014. package/components/OffsetWellPickerV2/components/Filter/SingleSelect.js +1 -1
  1015. package/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.js +1 -1
  1016. package/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.js +1 -1
  1017. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  1018. package/components/OffsetWellPickerV2/components/Filter/index.js +1 -1
  1019. package/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
  1020. package/components/OffsetWellPickerV2/components/Map/index.js +1 -1
  1021. package/components/OffsetWellPickerV2/components/Map/popupGenerator.js +1 -1
  1022. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  1023. package/components/OffsetWellPickerV2/components/Table/MetricsSelect.js +1 -1
  1024. package/components/OffsetWellPickerV2/components/Table/index.js +1 -1
  1025. package/components/OffsetWellPickerV2/constants.js +1 -1
  1026. package/components/OffsetWellPickerV2/effects/biDirectionalFiltering.js +1 -1
  1027. package/components/OffsetWellPickerV2/effects/index.js +1 -1
  1028. package/components/OffsetWellPickerV2/utils/apiCalls.js +1 -1
  1029. package/components/OffsetWellPickerV2/utils/index.js +1 -1
  1030. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/ClearFiltersButton.js +1 -1
  1031. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/MultiSelect.js +1 -1
  1032. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/RadiusInput.js +1 -1
  1033. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  1034. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -1
  1035. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/FormationsLegend.js +1 -1
  1036. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
  1037. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js +1 -1
  1038. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/popupGenerator.js +1 -1
  1039. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/utils.js +1 -1
  1040. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.js +1 -1
  1041. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetResultSection.js +1 -1
  1042. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetTypesSection.js +1 -1
  1043. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  1044. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/constants.js +1 -1
  1045. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/effects/useAssetsData.js +1 -1
  1046. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  1047. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsSelect.js +1 -1
  1048. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/SubjectIndicator.js +1 -1
  1049. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js +1 -1
  1050. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/styles.js +1 -1
  1051. package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js +1 -1
  1052. package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/biDirectionalFiltering.js +1 -1
  1053. package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js +1 -1
  1054. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  1055. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  1056. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  1057. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  1058. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  1059. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  1060. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.js +1 -1
  1061. package/components/OffsetWellPickerV3/constants.js +1 -1
  1062. package/components/OffsetWellPickerV3/effects/index.js +1 -1
  1063. package/components/OffsetWellPickerV3/index.js +1 -1
  1064. package/components/OffsetWellPickerV3/utils/apiCalls.js +1 -1
  1065. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  1066. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js +1 -1
  1067. package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.js +1 -1
  1068. package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  1069. package/components/OffsetWellPickerV4/components/Filter/MultiSelect.js +1 -1
  1070. package/components/OffsetWellPickerV4/components/Filter/PeriodSelect.js +1 -1
  1071. package/components/OffsetWellPickerV4/components/Filter/RadiusInput.js +1 -1
  1072. package/components/OffsetWellPickerV4/components/Filter/SingleSelect.js +1 -1
  1073. package/components/OffsetWellPickerV4/components/Filter/WellSection.js +1 -1
  1074. package/components/OffsetWellPickerV4/components/Map/WellsMap.js +1 -1
  1075. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  1076. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -1
  1077. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetTypesSection.js +1 -1
  1078. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
  1079. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js +1 -1
  1080. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.js +1 -1
  1081. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  1082. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  1083. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
  1084. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
  1085. package/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.js +1 -1
  1086. package/components/OffsetWellPickerV4/components/OffsetWellsTable/ViewWellSectionsName.js +1 -1
  1087. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  1088. package/components/OffsetWellPickerV4/constants.js +1 -1
  1089. package/components/OffsetWellPickerV4/effects/useAdvancedWells.js +1 -1
  1090. package/components/OffsetWellPickerV4/effects/useAssetsData.js +1 -1
  1091. package/components/OffsetWellPickerV4/effects/useBicWells.js +1 -1
  1092. package/components/OffsetWellPickerV4/effects/useCompanyMetricKey.js +1 -1
  1093. package/components/OffsetWellPickerV4/effects/useFetchWells.js +1 -1
  1094. package/components/OffsetWellPickerV4/effects/useFilterOptions.js +1 -1
  1095. package/components/OffsetWellPickerV4/effects/useFilteredWells.js +1 -1
  1096. package/components/OffsetWellPickerV4/effects/useSortedWells.js +1 -1
  1097. package/components/OffsetWellPickerV4/effects/useTableColumns.js +1 -1
  1098. package/components/OffsetWellPickerV4/utils/apiCalls.js +1 -1
  1099. package/components/OffsetWellPickerV4/utils/index.js +1 -1
  1100. package/components/OffsetWellPickerV4/utils/timePeriod.js +1 -1
  1101. package/components/OffsetWellPickerV4/utils/unitSystem.js +1 -1
  1102. package/components/PadModeSelect/PadModeSelect.js +1 -1
  1103. package/components/PadOffsetsPicker/OffsetAssetChip.js +1 -1
  1104. package/components/PadOffsetsPicker/OffsetAssetsListExpander.js +1 -1
  1105. package/components/PadOffsetsPicker/PadOffsetsPicker.js +1 -1
  1106. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  1107. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  1108. package/components/PadOffsetsPickerV2/useDialogState.js +1 -1
  1109. package/components/ParameterCharts/AddEditTrack.js +1 -1
  1110. package/components/ParameterCharts/ChartsContext.js +1 -1
  1111. package/components/ParameterCharts/ParameterCharts.js +1 -1
  1112. package/components/ParameterCharts/SettingsContext.js +1 -1
  1113. package/components/ParameterCharts/components/ChartContainer.js +1 -1
  1114. package/components/ParameterCharts/components/Charts/EmptyChart.js +1 -1
  1115. package/components/ParameterCharts/components/Charts/LineChart.js +1 -1
  1116. package/components/ParameterCharts/components/Charts/options.js +1 -1
  1117. package/components/ParameterCharts/components/DataLoadingIndicator.js +1 -1
  1118. package/components/ParameterCharts/components/SingleChannelTrackSettings.js +1 -1
  1119. package/components/ParameterCharts/components/Tooltip/CursorPositioner.js +1 -1
  1120. package/components/ParameterCharts/components/Tooltip/Tooltip.js +1 -1
  1121. package/components/ParameterCharts/components/TraceHeader.js +1 -1
  1122. package/components/ParameterCharts/components/TraceSelect.js +1 -1
  1123. package/components/ParameterCharts/components/TraceSettings.js +1 -1
  1124. package/components/ParameterCharts/components/Track.js +1 -1
  1125. package/components/ParameterCharts/components/TrackSettings.js +1 -1
  1126. package/components/ParameterCharts/constants.js +1 -1
  1127. package/components/ParameterCharts/utils/dataParser.js +1 -1
  1128. package/components/PinnableFilters/PinnableFilters.js +1 -1
  1129. package/components/PinnableFilters/components/FiltersToggler.js +1 -1
  1130. package/components/PinnableFilters/components/PinAppSwitch.js +1 -1
  1131. package/components/PinnableFilters/constants.js +1 -1
  1132. package/components/PinnableFilters/effects/index.js +1 -1
  1133. package/components/PinnableFilters/utils.js +1 -1
  1134. package/components/Popover/Popover.js +1 -1
  1135. package/components/Popper/Popper.js +1 -1
  1136. package/components/PostInput/PostInput.js +1 -1
  1137. package/components/PostPreviewDialog/index.js +1 -1
  1138. package/components/PriceInput/FormattedNumber.js +1 -1
  1139. package/components/PriceInput/PriceInput.js +1 -1
  1140. package/components/RangeSlider/constants.js +1 -1
  1141. package/components/RangeSlider/inputs/FromInput.js +1 -1
  1142. package/components/RangeSlider/inputs/ToInput.js +1 -1
  1143. package/components/RangeSlider/strategies/horizontal.js +1 -1
  1144. package/components/RangeSlider/strategies/vertical.js +1 -1
  1145. package/components/RangeSlider/utils.js +1 -1
  1146. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.d.ts.map +1 -1
  1147. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  1148. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -1
  1149. package/components/RealTimeValuesSidebar/SidebarFooter.d.ts.map +1 -1
  1150. package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  1151. package/components/Search/Search.d.ts +5 -6
  1152. package/components/Search/Search.d.ts.map +1 -1
  1153. package/components/Search/Search.js +1 -1
  1154. package/components/Search/__tests__/Search.test.d.ts +1 -4
  1155. package/components/Search/__tests__/Search.test.d.ts.map +1 -1
  1156. package/components/Search/components/Groups.js +1 -1
  1157. package/components/Search/components/InputAdornmentLeft.js +1 -1
  1158. package/components/Search/components/Listbox.d.ts +7 -1
  1159. package/components/Search/components/Listbox.js +1 -1
  1160. package/components/Search/components/Paper.js +1 -1
  1161. package/components/Search/components/RecentSearches.js +1 -1
  1162. package/components/Search/context/index.d.ts.map +1 -1
  1163. package/components/Search/context/index.js +1 -1
  1164. package/components/SearchInput/index.js +1 -1
  1165. package/components/SettingEditors/DropdownEditor/index.js +1 -1
  1166. package/components/SlateFormattedText/Constants.js +1 -1
  1167. package/components/SlateFormattedText/Elements/ImageElement/ImageElement.js +1 -1
  1168. package/components/SlateFormattedText/Elements/VideoElement/VideoElement.js +1 -1
  1169. package/components/SlateFormattedText/RenderElements.js +1 -1
  1170. package/components/SlateFormattedText/SlateFormattedText.js +1 -1
  1171. package/components/SlateFormattedText/utils.js +1 -1
  1172. package/components/StageDesignVActual/ComparisonBar/ComparisonBar.js +1 -1
  1173. package/components/StageDesignVActual/ComparisonBar/utils.js +1 -1
  1174. package/components/StageDesignVActual/ComparisonHeader.js +1 -1
  1175. package/components/StageDesignVActual/ComparisonRow.js +1 -1
  1176. package/components/StageDesignVActual/ElementsComparison/ElementsComparison.js +1 -1
  1177. package/components/StageDesignVActual/ElementsComparison/utils.js +1 -1
  1178. package/components/StatusBadge/styles.js +1 -1
  1179. package/components/Stepper/constants.js +1 -1
  1180. package/components/StyledMenuItem/index.js +1 -1
  1181. package/components/Table/TableCell/TableCell.js +1 -1
  1182. package/components/Table/TableContainer/TableContainer.js +1 -1
  1183. package/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  1184. package/components/Table/TableToolbar/TableToolbar.js +1 -1
  1185. package/components/Tabs/Tab.js +1 -1
  1186. package/components/Template/TemplatePopover/Styles.js +1 -1
  1187. package/components/Template/TemplatePopover/index.js +1 -1
  1188. package/components/Template/TemplateSharingDialog/ChipSelector.js +1 -1
  1189. package/components/Template/TemplateSharingDialog/UsersChipSelector.js +1 -1
  1190. package/components/Template/TemplateSharingDialog/index.js +1 -1
  1191. package/components/TextField/effects/index.js +1 -1
  1192. package/components/TextField/index.js +1 -1
  1193. package/components/TextLink/index.js +1 -1
  1194. package/components/TracesEditModal/TracesEditModal.js +1 -1
  1195. package/components/TracesEditModal/TracesEditModalContainer.js +1 -1
  1196. package/components/TruncatedText/index.js +1 -1
  1197. package/components/Typography.js +1 -1
  1198. package/components/UserCard/index.js +1 -1
  1199. package/components/UserCardPopover.js +1 -1
  1200. package/components/UserMention/constants.js +1 -1
  1201. package/components/UserMention/index.js +1 -1
  1202. package/components/UserMention/utils/index.js +1 -1
  1203. package/components/VirtualizedTable/CustomizeColumnsDialog.js +1 -1
  1204. package/components/VirtualizedTable/DraggableList.js +1 -1
  1205. package/components/VirtualizedTable/index.js +1 -1
  1206. package/components/WellSummary/ActivitySummaryChart.js +1 -1
  1207. package/components/WellSummary/FracWirelineTimeChart.js +1 -1
  1208. package/components/WellSummary/WellSummaryItemLabel.js +1 -1
  1209. package/components/WellSummary/WellSummaryItemTitle.js +1 -1
  1210. package/components/WellSummary/WellSummaryItemValue.js +1 -1
  1211. package/components/WellSummary/effects/useWellSummaryData.js +1 -1
  1212. package/components/WellSummary/utils.js +1 -1
  1213. package/config/highcharts/highcharts-contour.js +1 -1
  1214. package/config/mapbox/index.js +1 -1
  1215. package/config/theme/accordionOverrides.js +1 -1
  1216. package/config/theme/buttonOverrides.js +1 -1
  1217. package/config/theme/checkboxOverrides.js +1 -1
  1218. package/config/theme/chipOverrides.js +1 -1
  1219. package/config/theme/dateTimePickerThemeOverrides.js +1 -1
  1220. package/config/theme/fabOverrides.js +1 -1
  1221. package/config/theme/index.js +1 -1
  1222. package/config/theme/radioOverrides.js +1 -1
  1223. package/config/theme/tableOverrides.js +1 -1
  1224. package/config/theme/textFieldOverrides.js +1 -1
  1225. package/config/theme/toggleButtonsGroupOverrides.js +1 -1
  1226. package/constants/accuracy.js +1 -1
  1227. package/constants/alerts.js +1 -1
  1228. package/constants/appPackages.js +1 -1
  1229. package/constants/apps.js +1 -1
  1230. package/constants/assetTypes.js +1 -1
  1231. package/constants/bha.js +1 -1
  1232. package/constants/casing.js +1 -1
  1233. package/constants/completion.js +1 -1
  1234. package/constants/componentsSettings.js +1 -1
  1235. package/constants/corvaCompanyId.js +1 -1
  1236. package/constants/dateTimeFormat.js +1 -1
  1237. package/constants/devcenter.js +1 -1
  1238. package/constants/drillstring.js +1 -1
  1239. package/constants/feed.js +1 -1
  1240. package/constants/goals.js +1 -1
  1241. package/constants/localStorageKeys.js +1 -1
  1242. package/constants/mixpanel.js +1 -1
  1243. package/constants/notifications.js +1 -1
  1244. package/constants/rigActivity.js +1 -1
  1245. package/constants/segment.js +1 -1
  1246. package/constants/sizes.js +1 -1
  1247. package/constants/subscriptions.js +1 -1
  1248. package/constants/theme.js +1 -1
  1249. package/constants/wellSummary.js +1 -1
  1250. package/effects/useDevCenterApp.js +1 -1
  1251. package/effects/useEscPress.js +1 -1
  1252. package/effects/useResizeObserver.js +1 -1
  1253. package/effects/useSharedDCStore.js +1 -1
  1254. package/effects/useSignedURL.js +1 -1
  1255. package/effects/useSubscriptions.js +1 -1
  1256. package/hocs/withAssetEditorLockHOC.js +1 -1
  1257. package/hocs/withMUIProvidersHOC.js +1 -1
  1258. package/package.json +2 -3
  1259. package/permissions/PermissionsContext.js +1 -1
  1260. package/permissions/ProvidePermissions.js +1 -1
  1261. package/permissions/constants/abilities.js +1 -1
  1262. package/permissions/constants/index.js +1 -1
  1263. package/permissions/usePermissions.js +1 -1
  1264. package/permissions/useProvidePermissions.js +1 -1
  1265. package/permissions/utils.js +1 -1
  1266. package/permissions/withPermissionsHOC.js +1 -1
  1267. package/styles/typography/index.js +1 -1
  1268. package/utils/DrillstringUtils.js +1 -1
  1269. package/utils/FluidCheckUtils.js +1 -1
  1270. package/utils/StageDesignVActualUtils.js +1 -1
  1271. package/utils/__tests__/fixtures/convert.fixture.d.ts.map +1 -1
  1272. package/utils/accuracy.js +1 -1
  1273. package/utils/alerts.js +1 -1
  1274. package/utils/apps.js +1 -1
  1275. package/utils/audio.js +1 -1
  1276. package/utils/bha.js +1 -1
  1277. package/utils/casing/conversion.js +1 -1
  1278. package/utils/casing/validation.js +1 -1
  1279. package/utils/chartSeries.js +1 -1
  1280. package/utils/completion.js +1 -1
  1281. package/utils/components.js +1 -1
  1282. package/utils/constants/units.js +1 -1
  1283. package/utils/convert.js +1 -1
  1284. package/utils/convertKeys.js +1 -1
  1285. package/utils/csvExport.js +1 -1
  1286. package/utils/dashboardReports.js +1 -1
  1287. package/utils/delay.js +1 -1
  1288. package/utils/devcenter.js +1 -1
  1289. package/utils/devcenterToasts.js +1 -1
  1290. package/utils/drillstring/conversion.js +1 -1
  1291. package/utils/drillstring/schematic.js +1 -1
  1292. package/utils/drillstring/validation.js +1 -1
  1293. package/utils/env.js +1 -1
  1294. package/utils/feed.js +1 -1
  1295. package/utils/fileExtension.js +1 -1
  1296. package/utils/formatting.js +1 -1
  1297. package/utils/ga.js +1 -1
  1298. package/utils/goals.js +1 -1
  1299. package/utils/index.js +1 -1
  1300. package/utils/jsonaDataFormatter.js +1 -1
  1301. package/utils/lasParser.js +1 -1
  1302. package/utils/localStorage.js +1 -1
  1303. package/utils/main.js +1 -1
  1304. package/utils/mapUnits.js +1 -1
  1305. package/utils/mapbox.js +1 -1
  1306. package/utils/metrics/index.js +1 -1
  1307. package/utils/metrics/metricsConfig.js +1 -1
  1308. package/utils/metrics/utils.js +1 -1
  1309. package/utils/mobileDetect.js +1 -1
  1310. package/utils/nativeMessages.js +1 -1
  1311. package/utils/notificationToasts.js +1 -1
  1312. package/utils/notifications.js +1 -1
  1313. package/utils/permissions.js +1 -1
  1314. package/utils/reports.js +1 -1
  1315. package/utils/resolveWellHubSlug.js +1 -1
  1316. package/utils/sharedDCStore.js +1 -1
  1317. package/utils/themeVariables.js +1 -1
  1318. package/utils/time.js +1 -1
  1319. package/utils/torqueAndHookloadUtils.js +1 -1
  1320. package/components/DevCenter/DevCenterAppContainer/components/__tests__/AppSettingsDialog.test.d.ts +0 -2
  1321. package/components/DevCenter/DevCenterAppContainer/components/__tests__/AppSettingsDialog.test.d.ts.map +0 -1
  1322. package/components/ErrorBoundary/DevCenterAppErrorView/__tests__/DevCenterAppErrorView.snapshot.test.d.ts +0 -2
  1323. package/components/ErrorBoundary/DevCenterAppErrorView/__tests__/DevCenterAppErrorView.snapshot.test.d.ts.map +0 -1
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/slicedToArray"),t=require("@babel/runtime/helpers/defineProperty"),r=require("react"),n=require("prop-types"),i=require("lodash"),o=require("classnames"),a=require("@material-ui/core"),l=require("react/jsx-runtime");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=c(e),u=c(t),p=c(n),f=c(o);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){u.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var m=a.makeStyles((function(e){return{root:u.default({top:70,width:175,flexShrink:0,position:"sticky",height:"calc(100vh - 70px)",overflowY:"auto",padding:e.spacing(2,0),display:"none"},e.breakpoints.up("sm"),{display:"block"}),title:{color:e.palette.primary.text8,margin:"0 0 8px 16px",lineHeight:"24px",fontSize:10,fontWeight:500,letterSpacing:1},contents:{marginTop:e.spacing(2),paddingLeft:e.spacing(1)},ul:{padding:0,margin:0,listStyle:"none",borderLeft:"1px solid ".concat(e.palette.background.b9)},li:{display:"flex","&:not(:first-of-type)":{marginTop:8}},item:{color:e.palette.primary.text6,display:"inline-block",margin:"7px 16px",fontSize:12,fontWeight:400,letter:"0.4px",lineHeight:"16px"},active:{color:e.palette.text.primary,fontWeight:500},activeItemBorder:{height:30,width:"2px",backgroundColor:"#03BCD4",borderRadius:"0 2px 2px 0",position:"absolute"}}}));function g(e){var t=e.title,n=e.items,o=m(),c=r.useRef([]);r.useEffect((function(){c.current=n.map((function(e){return h(h({},e),{},{node:document.getElementById(e.hash)})}))}),[n]);var u,p,d,g=r.useState(null),y=s.default(g,2),b=y[0],x=y[1],v=r.useRef(!1),j=r.useRef(null),O=r.useCallback((function(){if(!v.current){for(var e,t=c.current.length-1;t>=0;t-=1){if(document.documentElement.scrollTop<100){e={hash:null};break}var r=c.current[t];if(r.node&&r.node.offsetTop<document.documentElement.scrollTop+document.documentElement.clientHeight/8){e=r;break}}e&&b!==e.hash&&x(e.hash)}}),[b]);u=n.length>0?O:null,p=166,d=r.useMemo((function(){return u?i.throttle(u,p):i.noop}),[u,p]),r.useEffect((function(){if(d!==i.noop)return window.addEventListener("scroll",d),function(){window.removeEventListener("scroll",d),d.cancel()}}),[d]);return r.useEffect((function(){return function(){clearTimeout(j.current)}}),[]),r.useEffect((function(){var e=window.location.hash;if(e){var t=document.getElementById(e.substr(1));t&&setTimeout((function(){t.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}),50)}}),[]),l.jsx("nav",{className:o.root,"data-testid":"anchors-list",children:n.length>0&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:o.title,children:t}),l.jsx(a.Typography,{component:"ul",className:o.ul,children:n.map((function(e){var t,r=b===e.hash;return l.jsxs("li",{className:o.li,children:[r&&l.jsx("div",{className:o.activeItemBorder}),l.jsx(a.Link,{display:"block",href:"#".concat(e.hash),underline:"none",onClick:(t=e.hash,function(e){e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||(v.current=!0,j.current=setTimeout((function(){v.current=!1}),1e3),b!==t&&x(t))}),className:f.default(o.item,r&&o.active),"data-testid":"anchor-item-".concat(e.hash),children:l.jsx("span",{children:e.text})})]},e.text)}))})]})})}g.defaultProps={title:"ON THIS PAGE",items:[]},g.propTypes={title:p.default.string,items:p.default.arrayOf(p.default.shape({hash:p.default.string,text:p.default.string}))},module.exports=g;
1
+ "use strict";var e=require("react"),t=require("prop-types"),n=require("lodash"),r=require("classnames"),i=require("@material-ui/core"),o=require("react/jsx-runtime");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=l(t),a=l(r);const c=i.makeStyles((e=>({root:{top:70,width:175,flexShrink:0,position:"sticky",height:"calc(100vh - 70px)",overflowY:"auto",padding:e.spacing(2,0),display:"none",[e.breakpoints.up("sm")]:{display:"block"}},title:{color:e.palette.primary.text8,margin:"0 0 8px 16px",lineHeight:"24px",fontSize:10,fontWeight:500,letterSpacing:1},contents:{marginTop:e.spacing(2),paddingLeft:e.spacing(1)},ul:{padding:0,margin:0,listStyle:"none",borderLeft:`1px solid ${e.palette.background.b9}`},li:{display:"flex","&:not(:first-of-type)":{marginTop:8}},item:{color:e.palette.primary.text6,display:"inline-block",margin:"7px 16px",fontSize:12,fontWeight:400,letter:"0.4px",lineHeight:"16px"},active:{color:e.palette.text.primary,fontWeight:500},activeItemBorder:{height:30,width:"2px",backgroundColor:"#03BCD4",borderRadius:"0 2px 2px 0",position:"absolute"}})));function u(t){const{title:r,items:l}=t,s=c(),u=e.useRef([]);e.useEffect((()=>{u.current=l.map((e=>({...e,node:document.getElementById(e.hash)})))}),[l]);const[d,p]=e.useState(null),h=e.useRef(!1),m=e.useRef(null),f=e.useCallback((()=>{if(h.current)return;let e;for(let t=u.current.length-1;t>=0;t-=1){if(document.documentElement.scrollTop<100){e={hash:null};break}const n=u.current[t];if(n.node&&n.node.offsetTop<document.documentElement.scrollTop+document.documentElement.clientHeight/8){e=n;break}}e&&d!==e.hash&&p(e.hash)}),[d]);!function(t,r){const i=e.useMemo((()=>t?n.throttle(t,r):n.noop),[t,r]);e.useEffect((()=>{if(i!==n.noop)return window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i),i.cancel()}}),[i])}(l.length>0?f:null,166);return e.useEffect((()=>()=>{clearTimeout(m.current)}),[]),e.useEffect((()=>{const{hash:e}=window.location;if(!e)return;const t=document.getElementById(e.substr(1));t&&setTimeout((()=>{t.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}),50)}),[]),o.jsx("nav",{className:s.root,"data-testid":"anchors-list",children:l.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:s.title,children:r}),o.jsx(i.Typography,{component:"ul",className:s.ul,children:l.map((e=>{const t=d===e.hash;return o.jsxs("li",{className:s.li,children:[t&&o.jsx("div",{className:s.activeItemBorder}),o.jsx(i.Link,{display:"block",href:`#${e.hash}`,underline:"none",onClick:(n=e.hash,e=>{e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||(h.current=!0,m.current=setTimeout((()=>{h.current=!1}),1e3),d!==n&&p(n))}),className:a.default(s.item,t&&s.active),"data-testid":`anchor-item-${e.hash}`,children:o.jsx("span",{children:e.text})})]},e.text);var n}))})]})})}u.defaultProps={title:"ON THIS PAGE",items:[]},u.propTypes={title:s.default.string,items:s.default.arrayOf(s.default.shape({hash:s.default.string,text:s.default.string}))},module.exports=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("@babel/runtime/helpers/slicedToArray"),n=require("@babel/runtime/helpers/toConsumableArray"),e=require("@babel/runtime/helpers/defineProperty"),r=require("react"),a=require("prop-types"),o=require("./constants.js"),i=require("react/jsx-runtime");function u(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var c=u(t),d=u(n),s=u(e);function l(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function p(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?l(Object(e),!0).forEach((function(n){s.default(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var f=r.createContext(),O=r.createContext();function y(t,n){switch(n.type){case o.SET_ANNOTATIONS:return{annotations:n.annotations};case o.APPEND_ANNOTATIONS:return p(p({},t),{},{annotations:{data:[].concat(d.default(t.annotations.data),d.default(n.annotations.data)),included:n.annotations.included.reduce((function(t,n){return t.find((function(t){var e=t.id,r=t.type;return e===n.id&&r===n.type}))?t:t.concat([n])}),t.annotations.included)}});case o.ADD_ANNOTATION:return p(p({},t),{},{annotations:t.annotations.data?{data:[n.annotation.data].concat(d.default(t.annotations.data)),included:n.annotation.included.reduce((function(t,n){return t.find((function(t){var e=t.id,r=t.type;return e===n.id&&r===n.type}))?t:t.concat([n])}),t.annotations.included)}:{data:[n.annotation.data],included:n.annotation.included}});case o.DELETE_ANNOTATION:var e=t.annotations.data;return p(p({},t),{},{annotations:p(p({},t.annotations),{},{data:e.filter((function(t){return t.id!==n.id}))})});case o.EDIT_ANNOTATION:return p(p({},t),{},{annotations:p(p({},t.annotations),{},{data:t.annotations.data.map((function(t){return t.id===n.id?n.annotation.data:t})),included:n.annotation.included.reduce((function(t,n){return t.find((function(t){var e=t.id,r=t.type;return e===n.id&&r===n.type}))?t:t.concat([n])}),t.annotations.included)})});default:throw new Error("Unhandled action type: ".concat(n.type))}}function b(t){var n=t.children,e=r.useReducer(y,{annotations:[]}),a=c.default(e,2),o=a[0],u=a[1];return i.jsx(f.Provider,{value:o,children:i.jsx(O.Provider,{value:u,children:n})})}b.propTypes={children:a.node.isRequired},exports.AnnotationsProvider=b,exports.useAnnotationsDispatch=function(){var t=r.useContext(O);if(void 0===t)throw new Error("useAnnotationsDispatch must be used within a AnnotationsProvider");return t},exports.useAnnotationsState=function(){var t=r.useContext(f);if(void 0===t)throw new Error("useAnnotationsState must be used within a AnnotationsProvider");return t};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("react"),t=require("prop-types"),e=require("./constants.js"),a=require("react/jsx-runtime");const o=n.createContext(),i=n.createContext();function r(n,t){switch(t.type){case e.SET_ANNOTATIONS:return{annotations:t.annotations};case e.APPEND_ANNOTATIONS:return{...n,annotations:{data:[...n.annotations.data,...t.annotations.data],included:t.annotations.included.reduce(((n,t)=>n.find((n=>{let{id:e,type:a}=n;return e===t.id&&a===t.type}))?n:n.concat([t])),n.annotations.included)}};case e.ADD_ANNOTATION:return{...n,annotations:n.annotations.data?{data:[t.annotation.data,...n.annotations.data],included:t.annotation.included.reduce(((n,t)=>n.find((n=>{let{id:e,type:a}=n;return e===t.id&&a===t.type}))?n:n.concat([t])),n.annotations.included)}:{data:[t.annotation.data],included:t.annotation.included}};case e.DELETE_ANNOTATION:{const{data:e}=n.annotations;return{...n,annotations:{...n.annotations,data:e.filter((n=>{let{id:e}=n;return e!==t.id}))}}}case e.EDIT_ANNOTATION:return{...n,annotations:{...n.annotations,data:n.annotations.data.map((n=>n.id===t.id?t.annotation.data:n)),included:t.annotation.included.reduce(((n,t)=>n.find((n=>{let{id:e,type:a}=n;return e===t.id&&a===t.type}))?n:n.concat([t])),n.annotations.included)}};default:throw new Error(`Unhandled action type: ${t.type}`)}}function d(t){let{children:e}=t;const[d,s]=n.useReducer(r,{annotations:[]});return a.jsx(o.Provider,{value:d,children:a.jsx(i.Provider,{value:s,children:e})})}d.propTypes={children:t.node.isRequired},exports.AnnotationsProvider=d,exports.useAnnotationsDispatch=function(){const t=n.useContext(i);if(void 0===t)throw new Error("useAnnotationsDispatch must be used within a AnnotationsProvider");return t},exports.useAnnotationsState=function(){const t=n.useContext(o);if(void 0===t)throw new Error("useAnnotationsState must be used within a AnnotationsProvider");return t};
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/helpers/slicedToArray"),i=require("@babel/runtime/regenerator"),s=require("react"),n=require("prop-types"),o=require("classnames"),a=require("lodash"),u=require("moment"),l=require("@material-ui/core/styles"),p=require("@material-ui/core"),d=require("../../../../../Avatar/index.js"),c=require("../../../../../../effects/useOutsideClick.js");require("../../../../../../utils/index.js");var q=require("../../../../../../clients/jsonApi/index.js"),j=require("../../../../AnnotationsContext.js"),m=require("../../../../constants.js"),C=require("../AnnotationInput/index.js"),A=require("./style.css.js");require("../../../../../DevCenter/AppHeader/AppHeader.js"),require("../../../../../DevCenter/AppSideBar/AppSideBar.js"),require("../../../../../DevCenter/AppsDataProvider/AppsDataProvider.js"),require("@material-ui/icons"),require("../../../../../Icons/AnnotationIcon.js"),require("../../index.js"),require("../../../LastAnnotation/index.js");var v=require("react/jsx-runtime");require("../../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js"),require("../../../../../../utils/mobileDetect.js"),require("../../../../../IconButton/index.js"),require("../../../../../Modal/CorvaModal.css.js"),require("uuid"),require("../../../../../IconMenu/index.js"),require("../../../../../StyledMenuItem/index.js"),require("../../../../../AppIcon/AppIcon.js"),require("../../../../../DevCenter/AppContext.js"),require("../../../../../AssetEditor/index.js"),require("../../../../../AssetEditorV2/index.js"),require("../../../../../AppVersionsSelect/AppVersionsSelect.js"),require("../../../../../LoadingIndicator/LoadingIndicator.js"),require("../../../../../Typography.js"),require("../../../../../RealTimeValuesSidebar/RealTimeSidebar.js"),require("../../../../../CollapsableSidebar.js"),require("../../../../../DateTimePicker/index.js"),require("../../../../../DatePicker/index.js"),require("../../../../../ErrorBoundary/ErrorBoundary.js"),require("../../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js"),require("../../../../../SlateFormattedText/SlateFormattedText.js"),require("../../../../../SlateFormattedText/RenderElements.js"),require("@babel/runtime/helpers/typeof"),require("slate"),require("../../../../../EmptyState/EmptyState.js"),require("../../../../../ParameterCharts/ParameterCharts.js"),require("../../../../../ParameterCharts/AddEditTrack.js"),require("../../../../../ChartActionsList/ChartActionsList.js"),require("../../../../../CopyToClipboard/CopyToClipboard.js"),require("../../../../../AssetEditor/AssetEditorAutocomplete.js"),require("../../../../../AssetEditor/SingleAssetEditor.js"),require("../../../../../SettingEditors/ColorEditor/index.js"),require("../../../../../SettingEditors/DropdownEditor/index.js"),require("../../../../../SettingEditors/RadioEditor/index.js"),require("../../../../../SwitchControl/index.js"),require("../../../../../ColorPicker/ColorPicker.js"),require("../../../../../Chart/components/ChartButton.js"),require("../../../../../Chart/components/ChartButtons.js"),require("../../../../../Chart/components/ChartWrapper.js"),require("../../../../../Chart/components/AxisDropdown.js"),require("../../../../../Chart/components/ChartSelect.js"),require("../../../../../Chart/components/buttons/DragToZoomButton.js"),require("../../../../../Chart/components/buttons/ZoomInButton.js"),require("../../../../../Chart/components/buttons/ZoomOutButton.js"),require("../../../../../Chart/components/buttons/PanButton.js"),require("../../../../../Chart/components/buttons/ResetZoomButton.js"),require("../../../../../Chart/components/buttons/HideAxesButton.js"),require("../../../../../Chart/components/buttons/ChartTypeButton.js"),require("../../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js"),require("../../../../../TruncatedText/index.js"),require("../../../../../MiddleTruncatedText/MiddleTruncatedText.js"),require("../../../../../RangeSlider/RangeSlider.js"),require("../../../../../AdvancedSlider/AdvancedSlider.js"),require("../../../../../Breadcrumbs/index.js"),require("../../../../../VirtualizedTable/index.js"),require("../../../../../EmptyView/EmptyView.js"),require("../../../../../EmptyView/EmptyAppView/EmptyAppView.js"),require("../../../../../Button/index.js"),require("../../../../../ContextMenuItem/index.js"),require("../../../../../FolderMenuItem/index.js"),require("../../../../../EditableItem/EditableItem/index.js"),require("../../../../../EditableItem/EditableItemWithBadge/index.js"),require("../../../../../Checkbox/index.js"),require("../../../../../FolderMenuItemWithLinks/index.js"),require("../../../../../TextField/index.js"),require("../../../../../Chip/index.js"),require("../../../../../Counter/index.js"),require("../../../../../AnchorsList/AnchorsList.js"),require("../../../../../Select/index.js"),require("../../../../../Select/SelectFilterBy.js"),require("../../../../../CustomSelect/index.js"),require("../../../../../Tabs/Tabs.js"),require("../../../../../Tabs/Tab.js"),require("../../../../../ResizableTable/ResizableTable.js"),require("@material-ui/icons/Check"),require("@material-ui/icons/Close"),require("@material-ui/icons/Edit"),require("@material-ui/icons/Delete"),require("../../../../../GradientManager/configuration/constants.js"),require("../../../../../GradientManager/GradientList.js"),require("@material-ui/icons/AddCircle"),require("../../../../../GradientManager/GradientPreview/GradientPreview.js"),require("../../../../../GradientManager/GradientSelect.styles.js"),require("../../../../../GradientPicker/GradientPicker.js"),require("../../../../../GradientManager/GradientManager.styles.js"),require("../../../../../Drillstring/BHASchematic.js"),require("../../../../../Drillstring/BHATable/index.js"),require("../../../../../Drillstring/BHAComponentIcon.js"),require("../../../../../Drillstring/BHAComponentDetail/index.js"),require("../../../../../Drillstring/BHATileIcon.js"),require("../../../../../Drillstring/BHATile/BHATile.js"),require("../../../../../Drillstring/BHAList/BHAList.js"),require("../../../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js"),require("../../../../../Casing/CasingTable/index.js"),require("../../../../../Casing/CasingComponentIcon.js"),require("../../../../../Casing/CasingTileIcon.js"),require("../../../../../Casing/CasingTableV2/CasingTableV2.js"),require("../../../../../Casing/CasingTile/CasingTile.js"),require("../../../../../DisabledSettingsMessage/DisabledSettingsMessage.js"),require("../../../../../WellSummary/WellSummaryItemLabel.js"),require("../../../../../WellSummary/WellSummaryItemTitle.js"),require("../../../../../WellSummary/WellSummaryItemValue.js"),require("../../../../../WellSummary/ActivitySummaryChart.js"),require("../../../../../WellSummary/FracWirelineTimeChart.js"),require("../../../../../../constants/goals.js"),require("../../../../../../constants/segment.js"),require("../../../../../../constants/alerts.js"),require("../../../../../../constants/apps.js"),require("../../../../../../constants/drillstring.js"),require("../../../../../../constants/completion.js"),require("../../../../../../constants/appPackages.js"),require("../../../../../../constants/notifications.js"),require("../../../../../../constants/feed.js"),require("../../../../../../constants/bha.js"),require("../../../../../../utils/env.js"),require("../../../../../BICOffsetPickerDialog/index.js"),require("../../../../../OffsetWellButton/OffsetWellButton.js"),require("../../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js"),require("../../../../../OffsetWellPickerV3/index.js"),require("../../../../../OffsetWellChips/Chip.js"),require("../../../../../OffsetWellChips/ChipsContainer.js"),require("../../../../../OffsetWellPickerV4/OffsetWellPickerV4.js"),require("../../../../../OffsetWellMap/OffsetWellMap.js"),require("@material-ui/core/Snackbar"),require("../../../../../Notifications/Toast.js"),require("../../../../../Toaster/Toaster.js"),require("../../../../../ConfirmationDialog.js"),require("../../../../../TextLink/index.js"),require("../../../../../Template/TemplatePopover/index.js"),require("../../../../../Template/TemplateSharingDialog/index.js"),require("../../../../../MenuItem/index.js"),require("../../../../../MiddleTruncate/MiddleTruncate.js"),require("../../../../../PadModeSelect/PadModeSelect.js"),require("../../../../../PinnableFilters/PinnableFilters.js"),require("../../../../../HeaderLayout/HeaderLayout.js"),require("../../../../../PadOffsetsPicker/PadOffsetsPicker.js"),require("../../../../../PadOffsetsPicker/OffsetAssetChip.js"),require("../../../../../PadOffsetsPicker/OffsetAssetsListExpander.js"),require("../../../../../PadOffsetsPicker/StagesSelector.js"),require("../../../../../PadOffsetsPickerV2/PadOffsetsPickerV2.js"),require("../../../../../Table/TableToolbar/TableToolbar.js"),require("../../../../../Table/TableContainer/TableContainer.js"),require("../../../../../Table/TableCell/TableCell.js"),require("../../../../../Tooltip/ScrollableTooltip.js"),require("../../../../../PriceInput/PriceInput.js"),require("../../../../../LabelsCounter/LabelsCounter.js"),require("../../../../../Stepper/Step.js"),require("../../../../../Stepper/StepsWrapper.js"),require("../../../../../Stepper/Stepper.js"),require("../../../../../Comment/CommentIcon/index.js"),require("../../../../../FilesLoader/FilesLoader.js"),require("../../../../../FilesLoader/Icons/FileIcon.js"),require("../../../../../SearchInput/index.js"),require("../../../../../FeedItem/FeedItem.js"),require("../../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js"),require("../../../../../PostInput/PostInput.js"),require("../../../../../KeyboardDateTimePicker.js"),require("../../../../../AddComment/Popover.js"),require("../../../../../AddComment/Popup.js"),require("../../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js"),require("../../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js"),require("../../../../../StageDesignVActual/ComparisonHeader.js"),require("../../../../../StageDesignVActual/ComparisonRow.js"),require("../../../../../EmbeddedApp/DevCenterEmbeddedApp.js"),require("../../../../../EmbeddedApp/EmbeddedApp.js"),require("../../../../../HelpCenter/HelpCenterIcon.js"),require("../../../../../Autocomplete/Autocomplete.js"),require("../../../../../DocumentViewer/DocumentViewer.js"),require("@babel/runtime/helpers/objectWithoutProperties"),require("../../../../../ColorPickerPalette/ColorPickerPalette.js"),require("../../../../../Search/Search.js"),require("../../../../../Search/components/Listbox.js"),require("../../../../../Search/components/Paper.js"),require("../../../../../Search/components/RecentSearches.js"),require("../../../../../Search/components/InputAdornmentLeft.js"),require("../../../../../Search/components/Groups.js"),require("../../../../../StatusBadge/index.js"),require("../../../../../Attachment/index.js"),require("../../../../../EmojiIconButton.js"),require("../../../../../FileUploadIconButton.js"),require("../../../../../FilePreview/index.js"),require("../../../../../FailedFileUploading.js"),require("../../../../../UserMention/index.js"),require("../../../../../CommentsInfo/index.js"),require("../../../../../CommentInput/index.js"),require("../../../../../Comment/index.js"),require("../../../../../CommentLoader.js"),require("../../../../../AssetNameLabel/AssetStatusBadge.js"),require("../../../../../AssetEditorV2/components/PrimaryAssetSelect.js"),require("../../../../../AssetEditorV2/components/SecondaryAssetSelect.js"),require("../../../../../AssetEditorV2/components/SelectItem.js"),require("../../../../../AssetEditorV2/components/MultipleAssetsToggle.js"),require("../../../../../AssetEditorV2/components/PrimaryAssetSelectV2.js"),require("../../../../../EChartsWrapper/EChartsWrapper.js"),require("querystring"),require("uuid/v1"),require("../../../../../../clients/subscriptions.js"),require("jsona"),require("../../../../../StatusBadge/constants.js"),require("@babel/runtime/helpers/toConsumableArray"),require("lodash/set"),require("lodash/get"),require("lodash/unset"),require("../../../../../../clients/api/apiCore.js"),require("../../../../../../clients/constants.js"),require("../../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js"),require("../../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js"),require("../../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js");var h=require("../../../../../DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js");require("rollbar"),require("@rollbar/react"),require("../../../../../DevCenter/NavigationBar/NavigationBar.js"),require("../../../../../DevCenter/SideBar/SideBar.js"),require("../../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js"),require("../../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js"),require("../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js"),require("../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js");var b=require("../../../../../../utils/notificationToasts.js");function D(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=D(e),S=D(r),f=D(t),P=D(i),x=D(o),T=D(u),I=function(e){var r,t=e.appId,i=e.assetId,n=e.assetCompanyId,o=e.appSettings,u=e.currentUser,l=e.classes,h=e.location,D=e.dashboardType,I=j.useAnnotationsDispatch(),y=s.useState(!1),E=f.default(y,2),B=E[0],k=E[1],F=s.useRef(null);c(F,(function(){k(!1)}));var V,L=(V=S.default(P.default.mark((function e(r,s,n){var u,l,p,d;return P.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u={app_id:t,asset_id:i,body:r,active_until:s,attachment:{file_name:n&&n.attachmentName,s3_link:n&&n.attachmentUrl},settings:o},l={},D&&(l.dashboard_type=D),(p=a.get(h,"query.time"))&&(u.data_timestamp=T.default(p).format()),e.next=8,q.postAnnotation(u,l);case 8:d=e.sent,I({type:m.ADD_ANNOTATION,annotation:d}),e.next=17;break;case 12:return e.prev=12,e.t0=e.catch(0),b.showErrorNotification("Error during annotation creation"),console.error(e.t0),e.abrupt("return");case 17:b.showSuccessNotification("Annotation has been added"),k(!1);case 19:case"end":return e.stop()}}),e,null,[[0,12]])}))),function(e,r,t){return V.apply(this,arguments)});return v.jsxs("div",{className:A.cAddAnnotationFormInput,children:[v.jsx(d.default,{displayName:"".concat(u.first_name," ").concat(u.last_name),imgSrc:u.profile_photo,size:36}),v.jsxs("div",{className:x.default(A.cAddAnnotationFormInputPaper,(r={},g.default(r,A.cAddAnnotationFormInputPaperOpened,B),g.default(r,A.cAddAnnotationFormInputPaperClosed,!B),r)),children:[v.jsx(p.Fade,{in:!B,timeout:500,children:v.jsx(p.Paper,{className:A.cAddAnnotationFormInputPaperLabel,children:v.jsx(p.Typography,{variant:"body2","data-testid":"".concat("AppAnnotationsPo","_collapsedInput"),className:l.inputLabel,onClick:function(){return k(!0)},children:"Type annotation here"})})}),v.jsx(p.Fade,{in:B,timeout:100,children:v.jsx("div",{className:A.cAddAnnotationFormInputPaperAddAnnotation,children:B&&v.jsx(C,{onSend:L,assetCompanyId:n,currentUser:u})})})]})]})};I.propTypes={appId:n.number.isRequired,assetId:n.number.isRequired,assetCompanyId:n.number.isRequired,appSettings:n.shape().isRequired,currentUser:n.shape({}),classes:n.shape().isRequired,location:n.shape().isRequired,dashboardType:n.string},I.defaultProps={currentUser:{},dashboardType:null};var y=a.flowRight([l.withStyles((function(e){return{inputLabel:{color:e.palette.grey[700],fontWeight:200,width:"100%"}}})),h.withUniversalLocationHOC])(s.memo(I));module.exports=y;
1
+ "use strict";var e=require("react"),r=require("prop-types"),t=require("classnames"),i=require("lodash"),s=require("moment"),n=require("@material-ui/core/styles"),o=require("@material-ui/core"),a=require("../../../../../Avatar/index.js"),u=require("../../../../../../effects/useOutsideClick.js");require("../../../../../../utils/index.js");var l=require("../../../../../../clients/jsonApi/index.js"),p=require("../../../../AnnotationsContext.js"),d=require("../../../../constants.js"),q=require("../AnnotationInput/index.js"),c=require("./style.css.js");require("../../../../../DevCenter/AppHeader/AppHeader.js"),require("../../../../../DevCenter/AppSideBar/AppSideBar.js"),require("../../../../../DevCenter/AppsDataProvider/AppsDataProvider.js"),require("@material-ui/icons"),require("../../../../../Icons/AnnotationIcon.js"),require("../../index.js"),require("../../../LastAnnotation/index.js");var j=require("react/jsx-runtime");require("../../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js"),require("../../../../../../utils/mobileDetect.js"),require("../../../../../IconButton/index.js"),require("../../../../../Modal/CorvaModal.css.js"),require("uuid"),require("../../../../../IconMenu/index.js"),require("../../../../../StyledMenuItem/index.js"),require("../../../../../AppIcon/AppIcon.js"),require("../../../../../DevCenter/AppContext.js"),require("../../../../../AssetEditor/index.js"),require("../../../../../AssetEditorV2/index.js"),require("../../../../../AppVersionsSelect/AppVersionsSelect.js"),require("../../../../../LoadingIndicator/LoadingIndicator.js"),require("../../../../../Typography.js"),require("../../../../../RealTimeValuesSidebar/RealTimeSidebar.js"),require("../../../../../CollapsableSidebar.js"),require("../../../../../DateTimePicker/index.js"),require("../../../../../DatePicker/index.js"),require("../../../../../ErrorBoundary/ErrorBoundary.js"),require("../../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js"),require("../../../../../SlateFormattedText/SlateFormattedText.js"),require("../../../../../SlateFormattedText/RenderElements.js"),require("slate"),require("../../../../../EmptyState/EmptyState.js"),require("../../../../../ParameterCharts/ParameterCharts.js"),require("../../../../../ParameterCharts/AddEditTrack.js"),require("../../../../../ChartActionsList/ChartActionsList.js"),require("../../../../../CopyToClipboard/CopyToClipboard.js"),require("../../../../../AssetEditor/AssetEditorAutocomplete.js"),require("../../../../../AssetEditor/SingleAssetEditor.js"),require("../../../../../SettingEditors/ColorEditor/index.js"),require("../../../../../SettingEditors/DropdownEditor/index.js"),require("../../../../../SettingEditors/RadioEditor/index.js"),require("../../../../../SwitchControl/index.js"),require("../../../../../ColorPicker/ColorPicker.js"),require("../../../../../Chart/components/ChartButton.js"),require("../../../../../Chart/components/ChartButtons.js"),require("../../../../../Chart/components/ChartWrapper.js"),require("../../../../../Chart/components/AxisDropdown.js"),require("../../../../../Chart/components/ChartSelect.js"),require("../../../../../Chart/components/buttons/DragToZoomButton.js"),require("../../../../../Chart/components/buttons/ZoomInButton.js"),require("../../../../../Chart/components/buttons/ZoomOutButton.js"),require("../../../../../Chart/components/buttons/PanButton.js"),require("../../../../../Chart/components/buttons/ResetZoomButton.js"),require("../../../../../Chart/components/buttons/HideAxesButton.js"),require("../../../../../Chart/components/buttons/ChartTypeButton.js"),require("../../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js"),require("../../../../../TruncatedText/index.js"),require("../../../../../MiddleTruncatedText/MiddleTruncatedText.js"),require("../../../../../RangeSlider/RangeSlider.js"),require("../../../../../AdvancedSlider/AdvancedSlider.js"),require("../../../../../Breadcrumbs/index.js"),require("../../../../../VirtualizedTable/index.js"),require("../../../../../EmptyView/EmptyView.js"),require("../../../../../EmptyView/EmptyAppView/EmptyAppView.js"),require("../../../../../Button/index.js"),require("../../../../../ContextMenuItem/index.js"),require("../../../../../FolderMenuItem/index.js"),require("../../../../../EditableItem/EditableItem/index.js"),require("../../../../../EditableItem/EditableItemWithBadge/index.js"),require("../../../../../Checkbox/index.js"),require("../../../../../FolderMenuItemWithLinks/index.js"),require("../../../../../TextField/index.js"),require("../../../../../Chip/index.js"),require("../../../../../Counter/index.js"),require("../../../../../AnchorsList/AnchorsList.js"),require("../../../../../Select/index.js"),require("../../../../../Select/SelectFilterBy.js"),require("../../../../../CustomSelect/index.js"),require("../../../../../Tabs/Tabs.js"),require("../../../../../Tabs/Tab.js"),require("../../../../../ResizableTable/ResizableTable.js"),require("@material-ui/icons/Check"),require("@material-ui/icons/Close"),require("@material-ui/icons/Edit"),require("@material-ui/icons/Delete"),require("../../../../../GradientManager/configuration/constants.js"),require("../../../../../GradientManager/GradientList.js"),require("@material-ui/icons/AddCircle"),require("../../../../../GradientManager/GradientPreview/GradientPreview.js"),require("../../../../../GradientManager/GradientSelect.styles.js"),require("../../../../../GradientPicker/GradientPicker.js"),require("../../../../../GradientManager/GradientManager.styles.js"),require("../../../../../Drillstring/BHASchematic.js"),require("../../../../../Drillstring/BHATable/index.js"),require("../../../../../Drillstring/BHAComponentIcon.js"),require("../../../../../Drillstring/BHAComponentDetail/index.js"),require("../../../../../Drillstring/BHATileIcon.js"),require("../../../../../Drillstring/BHATile/BHATile.js"),require("../../../../../Drillstring/BHAList/BHAList.js"),require("../../../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js"),require("../../../../../Casing/CasingTable/index.js"),require("../../../../../Casing/CasingComponentIcon.js"),require("../../../../../Casing/CasingTileIcon.js"),require("../../../../../Casing/CasingTableV2/CasingTableV2.js"),require("../../../../../Casing/CasingTile/CasingTile.js"),require("../../../../../DisabledSettingsMessage/DisabledSettingsMessage.js"),require("../../../../../WellSummary/WellSummaryItemLabel.js"),require("../../../../../WellSummary/WellSummaryItemTitle.js"),require("../../../../../WellSummary/WellSummaryItemValue.js"),require("../../../../../WellSummary/ActivitySummaryChart.js"),require("../../../../../WellSummary/FracWirelineTimeChart.js"),require("../../../../../../constants/goals.js"),require("../../../../../../constants/segment.js"),require("../../../../../../constants/alerts.js"),require("../../../../../../constants/apps.js"),require("../../../../../../constants/drillstring.js"),require("../../../../../../constants/completion.js"),require("../../../../../../constants/appPackages.js"),require("../../../../../../constants/notifications.js"),require("../../../../../../constants/feed.js"),require("../../../../../../constants/bha.js"),require("../../../../../../utils/env.js"),require("../../../../../BICOffsetPickerDialog/index.js"),require("../../../../../OffsetWellButton/OffsetWellButton.js"),require("../../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js"),require("../../../../../OffsetWellPickerV3/index.js"),require("../../../../../OffsetWellChips/Chip.js"),require("../../../../../OffsetWellChips/ChipsContainer.js"),require("../../../../../OffsetWellPickerV4/OffsetWellPickerV4.js"),require("../../../../../OffsetWellMap/OffsetWellMap.js"),require("@material-ui/core/Snackbar"),require("../../../../../Notifications/Toast.js"),require("../../../../../Toaster/Toaster.js"),require("../../../../../ConfirmationDialog.js"),require("../../../../../TextLink/index.js"),require("../../../../../Template/TemplatePopover/index.js"),require("../../../../../Template/TemplateSharingDialog/index.js"),require("../../../../../MenuItem/index.js"),require("../../../../../MiddleTruncate/MiddleTruncate.js"),require("../../../../../PadModeSelect/PadModeSelect.js"),require("../../../../../PinnableFilters/PinnableFilters.js"),require("../../../../../HeaderLayout/HeaderLayout.js"),require("../../../../../PadOffsetsPicker/PadOffsetsPicker.js"),require("../../../../../PadOffsetsPicker/OffsetAssetChip.js"),require("../../../../../PadOffsetsPicker/OffsetAssetsListExpander.js"),require("../../../../../PadOffsetsPicker/StagesSelector.js"),require("../../../../../PadOffsetsPickerV2/PadOffsetsPickerV2.js"),require("../../../../../Table/TableToolbar/TableToolbar.js"),require("../../../../../Table/TableContainer/TableContainer.js"),require("../../../../../Table/TableCell/TableCell.js"),require("../../../../../Tooltip/ScrollableTooltip.js"),require("../../../../../PriceInput/PriceInput.js"),require("../../../../../LabelsCounter/LabelsCounter.js"),require("../../../../../Stepper/Step.js"),require("../../../../../Stepper/StepsWrapper.js"),require("../../../../../Stepper/Stepper.js"),require("../../../../../Comment/CommentIcon/index.js"),require("../../../../../FilesLoader/FilesLoader.js"),require("../../../../../FilesLoader/Icons/FileIcon.js"),require("../../../../../SearchInput/index.js"),require("../../../../../FeedItem/FeedItem.js"),require("../../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js"),require("../../../../../PostInput/PostInput.js"),require("../../../../../KeyboardDateTimePicker.js"),require("../../../../../AddComment/Popover.js"),require("../../../../../AddComment/Popup.js"),require("../../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js"),require("../../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js"),require("../../../../../StageDesignVActual/ComparisonHeader.js"),require("../../../../../StageDesignVActual/ComparisonRow.js"),require("../../../../../EmbeddedApp/DevCenterEmbeddedApp.js"),require("../../../../../EmbeddedApp/EmbeddedApp.js"),require("../../../../../HelpCenter/HelpCenterIcon.js"),require("../../../../../Autocomplete/Autocomplete.js"),require("../../../../../DocumentViewer/DocumentViewer.js"),require("../../../../../ColorPickerPalette/ColorPickerPalette.js"),require("../../../../../Search/Search.js"),require("../../../../../Search/components/Listbox.js"),require("../../../../../Search/components/Paper.js"),require("../../../../../Search/components/RecentSearches.js"),require("../../../../../Search/components/InputAdornmentLeft.js"),require("../../../../../Search/components/Groups.js"),require("../../../../../StatusBadge/index.js"),require("../../../../../Attachment/index.js"),require("../../../../../EmojiIconButton.js"),require("../../../../../FileUploadIconButton.js"),require("../../../../../FilePreview/index.js"),require("../../../../../FailedFileUploading.js"),require("../../../../../UserMention/index.js"),require("../../../../../CommentsInfo/index.js"),require("../../../../../CommentInput/index.js"),require("../../../../../Comment/index.js"),require("../../../../../CommentLoader.js"),require("../../../../../AssetNameLabel/AssetStatusBadge.js"),require("../../../../../AssetEditorV2/components/PrimaryAssetSelect.js"),require("../../../../../AssetEditorV2/components/SecondaryAssetSelect.js"),require("../../../../../AssetEditorV2/components/SelectItem.js"),require("../../../../../AssetEditorV2/components/MultipleAssetsToggle.js"),require("../../../../../AssetEditorV2/components/PrimaryAssetSelectV2.js"),require("../../../../../EChartsWrapper/EChartsWrapper.js"),require("querystring"),require("uuid/v1"),require("../../../../../../clients/subscriptions.js"),require("jsona"),require("../../../../../StatusBadge/constants.js"),require("lodash/set"),require("lodash/get"),require("lodash/unset"),require("../../../../../../clients/api/apiCore.js"),require("../../../../../../clients/constants.js"),require("../../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js"),require("../../../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js"),require("../../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js"),require("../../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js");var m=require("../../../../../DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js");require("rollbar"),require("@rollbar/react"),require("../../../../../DevCenter/NavigationBar/NavigationBar.js"),require("../../../../../DevCenter/SideBar/SideBar.js"),require("../../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js"),require("../../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js"),require("../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js"),require("../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js");var C=require("../../../../../../utils/notificationToasts.js");function A(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v=A(t),D=A(s);const g=r=>{let{appId:t,assetId:s,assetCompanyId:n,appSettings:m,currentUser:A,classes:g,location:h,dashboardType:S}=r;const P=p.useAnnotationsDispatch(),[x,b]=e.useState(!1),I=e.useRef(null);u(I,(()=>{b(!1)}));return j.jsxs("div",{className:c.cAddAnnotationFormInput,children:[j.jsx(a.default,{displayName:`${A.first_name} ${A.last_name}`,imgSrc:A.profile_photo,size:36}),j.jsxs("div",{className:v.default(c.cAddAnnotationFormInputPaper,{[c.cAddAnnotationFormInputPaperOpened]:x,[c.cAddAnnotationFormInputPaperClosed]:!x}),children:[j.jsx(o.Fade,{in:!x,timeout:500,children:j.jsx(o.Paper,{className:c.cAddAnnotationFormInputPaperLabel,children:j.jsx(o.Typography,{variant:"body2","data-testid":"AppAnnotationsPo_collapsedInput",className:g.inputLabel,onClick:()=>b(!0),children:"Type annotation here"})})}),j.jsx(o.Fade,{in:x,timeout:100,children:j.jsx("div",{className:c.cAddAnnotationFormInputPaperAddAnnotation,children:x&&j.jsx(q,{onSend:async(e,r,n)=>{try{const o={app_id:t,asset_id:s,body:e,active_until:r,attachment:{file_name:n&&n.attachmentName,s3_link:n&&n.attachmentUrl},settings:m},a={};S&&(a.dashboard_type=S);const u=i.get(h,"query.time");u&&(o.data_timestamp=D.default(u).format());const p=await l.postAnnotation(o,a);P({type:d.ADD_ANNOTATION,annotation:p})}catch(e){return C.showErrorNotification("Error during annotation creation"),void console.error(e)}C.showSuccessNotification("Annotation has been added"),b(!1)},assetCompanyId:n,currentUser:A})})})]})]})};g.propTypes={appId:r.number.isRequired,assetId:r.number.isRequired,assetCompanyId:r.number.isRequired,appSettings:r.shape().isRequired,currentUser:r.shape({}),classes:r.shape().isRequired,location:r.shape().isRequired,dashboardType:r.string},g.defaultProps={currentUser:{},dashboardType:null};var h=i.flowRight([n.withStyles((e=>({inputLabel:{color:e.palette.grey[700],fontWeight:200,width:"100%"}}))),m.withUniversalLocationHOC])(e.memo(g));module.exports=h;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/asyncToGenerator"),n=require("@babel/runtime/helpers/slicedToArray"),a=require("@babel/runtime/regenerator"),i=require("react"),r=require("classnames"),s=require("prop-types"),o=require("@material-ui/core/styles"),c=require("lodash"),u=require("@material-ui/core/withWidth"),d=require("moment"),l=require("@material-ui/core"),m=require("@material-ui/core/colors/grey"),p=require("@material-ui/icons/MoreVert"),h=require("../../../../../Avatar/index.js"),f=require("../../../../../UserCardPopover.js"),q=require("../../../../../ConfirmationDialog.js"),x=require("../../../../../CommentsInfo/index.js"),j=require("../../../../../UserMention/utils/index.js"),v=require("../../../../../Attachment/index.js"),g=require("../../../../../../utils/mobileDetect.js"),y=require("../../../../../../clients/jsonApi/index.js"),A=require("../AnnotationComments/index.js"),b=require("../../../../AnnotationsContext.js"),_=require("../../../../constants.js"),C=require("../AnnotationInput/index.js"),N=require("./style.css.js"),R=require("react/jsx-runtime");function T(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var I=T(e),M=T(t),D=T(n),w=T(a),k=T(r),E=T(u),O=T(d),S=T(m),U=T(p),B="AppAnnotationItemPo",P=function(e){var t=e.user,n=e.currentUser,a=e.classes;return R.jsx("div",{className:N.cAnnotationUserAvatar,children:g.isNativeDetected?R.jsx(h.default,{displayName:"".concat(t.first_name," ").concat(t.last_name),imgSrc:t.profile_photo,size:38,className:a.avatar}):R.jsx(f,{user:t,currentUser:n,children:R.jsx(h.default,{displayName:"".concat(t.first_name," ").concat(t.last_name),imgSrc:t.profile_photo,size:38,className:a.avatar})})})},z=function(e){var t=e.actionsMenuAnchorEl,n=e.handleToggleActionsMenu,a=e.classes,i=e.handleEdit,r=e.handleDelete;return R.jsxs(R.Fragment,{children:[R.jsx(l.IconButton,{"data-testid":"".concat(B,"_menuButton"),"aria-label":"Actions","aria-owns":t?N.cAnnotationContainerActionsMenu:void 0,"aria-haspopup":"true",className:a.iconButtonRoot,onClick:n,children:R.jsx(U.default,{htmlColor:S.default[400]})}),R.jsxs(l.Menu,{id:"cAnnotationContainerActionsMenu",anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:t,open:!!t,onClick:n,children:[R.jsx(l.MenuItem,{"data-testid":"".concat(B,"_editMenuItem"),onClick:i,children:"Edit"}),R.jsx(l.MenuItem,{"data-testid":"".concat(B,"_deleteMenuItem"),onClick:r,children:"Delete"})]})]})},L=function(e){var t,n,a=e.included,r=e.annotation,s=e.assetCompanyId,o=e.classes,c=e.showSuccessNotification,d=e.width,m=i.useState(!1),p=D.default(m,2),h=p[0],f=p[1],T=i.useState(null),E=D.default(T,2),S=E[0],U=E[1],L=i.useState(!1),W=D.default(L,2),F=W[0],Y=W[1],G=i.useState(!1),H=D.default(G,2),V=H[0],J=H[1],K=!u.isWidthUp("sm",d),Q=r.attributes.comments_count||0,X=i.useState(Q),Z=D.default(X,2),$=Z[0],ee=Z[1],te=b.useAnnotationsDispatch(),ne=r.relationships.comment_users.data.reduce((function(e,t){var n=t.id,i=a.find((function(e){return e.id===n}));return i&&e.push(i.attributes),e}),[]),ae=ne.map((function(e){var t=e.last_name,n=e.first_name;return"".concat(n," ").concat(t)})),ie=(t=M.default(w.default.mark((function e(){return w.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y.deleteAnnotation(r.id);case 3:e.sent&&te({type:_.DELETE_ANNOTATION,id:r.id}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(){return t.apply(this,arguments)}),re=(n=M.default(w.default.mark((function e(t,n,a){var i,s;return w.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i={body:t,active_until:n,attachment:{file_name:a&&a.attachmentName,signed_url:a&&a.attachmentUrl}},e.next=4,y.patchAnnotation(r.id,i);case 4:s=e.sent,te({type:_.EDIT_ANNOTATION,annotation:s,id:r.id}),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return");case 12:c("Annotation has been changed"),Y(!1);case 14:case"end":return e.stop()}}),e,null,[[0,8]])}))),function(e,t,a){return n.apply(this,arguments)}),se=r.relationships.user.data.id,oe=a.find((function(e){var t=e.type,n=e.id;return"user"===t&&n===se})),ce=oe.attributes,ue=r.attributes.attachment;return R.jsxs(l.Paper,{className:o.container,elevation:0,children:[R.jsxs("div",{"data-testid":"".concat(B,"_annotation_").concat(r.attributes.body),className:N.cAnnotationContainer,children:[R.jsx(P,{user:ce,classes:o,isNative:g.isNativeDetected,currentUser:oe}),R.jsxs("div",{className:N.cAnnotationContainerTop,children:[R.jsxs("div",{className:N.cAnnotationContainerTopMainInfo,children:[R.jsx(l.Typography,{variant:"body2","data-testid":"".concat(B,"_userName"),children:"".concat(ce.first_name," ").concat(ce.last_name)}),R.jsx(l.Typography,{"data-testid":"".concat(B,"_addDate"),variant:"caption",className:o.createdAt,children:O.default(r.attributes.created_at).format("MM/DD/YY H:mm")})]}),R.jsx("div",{className:k.default(N.cAnnotationContainerTopMenu,I.default({},N.cAnnotationContainerTopMenuSmall,K)),children:R.jsx(z,{actionsMenuAnchorEl:S,handleToggleActionsMenu:function(e){var t=e.currentTarget;U(S?null:t)},handleEdit:function(){return Y(!0)},handleDelete:function(){return J(!0)},classes:o})})]}),R.jsx(l.Divider,{className:o.headerDividerRoot}),R.jsx("div",{"data-testid":"".concat(B,"_message"),className:N.cAnnotationContainerContent,children:F?R.jsx(C,{initialText:r.attributes.body,assetCompanyId:s,initialPeriod:r.attributes.created_at,initialAttachment:ue,onSend:re,onClose:function(){return Y(!1)},closeOnEsc:!0}):R.jsxs(R.Fragment,{children:[j.formatMentionText(r.attributes.body,r.relationships.mentioned_users.data,g.isNativeDetected,null,oe),ue&&ue.signed_url&&R.jsx(v,{attachmentUrl:ue.signed_url,fileName:ue.file_name,size:"small"})]})})]}),R.jsxs("div",{"data-testid":"".concat(B,"_comments_").concat(r.attributes.body),className:N.cAnnotationComments,children:[R.jsxs("div",{className:N.cAnnotationCommentsInfo,children:[R.jsx(l.Typography,{"data-testid":"".concat(B,"_commentButton"),variant:"caption",color:"primary",className:o.link,onClick:function(){return f(!0)},children:"Comment"}),R.jsx(x,{commentsCount:$,usersWhoCommented:ae,activeUsersList:ne,currentUser:oe,small:!0})]}),R.jsx(A,{annotationId:r.id,commentInputIsOpen:h,setCommentInputIsOpen:f,commentsCount:$,initialCommentsCount:Q,assetCompanyId:s,setCommentsCount:ee,currentUser:oe})]}),V&&R.jsx(q,{open:V,text:"Do you really want to delete annotation?",handleClose:function(){return J(!1)},handleOk:ie,okText:"Delete"})]})};P.propTypes={user:s.shape({id:s.number.isRequired,first_name:s.string.isRequired,last_name:s.string.isRequired,profile_photo:s.string.isRequired}).isRequired,currentUser:s.shape({}).isRequired,classes:s.shape({}).isRequired},z.propTypes={actionsMenuAnchorEl:s.oneOf([s.node,null]).isRequired,handleToggleActionsMenu:s.func.isRequired,classes:s.shape({}).isRequired,handleDelete:s.func.isRequired,handleEdit:s.func.isRequired},L.propTypes={included:s.arrayOf(s.shape({})).isRequired,annotation:s.shape({relationships:s.shape({user:s.shape({data:s.shape({id:s.string.isRequired}).isRequired}).isRequired,mentioned_users:s.shape({data:s.arrayOf(s.shape({})).isRequired}).isRequired}).isRequired,attributes:s.shape({body:s.string.isRequired,created_at:s.string.isRequired})}).isRequired,classes:s.shape({}).isRequired,showSuccessNotification:s.func,width:s.string.isRequired,assetCompanyId:s.number.isRequired},L.defaultProps={showSuccessNotification:function(){}};var W=c.flowRight([o.withStyles((function(e){return{container:{backgroundColor:"#3b3b3be6",marginBottom:16,marginLeft:26},headerDividerRoot:{margin:"10px 0"},createdAt:{color:e.palette.grey[700],marginLeft:5},link:{cursor:"pointer"},iconButtonRoot:{height:24,width:24,padding:0,margin:"0 -10px 0 5px"}}})),E.default()])(L);module.exports=W;
1
+ "use strict";var e=require("react"),t=require("classnames"),i=require("prop-types"),n=require("@material-ui/core/styles"),a=require("lodash"),s=require("@material-ui/core/withWidth"),r=require("moment"),o=require("@material-ui/core"),d=require("@material-ui/core/colors/grey"),l=require("@material-ui/icons/MoreVert"),c=require("../../../../../Avatar/index.js"),u=require("../../../../../UserCardPopover.js"),m=require("../../../../../ConfirmationDialog.js"),h=require("../../../../../CommentsInfo/index.js"),p=require("../../../../../UserMention/utils/index.js"),q=require("../../../../../Attachment/index.js"),x=require("../../../../../../utils/mobileDetect.js"),j=require("../../../../../../clients/jsonApi/index.js"),f=require("../AnnotationComments/index.js"),g=require("../../../../AnnotationsContext.js"),y=require("../../../../constants.js"),A=require("../AnnotationInput/index.js"),_=require("./style.css.js"),C=require("react/jsx-runtime");function v(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var N=v(t),R=v(s),b=v(r),T=v(d),I=v(l);const M="AppAnnotationItemPo",D=e=>{let{user:t,currentUser:i,classes:n}=e;return C.jsx("div",{className:_.cAnnotationUserAvatar,children:x.isNativeDetected?C.jsx(c.default,{displayName:`${t.first_name} ${t.last_name}`,imgSrc:t.profile_photo,size:38,className:n.avatar}):C.jsx(u,{user:t,currentUser:i,children:C.jsx(c.default,{displayName:`${t.first_name} ${t.last_name}`,imgSrc:t.profile_photo,size:38,className:n.avatar})})})},$=e=>{let{actionsMenuAnchorEl:t,handleToggleActionsMenu:i,classes:n,handleEdit:a,handleDelete:s}=e;return C.jsxs(C.Fragment,{children:[C.jsx(o.IconButton,{"data-testid":`${M}_menuButton`,"aria-label":"Actions","aria-owns":t?_.cAnnotationContainerActionsMenu:void 0,"aria-haspopup":"true",className:n.iconButtonRoot,onClick:i,children:C.jsx(I.default,{htmlColor:T.default[400]})}),C.jsxs(o.Menu,{id:"cAnnotationContainerActionsMenu",anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:t,open:!!t,onClick:i,children:[C.jsx(o.MenuItem,{"data-testid":`${M}_editMenuItem`,onClick:a,children:"Edit"}),C.jsx(o.MenuItem,{"data-testid":`${M}_deleteMenuItem`,onClick:s,children:"Delete"})]})]})},w=t=>{let{included:i,annotation:n,assetCompanyId:a,classes:r,showSuccessNotification:d,width:l}=t;const[c,u]=e.useState(!1),[v,R]=e.useState(null),[T,I]=e.useState(!1),[w,E]=e.useState(!1),O=!s.isWidthUp("sm",l),S=n.attributes.comments_count||0,[U,k]=e.useState(S),B=g.useAnnotationsDispatch(),z=n.relationships.comment_users.data.reduce(((e,t)=>{let{id:n}=t;const a=i.find((e=>e.id===n));return a&&e.push(a.attributes),e}),[]),P=z.map((e=>{let{last_name:t,first_name:i}=e;return`${i} ${t}`})),L=n.relationships.user.data.id,W=i.find((e=>{let{type:t,id:i}=e;return"user"===t&&i===L})),F=W.attributes,{attachment:Y}=n.attributes;return C.jsxs(o.Paper,{className:r.container,elevation:0,children:[C.jsxs("div",{"data-testid":`${M}_annotation_${n.attributes.body}`,className:_.cAnnotationContainer,children:[C.jsx(D,{user:F,classes:r,isNative:x.isNativeDetected,currentUser:W}),C.jsxs("div",{className:_.cAnnotationContainerTop,children:[C.jsxs("div",{className:_.cAnnotationContainerTopMainInfo,children:[C.jsx(o.Typography,{variant:"body2","data-testid":`${M}_userName`,children:`${F.first_name} ${F.last_name}`}),C.jsx(o.Typography,{"data-testid":`${M}_addDate`,variant:"caption",className:r.createdAt,children:b.default(n.attributes.created_at).format("MM/DD/YY H:mm")})]}),C.jsx("div",{className:N.default(_.cAnnotationContainerTopMenu,{[_.cAnnotationContainerTopMenuSmall]:O}),children:C.jsx($,{actionsMenuAnchorEl:v,handleToggleActionsMenu:e=>{const t=e.currentTarget;R(v?null:t)},handleEdit:()=>I(!0),handleDelete:()=>E(!0),classes:r})})]}),C.jsx(o.Divider,{className:r.headerDividerRoot}),C.jsx("div",{"data-testid":`${M}_message`,className:_.cAnnotationContainerContent,children:T?C.jsx(A,{initialText:n.attributes.body,assetCompanyId:a,initialPeriod:n.attributes.created_at,initialAttachment:Y,onSend:async(e,t,i)=>{try{const a={body:e,active_until:t,attachment:{file_name:i&&i.attachmentName,signed_url:i&&i.attachmentUrl}},s=await j.patchAnnotation(n.id,a);B({type:y.EDIT_ANNOTATION,annotation:s,id:n.id})}catch(e){return void console.error(e)}d("Annotation has been changed"),I(!1)},onClose:()=>I(!1),closeOnEsc:!0}):C.jsxs(C.Fragment,{children:[p.formatMentionText(n.attributes.body,n.relationships.mentioned_users.data,x.isNativeDetected,null,W),Y&&Y.signed_url&&C.jsx(q,{attachmentUrl:Y.signed_url,fileName:Y.file_name,size:"small"})]})})]}),C.jsxs("div",{"data-testid":`${M}_comments_${n.attributes.body}`,className:_.cAnnotationComments,children:[C.jsxs("div",{className:_.cAnnotationCommentsInfo,children:[C.jsx(o.Typography,{"data-testid":`${M}_commentButton`,variant:"caption",color:"primary",className:r.link,onClick:()=>u(!0),children:"Comment"}),C.jsx(h,{commentsCount:U,usersWhoCommented:P,activeUsersList:z,currentUser:W,small:!0})]}),C.jsx(f,{annotationId:n.id,commentInputIsOpen:c,setCommentInputIsOpen:u,commentsCount:U,initialCommentsCount:S,assetCompanyId:a,setCommentsCount:k,currentUser:W})]}),w&&C.jsx(m,{open:w,text:"Do you really want to delete annotation?",handleClose:()=>E(!1),handleOk:async()=>{try{await j.deleteAnnotation(n.id)&&B({type:y.DELETE_ANNOTATION,id:n.id})}catch(e){console.error(e)}},okText:"Delete"})]})};D.propTypes={user:i.shape({id:i.number.isRequired,first_name:i.string.isRequired,last_name:i.string.isRequired,profile_photo:i.string.isRequired}).isRequired,currentUser:i.shape({}).isRequired,classes:i.shape({}).isRequired},$.propTypes={actionsMenuAnchorEl:i.oneOf([i.node,null]).isRequired,handleToggleActionsMenu:i.func.isRequired,classes:i.shape({}).isRequired,handleDelete:i.func.isRequired,handleEdit:i.func.isRequired},w.propTypes={included:i.arrayOf(i.shape({})).isRequired,annotation:i.shape({relationships:i.shape({user:i.shape({data:i.shape({id:i.string.isRequired}).isRequired}).isRequired,mentioned_users:i.shape({data:i.arrayOf(i.shape({})).isRequired}).isRequired}).isRequired,attributes:i.shape({body:i.string.isRequired,created_at:i.string.isRequired})}).isRequired,classes:i.shape({}).isRequired,showSuccessNotification:i.func,width:i.string.isRequired,assetCompanyId:i.number.isRequired},w.defaultProps={showSuccessNotification:()=>{}};var E=a.flowRight([n.withStyles((e=>({container:{backgroundColor:"#3b3b3be6",marginBottom:16,marginLeft:26},headerDividerRoot:{margin:"10px 0"},createdAt:{color:e.palette.grey[700],marginLeft:5},link:{cursor:"pointer"},iconButtonRoot:{height:24,width:24,padding:0,margin:"0 -10px 0 5px"}}))),R.default()])(w);module.exports=E;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/helpers/toConsumableArray"),n=require("@babel/runtime/helpers/slicedToArray"),r=require("@babel/runtime/regenerator"),s=require("react"),a=require("prop-types"),o=require("@material-ui/core/styles"),i=require("@material-ui/core"),u=require("../../../../../../clients/jsonApi/index.js"),c=require("../../../../../LoadingIndicator/LoadingIndicator.js"),l=require("../../../../../CommentInput/index.js"),m=require("../../../../../CommentLoader.js"),d=require("../../../../../Comment/index.js"),p=require("./style.css.js"),f=require("react/jsx-runtime");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=C(e),b=C(t),x=C(n),q=C(r),v=function(e){var t=e.annotationId,n=e.commentInputIsOpen,r=e.commentsCount,a=e.setCommentsCount,o=e.initialCommentsCount,C=e.classes,v=e.assetCompanyId,j=e.currentUser,y=s.useRef(),I=s.useState([]),g=x.default(I,2),k=g[0],w=g[1],A=s.useState(!1),R=x.default(A,2),L=R[0],S=R[1],T=s.useState(!1),M=x.default(T,2),N=M[0],U=M[1],_=s.useState(1),O=x.default(_,2),V=O[0],z=O[1],B=s.useState(3),D=x.default(B,2),E=D[0],G=D[1],P=function(e){var t=k.findIndex((function(t){return t.id===e.id})),n=b.default(k);n.splice(t,1,e),w(n)},F=function(e){w(k.filter((function(t){return t.id!==e}))),a(r-1)};s.useEffect((function(){function e(){return(e=h.default(q.default.mark((function e(){var n;return q.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return S(!0),e.prev=3,e.next=6,u.getAnnotationComments(t,{page:V,per_page:3,order:"desc"});case 6:n=e.sent,w(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.error(e.t0);case 13:S(!1);case 14:case"end":return e.stop()}}),e,null,[[3,10]])})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var H,J=(H=h.default(q.default.mark((function e(){var n,s,a;return q.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(!0),G((s=(n=3===E)?7:10)+E),e.prev=4,e.next=7,u.getAnnotationComments(t,{page:n?1:V,per_page:s,order:"desc",offset:1===V?k.length:r-o+10});case 7:a=e.sent,w([].concat(b.default(k),b.default(a))),n||z(V+1),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),console.error(e.t0);case 15:S(!1);case 16:case"end":return e.stop()}}),e,null,[[4,12]])}))),function(){return H.apply(this,arguments)}),K=k.slice(0,E).reverse(),Q=r>E;return L&&!k.length?f.jsx(c,{fullscreen:!1}):f.jsxs("div",{className:p.cAnnotationCommentsList,children:[Q&&f.jsx(i.Button,{"data-testid":"".concat("annotationComments","_viewMoreComments"),className:C.showMore,onClick:J,children:f.jsx(i.Typography,{variant:"caption",color:"primary",children:"View more comments"})}),f.jsxs("div",{className:p.cAnnotationCommentsListItems,children:[L&&k.length&&f.jsx(c,{fullscreen:!1,size:30}),K.map((function(e){return f.jsx(d,{comment:e,handleDeleteCallback:F,patchCommentCallback:P,companyId:v,currentUser:j},e.id)}))]}),N&&f.jsx(m,{spaceAround:!0}),n&&f.jsx("div",{className:p.cAnnotationCommentsListInput,children:f.jsx(l,{inputRef:y,postComment:function(e){return u.postAnnotationComment(t,e)},setIsPosting:U,postCommentCallback:function(e){w([e].concat(b.default(k))),a(r+1)},onMount:function(){var e=y.current;e&&(e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),e.focus())},companyId:v,currentUser:j})})]})};v.propTypes={annotationId:a.string.isRequired,commentInputIsOpen:a.bool.isRequired,commentsCount:a.number.isRequired,initialCommentsCount:a.number.isRequired,setCommentsCount:a.func.isRequired,classes:a.shape().isRequired,assetCompanyId:a.number.isRequired,currentUser:a.shape({}).isRequired};var j=o.withStyles({showMore:{textTransform:"none",backgroundColor:"transparent!important",padding:0}})(v);module.exports=j;
1
+ "use strict";var e=require("react"),t=require("prop-types"),n=require("@material-ui/core/styles"),s=require("@material-ui/core"),o=require("../../../../../../clients/jsonApi/index.js"),r=require("../../../../../LoadingIndicator/LoadingIndicator.js"),i=require("../../../../../CommentInput/index.js"),a=require("../../../../../CommentLoader.js"),c=require("../../../../../Comment/index.js"),m=require("./style.css.js"),u=require("react/jsx-runtime");const l=t=>{let{annotationId:n,commentInputIsOpen:l,commentsCount:d,setCommentsCount:p,initialCommentsCount:C,classes:h,assetCompanyId:q,currentUser:j}=t;const I=e.useRef(),[x,g]=e.useState([]),[y,f]=e.useState(!1),[b,R]=e.useState(!1),[v,w]=e.useState(1),[A,k]=e.useState(3),L=e=>{const t=x.findIndex((t=>{let{id:n}=t;return n===e.id})),n=[...x];n.splice(t,1,e),g(n)},S=e=>{g(x.filter((t=>{let{id:n}=t;return n!==e}))),p(d-1)};e.useEffect((()=>{!async function(){if(n){f(!0);try{const e=await o.getAnnotationComments(n,{page:v,per_page:3,order:"desc"});g(e)}catch(e){console.error(e)}f(!1)}}()}),[]);const M=x.slice(0,A).reverse(),N=d>A;return y&&!x.length?u.jsx(r,{fullscreen:!1}):u.jsxs("div",{className:m.cAnnotationCommentsList,children:[N&&u.jsx(s.Button,{"data-testid":"annotationComments_viewMoreComments",className:h.showMore,onClick:async()=>{f(!0);const e=3===A,t=e?7:10;k(t+A);try{const s=await o.getAnnotationComments(n,{page:e?1:v,per_page:t,order:"desc",offset:1===v?x.length:d-C+10});g([...x,...s]),e||w(v+1)}catch(e){console.error(e)}f(!1)},children:u.jsx(s.Typography,{variant:"caption",color:"primary",children:"View more comments"})}),u.jsxs("div",{className:m.cAnnotationCommentsListItems,children:[y&&x.length&&u.jsx(r,{fullscreen:!1,size:30}),M.map((e=>u.jsx(c,{comment:e,handleDeleteCallback:S,patchCommentCallback:L,companyId:q,currentUser:j},e.id)))]}),b&&u.jsx(a,{spaceAround:!0}),l&&u.jsx("div",{className:m.cAnnotationCommentsListInput,children:u.jsx(i,{inputRef:I,postComment:e=>o.postAnnotationComment(n,e),setIsPosting:R,postCommentCallback:e=>{g([e,...x]),p(d+1)},onMount:()=>{const{current:e}=I;e&&(e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),e.focus())},companyId:q,currentUser:j})})]})};l.propTypes={annotationId:t.string.isRequired,commentInputIsOpen:t.bool.isRequired,commentsCount:t.number.isRequired,initialCommentsCount:t.number.isRequired,setCommentsCount:t.func.isRequired,classes:t.shape().isRequired,assetCompanyId:t.number.isRequired,currentUser:t.shape({}).isRequired};var d=n.withStyles({showMore:{textTransform:"none",backgroundColor:"transparent!important",padding:0}})(l);module.exports=d;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),t=require("prop-types"),o=require("@material-ui/core"),i=require("@material-ui/core/styles"),n=require("react/jsx-runtime");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=s(e),u=s(r),a=s(t),p=["classes"];function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function f(e){var r=e.classes,t=u.default(e,p);return n.jsx(o.Select,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?l(Object(t),!0).forEach((function(r){c.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({classes:r,className:r.rootParent},t))}f.propTypes={classes:a.default.shape().isRequired};var b=i.withStyles({rootParent:{overflow:"hidden"},root:{fontSize:"10px",lineHeight:"12px"},select:{padding:"0 40px 0 0"}},{withTheme:!0})(f);module.exports=b;
1
+ "use strict";var e=require("prop-types"),r=require("@material-ui/core"),t=require("@material-ui/core/styles"),s=require("react/jsx-runtime");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(e);function o(e){let{classes:t,...i}=e;return s.jsx(r.Select,{classes:t,className:t.rootParent,...i})}o.propTypes={classes:a.default.shape().isRequired};var l=t.withStyles({rootParent:{overflow:"hidden"},root:{fontSize:"10px",lineHeight:"12px"},select:{padding:"0 40px 0 0"}},{withTheme:!0})(o);module.exports=l;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),n=require("moment"),i=require("prop-types"),a=require("@material-ui/core/styles"),o=require("@material-ui/core"),l=require("@material-ui/icons/Send"),r=require("@material-ui/core/colors/grey"),s=require("../../../../../UserMention/index.js"),c=require("../../../../../EmojiIconButton.js"),u=require("../../../../../FileUploadIconButton.js"),d=require("../../../../../FailedFileUploading.js"),p=require("../../../../../FilePreview/index.js"),m=require("../../../../../UserMention/utils/index.js"),h=require("../../../../../../effects/useEscPress.js"),f=require("../../../../constants.js"),j=require("./StyledSelect.js"),g=require("./style.css.js"),x=require("react/jsx-runtime");function A(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var I=A(e),y=A(n),N=A(l),b=A(r),v="AppAnnotationsPo",S=Object.keys(f.ANNOTATION_ACTIVE_PERIODS),T=function(e){var n=e.initialText,i=e.initialPeriod,a=e.onSend,l=e.onClose,r=e.closeOnEsc,A=e.classes,T=e.initialAttachment,q=e.assetCompanyId,C=e.currentUser,E=t.useState(n),_=I.default(E,2),O=_[0],U=_[1],P=t.useState((function(){return T?{attachmentName:T.file_name,attachmentUrl:T.signed_url||T.s3_link}:null})),R=I.default(P,2),B=R[0],k=R[1],D=t.useState(null),F=I.default(D,2),w=F[0],L=F[1],M=t.useState(!1),z=I.default(M,2),H=z[0],V=z[1],W=t.useState(S[0]),K=I.default(W,2),G=K[0],J=K[1];h((function(){r&&l()}));var Q=function(){if(O){var e=function(e,t){if("forever"===e)return null;var n=f.ANNOTATION_ACTIVE_PERIODS[e];return y.default(t).add(n.time.amount,n.time.key).format()}(G,i);a(O,e,B)}};return x.jsxs("div",{className:g.cAnnotationInput,children:[x.jsxs(o.Paper,{className:g.cAnnotationInputContent,children:[x.jsx(o.Input,{"data-testid":"".concat(v,"_annotationsInput"),inputComponent:s,inputProps:{withLightTheme:!1,onChange:function(e){return U(e)},onKeyDown:function(e){"Shift"===e.key&&V(!0),"Enter"!==e.key||H||m.isSuggestionsListOpened()||(e.preventDefault(),Q())},onKeyUp:function(e){"Shift"===e.key&&V(!1)},companyId:q,currentUser:C},placeholder:"Type annotation here",fullWidth:!0,disableUnderline:!0,multiline:!0,rows:"3",className:A.inputRoot,value:O}),x.jsxs("div",{className:g.cAnnotationInputContentActions,children:[x.jsx(o.Tooltip,{title:"Attach File",placement:"bottom",children:x.jsx("div",{className:g.cAnnotationInputContentActionsButton,children:x.jsx(u,{"data-testid":"".concat(v,"_attachFileButton"),openPreviewDialogOnUpload:!1,disableRipple:!0,onFinish:function(e,t,n){k({attachmentUrl:e,attachmentName:t,attachmentSize:n}),L(null)},onError:function(e){k(null),L(e)},htmlColor:"action"})})}),x.jsx(o.Tooltip,{title:"Add Emoji",placement:"bottom",children:x.jsx("div",{className:g.cAnnotationInputContentActionsButton,children:x.jsx(c,{"data-testid":"".concat(v,"_emojiButton"),htmlColor:b.default[400],handleSelectEmoji:function(e){return U("".concat(O).concat(e.native))}})})})]})]}),w&&x.jsx(d,{className:A.uploadingError,errorMessage:w}),B&&B.attachmentUrl&&x.jsx(p,{fileName:B.attachmentName,fileUrl:B.attachmentUrl,handleFileDelete:function(){k(null),L(null)}}),x.jsxs("div",{className:g.cAnnotationInputActions,children:[x.jsxs(o.FormControl,{className:A.formControl,children:[x.jsx(o.InputLabel,{shrink:!0,id:"periods-label-label",className:A.selectLabel,children:"Active"}),x.jsx(j,{"data-testid":"".concat(v,"_periodDropdown"),labelId:"periods-label-label",id:"periods-label",value:G,disableUnderline:!0,onChange:function(e){return J(e.target.value)},children:S.map((function(e){return x.jsx(o.MenuItem,{"data-testid":"".concat(v,"_period_").concat(f.ANNOTATION_ACTIVE_PERIODS[e].label,"MenuItem"),value:e,children:f.ANNOTATION_ACTIVE_PERIODS[e].label},e)}))})]}),x.jsxs("div",{className:g.cAnnotationInputActionsSend,children:[x.jsxs(o.Typography,{variant:"caption",className:A.sendLabel,children:["Press ",x.jsx(o.Typography,{variant:"caption",color:"primary",component:"span",className:A.labelHighlighter,children:"Enter "}),"to send "]}),x.jsx(o.Tooltip,{title:"Send",placement:"bottom",children:x.jsx("div",{children:x.jsx(o.IconButton,{"data-testid":"".concat(v,"_sendButton"),className:A.sendButton,onClick:Q,disabled:!O,children:x.jsx(N.default,{color:"primary"})})})})]})]})]})};T.propTypes={initialText:i.string,initialPeriod:i.string,initialAttachment:i.shape({file_name:i.string,s3_link:i.string}),onSend:i.func,onClose:i.func,closeOnEsc:i.bool,assetCompanyId:i.number.isRequired,currentUser:i.shape().isRequired,classes:i.shape().isRequired},T.defaultProps={initialText:"",initialPeriod:void 0,initialAttachment:null,onSend:function(){},onClose:function(){},closeOnEsc:!1};var q=a.withStyles((function(e){return{inputLabel:{color:e.palette.grey[700],fontWeight:200,width:"100%"},inputRoot:{lineHeight:15},sendLabel:{display:"flex",alignItems:"center",fontWeight:200,color:e.palette.grey[700],marginRight:22,fontSize:10},sendButton:{padding:5},labelHighlighter:{fontWeight:200,fontSize:10},selectLabel:{fontSize:10,lineHeight:"14px",color:e.palette.grey[500]},uploadingError:{paddingTop:"10px"}}}))(T);module.exports=q;
1
+ "use strict";var e=require("react"),t=require("moment"),n=require("prop-types"),i=require("@material-ui/core/styles"),a=require("@material-ui/core"),l=require("@material-ui/icons/Send"),s=require("@material-ui/core/colors/grey"),o=require("../../../../../UserMention/index.js"),r=require("../../../../../EmojiIconButton.js"),c=require("../../../../../FileUploadIconButton.js"),d=require("../../../../../FailedFileUploading.js"),u=require("../../../../../FilePreview/index.js"),p=require("../../../../../UserMention/utils/index.js"),m=require("../../../../../../effects/useEscPress.js"),h=require("../../../../constants.js"),j=require("./StyledSelect.js"),g=require("./style.css.js"),x=require("react/jsx-runtime");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var A=f(t),I=f(l),N=f(s);const y="AppAnnotationsPo",b=Object.keys(h.ANNOTATION_ACTIVE_PERIODS),S=t=>{let{initialText:n,initialPeriod:i,onSend:l,onClose:s,closeOnEsc:f,classes:S,initialAttachment:T,assetCompanyId:v,currentUser:q}=t;const[C,E]=e.useState(n),[_,O]=e.useState((()=>T?{attachmentName:T.file_name,attachmentUrl:T.signed_url||T.s3_link}:null)),[U,P]=e.useState(null),[R,B]=e.useState(!1),[k,D]=e.useState(b[0]);m((()=>{f&&s()}));const F=()=>{if(C){const e=((e,t)=>{if("forever"===e)return null;const n=h.ANNOTATION_ACTIVE_PERIODS[e];return A.default(t).add(n.time.amount,n.time.key).format()})(k,i);l(C,e,_)}};return x.jsxs("div",{className:g.cAnnotationInput,children:[x.jsxs(a.Paper,{className:g.cAnnotationInputContent,children:[x.jsx(a.Input,{"data-testid":`${y}_annotationsInput`,inputComponent:o,inputProps:{withLightTheme:!1,onChange:e=>E(e),onKeyDown:e=>{"Shift"===e.key&&B(!0),"Enter"!==e.key||R||p.isSuggestionsListOpened()||(e.preventDefault(),F())},onKeyUp:e=>{"Shift"===e.key&&B(!1)},companyId:v,currentUser:q},placeholder:"Type annotation here",fullWidth:!0,disableUnderline:!0,multiline:!0,rows:"3",className:S.inputRoot,value:C}),x.jsxs("div",{className:g.cAnnotationInputContentActions,children:[x.jsx(a.Tooltip,{title:"Attach File",placement:"bottom",children:x.jsx("div",{className:g.cAnnotationInputContentActionsButton,children:x.jsx(c,{"data-testid":`${y}_attachFileButton`,openPreviewDialogOnUpload:!1,disableRipple:!0,onFinish:(e,t,n)=>{O({attachmentUrl:e,attachmentName:t,attachmentSize:n}),P(null)},onError:e=>{O(null),P(e)},htmlColor:"action"})})}),x.jsx(a.Tooltip,{title:"Add Emoji",placement:"bottom",children:x.jsx("div",{className:g.cAnnotationInputContentActionsButton,children:x.jsx(r,{"data-testid":`${y}_emojiButton`,htmlColor:N.default[400],handleSelectEmoji:e=>E(`${C}${e.native}`)})})})]})]}),U&&x.jsx(d,{className:S.uploadingError,errorMessage:U}),_&&_.attachmentUrl&&x.jsx(u,{fileName:_.attachmentName,fileUrl:_.attachmentUrl,handleFileDelete:()=>{O(null),P(null)}}),x.jsxs("div",{className:g.cAnnotationInputActions,children:[x.jsxs(a.FormControl,{className:S.formControl,children:[x.jsx(a.InputLabel,{shrink:!0,id:"periods-label-label",className:S.selectLabel,children:"Active"}),x.jsx(j,{"data-testid":`${y}_periodDropdown`,labelId:"periods-label-label",id:"periods-label",value:k,disableUnderline:!0,onChange:e=>D(e.target.value),children:b.map((e=>x.jsx(a.MenuItem,{"data-testid":`${y}_period_${h.ANNOTATION_ACTIVE_PERIODS[e].label}MenuItem`,value:e,children:h.ANNOTATION_ACTIVE_PERIODS[e].label},e)))})]}),x.jsxs("div",{className:g.cAnnotationInputActionsSend,children:[x.jsxs(a.Typography,{variant:"caption",className:S.sendLabel,children:["Press ",x.jsx(a.Typography,{variant:"caption",color:"primary",component:"span",className:S.labelHighlighter,children:"Enter "}),"to send "]}),x.jsx(a.Tooltip,{title:"Send",placement:"bottom",children:x.jsx("div",{children:x.jsx(a.IconButton,{"data-testid":`${y}_sendButton`,className:S.sendButton,onClick:F,disabled:!C,children:x.jsx(I.default,{color:"primary"})})})})]})]})]})};S.propTypes={initialText:n.string,initialPeriod:n.string,initialAttachment:n.shape({file_name:n.string,s3_link:n.string}),onSend:n.func,onClose:n.func,closeOnEsc:n.bool,assetCompanyId:n.number.isRequired,currentUser:n.shape().isRequired,classes:n.shape().isRequired},S.defaultProps={initialText:"",initialPeriod:void 0,initialAttachment:null,onSend:()=>{},onClose:()=>{},closeOnEsc:!1};var T=i.withStyles((e=>({inputLabel:{color:e.palette.grey[700],fontWeight:200,width:"100%"},inputRoot:{lineHeight:15},sendLabel:{display:"flex",alignItems:"center",fontWeight:200,color:e.palette.grey[700],marginRight:22,fontSize:10},sendButton:{padding:5},labelHighlighter:{fontWeight:200,fontSize:10},selectLabel:{fontSize:10,lineHeight:"14px",color:e.palette.grey[500]},uploadingError:{paddingTop:"10px"}})))(S);module.exports=T;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/asyncToGenerator"),n=require("@babel/runtime/helpers/slicedToArray"),a=require("@babel/runtime/regenerator"),s=require("react"),r=require("prop-types"),i=require("classnames"),o=require("@material-ui/core/styles"),u=require("@material-ui/core"),c=require("@material-ui/icons/ChevronLeft");require("../../../../utils/index.js");var d=require("../../../../utils/mobileDetect.js"),l=require("../../../InfiniteList/index.js"),p=require("../../../../effects/useOutsideClick.js"),h=require("./components/AddAnnotationForm/index.js"),f=require("./components/Annotation/index.js"),m=require("../../../../clients/jsonApi/index.js"),y=require("../../AnnotationsContext.js"),b=require("../../constants.js"),g=require("./style.css.js"),q=require("react/jsx-runtime"),x=require("../../../../utils/notificationToasts.js");function A(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var j=A(e),T=A(t),N=A(n),v=A(a),I=A(i),C=A(c),S="AppAnnotationsPo",R=function(e){var t,n=e.appId,a=e.appTitle,r=e.assetId,i=e.assetCompanyId,o=e.appSettings,c=e.currentUser,d=e.onClose,A=e.isNative,R=e.classes,_=e.dashboardType,L=y.useAnnotationsState().annotations,k=y.useAnnotationsDispatch(),w=s.useRef(),O=s.useRef();p(w,d);var P=s.useState(!1),D=N.default(P,2),E=D[0],F=D[1],H=s.useState(!0),U=N.default(H,2),B=U[0],W=U[1],G=s.useState(!0),M=N.default(G,2),z=M[0],J=M[1],K=s.useState(1),Q=N.default(K,2),V=Q[0],X=Q[1];function Y(){return(Y=T.default(v.default.mark((function e(){var t,a,s;return v.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n&&r){e.next=2;break}return e.abrupt("return");case 2:return W(!0),e.prev=3,a={page:V,per_page:4,sort:"created_at",order:"desc"},_&&(a.dashboard_type=_),e.next=8,m.getAnnotations(n,r,a);case 8:t=e.sent,k({type:1===V?b.SET_ANNOTATIONS:b.APPEND_ANNOTATIONS,annotations:t}),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(3),console.error(e.t0);case 15:s=t&&t.data.length<4,X(V+1),J(!s),W(!1);case 19:case"end":return e.stop()}}),e,null,[[3,12]])})))).apply(this,arguments)}return s.useEffect((function(){F(!0)}),[]),q.jsx(u.RootRef,{rootRef:w,children:q.jsxs(u.Paper,{className:I.default(g.cAnnotationsList,(t={},j.default(t,g.cAnnotationsListOpen,E),j.default(t,g.cAnnotationsListOpenNative,A),t)),children:[q.jsx(l,{infiniteClassName:g.cAnnotationsListContentContainer,headerComponent:q.jsxs(q.Fragment,{children:[q.jsx(u.Typography,{"data-testid":"".concat(S,"_appTitle"),variant:"body1",className:R.title,children:a}),q.jsx("div",{className:g.cAnnotationsListContentTop,children:q.jsxs(u.Typography,{"data-testid":"".concat(S,"_annotationsTitle"),variant:"caption",className:R.secondaryTitle,children:["Annotations (",L.data?L.data.length:0,")"]})}),q.jsx(h,{appId:n,assetId:r,assetCompanyId:i,appSettings:o,currentUser:c,dashboardType:_})]}),useWindow:A,items:L.data||[],showNoItemsFound:!(L.data&&0!==L.data.length||B),noItemsFoundLabel:q.jsx(u.Typography,{variant:"body2","data-testid":"".concat(S,"_noAnnotations"),className:R.noAnnotations,children:"No Annotations yet"}),threshold:50,infiniteContainerHeight:w.current&&O.current?w.current.clientHeight-O.current.clientHeight:null,moreItemsMayExist:z,pathToCreatedAt:["attributes","created_at"],renderItem:function(e){return q.jsx(f,{isNative:A,annotation:e,assetCompanyId:i,included:L.included,currentUser:c,showSuccessNotification:x.showSuccessNotification},e.id)},loadItems:function(){return Y.apply(this,arguments)}}),q.jsx("div",{className:g.cAnnotationsListActions,ref:O,children:q.jsx(u.Tooltip,{title:"Hide",placement:"bottom",children:q.jsx(u.IconButton,{"data-testid":"".concat(S,"_hideButton"),onClick:d,className:R.backIcon,children:q.jsx(C.default,{})})})})]})})};R.propTypes={appId:r.number.isRequired,appTitle:r.string.isRequired,assetId:r.number.isRequired,assetCompanyId:r.number.isRequired,appSettings:r.shape(),classes:r.shape().isRequired,onClose:r.func.isRequired,currentUser:r.shape({}).isRequired,isNative:r.bool,dashboardType:r.string},R.defaultProps={appSettings:{},isNative:d.isNativeDetected,dashboardType:null};var _=o.withStyles((function(e){return{title:{fontWeight:200,marginBottom:20},secondaryTitle:{fontWeight:200,textTransform:"uppercase",color:e.palette.grey[600]},annotateIcon:{padding:0,"&:hover":{backgroundColor:"transparent",boxShadow:"none"}},noAnnotations:{marginTop:16},backIcon:{cursor:"pointer",color:e.palette.grey[600],padding:5}}}))(s.memo(R));module.exports=_;
1
+ "use strict";var e=require("react"),t=require("prop-types"),n=require("classnames"),s=require("@material-ui/core/styles"),a=require("@material-ui/core"),i=require("@material-ui/icons/ChevronLeft");require("../../../../utils/index.js");var o=require("../../../../utils/mobileDetect.js"),r=require("../../../InfiniteList/index.js"),d=require("../../../../effects/useOutsideClick.js"),c=require("./components/AddAnnotationForm/index.js"),u=require("./components/Annotation/index.js"),l=require("../../../../clients/jsonApi/index.js"),p=require("../../AnnotationsContext.js"),h=require("../../constants.js"),m=require("./style.css.js"),y=require("react/jsx-runtime"),f=require("../../../../utils/notificationToasts.js");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var j=g(n),A=g(i);const q="AppAnnotationsPo",x=t=>{let{appId:n,appTitle:s,assetId:i,assetCompanyId:o,appSettings:g,currentUser:x,onClose:N,isNative:T,classes:I,dashboardType:b}=t;const{annotations:C}=p.useAnnotationsState(),v=p.useAnnotationsDispatch(),S=e.useRef(),R=e.useRef();d(S,N);const[_,L]=e.useState(!1),[w,O]=e.useState(!0),[k,P]=e.useState(!0),[D,E]=e.useState(1);return e.useEffect((()=>{L(!0)}),[]),y.jsx(a.RootRef,{rootRef:S,children:y.jsxs(a.Paper,{className:j.default(m.cAnnotationsList,{[m.cAnnotationsListOpen]:_,[m.cAnnotationsListOpenNative]:T}),children:[y.jsx(r,{infiniteClassName:m.cAnnotationsListContentContainer,headerComponent:y.jsxs(y.Fragment,{children:[y.jsx(a.Typography,{"data-testid":`${q}_appTitle`,variant:"body1",className:I.title,children:s}),y.jsx("div",{className:m.cAnnotationsListContentTop,children:y.jsxs(a.Typography,{"data-testid":`${q}_annotationsTitle`,variant:"caption",className:I.secondaryTitle,children:["Annotations (",C.data?C.data.length:0,")"]})}),y.jsx(c,{appId:n,assetId:i,assetCompanyId:o,appSettings:g,currentUser:x,dashboardType:b})]}),useWindow:T,items:C.data||[],showNoItemsFound:!(C.data&&0!==C.data.length||w),noItemsFoundLabel:y.jsx(a.Typography,{variant:"body2","data-testid":`${q}_noAnnotations`,className:I.noAnnotations,children:"No Annotations yet"}),threshold:50,infiniteContainerHeight:S.current&&R.current?S.current.clientHeight-R.current.clientHeight:null,moreItemsMayExist:k,pathToCreatedAt:["attributes","created_at"],renderItem:e=>y.jsx(u,{isNative:T,annotation:e,assetCompanyId:o,included:C.included,currentUser:x,showSuccessNotification:f.showSuccessNotification},e.id),loadItems:async function(){if(!n||!i)return;let e;O(!0);try{const t={page:D,per_page:4,sort:"created_at",order:"desc"};b&&(t.dashboard_type=b),e=await l.getAnnotations(n,i,t),v({type:1===D?h.SET_ANNOTATIONS:h.APPEND_ANNOTATIONS,annotations:e})}catch(e){console.error(e)}const t=e&&e.data.length<4;E(D+1),P(!t),O(!1)}}),y.jsx("div",{className:m.cAnnotationsListActions,ref:R,children:y.jsx(a.Tooltip,{title:"Hide",placement:"bottom",children:y.jsx(a.IconButton,{"data-testid":`${q}_hideButton`,onClick:N,className:I.backIcon,children:y.jsx(A.default,{})})})})]})})};x.propTypes={appId:t.number.isRequired,appTitle:t.string.isRequired,assetId:t.number.isRequired,assetCompanyId:t.number.isRequired,appSettings:t.shape(),classes:t.shape().isRequired,onClose:t.func.isRequired,currentUser:t.shape({}).isRequired,isNative:t.bool,dashboardType:t.string},x.defaultProps={appSettings:{},isNative:o.isNativeDetected,dashboardType:null};var N=s.withStyles((e=>({title:{fontWeight:200,marginBottom:20},secondaryTitle:{fontWeight:200,textTransform:"uppercase",color:e.palette.grey[600]},annotateIcon:{padding:0,"&:hover":{backgroundColor:"transparent",boxShadow:"none"}},noAnnotations:{marginTop:16},backIcon:{cursor:"pointer",color:e.palette.grey[600],padding:5}})))(e.memo(x));module.exports=N;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/regenerator"),a=require("react"),i=require("prop-types"),s=require("classnames"),n=require("lodash"),o=require("@material-ui/core/styles"),u=require("@material-ui/core/withWidth"),c=require("@material-ui/core/Paper"),d=require("@material-ui/core/Typography"),l=require("@material-ui/icons/Comment"),m=require("@material-ui/icons/Close"),p=require("../../../UserCardPopover.js"),f=require("../../../Avatar/index.js"),h=require("../../../UserMention/utils/index.js"),v=require("../../../../utils/mobileDetect.js"),q=require("../../../../clients/jsonApi/index.js"),x=require("./style.css.js"),b=require("react/jsx-runtime");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var j=y(e),g=y(t),N=y(r),A=y(s),R=y(u),U=y(c),_=y(d),C=y(l),L=y(m),T="lastAnnotation",w=function(e){var t=e.user,r=e.currentUser,a=e.isNative,i=e.className,s=e.size,n=b.jsx(f.default,{displayName:"".concat(t.first_name," ").concat(t.last_name),imgSrc:t.profile_photo,size:s,className:i});return a?n:b.jsx(p,{user:t,currentUser:r,children:n})},I=function(e){var t=e.commentsCount,r=e.commentUsers,a=e.isSmallScreen,i=e.isNative,s=e.currentUser,n=e.classes;return t?b.jsxs("div",{className:x.cTopAnnotationAdditionalReactions,children:[b.jsx(C.default,{className:n.commentIcon}),!a&&b.jsxs(_.default,{variant:"body2","data-testid":"".concat(T,"_comments"),noWrap:!0,className:n.commentText,component:"div",children:["Comments ",t]}),b.jsx("div",{className:x.cTopAnnotationAdditionalReactionsList,children:r.map((function(e,t){var r=e.attributes;return b.jsx(w,{user:r,currentUser:s,isNative:i,className:A.default(n.avatar,g.default({},n.avatarInList,0!==t)),size:25},r.id)}))})]}):null},S=function(e){var t,r=e.isNative,i=e.appId,s=e.annotation,n=e.openAnnotationsList,o=e.currentUser,c=e.updateCurrentDashboardAppLastAnnotation,d=e.width,l=e.classes,m=s.data,p=s.included,f=p.find((function(e){var t=e.id,r=e.type;return t===m.relationships.user.data.id&&"user"===r})),v=a.useMemo((function(){return m.relationships.mentioned_users.data.map((function(e){var t=e.id;return p.find((function(e){return e.id===t}))}))}),[m.relationships.mentioned_users.data,p]),y=a.useMemo((function(){return m.relationships.comment_users.data.map((function(e){var t=e.id;return p.find((function(e){return e.id===t}))}))}),[m.relationships.comment_users.data,p]),g=!u.isWidthUp("sm",d),A=(t=j.default(N.default.mark((function e(t){var r;return N.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.stopPropagation(),e.prev=1,e.next=4,q.closeLastAnnotation(m.id);case 4:r=e.sent,c(m.id,i,r),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),function(e){return t.apply(this,arguments)});return b.jsxs(U.default,{"data-testid":"".concat(T,"_lastAnnotation"),className:l.container,onClick:n,children:[b.jsxs("div",{className:x.cTopAnnotationMain,children:[b.jsx(w,{user:f.attributes,currentUser:o,isNative:r,className:l.avatar,size:38}),b.jsx(_.default,{variant:"body2","data-testid":"".concat(T,"_message"),noWrap:!0,className:l.body,children:h.formatMentionText(m.attributes.body,v,r,null,o)})]}),b.jsxs("div",{className:x.cTopAnnotationAdditional,children:[b.jsx(I,{commentsCount:m.attributes.comments_count,commentUsers:y,classes:l,isSmallScreen:g,currentUser:o}),b.jsx(L.default,{"data-testid":"".concat(T,"_closeButton"),fontSize:"small",className:l.closeButton,onClick:A})]})]})};S.propTypes={appId:i.number.isRequired,annotation:i.shape({included:i.arrayOf(i.shape({})).isRequired,data:i.shape({relationships:i.shape({user:i.shape({data:i.shape({id:i.string.isRequired}).isRequired}).isRequired,mentioned_users:i.shape({data:i.arrayOf(i.shape()).isRequired}).isRequired}).isRequired,attributes:i.shape({body:i.string.isRequired,created_at:i.string.isRequired})}).isRequired}).isRequired,classes:i.shape({}).isRequired,isNative:i.bool,width:i.string.isRequired,openAnnotationsList:i.func.isRequired,updateCurrentDashboardAppLastAnnotation:i.func,currentUser:i.shape({})},S.defaultProps={isNative:v.isNativeDetected,updateCurrentDashboardAppLastAnnotation:function(){},currentUser:{}};var z=n.flowRight([o.withStyles((function(e){return{container:{height:56,margin:"10px 0",padding:"0 20px",display:"flex",alignItems:"center",justifyContent:"space-between",flex:"auto 1",width:"100%",cursor:"pointer"},body:{margin:"0 16px ",minWidth:100},avatar:{border:"1px solid #909090"},commentIcon:{marginRight:16,color:e.palette.grey[500]},commentText:{marginRight:16,color:e.palette.grey[500]},closeButton:{color:e.palette.grey[500]},avatarInList:{marginLeft:-4}}})),R.default()])(a.memo(S));module.exports=z;
1
+ "use strict";var e=require("react"),t=require("prop-types"),s=require("classnames"),a=require("lodash"),i=require("@material-ui/core/styles"),r=require("@material-ui/core/withWidth"),n=require("@material-ui/core/Paper"),o=require("@material-ui/core/Typography"),d=require("@material-ui/icons/Comment"),u=require("@material-ui/icons/Close"),l=require("../../../UserCardPopover.js"),c=require("../../../Avatar/index.js"),m=require("../../../UserMention/utils/index.js"),p=require("../../../../utils/mobileDetect.js"),h=require("../../../../clients/jsonApi/index.js"),q=require("./style.css.js"),f=require("react/jsx-runtime");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v=x(s),y=x(r),j=x(n),g=x(o),N=x(d),b=x(u);const A="lastAnnotation",R=e=>{let{user:t,currentUser:s,isNative:a,className:i,size:r}=e;const n=f.jsx(c.default,{displayName:`${t.first_name} ${t.last_name}`,imgSrc:t.profile_photo,size:r,className:i});return a?n:f.jsx(l,{user:t,currentUser:s,children:n})},U=e=>{let{commentsCount:t,commentUsers:s,isSmallScreen:a,isNative:i,currentUser:r,classes:n}=e;return t?f.jsxs("div",{className:q.cTopAnnotationAdditionalReactions,children:[f.jsx(N.default,{className:n.commentIcon}),!a&&f.jsxs(g.default,{variant:"body2","data-testid":`${A}_comments`,noWrap:!0,className:n.commentText,component:"div",children:["Comments ",t]}),f.jsx("div",{className:q.cTopAnnotationAdditionalReactionsList,children:s.map(((e,t)=>{let{attributes:s}=e;return f.jsx(R,{user:s,currentUser:r,isNative:i,className:v.default(n.avatar,{[n.avatarInList]:0!==t}),size:25},s.id)}))})]}):null},_=t=>{let{isNative:s,appId:a,annotation:i,openAnnotationsList:n,currentUser:o,updateCurrentDashboardAppLastAnnotation:d,width:u,classes:l}=t;const{data:c,included:p}=i,x=p.find((e=>{let{id:t,type:s}=e;return t===c.relationships.user.data.id&&"user"===s})),v=e.useMemo((()=>c.relationships.mentioned_users.data.map((e=>{let{id:t}=e;return p.find((e=>{let{id:s}=e;return s===t}))}))),[c.relationships.mentioned_users.data,p]),y=e.useMemo((()=>c.relationships.comment_users.data.map((e=>{let{id:t}=e;return p.find((e=>{let{id:s}=e;return s===t}))}))),[c.relationships.comment_users.data,p]),N=!r.isWidthUp("sm",u);return f.jsxs(j.default,{"data-testid":`${A}_lastAnnotation`,className:l.container,onClick:n,children:[f.jsxs("div",{className:q.cTopAnnotationMain,children:[f.jsx(R,{user:x.attributes,currentUser:o,isNative:s,className:l.avatar,size:38}),f.jsx(g.default,{variant:"body2","data-testid":`${A}_message`,noWrap:!0,className:l.body,children:m.formatMentionText(c.attributes.body,v,s,null,o)})]}),f.jsxs("div",{className:q.cTopAnnotationAdditional,children:[f.jsx(U,{commentsCount:c.attributes.comments_count,commentUsers:y,classes:l,isSmallScreen:N,currentUser:o}),f.jsx(b.default,{"data-testid":`${A}_closeButton`,fontSize:"small",className:l.closeButton,onClick:async e=>{e.stopPropagation();try{const e=await h.closeLastAnnotation(c.id);d(c.id,a,e)}catch(e){console.error(e)}}})]})]})};_.propTypes={appId:t.number.isRequired,annotation:t.shape({included:t.arrayOf(t.shape({})).isRequired,data:t.shape({relationships:t.shape({user:t.shape({data:t.shape({id:t.string.isRequired}).isRequired}).isRequired,mentioned_users:t.shape({data:t.arrayOf(t.shape()).isRequired}).isRequired}).isRequired,attributes:t.shape({body:t.string.isRequired,created_at:t.string.isRequired})}).isRequired}).isRequired,classes:t.shape({}).isRequired,isNative:t.bool,width:t.string.isRequired,openAnnotationsList:t.func.isRequired,updateCurrentDashboardAppLastAnnotation:t.func,currentUser:t.shape({})},_.defaultProps={isNative:p.isNativeDetected,updateCurrentDashboardAppLastAnnotation:()=>{},currentUser:{}};var C=a.flowRight([i.withStyles((e=>({container:{height:56,margin:"10px 0",padding:"0 20px",display:"flex",alignItems:"center",justifyContent:"space-between",flex:"auto 1",width:"100%",cursor:"pointer"},body:{margin:"0 16px ",minWidth:100},avatar:{border:"1px solid #909090"},commentIcon:{marginRight:16,color:e.palette.grey[500]},commentText:{marginRight:16,color:e.palette.grey[500]},closeButton:{color:e.palette.grey[500]},avatarInList:{marginLeft:-4}}))),y.default()])(e.memo(_));module.exports=C;
@@ -1 +1 @@
1
- "use strict";var i=require('./../../../ext-esm/tslib/tslib.es6.js'),s=require("react/jsx-runtime");module.exports=function(t){var l=t.width,e=void 0===l?36:l,C=t.height,a=void 0===C?36:C,r=t.className,n=t["data-testid"],p=void 0===n?"DrillingAppIcon":n;return s.jsxs("svg",i.__assign({"data-testid":"".concat(p,"_drillingFe"),width:e,height:a,className:r,viewBox:"0 0 320 320",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[s.jsxs("g",i.__assign({"clip-path":"url(#clip0_2127_3259)"},{children:[s.jsx("path",{d:"M160 10.7879C77.5916 10.7879 10.7864 77.593 10.7864 160.001C10.7864 242.41 77.5916 309.215 160 309.215C242.408 309.215 309.213 242.41 309.213 160.001C309.213 77.593 242.408 10.7879 160 10.7879Z",fill:"url(#paint0_linear_2127_3259)"}),s.jsx("path",{d:"M226.25 0H93.75C42 0 0 42 0 93.75V226.25C0 278 42 320 93.75 320H226.25C278 320 320 278 320 226.25V93.75C320 42 278 0 226.25 0ZM160.5 299C83.75 299 21.5 236.75 21.5 160C21.5 83.25 83.75 21 160.5 21C237.25 21 299.5 83.25 299.5 160C299.5 236.75 237.25 299 160.5 299Z",fill:"url(#paint1_linear_2127_3259)"}),s.jsx("path",{d:"M160.499 18.5C141.499 18.5 122.749 22.25 105.499 29.75C88.7493 37 73.4993 47 60.4993 60C47.4993 73 37.2493 88.25 30.2493 105C22.7493 122.5 18.9993 141 18.9993 160C18.9993 179 22.7493 197.75 29.9993 215C37.2493 231.75 47.2493 247 60.2493 260C73.2493 273 88.4993 283.25 105.249 290.25C122.749 297.75 141.249 301.5 160.249 301.5C179.249 301.5 197.999 297.75 215.249 290.25C231.999 283 247.249 273 260.249 260C273.249 247 283.499 231.75 290.499 215C297.999 197.5 301.749 179 301.749 160C301.749 141 297.999 122.25 290.499 105C283.249 88.25 273.249 73 260.249 60C247.249 47 231.999 36.75 215.249 29.75C198.249 22.25 179.499 18.5 160.499 18.5ZM160.499 21C237.249 21 299.499 83.25 299.499 160C299.499 236.75 237.249 299 160.499 299C83.7493 299 21.4993 236.75 21.4993 160C21.4993 83.25 83.7493 21 160.499 21Z",fill:"url(#paint2_linear_2127_3259)"}),s.jsx("g",i.__assign({"clip-path":"url(#clip1_2127_3259)"},{children:s.jsxs("g",i.__assign({"clip-path":"url(#clip2_2127_3259)"},{children:[s.jsx("path",{d:"M234.017 105.374H199.532V95.5781C199.532 86.882 192.436 79.7852 183.739 79.7852H85.7832C77.0871 79.7852 69.9902 86.882 69.9902 95.5781V198.732C69.9902 207.428 77.0871 214.525 85.7832 214.525H94.7792C96.2785 214.525 97.5779 213.326 97.5779 211.726C97.5779 210.127 96.3785 208.927 94.7792 208.927H85.7832C80.1857 208.927 75.5877 204.33 75.5877 198.732V131.762H115.07V224.321C115.07 233.017 122.167 240.114 130.863 240.114H234.017C242.713 240.114 249.81 233.017 249.81 224.321V121.167C249.81 112.471 242.713 105.374 234.017 105.374ZM244.212 121.167V151.753H120.668V128.963V121.167C120.668 115.569 125.266 110.971 130.863 110.971H196.734H233.917C239.714 110.871 244.212 115.469 244.212 121.167ZM75.6877 126.164V95.6781C75.6877 90.0806 80.2856 85.4826 85.8831 85.4826H183.839C189.437 85.4826 194.035 90.0806 194.035 95.6781V105.474H130.863C122.167 105.474 115.07 112.571 115.07 121.267V126.364H75.6877V126.164ZM120.668 224.221V157.151H155.252V234.416H130.863C125.266 234.516 120.668 229.918 120.668 224.221ZM234.017 234.516H160.75V157.251H244.312V224.321C244.212 229.918 239.714 234.516 234.017 234.516Z",fill:"white"}),s.jsx("path",{d:"M146.256 124.664C142.958 124.664 140.259 127.363 140.259 130.661C140.259 133.96 142.958 136.659 146.256 136.659C149.555 136.659 152.254 133.96 152.254 130.661C152.154 127.363 149.555 124.664 146.256 124.664Z",fill:"white"}),s.jsx("path",{d:"M166.047 124.664C162.749 124.664 160.05 127.363 160.05 130.661C160.05 133.96 162.749 136.659 166.047 136.659C169.346 136.659 172.045 133.96 172.045 130.661C172.045 127.363 169.346 124.664 166.047 124.664Z",fill:"white"}),s.jsx("path",{d:"M185.839 124.664C182.54 124.664 179.841 127.363 179.841 130.661C179.841 133.96 182.54 136.659 185.839 136.659C189.137 136.659 191.836 133.96 191.836 130.661C191.836 127.363 189.137 124.664 185.839 124.664Z",fill:"white"}),s.jsx("path",{d:"M220.323 172.945H182.44C180.941 172.945 179.641 174.145 179.641 175.744C179.641 177.343 180.841 178.543 182.44 178.543H220.323C221.822 178.543 223.122 177.343 223.122 175.744C223.122 174.145 221.822 172.945 220.323 172.945Z",fill:"white"}),s.jsx("path",{d:"M220.323 203.629H182.44C180.941 203.629 179.641 204.828 179.641 206.428C179.641 208.027 180.841 209.226 182.44 209.226H220.323C221.822 209.226 223.122 208.027 223.122 206.428C223.122 204.828 221.822 203.629 220.323 203.629Z",fill:"white"})]}))}))]})),s.jsxs("defs",{children:[s.jsxs("linearGradient",i.__assign({id:"paint0_linear_2127_3259",x1:"309.213",y1:"161.991",x2:"10.7864",y2:"161.991",gradientUnits:"userSpaceOnUse"},{children:[s.jsx("stop",{"stop-color":"#00D5BE"}),s.jsx("stop",{offset:"1","stop-color":"#003D61"})]})),s.jsxs("linearGradient",i.__assign({id:"paint1_linear_2127_3259",x1:"160",y1:"442.496",x2:"160",y2:"122.496",gradientUnits:"userSpaceOnUse"},{children:[s.jsx("stop",{"stop-color":"#D1D1D1"}),s.jsx("stop",{offset:"0.1978","stop-color":"#DBDBDC"}),s.jsx("stop",{offset:"0.6835","stop-color":"#F0F0F1"}),s.jsx("stop",{offset:"1","stop-color":"#F8F7F9"})]})),s.jsxs("linearGradient",i.__assign({id:"paint2_linear_2127_3259",x1:"157.612",y1:"18.4177",x2:"163.391",y2:"301.574",gradientUnits:"userSpaceOnUse"},{children:[s.jsx("stop",{"stop-color":"#BFBFBF"}),s.jsx("stop",{offset:"0.9816","stop-color":"#F8F7F9"})]})),s.jsx("clipPath",i.__assign({id:"clip0_2127_3259"},{children:s.jsx("rect",{width:"320",height:"320",fill:"white"})})),s.jsx("clipPath",i.__assign({id:"clip1_2127_3259"},{children:s.jsx("rect",{width:"224",height:"224",fill:"white",transform:"translate(48 48)"})})),s.jsx("clipPath",i.__assign({id:"clip2_2127_3259"},{children:s.jsx("rect",{width:"223.9",height:"223.9",fill:"white",transform:"translate(48 48)"})}))]})]}))};
1
+ "use strict";var i=require('./../../../ext-esm/tslib/tslib.es6.js'),s=require("react/jsx-runtime");module.exports=function(t){var l=t.width,e=void 0===l?36:l,C=t.height,a=void 0===C?36:C,r=t.className,n=t["data-testid"],o=void 0===n?"DrillingAppIcon":n;return s.jsxs("svg",i.__assign({"data-testid":"".concat(o,"_drillingFe"),width:e,height:a,className:r,viewBox:"0 0 320 320",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[s.jsxs("g",i.__assign({clipPath:"url(#clip0_2127_3259)"},{children:[s.jsx("path",{d:"M160 10.7879C77.5916 10.7879 10.7864 77.593 10.7864 160.001C10.7864 242.41 77.5916 309.215 160 309.215C242.408 309.215 309.213 242.41 309.213 160.001C309.213 77.593 242.408 10.7879 160 10.7879Z",fill:"url(#paint0_linear_2127_3259)"}),s.jsx("path",{d:"M226.25 0H93.75C42 0 0 42 0 93.75V226.25C0 278 42 320 93.75 320H226.25C278 320 320 278 320 226.25V93.75C320 42 278 0 226.25 0ZM160.5 299C83.75 299 21.5 236.75 21.5 160C21.5 83.25 83.75 21 160.5 21C237.25 21 299.5 83.25 299.5 160C299.5 236.75 237.25 299 160.5 299Z",fill:"url(#paint1_linear_2127_3259)"}),s.jsx("path",{d:"M160.499 18.5C141.499 18.5 122.749 22.25 105.499 29.75C88.7493 37 73.4993 47 60.4993 60C47.4993 73 37.2493 88.25 30.2493 105C22.7493 122.5 18.9993 141 18.9993 160C18.9993 179 22.7493 197.75 29.9993 215C37.2493 231.75 47.2493 247 60.2493 260C73.2493 273 88.4993 283.25 105.249 290.25C122.749 297.75 141.249 301.5 160.249 301.5C179.249 301.5 197.999 297.75 215.249 290.25C231.999 283 247.249 273 260.249 260C273.249 247 283.499 231.75 290.499 215C297.999 197.5 301.749 179 301.749 160C301.749 141 297.999 122.25 290.499 105C283.249 88.25 273.249 73 260.249 60C247.249 47 231.999 36.75 215.249 29.75C198.249 22.25 179.499 18.5 160.499 18.5ZM160.499 21C237.249 21 299.499 83.25 299.499 160C299.499 236.75 237.249 299 160.499 299C83.7493 299 21.4993 236.75 21.4993 160C21.4993 83.25 83.7493 21 160.499 21Z",fill:"url(#paint2_linear_2127_3259)"}),s.jsx("g",i.__assign({clipPath:"url(#clip1_2127_3259)"},{children:s.jsxs("g",i.__assign({clipPath:"url(#clip2_2127_3259)"},{children:[s.jsx("path",{d:"M234.017 105.374H199.532V95.5781C199.532 86.882 192.436 79.7852 183.739 79.7852H85.7832C77.0871 79.7852 69.9902 86.882 69.9902 95.5781V198.732C69.9902 207.428 77.0871 214.525 85.7832 214.525H94.7792C96.2785 214.525 97.5779 213.326 97.5779 211.726C97.5779 210.127 96.3785 208.927 94.7792 208.927H85.7832C80.1857 208.927 75.5877 204.33 75.5877 198.732V131.762H115.07V224.321C115.07 233.017 122.167 240.114 130.863 240.114H234.017C242.713 240.114 249.81 233.017 249.81 224.321V121.167C249.81 112.471 242.713 105.374 234.017 105.374ZM244.212 121.167V151.753H120.668V128.963V121.167C120.668 115.569 125.266 110.971 130.863 110.971H196.734H233.917C239.714 110.871 244.212 115.469 244.212 121.167ZM75.6877 126.164V95.6781C75.6877 90.0806 80.2856 85.4826 85.8831 85.4826H183.839C189.437 85.4826 194.035 90.0806 194.035 95.6781V105.474H130.863C122.167 105.474 115.07 112.571 115.07 121.267V126.364H75.6877V126.164ZM120.668 224.221V157.151H155.252V234.416H130.863C125.266 234.516 120.668 229.918 120.668 224.221ZM234.017 234.516H160.75V157.251H244.312V224.321C244.212 229.918 239.714 234.516 234.017 234.516Z",fill:"white"}),s.jsx("path",{d:"M146.256 124.664C142.958 124.664 140.259 127.363 140.259 130.661C140.259 133.96 142.958 136.659 146.256 136.659C149.555 136.659 152.254 133.96 152.254 130.661C152.154 127.363 149.555 124.664 146.256 124.664Z",fill:"white"}),s.jsx("path",{d:"M166.047 124.664C162.749 124.664 160.05 127.363 160.05 130.661C160.05 133.96 162.749 136.659 166.047 136.659C169.346 136.659 172.045 133.96 172.045 130.661C172.045 127.363 169.346 124.664 166.047 124.664Z",fill:"white"}),s.jsx("path",{d:"M185.839 124.664C182.54 124.664 179.841 127.363 179.841 130.661C179.841 133.96 182.54 136.659 185.839 136.659C189.137 136.659 191.836 133.96 191.836 130.661C191.836 127.363 189.137 124.664 185.839 124.664Z",fill:"white"}),s.jsx("path",{d:"M220.323 172.945H182.44C180.941 172.945 179.641 174.145 179.641 175.744C179.641 177.343 180.841 178.543 182.44 178.543H220.323C221.822 178.543 223.122 177.343 223.122 175.744C223.122 174.145 221.822 172.945 220.323 172.945Z",fill:"white"}),s.jsx("path",{d:"M220.323 203.629H182.44C180.941 203.629 179.641 204.828 179.641 206.428C179.641 208.027 180.841 209.226 182.44 209.226H220.323C221.822 209.226 223.122 208.027 223.122 206.428C223.122 204.828 221.822 203.629 220.323 203.629Z",fill:"white"})]}))}))]})),s.jsxs("defs",{children:[s.jsxs("linearGradient",i.__assign({id:"paint0_linear_2127_3259",x1:"309.213",y1:"161.991",x2:"10.7864",y2:"161.991",gradientUnits:"userSpaceOnUse"},{children:[s.jsx("stop",{stopColor:"#00D5BE"}),s.jsx("stop",{offset:"1",stopColor:"#003D61"})]})),s.jsxs("linearGradient",i.__assign({id:"paint1_linear_2127_3259",x1:"160",y1:"442.496",x2:"160",y2:"122.496",gradientUnits:"userSpaceOnUse"},{children:[s.jsx("stop",{stopColor:"#D1D1D1"}),s.jsx("stop",{offset:"0.1978",stopColor:"#DBDBDC"}),s.jsx("stop",{offset:"0.6835",stopColor:"#F0F0F1"}),s.jsx("stop",{offset:"1",stopColor:"#F8F7F9"})]})),s.jsxs("linearGradient",i.__assign({id:"paint2_linear_2127_3259",x1:"157.612",y1:"18.4177",x2:"163.391",y2:"301.574",gradientUnits:"userSpaceOnUse"},{children:[s.jsx("stop",{stopColor:"#BFBFBF"}),s.jsx("stop",{offset:"0.9816",stopColor:"#F8F7F9"})]})),s.jsx("clipPath",i.__assign({id:"clip0_2127_3259"},{children:s.jsx("rect",{width:"320",height:"320",fill:"white"})})),s.jsx("clipPath",i.__assign({id:"clip1_2127_3259"},{children:s.jsx("rect",{width:"224",height:"224",fill:"white",transform:"translate(48 48)"})})),s.jsx("clipPath",i.__assign({id:"clip2_2127_3259"},{children:s.jsx("rect",{width:"223.9",height:"223.9",fill:"white",transform:"translate(48 48)"})}))]})]}))};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../constants/segment.js"),t=require("./assets/CompletionAppIcon.js"),c=require("./assets/CompletionAppIconBe.js"),n=require("./assets/DrillingAppIcon.js"),s=require("./assets/DrillingAppIconBe.js"),i=require("./assets/NoSegmentAppIcon.js"),r="/static/media/3f1e09e6e814329ccfc22c5f2fb49320.png";exports.getAppIcon=function(t){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ui";if(!t||!t.length)return r;var n="ui"===c,s=t[0];return s===e.SEGMENTS.COMPLETION?n?"/static/media/747c045c9381addbc4c6aecd531ccbff.png":"/static/media/9f235cc0306a992ec6aecee01ad6956b.png":s===e.SEGMENTS.DRILLING?n?"/static/media/dad8511026615181e47069625c14a00d.png":"/static/media/cc3725c7d2b2258f38e3e25e49ce0a53.png":r},exports.getIconComponentBySegment=function(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ui";if(!r||!r.length)return i;var o="ui"===a,p=r[0];return p===e.SEGMENTS.COMPLETION?o?t:c:p===e.SEGMENTS.DRILLING?o?n:s:i};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../constants/segment.js"),t=require("./assets/CompletionAppIcon.js"),c=require("./assets/CompletionAppIconBe.js"),n=require("./assets/DrillingAppIcon.js"),s=require("./assets/DrillingAppIconBe.js"),i=require("./assets/NoSegmentAppIcon.js");const r="/static/media/3f1e09e6e814329ccfc22c5f2fb49320.png";exports.getAppIcon=function(t){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ui";if(!t||!t.length)return r;const n="ui"===c,s=t[0];return s===e.SEGMENTS.COMPLETION?n?"/static/media/747c045c9381addbc4c6aecd531ccbff.png":"/static/media/9f235cc0306a992ec6aecee01ad6956b.png":s===e.SEGMENTS.DRILLING?n?"/static/media/dad8511026615181e47069625c14a00d.png":"/static/media/cc3725c7d2b2258f38e3e25e49ce0a53.png":r},exports.getIconComponentBySegment=function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ui";if(!r||!r.length)return i;const a="ui"===o,p=r[0];return p===e.SEGMENTS.COMPLETION?a?t:c:p===e.SEGMENTS.DRILLING?a?n:s:i};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/objectWithoutProperties"),r=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/slicedToArray"),a=require("react"),n=require("prop-types"),s=require("lodash"),i=require("classnames"),o=require("@material-ui/core");require("../../permissions/PermissionsContext.js");var l=require("../../permissions/constants/index.js"),u=require("../../permissions/withPermissionsHOC.js");require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("../../clients/jsonApi/index.js"),require("../../permissions/ProvidePermissions.js");var c=require("../TruncatedText/index.js");require("../../constants/goals.js"),require("../../constants/segment.js"),require("../../constants/alerts.js"),require("../../constants/apps.js"),require("../../constants/drillstring.js"),require("../../constants/completion.js");var d=require("../../constants/appPackages.js");require("../../constants/notifications.js"),require("../../constants/feed.js"),require("../../constants/bha.js"),require("../../utils/env.js"),require("../GradientManager/configuration/constants.js");var p=require("./effects/index.js"),b=require("react/jsx-runtime");function v(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=v(e),j=v(r),m=v(t),g=v(i),h=["appId"],P=["canReadAppPackages"];function q(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function y(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?q(Object(t),!0).forEach((function(r){j.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var O=d.PACKAGE_STATUSES,x=d.PACKAGE_LABELS,S=d.TEXT_FOR_PACKAGE_LABELS,A=o.makeStyles((function(e){return{select:{width:250,margin:"8px 0"},menuListRoot:{maxWidth:580},group:{fontStyle:"italic",fontWeight:"bold",fontSize:"12px",color:"#999",backgroundColor:e.palette.background.b9}}})),E=function(e){var r=e.className,t=e.value,n=e.onChange,i=e.isLoading,l=e.disabled,u=e.error,d=e.packages,p=A(),v=a.useState(t),f=m.default(v,2),h=f[0],P=f[1],q=a.useMemo((function(){var e,r={},t=(e={},j.default(e,x.PROD,{label:"Stable Release - no stable version",value:x.PROD,disabled:!0}),j.default(e,x.BETA,{label:"Beta - no beta version",value:x.BETA,disabled:!0}),j.default(e,x.DEV,{label:"Dev - no dev version",value:x.DEV,disabled:!0}),e),a=[];return d.filter((function(e){return e.status!==O.FAILURE})).forEach((function(e){var n=e.version,s=e.package_code_version,i=e.notes,o=e.label,l=e.status,u="v".concat(s||n);if(o){var c=t[o];c.label="".concat(S[o]," ").concat(u," ").concat(i?"- ".concat(i):""),c.disabled=!1,r[c.value]=e}else r[n]=e,a.push({label:"".concat(u," ").concat(i?"- ".concat(i):""),value:n,status:l})})),{labeled:Object.values(t),unlabeled:a,packageByValue:r}}),[d]),y=q.labeled,E=q.unlabeled,_=q.packageByValue,w=function(e){return n(e,_[e])},D=d.some((function(e){return!e.label})),L=!s.isEmpty(d);return a.useEffect((function(){if(L&&!t){var e=y.find((function(e){return!e.disabled}))||s.maxBy(E.filter((function(e){return e.status===O.PUBLISHED})),"value");P(null==e?void 0:e.value),w(null==e?void 0:e.value)}}),[y,E]),i||u?null:b.jsx(o.Grid,{children:b.jsxs(o.FormControl,{className:g.default(p.select,r),children:[b.jsx(o.InputLabel,{shrink:!(!t&&!h),htmlFor:"appVersion",children:"App Version"}),b.jsxs(o.Select,{"data-testid":"".concat("DC_versionSelect","_dropdown"),value:t||h,onChange:function(e){return w(e.target.value)},disabled:i||l,label:"App Version",inputProps:{name:"appVersion",id:"appVersion"},MenuProps:{MenuListProps:{classes:{root:p.menuListRoot}}},children:[D&&b.jsx(o.ListSubheader,{className:p.group,children:"Labelled Versions (When selected always shows current Stable Release, Beta or Dev version)"}),y.map((function(e){var r=e.label,t=e.value,a=e.disabled;return b.jsx(o.MenuItem,{"data-testid":"".concat("DC_versionSelect","_option_").concat(r,"MenuItem"),value:t,disabled:a,children:r})})),D&&b.jsx(o.ListSubheader,{className:p.group,children:"Other versions (App will always show selected version until version is deleted)"}),E.map((function(e){var r=e.label,t=e.value;return b.jsx(o.MenuItem,{"data-testid":"".concat("DC_versionSelect","_option_").concat(r,"MenuItem"),value:t,children:b.jsx(c,{children:r})})}))]})]})})};E.defaultProps={disabled:!1,error:null,isLoading:!1,packages:[],value:null};var _=function(e){var r=e.appId,t=f.default(e,h),a=p(r,{status:[O.DRAFT,O.PUBLISHED],order:"desc",sort:"created_at"});return b.jsx(E,y(y({},t),a))};_.propTypes={value:n.string,onChange:n.func.isRequired,appId:n.string.isRequired},_.defaultProps={value:null};var w=u.withPermissionsHOC({canReadAppPackages:function(e){var r=e.appId;return l.PERMISSIONS.getCanReadAppPackages(r)}},{loader:null})((function(e){var r=e.canReadAppPackages,t=f.default(e,P);return r&&b.jsx(_,y({},t))}));exports.AppVersionsSelectView=E,exports.default=w;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),s=require("prop-types"),r=require("lodash"),a=require("classnames"),t=require("@material-ui/core");require("../../permissions/PermissionsContext.js");var n=require("../../permissions/constants/index.js"),i=require("../../permissions/withPermissionsHOC.js");require("query-string"),require("../../clients/api/apiCore.js"),require("../../clients/constants.js"),require("../../permissions/ProvidePermissions.js");var l=require("../TruncatedText/index.js");require("../../constants/goals.js"),require("../../constants/segment.js"),require("../../constants/alerts.js"),require("../../constants/apps.js"),require("../../constants/drillstring.js"),require("../../constants/completion.js");var o=require("../../constants/appPackages.js");require("../../constants/notifications.js"),require("../../constants/feed.js"),require("../../constants/bha.js"),require("../../utils/env.js"),require("../GradientManager/configuration/constants.js");var u=require("./effects/index.js"),d=require("react/jsx-runtime");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=c(a);const{PACKAGE_STATUSES:v,PACKAGE_LABELS:b,TEXT_FOR_PACKAGE_LABELS:j}=o,m=t.makeStyles((e=>({select:{width:250,margin:"8px 0"},menuListRoot:{maxWidth:580},group:{fontStyle:"italic",fontWeight:"bold",fontSize:"12px",color:"#999",backgroundColor:e.palette.background.b9}}))),g=s=>{let{className:a,value:n,onChange:i,isLoading:o,disabled:u,error:c,packages:g}=s;const q=m(),[h,f]=e.useState(n),{labeled:x,unlabeled:P,packageByValue:S}=e.useMemo((()=>{const e={},s={[b.PROD]:{label:"Stable Release - no stable version",value:b.PROD,disabled:!0},[b.BETA]:{label:"Beta - no beta version",value:b.BETA,disabled:!0},[b.DEV]:{label:"Dev - no dev version",value:b.DEV,disabled:!0}},r=[];return g.filter((e=>e.status!==v.FAILURE)).forEach((a=>{const{version:t,package_code_version:n,notes:i,label:l,status:o}=a,u=`v${n||t}`;if(l){const r=s[l];r.label=`${j[l]} ${u} ${i?`- ${i}`:""}`,r.disabled=!1,e[r.value]=a}else e[t]=a,r.push({label:`${u} ${i?`- ${i}`:""}`,value:t,status:o})})),{labeled:Object.values(s),unlabeled:r,packageByValue:e}}),[g]),A=e=>i(e,S[e]),E=g.some((e=>!e.label)),_=!r.isEmpty(g);return e.useEffect((()=>{if(_&&!n){const e=x.find((e=>!e.disabled))||r.maxBy(P.filter((e=>e.status===v.PUBLISHED)),"value");f(null==e?void 0:e.value),A(null==e?void 0:e.value)}}),[x,P]),o||c?null:d.jsx(t.Grid,{children:d.jsxs(t.FormControl,{className:p.default(q.select,a),children:[d.jsx(t.InputLabel,{shrink:!(!n&&!h),htmlFor:"appVersion",children:"App Version"}),d.jsxs(t.Select,{"data-testid":"DC_versionSelect_dropdown",value:n||h,onChange:e=>A(e.target.value),disabled:o||u,label:"App Version",inputProps:{name:"appVersion",id:"appVersion"},MenuProps:{MenuListProps:{classes:{root:q.menuListRoot}}},children:[E&&d.jsx(t.ListSubheader,{className:q.group,children:"Labelled Versions (When selected always shows current Stable Release, Beta or Dev version)"}),x.map((e=>{let{label:s,value:r,disabled:a}=e;return d.jsx(t.MenuItem,{"data-testid":`DC_versionSelect_option_${s}MenuItem`,value:r,disabled:a,children:s},r)})),E&&d.jsx(t.ListSubheader,{className:q.group,children:"Other versions (App will always show selected version until version is deleted)"}),P.map((e=>{let{label:s,value:r}=e;return d.jsx(t.MenuItem,{"data-testid":`DC_versionSelect_option_${s}MenuItem`,value:r,children:d.jsx(l,{children:s})},r)}))]})]})})};g.defaultProps={disabled:!1,error:null,isLoading:!1,packages:[],value:null};const q=e=>{let{appId:s,...r}=e;const a=u(s,{status:[v.DRAFT,v.PUBLISHED],order:"desc",sort:"created_at"});return d.jsx(g,{...r,...a})};q.propTypes={value:s.string,onChange:s.func.isRequired,appId:s.string.isRequired},q.defaultProps={value:null};var h=i.withPermissionsHOC({canReadAppPackages:e=>{let{appId:s}=e;return n.PERMISSIONS.getCanReadAppPackages(s)}},{loader:null})((e=>{let{canReadAppPackages:s,...r}=e;return s&&d.jsx(q,{...r})}));exports.AppVersionsSelectView=g,exports.default=h;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),r=require("@babel/runtime/helpers/slicedToArray"),t=require("@babel/runtime/regenerator"),a=require("react"),n=require("jsona"),u=require("../../../clients/jsonApi/index.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(e),c=i(r),o=i(t),l=new(i(n).default);module.exports=function(e,r){var t=a.useState({isLoading:!0,packages:[],error:null}),n=c.default(t,2),i=n[0],f=n[1];return a.useEffect((function(){var t;(t=s.default(o.default.mark((function t(){var a;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,u.getAppPackages(e,r);case 3:a=t.sent,f({isLoading:!1,packages:l.deserialize(a),error:null}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),f({isLoading:!1,packages:[],error:t.t0});case 10:case"end":return t.stop()}}),t,null,[[0,7]])}))),function(){return t.apply(this,arguments)})()}),[e]),i};
1
+ "use strict";var e=require("react"),r=require("jsona"),t=require("../../../clients/jsonApi/index.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const n=new(a(r).default);module.exports=(r,a)=>{const[s,i]=e.useState({isLoading:!0,packages:[],error:null});return e.useEffect((()=>{!async function(){try{const e=await t.getAppPackages(r,a);i({isLoading:!1,packages:n.deserialize(e),error:null})}catch(e){i({isLoading:!1,packages:[],error:e})}}()}),[r]),s};
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/slicedToArray"),t=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),n=require("react"),o=require("prop-types"),a=require("lodash"),i=require("@material-ui/core"),l=require("@material-ui/icons"),s=require("@material-ui/lab"),u=require("../TruncatedText/index.js"),d=require("./constants.js"),p=require("./effects/index.js"),c=require("react/jsx-runtime");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=f(e),m=f(t),y=f(r),h=f(o),g=["children","loading","hasMore"];function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){m.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var v="DC_SingleAssetEditorAutocomplete",j={paddingLeft:"16px",height:36,listStyleType:"none",display:"flex",alignItems:"center"},T=function(e){var t=e.text,r=void 0===t?"Loading...":t;return c.jsx("li",{style:j,children:c.jsx(i.Typography,{variant:"body2",color:"textSecondary",children:r})},"loading")},S=n.forwardRef((function(e,t){var r=e.children,n=e.loading,o=e.hasMore,a=y.default(e,g);return c.jsxs(i.List,O(O({},a),{},{ref:t,role:"listbox",children:[r,(o||n)&&c.jsx(T,{})]}))})),P=function(e){var t,r=e["data-testid"],o=e.appKey,f=e.assetType,m=e.classes,y=e.companyId,h=e.currentValue,g=e.disabled,x=e.disableClearable,j=e.errorText,P=e.isMultiple,A=e.isNullable,C=e.label,I=e.onChange,q=e.parentAssetId,L=e.parentAssetType,M=e.queryParams,R=e.autocompleteProps,w=void 0===R?{}:R,E=e.assetFields,D=n.useState(P?[]:null),H=b.default(D,2),N=H[0],_=H[1],F=n.useState(""),V=b.default(F,2),K=V[0],k=V[1],z=n.useState(""),B=b.default(z,2),G=B[0],W=B[1],J=n.useState(!1),Q=b.default(J,2),U=Q[0],X=Q[1],Y=n.useState(1),Z=b.default(Y,2),$=Z[0],ee=Z[1],te=n.useState(!0),re=b.default(te,2),ne=re[0],oe=re[1];n.useEffect((function(){_(P?[]:null),ee(1),X(!1)}),[f]);var ae=p.useAssetAutoCompleteSelectData({appKey:o,assetType:f,companyId:y,currentValue:h,isMultiple:P,parentAssetId:q,parentAssetType:L,scrollPage:$,searchText:K,setCurrentOption:_,queryParams:M,assetFields:E}),ie=ae.assets,le=ae.loading;n.useEffect((function(){var e=ie.length>=d.PER_PAGE*$;oe(e)}),[ie,$]);var se=n.useMemo((function(){return a.debounce((function(e){ee(1),k(e)}),200)}),[]),ue=n.useMemo((function(){return a.debounce((function(){return ee((function(e){return e+1}))}),250)}),[]),de={endAdornment:m.endAdornment,inputRoot:m.inputRoot,listbox:m.listbox,noOptions:m.noOptions,option:m.option,popupIndicator:m.popupIndicator,root:m.root};return c.jsxs(i.FormControl,{disabled:g,error:!!j,className:m.formControl,children:[!A&&c.jsx(i.InputLabel,{shrink:!0,children:C}),c.jsx(i.Tooltip,{title:null!==(t=null==N?void 0:N.name)&&void 0!==t?t:"",children:c.jsx(s.Autocomplete,O(O({disabled:g,blurOnSelect:!0,classes:de,clearOnBlur:!0,clearOnEscape:!0,"data-testid":r,disableClearable:x,filterOptions:a.identity,getOptionLabel:function(e){return null==e?void 0:e.name},getOptionSelected:function(e,t){return e&&t&&e.id===t.id},inputValue:U?G:(null==N?void 0:N.name)||"",ListboxComponent:S,ListboxProps:{onScroll:function(e){if(ne&&!le){var t=e.currentTarget;t.scrollTop+t.clientHeight>t.scrollHeight-d.SCROLL_THRESHOLD&&ue()}},loading:le,hasMore:ne},options:ie,onChange:function(e,t){var r;_(t),I(P?t.map((function(e){return e.id})):null!==(r=null==t?void 0:t.id)&&void 0!==r?r:null,t)},onClose:function(){W(""),k(""),X(!1),ee(1)},onInputChange:function(e,t,r){"input"===r?(W(t),X(!0),se(t)):k("")},noOptionsText:c.jsx(T,{text:le?"Loading...":"No options"}),renderInput:function(e){return c.jsx(i.TextField,O(O({},e),{},{variant:"standard",placeholder:"Search for asset..."},!P&&{InputProps:O(O({},e.InputProps),{},{startAdornment:c.jsx(i.InputAdornment,{children:c.jsx(l.Search,{className:m.searchIcon})})})}))},renderOption:function(e){var t=e.id,r=e.name;return c.jsx(u,{"data-testid":"".concat(v,"_option_").concat(r,"MenuItem"),children:P&&h.includes(t)?"".concat(r," (already selected)"):r},t)},value:N,multiple:P},P&&{renderTags:function(e,t){return e.map((function(e,r){return c.jsx(i.Chip,O({label:null==e?void 0:e.name},t({index:r})),e.id)}))},getOptionDisabled:function(e){return h.includes(e.id)}}),w))}),c.jsx(i.FormHelperText,{children:j})]})};P.defaultProps={label:"Choose An Asset",currentValue:void 0,disableClearable:!0,isNullable:!1,parentAssetId:void 0,parentAssetType:void 0,companyId:void 0,errorText:"","data-testid":"".concat(v,"_autoComplete"),disabled:!1,isMultiple:!1,appKey:null,queryParams:{}},P.propTypes={label:h.default.string,currentValue:h.default.oneOfType([h.default.number,h.default.arrayOf(h.default.number)]),isNullable:h.default.bool,onChange:h.default.func.isRequired,classes:h.default.shape({}).isRequired,disableClearable:h.default.bool,parentAssetId:h.default.number,parentAssetType:h.default.string,companyId:h.default.number,assetType:h.default.string.isRequired,errorText:h.default.string,"data-testid":h.default.string,disabled:h.default.bool,isMultiple:h.default.bool,appKey:h.default.string,queryParams:h.default.shape({})};var A=i.withStyles((function(e){return{formControl:{},listbox:{maxHeight:350},root:{fontSize:16},inputRoot:{paddingTop:16,padding:"8px 0",paddingBottom:0,width:350,fontSize:16},popupIndicator:{display:"none"},option:{paddingLeft:"16px !important",height:36,"&[aria-disabled=true]":{color:e.palette.primary.text9,opacity:1,backgroundColor:"unset"}},noOptions:{padding:0},searchIcon:{fontSize:"20px !important"}}}))(P);module.exports=A;
1
+ "use strict";var e=require("react"),t=require("prop-types"),a=require("lodash"),r=require("@material-ui/core"),l=require("@material-ui/icons"),n=require("@material-ui/lab"),s=require("../TruncatedText/index.js"),o=require("./constants.js"),i=require("./effects/index.js"),d=require("react/jsx-runtime");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=u(t);const c="DC_SingleAssetEditorAutocomplete",m={paddingLeft:"16px",height:36,listStyleType:"none",display:"flex",alignItems:"center"},f=e=>{let{text:t="Loading..."}=e;return d.jsx("li",{style:m,children:d.jsx(r.Typography,{variant:"body2",color:"textSecondary",children:t})},"loading")},b=e.forwardRef(((e,t)=>{let{children:a,loading:l,hasMore:n,...s}=e;return d.jsxs(r.List,{...s,ref:t,role:"listbox",children:[a,(n||l)&&d.jsx(f,{})]})})),x=t=>{let{"data-testid":u,appKey:p,assetType:m,classes:x,companyId:h,currentValue:g,disabled:y,disableClearable:T,errorText:C,isMultiple:I,isNullable:S,label:j,onChange:A,parentAssetId:q,parentAssetType:O,queryParams:v,autocompleteProps:L={},assetFields:P}=t;const[R,M]=e.useState(I?[]:null),[E,H]=e.useState(""),[N,_]=e.useState(""),[F,V]=e.useState(!1),[D,K]=e.useState(1),[$,w]=e.useState(!0);e.useEffect((()=>{M(I?[]:null),K(1),V(!1)}),[m]);const{assets:z,loading:k}=i.useAssetAutoCompleteSelectData({appKey:p,assetType:m,companyId:h,currentValue:g,isMultiple:I,parentAssetId:q,parentAssetType:O,scrollPage:D,searchText:E,setCurrentOption:M,queryParams:v,assetFields:P});e.useEffect((()=>{const e=z.length>=o.PER_PAGE*D;w(e)}),[z,D]);const B=e.useMemo((()=>a.debounce((e=>{K(1),H(e)}),200)),[]),G=e.useMemo((()=>a.debounce((()=>K((e=>e+1))),250)),[]),J={endAdornment:x.endAdornment,inputRoot:x.inputRoot,listbox:x.listbox,noOptions:x.noOptions,option:x.option,popupIndicator:x.popupIndicator,root:x.root};return d.jsxs(r.FormControl,{disabled:y,error:!!C,className:x.formControl,children:[!S&&d.jsx(r.InputLabel,{shrink:!0,children:j}),d.jsx(r.Tooltip,{title:(null==R?void 0:R.name)??"",children:d.jsx(n.Autocomplete,{disabled:y,blurOnSelect:!0,classes:J,clearOnBlur:!0,clearOnEscape:!0,"data-testid":u,disableClearable:T,filterOptions:a.identity,getOptionLabel:e=>null==e?void 0:e.name,getOptionSelected:(e,t)=>e&&t&&e.id===t.id,inputValue:F?N:(null==R?void 0:R.name)||"",ListboxComponent:b,ListboxProps:{onScroll:e=>{if(!$||k)return;const t=e.currentTarget;t.scrollTop+t.clientHeight>t.scrollHeight-o.SCROLL_THRESHOLD&&G()},loading:k,hasMore:$},options:z,onChange:(e,t)=>{M(t),A(I?t.map((e=>{let{id:t}=e;return t})):(null==t?void 0:t.id)??null,t)},onClose:()=>{_(""),H(""),V(!1),K(1)},onInputChange:(e,t,a)=>{"input"===a?(_(t),V(!0),B(t)):H("")},noOptionsText:d.jsx(f,{text:k?"Loading...":"No options"}),renderInput:e=>d.jsx(r.TextField,{...e,variant:"standard",placeholder:"Search for asset...",...!I&&{InputProps:{...e.InputProps,startAdornment:d.jsx(r.InputAdornment,{children:d.jsx(l.Search,{className:x.searchIcon})})}}}),renderOption:e=>{let{id:t,name:a}=e;return d.jsx(s,{"data-testid":`${c}_option_${a}MenuItem`,children:I&&g.includes(t)?`${a} (already selected)`:a},t)},value:R,multiple:I,...I&&{renderTags:(e,t)=>e.map(((e,a)=>d.jsx(r.Chip,{label:null==e?void 0:e.name,...t({index:a})},e.id))),getOptionDisabled:e=>g.includes(e.id)},...L})}),d.jsx(r.FormHelperText,{children:C})]})};x.defaultProps={label:"Choose An Asset",currentValue:void 0,disableClearable:!0,isNullable:!1,parentAssetId:void 0,parentAssetType:void 0,companyId:void 0,errorText:"","data-testid":`${c}_autoComplete`,disabled:!1,isMultiple:!1,appKey:null,queryParams:{}},x.propTypes={label:p.default.string,currentValue:p.default.oneOfType([p.default.number,p.default.arrayOf(p.default.number)]),isNullable:p.default.bool,onChange:p.default.func.isRequired,classes:p.default.shape({}).isRequired,disableClearable:p.default.bool,parentAssetId:p.default.number,parentAssetType:p.default.string,companyId:p.default.number,assetType:p.default.string.isRequired,errorText:p.default.string,"data-testid":p.default.string,disabled:p.default.bool,isMultiple:p.default.bool,appKey:p.default.string,queryParams:p.default.shape({})};var h=r.withStyles((e=>({formControl:{},listbox:{maxHeight:350},root:{fontSize:16},inputRoot:{paddingTop:16,padding:"8px 0",paddingBottom:0,width:350,fontSize:16},popupIndicator:{display:"none"},option:{paddingLeft:"16px !important",height:36,"&[aria-disabled=true]":{color:e.palette.primary.text9,opacity:1,backgroundColor:"unset"}},noOptions:{padding:0},searchIcon:{fontSize:"20px !important"}})))(x);module.exports=h;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("prop-types"),t=require("@material-ui/core"),a=require("../TruncatedText/index.js"),s=require("./effects/index.js"),r=require("react/jsx-runtime");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(e),u="DC_SingleAssetEditor",i=function(e){var l=e.appKey,n=e.label,i=e.currentValue,d=e.defaultValue,p=e.isNullable,c=e.onChange,o=e.classes,f=e.parentAssetId,m=e.assetType,y=e.parentAssetType,h=s.useAssetSelectData({appKey:l,assetId:i,assetType:m,parentAssetId:f,parentAssetType:y}),g=h.assets,v=h.loading,x=i||d;return r.jsxs("div",{children:[r.jsxs(t.FormControl,{disabled:v,children:[!p&&r.jsx(t.InputLabel,{shrink:!!x,children:n}),r.jsxs(t.Select,{"data-testid":e["data-testid"],value:x,onChange:function(e){return c(e.target.value)},className:o.select,MenuProps:{className:o.selectMenu},children:[p&&r.jsx(t.MenuItem,{"data-testid":"".concat(u,"_noActiveAssetMenuItem"),value:d,className:o.menuItem,children:"No active asset"},"empty item"),g.map((function(e){var s=(null==e?void 0:e.name)||"";return r.jsx(t.MenuItem,{"data-testid":"".concat(u,"_option_").concat(s,"MenuItem"),value:Number(e.id),className:o.menuItem,children:r.jsx(a,{children:s})},e.id)}))]})]}),v&&r.jsx(t.CircularProgress,{"data-testid":"".concat(u,"_CircularProgress"),size:20,className:o.progress})]})};i.propTypes={classes:n.default.shape({}).isRequired,appType:n.default.shape({constants:n.default.shape({})}),currentValue:n.default.oneOfType([n.default.number,n.default.string]),defaultValue:n.default.any,onChange:n.default.func.isRequired,label:n.default.string,isNullable:n.default.bool,parentAssetId:n.default.number,parentAssetType:n.default.string,assetType:n.default.string.isRequired,"data-testid":n.default.string,appKey:n.default.string},i.defaultProps={label:"Choose An Asset",currentValue:"",defaultValue:"",appType:void 0,isNullable:!1,parentAssetId:void 0,parentAssetType:void 0,"data-testid":"".concat(u,"_autoComplete"),appKey:null};var d=t.withStyles({progress:{margin:"0 15px"},select:{width:350},selectMenu:{maxHeight:350},menuItem:{width:350}})(i);exports.PAGE_NAME=u,exports.default=d;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("prop-types"),t=require("@material-ui/core"),s=require("../TruncatedText/index.js"),a=require("./effects/index.js"),r=require("react/jsx-runtime");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=l(e);const n="DC_SingleAssetEditor",d=e=>{const{appKey:l,label:u,currentValue:d,defaultValue:i,isNullable:p,onChange:o,classes:c,parentAssetId:f,assetType:m,parentAssetType:y}=e,{assets:h,loading:g}=a.useAssetSelectData({appKey:l,assetId:d,assetType:m,parentAssetId:f,parentAssetType:y}),x=d||i;return r.jsxs("div",{children:[r.jsxs(t.FormControl,{disabled:g,children:[!p&&r.jsx(t.InputLabel,{shrink:!!x,children:u}),r.jsxs(t.Select,{"data-testid":e["data-testid"],value:x,onChange:e=>o(e.target.value),className:c.select,MenuProps:{className:c.selectMenu},children:[p&&r.jsx(t.MenuItem,{"data-testid":`${n}_noActiveAssetMenuItem`,value:i,className:c.menuItem,children:"No active asset"},"empty item"),h.map((e=>{const a=(null==e?void 0:e.name)||"";return r.jsx(t.MenuItem,{"data-testid":`${n}_option_${a}MenuItem`,value:Number(e.id),className:c.menuItem,children:r.jsx(s,{children:a})},e.id)}))]})]}),g&&r.jsx(t.CircularProgress,{"data-testid":`${n}_CircularProgress`,size:20,className:c.progress})]})};d.propTypes={classes:u.default.shape({}).isRequired,appType:u.default.shape({constants:u.default.shape({})}),currentValue:u.default.oneOfType([u.default.number,u.default.string]),defaultValue:u.default.any,onChange:u.default.func.isRequired,label:u.default.string,isNullable:u.default.bool,parentAssetId:u.default.number,parentAssetType:u.default.string,assetType:u.default.string.isRequired,"data-testid":u.default.string,appKey:u.default.string},d.defaultProps={label:"Choose An Asset",currentValue:"",defaultValue:"",appType:void 0,isNullable:!1,parentAssetId:void 0,parentAssetType:void 0,"data-testid":`${n}_autoComplete`,appKey:null};var i=t.withStyles({progress:{margin:"0 15px"},select:{width:350},selectMenu:{maxHeight:350},menuItem:{width:350}})(d);exports.PAGE_NAME=n,exports.default=i;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/helpers/slicedToArray"),r=require("@babel/runtime/helpers/defineProperty"),n=require("@babel/runtime/helpers/toConsumableArray"),a=require("@babel/runtime/regenerator"),s=require("react"),u=require("lodash");require("uuid"),require("lodash/set"),require("lodash/get"),require("lodash/unset"),require("moment");var i=require("../../../clients/jsonApi/index.js");require("../../../clients/subscriptions.js"),require("../../../clients/api/apiCore.js"),require("../../../clients/constants.js");var c=require("../constants.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=o(e),l=o(t),f=o(r),d=o(n),y=o(a);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){f.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{sort:"name",order:"asc",fields:["".concat(e,".name"),"".concat(e,".asset_id")].concat(d.default(t))}},h=function(e){var t,r,n;return m(m({},e.attributes),{},{id:+e.id,programId:+(null===(t=e.relationships)||void 0===t||null===(r=t.program)||void 0===r||null===(n=r.data)||void 0===n?void 0:n.id)})};exports.useAssetAutoCompleteSelectData=function(e){var t=e.appKey,r=e.assetType,n=e.companyId,a=e.currentValue,o=e.isMultiple,f=e.parentAssetId,d=e.parentAssetType,b=e.scrollPage,q=e.searchText,g=e.setCurrentOption,j=e.queryParams,O=e.assetFields,x=s.useState([]),A=l.default(x,2),P=A[0],w=A[1],k=s.useState(!1),E=l.default(k,2),S=E[0],_=E[1],T=s.useRef(),D=s.useRef();return s.useEffect((function(){function e(){return(e=p.default(y.default.mark((function e(){var t;return y.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.mapAssetGetRequest(r)(m(m({},v(r,O)),{},{ids:o?a:[a]},j));case 2:if(t=e.sent,!u.isEmpty(t.data)){e.next=7;break}return e.next=6,i.getAssets(m(m({},v(r,O)),{},{ids:o?a:[a]},j));case 6:t=e.sent;case 7:g((function(){if(o)return t.data.map(h);var e=t.data[0];return e?h(e):null}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(o?a.length:a)&&function(){e.apply(this,arguments)}()}),[]),s.useEffect((function(){function e(){return(e=p.default(y.default.mark((function e(){var a,s,u,o,p;return y.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,_(!0),a={per_page:c.PER_PAGE,page:b},d&&f&&(a[d]=f),n&&(a.company=n),q&&(a.search=q),t&&(a.app_key=t),s=i.mapAssetGetRequest(r)(m(m(m({},v(r,O)),a),j)),D.current=s,e.next=11,s;case 11:if(u=e.sent,D.current===s){e.next=14;break}return e.abrupt("return");case 14:o=u.data.map(h),p=T.current!==r||1===b,w(p?o:function(e){return e.concat(o)}),T.current=r,e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),console.error(e.t0);case 23:_(!1);case 24:case"end":return e.stop()}}),e,null,[[0,20]])})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[r,d,f,n,q,b,t]),{assets:P,loading:S}},exports.useAssetSelectData=function(e){var t=e.appKey,r=e.assetType,n=e.assetId,a=e.parentAssetType,u=e.parentAssetId,c=e.queryParams,o=s.useState([]),d=l.default(o,2),b=d[0],q=d[1],g=s.useState(!0),j=l.default(g,2),O=j[0],x=j[1];return s.useEffect((function(){function e(){return(e=p.default(y.default.mark((function e(){var n;return y.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.mapAssetGetRequest(r)(m(m(m({},v(r)),{},f.default({per_page:1e4},a,u),t&&{app_key:t}),c));case 2:n=e.sent,q(n.data.map(h)),x(!1);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}x(!0),function(){e.apply(this,arguments)}()}),[r,n,a,u,t]),{assets:b,loading:O}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("lodash");require("uuid"),require("lodash/set"),require("lodash/get"),require("lodash/unset"),require("moment");var s=require("../../../clients/jsonApi/index.js");require("../../../clients/subscriptions.js"),require("../../../clients/api/apiCore.js"),require("../../../clients/constants.js");var a=require("../constants.js");const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{sort:"name",order:"asc",fields:[`${e}.name`,`${e}.asset_id`,...t]}},n=e=>{var t,s,a;return{...e.attributes,id:+e.id,programId:+(null===(t=e.relationships)||void 0===t||null===(s=t.program)||void 0===s||null===(a=s.data)||void 0===a?void 0:a.id)}};exports.useAssetAutoCompleteSelectData=function(u){let{appKey:i,assetType:o,companyId:c,currentValue:p,isMultiple:l,parentAssetId:d,parentAssetType:f,scrollPage:m,searchText:y,setCurrentOption:q,queryParams:A,assetFields:g}=u;const[h,v]=e.useState([]),[_,j]=e.useState(!1),E=e.useRef(),P=e.useRef();return e.useEffect((()=>{(l?p.length:p)&&async function(){let e=await s.mapAssetGetRequest(o)({...r(o,g),ids:l?p:[p],...A});t.isEmpty(e.data)&&(e=await s.getAssets({...r(o,g),ids:l?p:[p],...A})),q((()=>{if(l)return e.data.map(n);const t=e.data[0];return t?n(t):null}))}()}),[]),e.useEffect((()=>{!async function(){try{j(!0);const e={per_page:a.PER_PAGE,page:m};f&&d&&(e[f]=d),c&&(e.company=c),y&&(e.search=y),i&&(e.app_key=i);const t=s.mapAssetGetRequest(o)({...r(o,g),...e,...A});P.current=t;const u=await t;if(P.current!==t)return;const p=u.data.map(n),l=E.current!==o||1===m;v(l?p:e=>e.concat(p)),E.current=o}catch(e){console.error(e)}j(!1)}()}),[o,f,d,c,y,m,i]),{assets:h,loading:_}},exports.useAssetSelectData=function(t){let{appKey:a,assetType:u,assetId:i,parentAssetType:o,parentAssetId:c,queryParams:p=null}=t;const[l,d]=e.useState([]),[f,m]=e.useState(!0);return e.useEffect((()=>{m(!0),async function(){const e=await s.mapAssetGetRequest(u)({...r(u),per_page:1e4,[o]:c,...a&&{app_key:a},...p});d(e.data.map(n)),m(!1)}()}),[u,i,o,c,a]),{assets:l,loading:f}};