@vokril/ui-solid 0.28.0 → 0.31.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 +81 -0
- package/README.md +48 -4
- package/dist/{AttributeGrid-eND8YDby.cjs → AttributeGrid-Ch1k9v5j.cjs} +1 -1
- package/dist/{AttributeGrid-CASILa4u.js → AttributeGrid-DqFd4gBm.js} +3 -3
- package/dist/Button-4meERfnv.js +300 -0
- package/dist/Button-OyZHrl-t.cjs +1 -0
- package/dist/CommandPalette-CxYZUJtN.cjs +2 -0
- package/dist/{CommandPalette-Cj618AOz.js → CommandPalette-DwOp8y1-.js} +1467 -1466
- package/dist/{CopyButton-B5gS2ft3.cjs → CopyButton-16QNPgz6.cjs} +1 -1
- package/dist/{CopyButton-g-WSiBDZ.js → CopyButton-BVS49lMS.js} +1 -1
- package/dist/{DateRangePicker-CJD9ADgB.js → DateRangePicker-8QvydugY.js} +4 -4
- package/dist/{DateRangePicker-Frc0HVxp.cjs → DateRangePicker-DI-06xWY.cjs} +1 -1
- package/dist/{GuidedTour-B6q7lYhn.cjs → GuidedTour-DUQwdW8n.cjs} +1 -1
- package/dist/{GuidedTour-CFCvRJN4.js → GuidedTour-DXMmHn0o.js} +2 -2
- package/dist/{HostPortal-CXGUUhP8.js → HostPortal-Ba3MD9CG.js} +1 -1
- package/dist/HostPortal-CpWsArs6.cjs +1 -0
- package/dist/{IconPicker-DYqNi5ud.js → IconPicker-D1G8HK92.js} +3 -3
- package/dist/{IconPicker-CIbJb1ei.cjs → IconPicker-Q-ZDtNkd.cjs} +1 -1
- package/dist/Input-Brp5EDhg.cjs +1 -0
- package/dist/Input-CZi8KEfm.js +374 -0
- package/dist/Modal-CBi7Wd2V.cjs +1 -0
- package/dist/Modal-iyY1HUtr.js +588 -0
- package/dist/{PageSkeleton-BPbb28-H.cjs → PageSkeleton-B_-4fz1q.cjs} +1 -1
- package/dist/{PageSkeleton-CLnJO6uD.js → PageSkeleton-zNyjLPlk.js} +3 -3
- package/dist/{Popover-Cttb6NYT.js → Popover-DVi179wu.js} +4 -3
- package/dist/Popover-DXrczbt9.cjs +1 -0
- package/dist/{SearchableSelect-BvCm4enQ.js → SearchableSelect-DtHbWJhR.js} +34 -33
- package/dist/SearchableSelect-yLVqCGFo.cjs +1 -0
- package/dist/StatusBarNotificationBell-DQs5g1K6.cjs +50 -0
- package/dist/{StatusBarNotificationBell-yryWdwyX.js → StatusBarNotificationBell-ZTEhZFmJ.js} +4980 -4678
- package/dist/{Stepper-D9i1Xclm.js → Stepper-CyRgzWlR.js} +1 -1
- package/dist/{Stepper-Ci5JpLbS.cjs → Stepper-u2ZsE5oP.cjs} +1 -1
- package/dist/{Textarea-CeAGf08O.cjs → Textarea-DASNQNoi.cjs} +1 -1
- package/dist/{Textarea-B5QqqKnI.js → Textarea-szHXQahi.js} +1 -1
- package/dist/{TimeSeriesChart-DOwi2lJs.js → TimeSeriesChart-D7lIqolp.js} +1 -1
- package/dist/{TimeSeriesChart-huvheefm.cjs → TimeSeriesChart-DGzM9B--.cjs} +1 -1
- package/dist/{ToggleButton-CFM8P3JY.js → ToggleButton-B22PsCqo.js} +61 -60
- package/dist/ToggleButton-DWslrIBN.cjs +1 -0
- package/dist/_internal/contract/notification.d.cts +13 -3
- package/dist/_internal/contract/notification.d.ts +13 -3
- package/dist/_internal/contract/notificationCatalog.d.cts +2 -0
- package/dist/_internal/contract/notificationCatalog.d.ts +2 -0
- package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -8
- package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -8
- package/dist/anchoredLayout-CBjQ1etD.cjs +1 -0
- package/dist/anchoredLayout-E0mqCWxk.js +233 -0
- package/dist/appThemeDerivation-BylmT80v.cjs +1 -0
- package/dist/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation-DBAOkGl7.js} +260 -231
- package/dist/base.css +2 -2
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/context/DesktopContextMenuContext.d.cts +8 -1
- package/dist/context/DesktopContextMenuContext.d.ts +8 -1
- package/dist/createDialogShellFocus-CQ0VNC2g.cjs +1 -0
- package/dist/{createDialogShellFocus-B4piXDU4.js → createDialogShellFocus-DbiQmLgb.js} +9 -9
- package/dist/createResizableSidebar-COlpGQ7H.cjs +1 -0
- package/dist/createResizableSidebar-cmCKTIg_.js +504 -0
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +3 -3
- package/dist/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +3 -3
- package/dist/forms/Input.d.cts +20 -0
- package/dist/forms/Input.d.ts +20 -0
- package/dist/forms/InputMessage.d.cts +19 -0
- package/dist/forms/InputMessage.d.ts +19 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +9 -9
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +516 -509
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/layout/resizeCarry.d.cts +17 -0
- package/dist/layout/resizeCarry.d.ts +17 -0
- package/dist/mainRealmDom-B215swW-.js +166 -0
- package/dist/mainRealmDom-BYGSE-fo.cjs +1 -0
- package/dist/nativeTitleHold-A9jUISgQ.js +170 -0
- package/dist/nativeTitleHold-B7Ou-W9b.cjs +1 -0
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notifications/NotificationItem.d.cts +12 -3
- package/dist/notifications/NotificationItem.d.ts +12 -3
- package/dist/notifications/NotificationsCenter.d.cts +18 -0
- package/dist/notifications/NotificationsCenter.d.ts +18 -0
- package/dist/notifications/RunningProgressCards.d.cts +3 -0
- package/dist/notifications/RunningProgressCards.d.ts +3 -0
- package/dist/notifications/StatusBarNotificationBell.d.cts +18 -6
- package/dist/notifications/StatusBarNotificationBell.d.ts +18 -6
- package/dist/notifications/dismissableToastIds.d.cts +2 -1
- package/dist/notifications/dismissableToastIds.d.ts +2 -1
- package/dist/notifications/fireNotification.d.cts +35 -16
- package/dist/notifications/fireNotification.d.ts +35 -16
- 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 +56 -52
- package/dist/notifications/nativeEngine.d.cts +54 -16
- package/dist/notifications/nativeEngine.d.ts +54 -16
- package/dist/notifications/notificationCardServices.d.cts +2 -1
- package/dist/notifications/notificationCardServices.d.ts +2 -1
- package/dist/notifications/notificationCommands.d.cts +3 -3
- package/dist/notifications/notificationCommands.d.ts +3 -3
- package/dist/notifications/notificationEntryList.d.cts +91 -0
- package/dist/notifications/notificationEntryList.d.ts +91 -0
- package/dist/notifications/notificationService.d.cts +33 -3
- package/dist/notifications/notificationService.d.ts +33 -3
- package/dist/notifications/toast.d.cts +3 -0
- package/dist/notifications/toast.d.ts +3 -0
- package/dist/notifications/toastCorner.d.cts +8 -0
- package/dist/notifications/toastCorner.d.ts +8 -0
- package/dist/notifications/toastFilterPolicy.d.cts +33 -1
- package/dist/notifications/toastFilterPolicy.d.ts +33 -1
- package/dist/overlay/Modal.d.cts +6 -0
- package/dist/overlay/Modal.d.ts +6 -0
- package/dist/overlay/backgroundInert.d.cts +6 -2
- package/dist/overlay/backgroundInert.d.ts +6 -2
- package/dist/overlay/command-palette/CommandPalette.d.cts +12 -0
- package/dist/overlay/command-palette/CommandPalette.d.ts +12 -0
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +70 -68
- package/dist/overlay/nativeTitleHold.d.cts +24 -0
- package/dist/overlay/nativeTitleHold.d.ts +24 -0
- package/dist/ownerAnimationFrame-DzFcMSmn.js +19 -0
- package/dist/ownerAnimationFrame-T6jf6qYC.cjs +1 -0
- package/dist/server/{AttributeGrid-CMi-UtWb.js → AttributeGrid-Bpjlauuz.js} +2 -2
- package/dist/server/{AttributeGrid-B7sb3btp.cjs → AttributeGrid-DNYdKb8J.cjs} +1 -1
- package/dist/server/CommandPalette-BuVxnqBG.cjs +1 -0
- package/dist/server/{CommandPalette-CozogFlk.js → CommandPalette-Dn3NKXPM.js} +1095 -1069
- package/dist/server/{DateRangePicker-KLZzyuPJ.cjs → DateRangePicker-BFzNjaME.cjs} +1 -1
- package/dist/server/{DateRangePicker-C35q8BTw.js → DateRangePicker-CnYkTgXX.js} +3 -3
- package/dist/server/{GuidedTour-DmLbBttx.js → GuidedTour-BZardPYW.js} +1 -1
- package/dist/server/{GuidedTour-DfV0yzqh.cjs → GuidedTour-yhdZk2SU.cjs} +1 -1
- package/dist/server/{HostPortal-CXGUUhP8.js → HostPortal-C4IrAeWN.js} +1 -1
- package/dist/server/HostPortal-D5ECrJvn.cjs +1 -0
- package/dist/server/{IconPicker-B1soopAp.cjs → IconPicker-C5lAN9pX.cjs} +1 -1
- package/dist/server/{IconPicker-B4aXspLw.js → IconPicker-DDWgB7sm.js} +3 -3
- package/dist/server/Input-AdF-i0O8.js +245 -0
- package/dist/server/Input-XF9Jr0G9.cjs +1 -0
- package/dist/server/{Modal-BheFQLs1.js → Modal-C5dzgcRW.js} +102 -97
- package/dist/server/{Modal-BswxV8Pn.cjs → Modal-nAhBS1L9.cjs} +1 -1
- package/dist/server/Popover-C5avmGWz.cjs +1 -0
- package/dist/server/{Popover-Cg28aPUZ.js → Popover-H3AAYZI0.js} +57 -57
- package/dist/server/{SearchableSelect-09ECcDlB.cjs → SearchableSelect-CZrXDKfC.cjs} +1 -1
- package/dist/server/{SearchableSelect-vjhS4c-H.js → SearchableSelect-DMqed5Er.js} +1 -1
- package/dist/server/StatusBarNotificationBell-CGcMdT4h.cjs +49 -0
- package/dist/server/{StatusBarNotificationBell-DdAdsduo.js → StatusBarNotificationBell-DW2l5O9B.js} +4812 -4520
- package/dist/server/{Stepper-DxNrskdq.cjs → Stepper-CpapA_WH.cjs} +1 -1
- package/dist/server/{Stepper-n5f9r-ye.js → Stepper-gGA7JwjV.js} +1 -1
- package/dist/server/{Textarea-BQf2lL59.cjs → Textarea-Bh5LVrBn.cjs} +1 -1
- package/dist/server/{Textarea-BTH48NET.js → Textarea-DVkfGkP0.js} +1 -1
- package/dist/server/{ToggleButton-TE3Xf2yD.cjs → ToggleButton-CA9T-OsI.cjs} +1 -1
- package/dist/server/{ToggleButton-FywO2CCI.js → ToggleButton-CBNKajZa.js} +4 -4
- package/dist/server/{VpTrash-Dlq8o6Uv.js → VpTrash-CZMWCIpF.js} +84 -70
- package/dist/server/VpTrash-DiczWhwm.cjs +1 -0
- package/dist/server/appThemeDerivation-BylmT80v.cjs +1 -0
- package/dist/server/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation-DBAOkGl7.js} +260 -231
- package/dist/server/{createDialogShellFocus-BiBAZOCI.cjs → createDialogShellFocus-CDaLuPg8.cjs} +1 -1
- package/dist/server/{createDialogShellFocus-BFo8awdj.js → createDialogShellFocus-LGDBOVnr.js} +6 -6
- package/dist/server/{createResizableSidebar-BImbKlLe.js → createResizableSidebar-Dvu7iEk1.js} +1 -1
- package/dist/server/{createResizableSidebar-GFgZIj-5.cjs → createResizableSidebar-v40ZOb-Q.cjs} +1 -1
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +3 -3
- package/dist/server/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/server/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +7 -7
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/{index-UIjsx3oJ.js → index-BEARfm54.js} +3604 -3617
- package/dist/server/index-C6rYfWCJ.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +478 -472
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +56 -52
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +54 -53
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +30 -28
- package/dist/solid/feedback/Badge.jsx +3 -14
- package/dist/solid/forms/Button.jsx +3 -14
- package/dist/solid/forms/Input.jsx +31 -5
- package/dist/solid/forms/Input.module.css.js +1 -0
- package/dist/solid/forms/InputMessage.jsx +86 -0
- package/dist/solid/forms/PressableSurface.jsx +3 -14
- package/dist/solid/layout/ResizeHandle.jsx +11 -1
- package/dist/solid/layout/resizeCarry.js +31 -0
- package/dist/solid/notifications/NotificationHost.jsx +6 -29
- package/dist/solid/notifications/NotificationItem.jsx +5 -5
- package/dist/solid/notifications/NotificationPanel.jsx +14 -4
- package/dist/solid/notifications/NotificationsCenter.jsx +70 -12
- package/dist/solid/notifications/RunningProgressCards.jsx +1 -1
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +21 -19
- package/dist/solid/notifications/catalogAdapter.js +1 -0
- package/dist/solid/notifications/fireNotification.js +21 -16
- package/dist/solid/notifications/index.js +1 -0
- package/dist/solid/notifications/nativeEngine.js +51 -11
- package/dist/solid/notifications/notificationEntryList.js +168 -0
- package/dist/solid/notifications/notificationService.js +22 -4
- package/dist/solid/notifications/toast.js +54 -7
- package/dist/solid/notifications/toastCorner.js +3 -0
- package/dist/solid/notifications/toastFilterPolicy.js +12 -0
- package/dist/solid/overlay/Drawer.jsx +2 -1
- package/dist/solid/overlay/Modal.jsx +42 -4
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +4 -4
- package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +8 -7
- package/dist/solid/overlay/nativeTitleHold.js +33 -0
- package/dist/solid/overlay/tooltipDirective.js +3 -11
- package/dist/solid/tokens/index.js +1 -0
- package/dist/solid/tokens/palette/paletteContract.js +27 -0
- package/dist/style.css +2 -2
- package/dist/theme.css +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +1 -0
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +30 -28
- package/dist/tokens/palette/paletteContract.d.cts +17 -0
- package/dist/tokens/palette/paletteContract.d.ts +17 -0
- package/dist/tokens/tokens.css +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/Button-Bb68ymNP.cjs +0 -1
- package/dist/Button-D-T0tyGF.js +0 -305
- package/dist/CommandPalette-5FQRgPG9.cjs +0 -2
- package/dist/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/Input-CZruORyy.cjs +0 -1
- package/dist/Input-DkPhsdfk.js +0 -227
- package/dist/Modal-CY6ePolt.cjs +0 -1
- package/dist/Modal-NzZzHSwb.js +0 -559
- package/dist/Popover-CWrR51eG.cjs +0 -1
- package/dist/SearchableSelect-CVqdVMOC.cjs +0 -1
- package/dist/StatusBarNotificationBell-CJ3HuhRu.cjs +0 -50
- package/dist/ToggleButton-BFWh1_o5.cjs +0 -1
- package/dist/anchoredLayout-Dstwa5OH.cjs +0 -1
- package/dist/anchoredLayout-FC-qv8xm.js +0 -250
- package/dist/appThemeDerivation-Be_oKljl.cjs +0 -1
- package/dist/createDialogShellFocus-CJaw9-B9.cjs +0 -1
- package/dist/createResizableSidebar-BDUlX9-G.js +0 -472
- package/dist/createResizableSidebar-BVJBU2kP.cjs +0 -1
- package/dist/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/mainRealmDom-C12lr9lm.js +0 -171
- package/dist/mainRealmDom-S6teqEr4.cjs +0 -1
- package/dist/server/CommandPalette-DQK6N98N.cjs +0 -1
- package/dist/server/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/server/Input-CjvD8w18.cjs +0 -1
- package/dist/server/Input-DaEN2JJd.js +0 -127
- package/dist/server/Popover-BsxIKBbl.cjs +0 -1
- package/dist/server/StatusBarNotificationBell-Z2LmIkM1.cjs +0 -49
- package/dist/server/VpTrash-D49oUUJh.cjs +0 -1
- package/dist/server/appThemeDerivation-Be_oKljl.cjs +0 -1
- package/dist/server/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/server/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/server/index-2mQPVEDR.cjs +0 -1
- package/dist/tooltipCoordinator-BzxEyKhA.js +0 -144
- package/dist/tooltipCoordinator-DslqMlsI.cjs +0 -1
|
@@ -1,45 +1,70 @@
|
|
|
1
|
-
import { ssr as
|
|
2
|
-
import { createSignal as D, onCleanup as Q, Show as w, createEffect as te, on as
|
|
3
|
-
import { K as
|
|
4
|
-
import {
|
|
1
|
+
import { ssr as v, escape as t, createComponent as n, memo as ee, ssrAttribute as o, Portal as Re, ssrStyleProperty as Z, mergeProps as Ke, ssrElement as It, ssrStyle as xt } from "solid-js/web";
|
|
2
|
+
import { createSignal as D, onCleanup as Q, Show as w, createEffect as te, on as Ee, createUniqueId as j, createComputed as At, onMount as Xe, For as me, splitProps as Tt, createMemo as G, createRenderEffect as Dt } from "solid-js";
|
|
3
|
+
import { K as ut } from "./Kbd-BTbz_c_e.js";
|
|
4
|
+
import { O as Le, I as Ye, P as ye, F as Mt } from "./Input-AdF-i0O8.js";
|
|
5
5
|
import { B as J } from "./Button-3yNrnn4P.js";
|
|
6
|
-
import { C as
|
|
7
|
-
import {
|
|
8
|
-
import { T as Dt } from "./Textarea-BTH48NET.js";
|
|
6
|
+
import { C as dt, t as Ve, s as Be, k as Rt } from "./createDialogShellFocus-LGDBOVnr.js";
|
|
7
|
+
import { T as Et } from "./Textarea-DVkfGkP0.js";
|
|
9
8
|
import { O as be } from "./OverlayScrollArea-221dfKyz.js";
|
|
10
|
-
import { a as
|
|
11
|
-
import { t as
|
|
12
|
-
import { A as
|
|
13
|
-
import { b as N, P as Ce } from "./GuidedTour-
|
|
14
|
-
import { u as
|
|
9
|
+
import { a as Ue, g as Ae } from "./window-CUK6x8Pj.js";
|
|
10
|
+
import { t as c, l as Pt } from "./i18n-CBlUGOyu.js";
|
|
11
|
+
import { A as mt, V as Bt, a as Ot, b as zt } from "./Modal-C5dzgcRW.js";
|
|
12
|
+
import { b as N, P as Ce } from "./GuidedTour-BZardPYW.js";
|
|
13
|
+
import { u as Wt, D as Nt } from "./DesktopContextMenuContext-DJ3PnqAv.js";
|
|
15
14
|
import { o as Te } from "./ownerWindow-9mx_LD47.js";
|
|
16
|
-
import { b as
|
|
17
|
-
import { u as
|
|
15
|
+
import { b as Ft, A as Ht, V as ft, e as Vt } from "./Popover-H3AAYZI0.js";
|
|
16
|
+
import { u as Pe } from "./overlayStack-Bj6Lg1Rm.js";
|
|
18
17
|
import { i as ge } from "./keys-B2nlkpqc.js";
|
|
19
|
-
import { V as
|
|
20
|
-
import { V as
|
|
21
|
-
import { V as
|
|
22
|
-
import { n as
|
|
23
|
-
import {
|
|
18
|
+
import { V as ht } from "./VpCheck-XZpSme0g.js";
|
|
19
|
+
import { V as qt } from "./VpChevronRight-CwRCE60O.js";
|
|
20
|
+
import { V as Qe } from "./VpClose-1RAQ20H9.js";
|
|
21
|
+
import { n as jt, m as Kt } from "./prefersReducedMotion-B2mMn01s.js";
|
|
22
|
+
import { s as Yt, r as Ze } from "./dialogFocusRestore-BhxVTSiP.js";
|
|
23
|
+
import { V as Ut } from "./VpMinus-Z3sgLAcV.js";
|
|
24
24
|
import { E as ke } from "./EmptyState-Csydyy_7.js";
|
|
25
|
-
import { c as
|
|
26
|
-
import { u as
|
|
27
|
-
import { V as
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
import { c as Qt } from "./tablistKeyboard-AxJcXuc5.js";
|
|
26
|
+
import { u as gt } from "./kitHost-CVAEi9sF.js";
|
|
27
|
+
import { V as Gt } from "./VpKeyboard-DEpTpo78.js";
|
|
28
|
+
const qe = "data-suppressed-title", De = /* @__PURE__ */ new WeakMap();
|
|
29
|
+
function Jt(e) {
|
|
30
|
+
const r = e.ownerDocument.defaultView;
|
|
31
|
+
if (r === null || De.has(e)) return;
|
|
32
|
+
const a = e.getAttribute("title");
|
|
33
|
+
if (a === null || a === "") return;
|
|
34
|
+
e.setAttribute(qe, a), e.setAttribute("title", "");
|
|
35
|
+
let i = !1;
|
|
36
|
+
const u = new r.MutationObserver(() => {
|
|
37
|
+
i = !0;
|
|
38
|
+
});
|
|
39
|
+
u.observe(e, { attributes: !0, attributeFilter: ["title"] }), De.set(e, {
|
|
40
|
+
ownerWrote: () => i || u.takeRecords().length > 0,
|
|
41
|
+
stop: () => u.disconnect()
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function Xt(e) {
|
|
45
|
+
const r = De.get(e);
|
|
46
|
+
if (r === void 0) return;
|
|
47
|
+
De.delete(e);
|
|
48
|
+
const a = r.ownerWrote();
|
|
49
|
+
r.stop();
|
|
50
|
+
const i = e.getAttribute(qe);
|
|
51
|
+
e.removeAttribute(qe), !a && i !== null && e.setAttribute("title", i);
|
|
52
|
+
}
|
|
53
|
+
const Zt = "vk_wrapper_u7cKP", en = "vk_tooltip_ANskC", tn = "vk_placementTop_Q5EkL", nn = "vk_placementBottom_VVLuu", rn = "vk_placementLeft_uKF0H", on = "vk_placementRight_ObusA", pe = {
|
|
54
|
+
wrapper: Zt,
|
|
55
|
+
tooltip: en,
|
|
56
|
+
placementTop: tn,
|
|
57
|
+
placementBottom: nn,
|
|
58
|
+
placementLeft: rn,
|
|
59
|
+
placementRight: on
|
|
35
60
|
};
|
|
36
|
-
var
|
|
37
|
-
const
|
|
38
|
-
const [r, a] = D(!1),
|
|
61
|
+
var an = ['<div role="tooltip" class="', '"><span>', "</span>", "</div>"], sn = ['<div class="', '">', "", "</div>"];
|
|
62
|
+
const qi = (e) => {
|
|
63
|
+
const [r, a] = D(!1), i = () => e.placement ?? "top";
|
|
39
64
|
Q(() => {
|
|
40
65
|
});
|
|
41
66
|
const m = () => {
|
|
42
|
-
switch (
|
|
67
|
+
switch (i()) {
|
|
43
68
|
case "bottom":
|
|
44
69
|
return pe.placementBottom;
|
|
45
70
|
case "left":
|
|
@@ -51,17 +76,17 @@ const zi = (e) => {
|
|
|
51
76
|
return pe.placementTop;
|
|
52
77
|
}
|
|
53
78
|
};
|
|
54
|
-
return
|
|
79
|
+
return v(sn, `${t(pe.wrapper, !0)} ${t(e.class ?? "", !0)}`, t(e.children), t(n(w, {
|
|
55
80
|
get when() {
|
|
56
81
|
return ee(() => !!r())() && !e.disabled;
|
|
57
82
|
},
|
|
58
83
|
get children() {
|
|
59
|
-
return
|
|
84
|
+
return v(an, `${t(pe.tooltip, !0)} ${t(m(), !0)}`, t(e.content), t(n(w, {
|
|
60
85
|
get when() {
|
|
61
86
|
return e.shortcut;
|
|
62
87
|
},
|
|
63
88
|
get children() {
|
|
64
|
-
return n(
|
|
89
|
+
return n(ut, {
|
|
65
90
|
size: "xs",
|
|
66
91
|
get children() {
|
|
67
92
|
return e.shortcut;
|
|
@@ -73,33 +98,33 @@ const zi = (e) => {
|
|
|
73
98
|
})));
|
|
74
99
|
};
|
|
75
100
|
function Ie(e) {
|
|
76
|
-
let r = null, a = null,
|
|
77
|
-
const
|
|
78
|
-
a === null && (a =
|
|
101
|
+
let r = null, a = null, i = null;
|
|
102
|
+
const u = () => e.ownerDocument(), m = () => {
|
|
103
|
+
a === null && (a = u().activeElement);
|
|
79
104
|
}, b = () => {
|
|
80
|
-
|
|
105
|
+
i == null || i(), i = null;
|
|
81
106
|
};
|
|
82
107
|
return te(
|
|
83
|
-
|
|
108
|
+
Ee(
|
|
84
109
|
() => e.open(),
|
|
85
|
-
(
|
|
86
|
-
if (
|
|
87
|
-
r !== null &&
|
|
110
|
+
(d, h) => {
|
|
111
|
+
if (d) {
|
|
112
|
+
r !== null && i === null && (i = jt(r));
|
|
88
113
|
return;
|
|
89
114
|
}
|
|
90
|
-
|
|
115
|
+
Yt(h, d) && (b(), Ze(a), a = null, r = null);
|
|
91
116
|
}
|
|
92
117
|
)
|
|
93
118
|
), Q(() => {
|
|
94
|
-
b(),
|
|
119
|
+
b(), Ze(a), a = null, r = null;
|
|
95
120
|
}), {
|
|
96
|
-
captureDialog: (
|
|
97
|
-
r =
|
|
121
|
+
captureDialog: (d) => {
|
|
122
|
+
r = d, m();
|
|
98
123
|
},
|
|
99
124
|
captureReturnFocus: m
|
|
100
125
|
};
|
|
101
126
|
}
|
|
102
|
-
function
|
|
127
|
+
function ji() {
|
|
103
128
|
let e = !1;
|
|
104
129
|
return {
|
|
105
130
|
noteMouseDown(r) {
|
|
@@ -111,24 +136,24 @@ function Wi() {
|
|
|
111
136
|
}
|
|
112
137
|
};
|
|
113
138
|
}
|
|
114
|
-
const
|
|
115
|
-
overlay:
|
|
116
|
-
dialog:
|
|
117
|
-
header:
|
|
118
|
-
title:
|
|
119
|
-
body:
|
|
120
|
-
message:
|
|
121
|
-
checkbox:
|
|
122
|
-
promptField:
|
|
123
|
-
footer:
|
|
124
|
-
codeScroll:
|
|
125
|
-
code:
|
|
126
|
-
codePre:
|
|
139
|
+
const cn = "vk_overlay_7-umT", ln = "vk_dialog_3YL-7", un = "vk_header_asYMs", dn = "vk_title_0fm8I vk_titleLg_Iswm3", mn = "vk_body_U-3RF", fn = "vk_message_UsUIn", hn = "vk_checkbox_P8FRX", gn = "vk_promptField_jlrF3", vn = "vk_footer_orvoX", bn = "vk_codeScroll_rzK59", _n = "vk_code_6rso-", wn = "vk_codePre_Lj6QF", W = {
|
|
140
|
+
overlay: cn,
|
|
141
|
+
dialog: ln,
|
|
142
|
+
header: un,
|
|
143
|
+
title: dn,
|
|
144
|
+
body: mn,
|
|
145
|
+
message: fn,
|
|
146
|
+
checkbox: hn,
|
|
147
|
+
promptField: gn,
|
|
148
|
+
footer: vn,
|
|
149
|
+
codeScroll: bn,
|
|
150
|
+
code: _n,
|
|
151
|
+
codePre: wn
|
|
127
152
|
};
|
|
128
|
-
var
|
|
129
|
-
const $e = (e) => ((e == null ? void 0 : e()) ??
|
|
130
|
-
function
|
|
131
|
-
const r = j(), a = j(),
|
|
153
|
+
var kn = ["<div", ' tabindex="-1"><div', ' role="alertdialog" aria-modal="true"', ' tabindex="-1"><div', "><h3", ">", "</h3></div><div", ">", "<p", ">", "</p>", "", "</div><div", ">", "", "</div></div></div>"], pn = ["<pre", "><code>", "</code></pre>"], yn = ["<div", ' tabindex="-1"><div', ' role="alertdialog" aria-modal="true"', ' tabindex="-1"><div', "><h3", ">", "</h3></div><div", "><p", ">", "</p></div><div", ">", "", "", "</div></div></div>"], Cn = ["<p", ">", "</p>"], $n = ["<div", ' tabindex="-1"><div', ' role="dialog" aria-modal="true"', ' tabindex="-1"><div', "><h3", ">", "</h3></div><div", ">", "", "</div><div", ">", "", "</div></div></div>"];
|
|
154
|
+
const $e = (e) => ((e == null ? void 0 : e()) ?? Ue().window).document;
|
|
155
|
+
function Ki(e) {
|
|
156
|
+
const r = j(), a = j(), i = j(), u = () => e.place ? `${a} ${i}` : i, [m, b] = D(0);
|
|
132
157
|
te(() => {
|
|
133
158
|
var k;
|
|
134
159
|
if (!e.open()) {
|
|
@@ -137,18 +162,18 @@ function Ni(e) {
|
|
|
137
162
|
}
|
|
138
163
|
const S = e.confirmDelaySeconds ?? 0;
|
|
139
164
|
if (b(S), S <= 0) return;
|
|
140
|
-
const y = ((k = e.host) == null ? void 0 : k.call(e)) ??
|
|
165
|
+
const y = ((k = e.host) == null ? void 0 : k.call(e)) ?? Ue().window, z = y.setInterval(() => {
|
|
141
166
|
b((L) => L <= 1 ? 0 : L - 1);
|
|
142
167
|
}, 1e3);
|
|
143
168
|
Q(() => y.clearInterval(z));
|
|
144
169
|
});
|
|
145
|
-
const [
|
|
146
|
-
te(
|
|
170
|
+
const [d, h] = D(!1);
|
|
171
|
+
te(Ee(() => e.open(), (S) => {
|
|
147
172
|
var y;
|
|
148
|
-
S &&
|
|
173
|
+
S && h(((y = e.checkbox) == null ? void 0 : y.checked) ?? !1);
|
|
149
174
|
}));
|
|
150
175
|
const _ = () => e.checkbox ? {
|
|
151
|
-
checkboxChecked:
|
|
176
|
+
checkboxChecked: d()
|
|
152
177
|
} : {};
|
|
153
178
|
return Ie({
|
|
154
179
|
open: () => e.open(),
|
|
@@ -165,17 +190,17 @@ function Ni(e) {
|
|
|
165
190
|
},
|
|
166
191
|
idPrefix: "confirm-dialog",
|
|
167
192
|
get children() {
|
|
168
|
-
return
|
|
193
|
+
return v(kn, o("class", t(W.overlay, !0), !1), o("class", t(W.dialog, !0), !1), o("aria-labelledby", t(r, !0), !1) + o("aria-describedby", t(u(), !0), !1), o("class", t(W.header, !0), !1), o("id", t(r, !0), !1) + o("class", t(W.title, !0), !1), t(e.title), o("class", t(W.body, !0), !1), t(n(w, {
|
|
169
194
|
get when() {
|
|
170
195
|
return e.place;
|
|
171
196
|
},
|
|
172
|
-
children: (S) => n(
|
|
197
|
+
children: (S) => n(mt, {
|
|
173
198
|
id: a,
|
|
174
199
|
get place() {
|
|
175
200
|
return S();
|
|
176
201
|
}
|
|
177
202
|
})
|
|
178
|
-
})), o("id", t(
|
|
203
|
+
})), o("id", t(i, !0), !1) + o("class", t(W.message, !0), !1), t(e.message), t(n(w, {
|
|
179
204
|
get when() {
|
|
180
205
|
return e.code;
|
|
181
206
|
},
|
|
@@ -187,21 +212,21 @@ function Ni(e) {
|
|
|
187
212
|
return W.code;
|
|
188
213
|
},
|
|
189
214
|
get children() {
|
|
190
|
-
return
|
|
215
|
+
return v(pn, o("class", t(W.codePre, !0), !1) + o("aria-label", t(c("Statement"), !0), !1), t(S()));
|
|
191
216
|
}
|
|
192
217
|
})
|
|
193
218
|
})), t(n(w, {
|
|
194
219
|
get when() {
|
|
195
220
|
return e.checkbox;
|
|
196
221
|
},
|
|
197
|
-
children: (S) => n(
|
|
222
|
+
children: (S) => n(dt, {
|
|
198
223
|
get class() {
|
|
199
224
|
return W.checkbox;
|
|
200
225
|
},
|
|
201
226
|
get checked() {
|
|
202
|
-
return
|
|
227
|
+
return d();
|
|
203
228
|
},
|
|
204
|
-
onChange:
|
|
229
|
+
onChange: h,
|
|
205
230
|
get children() {
|
|
206
231
|
return S().label;
|
|
207
232
|
}
|
|
@@ -216,7 +241,7 @@ function Ni(e) {
|
|
|
216
241
|
variant: "secondary",
|
|
217
242
|
onClick: () => e.onCancel(_()),
|
|
218
243
|
get children() {
|
|
219
|
-
return e.cancelLabel ??
|
|
244
|
+
return e.cancelLabel ?? c("Cancel");
|
|
220
245
|
}
|
|
221
246
|
});
|
|
222
247
|
}
|
|
@@ -230,10 +255,10 @@ function Ni(e) {
|
|
|
230
255
|
},
|
|
231
256
|
onClick: () => e.onConfirm(_()),
|
|
232
257
|
get children() {
|
|
233
|
-
return m() > 0 ?
|
|
234
|
-
label: e.confirmLabel ??
|
|
258
|
+
return m() > 0 ? c("{label} ({seconds})", {
|
|
259
|
+
label: e.confirmLabel ?? c("Confirm"),
|
|
235
260
|
seconds: m()
|
|
236
|
-
}) : e.confirmLabel ??
|
|
261
|
+
}) : e.confirmLabel ?? c("Confirm");
|
|
237
262
|
}
|
|
238
263
|
})));
|
|
239
264
|
}
|
|
@@ -241,7 +266,7 @@ function Ni(e) {
|
|
|
241
266
|
}
|
|
242
267
|
});
|
|
243
268
|
}
|
|
244
|
-
function
|
|
269
|
+
function Yi(e) {
|
|
245
270
|
const r = j(), a = j();
|
|
246
271
|
return Ie({
|
|
247
272
|
open: () => e.open(),
|
|
@@ -258,26 +283,26 @@ function Fi(e) {
|
|
|
258
283
|
},
|
|
259
284
|
idPrefix: "save-discard-dialog",
|
|
260
285
|
get children() {
|
|
261
|
-
return
|
|
286
|
+
return v(yn, o("class", t(W.overlay, !0), !1), o("class", t(W.dialog, !0), !1), o("aria-labelledby", t(r, !0), !1) + o("aria-describedby", t(a, !0), !1), o("class", t(W.header, !0), !1), o("id", t(r, !0), !1) + o("class", t(W.title, !0), !1), t(e.title), o("class", t(W.body, !0), !1), o("id", t(a, !0), !1) + o("class", t(W.message, !0), !1), t(e.message), o("class", t(W.footer, !0), !1), t(n(J, {
|
|
262
287
|
size: "lg",
|
|
263
288
|
variant: "secondary",
|
|
264
289
|
onClick: () => e.onChoice("cancel"),
|
|
265
290
|
get children() {
|
|
266
|
-
return e.cancelLabel ??
|
|
291
|
+
return e.cancelLabel ?? c("Cancel");
|
|
267
292
|
}
|
|
268
293
|
})), t(n(J, {
|
|
269
294
|
size: "lg",
|
|
270
295
|
variant: "dangerSolid",
|
|
271
296
|
onClick: () => e.onChoice("discard"),
|
|
272
297
|
get children() {
|
|
273
|
-
return e.discardLabel ??
|
|
298
|
+
return e.discardLabel ?? c("Don't Save");
|
|
274
299
|
}
|
|
275
300
|
})), t(n(J, {
|
|
276
301
|
size: "lg",
|
|
277
302
|
variant: "primary",
|
|
278
303
|
onClick: () => e.onChoice("save"),
|
|
279
304
|
get children() {
|
|
280
|
-
return e.saveLabel ??
|
|
305
|
+
return e.saveLabel ?? c("Save");
|
|
281
306
|
}
|
|
282
307
|
})));
|
|
283
308
|
}
|
|
@@ -285,10 +310,10 @@ function Fi(e) {
|
|
|
285
310
|
}
|
|
286
311
|
});
|
|
287
312
|
}
|
|
288
|
-
function
|
|
289
|
-
const r = j(), [a,
|
|
290
|
-
return te(
|
|
291
|
-
|
|
313
|
+
function Ui(e) {
|
|
314
|
+
const r = j(), [a, i] = D(e.defaultValue ?? "");
|
|
315
|
+
return te(Ee(() => e.open(), (u) => {
|
|
316
|
+
u && i(e.defaultValue ?? "");
|
|
292
317
|
}, {
|
|
293
318
|
defer: !0
|
|
294
319
|
})), Ie({
|
|
@@ -306,19 +331,19 @@ function Hi(e) {
|
|
|
306
331
|
},
|
|
307
332
|
idPrefix: "prompt-dialog",
|
|
308
333
|
get children() {
|
|
309
|
-
return
|
|
334
|
+
return v($n, o("class", t(W.overlay, !0), !1), o("class", t(W.dialog, !0), !1), o("aria-labelledby", t(r, !0), !1), o("class", t(W.header, !0), !1), o("id", t(r, !0), !1) + o("class", t(W.title, !0), !1), t(e.title), o("class", t(W.body, !0), !1), t(n(w, {
|
|
310
335
|
get when() {
|
|
311
336
|
return e.message !== void 0;
|
|
312
337
|
},
|
|
313
338
|
get children() {
|
|
314
|
-
return
|
|
339
|
+
return v(Cn, o("class", t(W.message, !0), !1), t(e.message));
|
|
315
340
|
}
|
|
316
341
|
})), t(n(w, {
|
|
317
342
|
get when() {
|
|
318
343
|
return e.multiline;
|
|
319
344
|
},
|
|
320
345
|
get fallback() {
|
|
321
|
-
return n(
|
|
346
|
+
return n(Ye, {
|
|
322
347
|
get type() {
|
|
323
348
|
return e.secret ? "password" : "text";
|
|
324
349
|
},
|
|
@@ -334,11 +359,11 @@ function Hi(e) {
|
|
|
334
359
|
get "aria-label"() {
|
|
335
360
|
return e.title;
|
|
336
361
|
},
|
|
337
|
-
onInput: (
|
|
362
|
+
onInput: (u) => i(u.currentTarget.value)
|
|
338
363
|
});
|
|
339
364
|
},
|
|
340
365
|
get children() {
|
|
341
|
-
return n(
|
|
366
|
+
return n(Et, {
|
|
342
367
|
rows: 8,
|
|
343
368
|
mono: !0,
|
|
344
369
|
get class() {
|
|
@@ -353,7 +378,7 @@ function Hi(e) {
|
|
|
353
378
|
get "aria-label"() {
|
|
354
379
|
return e.title;
|
|
355
380
|
},
|
|
356
|
-
onInput: (
|
|
381
|
+
onInput: (u) => i(u.currentTarget.value)
|
|
357
382
|
});
|
|
358
383
|
}
|
|
359
384
|
})), o("class", t(W.footer, !0), !1), t(n(J, {
|
|
@@ -361,14 +386,14 @@ function Hi(e) {
|
|
|
361
386
|
variant: "secondary",
|
|
362
387
|
onClick: () => e.onCancel(),
|
|
363
388
|
get children() {
|
|
364
|
-
return e.cancelLabel ??
|
|
389
|
+
return e.cancelLabel ?? c("Cancel");
|
|
365
390
|
}
|
|
366
391
|
})), t(n(J, {
|
|
367
392
|
size: "lg",
|
|
368
393
|
variant: "primary",
|
|
369
394
|
onClick: () => e.onConfirm(a()),
|
|
370
395
|
get children() {
|
|
371
|
-
return e.confirmLabel ??
|
|
396
|
+
return e.confirmLabel ?? c("Save");
|
|
372
397
|
}
|
|
373
398
|
})));
|
|
374
399
|
}
|
|
@@ -376,7 +401,7 @@ function Hi(e) {
|
|
|
376
401
|
}
|
|
377
402
|
});
|
|
378
403
|
}
|
|
379
|
-
const
|
|
404
|
+
const Qi = Object.freeze({
|
|
380
405
|
root: N.root,
|
|
381
406
|
header: N.header,
|
|
382
407
|
headerMain: N.headerMain,
|
|
@@ -404,40 +429,40 @@ const Vi = Object.freeze({
|
|
|
404
429
|
subtitleAdmin: N.subtitleAdmin,
|
|
405
430
|
headerAdminStacked: N.headerAdminStacked
|
|
406
431
|
});
|
|
407
|
-
function
|
|
432
|
+
function Sn(e) {
|
|
408
433
|
return e !== void 0 && e.type !== "separator";
|
|
409
434
|
}
|
|
410
|
-
function
|
|
435
|
+
function Gi(e) {
|
|
411
436
|
return e === "ArrowDown" || e === "ArrowUp" || e === "Home" || e === "End" || e === "ArrowRight" || e === "ArrowLeft";
|
|
412
437
|
}
|
|
413
|
-
function
|
|
414
|
-
const
|
|
415
|
-
if (
|
|
416
|
-
let
|
|
417
|
-
for (let m = 0; m <
|
|
418
|
-
if (
|
|
438
|
+
function Me(e, r, a) {
|
|
439
|
+
const i = e.length;
|
|
440
|
+
if (i === 0) return -1;
|
|
441
|
+
let u = r;
|
|
442
|
+
for (let m = 0; m < i; m++)
|
|
443
|
+
if (u = (u + a + i) % i, Sn(e[u])) return u;
|
|
419
444
|
return -1;
|
|
420
445
|
}
|
|
421
|
-
function
|
|
422
|
-
return
|
|
446
|
+
function vt(e) {
|
|
447
|
+
return Me(e, -1, 1);
|
|
423
448
|
}
|
|
424
|
-
function
|
|
425
|
-
return
|
|
449
|
+
function Ln(e) {
|
|
450
|
+
return Me(e, e.length, -1);
|
|
426
451
|
}
|
|
427
|
-
function
|
|
452
|
+
function Ji(e, r, a) {
|
|
428
453
|
switch (a) {
|
|
429
454
|
case "ArrowDown":
|
|
430
|
-
return
|
|
455
|
+
return Me(e, r, 1);
|
|
431
456
|
case "ArrowUp":
|
|
432
|
-
return
|
|
457
|
+
return Me(
|
|
433
458
|
e,
|
|
434
459
|
r < 0 ? e.length : r,
|
|
435
460
|
-1
|
|
436
461
|
);
|
|
437
462
|
case "Home":
|
|
438
|
-
return
|
|
463
|
+
return vt(e);
|
|
439
464
|
case "End":
|
|
440
|
-
return
|
|
465
|
+
return Ln(e);
|
|
441
466
|
case "ArrowRight":
|
|
442
467
|
case "ArrowLeft":
|
|
443
468
|
return r;
|
|
@@ -445,50 +470,53 @@ function ji(e, r, a) {
|
|
|
445
470
|
return r;
|
|
446
471
|
}
|
|
447
472
|
}
|
|
448
|
-
const
|
|
449
|
-
function
|
|
473
|
+
const Oe = 8, ze = 4, In = 240, xn = 36, An = 28;
|
|
474
|
+
function Tn(e, r, a) {
|
|
450
475
|
return Math.max(r, Math.min(e, a));
|
|
451
476
|
}
|
|
452
|
-
function
|
|
477
|
+
function Dn(e) {
|
|
453
478
|
return Math.max(
|
|
454
|
-
|
|
455
|
-
e *
|
|
479
|
+
xn,
|
|
480
|
+
e * An
|
|
456
481
|
);
|
|
457
482
|
}
|
|
458
|
-
function
|
|
459
|
-
const { parentPanelRect: r, triggerRowRect: a, viewportWidth:
|
|
460
|
-
a.top -
|
|
461
|
-
|
|
462
|
-
|
|
483
|
+
function Mn(e) {
|
|
484
|
+
const { parentPanelRect: r, triggerRowRect: a, viewportWidth: i, viewportHeight: u } = e, m = r.right - ze, b = m + In > i - Oe, d = b ? r.left + ze : m, h = Dn(e.submenuItemCount), _ = Tn(
|
|
485
|
+
a.top - ze,
|
|
486
|
+
Oe,
|
|
487
|
+
u - h - Oe
|
|
463
488
|
);
|
|
464
|
-
return { x:
|
|
465
|
-
}
|
|
466
|
-
const
|
|
467
|
-
menu:
|
|
468
|
-
itemsViewport:
|
|
469
|
-
item:
|
|
470
|
-
itemLabel:
|
|
471
|
-
itemText:
|
|
472
|
-
itemMeta:
|
|
473
|
-
check:
|
|
474
|
-
itemIcon:
|
|
475
|
-
submenuChevron:
|
|
476
|
-
itemExpanded:
|
|
477
|
-
itemDanger:
|
|
478
|
-
separator:
|
|
479
|
-
visuallyHidden:
|
|
489
|
+
return { x: d, y: _, flipLeft: b };
|
|
490
|
+
}
|
|
491
|
+
const Rn = "vk_menu_7idth vk_surface_3ZOnl", En = "vk_itemsViewport_e8jse vk_viewport_B94pk", Pn = "vk_item_6-C-w vk_item_neWq-", Bn = "vk_itemLabel_4H-rz", On = "vk_itemText_xNl6M", zn = "vk_itemMeta_LWQ8A", Wn = "vk_check_P9Ntk vk_check_dO3aK", Nn = "vk_itemIcon_JSYNd vk_itemIcon_bv6oS", Fn = "vk_submenuChevron_bANqc vk_chevron_pb9D1", Hn = "vk_itemExpanded_JfVkt", Vn = "vk_itemDanger_oJRgf", qn = "vk_separator_l-bM- vk_separator_zMw59", jn = "vk_visuallyHidden_CrSqj", re = {
|
|
492
|
+
menu: Rn,
|
|
493
|
+
itemsViewport: En,
|
|
494
|
+
item: Pn,
|
|
495
|
+
itemLabel: Bn,
|
|
496
|
+
itemText: On,
|
|
497
|
+
itemMeta: zn,
|
|
498
|
+
check: Wn,
|
|
499
|
+
itemIcon: Nn,
|
|
500
|
+
submenuChevron: Fn,
|
|
501
|
+
itemExpanded: Hn,
|
|
502
|
+
itemDanger: Vn,
|
|
503
|
+
separator: qn,
|
|
504
|
+
visuallyHidden: jn
|
|
480
505
|
};
|
|
481
|
-
var
|
|
506
|
+
var Kn = ["<div", ' role="menu" tabindex="-1" style="', '"', ">", "", "</div>"], Yn = ["<div", ' role="separator"></div>'], et = ["<span", ' aria-hidden="true">', "</span>"], Un = ["<span", ">", "", "<span", ">", "</span></span>"], Qn = ["<span", ">", "", "</span>"], Gn = ["<span", ">", "</span>"], Jn = ["<span>", "</span>"], Xn = "<span hidden data-context-menu-host></span>";
|
|
482
507
|
const xe = 8;
|
|
483
|
-
function
|
|
508
|
+
function We(e) {
|
|
484
509
|
return e.type !== "separator";
|
|
485
510
|
}
|
|
486
|
-
function
|
|
511
|
+
function Ne(e) {
|
|
512
|
+
return typeof e == "function" ? e() : e === !0;
|
|
513
|
+
}
|
|
514
|
+
function bt(e) {
|
|
487
515
|
let r, a = !1;
|
|
488
516
|
Q(() => {
|
|
489
517
|
a = !0;
|
|
490
518
|
});
|
|
491
|
-
const
|
|
519
|
+
const i = () => {
|
|
492
520
|
const f = e.anchor ?? (e.depth === 0 && e.left !== void 0 && e.top !== void 0 ? {
|
|
493
521
|
left: e.left,
|
|
494
522
|
top: e.top,
|
|
@@ -496,10 +524,10 @@ function ht(e) {
|
|
|
496
524
|
height: 0
|
|
497
525
|
} : void 0);
|
|
498
526
|
if (f) {
|
|
499
|
-
const
|
|
527
|
+
const g = e.hostWin.innerHeight, $ = e.hostWin.innerWidth, O = g - (f.top + f.height) - xe, F = Math.max(36, e.items.length * 28 + 12), l = e.anchorPosition === Ft.ABOVE || O < F && f.top > O ? Math.max(xe, f.top - F) : f.top + f.height, p = 200;
|
|
500
528
|
return {
|
|
501
|
-
left: e.anchorAlignment ===
|
|
502
|
-
top:
|
|
529
|
+
left: e.anchorAlignment === Ht.RIGHT || f.left + p > $ - xe ? Math.max(xe, f.left + f.width - p) : f.left,
|
|
530
|
+
top: l,
|
|
503
531
|
right: void 0,
|
|
504
532
|
bottom: void 0,
|
|
505
533
|
maxHeight: void 0,
|
|
@@ -514,89 +542,89 @@ function ht(e) {
|
|
|
514
542
|
maxHeight: void 0,
|
|
515
543
|
maxWidth: void 0
|
|
516
544
|
};
|
|
517
|
-
}, [
|
|
518
|
-
let
|
|
519
|
-
const T = () => e.items.some((f) =>
|
|
520
|
-
var
|
|
521
|
-
y(f), (
|
|
545
|
+
}, [u, m] = D(i()), [b, d] = D(null), [h, _] = D(-1), [S, y] = D(-1), z = j(), k = (f) => `ctx-hint-${z}-${f}`, L = [];
|
|
546
|
+
let B;
|
|
547
|
+
const T = () => e.items.some((f) => We(f) && f.icon !== void 0), K = () => e.items.some((f) => We(f) && f.checked !== void 0), R = (f) => {
|
|
548
|
+
var g;
|
|
549
|
+
y(f), (g = L[f]) == null || g.focus({
|
|
522
550
|
preventScroll: !1
|
|
523
551
|
});
|
|
524
|
-
}, X = (f,
|
|
525
|
-
if (!
|
|
552
|
+
}, X = (f, g, $, O) => {
|
|
553
|
+
if (!g.submenu || g.submenu.length === 0 || !r || h() === $ && b() !== null && !O)
|
|
526
554
|
return;
|
|
527
|
-
const F = r.getBoundingClientRect(), s = f.getBoundingClientRect(),
|
|
555
|
+
const F = r.getBoundingClientRect(), s = f.getBoundingClientRect(), l = Mn({
|
|
528
556
|
parentPanelRect: F,
|
|
529
557
|
triggerRowRect: s,
|
|
530
|
-
submenuItemCount:
|
|
558
|
+
submenuItemCount: g.submenu.length,
|
|
531
559
|
viewportWidth: e.hostWin.innerWidth,
|
|
532
560
|
viewportHeight: e.hostWin.innerHeight
|
|
533
561
|
});
|
|
534
562
|
_($);
|
|
535
563
|
const p = {
|
|
536
|
-
x:
|
|
537
|
-
y:
|
|
538
|
-
items:
|
|
539
|
-
flipLeft:
|
|
540
|
-
autoFocus:
|
|
564
|
+
x: l.x,
|
|
565
|
+
y: l.y,
|
|
566
|
+
items: g.submenu,
|
|
567
|
+
flipLeft: l.flipLeft,
|
|
568
|
+
autoFocus: O
|
|
541
569
|
};
|
|
542
|
-
|
|
543
|
-
a ||
|
|
544
|
-
})) :
|
|
570
|
+
O && b() !== null ? (d(null), queueMicrotask(() => {
|
|
571
|
+
a || d(p);
|
|
572
|
+
})) : d(p);
|
|
545
573
|
}, C = () => {
|
|
546
|
-
const f =
|
|
547
|
-
|
|
574
|
+
const f = h();
|
|
575
|
+
d(null), _(-1), f >= 0 && R(f);
|
|
548
576
|
}, I = () => {
|
|
549
577
|
};
|
|
550
|
-
|
|
578
|
+
Xe(() => {
|
|
551
579
|
queueMicrotask(() => {
|
|
552
580
|
if (a) return;
|
|
553
581
|
const F = e.hostWin.document.documentElement.getAttribute("data-focus-modality") === "pointer";
|
|
554
582
|
if (e.autoFocusFirst ?? (!F && e.depth === 0)) {
|
|
555
|
-
const
|
|
556
|
-
if (
|
|
557
|
-
|
|
583
|
+
const l = vt(e.items);
|
|
584
|
+
if (l >= 0) {
|
|
585
|
+
R(l);
|
|
558
586
|
return;
|
|
559
587
|
}
|
|
560
588
|
}
|
|
561
589
|
});
|
|
562
|
-
const f = e.hostWin,
|
|
590
|
+
const f = e.hostWin, g = f.requestAnimationFrame(() => I()), $ = () => I();
|
|
563
591
|
f.addEventListener("resize", $), f.addEventListener("scroll", $, !0), f.ResizeObserver, Q(() => {
|
|
564
|
-
f.cancelAnimationFrame(
|
|
592
|
+
f.cancelAnimationFrame(g), f.removeEventListener("resize", $), f.removeEventListener("scroll", $, !0);
|
|
565
593
|
});
|
|
566
594
|
}), Q(() => {
|
|
567
|
-
|
|
595
|
+
B && clearTimeout(B);
|
|
568
596
|
}), te(() => {
|
|
569
|
-
e.items.length, m(
|
|
597
|
+
e.items.length, m(i()), queueMicrotask(() => {
|
|
570
598
|
});
|
|
571
599
|
});
|
|
572
600
|
const V = () => {
|
|
573
|
-
|
|
601
|
+
B && (clearTimeout(B), B = void 0);
|
|
574
602
|
}, de = () => {
|
|
575
|
-
V(),
|
|
576
|
-
|
|
603
|
+
V(), B = setTimeout(() => {
|
|
604
|
+
d(null), _(-1);
|
|
577
605
|
}, 200);
|
|
578
|
-
}, ne = (f,
|
|
579
|
-
if (V(),
|
|
606
|
+
}, ne = (f, g, $) => {
|
|
607
|
+
if (V(), Ne(g.disabled) || !g.submenu || g.submenu.length === 0) {
|
|
580
608
|
de();
|
|
581
609
|
return;
|
|
582
610
|
}
|
|
583
|
-
X(f.currentTarget,
|
|
611
|
+
X(f.currentTarget, g, $, !1);
|
|
584
612
|
}, ie = (f) => {
|
|
585
613
|
if (!f) return;
|
|
586
|
-
const
|
|
587
|
-
return
|
|
588
|
-
}, ae =
|
|
614
|
+
const g = e.shortcutResolver;
|
|
615
|
+
return g ? g(f) : void 0;
|
|
616
|
+
}, ae = Pe(() => !0, "context-menu-panel", {
|
|
589
617
|
type: "menu",
|
|
590
618
|
element: () => r,
|
|
591
619
|
parent: e.parentLayer
|
|
592
620
|
});
|
|
593
|
-
return
|
|
621
|
+
return Xe(() => {
|
|
594
622
|
if (e.depth !== 0) return;
|
|
595
|
-
const f = e.hostWin,
|
|
623
|
+
const f = e.hostWin, g = ($) => {
|
|
596
624
|
!ge($, "Escape") || !ae.isTopmost() || ($.stopPropagation(), $.stopImmediatePropagation(), e.onRequestClose());
|
|
597
625
|
};
|
|
598
|
-
f.addEventListener("keydown",
|
|
599
|
-
}),
|
|
626
|
+
f.addEventListener("keydown", g, !0), Q(() => f.removeEventListener("keydown", g, !0));
|
|
627
|
+
}), v(Kn, o("class", t(re.menu, !0), !1), Z("left:", u().left !== void 0 ? `${t(u().left, !0)}px` : t(void 0, !0)) + Z(";top:", u().top !== void 0 ? `${t(u().top, !0)}px` : t(void 0, !0)) + Z(";right:", u().right !== void 0 ? `${t(u().right, !0)}px` : t(void 0, !0)) + Z(";bottom:", u().bottom !== void 0 ? `${t(u().bottom, !0)}px` : t(void 0, !0)) + Z(";max-height:", u().maxHeight !== void 0 ? `${t(u().maxHeight, !0)}px` : t(void 0, !0)) + Z(";max-width:", u().maxWidth !== void 0 ? `${t(Math.min(360, u().maxWidth ?? 360), !0)}px` : t(void 0, !0)) + Z(";z-index:", e.depth > 0 ? `calc(var(--z-context-menu) + ${t(e.depth, !0)})` : t(void 0, !0)), o("data-desktop-menu-depth", t(e.depth, !0), !1), t(n(be, {
|
|
600
628
|
get viewportClass() {
|
|
601
629
|
return re.itemsViewport;
|
|
602
630
|
},
|
|
@@ -606,16 +634,13 @@ function ht(e) {
|
|
|
606
634
|
get each() {
|
|
607
635
|
return e.items;
|
|
608
636
|
},
|
|
609
|
-
children: (f,
|
|
610
|
-
if (!
|
|
611
|
-
return
|
|
612
|
-
const $ = () => !!(f.submenu && f.submenu.length > 0),
|
|
613
|
-
|
|
614
|
-
return
|
|
615
|
-
},
|
|
616
|
-
var i;
|
|
617
|
-
return $() && ((i = b()) == null ? void 0 : i.items) === f.submenu;
|
|
618
|
-
}, s = () => typeof f.label == "function" ? f.label() : f.label;
|
|
637
|
+
children: (f, g) => {
|
|
638
|
+
if (!We(f))
|
|
639
|
+
return v(Yn, o("class", t(re.separator, !0), !1));
|
|
640
|
+
const $ = () => !!(f.submenu && f.submenu.length > 0), O = () => Ne(f.checked), F = () => Ne(f.disabled), s = () => {
|
|
641
|
+
var p;
|
|
642
|
+
return $() && ((p = b()) == null ? void 0 : p.items) === f.submenu;
|
|
643
|
+
}, l = () => typeof f.label == "function" ? f.label() : f.label;
|
|
619
644
|
return n(ye, {
|
|
620
645
|
type: "button",
|
|
621
646
|
get class() {
|
|
@@ -623,7 +648,7 @@ function ht(e) {
|
|
|
623
648
|
},
|
|
624
649
|
get classList() {
|
|
625
650
|
return {
|
|
626
|
-
[re.itemExpanded]:
|
|
651
|
+
[re.itemExpanded]: s()
|
|
627
652
|
};
|
|
628
653
|
},
|
|
629
654
|
get role() {
|
|
@@ -631,47 +656,47 @@ function ht(e) {
|
|
|
631
656
|
},
|
|
632
657
|
tabIndex: -1,
|
|
633
658
|
get "aria-disabled"() {
|
|
634
|
-
return
|
|
659
|
+
return F() ? !0 : void 0;
|
|
635
660
|
},
|
|
636
661
|
get "aria-checked"() {
|
|
637
|
-
return ee(() => !!f.checkedRole)() ?
|
|
662
|
+
return ee(() => !!f.checkedRole)() ? O() : void 0;
|
|
638
663
|
},
|
|
639
664
|
get "aria-haspopup"() {
|
|
640
665
|
return $() ? "menu" : void 0;
|
|
641
666
|
},
|
|
642
667
|
get "aria-expanded"() {
|
|
643
|
-
return ee(() => !!$())() ?
|
|
668
|
+
return ee(() => !!$())() ? s() : void 0;
|
|
644
669
|
},
|
|
645
670
|
get "aria-describedby"() {
|
|
646
|
-
return ee(() => !!f.hint)() ? k(
|
|
671
|
+
return ee(() => !!f.hint)() ? k(g()) : void 0;
|
|
647
672
|
},
|
|
648
|
-
onFocus: () => y(
|
|
649
|
-
onMouseEnter: (
|
|
650
|
-
y(
|
|
673
|
+
onFocus: () => y(g()),
|
|
674
|
+
onMouseEnter: (p) => {
|
|
675
|
+
y(g()), ne(p, f, g());
|
|
651
676
|
},
|
|
652
677
|
onClick: () => {
|
|
653
|
-
var
|
|
654
|
-
if (!
|
|
678
|
+
var p;
|
|
679
|
+
if (!F()) {
|
|
655
680
|
if ($()) {
|
|
656
|
-
const
|
|
657
|
-
|
|
681
|
+
const M = L[g()];
|
|
682
|
+
M && X(M, f, g(), !0);
|
|
658
683
|
return;
|
|
659
684
|
}
|
|
660
|
-
(
|
|
685
|
+
(p = f.onSelect ?? f.onClick) == null || p(), f.keepOpenOnSelect || queueMicrotask(() => e.onRequestClose());
|
|
661
686
|
}
|
|
662
687
|
},
|
|
663
688
|
get children() {
|
|
664
|
-
return [
|
|
689
|
+
return [v(Un, o("class", t(re.itemLabel, !0), !1), t(n(w, {
|
|
665
690
|
get when() {
|
|
666
691
|
return K();
|
|
667
692
|
},
|
|
668
693
|
get children() {
|
|
669
|
-
return
|
|
694
|
+
return v(et, o("class", t(re.check, !0), !1), t(n(w, {
|
|
670
695
|
get when() {
|
|
671
|
-
return
|
|
696
|
+
return O();
|
|
672
697
|
},
|
|
673
698
|
get children() {
|
|
674
|
-
return n(
|
|
699
|
+
return n(ht, {});
|
|
675
700
|
}
|
|
676
701
|
})));
|
|
677
702
|
}
|
|
@@ -680,19 +705,19 @@ function ht(e) {
|
|
|
680
705
|
return T();
|
|
681
706
|
},
|
|
682
707
|
get children() {
|
|
683
|
-
return
|
|
708
|
+
return v(et, o("class", t(re.itemIcon, !0), !1), t(f.icon));
|
|
684
709
|
}
|
|
685
|
-
})), o("class", t(re.itemText, !0), !1), t(
|
|
710
|
+
})), o("class", t(re.itemText, !0), !1), t(l())), v(Qn, o("class", t(re.itemMeta, !0), !1), t(n(w, {
|
|
686
711
|
get when() {
|
|
687
712
|
return ie(f.commandId) ?? f.shortcut;
|
|
688
713
|
},
|
|
689
|
-
children: (
|
|
714
|
+
children: (p) => v(Jn, t(p()))
|
|
690
715
|
})), t(n(w, {
|
|
691
716
|
get when() {
|
|
692
717
|
return $();
|
|
693
718
|
},
|
|
694
719
|
get children() {
|
|
695
|
-
return n(
|
|
720
|
+
return n(qt, {
|
|
696
721
|
get class() {
|
|
697
722
|
return re.submenuChevron;
|
|
698
723
|
},
|
|
@@ -704,7 +729,7 @@ function ht(e) {
|
|
|
704
729
|
return f.hint;
|
|
705
730
|
},
|
|
706
731
|
get children() {
|
|
707
|
-
return
|
|
732
|
+
return v(Gn, o("id", t(k(g()), !0), !1) + o("class", t(re.visuallyHidden, !0), !1), t(f.hint));
|
|
708
733
|
}
|
|
709
734
|
})];
|
|
710
735
|
}
|
|
@@ -717,17 +742,17 @@ function ht(e) {
|
|
|
717
742
|
return b();
|
|
718
743
|
},
|
|
719
744
|
children: (f) => {
|
|
720
|
-
const
|
|
745
|
+
const g = f().flipLeft ? {
|
|
721
746
|
right: e.hostWin.innerWidth - f().x
|
|
722
747
|
} : {
|
|
723
748
|
left: f().x
|
|
724
749
|
};
|
|
725
|
-
return n(
|
|
750
|
+
return n(Re, {
|
|
726
751
|
get mount() {
|
|
727
752
|
return e.hostWin.document.body;
|
|
728
753
|
},
|
|
729
754
|
get children() {
|
|
730
|
-
return n(
|
|
755
|
+
return n(bt, Ke(g, {
|
|
731
756
|
get top() {
|
|
732
757
|
return f().y;
|
|
733
758
|
},
|
|
@@ -765,84 +790,84 @@ function ht(e) {
|
|
|
765
790
|
}
|
|
766
791
|
})));
|
|
767
792
|
}
|
|
768
|
-
function
|
|
793
|
+
function Zn(e) {
|
|
769
794
|
return e !== null && e !== e.ownerDocument.body && typeof e.focus == "function";
|
|
770
795
|
}
|
|
771
|
-
function
|
|
772
|
-
const r =
|
|
773
|
-
const
|
|
774
|
-
if (
|
|
775
|
-
if (
|
|
776
|
-
const
|
|
777
|
-
if (
|
|
796
|
+
function er(e = {}) {
|
|
797
|
+
const r = Wt(), a = () => {
|
|
798
|
+
const d = r.state();
|
|
799
|
+
if (d != null && d.ownerWindow) return d.ownerWindow;
|
|
800
|
+
if (d != null && d.triggerEl) {
|
|
801
|
+
const h = Te(d.triggerEl);
|
|
802
|
+
if (h) return h;
|
|
778
803
|
}
|
|
779
804
|
return e.ownerWindow ? e.ownerWindow : Ae().window;
|
|
780
|
-
},
|
|
781
|
-
var
|
|
782
|
-
return e.shortcutResolver ?? ((
|
|
783
|
-
},
|
|
805
|
+
}, i = () => {
|
|
806
|
+
var d;
|
|
807
|
+
return e.shortcutResolver ?? ((d = r.state()) == null ? void 0 : d.shortcutResolver) ?? r.shortcutResolver;
|
|
808
|
+
}, u = (d) => {
|
|
784
809
|
var S;
|
|
785
|
-
const
|
|
786
|
-
if (!
|
|
810
|
+
const h = d.target;
|
|
811
|
+
if (!h || h.closest("[data-desktop-menu-depth]")) return;
|
|
787
812
|
const _ = (S = r.state()) == null ? void 0 : S.triggerEl;
|
|
788
|
-
_ && (_ ===
|
|
813
|
+
_ && (_ === h || _.contains(h)) || r.close();
|
|
789
814
|
};
|
|
790
815
|
let m = null;
|
|
791
|
-
|
|
792
|
-
if (
|
|
816
|
+
At(Ee(r.state, (d, h) => {
|
|
817
|
+
if (d === null || h != null)
|
|
793
818
|
return;
|
|
794
819
|
const _ = a().document.activeElement;
|
|
795
|
-
m =
|
|
820
|
+
m = Zn(_) ? _ : null;
|
|
796
821
|
}));
|
|
797
|
-
const b = (
|
|
798
|
-
const
|
|
799
|
-
if (m = null,
|
|
800
|
-
const _ =
|
|
801
|
-
(_ === null || _ ===
|
|
822
|
+
const b = (d) => {
|
|
823
|
+
const h = m;
|
|
824
|
+
if (m = null, h === null || !h.isConnected) return;
|
|
825
|
+
const _ = d.activeElement;
|
|
826
|
+
(_ === null || _ === d.body || _.closest("[data-desktop-menu-depth]") !== null) && h.focus();
|
|
802
827
|
};
|
|
803
828
|
return te(() => {
|
|
804
829
|
if (!r.state()) return;
|
|
805
|
-
const
|
|
830
|
+
const d = a(), h = () => {
|
|
806
831
|
r.close();
|
|
807
832
|
}, _ = () => {
|
|
808
833
|
r.close();
|
|
809
834
|
};
|
|
810
|
-
|
|
811
|
-
|
|
835
|
+
d.addEventListener("mousedown", u), d.addEventListener("blur", h), d.addEventListener("dragstart", _, !0), Q(() => {
|
|
836
|
+
d.removeEventListener("mousedown", u), d.removeEventListener("blur", h), d.removeEventListener("dragstart", _, !0), r.state() === null && b(d.document);
|
|
812
837
|
});
|
|
813
|
-
}), [
|
|
838
|
+
}), [v(Xn), n(w, {
|
|
814
839
|
get when() {
|
|
815
840
|
return r.state();
|
|
816
841
|
},
|
|
817
|
-
children: (
|
|
842
|
+
children: (d) => n(Re, {
|
|
818
843
|
get mount() {
|
|
819
844
|
return a().document.body;
|
|
820
845
|
},
|
|
821
846
|
get children() {
|
|
822
|
-
return n(
|
|
847
|
+
return n(bt, {
|
|
823
848
|
get left() {
|
|
824
|
-
return
|
|
849
|
+
return d().left;
|
|
825
850
|
},
|
|
826
851
|
get top() {
|
|
827
|
-
return
|
|
852
|
+
return d().top;
|
|
828
853
|
},
|
|
829
854
|
get right() {
|
|
830
|
-
return
|
|
855
|
+
return d().right;
|
|
831
856
|
},
|
|
832
857
|
get bottom() {
|
|
833
|
-
return
|
|
858
|
+
return d().bottom;
|
|
834
859
|
},
|
|
835
860
|
get anchor() {
|
|
836
|
-
return
|
|
861
|
+
return d().anchor;
|
|
837
862
|
},
|
|
838
863
|
get anchorAlignment() {
|
|
839
|
-
return
|
|
864
|
+
return d().anchorAlignment;
|
|
840
865
|
},
|
|
841
866
|
get anchorPosition() {
|
|
842
|
-
return
|
|
867
|
+
return d().anchorPosition;
|
|
843
868
|
},
|
|
844
869
|
get items() {
|
|
845
|
-
return
|
|
870
|
+
return d().items;
|
|
846
871
|
},
|
|
847
872
|
depth: 0,
|
|
848
873
|
get hostWin() {
|
|
@@ -852,32 +877,32 @@ function Yn(e = {}) {
|
|
|
852
877
|
return r.close;
|
|
853
878
|
},
|
|
854
879
|
get shortcutResolver() {
|
|
855
|
-
return
|
|
880
|
+
return i();
|
|
856
881
|
}
|
|
857
882
|
});
|
|
858
883
|
}
|
|
859
884
|
})
|
|
860
885
|
})];
|
|
861
886
|
}
|
|
862
|
-
function
|
|
887
|
+
function tr(e) {
|
|
863
888
|
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 };
|
|
864
889
|
}
|
|
865
|
-
function
|
|
890
|
+
function nr(e) {
|
|
866
891
|
const [r, a] = D(null);
|
|
867
892
|
return {
|
|
868
893
|
state: r,
|
|
869
|
-
open: (m, b,
|
|
870
|
-
const { el: _, toggle: S } =
|
|
894
|
+
open: (m, b, d, h) => {
|
|
895
|
+
const { el: _, toggle: S } = tr(h), y = r();
|
|
871
896
|
if (S && y && _ && y.triggerEl === _) {
|
|
872
897
|
a(null);
|
|
873
898
|
return;
|
|
874
899
|
}
|
|
875
|
-
const z =
|
|
900
|
+
const z = h ? Te(h) : null;
|
|
876
901
|
a({
|
|
877
902
|
left: m,
|
|
878
903
|
top: b,
|
|
879
904
|
anchor: { left: m, top: b, width: 0, height: 0 },
|
|
880
|
-
items:
|
|
905
|
+
items: d,
|
|
881
906
|
// Pin the menu to the window the trigger lives in — aux-safe for shared
|
|
882
907
|
// editor groups whose DOM is adopted into an aux window.
|
|
883
908
|
...z ? { ownerWindow: z } : {},
|
|
@@ -886,8 +911,8 @@ function Qn(e) {
|
|
|
886
911
|
});
|
|
887
912
|
},
|
|
888
913
|
openWithPlacement: (m, b) => {
|
|
889
|
-
const
|
|
890
|
-
if (
|
|
914
|
+
const d = r();
|
|
915
|
+
if (d && m.triggerEl && d.triggerEl === m.triggerEl) {
|
|
891
916
|
a(null);
|
|
892
917
|
return;
|
|
893
918
|
}
|
|
@@ -901,8 +926,8 @@ function Qn(e) {
|
|
|
901
926
|
shortcutResolver: e == null ? void 0 : e.shortcutResolver
|
|
902
927
|
};
|
|
903
928
|
}
|
|
904
|
-
const
|
|
905
|
-
function
|
|
929
|
+
const Ge = nr();
|
|
930
|
+
function _t(e) {
|
|
906
931
|
if (e.separator || e.type === "separator")
|
|
907
932
|
return {
|
|
908
933
|
type: "separator",
|
|
@@ -928,58 +953,58 @@ function gt(e) {
|
|
|
928
953
|
onSelect: a
|
|
929
954
|
} : {},
|
|
930
955
|
...e.submenu ? {
|
|
931
|
-
submenu: e.submenu.map(
|
|
956
|
+
submenu: e.submenu.map(_t)
|
|
932
957
|
} : {}
|
|
933
958
|
};
|
|
934
959
|
}
|
|
935
|
-
function
|
|
936
|
-
e.preventDefault(), e.stopPropagation(),
|
|
960
|
+
function Xi(e, r) {
|
|
961
|
+
e.preventDefault(), e.stopPropagation(), Ge.open(e.clientX, e.clientY, r.map(_t), e);
|
|
937
962
|
}
|
|
938
|
-
function
|
|
939
|
-
|
|
963
|
+
function Zi() {
|
|
964
|
+
Ge.close();
|
|
940
965
|
}
|
|
941
|
-
function
|
|
942
|
-
return n(
|
|
943
|
-
value:
|
|
966
|
+
function ec() {
|
|
967
|
+
return n(Nt.Provider, {
|
|
968
|
+
value: Ge,
|
|
944
969
|
get children() {
|
|
945
|
-
return n(
|
|
970
|
+
return n(er, {});
|
|
946
971
|
}
|
|
947
972
|
});
|
|
948
973
|
}
|
|
949
|
-
const
|
|
950
|
-
root:
|
|
951
|
-
header:
|
|
952
|
-
headerClosable:
|
|
953
|
-
title:
|
|
954
|
-
headerActions:
|
|
955
|
-
body:
|
|
956
|
-
section:
|
|
957
|
-
sectionHeader:
|
|
958
|
-
sectionTitle:
|
|
959
|
-
sectionAside:
|
|
960
|
-
field:
|
|
961
|
-
fieldText:
|
|
962
|
-
fieldLabel:
|
|
963
|
-
fieldDescription:
|
|
964
|
-
fieldControl:
|
|
965
|
-
separator:
|
|
966
|
-
footer:
|
|
967
|
-
footerBetween:
|
|
968
|
-
footerStretch:
|
|
974
|
+
const rr = "vk_root_B3p1P", or = "vk_header_m86aH", ar = "vk_headerClosable_qZJYa", sr = "vk_title_iMvk7", ir = "vk_headerActions_nNOSK", cr = "vk_body_gPJbb", lr = "vk_section_IQiWf", ur = "vk_sectionHeader_kxaBm", dr = "vk_sectionTitle_ygxTo vk_sectionLabel_WuN5V", mr = "vk_sectionAside_1geCf", fr = "vk_field_KGZ79", hr = "vk_fieldText_-F0vc", gr = "vk_fieldLabel_Edhqk", vr = "vk_fieldDescription_UIVq3", br = "vk_fieldControl_6qm3p", _r = "vk_separator_VeGkl vk_separator_zMw59", wr = "vk_footer_yuP7q", kr = "vk_footerBetween_UbaYB", pr = "vk_footerStretch_1rukw", H = {
|
|
975
|
+
root: rr,
|
|
976
|
+
header: or,
|
|
977
|
+
headerClosable: ar,
|
|
978
|
+
title: sr,
|
|
979
|
+
headerActions: ir,
|
|
980
|
+
body: cr,
|
|
981
|
+
section: lr,
|
|
982
|
+
sectionHeader: ur,
|
|
983
|
+
sectionTitle: dr,
|
|
984
|
+
sectionAside: mr,
|
|
985
|
+
field: fr,
|
|
986
|
+
fieldText: hr,
|
|
987
|
+
fieldLabel: gr,
|
|
988
|
+
fieldDescription: vr,
|
|
989
|
+
fieldControl: br,
|
|
990
|
+
separator: _r,
|
|
991
|
+
footer: wr,
|
|
992
|
+
footerBetween: kr,
|
|
993
|
+
footerStretch: pr
|
|
969
994
|
};
|
|
970
|
-
var
|
|
995
|
+
var yr = ["<div", ">", "", "</div>"], wt = ["<span", ">", "</span>"], Cr = ["<section", "><div", ">", "", "</div>", "</section>"], $r = ["<div", "><div", "><span", ">", "</span>", "</div><div", ">", "</div></div>"], Sr = ['<div role="separator"', "></div>"];
|
|
971
996
|
function _e(...e) {
|
|
972
997
|
return e.filter((r) => !!r).join(" ");
|
|
973
998
|
}
|
|
974
|
-
function
|
|
975
|
-
const [r, a] =
|
|
976
|
-
return n(Ce.Root,
|
|
999
|
+
function Lr(e) {
|
|
1000
|
+
const [r, a] = Tt(e, ["class"]);
|
|
1001
|
+
return n(Ce.Root, Ke({
|
|
977
1002
|
get class() {
|
|
978
1003
|
return _e(H.root, r.class);
|
|
979
1004
|
}
|
|
980
1005
|
}, a));
|
|
981
1006
|
}
|
|
982
|
-
function
|
|
1007
|
+
function Ir(e) {
|
|
983
1008
|
return n(Ce.Header, {
|
|
984
1009
|
get class() {
|
|
985
1010
|
return _e(H.header, e.onClose !== void 0 && H.headerClosable, e.class);
|
|
@@ -998,7 +1023,7 @@ function kr(e) {
|
|
|
998
1023
|
return e.actions !== void 0 || e.onClose !== void 0;
|
|
999
1024
|
},
|
|
1000
1025
|
get children() {
|
|
1001
|
-
return
|
|
1026
|
+
return v(yr, o("class", t(H.headerActions, !0), !1), t(e.actions), t(n(w, {
|
|
1002
1027
|
get when() {
|
|
1003
1028
|
return e.onClose !== void 0;
|
|
1004
1029
|
},
|
|
@@ -1008,10 +1033,10 @@ function kr(e) {
|
|
|
1008
1033
|
size: "xs",
|
|
1009
1034
|
iconOnly: !0,
|
|
1010
1035
|
get leadingIcon() {
|
|
1011
|
-
return n(
|
|
1036
|
+
return n(Qe, {});
|
|
1012
1037
|
},
|
|
1013
1038
|
get "aria-label"() {
|
|
1014
|
-
return e.closeLabel ??
|
|
1039
|
+
return e.closeLabel ?? c("Close");
|
|
1015
1040
|
},
|
|
1016
1041
|
onClick: () => {
|
|
1017
1042
|
var r;
|
|
@@ -1025,7 +1050,7 @@ function kr(e) {
|
|
|
1025
1050
|
}
|
|
1026
1051
|
});
|
|
1027
1052
|
}
|
|
1028
|
-
function
|
|
1053
|
+
function xr(e) {
|
|
1029
1054
|
return n(Ce.Body, {
|
|
1030
1055
|
get class() {
|
|
1031
1056
|
return _e(H.body, e.class);
|
|
@@ -1035,9 +1060,9 @@ function pr(e) {
|
|
|
1035
1060
|
}
|
|
1036
1061
|
});
|
|
1037
1062
|
}
|
|
1038
|
-
function
|
|
1063
|
+
function Ar(e) {
|
|
1039
1064
|
const r = j();
|
|
1040
|
-
return
|
|
1065
|
+
return v(Cr, o("aria-labelledby", t(r, !0), !1) + o("class", t(_e(H.section, e.class), !0), !1), o("class", t(H.sectionHeader, !0), !1), t(n(Ce.Title, {
|
|
1041
1066
|
as: "h4",
|
|
1042
1067
|
id: r,
|
|
1043
1068
|
get class() {
|
|
@@ -1051,20 +1076,20 @@ function yr(e) {
|
|
|
1051
1076
|
return e.aside !== void 0;
|
|
1052
1077
|
},
|
|
1053
1078
|
get children() {
|
|
1054
|
-
return
|
|
1079
|
+
return v(wt, o("class", t(H.sectionAside, !0), !1), t(e.aside));
|
|
1055
1080
|
}
|
|
1056
1081
|
})), t(e.children));
|
|
1057
1082
|
}
|
|
1058
|
-
function
|
|
1083
|
+
function Tr(e) {
|
|
1059
1084
|
const r = j(), a = j();
|
|
1060
|
-
return
|
|
1085
|
+
return v($r, o("class", t(_e(H.field, e.class), !0), !1), o("class", t(H.fieldText, !0), !1), o("id", t(r, !0), !1) + o("class", t(H.fieldLabel, !0), !1), t(e.label), t(n(w, {
|
|
1061
1086
|
get when() {
|
|
1062
1087
|
return e.description !== void 0;
|
|
1063
1088
|
},
|
|
1064
1089
|
get children() {
|
|
1065
|
-
return
|
|
1090
|
+
return v(wt, o("id", t(a, !0), !1) + o("class", t(H.fieldDescription, !0), !1), t(e.description));
|
|
1066
1091
|
}
|
|
1067
|
-
})), o("class", t(H.fieldControl, !0), !1), t(n(
|
|
1092
|
+
})), o("class", t(H.fieldControl, !0), !1), t(n(Mt, {
|
|
1068
1093
|
value: {
|
|
1069
1094
|
labelId: r,
|
|
1070
1095
|
describedBy: () => e.description !== void 0 ? a : void 0,
|
|
@@ -1075,10 +1100,10 @@ function Cr(e) {
|
|
|
1075
1100
|
}
|
|
1076
1101
|
})));
|
|
1077
1102
|
}
|
|
1078
|
-
function
|
|
1079
|
-
return
|
|
1103
|
+
function Dr(e) {
|
|
1104
|
+
return v(Sr, o("class", t(_e(H.separator, e.class), !0), !1));
|
|
1080
1105
|
}
|
|
1081
|
-
function
|
|
1106
|
+
function Mr(e) {
|
|
1082
1107
|
const r = () => e.align === "between" ? H.footerBetween : e.align === "stretch" ? H.footerStretch : void 0;
|
|
1083
1108
|
return n(Ce.Footer, {
|
|
1084
1109
|
get class() {
|
|
@@ -1089,37 +1114,37 @@ function Sr(e) {
|
|
|
1089
1114
|
}
|
|
1090
1115
|
});
|
|
1091
1116
|
}
|
|
1092
|
-
const
|
|
1093
|
-
Root:
|
|
1094
|
-
Header:
|
|
1095
|
-
Body:
|
|
1096
|
-
Section:
|
|
1097
|
-
Field:
|
|
1098
|
-
Separator:
|
|
1099
|
-
Footer:
|
|
1100
|
-
},
|
|
1101
|
-
backdrop:
|
|
1102
|
-
drawer:
|
|
1103
|
-
placementRight:
|
|
1104
|
-
placementLeft:
|
|
1105
|
-
placementBottom:
|
|
1106
|
-
sizeSm:
|
|
1107
|
-
sizeMd:
|
|
1108
|
-
sizeLg:
|
|
1109
|
-
contained:
|
|
1110
|
-
header:
|
|
1111
|
-
title:
|
|
1112
|
-
closeBtn:
|
|
1113
|
-
body:
|
|
1114
|
-
bodyContent:
|
|
1115
|
-
footer:
|
|
1117
|
+
const tc = {
|
|
1118
|
+
Root: Lr,
|
|
1119
|
+
Header: Ir,
|
|
1120
|
+
Body: xr,
|
|
1121
|
+
Section: Ar,
|
|
1122
|
+
Field: Tr,
|
|
1123
|
+
Separator: Dr,
|
|
1124
|
+
Footer: Mr
|
|
1125
|
+
}, Rr = "vk_backdrop_OD2hy", Er = "vk_drawer_TB0OC", Pr = "vk_placementRight_qWrAL", Br = "vk_placementLeft_zWVlF", Or = "vk_placementBottom_ZOZT3", zr = "vk_sizeSm_GISo4", Wr = "vk_sizeMd_GHr9h", Nr = "vk_sizeLg_RCTZF", Fr = "vk_contained_edUdc", Hr = "vk_header_NeiDb", Vr = "vk_title_ku48d", qr = "vk_closeBtn_1vaaT", jr = "vk_body_XAjO6", Kr = "vk_bodyContent_8qDK-", Yr = "vk_footer_vRDdY", Y = {
|
|
1126
|
+
backdrop: Rr,
|
|
1127
|
+
drawer: Er,
|
|
1128
|
+
placementRight: Pr,
|
|
1129
|
+
placementLeft: Br,
|
|
1130
|
+
placementBottom: Or,
|
|
1131
|
+
sizeSm: zr,
|
|
1132
|
+
sizeMd: Wr,
|
|
1133
|
+
sizeLg: Nr,
|
|
1134
|
+
contained: Fr,
|
|
1135
|
+
header: Hr,
|
|
1136
|
+
title: Vr,
|
|
1137
|
+
closeBtn: qr,
|
|
1138
|
+
body: jr,
|
|
1139
|
+
bodyContent: Kr,
|
|
1140
|
+
footer: Yr
|
|
1116
1141
|
};
|
|
1117
|
-
var
|
|
1118
|
-
function
|
|
1119
|
-
const r = () => e.container !== void 0, a = G((
|
|
1142
|
+
var Ur = ["<h3", ">", "</h3>"], Qr = ["<div", ">", "</div>"], Gr = ["<footer", ">", "</footer>"], Jr = ['<div class="', '" role="dialog"', ' tabindex="-1"><header', ">", '<button type="button"', ">", "</button></header><div", ">", "</div>", "</div>"], Xr = "<div></div>";
|
|
1143
|
+
function nc(e) {
|
|
1144
|
+
const r = () => e.container !== void 0, a = G((h) => {
|
|
1120
1145
|
var _;
|
|
1121
|
-
return e.open ?
|
|
1122
|
-
}, null),
|
|
1146
|
+
return e.open ? h ?? ((_ = e.container) != null && _.isConnected ? e.container.ownerDocument : Ae().document) : null;
|
|
1147
|
+
}, null), i = Pe(() => e.open, "drawer", {
|
|
1123
1148
|
// Read on every check: a contained drawer takes part in the dismissal order like a
|
|
1124
1149
|
// popover and occludes only its bounds; a window drawer blocks the whole window.
|
|
1125
1150
|
get type() {
|
|
@@ -1132,90 +1157,95 @@ function Gi(e) {
|
|
|
1132
1157
|
open: () => e.open,
|
|
1133
1158
|
ownerDocument: () => a() ?? Ae().document
|
|
1134
1159
|
});
|
|
1135
|
-
const
|
|
1160
|
+
const u = () => e.placement ?? "right", m = () => e.size ?? "md", b = () => u() === "left" ? Y.placementLeft : u() === "bottom" ? Y.placementBottom : Y.placementRight, d = () => m() === "sm" ? Y.sizeSm : m() === "lg" ? Y.sizeLg : Y.sizeMd;
|
|
1136
1161
|
return te(() => {
|
|
1137
1162
|
var S;
|
|
1138
|
-
const
|
|
1139
|
-
if (!
|
|
1163
|
+
const h = (S = a()) == null ? void 0 : S.defaultView;
|
|
1164
|
+
if (!h) return;
|
|
1140
1165
|
const _ = (y) => {
|
|
1141
|
-
!ge(y, "Escape") || !
|
|
1166
|
+
!ge(y, "Escape") || !i.isTopmost() || (y.stopPropagation(), y.stopImmediatePropagation(), e.onClose());
|
|
1142
1167
|
};
|
|
1143
|
-
|
|
1168
|
+
h.addEventListener("keydown", _, !0), Q(() => h.removeEventListener("keydown", _, !0));
|
|
1144
1169
|
}), n(w, {
|
|
1145
1170
|
get when() {
|
|
1146
1171
|
return a();
|
|
1147
1172
|
},
|
|
1148
|
-
children: (
|
|
1173
|
+
children: (h) => n(Re, {
|
|
1149
1174
|
get mount() {
|
|
1150
|
-
return e.container ??
|
|
1175
|
+
return e.container ?? h().body;
|
|
1151
1176
|
},
|
|
1152
1177
|
get children() {
|
|
1153
|
-
return [
|
|
1178
|
+
return [It("div", Ke({
|
|
1179
|
+
get class() {
|
|
1180
|
+
return `${Y.backdrop} ${r() ? Y.contained : ""}`;
|
|
1181
|
+
},
|
|
1182
|
+
"aria-hidden": "true"
|
|
1183
|
+
}, () => Kt("dialog-backdrop")), void 0, !1), v(Jr, `${t(Y.drawer, !0)} ${t(b(), !0)} ${t(d(), !0)} ${r() ? t(Y.contained, !0) : ""} ${t(e.class ?? "", !0)}`, o("aria-modal", r() ? t(void 0, !0) : "true", !1) + o("aria-label", t(e.ariaLabel ?? e.title ?? c("Drawer"), !0), !1), o("class", t(Y.header, !0), !1), t(n(w, {
|
|
1154
1184
|
get when() {
|
|
1155
1185
|
return e.title;
|
|
1156
1186
|
},
|
|
1157
1187
|
get fallback() {
|
|
1158
|
-
return
|
|
1188
|
+
return v(Xr);
|
|
1159
1189
|
},
|
|
1160
1190
|
get children() {
|
|
1161
|
-
return
|
|
1191
|
+
return v(Ur, o("class", t(Y.title, !0), !1), t(e.title));
|
|
1162
1192
|
}
|
|
1163
|
-
})), o("class", t(Y.closeBtn, !0), !1) + o("aria-label", t(
|
|
1193
|
+
})), o("class", t(Y.closeBtn, !0), !1) + o("aria-label", t(c("Close drawer"), !0), !1) + o("title", t(c("Close"), !0), !1), t(n(Qe, {
|
|
1164
1194
|
"aria-hidden": "true"
|
|
1165
1195
|
})), o("class", t(Y.body, !0), !1), t(n(be, {
|
|
1166
1196
|
get children() {
|
|
1167
|
-
return
|
|
1197
|
+
return v(Qr, o("class", t(Y.bodyContent, !0), !1), t(e.children));
|
|
1168
1198
|
}
|
|
1169
1199
|
})), t(n(w, {
|
|
1170
1200
|
get when() {
|
|
1171
1201
|
return e.footer;
|
|
1172
1202
|
},
|
|
1173
1203
|
get children() {
|
|
1174
|
-
return
|
|
1204
|
+
return v(Gr, o("class", t(Y.footer, !0), !1), t(e.footer));
|
|
1175
1205
|
}
|
|
1176
1206
|
})))];
|
|
1177
1207
|
}
|
|
1178
1208
|
})
|
|
1179
1209
|
});
|
|
1180
1210
|
}
|
|
1181
|
-
const
|
|
1182
|
-
list:
|
|
1183
|
-
listViewport:
|
|
1184
|
-
section:
|
|
1185
|
-
sectionHeader:
|
|
1186
|
-
sectionLabel:
|
|
1187
|
-
sectionAside:
|
|
1188
|
-
item:
|
|
1189
|
-
itemSelected:
|
|
1190
|
-
itemActive:
|
|
1191
|
-
itemDanger:
|
|
1192
|
-
check:
|
|
1193
|
-
icon:
|
|
1194
|
-
text:
|
|
1195
|
-
labelLine:
|
|
1196
|
-
label:
|
|
1197
|
-
badge:
|
|
1198
|
-
description:
|
|
1199
|
-
meta:
|
|
1200
|
-
trailing:
|
|
1201
|
-
entry:
|
|
1202
|
-
entryMain:
|
|
1203
|
-
entryDisabled:
|
|
1204
|
-
separator:
|
|
1205
|
-
empty:
|
|
1206
|
-
search:
|
|
1207
|
-
disclosure:
|
|
1208
|
-
disclosureChevron:
|
|
1209
|
-
disclosureChevronOpen:
|
|
1210
|
-
disclosureBody:
|
|
1211
|
-
disclosureBodyIndented:
|
|
1212
|
-
visuallyHidden:
|
|
1211
|
+
const Zr = "vk_list_iYUkw", eo = "vk_listViewport_JwNDT", to = "vk_section_zygSY", no = "vk_sectionHeader_m2b8a", ro = "vk_sectionLabel_WuN5V", oo = "vk_sectionAside_P5VF4", ao = "vk_item_ZIjh8 vk_item_neWq-", so = "vk_itemSelected_HK9is vk_itemSelected_f4xDB", io = "vk_itemActive_GPKO0 vk_itemActive_vyOXZ", co = "vk_itemDanger_hwpDy", lo = "vk_check_mPaKX vk_check_dO3aK", uo = "vk_icon_QIgcd vk_itemIcon_bv6oS", mo = "vk_text_urFay", fo = "vk_labelLine_1jtiD", ho = "vk_label_DTLHt vk_label_zTITb", go = "vk_badge_sFW5I", vo = "vk_description_gm3kI", bo = "vk_meta_zRD2G vk_shortcut_S1oQc", _o = "vk_trailing_5nqrI", wo = "vk_entry_FJLiI", ko = "vk_entryMain_2COS4", po = "vk_entryDisabled_nigmQ vk_itemDisabled_OROlk", yo = "vk_separator_NRGSq vk_separator_zMw59", Co = "vk_empty_TWf-X vk_empty_oOHu3", $o = "vk_search_uj4-c", So = "vk_disclosure_WxAg6", Lo = "vk_disclosureChevron_aw7Fx vk_chevron_pb9D1", Io = "vk_disclosureChevronOpen_WImPp", xo = "vk_disclosureBody_StI9b", Ao = "vk_disclosureBodyIndented_t4GxF", To = "vk_visuallyHidden_u-q6B", x = {
|
|
1212
|
+
list: Zr,
|
|
1213
|
+
listViewport: eo,
|
|
1214
|
+
section: to,
|
|
1215
|
+
sectionHeader: no,
|
|
1216
|
+
sectionLabel: ro,
|
|
1217
|
+
sectionAside: oo,
|
|
1218
|
+
item: ao,
|
|
1219
|
+
itemSelected: so,
|
|
1220
|
+
itemActive: io,
|
|
1221
|
+
itemDanger: co,
|
|
1222
|
+
check: lo,
|
|
1223
|
+
icon: uo,
|
|
1224
|
+
text: mo,
|
|
1225
|
+
labelLine: fo,
|
|
1226
|
+
label: ho,
|
|
1227
|
+
badge: go,
|
|
1228
|
+
description: vo,
|
|
1229
|
+
meta: bo,
|
|
1230
|
+
trailing: _o,
|
|
1231
|
+
entry: wo,
|
|
1232
|
+
entryMain: ko,
|
|
1233
|
+
entryDisabled: po,
|
|
1234
|
+
separator: yo,
|
|
1235
|
+
empty: Co,
|
|
1236
|
+
search: $o,
|
|
1237
|
+
disclosure: So,
|
|
1238
|
+
disclosureChevron: Lo,
|
|
1239
|
+
disclosureChevronOpen: Io,
|
|
1240
|
+
disclosureBody: xo,
|
|
1241
|
+
disclosureBodyIndented: Ao,
|
|
1242
|
+
visuallyHidden: To
|
|
1213
1243
|
};
|
|
1214
|
-
var ve = ["<span", ">", "</span>"],
|
|
1244
|
+
var ve = ["<span", ">", "</span>"], Do = ['<div role="group"', "><div", "><span", ">", "</span>", "</div>", "</div>"], je = ["<span", ' aria-hidden="true">', "</span>"], Mo = ["<span", "><span", "><span", ">", "</span>", "</span>", "</span>"], Ro = ["<div", ">", "<span", ">", "</span></div>"], Eo = ['<div role="separator"', "></div>"], kt = ["<div", ">", "</div>"], Po = ["<span", "><span", "><span", ">", "</span></span>", "</span>"], Bo = ["<div", ' role="group"', ">", "</div>"], Oo = ["<div", ">", "", "</div>"];
|
|
1215
1245
|
function le(...e) {
|
|
1216
1246
|
return e.filter((r) => !!r).join(" ");
|
|
1217
1247
|
}
|
|
1218
|
-
function
|
|
1248
|
+
function zo(e) {
|
|
1219
1249
|
return n(be, {
|
|
1220
1250
|
get rootClass() {
|
|
1221
1251
|
return le(x.list, e.class);
|
|
@@ -1234,29 +1264,29 @@ function Mo(e) {
|
|
|
1234
1264
|
}
|
|
1235
1265
|
});
|
|
1236
1266
|
}
|
|
1237
|
-
function
|
|
1267
|
+
function Wo(e) {
|
|
1238
1268
|
const r = j();
|
|
1239
|
-
return
|
|
1269
|
+
return v(Do, o("aria-labelledby", t(r, !0), !1) + o("class", t(le(x.section, e.class), !0), !1), o("class", t(x.sectionHeader, !0), !1), o("id", t(r, !0), !1) + o("class", t(x.sectionLabel, !0), !1), t(e.label), t(n(w, {
|
|
1240
1270
|
get when() {
|
|
1241
1271
|
return e.aside !== void 0;
|
|
1242
1272
|
},
|
|
1243
1273
|
get children() {
|
|
1244
|
-
return
|
|
1274
|
+
return v(ve, o("class", t(x.sectionAside, !0), !1), t(e.aside));
|
|
1245
1275
|
}
|
|
1246
1276
|
})), t(e.children));
|
|
1247
1277
|
}
|
|
1248
|
-
function
|
|
1249
|
-
const r = j(), a = () => e.role ?? (e.checked !== void 0 ? "menuitemcheckbox" : "menuitem"),
|
|
1278
|
+
function No(e) {
|
|
1279
|
+
const r = j(), a = () => e.role ?? (e.checked !== void 0 ? "menuitemcheckbox" : "menuitem"), i = () => a() === "menuitemcheckbox" || a() === "menuitemradio", u = () => e.checked !== void 0 || e.reserveCheck === !0, m = () => e.icon !== void 0 || e.reserveIcon === !0, b = () => e.trailing !== void 0, d = () => b() && a() === "menuitem", h = () => [n(w, {
|
|
1250
1280
|
get when() {
|
|
1251
|
-
return
|
|
1281
|
+
return u();
|
|
1252
1282
|
},
|
|
1253
1283
|
get children() {
|
|
1254
|
-
return
|
|
1284
|
+
return v(je, o("class", t(x.check, !0), !1), t(n(w, {
|
|
1255
1285
|
get when() {
|
|
1256
1286
|
return e.checked === !0;
|
|
1257
1287
|
},
|
|
1258
1288
|
get children() {
|
|
1259
|
-
return n(
|
|
1289
|
+
return n(ht, {});
|
|
1260
1290
|
}
|
|
1261
1291
|
})));
|
|
1262
1292
|
}
|
|
@@ -1265,46 +1295,46 @@ function Eo(e) {
|
|
|
1265
1295
|
return m();
|
|
1266
1296
|
},
|
|
1267
1297
|
get children() {
|
|
1268
|
-
return
|
|
1298
|
+
return v(je, o("class", t(x.icon, !0), !1), t(e.icon));
|
|
1269
1299
|
}
|
|
1270
|
-
}),
|
|
1300
|
+
}), v(Mo, o("class", t(x.text, !0), !1) + o("title", t(e.title ?? e.hint, !0), !1), o("class", t(x.labelLine, !0), !1), o("class", t(x.label, !0), !1), t(e.label), t(n(w, {
|
|
1271
1301
|
get when() {
|
|
1272
1302
|
return e.badge !== void 0;
|
|
1273
1303
|
},
|
|
1274
1304
|
get children() {
|
|
1275
|
-
return
|
|
1305
|
+
return v(ve, o("class", t(x.badge, !0), !1), t(e.badge));
|
|
1276
1306
|
}
|
|
1277
1307
|
})), t(n(w, {
|
|
1278
1308
|
get when() {
|
|
1279
1309
|
return e.description !== void 0;
|
|
1280
1310
|
},
|
|
1281
1311
|
get children() {
|
|
1282
|
-
return
|
|
1312
|
+
return v(ve, o("class", t(x.description, !0), !1), t(e.description));
|
|
1283
1313
|
}
|
|
1284
1314
|
}))), n(w, {
|
|
1285
1315
|
get when() {
|
|
1286
1316
|
return e.meta !== void 0;
|
|
1287
1317
|
},
|
|
1288
1318
|
get children() {
|
|
1289
|
-
return
|
|
1319
|
+
return v(ve, o("class", t(x.meta, !0), !1), t(e.meta));
|
|
1290
1320
|
}
|
|
1291
1321
|
}), n(w, {
|
|
1292
1322
|
get when() {
|
|
1293
|
-
return
|
|
1323
|
+
return d();
|
|
1294
1324
|
},
|
|
1295
1325
|
get children() {
|
|
1296
|
-
return
|
|
1326
|
+
return v(ve, o("class", t(x.trailing, !0), !1), t(e.trailing));
|
|
1297
1327
|
}
|
|
1298
1328
|
}), n(w, {
|
|
1299
1329
|
get when() {
|
|
1300
1330
|
return e.hint;
|
|
1301
1331
|
},
|
|
1302
1332
|
get children() {
|
|
1303
|
-
return
|
|
1333
|
+
return v(ve, o("id", t(r, !0), !1) + o("class", t(x.visuallyHidden, !0), !1), t(e.hint));
|
|
1304
1334
|
}
|
|
1305
1335
|
})], _ = () => le((e.selected || e.pressed) && x.itemSelected, e.active && x.itemActive, e.danger && x.itemDanger), S = (y) => n(ye, {
|
|
1306
1336
|
get as() {
|
|
1307
|
-
return
|
|
1337
|
+
return d() ? "div" : "button";
|
|
1308
1338
|
},
|
|
1309
1339
|
get id() {
|
|
1310
1340
|
return e.id;
|
|
@@ -1317,7 +1347,7 @@ function Eo(e) {
|
|
|
1317
1347
|
return e.disabled;
|
|
1318
1348
|
},
|
|
1319
1349
|
get "aria-checked"() {
|
|
1320
|
-
return ee(() => !!
|
|
1350
|
+
return ee(() => !!i())() ? e.checked === !0 : void 0;
|
|
1321
1351
|
},
|
|
1322
1352
|
get "aria-selected"() {
|
|
1323
1353
|
return ee(() => a() === "option")() ? e.selected === !0 : void 0;
|
|
@@ -1340,38 +1370,38 @@ function Eo(e) {
|
|
|
1340
1370
|
return (k = e.onContextMenu) == null ? void 0 : k.call(e, z);
|
|
1341
1371
|
},
|
|
1342
1372
|
get children() {
|
|
1343
|
-
return
|
|
1373
|
+
return h();
|
|
1344
1374
|
}
|
|
1345
1375
|
});
|
|
1346
1376
|
return n(w, {
|
|
1347
1377
|
get when() {
|
|
1348
|
-
return ee(() => !!b())() && !
|
|
1378
|
+
return ee(() => !!b())() && !d();
|
|
1349
1379
|
},
|
|
1350
1380
|
get fallback() {
|
|
1351
1381
|
return S(le(x.item, _(), e.class));
|
|
1352
1382
|
},
|
|
1353
1383
|
get children() {
|
|
1354
|
-
return
|
|
1384
|
+
return v(Ro, o("class", t(le(x.item, x.entry, _(), e.disabled && x.entryDisabled, e.class), !0), !1), t(S(x.entryMain)), o("class", t(x.trailing, !0), !1), t(e.trailing));
|
|
1355
1385
|
}
|
|
1356
1386
|
});
|
|
1357
1387
|
}
|
|
1358
|
-
function
|
|
1359
|
-
return
|
|
1388
|
+
function Fo(e) {
|
|
1389
|
+
return v(Eo, o("class", t(le(x.separator, e.class), !0), !1));
|
|
1360
1390
|
}
|
|
1361
|
-
function
|
|
1362
|
-
return
|
|
1391
|
+
function rc(e) {
|
|
1392
|
+
return v(kt, o("class", t(le(x.empty, e.class), !0), !1), t(e.children));
|
|
1363
1393
|
}
|
|
1364
|
-
function
|
|
1365
|
-
return
|
|
1394
|
+
function oc(e) {
|
|
1395
|
+
return v(kt, o("class", t(le(x.search, e.class), !0), !1), t(e.children));
|
|
1366
1396
|
}
|
|
1367
|
-
function
|
|
1368
|
-
const r = j(), a = j(), [
|
|
1397
|
+
function ac(e) {
|
|
1398
|
+
const r = j(), a = j(), [i, u] = D(e.defaultOpen ?? !1), m = () => e.open !== void 0 ? e.open : i(), b = () => e.icon !== void 0 || e.reserveIcon === !0, d = () => {
|
|
1369
1399
|
var _;
|
|
1370
1400
|
if (e.disabled) return;
|
|
1371
|
-
const
|
|
1372
|
-
e.open === void 0 &&
|
|
1401
|
+
const h = !m();
|
|
1402
|
+
e.open === void 0 && u(h), (_ = e.onToggle) == null || _.call(e, h);
|
|
1373
1403
|
};
|
|
1374
|
-
return
|
|
1404
|
+
return v(Oo, o("class", t(le(x.disclosure, e.class), !0), !1), t(n(ye, {
|
|
1375
1405
|
id: r,
|
|
1376
1406
|
get class() {
|
|
1377
1407
|
return x.item;
|
|
@@ -1385,23 +1415,23 @@ function Zi(e) {
|
|
|
1385
1415
|
get "aria-controls"() {
|
|
1386
1416
|
return m() ? a : void 0;
|
|
1387
1417
|
},
|
|
1388
|
-
onClick:
|
|
1418
|
+
onClick: d,
|
|
1389
1419
|
get children() {
|
|
1390
1420
|
return [n(w, {
|
|
1391
1421
|
get when() {
|
|
1392
1422
|
return b();
|
|
1393
1423
|
},
|
|
1394
1424
|
get children() {
|
|
1395
|
-
return
|
|
1425
|
+
return v(je, o("class", t(x.icon, !0), !1), t(e.icon));
|
|
1396
1426
|
}
|
|
1397
|
-
}),
|
|
1427
|
+
}), v(Po, o("class", t(x.text, !0), !1), o("class", t(x.labelLine, !0), !1), o("class", t(x.label, !0), !1), t(e.label), t(n(w, {
|
|
1398
1428
|
get when() {
|
|
1399
1429
|
return e.description !== void 0;
|
|
1400
1430
|
},
|
|
1401
1431
|
get children() {
|
|
1402
|
-
return
|
|
1432
|
+
return v(ve, o("class", t(x.description, !0), !1), t(e.description));
|
|
1403
1433
|
}
|
|
1404
|
-
}))), n(
|
|
1434
|
+
}))), n(ft, {
|
|
1405
1435
|
get class() {
|
|
1406
1436
|
return le(x.disclosureChevron, m() && x.disclosureChevronOpen);
|
|
1407
1437
|
},
|
|
@@ -1413,49 +1443,49 @@ function Zi(e) {
|
|
|
1413
1443
|
return m();
|
|
1414
1444
|
},
|
|
1415
1445
|
get children() {
|
|
1416
|
-
return
|
|
1446
|
+
return v(Bo, o("id", t(a, !0), !1), o("aria-labelledby", t(r, !0), !1) + o("class", t(le(x.disclosureBody, b() && x.disclosureBodyIndented, e.bodyClass), !0), !1), t(e.children));
|
|
1417
1447
|
}
|
|
1418
1448
|
})));
|
|
1419
1449
|
}
|
|
1420
|
-
const
|
|
1421
|
-
menuList:
|
|
1450
|
+
const Ho = "vk_menuList_Rdcyj", Vo = {
|
|
1451
|
+
menuList: Ho
|
|
1422
1452
|
};
|
|
1423
|
-
var
|
|
1424
|
-
function
|
|
1453
|
+
var qo = ["<div", ' style="', '">', "", "</div>"];
|
|
1454
|
+
function pt(e) {
|
|
1425
1455
|
return "type" in e && e.type === "separator";
|
|
1426
1456
|
}
|
|
1427
|
-
function
|
|
1457
|
+
function yt(e) {
|
|
1428
1458
|
return "type" in e && e.type === "section";
|
|
1429
1459
|
}
|
|
1430
|
-
function
|
|
1460
|
+
function jo(e) {
|
|
1431
1461
|
const r = [];
|
|
1432
|
-
let a,
|
|
1433
|
-
const
|
|
1434
|
-
|
|
1462
|
+
let a, i = [];
|
|
1463
|
+
const u = () => {
|
|
1464
|
+
i.length > 0 && r.push({
|
|
1435
1465
|
kind: "rows",
|
|
1436
1466
|
label: a,
|
|
1437
|
-
rows:
|
|
1438
|
-
}), a = void 0,
|
|
1467
|
+
rows: i
|
|
1468
|
+
}), a = void 0, i = [];
|
|
1439
1469
|
};
|
|
1440
1470
|
for (const m of e)
|
|
1441
|
-
|
|
1471
|
+
pt(m) ? (u(), r.push({
|
|
1442
1472
|
kind: "separator"
|
|
1443
|
-
})) :
|
|
1444
|
-
return
|
|
1473
|
+
})) : yt(m) ? (u(), a = m.label) : i.push(m);
|
|
1474
|
+
return u(), r;
|
|
1445
1475
|
}
|
|
1446
|
-
function
|
|
1476
|
+
function sc(e) {
|
|
1447
1477
|
const [r, a] = D(!1);
|
|
1448
|
-
let
|
|
1449
|
-
const
|
|
1478
|
+
let i = null;
|
|
1479
|
+
const u = () => e.open !== void 0 ? e.open : r(), m = (k) => {
|
|
1450
1480
|
e.onOpenChange && e.onOpenChange(k), e.open === void 0 && a(k);
|
|
1451
1481
|
}, b = () => {
|
|
1452
|
-
e.disabled || m(!
|
|
1453
|
-
},
|
|
1482
|
+
e.disabled || m(!u());
|
|
1483
|
+
}, d = (k) => {
|
|
1454
1484
|
var L;
|
|
1455
1485
|
k.disabled || (m(!1), (L = k.onSelect) == null || L.call(k));
|
|
1456
|
-
},
|
|
1486
|
+
}, h = G(() => e.items.filter((k) => !pt(k) && !yt(k))), _ = G(() => h().some((k) => !!k.icon)), S = G(() => h().some((k) => k.checked !== void 0)), y = G(() => jo(e.items)), z = (k) => n(me, {
|
|
1457
1487
|
each: k,
|
|
1458
|
-
children: (L) => n(
|
|
1488
|
+
children: (L) => n(No, {
|
|
1459
1489
|
get id() {
|
|
1460
1490
|
return L.id;
|
|
1461
1491
|
},
|
|
@@ -1489,10 +1519,10 @@ function ec(e) {
|
|
|
1489
1519
|
get disabled() {
|
|
1490
1520
|
return L.disabled;
|
|
1491
1521
|
},
|
|
1492
|
-
onSelect: () =>
|
|
1522
|
+
onSelect: () => d(L)
|
|
1493
1523
|
})
|
|
1494
1524
|
});
|
|
1495
|
-
return
|
|
1525
|
+
return v(qo, o("class", t(e.class, !0), !1), Z("display:", "inline-block"), t(n(w, {
|
|
1496
1526
|
get when() {
|
|
1497
1527
|
return e.trigger;
|
|
1498
1528
|
},
|
|
@@ -1510,55 +1540,55 @@ function ec(e) {
|
|
|
1510
1540
|
onClick: b,
|
|
1511
1541
|
"aria-haspopup": "menu",
|
|
1512
1542
|
get "aria-expanded"() {
|
|
1513
|
-
return
|
|
1543
|
+
return u();
|
|
1514
1544
|
},
|
|
1515
1545
|
get "aria-label"() {
|
|
1516
|
-
return e.ariaLabel ?? e.label ??
|
|
1546
|
+
return e.ariaLabel ?? e.label ?? c("Actions");
|
|
1517
1547
|
},
|
|
1518
1548
|
get trailingIcon() {
|
|
1519
|
-
return n(
|
|
1549
|
+
return n(ft, {
|
|
1520
1550
|
"aria-hidden": "true"
|
|
1521
1551
|
});
|
|
1522
1552
|
},
|
|
1523
1553
|
get children() {
|
|
1524
|
-
return e.label ??
|
|
1554
|
+
return e.label ?? c("Actions");
|
|
1525
1555
|
}
|
|
1526
1556
|
});
|
|
1527
1557
|
},
|
|
1528
1558
|
children: (k) => k()({
|
|
1529
|
-
open:
|
|
1559
|
+
open: u(),
|
|
1530
1560
|
toggle: b,
|
|
1531
|
-
ref: (L) =>
|
|
1561
|
+
ref: (L) => i = L,
|
|
1532
1562
|
ariaProps: {
|
|
1533
1563
|
"aria-haspopup": "menu",
|
|
1534
|
-
"aria-expanded":
|
|
1564
|
+
"aria-expanded": u()
|
|
1535
1565
|
}
|
|
1536
1566
|
})
|
|
1537
|
-
})), t(n(
|
|
1538
|
-
open:
|
|
1567
|
+
})), t(n(Vt, {
|
|
1568
|
+
open: u,
|
|
1539
1569
|
onClose: () => m(!1),
|
|
1540
|
-
anchor: () =>
|
|
1570
|
+
anchor: () => i,
|
|
1541
1571
|
get placement() {
|
|
1542
1572
|
return e.placement ?? "bottom-start";
|
|
1543
1573
|
},
|
|
1544
1574
|
role: "menu",
|
|
1545
1575
|
get ariaLabel() {
|
|
1546
|
-
return e.ariaLabel ?? e.label ??
|
|
1576
|
+
return e.ariaLabel ?? e.label ?? c("Dropdown menu");
|
|
1547
1577
|
},
|
|
1548
1578
|
get class() {
|
|
1549
1579
|
return e.surfaceClass;
|
|
1550
1580
|
},
|
|
1551
1581
|
get children() {
|
|
1552
|
-
return n(
|
|
1582
|
+
return n(zo, {
|
|
1553
1583
|
get class() {
|
|
1554
|
-
return `${
|
|
1584
|
+
return `${Vo.menuList} ${e.menuClass ?? ""}`;
|
|
1555
1585
|
},
|
|
1556
1586
|
get children() {
|
|
1557
1587
|
return n(me, {
|
|
1558
1588
|
get each() {
|
|
1559
1589
|
return y();
|
|
1560
1590
|
},
|
|
1561
|
-
children: (k) => k.kind === "separator" ? n(
|
|
1591
|
+
children: (k) => k.kind === "separator" ? n(Fo, {}) : k.label !== void 0 ? n(Wo, {
|
|
1562
1592
|
get label() {
|
|
1563
1593
|
return k.label;
|
|
1564
1594
|
},
|
|
@@ -1572,21 +1602,21 @@ function ec(e) {
|
|
|
1572
1602
|
}
|
|
1573
1603
|
})));
|
|
1574
1604
|
}
|
|
1575
|
-
const
|
|
1576
|
-
surface:
|
|
1577
|
-
item:
|
|
1578
|
-
check:
|
|
1579
|
-
shortcut:
|
|
1580
|
-
chevron:
|
|
1581
|
-
separator:
|
|
1582
|
-
itemActive:
|
|
1583
|
-
itemSelected:
|
|
1584
|
-
itemDisabled:
|
|
1585
|
-
label:
|
|
1586
|
-
itemIcon:
|
|
1587
|
-
viewport:
|
|
1588
|
-
empty:
|
|
1589
|
-
},
|
|
1605
|
+
const Ko = "vk_surface_3ZOnl", Yo = "vk_item_neWq-", Uo = "vk_check_dO3aK", Qo = "vk_shortcut_S1oQc", Go = "vk_chevron_pb9D1", Jo = "vk_separator_zMw59", Xo = "vk_itemActive_vyOXZ", Zo = "vk_itemSelected_f4xDB", ea = "vk_itemDisabled_OROlk", ta = "vk_label_zTITb", na = "vk_itemIcon_bv6oS", ra = "vk_viewport_B94pk", oa = "vk_empty_oOHu3", oe = {
|
|
1606
|
+
surface: Ko,
|
|
1607
|
+
item: Yo,
|
|
1608
|
+
check: Uo,
|
|
1609
|
+
shortcut: Qo,
|
|
1610
|
+
chevron: Go,
|
|
1611
|
+
separator: Jo,
|
|
1612
|
+
itemActive: Xo,
|
|
1613
|
+
itemSelected: Zo,
|
|
1614
|
+
itemDisabled: ea,
|
|
1615
|
+
label: ta,
|
|
1616
|
+
itemIcon: na,
|
|
1617
|
+
viewport: ra,
|
|
1618
|
+
empty: oa
|
|
1619
|
+
}, ic = Object.freeze({
|
|
1590
1620
|
surface: oe.surface,
|
|
1591
1621
|
viewport: oe.viewport,
|
|
1592
1622
|
item: oe.item,
|
|
@@ -1601,19 +1631,19 @@ const No = "vk_surface_3ZOnl", Fo = "vk_item_neWq-", Ho = "vk_check_dO3aK", Vo =
|
|
|
1601
1631
|
separator: oe.separator,
|
|
1602
1632
|
empty: oe.empty
|
|
1603
1633
|
});
|
|
1604
|
-
var
|
|
1605
|
-
function
|
|
1634
|
+
var aa = ['<span style="', '" aria-hidden="true"></span>'], sa = ["<div", "><span>", "</span>", "</div>"], ia = ["<div", ' role="tooltip" class="', '" style="', '">', "</div>"], ca = ["<span>", "</span>"];
|
|
1635
|
+
function cc() {
|
|
1606
1636
|
let e, r;
|
|
1607
|
-
const [a,
|
|
1637
|
+
const [a, i] = D({
|
|
1608
1638
|
top: -9999,
|
|
1609
1639
|
left: -9999
|
|
1610
|
-
}),
|
|
1611
|
-
const _ =
|
|
1640
|
+
}), u = Ve.activeTooltip, m = () => Te(e), b = () => {
|
|
1641
|
+
const _ = u(), S = m();
|
|
1612
1642
|
return _ !== null && S !== null && Te(_.target) === S;
|
|
1613
1643
|
};
|
|
1614
1644
|
te(() => {
|
|
1615
|
-
if (!
|
|
1616
|
-
|
|
1645
|
+
if (!u() || !b()) {
|
|
1646
|
+
i({
|
|
1617
1647
|
top: -9999,
|
|
1618
1648
|
left: -9999
|
|
1619
1649
|
});
|
|
@@ -1628,15 +1658,15 @@ function nc() {
|
|
|
1628
1658
|
typeof y.removeEventListener == "function" && y.removeEventListener("resize", S);
|
|
1629
1659
|
}));
|
|
1630
1660
|
});
|
|
1631
|
-
const
|
|
1632
|
-
const _ =
|
|
1661
|
+
const d = () => {
|
|
1662
|
+
const _ = u();
|
|
1633
1663
|
return _ ? typeof _.content == "function" ? _.content() : _.content : null;
|
|
1634
|
-
},
|
|
1635
|
-
const _ =
|
|
1664
|
+
}, h = () => {
|
|
1665
|
+
const _ = u();
|
|
1636
1666
|
if (_)
|
|
1637
1667
|
return typeof _.shortcut == "function" ? _.shortcut() : _.shortcut;
|
|
1638
1668
|
};
|
|
1639
|
-
return [
|
|
1669
|
+
return [v(aa, Z("display:", "none")), n(w, {
|
|
1640
1670
|
get when() {
|
|
1641
1671
|
return ee(() => !!b())() ? m() : null;
|
|
1642
1672
|
},
|
|
@@ -1649,18 +1679,18 @@ function nc() {
|
|
|
1649
1679
|
idPrefix: "tooltip-host",
|
|
1650
1680
|
get children() {
|
|
1651
1681
|
var S;
|
|
1652
|
-
return
|
|
1682
|
+
return v(ia, o("id", t((S = u()) == null ? void 0 : S.id, !0), !1), `${t(Be.tooltip, !0)} ${t(Be.hostTooltip, !0)}`, Z("top:", `${t(a().top, !0)}px`) + Z(";left:", `${t(a().left, !0)}px`), t(n(w, {
|
|
1653
1683
|
get when() {
|
|
1654
|
-
return
|
|
1684
|
+
return h();
|
|
1655
1685
|
},
|
|
1656
1686
|
get fallback() {
|
|
1657
|
-
return
|
|
1687
|
+
return v(ca, t(d()));
|
|
1658
1688
|
},
|
|
1659
1689
|
get children() {
|
|
1660
|
-
return
|
|
1690
|
+
return v(sa, o("class", t(Be.tooltipInner, !0), !1), t(d()), t(n(ut, {
|
|
1661
1691
|
size: "xs",
|
|
1662
1692
|
get shortcut() {
|
|
1663
|
-
return
|
|
1693
|
+
return h();
|
|
1664
1694
|
}
|
|
1665
1695
|
})));
|
|
1666
1696
|
}
|
|
@@ -1669,13 +1699,13 @@ function nc() {
|
|
|
1669
1699
|
})
|
|
1670
1700
|
})];
|
|
1671
1701
|
}
|
|
1672
|
-
function
|
|
1673
|
-
const a = j(),
|
|
1702
|
+
function lc(e, r) {
|
|
1703
|
+
const a = j(), i = () => {
|
|
1674
1704
|
const b = r();
|
|
1675
1705
|
return b ? typeof b == "string" ? { content: b } : b : null;
|
|
1676
|
-
},
|
|
1677
|
-
const b =
|
|
1678
|
-
!b || !b.content || (
|
|
1706
|
+
}, u = () => {
|
|
1707
|
+
const b = i();
|
|
1708
|
+
!b || !b.content || (Jt(e), Ve.showTooltip({
|
|
1679
1709
|
id: a,
|
|
1680
1710
|
target: e,
|
|
1681
1711
|
content: b.content,
|
|
@@ -1685,158 +1715,154 @@ function rc(e, r) {
|
|
|
1685
1715
|
delayMs: b.delayMs
|
|
1686
1716
|
}));
|
|
1687
1717
|
}, m = () => {
|
|
1688
|
-
|
|
1689
|
-
const b = e.getAttribute("data-suppressed-title");
|
|
1690
|
-
b && e.setAttribute("title", b), e.removeAttribute("data-suppressed-title");
|
|
1691
|
-
}
|
|
1692
|
-
Fe.hideTooltip(e);
|
|
1718
|
+
Xt(e), Ve.hideTooltip(e);
|
|
1693
1719
|
};
|
|
1694
|
-
e.addEventListener("pointerenter",
|
|
1695
|
-
m(), e.removeEventListener("pointerenter",
|
|
1720
|
+
e.addEventListener("pointerenter", u), e.addEventListener("pointerleave", m), e.addEventListener("focusin", u), e.addEventListener("focusout", m), Q(() => {
|
|
1721
|
+
m(), e.removeEventListener("pointerenter", u), e.removeEventListener("pointerleave", m), e.removeEventListener("focusin", u), e.removeEventListener("focusout", m);
|
|
1696
1722
|
});
|
|
1697
1723
|
}
|
|
1698
|
-
function
|
|
1724
|
+
function uc(e, r) {
|
|
1699
1725
|
return e === "Escape" ? "dismiss" : e === "Enter" && r.step === "name" && r.nameMatches ? "advance" : "none";
|
|
1700
1726
|
}
|
|
1701
|
-
const
|
|
1702
|
-
overlay:
|
|
1703
|
-
dialog:
|
|
1704
|
-
header:
|
|
1705
|
-
warningIcon:
|
|
1706
|
-
title:
|
|
1707
|
-
body:
|
|
1708
|
-
description:
|
|
1709
|
-
resourceLine:
|
|
1710
|
-
resourceName:
|
|
1711
|
-
field:
|
|
1712
|
-
fieldLabel:
|
|
1713
|
-
input:
|
|
1714
|
-
inputMatch:
|
|
1715
|
-
optionsList:
|
|
1716
|
-
optionRow:
|
|
1717
|
-
optionLabel:
|
|
1718
|
-
optionDescription:
|
|
1719
|
-
finalNote:
|
|
1720
|
-
consequenceNote:
|
|
1721
|
-
selectedOptions:
|
|
1722
|
-
selectedList:
|
|
1723
|
-
codeScroll:
|
|
1724
|
-
code:
|
|
1725
|
-
codePre:
|
|
1726
|
-
countdown:
|
|
1727
|
-
footer:
|
|
1728
|
-
footerSpacer:
|
|
1729
|
-
},
|
|
1727
|
+
const la = "vk_overlay_Fd-y-", ua = "vk_dialog_Yf7zX", da = "vk_header_CYXMR", ma = "vk_warningIcon_qizN5", fa = "vk_title_DPV4m vk_titleLg_Iswm3", ha = "vk_body_Zvd50", ga = "vk_description_n-sBy", va = "vk_resourceLine_BeZWP", ba = "vk_resourceName_JQ9EK", _a = "vk_field_JETn-", wa = "vk_fieldLabel_u8YkC", ka = "vk_input_Smbpd", pa = "vk_inputMatch_k6go-", ya = "vk_optionsList_XwOCV", Ca = "vk_optionRow_OYLHB", $a = "vk_optionLabel_pJHcY", Sa = "vk_optionDescription_Zi6is", La = "vk_finalNote_PVV7h", Ia = "vk_consequenceNote_oaOZl", xa = "vk_selectedOptions_7tn0k", Aa = "vk_selectedList_LFTe1", Ta = "vk_codeScroll_7A6w3", Da = "vk_code_ozAuk", Ma = "vk_codePre_01c25", Ra = "vk_countdown_CJhCw", Ea = "vk_footer_v0cjd", Pa = "vk_footerSpacer_jQepg", E = {
|
|
1728
|
+
overlay: la,
|
|
1729
|
+
dialog: ua,
|
|
1730
|
+
header: da,
|
|
1731
|
+
warningIcon: ma,
|
|
1732
|
+
title: fa,
|
|
1733
|
+
body: ha,
|
|
1734
|
+
description: ga,
|
|
1735
|
+
resourceLine: va,
|
|
1736
|
+
resourceName: ba,
|
|
1737
|
+
field: _a,
|
|
1738
|
+
fieldLabel: wa,
|
|
1739
|
+
input: ka,
|
|
1740
|
+
inputMatch: pa,
|
|
1741
|
+
optionsList: ya,
|
|
1742
|
+
optionRow: Ca,
|
|
1743
|
+
optionLabel: $a,
|
|
1744
|
+
optionDescription: Sa,
|
|
1745
|
+
finalNote: La,
|
|
1746
|
+
consequenceNote: Ia,
|
|
1747
|
+
selectedOptions: xa,
|
|
1748
|
+
selectedList: Aa,
|
|
1749
|
+
codeScroll: Ta,
|
|
1750
|
+
code: Da,
|
|
1751
|
+
codePre: Ma,
|
|
1752
|
+
countdown: Ra,
|
|
1753
|
+
footer: Ea,
|
|
1754
|
+
footerSpacer: Pa
|
|
1755
|
+
}, Ct = {
|
|
1730
1756
|
delete: {
|
|
1731
1757
|
reversible: !1,
|
|
1732
|
-
lead: () =>
|
|
1733
|
-
note: () =>
|
|
1734
|
-
confirmLabel: () =>
|
|
1735
|
-
finalLabel: () =>
|
|
1758
|
+
lead: () => c("You are about to permanently delete"),
|
|
1759
|
+
note: () => c("This action cannot be undone."),
|
|
1760
|
+
confirmLabel: () => c("Delete"),
|
|
1761
|
+
finalLabel: () => c("Yes, delete now")
|
|
1736
1762
|
},
|
|
1737
1763
|
overwrite: {
|
|
1738
1764
|
reversible: !1,
|
|
1739
|
-
lead: () =>
|
|
1740
|
-
note: () =>
|
|
1741
|
-
confirmLabel: () =>
|
|
1742
|
-
finalLabel: () =>
|
|
1765
|
+
lead: () => c("You are about to delete or replace the existing data of"),
|
|
1766
|
+
note: () => c("This action cannot be undone."),
|
|
1767
|
+
confirmLabel: () => c("Continue"),
|
|
1768
|
+
finalLabel: () => c("Yes, overwrite now")
|
|
1743
1769
|
},
|
|
1744
1770
|
convert: {
|
|
1745
1771
|
reversible: !1,
|
|
1746
|
-
lead: () =>
|
|
1747
|
-
note: () =>
|
|
1772
|
+
lead: () => c("You are about to convert the stored values of"),
|
|
1773
|
+
note: () => c(
|
|
1748
1774
|
"Values that do not fit the new type are rounded or cut; they do not come back."
|
|
1749
1775
|
),
|
|
1750
|
-
confirmLabel: () =>
|
|
1751
|
-
finalLabel: () =>
|
|
1776
|
+
confirmLabel: () => c("Continue"),
|
|
1777
|
+
finalLabel: () => c("Yes, convert now")
|
|
1752
1778
|
},
|
|
1753
1779
|
// The note does not state the fate of an open transaction: that depends on the verb's option (cut
|
|
1754
1780
|
// after the transaction, or immediately) and is written in the description; what is true in every
|
|
1755
1781
|
// case is that an ended session does not come back.
|
|
1756
1782
|
"end-session": {
|
|
1757
1783
|
reversible: !1,
|
|
1758
|
-
lead: () =>
|
|
1759
|
-
note: () =>
|
|
1760
|
-
confirmLabel: () =>
|
|
1761
|
-
finalLabel: () =>
|
|
1784
|
+
lead: () => c("You are about to terminate"),
|
|
1785
|
+
note: () => c("An ended session cannot be resumed."),
|
|
1786
|
+
confirmLabel: () => c("Continue"),
|
|
1787
|
+
finalLabel: () => c("Yes, terminate now")
|
|
1762
1788
|
},
|
|
1763
1789
|
// The data stays but the sessions inside end and their open transactions are rolled back: irreversible.
|
|
1764
1790
|
close: {
|
|
1765
1791
|
reversible: !1,
|
|
1766
|
-
lead: () =>
|
|
1767
|
-
note: () =>
|
|
1792
|
+
lead: () => c("You are about to close"),
|
|
1793
|
+
note: () => c(
|
|
1768
1794
|
"Every session inside it ends and its open transaction is rolled back; the data is kept and it can be opened again."
|
|
1769
1795
|
),
|
|
1770
|
-
confirmLabel: () =>
|
|
1771
|
-
finalLabel: () =>
|
|
1796
|
+
confirmLabel: () => c("Close"),
|
|
1797
|
+
finalLabel: () => c("Yes, close now")
|
|
1772
1798
|
},
|
|
1773
1799
|
"lock-out": {
|
|
1774
1800
|
reversible: !1,
|
|
1775
|
-
lead: () =>
|
|
1776
|
-
note: () =>
|
|
1801
|
+
lead: () => c("You are about to take access away from the connected role"),
|
|
1802
|
+
note: () => c(
|
|
1777
1803
|
"Open sessions keep working, but this connection cannot log in as this role again."
|
|
1778
1804
|
),
|
|
1779
|
-
confirmLabel: () =>
|
|
1780
|
-
finalLabel: () =>
|
|
1805
|
+
confirmLabel: () => c("Continue"),
|
|
1806
|
+
finalLabel: () => c("Yes, change it now")
|
|
1781
1807
|
},
|
|
1782
1808
|
"cancel-statement": {
|
|
1783
1809
|
reversible: !0,
|
|
1784
|
-
lead: () =>
|
|
1785
|
-
note: () =>
|
|
1786
|
-
confirmLabel: () =>
|
|
1810
|
+
lead: () => c("You are about to stop the running statement of"),
|
|
1811
|
+
note: () => c("The session stays open; the statement can be run again."),
|
|
1812
|
+
confirmLabel: () => c("Stop statement")
|
|
1787
1813
|
},
|
|
1788
1814
|
"change-privileges": {
|
|
1789
1815
|
reversible: !0,
|
|
1790
|
-
lead: () =>
|
|
1791
|
-
note: () =>
|
|
1792
|
-
confirmLabel: () =>
|
|
1816
|
+
lead: () => c("You are about to change the privileges of"),
|
|
1817
|
+
note: () => c("The change can be reverted."),
|
|
1818
|
+
confirmLabel: () => c("Apply")
|
|
1793
1819
|
},
|
|
1794
1820
|
change: {
|
|
1795
1821
|
reversible: !0,
|
|
1796
|
-
lead: () =>
|
|
1797
|
-
note: () =>
|
|
1798
|
-
confirmLabel: () =>
|
|
1822
|
+
lead: () => c("You are about to change"),
|
|
1823
|
+
note: () => c("The change can be reverted."),
|
|
1824
|
+
confirmLabel: () => c("Apply")
|
|
1799
1825
|
},
|
|
1800
1826
|
rewrite: {
|
|
1801
1827
|
reversible: !0,
|
|
1802
|
-
lead: () =>
|
|
1828
|
+
lead: () => c("You are about to rebuild"),
|
|
1803
1829
|
// The lock depends on the verb's mode (CONCURRENTLY does not block writes) and is written in the description.
|
|
1804
|
-
note: () =>
|
|
1805
|
-
confirmLabel: () =>
|
|
1830
|
+
note: () => c("No data is lost."),
|
|
1831
|
+
confirmLabel: () => c("Rebuild")
|
|
1806
1832
|
},
|
|
1807
1833
|
"discard-cache": {
|
|
1808
1834
|
reversible: !0,
|
|
1809
|
-
lead: () =>
|
|
1810
|
-
note: () =>
|
|
1811
|
-
confirmLabel: () =>
|
|
1835
|
+
lead: () => c("You are about to discard the cached contents of"),
|
|
1836
|
+
note: () => c("No data is lost; the cache fills again as sessions run."),
|
|
1837
|
+
confirmLabel: () => c("Discard")
|
|
1812
1838
|
}
|
|
1813
1839
|
};
|
|
1814
|
-
function
|
|
1815
|
-
return !
|
|
1840
|
+
function $t(e) {
|
|
1841
|
+
return !Ct[e].reversible;
|
|
1816
1842
|
}
|
|
1817
|
-
function
|
|
1818
|
-
return
|
|
1843
|
+
function dc(e) {
|
|
1844
|
+
return $t(e) ? "typed" : "confirm";
|
|
1819
1845
|
}
|
|
1820
|
-
function
|
|
1821
|
-
const r =
|
|
1846
|
+
function Ba(e) {
|
|
1847
|
+
const r = Ct[e], a = {
|
|
1822
1848
|
lead: r.lead(),
|
|
1823
1849
|
note: r.note(),
|
|
1824
1850
|
confirmLabel: r.confirmLabel()
|
|
1825
1851
|
};
|
|
1826
1852
|
return r.reversible ? { ...a, level: "confirm" } : { ...a, level: "typed", finalLabel: r.finalLabel() };
|
|
1827
1853
|
}
|
|
1828
|
-
var
|
|
1829
|
-
function
|
|
1830
|
-
return
|
|
1854
|
+
var Oa = ["<div", ">", "<span", "></span>", "", "", "</div>"], za = ["<span>", " <span", ">(", "s)</span></span>"], Wa = ["<p", ">", " <span", ">", "</span></p>"], Na = ["<label", "><span", ">", "</span>", "</label>"], Fa = ["<div", ">", "</div>"], Ha = ["<span", ">", "</span>"], Va = ["<span", "><span>", "</span>", "</span>"], qa = ["<p", " data-consequence-line>", " <span", ">", "</span>.</p>"], ja = ["<p", ">", "</p>"], Ka = ["<div", "><span", ">", "</span><ul", ">", "</ul></div>"], Ya = ["<li>", "</li>"], Ua = ["<pre", "><code>", "</code></pre>"];
|
|
1855
|
+
function Qa(e) {
|
|
1856
|
+
return v(Oa, o("class", t(E.footer, !0), !1), t(n(J, {
|
|
1831
1857
|
size: "md",
|
|
1832
1858
|
variant: "secondary",
|
|
1833
1859
|
get onClick() {
|
|
1834
1860
|
return e.onCancel;
|
|
1835
1861
|
},
|
|
1836
1862
|
get children() {
|
|
1837
|
-
return
|
|
1863
|
+
return c("Cancel");
|
|
1838
1864
|
}
|
|
1839
|
-
})), o("class", t(
|
|
1865
|
+
})), o("class", t(E.footerSpacer, !0), !1), t(n(w, {
|
|
1840
1866
|
get when() {
|
|
1841
1867
|
return e.step() === "name";
|
|
1842
1868
|
},
|
|
@@ -1867,7 +1893,7 @@ function Va(e) {
|
|
|
1867
1893
|
return e.onBack;
|
|
1868
1894
|
},
|
|
1869
1895
|
get children() {
|
|
1870
|
-
return
|
|
1896
|
+
return c("Back");
|
|
1871
1897
|
}
|
|
1872
1898
|
}), n(J, {
|
|
1873
1899
|
size: "md",
|
|
@@ -1884,7 +1910,7 @@ function Va(e) {
|
|
|
1884
1910
|
return e.finalEnabled();
|
|
1885
1911
|
},
|
|
1886
1912
|
get fallback() {
|
|
1887
|
-
return
|
|
1913
|
+
return v(za, t(e.finalLabel()), o("class", t(E.countdown, !0), !1), t(e.countdown()));
|
|
1888
1914
|
},
|
|
1889
1915
|
get children() {
|
|
1890
1916
|
return e.finalLabel();
|
|
@@ -1911,10 +1937,10 @@ function Va(e) {
|
|
|
1911
1937
|
}
|
|
1912
1938
|
})));
|
|
1913
1939
|
}
|
|
1914
|
-
function
|
|
1915
|
-
return [
|
|
1940
|
+
function Ga(e) {
|
|
1941
|
+
return [v(Wa, o("class", t(E.resourceLine, !0), !1), t(c("To confirm, type the {label} below:", {
|
|
1916
1942
|
label: e.request().resourceLabel
|
|
1917
|
-
})), o("class", t(
|
|
1943
|
+
})), o("class", t(E.resourceName, !0), !1), t(e.request().resourceName)), v(Na, o("class", t(E.field, !0), !1), o("class", t(E.fieldLabel, !0), !1), t(e.request().resourceLabel), t(n(Ye, {
|
|
1918
1944
|
get class() {
|
|
1919
1945
|
return e.inputClass();
|
|
1920
1946
|
},
|
|
@@ -1930,19 +1956,19 @@ function qa(e) {
|
|
|
1930
1956
|
}
|
|
1931
1957
|
})))];
|
|
1932
1958
|
}
|
|
1933
|
-
function
|
|
1959
|
+
function tt(e) {
|
|
1934
1960
|
return n(w, {
|
|
1935
1961
|
get when() {
|
|
1936
1962
|
return e.options().length > 0;
|
|
1937
1963
|
},
|
|
1938
1964
|
get children() {
|
|
1939
|
-
return
|
|
1965
|
+
return v(Fa, o("class", t(E.optionsList, !0), !1), t(n(me, {
|
|
1940
1966
|
get each() {
|
|
1941
1967
|
return e.options();
|
|
1942
1968
|
},
|
|
1943
|
-
children: (r) => n(
|
|
1969
|
+
children: (r) => n(dt, {
|
|
1944
1970
|
get class() {
|
|
1945
|
-
return
|
|
1971
|
+
return E.optionRow;
|
|
1946
1972
|
},
|
|
1947
1973
|
get checked() {
|
|
1948
1974
|
return !!e.optionState()[r.id];
|
|
@@ -1952,12 +1978,12 @@ function Je(e) {
|
|
|
1952
1978
|
return r.label;
|
|
1953
1979
|
},
|
|
1954
1980
|
get children() {
|
|
1955
|
-
return
|
|
1981
|
+
return v(Va, o("class", t(E.optionLabel, !0), !1), t(r.label), t(n(w, {
|
|
1956
1982
|
get when() {
|
|
1957
1983
|
return r.description;
|
|
1958
1984
|
},
|
|
1959
1985
|
get children() {
|
|
1960
|
-
return
|
|
1986
|
+
return v(Ha, o("class", t(E.optionDescription, !0), !1), t(r.description));
|
|
1961
1987
|
}
|
|
1962
1988
|
})));
|
|
1963
1989
|
}
|
|
@@ -1966,153 +1992,153 @@ function Je(e) {
|
|
|
1966
1992
|
}
|
|
1967
1993
|
});
|
|
1968
1994
|
}
|
|
1969
|
-
function
|
|
1970
|
-
return [
|
|
1995
|
+
function nt(e) {
|
|
1996
|
+
return [v(qa, o("class", t(E.resourceLine, !0), !1), t(e.copy.lead), o("class", t(E.resourceName, !0), !1), t(e.resourceName)), v(ja, o("class", t(E.consequenceNote, !0), !1), t(e.copy.note))];
|
|
1971
1997
|
}
|
|
1972
|
-
function
|
|
1998
|
+
function Ja(e) {
|
|
1973
1999
|
return n(w, {
|
|
1974
2000
|
get when() {
|
|
1975
2001
|
return e.options().length > 0;
|
|
1976
2002
|
},
|
|
1977
2003
|
get children() {
|
|
1978
|
-
return
|
|
2004
|
+
return v(Ka, o("class", t(E.selectedOptions, !0), !1), o("class", t(E.fieldLabel, !0), !1), t(c("Selected options")), o("class", t(E.selectedList, !0), !1), t(n(me, {
|
|
1979
2005
|
get each() {
|
|
1980
2006
|
return e.options();
|
|
1981
2007
|
},
|
|
1982
|
-
children: (r) =>
|
|
2008
|
+
children: (r) => v(Ya, t(r.label))
|
|
1983
2009
|
})));
|
|
1984
2010
|
}
|
|
1985
2011
|
});
|
|
1986
2012
|
}
|
|
1987
|
-
function
|
|
2013
|
+
function Xa(e) {
|
|
1988
2014
|
return n(be, {
|
|
1989
2015
|
get rootClass() {
|
|
1990
|
-
return
|
|
2016
|
+
return E.codeScroll;
|
|
1991
2017
|
},
|
|
1992
2018
|
get viewportClass() {
|
|
1993
|
-
return
|
|
2019
|
+
return E.code;
|
|
1994
2020
|
},
|
|
1995
2021
|
get children() {
|
|
1996
|
-
return
|
|
2022
|
+
return v(Ua, o("class", t(E.codePre, !0), !1) + o("aria-label", t(c("Statement"), !0), !1), t(e.code));
|
|
1997
2023
|
}
|
|
1998
2024
|
});
|
|
1999
2025
|
}
|
|
2000
|
-
var
|
|
2001
|
-
const
|
|
2002
|
-
function
|
|
2003
|
-
const r = j(), a = j(), [
|
|
2004
|
-
let k = null, L = null,
|
|
2026
|
+
var rt = ["<p", ">", "</p>"], Za = ["<div", ' tabindex="-1" role="presentation"><div', ' role="alertdialog" aria-modal="true"', ' tabindex="-1"><div', "><span", ' aria-hidden="true">!</span><h3', ">", "</h3></div><div", ">", "", "", "", "", "", "</div>", "</div></div>"];
|
|
2027
|
+
const Fe = (e) => $t(e.consequence), es = 5;
|
|
2028
|
+
function mc(e) {
|
|
2029
|
+
const r = j(), a = j(), [i, u] = D(null), [m, b] = D("name"), [d, h] = D(""), [_, S] = D({}), [y, z] = D(0);
|
|
2030
|
+
let k = null, L = null, B = !1;
|
|
2005
2031
|
const T = () => {
|
|
2006
|
-
var
|
|
2007
|
-
return ((
|
|
2032
|
+
var g;
|
|
2033
|
+
return ((g = i()) == null ? void 0 : g.targetWin) ?? (e == null ? void 0 : e()) ?? Ue().window;
|
|
2008
2034
|
}, K = () => T().document;
|
|
2009
2035
|
Ie({
|
|
2010
|
-
open: () =>
|
|
2036
|
+
open: () => i() !== null,
|
|
2011
2037
|
ownerDocument: K
|
|
2012
2038
|
});
|
|
2013
|
-
const
|
|
2014
|
-
const
|
|
2015
|
-
k = null,
|
|
2039
|
+
const R = () => {
|
|
2040
|
+
const g = k;
|
|
2041
|
+
k = null, g == null || g();
|
|
2016
2042
|
}, X = () => {
|
|
2017
|
-
|
|
2018
|
-
const
|
|
2019
|
-
L = null,
|
|
2043
|
+
R();
|
|
2044
|
+
const g = L;
|
|
2045
|
+
L = null, g == null || g(), u(null);
|
|
2020
2046
|
}, C = () => {
|
|
2021
|
-
|
|
2022
|
-
}, I = (
|
|
2023
|
-
const $ =
|
|
2047
|
+
R(), b("name"), h(""), S({}), z(0);
|
|
2048
|
+
}, I = (g) => {
|
|
2049
|
+
const $ = i();
|
|
2024
2050
|
if (!$) return;
|
|
2025
|
-
const
|
|
2026
|
-
confirmed:
|
|
2051
|
+
const O = {
|
|
2052
|
+
confirmed: g,
|
|
2027
2053
|
options: {
|
|
2028
2054
|
..._()
|
|
2029
2055
|
}
|
|
2030
2056
|
};
|
|
2031
|
-
X(), C(), $.resolve(
|
|
2057
|
+
X(), C(), $.resolve(O);
|
|
2032
2058
|
}, V = () => {
|
|
2033
|
-
const
|
|
2034
|
-
|
|
2059
|
+
const g = i();
|
|
2060
|
+
g && (X(), C(), g.resolve({
|
|
2035
2061
|
confirmed: !1,
|
|
2036
2062
|
options: {}
|
|
2037
2063
|
}));
|
|
2038
2064
|
};
|
|
2039
2065
|
Q(() => {
|
|
2040
|
-
|
|
2066
|
+
B = !0, V();
|
|
2041
2067
|
});
|
|
2042
|
-
const de = (
|
|
2043
|
-
var
|
|
2044
|
-
if (V(),
|
|
2068
|
+
const de = (g) => {
|
|
2069
|
+
var O;
|
|
2070
|
+
if (V(), B) return Promise.resolve({
|
|
2045
2071
|
confirmed: !1,
|
|
2046
2072
|
options: {}
|
|
2047
2073
|
});
|
|
2048
|
-
const $ = ((
|
|
2074
|
+
const $ = ((O = g.host) == null ? void 0 : O.call(g)) ?? (e == null ? void 0 : e()) ?? Ae().window;
|
|
2049
2075
|
return $.closed ? Promise.resolve({
|
|
2050
2076
|
confirmed: !1,
|
|
2051
2077
|
options: {}
|
|
2052
2078
|
}) : new Promise((F) => {
|
|
2053
2079
|
const s = {};
|
|
2054
|
-
for (const
|
|
2055
|
-
C(), S(s),
|
|
2056
|
-
const
|
|
2057
|
-
...
|
|
2080
|
+
for (const M of g.options ?? []) s[M.id] = !!M.default;
|
|
2081
|
+
C(), S(s), Fe(g) || b("confirm");
|
|
2082
|
+
const l = {
|
|
2083
|
+
...g,
|
|
2058
2084
|
resolve: F,
|
|
2059
2085
|
targetWin: $
|
|
2060
2086
|
}, p = () => {
|
|
2061
|
-
|
|
2087
|
+
i() === l && V();
|
|
2062
2088
|
};
|
|
2063
2089
|
$.addEventListener("pagehide", p), $.addEventListener("unload", p), L = () => {
|
|
2064
2090
|
$.removeEventListener("pagehide", p), $.removeEventListener("unload", p);
|
|
2065
|
-
},
|
|
2091
|
+
}, u(l);
|
|
2066
2092
|
});
|
|
2067
2093
|
}, ne = G(() => {
|
|
2068
|
-
const
|
|
2069
|
-
return
|
|
2094
|
+
const g = i();
|
|
2095
|
+
return g ? d().trim() === g.resourceName.trim() : !1;
|
|
2070
2096
|
}), ie = () => {
|
|
2071
|
-
const
|
|
2072
|
-
if (!
|
|
2073
|
-
const $ =
|
|
2074
|
-
|
|
2075
|
-
const
|
|
2097
|
+
const g = i();
|
|
2098
|
+
if (!g || !Fe(g) || !ne()) return;
|
|
2099
|
+
const $ = g.countdownSeconds ?? es;
|
|
2100
|
+
R(), b("countdown"), z($);
|
|
2101
|
+
const O = g.targetWin;
|
|
2076
2102
|
let F = !0;
|
|
2077
|
-
const s =
|
|
2078
|
-
!F ||
|
|
2103
|
+
const s = O.setInterval(() => {
|
|
2104
|
+
!F || i() !== g || z((l) => l <= 1 ? (R(), 0) : l - 1);
|
|
2079
2105
|
}, 1e3);
|
|
2080
2106
|
k = () => {
|
|
2081
|
-
F = !1,
|
|
2107
|
+
F = !1, O.clearInterval(s);
|
|
2082
2108
|
};
|
|
2083
2109
|
}, ae = () => {
|
|
2084
|
-
|
|
2110
|
+
R(), b("name");
|
|
2085
2111
|
};
|
|
2086
2112
|
return te(() => {
|
|
2087
|
-
|
|
2088
|
-
}), Q(
|
|
2089
|
-
const
|
|
2090
|
-
var
|
|
2091
|
-
return ((
|
|
2092
|
-
},
|
|
2093
|
-
const
|
|
2094
|
-
return
|
|
2113
|
+
i() === null && R();
|
|
2114
|
+
}), Q(R), [() => {
|
|
2115
|
+
const g = () => i(), $ = () => {
|
|
2116
|
+
var P;
|
|
2117
|
+
return ((P = g()) == null ? void 0 : P.options) ?? [];
|
|
2118
|
+
}, O = G(() => {
|
|
2119
|
+
const P = g();
|
|
2120
|
+
return P === null ? null : Ba(P.consequence);
|
|
2095
2121
|
}), F = () => m() === "countdown" && y() === 0, s = () => {
|
|
2096
|
-
const
|
|
2097
|
-
return
|
|
2098
|
-
},
|
|
2099
|
-
var
|
|
2100
|
-
return ((
|
|
2122
|
+
const P = g();
|
|
2123
|
+
return P !== null && Fe(P) ? P : null;
|
|
2124
|
+
}, l = () => {
|
|
2125
|
+
var P, ce;
|
|
2126
|
+
return ((P = g()) == null ? void 0 : P.confirmLabel) ?? ((ce = O()) == null ? void 0 : ce.confirmLabel) ?? "";
|
|
2101
2127
|
}, p = () => {
|
|
2102
2128
|
var ce;
|
|
2103
|
-
const
|
|
2104
|
-
return ((ce = s()) == null ? void 0 : ce.finalConfirmLabel) ?? ((
|
|
2105
|
-
},
|
|
2129
|
+
const P = O();
|
|
2130
|
+
return ((ce = s()) == null ? void 0 : ce.finalConfirmLabel) ?? ((P == null ? void 0 : P.level) === "typed" ? P.finalLabel : l());
|
|
2131
|
+
}, M = () => $().filter((P) => _()[P.id] === !0), se = (P) => {
|
|
2106
2132
|
S((ce) => ({
|
|
2107
2133
|
...ce,
|
|
2108
|
-
[
|
|
2134
|
+
[P]: !ce[P]
|
|
2109
2135
|
}));
|
|
2110
|
-
}, fe = (
|
|
2111
|
-
queueMicrotask(() =>
|
|
2112
|
-
}, we = () => `${
|
|
2136
|
+
}, fe = (P) => {
|
|
2137
|
+
queueMicrotask(() => P.focus());
|
|
2138
|
+
}, we = () => `${E.input} ${ne() ? E.inputMatch : ""}`;
|
|
2113
2139
|
return n(w, {
|
|
2114
2140
|
get when() {
|
|
2115
|
-
return
|
|
2141
|
+
return g() !== null;
|
|
2116
2142
|
},
|
|
2117
2143
|
get children() {
|
|
2118
2144
|
return n(Le, {
|
|
@@ -2122,13 +2148,13 @@ function sc(e) {
|
|
|
2122
2148
|
},
|
|
2123
2149
|
idPrefix: "dangerous-action-dialog",
|
|
2124
2150
|
get children() {
|
|
2125
|
-
var
|
|
2126
|
-
return
|
|
2151
|
+
var P, ce, Je;
|
|
2152
|
+
return v(Za, o("class", t(E.overlay, !0), !1), o("class", t(E.dialog, !0), !1), o("aria-labelledby", t(r, !0), !1) + o("aria-describedby", (P = g()) != null && P.place ? t(a, !0) : t(void 0, !0), !1) + o("data-confirmation-level", t((ce = O()) == null ? void 0 : ce.level, !0), !1), o("class", t(E.header, !0), !1), o("class", t(E.warningIcon, !0), !1), o("id", t(r, !0), !1) + o("class", t(E.title, !0), !1), t(((Je = g()) == null ? void 0 : Je.title) ?? ""), o("class", t(E.body, !0), !1), t(n(w, {
|
|
2127
2153
|
get when() {
|
|
2128
2154
|
var q;
|
|
2129
|
-
return (q =
|
|
2155
|
+
return (q = g()) == null ? void 0 : q.place;
|
|
2130
2156
|
},
|
|
2131
|
-
children: (q) => n(
|
|
2157
|
+
children: (q) => n(mt, {
|
|
2132
2158
|
id: a,
|
|
2133
2159
|
get place() {
|
|
2134
2160
|
return q();
|
|
@@ -2137,17 +2163,17 @@ function sc(e) {
|
|
|
2137
2163
|
})), t(n(w, {
|
|
2138
2164
|
get when() {
|
|
2139
2165
|
var q;
|
|
2140
|
-
return (q =
|
|
2166
|
+
return (q = g()) == null ? void 0 : q.description;
|
|
2141
2167
|
},
|
|
2142
2168
|
get children() {
|
|
2143
|
-
return
|
|
2169
|
+
return v(rt, o("class", t(E.description, !0), !1), t(g().description));
|
|
2144
2170
|
}
|
|
2145
2171
|
})), t(n(w, {
|
|
2146
2172
|
get when() {
|
|
2147
2173
|
var q;
|
|
2148
|
-
return (q =
|
|
2174
|
+
return (q = g()) == null ? void 0 : q.code;
|
|
2149
2175
|
},
|
|
2150
|
-
children: (q) => n(
|
|
2176
|
+
children: (q) => n(Xa, {
|
|
2151
2177
|
get code() {
|
|
2152
2178
|
return q();
|
|
2153
2179
|
}
|
|
@@ -2156,67 +2182,67 @@ function sc(e) {
|
|
|
2156
2182
|
get when() {
|
|
2157
2183
|
return ee(() => m() === "name")() ? s() : null;
|
|
2158
2184
|
},
|
|
2159
|
-
children: (q) => [n(
|
|
2185
|
+
children: (q) => [n(Ga, {
|
|
2160
2186
|
request: q,
|
|
2161
|
-
typedName:
|
|
2162
|
-
setTypedName:
|
|
2187
|
+
typedName: d,
|
|
2188
|
+
setTypedName: h,
|
|
2163
2189
|
inputRef: fe,
|
|
2164
2190
|
inputClass: we
|
|
2165
|
-
}), n(
|
|
2191
|
+
}), n(tt, {
|
|
2166
2192
|
options: $,
|
|
2167
2193
|
optionState: _,
|
|
2168
2194
|
toggleOption: se
|
|
2169
2195
|
})]
|
|
2170
2196
|
})), t(n(w, {
|
|
2171
2197
|
get when() {
|
|
2172
|
-
return ee(() => m() === "countdown")() ?
|
|
2198
|
+
return ee(() => m() === "countdown")() ? O() : null;
|
|
2173
2199
|
},
|
|
2174
|
-
children: (q) => [n(
|
|
2200
|
+
children: (q) => [n(nt, {
|
|
2175
2201
|
get copy() {
|
|
2176
2202
|
return q();
|
|
2177
2203
|
},
|
|
2178
2204
|
get resourceName() {
|
|
2179
2205
|
var Se;
|
|
2180
|
-
return ((Se =
|
|
2206
|
+
return ((Se = g()) == null ? void 0 : Se.resourceName) ?? "";
|
|
2181
2207
|
}
|
|
2182
|
-
}), n(
|
|
2183
|
-
options:
|
|
2184
|
-
}),
|
|
2208
|
+
}), n(Ja, {
|
|
2209
|
+
options: M
|
|
2210
|
+
}), v(rt, o("class", t(E.finalNote, !0), !1), t(n(w, {
|
|
2185
2211
|
get when() {
|
|
2186
2212
|
return y() > 0;
|
|
2187
2213
|
},
|
|
2188
2214
|
get fallback() {
|
|
2189
|
-
return
|
|
2215
|
+
return c("Press the button below to confirm.");
|
|
2190
2216
|
},
|
|
2191
2217
|
get children() {
|
|
2192
|
-
return
|
|
2218
|
+
return c("The confirm button unlocks in {count}s.", {
|
|
2193
2219
|
count: y()
|
|
2194
2220
|
});
|
|
2195
2221
|
}
|
|
2196
2222
|
})))]
|
|
2197
2223
|
})), t(n(w, {
|
|
2198
2224
|
get when() {
|
|
2199
|
-
return ee(() => m() === "confirm")() ?
|
|
2225
|
+
return ee(() => m() === "confirm")() ? O() : null;
|
|
2200
2226
|
},
|
|
2201
|
-
children: (q) => [n(
|
|
2227
|
+
children: (q) => [n(nt, {
|
|
2202
2228
|
get copy() {
|
|
2203
2229
|
return q();
|
|
2204
2230
|
},
|
|
2205
2231
|
get resourceName() {
|
|
2206
2232
|
var Se;
|
|
2207
|
-
return ((Se =
|
|
2233
|
+
return ((Se = g()) == null ? void 0 : Se.resourceName) ?? "";
|
|
2208
2234
|
}
|
|
2209
|
-
}), n(
|
|
2235
|
+
}), n(tt, {
|
|
2210
2236
|
options: $,
|
|
2211
2237
|
optionState: _,
|
|
2212
2238
|
toggleOption: se
|
|
2213
2239
|
})]
|
|
2214
|
-
})), t(n(
|
|
2240
|
+
})), t(n(Qa, {
|
|
2215
2241
|
step: m,
|
|
2216
2242
|
nameMatches: ne,
|
|
2217
2243
|
finalEnabled: F,
|
|
2218
2244
|
countdown: y,
|
|
2219
|
-
confirmLabel:
|
|
2245
|
+
confirmLabel: l,
|
|
2220
2246
|
finalLabel: p,
|
|
2221
2247
|
onCancel: () => I(!1),
|
|
2222
2248
|
onAdvance: ie,
|
|
@@ -2229,29 +2255,29 @@ function sc(e) {
|
|
|
2229
2255
|
});
|
|
2230
2256
|
}, de];
|
|
2231
2257
|
}
|
|
2232
|
-
const
|
|
2233
|
-
window:
|
|
2234
|
-
maximized:
|
|
2235
|
-
minimized:
|
|
2236
|
-
titlebar:
|
|
2237
|
-
titlebarDragging:
|
|
2238
|
-
titleInfo:
|
|
2239
|
-
windowIcon:
|
|
2240
|
-
windowTitle:
|
|
2241
|
-
windowControls:
|
|
2242
|
-
controlBtn:
|
|
2243
|
-
closeBtn:
|
|
2244
|
-
body:
|
|
2245
|
-
resizeGrip:
|
|
2258
|
+
const ts = "vk_window_cNPxa", ns = "vk_maximized_nbnO1", rs = "vk_minimized_7iRrM", os = "vk_titlebar_x5HLa", as = "vk_titlebarDragging_UvwHD", ss = "vk_titleInfo_CfnKC", is = "vk_windowIcon_kwo8N", cs = "vk_windowTitle_oh-oF", ls = "vk_windowControls_VpW8D", us = "vk_controlBtn_KeaeH", ds = "vk_closeBtn_Mb5cO", ms = "vk_body_n-l67", fs = "vk_resizeGrip_NFWQc", U = {
|
|
2259
|
+
window: ts,
|
|
2260
|
+
maximized: ns,
|
|
2261
|
+
minimized: rs,
|
|
2262
|
+
titlebar: os,
|
|
2263
|
+
titlebarDragging: as,
|
|
2264
|
+
titleInfo: ss,
|
|
2265
|
+
windowIcon: is,
|
|
2266
|
+
windowTitle: cs,
|
|
2267
|
+
windowControls: ls,
|
|
2268
|
+
controlBtn: us,
|
|
2269
|
+
closeBtn: ds,
|
|
2270
|
+
body: ms,
|
|
2271
|
+
resizeGrip: fs
|
|
2246
2272
|
};
|
|
2247
|
-
var
|
|
2248
|
-
function
|
|
2249
|
-
var T, K,
|
|
2250
|
-
const [r, a] = D(((T = e.initialPosition) == null ? void 0 : T.x) ?? 24), [
|
|
2251
|
-
let
|
|
2252
|
-
return
|
|
2273
|
+
var hs = ["<span", ">", "</span>"], gs = ['<button type="button"', ">", "</button>"], vs = ["<div", ' aria-hidden="true"></div>'], bs = ['<div class="', '" style="', '" role="dialog" tabindex="-1"', '><div class="', '"><div', ">", "<span", ">", "</span></div><div", '><button type="button"', ">", '</button><button type="button"', ">", "</button>", '<button type="button" class="', '"', ">", "</button></div></div>", "</div>"];
|
|
2274
|
+
function fc(e) {
|
|
2275
|
+
var T, K, R, X;
|
|
2276
|
+
const [r, a] = D(((T = e.initialPosition) == null ? void 0 : T.x) ?? 24), [i, u] = D(((K = e.initialPosition) == null ? void 0 : K.y) ?? 24), [m, b] = D(((R = e.initialSize) == null ? void 0 : R.width) ?? 360), [d, h] = D(((X = e.initialSize) == null ? void 0 : X.height) ?? 220), [_, S] = D(!1), [y, z] = D(!1), [k, L] = D(!1);
|
|
2277
|
+
let B;
|
|
2278
|
+
return Pe(() => e.isOpen, "floating-window", {
|
|
2253
2279
|
type: "popover",
|
|
2254
|
-
element: () =>
|
|
2280
|
+
element: () => B
|
|
2255
2281
|
}), te(() => {
|
|
2256
2282
|
e.isOpen;
|
|
2257
2283
|
}), n(w, {
|
|
@@ -2259,31 +2285,31 @@ function ic(e) {
|
|
|
2259
2285
|
return e.isOpen;
|
|
2260
2286
|
},
|
|
2261
2287
|
get children() {
|
|
2262
|
-
return
|
|
2288
|
+
return v(bs, `${t(U.window, !0)} ${y() ? t(U.maximized, !0) : ""} ${_() ? t(U.minimized, !0) : ""} ${t(e.class ?? "", !0)}`, xt(y() ? {} : {
|
|
2263
2289
|
left: `${r()}px`,
|
|
2264
|
-
top: `${
|
|
2290
|
+
top: `${i()}px`,
|
|
2265
2291
|
width: `${m()}px`,
|
|
2266
|
-
height: _() ? "auto" : `${
|
|
2292
|
+
height: _() ? "auto" : `${d()}px`
|
|
2267
2293
|
}), o("aria-label", t(e.title, !0), !1), `${t(U.titlebar, !0)} ${k() ? t(U.titlebarDragging, !0) : ""}`, o("class", t(U.titleInfo, !0), !1), t(n(w, {
|
|
2268
2294
|
get when() {
|
|
2269
2295
|
return e.icon;
|
|
2270
2296
|
},
|
|
2271
2297
|
get children() {
|
|
2272
|
-
return
|
|
2298
|
+
return v(hs, o("class", t(U.windowIcon, !0), !1), t(e.icon));
|
|
2273
2299
|
}
|
|
2274
|
-
})), o("class", t(U.windowTitle, !0), !1), t(e.title), o("class", t(U.windowControls, !0), !1), o("class", t(U.controlBtn, !0), !1) + o("aria-label", t(
|
|
2300
|
+
})), o("class", t(U.windowTitle, !0), !1), t(e.title), o("class", t(U.windowControls, !0), !1), o("class", t(U.controlBtn, !0), !1) + o("aria-label", t(c("Minimize"), !0), !1), t(n(Ut, {
|
|
2275
2301
|
"aria-hidden": "true"
|
|
2276
|
-
})), o("class", t(U.controlBtn, !0), !1) + o("aria-label", y() ? t(
|
|
2302
|
+
})), o("class", t(U.controlBtn, !0), !1) + o("aria-label", y() ? t(c("Restore"), !0) : t(c("Maximize"), !0), !1), t(n(w, {
|
|
2277
2303
|
get when() {
|
|
2278
2304
|
return y();
|
|
2279
2305
|
},
|
|
2280
2306
|
get fallback() {
|
|
2281
|
-
return n(
|
|
2307
|
+
return n(Ot, {
|
|
2282
2308
|
"aria-hidden": "true"
|
|
2283
2309
|
});
|
|
2284
2310
|
},
|
|
2285
2311
|
get children() {
|
|
2286
|
-
return n(
|
|
2312
|
+
return n(Bt, {
|
|
2287
2313
|
"aria-hidden": "true"
|
|
2288
2314
|
});
|
|
2289
2315
|
}
|
|
@@ -2292,11 +2318,11 @@ function ic(e) {
|
|
|
2292
2318
|
return e.onDetach;
|
|
2293
2319
|
},
|
|
2294
2320
|
get children() {
|
|
2295
|
-
return
|
|
2321
|
+
return v(gs, o("class", t(U.controlBtn, !0), !1) + o("aria-label", t(c("Detach window"), !0), !1), t(n(zt, {
|
|
2296
2322
|
"aria-hidden": "true"
|
|
2297
2323
|
})));
|
|
2298
2324
|
}
|
|
2299
|
-
})), `${t(U.controlBtn, !0)} ${t(U.closeBtn, !0)}`, o("aria-label", t(
|
|
2325
|
+
})), `${t(U.controlBtn, !0)} ${t(U.closeBtn, !0)}`, o("aria-label", t(c("Close window"), !0), !1), t(n(Qe, {
|
|
2300
2326
|
"aria-hidden": "true"
|
|
2301
2327
|
})), t(n(w, {
|
|
2302
2328
|
get when() {
|
|
@@ -2315,7 +2341,7 @@ function ic(e) {
|
|
|
2315
2341
|
return !y();
|
|
2316
2342
|
},
|
|
2317
2343
|
get children() {
|
|
2318
|
-
return
|
|
2344
|
+
return v(vs, o("class", t(U.resizeGrip, !0), !1));
|
|
2319
2345
|
}
|
|
2320
2346
|
})];
|
|
2321
2347
|
}
|
|
@@ -2323,64 +2349,64 @@ function ic(e) {
|
|
|
2323
2349
|
}
|
|
2324
2350
|
});
|
|
2325
2351
|
}
|
|
2326
|
-
function
|
|
2352
|
+
function St(e, r) {
|
|
2327
2353
|
const a = r.split(/\s+/).filter(Boolean);
|
|
2328
|
-
return a.length > 1 && a.every((
|
|
2354
|
+
return a.length > 1 && a.every((i) => e.includes(i));
|
|
2329
2355
|
}
|
|
2330
|
-
function
|
|
2356
|
+
function Lt(e, r) {
|
|
2331
2357
|
const a = r.replace(/\s+/g, "");
|
|
2332
2358
|
if (a.length < 2) return !1;
|
|
2333
|
-
let
|
|
2334
|
-
for (const
|
|
2335
|
-
if (
|
|
2359
|
+
let i = 0;
|
|
2360
|
+
for (const u of e)
|
|
2361
|
+
if (u === a[i] && (i += 1), i === a.length) return !0;
|
|
2336
2362
|
return !1;
|
|
2337
2363
|
}
|
|
2338
|
-
function
|
|
2339
|
-
const a = e.title.toLowerCase(),
|
|
2340
|
-
return a === r ? 8 : a.startsWith(r) ? 7 : a.includes(r) ? 6 :
|
|
2364
|
+
function ot(e, r) {
|
|
2365
|
+
const a = e.title.toLowerCase(), i = e.category.toLowerCase(), u = (e.keywords ?? []).join(" ").toLowerCase();
|
|
2366
|
+
return a === r ? 8 : a.startsWith(r) ? 7 : a.includes(r) ? 6 : St(a, r) ? 5 : i.includes(r) ? 3 : u.includes(r) ? 2 : Lt(a, r) ? 1 : 0;
|
|
2341
2367
|
}
|
|
2342
|
-
function
|
|
2343
|
-
const a = e.title.toLowerCase(),
|
|
2344
|
-
return a === r ? 8 : a.startsWith(r) ? 7 : a.includes(r) ? 6 :
|
|
2368
|
+
function _s(e, r) {
|
|
2369
|
+
const a = e.title.toLowerCase(), i = (e.description ?? "").toLowerCase();
|
|
2370
|
+
return a === r ? 8 : a.startsWith(r) ? 7 : a.includes(r) ? 6 : St(a, r) ? 5 : i.includes(r) ? 2 : Lt(a, r) ? 1 : 0;
|
|
2345
2371
|
}
|
|
2346
|
-
function
|
|
2372
|
+
function ws(e) {
|
|
2347
2373
|
return [e.title, e.description, e.ariaShortcut].filter((r) => !!r).join(", ");
|
|
2348
2374
|
}
|
|
2349
|
-
const
|
|
2350
|
-
backdrop:
|
|
2351
|
-
backdropCompact:
|
|
2352
|
-
backdropClassic:
|
|
2353
|
-
panel:
|
|
2354
|
-
panelCompact:
|
|
2355
|
-
panelClassic:
|
|
2356
|
-
searchRow:
|
|
2357
|
-
searchInput:
|
|
2358
|
-
results:
|
|
2359
|
-
section:
|
|
2360
|
-
sectionTitle:
|
|
2361
|
-
commandList:
|
|
2362
|
-
commandItem:
|
|
2363
|
-
commandItemActive:
|
|
2364
|
-
commandMain:
|
|
2365
|
-
commandTitle:
|
|
2366
|
-
commandDescription:
|
|
2367
|
-
commandShortcut:
|
|
2368
|
-
commandRow:
|
|
2369
|
-
configureBtn:
|
|
2370
|
-
commandRowActive:
|
|
2371
|
-
},
|
|
2372
|
-
tabsContainer:
|
|
2373
|
-
tabButton:
|
|
2374
|
-
tabButtonActive:
|
|
2375
|
-
tabBadge:
|
|
2376
|
-
tabBadgeActive:
|
|
2377
|
-
badge:
|
|
2378
|
-
badgeSetting:
|
|
2379
|
-
badgeDb:
|
|
2380
|
-
statusRow:
|
|
2375
|
+
const ks = "vk_backdrop_aa9-b", ps = "vk_backdropCompact_PkBAv", ys = "vk_backdropClassic_ehT8b", Cs = "vk_panel_unTU7", $s = "vk_panelCompact_SIdhM", Ss = "vk_panelClassic_aiZlM", Ls = "vk_searchRow_zeI45", Is = "vk_searchInput_oshkq", xs = "vk_results_zGg2V", As = "vk_section_RoSyC", Ts = "vk_sectionTitle_JpTJl", Ds = "vk_commandList_y7keL", Ms = "vk_commandItem_0v8jJ", Rs = "vk_commandItemActive_Ar6PV", Es = "vk_commandMain_ogAdz", Ps = "vk_commandTitle_auoxZ vk_titleSm_IecPV", Bs = "vk_commandDescription_8zkPN", Os = "vk_commandShortcut_UAa5d", zs = "vk_commandRow_LX6zz", Ws = "vk_configureBtn_OMS9G", Ns = "vk_commandRowActive_uNRXl", A = {
|
|
2376
|
+
backdrop: ks,
|
|
2377
|
+
backdropCompact: ps,
|
|
2378
|
+
backdropClassic: ys,
|
|
2379
|
+
panel: Cs,
|
|
2380
|
+
panelCompact: $s,
|
|
2381
|
+
panelClassic: Ss,
|
|
2382
|
+
searchRow: Ls,
|
|
2383
|
+
searchInput: Is,
|
|
2384
|
+
results: xs,
|
|
2385
|
+
section: As,
|
|
2386
|
+
sectionTitle: Ts,
|
|
2387
|
+
commandList: Ds,
|
|
2388
|
+
commandItem: Ms,
|
|
2389
|
+
commandItemActive: Rs,
|
|
2390
|
+
commandMain: Es,
|
|
2391
|
+
commandTitle: Ps,
|
|
2392
|
+
commandDescription: Bs,
|
|
2393
|
+
commandShortcut: Os,
|
|
2394
|
+
commandRow: zs,
|
|
2395
|
+
configureBtn: Ws,
|
|
2396
|
+
commandRowActive: Ns
|
|
2397
|
+
}, Fs = "vk_tabsContainer_CiFoB", Hs = "vk_tabButton_M-DwJ", Vs = "vk_tabButtonActive_pgOkL", qs = "vk_tabBadge_sBmun", js = "vk_tabBadgeActive_N-q86", Ks = "vk_badge_meiW8", Ys = "vk_badgeSetting_LSTcT", Us = "vk_badgeDb_ThJRG", Qs = "vk_statusRow_QoKuX", ue = {
|
|
2398
|
+
tabsContainer: Fs,
|
|
2399
|
+
tabButton: Hs,
|
|
2400
|
+
tabButtonActive: Vs,
|
|
2401
|
+
tabBadge: qs,
|
|
2402
|
+
tabBadgeActive: js,
|
|
2403
|
+
badge: Ks,
|
|
2404
|
+
badgeSetting: Ys,
|
|
2405
|
+
badgeDb: Us,
|
|
2406
|
+
statusRow: Qs
|
|
2381
2407
|
};
|
|
2382
|
-
var
|
|
2383
|
-
function
|
|
2408
|
+
var Gs = ["<div", ' role="tablist"', ">", "</div>"], Js = ['<button type="button" role="tab"', ' class="', '"><span>', "</span>", "</button>"], Xs = ['<span class="', '">●</span>'];
|
|
2409
|
+
function Zs(e) {
|
|
2384
2410
|
const r = [{
|
|
2385
2411
|
mode: "everywhere",
|
|
2386
2412
|
label: "All"
|
|
@@ -2394,37 +2420,37 @@ function Ys(e) {
|
|
|
2394
2420
|
mode: "database",
|
|
2395
2421
|
label: "Database"
|
|
2396
2422
|
}];
|
|
2397
|
-
return
|
|
2423
|
+
return Qt(), v(Gs, o("class", t(ue.tabsContainer, !0), !1), o("aria-label", t(c("Search Everywhere"), !0), !1), t(n(me, {
|
|
2398
2424
|
each: r,
|
|
2399
2425
|
children: (a) => {
|
|
2400
|
-
const
|
|
2401
|
-
return
|
|
2426
|
+
const i = () => e.activeMode() === a.mode;
|
|
2427
|
+
return v(Js, o("aria-selected", t(i(), !0), !1) + o("tabindex", i() ? 0 : -1, !1), `${t(ue.tabButton, !0)} ${i() ? t(ue.tabButtonActive, !0) : ""}`, t(c(a.label)), a.mode === "database" && e.hasWorkspaceContext() ? v(Xs, `${t(ue.tabBadge, !0)} ${i() ? t(ue.tabBadgeActive, !0) : ""}`) : t(null));
|
|
2402
2428
|
}
|
|
2403
2429
|
})));
|
|
2404
2430
|
}
|
|
2405
|
-
function
|
|
2431
|
+
function ei(e, r) {
|
|
2406
2432
|
const a = r.toLowerCase();
|
|
2407
|
-
return (e.labels ?? []).some((
|
|
2408
|
-
}
|
|
2409
|
-
function
|
|
2410
|
-
const
|
|
2411
|
-
if (
|
|
2412
|
-
if (
|
|
2413
|
-
if (
|
|
2414
|
-
const m =
|
|
2415
|
-
return m.length > 1 && m.every((
|
|
2416
|
-
(
|
|
2417
|
-
) ? 3 : (a.matches ??
|
|
2418
|
-
}
|
|
2419
|
-
function
|
|
2420
|
-
var
|
|
2421
|
-
const
|
|
2433
|
+
return (e.labels ?? []).some((i) => Pt(i).toLowerCase().includes(a));
|
|
2434
|
+
}
|
|
2435
|
+
function ti(e, r, a) {
|
|
2436
|
+
const i = r.toLowerCase(), u = e.label.toLowerCase();
|
|
2437
|
+
if (u === i) return 8;
|
|
2438
|
+
if (u.startsWith(i)) return 7;
|
|
2439
|
+
if (u.includes(i)) return 6;
|
|
2440
|
+
const m = i.split(/\s+/).filter(Boolean);
|
|
2441
|
+
return m.length > 1 && m.every((h) => u.includes(h)) ? 5 : e.categoryId.toLowerCase().includes(i) ? 4 : (e.keywords ?? []).some(
|
|
2442
|
+
(h) => h.toLowerCase().includes(i)
|
|
2443
|
+
) ? 3 : (a.matches ?? ei)(e, r) ? 2 : 0;
|
|
2444
|
+
}
|
|
2445
|
+
function at(e, r, a) {
|
|
2446
|
+
var u, m;
|
|
2447
|
+
const i = ((u = a.breadcrumb) == null ? void 0 : u.call(a, e.categoryId)) ?? "";
|
|
2422
2448
|
return {
|
|
2423
2449
|
id: `setting:${e.id}`,
|
|
2424
2450
|
kind: "setting",
|
|
2425
2451
|
title: ((m = a.title) == null ? void 0 : m.call(a, e)) ?? e.label,
|
|
2426
|
-
description:
|
|
2427
|
-
category:
|
|
2452
|
+
description: i || c("Settings"),
|
|
2453
|
+
category: c("Settings"),
|
|
2428
2454
|
enabled: !0,
|
|
2429
2455
|
score: r,
|
|
2430
2456
|
run: () => {
|
|
@@ -2433,56 +2459,56 @@ function tt(e, r, a) {
|
|
|
2433
2459
|
rawSetting: e
|
|
2434
2460
|
};
|
|
2435
2461
|
}
|
|
2436
|
-
function
|
|
2462
|
+
function ni(e, r, a = 20) {
|
|
2437
2463
|
if (e === null) return [];
|
|
2438
|
-
const
|
|
2439
|
-
if (!
|
|
2440
|
-
return (e.popular ? e.popular(
|
|
2464
|
+
const i = r.trim(), u = e.items();
|
|
2465
|
+
if (!i)
|
|
2466
|
+
return (e.popular ? e.popular(u) : u).slice(0, a).map((d) => at(d, 1, e));
|
|
2441
2467
|
const m = [];
|
|
2442
|
-
for (const b of
|
|
2443
|
-
const
|
|
2444
|
-
|
|
2468
|
+
for (const b of u) {
|
|
2469
|
+
const d = ti(b, i, e);
|
|
2470
|
+
d > 0 && m.push({ item: b, score: d });
|
|
2445
2471
|
}
|
|
2446
|
-
return m.sort((b,
|
|
2472
|
+
return m.sort((b, d) => d.score - b.score), m.slice(0, a).map(({ item: b, score: d }) => at(b, d, e));
|
|
2447
2473
|
}
|
|
2448
|
-
const
|
|
2449
|
-
function
|
|
2450
|
-
const a = e.toLowerCase(),
|
|
2451
|
-
return a ===
|
|
2474
|
+
const ri = "SCHEMA", oi = 2, ai = 200, st = 40;
|
|
2475
|
+
function it(e, r) {
|
|
2476
|
+
const a = e.toLowerCase(), i = r.toLowerCase();
|
|
2477
|
+
return a === i ? 9 : a.startsWith(i) ? 7 : a.includes(i) ? 5 : 0;
|
|
2452
2478
|
}
|
|
2453
|
-
function
|
|
2454
|
-
const [r, a] = D([]), [
|
|
2455
|
-
if (
|
|
2456
|
-
const K =
|
|
2479
|
+
function si(e) {
|
|
2480
|
+
const [r, a] = D([]), [i, u] = D(!1), [m, b] = D(null), d = gt(), h = d.databaseObjects, [_, S] = D(0);
|
|
2481
|
+
if (h !== null) {
|
|
2482
|
+
const K = h.onDidChange(() => S((R) => R + 1));
|
|
2457
2483
|
Q(() => K.dispose());
|
|
2458
2484
|
}
|
|
2459
|
-
const y = () => (_(), (
|
|
2460
|
-
let L = 0,
|
|
2485
|
+
const y = () => (_(), (h == null ? void 0 : h.getWorkspaceId()) ?? null), z = () => (_(), !!(h != null && h.hasActiveWorkspace()) && y() !== null), k = () => (_(), (h == null ? void 0 : h.getSelectedSchema()) ?? "");
|
|
2486
|
+
let L = 0, B;
|
|
2461
2487
|
const T = () => {
|
|
2462
|
-
|
|
2488
|
+
B !== void 0 && (clearTimeout(B), B = void 0);
|
|
2463
2489
|
};
|
|
2464
2490
|
return Q(() => {
|
|
2465
2491
|
T(), L += 1;
|
|
2466
|
-
}),
|
|
2467
|
-
const K = e.enabled(),
|
|
2492
|
+
}), Dt(() => {
|
|
2493
|
+
const K = e.enabled(), R = e.query().trim();
|
|
2468
2494
|
T();
|
|
2469
2495
|
const X = ++L;
|
|
2470
2496
|
if (!K || !z()) {
|
|
2471
|
-
a([]),
|
|
2497
|
+
a([]), u(!1), b(null);
|
|
2472
2498
|
return;
|
|
2473
2499
|
}
|
|
2474
|
-
const C =
|
|
2475
|
-
if (
|
|
2476
|
-
if (b(null),
|
|
2500
|
+
const C = h, I = k(), V = y(), de = (C == null ? void 0 : C.getSchemas()) ?? [], ne = I ? [I] : de, ie = () => y() === V && !!(C != null && C.hasActiveWorkspace()) && (C == null ? void 0 : C.getSelectedSchema()) === I, ae = () => X === L && ie() && e.enabled();
|
|
2501
|
+
if (R.length < oi) {
|
|
2502
|
+
if (b(null), u(!1), I && C) {
|
|
2477
2503
|
const f = C.getCachedObjectsForSchema(I);
|
|
2478
2504
|
if (f && f.length > 0) {
|
|
2479
|
-
const
|
|
2505
|
+
const g = f.slice(0, 10).map(($) => ({
|
|
2480
2506
|
id: `db:${I}:${$.objectType}:${$.objectName}`,
|
|
2481
2507
|
kind: "database-object",
|
|
2482
2508
|
title: $.objectName,
|
|
2483
2509
|
description: `${$.objectType} · ${I}`,
|
|
2484
2510
|
detail: I,
|
|
2485
|
-
category:
|
|
2511
|
+
category: c("Database"),
|
|
2486
2512
|
objectType: $.objectType,
|
|
2487
2513
|
schema: I,
|
|
2488
2514
|
enabled: !0,
|
|
@@ -2491,7 +2517,7 @@ function ei(e) {
|
|
|
2491
2517
|
ie() && C.openObject(I, $);
|
|
2492
2518
|
}
|
|
2493
2519
|
}));
|
|
2494
|
-
a(
|
|
2520
|
+
a(g);
|
|
2495
2521
|
return;
|
|
2496
2522
|
}
|
|
2497
2523
|
}
|
|
@@ -2499,26 +2525,26 @@ function ei(e) {
|
|
|
2499
2525
|
return;
|
|
2500
2526
|
}
|
|
2501
2527
|
if (a([]), ne.length === 0) {
|
|
2502
|
-
|
|
2528
|
+
u(!1), b(null);
|
|
2503
2529
|
return;
|
|
2504
2530
|
}
|
|
2505
|
-
|
|
2531
|
+
u(!0), b(null), B = setTimeout(async () => {
|
|
2506
2532
|
if (ae())
|
|
2507
2533
|
try {
|
|
2508
2534
|
let f = [];
|
|
2509
|
-
const
|
|
2510
|
-
if (V &&
|
|
2535
|
+
const g = (C == null ? void 0 : C.searchObjects) ?? null;
|
|
2536
|
+
if (V && g !== null)
|
|
2511
2537
|
f = [
|
|
2512
|
-
...await
|
|
2513
|
-
limit:
|
|
2538
|
+
...await g(V, R, {
|
|
2539
|
+
limit: st,
|
|
2514
2540
|
schemas: ne
|
|
2515
2541
|
})
|
|
2516
2542
|
];
|
|
2517
2543
|
else if (C && I) {
|
|
2518
2544
|
let s = C.getCachedObjectsForSchema(I);
|
|
2519
2545
|
if (s || (s = await C.loadObjectsForSchema(I)), s) {
|
|
2520
|
-
const
|
|
2521
|
-
f = s.filter((p) => p.objectName.toLowerCase().includes(
|
|
2546
|
+
const l = R.toLowerCase();
|
|
2547
|
+
f = s.filter((p) => p.objectName.toLowerCase().includes(l)).slice(0, st).map((p) => ({
|
|
2522
2548
|
owner: I,
|
|
2523
2549
|
objectType: p.objectType,
|
|
2524
2550
|
objectName: p.objectName,
|
|
@@ -2527,17 +2553,17 @@ function ei(e) {
|
|
|
2527
2553
|
}
|
|
2528
2554
|
}
|
|
2529
2555
|
if (!ae()) return;
|
|
2530
|
-
const $ =
|
|
2556
|
+
const $ = R.toLowerCase(), O = de.filter((s) => s.toLowerCase().includes($)).slice(0, 3).map((s) => ({
|
|
2531
2557
|
id: `db:schema:${s}`,
|
|
2532
2558
|
kind: "database-object",
|
|
2533
2559
|
title: s,
|
|
2534
|
-
description: `${
|
|
2535
|
-
detail:
|
|
2536
|
-
category:
|
|
2537
|
-
objectType:
|
|
2560
|
+
description: `${c("Schema")} · ${s}`,
|
|
2561
|
+
detail: c("Schema"),
|
|
2562
|
+
category: c("Database"),
|
|
2563
|
+
objectType: ri,
|
|
2538
2564
|
schema: s,
|
|
2539
2565
|
enabled: !0,
|
|
2540
|
-
score:
|
|
2566
|
+
score: it(s, R) + 1,
|
|
2541
2567
|
run: () => {
|
|
2542
2568
|
ie() && (C == null || C.navigateToSchema(s));
|
|
2543
2569
|
}
|
|
@@ -2547,42 +2573,42 @@ function ei(e) {
|
|
|
2547
2573
|
title: s.objectName,
|
|
2548
2574
|
description: `${s.objectType} · ${s.owner}`,
|
|
2549
2575
|
detail: s.owner,
|
|
2550
|
-
category:
|
|
2576
|
+
category: c("Database"),
|
|
2551
2577
|
objectType: s.objectType,
|
|
2552
2578
|
schema: s.owner,
|
|
2553
2579
|
enabled: !0,
|
|
2554
|
-
score:
|
|
2580
|
+
score: it(s.objectName, R),
|
|
2555
2581
|
run: () => {
|
|
2556
2582
|
ie() && (C == null || C.openObject(s.owner, s));
|
|
2557
2583
|
},
|
|
2558
2584
|
rawDbObject: s
|
|
2559
2585
|
}));
|
|
2560
|
-
a([...
|
|
2586
|
+
a([...O, ...F]), u(!1);
|
|
2561
2587
|
} catch (f) {
|
|
2562
2588
|
if (!ae()) return;
|
|
2563
|
-
const
|
|
2564
|
-
b(
|
|
2589
|
+
const g = d.errorPresenter.text(f, c("Failed to search database objects"));
|
|
2590
|
+
b(g), u(!1);
|
|
2565
2591
|
}
|
|
2566
|
-
},
|
|
2592
|
+
}, ai);
|
|
2567
2593
|
}), {
|
|
2568
2594
|
items: r,
|
|
2569
|
-
loading:
|
|
2595
|
+
loading: i,
|
|
2570
2596
|
error: m,
|
|
2571
2597
|
hasWorkspaceContext: z,
|
|
2572
2598
|
activeSchema: k
|
|
2573
2599
|
};
|
|
2574
2600
|
}
|
|
2575
|
-
function
|
|
2601
|
+
function ii(e) {
|
|
2576
2602
|
const {
|
|
2577
2603
|
mode: r,
|
|
2578
2604
|
query: a,
|
|
2579
|
-
commands:
|
|
2580
|
-
recentCommandIds:
|
|
2605
|
+
commands: i,
|
|
2606
|
+
recentCommandIds: u,
|
|
2581
2607
|
categoryOrder: m,
|
|
2582
2608
|
settingsItems: b,
|
|
2583
|
-
databaseItems:
|
|
2584
|
-
} = e,
|
|
2585
|
-
for (const k of
|
|
2609
|
+
databaseItems: d
|
|
2610
|
+
} = e, h = a.trim().toLowerCase(), _ = /* @__PURE__ */ new Map();
|
|
2611
|
+
for (const k of i)
|
|
2586
2612
|
_.set(k.id, k);
|
|
2587
2613
|
const S = (k, L = 1) => ({
|
|
2588
2614
|
id: k.id,
|
|
@@ -2601,46 +2627,46 @@ function ti(e) {
|
|
|
2601
2627
|
return b.length === 0 ? [] : [
|
|
2602
2628
|
{
|
|
2603
2629
|
id: "section:settings",
|
|
2604
|
-
label:
|
|
2630
|
+
label: c("Settings"),
|
|
2605
2631
|
items: b
|
|
2606
2632
|
}
|
|
2607
2633
|
];
|
|
2608
2634
|
if (r === "database")
|
|
2609
|
-
return
|
|
2635
|
+
return d.length === 0 ? [] : [
|
|
2610
2636
|
{
|
|
2611
2637
|
id: "section:database",
|
|
2612
|
-
label:
|
|
2613
|
-
items:
|
|
2638
|
+
label: c("Database"),
|
|
2639
|
+
items: d
|
|
2614
2640
|
}
|
|
2615
2641
|
];
|
|
2616
2642
|
if (r === "commands") {
|
|
2617
|
-
const k =
|
|
2643
|
+
const k = h ? i.map((C) => ({
|
|
2618
2644
|
cmd: C,
|
|
2619
|
-
score:
|
|
2620
|
-
})).filter((C) => C.score > 0).sort((C, I) => I.score - C.score).map((C) => C.cmd) :
|
|
2621
|
-
if (!
|
|
2622
|
-
const C =
|
|
2645
|
+
score: ot(C, h)
|
|
2646
|
+
})).filter((C) => C.score > 0).sort((C, I) => I.score - C.score).map((C) => C.cmd) : i, L = [], B = /* @__PURE__ */ new Set();
|
|
2647
|
+
if (!h) {
|
|
2648
|
+
const C = u.map((I) => _.get(I)).filter((I) => !!I);
|
|
2623
2649
|
if (C.length > 0) {
|
|
2624
2650
|
L.push({
|
|
2625
2651
|
id: "recent",
|
|
2626
|
-
label:
|
|
2652
|
+
label: c("Recent"),
|
|
2627
2653
|
items: C.map((I) => S(I))
|
|
2628
2654
|
});
|
|
2629
2655
|
for (const I of C)
|
|
2630
|
-
|
|
2656
|
+
B.add(I.id);
|
|
2631
2657
|
}
|
|
2632
2658
|
}
|
|
2633
2659
|
const T = /* @__PURE__ */ new Map();
|
|
2634
2660
|
for (const C of k) {
|
|
2635
|
-
if (
|
|
2661
|
+
if (B.has(C.id)) continue;
|
|
2636
2662
|
const I = T.get(C.category) ?? [];
|
|
2637
2663
|
I.push(C), T.set(C.category, I);
|
|
2638
2664
|
}
|
|
2639
|
-
const K = m ?? [],
|
|
2665
|
+
const K = m ?? [], R = (C) => {
|
|
2640
2666
|
const I = K.indexOf(C);
|
|
2641
2667
|
return I === -1 ? K.length : I;
|
|
2642
2668
|
}, X = [...T.keys()].sort((C, I) => {
|
|
2643
|
-
const V =
|
|
2669
|
+
const V = R(C) - R(I);
|
|
2644
2670
|
return V !== 0 ? V : C.localeCompare(I);
|
|
2645
2671
|
});
|
|
2646
2672
|
for (const C of X) {
|
|
@@ -2654,93 +2680,93 @@ function ti(e) {
|
|
|
2654
2680
|
return L;
|
|
2655
2681
|
}
|
|
2656
2682
|
const y = [];
|
|
2657
|
-
if (!
|
|
2658
|
-
const k = /* @__PURE__ */ new Set(), L =
|
|
2683
|
+
if (!h) {
|
|
2684
|
+
const k = /* @__PURE__ */ new Set(), L = u.map((T) => _.get(T)).filter((T) => !!T);
|
|
2659
2685
|
if (L.length > 0) {
|
|
2660
2686
|
y.push({
|
|
2661
2687
|
id: "everywhere:recent",
|
|
2662
|
-
label:
|
|
2688
|
+
label: c("Recent"),
|
|
2663
2689
|
items: L.slice(0, 5).map((T) => S(T))
|
|
2664
2690
|
});
|
|
2665
2691
|
for (const T of L)
|
|
2666
2692
|
k.add(T.id);
|
|
2667
2693
|
}
|
|
2668
|
-
const
|
|
2669
|
-
return
|
|
2694
|
+
const B = i.filter((T) => !k.has(T.id)).slice(0, 10);
|
|
2695
|
+
return B.length > 0 && y.push({
|
|
2670
2696
|
id: "everywhere:actions",
|
|
2671
|
-
label:
|
|
2672
|
-
items:
|
|
2697
|
+
label: c("Actions"),
|
|
2698
|
+
items: B.map((T) => S(T))
|
|
2673
2699
|
}), b.length > 0 && y.push({
|
|
2674
2700
|
id: "everywhere:settings",
|
|
2675
|
-
label:
|
|
2701
|
+
label: c("Settings"),
|
|
2676
2702
|
items: b.slice(0, 5)
|
|
2677
|
-
}),
|
|
2703
|
+
}), d.length > 0 && y.push({
|
|
2678
2704
|
id: "everywhere:database",
|
|
2679
|
-
label:
|
|
2680
|
-
items:
|
|
2705
|
+
label: c("Database"),
|
|
2706
|
+
items: d.slice(0, 5)
|
|
2681
2707
|
}), y;
|
|
2682
2708
|
}
|
|
2683
|
-
const z =
|
|
2709
|
+
const z = i.map((k) => ({
|
|
2684
2710
|
cmd: k,
|
|
2685
|
-
score:
|
|
2711
|
+
score: ot(k, h)
|
|
2686
2712
|
})).filter((k) => k.score > 0).sort((k, L) => L.score - k.score).slice(0, 10).map((k) => S(k.cmd, k.score));
|
|
2687
2713
|
return z.length > 0 && y.push({
|
|
2688
2714
|
id: "everywhere:actions",
|
|
2689
|
-
label:
|
|
2715
|
+
label: c("Actions"),
|
|
2690
2716
|
items: z
|
|
2691
2717
|
}), b.length > 0 && y.push({
|
|
2692
2718
|
id: "everywhere:settings",
|
|
2693
|
-
label:
|
|
2719
|
+
label: c("Settings"),
|
|
2694
2720
|
items: b.slice(0, 6)
|
|
2695
|
-
}),
|
|
2721
|
+
}), d.length > 0 && y.push({
|
|
2696
2722
|
id: "everywhere:database",
|
|
2697
|
-
label:
|
|
2698
|
-
items:
|
|
2723
|
+
label: c("Database"),
|
|
2724
|
+
items: d.slice(0, 10)
|
|
2699
2725
|
}), y;
|
|
2700
2726
|
}
|
|
2701
|
-
var
|
|
2727
|
+
var ci = ['<div class="', '"><div class="', '" role="dialog" aria-modal="true"', "><div", ">", "</div>", "", "</div></div>"], li = ["<div", ">", "</div>"], ui = ["<section", "><div", ">", "</div><div", ">", "</div></section>"], He = ["<span", ">", "</span>"], ct = ["<span", "><span", ">", "</span>", "</span>"], lt = ['<span class="', '">', "</span>"], di = ["<span", ' aria-hidden="true">', "</span>"], mi = ['<span style="', '">', "", "", "</span>"], fi = ['<div class="', '">', "", "</div>"], hi = ["<span", "><span", ">", "</span></span>"], gi = ["<section", "><div", ">", "</div><div", ">", "", "</div></section>"];
|
|
2702
2728
|
const he = "__palette_back__";
|
|
2703
|
-
function
|
|
2704
|
-
return e.kind === "command" && e.rawCommand ?
|
|
2729
|
+
function vi(e) {
|
|
2730
|
+
return e.kind === "command" && e.rawCommand ? ws(e.rawCommand) : [e.title, e.description, e.detail].filter((r) => !!r).join(", ");
|
|
2705
2731
|
}
|
|
2706
|
-
function
|
|
2707
|
-
const r =
|
|
2732
|
+
function hc(e) {
|
|
2733
|
+
const r = gt(), a = Pe(() => e.open, "command-palette", {
|
|
2708
2734
|
type: "modal",
|
|
2709
2735
|
document: () => e.host().document
|
|
2710
|
-
}), [
|
|
2736
|
+
}), [i, u] = D(""), [m, b] = D("everywhere"), [d, h] = D(null), [_, S] = D(null);
|
|
2711
2737
|
let y;
|
|
2712
2738
|
const z = G(() => {
|
|
2713
2739
|
const s = /* @__PURE__ */ new Map();
|
|
2714
|
-
for (const
|
|
2715
|
-
s.set(
|
|
2740
|
+
for (const l of e.commands)
|
|
2741
|
+
s.set(l.id, l);
|
|
2716
2742
|
return s;
|
|
2717
2743
|
}), k = G(() => {
|
|
2718
|
-
var
|
|
2744
|
+
var l;
|
|
2719
2745
|
if (_()) return null;
|
|
2720
|
-
const s =
|
|
2721
|
-
return ((
|
|
2746
|
+
const s = i().toLowerCase();
|
|
2747
|
+
return ((l = e.prefixModes) == null ? void 0 : l.find((p) => s.startsWith(p.prefix))) ?? null;
|
|
2722
2748
|
}), L = G(() => {
|
|
2723
2749
|
const s = _();
|
|
2724
2750
|
if (s) return s;
|
|
2725
|
-
const
|
|
2726
|
-
return
|
|
2727
|
-
rootCommandId: `__prefix__:${
|
|
2728
|
-
descriptor:
|
|
2751
|
+
const l = k();
|
|
2752
|
+
return l ? {
|
|
2753
|
+
rootCommandId: `__prefix__:${l.prefix}`,
|
|
2754
|
+
descriptor: l.build()
|
|
2729
2755
|
} : null;
|
|
2730
|
-
}),
|
|
2756
|
+
}), B = G(() => {
|
|
2731
2757
|
const s = L();
|
|
2732
2758
|
if (!s) return [];
|
|
2733
|
-
const
|
|
2734
|
-
return p ? s.descriptor.items.map((
|
|
2735
|
-
item:
|
|
2736
|
-
score:
|
|
2737
|
-
})).filter((
|
|
2738
|
-
}), T =
|
|
2739
|
-
query:
|
|
2759
|
+
const l = k(), p = (l ? i().slice(l.prefix.length) : i()).trim().toLowerCase();
|
|
2760
|
+
return p ? s.descriptor.items.map((M) => ({
|
|
2761
|
+
item: M,
|
|
2762
|
+
score: _s(M, p)
|
|
2763
|
+
})).filter((M) => M.score > 0).sort((M, se) => se.score - M.score).map((M) => M.item) : s.descriptor.items;
|
|
2764
|
+
}), T = si({
|
|
2765
|
+
query: i,
|
|
2740
2766
|
enabled: () => e.open && !L() && (m() === "everywhere" || m() === "database")
|
|
2741
|
-
}), K = G(() => !e.open || L() ? [] : m() !== "everywhere" && m() !== "settings" ? [] :
|
|
2767
|
+
}), K = G(() => !e.open || L() ? [] : m() !== "everywhere" && m() !== "settings" ? [] : ni(r.settingsSearch, i(), m() === "settings" ? 40 : 8)), R = G(() => L() ? [] : ii({
|
|
2742
2768
|
mode: m(),
|
|
2743
|
-
query:
|
|
2769
|
+
query: i(),
|
|
2744
2770
|
commands: e.commands,
|
|
2745
2771
|
recentCommandIds: e.recentCommandIds,
|
|
2746
2772
|
categoryOrder: e.categoryOrder,
|
|
@@ -2749,83 +2775,83 @@ function cc(e) {
|
|
|
2749
2775
|
hasWorkspaceContext: T.hasWorkspaceContext()
|
|
2750
2776
|
})), X = G(() => {
|
|
2751
2777
|
const s = /* @__PURE__ */ new Map();
|
|
2752
|
-
for (const
|
|
2753
|
-
for (const p of
|
|
2778
|
+
for (const l of R())
|
|
2779
|
+
for (const p of l.items)
|
|
2754
2780
|
s.set(p.id, p);
|
|
2755
2781
|
return s;
|
|
2756
|
-
}), C = G(() => _() ? [he, ...
|
|
2757
|
-
const
|
|
2758
|
-
if (
|
|
2759
|
-
const p =
|
|
2760
|
-
|
|
2782
|
+
}), C = G(() => _() ? [he, ...B().map((s) => s.id)] : k() ? B().map((s) => s.id) : R().flatMap((s) => s.items.filter((l) => l.enabled).map((l) => l.id))), I = (s) => {
|
|
2783
|
+
const l = C();
|
|
2784
|
+
if (l.length === 0) return;
|
|
2785
|
+
const p = d(), M = l.findIndex((we) => we === p), fe = ((M >= 0 ? M : 0) + s + l.length) % l.length;
|
|
2786
|
+
h(l[fe] ?? null);
|
|
2761
2787
|
}, V = (s) => {
|
|
2762
|
-
const
|
|
2763
|
-
b(
|
|
2788
|
+
const l = ["everywhere", "commands", "settings", "database"], M = (l.indexOf(m()) + s + l.length) % l.length;
|
|
2789
|
+
b(l[M] ?? "everywhere");
|
|
2764
2790
|
}, de = (s) => {
|
|
2765
2791
|
var p;
|
|
2766
2792
|
if (!s.submenu) return;
|
|
2767
|
-
const
|
|
2793
|
+
const l = s.submenu();
|
|
2768
2794
|
S({
|
|
2769
2795
|
rootCommandId: s.id,
|
|
2770
|
-
descriptor:
|
|
2771
|
-
}),
|
|
2796
|
+
descriptor: l
|
|
2797
|
+
}), u(""), h(((p = l.items[0]) == null ? void 0 : p.id) ?? he), queueMicrotask(() => y == null ? void 0 : y.focus());
|
|
2772
2798
|
}, ne = () => {
|
|
2773
|
-
S(null),
|
|
2799
|
+
S(null), u(""), h(null), queueMicrotask(() => y == null ? void 0 : y.focus());
|
|
2774
2800
|
}, ie = (s) => {
|
|
2775
2801
|
if (s.enabled) {
|
|
2776
2802
|
if (s.submenu) {
|
|
2777
2803
|
de(s);
|
|
2778
2804
|
return;
|
|
2779
2805
|
}
|
|
2780
|
-
e.onCommandExecuted(s.id), s.run()
|
|
2806
|
+
e.onClose(), e.onCommandExecuted(s.id), s.run();
|
|
2781
2807
|
}
|
|
2782
2808
|
}, ae = (s) => {
|
|
2783
|
-
const
|
|
2784
|
-
|
|
2809
|
+
const l = e.onConfigureKeybinding;
|
|
2810
|
+
l && (e.onClose(), l(s.id));
|
|
2785
2811
|
}, f = (s) => {
|
|
2786
|
-
const
|
|
2787
|
-
|
|
2788
|
-
},
|
|
2812
|
+
const l = _();
|
|
2813
|
+
e.onClose(), l && e.onCommandExecuted(l.rootCommandId), s.run();
|
|
2814
|
+
}, g = (s) => {
|
|
2789
2815
|
if (s.enabled) {
|
|
2790
2816
|
if (s.kind === "command" && s.rawCommand) {
|
|
2791
2817
|
ie(s.rawCommand);
|
|
2792
2818
|
return;
|
|
2793
2819
|
}
|
|
2794
|
-
|
|
2820
|
+
e.onClose(), s.run();
|
|
2795
2821
|
}
|
|
2796
2822
|
};
|
|
2797
2823
|
te(() => {
|
|
2798
|
-
var
|
|
2824
|
+
var l;
|
|
2799
2825
|
if (!e.open) {
|
|
2800
|
-
S(null), b("everywhere"),
|
|
2826
|
+
S(null), b("everywhere"), h(null);
|
|
2801
2827
|
return;
|
|
2802
2828
|
}
|
|
2803
|
-
|
|
2829
|
+
u(""), b("everywhere"), S(null);
|
|
2804
2830
|
const s = e.consumePendingPickerId();
|
|
2805
2831
|
if (s !== null) {
|
|
2806
2832
|
const p = z().get(s);
|
|
2807
2833
|
if (p && p.submenu) {
|
|
2808
|
-
const
|
|
2834
|
+
const M = p.submenu();
|
|
2809
2835
|
S({
|
|
2810
2836
|
rootCommandId: p.id,
|
|
2811
|
-
descriptor:
|
|
2812
|
-
}),
|
|
2837
|
+
descriptor: M
|
|
2838
|
+
}), h(((l = M.items[0]) == null ? void 0 : l.id) ?? he);
|
|
2813
2839
|
}
|
|
2814
2840
|
}
|
|
2815
2841
|
queueMicrotask(() => y == null ? void 0 : y.focus());
|
|
2816
2842
|
}), te(() => {
|
|
2817
2843
|
if (!e.open) return;
|
|
2818
|
-
const s = C(),
|
|
2844
|
+
const s = C(), l = d();
|
|
2819
2845
|
if (s.length === 0) {
|
|
2820
|
-
|
|
2846
|
+
h(null);
|
|
2821
2847
|
return;
|
|
2822
2848
|
}
|
|
2823
|
-
(!
|
|
2849
|
+
(!l || !s.includes(l)) && h(s[0] ?? null);
|
|
2824
2850
|
}), te(() => {
|
|
2825
2851
|
if (!e.open) return;
|
|
2826
|
-
const s =
|
|
2852
|
+
const s = d();
|
|
2827
2853
|
s && queueMicrotask(() => {
|
|
2828
|
-
const
|
|
2854
|
+
const l = typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(s) : s.replace(/"/g, '\\"'), p = e.host().document.querySelector(`[data-cmd-entry-id="${l}"]`);
|
|
2829
2855
|
p == null || p.scrollIntoView({
|
|
2830
2856
|
block: "nearest"
|
|
2831
2857
|
});
|
|
@@ -2855,27 +2881,27 @@ function cc(e) {
|
|
|
2855
2881
|
return;
|
|
2856
2882
|
}
|
|
2857
2883
|
if (ge(p, "Enter")) {
|
|
2858
|
-
const
|
|
2859
|
-
if (!
|
|
2884
|
+
const M = d();
|
|
2885
|
+
if (!M) return;
|
|
2860
2886
|
if (p.preventDefault(), L()) {
|
|
2861
|
-
if (
|
|
2887
|
+
if (M === he) {
|
|
2862
2888
|
ne();
|
|
2863
2889
|
return;
|
|
2864
2890
|
}
|
|
2865
|
-
const we =
|
|
2891
|
+
const we = B().find((P) => P.id === M);
|
|
2866
2892
|
we && f(we);
|
|
2867
2893
|
return;
|
|
2868
2894
|
}
|
|
2869
|
-
const se = X().get(
|
|
2895
|
+
const se = X().get(M);
|
|
2870
2896
|
if (se) {
|
|
2871
2897
|
if (p.altKey && se.kind === "command" && se.rawCommand) {
|
|
2872
2898
|
ae(se.rawCommand);
|
|
2873
2899
|
return;
|
|
2874
2900
|
}
|
|
2875
|
-
|
|
2901
|
+
g(se);
|
|
2876
2902
|
return;
|
|
2877
2903
|
}
|
|
2878
|
-
const fe = z().get(
|
|
2904
|
+
const fe = z().get(M);
|
|
2879
2905
|
if (fe) {
|
|
2880
2906
|
if (p.altKey) {
|
|
2881
2907
|
ae(fe);
|
|
@@ -2885,32 +2911,32 @@ function cc(e) {
|
|
|
2885
2911
|
}
|
|
2886
2912
|
}
|
|
2887
2913
|
}
|
|
2888
|
-
},
|
|
2889
|
-
|
|
2890
|
-
|
|
2914
|
+
}, l = e.host();
|
|
2915
|
+
l.addEventListener("keydown", s), Q(() => {
|
|
2916
|
+
l.removeEventListener("keydown", s);
|
|
2891
2917
|
});
|
|
2892
2918
|
});
|
|
2893
|
-
const $ = (s) => s.items.length === 0 && s.emptyText !== void 0 ? s.emptyText :
|
|
2919
|
+
const $ = (s) => s.items.length === 0 && s.emptyText !== void 0 ? s.emptyText : c("No matches."), O = (s) => {
|
|
2894
2920
|
if (m() === "everywhere") {
|
|
2895
2921
|
if (s.startsWith("/") || s.startsWith(">")) {
|
|
2896
|
-
b("commands"),
|
|
2922
|
+
b("commands"), u(s.slice(1));
|
|
2897
2923
|
return;
|
|
2898
2924
|
}
|
|
2899
2925
|
if (s.startsWith("#")) {
|
|
2900
|
-
b("settings"),
|
|
2926
|
+
b("settings"), u(s.slice(1));
|
|
2901
2927
|
return;
|
|
2902
2928
|
}
|
|
2903
2929
|
if (s.startsWith("@")) {
|
|
2904
|
-
b("database"),
|
|
2930
|
+
b("database"), u(s.slice(1));
|
|
2905
2931
|
return;
|
|
2906
2932
|
}
|
|
2907
2933
|
}
|
|
2908
|
-
|
|
2934
|
+
u(s);
|
|
2909
2935
|
}, F = () => {
|
|
2910
2936
|
const s = _();
|
|
2911
|
-
return s ? s.descriptor.title : m() === "everywhere" ?
|
|
2937
|
+
return s ? s.descriptor.title : m() === "everywhere" ? c("Search everywhere...") : m() === "commands" ? c("Search commands...") : m() === "settings" ? c("Search settings...") : m() === "database" ? c("Search database objects...") : c("Search commands...");
|
|
2912
2938
|
};
|
|
2913
|
-
return
|
|
2939
|
+
return Rt({
|
|
2914
2940
|
open: () => e.open,
|
|
2915
2941
|
onDismiss: () => e.onClose(),
|
|
2916
2942
|
ownerDocument: () => e.host().document
|
|
@@ -2919,32 +2945,32 @@ function cc(e) {
|
|
|
2919
2945
|
return e.open;
|
|
2920
2946
|
},
|
|
2921
2947
|
get children() {
|
|
2922
|
-
return n(
|
|
2948
|
+
return n(Re, {
|
|
2923
2949
|
get mount() {
|
|
2924
2950
|
return e.host().document.body;
|
|
2925
2951
|
},
|
|
2926
2952
|
get children() {
|
|
2927
|
-
return
|
|
2953
|
+
return v(ci, `${t(A.backdrop, !0)} ${e.style === "compact" ? t(A.backdropCompact, !0) : t(A.backdropClassic, !0)}`, `${t(A.panel, !0)} ${e.style === "compact" ? t(A.panelCompact, !0) : t(A.panelClassic, !0)}`, o("aria-label", t(c("Command Palette"), !0), !1), o("class", t(A.searchRow, !0), !1), t(n(Ye, {
|
|
2928
2954
|
get class() {
|
|
2929
2955
|
return A.searchInput;
|
|
2930
2956
|
},
|
|
2931
2957
|
type: "text",
|
|
2932
2958
|
get value() {
|
|
2933
|
-
return
|
|
2959
|
+
return i();
|
|
2934
2960
|
},
|
|
2935
2961
|
get placeholder() {
|
|
2936
2962
|
return F();
|
|
2937
2963
|
},
|
|
2938
2964
|
onInput: (s) => {
|
|
2939
|
-
const
|
|
2940
|
-
|
|
2965
|
+
const l = s.currentTarget ?? s.target;
|
|
2966
|
+
O((l == null ? void 0 : l.value) ?? "");
|
|
2941
2967
|
}
|
|
2942
2968
|
})), t(n(w, {
|
|
2943
2969
|
get when() {
|
|
2944
2970
|
return !L();
|
|
2945
2971
|
},
|
|
2946
2972
|
get children() {
|
|
2947
|
-
return n(
|
|
2973
|
+
return n(Zs, {
|
|
2948
2974
|
activeMode: m,
|
|
2949
2975
|
onModeChange: b,
|
|
2950
2976
|
get hasWorkspaceContext() {
|
|
@@ -2964,7 +2990,7 @@ function cc(e) {
|
|
|
2964
2990
|
get fallback() {
|
|
2965
2991
|
return n(w, {
|
|
2966
2992
|
get when() {
|
|
2967
|
-
return
|
|
2993
|
+
return R().length > 0;
|
|
2968
2994
|
},
|
|
2969
2995
|
get fallback() {
|
|
2970
2996
|
return n(w, {
|
|
@@ -2985,7 +3011,7 @@ function cc(e) {
|
|
|
2985
3011
|
return n(ke, {
|
|
2986
3012
|
size: "sm",
|
|
2987
3013
|
get title() {
|
|
2988
|
-
return
|
|
3014
|
+
return c("No matches found.");
|
|
2989
3015
|
}
|
|
2990
3016
|
});
|
|
2991
3017
|
},
|
|
@@ -2993,7 +3019,7 @@ function cc(e) {
|
|
|
2993
3019
|
return n(ke, {
|
|
2994
3020
|
size: "sm",
|
|
2995
3021
|
get title() {
|
|
2996
|
-
return
|
|
3022
|
+
return c("No commands found.");
|
|
2997
3023
|
}
|
|
2998
3024
|
});
|
|
2999
3025
|
}
|
|
@@ -3003,7 +3029,7 @@ function cc(e) {
|
|
|
3003
3029
|
return n(ke, {
|
|
3004
3030
|
size: "sm",
|
|
3005
3031
|
get title() {
|
|
3006
|
-
return
|
|
3032
|
+
return c("No settings found.");
|
|
3007
3033
|
}
|
|
3008
3034
|
});
|
|
3009
3035
|
}
|
|
@@ -3018,7 +3044,7 @@ function cc(e) {
|
|
|
3018
3044
|
return n(ke, {
|
|
3019
3045
|
size: "sm",
|
|
3020
3046
|
get title() {
|
|
3021
|
-
return
|
|
3047
|
+
return c("No database connected.");
|
|
3022
3048
|
}
|
|
3023
3049
|
});
|
|
3024
3050
|
},
|
|
@@ -3031,12 +3057,12 @@ function cc(e) {
|
|
|
3031
3057
|
return n(ke, {
|
|
3032
3058
|
size: "sm",
|
|
3033
3059
|
get title() {
|
|
3034
|
-
return
|
|
3060
|
+
return c("No database objects found.");
|
|
3035
3061
|
}
|
|
3036
3062
|
});
|
|
3037
3063
|
},
|
|
3038
3064
|
get children() {
|
|
3039
|
-
return
|
|
3065
|
+
return v(li, o("class", t(ue.statusRow, !0), !1), t(c("Loading objects...")));
|
|
3040
3066
|
}
|
|
3041
3067
|
});
|
|
3042
3068
|
}
|
|
@@ -3047,64 +3073,64 @@ function cc(e) {
|
|
|
3047
3073
|
get children() {
|
|
3048
3074
|
return n(me, {
|
|
3049
3075
|
get each() {
|
|
3050
|
-
return
|
|
3076
|
+
return R();
|
|
3051
3077
|
},
|
|
3052
|
-
children: (s) =>
|
|
3078
|
+
children: (s) => v(ui, o("class", t(A.section, !0), !1), o("class", t(A.sectionTitle, !0), !1), t(s.label), o("class", t(A.commandList, !0), !1), t(n(me, {
|
|
3053
3079
|
get each() {
|
|
3054
3080
|
return s.items;
|
|
3055
3081
|
},
|
|
3056
|
-
children: (
|
|
3082
|
+
children: (l) => v(fi, `${t(A.commandRow, !0)} ${d() === l.id ? t(A.commandRowActive, !0) : ""}`, t(n(ye, {
|
|
3057
3083
|
type: "button",
|
|
3058
3084
|
get class() {
|
|
3059
|
-
return `${A.commandItem} ${
|
|
3085
|
+
return `${A.commandItem} ${d() === l.id ? A.commandItemActive : ""}`;
|
|
3060
3086
|
},
|
|
3061
3087
|
get "attr:data-cmd-entry-id"() {
|
|
3062
|
-
return
|
|
3088
|
+
return l.id;
|
|
3063
3089
|
},
|
|
3064
3090
|
get "aria-label"() {
|
|
3065
|
-
return
|
|
3091
|
+
return vi(l);
|
|
3066
3092
|
},
|
|
3067
3093
|
onMouseEnter: () => {
|
|
3068
|
-
|
|
3094
|
+
l.enabled && h(l.id);
|
|
3069
3095
|
},
|
|
3070
|
-
onClick: () =>
|
|
3096
|
+
onClick: () => g(l),
|
|
3071
3097
|
get disabled() {
|
|
3072
|
-
return !
|
|
3098
|
+
return !l.enabled;
|
|
3073
3099
|
},
|
|
3074
3100
|
get children() {
|
|
3075
|
-
return [
|
|
3101
|
+
return [v(ct, o("class", t(A.commandMain, !0), !1), o("class", t(A.commandTitle, !0), !1), t(l.title), t(n(w, {
|
|
3076
3102
|
get when() {
|
|
3077
|
-
return
|
|
3103
|
+
return l.description;
|
|
3078
3104
|
},
|
|
3079
3105
|
get children() {
|
|
3080
|
-
return
|
|
3106
|
+
return v(He, o("class", t(A.commandDescription, !0), !1), t(l.description));
|
|
3081
3107
|
}
|
|
3082
|
-
}))),
|
|
3108
|
+
}))), v(mi, Z("display:", "inline-flex") + Z(";align-items:", "center") + Z(";gap:", "0.4rem"), t(n(w, {
|
|
3083
3109
|
get when() {
|
|
3084
|
-
return
|
|
3110
|
+
return l.kind === "setting";
|
|
3085
3111
|
},
|
|
3086
3112
|
get children() {
|
|
3087
|
-
return
|
|
3113
|
+
return v(lt, `${t(ue.badge, !0)} ${t(ue.badgeSetting, !0)}`, t(c("Setting")));
|
|
3088
3114
|
}
|
|
3089
3115
|
})), t(n(w, {
|
|
3090
3116
|
get when() {
|
|
3091
|
-
return
|
|
3117
|
+
return l.kind === "database-object";
|
|
3092
3118
|
},
|
|
3093
3119
|
get children() {
|
|
3094
|
-
return
|
|
3120
|
+
return v(lt, `${t(ue.badge, !0)} ${t(ue.badgeDb, !0)}`, t(l.objectType || c("Database")));
|
|
3095
3121
|
}
|
|
3096
3122
|
})), t(n(w, {
|
|
3097
3123
|
get when() {
|
|
3098
|
-
return
|
|
3124
|
+
return l.shortcut;
|
|
3099
3125
|
},
|
|
3100
3126
|
get children() {
|
|
3101
|
-
return
|
|
3127
|
+
return v(di, o("class", t(A.commandShortcut, !0), !1), t(l.shortcut));
|
|
3102
3128
|
}
|
|
3103
3129
|
})))];
|
|
3104
3130
|
}
|
|
3105
3131
|
})), t(n(w, {
|
|
3106
3132
|
get when() {
|
|
3107
|
-
return ee(() => !!(
|
|
3133
|
+
return ee(() => !!(l.kind === "command" && l.rawCommand))() && e.onConfigureKeybinding;
|
|
3108
3134
|
},
|
|
3109
3135
|
get children() {
|
|
3110
3136
|
return n(J, {
|
|
@@ -3116,16 +3142,16 @@ function cc(e) {
|
|
|
3116
3142
|
iconOnly: !0,
|
|
3117
3143
|
tabIndex: -1,
|
|
3118
3144
|
get "aria-label"() {
|
|
3119
|
-
return
|
|
3145
|
+
return c("Configure Keybinding");
|
|
3120
3146
|
},
|
|
3121
3147
|
get title() {
|
|
3122
|
-
return
|
|
3148
|
+
return c("Configure Keybinding");
|
|
3123
3149
|
},
|
|
3124
3150
|
onClick: (p) => {
|
|
3125
|
-
p.stopPropagation(),
|
|
3151
|
+
p.stopPropagation(), l.rawCommand && ae(l.rawCommand);
|
|
3126
3152
|
},
|
|
3127
3153
|
get leadingIcon() {
|
|
3128
|
-
return n(
|
|
3154
|
+
return n(Gt, {
|
|
3129
3155
|
"aria-hidden": "true"
|
|
3130
3156
|
});
|
|
3131
3157
|
}
|
|
@@ -3137,7 +3163,7 @@ function cc(e) {
|
|
|
3137
3163
|
}
|
|
3138
3164
|
});
|
|
3139
3165
|
},
|
|
3140
|
-
children: (s) =>
|
|
3166
|
+
children: (s) => v(gi, o("class", t(A.section, !0), !1), o("class", t(A.sectionTitle, !0), !1), t(s().descriptor.title), o("class", t(A.commandList, !0), !1), t(n(w, {
|
|
3141
3167
|
get when() {
|
|
3142
3168
|
return _();
|
|
3143
3169
|
},
|
|
@@ -3145,19 +3171,19 @@ function cc(e) {
|
|
|
3145
3171
|
return n(ye, {
|
|
3146
3172
|
type: "button",
|
|
3147
3173
|
get class() {
|
|
3148
|
-
return `${A.commandItem} ${
|
|
3174
|
+
return `${A.commandItem} ${d() === he ? A.commandItemActive : ""}`;
|
|
3149
3175
|
},
|
|
3150
3176
|
"attr:data-cmd-entry-id": he,
|
|
3151
|
-
onMouseEnter: () =>
|
|
3177
|
+
onMouseEnter: () => h(he),
|
|
3152
3178
|
onClick: () => ne(),
|
|
3153
3179
|
get children() {
|
|
3154
|
-
return
|
|
3180
|
+
return v(hi, o("class", t(A.commandMain, !0), !1), o("class", t(A.commandTitle, !0), !1), t(c("← Back")));
|
|
3155
3181
|
}
|
|
3156
3182
|
});
|
|
3157
3183
|
}
|
|
3158
3184
|
})), t(n(w, {
|
|
3159
3185
|
get when() {
|
|
3160
|
-
return
|
|
3186
|
+
return B().length > 0;
|
|
3161
3187
|
},
|
|
3162
3188
|
get fallback() {
|
|
3163
3189
|
return n(ke, {
|
|
@@ -3170,32 +3196,32 @@ function cc(e) {
|
|
|
3170
3196
|
get children() {
|
|
3171
3197
|
return n(me, {
|
|
3172
3198
|
get each() {
|
|
3173
|
-
return
|
|
3199
|
+
return B();
|
|
3174
3200
|
},
|
|
3175
|
-
children: (
|
|
3201
|
+
children: (l) => n(ye, {
|
|
3176
3202
|
type: "button",
|
|
3177
3203
|
get class() {
|
|
3178
|
-
return `${A.commandItem} ${
|
|
3204
|
+
return `${A.commandItem} ${d() === l.id ? A.commandItemActive : ""}`;
|
|
3179
3205
|
},
|
|
3180
3206
|
get "attr:data-cmd-entry-id"() {
|
|
3181
|
-
return
|
|
3207
|
+
return l.id;
|
|
3182
3208
|
},
|
|
3183
|
-
onMouseEnter: () =>
|
|
3184
|
-
onClick: () => f(
|
|
3209
|
+
onMouseEnter: () => h(l.id),
|
|
3210
|
+
onClick: () => f(l),
|
|
3185
3211
|
get children() {
|
|
3186
|
-
return [
|
|
3212
|
+
return [v(ct, o("class", t(A.commandMain, !0), !1), o("class", t(A.commandTitle, !0), !1), t(l.title), t(n(w, {
|
|
3187
3213
|
get when() {
|
|
3188
|
-
return
|
|
3214
|
+
return l.description;
|
|
3189
3215
|
},
|
|
3190
3216
|
get children() {
|
|
3191
|
-
return
|
|
3217
|
+
return v(He, o("class", t(A.commandDescription, !0), !1), t(l.description));
|
|
3192
3218
|
}
|
|
3193
3219
|
}))), n(w, {
|
|
3194
3220
|
get when() {
|
|
3195
|
-
return
|
|
3221
|
+
return l.isCurrent;
|
|
3196
3222
|
},
|
|
3197
3223
|
get children() {
|
|
3198
|
-
return
|
|
3224
|
+
return v(He, o("class", t(A.commandShortcut, !0), !1), t(c("Current")));
|
|
3199
3225
|
}
|
|
3200
3226
|
})];
|
|
3201
3227
|
}
|
|
@@ -3212,54 +3238,54 @@ function cc(e) {
|
|
|
3212
3238
|
});
|
|
3213
3239
|
}
|
|
3214
3240
|
export {
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3241
|
+
ji as A,
|
|
3242
|
+
Ba as B,
|
|
3243
|
+
hc as C,
|
|
3244
|
+
er as D,
|
|
3245
|
+
Dn as E,
|
|
3246
|
+
fc as F,
|
|
3247
|
+
vt as G,
|
|
3248
|
+
Gi as H,
|
|
3249
|
+
Ui as I,
|
|
3250
|
+
$t as J,
|
|
3251
|
+
Ln as K,
|
|
3252
|
+
ic as L,
|
|
3253
|
+
ac as M,
|
|
3254
|
+
Ga as N,
|
|
3255
|
+
tt as O,
|
|
3256
|
+
tc as P,
|
|
3257
|
+
Me as Q,
|
|
3258
|
+
Xi as R,
|
|
3259
|
+
ze as S,
|
|
3260
|
+
qi as T,
|
|
3261
|
+
Qi as U,
|
|
3262
|
+
uc as V,
|
|
3263
|
+
Ji as W,
|
|
3264
|
+
lc as X,
|
|
3265
|
+
Ki as a,
|
|
3266
|
+
nt as b,
|
|
3267
|
+
ec as c,
|
|
3268
|
+
nc as d,
|
|
3269
|
+
sc as e,
|
|
3270
|
+
rc as f,
|
|
3271
|
+
No as g,
|
|
3272
|
+
zo as h,
|
|
3273
|
+
oc as i,
|
|
3274
|
+
Wo as j,
|
|
3275
|
+
Fo as k,
|
|
3276
|
+
An as l,
|
|
3277
|
+
In as m,
|
|
3278
|
+
xn as n,
|
|
3279
|
+
Oe as o,
|
|
3280
|
+
Yi as p,
|
|
3281
|
+
Ja as q,
|
|
3282
|
+
Xa as r,
|
|
3283
|
+
Qa as s,
|
|
3284
|
+
cc as t,
|
|
3285
|
+
Zi as u,
|
|
3286
|
+
Mn as v,
|
|
3287
|
+
dc as w,
|
|
3288
|
+
mc as x,
|
|
3289
|
+
nr as y,
|
|
3264
3290
|
Ie as z
|
|
3265
3291
|
};
|