@vokril/ui-solid 0.13.0 → 0.18.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 (585) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +110 -31
  3. package/dist/{AttributeGrid-Bg88JYZI.cjs → AttributeGrid-7cLOWtPn.cjs} +1 -1
  4. package/dist/{AttributeGrid-BypjAajJ.js → AttributeGrid-CVyqzT7-.js} +5 -5
  5. package/dist/{Button-Db6wMY-3.js → Button-BiKPB3cH.js} +2 -2
  6. package/dist/{Button-d9jJBibg.cjs → Button-Nx7byQZc.cjs} +1 -1
  7. package/dist/CommandPalette-BH7c1cbU.js +3968 -0
  8. package/dist/CommandPalette-Dfb4V-Hb.cjs +2 -0
  9. package/dist/{CopyButton-C93PFyYK.js → CopyButton-BF7L1TCO.js} +1 -1
  10. package/dist/{CopyButton-CXaZRU7b.cjs → CopyButton-BtgGbiy9.cjs} +1 -1
  11. package/dist/DateRangePicker-Ce2tTbJ4.cjs +9 -0
  12. package/dist/{DateRangePicker-D-5rg3h1.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-DPT-QfsC.cjs → IconPicker-4bdAeGxS.cjs} +1 -1
  20. package/dist/{IconPicker-C3ZwWkB1.js → IconPicker-Df6uIUpJ.js} +4 -4
  21. package/dist/{Input-Ca8fLm_s.cjs → Input-CZruORyy.cjs} +1 -1
  22. package/dist/{Input-gq8EcQao.js → Input-DkPhsdfk.js} +2 -2
  23. package/dist/Modal-CQG8l4x7.cjs +1 -0
  24. package/dist/{Modal-C4l_yuY9.js → Modal-CUPe98-o.js} +5 -5
  25. package/dist/PageSkeleton-C3mo6UGh.cjs +30 -0
  26. package/dist/{PageSkeleton-C95fXUUk.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-BpOD2_A-.js → SearchableSelect-C01brsF0.js} +5 -5
  30. package/dist/{SearchableSelect-MN5azo9r.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-BgDx1cPX.js → Stepper-38IAEOyT.js} +3 -3
  34. package/dist/{Stepper-D7rXGxdg.cjs → Stepper-CtaTpnQu.cjs} +1 -1
  35. package/dist/{Textarea-BueHsjOk.js → Textarea-B5QqqKnI.js} +1 -1
  36. package/dist/{Textarea-BltpSavs.cjs → Textarea-CeAGf08O.cjs} +1 -1
  37. package/dist/{TimeSeriesChart-C3o7NZPh.js → TimeSeriesChart-ByKG4E1G.js} +2 -2
  38. package/dist/{TimeSeriesChart-DhYtrAgX.cjs → TimeSeriesChart-_NOs_Job.cjs} +1 -1
  39. package/dist/ToggleButton-Bz3zAtec.cjs +1 -0
  40. package/dist/{ToggleButton-DCP7f6Uo.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 +8 -4
  58. package/dist/_internal/app/settings/secrets/notificationSecrets.d.ts +8 -4
  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/errors/diagnosticReport.d.cts +3 -1
  68. package/dist/_internal/platform/errors/diagnosticReport.d.ts +3 -1
  69. package/dist/_internal/platform/logging/consoleLogger.d.cts +7 -0
  70. package/dist/_internal/platform/logging/consoleLogger.d.ts +7 -0
  71. package/dist/_internal/platform/settings/registry/defineSettings.d.cts +19 -8
  72. package/dist/_internal/platform/settings/registry/defineSettings.d.ts +19 -8
  73. package/dist/_internal/platform/settings/registry/stateDbStore.d.cts +23 -15
  74. package/dist/_internal/platform/settings/registry/stateDbStore.d.ts +23 -15
  75. package/dist/_internal/platform/settings/settingsTypes.d.cts +5 -0
  76. package/dist/_internal/platform/settings/settingsTypes.d.ts +5 -0
  77. package/dist/_internal/platform/vendorErrors/index.d.cts +7 -17
  78. package/dist/_internal/platform/vendorErrors/index.d.ts +7 -17
  79. package/dist/_internal/platform/window/displayOwner.d.cts +35 -14
  80. package/dist/_internal/platform/window/displayOwner.d.ts +35 -14
  81. package/dist/a11y/index.cjs +1 -1
  82. package/dist/a11y/index.js +1 -1
  83. package/dist/actions-DtaFGwh2.cjs +1 -0
  84. package/dist/actions-wwAHs3ZU.js +16 -0
  85. package/dist/{server/appThemeDerivation-BiCyiSuz.js → appThemeDerivation-B7-DjMIM.js} +181 -184
  86. package/dist/appThemeDerivation-NS3Vws8q.cjs +1 -0
  87. package/dist/async/createGuardedListLoader.d.cts +3 -0
  88. package/dist/async/createGuardedListLoader.d.ts +3 -0
  89. package/dist/charts/index.cjs +1 -1
  90. package/dist/charts/index.js +1 -1
  91. package/dist/createDialogShellFocus-BBFu3Z_O.js +282 -0
  92. package/dist/createDialogShellFocus-CxRqhbRN.cjs +1 -0
  93. package/dist/createResizableSidebar-CfFxQUny.js +449 -0
  94. package/dist/createResizableSidebar-q7aC7SAO.cjs +1 -0
  95. package/dist/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  96. package/dist/{server/createVirtualScroller-DBvqT0UW.js → createVirtualScroller-vu-l4rVv.js} +7 -7
  97. package/dist/defineSettings-D0CSMcyy.cjs +1 -0
  98. package/dist/defineSettings-Di1sG81q.js +407 -0
  99. package/dist/descriptor-CaHgh9N_.cjs +1 -0
  100. package/dist/{descriptor-CrCl515S.js → descriptor-eGtcBtpI.js} +5 -5
  101. package/dist/desktop/index.cjs +1 -1
  102. package/dist/desktop/index.js +500 -426
  103. package/dist/dialogFocusRestore-BrALT8Ew.js +35 -0
  104. package/dist/dialogFocusRestore-CcEsB50v.cjs +1 -0
  105. package/dist/electronBridge-BK92fycw.js +235 -0
  106. package/dist/electronBridge-cT0xww92.cjs +1 -0
  107. package/dist/errorHandler-BvPGW-Nm.js +373 -0
  108. package/dist/errorHandler-DoDAPpv2.cjs +3 -0
  109. package/dist/feedback/Loader.d.cts +6 -1
  110. package/dist/feedback/Loader.d.ts +6 -1
  111. package/dist/feedback/createPreference.d.cts +4 -1
  112. package/dist/feedback/createPreference.d.ts +4 -1
  113. package/dist/feedback/guidedInstallOutcome.d.cts +15 -2
  114. package/dist/feedback/guidedInstallOutcome.d.ts +15 -2
  115. package/dist/feedback/index.cjs +1 -1
  116. package/dist/feedback/index.js +37 -38
  117. package/dist/feedback/readFailureText.d.cts +20 -1
  118. package/dist/feedback/readFailureText.d.ts +20 -1
  119. package/dist/focusModality-BISb6-yg.cjs +1 -0
  120. package/dist/focusModality-FoLPWF-_.js +135 -0
  121. package/dist/forms/index.cjs +1 -1
  122. package/dist/forms/index.js +9 -9
  123. package/dist/grid/index.cjs +1 -1
  124. package/dist/grid/index.js +1 -1
  125. package/dist/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  126. package/dist/{server/headerIconOverrides-B7TQUBmD.js → headerIconOverrides-Dh2PaOcO.js} +1 -1
  127. package/dist/host/index.cjs +1 -1
  128. package/dist/host/index.d.cts +14 -16
  129. package/dist/host/index.d.ts +14 -16
  130. package/dist/host/index.js +53 -90
  131. package/dist/host/kitHost.d.cts +42 -0
  132. package/dist/host/kitHost.d.ts +42 -0
  133. package/dist/host/window.d.cts +3 -11
  134. package/dist/host/window.d.ts +3 -11
  135. package/dist/i18n/index.cjs +1 -1
  136. package/dist/i18n/index.js +1 -1
  137. package/dist/{server/i18n-D9k9xwuD.js → i18n-DW9kcu0G.js} +180 -178
  138. package/dist/i18n-DZ0JlZal.cjs +4 -0
  139. package/dist/index.cjs +1 -1
  140. package/dist/index.d.cts +1 -1
  141. package/dist/index.d.ts +1 -1
  142. package/dist/index.js +665 -738
  143. package/dist/isOneOf-9EXOSYJu.cjs +1 -0
  144. package/dist/isOneOf-Dtomuazg.js +6 -0
  145. package/dist/{keys-Bfgdfak_.js → keys-B2nlkpqc.js} +6 -9
  146. package/dist/keys-GMxY2wcl.cjs +1 -0
  147. package/dist/layout/createResizableSidebar.d.cts +14 -0
  148. package/dist/layout/createResizableSidebar.d.ts +14 -0
  149. package/dist/layout/index.cjs +1 -1
  150. package/dist/layout/index.js +3 -3
  151. package/dist/layout/sidebarWidthClamp.d.cts +1 -1
  152. package/dist/layout/sidebarWidthClamp.d.ts +1 -1
  153. package/dist/mainRealmDom-C12lr9lm.js +171 -0
  154. package/dist/mainRealmDom-S6teqEr4.cjs +1 -0
  155. package/dist/navigation/index.cjs +1 -1
  156. package/dist/navigation/index.js +1 -1
  157. package/dist/notifications/NotificationHost.d.cts +7 -1
  158. package/dist/notifications/NotificationHost.d.ts +7 -1
  159. package/dist/notifications/NotificationItem.d.cts +48 -15
  160. package/dist/notifications/NotificationItem.d.ts +48 -15
  161. package/dist/notifications/catalogAdapter.d.cts +28 -6
  162. package/dist/notifications/catalogAdapter.d.ts +28 -6
  163. package/dist/notifications/createNotificationPreviewRuntime.d.cts +21 -3
  164. package/dist/notifications/createNotificationPreviewRuntime.d.ts +21 -3
  165. package/dist/notifications/customSoundCache.d.cts +24 -24
  166. package/dist/notifications/customSoundCache.d.ts +24 -24
  167. package/dist/notifications/emailDigest.d.cts +34 -16
  168. package/dist/notifications/emailDigest.d.ts +34 -16
  169. package/dist/notifications/errorActionButtons.d.cts +18 -1
  170. package/dist/notifications/errorActionButtons.d.ts +18 -1
  171. package/dist/notifications/fireNotification.d.cts +27 -17
  172. package/dist/notifications/fireNotification.d.ts +27 -17
  173. package/dist/notifications/index.cjs +1 -1
  174. package/dist/notifications/index.d.cts +6 -12
  175. package/dist/notifications/index.d.ts +6 -12
  176. package/dist/notifications/index.js +64 -104
  177. package/dist/notifications/nativeEngine.d.cts +18 -15
  178. package/dist/notifications/nativeEngine.d.ts +18 -15
  179. package/dist/notifications/notificationAnalytics.d.cts +11 -6
  180. package/dist/notifications/notificationAnalytics.d.ts +11 -6
  181. package/dist/notifications/notificationAudio.d.cts +30 -23
  182. package/dist/notifications/notificationAudio.d.ts +30 -23
  183. package/dist/notifications/notificationCardServices.d.cts +23 -0
  184. package/dist/notifications/notificationCardServices.d.ts +23 -0
  185. package/dist/notifications/notificationOverlayChannel.d.cts +4 -4
  186. package/dist/notifications/notificationOverlayChannel.d.ts +4 -4
  187. package/dist/notifications/notificationOverlaySync.d.cts +7 -2
  188. package/dist/notifications/notificationOverlaySync.d.ts +7 -2
  189. package/dist/notifications/notificationService.d.cts +101 -0
  190. package/dist/notifications/notificationService.d.ts +101 -0
  191. package/dist/notifications/notificationTimeline.d.cts +47 -49
  192. package/dist/notifications/notificationTimeline.d.ts +47 -49
  193. package/dist/notifications/notifications.notifications.d.cts +0 -4
  194. package/dist/notifications/notifications.notifications.d.ts +0 -4
  195. package/dist/notifications/toast.d.cts +24 -28
  196. package/dist/notifications/toast.d.ts +24 -28
  197. package/dist/notifications/webhookDelivery.d.cts +12 -17
  198. package/dist/notifications/webhookDelivery.d.ts +12 -17
  199. package/dist/overlay/ConfirmDialog.d.cts +16 -17
  200. package/dist/overlay/ConfirmDialog.d.ts +16 -17
  201. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.cts +15 -14
  202. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.ts +15 -14
  203. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.cts +1 -3
  204. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.ts +1 -3
  205. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.cts +1 -1
  206. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.ts +1 -1
  207. package/dist/overlay/dialogShellKeyIntent.d.cts +3 -3
  208. package/dist/overlay/dialogShellKeyIntent.d.ts +3 -3
  209. package/dist/overlay/index.cjs +1 -1
  210. package/dist/overlay/index.d.cts +2 -3
  211. package/dist/overlay/index.d.ts +2 -3
  212. package/dist/overlay/index.js +114 -119
  213. package/dist/pageTourState-BcBF8w89.js +516 -0
  214. package/dist/pageTourState-CrbEU7QW.cjs +5 -0
  215. package/dist/server/{AttributeGrid-UJtHTip2.js → AttributeGrid-B2s_rp00.js} +3 -3
  216. package/dist/server/{AttributeGrid-CyMsR4GC.cjs → AttributeGrid-C7aWbIe5.cjs} +1 -1
  217. package/dist/server/{Button-BesBg6eW.js → Button-Ck03cbUs.js} +1 -1
  218. package/dist/server/{Button-PZulLru4.cjs → Button-DWFMF5y0.cjs} +1 -1
  219. package/dist/server/CommandPalette-DwlWZI1s.js +3224 -0
  220. package/dist/server/CommandPalette-VewDIghb.cjs +1 -0
  221. package/dist/server/{CopyButton-D_sN2Ggp.cjs → CopyButton-BOmAUQD4.cjs} +1 -1
  222. package/dist/server/{CopyButton-I5xsXV07.js → CopyButton-UvtFwOtA.js} +1 -1
  223. package/dist/server/DateRangePicker-BJteKzOY.cjs +9 -0
  224. package/dist/server/{DateRangePicker-DGUl2aE3.js → DateRangePicker-Cr58DczM.js} +158 -143
  225. package/dist/server/GuidedTour-C4msn-Ag.js +400 -0
  226. package/dist/server/GuidedTour-Rlsp8rOe.cjs +1 -0
  227. package/dist/server/HostPortal-B9Tzk_uN.cjs +1 -0
  228. package/dist/server/HostPortal-X1iw719T.js +33 -0
  229. package/dist/server/HostWindowContext-B2m0bVra.js +32 -0
  230. package/dist/server/HostWindowContext-_VZCt7xE.cjs +1 -0
  231. package/dist/server/{IconPicker-BlD0VBca.cjs → IconPicker-9DfOxql6.cjs} +1 -1
  232. package/dist/server/{IconPicker-o8hUxjYU.js → IconPicker-N0wub1Aj.js} +4 -4
  233. package/dist/server/Modal-D__GTo-n.cjs +1 -0
  234. package/dist/server/{Modal-DmF6CwfY.js → Modal-DeQjfpkG.js} +3 -3
  235. package/dist/server/{PageSkeleton-BigztY5i.js → PageSkeleton-C41pXOcr.js} +460 -458
  236. package/dist/server/PageSkeleton-D4i-UcnI.cjs +30 -0
  237. package/dist/server/{SearchableSelect-Dn-cssWx.js → SearchableSelect-CEcuBnge.js} +2 -2
  238. package/dist/server/{SearchableSelect-R0Dwz9rz.cjs → SearchableSelect-Ca9g8ztu.cjs} +1 -1
  239. package/dist/server/StatusBarNotificationBell-BotYny7q.cjs +49 -0
  240. package/dist/server/StatusBarNotificationBell-DyEQF2W7.js +13968 -0
  241. package/dist/server/{Stepper-dBm8YaCw.cjs → Stepper--pusyxso.cjs} +1 -1
  242. package/dist/server/{Stepper-BaQ6Kexj.js → Stepper-B_eL85hK.js} +1 -1
  243. package/dist/server/{TimeSeriesChart-BbbfDyeA.js → TimeSeriesChart-aSHquoBv.js} +1 -1
  244. package/dist/server/{TimeSeriesChart-qPgMkkaW.cjs → TimeSeriesChart-nZeB5jtN.cjs} +1 -1
  245. package/dist/server/ToggleButton-57_0SA-V.cjs +1 -0
  246. package/dist/server/{ToggleButton-C0_QpslP.js → ToggleButton-DjlWwgLJ.js} +4 -4
  247. package/dist/server/VpTrash-D49oUUJh.cjs +1 -0
  248. package/dist/server/VpTrash-Dlq8o6Uv.js +298 -0
  249. package/dist/server/a11y/index.cjs +1 -1
  250. package/dist/server/a11y/index.js +1 -1
  251. package/dist/server/actions-DtaFGwh2.cjs +1 -0
  252. package/dist/server/actions-wwAHs3ZU.js +16 -0
  253. package/dist/{appThemeDerivation-BiCyiSuz.js → server/appThemeDerivation-B7-DjMIM.js} +181 -184
  254. package/dist/server/appThemeDerivation-NS3Vws8q.cjs +1 -0
  255. package/dist/server/charts/index.cjs +1 -1
  256. package/dist/server/charts/index.js +1 -1
  257. package/dist/server/{format-CYCi8g4r.js → createDialogShellFocus-DNjzmcGj.js} +110 -126
  258. package/dist/server/createDialogShellFocus-PRRfMli-.cjs +1 -0
  259. package/dist/server/createResizableSidebar-CZtGmUnA.cjs +1 -0
  260. package/dist/server/createResizableSidebar-DdWdAB9l.js +287 -0
  261. package/dist/server/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  262. package/dist/{createVirtualScroller-DBvqT0UW.js → server/createVirtualScroller-vu-l4rVv.js} +7 -7
  263. package/dist/server/defineSettings-D0CSMcyy.cjs +1 -0
  264. package/dist/server/defineSettings-Di1sG81q.js +407 -0
  265. package/dist/server/descriptor-CEGvvJZh.cjs +1 -0
  266. package/dist/server/{descriptor-DtZDXBe6.js → descriptor-GLoKPx6x.js} +4 -4
  267. package/dist/server/desktop/index.cjs +1 -1
  268. package/dist/server/desktop/index.js +389 -315
  269. package/dist/server/dialogFocusRestore-BrALT8Ew.js +35 -0
  270. package/dist/server/dialogFocusRestore-CcEsB50v.cjs +1 -0
  271. package/dist/server/electronBridge-BK92fycw.js +235 -0
  272. package/dist/server/electronBridge-cT0xww92.cjs +1 -0
  273. package/dist/server/errorHandler-BvPGW-Nm.js +373 -0
  274. package/dist/server/errorHandler-DoDAPpv2.cjs +3 -0
  275. package/dist/server/feedback/index.cjs +1 -1
  276. package/dist/server/feedback/index.js +37 -38
  277. package/dist/server/focusModality-D-nxv8Er.cjs +1 -0
  278. package/dist/server/{focusModality-BCX5GH0P.js → focusModality-nWNVX3JG.js} +41 -41
  279. package/dist/server/forms/index.cjs +1 -1
  280. package/dist/server/forms/index.js +7 -7
  281. package/dist/server/grid/index.cjs +1 -1
  282. package/dist/server/grid/index.js +1 -1
  283. package/dist/server/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  284. package/dist/{headerIconOverrides-B7TQUBmD.js → server/headerIconOverrides-Dh2PaOcO.js} +1 -1
  285. package/dist/server/host/index.cjs +1 -1
  286. package/dist/server/host/index.js +53 -90
  287. package/dist/server/i18n/index.cjs +1 -1
  288. package/dist/server/i18n/index.js +1 -1
  289. package/dist/{i18n-D9k9xwuD.js → server/i18n-DW9kcu0G.js} +180 -178
  290. package/dist/server/i18n-DZ0JlZal.cjs +4 -0
  291. package/dist/server/{index-B4epvfiq.js → index-BNYr6EIW.js} +89 -90
  292. package/dist/server/index-Cqod09d_.cjs +1 -0
  293. package/dist/server/index.cjs +1 -1
  294. package/dist/server/index.js +825 -898
  295. package/dist/server/layout/index.cjs +1 -1
  296. package/dist/server/layout/index.js +3 -3
  297. package/dist/server/mainRealmDom-DPNaDWtw.js +121 -0
  298. package/dist/server/mainRealmDom-DwZVMPnO.cjs +1 -0
  299. package/dist/server/navigation/index.cjs +1 -1
  300. package/dist/server/navigation/index.js +1 -1
  301. package/dist/server/notifications/index.cjs +1 -1
  302. package/dist/server/notifications/index.js +63 -103
  303. package/dist/server/overlay/index.cjs +1 -1
  304. package/dist/server/overlay/index.js +115 -120
  305. package/dist/server/pageTourState-BcBF8w89.js +516 -0
  306. package/dist/server/pageTourState-CrbEU7QW.cjs +5 -0
  307. package/dist/server/settings/index.cjs +1 -1
  308. package/dist/server/settings/index.js +23 -24
  309. package/dist/server/stateDbStore-CThsVch-.cjs +1 -0
  310. package/dist/server/stateDbStore-DHZFUIEt.js +57 -0
  311. package/dist/server/tokens/index.cjs +1 -1
  312. package/dist/server/tokens/index.js +19 -20
  313. package/dist/server/tree/index.cjs +1 -1
  314. package/dist/server/tree/index.js +1 -1
  315. package/dist/server/useListCommands-BO_XrRHj.js +38 -0
  316. package/dist/server/useListCommands-Dnm4ktP1.cjs +1 -0
  317. package/dist/server/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  318. package/dist/server/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
  319. package/dist/server/window-CUK6x8Pj.js +36 -0
  320. package/dist/server/window-_BfSgFGO.cjs +1 -0
  321. package/dist/server/windowRegistry-CxXtP-iY.cjs +1 -0
  322. package/dist/server/windowRegistry-DeGmXt6W.js +20 -0
  323. package/dist/settings/index.cjs +1 -1
  324. package/dist/settings/index.d.cts +1 -1
  325. package/dist/settings/index.d.ts +1 -1
  326. package/dist/settings/index.js +23 -24
  327. package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +3 -10
  328. package/dist/solid/_internal/app/keybindings/context/useListCommands.js +1 -2
  329. package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +8 -1
  330. package/dist/solid/_internal/app/menu/menuFavorites.js +45 -40
  331. package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +22 -22
  332. package/dist/solid/_internal/app/onboarding/pageTourState.js +94 -92
  333. package/dist/solid/_internal/app/platform/electronBridge.js +15 -49
  334. package/dist/solid/_internal/app/settings/secrets/notificationSecrets.js +0 -10
  335. package/dist/solid/_internal/app/windows/window/HostWindowContext.jsx +4 -13
  336. package/dist/solid/_internal/contract/catalogNotify.js +1 -24
  337. package/dist/solid/_internal/contract/hostErrorText.js +1 -14
  338. package/dist/solid/_internal/contract/notificationCatalog.js +1 -1
  339. package/dist/solid/_internal/platform/errors/diagnosticReport.js +2 -3
  340. package/dist/solid/_internal/platform/logging/consoleLogger.js +6 -0
  341. package/dist/solid/_internal/platform/settings/registry/defineSettings.js +48 -20
  342. package/dist/solid/_internal/platform/settings/registry/stateDbStore.js +29 -19
  343. package/dist/solid/_internal/platform/vendorErrors/index.js +4 -17
  344. package/dist/solid/_internal/platform/window/displayOwner.js +105 -114
  345. package/dist/solid/a11y/AriaAnnouncer.jsx +2 -3
  346. package/dist/solid/async/createGuardedListLoader.js +1 -1
  347. package/dist/solid/desktop/menu/MenuPanel.jsx +7 -7
  348. package/dist/solid/feedback/ErrorBoundary.jsx +7 -4
  349. package/dist/solid/feedback/Loader.jsx +1 -2
  350. package/dist/solid/feedback/createPreference.js +3 -2
  351. package/dist/solid/feedback/guidedInstallOutcome.js +1 -2
  352. package/dist/solid/feedback/preference.notifications.js +1 -2
  353. package/dist/solid/feedback/readFailureText.js +1 -2
  354. package/dist/solid/host/index.js +8 -16
  355. package/dist/solid/host/window.js +15 -22
  356. package/dist/solid/i18n/i18n.js +5 -6
  357. package/dist/solid/index.js +0 -1
  358. package/dist/solid/layout/createResizableSidebar.js +15 -23
  359. package/dist/solid/notifications/NotificationHost.jsx +21 -29
  360. package/dist/solid/notifications/NotificationItem.jsx +28 -104
  361. package/dist/solid/notifications/NotificationPanel.jsx +33 -44
  362. package/dist/solid/notifications/NotificationsCenter.jsx +22 -20
  363. package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
  364. package/dist/solid/notifications/catalogAdapter.js +61 -62
  365. package/dist/solid/notifications/createNotificationPreviewRuntime.js +29 -19
  366. package/dist/solid/notifications/customSoundCache.js +26 -21
  367. package/dist/solid/notifications/emailDigest.js +74 -86
  368. package/dist/solid/notifications/errorActionButtons.js +6 -11
  369. package/dist/solid/notifications/fireNotification.js +14 -19
  370. package/dist/solid/notifications/index.js +3 -12
  371. package/dist/solid/notifications/nativeEngine.js +6 -19
  372. package/dist/solid/notifications/notificationAnalytics.js +32 -38
  373. package/dist/solid/notifications/notificationAudio.js +77 -74
  374. package/dist/solid/notifications/notificationCardServices.js +34 -0
  375. package/dist/solid/notifications/notificationOverlayChannel.js +3 -3
  376. package/dist/solid/notifications/notificationOverlaySync.js +18 -23
  377. package/dist/solid/notifications/notificationService.js +135 -0
  378. package/dist/solid/notifications/notificationTimeline.js +117 -124
  379. package/dist/solid/notifications/notifications.notifications.js +3 -22
  380. package/dist/solid/notifications/toast.js +168 -213
  381. package/dist/solid/notifications/webhookDelivery.js +27 -53
  382. package/dist/solid/overlay/ConfirmDialog.jsx +14 -58
  383. package/dist/solid/overlay/command-palette/CommandPalette.jsx +3 -1
  384. package/dist/solid/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.js +26 -25
  385. package/dist/solid/overlay/command-palette/unifiedSearch/settingsSearchContributor.js +2 -7
  386. package/dist/solid/overlay/index.js +0 -3
  387. package/dist/solid/settings/index.js +1 -1
  388. package/dist/solid/tokens/index.js +1 -1
  389. package/dist/solid/tokens/palette/themeRegistry.js +20 -22
  390. package/dist/stateDbStore-CThsVch-.cjs +1 -0
  391. package/dist/stateDbStore-DHZFUIEt.js +57 -0
  392. package/dist/style.css +1 -1
  393. package/dist/tokens/index.cjs +1 -1
  394. package/dist/tokens/index.d.cts +1 -1
  395. package/dist/tokens/index.d.ts +1 -1
  396. package/dist/tokens/index.js +19 -20
  397. package/dist/tokens/palette/themeRegistry.d.cts +17 -22
  398. package/dist/tokens/palette/themeRegistry.d.ts +17 -22
  399. package/dist/{tooltipCoordinator-Zim5pWzk.js → tooltipCoordinator-BzxEyKhA.js} +2 -2
  400. package/dist/tooltipCoordinator-DslqMlsI.cjs +1 -0
  401. package/dist/tree/index.cjs +1 -1
  402. package/dist/tree/index.js +1 -1
  403. package/dist/ui.css +1 -1
  404. package/dist/{useFloatingDropdown-CfPEYRut.js → useFloatingDropdown-BN4J092P.js} +1 -1
  405. package/dist/{useFloatingDropdown-DcU7ozDg.cjs → useFloatingDropdown-D9OvEFAp.cjs} +1 -1
  406. package/dist/useListCommands-BO_XrRHj.js +38 -0
  407. package/dist/useListCommands-Dnm4ktP1.cjs +1 -0
  408. package/dist/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  409. package/dist/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
  410. package/dist/window-CUK6x8Pj.js +36 -0
  411. package/dist/window-_BfSgFGO.cjs +1 -0
  412. package/dist/windowRegistry-CxXtP-iY.cjs +1 -0
  413. package/dist/windowRegistry-DeGmXt6W.js +20 -0
  414. package/package.json +1 -1
  415. package/dist/CommandPalette-DeEImZ8D.cjs +0 -2
  416. package/dist/CommandPalette-yqvM9AuU.js +0 -3897
  417. package/dist/DateRangePicker-7t4JKCp1.cjs +0 -9
  418. package/dist/GuidedTour-C_Lxe1t_.cjs +0 -21
  419. package/dist/GuidedTour-lsljVkPL.js +0 -11216
  420. package/dist/HostWindowContext-DqDeJmBP.cjs +0 -1
  421. package/dist/HostWindowContext-KL4U1qUv.js +0 -40
  422. package/dist/Modal-CJhd27dM.cjs +0 -1
  423. package/dist/PageSkeleton-SYSL4Adl.cjs +0 -30
  424. package/dist/Progress-B5YmNeyU.js +0 -56
  425. package/dist/Progress-BNy0wsJl.cjs +0 -1
  426. package/dist/StatusBarNotificationBell-B1bvE_SO.js +0 -2140
  427. package/dist/StatusBarNotificationBell-Cqo6cZbO.cjs +0 -4
  428. package/dist/ToggleButton-BmwDfsn4.cjs +0 -1
  429. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.cts +0 -20
  430. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.ts +0 -20
  431. package/dist/_internal/app/settings/theme/appThemeChange.d.cts +0 -20
  432. package/dist/_internal/app/settings/theme/appThemeChange.d.ts +0 -20
  433. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.cts +0 -6
  434. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.ts +0 -6
  435. package/dist/_internal/base/listenerDispatch.d.cts +0 -14
  436. package/dist/_internal/base/listenerDispatch.d.ts +0 -14
  437. package/dist/_internal/contract/appName.d.cts +0 -10
  438. package/dist/_internal/contract/appName.d.ts +0 -10
  439. package/dist/_internal/contract/hostText.d.cts +0 -25
  440. package/dist/_internal/contract/hostText.d.ts +0 -25
  441. package/dist/_internal/platform/logging/rendererLogging.d.cts +0 -65
  442. package/dist/_internal/platform/logging/rendererLogging.d.ts +0 -65
  443. package/dist/_internal/platform/settings/preferencesCache.d.cts +0 -162
  444. package/dist/_internal/platform/settings/preferencesCache.d.ts +0 -162
  445. package/dist/appThemeDerivation-DmKbTiFi.cjs +0 -1
  446. package/dist/catalogNotify-BcY9oqVy.js +0 -1223
  447. package/dist/catalogNotify-DacJjC-p.cjs +0 -27
  448. package/dist/createResizableSidebar-BIhyo5zN.cjs +0 -1
  449. package/dist/createResizableSidebar-Cqv-1IXG.js +0 -461
  450. package/dist/defineSettings-CcYXt2Jf.js +0 -391
  451. package/dist/defineSettings-yHQdUwxI.cjs +0 -1
  452. package/dist/descriptor-Dmch-3AF.cjs +0 -1
  453. package/dist/dialogFocusRestore-B4ggeVAM.js +0 -64
  454. package/dist/dialogFocusRestore-BcMPrbig.cjs +0 -1
  455. package/dist/displayOwner-eYQHHvjt.cjs +0 -1
  456. package/dist/displayOwner-mT80Oyi-.js +0 -75
  457. package/dist/feedback/preference.notifications.samples.d.cts +0 -1
  458. package/dist/feedback/preference.notifications.samples.d.ts +0 -1
  459. package/dist/focusModality-BNjYldd9.cjs +0 -1
  460. package/dist/focusModality-DxudpWPs.js +0 -135
  461. package/dist/format-BS7oDguE.js +0 -298
  462. package/dist/format-CuANkXXB.cjs +0 -1
  463. package/dist/i18n-DXXArz-m.cjs +0 -4
  464. package/dist/keys-BeeC5_RZ.cjs +0 -1
  465. package/dist/mainRealmDom-CkoRyNhZ.cjs +0 -1
  466. package/dist/mainRealmDom-kEStLHIY.js +0 -102
  467. package/dist/menuFavorites-BmdM_qV5.js +0 -69
  468. package/dist/menuFavorites-DoDFvtlQ.cjs +0 -1
  469. package/dist/notification-DygvQB_o.cjs +0 -1
  470. package/dist/notificationSuppressions-DGfo2QKG.cjs +0 -1
  471. package/dist/notificationSuppressions-ddyK85cB.js +0 -430
  472. package/dist/notifications/copyToClipboard.d.cts +0 -6
  473. package/dist/notifications/copyToClipboard.d.ts +0 -6
  474. package/dist/notifications/createCopyFlash.d.cts +0 -17
  475. package/dist/notifications/createCopyFlash.d.ts +0 -17
  476. package/dist/notifications/notificationDisplayOwner.d.cts +0 -27
  477. package/dist/notifications/notificationDisplayOwner.d.ts +0 -27
  478. package/dist/notifications/notificationRepeaterEntryFactory.d.cts +0 -36
  479. package/dist/notifications/notificationRepeaterEntryFactory.d.ts +0 -36
  480. package/dist/notifications/notifications.notifications.samples.d.cts +0 -1
  481. package/dist/notifications/notifications.notifications.samples.d.ts +0 -1
  482. package/dist/notifications/persistWithRollbackOnFailure.d.cts +0 -18
  483. package/dist/notifications/persistWithRollbackOnFailure.d.ts +0 -18
  484. package/dist/notifications/startNotificationSchedulers.d.cts +0 -2
  485. package/dist/notifications/startNotificationSchedulers.d.ts +0 -2
  486. package/dist/notifications/startNotificationSettingsReactions.d.cts +0 -46
  487. package/dist/notifications/startNotificationSettingsReactions.d.ts +0 -46
  488. package/dist/overlay/ToastHost.d.cts +0 -7
  489. package/dist/overlay/ToastHost.d.ts +0 -7
  490. package/dist/pageTourState-CIr8ockR.js +0 -92
  491. package/dist/pageTourState-D8Uapyft.cjs +0 -1
  492. package/dist/preferencesCache-Bow6TxP1.js +0 -65
  493. package/dist/preferencesCache-D7mm43_n.cjs +0 -1
  494. package/dist/rendererLogging-Dt5FZ8mq.cjs +0 -7
  495. package/dist/rendererLogging-gAhiHWkA.js +0 -822
  496. package/dist/server/CommandPalette-C8treS8g.cjs +0 -1
  497. package/dist/server/CommandPalette-Dslsq5Ez.js +0 -3155
  498. package/dist/server/DateRangePicker-CDKi9BAf.cjs +0 -9
  499. package/dist/server/GuidedTour-B3T9rAPX.cjs +0 -20
  500. package/dist/server/GuidedTour-DSoSZZby.js +0 -10983
  501. package/dist/server/HostWindowContext-DqDeJmBP.cjs +0 -1
  502. package/dist/server/HostWindowContext-KL4U1qUv.js +0 -40
  503. package/dist/server/Modal-CCUwQYso.cjs +0 -1
  504. package/dist/server/PageSkeleton-DdpXfZoC.cjs +0 -30
  505. package/dist/server/Progress-CRbj6nEy.cjs +0 -1
  506. package/dist/server/Progress-nsDy6clG.js +0 -41
  507. package/dist/server/StatusBarNotificationBell-C64Odn2C.js +0 -1974
  508. package/dist/server/StatusBarNotificationBell-DY0Q27su.cjs +0 -4
  509. package/dist/server/ToggleButton-1bNYk35x.cjs +0 -1
  510. package/dist/server/VpTerminal-Bpw-d9wD.js +0 -186
  511. package/dist/server/VpTerminal-C-U_dN_x.cjs +0 -1
  512. package/dist/server/VpTrash-CagiU2Uj.cjs +0 -1
  513. package/dist/server/VpTrash-DVBfts9_.js +0 -116
  514. package/dist/server/appThemeDerivation-DmKbTiFi.cjs +0 -1
  515. package/dist/server/catalogNotify-MCW2sa2e.cjs +0 -27
  516. package/dist/server/catalogNotify-s3YymAe8.js +0 -1261
  517. package/dist/server/createResizableSidebar-MIzUlfdd.js +0 -299
  518. package/dist/server/createResizableSidebar-TdxLuiY8.cjs +0 -1
  519. package/dist/server/defineSettings-CcYXt2Jf.js +0 -391
  520. package/dist/server/defineSettings-yHQdUwxI.cjs +0 -1
  521. package/dist/server/descriptor-DAyyoF-I.cjs +0 -1
  522. package/dist/server/dialogFocusRestore-B4ggeVAM.js +0 -64
  523. package/dist/server/dialogFocusRestore-BcMPrbig.cjs +0 -1
  524. package/dist/server/displayOwner-eYQHHvjt.cjs +0 -1
  525. package/dist/server/displayOwner-mT80Oyi-.js +0 -75
  526. package/dist/server/focusModality-BKgJWRlC.cjs +0 -1
  527. package/dist/server/format-WfZycMBL.cjs +0 -1
  528. package/dist/server/i18n-DXXArz-m.cjs +0 -4
  529. package/dist/server/index-DlQYWckZ.cjs +0 -1
  530. package/dist/server/mainRealmDom-BCL1p_q6.cjs +0 -1
  531. package/dist/server/mainRealmDom-Dk0xb5Gj.js +0 -67
  532. package/dist/server/menuFavorites-BmdM_qV5.js +0 -69
  533. package/dist/server/menuFavorites-DoDFvtlQ.cjs +0 -1
  534. package/dist/server/notification-DygvQB_o.cjs +0 -1
  535. package/dist/server/notificationSuppressions-B-LKq9ZU.js +0 -391
  536. package/dist/server/notificationSuppressions-Dcc2WFBZ.cjs +0 -1
  537. package/dist/server/pageTourState-CIr8ockR.js +0 -92
  538. package/dist/server/pageTourState-D8Uapyft.cjs +0 -1
  539. package/dist/server/preferencesCache-Bow6TxP1.js +0 -65
  540. package/dist/server/preferencesCache-D7mm43_n.cjs +0 -1
  541. package/dist/server/rendererLogging-Dt5FZ8mq.cjs +0 -7
  542. package/dist/server/rendererLogging-gAhiHWkA.js +0 -822
  543. package/dist/server/settingsSearchContributor-CRZsl2Q_.js +0 -199
  544. package/dist/server/settingsSearchContributor-DH8UFpp2.cjs +0 -1
  545. package/dist/server/stateDbStore-Ds3zJ4cd.js +0 -47
  546. package/dist/server/stateDbStore-THFfFGa0.cjs +0 -1
  547. package/dist/server/useListCommands-Bf7aOTXZ.js +0 -61
  548. package/dist/server/useListCommands-ucngC3t4.cjs +0 -1
  549. package/dist/server/useSettingsSubscription-cu943hND.js +0 -11
  550. package/dist/server/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  551. package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  552. package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  553. package/dist/server/windowRegistry-Bk5lXIVd.js +0 -62
  554. package/dist/server/windowRegistry-CGvOBUsw.cjs +0 -1
  555. package/dist/settingsSearchContributor-DWP5dwn3.js +0 -199
  556. package/dist/settingsSearchContributor-Dltbs1j_.cjs +0 -1
  557. package/dist/solid/_internal/app/contexts/WorkspaceTabsContext.js +0 -10
  558. package/dist/solid/_internal/app/settings/theme/appThemeChange.js +0 -5
  559. package/dist/solid/_internal/app/settings/ui/shell/openSettingsModal.js +0 -15
  560. package/dist/solid/_internal/base/listenerDispatch.js +0 -12
  561. package/dist/solid/_internal/contract/appName.js +0 -7
  562. package/dist/solid/_internal/contract/hostText.js +0 -15
  563. package/dist/solid/_internal/platform/logging/rendererLogging.js +0 -42
  564. package/dist/solid/_internal/platform/settings/preferencesCache.js +0 -329
  565. package/dist/solid/feedback/preference.notifications.samples.js +0 -5
  566. package/dist/solid/notifications/copyToClipboard.js +0 -21
  567. package/dist/solid/notifications/createCopyFlash.js +0 -26
  568. package/dist/solid/notifications/notificationDisplayOwner.js +0 -1
  569. package/dist/solid/notifications/notificationRepeaterEntryFactory.js +0 -20
  570. package/dist/solid/notifications/notifications.notifications.samples.js +0 -14
  571. package/dist/solid/notifications/persistWithRollbackOnFailure.js +0 -11
  572. package/dist/solid/notifications/startNotificationSchedulers.js +0 -8
  573. package/dist/solid/notifications/startNotificationSettingsReactions.js +0 -22
  574. package/dist/solid/overlay/ToastHost.jsx +0 -1
  575. package/dist/stateDbStore-Ds3zJ4cd.js +0 -47
  576. package/dist/stateDbStore-THFfFGa0.cjs +0 -1
  577. package/dist/tooltipCoordinator-Causlcgt.cjs +0 -1
  578. package/dist/useListCommands-Bf7aOTXZ.js +0 -61
  579. package/dist/useListCommands-ucngC3t4.cjs +0 -1
  580. package/dist/useSettingsSubscription-cu943hND.js +0 -11
  581. package/dist/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  582. package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  583. package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  584. package/dist/windowRegistry-Bk5lXIVd.js +0 -62
  585. package/dist/windowRegistry-CGvOBUsw.cjs +0 -1
@@ -1,27 +0,0 @@
1
- "use strict";const J=require("./bugIndicatingError-D2X5Hfgg.cjs"),w=require("./rendererLogging-Dt5FZ8mq.cjs"),a=require("./notificationSuppressions-DGfo2QKG.cjs"),g=require("./notification-DygvQB_o.cjs"),y=require("./i18n-DXXArz-m.cjs"),le={info:{freq:660,ms:140},success:{freq:880,ms:180},warning:{freq:520,ms:220},error:{freq:320,ms:260}},Ie={info:"soundOnInfo",success:"soundOnSuccess",warning:"soundOnWarning",error:"soundOnError"},Oe={info:"customSoundInfo",success:"customSoundSuccess",warning:"customSoundWarning",error:"customSoundError"};function de(t,e,i){if(!e[Ie[t]]||e.quietHoursMutesSounds&&i)return null;const r=e[Oe[t]].trim();if(r)return{kind:"custom",path:r};const n=le[t];return{kind:"builtin",freq:n.freq,ms:n.ms}}const K=new Map,P=new Map;async function fe(t){const e=K.get(t);if(e)return e;let i=P.get(t);return i||(i=a.readAudioAsDataUrl(t).then(r=>(P.delete(t),r&&K.set(t,r),r)),P.set(t,i)),await i??void 0}function Ue(){K.clear(),P.clear()}const Z=w.getLogger("NotificationAudio");let M=null,H=!1;function Me(){if(H)return null;if(M)return M;try{const t=window.AudioContext??window.webkitAudioContext;return t?(M=new t,M):(H=!0,null)}catch(t){return H=!0,Z.warn("AudioContext could not be created; notification sounds are off:",t),null}}async function qe(t){const e=await fe(t);if(e)try{const i=new Audio(e);i.volume=.6,await i.play()}catch(i){Z.warn("Custom notification sound could not be played:",i)}}function ge(t=800,e=200){const i=Me();if(i)try{const r=i.currentTime,n=i.createOscillator(),o=i.createGain();n.connect(o),o.connect(i.destination),n.frequency.value=t,o.gain.setValueAtTime(.3,r),o.gain.exponentialRampToValueAtTime(.01,r+e/1e3),n.start(r),n.stop(r+e/1e3)}catch(r){Z.warn("Notification tone could not be played:",r)}}function me(){ge(800,200)}function ye(t,e){const i=de(t,g.notificationSettings.get(),e);if(i){if(i.kind==="custom"){qe(i.path);return}ge(i.freq,i.ms)}}const pe=w.getLogger("NotificationTimeline");function Fe(t){return t.vendorError===void 0?null:a.resolveVendorError(t.vendorError)}const Pe=200;let B=[];const V=new Set;function D(){return[...B]}function $(t){const e=[...t].sort((s,c)=>c.createdAt-s.createdAt),i=e.filter(s=>s.pinned===!0),n=e.filter(s=>s.pinned!==!0).slice(0,Math.max(0,Pe-i.length));B=[...[...i].sort((s,c)=>(c.pinnedAt??c.createdAt)-(s.pinnedAt??s.createdAt)),...n];for(const s of Array.from(V))try{s(B)}catch(c){pe.warn("Zaman cizelgesi dinleyicisi firlatti:",c)}}let R=0,O=0;const L=new Set;function b(t,e,i="general",r="default",n,o){if(!t.trim())return;const s={id:`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,message:w.scrubSecrets(t),tone:e,createdAt:Date.now(),source:i,priority:r,...n&&n.length>0?{actions:n}:{},...o?{vendorError:o}:{}};$([s,...D()]),R+=1,ve()}function A(t){if(t)return[{label:t.label,onClick:t.onClick,primary:!0}]}function ve(){const t=Math.max(0,R-O);for(const e of Array.from(L))try{e(t)}catch(i){pe.warn("Okunmadi sayaci dinleyicisi firlatti:",i)}he(t)}let Q=-1;function he(t){const e=g.notificationSettings.get(),i=e.badgeCountEnabled?Math.min(t,e.badgeCountMax):0;i!==Q&&(Q=i,a.setOsBadgeCount(i))}function We(){const t=Math.max(0,R-O);Q=-1,he(t)}function _e(t){return L.add(t),t(Math.max(0,R-O)),()=>{L.delete(t)}}function He(){O!==R&&(O=R,ve())}function Ke(t){return V.add(t),t(D()),()=>{V.delete(t)}}function Be(){$([])}function Ve(t){const e=D().filter(i=>i.id!==t);$(e)}function Le(t){if(t.length===0)return;const e=new Set(t),i=D().filter(r=>!e.has(r.id));$(i)}function Qe(t){if(!t)return;const e=D().filter(i=>i.source!==t);$(e)}function Ye(t){const i=D().map(r=>{if(r.id!==t)return r;const n=!r.pinned,{pinnedAt:o,...s}=r;return n?{...s,pinned:!0,pinnedAt:Date.now()}:{...s,pinned:!1}});$(i)}const W=new Map;function je(){W.clear()}function Xe(t){if(W.has(t))return W.get(t)??null;let e;try{e=new RegExp(t,"i")}catch{e=null}return W.set(t,e),e}function ze(t,e){const i=t.conditions;if(i.source&&i.source!==e.source||i.severities&&i.severities.length>0&&!i.severities.includes(e.severity))return!1;if(i.titleRegex){const r=Xe(i.titleRegex);if(!r||!r.test(e.title))return!1}return!0}function Se(t,e){if(e.length===0)return t;let i={...t};for(const r of e)if(r.enabled&&ze(r,i)){if(r.actions.suppress===!0)return null;if(r.actions.setSeverity&&(i={...i,severity:r.actions.setSeverity}),r.actions.setPriority&&(i={...i,priority:r.actions.setPriority}),r.actions.addPrefix){const n=r.actions.addPrefix.trim();n&&(i={...i,title:`${n} ${i.title}`})}}return i}function oe(t){const e=/^(\d{1,2}):(\d{2})$/.exec(t.trim());if(!e)return null;const i=Number(e[1]),r=Number(e[2]);return i>23||r>59?null:i*60+r}function ee(t,e){if(!t.quietHoursEnabled||!t.quietHoursWeekdays.includes(e.getDay()))return!1;const i=oe(t.quietHoursStart),r=oe(t.quietHoursEnd);if(i===null||r===null||i===r)return!1;const n=e.getHours()*60+e.getMinutes();return i<r?n>=i&&n<r:n>=i||n<r}function Ge(t){return t.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}const Y={info:0,success:1,warning:2,error:3};function be(t,e){return e.osNativeEnabled?t.priority==="urgent"&&e.osNativeUrgentAlways?{fire:!0,onlyWhenUnfocused:!1}:Y[t.severity]<Y[e.osNativeMinSeverity]?{fire:!1,onlyWhenUnfocused:!1}:{fire:!0,onlyWhenUnfocused:e.osNativeOnlyWhenUnfocused}:{fire:!1,onlyWhenUnfocused:!1}}const Je={"sql-execution":"sql",users:"users",tablespaces:"tablespaces",rss:"rss-feeds",locking:"locking",monitoring:"monitoring"};function Ze(t,e){if(e)return e;if(t!==void 0)return Je[t]}const j="notification.emailDigestSmtpPass",X="notification.webhook.url.";let z=null;function et(t){z=t}function we(){if(z===null)throw new J.BugIndicatingError("notificationSecretStore: no secret store was bound — call provideNotificationSecretStore() at startup.");return z}function U(t){return`${X}${t}`}function Te(t){return t.get(j)}async function tt(t,e){e?await t.set(j,e):await t.delete(j)}function Ee(t,e){return t.get(U(e))}async function it(t,e,i){i?await t.set(U(e),i):await t.delete(U(e))}function rt(t,e){return t.delete(U(e))}async function nt(t,e){const i=new Set(e),r=(await t.keys()).filter(n=>n.startsWith(X)).map(n=>n.slice(X.length)).filter(n=>!i.has(n));await Promise.all(r.map(n=>t.delete(U(n))))}let xe="";function ot(t){xe=t.trim()}function te(){return xe}const st=w.getLogger("WebhookDelivery"),ct={info:"#007AB0",success:"#108846",warning:"#D27908",error:"#BE2E34"},at={info:1668818,success:3046706,warning:16088064,error:12986408};function ut(t,e){const{severities:i,priorities:r,sources:n}=t.filters;return!(i.length>0&&!i.includes(e.severity)||r.length>0&&!r.includes(e.priority)||n.length>0&&!n.includes(e.source))}function lt(t,e){switch(t.type){case"slack":return{text:e.title,attachments:[{color:ct[e.severity],fields:[{title:"Source",value:e.source,short:!0},{title:"Severity",value:e.severity,short:!0},{title:"Priority",value:e.priority,short:!0}],text:e.body??""}]};case"discord":return{embeds:[{title:e.title,description:e.body??"",color:at[e.severity],fields:[{name:"Source",value:e.source,inline:!0},{name:"Severity",value:e.severity,inline:!0},{name:"Priority",value:e.priority,inline:!0}]}]};case"generic":default:return{title:e.title,body:e.body??"",severity:e.severity,priority:e.priority,source:e.source,timestamp:Date.now()}}}async function dt(t,e,i){try{const r=JSON.stringify(lt(t,i));await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:r})}catch(r){st.warn("Webhook delivery failed:",r)}}async function ft(t,e){const i=await Ee(we(),t.id)??"";i&&await dt(t,i,e)}function gt(t){const i=g.notificationSettings.get().webhooks.filter(r=>r.enabled&&ut(r,t));if(i.length!==0)for(const r of i)ft(r,t)}let G=null;function mt(t){G=t}const yt=w.getLogger("EmailDigest"),T=[],se=500,ce={info:0,success:1,warning:2,error:3};function pt(t){const e=g.notificationSettings.get();e.emailDigestEnabled&&(ce[t.severity]<ce[e.emailDigestMinSeverity]||(T.push(t),T.length>se&&T.splice(0,T.length-se)))}const q=t=>t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");function vt(t){const e=te(),i=t.map(r=>`<tr>
2
- <td style="padding:4px 8px">${new Date(r.at).toISOString().slice(11,19)}</td>
3
- <td style="padding:4px 8px"><strong>${r.severity}</strong></td>
4
- <td style="padding:4px 8px">${q(r.source)}</td>
5
- <td style="padding:4px 8px">${q(r.title)}${r.body?`<br><small>${q(r.body)}</small>`:""}</td>
6
- </tr>`).join(`
7
- `);return`<!doctype html>
8
- <html><body>
9
- <h2>${e?`${q(e)} notification digest`:"Notification digest"}</h2>
10
- <p>${t.length} notification(s) since the last digest.</p>
11
- <table style="border-collapse:collapse">
12
- <thead><tr style="background:#eee">
13
- <th style="padding:4px 8px;text-align:left">Time (UTC)</th>
14
- <th style="padding:4px 8px;text-align:left">Severity</th>
15
- <th style="padding:4px 8px;text-align:left">Source</th>
16
- <th style="padding:4px 8px;text-align:left">Message</th>
17
- </tr></thead>
18
- <tbody>
19
- ${i}
20
- </tbody></table>
21
- </body></html>`}function ht(t){const e=t.map(i=>`[${new Date(i.at).toISOString()}] ${i.severity.toUpperCase()} (${i.source}): ${i.title}${i.body?` — ${i.body}`:""}`);return`${t.length} notification(s):
22
-
23
- ${e.join(`
24
- `)}`}function St(t){switch(t.kind){case"disabled":return y.t("Email digest is turned off.");case"smtp-incomplete":return y.t("SMTP host, sender and recipient are required.");case"send-failed":return a.errorText(t.error,y.t("The digest could not be sent."))}}async function ke(){const t=g.notificationSettings.get();if(!t.emailDigestEnabled)return{kind:"not-sent",reason:{kind:"disabled"}};if(T.length===0)return{kind:"sent",count:0};if(!t.emailDigestSmtpHost||!t.emailDigestFrom||!t.emailDigestTo)return{kind:"not-sent",reason:{kind:"smtp-incomplete"}};const e=T.splice(0,T.length),i={sendEmailDigest:s=>G?G(s):Promise.reject(new Error("No email digest transport configured"))},r=te(),n=`${r?`[${r}] `:""}${e.length} notification(s)`,o=await Te(we())??"";try{return await i.sendEmailDigest({smtp:{host:t.emailDigestSmtpHost,port:t.emailDigestSmtpPort,secure:t.emailDigestSmtpSecure,user:t.emailDigestSmtpUser,pass:o},from:t.emailDigestFrom,to:t.emailDigestTo,subject:n,html:vt(e),text:ht(e)}),{kind:"sent",count:e.length}}catch(s){return T.unshift(...e),{kind:"not-sent",reason:{kind:"send-failed",error:s}}}}let ae=0,ue=null;function bt(t){const e=g.notificationSettings.get();if(!e.emailDigestEnabled)return!1;const i=t.getHours(),r=t.getMinutes(),n=t.getDay();switch(e.emailDigestSchedule){case"hourly":return r===0;case"daily-9am":return i===9&&r===0;case"daily-5pm":return i===17&&r===0;case"weekly-mon-9am":return n===1&&i===9&&r===0}}function wt(){ue===null&&(typeof window>"u"||(ue=window.setInterval(()=>{const t=new Date;if(!bt(t))return;const e=Math.floor(t.getTime()/6e4);e!==ae&&(ae=e,ke().then(i=>{i.kind==="not-sent"&&i.reason.kind==="send-failed"&&yt.warn("scheduled email digest failed",i.reason.error)}))},6e4)))}function Ce(){return ee(g.notificationSettings.get(),new Date)}function C(t,e,i,r,n){const o=g.notificationSettings.get(),s=a.deriveImplicitRemindKey(t,e);return a.decideFilter({priority:i,recordTimeline:n},o,{dismissed:r!==void 0&&a.isKeyDismissed(r),remindSuppressed:r!==void 0&&a.isKeyRemindSuppressed(r)||a.isKeyRemindSuppressed(s),sourceMuted:a.isSourceMuted(t),inQuietHours:Ce()})}function Tt(t,e,i,r){return{label:t.label,primary:r,keepOpen:t.expireOnAction===!1,onClick:()=>{a.recordClick(i);try{t.onClick()}finally{const n=e();t.expireOnAction!==!1&&n&&a.closeNotification(n)}}}}function N(t){var S,m;const e=t.options.source??"general";if(a.recordFire(e,t.decision.showToast,a.isSourceMuted(e)),!t.decision.showToast)return null;ye(t.severity,Ce());const{options:i}=t,r=((S=i.subtitle)==null?void 0:S.trim())||((m=i.description)==null?void 0:m.trim()),n=i.id!==void 0?String(i.id):void 0,o=g.notificationSettings.get(),s=i.markdown??o.markdownEnabled,c=[...t.primaryAction?[t.primaryAction]:[],...i.actions??[]],l=Ze(i.source,i.defaultRoute);let d=null;const u=a.notify({severity:t.severity,title:t.title,...r?{body:r}:{},...s?{markdown:!0}:{},source:i.source??"general",priority:i.priority??"default",...i.duration!==void 0?{durationMs:i.duration}:{},...i.dontShowAgainKey?{neverShowAgainKey:i.dontShowAgainKey}:{},...n?{id:n}:{},...i.icon?{icon:i.icon}:{},...l?{defaultRoute:l}:{},...t.vendorError?{vendorError:t.vendorError}:{},...c.length>0?{actions:c.map((E,I)=>Tt(E,()=>d==null?void 0:d.id,e,I===0))}:{}});if(d=u,a.isSpamDropHandle(u))return u;const h=w.scrubSecrets(t.title),v=r?w.scrubSecrets(r):void 0,f={title:h,...v?{body:v}:{},severity:t.severity,priority:i.priority??"default",source:i.source??"general"};return Et(f),gt(f),pt({...f,at:Date.now()}),u}function Et(t){const e=be(t,g.notificationSettings.get());e.fire&&a.osNotify({title:t.title,...t.body?{body:t.body}:{},severity:t.severity,urgent:t.priority==="urgent",onlyWhenUnfocused:e.onlyWhenUnfocused})}function x(t){return typeof t=="string"?t:t instanceof Error?t.message:t==null?"":String(t)}function ie(t,e,i,r=a.openExternal){var u,h,v;const n=x(t),o=(u=e.title)==null?void 0:u.trim(),s=((h=e.subtitle)==null?void 0:h.trim())||((v=e.description)==null?void 0:v.trim());let c=o??n,l=s;if(i&&!o){const f=i.helpers.formatCode(i.code),S=new RegExp(`^\\s*${Ge(f)}\\s*[:-]\\s*(.+)$`,"i"),m=n.match(S);if(m!=null&&m[1]){c=f;const E=m[1].trim();l=l?`${E}
25
-
26
- ${l}`:E}}let d=e.action;if(!d&&i){const f=i.helpers.docsUrl(i.code);f&&(d={label:`${i.helpers.formatCode(i.code)} ${i.helpers.docsLinkLabel}`,onClick:()=>r(f)})}return{text:n,displayText:c,bodyText:l,primaryAction:d}}function F(t){return Se(t,g.notificationSettings.get().notificationRules)}const k={success(t,e={}){const i=x(t),r=g.notificationSettings.get(),n=e.source??"general",o=e.priority??"default",s=F({severity:"success",title:i,priority:o,source:n});if(!s)return"";const c=C(s.source,s.title,s.priority,e.dontShowAgainKey,e.recordTimeline);if(c.recordTimeline&&b(s.title,s.severity==="success"?"success":s.severity,s.source,s.priority,A(e.action)),!r.showSuccessToasts&&s.priority!=="urgent")return"";const l=N({severity:s.severity,title:s.title,options:{...e,source:s.source,priority:s.priority},decision:c,...e.action?{primaryAction:e.action}:{}});return(l==null?void 0:l.id)??""},error(t,e=!1){const i=x(t),r=typeof e=="boolean"?{}:e,n=r.vendorError===void 0?null:a.resolveVendorError(r.vendorError),o=ie(i,r,n),s=n!==null;let c=o.displayText;const l=o.bodyText,d=l?`${c}
27
- ${l}`:i,u=r.source??(s?"vendor-error":"general"),h=s&&g.notificationSettings.get().vendorCodesAreUrgent,v=r.priority??(h?"urgent":"default"),f=F({severity:"error",title:c,priority:v,source:u});if(!f)return"";c=f.title;const S=f.source,m=f.priority,E=C(S,c,m,r.dontShowAgainKey,r.recordTimeline);E.recordTimeline&&b(d,f.severity,S,m,A(r.action),r.vendorError);const I=N({severity:f.severity,title:c,options:{...r,source:S,priority:m,...l?{description:l}:{}},decision:E,...o.primaryAction?{primaryAction:o.primaryAction}:{},...r.vendorError?{vendorError:r.vendorError}:{}});return(I==null?void 0:I.id)??""},info(t,e={}){const i=x(t),r=e.source??"general",n=e.priority??"default",o=F({severity:"info",title:i,priority:n,source:r});if(!o)return"";const s=C(o.source,o.title,o.priority,e.dontShowAgainKey,e.recordTimeline);s.recordTimeline&&b(o.title,o.severity,o.source,o.priority,A(e.action));const c=N({severity:o.severity,title:o.title,options:{...e,source:o.source,priority:o.priority},decision:s,...e.action?{primaryAction:e.action}:{}});return(c==null?void 0:c.id)??""},warning(t,e={}){const i=x(t),r=e.source??"general",n=e.priority??"default",o=F({severity:"warning",title:i,priority:n,source:r});if(!o)return"";const s=C(o.source,o.title,o.priority,e.dontShowAgainKey,e.recordTimeline);s.recordTimeline&&b(o.title,o.severity,o.source,o.priority,A(e.action));const c=N({severity:o.severity,title:o.title,options:{...e,source:o.source,priority:o.priority},decision:s,...e.action?{primaryAction:e.action}:{}});return(c==null?void 0:c.id)??""},queryCompleted(t,e={}){const i=x(t),r=g.notificationSettings.get(),n=e.source??"sql-execution",o=e.priority??"default",s=C(n,i,o,e.dontShowAgainKey,e.recordTimeline);if(s.recordTimeline&&b(i,"success",n,o,A(e.action)),r.notificationsEnabled&&r.soundOnQueryCompletion&&!(r.quietHoursMutesSounds&&ee(r,new Date))&&me(),!r.showSuccessToasts&&o!=="urgent")return"";const c=N({severity:"success",title:i,options:{...e,source:n,priority:o},decision:s,...e.action?{primaryAction:e.action}:{}});return(c==null?void 0:c.id)??""},progress(t,e={}){const i=x(t),r=e.onCancel,n=e.source??"general",o=e.priority??"default",s=C(n,i,o,e.dontShowAgainKey,e.recordTimeline);if(s.recordTimeline&&b(i,"info",n,o),!s.showToast)return{update:()=>{},success:()=>{},fail:()=>{},dismiss:()=>{}};const c=e.id!==void 0?String(e.id):`progress-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,l=a.notify({id:c,severity:"info",title:i,source:n,priority:o,sticky:!0,progress:r?{onCancel:r}:{}});return{update:(d,u)=>{l.update({title:d}),u!==void 0&&l.setProgress({value:Math.max(0,Math.min(1,u)),...r?{onCancel:r}:{}})},success:d=>{const u=d??i;s.recordTimeline&&b(u,"success",n,o),l.update({title:u,severity:"success",sticky:!1,progress:{done:!0}})},fail:d=>{const u=d??i;s.recordTimeline&&b(u,"error",n,o),l.update({title:u,severity:"error",sticky:!0,progress:{done:!0},durationMs:1/0})},dismiss:()=>l.close()}}};function p(t,e){return{...t,category:t.category??t.id.split(".")[0]??"general",build:e}}function xt(t,e,i){return{id:t,notification:e,resolve:()=>e.build(i)}}function _(t,e){return{message:t,...e!=null&&e.title?{title:e.title}:{},...e!=null&&e.subtitle?{subtitle:e.subtitle}:{},...e!=null&&e.description?{description:e.description}:{},...e!=null&&e.action?{action:e.action}:{},...(e==null?void 0:e.duration)!==void 0?{duration:e.duration}:{},...e!=null&&e.dontShowAgainKey?{dontShowAgainKey:e.dontShowAgainKey}:{},...e!=null&&e.defaultRoute?{defaultRoute:e.defaultRoute}:{},...e!=null&&e.icon?{icon:e.icon}:{},...(e==null?void 0:e.markdown)!==void 0?{markdown:e.markdown}:{},...(e==null?void 0:e.recordTimeline)!==void 0?{recordTimeline:e.recordTimeline}:{},...(e==null?void 0:e.id)!==void 0?{id:e.id}:{},...e!=null&&e.onCancel?{onCancel:e.onCancel}:{}}}p({id:"notifications.copyToClipboard.success.1",source:"general",severity:"success",priority:"default",delivery:"in-app",kind:"message"},({successNotice:t})=>({message:t??y.t("Copied to clipboard.")}));p({id:"notifications.copyToClipboard.error.2",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},()=>({message:y.t("Could not copy to clipboard.")}));const kt=p({id:"notifications.timeline.replay.error",source:"general",severity:"error",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),Ct=p({id:"notifications.timeline.replay.warning",source:"general",severity:"warning",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),At=p({id:"notifications.timeline.replay.success",source:"general",severity:"success",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),Nt=p({id:"notifications.timeline.replay.info",source:"general",severity:"info",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),Rt=p({id:"notifications.timeline.exported",source:"general",severity:"success",priority:"default",delivery:"in-app",kind:"message"},({entryCount:t})=>({message:y.t("Exported {count} notifications",{count:t})})),Dt=p({id:"notifications.timeline.export.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:t})=>({message:y.t("Export failed: {message}",{message:a.errorText(t,y.t("Operation failed."))}),cause:t})),$t=p({id:"notifications.errorAction.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:t})=>({message:y.t("The action could not be completed: {message}",{message:a.errorText(t,y.t("Operation failed."))}),cause:t})),It=p({id:"notifications.settings.update.failed",source:"settings",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:t})=>({message:a.errorText(t,y.t("Operation failed.")),cause:t}));function re(t){if(!("cause"in t))return t;const{cause:e,...i}=t,r=a.errorActions(e).map(Ot);return r.length===0?i:{...i,actions:[...i.actions??[],...r]}}function Ot(t){return{label:t.label,onClick:()=>{Promise.resolve().then(()=>t.run()).catch(e=>{$e($t,{cause:e})})}}}function Ae(t,e){return{...t.severity==="error"&&t.source==="general"?{}:{source:t.source},...t.severity==="error"&&t.priority==="default"?{}:{priority:t.priority},...e.subtitle?{subtitle:e.subtitle}:{},...e.description?{description:e.description}:{},...e.action?{action:e.action}:{},...e.actions?{actions:e.actions}:{},...e.duration!==void 0?{duration:e.duration}:{},...e.dontShowAgainKey?{dontShowAgainKey:e.dontShowAgainKey}:{},...e.defaultRoute?{defaultRoute:e.defaultRoute}:{},...e.icon?{icon:e.icon}:{},...e.markdown!==void 0?{markdown:e.markdown}:{},...e.recordTimeline!==void 0?{recordTimeline:e.recordTimeline}:{},...e.id!==void 0?{id:e.id}:{}}}function Ut(t,e){const i=re(e);if(t.delivery==="os-only"){const n=i.title??i.message,o=i.description??i.subtitle??(i.title?i.message:void 0);return a.osNotify({title:n,...o?{body:o}:{},severity:t.severity,urgent:t.priority==="urgent",onlyWhenUnfocused:!1}),""}const r=Ae(t,i);if(t.kind==="query-completed")return k.queryCompleted(i.message,r);switch(t.severity){case"success":return k.success(i.message,r);case"error":{const n={...r,...i.title?{title:i.title}:{},...i.vendorError?{vendorError:i.vendorError}:{}};return k.error(i.message,n)}case"warning":return k.warning(i.message,r);case"info":return k.info(i.message,r)}}function Mt(t,e){const i=re(e);if(t.delivery!=="in-app")throw new J.BugIndicatingError("Progress notifications require an in-app catalog definition.");return k.progress(i.message,{...Ae(t,i),...i.onCancel?{onCancel:i.onCancel}:{}})}const Ne={notify:Ut,progress:Mt,dismiss:t=>a.closeNotification(t)};function Re(t,e,i,r){return t==="error"&&e==="default"&&i&&r?"urgent":e}function qt(t,e){var d;const i=e.vendorError===void 0||!a.isVendorErrorSourceInstalled()?null:a.resolveVendorError(e.vendorError),r=t.severity==="error"?ie(e.message,{...e.title?{title:e.title}:{},...e.subtitle?{subtitle:e.subtitle}:{},...e.description?{description:e.description}:{},...e.action?{action:e.action}:{}},i,a.openExternal):null,n=(r==null?void 0:r.displayText)??e.title??e.message,o=(r==null?void 0:r.bodyText)??e.subtitle??e.description,s=(r==null?void 0:r.primaryAction)??e.action,c=t.severity==="error"&&t.source==="general"&&i!==null?"vendor-error":t.source,l=Re(t.severity,t.priority,i!==null,g.notificationSettings.get().vendorCodesAreUrgent);return a.notify({severity:t.severity,title:w.scrubSecrets(n),...o?{body:w.scrubSecrets(o)}:{},source:c,priority:l,isolated:!0,...e.duration!==void 0?{durationMs:e.duration}:{},...e.id!==void 0?{id:`dev-preview:${e.id}`}:{},...e.icon?{icon:e.icon}:{},...e.markdown?{markdown:!0}:{},...t.kind==="progress"?{sticky:!0,progress:{done:!1}}:{},...s||(d=e.actions)!=null&&d.length?{actions:[s,...e.actions??[]].filter(u=>u!==void 0).map((u,h)=>({id:`dev-preview-action-${h}`,label:u.label,primary:h===0,onClick:()=>{var v;(v=u.onClick)==null||v.call(u)}}))}:{}}).id}let De=null;function Ft(t){De=t}function ne(){return De??Ne}function $e(t,e){return ne().notify(t,t.build(e))}function Pt(t,e){if(t.kind!=="progress")throw new J.BugIndicatingError("catalogNotify: a message definition cannot be sent with progressFromCatalog.");return ne().progress(t,t.build(e))}function Wt(t){var e,i;(i=(e=ne()).dismiss)==null||i.call(e,t)}function _t(t){return t.resolve()}exports.SEVERITY_ORDER=Y;exports.SEVERITY_TONES=le;exports.addTimelineEntry=b;exports.applyNotificationRules=Se;exports.catalogNotificationHost=Ne;exports.clearCompiledRuleRegexCache=je;exports.clearNotificationTimeline=Be;exports.defineNotification=p;exports.defineNotificationScenario=xt;exports.deleteWebhookUrl=rt;exports.digestNotSentText=St;exports.dismissNotificationFromCatalog=Wt;exports.dismissNotificationTimelineEntries=Le;exports.dismissNotificationTimelineEntriesBySource=Qe;exports.dismissNotificationTimelineEntry=Ve;exports.enrichErrorToast=ie;exports.entryVendorMatch=Fe;exports.fire=N;exports.flushDigest=ke;exports.getAppName=te;exports.getSmtpPass=Te;exports.getWebhookUrl=Ee;exports.invalidateCustomSoundCache=Ue;exports.isInQuietHours=ee;exports.loadCustomSoundDataUrl=fe;exports.markTimelineSeen=He;exports.notificationReplayError=kt;exports.notificationReplayInfo=Nt;exports.notificationReplaySuccess=At;exports.notificationReplayWarning=Ct;exports.notificationSettingsUpdateFailed=It;exports.notificationTimelineExportFailed=Dt;exports.notificationTimelineExported=Rt;exports.notifyFromCatalog=$e;exports.playQueryCompletedCue=me;exports.playSeverityToneIfEnabled=ye;exports.progressFromCatalog=Pt;exports.provideCatalogNotificationHost=Ft;exports.provideNotificationSecretStore=et;exports.pruneOrphanWebhookSecrets=nt;exports.refreshOsBadge=We;exports.resolveCatalogPreviewPriority=Re;exports.resolveNotificationScenario=_t;exports.resolveSeverityTone=de;exports.setAppName=ot;exports.setEmailDigestTransport=mt;exports.setSmtpPass=tt;exports.setWebhookUrl=it;exports.shouldFireOsNative=be;exports.showCatalogPreviewToast=qt;exports.startDigestScheduler=wt;exports.subscribeNotificationTimeline=Ke;exports.subscribeUnreadCount=_e;exports.toTimelineActions=A;exports.toast=k;exports.toggleTimelineEntryPin=Ye;exports.withErrorActionButtons=re;
@@ -1 +0,0 @@
1
- "use strict";const t=require("solid-js/web"),G=require("@vokril/icons"),h=require("solid-js"),F=require("./DesktopContextMenuContext-DMGNVjaR.cjs"),$=require("./headerIconOverrides-DY3BTuca.cjs"),L=require("./IconPicker-DPT-QfsC.cjs"),R=require("./i18n-DXXArz-m.cjs"),O=require("./Button-d9jJBibg.cjs"),_=require("./keys-BeeC5_RZ.cjs"),X=require("./OverlayScrollArea-BSlaXG1h.cjs"),J=require("./rendererLogging-Dt5FZ8mq.cjs"),C=require("./preferencesCache-D7mm43_n.cjs"),T=require("./windowRegistry-CGvOBUsw.cjs");var Q=t.template("<div>");function U(e){const u=F.useDesktopContextMenu(),v=$.getHeaderIconOverrides(),[g,a]=h.createSignal(null),b=()=>g()===e.pageId,[k,r]=h.createSignal(null),d=h.createMemo(()=>v()[e.pageId]??(e.fallbackPageId?v()[e.fallbackPageId]:null)??null);h.createEffect(()=>{e.pageId,a(null)}),h.createEffect(()=>{const o=d();if(!o){r(null);return}const n=L.getIconSync(o.name);if(n){r(()=>n);return}r(null);let l=!1;h.onCleanup(()=>{l=!0}),L.loadIconSet().then(s=>{const y=d();l||!y||y.name!==o.name||r(()=>s[o.name]??null)})});const c=h.createMemo(()=>k()??e.fallbackIcon),m=o=>{if(e.interactive===!1)return;o.preventDefault(),o.stopPropagation();const n=e.pageId;L.isIconSetLoaded()||L.loadIconSet();const l=[],s=e.onSettings;s&&(l.push({label:R.t("Settings…"),onSelect:s}),l.push({type:"separator"})),l.push({label:R.t("Change icon"),onSelect:()=>{e.pageId===n&&a(n)}}),l.push({label:R.t("Reset to default icon"),disabled:!v()[e.pageId],onSelect:()=>{e.pageId===n&&$.clearHeaderIconOverride(n)}}),u.open(o.clientX,o.clientY,l,o)},f=o=>{const n=g();!n||n!==e.pageId||($.setHeaderIconOverride(n,{set:"tb",name:o}),a(null))};return[(()=>{var o=Q();return o.$$contextmenu=m,t.insert(o,t.createComponent(t.Dynamic,{get component(){return c()},get class(){return e.iconClass},"aria-hidden":"true"})),t.effect(n=>{var l=e.class,s=e.ariaLabel;return l!==n.e&&t.className(o,n.e=l),s!==n.t&&t.setAttribute(o,"aria-label",n.t=s),n},{e:void 0,t:void 0}),o})(),t.createComponent(h.Show,{get when(){return b()},get children(){return t.createComponent(L.IconPicker,{open:b,onClose:()=>a(null),onSelect:f,get currentIconName(){var o;return((o=d())==null?void 0:o.name)??null}})}})]}t.delegateEvents(["contextmenu"]);const j="vk_header_7CNKc",Z="vk_headerLeft_-fa7V",p="vk_headerActions_aaFA-",ee="vk_headerIcon_c1sgk",te="vk_headerIconSvg_7jyQp",ne="vk_titleRow_0A-NY",ae="vk_backButton_GIWbu",re="vk_title_k1DVA",ie="vk_subtitle_RXfOz",le="vk_refreshIconButton_bVyMc",oe="vk_compact_e7ku-",I={header:j,headerLeft:Z,headerActions:p,headerIcon:ee,headerIconSvg:te,titleRow:ne,backButton:ae,title:re,subtitle:ie,refreshIconButton:le,compact:oe};var ce=t.template("<div><h2>"),se=t.template("<p>"),de=t.template("<div>"),ue=t.template("<header><div><div>"),ve=t.template("<h2>");function ge(e){return(()=>{var u=ue(),v=u.firstChild,g=v.firstChild;return t.insert(v,t.createComponent(h.Show,{get when(){return t.memo(()=>e.fallbackIcon!=null)()&&e.pageId!=null},get children(){return t.createComponent(U,{get pageId(){return e.pageId},get fallbackPageId(){return e.fallbackIconPageId},get fallbackIcon(){return e.fallbackIcon},get class(){return I.headerIcon},get iconClass(){return I.headerIconSvg},get ariaLabel(){return e.iconAriaLabel},get onSettings(){return e.onSettings}})}}),g),t.insert(g,t.createComponent(h.Show,{get when(){return e.onBack!=null},get fallback(){return(()=>{var a=ve();return t.insert(a,()=>e.title),t.effect(()=>t.className(a,I.title)),a})()},get children(){var a=ce(),b=a.firstChild;return t.insert(a,t.createComponent(O.Button,{variant:"secondary",size:"sm",get class(){return I.backButton},onClick:()=>e.onBack(),get children(){return["← ",t.memo(()=>e.backLabel??R.t("Back"))]}}),b),t.insert(b,()=>e.title),t.effect(k=>{var r=I.titleRow,d=I.title;return r!==k.e&&t.className(a,k.e=r),d!==k.t&&t.className(b,k.t=d),k},{e:void 0,t:void 0}),a}}),null),t.insert(g,t.createComponent(h.Show,{get when(){return e.subtitle!=null},get children(){var a=se();return t.insert(a,()=>e.subtitle),t.effect(()=>t.className(a,I.subtitle)),a}}),null),t.insert(u,t.createComponent(h.Show,{get when(){return e.onRefresh!=null||e.actions!=null},get children(){var a=de();return t.insert(a,t.createComponent(h.Show,{get when(){return e.onRefresh!=null},get children(){return t.createComponent(O.Button,{size:"md",variant:"secondary",iconOnly:!0,get class(){return I.refreshIconButton},get disabled(){return e.refreshDisabled},get loading(){return e.refreshing},loadingDelay:0,get"aria-label"(){return e.refreshAriaLabel??R.t("Refresh")},onClick:()=>e.onRefresh(),get children(){return t.createComponent(G.VpRefresh,{"aria-hidden":"true"})}})}}),null),t.insert(a,()=>e.actions,null),t.effect(()=>t.className(a,I.headerActions)),a}}),null),t.effect(a=>{var b=I.header,k={[I.compact]:e.variant==="compact"},r=I.headerLeft;return b!==a.e&&t.className(u,a.e=b),a.t=t.classList(u,k,a.t),r!==a.a&&t.className(v,a.a=r),a},{e:void 0,t:void 0,a:void 0}),u})()}const he="vk_handle_fHazX",fe="vk_dragging_7oGBz",me="vk_horizontal_nwaLt",be="vk_vertical_wzd-m",ke="vk_indicator_aLgDs",D={handle:he,dragging:fe,horizontal:me,vertical:be,indicator:ke};var ye=t.template("<div role=separator tabindex=0><div aria-hidden=true>");function Se(e){const[u,v]=h.createSignal(!1),g=()=>e.orientation??"horizontal";let a;h.onCleanup(()=>{a==null||a()});const b=r=>{r.preventDefault();const d=r.currentTarget;d.setPointerCapture(r.pointerId),v(!0);let c=r.clientX,m=r.clientY;const f=n=>{var w;const l=n.clientX-c,s=n.clientY-m;c=n.clientX,m=n.clientY;const y=g()==="horizontal"?l:s;(w=e.onResize)==null||w.call(e,y)},o=n=>{try{d.releasePointerCapture(n.pointerId)}catch{}d.removeEventListener("pointermove",f),d.removeEventListener("pointerup",o),d.removeEventListener("pointercancel",o),a=void 0,v(!1)};a=()=>{d.removeEventListener("pointermove",f),d.removeEventListener("pointerup",o),d.removeEventListener("pointercancel",o)},d.addEventListener("pointermove",f),d.addEventListener("pointerup",o),d.addEventListener("pointercancel",o)},k=r=>{var c,m,f,o;const d=r.shiftKey?10:2;g()==="horizontal"?_.isKey(r,"ArrowLeft")?(r.preventDefault(),(c=e.onResize)==null||c.call(e,-d)):_.isKey(r,"ArrowRight")&&(r.preventDefault(),(m=e.onResize)==null||m.call(e,d)):_.isKey(r,"ArrowUp")?(r.preventDefault(),(f=e.onResize)==null||f.call(e,-d)):_.isKey(r,"ArrowDown")&&(r.preventDefault(),(o=e.onResize)==null||o.call(e,d))};return(()=>{var r=ye(),d=r.firstChild;return r.$$keydown=k,t.addEventListener(r,"dblclick",e.onDoubleClick,!0),r.$$pointerdown=b,t.effect(c=>{var m=g(),f=e.value,o=e.min,n=e.max,l=e.ariaLabel??"Resize separator",s=`${D.handle} ${g()==="horizontal"?D.horizontal:D.vertical} ${u()?D.dragging:""} ${e.class??""}`,y=D.indicator;return m!==c.e&&t.setAttribute(r,"aria-orientation",c.e=m),f!==c.t&&t.setAttribute(r,"aria-valuenow",c.t=f),o!==c.a&&t.setAttribute(r,"aria-valuemin",c.a=o),n!==c.o&&t.setAttribute(r,"aria-valuemax",c.o=n),l!==c.i&&t.setAttribute(r,"aria-label",c.i=l),s!==c.n&&t.className(r,c.n=s),y!==c.s&&t.className(d,c.s=y),c},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),r})()}t.delegateEvents(["pointerdown","dblclick","keydown"]);const we="vk_container_DGAoE",Ie="vk_horizontal_GnS2m",ze="vk_vertical_oOyQM",_e="vk_firstPane_kDkKK",Ce="vk_secondPane_61mm8",Le="vk_paneScroll_-7IJF",De="vk_separator_Gadcl",Re="vk_separatorHorizontal_0e62B",Ae="vk_separatorVertical_zIDqL",Pe="vk_dragging_iMvN6",$e="vk_handle_7YOEJ",z={container:we,horizontal:Ie,vertical:ze,firstPane:_e,secondPane:Ce,paneScroll:Le,separator:De,separatorHorizontal:Re,separatorVertical:Ae,dragging:Pe,handle:$e};var Ee=t.template("<div><div></div><div role=separator tabindex=0><div aria-hidden=true></div></div><div>");function Ke(e){const u=()=>e.direction??"horizontal",v=()=>e.minSize??15,g=()=>e.maxSize??85,[a,b]=h.createSignal(Math.min(g(),Math.max(v(),e.initialSize??50))),[k,r]=h.createSignal(!1);let d;const c=n=>{var s;const l=Math.min(g(),Math.max(v(),n));b(l),(s=e.onResize)==null||s.call(e,l)},m=()=>{c(50)},f=n=>{n.preventDefault();const l=n.currentTarget;l.setPointerCapture(n.pointerId),r(!0);const s=w=>{if(!d)return;const i=d.getBoundingClientRect();let S;u()==="horizontal"?S=(w.clientX-i.left)/i.width*100:S=(w.clientY-i.top)/i.height*100,c(S)},y=w=>{try{l.releasePointerCapture(w.pointerId)}catch(i){J.bestEffortFailed("ignore if capture already released",i)}l.removeEventListener("pointermove",s),l.removeEventListener("pointerup",y),l.removeEventListener("pointercancel",y),r(!1)};l.addEventListener("pointermove",s),l.addEventListener("pointerup",y),l.addEventListener("pointercancel",y)},o=n=>{if(_.isKey(n,"Home")){n.preventDefault(),c(v());return}if(_.isKey(n,"End")){n.preventDefault(),c(g());return}const l=n.shiftKey?5:1;u()==="horizontal"?_.isKey(n,"ArrowLeft")?(n.preventDefault(),c(a()-l)):_.isKey(n,"ArrowRight")&&(n.preventDefault(),c(a()+l)):_.isKey(n,"ArrowUp")?(n.preventDefault(),c(a()-l)):_.isKey(n,"ArrowDown")&&(n.preventDefault(),c(a()+l))};return(()=>{var n=Ee(),l=n.firstChild,s=l.nextSibling,y=s.firstChild,w=s.nextSibling;return t.use(i=>{d=i},n),t.insert(l,t.createComponent(X.OverlayScrollArea,{get rootClass(){return z.paneScroll},get children(){return e.first}})),s.$$keydown=o,s.$$dblclick=m,s.$$pointerdown=f,t.insert(w,t.createComponent(X.OverlayScrollArea,{get rootClass(){return z.paneScroll},get children(){return e.second}})),t.effect(i=>{var S=`${z.container} ${u()==="horizontal"?z.horizontal:z.vertical} ${k()?z.dragging:""} ${e.class??""}`,A=z.firstPane,P={[u()==="horizontal"?"width":"height"]:`${a()}%`},K=u(),N=Math.round(a()),x=v(),B=g(),M=e.ariaLabel??"Resize pane",H=`${z.separator} ${u()==="horizontal"?z.separatorHorizontal:z.separatorVertical}`,W=z.handle,q=z.secondPane;return S!==i.e&&t.className(n,i.e=S),A!==i.t&&t.className(l,i.t=A),i.a=t.style(l,P,i.a),K!==i.o&&t.setAttribute(s,"aria-orientation",i.o=K),N!==i.i&&t.setAttribute(s,"aria-valuenow",i.i=N),x!==i.n&&t.setAttribute(s,"aria-valuemin",i.n=x),B!==i.s&&t.setAttribute(s,"aria-valuemax",i.s=B),M!==i.h&&t.setAttribute(s,"aria-label",i.h=M),H!==i.r&&t.className(s,i.r=H),W!==i.d&&t.className(y,i.d=W),q!==i.l&&t.className(w,i.l=q),i},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0}),n})()}t.delegateEvents(["pointerdown","dblclick","keydown"]);function E(e,u,v){return Math.max(u,Math.min(v,e))}function Ne(e,u,v,g){return typeof e!="number"||Number.isNaN(e)?u:E(e,v,g)}function Y(e,u,v,g){var a;return Ne((a=C.getUiLayout().sidebarWidths)==null?void 0:a[e],u,v,g)}function V(e){var u;return((u=C.getUiLayout().sidebarCollapsed)==null?void 0:u[e])===!0}function xe(e){const[u,v]=h.createSignal(Y(e.storageKey,e.defaultWidth,e.min,e.max)),[g,a]=h.createSignal(V(e.collapsedKey)),[b,k]=h.createSignal(!1),r=i=>{if(b())return;const S=i.detail;S&&(S.key!==e.storageKey&&S.key!==e.collapsedKey||h.batch(()=>{v(Y(e.storageKey,e.defaultWidth,e.min,e.max)),a(V(e.collapsedKey))}))},d=C.getSidebarLayoutChangeEventName();window.addEventListener(d,r),h.onCleanup(()=>window.removeEventListener(d,r));let c=null,m=null,f=typeof window<"u"?window:globalThis;const o=()=>{c&&f.removeEventListener("mousemove",c),m&&f.removeEventListener("mouseup",m),c=null,m=null},n=(i,S)=>{i.preventDefault(),k(!0),f=T.getWindow$1(S);const A=S.getBoundingClientRect().left;c=P=>{v(E(P.clientX-A,e.min,e.max))},m=()=>{k(!1),C.setSidebarWidth(e.storageKey,u()),o()},f.addEventListener("mousemove",c),f.addEventListener("mouseup",m)},l=()=>{const i=!g();a(i),C.setSidebarCollapsed(e.collapsedKey,i)},s=i=>{const S=E(i,e.min,e.max);v(S),C.setSidebarWidth(e.storageKey,S)},y=i=>{s(u()+i)},w=()=>{s(e.defaultWidth)};return h.onCleanup(o),{width:u,collapsed:g,isResizing:b,startResize:n,resizeBy:y,resetWidth:w,toggleCollapse:l}}exports.PageHeader=ge;exports.PageHeaderIcon=U;exports.ResizableSplitPane=Ke;exports.ResizeHandle=Se;exports.createResizableSidebar=xe;
@@ -1,461 +0,0 @@
1
- import { insert as z, createComponent as _, Dynamic as ne, effect as C, className as I, setAttribute as S, template as $, delegateEvents as W, memo as F, classList as ae, addEventListener as re, use as ie, style as oe } from "solid-js/web";
2
- import { VpRefresh as le } from "@vokril/icons";
3
- import { createSignal as R, createMemo as T, createEffect as J, onCleanup as B, Show as P, batch as ce } from "solid-js";
4
- import { u as de } from "./DesktopContextMenuContext-DJ3PnqAv.js";
5
- import { a as se, c as ue, s as ve } from "./headerIconOverrides-B7TQUBmD.js";
6
- import { g as he, l as Q, I as ge, i as fe } from "./IconPicker-C3ZwWkB1.js";
7
- import { t as x } from "./i18n-D9k9xwuD.js";
8
- import { B as j } from "./Button-Db6wMY-3.js";
9
- import { i as D } from "./keys-Bfgdfak_.js";
10
- import { O as q } from "./OverlayScrollArea-c8Za77qs.js";
11
- import { d as me } from "./rendererLogging-gAhiHWkA.js";
12
- import { g as te, a as ke, s as be, b as Z } from "./preferencesCache-Bow6TxP1.js";
13
- import { f as Ie } from "./windowRegistry-Bk5lXIVd.js";
14
- var _e = /* @__PURE__ */ $("<div>");
15
- function ze(e) {
16
- const s = de(), u = se(), [v, n] = R(null), f = () => v() === e.pageId, [m, a] = R(null), d = T(() => u()[e.pageId] ?? (e.fallbackPageId ? u()[e.fallbackPageId] : null) ?? null);
17
- J(() => {
18
- e.pageId, n(null);
19
- }), J(() => {
20
- const o = d();
21
- if (!o) {
22
- a(null);
23
- return;
24
- }
25
- const t = he(o.name);
26
- if (t) {
27
- a(() => t);
28
- return;
29
- }
30
- a(null);
31
- let i = !1;
32
- B(() => {
33
- i = !0;
34
- }), Q().then((c) => {
35
- const k = d();
36
- i || !k || k.name !== o.name || a(() => c[o.name] ?? null);
37
- });
38
- });
39
- const l = T(() => m() ?? e.fallbackIcon), g = (o) => {
40
- if (e.interactive === !1) return;
41
- o.preventDefault(), o.stopPropagation();
42
- const t = e.pageId;
43
- fe() || Q();
44
- const i = [], c = e.onSettings;
45
- c && (i.push({
46
- label: x("Settings…"),
47
- onSelect: c
48
- }), i.push({
49
- type: "separator"
50
- })), i.push({
51
- label: x("Change icon"),
52
- onSelect: () => {
53
- e.pageId === t && n(t);
54
- }
55
- }), i.push({
56
- label: x("Reset to default icon"),
57
- disabled: !u()[e.pageId],
58
- onSelect: () => {
59
- e.pageId === t && ue(t);
60
- }
61
- }), s.open(o.clientX, o.clientY, i, o);
62
- }, h = (o) => {
63
- const t = v();
64
- !t || t !== e.pageId || (ve(t, {
65
- set: "tb",
66
- name: o
67
- }), n(null));
68
- };
69
- return [(() => {
70
- var o = _e();
71
- return o.$$contextmenu = g, z(o, _(ne, {
72
- get component() {
73
- return l();
74
- },
75
- get class() {
76
- return e.iconClass;
77
- },
78
- "aria-hidden": "true"
79
- })), C((t) => {
80
- var i = e.class, c = e.ariaLabel;
81
- return i !== t.e && I(o, t.e = i), c !== t.t && S(o, "aria-label", t.t = c), t;
82
- }, {
83
- e: void 0,
84
- t: void 0
85
- }), o;
86
- })(), _(P, {
87
- get when() {
88
- return f();
89
- },
90
- get children() {
91
- return _(ge, {
92
- open: f,
93
- onClose: () => n(null),
94
- onSelect: h,
95
- get currentIconName() {
96
- var o;
97
- return ((o = d()) == null ? void 0 : o.name) ?? null;
98
- }
99
- });
100
- }
101
- })];
102
- }
103
- W(["contextmenu"]);
104
- const we = "vk_header_7CNKc", ye = "vk_headerLeft_-fa7V", Le = "vk_headerActions_aaFA-", Se = "vk_headerIcon_c1sgk", De = "vk_headerIconSvg_7jyQp", Ce = "vk_titleRow_0A-NY", Re = "vk_backButton_GIWbu", $e = "vk_title_k1DVA", Pe = "vk_subtitle_RXfOz", Ee = "vk_refreshIconButton_bVyMc", xe = "vk_compact_e7ku-", y = {
105
- header: we,
106
- headerLeft: ye,
107
- headerActions: Le,
108
- headerIcon: Se,
109
- headerIconSvg: De,
110
- titleRow: Ce,
111
- backButton: Re,
112
- title: $e,
113
- subtitle: Pe,
114
- refreshIconButton: Ee,
115
- compact: xe
116
- };
117
- var Ae = /* @__PURE__ */ $("<div><h2>"), Be = /* @__PURE__ */ $("<p>"), Ke = /* @__PURE__ */ $("<div>"), Me = /* @__PURE__ */ $("<header><div><div>"), We = /* @__PURE__ */ $("<h2>");
118
- function mt(e) {
119
- return (() => {
120
- var s = Me(), u = s.firstChild, v = u.firstChild;
121
- return z(u, _(P, {
122
- get when() {
123
- return F(() => e.fallbackIcon != null)() && e.pageId != null;
124
- },
125
- get children() {
126
- return _(ze, {
127
- get pageId() {
128
- return e.pageId;
129
- },
130
- get fallbackPageId() {
131
- return e.fallbackIconPageId;
132
- },
133
- get fallbackIcon() {
134
- return e.fallbackIcon;
135
- },
136
- get class() {
137
- return y.headerIcon;
138
- },
139
- get iconClass() {
140
- return y.headerIconSvg;
141
- },
142
- get ariaLabel() {
143
- return e.iconAriaLabel;
144
- },
145
- get onSettings() {
146
- return e.onSettings;
147
- }
148
- });
149
- }
150
- }), v), z(v, _(P, {
151
- get when() {
152
- return e.onBack != null;
153
- },
154
- get fallback() {
155
- return (() => {
156
- var n = We();
157
- return z(n, () => e.title), C(() => I(n, y.title)), n;
158
- })();
159
- },
160
- get children() {
161
- var n = Ae(), f = n.firstChild;
162
- return z(n, _(j, {
163
- variant: "secondary",
164
- size: "sm",
165
- get class() {
166
- return y.backButton;
167
- },
168
- onClick: () => e.onBack(),
169
- get children() {
170
- return ["← ", F(() => e.backLabel ?? x("Back"))];
171
- }
172
- }), f), z(f, () => e.title), C((m) => {
173
- var a = y.titleRow, d = y.title;
174
- return a !== m.e && I(n, m.e = a), d !== m.t && I(f, m.t = d), m;
175
- }, {
176
- e: void 0,
177
- t: void 0
178
- }), n;
179
- }
180
- }), null), z(v, _(P, {
181
- get when() {
182
- return e.subtitle != null;
183
- },
184
- get children() {
185
- var n = Be();
186
- return z(n, () => e.subtitle), C(() => I(n, y.subtitle)), n;
187
- }
188
- }), null), z(s, _(P, {
189
- get when() {
190
- return e.onRefresh != null || e.actions != null;
191
- },
192
- get children() {
193
- var n = Ke();
194
- return z(n, _(P, {
195
- get when() {
196
- return e.onRefresh != null;
197
- },
198
- get children() {
199
- return _(j, {
200
- size: "md",
201
- variant: "secondary",
202
- iconOnly: !0,
203
- get class() {
204
- return y.refreshIconButton;
205
- },
206
- get disabled() {
207
- return e.refreshDisabled;
208
- },
209
- get loading() {
210
- return e.refreshing;
211
- },
212
- loadingDelay: 0,
213
- get "aria-label"() {
214
- return e.refreshAriaLabel ?? x("Refresh");
215
- },
216
- onClick: () => e.onRefresh(),
217
- get children() {
218
- return _(le, {
219
- "aria-hidden": "true"
220
- });
221
- }
222
- });
223
- }
224
- }), null), z(n, () => e.actions, null), C(() => I(n, y.headerActions)), n;
225
- }
226
- }), null), C((n) => {
227
- var f = y.header, m = {
228
- [y.compact]: e.variant === "compact"
229
- }, a = y.headerLeft;
230
- return f !== n.e && I(s, n.e = f), n.t = ae(s, m, n.t), a !== n.a && I(u, n.a = a), n;
231
- }, {
232
- e: void 0,
233
- t: void 0,
234
- a: void 0
235
- }), s;
236
- })();
237
- }
238
- const He = "vk_handle_fHazX", Oe = "vk_dragging_7oGBz", Ne = "vk_horizontal_nwaLt", Xe = "vk_vertical_wzd-m", Ye = "vk_indicator_aLgDs", E = {
239
- handle: He,
240
- dragging: Oe,
241
- horizontal: Ne,
242
- vertical: Xe,
243
- indicator: Ye
244
- };
245
- var Ve = /* @__PURE__ */ $("<div role=separator tabindex=0><div aria-hidden=true>");
246
- function kt(e) {
247
- const [s, u] = R(!1), v = () => e.orientation ?? "horizontal";
248
- let n;
249
- B(() => {
250
- n == null || n();
251
- });
252
- const f = (a) => {
253
- a.preventDefault();
254
- const d = a.currentTarget;
255
- d.setPointerCapture(a.pointerId), u(!0);
256
- let l = a.clientX, g = a.clientY;
257
- const h = (t) => {
258
- var w;
259
- const i = t.clientX - l, c = t.clientY - g;
260
- l = t.clientX, g = t.clientY;
261
- const k = v() === "horizontal" ? i : c;
262
- (w = e.onResize) == null || w.call(e, k);
263
- }, o = (t) => {
264
- try {
265
- d.releasePointerCapture(t.pointerId);
266
- } catch {
267
- }
268
- d.removeEventListener("pointermove", h), d.removeEventListener("pointerup", o), d.removeEventListener("pointercancel", o), n = void 0, u(!1);
269
- };
270
- n = () => {
271
- d.removeEventListener("pointermove", h), d.removeEventListener("pointerup", o), d.removeEventListener("pointercancel", o);
272
- }, d.addEventListener("pointermove", h), d.addEventListener("pointerup", o), d.addEventListener("pointercancel", o);
273
- }, m = (a) => {
274
- var l, g, h, o;
275
- const d = a.shiftKey ? 10 : 2;
276
- v() === "horizontal" ? D(a, "ArrowLeft") ? (a.preventDefault(), (l = e.onResize) == null || l.call(e, -d)) : D(a, "ArrowRight") && (a.preventDefault(), (g = e.onResize) == null || g.call(e, d)) : D(a, "ArrowUp") ? (a.preventDefault(), (h = e.onResize) == null || h.call(e, -d)) : D(a, "ArrowDown") && (a.preventDefault(), (o = e.onResize) == null || o.call(e, d));
277
- };
278
- return (() => {
279
- var a = Ve(), d = a.firstChild;
280
- return a.$$keydown = m, re(a, "dblclick", e.onDoubleClick, !0), a.$$pointerdown = f, C((l) => {
281
- var g = v(), h = e.value, o = e.min, t = e.max, i = e.ariaLabel ?? "Resize separator", c = `${E.handle} ${v() === "horizontal" ? E.horizontal : E.vertical} ${s() ? E.dragging : ""} ${e.class ?? ""}`, k = E.indicator;
282
- return g !== l.e && S(a, "aria-orientation", l.e = g), h !== l.t && S(a, "aria-valuenow", l.t = h), o !== l.a && S(a, "aria-valuemin", l.a = o), t !== l.o && S(a, "aria-valuemax", l.o = t), i !== l.i && S(a, "aria-label", l.i = i), c !== l.n && I(a, l.n = c), k !== l.s && I(d, l.s = k), l;
283
- }, {
284
- e: void 0,
285
- t: void 0,
286
- a: void 0,
287
- o: void 0,
288
- i: void 0,
289
- n: void 0,
290
- s: void 0
291
- }), a;
292
- })();
293
- }
294
- W(["pointerdown", "dblclick", "keydown"]);
295
- const Ue = "vk_container_DGAoE", Ge = "vk_horizontal_GnS2m", Fe = "vk_vertical_oOyQM", Te = "vk_firstPane_kDkKK", Je = "vk_secondPane_61mm8", Qe = "vk_paneScroll_-7IJF", je = "vk_separator_Gadcl", qe = "vk_separatorHorizontal_0e62B", Ze = "vk_separatorVertical_zIDqL", pe = "vk_dragging_iMvN6", et = "vk_handle_7YOEJ", L = {
296
- container: Ue,
297
- horizontal: Ge,
298
- vertical: Fe,
299
- firstPane: Te,
300
- secondPane: Je,
301
- paneScroll: Qe,
302
- separator: je,
303
- separatorHorizontal: qe,
304
- separatorVertical: Ze,
305
- dragging: pe,
306
- handle: et
307
- };
308
- var tt = /* @__PURE__ */ $("<div><div></div><div role=separator tabindex=0><div aria-hidden=true></div></div><div>");
309
- function bt(e) {
310
- const s = () => e.direction ?? "horizontal", u = () => e.minSize ?? 15, v = () => e.maxSize ?? 85, [n, f] = R(Math.min(v(), Math.max(u(), e.initialSize ?? 50))), [m, a] = R(!1);
311
- let d;
312
- const l = (t) => {
313
- var c;
314
- const i = Math.min(v(), Math.max(u(), t));
315
- f(i), (c = e.onResize) == null || c.call(e, i);
316
- }, g = () => {
317
- l(50);
318
- }, h = (t) => {
319
- t.preventDefault();
320
- const i = t.currentTarget;
321
- i.setPointerCapture(t.pointerId), a(!0);
322
- const c = (w) => {
323
- if (!d) return;
324
- const r = d.getBoundingClientRect();
325
- let b;
326
- s() === "horizontal" ? b = (w.clientX - r.left) / r.width * 100 : b = (w.clientY - r.top) / r.height * 100, l(b);
327
- }, k = (w) => {
328
- try {
329
- i.releasePointerCapture(w.pointerId);
330
- } catch (r) {
331
- me("ignore if capture already released", r);
332
- }
333
- i.removeEventListener("pointermove", c), i.removeEventListener("pointerup", k), i.removeEventListener("pointercancel", k), a(!1);
334
- };
335
- i.addEventListener("pointermove", c), i.addEventListener("pointerup", k), i.addEventListener("pointercancel", k);
336
- }, o = (t) => {
337
- if (D(t, "Home")) {
338
- t.preventDefault(), l(u());
339
- return;
340
- }
341
- if (D(t, "End")) {
342
- t.preventDefault(), l(v());
343
- return;
344
- }
345
- const i = t.shiftKey ? 5 : 1;
346
- s() === "horizontal" ? D(t, "ArrowLeft") ? (t.preventDefault(), l(n() - i)) : D(t, "ArrowRight") && (t.preventDefault(), l(n() + i)) : D(t, "ArrowUp") ? (t.preventDefault(), l(n() - i)) : D(t, "ArrowDown") && (t.preventDefault(), l(n() + i));
347
- };
348
- return (() => {
349
- var t = tt(), i = t.firstChild, c = i.nextSibling, k = c.firstChild, w = c.nextSibling;
350
- return ie((r) => {
351
- d = r;
352
- }, t), z(i, _(q, {
353
- get rootClass() {
354
- return L.paneScroll;
355
- },
356
- get children() {
357
- return e.first;
358
- }
359
- })), c.$$keydown = o, c.$$dblclick = g, c.$$pointerdown = h, z(w, _(q, {
360
- get rootClass() {
361
- return L.paneScroll;
362
- },
363
- get children() {
364
- return e.second;
365
- }
366
- })), C((r) => {
367
- var b = `${L.container} ${s() === "horizontal" ? L.horizontal : L.vertical} ${m() ? L.dragging : ""} ${e.class ?? ""}`, A = L.firstPane, K = {
368
- [s() === "horizontal" ? "width" : "height"]: `${n()}%`
369
- }, H = s(), O = Math.round(n()), N = u(), X = v(), Y = e.ariaLabel ?? "Resize pane", V = `${L.separator} ${s() === "horizontal" ? L.separatorHorizontal : L.separatorVertical}`, U = L.handle, G = L.secondPane;
370
- return b !== r.e && I(t, r.e = b), A !== r.t && I(i, r.t = A), r.a = oe(i, K, r.a), H !== r.o && S(c, "aria-orientation", r.o = H), O !== r.i && S(c, "aria-valuenow", r.i = O), N !== r.n && S(c, "aria-valuemin", r.n = N), X !== r.s && S(c, "aria-valuemax", r.s = X), Y !== r.h && S(c, "aria-label", r.h = Y), V !== r.r && I(c, r.r = V), U !== r.d && I(k, r.d = U), G !== r.l && I(w, r.l = G), r;
371
- }, {
372
- e: void 0,
373
- t: void 0,
374
- a: void 0,
375
- o: void 0,
376
- i: void 0,
377
- n: void 0,
378
- s: void 0,
379
- h: void 0,
380
- r: void 0,
381
- d: void 0,
382
- l: void 0
383
- }), t;
384
- })();
385
- }
386
- W(["pointerdown", "dblclick", "keydown"]);
387
- function M(e, s, u) {
388
- return Math.max(s, Math.min(u, e));
389
- }
390
- function nt(e, s, u, v) {
391
- return typeof e != "number" || Number.isNaN(e) ? s : M(e, u, v);
392
- }
393
- function p(e, s, u, v) {
394
- var n;
395
- return nt(
396
- (n = te().sidebarWidths) == null ? void 0 : n[e],
397
- s,
398
- u,
399
- v
400
- );
401
- }
402
- function ee(e) {
403
- var s;
404
- return ((s = te().sidebarCollapsed) == null ? void 0 : s[e]) === !0;
405
- }
406
- function It(e) {
407
- const [s, u] = R(
408
- p(e.storageKey, e.defaultWidth, e.min, e.max)
409
- ), [v, n] = R(
410
- ee(e.collapsedKey)
411
- ), [f, m] = R(!1), a = (r) => {
412
- if (f()) return;
413
- const b = r.detail;
414
- b && (b.key !== e.storageKey && b.key !== e.collapsedKey || ce(() => {
415
- u(
416
- p(e.storageKey, e.defaultWidth, e.min, e.max)
417
- ), n(ee(e.collapsedKey));
418
- }));
419
- }, d = ke();
420
- window.addEventListener(d, a), B(
421
- () => window.removeEventListener(d, a)
422
- );
423
- let l = null, g = null, h = typeof window < "u" ? window : globalThis;
424
- const o = () => {
425
- l && h.removeEventListener("mousemove", l), g && h.removeEventListener("mouseup", g), l = null, g = null;
426
- }, t = (r, b) => {
427
- r.preventDefault(), m(!0), h = Ie(b);
428
- const A = b.getBoundingClientRect().left;
429
- l = (K) => {
430
- u(M(K.clientX - A, e.min, e.max));
431
- }, g = () => {
432
- m(!1), Z(e.storageKey, s()), o();
433
- }, h.addEventListener("mousemove", l), h.addEventListener("mouseup", g);
434
- }, i = () => {
435
- const r = !v();
436
- n(r), be(e.collapsedKey, r);
437
- }, c = (r) => {
438
- const b = M(r, e.min, e.max);
439
- u(b), Z(e.storageKey, b);
440
- }, k = (r) => {
441
- c(s() + r);
442
- }, w = () => {
443
- c(e.defaultWidth);
444
- };
445
- return B(o), {
446
- width: s,
447
- collapsed: v,
448
- isResizing: f,
449
- startResize: t,
450
- resizeBy: k,
451
- resetWidth: w,
452
- toggleCollapse: i
453
- };
454
- }
455
- export {
456
- mt as P,
457
- bt as R,
458
- ze as a,
459
- kt as b,
460
- It as c
461
- };