@vokril/ui-solid 0.29.0 → 0.32.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 (433) hide show
  1. package/CHANGELOG.md +121 -0
  2. package/README.md +90 -0
  3. package/dist/AttributeGrid-CNkALmJq.cjs +1 -0
  4. package/dist/AttributeGrid-DnuTPJ_P.js +320 -0
  5. package/dist/Button-CX7mylBT.js +308 -0
  6. package/dist/Button-lMUW5P3O.cjs +1 -0
  7. package/dist/CommandPalette-DAR9VMqY.cjs +2 -0
  8. package/dist/CommandPalette-DlLcdd4o.js +4029 -0
  9. package/dist/CopyButton-BVvv5M8g.js +63 -0
  10. package/dist/CopyButton-Dnd8_2Lj.cjs +1 -0
  11. package/dist/DateRangePicker-BlJWtJBA.cjs +9 -0
  12. package/dist/DateRangePicker-CHmUU4PA.js +552 -0
  13. package/dist/GuidedTour-9rqvNB_m.js +483 -0
  14. package/dist/GuidedTour-DbXeuTc7.cjs +1 -0
  15. package/dist/{HostPortal-CXGUUhP8.js → HostPortal-De65s6CU.js} +1 -1
  16. package/dist/HostPortal-Dm4BmY8M.cjs +1 -0
  17. package/dist/{IconPicker-DYqNi5ud.js → IconPicker-CsYW8CXe.js} +4 -4
  18. package/dist/IconPicker-D-GU1mD3.cjs +1 -0
  19. package/dist/Input-C3rEQffK.js +382 -0
  20. package/dist/Input-CHtvL4_4.cjs +1 -0
  21. package/dist/Modal-3L6p7Dwt.js +599 -0
  22. package/dist/Modal-CtrWEnJ7.cjs +1 -0
  23. package/dist/OverlayScrollArea-Cr0VAApT.cjs +1 -0
  24. package/dist/OverlayScrollArea-CrrPFLq9.js +180 -0
  25. package/dist/{PageSkeleton-CLnJO6uD.js → PageSkeleton-BRuqaDzr.js} +372 -371
  26. package/dist/PageSkeleton-Cz2bckO4.cjs +30 -0
  27. package/dist/Popover-CLTXG8W0.cjs +1 -0
  28. package/dist/Popover-DkqGvMNy.js +207 -0
  29. package/dist/SearchableSelect-C-lV1vSv.cjs +1 -0
  30. package/dist/SearchableSelect-Du12kcI9.js +328 -0
  31. package/dist/StatusBarNotificationBell-CNs_obmZ.cjs +50 -0
  32. package/dist/{StatusBarNotificationBell-7Izs_msz.js → StatusBarNotificationBell-CgsYrrpj.js} +5205 -4850
  33. package/dist/Stepper-DzI-gtKd.js +586 -0
  34. package/dist/Stepper-rpu7lpzB.cjs +1 -0
  35. package/dist/{Textarea-CeAGf08O.cjs → Textarea-D4nYoQ0J.cjs} +1 -1
  36. package/dist/{Textarea-B5QqqKnI.js → Textarea-DOzZCc-O.js} +1 -1
  37. package/dist/TimeSeriesChart-BJqQpeEJ.cjs +1 -0
  38. package/dist/TimeSeriesChart-DvAhuyVl.js +442 -0
  39. package/dist/ToggleButton-B-hBpdzk.js +2144 -0
  40. package/dist/ToggleButton-BMH1A-IX.cjs +1 -0
  41. package/dist/_internal/app/onboarding/pageTourState.d.cts +0 -2
  42. package/dist/_internal/app/onboarding/pageTourState.d.ts +0 -2
  43. package/dist/_internal/app/onboarding/pageTourTypes.d.cts +2 -1
  44. package/dist/_internal/app/onboarding/pageTourTypes.d.ts +2 -1
  45. package/dist/_internal/contract/notification.d.cts +28 -3
  46. package/dist/_internal/contract/notification.d.ts +28 -3
  47. package/dist/_internal/contract/notificationCatalog.d.cts +2 -0
  48. package/dist/_internal/contract/notificationCatalog.d.ts +2 -0
  49. package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -8
  50. package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -8
  51. package/dist/a11y/index.cjs +1 -1
  52. package/dist/a11y/index.js +1 -1
  53. package/dist/anchoredLayout-CBjQ1etD.cjs +1 -0
  54. package/dist/anchoredLayout-E0mqCWxk.js +233 -0
  55. package/dist/base.css +3 -3
  56. package/dist/charts/index.cjs +1 -1
  57. package/dist/charts/index.js +1 -1
  58. package/dist/context/DesktopContextMenuContext.d.cts +8 -1
  59. package/dist/context/DesktopContextMenuContext.d.ts +8 -1
  60. package/dist/createDialogShellFocus-DI1rUvYf.js +282 -0
  61. package/dist/createDialogShellFocus-kzkNSLWS.cjs +1 -0
  62. package/dist/createResizableSidebar--Ve6DbDu.js +504 -0
  63. package/dist/createResizableSidebar-DlVAuq5t.cjs +1 -0
  64. package/dist/desktop/index.cjs +1 -1
  65. package/dist/desktop/index.js +229 -228
  66. package/dist/dialogFocusRestore-BhxVTSiP.js +10 -0
  67. package/dist/dialogFocusRestore-DP5b1bDo.cjs +1 -0
  68. package/dist/feedback/index.cjs +1 -1
  69. package/dist/feedback/index.js +4 -4
  70. package/dist/{focusModality-BISb6-yg.cjs → focusModality-D704CJVN.cjs} +1 -1
  71. package/dist/{focusModality-FoLPWF-_.js → focusModality-ROUF6YGR.js} +1 -1
  72. package/dist/forms/Input.d.cts +20 -0
  73. package/dist/forms/Input.d.ts +20 -0
  74. package/dist/forms/InputMessage.d.cts +19 -0
  75. package/dist/forms/InputMessage.d.ts +19 -0
  76. package/dist/forms/index.cjs +1 -1
  77. package/dist/forms/index.js +9 -9
  78. package/dist/grid/index.cjs +1 -1
  79. package/dist/grid/index.js +1 -1
  80. package/dist/host/index.cjs +1 -1
  81. package/dist/host/index.d.cts +1 -0
  82. package/dist/host/index.d.ts +1 -0
  83. package/dist/host/index.js +38 -39
  84. package/dist/host/kitHost.d.cts +8 -0
  85. package/dist/host/kitHost.d.ts +8 -0
  86. package/dist/index.cjs +1 -1
  87. package/dist/index.js +936 -928
  88. package/dist/kitHost-BMMWpU4w.js +47 -0
  89. package/dist/kitHost-u0-mKvEK.cjs +1 -0
  90. package/dist/layout/index.cjs +1 -1
  91. package/dist/layout/index.js +2 -2
  92. package/dist/layout/resizeCarry.d.cts +17 -0
  93. package/dist/layout/resizeCarry.d.ts +17 -0
  94. package/dist/mainRealmDom-BcPuVvcy.cjs +1 -0
  95. package/dist/mainRealmDom-DydRT2Us.js +54 -0
  96. package/dist/nativeTitleHold-A9jUISgQ.js +170 -0
  97. package/dist/nativeTitleHold-B7Ou-W9b.cjs +1 -0
  98. package/dist/navigation/index.cjs +1 -1
  99. package/dist/navigation/index.js +1 -1
  100. package/dist/notificationCatalog-CRERhjp6.js +168 -0
  101. package/dist/notificationCatalog-DqTkd7M6.cjs +1 -0
  102. package/dist/notifications/NotificationItem.d.cts +9 -0
  103. package/dist/notifications/NotificationItem.d.ts +9 -0
  104. package/dist/notifications/NotificationsCenter.d.cts +18 -0
  105. package/dist/notifications/NotificationsCenter.d.ts +18 -0
  106. package/dist/notifications/RunningProgressCards.d.cts +3 -0
  107. package/dist/notifications/RunningProgressCards.d.ts +3 -0
  108. package/dist/notifications/fireNotification.d.cts +35 -16
  109. package/dist/notifications/fireNotification.d.ts +35 -16
  110. package/dist/notifications/holdWhileShown.d.cts +18 -0
  111. package/dist/notifications/holdWhileShown.d.ts +18 -0
  112. package/dist/notifications/index.cjs +1 -1
  113. package/dist/notifications/index.d.cts +1 -0
  114. package/dist/notifications/index.d.ts +1 -0
  115. package/dist/notifications/index.js +55 -52
  116. package/dist/notifications/nativeEngine.d.cts +38 -5
  117. package/dist/notifications/nativeEngine.d.ts +38 -5
  118. package/dist/notifications/notificationEntryList.d.cts +104 -0
  119. package/dist/notifications/notificationEntryList.d.ts +104 -0
  120. package/dist/notifications/notificationService.d.cts +23 -2
  121. package/dist/notifications/notificationService.d.ts +23 -2
  122. package/dist/notifications/toast.d.cts +3 -0
  123. package/dist/notifications/toast.d.ts +3 -0
  124. package/dist/notifications/toastCorner.d.cts +8 -0
  125. package/dist/notifications/toastCorner.d.ts +8 -0
  126. package/dist/notifications/toastFilterPolicy.d.cts +33 -1
  127. package/dist/notifications/toastFilterPolicy.d.ts +33 -1
  128. package/dist/overlay/Modal.d.cts +19 -0
  129. package/dist/overlay/Modal.d.ts +19 -0
  130. package/dist/overlay/backgroundInert.d.cts +6 -2
  131. package/dist/overlay/backgroundInert.d.ts +6 -2
  132. package/dist/overlay/command-palette/CommandPalette.d.cts +12 -0
  133. package/dist/overlay/command-palette/CommandPalette.d.ts +12 -0
  134. package/dist/overlay/index.cjs +1 -1
  135. package/dist/overlay/index.d.cts +2 -1
  136. package/dist/overlay/index.d.ts +2 -1
  137. package/dist/overlay/index.js +80 -75
  138. package/dist/overlay/modalDefaults.d.cts +23 -0
  139. package/dist/overlay/modalDefaults.d.ts +23 -0
  140. package/dist/overlay/modalViewport.d.cts +16 -2
  141. package/dist/overlay/modalViewport.d.ts +16 -2
  142. package/dist/overlay/nativeTitleHold.d.cts +24 -0
  143. package/dist/overlay/nativeTitleHold.d.ts +24 -0
  144. package/dist/ownerAnimationFrame-DzFcMSmn.js +19 -0
  145. package/dist/ownerAnimationFrame-T6jf6qYC.cjs +1 -0
  146. package/dist/pageTourState-BuA-GBYO.cjs +5 -0
  147. package/dist/{pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
  148. package/dist/rowSource-BRGZHclZ.js +1231 -0
  149. package/dist/rowSource-C3zlzAtR.cjs +1 -0
  150. package/dist/server/AttributeGrid-B9j_c2wM.js +281 -0
  151. package/dist/server/AttributeGrid-BALCTvOI.cjs +1 -0
  152. package/dist/server/Button-DHefmmYz.cjs +1 -0
  153. package/dist/server/Button-ft_8RNJj.js +226 -0
  154. package/dist/server/CommandPalette-CHdfYtxs.js +3305 -0
  155. package/dist/server/CommandPalette-D0Prl7by.cjs +1 -0
  156. package/dist/server/CopyButton-CiYcsQcI.js +64 -0
  157. package/dist/server/CopyButton-D2q7tQ0m.cjs +1 -0
  158. package/dist/server/DateRangePicker-C6wZI7No.js +487 -0
  159. package/dist/server/DateRangePicker-CF70G2yr.cjs +9 -0
  160. package/dist/server/GuidedTour-BmDAWNfN.cjs +1 -0
  161. package/dist/server/GuidedTour-DYBhprVK.js +400 -0
  162. package/dist/server/{HostPortal-CXGUUhP8.js → HostPortal-C4xdfRyM.js} +1 -1
  163. package/dist/server/HostPortal-CwyePpDX.cjs +1 -0
  164. package/dist/server/{IconPicker-B4aXspLw.js → IconPicker--Xso9fUf.js} +5 -5
  165. package/dist/server/IconPicker-BTI4cNgf.cjs +1 -0
  166. package/dist/server/Input-UX0Hk53M.cjs +1 -0
  167. package/dist/server/Input-V9Szcw6w.js +249 -0
  168. package/dist/server/Modal-CBnNlaTx.cjs +1 -0
  169. package/dist/server/Modal-D9CjieKK.js +426 -0
  170. package/dist/server/OverlayScrollArea-DuwGRSMm.cjs +1 -0
  171. package/dist/server/OverlayScrollArea-h6G3yk6U.js +66 -0
  172. package/dist/server/{PageSkeleton-DoxlE_bD.js → PageSkeleton-CFs7AdTA.js} +267 -266
  173. package/dist/server/PageSkeleton-D0KOKLsb.cjs +30 -0
  174. package/dist/server/Popover-BBDBIpT6.cjs +1 -0
  175. package/dist/server/Popover-e9JpRh11.js +439 -0
  176. package/dist/server/SearchableSelect-B2ZFnp6i.js +205 -0
  177. package/dist/server/SearchableSelect-BBu5cP6P.cjs +1 -0
  178. package/dist/server/{StatusBarNotificationBell-D8Jt3PXI.js → StatusBarNotificationBell-CJJFE4rf.js} +5043 -4698
  179. package/dist/server/StatusBarNotificationBell-Cxs_bVKX.cjs +49 -0
  180. package/dist/server/Stepper-C04rOZcI.cjs +1 -0
  181. package/dist/server/Stepper-CVAOsf3o.js +381 -0
  182. package/dist/server/{Textarea-BQf2lL59.cjs → Textarea-BG6F8taO.cjs} +1 -1
  183. package/dist/server/{Textarea-BTH48NET.js → Textarea-DM4zpgWo.js} +1 -1
  184. package/dist/server/TimeSeriesChart-kuuqH7we.js +242 -0
  185. package/dist/server/TimeSeriesChart-tWbSF6fJ.cjs +1 -0
  186. package/dist/server/ToggleButton-BdqufQ7G.js +1344 -0
  187. package/dist/server/ToggleButton-Bo24NK3o.cjs +1 -0
  188. package/dist/server/{VpTrash-Dlq8o6Uv.js → VpTrash-CZMWCIpF.js} +84 -70
  189. package/dist/server/VpTrash-DiczWhwm.cjs +1 -0
  190. package/dist/server/a11y/index.cjs +1 -1
  191. package/dist/server/a11y/index.js +1 -1
  192. package/dist/server/charts/index.cjs +1 -1
  193. package/dist/server/charts/index.js +1 -1
  194. package/dist/server/createDialogShellFocus-DvoNWpIu.cjs +1 -0
  195. package/dist/server/createDialogShellFocus-J8wqPlsa.js +370 -0
  196. package/dist/server/{createResizableSidebar-BImbKlLe.js → createResizableSidebar-CIrhLNKW.js} +104 -102
  197. package/dist/server/createResizableSidebar-DcZ2Cnpf.cjs +1 -0
  198. package/dist/server/desktop/index.cjs +1 -1
  199. package/dist/server/desktop/index.js +154 -153
  200. package/dist/server/dialogFocusRestore-BhxVTSiP.js +10 -0
  201. package/dist/server/dialogFocusRestore-DP5b1bDo.cjs +1 -0
  202. package/dist/server/feedback/index.cjs +1 -1
  203. package/dist/server/feedback/index.js +4 -4
  204. package/dist/server/{focusModality-nWNVX3JG.js → focusModality-Bu4Kuwm4.js} +1 -1
  205. package/dist/server/{focusModality-D-nxv8Er.cjs → focusModality-G2i60_7y.cjs} +1 -1
  206. package/dist/server/forms/index.cjs +1 -1
  207. package/dist/server/forms/index.js +9 -9
  208. package/dist/server/grid/index.cjs +1 -1
  209. package/dist/server/grid/index.js +1 -1
  210. package/dist/server/host/index.cjs +1 -1
  211. package/dist/server/host/index.js +38 -39
  212. package/dist/server/{index-UIjsx3oJ.js → index-CPUZyKo7.js} +3604 -3617
  213. package/dist/server/index-CVbkasNJ.cjs +1 -0
  214. package/dist/server/index.cjs +1 -1
  215. package/dist/server/index.js +656 -649
  216. package/dist/server/kitHost-BMMWpU4w.js +47 -0
  217. package/dist/server/kitHost-u0-mKvEK.cjs +1 -0
  218. package/dist/server/layout/index.cjs +1 -1
  219. package/dist/server/layout/index.js +2 -2
  220. package/dist/server/mainRealmDom-BuGEeM_r.cjs +1 -0
  221. package/dist/server/{EmptyState-Csydyy_7.js → mainRealmDom-CzckS_ss.js} +12 -8
  222. package/dist/server/navigation/index.cjs +1 -1
  223. package/dist/server/navigation/index.js +1 -1
  224. package/dist/server/notificationCatalog-CEDltsJS.cjs +1 -0
  225. package/dist/server/notificationCatalog-Cl1dH4aJ.js +122 -0
  226. package/dist/server/notifications/index.cjs +1 -1
  227. package/dist/server/notifications/index.js +55 -52
  228. package/dist/server/overlay/index.cjs +1 -1
  229. package/dist/server/overlay/index.js +72 -68
  230. package/dist/server/pageTourState-BuA-GBYO.cjs +5 -0
  231. package/dist/server/{pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
  232. package/dist/server/rowSource-C1F4l0xZ.cjs +1 -0
  233. package/dist/server/rowSource-CoeHYNsV.js +1123 -0
  234. package/dist/server/tokens/index.cjs +1 -1
  235. package/dist/server/tokens/index.js +29 -26
  236. package/dist/server/tokens/palette/index.cjs +1 -0
  237. package/dist/server/tokens/palette/index.js +31 -0
  238. package/dist/server/tree/index.cjs +1 -1
  239. package/dist/server/tree/index.js +1 -1
  240. package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +11 -10
  241. package/dist/solid/_internal/app/onboarding/pageTourState.js +12 -23
  242. package/dist/solid/charts/TimeSeriesChart.jsx +23 -22
  243. package/dist/solid/desktop/WindowControls.jsx +6 -3
  244. package/dist/solid/feedback/Badge.jsx +12 -19
  245. package/dist/solid/feedback/ErrorBoundary.jsx +18 -14
  246. package/dist/solid/forms/Button.jsx +18 -23
  247. package/dist/solid/forms/Checkbox.jsx +5 -4
  248. package/dist/solid/forms/Combobox.jsx +12 -10
  249. package/dist/solid/forms/CopyButton.jsx +7 -4
  250. package/dist/solid/forms/DatePicker.jsx +12 -7
  251. package/dist/solid/forms/Dropzone.jsx +17 -13
  252. package/dist/solid/forms/FilePickerButton.jsx +5 -4
  253. package/dist/solid/forms/HiddenFileInput.jsx +3 -1
  254. package/dist/solid/forms/Input.jsx +31 -5
  255. package/dist/solid/forms/Input.module.css.js +1 -0
  256. package/dist/solid/forms/InputMessage.jsx +87 -0
  257. package/dist/solid/forms/MultiSearchableSelect.jsx +8 -7
  258. package/dist/solid/forms/NumberInput.jsx +25 -19
  259. package/dist/solid/forms/Picker.jsx +8 -6
  260. package/dist/solid/forms/PressableSurface.jsx +17 -23
  261. package/dist/solid/forms/RadioGroup.jsx +4 -3
  262. package/dist/solid/forms/SearchInput.jsx +4 -3
  263. package/dist/solid/forms/SearchableSelect.jsx +4 -3
  264. package/dist/solid/forms/SegmentedControl.jsx +4 -3
  265. package/dist/solid/forms/TagInput.jsx +22 -16
  266. package/dist/solid/forms/ToggleButton.jsx +4 -3
  267. package/dist/solid/forms/date-range-picker/DateRangePicker.jsx +12 -10
  268. package/dist/solid/grid/Pagination.jsx +7 -3
  269. package/dist/solid/host/kitHost.jsx +5 -1
  270. package/dist/solid/layout/PageHeaderIcon.jsx +11 -9
  271. package/dist/solid/layout/ResizableSplitPane.jsx +4 -4
  272. package/dist/solid/layout/ResizeHandle.jsx +15 -4
  273. package/dist/solid/layout/resizeCarry.js +31 -0
  274. package/dist/solid/navigation/Accordion.jsx +8 -5
  275. package/dist/solid/navigation/Tabs.jsx +11 -8
  276. package/dist/solid/notifications/NotificationHost.jsx +5 -18
  277. package/dist/solid/notifications/NotificationItem.jsx +62 -58
  278. package/dist/solid/notifications/NotificationPanel.jsx +27 -9
  279. package/dist/solid/notifications/NotificationsCenter.jsx +72 -12
  280. package/dist/solid/notifications/RunningProgressCards.jsx +1 -1
  281. package/dist/solid/notifications/StatusBarNotificationBell.jsx +12 -6
  282. package/dist/solid/notifications/catalogAdapter.js +1 -0
  283. package/dist/solid/notifications/createNotificationPreviewRuntime.js +2 -0
  284. package/dist/solid/notifications/fireNotification.js +21 -16
  285. package/dist/solid/notifications/holdWhileShown.js +30 -0
  286. package/dist/solid/notifications/index.js +1 -0
  287. package/dist/solid/notifications/nativeEngine.js +52 -1
  288. package/dist/solid/notifications/notificationEntryList.js +184 -0
  289. package/dist/solid/notifications/notificationService.js +20 -4
  290. package/dist/solid/notifications/toast.js +58 -7
  291. package/dist/solid/notifications/toastCorner.js +3 -0
  292. package/dist/solid/notifications/toastFilterPolicy.js +12 -0
  293. package/dist/solid/overlay/ConfirmDialog.jsx +21 -16
  294. package/dist/solid/overlay/DangerousActionDialogParts.jsx +5 -3
  295. package/dist/solid/overlay/Disclosure.jsx +4 -3
  296. package/dist/solid/overlay/Drawer.jsx +2 -1
  297. package/dist/solid/overlay/DropdownMenu.jsx +6 -4
  298. package/dist/solid/overlay/FloatingWindow.jsx +3 -3
  299. package/dist/solid/overlay/HoverTooltip.jsx +9 -7
  300. package/dist/solid/overlay/Modal.jsx +81 -34
  301. package/dist/solid/overlay/OverlayScrollArea.jsx +5 -3
  302. package/dist/solid/overlay/Tooltip.jsx +5 -4
  303. package/dist/solid/overlay/command-palette/CommandPalette.jsx +11 -11
  304. package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +73 -57
  305. package/dist/solid/overlay/index.js +2 -1
  306. package/dist/solid/overlay/menu/MenuParts.jsx +11 -8
  307. package/dist/solid/overlay/modalDefaults.jsx +10 -0
  308. package/dist/solid/overlay/modalViewport.js +17 -4
  309. package/dist/solid/overlay/nativeTitleHold.js +33 -0
  310. package/dist/solid/overlay/popover/Popover.jsx +17 -11
  311. package/dist/solid/overlay/tooltipDirective.js +3 -11
  312. package/dist/solid/overlay/tour/GuidedTour.jsx +18 -14
  313. package/dist/solid/tokens/index.js +1 -0
  314. package/dist/solid/tokens/palette/index.js +1 -0
  315. package/dist/solid/tokens/palette/paletteContract.js +27 -0
  316. package/dist/solid/tree/TreeRow.jsx +19 -16
  317. package/dist/solid/tree/TreeSurface.jsx +15 -14
  318. package/dist/solid/widgets/SettingsField.jsx +11 -10
  319. package/dist/style.css +4 -3
  320. package/dist/theme.css +3 -2
  321. package/dist/tokens/index.cjs +1 -1
  322. package/dist/tokens/index.d.cts +1 -0
  323. package/dist/tokens/index.d.ts +1 -0
  324. package/dist/tokens/index.js +29 -26
  325. package/dist/tokens/palette/index.cjs +1 -0
  326. package/dist/tokens/palette/index.d.cts +12 -0
  327. package/dist/tokens/palette/index.d.ts +12 -0
  328. package/dist/tokens/palette/index.js +31 -0
  329. package/dist/tokens/palette/paletteContract.d.cts +17 -0
  330. package/dist/tokens/palette/paletteContract.d.ts +17 -0
  331. package/dist/tokens/tokens.css +3 -2
  332. package/dist/tree/index.cjs +1 -1
  333. package/dist/tree/index.js +1 -1
  334. package/dist/ui.css +1 -1
  335. package/package.json +25 -1
  336. package/dist/AttributeGrid-CASILa4u.js +0 -320
  337. package/dist/AttributeGrid-eND8YDby.cjs +0 -1
  338. package/dist/Button-Bb68ymNP.cjs +0 -1
  339. package/dist/Button-D-T0tyGF.js +0 -305
  340. package/dist/CommandPalette-5FQRgPG9.cjs +0 -2
  341. package/dist/CommandPalette-Cj618AOz.js +0 -4017
  342. package/dist/CopyButton-B5gS2ft3.cjs +0 -1
  343. package/dist/CopyButton-g-WSiBDZ.js +0 -63
  344. package/dist/DateRangePicker-CJD9ADgB.js +0 -550
  345. package/dist/DateRangePicker-Frc0HVxp.cjs +0 -9
  346. package/dist/EmptyState-B9TxGJ5v.cjs +0 -1
  347. package/dist/EmptyState-Dph6HU74.js +0 -50
  348. package/dist/GuidedTour-B6q7lYhn.cjs +0 -1
  349. package/dist/GuidedTour-CFCvRJN4.js +0 -483
  350. package/dist/HostPortal-CgJwxt-f.cjs +0 -1
  351. package/dist/IconPicker-CIbJb1ei.cjs +0 -1
  352. package/dist/Input-CZruORyy.cjs +0 -1
  353. package/dist/Input-DkPhsdfk.js +0 -227
  354. package/dist/Modal-CY6ePolt.cjs +0 -1
  355. package/dist/Modal-NzZzHSwb.js +0 -559
  356. package/dist/OverlayScrollArea-BSlaXG1h.cjs +0 -1
  357. package/dist/OverlayScrollArea-c8Za77qs.js +0 -180
  358. package/dist/PageSkeleton-BPbb28-H.cjs +0 -30
  359. package/dist/Popover-CWrR51eG.cjs +0 -1
  360. package/dist/Popover-Cttb6NYT.js +0 -206
  361. package/dist/SearchableSelect-BvCm4enQ.js +0 -327
  362. package/dist/SearchableSelect-CVqdVMOC.cjs +0 -1
  363. package/dist/StatusBarNotificationBell-BJiORN4s.cjs +0 -50
  364. package/dist/Stepper-Ci5JpLbS.cjs +0 -1
  365. package/dist/Stepper-D9i1Xclm.js +0 -583
  366. package/dist/TimeSeriesChart-DOwi2lJs.js +0 -441
  367. package/dist/TimeSeriesChart-huvheefm.cjs +0 -1
  368. package/dist/ToggleButton-BFWh1_o5.cjs +0 -1
  369. package/dist/ToggleButton-CFM8P3JY.js +0 -2137
  370. package/dist/anchoredLayout-Dstwa5OH.cjs +0 -1
  371. package/dist/anchoredLayout-FC-qv8xm.js +0 -250
  372. package/dist/createDialogShellFocus-B4piXDU4.js +0 -282
  373. package/dist/createDialogShellFocus-CJaw9-B9.cjs +0 -1
  374. package/dist/createResizableSidebar-BDUlX9-G.js +0 -472
  375. package/dist/createResizableSidebar-BVJBU2kP.cjs +0 -1
  376. package/dist/dialogFocusRestore--dH59ER2.js +0 -35
  377. package/dist/dialogFocusRestore-CL-ExfAA.cjs +0 -1
  378. package/dist/kitHost-BfJExE1G.cjs +0 -1
  379. package/dist/kitHost-CVAEi9sF.js +0 -23
  380. package/dist/mainRealmDom-C12lr9lm.js +0 -171
  381. package/dist/mainRealmDom-S6teqEr4.cjs +0 -1
  382. package/dist/pageTourState-CrbEU7QW.cjs +0 -5
  383. package/dist/rowSource-D__7o4h0.js +0 -1230
  384. package/dist/rowSource-DiwTu_r8.cjs +0 -1
  385. package/dist/server/AttributeGrid-B7sb3btp.cjs +0 -1
  386. package/dist/server/AttributeGrid-CMi-UtWb.js +0 -281
  387. package/dist/server/Button-0AXWRw9Q.cjs +0 -1
  388. package/dist/server/Button-3yNrnn4P.js +0 -220
  389. package/dist/server/CommandPalette-CozogFlk.js +0 -3265
  390. package/dist/server/CommandPalette-DQK6N98N.cjs +0 -1
  391. package/dist/server/CopyButton-B6xd9Z6j.js +0 -64
  392. package/dist/server/CopyButton-D8IN6Vnd.cjs +0 -1
  393. package/dist/server/DateRangePicker-C35q8BTw.js +0 -484
  394. package/dist/server/DateRangePicker-KLZzyuPJ.cjs +0 -9
  395. package/dist/server/EmptyState-BnAHklc5.cjs +0 -1
  396. package/dist/server/GuidedTour-DfV0yzqh.cjs +0 -1
  397. package/dist/server/GuidedTour-DmLbBttx.js +0 -400
  398. package/dist/server/HostPortal-CgJwxt-f.cjs +0 -1
  399. package/dist/server/IconPicker-B1soopAp.cjs +0 -1
  400. package/dist/server/Input-CjvD8w18.cjs +0 -1
  401. package/dist/server/Input-DaEN2JJd.js +0 -127
  402. package/dist/server/Modal-BheFQLs1.js +0 -415
  403. package/dist/server/Modal-BswxV8Pn.cjs +0 -1
  404. package/dist/server/OverlayScrollArea-221dfKyz.js +0 -65
  405. package/dist/server/OverlayScrollArea-D4e9D9Nd.cjs +0 -1
  406. package/dist/server/PageSkeleton-DBo7hQq-.cjs +0 -30
  407. package/dist/server/Popover-BsxIKBbl.cjs +0 -1
  408. package/dist/server/Popover-Cg28aPUZ.js +0 -439
  409. package/dist/server/SearchableSelect-09ECcDlB.cjs +0 -1
  410. package/dist/server/SearchableSelect-vjhS4c-H.js +0 -205
  411. package/dist/server/StatusBarNotificationBell-LJHLMT9F.cjs +0 -49
  412. package/dist/server/Stepper-DxNrskdq.cjs +0 -1
  413. package/dist/server/Stepper-n5f9r-ye.js +0 -375
  414. package/dist/server/TimeSeriesChart-BQVXUFoj.cjs +0 -1
  415. package/dist/server/TimeSeriesChart-PAb95s6x.js +0 -242
  416. package/dist/server/ToggleButton-FywO2CCI.js +0 -1335
  417. package/dist/server/ToggleButton-TE3Xf2yD.cjs +0 -1
  418. package/dist/server/VpTrash-D49oUUJh.cjs +0 -1
  419. package/dist/server/createDialogShellFocus-BFo8awdj.js +0 -369
  420. package/dist/server/createDialogShellFocus-BiBAZOCI.cjs +0 -1
  421. package/dist/server/createResizableSidebar-GFgZIj-5.cjs +0 -1
  422. package/dist/server/dialogFocusRestore--dH59ER2.js +0 -35
  423. package/dist/server/dialogFocusRestore-CL-ExfAA.cjs +0 -1
  424. package/dist/server/index-2mQPVEDR.cjs +0 -1
  425. package/dist/server/kitHost-BfJExE1G.cjs +0 -1
  426. package/dist/server/kitHost-CVAEi9sF.js +0 -23
  427. package/dist/server/mainRealmDom-DPNaDWtw.js +0 -121
  428. package/dist/server/mainRealmDom-DwZVMPnO.cjs +0 -1
  429. package/dist/server/pageTourState-CrbEU7QW.cjs +0 -5
  430. package/dist/server/rowSource-D-wcDmFU.js +0 -1122
  431. package/dist/server/rowSource-DltiY0o3.cjs +0 -1
  432. package/dist/tooltipCoordinator-BzxEyKhA.js +0 -144
  433. package/dist/tooltipCoordinator-DslqMlsI.cjs +0 -1
@@ -1,21 +1,21 @@
1
1
  var ge = Object.defineProperty;
2
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";
3
+ var L = (n, r, l) => be(n, typeof r != "symbol" ? r + "" : r, l);
4
+ import { createComponent as v, use as ie, insert as _, effect as I, className as $, memo as O, setStyleProperty as ne, template as M, delegateEvents as fe, setAttribute as ke, mergeProps as pe } from "solid-js/web";
5
+ import { createSignal as D, createMemo as R, onMount as se, onCleanup as le, Show as T, For as he } from "solid-js";
6
+ import { I as _e, P as q } from "../Input-C3rEQffK.js";
7
7
  import { a as Ce } from "../HostWindowContext-B2m0bVra.js";
8
8
  import { H as Nt, u as Ht } from "../HostWindowContext-B2m0bVra.js";
9
- import { t as T } from "../i18n-CBlUGOyu.js";
9
+ import { t as W } from "../i18n-CBlUGOyu.js";
10
10
  import { i as Ie } from "../actions-wwAHs3ZU.js";
11
11
  import { r as Vt } from "../actions-wwAHs3ZU.js";
12
12
  import { a as $e } from "../window-CUK6x8Pj.js";
13
- import { H as Me } from "../HostPortal-CXGUUhP8.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";
13
+ import { H as Me } from "../HostPortal-De65s6CU.js";
14
+ import { VpChevronRight as xe, VpCheck as ye } from "@vokril/icons";
15
+ import { O as Ee } from "../OverlayScrollArea-CrrPFLq9.js";
16
+ import { u as Se } from "../kitHost-BMMWpU4w.js";
17
17
  import { i as F, n as Ae } from "../keys-B2nlkpqc.js";
18
- import { r as me } from "../dialogFocusRestore--dH59ER2.js";
18
+ import { r as me } from "../dialogFocusRestore-BhxVTSiP.js";
19
19
  import { g as Le } from "../windowRegistry-DeGmXt6W.js";
20
20
  const We = 500;
21
21
  function Te(n) {
@@ -26,15 +26,15 @@ function Pe(n, r, l, f, u = We) {
26
26
  }
27
27
  function De(n, r, l) {
28
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
+ const f = [...r].every((p) => p === r[0]), u = f ? r[0] ?? "" : r, d = f ? l : l - 1, k = n.length;
30
+ for (let p = 1; p <= k; p += 1) {
31
+ const b = ((d + p) % k + k) % k, x = n[b];
32
+ if (x != null && x.trim().toLowerCase().startsWith(u))
33
+ return b;
34
34
  }
35
35
  return -1;
36
36
  }
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 = {
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-", Qe = "vk_rowDisabled_otjbn vk_itemDisabled_OROlk", Xe = "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
38
  bar: Re,
39
39
  trigger: Fe,
40
40
  triggerActive: Oe,
@@ -47,130 +47,130 @@ const Re = "vk_bar_-iKpX", Fe = "vk_trigger_tlFs1", Oe = "vk_triggerActive_vSu0q
47
47
  favoriteBackdrop: Ue,
48
48
  favoritePopover: qe,
49
49
  row: Ge,
50
- rowDisabled: Xe,
51
- rowSubmenu: Qe,
50
+ rowDisabled: Qe,
51
+ rowSubmenu: Xe,
52
52
  checkmark: Ye,
53
53
  label: je,
54
54
  shortcut: Je,
55
55
  submenuArrow: Ze,
56
56
  separator: et
57
57
  };
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>");
58
+ var tt = /* @__PURE__ */ M("<div role=presentation>"), ue = /* @__PURE__ */ M("<div role=menu>"), de = /* @__PURE__ */ M("<div tabindex=-1 role=presentation>"), nt = /* @__PURE__ */ M("<div role=separator>"), re = /* @__PURE__ */ M("<span>"), oe = /* @__PURE__ */ M("<span aria-hidden=true>");
59
59
  const rt = 8, ot = 80, it = 160;
60
60
  function ve(n) {
61
61
  const {
62
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(() => {
63
+ } = Se(), [l, f] = D(null), [u, d] = D(null), [k, p] = D(-1), [b, x] = D(""), [N, H] = D(null);
64
+ let h, C;
65
+ const G = [];
66
+ let Q = null, B = null;
67
+ const X = R(() => st(n.items)), ee = R(() => X().some((i) => i.kind === "item" && i.checked !== void 0)), Y = R(() => {
68
68
  const i = n.searchScope;
69
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;
70
+ }), P = R(() => {
71
+ const i = X(), s = b().trim().toLowerCase();
72
+ return s ? n.searchScope === "global" && n.globalEntries ? n.globalEntries().filter((m) => m.label.toLowerCase().includes(s)) : n.searchScope === "local" ? i.filter((e) => e.kind === "separator" ? !1 : e.label.toLowerCase().includes(s)) : i : i;
73
73
  }), z = (i, s) => {
74
- const e = D();
74
+ const e = P();
75
75
  if (e.length === 0) return -1;
76
- const h = e.length;
76
+ const m = e.length;
77
77
  let a = i;
78
- for (let K = 0; K < h; K++) {
79
- a = (a + s + h) % h;
78
+ for (let U = 0; U < m; U++) {
79
+ a = (a + s + m) % m;
80
80
  const J = e[a];
81
81
  if (J && J.kind !== "separator") return a;
82
82
  }
83
83
  return -1;
84
- }, N = (i) => {
85
- k(i);
86
- const s = q[i];
84
+ }, K = (i) => {
85
+ p(i);
86
+ const s = G[i];
87
87
  s && s.focus({
88
88
  preventScroll: !1
89
89
  });
90
90
  }, t = () => {
91
- G && (clearTimeout(G), G = null);
91
+ Q && (clearTimeout(Q), Q = null);
92
92
  }, o = () => {
93
93
  B && (clearTimeout(B), B = null);
94
94
  }, c = () => {
95
95
  t(), o(), f(null), d(null);
96
- }, b = () => {
96
+ }, g = () => {
97
97
  o(), B = setTimeout(() => {
98
98
  B = null, f(null), d(null);
99
99
  }, it);
100
- }, x = (i, s) => {
101
- t(), o(), l() !== i.id && (G = setTimeout(() => {
100
+ }, y = (i, s) => {
101
+ t(), o(), l() !== i.id && (Q = setTimeout(() => {
102
102
  const e = s.getBoundingClientRect();
103
103
  f(i.id), d({
104
104
  left: Math.round(e.right - 4),
105
105
  top: Math.round(e.top - 4)
106
106
  });
107
107
  }, ot));
108
- }, A = (i) => {
108
+ }, S = (i) => {
109
109
  var s;
110
110
  i.enabled && (n.onClose(), (s = n.onItemActivate) == null || s.call(n), i.onSelect());
111
- }, L = (i, s) => {
111
+ }, A = (i, s) => {
112
112
  const e = s.id;
113
- Ie(e) && (i.preventDefault(), i.stopPropagation(), X({
113
+ Ie(e) && (i.preventDefault(), i.stopPropagation(), H({
114
114
  left: i.clientX,
115
115
  top: i.clientY,
116
116
  actionId: e,
117
117
  isPinned: r.has(e)
118
118
  }));
119
119
  }, E = () => {
120
- const i = v();
121
- i && (i.isPinned ? r.remove(i.actionId) : r.add(i.actionId), X(null));
122
- }, H = () => {
123
- X(null);
120
+ const i = N();
121
+ i && (i.isPinned ? r.remove(i.actionId) : r.add(i.actionId), H(null));
122
+ }, V = () => {
123
+ H(null);
124
124
  };
125
125
  let j = "", te = 0;
126
126
  const we = (i) => {
127
- const s = D();
127
+ const s = P();
128
128
  if (s.length !== 0)
129
129
  switch (Ae(i)) {
130
130
  case "ArrowDown": {
131
131
  i.preventDefault();
132
- const e = z(g(), 1);
133
- e >= 0 && N(e);
132
+ const e = z(k(), 1);
133
+ e >= 0 && K(e);
134
134
  break;
135
135
  }
136
136
  case "ArrowUp": {
137
137
  i.preventDefault();
138
- const e = z(g() < 0 ? 0 : g(), -1);
139
- e >= 0 && N(e);
138
+ const e = z(k() < 0 ? 0 : k(), -1);
139
+ e >= 0 && K(e);
140
140
  break;
141
141
  }
142
142
  case "Home": {
143
143
  i.preventDefault();
144
144
  const e = z(-1, 1);
145
- e >= 0 && N(e);
145
+ e >= 0 && K(e);
146
146
  break;
147
147
  }
148
148
  case "End": {
149
149
  i.preventDefault();
150
150
  const e = z(0, -1);
151
- e >= 0 && N(e);
151
+ e >= 0 && K(e);
152
152
  break;
153
153
  }
154
154
  case "Enter": {
155
- if (_().trim() && g() < 0) {
155
+ if (b().trim() && k() < 0) {
156
156
  const e = z(-1, 1);
157
157
  if (e >= 0) {
158
158
  i.preventDefault();
159
- const h = D()[e];
160
- h && h.kind === "item" && A(h);
159
+ const m = P()[e];
160
+ m && m.kind === "item" && S(m);
161
161
  }
162
162
  }
163
163
  break;
164
164
  }
165
165
  case "Escape": {
166
- i.preventDefault(), i.stopPropagation(), _().trim() ? (M(""), y == null || y.focus()) : n.onClose();
166
+ i.preventDefault(), i.stopPropagation(), b().trim() ? (x(""), C == null || C.focus()) : n.onClose();
167
167
  break;
168
168
  }
169
169
  case "ArrowRight": {
170
- const e = g();
170
+ const e = k();
171
171
  if (e < 0) break;
172
- const h = s[e], a = q[e];
173
- h && h.kind === "submenu" && a && (i.preventDefault(), x(h, a));
172
+ const m = s[e], a = G[e];
173
+ m && m.kind === "submenu" && a && (i.preventDefault(), y(m, a));
174
174
  break;
175
175
  }
176
176
  case "ArrowLeft": {
@@ -180,78 +180,78 @@ function ve(n) {
180
180
  default: {
181
181
  const e = i.target;
182
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));
183
+ const m = Date.now(), a = Pe(j, te, i.key, m);
184
+ j = a, te = m;
185
+ const U = s.map((ce) => ce.kind === "separator" ? null : ce.label), J = De(U, a, k());
186
+ J >= 0 && (i.preventDefault(), K(J));
187
187
  break;
188
188
  }
189
189
  }
190
190
  };
191
191
  se(() => {
192
- Y() && y ? y.focus() : S == null || S.focus();
192
+ Y() && C ? C.focus() : h == null || h.focus();
193
193
  }), le(() => {
194
194
  t(), o();
195
195
  });
196
- const ae = V(() => {
196
+ const ae = R(() => {
197
197
  const i = l();
198
198
  if (!i) return null;
199
- for (const s of D())
199
+ for (const s of P())
200
200
  if (s.kind === "submenu" && s.id === i) return s;
201
201
  return null;
202
202
  });
203
- return m(Me, {
203
+ return v(Me, {
204
204
  type: "menu",
205
- element: () => S,
205
+ element: () => h,
206
206
  idPrefix: "menu-panel",
207
207
  get children() {
208
208
  return [(() => {
209
209
  var i = de();
210
210
  return i.addEventListener("mouseleave", () => {
211
211
  var s;
212
- b(), (s = n.onPanelMouseLeave) == null || s.call(n);
212
+ g(), (s = n.onPanelMouseLeave) == null || s.call(n);
213
213
  }), i.addEventListener("mouseenter", () => {
214
214
  var s;
215
215
  o(), (s = n.onPanelMouseEnter) == null || s.call(n);
216
- }), i.$$keydown = we, ie((s) => S = s, i), p(i, m(P, {
216
+ }), i.$$keydown = we, ie((s) => h = s, i), _(i, v(T, {
217
217
  get when() {
218
218
  return Y();
219
219
  },
220
220
  get children() {
221
221
  var s = tt();
222
- return p(s, m(pe, {
223
- ref: (e) => y = e,
222
+ return _(s, v(_e, {
223
+ ref: (e) => C = e,
224
224
  get class() {
225
225
  return w.panelSearchInput;
226
226
  },
227
227
  type: "search",
228
228
  placeholder: "Filter menu...",
229
229
  get value() {
230
- return _();
230
+ return b();
231
231
  },
232
- onInput: (e) => M(e.currentTarget.value),
232
+ onInput: (e) => x(e.currentTarget.value),
233
233
  onKeyDown: (e) => {
234
234
  F(e, "ArrowDown") || F(e, "ArrowUp") || F(e, "Enter") || F(e, "Escape") || e.stopPropagation();
235
235
  }
236
- })), C(() => I(s, w.panelSearchRow)), s;
236
+ })), I(() => $(s, w.panelSearchRow)), s;
237
237
  }
238
- }), null), p(i, m(Se, {
238
+ }), null), _(i, v(Ee, {
239
239
  get viewportClass() {
240
240
  return w.panelViewport;
241
241
  },
242
242
  get children() {
243
243
  var s = ue();
244
- return p(s, m(he, {
244
+ return _(s, v(he, {
245
245
  get each() {
246
- return D();
246
+ return P();
247
247
  },
248
- children: (e, h) => e.kind === "separator" ? (() => {
248
+ children: (e, m) => e.kind === "separator" ? (() => {
249
249
  var a = nt();
250
- return C(() => I(a, w.separator)), a;
251
- })() : e.kind === "submenu" ? m(U, {
250
+ return I(() => $(a, w.separator)), a;
251
+ })() : e.kind === "submenu" ? v(q, {
252
252
  type: "button",
253
253
  ref: (a) => {
254
- q[h()] = a ?? null;
254
+ G[m()] = a ?? null;
255
255
  },
256
256
  get class() {
257
257
  return `${w.row} ${w.rowSubmenu}`;
@@ -262,26 +262,26 @@ function ve(n) {
262
262
  return l() === e.id ? "true" : "false";
263
263
  },
264
264
  tabIndex: -1,
265
- onFocus: () => k(h()),
265
+ onFocus: () => p(m()),
266
266
  onMouseEnter: (a) => {
267
- k(h()), x(e, a.currentTarget);
267
+ p(m()), y(e, a.currentTarget);
268
268
  },
269
- onClick: (a) => x(e, a.currentTarget),
269
+ onClick: (a) => y(e, a.currentTarget),
270
270
  get children() {
271
271
  return [(() => {
272
272
  var a = re();
273
- return p(a, () => e.label), C(() => I(a, w.label)), a;
274
- })(), m(xe, {
273
+ return _(a, () => e.label), I(() => $(a, w.label)), a;
274
+ })(), v(xe, {
275
275
  get class() {
276
276
  return w.submenuArrow;
277
277
  },
278
278
  "aria-hidden": "true"
279
279
  })];
280
280
  }
281
- }) : m(U, {
281
+ }) : v(q, {
282
282
  type: "button",
283
283
  ref: (a) => {
284
- q[h()] = a ?? null;
284
+ G[m()] = a ?? null;
285
285
  },
286
286
  get class() {
287
287
  return `${w.row} ${e.enabled ? "" : w.rowDisabled}`;
@@ -294,82 +294,82 @@ function ve(n) {
294
294
  return O(() => !!e.shortcut)() ? `${e.label} (${e.shortcut})` : e.label;
295
295
  },
296
296
  tabIndex: -1,
297
- onFocus: () => k(h()),
297
+ onFocus: () => p(m()),
298
298
  onMouseEnter: () => {
299
- k(h()), b();
299
+ p(m()), g();
300
300
  },
301
- onClick: () => A(e),
302
- onContextMenu: (a) => L(a, e),
301
+ onClick: () => S(e),
302
+ onContextMenu: (a) => A(a, e),
303
303
  get children() {
304
- return [m(P, {
304
+ return [v(T, {
305
305
  get when() {
306
306
  return ee();
307
307
  },
308
308
  get children() {
309
309
  var a = oe();
310
- return p(a, m(P, {
310
+ return _(a, v(T, {
311
311
  get when() {
312
312
  return e.checked;
313
313
  },
314
314
  get children() {
315
- return m(Ee, {});
315
+ return v(ye, {});
316
316
  }
317
- })), C(() => I(a, w.checkmark)), a;
317
+ })), I(() => $(a, w.checkmark)), a;
318
318
  }
319
- }), m(P, {
319
+ }), v(T, {
320
320
  get when() {
321
321
  return e.icon;
322
322
  },
323
323
  get children() {
324
324
  var a = oe();
325
- return p(a, () => e.icon), C(() => I(a, w.itemIcon)), a;
325
+ return _(a, () => e.icon), I(() => $(a, w.itemIcon)), a;
326
326
  }
327
327
  }), (() => {
328
328
  var a = re();
329
- return p(a, () => e.label), C(() => I(a, w.label)), a;
330
- })(), m(P, {
329
+ return _(a, () => e.label), I(() => $(a, w.label)), a;
330
+ })(), v(T, {
331
331
  get when() {
332
332
  return e.shortcut;
333
333
  },
334
334
  get children() {
335
335
  var a = oe();
336
- return p(a, () => e.shortcut), C(() => I(a, w.shortcut)), a;
336
+ return _(a, () => e.shortcut), I(() => $(a, w.shortcut)), a;
337
337
  }
338
338
  })];
339
339
  }
340
340
  })
341
341
  })), s;
342
342
  }
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;
343
+ }), null), I((s) => {
344
+ var e = w.panel, m = `${n.anchor.left}px`, a = `${n.anchor.top}px`, U = `calc(100vh - ${n.anchor.top + rt}px)`;
345
+ return e !== s.e && $(i, s.e = e), m !== s.t && ne(i, "left", s.t = m), a !== s.a && ne(i, "top", s.a = a), U !== s.o && ne(i, "max-height", s.o = U), s;
346
346
  }, {
347
347
  e: void 0,
348
348
  t: void 0,
349
349
  a: void 0,
350
350
  o: void 0
351
351
  }), i;
352
- })(), m(P, {
352
+ })(), v(T, {
353
353
  get when() {
354
- return v();
354
+ return N();
355
355
  },
356
356
  get children() {
357
357
  return (() => {
358
- const i = v();
358
+ const i = N();
359
359
  return i ? [(() => {
360
360
  var s = de();
361
361
  return s.$$contextmenu = (e) => {
362
- e.preventDefault(), H();
362
+ e.preventDefault(), V();
363
363
  }, s.$$keydown = (e) => {
364
- F(e, "Escape") && (e.stopPropagation(), H());
364
+ F(e, "Escape") && (e.stopPropagation(), V());
365
365
  }, s.$$click = (e) => {
366
- e.stopPropagation(), H();
367
- }, C(() => I(s, w.favoriteBackdrop)), s;
366
+ e.stopPropagation(), V();
367
+ }, I(() => $(s, w.favoriteBackdrop)), s;
368
368
  })(), (() => {
369
369
  var s = ue();
370
370
  return ie((e) => {
371
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, {
372
+ }, s), _(s, v(q, {
373
373
  type: "button",
374
374
  get class() {
375
375
  return w.row;
@@ -378,23 +378,23 @@ function ve(n) {
378
378
  onClick: E,
379
379
  get children() {
380
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;
381
+ return _(e, (() => {
382
+ var m = O(() => !!i.isPinned);
383
+ return () => m() ? W("Unpin from Favorites") : W("Pin to Favorites");
384
+ })()), I(() => $(e, w.label)), e;
385
385
  }
386
- })), C(() => I(s, w.favoritePopover)), s;
386
+ })), I(() => $(s, w.favoritePopover)), s;
387
387
  })()] : null;
388
388
  })();
389
389
  }
390
- }), m(P, {
390
+ }), v(T, {
391
391
  get when() {
392
392
  return O(() => !!ae())() && u();
393
393
  },
394
394
  get children() {
395
395
  return (() => {
396
396
  const i = ae(), s = u();
397
- return !i || !s ? null : m(ve, {
397
+ return !i || !s ? null : v(ve, {
398
398
  get items() {
399
399
  return i.items;
400
400
  },
@@ -410,7 +410,7 @@ function ve(n) {
410
410
  },
411
411
  onPanelMouseLeave: () => {
412
412
  var e;
413
- b(), (e = n.onPanelMouseLeave) == null || e.call(n);
413
+ g(), (e = n.onPanelMouseLeave) == null || e.call(n);
414
414
  }
415
415
  });
416
416
  })();
@@ -461,18 +461,18 @@ function at(n) {
461
461
  }
462
462
  };
463
463
  }
464
- var ct = /* @__PURE__ */ $("<u>"), ut = /* @__PURE__ */ $("<div role=menubar>");
464
+ var ct = /* @__PURE__ */ M("<u>"), ut = /* @__PURE__ */ M("<div role=menubar>");
465
465
  function Dt(n) {
466
- const [r, l] = R(null), [f, u] = R(!1);
466
+ const [r, l] = D(null), [f, u] = D(!1);
467
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);
468
+ const k = /* @__PURE__ */ new Map(), p = at((t) => d !== void 0 && d.contains(t)), b = R(() => n.groups.filter((t) => t.items.some((o) => o.kind !== "separator"))), x = (t) => (t.mnemonic ?? t.label.charAt(0)).toLowerCase(), N = (t) => {
469
+ const o = x(t), c = t.label.toLowerCase().indexOf(o);
470
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;
471
+ var g = ct();
472
+ return _(g, () => t.label.charAt(c)), I(() => $(g, w.mnemonic)), g;
473
473
  })(), O(() => t.label.slice(c + 1))];
474
- }, X = (t) => {
475
- const o = g.get(t);
474
+ }, H = (t) => {
475
+ const o = k.get(t);
476
476
  if (!o) return null;
477
477
  const c = o.getBoundingClientRect();
478
478
  return {
@@ -480,54 +480,54 @@ function Dt(n) {
480
480
  left: Math.round(c.left),
481
481
  top: Math.round(c.bottom)
482
482
  };
483
- }, S = (t) => {
484
- const o = X(t);
483
+ }, h = (t) => {
484
+ const o = H(t);
485
485
  o && l(o);
486
- }, y = () => {
486
+ }, C = () => {
487
487
  var o, c;
488
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);
490
- }, q = (t) => {
489
+ l(null), p.restore() || lt(t, k), (c = n.onClose) == null || c.call(n);
490
+ }, G = (t) => {
491
491
  const o = r();
492
492
  if ((o == null ? void 0 : o.groupId) === t) {
493
- y();
493
+ C();
494
494
  return;
495
495
  }
496
- S(t);
497
- }, G = (t) => {
496
+ h(t);
497
+ }, Q = (t) => {
498
498
  var o;
499
- r() && ((o = r()) == null ? void 0 : o.groupId) !== t && S(t);
499
+ r() && ((o = r()) == null ? void 0 : o.groupId) !== t && h(t);
500
500
  }, B = (t) => {
501
501
  if (!r()) return;
502
502
  const o = t.target;
503
- o && (d != null && d.contains(o) || o instanceof HTMLElement && o.closest('[role="menu"]') || y());
504
- }, Q = (t) => {
503
+ o && (d != null && d.contains(o) || o instanceof HTMLElement && o.closest('[role="menu"]') || C());
504
+ }, X = (t) => {
505
505
  var o;
506
506
  if (!t.defaultPrevented && t.altKey && !t.ctrlKey && !t.metaKey && !t.shiftKey && t.key.length === 1) {
507
507
  const c = t.target;
508
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) {
509
+ const y = t.key.toLowerCase(), A = b().filter((E) => x(E) === y);
510
+ if (A.length > 0) {
511
511
  t.preventDefault();
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);
512
+ const E = (o = r()) == null ? void 0 : o.groupId, V = A.findIndex((te) => te.id === E), j = A[(V + 1) % A.length];
513
+ j && h(j.id);
514
514
  return;
515
515
  }
516
516
  }
517
517
  }
518
518
  if (r()) {
519
519
  if (F(t, "Escape")) {
520
- t.preventDefault(), y();
520
+ t.preventDefault(), C();
521
521
  return;
522
522
  }
523
523
  if (F(t, "ArrowLeft") || F(t, "ArrowRight")) {
524
- const c = _(), b = c.findIndex((L) => {
524
+ const c = b(), g = c.findIndex((A) => {
525
525
  var E;
526
- return L.id === ((E = r()) == null ? void 0 : E.groupId);
526
+ return A.id === ((E = r()) == null ? void 0 : E.groupId);
527
527
  });
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));
528
+ if (g === -1) return;
529
+ const y = F(t, "ArrowRight") ? (g + 1) % c.length : (g - 1 + c.length) % c.length, S = c[y];
530
+ S && (t.preventDefault(), h(S.id));
531
531
  }
532
532
  }
533
533
  }, ee = (t) => {
@@ -535,49 +535,49 @@ function Dt(n) {
535
535
  }, Y = (t) => {
536
536
  t.altKey || u(!1);
537
537
  };
538
- let D = null;
538
+ let P = null;
539
539
  se(() => {
540
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));
541
+ if (P = t, t.addEventListener("pointerdown", B), t.addEventListener("keydown", X), t.addEventListener("keydown", ee), t.addEventListener("keyup", Y), n.autoOpenFirst) {
542
+ const o = b()[0];
543
+ o && queueMicrotask(() => h(o.id));
544
544
  }
545
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);
546
+ const t = P;
547
+ t && (t.removeEventListener("pointerdown", B), t.removeEventListener("keydown", X), t.removeEventListener("keydown", ee), t.removeEventListener("keyup", Y), P = null), u(!1);
548
548
  });
549
- const z = V(() => {
549
+ const z = R(() => {
550
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);
551
+ return t ? b().find((o) => o.id === t.groupId) ?? null : null;
552
+ }), K = () => {
553
+ const t = [], o = (c, g) => {
554
+ for (const y of c) {
555
+ if (y.kind === "separator") continue;
556
+ if (y.kind === "submenu") {
557
+ const E = y, V = g ? `${g} → ${E.label}` : E.label;
558
+ o(E.items, V);
559
559
  continue;
560
560
  }
561
- const A = x, L = {
562
- ...A,
563
- label: b ? `${b} → ${A.label}` : A.label
561
+ const S = y, A = {
562
+ ...S,
563
+ label: g ? `${g} → ${S.label}` : S.label
564
564
  };
565
- t.push(L);
565
+ t.push(A);
566
566
  }
567
567
  };
568
- for (const c of _())
568
+ for (const c of b())
569
569
  o(c.items, c.label);
570
570
  return t;
571
571
  };
572
572
  return [(() => {
573
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, {
574
+ return t.$$focusout = (o) => p.forget(o.relatedTarget), t.$$focusin = (o) => p.remember(o.relatedTarget), ie((o) => d = o, t), _(t, v(he, {
575
575
  get each() {
576
- return _();
576
+ return b();
577
577
  },
578
- children: (o) => m(U, {
578
+ children: (o) => v(q, {
579
579
  ref: (c) => {
580
- c ? g.set(o.id, c) : g.delete(o.id);
580
+ c ? k.set(o.id, c) : k.delete(o.id);
581
581
  },
582
582
  type: "button",
583
583
  get class() {
@@ -591,22 +591,22 @@ function Dt(n) {
591
591
  return ((c = r()) == null ? void 0 : c.groupId) === o.id;
592
592
  },
593
593
  get "aria-keyshortcuts"() {
594
- return `Alt+${M(o)}`;
594
+ return `Alt+${x(o)}`;
595
595
  },
596
- onClick: () => q(o.id),
597
- onMouseEnter: () => G(o.id),
596
+ onClick: () => G(o.id),
597
+ onMouseEnter: () => Q(o.id),
598
598
  get children() {
599
- return v(o);
599
+ return N(o);
600
600
  }
601
601
  })
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;
602
+ })), I((o) => {
603
+ var c = `${w.bar} ${n.class ?? ""}`, g = f() ? "true" : void 0;
604
+ return c !== o.e && $(t, o.e = c), g !== o.t && ke(t, "data-show-mnemonics", o.t = g), o;
605
605
  }, {
606
606
  e: void 0,
607
607
  t: void 0
608
608
  }), t;
609
- })(), m(P, {
609
+ })(), v(T, {
610
610
  get when() {
611
611
  return O(() => !!z())() && r();
612
612
  },
@@ -615,7 +615,7 @@ function Dt(n) {
615
615
  const t = z(), o = r();
616
616
  if (!t || !o) return null;
617
617
  const c = t.searchScope ?? "none";
618
- return m(ve, _e({
618
+ return v(ve, pe({
619
619
  get items() {
620
620
  return t.items;
621
621
  },
@@ -625,10 +625,10 @@ function Dt(n) {
625
625
  top: o.top
626
626
  };
627
627
  },
628
- onClose: y,
628
+ onClose: C,
629
629
  searchScope: c
630
630
  }, c === "global" ? {
631
- globalEntries: N
631
+ globalEntries: K
632
632
  } : {}));
633
633
  })();
634
634
  }
@@ -640,67 +640,68 @@ const dt = "vk_windowControls_UUBWX", ft = "vk_windowControlButton_ohJen", ht =
640
640
  windowControlButton: ft,
641
641
  windowControlClose: ht
642
642
  };
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>');
643
+ var mt = /* @__PURE__ */ M('<svg width=10 height=1 viewBox="0 0 10 1"><rect width=10 height=1 fill=currentColor>'), vt = /* @__PURE__ */ M('<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__ */ M('<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__ */ M("<div>"), bt = /* @__PURE__ */ M('<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
644
  function kt(n) {
645
645
  var l;
646
646
  const r = ((l = n.navigator) == null ? void 0 : l.userAgent) ?? "";
647
647
  return /Mac OS X|Macintosh/i.test(r) ? "darwin" : /Windows/i.test(r) ? "win32" : "linux";
648
648
  }
649
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);
650
+ const r = R(() => n.isMaximized), l = R(() => n.beforeClose), f = Ce(), [u, d] = D(!1), p = (n.platform ?? kt(f.window)) === "darwin", b = async () => {
651
+ var h;
652
+ d(await ((h = r()) == null ? void 0 : h()) ?? !1);
653
653
  };
654
654
  se(() => {
655
- g(), r.window.addEventListener("resize", g);
655
+ b(), f.window.addEventListener("resize", b);
656
656
  }), le(() => {
657
- r.window.removeEventListener("resize", g);
657
+ f.window.removeEventListener("resize", b);
658
658
  });
659
- const k = () => {
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();
665
- }, M = () => {
666
- var v;
667
- n.beforeClose && !n.beforeClose() || (v = n.onClose) == null || v.call(n);
659
+ const x = () => {
660
+ var h;
661
+ return void ((h = n.onMinimize) == null ? void 0 : h.call(n));
662
+ }, N = async () => {
663
+ var h;
664
+ await ((h = n.onToggleMaximize) == null ? void 0 : h.call(n)), await b();
665
+ }, H = () => {
666
+ var C;
667
+ const h = l();
668
+ h && !h() || (C = n.onClose) == null || C.call(n);
668
669
  };
669
- return m(P, {
670
- when: !d,
670
+ return v(T, {
671
+ when: !p,
671
672
  get children() {
672
- var v = gt();
673
- return p(v, m(U, {
673
+ var h = gt();
674
+ return _(h, v(q, {
674
675
  type: "button",
675
676
  get class() {
676
677
  return Z.windowControlButton;
677
678
  },
678
- onClick: k,
679
+ onClick: x,
679
680
  get "aria-label"() {
680
- return T("Minimize");
681
+ return W("Minimize");
681
682
  },
682
683
  get title() {
683
- return T("Minimize");
684
+ return W("Minimize");
684
685
  },
685
686
  get children() {
686
687
  return mt();
687
688
  }
688
- }), null), p(v, m(U, {
689
+ }), null), _(h, v(q, {
689
690
  type: "button",
690
691
  get class() {
691
692
  return Z.windowControlButton;
692
693
  },
693
- onClick: _,
694
+ onClick: N,
694
695
  get "aria-label"() {
695
- return O(() => !!l())() ? T("Restore") : T("Maximize");
696
+ return O(() => !!u())() ? W("Restore") : W("Maximize");
696
697
  },
697
698
  get title() {
698
- return O(() => !!l())() ? T("Restore") : T("Maximize");
699
+ return O(() => !!u())() ? W("Restore") : W("Maximize");
699
700
  },
700
701
  get children() {
701
- return m(P, {
702
+ return v(T, {
702
703
  get when() {
703
- return !l();
704
+ return !u();
704
705
  },
705
706
  get fallback() {
706
707
  return bt();
@@ -710,22 +711,22 @@ function Rt(n = {}) {
710
711
  }
711
712
  });
712
713
  }
713
- }), null), p(v, m(U, {
714
+ }), null), _(h, v(q, {
714
715
  type: "button",
715
716
  get class() {
716
717
  return `${Z.windowControlButton} ${Z.windowControlClose}`;
717
718
  },
718
- onClick: M,
719
+ onClick: H,
719
720
  get "aria-label"() {
720
- return T("Close");
721
+ return W("Close");
721
722
  },
722
723
  get title() {
723
- return T("Close");
724
+ return W("Close");
724
725
  },
725
726
  get children() {
726
727
  return wt();
727
728
  }
728
- }), null), C(() => I(v, Z.windowControls)), v;
729
+ }), null), I(() => $(h, Z.windowControls)), h;
729
730
  }
730
731
  });
731
732
  }
@@ -737,17 +738,17 @@ const Ft = {
737
738
  };
738
739
  class Ot {
739
740
  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);
741
+ L(this, "hosts", []);
742
+ L(this, "ownerWindow");
743
+ L(this, "setOwnerWindow");
744
+ L(this, "nativeIds", /* @__PURE__ */ new WeakMap());
745
+ L(this, "focusSubscription");
746
+ L(this, "pendingRefresh");
747
+ L(this, "focusedNativeWindowId", null);
748
+ L(this, "mainNativeWindowId", 0);
749
+ L(this, "nativeFocusRevision", 0);
749
750
  this.source = r, this.log = l;
750
- const [f, u] = R(null);
751
+ const [f, u] = D(null);
751
752
  this.ownerWindow = f, this.setOwnerWindow = u, this.focusSubscription = r.onFocusChanged((d) => {
752
753
  d.revision < this.nativeFocusRevision || (this.nativeFocusRevision = d.revision, this.focusedNativeWindowId = d.focusedWindowId, this.scheduleRefresh());
753
754
  }), r.getFocusState().then(