@nubisco/ui 5.54.0 → 5.55.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 (207) hide show
  1. package/dist/{AccordionItem--XeLRz2P.js → AccordionItem-BY-p8UkV.js} +1 -1
  2. package/dist/{AccordionItem-BYSH6dZK.cjs → AccordionItem-p0mYXIj8.cjs} +1 -1
  3. package/dist/{ActionGroup-Cn22xj1t.js → ActionGroup-CjRSKyOa.js} +1 -1
  4. package/dist/{ActionGroup-0rG92kFk.cjs → ActionGroup-DIMZhC7N.cjs} +1 -1
  5. package/dist/AiLabel-BDccQ2iQ.js +242 -0
  6. package/dist/AiLabel-jRrBTu6c.cjs +1 -0
  7. package/dist/{AiProvider-CLtCD_UR.cjs → AiProvider-CGB9EiSf.cjs} +1 -1
  8. package/dist/{AiProvider-gprbR5ts.js → AiProvider-CMbPWtU-.js} +2 -2
  9. package/dist/{BatchActions-Ckx8kyZt.js → BatchActions-Kr2S6CJI.js} +1 -1
  10. package/dist/{BatchActions-6IO5GRFm.cjs → BatchActions-jfvfpZeT.cjs} +1 -1
  11. package/dist/{Board-BdqGOVNF.js → Board-C3_cXRl6.js} +177 -176
  12. package/dist/Board-D6A-irdx.cjs +1 -0
  13. package/dist/{Breadcrumbs-BzyDVvEk.cjs → Breadcrumbs-0rRFiO31.cjs} +1 -1
  14. package/dist/{Breadcrumbs-Bc-acmPE.js → Breadcrumbs-DqagVknq.js} +1 -1
  15. package/dist/{Briefing-DwKWCOGm.cjs → Briefing-B-O-9bhN.cjs} +1 -1
  16. package/dist/{Briefing-BiEICh1u.js → Briefing-DNH-707q.js} +1 -1
  17. package/dist/{ChatMessage-1L_xCXZF.cjs → ChatMessage-B45Xhl8x.cjs} +1 -1
  18. package/dist/{ChatMessage-C2Ecm175.js → ChatMessage-BDOdvI4h.js} +1 -1
  19. package/dist/{ChatThread-B_F3xTdE.cjs → ChatThread-B7F1r4t4.cjs} +1 -1
  20. package/dist/{ChatThread-COdOb1rH.js → ChatThread-DqvsnVOr.js} +1 -1
  21. package/dist/CommandPalette-BaRqoURY.cjs +1 -0
  22. package/dist/CommandPalette-DWv1UV8r.js +294 -0
  23. package/dist/{Confirm-Baz2WG7b.cjs → Confirm-B5vMzPbN.cjs} +1 -1
  24. package/dist/{Confirm-CvMuXK9Q.js → Confirm-C4lT-6HD.js} +1 -1
  25. package/dist/{DataTable-B8THDBLS.js → DataTable-CcwD0PSJ.js} +2 -2
  26. package/dist/{DataTable-DeFzOlcP.cjs → DataTable-xEw-NvHM.cjs} +1 -1
  27. package/dist/{DatePicker-BrUXcNUj.js → DatePicker-3pCNky8d.js} +234 -230
  28. package/dist/DatePicker-BrMicYUx.cjs +1 -0
  29. package/dist/FloatingToolbar-BV-iGNxe.js +120 -0
  30. package/dist/FloatingToolbar-C8xB4BzH.cjs +1 -0
  31. package/dist/{ImagePicker-vhg7b-UL.cjs → ImagePicker-5qPI77Jo.cjs} +1 -1
  32. package/dist/{ImagePicker-LhpR7jjR.js → ImagePicker-BnHg403Q.js} +1 -1
  33. package/dist/InfoHint-CdluaJqE.cjs +1 -0
  34. package/dist/InfoHint-zMuSw_99.js +182 -0
  35. package/dist/{InlineLoading-CA0_IT29.cjs → InlineLoading-CqGrNWHf.cjs} +1 -1
  36. package/dist/{InlineLoading-Cknqq0vv.js → InlineLoading-_j2KKhNQ.js} +1 -1
  37. package/dist/Menu-CWxBEMC4.js +193 -0
  38. package/dist/Menu-D0TerdRm.cjs +1 -0
  39. package/dist/{MenuBarItem-yr5aizl3.js → MenuBarItem-BYh4YWR4.js} +1 -1
  40. package/dist/{MenuBarItem-DlnIAhRw.cjs → MenuBarItem-DTOqacvg.cjs} +1 -1
  41. package/dist/Modal-CmGFLEo4.cjs +1 -0
  42. package/dist/{Modal-CESCi2dE.js → Modal-DwL90AoV.js} +73 -69
  43. package/dist/NotificationCenter-EMlV-oPh.cjs +1 -0
  44. package/dist/{NotificationCenter-DkGc0ETD.js → NotificationCenter-YZnPMH7c.js} +217 -213
  45. package/dist/{OverflowMenu-BWZ7c8oI.js → OverflowMenu-DliuDrTK.js} +1 -1
  46. package/dist/{OverflowMenu-C8q28FrD.cjs → OverflowMenu-DuRgj1DU.cjs} +1 -1
  47. package/dist/{PageHeader-DElq_kdh.cjs → PageHeader-BoEdR_T5.cjs} +1 -1
  48. package/dist/{PageHeader-DOYN9sto.js → PageHeader-c6117xYf.js} +1 -1
  49. package/dist/{Pagination-9mPN8ych.cjs → Pagination-B3lmxggo.cjs} +1 -1
  50. package/dist/{Pagination-CxBHFwy0.js → Pagination-DwAc-4d9.js} +1 -1
  51. package/dist/Select-CDs-7QtW.js +619 -0
  52. package/dist/Select-CJqwMI69.cjs +1 -0
  53. package/dist/{SidebarCollapseToggle-DraqbhwM.js → SidebarCollapseToggle-C38R19gG.js} +1 -1
  54. package/dist/{SidebarCollapseToggle-CABmF-PC.cjs → SidebarCollapseToggle-DOck3Txy.cjs} +1 -1
  55. package/dist/SidebarMenuItem-DzJ_R2__.cjs +1 -0
  56. package/dist/SidebarMenuItem-E410HTei.js +302 -0
  57. package/dist/Spinner-BlzVODzE.js +161 -0
  58. package/dist/Spinner-Bpfgl-mN.cjs +1 -0
  59. package/dist/{Stat-BCvXYr-z.cjs → Stat-BByeMKkT.cjs} +1 -1
  60. package/dist/{Stat-No3RhGB3.js → Stat-DWliDbWE.js} +1 -1
  61. package/dist/Submenu-BkHGYo7X.js +168 -0
  62. package/dist/Submenu-CCQnBpln.cjs +1 -0
  63. package/dist/{SuggestionList-Cxy4jjjd.cjs → SuggestionList-C61Dj6en.cjs} +1 -1
  64. package/dist/{SuggestionList-Dv4yQAi-.js → SuggestionList-D48Ojcf3.js} +1 -1
  65. package/dist/Toaster-Dwjm0bsR.js +285 -0
  66. package/dist/Toaster-aJJvxlEr.cjs +1 -0
  67. package/dist/{UserMenu-CjmhyTwN.js → UserMenu-BTihjCKC.js} +94 -90
  68. package/dist/UserMenu-CHkbByFS.cjs +1 -0
  69. package/dist/{Walkthrough-DYYqtpwJ.js → Walkthrough-BqGB1yaX.js} +63 -59
  70. package/dist/Walkthrough-sGAypY5d.cjs +1 -0
  71. package/dist/all.cjs +1 -1
  72. package/dist/all.mjs +284 -283
  73. package/dist/components/AccordionItem.cjs +1 -1
  74. package/dist/components/AccordionItem.mjs +1 -1
  75. package/dist/components/ActionGroup.cjs +1 -1
  76. package/dist/components/ActionGroup.mjs +1 -1
  77. package/dist/components/AiLabel.cjs +1 -1
  78. package/dist/components/AiLabel.mjs +1 -1
  79. package/dist/components/AiLabel.vue.d.ts.map +1 -1
  80. package/dist/components/AiProvider.cjs +1 -1
  81. package/dist/components/AiProvider.mjs +1 -1
  82. package/dist/components/BatchActions.cjs +1 -1
  83. package/dist/components/BatchActions.mjs +1 -1
  84. package/dist/components/Board.cjs +1 -1
  85. package/dist/components/Board.mjs +1 -1
  86. package/dist/components/Board.vue.d.ts.map +1 -1
  87. package/dist/components/Breadcrumbs.cjs +1 -1
  88. package/dist/components/Breadcrumbs.mjs +1 -1
  89. package/dist/components/Briefing.cjs +1 -1
  90. package/dist/components/Briefing.mjs +1 -1
  91. package/dist/components/ChatMessage.cjs +1 -1
  92. package/dist/components/ChatMessage.mjs +1 -1
  93. package/dist/components/ChatThread.cjs +1 -1
  94. package/dist/components/ChatThread.mjs +1 -1
  95. package/dist/components/CommandPalette.cjs +1 -1
  96. package/dist/components/CommandPalette.mjs +1 -1
  97. package/dist/components/CommandPalette.vue.d.ts.map +1 -1
  98. package/dist/components/Confirm.cjs +1 -1
  99. package/dist/components/Confirm.mjs +1 -1
  100. package/dist/components/DataTable.cjs +1 -1
  101. package/dist/components/DataTable.mjs +1 -1
  102. package/dist/components/DatePicker.cjs +1 -1
  103. package/dist/components/DatePicker.mjs +1 -1
  104. package/dist/components/DatePicker.vue.d.ts.map +1 -1
  105. package/dist/components/FloatingToolbar.cjs +1 -1
  106. package/dist/components/FloatingToolbar.mjs +1 -1
  107. package/dist/components/FloatingToolbar.vue.d.ts.map +1 -1
  108. package/dist/components/ImagePicker.cjs +1 -1
  109. package/dist/components/ImagePicker.mjs +1 -1
  110. package/dist/components/InfoHint.cjs +1 -1
  111. package/dist/components/InfoHint.mjs +1 -1
  112. package/dist/components/InfoHint.vue.d.ts.map +1 -1
  113. package/dist/components/InlineLoading.cjs +1 -1
  114. package/dist/components/InlineLoading.mjs +1 -1
  115. package/dist/components/Menu.cjs +1 -1
  116. package/dist/components/Menu.mjs +1 -1
  117. package/dist/components/Menu.vue.d.ts.map +1 -1
  118. package/dist/components/MenuBarItem.cjs +1 -1
  119. package/dist/components/MenuBarItem.mjs +1 -1
  120. package/dist/components/Modal.cjs +1 -1
  121. package/dist/components/Modal.mjs +1 -1
  122. package/dist/components/Modal.vue.d.ts.map +1 -1
  123. package/dist/components/NotificationCenter.cjs +1 -1
  124. package/dist/components/NotificationCenter.mjs +1 -1
  125. package/dist/components/NotificationCenter.vue.d.ts.map +1 -1
  126. package/dist/components/OverflowMenu.cjs +1 -1
  127. package/dist/components/OverflowMenu.mjs +1 -1
  128. package/dist/components/PageHeader.cjs +1 -1
  129. package/dist/components/PageHeader.mjs +1 -1
  130. package/dist/components/Pagination.cjs +1 -1
  131. package/dist/components/Pagination.mjs +1 -1
  132. package/dist/components/Select.cjs +1 -1
  133. package/dist/components/Select.mjs +1 -1
  134. package/dist/components/Select.vue.d.ts.map +1 -1
  135. package/dist/components/SidebarCollapseToggle.cjs +1 -1
  136. package/dist/components/SidebarCollapseToggle.mjs +1 -1
  137. package/dist/components/SidebarMenuItem.cjs +1 -1
  138. package/dist/components/SidebarMenuItem.mjs +1 -1
  139. package/dist/components/SidebarMenuItem.vue.d.ts.map +1 -1
  140. package/dist/components/Spinner.cjs +1 -1
  141. package/dist/components/Spinner.mjs +1 -1
  142. package/dist/components/Spinner.vue.d.ts.map +1 -1
  143. package/dist/components/Stat.cjs +1 -1
  144. package/dist/components/Stat.mjs +1 -1
  145. package/dist/components/Submenu.cjs +1 -1
  146. package/dist/components/Submenu.mjs +1 -1
  147. package/dist/components/Submenu.vue.d.ts.map +1 -1
  148. package/dist/components/SuggestionList.cjs +1 -1
  149. package/dist/components/SuggestionList.mjs +1 -1
  150. package/dist/components/Toaster.cjs +1 -1
  151. package/dist/components/Toaster.mjs +1 -1
  152. package/dist/components/Toaster.vue.d.ts.map +1 -1
  153. package/dist/components/UserMenu.cjs +1 -1
  154. package/dist/components/UserMenu.mjs +1 -1
  155. package/dist/components/UserMenu.vue.d.ts.map +1 -1
  156. package/dist/components/Walkthrough.cjs +1 -1
  157. package/dist/components/Walkthrough.mjs +1 -1
  158. package/dist/components/Walkthrough.vue.d.ts.map +1 -1
  159. package/dist/composables/useConfirm.composable.cjs +1 -1
  160. package/dist/composables/useConfirm.composable.mjs +2 -2
  161. package/dist/composables/useTeleportReady.composable.cjs +1 -0
  162. package/dist/composables/useTeleportReady.composable.d.ts +30 -0
  163. package/dist/composables/useTeleportReady.composable.d.ts.map +1 -0
  164. package/dist/composables/useTeleportReady.composable.mjs +11 -0
  165. package/dist/index.cjs +1 -1
  166. package/dist/index.mjs +152 -151
  167. package/dist/main-BMIeIxGV.cjs +4 -0
  168. package/dist/{main-D6qY7QeE.js → main-BXz7vG2i.js} +167 -157
  169. package/dist/main.d.ts +10 -1
  170. package/dist/main.d.ts.map +1 -1
  171. package/dist/styles/AiLabel.css +1 -1
  172. package/dist/styles/FloatingToolbar.css +1 -1
  173. package/dist/styles/InfoHint.css +1 -1
  174. package/dist/styles/Modal.css +1 -1
  175. package/dist/styles/SidebarMenuItem.css +1 -1
  176. package/dist/styles/Spinner.css +1 -1
  177. package/dist/styles/Toaster.css +1 -1
  178. package/dist/styles/Walkthrough.css +1 -1
  179. package/dist/ui.css +8 -8
  180. package/package.json +1 -1
  181. package/dist/AiLabel-AGSSBanb.cjs +0 -1
  182. package/dist/AiLabel-D32aNf1F.js +0 -240
  183. package/dist/Board-DtOWyvKh.cjs +0 -1
  184. package/dist/CommandPalette-CC_Aj4Uh.cjs +0 -1
  185. package/dist/CommandPalette-zqTMjpm8.js +0 -290
  186. package/dist/DatePicker-B5YRb64p.cjs +0 -1
  187. package/dist/FloatingToolbar-BikX_AsP.js +0 -116
  188. package/dist/FloatingToolbar-DWVY8Fxo.cjs +0 -1
  189. package/dist/InfoHint-BEzkNQTM.cjs +0 -1
  190. package/dist/InfoHint-BlHxrTw6.js +0 -178
  191. package/dist/Menu-7EgnchVu.js +0 -189
  192. package/dist/Menu-Bs2Co1sl.cjs +0 -1
  193. package/dist/Modal-C_EWDvmH.cjs +0 -1
  194. package/dist/NotificationCenter-DxZgHQyt.cjs +0 -1
  195. package/dist/Select-7gJ3_fWh.js +0 -615
  196. package/dist/Select-Dg4HSHOu.cjs +0 -1
  197. package/dist/SidebarMenuItem-DQRQtqrp.js +0 -300
  198. package/dist/SidebarMenuItem-Dwk7vKN5.cjs +0 -1
  199. package/dist/Spinner-DYFhiTB1.js +0 -160
  200. package/dist/Spinner-j13gRoUF.cjs +0 -1
  201. package/dist/Submenu-BDs-yAqv.js +0 -164
  202. package/dist/Submenu-BLjx2kWl.cjs +0 -1
  203. package/dist/Toaster-ByObLDkk.js +0 -284
  204. package/dist/Toaster-CJAbZ9pv.cjs +0 -1
  205. package/dist/UserMenu-BjSO_Uml.cjs +0 -1
  206. package/dist/Walkthrough-DxAIdo3M.cjs +0 -1
  207. package/dist/main-Cs0FFBfV.cjs +0 -4
@@ -1,13 +1,14 @@
1
1
  import { t as e } from "./Button-DmJ_J3UO.js";
2
- import { t } from "./Icon-B2tiGiqZ.js";
3
- import { usePhoneLayout as n } from "./composables/usePhoneLayout.composable.mjs";
4
- import { useNbStrings as r } from "./composables/useNbStrings.composable.mjs";
5
- import { t as i } from "./Spinner-DYFhiTB1.js";
6
- import { t as a } from "./EmptyState-DE1pPuw-.js";
7
- import { t as o } from "./CloseButton-CAPfd6yf.js";
8
- import { t as s } from "./Skeleton-DFi5DNiP.js";
9
- import { t as c } from "./NotificationCenterItem-Hf0S6Jls.js";
10
- import { Fragment as l, Teleport as u, Transition as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as ee, createTextVNode as te, createVNode as _, defineComponent as v, mergeProps as ne, nextTick as y, normalizeClass as re, normalizeStyle as b, onBeforeUnmount as ie, openBlock as x, ref as S, renderList as ae, renderSlot as C, toDisplayString as w, unref as oe, useId as se, useSlots as ce, watch as le, withCtx as ue } from "vue";
2
+ import { useTeleportReady as t } from "./composables/useTeleportReady.composable.mjs";
3
+ import { t as n } from "./Icon-B2tiGiqZ.js";
4
+ import { usePhoneLayout as r } from "./composables/usePhoneLayout.composable.mjs";
5
+ import { useNbStrings as i } from "./composables/useNbStrings.composable.mjs";
6
+ import { t as a } from "./Spinner-BlzVODzE.js";
7
+ import { t as o } from "./EmptyState-DE1pPuw-.js";
8
+ import { t as s } from "./CloseButton-CAPfd6yf.js";
9
+ import { t as c } from "./Skeleton-DFi5DNiP.js";
10
+ import { t as l } from "./NotificationCenterItem-Hf0S6Jls.js";
11
+ import { Fragment as u, Teleport as ee, Transition as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as te, createTextVNode as ne, createVNode as _, defineComponent as v, mergeProps as re, nextTick as y, normalizeClass as ie, normalizeStyle as ae, onBeforeUnmount as oe, openBlock as b, ref as x, renderList as se, renderSlot as S, toDisplayString as C, unref as ce, useId as le, useSlots as ue, watch as w, withCtx as T } from "vue";
11
12
  import { regular as de } from "@nubisco/ui/icons/warning-circle";
12
13
  import * as fe from "@nubisco/ui/icons/bell";
13
14
  //#region src/components/NotificationCenter.vue?vue&type=script&setup=true&lang.ts
@@ -24,30 +25,30 @@ var pe = {
24
25
  }, xe = {
25
26
  key: 5,
26
27
  class: "nb-notification-center__footer"
27
- }, T = /* @__PURE__ */ new Set(), E = 8, D = 8, O = 96, k = 88, A = 200;
28
+ }, E = /* @__PURE__ */ new Set(), D = 8, O = 8, k = 96, A = 88, j = 200;
28
29
  function Se(e, { align: t, side: n, width: r, maxHeight: i, viewport: a }) {
29
30
  let o = e.left + e.width;
30
- if (n === "right" && a.width - o - E - D >= r) {
31
- let n = e.top + e.height, r = t === "end" ? n - D : a.height - e.top - D, s = Math.max(k + O, r), c = Math.min(i + O, s), l = Math.max(k, Math.min(i, s - O));
31
+ if (n === "right" && a.width - o - D - O >= r) {
32
+ let n = e.top + e.height, r = t === "end" ? n - O : a.height - e.top - O, s = Math.max(A + k, r), c = Math.min(i + k, s), l = Math.max(A, Math.min(i, s - k));
32
33
  return t === "end" ? {
33
- top: Math.max(D, n - c),
34
- bottom: Math.max(D, a.height - n),
35
- left: o + E,
34
+ top: Math.max(O, n - c),
35
+ bottom: Math.max(O, a.height - n),
36
+ left: o + D,
36
37
  side: "right",
37
38
  maxListHeight: l
38
39
  } : {
39
- top: Math.max(D, Math.min(e.top, a.height - D - c)),
40
- left: o + E,
40
+ top: Math.max(O, Math.min(e.top, a.height - O - c)),
41
+ left: o + D,
41
42
  side: "right",
42
43
  maxListHeight: l
43
44
  };
44
45
  }
45
- let s = t === "start" ? e.left : e.left + e.width - r, c = Math.min(Math.max(s, D), Math.max(D, a.width - r - D)), l = e.top + e.height, u = a.height - l - E - D, d = e.top - E - D, f = u < A && d > u ? "top" : "bottom", p = Math.max(k, f === "top" ? d : u), m = Math.max(k, Math.min(i, p - O)), h = Math.min(i + O, p);
46
+ let s = t === "start" ? e.left : e.left + e.width - r, c = Math.min(Math.max(s, O), Math.max(O, a.width - r - O)), l = e.top + e.height, u = a.height - l - D - O, ee = e.top - D - O, d = u < j && ee > u ? "top" : "bottom", f = Math.max(A, d === "top" ? ee : u), p = Math.max(A, Math.min(i, f - k)), m = Math.min(i + k, f);
46
47
  return {
47
- top: f === "top" ? Math.max(D, e.top - E - h) : l + E,
48
+ top: d === "top" ? Math.max(O, e.top - D - m) : l + D,
48
49
  left: c,
49
- side: f,
50
- maxListHeight: m
50
+ side: d,
51
+ maxListHeight: p
51
52
  };
52
53
  }
53
54
  function Ce(e, t) {
@@ -55,7 +56,7 @@ function Ce(e, t) {
55
56
  }
56
57
  //#endregion
57
58
  //#region src/components/NotificationCenter.vue
58
- var j = /* @__PURE__ */ v({
59
+ var M = /* @__PURE__ */ v({
59
60
  __name: "NotificationCenter",
60
61
  props: {
61
62
  items: { default: () => [] },
@@ -134,50 +135,50 @@ var j = /* @__PURE__ */ v({
134
135
  "mark-all-read",
135
136
  "retry"
136
137
  ],
137
- setup(v, { expose: E, emit: D }) {
138
- let O = r(), k = v, A = f(() => k.icon ?? fe), j = D, M = ce(), N = `nb-notification-center-${se()}`, we = `${N}-title`, Te = `${N}-trigger`, Ee = `${N}-error`, P = S(null), De = S(null), F = S(null), I = S(null), Oe = S(!1), L = f(() => k.open === void 0 ? Oe.value : k.open), R = f(() => typeof k.unreadCount == "number" ? Math.max(0, k.unreadCount) : k.items.filter((e) => !e.read).length), ke = f(() => R.value > k.maxCount ? `${k.maxCount}+` : String(R.value)), Ae = f(() => R.value > 0 ? `${k.label}, ${k.formatUnread(R.value)}` : k.label), je = f(() => {
139
- if (typeof k.itemCount == "number") return Math.max(0, k.itemCount);
140
- if (!M.default) return k.items.length;
141
- }), Me = f(() => (je.value ?? 0) > 0), z = f(() => {
142
- if (k.loading) return "loading";
143
- let e = je.value;
144
- return k.error && (e === void 0 || e === 0) ? "error" : e === void 0 || e > 0 ? "list" : "empty";
145
- }), Ne = f(() => k.error && !k.loading && z.value === "list" && Me.value);
146
- S(!1), le(() => [
147
- L.value,
148
- !!M.default,
149
- k.itemCount
138
+ setup(v, { expose: D, emit: O }) {
139
+ let k = t(), A = i(), j = v, M = f(() => j.icon ?? fe), N = O, P = ue(), F = `nb-notification-center-${le()}`, we = `${F}-title`, Te = `${F}-trigger`, I = `${F}-error`, L = x(null), Ee = x(null), R = x(null), z = x(null), De = x(!1), B = f(() => j.open === void 0 ? De.value : j.open), V = f(() => typeof j.unreadCount == "number" ? Math.max(0, j.unreadCount) : j.items.filter((e) => !e.read).length), Oe = f(() => V.value > j.maxCount ? `${j.maxCount}+` : String(V.value)), ke = f(() => V.value > 0 ? `${j.label}, ${j.formatUnread(V.value)}` : j.label), Ae = f(() => {
140
+ if (typeof j.itemCount == "number") return Math.max(0, j.itemCount);
141
+ if (!P.default) return j.items.length;
142
+ }), je = f(() => (Ae.value ?? 0) > 0), H = f(() => {
143
+ if (j.loading) return "loading";
144
+ let e = Ae.value;
145
+ return j.error && (e === void 0 || e === 0) ? "error" : e === void 0 || e > 0 ? "list" : "empty";
146
+ }), Me = f(() => j.error && !j.loading && H.value === "list" && je.value);
147
+ x(!1), w(() => [
148
+ B.value,
149
+ !!P.default,
150
+ j.itemCount
150
151
  ], ([e, t, n]) => {}, { immediate: !0 });
151
- function B() {
152
- j("retry");
152
+ function Ne() {
153
+ N("retry");
153
154
  }
154
155
  let Pe = f(() => ({
155
156
  id: Te,
156
157
  "aria-haspopup": "dialog",
157
- "aria-expanded": L.value ? "true" : "false",
158
- "aria-controls": L.value ? N : void 0,
159
- "aria-label": Ae.value,
160
- disabled: k.disabled || void 0
158
+ "aria-expanded": B.value ? "true" : "false",
159
+ "aria-controls": B.value ? F : void 0,
160
+ "aria-label": ke.value,
161
+ disabled: j.disabled || void 0
161
162
  })), Fe = f(() => ({
162
163
  type: "button",
163
- disabled: R.value === 0 && !k.markAllPending,
164
- "aria-disabled": k.markAllPending ? "true" : void 0,
165
- "aria-busy": k.markAllPending ? "true" : void 0,
166
- onClick: at
167
- })), Ie = f(() => Ne.value || z.value === "error" ? Ee : void 0);
164
+ disabled: V.value === 0 && !j.markAllPending,
165
+ "aria-disabled": j.markAllPending ? "true" : void 0,
166
+ "aria-busy": j.markAllPending ? "true" : void 0,
167
+ onClick: st
168
+ })), Ie = f(() => Me.value || H.value === "error" ? I : void 0);
168
169
  function Le(e) {
169
170
  if (!e) {
170
- F.value = null;
171
+ R.value = null;
171
172
  return;
172
173
  }
173
174
  let t = e instanceof HTMLElement ? e : e.$el;
174
- F.value = t instanceof HTMLElement ? t : null;
175
+ R.value = t instanceof HTMLElement ? t : null;
175
176
  }
176
- let V = S({
177
+ let U = x({
177
178
  top: 0,
178
179
  left: 0,
179
180
  side: "bottom",
180
- maxListHeight: k.maxHeight
181
+ maxListHeight: j.maxHeight
181
182
  });
182
183
  function Re() {
183
184
  return {
@@ -185,77 +186,77 @@ var j = /* @__PURE__ */ v({
185
186
  height: window.innerHeight
186
187
  };
187
188
  }
188
- function H() {
189
- let e = P.value?.getBoundingClientRect();
190
- e && (V.value = Se(e, {
191
- align: k.align,
192
- side: k.side,
193
- width: k.width,
194
- maxHeight: k.maxHeight,
189
+ function ze() {
190
+ let e = L.value?.getBoundingClientRect();
191
+ e && (U.value = Se(e, {
192
+ align: j.align,
193
+ side: j.side,
194
+ width: j.width,
195
+ maxHeight: j.maxHeight,
195
196
  viewport: Re()
196
197
  }));
197
198
  }
198
- let { phone: ze } = n(), U = f(() => ze.value), Be = f(() => {
199
- if (!U.value) return V.value.bottom === void 0 ? {
200
- top: `${Math.round(V.value.top)}px`,
201
- left: `${Math.round(V.value.left)}px`,
202
- width: `${k.width}px`
199
+ let { phone: Be } = r(), W = f(() => Be.value), Ve = f(() => {
200
+ if (!W.value) return U.value.bottom === void 0 ? {
201
+ top: `${Math.round(U.value.top)}px`,
202
+ left: `${Math.round(U.value.left)}px`,
203
+ width: `${j.width}px`
203
204
  } : {
204
- bottom: `${Math.round(V.value.bottom)}px`,
205
- left: `${Math.round(V.value.left)}px`,
206
- width: `${k.width}px`
205
+ bottom: `${Math.round(U.value.bottom)}px`,
206
+ left: `${Math.round(U.value.left)}px`,
207
+ width: `${j.width}px`
207
208
  };
208
- }), Ve = f(() => U.value ? void 0 : { maxHeight: `${Math.round(V.value.maxListHeight)}px` }), He = f(() => ({
209
- "nb-notification-center__panel--sheet": U.value,
210
- "nb-notification-center__panel--start": k.align === "start",
211
- "nb-notification-center__panel--above": !U.value && V.value.side === "top",
212
- "nb-notification-center__panel--beside": !U.value && V.value.side === "right"
209
+ }), He = f(() => W.value ? void 0 : { maxHeight: `${Math.round(U.value.maxListHeight)}px` }), Ue = f(() => ({
210
+ "nb-notification-center__panel--sheet": W.value,
211
+ "nb-notification-center__panel--start": j.align === "start",
212
+ "nb-notification-center__panel--above": !W.value && U.value.side === "top",
213
+ "nb-notification-center__panel--beside": !W.value && U.value.side === "right"
213
214
  }));
214
- function Ue(e) {
215
- k.open === void 0 && (Oe.value = e), j("update:open", e);
215
+ function We(e) {
216
+ j.open === void 0 && (De.value = e), N("update:open", e);
216
217
  }
217
- function W() {
218
- k.disabled || L.value || (H(), Ue(!0), j("open"));
218
+ function Ge() {
219
+ j.disabled || B.value || (ze(), We(!0), N("open"));
219
220
  }
220
221
  function G(e = {}) {
221
- if (!L.value) return;
222
- let t = I.value?.contains(document.activeElement);
223
- Ue(!1), j("close"), (e.restoreFocus ?? t) && y(We);
222
+ if (!B.value) return;
223
+ let t = z.value?.contains(document.activeElement);
224
+ We(!1), N("close"), (e.restoreFocus ?? t) && y(Ke);
224
225
  }
225
- function We() {
226
- let e = F.value;
226
+ function Ke() {
227
+ let e = R.value;
227
228
  if (e?.isConnected) {
228
229
  e.focus();
229
230
  return;
230
231
  }
231
- (P.value?.querySelector(Ze))?.focus();
232
+ (L.value?.querySelector($e))?.focus();
232
233
  }
233
- function Ge() {
234
- L.value ? G({ restoreFocus: !0 }) : W();
234
+ function qe() {
235
+ B.value ? G({ restoreFocus: !0 }) : Ge();
235
236
  }
236
- let K = S(0), Ke = new Set([
237
+ let K = x(0), Je = new Set([
237
238
  "button",
238
239
  "link",
239
240
  "menuitem",
240
241
  "option"
241
242
  ]);
242
- function qe(e) {
243
+ function Ye(e) {
243
244
  if (e.tagName === "BUTTON") return !e.hasAttribute("disabled");
244
245
  if (e.tagName === "A") return e.hasAttribute("href");
245
246
  let t = e.getAttribute("role");
246
- return t !== null && Ke.has(t);
247
+ return t !== null && Je.has(t);
247
248
  }
248
249
  function q() {
249
- return I.value ? Array.from(I.value.querySelectorAll("[data-nb-notification-item]")).filter((e) => !!qe(e)) : [];
250
+ return z.value ? Array.from(z.value.querySelectorAll("[data-nb-notification-item]")).filter((e) => !!Ye(e)) : [];
250
251
  }
251
- let Je = S(void 0);
252
- function Ye(e) {
253
- let t = De.value;
254
- Je.value = t && t.childElementCount > 0 && e.length === 0 ? 0 : void 0;
252
+ let Xe = x(void 0);
253
+ function Ze(e) {
254
+ let t = Ee.value;
255
+ Xe.value = t && t.childElementCount > 0 && e.length === 0 ? 0 : void 0;
255
256
  }
256
257
  function J(e) {
257
258
  let t = q();
258
- Ye(t), t.length && (K.value = Math.min(Math.max(e, 0), t.length - 1), t.forEach((e, t) => {
259
+ Ze(t), t.length && (K.value = Math.min(Math.max(e, 0), t.length - 1), t.forEach((e, t) => {
259
260
  e.setAttribute("tabindex", t === K.value ? "0" : "-1");
260
261
  }));
261
262
  }
@@ -265,28 +266,28 @@ var j = /* @__PURE__ */ v({
265
266
  let n = Math.min(Math.max(e, 0), t.length - 1);
266
267
  return J(n), t[n]?.focus(), !0;
267
268
  }
268
- function Xe(e) {
269
+ function Qe(e) {
269
270
  let t = e.target?.closest("[data-nb-notification-item]");
270
271
  if (!t) return;
271
272
  let n = q().indexOf(t);
272
273
  n >= 0 && J(n);
273
274
  }
274
- let Ze = "a[href]:not([tabindex=\"-1\"]), button:not([disabled]):not([tabindex=\"-1\"]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex=\"0\"]";
275
- function Qe(e) {
275
+ let $e = "a[href]:not([tabindex=\"-1\"]), button:not([disabled]):not([tabindex=\"-1\"]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex=\"0\"]";
276
+ function et(e) {
276
277
  return !!e?.closest?.("input, textarea, select, [contenteditable=\"\"], [contenteditable=\"true\"]");
277
278
  }
278
- function $e(e) {
279
+ function tt(e) {
279
280
  let t = q(), n = e.target?.closest("[data-nb-notification-item]"), r = n ? t.indexOf(n) : -1;
280
281
  if (e.key === "Escape") {
281
- if (!et(e)) return;
282
+ if (!nt(e)) return;
282
283
  e.preventDefault(), e.stopPropagation(), G({ restoreFocus: !0 });
283
284
  return;
284
285
  }
285
286
  if (e.key === "Tab") {
286
- tt(e);
287
+ rt(e);
287
288
  return;
288
289
  }
289
- if (!Qe(e.target)) switch (e.key) {
290
+ if (!et(e.target)) switch (e.key) {
290
291
  case "ArrowDown":
291
292
  Y(r < 0 ? 0 : r + 1) && e.preventDefault();
292
293
  break;
@@ -302,243 +303,246 @@ var j = /* @__PURE__ */ v({
302
303
  default: break;
303
304
  }
304
305
  }
305
- function et(e) {
306
+ function nt(e) {
306
307
  if (e.defaultPrevented) return !1;
307
308
  let t = (e.target ?? document.activeElement)?.closest?.("[aria-modal=\"true\"]");
308
- return !(t && t !== I.value);
309
+ return !(t && t !== z.value);
309
310
  }
310
- function tt(e) {
311
- let t = I.value;
311
+ function rt(e) {
312
+ let t = z.value;
312
313
  if (!t) return;
313
- let n = Array.from(t.querySelectorAll(Ze)), r = document.activeElement, i = n[0], a = n[n.length - 1], o = !n.length || r === i || !t.contains(r), s = !n.length || r === a;
314
+ let n = Array.from(t.querySelectorAll($e)), r = document.activeElement, i = n[0], a = n[n.length - 1], o = !n.length || r === i || !t.contains(r), s = !n.length || r === a;
314
315
  if (e.shiftKey ? !o : !s) return;
315
316
  e.preventDefault();
316
- let c = e.shiftKey ? F.value : nt();
317
+ let c = e.shiftKey ? R.value : it();
317
318
  G({ restoreFocus: !1 }), y(() => {
318
- c?.isConnected ? c.focus() : We();
319
+ c?.isConnected ? c.focus() : Ke();
319
320
  });
320
321
  }
321
- function nt() {
322
- let e = F.value;
322
+ function it() {
323
+ let e = R.value;
323
324
  if (!e) return null;
324
- let t = Array.from(document.querySelectorAll(Ze)).filter((e) => !I.value?.contains(e)).filter((e) => e.tabIndex >= 0), n = t.indexOf(e);
325
+ let t = Array.from(document.querySelectorAll($e)).filter((e) => !z.value?.contains(e)).filter((e) => e.tabIndex >= 0), n = t.indexOf(e);
325
326
  return n < 0 ? null : t[n + 1] ?? null;
326
327
  }
327
- function rt(e, t) {
328
- j("select", e, t), k.closeOnSelect && G({ restoreFocus: !1 });
328
+ function at(e, t) {
329
+ N("select", e, t), j.closeOnSelect && G({ restoreFocus: !1 });
329
330
  }
330
- function it(e) {
331
- if (!M.default) return;
331
+ function ot(e) {
332
+ if (!P.default) return;
332
333
  let t = e.target?.closest("[data-nb-notification-item]");
333
- if (t && qe(t)) {
334
+ if (t && Ye(t)) {
334
335
  if (e.type === "keydown") {
335
336
  let n = e.key;
336
337
  if (n !== "Enter" && n !== " " || t.tagName === "BUTTON" || t.tagName === "A") return;
337
338
  e.preventDefault();
338
339
  }
339
- j("select", null, e), k.closeOnSelect && G({ restoreFocus: !1 });
340
+ N("select", null, e), j.closeOnSelect && G({ restoreFocus: !1 });
340
341
  }
341
342
  }
342
- function at() {
343
- k.markAllPending || j("mark-all-read");
343
+ function st() {
344
+ j.markAllPending || N("mark-all-read");
344
345
  }
345
- function ot(e) {
346
+ function ct(e) {
346
347
  let t = e.target;
347
- P.value?.contains(t) || I.value?.contains(t) || G({ restoreFocus: !1 });
348
+ L.value?.contains(t) || z.value?.contains(t) || G({ restoreFocus: !1 });
348
349
  }
349
- function st(e) {
350
- e.key === "Escape" && (I.value?.contains(document.activeElement) || et(e) && G({ restoreFocus: P.value?.contains(document.activeElement) ?? !1 }));
350
+ function lt(e) {
351
+ e.key === "Escape" && (z.value?.contains(document.activeElement) || nt(e) && G({ restoreFocus: L.value?.contains(document.activeElement) ?? !1 }));
351
352
  }
352
353
  let X = 0;
353
354
  function Z() {
354
- !L.value || X || (X = requestAnimationFrame(() => {
355
- X = 0, lt();
355
+ !B.value || X || (X = requestAnimationFrame(() => {
356
+ X = 0, dt();
356
357
  }));
357
358
  }
358
- function ct() {
359
+ function ut() {
359
360
  X &&= (cancelAnimationFrame(X), 0);
360
361
  }
361
- function lt() {
362
- if (!L.value || U.value) return;
363
- let e = P.value?.getBoundingClientRect();
362
+ function dt() {
363
+ if (!B.value || W.value) return;
364
+ let e = L.value?.getBoundingClientRect();
364
365
  if (e && !Ce(e, Re())) {
365
366
  G({ restoreFocus: !1 });
366
367
  return;
367
368
  }
368
- H();
369
+ ze();
369
370
  }
370
371
  function Q() {
371
- k.closeOnNavigate && G({ restoreFocus: !1 });
372
+ j.closeOnNavigate && G({ restoreFocus: !1 });
372
373
  }
373
- function ut() {
374
+ function ft() {
374
375
  return window.navigation;
375
376
  }
376
- function dt() {
377
- document.addEventListener("mousedown", ot), document.addEventListener("keydown", st), window.addEventListener("resize", Z), window.addEventListener("scroll", Z, !0), window.addEventListener("popstate", Q), window.addEventListener("hashchange", Q), ut()?.addEventListener("navigate", Q);
377
+ function pt() {
378
+ document.addEventListener("mousedown", ct), document.addEventListener("keydown", lt), window.addEventListener("resize", Z), window.addEventListener("scroll", Z, !0), window.addEventListener("popstate", Q), window.addEventListener("hashchange", Q), ft()?.addEventListener("navigate", Q);
378
379
  }
379
- function ft() {
380
- ct(), document.removeEventListener("mousedown", ot), document.removeEventListener("keydown", st), window.removeEventListener("resize", Z), window.removeEventListener("scroll", Z, !0), window.removeEventListener("popstate", Q), window.removeEventListener("hashchange", Q), ut()?.removeEventListener("navigate", Q);
380
+ function mt() {
381
+ ut(), document.removeEventListener("mousedown", ct), document.removeEventListener("keydown", lt), window.removeEventListener("resize", Z), window.removeEventListener("scroll", Z, !0), window.removeEventListener("popstate", Q), window.removeEventListener("hashchange", Q), ft()?.removeEventListener("navigate", Q);
381
382
  }
382
383
  let $ = () => G({ restoreFocus: !1 });
383
- return le(L, (e) => {
384
+ return w(B, (e) => {
384
385
  if (e) {
385
- for (let e of [...T]) e !== $ && e();
386
- T.add($), dt(), y(() => {
387
- H(), J(0), Y(0) || I.value?.focus();
386
+ for (let e of [...E]) e !== $ && e();
387
+ E.add($), pt(), y(() => {
388
+ ze(), J(0), Y(0) || z.value?.focus();
388
389
  });
389
- } else T.delete($), ft(), K.value = 0;
390
- }), le(() => [k.items.length, z.value], () => {
391
- L.value && y(() => J(K.value));
392
- }), ie(() => {
393
- ft(), T.delete($);
394
- let e = I.value;
390
+ } else E.delete($), mt(), K.value = 0;
391
+ }), w(() => [j.items.length, H.value], () => {
392
+ B.value && y(() => J(K.value));
393
+ }), oe(() => {
394
+ mt(), E.delete($);
395
+ let e = z.value;
395
396
  e?.isConnected && e.remove();
396
- }), E({
397
- show: W,
397
+ }), D({
398
+ show: Ge,
398
399
  close: G,
399
- toggle: Ge,
400
- isOpen: L,
401
- unreadCount: R
402
- }), (n, r) => (x(), h("div", {
400
+ toggle: qe,
401
+ isOpen: B,
402
+ unreadCount: V
403
+ }), (t, r) => (b(), h("div", {
403
404
  ref_key: "rootRef",
404
- ref: P,
405
+ ref: L,
405
406
  class: "nb-notification-center"
406
- }, [C(n.$slots, "trigger", {
407
- open: L.value,
408
- toggle: Ge,
409
- show: W,
407
+ }, [S(t.$slots, "trigger", {
408
+ open: B.value,
409
+ toggle: qe,
410
+ show: Ge,
410
411
  close: G,
411
- unreadCount: R.value,
412
- badge: ke.value,
413
- panelId: N,
412
+ unreadCount: V.value,
413
+ badge: Oe.value,
414
+ panelId: F,
414
415
  triggerProps: Pe.value,
415
416
  setTriggerRef: Le
416
- }, () => [_(e, ne({
417
+ }, () => [_(e, re({
417
418
  ref: Le,
418
- class: ["nb-notification-center__trigger", { "nb-notification-center__trigger--active": L.value }],
419
+ class: ["nb-notification-center__trigger", { "nb-notification-center__trigger--active": B.value }],
419
420
  variant: "ghost",
420
421
  size: "sm",
421
- icon: A.value,
422
+ icon: M.value,
422
423
  label: v.label
423
- }, Pe.value, { onClick: Ge }), null, 16, [
424
+ }, Pe.value, { onClick: qe }), null, 16, [
424
425
  "class",
425
426
  "icon",
426
427
  "label"
427
- ]), R.value > 0 ? (x(), h("span", pe, w(ke.value), 1)) : m("", !0)]), (x(), p(u, { to: "body" }, [_(d, { name: "nb-notification-center-pop" }, {
428
- default: ue(() => [L.value ? (x(), h("div", {
428
+ ]), V.value > 0 ? (b(), h("span", pe, C(Oe.value), 1)) : m("", !0)]), (b(), p(ee, {
429
+ to: "body",
430
+ disabled: !ce(k)
431
+ }, [_(d, { name: "nb-notification-center-pop" }, {
432
+ default: T(() => [B.value ? (b(), h("div", {
429
433
  key: 0,
430
- id: N,
434
+ id: F,
431
435
  ref_key: "panelRef",
432
- ref: I,
433
- class: re(["nb-notification-center__panel", He.value]),
434
- style: b(Be.value),
436
+ ref: z,
437
+ class: ie(["nb-notification-center__panel", Ue.value]),
438
+ style: ae(Ve.value),
435
439
  role: "dialog",
436
440
  tabindex: "-1",
437
441
  "aria-labelledby": we,
438
442
  "aria-describedby": Ie.value,
439
443
  "aria-busy": v.loading ? "true" : void 0,
440
- onKeydown: $e,
441
- onFocusin: Xe
444
+ onKeydown: tt,
445
+ onFocusin: Qe
442
446
  }, [
443
447
  g("div", he, [
444
448
  g("h2", {
445
449
  id: we,
446
450
  class: "nb-notification-center__title"
447
- }, w(v.label), 1),
448
- C(n.$slots, "header-start", {
451
+ }, C(v.label), 1),
452
+ S(t.$slots, "header-start", {
449
453
  close: G,
450
- unreadCount: R.value
454
+ unreadCount: V.value
451
455
  }),
452
- C(n.$slots, "header-actions", {
456
+ S(t.$slots, "header-actions", {
453
457
  close: G,
454
- unreadCount: R.value,
455
- markAllRead: at,
458
+ unreadCount: V.value,
459
+ markAllRead: st,
456
460
  markAllPending: v.markAllPending,
457
461
  markAllProps: Fe.value,
458
462
  markAllText: v.markAllPending ? v.markAllPendingLabel : v.markAllLabel
459
- }, () => [v.showMarkAll ? (x(), h("button", ne({
463
+ }, () => [v.showMarkAll ? (b(), h("button", re({
460
464
  key: 0,
461
465
  class: "nb-notification-center__mark-all"
462
- }, Fe.value), [v.markAllPending ? (x(), p(i, {
466
+ }, Fe.value), [v.markAllPending ? (b(), p(a, {
463
467
  key: 0,
464
468
  size: "xs",
465
469
  tone: "inherit",
466
470
  decorative: ""
467
- })) : m("", !0), te(" " + w(v.markAllPending ? v.markAllPendingLabel : v.markAllLabel), 1)], 16)) : m("", !0)]),
468
- U.value ? (x(), p(o, {
471
+ })) : m("", !0), ne(" " + C(v.markAllPending ? v.markAllPendingLabel : v.markAllLabel), 1)], 16)) : m("", !0)]),
472
+ W.value ? (b(), p(s, {
469
473
  key: 0,
470
474
  class: "nb-notification-center__close",
471
475
  size: "lg",
472
- label: v.closeLabel ?? oe(O).notificationCenterClose,
476
+ label: v.closeLabel ?? ce(A).notificationCenterClose,
473
477
  onClick: r[0] ||= (e) => G()
474
478
  }, null, 8, ["label"])) : m("", !0)
475
479
  ]),
476
- g("span", ge, w(v.markAllPending ? v.markAllPendingLabel : ""), 1),
477
- Ne.value ? (x(), h("div", {
480
+ g("span", ge, C(v.markAllPending ? v.markAllPendingLabel : ""), 1),
481
+ Me.value ? (b(), h("div", {
478
482
  key: 0,
479
- id: Ee,
483
+ id: I,
480
484
  class: "nb-notification-center__stale",
481
485
  role: "status"
482
486
  }, [
483
- _(t, {
484
- name: oe(de),
487
+ _(n, {
488
+ name: ce(de),
485
489
  size: "sm",
486
490
  "aria-hidden": "true"
487
491
  }, null, 8, ["name"]),
488
- g("span", _e, w(v.errorStaleLabel), 1),
489
- v.showRetry ? (x(), h("button", {
492
+ g("span", _e, C(v.errorStaleLabel), 1),
493
+ v.showRetry ? (b(), h("button", {
490
494
  key: 0,
491
495
  type: "button",
492
496
  class: "nb-notification-center__retry",
493
- onClick: B
494
- }, w(v.retryLabel), 1)) : m("", !0)
497
+ onClick: Ne
498
+ }, C(v.retryLabel), 1)) : m("", !0)
495
499
  ])) : m("", !0),
496
- z.value === "loading" ? (x(), h("div", {
500
+ H.value === "loading" ? (b(), h("div", {
497
501
  key: 1,
498
502
  class: "nb-notification-center__loading",
499
503
  role: "status",
500
- style: b(Ve.value)
501
- }, [g("span", ve, w(v.loadingLabel), 1), (x(), h(l, null, ae(3, (e) => _(s, {
504
+ style: ae(He.value)
505
+ }, [g("span", ve, C(v.loadingLabel), 1), (b(), h(u, null, se(3, (e) => _(c, {
502
506
  key: e,
503
507
  variant: "text",
504
508
  type: "body-sm",
505
509
  lines: 2,
506
510
  "last-line-width": "60%"
507
- })), 64))], 4)) : z.value === "error" ? (x(), h("div", {
511
+ })), 64))], 4)) : H.value === "error" ? (b(), h("div", {
508
512
  key: 2,
509
- id: Ee,
513
+ id: I,
510
514
  class: "nb-notification-center__error",
511
515
  role: "alert"
512
- }, [C(n.$slots, "error", { retry: B }, () => [_(a, {
516
+ }, [S(t.$slots, "error", { retry: Ne }, () => [_(o, {
513
517
  size: "sm",
514
518
  kind: "error",
515
519
  title: v.errorTitle,
516
520
  description: v.errorDescription
517
- }, ee({ _: 2 }, [v.showRetry ? {
521
+ }, te({ _: 2 }, [v.showRetry ? {
518
522
  name: "actions",
519
- fn: ue(() => [_(e, {
523
+ fn: T(() => [_(e, {
520
524
  size: "sm",
521
525
  variant: "secondary",
522
- onClick: B
526
+ onClick: Ne
523
527
  }, {
524
- default: ue(() => [te(w(v.retryLabel), 1)]),
528
+ default: T(() => [ne(C(v.retryLabel), 1)]),
525
529
  _: 1
526
530
  })]),
527
531
  key: "0"
528
- } : void 0]), 1032, ["title", "description"])])])) : z.value === "list" ? (x(), h("ul", {
532
+ } : void 0]), 1032, ["title", "description"])])])) : H.value === "list" ? (b(), h("ul", {
529
533
  key: 3,
530
534
  ref_key: "listRef",
531
- ref: De,
535
+ ref: Ee,
532
536
  class: "nb-notification-center__list",
533
537
  role: "list",
534
- tabindex: Je.value,
535
- style: b(Ve.value),
536
- onClick: it,
537
- onKeydown: it
538
- }, [C(n.$slots, "default", {
538
+ tabindex: Xe.value,
539
+ style: ae(He.value),
540
+ onClick: ot,
541
+ onKeydown: ot
542
+ }, [S(t.$slots, "default", {
539
543
  close: G,
540
544
  items: v.items
541
- }, () => [(x(!0), h(l, null, ae(v.items, (e) => (x(), p(c, {
545
+ }, () => [(b(!0), h(u, null, se(v.items, (e) => (b(), p(l, {
542
546
  key: e.id,
543
547
  title: e.title,
544
548
  body: e.body,
@@ -552,7 +556,7 @@ var j = /* @__PURE__ */ v({
552
556
  locale: v.locale,
553
557
  "unread-label": v.unreadLabel,
554
558
  "read-label": v.readLabel,
555
- onSelect: (t) => rt(e, t)
559
+ onSelect: (t) => at(e, t)
556
560
  }, null, 8, [
557
561
  "title",
558
562
  "body",
@@ -567,9 +571,9 @@ var j = /* @__PURE__ */ v({
567
571
  "unread-label",
568
572
  "read-label",
569
573
  "onSelect"
570
- ]))), 128))])], 44, ye)) : z.value === "empty" ? (x(), h("div", be, [C(n.$slots, "empty", {}, () => [_(a, {
574
+ ]))), 128))])], 44, ye)) : H.value === "empty" ? (b(), h("div", be, [S(t.$slots, "empty", {}, () => [_(o, {
571
575
  size: "sm",
572
- icon: A.value,
576
+ icon: M.value,
573
577
  title: v.emptyTitle,
574
578
  description: v.emptyDescription
575
579
  }, null, 8, [
@@ -577,11 +581,11 @@ var j = /* @__PURE__ */ v({
577
581
  "title",
578
582
  "description"
579
583
  ])])])) : m("", !0),
580
- n.$slots.footer ? (x(), h("div", xe, [C(n.$slots, "footer", { close: G })])) : m("", !0)
584
+ t.$slots.footer ? (b(), h("div", xe, [S(t.$slots, "footer", { close: G })])) : m("", !0)
581
585
  ], 46, me)) : m("", !0)]),
582
586
  _: 3
583
- })]))], 512));
587
+ })], 8, ["disabled"]))], 512));
584
588
  }
585
589
  });
586
590
  //#endregion
587
- export { j as t };
591
+ export { M as t };