@layers-app/shared 0.4.5 → 0.4.7

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 (296) hide show
  1. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
  2. package/dist/components/AppContainer/AppContainer.module.css.js +22 -12
  3. package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts +6 -0
  4. package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts.map +1 -0
  5. package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.js +161 -0
  6. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  7. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
  8. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  9. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +237 -95
  10. package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
  11. package/dist/components/AppContainer/components/Header.js +6 -5
  12. package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
  13. package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
  14. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts +62 -1
  15. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  16. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +1111 -131
  17. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +158 -6
  18. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  19. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  20. package/dist/components/AppContainer/hooks/useAppContainer.js +59 -56
  21. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  22. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
  23. package/dist/components/AppContainer/types.d.ts +1 -0
  24. package/dist/components/AppContainer/types.d.ts.map +1 -1
  25. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  26. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +2 -0
  27. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts.map +1 -1
  28. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.js +22 -17
  29. package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts +15 -0
  30. package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts.map +1 -0
  31. package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.js +36 -0
  32. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +22 -22
  33. package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts +14 -0
  34. package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts.map +1 -0
  35. package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.js +31 -0
  36. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  37. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +172 -120
  38. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  39. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
  40. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +68 -62
  41. package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts +18 -0
  42. package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts.map +1 -0
  43. package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.js +35 -0
  44. package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts +33 -0
  45. package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts.map +1 -0
  46. package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.js +70 -0
  47. package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
  48. package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
  49. package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
  50. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
  51. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
  52. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  53. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
  54. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +32 -28
  55. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  56. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +135 -80
  57. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
  58. package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
  59. package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
  60. package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
  61. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
  62. package/dist/components/Chat/CallMessage/CallMessage.module.css.js +8 -8
  63. package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +5 -5
  64. package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +1 -1
  65. package/dist/components/Chat/ChatInput/ChatInput.module.css.js +44 -32
  66. package/dist/components/Chat/ChatInput/index.d.ts +29 -1
  67. package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
  68. package/dist/components/Chat/ChatInput/index.js +178 -118
  69. package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts +3 -0
  70. package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts.map +1 -0
  71. package/dist/components/Chat/ChatInput/smilePlusIcon.js +49 -0
  72. package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +4 -4
  73. package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +2 -2
  74. package/dist/components/Chat/ChatMessage/index.d.ts +2 -0
  75. package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
  76. package/dist/components/Chat/ChatMessage/index.js +136 -118
  77. package/dist/components/Chat/ChatPill/ChatPill.module.css.js +1 -1
  78. package/dist/components/Chat/DialogItem/DialogItem.module.css.js +4 -4
  79. package/dist/components/Chat/DialogList/DialogList.module.css.js +1 -1
  80. package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +3 -3
  81. package/dist/components/Chat/MessageActions/MessageActions.module.css.js +1 -1
  82. package/dist/components/Chat/MessageActions/index.d.ts +7 -0
  83. package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
  84. package/dist/components/Chat/MessageActions/index.js +40 -36
  85. package/dist/components/Chat/MessageForward/MessageForward.module.css.js +1 -1
  86. package/dist/components/Chat/MessageList/MessageList.module.css.js +10 -6
  87. package/dist/components/Chat/MessageList/index.d.ts +30 -3
  88. package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
  89. package/dist/components/Chat/MessageList/index.js +154 -66
  90. package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +3 -3
  91. package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -1
  92. package/dist/components/Chat/MessageMeta/index.js +21 -19
  93. package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +8 -8
  94. package/dist/components/Chat/MessageReactions/index.d.ts +17 -0
  95. package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -1
  96. package/dist/components/Chat/MessageReactions/index.js +60 -28
  97. package/dist/components/Chat/MessageReply/MessageReply.module.css.js +7 -7
  98. package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +8 -6
  99. package/dist/components/Chat/MessageStatus/index.d.ts +1 -1
  100. package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -1
  101. package/dist/components/Chat/MessageStatus/index.js +49 -34
  102. package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +1 -1
  103. package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
  104. package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
  105. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  106. package/dist/components/ColorPicker/ColorPicker.d.ts +3 -0
  107. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  108. package/dist/components/ColorPicker/ColorPicker.js +81 -76
  109. package/dist/components/ColorPicker/ColorPicker.module.css.js +24 -24
  110. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
  111. package/dist/components/ColorPicker/ColorPickerList.js +43 -41
  112. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  113. package/dist/components/ColorPicker/ColorPickerToolbar.js +52 -50
  114. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  115. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  116. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  117. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  118. package/dist/components/EmojiPicker/EmojiPanel.d.ts +2 -1
  119. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  120. package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
  121. package/dist/components/EmojiPicker/EmojiPicker.d.ts +16 -1
  122. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  123. package/dist/components/EmojiPicker/EmojiPicker.js +121 -86
  124. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  125. package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
  126. package/dist/components/EmojiPicker/IconsPanel.js +28 -25
  127. package/dist/components/EntityIcon.d.ts +1 -0
  128. package/dist/components/EntityIcon.d.ts.map +1 -1
  129. package/dist/components/EntityIcon.js +80 -32
  130. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  131. package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
  132. package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
  133. package/dist/components/ErrorPage/components/Error403.js +25 -21
  134. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  135. package/dist/components/ErrorPage/index.d.ts +5 -1
  136. package/dist/components/ErrorPage/index.d.ts.map +1 -1
  137. package/dist/components/ErrorPage/index.js +17 -10
  138. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
  139. package/dist/components/FilePicker/FilePicker.module.css.js +7 -7
  140. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  141. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  142. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  143. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  144. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  145. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  146. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  147. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  148. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +3 -1
  149. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
  150. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +26 -25
  151. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
  152. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
  153. package/dist/components/Loaders/styles.module.css.js +6 -6
  154. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  155. package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
  156. package/dist/components/MusicPlayerBar/components/HoverActions.js +28 -28
  157. package/dist/components/NavMenu/NavMenu.d.ts +7 -1
  158. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  159. package/dist/components/NavMenu/NavMenu.js +54 -44
  160. package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
  161. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  162. package/dist/components/NavMenu/components/NavMenuItem.js +84 -84
  163. package/dist/components/NavMenu/types.d.ts +4 -0
  164. package/dist/components/NavMenu/types.d.ts.map +1 -1
  165. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  166. package/dist/components/NewToolbar/utils.d.ts +12 -0
  167. package/dist/components/NewToolbar/utils.d.ts.map +1 -0
  168. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  169. package/dist/components/Notification/Notification.module.css.js +1 -1
  170. package/dist/components/OnboardingTour/index.d.ts +1 -1
  171. package/dist/components/OnboardingTour/index.d.ts.map +1 -1
  172. package/dist/components/OnboardingTour/useOnboardingTour.d.ts +2 -0
  173. package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -1
  174. package/dist/components/OnboardingTour/useOnboardingTour.js +63 -51
  175. package/dist/components/PillTabs/PillTabs.module.css.js +1 -1
  176. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  177. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  178. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  179. package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
  180. package/dist/components/VideoPlayer/VideoPlayer.d.ts +24 -0
  181. package/dist/components/VideoPlayer/VideoPlayer.d.ts.map +1 -0
  182. package/dist/components/VideoPlayer/VideoPlayer.js +727 -0
  183. package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts +8 -0
  184. package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts.map +1 -0
  185. package/dist/components/VideoPlayer/components/MobileDrawer/index.js +67 -0
  186. package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts +7 -0
  187. package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts.map +1 -0
  188. package/dist/components/VideoPlayer/components/SelectListOptionButton.js +44 -0
  189. package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts +9 -0
  190. package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts.map +1 -0
  191. package/dist/components/VideoPlayer/components/StoryboardPreview.js +38 -0
  192. package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts +33 -0
  193. package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts.map +1 -0
  194. package/dist/components/VideoPlayer/components/VideoCustomControls.js +601 -0
  195. package/dist/components/VideoPlayer/components/VideoIcons.d.ts +25 -0
  196. package/dist/components/VideoPlayer/components/VideoIcons.d.ts.map +1 -0
  197. package/dist/components/VideoPlayer/components/VideoIcons.js +145 -0
  198. package/dist/components/VideoPlayer/components/VideoMenu.d.ts +27 -0
  199. package/dist/components/VideoPlayer/components/VideoMenu.d.ts.map +1 -0
  200. package/dist/components/VideoPlayer/components/VideoMenu.js +77 -0
  201. package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts +17 -0
  202. package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts.map +1 -0
  203. package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.js +289 -0
  204. package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts +10 -0
  205. package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts.map +1 -0
  206. package/dist/components/VideoPlayer/components/VideoQualityMenu/index.js +55 -0
  207. package/dist/components/VideoPlayer/components/VideoSelect.d.ts +10 -0
  208. package/dist/components/VideoPlayer/components/VideoSelect.d.ts.map +1 -0
  209. package/dist/components/VideoPlayer/components/VideoSelect.js +168 -0
  210. package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts +12 -0
  211. package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts.map +1 -0
  212. package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.js +48 -0
  213. package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts +25 -0
  214. package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts.map +1 -0
  215. package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.js +384 -0
  216. package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts +21 -0
  217. package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts.map +1 -0
  218. package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.js +264 -0
  219. package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts +10 -0
  220. package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts.map +1 -0
  221. package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.js +39 -0
  222. package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts +14 -0
  223. package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts.map +1 -0
  224. package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.js +360 -0
  225. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts +16 -0
  226. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts.map +1 -0
  227. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts +14 -0
  228. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts.map +1 -0
  229. package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts +4 -0
  230. package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts.map +1 -0
  231. package/dist/components/VideoPlayer/components/VideoSettingsModal/context.js +14 -0
  232. package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts +22 -0
  233. package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts.map +1 -0
  234. package/dist/components/VideoPlayer/components/VideoSettingsModal/index.js +211 -0
  235. package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts +11 -0
  236. package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts.map +1 -0
  237. package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.js +41 -0
  238. package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts +10 -0
  239. package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts.map +1 -0
  240. package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.js +69 -0
  241. package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts +21 -0
  242. package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts.map +1 -0
  243. package/dist/components/VideoPlayer/hooks/useStoryboard.js +91 -0
  244. package/dist/components/VideoPlayer/index.d.ts +11 -0
  245. package/dist/components/VideoPlayer/index.d.ts.map +1 -0
  246. package/dist/components/VideoPlayer/types.d.ts +101 -0
  247. package/dist/components/VideoPlayer/types.d.ts.map +1 -0
  248. package/dist/components/VideoPlayer/utils/chapters.d.ts +8 -0
  249. package/dist/components/VideoPlayer/utils/chapters.d.ts.map +1 -0
  250. package/dist/components/VideoPlayer/utils/chapters.js +38 -0
  251. package/dist/components/VideoPlayer/utils/storyboard.d.ts +5 -0
  252. package/dist/components/VideoPlayer/utils/storyboard.d.ts.map +1 -0
  253. package/dist/components/VideoPlayer/utils/storyboard.js +47 -0
  254. package/dist/components/VideoPlayer/utils/subtitles.d.ts +18 -0
  255. package/dist/components/VideoPlayer/utils/subtitles.d.ts.map +1 -0
  256. package/dist/components/VideoPlayer/utils/subtitles.js +23 -0
  257. package/dist/components/VideoPlayer/utils/touch.d.ts +3 -0
  258. package/dist/components/VideoPlayer/utils/touch.d.ts.map +1 -0
  259. package/dist/components/VideoPlayer/utils/touch.js +5 -0
  260. package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts +10 -0
  261. package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts.map +1 -0
  262. package/dist/components/VideoPlayer/utils/videoPlayerUtils.js +22 -0
  263. package/dist/components/VideoPlayer/utils/videoSettings.d.ts +69 -0
  264. package/dist/components/VideoPlayer/utils/videoSettings.d.ts.map +1 -0
  265. package/dist/components/VideoPlayer/utils/videoSettings.js +90 -0
  266. package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
  267. package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
  268. package/dist/components/table/FrontTable.d.ts.map +1 -1
  269. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  270. package/dist/config/brand.d.ts.map +1 -1
  271. package/dist/config/brand.js +29 -29
  272. package/dist/config/envConfig.d.ts +4 -0
  273. package/dist/config/envConfig.d.ts.map +1 -1
  274. package/dist/config/envConfig.js +41 -37
  275. package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
  276. package/dist/helpers/showNotifications.d.ts +9 -0
  277. package/dist/helpers/showNotifications.d.ts.map +1 -1
  278. package/dist/helpers/showNotifications.js +96 -58
  279. package/dist/helpers/showNotifications.module.css.js +1 -1
  280. package/dist/hooks/useDateUtils.d.ts.map +1 -1
  281. package/dist/hooks/useDateUtils.js +19 -23
  282. package/dist/hooks/useUiPref.d.ts +2 -0
  283. package/dist/hooks/useUiPref.d.ts.map +1 -0
  284. package/dist/hooks/useUiPref.js +80 -0
  285. package/dist/index.css +1 -1
  286. package/dist/index.d.ts +3 -0
  287. package/dist/index.d.ts.map +1 -1
  288. package/dist/index.js +582 -558
  289. package/dist/lang/locales/ui_en.json.js +1 -1
  290. package/dist/lang/locales/ui_es.json.js +1 -1
  291. package/dist/lang/locales/ui_ru.json.js +1 -1
  292. package/dist/videoSettings/createVideoSettingsDataSource.d.ts +19 -0
  293. package/dist/videoSettings/createVideoSettingsDataSource.d.ts.map +1 -0
  294. package/dist/videoSettings/createVideoSettingsDataSource.js +127 -0
  295. package/docs/README.md +499 -499
  296. package/package.json +79 -78
@@ -1,157 +1,1087 @@
1
- import { jsxs as a, jsx as e, Fragment as I } from "react/jsx-runtime";
2
- import { useState as A, useRef as $, useMemo as B, useCallback as h, useEffect as R } from "react";
3
- import { useTranslation as _ } from "react-i18next";
4
- import { DiscountTag02Icon as U, CustomerSupportIcon as H, Book02Icon as N, Structure02Icon as O, BookOpen01Icon as W, LicenseIcon as G } from "@hugeicons/core-free-icons";
5
- import { HugeiconsIcon as s } from "@hugeicons/react";
6
- import { Stack as K, Button as u, Menu as i, Popover as g, UnstyledButton as Y, Group as q, Text as S } from "@mantine/core";
7
- import { IconChevronRight as J } from "@tabler/icons-react";
8
- import Q from "../../../../../assets/svg/discord-icon.svg.js";
9
- import V from "../../../../../assets/svg/telegram-icon.svg.js";
10
- import X from "../../../../../assets/svg/whatsapp-icon.svg.js";
11
- import { brand as o } from "../../../../../config/brand.js";
12
- import { getEnvConfig as Z } from "../../../../../config/envConfig.js";
13
- import { isFeature as ee } from "../../../../../helpers/feature.js";
14
- import { usePlatform as te } from "../../../../../hooks/usePlatform.js";
15
- import { resetFeatureFlow as oe } from "../../../../../store/featureProgress.js";
16
- import { useAppContainerDataStore as re } from "../../../hooks/useAppContainerDataStore.js";
17
- import { WhatsNew as ie } from "./WhatsNew.js";
18
- import { FeatureProgressKey as ne } from "../../../../FeatureProgress/constants.js";
19
- const Me = () => {
20
- const { t } = _("helpMenu"), y = te(), [M, f] = A(!1), c = $(null), T = B(() => {
21
- const r = Z().analytics;
22
- return r?.intercomEnabled !== !1 && !!r?.intercomAppId;
1
+ import { jsx as t, Fragment as oe, jsxs as n } from "react/jsx-runtime";
2
+ import { useState as V, useRef as ne, useMemo as ve, useCallback as D, useEffect as _ } from "react";
3
+ import { useTranslation as X } from "react-i18next";
4
+ import { Bug02Icon as ye, DiscountTag02Icon as Se, CustomerSupportIcon as Pe, Book02Icon as Ie, Structure02Icon as Ue, FlashIcon as re, InstallingUpdates02Icon as Fe, FileSearchIcon as we, BookOpen01Icon as Te, LicenseIcon as Ve, DocumentCodeIcon as Re, ReloadIcon as He, Tick02Icon as $e, AlertCircleIcon as Be } from "@hugeicons/core-free-icons";
5
+ import { HugeiconsIcon as T } from "@hugeicons/react";
6
+ import { Menu as P, Stack as f, Button as I, Popover as se, UnstyledButton as xe, Group as z, Text as i, Tooltip as Le, Loader as Ae, Modal as ce, Checkbox as ke, Textarea as Ee, Progress as G, Box as de, Center as ze } from "@mantine/core";
7
+ import { notifications as ae } from "@mantine/notifications";
8
+ import { IconChevronRight as Oe } from "@tabler/icons-react";
9
+ import Ze from "../../../../../assets/svg/discord-icon.svg.js";
10
+ import je from "../../../../../assets/svg/telegram-icon.svg.js";
11
+ import We from "../../../../../assets/svg/whatsapp-icon.svg.js";
12
+ import { brand as B } from "../../../../../config/brand.js";
13
+ import { getEnvConfig as _e } from "../../../../../config/envConfig.js";
14
+ import { isFeature as Ge } from "../../../../../helpers/feature.js";
15
+ import { showWarningNotification as le, showSuccessNotification as Ce, showErrorNotification as ie, showMessageNotification as qe, updateMessageNotification as Ke } from "../../../../../helpers/showNotifications.js";
16
+ import { usePlatform as Je } from "../../../../../hooks/usePlatform.js";
17
+ import { resetFeatureFlow as Qe } from "../../../../../store/featureProgress.js";
18
+ import { useAppContainerDataStore as Ye } from "../../../hooks/useAppContainerDataStore.js";
19
+ import { WhatsNew as Xe } from "./WhatsNew.js";
20
+ import e from "./HelpMenu.module.css.js";
21
+ import { LayersCubeIcon as be } from "../../../../IntegrationFlowAnimation/icons/LayersCubeIcon.js";
22
+ import { IntegrationFlowAnimation as Me } from "../../../../IntegrationFlowAnimation/IntegrationFlowAnimation.js";
23
+ import { FeatureProgressKey as et } from "../../../../FeatureProgress/constants.js";
24
+ const Y = "layers-desktop-diagnostics", tt = [
25
+ "pageLoad",
26
+ "taskEditing",
27
+ "calling",
28
+ "fileUpload",
29
+ "appFreeze",
30
+ "uiBug",
31
+ "other"
32
+ ], ot = [
33
+ "M321 110.75C321.414 110.75 321.75 110.414 321.75 110C321.75 109.586 321.414 109.25 321 109.25V110V110.75ZM319 105.25C318.586 105.25 318.25 105.586 318.25 106C318.25 106.414 318.586 106.75 319 106.75V106V105.25ZM319 113.25C318.586 113.25 318.25 113.586 318.25 114C318.25 114.414 318.586 114.75 319 114.75V114V113.25ZM313 109.25C312.586 109.25 312.25 109.586 312.25 110C312.25 110.414 312.586 110.75 313 110.75V110V109.25ZM315 114.75C315.414 114.75 315.75 114.414 315.75 114C315.75 113.586 315.414 113.25 315 113.25V114V114.75ZM315 106.75C315.414 106.75 315.75 106.414 315.75 106C315.75 105.586 315.414 105.25 315 105.25V106V106.75ZM320 107H319.25V109H320H320.75V107H320ZM320 109H319.25C319.25 109.966 320.034 110.75 321 110.75V110V109.25C320.862 109.25 320.75 109.138 320.75 109H320ZM319 106V106.75C319.138 106.75 319.25 106.862 319.25 107H320H320.75C320.75 106.034 319.966 105.25 319 105.25V106ZM320 113H320.75V111H320H319.25V113H320ZM320 111H320.75C320.75 110.862 320.862 110.75 321 110.75V110V109.25C320.034 109.25 319.25 110.034 319.25 111H320ZM319 114V114.75C319.966 114.75 320.75 113.967 320.75 113H320H319.25C319.25 113.138 319.138 113.25 319 113.25V114ZM314 109H313.25C313.25 109.138 313.138 109.25 313 109.25V110V110.75C313.967 110.75 314.75 109.966 314.75 109H314ZM314 111H314.75C314.75 110.034 313.967 109.25 313 109.25V110V110.75C313.138 110.75 313.25 110.862 313.25 111H314ZM314 113H314.75V111H314H313.25V113H314ZM314 107H313.25V109H314H314.75V107H314ZM315 114V113.25C314.862 113.25 314.75 113.138 314.75 113H314H313.25C313.25 113.967 314.033 114.75 315 114.75V114ZM315 106V105.25C314.033 105.25 313.25 106.034 313.25 107H314H314.75C314.75 106.862 314.862 106.75 315 106.75V106Z",
34
+ "M323.25 95V94.5C323.25 94.0858 323.586 93.75 324 93.75C324.414 93.75 324.75 94.0858 324.75 94.5V95C324.75 96.4352 324.752 97.4361 324.854 98.1914C324.952 98.9252 325.132 99.3141 325.409 99.5908C325.686 99.8676 326.075 100.048 326.809 100.146C327.564 100.248 328.565 100.25 330 100.25H330.5C330.914 100.25 331.25 100.586 331.25 101C331.25 101.414 330.914 101.75 330.5 101.75H330C328.607 101.75 327.487 101.752 326.608 101.634C325.708 101.513 324.951 101.253 324.349 100.651C323.747 100.049 323.487 99.2917 323.366 98.3916C323.248 97.5131 323.25 96.3929 323.25 95Z",
35
+ "M314.25 102V101.456C314.25 99.8517 314.249 98.5832 314.366 97.581C314.485 96.5627 314.734 95.7229 315.302 95.0185C315.514 94.7549 315.755 94.5143 316.019 94.3017C316.723 93.7339 317.563 93.4851 318.581 93.3662C319.583 93.2492 320.852 93.25 322.456 93.25C323.109 93.25 323.615 93.2405 324.087 93.4072C324.179 93.4398 324.27 93.4774 324.358 93.5195C324.81 93.7356 325.16 94.0998 325.622 94.5615L330.358 99.2978C330.826 99.7659 331.211 100.135 331.448 100.58L331.541 100.776L331.613 100.98C331.76 101.463 331.75 101.995 331.75 102.657V106C331.75 107.864 331.751 109.338 331.597 110.489C331.439 111.662 331.107 112.61 330.358 113.358C329.68 114.036 328.837 114.374 327.809 114.549C326.802 114.719 325.549 114.744 324.002 114.749C323.588 114.75 323.251 114.415 323.25 114.001C323.249 113.587 323.584 113.25 323.998 113.249C325.565 113.244 326.694 113.216 327.558 113.069C328.399 112.926 328.913 112.683 329.298 112.298C329.721 111.875 329.975 111.295 330.11 110.289C330.249 109.261 330.25 107.907 330.25 106V102.657C330.25 101.779 330.237 101.548 330.155 101.351L330.12 101.276C330.027 101.102 329.842 100.902 329.298 100.358L324.562 95.622C324.16 95.2201 323.976 95.0437 323.839 94.9472L323.711 94.872C323.671 94.8528 323.63 94.836 323.588 94.8213C323.414 94.7599 323.214 94.75 322.456 94.75C320.816 94.75 319.65 94.751 318.755 94.8554C317.876 94.9581 317.355 95.1516 316.96 95.4697C316.78 95.6152 316.615 95.7795 316.47 95.9599C316.152 96.3545 315.958 96.876 315.855 97.7549C315.751 98.6499 315.75 99.8155 315.75 101.456V102C315.75 102.414 315.414 102.75 315 102.75C314.586 102.75 314.25 102.414 314.25 102Z"
36
+ ], st = () => /* @__PURE__ */ t(
37
+ "svg",
38
+ {
39
+ "aria-hidden": "true",
40
+ className: e.diagnosticFileIcon,
41
+ focusable: "false",
42
+ viewBox: "310 92 24 24",
43
+ children: ot.map((r) => /* @__PURE__ */ t("path", { d: r, fill: "currentColor" }, r))
44
+ }
45
+ ), x = () => {
46
+ if (!(typeof window > "u"))
47
+ return window.layersDesktop;
48
+ }, pe = (r) => Math.max(0, Math.min(100, Number.isFinite(r) ? Number(r) : 0)), at = (r) => {
49
+ const g = r?.totalBytes ?? 0, o = r?.transferredBytes ?? 0, m = r?.bytesPerSecond ?? 0;
50
+ return g <= 0 || m <= 0 || o >= g ? null : Math.max(0, Math.round((g - o) / m));
51
+ }, nt = async (r) => {
52
+ try {
53
+ const g = await r.json();
54
+ return g.message || g.code || r.statusText;
55
+ } catch {
56
+ return r.statusText;
57
+ }
58
+ }, rt = ({
59
+ leftIcon: r,
60
+ rightIcon: g,
61
+ percent: o,
62
+ remainingLabel: m,
63
+ statusLabel: s,
64
+ hint: a
65
+ }) => {
66
+ const u = pe(o), p = m || s;
67
+ return /* @__PURE__ */ n(f, { className: e.flowProgressRoot, gap: 10, children: [
68
+ /* @__PURE__ */ t(
69
+ Me,
70
+ {
71
+ leftIcon: r,
72
+ rightIcon: g,
73
+ height: 100,
74
+ particleCount: 24
75
+ }
76
+ ),
77
+ /* @__PURE__ */ n(f, { className: e.flowProgressMeter, gap: 6, children: [
78
+ /* @__PURE__ */ n(
79
+ z,
80
+ {
81
+ className: e.flowProgressHeader,
82
+ justify: "space-between",
83
+ align: "center",
84
+ wrap: "nowrap",
85
+ children: [
86
+ /* @__PURE__ */ n(
87
+ i,
88
+ {
89
+ className: `${e.flowProgressMeta} ${e.flowProgressMetaPrimary}`,
90
+ children: [
91
+ Math.round(u),
92
+ "%"
93
+ ]
94
+ }
95
+ ),
96
+ p && /* @__PURE__ */ t(
97
+ i,
98
+ {
99
+ className: `${e.flowProgressMeta} ${e.flowProgressMetaSecondary}`,
100
+ children: p
101
+ }
102
+ )
103
+ ]
104
+ }
105
+ ),
106
+ /* @__PURE__ */ t(
107
+ G.Root,
108
+ {
109
+ size: 6,
110
+ radius: "xl",
111
+ className: e.flowProgressBar,
112
+ children: /* @__PURE__ */ t(
113
+ G.Section,
114
+ {
115
+ value: u,
116
+ color: "#4c6ef5",
117
+ className: e.flowProgressBarSection
118
+ }
119
+ )
120
+ }
121
+ )
122
+ ] }),
123
+ a && /* @__PURE__ */ t(i, { component: "div", className: e.flowProgressHint, children: a })
124
+ ] });
125
+ }, q = ({
126
+ status: r,
127
+ icon: g
128
+ }) => {
129
+ const o = g ?? (r === "success" ? $e : r === "error" ? Be : we);
130
+ return /* @__PURE__ */ t(ze, { className: e.flowStatusIcon, "data-status": r, children: /* @__PURE__ */ t(T, { icon: o, size: 32 }) });
131
+ }, lt = ({ label: r }) => /* @__PURE__ */ t(
132
+ de,
133
+ {
134
+ "aria-label": r,
135
+ className: e.desktopUpdateSpinner,
136
+ role: "status"
137
+ }
138
+ ), fe = () => /* @__PURE__ */ t(
139
+ "svg",
140
+ {
141
+ "aria-hidden": "true",
142
+ className: `${e.desktopUpdateResultIcon} ${e.desktopUpdateSuccessIcon}`,
143
+ focusable: "false",
144
+ viewBox: "0 0 32 32",
145
+ children: /* @__PURE__ */ t(
146
+ "path",
147
+ {
148
+ d: "M7.7 16.6L13.4 22.3L24.3 9.7",
149
+ fill: "none",
150
+ stroke: "currentColor",
151
+ strokeLinecap: "round",
152
+ strokeLinejoin: "round",
153
+ strokeWidth: "1.8"
154
+ }
155
+ )
156
+ }
157
+ ), it = () => /* @__PURE__ */ n(
158
+ "svg",
159
+ {
160
+ "aria-hidden": "true",
161
+ className: `${e.desktopUpdateResultIcon} ${e.desktopUpdateErrorIcon}`,
162
+ focusable: "false",
163
+ viewBox: "0 0 32 32",
164
+ children: [
165
+ /* @__PURE__ */ t(
166
+ "circle",
167
+ {
168
+ cx: "16",
169
+ cy: "16",
170
+ fill: "none",
171
+ r: "11.5",
172
+ stroke: "currentColor",
173
+ strokeWidth: "1.5"
174
+ }
175
+ ),
176
+ /* @__PURE__ */ t(
177
+ "path",
178
+ {
179
+ d: "M16 10.5V17.5",
180
+ fill: "none",
181
+ stroke: "currentColor",
182
+ strokeLinecap: "round",
183
+ strokeWidth: "1.5"
184
+ }
185
+ ),
186
+ /* @__PURE__ */ t(
187
+ "path",
188
+ {
189
+ d: "M16 22.25H16.01",
190
+ fill: "none",
191
+ stroke: "currentColor",
192
+ strokeLinecap: "round",
193
+ strokeWidth: "2"
194
+ }
195
+ )
196
+ ]
197
+ }
198
+ ), Vt = ({
199
+ opened: r,
200
+ onClose: g
201
+ }) => {
202
+ const { t: o } = X("helpMenu"), [m, s] = V(null), [a, u] = V([]), [p, v] = V(""), [U, F] = V(!1), l = D(() => {
203
+ u([]), v(""), g();
204
+ }, [g]), S = D((d) => {
205
+ u(
206
+ (b) => b.includes(d) ? b.filter((C) => C !== d) : [...b, d]
207
+ );
208
+ }, []), k = D(async () => {
209
+ const d = p.trim(), b = a.map(
210
+ (M) => o(`reportProblemCategories.${M}`)
211
+ ), C = d || `Desktop support report: ${b.join(", ")}`;
212
+ if (!a.length) {
213
+ le({
214
+ title: o("reportProblemCategoryEmptyTitle"),
215
+ message: o("reportProblemCategoryEmptyMessage")
216
+ });
217
+ return;
218
+ }
219
+ F(!0);
220
+ try {
221
+ let M = m;
222
+ const $ = x();
223
+ !M && typeof $?.getVersion == "function" && (M = await $.getVersion().catch(() => null));
224
+ const R = await fetch(
225
+ "/v1/local/support/reports?telemetryLimit=200",
226
+ {
227
+ method: "POST",
228
+ headers: { "Content-Type": "application/json" },
229
+ body: JSON.stringify({
230
+ category: "DESKTOP_USER_REPORT",
231
+ severity: "MEDIUM",
232
+ message: C,
233
+ pageUrl: window.location.href,
234
+ appVersion: M ?? void 0,
235
+ clientData: {
236
+ source: "desktop-help-menu",
237
+ userAgent: navigator.userAgent,
238
+ language: navigator.language,
239
+ path: window.location.pathname,
240
+ problemCategories: a,
241
+ problemCategoryLabels: b,
242
+ userDescription: d || null,
243
+ messageGeneratedFromCategories: !d,
244
+ diagnosticsConsentAccepted: !0,
245
+ diagnosticsConsentAcceptedAtMs: Date.now(),
246
+ diagnosticsConsentScope: "desktop-support-report",
247
+ diagnosticsNoticeVersion: 1
248
+ }
249
+ })
250
+ }
251
+ );
252
+ if (!R.ok)
253
+ throw new Error(await nt(R));
254
+ const N = await R.json();
255
+ if (v(""), l(), N.desktopBundleAttached === !1) {
256
+ le({
257
+ title: o("supportReportSentTitle"),
258
+ message: o("supportReportSentWithoutDiagnostics", {
259
+ id: N.id ?? o("supportReportUnknownId")
260
+ })
261
+ });
262
+ return;
263
+ }
264
+ Ce({
265
+ title: o("supportReportSentTitle"),
266
+ message: o("supportReportSentMessage", {
267
+ id: N.id ?? o("supportReportUnknownId")
268
+ })
269
+ });
270
+ } catch (M) {
271
+ ie({
272
+ title: o("supportReportFailedTitle"),
273
+ message: M instanceof Error && M.message ? M.message : o("supportReportFailedMessage")
274
+ });
275
+ } finally {
276
+ F(!1);
277
+ }
278
+ }, [m, l, a, p, o]);
279
+ return _(() => {
280
+ let d = !0;
281
+ const b = x();
282
+ return typeof b?.getVersion != "function" ? (s(null), () => {
283
+ d = !1;
284
+ }) : (b.getVersion().then((C) => {
285
+ d && s(C || null);
286
+ }).catch(() => {
287
+ d && s(null);
288
+ }), () => {
289
+ d = !1;
290
+ });
291
+ }, []), /* @__PURE__ */ t(
292
+ ce,
293
+ {
294
+ opened: r,
295
+ onClose: () => {
296
+ U || l();
297
+ },
298
+ title: o("reportProblemQuestion"),
299
+ size: 440,
300
+ centered: !0,
301
+ classNames: {
302
+ content: `${e.desktopFlowModal} ${e.reportProblemModal}`,
303
+ header: e.desktopFlowModalHeader,
304
+ title: e.desktopFlowModalTitle,
305
+ body: e.desktopFlowModalBody
306
+ },
307
+ children: /* @__PURE__ */ n(f, { className: e.reportProblemForm, gap: 24, children: [
308
+ /* @__PURE__ */ t(f, { className: e.reportProblemOptions, gap: 16, children: tt.map((d) => /* @__PURE__ */ t(
309
+ ke,
310
+ {
311
+ size: "sm",
312
+ checked: a.includes(d),
313
+ disabled: U,
314
+ classNames: {
315
+ root: e.reportProblemOptionRoot,
316
+ body: e.reportProblemOptionBody,
317
+ inner: e.reportProblemOptionInner,
318
+ input: e.reportProblemOptionInput,
319
+ label: e.reportProblemOptionLabel
320
+ },
321
+ label: o(`reportProblemCategories.${d}`),
322
+ onChange: () => S(d)
323
+ },
324
+ d
325
+ )) }),
326
+ /* @__PURE__ */ t(
327
+ Ee,
328
+ {
329
+ label: o("reportProblemDescriptionLabel"),
330
+ minRows: 4,
331
+ autosize: !1,
332
+ value: p,
333
+ disabled: U,
334
+ placeholder: o("reportProblemPlaceholder"),
335
+ classNames: {
336
+ root: e.reportProblemTextareaRoot,
337
+ wrapper: e.reportProblemTextareaWrapper,
338
+ label: e.reportProblemDescriptionLabel,
339
+ input: e.reportProblemTextareaInput
340
+ },
341
+ onChange: (d) => v(d.currentTarget.value)
342
+ }
343
+ ),
344
+ /* @__PURE__ */ n(z, { className: e.reportProblemActions, gap: 10, wrap: "nowrap", children: [
345
+ /* @__PURE__ */ t(
346
+ I,
347
+ {
348
+ variant: "default",
349
+ flex: 1,
350
+ h: 36,
351
+ disabled: U,
352
+ className: `${e.reportProblemButton} ${e.reportProblemCancelButton}`,
353
+ onClick: l,
354
+ children: o("reportProblemCancel")
355
+ }
356
+ ),
357
+ /* @__PURE__ */ t(
358
+ I,
359
+ {
360
+ flex: 1,
361
+ h: 36,
362
+ loading: U,
363
+ disabled: U,
364
+ className: `${e.reportProblemButton} ${e.reportProblemSubmitButton}`,
365
+ onClick: () => {
366
+ k();
367
+ },
368
+ children: o("sendReport")
369
+ }
370
+ )
371
+ ] })
372
+ ] })
373
+ }
374
+ );
375
+ }, Rt = ({
376
+ opened: r,
377
+ onClose: g,
378
+ collecting: o,
379
+ onCollectingChange: m
380
+ }) => {
381
+ const { t: s } = X("helpMenu"), [a, u] = V(!0), [p, v] = V("consent"), [U, F] = V({
382
+ phase: "preparing",
383
+ percent: 0
384
+ }), [l, S] = V(null), k = ne(r), d = ne(!1);
385
+ _(() => {
386
+ k.current = r, r && (d.current = !1);
387
+ }, [r]);
388
+ const b = D(() => {
389
+ v("consent"), u(!0), F({ phase: "preparing", percent: 0 }), S(null), d.current = !1;
390
+ }, []), C = D(
391
+ (N) => {
392
+ const L = pe(N.percent), y = N.phase || "preparing", H = s(`diagnosticsProgressPhase.${y}`, {
393
+ defaultValue: y
394
+ });
395
+ return {
396
+ id: Y,
397
+ autoClose: !1,
398
+ title: s("diagnosticsCollectingTitle"),
399
+ message: /* @__PURE__ */ n(f, { gap: 8, mt: 4, children: [
400
+ /* @__PURE__ */ t(
401
+ G,
402
+ {
403
+ value: L,
404
+ size: 6,
405
+ radius: "xl",
406
+ styles: {
407
+ section: { transition: "width 300ms ease" }
408
+ }
409
+ }
410
+ ),
411
+ /* @__PURE__ */ n(z, { gap: 8, justify: "space-between", children: [
412
+ /* @__PURE__ */ t(i, { size: "xs", c: "dimmed", children: H }),
413
+ /* @__PURE__ */ n(i, { size: "xs", c: "dimmed", children: [
414
+ Math.round(L),
415
+ "%"
416
+ ] })
417
+ ] })
418
+ ] })
419
+ };
420
+ },
421
+ [s]
422
+ ), M = D(() => {
423
+ if (o) {
424
+ k.current = !1, d.current = !0, qe(C(U)), g();
425
+ return;
426
+ }
427
+ k.current = !1, b(), g();
428
+ }, [
429
+ C,
430
+ o,
431
+ g,
432
+ U,
433
+ b
434
+ ]), $ = D(async () => {
435
+ if (o)
436
+ return;
437
+ const N = x();
438
+ if (typeof N?.collectDiagnostics != "function")
439
+ return;
440
+ v("progress"), F({ phase: "preparing", percent: 0 }), S(null), m(!0), ae.hide(Y);
441
+ const L = N.onDiagnosticsProgress?.((y) => {
442
+ F(y), d.current && Ke(
443
+ C(y)
444
+ );
445
+ });
446
+ try {
447
+ const y = await N.collectDiagnostics();
448
+ if (L?.(), ae.hide(Y), y.ok) {
449
+ F({ phase: "done", percent: 100 }), k.current ? v("success") : Ce({
450
+ title: s("diagnosticsReadyTitle"),
451
+ message: s("diagnosticsReadyMessage")
452
+ });
453
+ return;
454
+ }
455
+ const H = y.error || s("diagnosticsFailedMessage");
456
+ S(H), k.current ? v("error") : ie({
457
+ title: s("diagnosticsFailedTitle"),
458
+ message: H
459
+ });
460
+ } catch (y) {
461
+ L?.(), ae.hide(Y);
462
+ const H = y instanceof Error && y.message ? y.message : s("diagnosticsFailedMessage");
463
+ S(H), k.current ? v("error") : ie({
464
+ title: s("diagnosticsFailedTitle"),
465
+ message: H
466
+ });
467
+ } finally {
468
+ u(!0), m(!1);
469
+ }
470
+ }, [C, o, m, s]), R = D(() => {
471
+ if (!a) {
472
+ le({
473
+ title: s("diagnosticsConsentRequiredTitle"),
474
+ message: s("diagnosticsConsentRequiredMessage")
475
+ });
476
+ return;
477
+ }
478
+ $();
479
+ }, [a, $, s]);
480
+ return /* @__PURE__ */ n(
481
+ ce,
482
+ {
483
+ opened: r,
484
+ onClose: M,
485
+ title: p === "progress" ? s("diagnosticsProgressTitle") : null,
486
+ size: 440,
487
+ centered: !0,
488
+ classNames: {
489
+ content: p === "consent" ? `${e.desktopFlowModal} ${e.diagnosticsConsentModal}` : p === "progress" ? `${e.desktopFlowModal} ${e.diagnosticsProgressModal}` : `${e.desktopFlowModal} ${e.diagnosticsResultModal}`,
490
+ header: p === "progress" ? `${e.desktopFlowModalHeader} ${e.desktopFlowModalHeaderCompact}` : e.desktopFlowModalHeaderFloating,
491
+ title: e.desktopFlowModalTitle,
492
+ body: p === "progress" ? e.desktopFlowModalBody : `${e.desktopFlowModalBody} ${e.desktopFlowModalBodyFloating} ${e.diagnosticsFloatingBody}`
493
+ },
494
+ children: [
495
+ p === "consent" && /* @__PURE__ */ n(f, { gap: 0, children: [
496
+ /* @__PURE__ */ n(f, { className: e.flowIntroStack, gap: 0, children: [
497
+ /* @__PURE__ */ t(q, { status: "info", icon: Re }),
498
+ /* @__PURE__ */ t(i, { className: e.flowTitle, children: s("diagnosticsReportTitle") }),
499
+ /* @__PURE__ */ t(i, { className: e.flowDescription, children: s("collectDiagnosticsConsentDescription") })
500
+ ] }),
501
+ /* @__PURE__ */ t(
502
+ de,
503
+ {
504
+ className: `${e.flowDivider} ${e.flowConsentDivider}`
505
+ }
506
+ ),
507
+ /* @__PURE__ */ t(
508
+ ke,
509
+ {
510
+ className: e.flowConsentCheckbox,
511
+ checked: a,
512
+ disabled: o,
513
+ styles: { body: { alignItems: "flex-start" } },
514
+ label: /* @__PURE__ */ t(i, { className: e.flowCheckboxLabel, children: s("collectDiagnosticsConsentCheckbox") }),
515
+ onChange: (N) => u(N.currentTarget.checked)
516
+ }
517
+ ),
518
+ /* @__PURE__ */ n(z, { className: e.flowActions, children: [
519
+ /* @__PURE__ */ t(
520
+ I,
521
+ {
522
+ variant: "default",
523
+ flex: 1,
524
+ h: 36,
525
+ disabled: o,
526
+ onClick: M,
527
+ children: s("reportProblemCancel")
528
+ }
529
+ ),
530
+ /* @__PURE__ */ t(
531
+ I,
532
+ {
533
+ flex: 1,
534
+ h: 36,
535
+ loading: o,
536
+ disabled: !a,
537
+ onClick: R,
538
+ children: s("generateDiagnosticsReport")
539
+ }
540
+ )
541
+ ] })
542
+ ] }),
543
+ p === "progress" && /* @__PURE__ */ t(
544
+ rt,
545
+ {
546
+ leftIcon: /* @__PURE__ */ t(be, {}),
547
+ rightIcon: /* @__PURE__ */ t(st, {}),
548
+ percent: U.percent,
549
+ remainingLabel: s("diagnosticsProgressRemaining"),
550
+ hint: s("diagnosticsProgressHint")
551
+ }
552
+ ),
553
+ p === "success" && /* @__PURE__ */ n(f, { className: e.flowResultStack, gap: 0, children: [
554
+ /* @__PURE__ */ t(q, { status: "success" }),
555
+ /* @__PURE__ */ t(i, { className: e.flowTitle, children: s("diagnosticsCompletedTitle") }),
556
+ /* @__PURE__ */ t(i, { className: e.flowDescription, children: s("diagnosticsReadyMessage") }),
557
+ /* @__PURE__ */ t(
558
+ I,
559
+ {
560
+ className: e.flowFullButton,
561
+ fullWidth: !0,
562
+ onClick: M,
563
+ children: s("desktopFlowContinue")
564
+ }
565
+ )
566
+ ] }),
567
+ p === "error" && /* @__PURE__ */ n(f, { className: e.flowResultStack, gap: 0, children: [
568
+ /* @__PURE__ */ t(q, { status: "error" }),
569
+ /* @__PURE__ */ t(i, { className: e.flowTitle, children: s("diagnosticsFailedTitle") }),
570
+ /* @__PURE__ */ t(i, { className: e.flowDescription, children: l || s("diagnosticsFailedMessage") }),
571
+ /* @__PURE__ */ t(
572
+ I,
573
+ {
574
+ className: e.flowFullButton,
575
+ fullWidth: !0,
576
+ onClick: () => {
577
+ $();
578
+ },
579
+ children: s("desktopFlowTryAgain")
580
+ }
581
+ )
582
+ ] })
583
+ ]
584
+ }
585
+ );
586
+ }, Ht = ({
587
+ opened: r,
588
+ onClose: g
589
+ }) => {
590
+ const { t: o } = X("helpMenu"), [m, s] = V(null), [a, u] = V(!1), p = D((h) => {
591
+ s((c) => ({
592
+ status: "error",
593
+ enabled: !0,
594
+ currentVersion: c?.currentVersion ?? "",
595
+ availableVersion: c?.availableVersion,
596
+ error: h instanceof Error && h.message ? h.message : String(h),
597
+ canCheck: !0,
598
+ canDownload: !1,
599
+ canInstall: !1
600
+ }));
601
+ }, []), v = D(async () => {
602
+ const h = x()?.updates;
603
+ if (h?.check) {
604
+ u(!0), s(
605
+ (c) => c ? { ...c, status: "checking" } : {
606
+ status: "checking",
607
+ enabled: !0,
608
+ currentVersion: "",
609
+ canCheck: !1,
610
+ canDownload: !1,
611
+ canInstall: !1
612
+ }
613
+ );
614
+ try {
615
+ const c = await h.check();
616
+ s(c);
617
+ } catch (c) {
618
+ p(c);
619
+ } finally {
620
+ u(!1);
621
+ }
622
+ }
623
+ }, [p]), U = D(async () => {
624
+ const h = x()?.updates;
625
+ if (h?.download) {
626
+ u(!0), s(
627
+ (c) => c && {
628
+ ...c,
629
+ status: "downloading",
630
+ progress: c.progress ?? { percent: 0 }
631
+ }
632
+ );
633
+ try {
634
+ const c = await h.download();
635
+ s(c);
636
+ } catch (c) {
637
+ p(c);
638
+ } finally {
639
+ u(!1);
640
+ }
641
+ }
642
+ }, [p]), F = D(async () => {
643
+ const h = x()?.updates;
644
+ if (h?.install) {
645
+ u(!0), s(
646
+ (c) => c && {
647
+ ...c,
648
+ status: "installing",
649
+ canCheck: !1,
650
+ canDownload: !1,
651
+ canInstall: !1
652
+ }
653
+ );
654
+ try {
655
+ const c = await h.install();
656
+ s(c);
657
+ } catch (c) {
658
+ p(c);
659
+ } finally {
660
+ u(!1);
661
+ }
662
+ }
663
+ }, [p]);
664
+ _(() => {
665
+ if (!r) return;
666
+ const h = x()?.updates;
667
+ if (!h) return;
668
+ let c = !1;
669
+ const K = (E) => {
670
+ c || s(E);
671
+ };
672
+ h.status().then((E) => {
673
+ c || (s(E), E.canCheck && v());
674
+ }).catch(p);
675
+ const O = h.onChanged(K);
676
+ return () => {
677
+ c = !0, O();
678
+ };
679
+ }, [r, v, p]);
680
+ const l = m?.status ?? "checking", S = pe(m?.progress?.percent ?? 0), k = at(m?.progress), d = k !== null ? o("desktopFlowRemaining", { time: k }) : S > 0 && S < 100 ? o("desktopFlowRemainingUnknown") : null, b = k !== null ? `${k}s` : d || o("desktopFlowRemainingUnknownShort"), C = D(() => {
681
+ u(!1), g();
682
+ }, [g]), M = ["not_available", "downloaded", "error"], $ = l === "checking", R = l === "downloading", N = M.some((h) => h === l), L = l === "available", y = [
683
+ e.desktopFlowModal,
684
+ $ ? e.desktopUpdateCheckingModal : "",
685
+ R ? e.desktopUpdateDownloadModal : "",
686
+ N || l === "disabled" || l === "idle" ? e.desktopUpdateResultModal : "",
687
+ L || l === "installing" ? e.desktopUpdateAvailableModal : ""
688
+ ].filter(Boolean).join(" "), H = [
689
+ e.desktopFlowModalBody,
690
+ $ ? e.desktopUpdateCheckingBody : "",
691
+ R ? e.desktopUpdateDownloadBody : "",
692
+ N || l === "disabled" || l === "idle" ? e.desktopUpdateResultBody : "",
693
+ L || l === "installing" ? e.desktopUpdateResultBody : ""
694
+ ].filter(Boolean).join(" ");
695
+ return /* @__PURE__ */ n(
696
+ ce,
697
+ {
698
+ opened: r,
699
+ onClose: C,
700
+ title: R ? o("desktopUpdateDownloadingTitle") : null,
701
+ size: 440,
702
+ centered: !0,
703
+ classNames: {
704
+ content: y,
705
+ header: R ? `${e.desktopFlowModalHeader} ${e.desktopFlowModalHeaderCompact}` : e.desktopFlowModalHeaderFloating,
706
+ title: e.desktopFlowModalTitle,
707
+ body: H
708
+ },
709
+ children: [
710
+ l === "checking" && /* @__PURE__ */ n(
711
+ f,
712
+ {
713
+ className: `${e.flowResultStack} ${e.desktopUpdateCheckingStack}`,
714
+ gap: 0,
715
+ children: [
716
+ /* @__PURE__ */ t(lt, { label: o("desktopUpdateCheckingTitle") }),
717
+ /* @__PURE__ */ t(i, { className: e.flowTitle, children: o("desktopUpdateCheckingTitle") }),
718
+ /* @__PURE__ */ t(i, { className: e.flowDescription, children: o("desktopUpdateCheckingMessage") })
719
+ ]
720
+ }
721
+ ),
722
+ l === "not_available" && /* @__PURE__ */ n(f, { className: e.flowResultStack, gap: 0, children: [
723
+ /* @__PURE__ */ t(fe, {}),
724
+ /* @__PURE__ */ t(i, { className: e.flowTitle, children: o("desktopUpdateUpToDateTitle") }),
725
+ /* @__PURE__ */ t(i, { className: e.flowDescription, children: o("desktopUpdateUpToDateMessage", {
726
+ version: m?.currentVersion || o("desktopUpdateUnknownVersion")
727
+ }) }),
728
+ /* @__PURE__ */ t(
729
+ I,
730
+ {
731
+ className: e.flowFullButton,
732
+ fullWidth: !0,
733
+ onClick: C,
734
+ children: o("desktopFlowContinue")
735
+ }
736
+ )
737
+ ] }),
738
+ l === "available" && /* @__PURE__ */ n(f, { className: e.flowResultStack, gap: 0, children: [
739
+ /* @__PURE__ */ t(q, { status: "info", icon: re }),
740
+ /* @__PURE__ */ t(i, { className: e.flowTitle, children: o("desktopUpdateAvailableTitle") }),
741
+ /* @__PURE__ */ t(i, { className: e.flowDescription, children: o("desktopUpdateAvailableMessage", {
742
+ version: m?.availableVersion ?? ""
743
+ }) }),
744
+ /* @__PURE__ */ n(z, { className: e.flowActions, children: [
745
+ /* @__PURE__ */ t(I, { variant: "default", flex: 1, h: 36, onClick: C, children: o("desktopUpdateLater") }),
746
+ /* @__PURE__ */ t(
747
+ I,
748
+ {
749
+ flex: 1,
750
+ h: 36,
751
+ loading: a,
752
+ disabled: !m?.canDownload,
753
+ onClick: () => {
754
+ U();
755
+ },
756
+ children: o("desktopUpdateUpdateNow")
757
+ }
758
+ )
759
+ ] })
760
+ ] }),
761
+ l === "downloading" && /* @__PURE__ */ n(f, { className: e.desktopUpdateDownloadStack, gap: 10, children: [
762
+ /* @__PURE__ */ t(i, { className: e.desktopUpdateDownloadDescription, children: o("desktopUpdateDownloadingDescription") }),
763
+ /* @__PURE__ */ t(de, { className: e.desktopUpdateDownloadAnimation, children: /* @__PURE__ */ t(
764
+ Me,
765
+ {
766
+ leftIcon: /* @__PURE__ */ t(T, { icon: re, size: 24 }),
767
+ rightIcon: /* @__PURE__ */ t(be, {}),
768
+ height: 100,
769
+ particleCount: 24,
770
+ startDistributed: !0
771
+ }
772
+ ) }),
773
+ /* @__PURE__ */ n(f, { className: e.desktopUpdateDownloadMeter, gap: 6, children: [
774
+ /* @__PURE__ */ n(
775
+ z,
776
+ {
777
+ className: e.desktopUpdateDownloadHeader,
778
+ justify: "space-between",
779
+ align: "center",
780
+ wrap: "nowrap",
781
+ children: [
782
+ /* @__PURE__ */ n(
783
+ i,
784
+ {
785
+ className: `${e.flowProgressMeta} ${e.flowProgressMetaPrimary}`,
786
+ children: [
787
+ Math.round(S),
788
+ "%"
789
+ ]
790
+ }
791
+ ),
792
+ /* @__PURE__ */ n(i, { className: e.desktopUpdateRemaining, children: [
793
+ /* @__PURE__ */ t("span", { className: e.desktopUpdateRemainingLabel, children: o("desktopFlowRemainingLabel") }),
794
+ /* @__PURE__ */ n("span", { className: e.desktopUpdateRemainingValue, children: [
795
+ " ",
796
+ b
797
+ ] })
798
+ ] })
799
+ ]
800
+ }
801
+ ),
802
+ /* @__PURE__ */ t(
803
+ G.Root,
804
+ {
805
+ size: 6,
806
+ radius: "xl",
807
+ className: e.flowProgressBar,
808
+ children: /* @__PURE__ */ t(
809
+ G.Section,
810
+ {
811
+ value: S,
812
+ color: "#4c6ef5",
813
+ className: e.flowProgressBarSection
814
+ }
815
+ )
816
+ }
817
+ )
818
+ ] }),
819
+ /* @__PURE__ */ t(i, { component: "div", className: e.desktopUpdateDownloadHint, children: o("desktopUpdateProgressHint") })
820
+ ] }),
821
+ l === "downloaded" && /* @__PURE__ */ n(f, { className: e.flowResultStack, gap: 0, children: [
822
+ /* @__PURE__ */ t(fe, {}),
823
+ /* @__PURE__ */ t(i, { className: e.flowTitle, children: o("desktopUpdateReadyTitle") }),
824
+ /* @__PURE__ */ t(i, { className: e.flowDescription, children: o("desktopUpdateDownloadedMessage") }),
825
+ /* @__PURE__ */ t(
826
+ I,
827
+ {
828
+ className: e.flowFullButton,
829
+ fullWidth: !0,
830
+ loading: a,
831
+ onClick: () => {
832
+ if (m?.canInstall) {
833
+ F();
834
+ return;
835
+ }
836
+ C();
837
+ },
838
+ children: o("desktopFlowContinue")
839
+ }
840
+ )
841
+ ] }),
842
+ l === "installing" && /* @__PURE__ */ n(f, { className: e.flowResultStack, gap: 0, children: [
843
+ /* @__PURE__ */ t(T, { icon: He, size: 28 }),
844
+ /* @__PURE__ */ t(i, { className: e.flowTitle, children: o("desktopUpdateInstallingTitle") }),
845
+ /* @__PURE__ */ t(i, { className: e.flowDescription, children: o("desktopUpdateInstallingMessage") }),
846
+ /* @__PURE__ */ t(
847
+ G,
848
+ {
849
+ value: 100,
850
+ animated: !0,
851
+ striped: !0,
852
+ size: 6,
853
+ radius: "xl",
854
+ w: "100%"
855
+ }
856
+ )
857
+ ] }),
858
+ l === "disabled" && /* @__PURE__ */ n(f, { className: e.flowResultStack, gap: 0, children: [
859
+ /* @__PURE__ */ t(q, { status: "info" }),
860
+ /* @__PURE__ */ t(i, { className: e.flowTitle, children: o("desktopUpdateTitle") }),
861
+ /* @__PURE__ */ t(i, { className: e.flowDescription, children: o("desktopUpdateStatus.disabled") }),
862
+ /* @__PURE__ */ t(
863
+ I,
864
+ {
865
+ className: e.flowFullButton,
866
+ fullWidth: !0,
867
+ onClick: C,
868
+ children: o("desktopFlowContinue")
869
+ }
870
+ )
871
+ ] }),
872
+ (l === "error" || l === "idle") && /* @__PURE__ */ n(f, { className: e.flowResultStack, gap: 0, children: [
873
+ l === "error" ? /* @__PURE__ */ t(it, {}) : /* @__PURE__ */ t(q, { status: "info" }),
874
+ /* @__PURE__ */ t(i, { className: e.flowTitle, children: o(l === "error" ? "desktopUpdateFailedTitle" : "desktopUpdateTitle") }),
875
+ /* @__PURE__ */ t(i, { className: e.flowDescription, children: l === "error" ? o("desktopUpdateFailedMessage") : m?.error || o("desktopUpdateFailedMessage") }),
876
+ /* @__PURE__ */ t(
877
+ I,
878
+ {
879
+ className: e.flowFullButton,
880
+ fullWidth: !0,
881
+ loading: a,
882
+ onClick: () => {
883
+ v();
884
+ },
885
+ children: o("desktopFlowTryAgain")
886
+ }
887
+ )
888
+ ] })
889
+ ]
890
+ }
891
+ );
892
+ }, $t = ({
893
+ onReportProblemClick: r,
894
+ onCheckUpdatesClick: g,
895
+ onCollectDiagnosticsClick: o,
896
+ diagnosticsCollecting: m = !1,
897
+ reportProblemTourTargetId: s
898
+ }) => {
899
+ const { t: a } = X("helpMenu"), u = Je(), [p, v] = V(!1), [U, F] = V(null), [l, S] = V(
900
+ null
901
+ ), k = ne(null), d = ve(() => {
902
+ const w = _e().analytics;
903
+ return w?.intercomEnabled !== !1 && !!w?.intercomAppId;
23
904
  }, []), {
24
- showMessenger: w,
25
- showNewMessage: z,
26
- workspaceMenu: C,
27
- getFirstPageLink: D,
28
- version: E,
29
- updatedAt: P,
30
- privacyPolicyLink: x,
31
- userAgreementLink: F,
32
- whatsNewItems: v
33
- } = re(), j = () => {
34
- m();
35
- const r = new URL(window.location.href);
36
- r.searchParams.get("view") === "graph" && (r.searchParams.delete("view"), window.history.replaceState(
905
+ showMessenger: b,
906
+ showNewMessage: C,
907
+ workspaceMenu: M,
908
+ getFirstPageLink: $,
909
+ version: R,
910
+ updatedAt: N,
911
+ privacyPolicyLink: L,
912
+ userAgreementLink: y,
913
+ whatsNewItems: H
914
+ } = Ye(), h = u.isDesktop && !!o && typeof x()?.collectDiagnostics == "function", c = u.isDesktop && r, K = u.isDesktop && !!g && typeof x()?.updates?.check == "function", O = K && l?.status === "available" && l.canDownload, E = l?.availableVersion ? `v${l.availableVersion}` : null, J = K, ue = c || h, Ne = () => {
915
+ te();
916
+ const w = new URL(window.location.href);
917
+ w.searchParams.get("view") === "graph" && (w.searchParams.delete("view"), window.history.replaceState(
37
918
  window.history.state,
38
919
  "",
39
- `${r.pathname}${r.search}${r.hash}`
40
- )), oe(ne.GraphStart);
41
- const p = window.location.pathname.split("/").filter(Boolean), L = p[0], b = p[1] === "pages" ? p[2] : void 0, l = L || C.active.workspaceId;
42
- if (l) {
43
- if (b) {
44
- window.location.assign(`/${l}/pages/${b}`);
920
+ `${w.pathname}${w.search}${w.hash}`
921
+ )), Qe(et.GraphStart);
922
+ const A = window.location.pathname.split("/").filter(Boolean), j = A[0], Q = A[1] === "pages" ? A[2] : void 0, W = j || M.active.workspaceId;
923
+ if (W) {
924
+ if (Q) {
925
+ window.location.assign(`/${W}/pages/${Q}`);
45
926
  return;
46
927
  }
47
- const k = D?.(l);
48
- if (k) {
49
- window.location.assign(k);
928
+ const he = $?.(W);
929
+ if (he) {
930
+ window.location.assign(he);
50
931
  return;
51
932
  }
52
- window.location.assign(`/${l}/pages`);
933
+ window.location.assign(`/${W}/pages`);
53
934
  return;
54
935
  }
55
936
  window.location.assign("/");
56
- }, n = h(() => {
57
- c.current && (window.clearTimeout(c.current), c.current = null);
58
- }, []), d = h(() => {
59
- n(), f(!0);
60
- }, [n]), m = h(() => {
61
- n(), c.current = window.setTimeout(() => {
62
- f(!1);
937
+ }, Z = D(() => {
938
+ k.current && (window.clearTimeout(k.current), k.current = null);
939
+ }, []), ee = D(() => {
940
+ Z(), v(!0);
941
+ }, [Z]), te = D(() => {
942
+ Z(), k.current = window.setTimeout(() => {
943
+ v(!1);
63
944
  }, 120);
64
- }, [n]);
65
- return R(() => () => {
66
- n();
67
- }, [n]), /* @__PURE__ */ a(K, { gap: 6, p: 4, children: [
68
- o.social.whatsappEnabled && /* @__PURE__ */ e(
69
- u,
945
+ }, [Z]);
946
+ _(() => () => {
947
+ Z();
948
+ }, [Z]), _(() => {
949
+ let w = !0;
950
+ const A = x();
951
+ return typeof A?.getVersion != "function" ? (F(null), () => {
952
+ w = !1;
953
+ }) : (A.getVersion().then((j) => {
954
+ w && F(j || null);
955
+ }).catch(() => {
956
+ w && F(null);
957
+ }), () => {
958
+ w = !1;
959
+ });
960
+ }, []), _(() => {
961
+ if (!u.isDesktop) {
962
+ S(null);
963
+ return;
964
+ }
965
+ const w = x()?.updates;
966
+ if (!w) {
967
+ S(null);
968
+ return;
969
+ }
970
+ let A = !1;
971
+ const j = (W) => {
972
+ A || S(W);
973
+ };
974
+ w.status().then(j).catch(() => {
975
+ });
976
+ const Q = w.onChanged(j);
977
+ return () => {
978
+ A = !0, Q();
979
+ };
980
+ }, [u.isDesktop]);
981
+ const ge = D(() => {
982
+ if (O) {
983
+ window.dispatchEvent(new Event("layers:desktop-update:download"));
984
+ return;
985
+ }
986
+ g?.();
987
+ }, [g, O]), me = l?.currentVersion || U, De = c ? /* @__PURE__ */ t(
988
+ P.Item,
989
+ {
990
+ "data-onboarding-tour-id": s,
991
+ variant: "outline",
992
+ onClick: r,
993
+ leftSection: /* @__PURE__ */ t(T, { icon: ye, size: 16 }),
994
+ children: a("reportProblem")
995
+ }
996
+ ) : null;
997
+ return /* @__PURE__ */ t(oe, { children: /* @__PURE__ */ n(f, { className: e.helpMenuContent, gap: 6, children: [
998
+ B.social.whatsappEnabled && /* @__PURE__ */ t(
999
+ I,
70
1000
  {
71
1001
  component: "a",
72
- href: o.social.whatsapp,
1002
+ href: B.social.whatsapp,
73
1003
  target: "_blank",
74
1004
  bg: "#00C000",
75
- leftSection: /* @__PURE__ */ e(X, { width: 16, height: 16 }),
1005
+ leftSection: /* @__PURE__ */ t(We, { width: 16, height: 16 }),
76
1006
  c: "white",
77
1007
  size: "sm",
78
1008
  justify: "flex-start",
79
- children: t("joinWhatsApp")
1009
+ children: a("joinWhatsApp")
80
1010
  }
81
1011
  ),
82
- o.social.telegramEnabled && /* @__PURE__ */ e(
83
- u,
1012
+ B.social.telegramEnabled && /* @__PURE__ */ t(
1013
+ I,
84
1014
  {
85
1015
  component: "a",
86
- href: o.social.telegram,
1016
+ href: B.social.telegram,
87
1017
  target: "_blank",
88
1018
  bg: "blue.5",
89
- leftSection: /* @__PURE__ */ e(V, { width: 16, height: 16 }),
1019
+ leftSection: /* @__PURE__ */ t(je, { width: 16, height: 16 }),
90
1020
  c: "white",
91
1021
  size: "sm",
92
1022
  justify: "flex-start",
93
- children: t("joinTelegram")
1023
+ children: a("joinTelegram")
94
1024
  }
95
1025
  ),
96
- o.social.discordEnabled && /* @__PURE__ */ e(
97
- u,
1026
+ B.social.discordEnabled && /* @__PURE__ */ t(
1027
+ I,
98
1028
  {
99
1029
  component: "a",
100
- href: o.social.discord,
1030
+ href: B.social.discord,
101
1031
  target: "_blank",
102
1032
  bg: "indigo.6",
103
- leftSection: /* @__PURE__ */ e(Q, { width: 16, height: 16 }),
1033
+ leftSection: /* @__PURE__ */ t(Ze, { width: 16, height: 16 }),
104
1034
  c: "white",
105
1035
  size: "sm",
106
1036
  justify: "flex-start",
107
- children: t("joinDiscord")
1037
+ children: a("joinDiscord")
108
1038
  }
109
1039
  ),
110
- (o.social.whatsappEnabled || o.social.telegramEnabled || o.social.discordEnabled) && /* @__PURE__ */ e(i.Divider, {}),
111
- !y.isDesktop && T && /* @__PURE__ */ a(I, { children: [
112
- /* @__PURE__ */ e(
113
- i.Item,
1040
+ (B.social.whatsappEnabled || B.social.telegramEnabled || B.social.discordEnabled) && /* @__PURE__ */ t(P.Divider, {}),
1041
+ !u.isDesktop && d && /* @__PURE__ */ n(oe, { children: [
1042
+ /* @__PURE__ */ t(
1043
+ P.Item,
114
1044
  {
115
1045
  onClick: () => {
116
- w(), z(t("contactSalesMessage"));
1046
+ b(), C(a("contactSalesMessage"));
117
1047
  },
118
- leftSection: /* @__PURE__ */ e(s, { icon: U, size: 16 }),
119
- children: t("contactSales")
1048
+ leftSection: /* @__PURE__ */ t(T, { icon: Se, size: 16 }),
1049
+ children: a("contactSales")
120
1050
  }
121
1051
  ),
122
- /* @__PURE__ */ e(
123
- i.Item,
1052
+ /* @__PURE__ */ t(
1053
+ P.Item,
124
1054
  {
125
- onClick: w,
126
- leftSection: /* @__PURE__ */ e(s, { icon: H, size: 16 }),
127
- children: t("getSupport")
1055
+ onClick: b,
1056
+ leftSection: /* @__PURE__ */ t(T, { icon: Pe, size: 16 }),
1057
+ children: a("getSupport")
128
1058
  }
129
1059
  ),
130
- /* @__PURE__ */ e(i.Divider, {})
1060
+ /* @__PURE__ */ t(P.Divider, {})
131
1061
  ] }),
132
- ee() && /* @__PURE__ */ a(
133
- g,
1062
+ Ge() && /* @__PURE__ */ n(
1063
+ se,
134
1064
  {
135
- opened: M,
1065
+ opened: p,
136
1066
  width: 200,
137
1067
  position: "right-start",
138
1068
  offset: 10,
139
1069
  withinPortal: !0,
140
1070
  shadow: "md",
141
1071
  children: [
142
- /* @__PURE__ */ e(g.Target, { children: /* @__PURE__ */ e("div", { onMouseEnter: d, onMouseLeave: m, children: /* @__PURE__ */ e(
143
- i.Item,
1072
+ /* @__PURE__ */ t(se.Target, { children: /* @__PURE__ */ t("div", { onMouseEnter: ee, onMouseLeave: te, children: /* @__PURE__ */ t(
1073
+ P.Item,
144
1074
  {
145
- leftSection: /* @__PURE__ */ e(s, { icon: N, size: 16 }),
146
- rightSection: /* @__PURE__ */ e(J, { size: 14 }),
147
- onClick: (r) => {
148
- r.preventDefault(), d();
1075
+ leftSection: /* @__PURE__ */ t(T, { icon: Ie, size: 16 }),
1076
+ rightSection: /* @__PURE__ */ t(Oe, { size: 14 }),
1077
+ onClick: (w) => {
1078
+ w.preventDefault(), ee();
149
1079
  },
150
- children: t("tutorials")
1080
+ children: a("tutorials")
151
1081
  }
152
1082
  ) }) }),
153
- /* @__PURE__ */ e(
154
- g.Dropdown,
1083
+ /* @__PURE__ */ t(
1084
+ se.Dropdown,
155
1085
  {
156
1086
  py: 4,
157
1087
  ml: 6,
@@ -159,27 +1089,27 @@ const Me = () => {
159
1089
  backgroundColor: "light-dark(var(--app-shell-bg),var(--mantine-color-dark-6))",
160
1090
  border: "none"
161
1091
  },
162
- onMouseEnter: d,
163
- onMouseLeave: m,
164
- children: /* @__PURE__ */ e(
165
- Y,
1092
+ onMouseEnter: ee,
1093
+ onMouseLeave: te,
1094
+ children: /* @__PURE__ */ t(
1095
+ xe,
166
1096
  {
167
- onClick: j,
1097
+ onClick: Ne,
168
1098
  style: {
169
1099
  width: "100%",
170
1100
  borderRadius: 12,
171
1101
  padding: "6px 12px"
172
1102
  },
173
- children: /* @__PURE__ */ a(q, { gap: 10, children: [
174
- /* @__PURE__ */ e(
175
- s,
1103
+ children: /* @__PURE__ */ n(z, { gap: 10, children: [
1104
+ /* @__PURE__ */ t(
1105
+ T,
176
1106
  {
177
- icon: O,
1107
+ icon: Ue,
178
1108
  size: 16,
179
1109
  color: "var(--mantine-color-dimmed)"
180
1110
  }
181
1111
  ),
182
- /* @__PURE__ */ e(S, { size: "sm", c: "bright", children: t("mindMap") })
1112
+ /* @__PURE__ */ t(i, { size: "sm", c: "bright", children: a("mindMap") })
183
1113
  ] })
184
1114
  }
185
1115
  )
@@ -188,49 +1118,99 @@ const Me = () => {
188
1118
  ]
189
1119
  }
190
1120
  ),
191
- /* @__PURE__ */ e(
192
- i.Item,
1121
+ J && O && /* @__PURE__ */ n(f, { className: e.helpMenuUpdateBlock, gap: 2, children: [
1122
+ /* @__PURE__ */ t(i, { className: e.helpMenuUpdateLabel, children: a("desktopUpdateNewAvailable") }),
1123
+ /* @__PURE__ */ t(
1124
+ Le,
1125
+ {
1126
+ label: a("desktopUpdateDownloadTooltip", {
1127
+ version: E ?? a("desktopUpdateUnknownVersion")
1128
+ }),
1129
+ position: "right",
1130
+ withArrow: !0,
1131
+ openDelay: 250,
1132
+ children: /* @__PURE__ */ t(
1133
+ P.Item,
1134
+ {
1135
+ variant: "light",
1136
+ color: "primary",
1137
+ className: e.helpMenuPrimaryItem,
1138
+ onClick: ge,
1139
+ leftSection: /* @__PURE__ */ t(T, { icon: re, size: 16 }),
1140
+ rightSection: E ? /* @__PURE__ */ t(i, { className: e.helpMenuUpdateVersion, children: E }) : void 0,
1141
+ children: a("desktopUpdateDownloadNow")
1142
+ }
1143
+ )
1144
+ }
1145
+ )
1146
+ ] }),
1147
+ J && !O && /* @__PURE__ */ t(
1148
+ P.Item,
1149
+ {
1150
+ variant: "outline",
1151
+ onClick: ge,
1152
+ leftSection: /* @__PURE__ */ t(T, { icon: Fe, size: 16 }),
1153
+ children: a("desktopUpdateMenuItem")
1154
+ }
1155
+ ),
1156
+ J && ue && /* @__PURE__ */ t(P.Divider, {}),
1157
+ De,
1158
+ h && /* @__PURE__ */ t(
1159
+ P.Item,
1160
+ {
1161
+ variant: "outline",
1162
+ disabled: m,
1163
+ onClick: o,
1164
+ leftSection: m ? /* @__PURE__ */ t(Ae, { size: 14, color: "var(--mantine-color-blue-6)" }) : /* @__PURE__ */ t(T, { icon: we, size: 16 }),
1165
+ children: a(m ? "collectDiagnosticsInProgress" : "collectDiagnostics")
1166
+ }
1167
+ ),
1168
+ (J || ue) && /* @__PURE__ */ t(P.Divider, {}),
1169
+ /* @__PURE__ */ t(
1170
+ P.Item,
193
1171
  {
194
1172
  variant: "outline",
195
1173
  component: "a",
196
1174
  target: "_blank",
197
- href: F,
198
- leftSection: /* @__PURE__ */ e(s, { icon: W, size: 16 }),
199
- children: t("userAgreement")
1175
+ href: y,
1176
+ leftSection: /* @__PURE__ */ t(T, { icon: Te, size: 16 }),
1177
+ children: a("userAgreement")
200
1178
  }
201
1179
  ),
202
- /* @__PURE__ */ e(
203
- i.Item,
1180
+ /* @__PURE__ */ t(
1181
+ P.Item,
204
1182
  {
205
1183
  variant: "outline",
206
1184
  component: "a",
207
1185
  target: "_blank",
208
- href: x,
209
- leftSection: /* @__PURE__ */ e(s, { icon: G, size: 16 }),
210
- children: t("termsAndPrivacy")
1186
+ href: L,
1187
+ leftSection: /* @__PURE__ */ t(T, { icon: Ve, size: 16 }),
1188
+ children: a("termsAndPrivacy")
211
1189
  }
212
1190
  ),
213
- /* @__PURE__ */ e(i.Divider, {}),
214
- !!v?.length && /* @__PURE__ */ a(I, { children: [
215
- /* @__PURE__ */ e(ie, { items: v }),
216
- /* @__PURE__ */ e(i.Divider, {})
1191
+ /* @__PURE__ */ t(P.Divider, {}),
1192
+ !!H?.length && /* @__PURE__ */ n(oe, { children: [
1193
+ /* @__PURE__ */ t(Xe, { items: H }),
1194
+ /* @__PURE__ */ t(P.Divider, {})
217
1195
  ] }),
218
- /* @__PURE__ */ a(S, { size: "xs", c: "dimmed", children: [
219
- t("updated"),
1196
+ /* @__PURE__ */ n(i, { className: e.helpMenuFooter, children: [
1197
+ a("updated"),
220
1198
  " ",
221
- P,
222
- /* @__PURE__ */ e("br", {}),
223
- o.name,
224
- " v",
225
- E,
226
- /* @__PURE__ */ e("br", {}),
1199
+ N,
1200
+ /* @__PURE__ */ t("br", {}),
1201
+ u.isDesktop && me ? `${a("desktopVersion")} v${me}` : `${B.name} v${R}`,
1202
+ /* @__PURE__ */ t("br", {}),
227
1203
  "© ",
228
1204
  (/* @__PURE__ */ new Date()).getFullYear(),
229
1205
  " ",
230
- o.copyrightHolder
1206
+ B.copyrightHolder
231
1207
  ] })
232
- ] });
1208
+ ] }) });
233
1209
  };
234
1210
  export {
235
- Me as HelpMenu
1211
+ Rt as DesktopDiagnosticsConsentModal,
1212
+ Vt as DesktopSupportReportModal,
1213
+ Ht as DesktopUpdateFlowModal,
1214
+ $t as HelpMenu,
1215
+ x as getDesktopBridge
236
1216
  };