@vokril/ui-solid 0.9.3 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (607) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/README.md +110 -31
  3. package/dist/{AttributeGrid-Bnn1w5XX.cjs → AttributeGrid-7cLOWtPn.cjs} +1 -1
  4. package/dist/{AttributeGrid-DJdW32LQ.js → AttributeGrid-CVyqzT7-.js} +5 -5
  5. package/dist/{Button-BZWXPn8y.js → Button-BiKPB3cH.js} +2 -2
  6. package/dist/{Button-X8QR6llv.cjs → Button-Nx7byQZc.cjs} +1 -1
  7. package/dist/CommandPalette-BFi0_e3t.cjs +2 -0
  8. package/dist/CommandPalette-CAH08DGN.js +4013 -0
  9. package/dist/{CopyButton-D3dIRRnn.js → CopyButton-BF7L1TCO.js} +1 -1
  10. package/dist/{CopyButton-3cX5MHAf.cjs → CopyButton-BtgGbiy9.cjs} +1 -1
  11. package/dist/DateRangePicker-Ce2tTbJ4.cjs +9 -0
  12. package/dist/{DateRangePicker-BcqoUao4.js → DateRangePicker-jSQBwB78.js} +181 -166
  13. package/dist/GuidedTour-CWDtBRHv.js +483 -0
  14. package/dist/GuidedTour-CYaR5Ozj.cjs +1 -0
  15. package/dist/HostPortal-B9Tzk_uN.cjs +1 -0
  16. package/dist/HostPortal-X1iw719T.js +33 -0
  17. package/dist/HostWindowContext-B2m0bVra.js +32 -0
  18. package/dist/HostWindowContext-_VZCt7xE.cjs +1 -0
  19. package/dist/{IconPicker-9tjEtmqt.cjs → IconPicker-4bdAeGxS.cjs} +1 -1
  20. package/dist/{IconPicker-CXbFmJ3y.js → IconPicker-Df6uIUpJ.js} +4 -4
  21. package/dist/{Input-BEnk4FCF.cjs → Input-CZruORyy.cjs} +1 -1
  22. package/dist/{Input-PZ5wRvPx.js → Input-DkPhsdfk.js} +2 -2
  23. package/dist/Modal-CQG8l4x7.cjs +1 -0
  24. package/dist/{Modal-CsiV55WW.js → Modal-CUPe98-o.js} +5 -5
  25. package/dist/PageSkeleton-C3mo6UGh.cjs +30 -0
  26. package/dist/{PageSkeleton-CyTXvZYm.js → PageSkeleton-CUTLh9Ip.js} +630 -628
  27. package/dist/{Popover-C24npAQ7.js → Popover-Dht1jFEy.js} +1 -1
  28. package/dist/{Popover-hhGcYQ-a.cjs → Popover-YfzC0Tjh.cjs} +1 -1
  29. package/dist/{SearchableSelect-C6KL7e42.js → SearchableSelect-C01brsF0.js} +5 -5
  30. package/dist/{SearchableSelect-zT8XNpmt.cjs → SearchableSelect-pCaUie2M.cjs} +1 -1
  31. package/dist/StatusBarNotificationBell-BwqVV09r.js +14266 -0
  32. package/dist/StatusBarNotificationBell-C5Zc2IvW.cjs +50 -0
  33. package/dist/{Stepper-BxXwbDq4.js → Stepper-38IAEOyT.js} +3 -3
  34. package/dist/{Stepper-DoJFCfC7.cjs → Stepper-CtaTpnQu.cjs} +1 -1
  35. package/dist/{Textarea-BUxibzkR.js → Textarea-B5QqqKnI.js} +1 -1
  36. package/dist/{Textarea-BunKEY68.cjs → Textarea-CeAGf08O.cjs} +1 -1
  37. package/dist/{TimeSeriesChart-DBrDzBGE.js → TimeSeriesChart-ByKG4E1G.js} +2 -2
  38. package/dist/{TimeSeriesChart-CS4jQflv.cjs → TimeSeriesChart-_NOs_Job.cjs} +1 -1
  39. package/dist/ToggleButton-Bz3zAtec.cjs +1 -0
  40. package/dist/{ToggleButton-BfjXnp-P.js → ToggleButton-D-N0C2Fu.js} +54 -53
  41. package/dist/_internal/app/keybindings/context/keybindingsContext.d.cts +11 -6
  42. package/dist/_internal/app/keybindings/context/keybindingsContext.d.ts +11 -6
  43. package/dist/_internal/app/keybindings/context/useFocusClaim.d.cts +4 -3
  44. package/dist/_internal/app/keybindings/context/useFocusClaim.d.ts +4 -3
  45. package/dist/_internal/app/keybindings/context/useListCommands.d.cts +6 -5
  46. package/dist/_internal/app/keybindings/context/useListCommands.d.ts +6 -5
  47. package/dist/_internal/app/keybindings/index.d.cts +0 -10
  48. package/dist/_internal/app/keybindings/index.d.ts +0 -10
  49. package/dist/_internal/app/keybindings/panelCommandsRegistry.d.cts +14 -9
  50. package/dist/_internal/app/keybindings/panelCommandsRegistry.d.ts +14 -9
  51. package/dist/_internal/app/menu/menuFavorites.d.cts +35 -8
  52. package/dist/_internal/app/menu/menuFavorites.d.ts +35 -8
  53. package/dist/_internal/app/onboarding/pageTourState.d.cts +75 -22
  54. package/dist/_internal/app/onboarding/pageTourState.d.ts +75 -22
  55. package/dist/_internal/app/platform/electronBridge.d.cts +35 -29
  56. package/dist/_internal/app/platform/electronBridge.d.ts +35 -29
  57. package/dist/_internal/app/settings/secrets/notificationSecrets.d.cts +27 -14
  58. package/dist/_internal/app/settings/secrets/notificationSecrets.d.ts +27 -14
  59. package/dist/_internal/app/windows/window/HostWindowContext.d.cts +8 -14
  60. package/dist/_internal/app/windows/window/HostWindowContext.d.ts +8 -14
  61. package/dist/_internal/contract/catalogNotify.d.cts +6 -19
  62. package/dist/_internal/contract/catalogNotify.d.ts +6 -19
  63. package/dist/_internal/contract/hostErrorText.d.cts +13 -23
  64. package/dist/_internal/contract/hostErrorText.d.ts +13 -23
  65. package/dist/_internal/contract/notificationCatalog.d.cts +16 -5
  66. package/dist/_internal/contract/notificationCatalog.d.ts +16 -5
  67. package/dist/_internal/platform/a11y/announcerService.d.cts +9 -13
  68. package/dist/_internal/platform/a11y/announcerService.d.ts +9 -13
  69. package/dist/_internal/platform/errors/diagnosticReport.d.cts +3 -1
  70. package/dist/_internal/platform/errors/diagnosticReport.d.ts +3 -1
  71. package/dist/_internal/platform/logging/consoleLogger.d.cts +7 -0
  72. package/dist/_internal/platform/logging/consoleLogger.d.ts +7 -0
  73. package/dist/_internal/platform/settings/registry/defineSettings.d.cts +19 -8
  74. package/dist/_internal/platform/settings/registry/defineSettings.d.ts +19 -8
  75. package/dist/_internal/platform/settings/registry/stateDbStore.d.cts +23 -15
  76. package/dist/_internal/platform/settings/registry/stateDbStore.d.ts +23 -15
  77. package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -5
  78. package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -5
  79. package/dist/_internal/platform/vendorErrors/index.d.cts +7 -17
  80. package/dist/_internal/platform/vendorErrors/index.d.ts +7 -17
  81. package/dist/_internal/platform/window/displayOwner.d.cts +35 -14
  82. package/dist/_internal/platform/window/displayOwner.d.ts +35 -14
  83. package/dist/a11y/index.cjs +1 -1
  84. package/dist/a11y/index.js +1 -1
  85. package/dist/actions-DtaFGwh2.cjs +1 -0
  86. package/dist/actions-wwAHs3ZU.js +16 -0
  87. package/dist/{server/appThemeDerivation-BiCyiSuz.js → appThemeDerivation-B7-DjMIM.js} +181 -184
  88. package/dist/appThemeDerivation-NS3Vws8q.cjs +1 -0
  89. package/dist/async/createGuardedListLoader.d.cts +3 -0
  90. package/dist/async/createGuardedListLoader.d.ts +3 -0
  91. package/dist/charts/index.cjs +1 -1
  92. package/dist/charts/index.js +1 -1
  93. package/dist/createDialogShellFocus-BBFu3Z_O.js +282 -0
  94. package/dist/createDialogShellFocus-CxRqhbRN.cjs +1 -0
  95. package/dist/createResizableSidebar-CfFxQUny.js +449 -0
  96. package/dist/createResizableSidebar-q7aC7SAO.cjs +1 -0
  97. package/dist/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  98. package/dist/{server/createVirtualScroller-DBvqT0UW.js → createVirtualScroller-vu-l4rVv.js} +7 -7
  99. package/dist/defineSettings-D0CSMcyy.cjs +1 -0
  100. package/dist/defineSettings-Di1sG81q.js +407 -0
  101. package/dist/descriptor-CaHgh9N_.cjs +1 -0
  102. package/dist/{descriptor-B1MaujhY.js → descriptor-eGtcBtpI.js} +5 -5
  103. package/dist/desktop/index.cjs +1 -1
  104. package/dist/desktop/index.js +500 -426
  105. package/dist/dialogFocusRestore-BrALT8Ew.js +35 -0
  106. package/dist/dialogFocusRestore-CcEsB50v.cjs +1 -0
  107. package/dist/electronBridge-BK92fycw.js +235 -0
  108. package/dist/electronBridge-cT0xww92.cjs +1 -0
  109. package/dist/errorHandler-BvPGW-Nm.js +373 -0
  110. package/dist/errorHandler-DoDAPpv2.cjs +3 -0
  111. package/dist/feedback/Loader.d.cts +6 -1
  112. package/dist/feedback/Loader.d.ts +6 -1
  113. package/dist/feedback/createPreference.d.cts +4 -1
  114. package/dist/feedback/createPreference.d.ts +4 -1
  115. package/dist/feedback/guidedInstallOutcome.d.cts +15 -2
  116. package/dist/feedback/guidedInstallOutcome.d.ts +15 -2
  117. package/dist/feedback/index.cjs +1 -1
  118. package/dist/feedback/index.js +37 -38
  119. package/dist/feedback/readFailureText.d.cts +20 -1
  120. package/dist/feedback/readFailureText.d.ts +20 -1
  121. package/dist/focusModality-BISb6-yg.cjs +1 -0
  122. package/dist/focusModality-FoLPWF-_.js +135 -0
  123. package/dist/forms/index.cjs +1 -1
  124. package/dist/forms/index.js +9 -9
  125. package/dist/grid/index.cjs +1 -1
  126. package/dist/grid/index.js +1 -1
  127. package/dist/{headerIconOverrides-64lFnqTt.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  128. package/dist/{server/headerIconOverrides-BCzeaBA1.js → headerIconOverrides-Dh2PaOcO.js} +1 -1
  129. package/dist/host/index.cjs +1 -1
  130. package/dist/host/index.d.cts +15 -16
  131. package/dist/host/index.d.ts +15 -16
  132. package/dist/host/index.js +56 -90
  133. package/dist/host/kitHost.d.cts +65 -0
  134. package/dist/host/kitHost.d.ts +65 -0
  135. package/dist/host/window.d.cts +3 -11
  136. package/dist/host/window.d.ts +3 -11
  137. package/dist/i18n/index.cjs +1 -1
  138. package/dist/i18n/index.js +1 -1
  139. package/dist/{i18n-CYq-dVvv.js → i18n-DW9kcu0G.js} +180 -178
  140. package/dist/i18n-DZ0JlZal.cjs +4 -0
  141. package/dist/index.cjs +1 -1
  142. package/dist/index.d.cts +1 -1
  143. package/dist/index.d.ts +1 -1
  144. package/dist/index.js +973 -992
  145. package/dist/isOneOf-9EXOSYJu.cjs +1 -0
  146. package/dist/isOneOf-Dtomuazg.js +6 -0
  147. package/dist/{keys-Bfgdfak_.js → keys-B2nlkpqc.js} +6 -9
  148. package/dist/keys-GMxY2wcl.cjs +1 -0
  149. package/dist/kitHost-BfJExE1G.cjs +1 -0
  150. package/dist/kitHost-CVAEi9sF.js +23 -0
  151. package/dist/layout/createResizableSidebar.d.cts +14 -0
  152. package/dist/layout/createResizableSidebar.d.ts +14 -0
  153. package/dist/layout/index.cjs +1 -1
  154. package/dist/layout/index.js +3 -3
  155. package/dist/layout/sidebarWidthClamp.d.cts +1 -1
  156. package/dist/layout/sidebarWidthClamp.d.ts +1 -1
  157. package/dist/mainRealmDom-C12lr9lm.js +171 -0
  158. package/dist/mainRealmDom-S6teqEr4.cjs +1 -0
  159. package/dist/navigation/index.cjs +1 -1
  160. package/dist/navigation/index.js +1 -1
  161. package/dist/notifications/NotificationHost.d.cts +7 -1
  162. package/dist/notifications/NotificationHost.d.ts +7 -1
  163. package/dist/notifications/NotificationItem.d.cts +48 -15
  164. package/dist/notifications/NotificationItem.d.ts +48 -15
  165. package/dist/notifications/catalogAdapter.d.cts +28 -6
  166. package/dist/notifications/catalogAdapter.d.ts +28 -6
  167. package/dist/notifications/createNotificationPreviewRuntime.d.cts +21 -3
  168. package/dist/notifications/createNotificationPreviewRuntime.d.ts +21 -3
  169. package/dist/notifications/customSoundCache.d.cts +24 -24
  170. package/dist/notifications/customSoundCache.d.ts +24 -24
  171. package/dist/notifications/emailDigest.d.cts +34 -16
  172. package/dist/notifications/emailDigest.d.ts +34 -16
  173. package/dist/notifications/errorActionButtons.d.cts +18 -1
  174. package/dist/notifications/errorActionButtons.d.ts +18 -1
  175. package/dist/notifications/fireNotification.d.cts +27 -17
  176. package/dist/notifications/fireNotification.d.ts +27 -17
  177. package/dist/notifications/index.cjs +1 -1
  178. package/dist/notifications/index.d.cts +7 -12
  179. package/dist/notifications/index.d.ts +7 -12
  180. package/dist/notifications/index.js +64 -98
  181. package/dist/notifications/nativeEngine.d.cts +18 -15
  182. package/dist/notifications/nativeEngine.d.ts +18 -15
  183. package/dist/notifications/notificationAnalytics.d.cts +11 -6
  184. package/dist/notifications/notificationAnalytics.d.ts +11 -6
  185. package/dist/notifications/notificationAudio.d.cts +30 -23
  186. package/dist/notifications/notificationAudio.d.ts +30 -23
  187. package/dist/notifications/notificationCardServices.d.cts +23 -0
  188. package/dist/notifications/notificationCardServices.d.ts +23 -0
  189. package/dist/notifications/notificationOverlayChannel.d.cts +4 -4
  190. package/dist/notifications/notificationOverlayChannel.d.ts +4 -4
  191. package/dist/notifications/notificationOverlaySync.d.cts +7 -2
  192. package/dist/notifications/notificationOverlaySync.d.ts +7 -2
  193. package/dist/notifications/notificationService.d.cts +101 -0
  194. package/dist/notifications/notificationService.d.ts +101 -0
  195. package/dist/notifications/notificationTimeline.d.cts +47 -49
  196. package/dist/notifications/notificationTimeline.d.ts +47 -49
  197. package/dist/notifications/notifications.notifications.d.cts +0 -4
  198. package/dist/notifications/notifications.notifications.d.ts +0 -4
  199. package/dist/notifications/toast.d.cts +24 -28
  200. package/dist/notifications/toast.d.ts +24 -28
  201. package/dist/notifications/webhookDelivery.d.cts +12 -17
  202. package/dist/notifications/webhookDelivery.d.ts +12 -17
  203. package/dist/overlay/ConfirmDialog.d.cts +20 -10
  204. package/dist/overlay/ConfirmDialog.d.ts +20 -10
  205. package/dist/overlay/DangerousActionDialog.d.cts +2 -2
  206. package/dist/overlay/DangerousActionDialog.d.ts +2 -2
  207. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.cts +15 -14
  208. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.ts +15 -14
  209. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.cts +1 -3
  210. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.ts +1 -3
  211. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.cts +1 -1
  212. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.ts +1 -1
  213. package/dist/overlay/index.cjs +1 -1
  214. package/dist/overlay/index.d.cts +2 -3
  215. package/dist/overlay/index.d.ts +2 -3
  216. package/dist/overlay/index.js +114 -119
  217. package/dist/pageTourState-BcBF8w89.js +516 -0
  218. package/dist/pageTourState-CrbEU7QW.cjs +5 -0
  219. package/dist/server/{AttributeGrid-BCYNwNjw.js → AttributeGrid-B2s_rp00.js} +3 -3
  220. package/dist/server/{AttributeGrid-BVAQshm3.cjs → AttributeGrid-C7aWbIe5.cjs} +1 -1
  221. package/dist/server/{Button-BhqhjFpY.js → Button-Ck03cbUs.js} +1 -1
  222. package/dist/server/{Button-CFOM8pOv.cjs → Button-DWFMF5y0.cjs} +1 -1
  223. package/dist/server/CommandPalette-2UppyMxU.js +3271 -0
  224. package/dist/server/CommandPalette-DwpZyhO6.cjs +1 -0
  225. package/dist/server/{CopyButton-C2jzn9tR.cjs → CopyButton-BOmAUQD4.cjs} +1 -1
  226. package/dist/server/{CopyButton-CChDa2p3.js → CopyButton-UvtFwOtA.js} +1 -1
  227. package/dist/server/DateRangePicker-BJteKzOY.cjs +9 -0
  228. package/dist/server/{DateRangePicker-QV6U1adB.js → DateRangePicker-Cr58DczM.js} +158 -143
  229. package/dist/server/GuidedTour-C4msn-Ag.js +400 -0
  230. package/dist/server/GuidedTour-Rlsp8rOe.cjs +1 -0
  231. package/dist/server/HostPortal-B9Tzk_uN.cjs +1 -0
  232. package/dist/server/HostPortal-X1iw719T.js +33 -0
  233. package/dist/server/HostWindowContext-B2m0bVra.js +32 -0
  234. package/dist/server/HostWindowContext-_VZCt7xE.cjs +1 -0
  235. package/dist/server/{IconPicker-BEACrT09.cjs → IconPicker-9DfOxql6.cjs} +1 -1
  236. package/dist/server/{IconPicker-at_coEi6.js → IconPicker-N0wub1Aj.js} +4 -4
  237. package/dist/server/Modal-D__GTo-n.cjs +1 -0
  238. package/dist/server/{Modal-usxkqDtK.js → Modal-DeQjfpkG.js} +3 -3
  239. package/dist/server/{PageSkeleton-Bpgep9QW.js → PageSkeleton-C41pXOcr.js} +457 -455
  240. package/dist/server/PageSkeleton-D4i-UcnI.cjs +30 -0
  241. package/dist/server/{SearchableSelect-0dP7bp0a.js → SearchableSelect-CEcuBnge.js} +2 -2
  242. package/dist/server/{SearchableSelect-nMecJAYS.cjs → SearchableSelect-Ca9g8ztu.cjs} +1 -1
  243. package/dist/server/StatusBarNotificationBell-BotYny7q.cjs +49 -0
  244. package/dist/server/StatusBarNotificationBell-DyEQF2W7.js +13968 -0
  245. package/dist/server/{Stepper-DvoJXLcM.cjs → Stepper--pusyxso.cjs} +1 -1
  246. package/dist/server/{Stepper-B8hDDujj.js → Stepper-B_eL85hK.js} +1 -1
  247. package/dist/server/{TimeSeriesChart-C1LbL_xp.js → TimeSeriesChart-aSHquoBv.js} +1 -1
  248. package/dist/server/{TimeSeriesChart-DtldQrxS.cjs → TimeSeriesChart-nZeB5jtN.cjs} +1 -1
  249. package/dist/server/ToggleButton-57_0SA-V.cjs +1 -0
  250. package/dist/server/{ToggleButton--G4HCOTD.js → ToggleButton-DjlWwgLJ.js} +4 -4
  251. package/dist/server/VpTrash-D49oUUJh.cjs +1 -0
  252. package/dist/server/VpTrash-Dlq8o6Uv.js +298 -0
  253. package/dist/server/a11y/index.cjs +1 -1
  254. package/dist/server/a11y/index.js +1 -1
  255. package/dist/server/actions-DtaFGwh2.cjs +1 -0
  256. package/dist/server/actions-wwAHs3ZU.js +16 -0
  257. package/dist/{appThemeDerivation-BiCyiSuz.js → server/appThemeDerivation-B7-DjMIM.js} +181 -184
  258. package/dist/server/appThemeDerivation-NS3Vws8q.cjs +1 -0
  259. package/dist/server/charts/index.cjs +1 -1
  260. package/dist/server/charts/index.js +1 -1
  261. package/dist/server/{format-CW_FVfq2.js → createDialogShellFocus-DNjzmcGj.js} +110 -126
  262. package/dist/server/createDialogShellFocus-PRRfMli-.cjs +1 -0
  263. package/dist/server/createResizableSidebar-CZtGmUnA.cjs +1 -0
  264. package/dist/server/createResizableSidebar-DdWdAB9l.js +287 -0
  265. package/dist/server/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  266. package/dist/{createVirtualScroller-DBvqT0UW.js → server/createVirtualScroller-vu-l4rVv.js} +7 -7
  267. package/dist/server/defineSettings-D0CSMcyy.cjs +1 -0
  268. package/dist/server/defineSettings-Di1sG81q.js +407 -0
  269. package/dist/server/descriptor-CEGvvJZh.cjs +1 -0
  270. package/dist/server/{descriptor-DWkJAggS.js → descriptor-GLoKPx6x.js} +4 -4
  271. package/dist/server/desktop/index.cjs +1 -1
  272. package/dist/server/desktop/index.js +389 -315
  273. package/dist/server/dialogFocusRestore-BrALT8Ew.js +35 -0
  274. package/dist/server/dialogFocusRestore-CcEsB50v.cjs +1 -0
  275. package/dist/server/electronBridge-BK92fycw.js +235 -0
  276. package/dist/server/electronBridge-cT0xww92.cjs +1 -0
  277. package/dist/server/errorHandler-BvPGW-Nm.js +373 -0
  278. package/dist/server/errorHandler-DoDAPpv2.cjs +3 -0
  279. package/dist/server/feedback/index.cjs +1 -1
  280. package/dist/server/feedback/index.js +37 -38
  281. package/dist/server/focusModality-D-nxv8Er.cjs +1 -0
  282. package/dist/server/focusModality-nWNVX3JG.js +126 -0
  283. package/dist/server/forms/index.cjs +1 -1
  284. package/dist/server/forms/index.js +7 -7
  285. package/dist/server/grid/index.cjs +1 -1
  286. package/dist/server/grid/index.js +1 -1
  287. package/dist/server/{headerIconOverrides-64lFnqTt.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  288. package/dist/{headerIconOverrides-BCzeaBA1.js → server/headerIconOverrides-Dh2PaOcO.js} +1 -1
  289. package/dist/server/host/index.cjs +1 -1
  290. package/dist/server/host/index.js +56 -90
  291. package/dist/server/i18n/index.cjs +1 -1
  292. package/dist/server/i18n/index.js +1 -1
  293. package/dist/server/{i18n-CYq-dVvv.js → i18n-DW9kcu0G.js} +180 -178
  294. package/dist/server/i18n-DZ0JlZal.cjs +4 -0
  295. package/dist/server/{index-BFT4Uh9D.js → index-BNYr6EIW.js} +89 -90
  296. package/dist/server/index-Cqod09d_.cjs +1 -0
  297. package/dist/server/index.cjs +1 -1
  298. package/dist/server/index.js +1022 -1041
  299. package/dist/server/kitHost-BfJExE1G.cjs +1 -0
  300. package/dist/server/kitHost-CVAEi9sF.js +23 -0
  301. package/dist/server/layout/index.cjs +1 -1
  302. package/dist/server/layout/index.js +3 -3
  303. package/dist/server/mainRealmDom-DPNaDWtw.js +121 -0
  304. package/dist/server/mainRealmDom-DwZVMPnO.cjs +1 -0
  305. package/dist/server/navigation/index.cjs +1 -1
  306. package/dist/server/navigation/index.js +1 -1
  307. package/dist/server/notifications/index.cjs +1 -1
  308. package/dist/server/notifications/index.js +63 -97
  309. package/dist/server/overlay/index.cjs +1 -1
  310. package/dist/server/overlay/index.js +109 -114
  311. package/dist/server/pageTourState-BcBF8w89.js +516 -0
  312. package/dist/server/pageTourState-CrbEU7QW.cjs +5 -0
  313. package/dist/server/settings/index.cjs +1 -1
  314. package/dist/server/settings/index.js +23 -24
  315. package/dist/server/stateDbStore-CThsVch-.cjs +1 -0
  316. package/dist/server/stateDbStore-DHZFUIEt.js +57 -0
  317. package/dist/server/tokens/index.cjs +1 -1
  318. package/dist/server/tokens/index.js +19 -20
  319. package/dist/server/tree/index.cjs +1 -1
  320. package/dist/server/tree/index.js +1 -1
  321. package/dist/server/useListCommands-BO_XrRHj.js +38 -0
  322. package/dist/server/useListCommands-Dnm4ktP1.cjs +1 -0
  323. package/dist/server/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  324. package/dist/{notification-DFbp3S_f.js → server/useSettingsSubscription-DLEk4k4j.js} +41 -32
  325. package/dist/server/window-CUK6x8Pj.js +36 -0
  326. package/dist/server/window-_BfSgFGO.cjs +1 -0
  327. package/dist/server/windowRegistry-CxXtP-iY.cjs +1 -0
  328. package/dist/server/windowRegistry-DeGmXt6W.js +20 -0
  329. package/dist/settings/index.cjs +1 -1
  330. package/dist/settings/index.d.cts +1 -1
  331. package/dist/settings/index.d.ts +1 -1
  332. package/dist/settings/index.js +23 -24
  333. package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +3 -10
  334. package/dist/solid/_internal/app/keybindings/context/useListCommands.js +1 -2
  335. package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +8 -1
  336. package/dist/solid/_internal/app/menu/menuFavorites.js +45 -40
  337. package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +22 -22
  338. package/dist/solid/_internal/app/onboarding/pageTourState.js +94 -92
  339. package/dist/solid/_internal/app/platform/electronBridge.js +15 -49
  340. package/dist/solid/_internal/app/settings/secrets/notificationSecrets.js +11 -29
  341. package/dist/solid/_internal/app/windows/window/HostWindowContext.jsx +4 -13
  342. package/dist/solid/_internal/contract/catalogNotify.js +1 -24
  343. package/dist/solid/_internal/contract/hostErrorText.js +1 -14
  344. package/dist/solid/_internal/contract/notificationCatalog.js +1 -1
  345. package/dist/solid/_internal/platform/a11y/announcerService.js +0 -24
  346. package/dist/solid/_internal/platform/errors/diagnosticReport.js +2 -3
  347. package/dist/solid/_internal/platform/logging/consoleLogger.js +6 -0
  348. package/dist/solid/_internal/platform/settings/registry/defineSettings.js +48 -20
  349. package/dist/solid/_internal/platform/settings/registry/stateDbStore.js +29 -19
  350. package/dist/solid/_internal/platform/vendorErrors/index.js +4 -17
  351. package/dist/solid/_internal/platform/window/displayOwner.js +105 -114
  352. package/dist/solid/a11y/AriaAnnouncer.jsx +5 -6
  353. package/dist/solid/async/createGuardedListLoader.js +1 -1
  354. package/dist/solid/desktop/menu/MenuPanel.jsx +7 -7
  355. package/dist/solid/feedback/ErrorBoundary.jsx +7 -4
  356. package/dist/solid/feedback/Loader.jsx +1 -2
  357. package/dist/solid/feedback/createPreference.js +3 -2
  358. package/dist/solid/feedback/guidedInstallOutcome.js +1 -2
  359. package/dist/solid/feedback/preference.notifications.js +1 -2
  360. package/dist/solid/feedback/readFailureText.js +1 -2
  361. package/dist/solid/host/index.js +9 -16
  362. package/dist/solid/host/kitHost.jsx +15 -0
  363. package/dist/solid/host/window.js +15 -22
  364. package/dist/solid/i18n/i18n.js +5 -6
  365. package/dist/solid/index.js +0 -1
  366. package/dist/solid/layout/createResizableSidebar.js +15 -23
  367. package/dist/solid/notifications/NotificationHost.jsx +21 -29
  368. package/dist/solid/notifications/NotificationItem.jsx +28 -103
  369. package/dist/solid/notifications/NotificationPanel.jsx +33 -44
  370. package/dist/solid/notifications/NotificationsCenter.jsx +22 -20
  371. package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
  372. package/dist/solid/notifications/catalogAdapter.js +61 -62
  373. package/dist/solid/notifications/createNotificationPreviewRuntime.js +29 -19
  374. package/dist/solid/notifications/customSoundCache.js +26 -21
  375. package/dist/solid/notifications/emailDigest.js +74 -86
  376. package/dist/solid/notifications/errorActionButtons.js +6 -11
  377. package/dist/solid/notifications/fireNotification.js +14 -19
  378. package/dist/solid/notifications/index.js +4 -12
  379. package/dist/solid/notifications/nativeEngine.js +6 -19
  380. package/dist/solid/notifications/notificationAnalytics.js +32 -38
  381. package/dist/solid/notifications/notificationAudio.js +77 -74
  382. package/dist/solid/notifications/notificationCardServices.js +34 -0
  383. package/dist/solid/notifications/notificationOverlayChannel.js +3 -3
  384. package/dist/solid/notifications/notificationOverlaySync.js +18 -23
  385. package/dist/solid/notifications/notificationService.js +135 -0
  386. package/dist/solid/notifications/notificationTimeline.js +117 -124
  387. package/dist/solid/notifications/notifications.notifications.js +3 -22
  388. package/dist/solid/notifications/toast.js +168 -213
  389. package/dist/solid/notifications/webhookDelivery.js +27 -53
  390. package/dist/solid/overlay/ConfirmDialog.jsx +2 -54
  391. package/dist/solid/overlay/command-palette/CommandPalette.jsx +3 -1
  392. package/dist/solid/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.js +26 -25
  393. package/dist/solid/overlay/command-palette/unifiedSearch/settingsSearchContributor.js +2 -7
  394. package/dist/solid/overlay/index.js +0 -3
  395. package/dist/solid/settings/index.js +1 -1
  396. package/dist/solid/tokens/index.js +1 -1
  397. package/dist/solid/tokens/palette/themeRegistry.js +20 -22
  398. package/dist/stateDbStore-CThsVch-.cjs +1 -0
  399. package/dist/stateDbStore-DHZFUIEt.js +57 -0
  400. package/dist/style.css +1 -1
  401. package/dist/tokens/index.cjs +1 -1
  402. package/dist/tokens/index.d.cts +1 -1
  403. package/dist/tokens/index.d.ts +1 -1
  404. package/dist/tokens/index.js +19 -20
  405. package/dist/tokens/palette/themeRegistry.d.cts +17 -22
  406. package/dist/tokens/palette/themeRegistry.d.ts +17 -22
  407. package/dist/{tooltipCoordinator-GV0L9lXH.js → tooltipCoordinator-BzxEyKhA.js} +2 -2
  408. package/dist/tooltipCoordinator-DslqMlsI.cjs +1 -0
  409. package/dist/tree/index.cjs +1 -1
  410. package/dist/tree/index.js +1 -1
  411. package/dist/ui.css +1 -1
  412. package/dist/{useFloatingDropdown-CfPEYRut.js → useFloatingDropdown-BN4J092P.js} +1 -1
  413. package/dist/{useFloatingDropdown-DcU7ozDg.cjs → useFloatingDropdown-D9OvEFAp.cjs} +1 -1
  414. package/dist/useListCommands-BO_XrRHj.js +38 -0
  415. package/dist/useListCommands-Dnm4ktP1.cjs +1 -0
  416. package/dist/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  417. package/dist/{server/notification-DFbp3S_f.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
  418. package/dist/window-CUK6x8Pj.js +36 -0
  419. package/dist/window-_BfSgFGO.cjs +1 -0
  420. package/dist/windowRegistry-CxXtP-iY.cjs +1 -0
  421. package/dist/windowRegistry-DeGmXt6W.js +20 -0
  422. package/package.json +1 -1
  423. package/dist/CommandPalette-DToM9pUp.cjs +0 -2
  424. package/dist/CommandPalette-ZCFlLqrP.js +0 -3950
  425. package/dist/DateRangePicker-DHI3SNna.cjs +0 -9
  426. package/dist/GuidedTour-B-BXe3ul.js +0 -11214
  427. package/dist/GuidedTour-c7XiyOmE.cjs +0 -21
  428. package/dist/HostWindowContext-DqDeJmBP.cjs +0 -1
  429. package/dist/HostWindowContext-KL4U1qUv.js +0 -40
  430. package/dist/Modal-DpDHzCWT.cjs +0 -1
  431. package/dist/PageSkeleton-DzKYTuNy.cjs +0 -30
  432. package/dist/Progress-B5YmNeyU.js +0 -56
  433. package/dist/Progress-BNy0wsJl.cjs +0 -1
  434. package/dist/StatusBarNotificationBell-CZmym2gV.js +0 -2140
  435. package/dist/StatusBarNotificationBell-DG8Pe6R-.cjs +0 -4
  436. package/dist/ToggleButton-Bjxv8KGH.cjs +0 -1
  437. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.cts +0 -20
  438. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.ts +0 -20
  439. package/dist/_internal/app/settings/theme/appThemeChange.d.cts +0 -20
  440. package/dist/_internal/app/settings/theme/appThemeChange.d.ts +0 -20
  441. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.cts +0 -6
  442. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.ts +0 -6
  443. package/dist/_internal/base/listenerDispatch.d.cts +0 -14
  444. package/dist/_internal/base/listenerDispatch.d.ts +0 -14
  445. package/dist/_internal/contract/appName.d.cts +0 -10
  446. package/dist/_internal/contract/appName.d.ts +0 -10
  447. package/dist/_internal/contract/hostText.d.cts +0 -25
  448. package/dist/_internal/contract/hostText.d.ts +0 -25
  449. package/dist/_internal/platform/instantiation/common/descriptors.d.cts +0 -9
  450. package/dist/_internal/platform/instantiation/common/descriptors.d.ts +0 -9
  451. package/dist/_internal/platform/instantiation/common/instantiation.d.cts +0 -99
  452. package/dist/_internal/platform/instantiation/common/instantiation.d.ts +0 -99
  453. package/dist/_internal/platform/instantiation/common/serviceCollection.d.cts +0 -8
  454. package/dist/_internal/platform/instantiation/common/serviceCollection.d.ts +0 -8
  455. package/dist/_internal/platform/logging/rendererLogging.d.cts +0 -65
  456. package/dist/_internal/platform/logging/rendererLogging.d.ts +0 -65
  457. package/dist/_internal/platform/settings/preferencesCache.d.cts +0 -162
  458. package/dist/_internal/platform/settings/preferencesCache.d.ts +0 -162
  459. package/dist/announcerService-B7yicxvU.js +0 -97
  460. package/dist/announcerService-D_pFE24a.cjs +0 -1
  461. package/dist/appThemeDerivation-DmKbTiFi.cjs +0 -1
  462. package/dist/catalogNotify-C9RzbC6x.cjs +0 -27
  463. package/dist/catalogNotify-CIhFuJ1b.js +0 -1210
  464. package/dist/createResizableSidebar-2TgiFZp1.js +0 -461
  465. package/dist/createResizableSidebar-pDoO-7q9.cjs +0 -1
  466. package/dist/defineSettings-By5ell8e.js +0 -391
  467. package/dist/defineSettings-DRv1FRbv.cjs +0 -1
  468. package/dist/descriptor-lw1fA9mi.cjs +0 -1
  469. package/dist/dialogFocusRestore-B4ggeVAM.js +0 -64
  470. package/dist/dialogFocusRestore-BcMPrbig.cjs +0 -1
  471. package/dist/displayOwner-BNw2Foa_.cjs +0 -1
  472. package/dist/displayOwner-B_ezJv-O.js +0 -75
  473. package/dist/feedback/preference.notifications.samples.d.cts +0 -1
  474. package/dist/feedback/preference.notifications.samples.d.ts +0 -1
  475. package/dist/focusModality-B150daiS.js +0 -133
  476. package/dist/focusModality-PPfeW05D.cjs +0 -1
  477. package/dist/format-Dih0q9gm.cjs +0 -1
  478. package/dist/format-UGlMj0HW.js +0 -298
  479. package/dist/i18n-B9ccWgcR.cjs +0 -4
  480. package/dist/keys-BeeC5_RZ.cjs +0 -1
  481. package/dist/mainRealmDom-COGBiX78.js +0 -102
  482. package/dist/mainRealmDom-DijAgSXt.cjs +0 -1
  483. package/dist/menuFavorites-Db1DpHX6.js +0 -69
  484. package/dist/menuFavorites-EluLLTfi.cjs +0 -1
  485. package/dist/notification-CrxHMXsk.cjs +0 -1
  486. package/dist/notificationSuppressions-CBIJ4bC4.js +0 -430
  487. package/dist/notificationSuppressions-DFbFpayS.cjs +0 -1
  488. package/dist/notifications/copyToClipboard.d.cts +0 -6
  489. package/dist/notifications/copyToClipboard.d.ts +0 -6
  490. package/dist/notifications/createCopyFlash.d.cts +0 -17
  491. package/dist/notifications/createCopyFlash.d.ts +0 -17
  492. package/dist/notifications/notificationDisplayOwner.d.cts +0 -27
  493. package/dist/notifications/notificationDisplayOwner.d.ts +0 -27
  494. package/dist/notifications/notificationRepeaterEntryFactory.d.cts +0 -36
  495. package/dist/notifications/notificationRepeaterEntryFactory.d.ts +0 -36
  496. package/dist/notifications/notifications.notifications.samples.d.cts +0 -1
  497. package/dist/notifications/notifications.notifications.samples.d.ts +0 -1
  498. package/dist/notifications/persistWithRollbackOnFailure.d.cts +0 -18
  499. package/dist/notifications/persistWithRollbackOnFailure.d.ts +0 -18
  500. package/dist/notifications/startNotificationSchedulers.d.cts +0 -2
  501. package/dist/notifications/startNotificationSchedulers.d.ts +0 -2
  502. package/dist/notifications/startNotificationSettingsReactions.d.cts +0 -46
  503. package/dist/notifications/startNotificationSettingsReactions.d.ts +0 -46
  504. package/dist/overlay/ToastHost.d.cts +0 -7
  505. package/dist/overlay/ToastHost.d.ts +0 -7
  506. package/dist/pageTourState-CIr8ockR.js +0 -92
  507. package/dist/pageTourState-D8Uapyft.cjs +0 -1
  508. package/dist/preferencesCache-BhUd3K9p.js +0 -65
  509. package/dist/preferencesCache-DJPCTPYx.cjs +0 -1
  510. package/dist/rendererLogging-B4XML4_G.cjs +0 -7
  511. package/dist/rendererLogging-Edo4ALXU.js +0 -822
  512. package/dist/server/CommandPalette-C3Bw1teR.cjs +0 -1
  513. package/dist/server/CommandPalette-S7tfmFMb.js +0 -3208
  514. package/dist/server/DateRangePicker-sX2m4194.cjs +0 -9
  515. package/dist/server/GuidedTour-BhJGkoPa.js +0 -10981
  516. package/dist/server/GuidedTour-Dx0endYh.cjs +0 -20
  517. package/dist/server/HostWindowContext-DqDeJmBP.cjs +0 -1
  518. package/dist/server/HostWindowContext-KL4U1qUv.js +0 -40
  519. package/dist/server/Modal-CAVr4DU6.cjs +0 -1
  520. package/dist/server/PageSkeleton-KwYRrZua.cjs +0 -30
  521. package/dist/server/Progress-CRbj6nEy.cjs +0 -1
  522. package/dist/server/Progress-nsDy6clG.js +0 -41
  523. package/dist/server/StatusBarNotificationBell-BJyGqDCX.cjs +0 -4
  524. package/dist/server/StatusBarNotificationBell-C9MCuKT6.js +0 -1974
  525. package/dist/server/ToggleButton-DTI2HB97.cjs +0 -1
  526. package/dist/server/VpTerminal-Bpw-d9wD.js +0 -186
  527. package/dist/server/VpTerminal-C-U_dN_x.cjs +0 -1
  528. package/dist/server/VpTrash-CagiU2Uj.cjs +0 -1
  529. package/dist/server/VpTrash-DVBfts9_.js +0 -116
  530. package/dist/server/announcerService-B7yicxvU.js +0 -97
  531. package/dist/server/announcerService-D_pFE24a.cjs +0 -1
  532. package/dist/server/appThemeDerivation-DmKbTiFi.cjs +0 -1
  533. package/dist/server/catalogNotify-BPPTINme.cjs +0 -27
  534. package/dist/server/catalogNotify-mUcKuUmZ.js +0 -1248
  535. package/dist/server/createResizableSidebar-CCrAgu_K.js +0 -299
  536. package/dist/server/createResizableSidebar-DGd-3PrM.cjs +0 -1
  537. package/dist/server/defineSettings-By5ell8e.js +0 -391
  538. package/dist/server/defineSettings-DRv1FRbv.cjs +0 -1
  539. package/dist/server/descriptor-IJq9wdXK.cjs +0 -1
  540. package/dist/server/dialogFocusRestore-B4ggeVAM.js +0 -64
  541. package/dist/server/dialogFocusRestore-BcMPrbig.cjs +0 -1
  542. package/dist/server/displayOwner-BNw2Foa_.cjs +0 -1
  543. package/dist/server/displayOwner-B_ezJv-O.js +0 -75
  544. package/dist/server/focusModality-CeTPyRiF.cjs +0 -1
  545. package/dist/server/focusModality-DmOZptla.js +0 -124
  546. package/dist/server/format-x-8syaS2.cjs +0 -1
  547. package/dist/server/i18n-B9ccWgcR.cjs +0 -4
  548. package/dist/server/index-Xlas73iC.cjs +0 -1
  549. package/dist/server/mainRealmDom-BCL1p_q6.cjs +0 -1
  550. package/dist/server/mainRealmDom-Dk0xb5Gj.js +0 -67
  551. package/dist/server/menuFavorites-Db1DpHX6.js +0 -69
  552. package/dist/server/menuFavorites-EluLLTfi.cjs +0 -1
  553. package/dist/server/notification-CrxHMXsk.cjs +0 -1
  554. package/dist/server/notificationSuppressions-D7FZmJy8.cjs +0 -1
  555. package/dist/server/notificationSuppressions-DkrUMXHx.js +0 -391
  556. package/dist/server/pageTourState-CIr8ockR.js +0 -92
  557. package/dist/server/pageTourState-D8Uapyft.cjs +0 -1
  558. package/dist/server/preferencesCache-BhUd3K9p.js +0 -65
  559. package/dist/server/preferencesCache-DJPCTPYx.cjs +0 -1
  560. package/dist/server/rendererLogging-B4XML4_G.cjs +0 -7
  561. package/dist/server/rendererLogging-Edo4ALXU.js +0 -822
  562. package/dist/server/settingsSearchContributor-DZj7Wc8l.cjs +0 -1
  563. package/dist/server/settingsSearchContributor-DeMn-njw.js +0 -199
  564. package/dist/server/stateDbStore-Ds3zJ4cd.js +0 -47
  565. package/dist/server/stateDbStore-THFfFGa0.cjs +0 -1
  566. package/dist/server/useListCommands-Bf7aOTXZ.js +0 -61
  567. package/dist/server/useListCommands-ucngC3t4.cjs +0 -1
  568. package/dist/server/useSettingsSubscription-cu943hND.js +0 -11
  569. package/dist/server/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  570. package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  571. package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  572. package/dist/server/windowRegistry-Bk5lXIVd.js +0 -62
  573. package/dist/server/windowRegistry-CGvOBUsw.cjs +0 -1
  574. package/dist/settingsSearchContributor-C-UJc7Xc.js +0 -199
  575. package/dist/settingsSearchContributor-Du0SDpJt.cjs +0 -1
  576. package/dist/solid/_internal/app/contexts/WorkspaceTabsContext.js +0 -10
  577. package/dist/solid/_internal/app/settings/theme/appThemeChange.js +0 -5
  578. package/dist/solid/_internal/app/settings/ui/shell/openSettingsModal.js +0 -15
  579. package/dist/solid/_internal/base/listenerDispatch.js +0 -12
  580. package/dist/solid/_internal/contract/appName.js +0 -7
  581. package/dist/solid/_internal/contract/hostText.js +0 -15
  582. package/dist/solid/_internal/platform/instantiation/common/descriptors.js +0 -10
  583. package/dist/solid/_internal/platform/instantiation/common/instantiation.js +0 -35
  584. package/dist/solid/_internal/platform/instantiation/common/serviceCollection.js +0 -14
  585. package/dist/solid/_internal/platform/logging/rendererLogging.js +0 -42
  586. package/dist/solid/_internal/platform/settings/preferencesCache.js +0 -329
  587. package/dist/solid/feedback/preference.notifications.samples.js +0 -5
  588. package/dist/solid/notifications/copyToClipboard.js +0 -21
  589. package/dist/solid/notifications/createCopyFlash.js +0 -26
  590. package/dist/solid/notifications/notificationDisplayOwner.js +0 -1
  591. package/dist/solid/notifications/notificationRepeaterEntryFactory.js +0 -20
  592. package/dist/solid/notifications/notifications.notifications.samples.js +0 -14
  593. package/dist/solid/notifications/persistWithRollbackOnFailure.js +0 -11
  594. package/dist/solid/notifications/startNotificationSchedulers.js +0 -8
  595. package/dist/solid/notifications/startNotificationSettingsReactions.js +0 -22
  596. package/dist/solid/overlay/ToastHost.jsx +0 -1
  597. package/dist/stateDbStore-Ds3zJ4cd.js +0 -47
  598. package/dist/stateDbStore-THFfFGa0.cjs +0 -1
  599. package/dist/tooltipCoordinator-y5YP3tsJ.cjs +0 -1
  600. package/dist/useListCommands-Bf7aOTXZ.js +0 -61
  601. package/dist/useListCommands-ucngC3t4.cjs +0 -1
  602. package/dist/useSettingsSubscription-cu943hND.js +0 -11
  603. package/dist/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  604. package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  605. package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  606. package/dist/windowRegistry-Bk5lXIVd.js +0 -62
  607. package/dist/windowRegistry-CGvOBUsw.cjs +0 -1
@@ -1,411 +1,416 @@
1
- import { createComponent as f, use as oe, insert as _, effect as $, className as p, memo as F, setStyleProperty as te, template as x, delegateEvents as de, setAttribute as ve, mergeProps as we } from "solid-js/web";
2
- import { createSignal as H, createMemo as U, onMount as ie, onCleanup as ae, Show as L, For as fe } from "solid-js";
3
- import { I as be, P as N } from "../Input-PZ5wRvPx.js";
4
- import { a as ke } from "../HostWindowContext-KL4U1qUv.js";
5
- import { H as Tt, u as Dt } from "../HostWindowContext-KL4U1qUv.js";
6
- import { t as I } from "../i18n-CYq-dVvv.js";
7
- import { i as _e, b as Ce, a as $e, c as pe } from "../menuFavorites-Db1DpHX6.js";
8
- import { r as Ft } from "../menuFavorites-Db1DpHX6.js";
9
- import { c as Ot, r as Ht, a as Kt } from "../displayOwner-B_ezJv-O.js";
10
- import { H as Me, r as me } from "../dialogFocusRestore-B4ggeVAM.js";
11
- import { VpChevronRight as xe, VpCheck as Ae } from "@vokril/icons";
12
- import { O as Ee } from "../OverlayScrollArea-c8Za77qs.js";
13
- import { i as B, n as ye } from "../keys-Bfgdfak_.js";
14
- import { f as Se } from "../windowRegistry-Bk5lXIVd.js";
15
- const Ie = 500;
16
- function Le(n) {
1
+ var ge = Object.defineProperty;
2
+ var be = (n, r, l) => r in n ? ge(n, r, { enumerable: !0, configurable: !0, writable: !0, value: l }) : n[r] = l;
3
+ var W = (n, r, l) => be(n, typeof r != "symbol" ? r + "" : r, l);
4
+ import { createComponent as m, use as ie, insert as p, effect as C, className as I, memo as O, setStyleProperty as ne, template as $, delegateEvents as fe, setAttribute as ke, mergeProps as _e } from "solid-js/web";
5
+ import { createSignal as R, createMemo as V, onMount as se, onCleanup as le, Show as P, For as he } from "solid-js";
6
+ import { I as pe, P as U } from "../Input-DkPhsdfk.js";
7
+ import { a as Ce } from "../HostWindowContext-B2m0bVra.js";
8
+ import { H as Nt, u as Ht } from "../HostWindowContext-B2m0bVra.js";
9
+ import { t as T } from "../i18n-DW9kcu0G.js";
10
+ import { i as Ie } from "../actions-wwAHs3ZU.js";
11
+ import { r as Vt } from "../actions-wwAHs3ZU.js";
12
+ import { a as $e } from "../window-CUK6x8Pj.js";
13
+ import { H as Me } from "../HostPortal-X1iw719T.js";
14
+ import { VpChevronRight as xe, VpCheck as Ee } from "@vokril/icons";
15
+ import { O as Se } from "../OverlayScrollArea-c8Za77qs.js";
16
+ import { u as ye } from "../kitHost-CVAEi9sF.js";
17
+ import { i as F, n as Ae } from "../keys-B2nlkpqc.js";
18
+ import { r as me } from "../dialogFocusRestore-BrALT8Ew.js";
19
+ import { g as Le } from "../windowRegistry-DeGmXt6W.js";
20
+ const We = 500;
21
+ function Te(n) {
17
22
  return n.ctrlKey || n.metaKey || n.altKey || n.key.length !== 1 ? !1 : n.key !== " ";
18
23
  }
19
- function Pe(n, a, d, b, c = Ie) {
20
- return b - a > c ? d.toLowerCase() : n + d.toLowerCase();
24
+ function Pe(n, r, l, f, u = We) {
25
+ return f - r > u ? l.toLowerCase() : n + l.toLowerCase();
21
26
  }
22
- function Te(n, a, d) {
23
- if (a.length === 0 || n.length === 0) return -1;
24
- const b = [...a].every((k) => k === a[0]), c = b ? a[0] ?? "" : a, m = b ? d : d - 1, v = n.length;
25
- for (let k = 1; k <= v; k += 1) {
26
- const C = ((m + k) % v + v) % v, M = n[C];
27
- if (M != null && M.trim().toLowerCase().startsWith(c))
28
- return C;
27
+ function De(n, r, l) {
28
+ if (r.length === 0 || n.length === 0) return -1;
29
+ const f = [...r].every((k) => k === r[0]), u = f ? r[0] ?? "" : r, d = f ? l : l - 1, g = n.length;
30
+ for (let k = 1; k <= g; k += 1) {
31
+ const _ = ((d + k) % g + g) % g, M = n[_];
32
+ if (M != null && M.trim().toLowerCase().startsWith(u))
33
+ return _;
29
34
  }
30
35
  return -1;
31
36
  }
32
- const De = "vk_bar_-iKpX", Be = "vk_trigger_tlFs1", Fe = "vk_triggerActive_vSu0q", ze = "vk_mnemonic_-vCZs", Oe = "vk_panel_Pxyi6 vk_surface_3ZOnl", He = "vk_panelViewport_IbURv vk_viewport_B94pk", Ke = "vk_panelSearchRow_qCROg", Re = "vk_panelSearchInput_1G-KK", Ve = "vk_itemIcon_oQ56l vk_itemIcon_bv6oS", We = "vk_favoriteBackdrop_yMPes", Ue = "vk_favoritePopover_M-iaT", Ne = "vk_row_N-Bqh vk_item_neWq-", qe = "vk_rowDisabled_otjbn vk_itemDisabled_OROlk", Ge = "vk_rowSubmenu_2uyLs", Xe = "vk_checkmark_fL5-O vk_check_dO3aK", Qe = "vk_label_trn8V vk_label_zTITb", Ye = "vk_shortcut_DjpeI vk_shortcut_S1oQc", je = "vk_submenuArrow_b5WSa vk_chevron_pb9D1", Je = "vk_separator_dpxJB vk_separator_zMw59", g = {
33
- bar: De,
34
- trigger: Be,
35
- triggerActive: Fe,
36
- mnemonic: ze,
37
- panel: Oe,
38
- panelViewport: He,
39
- panelSearchRow: Ke,
40
- panelSearchInput: Re,
37
+ const Re = "vk_bar_-iKpX", Fe = "vk_trigger_tlFs1", Oe = "vk_triggerActive_vSu0q", Be = "vk_mnemonic_-vCZs", ze = "vk_panel_Pxyi6 vk_surface_3ZOnl", Ne = "vk_panelViewport_IbURv vk_viewport_B94pk", He = "vk_panelSearchRow_qCROg", Ke = "vk_panelSearchInput_1G-KK", Ve = "vk_itemIcon_oQ56l vk_itemIcon_bv6oS", Ue = "vk_favoriteBackdrop_yMPes", qe = "vk_favoritePopover_M-iaT", Ge = "vk_row_N-Bqh vk_item_neWq-", Xe = "vk_rowDisabled_otjbn vk_itemDisabled_OROlk", Qe = "vk_rowSubmenu_2uyLs", Ye = "vk_checkmark_fL5-O vk_check_dO3aK", je = "vk_label_trn8V vk_label_zTITb", Je = "vk_shortcut_DjpeI vk_shortcut_S1oQc", Ze = "vk_submenuArrow_b5WSa vk_chevron_pb9D1", et = "vk_separator_dpxJB vk_separator_zMw59", w = {
38
+ bar: Re,
39
+ trigger: Fe,
40
+ triggerActive: Oe,
41
+ mnemonic: Be,
42
+ panel: ze,
43
+ panelViewport: Ne,
44
+ panelSearchRow: He,
45
+ panelSearchInput: Ke,
41
46
  itemIcon: Ve,
42
- favoriteBackdrop: We,
43
- favoritePopover: Ue,
44
- row: Ne,
45
- rowDisabled: qe,
46
- rowSubmenu: Ge,
47
- checkmark: Xe,
48
- label: Qe,
49
- shortcut: Ye,
50
- submenuArrow: je,
51
- separator: Je
47
+ favoriteBackdrop: Ue,
48
+ favoritePopover: qe,
49
+ row: Ge,
50
+ rowDisabled: Xe,
51
+ rowSubmenu: Qe,
52
+ checkmark: Ye,
53
+ label: je,
54
+ shortcut: Je,
55
+ submenuArrow: Ze,
56
+ separator: et
52
57
  };
53
- var Ze = /* @__PURE__ */ x("<div role=presentation>"), ce = /* @__PURE__ */ x("<div role=menu>"), ue = /* @__PURE__ */ x("<div tabindex=-1 role=presentation>"), et = /* @__PURE__ */ x("<div role=separator>"), ne = /* @__PURE__ */ x("<span>"), re = /* @__PURE__ */ x("<span aria-hidden=true>");
54
- const tt = 8, nt = 80, rt = 160;
55
- function he(n) {
56
- const [a, d] = H(null), [b, c] = H(null), [m, v] = H(-1), [k, C] = H(""), [M, h] = H(null);
57
- let K, A;
58
- const P = [];
59
- let q = null, R = null;
60
- const X = U(() => ot(n.items)), Z = U(() => X().some((r) => r.kind === "item" && r.checked !== void 0)), Q = U(() => {
61
- const r = n.searchScope;
62
- return r === "local" || r === "global";
63
- }), z = U(() => {
64
- const r = X(), i = k().trim().toLowerCase();
65
- return i ? n.searchScope === "global" && n.globalEntries ? n.globalEntries().filter((u) => u.label.toLowerCase().includes(i)) : n.searchScope === "local" ? r.filter((e) => e.kind === "separator" ? !1 : e.label.toLowerCase().includes(i)) : r : r;
66
- }), T = (r, i) => {
67
- const e = z();
58
+ var tt = /* @__PURE__ */ $("<div role=presentation>"), ue = /* @__PURE__ */ $("<div role=menu>"), de = /* @__PURE__ */ $("<div tabindex=-1 role=presentation>"), nt = /* @__PURE__ */ $("<div role=separator>"), re = /* @__PURE__ */ $("<span>"), oe = /* @__PURE__ */ $("<span aria-hidden=true>");
59
+ const rt = 8, ot = 80, it = 160;
60
+ function ve(n) {
61
+ const {
62
+ menuFavorites: r
63
+ } = ye(), [l, f] = R(null), [u, d] = R(null), [g, k] = R(-1), [_, M] = R(""), [v, X] = R(null);
64
+ let S, y;
65
+ const q = [];
66
+ let G = null, B = null;
67
+ const Q = V(() => st(n.items)), ee = V(() => Q().some((i) => i.kind === "item" && i.checked !== void 0)), Y = V(() => {
68
+ const i = n.searchScope;
69
+ return i === "local" || i === "global";
70
+ }), D = V(() => {
71
+ const i = Q(), s = _().trim().toLowerCase();
72
+ return s ? n.searchScope === "global" && n.globalEntries ? n.globalEntries().filter((h) => h.label.toLowerCase().includes(s)) : n.searchScope === "local" ? i.filter((e) => e.kind === "separator" ? !1 : e.label.toLowerCase().includes(s)) : i : i;
73
+ }), z = (i, s) => {
74
+ const e = D();
68
75
  if (e.length === 0) return -1;
69
- const u = e.length;
70
- let s = r;
71
- for (let W = 0; W < u; W++) {
72
- s = (s + i + u) % u;
73
- const j = e[s];
74
- if (j && j.kind !== "separator") return s;
76
+ const h = e.length;
77
+ let a = i;
78
+ for (let K = 0; K < h; K++) {
79
+ a = (a + s + h) % h;
80
+ const J = e[a];
81
+ if (J && J.kind !== "separator") return a;
75
82
  }
76
83
  return -1;
77
- }, O = (r) => {
78
- v(r);
79
- const i = P[r];
80
- i && i.focus({
84
+ }, N = (i) => {
85
+ k(i);
86
+ const s = q[i];
87
+ s && s.focus({
81
88
  preventScroll: !1
82
89
  });
83
- }, G = () => {
84
- q && (clearTimeout(q), q = null);
85
90
  }, t = () => {
86
- R && (clearTimeout(R), R = null);
91
+ G && (clearTimeout(G), G = null);
87
92
  }, o = () => {
88
- G(), t(), d(null), c(null);
89
- }, l = () => {
90
- t(), R = setTimeout(() => {
91
- R = null, d(null), c(null);
92
- }, rt);
93
- }, w = (r, i) => {
94
- G(), t(), a() !== r.id && (q = setTimeout(() => {
95
- const e = i.getBoundingClientRect();
96
- d(r.id), c({
93
+ B && (clearTimeout(B), B = null);
94
+ }, c = () => {
95
+ t(), o(), f(null), d(null);
96
+ }, b = () => {
97
+ o(), B = setTimeout(() => {
98
+ B = null, f(null), d(null);
99
+ }, it);
100
+ }, x = (i, s) => {
101
+ t(), o(), l() !== i.id && (G = setTimeout(() => {
102
+ const e = s.getBoundingClientRect();
103
+ f(i.id), d({
97
104
  left: Math.round(e.right - 4),
98
105
  top: Math.round(e.top - 4)
99
106
  });
100
- }, nt));
101
- }, y = (r) => {
102
- var i;
103
- r.enabled && (n.onClose(), (i = n.onItemActivate) == null || i.call(n), r.onSelect());
104
- }, D = (r) => pe(r), S = (r, i) => {
105
- if (!D(i.id)) return;
106
- r.preventDefault(), r.stopPropagation();
107
- const e = i.id;
108
- h({
109
- left: r.clientX,
110
- top: r.clientY,
107
+ }, ot));
108
+ }, A = (i) => {
109
+ var s;
110
+ i.enabled && (n.onClose(), (s = n.onItemActivate) == null || s.call(n), i.onSelect());
111
+ }, L = (i, s) => {
112
+ const e = s.id;
113
+ Ie(e) && (i.preventDefault(), i.stopPropagation(), X({
114
+ left: i.clientX,
115
+ top: i.clientY,
111
116
  actionId: e,
112
- isPinned: _e(e)
113
- });
117
+ isPinned: r.has(e)
118
+ }));
114
119
  }, E = () => {
115
- const r = M();
116
- r && (r.isPinned ? Ce(r.actionId) : $e(r.actionId), h(null));
117
- }, V = () => {
118
- h(null);
120
+ const i = v();
121
+ i && (i.isPinned ? r.remove(i.actionId) : r.add(i.actionId), X(null));
122
+ }, H = () => {
123
+ X(null);
119
124
  };
120
- let Y = "", ee = 0;
121
- const ge = (r) => {
122
- const i = z();
123
- if (i.length !== 0)
124
- switch (ye(r)) {
125
+ let j = "", te = 0;
126
+ const we = (i) => {
127
+ const s = D();
128
+ if (s.length !== 0)
129
+ switch (Ae(i)) {
125
130
  case "ArrowDown": {
126
- r.preventDefault();
127
- const e = T(m(), 1);
128
- e >= 0 && O(e);
131
+ i.preventDefault();
132
+ const e = z(g(), 1);
133
+ e >= 0 && N(e);
129
134
  break;
130
135
  }
131
136
  case "ArrowUp": {
132
- r.preventDefault();
133
- const e = T(m() < 0 ? 0 : m(), -1);
134
- e >= 0 && O(e);
137
+ i.preventDefault();
138
+ const e = z(g() < 0 ? 0 : g(), -1);
139
+ e >= 0 && N(e);
135
140
  break;
136
141
  }
137
142
  case "Home": {
138
- r.preventDefault();
139
- const e = T(-1, 1);
140
- e >= 0 && O(e);
143
+ i.preventDefault();
144
+ const e = z(-1, 1);
145
+ e >= 0 && N(e);
141
146
  break;
142
147
  }
143
148
  case "End": {
144
- r.preventDefault();
145
- const e = T(0, -1);
146
- e >= 0 && O(e);
149
+ i.preventDefault();
150
+ const e = z(0, -1);
151
+ e >= 0 && N(e);
147
152
  break;
148
153
  }
149
154
  case "Enter": {
150
- if (k().trim() && m() < 0) {
151
- const e = T(-1, 1);
155
+ if (_().trim() && g() < 0) {
156
+ const e = z(-1, 1);
152
157
  if (e >= 0) {
153
- r.preventDefault();
154
- const u = z()[e];
155
- u && u.kind === "item" && y(u);
158
+ i.preventDefault();
159
+ const h = D()[e];
160
+ h && h.kind === "item" && A(h);
156
161
  }
157
162
  }
158
163
  break;
159
164
  }
160
165
  case "Escape": {
161
- r.preventDefault(), r.stopPropagation(), k().trim() ? (C(""), A == null || A.focus()) : n.onClose();
166
+ i.preventDefault(), i.stopPropagation(), _().trim() ? (M(""), y == null || y.focus()) : n.onClose();
162
167
  break;
163
168
  }
164
169
  case "ArrowRight": {
165
- const e = m();
170
+ const e = g();
166
171
  if (e < 0) break;
167
- const u = i[e], s = P[e];
168
- u && u.kind === "submenu" && s && (r.preventDefault(), w(u, s));
172
+ const h = s[e], a = q[e];
173
+ h && h.kind === "submenu" && a && (i.preventDefault(), x(h, a));
169
174
  break;
170
175
  }
171
176
  case "ArrowLeft": {
172
- r.preventDefault(), n.onClose();
177
+ i.preventDefault(), n.onClose();
173
178
  break;
174
179
  }
175
180
  default: {
176
- const e = r.target;
177
- if (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || !Le(r)) break;
178
- const u = Date.now(), s = Pe(Y, ee, r.key, u);
179
- Y = s, ee = u;
180
- const W = i.map((se) => se.kind === "separator" ? null : se.label), j = Te(W, s, m());
181
- j >= 0 && (r.preventDefault(), O(j));
181
+ const e = i.target;
182
+ if (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || !Te(i)) break;
183
+ const h = Date.now(), a = Pe(j, te, i.key, h);
184
+ j = a, te = h;
185
+ const K = s.map((ce) => ce.kind === "separator" ? null : ce.label), J = De(K, a, g());
186
+ J >= 0 && (i.preventDefault(), N(J));
182
187
  break;
183
188
  }
184
189
  }
185
190
  };
186
- ie(() => {
187
- Q() && A ? A.focus() : K == null || K.focus();
188
- }), ae(() => {
189
- G(), t();
191
+ se(() => {
192
+ Y() && y ? y.focus() : S == null || S.focus();
193
+ }), le(() => {
194
+ t(), o();
190
195
  });
191
- const le = U(() => {
192
- const r = a();
193
- if (!r) return null;
194
- for (const i of z())
195
- if (i.kind === "submenu" && i.id === r) return i;
196
+ const ae = V(() => {
197
+ const i = l();
198
+ if (!i) return null;
199
+ for (const s of D())
200
+ if (s.kind === "submenu" && s.id === i) return s;
196
201
  return null;
197
202
  });
198
- return f(Me, {
203
+ return m(Me, {
199
204
  type: "menu",
200
- element: () => K,
205
+ element: () => S,
201
206
  idPrefix: "menu-panel",
202
207
  get children() {
203
208
  return [(() => {
204
- var r = ue();
205
- return r.addEventListener("mouseleave", () => {
206
- var i;
207
- l(), (i = n.onPanelMouseLeave) == null || i.call(n);
208
- }), r.addEventListener("mouseenter", () => {
209
- var i;
210
- t(), (i = n.onPanelMouseEnter) == null || i.call(n);
211
- }), r.$$keydown = ge, oe((i) => K = i, r), _(r, f(L, {
209
+ var i = de();
210
+ return i.addEventListener("mouseleave", () => {
211
+ var s;
212
+ b(), (s = n.onPanelMouseLeave) == null || s.call(n);
213
+ }), i.addEventListener("mouseenter", () => {
214
+ var s;
215
+ o(), (s = n.onPanelMouseEnter) == null || s.call(n);
216
+ }), i.$$keydown = we, ie((s) => S = s, i), p(i, m(P, {
212
217
  get when() {
213
- return Q();
218
+ return Y();
214
219
  },
215
220
  get children() {
216
- var i = Ze();
217
- return _(i, f(be, {
218
- ref: (e) => A = e,
221
+ var s = tt();
222
+ return p(s, m(pe, {
223
+ ref: (e) => y = e,
219
224
  get class() {
220
- return g.panelSearchInput;
225
+ return w.panelSearchInput;
221
226
  },
222
227
  type: "search",
223
228
  placeholder: "Filter menu...",
224
229
  get value() {
225
- return k();
230
+ return _();
226
231
  },
227
- onInput: (e) => C(e.currentTarget.value),
232
+ onInput: (e) => M(e.currentTarget.value),
228
233
  onKeyDown: (e) => {
229
- B(e, "ArrowDown") || B(e, "ArrowUp") || B(e, "Enter") || B(e, "Escape") || e.stopPropagation();
234
+ F(e, "ArrowDown") || F(e, "ArrowUp") || F(e, "Enter") || F(e, "Escape") || e.stopPropagation();
230
235
  }
231
- })), $(() => p(i, g.panelSearchRow)), i;
236
+ })), C(() => I(s, w.panelSearchRow)), s;
232
237
  }
233
- }), null), _(r, f(Ee, {
238
+ }), null), p(i, m(Se, {
234
239
  get viewportClass() {
235
- return g.panelViewport;
240
+ return w.panelViewport;
236
241
  },
237
242
  get children() {
238
- var i = ce();
239
- return _(i, f(fe, {
243
+ var s = ue();
244
+ return p(s, m(he, {
240
245
  get each() {
241
- return z();
246
+ return D();
242
247
  },
243
- children: (e, u) => e.kind === "separator" ? (() => {
244
- var s = et();
245
- return $(() => p(s, g.separator)), s;
246
- })() : e.kind === "submenu" ? f(N, {
248
+ children: (e, h) => e.kind === "separator" ? (() => {
249
+ var a = nt();
250
+ return C(() => I(a, w.separator)), a;
251
+ })() : e.kind === "submenu" ? m(U, {
247
252
  type: "button",
248
- ref: (s) => {
249
- P[u()] = s ?? null;
253
+ ref: (a) => {
254
+ q[h()] = a ?? null;
250
255
  },
251
256
  get class() {
252
- return `${g.row} ${g.rowSubmenu}`;
257
+ return `${w.row} ${w.rowSubmenu}`;
253
258
  },
254
259
  role: "menuitem",
255
260
  "aria-haspopup": "menu",
256
261
  get "aria-expanded"() {
257
- return a() === e.id ? "true" : "false";
262
+ return l() === e.id ? "true" : "false";
258
263
  },
259
264
  tabIndex: -1,
260
- onFocus: () => v(u()),
261
- onMouseEnter: (s) => {
262
- v(u()), w(e, s.currentTarget);
265
+ onFocus: () => k(h()),
266
+ onMouseEnter: (a) => {
267
+ k(h()), x(e, a.currentTarget);
263
268
  },
264
- onClick: (s) => w(e, s.currentTarget),
269
+ onClick: (a) => x(e, a.currentTarget),
265
270
  get children() {
266
271
  return [(() => {
267
- var s = ne();
268
- return _(s, () => e.label), $(() => p(s, g.label)), s;
269
- })(), f(xe, {
272
+ var a = re();
273
+ return p(a, () => e.label), C(() => I(a, w.label)), a;
274
+ })(), m(xe, {
270
275
  get class() {
271
- return g.submenuArrow;
276
+ return w.submenuArrow;
272
277
  },
273
278
  "aria-hidden": "true"
274
279
  })];
275
280
  }
276
- }) : f(N, {
281
+ }) : m(U, {
277
282
  type: "button",
278
- ref: (s) => {
279
- P[u()] = s ?? null;
283
+ ref: (a) => {
284
+ q[h()] = a ?? null;
280
285
  },
281
286
  get class() {
282
- return `${g.row} ${e.enabled ? "" : g.rowDisabled}`;
287
+ return `${w.row} ${e.enabled ? "" : w.rowDisabled}`;
283
288
  },
284
289
  role: "menuitem",
285
290
  get disabled() {
286
291
  return !e.enabled;
287
292
  },
288
293
  get "aria-label"() {
289
- return F(() => !!e.shortcut)() ? `${e.label} (${e.shortcut})` : e.label;
294
+ return O(() => !!e.shortcut)() ? `${e.label} (${e.shortcut})` : e.label;
290
295
  },
291
296
  tabIndex: -1,
292
- onFocus: () => v(u()),
297
+ onFocus: () => k(h()),
293
298
  onMouseEnter: () => {
294
- v(u()), l();
299
+ k(h()), b();
295
300
  },
296
- onClick: () => y(e),
297
- onContextMenu: (s) => S(s, e),
301
+ onClick: () => A(e),
302
+ onContextMenu: (a) => L(a, e),
298
303
  get children() {
299
- return [f(L, {
304
+ return [m(P, {
300
305
  get when() {
301
- return Z();
306
+ return ee();
302
307
  },
303
308
  get children() {
304
- var s = re();
305
- return _(s, f(L, {
309
+ var a = oe();
310
+ return p(a, m(P, {
306
311
  get when() {
307
312
  return e.checked;
308
313
  },
309
314
  get children() {
310
- return f(Ae, {});
315
+ return m(Ee, {});
311
316
  }
312
- })), $(() => p(s, g.checkmark)), s;
317
+ })), C(() => I(a, w.checkmark)), a;
313
318
  }
314
- }), f(L, {
319
+ }), m(P, {
315
320
  get when() {
316
321
  return e.icon;
317
322
  },
318
323
  get children() {
319
- var s = re();
320
- return _(s, () => e.icon), $(() => p(s, g.itemIcon)), s;
324
+ var a = oe();
325
+ return p(a, () => e.icon), C(() => I(a, w.itemIcon)), a;
321
326
  }
322
327
  }), (() => {
323
- var s = ne();
324
- return _(s, () => e.label), $(() => p(s, g.label)), s;
325
- })(), f(L, {
328
+ var a = re();
329
+ return p(a, () => e.label), C(() => I(a, w.label)), a;
330
+ })(), m(P, {
326
331
  get when() {
327
332
  return e.shortcut;
328
333
  },
329
334
  get children() {
330
- var s = re();
331
- return _(s, () => e.shortcut), $(() => p(s, g.shortcut)), s;
335
+ var a = oe();
336
+ return p(a, () => e.shortcut), C(() => I(a, w.shortcut)), a;
332
337
  }
333
338
  })];
334
339
  }
335
340
  })
336
- })), i;
341
+ })), s;
337
342
  }
338
- }), null), $((i) => {
339
- var e = g.panel, u = `${n.anchor.left}px`, s = `${n.anchor.top}px`, W = `calc(100vh - ${n.anchor.top + tt}px)`;
340
- return e !== i.e && p(r, i.e = e), u !== i.t && te(r, "left", i.t = u), s !== i.a && te(r, "top", i.a = s), W !== i.o && te(r, "max-height", i.o = W), i;
343
+ }), null), C((s) => {
344
+ var e = w.panel, h = `${n.anchor.left}px`, a = `${n.anchor.top}px`, K = `calc(100vh - ${n.anchor.top + rt}px)`;
345
+ return e !== s.e && I(i, s.e = e), h !== s.t && ne(i, "left", s.t = h), a !== s.a && ne(i, "top", s.a = a), K !== s.o && ne(i, "max-height", s.o = K), s;
341
346
  }, {
342
347
  e: void 0,
343
348
  t: void 0,
344
349
  a: void 0,
345
350
  o: void 0
346
- }), r;
347
- })(), f(L, {
351
+ }), i;
352
+ })(), m(P, {
348
353
  get when() {
349
- return M();
354
+ return v();
350
355
  },
351
356
  get children() {
352
357
  return (() => {
353
- const r = M();
354
- return r ? [(() => {
355
- var i = ue();
356
- return i.$$contextmenu = (e) => {
357
- e.preventDefault(), V();
358
- }, i.$$keydown = (e) => {
359
- B(e, "Escape") && (e.stopPropagation(), V());
360
- }, i.$$click = (e) => {
361
- e.stopPropagation(), V();
362
- }, $(() => p(i, g.favoriteBackdrop)), i;
358
+ const i = v();
359
+ return i ? [(() => {
360
+ var s = de();
361
+ return s.$$contextmenu = (e) => {
362
+ e.preventDefault(), H();
363
+ }, s.$$keydown = (e) => {
364
+ F(e, "Escape") && (e.stopPropagation(), H());
365
+ }, s.$$click = (e) => {
366
+ e.stopPropagation(), H();
367
+ }, C(() => I(s, w.favoriteBackdrop)), s;
363
368
  })(), (() => {
364
- var i = ce();
365
- return oe((e) => {
366
- e && (e.style.setProperty("--favorite-popover-left", `${r.left}px`), e.style.setProperty("--favorite-popover-top", `${r.top}px`));
367
- }, i), _(i, f(N, {
369
+ var s = ue();
370
+ return ie((e) => {
371
+ e && (e.style.setProperty("--favorite-popover-left", `${i.left}px`), e.style.setProperty("--favorite-popover-top", `${i.top}px`));
372
+ }, s), p(s, m(U, {
368
373
  type: "button",
369
374
  get class() {
370
- return g.row;
375
+ return w.row;
371
376
  },
372
377
  role: "menuitem",
373
378
  onClick: E,
374
379
  get children() {
375
- var e = ne();
376
- return _(e, (() => {
377
- var u = F(() => !!r.isPinned);
378
- return () => u() ? I("Unpin from Favorites") : I("Pin to Favorites");
379
- })()), $(() => p(e, g.label)), e;
380
+ var e = re();
381
+ return p(e, (() => {
382
+ var h = O(() => !!i.isPinned);
383
+ return () => h() ? T("Unpin from Favorites") : T("Pin to Favorites");
384
+ })()), C(() => I(e, w.label)), e;
380
385
  }
381
- })), $(() => p(i, g.favoritePopover)), i;
386
+ })), C(() => I(s, w.favoritePopover)), s;
382
387
  })()] : null;
383
388
  })();
384
389
  }
385
- }), f(L, {
390
+ }), m(P, {
386
391
  get when() {
387
- return F(() => !!le())() && b();
392
+ return O(() => !!ae())() && u();
388
393
  },
389
394
  get children() {
390
395
  return (() => {
391
- const r = le(), i = b();
392
- return !r || !i ? null : f(he, {
396
+ const i = ae(), s = u();
397
+ return !i || !s ? null : m(ve, {
393
398
  get items() {
394
- return r.items;
399
+ return i.items;
395
400
  },
396
- anchor: i,
397
- onClose: o,
401
+ anchor: s,
402
+ onClose: c,
398
403
  onItemActivate: () => {
399
404
  var e;
400
- o(), (e = n.onItemActivate) == null || e.call(n), n.onClose();
405
+ c(), (e = n.onItemActivate) == null || e.call(n), n.onClose();
401
406
  },
402
407
  onPanelMouseEnter: () => {
403
408
  var e;
404
- G(), t(), (e = n.onPanelMouseEnter) == null || e.call(n);
409
+ t(), o(), (e = n.onPanelMouseEnter) == null || e.call(n);
405
410
  },
406
411
  onPanelMouseLeave: () => {
407
412
  var e;
408
- l(), (e = n.onPanelMouseLeave) == null || e.call(n);
413
+ b(), (e = n.onPanelMouseLeave) == null || e.call(n);
409
414
  }
410
415
  });
411
416
  })();
@@ -414,203 +419,203 @@ function he(n) {
414
419
  }
415
420
  });
416
421
  }
417
- function ot(n) {
418
- var b;
419
- const a = [];
420
- let d = !0;
421
- for (const c of n)
422
- if (c.kind === "separator") {
423
- if (d) continue;
424
- a.push(c), d = !0;
422
+ function st(n) {
423
+ var f;
424
+ const r = [];
425
+ let l = !0;
426
+ for (const u of n)
427
+ if (u.kind === "separator") {
428
+ if (l) continue;
429
+ r.push(u), l = !0;
425
430
  } else
426
- a.push(c), d = !1;
427
- for (; a.length > 0 && ((b = a[a.length - 1]) == null ? void 0 : b.kind) === "separator"; )
428
- a.pop();
429
- return a;
431
+ r.push(u), l = !1;
432
+ for (; r.length > 0 && ((f = r[r.length - 1]) == null ? void 0 : f.kind) === "separator"; )
433
+ r.pop();
434
+ return r;
430
435
  }
431
- de(["keydown", "click", "contextmenu"]);
432
- function it(n, a) {
433
- return n === null ? !1 : me(a.get(n) ?? null);
436
+ fe(["keydown", "click", "contextmenu"]);
437
+ function lt(n, r) {
438
+ return n === null ? !1 : me(r.get(n) ?? null);
434
439
  }
435
440
  function at(n) {
436
- let a = null;
437
- const d = (c) => c !== null && !n(c), b = (c) => {
438
- const m = c;
439
- return typeof m.focus == "function" ? m : null;
441
+ let r = null;
442
+ const l = (u) => u !== null && !n(u), f = (u) => {
443
+ const d = u;
444
+ return typeof d.focus == "function" ? d : null;
440
445
  };
441
446
  return {
442
- remember(c) {
443
- if (c === null || !d(c)) return;
444
- const m = b(c);
445
- m !== null && (a = m);
447
+ remember(u) {
448
+ if (u === null || !l(u)) return;
449
+ const d = f(u);
450
+ d !== null && (r = d);
446
451
  },
447
- forget(c) {
448
- d(c) && (a = null);
452
+ forget(u) {
453
+ l(u) && (r = null);
449
454
  },
450
455
  restore() {
451
- const c = a;
452
- return a = null, me(c);
456
+ const u = r;
457
+ return r = null, me(u);
453
458
  },
454
459
  peek() {
455
- return a;
460
+ return r;
456
461
  }
457
462
  };
458
463
  }
459
- var lt = /* @__PURE__ */ x("<u>"), st = /* @__PURE__ */ x("<div role=menubar>");
460
- function St(n) {
461
- const [a, d] = H(null), [b, c] = H(!1);
462
- let m;
463
- const v = /* @__PURE__ */ new Map(), k = at((t) => m !== void 0 && m.contains(t)), C = U(() => n.groups.filter((t) => t.items.some((o) => o.kind !== "separator"))), M = (t) => (t.mnemonic ?? t.label.charAt(0)).toLowerCase(), h = (t) => {
464
- const o = M(t), l = t.label.toLowerCase().indexOf(o);
465
- return l < 0 ? F(() => t.label) : [F(() => t.label.slice(0, l)), (() => {
466
- var w = lt();
467
- return _(w, () => t.label.charAt(l)), $(() => p(w, g.mnemonic)), w;
468
- })(), F(() => t.label.slice(l + 1))];
469
- }, K = (t) => {
470
- const o = v.get(t);
464
+ var ct = /* @__PURE__ */ $("<u>"), ut = /* @__PURE__ */ $("<div role=menubar>");
465
+ function Dt(n) {
466
+ const [r, l] = R(null), [f, u] = R(!1);
467
+ let d;
468
+ const g = /* @__PURE__ */ new Map(), k = at((t) => d !== void 0 && d.contains(t)), _ = V(() => n.groups.filter((t) => t.items.some((o) => o.kind !== "separator"))), M = (t) => (t.mnemonic ?? t.label.charAt(0)).toLowerCase(), v = (t) => {
469
+ const o = M(t), c = t.label.toLowerCase().indexOf(o);
470
+ return c < 0 ? O(() => t.label) : [O(() => t.label.slice(0, c)), (() => {
471
+ var b = ct();
472
+ return p(b, () => t.label.charAt(c)), C(() => I(b, w.mnemonic)), b;
473
+ })(), O(() => t.label.slice(c + 1))];
474
+ }, X = (t) => {
475
+ const o = g.get(t);
471
476
  if (!o) return null;
472
- const l = o.getBoundingClientRect();
477
+ const c = o.getBoundingClientRect();
473
478
  return {
474
479
  groupId: t,
475
- left: Math.round(l.left),
476
- top: Math.round(l.bottom)
480
+ left: Math.round(c.left),
481
+ top: Math.round(c.bottom)
477
482
  };
478
- }, A = (t) => {
479
- const o = K(t);
480
- o && d(o);
481
- }, P = () => {
482
- var o, l;
483
- const t = ((o = a()) == null ? void 0 : o.groupId) ?? null;
484
- d(null), k.restore() || it(t, v), (l = n.onClose) == null || l.call(n);
483
+ }, S = (t) => {
484
+ const o = X(t);
485
+ o && l(o);
486
+ }, y = () => {
487
+ var o, c;
488
+ const t = ((o = r()) == null ? void 0 : o.groupId) ?? null;
489
+ l(null), k.restore() || lt(t, g), (c = n.onClose) == null || c.call(n);
485
490
  }, q = (t) => {
486
- const o = a();
491
+ const o = r();
487
492
  if ((o == null ? void 0 : o.groupId) === t) {
488
- P();
493
+ y();
489
494
  return;
490
495
  }
491
- A(t);
492
- }, R = (t) => {
496
+ S(t);
497
+ }, G = (t) => {
493
498
  var o;
494
- a() && ((o = a()) == null ? void 0 : o.groupId) !== t && A(t);
495
- }, X = (t) => {
496
- if (!a()) return;
499
+ r() && ((o = r()) == null ? void 0 : o.groupId) !== t && S(t);
500
+ }, B = (t) => {
501
+ if (!r()) return;
497
502
  const o = t.target;
498
- o && (m != null && m.contains(o) || o instanceof HTMLElement && o.closest('[role="menu"]') || P());
499
- }, Z = (t) => {
503
+ o && (d != null && d.contains(o) || o instanceof HTMLElement && o.closest('[role="menu"]') || y());
504
+ }, Q = (t) => {
500
505
  var o;
501
506
  if (!t.defaultPrevented && t.altKey && !t.ctrlKey && !t.metaKey && !t.shiftKey && t.key.length === 1) {
502
- const l = t.target;
503
- if (!(l instanceof HTMLElement && (l.tagName === "INPUT" || l.tagName === "TEXTAREA" || l.tagName === "SELECT" || l.isContentEditable))) {
504
- const y = t.key.toLowerCase(), S = C().filter((E) => M(E) === y);
505
- if (S.length > 0) {
507
+ const c = t.target;
508
+ if (!(c instanceof HTMLElement && (c.tagName === "INPUT" || c.tagName === "TEXTAREA" || c.tagName === "SELECT" || c.isContentEditable))) {
509
+ const x = t.key.toLowerCase(), L = _().filter((E) => M(E) === x);
510
+ if (L.length > 0) {
506
511
  t.preventDefault();
507
- const E = (o = a()) == null ? void 0 : o.groupId, V = S.findIndex((ee) => ee.id === E), Y = S[(V + 1) % S.length];
508
- Y && A(Y.id);
512
+ const E = (o = r()) == null ? void 0 : o.groupId, H = L.findIndex((te) => te.id === E), j = L[(H + 1) % L.length];
513
+ j && S(j.id);
509
514
  return;
510
515
  }
511
516
  }
512
517
  }
513
- if (a()) {
514
- if (B(t, "Escape")) {
515
- t.preventDefault(), P();
518
+ if (r()) {
519
+ if (F(t, "Escape")) {
520
+ t.preventDefault(), y();
516
521
  return;
517
522
  }
518
- if (B(t, "ArrowLeft") || B(t, "ArrowRight")) {
519
- const l = C(), w = l.findIndex((S) => {
523
+ if (F(t, "ArrowLeft") || F(t, "ArrowRight")) {
524
+ const c = _(), b = c.findIndex((L) => {
520
525
  var E;
521
- return S.id === ((E = a()) == null ? void 0 : E.groupId);
526
+ return L.id === ((E = r()) == null ? void 0 : E.groupId);
522
527
  });
523
- if (w === -1) return;
524
- const y = B(t, "ArrowRight") ? (w + 1) % l.length : (w - 1 + l.length) % l.length, D = l[y];
525
- D && (t.preventDefault(), A(D.id));
528
+ if (b === -1) return;
529
+ const x = F(t, "ArrowRight") ? (b + 1) % c.length : (b - 1 + c.length) % c.length, A = c[x];
530
+ A && (t.preventDefault(), S(A.id));
526
531
  }
527
532
  }
528
- }, Q = (t) => {
529
- t.altKey && c(!0);
530
- }, z = (t) => {
531
- t.altKey || c(!1);
533
+ }, ee = (t) => {
534
+ t.altKey && u(!0);
535
+ }, Y = (t) => {
536
+ t.altKey || u(!1);
532
537
  };
533
- let T = null;
534
- ie(() => {
535
- const t = Se(m);
536
- if (T = t, t.addEventListener("pointerdown", X), t.addEventListener("keydown", Z), t.addEventListener("keydown", Q), t.addEventListener("keyup", z), n.autoOpenFirst) {
537
- const o = C()[0];
538
- o && queueMicrotask(() => A(o.id));
538
+ let D = null;
539
+ se(() => {
540
+ const t = Le(d);
541
+ if (D = t, t.addEventListener("pointerdown", B), t.addEventListener("keydown", Q), t.addEventListener("keydown", ee), t.addEventListener("keyup", Y), n.autoOpenFirst) {
542
+ const o = _()[0];
543
+ o && queueMicrotask(() => S(o.id));
539
544
  }
540
- }), ae(() => {
541
- const t = T;
542
- t && (t.removeEventListener("pointerdown", X), t.removeEventListener("keydown", Z), t.removeEventListener("keydown", Q), t.removeEventListener("keyup", z), T = null), c(!1);
545
+ }), le(() => {
546
+ const t = D;
547
+ t && (t.removeEventListener("pointerdown", B), t.removeEventListener("keydown", Q), t.removeEventListener("keydown", ee), t.removeEventListener("keyup", Y), D = null), u(!1);
543
548
  });
544
- const O = U(() => {
545
- const t = a();
546
- return t ? C().find((o) => o.id === t.groupId) ?? null : null;
547
- }), G = () => {
548
- const t = [], o = (l, w) => {
549
- for (const y of l) {
550
- if (y.kind === "separator") continue;
551
- if (y.kind === "submenu") {
552
- const E = y, V = w ? `${w} → ${E.label}` : E.label;
553
- o(E.items, V);
549
+ const z = V(() => {
550
+ const t = r();
551
+ return t ? _().find((o) => o.id === t.groupId) ?? null : null;
552
+ }), N = () => {
553
+ const t = [], o = (c, b) => {
554
+ for (const x of c) {
555
+ if (x.kind === "separator") continue;
556
+ if (x.kind === "submenu") {
557
+ const E = x, H = b ? `${b} → ${E.label}` : E.label;
558
+ o(E.items, H);
554
559
  continue;
555
560
  }
556
- const D = y, S = {
557
- ...D,
558
- label: w ? `${w} → ${D.label}` : D.label
561
+ const A = x, L = {
562
+ ...A,
563
+ label: b ? `${b} → ${A.label}` : A.label
559
564
  };
560
- t.push(S);
565
+ t.push(L);
561
566
  }
562
567
  };
563
- for (const l of C())
564
- o(l.items, l.label);
568
+ for (const c of _())
569
+ o(c.items, c.label);
565
570
  return t;
566
571
  };
567
572
  return [(() => {
568
- var t = st();
569
- return t.$$focusout = (o) => k.forget(o.relatedTarget), t.$$focusin = (o) => k.remember(o.relatedTarget), oe((o) => m = o, t), _(t, f(fe, {
573
+ var t = ut();
574
+ return t.$$focusout = (o) => k.forget(o.relatedTarget), t.$$focusin = (o) => k.remember(o.relatedTarget), ie((o) => d = o, t), p(t, m(he, {
570
575
  get each() {
571
- return C();
576
+ return _();
572
577
  },
573
- children: (o) => f(N, {
574
- ref: (l) => {
575
- l ? v.set(o.id, l) : v.delete(o.id);
578
+ children: (o) => m(U, {
579
+ ref: (c) => {
580
+ c ? g.set(o.id, c) : g.delete(o.id);
576
581
  },
577
582
  type: "button",
578
583
  get class() {
579
- var l;
580
- return `${g.trigger} ${((l = a()) == null ? void 0 : l.groupId) === o.id ? g.triggerActive : ""}`;
584
+ var c;
585
+ return `${w.trigger} ${((c = r()) == null ? void 0 : c.groupId) === o.id ? w.triggerActive : ""}`;
581
586
  },
582
587
  role: "menuitem",
583
588
  "aria-haspopup": "menu",
584
589
  get "aria-expanded"() {
585
- var l;
586
- return ((l = a()) == null ? void 0 : l.groupId) === o.id;
590
+ var c;
591
+ return ((c = r()) == null ? void 0 : c.groupId) === o.id;
587
592
  },
588
593
  get "aria-keyshortcuts"() {
589
594
  return `Alt+${M(o)}`;
590
595
  },
591
596
  onClick: () => q(o.id),
592
- onMouseEnter: () => R(o.id),
597
+ onMouseEnter: () => G(o.id),
593
598
  get children() {
594
- return h(o);
599
+ return v(o);
595
600
  }
596
601
  })
597
- })), $((o) => {
598
- var l = `${g.bar} ${n.class ?? ""}`, w = b() ? "true" : void 0;
599
- return l !== o.e && p(t, o.e = l), w !== o.t && ve(t, "data-show-mnemonics", o.t = w), o;
602
+ })), C((o) => {
603
+ var c = `${w.bar} ${n.class ?? ""}`, b = f() ? "true" : void 0;
604
+ return c !== o.e && I(t, o.e = c), b !== o.t && ke(t, "data-show-mnemonics", o.t = b), o;
600
605
  }, {
601
606
  e: void 0,
602
607
  t: void 0
603
608
  }), t;
604
- })(), f(L, {
609
+ })(), m(P, {
605
610
  get when() {
606
- return F(() => !!O())() && a();
611
+ return O(() => !!z())() && r();
607
612
  },
608
613
  get children() {
609
614
  return (() => {
610
- const t = O(), o = a();
615
+ const t = z(), o = r();
611
616
  if (!t || !o) return null;
612
- const l = t.searchScope ?? "none";
613
- return f(he, we({
617
+ const c = t.searchScope ?? "none";
618
+ return m(ve, _e({
614
619
  get items() {
615
620
  return t.items;
616
621
  },
@@ -620,119 +625,188 @@ function St(n) {
620
625
  top: o.top
621
626
  };
622
627
  },
623
- onClose: P,
624
- searchScope: l
625
- }, l === "global" ? {
626
- globalEntries: G
628
+ onClose: y,
629
+ searchScope: c
630
+ }, c === "global" ? {
631
+ globalEntries: N
627
632
  } : {}));
628
633
  })();
629
634
  }
630
635
  })];
631
636
  }
632
- de(["focusin", "focusout"]);
633
- const ct = "vk_windowControls_UUBWX", ut = "vk_windowControlButton_ohJen", dt = "vk_windowControlClose_3PPrC", J = {
634
- windowControls: ct,
635
- windowControlButton: ut,
636
- windowControlClose: dt
637
+ fe(["focusin", "focusout"]);
638
+ const dt = "vk_windowControls_UUBWX", ft = "vk_windowControlButton_ohJen", ht = "vk_windowControlClose_3PPrC", Z = {
639
+ windowControls: dt,
640
+ windowControlButton: ft,
641
+ windowControlClose: ht
637
642
  };
638
- var ft = /* @__PURE__ */ x('<svg width=10 height=1 viewBox="0 0 10 1"><rect width=10 height=1 fill=currentColor>'), mt = /* @__PURE__ */ x('<svg width=10 height=10 viewBox="0 0 10 10"><path d="M0 2a2 2 0 012-2h6a2 2 0 012 2v6a2 2 0 01-2 2H2a2 2 0 01-2-2V2zm1 0v6a1 1 0 001 1h6a1 1 0 001-1V2a1 1 0 00-1-1H2a1 1 0 00-1 1z"fill=currentColor>'), ht = /* @__PURE__ */ x('<svg width=10 height=10 viewBox="0 0 10 10"><path d="M1.293.293a1 1 0 011.414 0L5 2.586 7.293.293a1 1 0 111.414 1.414L6.414 4l2.293 2.293a1 1 0 01-1.414 1.414L5 5.414 2.707 7.707a1 1 0 01-1.414-1.414L3.586 4 1.293 1.707a1 1 0 010-1.414z"fill=currentColor>'), gt = /* @__PURE__ */ x("<div>"), vt = /* @__PURE__ */ x('<svg width=10 height=10 viewBox="0 0 10 10"><path d="M4 0h4a2 2 0 012 2v4a2 2 0 01-2 2h-1v-1h1a1 1 0 001-1V2a1 1 0 00-1-1H4a1 1 0 00-1 1v1H2V2a2 2 0 012-2z"fill=currentColor></path><path d="M0 4a2 2 0 012-2h4a2 2 0 012 2v4a2 2 0 01-2 2H2a2 2 0 01-2-2V4zm1 0v4a1 1 0 001 1h4a1 1 0 001-1V4a1 1 0 00-1-1H2a1 1 0 00-1 1z"fill=currentColor>');
639
- function wt(n) {
640
- var d;
641
- const a = ((d = n.navigator) == null ? void 0 : d.userAgent) ?? "";
642
- return /Mac OS X|Macintosh/i.test(a) ? "darwin" : /Windows/i.test(a) ? "win32" : "linux";
643
+ var mt = /* @__PURE__ */ $('<svg width=10 height=1 viewBox="0 0 10 1"><rect width=10 height=1 fill=currentColor>'), vt = /* @__PURE__ */ $('<svg width=10 height=10 viewBox="0 0 10 10"><path d="M0 2a2 2 0 012-2h6a2 2 0 012 2v6a2 2 0 01-2 2H2a2 2 0 01-2-2V2zm1 0v6a1 1 0 001 1h6a1 1 0 001-1V2a1 1 0 00-1-1H2a1 1 0 00-1 1z"fill=currentColor>'), wt = /* @__PURE__ */ $('<svg width=10 height=10 viewBox="0 0 10 10"><path d="M1.293.293a1 1 0 011.414 0L5 2.586 7.293.293a1 1 0 111.414 1.414L6.414 4l2.293 2.293a1 1 0 01-1.414 1.414L5 5.414 2.707 7.707a1 1 0 01-1.414-1.414L3.586 4 1.293 1.707a1 1 0 010-1.414z"fill=currentColor>'), gt = /* @__PURE__ */ $("<div>"), bt = /* @__PURE__ */ $('<svg width=10 height=10 viewBox="0 0 10 10"><path d="M4 0h4a2 2 0 012 2v4a2 2 0 01-2 2h-1v-1h1a1 1 0 001-1V2a1 1 0 00-1-1H4a1 1 0 00-1 1v1H2V2a2 2 0 012-2z"fill=currentColor></path><path d="M0 4a2 2 0 012-2h4a2 2 0 012 2v4a2 2 0 01-2 2H2a2 2 0 01-2-2V4zm1 0v4a1 1 0 001 1h4a1 1 0 001-1V4a1 1 0 00-1-1H2a1 1 0 00-1 1z"fill=currentColor>');
644
+ function kt(n) {
645
+ var l;
646
+ const r = ((l = n.navigator) == null ? void 0 : l.userAgent) ?? "";
647
+ return /Mac OS X|Macintosh/i.test(r) ? "darwin" : /Windows/i.test(r) ? "win32" : "linux";
643
648
  }
644
- function It(n = {}) {
645
- const a = ke(), [d, b] = H(!1), m = (n.platform ?? wt(a.window)) === "darwin", v = async () => {
646
- var h;
647
- b(await ((h = n.isMaximized) == null ? void 0 : h.call(n)) ?? !1);
649
+ function Rt(n = {}) {
650
+ const r = Ce(), [l, f] = R(!1), d = (n.platform ?? kt(r.window)) === "darwin", g = async () => {
651
+ var v;
652
+ f(await ((v = n.isMaximized) == null ? void 0 : v.call(n)) ?? !1);
648
653
  };
649
- ie(() => {
650
- v(), a.window.addEventListener("resize", v);
651
- }), ae(() => {
652
- a.window.removeEventListener("resize", v);
654
+ se(() => {
655
+ g(), r.window.addEventListener("resize", g);
656
+ }), le(() => {
657
+ r.window.removeEventListener("resize", g);
653
658
  });
654
659
  const k = () => {
655
- var h;
656
- return void ((h = n.onMinimize) == null ? void 0 : h.call(n));
657
- }, C = async () => {
658
- var h;
659
- await ((h = n.onToggleMaximize) == null ? void 0 : h.call(n)), await v();
660
+ var v;
661
+ return void ((v = n.onMinimize) == null ? void 0 : v.call(n));
662
+ }, _ = async () => {
663
+ var v;
664
+ await ((v = n.onToggleMaximize) == null ? void 0 : v.call(n)), await g();
660
665
  }, M = () => {
661
- var h;
662
- n.beforeClose && !n.beforeClose() || (h = n.onClose) == null || h.call(n);
666
+ var v;
667
+ n.beforeClose && !n.beforeClose() || (v = n.onClose) == null || v.call(n);
663
668
  };
664
- return f(L, {
665
- when: !m,
669
+ return m(P, {
670
+ when: !d,
666
671
  get children() {
667
- var h = gt();
668
- return _(h, f(N, {
672
+ var v = gt();
673
+ return p(v, m(U, {
669
674
  type: "button",
670
675
  get class() {
671
- return J.windowControlButton;
676
+ return Z.windowControlButton;
672
677
  },
673
678
  onClick: k,
674
679
  get "aria-label"() {
675
- return I("Minimize");
680
+ return T("Minimize");
676
681
  },
677
682
  get title() {
678
- return I("Minimize");
683
+ return T("Minimize");
679
684
  },
680
685
  get children() {
681
- return ft();
686
+ return mt();
682
687
  }
683
- }), null), _(h, f(N, {
688
+ }), null), p(v, m(U, {
684
689
  type: "button",
685
690
  get class() {
686
- return J.windowControlButton;
691
+ return Z.windowControlButton;
687
692
  },
688
- onClick: C,
693
+ onClick: _,
689
694
  get "aria-label"() {
690
- return F(() => !!d())() ? I("Restore") : I("Maximize");
695
+ return O(() => !!l())() ? T("Restore") : T("Maximize");
691
696
  },
692
697
  get title() {
693
- return F(() => !!d())() ? I("Restore") : I("Maximize");
698
+ return O(() => !!l())() ? T("Restore") : T("Maximize");
694
699
  },
695
700
  get children() {
696
- return f(L, {
701
+ return m(P, {
697
702
  get when() {
698
- return !d();
703
+ return !l();
699
704
  },
700
705
  get fallback() {
701
- return vt();
706
+ return bt();
702
707
  },
703
708
  get children() {
704
- return mt();
709
+ return vt();
705
710
  }
706
711
  });
707
712
  }
708
- }), null), _(h, f(N, {
713
+ }), null), p(v, m(U, {
709
714
  type: "button",
710
715
  get class() {
711
- return `${J.windowControlButton} ${J.windowControlClose}`;
716
+ return `${Z.windowControlButton} ${Z.windowControlClose}`;
712
717
  },
713
718
  onClick: M,
714
719
  get "aria-label"() {
715
- return I("Close");
720
+ return T("Close");
716
721
  },
717
722
  get title() {
718
- return I("Close");
723
+ return T("Close");
719
724
  },
720
725
  get children() {
721
- return ht();
726
+ return wt();
722
727
  }
723
- }), null), $(() => p(h, J.windowControls)), h;
728
+ }), null), C(() => I(v, Z.windowControls)), v;
724
729
  }
725
730
  });
726
731
  }
732
+ const Ft = {
733
+ onFocusChanged: () => ({ dispose: () => {
734
+ } }),
735
+ getFocusState: () => Promise.resolve({ revision: 0, focusedWindowId: null }),
736
+ hostWindowId: () => null
737
+ };
738
+ class Ot {
739
+ constructor(r, l) {
740
+ W(this, "hosts", []);
741
+ W(this, "ownerWindow");
742
+ W(this, "setOwnerWindow");
743
+ W(this, "nativeIds", /* @__PURE__ */ new WeakMap());
744
+ W(this, "focusSubscription");
745
+ W(this, "pendingRefresh");
746
+ W(this, "focusedNativeWindowId", null);
747
+ W(this, "mainNativeWindowId", 0);
748
+ W(this, "nativeFocusRevision", 0);
749
+ this.source = r, this.log = l;
750
+ const [f, u] = R(null);
751
+ this.ownerWindow = f, this.setOwnerWindow = u, this.focusSubscription = r.onFocusChanged((d) => {
752
+ d.revision < this.nativeFocusRevision || (this.nativeFocusRevision = d.revision, this.focusedNativeWindowId = d.focusedWindowId, this.scheduleRefresh());
753
+ }), r.getFocusState().then(
754
+ (d) => {
755
+ d.windowId && (this.mainNativeWindowId = d.windowId), !(d.revision < this.nativeFocusRevision) && (this.nativeFocusRevision = d.revision, this.focusedNativeWindowId = d.focusedWindowId, this.scheduleRefresh());
756
+ },
757
+ (d) => l.warn("native focus state could not be read; DOM focus decides the display owner", d)
758
+ );
759
+ }
760
+ register(r) {
761
+ let l = this.hosts.find((d) => d.win === r);
762
+ l ? l.references++ : (l = { win: r, references: 1, onFocusChange: () => this.scheduleRefresh() }, this.hosts.push(l), r.addEventListener("focus", l.onFocusChange), r.addEventListener("blur", l.onFocusChange), this.resolveNativeId(r)), this.setOwnerWindow(() => this.resolveOwner());
763
+ const f = l;
764
+ let u = !1;
765
+ return {
766
+ ownsDisplay: () => this.ownerWindow() === r,
767
+ dispose: () => {
768
+ u || (u = !0, f.references--, f.references === 0 && (r.removeEventListener("focus", f.onFocusChange), r.removeEventListener("blur", f.onFocusChange), this.hosts.splice(this.hosts.indexOf(f), 1)), this.hosts.length === 0 && this.cancelRefresh(), this.setOwnerWindow(() => this.resolveOwner()));
769
+ }
770
+ };
771
+ }
772
+ dispose() {
773
+ this.cancelRefresh(), this.focusSubscription.dispose();
774
+ }
775
+ resolveNativeId(r) {
776
+ const l = this.source.hostWindowId(r);
777
+ l !== null && l.then(
778
+ (f) => {
779
+ f !== null && (this.nativeIds.set(r, f), this.scheduleRefresh());
780
+ },
781
+ (f) => this.log.warn("window id could not be read; the display owner stays unresolved", f)
782
+ );
783
+ }
784
+ isWindowFocused(r) {
785
+ var l;
786
+ return this.focusedNativeWindowId === null ? !!((l = r.document) != null && l.hasFocus()) : r === $e().window ? this.mainNativeWindowId !== 0 && this.focusedNativeWindowId === this.mainNativeWindowId : this.nativeIds.get(r) === this.focusedNativeWindowId;
787
+ }
788
+ resolveOwner() {
789
+ var l, f;
790
+ const r = this.hosts.filter(({ win: u }) => !u.closed);
791
+ return ((l = r.find(({ win: u }) => this.isWindowFocused(u))) == null ? void 0 : l.win) ?? ((f = r[0]) == null ? void 0 : f.win) ?? null;
792
+ }
793
+ scheduleRefresh() {
794
+ this.pendingRefresh === void 0 && (this.pendingRefresh = setTimeout(() => {
795
+ this.pendingRefresh = void 0, this.setOwnerWindow(() => this.resolveOwner());
796
+ }, 0));
797
+ }
798
+ cancelRefresh() {
799
+ this.pendingRefresh !== void 0 && (clearTimeout(this.pendingRefresh), this.pendingRefresh = void 0);
800
+ }
801
+ }
727
802
  export {
728
- Tt as HostWindowProvider,
729
- St as MenuBar,
730
- he as MenuPanel,
731
- It as WindowControls,
732
- Ot as configureDisplayFocusSource,
733
- Ht as registerDisplayHost,
734
- Ft as registerMenuActionIds,
735
- Kt as resetDisplayOwnerForTesting,
736
- Dt as useHostDocument,
737
- ke as useHostWindow
803
+ Ot as DisplayOwnerService,
804
+ Nt as HostWindowProvider,
805
+ Dt as MenuBar,
806
+ ve as MenuPanel,
807
+ Rt as WindowControls,
808
+ Ft as domDisplayFocusSource,
809
+ Vt as registerMenuActionIds,
810
+ Ht as useHostDocument,
811
+ Ce as useHostWindow
738
812
  };