@vokril/ui-solid 0.9.3 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -0
- package/README.md +110 -31
- package/dist/{AttributeGrid-Bnn1w5XX.cjs → AttributeGrid-7cLOWtPn.cjs} +1 -1
- package/dist/{AttributeGrid-DJdW32LQ.js → AttributeGrid-CVyqzT7-.js} +5 -5
- package/dist/{Button-BZWXPn8y.js → Button-BiKPB3cH.js} +2 -2
- package/dist/{Button-X8QR6llv.cjs → Button-Nx7byQZc.cjs} +1 -1
- package/dist/CommandPalette-BFi0_e3t.cjs +2 -0
- package/dist/CommandPalette-CAH08DGN.js +4013 -0
- package/dist/{CopyButton-D3dIRRnn.js → CopyButton-BF7L1TCO.js} +1 -1
- package/dist/{CopyButton-3cX5MHAf.cjs → CopyButton-BtgGbiy9.cjs} +1 -1
- package/dist/DateRangePicker-Ce2tTbJ4.cjs +9 -0
- package/dist/{DateRangePicker-BcqoUao4.js → DateRangePicker-jSQBwB78.js} +181 -166
- package/dist/GuidedTour-CWDtBRHv.js +483 -0
- package/dist/GuidedTour-CYaR5Ozj.cjs +1 -0
- package/dist/HostPortal-B9Tzk_uN.cjs +1 -0
- package/dist/HostPortal-X1iw719T.js +33 -0
- package/dist/HostWindowContext-B2m0bVra.js +32 -0
- package/dist/HostWindowContext-_VZCt7xE.cjs +1 -0
- package/dist/{IconPicker-9tjEtmqt.cjs → IconPicker-4bdAeGxS.cjs} +1 -1
- package/dist/{IconPicker-CXbFmJ3y.js → IconPicker-Df6uIUpJ.js} +4 -4
- package/dist/{Input-BEnk4FCF.cjs → Input-CZruORyy.cjs} +1 -1
- package/dist/{Input-PZ5wRvPx.js → Input-DkPhsdfk.js} +2 -2
- package/dist/Modal-CQG8l4x7.cjs +1 -0
- package/dist/{Modal-CsiV55WW.js → Modal-CUPe98-o.js} +5 -5
- package/dist/PageSkeleton-C3mo6UGh.cjs +30 -0
- package/dist/{PageSkeleton-CyTXvZYm.js → PageSkeleton-CUTLh9Ip.js} +630 -628
- package/dist/{Popover-C24npAQ7.js → Popover-Dht1jFEy.js} +1 -1
- package/dist/{Popover-hhGcYQ-a.cjs → Popover-YfzC0Tjh.cjs} +1 -1
- package/dist/{SearchableSelect-C6KL7e42.js → SearchableSelect-C01brsF0.js} +5 -5
- package/dist/{SearchableSelect-zT8XNpmt.cjs → SearchableSelect-pCaUie2M.cjs} +1 -1
- package/dist/StatusBarNotificationBell-BwqVV09r.js +14266 -0
- package/dist/StatusBarNotificationBell-C5Zc2IvW.cjs +50 -0
- package/dist/{Stepper-BxXwbDq4.js → Stepper-38IAEOyT.js} +3 -3
- package/dist/{Stepper-DoJFCfC7.cjs → Stepper-CtaTpnQu.cjs} +1 -1
- package/dist/{Textarea-BUxibzkR.js → Textarea-B5QqqKnI.js} +1 -1
- package/dist/{Textarea-BunKEY68.cjs → Textarea-CeAGf08O.cjs} +1 -1
- package/dist/{TimeSeriesChart-DBrDzBGE.js → TimeSeriesChart-ByKG4E1G.js} +2 -2
- package/dist/{TimeSeriesChart-CS4jQflv.cjs → TimeSeriesChart-_NOs_Job.cjs} +1 -1
- package/dist/ToggleButton-Bz3zAtec.cjs +1 -0
- package/dist/{ToggleButton-BfjXnp-P.js → ToggleButton-D-N0C2Fu.js} +54 -53
- package/dist/_internal/app/keybindings/context/keybindingsContext.d.cts +11 -6
- package/dist/_internal/app/keybindings/context/keybindingsContext.d.ts +11 -6
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.cts +4 -3
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.ts +4 -3
- package/dist/_internal/app/keybindings/context/useListCommands.d.cts +6 -5
- package/dist/_internal/app/keybindings/context/useListCommands.d.ts +6 -5
- package/dist/_internal/app/keybindings/index.d.cts +0 -10
- package/dist/_internal/app/keybindings/index.d.ts +0 -10
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.cts +14 -9
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.ts +14 -9
- package/dist/_internal/app/menu/menuFavorites.d.cts +35 -8
- package/dist/_internal/app/menu/menuFavorites.d.ts +35 -8
- package/dist/_internal/app/onboarding/pageTourState.d.cts +75 -22
- package/dist/_internal/app/onboarding/pageTourState.d.ts +75 -22
- package/dist/_internal/app/platform/electronBridge.d.cts +35 -29
- package/dist/_internal/app/platform/electronBridge.d.ts +35 -29
- package/dist/_internal/app/settings/secrets/notificationSecrets.d.cts +27 -14
- package/dist/_internal/app/settings/secrets/notificationSecrets.d.ts +27 -14
- package/dist/_internal/app/windows/window/HostWindowContext.d.cts +8 -14
- package/dist/_internal/app/windows/window/HostWindowContext.d.ts +8 -14
- package/dist/_internal/contract/catalogNotify.d.cts +6 -19
- package/dist/_internal/contract/catalogNotify.d.ts +6 -19
- package/dist/_internal/contract/hostErrorText.d.cts +13 -23
- package/dist/_internal/contract/hostErrorText.d.ts +13 -23
- package/dist/_internal/contract/notificationCatalog.d.cts +16 -5
- package/dist/_internal/contract/notificationCatalog.d.ts +16 -5
- package/dist/_internal/platform/a11y/announcerService.d.cts +9 -13
- package/dist/_internal/platform/a11y/announcerService.d.ts +9 -13
- package/dist/_internal/platform/errors/diagnosticReport.d.cts +3 -1
- package/dist/_internal/platform/errors/diagnosticReport.d.ts +3 -1
- package/dist/_internal/platform/logging/consoleLogger.d.cts +7 -0
- package/dist/_internal/platform/logging/consoleLogger.d.ts +7 -0
- package/dist/_internal/platform/settings/registry/defineSettings.d.cts +19 -8
- package/dist/_internal/platform/settings/registry/defineSettings.d.ts +19 -8
- package/dist/_internal/platform/settings/registry/stateDbStore.d.cts +23 -15
- package/dist/_internal/platform/settings/registry/stateDbStore.d.ts +23 -15
- package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -5
- package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -5
- package/dist/_internal/platform/vendorErrors/index.d.cts +7 -17
- package/dist/_internal/platform/vendorErrors/index.d.ts +7 -17
- package/dist/_internal/platform/window/displayOwner.d.cts +35 -14
- package/dist/_internal/platform/window/displayOwner.d.ts +35 -14
- package/dist/a11y/index.cjs +1 -1
- package/dist/a11y/index.js +1 -1
- package/dist/actions-DtaFGwh2.cjs +1 -0
- package/dist/actions-wwAHs3ZU.js +16 -0
- package/dist/{server/appThemeDerivation-BiCyiSuz.js → appThemeDerivation-B7-DjMIM.js} +181 -184
- package/dist/appThemeDerivation-NS3Vws8q.cjs +1 -0
- package/dist/async/createGuardedListLoader.d.cts +3 -0
- package/dist/async/createGuardedListLoader.d.ts +3 -0
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/createDialogShellFocus-BBFu3Z_O.js +282 -0
- package/dist/createDialogShellFocus-CxRqhbRN.cjs +1 -0
- package/dist/createResizableSidebar-CfFxQUny.js +449 -0
- package/dist/createResizableSidebar-q7aC7SAO.cjs +1 -0
- package/dist/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
- package/dist/{server/createVirtualScroller-DBvqT0UW.js → createVirtualScroller-vu-l4rVv.js} +7 -7
- package/dist/defineSettings-D0CSMcyy.cjs +1 -0
- package/dist/defineSettings-Di1sG81q.js +407 -0
- package/dist/descriptor-CaHgh9N_.cjs +1 -0
- package/dist/{descriptor-B1MaujhY.js → descriptor-eGtcBtpI.js} +5 -5
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +500 -426
- package/dist/dialogFocusRestore-BrALT8Ew.js +35 -0
- package/dist/dialogFocusRestore-CcEsB50v.cjs +1 -0
- package/dist/electronBridge-BK92fycw.js +235 -0
- package/dist/electronBridge-cT0xww92.cjs +1 -0
- package/dist/errorHandler-BvPGW-Nm.js +373 -0
- package/dist/errorHandler-DoDAPpv2.cjs +3 -0
- package/dist/feedback/Loader.d.cts +6 -1
- package/dist/feedback/Loader.d.ts +6 -1
- package/dist/feedback/createPreference.d.cts +4 -1
- package/dist/feedback/createPreference.d.ts +4 -1
- package/dist/feedback/guidedInstallOutcome.d.cts +15 -2
- package/dist/feedback/guidedInstallOutcome.d.ts +15 -2
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +37 -38
- package/dist/feedback/readFailureText.d.cts +20 -1
- package/dist/feedback/readFailureText.d.ts +20 -1
- package/dist/focusModality-BISb6-yg.cjs +1 -0
- package/dist/focusModality-FoLPWF-_.js +135 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +9 -9
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/{headerIconOverrides-64lFnqTt.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
- package/dist/{server/headerIconOverrides-BCzeaBA1.js → headerIconOverrides-Dh2PaOcO.js} +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.d.cts +15 -16
- package/dist/host/index.d.ts +15 -16
- package/dist/host/index.js +56 -90
- package/dist/host/kitHost.d.cts +65 -0
- package/dist/host/kitHost.d.ts +65 -0
- package/dist/host/window.d.cts +3 -11
- package/dist/host/window.d.ts +3 -11
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/{i18n-CYq-dVvv.js → i18n-DW9kcu0G.js} +180 -178
- package/dist/i18n-DZ0JlZal.cjs +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +973 -992
- package/dist/isOneOf-9EXOSYJu.cjs +1 -0
- package/dist/isOneOf-Dtomuazg.js +6 -0
- package/dist/{keys-Bfgdfak_.js → keys-B2nlkpqc.js} +6 -9
- package/dist/keys-GMxY2wcl.cjs +1 -0
- package/dist/kitHost-BfJExE1G.cjs +1 -0
- package/dist/kitHost-CVAEi9sF.js +23 -0
- package/dist/layout/createResizableSidebar.d.cts +14 -0
- package/dist/layout/createResizableSidebar.d.ts +14 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +3 -3
- package/dist/layout/sidebarWidthClamp.d.cts +1 -1
- package/dist/layout/sidebarWidthClamp.d.ts +1 -1
- package/dist/mainRealmDom-C12lr9lm.js +171 -0
- package/dist/mainRealmDom-S6teqEr4.cjs +1 -0
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notifications/NotificationHost.d.cts +7 -1
- package/dist/notifications/NotificationHost.d.ts +7 -1
- package/dist/notifications/NotificationItem.d.cts +48 -15
- package/dist/notifications/NotificationItem.d.ts +48 -15
- package/dist/notifications/catalogAdapter.d.cts +28 -6
- package/dist/notifications/catalogAdapter.d.ts +28 -6
- package/dist/notifications/createNotificationPreviewRuntime.d.cts +21 -3
- package/dist/notifications/createNotificationPreviewRuntime.d.ts +21 -3
- package/dist/notifications/customSoundCache.d.cts +24 -24
- package/dist/notifications/customSoundCache.d.ts +24 -24
- package/dist/notifications/emailDigest.d.cts +34 -16
- package/dist/notifications/emailDigest.d.ts +34 -16
- package/dist/notifications/errorActionButtons.d.cts +18 -1
- package/dist/notifications/errorActionButtons.d.ts +18 -1
- package/dist/notifications/fireNotification.d.cts +27 -17
- package/dist/notifications/fireNotification.d.ts +27 -17
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.d.cts +7 -12
- package/dist/notifications/index.d.ts +7 -12
- package/dist/notifications/index.js +64 -98
- package/dist/notifications/nativeEngine.d.cts +18 -15
- package/dist/notifications/nativeEngine.d.ts +18 -15
- package/dist/notifications/notificationAnalytics.d.cts +11 -6
- package/dist/notifications/notificationAnalytics.d.ts +11 -6
- package/dist/notifications/notificationAudio.d.cts +30 -23
- package/dist/notifications/notificationAudio.d.ts +30 -23
- package/dist/notifications/notificationCardServices.d.cts +23 -0
- package/dist/notifications/notificationCardServices.d.ts +23 -0
- package/dist/notifications/notificationOverlayChannel.d.cts +4 -4
- package/dist/notifications/notificationOverlayChannel.d.ts +4 -4
- package/dist/notifications/notificationOverlaySync.d.cts +7 -2
- package/dist/notifications/notificationOverlaySync.d.ts +7 -2
- package/dist/notifications/notificationService.d.cts +101 -0
- package/dist/notifications/notificationService.d.ts +101 -0
- package/dist/notifications/notificationTimeline.d.cts +47 -49
- package/dist/notifications/notificationTimeline.d.ts +47 -49
- package/dist/notifications/notifications.notifications.d.cts +0 -4
- package/dist/notifications/notifications.notifications.d.ts +0 -4
- package/dist/notifications/toast.d.cts +24 -28
- package/dist/notifications/toast.d.ts +24 -28
- package/dist/notifications/webhookDelivery.d.cts +12 -17
- package/dist/notifications/webhookDelivery.d.ts +12 -17
- package/dist/overlay/ConfirmDialog.d.cts +20 -10
- package/dist/overlay/ConfirmDialog.d.ts +20 -10
- package/dist/overlay/DangerousActionDialog.d.cts +2 -2
- package/dist/overlay/DangerousActionDialog.d.ts +2 -2
- package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.cts +15 -14
- package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.ts +15 -14
- package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.cts +1 -3
- package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.ts +1 -3
- package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.cts +1 -1
- package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.ts +1 -1
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.d.cts +2 -3
- package/dist/overlay/index.d.ts +2 -3
- package/dist/overlay/index.js +114 -119
- package/dist/pageTourState-BcBF8w89.js +516 -0
- package/dist/pageTourState-CrbEU7QW.cjs +5 -0
- package/dist/server/{AttributeGrid-BCYNwNjw.js → AttributeGrid-B2s_rp00.js} +3 -3
- package/dist/server/{AttributeGrid-BVAQshm3.cjs → AttributeGrid-C7aWbIe5.cjs} +1 -1
- package/dist/server/{Button-BhqhjFpY.js → Button-Ck03cbUs.js} +1 -1
- package/dist/server/{Button-CFOM8pOv.cjs → Button-DWFMF5y0.cjs} +1 -1
- package/dist/server/CommandPalette-2UppyMxU.js +3271 -0
- package/dist/server/CommandPalette-DwpZyhO6.cjs +1 -0
- package/dist/server/{CopyButton-C2jzn9tR.cjs → CopyButton-BOmAUQD4.cjs} +1 -1
- package/dist/server/{CopyButton-CChDa2p3.js → CopyButton-UvtFwOtA.js} +1 -1
- package/dist/server/DateRangePicker-BJteKzOY.cjs +9 -0
- package/dist/server/{DateRangePicker-QV6U1adB.js → DateRangePicker-Cr58DczM.js} +158 -143
- package/dist/server/GuidedTour-C4msn-Ag.js +400 -0
- package/dist/server/GuidedTour-Rlsp8rOe.cjs +1 -0
- package/dist/server/HostPortal-B9Tzk_uN.cjs +1 -0
- package/dist/server/HostPortal-X1iw719T.js +33 -0
- package/dist/server/HostWindowContext-B2m0bVra.js +32 -0
- package/dist/server/HostWindowContext-_VZCt7xE.cjs +1 -0
- package/dist/server/{IconPicker-BEACrT09.cjs → IconPicker-9DfOxql6.cjs} +1 -1
- package/dist/server/{IconPicker-at_coEi6.js → IconPicker-N0wub1Aj.js} +4 -4
- package/dist/server/Modal-D__GTo-n.cjs +1 -0
- package/dist/server/{Modal-usxkqDtK.js → Modal-DeQjfpkG.js} +3 -3
- package/dist/server/{PageSkeleton-Bpgep9QW.js → PageSkeleton-C41pXOcr.js} +457 -455
- package/dist/server/PageSkeleton-D4i-UcnI.cjs +30 -0
- package/dist/server/{SearchableSelect-0dP7bp0a.js → SearchableSelect-CEcuBnge.js} +2 -2
- package/dist/server/{SearchableSelect-nMecJAYS.cjs → SearchableSelect-Ca9g8ztu.cjs} +1 -1
- package/dist/server/StatusBarNotificationBell-BotYny7q.cjs +49 -0
- package/dist/server/StatusBarNotificationBell-DyEQF2W7.js +13968 -0
- package/dist/server/{Stepper-DvoJXLcM.cjs → Stepper--pusyxso.cjs} +1 -1
- package/dist/server/{Stepper-B8hDDujj.js → Stepper-B_eL85hK.js} +1 -1
- package/dist/server/{TimeSeriesChart-C1LbL_xp.js → TimeSeriesChart-aSHquoBv.js} +1 -1
- package/dist/server/{TimeSeriesChart-DtldQrxS.cjs → TimeSeriesChart-nZeB5jtN.cjs} +1 -1
- package/dist/server/ToggleButton-57_0SA-V.cjs +1 -0
- package/dist/server/{ToggleButton--G4HCOTD.js → ToggleButton-DjlWwgLJ.js} +4 -4
- package/dist/server/VpTrash-D49oUUJh.cjs +1 -0
- package/dist/server/VpTrash-Dlq8o6Uv.js +298 -0
- package/dist/server/a11y/index.cjs +1 -1
- package/dist/server/a11y/index.js +1 -1
- package/dist/server/actions-DtaFGwh2.cjs +1 -0
- package/dist/server/actions-wwAHs3ZU.js +16 -0
- package/dist/{appThemeDerivation-BiCyiSuz.js → server/appThemeDerivation-B7-DjMIM.js} +181 -184
- package/dist/server/appThemeDerivation-NS3Vws8q.cjs +1 -0
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/{format-CW_FVfq2.js → createDialogShellFocus-DNjzmcGj.js} +110 -126
- package/dist/server/createDialogShellFocus-PRRfMli-.cjs +1 -0
- package/dist/server/createResizableSidebar-CZtGmUnA.cjs +1 -0
- package/dist/server/createResizableSidebar-DdWdAB9l.js +287 -0
- package/dist/server/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
- package/dist/{createVirtualScroller-DBvqT0UW.js → server/createVirtualScroller-vu-l4rVv.js} +7 -7
- package/dist/server/defineSettings-D0CSMcyy.cjs +1 -0
- package/dist/server/defineSettings-Di1sG81q.js +407 -0
- package/dist/server/descriptor-CEGvvJZh.cjs +1 -0
- package/dist/server/{descriptor-DWkJAggS.js → descriptor-GLoKPx6x.js} +4 -4
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +389 -315
- package/dist/server/dialogFocusRestore-BrALT8Ew.js +35 -0
- package/dist/server/dialogFocusRestore-CcEsB50v.cjs +1 -0
- package/dist/server/electronBridge-BK92fycw.js +235 -0
- package/dist/server/electronBridge-cT0xww92.cjs +1 -0
- package/dist/server/errorHandler-BvPGW-Nm.js +373 -0
- package/dist/server/errorHandler-DoDAPpv2.cjs +3 -0
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +37 -38
- package/dist/server/focusModality-D-nxv8Er.cjs +1 -0
- package/dist/server/focusModality-nWNVX3JG.js +126 -0
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +7 -7
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/{headerIconOverrides-64lFnqTt.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
- package/dist/{headerIconOverrides-BCzeaBA1.js → server/headerIconOverrides-Dh2PaOcO.js} +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +56 -90
- package/dist/server/i18n/index.cjs +1 -1
- package/dist/server/i18n/index.js +1 -1
- package/dist/server/{i18n-CYq-dVvv.js → i18n-DW9kcu0G.js} +180 -178
- package/dist/server/i18n-DZ0JlZal.cjs +4 -0
- package/dist/server/{index-BFT4Uh9D.js → index-BNYr6EIW.js} +89 -90
- package/dist/server/index-Cqod09d_.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +1022 -1041
- package/dist/server/kitHost-BfJExE1G.cjs +1 -0
- package/dist/server/kitHost-CVAEi9sF.js +23 -0
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +3 -3
- package/dist/server/mainRealmDom-DPNaDWtw.js +121 -0
- package/dist/server/mainRealmDom-DwZVMPnO.cjs +1 -0
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +63 -97
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +109 -114
- package/dist/server/pageTourState-BcBF8w89.js +516 -0
- package/dist/server/pageTourState-CrbEU7QW.cjs +5 -0
- package/dist/server/settings/index.cjs +1 -1
- package/dist/server/settings/index.js +23 -24
- package/dist/server/stateDbStore-CThsVch-.cjs +1 -0
- package/dist/server/stateDbStore-DHZFUIEt.js +57 -0
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +19 -20
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/server/useListCommands-BO_XrRHj.js +38 -0
- package/dist/server/useListCommands-Dnm4ktP1.cjs +1 -0
- package/dist/server/useSettingsSubscription-DKjCwmRd.cjs +1 -0
- package/dist/{notification-DFbp3S_f.js → server/useSettingsSubscription-DLEk4k4j.js} +41 -32
- package/dist/server/window-CUK6x8Pj.js +36 -0
- package/dist/server/window-_BfSgFGO.cjs +1 -0
- package/dist/server/windowRegistry-CxXtP-iY.cjs +1 -0
- package/dist/server/windowRegistry-DeGmXt6W.js +20 -0
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.d.cts +1 -1
- package/dist/settings/index.d.ts +1 -1
- package/dist/settings/index.js +23 -24
- package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +3 -10
- package/dist/solid/_internal/app/keybindings/context/useListCommands.js +1 -2
- package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +8 -1
- package/dist/solid/_internal/app/menu/menuFavorites.js +45 -40
- package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +22 -22
- package/dist/solid/_internal/app/onboarding/pageTourState.js +94 -92
- package/dist/solid/_internal/app/platform/electronBridge.js +15 -49
- package/dist/solid/_internal/app/settings/secrets/notificationSecrets.js +11 -29
- package/dist/solid/_internal/app/windows/window/HostWindowContext.jsx +4 -13
- package/dist/solid/_internal/contract/catalogNotify.js +1 -24
- package/dist/solid/_internal/contract/hostErrorText.js +1 -14
- package/dist/solid/_internal/contract/notificationCatalog.js +1 -1
- package/dist/solid/_internal/platform/a11y/announcerService.js +0 -24
- package/dist/solid/_internal/platform/errors/diagnosticReport.js +2 -3
- package/dist/solid/_internal/platform/logging/consoleLogger.js +6 -0
- package/dist/solid/_internal/platform/settings/registry/defineSettings.js +48 -20
- package/dist/solid/_internal/platform/settings/registry/stateDbStore.js +29 -19
- package/dist/solid/_internal/platform/vendorErrors/index.js +4 -17
- package/dist/solid/_internal/platform/window/displayOwner.js +105 -114
- package/dist/solid/a11y/AriaAnnouncer.jsx +5 -6
- package/dist/solid/async/createGuardedListLoader.js +1 -1
- package/dist/solid/desktop/menu/MenuPanel.jsx +7 -7
- package/dist/solid/feedback/ErrorBoundary.jsx +7 -4
- package/dist/solid/feedback/Loader.jsx +1 -2
- package/dist/solid/feedback/createPreference.js +3 -2
- package/dist/solid/feedback/guidedInstallOutcome.js +1 -2
- package/dist/solid/feedback/preference.notifications.js +1 -2
- package/dist/solid/feedback/readFailureText.js +1 -2
- package/dist/solid/host/index.js +9 -16
- package/dist/solid/host/kitHost.jsx +15 -0
- package/dist/solid/host/window.js +15 -22
- package/dist/solid/i18n/i18n.js +5 -6
- package/dist/solid/index.js +0 -1
- package/dist/solid/layout/createResizableSidebar.js +15 -23
- package/dist/solid/notifications/NotificationHost.jsx +21 -29
- package/dist/solid/notifications/NotificationItem.jsx +28 -103
- package/dist/solid/notifications/NotificationPanel.jsx +33 -44
- package/dist/solid/notifications/NotificationsCenter.jsx +22 -20
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
- package/dist/solid/notifications/catalogAdapter.js +61 -62
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +29 -19
- package/dist/solid/notifications/customSoundCache.js +26 -21
- package/dist/solid/notifications/emailDigest.js +74 -86
- package/dist/solid/notifications/errorActionButtons.js +6 -11
- package/dist/solid/notifications/fireNotification.js +14 -19
- package/dist/solid/notifications/index.js +4 -12
- package/dist/solid/notifications/nativeEngine.js +6 -19
- package/dist/solid/notifications/notificationAnalytics.js +32 -38
- package/dist/solid/notifications/notificationAudio.js +77 -74
- package/dist/solid/notifications/notificationCardServices.js +34 -0
- package/dist/solid/notifications/notificationOverlayChannel.js +3 -3
- package/dist/solid/notifications/notificationOverlaySync.js +18 -23
- package/dist/solid/notifications/notificationService.js +135 -0
- package/dist/solid/notifications/notificationTimeline.js +117 -124
- package/dist/solid/notifications/notifications.notifications.js +3 -22
- package/dist/solid/notifications/toast.js +168 -213
- package/dist/solid/notifications/webhookDelivery.js +27 -53
- package/dist/solid/overlay/ConfirmDialog.jsx +2 -54
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +3 -1
- package/dist/solid/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.js +26 -25
- package/dist/solid/overlay/command-palette/unifiedSearch/settingsSearchContributor.js +2 -7
- package/dist/solid/overlay/index.js +0 -3
- package/dist/solid/settings/index.js +1 -1
- package/dist/solid/tokens/index.js +1 -1
- package/dist/solid/tokens/palette/themeRegistry.js +20 -22
- package/dist/stateDbStore-CThsVch-.cjs +1 -0
- package/dist/stateDbStore-DHZFUIEt.js +57 -0
- package/dist/style.css +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +1 -1
- package/dist/tokens/index.d.ts +1 -1
- package/dist/tokens/index.js +19 -20
- package/dist/tokens/palette/themeRegistry.d.cts +17 -22
- package/dist/tokens/palette/themeRegistry.d.ts +17 -22
- package/dist/{tooltipCoordinator-GV0L9lXH.js → tooltipCoordinator-BzxEyKhA.js} +2 -2
- package/dist/tooltipCoordinator-DslqMlsI.cjs +1 -0
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/dist/{useFloatingDropdown-CfPEYRut.js → useFloatingDropdown-BN4J092P.js} +1 -1
- package/dist/{useFloatingDropdown-DcU7ozDg.cjs → useFloatingDropdown-D9OvEFAp.cjs} +1 -1
- package/dist/useListCommands-BO_XrRHj.js +38 -0
- package/dist/useListCommands-Dnm4ktP1.cjs +1 -0
- package/dist/useSettingsSubscription-DKjCwmRd.cjs +1 -0
- package/dist/{server/notification-DFbp3S_f.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
- package/dist/window-CUK6x8Pj.js +36 -0
- package/dist/window-_BfSgFGO.cjs +1 -0
- package/dist/windowRegistry-CxXtP-iY.cjs +1 -0
- package/dist/windowRegistry-DeGmXt6W.js +20 -0
- package/package.json +1 -1
- package/dist/CommandPalette-DToM9pUp.cjs +0 -2
- package/dist/CommandPalette-ZCFlLqrP.js +0 -3950
- package/dist/DateRangePicker-DHI3SNna.cjs +0 -9
- package/dist/GuidedTour-B-BXe3ul.js +0 -11214
- package/dist/GuidedTour-c7XiyOmE.cjs +0 -21
- package/dist/HostWindowContext-DqDeJmBP.cjs +0 -1
- package/dist/HostWindowContext-KL4U1qUv.js +0 -40
- package/dist/Modal-DpDHzCWT.cjs +0 -1
- package/dist/PageSkeleton-DzKYTuNy.cjs +0 -30
- package/dist/Progress-B5YmNeyU.js +0 -56
- package/dist/Progress-BNy0wsJl.cjs +0 -1
- package/dist/StatusBarNotificationBell-CZmym2gV.js +0 -2140
- package/dist/StatusBarNotificationBell-DG8Pe6R-.cjs +0 -4
- package/dist/ToggleButton-Bjxv8KGH.cjs +0 -1
- package/dist/_internal/app/contexts/WorkspaceTabsContext.d.cts +0 -20
- package/dist/_internal/app/contexts/WorkspaceTabsContext.d.ts +0 -20
- package/dist/_internal/app/settings/theme/appThemeChange.d.cts +0 -20
- package/dist/_internal/app/settings/theme/appThemeChange.d.ts +0 -20
- package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.cts +0 -6
- package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.ts +0 -6
- package/dist/_internal/base/listenerDispatch.d.cts +0 -14
- package/dist/_internal/base/listenerDispatch.d.ts +0 -14
- package/dist/_internal/contract/appName.d.cts +0 -10
- package/dist/_internal/contract/appName.d.ts +0 -10
- package/dist/_internal/contract/hostText.d.cts +0 -25
- package/dist/_internal/contract/hostText.d.ts +0 -25
- package/dist/_internal/platform/instantiation/common/descriptors.d.cts +0 -9
- package/dist/_internal/platform/instantiation/common/descriptors.d.ts +0 -9
- package/dist/_internal/platform/instantiation/common/instantiation.d.cts +0 -99
- package/dist/_internal/platform/instantiation/common/instantiation.d.ts +0 -99
- package/dist/_internal/platform/instantiation/common/serviceCollection.d.cts +0 -8
- package/dist/_internal/platform/instantiation/common/serviceCollection.d.ts +0 -8
- package/dist/_internal/platform/logging/rendererLogging.d.cts +0 -65
- package/dist/_internal/platform/logging/rendererLogging.d.ts +0 -65
- package/dist/_internal/platform/settings/preferencesCache.d.cts +0 -162
- package/dist/_internal/platform/settings/preferencesCache.d.ts +0 -162
- package/dist/announcerService-B7yicxvU.js +0 -97
- package/dist/announcerService-D_pFE24a.cjs +0 -1
- package/dist/appThemeDerivation-DmKbTiFi.cjs +0 -1
- package/dist/catalogNotify-C9RzbC6x.cjs +0 -27
- package/dist/catalogNotify-CIhFuJ1b.js +0 -1210
- package/dist/createResizableSidebar-2TgiFZp1.js +0 -461
- package/dist/createResizableSidebar-pDoO-7q9.cjs +0 -1
- package/dist/defineSettings-By5ell8e.js +0 -391
- package/dist/defineSettings-DRv1FRbv.cjs +0 -1
- package/dist/descriptor-lw1fA9mi.cjs +0 -1
- package/dist/dialogFocusRestore-B4ggeVAM.js +0 -64
- package/dist/dialogFocusRestore-BcMPrbig.cjs +0 -1
- package/dist/displayOwner-BNw2Foa_.cjs +0 -1
- package/dist/displayOwner-B_ezJv-O.js +0 -75
- package/dist/feedback/preference.notifications.samples.d.cts +0 -1
- package/dist/feedback/preference.notifications.samples.d.ts +0 -1
- package/dist/focusModality-B150daiS.js +0 -133
- package/dist/focusModality-PPfeW05D.cjs +0 -1
- package/dist/format-Dih0q9gm.cjs +0 -1
- package/dist/format-UGlMj0HW.js +0 -298
- package/dist/i18n-B9ccWgcR.cjs +0 -4
- package/dist/keys-BeeC5_RZ.cjs +0 -1
- package/dist/mainRealmDom-COGBiX78.js +0 -102
- package/dist/mainRealmDom-DijAgSXt.cjs +0 -1
- package/dist/menuFavorites-Db1DpHX6.js +0 -69
- package/dist/menuFavorites-EluLLTfi.cjs +0 -1
- package/dist/notification-CrxHMXsk.cjs +0 -1
- package/dist/notificationSuppressions-CBIJ4bC4.js +0 -430
- package/dist/notificationSuppressions-DFbFpayS.cjs +0 -1
- package/dist/notifications/copyToClipboard.d.cts +0 -6
- package/dist/notifications/copyToClipboard.d.ts +0 -6
- package/dist/notifications/createCopyFlash.d.cts +0 -17
- package/dist/notifications/createCopyFlash.d.ts +0 -17
- package/dist/notifications/notificationDisplayOwner.d.cts +0 -27
- package/dist/notifications/notificationDisplayOwner.d.ts +0 -27
- package/dist/notifications/notificationRepeaterEntryFactory.d.cts +0 -36
- package/dist/notifications/notificationRepeaterEntryFactory.d.ts +0 -36
- package/dist/notifications/notifications.notifications.samples.d.cts +0 -1
- package/dist/notifications/notifications.notifications.samples.d.ts +0 -1
- package/dist/notifications/persistWithRollbackOnFailure.d.cts +0 -18
- package/dist/notifications/persistWithRollbackOnFailure.d.ts +0 -18
- package/dist/notifications/startNotificationSchedulers.d.cts +0 -2
- package/dist/notifications/startNotificationSchedulers.d.ts +0 -2
- package/dist/notifications/startNotificationSettingsReactions.d.cts +0 -46
- package/dist/notifications/startNotificationSettingsReactions.d.ts +0 -46
- package/dist/overlay/ToastHost.d.cts +0 -7
- package/dist/overlay/ToastHost.d.ts +0 -7
- package/dist/pageTourState-CIr8ockR.js +0 -92
- package/dist/pageTourState-D8Uapyft.cjs +0 -1
- package/dist/preferencesCache-BhUd3K9p.js +0 -65
- package/dist/preferencesCache-DJPCTPYx.cjs +0 -1
- package/dist/rendererLogging-B4XML4_G.cjs +0 -7
- package/dist/rendererLogging-Edo4ALXU.js +0 -822
- package/dist/server/CommandPalette-C3Bw1teR.cjs +0 -1
- package/dist/server/CommandPalette-S7tfmFMb.js +0 -3208
- package/dist/server/DateRangePicker-sX2m4194.cjs +0 -9
- package/dist/server/GuidedTour-BhJGkoPa.js +0 -10981
- package/dist/server/GuidedTour-Dx0endYh.cjs +0 -20
- package/dist/server/HostWindowContext-DqDeJmBP.cjs +0 -1
- package/dist/server/HostWindowContext-KL4U1qUv.js +0 -40
- package/dist/server/Modal-CAVr4DU6.cjs +0 -1
- package/dist/server/PageSkeleton-KwYRrZua.cjs +0 -30
- package/dist/server/Progress-CRbj6nEy.cjs +0 -1
- package/dist/server/Progress-nsDy6clG.js +0 -41
- package/dist/server/StatusBarNotificationBell-BJyGqDCX.cjs +0 -4
- package/dist/server/StatusBarNotificationBell-C9MCuKT6.js +0 -1974
- package/dist/server/ToggleButton-DTI2HB97.cjs +0 -1
- package/dist/server/VpTerminal-Bpw-d9wD.js +0 -186
- package/dist/server/VpTerminal-C-U_dN_x.cjs +0 -1
- package/dist/server/VpTrash-CagiU2Uj.cjs +0 -1
- package/dist/server/VpTrash-DVBfts9_.js +0 -116
- package/dist/server/announcerService-B7yicxvU.js +0 -97
- package/dist/server/announcerService-D_pFE24a.cjs +0 -1
- package/dist/server/appThemeDerivation-DmKbTiFi.cjs +0 -1
- package/dist/server/catalogNotify-BPPTINme.cjs +0 -27
- package/dist/server/catalogNotify-mUcKuUmZ.js +0 -1248
- package/dist/server/createResizableSidebar-CCrAgu_K.js +0 -299
- package/dist/server/createResizableSidebar-DGd-3PrM.cjs +0 -1
- package/dist/server/defineSettings-By5ell8e.js +0 -391
- package/dist/server/defineSettings-DRv1FRbv.cjs +0 -1
- package/dist/server/descriptor-IJq9wdXK.cjs +0 -1
- package/dist/server/dialogFocusRestore-B4ggeVAM.js +0 -64
- package/dist/server/dialogFocusRestore-BcMPrbig.cjs +0 -1
- package/dist/server/displayOwner-BNw2Foa_.cjs +0 -1
- package/dist/server/displayOwner-B_ezJv-O.js +0 -75
- package/dist/server/focusModality-CeTPyRiF.cjs +0 -1
- package/dist/server/focusModality-DmOZptla.js +0 -124
- package/dist/server/format-x-8syaS2.cjs +0 -1
- package/dist/server/i18n-B9ccWgcR.cjs +0 -4
- package/dist/server/index-Xlas73iC.cjs +0 -1
- package/dist/server/mainRealmDom-BCL1p_q6.cjs +0 -1
- package/dist/server/mainRealmDom-Dk0xb5Gj.js +0 -67
- package/dist/server/menuFavorites-Db1DpHX6.js +0 -69
- package/dist/server/menuFavorites-EluLLTfi.cjs +0 -1
- package/dist/server/notification-CrxHMXsk.cjs +0 -1
- package/dist/server/notificationSuppressions-D7FZmJy8.cjs +0 -1
- package/dist/server/notificationSuppressions-DkrUMXHx.js +0 -391
- package/dist/server/pageTourState-CIr8ockR.js +0 -92
- package/dist/server/pageTourState-D8Uapyft.cjs +0 -1
- package/dist/server/preferencesCache-BhUd3K9p.js +0 -65
- package/dist/server/preferencesCache-DJPCTPYx.cjs +0 -1
- package/dist/server/rendererLogging-B4XML4_G.cjs +0 -7
- package/dist/server/rendererLogging-Edo4ALXU.js +0 -822
- package/dist/server/settingsSearchContributor-DZj7Wc8l.cjs +0 -1
- package/dist/server/settingsSearchContributor-DeMn-njw.js +0 -199
- package/dist/server/stateDbStore-Ds3zJ4cd.js +0 -47
- package/dist/server/stateDbStore-THFfFGa0.cjs +0 -1
- package/dist/server/useListCommands-Bf7aOTXZ.js +0 -61
- package/dist/server/useListCommands-ucngC3t4.cjs +0 -1
- package/dist/server/useSettingsSubscription-cu943hND.js +0 -11
- package/dist/server/useSettingsSubscription-vlMrNNH9.cjs +0 -1
- package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
- package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
- package/dist/server/windowRegistry-Bk5lXIVd.js +0 -62
- package/dist/server/windowRegistry-CGvOBUsw.cjs +0 -1
- package/dist/settingsSearchContributor-C-UJc7Xc.js +0 -199
- package/dist/settingsSearchContributor-Du0SDpJt.cjs +0 -1
- package/dist/solid/_internal/app/contexts/WorkspaceTabsContext.js +0 -10
- package/dist/solid/_internal/app/settings/theme/appThemeChange.js +0 -5
- package/dist/solid/_internal/app/settings/ui/shell/openSettingsModal.js +0 -15
- package/dist/solid/_internal/base/listenerDispatch.js +0 -12
- package/dist/solid/_internal/contract/appName.js +0 -7
- package/dist/solid/_internal/contract/hostText.js +0 -15
- package/dist/solid/_internal/platform/instantiation/common/descriptors.js +0 -10
- package/dist/solid/_internal/platform/instantiation/common/instantiation.js +0 -35
- package/dist/solid/_internal/platform/instantiation/common/serviceCollection.js +0 -14
- package/dist/solid/_internal/platform/logging/rendererLogging.js +0 -42
- package/dist/solid/_internal/platform/settings/preferencesCache.js +0 -329
- package/dist/solid/feedback/preference.notifications.samples.js +0 -5
- package/dist/solid/notifications/copyToClipboard.js +0 -21
- package/dist/solid/notifications/createCopyFlash.js +0 -26
- package/dist/solid/notifications/notificationDisplayOwner.js +0 -1
- package/dist/solid/notifications/notificationRepeaterEntryFactory.js +0 -20
- package/dist/solid/notifications/notifications.notifications.samples.js +0 -14
- package/dist/solid/notifications/persistWithRollbackOnFailure.js +0 -11
- package/dist/solid/notifications/startNotificationSchedulers.js +0 -8
- package/dist/solid/notifications/startNotificationSettingsReactions.js +0 -22
- package/dist/solid/overlay/ToastHost.jsx +0 -1
- package/dist/stateDbStore-Ds3zJ4cd.js +0 -47
- package/dist/stateDbStore-THFfFGa0.cjs +0 -1
- package/dist/tooltipCoordinator-y5YP3tsJ.cjs +0 -1
- package/dist/useListCommands-Bf7aOTXZ.js +0 -61
- package/dist/useListCommands-ucngC3t4.cjs +0 -1
- package/dist/useSettingsSubscription-cu943hND.js +0 -11
- package/dist/useSettingsSubscription-vlMrNNH9.cjs +0 -1
- package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
- package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
- package/dist/windowRegistry-Bk5lXIVd.js +0 -62
- package/dist/windowRegistry-CGvOBUsw.cjs +0 -1
|
@@ -1,2140 +0,0 @@
|
|
|
1
|
-
import { P as Kt, h as Jt, w as Xt, E as Zt, r as en, F as tn, e as nn, Q as on, j as rn, A as Z, L as vt, z as Pe, i as bt, O as ot, n as an, t as ue, o as St, R as sn, T as cn, U as ln, V as un, q as Oe, W as dn, X as gn, K as fn, Y as mn } from "./catalogNotify-CIhFuJ1b.js";
|
|
2
|
-
import { n as Q, D as rt } from "./notification-DFbp3S_f.js";
|
|
3
|
-
import { e as ne, g as _e } from "./rendererLogging-Edo4ALXU.js";
|
|
4
|
-
import { h as pn, j as at, L as ie, e as hn, r as vn, q as Me, g as bn, B as kt, N as Sn, O as kn } from "./notificationSuppressions-CBIJ4bC4.js";
|
|
5
|
-
import { insert as f, createComponent as i, mergeProps as Tn, effect as L, className as C, template as U, use as yn, setAttribute as X, memo as J, delegateEvents as Tt, Dynamic as Cn } from "solid-js/web";
|
|
6
|
-
import { B as ke, c as _n } from "./mainRealmDom-COGBiX78.js";
|
|
7
|
-
import { Show as R, useContext as In, createSignal as $, onMount as ge, onCleanup as te, createMemo as K, For as de } from "solid-js";
|
|
8
|
-
import { I as wn, P as yt } from "./Input-PZ5wRvPx.js";
|
|
9
|
-
import { VpSquareCheck as An, VpMailOpened as xn, VpTrash as Ne, VpDots as En, VpFilter as Dn, VpAdjustments as Pn, VpBook as On, VpBellRinging as Mn, VpCheck as Nn, VpCopy as Rn, VpMinus as $n, VpBellOff as $e, VpBell as Ct, VpGear as st, VpChevronDown as Bn, VpTreeClose as zn, VpPass as Fn, VpError as Ln, VpWarning as Vn, VpInfo as Un } from "@vokril/icons";
|
|
10
|
-
import { T as Hn, o as _t } from "./visibleBrowserRegistry-Dw2Y4y_I.js";
|
|
11
|
-
import { G as Gn, P as Re, D as Wn, g as qn, h as Qn } from "./GuidedTour-B-BXe3ul.js";
|
|
12
|
-
import { t as n } from "./i18n-CYq-dVvv.js";
|
|
13
|
-
import { e as jn, g as Yn, s as Ee, w as ct, a as Kn, b as Jn, l as Xn, r as Zn, j as ei, f as De } from "./pageTourState-CIr8ockR.js";
|
|
14
|
-
import { u as Be } from "./useSettingsSubscription-cu943hND.js";
|
|
15
|
-
import { u as It } from "./DesktopContextMenuContext-DJ3PnqAv.js";
|
|
16
|
-
import { B as N } from "./Button-BZWXPn8y.js";
|
|
17
|
-
import { C as ti, s as we } from "./format-UGlMj0HW.js";
|
|
18
|
-
import { D as ni } from "./DateRangePicker-BcqoUao4.js";
|
|
19
|
-
import { O as wt } from "./OverlayScrollArea-c8Za77qs.js";
|
|
20
|
-
import { u as ii } from "./HostWindowContext-KL4U1qUv.js";
|
|
21
|
-
import { P as oi } from "./Popover-C24npAQ7.js";
|
|
22
|
-
import { a as ri } from "./keys-Bfgdfak_.js";
|
|
23
|
-
import { E as ai } from "./EmptyState-Dph6HU74.js";
|
|
24
|
-
const si = "vk_bar_iSxMW", ci = "vk_barCompact_SCRfr", li = "vk_search_P2Oii", ui = "vk_dateBtn_v3RN1", Te = {
|
|
25
|
-
bar: si,
|
|
26
|
-
barCompact: ci,
|
|
27
|
-
search: li,
|
|
28
|
-
dateBtn: ui
|
|
29
|
-
};
|
|
30
|
-
var di = /* @__PURE__ */ U("<div>");
|
|
31
|
-
function gi(e) {
|
|
32
|
-
return (() => {
|
|
33
|
-
var r = di();
|
|
34
|
-
return f(r, i(wn, {
|
|
35
|
-
type: "text",
|
|
36
|
-
get class() {
|
|
37
|
-
return Te.search;
|
|
38
|
-
},
|
|
39
|
-
get placeholder() {
|
|
40
|
-
return e.searchPlaceholder ?? n("Search…");
|
|
41
|
-
},
|
|
42
|
-
get value() {
|
|
43
|
-
return e.searchValue;
|
|
44
|
-
},
|
|
45
|
-
onInput: (a) => e.onSearchInput(a.currentTarget.value)
|
|
46
|
-
}), null), f(r, i(R, {
|
|
47
|
-
get when() {
|
|
48
|
-
return e.onDateRangeChange;
|
|
49
|
-
},
|
|
50
|
-
get children() {
|
|
51
|
-
return i(ni, Tn({
|
|
52
|
-
get value() {
|
|
53
|
-
return e.dateRange ?? null;
|
|
54
|
-
},
|
|
55
|
-
onChange: (a) => {
|
|
56
|
-
var l;
|
|
57
|
-
return (l = e.onDateRangeChange) == null ? void 0 : l.call(e, a);
|
|
58
|
-
},
|
|
59
|
-
get triggerClass() {
|
|
60
|
-
return Te.dateBtn;
|
|
61
|
-
}
|
|
62
|
-
}, () => e.dateRangeAlign ? {
|
|
63
|
-
align: e.dateRangeAlign
|
|
64
|
-
} : {}));
|
|
65
|
-
}
|
|
66
|
-
}), null), f(r, () => e.children, null), L(() => C(r, `${Te.bar} ${e.compact ? Te.barCompact : ""} ${e.class ?? ""}`)), r;
|
|
67
|
-
})();
|
|
68
|
-
}
|
|
69
|
-
const At = [
|
|
70
|
-
"general",
|
|
71
|
-
"vendor-error",
|
|
72
|
-
"sql-execution",
|
|
73
|
-
"connection",
|
|
74
|
-
"ssh",
|
|
75
|
-
"schema",
|
|
76
|
-
"users",
|
|
77
|
-
"tablespaces",
|
|
78
|
-
"locking",
|
|
79
|
-
"monitoring",
|
|
80
|
-
"source-control",
|
|
81
|
-
"file-system",
|
|
82
|
-
"settings",
|
|
83
|
-
"rss",
|
|
84
|
-
"plugins",
|
|
85
|
-
"workspace",
|
|
86
|
-
"dev"
|
|
87
|
-
];
|
|
88
|
-
function fi(e) {
|
|
89
|
-
return ri(At, e);
|
|
90
|
-
}
|
|
91
|
-
function mi(e, r) {
|
|
92
|
-
const a = e.trim();
|
|
93
|
-
if (!a) return null;
|
|
94
|
-
if (r)
|
|
95
|
-
try {
|
|
96
|
-
const l = new RegExp(a, "i");
|
|
97
|
-
return { test: (p) => l.test(p) };
|
|
98
|
-
} catch {
|
|
99
|
-
return lt(a);
|
|
100
|
-
}
|
|
101
|
-
return lt(a);
|
|
102
|
-
}
|
|
103
|
-
function lt(e) {
|
|
104
|
-
const r = e.toLowerCase();
|
|
105
|
-
return {
|
|
106
|
-
test: (a) => a.toLowerCase().includes(r)
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
function pi(e, r) {
|
|
110
|
-
const { tones: a, sources: l, priorities: p, dateBounds: S, searchMatcher: k } = r;
|
|
111
|
-
return e.filter((u) => !(a.size > 0 && !a.has(u.tone) || l.size > 0 && !l.has(u.source) || p.size > 0 && !p.has(u.priority) || S && (u.createdAt < S.start || u.createdAt > S.end) || k && !k.test(`${u.message} ${u.source}`)));
|
|
112
|
-
}
|
|
113
|
-
const hi = {
|
|
114
|
-
general: {
|
|
115
|
-
label: "General",
|
|
116
|
-
description: "Uncategorized notifications. Default for callers that do not pass a source."
|
|
117
|
-
},
|
|
118
|
-
"vendor-error": {
|
|
119
|
-
label: "Database errors",
|
|
120
|
-
description: "Errors carrying a recognised vendor code (Oracle ORA-NNNNN, PG SQLSTATE, MSSQL Msg N, …). Treated as urgent when the matching setting is enabled."
|
|
121
|
-
},
|
|
122
|
-
"sql-execution": {
|
|
123
|
-
label: "SQL execution",
|
|
124
|
-
description: "Query completion / cancellation / failure notifications."
|
|
125
|
-
},
|
|
126
|
-
connection: {
|
|
127
|
-
label: "Connection",
|
|
128
|
-
description: "Connect, disconnect, test, vault credential events."
|
|
129
|
-
},
|
|
130
|
-
ssh: {
|
|
131
|
-
label: "SSH & terminal",
|
|
132
|
-
description: "SSH dock, tunnels, terminal lifecycle."
|
|
133
|
-
},
|
|
134
|
-
schema: {
|
|
135
|
-
label: "Schema browser",
|
|
136
|
-
description: "DDL extraction, copy-name, refresh."
|
|
137
|
-
},
|
|
138
|
-
users: {
|
|
139
|
-
label: "Users",
|
|
140
|
-
description: "User management — create, unlock, alter."
|
|
141
|
-
},
|
|
142
|
-
tablespaces: {
|
|
143
|
-
label: "Tablespaces",
|
|
144
|
-
description: "Tablespace creation, quota warnings."
|
|
145
|
-
},
|
|
146
|
-
locking: {
|
|
147
|
-
label: "Locking",
|
|
148
|
-
description: "Blocking sessions and deadlock alerts."
|
|
149
|
-
},
|
|
150
|
-
monitoring: {
|
|
151
|
-
label: "Monitoring",
|
|
152
|
-
description: "Threshold alerts — CPU, blocked sessions, long-running ops, invalid objects, failed logins."
|
|
153
|
-
},
|
|
154
|
-
"source-control": {
|
|
155
|
-
label: "Source control",
|
|
156
|
-
description: "Git commit / pull / push outcomes."
|
|
157
|
-
},
|
|
158
|
-
"file-system": {
|
|
159
|
-
label: "File system",
|
|
160
|
-
description: "Save, copy, paste, image clipboard."
|
|
161
|
-
},
|
|
162
|
-
settings: {
|
|
163
|
-
label: "Settings",
|
|
164
|
-
description: "Preference saves, layout reset, import/export."
|
|
165
|
-
},
|
|
166
|
-
rss: { label: "RSS feeds", description: "Feed refresh, post counts." },
|
|
167
|
-
plugins: {
|
|
168
|
-
label: "Plugins",
|
|
169
|
-
description: "Plugin install, activation, marketplace and sandbox events."
|
|
170
|
-
},
|
|
171
|
-
workspace: {
|
|
172
|
-
label: "Workspace",
|
|
173
|
-
description: "Workspace tabs, session restore and layout events."
|
|
174
|
-
},
|
|
175
|
-
dev: {
|
|
176
|
-
label: "Developer",
|
|
177
|
-
description: "Dev test surface and internal diagnostics."
|
|
178
|
-
}
|
|
179
|
-
}, ze = At.map((e) => ({ id: e, ...hi[e] })), ut = new Map(
|
|
180
|
-
ze.map((e) => [e.id, e])
|
|
181
|
-
);
|
|
182
|
-
function ee(e) {
|
|
183
|
-
if (e) {
|
|
184
|
-
const r = ut.get(e);
|
|
185
|
-
if (r) return r;
|
|
186
|
-
}
|
|
187
|
-
return ut.get("general") ?? ze[0];
|
|
188
|
-
}
|
|
189
|
-
function Ar() {
|
|
190
|
-
return ze;
|
|
191
|
-
}
|
|
192
|
-
function vi(e, r) {
|
|
193
|
-
const a = [];
|
|
194
|
-
let l = 0;
|
|
195
|
-
for (; l < e.length; ) {
|
|
196
|
-
const p = e[l];
|
|
197
|
-
if (!p) break;
|
|
198
|
-
if (p.pinned === !0) {
|
|
199
|
-
a.push({ type: "entry", id: p.id, entry: p }), l += 1;
|
|
200
|
-
continue;
|
|
201
|
-
}
|
|
202
|
-
const S = r === "source" ? p.source : `${p.source}|${p.tone}`;
|
|
203
|
-
let k = l + 1;
|
|
204
|
-
for (; k < e.length; ) {
|
|
205
|
-
const P = e[k];
|
|
206
|
-
if (!P || P.pinned === !0 || (r === "source" ? P.source : `${P.source}|${P.tone}`) !== S) break;
|
|
207
|
-
k += 1;
|
|
208
|
-
}
|
|
209
|
-
const u = k - l;
|
|
210
|
-
u === 1 ? a.push({ type: "entry", id: p.id, entry: p }) : a.push({
|
|
211
|
-
type: "group",
|
|
212
|
-
id: `group:${S}:${p.id}`,
|
|
213
|
-
groupKey: S,
|
|
214
|
-
groupCount: u,
|
|
215
|
-
groupSource: p.source,
|
|
216
|
-
groupTone: p.tone,
|
|
217
|
-
groupItems: e.slice(l, k)
|
|
218
|
-
}), l = k;
|
|
219
|
-
}
|
|
220
|
-
return a;
|
|
221
|
-
}
|
|
222
|
-
function bi(e, r) {
|
|
223
|
-
return (e + r).indexOf(r) < e.length;
|
|
224
|
-
}
|
|
225
|
-
const Si = /^[=+\-@\t\r]/, ki = /^[+-]?\d[\d.,' \u00A0\u202F]*(?:[eE][+-]?\d+)?$/, Ti = /^[ \t]|[ \t]$/;
|
|
226
|
-
function xt(e) {
|
|
227
|
-
return Si.test(e);
|
|
228
|
-
}
|
|
229
|
-
function yi(e, r) {
|
|
230
|
-
return xt(e) ? r === "quotePrefix" ? `'${e}` : ` ${e}` : e;
|
|
231
|
-
}
|
|
232
|
-
function Ci(e, r, a = {}) {
|
|
233
|
-
if (e == null) return "";
|
|
234
|
-
const l = String(e), p = a.numeric === !0 && ki.test(l), S = p ? l : yi(l, r.policy), k = a.forceQuote === !0, u = r.quoteChar, P = r.escape === "backslash";
|
|
235
|
-
return r.alwaysQuote || k || // ⚠ The RAW text is tested: the neutralization prefix changes the edge.
|
|
236
|
-
Ti.test(l) || // `tabPrefix` neutralization must keep the PREFIX INSIDE the cell ⇒ always quote.
|
|
237
|
-
!p && r.policy === "tabPrefix" && xt(l) || bi(S, r.delimiter) || S.includes(u) || S.includes(`
|
|
238
|
-
`) || S.includes("\r") || P && S.includes("\\") ? _i(S, u, r.escape) : S;
|
|
239
|
-
}
|
|
240
|
-
function _i(e, r, a) {
|
|
241
|
-
const l = a === "backslash" ? e.replace(/\\/g, "\\\\").split(r).join(`\\${r}`) : e.split(r).join(r + r);
|
|
242
|
-
return `${r}${l}${r}`;
|
|
243
|
-
}
|
|
244
|
-
const Ii = (e) => e === "crlf" ? `\r
|
|
245
|
-
` : `
|
|
246
|
-
`, wi = "\uFEFF", Ai = Object.freeze({
|
|
247
|
-
cell: Object.freeze({
|
|
248
|
-
delimiter: ",",
|
|
249
|
-
quoteChar: '"',
|
|
250
|
-
escape: "double",
|
|
251
|
-
alwaysQuote: !1,
|
|
252
|
-
policy: "quotePrefix"
|
|
253
|
-
}),
|
|
254
|
-
lineEnd: "crlf",
|
|
255
|
-
byteOrderMark: !0
|
|
256
|
-
});
|
|
257
|
-
function xi(e, r) {
|
|
258
|
-
const a = e instanceof Date ? e.toISOString() : e;
|
|
259
|
-
return Ci(a, r, { numeric: typeof e == "number" });
|
|
260
|
-
}
|
|
261
|
-
function Ei(e, r, a) {
|
|
262
|
-
const l = Ii(a.lineEnd), p = (S) => S.map((k) => xi(k, a.cell)).join(a.cell.delimiter) + l;
|
|
263
|
-
return p(r.map((S) => S.header)) + e.map((S) => p(r.map((k) => k.value(S)))).join("");
|
|
264
|
-
}
|
|
265
|
-
function Di(e, r, a) {
|
|
266
|
-
return (a.byteOrderMark ? wi : "") + Ei(e, r, a);
|
|
267
|
-
}
|
|
268
|
-
const Pi = [
|
|
269
|
-
{ header: "timestamp", value: (e) => new Date(e.createdAt) },
|
|
270
|
-
{ header: "source", value: (e) => e.source },
|
|
271
|
-
{ header: "tone", value: (e) => e.tone },
|
|
272
|
-
{ header: "priority", value: (e) => e.priority },
|
|
273
|
-
{ header: "pinned", value: (e) => e.pinned === !0 },
|
|
274
|
-
{ header: "message", value: (e) => e.message }
|
|
275
|
-
];
|
|
276
|
-
function Oi(e) {
|
|
277
|
-
return Di(e, Pi, Ai);
|
|
278
|
-
}
|
|
279
|
-
function Mi(e) {
|
|
280
|
-
return JSON.stringify(e, null, 2);
|
|
281
|
-
}
|
|
282
|
-
let dt = !1;
|
|
283
|
-
function xr() {
|
|
284
|
-
dt || typeof window > "u" || (dt = !0, Kt());
|
|
285
|
-
}
|
|
286
|
-
let se = null;
|
|
287
|
-
function Er() {
|
|
288
|
-
if (se) return se;
|
|
289
|
-
if (typeof window > "u") return () => {
|
|
290
|
-
};
|
|
291
|
-
const e = () => {
|
|
292
|
-
Jt(), Xt(), Zt();
|
|
293
|
-
};
|
|
294
|
-
return window.addEventListener(Q.changeEvent, e), se = () => {
|
|
295
|
-
window.removeEventListener(
|
|
296
|
-
Q.changeEvent,
|
|
297
|
-
e
|
|
298
|
-
), se = null;
|
|
299
|
-
}, se;
|
|
300
|
-
}
|
|
301
|
-
function Ni(e, r) {
|
|
302
|
-
return {
|
|
303
|
-
update: (a, l) => {
|
|
304
|
-
e.update({ title: a }), l !== void 0 && e.setProgress({
|
|
305
|
-
value: Math.max(0, Math.min(1, l)),
|
|
306
|
-
...r.onCancel ? { onCancel: r.onCancel } : {}
|
|
307
|
-
});
|
|
308
|
-
},
|
|
309
|
-
success: (a) => e.update({
|
|
310
|
-
title: a ?? r.message,
|
|
311
|
-
severity: "success",
|
|
312
|
-
sticky: !1,
|
|
313
|
-
progress: { done: !0 }
|
|
314
|
-
}),
|
|
315
|
-
fail: (a) => e.update({
|
|
316
|
-
title: a ?? r.message,
|
|
317
|
-
severity: "error",
|
|
318
|
-
sticky: !0,
|
|
319
|
-
progress: { done: !0 },
|
|
320
|
-
durationMs: 1 / 0
|
|
321
|
-
}),
|
|
322
|
-
dismiss: () => e.close()
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
function gt(e) {
|
|
326
|
-
return {
|
|
327
|
-
label: e.label,
|
|
328
|
-
onClick: () => {
|
|
329
|
-
},
|
|
330
|
-
...e.expireOnAction !== void 0 ? { expireOnAction: e.expireOnAction } : {}
|
|
331
|
-
};
|
|
332
|
-
}
|
|
333
|
-
function ft(e) {
|
|
334
|
-
const r = on(e);
|
|
335
|
-
return {
|
|
336
|
-
...r,
|
|
337
|
-
...r.action ? { action: gt(r.action) } : {},
|
|
338
|
-
...r.actions ? { actions: r.actions.map(gt) } : {},
|
|
339
|
-
...r.onCancel ? { onCancel: () => {
|
|
340
|
-
} } : {}
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
function Ri(e) {
|
|
344
|
-
return e.vendorError === void 0 || !hn() ? null : vn(e.vendorError);
|
|
345
|
-
}
|
|
346
|
-
function Dr() {
|
|
347
|
-
let e = { ...rt }, r = {
|
|
348
|
-
dismissed: !1,
|
|
349
|
-
remindSuppressed: !1,
|
|
350
|
-
sourceMuted: !1,
|
|
351
|
-
inQuietHours: !1
|
|
352
|
-
};
|
|
353
|
-
const a = [], l = pn({
|
|
354
|
-
getSettings: () => e,
|
|
355
|
-
recordAutoFade: () => {
|
|
356
|
-
},
|
|
357
|
-
warn: () => {
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
let p = [];
|
|
361
|
-
const S = l.subscribe((u) => {
|
|
362
|
-
p = u;
|
|
363
|
-
});
|
|
364
|
-
return {
|
|
365
|
-
host: {
|
|
366
|
-
notify(u, P) {
|
|
367
|
-
var B;
|
|
368
|
-
const s = ft(P), I = Ri(s), O = u.severity === "error" ? en(
|
|
369
|
-
s.message,
|
|
370
|
-
{
|
|
371
|
-
...s.title ? { title: s.title } : {},
|
|
372
|
-
...s.subtitle ? { subtitle: s.subtitle } : {},
|
|
373
|
-
...s.description ? { description: s.description } : {},
|
|
374
|
-
...s.action ? { action: s.action } : {}
|
|
375
|
-
},
|
|
376
|
-
I,
|
|
377
|
-
ie
|
|
378
|
-
) : null, G = u.severity === "error" && u.source === "general" && I !== null ? "vendor-error" : u.source, y = tn(
|
|
379
|
-
u.severity,
|
|
380
|
-
u.priority,
|
|
381
|
-
I !== null,
|
|
382
|
-
e.vendorCodesAreUrgent
|
|
383
|
-
), d = nn(
|
|
384
|
-
{
|
|
385
|
-
severity: u.severity,
|
|
386
|
-
title: (O == null ? void 0 : O.displayText) ?? s.title ?? s.message,
|
|
387
|
-
priority: y,
|
|
388
|
-
source: G
|
|
389
|
-
},
|
|
390
|
-
e.notificationRules
|
|
391
|
-
), T = d === null ? { showToast: !1, recordTimeline: !1 } : at(
|
|
392
|
-
{
|
|
393
|
-
priority: d.priority,
|
|
394
|
-
recordTimeline: s.recordTimeline
|
|
395
|
-
},
|
|
396
|
-
e,
|
|
397
|
-
r
|
|
398
|
-
), x = u.delivery === "os-only" ? "mock-os" : T.showToast ? "shown" : T.recordTimeline ? "timeline-only" : "suppressed", A = {
|
|
399
|
-
definition: u,
|
|
400
|
-
payload: {
|
|
401
|
-
...s,
|
|
402
|
-
message: ne(s.message),
|
|
403
|
-
...s.title ? { title: ne(s.title) } : {},
|
|
404
|
-
...s.description ? { description: ne(s.description) } : {}
|
|
405
|
-
},
|
|
406
|
-
channel: u.delivery,
|
|
407
|
-
decision: T,
|
|
408
|
-
outcome: x
|
|
409
|
-
};
|
|
410
|
-
if (u.delivery === "os-only" || d === null || !T.showToast)
|
|
411
|
-
return a.push(A), "";
|
|
412
|
-
const v = (O == null ? void 0 : O.bodyText) ?? s.subtitle ?? s.description, E = (O == null ? void 0 : O.primaryAction) ?? s.action, z = l.notify({
|
|
413
|
-
severity: d.severity,
|
|
414
|
-
title: ne(d.title),
|
|
415
|
-
...v ? { body: ne(v) } : {},
|
|
416
|
-
source: d.source,
|
|
417
|
-
priority: d.priority,
|
|
418
|
-
...s.duration !== void 0 ? { durationMs: s.duration } : {},
|
|
419
|
-
...s.id !== void 0 ? { id: String(s.id) } : {},
|
|
420
|
-
...s.icon ? { icon: s.icon } : {},
|
|
421
|
-
...s.markdown ? { markdown: !0 } : {},
|
|
422
|
-
...E || (B = s.actions) != null && B.length ? {
|
|
423
|
-
actions: [E, ...s.actions ?? []].filter((F) => F !== void 0).map((F, j) => ({
|
|
424
|
-
label: F.label,
|
|
425
|
-
primary: j === 0,
|
|
426
|
-
onClick: () => {
|
|
427
|
-
F.onClick();
|
|
428
|
-
}
|
|
429
|
-
}))
|
|
430
|
-
} : {}
|
|
431
|
-
});
|
|
432
|
-
return a.push(
|
|
433
|
-
z.id ? A : { ...A, outcome: "spam-dropped" }
|
|
434
|
-
), z.id;
|
|
435
|
-
},
|
|
436
|
-
progress(u, P) {
|
|
437
|
-
const s = ft(P), I = at(
|
|
438
|
-
{
|
|
439
|
-
priority: u.priority,
|
|
440
|
-
recordTimeline: s.recordTimeline
|
|
441
|
-
},
|
|
442
|
-
e,
|
|
443
|
-
r
|
|
444
|
-
);
|
|
445
|
-
if (a.push({
|
|
446
|
-
definition: u,
|
|
447
|
-
payload: s,
|
|
448
|
-
channel: "in-app",
|
|
449
|
-
decision: I,
|
|
450
|
-
outcome: I.showToast ? "shown" : I.recordTimeline ? "timeline-only" : "suppressed"
|
|
451
|
-
}), !I.showToast)
|
|
452
|
-
return {
|
|
453
|
-
update: () => {
|
|
454
|
-
},
|
|
455
|
-
success: () => {
|
|
456
|
-
},
|
|
457
|
-
fail: () => {
|
|
458
|
-
},
|
|
459
|
-
dismiss: () => {
|
|
460
|
-
}
|
|
461
|
-
};
|
|
462
|
-
const O = l.notify({
|
|
463
|
-
severity: u.severity,
|
|
464
|
-
title: ne(s.message),
|
|
465
|
-
source: u.source,
|
|
466
|
-
priority: u.priority,
|
|
467
|
-
sticky: !0,
|
|
468
|
-
progress: s.onCancel ? { onCancel: s.onCancel } : {},
|
|
469
|
-
...s.id !== void 0 ? { id: String(s.id) } : {}
|
|
470
|
-
});
|
|
471
|
-
return Ni(O, s);
|
|
472
|
-
}
|
|
473
|
-
},
|
|
474
|
-
controller: l,
|
|
475
|
-
deliveries: a,
|
|
476
|
-
setBehavior: (u) => {
|
|
477
|
-
e = { ...rt }, r = {
|
|
478
|
-
dismissed: u === "dismissed",
|
|
479
|
-
remindSuppressed: u === "reminder",
|
|
480
|
-
sourceMuted: u === "source-muted",
|
|
481
|
-
inQuietHours: u === "quiet-hours"
|
|
482
|
-
}, u === "dnd" ? e = { ...e, doNotDisturb: !0 } : u === "rule-transform" ? e = {
|
|
483
|
-
...e,
|
|
484
|
-
notificationRules: [
|
|
485
|
-
{
|
|
486
|
-
id: "preview-transform",
|
|
487
|
-
name: "Preview transform",
|
|
488
|
-
enabled: !0,
|
|
489
|
-
conditions: { source: "dev" },
|
|
490
|
-
actions: {
|
|
491
|
-
setSeverity: "warning",
|
|
492
|
-
setPriority: "urgent",
|
|
493
|
-
addPrefix: "[RULE]"
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
]
|
|
497
|
-
} : u === "rule-suppress" && (e = {
|
|
498
|
-
...e,
|
|
499
|
-
notificationRules: [
|
|
500
|
-
{
|
|
501
|
-
id: "preview-suppress",
|
|
502
|
-
name: "Preview suppress",
|
|
503
|
-
enabled: !0,
|
|
504
|
-
conditions: { source: "dev" },
|
|
505
|
-
actions: { suppress: !0 }
|
|
506
|
-
}
|
|
507
|
-
]
|
|
508
|
-
});
|
|
509
|
-
},
|
|
510
|
-
subscribe: (u) => l.subscribe(u),
|
|
511
|
-
clear: () => {
|
|
512
|
-
for (const u of p) l.close(u.id);
|
|
513
|
-
a.splice(0, a.length);
|
|
514
|
-
},
|
|
515
|
-
dispose: () => {
|
|
516
|
-
S(), l.dispose();
|
|
517
|
-
}
|
|
518
|
-
};
|
|
519
|
-
}
|
|
520
|
-
const $i = rn(
|
|
521
|
-
{
|
|
522
|
-
id: "onboarding.PageTourHost.info.1",
|
|
523
|
-
source: "general",
|
|
524
|
-
severity: "info",
|
|
525
|
-
priority: "default",
|
|
526
|
-
delivery: "in-app",
|
|
527
|
-
kind: "message"
|
|
528
|
-
},
|
|
529
|
-
() => ({
|
|
530
|
-
message: n("You can reopen this tour from Help → Page tours.")
|
|
531
|
-
})
|
|
532
|
-
);
|
|
533
|
-
function Ie(e) {
|
|
534
|
-
return e.getClientRects().length > 0 && e.getBoundingClientRect().width > 0 && e.getBoundingClientRect().height > 0;
|
|
535
|
-
}
|
|
536
|
-
function ye(e) {
|
|
537
|
-
return (r) => r.matches(e) && Ie(r) ? r : Array.from(r.querySelectorAll(e)).find(
|
|
538
|
-
Ie
|
|
539
|
-
) ?? null;
|
|
540
|
-
}
|
|
541
|
-
var Bi = /* @__PURE__ */ U("<span hidden>");
|
|
542
|
-
function zi(e) {
|
|
543
|
-
const r = In(Hn);
|
|
544
|
-
let a;
|
|
545
|
-
const [l, p] = $(!1), [S, k] = $(0), [u, P] = $([]);
|
|
546
|
-
let s = !1, I = !1, O = !1;
|
|
547
|
-
const G = {}, y = () => a.parentElement, d = () => Ie(y()), T = (v, E = !0) => {
|
|
548
|
-
var z;
|
|
549
|
-
p(!1), De(G), Ee(null), (z = e.onTourActiveChange) == null || z.call(e, !1);
|
|
550
|
-
try {
|
|
551
|
-
ct(e.definition.pageId, v ? "completed" : "skipped");
|
|
552
|
-
} catch (B) {
|
|
553
|
-
_e("PageTour").warn("Could not save tour progress", B);
|
|
554
|
-
}
|
|
555
|
-
s && E && Z($i, {}), s = !1;
|
|
556
|
-
}, x = () => {
|
|
557
|
-
ei(!0), T(!1, !1);
|
|
558
|
-
}, A = (v = !1) => {
|
|
559
|
-
var z;
|
|
560
|
-
if (!d() || !Kn(G)) return;
|
|
561
|
-
I = !1;
|
|
562
|
-
const E = e.definition.steps.filter((B) => {
|
|
563
|
-
var F;
|
|
564
|
-
return ((F = B.available) == null ? void 0 : F.call(B)) !== !1;
|
|
565
|
-
});
|
|
566
|
-
if (!E.length) {
|
|
567
|
-
De(G);
|
|
568
|
-
return;
|
|
569
|
-
}
|
|
570
|
-
P(E), k(0), s = v;
|
|
571
|
-
try {
|
|
572
|
-
ct(e.definition.pageId, "shown");
|
|
573
|
-
} catch (B) {
|
|
574
|
-
_e("PageTour").warn("Could not save tour progress", B);
|
|
575
|
-
}
|
|
576
|
-
Ee(e.definition.pageId), (z = e.onTourActiveChange) == null || z.call(e, !0), p(!0);
|
|
577
|
-
};
|
|
578
|
-
return ge(() => {
|
|
579
|
-
const v = y(), E = v.hasAttribute("tabindex");
|
|
580
|
-
E || (v.tabIndex = -1), te(() => {
|
|
581
|
-
E || v.removeAttribute("tabindex");
|
|
582
|
-
});
|
|
583
|
-
const B = a.ownerDocument.defaultView;
|
|
584
|
-
if (!B) return;
|
|
585
|
-
const F = () => Array.from(a.ownerDocument.querySelectorAll('[role="dialog"], [role="alertdialog"]')).some((W) => Ie(W) && !W.contains(y()));
|
|
586
|
-
let j = 0;
|
|
587
|
-
const q = () => {
|
|
588
|
-
var W;
|
|
589
|
-
if (!d()) {
|
|
590
|
-
j = 0, l() && T(!1, !1);
|
|
591
|
-
return;
|
|
592
|
-
}
|
|
593
|
-
if (!(l() || F() || ((W = r == null ? void 0 : r.isReady) == null ? void 0 : W.call(r)) === !1) && !(++j < 2)) {
|
|
594
|
-
if (Jn(e.definition.pageId) && (I = !0), I) {
|
|
595
|
-
A();
|
|
596
|
-
return;
|
|
597
|
-
}
|
|
598
|
-
if (!O && !Xn())
|
|
599
|
-
try {
|
|
600
|
-
Zn(e.definition.pageId) || A(!0);
|
|
601
|
-
} catch (V) {
|
|
602
|
-
O = !0, _e("PageTour").warn("Could not read tour progress", V);
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
}, h = jn({
|
|
606
|
-
page: e.definition.pageId,
|
|
607
|
-
document: () => a.ownerDocument,
|
|
608
|
-
visible: d,
|
|
609
|
-
start: () => {
|
|
610
|
-
I = !0, (l() || !F()) && A();
|
|
611
|
-
},
|
|
612
|
-
dismiss: () => {
|
|
613
|
-
l() && T(!1, !1);
|
|
614
|
-
}
|
|
615
|
-
}), w = B.setInterval(q, 250);
|
|
616
|
-
te(() => {
|
|
617
|
-
var W;
|
|
618
|
-
B.clearInterval(w), h(), De(G), Yn() === e.definition.pageId && (Ee(null), (W = e.onTourActiveChange) == null || W.call(e, !1));
|
|
619
|
-
});
|
|
620
|
-
}), [(() => {
|
|
621
|
-
var v = Bi(), E = a;
|
|
622
|
-
return typeof E == "function" ? yn(E, v) : a = v, L(() => X(v, "data-page-tour-host", e.definition.pageId)), v;
|
|
623
|
-
})(), i(R, {
|
|
624
|
-
get when() {
|
|
625
|
-
return l();
|
|
626
|
-
},
|
|
627
|
-
get children() {
|
|
628
|
-
return i(Gn, {
|
|
629
|
-
get document() {
|
|
630
|
-
return a.ownerDocument;
|
|
631
|
-
},
|
|
632
|
-
focusFallback: () => d() ? y() : null,
|
|
633
|
-
get steps() {
|
|
634
|
-
return u();
|
|
635
|
-
},
|
|
636
|
-
get index() {
|
|
637
|
-
return S();
|
|
638
|
-
},
|
|
639
|
-
target: () => {
|
|
640
|
-
var v;
|
|
641
|
-
return ((v = u()[S()]) == null ? void 0 : v.target(y())) ?? null;
|
|
642
|
-
},
|
|
643
|
-
onSelect: k,
|
|
644
|
-
onClose: T,
|
|
645
|
-
onNeverShowAgain: x
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
})];
|
|
649
|
-
}
|
|
650
|
-
const Fi = {
|
|
651
|
-
id: "notifications",
|
|
652
|
-
pageId: "notifications",
|
|
653
|
-
version: 1,
|
|
654
|
-
steps: [
|
|
655
|
-
{
|
|
656
|
-
id: "panel",
|
|
657
|
-
title: "Notification Center",
|
|
658
|
-
description: "Stay informed on database events, completed exports, query execution errors, and background system alerts.",
|
|
659
|
-
target: ye('[data-tour-target="notifications-panel"]')
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
id: "actions",
|
|
663
|
-
title: "Timeline Actions & Filter Options",
|
|
664
|
-
description: "Search notifications, filter by priority or notification source, pin important entries, and export history to CSV or JSON.",
|
|
665
|
-
target: ye('[data-tour-target="notifications-actions"]')
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
id: "settings",
|
|
669
|
-
title: "Notification Settings & DND",
|
|
670
|
-
description: "Open the notification menu to configure do-not-disturb, quiet hours, and notification delivery preferences.",
|
|
671
|
-
target: ye('[data-tour-target="notifications-settings"]')
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
id: "timeline",
|
|
675
|
-
title: "Interactive Timeline Cards",
|
|
676
|
-
description: "Click notification entries to expand stack traces, inspect vendor error codes, or navigate directly to affected queries.",
|
|
677
|
-
target: ye('[data-tour-target="notifications-timeline"]')
|
|
678
|
-
}
|
|
679
|
-
]
|
|
680
|
-
};
|
|
681
|
-
function Li(e, r, a, l, p = 2) {
|
|
682
|
-
return e <= 0 || e > a ? 0 : Math.min(r, p + Math.floor((a - e) / l));
|
|
683
|
-
}
|
|
684
|
-
function ce(e, r) {
|
|
685
|
-
e((a) => {
|
|
686
|
-
const l = new Set(a);
|
|
687
|
-
return l.has(r) ? l.delete(r) : l.add(r), l;
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
const Vi = "vk_rightRail_HtYMh", Ui = "vk_notificationPanel_nrSZl", Hi = "vk_filterBar_WTQg3", Gi = "vk_notificationPanelHeader_aHtxT vk_headerRail_CLLzD", Wi = "vk_notificationPanelTitleWrap_cOfAP vk_titleWrapRail_b0Czp", qi = "vk_notificationPanelTitle_9iMrQ vk_titleSmMargin_PPvAx", Qi = "vk_notificationPanelActions_7fRj6 vk_actionsRail_QqUv8", ji = "vk_notificationActionIcon_d5EzT", Yi = "vk_notificationTimeline_K-mMI", Ki = "vk_notificationEmpty_IU6kY", Ji = "vk_notificationItem_tm8HP", Xi = "vk_notificationGroup_4hkdy", Zi = "vk_notificationGroupToggle_Opmmd", eo = "vk_notificationGroupBody_nlrmq", to = "vk_notificationItemSelected_DspyF", no = "vk_notificationItemCheckbox_knWVX", io = "vk_bulkActionBar_6MHEY", oo = "vk_bulkActionCount_Mb4tN", ro = "vk_notificationItemTop_Mt0D7", ao = "vk_notificationToneDot_Z-LOj", so = "vk_notificationToneInfo_rxKOj", co = "vk_notificationToneSuccess_Bxc9E", lo = "vk_notificationToneWarning_uBK0T", uo = "vk_notificationToneError_p9EYY", go = "vk_notificationItemTime_WT4cd", fo = "vk_notificationItemCopyDone_P39uT", mo = "vk_notificationItemMessage_G2mnV", po = "vk_notificationItemMeta_xdFUH", ho = "vk_notificationSourceLabel_VvB0i", vo = "vk_priorityBadgeIcon_UaJX0", m = {
|
|
691
|
-
rightRail: Vi,
|
|
692
|
-
notificationPanel: Ui,
|
|
693
|
-
filterBar: Hi,
|
|
694
|
-
notificationPanelHeader: Gi,
|
|
695
|
-
notificationPanelTitleWrap: Wi,
|
|
696
|
-
notificationPanelTitle: qi,
|
|
697
|
-
notificationPanelActions: Qi,
|
|
698
|
-
notificationActionIcon: ji,
|
|
699
|
-
notificationTimeline: Yi,
|
|
700
|
-
notificationEmpty: Ki,
|
|
701
|
-
notificationItem: Ji,
|
|
702
|
-
notificationGroup: Xi,
|
|
703
|
-
notificationGroupToggle: Zi,
|
|
704
|
-
notificationGroupBody: eo,
|
|
705
|
-
notificationItemSelected: to,
|
|
706
|
-
notificationItemCheckbox: no,
|
|
707
|
-
bulkActionBar: io,
|
|
708
|
-
bulkActionCount: oo,
|
|
709
|
-
notificationItemTop: ro,
|
|
710
|
-
notificationToneDot: ao,
|
|
711
|
-
notificationToneInfo: so,
|
|
712
|
-
notificationToneSuccess: co,
|
|
713
|
-
notificationToneWarning: lo,
|
|
714
|
-
notificationToneError: uo,
|
|
715
|
-
notificationItemTime: go,
|
|
716
|
-
notificationItemCopyDone: fo,
|
|
717
|
-
notificationItemMessage: mo,
|
|
718
|
-
notificationItemMeta: po,
|
|
719
|
-
notificationSourceLabel: ho,
|
|
720
|
-
priorityBadgeIcon: vo
|
|
721
|
-
};
|
|
722
|
-
var bo = /* @__PURE__ */ U("<h3>"), So = /* @__PURE__ */ U("<div data-tour-target=notifications-actions>"), ko = /* @__PURE__ */ U("<div role=toolbar><span>"), To = /* @__PURE__ */ U("<span>📌 "), yo = /* @__PURE__ */ U("<aside tabindex=-1><section data-tour-target=notifications-panel>"), Co = /* @__PURE__ */ U("<p>"), mt = /* @__PURE__ */ U("<span>"), _o = /* @__PURE__ */ U("<article><div><span></span><time></time></div><p></p><div><span>");
|
|
723
|
-
const pt = _e("NotificationPanel");
|
|
724
|
-
function Io(e) {
|
|
725
|
-
return new Intl.DateTimeFormat(we(), {
|
|
726
|
-
hour: "2-digit",
|
|
727
|
-
minute: "2-digit"
|
|
728
|
-
}).format(new Date(e));
|
|
729
|
-
}
|
|
730
|
-
function wo(e) {
|
|
731
|
-
return new Intl.DateTimeFormat(we(), {
|
|
732
|
-
year: "numeric",
|
|
733
|
-
month: "short",
|
|
734
|
-
day: "2-digit",
|
|
735
|
-
hour: "2-digit",
|
|
736
|
-
minute: "2-digit",
|
|
737
|
-
second: "2-digit"
|
|
738
|
-
}).format(new Date(e));
|
|
739
|
-
}
|
|
740
|
-
function ht(e) {
|
|
741
|
-
switch (e) {
|
|
742
|
-
case "success":
|
|
743
|
-
return m.notificationToneSuccess;
|
|
744
|
-
case "error":
|
|
745
|
-
return m.notificationToneError;
|
|
746
|
-
case "warning":
|
|
747
|
-
return m.notificationToneWarning;
|
|
748
|
-
default:
|
|
749
|
-
return m.notificationToneInfo;
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
const Ce = ["error", "warning", "info", "success"], Ao = 189, xo = 27;
|
|
753
|
-
function Pr(e) {
|
|
754
|
-
const r = ii(), [a, l] = $(null), [p, S] = $(0), [k, u] = $(""), [P, s] = $(null), [I, O] = $(/* @__PURE__ */ new Set()), [G, y] = $(!1), [d, T] = $(/* @__PURE__ */ new Set()), [x, A] = $(/* @__PURE__ */ new Set()), [v, E] = $(/* @__PURE__ */ new Set()), [z, B] = $(!1), [F, j] = $(0);
|
|
755
|
-
let q = null, h;
|
|
756
|
-
const w = It(), W = K(() => mi(k(), z())), V = K(() => pi(e.notificationTimeline(), {
|
|
757
|
-
tones: I(),
|
|
758
|
-
sources: x(),
|
|
759
|
-
priorities: v(),
|
|
760
|
-
dateBounds: P(),
|
|
761
|
-
searchMatcher: W()
|
|
762
|
-
})), fe = K(() => {
|
|
763
|
-
const t = /* @__PURE__ */ new Set();
|
|
764
|
-
for (const c of e.notificationTimeline()) t.add(c.source);
|
|
765
|
-
return Array.from(t).sort();
|
|
766
|
-
}), oe = K(() => V().filter((t) => t.pinned === !0)), [me, pe] = $(0);
|
|
767
|
-
Be(Q, () => {
|
|
768
|
-
pe((t) => t + 1);
|
|
769
|
-
});
|
|
770
|
-
const [he, ve] = $(/* @__PURE__ */ new Set()), be = K(() => {
|
|
771
|
-
me();
|
|
772
|
-
const t = Q.get();
|
|
773
|
-
return t.timelineGroupingEnabled ? vi(V(), t.timelineGroupBy) : V().map((c) => ({
|
|
774
|
-
type: "entry",
|
|
775
|
-
id: c.id,
|
|
776
|
-
entry: c
|
|
777
|
-
}));
|
|
778
|
-
}), Se = (t) => {
|
|
779
|
-
ce(ve, t);
|
|
780
|
-
}, re = () => k().trim() !== "" || P() !== null || I().size > 0 || x().size > 0 || v().size > 0, Et = () => {
|
|
781
|
-
u(""), s(null), O(/* @__PURE__ */ new Set()), A(/* @__PURE__ */ new Set()), E(/* @__PURE__ */ new Set());
|
|
782
|
-
}, Dt = (t) => {
|
|
783
|
-
ce(A, t);
|
|
784
|
-
}, Pt = (t) => {
|
|
785
|
-
ce(E, t);
|
|
786
|
-
}, Ot = ["urgent", "acknowledgment-required", "default", "optional", "silent"], Mt = (t) => {
|
|
787
|
-
if (t.preventDefault(), t.stopPropagation(), w.state() !== null) {
|
|
788
|
-
w.close();
|
|
789
|
-
return;
|
|
790
|
-
}
|
|
791
|
-
const o = t.currentTarget.getBoundingClientRect(), g = fe(), b = {
|
|
792
|
-
urgent: n("Urgent"),
|
|
793
|
-
"acknowledgment-required": n("Acknowledgment required"),
|
|
794
|
-
default: n("Default"),
|
|
795
|
-
optional: n("Optional"),
|
|
796
|
-
silent: n("Silent")
|
|
797
|
-
};
|
|
798
|
-
w.open(o.left, o.bottom + 4, [{
|
|
799
|
-
label: n("Use regex in search"),
|
|
800
|
-
checked: () => z(),
|
|
801
|
-
keepOpenOnSelect: !0,
|
|
802
|
-
onSelect: () => {
|
|
803
|
-
B((D) => !D);
|
|
804
|
-
}
|
|
805
|
-
}, {
|
|
806
|
-
type: "separator"
|
|
807
|
-
}, {
|
|
808
|
-
label: n("Filter by priority"),
|
|
809
|
-
submenu: Ot.map((D) => ({
|
|
810
|
-
label: b[D],
|
|
811
|
-
checked: () => v().has(D),
|
|
812
|
-
keepOpenOnSelect: !0,
|
|
813
|
-
onSelect: () => Pt(D)
|
|
814
|
-
}))
|
|
815
|
-
}, ...g.length > 0 ? [{
|
|
816
|
-
label: n("Filter by source"),
|
|
817
|
-
submenu: g.map((D) => ({
|
|
818
|
-
label: ee(D).label,
|
|
819
|
-
checked: () => x().has(D),
|
|
820
|
-
keepOpenOnSelect: !0,
|
|
821
|
-
onSelect: () => Dt(D)
|
|
822
|
-
}))
|
|
823
|
-
}] : [], {
|
|
824
|
-
type: "separator"
|
|
825
|
-
}, {
|
|
826
|
-
label: n("Clear advanced filters"),
|
|
827
|
-
disabled: x().size === 0 && v().size === 0,
|
|
828
|
-
onSelect: () => {
|
|
829
|
-
A(/* @__PURE__ */ new Set()), E(/* @__PURE__ */ new Set());
|
|
830
|
-
}
|
|
831
|
-
}]);
|
|
832
|
-
}, Nt = (t) => {
|
|
833
|
-
ce(O, t);
|
|
834
|
-
}, Rt = () => {
|
|
835
|
-
const t = I();
|
|
836
|
-
return t.size === 0 ? n("All tones") : t.size === Ce.length ? n("All tones") : Array.from(t).join(", ");
|
|
837
|
-
}, $t = (t) => {
|
|
838
|
-
if (t.preventDefault(), t.stopPropagation(), w.state() !== null) {
|
|
839
|
-
w.close();
|
|
840
|
-
return;
|
|
841
|
-
}
|
|
842
|
-
const o = t.currentTarget.getBoundingClientRect();
|
|
843
|
-
w.open(o.left, o.bottom + 4, [...Ce.map((g) => ({
|
|
844
|
-
label: n(Qn[g]),
|
|
845
|
-
checked: () => I().has(g),
|
|
846
|
-
keepOpenOnSelect: !0,
|
|
847
|
-
onSelect: () => Nt(g)
|
|
848
|
-
})), {
|
|
849
|
-
type: "separator"
|
|
850
|
-
}, ...I().size === Ce.length ? [{
|
|
851
|
-
label: n("Select none"),
|
|
852
|
-
onSelect: () => {
|
|
853
|
-
O(/* @__PURE__ */ new Set());
|
|
854
|
-
}
|
|
855
|
-
}] : [{
|
|
856
|
-
label: n("Select all"),
|
|
857
|
-
onSelect: () => {
|
|
858
|
-
O(new Set(Ce));
|
|
859
|
-
}
|
|
860
|
-
}]]);
|
|
861
|
-
};
|
|
862
|
-
ge(() => {
|
|
863
|
-
const t = vt(S);
|
|
864
|
-
te(t);
|
|
865
|
-
});
|
|
866
|
-
const Fe = () => {
|
|
867
|
-
p() > 0 && Pe();
|
|
868
|
-
}, Le = (t) => {
|
|
869
|
-
const c = e.notificationTimeline().find((o) => o.id === t);
|
|
870
|
-
c && Sn(c.source), Oe(t);
|
|
871
|
-
}, Bt = (t) => {
|
|
872
|
-
const c = {
|
|
873
|
-
// A persisted entry's source is foreign data (older builds, hand edits) —
|
|
874
|
-
// re-enter the closed vocabulary at the boundary (#52).
|
|
875
|
-
source: fi(t.source) ? t.source : "general",
|
|
876
|
-
priority: "urgent",
|
|
877
|
-
recordTimeline: !1
|
|
878
|
-
}, o = t.tone;
|
|
879
|
-
o === "error" ? Z(sn, {
|
|
880
|
-
timelineMessage: t.message,
|
|
881
|
-
options: c
|
|
882
|
-
}) : o === "warning" ? Z(cn, {
|
|
883
|
-
timelineMessage: t.message,
|
|
884
|
-
options: c
|
|
885
|
-
}) : o === "success" ? Z(ln, {
|
|
886
|
-
timelineMessage: t.message,
|
|
887
|
-
options: c
|
|
888
|
-
}) : Z(un, {
|
|
889
|
-
timelineMessage: t.message,
|
|
890
|
-
options: c
|
|
891
|
-
});
|
|
892
|
-
}, zt = (t) => {
|
|
893
|
-
const c = ue(t);
|
|
894
|
-
c && ie(c.helpers.docsUrl(c.code));
|
|
895
|
-
}, Ft = (t, c) => {
|
|
896
|
-
t.preventDefault(), t.stopPropagation();
|
|
897
|
-
const o = ue(c), g = ee(c.source), b = Me(c.source);
|
|
898
|
-
w.open(t.clientX, t.clientY, [{
|
|
899
|
-
label: n("Search on Google"),
|
|
900
|
-
onSelect: () => {
|
|
901
|
-
ie(bn(c.message));
|
|
902
|
-
}
|
|
903
|
-
}, ...o ? [{
|
|
904
|
-
label: n("Open {vendor} ({code})", {
|
|
905
|
-
vendor: o.helpers.docsLinkLabel,
|
|
906
|
-
code: o.helpers.formatCode(o.code)
|
|
907
|
-
}),
|
|
908
|
-
onSelect: () => {
|
|
909
|
-
ie(o.helpers.docsUrl(o.code));
|
|
910
|
-
}
|
|
911
|
-
}, {
|
|
912
|
-
label: n("Copy error code"),
|
|
913
|
-
onSelect: () => {
|
|
914
|
-
var D;
|
|
915
|
-
(D = navigator.clipboard) == null || D.writeText(o.helpers.formatCode(o.code)).catch((H) => {
|
|
916
|
-
pt.warn("Clipboard write failed:", H);
|
|
917
|
-
});
|
|
918
|
-
}
|
|
919
|
-
}] : [], {
|
|
920
|
-
type: "separator"
|
|
921
|
-
}, {
|
|
922
|
-
label: b ? n('Unmute "{source}"', {
|
|
923
|
-
source: g.label
|
|
924
|
-
}) : n('Mute "{source}"', {
|
|
925
|
-
source: g.label
|
|
926
|
-
}),
|
|
927
|
-
onSelect: () => {
|
|
928
|
-
kt(c.source, !b);
|
|
929
|
-
}
|
|
930
|
-
}, {
|
|
931
|
-
type: "separator"
|
|
932
|
-
}, {
|
|
933
|
-
label: n("Copy log message"),
|
|
934
|
-
onSelect: () => {
|
|
935
|
-
Ge(c);
|
|
936
|
-
}
|
|
937
|
-
}, {
|
|
938
|
-
label: c.pinned ? n("Unpin notification") : n("Pin notification"),
|
|
939
|
-
onSelect: () => {
|
|
940
|
-
ot(c.id);
|
|
941
|
-
}
|
|
942
|
-
}, {
|
|
943
|
-
label: n("Remove notification"),
|
|
944
|
-
danger: !0,
|
|
945
|
-
onSelect: () => {
|
|
946
|
-
Le(c.id);
|
|
947
|
-
}
|
|
948
|
-
}, ...g ? [{
|
|
949
|
-
label: n('Remove all from "{source}"', {
|
|
950
|
-
source: g.label
|
|
951
|
-
}),
|
|
952
|
-
danger: !0,
|
|
953
|
-
onSelect: () => {
|
|
954
|
-
St(c.source);
|
|
955
|
-
}
|
|
956
|
-
}] : []]);
|
|
957
|
-
}, Lt = () => {
|
|
958
|
-
bt();
|
|
959
|
-
}, Vt = (t) => {
|
|
960
|
-
ce(T, t);
|
|
961
|
-
}, Ut = () => {
|
|
962
|
-
y(!0), T(/* @__PURE__ */ new Set());
|
|
963
|
-
}, Ve = () => {
|
|
964
|
-
y(!1), T(/* @__PURE__ */ new Set());
|
|
965
|
-
}, Ht = () => {
|
|
966
|
-
T(new Set(V().map((t) => t.id)));
|
|
967
|
-
}, ae = () => d().size, Gt = () => {
|
|
968
|
-
const t = d();
|
|
969
|
-
return V().filter((c) => t.has(c.id)).map((c) => c.id);
|
|
970
|
-
}, Wt = () => {
|
|
971
|
-
const t = Gt();
|
|
972
|
-
t.length !== 0 && (an(t), Ve());
|
|
973
|
-
}, Ue = (t) => {
|
|
974
|
-
const c = d(), o = e.notificationTimeline().filter((g) => c.has(g.id));
|
|
975
|
-
for (const g of o)
|
|
976
|
-
(g.pinned ?? !1) !== t && ot(g.id);
|
|
977
|
-
}, He = async (t) => {
|
|
978
|
-
const c = V();
|
|
979
|
-
if (c.length === 0) return;
|
|
980
|
-
const o = kn(), b = `notifications-${(/* @__PURE__ */ new Date()).toISOString().replace(/[:T]/g, "-").slice(0, 19)}.${t}`, D = t === "csv" ? [{
|
|
981
|
-
name: "CSV",
|
|
982
|
-
extensions: ["csv"]
|
|
983
|
-
}] : [{
|
|
984
|
-
name: "JSON",
|
|
985
|
-
extensions: ["json"]
|
|
986
|
-
}];
|
|
987
|
-
try {
|
|
988
|
-
const H = await o.showSaveDialog({
|
|
989
|
-
title: n("Export notifications"),
|
|
990
|
-
defaultPath: b,
|
|
991
|
-
filters: D
|
|
992
|
-
});
|
|
993
|
-
if (!(H != null && H.filePath)) return;
|
|
994
|
-
const Y = t === "csv" ? Oi(c) : Mi(c);
|
|
995
|
-
await o.writeFile(H.filePath, Y), Z(dn, {
|
|
996
|
-
entryCount: c.length
|
|
997
|
-
});
|
|
998
|
-
} catch (H) {
|
|
999
|
-
Z(gn, {
|
|
1000
|
-
cause: H
|
|
1001
|
-
});
|
|
1002
|
-
}
|
|
1003
|
-
}, qt = () => {
|
|
1004
|
-
_t("notification");
|
|
1005
|
-
}, Qt = (t) => {
|
|
1006
|
-
if (t.preventDefault(), t.stopPropagation(), w.state() !== null) {
|
|
1007
|
-
w.close();
|
|
1008
|
-
return;
|
|
1009
|
-
}
|
|
1010
|
-
const o = t.currentTarget.getBoundingClientRect(), g = V().length === 0;
|
|
1011
|
-
w.open(o.left, o.bottom + 4, [{
|
|
1012
|
-
label: n("Export"),
|
|
1013
|
-
disabled: g,
|
|
1014
|
-
submenu: [{
|
|
1015
|
-
label: n("Export as CSV"),
|
|
1016
|
-
onSelect: () => {
|
|
1017
|
-
He("csv");
|
|
1018
|
-
}
|
|
1019
|
-
}, {
|
|
1020
|
-
label: n("Export as JSON"),
|
|
1021
|
-
onSelect: () => {
|
|
1022
|
-
He("json");
|
|
1023
|
-
}
|
|
1024
|
-
}]
|
|
1025
|
-
}, {
|
|
1026
|
-
type: "separator"
|
|
1027
|
-
}, {
|
|
1028
|
-
label: n("Notification settings…"),
|
|
1029
|
-
onSelect: qt
|
|
1030
|
-
}]);
|
|
1031
|
-
}, Ge = async (t) => {
|
|
1032
|
-
var o;
|
|
1033
|
-
const c = t.message.trim();
|
|
1034
|
-
if (c)
|
|
1035
|
-
try {
|
|
1036
|
-
if ((o = navigator.clipboard) != null && o.writeText)
|
|
1037
|
-
await navigator.clipboard.writeText(c);
|
|
1038
|
-
else {
|
|
1039
|
-
const g = r, b = _n("textarea");
|
|
1040
|
-
b.value = c, b.setAttribute("readonly", "true"), b.style.position = "fixed", b.style.opacity = "0", g.body.appendChild(b), b.select(), g.execCommand("copy"), g.body.removeChild(b);
|
|
1041
|
-
}
|
|
1042
|
-
l(t.id), q !== null && window.clearTimeout(q), q = window.setTimeout(() => {
|
|
1043
|
-
l((g) => g === t.id ? null : g), q = null;
|
|
1044
|
-
}, 1400);
|
|
1045
|
-
} catch (g) {
|
|
1046
|
-
pt.warn("Timeline entry could not be copied:", g);
|
|
1047
|
-
}
|
|
1048
|
-
};
|
|
1049
|
-
te(() => {
|
|
1050
|
-
q !== null && window.clearTimeout(q);
|
|
1051
|
-
}), ge(() => {
|
|
1052
|
-
if (!h) return;
|
|
1053
|
-
const t = new ResizeObserver((c) => {
|
|
1054
|
-
for (const o of c) j(o.contentRect.width);
|
|
1055
|
-
});
|
|
1056
|
-
t.observe(h), te(() => t.disconnect());
|
|
1057
|
-
});
|
|
1058
|
-
const Ae = K(() => [{
|
|
1059
|
-
id: "select",
|
|
1060
|
-
icon: () => i(An, {
|
|
1061
|
-
get class() {
|
|
1062
|
-
return m.notificationActionIcon;
|
|
1063
|
-
}
|
|
1064
|
-
}),
|
|
1065
|
-
label: () => n("Select multiple notifications"),
|
|
1066
|
-
disabled: () => V().length === 0,
|
|
1067
|
-
onSelect: Ut
|
|
1068
|
-
}, {
|
|
1069
|
-
id: "mark-read",
|
|
1070
|
-
icon: () => i(xn, {
|
|
1071
|
-
get class() {
|
|
1072
|
-
return m.notificationActionIcon;
|
|
1073
|
-
}
|
|
1074
|
-
}),
|
|
1075
|
-
label: () => n("Mark all as read"),
|
|
1076
|
-
disabled: () => p() === 0,
|
|
1077
|
-
onSelect: () => Pe()
|
|
1078
|
-
}, {
|
|
1079
|
-
id: "clear",
|
|
1080
|
-
icon: () => i(Ne, {
|
|
1081
|
-
get class() {
|
|
1082
|
-
return m.notificationActionIcon;
|
|
1083
|
-
}
|
|
1084
|
-
}),
|
|
1085
|
-
label: () => n("Clear all notifications"),
|
|
1086
|
-
disabled: () => e.notificationTimeline().length === 0,
|
|
1087
|
-
onSelect: Lt
|
|
1088
|
-
}]), We = K(() => Li(F(), Ae().length, Ao, xo)), jt = K(() => {
|
|
1089
|
-
const t = Ae();
|
|
1090
|
-
return t.slice(0, t.length - We());
|
|
1091
|
-
}), qe = K(() => {
|
|
1092
|
-
const t = Ae();
|
|
1093
|
-
return t.slice(t.length - We());
|
|
1094
|
-
}), Yt = (t) => {
|
|
1095
|
-
if (t.preventDefault(), t.stopPropagation(), w.state() !== null) {
|
|
1096
|
-
w.close();
|
|
1097
|
-
return;
|
|
1098
|
-
}
|
|
1099
|
-
w.openWithPlacement(qn(t.currentTarget, {
|
|
1100
|
-
horizontal: "right"
|
|
1101
|
-
}), qe().map((c) => ({
|
|
1102
|
-
label: c.label(),
|
|
1103
|
-
icon: c.icon(),
|
|
1104
|
-
disabled: c.disabled(),
|
|
1105
|
-
onSelect: c.onSelect
|
|
1106
|
-
})));
|
|
1107
|
-
};
|
|
1108
|
-
return (() => {
|
|
1109
|
-
var t = yo(), c = t.firstChild;
|
|
1110
|
-
return t.$$keydown = Fe, t.$$click = Fe, f(c, i(Re.Header, {
|
|
1111
|
-
get class() {
|
|
1112
|
-
return m.notificationPanelHeader;
|
|
1113
|
-
},
|
|
1114
|
-
ref: (o) => h = o,
|
|
1115
|
-
get children() {
|
|
1116
|
-
return [i(yt, {
|
|
1117
|
-
type: "button",
|
|
1118
|
-
get class() {
|
|
1119
|
-
return m.notificationPanelTitleWrap;
|
|
1120
|
-
},
|
|
1121
|
-
"data-tour-target": "notifications-settings",
|
|
1122
|
-
onClick: Qt,
|
|
1123
|
-
ref: (o) => o.setAttribute("data-desktop-menu-depth", "trigger"),
|
|
1124
|
-
get title() {
|
|
1125
|
-
return n("Notification menu");
|
|
1126
|
-
},
|
|
1127
|
-
"aria-haspopup": "menu",
|
|
1128
|
-
get children() {
|
|
1129
|
-
return [(() => {
|
|
1130
|
-
var o = bo();
|
|
1131
|
-
return f(o, () => n("Notifications")), L(() => C(o, m.notificationPanelTitle)), o;
|
|
1132
|
-
})(), i(R, {
|
|
1133
|
-
get when() {
|
|
1134
|
-
return p() > 0;
|
|
1135
|
-
},
|
|
1136
|
-
get children() {
|
|
1137
|
-
return i(ke, {
|
|
1138
|
-
tone: "danger",
|
|
1139
|
-
size: "sm",
|
|
1140
|
-
get tooltip() {
|
|
1141
|
-
return n("{count} unread", {
|
|
1142
|
-
count: p()
|
|
1143
|
-
});
|
|
1144
|
-
},
|
|
1145
|
-
get children() {
|
|
1146
|
-
return J(() => p() > 99)() ? "99+" : p();
|
|
1147
|
-
}
|
|
1148
|
-
});
|
|
1149
|
-
}
|
|
1150
|
-
})];
|
|
1151
|
-
}
|
|
1152
|
-
}), (() => {
|
|
1153
|
-
var o = So();
|
|
1154
|
-
return f(o, i(R, {
|
|
1155
|
-
get when() {
|
|
1156
|
-
return !G();
|
|
1157
|
-
},
|
|
1158
|
-
get fallback() {
|
|
1159
|
-
return i(N, {
|
|
1160
|
-
variant: "ghost",
|
|
1161
|
-
size: "sm",
|
|
1162
|
-
onClick: Ve,
|
|
1163
|
-
get title() {
|
|
1164
|
-
return n("Exit selection mode");
|
|
1165
|
-
},
|
|
1166
|
-
get children() {
|
|
1167
|
-
return n("Cancel");
|
|
1168
|
-
}
|
|
1169
|
-
});
|
|
1170
|
-
},
|
|
1171
|
-
get children() {
|
|
1172
|
-
return [i(de, {
|
|
1173
|
-
get each() {
|
|
1174
|
-
return jt();
|
|
1175
|
-
},
|
|
1176
|
-
children: (g) => i(N, {
|
|
1177
|
-
variant: "ghost",
|
|
1178
|
-
size: "sm",
|
|
1179
|
-
iconOnly: !0,
|
|
1180
|
-
get onClick() {
|
|
1181
|
-
return g.onSelect;
|
|
1182
|
-
},
|
|
1183
|
-
get disabled() {
|
|
1184
|
-
return g.disabled();
|
|
1185
|
-
},
|
|
1186
|
-
get title() {
|
|
1187
|
-
return g.label();
|
|
1188
|
-
},
|
|
1189
|
-
get "aria-label"() {
|
|
1190
|
-
return g.label();
|
|
1191
|
-
},
|
|
1192
|
-
get children() {
|
|
1193
|
-
return g.icon();
|
|
1194
|
-
}
|
|
1195
|
-
})
|
|
1196
|
-
}), i(R, {
|
|
1197
|
-
get when() {
|
|
1198
|
-
return qe().length > 0;
|
|
1199
|
-
},
|
|
1200
|
-
get children() {
|
|
1201
|
-
return i(N, {
|
|
1202
|
-
variant: "ghost",
|
|
1203
|
-
size: "sm",
|
|
1204
|
-
iconOnly: !0,
|
|
1205
|
-
onClick: Yt,
|
|
1206
|
-
ref: (g) => g.setAttribute("data-desktop-menu-depth", "trigger"),
|
|
1207
|
-
get title() {
|
|
1208
|
-
return n("More actions");
|
|
1209
|
-
},
|
|
1210
|
-
get "aria-label"() {
|
|
1211
|
-
return n("More actions");
|
|
1212
|
-
},
|
|
1213
|
-
get children() {
|
|
1214
|
-
return i(En, {
|
|
1215
|
-
get class() {
|
|
1216
|
-
return m.notificationActionIcon;
|
|
1217
|
-
}
|
|
1218
|
-
});
|
|
1219
|
-
}
|
|
1220
|
-
});
|
|
1221
|
-
}
|
|
1222
|
-
})];
|
|
1223
|
-
}
|
|
1224
|
-
})), L(() => C(o, m.notificationPanelActions)), o;
|
|
1225
|
-
})()];
|
|
1226
|
-
}
|
|
1227
|
-
}), null), f(c, i(R, {
|
|
1228
|
-
get when() {
|
|
1229
|
-
return G();
|
|
1230
|
-
},
|
|
1231
|
-
get children() {
|
|
1232
|
-
var o = ko(), g = o.firstChild;
|
|
1233
|
-
return f(g, () => n("{count} selected", {
|
|
1234
|
-
count: ae()
|
|
1235
|
-
})), f(o, i(N, {
|
|
1236
|
-
variant: "ghost",
|
|
1237
|
-
size: "sm",
|
|
1238
|
-
onClick: Ht,
|
|
1239
|
-
get disabled() {
|
|
1240
|
-
return V().length === 0 || ae() === V().length;
|
|
1241
|
-
},
|
|
1242
|
-
get title() {
|
|
1243
|
-
return n("Select all visible");
|
|
1244
|
-
},
|
|
1245
|
-
get children() {
|
|
1246
|
-
return n("Select all");
|
|
1247
|
-
}
|
|
1248
|
-
}), null), f(o, i(N, {
|
|
1249
|
-
variant: "ghost",
|
|
1250
|
-
size: "sm",
|
|
1251
|
-
onClick: () => Ue(!0),
|
|
1252
|
-
get disabled() {
|
|
1253
|
-
return ae() === 0;
|
|
1254
|
-
},
|
|
1255
|
-
get title() {
|
|
1256
|
-
return n("Pin selected");
|
|
1257
|
-
},
|
|
1258
|
-
get children() {
|
|
1259
|
-
return n("Pin");
|
|
1260
|
-
}
|
|
1261
|
-
}), null), f(o, i(N, {
|
|
1262
|
-
variant: "ghost",
|
|
1263
|
-
size: "sm",
|
|
1264
|
-
onClick: () => Ue(!1),
|
|
1265
|
-
get disabled() {
|
|
1266
|
-
return ae() === 0;
|
|
1267
|
-
},
|
|
1268
|
-
get title() {
|
|
1269
|
-
return n("Unpin selected");
|
|
1270
|
-
},
|
|
1271
|
-
get children() {
|
|
1272
|
-
return n("Unpin");
|
|
1273
|
-
}
|
|
1274
|
-
}), null), f(o, i(N, {
|
|
1275
|
-
variant: "ghost",
|
|
1276
|
-
size: "sm",
|
|
1277
|
-
onClick: Wt,
|
|
1278
|
-
get disabled() {
|
|
1279
|
-
return ae() === 0;
|
|
1280
|
-
},
|
|
1281
|
-
get title() {
|
|
1282
|
-
return n("Delete selected");
|
|
1283
|
-
},
|
|
1284
|
-
get leadingIcon() {
|
|
1285
|
-
return i(Ne, {
|
|
1286
|
-
get class() {
|
|
1287
|
-
return m.notificationActionIcon;
|
|
1288
|
-
}
|
|
1289
|
-
});
|
|
1290
|
-
},
|
|
1291
|
-
get children() {
|
|
1292
|
-
return n("Delete");
|
|
1293
|
-
}
|
|
1294
|
-
}), null), L((b) => {
|
|
1295
|
-
var D = m.bulkActionBar, H = n("Bulk actions"), Y = m.bulkActionCount;
|
|
1296
|
-
return D !== b.e && C(o, b.e = D), H !== b.t && X(o, "aria-label", b.t = H), Y !== b.a && C(g, b.a = Y), b;
|
|
1297
|
-
}, {
|
|
1298
|
-
e: void 0,
|
|
1299
|
-
t: void 0,
|
|
1300
|
-
a: void 0
|
|
1301
|
-
}), o;
|
|
1302
|
-
}
|
|
1303
|
-
}), null), f(c, i(gi, {
|
|
1304
|
-
get class() {
|
|
1305
|
-
return m.filterBar;
|
|
1306
|
-
},
|
|
1307
|
-
get searchValue() {
|
|
1308
|
-
return k();
|
|
1309
|
-
},
|
|
1310
|
-
onSearchInput: u,
|
|
1311
|
-
get searchPlaceholder() {
|
|
1312
|
-
return n("Search notifications…");
|
|
1313
|
-
},
|
|
1314
|
-
get dateRange() {
|
|
1315
|
-
return P();
|
|
1316
|
-
},
|
|
1317
|
-
onDateRangeChange: s,
|
|
1318
|
-
dateRangeAlign: "end",
|
|
1319
|
-
get children() {
|
|
1320
|
-
return [i(N, {
|
|
1321
|
-
variant: "ghost",
|
|
1322
|
-
size: "sm",
|
|
1323
|
-
iconOnly: !0,
|
|
1324
|
-
get active() {
|
|
1325
|
-
return I().size > 0;
|
|
1326
|
-
},
|
|
1327
|
-
onClick: $t,
|
|
1328
|
-
ref: (o) => o.setAttribute("data-desktop-menu-depth", "trigger"),
|
|
1329
|
-
get title() {
|
|
1330
|
-
return J(() => I().size === 0)() ? n("Filter by tone") : n("Tone filter: {tones}", {
|
|
1331
|
-
tones: Rt()
|
|
1332
|
-
});
|
|
1333
|
-
},
|
|
1334
|
-
get children() {
|
|
1335
|
-
return i(Dn, {
|
|
1336
|
-
get class() {
|
|
1337
|
-
return m.notificationActionIcon;
|
|
1338
|
-
}
|
|
1339
|
-
});
|
|
1340
|
-
}
|
|
1341
|
-
}), i(N, {
|
|
1342
|
-
variant: "ghost",
|
|
1343
|
-
size: "sm",
|
|
1344
|
-
iconOnly: !0,
|
|
1345
|
-
get active() {
|
|
1346
|
-
return x().size > 0 || v().size > 0 || z();
|
|
1347
|
-
},
|
|
1348
|
-
onClick: Mt,
|
|
1349
|
-
ref: (o) => o.setAttribute("data-desktop-menu-depth", "trigger"),
|
|
1350
|
-
get title() {
|
|
1351
|
-
return n("Advanced filters (source, priority, regex)");
|
|
1352
|
-
},
|
|
1353
|
-
get children() {
|
|
1354
|
-
return i(Pn, {
|
|
1355
|
-
get class() {
|
|
1356
|
-
return m.notificationActionIcon;
|
|
1357
|
-
}
|
|
1358
|
-
});
|
|
1359
|
-
}
|
|
1360
|
-
}), i(R, {
|
|
1361
|
-
get when() {
|
|
1362
|
-
return re();
|
|
1363
|
-
},
|
|
1364
|
-
get children() {
|
|
1365
|
-
return i(N, {
|
|
1366
|
-
variant: "ghost",
|
|
1367
|
-
size: "sm",
|
|
1368
|
-
onClick: Et,
|
|
1369
|
-
get title() {
|
|
1370
|
-
return n("Clear filters");
|
|
1371
|
-
},
|
|
1372
|
-
get children() {
|
|
1373
|
-
return n("Clear");
|
|
1374
|
-
}
|
|
1375
|
-
});
|
|
1376
|
-
}
|
|
1377
|
-
})];
|
|
1378
|
-
}
|
|
1379
|
-
}), null), f(c, i(wt, {
|
|
1380
|
-
get viewportClass() {
|
|
1381
|
-
return m.notificationTimeline;
|
|
1382
|
-
},
|
|
1383
|
-
"data-tour-target": "notifications-timeline",
|
|
1384
|
-
get children() {
|
|
1385
|
-
return i(R, {
|
|
1386
|
-
get when() {
|
|
1387
|
-
return V().length > 0;
|
|
1388
|
-
},
|
|
1389
|
-
get fallback() {
|
|
1390
|
-
return (() => {
|
|
1391
|
-
var o = Co();
|
|
1392
|
-
return f(o, (() => {
|
|
1393
|
-
var g = J(() => !!re());
|
|
1394
|
-
return () => g() ? n("No notifications match the current filter.") : n("No notifications yet.");
|
|
1395
|
-
})()), L(() => C(o, m.notificationEmpty)), o;
|
|
1396
|
-
})();
|
|
1397
|
-
},
|
|
1398
|
-
get children() {
|
|
1399
|
-
return [i(R, {
|
|
1400
|
-
get when() {
|
|
1401
|
-
return oe().length > 0;
|
|
1402
|
-
},
|
|
1403
|
-
get children() {
|
|
1404
|
-
return i(Re.Header, {
|
|
1405
|
-
get class() {
|
|
1406
|
-
return m.notificationItemTop;
|
|
1407
|
-
},
|
|
1408
|
-
get children() {
|
|
1409
|
-
var o = To();
|
|
1410
|
-
return o.firstChild, f(o, () => n("Pinned ({count})", {
|
|
1411
|
-
count: oe().length
|
|
1412
|
-
}), null), L(() => C(o, m.notificationSourceLabel)), o;
|
|
1413
|
-
}
|
|
1414
|
-
});
|
|
1415
|
-
}
|
|
1416
|
-
}), i(de, {
|
|
1417
|
-
get each() {
|
|
1418
|
-
return be();
|
|
1419
|
-
},
|
|
1420
|
-
children: (o) => {
|
|
1421
|
-
if (o.type === "group" && o.groupItems) {
|
|
1422
|
-
const g = () => he().has(o.id);
|
|
1423
|
-
return i(Wn, {
|
|
1424
|
-
get class() {
|
|
1425
|
-
return m.notificationGroup;
|
|
1426
|
-
},
|
|
1427
|
-
get toggleClass() {
|
|
1428
|
-
return m.notificationGroupToggle;
|
|
1429
|
-
},
|
|
1430
|
-
get open() {
|
|
1431
|
-
return g();
|
|
1432
|
-
},
|
|
1433
|
-
onToggle: () => Se(o.id),
|
|
1434
|
-
get bodyClass() {
|
|
1435
|
-
return m.notificationGroupBody;
|
|
1436
|
-
},
|
|
1437
|
-
get title() {
|
|
1438
|
-
return [(() => {
|
|
1439
|
-
var b = mt();
|
|
1440
|
-
return L(() => C(b, `${m.notificationToneDot} ${ht(o.groupTone ?? "info")}`)), b;
|
|
1441
|
-
})(), (() => {
|
|
1442
|
-
var b = mt();
|
|
1443
|
-
return f(b, () => n('{count} from "{source}"', {
|
|
1444
|
-
count: o.groupCount ?? 0,
|
|
1445
|
-
source: ee(o.groupSource ?? "").label
|
|
1446
|
-
})), L(() => C(b, m.notificationItemMessage)), b;
|
|
1447
|
-
})()];
|
|
1448
|
-
},
|
|
1449
|
-
get children() {
|
|
1450
|
-
return i(de, {
|
|
1451
|
-
get each() {
|
|
1452
|
-
return o.groupItems;
|
|
1453
|
-
},
|
|
1454
|
-
children: (b) => Qe(b)
|
|
1455
|
-
});
|
|
1456
|
-
}
|
|
1457
|
-
});
|
|
1458
|
-
}
|
|
1459
|
-
return o.type === "entry" && o.entry ? Qe(o.entry) : null;
|
|
1460
|
-
}
|
|
1461
|
-
})];
|
|
1462
|
-
}
|
|
1463
|
-
});
|
|
1464
|
-
}
|
|
1465
|
-
}), null), f(c, i(zi, {
|
|
1466
|
-
definition: Fi
|
|
1467
|
-
}), null), L((o) => {
|
|
1468
|
-
var g = m.rightRail, b = m.notificationPanel;
|
|
1469
|
-
return g !== o.e && C(t, o.e = g), b !== o.t && C(c, o.t = b), o;
|
|
1470
|
-
}, {
|
|
1471
|
-
e: void 0,
|
|
1472
|
-
t: void 0
|
|
1473
|
-
}), t;
|
|
1474
|
-
})();
|
|
1475
|
-
function Qe(t) {
|
|
1476
|
-
const c = () => ue(t);
|
|
1477
|
-
return (() => {
|
|
1478
|
-
var o = _o(), g = o.firstChild, b = g.firstChild, D = b.nextSibling, H = g.nextSibling, Y = H.nextSibling, xe = Y.firstChild;
|
|
1479
|
-
return o.$$contextmenu = (_) => {
|
|
1480
|
-
Ft(_, t);
|
|
1481
|
-
}, f(g, i(R, {
|
|
1482
|
-
get when() {
|
|
1483
|
-
return G();
|
|
1484
|
-
},
|
|
1485
|
-
get children() {
|
|
1486
|
-
return i(ti, {
|
|
1487
|
-
get class() {
|
|
1488
|
-
return m.notificationItemCheckbox;
|
|
1489
|
-
},
|
|
1490
|
-
get checked() {
|
|
1491
|
-
return d().has(t.id);
|
|
1492
|
-
},
|
|
1493
|
-
onChange: () => Vt(t.id),
|
|
1494
|
-
get ariaLabel() {
|
|
1495
|
-
return n("Select notification");
|
|
1496
|
-
}
|
|
1497
|
-
});
|
|
1498
|
-
}
|
|
1499
|
-
}), b), f(D, () => Io(t.createdAt)), f(g, i(R, {
|
|
1500
|
-
keyed: !0,
|
|
1501
|
-
get when() {
|
|
1502
|
-
return c();
|
|
1503
|
-
},
|
|
1504
|
-
children: (_) => i(N, {
|
|
1505
|
-
variant: "ghost",
|
|
1506
|
-
size: "2xs",
|
|
1507
|
-
iconOnly: !0,
|
|
1508
|
-
onClick: () => {
|
|
1509
|
-
zt(t);
|
|
1510
|
-
},
|
|
1511
|
-
get title() {
|
|
1512
|
-
return n("Open {vendor} ({code})", {
|
|
1513
|
-
vendor: _.helpers.docsLinkLabel,
|
|
1514
|
-
code: _.helpers.formatCode(_.code)
|
|
1515
|
-
});
|
|
1516
|
-
},
|
|
1517
|
-
get "aria-label"() {
|
|
1518
|
-
return n("Open {vendor} ({code})", {
|
|
1519
|
-
vendor: _.helpers.docsLinkLabel,
|
|
1520
|
-
code: _.helpers.formatCode(_.code)
|
|
1521
|
-
});
|
|
1522
|
-
},
|
|
1523
|
-
get leadingIcon() {
|
|
1524
|
-
return i(On, {
|
|
1525
|
-
get class() {
|
|
1526
|
-
return m.notificationActionIcon;
|
|
1527
|
-
}
|
|
1528
|
-
});
|
|
1529
|
-
}
|
|
1530
|
-
})
|
|
1531
|
-
}), null), f(g, i(N, {
|
|
1532
|
-
variant: "ghost",
|
|
1533
|
-
size: "2xs",
|
|
1534
|
-
iconOnly: !0,
|
|
1535
|
-
onClick: () => Bt(t),
|
|
1536
|
-
get title() {
|
|
1537
|
-
return n("Show as toast again");
|
|
1538
|
-
},
|
|
1539
|
-
get "aria-label"() {
|
|
1540
|
-
return n("Show as toast again");
|
|
1541
|
-
},
|
|
1542
|
-
get leadingIcon() {
|
|
1543
|
-
return i(Mn, {
|
|
1544
|
-
get class() {
|
|
1545
|
-
return m.notificationActionIcon;
|
|
1546
|
-
}
|
|
1547
|
-
});
|
|
1548
|
-
}
|
|
1549
|
-
}), null), f(g, i(N, {
|
|
1550
|
-
variant: "ghost",
|
|
1551
|
-
size: "2xs",
|
|
1552
|
-
iconOnly: !0,
|
|
1553
|
-
get class() {
|
|
1554
|
-
return J(() => a() === t.id)() ? m.notificationItemCopyDone : void 0;
|
|
1555
|
-
},
|
|
1556
|
-
onClick: () => {
|
|
1557
|
-
Ge(t);
|
|
1558
|
-
},
|
|
1559
|
-
get title() {
|
|
1560
|
-
return J(() => a() === t.id)() ? n("Copied") : n("Copy log message");
|
|
1561
|
-
},
|
|
1562
|
-
get "aria-label"() {
|
|
1563
|
-
return J(() => a() === t.id)() ? n("Copied") : n("Copy log message");
|
|
1564
|
-
},
|
|
1565
|
-
get children() {
|
|
1566
|
-
return i(R, {
|
|
1567
|
-
get when() {
|
|
1568
|
-
return a() === t.id;
|
|
1569
|
-
},
|
|
1570
|
-
get fallback() {
|
|
1571
|
-
return i(Rn, {
|
|
1572
|
-
get class() {
|
|
1573
|
-
return m.notificationActionIcon;
|
|
1574
|
-
}
|
|
1575
|
-
});
|
|
1576
|
-
},
|
|
1577
|
-
get children() {
|
|
1578
|
-
return i(Nn, {
|
|
1579
|
-
get class() {
|
|
1580
|
-
return m.notificationActionIcon;
|
|
1581
|
-
}
|
|
1582
|
-
});
|
|
1583
|
-
}
|
|
1584
|
-
});
|
|
1585
|
-
}
|
|
1586
|
-
}), null), f(g, i(N, {
|
|
1587
|
-
variant: "ghost",
|
|
1588
|
-
size: "2xs",
|
|
1589
|
-
iconOnly: !0,
|
|
1590
|
-
onClick: () => {
|
|
1591
|
-
Le(t.id);
|
|
1592
|
-
},
|
|
1593
|
-
get title() {
|
|
1594
|
-
return n("Remove notification");
|
|
1595
|
-
},
|
|
1596
|
-
get "aria-label"() {
|
|
1597
|
-
return n("Remove notification");
|
|
1598
|
-
},
|
|
1599
|
-
get leadingIcon() {
|
|
1600
|
-
return i($n, {
|
|
1601
|
-
get class() {
|
|
1602
|
-
return m.notificationActionIcon;
|
|
1603
|
-
}
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
}), null), f(H, () => t.message), f(xe, () => ee(t.source).label), f(Y, i(R, {
|
|
1607
|
-
get when() {
|
|
1608
|
-
return t.priority === "urgent";
|
|
1609
|
-
},
|
|
1610
|
-
get children() {
|
|
1611
|
-
return i(ke, {
|
|
1612
|
-
tone: "danger",
|
|
1613
|
-
size: "sm",
|
|
1614
|
-
children: "urgent"
|
|
1615
|
-
});
|
|
1616
|
-
}
|
|
1617
|
-
}), null), f(Y, i(R, {
|
|
1618
|
-
get when() {
|
|
1619
|
-
return t.priority === "silent";
|
|
1620
|
-
},
|
|
1621
|
-
get children() {
|
|
1622
|
-
return i(ke, {
|
|
1623
|
-
tone: "neutral",
|
|
1624
|
-
size: "sm",
|
|
1625
|
-
get icon() {
|
|
1626
|
-
return i($e, {
|
|
1627
|
-
get class() {
|
|
1628
|
-
return m.priorityBadgeIcon;
|
|
1629
|
-
}
|
|
1630
|
-
});
|
|
1631
|
-
},
|
|
1632
|
-
get tooltip() {
|
|
1633
|
-
return n("Silent — timeline only");
|
|
1634
|
-
},
|
|
1635
|
-
children: "silent"
|
|
1636
|
-
});
|
|
1637
|
-
}
|
|
1638
|
-
}), null), f(Y, i(R, {
|
|
1639
|
-
get when() {
|
|
1640
|
-
return Me(t.source);
|
|
1641
|
-
},
|
|
1642
|
-
get children() {
|
|
1643
|
-
return i(ke, {
|
|
1644
|
-
tone: "warning",
|
|
1645
|
-
size: "sm",
|
|
1646
|
-
get tooltip() {
|
|
1647
|
-
return n("Source muted");
|
|
1648
|
-
},
|
|
1649
|
-
children: "muted"
|
|
1650
|
-
});
|
|
1651
|
-
}
|
|
1652
|
-
}), null), L((_) => {
|
|
1653
|
-
var je = `${m.notificationItem} ${G() && d().has(t.id) ? m.notificationItemSelected : ""}`, Ye = m.notificationItemTop, Ke = `${m.notificationToneDot} ${ht(t.tone)}`, Je = m.notificationItemTime, Xe = new Date(t.createdAt).toISOString(), Ze = wo(t.createdAt), et = m.notificationItemMessage, tt = m.notificationItemMeta, nt = m.notificationSourceLabel, it = ee(t.source).description;
|
|
1654
|
-
return je !== _.e && C(o, _.e = je), Ye !== _.t && C(g, _.t = Ye), Ke !== _.a && C(b, _.a = Ke), Je !== _.o && C(D, _.o = Je), Xe !== _.i && X(D, "datetime", _.i = Xe), Ze !== _.n && X(D, "title", _.n = Ze), et !== _.s && C(H, _.s = et), tt !== _.h && C(Y, _.h = tt), nt !== _.r && C(xe, _.r = nt), it !== _.d && X(xe, "title", _.d = it), _;
|
|
1655
|
-
}, {
|
|
1656
|
-
e: void 0,
|
|
1657
|
-
t: void 0,
|
|
1658
|
-
a: void 0,
|
|
1659
|
-
o: void 0,
|
|
1660
|
-
i: void 0,
|
|
1661
|
-
n: void 0,
|
|
1662
|
-
s: void 0,
|
|
1663
|
-
h: void 0,
|
|
1664
|
-
r: void 0,
|
|
1665
|
-
d: void 0
|
|
1666
|
-
}), o;
|
|
1667
|
-
})();
|
|
1668
|
-
}
|
|
1669
|
-
}
|
|
1670
|
-
Tt(["click", "keydown", "contextmenu"]);
|
|
1671
|
-
const Eo = "vk_center_5Vlx7", Do = "vk_header_vo883", Po = "vk_title_JpYEU", Oo = "vk_actions_ErJgC", Mo = "vk_actionIcon_-JWZ1", No = "vk_list_YLy-l", Ro = "vk_card_-fwSa", $o = "vk_cardIcon_RBj-W", Bo = "vk_cardBody_z8pxK", zo = "vk_cardMessage_aN-yw", Fo = "vk_cardMeta_XQ3my", Lo = "vk_cardButtons_1PXZE", Vo = "vk_cardSource_Z8c0M", Uo = "vk_cardTime_OXbCq", Ho = "vk_cardActions_QOc1i", M = {
|
|
1672
|
-
center: Eo,
|
|
1673
|
-
header: Do,
|
|
1674
|
-
title: Po,
|
|
1675
|
-
actions: Oo,
|
|
1676
|
-
actionIcon: Mo,
|
|
1677
|
-
list: No,
|
|
1678
|
-
card: Ro,
|
|
1679
|
-
cardIcon: $o,
|
|
1680
|
-
cardBody: Bo,
|
|
1681
|
-
cardMessage: zo,
|
|
1682
|
-
cardMeta: Fo,
|
|
1683
|
-
cardButtons: Lo,
|
|
1684
|
-
cardSource: Vo,
|
|
1685
|
-
cardTime: Uo,
|
|
1686
|
-
cardActions: Ho
|
|
1687
|
-
};
|
|
1688
|
-
var Go = /* @__PURE__ */ U("<h3>"), Wo = /* @__PURE__ */ U("<div>"), qo = /* @__PURE__ */ U("<section data-notification-center>"), Qo = /* @__PURE__ */ U("<div data-notification-card-actions>"), jo = /* @__PURE__ */ U("<article><span aria-hidden=true></span><div><p></p><div><span></span><time></time></div></div><div>");
|
|
1689
|
-
const Yo = {
|
|
1690
|
-
info: Un,
|
|
1691
|
-
warning: Vn,
|
|
1692
|
-
error: Ln,
|
|
1693
|
-
success: Fn
|
|
1694
|
-
};
|
|
1695
|
-
function Ko(e) {
|
|
1696
|
-
return new Intl.DateTimeFormat(we(), {
|
|
1697
|
-
hour: "2-digit",
|
|
1698
|
-
minute: "2-digit"
|
|
1699
|
-
}).format(new Date(e));
|
|
1700
|
-
}
|
|
1701
|
-
function Jo(e) {
|
|
1702
|
-
return new Intl.DateTimeFormat(we(), {
|
|
1703
|
-
year: "numeric",
|
|
1704
|
-
month: "short",
|
|
1705
|
-
day: "2-digit",
|
|
1706
|
-
hour: "2-digit",
|
|
1707
|
-
minute: "2-digit",
|
|
1708
|
-
second: "2-digit"
|
|
1709
|
-
}).format(new Date(e));
|
|
1710
|
-
}
|
|
1711
|
-
function Xo(e) {
|
|
1712
|
-
const [r, a] = $([]), [l, p] = $(Q.get().doNotDisturb), S = It();
|
|
1713
|
-
ge(() => {
|
|
1714
|
-
const y = fn(a);
|
|
1715
|
-
te(y);
|
|
1716
|
-
}), Be(Q, () => {
|
|
1717
|
-
p(Q.get().doNotDisturb);
|
|
1718
|
-
});
|
|
1719
|
-
const k = K(() => [...r()].sort((y, d) => d.createdAt - y.createdAt)), u = (y) => Yo[y], P = () => {
|
|
1720
|
-
const y = Q.get();
|
|
1721
|
-
Q.update({
|
|
1722
|
-
...y,
|
|
1723
|
-
doNotDisturb: !y.doNotDisturb
|
|
1724
|
-
}).catch((d) => {
|
|
1725
|
-
Z(mn, {
|
|
1726
|
-
cause: d
|
|
1727
|
-
});
|
|
1728
|
-
});
|
|
1729
|
-
}, s = () => {
|
|
1730
|
-
_t("notification");
|
|
1731
|
-
}, I = (y) => {
|
|
1732
|
-
const d = [...y.actions ?? []], T = ue(y);
|
|
1733
|
-
if (T) {
|
|
1734
|
-
const x = T.helpers.docsUrl(T.code);
|
|
1735
|
-
if (x) {
|
|
1736
|
-
const A = `${T.helpers.formatCode(T.code)} ${T.helpers.docsLinkLabel}`;
|
|
1737
|
-
d.some((v) => v.label === A) || d.push({
|
|
1738
|
-
label: A,
|
|
1739
|
-
onClick: () => ie(x)
|
|
1740
|
-
});
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
1743
|
-
return d;
|
|
1744
|
-
}, O = (y) => {
|
|
1745
|
-
var T;
|
|
1746
|
-
const d = y.message.trim();
|
|
1747
|
-
d && ((T = navigator.clipboard) == null || T.writeText(d).catch(() => {
|
|
1748
|
-
}));
|
|
1749
|
-
}, G = (y, d, T) => {
|
|
1750
|
-
if (S.state() !== null) {
|
|
1751
|
-
S.close();
|
|
1752
|
-
return;
|
|
1753
|
-
}
|
|
1754
|
-
const x = ee(T.source), A = Me(x.id), v = ue(T);
|
|
1755
|
-
S.open(y, d, [{
|
|
1756
|
-
label: n("Copy log message"),
|
|
1757
|
-
onSelect: () => O(T)
|
|
1758
|
-
}, ...v ? [{
|
|
1759
|
-
label: n("Open {vendor} ({code})", {
|
|
1760
|
-
vendor: v.helpers.docsLinkLabel,
|
|
1761
|
-
code: v.helpers.formatCode(v.code)
|
|
1762
|
-
}),
|
|
1763
|
-
onSelect: () => ie(v.helpers.docsUrl(v.code))
|
|
1764
|
-
}] : [], {
|
|
1765
|
-
type: "separator"
|
|
1766
|
-
}, {
|
|
1767
|
-
label: A ? n('Unmute "{source}"', {
|
|
1768
|
-
source: x.label
|
|
1769
|
-
}) : n('Mute "{source}"', {
|
|
1770
|
-
source: x.label
|
|
1771
|
-
}),
|
|
1772
|
-
onSelect: () => {
|
|
1773
|
-
kt(x.id, !A);
|
|
1774
|
-
}
|
|
1775
|
-
}, {
|
|
1776
|
-
type: "separator"
|
|
1777
|
-
}, {
|
|
1778
|
-
label: n("Remove notification"),
|
|
1779
|
-
danger: !0,
|
|
1780
|
-
onSelect: () => Oe(T.id)
|
|
1781
|
-
}, {
|
|
1782
|
-
label: n('Remove all from "{source}"', {
|
|
1783
|
-
source: x.label
|
|
1784
|
-
}),
|
|
1785
|
-
danger: !0,
|
|
1786
|
-
onSelect: () => St(x.id)
|
|
1787
|
-
}]);
|
|
1788
|
-
};
|
|
1789
|
-
return (() => {
|
|
1790
|
-
var y = qo();
|
|
1791
|
-
return f(y, i(Re.Header, {
|
|
1792
|
-
get class() {
|
|
1793
|
-
return M.header;
|
|
1794
|
-
},
|
|
1795
|
-
get children() {
|
|
1796
|
-
return [(() => {
|
|
1797
|
-
var d = Go();
|
|
1798
|
-
return f(d, () => n("Notifications"), null), f(d, i(R, {
|
|
1799
|
-
get when() {
|
|
1800
|
-
return k().length > 0;
|
|
1801
|
-
},
|
|
1802
|
-
get children() {
|
|
1803
|
-
return ` (${k().length})`;
|
|
1804
|
-
}
|
|
1805
|
-
}), null), L(() => C(d, M.title)), d;
|
|
1806
|
-
})(), (() => {
|
|
1807
|
-
var d = Wo();
|
|
1808
|
-
return f(d, i(N, {
|
|
1809
|
-
variant: "ghost",
|
|
1810
|
-
size: "sm",
|
|
1811
|
-
iconOnly: !0,
|
|
1812
|
-
onClick: () => bt(),
|
|
1813
|
-
get disabled() {
|
|
1814
|
-
return k().length === 0;
|
|
1815
|
-
},
|
|
1816
|
-
get title() {
|
|
1817
|
-
return n("Clear all notifications");
|
|
1818
|
-
},
|
|
1819
|
-
get "aria-label"() {
|
|
1820
|
-
return n("Clear all notifications");
|
|
1821
|
-
},
|
|
1822
|
-
get children() {
|
|
1823
|
-
return i(Ne, {
|
|
1824
|
-
get class() {
|
|
1825
|
-
return M.actionIcon;
|
|
1826
|
-
}
|
|
1827
|
-
});
|
|
1828
|
-
}
|
|
1829
|
-
}), null), f(d, i(N, {
|
|
1830
|
-
variant: "ghost",
|
|
1831
|
-
size: "sm",
|
|
1832
|
-
iconOnly: !0,
|
|
1833
|
-
get active() {
|
|
1834
|
-
return l();
|
|
1835
|
-
},
|
|
1836
|
-
onClick: P,
|
|
1837
|
-
get title() {
|
|
1838
|
-
return J(() => !!l())() ? n("Disable Do Not Disturb") : n("Enable Do Not Disturb");
|
|
1839
|
-
},
|
|
1840
|
-
get "aria-label"() {
|
|
1841
|
-
return J(() => !!l())() ? n("Disable Do Not Disturb") : n("Enable Do Not Disturb");
|
|
1842
|
-
},
|
|
1843
|
-
get children() {
|
|
1844
|
-
return i(R, {
|
|
1845
|
-
get when() {
|
|
1846
|
-
return l();
|
|
1847
|
-
},
|
|
1848
|
-
get fallback() {
|
|
1849
|
-
return i(Ct, {
|
|
1850
|
-
get class() {
|
|
1851
|
-
return M.actionIcon;
|
|
1852
|
-
}
|
|
1853
|
-
});
|
|
1854
|
-
},
|
|
1855
|
-
get children() {
|
|
1856
|
-
return i($e, {
|
|
1857
|
-
get class() {
|
|
1858
|
-
return M.actionIcon;
|
|
1859
|
-
}
|
|
1860
|
-
});
|
|
1861
|
-
}
|
|
1862
|
-
});
|
|
1863
|
-
}
|
|
1864
|
-
}), null), f(d, i(N, {
|
|
1865
|
-
variant: "ghost",
|
|
1866
|
-
size: "sm",
|
|
1867
|
-
iconOnly: !0,
|
|
1868
|
-
onClick: s,
|
|
1869
|
-
get title() {
|
|
1870
|
-
return n("Notification settings");
|
|
1871
|
-
},
|
|
1872
|
-
get "aria-label"() {
|
|
1873
|
-
return n("Notification settings");
|
|
1874
|
-
},
|
|
1875
|
-
get children() {
|
|
1876
|
-
return i(st, {
|
|
1877
|
-
get class() {
|
|
1878
|
-
return M.actionIcon;
|
|
1879
|
-
}
|
|
1880
|
-
});
|
|
1881
|
-
}
|
|
1882
|
-
}), null), f(d, i(N, {
|
|
1883
|
-
variant: "ghost",
|
|
1884
|
-
size: "sm",
|
|
1885
|
-
iconOnly: !0,
|
|
1886
|
-
get onClick() {
|
|
1887
|
-
return e.onHide;
|
|
1888
|
-
},
|
|
1889
|
-
get title() {
|
|
1890
|
-
return n("Hide notifications");
|
|
1891
|
-
},
|
|
1892
|
-
get "aria-label"() {
|
|
1893
|
-
return n("Hide notifications");
|
|
1894
|
-
},
|
|
1895
|
-
get children() {
|
|
1896
|
-
return i(Bn, {
|
|
1897
|
-
get class() {
|
|
1898
|
-
return M.actionIcon;
|
|
1899
|
-
}
|
|
1900
|
-
});
|
|
1901
|
-
}
|
|
1902
|
-
}), null), L(() => C(d, M.actions)), d;
|
|
1903
|
-
})()];
|
|
1904
|
-
}
|
|
1905
|
-
}), null), f(y, i(R, {
|
|
1906
|
-
get when() {
|
|
1907
|
-
return k().length > 0;
|
|
1908
|
-
},
|
|
1909
|
-
get fallback() {
|
|
1910
|
-
return i(ai, {
|
|
1911
|
-
size: "sm",
|
|
1912
|
-
get title() {
|
|
1913
|
-
return n("No new notifications");
|
|
1914
|
-
}
|
|
1915
|
-
});
|
|
1916
|
-
},
|
|
1917
|
-
get children() {
|
|
1918
|
-
return i(wt, {
|
|
1919
|
-
get viewportClass() {
|
|
1920
|
-
return M.list;
|
|
1921
|
-
},
|
|
1922
|
-
get children() {
|
|
1923
|
-
return i(de, {
|
|
1924
|
-
get each() {
|
|
1925
|
-
return k();
|
|
1926
|
-
},
|
|
1927
|
-
children: (d) => {
|
|
1928
|
-
const T = ee(d.source), x = I(d);
|
|
1929
|
-
return (() => {
|
|
1930
|
-
var A = jo(), v = A.firstChild, E = v.nextSibling, z = E.firstChild, B = z.nextSibling, F = B.firstChild, j = F.nextSibling, q = E.nextSibling;
|
|
1931
|
-
return A.$$contextmenu = (h) => {
|
|
1932
|
-
h.preventDefault(), G(h.clientX, h.clientY, d);
|
|
1933
|
-
}, f(v, i(Cn, {
|
|
1934
|
-
get component() {
|
|
1935
|
-
return u(d.tone);
|
|
1936
|
-
}
|
|
1937
|
-
})), f(z, () => d.message), f(F, () => n("Source: {source}", {
|
|
1938
|
-
source: T.label
|
|
1939
|
-
})), f(j, () => Ko(d.createdAt)), f(E, i(R, {
|
|
1940
|
-
get when() {
|
|
1941
|
-
return x.length > 0;
|
|
1942
|
-
},
|
|
1943
|
-
get children() {
|
|
1944
|
-
var h = Qo();
|
|
1945
|
-
return f(h, i(de, {
|
|
1946
|
-
each: x,
|
|
1947
|
-
children: (w) => i(N, {
|
|
1948
|
-
get variant() {
|
|
1949
|
-
return w.primary ? "primary" : "secondary";
|
|
1950
|
-
},
|
|
1951
|
-
size: "sm",
|
|
1952
|
-
onClick: () => w.onClick(),
|
|
1953
|
-
get children() {
|
|
1954
|
-
return w.label;
|
|
1955
|
-
}
|
|
1956
|
-
})
|
|
1957
|
-
})), L(() => C(h, M.cardButtons)), h;
|
|
1958
|
-
}
|
|
1959
|
-
}), null), f(q, i(N, {
|
|
1960
|
-
variant: "ghost",
|
|
1961
|
-
size: "sm",
|
|
1962
|
-
iconOnly: !0,
|
|
1963
|
-
onClick: (h) => {
|
|
1964
|
-
const w = h.currentTarget.getBoundingClientRect();
|
|
1965
|
-
G(w.left, w.bottom + 4, d);
|
|
1966
|
-
},
|
|
1967
|
-
get title() {
|
|
1968
|
-
return n("More actions");
|
|
1969
|
-
},
|
|
1970
|
-
get "aria-label"() {
|
|
1971
|
-
return n("More actions");
|
|
1972
|
-
},
|
|
1973
|
-
get children() {
|
|
1974
|
-
return i(st, {
|
|
1975
|
-
get class() {
|
|
1976
|
-
return M.actionIcon;
|
|
1977
|
-
}
|
|
1978
|
-
});
|
|
1979
|
-
}
|
|
1980
|
-
}), null), f(q, i(N, {
|
|
1981
|
-
variant: "ghost",
|
|
1982
|
-
size: "sm",
|
|
1983
|
-
iconOnly: !0,
|
|
1984
|
-
onClick: () => Oe(d.id),
|
|
1985
|
-
get title() {
|
|
1986
|
-
return n("Remove notification");
|
|
1987
|
-
},
|
|
1988
|
-
get "aria-label"() {
|
|
1989
|
-
return n("Remove notification");
|
|
1990
|
-
},
|
|
1991
|
-
get children() {
|
|
1992
|
-
return i(zn, {
|
|
1993
|
-
get class() {
|
|
1994
|
-
return M.actionIcon;
|
|
1995
|
-
}
|
|
1996
|
-
});
|
|
1997
|
-
}
|
|
1998
|
-
}), null), L((h) => {
|
|
1999
|
-
var w = M.card, W = M.cardIcon, V = d.tone, fe = M.cardBody, oe = M.cardMessage, me = M.cardMeta, pe = M.cardSource, he = T.description, ve = M.cardTime, be = new Date(d.createdAt).toISOString(), Se = Jo(d.createdAt), re = M.cardActions;
|
|
2000
|
-
return w !== h.e && C(A, h.e = w), W !== h.t && C(v, h.t = W), V !== h.a && X(v, "data-tone", h.a = V), fe !== h.o && C(E, h.o = fe), oe !== h.i && C(z, h.i = oe), me !== h.n && C(B, h.n = me), pe !== h.s && C(F, h.s = pe), he !== h.h && X(F, "title", h.h = he), ve !== h.r && C(j, h.r = ve), be !== h.d && X(j, "datetime", h.d = be), Se !== h.l && X(j, "title", h.l = Se), re !== h.u && C(q, h.u = re), h;
|
|
2001
|
-
}, {
|
|
2002
|
-
e: void 0,
|
|
2003
|
-
t: void 0,
|
|
2004
|
-
a: void 0,
|
|
2005
|
-
o: void 0,
|
|
2006
|
-
i: void 0,
|
|
2007
|
-
n: void 0,
|
|
2008
|
-
s: void 0,
|
|
2009
|
-
h: void 0,
|
|
2010
|
-
r: void 0,
|
|
2011
|
-
d: void 0,
|
|
2012
|
-
l: void 0,
|
|
2013
|
-
u: void 0
|
|
2014
|
-
}), A;
|
|
2015
|
-
})();
|
|
2016
|
-
}
|
|
2017
|
-
});
|
|
2018
|
-
}
|
|
2019
|
-
});
|
|
2020
|
-
}
|
|
2021
|
-
}), null), L(() => C(y, M.center)), y;
|
|
2022
|
-
})();
|
|
2023
|
-
}
|
|
2024
|
-
Tt(["contextmenu"]);
|
|
2025
|
-
const Zo = "vk_bell_tx9ag vk_buttonReset_3WpyU", er = "vk_bellIcon_w6Lmy", tr = "vk_badge_2L8Eg", nr = "vk_centerPopover_48x5p", le = {
|
|
2026
|
-
bell: Zo,
|
|
2027
|
-
bellIcon: er,
|
|
2028
|
-
badge: tr,
|
|
2029
|
-
centerPopover: nr
|
|
2030
|
-
};
|
|
2031
|
-
var ir = /* @__PURE__ */ U("<span>");
|
|
2032
|
-
function Or() {
|
|
2033
|
-
const [e, r] = $(!1), [a, l] = $(0), [p, S] = $(Q.get().doNotDisturb);
|
|
2034
|
-
let k;
|
|
2035
|
-
ge(() => {
|
|
2036
|
-
const s = vt(l);
|
|
2037
|
-
te(s);
|
|
2038
|
-
}), Be(Q, () => {
|
|
2039
|
-
S(Q.get().doNotDisturb);
|
|
2040
|
-
});
|
|
2041
|
-
const u = () => {
|
|
2042
|
-
r((s) => {
|
|
2043
|
-
const I = !s;
|
|
2044
|
-
return I && Pe(), I;
|
|
2045
|
-
});
|
|
2046
|
-
}, P = () => a() > 99 ? "99+" : String(a());
|
|
2047
|
-
return [i(yt, {
|
|
2048
|
-
ref(s) {
|
|
2049
|
-
var I = k;
|
|
2050
|
-
typeof I == "function" ? I(s) : k = s;
|
|
2051
|
-
},
|
|
2052
|
-
type: "button",
|
|
2053
|
-
get class() {
|
|
2054
|
-
return le.bell;
|
|
2055
|
-
},
|
|
2056
|
-
"data-status-bar-bell": !0,
|
|
2057
|
-
get "data-open"() {
|
|
2058
|
-
return e() ? "true" : "false";
|
|
2059
|
-
},
|
|
2060
|
-
onClick: u,
|
|
2061
|
-
get title() {
|
|
2062
|
-
return J(() => !!p())() ? n("Notifications (Do Not Disturb on)") : n("Show notifications");
|
|
2063
|
-
},
|
|
2064
|
-
get "aria-label"() {
|
|
2065
|
-
return J(() => !!p())() ? n("Notifications (Do Not Disturb on)") : n("Show notifications");
|
|
2066
|
-
},
|
|
2067
|
-
"aria-haspopup": "dialog",
|
|
2068
|
-
get "aria-expanded"() {
|
|
2069
|
-
return e();
|
|
2070
|
-
},
|
|
2071
|
-
get children() {
|
|
2072
|
-
return [i(R, {
|
|
2073
|
-
get when() {
|
|
2074
|
-
return p();
|
|
2075
|
-
},
|
|
2076
|
-
get fallback() {
|
|
2077
|
-
return i(Ct, {
|
|
2078
|
-
get class() {
|
|
2079
|
-
return le.bellIcon;
|
|
2080
|
-
}
|
|
2081
|
-
});
|
|
2082
|
-
},
|
|
2083
|
-
get children() {
|
|
2084
|
-
return i($e, {
|
|
2085
|
-
get class() {
|
|
2086
|
-
return le.bellIcon;
|
|
2087
|
-
}
|
|
2088
|
-
});
|
|
2089
|
-
}
|
|
2090
|
-
}), i(R, {
|
|
2091
|
-
get when() {
|
|
2092
|
-
return a() > 0;
|
|
2093
|
-
},
|
|
2094
|
-
get children() {
|
|
2095
|
-
var s = ir();
|
|
2096
|
-
return f(s, P), L(() => C(s, le.badge)), s;
|
|
2097
|
-
}
|
|
2098
|
-
})];
|
|
2099
|
-
}
|
|
2100
|
-
}), i(oi, {
|
|
2101
|
-
get open() {
|
|
2102
|
-
return e();
|
|
2103
|
-
},
|
|
2104
|
-
onClose: () => r(!1),
|
|
2105
|
-
anchor: () => k,
|
|
2106
|
-
placement: "top-end",
|
|
2107
|
-
gap: 6,
|
|
2108
|
-
role: "dialog",
|
|
2109
|
-
get ariaLabel() {
|
|
2110
|
-
return n("Notifications");
|
|
2111
|
-
},
|
|
2112
|
-
get class() {
|
|
2113
|
-
return le.centerPopover;
|
|
2114
|
-
},
|
|
2115
|
-
get children() {
|
|
2116
|
-
return i(Xo, {
|
|
2117
|
-
onHide: () => r(!1)
|
|
2118
|
-
});
|
|
2119
|
-
}
|
|
2120
|
-
})];
|
|
2121
|
-
}
|
|
2122
|
-
export {
|
|
2123
|
-
gi as L,
|
|
2124
|
-
ze as N,
|
|
2125
|
-
Or as S,
|
|
2126
|
-
At as a,
|
|
2127
|
-
Pr as b,
|
|
2128
|
-
Xo as c,
|
|
2129
|
-
mi as d,
|
|
2130
|
-
Dr as e,
|
|
2131
|
-
Oi as f,
|
|
2132
|
-
Mi as g,
|
|
2133
|
-
pi as h,
|
|
2134
|
-
vi as i,
|
|
2135
|
-
fi as j,
|
|
2136
|
-
Er as k,
|
|
2137
|
-
Ar as l,
|
|
2138
|
-
ee as r,
|
|
2139
|
-
xr as s
|
|
2140
|
-
};
|