@vokril/ui-solid 0.9.2 → 0.13.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 (246) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/{AttributeGrid-Bnn1w5XX.cjs → AttributeGrid-Bg88JYZI.cjs} +1 -1
  3. package/dist/{AttributeGrid-DJdW32LQ.js → AttributeGrid-BypjAajJ.js} +4 -4
  4. package/dist/{Button-BZWXPn8y.js → Button-Db6wMY-3.js} +2 -2
  5. package/dist/{Button-X8QR6llv.cjs → Button-d9jJBibg.cjs} +1 -1
  6. package/dist/CommandPalette-DeEImZ8D.cjs +2 -0
  7. package/dist/{CommandPalette-ZCFlLqrP.js → CommandPalette-yqvM9AuU.js} +1372 -1425
  8. package/dist/{CopyButton-D3dIRRnn.js → CopyButton-C93PFyYK.js} +1 -1
  9. package/dist/{CopyButton-3cX5MHAf.cjs → CopyButton-CXaZRU7b.cjs} +1 -1
  10. package/dist/{DateRangePicker-DHI3SNna.cjs → DateRangePicker-7t4JKCp1.cjs} +1 -1
  11. package/dist/{DateRangePicker-BcqoUao4.js → DateRangePicker-D-5rg3h1.js} +4 -4
  12. package/dist/{GuidedTour-c7XiyOmE.cjs → GuidedTour-C_Lxe1t_.cjs} +10 -10
  13. package/dist/{GuidedTour-B-BXe3ul.js → GuidedTour-lsljVkPL.js} +1489 -1487
  14. package/dist/{IconPicker-CXbFmJ3y.js → IconPicker-C3ZwWkB1.js} +4 -4
  15. package/dist/{IconPicker-9tjEtmqt.cjs → IconPicker-DPT-QfsC.cjs} +1 -1
  16. package/dist/{Input-BEnk4FCF.cjs → Input-Ca8fLm_s.cjs} +1 -1
  17. package/dist/{Input-PZ5wRvPx.js → Input-gq8EcQao.js} +1 -1
  18. package/dist/{Modal-CsiV55WW.js → Modal-C4l_yuY9.js} +3 -3
  19. package/dist/{Modal-DpDHzCWT.cjs → Modal-CJhd27dM.cjs} +1 -1
  20. package/dist/{PageSkeleton-CyTXvZYm.js → PageSkeleton-C95fXUUk.js} +56 -56
  21. package/dist/{PageSkeleton-DzKYTuNy.cjs → PageSkeleton-SYSL4Adl.cjs} +1 -1
  22. package/dist/{SearchableSelect-C6KL7e42.js → SearchableSelect-BpOD2_A-.js} +3 -3
  23. package/dist/{SearchableSelect-zT8XNpmt.cjs → SearchableSelect-MN5azo9r.cjs} +1 -1
  24. package/dist/{StatusBarNotificationBell-CZmym2gV.js → StatusBarNotificationBell-B1bvE_SO.js} +45 -45
  25. package/dist/{StatusBarNotificationBell-DG8Pe6R-.cjs → StatusBarNotificationBell-Cqo6cZbO.cjs} +1 -1
  26. package/dist/{Stepper-BxXwbDq4.js → Stepper-BgDx1cPX.js} +1 -1
  27. package/dist/{Stepper-DoJFCfC7.cjs → Stepper-D7rXGxdg.cjs} +1 -1
  28. package/dist/{Textarea-BunKEY68.cjs → Textarea-BltpSavs.cjs} +1 -1
  29. package/dist/{Textarea-BUxibzkR.js → Textarea-BueHsjOk.js} +1 -1
  30. package/dist/{TimeSeriesChart-DBrDzBGE.js → TimeSeriesChart-C3o7NZPh.js} +1 -1
  31. package/dist/{TimeSeriesChart-CS4jQflv.cjs → TimeSeriesChart-DhYtrAgX.cjs} +1 -1
  32. package/dist/{ToggleButton-Bjxv8KGH.cjs → ToggleButton-BmwDfsn4.cjs} +1 -1
  33. package/dist/{ToggleButton-BfjXnp-P.js → ToggleButton-DCP7f6Uo.js} +6 -6
  34. package/dist/_internal/app/settings/secrets/notificationSecrets.d.cts +23 -14
  35. package/dist/_internal/app/settings/secrets/notificationSecrets.d.ts +23 -14
  36. package/dist/_internal/platform/a11y/announcerService.d.cts +9 -13
  37. package/dist/_internal/platform/a11y/announcerService.d.ts +9 -13
  38. package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -5
  39. package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -5
  40. package/dist/a11y/index.cjs +1 -1
  41. package/dist/a11y/index.js +1 -1
  42. package/dist/{catalogNotify-CIhFuJ1b.js → catalogNotify-BcY9oqVy.js} +287 -274
  43. package/dist/catalogNotify-DacJjC-p.cjs +27 -0
  44. package/dist/charts/index.cjs +1 -1
  45. package/dist/charts/index.js +1 -1
  46. package/dist/{createResizableSidebar-pDoO-7q9.cjs → createResizableSidebar-BIhyo5zN.cjs} +1 -1
  47. package/dist/{createResizableSidebar-2TgiFZp1.js → createResizableSidebar-Cqv-1IXG.js} +6 -6
  48. package/dist/{server/defineSettings-By5ell8e.js → defineSettings-CcYXt2Jf.js} +1 -1
  49. package/dist/{defineSettings-DRv1FRbv.cjs → defineSettings-yHQdUwxI.cjs} +1 -1
  50. package/dist/{descriptor-B1MaujhY.js → descriptor-CrCl515S.js} +2 -2
  51. package/dist/{descriptor-lw1fA9mi.cjs → descriptor-Dmch-3AF.cjs} +1 -1
  52. package/dist/desktop/index.cjs +1 -1
  53. package/dist/desktop/index.js +5 -5
  54. package/dist/{displayOwner-BNw2Foa_.cjs → displayOwner-eYQHHvjt.cjs} +1 -1
  55. package/dist/{server/displayOwner-B_ezJv-O.js → displayOwner-mT80Oyi-.js} +1 -1
  56. package/dist/feedback/index.cjs +1 -1
  57. package/dist/feedback/index.js +3 -3
  58. package/dist/focusModality-BNjYldd9.cjs +1 -0
  59. package/dist/focusModality-DxudpWPs.js +135 -0
  60. package/dist/{format-UGlMj0HW.js → format-BS7oDguE.js} +3 -3
  61. package/dist/{format-Dih0q9gm.cjs → format-CuANkXXB.cjs} +1 -1
  62. package/dist/forms/index.cjs +1 -1
  63. package/dist/forms/index.js +9 -9
  64. package/dist/grid/index.cjs +1 -1
  65. package/dist/grid/index.js +1 -1
  66. package/dist/{server/headerIconOverrides-BCzeaBA1.js → headerIconOverrides-B7TQUBmD.js} +1 -1
  67. package/dist/{headerIconOverrides-64lFnqTt.cjs → headerIconOverrides-DY3BTuca.cjs} +1 -1
  68. package/dist/host/index.cjs +1 -1
  69. package/dist/host/index.d.cts +1 -0
  70. package/dist/host/index.d.ts +1 -0
  71. package/dist/host/index.js +94 -91
  72. package/dist/host/kitHost.d.cts +23 -0
  73. package/dist/host/kitHost.d.ts +23 -0
  74. package/dist/i18n/index.cjs +1 -1
  75. package/dist/i18n/index.js +1 -1
  76. package/dist/{i18n-CYq-dVvv.js → i18n-D9k9xwuD.js} +1 -1
  77. package/dist/{i18n-B9ccWgcR.cjs → i18n-DXXArz-m.cjs} +1 -1
  78. package/dist/index.cjs +1 -1
  79. package/dist/index.js +1049 -995
  80. package/dist/kitHost-BfJExE1G.cjs +1 -0
  81. package/dist/kitHost-CVAEi9sF.js +23 -0
  82. package/dist/layout/index.cjs +1 -1
  83. package/dist/layout/index.js +2 -2
  84. package/dist/{mainRealmDom-DijAgSXt.cjs → mainRealmDom-CkoRyNhZ.cjs} +1 -1
  85. package/dist/{mainRealmDom-COGBiX78.js → mainRealmDom-kEStLHIY.js} +1 -1
  86. package/dist/{menuFavorites-Db1DpHX6.js → menuFavorites-BmdM_qV5.js} +1 -1
  87. package/dist/{menuFavorites-EluLLTfi.cjs → menuFavorites-DoDFvtlQ.cjs} +1 -1
  88. package/dist/navigation/index.cjs +1 -1
  89. package/dist/navigation/index.js +1 -1
  90. package/dist/{notification-DFbp3S_f.js → notification-CpDYN_iu.js} +1 -1
  91. package/dist/{notification-CrxHMXsk.cjs → notification-DygvQB_o.cjs} +1 -1
  92. package/dist/{notificationSuppressions-DFbFpayS.cjs → notificationSuppressions-DGfo2QKG.cjs} +1 -1
  93. package/dist/{notificationSuppressions-CBIJ4bC4.js → notificationSuppressions-ddyK85cB.js} +2 -2
  94. package/dist/notifications/index.cjs +1 -1
  95. package/dist/notifications/index.d.cts +1 -0
  96. package/dist/notifications/index.d.ts +1 -0
  97. package/dist/notifications/index.js +83 -77
  98. package/dist/overlay/ConfirmDialog.d.cts +22 -4
  99. package/dist/overlay/ConfirmDialog.d.ts +22 -4
  100. package/dist/overlay/DangerousActionDialog.d.cts +2 -2
  101. package/dist/overlay/DangerousActionDialog.d.ts +2 -2
  102. package/dist/overlay/index.cjs +1 -1
  103. package/dist/overlay/index.js +38 -38
  104. package/dist/{server/preferencesCache-BhUd3K9p.js → preferencesCache-Bow6TxP1.js} +1 -1
  105. package/dist/{preferencesCache-DJPCTPYx.cjs → preferencesCache-D7mm43_n.cjs} +1 -1
  106. package/dist/rendererLogging-Dt5FZ8mq.cjs +7 -0
  107. package/dist/{rendererLogging-Edo4ALXU.js → rendererLogging-gAhiHWkA.js} +65 -65
  108. package/dist/server/{AttributeGrid-BVAQshm3.cjs → AttributeGrid-CyMsR4GC.cjs} +1 -1
  109. package/dist/server/{AttributeGrid-BCYNwNjw.js → AttributeGrid-UJtHTip2.js} +3 -3
  110. package/dist/server/{Button-BhqhjFpY.js → Button-BesBg6eW.js} +1 -1
  111. package/dist/server/{Button-CFOM8pOv.cjs → Button-PZulLru4.cjs} +1 -1
  112. package/dist/server/CommandPalette-C8treS8g.cjs +1 -0
  113. package/dist/server/CommandPalette-Dslsq5Ez.js +3155 -0
  114. package/dist/server/{CopyButton-C2jzn9tR.cjs → CopyButton-D_sN2Ggp.cjs} +1 -1
  115. package/dist/server/{CopyButton-CChDa2p3.js → CopyButton-I5xsXV07.js} +1 -1
  116. package/dist/server/{DateRangePicker-sX2m4194.cjs → DateRangePicker-CDKi9BAf.cjs} +1 -1
  117. package/dist/server/{DateRangePicker-QV6U1adB.js → DateRangePicker-DGUl2aE3.js} +3 -3
  118. package/dist/server/GuidedTour-B3T9rAPX.cjs +20 -0
  119. package/dist/server/{GuidedTour-BhJGkoPa.js → GuidedTour-DSoSZZby.js} +1559 -1557
  120. package/dist/server/{IconPicker-CSFowOa0.cjs → IconPicker-BlD0VBca.cjs} +1 -1
  121. package/dist/server/{IconPicker-B-d_Wcsj.js → IconPicker-o8hUxjYU.js} +4 -4
  122. package/dist/server/{Modal-CAVr4DU6.cjs → Modal-CCUwQYso.cjs} +1 -1
  123. package/dist/server/{Modal-usxkqDtK.js → Modal-DmF6CwfY.js} +2 -2
  124. package/dist/server/{PageSkeleton-Bpgep9QW.js → PageSkeleton-BigztY5i.js} +21 -21
  125. package/dist/server/{PageSkeleton-KwYRrZua.cjs → PageSkeleton-DdpXfZoC.cjs} +1 -1
  126. package/dist/server/{SearchableSelect-0dP7bp0a.js → SearchableSelect-Dn-cssWx.js} +2 -2
  127. package/dist/server/{SearchableSelect-nMecJAYS.cjs → SearchableSelect-R0Dwz9rz.cjs} +1 -1
  128. package/dist/server/{StatusBarNotificationBell-C9MCuKT6.js → StatusBarNotificationBell-C64Odn2C.js} +169 -169
  129. package/dist/server/{StatusBarNotificationBell-BJyGqDCX.cjs → StatusBarNotificationBell-DY0Q27su.cjs} +1 -1
  130. package/dist/server/{Stepper-B8hDDujj.js → Stepper-BaQ6Kexj.js} +1 -1
  131. package/dist/server/{Stepper-DvoJXLcM.cjs → Stepper-dBm8YaCw.cjs} +1 -1
  132. package/dist/server/{TimeSeriesChart-C1LbL_xp.js → TimeSeriesChart-BbbfDyeA.js} +1 -1
  133. package/dist/server/{TimeSeriesChart-DtldQrxS.cjs → TimeSeriesChart-qPgMkkaW.cjs} +1 -1
  134. package/dist/server/{ToggleButton-DTI2HB97.cjs → ToggleButton-1bNYk35x.cjs} +1 -1
  135. package/dist/server/{ToggleButton--G4HCOTD.js → ToggleButton-C0_QpslP.js} +4 -4
  136. package/dist/server/a11y/index.cjs +1 -1
  137. package/dist/server/a11y/index.js +1 -1
  138. package/dist/server/catalogNotify-MCW2sa2e.cjs +27 -0
  139. package/dist/server/{catalogNotify-mUcKuUmZ.js → catalogNotify-s3YymAe8.js} +289 -276
  140. package/dist/server/charts/index.cjs +1 -1
  141. package/dist/server/charts/index.js +1 -1
  142. package/dist/server/{createResizableSidebar-D96TivmC.js → createResizableSidebar-MIzUlfdd.js} +5 -5
  143. package/dist/server/{createResizableSidebar-SJ2NCIYW.cjs → createResizableSidebar-TdxLuiY8.cjs} +1 -1
  144. package/dist/{defineSettings-By5ell8e.js → server/defineSettings-CcYXt2Jf.js} +1 -1
  145. package/dist/server/{defineSettings-DRv1FRbv.cjs → defineSettings-yHQdUwxI.cjs} +1 -1
  146. package/dist/server/{descriptor-IJq9wdXK.cjs → descriptor-DAyyoF-I.cjs} +1 -1
  147. package/dist/server/{descriptor-DWkJAggS.js → descriptor-DtZDXBe6.js} +2 -2
  148. package/dist/server/desktop/index.cjs +1 -1
  149. package/dist/server/desktop/index.js +4 -4
  150. package/dist/server/{displayOwner-BNw2Foa_.cjs → displayOwner-eYQHHvjt.cjs} +1 -1
  151. package/dist/{displayOwner-B_ezJv-O.js → server/displayOwner-mT80Oyi-.js} +1 -1
  152. package/dist/server/feedback/index.cjs +1 -1
  153. package/dist/server/feedback/index.js +2 -2
  154. package/dist/server/{focusModality-DmOZptla.js → focusModality-BCX5GH0P.js} +31 -29
  155. package/dist/server/focusModality-BKgJWRlC.cjs +1 -0
  156. package/dist/server/{format-CW_FVfq2.js → format-CYCi8g4r.js} +1 -1
  157. package/dist/server/{format-x-8syaS2.cjs → format-WfZycMBL.cjs} +1 -1
  158. package/dist/server/forms/index.cjs +1 -1
  159. package/dist/server/forms/index.js +7 -7
  160. package/dist/server/grid/index.cjs +1 -1
  161. package/dist/server/grid/index.js +1 -1
  162. package/dist/{headerIconOverrides-BCzeaBA1.js → server/headerIconOverrides-B7TQUBmD.js} +1 -1
  163. package/dist/server/{headerIconOverrides-64lFnqTt.cjs → headerIconOverrides-DY3BTuca.cjs} +1 -1
  164. package/dist/server/host/index.cjs +1 -1
  165. package/dist/server/host/index.js +94 -91
  166. package/dist/server/i18n/index.cjs +1 -1
  167. package/dist/server/i18n/index.js +1 -1
  168. package/dist/server/{i18n-CYq-dVvv.js → i18n-D9k9xwuD.js} +1 -1
  169. package/dist/server/{i18n-B9ccWgcR.cjs → i18n-DXXArz-m.cjs} +1 -1
  170. package/dist/server/index-B4epvfiq.js +13377 -0
  171. package/dist/server/index-DlQYWckZ.cjs +1 -0
  172. package/dist/server/index.cjs +1 -1
  173. package/dist/server/index.js +1026 -972
  174. package/dist/server/kitHost-BfJExE1G.cjs +1 -0
  175. package/dist/server/kitHost-CVAEi9sF.js +23 -0
  176. package/dist/server/layout/index.cjs +1 -1
  177. package/dist/server/layout/index.js +2 -2
  178. package/dist/server/{menuFavorites-Db1DpHX6.js → menuFavorites-BmdM_qV5.js} +1 -1
  179. package/dist/server/{menuFavorites-EluLLTfi.cjs → menuFavorites-DoDFvtlQ.cjs} +1 -1
  180. package/dist/server/navigation/index.cjs +1 -1
  181. package/dist/server/navigation/index.js +1 -1
  182. package/dist/server/{notification-DFbp3S_f.js → notification-CpDYN_iu.js} +1 -1
  183. package/dist/server/{notification-CrxHMXsk.cjs → notification-DygvQB_o.cjs} +1 -1
  184. package/dist/server/{notificationSuppressions-DkrUMXHx.js → notificationSuppressions-B-LKq9ZU.js} +2 -2
  185. package/dist/server/{notificationSuppressions-D7FZmJy8.cjs → notificationSuppressions-Dcc2WFBZ.cjs} +1 -1
  186. package/dist/server/notifications/index.cjs +1 -1
  187. package/dist/server/notifications/index.js +81 -75
  188. package/dist/server/overlay/index.cjs +1 -1
  189. package/dist/server/overlay/index.js +27 -27
  190. package/dist/{preferencesCache-BhUd3K9p.js → server/preferencesCache-Bow6TxP1.js} +1 -1
  191. package/dist/server/{preferencesCache-DJPCTPYx.cjs → preferencesCache-D7mm43_n.cjs} +1 -1
  192. package/dist/server/rendererLogging-Dt5FZ8mq.cjs +7 -0
  193. package/dist/server/{rendererLogging-Edo4ALXU.js → rendererLogging-gAhiHWkA.js} +65 -65
  194. package/dist/server/settings/index.cjs +1 -1
  195. package/dist/server/settings/index.js +3 -3
  196. package/dist/server/{settingsSearchContributor-DeMn-njw.js → settingsSearchContributor-CRZsl2Q_.js} +2 -2
  197. package/dist/server/{settingsSearchContributor-DZj7Wc8l.cjs → settingsSearchContributor-DH8UFpp2.cjs} +1 -1
  198. package/dist/server/tree/index.cjs +1 -1
  199. package/dist/server/tree/index.js +1 -1
  200. package/dist/settings/index.cjs +1 -1
  201. package/dist/settings/index.js +3 -3
  202. package/dist/{settingsSearchContributor-C-UJc7Xc.js → settingsSearchContributor-DWP5dwn3.js} +2 -2
  203. package/dist/{settingsSearchContributor-Du0SDpJt.cjs → settingsSearchContributor-Dltbs1j_.cjs} +1 -1
  204. package/dist/solid/_internal/app/settings/secrets/notificationSecrets.js +20 -28
  205. package/dist/solid/_internal/platform/a11y/announcerService.js +0 -24
  206. package/dist/solid/a11y/AriaAnnouncer.jsx +4 -4
  207. package/dist/solid/host/index.js +1 -0
  208. package/dist/solid/host/kitHost.jsx +15 -0
  209. package/dist/solid/notifications/NotificationItem.jsx +4 -3
  210. package/dist/solid/notifications/emailDigest.js +2 -2
  211. package/dist/solid/notifications/index.js +1 -0
  212. package/dist/solid/notifications/webhookDelivery.js +2 -2
  213. package/dist/solid/overlay/ConfirmDialog.jsx +1 -21
  214. package/dist/style.css +1 -1
  215. package/dist/{tooltipCoordinator-y5YP3tsJ.cjs → tooltipCoordinator-Causlcgt.cjs} +1 -1
  216. package/dist/{tooltipCoordinator-GV0L9lXH.js → tooltipCoordinator-Zim5pWzk.js} +1 -1
  217. package/dist/tree/index.cjs +1 -1
  218. package/dist/tree/index.js +1 -1
  219. package/dist/ui.css +1 -1
  220. package/package.json +2 -2
  221. package/dist/CommandPalette-DToM9pUp.cjs +0 -2
  222. package/dist/_internal/platform/instantiation/common/descriptors.d.cts +0 -9
  223. package/dist/_internal/platform/instantiation/common/descriptors.d.ts +0 -9
  224. package/dist/_internal/platform/instantiation/common/instantiation.d.cts +0 -99
  225. package/dist/_internal/platform/instantiation/common/instantiation.d.ts +0 -99
  226. package/dist/_internal/platform/instantiation/common/serviceCollection.d.cts +0 -8
  227. package/dist/_internal/platform/instantiation/common/serviceCollection.d.ts +0 -8
  228. package/dist/announcerService-B7yicxvU.js +0 -97
  229. package/dist/announcerService-D_pFE24a.cjs +0 -1
  230. package/dist/catalogNotify-C9RzbC6x.cjs +0 -27
  231. package/dist/focusModality-B150daiS.js +0 -133
  232. package/dist/focusModality-PPfeW05D.cjs +0 -1
  233. package/dist/rendererLogging-B4XML4_G.cjs +0 -7
  234. package/dist/server/CommandPalette-C3Bw1teR.cjs +0 -1
  235. package/dist/server/CommandPalette-S7tfmFMb.js +0 -3208
  236. package/dist/server/GuidedTour-Dx0endYh.cjs +0 -20
  237. package/dist/server/announcerService-B7yicxvU.js +0 -97
  238. package/dist/server/announcerService-D_pFE24a.cjs +0 -1
  239. package/dist/server/catalogNotify-BPPTINme.cjs +0 -27
  240. package/dist/server/focusModality-CeTPyRiF.cjs +0 -1
  241. package/dist/server/index-BZO0w8b6.js +0 -3661
  242. package/dist/server/index-DgIX9RIA.cjs +0 -1
  243. package/dist/server/rendererLogging-B4XML4_G.cjs +0 -7
  244. package/dist/solid/_internal/platform/instantiation/common/descriptors.js +0 -10
  245. package/dist/solid/_internal/platform/instantiation/common/instantiation.js +0 -35
  246. package/dist/solid/_internal/platform/instantiation/common/serviceCollection.js +0 -14
@@ -1,112 +1,112 @@
1
- import { B as _ } from "./bugIndicatingError-h3J5qkL6.js";
2
- import { g as H, e as N } from "./rendererLogging-Edo4ALXU.js";
3
- import { A as Ce, B as Ae, z as K, C as $e, k as ae, n as z, l as De, D as Re, b as ue, E as le, e as Ne, h as te, i as Ie, f as Oe, F as de, G as Ue } from "./notificationSuppressions-DkrUMXHx.js";
4
- import { n as f } from "./notification-DFbp3S_f.js";
5
- import { t as m } from "./i18n-CYq-dVvv.js";
6
- const Me = {
1
+ import { B as O } from "./bugIndicatingError-h3J5qkL6.js";
2
+ import { g as H, e as N } from "./rendererLogging-gAhiHWkA.js";
3
+ import { A as De, B as Re, z as K, C as Ne, k as de, n as ee, l as Ie, D as Ue, b as fe, E as ge, e as Oe, h as ne, i as Me, f as qe, F as me, G as Fe } from "./notificationSuppressions-B-LKq9ZU.js";
4
+ import { n as f } from "./notification-CpDYN_iu.js";
5
+ import { t as m } from "./i18n-D9k9xwuD.js";
6
+ const Pe = {
7
7
  info: { freq: 660, ms: 140 },
8
8
  success: { freq: 880, ms: 180 },
9
9
  warning: { freq: 520, ms: 220 },
10
10
  error: { freq: 320, ms: 260 }
11
- }, qe = {
11
+ }, We = {
12
12
  info: "soundOnInfo",
13
13
  success: "soundOnSuccess",
14
14
  warning: "soundOnWarning",
15
15
  error: "soundOnError"
16
- }, Fe = {
16
+ }, _e = {
17
17
  info: "customSoundInfo",
18
18
  success: "customSoundSuccess",
19
19
  warning: "customSoundWarning",
20
20
  error: "customSoundError"
21
21
  };
22
- function Pe(t, e, r) {
23
- if (!e[qe[t]] || e.quietHoursMutesSounds && r) return null;
24
- const i = e[Fe[t]].trim();
22
+ function He(t, e, r) {
23
+ if (!e[We[t]] || e.quietHoursMutesSounds && r) return null;
24
+ const i = e[_e[t]].trim();
25
25
  if (i) return { kind: "custom", path: i };
26
- const n = Me[t];
26
+ const n = Pe[t];
27
27
  return { kind: "builtin", freq: n.freq, ms: n.ms };
28
28
  }
29
- const V = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map();
30
- async function _e(t) {
31
- const e = V.get(t);
29
+ const L = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
30
+ async function Ke(t) {
31
+ const e = L.get(t);
32
32
  if (e) return e;
33
- let r = q.get(t);
34
- return r || (r = Ce(t).then((i) => (q.delete(t), i && V.set(t, i), i)), q.set(t, r)), await r ?? void 0;
33
+ let r = P.get(t);
34
+ return r || (r = De(t).then((i) => (P.delete(t), i && L.set(t, i), i)), P.set(t, r)), await r ?? void 0;
35
35
  }
36
36
  function It() {
37
- V.clear(), q.clear();
37
+ L.clear(), P.clear();
38
38
  }
39
- const G = H("NotificationAudio");
40
- let O = null, B = !1;
41
- function He() {
42
- if (B) return null;
43
- if (O) return O;
39
+ const te = H("NotificationAudio");
40
+ let M = null, V = !1;
41
+ function Be() {
42
+ if (V) return null;
43
+ if (M) return M;
44
44
  try {
45
45
  const t = window.AudioContext ?? window.webkitAudioContext;
46
- return t ? (O = new t(), O) : (B = !0, null);
46
+ return t ? (M = new t(), M) : (V = !0, null);
47
47
  } catch (t) {
48
- return B = !0, G.warn("AudioContext could not be created; notification sounds are off:", t), null;
48
+ return V = !0, te.warn("AudioContext could not be created; notification sounds are off:", t), null;
49
49
  }
50
50
  }
51
- async function Ke(t) {
52
- const e = await _e(t);
51
+ async function Ve(t) {
52
+ const e = await Ke(t);
53
53
  if (e)
54
54
  try {
55
55
  const r = new Audio(e);
56
56
  r.volume = 0.6, await r.play();
57
57
  } catch (r) {
58
- G.warn("Custom notification sound could not be played:", r);
58
+ te.warn("Custom notification sound could not be played:", r);
59
59
  }
60
60
  }
61
- function fe(t = 800, e = 200) {
62
- const r = He();
61
+ function ye(t = 800, e = 200) {
62
+ const r = Be();
63
63
  if (r)
64
64
  try {
65
65
  const i = r.currentTime, n = r.createOscillator(), s = r.createGain();
66
66
  n.connect(s), s.connect(r.destination), n.frequency.value = t, s.gain.setValueAtTime(0.3, i), s.gain.exponentialRampToValueAtTime(0.01, i + e / 1e3), n.start(i), n.stop(i + e / 1e3);
67
67
  } catch (i) {
68
- G.warn("Notification tone could not be played:", i);
68
+ te.warn("Notification tone could not be played:", i);
69
69
  }
70
70
  }
71
- function We() {
72
- fe(800, 200);
71
+ function Le() {
72
+ ye(800, 200);
73
73
  }
74
- function Be(t, e) {
75
- const r = Pe(
74
+ function Qe(t, e) {
75
+ const r = He(
76
76
  t,
77
77
  f.get(),
78
78
  e
79
79
  );
80
80
  if (r) {
81
81
  if (r.kind === "custom") {
82
- Ke(r.path);
82
+ Ve(r.path);
83
83
  return;
84
84
  }
85
- fe(r.freq, r.ms);
85
+ ye(r.freq, r.ms);
86
86
  }
87
87
  }
88
- let P = null;
89
- function Ot(t) {
90
- P = t;
88
+ let _ = null;
89
+ function Ut(t) {
90
+ _ = t;
91
91
  }
92
- function Ve() {
93
- return P !== null;
92
+ function Ye() {
93
+ return _ !== null;
94
94
  }
95
- function ge() {
96
- if (P === null)
97
- throw new _(
95
+ function ve() {
96
+ if (_ === null)
97
+ throw new O(
98
98
  "[vendorErrors] read before a source was installed — the host must call installVendorErrorSource at startup."
99
99
  );
100
- return P;
100
+ return _;
101
101
  }
102
- function J(t) {
103
- const e = ge().errorHelpersFor(t.vendorId);
102
+ function re(t) {
103
+ const e = ve().errorHelpersFor(t.vendorId);
104
104
  return e === null ? null : { vendorId: t.vendorId, code: t.code, helpers: e };
105
105
  }
106
- function Ut(t, e, r) {
107
- const i = ge().errorHelpersFor(t);
106
+ function Ot(t, e, r) {
107
+ const i = ve().errorHelpersFor(t);
108
108
  if (i === null)
109
- throw new _(
109
+ throw new O(
110
110
  `[vendorErrors] unknown preview vendor: ${t}`
111
111
  );
112
112
  return {
@@ -117,35 +117,35 @@ function Ut(t, e, r) {
117
117
  function Mt(t) {
118
118
  return `https://www.google.com/search?q=${encodeURIComponent(t)}`;
119
119
  }
120
- const me = H("NotificationTimeline");
120
+ const pe = H("NotificationTimeline");
121
121
  function qt(t) {
122
- return t.vendorError === void 0 ? null : J(t.vendorError);
122
+ return t.vendorError === void 0 ? null : re(t.vendorError);
123
123
  }
124
- const Le = 200;
125
- let L = [];
126
- const Q = /* @__PURE__ */ new Set();
124
+ const je = 200;
125
+ let Q = [];
126
+ const Y = /* @__PURE__ */ new Set();
127
127
  function C() {
128
- return [...L];
128
+ return [...Q];
129
129
  }
130
130
  function A(t) {
131
131
  const e = [...t].sort(
132
132
  (o, c) => c.createdAt - o.createdAt
133
133
  ), r = e.filter((o) => o.pinned === !0), n = e.filter((o) => o.pinned !== !0).slice(
134
134
  0,
135
- Math.max(0, Le - r.length)
135
+ Math.max(0, je - r.length)
136
136
  );
137
- L = [...[...r].sort(
137
+ Q = [...[...r].sort(
138
138
  (o, c) => (c.pinnedAt ?? c.createdAt) - (o.pinnedAt ?? o.createdAt)
139
139
  ), ...n];
140
- for (const o of Array.from(Q))
140
+ for (const o of Array.from(Y))
141
141
  try {
142
- o(L);
142
+ o(Q);
143
143
  } catch (c) {
144
- me.warn("Zaman cizelgesi dinleyicisi firlatti:", c);
144
+ pe.warn("Zaman cizelgesi dinleyicisi firlatti:", c);
145
145
  }
146
146
  }
147
147
  let k = 0, I = 0;
148
- const Y = /* @__PURE__ */ new Set();
148
+ const j = /* @__PURE__ */ new Set();
149
149
  function w(t, e, r = "general", i = "default", n, s) {
150
150
  if (!t.trim()) return;
151
151
  const o = {
@@ -158,48 +158,48 @@ function w(t, e, r = "general", i = "default", n, s) {
158
158
  ...n && n.length > 0 ? { actions: n } : {},
159
159
  ...s ? { vendorError: s } : {}
160
160
  };
161
- A([o, ...C()]), k += 1, ye();
161
+ A([o, ...C()]), k += 1, he();
162
162
  }
163
163
  function D(t) {
164
164
  if (t)
165
165
  return [{ label: t.label, onClick: t.onClick, primary: !0 }];
166
166
  }
167
- function ye() {
167
+ function he() {
168
168
  const t = Math.max(0, k - I);
169
- for (const e of Array.from(Y))
169
+ for (const e of Array.from(j))
170
170
  try {
171
171
  e(t);
172
172
  } catch (r) {
173
- me.warn("Okunmadi sayaci dinleyicisi firlatti:", r);
173
+ pe.warn("Okunmadi sayaci dinleyicisi firlatti:", r);
174
174
  }
175
- ve(t);
175
+ we(t);
176
176
  }
177
- let j = -1;
178
- function ve(t) {
177
+ let X = -1;
178
+ function we(t) {
179
179
  const e = f.get(), r = e.badgeCountEnabled ? Math.min(t, e.badgeCountMax) : 0;
180
- r !== j && (j = r, Ae(r));
180
+ r !== X && (X = r, Re(r));
181
181
  }
182
182
  function Ft() {
183
183
  const t = Math.max(0, k - I);
184
- j = -1, ve(t);
184
+ X = -1, we(t);
185
185
  }
186
186
  function Pt(t) {
187
- return Y.add(t), t(Math.max(0, k - I)), () => {
188
- Y.delete(t);
187
+ return j.add(t), t(Math.max(0, k - I)), () => {
188
+ j.delete(t);
189
189
  };
190
190
  }
191
- function _t() {
192
- I !== k && (I = k, ye());
191
+ function Wt() {
192
+ I !== k && (I = k, he());
193
193
  }
194
- function Ht(t) {
195
- return Q.add(t), t(C()), () => {
196
- Q.delete(t);
194
+ function _t(t) {
195
+ return Y.add(t), t(C()), () => {
196
+ Y.delete(t);
197
197
  };
198
198
  }
199
- function Kt() {
199
+ function Ht() {
200
200
  A([]);
201
201
  }
202
- function Wt(t) {
202
+ function Kt(t) {
203
203
  const e = C().filter((r) => r.id !== t);
204
204
  A(e);
205
205
  }
@@ -221,36 +221,36 @@ function Lt(t) {
221
221
  });
222
222
  A(r);
223
223
  }
224
- const F = /* @__PURE__ */ new Map();
224
+ const W = /* @__PURE__ */ new Map();
225
225
  function Qt() {
226
- F.clear();
226
+ W.clear();
227
227
  }
228
- function Qe(t) {
229
- if (F.has(t))
230
- return F.get(t) ?? null;
228
+ function Xe(t) {
229
+ if (W.has(t))
230
+ return W.get(t) ?? null;
231
231
  let e;
232
232
  try {
233
233
  e = new RegExp(t, "i");
234
234
  } catch {
235
235
  e = null;
236
236
  }
237
- return F.set(t, e), e;
237
+ return W.set(t, e), e;
238
238
  }
239
- function Ye(t, e) {
239
+ function ze(t, e) {
240
240
  const r = t.conditions;
241
241
  if (r.source && r.source !== e.source || r.severities && r.severities.length > 0 && !r.severities.includes(e.severity))
242
242
  return !1;
243
243
  if (r.titleRegex) {
244
- const i = Qe(r.titleRegex);
244
+ const i = Xe(r.titleRegex);
245
245
  if (!i || !i.test(e.title)) return !1;
246
246
  }
247
247
  return !0;
248
248
  }
249
- function je(t, e) {
249
+ function Ge(t, e) {
250
250
  if (e.length === 0) return t;
251
251
  let r = { ...t };
252
252
  for (const i of e)
253
- if (i.enabled && Ye(i, r)) {
253
+ if (i.enabled && ze(i, r)) {
254
254
  if (i.actions.suppress === !0) return null;
255
255
  if (i.actions.setSeverity && (r = { ...r, severity: i.actions.setSeverity }), i.actions.setPriority && (r = { ...r, priority: i.actions.setPriority }), i.actions.addPrefix) {
256
256
  const n = i.actions.addPrefix.trim();
@@ -259,35 +259,35 @@ function je(t, e) {
259
259
  }
260
260
  return r;
261
261
  }
262
- function re(t) {
262
+ function se(t) {
263
263
  const e = /^(\d{1,2}):(\d{2})$/.exec(t.trim());
264
264
  if (!e) return null;
265
265
  const r = Number(e[1]), i = Number(e[2]);
266
266
  return r > 23 || i > 59 ? null : r * 60 + i;
267
267
  }
268
- function pe(t, e) {
268
+ function Se(t, e) {
269
269
  if (!t.quietHoursEnabled || !t.quietHoursWeekdays.includes(e.getDay())) return !1;
270
- const r = re(t.quietHoursStart), i = re(t.quietHoursEnd);
270
+ const r = se(t.quietHoursStart), i = se(t.quietHoursEnd);
271
271
  if (r === null || i === null || r === i) return !1;
272
272
  const n = e.getHours() * 60 + e.getMinutes();
273
273
  return r < i ? n >= r && n < i : n >= r || n < i;
274
274
  }
275
- function Xe(t) {
275
+ function Je(t) {
276
276
  return t.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&");
277
277
  }
278
- const ie = {
278
+ const oe = {
279
279
  info: 0,
280
280
  success: 1,
281
281
  warning: 2,
282
282
  error: 3
283
283
  };
284
- function ze(t, e) {
285
- return e.osNativeEnabled ? t.priority === "urgent" && e.osNativeUrgentAlways ? { fire: !0, onlyWhenUnfocused: !1 } : ie[t.severity] < ie[e.osNativeMinSeverity] ? { fire: !1, onlyWhenUnfocused: !1 } : {
284
+ function Ze(t, e) {
285
+ return e.osNativeEnabled ? t.priority === "urgent" && e.osNativeUrgentAlways ? { fire: !0, onlyWhenUnfocused: !1 } : oe[t.severity] < oe[e.osNativeMinSeverity] ? { fire: !1, onlyWhenUnfocused: !1 } : {
286
286
  fire: !0,
287
287
  onlyWhenUnfocused: e.osNativeOnlyWhenUnfocused
288
288
  } : { fire: !1, onlyWhenUnfocused: !1 };
289
289
  }
290
- const Ge = {
290
+ const et = {
291
291
  "sql-execution": "sql",
292
292
  users: "users",
293
293
  tablespaces: "tablespaces",
@@ -295,44 +295,51 @@ const Ge = {
295
295
  locking: "locking",
296
296
  monitoring: "monitoring"
297
297
  };
298
- function Je(t, e) {
298
+ function tt(t, e) {
299
299
  if (e) return e;
300
300
  if (t !== void 0)
301
- return Ge[t];
301
+ return et[t];
302
302
  }
303
- const Ze = "notification.emailDigestSmtpPass", et = "notification.webhook.url.";
304
- function he() {
305
- const t = /* @__PURE__ */ new Map();
306
- return {
307
- get: (e) => Promise.resolve(t.get(e)),
308
- set: async (e, r) => {
309
- t.set(e, r);
310
- },
311
- delete: async (e) => {
312
- t.delete(e);
313
- },
314
- keys: async (e) => [...t.keys()].filter((r) => r.startsWith(e))
315
- };
316
- }
317
- let Z = he();
303
+ const z = "notification.emailDigestSmtpPass", G = "notification.webhook.url.";
304
+ let J = null;
318
305
  function Yt(t) {
319
- Z = t ?? he();
306
+ J = t;
307
+ }
308
+ function be() {
309
+ if (J === null)
310
+ throw new O(
311
+ "notificationSecretStore: no secret store was bound — call provideNotificationSecretStore() at startup."
312
+ );
313
+ return J;
320
314
  }
321
- function tt(t) {
322
- return `${et}${t}`;
315
+ function U(t) {
316
+ return `${G}${t}`;
323
317
  }
324
- function rt() {
325
- return Z.get(Ze);
318
+ function rt(t) {
319
+ return t.get(z);
326
320
  }
327
- function it(t) {
328
- return Z.get(tt(t));
321
+ async function jt(t, e) {
322
+ e ? await t.set(z, e) : await t.delete(z);
329
323
  }
330
- let we = "";
331
- function jt(t) {
332
- we = t.trim();
324
+ function it(t, e) {
325
+ return t.get(U(e));
333
326
  }
334
- function be() {
335
- return we;
327
+ async function Xt(t, e, r) {
328
+ r ? await t.set(U(e), r) : await t.delete(U(e));
329
+ }
330
+ function zt(t, e) {
331
+ return t.delete(U(e));
332
+ }
333
+ async function Gt(t, e) {
334
+ const r = new Set(e), i = (await t.keys()).filter((n) => n.startsWith(G)).map((n) => n.slice(G.length)).filter((n) => !r.has(n));
335
+ await Promise.all(i.map((n) => t.delete(U(n))));
336
+ }
337
+ let Te = "";
338
+ function Jt(t) {
339
+ Te = t.trim();
340
+ }
341
+ function Ee() {
342
+ return Te;
336
343
  }
337
344
  const nt = H("WebhookDelivery"), st = {
338
345
  info: "#007AB0",
@@ -406,7 +413,7 @@ async function ut(t, e, r) {
406
413
  }
407
414
  }
408
415
  async function lt(t, e) {
409
- const r = await it(t.id) ?? "";
416
+ const r = await it(be(), t.id) ?? "";
410
417
  r && await ut(t, r, e);
411
418
  }
412
419
  function dt(t) {
@@ -417,11 +424,11 @@ function dt(t) {
417
424
  for (const i of r)
418
425
  lt(i, t);
419
426
  }
420
- let X = null;
421
- function Xt(t) {
422
- X = t;
427
+ let Z = null;
428
+ function Zt(t) {
429
+ Z = t;
423
430
  }
424
- const ft = H("EmailDigest"), b = [], ne = 500, se = {
431
+ const ft = H("EmailDigest"), S = [], ce = 500, ae = {
425
432
  info: 0,
426
433
  success: 1,
427
434
  warning: 2,
@@ -429,20 +436,20 @@ const ft = H("EmailDigest"), b = [], ne = 500, se = {
429
436
  };
430
437
  function gt(t) {
431
438
  const e = f.get();
432
- e.emailDigestEnabled && (se[t.severity] < se[e.emailDigestMinSeverity] || (b.push(t), b.length > ne && b.splice(0, b.length - ne)));
439
+ e.emailDigestEnabled && (ae[t.severity] < ae[e.emailDigestMinSeverity] || (S.push(t), S.length > ce && S.splice(0, S.length - ce)));
433
440
  }
434
- const U = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
441
+ const q = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
435
442
  function mt(t) {
436
- const e = be(), r = t.map((i) => `<tr>
443
+ const e = Ee(), r = t.map((i) => `<tr>
437
444
  <td style="padding:4px 8px">${new Date(i.at).toISOString().slice(11, 19)}</td>
438
445
  <td style="padding:4px 8px"><strong>${i.severity}</strong></td>
439
- <td style="padding:4px 8px">${U(i.source)}</td>
440
- <td style="padding:4px 8px">${U(i.title)}${i.body ? `<br><small>${U(i.body)}</small>` : ""}</td>
446
+ <td style="padding:4px 8px">${q(i.source)}</td>
447
+ <td style="padding:4px 8px">${q(i.title)}${i.body ? `<br><small>${q(i.body)}</small>` : ""}</td>
441
448
  </tr>`).join(`
442
449
  `);
443
450
  return `<!doctype html>
444
451
  <html><body>
445
- <h2>${e ? `${U(e)} notification digest` : "Notification digest"}</h2>
452
+ <h2>${e ? `${q(e)} notification digest` : "Notification digest"}</h2>
446
453
  <p>${t.length} notification(s) since the last digest.</p>
447
454
  <table style="border-collapse:collapse">
448
455
  <thead><tr style="background:#eee">
@@ -463,7 +470,7 @@ function yt(t) {
463
470
  ${e.join(`
464
471
  `)}`;
465
472
  }
466
- function zt(t) {
473
+ function er(t) {
467
474
  switch (t.kind) {
468
475
  case "disabled":
469
476
  return m("Email digest is turned off.");
@@ -477,12 +484,12 @@ async function vt() {
477
484
  const t = f.get();
478
485
  if (!t.emailDigestEnabled)
479
486
  return { kind: "not-sent", reason: { kind: "disabled" } };
480
- if (b.length === 0) return { kind: "sent", count: 0 };
487
+ if (S.length === 0) return { kind: "sent", count: 0 };
481
488
  if (!t.emailDigestSmtpHost || !t.emailDigestFrom || !t.emailDigestTo)
482
489
  return { kind: "not-sent", reason: { kind: "smtp-incomplete" } };
483
- const e = b.splice(0, b.length), r = {
484
- sendEmailDigest: (o) => X ? X(o) : Promise.reject(new Error("No email digest transport configured"))
485
- }, i = be(), n = `${i ? `[${i}] ` : ""}${e.length} notification(s)`, s = await rt() ?? "";
490
+ const e = S.splice(0, S.length), r = {
491
+ sendEmailDigest: (o) => Z ? Z(o) : Promise.reject(new Error("No email digest transport configured"))
492
+ }, i = Ee(), n = `${i ? `[${i}] ` : ""}${e.length} notification(s)`, s = await rt(be()) ?? "";
486
493
  try {
487
494
  return await r.sendEmailDigest({
488
495
  smtp: {
@@ -499,10 +506,10 @@ async function vt() {
499
506
  text: yt(e)
500
507
  }), { kind: "sent", count: e.length };
501
508
  } catch (o) {
502
- return b.unshift(...e), { kind: "not-sent", reason: { kind: "send-failed", error: o } };
509
+ return S.unshift(...e), { kind: "not-sent", reason: { kind: "send-failed", error: o } };
503
510
  }
504
511
  }
505
- let oe = 0, ce = null;
512
+ let ue = 0, le = null;
506
513
  function pt(t) {
507
514
  const e = f.get();
508
515
  if (!e.emailDigestEnabled) return !1;
@@ -518,26 +525,26 @@ function pt(t) {
518
525
  return n === 1 && r === 9 && i === 0;
519
526
  }
520
527
  }
521
- function Gt() {
522
- ce === null && (typeof window > "u" || (ce = window.setInterval(() => {
528
+ function tr() {
529
+ le === null && (typeof window > "u" || (le = window.setInterval(() => {
523
530
  const t = /* @__PURE__ */ new Date();
524
531
  if (!pt(t)) return;
525
532
  const e = Math.floor(t.getTime() / 6e4);
526
- e !== oe && (oe = e, vt().then((r) => {
533
+ e !== ue && (ue = e, vt().then((r) => {
527
534
  r.kind === "not-sent" && r.reason.kind === "send-failed" && ft.warn("scheduled email digest failed", r.reason.error);
528
535
  }));
529
536
  }, 6e4)));
530
537
  }
531
- function Se() {
532
- return pe(f.get(), /* @__PURE__ */ new Date());
538
+ function xe() {
539
+ return Se(f.get(), /* @__PURE__ */ new Date());
533
540
  }
534
541
  function E(t, e, r, i, n) {
535
- const s = f.get(), o = Oe(t, e);
536
- return Ne({ priority: r, recordTimeline: n }, s, {
537
- dismissed: i !== void 0 && Ie(i),
538
- remindSuppressed: i !== void 0 && te(i) || te(o),
539
- sourceMuted: ae(t),
540
- inQuietHours: Se()
542
+ const s = f.get(), o = qe(t, e);
543
+ return Oe({ priority: r, recordTimeline: n }, s, {
544
+ dismissed: i !== void 0 && Me(i),
545
+ remindSuppressed: i !== void 0 && ne(i) || ne(o),
546
+ sourceMuted: de(t),
547
+ inQuietHours: xe()
541
548
  });
542
549
  }
543
550
  function ht(t, e, r, i) {
@@ -546,12 +553,12 @@ function ht(t, e, r, i) {
546
553
  primary: i,
547
554
  keepOpen: t.expireOnAction === !1,
548
555
  onClick: () => {
549
- Re(r);
556
+ Ue(r);
550
557
  try {
551
558
  t.onClick();
552
559
  } finally {
553
560
  const n = e();
554
- t.expireOnAction !== !1 && n && ue(n);
561
+ t.expireOnAction !== !1 && n && fe(n);
555
562
  }
556
563
  }
557
564
  };
@@ -559,17 +566,17 @@ function ht(t, e, r, i) {
559
566
  function R(t) {
560
567
  var h, g;
561
568
  const e = t.options.source ?? "general";
562
- if ($e(e, t.decision.showToast, ae(e)), !t.decision.showToast) return null;
563
- Be(t.severity, Se());
569
+ if (Ne(e, t.decision.showToast, de(e)), !t.decision.showToast) return null;
570
+ Qe(t.severity, xe());
564
571
  const { options: r } = t, i = ((h = r.subtitle) == null ? void 0 : h.trim()) || ((g = r.description) == null ? void 0 : g.trim()), n = r.id !== void 0 ? String(r.id) : void 0, s = f.get(), o = r.markdown ?? s.markdownEnabled, c = [
565
572
  ...t.primaryAction ? [t.primaryAction] : [],
566
573
  ...r.actions ?? []
567
- ], u = Je(
574
+ ], u = tt(
568
575
  r.source,
569
576
  r.defaultRoute
570
577
  );
571
578
  let l = null;
572
- const a = z({
579
+ const a = ee({
573
580
  severity: t.severity,
574
581
  title: t.title,
575
582
  ...i ? { body: i } : {},
@@ -584,11 +591,11 @@ function R(t) {
584
591
  ...t.vendorError ? { vendorError: t.vendorError } : {},
585
592
  ...c.length > 0 ? {
586
593
  actions: c.map(
587
- (S, $) => ht(S, () => l == null ? void 0 : l.id, e, $ === 0)
594
+ (b, $) => ht(b, () => l == null ? void 0 : l.id, e, $ === 0)
588
595
  )
589
596
  } : {}
590
597
  });
591
- if (l = a, De(a)) return a;
598
+ if (l = a, Ie(a)) return a;
592
599
  const p = N(t.title), y = i ? N(i) : void 0, d = {
593
600
  title: p,
594
601
  ...y ? { body: y } : {},
@@ -599,8 +606,8 @@ function R(t) {
599
606
  return wt(d), dt(d), gt({ ...d, at: Date.now() }), a;
600
607
  }
601
608
  function wt(t) {
602
- const e = ze(t, f.get());
603
- e.fire && le({
609
+ const e = Ze(t, f.get());
610
+ e.fire && ge({
604
611
  title: t.title,
605
612
  ...t.body ? { body: t.body } : {},
606
613
  severity: t.severity,
@@ -611,21 +618,21 @@ function wt(t) {
611
618
  function T(t) {
612
619
  return typeof t == "string" ? t : t instanceof Error ? t.message : t == null ? "" : String(t);
613
620
  }
614
- function Te(t, e, r, i = de) {
621
+ function ke(t, e, r, i = me) {
615
622
  var a, p, y;
616
623
  const n = T(t), s = (a = e.title) == null ? void 0 : a.trim(), o = ((p = e.subtitle) == null ? void 0 : p.trim()) || ((y = e.description) == null ? void 0 : y.trim());
617
624
  let c = s ?? n, u = o;
618
625
  if (r && !s) {
619
626
  const d = r.helpers.formatCode(r.code), h = new RegExp(
620
- `^\\s*${Xe(d)}\\s*[:-]\\s*(.+)$`,
627
+ `^\\s*${Je(d)}\\s*[:-]\\s*(.+)$`,
621
628
  "i"
622
629
  ), g = n.match(h);
623
630
  if (g != null && g[1]) {
624
631
  c = d;
625
- const S = g[1].trim();
626
- u = u ? `${S}
632
+ const b = g[1].trim();
633
+ u = u ? `${b}
627
634
 
628
- ${u}` : S;
635
+ ${u}` : b;
629
636
  }
630
637
  }
631
638
  let l = e.action;
@@ -638,15 +645,15 @@ ${u}` : S;
638
645
  }
639
646
  return { text: n, displayText: c, bodyText: u, primaryAction: l };
640
647
  }
641
- function M(t) {
642
- return je(
648
+ function F(t) {
649
+ return Ge(
643
650
  t,
644
651
  f.get().notificationRules
645
652
  );
646
653
  }
647
654
  const x = {
648
655
  success(t, e = {}) {
649
- const r = T(t), i = f.get(), n = e.source ?? "general", s = e.priority ?? "default", o = M({
656
+ const r = T(t), i = f.get(), n = e.source ?? "general", s = e.priority ?? "default", o = F({
650
657
  severity: "success",
651
658
  title: r,
652
659
  priority: s,
@@ -677,10 +684,10 @@ const x = {
677
684
  return (u == null ? void 0 : u.id) ?? "";
678
685
  },
679
686
  error(t, e = !1) {
680
- const r = T(t), i = typeof e == "boolean" ? {} : e, n = i.vendorError === void 0 ? null : J(i.vendorError), s = Te(r, i, n), o = n !== null;
687
+ const r = T(t), i = typeof e == "boolean" ? {} : e, n = i.vendorError === void 0 ? null : re(i.vendorError), s = ke(r, i, n), o = n !== null;
681
688
  let c = s.displayText;
682
689
  const u = s.bodyText, l = u ? `${c}
683
- ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().vendorCodesAreUrgent, y = i.priority ?? (p ? "urgent" : "default"), d = M({
690
+ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().vendorCodesAreUrgent, y = i.priority ?? (p ? "urgent" : "default"), d = F({
684
691
  severity: "error",
685
692
  title: c,
686
693
  priority: y,
@@ -688,14 +695,14 @@ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().ve
688
695
  });
689
696
  if (!d) return "";
690
697
  c = d.title;
691
- const h = d.source, g = d.priority, S = E(
698
+ const h = d.source, g = d.priority, b = E(
692
699
  h,
693
700
  c,
694
701
  g,
695
702
  i.dontShowAgainKey,
696
703
  i.recordTimeline
697
704
  );
698
- S.recordTimeline && w(
705
+ b.recordTimeline && w(
699
706
  l,
700
707
  d.severity,
701
708
  h,
@@ -715,14 +722,14 @@ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().ve
715
722
  priority: g,
716
723
  ...u ? { description: u } : {}
717
724
  },
718
- decision: S,
725
+ decision: b,
719
726
  ...s.primaryAction ? { primaryAction: s.primaryAction } : {},
720
727
  ...i.vendorError ? { vendorError: i.vendorError } : {}
721
728
  });
722
729
  return ($ == null ? void 0 : $.id) ?? "";
723
730
  },
724
731
  info(t, e = {}) {
725
- const r = T(t), i = e.source ?? "general", n = e.priority ?? "default", s = M({
732
+ const r = T(t), i = e.source ?? "general", n = e.priority ?? "default", s = F({
726
733
  severity: "info",
727
734
  title: r,
728
735
  priority: n,
@@ -753,7 +760,7 @@ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().ve
753
760
  return (c == null ? void 0 : c.id) ?? "";
754
761
  },
755
762
  warning(t, e = {}) {
756
- const r = T(t), i = e.source ?? "general", n = e.priority ?? "default", s = M({
763
+ const r = T(t), i = e.source ?? "general", n = e.priority ?? "default", s = F({
757
764
  severity: "warning",
758
765
  title: r,
759
766
  priority: n,
@@ -797,7 +804,7 @@ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().ve
797
804
  n,
798
805
  s,
799
806
  D(e.action)
800
- ), i.notificationsEnabled && i.soundOnQueryCompletion && !(i.quietHoursMutesSounds && pe(i, /* @__PURE__ */ new Date())) && We(), !i.showSuccessToasts && s !== "urgent") return "";
807
+ ), i.notificationsEnabled && i.soundOnQueryCompletion && !(i.quietHoursMutesSounds && Se(i, /* @__PURE__ */ new Date())) && Le(), !i.showSuccessToasts && s !== "urgent") return "";
801
808
  const c = R({
802
809
  severity: "success",
803
810
  title: r,
@@ -831,7 +838,7 @@ ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().ve
831
838
  dismiss: () => {
832
839
  }
833
840
  };
834
- const c = e.id !== void 0 ? String(e.id) : `progress-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, u = z({
841
+ const c = e.id !== void 0 ? String(e.id) : `progress-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, u = ee({
835
842
  id: c,
836
843
  severity: "info",
837
844
  title: r,
@@ -877,14 +884,14 @@ function v(t, e) {
877
884
  build: e
878
885
  };
879
886
  }
880
- function Jt(t, e, r) {
887
+ function rr(t, e, r) {
881
888
  return {
882
889
  id: t,
883
890
  notification: e,
884
891
  resolve: () => e.build(r)
885
892
  };
886
893
  }
887
- function W(t, e) {
894
+ function B(t, e) {
888
895
  return {
889
896
  message: t,
890
897
  ...e != null && e.title ? { title: e.title } : {},
@@ -925,7 +932,7 @@ v(
925
932
  },
926
933
  () => ({ message: m("Could not copy to clipboard.") })
927
934
  );
928
- const Zt = v(
935
+ const ir = v(
929
936
  {
930
937
  id: "notifications.timeline.replay.error",
931
938
  source: "general",
@@ -937,8 +944,8 @@ const Zt = v(
937
944
  ({
938
945
  timelineMessage: t,
939
946
  options: e
940
- }) => W(t, e)
941
- ), er = v(
947
+ }) => B(t, e)
948
+ ), nr = v(
942
949
  {
943
950
  id: "notifications.timeline.replay.warning",
944
951
  source: "general",
@@ -950,8 +957,8 @@ const Zt = v(
950
957
  ({
951
958
  timelineMessage: t,
952
959
  options: e
953
- }) => W(t, e)
954
- ), tr = v(
960
+ }) => B(t, e)
961
+ ), sr = v(
955
962
  {
956
963
  id: "notifications.timeline.replay.success",
957
964
  source: "general",
@@ -963,8 +970,8 @@ const Zt = v(
963
970
  ({
964
971
  timelineMessage: t,
965
972
  options: e
966
- }) => W(t, e)
967
- ), rr = v(
973
+ }) => B(t, e)
974
+ ), or = v(
968
975
  {
969
976
  id: "notifications.timeline.replay.info",
970
977
  source: "general",
@@ -976,8 +983,8 @@ const Zt = v(
976
983
  ({
977
984
  timelineMessage: t,
978
985
  options: e
979
- }) => W(t, e)
980
- ), ir = v(
986
+ }) => B(t, e)
987
+ ), cr = v(
981
988
  {
982
989
  id: "notifications.timeline.exported",
983
990
  source: "general",
@@ -989,7 +996,7 @@ const Zt = v(
989
996
  ({ entryCount: t }) => ({
990
997
  message: m("Exported {count} notifications", { count: t })
991
998
  })
992
- ), nr = v(
999
+ ), ar = v(
993
1000
  {
994
1001
  id: "notifications.timeline.export.failed",
995
1002
  source: "general",
@@ -1004,7 +1011,7 @@ const Zt = v(
1004
1011
  }),
1005
1012
  cause: t
1006
1013
  })
1007
- ), bt = v(
1014
+ ), St = v(
1008
1015
  {
1009
1016
  id: "notifications.errorAction.failed",
1010
1017
  source: "general",
@@ -1019,7 +1026,7 @@ const Zt = v(
1019
1026
  }),
1020
1027
  cause: t
1021
1028
  })
1022
- ), sr = v(
1029
+ ), ur = v(
1023
1030
  {
1024
1031
  id: "notifications.settings.update.failed",
1025
1032
  source: "settings",
@@ -1033,22 +1040,22 @@ const Zt = v(
1033
1040
  cause: t
1034
1041
  })
1035
1042
  );
1036
- function Ee(t) {
1043
+ function Ce(t) {
1037
1044
  if (!("cause" in t)) return t;
1038
- const { cause: e, ...r } = t, i = Ue(e).map(St);
1045
+ const { cause: e, ...r } = t, i = Fe(e).map(bt);
1039
1046
  return i.length === 0 ? r : { ...r, actions: [...r.actions ?? [], ...i] };
1040
1047
  }
1041
- function St(t) {
1048
+ function bt(t) {
1042
1049
  return {
1043
1050
  label: t.label,
1044
1051
  onClick: () => {
1045
1052
  Promise.resolve().then(() => t.run()).catch((e) => {
1046
- Ct(bt, { cause: e });
1053
+ Ct(St, { cause: e });
1047
1054
  });
1048
1055
  }
1049
1056
  };
1050
1057
  }
1051
- function xe(t, e) {
1058
+ function Ae(t, e) {
1052
1059
  return {
1053
1060
  ...t.severity === "error" && t.source === "general" ? {} : { source: t.source },
1054
1061
  ...t.severity === "error" && t.priority === "default" ? {} : { priority: t.priority },
@@ -1066,10 +1073,10 @@ function xe(t, e) {
1066
1073
  };
1067
1074
  }
1068
1075
  function Tt(t, e) {
1069
- const r = Ee(e);
1076
+ const r = Ce(e);
1070
1077
  if (t.delivery === "os-only") {
1071
1078
  const n = r.title ?? r.message, s = r.description ?? r.subtitle ?? (r.title ? r.message : void 0);
1072
- return le({
1079
+ return ge({
1073
1080
  title: n,
1074
1081
  ...s ? { body: s } : {},
1075
1082
  severity: t.severity,
@@ -1077,7 +1084,7 @@ function Tt(t, e) {
1077
1084
  onlyWhenUnfocused: !1
1078
1085
  }), "";
1079
1086
  }
1080
- const i = xe(t, r);
1087
+ const i = Ae(t, r);
1081
1088
  if (t.kind === "query-completed")
1082
1089
  return x.queryCompleted(r.message, i);
1083
1090
  switch (t.severity) {
@@ -1098,27 +1105,27 @@ function Tt(t, e) {
1098
1105
  }
1099
1106
  }
1100
1107
  function Et(t, e) {
1101
- const r = Ee(e);
1108
+ const r = Ce(e);
1102
1109
  if (t.delivery !== "in-app")
1103
- throw new _(
1110
+ throw new O(
1104
1111
  "Progress notifications require an in-app catalog definition."
1105
1112
  );
1106
1113
  return x.progress(r.message, {
1107
- ...xe(t, r),
1114
+ ...Ae(t, r),
1108
1115
  ...r.onCancel ? { onCancel: r.onCancel } : {}
1109
1116
  });
1110
1117
  }
1111
1118
  const xt = {
1112
1119
  notify: Tt,
1113
1120
  progress: Et,
1114
- dismiss: (t) => ue(t)
1121
+ dismiss: (t) => fe(t)
1115
1122
  };
1116
1123
  function kt(t, e, r, i) {
1117
1124
  return t === "error" && e === "default" && r && i ? "urgent" : e;
1118
1125
  }
1119
- function or(t, e) {
1126
+ function lr(t, e) {
1120
1127
  var l;
1121
- const r = e.vendorError === void 0 || !Ve() ? null : J(e.vendorError), i = t.severity === "error" ? Te(
1128
+ const r = e.vendorError === void 0 || !Ye() ? null : re(e.vendorError), i = t.severity === "error" ? ke(
1122
1129
  e.message,
1123
1130
  {
1124
1131
  ...e.title ? { title: e.title } : {},
@@ -1127,14 +1134,14 @@ function or(t, e) {
1127
1134
  ...e.action ? { action: e.action } : {}
1128
1135
  },
1129
1136
  r,
1130
- de
1137
+ me
1131
1138
  ) : null, n = (i == null ? void 0 : i.displayText) ?? e.title ?? e.message, s = (i == null ? void 0 : i.bodyText) ?? e.subtitle ?? e.description, o = (i == null ? void 0 : i.primaryAction) ?? e.action, c = t.severity === "error" && t.source === "general" && r !== null ? "vendor-error" : t.source, u = kt(
1132
1139
  t.severity,
1133
1140
  t.priority,
1134
1141
  r !== null,
1135
1142
  f.get().vendorCodesAreUrgent
1136
1143
  );
1137
- return z({
1144
+ return ee({
1138
1145
  severity: t.severity,
1139
1146
  title: N(n),
1140
1147
  ...s ? { body: N(s) } : {},
@@ -1163,86 +1170,92 @@ function or(t, e) {
1163
1170
  } : {}
1164
1171
  }).id;
1165
1172
  }
1166
- let ke = null;
1167
- function cr(t) {
1168
- ke = t;
1173
+ let $e = null;
1174
+ function dr(t) {
1175
+ $e = t;
1169
1176
  }
1170
- function ee() {
1171
- return ke ?? xt;
1177
+ function ie() {
1178
+ return $e ?? xt;
1172
1179
  }
1173
1180
  function Ct(t, e) {
1174
- return ee().notify(t, t.build(e));
1181
+ return ie().notify(t, t.build(e));
1175
1182
  }
1176
- function ar(t, e) {
1183
+ function fr(t, e) {
1177
1184
  if (t.kind !== "progress")
1178
- throw new _(
1185
+ throw new O(
1179
1186
  "catalogNotify: a message definition cannot be sent with progressFromCatalog."
1180
1187
  );
1181
- return ee().progress(t, t.build(e));
1188
+ return ie().progress(t, t.build(e));
1182
1189
  }
1183
- function ur(t) {
1190
+ function gr(t) {
1184
1191
  var e, r;
1185
- (r = (e = ee()).dismiss) == null || r.call(e, t);
1192
+ (r = (e = ie()).dismiss) == null || r.call(e, t);
1186
1193
  }
1187
- function lr(t) {
1194
+ function mr(t) {
1188
1195
  return t.resolve();
1189
1196
  }
1190
1197
  export {
1191
- rr as $,
1192
- R as A,
1193
- vt as B,
1194
- It as C,
1195
- pe as D,
1196
- _e as E,
1197
- _t as F,
1198
- Ct as G,
1199
- We as H,
1200
- Be as I,
1201
- ar as J,
1202
- Ft as K,
1203
- kt as L,
1204
- lr as M,
1205
- Pe as N,
1206
- ze as O,
1207
- or as P,
1208
- Ht as Q,
1209
- Pt as R,
1210
- ie as S,
1211
- D as T,
1212
- x as U,
1213
- Lt as V,
1214
- Gt as W,
1215
- Ee as X,
1216
- Zt as Y,
1217
- er as Z,
1218
- tr as _,
1198
+ Lt as $,
1199
+ qt as A,
1200
+ R as B,
1201
+ vt as C,
1202
+ rt as D,
1203
+ it as E,
1204
+ It as F,
1205
+ Se as G,
1206
+ Ke as H,
1207
+ Wt as I,
1208
+ Ct as J,
1209
+ Le as K,
1210
+ Qe as L,
1211
+ fr as M,
1212
+ Gt as N,
1213
+ Ft as O,
1214
+ kt as P,
1215
+ mr as Q,
1216
+ He as R,
1217
+ oe as S,
1218
+ jt as T,
1219
+ Xt as U,
1220
+ Ze as V,
1221
+ lr as W,
1222
+ _t as X,
1223
+ Pt as Y,
1224
+ D as Z,
1225
+ x as _,
1219
1226
  Mt as a,
1220
- ir as a0,
1221
- nr as a1,
1222
- sr as a2,
1223
- ge as b,
1224
- Ut as c,
1225
- Ve as d,
1227
+ tr as a0,
1228
+ Ce as a1,
1229
+ ir as a2,
1230
+ nr as a3,
1231
+ sr as a4,
1232
+ or as a5,
1233
+ cr as a6,
1234
+ ar as a7,
1235
+ ur as a8,
1236
+ ve as b,
1237
+ Ot as c,
1238
+ Ye as d,
1226
1239
  Yt as e,
1227
- Xt as f,
1228
- be as g,
1229
- Me as h,
1230
- Ot as i,
1240
+ Zt as f,
1241
+ Ee as g,
1242
+ Pe as h,
1243
+ Ut as i,
1231
1244
  w as j,
1232
- je as k,
1245
+ Ge as k,
1233
1246
  xt as l,
1234
1247
  Qt as m,
1235
- Kt as n,
1248
+ Ht as n,
1236
1249
  v as o,
1237
- cr as p,
1238
- Jt as q,
1239
- J as r,
1240
- jt as s,
1250
+ dr as p,
1251
+ rr as q,
1252
+ re as r,
1253
+ Jt as s,
1241
1254
  zt as t,
1242
- ur as u,
1243
- Bt as v,
1244
- Vt as w,
1245
- Wt as x,
1246
- Te as y,
1247
- qt as z
1255
+ er as u,
1256
+ gr as v,
1257
+ Bt as w,
1258
+ Vt as x,
1259
+ Kt as y,
1260
+ ke as z
1248
1261
  };