@vokril/ui-solid 0.13.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (581) hide show
  1. package/CHANGELOG.md +45 -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-BFi0_e3t.cjs +2 -0
  8. package/dist/CommandPalette-CAH08DGN.js +4013 -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/vendorErrors/index.d.cts +7 -17
  76. package/dist/_internal/platform/vendorErrors/index.d.ts +7 -17
  77. package/dist/_internal/platform/window/displayOwner.d.cts +35 -14
  78. package/dist/_internal/platform/window/displayOwner.d.ts +35 -14
  79. package/dist/a11y/index.cjs +1 -1
  80. package/dist/a11y/index.js +1 -1
  81. package/dist/actions-DtaFGwh2.cjs +1 -0
  82. package/dist/actions-wwAHs3ZU.js +16 -0
  83. package/dist/{server/appThemeDerivation-BiCyiSuz.js → appThemeDerivation-B7-DjMIM.js} +181 -184
  84. package/dist/appThemeDerivation-NS3Vws8q.cjs +1 -0
  85. package/dist/async/createGuardedListLoader.d.cts +3 -0
  86. package/dist/async/createGuardedListLoader.d.ts +3 -0
  87. package/dist/charts/index.cjs +1 -1
  88. package/dist/charts/index.js +1 -1
  89. package/dist/createDialogShellFocus-BBFu3Z_O.js +282 -0
  90. package/dist/createDialogShellFocus-CxRqhbRN.cjs +1 -0
  91. package/dist/createResizableSidebar-CfFxQUny.js +449 -0
  92. package/dist/createResizableSidebar-q7aC7SAO.cjs +1 -0
  93. package/dist/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  94. package/dist/{server/createVirtualScroller-DBvqT0UW.js → createVirtualScroller-vu-l4rVv.js} +7 -7
  95. package/dist/defineSettings-D0CSMcyy.cjs +1 -0
  96. package/dist/defineSettings-Di1sG81q.js +407 -0
  97. package/dist/descriptor-CaHgh9N_.cjs +1 -0
  98. package/dist/{descriptor-CrCl515S.js → descriptor-eGtcBtpI.js} +5 -5
  99. package/dist/desktop/index.cjs +1 -1
  100. package/dist/desktop/index.js +500 -426
  101. package/dist/dialogFocusRestore-BrALT8Ew.js +35 -0
  102. package/dist/dialogFocusRestore-CcEsB50v.cjs +1 -0
  103. package/dist/electronBridge-BK92fycw.js +235 -0
  104. package/dist/electronBridge-cT0xww92.cjs +1 -0
  105. package/dist/errorHandler-BvPGW-Nm.js +373 -0
  106. package/dist/errorHandler-DoDAPpv2.cjs +3 -0
  107. package/dist/feedback/Loader.d.cts +6 -1
  108. package/dist/feedback/Loader.d.ts +6 -1
  109. package/dist/feedback/createPreference.d.cts +4 -1
  110. package/dist/feedback/createPreference.d.ts +4 -1
  111. package/dist/feedback/guidedInstallOutcome.d.cts +15 -2
  112. package/dist/feedback/guidedInstallOutcome.d.ts +15 -2
  113. package/dist/feedback/index.cjs +1 -1
  114. package/dist/feedback/index.js +37 -38
  115. package/dist/feedback/readFailureText.d.cts +20 -1
  116. package/dist/feedback/readFailureText.d.ts +20 -1
  117. package/dist/focusModality-BISb6-yg.cjs +1 -0
  118. package/dist/focusModality-FoLPWF-_.js +135 -0
  119. package/dist/forms/index.cjs +1 -1
  120. package/dist/forms/index.js +9 -9
  121. package/dist/grid/index.cjs +1 -1
  122. package/dist/grid/index.js +1 -1
  123. package/dist/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  124. package/dist/{server/headerIconOverrides-B7TQUBmD.js → headerIconOverrides-Dh2PaOcO.js} +1 -1
  125. package/dist/host/index.cjs +1 -1
  126. package/dist/host/index.d.cts +14 -16
  127. package/dist/host/index.d.ts +14 -16
  128. package/dist/host/index.js +53 -90
  129. package/dist/host/kitHost.d.cts +42 -0
  130. package/dist/host/kitHost.d.ts +42 -0
  131. package/dist/host/window.d.cts +3 -11
  132. package/dist/host/window.d.ts +3 -11
  133. package/dist/i18n/index.cjs +1 -1
  134. package/dist/i18n/index.js +1 -1
  135. package/dist/{server/i18n-D9k9xwuD.js → i18n-DW9kcu0G.js} +180 -178
  136. package/dist/i18n-DZ0JlZal.cjs +4 -0
  137. package/dist/index.cjs +1 -1
  138. package/dist/index.d.cts +1 -1
  139. package/dist/index.d.ts +1 -1
  140. package/dist/index.js +665 -738
  141. package/dist/isOneOf-9EXOSYJu.cjs +1 -0
  142. package/dist/isOneOf-Dtomuazg.js +6 -0
  143. package/dist/{keys-Bfgdfak_.js → keys-B2nlkpqc.js} +6 -9
  144. package/dist/keys-GMxY2wcl.cjs +1 -0
  145. package/dist/layout/createResizableSidebar.d.cts +14 -0
  146. package/dist/layout/createResizableSidebar.d.ts +14 -0
  147. package/dist/layout/index.cjs +1 -1
  148. package/dist/layout/index.js +3 -3
  149. package/dist/layout/sidebarWidthClamp.d.cts +1 -1
  150. package/dist/layout/sidebarWidthClamp.d.ts +1 -1
  151. package/dist/mainRealmDom-C12lr9lm.js +171 -0
  152. package/dist/mainRealmDom-S6teqEr4.cjs +1 -0
  153. package/dist/navigation/index.cjs +1 -1
  154. package/dist/navigation/index.js +1 -1
  155. package/dist/notifications/NotificationHost.d.cts +7 -1
  156. package/dist/notifications/NotificationHost.d.ts +7 -1
  157. package/dist/notifications/NotificationItem.d.cts +48 -15
  158. package/dist/notifications/NotificationItem.d.ts +48 -15
  159. package/dist/notifications/catalogAdapter.d.cts +28 -6
  160. package/dist/notifications/catalogAdapter.d.ts +28 -6
  161. package/dist/notifications/createNotificationPreviewRuntime.d.cts +21 -3
  162. package/dist/notifications/createNotificationPreviewRuntime.d.ts +21 -3
  163. package/dist/notifications/customSoundCache.d.cts +24 -24
  164. package/dist/notifications/customSoundCache.d.ts +24 -24
  165. package/dist/notifications/emailDigest.d.cts +34 -16
  166. package/dist/notifications/emailDigest.d.ts +34 -16
  167. package/dist/notifications/errorActionButtons.d.cts +18 -1
  168. package/dist/notifications/errorActionButtons.d.ts +18 -1
  169. package/dist/notifications/fireNotification.d.cts +27 -17
  170. package/dist/notifications/fireNotification.d.ts +27 -17
  171. package/dist/notifications/index.cjs +1 -1
  172. package/dist/notifications/index.d.cts +6 -12
  173. package/dist/notifications/index.d.ts +6 -12
  174. package/dist/notifications/index.js +64 -104
  175. package/dist/notifications/nativeEngine.d.cts +18 -15
  176. package/dist/notifications/nativeEngine.d.ts +18 -15
  177. package/dist/notifications/notificationAnalytics.d.cts +11 -6
  178. package/dist/notifications/notificationAnalytics.d.ts +11 -6
  179. package/dist/notifications/notificationAudio.d.cts +30 -23
  180. package/dist/notifications/notificationAudio.d.ts +30 -23
  181. package/dist/notifications/notificationCardServices.d.cts +23 -0
  182. package/dist/notifications/notificationCardServices.d.ts +23 -0
  183. package/dist/notifications/notificationOverlayChannel.d.cts +4 -4
  184. package/dist/notifications/notificationOverlayChannel.d.ts +4 -4
  185. package/dist/notifications/notificationOverlaySync.d.cts +7 -2
  186. package/dist/notifications/notificationOverlaySync.d.ts +7 -2
  187. package/dist/notifications/notificationService.d.cts +101 -0
  188. package/dist/notifications/notificationService.d.ts +101 -0
  189. package/dist/notifications/notificationTimeline.d.cts +47 -49
  190. package/dist/notifications/notificationTimeline.d.ts +47 -49
  191. package/dist/notifications/notifications.notifications.d.cts +0 -4
  192. package/dist/notifications/notifications.notifications.d.ts +0 -4
  193. package/dist/notifications/toast.d.cts +24 -28
  194. package/dist/notifications/toast.d.ts +24 -28
  195. package/dist/notifications/webhookDelivery.d.cts +12 -17
  196. package/dist/notifications/webhookDelivery.d.ts +12 -17
  197. package/dist/overlay/ConfirmDialog.d.cts +0 -8
  198. package/dist/overlay/ConfirmDialog.d.ts +0 -8
  199. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.cts +15 -14
  200. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.ts +15 -14
  201. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.cts +1 -3
  202. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.ts +1 -3
  203. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.cts +1 -1
  204. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.ts +1 -1
  205. package/dist/overlay/index.cjs +1 -1
  206. package/dist/overlay/index.d.cts +2 -3
  207. package/dist/overlay/index.d.ts +2 -3
  208. package/dist/overlay/index.js +110 -115
  209. package/dist/pageTourState-BcBF8w89.js +516 -0
  210. package/dist/pageTourState-CrbEU7QW.cjs +5 -0
  211. package/dist/server/{AttributeGrid-UJtHTip2.js → AttributeGrid-B2s_rp00.js} +3 -3
  212. package/dist/server/{AttributeGrid-CyMsR4GC.cjs → AttributeGrid-C7aWbIe5.cjs} +1 -1
  213. package/dist/server/{Button-BesBg6eW.js → Button-Ck03cbUs.js} +1 -1
  214. package/dist/server/{Button-PZulLru4.cjs → Button-DWFMF5y0.cjs} +1 -1
  215. package/dist/server/CommandPalette-2UppyMxU.js +3271 -0
  216. package/dist/server/CommandPalette-DwpZyhO6.cjs +1 -0
  217. package/dist/server/{CopyButton-D_sN2Ggp.cjs → CopyButton-BOmAUQD4.cjs} +1 -1
  218. package/dist/server/{CopyButton-I5xsXV07.js → CopyButton-UvtFwOtA.js} +1 -1
  219. package/dist/server/DateRangePicker-BJteKzOY.cjs +9 -0
  220. package/dist/server/{DateRangePicker-DGUl2aE3.js → DateRangePicker-Cr58DczM.js} +158 -143
  221. package/dist/server/GuidedTour-C4msn-Ag.js +400 -0
  222. package/dist/server/GuidedTour-Rlsp8rOe.cjs +1 -0
  223. package/dist/server/HostPortal-B9Tzk_uN.cjs +1 -0
  224. package/dist/server/HostPortal-X1iw719T.js +33 -0
  225. package/dist/server/HostWindowContext-B2m0bVra.js +32 -0
  226. package/dist/server/HostWindowContext-_VZCt7xE.cjs +1 -0
  227. package/dist/server/{IconPicker-BlD0VBca.cjs → IconPicker-9DfOxql6.cjs} +1 -1
  228. package/dist/server/{IconPicker-o8hUxjYU.js → IconPicker-N0wub1Aj.js} +4 -4
  229. package/dist/server/Modal-D__GTo-n.cjs +1 -0
  230. package/dist/server/{Modal-DmF6CwfY.js → Modal-DeQjfpkG.js} +3 -3
  231. package/dist/server/{PageSkeleton-BigztY5i.js → PageSkeleton-C41pXOcr.js} +460 -458
  232. package/dist/server/PageSkeleton-D4i-UcnI.cjs +30 -0
  233. package/dist/server/{SearchableSelect-Dn-cssWx.js → SearchableSelect-CEcuBnge.js} +2 -2
  234. package/dist/server/{SearchableSelect-R0Dwz9rz.cjs → SearchableSelect-Ca9g8ztu.cjs} +1 -1
  235. package/dist/server/StatusBarNotificationBell-BotYny7q.cjs +49 -0
  236. package/dist/server/StatusBarNotificationBell-DyEQF2W7.js +13968 -0
  237. package/dist/server/{Stepper-dBm8YaCw.cjs → Stepper--pusyxso.cjs} +1 -1
  238. package/dist/server/{Stepper-BaQ6Kexj.js → Stepper-B_eL85hK.js} +1 -1
  239. package/dist/server/{TimeSeriesChart-BbbfDyeA.js → TimeSeriesChart-aSHquoBv.js} +1 -1
  240. package/dist/server/{TimeSeriesChart-qPgMkkaW.cjs → TimeSeriesChart-nZeB5jtN.cjs} +1 -1
  241. package/dist/server/ToggleButton-57_0SA-V.cjs +1 -0
  242. package/dist/server/{ToggleButton-C0_QpslP.js → ToggleButton-DjlWwgLJ.js} +4 -4
  243. package/dist/server/VpTrash-D49oUUJh.cjs +1 -0
  244. package/dist/server/VpTrash-Dlq8o6Uv.js +298 -0
  245. package/dist/server/a11y/index.cjs +1 -1
  246. package/dist/server/a11y/index.js +1 -1
  247. package/dist/server/actions-DtaFGwh2.cjs +1 -0
  248. package/dist/server/actions-wwAHs3ZU.js +16 -0
  249. package/dist/{appThemeDerivation-BiCyiSuz.js → server/appThemeDerivation-B7-DjMIM.js} +181 -184
  250. package/dist/server/appThemeDerivation-NS3Vws8q.cjs +1 -0
  251. package/dist/server/charts/index.cjs +1 -1
  252. package/dist/server/charts/index.js +1 -1
  253. package/dist/server/{format-CYCi8g4r.js → createDialogShellFocus-DNjzmcGj.js} +110 -126
  254. package/dist/server/createDialogShellFocus-PRRfMli-.cjs +1 -0
  255. package/dist/server/createResizableSidebar-CZtGmUnA.cjs +1 -0
  256. package/dist/server/createResizableSidebar-DdWdAB9l.js +287 -0
  257. package/dist/server/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  258. package/dist/{createVirtualScroller-DBvqT0UW.js → server/createVirtualScroller-vu-l4rVv.js} +7 -7
  259. package/dist/server/defineSettings-D0CSMcyy.cjs +1 -0
  260. package/dist/server/defineSettings-Di1sG81q.js +407 -0
  261. package/dist/server/descriptor-CEGvvJZh.cjs +1 -0
  262. package/dist/server/{descriptor-DtZDXBe6.js → descriptor-GLoKPx6x.js} +4 -4
  263. package/dist/server/desktop/index.cjs +1 -1
  264. package/dist/server/desktop/index.js +389 -315
  265. package/dist/server/dialogFocusRestore-BrALT8Ew.js +35 -0
  266. package/dist/server/dialogFocusRestore-CcEsB50v.cjs +1 -0
  267. package/dist/server/electronBridge-BK92fycw.js +235 -0
  268. package/dist/server/electronBridge-cT0xww92.cjs +1 -0
  269. package/dist/server/errorHandler-BvPGW-Nm.js +373 -0
  270. package/dist/server/errorHandler-DoDAPpv2.cjs +3 -0
  271. package/dist/server/feedback/index.cjs +1 -1
  272. package/dist/server/feedback/index.js +37 -38
  273. package/dist/server/focusModality-D-nxv8Er.cjs +1 -0
  274. package/dist/server/{focusModality-BCX5GH0P.js → focusModality-nWNVX3JG.js} +41 -41
  275. package/dist/server/forms/index.cjs +1 -1
  276. package/dist/server/forms/index.js +7 -7
  277. package/dist/server/grid/index.cjs +1 -1
  278. package/dist/server/grid/index.js +1 -1
  279. package/dist/server/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  280. package/dist/{headerIconOverrides-B7TQUBmD.js → server/headerIconOverrides-Dh2PaOcO.js} +1 -1
  281. package/dist/server/host/index.cjs +1 -1
  282. package/dist/server/host/index.js +53 -90
  283. package/dist/server/i18n/index.cjs +1 -1
  284. package/dist/server/i18n/index.js +1 -1
  285. package/dist/{i18n-D9k9xwuD.js → server/i18n-DW9kcu0G.js} +180 -178
  286. package/dist/server/i18n-DZ0JlZal.cjs +4 -0
  287. package/dist/server/{index-B4epvfiq.js → index-BNYr6EIW.js} +89 -90
  288. package/dist/server/index-Cqod09d_.cjs +1 -0
  289. package/dist/server/index.cjs +1 -1
  290. package/dist/server/index.js +810 -883
  291. package/dist/server/layout/index.cjs +1 -1
  292. package/dist/server/layout/index.js +3 -3
  293. package/dist/server/mainRealmDom-DPNaDWtw.js +121 -0
  294. package/dist/server/mainRealmDom-DwZVMPnO.cjs +1 -0
  295. package/dist/server/navigation/index.cjs +1 -1
  296. package/dist/server/navigation/index.js +1 -1
  297. package/dist/server/notifications/index.cjs +1 -1
  298. package/dist/server/notifications/index.js +63 -103
  299. package/dist/server/overlay/index.cjs +1 -1
  300. package/dist/server/overlay/index.js +104 -109
  301. package/dist/server/pageTourState-BcBF8w89.js +516 -0
  302. package/dist/server/pageTourState-CrbEU7QW.cjs +5 -0
  303. package/dist/server/settings/index.cjs +1 -1
  304. package/dist/server/settings/index.js +23 -24
  305. package/dist/server/stateDbStore-CThsVch-.cjs +1 -0
  306. package/dist/server/stateDbStore-DHZFUIEt.js +57 -0
  307. package/dist/server/tokens/index.cjs +1 -1
  308. package/dist/server/tokens/index.js +19 -20
  309. package/dist/server/tree/index.cjs +1 -1
  310. package/dist/server/tree/index.js +1 -1
  311. package/dist/server/useListCommands-BO_XrRHj.js +38 -0
  312. package/dist/server/useListCommands-Dnm4ktP1.cjs +1 -0
  313. package/dist/server/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  314. package/dist/server/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
  315. package/dist/server/window-CUK6x8Pj.js +36 -0
  316. package/dist/server/window-_BfSgFGO.cjs +1 -0
  317. package/dist/server/windowRegistry-CxXtP-iY.cjs +1 -0
  318. package/dist/server/windowRegistry-DeGmXt6W.js +20 -0
  319. package/dist/settings/index.cjs +1 -1
  320. package/dist/settings/index.d.cts +1 -1
  321. package/dist/settings/index.d.ts +1 -1
  322. package/dist/settings/index.js +23 -24
  323. package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +3 -10
  324. package/dist/solid/_internal/app/keybindings/context/useListCommands.js +1 -2
  325. package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +8 -1
  326. package/dist/solid/_internal/app/menu/menuFavorites.js +45 -40
  327. package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +22 -22
  328. package/dist/solid/_internal/app/onboarding/pageTourState.js +94 -92
  329. package/dist/solid/_internal/app/platform/electronBridge.js +15 -49
  330. package/dist/solid/_internal/app/settings/secrets/notificationSecrets.js +0 -10
  331. package/dist/solid/_internal/app/windows/window/HostWindowContext.jsx +4 -13
  332. package/dist/solid/_internal/contract/catalogNotify.js +1 -24
  333. package/dist/solid/_internal/contract/hostErrorText.js +1 -14
  334. package/dist/solid/_internal/contract/notificationCatalog.js +1 -1
  335. package/dist/solid/_internal/platform/errors/diagnosticReport.js +2 -3
  336. package/dist/solid/_internal/platform/logging/consoleLogger.js +6 -0
  337. package/dist/solid/_internal/platform/settings/registry/defineSettings.js +48 -20
  338. package/dist/solid/_internal/platform/settings/registry/stateDbStore.js +29 -19
  339. package/dist/solid/_internal/platform/vendorErrors/index.js +4 -17
  340. package/dist/solid/_internal/platform/window/displayOwner.js +105 -114
  341. package/dist/solid/a11y/AriaAnnouncer.jsx +2 -3
  342. package/dist/solid/async/createGuardedListLoader.js +1 -1
  343. package/dist/solid/desktop/menu/MenuPanel.jsx +7 -7
  344. package/dist/solid/feedback/ErrorBoundary.jsx +7 -4
  345. package/dist/solid/feedback/Loader.jsx +1 -2
  346. package/dist/solid/feedback/createPreference.js +3 -2
  347. package/dist/solid/feedback/guidedInstallOutcome.js +1 -2
  348. package/dist/solid/feedback/preference.notifications.js +1 -2
  349. package/dist/solid/feedback/readFailureText.js +1 -2
  350. package/dist/solid/host/index.js +8 -16
  351. package/dist/solid/host/window.js +15 -22
  352. package/dist/solid/i18n/i18n.js +5 -6
  353. package/dist/solid/index.js +0 -1
  354. package/dist/solid/layout/createResizableSidebar.js +15 -23
  355. package/dist/solid/notifications/NotificationHost.jsx +21 -29
  356. package/dist/solid/notifications/NotificationItem.jsx +28 -104
  357. package/dist/solid/notifications/NotificationPanel.jsx +33 -44
  358. package/dist/solid/notifications/NotificationsCenter.jsx +22 -20
  359. package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
  360. package/dist/solid/notifications/catalogAdapter.js +61 -62
  361. package/dist/solid/notifications/createNotificationPreviewRuntime.js +29 -19
  362. package/dist/solid/notifications/customSoundCache.js +26 -21
  363. package/dist/solid/notifications/emailDigest.js +74 -86
  364. package/dist/solid/notifications/errorActionButtons.js +6 -11
  365. package/dist/solid/notifications/fireNotification.js +14 -19
  366. package/dist/solid/notifications/index.js +3 -12
  367. package/dist/solid/notifications/nativeEngine.js +6 -19
  368. package/dist/solid/notifications/notificationAnalytics.js +32 -38
  369. package/dist/solid/notifications/notificationAudio.js +77 -74
  370. package/dist/solid/notifications/notificationCardServices.js +34 -0
  371. package/dist/solid/notifications/notificationOverlayChannel.js +3 -3
  372. package/dist/solid/notifications/notificationOverlaySync.js +18 -23
  373. package/dist/solid/notifications/notificationService.js +135 -0
  374. package/dist/solid/notifications/notificationTimeline.js +117 -124
  375. package/dist/solid/notifications/notifications.notifications.js +3 -22
  376. package/dist/solid/notifications/toast.js +168 -213
  377. package/dist/solid/notifications/webhookDelivery.js +27 -53
  378. package/dist/solid/overlay/ConfirmDialog.jsx +1 -33
  379. package/dist/solid/overlay/command-palette/CommandPalette.jsx +3 -1
  380. package/dist/solid/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.js +26 -25
  381. package/dist/solid/overlay/command-palette/unifiedSearch/settingsSearchContributor.js +2 -7
  382. package/dist/solid/overlay/index.js +0 -3
  383. package/dist/solid/settings/index.js +1 -1
  384. package/dist/solid/tokens/index.js +1 -1
  385. package/dist/solid/tokens/palette/themeRegistry.js +20 -22
  386. package/dist/stateDbStore-CThsVch-.cjs +1 -0
  387. package/dist/stateDbStore-DHZFUIEt.js +57 -0
  388. package/dist/style.css +1 -1
  389. package/dist/tokens/index.cjs +1 -1
  390. package/dist/tokens/index.d.cts +1 -1
  391. package/dist/tokens/index.d.ts +1 -1
  392. package/dist/tokens/index.js +19 -20
  393. package/dist/tokens/palette/themeRegistry.d.cts +17 -22
  394. package/dist/tokens/palette/themeRegistry.d.ts +17 -22
  395. package/dist/{tooltipCoordinator-Zim5pWzk.js → tooltipCoordinator-BzxEyKhA.js} +2 -2
  396. package/dist/tooltipCoordinator-DslqMlsI.cjs +1 -0
  397. package/dist/tree/index.cjs +1 -1
  398. package/dist/tree/index.js +1 -1
  399. package/dist/ui.css +1 -1
  400. package/dist/{useFloatingDropdown-CfPEYRut.js → useFloatingDropdown-BN4J092P.js} +1 -1
  401. package/dist/{useFloatingDropdown-DcU7ozDg.cjs → useFloatingDropdown-D9OvEFAp.cjs} +1 -1
  402. package/dist/useListCommands-BO_XrRHj.js +38 -0
  403. package/dist/useListCommands-Dnm4ktP1.cjs +1 -0
  404. package/dist/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  405. package/dist/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
  406. package/dist/window-CUK6x8Pj.js +36 -0
  407. package/dist/window-_BfSgFGO.cjs +1 -0
  408. package/dist/windowRegistry-CxXtP-iY.cjs +1 -0
  409. package/dist/windowRegistry-DeGmXt6W.js +20 -0
  410. package/package.json +1 -1
  411. package/dist/CommandPalette-DeEImZ8D.cjs +0 -2
  412. package/dist/CommandPalette-yqvM9AuU.js +0 -3897
  413. package/dist/DateRangePicker-7t4JKCp1.cjs +0 -9
  414. package/dist/GuidedTour-C_Lxe1t_.cjs +0 -21
  415. package/dist/GuidedTour-lsljVkPL.js +0 -11216
  416. package/dist/HostWindowContext-DqDeJmBP.cjs +0 -1
  417. package/dist/HostWindowContext-KL4U1qUv.js +0 -40
  418. package/dist/Modal-CJhd27dM.cjs +0 -1
  419. package/dist/PageSkeleton-SYSL4Adl.cjs +0 -30
  420. package/dist/Progress-B5YmNeyU.js +0 -56
  421. package/dist/Progress-BNy0wsJl.cjs +0 -1
  422. package/dist/StatusBarNotificationBell-B1bvE_SO.js +0 -2140
  423. package/dist/StatusBarNotificationBell-Cqo6cZbO.cjs +0 -4
  424. package/dist/ToggleButton-BmwDfsn4.cjs +0 -1
  425. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.cts +0 -20
  426. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.ts +0 -20
  427. package/dist/_internal/app/settings/theme/appThemeChange.d.cts +0 -20
  428. package/dist/_internal/app/settings/theme/appThemeChange.d.ts +0 -20
  429. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.cts +0 -6
  430. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.ts +0 -6
  431. package/dist/_internal/base/listenerDispatch.d.cts +0 -14
  432. package/dist/_internal/base/listenerDispatch.d.ts +0 -14
  433. package/dist/_internal/contract/appName.d.cts +0 -10
  434. package/dist/_internal/contract/appName.d.ts +0 -10
  435. package/dist/_internal/contract/hostText.d.cts +0 -25
  436. package/dist/_internal/contract/hostText.d.ts +0 -25
  437. package/dist/_internal/platform/logging/rendererLogging.d.cts +0 -65
  438. package/dist/_internal/platform/logging/rendererLogging.d.ts +0 -65
  439. package/dist/_internal/platform/settings/preferencesCache.d.cts +0 -162
  440. package/dist/_internal/platform/settings/preferencesCache.d.ts +0 -162
  441. package/dist/appThemeDerivation-DmKbTiFi.cjs +0 -1
  442. package/dist/catalogNotify-BcY9oqVy.js +0 -1223
  443. package/dist/catalogNotify-DacJjC-p.cjs +0 -27
  444. package/dist/createResizableSidebar-BIhyo5zN.cjs +0 -1
  445. package/dist/createResizableSidebar-Cqv-1IXG.js +0 -461
  446. package/dist/defineSettings-CcYXt2Jf.js +0 -391
  447. package/dist/defineSettings-yHQdUwxI.cjs +0 -1
  448. package/dist/descriptor-Dmch-3AF.cjs +0 -1
  449. package/dist/dialogFocusRestore-B4ggeVAM.js +0 -64
  450. package/dist/dialogFocusRestore-BcMPrbig.cjs +0 -1
  451. package/dist/displayOwner-eYQHHvjt.cjs +0 -1
  452. package/dist/displayOwner-mT80Oyi-.js +0 -75
  453. package/dist/feedback/preference.notifications.samples.d.cts +0 -1
  454. package/dist/feedback/preference.notifications.samples.d.ts +0 -1
  455. package/dist/focusModality-BNjYldd9.cjs +0 -1
  456. package/dist/focusModality-DxudpWPs.js +0 -135
  457. package/dist/format-BS7oDguE.js +0 -298
  458. package/dist/format-CuANkXXB.cjs +0 -1
  459. package/dist/i18n-DXXArz-m.cjs +0 -4
  460. package/dist/keys-BeeC5_RZ.cjs +0 -1
  461. package/dist/mainRealmDom-CkoRyNhZ.cjs +0 -1
  462. package/dist/mainRealmDom-kEStLHIY.js +0 -102
  463. package/dist/menuFavorites-BmdM_qV5.js +0 -69
  464. package/dist/menuFavorites-DoDFvtlQ.cjs +0 -1
  465. package/dist/notification-DygvQB_o.cjs +0 -1
  466. package/dist/notificationSuppressions-DGfo2QKG.cjs +0 -1
  467. package/dist/notificationSuppressions-ddyK85cB.js +0 -430
  468. package/dist/notifications/copyToClipboard.d.cts +0 -6
  469. package/dist/notifications/copyToClipboard.d.ts +0 -6
  470. package/dist/notifications/createCopyFlash.d.cts +0 -17
  471. package/dist/notifications/createCopyFlash.d.ts +0 -17
  472. package/dist/notifications/notificationDisplayOwner.d.cts +0 -27
  473. package/dist/notifications/notificationDisplayOwner.d.ts +0 -27
  474. package/dist/notifications/notificationRepeaterEntryFactory.d.cts +0 -36
  475. package/dist/notifications/notificationRepeaterEntryFactory.d.ts +0 -36
  476. package/dist/notifications/notifications.notifications.samples.d.cts +0 -1
  477. package/dist/notifications/notifications.notifications.samples.d.ts +0 -1
  478. package/dist/notifications/persistWithRollbackOnFailure.d.cts +0 -18
  479. package/dist/notifications/persistWithRollbackOnFailure.d.ts +0 -18
  480. package/dist/notifications/startNotificationSchedulers.d.cts +0 -2
  481. package/dist/notifications/startNotificationSchedulers.d.ts +0 -2
  482. package/dist/notifications/startNotificationSettingsReactions.d.cts +0 -46
  483. package/dist/notifications/startNotificationSettingsReactions.d.ts +0 -46
  484. package/dist/overlay/ToastHost.d.cts +0 -7
  485. package/dist/overlay/ToastHost.d.ts +0 -7
  486. package/dist/pageTourState-CIr8ockR.js +0 -92
  487. package/dist/pageTourState-D8Uapyft.cjs +0 -1
  488. package/dist/preferencesCache-Bow6TxP1.js +0 -65
  489. package/dist/preferencesCache-D7mm43_n.cjs +0 -1
  490. package/dist/rendererLogging-Dt5FZ8mq.cjs +0 -7
  491. package/dist/rendererLogging-gAhiHWkA.js +0 -822
  492. package/dist/server/CommandPalette-C8treS8g.cjs +0 -1
  493. package/dist/server/CommandPalette-Dslsq5Ez.js +0 -3155
  494. package/dist/server/DateRangePicker-CDKi9BAf.cjs +0 -9
  495. package/dist/server/GuidedTour-B3T9rAPX.cjs +0 -20
  496. package/dist/server/GuidedTour-DSoSZZby.js +0 -10983
  497. package/dist/server/HostWindowContext-DqDeJmBP.cjs +0 -1
  498. package/dist/server/HostWindowContext-KL4U1qUv.js +0 -40
  499. package/dist/server/Modal-CCUwQYso.cjs +0 -1
  500. package/dist/server/PageSkeleton-DdpXfZoC.cjs +0 -30
  501. package/dist/server/Progress-CRbj6nEy.cjs +0 -1
  502. package/dist/server/Progress-nsDy6clG.js +0 -41
  503. package/dist/server/StatusBarNotificationBell-C64Odn2C.js +0 -1974
  504. package/dist/server/StatusBarNotificationBell-DY0Q27su.cjs +0 -4
  505. package/dist/server/ToggleButton-1bNYk35x.cjs +0 -1
  506. package/dist/server/VpTerminal-Bpw-d9wD.js +0 -186
  507. package/dist/server/VpTerminal-C-U_dN_x.cjs +0 -1
  508. package/dist/server/VpTrash-CagiU2Uj.cjs +0 -1
  509. package/dist/server/VpTrash-DVBfts9_.js +0 -116
  510. package/dist/server/appThemeDerivation-DmKbTiFi.cjs +0 -1
  511. package/dist/server/catalogNotify-MCW2sa2e.cjs +0 -27
  512. package/dist/server/catalogNotify-s3YymAe8.js +0 -1261
  513. package/dist/server/createResizableSidebar-MIzUlfdd.js +0 -299
  514. package/dist/server/createResizableSidebar-TdxLuiY8.cjs +0 -1
  515. package/dist/server/defineSettings-CcYXt2Jf.js +0 -391
  516. package/dist/server/defineSettings-yHQdUwxI.cjs +0 -1
  517. package/dist/server/descriptor-DAyyoF-I.cjs +0 -1
  518. package/dist/server/dialogFocusRestore-B4ggeVAM.js +0 -64
  519. package/dist/server/dialogFocusRestore-BcMPrbig.cjs +0 -1
  520. package/dist/server/displayOwner-eYQHHvjt.cjs +0 -1
  521. package/dist/server/displayOwner-mT80Oyi-.js +0 -75
  522. package/dist/server/focusModality-BKgJWRlC.cjs +0 -1
  523. package/dist/server/format-WfZycMBL.cjs +0 -1
  524. package/dist/server/i18n-DXXArz-m.cjs +0 -4
  525. package/dist/server/index-DlQYWckZ.cjs +0 -1
  526. package/dist/server/mainRealmDom-BCL1p_q6.cjs +0 -1
  527. package/dist/server/mainRealmDom-Dk0xb5Gj.js +0 -67
  528. package/dist/server/menuFavorites-BmdM_qV5.js +0 -69
  529. package/dist/server/menuFavorites-DoDFvtlQ.cjs +0 -1
  530. package/dist/server/notification-DygvQB_o.cjs +0 -1
  531. package/dist/server/notificationSuppressions-B-LKq9ZU.js +0 -391
  532. package/dist/server/notificationSuppressions-Dcc2WFBZ.cjs +0 -1
  533. package/dist/server/pageTourState-CIr8ockR.js +0 -92
  534. package/dist/server/pageTourState-D8Uapyft.cjs +0 -1
  535. package/dist/server/preferencesCache-Bow6TxP1.js +0 -65
  536. package/dist/server/preferencesCache-D7mm43_n.cjs +0 -1
  537. package/dist/server/rendererLogging-Dt5FZ8mq.cjs +0 -7
  538. package/dist/server/rendererLogging-gAhiHWkA.js +0 -822
  539. package/dist/server/settingsSearchContributor-CRZsl2Q_.js +0 -199
  540. package/dist/server/settingsSearchContributor-DH8UFpp2.cjs +0 -1
  541. package/dist/server/stateDbStore-Ds3zJ4cd.js +0 -47
  542. package/dist/server/stateDbStore-THFfFGa0.cjs +0 -1
  543. package/dist/server/useListCommands-Bf7aOTXZ.js +0 -61
  544. package/dist/server/useListCommands-ucngC3t4.cjs +0 -1
  545. package/dist/server/useSettingsSubscription-cu943hND.js +0 -11
  546. package/dist/server/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  547. package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  548. package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  549. package/dist/server/windowRegistry-Bk5lXIVd.js +0 -62
  550. package/dist/server/windowRegistry-CGvOBUsw.cjs +0 -1
  551. package/dist/settingsSearchContributor-DWP5dwn3.js +0 -199
  552. package/dist/settingsSearchContributor-Dltbs1j_.cjs +0 -1
  553. package/dist/solid/_internal/app/contexts/WorkspaceTabsContext.js +0 -10
  554. package/dist/solid/_internal/app/settings/theme/appThemeChange.js +0 -5
  555. package/dist/solid/_internal/app/settings/ui/shell/openSettingsModal.js +0 -15
  556. package/dist/solid/_internal/base/listenerDispatch.js +0 -12
  557. package/dist/solid/_internal/contract/appName.js +0 -7
  558. package/dist/solid/_internal/contract/hostText.js +0 -15
  559. package/dist/solid/_internal/platform/logging/rendererLogging.js +0 -42
  560. package/dist/solid/_internal/platform/settings/preferencesCache.js +0 -329
  561. package/dist/solid/feedback/preference.notifications.samples.js +0 -5
  562. package/dist/solid/notifications/copyToClipboard.js +0 -21
  563. package/dist/solid/notifications/createCopyFlash.js +0 -26
  564. package/dist/solid/notifications/notificationDisplayOwner.js +0 -1
  565. package/dist/solid/notifications/notificationRepeaterEntryFactory.js +0 -20
  566. package/dist/solid/notifications/notifications.notifications.samples.js +0 -14
  567. package/dist/solid/notifications/persistWithRollbackOnFailure.js +0 -11
  568. package/dist/solid/notifications/startNotificationSchedulers.js +0 -8
  569. package/dist/solid/notifications/startNotificationSettingsReactions.js +0 -22
  570. package/dist/solid/overlay/ToastHost.jsx +0 -1
  571. package/dist/stateDbStore-Ds3zJ4cd.js +0 -47
  572. package/dist/stateDbStore-THFfFGa0.cjs +0 -1
  573. package/dist/tooltipCoordinator-Causlcgt.cjs +0 -1
  574. package/dist/useListCommands-Bf7aOTXZ.js +0 -61
  575. package/dist/useListCommands-ucngC3t4.cjs +0 -1
  576. package/dist/useSettingsSubscription-cu943hND.js +0 -11
  577. package/dist/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  578. package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  579. package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  580. package/dist/windowRegistry-Bk5lXIVd.js +0 -62
  581. package/dist/windowRegistry-CGvOBUsw.cjs +0 -1
@@ -1,1974 +0,0 @@
1
- import { a0 as At, m as Dt, F as Et, O as xt, z as Ot, P as Pt, k as Nt, a1 as Mt, d as Rt, r as Bt, o as $t, J as G, Y as Le, I as He, n as Ue, $ as Ft, w as zt, A as ce, a2 as Vt, a3 as Lt, a4 as Ht, a5 as Ut, y as be, a6 as Gt, a7 as Wt, X as Qt, a8 as qt, x as jt } from "./catalogNotify-s3YymAe8.js";
2
- import { n as z, D as Oe } from "./notification-CpDYN_iu.js";
3
- import { e as q, g as ae } from "./rendererLogging-gAhiHWkA.js";
4
- import { d as Yt, e as Pe, F as le, k as Ge, H as Jt, I as Kt, u as Xt } from "./notificationSuppressions-B-LKq9ZU.js";
5
- import { ssr as P, escape as i, createComponent as o, mergeProps as Zt, ssrAttribute as p, memo as W, Dynamic as en } from "solid-js/web";
6
- import { B as ie, c as tn } from "./mainRealmDom-Dk0xb5Gj.js";
7
- import { Show as E, useContext as nn, createSignal as x, onMount as ne, onCleanup as Y, createMemo as H, For as te } from "solid-js";
8
- import { I as on, P as We } from "./Input-DaEN2JJd.js";
9
- import { T as rn, o as Qe } from "./visibleBrowserRegistry-Dw2Y4y_I.js";
10
- import { G as sn, P as ve, D as an, g as cn, h as ln } from "./GuidedTour-DSoSZZby.js";
11
- import { t as n } from "./i18n-D9k9xwuD.js";
12
- import { e as un, g as dn, s as me, w as Ne, a as gn, b as fn, l as pn, r as mn, j as hn, f as he } from "./pageTourState-CIr8ockR.js";
13
- import { u as ye } from "./useSettingsSubscription-cu943hND.js";
14
- import { u as qe } from "./DesktopContextMenuContext-DJ3PnqAv.js";
15
- import { B as D } from "./Button-BesBg6eW.js";
16
- import { C as bn, s as de } from "./format-CYCi8g4r.js";
17
- import { D as vn } from "./DateRangePicker-DGUl2aE3.js";
18
- import { O as je } from "./OverlayScrollArea-221dfKyz.js";
19
- import { u as Sn } from "./HostWindowContext-KL4U1qUv.js";
20
- import { V as yn, a as Tn, b as Se, c as kn, d as Cn, e as _n, f as In, g as Te } from "./VpTrash-DVBfts9_.js";
21
- import { V as wn } from "./VpDots-Dr095HAL.js";
22
- import { V as An } from "./VpCheck-XZpSme0g.js";
23
- import { V as Dn } from "./VpCopy-DMwQfYfp.js";
24
- import { V as En } from "./VpMinus-Z3sgLAcV.js";
25
- import { V as xn, e as On } from "./Popover-BolicH3A.js";
26
- import { i as Pn } from "./isOneOf-Dtomuazg.js";
27
- import { E as Nn } from "./EmptyState-Csydyy_7.js";
28
- import { V as Ye, a as Me, b as Mn, c as Rn, d as Bn } from "./VpTerminal-Bpw-d9wD.js";
29
- import { V as $n } from "./VpClose-1RAQ20H9.js";
30
- import { V as Fn } from "./VpAlertTriangle-BX9COr3k.js";
31
- const zn = "vk_bar_iSxMW", Vn = "vk_barCompact_SCRfr", Ln = "vk_search_P2Oii", Hn = "vk_dateBtn_v3RN1", oe = {
32
- bar: zn,
33
- barCompact: Vn,
34
- search: Ln,
35
- dateBtn: Hn
36
- };
37
- var Un = ['<div class="', '">', "", "", "</div>"];
38
- function Gn(e) {
39
- return P(Un, `${i(oe.bar, !0)} ${e.compact ? i(oe.barCompact, !0) : ""} ${i(e.class ?? "", !0)}`, i(o(on, {
40
- type: "text",
41
- get class() {
42
- return oe.search;
43
- },
44
- get placeholder() {
45
- return e.searchPlaceholder ?? n("Search…");
46
- },
47
- get value() {
48
- return e.searchValue;
49
- },
50
- onInput: (r) => e.onSearchInput(r.currentTarget.value)
51
- })), i(o(E, {
52
- get when() {
53
- return e.onDateRangeChange;
54
- },
55
- get children() {
56
- return o(vn, Zt({
57
- get value() {
58
- return e.dateRange ?? null;
59
- },
60
- onChange: (r) => {
61
- var s;
62
- return (s = e.onDateRangeChange) == null ? void 0 : s.call(e, r);
63
- },
64
- get triggerClass() {
65
- return oe.dateBtn;
66
- }
67
- }, () => e.dateRangeAlign ? {
68
- align: e.dateRangeAlign
69
- } : {}));
70
- }
71
- })), i(e.children));
72
- }
73
- const Je = [
74
- "general",
75
- "vendor-error",
76
- "sql-execution",
77
- "connection",
78
- "ssh",
79
- "schema",
80
- "users",
81
- "tablespaces",
82
- "locking",
83
- "monitoring",
84
- "source-control",
85
- "file-system",
86
- "settings",
87
- "rss",
88
- "plugins",
89
- "workspace",
90
- "dev"
91
- ];
92
- function Wn(e) {
93
- return Pn(Je, e);
94
- }
95
- function Qn(e, r) {
96
- const s = e.trim();
97
- if (!s) return null;
98
- if (r)
99
- try {
100
- const a = new RegExp(s, "i");
101
- return { test: (d) => a.test(d) };
102
- } catch {
103
- return Re(s);
104
- }
105
- return Re(s);
106
- }
107
- function Re(e) {
108
- const r = e.toLowerCase();
109
- return {
110
- test: (s) => s.toLowerCase().includes(r)
111
- };
112
- }
113
- function qn(e, r) {
114
- const { tones: s, sources: a, priorities: d, dateBounds: m, searchMatcher: v } = r;
115
- return e.filter((c) => !(s.size > 0 && !s.has(c.tone) || a.size > 0 && !a.has(c.source) || d.size > 0 && !d.has(c.priority) || m && (c.createdAt < m.start || c.createdAt > m.end) || v && !v.test(`${c.message} ${c.source}`)));
116
- }
117
- const jn = {
118
- general: {
119
- label: "General",
120
- description: "Uncategorized notifications. Default for callers that do not pass a source."
121
- },
122
- "vendor-error": {
123
- label: "Database errors",
124
- description: "Errors carrying a recognised vendor code (Oracle ORA-NNNNN, PG SQLSTATE, MSSQL Msg N, …). Treated as urgent when the matching setting is enabled."
125
- },
126
- "sql-execution": {
127
- label: "SQL execution",
128
- description: "Query completion / cancellation / failure notifications."
129
- },
130
- connection: {
131
- label: "Connection",
132
- description: "Connect, disconnect, test, vault credential events."
133
- },
134
- ssh: {
135
- label: "SSH & terminal",
136
- description: "SSH dock, tunnels, terminal lifecycle."
137
- },
138
- schema: {
139
- label: "Schema browser",
140
- description: "DDL extraction, copy-name, refresh."
141
- },
142
- users: {
143
- label: "Users",
144
- description: "User management — create, unlock, alter."
145
- },
146
- tablespaces: {
147
- label: "Tablespaces",
148
- description: "Tablespace creation, quota warnings."
149
- },
150
- locking: {
151
- label: "Locking",
152
- description: "Blocking sessions and deadlock alerts."
153
- },
154
- monitoring: {
155
- label: "Monitoring",
156
- description: "Threshold alerts — CPU, blocked sessions, long-running ops, invalid objects, failed logins."
157
- },
158
- "source-control": {
159
- label: "Source control",
160
- description: "Git commit / pull / push outcomes."
161
- },
162
- "file-system": {
163
- label: "File system",
164
- description: "Save, copy, paste, image clipboard."
165
- },
166
- settings: {
167
- label: "Settings",
168
- description: "Preference saves, layout reset, import/export."
169
- },
170
- rss: { label: "RSS feeds", description: "Feed refresh, post counts." },
171
- plugins: {
172
- label: "Plugins",
173
- description: "Plugin install, activation, marketplace and sandbox events."
174
- },
175
- workspace: {
176
- label: "Workspace",
177
- description: "Workspace tabs, session restore and layout events."
178
- },
179
- dev: {
180
- label: "Developer",
181
- description: "Dev test surface and internal diagnostics."
182
- }
183
- }, ke = Je.map((e) => ({ id: e, ...jn[e] })), Be = new Map(
184
- ke.map((e) => [e.id, e])
185
- );
186
- function j(e) {
187
- if (e) {
188
- const r = Be.get(e);
189
- if (r) return r;
190
- }
191
- return Be.get("general") ?? ke[0];
192
- }
193
- function mr() {
194
- return ke;
195
- }
196
- function Yn(e, r) {
197
- const s = [];
198
- let a = 0;
199
- for (; a < e.length; ) {
200
- const d = e[a];
201
- if (!d) break;
202
- if (d.pinned === !0) {
203
- s.push({ type: "entry", id: d.id, entry: d }), a += 1;
204
- continue;
205
- }
206
- const m = r === "source" ? d.source : `${d.source}|${d.tone}`;
207
- let v = a + 1;
208
- for (; v < e.length; ) {
209
- const _ = e[v];
210
- if (!_ || _.pinned === !0 || (r === "source" ? _.source : `${_.source}|${_.tone}`) !== m) break;
211
- v += 1;
212
- }
213
- const c = v - a;
214
- c === 1 ? s.push({ type: "entry", id: d.id, entry: d }) : s.push({
215
- type: "group",
216
- id: `group:${m}:${d.id}`,
217
- groupKey: m,
218
- groupCount: c,
219
- groupSource: d.source,
220
- groupTone: d.tone,
221
- groupItems: e.slice(a, v)
222
- }), a = v;
223
- }
224
- return s;
225
- }
226
- function Jn(e, r) {
227
- return (e + r).indexOf(r) < e.length;
228
- }
229
- const Kn = /^[=+\-@\t\r]/, Xn = /^[+-]?\d[\d.,' \u00A0\u202F]*(?:[eE][+-]?\d+)?$/, Zn = /^[ \t]|[ \t]$/;
230
- function Ke(e) {
231
- return Kn.test(e);
232
- }
233
- function ei(e, r) {
234
- return Ke(e) ? r === "quotePrefix" ? `'${e}` : ` ${e}` : e;
235
- }
236
- function ti(e, r, s = {}) {
237
- if (e == null) return "";
238
- const a = String(e), d = s.numeric === !0 && Xn.test(a), m = d ? a : ei(a, r.policy), v = s.forceQuote === !0, c = r.quoteChar, _ = r.escape === "backslash";
239
- return r.alwaysQuote || v || // ⚠ The RAW text is tested: the neutralization prefix changes the edge.
240
- Zn.test(a) || // `tabPrefix` neutralization must keep the PREFIX INSIDE the cell ⇒ always quote.
241
- !d && r.policy === "tabPrefix" && Ke(a) || Jn(m, r.delimiter) || m.includes(c) || m.includes(`
242
- `) || m.includes("\r") || _ && m.includes("\\") ? ni(m, c, r.escape) : m;
243
- }
244
- function ni(e, r, s) {
245
- const a = s === "backslash" ? e.replace(/\\/g, "\\\\").split(r).join(`\\${r}`) : e.split(r).join(r + r);
246
- return `${r}${a}${r}`;
247
- }
248
- const ii = (e) => e === "crlf" ? `\r
249
- ` : `
250
- `, oi = "\uFEFF", ri = Object.freeze({
251
- cell: Object.freeze({
252
- delimiter: ",",
253
- quoteChar: '"',
254
- escape: "double",
255
- alwaysQuote: !1,
256
- policy: "quotePrefix"
257
- }),
258
- lineEnd: "crlf",
259
- byteOrderMark: !0
260
- });
261
- function si(e, r) {
262
- const s = e instanceof Date ? e.toISOString() : e;
263
- return ti(s, r, { numeric: typeof e == "number" });
264
- }
265
- function ai(e, r, s) {
266
- const a = ii(s.lineEnd), d = (m) => m.map((v) => si(v, s.cell)).join(s.cell.delimiter) + a;
267
- return d(r.map((m) => m.header)) + e.map((m) => d(r.map((v) => v.value(m)))).join("");
268
- }
269
- function ci(e, r, s) {
270
- return (s.byteOrderMark ? oi : "") + ai(e, r, s);
271
- }
272
- const li = [
273
- { header: "timestamp", value: (e) => new Date(e.createdAt) },
274
- { header: "source", value: (e) => e.source },
275
- { header: "tone", value: (e) => e.tone },
276
- { header: "priority", value: (e) => e.priority },
277
- { header: "pinned", value: (e) => e.pinned === !0 },
278
- { header: "message", value: (e) => e.message }
279
- ];
280
- function ui(e) {
281
- return ci(e, li, ri);
282
- }
283
- function di(e) {
284
- return JSON.stringify(e, null, 2);
285
- }
286
- let $e = !1;
287
- function hr() {
288
- $e || typeof window > "u" || ($e = !0, At());
289
- }
290
- let X = null;
291
- function br() {
292
- if (X) return X;
293
- if (typeof window > "u") return () => {
294
- };
295
- const e = () => {
296
- Dt(), Et(), xt();
297
- };
298
- return window.addEventListener(z.changeEvent, e), X = () => {
299
- window.removeEventListener(
300
- z.changeEvent,
301
- e
302
- ), X = null;
303
- }, X;
304
- }
305
- function gi(e, r) {
306
- return {
307
- update: (s, a) => {
308
- e.update({ title: s }), a !== void 0 && e.setProgress({
309
- value: Math.max(0, Math.min(1, a)),
310
- ...r.onCancel ? { onCancel: r.onCancel } : {}
311
- });
312
- },
313
- success: (s) => e.update({
314
- title: s ?? r.message,
315
- severity: "success",
316
- sticky: !1,
317
- progress: { done: !0 }
318
- }),
319
- fail: (s) => e.update({
320
- title: s ?? r.message,
321
- severity: "error",
322
- sticky: !0,
323
- progress: { done: !0 },
324
- durationMs: 1 / 0
325
- }),
326
- dismiss: () => e.close()
327
- };
328
- }
329
- function Fe(e) {
330
- return {
331
- label: e.label,
332
- onClick: () => {
333
- },
334
- ...e.expireOnAction !== void 0 ? { expireOnAction: e.expireOnAction } : {}
335
- };
336
- }
337
- function ze(e) {
338
- const r = Mt(e);
339
- return {
340
- ...r,
341
- ...r.action ? { action: Fe(r.action) } : {},
342
- ...r.actions ? { actions: r.actions.map(Fe) } : {},
343
- ...r.onCancel ? { onCancel: () => {
344
- } } : {}
345
- };
346
- }
347
- function fi(e) {
348
- return e.vendorError === void 0 || !Rt() ? null : Bt(e.vendorError);
349
- }
350
- function vr() {
351
- let e = { ...Oe }, r = {
352
- dismissed: !1,
353
- remindSuppressed: !1,
354
- sourceMuted: !1,
355
- inQuietHours: !1
356
- };
357
- const s = [], a = Yt({
358
- getSettings: () => e,
359
- recordAutoFade: () => {
360
- },
361
- warn: () => {
362
- }
363
- });
364
- let d = [];
365
- const m = a.subscribe((c) => {
366
- d = c;
367
- });
368
- return {
369
- host: {
370
- notify(c, _) {
371
- var N;
372
- const l = ze(_), T = fi(l), I = c.severity === "error" ? Ot(
373
- l.message,
374
- {
375
- ...l.title ? { title: l.title } : {},
376
- ...l.subtitle ? { subtitle: l.subtitle } : {},
377
- ...l.description ? { description: l.description } : {},
378
- ...l.action ? { action: l.action } : {}
379
- },
380
- T,
381
- le
382
- ) : null, B = c.severity === "error" && c.source === "general" && T !== null ? "vendor-error" : c.source, f = Pt(
383
- c.severity,
384
- c.priority,
385
- T !== null,
386
- e.vendorCodesAreUrgent
387
- ), h = Nt(
388
- {
389
- severity: c.severity,
390
- title: (I == null ? void 0 : I.displayText) ?? l.title ?? l.message,
391
- priority: f,
392
- source: B
393
- },
394
- e.notificationRules
395
- ), b = h === null ? { showToast: !1, recordTimeline: !1 } : Pe(
396
- {
397
- priority: h.priority,
398
- recordTimeline: l.recordTimeline
399
- },
400
- e,
401
- r
402
- ), k = c.delivery === "os-only" ? "mock-os" : b.showToast ? "shown" : b.recordTimeline ? "timeline-only" : "suppressed", w = {
403
- definition: c,
404
- payload: {
405
- ...l,
406
- message: q(l.message),
407
- ...l.title ? { title: q(l.title) } : {},
408
- ...l.description ? { description: q(l.description) } : {}
409
- },
410
- channel: c.delivery,
411
- decision: b,
412
- outcome: k
413
- };
414
- if (c.delivery === "os-only" || h === null || !b.showToast)
415
- return s.push(w), "";
416
- const y = (I == null ? void 0 : I.bodyText) ?? l.subtitle ?? l.description, M = (I == null ? void 0 : I.primaryAction) ?? l.action, $ = a.notify({
417
- severity: h.severity,
418
- title: q(h.title),
419
- ...y ? { body: q(y) } : {},
420
- source: h.source,
421
- priority: h.priority,
422
- ...l.duration !== void 0 ? { durationMs: l.duration } : {},
423
- ...l.id !== void 0 ? { id: String(l.id) } : {},
424
- ...l.icon ? { icon: l.icon } : {},
425
- ...l.markdown ? { markdown: !0 } : {},
426
- ...M || (N = l.actions) != null && N.length ? {
427
- actions: [M, ...l.actions ?? []].filter((F) => F !== void 0).map((F, J) => ({
428
- label: F.label,
429
- primary: J === 0,
430
- onClick: () => {
431
- F.onClick();
432
- }
433
- }))
434
- } : {}
435
- });
436
- return s.push(
437
- $.id ? w : { ...w, outcome: "spam-dropped" }
438
- ), $.id;
439
- },
440
- progress(c, _) {
441
- const l = ze(_), T = Pe(
442
- {
443
- priority: c.priority,
444
- recordTimeline: l.recordTimeline
445
- },
446
- e,
447
- r
448
- );
449
- if (s.push({
450
- definition: c,
451
- payload: l,
452
- channel: "in-app",
453
- decision: T,
454
- outcome: T.showToast ? "shown" : T.recordTimeline ? "timeline-only" : "suppressed"
455
- }), !T.showToast)
456
- return {
457
- update: () => {
458
- },
459
- success: () => {
460
- },
461
- fail: () => {
462
- },
463
- dismiss: () => {
464
- }
465
- };
466
- const I = a.notify({
467
- severity: c.severity,
468
- title: q(l.message),
469
- source: c.source,
470
- priority: c.priority,
471
- sticky: !0,
472
- progress: l.onCancel ? { onCancel: l.onCancel } : {},
473
- ...l.id !== void 0 ? { id: String(l.id) } : {}
474
- });
475
- return gi(I, l);
476
- }
477
- },
478
- controller: a,
479
- deliveries: s,
480
- setBehavior: (c) => {
481
- e = { ...Oe }, r = {
482
- dismissed: c === "dismissed",
483
- remindSuppressed: c === "reminder",
484
- sourceMuted: c === "source-muted",
485
- inQuietHours: c === "quiet-hours"
486
- }, c === "dnd" ? e = { ...e, doNotDisturb: !0 } : c === "rule-transform" ? e = {
487
- ...e,
488
- notificationRules: [
489
- {
490
- id: "preview-transform",
491
- name: "Preview transform",
492
- enabled: !0,
493
- conditions: { source: "dev" },
494
- actions: {
495
- setSeverity: "warning",
496
- setPriority: "urgent",
497
- addPrefix: "[RULE]"
498
- }
499
- }
500
- ]
501
- } : c === "rule-suppress" && (e = {
502
- ...e,
503
- notificationRules: [
504
- {
505
- id: "preview-suppress",
506
- name: "Preview suppress",
507
- enabled: !0,
508
- conditions: { source: "dev" },
509
- actions: { suppress: !0 }
510
- }
511
- ]
512
- });
513
- },
514
- subscribe: (c) => a.subscribe(c),
515
- clear: () => {
516
- for (const c of d) a.close(c.id);
517
- s.splice(0, s.length);
518
- },
519
- dispose: () => {
520
- m(), a.dispose();
521
- }
522
- };
523
- }
524
- const pi = $t(
525
- {
526
- id: "onboarding.PageTourHost.info.1",
527
- source: "general",
528
- severity: "info",
529
- priority: "default",
530
- delivery: "in-app",
531
- kind: "message"
532
- },
533
- () => ({
534
- message: n("You can reopen this tour from Help → Page tours.")
535
- })
536
- );
537
- function ue(e) {
538
- return e.getClientRects().length > 0 && e.getBoundingClientRect().width > 0 && e.getBoundingClientRect().height > 0;
539
- }
540
- function re(e) {
541
- return (r) => r.matches(e) && ue(r) ? r : Array.from(r.querySelectorAll(e)).find(
542
- ue
543
- ) ?? null;
544
- }
545
- var mi = ["<span hidden", "></span>"];
546
- function hi(e) {
547
- const r = nn(rn);
548
- let s;
549
- const [a, d] = x(!1), [m, v] = x(0), [c, _] = x([]);
550
- let l = !1, T = !1, I = !1;
551
- const B = {}, f = () => s.parentElement, h = () => ue(f()), b = (y, M = !0) => {
552
- var $;
553
- d(!1), he(B), me(null), ($ = e.onTourActiveChange) == null || $.call(e, !1);
554
- try {
555
- Ne(e.definition.pageId, y ? "completed" : "skipped");
556
- } catch (N) {
557
- ae("PageTour").warn("Could not save tour progress", N);
558
- }
559
- l && M && G(pi, {}), l = !1;
560
- }, k = () => {
561
- hn(!0), b(!1, !1);
562
- }, w = (y = !1) => {
563
- var $;
564
- if (!h() || !gn(B)) return;
565
- T = !1;
566
- const M = e.definition.steps.filter((N) => {
567
- var F;
568
- return ((F = N.available) == null ? void 0 : F.call(N)) !== !1;
569
- });
570
- if (!M.length) {
571
- he(B);
572
- return;
573
- }
574
- _(M), v(0), l = y;
575
- try {
576
- Ne(e.definition.pageId, "shown");
577
- } catch (N) {
578
- ae("PageTour").warn("Could not save tour progress", N);
579
- }
580
- me(e.definition.pageId), ($ = e.onTourActiveChange) == null || $.call(e, !0), d(!0);
581
- };
582
- return ne(() => {
583
- const y = f(), M = y.hasAttribute("tabindex");
584
- M || (y.tabIndex = -1), Y(() => {
585
- M || y.removeAttribute("tabindex");
586
- });
587
- const N = s.ownerDocument.defaultView;
588
- if (!N) return;
589
- const F = () => Array.from(s.ownerDocument.querySelectorAll('[role="dialog"], [role="alertdialog"]')).some((O) => ue(O) && !O.contains(f()));
590
- let J = 0;
591
- const U = () => {
592
- var O;
593
- if (!h()) {
594
- J = 0, a() && b(!1, !1);
595
- return;
596
- }
597
- if (!(a() || F() || ((O = r == null ? void 0 : r.isReady) == null ? void 0 : O.call(r)) === !1) && !(++J < 2)) {
598
- if (fn(e.definition.pageId) && (T = !0), T) {
599
- w();
600
- return;
601
- }
602
- if (!I && !pn())
603
- try {
604
- mn(e.definition.pageId) || w(!0);
605
- } catch (fe) {
606
- I = !0, ae("PageTour").warn("Could not read tour progress", fe);
607
- }
608
- }
609
- }, R = un({
610
- page: e.definition.pageId,
611
- document: () => s.ownerDocument,
612
- visible: h,
613
- start: () => {
614
- T = !0, (a() || !F()) && w();
615
- },
616
- dismiss: () => {
617
- a() && b(!1, !1);
618
- }
619
- }), ge = N.setInterval(U, 250);
620
- Y(() => {
621
- var O;
622
- N.clearInterval(ge), R(), he(B), dn() === e.definition.pageId && (me(null), (O = e.onTourActiveChange) == null || O.call(e, !1));
623
- });
624
- }), [P(mi, p("data-page-tour-host", i(e.definition.pageId, !0), !1)), o(E, {
625
- get when() {
626
- return a();
627
- },
628
- get children() {
629
- return o(sn, {
630
- get document() {
631
- return s.ownerDocument;
632
- },
633
- focusFallback: () => h() ? f() : null,
634
- get steps() {
635
- return c();
636
- },
637
- get index() {
638
- return m();
639
- },
640
- target: () => {
641
- var y;
642
- return ((y = c()[m()]) == null ? void 0 : y.target(f())) ?? null;
643
- },
644
- onSelect: v,
645
- onClose: b,
646
- onNeverShowAgain: k
647
- });
648
- }
649
- })];
650
- }
651
- const bi = {
652
- id: "notifications",
653
- pageId: "notifications",
654
- version: 1,
655
- steps: [
656
- {
657
- id: "panel",
658
- title: "Notification Center",
659
- description: "Stay informed on database events, completed exports, query execution errors, and background system alerts.",
660
- target: re('[data-tour-target="notifications-panel"]')
661
- },
662
- {
663
- id: "actions",
664
- title: "Timeline Actions & Filter Options",
665
- description: "Search notifications, filter by priority or notification source, pin important entries, and export history to CSV or JSON.",
666
- target: re('[data-tour-target="notifications-actions"]')
667
- },
668
- {
669
- id: "settings",
670
- title: "Notification Settings & DND",
671
- description: "Open the notification menu to configure do-not-disturb, quiet hours, and notification delivery preferences.",
672
- target: re('[data-tour-target="notifications-settings"]')
673
- },
674
- {
675
- id: "timeline",
676
- title: "Interactive Timeline Cards",
677
- description: "Click notification entries to expand stack traces, inspect vendor error codes, or navigate directly to affected queries.",
678
- target: re('[data-tour-target="notifications-timeline"]')
679
- }
680
- ]
681
- };
682
- function vi(e, r, s, a, d = 2) {
683
- return e <= 0 || e > s ? 0 : Math.min(r, d + Math.floor((s - e) / a));
684
- }
685
- function Z(e, r) {
686
- e((s) => {
687
- const a = new Set(s);
688
- return a.has(r) ? a.delete(r) : a.add(r), a;
689
- });
690
- }
691
- const Si = "vk_rightRail_HtYMh", yi = "vk_notificationPanel_nrSZl", Ti = "vk_filterBar_WTQg3", ki = "vk_notificationPanelHeader_aHtxT vk_headerRail_CLLzD", Ci = "vk_notificationPanelTitleWrap_cOfAP vk_titleWrapRail_b0Czp", _i = "vk_notificationPanelTitle_9iMrQ vk_titleSmMargin_PPvAx", Ii = "vk_notificationPanelActions_7fRj6 vk_actionsRail_QqUv8", wi = "vk_notificationActionIcon_d5EzT", Ai = "vk_notificationTimeline_K-mMI", Di = "vk_notificationEmpty_IU6kY", Ei = "vk_notificationItem_tm8HP", xi = "vk_notificationGroup_4hkdy", Oi = "vk_notificationGroupToggle_Opmmd", Pi = "vk_notificationGroupBody_nlrmq", Ni = "vk_notificationItemSelected_DspyF", Mi = "vk_notificationItemCheckbox_knWVX", Ri = "vk_bulkActionBar_6MHEY", Bi = "vk_bulkActionCount_Mb4tN", $i = "vk_notificationItemTop_Mt0D7", Fi = "vk_notificationToneDot_Z-LOj", zi = "vk_notificationToneInfo_rxKOj", Vi = "vk_notificationToneSuccess_Bxc9E", Li = "vk_notificationToneWarning_uBK0T", Hi = "vk_notificationToneError_p9EYY", Ui = "vk_notificationItemTime_WT4cd", Gi = "vk_notificationItemCopyDone_P39uT", Wi = "vk_notificationItemMessage_G2mnV", Qi = "vk_notificationItemMeta_xdFUH", qi = "vk_notificationSourceLabel_VvB0i", ji = "vk_priorityBadgeIcon_UaJX0", u = {
692
- rightRail: Si,
693
- notificationPanel: yi,
694
- filterBar: Ti,
695
- notificationPanelHeader: ki,
696
- notificationPanelTitleWrap: Ci,
697
- notificationPanelTitle: _i,
698
- notificationPanelActions: Ii,
699
- notificationActionIcon: wi,
700
- notificationTimeline: Ai,
701
- notificationEmpty: Di,
702
- notificationItem: Ei,
703
- notificationGroup: xi,
704
- notificationGroupToggle: Oi,
705
- notificationGroupBody: Pi,
706
- notificationItemSelected: Ni,
707
- notificationItemCheckbox: Mi,
708
- bulkActionBar: Ri,
709
- bulkActionCount: Bi,
710
- notificationItemTop: $i,
711
- notificationToneDot: Fi,
712
- notificationToneInfo: zi,
713
- notificationToneSuccess: Vi,
714
- notificationToneWarning: Li,
715
- notificationToneError: Hi,
716
- notificationItemTime: Ui,
717
- notificationItemCopyDone: Gi,
718
- notificationItemMessage: Wi,
719
- notificationItemMeta: Qi,
720
- notificationSourceLabel: qi,
721
- priorityBadgeIcon: ji
722
- };
723
- var Yi = ["<h3", ">", "</h3>"], Ji = ["<div", ' data-tour-target="notifications-actions">', "</div>"], Ki = ["<div", ' role="toolbar"', "><span", ">", "</span>", "", "", "", "</div>"], Xi = ["<span", ">📌 ", "</span>"], Zi = ["<aside", ' tabindex="-1"><section', ' data-tour-target="notifications-panel">', "", "", "", "", "</section></aside>"], eo = ["<p", ">", "</p>"], to = ['<span class="', '"></span>'], no = ["<span", ">", "</span>"], io = ['<article class="', '"><div', ">", '<span class="', '"></span><time', ">", "</time>", "", "", "", "</div><p", ">", "</p><div", "><span", ">", "</span>", "", "", "</div></article>"];
724
- const oo = ae("NotificationPanel");
725
- function ro(e) {
726
- return new Intl.DateTimeFormat(de(), {
727
- hour: "2-digit",
728
- minute: "2-digit"
729
- }).format(new Date(e));
730
- }
731
- function so(e) {
732
- return new Intl.DateTimeFormat(de(), {
733
- year: "numeric",
734
- month: "short",
735
- day: "2-digit",
736
- hour: "2-digit",
737
- minute: "2-digit",
738
- second: "2-digit"
739
- }).format(new Date(e));
740
- }
741
- function Ve(e) {
742
- switch (e) {
743
- case "success":
744
- return u.notificationToneSuccess;
745
- case "error":
746
- return u.notificationToneError;
747
- case "warning":
748
- return u.notificationToneWarning;
749
- default:
750
- return u.notificationToneInfo;
751
- }
752
- }
753
- const se = ["error", "warning", "info", "success"], ao = 189, co = 27;
754
- function Sr(e) {
755
- const r = Sn(), [s, a] = x(null), [d, m] = x(0), [v, c] = x(""), [_, l] = x(null), [T, I] = x(/* @__PURE__ */ new Set()), [B, f] = x(!1), [h, b] = x(/* @__PURE__ */ new Set()), [k, w] = x(/* @__PURE__ */ new Set()), [y, M] = x(/* @__PURE__ */ new Set()), [$, N] = x(!1), [F, J] = x(0);
756
- let U = null;
757
- const R = qe(), ge = H(() => Qn(v(), $())), O = H(() => qn(e.notificationTimeline(), {
758
- tones: T(),
759
- sources: k(),
760
- priorities: y(),
761
- dateBounds: _(),
762
- searchMatcher: ge()
763
- })), fe = H(() => {
764
- const t = /* @__PURE__ */ new Set();
765
- for (const g of e.notificationTimeline()) t.add(g.source);
766
- return Array.from(t).sort();
767
- }), Ce = H(() => O().filter((t) => t.pinned === !0)), [Xe, Ze] = x(0);
768
- ye(z, () => {
769
- Ze((t) => t + 1);
770
- });
771
- const [et, tt] = x(/* @__PURE__ */ new Set()), nt = H(() => {
772
- Xe();
773
- const t = z.get();
774
- return t.timelineGroupingEnabled ? Yn(O(), t.timelineGroupBy) : O().map((g) => ({
775
- type: "entry",
776
- id: g.id,
777
- entry: g
778
- }));
779
- }), it = (t) => {
780
- Z(tt, t);
781
- }, _e = () => v().trim() !== "" || _() !== null || T().size > 0 || k().size > 0 || y().size > 0, ot = () => {
782
- c(""), l(null), I(/* @__PURE__ */ new Set()), w(/* @__PURE__ */ new Set()), M(/* @__PURE__ */ new Set());
783
- }, rt = (t) => {
784
- Z(w, t);
785
- }, st = (t) => {
786
- Z(M, t);
787
- }, at = ["urgent", "acknowledgment-required", "default", "optional", "silent"], ct = (t) => {
788
- if (t.preventDefault(), t.stopPropagation(), R.state() !== null) {
789
- R.close();
790
- return;
791
- }
792
- const S = t.currentTarget.getBoundingClientRect(), C = fe(), V = {
793
- urgent: n("Urgent"),
794
- "acknowledgment-required": n("Acknowledgment required"),
795
- default: n("Default"),
796
- optional: n("Optional"),
797
- silent: n("Silent")
798
- };
799
- R.open(S.left, S.bottom + 4, [{
800
- label: n("Use regex in search"),
801
- checked: () => $(),
802
- keepOpenOnSelect: !0,
803
- onSelect: () => {
804
- N((L) => !L);
805
- }
806
- }, {
807
- type: "separator"
808
- }, {
809
- label: n("Filter by priority"),
810
- submenu: at.map((L) => ({
811
- label: V[L],
812
- checked: () => y().has(L),
813
- keepOpenOnSelect: !0,
814
- onSelect: () => st(L)
815
- }))
816
- }, ...C.length > 0 ? [{
817
- label: n("Filter by source"),
818
- submenu: C.map((L) => ({
819
- label: j(L).label,
820
- checked: () => k().has(L),
821
- keepOpenOnSelect: !0,
822
- onSelect: () => rt(L)
823
- }))
824
- }] : [], {
825
- type: "separator"
826
- }, {
827
- label: n("Clear advanced filters"),
828
- disabled: k().size === 0 && y().size === 0,
829
- onSelect: () => {
830
- w(/* @__PURE__ */ new Set()), M(/* @__PURE__ */ new Set());
831
- }
832
- }]);
833
- }, lt = (t) => {
834
- Z(I, t);
835
- }, ut = () => {
836
- const t = T();
837
- return t.size === 0 ? n("All tones") : t.size === se.length ? n("All tones") : Array.from(t).join(", ");
838
- }, dt = (t) => {
839
- if (t.preventDefault(), t.stopPropagation(), R.state() !== null) {
840
- R.close();
841
- return;
842
- }
843
- const S = t.currentTarget.getBoundingClientRect();
844
- R.open(S.left, S.bottom + 4, [...se.map((C) => ({
845
- label: n(ln[C]),
846
- checked: () => T().has(C),
847
- keepOpenOnSelect: !0,
848
- onSelect: () => lt(C)
849
- })), {
850
- type: "separator"
851
- }, ...T().size === se.length ? [{
852
- label: n("Select none"),
853
- onSelect: () => {
854
- I(/* @__PURE__ */ new Set());
855
- }
856
- }] : [{
857
- label: n("Select all"),
858
- onSelect: () => {
859
- I(new Set(se));
860
- }
861
- }]]);
862
- };
863
- ne(() => {
864
- const t = Le(m);
865
- Y(t);
866
- });
867
- const gt = (t) => {
868
- const g = e.notificationTimeline().find((S) => S.id === t);
869
- g && Jt(g.source), be(t);
870
- }, ft = (t) => {
871
- const g = {
872
- // A persisted entry's source is foreign data (older builds, hand edits) —
873
- // re-enter the closed vocabulary at the boundary (#52).
874
- source: Wn(t.source) ? t.source : "general",
875
- priority: "urgent",
876
- recordTimeline: !1
877
- }, S = t.tone;
878
- S === "error" ? G(Vt, {
879
- timelineMessage: t.message,
880
- options: g
881
- }) : S === "warning" ? G(Lt, {
882
- timelineMessage: t.message,
883
- options: g
884
- }) : S === "success" ? G(Ht, {
885
- timelineMessage: t.message,
886
- options: g
887
- }) : G(Ut, {
888
- timelineMessage: t.message,
889
- options: g
890
- });
891
- }, pt = (t) => {
892
- const g = ce(t);
893
- g && le(g.helpers.docsUrl(g.code));
894
- }, mt = () => {
895
- Ue();
896
- }, ht = (t) => {
897
- Z(b, t);
898
- }, bt = () => {
899
- f(!0), b(/* @__PURE__ */ new Set());
900
- }, Ie = () => {
901
- f(!1), b(/* @__PURE__ */ new Set());
902
- }, vt = () => {
903
- b(new Set(O().map((t) => t.id)));
904
- }, K = () => h().size, St = () => {
905
- const t = h();
906
- return O().filter((g) => t.has(g.id)).map((g) => g.id);
907
- }, yt = () => {
908
- const t = St();
909
- t.length !== 0 && (zt(t), Ie());
910
- }, we = (t) => {
911
- const g = h(), S = e.notificationTimeline().filter((C) => g.has(C.id));
912
- for (const C of S)
913
- (C.pinned ?? !1) !== t && Ft(C.id);
914
- }, Ae = async (t) => {
915
- const g = O();
916
- if (g.length === 0) return;
917
- const S = Kt(), V = `notifications-${(/* @__PURE__ */ new Date()).toISOString().replace(/[:T]/g, "-").slice(0, 19)}.${t}`, L = t === "csv" ? [{
918
- name: "CSV",
919
- extensions: ["csv"]
920
- }] : [{
921
- name: "JSON",
922
- extensions: ["json"]
923
- }];
924
- try {
925
- const Q = await S.showSaveDialog({
926
- title: n("Export notifications"),
927
- defaultPath: V,
928
- filters: L
929
- });
930
- if (!(Q != null && Q.filePath)) return;
931
- const wt = t === "csv" ? ui(g) : di(g);
932
- await S.writeFile(Q.filePath, wt), G(Gt, {
933
- entryCount: g.length
934
- });
935
- } catch (Q) {
936
- G(Wt, {
937
- cause: Q
938
- });
939
- }
940
- }, Tt = () => {
941
- Qe("notification");
942
- }, kt = (t) => {
943
- if (t.preventDefault(), t.stopPropagation(), R.state() !== null) {
944
- R.close();
945
- return;
946
- }
947
- const S = t.currentTarget.getBoundingClientRect(), C = O().length === 0;
948
- R.open(S.left, S.bottom + 4, [{
949
- label: n("Export"),
950
- disabled: C,
951
- submenu: [{
952
- label: n("Export as CSV"),
953
- onSelect: () => {
954
- Ae("csv");
955
- }
956
- }, {
957
- label: n("Export as JSON"),
958
- onSelect: () => {
959
- Ae("json");
960
- }
961
- }]
962
- }, {
963
- type: "separator"
964
- }, {
965
- label: n("Notification settings…"),
966
- onSelect: Tt
967
- }]);
968
- }, Ct = async (t) => {
969
- var S;
970
- const g = t.message.trim();
971
- if (g)
972
- try {
973
- if ((S = navigator.clipboard) != null && S.writeText)
974
- await navigator.clipboard.writeText(g);
975
- else {
976
- const C = r, V = tn("textarea");
977
- V.value = g, V.setAttribute("readonly", "true"), V.style.position = "fixed", V.style.opacity = "0", C.body.appendChild(V), V.select(), C.execCommand("copy"), C.body.removeChild(V);
978
- }
979
- a(t.id), U !== null && window.clearTimeout(U), U = window.setTimeout(() => {
980
- a((C) => C === t.id ? null : C), U = null;
981
- }, 1400);
982
- } catch (C) {
983
- oo.warn("Timeline entry could not be copied:", C);
984
- }
985
- };
986
- Y(() => {
987
- U !== null && window.clearTimeout(U);
988
- }), ne(() => {
989
- });
990
- const pe = H(() => [{
991
- id: "select",
992
- icon: () => o(yn, {
993
- get class() {
994
- return u.notificationActionIcon;
995
- }
996
- }),
997
- label: () => n("Select multiple notifications"),
998
- disabled: () => O().length === 0,
999
- onSelect: bt
1000
- }, {
1001
- id: "mark-read",
1002
- icon: () => o(Tn, {
1003
- get class() {
1004
- return u.notificationActionIcon;
1005
- }
1006
- }),
1007
- label: () => n("Mark all as read"),
1008
- disabled: () => d() === 0,
1009
- onSelect: () => He()
1010
- }, {
1011
- id: "clear",
1012
- icon: () => o(Se, {
1013
- get class() {
1014
- return u.notificationActionIcon;
1015
- }
1016
- }),
1017
- label: () => n("Clear all notifications"),
1018
- disabled: () => e.notificationTimeline().length === 0,
1019
- onSelect: mt
1020
- }]), De = H(() => vi(F(), pe().length, ao, co)), _t = H(() => {
1021
- const t = pe();
1022
- return t.slice(0, t.length - De());
1023
- }), Ee = H(() => {
1024
- const t = pe();
1025
- return t.slice(t.length - De());
1026
- }), It = (t) => {
1027
- if (t.preventDefault(), t.stopPropagation(), R.state() !== null) {
1028
- R.close();
1029
- return;
1030
- }
1031
- R.openWithPlacement(cn(t.currentTarget, {
1032
- horizontal: "right"
1033
- }), Ee().map((g) => ({
1034
- label: g.label(),
1035
- icon: g.icon(),
1036
- disabled: g.disabled(),
1037
- onSelect: g.onSelect
1038
- })));
1039
- };
1040
- return P(Zi, p("class", i(u.rightRail, !0), !1), p("class", i(u.notificationPanel, !0), !1), i(o(ve.Header, {
1041
- get class() {
1042
- return u.notificationPanelHeader;
1043
- },
1044
- get children() {
1045
- return [o(We, {
1046
- type: "button",
1047
- get class() {
1048
- return u.notificationPanelTitleWrap;
1049
- },
1050
- "data-tour-target": "notifications-settings",
1051
- onClick: kt,
1052
- get title() {
1053
- return n("Notification menu");
1054
- },
1055
- "aria-haspopup": "menu",
1056
- get children() {
1057
- return [P(Yi, p("class", i(u.notificationPanelTitle, !0), !1), i(n("Notifications"))), o(E, {
1058
- get when() {
1059
- return d() > 0;
1060
- },
1061
- get children() {
1062
- return o(ie, {
1063
- tone: "danger",
1064
- size: "sm",
1065
- get tooltip() {
1066
- return n("{count} unread", {
1067
- count: d()
1068
- });
1069
- },
1070
- get children() {
1071
- return d() > 99 ? "99+" : d();
1072
- }
1073
- });
1074
- }
1075
- })];
1076
- }
1077
- }), P(Ji, p("class", i(u.notificationPanelActions, !0), !1), i(o(E, {
1078
- get when() {
1079
- return !B();
1080
- },
1081
- get fallback() {
1082
- return o(D, {
1083
- variant: "ghost",
1084
- size: "sm",
1085
- onClick: Ie,
1086
- get title() {
1087
- return n("Exit selection mode");
1088
- },
1089
- get children() {
1090
- return n("Cancel");
1091
- }
1092
- });
1093
- },
1094
- get children() {
1095
- return [o(te, {
1096
- get each() {
1097
- return _t();
1098
- },
1099
- children: (t) => o(D, {
1100
- variant: "ghost",
1101
- size: "sm",
1102
- iconOnly: !0,
1103
- get onClick() {
1104
- return t.onSelect;
1105
- },
1106
- get disabled() {
1107
- return t.disabled();
1108
- },
1109
- get title() {
1110
- return t.label();
1111
- },
1112
- get "aria-label"() {
1113
- return t.label();
1114
- },
1115
- get children() {
1116
- return t.icon();
1117
- }
1118
- })
1119
- }), o(E, {
1120
- get when() {
1121
- return Ee().length > 0;
1122
- },
1123
- get children() {
1124
- return o(D, {
1125
- variant: "ghost",
1126
- size: "sm",
1127
- iconOnly: !0,
1128
- onClick: It,
1129
- get title() {
1130
- return n("More actions");
1131
- },
1132
- get "aria-label"() {
1133
- return n("More actions");
1134
- },
1135
- get children() {
1136
- return o(wn, {
1137
- get class() {
1138
- return u.notificationActionIcon;
1139
- }
1140
- });
1141
- }
1142
- });
1143
- }
1144
- })];
1145
- }
1146
- })))];
1147
- }
1148
- })), i(o(E, {
1149
- get when() {
1150
- return B();
1151
- },
1152
- get children() {
1153
- return P(Ki, p("class", i(u.bulkActionBar, !0), !1), p("aria-label", i(n("Bulk actions"), !0), !1), p("class", i(u.bulkActionCount, !0), !1), i(n("{count} selected", {
1154
- count: K()
1155
- })), i(o(D, {
1156
- variant: "ghost",
1157
- size: "sm",
1158
- onClick: vt,
1159
- get disabled() {
1160
- return O().length === 0 || K() === O().length;
1161
- },
1162
- get title() {
1163
- return n("Select all visible");
1164
- },
1165
- get children() {
1166
- return n("Select all");
1167
- }
1168
- })), i(o(D, {
1169
- variant: "ghost",
1170
- size: "sm",
1171
- onClick: () => we(!0),
1172
- get disabled() {
1173
- return K() === 0;
1174
- },
1175
- get title() {
1176
- return n("Pin selected");
1177
- },
1178
- get children() {
1179
- return n("Pin");
1180
- }
1181
- })), i(o(D, {
1182
- variant: "ghost",
1183
- size: "sm",
1184
- onClick: () => we(!1),
1185
- get disabled() {
1186
- return K() === 0;
1187
- },
1188
- get title() {
1189
- return n("Unpin selected");
1190
- },
1191
- get children() {
1192
- return n("Unpin");
1193
- }
1194
- })), i(o(D, {
1195
- variant: "ghost",
1196
- size: "sm",
1197
- onClick: yt,
1198
- get disabled() {
1199
- return K() === 0;
1200
- },
1201
- get title() {
1202
- return n("Delete selected");
1203
- },
1204
- get leadingIcon() {
1205
- return o(Se, {
1206
- get class() {
1207
- return u.notificationActionIcon;
1208
- }
1209
- });
1210
- },
1211
- get children() {
1212
- return n("Delete");
1213
- }
1214
- })));
1215
- }
1216
- })), i(o(Gn, {
1217
- get class() {
1218
- return u.filterBar;
1219
- },
1220
- get searchValue() {
1221
- return v();
1222
- },
1223
- onSearchInput: c,
1224
- get searchPlaceholder() {
1225
- return n("Search notifications…");
1226
- },
1227
- get dateRange() {
1228
- return _();
1229
- },
1230
- onDateRangeChange: l,
1231
- dateRangeAlign: "end",
1232
- get children() {
1233
- return [o(D, {
1234
- variant: "ghost",
1235
- size: "sm",
1236
- iconOnly: !0,
1237
- get active() {
1238
- return T().size > 0;
1239
- },
1240
- onClick: dt,
1241
- get title() {
1242
- return W(() => T().size === 0)() ? n("Filter by tone") : n("Tone filter: {tones}", {
1243
- tones: ut()
1244
- });
1245
- },
1246
- get children() {
1247
- return o(kn, {
1248
- get class() {
1249
- return u.notificationActionIcon;
1250
- }
1251
- });
1252
- }
1253
- }), o(D, {
1254
- variant: "ghost",
1255
- size: "sm",
1256
- iconOnly: !0,
1257
- get active() {
1258
- return k().size > 0 || y().size > 0 || $();
1259
- },
1260
- onClick: ct,
1261
- get title() {
1262
- return n("Advanced filters (source, priority, regex)");
1263
- },
1264
- get children() {
1265
- return o(Cn, {
1266
- get class() {
1267
- return u.notificationActionIcon;
1268
- }
1269
- });
1270
- }
1271
- }), o(E, {
1272
- get when() {
1273
- return _e();
1274
- },
1275
- get children() {
1276
- return o(D, {
1277
- variant: "ghost",
1278
- size: "sm",
1279
- onClick: ot,
1280
- get title() {
1281
- return n("Clear filters");
1282
- },
1283
- get children() {
1284
- return n("Clear");
1285
- }
1286
- });
1287
- }
1288
- })];
1289
- }
1290
- })), i(o(je, {
1291
- get viewportClass() {
1292
- return u.notificationTimeline;
1293
- },
1294
- "data-tour-target": "notifications-timeline",
1295
- get children() {
1296
- return o(E, {
1297
- get when() {
1298
- return O().length > 0;
1299
- },
1300
- get fallback() {
1301
- return P(eo, p("class", i(u.notificationEmpty, !0), !1), _e() ? i(n("No notifications match the current filter.")) : i(n("No notifications yet.")));
1302
- },
1303
- get children() {
1304
- return [o(E, {
1305
- get when() {
1306
- return Ce().length > 0;
1307
- },
1308
- get children() {
1309
- return o(ve.Header, {
1310
- get class() {
1311
- return u.notificationItemTop;
1312
- },
1313
- get children() {
1314
- return P(Xi, p("class", i(u.notificationSourceLabel, !0), !1), i(n("Pinned ({count})", {
1315
- count: Ce().length
1316
- })));
1317
- }
1318
- });
1319
- }
1320
- }), o(te, {
1321
- get each() {
1322
- return nt();
1323
- },
1324
- children: (t) => {
1325
- if (t.type === "group" && t.groupItems) {
1326
- const g = () => et().has(t.id);
1327
- return o(an, {
1328
- get class() {
1329
- return u.notificationGroup;
1330
- },
1331
- get toggleClass() {
1332
- return u.notificationGroupToggle;
1333
- },
1334
- get open() {
1335
- return g();
1336
- },
1337
- onToggle: () => it(t.id),
1338
- get bodyClass() {
1339
- return u.notificationGroupBody;
1340
- },
1341
- get title() {
1342
- return [P(to, `${i(u.notificationToneDot, !0)} ${i(Ve(t.groupTone ?? "info"), !0)}`), P(no, p("class", i(u.notificationItemMessage, !0), !1), i(n('{count} from "{source}"', {
1343
- count: t.groupCount ?? 0,
1344
- source: j(t.groupSource ?? "").label
1345
- })))];
1346
- },
1347
- get children() {
1348
- return o(te, {
1349
- get each() {
1350
- return t.groupItems;
1351
- },
1352
- children: (S) => xe(S)
1353
- });
1354
- }
1355
- });
1356
- }
1357
- return t.type === "entry" && t.entry ? xe(t.entry) : null;
1358
- }
1359
- })];
1360
- }
1361
- });
1362
- }
1363
- })), i(o(hi, {
1364
- definition: bi
1365
- })));
1366
- function xe(t) {
1367
- const g = () => ce(t);
1368
- return P(io, `${i(u.notificationItem, !0)} ${B() && h().has(t.id) ? i(u.notificationItemSelected, !0) : ""}`, p("class", i(u.notificationItemTop, !0), !1), i(o(E, {
1369
- get when() {
1370
- return B();
1371
- },
1372
- get children() {
1373
- return o(bn, {
1374
- get class() {
1375
- return u.notificationItemCheckbox;
1376
- },
1377
- get checked() {
1378
- return h().has(t.id);
1379
- },
1380
- onChange: () => ht(t.id),
1381
- get ariaLabel() {
1382
- return n("Select notification");
1383
- }
1384
- });
1385
- }
1386
- })), `${i(u.notificationToneDot, !0)} ${i(Ve(t.tone), !0)}`, p("class", i(u.notificationItemTime, !0), !1) + p("datetime", i(new Date(t.createdAt).toISOString(), !0), !1) + p("title", i(so(t.createdAt), !0), !1), i(ro(t.createdAt)), i(o(E, {
1387
- keyed: !0,
1388
- get when() {
1389
- return g();
1390
- },
1391
- children: (S) => o(D, {
1392
- variant: "ghost",
1393
- size: "2xs",
1394
- iconOnly: !0,
1395
- onClick: () => {
1396
- pt(t);
1397
- },
1398
- get title() {
1399
- return n("Open {vendor} ({code})", {
1400
- vendor: S.helpers.docsLinkLabel,
1401
- code: S.helpers.formatCode(S.code)
1402
- });
1403
- },
1404
- get "aria-label"() {
1405
- return n("Open {vendor} ({code})", {
1406
- vendor: S.helpers.docsLinkLabel,
1407
- code: S.helpers.formatCode(S.code)
1408
- });
1409
- },
1410
- get leadingIcon() {
1411
- return o(_n, {
1412
- get class() {
1413
- return u.notificationActionIcon;
1414
- }
1415
- });
1416
- }
1417
- })
1418
- })), i(o(D, {
1419
- variant: "ghost",
1420
- size: "2xs",
1421
- iconOnly: !0,
1422
- onClick: () => ft(t),
1423
- get title() {
1424
- return n("Show as toast again");
1425
- },
1426
- get "aria-label"() {
1427
- return n("Show as toast again");
1428
- },
1429
- get leadingIcon() {
1430
- return o(In, {
1431
- get class() {
1432
- return u.notificationActionIcon;
1433
- }
1434
- });
1435
- }
1436
- })), i(o(D, {
1437
- variant: "ghost",
1438
- size: "2xs",
1439
- iconOnly: !0,
1440
- get class() {
1441
- return W(() => s() === t.id)() ? u.notificationItemCopyDone : void 0;
1442
- },
1443
- onClick: () => {
1444
- Ct(t);
1445
- },
1446
- get title() {
1447
- return W(() => s() === t.id)() ? n("Copied") : n("Copy log message");
1448
- },
1449
- get "aria-label"() {
1450
- return W(() => s() === t.id)() ? n("Copied") : n("Copy log message");
1451
- },
1452
- get children() {
1453
- return o(E, {
1454
- get when() {
1455
- return s() === t.id;
1456
- },
1457
- get fallback() {
1458
- return o(Dn, {
1459
- get class() {
1460
- return u.notificationActionIcon;
1461
- }
1462
- });
1463
- },
1464
- get children() {
1465
- return o(An, {
1466
- get class() {
1467
- return u.notificationActionIcon;
1468
- }
1469
- });
1470
- }
1471
- });
1472
- }
1473
- })), i(o(D, {
1474
- variant: "ghost",
1475
- size: "2xs",
1476
- iconOnly: !0,
1477
- onClick: () => {
1478
- gt(t.id);
1479
- },
1480
- get title() {
1481
- return n("Remove notification");
1482
- },
1483
- get "aria-label"() {
1484
- return n("Remove notification");
1485
- },
1486
- get leadingIcon() {
1487
- return o(En, {
1488
- get class() {
1489
- return u.notificationActionIcon;
1490
- }
1491
- });
1492
- }
1493
- })), p("class", i(u.notificationItemMessage, !0), !1), i(t.message), p("class", i(u.notificationItemMeta, !0), !1), p("class", i(u.notificationSourceLabel, !0), !1) + p("title", i(j(t.source).description, !0), !1), i(j(t.source).label), i(o(E, {
1494
- get when() {
1495
- return t.priority === "urgent";
1496
- },
1497
- get children() {
1498
- return o(ie, {
1499
- tone: "danger",
1500
- size: "sm",
1501
- children: "urgent"
1502
- });
1503
- }
1504
- })), i(o(E, {
1505
- get when() {
1506
- return t.priority === "silent";
1507
- },
1508
- get children() {
1509
- return o(ie, {
1510
- tone: "neutral",
1511
- size: "sm",
1512
- get icon() {
1513
- return o(Te, {
1514
- get class() {
1515
- return u.priorityBadgeIcon;
1516
- }
1517
- });
1518
- },
1519
- get tooltip() {
1520
- return n("Silent — timeline only");
1521
- },
1522
- children: "silent"
1523
- });
1524
- }
1525
- })), i(o(E, {
1526
- get when() {
1527
- return Ge(t.source);
1528
- },
1529
- get children() {
1530
- return o(ie, {
1531
- tone: "warning",
1532
- size: "sm",
1533
- get tooltip() {
1534
- return n("Source muted");
1535
- },
1536
- children: "muted"
1537
- });
1538
- }
1539
- })));
1540
- }
1541
- }
1542
- const lo = "vk_center_5Vlx7", uo = "vk_header_vo883", go = "vk_title_JpYEU", fo = "vk_actions_ErJgC", po = "vk_actionIcon_-JWZ1", mo = "vk_list_YLy-l", ho = "vk_card_-fwSa", bo = "vk_cardIcon_RBj-W", vo = "vk_cardBody_z8pxK", So = "vk_cardMessage_aN-yw", yo = "vk_cardMeta_XQ3my", To = "vk_cardButtons_1PXZE", ko = "vk_cardSource_Z8c0M", Co = "vk_cardTime_OXbCq", _o = "vk_cardActions_QOc1i", A = {
1543
- center: lo,
1544
- header: uo,
1545
- title: go,
1546
- actions: fo,
1547
- actionIcon: po,
1548
- list: mo,
1549
- card: ho,
1550
- cardIcon: bo,
1551
- cardBody: vo,
1552
- cardMessage: So,
1553
- cardMeta: yo,
1554
- cardButtons: To,
1555
- cardSource: ko,
1556
- cardTime: Co,
1557
- cardActions: _o
1558
- };
1559
- var Io = ["<h3", ">", "", "</h3>"], wo = ["<div", ">", "", "", "", "</div>"], Ao = ["<section", " data-notification-center>", "", "</section>"], Do = ["<div", " data-notification-card-actions>", "</div>"], Eo = ["<article", "><span", ' aria-hidden="true">', "</span><div", "><p", ">", "</p><div", "><span", ">", "</span><time", ">", "</time></div>", "</div><div", ">", "", "</div></article>"];
1560
- const xo = {
1561
- info: Bn,
1562
- warning: Fn,
1563
- error: Rn,
1564
- success: Mn
1565
- };
1566
- function Oo(e) {
1567
- return new Intl.DateTimeFormat(de(), {
1568
- hour: "2-digit",
1569
- minute: "2-digit"
1570
- }).format(new Date(e));
1571
- }
1572
- function Po(e) {
1573
- return new Intl.DateTimeFormat(de(), {
1574
- year: "numeric",
1575
- month: "short",
1576
- day: "2-digit",
1577
- hour: "2-digit",
1578
- minute: "2-digit",
1579
- second: "2-digit"
1580
- }).format(new Date(e));
1581
- }
1582
- function No(e) {
1583
- const [r, s] = x([]), [a, d] = x(z.get().doNotDisturb), m = qe();
1584
- ne(() => {
1585
- const f = Qt(s);
1586
- Y(f);
1587
- }), ye(z, () => {
1588
- d(z.get().doNotDisturb);
1589
- });
1590
- const v = H(() => [...r()].sort((f, h) => h.createdAt - f.createdAt)), c = (f) => xo[f], _ = () => {
1591
- const f = z.get();
1592
- z.update({
1593
- ...f,
1594
- doNotDisturb: !f.doNotDisturb
1595
- }).catch((h) => {
1596
- G(qt, {
1597
- cause: h
1598
- });
1599
- });
1600
- }, l = () => {
1601
- Qe("notification");
1602
- }, T = (f) => {
1603
- const h = [...f.actions ?? []], b = ce(f);
1604
- if (b) {
1605
- const k = b.helpers.docsUrl(b.code);
1606
- if (k) {
1607
- const w = `${b.helpers.formatCode(b.code)} ${b.helpers.docsLinkLabel}`;
1608
- h.some((y) => y.label === w) || h.push({
1609
- label: w,
1610
- onClick: () => le(k)
1611
- });
1612
- }
1613
- }
1614
- return h;
1615
- }, I = (f) => {
1616
- var b;
1617
- const h = f.message.trim();
1618
- h && ((b = navigator.clipboard) == null || b.writeText(h).catch(() => {
1619
- }));
1620
- }, B = (f, h, b) => {
1621
- if (m.state() !== null) {
1622
- m.close();
1623
- return;
1624
- }
1625
- const k = j(b.source), w = Ge(k.id), y = ce(b);
1626
- m.open(f, h, [{
1627
- label: n("Copy log message"),
1628
- onSelect: () => I(b)
1629
- }, ...y ? [{
1630
- label: n("Open {vendor} ({code})", {
1631
- vendor: y.helpers.docsLinkLabel,
1632
- code: y.helpers.formatCode(y.code)
1633
- }),
1634
- onSelect: () => le(y.helpers.docsUrl(y.code))
1635
- }] : [], {
1636
- type: "separator"
1637
- }, {
1638
- label: w ? n('Unmute "{source}"', {
1639
- source: k.label
1640
- }) : n('Mute "{source}"', {
1641
- source: k.label
1642
- }),
1643
- onSelect: () => {
1644
- Xt(k.id, !w);
1645
- }
1646
- }, {
1647
- type: "separator"
1648
- }, {
1649
- label: n("Remove notification"),
1650
- danger: !0,
1651
- onSelect: () => be(b.id)
1652
- }, {
1653
- label: n('Remove all from "{source}"', {
1654
- source: k.label
1655
- }),
1656
- danger: !0,
1657
- onSelect: () => jt(k.id)
1658
- }]);
1659
- };
1660
- return P(Ao, p("class", i(A.center, !0), !1), i(o(ve.Header, {
1661
- get class() {
1662
- return A.header;
1663
- },
1664
- get children() {
1665
- return [P(Io, p("class", i(A.title, !0), !1), i(n("Notifications")), i(o(E, {
1666
- get when() {
1667
- return v().length > 0;
1668
- },
1669
- get children() {
1670
- return ` (${v().length})`;
1671
- }
1672
- }))), P(wo, p("class", i(A.actions, !0), !1), i(o(D, {
1673
- variant: "ghost",
1674
- size: "sm",
1675
- iconOnly: !0,
1676
- onClick: () => Ue(),
1677
- get disabled() {
1678
- return v().length === 0;
1679
- },
1680
- get title() {
1681
- return n("Clear all notifications");
1682
- },
1683
- get "aria-label"() {
1684
- return n("Clear all notifications");
1685
- },
1686
- get children() {
1687
- return o(Se, {
1688
- get class() {
1689
- return A.actionIcon;
1690
- }
1691
- });
1692
- }
1693
- })), i(o(D, {
1694
- variant: "ghost",
1695
- size: "sm",
1696
- iconOnly: !0,
1697
- get active() {
1698
- return a();
1699
- },
1700
- onClick: _,
1701
- get title() {
1702
- return W(() => !!a())() ? n("Disable Do Not Disturb") : n("Enable Do Not Disturb");
1703
- },
1704
- get "aria-label"() {
1705
- return W(() => !!a())() ? n("Disable Do Not Disturb") : n("Enable Do Not Disturb");
1706
- },
1707
- get children() {
1708
- return o(E, {
1709
- get when() {
1710
- return a();
1711
- },
1712
- get fallback() {
1713
- return o(Ye, {
1714
- get class() {
1715
- return A.actionIcon;
1716
- }
1717
- });
1718
- },
1719
- get children() {
1720
- return o(Te, {
1721
- get class() {
1722
- return A.actionIcon;
1723
- }
1724
- });
1725
- }
1726
- });
1727
- }
1728
- })), i(o(D, {
1729
- variant: "ghost",
1730
- size: "sm",
1731
- iconOnly: !0,
1732
- onClick: l,
1733
- get title() {
1734
- return n("Notification settings");
1735
- },
1736
- get "aria-label"() {
1737
- return n("Notification settings");
1738
- },
1739
- get children() {
1740
- return o(Me, {
1741
- get class() {
1742
- return A.actionIcon;
1743
- }
1744
- });
1745
- }
1746
- })), i(o(D, {
1747
- variant: "ghost",
1748
- size: "sm",
1749
- iconOnly: !0,
1750
- get onClick() {
1751
- return e.onHide;
1752
- },
1753
- get title() {
1754
- return n("Hide notifications");
1755
- },
1756
- get "aria-label"() {
1757
- return n("Hide notifications");
1758
- },
1759
- get children() {
1760
- return o(xn, {
1761
- get class() {
1762
- return A.actionIcon;
1763
- }
1764
- });
1765
- }
1766
- })))];
1767
- }
1768
- })), i(o(E, {
1769
- get when() {
1770
- return v().length > 0;
1771
- },
1772
- get fallback() {
1773
- return o(Nn, {
1774
- size: "sm",
1775
- get title() {
1776
- return n("No new notifications");
1777
- }
1778
- });
1779
- },
1780
- get children() {
1781
- return o(je, {
1782
- get viewportClass() {
1783
- return A.list;
1784
- },
1785
- get children() {
1786
- return o(te, {
1787
- get each() {
1788
- return v();
1789
- },
1790
- children: (f) => {
1791
- const h = j(f.source), b = T(f);
1792
- return P(Eo, p("class", i(A.card, !0), !1), p("class", i(A.cardIcon, !0), !1) + p("data-tone", i(f.tone, !0), !1), i(o(en, {
1793
- get component() {
1794
- return c(f.tone);
1795
- }
1796
- })), p("class", i(A.cardBody, !0), !1), p("class", i(A.cardMessage, !0), !1), i(f.message), p("class", i(A.cardMeta, !0), !1), p("class", i(A.cardSource, !0), !1) + p("title", i(h.description, !0), !1), i(n("Source: {source}", {
1797
- source: h.label
1798
- })), p("class", i(A.cardTime, !0), !1) + p("datetime", i(new Date(f.createdAt).toISOString(), !0), !1) + p("title", i(Po(f.createdAt), !0), !1), i(Oo(f.createdAt)), i(o(E, {
1799
- get when() {
1800
- return b.length > 0;
1801
- },
1802
- get children() {
1803
- return P(Do, p("class", i(A.cardButtons, !0), !1), i(o(te, {
1804
- each: b,
1805
- children: (k) => o(D, {
1806
- get variant() {
1807
- return k.primary ? "primary" : "secondary";
1808
- },
1809
- size: "sm",
1810
- onClick: () => k.onClick(),
1811
- get children() {
1812
- return k.label;
1813
- }
1814
- })
1815
- })));
1816
- }
1817
- })), p("class", i(A.cardActions, !0), !1), i(o(D, {
1818
- variant: "ghost",
1819
- size: "sm",
1820
- iconOnly: !0,
1821
- onClick: (k) => {
1822
- const w = k.currentTarget.getBoundingClientRect();
1823
- B(w.left, w.bottom + 4, f);
1824
- },
1825
- get title() {
1826
- return n("More actions");
1827
- },
1828
- get "aria-label"() {
1829
- return n("More actions");
1830
- },
1831
- get children() {
1832
- return o(Me, {
1833
- get class() {
1834
- return A.actionIcon;
1835
- }
1836
- });
1837
- }
1838
- })), i(o(D, {
1839
- variant: "ghost",
1840
- size: "sm",
1841
- iconOnly: !0,
1842
- onClick: () => be(f.id),
1843
- get title() {
1844
- return n("Remove notification");
1845
- },
1846
- get "aria-label"() {
1847
- return n("Remove notification");
1848
- },
1849
- get children() {
1850
- return o($n, {
1851
- get class() {
1852
- return A.actionIcon;
1853
- }
1854
- });
1855
- }
1856
- })));
1857
- }
1858
- });
1859
- }
1860
- });
1861
- }
1862
- })));
1863
- }
1864
- const Mo = "vk_bell_tx9ag vk_buttonReset_3WpyU", Ro = "vk_bellIcon_w6Lmy", Bo = "vk_badge_2L8Eg", $o = "vk_centerPopover_48x5p", ee = {
1865
- bell: Mo,
1866
- bellIcon: Ro,
1867
- badge: Bo,
1868
- centerPopover: $o
1869
- };
1870
- var Fo = ["<span", ">", "</span>"];
1871
- function yr() {
1872
- const [e, r] = x(!1), [s, a] = x(0), [d, m] = x(z.get().doNotDisturb);
1873
- let v;
1874
- ne(() => {
1875
- const l = Le(a);
1876
- Y(l);
1877
- }), ye(z, () => {
1878
- m(z.get().doNotDisturb);
1879
- });
1880
- const c = () => {
1881
- r((l) => {
1882
- const T = !l;
1883
- return T && He(), T;
1884
- });
1885
- }, _ = () => s() > 99 ? "99+" : String(s());
1886
- return [o(We, {
1887
- type: "button",
1888
- get class() {
1889
- return ee.bell;
1890
- },
1891
- "data-status-bar-bell": !0,
1892
- get "data-open"() {
1893
- return e() ? "true" : "false";
1894
- },
1895
- onClick: c,
1896
- get title() {
1897
- return W(() => !!d())() ? n("Notifications (Do Not Disturb on)") : n("Show notifications");
1898
- },
1899
- get "aria-label"() {
1900
- return W(() => !!d())() ? n("Notifications (Do Not Disturb on)") : n("Show notifications");
1901
- },
1902
- "aria-haspopup": "dialog",
1903
- get "aria-expanded"() {
1904
- return e();
1905
- },
1906
- get children() {
1907
- return [o(E, {
1908
- get when() {
1909
- return d();
1910
- },
1911
- get fallback() {
1912
- return o(Ye, {
1913
- get class() {
1914
- return ee.bellIcon;
1915
- }
1916
- });
1917
- },
1918
- get children() {
1919
- return o(Te, {
1920
- get class() {
1921
- return ee.bellIcon;
1922
- }
1923
- });
1924
- }
1925
- }), o(E, {
1926
- get when() {
1927
- return s() > 0;
1928
- },
1929
- get children() {
1930
- return P(Fo, p("class", i(ee.badge, !0), !1), i(_()));
1931
- }
1932
- })];
1933
- }
1934
- }), o(On, {
1935
- get open() {
1936
- return e();
1937
- },
1938
- onClose: () => r(!1),
1939
- anchor: () => v,
1940
- placement: "top-end",
1941
- gap: 6,
1942
- role: "dialog",
1943
- get ariaLabel() {
1944
- return n("Notifications");
1945
- },
1946
- get class() {
1947
- return ee.centerPopover;
1948
- },
1949
- get children() {
1950
- return o(No, {
1951
- onHide: () => r(!1)
1952
- });
1953
- }
1954
- })];
1955
- }
1956
- export {
1957
- Gn as L,
1958
- ke as N,
1959
- yr as S,
1960
- Je as a,
1961
- Sr as b,
1962
- No as c,
1963
- Qn as d,
1964
- vr as e,
1965
- ui as f,
1966
- di as g,
1967
- qn as h,
1968
- Yn as i,
1969
- Wn as j,
1970
- br as k,
1971
- mr as l,
1972
- j as r,
1973
- hr as s
1974
- };