@layers-app/shared 0.4.6 → 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.
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +79 -72
- package/dist/components/AppContainer/AppContainer.module.css.js +20 -10
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts +6 -0
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts.map +1 -0
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.js +161 -0
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +238 -105
- package/dist/components/AppContainer/components/Main.js +4 -4
- package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
- package/dist/components/AppContainer/components/ToolSidebar.js +9 -9
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts +62 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +1107 -137
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +158 -6
- package/dist/components/AppShell/AppShell.module.css.js +5 -5
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +2 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.js +22 -17
- package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts +15 -0
- package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.js +36 -0
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +22 -22
- package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts +14 -0
- package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.js +31 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +172 -120
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts +18 -0
- package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.js +35 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts +33 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.js +70 -0
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +32 -28
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +12 -12
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -4
- package/dist/components/Chat/CallMessage/CallMessage.module.css.js +8 -8
- package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +1 -1
- package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +1 -1
- package/dist/components/Chat/ChatInput/ChatInput.module.css.js +44 -44
- package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +4 -4
- package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +10 -10
- package/dist/components/Chat/ChatPill/ChatPill.module.css.js +1 -1
- package/dist/components/Chat/DialogItem/DialogItem.module.css.js +4 -4
- package/dist/components/Chat/DialogList/DialogList.module.css.js +1 -1
- package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +4 -4
- package/dist/components/Chat/MessageActions/MessageActions.module.css.js +1 -1
- package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageActions/index.js +38 -37
- package/dist/components/Chat/MessageForward/MessageForward.module.css.js +1 -1
- package/dist/components/Chat/MessageList/MessageList.module.css.js +5 -5
- package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +3 -3
- package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageMeta/index.js +21 -19
- package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +12 -12
- package/dist/components/Chat/MessageReply/MessageReply.module.css.js +7 -7
- package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +8 -8
- package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +1 -1
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +3 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +81 -76
- package/dist/components/ColorPicker/ColorPicker.module.css.js +26 -32
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerList.js +72 -83
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +64 -67
- package/dist/components/ColorPicker/icons.js +5 -5
- package/dist/components/ColorPicker/types.d.ts +0 -6
- package/dist/components/ColorPicker/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/types.js +11 -53
- package/dist/components/ColorPicker/useRecentColors.d.ts +1 -3
- package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
- package/dist/components/ColorPicker/useRecentColors.js +20 -43
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/Copyright.module.css.js +1 -1
- package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
- package/dist/components/FilePicker/FilePicker.module.css.js +7 -7
- package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +3 -1
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +26 -25
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
- package/dist/components/Loaders/styles.module.css.js +6 -6
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
- package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
- package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NewToolbar/utils.d.ts +12 -0
- package/dist/components/NewToolbar/utils.d.ts.map +1 -0
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/OnboardingTour/index.d.ts +1 -1
- package/dist/components/OnboardingTour/index.d.ts.map +1 -1
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts +2 -0
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -1
- package/dist/components/OnboardingTour/useOnboardingTour.js +63 -51
- package/dist/components/PillTabs/PillTabs.module.css.js +1 -1
- package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
- package/dist/components/SettingsSection/styles.module.css.js +1 -1
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
- package/dist/components/VideoPlayer/VideoPlayer.d.ts +24 -0
- package/dist/components/VideoPlayer/VideoPlayer.d.ts.map +1 -0
- package/dist/components/VideoPlayer/VideoPlayer.js +727 -0
- package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts +8 -0
- package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/MobileDrawer/index.js +67 -0
- package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts +7 -0
- package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/SelectListOptionButton.js +44 -0
- package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts +9 -0
- package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/StoryboardPreview.js +38 -0
- package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts +33 -0
- package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoCustomControls.js +601 -0
- package/dist/components/VideoPlayer/components/VideoIcons.d.ts +25 -0
- package/dist/components/VideoPlayer/components/VideoIcons.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoIcons.js +145 -0
- package/dist/components/VideoPlayer/components/VideoMenu.d.ts +27 -0
- package/dist/components/VideoPlayer/components/VideoMenu.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoMenu.js +77 -0
- package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts +17 -0
- package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.js +289 -0
- package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoQualityMenu/index.js +55 -0
- package/dist/components/VideoPlayer/components/VideoSelect.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoSelect.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSelect.js +168 -0
- package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts +12 -0
- package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.js +48 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts +25 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.js +384 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts +21 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.js +264 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.js +39 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts +14 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.js +360 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts +16 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts +14 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts +4 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/context.js +14 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts +22 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/index.js +211 -0
- package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts +11 -0
- package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.js +41 -0
- package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.js +69 -0
- package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts +21 -0
- package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts.map +1 -0
- package/dist/components/VideoPlayer/hooks/useStoryboard.js +91 -0
- package/dist/components/VideoPlayer/index.d.ts +11 -0
- package/dist/components/VideoPlayer/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/types.d.ts +101 -0
- package/dist/components/VideoPlayer/types.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/chapters.d.ts +8 -0
- package/dist/components/VideoPlayer/utils/chapters.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/chapters.js +38 -0
- package/dist/components/VideoPlayer/utils/storyboard.d.ts +5 -0
- package/dist/components/VideoPlayer/utils/storyboard.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/storyboard.js +47 -0
- package/dist/components/VideoPlayer/utils/subtitles.d.ts +18 -0
- package/dist/components/VideoPlayer/utils/subtitles.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/subtitles.js +23 -0
- package/dist/components/VideoPlayer/utils/touch.d.ts +3 -0
- package/dist/components/VideoPlayer/utils/touch.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/touch.js +5 -0
- package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts +10 -0
- package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/videoPlayerUtils.js +22 -0
- package/dist/components/VideoPlayer/utils/videoSettings.d.ts +69 -0
- package/dist/components/VideoPlayer/utils/videoSettings.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/videoSettings.js +90 -0
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/config/brand.d.ts.map +1 -1
- package/dist/config/brand.js +29 -29
- package/dist/config/envConfig.d.ts +2 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts +8 -14
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +107 -111
- package/dist/helpers/showNotifications.module.css.js +4 -16
- package/dist/hooks/useDateUtils.d.ts.map +1 -1
- package/dist/hooks/useDateUtils.js +19 -23
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +589 -575
- package/dist/lang/locales/ui_en.json.js +1 -1
- package/dist/lang/locales/ui_es.json.js +1 -1
- package/dist/lang/locales/ui_ru.json.js +1 -1
- package/dist/videoSettings/createVideoSettingsDataSource.d.ts +19 -0
- package/dist/videoSettings/createVideoSettingsDataSource.d.ts.map +1 -0
- package/dist/videoSettings/createVideoSettingsDataSource.js +127 -0
- package/docs/README.md +499 -499
- package/package.json +79 -78
|
@@ -1,169 +1,1087 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { DiscountTag02Icon as
|
|
5
|
-
import { HugeiconsIcon as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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:
|
|
25
|
-
showNewMessage:
|
|
26
|
-
workspaceMenu:
|
|
27
|
-
getFirstPageLink:
|
|
28
|
-
version:
|
|
29
|
-
updatedAt:
|
|
30
|
-
privacyPolicyLink:
|
|
31
|
-
userAgreementLink:
|
|
32
|
-
whatsNewItems:
|
|
33
|
-
} =
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
|
|
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
|
-
`${
|
|
40
|
-
)),
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
43
|
-
if (
|
|
44
|
-
window.location.assign(`/${
|
|
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
|
|
48
|
-
if (
|
|
49
|
-
window.location.assign(
|
|
928
|
+
const he = $?.(W);
|
|
929
|
+
if (he) {
|
|
930
|
+
window.location.assign(he);
|
|
50
931
|
return;
|
|
51
932
|
}
|
|
52
|
-
window.location.assign(`/${
|
|
933
|
+
window.location.assign(`/${W}/pages`);
|
|
53
934
|
return;
|
|
54
935
|
}
|
|
55
936
|
window.location.assign("/");
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
}, []),
|
|
59
|
-
|
|
60
|
-
}, [
|
|
61
|
-
|
|
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(() => {
|
|
62
943
|
v(!1);
|
|
63
944
|
}, 120);
|
|
64
|
-
}, [
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}, [
|
|
68
|
-
let
|
|
69
|
-
const
|
|
70
|
-
return typeof
|
|
71
|
-
|
|
72
|
-
}) : (
|
|
73
|
-
|
|
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);
|
|
74
955
|
}).catch(() => {
|
|
75
|
-
|
|
956
|
+
w && F(null);
|
|
76
957
|
}), () => {
|
|
77
|
-
|
|
958
|
+
w = !1;
|
|
78
959
|
});
|
|
79
|
-
}, []),
|
|
80
|
-
|
|
81
|
-
|
|
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,
|
|
82
1000
|
{
|
|
83
1001
|
component: "a",
|
|
84
|
-
href:
|
|
1002
|
+
href: B.social.whatsapp,
|
|
85
1003
|
target: "_blank",
|
|
86
1004
|
bg: "#00C000",
|
|
87
|
-
leftSection: /* @__PURE__ */
|
|
1005
|
+
leftSection: /* @__PURE__ */ t(We, { width: 16, height: 16 }),
|
|
88
1006
|
c: "white",
|
|
89
1007
|
size: "sm",
|
|
90
1008
|
justify: "flex-start",
|
|
91
|
-
children:
|
|
1009
|
+
children: a("joinWhatsApp")
|
|
92
1010
|
}
|
|
93
1011
|
),
|
|
94
|
-
|
|
95
|
-
|
|
1012
|
+
B.social.telegramEnabled && /* @__PURE__ */ t(
|
|
1013
|
+
I,
|
|
96
1014
|
{
|
|
97
1015
|
component: "a",
|
|
98
|
-
href:
|
|
1016
|
+
href: B.social.telegram,
|
|
99
1017
|
target: "_blank",
|
|
100
1018
|
bg: "blue.5",
|
|
101
|
-
leftSection: /* @__PURE__ */
|
|
1019
|
+
leftSection: /* @__PURE__ */ t(je, { width: 16, height: 16 }),
|
|
102
1020
|
c: "white",
|
|
103
1021
|
size: "sm",
|
|
104
1022
|
justify: "flex-start",
|
|
105
|
-
children:
|
|
1023
|
+
children: a("joinTelegram")
|
|
106
1024
|
}
|
|
107
1025
|
),
|
|
108
|
-
|
|
109
|
-
|
|
1026
|
+
B.social.discordEnabled && /* @__PURE__ */ t(
|
|
1027
|
+
I,
|
|
110
1028
|
{
|
|
111
1029
|
component: "a",
|
|
112
|
-
href:
|
|
1030
|
+
href: B.social.discord,
|
|
113
1031
|
target: "_blank",
|
|
114
1032
|
bg: "indigo.6",
|
|
115
|
-
leftSection: /* @__PURE__ */
|
|
1033
|
+
leftSection: /* @__PURE__ */ t(Ze, { width: 16, height: 16 }),
|
|
116
1034
|
c: "white",
|
|
117
1035
|
size: "sm",
|
|
118
1036
|
justify: "flex-start",
|
|
119
|
-
children:
|
|
1037
|
+
children: a("joinDiscord")
|
|
120
1038
|
}
|
|
121
1039
|
),
|
|
122
|
-
(
|
|
123
|
-
!
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
|
|
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,
|
|
126
1044
|
{
|
|
127
1045
|
onClick: () => {
|
|
128
|
-
|
|
1046
|
+
b(), C(a("contactSalesMessage"));
|
|
129
1047
|
},
|
|
130
|
-
leftSection: /* @__PURE__ */
|
|
131
|
-
children:
|
|
1048
|
+
leftSection: /* @__PURE__ */ t(T, { icon: Se, size: 16 }),
|
|
1049
|
+
children: a("contactSales")
|
|
132
1050
|
}
|
|
133
1051
|
),
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
|
|
1052
|
+
/* @__PURE__ */ t(
|
|
1053
|
+
P.Item,
|
|
136
1054
|
{
|
|
137
|
-
onClick:
|
|
138
|
-
leftSection: /* @__PURE__ */
|
|
139
|
-
children:
|
|
1055
|
+
onClick: b,
|
|
1056
|
+
leftSection: /* @__PURE__ */ t(T, { icon: Pe, size: 16 }),
|
|
1057
|
+
children: a("getSupport")
|
|
140
1058
|
}
|
|
141
1059
|
),
|
|
142
|
-
/* @__PURE__ */
|
|
1060
|
+
/* @__PURE__ */ t(P.Divider, {})
|
|
143
1061
|
] }),
|
|
144
|
-
|
|
145
|
-
|
|
1062
|
+
Ge() && /* @__PURE__ */ n(
|
|
1063
|
+
se,
|
|
146
1064
|
{
|
|
147
|
-
opened:
|
|
1065
|
+
opened: p,
|
|
148
1066
|
width: 200,
|
|
149
1067
|
position: "right-start",
|
|
150
1068
|
offset: 10,
|
|
151
1069
|
withinPortal: !0,
|
|
152
1070
|
shadow: "md",
|
|
153
1071
|
children: [
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
|
|
1072
|
+
/* @__PURE__ */ t(se.Target, { children: /* @__PURE__ */ t("div", { onMouseEnter: ee, onMouseLeave: te, children: /* @__PURE__ */ t(
|
|
1073
|
+
P.Item,
|
|
156
1074
|
{
|
|
157
|
-
leftSection: /* @__PURE__ */
|
|
158
|
-
rightSection: /* @__PURE__ */
|
|
159
|
-
onClick: (
|
|
160
|
-
|
|
1075
|
+
leftSection: /* @__PURE__ */ t(T, { icon: Ie, size: 16 }),
|
|
1076
|
+
rightSection: /* @__PURE__ */ t(Oe, { size: 14 }),
|
|
1077
|
+
onClick: (w) => {
|
|
1078
|
+
w.preventDefault(), ee();
|
|
161
1079
|
},
|
|
162
|
-
children:
|
|
1080
|
+
children: a("tutorials")
|
|
163
1081
|
}
|
|
164
1082
|
) }) }),
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
|
|
1083
|
+
/* @__PURE__ */ t(
|
|
1084
|
+
se.Dropdown,
|
|
167
1085
|
{
|
|
168
1086
|
py: 4,
|
|
169
1087
|
ml: 6,
|
|
@@ -171,27 +1089,27 @@ const Te = () => {
|
|
|
171
1089
|
backgroundColor: "light-dark(var(--app-shell-bg),var(--mantine-color-dark-6))",
|
|
172
1090
|
border: "none"
|
|
173
1091
|
},
|
|
174
|
-
onMouseEnter:
|
|
175
|
-
onMouseLeave:
|
|
176
|
-
children: /* @__PURE__ */
|
|
177
|
-
|
|
1092
|
+
onMouseEnter: ee,
|
|
1093
|
+
onMouseLeave: te,
|
|
1094
|
+
children: /* @__PURE__ */ t(
|
|
1095
|
+
xe,
|
|
178
1096
|
{
|
|
179
|
-
onClick:
|
|
1097
|
+
onClick: Ne,
|
|
180
1098
|
style: {
|
|
181
1099
|
width: "100%",
|
|
182
1100
|
borderRadius: 12,
|
|
183
1101
|
padding: "6px 12px"
|
|
184
1102
|
},
|
|
185
|
-
children: /* @__PURE__ */
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
|
|
1103
|
+
children: /* @__PURE__ */ n(z, { gap: 10, children: [
|
|
1104
|
+
/* @__PURE__ */ t(
|
|
1105
|
+
T,
|
|
188
1106
|
{
|
|
189
|
-
icon:
|
|
1107
|
+
icon: Ue,
|
|
190
1108
|
size: 16,
|
|
191
1109
|
color: "var(--mantine-color-dimmed)"
|
|
192
1110
|
}
|
|
193
1111
|
),
|
|
194
|
-
/* @__PURE__ */
|
|
1112
|
+
/* @__PURE__ */ t(i, { size: "sm", c: "bright", children: a("mindMap") })
|
|
195
1113
|
] })
|
|
196
1114
|
}
|
|
197
1115
|
)
|
|
@@ -200,47 +1118,99 @@ const Te = () => {
|
|
|
200
1118
|
]
|
|
201
1119
|
}
|
|
202
1120
|
),
|
|
203
|
-
/* @__PURE__ */ e
|
|
204
|
-
|
|
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,
|
|
205
1171
|
{
|
|
206
1172
|
variant: "outline",
|
|
207
1173
|
component: "a",
|
|
208
1174
|
target: "_blank",
|
|
209
|
-
href:
|
|
210
|
-
leftSection: /* @__PURE__ */
|
|
211
|
-
children:
|
|
1175
|
+
href: y,
|
|
1176
|
+
leftSection: /* @__PURE__ */ t(T, { icon: Te, size: 16 }),
|
|
1177
|
+
children: a("userAgreement")
|
|
212
1178
|
}
|
|
213
1179
|
),
|
|
214
|
-
/* @__PURE__ */
|
|
215
|
-
|
|
1180
|
+
/* @__PURE__ */ t(
|
|
1181
|
+
P.Item,
|
|
216
1182
|
{
|
|
217
1183
|
variant: "outline",
|
|
218
1184
|
component: "a",
|
|
219
1185
|
target: "_blank",
|
|
220
|
-
href:
|
|
221
|
-
leftSection: /* @__PURE__ */
|
|
222
|
-
children:
|
|
1186
|
+
href: L,
|
|
1187
|
+
leftSection: /* @__PURE__ */ t(T, { icon: Ve, size: 16 }),
|
|
1188
|
+
children: a("termsAndPrivacy")
|
|
223
1189
|
}
|
|
224
1190
|
),
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
!!
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
/* @__PURE__ */
|
|
1191
|
+
/* @__PURE__ */ t(P.Divider, {}),
|
|
1192
|
+
!!H?.length && /* @__PURE__ */ n(oe, { children: [
|
|
1193
|
+
/* @__PURE__ */ t(Xe, { items: H }),
|
|
1194
|
+
/* @__PURE__ */ t(P.Divider, {})
|
|
229
1195
|
] }),
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
|
|
1196
|
+
/* @__PURE__ */ n(i, { className: e.helpMenuFooter, children: [
|
|
1197
|
+
a("updated"),
|
|
232
1198
|
" ",
|
|
233
|
-
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
-
|
|
236
|
-
/* @__PURE__ */
|
|
1199
|
+
N,
|
|
1200
|
+
/* @__PURE__ */ t("br", {}),
|
|
1201
|
+
u.isDesktop && me ? `${a("desktopVersion")} v${me}` : `${B.name} v${R}`,
|
|
1202
|
+
/* @__PURE__ */ t("br", {}),
|
|
237
1203
|
"© ",
|
|
238
1204
|
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
239
1205
|
" ",
|
|
240
|
-
|
|
1206
|
+
B.copyrightHolder
|
|
241
1207
|
] })
|
|
242
|
-
] });
|
|
1208
|
+
] }) });
|
|
243
1209
|
};
|
|
244
1210
|
export {
|
|
245
|
-
|
|
1211
|
+
Rt as DesktopDiagnosticsConsentModal,
|
|
1212
|
+
Vt as DesktopSupportReportModal,
|
|
1213
|
+
Ht as DesktopUpdateFlowModal,
|
|
1214
|
+
$t as HelpMenu,
|
|
1215
|
+
x as getDesktopBridge
|
|
246
1216
|
};
|