@vokril/ui-solid 0.9.2 → 0.13.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 +30 -0
- package/dist/{AttributeGrid-Bnn1w5XX.cjs → AttributeGrid-Bg88JYZI.cjs} +1 -1
- package/dist/{AttributeGrid-DJdW32LQ.js → AttributeGrid-BypjAajJ.js} +4 -4
- package/dist/{Button-BZWXPn8y.js → Button-Db6wMY-3.js} +2 -2
- package/dist/{Button-X8QR6llv.cjs → Button-d9jJBibg.cjs} +1 -1
- package/dist/CommandPalette-DeEImZ8D.cjs +2 -0
- package/dist/{CommandPalette-ZCFlLqrP.js → CommandPalette-yqvM9AuU.js} +1372 -1425
- package/dist/{CopyButton-D3dIRRnn.js → CopyButton-C93PFyYK.js} +1 -1
- package/dist/{CopyButton-3cX5MHAf.cjs → CopyButton-CXaZRU7b.cjs} +1 -1
- package/dist/{DateRangePicker-DHI3SNna.cjs → DateRangePicker-7t4JKCp1.cjs} +1 -1
- package/dist/{DateRangePicker-BcqoUao4.js → DateRangePicker-D-5rg3h1.js} +4 -4
- package/dist/{GuidedTour-c7XiyOmE.cjs → GuidedTour-C_Lxe1t_.cjs} +10 -10
- package/dist/{GuidedTour-B-BXe3ul.js → GuidedTour-lsljVkPL.js} +1489 -1487
- package/dist/{IconPicker-CXbFmJ3y.js → IconPicker-C3ZwWkB1.js} +4 -4
- package/dist/{IconPicker-9tjEtmqt.cjs → IconPicker-DPT-QfsC.cjs} +1 -1
- package/dist/{Input-BEnk4FCF.cjs → Input-Ca8fLm_s.cjs} +1 -1
- package/dist/{Input-PZ5wRvPx.js → Input-gq8EcQao.js} +1 -1
- package/dist/{Modal-CsiV55WW.js → Modal-C4l_yuY9.js} +3 -3
- package/dist/{Modal-DpDHzCWT.cjs → Modal-CJhd27dM.cjs} +1 -1
- package/dist/{PageSkeleton-CyTXvZYm.js → PageSkeleton-C95fXUUk.js} +56 -56
- package/dist/{PageSkeleton-DzKYTuNy.cjs → PageSkeleton-SYSL4Adl.cjs} +1 -1
- package/dist/{SearchableSelect-C6KL7e42.js → SearchableSelect-BpOD2_A-.js} +3 -3
- package/dist/{SearchableSelect-zT8XNpmt.cjs → SearchableSelect-MN5azo9r.cjs} +1 -1
- package/dist/{StatusBarNotificationBell-CZmym2gV.js → StatusBarNotificationBell-B1bvE_SO.js} +45 -45
- package/dist/{StatusBarNotificationBell-DG8Pe6R-.cjs → StatusBarNotificationBell-Cqo6cZbO.cjs} +1 -1
- package/dist/{Stepper-BxXwbDq4.js → Stepper-BgDx1cPX.js} +1 -1
- package/dist/{Stepper-DoJFCfC7.cjs → Stepper-D7rXGxdg.cjs} +1 -1
- package/dist/{Textarea-BunKEY68.cjs → Textarea-BltpSavs.cjs} +1 -1
- package/dist/{Textarea-BUxibzkR.js → Textarea-BueHsjOk.js} +1 -1
- package/dist/{TimeSeriesChart-DBrDzBGE.js → TimeSeriesChart-C3o7NZPh.js} +1 -1
- package/dist/{TimeSeriesChart-CS4jQflv.cjs → TimeSeriesChart-DhYtrAgX.cjs} +1 -1
- package/dist/{ToggleButton-Bjxv8KGH.cjs → ToggleButton-BmwDfsn4.cjs} +1 -1
- package/dist/{ToggleButton-BfjXnp-P.js → ToggleButton-DCP7f6Uo.js} +6 -6
- package/dist/_internal/app/settings/secrets/notificationSecrets.d.cts +23 -14
- package/dist/_internal/app/settings/secrets/notificationSecrets.d.ts +23 -14
- package/dist/_internal/platform/a11y/announcerService.d.cts +9 -13
- package/dist/_internal/platform/a11y/announcerService.d.ts +9 -13
- package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -5
- package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -5
- package/dist/a11y/index.cjs +1 -1
- package/dist/a11y/index.js +1 -1
- package/dist/{catalogNotify-CIhFuJ1b.js → catalogNotify-BcY9oqVy.js} +287 -274
- package/dist/catalogNotify-DacJjC-p.cjs +27 -0
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/{createResizableSidebar-pDoO-7q9.cjs → createResizableSidebar-BIhyo5zN.cjs} +1 -1
- package/dist/{createResizableSidebar-2TgiFZp1.js → createResizableSidebar-Cqv-1IXG.js} +6 -6
- package/dist/{server/defineSettings-By5ell8e.js → defineSettings-CcYXt2Jf.js} +1 -1
- package/dist/{defineSettings-DRv1FRbv.cjs → defineSettings-yHQdUwxI.cjs} +1 -1
- package/dist/{descriptor-B1MaujhY.js → descriptor-CrCl515S.js} +2 -2
- package/dist/{descriptor-lw1fA9mi.cjs → descriptor-Dmch-3AF.cjs} +1 -1
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +5 -5
- package/dist/{displayOwner-BNw2Foa_.cjs → displayOwner-eYQHHvjt.cjs} +1 -1
- package/dist/{server/displayOwner-B_ezJv-O.js → displayOwner-mT80Oyi-.js} +1 -1
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +3 -3
- package/dist/focusModality-BNjYldd9.cjs +1 -0
- package/dist/focusModality-DxudpWPs.js +135 -0
- package/dist/{format-UGlMj0HW.js → format-BS7oDguE.js} +3 -3
- package/dist/{format-Dih0q9gm.cjs → format-CuANkXXB.cjs} +1 -1
- 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/{server/headerIconOverrides-BCzeaBA1.js → headerIconOverrides-B7TQUBmD.js} +1 -1
- package/dist/{headerIconOverrides-64lFnqTt.cjs → headerIconOverrides-DY3BTuca.cjs} +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.d.cts +1 -0
- package/dist/host/index.d.ts +1 -0
- package/dist/host/index.js +94 -91
- package/dist/host/kitHost.d.cts +23 -0
- package/dist/host/kitHost.d.ts +23 -0
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/{i18n-CYq-dVvv.js → i18n-D9k9xwuD.js} +1 -1
- package/dist/{i18n-B9ccWgcR.cjs → i18n-DXXArz-m.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1049 -995
- package/dist/kitHost-BfJExE1G.cjs +1 -0
- package/dist/kitHost-CVAEi9sF.js +23 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/{mainRealmDom-DijAgSXt.cjs → mainRealmDom-CkoRyNhZ.cjs} +1 -1
- package/dist/{mainRealmDom-COGBiX78.js → mainRealmDom-kEStLHIY.js} +1 -1
- package/dist/{menuFavorites-Db1DpHX6.js → menuFavorites-BmdM_qV5.js} +1 -1
- package/dist/{menuFavorites-EluLLTfi.cjs → menuFavorites-DoDFvtlQ.cjs} +1 -1
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/{notification-DFbp3S_f.js → notification-CpDYN_iu.js} +1 -1
- package/dist/{notification-CrxHMXsk.cjs → notification-DygvQB_o.cjs} +1 -1
- package/dist/{notificationSuppressions-DFbFpayS.cjs → notificationSuppressions-DGfo2QKG.cjs} +1 -1
- package/dist/{notificationSuppressions-CBIJ4bC4.js → notificationSuppressions-ddyK85cB.js} +2 -2
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.d.cts +1 -0
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.js +83 -77
- package/dist/overlay/ConfirmDialog.d.cts +22 -4
- package/dist/overlay/ConfirmDialog.d.ts +22 -4
- package/dist/overlay/DangerousActionDialog.d.cts +2 -2
- package/dist/overlay/DangerousActionDialog.d.ts +2 -2
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +38 -38
- package/dist/{server/preferencesCache-BhUd3K9p.js → preferencesCache-Bow6TxP1.js} +1 -1
- package/dist/{preferencesCache-DJPCTPYx.cjs → preferencesCache-D7mm43_n.cjs} +1 -1
- package/dist/rendererLogging-Dt5FZ8mq.cjs +7 -0
- package/dist/{rendererLogging-Edo4ALXU.js → rendererLogging-gAhiHWkA.js} +65 -65
- package/dist/server/{AttributeGrid-BVAQshm3.cjs → AttributeGrid-CyMsR4GC.cjs} +1 -1
- package/dist/server/{AttributeGrid-BCYNwNjw.js → AttributeGrid-UJtHTip2.js} +3 -3
- package/dist/server/{Button-BhqhjFpY.js → Button-BesBg6eW.js} +1 -1
- package/dist/server/{Button-CFOM8pOv.cjs → Button-PZulLru4.cjs} +1 -1
- package/dist/server/CommandPalette-C8treS8g.cjs +1 -0
- package/dist/server/CommandPalette-Dslsq5Ez.js +3155 -0
- package/dist/server/{CopyButton-C2jzn9tR.cjs → CopyButton-D_sN2Ggp.cjs} +1 -1
- package/dist/server/{CopyButton-CChDa2p3.js → CopyButton-I5xsXV07.js} +1 -1
- package/dist/server/{DateRangePicker-sX2m4194.cjs → DateRangePicker-CDKi9BAf.cjs} +1 -1
- package/dist/server/{DateRangePicker-QV6U1adB.js → DateRangePicker-DGUl2aE3.js} +3 -3
- package/dist/server/GuidedTour-B3T9rAPX.cjs +20 -0
- package/dist/server/{GuidedTour-BhJGkoPa.js → GuidedTour-DSoSZZby.js} +1559 -1557
- package/dist/server/{IconPicker-CSFowOa0.cjs → IconPicker-BlD0VBca.cjs} +1 -1
- package/dist/server/{IconPicker-B-d_Wcsj.js → IconPicker-o8hUxjYU.js} +4 -4
- package/dist/server/{Modal-CAVr4DU6.cjs → Modal-CCUwQYso.cjs} +1 -1
- package/dist/server/{Modal-usxkqDtK.js → Modal-DmF6CwfY.js} +2 -2
- package/dist/server/{PageSkeleton-Bpgep9QW.js → PageSkeleton-BigztY5i.js} +21 -21
- package/dist/server/{PageSkeleton-KwYRrZua.cjs → PageSkeleton-DdpXfZoC.cjs} +1 -1
- package/dist/server/{SearchableSelect-0dP7bp0a.js → SearchableSelect-Dn-cssWx.js} +2 -2
- package/dist/server/{SearchableSelect-nMecJAYS.cjs → SearchableSelect-R0Dwz9rz.cjs} +1 -1
- package/dist/server/{StatusBarNotificationBell-C9MCuKT6.js → StatusBarNotificationBell-C64Odn2C.js} +169 -169
- package/dist/server/{StatusBarNotificationBell-BJyGqDCX.cjs → StatusBarNotificationBell-DY0Q27su.cjs} +1 -1
- package/dist/server/{Stepper-B8hDDujj.js → Stepper-BaQ6Kexj.js} +1 -1
- package/dist/server/{Stepper-DvoJXLcM.cjs → Stepper-dBm8YaCw.cjs} +1 -1
- package/dist/server/{TimeSeriesChart-C1LbL_xp.js → TimeSeriesChart-BbbfDyeA.js} +1 -1
- package/dist/server/{TimeSeriesChart-DtldQrxS.cjs → TimeSeriesChart-qPgMkkaW.cjs} +1 -1
- package/dist/server/{ToggleButton-DTI2HB97.cjs → ToggleButton-1bNYk35x.cjs} +1 -1
- package/dist/server/{ToggleButton--G4HCOTD.js → ToggleButton-C0_QpslP.js} +4 -4
- package/dist/server/a11y/index.cjs +1 -1
- package/dist/server/a11y/index.js +1 -1
- package/dist/server/catalogNotify-MCW2sa2e.cjs +27 -0
- package/dist/server/{catalogNotify-mUcKuUmZ.js → catalogNotify-s3YymAe8.js} +289 -276
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/{createResizableSidebar-D96TivmC.js → createResizableSidebar-MIzUlfdd.js} +5 -5
- package/dist/server/{createResizableSidebar-SJ2NCIYW.cjs → createResizableSidebar-TdxLuiY8.cjs} +1 -1
- package/dist/{defineSettings-By5ell8e.js → server/defineSettings-CcYXt2Jf.js} +1 -1
- package/dist/server/{defineSettings-DRv1FRbv.cjs → defineSettings-yHQdUwxI.cjs} +1 -1
- package/dist/server/{descriptor-IJq9wdXK.cjs → descriptor-DAyyoF-I.cjs} +1 -1
- package/dist/server/{descriptor-DWkJAggS.js → descriptor-DtZDXBe6.js} +2 -2
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +4 -4
- package/dist/server/{displayOwner-BNw2Foa_.cjs → displayOwner-eYQHHvjt.cjs} +1 -1
- package/dist/{displayOwner-B_ezJv-O.js → server/displayOwner-mT80Oyi-.js} +1 -1
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +2 -2
- package/dist/server/{focusModality-DmOZptla.js → focusModality-BCX5GH0P.js} +31 -29
- package/dist/server/focusModality-BKgJWRlC.cjs +1 -0
- package/dist/server/{format-CW_FVfq2.js → format-CYCi8g4r.js} +1 -1
- package/dist/server/{format-x-8syaS2.cjs → format-WfZycMBL.cjs} +1 -1
- 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/{headerIconOverrides-BCzeaBA1.js → server/headerIconOverrides-B7TQUBmD.js} +1 -1
- package/dist/server/{headerIconOverrides-64lFnqTt.cjs → headerIconOverrides-DY3BTuca.cjs} +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +94 -91
- package/dist/server/i18n/index.cjs +1 -1
- package/dist/server/i18n/index.js +1 -1
- package/dist/server/{i18n-CYq-dVvv.js → i18n-D9k9xwuD.js} +1 -1
- package/dist/server/{i18n-B9ccWgcR.cjs → i18n-DXXArz-m.cjs} +1 -1
- package/dist/server/index-B4epvfiq.js +13377 -0
- package/dist/server/index-DlQYWckZ.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +1026 -972
- 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 +2 -2
- package/dist/server/{menuFavorites-Db1DpHX6.js → menuFavorites-BmdM_qV5.js} +1 -1
- package/dist/server/{menuFavorites-EluLLTfi.cjs → menuFavorites-DoDFvtlQ.cjs} +1 -1
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/{notification-DFbp3S_f.js → notification-CpDYN_iu.js} +1 -1
- package/dist/server/{notification-CrxHMXsk.cjs → notification-DygvQB_o.cjs} +1 -1
- package/dist/server/{notificationSuppressions-DkrUMXHx.js → notificationSuppressions-B-LKq9ZU.js} +2 -2
- package/dist/server/{notificationSuppressions-D7FZmJy8.cjs → notificationSuppressions-Dcc2WFBZ.cjs} +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +81 -75
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +27 -27
- package/dist/{preferencesCache-BhUd3K9p.js → server/preferencesCache-Bow6TxP1.js} +1 -1
- package/dist/server/{preferencesCache-DJPCTPYx.cjs → preferencesCache-D7mm43_n.cjs} +1 -1
- package/dist/server/rendererLogging-Dt5FZ8mq.cjs +7 -0
- package/dist/server/{rendererLogging-Edo4ALXU.js → rendererLogging-gAhiHWkA.js} +65 -65
- package/dist/server/settings/index.cjs +1 -1
- package/dist/server/settings/index.js +3 -3
- package/dist/server/{settingsSearchContributor-DeMn-njw.js → settingsSearchContributor-CRZsl2Q_.js} +2 -2
- package/dist/server/{settingsSearchContributor-DZj7Wc8l.cjs → settingsSearchContributor-DH8UFpp2.cjs} +1 -1
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.js +3 -3
- package/dist/{settingsSearchContributor-C-UJc7Xc.js → settingsSearchContributor-DWP5dwn3.js} +2 -2
- package/dist/{settingsSearchContributor-Du0SDpJt.cjs → settingsSearchContributor-Dltbs1j_.cjs} +1 -1
- package/dist/solid/_internal/app/settings/secrets/notificationSecrets.js +20 -28
- package/dist/solid/_internal/platform/a11y/announcerService.js +0 -24
- package/dist/solid/a11y/AriaAnnouncer.jsx +4 -4
- package/dist/solid/host/index.js +1 -0
- package/dist/solid/host/kitHost.jsx +15 -0
- package/dist/solid/notifications/NotificationItem.jsx +4 -3
- package/dist/solid/notifications/emailDigest.js +2 -2
- package/dist/solid/notifications/index.js +1 -0
- package/dist/solid/notifications/webhookDelivery.js +2 -2
- package/dist/solid/overlay/ConfirmDialog.jsx +1 -21
- package/dist/style.css +1 -1
- package/dist/{tooltipCoordinator-y5YP3tsJ.cjs → tooltipCoordinator-Causlcgt.cjs} +1 -1
- package/dist/{tooltipCoordinator-GV0L9lXH.js → tooltipCoordinator-Zim5pWzk.js} +1 -1
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +2 -2
- package/dist/CommandPalette-DToM9pUp.cjs +0 -2
- 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/announcerService-B7yicxvU.js +0 -97
- package/dist/announcerService-D_pFE24a.cjs +0 -1
- package/dist/catalogNotify-C9RzbC6x.cjs +0 -27
- package/dist/focusModality-B150daiS.js +0 -133
- package/dist/focusModality-PPfeW05D.cjs +0 -1
- package/dist/rendererLogging-B4XML4_G.cjs +0 -7
- package/dist/server/CommandPalette-C3Bw1teR.cjs +0 -1
- package/dist/server/CommandPalette-S7tfmFMb.js +0 -3208
- package/dist/server/GuidedTour-Dx0endYh.cjs +0 -20
- package/dist/server/announcerService-B7yicxvU.js +0 -97
- package/dist/server/announcerService-D_pFE24a.cjs +0 -1
- package/dist/server/catalogNotify-BPPTINme.cjs +0 -27
- package/dist/server/focusModality-CeTPyRiF.cjs +0 -1
- package/dist/server/index-BZO0w8b6.js +0 -3661
- package/dist/server/index-DgIX9RIA.cjs +0 -1
- package/dist/server/rendererLogging-B4XML4_G.cjs +0 -7
- 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
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { g as
|
|
3
|
-
import { G as
|
|
4
|
-
import { n as f } from "./notification-
|
|
5
|
-
import { t as m } from "./i18n-
|
|
6
|
-
const
|
|
1
|
+
import { B as J } from "./bugIndicatingError-h3J5qkL6.js";
|
|
2
|
+
import { g as W, e as N } from "./rendererLogging-gAhiHWkA.js";
|
|
3
|
+
import { G as Ce, r as Z, H as De, F as _, I as $e, q as le, t as ee, s as Re, J as Ne, f as de, K as fe, j as Ie, n as ie, m as Oe, k as Ue, L as ge, M as Me, e as qe } from "./notificationSuppressions-ddyK85cB.js";
|
|
4
|
+
import { n as f } from "./notification-CpDYN_iu.js";
|
|
5
|
+
import { t as m } from "./i18n-D9k9xwuD.js";
|
|
6
|
+
const Fe = {
|
|
7
7
|
info: { freq: 660, ms: 140 },
|
|
8
8
|
success: { freq: 880, ms: 180 },
|
|
9
9
|
warning: { freq: 520, ms: 220 },
|
|
10
10
|
error: { freq: 320, ms: 260 }
|
|
11
|
-
},
|
|
11
|
+
}, Pe = {
|
|
12
12
|
info: "soundOnInfo",
|
|
13
13
|
success: "soundOnSuccess",
|
|
14
14
|
warning: "soundOnWarning",
|
|
15
15
|
error: "soundOnError"
|
|
16
|
-
},
|
|
16
|
+
}, We = {
|
|
17
17
|
info: "customSoundInfo",
|
|
18
18
|
success: "customSoundSuccess",
|
|
19
19
|
warning: "customSoundWarning",
|
|
20
20
|
error: "customSoundError"
|
|
21
21
|
};
|
|
22
|
-
function
|
|
23
|
-
if (!e[
|
|
24
|
-
const i = e[
|
|
22
|
+
function _e(t, e, r) {
|
|
23
|
+
if (!e[Pe[t]] || e.quietHoursMutesSounds && r) return null;
|
|
24
|
+
const i = e[We[t]].trim();
|
|
25
25
|
if (i) return { kind: "custom", path: i };
|
|
26
|
-
const n =
|
|
26
|
+
const n = Fe[t];
|
|
27
27
|
return { kind: "builtin", freq: n.freq, ms: n.ms };
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const B = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map();
|
|
30
30
|
async function Ke(t) {
|
|
31
|
-
const e =
|
|
31
|
+
const e = B.get(t);
|
|
32
32
|
if (e) return e;
|
|
33
|
-
let r =
|
|
34
|
-
return r || (r =
|
|
33
|
+
let r = F.get(t);
|
|
34
|
+
return r || (r = Ce(t).then((i) => (F.delete(t), i && B.set(t, i), i)), F.set(t, r)), await r ?? void 0;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
|
|
36
|
+
function Rt() {
|
|
37
|
+
B.clear(), F.clear();
|
|
38
38
|
}
|
|
39
|
-
const
|
|
40
|
-
let
|
|
41
|
-
function
|
|
39
|
+
const te = W("NotificationAudio");
|
|
40
|
+
let U = null, H = !1;
|
|
41
|
+
function He() {
|
|
42
42
|
if (H) return null;
|
|
43
|
-
if (
|
|
43
|
+
if (U) return U;
|
|
44
44
|
try {
|
|
45
45
|
const t = window.AudioContext ?? window.webkitAudioContext;
|
|
46
|
-
return t ? (
|
|
46
|
+
return t ? (U = new t(), U) : (H = !0, null);
|
|
47
47
|
} catch (t) {
|
|
48
|
-
return H = !0,
|
|
48
|
+
return H = !0, te.warn("AudioContext could not be created; notification sounds are off:", t), null;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
async function
|
|
51
|
+
async function Be(t) {
|
|
52
52
|
const e = await Ke(t);
|
|
53
53
|
if (e)
|
|
54
54
|
try {
|
|
55
55
|
const r = new Audio(e);
|
|
56
56
|
r.volume = 0.6, await r.play();
|
|
57
57
|
} catch (r) {
|
|
58
|
-
|
|
58
|
+
te.warn("Custom notification sound could not be played:", r);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
const r =
|
|
61
|
+
function me(t = 800, e = 200) {
|
|
62
|
+
const r = He();
|
|
63
63
|
if (r)
|
|
64
64
|
try {
|
|
65
65
|
const i = r.currentTime, n = r.createOscillator(), s = r.createGain();
|
|
66
66
|
n.connect(s), s.connect(r.destination), n.frequency.value = t, s.gain.setValueAtTime(0.3, i), s.gain.exponentialRampToValueAtTime(0.01, i + e / 1e3), n.start(i), n.stop(i + e / 1e3);
|
|
67
67
|
} catch (i) {
|
|
68
|
-
|
|
68
|
+
te.warn("Notification tone could not be played:", i);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
|
|
71
|
+
function Le() {
|
|
72
|
+
me(800, 200);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
const r =
|
|
74
|
+
function Ve(t, e) {
|
|
75
|
+
const r = _e(
|
|
76
76
|
t,
|
|
77
77
|
f.get(),
|
|
78
78
|
e
|
|
79
79
|
);
|
|
80
80
|
if (r) {
|
|
81
81
|
if (r.kind === "custom") {
|
|
82
|
-
|
|
82
|
+
Be(r.path);
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
me(r.freq, r.ms);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
const
|
|
88
|
+
const ye = W("NotificationTimeline");
|
|
89
89
|
function Nt(t) {
|
|
90
|
-
return t.vendorError === void 0 ? null :
|
|
90
|
+
return t.vendorError === void 0 ? null : Z(t.vendorError);
|
|
91
91
|
}
|
|
92
|
-
const
|
|
93
|
-
let
|
|
94
|
-
const
|
|
92
|
+
const je = 200;
|
|
93
|
+
let L = [];
|
|
94
|
+
const V = /* @__PURE__ */ new Set();
|
|
95
95
|
function A() {
|
|
96
|
-
return [...
|
|
96
|
+
return [...L];
|
|
97
97
|
}
|
|
98
98
|
function C(t) {
|
|
99
99
|
const e = [...t].sort(
|
|
100
100
|
(o, c) => c.createdAt - o.createdAt
|
|
101
101
|
), r = e.filter((o) => o.pinned === !0), n = e.filter((o) => o.pinned !== !0).slice(
|
|
102
102
|
0,
|
|
103
|
-
Math.max(0,
|
|
103
|
+
Math.max(0, je - r.length)
|
|
104
104
|
);
|
|
105
|
-
|
|
105
|
+
L = [...[...r].sort(
|
|
106
106
|
(o, c) => (c.pinnedAt ?? c.createdAt) - (o.pinnedAt ?? o.createdAt)
|
|
107
107
|
), ...n];
|
|
108
|
-
for (const o of Array.from(
|
|
108
|
+
for (const o of Array.from(V))
|
|
109
109
|
try {
|
|
110
|
-
o(
|
|
110
|
+
o(L);
|
|
111
111
|
} catch (c) {
|
|
112
|
-
|
|
112
|
+
ye.warn("Zaman cizelgesi dinleyicisi firlatti:", c);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
let k = 0, I = 0;
|
|
116
|
-
const
|
|
117
|
-
function
|
|
116
|
+
const j = /* @__PURE__ */ new Set();
|
|
117
|
+
function w(t, e, r = "general", i = "default", n, s) {
|
|
118
118
|
if (!t.trim()) return;
|
|
119
119
|
const o = {
|
|
120
120
|
id: `${Date.now()}-${Math.random().toString(36).slice(2, 10)}`,
|
|
@@ -126,42 +126,42 @@ function b(t, e, r = "general", i = "default", n, s) {
|
|
|
126
126
|
...n && n.length > 0 ? { actions: n } : {},
|
|
127
127
|
...s ? { vendorError: s } : {}
|
|
128
128
|
};
|
|
129
|
-
C([o, ...A()]), k += 1,
|
|
129
|
+
C([o, ...A()]), k += 1, ve();
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function $(t) {
|
|
132
132
|
if (t)
|
|
133
133
|
return [{ label: t.label, onClick: t.onClick, primary: !0 }];
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function ve() {
|
|
136
136
|
const t = Math.max(0, k - I);
|
|
137
|
-
for (const e of Array.from(
|
|
137
|
+
for (const e of Array.from(j))
|
|
138
138
|
try {
|
|
139
139
|
e(t);
|
|
140
140
|
} catch (r) {
|
|
141
|
-
|
|
141
|
+
ye.warn("Okunmadi sayaci dinleyicisi firlatti:", r);
|
|
142
142
|
}
|
|
143
|
-
|
|
143
|
+
pe(t);
|
|
144
144
|
}
|
|
145
|
-
let
|
|
146
|
-
function
|
|
145
|
+
let Q = -1;
|
|
146
|
+
function pe(t) {
|
|
147
147
|
const e = f.get(), r = e.badgeCountEnabled ? Math.min(t, e.badgeCountMax) : 0;
|
|
148
|
-
r !==
|
|
148
|
+
r !== Q && (Q = r, De(r));
|
|
149
149
|
}
|
|
150
150
|
function It() {
|
|
151
151
|
const t = Math.max(0, k - I);
|
|
152
|
-
|
|
152
|
+
Q = -1, pe(t);
|
|
153
153
|
}
|
|
154
154
|
function Ot(t) {
|
|
155
|
-
return
|
|
156
|
-
|
|
155
|
+
return j.add(t), t(Math.max(0, k - I)), () => {
|
|
156
|
+
j.delete(t);
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
function Ut() {
|
|
160
|
-
I !== k && (I = k,
|
|
160
|
+
I !== k && (I = k, ve());
|
|
161
161
|
}
|
|
162
162
|
function Mt(t) {
|
|
163
|
-
return
|
|
164
|
-
|
|
163
|
+
return V.add(t), t(A()), () => {
|
|
164
|
+
V.delete(t);
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
167
|
function qt() {
|
|
@@ -171,12 +171,12 @@ function Ft(t) {
|
|
|
171
171
|
const e = A().filter((r) => r.id !== t);
|
|
172
172
|
C(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Pt(t) {
|
|
175
175
|
if (t.length === 0) return;
|
|
176
176
|
const e = new Set(t), r = A().filter((i) => !e.has(i.id));
|
|
177
177
|
C(r);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Wt(t) {
|
|
180
180
|
if (!t) return;
|
|
181
181
|
const e = A().filter((r) => r.source !== t);
|
|
182
182
|
C(e);
|
|
@@ -189,36 +189,36 @@ function _t(t) {
|
|
|
189
189
|
});
|
|
190
190
|
C(r);
|
|
191
191
|
}
|
|
192
|
-
const
|
|
193
|
-
function
|
|
194
|
-
|
|
192
|
+
const P = /* @__PURE__ */ new Map();
|
|
193
|
+
function Kt() {
|
|
194
|
+
P.clear();
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
if (
|
|
198
|
-
return
|
|
196
|
+
function Qe(t) {
|
|
197
|
+
if (P.has(t))
|
|
198
|
+
return P.get(t) ?? null;
|
|
199
199
|
let e;
|
|
200
200
|
try {
|
|
201
201
|
e = new RegExp(t, "i");
|
|
202
202
|
} catch {
|
|
203
203
|
e = null;
|
|
204
204
|
}
|
|
205
|
-
return
|
|
205
|
+
return P.set(t, e), e;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Ye(t, e) {
|
|
208
208
|
const r = t.conditions;
|
|
209
209
|
if (r.source && r.source !== e.source || r.severities && r.severities.length > 0 && !r.severities.includes(e.severity))
|
|
210
210
|
return !1;
|
|
211
211
|
if (r.titleRegex) {
|
|
212
|
-
const i =
|
|
212
|
+
const i = Qe(r.titleRegex);
|
|
213
213
|
if (!i || !i.test(e.title)) return !1;
|
|
214
214
|
}
|
|
215
215
|
return !0;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Xe(t, e) {
|
|
218
218
|
if (e.length === 0) return t;
|
|
219
219
|
let r = { ...t };
|
|
220
220
|
for (const i of e)
|
|
221
|
-
if (i.enabled &&
|
|
221
|
+
if (i.enabled && Ye(i, r)) {
|
|
222
222
|
if (i.actions.suppress === !0) return null;
|
|
223
223
|
if (i.actions.setSeverity && (r = { ...r, severity: i.actions.setSeverity }), i.actions.setPriority && (r = { ...r, priority: i.actions.setPriority }), i.actions.addPrefix) {
|
|
224
224
|
const n = i.actions.addPrefix.trim();
|
|
@@ -227,35 +227,35 @@ function je(t, e) {
|
|
|
227
227
|
}
|
|
228
228
|
return r;
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function ne(t) {
|
|
231
231
|
const e = /^(\d{1,2}):(\d{2})$/.exec(t.trim());
|
|
232
232
|
if (!e) return null;
|
|
233
233
|
const r = Number(e[1]), i = Number(e[2]);
|
|
234
234
|
return r > 23 || i > 59 ? null : r * 60 + i;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function he(t, e) {
|
|
237
237
|
if (!t.quietHoursEnabled || !t.quietHoursWeekdays.includes(e.getDay())) return !1;
|
|
238
|
-
const r =
|
|
238
|
+
const r = ne(t.quietHoursStart), i = ne(t.quietHoursEnd);
|
|
239
239
|
if (r === null || i === null || r === i) return !1;
|
|
240
240
|
const n = e.getHours() * 60 + e.getMinutes();
|
|
241
241
|
return r < i ? n >= r && n < i : n >= r || n < i;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function ze(t) {
|
|
244
244
|
return t.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&");
|
|
245
245
|
}
|
|
246
|
-
const
|
|
246
|
+
const se = {
|
|
247
247
|
info: 0,
|
|
248
248
|
success: 1,
|
|
249
249
|
warning: 2,
|
|
250
250
|
error: 3
|
|
251
251
|
};
|
|
252
|
-
function
|
|
253
|
-
return e.osNativeEnabled ? t.priority === "urgent" && e.osNativeUrgentAlways ? { fire: !0, onlyWhenUnfocused: !1 } :
|
|
252
|
+
function Ge(t, e) {
|
|
253
|
+
return e.osNativeEnabled ? t.priority === "urgent" && e.osNativeUrgentAlways ? { fire: !0, onlyWhenUnfocused: !1 } : se[t.severity] < se[e.osNativeMinSeverity] ? { fire: !1, onlyWhenUnfocused: !1 } : {
|
|
254
254
|
fire: !0,
|
|
255
255
|
onlyWhenUnfocused: e.osNativeOnlyWhenUnfocused
|
|
256
256
|
} : { fire: !1, onlyWhenUnfocused: !1 };
|
|
257
257
|
}
|
|
258
|
-
const
|
|
258
|
+
const Je = {
|
|
259
259
|
"sql-execution": "sql",
|
|
260
260
|
users: "users",
|
|
261
261
|
tablespaces: "tablespaces",
|
|
@@ -263,46 +263,53 @@ const Xe = {
|
|
|
263
263
|
locking: "locking",
|
|
264
264
|
monitoring: "monitoring"
|
|
265
265
|
};
|
|
266
|
-
function
|
|
266
|
+
function Ze(t, e) {
|
|
267
267
|
if (e) return e;
|
|
268
268
|
if (t !== void 0)
|
|
269
|
-
return
|
|
269
|
+
return Je[t];
|
|
270
270
|
}
|
|
271
|
-
const
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
get: (e) => Promise.resolve(t.get(e)),
|
|
276
|
-
set: async (e, r) => {
|
|
277
|
-
t.set(e, r);
|
|
278
|
-
},
|
|
279
|
-
delete: async (e) => {
|
|
280
|
-
t.delete(e);
|
|
281
|
-
},
|
|
282
|
-
keys: async (e) => [...t.keys()].filter((r) => r.startsWith(e))
|
|
283
|
-
};
|
|
271
|
+
const Y = "notification.emailDigestSmtpPass", X = "notification.webhook.url.";
|
|
272
|
+
let z = null;
|
|
273
|
+
function Ht(t) {
|
|
274
|
+
z = t;
|
|
284
275
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
276
|
+
function we() {
|
|
277
|
+
if (z === null)
|
|
278
|
+
throw new J(
|
|
279
|
+
"notificationSecretStore: no secret store was bound — call provideNotificationSecretStore() at startup."
|
|
280
|
+
);
|
|
281
|
+
return z;
|
|
282
|
+
}
|
|
283
|
+
function O(t) {
|
|
284
|
+
return `${X}${t}`;
|
|
285
|
+
}
|
|
286
|
+
function et(t) {
|
|
287
|
+
return t.get(Y);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
|
|
289
|
+
async function Bt(t, e) {
|
|
290
|
+
e ? await t.set(Y, e) : await t.delete(Y);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
return
|
|
292
|
+
function tt(t, e) {
|
|
293
|
+
return t.get(O(e));
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
|
|
295
|
+
async function Lt(t, e, r) {
|
|
296
|
+
r ? await t.set(O(e), r) : await t.delete(O(e));
|
|
297
297
|
}
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
pe = t.trim();
|
|
298
|
+
function Vt(t, e) {
|
|
299
|
+
return t.delete(O(e));
|
|
301
300
|
}
|
|
302
|
-
function
|
|
303
|
-
|
|
301
|
+
async function jt(t, e) {
|
|
302
|
+
const r = new Set(e), i = (await t.keys()).filter((n) => n.startsWith(X)).map((n) => n.slice(X.length)).filter((n) => !r.has(n));
|
|
303
|
+
await Promise.all(i.map((n) => t.delete(O(n))));
|
|
304
304
|
}
|
|
305
|
-
|
|
305
|
+
let be = "";
|
|
306
|
+
function Qt(t) {
|
|
307
|
+
be = t.trim();
|
|
308
|
+
}
|
|
309
|
+
function Se() {
|
|
310
|
+
return be;
|
|
311
|
+
}
|
|
312
|
+
const rt = W("WebhookDelivery"), it = {
|
|
306
313
|
info: "#007AB0",
|
|
307
314
|
success: "#108846",
|
|
308
315
|
warning: "#D27908",
|
|
@@ -374,7 +381,7 @@ async function ct(t, e, r) {
|
|
|
374
381
|
}
|
|
375
382
|
}
|
|
376
383
|
async function at(t, e) {
|
|
377
|
-
const r = await tt(t.id) ?? "";
|
|
384
|
+
const r = await tt(we(), t.id) ?? "";
|
|
378
385
|
r && await ct(t, r, e);
|
|
379
386
|
}
|
|
380
387
|
function ut(t) {
|
|
@@ -385,11 +392,11 @@ function ut(t) {
|
|
|
385
392
|
for (const i of r)
|
|
386
393
|
at(i, t);
|
|
387
394
|
}
|
|
388
|
-
let
|
|
389
|
-
function
|
|
390
|
-
|
|
395
|
+
let G = null;
|
|
396
|
+
function Yt(t) {
|
|
397
|
+
G = t;
|
|
391
398
|
}
|
|
392
|
-
const lt =
|
|
399
|
+
const lt = W("EmailDigest"), b = [], oe = 500, ce = {
|
|
393
400
|
info: 0,
|
|
394
401
|
success: 1,
|
|
395
402
|
warning: 2,
|
|
@@ -397,20 +404,20 @@ const lt = K("EmailDigest"), w = [], re = 500, ie = {
|
|
|
397
404
|
};
|
|
398
405
|
function dt(t) {
|
|
399
406
|
const e = f.get();
|
|
400
|
-
e.emailDigestEnabled && (
|
|
407
|
+
e.emailDigestEnabled && (ce[t.severity] < ce[e.emailDigestMinSeverity] || (b.push(t), b.length > oe && b.splice(0, b.length - oe)));
|
|
401
408
|
}
|
|
402
|
-
const
|
|
409
|
+
const M = (t) => t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
403
410
|
function ft(t) {
|
|
404
|
-
const e =
|
|
411
|
+
const e = Se(), r = t.map((i) => `<tr>
|
|
405
412
|
<td style="padding:4px 8px">${new Date(i.at).toISOString().slice(11, 19)}</td>
|
|
406
413
|
<td style="padding:4px 8px"><strong>${i.severity}</strong></td>
|
|
407
|
-
<td style="padding:4px 8px">${
|
|
408
|
-
<td style="padding:4px 8px">${
|
|
414
|
+
<td style="padding:4px 8px">${M(i.source)}</td>
|
|
415
|
+
<td style="padding:4px 8px">${M(i.title)}${i.body ? `<br><small>${M(i.body)}</small>` : ""}</td>
|
|
409
416
|
</tr>`).join(`
|
|
410
417
|
`);
|
|
411
418
|
return `<!doctype html>
|
|
412
419
|
<html><body>
|
|
413
|
-
<h2>${e ? `${
|
|
420
|
+
<h2>${e ? `${M(e)} notification digest` : "Notification digest"}</h2>
|
|
414
421
|
<p>${t.length} notification(s) since the last digest.</p>
|
|
415
422
|
<table style="border-collapse:collapse">
|
|
416
423
|
<thead><tr style="background:#eee">
|
|
@@ -431,26 +438,26 @@ function gt(t) {
|
|
|
431
438
|
${e.join(`
|
|
432
439
|
`)}`;
|
|
433
440
|
}
|
|
434
|
-
function
|
|
441
|
+
function Xt(t) {
|
|
435
442
|
switch (t.kind) {
|
|
436
443
|
case "disabled":
|
|
437
444
|
return m("Email digest is turned off.");
|
|
438
445
|
case "smtp-incomplete":
|
|
439
446
|
return m("SMTP host, sender and recipient are required.");
|
|
440
447
|
case "send-failed":
|
|
441
|
-
return
|
|
448
|
+
return _(t.error, m("The digest could not be sent."));
|
|
442
449
|
}
|
|
443
450
|
}
|
|
444
451
|
async function mt() {
|
|
445
452
|
const t = f.get();
|
|
446
453
|
if (!t.emailDigestEnabled)
|
|
447
454
|
return { kind: "not-sent", reason: { kind: "disabled" } };
|
|
448
|
-
if (
|
|
455
|
+
if (b.length === 0) return { kind: "sent", count: 0 };
|
|
449
456
|
if (!t.emailDigestSmtpHost || !t.emailDigestFrom || !t.emailDigestTo)
|
|
450
457
|
return { kind: "not-sent", reason: { kind: "smtp-incomplete" } };
|
|
451
|
-
const e =
|
|
452
|
-
sendEmailDigest: (o) =>
|
|
453
|
-
}, i =
|
|
458
|
+
const e = b.splice(0, b.length), r = {
|
|
459
|
+
sendEmailDigest: (o) => G ? G(o) : Promise.reject(new Error("No email digest transport configured"))
|
|
460
|
+
}, i = Se(), n = `${i ? `[${i}] ` : ""}${e.length} notification(s)`, s = await et(we()) ?? "";
|
|
454
461
|
try {
|
|
455
462
|
return await r.sendEmailDigest({
|
|
456
463
|
smtp: {
|
|
@@ -467,10 +474,10 @@ async function mt() {
|
|
|
467
474
|
text: gt(e)
|
|
468
475
|
}), { kind: "sent", count: e.length };
|
|
469
476
|
} catch (o) {
|
|
470
|
-
return
|
|
477
|
+
return b.unshift(...e), { kind: "not-sent", reason: { kind: "send-failed", error: o } };
|
|
471
478
|
}
|
|
472
479
|
}
|
|
473
|
-
let
|
|
480
|
+
let ae = 0, ue = null;
|
|
474
481
|
function yt(t) {
|
|
475
482
|
const e = f.get();
|
|
476
483
|
if (!e.emailDigestEnabled) return !1;
|
|
@@ -486,26 +493,26 @@ function yt(t) {
|
|
|
486
493
|
return n === 1 && r === 9 && i === 0;
|
|
487
494
|
}
|
|
488
495
|
}
|
|
489
|
-
function
|
|
490
|
-
|
|
496
|
+
function zt() {
|
|
497
|
+
ue === null && (typeof window > "u" || (ue = window.setInterval(() => {
|
|
491
498
|
const t = /* @__PURE__ */ new Date();
|
|
492
499
|
if (!yt(t)) return;
|
|
493
500
|
const e = Math.floor(t.getTime() / 6e4);
|
|
494
|
-
e !==
|
|
501
|
+
e !== ae && (ae = e, mt().then((r) => {
|
|
495
502
|
r.kind === "not-sent" && r.reason.kind === "send-failed" && lt.warn("scheduled email digest failed", r.reason.error);
|
|
496
503
|
}));
|
|
497
504
|
}, 6e4)));
|
|
498
505
|
}
|
|
499
|
-
function
|
|
500
|
-
return
|
|
506
|
+
function Te() {
|
|
507
|
+
return he(f.get(), /* @__PURE__ */ new Date());
|
|
501
508
|
}
|
|
502
509
|
function x(t, e, r, i, n) {
|
|
503
|
-
const s = f.get(), o =
|
|
504
|
-
return
|
|
505
|
-
dismissed: i !== void 0 &&
|
|
506
|
-
remindSuppressed: i !== void 0 &&
|
|
507
|
-
sourceMuted:
|
|
508
|
-
inQuietHours:
|
|
510
|
+
const s = f.get(), o = Ue(t, e);
|
|
511
|
+
return Ie({ priority: r, recordTimeline: n }, s, {
|
|
512
|
+
dismissed: i !== void 0 && Oe(i),
|
|
513
|
+
remindSuppressed: i !== void 0 && ie(i) || ie(o),
|
|
514
|
+
sourceMuted: le(t),
|
|
515
|
+
inQuietHours: Te()
|
|
509
516
|
});
|
|
510
517
|
}
|
|
511
518
|
function vt(t, e, r, i) {
|
|
@@ -514,30 +521,30 @@ function vt(t, e, r, i) {
|
|
|
514
521
|
primary: i,
|
|
515
522
|
keepOpen: t.expireOnAction === !1,
|
|
516
523
|
onClick: () => {
|
|
517
|
-
|
|
524
|
+
Ne(r);
|
|
518
525
|
try {
|
|
519
526
|
t.onClick();
|
|
520
527
|
} finally {
|
|
521
528
|
const n = e();
|
|
522
|
-
t.expireOnAction !== !1 && n &&
|
|
529
|
+
t.expireOnAction !== !1 && n && de(n);
|
|
523
530
|
}
|
|
524
531
|
}
|
|
525
532
|
};
|
|
526
533
|
}
|
|
527
|
-
function
|
|
534
|
+
function R(t) {
|
|
528
535
|
var h, g;
|
|
529
536
|
const e = t.options.source ?? "general";
|
|
530
|
-
if (
|
|
531
|
-
|
|
537
|
+
if ($e(e, t.decision.showToast, le(e)), !t.decision.showToast) return null;
|
|
538
|
+
Ve(t.severity, Te());
|
|
532
539
|
const { options: r } = t, i = ((h = r.subtitle) == null ? void 0 : h.trim()) || ((g = r.description) == null ? void 0 : g.trim()), n = r.id !== void 0 ? String(r.id) : void 0, s = f.get(), o = r.markdown ?? s.markdownEnabled, c = [
|
|
533
540
|
...t.primaryAction ? [t.primaryAction] : [],
|
|
534
541
|
...r.actions ?? []
|
|
535
|
-
], u =
|
|
542
|
+
], u = Ze(
|
|
536
543
|
r.source,
|
|
537
544
|
r.defaultRoute
|
|
538
545
|
);
|
|
539
546
|
let l = null;
|
|
540
|
-
const a =
|
|
547
|
+
const a = ee({
|
|
541
548
|
severity: t.severity,
|
|
542
549
|
title: t.title,
|
|
543
550
|
...i ? { body: i } : {},
|
|
@@ -556,7 +563,7 @@ function $(t) {
|
|
|
556
563
|
)
|
|
557
564
|
} : {}
|
|
558
565
|
});
|
|
559
|
-
if (l = a,
|
|
566
|
+
if (l = a, Re(a)) return a;
|
|
560
567
|
const p = N(t.title), y = i ? N(i) : void 0, d = {
|
|
561
568
|
title: p,
|
|
562
569
|
...y ? { body: y } : {},
|
|
@@ -567,8 +574,8 @@ function $(t) {
|
|
|
567
574
|
return pt(d), ut(d), dt({ ...d, at: Date.now() }), a;
|
|
568
575
|
}
|
|
569
576
|
function pt(t) {
|
|
570
|
-
const e =
|
|
571
|
-
e.fire &&
|
|
577
|
+
const e = Ge(t, f.get());
|
|
578
|
+
e.fire && fe({
|
|
572
579
|
title: t.title,
|
|
573
580
|
...t.body ? { body: t.body } : {},
|
|
574
581
|
severity: t.severity,
|
|
@@ -579,13 +586,13 @@ function pt(t) {
|
|
|
579
586
|
function T(t) {
|
|
580
587
|
return typeof t == "string" ? t : t instanceof Error ? t.message : t == null ? "" : String(t);
|
|
581
588
|
}
|
|
582
|
-
function
|
|
589
|
+
function xe(t, e, r, i = ge) {
|
|
583
590
|
var a, p, y;
|
|
584
591
|
const n = T(t), s = (a = e.title) == null ? void 0 : a.trim(), o = ((p = e.subtitle) == null ? void 0 : p.trim()) || ((y = e.description) == null ? void 0 : y.trim());
|
|
585
592
|
let c = s ?? n, u = o;
|
|
586
593
|
if (r && !s) {
|
|
587
594
|
const d = r.helpers.formatCode(r.code), h = new RegExp(
|
|
588
|
-
`^\\s*${
|
|
595
|
+
`^\\s*${ze(d)}\\s*[:-]\\s*(.+)$`,
|
|
589
596
|
"i"
|
|
590
597
|
), g = n.match(h);
|
|
591
598
|
if (g != null && g[1]) {
|
|
@@ -606,15 +613,15 @@ ${u}` : S;
|
|
|
606
613
|
}
|
|
607
614
|
return { text: n, displayText: c, bodyText: u, primaryAction: l };
|
|
608
615
|
}
|
|
609
|
-
function
|
|
610
|
-
return
|
|
616
|
+
function q(t) {
|
|
617
|
+
return Xe(
|
|
611
618
|
t,
|
|
612
619
|
f.get().notificationRules
|
|
613
620
|
);
|
|
614
621
|
}
|
|
615
622
|
const E = {
|
|
616
623
|
success(t, e = {}) {
|
|
617
|
-
const r = T(t), i = f.get(), n = e.source ?? "general", s = e.priority ?? "default", o =
|
|
624
|
+
const r = T(t), i = f.get(), n = e.source ?? "general", s = e.priority ?? "default", o = q({
|
|
618
625
|
severity: "success",
|
|
619
626
|
title: r,
|
|
620
627
|
priority: s,
|
|
@@ -628,14 +635,14 @@ const E = {
|
|
|
628
635
|
e.dontShowAgainKey,
|
|
629
636
|
e.recordTimeline
|
|
630
637
|
);
|
|
631
|
-
if (c.recordTimeline &&
|
|
638
|
+
if (c.recordTimeline && w(
|
|
632
639
|
o.title,
|
|
633
640
|
o.severity === "success" ? "success" : o.severity,
|
|
634
641
|
o.source,
|
|
635
642
|
o.priority,
|
|
636
|
-
|
|
643
|
+
$(e.action)
|
|
637
644
|
), !i.showSuccessToasts && o.priority !== "urgent") return "";
|
|
638
|
-
const u =
|
|
645
|
+
const u = R({
|
|
639
646
|
severity: o.severity,
|
|
640
647
|
title: o.title,
|
|
641
648
|
options: { ...e, source: o.source, priority: o.priority },
|
|
@@ -645,10 +652,10 @@ const E = {
|
|
|
645
652
|
return (u == null ? void 0 : u.id) ?? "";
|
|
646
653
|
},
|
|
647
654
|
error(t, e = !1) {
|
|
648
|
-
const r = T(t), i = typeof e == "boolean" ? {} : e, n = i.vendorError === void 0 ? null :
|
|
655
|
+
const r = T(t), i = typeof e == "boolean" ? {} : e, n = i.vendorError === void 0 ? null : Z(i.vendorError), s = xe(r, i, n), o = n !== null;
|
|
649
656
|
let c = s.displayText;
|
|
650
657
|
const u = s.bodyText, l = u ? `${c}
|
|
651
|
-
${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().vendorCodesAreUrgent, y = i.priority ?? (p ? "urgent" : "default"), d =
|
|
658
|
+
${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().vendorCodesAreUrgent, y = i.priority ?? (p ? "urgent" : "default"), d = q({
|
|
652
659
|
severity: "error",
|
|
653
660
|
title: c,
|
|
654
661
|
priority: y,
|
|
@@ -663,15 +670,15 @@ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().ve
|
|
|
663
670
|
i.dontShowAgainKey,
|
|
664
671
|
i.recordTimeline
|
|
665
672
|
);
|
|
666
|
-
S.recordTimeline &&
|
|
673
|
+
S.recordTimeline && w(
|
|
667
674
|
l,
|
|
668
675
|
d.severity,
|
|
669
676
|
h,
|
|
670
677
|
g,
|
|
671
|
-
|
|
678
|
+
$(i.action),
|
|
672
679
|
i.vendorError
|
|
673
680
|
);
|
|
674
|
-
const D =
|
|
681
|
+
const D = R({
|
|
675
682
|
severity: d.severity,
|
|
676
683
|
title: c,
|
|
677
684
|
// bodyText overrides any caller-provided description when the ORA
|
|
@@ -690,7 +697,7 @@ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().ve
|
|
|
690
697
|
return (D == null ? void 0 : D.id) ?? "";
|
|
691
698
|
},
|
|
692
699
|
info(t, e = {}) {
|
|
693
|
-
const r = T(t), i = e.source ?? "general", n = e.priority ?? "default", s =
|
|
700
|
+
const r = T(t), i = e.source ?? "general", n = e.priority ?? "default", s = q({
|
|
694
701
|
severity: "info",
|
|
695
702
|
title: r,
|
|
696
703
|
priority: n,
|
|
@@ -704,14 +711,14 @@ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().ve
|
|
|
704
711
|
e.dontShowAgainKey,
|
|
705
712
|
e.recordTimeline
|
|
706
713
|
);
|
|
707
|
-
o.recordTimeline &&
|
|
714
|
+
o.recordTimeline && w(
|
|
708
715
|
s.title,
|
|
709
716
|
s.severity,
|
|
710
717
|
s.source,
|
|
711
718
|
s.priority,
|
|
712
|
-
|
|
719
|
+
$(e.action)
|
|
713
720
|
);
|
|
714
|
-
const c =
|
|
721
|
+
const c = R({
|
|
715
722
|
severity: s.severity,
|
|
716
723
|
title: s.title,
|
|
717
724
|
options: { ...e, source: s.source, priority: s.priority },
|
|
@@ -721,7 +728,7 @@ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().ve
|
|
|
721
728
|
return (c == null ? void 0 : c.id) ?? "";
|
|
722
729
|
},
|
|
723
730
|
warning(t, e = {}) {
|
|
724
|
-
const r = T(t), i = e.source ?? "general", n = e.priority ?? "default", s =
|
|
731
|
+
const r = T(t), i = e.source ?? "general", n = e.priority ?? "default", s = q({
|
|
725
732
|
severity: "warning",
|
|
726
733
|
title: r,
|
|
727
734
|
priority: n,
|
|
@@ -735,14 +742,14 @@ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().ve
|
|
|
735
742
|
e.dontShowAgainKey,
|
|
736
743
|
e.recordTimeline
|
|
737
744
|
);
|
|
738
|
-
o.recordTimeline &&
|
|
745
|
+
o.recordTimeline && w(
|
|
739
746
|
s.title,
|
|
740
747
|
s.severity,
|
|
741
748
|
s.source,
|
|
742
749
|
s.priority,
|
|
743
|
-
|
|
750
|
+
$(e.action)
|
|
744
751
|
);
|
|
745
|
-
const c =
|
|
752
|
+
const c = R({
|
|
746
753
|
severity: s.severity,
|
|
747
754
|
title: s.title,
|
|
748
755
|
options: { ...e, source: s.source, priority: s.priority },
|
|
@@ -759,14 +766,14 @@ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().ve
|
|
|
759
766
|
e.dontShowAgainKey,
|
|
760
767
|
e.recordTimeline
|
|
761
768
|
);
|
|
762
|
-
if (o.recordTimeline &&
|
|
769
|
+
if (o.recordTimeline && w(
|
|
763
770
|
r,
|
|
764
771
|
"success",
|
|
765
772
|
n,
|
|
766
773
|
s,
|
|
767
|
-
|
|
768
|
-
), i.notificationsEnabled && i.soundOnQueryCompletion && !(i.quietHoursMutesSounds &&
|
|
769
|
-
const c =
|
|
774
|
+
$(e.action)
|
|
775
|
+
), i.notificationsEnabled && i.soundOnQueryCompletion && !(i.quietHoursMutesSounds && he(i, /* @__PURE__ */ new Date())) && Le(), !i.showSuccessToasts && s !== "urgent") return "";
|
|
776
|
+
const c = R({
|
|
770
777
|
severity: "success",
|
|
771
778
|
title: r,
|
|
772
779
|
options: { ...e, source: n, priority: s },
|
|
@@ -788,7 +795,7 @@ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().ve
|
|
|
788
795
|
e.dontShowAgainKey,
|
|
789
796
|
e.recordTimeline
|
|
790
797
|
);
|
|
791
|
-
if (o.recordTimeline &&
|
|
798
|
+
if (o.recordTimeline && w(r, "info", n, s), !o.showToast)
|
|
792
799
|
return {
|
|
793
800
|
update: () => {
|
|
794
801
|
},
|
|
@@ -799,7 +806,7 @@ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().ve
|
|
|
799
806
|
dismiss: () => {
|
|
800
807
|
}
|
|
801
808
|
};
|
|
802
|
-
const c = e.id !== void 0 ? String(e.id) : `progress-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, u =
|
|
809
|
+
const c = e.id !== void 0 ? String(e.id) : `progress-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, u = ee({
|
|
803
810
|
id: c,
|
|
804
811
|
severity: "info",
|
|
805
812
|
title: r,
|
|
@@ -817,7 +824,7 @@ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().ve
|
|
|
817
824
|
},
|
|
818
825
|
success: (l) => {
|
|
819
826
|
const a = l ?? r;
|
|
820
|
-
o.recordTimeline &&
|
|
827
|
+
o.recordTimeline && w(a, "success", n, s), u.update({
|
|
821
828
|
title: a,
|
|
822
829
|
severity: "success",
|
|
823
830
|
sticky: !1,
|
|
@@ -826,7 +833,7 @@ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().ve
|
|
|
826
833
|
},
|
|
827
834
|
fail: (l) => {
|
|
828
835
|
const a = l ?? r;
|
|
829
|
-
o.recordTimeline &&
|
|
836
|
+
o.recordTimeline && w(a, "error", n, s), u.update({
|
|
830
837
|
title: a,
|
|
831
838
|
severity: "error",
|
|
832
839
|
sticky: !0,
|
|
@@ -845,14 +852,14 @@ function v(t, e) {
|
|
|
845
852
|
build: e
|
|
846
853
|
};
|
|
847
854
|
}
|
|
848
|
-
function
|
|
855
|
+
function Gt(t, e, r) {
|
|
849
856
|
return {
|
|
850
857
|
id: t,
|
|
851
858
|
notification: e,
|
|
852
859
|
resolve: () => e.build(r)
|
|
853
860
|
};
|
|
854
861
|
}
|
|
855
|
-
function
|
|
862
|
+
function K(t, e) {
|
|
856
863
|
return {
|
|
857
864
|
message: t,
|
|
858
865
|
...e != null && e.title ? { title: e.title } : {},
|
|
@@ -893,7 +900,7 @@ v(
|
|
|
893
900
|
},
|
|
894
901
|
() => ({ message: m("Could not copy to clipboard.") })
|
|
895
902
|
);
|
|
896
|
-
const
|
|
903
|
+
const Jt = v(
|
|
897
904
|
{
|
|
898
905
|
id: "notifications.timeline.replay.error",
|
|
899
906
|
source: "general",
|
|
@@ -905,8 +912,8 @@ const Yt = v(
|
|
|
905
912
|
({
|
|
906
913
|
timelineMessage: t,
|
|
907
914
|
options: e
|
|
908
|
-
}) =>
|
|
909
|
-
),
|
|
915
|
+
}) => K(t, e)
|
|
916
|
+
), Zt = v(
|
|
910
917
|
{
|
|
911
918
|
id: "notifications.timeline.replay.warning",
|
|
912
919
|
source: "general",
|
|
@@ -918,8 +925,8 @@ const Yt = v(
|
|
|
918
925
|
({
|
|
919
926
|
timelineMessage: t,
|
|
920
927
|
options: e
|
|
921
|
-
}) =>
|
|
922
|
-
),
|
|
928
|
+
}) => K(t, e)
|
|
929
|
+
), er = v(
|
|
923
930
|
{
|
|
924
931
|
id: "notifications.timeline.replay.success",
|
|
925
932
|
source: "general",
|
|
@@ -931,8 +938,8 @@ const Yt = v(
|
|
|
931
938
|
({
|
|
932
939
|
timelineMessage: t,
|
|
933
940
|
options: e
|
|
934
|
-
}) =>
|
|
935
|
-
),
|
|
941
|
+
}) => K(t, e)
|
|
942
|
+
), tr = v(
|
|
936
943
|
{
|
|
937
944
|
id: "notifications.timeline.replay.info",
|
|
938
945
|
source: "general",
|
|
@@ -944,8 +951,8 @@ const Yt = v(
|
|
|
944
951
|
({
|
|
945
952
|
timelineMessage: t,
|
|
946
953
|
options: e
|
|
947
|
-
}) =>
|
|
948
|
-
),
|
|
954
|
+
}) => K(t, e)
|
|
955
|
+
), rr = v(
|
|
949
956
|
{
|
|
950
957
|
id: "notifications.timeline.exported",
|
|
951
958
|
source: "general",
|
|
@@ -957,7 +964,7 @@ const Yt = v(
|
|
|
957
964
|
({ entryCount: t }) => ({
|
|
958
965
|
message: m("Exported {count} notifications", { count: t })
|
|
959
966
|
})
|
|
960
|
-
),
|
|
967
|
+
), ir = v(
|
|
961
968
|
{
|
|
962
969
|
id: "notifications.timeline.export.failed",
|
|
963
970
|
source: "general",
|
|
@@ -968,7 +975,7 @@ const Yt = v(
|
|
|
968
975
|
},
|
|
969
976
|
({ cause: t }) => ({
|
|
970
977
|
message: m("Export failed: {message}", {
|
|
971
|
-
message:
|
|
978
|
+
message: _(t, m("Operation failed."))
|
|
972
979
|
}),
|
|
973
980
|
cause: t
|
|
974
981
|
})
|
|
@@ -983,11 +990,11 @@ const Yt = v(
|
|
|
983
990
|
},
|
|
984
991
|
({ cause: t }) => ({
|
|
985
992
|
message: m("The action could not be completed: {message}", {
|
|
986
|
-
message:
|
|
993
|
+
message: _(t, m("Operation failed."))
|
|
987
994
|
}),
|
|
988
995
|
cause: t
|
|
989
996
|
})
|
|
990
|
-
),
|
|
997
|
+
), nr = v(
|
|
991
998
|
{
|
|
992
999
|
id: "notifications.settings.update.failed",
|
|
993
1000
|
source: "settings",
|
|
@@ -997,16 +1004,16 @@ const Yt = v(
|
|
|
997
1004
|
kind: "message"
|
|
998
1005
|
},
|
|
999
1006
|
({ cause: t }) => ({
|
|
1000
|
-
message:
|
|
1007
|
+
message: _(t, m("Operation failed.")),
|
|
1001
1008
|
cause: t
|
|
1002
1009
|
})
|
|
1003
1010
|
);
|
|
1004
|
-
function
|
|
1011
|
+
function Ee(t) {
|
|
1005
1012
|
if (!("cause" in t)) return t;
|
|
1006
|
-
const { cause: e, ...r } = t, i =
|
|
1013
|
+
const { cause: e, ...r } = t, i = Me(e).map(wt);
|
|
1007
1014
|
return i.length === 0 ? r : { ...r, actions: [...r.actions ?? [], ...i] };
|
|
1008
1015
|
}
|
|
1009
|
-
function
|
|
1016
|
+
function wt(t) {
|
|
1010
1017
|
return {
|
|
1011
1018
|
label: t.label,
|
|
1012
1019
|
onClick: () => {
|
|
@@ -1016,7 +1023,7 @@ function bt(t) {
|
|
|
1016
1023
|
}
|
|
1017
1024
|
};
|
|
1018
1025
|
}
|
|
1019
|
-
function
|
|
1026
|
+
function ke(t, e) {
|
|
1020
1027
|
return {
|
|
1021
1028
|
...t.severity === "error" && t.source === "general" ? {} : { source: t.source },
|
|
1022
1029
|
...t.severity === "error" && t.priority === "default" ? {} : { priority: t.priority },
|
|
@@ -1033,11 +1040,11 @@ function Te(t, e) {
|
|
|
1033
1040
|
...e.id !== void 0 ? { id: e.id } : {}
|
|
1034
1041
|
};
|
|
1035
1042
|
}
|
|
1036
|
-
function
|
|
1037
|
-
const r =
|
|
1043
|
+
function bt(t, e) {
|
|
1044
|
+
const r = Ee(e);
|
|
1038
1045
|
if (t.delivery === "os-only") {
|
|
1039
1046
|
const n = r.title ?? r.message, s = r.description ?? r.subtitle ?? (r.title ? r.message : void 0);
|
|
1040
|
-
return
|
|
1047
|
+
return fe({
|
|
1041
1048
|
title: n,
|
|
1042
1049
|
...s ? { body: s } : {},
|
|
1043
1050
|
severity: t.severity,
|
|
@@ -1045,7 +1052,7 @@ function wt(t, e) {
|
|
|
1045
1052
|
onlyWhenUnfocused: !1
|
|
1046
1053
|
}), "";
|
|
1047
1054
|
}
|
|
1048
|
-
const i =
|
|
1055
|
+
const i = ke(t, r);
|
|
1049
1056
|
if (t.kind === "query-completed")
|
|
1050
1057
|
return E.queryCompleted(r.message, i);
|
|
1051
1058
|
switch (t.severity) {
|
|
@@ -1066,27 +1073,27 @@ function wt(t, e) {
|
|
|
1066
1073
|
}
|
|
1067
1074
|
}
|
|
1068
1075
|
function St(t, e) {
|
|
1069
|
-
const r =
|
|
1076
|
+
const r = Ee(e);
|
|
1070
1077
|
if (t.delivery !== "in-app")
|
|
1071
|
-
throw new
|
|
1078
|
+
throw new J(
|
|
1072
1079
|
"Progress notifications require an in-app catalog definition."
|
|
1073
1080
|
);
|
|
1074
1081
|
return E.progress(r.message, {
|
|
1075
|
-
...
|
|
1082
|
+
...ke(t, r),
|
|
1076
1083
|
...r.onCancel ? { onCancel: r.onCancel } : {}
|
|
1077
1084
|
});
|
|
1078
1085
|
}
|
|
1079
1086
|
const Tt = {
|
|
1080
|
-
notify:
|
|
1087
|
+
notify: bt,
|
|
1081
1088
|
progress: St,
|
|
1082
|
-
dismiss: (t) =>
|
|
1089
|
+
dismiss: (t) => de(t)
|
|
1083
1090
|
};
|
|
1084
1091
|
function xt(t, e, r, i) {
|
|
1085
1092
|
return t === "error" && e === "default" && r && i ? "urgent" : e;
|
|
1086
1093
|
}
|
|
1087
|
-
function
|
|
1094
|
+
function sr(t, e) {
|
|
1088
1095
|
var l;
|
|
1089
|
-
const r = e.vendorError === void 0 || !
|
|
1096
|
+
const r = e.vendorError === void 0 || !qe() ? null : Z(e.vendorError), i = t.severity === "error" ? xe(
|
|
1090
1097
|
e.message,
|
|
1091
1098
|
{
|
|
1092
1099
|
...e.title ? { title: e.title } : {},
|
|
@@ -1095,14 +1102,14 @@ function tr(t, e) {
|
|
|
1095
1102
|
...e.action ? { action: e.action } : {}
|
|
1096
1103
|
},
|
|
1097
1104
|
r,
|
|
1098
|
-
|
|
1105
|
+
ge
|
|
1099
1106
|
) : null, n = (i == null ? void 0 : i.displayText) ?? e.title ?? e.message, s = (i == null ? void 0 : i.bodyText) ?? e.subtitle ?? e.description, o = (i == null ? void 0 : i.primaryAction) ?? e.action, c = t.severity === "error" && t.source === "general" && r !== null ? "vendor-error" : t.source, u = xt(
|
|
1100
1107
|
t.severity,
|
|
1101
1108
|
t.priority,
|
|
1102
1109
|
r !== null,
|
|
1103
1110
|
f.get().vendorCodesAreUrgent
|
|
1104
1111
|
);
|
|
1105
|
-
return
|
|
1112
|
+
return ee({
|
|
1106
1113
|
severity: t.severity,
|
|
1107
1114
|
title: N(n),
|
|
1108
1115
|
...s ? { body: N(s) } : {},
|
|
@@ -1131,80 +1138,86 @@ function tr(t, e) {
|
|
|
1131
1138
|
} : {}
|
|
1132
1139
|
}).id;
|
|
1133
1140
|
}
|
|
1134
|
-
let
|
|
1135
|
-
function
|
|
1136
|
-
|
|
1141
|
+
let Ae = null;
|
|
1142
|
+
function or(t) {
|
|
1143
|
+
Ae = t;
|
|
1137
1144
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return
|
|
1145
|
+
function re() {
|
|
1146
|
+
return Ae ?? Tt;
|
|
1140
1147
|
}
|
|
1141
1148
|
function Et(t, e) {
|
|
1142
|
-
return
|
|
1149
|
+
return re().notify(t, t.build(e));
|
|
1143
1150
|
}
|
|
1144
|
-
function
|
|
1151
|
+
function cr(t, e) {
|
|
1145
1152
|
if (t.kind !== "progress")
|
|
1146
|
-
throw new
|
|
1153
|
+
throw new J(
|
|
1147
1154
|
"catalogNotify: a message definition cannot be sent with progressFromCatalog."
|
|
1148
1155
|
);
|
|
1149
|
-
return
|
|
1156
|
+
return re().progress(t, t.build(e));
|
|
1150
1157
|
}
|
|
1151
|
-
function
|
|
1158
|
+
function ar(t) {
|
|
1152
1159
|
var e, r;
|
|
1153
|
-
(r = (e =
|
|
1160
|
+
(r = (e = re()).dismiss) == null || r.call(e, t);
|
|
1154
1161
|
}
|
|
1155
|
-
function
|
|
1162
|
+
function ur(t) {
|
|
1156
1163
|
return t.resolve();
|
|
1157
1164
|
}
|
|
1158
1165
|
export {
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1166
|
+
tr as $,
|
|
1167
|
+
he as A,
|
|
1168
|
+
Ke as B,
|
|
1169
|
+
Ut as C,
|
|
1170
|
+
Et as D,
|
|
1171
|
+
Le as E,
|
|
1172
|
+
Ve as F,
|
|
1173
|
+
cr as G,
|
|
1174
|
+
jt as H,
|
|
1175
|
+
It as I,
|
|
1176
|
+
xt as J,
|
|
1177
|
+
ur as K,
|
|
1178
|
+
_e as L,
|
|
1179
|
+
Bt as M,
|
|
1180
|
+
Lt as N,
|
|
1181
|
+
Ge as O,
|
|
1182
|
+
sr as P,
|
|
1183
|
+
Mt as Q,
|
|
1184
|
+
Ot as R,
|
|
1185
|
+
se as S,
|
|
1186
|
+
$ as T,
|
|
1187
|
+
E as U,
|
|
1188
|
+
_t as V,
|
|
1189
|
+
zt as W,
|
|
1190
|
+
Ee as X,
|
|
1191
|
+
Jt as Y,
|
|
1192
|
+
Zt as Z,
|
|
1193
|
+
er as _,
|
|
1194
|
+
Ht as a,
|
|
1195
|
+
rr as a0,
|
|
1196
|
+
ir as a1,
|
|
1197
|
+
nr as a2,
|
|
1198
|
+
Yt as b,
|
|
1199
|
+
Fe as c,
|
|
1200
|
+
w as d,
|
|
1201
|
+
Xe as e,
|
|
1189
1202
|
Tt as f,
|
|
1190
|
-
|
|
1191
|
-
|
|
1203
|
+
Se as g,
|
|
1204
|
+
Kt as h,
|
|
1192
1205
|
qt as i,
|
|
1193
1206
|
v as j,
|
|
1194
|
-
|
|
1207
|
+
Gt as k,
|
|
1195
1208
|
Vt as l,
|
|
1196
|
-
|
|
1197
|
-
|
|
1209
|
+
Xt as m,
|
|
1210
|
+
ar as n,
|
|
1198
1211
|
Pt as o,
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1212
|
+
or as p,
|
|
1213
|
+
Wt as q,
|
|
1214
|
+
Ft as r,
|
|
1215
|
+
Qt as s,
|
|
1216
|
+
xe as t,
|
|
1217
|
+
Nt as u,
|
|
1218
|
+
R as v,
|
|
1219
|
+
mt as w,
|
|
1220
|
+
et as x,
|
|
1221
|
+
tt as y,
|
|
1222
|
+
Rt as z
|
|
1210
1223
|
};
|