@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,31 +1,31 @@
|
|
|
1
|
-
import { insert as c, createComponent as
|
|
2
|
-
import { createSignal as
|
|
1
|
+
import { insert as c, createComponent as n, effect as I, className as u, memo as ue, template as W, delegateEvents as Ee, use as xe, setAttribute as Y, Portal as vt, mergeProps as Ht, setStyleProperty as De, addEventListener as pe, style as cn } from "solid-js/web";
|
|
2
|
+
import { createSignal as Q, onCleanup as me, Show as D, createEffect as $e, on as Ft, createUniqueId as ge, getOwner as sn, createComputed as dn, onMount as It, For as Ae, splitProps as un, createMemo as ve } from "solid-js";
|
|
3
3
|
import { K as Nt } from "./Kbd-DF6Tvp8V.js";
|
|
4
|
-
import { s as mn, r as
|
|
5
|
-
import { B as he } from "./Button-
|
|
6
|
-
import { I as $t, P as qe, F as vn } from "./Input-
|
|
7
|
-
import { T as hn } from "./Textarea-
|
|
8
|
-
import { A as
|
|
9
|
-
import { O as
|
|
10
|
-
import { a as
|
|
11
|
-
import { r as nt, b as
|
|
12
|
-
import { t as y } from "./i18n-
|
|
4
|
+
import { s as mn, r as Mt, O as Ze } from "./dialogFocusRestore-B4ggeVAM.js";
|
|
5
|
+
import { B as he } from "./Button-Db6wMY-3.js";
|
|
6
|
+
import { I as $t, P as qe, F as vn } from "./Input-gq8EcQao.js";
|
|
7
|
+
import { T as hn } from "./Textarea-BueHsjOk.js";
|
|
8
|
+
import { A as Vt, r as ht, t as et } from "./Modal-C4l_yuY9.js";
|
|
9
|
+
import { O as Be } from "./OverlayScrollArea-c8Za77qs.js";
|
|
10
|
+
import { a as tt, g as Ke } from "./windowRegistry-Bk5lXIVd.js";
|
|
11
|
+
import { r as nt, b as Qe, A as Dt, l as gn } from "./anchoredLayout-FC-qv8xm.js";
|
|
12
|
+
import { t as y } from "./i18n-D9k9xwuD.js";
|
|
13
13
|
import { i as ye } from "./keys-Bfgdfak_.js";
|
|
14
|
-
import { i as te, P as Ye } from "./GuidedTour-
|
|
15
|
-
import { t as ut, c as fn } from "./tooltipCoordinator-
|
|
16
|
-
import { VpCheck as
|
|
14
|
+
import { i as te, P as Ye } from "./GuidedTour-lsljVkPL.js";
|
|
15
|
+
import { t as ut, c as fn } from "./tooltipCoordinator-Zim5pWzk.js";
|
|
16
|
+
import { VpCheck as qt, VpChevronRight as bn, VpClose as xt, VpChevronDown as pt, VpMinus as _n, VpArrowsMinimize as wn, VpArrowsMaximize as kn, VpExternalLink as Cn, VpKeyboard as yn } from "@vokril/icons";
|
|
17
17
|
import { u as $n, D as xn } from "./DesktopContextMenuContext-DJ3PnqAv.js";
|
|
18
18
|
import { o as Ue } from "./ownerWindow-9mx_LD47.js";
|
|
19
19
|
import { u as gt } from "./overlayStack-DvGdPMdq.js";
|
|
20
|
-
import { P as
|
|
21
|
-
import { h as ft, C as
|
|
22
|
-
import { n as
|
|
23
|
-
import { d as At } from "./rendererLogging-
|
|
24
|
-
import { E as
|
|
25
|
-
import { c as
|
|
26
|
-
import { c as An, b as
|
|
27
|
-
const
|
|
28
|
-
wrapper:
|
|
20
|
+
import { P as Sn } from "./Popover-C24npAQ7.js";
|
|
21
|
+
import { h as ft, C as Ln, f as In } from "./format-BS7oDguE.js";
|
|
22
|
+
import { n as Mn } from "./prefersReducedMotion-B2mMn01s.js";
|
|
23
|
+
import { d as At } from "./rendererLogging-gAhiHWkA.js";
|
|
24
|
+
import { E as Ne } from "./EmptyState-Dph6HU74.js";
|
|
25
|
+
import { c as Dn } from "./tablistKeyboard-AxJcXuc5.js";
|
|
26
|
+
import { c as An, b as En } from "./settingsSearchContributor-DWP5dwn3.js";
|
|
27
|
+
const Pn = "vk_wrapper_u7cKP", Tn = "vk_tooltip_ANskC", Rn = "vk_placementTop_Q5EkL", Wn = "vk_placementBottom_VVLuu", On = "vk_placementLeft_uKF0H", Bn = "vk_placementRight_ObusA", Ve = {
|
|
28
|
+
wrapper: Pn,
|
|
29
29
|
tooltip: Tn,
|
|
30
30
|
placementTop: Rn,
|
|
31
31
|
placementBottom: Wn,
|
|
@@ -33,19 +33,19 @@ const En = "vk_wrapper_u7cKP", Tn = "vk_tooltip_ANskC", Rn = "vk_placementTop_Q5
|
|
|
33
33
|
placementRight: Bn
|
|
34
34
|
};
|
|
35
35
|
var zn = /* @__PURE__ */ W("<div role=tooltip><span>"), Hn = /* @__PURE__ */ W("<div>");
|
|
36
|
-
const
|
|
37
|
-
const [t,
|
|
38
|
-
let
|
|
39
|
-
const
|
|
40
|
-
e.disabled || (s(),
|
|
41
|
-
},
|
|
42
|
-
s(),
|
|
36
|
+
const oc = (e) => {
|
|
37
|
+
const [t, r] = Q(!1);
|
|
38
|
+
let o;
|
|
39
|
+
const i = () => e.placement ?? "top", a = () => e.delayMs ?? 400, k = () => {
|
|
40
|
+
e.disabled || (s(), o = window.setTimeout(() => r(!0), a()));
|
|
41
|
+
}, b = () => {
|
|
42
|
+
s(), r(!1);
|
|
43
43
|
}, s = () => {
|
|
44
|
-
|
|
44
|
+
o !== void 0 && (window.clearTimeout(o), o = void 0);
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
me(s);
|
|
47
47
|
const l = () => {
|
|
48
|
-
switch (
|
|
48
|
+
switch (i()) {
|
|
49
49
|
case "bottom":
|
|
50
50
|
return Ve.placementBottom;
|
|
51
51
|
case "left":
|
|
@@ -59,18 +59,18 @@ const ic = (e) => {
|
|
|
59
59
|
};
|
|
60
60
|
return (() => {
|
|
61
61
|
var h = Hn();
|
|
62
|
-
return h.$$focusout =
|
|
62
|
+
return h.$$focusout = b, h.$$focusin = k, h.addEventListener("pointerleave", b), h.addEventListener("pointerenter", k), c(h, () => e.children, null), c(h, n(D, {
|
|
63
63
|
get when() {
|
|
64
|
-
return
|
|
64
|
+
return ue(() => !!t())() && !e.disabled;
|
|
65
65
|
},
|
|
66
66
|
get children() {
|
|
67
67
|
var v = zn(), $ = v.firstChild;
|
|
68
|
-
return c($, () => e.content), c(v,
|
|
68
|
+
return c($, () => e.content), c(v, n(D, {
|
|
69
69
|
get when() {
|
|
70
70
|
return e.shortcut;
|
|
71
71
|
},
|
|
72
72
|
get children() {
|
|
73
|
-
return
|
|
73
|
+
return n(Nt, {
|
|
74
74
|
size: "xs",
|
|
75
75
|
get children() {
|
|
76
76
|
return e.shortcut;
|
|
@@ -82,32 +82,32 @@ const ic = (e) => {
|
|
|
82
82
|
}), null), I(() => u(h, `${Ve.wrapper} ${e.class ?? ""}`)), h;
|
|
83
83
|
})();
|
|
84
84
|
};
|
|
85
|
-
|
|
85
|
+
Ee(["focusin", "focusout"]);
|
|
86
86
|
function rt(e) {
|
|
87
|
-
let t = null,
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
|
|
87
|
+
let t = null, r = null, o = null;
|
|
88
|
+
const i = () => e.ownerDocument(), a = () => {
|
|
89
|
+
r === null && (r = i().activeElement);
|
|
90
|
+
}, k = () => {
|
|
91
|
+
o == null || o(), o = null;
|
|
92
92
|
};
|
|
93
93
|
return $e(
|
|
94
94
|
Ft(
|
|
95
95
|
() => e.open(),
|
|
96
|
-
(
|
|
97
|
-
if (
|
|
98
|
-
t !== null &&
|
|
96
|
+
(b, s) => {
|
|
97
|
+
if (b) {
|
|
98
|
+
t !== null && o === null && (o = Mn(t));
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
101
|
-
mn(s,
|
|
101
|
+
mn(s, b) && (k(), Mt(r), r = null, t = null);
|
|
102
102
|
}
|
|
103
103
|
)
|
|
104
|
-
),
|
|
105
|
-
|
|
104
|
+
), me(() => {
|
|
105
|
+
k(), Mt(r), r = null, t = null;
|
|
106
106
|
}), {
|
|
107
|
-
captureDialog: (
|
|
108
|
-
t =
|
|
107
|
+
captureDialog: (b) => {
|
|
108
|
+
t = b, a();
|
|
109
109
|
},
|
|
110
|
-
captureReturnFocus:
|
|
110
|
+
captureReturnFocus: a
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
function ot() {
|
|
@@ -117,17 +117,17 @@ function ot() {
|
|
|
117
117
|
e = t;
|
|
118
118
|
},
|
|
119
119
|
shouldCloseOnClick(t) {
|
|
120
|
-
const
|
|
121
|
-
return e = !1,
|
|
120
|
+
const r = e;
|
|
121
|
+
return e = !1, r && t;
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
-
const Fn = "vk_overlay_7-umT", Nn = "vk_dialog_3YL-7",
|
|
125
|
+
const Fn = "vk_overlay_7-umT", Nn = "vk_dialog_3YL-7", Vn = "vk_header_asYMs", qn = "vk_title_0fm8I vk_titleLg_Iswm3", pn = "vk_body_U-3RF", Kn = "vk_message_UsUIn", Yn = "vk_promptField_jlrF3", Un = "vk_footer_orvoX", jn = "vk_codeScroll_rzK59", Gn = "vk_code_6rso-", Xn = "vk_codePre_Lj6QF", ne = {
|
|
126
126
|
overlay: Fn,
|
|
127
127
|
dialog: Nn,
|
|
128
|
-
header:
|
|
129
|
-
title:
|
|
130
|
-
body:
|
|
128
|
+
header: Vn,
|
|
129
|
+
title: qn,
|
|
130
|
+
body: pn,
|
|
131
131
|
message: Kn,
|
|
132
132
|
promptField: Yn,
|
|
133
133
|
footer: Un,
|
|
@@ -136,77 +136,77 @@ const Fn = "vk_overlay_7-umT", Nn = "vk_dialog_3YL-7", pn = "vk_header_asYMs", V
|
|
|
136
136
|
codePre: Xn
|
|
137
137
|
};
|
|
138
138
|
var Kt = /* @__PURE__ */ W("<div tabindex=-1><div role=alertdialog aria-modal=true tabindex=-1><div><h3></h3></div><div><p></p></div><div>"), Qn = /* @__PURE__ */ W("<pre><code>"), Jn = /* @__PURE__ */ W("<p>"), Zn = /* @__PURE__ */ W("<div tabindex=-1><div role=dialog aria-modal=true tabindex=-1><div><h3></h3></div><div></div><div>");
|
|
139
|
-
const je = (e) => ((e == null ? void 0 : e()) ??
|
|
140
|
-
function
|
|
141
|
-
const t = ge(),
|
|
139
|
+
const je = (e) => ((e == null ? void 0 : e()) ?? tt().window).document;
|
|
140
|
+
function ic(e) {
|
|
141
|
+
const t = ge(), r = ge(), [o, i] = Q(0);
|
|
142
142
|
$e(() => {
|
|
143
|
-
var
|
|
143
|
+
var E;
|
|
144
144
|
if (!e.open()) {
|
|
145
|
-
|
|
145
|
+
i(0);
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
148
|
const $ = e.confirmDelaySeconds ?? 0;
|
|
149
|
-
if (
|
|
150
|
-
const
|
|
151
|
-
|
|
149
|
+
if (i($), $ <= 0) return;
|
|
150
|
+
const _ = ((E = e.host) == null ? void 0 : E.call(e)) ?? tt().window, w = _.setInterval(() => {
|
|
151
|
+
i((x) => x <= 1 ? 0 : x - 1);
|
|
152
152
|
}, 1e3);
|
|
153
|
-
|
|
153
|
+
me(() => _.clearInterval(w));
|
|
154
154
|
});
|
|
155
|
-
const
|
|
155
|
+
const a = rt({
|
|
156
156
|
open: () => e.open(),
|
|
157
157
|
ownerDocument: () => je(e.host)
|
|
158
158
|
});
|
|
159
|
-
let
|
|
160
|
-
const
|
|
161
|
-
|
|
159
|
+
let k = null;
|
|
160
|
+
const b = ot(), s = ($) => {
|
|
161
|
+
b.noteMouseDown($.target === $.currentTarget);
|
|
162
162
|
}, l = ($) => {
|
|
163
|
-
|
|
163
|
+
b.shouldCloseOnClick($.target === $.currentTarget) && e.onCancel();
|
|
164
164
|
}, h = ($) => {
|
|
165
|
-
const
|
|
165
|
+
const _ = ht($.key, {
|
|
166
166
|
confirmOnEnter: !1
|
|
167
167
|
});
|
|
168
|
-
if (
|
|
168
|
+
if (_ === "dismiss") {
|
|
169
169
|
$.stopPropagation(), e.onCancel();
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
_ === "trap" && k && et(k, $);
|
|
173
173
|
}, v = ($) => {
|
|
174
|
-
|
|
174
|
+
k = $, a.captureDialog($), nt($, () => {
|
|
175
175
|
if (!$.isConnected) return;
|
|
176
|
-
const
|
|
177
|
-
(((e.variant ?? "default") === "danger" ?
|
|
176
|
+
const _ = Array.from($.querySelectorAll("button:not([disabled])"));
|
|
177
|
+
(((e.variant ?? "default") === "danger" ? _.find((x) => x.textContent === (e.cancelLabel ?? y("Cancel"))) ?? _[0] : _[_.length - 1] ?? _[0]) ?? $).focus();
|
|
178
178
|
});
|
|
179
179
|
};
|
|
180
|
-
return
|
|
180
|
+
return n(D, {
|
|
181
181
|
get when() {
|
|
182
182
|
return e.open();
|
|
183
183
|
},
|
|
184
184
|
get children() {
|
|
185
|
-
return
|
|
185
|
+
return n(Ze, {
|
|
186
186
|
modal: !0,
|
|
187
187
|
get mount() {
|
|
188
188
|
return je(e.host).body;
|
|
189
189
|
},
|
|
190
190
|
idPrefix: "confirm-dialog",
|
|
191
191
|
get children() {
|
|
192
|
-
var $ = Kt(),
|
|
192
|
+
var $ = Kt(), _ = $.firstChild, w = _.firstChild, E = w.firstChild, x = w.nextSibling, q = x.firstChild, Z = x.nextSibling;
|
|
193
193
|
return $.$$keydown = (A) => {
|
|
194
194
|
ye(A, "Escape") && e.onCancel();
|
|
195
|
-
}, $.$$click = l, $.$$mousedown = s,
|
|
195
|
+
}, $.$$click = l, $.$$mousedown = s, _.$$keydown = h, xe(v, _), Y(_, "aria-labelledby", t), Y(E, "id", t), c(E, () => e.title), c(x, n(D, {
|
|
196
196
|
get when() {
|
|
197
197
|
return e.place;
|
|
198
198
|
},
|
|
199
|
-
children: (A) =>
|
|
200
|
-
id:
|
|
199
|
+
children: (A) => n(Vt, {
|
|
200
|
+
id: r,
|
|
201
201
|
get place() {
|
|
202
202
|
return A();
|
|
203
203
|
}
|
|
204
204
|
})
|
|
205
|
-
}),
|
|
205
|
+
}), q), c(q, () => e.message), c(x, n(D, {
|
|
206
206
|
get when() {
|
|
207
207
|
return e.code;
|
|
208
208
|
},
|
|
209
|
-
children: (A) =>
|
|
209
|
+
children: (A) => n(Be, {
|
|
210
210
|
get rootClass() {
|
|
211
211
|
return ne.codeScroll;
|
|
212
212
|
},
|
|
@@ -224,31 +224,31 @@ function er(e) {
|
|
|
224
224
|
}), B;
|
|
225
225
|
}
|
|
226
226
|
})
|
|
227
|
-
}), null), c(Z,
|
|
227
|
+
}), null), c(Z, n(he, {
|
|
228
228
|
size: "lg",
|
|
229
229
|
variant: "secondary",
|
|
230
230
|
onClick: () => e.onCancel(),
|
|
231
231
|
get children() {
|
|
232
232
|
return e.cancelLabel ?? y("Cancel");
|
|
233
233
|
}
|
|
234
|
-
}), null), c(Z,
|
|
234
|
+
}), null), c(Z, n(he, {
|
|
235
235
|
size: "lg",
|
|
236
236
|
get variant() {
|
|
237
237
|
return (e.variant ?? "default") === "danger" ? "dangerSolid" : "primary";
|
|
238
238
|
},
|
|
239
239
|
get disabled() {
|
|
240
|
-
return
|
|
240
|
+
return o() > 0;
|
|
241
241
|
},
|
|
242
242
|
onClick: () => e.onConfirm(),
|
|
243
243
|
get children() {
|
|
244
|
-
return
|
|
244
|
+
return ue(() => o() > 0)() ? y("{label} ({seconds})", {
|
|
245
245
|
label: e.confirmLabel ?? y("Confirm"),
|
|
246
|
-
seconds:
|
|
246
|
+
seconds: o()
|
|
247
247
|
}) : e.confirmLabel ?? y("Confirm");
|
|
248
248
|
}
|
|
249
249
|
}), null), I((A) => {
|
|
250
|
-
var B = ne.overlay, F = ne.dialog, j = e.place ?
|
|
251
|
-
return B !== A.e && u($, A.e = B), F !== A.t && u(
|
|
250
|
+
var B = ne.overlay, F = ne.dialog, j = e.place ? r : void 0, J = ne.header, re = ne.title, ee = ne.body, le = ne.message, fe = ne.footer;
|
|
251
|
+
return B !== A.e && u($, A.e = B), F !== A.t && u(_, A.t = F), j !== A.a && Y(_, "aria-describedby", A.a = j), J !== A.o && u(w, A.o = J), re !== A.i && u(E, A.i = re), ee !== A.n && u(x, A.n = ee), le !== A.s && u(q, A.s = le), fe !== A.h && u(Z, A.h = fe), A;
|
|
252
252
|
}, {
|
|
253
253
|
e: void 0,
|
|
254
254
|
t: void 0,
|
|
@@ -264,70 +264,17 @@ function er(e) {
|
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
const
|
|
269
|
-
const b = e();
|
|
270
|
-
b && (b.resolve(n), t(null));
|
|
271
|
-
};
|
|
272
|
-
return de(() => o(!1)), [() => r(er, {
|
|
273
|
-
open: () => e() !== null,
|
|
274
|
-
get title() {
|
|
275
|
-
var n;
|
|
276
|
-
return ((n = e()) == null ? void 0 : n.title) ?? "";
|
|
277
|
-
},
|
|
278
|
-
get message() {
|
|
279
|
-
var n;
|
|
280
|
-
return ((n = e()) == null ? void 0 : n.message) ?? "";
|
|
281
|
-
},
|
|
282
|
-
get confirmLabel() {
|
|
283
|
-
var n;
|
|
284
|
-
return ((n = e()) == null ? void 0 : n.confirmLabel) ?? y("Confirm");
|
|
285
|
-
},
|
|
286
|
-
get cancelLabel() {
|
|
287
|
-
var n;
|
|
288
|
-
return ((n = e()) == null ? void 0 : n.cancelLabel) ?? y("Cancel");
|
|
289
|
-
},
|
|
290
|
-
get variant() {
|
|
291
|
-
var n;
|
|
292
|
-
return ((n = e()) == null ? void 0 : n.variant) ?? "default";
|
|
293
|
-
},
|
|
294
|
-
get code() {
|
|
295
|
-
var n;
|
|
296
|
-
return ((n = e()) == null ? void 0 : n.code) ?? "";
|
|
297
|
-
},
|
|
298
|
-
get confirmDelaySeconds() {
|
|
299
|
-
var n;
|
|
300
|
-
return ((n = e()) == null ? void 0 : n.confirmDelaySeconds) ?? 0;
|
|
301
|
-
},
|
|
302
|
-
get place() {
|
|
303
|
-
var n;
|
|
304
|
-
return (n = e()) == null ? void 0 : n.place;
|
|
305
|
-
},
|
|
306
|
-
onConfirm: () => o(!0),
|
|
307
|
-
onCancel: () => o(!1),
|
|
308
|
-
host: () => {
|
|
309
|
-
var n;
|
|
310
|
-
return ((n = e()) == null ? void 0 : n.targetWin) ?? Ge().window;
|
|
311
|
-
}
|
|
312
|
-
}), (n) => e() !== null ? Promise.resolve(!1) : new Promise((b) => {
|
|
313
|
-
t({
|
|
314
|
-
...n,
|
|
315
|
-
resolve: b,
|
|
316
|
-
targetWin: Be().window
|
|
317
|
-
});
|
|
318
|
-
})];
|
|
319
|
-
}
|
|
320
|
-
function tr(e) {
|
|
321
|
-
const t = ge(), o = rt({
|
|
267
|
+
function er(e) {
|
|
268
|
+
const t = ge(), r = rt({
|
|
322
269
|
open: () => e.open(),
|
|
323
270
|
ownerDocument: () => je(e.host)
|
|
324
271
|
});
|
|
325
|
-
let
|
|
326
|
-
const
|
|
327
|
-
|
|
272
|
+
let o = null;
|
|
273
|
+
const i = ot(), a = (l) => {
|
|
274
|
+
i.noteMouseDown(l.target === l.currentTarget);
|
|
275
|
+
}, k = (l) => {
|
|
276
|
+
i.shouldCloseOnClick(l.target === l.currentTarget) && e.onChoice("cancel");
|
|
328
277
|
}, b = (l) => {
|
|
329
|
-
a.shouldCloseOnClick(l.target === l.currentTarget) && e.onChoice("cancel");
|
|
330
|
-
}, _ = (l) => {
|
|
331
278
|
const h = ht(l.key, {
|
|
332
279
|
confirmOnEnter: !1
|
|
333
280
|
});
|
|
@@ -335,44 +282,44 @@ function tr(e) {
|
|
|
335
282
|
l.stopPropagation(), e.onChoice("cancel");
|
|
336
283
|
return;
|
|
337
284
|
}
|
|
338
|
-
h === "trap" &&
|
|
285
|
+
h === "trap" && o && et(o, l);
|
|
339
286
|
}, s = (l) => {
|
|
340
|
-
|
|
287
|
+
o = l, r.captureDialog(l), nt(l, () => {
|
|
341
288
|
if (!l.isConnected) return;
|
|
342
289
|
const h = Array.from(l.querySelectorAll("button:not([disabled])"));
|
|
343
290
|
(h[h.length - 1] ?? h[0] ?? l).focus();
|
|
344
291
|
});
|
|
345
292
|
};
|
|
346
|
-
return
|
|
293
|
+
return n(D, {
|
|
347
294
|
get when() {
|
|
348
295
|
return e.open();
|
|
349
296
|
},
|
|
350
297
|
get children() {
|
|
351
|
-
return
|
|
298
|
+
return n(Ze, {
|
|
352
299
|
modal: !0,
|
|
353
300
|
get mount() {
|
|
354
301
|
return je(e.host).body;
|
|
355
302
|
},
|
|
356
303
|
idPrefix: "save-discard-dialog",
|
|
357
304
|
get children() {
|
|
358
|
-
var l = Kt(), h = l.firstChild, v = h.firstChild, $ = v.firstChild,
|
|
305
|
+
var l = Kt(), h = l.firstChild, v = h.firstChild, $ = v.firstChild, _ = v.nextSibling, w = _.firstChild, E = _.nextSibling;
|
|
359
306
|
return l.$$keydown = (x) => {
|
|
360
307
|
ye(x, "Escape") && e.onChoice("cancel");
|
|
361
|
-
}, l.$$click =
|
|
308
|
+
}, l.$$click = k, l.$$mousedown = a, h.$$keydown = b, xe(s, h), Y(h, "aria-labelledby", t), Y($, "id", t), c($, () => e.title), c(w, () => e.message), c(E, n(he, {
|
|
362
309
|
size: "lg",
|
|
363
310
|
variant: "secondary",
|
|
364
311
|
onClick: () => e.onChoice("cancel"),
|
|
365
312
|
get children() {
|
|
366
313
|
return e.cancelLabel ?? y("Cancel");
|
|
367
314
|
}
|
|
368
|
-
}), null), c(
|
|
315
|
+
}), null), c(E, n(he, {
|
|
369
316
|
size: "lg",
|
|
370
317
|
variant: "dangerSolid",
|
|
371
318
|
onClick: () => e.onChoice("discard"),
|
|
372
319
|
get children() {
|
|
373
320
|
return e.discardLabel ?? y("Don't Save");
|
|
374
321
|
}
|
|
375
|
-
}), null), c(
|
|
322
|
+
}), null), c(E, n(he, {
|
|
376
323
|
size: "lg",
|
|
377
324
|
variant: "primary",
|
|
378
325
|
onClick: () => e.onChoice("save"),
|
|
@@ -380,8 +327,8 @@ function tr(e) {
|
|
|
380
327
|
return e.saveLabel ?? y("Save");
|
|
381
328
|
}
|
|
382
329
|
}), null), I((x) => {
|
|
383
|
-
var
|
|
384
|
-
return
|
|
330
|
+
var q = ne.overlay, Z = ne.dialog, A = ne.header, B = ne.title, F = ne.body, j = ne.message, J = ne.footer;
|
|
331
|
+
return q !== x.e && u(l, x.e = q), Z !== x.t && u(h, x.t = Z), A !== x.a && u(v, x.a = A), B !== x.o && u($, x.o = B), F !== x.i && u(_, x.i = F), j !== x.n && u(w, x.n = j), J !== x.s && u(E, x.s = J), x;
|
|
385
332
|
}, {
|
|
386
333
|
e: void 0,
|
|
387
334
|
t: void 0,
|
|
@@ -396,31 +343,31 @@ function tr(e) {
|
|
|
396
343
|
}
|
|
397
344
|
});
|
|
398
345
|
}
|
|
399
|
-
function
|
|
400
|
-
const [e, t] =
|
|
401
|
-
let
|
|
402
|
-
const
|
|
346
|
+
function ac() {
|
|
347
|
+
const [e, t] = Q(null);
|
|
348
|
+
let r = !1, o = Promise.resolve();
|
|
349
|
+
const i = (s) => {
|
|
403
350
|
const l = e();
|
|
404
351
|
l && (l.resolve(s), t(null));
|
|
405
|
-
},
|
|
406
|
-
if (
|
|
352
|
+
}, a = (s) => new Promise((l) => {
|
|
353
|
+
if (r) {
|
|
407
354
|
l("cancel");
|
|
408
355
|
return;
|
|
409
356
|
}
|
|
410
357
|
t({
|
|
411
358
|
...s,
|
|
412
359
|
resolve: l,
|
|
413
|
-
targetWin:
|
|
360
|
+
targetWin: Ke().window
|
|
414
361
|
});
|
|
415
|
-
}),
|
|
416
|
-
const l =
|
|
417
|
-
return
|
|
362
|
+
}), k = (s) => {
|
|
363
|
+
const l = o.then(() => a(s));
|
|
364
|
+
return o = l.then(() => {
|
|
418
365
|
}, () => {
|
|
419
366
|
}), l;
|
|
420
367
|
};
|
|
421
|
-
return sn() &&
|
|
422
|
-
|
|
423
|
-
}), [() =>
|
|
368
|
+
return sn() && me(() => {
|
|
369
|
+
r = !0, i("cancel");
|
|
370
|
+
}), [() => n(er, {
|
|
424
371
|
open: () => e() !== null,
|
|
425
372
|
get title() {
|
|
426
373
|
var s;
|
|
@@ -442,24 +389,24 @@ function lc() {
|
|
|
442
389
|
var s;
|
|
443
390
|
return ((s = e()) == null ? void 0 : s.cancelLabel) ?? y("Cancel");
|
|
444
391
|
},
|
|
445
|
-
onChoice:
|
|
392
|
+
onChoice: i,
|
|
446
393
|
host: () => {
|
|
447
394
|
var s;
|
|
448
|
-
return ((s = e()) == null ? void 0 : s.targetWin) ??
|
|
395
|
+
return ((s = e()) == null ? void 0 : s.targetWin) ?? tt().window;
|
|
449
396
|
}
|
|
450
|
-
}),
|
|
397
|
+
}), k];
|
|
451
398
|
}
|
|
452
|
-
function
|
|
453
|
-
const t = ge(),
|
|
399
|
+
function tr(e) {
|
|
400
|
+
const t = ge(), r = rt({
|
|
454
401
|
open: () => e.open(),
|
|
455
402
|
ownerDocument: () => je(e.host)
|
|
456
403
|
});
|
|
457
|
-
let
|
|
458
|
-
const
|
|
459
|
-
|
|
404
|
+
let o = null;
|
|
405
|
+
const i = ot(), a = (h) => {
|
|
406
|
+
i.noteMouseDown(h.target === h.currentTarget);
|
|
407
|
+
}, k = (h) => {
|
|
408
|
+
i.shouldCloseOnClick(h.target === h.currentTarget) && e.onCancel();
|
|
460
409
|
}, b = (h) => {
|
|
461
|
-
a.shouldCloseOnClick(h.target === h.currentTarget) && e.onCancel();
|
|
462
|
-
}, _ = (h) => {
|
|
463
410
|
const v = ht(h.key, {
|
|
464
411
|
confirmOnEnter: !e.multiline
|
|
465
412
|
});
|
|
@@ -470,30 +417,30 @@ function nr(e) {
|
|
|
470
417
|
h.stopPropagation(), e.onConfirm();
|
|
471
418
|
return;
|
|
472
419
|
}
|
|
473
|
-
v === "trap" &&
|
|
420
|
+
v === "trap" && o && et(o, h);
|
|
474
421
|
}, s = (h) => {
|
|
475
|
-
|
|
422
|
+
r.captureReturnFocus(), nt(h, () => {
|
|
476
423
|
h.focus(), h.select();
|
|
477
424
|
});
|
|
478
425
|
}, l = (h) => {
|
|
479
|
-
|
|
426
|
+
o = h, r.captureDialog(h);
|
|
480
427
|
};
|
|
481
|
-
return
|
|
428
|
+
return n(D, {
|
|
482
429
|
get when() {
|
|
483
430
|
return e.open();
|
|
484
431
|
},
|
|
485
432
|
get children() {
|
|
486
|
-
return
|
|
433
|
+
return n(Ze, {
|
|
487
434
|
modal: !0,
|
|
488
435
|
get mount() {
|
|
489
436
|
return je(e.host).body;
|
|
490
437
|
},
|
|
491
438
|
idPrefix: "prompt-dialog",
|
|
492
439
|
get children() {
|
|
493
|
-
var h = Zn(), v = h.firstChild, $ = v.firstChild,
|
|
440
|
+
var h = Zn(), v = h.firstChild, $ = v.firstChild, _ = $.firstChild, w = $.nextSibling, E = w.nextSibling;
|
|
494
441
|
return h.$$keydown = (x) => {
|
|
495
442
|
ye(x, "Escape") && e.onCancel();
|
|
496
|
-
}, h.$$click =
|
|
443
|
+
}, h.$$click = k, h.$$mousedown = a, v.$$keydown = b, xe(l, v), Y(v, "aria-labelledby", t), Y(_, "id", t), c(_, () => e.title), c(w, n(D, {
|
|
497
444
|
get when() {
|
|
498
445
|
return e.message !== void 0;
|
|
499
446
|
},
|
|
@@ -501,12 +448,12 @@ function nr(e) {
|
|
|
501
448
|
var x = Jn();
|
|
502
449
|
return c(x, () => e.message), I(() => u(x, ne.message)), x;
|
|
503
450
|
}
|
|
504
|
-
}), null), c(
|
|
451
|
+
}), null), c(w, n(D, {
|
|
505
452
|
get when() {
|
|
506
453
|
return e.multiline;
|
|
507
454
|
},
|
|
508
455
|
get fallback() {
|
|
509
|
-
return
|
|
456
|
+
return n($t, {
|
|
510
457
|
ref: s,
|
|
511
458
|
get type() {
|
|
512
459
|
return e.secret ? "password" : "text";
|
|
@@ -527,7 +474,7 @@ function nr(e) {
|
|
|
527
474
|
});
|
|
528
475
|
},
|
|
529
476
|
get children() {
|
|
530
|
-
return
|
|
477
|
+
return n(hn, {
|
|
531
478
|
ref: s,
|
|
532
479
|
rows: 8,
|
|
533
480
|
mono: !0,
|
|
@@ -546,14 +493,14 @@ function nr(e) {
|
|
|
546
493
|
onInput: (x) => e.onInput(x.currentTarget.value)
|
|
547
494
|
});
|
|
548
495
|
}
|
|
549
|
-
}), null), c(
|
|
496
|
+
}), null), c(E, n(he, {
|
|
550
497
|
size: "lg",
|
|
551
498
|
variant: "secondary",
|
|
552
499
|
onClick: () => e.onCancel(),
|
|
553
500
|
get children() {
|
|
554
501
|
return e.cancelLabel;
|
|
555
502
|
}
|
|
556
|
-
}), null), c(
|
|
503
|
+
}), null), c(E, n(he, {
|
|
557
504
|
size: "lg",
|
|
558
505
|
variant: "primary",
|
|
559
506
|
onClick: () => e.onConfirm(),
|
|
@@ -561,8 +508,8 @@ function nr(e) {
|
|
|
561
508
|
return e.confirmLabel;
|
|
562
509
|
}
|
|
563
510
|
}), null), I((x) => {
|
|
564
|
-
var
|
|
565
|
-
return
|
|
511
|
+
var q = ne.overlay, Z = ne.dialog, A = ne.header, B = ne.title, F = ne.body, j = ne.footer;
|
|
512
|
+
return q !== x.e && u(h, x.e = q), Z !== x.t && u(v, x.t = Z), A !== x.a && u($, x.a = A), B !== x.o && u(_, x.o = B), F !== x.i && u(w, x.i = F), j !== x.n && u(E, x.n = j), x;
|
|
566
513
|
}, {
|
|
567
514
|
e: void 0,
|
|
568
515
|
t: void 0,
|
|
@@ -576,59 +523,59 @@ function nr(e) {
|
|
|
576
523
|
}
|
|
577
524
|
});
|
|
578
525
|
}
|
|
579
|
-
function
|
|
580
|
-
const [e, t] =
|
|
526
|
+
function lc() {
|
|
527
|
+
const [e, t] = Q(null), [r, o] = Q(""), i = (b) => {
|
|
581
528
|
const s = e();
|
|
582
|
-
s && (s.resolve(
|
|
529
|
+
s && (s.resolve(b), t(null));
|
|
583
530
|
};
|
|
584
|
-
return [() =>
|
|
531
|
+
return [() => n(tr, {
|
|
585
532
|
open: () => e() !== null,
|
|
586
533
|
get title() {
|
|
587
|
-
var
|
|
588
|
-
return ((
|
|
534
|
+
var b;
|
|
535
|
+
return ((b = e()) == null ? void 0 : b.title) ?? "";
|
|
589
536
|
},
|
|
590
537
|
get message() {
|
|
591
|
-
var
|
|
592
|
-
return (
|
|
538
|
+
var b;
|
|
539
|
+
return (b = e()) == null ? void 0 : b.message;
|
|
593
540
|
},
|
|
594
541
|
get placeholder() {
|
|
595
|
-
var
|
|
596
|
-
return ((
|
|
542
|
+
var b;
|
|
543
|
+
return ((b = e()) == null ? void 0 : b.placeholder) ?? "";
|
|
597
544
|
},
|
|
598
|
-
value:
|
|
545
|
+
value: r,
|
|
599
546
|
get confirmLabel() {
|
|
600
|
-
var
|
|
601
|
-
return ((
|
|
547
|
+
var b;
|
|
548
|
+
return ((b = e()) == null ? void 0 : b.confirmLabel) ?? y("Save");
|
|
602
549
|
},
|
|
603
550
|
get cancelLabel() {
|
|
604
|
-
var
|
|
605
|
-
return ((
|
|
551
|
+
var b;
|
|
552
|
+
return ((b = e()) == null ? void 0 : b.cancelLabel) ?? y("Cancel");
|
|
606
553
|
},
|
|
607
554
|
get multiline() {
|
|
608
|
-
var
|
|
609
|
-
return ((
|
|
555
|
+
var b;
|
|
556
|
+
return ((b = e()) == null ? void 0 : b.multiline) === !0;
|
|
610
557
|
},
|
|
611
558
|
get secret() {
|
|
612
|
-
var
|
|
613
|
-
return ((
|
|
559
|
+
var b;
|
|
560
|
+
return ((b = e()) == null ? void 0 : b.secret) === !0;
|
|
614
561
|
},
|
|
615
|
-
onInput:
|
|
616
|
-
onConfirm: () =>
|
|
617
|
-
onCancel: () =>
|
|
562
|
+
onInput: o,
|
|
563
|
+
onConfirm: () => i(r()),
|
|
564
|
+
onCancel: () => i(null),
|
|
618
565
|
host: () => {
|
|
619
|
-
var
|
|
620
|
-
return ((
|
|
566
|
+
var b;
|
|
567
|
+
return ((b = e()) == null ? void 0 : b.targetWin) ?? tt().window;
|
|
621
568
|
}
|
|
622
|
-
}), (
|
|
623
|
-
|
|
624
|
-
...
|
|
569
|
+
}), (b) => new Promise((s) => {
|
|
570
|
+
o(b.defaultValue ?? ""), t({
|
|
571
|
+
...b,
|
|
625
572
|
resolve: s,
|
|
626
|
-
targetWin:
|
|
573
|
+
targetWin: Ke().window
|
|
627
574
|
});
|
|
628
575
|
})];
|
|
629
576
|
}
|
|
630
|
-
|
|
631
|
-
const
|
|
577
|
+
Ee(["mousedown", "click", "keydown"]);
|
|
578
|
+
const cc = Object.freeze({
|
|
632
579
|
root: te.root,
|
|
633
580
|
header: te.header,
|
|
634
581
|
headerMain: te.headerMain,
|
|
@@ -656,54 +603,54 @@ const sc = Object.freeze({
|
|
|
656
603
|
subtitleAdmin: te.subtitleAdmin,
|
|
657
604
|
headerAdminStacked: te.headerAdminStacked
|
|
658
605
|
});
|
|
659
|
-
function
|
|
660
|
-
const
|
|
661
|
-
const
|
|
662
|
-
return
|
|
663
|
-
},
|
|
664
|
-
const
|
|
665
|
-
!
|
|
666
|
-
id:
|
|
606
|
+
function nr(e, t) {
|
|
607
|
+
const r = ge(), o = () => {
|
|
608
|
+
const k = t();
|
|
609
|
+
return k ? typeof k == "string" ? { content: k } : k : null;
|
|
610
|
+
}, i = () => {
|
|
611
|
+
const k = o();
|
|
612
|
+
!k || !k.content || (e.hasAttribute("title") && (e.setAttribute("data-suppressed-title", e.getAttribute("title") ?? ""), e.removeAttribute("title")), ut.showTooltip({
|
|
613
|
+
id: r,
|
|
667
614
|
target: e,
|
|
668
|
-
content:
|
|
669
|
-
shortcut:
|
|
670
|
-
placement:
|
|
671
|
-
offset:
|
|
672
|
-
delayMs:
|
|
615
|
+
content: k.content,
|
|
616
|
+
shortcut: k.shortcut,
|
|
617
|
+
placement: k.placement,
|
|
618
|
+
offset: k.offset,
|
|
619
|
+
delayMs: k.delayMs
|
|
673
620
|
}));
|
|
674
|
-
},
|
|
621
|
+
}, a = () => {
|
|
675
622
|
if (e.hasAttribute("data-suppressed-title")) {
|
|
676
|
-
const
|
|
677
|
-
|
|
623
|
+
const k = e.getAttribute("data-suppressed-title");
|
|
624
|
+
k && e.setAttribute("title", k), e.removeAttribute("data-suppressed-title");
|
|
678
625
|
}
|
|
679
626
|
ut.hideTooltip(e);
|
|
680
627
|
};
|
|
681
|
-
e.addEventListener("pointerenter",
|
|
682
|
-
|
|
628
|
+
e.addEventListener("pointerenter", i), e.addEventListener("pointerleave", a), e.addEventListener("focusin", i), e.addEventListener("focusout", a), me(() => {
|
|
629
|
+
a(), e.removeEventListener("pointerenter", i), e.removeEventListener("pointerleave", a), e.removeEventListener("focusin", i), e.removeEventListener("focusout", a);
|
|
683
630
|
});
|
|
684
631
|
}
|
|
685
|
-
function
|
|
632
|
+
function rr(e) {
|
|
686
633
|
return e !== void 0 && e.type !== "separator";
|
|
687
634
|
}
|
|
688
|
-
function
|
|
635
|
+
function or(e) {
|
|
689
636
|
return e === "ArrowDown" || e === "ArrowUp" || e === "Home" || e === "End" || e === "ArrowRight" || e === "ArrowLeft";
|
|
690
637
|
}
|
|
691
|
-
function mt(e, t,
|
|
692
|
-
const
|
|
693
|
-
if (
|
|
694
|
-
let
|
|
695
|
-
for (let
|
|
696
|
-
if (
|
|
638
|
+
function mt(e, t, r) {
|
|
639
|
+
const o = e.length;
|
|
640
|
+
if (o === 0) return -1;
|
|
641
|
+
let i = t;
|
|
642
|
+
for (let a = 0; a < o; a++)
|
|
643
|
+
if (i = (i + r + o) % o, rr(e[i])) return i;
|
|
697
644
|
return -1;
|
|
698
645
|
}
|
|
699
646
|
function Yt(e) {
|
|
700
647
|
return mt(e, -1, 1);
|
|
701
648
|
}
|
|
702
|
-
function
|
|
649
|
+
function ir(e) {
|
|
703
650
|
return mt(e, e.length, -1);
|
|
704
651
|
}
|
|
705
|
-
function
|
|
706
|
-
switch (
|
|
652
|
+
function ar(e, t, r) {
|
|
653
|
+
switch (r) {
|
|
707
654
|
case "ArrowDown":
|
|
708
655
|
return mt(e, t, 1);
|
|
709
656
|
case "ArrowUp":
|
|
@@ -715,7 +662,7 @@ function lr(e, t, o) {
|
|
|
715
662
|
case "Home":
|
|
716
663
|
return Yt(e);
|
|
717
664
|
case "End":
|
|
718
|
-
return
|
|
665
|
+
return ir(e);
|
|
719
666
|
case "ArrowRight":
|
|
720
667
|
case "ArrowLeft":
|
|
721
668
|
return t;
|
|
@@ -723,60 +670,60 @@ function lr(e, t, o) {
|
|
|
723
670
|
return t;
|
|
724
671
|
}
|
|
725
672
|
}
|
|
726
|
-
const bt = 8, _t = 4,
|
|
727
|
-
function
|
|
728
|
-
return Math.max(t, Math.min(e,
|
|
673
|
+
const bt = 8, _t = 4, lr = 240, cr = 36, sr = 28;
|
|
674
|
+
function dr(e, t, r) {
|
|
675
|
+
return Math.max(t, Math.min(e, r));
|
|
729
676
|
}
|
|
730
|
-
function
|
|
677
|
+
function ur(e) {
|
|
731
678
|
return Math.max(
|
|
732
|
-
|
|
733
|
-
e *
|
|
679
|
+
cr,
|
|
680
|
+
e * sr
|
|
734
681
|
);
|
|
735
682
|
}
|
|
736
|
-
function
|
|
737
|
-
const { parentPanelRect: t, triggerRowRect:
|
|
738
|
-
|
|
683
|
+
function mr(e) {
|
|
684
|
+
const { parentPanelRect: t, triggerRowRect: r, viewportWidth: o, viewportHeight: i } = e, a = t.right - _t, k = a + lr > o - bt, b = k ? t.left + _t : a, s = ur(e.submenuItemCount), l = dr(
|
|
685
|
+
r.top - _t,
|
|
739
686
|
bt,
|
|
740
|
-
|
|
687
|
+
i - s - bt
|
|
741
688
|
);
|
|
742
|
-
return { x:
|
|
743
|
-
}
|
|
744
|
-
const
|
|
745
|
-
menu:
|
|
746
|
-
itemsViewport:
|
|
747
|
-
item:
|
|
748
|
-
itemLabel:
|
|
749
|
-
itemText:
|
|
750
|
-
itemMeta:
|
|
751
|
-
check:
|
|
752
|
-
itemIcon:
|
|
753
|
-
submenuChevron:
|
|
754
|
-
itemExpanded:
|
|
755
|
-
itemDanger:
|
|
756
|
-
separator:
|
|
689
|
+
return { x: b, y: l, flipLeft: k };
|
|
690
|
+
}
|
|
691
|
+
const vr = "vk_menu_7idth vk_surface_3ZOnl", hr = "vk_itemsViewport_e8jse vk_viewport_B94pk", gr = "vk_item_6-C-w vk_item_neWq-", fr = "vk_itemLabel_4H-rz", br = "vk_itemText_xNl6M", _r = "vk_itemMeta_LWQ8A", wr = "vk_check_P9Ntk vk_check_dO3aK", kr = "vk_itemIcon_JSYNd vk_itemIcon_bv6oS", Cr = "vk_submenuChevron_bANqc vk_chevron_pb9D1", yr = "vk_itemExpanded_JfVkt", $r = "vk_itemDanger_oJRgf", xr = "vk_separator_l-bM- vk_separator_zMw59", Sr = "vk_visuallyHidden_CrSqj", we = {
|
|
692
|
+
menu: vr,
|
|
693
|
+
itemsViewport: hr,
|
|
694
|
+
item: gr,
|
|
695
|
+
itemLabel: fr,
|
|
696
|
+
itemText: br,
|
|
697
|
+
itemMeta: _r,
|
|
698
|
+
check: wr,
|
|
699
|
+
itemIcon: kr,
|
|
700
|
+
submenuChevron: Cr,
|
|
701
|
+
itemExpanded: yr,
|
|
702
|
+
itemDanger: $r,
|
|
703
|
+
separator: xr,
|
|
757
704
|
visuallyHidden: Sr
|
|
758
705
|
};
|
|
759
|
-
var
|
|
760
|
-
const
|
|
706
|
+
var Lr = /* @__PURE__ */ W("<div role=menu tabindex=-1>"), Ir = /* @__PURE__ */ W("<div role=separator>"), Et = /* @__PURE__ */ W("<span aria-hidden=true>"), Mr = /* @__PURE__ */ W("<span><span>"), wt = /* @__PURE__ */ W("<span>"), Dr = /* @__PURE__ */ W("<span hidden data-context-menu-host>");
|
|
707
|
+
const X = 8;
|
|
761
708
|
function dt(e) {
|
|
762
709
|
return e.type !== "separator";
|
|
763
710
|
}
|
|
764
711
|
function Ut(e) {
|
|
765
|
-
let t,
|
|
766
|
-
|
|
767
|
-
|
|
712
|
+
let t, r, o = !1;
|
|
713
|
+
me(() => {
|
|
714
|
+
o = !0;
|
|
768
715
|
});
|
|
769
|
-
const
|
|
770
|
-
const
|
|
716
|
+
const i = () => {
|
|
717
|
+
const S = e.anchor ?? (e.depth === 0 && e.left !== void 0 && e.top !== void 0 ? {
|
|
771
718
|
left: e.left,
|
|
772
719
|
top: e.top,
|
|
773
720
|
width: 0,
|
|
774
721
|
height: 0
|
|
775
722
|
} : void 0);
|
|
776
|
-
if (
|
|
777
|
-
const z = e.hostWin.innerHeight, C = e.hostWin.innerWidth, d = z - (
|
|
723
|
+
if (S) {
|
|
724
|
+
const z = e.hostWin.innerHeight, C = e.hostWin.innerWidth, d = z - (S.top + S.height) - X, f = Math.max(36, e.items.length * 28 + 12), g = e.anchorPosition === Qe.ABOVE || d < f && S.top > d ? Math.max(X, S.top - f) : S.top + S.height, L = 200;
|
|
778
725
|
return {
|
|
779
|
-
left: e.anchorAlignment ===
|
|
726
|
+
left: e.anchorAlignment === Dt.RIGHT || S.left + L > C - X ? Math.max(X, S.left + S.width - L) : S.left,
|
|
780
727
|
top: g,
|
|
781
728
|
right: void 0,
|
|
782
729
|
bottom: void 0,
|
|
@@ -792,61 +739,61 @@ function Ut(e) {
|
|
|
792
739
|
maxHeight: void 0,
|
|
793
740
|
maxWidth: void 0
|
|
794
741
|
};
|
|
795
|
-
}, [
|
|
742
|
+
}, [a, k] = Q(i()), [b, s] = Q(null), [l, h] = Q(-1), [v, $] = Q(-1), _ = ge(), w = (S) => `ctx-hint-${_}-${S}`, E = [];
|
|
796
743
|
let x;
|
|
797
|
-
const
|
|
744
|
+
const q = () => e.items.some((S) => dt(S) && S.icon !== void 0), Z = () => e.items.some((S) => dt(S) && S.checked !== void 0), A = (S) => {
|
|
798
745
|
var z;
|
|
799
|
-
$(
|
|
746
|
+
$(S), (z = E[S]) == null || z.focus({
|
|
800
747
|
preventScroll: !1
|
|
801
748
|
});
|
|
802
|
-
}, B = (
|
|
803
|
-
if (!z.submenu || z.submenu.length === 0 || !t || l() === C &&
|
|
749
|
+
}, B = (S, z, C, d) => {
|
|
750
|
+
if (!z.submenu || z.submenu.length === 0 || !t || l() === C && b() !== null && !d)
|
|
804
751
|
return;
|
|
805
|
-
const f = t.getBoundingClientRect(),
|
|
752
|
+
const f = t.getBoundingClientRect(), P = S.getBoundingClientRect(), g = mr({
|
|
806
753
|
parentPanelRect: f,
|
|
807
|
-
triggerRowRect:
|
|
754
|
+
triggerRowRect: P,
|
|
808
755
|
submenuItemCount: z.submenu.length,
|
|
809
756
|
viewportWidth: e.hostWin.innerWidth,
|
|
810
757
|
viewportHeight: e.hostWin.innerHeight
|
|
811
758
|
});
|
|
812
759
|
h(C);
|
|
813
|
-
const
|
|
760
|
+
const L = {
|
|
814
761
|
x: g.x,
|
|
815
762
|
y: g.y,
|
|
816
763
|
items: z.submenu,
|
|
817
764
|
flipLeft: g.flipLeft,
|
|
818
765
|
autoFocus: d
|
|
819
766
|
};
|
|
820
|
-
d &&
|
|
821
|
-
|
|
822
|
-
})) : s(
|
|
767
|
+
d && b() !== null ? (s(null), queueMicrotask(() => {
|
|
768
|
+
o || s(L);
|
|
769
|
+
})) : s(L);
|
|
823
770
|
}, F = () => {
|
|
824
|
-
const
|
|
825
|
-
s(null), h(-1),
|
|
826
|
-
}, j = (
|
|
827
|
-
var
|
|
828
|
-
const z =
|
|
829
|
-
if (z === "ArrowRight" &&
|
|
830
|
-
|
|
831
|
-
const
|
|
832
|
-
|
|
771
|
+
const S = l();
|
|
772
|
+
s(null), h(-1), S >= 0 && A(S);
|
|
773
|
+
}, j = (S) => {
|
|
774
|
+
var L, T;
|
|
775
|
+
const z = S.key, C = v(), d = C >= 0 ? e.items[C] : void 0, f = d && dt(d) ? d : void 0, P = !!(f != null && f.submenu && f.submenu.length > 0);
|
|
776
|
+
if (z === "ArrowRight" && P && f) {
|
|
777
|
+
S.preventDefault(), S.stopPropagation();
|
|
778
|
+
const M = E[C];
|
|
779
|
+
M && B(M, f, C, !0);
|
|
833
780
|
return;
|
|
834
781
|
}
|
|
835
782
|
if (z === "ArrowLeft" && e.depth > 0) {
|
|
836
|
-
|
|
783
|
+
S.preventDefault(), S.stopPropagation(), (L = e.onRequestCloseSubmenu) == null || L.call(e);
|
|
837
784
|
return;
|
|
838
785
|
}
|
|
839
|
-
if ((z === "Enter" || z === " ") && C >= 0 &&
|
|
840
|
-
|
|
786
|
+
if ((z === "Enter" || z === " ") && C >= 0 && E[C] && t && e.hostWin.document.activeElement === t) {
|
|
787
|
+
S.preventDefault(), S.stopPropagation(), (T = E[C]) == null || T.click();
|
|
841
788
|
return;
|
|
842
789
|
}
|
|
843
|
-
if (!
|
|
844
|
-
|
|
845
|
-
const g =
|
|
790
|
+
if (!or(z)) return;
|
|
791
|
+
S.preventDefault(), S.stopPropagation();
|
|
792
|
+
const g = ar(e.items, C, z);
|
|
846
793
|
g >= 0 && A(g);
|
|
847
794
|
}, J = () => {
|
|
848
795
|
if (!t) return;
|
|
849
|
-
const
|
|
796
|
+
const S = e.hostWin.innerWidth, z = e.hostWin.innerHeight, C = t && r ? Math.max(0, t.offsetHeight - r.offsetHeight) : 4, d = r ? r.scrollHeight + C : 0, f = Math.max(t.offsetHeight, t.scrollHeight, d), P = t && r ? Math.max(0, t.offsetWidth - r.offsetWidth) : 4, g = r ? r.scrollWidth + P : 0, L = Math.max(t.offsetWidth, t.scrollWidth, g), T = e.anchor ?? (e.depth === 0 && e.left !== void 0 && e.top !== void 0 ? {
|
|
850
797
|
left: e.left,
|
|
851
798
|
top: e.top,
|
|
852
799
|
width: 0,
|
|
@@ -854,45 +801,45 @@ function Ut(e) {
|
|
|
854
801
|
} : void 0);
|
|
855
802
|
if (T) {
|
|
856
803
|
const H = {
|
|
857
|
-
width:
|
|
804
|
+
width: L,
|
|
858
805
|
height: f
|
|
859
806
|
}, se = {
|
|
860
807
|
top: 0,
|
|
861
808
|
left: 0,
|
|
862
|
-
width:
|
|
809
|
+
width: S,
|
|
863
810
|
height: z
|
|
864
|
-
},
|
|
865
|
-
anchorAlignment: e.anchorAlignment ??
|
|
866
|
-
anchorPosition: e.anchorPosition ?? (at ?
|
|
867
|
-
margin:
|
|
868
|
-
}),
|
|
869
|
-
left:
|
|
811
|
+
}, He = z - (T.top + T.height) - X, it = T.top - X, at = e.anchorPosition === Qe.ABOVE || He < it && (He < f || T.top > He), Me = gn(se, H, T, {
|
|
812
|
+
anchorAlignment: e.anchorAlignment ?? Dt.LEFT,
|
|
813
|
+
anchorPosition: e.anchorPosition ?? (at ? Qe.ABOVE : Qe.BELOW),
|
|
814
|
+
margin: X
|
|
815
|
+
}), Ge = Me.anchorPosition === Qe.ABOVE, lt = Ge && T.top - X < f ? Math.max(0, T.top - X) : Math.max(0, z - Me.top - X), ct = Math.max(0, z - 2 * X), Xe = Math.min(ct, lt), st = Math.min(f, Xe), rn = Ge ? Math.max(X, T.top - st) : Me.top, on = Math.max(0, S - Me.left - X), an = Math.max(0, S - 2 * X), ln = Math.min(an, on), Re = {
|
|
816
|
+
left: Me.left,
|
|
870
817
|
top: rn,
|
|
871
818
|
right: void 0,
|
|
872
819
|
bottom: void 0,
|
|
873
|
-
maxHeight:
|
|
820
|
+
maxHeight: Xe,
|
|
874
821
|
maxWidth: ln
|
|
875
|
-
},
|
|
876
|
-
if (
|
|
822
|
+
}, Fe = a();
|
|
823
|
+
if (Fe.left === Re.left && Fe.top === Re.top && Fe.right === Re.right && Fe.bottom === Re.bottom && Fe.maxHeight === Re.maxHeight && Fe.maxWidth === Re.maxWidth)
|
|
877
824
|
return;
|
|
878
|
-
|
|
825
|
+
k(Re);
|
|
879
826
|
return;
|
|
880
827
|
}
|
|
881
|
-
let
|
|
882
|
-
O !== void 0 ? O = Math.max(
|
|
883
|
-
const
|
|
884
|
-
left:
|
|
828
|
+
let M = e.left, O = e.right, m = e.top, R = e.bottom;
|
|
829
|
+
O !== void 0 ? O = Math.max(X, Math.min(O, S - L - X)) : M !== void 0 && (M = Math.max(X, Math.min(M, S - L - X))), R !== void 0 ? R = Math.max(X, Math.min(R, z - f - X)) : m !== void 0 && (m = Math.max(X, Math.min(m, z - f - X)));
|
|
830
|
+
const V = m !== void 0 ? m : R !== void 0 ? z - R - f : X, N = Math.max(0, z - V - X), oe = Math.max(0, z - 2 * X), Ce = Math.min(oe, N), p = M !== void 0 ? M : O !== void 0 ? S - O - L : X, ie = Math.max(0, S - p - X), Pe = Math.max(0, S - 2 * X), Te = Math.min(Pe, ie), be = {
|
|
831
|
+
left: M,
|
|
885
832
|
top: m,
|
|
886
833
|
right: O,
|
|
887
834
|
bottom: R,
|
|
888
835
|
maxHeight: Ce,
|
|
889
836
|
maxWidth: Te
|
|
890
|
-
}, ce =
|
|
891
|
-
ce.left === be.left && ce.top === be.top && ce.right === be.right && ce.bottom === be.bottom && ce.maxHeight === be.maxHeight && ce.maxWidth === be.maxWidth ||
|
|
837
|
+
}, ce = a();
|
|
838
|
+
ce.left === be.left && ce.top === be.top && ce.right === be.right && ce.bottom === be.bottom && ce.maxHeight === be.maxHeight && ce.maxWidth === be.maxWidth || k(be);
|
|
892
839
|
};
|
|
893
840
|
It(() => {
|
|
894
841
|
queueMicrotask(() => {
|
|
895
|
-
if (
|
|
842
|
+
if (o) return;
|
|
896
843
|
const g = e.hostWin.document.documentElement.getAttribute("data-focus-modality") === "pointer";
|
|
897
844
|
if (e.autoFocusFirst ?? (!g && e.depth === 0)) {
|
|
898
845
|
const T = Yt(e.items);
|
|
@@ -903,22 +850,22 @@ function Ut(e) {
|
|
|
903
850
|
}
|
|
904
851
|
t == null || t.focus();
|
|
905
852
|
}), J();
|
|
906
|
-
const
|
|
907
|
-
|
|
908
|
-
const d =
|
|
853
|
+
const S = e.hostWin, z = S.requestAnimationFrame(() => J()), C = () => J();
|
|
854
|
+
S.addEventListener("resize", C), S.addEventListener("scroll", C, !0);
|
|
855
|
+
const d = S.ResizeObserver;
|
|
909
856
|
let f;
|
|
910
857
|
if (d && t) {
|
|
911
|
-
const
|
|
912
|
-
|
|
858
|
+
const P = new d(() => J());
|
|
859
|
+
P.observe(t), f = P;
|
|
913
860
|
}
|
|
914
|
-
|
|
915
|
-
|
|
861
|
+
me(() => {
|
|
862
|
+
S.cancelAnimationFrame(z), S.removeEventListener("resize", C), S.removeEventListener("scroll", C, !0), f == null || f.disconnect();
|
|
916
863
|
});
|
|
917
|
-
}),
|
|
864
|
+
}), me(() => {
|
|
918
865
|
x && clearTimeout(x);
|
|
919
866
|
}), $e(() => {
|
|
920
|
-
e.items.length,
|
|
921
|
-
|
|
867
|
+
e.items.length, k(i()), queueMicrotask(() => {
|
|
868
|
+
o || J();
|
|
922
869
|
});
|
|
923
870
|
});
|
|
924
871
|
const re = () => {
|
|
@@ -927,67 +874,67 @@ function Ut(e) {
|
|
|
927
874
|
re(), x = setTimeout(() => {
|
|
928
875
|
s(null), h(-1);
|
|
929
876
|
}, 200);
|
|
930
|
-
}, le = (
|
|
877
|
+
}, le = (S, z, C) => {
|
|
931
878
|
if (re(), z.disabled || !z.submenu || z.submenu.length === 0) {
|
|
932
879
|
ee();
|
|
933
880
|
return;
|
|
934
881
|
}
|
|
935
|
-
B(
|
|
936
|
-
}, fe = (
|
|
937
|
-
if (!
|
|
882
|
+
B(S.currentTarget, z, C, !1);
|
|
883
|
+
}, fe = (S) => {
|
|
884
|
+
if (!S) return;
|
|
938
885
|
const z = e.shortcutResolver;
|
|
939
|
-
return z ? z(
|
|
940
|
-
},
|
|
886
|
+
return z ? z(S) : void 0;
|
|
887
|
+
}, Le = gt(() => !0, "context-menu-panel", {
|
|
941
888
|
type: "menu",
|
|
942
889
|
element: () => t,
|
|
943
890
|
parent: e.parentLayer
|
|
944
891
|
});
|
|
945
892
|
return It(() => {
|
|
946
893
|
if (e.depth !== 0) return;
|
|
947
|
-
const
|
|
948
|
-
!ye(C, "Escape") || !
|
|
894
|
+
const S = e.hostWin, z = (C) => {
|
|
895
|
+
!ye(C, "Escape") || !Le.isTopmost() || (C.stopPropagation(), C.stopImmediatePropagation(), e.onRequestClose());
|
|
949
896
|
};
|
|
950
|
-
|
|
897
|
+
S.addEventListener("keydown", z, !0), me(() => S.removeEventListener("keydown", z, !0));
|
|
951
898
|
}), (() => {
|
|
952
|
-
var
|
|
953
|
-
|
|
899
|
+
var S = Lr();
|
|
900
|
+
S.addEventListener("mouseleave", () => {
|
|
954
901
|
var C;
|
|
955
902
|
ee(), (C = e.onMouseLeavePanel) == null || C.call(e);
|
|
956
|
-
}),
|
|
903
|
+
}), S.addEventListener("mouseenter", () => {
|
|
957
904
|
var C;
|
|
958
905
|
re(), (C = e.onMouseEnterPanel) == null || C.call(e);
|
|
959
|
-
}),
|
|
906
|
+
}), S.$$keydown = j, S.$$contextmenu = (C) => C.preventDefault(), S.$$click = (C) => C.stopPropagation(), S.$$pointerdown = (C) => C.stopPropagation(), S.$$mousedown = (C) => C.stopPropagation();
|
|
960
907
|
var z = t;
|
|
961
|
-
return typeof z == "function" ? xe(z,
|
|
908
|
+
return typeof z == "function" ? xe(z, S) : t = S, c(S, n(Be, {
|
|
962
909
|
get viewportClass() {
|
|
963
910
|
return we.itemsViewport;
|
|
964
911
|
},
|
|
965
|
-
viewportRef: (C) =>
|
|
912
|
+
viewportRef: (C) => r = C,
|
|
966
913
|
get children() {
|
|
967
|
-
return
|
|
914
|
+
return n(Ae, {
|
|
968
915
|
get each() {
|
|
969
916
|
return e.items;
|
|
970
917
|
},
|
|
971
918
|
children: (C, d) => {
|
|
972
919
|
if (!dt(C))
|
|
973
920
|
return (() => {
|
|
974
|
-
var
|
|
975
|
-
return I(() => u(
|
|
921
|
+
var M = Ir();
|
|
922
|
+
return I(() => u(M, we.separator)), M;
|
|
976
923
|
})();
|
|
977
|
-
const f = () => !!(C.submenu && C.submenu.length > 0),
|
|
978
|
-
const
|
|
979
|
-
return typeof
|
|
924
|
+
const f = () => !!(C.submenu && C.submenu.length > 0), P = () => {
|
|
925
|
+
const M = C.checked;
|
|
926
|
+
return typeof M == "function" ? M() : !!M;
|
|
980
927
|
}, g = () => {
|
|
981
|
-
var
|
|
982
|
-
return f() && ((
|
|
928
|
+
var M;
|
|
929
|
+
return f() && ((M = b()) == null ? void 0 : M.items) === C.submenu;
|
|
983
930
|
};
|
|
984
|
-
let
|
|
931
|
+
let L;
|
|
985
932
|
const T = () => typeof C.label == "function" ? C.label() : C.label;
|
|
986
|
-
return
|
|
933
|
+
return n(qe, {
|
|
987
934
|
type: "button",
|
|
988
|
-
ref: (
|
|
989
|
-
|
|
990
|
-
const m = [
|
|
935
|
+
ref: (M) => {
|
|
936
|
+
E[d()] = M ?? null, nr(M, () => {
|
|
937
|
+
const m = [L && L.scrollWidth > L.clientWidth ? T() : "", C.hint ?? ""].filter(Boolean).join(`
|
|
991
938
|
`);
|
|
992
939
|
return m ? {
|
|
993
940
|
content: m,
|
|
@@ -1005,79 +952,79 @@ function Ut(e) {
|
|
|
1005
952
|
};
|
|
1006
953
|
},
|
|
1007
954
|
get role() {
|
|
1008
|
-
return
|
|
955
|
+
return ue(() => !!C.checkedRole)() ? `menuitem${C.checkedRole}` : "menuitem";
|
|
1009
956
|
},
|
|
1010
957
|
tabIndex: -1,
|
|
1011
958
|
get "aria-disabled"() {
|
|
1012
959
|
return C.disabled ? !0 : void 0;
|
|
1013
960
|
},
|
|
1014
961
|
get "aria-checked"() {
|
|
1015
|
-
return
|
|
962
|
+
return ue(() => !!C.checkedRole)() ? P() : void 0;
|
|
1016
963
|
},
|
|
1017
964
|
get "aria-haspopup"() {
|
|
1018
965
|
return f() ? "menu" : void 0;
|
|
1019
966
|
},
|
|
1020
967
|
get "aria-expanded"() {
|
|
1021
|
-
return
|
|
968
|
+
return ue(() => !!f())() ? g() : void 0;
|
|
1022
969
|
},
|
|
1023
970
|
get "aria-describedby"() {
|
|
1024
|
-
return
|
|
971
|
+
return ue(() => !!C.hint)() ? w(d()) : void 0;
|
|
1025
972
|
},
|
|
1026
973
|
onFocus: () => $(d()),
|
|
1027
|
-
onMouseEnter: (
|
|
974
|
+
onMouseEnter: (M) => {
|
|
1028
975
|
t && e.hostWin.document.activeElement && e.hostWin.document.activeElement !== t && t.contains(e.hostWin.document.activeElement) && t.focus({
|
|
1029
976
|
preventScroll: !0
|
|
1030
|
-
}), $(d()), le(
|
|
977
|
+
}), $(d()), le(M, C, d());
|
|
1031
978
|
},
|
|
1032
979
|
onClick: () => {
|
|
1033
|
-
var
|
|
980
|
+
var M;
|
|
1034
981
|
if (!C.disabled) {
|
|
1035
982
|
if (f()) {
|
|
1036
|
-
const O =
|
|
983
|
+
const O = E[d()];
|
|
1037
984
|
O && B(O, C, d(), !0);
|
|
1038
985
|
return;
|
|
1039
986
|
}
|
|
1040
|
-
(
|
|
987
|
+
(M = C.onSelect ?? C.onClick) == null || M(), C.keepOpenOnSelect || queueMicrotask(() => e.onRequestClose());
|
|
1041
988
|
}
|
|
1042
989
|
},
|
|
1043
990
|
get children() {
|
|
1044
991
|
return [(() => {
|
|
1045
|
-
var
|
|
1046
|
-
c(
|
|
992
|
+
var M = Mr(), O = M.firstChild;
|
|
993
|
+
c(M, n(D, {
|
|
1047
994
|
get when() {
|
|
1048
995
|
return Z();
|
|
1049
996
|
},
|
|
1050
997
|
get children() {
|
|
1051
|
-
var R =
|
|
1052
|
-
return c(R,
|
|
998
|
+
var R = Et();
|
|
999
|
+
return c(R, n(D, {
|
|
1053
1000
|
get when() {
|
|
1054
|
-
return
|
|
1001
|
+
return P();
|
|
1055
1002
|
},
|
|
1056
1003
|
get children() {
|
|
1057
|
-
return
|
|
1004
|
+
return n(qt, {});
|
|
1058
1005
|
}
|
|
1059
1006
|
})), I(() => u(R, we.check)), R;
|
|
1060
1007
|
}
|
|
1061
|
-
}), O), c(
|
|
1008
|
+
}), O), c(M, n(D, {
|
|
1062
1009
|
get when() {
|
|
1063
|
-
return
|
|
1010
|
+
return q();
|
|
1064
1011
|
},
|
|
1065
1012
|
get children() {
|
|
1066
|
-
var R =
|
|
1013
|
+
var R = Et();
|
|
1067
1014
|
return c(R, () => C.icon), I(() => u(R, we.itemIcon)), R;
|
|
1068
1015
|
}
|
|
1069
1016
|
}), O);
|
|
1070
|
-
var m =
|
|
1071
|
-
return typeof m == "function" ? xe(m, O) :
|
|
1072
|
-
var
|
|
1073
|
-
return
|
|
1017
|
+
var m = L;
|
|
1018
|
+
return typeof m == "function" ? xe(m, O) : L = O, c(O, T), I((R) => {
|
|
1019
|
+
var V = we.itemLabel, N = we.itemText;
|
|
1020
|
+
return V !== R.e && u(M, R.e = V), N !== R.t && u(O, R.t = N), R;
|
|
1074
1021
|
}, {
|
|
1075
1022
|
e: void 0,
|
|
1076
1023
|
t: void 0
|
|
1077
|
-
}),
|
|
1024
|
+
}), M;
|
|
1078
1025
|
})(), (() => {
|
|
1079
|
-
var
|
|
1080
|
-
return c(
|
|
1026
|
+
var M = wt();
|
|
1027
|
+
return c(M, n(D, {
|
|
1081
1028
|
get when() {
|
|
1082
1029
|
return fe(C.commandId) ?? C.shortcut;
|
|
1083
1030
|
},
|
|
@@ -1085,32 +1032,32 @@ function Ut(e) {
|
|
|
1085
1032
|
var m = wt();
|
|
1086
1033
|
return c(m, O), m;
|
|
1087
1034
|
})()
|
|
1088
|
-
}), null), c(
|
|
1035
|
+
}), null), c(M, n(D, {
|
|
1089
1036
|
get when() {
|
|
1090
1037
|
return f();
|
|
1091
1038
|
},
|
|
1092
1039
|
get children() {
|
|
1093
|
-
return
|
|
1040
|
+
return n(bn, {
|
|
1094
1041
|
get class() {
|
|
1095
1042
|
return we.submenuChevron;
|
|
1096
1043
|
},
|
|
1097
1044
|
"aria-hidden": "true"
|
|
1098
1045
|
});
|
|
1099
1046
|
}
|
|
1100
|
-
}), null), I(() => u(
|
|
1101
|
-
})(),
|
|
1047
|
+
}), null), I(() => u(M, we.itemMeta)), M;
|
|
1048
|
+
})(), n(D, {
|
|
1102
1049
|
get when() {
|
|
1103
1050
|
return C.hint;
|
|
1104
1051
|
},
|
|
1105
1052
|
get children() {
|
|
1106
|
-
var
|
|
1107
|
-
return c(
|
|
1108
|
-
var m =
|
|
1109
|
-
return m !== O.e && Y(
|
|
1053
|
+
var M = wt();
|
|
1054
|
+
return c(M, () => C.hint), I((O) => {
|
|
1055
|
+
var m = w(d()), R = we.visuallyHidden;
|
|
1056
|
+
return m !== O.e && Y(M, "id", O.e = m), R !== O.t && u(M, O.t = R), O;
|
|
1110
1057
|
}, {
|
|
1111
1058
|
e: void 0,
|
|
1112
1059
|
t: void 0
|
|
1113
|
-
}),
|
|
1060
|
+
}), M;
|
|
1114
1061
|
}
|
|
1115
1062
|
})];
|
|
1116
1063
|
}
|
|
@@ -1118,9 +1065,9 @@ function Ut(e) {
|
|
|
1118
1065
|
}
|
|
1119
1066
|
});
|
|
1120
1067
|
}
|
|
1121
|
-
}), null), c(
|
|
1068
|
+
}), null), c(S, n(D, {
|
|
1122
1069
|
get when() {
|
|
1123
|
-
return
|
|
1070
|
+
return b();
|
|
1124
1071
|
},
|
|
1125
1072
|
children: (C) => {
|
|
1126
1073
|
const d = C().flipLeft ? {
|
|
@@ -1128,12 +1075,12 @@ function Ut(e) {
|
|
|
1128
1075
|
} : {
|
|
1129
1076
|
left: C().x
|
|
1130
1077
|
};
|
|
1131
|
-
return
|
|
1078
|
+
return n(vt, {
|
|
1132
1079
|
get mount() {
|
|
1133
1080
|
return e.hostWin.document.body;
|
|
1134
1081
|
},
|
|
1135
1082
|
get children() {
|
|
1136
|
-
return
|
|
1083
|
+
return n(Ut, Ht(d, {
|
|
1137
1084
|
get top() {
|
|
1138
1085
|
return C().y;
|
|
1139
1086
|
},
|
|
@@ -1146,7 +1093,7 @@ function Ut(e) {
|
|
|
1146
1093
|
get hostWin() {
|
|
1147
1094
|
return e.hostWin;
|
|
1148
1095
|
},
|
|
1149
|
-
parentLayer:
|
|
1096
|
+
parentLayer: Le,
|
|
1150
1097
|
get autoFocusFirst() {
|
|
1151
1098
|
return C().autoFocus;
|
|
1152
1099
|
},
|
|
@@ -1170,8 +1117,8 @@ function Ut(e) {
|
|
|
1170
1117
|
});
|
|
1171
1118
|
}
|
|
1172
1119
|
}), null), I((C) => {
|
|
1173
|
-
var d = we.menu, f =
|
|
1174
|
-
return d !== C.e && u(
|
|
1120
|
+
var d = we.menu, f = a().left !== void 0 ? `${a().left}px` : void 0, P = a().top !== void 0 ? `${a().top}px` : void 0, g = a().right !== void 0 ? `${a().right}px` : void 0, L = a().bottom !== void 0 ? `${a().bottom}px` : void 0, T = a().maxHeight !== void 0 ? `${a().maxHeight}px` : void 0, M = a().maxWidth !== void 0 ? `${Math.min(360, a().maxWidth ?? 360)}px` : void 0, O = e.depth > 0 ? `calc(var(--z-context-menu) + ${e.depth})` : void 0, m = e.depth;
|
|
1121
|
+
return d !== C.e && u(S, C.e = d), f !== C.t && De(S, "left", C.t = f), P !== C.a && De(S, "top", C.a = P), g !== C.o && De(S, "right", C.o = g), L !== C.i && De(S, "bottom", C.i = L), T !== C.n && De(S, "max-height", C.n = T), M !== C.s && De(S, "max-width", C.s = M), O !== C.h && De(S, "z-index", C.h = O), m !== C.r && Y(S, "data-desktop-menu-depth", C.r = m), C;
|
|
1175
1122
|
}, {
|
|
1176
1123
|
e: void 0,
|
|
1177
1124
|
t: void 0,
|
|
@@ -1182,16 +1129,16 @@ function Ut(e) {
|
|
|
1182
1129
|
s: void 0,
|
|
1183
1130
|
h: void 0,
|
|
1184
1131
|
r: void 0
|
|
1185
|
-
}),
|
|
1132
|
+
}), S;
|
|
1186
1133
|
})();
|
|
1187
1134
|
}
|
|
1188
|
-
function
|
|
1135
|
+
function Ar(e) {
|
|
1189
1136
|
return e !== null && e !== e.ownerDocument.body && typeof e.focus == "function";
|
|
1190
1137
|
}
|
|
1191
1138
|
function Er(e = {}) {
|
|
1192
1139
|
const t = $n();
|
|
1193
|
-
let
|
|
1194
|
-
const
|
|
1140
|
+
let r;
|
|
1141
|
+
const o = () => {
|
|
1195
1142
|
const s = t.state();
|
|
1196
1143
|
if (s != null && s.ownerWindow) return s.ownerWindow;
|
|
1197
1144
|
if (s != null && s.triggerEl) {
|
|
@@ -1199,54 +1146,54 @@ function Er(e = {}) {
|
|
|
1199
1146
|
if (h) return h;
|
|
1200
1147
|
}
|
|
1201
1148
|
if (e.ownerWindow) return e.ownerWindow;
|
|
1202
|
-
const l =
|
|
1203
|
-
return l ||
|
|
1204
|
-
},
|
|
1149
|
+
const l = r ? Ue(r) : null;
|
|
1150
|
+
return l || Ke().window;
|
|
1151
|
+
}, i = () => {
|
|
1205
1152
|
var s;
|
|
1206
1153
|
return e.shortcutResolver ?? ((s = t.state()) == null ? void 0 : s.shortcutResolver) ?? t.shortcutResolver;
|
|
1207
|
-
},
|
|
1154
|
+
}, a = (s) => {
|
|
1208
1155
|
var v;
|
|
1209
1156
|
const l = s.target;
|
|
1210
1157
|
if (!l || l.closest("[data-desktop-menu-depth]")) return;
|
|
1211
1158
|
const h = (v = t.state()) == null ? void 0 : v.triggerEl;
|
|
1212
1159
|
h && (h === l || h.contains(l)) || t.close();
|
|
1213
1160
|
};
|
|
1214
|
-
let
|
|
1161
|
+
let k = null;
|
|
1215
1162
|
dn(Ft(t.state, (s, l) => {
|
|
1216
1163
|
if (s === null || l != null)
|
|
1217
1164
|
return;
|
|
1218
|
-
const h =
|
|
1219
|
-
|
|
1165
|
+
const h = o().document.activeElement;
|
|
1166
|
+
k = Ar(h) ? h : null;
|
|
1220
1167
|
}));
|
|
1221
|
-
const
|
|
1222
|
-
const l =
|
|
1223
|
-
if (
|
|
1168
|
+
const b = (s) => {
|
|
1169
|
+
const l = k;
|
|
1170
|
+
if (k = null, l === null || !l.isConnected) return;
|
|
1224
1171
|
const h = s.activeElement;
|
|
1225
1172
|
(h === null || h === s.body || h.closest("[data-desktop-menu-depth]") !== null) && l.focus();
|
|
1226
1173
|
};
|
|
1227
1174
|
return $e(() => {
|
|
1228
1175
|
if (!t.state()) return;
|
|
1229
|
-
const s =
|
|
1176
|
+
const s = o(), l = () => {
|
|
1230
1177
|
t.close();
|
|
1231
1178
|
}, h = () => {
|
|
1232
1179
|
t.close();
|
|
1233
1180
|
};
|
|
1234
|
-
s.addEventListener("mousedown",
|
|
1235
|
-
s.removeEventListener("mousedown",
|
|
1181
|
+
s.addEventListener("mousedown", a), s.addEventListener("blur", l), s.addEventListener("dragstart", h, !0), me(() => {
|
|
1182
|
+
s.removeEventListener("mousedown", a), s.removeEventListener("blur", l), s.removeEventListener("dragstart", h, !0), t.state() === null && b(s.document);
|
|
1236
1183
|
});
|
|
1237
1184
|
}), [(() => {
|
|
1238
|
-
var s =
|
|
1239
|
-
return typeof l == "function" ? xe(l, s) :
|
|
1240
|
-
})(),
|
|
1185
|
+
var s = Dr(), l = r;
|
|
1186
|
+
return typeof l == "function" ? xe(l, s) : r = s, s;
|
|
1187
|
+
})(), n(D, {
|
|
1241
1188
|
get when() {
|
|
1242
1189
|
return t.state();
|
|
1243
1190
|
},
|
|
1244
|
-
children: (s) =>
|
|
1191
|
+
children: (s) => n(vt, {
|
|
1245
1192
|
get mount() {
|
|
1246
|
-
return
|
|
1193
|
+
return o().document.body;
|
|
1247
1194
|
},
|
|
1248
1195
|
get children() {
|
|
1249
|
-
return
|
|
1196
|
+
return n(Ut, {
|
|
1250
1197
|
get left() {
|
|
1251
1198
|
return s().left;
|
|
1252
1199
|
},
|
|
@@ -1273,39 +1220,39 @@ function Er(e = {}) {
|
|
|
1273
1220
|
},
|
|
1274
1221
|
depth: 0,
|
|
1275
1222
|
get hostWin() {
|
|
1276
|
-
return
|
|
1223
|
+
return o();
|
|
1277
1224
|
},
|
|
1278
1225
|
get onRequestClose() {
|
|
1279
1226
|
return t.close;
|
|
1280
1227
|
},
|
|
1281
1228
|
get shortcutResolver() {
|
|
1282
|
-
return
|
|
1229
|
+
return i();
|
|
1283
1230
|
}
|
|
1284
1231
|
});
|
|
1285
1232
|
}
|
|
1286
1233
|
})
|
|
1287
1234
|
})];
|
|
1288
1235
|
}
|
|
1289
|
-
|
|
1290
|
-
function
|
|
1236
|
+
Ee(["mousedown", "pointerdown", "click", "contextmenu", "keydown"]);
|
|
1237
|
+
function Pr(e) {
|
|
1291
1238
|
return e ? "nodeType" in e ? { el: e, toggle: !0 } : e.type === "contextmenu" ? { el: void 0, toggle: !1 } : { el: e.currentTarget ?? e.target ?? void 0, toggle: !0 } : { el: void 0, toggle: !1 };
|
|
1292
1239
|
}
|
|
1293
|
-
function
|
|
1294
|
-
const [t,
|
|
1240
|
+
function Tr(e) {
|
|
1241
|
+
const [t, r] = Q(null);
|
|
1295
1242
|
return {
|
|
1296
1243
|
state: t,
|
|
1297
|
-
open: (
|
|
1298
|
-
const { el: l, toggle: h } =
|
|
1244
|
+
open: (a, k, b, s) => {
|
|
1245
|
+
const { el: l, toggle: h } = Pr(s), v = t();
|
|
1299
1246
|
if (h && v && l && v.triggerEl === l) {
|
|
1300
|
-
|
|
1247
|
+
r(null);
|
|
1301
1248
|
return;
|
|
1302
1249
|
}
|
|
1303
1250
|
const $ = s ? Ue(s) : null;
|
|
1304
|
-
|
|
1305
|
-
left:
|
|
1306
|
-
top:
|
|
1307
|
-
anchor: { left:
|
|
1308
|
-
items:
|
|
1251
|
+
r({
|
|
1252
|
+
left: a,
|
|
1253
|
+
top: k,
|
|
1254
|
+
anchor: { left: a, top: k, width: 0, height: 0 },
|
|
1255
|
+
items: b,
|
|
1309
1256
|
// Pin the menu to the window the trigger lives in — aux-safe for shared
|
|
1310
1257
|
// editor groups whose DOM is adopted into an aux window.
|
|
1311
1258
|
...$ ? { ownerWindow: $ } : {},
|
|
@@ -1313,30 +1260,30 @@ function Rr(e) {
|
|
|
1313
1260
|
...e != null && e.shortcutResolver ? { shortcutResolver: e.shortcutResolver } : {}
|
|
1314
1261
|
});
|
|
1315
1262
|
},
|
|
1316
|
-
openWithPlacement: (
|
|
1317
|
-
const
|
|
1318
|
-
if (
|
|
1319
|
-
|
|
1263
|
+
openWithPlacement: (a, k) => {
|
|
1264
|
+
const b = t();
|
|
1265
|
+
if (b && a.triggerEl && b.triggerEl === a.triggerEl) {
|
|
1266
|
+
r(null);
|
|
1320
1267
|
return;
|
|
1321
1268
|
}
|
|
1322
|
-
|
|
1269
|
+
r({
|
|
1323
1270
|
...e != null && e.shortcutResolver ? { shortcutResolver: e.shortcutResolver } : {},
|
|
1324
|
-
...
|
|
1325
|
-
items:
|
|
1271
|
+
...a,
|
|
1272
|
+
items: k
|
|
1326
1273
|
});
|
|
1327
1274
|
},
|
|
1328
|
-
close: () =>
|
|
1275
|
+
close: () => r(null),
|
|
1329
1276
|
shortcutResolver: e == null ? void 0 : e.shortcutResolver
|
|
1330
1277
|
};
|
|
1331
1278
|
}
|
|
1332
|
-
const
|
|
1279
|
+
const St = Tr();
|
|
1333
1280
|
function jt(e) {
|
|
1334
1281
|
if (e.separator || e.type === "separator")
|
|
1335
1282
|
return {
|
|
1336
1283
|
type: "separator",
|
|
1337
1284
|
id: e.id
|
|
1338
1285
|
};
|
|
1339
|
-
const t = e.shortcut ?? e.hint,
|
|
1286
|
+
const t = e.shortcut ?? e.hint, r = e.onSelect ?? e.onClick;
|
|
1340
1287
|
return {
|
|
1341
1288
|
id: e.id,
|
|
1342
1289
|
label: e.label,
|
|
@@ -1352,68 +1299,68 @@ function jt(e) {
|
|
|
1352
1299
|
...e.disabled !== void 0 ? {
|
|
1353
1300
|
disabled: e.disabled
|
|
1354
1301
|
} : {},
|
|
1355
|
-
...
|
|
1356
|
-
onSelect:
|
|
1302
|
+
...r ? {
|
|
1303
|
+
onSelect: r
|
|
1357
1304
|
} : {},
|
|
1358
1305
|
...e.submenu ? {
|
|
1359
1306
|
submenu: e.submenu.map(jt)
|
|
1360
1307
|
} : {}
|
|
1361
1308
|
};
|
|
1362
1309
|
}
|
|
1363
|
-
function
|
|
1364
|
-
e.preventDefault(), e.stopPropagation(),
|
|
1310
|
+
function sc(e, t) {
|
|
1311
|
+
e.preventDefault(), e.stopPropagation(), St.open(e.clientX, e.clientY, t.map(jt), e);
|
|
1365
1312
|
}
|
|
1366
|
-
function
|
|
1367
|
-
|
|
1313
|
+
function dc() {
|
|
1314
|
+
St.close();
|
|
1368
1315
|
}
|
|
1369
|
-
function
|
|
1370
|
-
return
|
|
1371
|
-
value:
|
|
1316
|
+
function uc() {
|
|
1317
|
+
return n(xn.Provider, {
|
|
1318
|
+
value: St,
|
|
1372
1319
|
get children() {
|
|
1373
|
-
return
|
|
1320
|
+
return n(Er, {});
|
|
1374
1321
|
}
|
|
1375
1322
|
});
|
|
1376
1323
|
}
|
|
1377
|
-
const
|
|
1378
|
-
root:
|
|
1379
|
-
header:
|
|
1380
|
-
headerClosable:
|
|
1381
|
-
title:
|
|
1382
|
-
headerActions:
|
|
1383
|
-
body:
|
|
1384
|
-
section:
|
|
1385
|
-
sectionHeader:
|
|
1324
|
+
const Rr = "vk_root_B3p1P", Wr = "vk_header_m86aH", Or = "vk_headerClosable_qZJYa", Br = "vk_title_iMvk7", zr = "vk_headerActions_nNOSK", Hr = "vk_body_gPJbb", Fr = "vk_section_IQiWf", Nr = "vk_sectionHeader_kxaBm", Vr = "vk_sectionTitle_ygxTo vk_sectionLabel_WuN5V", qr = "vk_sectionAside_1geCf", pr = "vk_field_KGZ79", Kr = "vk_fieldText_-F0vc", Yr = "vk_fieldLabel_Edhqk", Ur = "vk_fieldDescription_UIVq3", jr = "vk_fieldControl_6qm3p", Gr = "vk_separator_VeGkl vk_separator_zMw59", Xr = "vk_footer_yuP7q", Qr = "vk_footerBetween_UbaYB", Jr = "vk_footerStretch_1rukw", ae = {
|
|
1325
|
+
root: Rr,
|
|
1326
|
+
header: Wr,
|
|
1327
|
+
headerClosable: Or,
|
|
1328
|
+
title: Br,
|
|
1329
|
+
headerActions: zr,
|
|
1330
|
+
body: Hr,
|
|
1331
|
+
section: Fr,
|
|
1332
|
+
sectionHeader: Nr,
|
|
1386
1333
|
sectionTitle: Vr,
|
|
1387
1334
|
sectionAside: qr,
|
|
1388
|
-
field:
|
|
1389
|
-
fieldText:
|
|
1390
|
-
fieldLabel:
|
|
1391
|
-
fieldDescription:
|
|
1392
|
-
fieldControl:
|
|
1393
|
-
separator:
|
|
1394
|
-
footer:
|
|
1395
|
-
footerBetween:
|
|
1396
|
-
footerStretch:
|
|
1335
|
+
field: pr,
|
|
1336
|
+
fieldText: Kr,
|
|
1337
|
+
fieldLabel: Yr,
|
|
1338
|
+
fieldDescription: Ur,
|
|
1339
|
+
fieldControl: jr,
|
|
1340
|
+
separator: Gr,
|
|
1341
|
+
footer: Xr,
|
|
1342
|
+
footerBetween: Qr,
|
|
1343
|
+
footerStretch: Jr
|
|
1397
1344
|
};
|
|
1398
|
-
var
|
|
1399
|
-
function
|
|
1345
|
+
var Zr = /* @__PURE__ */ W("<div>"), Gt = /* @__PURE__ */ W("<span>"), eo = /* @__PURE__ */ W("<section><div>"), to = /* @__PURE__ */ W("<div><div><span></span></div><div>"), no = /* @__PURE__ */ W("<div role=separator>");
|
|
1346
|
+
function ze(...e) {
|
|
1400
1347
|
return e.filter((t) => !!t).join(" ");
|
|
1401
1348
|
}
|
|
1402
|
-
function
|
|
1403
|
-
const [t,
|
|
1404
|
-
return
|
|
1349
|
+
function ro(e) {
|
|
1350
|
+
const [t, r] = un(e, ["class"]);
|
|
1351
|
+
return n(Ye.Root, Ht({
|
|
1405
1352
|
get class() {
|
|
1406
|
-
return
|
|
1353
|
+
return ze(ae.root, t.class);
|
|
1407
1354
|
}
|
|
1408
|
-
},
|
|
1355
|
+
}, r));
|
|
1409
1356
|
}
|
|
1410
|
-
function
|
|
1411
|
-
return
|
|
1357
|
+
function oo(e) {
|
|
1358
|
+
return n(Ye.Header, {
|
|
1412
1359
|
get class() {
|
|
1413
|
-
return
|
|
1360
|
+
return ze(ae.header, e.onClose !== void 0 && ae.headerClosable, e.class);
|
|
1414
1361
|
},
|
|
1415
1362
|
get children() {
|
|
1416
|
-
return [
|
|
1363
|
+
return [n(Ye.Title, {
|
|
1417
1364
|
as: "h3",
|
|
1418
1365
|
get class() {
|
|
1419
1366
|
return ae.title;
|
|
@@ -1421,30 +1368,30 @@ function io(e) {
|
|
|
1421
1368
|
get children() {
|
|
1422
1369
|
return e.title;
|
|
1423
1370
|
}
|
|
1424
|
-
}),
|
|
1371
|
+
}), n(D, {
|
|
1425
1372
|
get when() {
|
|
1426
1373
|
return e.actions !== void 0 || e.onClose !== void 0;
|
|
1427
1374
|
},
|
|
1428
1375
|
get children() {
|
|
1429
|
-
var t =
|
|
1430
|
-
return c(t, () => e.actions, null), c(t,
|
|
1376
|
+
var t = Zr();
|
|
1377
|
+
return c(t, () => e.actions, null), c(t, n(D, {
|
|
1431
1378
|
get when() {
|
|
1432
1379
|
return e.onClose !== void 0;
|
|
1433
1380
|
},
|
|
1434
1381
|
get children() {
|
|
1435
|
-
return
|
|
1382
|
+
return n(he, {
|
|
1436
1383
|
variant: "ghost",
|
|
1437
1384
|
size: "xs",
|
|
1438
1385
|
iconOnly: !0,
|
|
1439
1386
|
get leadingIcon() {
|
|
1440
|
-
return
|
|
1387
|
+
return n(xt, {});
|
|
1441
1388
|
},
|
|
1442
1389
|
get "aria-label"() {
|
|
1443
1390
|
return e.closeLabel ?? y("Close");
|
|
1444
1391
|
},
|
|
1445
1392
|
onClick: () => {
|
|
1446
|
-
var
|
|
1447
|
-
return (
|
|
1393
|
+
var r;
|
|
1394
|
+
return (r = e.onClose) == null ? void 0 : r.call(e);
|
|
1448
1395
|
}
|
|
1449
1396
|
});
|
|
1450
1397
|
}
|
|
@@ -1454,21 +1401,21 @@ function io(e) {
|
|
|
1454
1401
|
}
|
|
1455
1402
|
});
|
|
1456
1403
|
}
|
|
1457
|
-
function
|
|
1458
|
-
return
|
|
1404
|
+
function io(e) {
|
|
1405
|
+
return n(Ye.Body, {
|
|
1459
1406
|
get class() {
|
|
1460
|
-
return
|
|
1407
|
+
return ze(ae.body, e.class);
|
|
1461
1408
|
},
|
|
1462
1409
|
get children() {
|
|
1463
1410
|
return e.children;
|
|
1464
1411
|
}
|
|
1465
1412
|
});
|
|
1466
1413
|
}
|
|
1467
|
-
function
|
|
1414
|
+
function ao(e) {
|
|
1468
1415
|
const t = ge();
|
|
1469
1416
|
return (() => {
|
|
1470
|
-
var
|
|
1471
|
-
return Y(
|
|
1417
|
+
var r = eo(), o = r.firstChild;
|
|
1418
|
+
return Y(r, "aria-labelledby", t), c(o, n(Ye.Title, {
|
|
1472
1419
|
as: "h4",
|
|
1473
1420
|
id: t,
|
|
1474
1421
|
get class() {
|
|
@@ -1477,171 +1424,171 @@ function lo(e) {
|
|
|
1477
1424
|
get children() {
|
|
1478
1425
|
return e.title;
|
|
1479
1426
|
}
|
|
1480
|
-
}), null), c(
|
|
1427
|
+
}), null), c(o, n(D, {
|
|
1481
1428
|
get when() {
|
|
1482
1429
|
return e.aside !== void 0;
|
|
1483
1430
|
},
|
|
1484
1431
|
get children() {
|
|
1485
|
-
var
|
|
1486
|
-
return c(
|
|
1432
|
+
var i = Gt();
|
|
1433
|
+
return c(i, () => e.aside), I(() => u(i, ae.sectionAside)), i;
|
|
1487
1434
|
}
|
|
1488
|
-
}), null), c(
|
|
1489
|
-
var
|
|
1490
|
-
return
|
|
1435
|
+
}), null), c(r, () => e.children, null), I((i) => {
|
|
1436
|
+
var a = ze(ae.section, e.class), k = ae.sectionHeader;
|
|
1437
|
+
return a !== i.e && u(r, i.e = a), k !== i.t && u(o, i.t = k), i;
|
|
1491
1438
|
}, {
|
|
1492
1439
|
e: void 0,
|
|
1493
1440
|
t: void 0
|
|
1494
|
-
}),
|
|
1441
|
+
}), r;
|
|
1495
1442
|
})();
|
|
1496
1443
|
}
|
|
1497
|
-
function
|
|
1498
|
-
const t = ge(),
|
|
1444
|
+
function lo(e) {
|
|
1445
|
+
const t = ge(), r = ge();
|
|
1499
1446
|
return (() => {
|
|
1500
|
-
var
|
|
1501
|
-
return Y(
|
|
1447
|
+
var o = to(), i = o.firstChild, a = i.firstChild, k = i.nextSibling;
|
|
1448
|
+
return Y(a, "id", t), c(a, () => e.label), c(i, n(D, {
|
|
1502
1449
|
get when() {
|
|
1503
1450
|
return e.description !== void 0;
|
|
1504
1451
|
},
|
|
1505
1452
|
get children() {
|
|
1506
|
-
var
|
|
1507
|
-
return Y(
|
|
1453
|
+
var b = Gt();
|
|
1454
|
+
return Y(b, "id", r), c(b, () => e.description), I(() => u(b, ae.fieldDescription)), b;
|
|
1508
1455
|
}
|
|
1509
|
-
}), null), c(
|
|
1456
|
+
}), null), c(k, n(vn, {
|
|
1510
1457
|
value: {
|
|
1511
1458
|
labelId: t,
|
|
1512
|
-
describedBy: () => e.description !== void 0 ?
|
|
1459
|
+
describedBy: () => e.description !== void 0 ? r : void 0,
|
|
1513
1460
|
wrapsControlInLabel: !1
|
|
1514
1461
|
},
|
|
1515
1462
|
get children() {
|
|
1516
1463
|
return e.children;
|
|
1517
1464
|
}
|
|
1518
|
-
})), I((
|
|
1519
|
-
var s =
|
|
1520
|
-
return s !==
|
|
1465
|
+
})), I((b) => {
|
|
1466
|
+
var s = ze(ae.field, e.class), l = ae.fieldText, h = ae.fieldLabel, v = ae.fieldControl;
|
|
1467
|
+
return s !== b.e && u(o, b.e = s), l !== b.t && u(i, b.t = l), h !== b.a && u(a, b.a = h), v !== b.o && u(k, b.o = v), b;
|
|
1521
1468
|
}, {
|
|
1522
1469
|
e: void 0,
|
|
1523
1470
|
t: void 0,
|
|
1524
1471
|
a: void 0,
|
|
1525
1472
|
o: void 0
|
|
1526
|
-
}),
|
|
1473
|
+
}), o;
|
|
1527
1474
|
})();
|
|
1528
1475
|
}
|
|
1529
|
-
function
|
|
1476
|
+
function co(e) {
|
|
1530
1477
|
return (() => {
|
|
1531
|
-
var t =
|
|
1532
|
-
return I(() => u(t,
|
|
1478
|
+
var t = no();
|
|
1479
|
+
return I(() => u(t, ze(ae.separator, e.class))), t;
|
|
1533
1480
|
})();
|
|
1534
1481
|
}
|
|
1535
|
-
function
|
|
1482
|
+
function so(e) {
|
|
1536
1483
|
const t = () => e.align === "between" ? ae.footerBetween : e.align === "stretch" ? ae.footerStretch : void 0;
|
|
1537
|
-
return
|
|
1484
|
+
return n(Ye.Footer, {
|
|
1538
1485
|
get class() {
|
|
1539
|
-
return
|
|
1486
|
+
return ze(ae.footer, t(), e.class);
|
|
1540
1487
|
},
|
|
1541
1488
|
get children() {
|
|
1542
1489
|
return e.children;
|
|
1543
1490
|
}
|
|
1544
1491
|
});
|
|
1545
1492
|
}
|
|
1546
|
-
const
|
|
1547
|
-
Root:
|
|
1548
|
-
Header:
|
|
1549
|
-
Body:
|
|
1550
|
-
Section:
|
|
1551
|
-
Field:
|
|
1552
|
-
Separator:
|
|
1553
|
-
Footer:
|
|
1554
|
-
},
|
|
1555
|
-
backdrop:
|
|
1556
|
-
drawer:
|
|
1557
|
-
placementRight:
|
|
1558
|
-
placementLeft:
|
|
1559
|
-
placementBottom:
|
|
1560
|
-
sizeSm:
|
|
1561
|
-
sizeMd:
|
|
1562
|
-
sizeLg:
|
|
1563
|
-
header:
|
|
1564
|
-
title:
|
|
1565
|
-
closeBtn:
|
|
1566
|
-
body:
|
|
1567
|
-
bodyContent:
|
|
1568
|
-
footer:
|
|
1493
|
+
const mc = {
|
|
1494
|
+
Root: ro,
|
|
1495
|
+
Header: oo,
|
|
1496
|
+
Body: io,
|
|
1497
|
+
Section: ao,
|
|
1498
|
+
Field: lo,
|
|
1499
|
+
Separator: co,
|
|
1500
|
+
Footer: so
|
|
1501
|
+
}, uo = "vk_backdrop_OD2hy", mo = "vk_drawer_TB0OC", vo = "vk_placementRight_qWrAL", ho = "vk_placementLeft_zWVlF", go = "vk_placementBottom_ZOZT3", fo = "vk_sizeSm_GISo4", bo = "vk_sizeMd_GHr9h", _o = "vk_sizeLg_RCTZF", wo = "vk_header_NeiDb", ko = "vk_title_ku48d", Co = "vk_closeBtn_1vaaT", yo = "vk_body_XAjO6", $o = "vk_bodyContent_8qDK-", xo = "vk_footer_vRDdY", _e = {
|
|
1502
|
+
backdrop: uo,
|
|
1503
|
+
drawer: mo,
|
|
1504
|
+
placementRight: vo,
|
|
1505
|
+
placementLeft: ho,
|
|
1506
|
+
placementBottom: go,
|
|
1507
|
+
sizeSm: fo,
|
|
1508
|
+
sizeMd: bo,
|
|
1509
|
+
sizeLg: _o,
|
|
1510
|
+
header: wo,
|
|
1511
|
+
title: ko,
|
|
1512
|
+
closeBtn: Co,
|
|
1513
|
+
body: yo,
|
|
1514
|
+
bodyContent: $o,
|
|
1515
|
+
footer: xo
|
|
1569
1516
|
};
|
|
1570
|
-
var So = /* @__PURE__ */ W("<div aria-hidden=true>"),
|
|
1571
|
-
function
|
|
1517
|
+
var So = /* @__PURE__ */ W("<div aria-hidden=true>"), Lo = /* @__PURE__ */ W("<h3>"), Pt = /* @__PURE__ */ W("<div>"), Io = /* @__PURE__ */ W("<footer>"), Mo = /* @__PURE__ */ W("<aside role=dialog aria-modal=true tabindex=-1><header><button type=button></button></header><div>");
|
|
1518
|
+
function vc(e) {
|
|
1572
1519
|
let t = null;
|
|
1573
|
-
const
|
|
1520
|
+
const r = ot(), o = ve((w) => e.open ? w ?? Ke().document : null, null), i = gt(() => e.open, "drawer", {
|
|
1574
1521
|
type: "modal",
|
|
1575
1522
|
element: () => t != null && t.isConnected ? t : null,
|
|
1576
|
-
document: () =>
|
|
1577
|
-
}),
|
|
1523
|
+
document: () => o() ?? void 0
|
|
1524
|
+
}), a = rt({
|
|
1578
1525
|
open: () => e.open,
|
|
1579
|
-
ownerDocument: () =>
|
|
1580
|
-
}),
|
|
1581
|
-
t =
|
|
1582
|
-
if (!
|
|
1583
|
-
(
|
|
1526
|
+
ownerDocument: () => o() ?? Ke().document
|
|
1527
|
+
}), k = (w) => {
|
|
1528
|
+
t = w, a.captureDialog(w), nt(w, () => {
|
|
1529
|
+
if (!w.isConnected) return;
|
|
1530
|
+
(w.querySelector('button:not([disabled]), input:not([disabled]), [tabindex="0"]') ?? w).focus();
|
|
1584
1531
|
});
|
|
1585
|
-
},
|
|
1586
|
-
|
|
1587
|
-
}, s = (
|
|
1588
|
-
|
|
1589
|
-
}, l = (
|
|
1590
|
-
ht(
|
|
1532
|
+
}, b = (w) => {
|
|
1533
|
+
r.noteMouseDown(w.target === w.currentTarget);
|
|
1534
|
+
}, s = (w) => {
|
|
1535
|
+
r.shouldCloseOnClick(w.target === w.currentTarget) && e.onClose();
|
|
1536
|
+
}, l = (w) => {
|
|
1537
|
+
ht(w.key, {
|
|
1591
1538
|
confirmOnEnter: !1
|
|
1592
|
-
}) === "trap" && t &&
|
|
1593
|
-
}, h = () => e.placement ?? "right", v = () => e.size ?? "md", $ = () => h() === "left" ? _e.placementLeft : h() === "bottom" ? _e.placementBottom : _e.placementRight,
|
|
1539
|
+
}) === "trap" && t && et(t, w);
|
|
1540
|
+
}, h = () => e.placement ?? "right", v = () => e.size ?? "md", $ = () => h() === "left" ? _e.placementLeft : h() === "bottom" ? _e.placementBottom : _e.placementRight, _ = () => v() === "sm" ? _e.sizeSm : v() === "lg" ? _e.sizeLg : _e.sizeMd;
|
|
1594
1541
|
return $e(() => {
|
|
1595
1542
|
var x;
|
|
1596
|
-
const
|
|
1597
|
-
if (!
|
|
1598
|
-
const
|
|
1599
|
-
!ye(
|
|
1543
|
+
const w = (x = o()) == null ? void 0 : x.defaultView;
|
|
1544
|
+
if (!w) return;
|
|
1545
|
+
const E = (q) => {
|
|
1546
|
+
!ye(q, "Escape") || !i.isTopmost() || (q.stopPropagation(), q.stopImmediatePropagation(), e.onClose());
|
|
1600
1547
|
};
|
|
1601
|
-
|
|
1602
|
-
}),
|
|
1548
|
+
w.addEventListener("keydown", E, !0), me(() => w.removeEventListener("keydown", E, !0));
|
|
1549
|
+
}), n(D, {
|
|
1603
1550
|
get when() {
|
|
1604
|
-
return
|
|
1551
|
+
return o();
|
|
1605
1552
|
},
|
|
1606
|
-
children: (
|
|
1553
|
+
children: (w) => n(vt, {
|
|
1607
1554
|
get mount() {
|
|
1608
|
-
return
|
|
1555
|
+
return w().body;
|
|
1609
1556
|
},
|
|
1610
1557
|
get children() {
|
|
1611
1558
|
return [(() => {
|
|
1612
|
-
var
|
|
1613
|
-
return
|
|
1559
|
+
var E = So();
|
|
1560
|
+
return E.$$click = s, E.$$mousedown = b, I(() => u(E, _e.backdrop)), E;
|
|
1614
1561
|
})(), (() => {
|
|
1615
|
-
var
|
|
1616
|
-
return
|
|
1562
|
+
var E = Mo(), x = E.firstChild, q = x.firstChild, Z = x.nextSibling;
|
|
1563
|
+
return E.$$keydown = l, xe(k, E), c(x, n(D, {
|
|
1617
1564
|
get when() {
|
|
1618
1565
|
return e.title;
|
|
1619
1566
|
},
|
|
1620
1567
|
get fallback() {
|
|
1621
|
-
return
|
|
1568
|
+
return Pt();
|
|
1622
1569
|
},
|
|
1623
1570
|
get children() {
|
|
1624
|
-
var A =
|
|
1571
|
+
var A = Lo();
|
|
1625
1572
|
return c(A, () => e.title), I(() => u(A, _e.title)), A;
|
|
1626
1573
|
}
|
|
1627
|
-
}),
|
|
1574
|
+
}), q), pe(q, "click", e.onClose, !0), c(q, n(xt, {
|
|
1628
1575
|
"aria-hidden": "true"
|
|
1629
|
-
})), c(Z,
|
|
1576
|
+
})), c(Z, n(Be, {
|
|
1630
1577
|
get children() {
|
|
1631
|
-
var A =
|
|
1578
|
+
var A = Pt();
|
|
1632
1579
|
return c(A, () => e.children), I(() => u(A, _e.bodyContent)), A;
|
|
1633
1580
|
}
|
|
1634
|
-
})), c(
|
|
1581
|
+
})), c(E, n(D, {
|
|
1635
1582
|
get when() {
|
|
1636
1583
|
return e.footer;
|
|
1637
1584
|
},
|
|
1638
1585
|
get children() {
|
|
1639
|
-
var A =
|
|
1586
|
+
var A = Io();
|
|
1640
1587
|
return c(A, () => e.footer), I(() => u(A, _e.footer)), A;
|
|
1641
1588
|
}
|
|
1642
1589
|
}), null), I((A) => {
|
|
1643
|
-
var B = `${_e.drawer} ${$()} ${
|
|
1644
|
-
return B !== A.e && u(
|
|
1590
|
+
var B = `${_e.drawer} ${$()} ${_()} ${e.class ?? ""}`, F = e.ariaLabel ?? e.title ?? y("Drawer"), j = _e.header, J = _e.closeBtn, re = y("Close drawer"), ee = y("Close"), le = _e.body;
|
|
1591
|
+
return B !== A.e && u(E, A.e = B), F !== A.t && Y(E, "aria-label", A.t = F), j !== A.a && u(x, A.a = j), J !== A.o && u(q, A.o = J), re !== A.i && Y(q, "aria-label", A.i = re), ee !== A.n && Y(q, "title", A.n = ee), le !== A.s && u(Z, A.s = le), A;
|
|
1645
1592
|
}, {
|
|
1646
1593
|
e: void 0,
|
|
1647
1594
|
t: void 0,
|
|
@@ -1650,54 +1597,54 @@ function hc(e) {
|
|
|
1650
1597
|
i: void 0,
|
|
1651
1598
|
n: void 0,
|
|
1652
1599
|
s: void 0
|
|
1653
|
-
}),
|
|
1600
|
+
}), E;
|
|
1654
1601
|
})()];
|
|
1655
1602
|
}
|
|
1656
1603
|
})
|
|
1657
1604
|
});
|
|
1658
1605
|
}
|
|
1659
|
-
|
|
1660
|
-
const
|
|
1661
|
-
list:
|
|
1662
|
-
listViewport:
|
|
1606
|
+
Ee(["mousedown", "click", "keydown"]);
|
|
1607
|
+
const Do = "vk_list_iYUkw", Ao = "vk_listViewport_JwNDT", Eo = "vk_section_zygSY", Po = "vk_sectionHeader_m2b8a", To = "vk_sectionLabel_WuN5V", Ro = "vk_sectionAside_P5VF4", Wo = "vk_item_ZIjh8 vk_item_neWq-", Oo = "vk_itemSelected_HK9is vk_itemSelected_f4xDB", Bo = "vk_itemActive_GPKO0 vk_itemActive_vyOXZ", zo = "vk_itemDanger_hwpDy", Ho = "vk_check_mPaKX vk_check_dO3aK", Fo = "vk_icon_QIgcd vk_itemIcon_bv6oS", No = "vk_text_urFay", Vo = "vk_labelLine_1jtiD", qo = "vk_label_DTLHt vk_label_zTITb", po = "vk_badge_sFW5I", Ko = "vk_description_gm3kI", Yo = "vk_meta_zRD2G vk_shortcut_S1oQc", Uo = "vk_trailing_5nqrI", jo = "vk_entry_FJLiI", Go = "vk_entryMain_2COS4", Xo = "vk_entryDisabled_nigmQ vk_itemDisabled_OROlk", Qo = "vk_separator_NRGSq vk_separator_zMw59", Jo = "vk_empty_TWf-X vk_empty_oOHu3", Zo = "vk_search_uj4-c", ei = "vk_disclosure_WxAg6", ti = "vk_disclosureChevron_aw7Fx vk_chevron_pb9D1", ni = "vk_disclosureChevronOpen_WImPp", ri = "vk_disclosureBody_StI9b", oi = "vk_disclosureBodyIndented_t4GxF", ii = "vk_visuallyHidden_u-q6B", K = {
|
|
1608
|
+
list: Do,
|
|
1609
|
+
listViewport: Ao,
|
|
1663
1610
|
section: Eo,
|
|
1664
|
-
sectionHeader:
|
|
1665
|
-
sectionLabel:
|
|
1666
|
-
sectionAside:
|
|
1667
|
-
item:
|
|
1668
|
-
itemSelected:
|
|
1669
|
-
itemActive:
|
|
1670
|
-
itemDanger:
|
|
1671
|
-
check:
|
|
1672
|
-
icon:
|
|
1673
|
-
text:
|
|
1611
|
+
sectionHeader: Po,
|
|
1612
|
+
sectionLabel: To,
|
|
1613
|
+
sectionAside: Ro,
|
|
1614
|
+
item: Wo,
|
|
1615
|
+
itemSelected: Oo,
|
|
1616
|
+
itemActive: Bo,
|
|
1617
|
+
itemDanger: zo,
|
|
1618
|
+
check: Ho,
|
|
1619
|
+
icon: Fo,
|
|
1620
|
+
text: No,
|
|
1674
1621
|
labelLine: Vo,
|
|
1675
1622
|
label: qo,
|
|
1676
|
-
badge:
|
|
1677
|
-
description:
|
|
1678
|
-
meta:
|
|
1679
|
-
trailing:
|
|
1680
|
-
entry:
|
|
1681
|
-
entryMain:
|
|
1682
|
-
entryDisabled:
|
|
1683
|
-
separator:
|
|
1684
|
-
empty:
|
|
1685
|
-
search:
|
|
1686
|
-
disclosure:
|
|
1687
|
-
disclosureChevron:
|
|
1688
|
-
disclosureChevronOpen:
|
|
1689
|
-
disclosureBody:
|
|
1690
|
-
disclosureBodyIndented:
|
|
1691
|
-
visuallyHidden:
|
|
1623
|
+
badge: po,
|
|
1624
|
+
description: Ko,
|
|
1625
|
+
meta: Yo,
|
|
1626
|
+
trailing: Uo,
|
|
1627
|
+
entry: jo,
|
|
1628
|
+
entryMain: Go,
|
|
1629
|
+
entryDisabled: Xo,
|
|
1630
|
+
separator: Qo,
|
|
1631
|
+
empty: Jo,
|
|
1632
|
+
search: Zo,
|
|
1633
|
+
disclosure: ei,
|
|
1634
|
+
disclosureChevron: ti,
|
|
1635
|
+
disclosureChevronOpen: ni,
|
|
1636
|
+
disclosureBody: ri,
|
|
1637
|
+
disclosureBodyIndented: oi,
|
|
1638
|
+
visuallyHidden: ii
|
|
1692
1639
|
};
|
|
1693
|
-
var Oe = /* @__PURE__ */ W("<span>"),
|
|
1694
|
-
function
|
|
1640
|
+
var Oe = /* @__PURE__ */ W("<span>"), ai = /* @__PURE__ */ W("<div role=group><div><span>"), yt = /* @__PURE__ */ W("<span aria-hidden=true>"), Xt = /* @__PURE__ */ W("<span><span><span>"), li = /* @__PURE__ */ W("<div><span>"), ci = /* @__PURE__ */ W("<div role=separator>"), Lt = /* @__PURE__ */ W("<div>"), si = /* @__PURE__ */ W("<div role=group>");
|
|
1641
|
+
function Se(...e) {
|
|
1695
1642
|
return e.filter((t) => !!t).join(" ");
|
|
1696
1643
|
}
|
|
1697
|
-
function
|
|
1698
|
-
return
|
|
1644
|
+
function di(e) {
|
|
1645
|
+
return n(Be, {
|
|
1699
1646
|
get rootClass() {
|
|
1700
|
-
return
|
|
1647
|
+
return Se(K.list, e.class);
|
|
1701
1648
|
},
|
|
1702
1649
|
get viewportClass() {
|
|
1703
1650
|
return K.listViewport;
|
|
@@ -1713,80 +1660,80 @@ function ui(e) {
|
|
|
1713
1660
|
}
|
|
1714
1661
|
});
|
|
1715
1662
|
}
|
|
1716
|
-
function
|
|
1663
|
+
function ui(e) {
|
|
1717
1664
|
const t = ge();
|
|
1718
1665
|
return (() => {
|
|
1719
|
-
var
|
|
1720
|
-
return Y(
|
|
1666
|
+
var r = ai(), o = r.firstChild, i = o.firstChild;
|
|
1667
|
+
return Y(r, "aria-labelledby", t), Y(i, "id", t), c(i, () => e.label), c(o, n(D, {
|
|
1721
1668
|
get when() {
|
|
1722
1669
|
return e.aside !== void 0;
|
|
1723
1670
|
},
|
|
1724
1671
|
get children() {
|
|
1725
|
-
var
|
|
1726
|
-
return c(
|
|
1672
|
+
var a = Oe();
|
|
1673
|
+
return c(a, () => e.aside), I(() => u(a, K.sectionAside)), a;
|
|
1727
1674
|
}
|
|
1728
|
-
}), null), c(
|
|
1729
|
-
var
|
|
1730
|
-
return
|
|
1675
|
+
}), null), c(r, () => e.children, null), I((a) => {
|
|
1676
|
+
var k = Se(K.section, e.class), b = K.sectionHeader, s = K.sectionLabel;
|
|
1677
|
+
return k !== a.e && u(r, a.e = k), b !== a.t && u(o, a.t = b), s !== a.a && u(i, a.a = s), a;
|
|
1731
1678
|
}, {
|
|
1732
1679
|
e: void 0,
|
|
1733
1680
|
t: void 0,
|
|
1734
1681
|
a: void 0
|
|
1735
|
-
}),
|
|
1682
|
+
}), r;
|
|
1736
1683
|
})();
|
|
1737
1684
|
}
|
|
1738
|
-
function
|
|
1739
|
-
const t = ge(),
|
|
1685
|
+
function mi(e) {
|
|
1686
|
+
const t = ge(), r = () => e.role ?? (e.checked !== void 0 ? "menuitemcheckbox" : "menuitem"), o = () => r() === "menuitemcheckbox" || r() === "menuitemradio", i = () => e.checked !== void 0 || e.reserveCheck === !0, a = () => e.icon !== void 0 || e.reserveIcon === !0, k = () => e.trailing !== void 0, b = () => k() && r() === "menuitem", s = () => [n(D, {
|
|
1740
1687
|
get when() {
|
|
1741
|
-
return
|
|
1688
|
+
return i();
|
|
1742
1689
|
},
|
|
1743
1690
|
get children() {
|
|
1744
1691
|
var v = yt();
|
|
1745
|
-
return c(v,
|
|
1692
|
+
return c(v, n(D, {
|
|
1746
1693
|
get when() {
|
|
1747
1694
|
return e.checked === !0;
|
|
1748
1695
|
},
|
|
1749
1696
|
get children() {
|
|
1750
|
-
return
|
|
1697
|
+
return n(qt, {});
|
|
1751
1698
|
}
|
|
1752
1699
|
})), I(() => u(v, K.check)), v;
|
|
1753
1700
|
}
|
|
1754
|
-
}),
|
|
1701
|
+
}), n(D, {
|
|
1755
1702
|
get when() {
|
|
1756
|
-
return
|
|
1703
|
+
return a();
|
|
1757
1704
|
},
|
|
1758
1705
|
get children() {
|
|
1759
1706
|
var v = yt();
|
|
1760
1707
|
return c(v, () => e.icon), I(() => u(v, K.icon)), v;
|
|
1761
1708
|
}
|
|
1762
1709
|
}), (() => {
|
|
1763
|
-
var v = Xt(), $ = v.firstChild,
|
|
1764
|
-
return c(
|
|
1710
|
+
var v = Xt(), $ = v.firstChild, _ = $.firstChild;
|
|
1711
|
+
return c(_, () => e.label), c($, n(D, {
|
|
1765
1712
|
get when() {
|
|
1766
1713
|
return e.badge !== void 0;
|
|
1767
1714
|
},
|
|
1768
1715
|
get children() {
|
|
1769
|
-
var
|
|
1770
|
-
return c(
|
|
1716
|
+
var w = Oe();
|
|
1717
|
+
return c(w, () => e.badge), I(() => u(w, K.badge)), w;
|
|
1771
1718
|
}
|
|
1772
|
-
}), null), c(v,
|
|
1719
|
+
}), null), c(v, n(D, {
|
|
1773
1720
|
get when() {
|
|
1774
1721
|
return e.description !== void 0;
|
|
1775
1722
|
},
|
|
1776
1723
|
get children() {
|
|
1777
|
-
var
|
|
1778
|
-
return c(
|
|
1724
|
+
var w = Oe();
|
|
1725
|
+
return c(w, () => e.description), I(() => u(w, K.description)), w;
|
|
1779
1726
|
}
|
|
1780
|
-
}), null), I((
|
|
1781
|
-
var
|
|
1782
|
-
return
|
|
1727
|
+
}), null), I((w) => {
|
|
1728
|
+
var E = K.text, x = e.title ?? e.hint, q = K.labelLine, Z = K.label;
|
|
1729
|
+
return E !== w.e && u(v, w.e = E), x !== w.t && Y(v, "title", w.t = x), q !== w.a && u($, w.a = q), Z !== w.o && u(_, w.o = Z), w;
|
|
1783
1730
|
}, {
|
|
1784
1731
|
e: void 0,
|
|
1785
1732
|
t: void 0,
|
|
1786
1733
|
a: void 0,
|
|
1787
1734
|
o: void 0
|
|
1788
1735
|
}), v;
|
|
1789
|
-
})(),
|
|
1736
|
+
})(), n(D, {
|
|
1790
1737
|
get when() {
|
|
1791
1738
|
return e.meta !== void 0;
|
|
1792
1739
|
},
|
|
@@ -1794,15 +1741,15 @@ function vi(e) {
|
|
|
1794
1741
|
var v = Oe();
|
|
1795
1742
|
return c(v, () => e.meta), I(() => u(v, K.meta)), v;
|
|
1796
1743
|
}
|
|
1797
|
-
}),
|
|
1744
|
+
}), n(D, {
|
|
1798
1745
|
get when() {
|
|
1799
|
-
return
|
|
1746
|
+
return b();
|
|
1800
1747
|
},
|
|
1801
1748
|
get children() {
|
|
1802
1749
|
var v = Oe();
|
|
1803
1750
|
return v.$$click = ($) => $.stopPropagation(), c(v, () => e.trailing), I(() => u(v, K.trailing)), v;
|
|
1804
1751
|
}
|
|
1805
|
-
}),
|
|
1752
|
+
}), n(D, {
|
|
1806
1753
|
get when() {
|
|
1807
1754
|
return e.hint;
|
|
1808
1755
|
},
|
|
@@ -1810,63 +1757,63 @@ function vi(e) {
|
|
|
1810
1757
|
var v = Oe();
|
|
1811
1758
|
return Y(v, "id", t), c(v, () => e.hint), I(() => u(v, K.visuallyHidden)), v;
|
|
1812
1759
|
}
|
|
1813
|
-
})], l = () =>
|
|
1760
|
+
})], l = () => Se((e.selected || e.pressed) && K.itemSelected, e.active && K.itemActive, e.danger && K.itemDanger), h = (v) => n(qe, {
|
|
1814
1761
|
get as() {
|
|
1815
|
-
return
|
|
1762
|
+
return b() ? "div" : "button";
|
|
1816
1763
|
},
|
|
1817
1764
|
ref: ($) => {
|
|
1818
|
-
var
|
|
1819
|
-
return (
|
|
1765
|
+
var _;
|
|
1766
|
+
return (_ = e.ref) == null ? void 0 : _.call(e, $);
|
|
1820
1767
|
},
|
|
1821
1768
|
get id() {
|
|
1822
1769
|
return e.id;
|
|
1823
1770
|
},
|
|
1824
1771
|
get role() {
|
|
1825
|
-
return
|
|
1772
|
+
return r();
|
|
1826
1773
|
},
|
|
1827
1774
|
class: v,
|
|
1828
1775
|
get disabled() {
|
|
1829
1776
|
return e.disabled;
|
|
1830
1777
|
},
|
|
1831
1778
|
get "aria-checked"() {
|
|
1832
|
-
return
|
|
1779
|
+
return ue(() => !!o())() ? e.checked === !0 : void 0;
|
|
1833
1780
|
},
|
|
1834
1781
|
get "aria-selected"() {
|
|
1835
|
-
return
|
|
1782
|
+
return ue(() => r() === "option")() ? e.selected === !0 : void 0;
|
|
1836
1783
|
},
|
|
1837
1784
|
get "aria-current"() {
|
|
1838
|
-
return (
|
|
1785
|
+
return (r() === "menuitem" || r() === "button") && e.selected === !0 ? "true" : void 0;
|
|
1839
1786
|
},
|
|
1840
1787
|
get "aria-pressed"() {
|
|
1841
|
-
return
|
|
1788
|
+
return ue(() => r() === "button" && e.pressed !== void 0)() ? e.pressed : void 0;
|
|
1842
1789
|
},
|
|
1843
1790
|
get "aria-describedby"() {
|
|
1844
1791
|
return e.hint ? t : void 0;
|
|
1845
1792
|
},
|
|
1846
1793
|
onClick: ($) => {
|
|
1847
|
-
var
|
|
1848
|
-
e.disabled || (
|
|
1794
|
+
var _;
|
|
1795
|
+
e.disabled || (_ = e.onSelect) == null || _.call(e, $);
|
|
1849
1796
|
},
|
|
1850
1797
|
onContextMenu: ($) => {
|
|
1851
|
-
var
|
|
1852
|
-
return (
|
|
1798
|
+
var _;
|
|
1799
|
+
return (_ = e.onContextMenu) == null ? void 0 : _.call(e, $);
|
|
1853
1800
|
},
|
|
1854
1801
|
get children() {
|
|
1855
1802
|
return s();
|
|
1856
1803
|
}
|
|
1857
1804
|
});
|
|
1858
|
-
return
|
|
1805
|
+
return n(D, {
|
|
1859
1806
|
get when() {
|
|
1860
|
-
return
|
|
1807
|
+
return ue(() => !!k())() && !b();
|
|
1861
1808
|
},
|
|
1862
1809
|
get fallback() {
|
|
1863
|
-
return h(
|
|
1810
|
+
return h(Se(K.item, l(), e.class));
|
|
1864
1811
|
},
|
|
1865
1812
|
get children() {
|
|
1866
|
-
var v =
|
|
1867
|
-
return c(v, () => h(K.entryMain), $), c($, () => e.trailing), I((
|
|
1868
|
-
var
|
|
1869
|
-
return
|
|
1813
|
+
var v = li(), $ = v.firstChild;
|
|
1814
|
+
return c(v, () => h(K.entryMain), $), c($, () => e.trailing), I((_) => {
|
|
1815
|
+
var w = Se(K.item, K.entry, l(), e.disabled && K.entryDisabled, e.class), E = K.trailing;
|
|
1816
|
+
return w !== _.e && u(v, _.e = w), E !== _.t && u($, _.t = E), _;
|
|
1870
1817
|
}, {
|
|
1871
1818
|
e: void 0,
|
|
1872
1819
|
t: void 0
|
|
@@ -1874,34 +1821,34 @@ function vi(e) {
|
|
|
1874
1821
|
}
|
|
1875
1822
|
});
|
|
1876
1823
|
}
|
|
1877
|
-
function
|
|
1824
|
+
function vi(e) {
|
|
1878
1825
|
return (() => {
|
|
1879
|
-
var t =
|
|
1880
|
-
return I(() => u(t,
|
|
1826
|
+
var t = ci();
|
|
1827
|
+
return I(() => u(t, Se(K.separator, e.class))), t;
|
|
1881
1828
|
})();
|
|
1882
1829
|
}
|
|
1883
|
-
function
|
|
1830
|
+
function hc(e) {
|
|
1884
1831
|
return (() => {
|
|
1885
|
-
var t =
|
|
1886
|
-
return c(t, () => e.children), I(() => u(t,
|
|
1832
|
+
var t = Lt();
|
|
1833
|
+
return c(t, () => e.children), I(() => u(t, Se(K.empty, e.class))), t;
|
|
1887
1834
|
})();
|
|
1888
1835
|
}
|
|
1889
|
-
function
|
|
1836
|
+
function gc(e) {
|
|
1890
1837
|
return (() => {
|
|
1891
|
-
var t =
|
|
1892
|
-
return c(t, () => e.children), I(() => u(t,
|
|
1838
|
+
var t = Lt();
|
|
1839
|
+
return c(t, () => e.children), I(() => u(t, Se(K.search, e.class))), t;
|
|
1893
1840
|
})();
|
|
1894
1841
|
}
|
|
1895
|
-
function
|
|
1896
|
-
const t = ge(),
|
|
1842
|
+
function fc(e) {
|
|
1843
|
+
const t = ge(), r = ge(), [o, i] = Q(e.defaultOpen ?? !1), a = () => e.open !== void 0 ? e.open : o(), k = () => e.icon !== void 0 || e.reserveIcon === !0, b = () => {
|
|
1897
1844
|
var l;
|
|
1898
1845
|
if (e.disabled) return;
|
|
1899
|
-
const s = !
|
|
1900
|
-
e.open === void 0 &&
|
|
1846
|
+
const s = !a();
|
|
1847
|
+
e.open === void 0 && i(s), (l = e.onToggle) == null || l.call(e, s);
|
|
1901
1848
|
};
|
|
1902
1849
|
return (() => {
|
|
1903
|
-
var s =
|
|
1904
|
-
return c(s,
|
|
1850
|
+
var s = Lt();
|
|
1851
|
+
return c(s, n(qe, {
|
|
1905
1852
|
id: t,
|
|
1906
1853
|
get class() {
|
|
1907
1854
|
return K.item;
|
|
@@ -1910,16 +1857,16 @@ function bc(e) {
|
|
|
1910
1857
|
return e.disabled;
|
|
1911
1858
|
},
|
|
1912
1859
|
get "aria-expanded"() {
|
|
1913
|
-
return
|
|
1860
|
+
return a() ? "true" : "false";
|
|
1914
1861
|
},
|
|
1915
1862
|
get "aria-controls"() {
|
|
1916
|
-
return
|
|
1863
|
+
return a() ? r : void 0;
|
|
1917
1864
|
},
|
|
1918
|
-
onClick:
|
|
1865
|
+
onClick: b,
|
|
1919
1866
|
get children() {
|
|
1920
|
-
return [
|
|
1867
|
+
return [n(D, {
|
|
1921
1868
|
get when() {
|
|
1922
|
-
return
|
|
1869
|
+
return k();
|
|
1923
1870
|
},
|
|
1924
1871
|
get children() {
|
|
1925
1872
|
var l = yt();
|
|
@@ -1927,7 +1874,7 @@ function bc(e) {
|
|
|
1927
1874
|
}
|
|
1928
1875
|
}), (() => {
|
|
1929
1876
|
var l = Xt(), h = l.firstChild, v = h.firstChild;
|
|
1930
|
-
return c(v, () => e.label), c(l,
|
|
1877
|
+
return c(v, () => e.label), c(l, n(D, {
|
|
1931
1878
|
get when() {
|
|
1932
1879
|
return e.description !== void 0;
|
|
1933
1880
|
},
|
|
@@ -1936,116 +1883,116 @@ function bc(e) {
|
|
|
1936
1883
|
return c($, () => e.description), I(() => u($, K.description)), $;
|
|
1937
1884
|
}
|
|
1938
1885
|
}), null), I(($) => {
|
|
1939
|
-
var
|
|
1940
|
-
return
|
|
1886
|
+
var _ = K.text, w = K.labelLine, E = K.label;
|
|
1887
|
+
return _ !== $.e && u(l, $.e = _), w !== $.t && u(h, $.t = w), E !== $.a && u(v, $.a = E), $;
|
|
1941
1888
|
}, {
|
|
1942
1889
|
e: void 0,
|
|
1943
1890
|
t: void 0,
|
|
1944
1891
|
a: void 0
|
|
1945
1892
|
}), l;
|
|
1946
|
-
})(),
|
|
1893
|
+
})(), n(pt, {
|
|
1947
1894
|
get class() {
|
|
1948
|
-
return
|
|
1895
|
+
return Se(K.disclosureChevron, a() && K.disclosureChevronOpen);
|
|
1949
1896
|
},
|
|
1950
1897
|
"aria-hidden": "true"
|
|
1951
1898
|
})];
|
|
1952
1899
|
}
|
|
1953
|
-
}), null), c(s,
|
|
1900
|
+
}), null), c(s, n(D, {
|
|
1954
1901
|
get when() {
|
|
1955
|
-
return
|
|
1902
|
+
return a();
|
|
1956
1903
|
},
|
|
1957
1904
|
get children() {
|
|
1958
|
-
var l =
|
|
1959
|
-
return Y(l, "id",
|
|
1905
|
+
var l = si();
|
|
1906
|
+
return Y(l, "id", r), Y(l, "aria-labelledby", t), c(l, () => e.children), I(() => u(l, Se(K.disclosureBody, k() && K.disclosureBodyIndented, e.bodyClass))), l;
|
|
1960
1907
|
}
|
|
1961
|
-
}), null), I(() => u(s,
|
|
1908
|
+
}), null), I(() => u(s, Se(K.disclosure, e.class))), s;
|
|
1962
1909
|
})();
|
|
1963
1910
|
}
|
|
1964
|
-
|
|
1965
|
-
const
|
|
1966
|
-
menuList:
|
|
1911
|
+
Ee(["click"]);
|
|
1912
|
+
const hi = "vk_menuList_Rdcyj", gi = {
|
|
1913
|
+
menuList: hi
|
|
1967
1914
|
};
|
|
1968
|
-
var
|
|
1915
|
+
var fi = /* @__PURE__ */ W("<div style=display:inline-block>");
|
|
1969
1916
|
function Qt(e) {
|
|
1970
1917
|
return "type" in e && e.type === "separator";
|
|
1971
1918
|
}
|
|
1972
1919
|
function Jt(e) {
|
|
1973
1920
|
return "type" in e && e.type === "section";
|
|
1974
1921
|
}
|
|
1975
|
-
function
|
|
1922
|
+
function bi(e) {
|
|
1976
1923
|
const t = [];
|
|
1977
|
-
let
|
|
1978
|
-
const
|
|
1979
|
-
|
|
1924
|
+
let r, o = [];
|
|
1925
|
+
const i = () => {
|
|
1926
|
+
o.length > 0 && t.push({
|
|
1980
1927
|
kind: "rows",
|
|
1981
|
-
label:
|
|
1982
|
-
rows:
|
|
1983
|
-
}),
|
|
1928
|
+
label: r,
|
|
1929
|
+
rows: o
|
|
1930
|
+
}), r = void 0, o = [];
|
|
1984
1931
|
};
|
|
1985
|
-
for (const
|
|
1986
|
-
Qt(
|
|
1932
|
+
for (const a of e)
|
|
1933
|
+
Qt(a) ? (i(), t.push({
|
|
1987
1934
|
kind: "separator"
|
|
1988
|
-
})) : Jt(
|
|
1989
|
-
return
|
|
1990
|
-
}
|
|
1991
|
-
function
|
|
1992
|
-
const [t,
|
|
1993
|
-
let
|
|
1994
|
-
const
|
|
1995
|
-
e.onOpenChange && e.onOpenChange(
|
|
1996
|
-
},
|
|
1997
|
-
e.disabled ||
|
|
1998
|
-
},
|
|
1999
|
-
var
|
|
2000
|
-
|
|
2001
|
-
}, s = ve(() => e.items.filter((
|
|
2002
|
-
each:
|
|
2003
|
-
children: (
|
|
1935
|
+
})) : Jt(a) ? (i(), r = a.label) : o.push(a);
|
|
1936
|
+
return i(), t;
|
|
1937
|
+
}
|
|
1938
|
+
function bc(e) {
|
|
1939
|
+
const [t, r] = Q(!1);
|
|
1940
|
+
let o = null;
|
|
1941
|
+
const i = () => e.open !== void 0 ? e.open : t(), a = (_) => {
|
|
1942
|
+
e.onOpenChange && e.onOpenChange(_), e.open === void 0 && r(_);
|
|
1943
|
+
}, k = () => {
|
|
1944
|
+
e.disabled || a(!i());
|
|
1945
|
+
}, b = (_) => {
|
|
1946
|
+
var w;
|
|
1947
|
+
_.disabled || (a(!1), (w = _.onSelect) == null || w.call(_));
|
|
1948
|
+
}, s = ve(() => e.items.filter((_) => !Qt(_) && !Jt(_))), l = ve(() => s().some((_) => !!_.icon)), h = ve(() => s().some((_) => _.checked !== void 0)), v = ve(() => bi(e.items)), $ = (_) => n(Ae, {
|
|
1949
|
+
each: _,
|
|
1950
|
+
children: (w) => n(mi, {
|
|
2004
1951
|
get id() {
|
|
2005
|
-
return
|
|
1952
|
+
return w.id;
|
|
2006
1953
|
},
|
|
2007
1954
|
get label() {
|
|
2008
|
-
return
|
|
1955
|
+
return w.label;
|
|
2009
1956
|
},
|
|
2010
1957
|
get description() {
|
|
2011
|
-
return
|
|
1958
|
+
return w.description;
|
|
2012
1959
|
},
|
|
2013
1960
|
get icon() {
|
|
2014
|
-
return
|
|
1961
|
+
return w.icon;
|
|
2015
1962
|
},
|
|
2016
1963
|
get reserveIcon() {
|
|
2017
1964
|
return l();
|
|
2018
1965
|
},
|
|
2019
1966
|
get checked() {
|
|
2020
|
-
return
|
|
1967
|
+
return w.checked;
|
|
2021
1968
|
},
|
|
2022
1969
|
get reserveCheck() {
|
|
2023
1970
|
return h();
|
|
2024
1971
|
},
|
|
2025
1972
|
get selected() {
|
|
2026
|
-
return
|
|
1973
|
+
return w.selected;
|
|
2027
1974
|
},
|
|
2028
1975
|
get meta() {
|
|
2029
|
-
return
|
|
1976
|
+
return w.shortcut;
|
|
2030
1977
|
},
|
|
2031
1978
|
get danger() {
|
|
2032
|
-
return
|
|
1979
|
+
return w.danger;
|
|
2033
1980
|
},
|
|
2034
1981
|
get disabled() {
|
|
2035
|
-
return
|
|
1982
|
+
return w.disabled;
|
|
2036
1983
|
},
|
|
2037
|
-
onSelect: () =>
|
|
1984
|
+
onSelect: () => b(w)
|
|
2038
1985
|
})
|
|
2039
1986
|
});
|
|
2040
1987
|
return (() => {
|
|
2041
|
-
var
|
|
2042
|
-
return c(
|
|
1988
|
+
var _ = fi();
|
|
1989
|
+
return c(_, n(D, {
|
|
2043
1990
|
get when() {
|
|
2044
1991
|
return e.trigger;
|
|
2045
1992
|
},
|
|
2046
1993
|
get fallback() {
|
|
2047
|
-
return
|
|
2048
|
-
ref: (
|
|
1994
|
+
return n(he, {
|
|
1995
|
+
ref: (w) => o = w,
|
|
2049
1996
|
get variant() {
|
|
2050
1997
|
return e.variant ?? "secondary";
|
|
2051
1998
|
},
|
|
@@ -2055,16 +2002,16 @@ function _c(e) {
|
|
|
2055
2002
|
get disabled() {
|
|
2056
2003
|
return e.disabled;
|
|
2057
2004
|
},
|
|
2058
|
-
onClick:
|
|
2005
|
+
onClick: k,
|
|
2059
2006
|
"aria-haspopup": "menu",
|
|
2060
2007
|
get "aria-expanded"() {
|
|
2061
|
-
return
|
|
2008
|
+
return i();
|
|
2062
2009
|
},
|
|
2063
2010
|
get "aria-label"() {
|
|
2064
2011
|
return e.ariaLabel ?? e.label ?? y("Actions");
|
|
2065
2012
|
},
|
|
2066
2013
|
get trailingIcon() {
|
|
2067
|
-
return
|
|
2014
|
+
return n(pt, {
|
|
2068
2015
|
"aria-hidden": "true"
|
|
2069
2016
|
});
|
|
2070
2017
|
},
|
|
@@ -2073,19 +2020,19 @@ function _c(e) {
|
|
|
2073
2020
|
}
|
|
2074
2021
|
});
|
|
2075
2022
|
},
|
|
2076
|
-
children: (
|
|
2077
|
-
open:
|
|
2078
|
-
toggle:
|
|
2079
|
-
ref: (
|
|
2023
|
+
children: (w) => w()({
|
|
2024
|
+
open: i(),
|
|
2025
|
+
toggle: k,
|
|
2026
|
+
ref: (E) => o = E,
|
|
2080
2027
|
ariaProps: {
|
|
2081
2028
|
"aria-haspopup": "menu",
|
|
2082
|
-
"aria-expanded":
|
|
2029
|
+
"aria-expanded": i()
|
|
2083
2030
|
}
|
|
2084
2031
|
})
|
|
2085
|
-
}), null), c(
|
|
2086
|
-
open:
|
|
2087
|
-
onClose: () =>
|
|
2088
|
-
anchor: () =>
|
|
2032
|
+
}), null), c(_, n(Sn, {
|
|
2033
|
+
open: i,
|
|
2034
|
+
onClose: () => a(!1),
|
|
2035
|
+
anchor: () => o,
|
|
2089
2036
|
get placement() {
|
|
2090
2037
|
return e.placement ?? "bottom-start";
|
|
2091
2038
|
},
|
|
@@ -2097,45 +2044,45 @@ function _c(e) {
|
|
|
2097
2044
|
return e.surfaceClass;
|
|
2098
2045
|
},
|
|
2099
2046
|
get children() {
|
|
2100
|
-
return
|
|
2047
|
+
return n(di, {
|
|
2101
2048
|
get class() {
|
|
2102
|
-
return `${
|
|
2049
|
+
return `${gi.menuList} ${e.menuClass ?? ""}`;
|
|
2103
2050
|
},
|
|
2104
2051
|
get children() {
|
|
2105
|
-
return
|
|
2052
|
+
return n(Ae, {
|
|
2106
2053
|
get each() {
|
|
2107
2054
|
return v();
|
|
2108
2055
|
},
|
|
2109
|
-
children: (
|
|
2056
|
+
children: (w) => w.kind === "separator" ? n(vi, {}) : w.label !== void 0 ? n(ui, {
|
|
2110
2057
|
get label() {
|
|
2111
|
-
return
|
|
2058
|
+
return w.label;
|
|
2112
2059
|
},
|
|
2113
2060
|
get children() {
|
|
2114
|
-
return $(
|
|
2061
|
+
return $(w.rows);
|
|
2115
2062
|
}
|
|
2116
|
-
}) : $(
|
|
2063
|
+
}) : $(w.rows)
|
|
2117
2064
|
});
|
|
2118
2065
|
}
|
|
2119
2066
|
});
|
|
2120
2067
|
}
|
|
2121
|
-
}), null), I(() => u(
|
|
2068
|
+
}), null), I(() => u(_, e.class)), _;
|
|
2122
2069
|
})();
|
|
2123
2070
|
}
|
|
2124
|
-
const
|
|
2125
|
-
surface:
|
|
2126
|
-
item:
|
|
2127
|
-
check:
|
|
2128
|
-
shortcut:
|
|
2129
|
-
chevron:
|
|
2130
|
-
separator:
|
|
2131
|
-
itemActive:
|
|
2071
|
+
const _i = "vk_surface_3ZOnl", wi = "vk_item_neWq-", ki = "vk_check_dO3aK", Ci = "vk_shortcut_S1oQc", yi = "vk_chevron_pb9D1", $i = "vk_separator_zMw59", xi = "vk_itemActive_vyOXZ", Si = "vk_itemSelected_f4xDB", Li = "vk_itemDisabled_OROlk", Ii = "vk_label_zTITb", Mi = "vk_itemIcon_bv6oS", Di = "vk_viewport_B94pk", Ai = "vk_empty_oOHu3", ke = {
|
|
2072
|
+
surface: _i,
|
|
2073
|
+
item: wi,
|
|
2074
|
+
check: ki,
|
|
2075
|
+
shortcut: Ci,
|
|
2076
|
+
chevron: yi,
|
|
2077
|
+
separator: $i,
|
|
2078
|
+
itemActive: xi,
|
|
2132
2079
|
itemSelected: Si,
|
|
2133
|
-
itemDisabled:
|
|
2134
|
-
label:
|
|
2080
|
+
itemDisabled: Li,
|
|
2081
|
+
label: Ii,
|
|
2135
2082
|
itemIcon: Mi,
|
|
2136
|
-
viewport:
|
|
2137
|
-
empty:
|
|
2138
|
-
},
|
|
2083
|
+
viewport: Di,
|
|
2084
|
+
empty: Ai
|
|
2085
|
+
}, _c = Object.freeze({
|
|
2139
2086
|
surface: ke.surface,
|
|
2140
2087
|
viewport: ke.viewport,
|
|
2141
2088
|
item: ke.item,
|
|
@@ -2150,20 +2097,20 @@ const wi = "vk_surface_3ZOnl", ki = "vk_item_neWq-", Ci = "vk_check_dO3aK", yi =
|
|
|
2150
2097
|
separator: ke.separator,
|
|
2151
2098
|
empty: ke.empty
|
|
2152
2099
|
});
|
|
2153
|
-
var Ei = /* @__PURE__ */ W("<span aria-hidden=true style=display:none>"),
|
|
2154
|
-
function
|
|
2100
|
+
var Ei = /* @__PURE__ */ W("<span aria-hidden=true style=display:none>"), Pi = /* @__PURE__ */ W("<div><span>"), Ti = /* @__PURE__ */ W("<div role=tooltip>"), Ri = /* @__PURE__ */ W("<span>");
|
|
2101
|
+
function wc() {
|
|
2155
2102
|
let e, t;
|
|
2156
|
-
const [
|
|
2103
|
+
const [r, o] = Q({
|
|
2157
2104
|
top: -9999,
|
|
2158
2105
|
left: -9999
|
|
2159
|
-
}),
|
|
2160
|
-
const l =
|
|
2106
|
+
}), i = ut.activeTooltip, a = () => Ue(e), k = () => {
|
|
2107
|
+
const l = i(), h = a();
|
|
2161
2108
|
return l !== null && h !== null && Ue(l.target) === h;
|
|
2162
2109
|
};
|
|
2163
2110
|
$e(() => {
|
|
2164
|
-
const l =
|
|
2165
|
-
if (!l || !
|
|
2166
|
-
|
|
2111
|
+
const l = i();
|
|
2112
|
+
if (!l || !k()) {
|
|
2113
|
+
o({
|
|
2167
2114
|
top: -9999,
|
|
2168
2115
|
left: -9999
|
|
2169
2116
|
});
|
|
@@ -2175,13 +2122,13 @@ function kc() {
|
|
|
2175
2122
|
ut.hideTooltip(l.target);
|
|
2176
2123
|
return;
|
|
2177
2124
|
}
|
|
2178
|
-
const $ =
|
|
2125
|
+
const $ = a();
|
|
2179
2126
|
if (!$) return;
|
|
2180
|
-
const
|
|
2181
|
-
anchorRect:
|
|
2127
|
+
const _ = l.target.getBoundingClientRect(), w = t.getBoundingClientRect(), E = fn({
|
|
2128
|
+
anchorRect: _,
|
|
2182
2129
|
tooltipSize: {
|
|
2183
|
-
width:
|
|
2184
|
-
height:
|
|
2130
|
+
width: w.width || t.offsetWidth,
|
|
2131
|
+
height: w.height || t.offsetHeight
|
|
2185
2132
|
},
|
|
2186
2133
|
viewport: {
|
|
2187
2134
|
width: $.innerWidth || 1024,
|
|
@@ -2190,35 +2137,35 @@ function kc() {
|
|
|
2190
2137
|
placement: l.placement,
|
|
2191
2138
|
offset: l.offset
|
|
2192
2139
|
});
|
|
2193
|
-
|
|
2194
|
-
top:
|
|
2195
|
-
left:
|
|
2140
|
+
o({
|
|
2141
|
+
top: E.top,
|
|
2142
|
+
left: E.left
|
|
2196
2143
|
});
|
|
2197
2144
|
};
|
|
2198
2145
|
h(), queueMicrotask(() => {
|
|
2199
2146
|
h();
|
|
2200
2147
|
});
|
|
2201
|
-
const v =
|
|
2202
|
-
v && typeof v.addEventListener == "function" && (v.addEventListener("resize", h),
|
|
2148
|
+
const v = a();
|
|
2149
|
+
v && typeof v.addEventListener == "function" && (v.addEventListener("resize", h), me(() => {
|
|
2203
2150
|
typeof v.removeEventListener == "function" && v.removeEventListener("resize", h);
|
|
2204
2151
|
}));
|
|
2205
2152
|
});
|
|
2206
|
-
const
|
|
2207
|
-
const l =
|
|
2153
|
+
const b = () => {
|
|
2154
|
+
const l = i();
|
|
2208
2155
|
return l ? typeof l.content == "function" ? l.content() : l.content : null;
|
|
2209
2156
|
}, s = () => {
|
|
2210
|
-
const l =
|
|
2157
|
+
const l = i();
|
|
2211
2158
|
if (l)
|
|
2212
2159
|
return typeof l.shortcut == "function" ? l.shortcut() : l.shortcut;
|
|
2213
2160
|
};
|
|
2214
2161
|
return [(() => {
|
|
2215
2162
|
var l = Ei(), h = e;
|
|
2216
2163
|
return typeof h == "function" ? xe(h, l) : e = l, l;
|
|
2217
|
-
})(),
|
|
2164
|
+
})(), n(D, {
|
|
2218
2165
|
get when() {
|
|
2219
|
-
return
|
|
2166
|
+
return ue(() => !!k())() ? a() : null;
|
|
2220
2167
|
},
|
|
2221
|
-
children: (l) =>
|
|
2168
|
+
children: (l) => n(Ze, {
|
|
2222
2169
|
type: "tooltip",
|
|
2223
2170
|
get mount() {
|
|
2224
2171
|
return l().document.body;
|
|
@@ -2226,22 +2173,22 @@ function kc() {
|
|
|
2226
2173
|
element: () => t,
|
|
2227
2174
|
idPrefix: "tooltip-host",
|
|
2228
2175
|
get children() {
|
|
2229
|
-
var h =
|
|
2176
|
+
var h = Ti();
|
|
2230
2177
|
return xe((v) => {
|
|
2231
2178
|
t = v;
|
|
2232
|
-
}, h), c(h,
|
|
2179
|
+
}, h), c(h, n(D, {
|
|
2233
2180
|
get when() {
|
|
2234
2181
|
return s();
|
|
2235
2182
|
},
|
|
2236
2183
|
get fallback() {
|
|
2237
2184
|
return (() => {
|
|
2238
|
-
var v =
|
|
2239
|
-
return c(v,
|
|
2185
|
+
var v = Ri();
|
|
2186
|
+
return c(v, b), v;
|
|
2240
2187
|
})();
|
|
2241
2188
|
},
|
|
2242
2189
|
get children() {
|
|
2243
|
-
var v =
|
|
2244
|
-
return c($,
|
|
2190
|
+
var v = Pi(), $ = v.firstChild;
|
|
2191
|
+
return c($, b), c(v, n(Nt, {
|
|
2245
2192
|
size: "xs",
|
|
2246
2193
|
get shortcut() {
|
|
2247
2194
|
return s();
|
|
@@ -2250,8 +2197,8 @@ function kc() {
|
|
|
2250
2197
|
}
|
|
2251
2198
|
})), I((v) => {
|
|
2252
2199
|
var x;
|
|
2253
|
-
var $ = (x =
|
|
2254
|
-
return $ !== v.e && Y(h, "id", v.e = $),
|
|
2200
|
+
var $ = (x = i()) == null ? void 0 : x.id, _ = `${ft.tooltip} ${ft.hostTooltip}`, w = `${r().top}px`, E = `${r().left}px`;
|
|
2201
|
+
return $ !== v.e && Y(h, "id", v.e = $), _ !== v.t && u(h, v.t = _), w !== v.a && De(h, "top", v.a = w), E !== v.o && De(h, "left", v.o = E), v;
|
|
2255
2202
|
}, {
|
|
2256
2203
|
e: void 0,
|
|
2257
2204
|
t: void 0,
|
|
@@ -2262,37 +2209,37 @@ function kc() {
|
|
|
2262
2209
|
})
|
|
2263
2210
|
})];
|
|
2264
2211
|
}
|
|
2265
|
-
function
|
|
2212
|
+
function Wi(e, t) {
|
|
2266
2213
|
return e === "Escape" ? "dismiss" : e === "Enter" && t.step === "name" && t.nameMatches ? "advance" : "none";
|
|
2267
2214
|
}
|
|
2268
|
-
const
|
|
2269
|
-
overlay:
|
|
2270
|
-
dialog:
|
|
2271
|
-
header:
|
|
2272
|
-
warningIcon:
|
|
2273
|
-
title:
|
|
2274
|
-
body:
|
|
2215
|
+
const Oi = "vk_overlay_Fd-y-", Bi = "vk_dialog_Yf7zX", zi = "vk_header_CYXMR", Hi = "vk_warningIcon_qizN5", Fi = "vk_title_DPV4m vk_titleLg_Iswm3", Ni = "vk_body_Zvd50", Vi = "vk_description_n-sBy", qi = "vk_resourceLine_BeZWP", pi = "vk_resourceName_JQ9EK", Ki = "vk_field_JETn-", Yi = "vk_fieldLabel_u8YkC", Ui = "vk_input_Smbpd", ji = "vk_inputMatch_k6go-", Gi = "vk_optionsList_XwOCV", Xi = "vk_optionRow_OYLHB", Qi = "vk_optionLabel_pJHcY", Ji = "vk_optionDescription_Zi6is", Zi = "vk_finalNote_PVV7h", ea = "vk_consequenceNote_oaOZl", ta = "vk_selectedOptions_7tn0k", na = "vk_selectedList_LFTe1", ra = "vk_codeScroll_7A6w3", oa = "vk_code_ozAuk", ia = "vk_codePre_01c25", aa = "vk_countdown_CJhCw", la = "vk_footer_v0cjd", ca = "vk_footerSpacer_jQepg", G = {
|
|
2216
|
+
overlay: Oi,
|
|
2217
|
+
dialog: Bi,
|
|
2218
|
+
header: zi,
|
|
2219
|
+
warningIcon: Hi,
|
|
2220
|
+
title: Fi,
|
|
2221
|
+
body: Ni,
|
|
2275
2222
|
description: Vi,
|
|
2276
2223
|
resourceLine: qi,
|
|
2277
|
-
resourceName:
|
|
2278
|
-
field:
|
|
2279
|
-
fieldLabel:
|
|
2280
|
-
input:
|
|
2281
|
-
inputMatch:
|
|
2282
|
-
optionsList:
|
|
2283
|
-
optionRow:
|
|
2284
|
-
optionLabel:
|
|
2285
|
-
optionDescription:
|
|
2286
|
-
finalNote:
|
|
2287
|
-
consequenceNote:
|
|
2288
|
-
selectedOptions:
|
|
2289
|
-
selectedList:
|
|
2290
|
-
codeScroll:
|
|
2291
|
-
code:
|
|
2292
|
-
codePre:
|
|
2293
|
-
countdown:
|
|
2294
|
-
footer:
|
|
2295
|
-
footerSpacer:
|
|
2224
|
+
resourceName: pi,
|
|
2225
|
+
field: Ki,
|
|
2226
|
+
fieldLabel: Yi,
|
|
2227
|
+
input: Ui,
|
|
2228
|
+
inputMatch: ji,
|
|
2229
|
+
optionsList: Gi,
|
|
2230
|
+
optionRow: Xi,
|
|
2231
|
+
optionLabel: Qi,
|
|
2232
|
+
optionDescription: Ji,
|
|
2233
|
+
finalNote: Zi,
|
|
2234
|
+
consequenceNote: ea,
|
|
2235
|
+
selectedOptions: ta,
|
|
2236
|
+
selectedList: na,
|
|
2237
|
+
codeScroll: ra,
|
|
2238
|
+
code: oa,
|
|
2239
|
+
codePre: ia,
|
|
2240
|
+
countdown: aa,
|
|
2241
|
+
footer: la,
|
|
2242
|
+
footerSpacer: ca
|
|
2296
2243
|
}, Zt = {
|
|
2297
2244
|
delete: {
|
|
2298
2245
|
reversible: !1,
|
|
@@ -2381,22 +2328,22 @@ const Bi = "vk_overlay_Fd-y-", zi = "vk_dialog_Yf7zX", Hi = "vk_header_CYXMR", F
|
|
|
2381
2328
|
function en(e) {
|
|
2382
2329
|
return !Zt[e].reversible;
|
|
2383
2330
|
}
|
|
2384
|
-
function
|
|
2331
|
+
function kc(e) {
|
|
2385
2332
|
return en(e) ? "typed" : "confirm";
|
|
2386
2333
|
}
|
|
2387
|
-
function
|
|
2388
|
-
const t = Zt[e],
|
|
2334
|
+
function sa(e) {
|
|
2335
|
+
const t = Zt[e], r = {
|
|
2389
2336
|
lead: t.lead(),
|
|
2390
2337
|
note: t.note(),
|
|
2391
2338
|
confirmLabel: t.confirmLabel()
|
|
2392
2339
|
};
|
|
2393
|
-
return t.reversible ? { ...
|
|
2340
|
+
return t.reversible ? { ...r, level: "confirm" } : { ...r, level: "typed", finalLabel: t.finalLabel() };
|
|
2394
2341
|
}
|
|
2395
|
-
var
|
|
2396
|
-
function
|
|
2342
|
+
var da = /* @__PURE__ */ W("<div><span>"), ua = /* @__PURE__ */ W("<span> <span>(<!>s)"), ma = /* @__PURE__ */ W("<p> <span>"), va = /* @__PURE__ */ W("<label><span>"), ha = /* @__PURE__ */ W("<div>"), ga = /* @__PURE__ */ W("<span>"), fa = /* @__PURE__ */ W("<span><span>"), ba = /* @__PURE__ */ W("<p data-consequence-line> <span></span>."), _a = /* @__PURE__ */ W("<p>"), wa = /* @__PURE__ */ W("<div><span></span><ul>"), ka = /* @__PURE__ */ W("<li>"), Ca = /* @__PURE__ */ W("<pre><code>");
|
|
2343
|
+
function ya(e) {
|
|
2397
2344
|
return (() => {
|
|
2398
|
-
var t =
|
|
2399
|
-
return c(t,
|
|
2345
|
+
var t = da(), r = t.firstChild;
|
|
2346
|
+
return c(t, n(he, {
|
|
2400
2347
|
size: "md",
|
|
2401
2348
|
variant: "secondary",
|
|
2402
2349
|
get onClick() {
|
|
@@ -2405,12 +2352,12 @@ function $a(e) {
|
|
|
2405
2352
|
get children() {
|
|
2406
2353
|
return y("Cancel");
|
|
2407
2354
|
}
|
|
2408
|
-
}),
|
|
2355
|
+
}), r), c(t, n(D, {
|
|
2409
2356
|
get when() {
|
|
2410
2357
|
return e.step() === "name";
|
|
2411
2358
|
},
|
|
2412
2359
|
get children() {
|
|
2413
|
-
return
|
|
2360
|
+
return n(he, {
|
|
2414
2361
|
size: "md",
|
|
2415
2362
|
variant: "dangerSolid",
|
|
2416
2363
|
get disabled() {
|
|
@@ -2424,12 +2371,12 @@ function $a(e) {
|
|
|
2424
2371
|
}
|
|
2425
2372
|
});
|
|
2426
2373
|
}
|
|
2427
|
-
}), null), c(t,
|
|
2374
|
+
}), null), c(t, n(D, {
|
|
2428
2375
|
get when() {
|
|
2429
2376
|
return e.step() === "countdown";
|
|
2430
2377
|
},
|
|
2431
2378
|
get children() {
|
|
2432
|
-
return [
|
|
2379
|
+
return [n(he, {
|
|
2433
2380
|
size: "md",
|
|
2434
2381
|
variant: "secondary",
|
|
2435
2382
|
get onClick() {
|
|
@@ -2438,7 +2385,7 @@ function $a(e) {
|
|
|
2438
2385
|
get children() {
|
|
2439
2386
|
return y("Back");
|
|
2440
2387
|
}
|
|
2441
|
-
}),
|
|
2388
|
+
}), n(he, {
|
|
2442
2389
|
size: "md",
|
|
2443
2390
|
variant: "dangerSolid",
|
|
2444
2391
|
get disabled() {
|
|
@@ -2448,14 +2395,14 @@ function $a(e) {
|
|
|
2448
2395
|
return e.onConfirm;
|
|
2449
2396
|
},
|
|
2450
2397
|
get children() {
|
|
2451
|
-
return
|
|
2398
|
+
return n(D, {
|
|
2452
2399
|
get when() {
|
|
2453
2400
|
return e.finalEnabled();
|
|
2454
2401
|
},
|
|
2455
2402
|
get fallback() {
|
|
2456
2403
|
return (() => {
|
|
2457
|
-
var
|
|
2458
|
-
return
|
|
2404
|
+
var o = ua(), i = o.firstChild, a = i.nextSibling, k = a.firstChild, b = k.nextSibling;
|
|
2405
|
+
return b.nextSibling, c(o, () => e.finalLabel(), i), c(a, () => e.countdown(), b), I(() => u(a, G.countdown)), o;
|
|
2459
2406
|
})();
|
|
2460
2407
|
},
|
|
2461
2408
|
get children() {
|
|
@@ -2465,12 +2412,12 @@ function $a(e) {
|
|
|
2465
2412
|
}
|
|
2466
2413
|
})];
|
|
2467
2414
|
}
|
|
2468
|
-
}), null), c(t,
|
|
2415
|
+
}), null), c(t, n(D, {
|
|
2469
2416
|
get when() {
|
|
2470
2417
|
return e.step() === "confirm";
|
|
2471
2418
|
},
|
|
2472
2419
|
get children() {
|
|
2473
|
-
return
|
|
2420
|
+
return n(he, {
|
|
2474
2421
|
size: "md",
|
|
2475
2422
|
variant: "primary",
|
|
2476
2423
|
get onClick() {
|
|
@@ -2481,33 +2428,33 @@ function $a(e) {
|
|
|
2481
2428
|
}
|
|
2482
2429
|
});
|
|
2483
2430
|
}
|
|
2484
|
-
}), null), I((
|
|
2485
|
-
var
|
|
2486
|
-
return
|
|
2431
|
+
}), null), I((o) => {
|
|
2432
|
+
var i = G.footer, a = G.footerSpacer;
|
|
2433
|
+
return i !== o.e && u(t, o.e = i), a !== o.t && u(r, o.t = a), o;
|
|
2487
2434
|
}, {
|
|
2488
2435
|
e: void 0,
|
|
2489
2436
|
t: void 0
|
|
2490
2437
|
}), t;
|
|
2491
2438
|
})();
|
|
2492
2439
|
}
|
|
2493
|
-
function
|
|
2440
|
+
function $a(e) {
|
|
2494
2441
|
return [(() => {
|
|
2495
|
-
var t =
|
|
2442
|
+
var t = ma(), r = t.firstChild, o = r.nextSibling;
|
|
2496
2443
|
return c(t, () => y("To confirm, type the {label} below:", {
|
|
2497
2444
|
label: e.request().resourceLabel
|
|
2498
|
-
}),
|
|
2499
|
-
var
|
|
2500
|
-
return
|
|
2445
|
+
}), r), c(o, () => e.request().resourceName), I((i) => {
|
|
2446
|
+
var a = G.resourceLine, k = G.resourceName;
|
|
2447
|
+
return a !== i.e && u(t, i.e = a), k !== i.t && u(o, i.t = k), i;
|
|
2501
2448
|
}, {
|
|
2502
2449
|
e: void 0,
|
|
2503
2450
|
t: void 0
|
|
2504
2451
|
}), t;
|
|
2505
2452
|
})(), (() => {
|
|
2506
|
-
var t =
|
|
2507
|
-
return c(
|
|
2508
|
-
ref(
|
|
2509
|
-
var
|
|
2510
|
-
typeof
|
|
2453
|
+
var t = va(), r = t.firstChild;
|
|
2454
|
+
return c(r, () => e.request().resourceLabel), c(t, n($t, {
|
|
2455
|
+
ref(o) {
|
|
2456
|
+
var i = e.inputRef;
|
|
2457
|
+
typeof i == "function" ? i(o) : e.inputRef = o;
|
|
2511
2458
|
},
|
|
2512
2459
|
get class() {
|
|
2513
2460
|
return e.inputClass();
|
|
@@ -2518,13 +2465,13 @@ function xa(e) {
|
|
|
2518
2465
|
get value() {
|
|
2519
2466
|
return e.typedName();
|
|
2520
2467
|
},
|
|
2521
|
-
onInput: (
|
|
2468
|
+
onInput: (o) => e.setTypedName(o.currentTarget.value),
|
|
2522
2469
|
get "aria-label"() {
|
|
2523
2470
|
return e.request().resourceLabel;
|
|
2524
2471
|
}
|
|
2525
|
-
}), null), I((
|
|
2526
|
-
var
|
|
2527
|
-
return
|
|
2472
|
+
}), null), I((o) => {
|
|
2473
|
+
var i = G.field, a = G.fieldLabel;
|
|
2474
|
+
return i !== o.e && u(t, o.e = i), a !== o.t && u(r, o.t = a), o;
|
|
2528
2475
|
}, {
|
|
2529
2476
|
e: void 0,
|
|
2530
2477
|
t: void 0
|
|
@@ -2532,38 +2479,38 @@ function xa(e) {
|
|
|
2532
2479
|
})()];
|
|
2533
2480
|
}
|
|
2534
2481
|
function Tt(e) {
|
|
2535
|
-
return
|
|
2482
|
+
return n(D, {
|
|
2536
2483
|
get when() {
|
|
2537
2484
|
return e.options().length > 0;
|
|
2538
2485
|
},
|
|
2539
2486
|
get children() {
|
|
2540
|
-
var t =
|
|
2541
|
-
return c(t,
|
|
2487
|
+
var t = ha();
|
|
2488
|
+
return c(t, n(Ae, {
|
|
2542
2489
|
get each() {
|
|
2543
2490
|
return e.options();
|
|
2544
2491
|
},
|
|
2545
|
-
children: (
|
|
2492
|
+
children: (r) => n(Ln, {
|
|
2546
2493
|
get class() {
|
|
2547
2494
|
return G.optionRow;
|
|
2548
2495
|
},
|
|
2549
2496
|
get checked() {
|
|
2550
|
-
return !!e.optionState()[
|
|
2497
|
+
return !!e.optionState()[r.id];
|
|
2551
2498
|
},
|
|
2552
|
-
onChange: () => e.toggleOption(
|
|
2499
|
+
onChange: () => e.toggleOption(r.id),
|
|
2553
2500
|
get ariaLabel() {
|
|
2554
|
-
return
|
|
2501
|
+
return r.label;
|
|
2555
2502
|
},
|
|
2556
2503
|
get children() {
|
|
2557
|
-
var
|
|
2558
|
-
return c(
|
|
2504
|
+
var o = fa(), i = o.firstChild;
|
|
2505
|
+
return c(i, () => r.label), c(o, n(D, {
|
|
2559
2506
|
get when() {
|
|
2560
|
-
return
|
|
2507
|
+
return r.description;
|
|
2561
2508
|
},
|
|
2562
2509
|
get children() {
|
|
2563
|
-
var
|
|
2564
|
-
return c(
|
|
2510
|
+
var a = ga();
|
|
2511
|
+
return c(a, () => r.description), I(() => u(a, G.optionDescription)), a;
|
|
2565
2512
|
}
|
|
2566
|
-
}), null), I(() => u(
|
|
2513
|
+
}), null), I(() => u(o, G.optionLabel)), o;
|
|
2567
2514
|
}
|
|
2568
2515
|
})
|
|
2569
2516
|
})), I(() => u(t, G.optionsList)), t;
|
|
@@ -2572,37 +2519,37 @@ function Tt(e) {
|
|
|
2572
2519
|
}
|
|
2573
2520
|
function Rt(e) {
|
|
2574
2521
|
return [(() => {
|
|
2575
|
-
var t =
|
|
2576
|
-
return c(t, () => e.copy.lead,
|
|
2577
|
-
var
|
|
2578
|
-
return
|
|
2522
|
+
var t = ba(), r = t.firstChild, o = r.nextSibling;
|
|
2523
|
+
return c(t, () => e.copy.lead, r), c(o, () => e.resourceName), I((i) => {
|
|
2524
|
+
var a = G.resourceLine, k = G.resourceName;
|
|
2525
|
+
return a !== i.e && u(t, i.e = a), k !== i.t && u(o, i.t = k), i;
|
|
2579
2526
|
}, {
|
|
2580
2527
|
e: void 0,
|
|
2581
2528
|
t: void 0
|
|
2582
2529
|
}), t;
|
|
2583
2530
|
})(), (() => {
|
|
2584
|
-
var t =
|
|
2531
|
+
var t = _a();
|
|
2585
2532
|
return c(t, () => e.copy.note), I(() => u(t, G.consequenceNote)), t;
|
|
2586
2533
|
})()];
|
|
2587
2534
|
}
|
|
2588
|
-
function
|
|
2589
|
-
return
|
|
2535
|
+
function xa(e) {
|
|
2536
|
+
return n(D, {
|
|
2590
2537
|
get when() {
|
|
2591
2538
|
return e.options().length > 0;
|
|
2592
2539
|
},
|
|
2593
2540
|
get children() {
|
|
2594
|
-
var t =
|
|
2595
|
-
return c(
|
|
2541
|
+
var t = wa(), r = t.firstChild, o = r.nextSibling;
|
|
2542
|
+
return c(r, () => y("Selected options")), c(o, n(Ae, {
|
|
2596
2543
|
get each() {
|
|
2597
2544
|
return e.options();
|
|
2598
2545
|
},
|
|
2599
|
-
children: (
|
|
2600
|
-
var
|
|
2601
|
-
return c(
|
|
2546
|
+
children: (i) => (() => {
|
|
2547
|
+
var a = ka();
|
|
2548
|
+
return c(a, () => i.label), a;
|
|
2602
2549
|
})()
|
|
2603
|
-
})), I((
|
|
2604
|
-
var
|
|
2605
|
-
return
|
|
2550
|
+
})), I((i) => {
|
|
2551
|
+
var a = G.selectedOptions, k = G.fieldLabel, b = G.selectedList;
|
|
2552
|
+
return a !== i.e && u(t, i.e = a), k !== i.t && u(r, i.t = k), b !== i.a && u(o, i.a = b), i;
|
|
2606
2553
|
}, {
|
|
2607
2554
|
e: void 0,
|
|
2608
2555
|
t: void 0,
|
|
@@ -2612,7 +2559,7 @@ function La(e) {
|
|
|
2612
2559
|
});
|
|
2613
2560
|
}
|
|
2614
2561
|
function Sa(e) {
|
|
2615
|
-
return
|
|
2562
|
+
return n(Be, {
|
|
2616
2563
|
get rootClass() {
|
|
2617
2564
|
return G.codeScroll;
|
|
2618
2565
|
},
|
|
@@ -2620,10 +2567,10 @@ function Sa(e) {
|
|
|
2620
2567
|
return G.code;
|
|
2621
2568
|
},
|
|
2622
2569
|
get children() {
|
|
2623
|
-
var t =
|
|
2624
|
-
return c(
|
|
2625
|
-
var
|
|
2626
|
-
return
|
|
2570
|
+
var t = Ca(), r = t.firstChild;
|
|
2571
|
+
return c(r, () => e.code), I((o) => {
|
|
2572
|
+
var i = G.codePre, a = y("Statement");
|
|
2573
|
+
return i !== o.e && u(t, o.e = i), a !== o.t && Y(t, "aria-label", o.t = a), o;
|
|
2627
2574
|
}, {
|
|
2628
2575
|
e: void 0,
|
|
2629
2576
|
t: void 0
|
|
@@ -2631,165 +2578,165 @@ function Sa(e) {
|
|
|
2631
2578
|
}
|
|
2632
2579
|
});
|
|
2633
2580
|
}
|
|
2634
|
-
var Wt = /* @__PURE__ */ W("<p>"),
|
|
2635
|
-
const kt = (e) => en(e.consequence),
|
|
2636
|
-
function
|
|
2637
|
-
const t = ge(),
|
|
2638
|
-
let
|
|
2581
|
+
var Wt = /* @__PURE__ */ W("<p>"), La = /* @__PURE__ */ W("<div tabindex=-1 role=presentation><div role=alertdialog aria-modal=true tabindex=-1><div><span aria-hidden=true>!</span><h3></h3></div><div>");
|
|
2582
|
+
const kt = (e) => en(e.consequence), Ia = 5;
|
|
2583
|
+
function Cc(e) {
|
|
2584
|
+
const t = ge(), r = ge(), [o, i] = Q(null), [a, k] = Q("name"), [b, s] = Q(""), [l, h] = Q({}), [v, $] = Q(0);
|
|
2585
|
+
let _ = null, w = null, E = !1;
|
|
2639
2586
|
const x = () => {
|
|
2640
2587
|
var g;
|
|
2641
|
-
return ((g =
|
|
2642
|
-
},
|
|
2643
|
-
open: () =>
|
|
2644
|
-
ownerDocument:
|
|
2588
|
+
return ((g = o()) == null ? void 0 : g.targetWin) ?? (e == null ? void 0 : e()) ?? tt().window;
|
|
2589
|
+
}, q = () => x().document, Z = rt({
|
|
2590
|
+
open: () => o() !== null,
|
|
2591
|
+
ownerDocument: q
|
|
2645
2592
|
});
|
|
2646
2593
|
let A = null;
|
|
2647
2594
|
const B = ot(), F = () => {
|
|
2648
|
-
const g =
|
|
2649
|
-
|
|
2595
|
+
const g = _;
|
|
2596
|
+
_ = null, g == null || g();
|
|
2650
2597
|
}, j = () => {
|
|
2651
2598
|
F();
|
|
2652
|
-
const g =
|
|
2653
|
-
|
|
2599
|
+
const g = w;
|
|
2600
|
+
w = null, g == null || g(), i(null);
|
|
2654
2601
|
}, J = () => {
|
|
2655
|
-
F(),
|
|
2602
|
+
F(), k("name"), s(""), h({}), $(0);
|
|
2656
2603
|
}, re = (g) => {
|
|
2657
|
-
const
|
|
2658
|
-
if (!
|
|
2604
|
+
const L = o();
|
|
2605
|
+
if (!L) return;
|
|
2659
2606
|
const T = {
|
|
2660
2607
|
confirmed: g,
|
|
2661
2608
|
options: {
|
|
2662
2609
|
...l()
|
|
2663
2610
|
}
|
|
2664
2611
|
};
|
|
2665
|
-
j(), J(),
|
|
2612
|
+
j(), J(), L.resolve(T);
|
|
2666
2613
|
}, ee = () => {
|
|
2667
|
-
const g =
|
|
2614
|
+
const g = o();
|
|
2668
2615
|
g && (j(), J(), g.resolve({
|
|
2669
2616
|
confirmed: !1,
|
|
2670
2617
|
options: {}
|
|
2671
2618
|
}));
|
|
2672
2619
|
};
|
|
2673
|
-
|
|
2674
|
-
|
|
2620
|
+
me(() => {
|
|
2621
|
+
E = !0, ee();
|
|
2675
2622
|
});
|
|
2676
2623
|
const le = (g) => {
|
|
2677
2624
|
var T;
|
|
2678
|
-
if (ee(),
|
|
2625
|
+
if (ee(), E) return Promise.resolve({
|
|
2679
2626
|
confirmed: !1,
|
|
2680
2627
|
options: {}
|
|
2681
2628
|
});
|
|
2682
|
-
const
|
|
2683
|
-
return
|
|
2629
|
+
const L = ((T = g.host) == null ? void 0 : T.call(g)) ?? (e == null ? void 0 : e()) ?? Ke().window;
|
|
2630
|
+
return L.closed ? Promise.resolve({
|
|
2684
2631
|
confirmed: !1,
|
|
2685
2632
|
options: {}
|
|
2686
|
-
}) : new Promise((
|
|
2633
|
+
}) : new Promise((M) => {
|
|
2687
2634
|
const O = {};
|
|
2688
|
-
for (const
|
|
2689
|
-
J(), h(O), kt(g) ||
|
|
2635
|
+
for (const V of g.options ?? []) O[V.id] = !!V.default;
|
|
2636
|
+
J(), h(O), kt(g) || k("confirm");
|
|
2690
2637
|
const m = {
|
|
2691
2638
|
...g,
|
|
2692
|
-
resolve:
|
|
2693
|
-
targetWin:
|
|
2639
|
+
resolve: M,
|
|
2640
|
+
targetWin: L
|
|
2694
2641
|
}, R = () => {
|
|
2695
|
-
|
|
2642
|
+
o() === m && ee();
|
|
2696
2643
|
};
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
},
|
|
2644
|
+
L.addEventListener("pagehide", R), L.addEventListener("unload", R), w = () => {
|
|
2645
|
+
L.removeEventListener("pagehide", R), L.removeEventListener("unload", R);
|
|
2646
|
+
}, i(m);
|
|
2700
2647
|
});
|
|
2701
2648
|
}, fe = ve(() => {
|
|
2702
|
-
const g =
|
|
2703
|
-
return g ?
|
|
2704
|
-
}),
|
|
2705
|
-
const g =
|
|
2649
|
+
const g = o();
|
|
2650
|
+
return g ? b().trim() === g.resourceName.trim() : !1;
|
|
2651
|
+
}), Le = () => {
|
|
2652
|
+
const g = o();
|
|
2706
2653
|
if (!g || !kt(g) || !fe()) return;
|
|
2707
|
-
const
|
|
2708
|
-
F(),
|
|
2654
|
+
const L = g.countdownSeconds ?? Ia;
|
|
2655
|
+
F(), k("countdown"), A !== null && !A.contains(A.ownerDocument.activeElement) && A.focus(), $(L);
|
|
2709
2656
|
const T = g.targetWin;
|
|
2710
|
-
let
|
|
2657
|
+
let M = !0;
|
|
2711
2658
|
const O = T.setInterval(() => {
|
|
2712
|
-
!
|
|
2659
|
+
!M || o() !== g || $((m) => m <= 1 ? (F(), 0) : m - 1);
|
|
2713
2660
|
}, 1e3);
|
|
2714
|
-
|
|
2715
|
-
|
|
2661
|
+
_ = () => {
|
|
2662
|
+
M = !1, T.clearInterval(O);
|
|
2716
2663
|
};
|
|
2717
|
-
},
|
|
2718
|
-
F(),
|
|
2664
|
+
}, S = () => {
|
|
2665
|
+
F(), k("name");
|
|
2719
2666
|
};
|
|
2720
2667
|
$e(() => {
|
|
2721
|
-
|
|
2722
|
-
}),
|
|
2668
|
+
o() === null && F();
|
|
2669
|
+
}), me(F);
|
|
2723
2670
|
const z = (g) => {
|
|
2724
2671
|
B.noteMouseDown(g.target === g.currentTarget);
|
|
2725
2672
|
}, C = (g) => {
|
|
2726
2673
|
B.shouldCloseOnClick(g.target === g.currentTarget) && re(!1);
|
|
2727
2674
|
}, d = (g) => {
|
|
2728
|
-
const
|
|
2729
|
-
step:
|
|
2675
|
+
const L = Wi(g.key, {
|
|
2676
|
+
step: a(),
|
|
2730
2677
|
nameMatches: fe()
|
|
2731
2678
|
});
|
|
2732
|
-
|
|
2679
|
+
L === "dismiss" ? (g.stopPropagation(), re(!1)) : L === "advance" ? (g.preventDefault(), Le()) : A && et(A, g);
|
|
2733
2680
|
}, f = (g) => {
|
|
2734
2681
|
A = g, Z.captureDialog(g), nt(g, () => {
|
|
2735
2682
|
g.contains(g.ownerDocument.activeElement) || g.focus();
|
|
2736
2683
|
});
|
|
2737
2684
|
};
|
|
2738
2685
|
return [() => {
|
|
2739
|
-
const g = () =>
|
|
2740
|
-
var
|
|
2741
|
-
return ((
|
|
2686
|
+
const g = () => o(), L = () => {
|
|
2687
|
+
var p;
|
|
2688
|
+
return ((p = g()) == null ? void 0 : p.options) ?? [];
|
|
2742
2689
|
}, T = ve(() => {
|
|
2743
|
-
const
|
|
2744
|
-
return
|
|
2745
|
-
}),
|
|
2746
|
-
const
|
|
2747
|
-
return
|
|
2690
|
+
const p = g();
|
|
2691
|
+
return p === null ? null : sa(p.consequence);
|
|
2692
|
+
}), M = () => a() === "countdown" && v() === 0, O = () => {
|
|
2693
|
+
const p = g();
|
|
2694
|
+
return p !== null && kt(p) ? p : null;
|
|
2748
2695
|
}, m = () => {
|
|
2749
|
-
var
|
|
2750
|
-
return ((
|
|
2696
|
+
var p, ie;
|
|
2697
|
+
return ((p = g()) == null ? void 0 : p.confirmLabel) ?? ((ie = T()) == null ? void 0 : ie.confirmLabel) ?? "";
|
|
2751
2698
|
}, R = () => {
|
|
2752
2699
|
var ie;
|
|
2753
|
-
const
|
|
2754
|
-
return ((ie = O()) == null ? void 0 : ie.finalConfirmLabel) ?? ((
|
|
2755
|
-
},
|
|
2700
|
+
const p = T();
|
|
2701
|
+
return ((ie = O()) == null ? void 0 : ie.finalConfirmLabel) ?? ((p == null ? void 0 : p.level) === "typed" ? p.finalLabel : m());
|
|
2702
|
+
}, V = () => L().filter((p) => l()[p.id] === !0), N = (p) => {
|
|
2756
2703
|
h((ie) => ({
|
|
2757
2704
|
...ie,
|
|
2758
|
-
[
|
|
2705
|
+
[p]: !ie[p]
|
|
2759
2706
|
}));
|
|
2760
|
-
}, oe = (
|
|
2761
|
-
queueMicrotask(() =>
|
|
2707
|
+
}, oe = (p) => {
|
|
2708
|
+
queueMicrotask(() => p.focus());
|
|
2762
2709
|
}, Ce = () => `${G.input} ${fe() ? G.inputMatch : ""}`;
|
|
2763
|
-
return
|
|
2710
|
+
return n(D, {
|
|
2764
2711
|
get when() {
|
|
2765
2712
|
return g() !== null;
|
|
2766
2713
|
},
|
|
2767
2714
|
get children() {
|
|
2768
|
-
return
|
|
2715
|
+
return n(Ze, {
|
|
2769
2716
|
modal: !0,
|
|
2770
2717
|
get mount() {
|
|
2771
|
-
return
|
|
2718
|
+
return q().body;
|
|
2772
2719
|
},
|
|
2773
2720
|
idPrefix: "dangerous-action-dialog",
|
|
2774
2721
|
get children() {
|
|
2775
|
-
var
|
|
2776
|
-
return
|
|
2722
|
+
var p = La(), ie = p.firstChild, Pe = ie.firstChild, Te = Pe.firstChild, be = Te.nextSibling, ce = Pe.nextSibling;
|
|
2723
|
+
return p.$$keydown = (H) => {
|
|
2777
2724
|
ye(H, "Escape") && re(!1);
|
|
2778
|
-
},
|
|
2725
|
+
}, p.$$click = C, p.$$mousedown = z, ie.$$keydown = d, xe(f, ie), Y(ie, "aria-labelledby", t), Y(be, "id", t), c(be, () => {
|
|
2779
2726
|
var H;
|
|
2780
2727
|
return ((H = g()) == null ? void 0 : H.title) ?? "";
|
|
2781
|
-
}), c(ce,
|
|
2728
|
+
}), c(ce, n(D, {
|
|
2782
2729
|
get when() {
|
|
2783
2730
|
var H;
|
|
2784
2731
|
return (H = g()) == null ? void 0 : H.place;
|
|
2785
2732
|
},
|
|
2786
|
-
children: (H) =>
|
|
2787
|
-
id:
|
|
2733
|
+
children: (H) => n(Vt, {
|
|
2734
|
+
id: r,
|
|
2788
2735
|
get place() {
|
|
2789
2736
|
return H();
|
|
2790
2737
|
}
|
|
2791
2738
|
})
|
|
2792
|
-
}), null), c(ce,
|
|
2739
|
+
}), null), c(ce, n(D, {
|
|
2793
2740
|
get when() {
|
|
2794
2741
|
var H;
|
|
2795
2742
|
return (H = g()) == null ? void 0 : H.description;
|
|
@@ -2798,36 +2745,36 @@ function yc(e) {
|
|
|
2798
2745
|
var H = Wt();
|
|
2799
2746
|
return c(H, () => g().description), I(() => u(H, G.description)), H;
|
|
2800
2747
|
}
|
|
2801
|
-
}), null), c(ce,
|
|
2748
|
+
}), null), c(ce, n(D, {
|
|
2802
2749
|
get when() {
|
|
2803
2750
|
var H;
|
|
2804
2751
|
return (H = g()) == null ? void 0 : H.code;
|
|
2805
2752
|
},
|
|
2806
|
-
children: (H) =>
|
|
2753
|
+
children: (H) => n(Sa, {
|
|
2807
2754
|
get code() {
|
|
2808
2755
|
return H();
|
|
2809
2756
|
}
|
|
2810
2757
|
})
|
|
2811
|
-
}), null), c(ce,
|
|
2758
|
+
}), null), c(ce, n(D, {
|
|
2812
2759
|
get when() {
|
|
2813
|
-
return
|
|
2760
|
+
return ue(() => a() === "name")() ? O() : null;
|
|
2814
2761
|
},
|
|
2815
|
-
children: (H) => [
|
|
2762
|
+
children: (H) => [n($a, {
|
|
2816
2763
|
request: H,
|
|
2817
|
-
typedName:
|
|
2764
|
+
typedName: b,
|
|
2818
2765
|
setTypedName: s,
|
|
2819
2766
|
inputRef: oe,
|
|
2820
2767
|
inputClass: Ce
|
|
2821
|
-
}),
|
|
2822
|
-
options:
|
|
2768
|
+
}), n(Tt, {
|
|
2769
|
+
options: L,
|
|
2823
2770
|
optionState: l,
|
|
2824
2771
|
toggleOption: N
|
|
2825
2772
|
})]
|
|
2826
|
-
}), null), c(ce,
|
|
2773
|
+
}), null), c(ce, n(D, {
|
|
2827
2774
|
get when() {
|
|
2828
|
-
return
|
|
2775
|
+
return ue(() => a() === "countdown")() ? T() : null;
|
|
2829
2776
|
},
|
|
2830
|
-
children: (H) => [
|
|
2777
|
+
children: (H) => [n(Rt, {
|
|
2831
2778
|
get copy() {
|
|
2832
2779
|
return H();
|
|
2833
2780
|
},
|
|
@@ -2835,11 +2782,11 @@ function yc(e) {
|
|
|
2835
2782
|
var se;
|
|
2836
2783
|
return ((se = g()) == null ? void 0 : se.resourceName) ?? "";
|
|
2837
2784
|
}
|
|
2838
|
-
}),
|
|
2839
|
-
options:
|
|
2785
|
+
}), n(xa, {
|
|
2786
|
+
options: V
|
|
2840
2787
|
}), (() => {
|
|
2841
2788
|
var se = Wt();
|
|
2842
|
-
return c(se,
|
|
2789
|
+
return c(se, n(D, {
|
|
2843
2790
|
get when() {
|
|
2844
2791
|
return v() > 0;
|
|
2845
2792
|
},
|
|
@@ -2853,11 +2800,11 @@ function yc(e) {
|
|
|
2853
2800
|
}
|
|
2854
2801
|
})), I(() => u(se, G.finalNote)), se;
|
|
2855
2802
|
})()]
|
|
2856
|
-
}), null), c(ce,
|
|
2803
|
+
}), null), c(ce, n(D, {
|
|
2857
2804
|
get when() {
|
|
2858
|
-
return
|
|
2805
|
+
return ue(() => a() === "confirm")() ? T() : null;
|
|
2859
2806
|
},
|
|
2860
|
-
children: (H) => [
|
|
2807
|
+
children: (H) => [n(Rt, {
|
|
2861
2808
|
get copy() {
|
|
2862
2809
|
return H();
|
|
2863
2810
|
},
|
|
@@ -2865,26 +2812,26 @@ function yc(e) {
|
|
|
2865
2812
|
var se;
|
|
2866
2813
|
return ((se = g()) == null ? void 0 : se.resourceName) ?? "";
|
|
2867
2814
|
}
|
|
2868
|
-
}),
|
|
2869
|
-
options:
|
|
2815
|
+
}), n(Tt, {
|
|
2816
|
+
options: L,
|
|
2870
2817
|
optionState: l,
|
|
2871
2818
|
toggleOption: N
|
|
2872
2819
|
})]
|
|
2873
|
-
}), null), c(ie,
|
|
2874
|
-
step:
|
|
2820
|
+
}), null), c(ie, n(ya, {
|
|
2821
|
+
step: a,
|
|
2875
2822
|
nameMatches: fe,
|
|
2876
|
-
finalEnabled:
|
|
2823
|
+
finalEnabled: M,
|
|
2877
2824
|
countdown: v,
|
|
2878
2825
|
confirmLabel: m,
|
|
2879
2826
|
finalLabel: R,
|
|
2880
2827
|
onCancel: () => re(!1),
|
|
2881
|
-
onAdvance:
|
|
2882
|
-
onBack:
|
|
2828
|
+
onAdvance: Le,
|
|
2829
|
+
onBack: S,
|
|
2883
2830
|
onConfirm: () => re(!0)
|
|
2884
2831
|
}), null), I((H) => {
|
|
2885
|
-
var
|
|
2886
|
-
var se = G.overlay,
|
|
2887
|
-
return se !== H.e && u(
|
|
2832
|
+
var Xe, st;
|
|
2833
|
+
var se = G.overlay, He = G.dialog, it = (Xe = g()) != null && Xe.place ? r : void 0, at = (st = T()) == null ? void 0 : st.level, Me = G.header, Ge = G.warningIcon, lt = G.title, ct = G.body;
|
|
2834
|
+
return se !== H.e && u(p, H.e = se), He !== H.t && u(ie, H.t = He), it !== H.a && Y(ie, "aria-describedby", H.a = it), at !== H.o && Y(ie, "data-confirmation-level", H.o = at), Me !== H.i && u(Pe, H.i = Me), Ge !== H.n && u(Te, H.n = Ge), lt !== H.s && u(be, H.s = lt), ct !== H.h && u(ce, H.h = ct), H;
|
|
2888
2835
|
}, {
|
|
2889
2836
|
e: void 0,
|
|
2890
2837
|
t: void 0,
|
|
@@ -2894,66 +2841,66 @@ function yc(e) {
|
|
|
2894
2841
|
n: void 0,
|
|
2895
2842
|
s: void 0,
|
|
2896
2843
|
h: void 0
|
|
2897
|
-
}),
|
|
2844
|
+
}), p;
|
|
2898
2845
|
}
|
|
2899
2846
|
});
|
|
2900
2847
|
}
|
|
2901
2848
|
});
|
|
2902
2849
|
}, le];
|
|
2903
2850
|
}
|
|
2904
|
-
|
|
2905
|
-
const Ma = "vk_window_cNPxa",
|
|
2851
|
+
Ee(["mousedown", "click", "keydown"]);
|
|
2852
|
+
const Ma = "vk_window_cNPxa", Da = "vk_maximized_nbnO1", Aa = "vk_minimized_7iRrM", Ea = "vk_titlebar_x5HLa", Pa = "vk_titlebarDragging_UvwHD", Ta = "vk_titleInfo_CfnKC", Ra = "vk_windowIcon_kwo8N", Wa = "vk_windowTitle_oh-oF", Oa = "vk_windowControls_VpW8D", Ba = "vk_controlBtn_KeaeH", za = "vk_closeBtn_Mb5cO", Ha = "vk_body_n-l67", Fa = "vk_resizeGrip_NFWQc", de = {
|
|
2906
2853
|
window: Ma,
|
|
2907
|
-
maximized:
|
|
2908
|
-
minimized:
|
|
2854
|
+
maximized: Da,
|
|
2855
|
+
minimized: Aa,
|
|
2909
2856
|
titlebar: Ea,
|
|
2910
|
-
titlebarDragging:
|
|
2911
|
-
titleInfo:
|
|
2912
|
-
windowIcon:
|
|
2913
|
-
windowTitle:
|
|
2914
|
-
windowControls:
|
|
2915
|
-
controlBtn:
|
|
2916
|
-
closeBtn:
|
|
2917
|
-
body:
|
|
2918
|
-
resizeGrip:
|
|
2857
|
+
titlebarDragging: Pa,
|
|
2858
|
+
titleInfo: Ta,
|
|
2859
|
+
windowIcon: Ra,
|
|
2860
|
+
windowTitle: Wa,
|
|
2861
|
+
windowControls: Oa,
|
|
2862
|
+
controlBtn: Ba,
|
|
2863
|
+
closeBtn: za,
|
|
2864
|
+
body: Ha,
|
|
2865
|
+
resizeGrip: Fa
|
|
2919
2866
|
};
|
|
2920
|
-
var
|
|
2921
|
-
function
|
|
2922
|
-
var
|
|
2923
|
-
const [t,
|
|
2924
|
-
let
|
|
2867
|
+
var Na = /* @__PURE__ */ W("<span>"), Va = /* @__PURE__ */ W("<button type=button>"), qa = /* @__PURE__ */ W("<div aria-hidden=true>"), pa = /* @__PURE__ */ W("<div role=dialog tabindex=-1><div><div><span></span></div><div><button type=button></button><button type=button></button><button type=button>");
|
|
2868
|
+
function yc(e) {
|
|
2869
|
+
var Le, S, z, C;
|
|
2870
|
+
const [t, r] = Q(((Le = e.initialPosition) == null ? void 0 : Le.x) ?? 24), [o, i] = Q(((S = e.initialPosition) == null ? void 0 : S.y) ?? 24), [a, k] = Q(((z = e.initialSize) == null ? void 0 : z.width) ?? 360), [b, s] = Q(((C = e.initialSize) == null ? void 0 : C.height) ?? 220), [l, h] = Q(!1), [v, $] = Q(!1), [_, w] = Q(!1), E = () => e.minWidth ?? 240, x = () => e.minHeight ?? 140;
|
|
2871
|
+
let q = 0, Z = 0, A = 0, B = 0;
|
|
2925
2872
|
const F = (d) => {
|
|
2926
2873
|
if (v()) return;
|
|
2927
2874
|
const f = d.currentTarget;
|
|
2928
|
-
f.setPointerCapture(d.pointerId),
|
|
2929
|
-
const
|
|
2930
|
-
const T =
|
|
2931
|
-
|
|
2932
|
-
}, g = (
|
|
2875
|
+
f.setPointerCapture(d.pointerId), w(!0), q = d.clientX, Z = d.clientY, A = t(), B = o();
|
|
2876
|
+
const P = (L) => {
|
|
2877
|
+
const T = L.clientX - q, M = L.clientY - Z;
|
|
2878
|
+
r(Math.max(0, A + T)), i(Math.max(0, B + M));
|
|
2879
|
+
}, g = (L) => {
|
|
2933
2880
|
try {
|
|
2934
|
-
f.releasePointerCapture(
|
|
2881
|
+
f.releasePointerCapture(L.pointerId);
|
|
2935
2882
|
} catch (T) {
|
|
2936
2883
|
At("ignore if capture released", T);
|
|
2937
2884
|
}
|
|
2938
|
-
f.removeEventListener("pointermove",
|
|
2885
|
+
f.removeEventListener("pointermove", P), f.removeEventListener("pointerup", g), f.removeEventListener("pointercancel", g), w(!1);
|
|
2939
2886
|
};
|
|
2940
|
-
f.addEventListener("pointermove",
|
|
2887
|
+
f.addEventListener("pointermove", P), f.addEventListener("pointerup", g), f.addEventListener("pointercancel", g);
|
|
2941
2888
|
}, j = (d) => {
|
|
2942
2889
|
if (d.preventDefault(), d.stopPropagation(), v() || l()) return;
|
|
2943
2890
|
const f = d.currentTarget;
|
|
2944
2891
|
f.setPointerCapture(d.pointerId);
|
|
2945
|
-
const
|
|
2946
|
-
const R = m.clientX -
|
|
2947
|
-
|
|
2892
|
+
const P = d.clientX, g = d.clientY, L = a(), T = b(), M = (m) => {
|
|
2893
|
+
const R = m.clientX - P, V = m.clientY - g;
|
|
2894
|
+
k(Math.max(E(), L + R)), s(Math.max(x(), T + V));
|
|
2948
2895
|
}, O = (m) => {
|
|
2949
2896
|
try {
|
|
2950
2897
|
f.releasePointerCapture(m.pointerId);
|
|
2951
2898
|
} catch (R) {
|
|
2952
2899
|
At("ignore if capture released", R);
|
|
2953
2900
|
}
|
|
2954
|
-
f.removeEventListener("pointermove",
|
|
2901
|
+
f.removeEventListener("pointermove", M), f.removeEventListener("pointerup", O), f.removeEventListener("pointercancel", O);
|
|
2955
2902
|
};
|
|
2956
|
-
f.addEventListener("pointermove",
|
|
2903
|
+
f.addEventListener("pointermove", M), f.addEventListener("pointerup", O), f.addEventListener("pointercancel", O);
|
|
2957
2904
|
}, J = () => {
|
|
2958
2905
|
e.onMaximize ? e.onMaximize() : $((d) => !d);
|
|
2959
2906
|
}, re = () => {
|
|
@@ -2971,94 +2918,94 @@ function $c(e) {
|
|
|
2971
2918
|
le = d.document.activeElement ?? null;
|
|
2972
2919
|
const f = d.requestAnimationFrame(() => {
|
|
2973
2920
|
ee != null && ee.isConnected && ee.focus();
|
|
2974
|
-
}),
|
|
2921
|
+
}), P = (g) => {
|
|
2975
2922
|
!ye(g, "Escape") || !fe.isTopmost() || (g.stopPropagation(), g.stopImmediatePropagation(), e.onClose());
|
|
2976
2923
|
};
|
|
2977
|
-
d.addEventListener("keydown",
|
|
2978
|
-
d.cancelAnimationFrame(f), d.removeEventListener("keydown",
|
|
2924
|
+
d.addEventListener("keydown", P, !0), me(() => {
|
|
2925
|
+
d.cancelAnimationFrame(f), d.removeEventListener("keydown", P, !0);
|
|
2979
2926
|
const g = d.document.activeElement;
|
|
2980
2927
|
(g === null || g === d.document.body) && (le != null && le.isConnected) && le.focus();
|
|
2981
2928
|
});
|
|
2982
|
-
}),
|
|
2929
|
+
}), n(D, {
|
|
2983
2930
|
get when() {
|
|
2984
2931
|
return e.isOpen;
|
|
2985
2932
|
},
|
|
2986
2933
|
get children() {
|
|
2987
|
-
var d =
|
|
2934
|
+
var d = pa(), f = d.firstChild, P = f.firstChild, g = P.firstChild, L = P.nextSibling, T = L.firstChild, M = T.nextSibling, O = M.nextSibling;
|
|
2988
2935
|
return xe((m) => {
|
|
2989
2936
|
ee = m;
|
|
2990
|
-
}, d), f.$$dblclick = J, f.$$pointerdown = F, c(
|
|
2937
|
+
}, d), f.$$dblclick = J, f.$$pointerdown = F, c(P, n(D, {
|
|
2991
2938
|
get when() {
|
|
2992
2939
|
return e.icon;
|
|
2993
2940
|
},
|
|
2994
2941
|
get children() {
|
|
2995
|
-
var m =
|
|
2996
|
-
return c(m, () => e.icon), I(() => u(m,
|
|
2942
|
+
var m = Na();
|
|
2943
|
+
return c(m, () => e.icon), I(() => u(m, de.windowIcon)), m;
|
|
2997
2944
|
}
|
|
2998
|
-
}), g), c(g, () => e.title),
|
|
2945
|
+
}), g), c(g, () => e.title), L.$$pointerdown = (m) => m.stopPropagation(), T.$$click = re, c(T, n(_n, {
|
|
2999
2946
|
"aria-hidden": "true"
|
|
3000
|
-
})),
|
|
2947
|
+
})), M.$$click = J, c(M, n(D, {
|
|
3001
2948
|
get when() {
|
|
3002
2949
|
return v();
|
|
3003
2950
|
},
|
|
3004
2951
|
get fallback() {
|
|
3005
|
-
return
|
|
2952
|
+
return n(kn, {
|
|
3006
2953
|
"aria-hidden": "true"
|
|
3007
2954
|
});
|
|
3008
2955
|
},
|
|
3009
2956
|
get children() {
|
|
3010
|
-
return
|
|
2957
|
+
return n(wn, {
|
|
3011
2958
|
"aria-hidden": "true"
|
|
3012
2959
|
});
|
|
3013
2960
|
}
|
|
3014
|
-
})), c(
|
|
2961
|
+
})), c(L, n(D, {
|
|
3015
2962
|
get when() {
|
|
3016
2963
|
return e.onDetach;
|
|
3017
2964
|
},
|
|
3018
2965
|
get children() {
|
|
3019
2966
|
var m = Va();
|
|
3020
|
-
return
|
|
2967
|
+
return pe(m, "click", e.onDetach, !0), c(m, n(Cn, {
|
|
3021
2968
|
"aria-hidden": "true"
|
|
3022
2969
|
})), I((R) => {
|
|
3023
|
-
var
|
|
3024
|
-
return
|
|
2970
|
+
var V = de.controlBtn, N = y("Detach window");
|
|
2971
|
+
return V !== R.e && u(m, R.e = V), N !== R.t && Y(m, "aria-label", R.t = N), R;
|
|
3025
2972
|
}, {
|
|
3026
2973
|
e: void 0,
|
|
3027
2974
|
t: void 0
|
|
3028
2975
|
}), m;
|
|
3029
2976
|
}
|
|
3030
|
-
}), O),
|
|
2977
|
+
}), O), pe(O, "click", e.onClose, !0), c(O, n(xt, {
|
|
3031
2978
|
"aria-hidden": "true"
|
|
3032
|
-
})), c(d,
|
|
2979
|
+
})), c(d, n(D, {
|
|
3033
2980
|
get when() {
|
|
3034
2981
|
return !l();
|
|
3035
2982
|
},
|
|
3036
2983
|
get children() {
|
|
3037
|
-
return [
|
|
2984
|
+
return [n(Be, {
|
|
3038
2985
|
get rootClass() {
|
|
3039
|
-
return
|
|
2986
|
+
return de.body;
|
|
3040
2987
|
},
|
|
3041
2988
|
get children() {
|
|
3042
2989
|
return e.children;
|
|
3043
2990
|
}
|
|
3044
|
-
}),
|
|
2991
|
+
}), n(D, {
|
|
3045
2992
|
get when() {
|
|
3046
2993
|
return !v();
|
|
3047
2994
|
},
|
|
3048
2995
|
get children() {
|
|
3049
2996
|
var m = qa();
|
|
3050
|
-
return m.$$pointerdown = j, I(() => u(m,
|
|
2997
|
+
return m.$$pointerdown = j, I(() => u(m, de.resizeGrip)), m;
|
|
3051
2998
|
}
|
|
3052
2999
|
})];
|
|
3053
3000
|
}
|
|
3054
3001
|
}), null), I((m) => {
|
|
3055
|
-
var R = `${
|
|
3002
|
+
var R = `${de.window} ${v() ? de.maximized : ""} ${l() ? de.minimized : ""} ${e.class ?? ""}`, V = v() ? {} : {
|
|
3056
3003
|
left: `${t()}px`,
|
|
3057
|
-
top: `${
|
|
3058
|
-
width: `${
|
|
3059
|
-
height: l() ? "auto" : `${
|
|
3060
|
-
}, N = e.title, oe = `${
|
|
3061
|
-
return R !== m.e && u(d, m.e = R), m.t = cn(d,
|
|
3004
|
+
top: `${o()}px`,
|
|
3005
|
+
width: `${a()}px`,
|
|
3006
|
+
height: l() ? "auto" : `${b()}px`
|
|
3007
|
+
}, N = e.title, oe = `${de.titlebar} ${_() ? de.titlebarDragging : ""}`, Ce = de.titleInfo, p = de.windowTitle, ie = de.windowControls, Pe = de.controlBtn, Te = y("Minimize"), be = de.controlBtn, ce = v() ? y("Restore") : y("Maximize"), H = `${de.controlBtn} ${de.closeBtn}`, se = y("Close window");
|
|
3008
|
+
return R !== m.e && u(d, m.e = R), m.t = cn(d, V, m.t), N !== m.a && Y(d, "aria-label", m.a = N), oe !== m.o && u(f, m.o = oe), Ce !== m.i && u(P, m.i = Ce), p !== m.n && u(g, m.n = p), ie !== m.s && u(L, m.s = ie), Pe !== m.h && u(T, m.h = Pe), Te !== m.r && Y(T, "aria-label", m.r = Te), be !== m.d && u(M, m.d = be), ce !== m.l && Y(M, "aria-label", m.l = ce), H !== m.u && u(O, m.u = H), se !== m.c && Y(O, "aria-label", m.c = se), m;
|
|
3062
3009
|
}, {
|
|
3063
3010
|
e: void 0,
|
|
3064
3011
|
t: void 0,
|
|
@@ -3077,65 +3024,65 @@ function $c(e) {
|
|
|
3077
3024
|
}
|
|
3078
3025
|
});
|
|
3079
3026
|
}
|
|
3080
|
-
|
|
3027
|
+
Ee(["pointerdown", "dblclick", "click"]);
|
|
3081
3028
|
function tn(e, t) {
|
|
3082
|
-
const
|
|
3083
|
-
return
|
|
3029
|
+
const r = t.split(/\s+/).filter(Boolean);
|
|
3030
|
+
return r.length > 1 && r.every((o) => e.includes(o));
|
|
3084
3031
|
}
|
|
3085
3032
|
function nn(e, t) {
|
|
3086
|
-
const
|
|
3087
|
-
if (
|
|
3088
|
-
let
|
|
3089
|
-
for (const
|
|
3090
|
-
if (
|
|
3033
|
+
const r = t.replace(/\s+/g, "");
|
|
3034
|
+
if (r.length < 2) return !1;
|
|
3035
|
+
let o = 0;
|
|
3036
|
+
for (const i of e)
|
|
3037
|
+
if (i === r[o] && (o += 1), o === r.length) return !0;
|
|
3091
3038
|
return !1;
|
|
3092
3039
|
}
|
|
3093
3040
|
function Ot(e, t) {
|
|
3094
|
-
const
|
|
3095
|
-
return
|
|
3041
|
+
const r = e.title.toLowerCase(), o = e.category.toLowerCase(), i = (e.keywords ?? []).join(" ").toLowerCase();
|
|
3042
|
+
return r === t ? 8 : r.startsWith(t) ? 7 : r.includes(t) ? 6 : tn(r, t) ? 5 : o.includes(t) ? 3 : i.includes(t) ? 2 : nn(r, t) ? 1 : 0;
|
|
3096
3043
|
}
|
|
3097
|
-
function
|
|
3098
|
-
const
|
|
3099
|
-
return
|
|
3044
|
+
function Ka(e, t) {
|
|
3045
|
+
const r = e.title.toLowerCase(), o = (e.description ?? "").toLowerCase();
|
|
3046
|
+
return r === t ? 8 : r.startsWith(t) ? 7 : r.includes(t) ? 6 : tn(r, t) ? 5 : o.includes(t) ? 2 : nn(r, t) ? 1 : 0;
|
|
3100
3047
|
}
|
|
3101
|
-
function
|
|
3048
|
+
function Ya(e) {
|
|
3102
3049
|
return [e.title, e.description, e.ariaShortcut].filter((t) => !!t).join(", ");
|
|
3103
3050
|
}
|
|
3104
|
-
const
|
|
3105
|
-
backdrop:
|
|
3106
|
-
backdropCompact:
|
|
3107
|
-
backdropClassic:
|
|
3108
|
-
panel:
|
|
3109
|
-
panelCompact:
|
|
3110
|
-
panelClassic:
|
|
3111
|
-
searchRow:
|
|
3112
|
-
searchInput:
|
|
3113
|
-
results:
|
|
3114
|
-
section:
|
|
3115
|
-
sectionTitle:
|
|
3116
|
-
commandList:
|
|
3117
|
-
commandItem:
|
|
3118
|
-
commandItemActive:
|
|
3119
|
-
commandMain:
|
|
3120
|
-
commandTitle:
|
|
3121
|
-
commandDescription:
|
|
3122
|
-
commandShortcut:
|
|
3123
|
-
commandRow:
|
|
3124
|
-
configureBtn:
|
|
3125
|
-
commandRowActive:
|
|
3126
|
-
},
|
|
3127
|
-
tabsContainer:
|
|
3128
|
-
tabButton:
|
|
3129
|
-
tabButtonActive:
|
|
3130
|
-
tabBadge:
|
|
3131
|
-
tabBadgeActive:
|
|
3132
|
-
badge:
|
|
3133
|
-
badgeSetting:
|
|
3134
|
-
badgeDb:
|
|
3135
|
-
statusRow:
|
|
3051
|
+
const Ua = "vk_backdrop_aa9-b", ja = "vk_backdropCompact_PkBAv", Ga = "vk_backdropClassic_ehT8b", Xa = "vk_panel_unTU7", Qa = "vk_panelCompact_SIdhM", Ja = "vk_panelClassic_aiZlM", Za = "vk_searchRow_zeI45", el = "vk_searchInput_oshkq", tl = "vk_results_zGg2V", nl = "vk_section_RoSyC", rl = "vk_sectionTitle_JpTJl", ol = "vk_commandList_y7keL", il = "vk_commandItem_0v8jJ", al = "vk_commandItemActive_Ar6PV", ll = "vk_commandMain_ogAdz", cl = "vk_commandTitle_auoxZ vk_titleSm_IecPV", sl = "vk_commandDescription_8zkPN", dl = "vk_commandShortcut_UAa5d", ul = "vk_commandRow_LX6zz", ml = "vk_configureBtn_OMS9G", vl = "vk_commandRowActive_uNRXl", U = {
|
|
3052
|
+
backdrop: Ua,
|
|
3053
|
+
backdropCompact: ja,
|
|
3054
|
+
backdropClassic: Ga,
|
|
3055
|
+
panel: Xa,
|
|
3056
|
+
panelCompact: Qa,
|
|
3057
|
+
panelClassic: Ja,
|
|
3058
|
+
searchRow: Za,
|
|
3059
|
+
searchInput: el,
|
|
3060
|
+
results: tl,
|
|
3061
|
+
section: nl,
|
|
3062
|
+
sectionTitle: rl,
|
|
3063
|
+
commandList: ol,
|
|
3064
|
+
commandItem: il,
|
|
3065
|
+
commandItemActive: al,
|
|
3066
|
+
commandMain: ll,
|
|
3067
|
+
commandTitle: cl,
|
|
3068
|
+
commandDescription: sl,
|
|
3069
|
+
commandShortcut: dl,
|
|
3070
|
+
commandRow: ul,
|
|
3071
|
+
configureBtn: ml,
|
|
3072
|
+
commandRowActive: vl
|
|
3073
|
+
}, hl = "vk_tabsContainer_CiFoB", gl = "vk_tabButton_M-DwJ", fl = "vk_tabButtonActive_pgOkL", bl = "vk_tabBadge_sBmun", _l = "vk_tabBadgeActive_N-q86", wl = "vk_badge_meiW8", kl = "vk_badgeSetting_LSTcT", Cl = "vk_badgeDb_ThJRG", yl = "vk_statusRow_QoKuX", Ie = {
|
|
3074
|
+
tabsContainer: hl,
|
|
3075
|
+
tabButton: gl,
|
|
3076
|
+
tabButtonActive: fl,
|
|
3077
|
+
tabBadge: bl,
|
|
3078
|
+
tabBadgeActive: _l,
|
|
3079
|
+
badge: wl,
|
|
3080
|
+
badgeSetting: kl,
|
|
3081
|
+
badgeDb: Cl,
|
|
3082
|
+
statusRow: yl
|
|
3136
3083
|
};
|
|
3137
|
-
var
|
|
3138
|
-
function
|
|
3084
|
+
var $l = /* @__PURE__ */ W("<div role=tablist>"), xl = /* @__PURE__ */ W("<button type=button role=tab><span>"), Sl = /* @__PURE__ */ W("<span>●");
|
|
3085
|
+
function Ll(e) {
|
|
3139
3086
|
const t = [{
|
|
3140
3087
|
mode: "everywhere",
|
|
3141
3088
|
label: "All"
|
|
@@ -3148,177 +3095,177 @@ function Il(e) {
|
|
|
3148
3095
|
}, {
|
|
3149
3096
|
mode: "database",
|
|
3150
3097
|
label: "Database"
|
|
3151
|
-
}],
|
|
3098
|
+
}], r = Dn();
|
|
3152
3099
|
return (() => {
|
|
3153
|
-
var
|
|
3154
|
-
return
|
|
3100
|
+
var o = $l();
|
|
3101
|
+
return pe(o, "keydown", r, !0), c(o, n(Ae, {
|
|
3155
3102
|
each: t,
|
|
3156
|
-
children: (
|
|
3157
|
-
const
|
|
3103
|
+
children: (i) => {
|
|
3104
|
+
const a = () => e.activeMode() === i.mode;
|
|
3158
3105
|
return (() => {
|
|
3159
|
-
var
|
|
3160
|
-
return
|
|
3161
|
-
var s =
|
|
3106
|
+
var k = xl(), b = k.firstChild;
|
|
3107
|
+
return k.$$click = () => e.onModeChange(i.mode), c(b, () => y(i.label)), c(k, (() => {
|
|
3108
|
+
var s = ue(() => !!(i.mode === "database" && e.hasWorkspaceContext()));
|
|
3162
3109
|
return () => s() ? (() => {
|
|
3163
3110
|
var l = Sl();
|
|
3164
|
-
return I(() => u(l, `${Ie.tabBadge} ${
|
|
3111
|
+
return I(() => u(l, `${Ie.tabBadge} ${a() ? Ie.tabBadgeActive : ""}`)), l;
|
|
3165
3112
|
})() : null;
|
|
3166
3113
|
})(), null), I((s) => {
|
|
3167
|
-
var l =
|
|
3168
|
-
return l !== s.e && Y(
|
|
3114
|
+
var l = a(), h = a() ? 0 : -1, v = `${Ie.tabButton} ${a() ? Ie.tabButtonActive : ""}`;
|
|
3115
|
+
return l !== s.e && Y(k, "aria-selected", s.e = l), h !== s.t && Y(k, "tabindex", s.t = h), v !== s.a && u(k, s.a = v), s;
|
|
3169
3116
|
}, {
|
|
3170
3117
|
e: void 0,
|
|
3171
3118
|
t: void 0,
|
|
3172
3119
|
a: void 0
|
|
3173
|
-
}),
|
|
3120
|
+
}), k;
|
|
3174
3121
|
})();
|
|
3175
3122
|
}
|
|
3176
|
-
})), I((
|
|
3177
|
-
var
|
|
3178
|
-
return
|
|
3123
|
+
})), I((i) => {
|
|
3124
|
+
var a = Ie.tabsContainer, k = y("Search Everywhere");
|
|
3125
|
+
return a !== i.e && u(o, i.e = a), k !== i.t && Y(o, "aria-label", i.t = k), i;
|
|
3179
3126
|
}, {
|
|
3180
3127
|
e: void 0,
|
|
3181
3128
|
t: void 0
|
|
3182
|
-
}),
|
|
3129
|
+
}), o;
|
|
3183
3130
|
})();
|
|
3184
3131
|
}
|
|
3185
|
-
|
|
3186
|
-
function
|
|
3132
|
+
Ee(["keydown", "click"]);
|
|
3133
|
+
function Il(e) {
|
|
3187
3134
|
const {
|
|
3188
3135
|
mode: t,
|
|
3189
|
-
query:
|
|
3190
|
-
commands:
|
|
3191
|
-
recentCommandIds:
|
|
3192
|
-
categoryOrder:
|
|
3193
|
-
settingsItems:
|
|
3194
|
-
databaseItems:
|
|
3195
|
-
} = e, s =
|
|
3196
|
-
for (const
|
|
3197
|
-
l.set(
|
|
3198
|
-
const h = (
|
|
3199
|
-
id:
|
|
3136
|
+
query: r,
|
|
3137
|
+
commands: o,
|
|
3138
|
+
recentCommandIds: i,
|
|
3139
|
+
categoryOrder: a,
|
|
3140
|
+
settingsItems: k,
|
|
3141
|
+
databaseItems: b
|
|
3142
|
+
} = e, s = r.trim().toLowerCase(), l = /* @__PURE__ */ new Map();
|
|
3143
|
+
for (const _ of o)
|
|
3144
|
+
l.set(_.id, _);
|
|
3145
|
+
const h = (_, w = 1) => ({
|
|
3146
|
+
id: _.id,
|
|
3200
3147
|
kind: "command",
|
|
3201
|
-
title:
|
|
3202
|
-
description:
|
|
3203
|
-
category:
|
|
3204
|
-
shortcut:
|
|
3205
|
-
ariaShortcut:
|
|
3206
|
-
enabled:
|
|
3207
|
-
score:
|
|
3208
|
-
run:
|
|
3209
|
-
rawCommand:
|
|
3148
|
+
title: _.title,
|
|
3149
|
+
description: _.description,
|
|
3150
|
+
category: _.category,
|
|
3151
|
+
shortcut: _.shortcut,
|
|
3152
|
+
ariaShortcut: _.ariaShortcut,
|
|
3153
|
+
enabled: _.enabled,
|
|
3154
|
+
score: w,
|
|
3155
|
+
run: _.run,
|
|
3156
|
+
rawCommand: _
|
|
3210
3157
|
});
|
|
3211
3158
|
if (t === "settings")
|
|
3212
|
-
return
|
|
3159
|
+
return k.length === 0 ? [] : [
|
|
3213
3160
|
{
|
|
3214
3161
|
id: "section:settings",
|
|
3215
3162
|
label: y("Settings"),
|
|
3216
|
-
items:
|
|
3163
|
+
items: k
|
|
3217
3164
|
}
|
|
3218
3165
|
];
|
|
3219
3166
|
if (t === "database")
|
|
3220
|
-
return
|
|
3167
|
+
return b.length === 0 ? [] : [
|
|
3221
3168
|
{
|
|
3222
3169
|
id: "section:database",
|
|
3223
3170
|
label: y("Database"),
|
|
3224
|
-
items:
|
|
3171
|
+
items: b
|
|
3225
3172
|
}
|
|
3226
3173
|
];
|
|
3227
3174
|
if (t === "commands") {
|
|
3228
|
-
const
|
|
3175
|
+
const _ = s ? o.map((B) => ({
|
|
3229
3176
|
cmd: B,
|
|
3230
3177
|
score: Ot(B, s)
|
|
3231
|
-
})).filter((B) => B.score > 0).sort((B, F) => F.score - B.score).map((B) => B.cmd) :
|
|
3178
|
+
})).filter((B) => B.score > 0).sort((B, F) => F.score - B.score).map((B) => B.cmd) : o, w = [], E = /* @__PURE__ */ new Set();
|
|
3232
3179
|
if (!s) {
|
|
3233
|
-
const B =
|
|
3180
|
+
const B = i.map((F) => l.get(F)).filter((F) => !!F);
|
|
3234
3181
|
if (B.length > 0) {
|
|
3235
|
-
|
|
3182
|
+
w.push({
|
|
3236
3183
|
id: "recent",
|
|
3237
3184
|
label: y("Recent"),
|
|
3238
3185
|
items: B.map((F) => h(F))
|
|
3239
3186
|
});
|
|
3240
3187
|
for (const F of B)
|
|
3241
|
-
|
|
3188
|
+
E.add(F.id);
|
|
3242
3189
|
}
|
|
3243
3190
|
}
|
|
3244
3191
|
const x = /* @__PURE__ */ new Map();
|
|
3245
|
-
for (const B of
|
|
3246
|
-
if (
|
|
3192
|
+
for (const B of _) {
|
|
3193
|
+
if (E.has(B.id)) continue;
|
|
3247
3194
|
const F = x.get(B.category) ?? [];
|
|
3248
3195
|
F.push(B), x.set(B.category, F);
|
|
3249
3196
|
}
|
|
3250
|
-
const
|
|
3251
|
-
const F =
|
|
3252
|
-
return F === -1 ?
|
|
3197
|
+
const q = a ?? [], Z = (B) => {
|
|
3198
|
+
const F = q.indexOf(B);
|
|
3199
|
+
return F === -1 ? q.length : F;
|
|
3253
3200
|
}, A = [...x.keys()].sort((B, F) => {
|
|
3254
3201
|
const j = Z(B) - Z(F);
|
|
3255
3202
|
return j !== 0 ? j : B.localeCompare(F);
|
|
3256
3203
|
});
|
|
3257
3204
|
for (const B of A) {
|
|
3258
3205
|
const F = x.get(B) ?? [];
|
|
3259
|
-
|
|
3206
|
+
w.push({
|
|
3260
3207
|
id: `category:${B}`,
|
|
3261
3208
|
label: B,
|
|
3262
3209
|
items: F.map((j) => h(j))
|
|
3263
3210
|
});
|
|
3264
3211
|
}
|
|
3265
|
-
return
|
|
3212
|
+
return w;
|
|
3266
3213
|
}
|
|
3267
3214
|
const v = [];
|
|
3268
3215
|
if (!s) {
|
|
3269
|
-
const
|
|
3270
|
-
if (
|
|
3216
|
+
const _ = /* @__PURE__ */ new Set(), w = i.map((x) => l.get(x)).filter((x) => !!x);
|
|
3217
|
+
if (w.length > 0) {
|
|
3271
3218
|
v.push({
|
|
3272
3219
|
id: "everywhere:recent",
|
|
3273
3220
|
label: y("Recent"),
|
|
3274
|
-
items:
|
|
3221
|
+
items: w.slice(0, 5).map((x) => h(x))
|
|
3275
3222
|
});
|
|
3276
|
-
for (const x of
|
|
3277
|
-
|
|
3223
|
+
for (const x of w)
|
|
3224
|
+
_.add(x.id);
|
|
3278
3225
|
}
|
|
3279
|
-
const
|
|
3280
|
-
return
|
|
3226
|
+
const E = o.filter((x) => !_.has(x.id)).slice(0, 10);
|
|
3227
|
+
return E.length > 0 && v.push({
|
|
3281
3228
|
id: "everywhere:actions",
|
|
3282
3229
|
label: y("Actions"),
|
|
3283
|
-
items:
|
|
3284
|
-
}),
|
|
3230
|
+
items: E.map((x) => h(x))
|
|
3231
|
+
}), k.length > 0 && v.push({
|
|
3285
3232
|
id: "everywhere:settings",
|
|
3286
3233
|
label: y("Settings"),
|
|
3287
|
-
items:
|
|
3288
|
-
}),
|
|
3234
|
+
items: k.slice(0, 5)
|
|
3235
|
+
}), b.length > 0 && v.push({
|
|
3289
3236
|
id: "everywhere:database",
|
|
3290
3237
|
label: y("Database"),
|
|
3291
|
-
items:
|
|
3238
|
+
items: b.slice(0, 5)
|
|
3292
3239
|
}), v;
|
|
3293
3240
|
}
|
|
3294
|
-
const $ =
|
|
3295
|
-
cmd:
|
|
3296
|
-
score: Ot(
|
|
3297
|
-
})).filter((
|
|
3241
|
+
const $ = o.map((_) => ({
|
|
3242
|
+
cmd: _,
|
|
3243
|
+
score: Ot(_, s)
|
|
3244
|
+
})).filter((_) => _.score > 0).sort((_, w) => w.score - _.score).slice(0, 10).map((_) => h(_.cmd, _.score));
|
|
3298
3245
|
return $.length > 0 && v.push({
|
|
3299
3246
|
id: "everywhere:actions",
|
|
3300
3247
|
label: y("Actions"),
|
|
3301
3248
|
items: $
|
|
3302
|
-
}),
|
|
3249
|
+
}), k.length > 0 && v.push({
|
|
3303
3250
|
id: "everywhere:settings",
|
|
3304
3251
|
label: y("Settings"),
|
|
3305
|
-
items:
|
|
3306
|
-
}),
|
|
3252
|
+
items: k.slice(0, 6)
|
|
3253
|
+
}), b.length > 0 && v.push({
|
|
3307
3254
|
id: "everywhere:database",
|
|
3308
3255
|
label: y("Database"),
|
|
3309
|
-
items:
|
|
3256
|
+
items: b.slice(0, 10)
|
|
3310
3257
|
}), v;
|
|
3311
3258
|
}
|
|
3312
|
-
var Ml = /* @__PURE__ */ W("<div><div role=dialog aria-modal=true><div>"), Bt = /* @__PURE__ */ W("<div>"), zt = /* @__PURE__ */ W("<section><div></div><div>"),
|
|
3259
|
+
var Ml = /* @__PURE__ */ W("<div><div role=dialog aria-modal=true><div>"), Bt = /* @__PURE__ */ W("<div>"), zt = /* @__PURE__ */ W("<section><div></div><div>"), Je = /* @__PURE__ */ W("<span>"), Ct = /* @__PURE__ */ W("<span><span>"), Dl = /* @__PURE__ */ W("<span aria-hidden=true>"), Al = /* @__PURE__ */ W("<span style=display:inline-flex;align-items:center;gap:0.4rem>");
|
|
3313
3260
|
const We = "__palette_back__";
|
|
3314
3261
|
function El(e) {
|
|
3315
|
-
return e.kind === "command" && e.rawCommand ?
|
|
3262
|
+
return e.kind === "command" && e.rawCommand ? Ya(e.rawCommand) : [e.title, e.description, e.detail].filter((t) => !!t).join(", ");
|
|
3316
3263
|
}
|
|
3317
|
-
function
|
|
3264
|
+
function $c(e) {
|
|
3318
3265
|
const t = gt(() => e.open, "command-palette", {
|
|
3319
3266
|
type: "modal",
|
|
3320
3267
|
document: () => e.host().document
|
|
3321
|
-
}), [
|
|
3268
|
+
}), [r, o] = Q(""), [i, a] = Q("everywhere"), [k, b] = Q(null), [s, l] = Q(null);
|
|
3322
3269
|
let h;
|
|
3323
3270
|
const v = ve(() => {
|
|
3324
3271
|
const d = /* @__PURE__ */ new Map();
|
|
@@ -3328,9 +3275,9 @@ function xc(e) {
|
|
|
3328
3275
|
}), $ = ve(() => {
|
|
3329
3276
|
var f;
|
|
3330
3277
|
if (s()) return null;
|
|
3331
|
-
const d =
|
|
3332
|
-
return ((f = e.prefixModes) == null ? void 0 : f.find((
|
|
3333
|
-
}),
|
|
3278
|
+
const d = r().toLowerCase();
|
|
3279
|
+
return ((f = e.prefixModes) == null ? void 0 : f.find((P) => d.startsWith(P.prefix))) ?? null;
|
|
3280
|
+
}), _ = ve(() => {
|
|
3334
3281
|
const d = s();
|
|
3335
3282
|
if (d) return d;
|
|
3336
3283
|
const f = $();
|
|
@@ -3338,50 +3285,50 @@ function xc(e) {
|
|
|
3338
3285
|
rootCommandId: `__prefix__:${f.prefix}`,
|
|
3339
3286
|
descriptor: f.build()
|
|
3340
3287
|
} : null;
|
|
3341
|
-
}),
|
|
3342
|
-
const d =
|
|
3288
|
+
}), w = ve(() => {
|
|
3289
|
+
const d = _();
|
|
3343
3290
|
if (!d) return [];
|
|
3344
|
-
const f = $(),
|
|
3345
|
-
return
|
|
3291
|
+
const f = $(), P = (f ? r().slice(f.prefix.length) : r()).trim().toLowerCase();
|
|
3292
|
+
return P ? d.descriptor.items.map((g) => ({
|
|
3346
3293
|
item: g,
|
|
3347
|
-
score:
|
|
3348
|
-
})).filter((g) => g.score > 0).sort((g,
|
|
3349
|
-
}),
|
|
3350
|
-
query:
|
|
3351
|
-
enabled: () => e.open && !
|
|
3352
|
-
}), x = ve(() => !e.open ||
|
|
3353
|
-
mode:
|
|
3354
|
-
query:
|
|
3294
|
+
score: Ka(g, P)
|
|
3295
|
+
})).filter((g) => g.score > 0).sort((g, L) => L.score - g.score).map((g) => g.item) : d.descriptor.items;
|
|
3296
|
+
}), E = An({
|
|
3297
|
+
query: r,
|
|
3298
|
+
enabled: () => e.open && !_() && (i() === "everywhere" || i() === "database")
|
|
3299
|
+
}), x = ve(() => !e.open || _() ? [] : i() !== "everywhere" && i() !== "settings" ? [] : En(r(), i() === "settings" ? 40 : 8)), q = ve(() => _() ? [] : Il({
|
|
3300
|
+
mode: i(),
|
|
3301
|
+
query: r(),
|
|
3355
3302
|
commands: e.commands,
|
|
3356
3303
|
recentCommandIds: e.recentCommandIds,
|
|
3357
3304
|
categoryOrder: e.categoryOrder,
|
|
3358
3305
|
settingsItems: x(),
|
|
3359
|
-
databaseItems:
|
|
3360
|
-
hasWorkspaceContext:
|
|
3306
|
+
databaseItems: E.items(),
|
|
3307
|
+
hasWorkspaceContext: E.hasWorkspaceContext()
|
|
3361
3308
|
})), Z = ve(() => {
|
|
3362
3309
|
const d = /* @__PURE__ */ new Map();
|
|
3363
|
-
for (const f of
|
|
3364
|
-
for (const
|
|
3365
|
-
d.set(
|
|
3310
|
+
for (const f of q())
|
|
3311
|
+
for (const P of f.items)
|
|
3312
|
+
d.set(P.id, P);
|
|
3366
3313
|
return d;
|
|
3367
|
-
}), A = ve(() => s() ? [We, ...
|
|
3314
|
+
}), A = ve(() => s() ? [We, ...w().map((d) => d.id)] : $() ? w().map((d) => d.id) : q().flatMap((d) => d.items.filter((f) => f.enabled).map((f) => f.id))), B = (d) => {
|
|
3368
3315
|
const f = A();
|
|
3369
3316
|
if (f.length === 0) return;
|
|
3370
|
-
const
|
|
3371
|
-
|
|
3317
|
+
const P = k(), g = f.findIndex((M) => M === P), T = ((g >= 0 ? g : 0) + d + f.length) % f.length;
|
|
3318
|
+
b(f[T] ?? null);
|
|
3372
3319
|
}, F = (d) => {
|
|
3373
|
-
const f = ["everywhere", "commands", "settings", "database"], g = (f.indexOf(
|
|
3374
|
-
|
|
3320
|
+
const f = ["everywhere", "commands", "settings", "database"], g = (f.indexOf(i()) + d + f.length) % f.length;
|
|
3321
|
+
a(f[g] ?? "everywhere");
|
|
3375
3322
|
}, j = (d) => {
|
|
3376
|
-
var
|
|
3323
|
+
var P;
|
|
3377
3324
|
if (!d.submenu) return;
|
|
3378
3325
|
const f = d.submenu();
|
|
3379
3326
|
l({
|
|
3380
3327
|
rootCommandId: d.id,
|
|
3381
3328
|
descriptor: f
|
|
3382
|
-
}),
|
|
3329
|
+
}), o(""), b(((P = f.items[0]) == null ? void 0 : P.id) ?? We), queueMicrotask(() => h == null ? void 0 : h.focus());
|
|
3383
3330
|
}, J = () => {
|
|
3384
|
-
l(null),
|
|
3331
|
+
l(null), o(""), b(null), queueMicrotask(() => h == null ? void 0 : h.focus());
|
|
3385
3332
|
}, re = (d) => {
|
|
3386
3333
|
if (d.enabled) {
|
|
3387
3334
|
if (d.submenu) {
|
|
@@ -3408,87 +3355,87 @@ function xc(e) {
|
|
|
3408
3355
|
$e(() => {
|
|
3409
3356
|
var f;
|
|
3410
3357
|
if (!e.open) {
|
|
3411
|
-
l(null),
|
|
3358
|
+
l(null), a("everywhere"), b(null);
|
|
3412
3359
|
return;
|
|
3413
3360
|
}
|
|
3414
|
-
|
|
3361
|
+
o(""), a("everywhere"), l(null);
|
|
3415
3362
|
const d = e.consumePendingPickerId();
|
|
3416
3363
|
if (d !== null) {
|
|
3417
|
-
const
|
|
3418
|
-
if (
|
|
3419
|
-
const g =
|
|
3364
|
+
const P = v().get(d);
|
|
3365
|
+
if (P && P.submenu) {
|
|
3366
|
+
const g = P.submenu();
|
|
3420
3367
|
l({
|
|
3421
|
-
rootCommandId:
|
|
3368
|
+
rootCommandId: P.id,
|
|
3422
3369
|
descriptor: g
|
|
3423
|
-
}),
|
|
3370
|
+
}), b(((f = g.items[0]) == null ? void 0 : f.id) ?? We);
|
|
3424
3371
|
}
|
|
3425
3372
|
}
|
|
3426
3373
|
queueMicrotask(() => h == null ? void 0 : h.focus());
|
|
3427
3374
|
}), $e(() => {
|
|
3428
3375
|
if (!e.open) return;
|
|
3429
|
-
const d = A(), f =
|
|
3376
|
+
const d = A(), f = k();
|
|
3430
3377
|
if (d.length === 0) {
|
|
3431
|
-
|
|
3378
|
+
b(null);
|
|
3432
3379
|
return;
|
|
3433
3380
|
}
|
|
3434
|
-
(!f || !d.includes(f)) &&
|
|
3381
|
+
(!f || !d.includes(f)) && b(d[0] ?? null);
|
|
3435
3382
|
}), $e(() => {
|
|
3436
3383
|
if (!e.open) return;
|
|
3437
|
-
const d =
|
|
3384
|
+
const d = k();
|
|
3438
3385
|
d && queueMicrotask(() => {
|
|
3439
|
-
const f = typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(d) : d.replace(/"/g, '\\"'),
|
|
3440
|
-
|
|
3386
|
+
const f = typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(d) : d.replace(/"/g, '\\"'), P = e.host().document.querySelector(`[data-cmd-entry-id="${f}"]`);
|
|
3387
|
+
P == null || P.scrollIntoView({
|
|
3441
3388
|
block: "nearest"
|
|
3442
3389
|
});
|
|
3443
3390
|
});
|
|
3444
3391
|
}), $e(() => {
|
|
3445
3392
|
if (!e.open) return;
|
|
3446
|
-
const d = (
|
|
3447
|
-
if (t.isTopmost() && !
|
|
3448
|
-
if (ye(
|
|
3449
|
-
if (
|
|
3393
|
+
const d = (P) => {
|
|
3394
|
+
if (t.isTopmost() && !P.defaultPrevented && !(P.target instanceof Element && P.target.closest('[role="tablist"]'))) {
|
|
3395
|
+
if (ye(P, "Escape")) {
|
|
3396
|
+
if (P.preventDefault(), s()) {
|
|
3450
3397
|
J();
|
|
3451
3398
|
return;
|
|
3452
3399
|
}
|
|
3453
3400
|
e.onClose();
|
|
3454
3401
|
return;
|
|
3455
3402
|
}
|
|
3456
|
-
if (ye(
|
|
3457
|
-
|
|
3403
|
+
if (ye(P, "Tab") && !_()) {
|
|
3404
|
+
P.preventDefault(), F(P.shiftKey ? -1 : 1);
|
|
3458
3405
|
return;
|
|
3459
3406
|
}
|
|
3460
|
-
if (ye(
|
|
3461
|
-
|
|
3407
|
+
if (ye(P, "ArrowDown")) {
|
|
3408
|
+
P.preventDefault(), B(1);
|
|
3462
3409
|
return;
|
|
3463
3410
|
}
|
|
3464
|
-
if (ye(
|
|
3465
|
-
|
|
3411
|
+
if (ye(P, "ArrowUp")) {
|
|
3412
|
+
P.preventDefault(), B(-1);
|
|
3466
3413
|
return;
|
|
3467
3414
|
}
|
|
3468
|
-
if (ye(
|
|
3469
|
-
const g =
|
|
3415
|
+
if (ye(P, "Enter")) {
|
|
3416
|
+
const g = k();
|
|
3470
3417
|
if (!g) return;
|
|
3471
|
-
if (
|
|
3418
|
+
if (P.preventDefault(), _()) {
|
|
3472
3419
|
if (g === We) {
|
|
3473
3420
|
J();
|
|
3474
3421
|
return;
|
|
3475
3422
|
}
|
|
3476
|
-
const
|
|
3477
|
-
|
|
3423
|
+
const M = w().find((O) => O.id === g);
|
|
3424
|
+
M && le(M);
|
|
3478
3425
|
return;
|
|
3479
3426
|
}
|
|
3480
|
-
const
|
|
3481
|
-
if (
|
|
3482
|
-
if (
|
|
3483
|
-
ee(
|
|
3427
|
+
const L = Z().get(g);
|
|
3428
|
+
if (L) {
|
|
3429
|
+
if (P.altKey && L.kind === "command" && L.rawCommand) {
|
|
3430
|
+
ee(L.rawCommand);
|
|
3484
3431
|
return;
|
|
3485
3432
|
}
|
|
3486
|
-
fe(
|
|
3433
|
+
fe(L);
|
|
3487
3434
|
return;
|
|
3488
3435
|
}
|
|
3489
3436
|
const T = v().get(g);
|
|
3490
3437
|
if (T) {
|
|
3491
|
-
if (
|
|
3438
|
+
if (P.altKey) {
|
|
3492
3439
|
ee(T);
|
|
3493
3440
|
return;
|
|
3494
3441
|
}
|
|
@@ -3497,109 +3444,109 @@ function xc(e) {
|
|
|
3497
3444
|
}
|
|
3498
3445
|
}
|
|
3499
3446
|
}, f = e.host();
|
|
3500
|
-
f.addEventListener("keydown", d),
|
|
3447
|
+
f.addEventListener("keydown", d), me(() => {
|
|
3501
3448
|
f.removeEventListener("keydown", d);
|
|
3502
3449
|
});
|
|
3503
3450
|
});
|
|
3504
|
-
const
|
|
3505
|
-
if (
|
|
3451
|
+
const Le = (d) => d.items.length === 0 && d.emptyText !== void 0 ? d.emptyText : y("No matches."), S = (d) => {
|
|
3452
|
+
if (i() === "everywhere") {
|
|
3506
3453
|
if (d.startsWith("/") || d.startsWith(">")) {
|
|
3507
|
-
|
|
3454
|
+
a("commands"), o(d.slice(1));
|
|
3508
3455
|
return;
|
|
3509
3456
|
}
|
|
3510
3457
|
if (d.startsWith("#")) {
|
|
3511
|
-
|
|
3458
|
+
a("settings"), o(d.slice(1));
|
|
3512
3459
|
return;
|
|
3513
3460
|
}
|
|
3514
3461
|
if (d.startsWith("@")) {
|
|
3515
|
-
|
|
3462
|
+
a("database"), o(d.slice(1));
|
|
3516
3463
|
return;
|
|
3517
3464
|
}
|
|
3518
3465
|
}
|
|
3519
|
-
|
|
3466
|
+
o(d);
|
|
3520
3467
|
}, z = () => {
|
|
3521
3468
|
const d = s();
|
|
3522
|
-
return d ? d.descriptor.title :
|
|
3469
|
+
return d ? d.descriptor.title : i() === "everywhere" ? y("Search everywhere...") : i() === "commands" ? y("Search commands...") : i() === "settings" ? y("Search settings...") : i() === "database" ? y("Search database objects...") : y("Search commands...");
|
|
3523
3470
|
}, C = In({
|
|
3524
3471
|
open: () => e.open,
|
|
3525
3472
|
onDismiss: () => e.onClose(),
|
|
3526
3473
|
ownerDocument: () => e.host().document
|
|
3527
3474
|
});
|
|
3528
|
-
return
|
|
3475
|
+
return n(D, {
|
|
3529
3476
|
get when() {
|
|
3530
3477
|
return e.open;
|
|
3531
3478
|
},
|
|
3532
3479
|
get children() {
|
|
3533
|
-
return
|
|
3480
|
+
return n(vt, {
|
|
3534
3481
|
get mount() {
|
|
3535
3482
|
return e.host().document.body;
|
|
3536
3483
|
},
|
|
3537
3484
|
get children() {
|
|
3538
|
-
var d = Ml(), f = d.firstChild,
|
|
3539
|
-
|
|
3485
|
+
var d = Ml(), f = d.firstChild, P = f.firstChild;
|
|
3486
|
+
pe(d, "keydown", C.handleKeyDown, !0), pe(d, "mousedown", e.onClose, !0), f.$$mousedown = (L) => L.stopPropagation();
|
|
3540
3487
|
var g = C.captureDialog;
|
|
3541
|
-
return typeof g == "function" ? xe(g, f) : C.captureDialog = f, c(
|
|
3542
|
-
ref: (
|
|
3543
|
-
h =
|
|
3488
|
+
return typeof g == "function" ? xe(g, f) : C.captureDialog = f, c(P, n($t, {
|
|
3489
|
+
ref: (L) => {
|
|
3490
|
+
h = L;
|
|
3544
3491
|
},
|
|
3545
3492
|
get class() {
|
|
3546
3493
|
return U.searchInput;
|
|
3547
3494
|
},
|
|
3548
3495
|
type: "text",
|
|
3549
3496
|
get value() {
|
|
3550
|
-
return
|
|
3497
|
+
return r();
|
|
3551
3498
|
},
|
|
3552
3499
|
get placeholder() {
|
|
3553
3500
|
return z();
|
|
3554
3501
|
},
|
|
3555
|
-
onInput: (
|
|
3556
|
-
const T =
|
|
3557
|
-
|
|
3502
|
+
onInput: (L) => {
|
|
3503
|
+
const T = L.currentTarget ?? L.target;
|
|
3504
|
+
S((T == null ? void 0 : T.value) ?? "");
|
|
3558
3505
|
}
|
|
3559
|
-
})), c(f,
|
|
3506
|
+
})), c(f, n(D, {
|
|
3560
3507
|
get when() {
|
|
3561
|
-
return !
|
|
3508
|
+
return !_();
|
|
3562
3509
|
},
|
|
3563
3510
|
get children() {
|
|
3564
|
-
return
|
|
3565
|
-
activeMode:
|
|
3566
|
-
onModeChange:
|
|
3511
|
+
return n(Ll, {
|
|
3512
|
+
activeMode: i,
|
|
3513
|
+
onModeChange: a,
|
|
3567
3514
|
get hasWorkspaceContext() {
|
|
3568
|
-
return
|
|
3515
|
+
return E.hasWorkspaceContext;
|
|
3569
3516
|
}
|
|
3570
3517
|
});
|
|
3571
3518
|
}
|
|
3572
|
-
}), null), c(f,
|
|
3519
|
+
}), null), c(f, n(Be, {
|
|
3573
3520
|
get viewportClass() {
|
|
3574
3521
|
return U.results;
|
|
3575
3522
|
},
|
|
3576
3523
|
get children() {
|
|
3577
|
-
return
|
|
3524
|
+
return n(D, {
|
|
3578
3525
|
get when() {
|
|
3579
|
-
return
|
|
3526
|
+
return _();
|
|
3580
3527
|
},
|
|
3581
3528
|
get fallback() {
|
|
3582
|
-
return
|
|
3529
|
+
return n(D, {
|
|
3583
3530
|
get when() {
|
|
3584
|
-
return
|
|
3531
|
+
return q().length > 0;
|
|
3585
3532
|
},
|
|
3586
3533
|
get fallback() {
|
|
3587
|
-
return
|
|
3534
|
+
return n(D, {
|
|
3588
3535
|
get when() {
|
|
3589
|
-
return
|
|
3536
|
+
return i() === "database";
|
|
3590
3537
|
},
|
|
3591
3538
|
get fallback() {
|
|
3592
|
-
return
|
|
3539
|
+
return n(D, {
|
|
3593
3540
|
get when() {
|
|
3594
|
-
return
|
|
3541
|
+
return i() === "settings";
|
|
3595
3542
|
},
|
|
3596
3543
|
get fallback() {
|
|
3597
|
-
return
|
|
3544
|
+
return n(D, {
|
|
3598
3545
|
get when() {
|
|
3599
|
-
return
|
|
3546
|
+
return i() === "commands";
|
|
3600
3547
|
},
|
|
3601
3548
|
get fallback() {
|
|
3602
|
-
return
|
|
3549
|
+
return n(Ne, {
|
|
3603
3550
|
size: "sm",
|
|
3604
3551
|
get title() {
|
|
3605
3552
|
return y("No matches found.");
|
|
@@ -3607,7 +3554,7 @@ function xc(e) {
|
|
|
3607
3554
|
});
|
|
3608
3555
|
},
|
|
3609
3556
|
get children() {
|
|
3610
|
-
return
|
|
3557
|
+
return n(Ne, {
|
|
3611
3558
|
size: "sm",
|
|
3612
3559
|
get title() {
|
|
3613
3560
|
return y("No commands found.");
|
|
@@ -3617,7 +3564,7 @@ function xc(e) {
|
|
|
3617
3564
|
});
|
|
3618
3565
|
},
|
|
3619
3566
|
get children() {
|
|
3620
|
-
return
|
|
3567
|
+
return n(Ne, {
|
|
3621
3568
|
size: "sm",
|
|
3622
3569
|
get title() {
|
|
3623
3570
|
return y("No settings found.");
|
|
@@ -3627,12 +3574,12 @@ function xc(e) {
|
|
|
3627
3574
|
});
|
|
3628
3575
|
},
|
|
3629
3576
|
get children() {
|
|
3630
|
-
return
|
|
3577
|
+
return n(D, {
|
|
3631
3578
|
get when() {
|
|
3632
|
-
return
|
|
3579
|
+
return E.hasWorkspaceContext();
|
|
3633
3580
|
},
|
|
3634
3581
|
get fallback() {
|
|
3635
|
-
return
|
|
3582
|
+
return n(Ne, {
|
|
3636
3583
|
size: "sm",
|
|
3637
3584
|
get title() {
|
|
3638
3585
|
return y("No database connected.");
|
|
@@ -3640,12 +3587,12 @@ function xc(e) {
|
|
|
3640
3587
|
});
|
|
3641
3588
|
},
|
|
3642
3589
|
get children() {
|
|
3643
|
-
return
|
|
3590
|
+
return n(D, {
|
|
3644
3591
|
get when() {
|
|
3645
|
-
return
|
|
3592
|
+
return E.loading();
|
|
3646
3593
|
},
|
|
3647
3594
|
get fallback() {
|
|
3648
|
-
return
|
|
3595
|
+
return n(Ne, {
|
|
3649
3596
|
size: "sm",
|
|
3650
3597
|
get title() {
|
|
3651
3598
|
return y("No database objects found.");
|
|
@@ -3653,8 +3600,8 @@ function xc(e) {
|
|
|
3653
3600
|
});
|
|
3654
3601
|
},
|
|
3655
3602
|
get children() {
|
|
3656
|
-
var
|
|
3657
|
-
return c(
|
|
3603
|
+
var L = Bt();
|
|
3604
|
+
return c(L, () => y("Loading objects...")), I(() => u(L, Ie.statusRow)), L;
|
|
3658
3605
|
}
|
|
3659
3606
|
});
|
|
3660
3607
|
}
|
|
@@ -3663,22 +3610,22 @@ function xc(e) {
|
|
|
3663
3610
|
});
|
|
3664
3611
|
},
|
|
3665
3612
|
get children() {
|
|
3666
|
-
return
|
|
3613
|
+
return n(Ae, {
|
|
3667
3614
|
get each() {
|
|
3668
|
-
return
|
|
3615
|
+
return q();
|
|
3669
3616
|
},
|
|
3670
|
-
children: (
|
|
3671
|
-
var T = zt(),
|
|
3672
|
-
return c(
|
|
3617
|
+
children: (L) => (() => {
|
|
3618
|
+
var T = zt(), M = T.firstChild, O = M.nextSibling;
|
|
3619
|
+
return c(M, () => L.label), c(O, n(Ae, {
|
|
3673
3620
|
get each() {
|
|
3674
|
-
return
|
|
3621
|
+
return L.items;
|
|
3675
3622
|
},
|
|
3676
3623
|
children: (m) => (() => {
|
|
3677
3624
|
var R = Bt();
|
|
3678
|
-
return c(R,
|
|
3625
|
+
return c(R, n(qe, {
|
|
3679
3626
|
type: "button",
|
|
3680
3627
|
get class() {
|
|
3681
|
-
return `${U.commandItem} ${
|
|
3628
|
+
return `${U.commandItem} ${k() === m.id ? U.commandItemActive : ""}`;
|
|
3682
3629
|
},
|
|
3683
3630
|
get "attr:data-cmd-entry-id"() {
|
|
3684
3631
|
return m.id;
|
|
@@ -3687,7 +3634,7 @@ function xc(e) {
|
|
|
3687
3634
|
return El(m);
|
|
3688
3635
|
},
|
|
3689
3636
|
onMouseEnter: () => {
|
|
3690
|
-
m.enabled &&
|
|
3637
|
+
m.enabled && b(m.id);
|
|
3691
3638
|
},
|
|
3692
3639
|
onClick: () => fe(m),
|
|
3693
3640
|
get disabled() {
|
|
@@ -3695,57 +3642,57 @@ function xc(e) {
|
|
|
3695
3642
|
},
|
|
3696
3643
|
get children() {
|
|
3697
3644
|
return [(() => {
|
|
3698
|
-
var
|
|
3699
|
-
return c(N, () => m.title), c(
|
|
3645
|
+
var V = Ct(), N = V.firstChild;
|
|
3646
|
+
return c(N, () => m.title), c(V, n(D, {
|
|
3700
3647
|
get when() {
|
|
3701
3648
|
return m.description;
|
|
3702
3649
|
},
|
|
3703
3650
|
get children() {
|
|
3704
|
-
var oe =
|
|
3651
|
+
var oe = Je();
|
|
3705
3652
|
return c(oe, () => m.description), I(() => u(oe, U.commandDescription)), oe;
|
|
3706
3653
|
}
|
|
3707
3654
|
}), null), I((oe) => {
|
|
3708
|
-
var Ce = U.commandMain,
|
|
3709
|
-
return Ce !== oe.e && u(
|
|
3655
|
+
var Ce = U.commandMain, p = U.commandTitle;
|
|
3656
|
+
return Ce !== oe.e && u(V, oe.e = Ce), p !== oe.t && u(N, oe.t = p), oe;
|
|
3710
3657
|
}, {
|
|
3711
3658
|
e: void 0,
|
|
3712
3659
|
t: void 0
|
|
3713
|
-
}),
|
|
3660
|
+
}), V;
|
|
3714
3661
|
})(), (() => {
|
|
3715
|
-
var
|
|
3716
|
-
return c(
|
|
3662
|
+
var V = Al();
|
|
3663
|
+
return c(V, n(D, {
|
|
3717
3664
|
get when() {
|
|
3718
3665
|
return m.kind === "setting";
|
|
3719
3666
|
},
|
|
3720
3667
|
get children() {
|
|
3721
|
-
var N =
|
|
3668
|
+
var N = Je();
|
|
3722
3669
|
return c(N, () => y("Setting")), I(() => u(N, `${Ie.badge} ${Ie.badgeSetting}`)), N;
|
|
3723
3670
|
}
|
|
3724
|
-
}), null), c(
|
|
3671
|
+
}), null), c(V, n(D, {
|
|
3725
3672
|
get when() {
|
|
3726
3673
|
return m.kind === "database-object";
|
|
3727
3674
|
},
|
|
3728
3675
|
get children() {
|
|
3729
|
-
var N =
|
|
3676
|
+
var N = Je();
|
|
3730
3677
|
return c(N, () => m.objectType || y("Database")), I(() => u(N, `${Ie.badge} ${Ie.badgeDb}`)), N;
|
|
3731
3678
|
}
|
|
3732
|
-
}), null), c(
|
|
3679
|
+
}), null), c(V, n(D, {
|
|
3733
3680
|
get when() {
|
|
3734
3681
|
return m.shortcut;
|
|
3735
3682
|
},
|
|
3736
3683
|
get children() {
|
|
3737
|
-
var N =
|
|
3684
|
+
var N = Dl();
|
|
3738
3685
|
return c(N, () => m.shortcut), I(() => u(N, U.commandShortcut)), N;
|
|
3739
3686
|
}
|
|
3740
|
-
}), null),
|
|
3687
|
+
}), null), V;
|
|
3741
3688
|
})()];
|
|
3742
3689
|
}
|
|
3743
|
-
}), null), c(R,
|
|
3690
|
+
}), null), c(R, n(D, {
|
|
3744
3691
|
get when() {
|
|
3745
|
-
return
|
|
3692
|
+
return ue(() => !!(m.kind === "command" && m.rawCommand))() && e.onConfigureKeybinding;
|
|
3746
3693
|
},
|
|
3747
3694
|
get children() {
|
|
3748
|
-
return
|
|
3695
|
+
return n(he, {
|
|
3749
3696
|
get class() {
|
|
3750
3697
|
return U.configureBtn;
|
|
3751
3698
|
},
|
|
@@ -3759,21 +3706,21 @@ function xc(e) {
|
|
|
3759
3706
|
get title() {
|
|
3760
3707
|
return y("Configure Keybinding");
|
|
3761
3708
|
},
|
|
3762
|
-
onClick: (
|
|
3763
|
-
|
|
3709
|
+
onClick: (V) => {
|
|
3710
|
+
V.stopPropagation(), m.rawCommand && ee(m.rawCommand);
|
|
3764
3711
|
},
|
|
3765
3712
|
get leadingIcon() {
|
|
3766
|
-
return
|
|
3713
|
+
return n(yn, {
|
|
3767
3714
|
"aria-hidden": "true"
|
|
3768
3715
|
});
|
|
3769
3716
|
}
|
|
3770
3717
|
});
|
|
3771
3718
|
}
|
|
3772
|
-
}), null), I(() => u(R, `${U.commandRow} ${
|
|
3719
|
+
}), null), I(() => u(R, `${U.commandRow} ${k() === m.id ? U.commandRowActive : ""}`)), R;
|
|
3773
3720
|
})()
|
|
3774
3721
|
})), I((m) => {
|
|
3775
|
-
var R = U.section,
|
|
3776
|
-
return R !== m.e && u(T, m.e = R),
|
|
3722
|
+
var R = U.section, V = U.sectionTitle, N = U.commandList;
|
|
3723
|
+
return R !== m.e && u(T, m.e = R), V !== m.t && u(M, m.t = V), N !== m.a && u(O, m.a = N), m;
|
|
3777
3724
|
}, {
|
|
3778
3725
|
e: void 0,
|
|
3779
3726
|
t: void 0,
|
|
@@ -3784,26 +3731,26 @@ function xc(e) {
|
|
|
3784
3731
|
}
|
|
3785
3732
|
});
|
|
3786
3733
|
},
|
|
3787
|
-
children: (
|
|
3788
|
-
var T = zt(),
|
|
3789
|
-
return c(
|
|
3734
|
+
children: (L) => (() => {
|
|
3735
|
+
var T = zt(), M = T.firstChild, O = M.nextSibling;
|
|
3736
|
+
return c(M, () => L().descriptor.title), c(O, n(D, {
|
|
3790
3737
|
get when() {
|
|
3791
3738
|
return s();
|
|
3792
3739
|
},
|
|
3793
3740
|
get children() {
|
|
3794
|
-
return
|
|
3741
|
+
return n(qe, {
|
|
3795
3742
|
type: "button",
|
|
3796
3743
|
get class() {
|
|
3797
|
-
return `${U.commandItem} ${
|
|
3744
|
+
return `${U.commandItem} ${k() === We ? U.commandItemActive : ""}`;
|
|
3798
3745
|
},
|
|
3799
3746
|
"attr:data-cmd-entry-id": We,
|
|
3800
|
-
onMouseEnter: () =>
|
|
3747
|
+
onMouseEnter: () => b(We),
|
|
3801
3748
|
onClick: () => J(),
|
|
3802
3749
|
get children() {
|
|
3803
3750
|
var m = Ct(), R = m.firstChild;
|
|
3804
|
-
return c(R, () => y("← Back")), I((
|
|
3751
|
+
return c(R, () => y("← Back")), I((V) => {
|
|
3805
3752
|
var N = U.commandMain, oe = U.commandTitle;
|
|
3806
|
-
return N !==
|
|
3753
|
+
return N !== V.e && u(m, V.e = N), oe !== V.t && u(R, V.t = oe), V;
|
|
3807
3754
|
}, {
|
|
3808
3755
|
e: void 0,
|
|
3809
3756
|
t: void 0
|
|
@@ -3811,57 +3758,57 @@ function xc(e) {
|
|
|
3811
3758
|
}
|
|
3812
3759
|
});
|
|
3813
3760
|
}
|
|
3814
|
-
}), null), c(O,
|
|
3761
|
+
}), null), c(O, n(D, {
|
|
3815
3762
|
get when() {
|
|
3816
|
-
return
|
|
3763
|
+
return w().length > 0;
|
|
3817
3764
|
},
|
|
3818
3765
|
get fallback() {
|
|
3819
|
-
return
|
|
3766
|
+
return n(Ne, {
|
|
3820
3767
|
size: "sm",
|
|
3821
3768
|
get title() {
|
|
3822
|
-
return
|
|
3769
|
+
return Le(L().descriptor);
|
|
3823
3770
|
}
|
|
3824
3771
|
});
|
|
3825
3772
|
},
|
|
3826
3773
|
get children() {
|
|
3827
|
-
return
|
|
3774
|
+
return n(Ae, {
|
|
3828
3775
|
get each() {
|
|
3829
|
-
return
|
|
3776
|
+
return w();
|
|
3830
3777
|
},
|
|
3831
|
-
children: (m) =>
|
|
3778
|
+
children: (m) => n(qe, {
|
|
3832
3779
|
type: "button",
|
|
3833
3780
|
get class() {
|
|
3834
|
-
return `${U.commandItem} ${
|
|
3781
|
+
return `${U.commandItem} ${k() === m.id ? U.commandItemActive : ""}`;
|
|
3835
3782
|
},
|
|
3836
3783
|
get "attr:data-cmd-entry-id"() {
|
|
3837
3784
|
return m.id;
|
|
3838
3785
|
},
|
|
3839
|
-
onMouseEnter: () =>
|
|
3786
|
+
onMouseEnter: () => b(m.id),
|
|
3840
3787
|
onClick: () => le(m),
|
|
3841
3788
|
get children() {
|
|
3842
3789
|
return [(() => {
|
|
3843
|
-
var R = Ct(),
|
|
3844
|
-
return c(
|
|
3790
|
+
var R = Ct(), V = R.firstChild;
|
|
3791
|
+
return c(V, () => m.title), c(R, n(D, {
|
|
3845
3792
|
get when() {
|
|
3846
3793
|
return m.description;
|
|
3847
3794
|
},
|
|
3848
3795
|
get children() {
|
|
3849
|
-
var N =
|
|
3796
|
+
var N = Je();
|
|
3850
3797
|
return c(N, () => m.description), I(() => u(N, U.commandDescription)), N;
|
|
3851
3798
|
}
|
|
3852
3799
|
}), null), I((N) => {
|
|
3853
3800
|
var oe = U.commandMain, Ce = U.commandTitle;
|
|
3854
|
-
return oe !== N.e && u(R, N.e = oe), Ce !== N.t && u(
|
|
3801
|
+
return oe !== N.e && u(R, N.e = oe), Ce !== N.t && u(V, N.t = Ce), N;
|
|
3855
3802
|
}, {
|
|
3856
3803
|
e: void 0,
|
|
3857
3804
|
t: void 0
|
|
3858
3805
|
}), R;
|
|
3859
|
-
})(),
|
|
3806
|
+
})(), n(D, {
|
|
3860
3807
|
get when() {
|
|
3861
3808
|
return m.isCurrent;
|
|
3862
3809
|
},
|
|
3863
3810
|
get children() {
|
|
3864
|
-
var R =
|
|
3811
|
+
var R = Je();
|
|
3865
3812
|
return c(R, () => y("Current")), I(() => u(R, U.commandShortcut)), R;
|
|
3866
3813
|
}
|
|
3867
3814
|
})];
|
|
@@ -3870,8 +3817,8 @@ function xc(e) {
|
|
|
3870
3817
|
});
|
|
3871
3818
|
}
|
|
3872
3819
|
}), null), I((m) => {
|
|
3873
|
-
var R = U.section,
|
|
3874
|
-
return R !== m.e && u(T, m.e = R),
|
|
3820
|
+
var R = U.section, V = U.sectionTitle, N = U.commandList;
|
|
3821
|
+
return R !== m.e && u(T, m.e = R), V !== m.t && u(M, m.t = V), N !== m.a && u(O, m.a = N), m;
|
|
3875
3822
|
}, {
|
|
3876
3823
|
e: void 0,
|
|
3877
3824
|
t: void 0,
|
|
@@ -3880,9 +3827,9 @@ function xc(e) {
|
|
|
3880
3827
|
})()
|
|
3881
3828
|
});
|
|
3882
3829
|
}
|
|
3883
|
-
}), null), I((
|
|
3884
|
-
var T = `${U.backdrop} ${e.style === "compact" ? U.backdropCompact : U.backdropClassic}`,
|
|
3885
|
-
return T !==
|
|
3830
|
+
}), null), I((L) => {
|
|
3831
|
+
var T = `${U.backdrop} ${e.style === "compact" ? U.backdropCompact : U.backdropClassic}`, M = `${U.panel} ${e.style === "compact" ? U.panelCompact : U.panelClassic}`, O = y("Command Palette"), m = U.searchRow;
|
|
3832
|
+
return T !== L.e && u(d, L.e = T), M !== L.t && u(f, L.t = M), O !== L.a && Y(f, "aria-label", L.a = O), m !== L.o && u(P, L.o = m), L;
|
|
3886
3833
|
}, {
|
|
3887
3834
|
e: void 0,
|
|
3888
3835
|
t: void 0,
|
|
@@ -3894,57 +3841,57 @@ function xc(e) {
|
|
|
3894
3841
|
}
|
|
3895
3842
|
});
|
|
3896
3843
|
}
|
|
3897
|
-
|
|
3844
|
+
Ee(["mousedown", "keydown"]);
|
|
3898
3845
|
export {
|
|
3899
3846
|
ot as A,
|
|
3900
|
-
|
|
3901
|
-
|
|
3847
|
+
lc as B,
|
|
3848
|
+
$c as C,
|
|
3902
3849
|
Er as D,
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3850
|
+
ac as E,
|
|
3851
|
+
yc as F,
|
|
3852
|
+
sa as G,
|
|
3853
|
+
ur as H,
|
|
3907
3854
|
Yt as I,
|
|
3908
|
-
|
|
3855
|
+
or as J,
|
|
3909
3856
|
en as K,
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3857
|
+
ir as L,
|
|
3858
|
+
fc as M,
|
|
3859
|
+
$a as N,
|
|
3913
3860
|
Tt as O,
|
|
3914
|
-
|
|
3915
|
-
|
|
3861
|
+
mc as P,
|
|
3862
|
+
_c as Q,
|
|
3916
3863
|
mt as R,
|
|
3917
3864
|
_t as S,
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3865
|
+
oc as T,
|
|
3866
|
+
sc as U,
|
|
3867
|
+
cc as V,
|
|
3868
|
+
Wi as W,
|
|
3869
|
+
ar as X,
|
|
3870
|
+
nr as Y,
|
|
3871
|
+
ic as a,
|
|
3925
3872
|
Rt as b,
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3873
|
+
uc as c,
|
|
3874
|
+
vc as d,
|
|
3875
|
+
bc as e,
|
|
3876
|
+
hc as f,
|
|
3877
|
+
mi as g,
|
|
3878
|
+
di as h,
|
|
3879
|
+
gc as i,
|
|
3880
|
+
ui as j,
|
|
3881
|
+
vi as k,
|
|
3882
|
+
sr as l,
|
|
3883
|
+
lr as m,
|
|
3884
|
+
cr as n,
|
|
3938
3885
|
bt as o,
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3886
|
+
er as p,
|
|
3887
|
+
xa as q,
|
|
3888
|
+
Sa as r,
|
|
3889
|
+
ya as s,
|
|
3890
|
+
wc as t,
|
|
3891
|
+
dc as u,
|
|
3892
|
+
mr as v,
|
|
3893
|
+
kc as w,
|
|
3894
|
+
Cc as x,
|
|
3895
|
+
Tr as y,
|
|
3949
3896
|
rt as z
|
|
3950
3897
|
};
|