@neobrut-vue/core 0.3.0 → 0.5.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.
@@ -1,13 +1,13 @@
1
- import { defineComponent as _, openBlock as o, createBlock as y, unref as a, withCtx as d, renderSlot as h, createVNode as c, createElementVNode as f, toDisplayString as p, computed as N, createElementBlock as u, normalizeClass as I, createCommentVNode as g, createTextVNode as k, Fragment as B, renderList as T, mergeProps as x, ref as V, watch as w, onBeforeUnmount as ie, withModifiers as de, nextTick as re, useSlots as ue, resolveDynamicComponent as ce, normalizeStyle as L, inject as be, provide as fe, withDirectives as me, vShow as pe } from "vue";
2
- import { AccordionRoot as _e, AccordionItem as ve, AccordionHeader as he, AccordionTrigger as ge, AccordionContent as ye, AspectRatio as $e, AvatarRoot as Ne, AvatarImage as ke, AvatarFallback as xe, ComboboxRoot as H, ComboboxAnchor as K, ComboboxInput as j, ComboboxTrigger as Ie, ComboboxPortal as Ce, ComboboxContent as X, ComboboxViewport as J, ComboboxEmpty as Q, ComboboxItem as W, ComboboxItemIndicator as Ve, ComboboxGroup as Be, ComboboxLabel as we, DialogRoot as Y, DialogTrigger as Z, DialogPortal as ee, DialogOverlay as te, DialogContent as ae, DialogTitle as le, DialogClose as ne, ContextMenuRoot as Se, ContextMenuTrigger as Te, ContextMenuPortal as Me, ContextMenuContent as Ae, ContextMenuCheckboxItem as De, ContextMenuItemIndicator as oe, ContextMenuItem as Oe, ContextMenuLabel as Pe, ContextMenuRadioGroup as Re, ContextMenuRadioItem as Le, ContextMenuSeparator as Ue, ContextMenuSub as Ge, ContextMenuSubTrigger as qe, ContextMenuSubContent as Ee, AlertDialogRoot as ze, AlertDialogTrigger as Fe, AlertDialogPortal as He, AlertDialogOverlay as Ke, AlertDialogContent as je, AlertDialogTitle as Xe, AlertDialogDescription as Je, AlertDialogCancel as Qe, AlertDialogAction as We, DropdownMenuRoot as Ye, DropdownMenuTrigger as Ze, DropdownMenuPortal as et, DropdownMenuContent as tt, DropdownMenuItem as at, DropdownMenuSeparator as lt, HoverCardRoot as nt, HoverCardTrigger as ot, HoverCardPortal as st, HoverCardContent as it, NavigationMenuRoot as dt, NavigationMenuList as rt, NavigationMenuItem as ut, NavigationMenuTrigger as ct, NavigationMenuContent as bt, NavigationMenuLink as E, NumberFieldRoot as ft, NumberFieldDecrement as mt, NumberFieldInput as pt, NumberFieldIncrement as _t, PaginationRoot as vt, PaginationPrev as ht, PaginationList as gt, PaginationListItem as yt, PaginationEllipsis as $t, PaginationNext as Nt, PopoverRoot as kt, PopoverTrigger as xt, PopoverPortal as It, PopoverContent as Ct, PopoverClose as Vt, ProgressRoot as Bt, ProgressIndicator as wt, ScrollAreaRoot as St, ScrollAreaViewport as Tt, ScrollAreaScrollbar as Mt, ScrollAreaThumb as At, DialogDescription as Dt, SelectRoot as Ot, SelectTrigger as Pt, SelectValue as Rt, SelectIcon as Lt, SelectPortal as Ut, SelectContent as Gt, SelectScrollUpButton as qt, SelectViewport as Et, SelectScrollDownButton as zt, SelectItem as Ft, SelectItemText as Ht, SelectItemIndicator as Kt, Separator as jt, SliderRoot as Xt, SliderTrack as Jt, SliderRange as Qt, SliderThumb as Wt, ToastProvider as Yt, ToastRoot as Zt, ToastTitle as ea, ToastDescription as ta, ToastClose as aa, ToastViewport as la, Toggle as na, ToggleGroupRoot as oa, ToggleGroupItem as sa } from "reka-ui";
3
- function ia(e) {
1
+ import { defineComponent as v, openBlock as n, createBlock as y, unref as a, withCtx as d, renderSlot as g, createVNode as c, createElementVNode as f, toDisplayString as p, computed as N, createElementBlock as u, normalizeClass as x, createCommentVNode as _, createTextVNode as I, Fragment as C, renderList as w, mergeProps as k, ref as V, watch as S, onBeforeUnmount as H, withModifiers as re, nextTick as ue, useSlots as ce, resolveDynamicComponent as be, normalizeStyle as q, inject as fe, provide as me, withDirectives as pe, vShow as ve } from "vue";
2
+ import { AccordionRoot as he, AccordionItem as _e, AccordionHeader as ge, AccordionTrigger as ye, AccordionContent as $e, AspectRatio as Ne, AvatarRoot as Ie, AvatarImage as ke, AvatarFallback as xe, CollapsibleRoot as Ve, CollapsibleTrigger as Be, CollapsibleContent as Ce, ComboboxRoot as K, ComboboxAnchor as j, ComboboxInput as X, ComboboxTrigger as Te, ComboboxPortal as we, ComboboxContent as J, ComboboxViewport as Q, ComboboxEmpty as W, ComboboxItem as Y, ComboboxItemIndicator as Se, ComboboxGroup as Me, ComboboxLabel as Ae, DialogRoot as Z, DialogTrigger as ee, DialogPortal as te, DialogOverlay as ae, DialogContent as le, DialogTitle as ne, DialogClose as oe, ContextMenuRoot as De, ContextMenuTrigger as Oe, ContextMenuPortal as Pe, ContextMenuContent as Re, ContextMenuCheckboxItem as qe, ContextMenuItemIndicator as se, ContextMenuItem as Le, ContextMenuLabel as Ue, ContextMenuRadioGroup as Ge, ContextMenuRadioItem as Ee, ContextMenuSeparator as ze, ContextMenuSub as Fe, ContextMenuSubTrigger as He, ContextMenuSubContent as Ke, AlertDialogRoot as je, AlertDialogTrigger as Xe, AlertDialogPortal as Je, AlertDialogOverlay as Qe, AlertDialogContent as We, AlertDialogTitle as Ye, AlertDialogDescription as Ze, AlertDialogCancel as et, AlertDialogAction as tt, DropdownMenuRoot as at, DropdownMenuTrigger as lt, DropdownMenuPortal as nt, DropdownMenuContent as ot, DropdownMenuItem as st, DropdownMenuSeparator as it, HoverCardRoot as dt, HoverCardTrigger as rt, HoverCardPortal as ut, HoverCardContent as ct, NavigationMenuRoot as bt, NavigationMenuList as ft, NavigationMenuItem as mt, NavigationMenuTrigger as pt, NavigationMenuContent as vt, NavigationMenuLink as E, NumberFieldRoot as ht, NumberFieldDecrement as _t, NumberFieldInput as gt, NumberFieldIncrement as yt, PaginationRoot as $t, PaginationPrev as Nt, PaginationList as It, PaginationListItem as kt, PaginationEllipsis as xt, PaginationNext as Vt, PinInputRoot as Bt, PinInputInput as Ct, PopoverRoot as Tt, PopoverTrigger as wt, PopoverPortal as St, PopoverContent as Mt, PopoverClose as At, ProgressRoot as Dt, ProgressIndicator as Ot, ScrollAreaRoot as Pt, ScrollAreaViewport as Rt, ScrollAreaScrollbar as qt, ScrollAreaThumb as Lt, DialogDescription as Ut, SelectRoot as Gt, SelectTrigger as Et, SelectValue as zt, SelectIcon as Ft, SelectPortal as Ht, SelectContent as Kt, SelectScrollUpButton as jt, SelectViewport as Xt, SelectScrollDownButton as Jt, SelectItem as Qt, SelectItemText as Wt, SelectItemIndicator as Yt, Separator as Zt, SliderRoot as ea, SliderTrack as ta, SliderRange as aa, SliderThumb as la, StepperRoot as na, StepperItem as oa, StepperTrigger as sa, StepperIndicator as ia, StepperTitle as da, StepperDescription as ra, TagsInputRoot as ua, TagsInputItem as ca, TagsInputItemText as ba, TagsInputItemDelete as fa, TagsInputInput as ma, ToastProvider as pa, ToastRoot as va, ToastTitle as ha, ToastDescription as _a, ToastClose as ga, ToastViewport as ya, Toggle as $a, ToggleGroupRoot as Na, ToggleGroupItem as Ia } from "reka-ui";
3
+ function ka(e) {
4
4
  return {
5
- install(n) {
6
- Object.entries(e).forEach(([t, s]) => n.component(t, s));
5
+ install(o) {
6
+ Object.entries(e).forEach(([t, s]) => o.component(t, s));
7
7
  }
8
8
  };
9
9
  }
10
- const da = /* @__PURE__ */ _({
10
+ const xa = /* @__PURE__ */ v({
11
11
  __name: "NbAccordion",
12
12
  props: {
13
13
  modelValue: {},
@@ -16,9 +16,9 @@ const da = /* @__PURE__ */ _({
16
16
  disabled: { type: Boolean, default: !1 }
17
17
  },
18
18
  emits: ["update:modelValue"],
19
- setup(e, { emit: n }) {
20
- const t = n;
21
- return (s, l) => (o(), y(a(_e), {
19
+ setup(e, { emit: o }) {
20
+ const t = o;
21
+ return (s, l) => (n(), y(a(he), {
22
22
  class: "nb-root nb-accordion",
23
23
  type: "single",
24
24
  "model-value": e.modelValue,
@@ -28,12 +28,12 @@ const da = /* @__PURE__ */ _({
28
28
  "onUpdate:modelValue": l[0] || (l[0] = (b) => t("update:modelValue", b))
29
29
  }, {
30
30
  default: d(() => [
31
- h(s.$slots, "default")
31
+ g(s.$slots, "default")
32
32
  ]),
33
33
  _: 3
34
34
  }, 8, ["model-value", "default-value", "collapsible", "disabled"]));
35
35
  }
36
- }), ra = { class: "nb-accordion__body" }, ua = /* @__PURE__ */ _({
36
+ }), Va = { class: "nb-accordion__body" }, Ba = /* @__PURE__ */ v({
37
37
  __name: "NbAccordionItem",
38
38
  props: {
39
39
  value: {},
@@ -41,15 +41,15 @@ const da = /* @__PURE__ */ _({
41
41
  disabled: { type: Boolean, default: !1 }
42
42
  },
43
43
  setup(e) {
44
- return (n, t) => (o(), y(a(ve), {
44
+ return (o, t) => (n(), y(a(_e), {
45
45
  class: "nb-accordion__item",
46
46
  value: e.value,
47
47
  disabled: e.disabled
48
48
  }, {
49
49
  default: d(() => [
50
- c(a(he), { class: "nb-accordion__header" }, {
50
+ c(a(ge), { class: "nb-accordion__header" }, {
51
51
  default: d(() => [
52
- c(a(ge), { class: "nb-accordion__trigger" }, {
52
+ c(a(ye), { class: "nb-accordion__trigger" }, {
53
53
  default: d(() => [
54
54
  f("span", null, p(e.title), 1),
55
55
  t[0] || (t[0] = f("svg", {
@@ -66,10 +66,10 @@ const da = /* @__PURE__ */ _({
66
66
  ]),
67
67
  _: 1
68
68
  }),
69
- c(a(ye), { class: "nb-accordion__content" }, {
69
+ c(a($e), { class: "nb-accordion__content" }, {
70
70
  default: d(() => [
71
- f("div", ra, [
72
- h(n.$slots, "default")
71
+ f("div", Va, [
72
+ g(o.$slots, "default")
73
73
  ])
74
74
  ]),
75
75
  _: 3
@@ -78,41 +78,41 @@ const da = /* @__PURE__ */ _({
78
78
  _: 3
79
79
  }, 8, ["value", "disabled"]));
80
80
  }
81
- }), ca = /* @__PURE__ */ _({
81
+ }), Ca = /* @__PURE__ */ v({
82
82
  __name: "NbAspectRatio",
83
83
  props: {
84
84
  ratio: { default: 1 }
85
85
  },
86
86
  setup(e) {
87
- return (n, t) => (o(), y(a($e), {
87
+ return (o, t) => (n(), y(a(Ne), {
88
88
  class: "nb-root nb-aspect-ratio",
89
89
  ratio: e.ratio
90
90
  }, {
91
91
  default: d(() => [
92
- h(n.$slots, "default")
92
+ g(o.$slots, "default")
93
93
  ]),
94
94
  _: 3
95
95
  }, 8, ["ratio"]));
96
96
  }
97
97
  });
98
- function O(...e) {
98
+ function P(...e) {
99
99
  return e.filter(Boolean).join(" ");
100
100
  }
101
- const ba = /* @__PURE__ */ _({
101
+ const Ta = /* @__PURE__ */ v({
102
102
  __name: "NbBadge",
103
103
  props: {
104
104
  tone: { default: "primary" },
105
105
  size: { default: "md" }
106
106
  },
107
107
  setup(e) {
108
- const n = e, t = N(() => O(`nb-badge--${n.tone}`, `nb-badge--${n.size}`));
109
- return (s, l) => (o(), u("span", {
110
- class: I(["nb-root nb-badge", t.value])
108
+ const o = e, t = N(() => P(`nb-badge--${o.tone}`, `nb-badge--${o.size}`));
109
+ return (s, l) => (n(), u("span", {
110
+ class: x(["nb-root nb-badge", t.value])
111
111
  }, [
112
- h(s.$slots, "default")
112
+ g(s.$slots, "default")
113
113
  ], 2));
114
114
  }
115
- }), fa = /* @__PURE__ */ _({
115
+ }), wa = /* @__PURE__ */ v({
116
116
  __name: "NbAvatar",
117
117
  props: {
118
118
  name: {},
@@ -121,26 +121,26 @@ const ba = /* @__PURE__ */ _({
121
121
  tone: { default: "primary" }
122
122
  },
123
123
  setup(e) {
124
- const n = e, t = N(() => n.name.trim().split(/\s+/).slice(0, 2).map((s) => s[0]?.toUpperCase()).join(""));
125
- return (s, l) => (o(), y(a(Ne), {
126
- class: I(["nb-root nb-avatar", [`nb-avatar--${e.size}`, `nb-avatar--${e.tone}`]]),
124
+ const o = e, t = N(() => o.name.trim().split(/\s+/).slice(0, 2).map((s) => s[0]?.toUpperCase()).join(""));
125
+ return (s, l) => (n(), y(a(Ie), {
126
+ class: x(["nb-root nb-avatar", [`nb-avatar--${e.size}`, `nb-avatar--${e.tone}`]]),
127
127
  role: "img",
128
128
  "aria-label": e.name
129
129
  }, {
130
130
  default: d(() => [
131
- e.src ? (o(), y(a(ke), {
131
+ e.src ? (n(), y(a(ke), {
132
132
  key: 0,
133
133
  class: "nb-avatar__image",
134
134
  src: e.src,
135
135
  alt: "",
136
136
  "aria-hidden": "true"
137
- }, null, 8, ["src"])) : g("", !0),
137
+ }, null, 8, ["src"])) : _("", !0),
138
138
  c(a(xe), {
139
139
  class: "nb-avatar__fallback",
140
140
  "aria-hidden": "true"
141
141
  }, {
142
142
  default: d(() => [
143
- k(p(t.value), 1)
143
+ I(p(t.value), 1)
144
144
  ]),
145
145
  _: 1
146
146
  })
@@ -148,46 +148,46 @@ const ba = /* @__PURE__ */ _({
148
148
  _: 1
149
149
  }, 8, ["class", "aria-label"]));
150
150
  }
151
- }), ma = ["aria-label"], pa = ["href"], _a = ["aria-current"], va = {
151
+ }), Sa = ["aria-label"], Ma = ["href"], Aa = ["aria-current"], Da = {
152
152
  key: 2,
153
153
  class: "nb-breadcrumbs__separator",
154
154
  viewBox: "0 0 16 16",
155
155
  "aria-hidden": "true",
156
156
  focusable: "false"
157
- }, ha = /* @__PURE__ */ _({
157
+ }, Oa = /* @__PURE__ */ v({
158
158
  __name: "NbBreadcrumbs",
159
159
  props: {
160
160
  items: {},
161
161
  label: { default: "Breadcrumb" }
162
162
  },
163
163
  setup(e) {
164
- return (n, t) => (o(), u("nav", {
164
+ return (o, t) => (n(), u("nav", {
165
165
  class: "nb-root nb-breadcrumbs",
166
166
  "aria-label": e.label
167
167
  }, [
168
168
  f("ol", null, [
169
- (o(!0), u(B, null, T(e.items, (s, l) => (o(), u("li", {
169
+ (n(!0), u(C, null, w(e.items, (s, l) => (n(), u("li", {
170
170
  key: `${s.label}-${l}`
171
171
  }, [
172
- s.href && l < e.items.length - 1 ? (o(), u("a", {
172
+ s.href && l < e.items.length - 1 ? (n(), u("a", {
173
173
  key: 0,
174
174
  href: s.href
175
- }, p(s.label), 9, pa)) : (o(), u("span", {
175
+ }, p(s.label), 9, Ma)) : (n(), u("span", {
176
176
  key: 1,
177
177
  "aria-current": l === e.items.length - 1 ? "page" : void 0
178
- }, p(s.label), 9, _a)),
179
- l < e.items.length - 1 ? (o(), u("svg", va, [...t[0] || (t[0] = [
178
+ }, p(s.label), 9, Aa)),
179
+ l < e.items.length - 1 ? (n(), u("svg", Da, [...t[0] || (t[0] = [
180
180
  f("path", { d: "m6 3 5 5-5 5" }, null, -1)
181
- ])])) : g("", !0)
181
+ ])])) : _("", !0)
182
182
  ]))), 128))
183
183
  ])
184
- ], 8, ma));
184
+ ], 8, Sa));
185
185
  }
186
- }), ga = ["type", "disabled", "aria-busy"], ya = {
186
+ }), Pa = ["type", "disabled", "aria-busy"], Ra = {
187
187
  key: 0,
188
188
  class: "nb-button__loader",
189
189
  "aria-hidden": "true"
190
- }, $a = /* @__PURE__ */ _({
190
+ }, ie = /* @__PURE__ */ v({
191
191
  inheritAttrs: !1,
192
192
  __name: "NbButton",
193
193
  props: {
@@ -198,46 +198,46 @@ const ba = /* @__PURE__ */ _({
198
198
  disabled: { type: Boolean, default: !1 }
199
199
  },
200
200
  setup(e) {
201
- const n = e, t = N(() => O(
202
- `nb-button--${n.variant}`,
203
- `nb-button--${n.size}`,
204
- n.loading && "is-loading"
201
+ const o = e, t = N(() => P(
202
+ `nb-button--${o.variant}`,
203
+ `nb-button--${o.size}`,
204
+ o.loading && "is-loading"
205
205
  ));
206
- return (s, l) => (o(), u("button", x(s.$attrs, {
206
+ return (s, l) => (n(), u("button", k(s.$attrs, {
207
207
  class: ["nb-root nb-button", t.value],
208
208
  type: e.type,
209
209
  disabled: e.disabled || e.loading,
210
210
  "aria-busy": e.loading || void 0
211
211
  }), [
212
- e.loading ? (o(), u("span", ya, "✦")) : g("", !0),
212
+ e.loading ? (n(), u("span", Ra, "✦")) : _("", !0),
213
213
  f("span", null, [
214
- h(s.$slots, "default")
214
+ g(s.$slots, "default")
215
215
  ])
216
- ], 16, ga));
216
+ ], 16, Pa));
217
217
  }
218
- }), Na = ["aria-label", "data-orientation"], ka = /* @__PURE__ */ _({
218
+ }), qa = ["aria-label", "data-orientation"], La = /* @__PURE__ */ v({
219
219
  __name: "NbButtonGroup",
220
220
  props: {
221
221
  orientation: { default: "horizontal" },
222
222
  label: {}
223
223
  },
224
224
  setup(e) {
225
- return (n, t) => (o(), u("div", {
225
+ return (o, t) => (n(), u("div", {
226
226
  class: "nb-root nb-button-group",
227
227
  role: "group",
228
228
  "aria-label": e.label,
229
229
  "data-orientation": e.orientation
230
230
  }, [
231
- h(n.$slots, "default")
232
- ], 8, Na));
231
+ g(o.$slots, "default")
232
+ ], 8, qa));
233
233
  }
234
- }), xa = {
234
+ }), Ua = {
235
235
  key: 0,
236
236
  class: "nb-card__header"
237
- }, Ia = { class: "nb-card__body" }, Ca = {
237
+ }, Ga = { class: "nb-card__body" }, Ea = {
238
238
  key: 1,
239
239
  class: "nb-card__footer"
240
- }, Va = /* @__PURE__ */ _({
240
+ }, za = /* @__PURE__ */ v({
241
241
  inheritAttrs: !1,
242
242
  __name: "NbCard",
243
243
  props: {
@@ -245,41 +245,41 @@ const ba = /* @__PURE__ */ _({
245
245
  interactive: { type: Boolean, default: !1 }
246
246
  },
247
247
  setup(e) {
248
- const n = e, t = N(() => O(
249
- `nb-card--${n.tone}`,
250
- n.interactive && "nb-card--interactive"
248
+ const o = e, t = N(() => P(
249
+ `nb-card--${o.tone}`,
250
+ o.interactive && "nb-card--interactive"
251
251
  ));
252
- return (s, l) => (o(), u("article", x(s.$attrs, {
252
+ return (s, l) => (n(), u("article", k(s.$attrs, {
253
253
  class: ["nb-root nb-card", t.value]
254
254
  }), [
255
- s.$slots.header ? (o(), u("header", xa, [
256
- h(s.$slots, "header")
257
- ])) : g("", !0),
258
- f("div", Ia, [
259
- h(s.$slots, "default")
255
+ s.$slots.header ? (n(), u("header", Ua, [
256
+ g(s.$slots, "header")
257
+ ])) : _("", !0),
258
+ f("div", Ga, [
259
+ g(s.$slots, "default")
260
260
  ]),
261
- s.$slots.footer ? (o(), u("footer", Ca, [
262
- h(s.$slots, "footer")
263
- ])) : g("", !0)
261
+ s.$slots.footer ? (n(), u("footer", Ea, [
262
+ g(s.$slots, "footer")
263
+ ])) : _("", !0)
264
264
  ], 16));
265
265
  }
266
266
  });
267
267
  let z = 0;
268
- function M(e = "nb") {
268
+ function A(e = "nb") {
269
269
  return z += 1, `${e}-${z}`;
270
270
  }
271
- function S(e, n) {
272
- const t = n ?? M(e);
271
+ function T(e, o) {
272
+ const t = o ?? A(e);
273
273
  return {
274
274
  inputId: t,
275
275
  hintId: `${t}-hint`,
276
276
  errorId: `${t}-error`
277
277
  };
278
278
  }
279
- function D(e, n, t, s) {
280
- return [e && t, n && s].filter(Boolean).join(" ") || void 0;
279
+ function M(e, o, t, s) {
280
+ return [e && t, o && s].filter(Boolean).join(" ") || void 0;
281
281
  }
282
- const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkbox__label" }, Ta = /* @__PURE__ */ _({
282
+ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkbox__label" }, ja = /* @__PURE__ */ v({
283
283
  inheritAttrs: !1,
284
284
  __name: "NbCheckbox",
285
285
  props: {
@@ -289,28 +289,127 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
289
289
  id: {}
290
290
  },
291
291
  emits: ["update:modelValue"],
292
- setup(e, { emit: n }) {
293
- const t = e, s = n, l = S("checkbox", t.id);
294
- return (b, m) => (o(), u("label", {
292
+ setup(e, { emit: o }) {
293
+ const t = e, s = o, l = T("checkbox", t.id);
294
+ return (b, m) => (n(), u("label", {
295
295
  class: "nb-root nb-checkbox",
296
296
  for: a(l).inputId
297
297
  }, [
298
- f("input", x(b.$attrs, {
298
+ f("input", k(b.$attrs, {
299
299
  id: a(l).inputId,
300
300
  class: "nb-checkbox__input",
301
301
  type: "checkbox",
302
302
  checked: e.modelValue,
303
303
  disabled: e.disabled,
304
304
  onChange: m[0] || (m[0] = (i) => s("update:modelValue", i.target.checked))
305
- }), null, 16, wa),
305
+ }), null, 16, Ha),
306
306
  m[1] || (m[1] = f("span", {
307
307
  class: "nb-checkbox__box",
308
308
  "aria-hidden": "true"
309
309
  }, "✓", -1)),
310
- f("span", Sa, p(e.label), 1)
311
- ], 8, Ba));
310
+ f("span", Ka, p(e.label), 1)
311
+ ], 8, Fa));
312
312
  }
313
- }), Ma = { class: "nb-root nb-field" }, Aa = ["for"], Da = ["id"], Oa = ["id"], Pa = /* @__PURE__ */ _({
313
+ }), Xa = { class: "nb-collapsible__body" }, Ja = /* @__PURE__ */ v({
314
+ __name: "NbCollapsible",
315
+ props: {
316
+ title: {},
317
+ open: { type: Boolean, default: void 0 },
318
+ defaultOpen: { type: Boolean, default: !1 },
319
+ disabled: { type: Boolean, default: !1 }
320
+ },
321
+ emits: ["update:open"],
322
+ setup(e, { emit: o }) {
323
+ const t = o;
324
+ return (s, l) => (n(), y(a(Ve), {
325
+ class: "nb-root nb-collapsible",
326
+ open: e.open,
327
+ "default-open": e.defaultOpen,
328
+ disabled: e.disabled,
329
+ "onUpdate:open": l[0] || (l[0] = (b) => t("update:open", b))
330
+ }, {
331
+ default: d(() => [
332
+ c(a(Be), { class: "nb-collapsible__trigger" }, {
333
+ default: d(() => [
334
+ f("span", null, p(e.title), 1),
335
+ l[1] || (l[1] = f("svg", {
336
+ class: "nb-collapsible__icon",
337
+ viewBox: "0 0 16 16",
338
+ "aria-hidden": "true",
339
+ focusable: "false"
340
+ }, [
341
+ f("path", { d: "m3 6 5 5 5-5" })
342
+ ], -1))
343
+ ]),
344
+ _: 1
345
+ }),
346
+ c(a(Ce), { class: "nb-collapsible__content" }, {
347
+ default: d(() => [
348
+ f("div", Xa, [
349
+ g(s.$slots, "default")
350
+ ])
351
+ ]),
352
+ _: 3
353
+ })
354
+ ]),
355
+ _: 3
356
+ }, 8, ["open", "default-open", "disabled"]));
357
+ }
358
+ }), Qa = {
359
+ role: "status",
360
+ "aria-live": "polite"
361
+ }, Wa = /* @__PURE__ */ v({
362
+ inheritAttrs: !1,
363
+ __name: "NbCopyButton",
364
+ props: {
365
+ text: {},
366
+ label: { default: "Copy" },
367
+ copiedLabel: { default: "Copied" },
368
+ errorLabel: { default: "Copy failed" },
369
+ disabled: { type: Boolean, default: !1 }
370
+ },
371
+ emits: ["copied", "error"],
372
+ setup(e, { emit: o }) {
373
+ const t = e, s = o, l = V("idle"), b = V(!1);
374
+ let m, i = !1;
375
+ S(() => t.text, () => {
376
+ clearTimeout(m), l.value = "idle";
377
+ }), H(() => {
378
+ i = !0, clearTimeout(m);
379
+ });
380
+ function r($) {
381
+ l.value = $, clearTimeout(m), m = setTimeout(() => {
382
+ l.value = "idle";
383
+ }, 2e3);
384
+ }
385
+ async function h() {
386
+ if (b.value || t.disabled) return;
387
+ b.value = !0;
388
+ const $ = t.text;
389
+ try {
390
+ if (!navigator.clipboard?.writeText) throw new Error("Clipboard is unavailable");
391
+ if (await navigator.clipboard.writeText($), i) return;
392
+ s("copied", $), t.text === $ && r("copied");
393
+ } catch (O) {
394
+ if (i) return;
395
+ s("error", O), t.text === $ && r("error");
396
+ } finally {
397
+ b.value = !1;
398
+ }
399
+ }
400
+ return ($, O) => (n(), y(ie, k($.$attrs, {
401
+ variant: "secondary",
402
+ type: "button",
403
+ disabled: e.disabled || b.value,
404
+ onClick: h
405
+ }), {
406
+ default: d(() => [
407
+ f("span", Qa, p(l.value === "copied" ? e.copiedLabel : l.value === "error" ? e.errorLabel : e.label), 1)
408
+ ]),
409
+ _: 1
410
+ }, 16, ["disabled"]));
411
+ }
412
+ }), Ya = { class: "nb-root nb-field" }, Za = ["for"], el = ["id"], tl = ["id"], al = /* @__PURE__ */ v({
314
413
  inheritAttrs: !1,
315
414
  __name: "NbCombobox",
316
415
  props: {
@@ -327,21 +426,21 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
327
426
  id: {}
328
427
  },
329
428
  emits: ["update:modelValue"],
330
- setup(e, { emit: n }) {
331
- const t = e, s = n, l = S("combobox", t.id), b = N(() => D(t.hint, t.error, l.hintId, l.errorId));
429
+ setup(e, { emit: o }) {
430
+ const t = e, s = o, l = T("combobox", t.id), b = N(() => M(t.hint, t.error, l.hintId, l.errorId));
332
431
  function m(r) {
333
- return t.options.find((v) => v.value === r)?.label ?? "";
432
+ return t.options.find((h) => h.value === r)?.label ?? "";
334
433
  }
335
434
  function i(r) {
336
435
  typeof r == "string" && s("update:modelValue", r);
337
436
  }
338
- return (r, v) => (o(), u("div", Ma, [
339
- e.label ? (o(), u("label", {
437
+ return (r, h) => (n(), u("div", Ya, [
438
+ e.label ? (n(), u("label", {
340
439
  key: 0,
341
440
  class: "nb-field__label",
342
441
  for: a(l).inputId
343
- }, p(e.label), 9, Aa)) : g("", !0),
344
- c(a(H), {
442
+ }, p(e.label), 9, Za)) : _("", !0),
443
+ c(a(K), {
345
444
  "model-value": e.modelValue,
346
445
  disabled: e.disabled,
347
446
  required: e.required,
@@ -350,9 +449,9 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
350
449
  "onUpdate:modelValue": i
351
450
  }, {
352
451
  default: d(() => [
353
- c(a(K), { class: "nb-combobox__anchor" }, {
452
+ c(a(j), { class: "nb-combobox__anchor" }, {
354
453
  default: d(() => [
355
- c(a(j), x(r.$attrs, {
454
+ c(a(X), k(r.$attrs, {
356
455
  id: a(l).inputId,
357
456
  class: "nb-combobox__input",
358
457
  "display-value": m,
@@ -360,11 +459,11 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
360
459
  "aria-invalid": e.error ? "true" : void 0,
361
460
  "aria-describedby": b.value
362
461
  }), null, 16, ["id", "placeholder", "aria-invalid", "aria-describedby"]),
363
- c(a(Ie), {
462
+ c(a(Te), {
364
463
  class: "nb-combobox__trigger",
365
464
  "aria-label": "Show options"
366
465
  }, {
367
- default: d(() => [...v[0] || (v[0] = [
466
+ default: d(() => [...h[0] || (h[0] = [
368
467
  f("svg", {
369
468
  viewBox: "0 0 16 16",
370
469
  "aria-hidden": "true",
@@ -378,24 +477,24 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
378
477
  ]),
379
478
  _: 1
380
479
  }),
381
- c(a(Ce), null, {
480
+ c(a(we), null, {
382
481
  default: d(() => [
383
- c(a(X), {
482
+ c(a(J), {
384
483
  class: "nb-root nb-combobox__content",
385
484
  position: "popper",
386
485
  align: "start",
387
486
  "side-offset": 5
388
487
  }, {
389
488
  default: d(() => [
390
- c(a(J), { class: "nb-combobox__viewport" }, {
489
+ c(a(Q), { class: "nb-combobox__viewport" }, {
391
490
  default: d(() => [
392
- c(a(Q), { class: "nb-combobox__empty" }, {
491
+ c(a(W), { class: "nb-combobox__empty" }, {
393
492
  default: d(() => [
394
- k(p(e.emptyText), 1)
493
+ I(p(e.emptyText), 1)
395
494
  ]),
396
495
  _: 1
397
496
  }),
398
- (o(!0), u(B, null, T(e.options, ($) => (o(), y(a(W), {
497
+ (n(!0), u(C, null, w(e.options, ($) => (n(), y(a(Y), {
399
498
  key: $.value,
400
499
  class: "nb-combobox__item",
401
500
  value: $.value,
@@ -405,11 +504,11 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
405
504
  }, {
406
505
  default: d(() => [
407
506
  f("span", null, p($.label), 1),
408
- c(a(Ve), {
507
+ c(a(Se), {
409
508
  class: "nb-combobox__indicator",
410
509
  "aria-hidden": "true"
411
510
  }, {
412
- default: d(() => [...v[1] || (v[1] = [
511
+ default: d(() => [...h[1] || (h[1] = [
413
512
  f("svg", {
414
513
  viewBox: "0 0 16 16",
415
514
  focusable: "false"
@@ -434,23 +533,23 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
434
533
  ]),
435
534
  _: 1
436
535
  }, 8, ["model-value", "disabled", "required", "name"]),
437
- e.hint ? (o(), u("span", {
536
+ e.hint ? (n(), u("span", {
438
537
  key: 1,
439
538
  id: a(l).hintId,
440
539
  class: "nb-field__hint"
441
- }, p(e.hint), 9, Da)) : g("", !0),
442
- e.error ? (o(), u("span", {
540
+ }, p(e.hint), 9, el)) : _("", !0),
541
+ e.error ? (n(), u("span", {
443
542
  key: 2,
444
543
  id: a(l).errorId,
445
544
  class: "nb-field__error"
446
- }, p(e.error), 9, Oa)) : g("", !0)
545
+ }, p(e.error), 9, tl)) : _("", !0)
447
546
  ]));
448
547
  }
449
- }), Ra = {
548
+ }), ll = {
450
549
  key: 0,
451
550
  class: "nb-command__shortcut",
452
551
  "aria-hidden": "true"
453
- }, F = /* @__PURE__ */ _({
552
+ }, F = /* @__PURE__ */ v({
454
553
  __name: "NbCommandPanel",
455
554
  props: {
456
555
  modelValue: { default: "" },
@@ -460,8 +559,8 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
460
559
  emptyText: {}
461
560
  },
462
561
  emits: ["update:modelValue", "select"],
463
- setup(e, { emit: n }) {
464
- const t = e, s = n, l = N(() => {
562
+ setup(e, { emit: o }) {
563
+ const t = e, s = o, l = N(() => {
465
564
  const m = /* @__PURE__ */ new Map();
466
565
  for (const i of t.options) {
467
566
  const r = i.group ?? "";
@@ -474,7 +573,7 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
474
573
  const i = t.options.find((r) => r.value === m);
475
574
  i && (s("update:modelValue", m), s("select", i));
476
575
  }
477
- return (m, i) => (o(), y(a(H), {
576
+ return (m, i) => (n(), y(a(K), {
478
577
  class: "nb-command",
479
578
  "model-value": e.modelValue,
480
579
  open: !0,
@@ -482,7 +581,7 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
482
581
  "onUpdate:modelValue": b
483
582
  }, {
484
583
  default: d(() => [
485
- c(a(K), { class: "nb-command__search" }, {
584
+ c(a(j), { class: "nb-command__search" }, {
486
585
  default: d(() => [
487
586
  i[0] || (i[0] = f("svg", {
488
587
  viewBox: "0 0 20 20",
@@ -496,7 +595,7 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
496
595
  }),
497
596
  f("path", { d: "m13 13 4 4" })
498
597
  ], -1)),
499
- c(a(j), {
598
+ c(a(X), {
500
599
  class: "nb-command__input",
501
600
  "aria-label": e.label,
502
601
  placeholder: e.placeholder,
@@ -505,41 +604,41 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
505
604
  ]),
506
605
  _: 1
507
606
  }),
508
- c(a(X), { class: "nb-command__content" }, {
607
+ c(a(J), { class: "nb-command__content" }, {
509
608
  default: d(() => [
510
- c(a(J), { class: "nb-command__viewport" }, {
609
+ c(a(Q), { class: "nb-command__viewport" }, {
511
610
  default: d(() => [
512
- c(a(Q), { class: "nb-command__empty" }, {
611
+ c(a(W), { class: "nb-command__empty" }, {
513
612
  default: d(() => [
514
- k(p(e.emptyText), 1)
613
+ I(p(e.emptyText), 1)
515
614
  ]),
516
615
  _: 1
517
616
  }),
518
- (o(!0), u(B, null, T(l.value, (r) => (o(), y(a(Be), {
617
+ (n(!0), u(C, null, w(l.value, (r) => (n(), y(a(Me), {
519
618
  key: r.label || "default",
520
619
  class: "nb-command__group"
521
620
  }, {
522
621
  default: d(() => [
523
- r.label ? (o(), y(a(we), {
622
+ r.label ? (n(), y(a(Ae), {
524
623
  key: 0,
525
624
  class: "nb-command__group-label"
526
625
  }, {
527
626
  default: d(() => [
528
- k(p(r.label), 1)
627
+ I(p(r.label), 1)
529
628
  ]),
530
629
  _: 2
531
- }, 1024)) : g("", !0),
532
- (o(!0), u(B, null, T(r.options, (v) => (o(), y(a(W), {
533
- key: v.value,
630
+ }, 1024)) : _("", !0),
631
+ (n(!0), u(C, null, w(r.options, (h) => (n(), y(a(Y), {
632
+ key: h.value,
534
633
  class: "nb-command__item",
535
- value: v.value,
536
- "text-value": [v.label, ...v.keywords ?? []].join(" "),
537
- disabled: v.disabled,
538
- "data-value": v.value
634
+ value: h.value,
635
+ "text-value": [h.label, ...h.keywords ?? []].join(" "),
636
+ disabled: h.disabled,
637
+ "data-value": h.value
539
638
  }, {
540
639
  default: d(() => [
541
- f("span", null, p(v.label), 1),
542
- v.shortcut ? (o(), u("span", Ra, p(v.shortcut), 1)) : g("", !0)
640
+ f("span", null, p(h.label), 1),
641
+ h.shortcut ? (n(), u("span", ll, p(h.shortcut), 1)) : _("", !0)
543
642
  ]),
544
643
  _: 2
545
644
  }, 1032, ["value", "text-value", "disabled", "data-value"]))), 128))
@@ -556,7 +655,7 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
556
655
  _: 1
557
656
  }, 8, ["model-value"]));
558
657
  }
559
- }), La = { class: "nb-command-dialog__header" }, Ua = /* @__PURE__ */ _({
658
+ }), nl = { class: "nb-command-dialog__header" }, ol = /* @__PURE__ */ v({
560
659
  __name: "NbCommand",
561
660
  props: {
562
661
  modelValue: { default: "" },
@@ -569,9 +668,9 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
569
668
  defaultOpen: { type: Boolean, default: !1 }
570
669
  },
571
670
  emits: ["update:modelValue", "update:open", "select"],
572
- setup(e, { emit: n }) {
573
- const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
574
- w(() => t.open, (r) => {
671
+ setup(e, { emit: o }) {
672
+ const t = e, s = o, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
673
+ S(() => t.open, (r) => {
575
674
  r !== void 0 && (l.value = r);
576
675
  });
577
676
  function m(r) {
@@ -580,39 +679,39 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
580
679
  function i(r) {
581
680
  s("select", r), t.dialog && m(!1);
582
681
  }
583
- return (r, v) => e.dialog ? (o(), y(a(Y), {
682
+ return (r, h) => e.dialog ? (n(), y(a(Z), {
584
683
  key: 0,
585
684
  open: b.value,
586
685
  "onUpdate:open": m
587
686
  }, {
588
687
  default: d(() => [
589
- c(a(Z), { class: "nb-root nb-overlay-trigger" }, {
688
+ c(a(ee), { class: "nb-root nb-overlay-trigger" }, {
590
689
  default: d(() => [
591
- h(r.$slots, "trigger")
690
+ g(r.$slots, "trigger")
592
691
  ]),
593
692
  _: 3
594
693
  }),
595
- c(a(ee), null, {
694
+ c(a(te), null, {
596
695
  default: d(() => [
597
- c(a(te), { class: "nb-root nb-command-dialog__overlay" }),
598
- c(a(ae), {
696
+ c(a(ae), { class: "nb-root nb-command-dialog__overlay" }),
697
+ c(a(le), {
599
698
  "aria-describedby": void 0,
600
699
  class: "nb-root nb-command-dialog"
601
700
  }, {
602
701
  default: d(() => [
603
- f("header", La, [
604
- c(a(le), { class: "nb-command-dialog__title" }, {
702
+ f("header", nl, [
703
+ c(a(ne), { class: "nb-command-dialog__title" }, {
605
704
  default: d(() => [
606
- k(p(e.label), 1)
705
+ I(p(e.label), 1)
607
706
  ]),
608
707
  _: 1
609
708
  }),
610
- c(a(ne), {
709
+ c(a(oe), {
611
710
  class: "nb-overlay-close",
612
711
  "aria-label": "Close command menu"
613
712
  }, {
614
- default: d(() => [...v[2] || (v[2] = [
615
- k("×", -1)
713
+ default: d(() => [...h[2] || (h[2] = [
714
+ I("×", -1)
616
715
  ])]),
617
716
  _: 1
618
717
  })
@@ -623,7 +722,7 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
623
722
  label: e.label,
624
723
  placeholder: e.placeholder,
625
724
  "empty-text": e.emptyText,
626
- "onUpdate:modelValue": v[0] || (v[0] = ($) => s("update:modelValue", $)),
725
+ "onUpdate:modelValue": h[0] || (h[0] = ($) => s("update:modelValue", $)),
627
726
  onSelect: i
628
727
  }, null, 8, ["model-value", "options", "label", "placeholder", "empty-text"])
629
728
  ]),
@@ -634,7 +733,7 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
634
733
  })
635
734
  ]),
636
735
  _: 3
637
- }, 8, ["open"])) : (o(), y(F, {
736
+ }, 8, ["open"])) : (n(), y(F, {
638
737
  key: 1,
639
738
  class: "nb-root",
640
739
  "model-value": e.modelValue,
@@ -642,44 +741,44 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
642
741
  label: e.label,
643
742
  placeholder: e.placeholder,
644
743
  "empty-text": e.emptyText,
645
- "onUpdate:modelValue": v[1] || (v[1] = ($) => s("update:modelValue", $)),
744
+ "onUpdate:modelValue": h[1] || (h[1] = ($) => s("update:modelValue", $)),
646
745
  onSelect: i
647
746
  }, null, 8, ["model-value", "options", "label", "placeholder", "empty-text"]));
648
747
  }
649
- }), Ga = /* @__PURE__ */ _({
748
+ }), sl = /* @__PURE__ */ v({
650
749
  __name: "NbContextMenu",
651
750
  props: {
652
751
  open: { type: Boolean, default: void 0 },
653
752
  defaultOpen: { type: Boolean, default: !1 }
654
753
  },
655
754
  emits: ["update:open"],
656
- setup(e, { emit: n }) {
657
- const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
658
- w(() => t.open, (i) => {
755
+ setup(e, { emit: o }) {
756
+ const t = e, s = o, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
757
+ S(() => t.open, (i) => {
659
758
  i !== void 0 && (l.value = i);
660
759
  });
661
760
  function m(i) {
662
761
  l.value = i, s("update:open", i);
663
762
  }
664
- return (i, r) => (o(), y(a(Se), {
763
+ return (i, r) => (n(), y(a(De), {
665
764
  open: b.value,
666
765
  "onUpdate:open": m
667
766
  }, {
668
767
  default: d(() => [
669
- c(a(Te), { "as-child": "" }, {
768
+ c(a(Oe), { "as-child": "" }, {
670
769
  default: d(() => [
671
- h(i.$slots, "trigger")
770
+ g(i.$slots, "trigger")
672
771
  ]),
673
772
  _: 3
674
773
  }),
675
- c(a(Me), null, {
774
+ c(a(Pe), null, {
676
775
  default: d(() => [
677
- c(a(Ae), {
776
+ c(a(Re), {
678
777
  class: "nb-root nb-context-menu",
679
778
  "side-offset": 6
680
779
  }, {
681
780
  default: d(() => [
682
- h(i.$slots, "default")
781
+ g(i.$slots, "default")
683
782
  ]),
684
783
  _: 3
685
784
  })
@@ -690,148 +789,148 @@ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkb
690
789
  _: 3
691
790
  }, 8, ["open"]));
692
791
  }
693
- }), qa = /* @__PURE__ */ _({
792
+ }), il = /* @__PURE__ */ v({
694
793
  __name: "NbContextMenuCheckboxItem",
695
794
  props: {
696
795
  modelValue: { type: Boolean, default: !1 },
697
796
  disabled: { type: Boolean, default: !1 }
698
797
  },
699
798
  emits: ["update:modelValue"],
700
- setup(e, { emit: n }) {
701
- const t = n;
702
- return (s, l) => (o(), y(a(De), {
799
+ setup(e, { emit: o }) {
800
+ const t = o;
801
+ return (s, l) => (n(), y(a(qe), {
703
802
  class: "nb-context-menu__item nb-context-menu__item--choice",
704
803
  "model-value": e.modelValue,
705
804
  disabled: e.disabled,
706
805
  "onUpdate:modelValue": l[0] || (l[0] = (b) => t("update:modelValue", b))
707
806
  }, {
708
807
  default: d(() => [
709
- c(a(oe), {
808
+ c(a(se), {
710
809
  class: "nb-context-menu__indicator",
711
810
  "aria-hidden": "true"
712
811
  }, {
713
812
  default: d(() => [...l[1] || (l[1] = [
714
- k("✓", -1)
813
+ I("✓", -1)
715
814
  ])]),
716
815
  _: 1
717
816
  }),
718
- h(s.$slots, "default")
817
+ g(s.$slots, "default")
719
818
  ]),
720
819
  _: 3
721
820
  }, 8, ["model-value", "disabled"]));
722
821
  }
723
- }), Ea = /* @__PURE__ */ _({
822
+ }), dl = /* @__PURE__ */ v({
724
823
  __name: "NbContextMenuItem",
725
824
  props: {
726
825
  disabled: { type: Boolean, default: !1 },
727
826
  destructive: { type: Boolean, default: !1 }
728
827
  },
729
828
  emits: ["select"],
730
- setup(e, { emit: n }) {
731
- const t = n;
732
- return (s, l) => (o(), y(a(Oe), {
733
- class: I(["nb-context-menu__item", { "nb-context-menu__item--destructive": e.destructive }]),
829
+ setup(e, { emit: o }) {
830
+ const t = o;
831
+ return (s, l) => (n(), y(a(Le), {
832
+ class: x(["nb-context-menu__item", { "nb-context-menu__item--destructive": e.destructive }]),
734
833
  disabled: e.disabled,
735
834
  onSelect: l[0] || (l[0] = (b) => t("select", b))
736
835
  }, {
737
836
  default: d(() => [
738
- h(s.$slots, "default")
837
+ g(s.$slots, "default")
739
838
  ]),
740
839
  _: 3
741
840
  }, 8, ["class", "disabled"]));
742
841
  }
743
- }), za = /* @__PURE__ */ _({
842
+ }), rl = /* @__PURE__ */ v({
744
843
  __name: "NbContextMenuLabel",
745
844
  setup(e) {
746
- return (n, t) => (o(), y(a(Pe), { class: "nb-context-menu__label" }, {
845
+ return (o, t) => (n(), y(a(Ue), { class: "nb-context-menu__label" }, {
747
846
  default: d(() => [
748
- h(n.$slots, "default")
847
+ g(o.$slots, "default")
749
848
  ]),
750
849
  _: 3
751
850
  }));
752
851
  }
753
- }), Fa = /* @__PURE__ */ _({
852
+ }), ul = /* @__PURE__ */ v({
754
853
  __name: "NbContextMenuRadioGroup",
755
854
  props: {
756
855
  modelValue: {}
757
856
  },
758
857
  emits: ["update:modelValue"],
759
- setup(e, { emit: n }) {
760
- const t = n;
858
+ setup(e, { emit: o }) {
859
+ const t = o;
761
860
  function s(l) {
762
861
  typeof l == "string" && t("update:modelValue", l);
763
862
  }
764
- return (l, b) => (o(), y(a(Re), {
863
+ return (l, b) => (n(), y(a(Ge), {
765
864
  "model-value": e.modelValue,
766
865
  "onUpdate:modelValue": s
767
866
  }, {
768
867
  default: d(() => [
769
- h(l.$slots, "default")
868
+ g(l.$slots, "default")
770
869
  ]),
771
870
  _: 3
772
871
  }, 8, ["model-value"]));
773
872
  }
774
- }), Ha = /* @__PURE__ */ _({
873
+ }), cl = /* @__PURE__ */ v({
775
874
  __name: "NbContextMenuRadioItem",
776
875
  props: {
777
876
  value: {},
778
877
  disabled: { type: Boolean, default: !1 }
779
878
  },
780
879
  setup(e) {
781
- return (n, t) => (o(), y(a(Le), {
880
+ return (o, t) => (n(), y(a(Ee), {
782
881
  class: "nb-context-menu__item nb-context-menu__item--choice",
783
882
  value: e.value,
784
883
  disabled: e.disabled
785
884
  }, {
786
885
  default: d(() => [
787
- c(a(oe), {
886
+ c(a(se), {
788
887
  class: "nb-context-menu__indicator",
789
888
  "aria-hidden": "true"
790
889
  }, {
791
890
  default: d(() => [...t[0] || (t[0] = [
792
- k("●", -1)
891
+ I("●", -1)
793
892
  ])]),
794
893
  _: 1
795
894
  }),
796
- h(n.$slots, "default")
895
+ g(o.$slots, "default")
797
896
  ]),
798
897
  _: 3
799
898
  }, 8, ["value", "disabled"]));
800
899
  }
801
- }), Ka = /* @__PURE__ */ _({
900
+ }), bl = /* @__PURE__ */ v({
802
901
  __name: "NbContextMenuSeparator",
803
902
  setup(e) {
804
- return (n, t) => (o(), y(a(Ue), { class: "nb-context-menu__separator" }));
903
+ return (o, t) => (n(), y(a(ze), { class: "nb-context-menu__separator" }));
805
904
  }
806
- }), ja = (e, n) => {
905
+ }), fl = (e, o) => {
807
906
  const t = e.__vccOpts || e;
808
- for (const [s, l] of n)
907
+ for (const [s, l] of o)
809
908
  t[s] = l;
810
909
  return t;
811
- }, Xa = {}, Ja = {
910
+ }, ml = {}, pl = {
812
911
  class: "nb-context-menu__shortcut",
813
912
  "aria-hidden": "true"
814
913
  };
815
- function Qa(e, n) {
816
- return o(), u("span", Ja, [
817
- h(e.$slots, "default")
914
+ function vl(e, o) {
915
+ return n(), u("span", pl, [
916
+ g(e.$slots, "default")
818
917
  ]);
819
918
  }
820
- const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
919
+ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
821
920
  __name: "NbContextMenuSub",
822
921
  props: {
823
922
  label: {},
824
923
  disabled: { type: Boolean, default: !1 }
825
924
  },
826
925
  setup(e) {
827
- return (n, t) => (o(), y(a(Ge), null, {
926
+ return (o, t) => (n(), y(a(Fe), null, {
828
927
  default: d(() => [
829
- c(a(qe), {
928
+ c(a(He), {
830
929
  class: "nb-context-menu__item",
831
930
  disabled: e.disabled
832
931
  }, {
833
932
  default: d(() => [
834
- k(p(e.label) + " ", 1),
933
+ I(p(e.label) + " ", 1),
835
934
  t[0] || (t[0] = f("span", {
836
935
  class: "nb-context-menu__shortcut",
837
936
  "aria-hidden": "true"
@@ -839,12 +938,12 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
839
938
  ]),
840
939
  _: 1
841
940
  }, 8, ["disabled"]),
842
- c(a(Ee), {
941
+ c(a(Ke), {
843
942
  class: "nb-root nb-context-menu",
844
943
  "side-offset": 6
845
944
  }, {
846
945
  default: d(() => [
847
- h(n.$slots, "default")
946
+ g(o.$slots, "default")
848
947
  ]),
849
948
  _: 3
850
949
  })
@@ -852,7 +951,7 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
852
951
  _: 3
853
952
  }));
854
953
  }
855
- }), Za = { class: "nb-alert__content" }, el = { key: 0 }, tl = /* @__PURE__ */ _({
954
+ }), gl = { class: "nb-alert__content" }, yl = { key: 0 }, $l = /* @__PURE__ */ v({
856
955
  __name: "NbAlert",
857
956
  props: {
858
957
  tone: { default: "info" },
@@ -860,32 +959,32 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
860
959
  dismissible: { type: Boolean, default: !1 }
861
960
  },
862
961
  emits: ["dismiss"],
863
- setup(e, { emit: n }) {
864
- const t = e, s = n, l = V(!1), b = N(() => O(`nb-alert--${t.tone}`));
962
+ setup(e, { emit: o }) {
963
+ const t = e, s = o, l = V(!1), b = N(() => P(`nb-alert--${t.tone}`));
865
964
  function m() {
866
965
  l.value = !0, s("dismiss");
867
966
  }
868
- return (i, r) => l.value ? g("", !0) : (o(), u("div", {
967
+ return (i, r) => l.value ? _("", !0) : (n(), u("div", {
869
968
  key: 0,
870
- class: I(["nb-root nb-alert", b.value]),
969
+ class: x(["nb-root nb-alert", b.value]),
871
970
  role: "alert"
872
971
  }, [
873
- f("div", Za, [
874
- e.title ? (o(), u("strong", el, p(e.title), 1)) : g("", !0),
972
+ f("div", gl, [
973
+ e.title ? (n(), u("strong", yl, p(e.title), 1)) : _("", !0),
875
974
  f("span", null, [
876
- h(i.$slots, "default")
975
+ g(i.$slots, "default")
877
976
  ])
878
977
  ]),
879
- e.dismissible ? (o(), u("button", {
978
+ e.dismissible ? (n(), u("button", {
880
979
  key: 0,
881
980
  class: "nb-alert__close",
882
981
  type: "button",
883
982
  "aria-label": "Dismiss",
884
983
  onClick: m
885
- }, "×")) : g("", !0)
984
+ }, "×")) : _("", !0)
886
985
  ], 2));
887
986
  }
888
- }), al = { class: "nb-alert-dialog__actions" }, ll = /* @__PURE__ */ _({
987
+ }), Nl = { class: "nb-alert-dialog__actions" }, Il = /* @__PURE__ */ v({
889
988
  __name: "NbAlertDialog",
890
989
  props: {
891
990
  open: { type: Boolean, default: void 0 },
@@ -897,58 +996,58 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
897
996
  destructive: { type: Boolean, default: !1 }
898
997
  },
899
998
  emits: ["update:open", "action", "cancel"],
900
- setup(e, { emit: n }) {
901
- const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
902
- w(() => t.open, (i) => {
999
+ setup(e, { emit: o }) {
1000
+ const t = e, s = o, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
1001
+ S(() => t.open, (i) => {
903
1002
  i !== void 0 && (l.value = i);
904
1003
  });
905
1004
  function m(i) {
906
1005
  l.value = i, s("update:open", i);
907
1006
  }
908
- return (i, r) => (o(), y(a(ze), {
1007
+ return (i, r) => (n(), y(a(je), {
909
1008
  open: b.value,
910
1009
  "onUpdate:open": m
911
1010
  }, {
912
1011
  default: d(() => [
913
- c(a(Fe), { class: "nb-root nb-overlay-trigger" }, {
1012
+ c(a(Xe), { class: "nb-root nb-overlay-trigger" }, {
914
1013
  default: d(() => [
915
- h(i.$slots, "trigger")
1014
+ g(i.$slots, "trigger")
916
1015
  ]),
917
1016
  _: 3
918
1017
  }),
919
- c(a(He), null, {
1018
+ c(a(Je), null, {
920
1019
  default: d(() => [
921
- c(a(Ke), { class: "nb-root nb-alert-dialog__overlay" }),
922
- c(a(je), { class: "nb-root nb-alert-dialog" }, {
1020
+ c(a(Qe), { class: "nb-root nb-alert-dialog__overlay" }),
1021
+ c(a(We), { class: "nb-root nb-alert-dialog" }, {
923
1022
  default: d(() => [
924
- c(a(Xe), { class: "nb-alert-dialog__title" }, {
1023
+ c(a(Ye), { class: "nb-alert-dialog__title" }, {
925
1024
  default: d(() => [
926
- k(p(e.title), 1)
1025
+ I(p(e.title), 1)
927
1026
  ]),
928
1027
  _: 1
929
1028
  }),
930
- c(a(Je), { class: "nb-alert-dialog__description" }, {
1029
+ c(a(Ze), { class: "nb-alert-dialog__description" }, {
931
1030
  default: d(() => [
932
- k(p(e.description), 1)
1031
+ I(p(e.description), 1)
933
1032
  ]),
934
1033
  _: 1
935
1034
  }),
936
- f("div", al, [
937
- c(a(Qe), {
1035
+ f("div", Nl, [
1036
+ c(a(et), {
938
1037
  class: "nb-alert-dialog__button nb-alert-dialog__button--cancel",
939
- onClick: r[0] || (r[0] = (v) => s("cancel"))
1038
+ onClick: r[0] || (r[0] = (h) => s("cancel"))
940
1039
  }, {
941
1040
  default: d(() => [
942
- k(p(e.cancelLabel), 1)
1041
+ I(p(e.cancelLabel), 1)
943
1042
  ]),
944
1043
  _: 1
945
1044
  }),
946
- c(a(We), {
947
- class: I(["nb-alert-dialog__button", { "nb-alert-dialog__button--destructive": e.destructive }]),
948
- onClick: r[1] || (r[1] = (v) => s("action"))
1045
+ c(a(tt), {
1046
+ class: x(["nb-alert-dialog__button", { "nb-alert-dialog__button--destructive": e.destructive }]),
1047
+ onClick: r[1] || (r[1] = (h) => s("action"))
949
1048
  }, {
950
1049
  default: d(() => [
951
- k(p(e.actionLabel), 1)
1050
+ I(p(e.actionLabel), 1)
952
1051
  ]),
953
1052
  _: 1
954
1053
  }, 8, ["class"])
@@ -963,10 +1062,10 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
963
1062
  _: 3
964
1063
  }, 8, ["open"]));
965
1064
  }
966
- }), nl = { class: "nb-dialog__header" }, ol = { class: "nb-dialog__body" }, sl = {
1065
+ }), kl = { class: "nb-dialog__header" }, xl = { class: "nb-dialog__body" }, Vl = {
967
1066
  key: 0,
968
1067
  class: "nb-dialog__footer"
969
- }, il = /* @__PURE__ */ _({
1068
+ }, Bl = /* @__PURE__ */ v({
970
1069
  inheritAttrs: !1,
971
1070
  __name: "NbDialog",
972
1071
  props: {
@@ -975,41 +1074,41 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
975
1074
  closeOnBackdrop: { type: Boolean, default: !0 }
976
1075
  },
977
1076
  emits: ["update:open", "close"],
978
- setup(e, { emit: n }) {
979
- const t = e, s = n, b = `${M("dialog")}-title`, m = V(null), i = V(null);
1077
+ setup(e, { emit: o }) {
1078
+ const t = e, s = o, b = `${A("dialog")}-title`, m = V(null), i = V(null);
980
1079
  function r() {
981
1080
  s("update:open", !1), s("close");
982
1081
  }
983
- function v() {
1082
+ function h() {
984
1083
  return Array.from(m.value?.querySelectorAll(
985
1084
  'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
986
1085
  ) ?? []);
987
1086
  }
988
- function $(C) {
989
- if (C.key === "Escape") {
990
- C.preventDefault(), r();
1087
+ function $(B) {
1088
+ if (B.key === "Escape") {
1089
+ B.preventDefault(), r();
991
1090
  return;
992
1091
  }
993
- if (C.key !== "Tab") return;
994
- const A = v();
995
- if (!A.length) return;
996
- const R = A[0], q = A[A.length - 1];
997
- C.shiftKey && document.activeElement === R ? (C.preventDefault(), q.focus()) : !C.shiftKey && document.activeElement === q && (C.preventDefault(), R.focus());
1092
+ if (B.key !== "Tab") return;
1093
+ const D = h();
1094
+ if (!D.length) return;
1095
+ const R = D[0], G = D[D.length - 1];
1096
+ B.shiftKey && document.activeElement === R ? (B.preventDefault(), G.focus()) : !B.shiftKey && document.activeElement === G && (B.preventDefault(), R.focus());
998
1097
  }
999
- function P() {
1000
- i.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, document.addEventListener("keydown", $), re(() => (v()[0] ?? m.value)?.focus());
1098
+ function O() {
1099
+ i.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, document.addEventListener("keydown", $), ue(() => (h()[0] ?? m.value)?.focus());
1001
1100
  }
1002
- function G() {
1101
+ function U() {
1003
1102
  document.removeEventListener("keydown", $), i.value?.focus(), i.value = null;
1004
1103
  }
1005
- return w(() => t.open, (C) => {
1006
- C ? P() : G();
1007
- }, { immediate: !0 }), ie(G), (C, A) => e.open ? (o(), u("div", {
1104
+ return S(() => t.open, (B) => {
1105
+ B ? O() : U();
1106
+ }, { immediate: !0 }), H(U), (B, D) => e.open ? (n(), u("div", {
1008
1107
  key: 0,
1009
1108
  class: "nb-root nb-dialog-layer",
1010
- onMousedown: A[0] || (A[0] = de((R) => e.closeOnBackdrop && r(), ["self"]))
1109
+ onMousedown: D[0] || (D[0] = re((R) => e.closeOnBackdrop && r(), ["self"]))
1011
1110
  }, [
1012
- f("section", x(C.$attrs, {
1111
+ f("section", k(B.$attrs, {
1013
1112
  ref_key: "dialogRef",
1014
1113
  ref: m,
1015
1114
  class: "nb-dialog",
@@ -1018,7 +1117,7 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1018
1117
  "aria-labelledby": b,
1019
1118
  tabindex: "-1"
1020
1119
  }), [
1021
- f("header", nl, [
1120
+ f("header", kl, [
1022
1121
  f("h2", { id: b }, p(e.title), 1),
1023
1122
  f("button", {
1024
1123
  class: "nb-dialog__close",
@@ -1027,16 +1126,16 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1027
1126
  onClick: r
1028
1127
  }, "×")
1029
1128
  ]),
1030
- f("div", ol, [
1031
- h(C.$slots, "default")
1129
+ f("div", xl, [
1130
+ g(B.$slots, "default")
1032
1131
  ]),
1033
- C.$slots.footer ? (o(), u("footer", sl, [
1034
- h(C.$slots, "footer")
1035
- ])) : g("", !0)
1132
+ B.$slots.footer ? (n(), u("footer", Vl, [
1133
+ g(B.$slots, "footer")
1134
+ ])) : _("", !0)
1036
1135
  ], 16)
1037
- ], 32)) : g("", !0);
1136
+ ], 32)) : _("", !0);
1038
1137
  }
1039
- }), dl = /* @__PURE__ */ _({
1138
+ }), Cl = /* @__PURE__ */ v({
1040
1139
  __name: "NbDropdownMenu",
1041
1140
  props: {
1042
1141
  open: { type: Boolean, default: void 0 },
@@ -1046,27 +1145,27 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1046
1145
  disabled: { type: Boolean, default: !1 }
1047
1146
  },
1048
1147
  emits: ["update:open"],
1049
- setup(e, { emit: n }) {
1050
- const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
1051
- w(() => t.open, (i) => {
1148
+ setup(e, { emit: o }) {
1149
+ const t = e, s = o, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
1150
+ S(() => t.open, (i) => {
1052
1151
  i !== void 0 && (l.value = i);
1053
1152
  });
1054
1153
  function m(i) {
1055
1154
  l.value = i, s("update:open", i);
1056
1155
  }
1057
- return (i, r) => (o(), y(a(Ye), {
1156
+ return (i, r) => (n(), y(a(at), {
1058
1157
  open: b.value,
1059
1158
  "default-open": e.defaultOpen,
1060
1159
  "onUpdate:open": m
1061
1160
  }, {
1062
1161
  default: d(() => [
1063
- c(a(Ze), {
1162
+ c(a(lt), {
1064
1163
  class: "nb-root nb-overlay-trigger",
1065
1164
  "aria-label": e.label,
1066
1165
  disabled: e.disabled
1067
1166
  }, {
1068
1167
  default: d(() => [
1069
- h(i.$slots, "trigger"),
1168
+ g(i.$slots, "trigger"),
1070
1169
  r[0] || (r[0] = f("svg", {
1071
1170
  class: "nb-overlay-trigger__icon",
1072
1171
  viewBox: "0 0 16 16",
@@ -1078,15 +1177,15 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1078
1177
  ]),
1079
1178
  _: 3
1080
1179
  }, 8, ["aria-label", "disabled"]),
1081
- c(a(et), null, {
1180
+ c(a(nt), null, {
1082
1181
  default: d(() => [
1083
- c(a(tt), {
1182
+ c(a(ot), {
1084
1183
  class: "nb-root nb-dropdown-menu",
1085
1184
  align: e.align,
1086
1185
  "side-offset": 8
1087
1186
  }, {
1088
1187
  default: d(() => [
1089
- h(i.$slots, "default")
1188
+ g(i.$slots, "default")
1090
1189
  ]),
1091
1190
  _: 3
1092
1191
  }, 8, ["align"])
@@ -1097,65 +1196,65 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1097
1196
  _: 3
1098
1197
  }, 8, ["open", "default-open"]));
1099
1198
  }
1100
- }), rl = /* @__PURE__ */ _({
1199
+ }), Tl = /* @__PURE__ */ v({
1101
1200
  __name: "NbDropdownMenuItem",
1102
1201
  props: {
1103
1202
  disabled: { type: Boolean, default: !1 },
1104
1203
  destructive: { type: Boolean, default: !1 }
1105
1204
  },
1106
1205
  emits: ["select"],
1107
- setup(e, { emit: n }) {
1108
- const t = n;
1109
- return (s, l) => (o(), y(a(at), {
1110
- class: I(["nb-dropdown-menu__item", { "nb-dropdown-menu__item--destructive": e.destructive }]),
1206
+ setup(e, { emit: o }) {
1207
+ const t = o;
1208
+ return (s, l) => (n(), y(a(st), {
1209
+ class: x(["nb-dropdown-menu__item", { "nb-dropdown-menu__item--destructive": e.destructive }]),
1111
1210
  disabled: e.disabled,
1112
1211
  onSelect: l[0] || (l[0] = (b) => t("select", b))
1113
1212
  }, {
1114
1213
  default: d(() => [
1115
- h(s.$slots, "default")
1214
+ g(s.$slots, "default")
1116
1215
  ]),
1117
1216
  _: 3
1118
1217
  }, 8, ["class", "disabled"]));
1119
1218
  }
1120
- }), ul = /* @__PURE__ */ _({
1219
+ }), wl = /* @__PURE__ */ v({
1121
1220
  __name: "NbDropdownMenuSeparator",
1122
1221
  setup(e) {
1123
- return (n, t) => (o(), y(a(lt), { class: "nb-dropdown-menu__separator" }));
1222
+ return (o, t) => (n(), y(a(it), { class: "nb-dropdown-menu__separator" }));
1124
1223
  }
1125
- }), cl = ["aria-labelledby"], bl = {
1224
+ }), Sl = ["aria-labelledby"], Ml = {
1126
1225
  key: 0,
1127
1226
  class: "nb-empty-state__icon",
1128
1227
  "aria-hidden": "true"
1129
- }, fl = ["id"], ml = { key: 1 }, pl = {
1228
+ }, Al = ["id"], Dl = { key: 1 }, Ol = {
1130
1229
  key: 2,
1131
1230
  class: "nb-empty-state__action"
1132
- }, _l = /* @__PURE__ */ _({
1231
+ }, Pl = /* @__PURE__ */ v({
1133
1232
  __name: "NbEmptyState",
1134
1233
  props: {
1135
1234
  title: {},
1136
1235
  description: {}
1137
1236
  },
1138
1237
  setup(e) {
1139
- const n = M("empty-state-title");
1140
- return (t, s) => (o(), u("section", {
1238
+ const o = A("empty-state-title");
1239
+ return (t, s) => (n(), u("section", {
1141
1240
  class: "nb-root nb-empty-state",
1142
1241
  role: "region",
1143
- "aria-labelledby": a(n)
1242
+ "aria-labelledby": a(o)
1144
1243
  }, [
1145
- t.$slots.icon ? (o(), u("div", bl, [
1146
- h(t.$slots, "icon")
1147
- ])) : g("", !0),
1148
- f("h2", { id: a(n) }, p(e.title), 9, fl),
1149
- e.description ? (o(), u("p", ml, p(e.description), 1)) : g("", !0),
1150
- t.$slots.default ? (o(), u("div", pl, [
1151
- h(t.$slots, "default")
1152
- ])) : g("", !0)
1153
- ], 8, cl));
1154
- }
1155
- }), vl = ["disabled", "aria-describedby"], hl = {
1244
+ t.$slots.icon ? (n(), u("div", Ml, [
1245
+ g(t.$slots, "icon")
1246
+ ])) : _("", !0),
1247
+ f("h2", { id: a(o) }, p(e.title), 9, Al),
1248
+ e.description ? (n(), u("p", Dl, p(e.description), 1)) : _("", !0),
1249
+ t.$slots.default ? (n(), u("div", Ol, [
1250
+ g(t.$slots, "default")
1251
+ ])) : _("", !0)
1252
+ ], 8, Sl));
1253
+ }
1254
+ }), Rl = ["disabled", "aria-describedby"], ql = {
1156
1255
  key: 0,
1157
1256
  class: "nb-fieldset__legend"
1158
- }, gl = { class: "nb-fieldset__content" }, yl = /* @__PURE__ */ _({
1257
+ }, Ll = { class: "nb-fieldset__content" }, Ul = /* @__PURE__ */ v({
1159
1258
  __name: "NbFieldset",
1160
1259
  props: {
1161
1260
  legend: {},
@@ -1163,24 +1262,24 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1163
1262
  disabled: { type: Boolean, default: !1 }
1164
1263
  },
1165
1264
  setup(e) {
1166
- const n = `${M("fieldset")}-description`;
1167
- return (t, s) => (o(), u("fieldset", {
1265
+ const o = `${A("fieldset")}-description`;
1266
+ return (t, s) => (n(), u("fieldset", {
1168
1267
  class: "nb-root nb-fieldset",
1169
1268
  disabled: e.disabled,
1170
- "aria-describedby": e.description ? n : void 0
1269
+ "aria-describedby": e.description ? o : void 0
1171
1270
  }, [
1172
- e.legend ? (o(), u("legend", hl, p(e.legend), 1)) : g("", !0),
1173
- e.description ? (o(), u("p", {
1271
+ e.legend ? (n(), u("legend", ql, p(e.legend), 1)) : _("", !0),
1272
+ e.description ? (n(), u("p", {
1174
1273
  key: 1,
1175
- id: n,
1274
+ id: o,
1176
1275
  class: "nb-fieldset__description"
1177
- }, p(e.description), 1)) : g("", !0),
1178
- f("div", gl, [
1179
- h(t.$slots, "default")
1276
+ }, p(e.description), 1)) : _("", !0),
1277
+ f("div", Ll, [
1278
+ g(t.$slots, "default")
1180
1279
  ])
1181
- ], 8, vl));
1280
+ ], 8, Rl));
1182
1281
  }
1183
- }), $l = { class: "nb-root nb-field" }, Nl = ["for"], kl = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], xl = ["id"], Il = ["id"], Cl = /* @__PURE__ */ _({
1282
+ }), Gl = { class: "nb-root nb-field" }, El = ["for"], zl = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], Fl = ["id"], Hl = ["id"], Kl = /* @__PURE__ */ v({
1184
1283
  inheritAttrs: !1,
1185
1284
  __name: "NbInput",
1186
1285
  props: {
@@ -1192,15 +1291,15 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1192
1291
  id: {}
1193
1292
  },
1194
1293
  emits: ["update:modelValue"],
1195
- setup(e, { emit: n }) {
1196
- const t = e, s = n, l = S("input", t.id), b = N(() => D(t.hint, t.error, l.hintId, l.errorId));
1197
- return (m, i) => (o(), u("div", $l, [
1198
- e.label ? (o(), u("label", {
1294
+ setup(e, { emit: o }) {
1295
+ const t = e, s = o, l = T("input", t.id), b = N(() => M(t.hint, t.error, l.hintId, l.errorId));
1296
+ return (m, i) => (n(), u("div", Gl, [
1297
+ e.label ? (n(), u("label", {
1199
1298
  key: 0,
1200
1299
  class: "nb-field__label",
1201
1300
  for: a(l).inputId
1202
- }, p(e.label), 9, Nl)) : g("", !0),
1203
- f("input", x(m.$attrs, {
1301
+ }, p(e.label), 9, El)) : _("", !0),
1302
+ f("input", k(m.$attrs, {
1204
1303
  id: a(l).inputId,
1205
1304
  class: "nb-field__control",
1206
1305
  value: e.modelValue,
@@ -1208,42 +1307,42 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1208
1307
  "aria-invalid": e.error ? "true" : void 0,
1209
1308
  "aria-describedby": b.value,
1210
1309
  onInput: i[0] || (i[0] = (r) => s("update:modelValue", r.target.value))
1211
- }), null, 16, kl),
1212
- e.hint ? (o(), u("span", {
1310
+ }), null, 16, zl),
1311
+ e.hint ? (n(), u("span", {
1213
1312
  key: 1,
1214
1313
  id: a(l).hintId,
1215
1314
  class: "nb-field__hint"
1216
- }, p(e.hint), 9, xl)) : g("", !0),
1217
- e.error ? (o(), u("span", {
1315
+ }, p(e.hint), 9, Fl)) : _("", !0),
1316
+ e.error ? (n(), u("span", {
1218
1317
  key: 2,
1219
1318
  id: a(l).errorId,
1220
1319
  class: "nb-field__error"
1221
- }, p(e.error), 9, Il)) : g("", !0)
1320
+ }, p(e.error), 9, Hl)) : _("", !0)
1222
1321
  ]));
1223
1322
  }
1224
- }), Vl = { class: "nb-root nb-input-group" }, Bl = {
1323
+ }), jl = { class: "nb-root nb-input-group" }, Xl = {
1225
1324
  key: 0,
1226
1325
  class: "nb-input-group__addon"
1227
- }, wl = { class: "nb-input-group__control" }, Sl = {
1326
+ }, Jl = { class: "nb-input-group__control" }, Ql = {
1228
1327
  key: 1,
1229
1328
  class: "nb-input-group__addon"
1230
- }, Tl = /* @__PURE__ */ _({
1329
+ }, Wl = /* @__PURE__ */ v({
1231
1330
  __name: "NbInputGroup",
1232
1331
  setup(e) {
1233
- const n = ue();
1234
- return (t, s) => (o(), u("div", Vl, [
1235
- a(n).start ? (o(), u("span", Bl, [
1236
- h(t.$slots, "start")
1237
- ])) : g("", !0),
1238
- f("div", wl, [
1239
- h(t.$slots, "default")
1332
+ const o = ce();
1333
+ return (t, s) => (n(), u("div", jl, [
1334
+ a(o).start ? (n(), u("span", Xl, [
1335
+ g(t.$slots, "start")
1336
+ ])) : _("", !0),
1337
+ f("div", Jl, [
1338
+ g(t.$slots, "default")
1240
1339
  ]),
1241
- a(n).end ? (o(), u("span", Sl, [
1242
- h(t.$slots, "end")
1243
- ])) : g("", !0)
1340
+ a(o).end ? (n(), u("span", Ql, [
1341
+ g(t.$slots, "end")
1342
+ ])) : _("", !0)
1244
1343
  ]));
1245
1344
  }
1246
- }), Ml = /* @__PURE__ */ _({
1345
+ }), Yl = /* @__PURE__ */ v({
1247
1346
  __name: "NbHoverCard",
1248
1347
  props: {
1249
1348
  open: { type: Boolean, default: void 0 },
@@ -1254,37 +1353,37 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1254
1353
  side: { default: "bottom" }
1255
1354
  },
1256
1355
  emits: ["update:open"],
1257
- setup(e, { emit: n }) {
1258
- const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
1259
- w(() => t.open, (i) => {
1356
+ setup(e, { emit: o }) {
1357
+ const t = e, s = o, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
1358
+ S(() => t.open, (i) => {
1260
1359
  i !== void 0 && (l.value = i);
1261
1360
  });
1262
1361
  function m(i) {
1263
1362
  l.value = i, s("update:open", i);
1264
1363
  }
1265
- return (i, r) => (o(), y(a(nt), {
1364
+ return (i, r) => (n(), y(a(dt), {
1266
1365
  open: b.value,
1267
1366
  "open-delay": e.openDelay,
1268
1367
  "close-delay": e.closeDelay,
1269
1368
  "onUpdate:open": m
1270
1369
  }, {
1271
1370
  default: d(() => [
1272
- c(a(ot), { "as-child": "" }, {
1371
+ c(a(rt), { "as-child": "" }, {
1273
1372
  default: d(() => [
1274
- h(i.$slots, "trigger")
1373
+ g(i.$slots, "trigger")
1275
1374
  ]),
1276
1375
  _: 3
1277
1376
  }),
1278
- c(a(st), null, {
1377
+ c(a(ut), null, {
1279
1378
  default: d(() => [
1280
- c(a(it), {
1379
+ c(a(ct), {
1281
1380
  class: "nb-root nb-hover-card",
1282
1381
  align: e.align,
1283
1382
  side: e.side,
1284
1383
  "side-offset": 8
1285
1384
  }, {
1286
1385
  default: d(() => [
1287
- h(i.$slots, "default")
1386
+ g(i.$slots, "default")
1288
1387
  ]),
1289
1388
  _: 3
1290
1389
  }, 8, ["align", "side"])
@@ -1295,19 +1394,19 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1295
1394
  _: 3
1296
1395
  }, 8, ["open", "open-delay", "close-delay"]));
1297
1396
  }
1298
- }), Al = /* @__PURE__ */ _({
1397
+ }), Zl = /* @__PURE__ */ v({
1299
1398
  __name: "NbKbd",
1300
1399
  props: {
1301
1400
  size: { default: "md" }
1302
1401
  },
1303
1402
  setup(e) {
1304
- return (n, t) => (o(), u("kbd", {
1305
- class: I(["nb-root nb-kbd", `nb-kbd--${e.size}`])
1403
+ return (o, t) => (n(), u("kbd", {
1404
+ class: x(["nb-root nb-kbd", `nb-kbd--${e.size}`])
1306
1405
  }, [
1307
- h(n.$slots, "default")
1406
+ g(o.$slots, "default")
1308
1407
  ], 2));
1309
1408
  }
1310
- }), Dl = /* @__PURE__ */ _({
1409
+ }), en = /* @__PURE__ */ v({
1311
1410
  inheritAttrs: !1,
1312
1411
  __name: "NbLink",
1313
1412
  props: {
@@ -1315,52 +1414,85 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1315
1414
  tone: { default: "primary" }
1316
1415
  },
1317
1416
  setup(e) {
1318
- const n = e, t = N(() => O(`nb-link--${n.tone}`));
1319
- return (s, l) => (o(), y(ce(e.as), x(s.$attrs, {
1417
+ const o = e, t = N(() => P(`nb-link--${o.tone}`));
1418
+ return (s, l) => (n(), y(be(e.as), k(s.$attrs, {
1320
1419
  class: ["nb-root nb-link", t.value]
1321
1420
  }), {
1322
1421
  default: d(() => [
1323
- h(s.$slots, "default")
1422
+ g(s.$slots, "default")
1324
1423
  ]),
1325
1424
  _: 3
1326
1425
  }, 16, ["class"]));
1327
1426
  }
1328
- }), Ol = /* @__PURE__ */ _({
1427
+ }), tn = /* @__PURE__ */ v({
1329
1428
  __name: "NbMarker",
1330
1429
  props: {
1331
1430
  tone: { default: "primary" }
1332
1431
  },
1333
1432
  setup(e) {
1334
- return (n, t) => (o(), u("mark", {
1335
- class: I(["nb-root nb-marker", `nb-marker--${e.tone}`])
1433
+ return (o, t) => (n(), u("mark", {
1434
+ class: x(["nb-root nb-marker", `nb-marker--${e.tone}`])
1336
1435
  }, [
1337
- h(n.$slots, "default")
1436
+ g(o.$slots, "default")
1338
1437
  ], 2));
1339
1438
  }
1340
- }), Pl = ["href", "target"], Rl = { key: 0 }, Ll = ["href", "target"], Ul = /* @__PURE__ */ _({
1439
+ }), an = { class: "nb-root nb-meter" }, ln = { class: "nb-meter__header" }, nn = ["for"], on = {
1440
+ key: 0,
1441
+ "aria-hidden": "true"
1442
+ }, sn = ["id", "value", "min", "max", "low", "high", "optimum"], dn = /* @__PURE__ */ v({
1443
+ __name: "NbMeter",
1444
+ props: {
1445
+ value: {},
1446
+ min: { default: 0 },
1447
+ max: { default: 100 },
1448
+ label: {},
1449
+ showValue: { type: Boolean, default: !1 },
1450
+ low: {},
1451
+ high: {},
1452
+ optimum: {}
1453
+ },
1454
+ setup(e) {
1455
+ const o = e, t = A("meter"), s = N(() => o.max > o.min ? Math.round(Math.min(100, Math.max(0, (o.value - o.min) / (o.max - o.min) * 100))) : 0);
1456
+ return (l, b) => (n(), u("div", an, [
1457
+ f("div", ln, [
1458
+ f("label", { for: a(t) }, p(e.label), 9, nn),
1459
+ e.showValue ? (n(), u("span", on, p(s.value) + "%", 1)) : _("", !0)
1460
+ ]),
1461
+ f("meter", {
1462
+ id: a(t),
1463
+ value: e.value,
1464
+ min: e.min,
1465
+ max: e.max,
1466
+ low: e.low,
1467
+ high: e.high,
1468
+ optimum: e.optimum
1469
+ }, p(s.value) + "%", 9, sn)
1470
+ ]));
1471
+ }
1472
+ }), rn = ["href", "target"], un = { key: 0 }, cn = ["href", "target"], bn = /* @__PURE__ */ v({
1341
1473
  __name: "NbNavigationMenu",
1342
1474
  props: {
1343
1475
  items: {},
1344
1476
  label: { default: "Main navigation" }
1345
1477
  },
1346
1478
  setup(e) {
1347
- return (n, t) => (o(), y(a(dt), {
1479
+ return (o, t) => (n(), y(a(bt), {
1348
1480
  class: "nb-root nb-navigation-menu",
1349
1481
  "aria-label": e.label
1350
1482
  }, {
1351
1483
  default: d(() => [
1352
- c(a(rt), { class: "nb-navigation-menu__list" }, {
1484
+ c(a(ft), { class: "nb-navigation-menu__list" }, {
1353
1485
  default: d(() => [
1354
- (o(!0), u(B, null, T(e.items, (s, l) => (o(), y(a(ut), {
1486
+ (n(!0), u(C, null, w(e.items, (s, l) => (n(), y(a(mt), {
1355
1487
  key: `${l}-${s.label}`,
1356
1488
  value: `${l}-${s.label}`,
1357
1489
  class: "nb-navigation-menu__item"
1358
1490
  }, {
1359
1491
  default: d(() => [
1360
- s.children?.length ? (o(), u(B, { key: 0 }, [
1361
- c(a(ct), { class: "nb-navigation-menu__trigger" }, {
1492
+ s.children?.length ? (n(), u(C, { key: 0 }, [
1493
+ c(a(pt), { class: "nb-navigation-menu__trigger" }, {
1362
1494
  default: d(() => [
1363
- k(p(s.label) + " ", 1),
1495
+ I(p(s.label) + " ", 1),
1364
1496
  t[0] || (t[0] = f("svg", {
1365
1497
  viewBox: "0 0 16 16",
1366
1498
  "aria-hidden": "true",
@@ -1371,9 +1503,9 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1371
1503
  ]),
1372
1504
  _: 2
1373
1505
  }, 1024),
1374
- c(a(bt), { class: "nb-navigation-menu__content" }, {
1506
+ c(a(vt), { class: "nb-navigation-menu__content" }, {
1375
1507
  default: d(() => [
1376
- (o(!0), u(B, null, T(s.children, (b) => (o(), y(a(E), {
1508
+ (n(!0), u(C, null, w(s.children, (b) => (n(), y(a(E), {
1377
1509
  key: b.label,
1378
1510
  "as-child": "",
1379
1511
  active: b.active
@@ -1385,15 +1517,15 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1385
1517
  target: b.target
1386
1518
  }, [
1387
1519
  f("strong", null, p(b.label), 1),
1388
- b.description ? (o(), u("span", Rl, p(b.description), 1)) : g("", !0)
1389
- ], 8, Pl)
1520
+ b.description ? (n(), u("span", un, p(b.description), 1)) : _("", !0)
1521
+ ], 8, rn)
1390
1522
  ]),
1391
1523
  _: 2
1392
1524
  }, 1032, ["active"]))), 128))
1393
1525
  ]),
1394
1526
  _: 2
1395
1527
  }, 1024)
1396
- ], 64)) : (o(), y(a(E), {
1528
+ ], 64)) : (n(), y(a(E), {
1397
1529
  key: 1,
1398
1530
  "as-child": "",
1399
1531
  active: s.active
@@ -1403,7 +1535,7 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1403
1535
  class: "nb-navigation-menu__link",
1404
1536
  href: s.href,
1405
1537
  target: s.target
1406
- }, p(s.label), 9, Ll)
1538
+ }, p(s.label), 9, cn)
1407
1539
  ]),
1408
1540
  _: 2
1409
1541
  }, 1032, ["active"]))
@@ -1417,7 +1549,7 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1417
1549
  _: 1
1418
1550
  }, 8, ["aria-label"]));
1419
1551
  }
1420
- }), Gl = { class: "nb-root nb-field" }, ql = ["for"], El = ["id"], zl = ["id"], Fl = /* @__PURE__ */ _({
1552
+ }), fn = { class: "nb-root nb-field" }, mn = ["for"], pn = ["id"], vn = ["id"], hn = /* @__PURE__ */ v({
1421
1553
  inheritAttrs: !1,
1422
1554
  __name: "NbNumberInput",
1423
1555
  props: {
@@ -1435,15 +1567,15 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1435
1567
  step: { default: 1 }
1436
1568
  },
1437
1569
  emits: ["update:modelValue"],
1438
- setup(e, { emit: n }) {
1439
- const t = e, s = n, l = S("number-input", t.id), b = N(() => D(t.hint, t.error, l.hintId, l.errorId)), m = N(() => t.label ?? "value");
1440
- return (i, r) => (o(), u("div", Gl, [
1441
- e.label ? (o(), u("label", {
1570
+ setup(e, { emit: o }) {
1571
+ const t = e, s = o, l = T("number-input", t.id), b = N(() => M(t.hint, t.error, l.hintId, l.errorId)), m = N(() => t.label ?? "value");
1572
+ return (i, r) => (n(), u("div", fn, [
1573
+ e.label ? (n(), u("label", {
1442
1574
  key: 0,
1443
1575
  class: "nb-field__label",
1444
1576
  for: a(l).inputId
1445
- }, p(e.label), 9, ql)) : g("", !0),
1446
- c(a(ft), {
1577
+ }, p(e.label), 9, mn)) : _("", !0),
1578
+ c(a(ht), {
1447
1579
  class: "nb-number-input",
1448
1580
  "model-value": e.modelValue,
1449
1581
  min: e.min,
@@ -1453,49 +1585,49 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1453
1585
  readonly: e.readonly,
1454
1586
  required: e.required,
1455
1587
  name: e.name,
1456
- "onUpdate:modelValue": r[0] || (r[0] = (v) => s("update:modelValue", v))
1588
+ "onUpdate:modelValue": r[0] || (r[0] = (h) => s("update:modelValue", h))
1457
1589
  }, {
1458
1590
  default: d(() => [
1459
- c(a(mt), {
1591
+ c(a(_t), {
1460
1592
  class: "nb-number-input__button",
1461
1593
  "aria-label": `Decrease ${m.value}`
1462
1594
  }, {
1463
1595
  default: d(() => [...r[1] || (r[1] = [
1464
- k("−", -1)
1596
+ I("−", -1)
1465
1597
  ])]),
1466
1598
  _: 1
1467
1599
  }, 8, ["aria-label"]),
1468
- c(a(pt), x(i.$attrs, {
1600
+ c(a(gt), k(i.$attrs, {
1469
1601
  id: a(l).inputId,
1470
1602
  class: "nb-number-input__input",
1471
1603
  "aria-invalid": e.error ? "true" : void 0,
1472
1604
  "aria-describedby": b.value
1473
1605
  }), null, 16, ["id", "aria-invalid", "aria-describedby"]),
1474
- c(a(_t), {
1606
+ c(a(yt), {
1475
1607
  class: "nb-number-input__button",
1476
1608
  "aria-label": `Increase ${m.value}`
1477
1609
  }, {
1478
1610
  default: d(() => [...r[2] || (r[2] = [
1479
- k("+", -1)
1611
+ I("+", -1)
1480
1612
  ])]),
1481
1613
  _: 1
1482
1614
  }, 8, ["aria-label"])
1483
1615
  ]),
1484
1616
  _: 1
1485
1617
  }, 8, ["model-value", "min", "max", "step", "disabled", "readonly", "required", "name"]),
1486
- e.hint ? (o(), u("span", {
1618
+ e.hint ? (n(), u("span", {
1487
1619
  key: 1,
1488
1620
  id: a(l).hintId,
1489
1621
  class: "nb-field__hint"
1490
- }, p(e.hint), 9, El)) : g("", !0),
1491
- e.error ? (o(), u("span", {
1622
+ }, p(e.hint), 9, pn)) : _("", !0),
1623
+ e.error ? (n(), u("span", {
1492
1624
  key: 2,
1493
1625
  id: a(l).errorId,
1494
1626
  class: "nb-field__error"
1495
- }, p(e.error), 9, zl)) : g("", !0)
1627
+ }, p(e.error), 9, vn)) : _("", !0)
1496
1628
  ]));
1497
1629
  }
1498
- }), Hl = /* @__PURE__ */ _({
1630
+ }), _n = /* @__PURE__ */ v({
1499
1631
  __name: "NbPagination",
1500
1632
  props: {
1501
1633
  page: {},
@@ -1507,9 +1639,9 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1507
1639
  label: { default: "Pagination" }
1508
1640
  },
1509
1641
  emits: ["update:page"],
1510
- setup(e, { emit: n }) {
1511
- const t = n;
1512
- return (s, l) => (o(), y(a(vt), {
1642
+ setup(e, { emit: o }) {
1643
+ const t = o;
1644
+ return (s, l) => (n(), y(a($t), {
1513
1645
  class: "nb-root nb-pagination",
1514
1646
  page: e.page,
1515
1647
  "default-page": e.defaultPage,
@@ -1522,7 +1654,7 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1522
1654
  "onUpdate:page": l[0] || (l[0] = (b) => t("update:page", b))
1523
1655
  }, {
1524
1656
  default: d(() => [
1525
- c(a(ht), {
1657
+ c(a(Nt), {
1526
1658
  class: "nb-pagination__button",
1527
1659
  "aria-label": "Go to previous page"
1528
1660
  }, {
@@ -1537,26 +1669,26 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1537
1669
  ])]),
1538
1670
  _: 1
1539
1671
  }),
1540
- c(a(gt), { class: "nb-pagination__list" }, {
1672
+ c(a(It), { class: "nb-pagination__list" }, {
1541
1673
  default: d(({ items: b }) => [
1542
- (o(!0), u(B, null, T(b, (m, i) => (o(), u(B, {
1674
+ (n(!0), u(C, null, w(b, (m, i) => (n(), u(C, {
1543
1675
  key: m.type === "page" ? m.value : `ellipsis-${i}`
1544
1676
  }, [
1545
- m.type === "page" ? (o(), y(a(yt), {
1677
+ m.type === "page" ? (n(), y(a(kt), {
1546
1678
  key: 0,
1547
1679
  class: "nb-pagination__button",
1548
1680
  value: m.value
1549
1681
  }, {
1550
1682
  default: d(() => [
1551
- k(p(m.value), 1)
1683
+ I(p(m.value), 1)
1552
1684
  ]),
1553
1685
  _: 2
1554
- }, 1032, ["value"])) : (o(), y(a($t), {
1686
+ }, 1032, ["value"])) : (n(), y(a(xt), {
1555
1687
  key: 1,
1556
1688
  class: "nb-pagination__ellipsis"
1557
1689
  }, {
1558
1690
  default: d(() => [...l[2] || (l[2] = [
1559
- k("…", -1)
1691
+ I("…", -1)
1560
1692
  ])]),
1561
1693
  _: 1
1562
1694
  }))
@@ -1564,7 +1696,7 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1564
1696
  ]),
1565
1697
  _: 1
1566
1698
  }),
1567
- c(a(Nt), {
1699
+ c(a(Vt), {
1568
1700
  class: "nb-pagination__button",
1569
1701
  "aria-label": "Go to next page"
1570
1702
  }, {
@@ -1583,10 +1715,78 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1583
1715
  _: 1
1584
1716
  }, 8, ["page", "default-page", "total", "items-per-page", "sibling-count", "disabled", "aria-label"]));
1585
1717
  }
1586
- }), Kl = {
1718
+ }), gn = { class: "nb-root nb-field" }, yn = ["id"], $n = ["id"], Nn = /* @__PURE__ */ v({
1719
+ inheritAttrs: !1,
1720
+ __name: "NbPinInput",
1721
+ props: {
1722
+ modelValue: { default: () => [] },
1723
+ length: { default: 6 },
1724
+ label: {},
1725
+ hint: {},
1726
+ error: {},
1727
+ name: {},
1728
+ id: {},
1729
+ disabled: { type: Boolean, default: !1 },
1730
+ required: { type: Boolean, default: !1 },
1731
+ mask: { type: Boolean, default: !1 },
1732
+ otp: { type: Boolean, default: !1 }
1733
+ },
1734
+ emits: ["update:modelValue", "complete"],
1735
+ setup(e, { emit: o }) {
1736
+ const t = e, s = o, l = T("pin-input", t.id), b = `${l.inputId}-label`, m = N(() => M(t.hint, t.error, l.hintId, l.errorId));
1737
+ function i(r) {
1738
+ r.inputType === "insertText" && r.data && /\D/.test(r.data) && r.preventDefault();
1739
+ }
1740
+ return (r, h) => (n(), u("div", gn, [
1741
+ e.label ? (n(), u("span", {
1742
+ key: 0,
1743
+ id: b,
1744
+ class: "nb-field__label"
1745
+ }, p(e.label), 1)) : _("", !0),
1746
+ c(a(Bt), k(r.$attrs, {
1747
+ class: "nb-pin-input",
1748
+ role: "group",
1749
+ id: a(l).inputId,
1750
+ "model-value": e.modelValue,
1751
+ name: e.name,
1752
+ type: "number",
1753
+ disabled: e.disabled,
1754
+ mask: e.mask,
1755
+ otp: e.otp,
1756
+ "aria-label": e.label ? void 0 : "PIN input",
1757
+ "aria-labelledby": e.label ? b : void 0,
1758
+ "aria-invalid": e.error ? "true" : void 0,
1759
+ "aria-describedby": m.value,
1760
+ "onUpdate:modelValue": h[0] || (h[0] = ($) => s("update:modelValue", $)),
1761
+ onComplete: h[1] || (h[1] = ($) => s("complete", $))
1762
+ }), {
1763
+ default: d(() => [
1764
+ (n(!0), u(C, null, w(e.length, ($) => (n(), y(a(Ct), {
1765
+ key: $,
1766
+ class: "nb-pin-input__digit",
1767
+ index: $ - 1,
1768
+ required: e.required,
1769
+ onBeforeinput: i
1770
+ }, null, 8, ["index", "required"]))), 128))
1771
+ ]),
1772
+ _: 1
1773
+ }, 16, ["id", "model-value", "name", "disabled", "mask", "otp", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"]),
1774
+ e.hint ? (n(), u("span", {
1775
+ key: 1,
1776
+ id: a(l).hintId,
1777
+ class: "nb-field__hint"
1778
+ }, p(e.hint), 9, yn)) : _("", !0),
1779
+ e.error ? (n(), u("span", {
1780
+ key: 2,
1781
+ id: a(l).errorId,
1782
+ class: "nb-field__error"
1783
+ }, p(e.error), 9, $n)) : _("", !0)
1784
+ ]));
1785
+ }
1786
+ }), In = {
1587
1787
  key: 0,
1588
1788
  class: "nb-popover__header"
1589
- }, jl = ["id"], Xl = { class: "nb-popover__body" }, Jl = /* @__PURE__ */ _({
1789
+ }, kn = ["id"], xn = { class: "nb-popover__body" }, Vn = /* @__PURE__ */ v({
1590
1790
  __name: "NbPopover",
1591
1791
  props: {
1592
1792
  open: { type: Boolean, default: void 0 },
@@ -1597,32 +1797,32 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1597
1797
  disabled: { type: Boolean, default: !1 }
1598
1798
  },
1599
1799
  emits: ["update:open"],
1600
- setup(e, { emit: n }) {
1601
- const t = e, s = n, l = M("popover-title"), b = V(t.open ?? t.defaultOpen), m = N(() => t.open ?? b.value);
1602
- w(() => t.open, (r) => {
1800
+ setup(e, { emit: o }) {
1801
+ const t = e, s = o, l = A("popover-title"), b = V(t.open ?? t.defaultOpen), m = N(() => t.open ?? b.value);
1802
+ S(() => t.open, (r) => {
1603
1803
  r !== void 0 && (b.value = r);
1604
1804
  });
1605
1805
  function i(r) {
1606
1806
  b.value = r, s("update:open", r);
1607
1807
  }
1608
- return (r, v) => (o(), y(a(kt), {
1808
+ return (r, h) => (n(), y(a(Tt), {
1609
1809
  open: m.value,
1610
1810
  "default-open": e.defaultOpen,
1611
1811
  "onUpdate:open": i
1612
1812
  }, {
1613
1813
  default: d(() => [
1614
- c(a(xt), {
1814
+ c(a(wt), {
1615
1815
  class: "nb-root nb-overlay-trigger",
1616
1816
  disabled: e.disabled
1617
1817
  }, {
1618
1818
  default: d(() => [
1619
- h(r.$slots, "trigger")
1819
+ g(r.$slots, "trigger")
1620
1820
  ]),
1621
1821
  _: 3
1622
1822
  }, 8, ["disabled"]),
1623
- c(a(It), null, {
1823
+ c(a(St), null, {
1624
1824
  default: d(() => [
1625
- c(a(Ct), {
1825
+ c(a(Mt), {
1626
1826
  class: "nb-root nb-popover",
1627
1827
  align: e.align,
1628
1828
  side: e.side,
@@ -1630,20 +1830,20 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1630
1830
  "aria-labelledby": e.title ? a(l) : void 0
1631
1831
  }, {
1632
1832
  default: d(() => [
1633
- e.title ? (o(), u("header", Kl, [
1634
- f("h2", { id: a(l) }, p(e.title), 9, jl),
1635
- c(a(Vt), {
1833
+ e.title ? (n(), u("header", In, [
1834
+ f("h2", { id: a(l) }, p(e.title), 9, kn),
1835
+ c(a(At), {
1636
1836
  class: "nb-overlay-close",
1637
1837
  "aria-label": "Close popover"
1638
1838
  }, {
1639
- default: d(() => [...v[0] || (v[0] = [
1640
- k("×", -1)
1839
+ default: d(() => [...h[0] || (h[0] = [
1840
+ I("×", -1)
1641
1841
  ])]),
1642
1842
  _: 1
1643
1843
  })
1644
- ])) : g("", !0),
1645
- f("div", Xl, [
1646
- h(r.$slots, "default")
1844
+ ])) : _("", !0),
1845
+ f("div", xn, [
1846
+ g(r.$slots, "default")
1647
1847
  ])
1648
1848
  ]),
1649
1849
  _: 3
@@ -1655,10 +1855,10 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1655
1855
  _: 3
1656
1856
  }, 8, ["open", "default-open"]));
1657
1857
  }
1658
- }), Ql = { class: "nb-root nb-progress-wrap" }, Wl = {
1858
+ }), Bn = { class: "nb-root nb-progress-wrap" }, Cn = {
1659
1859
  key: 0,
1660
1860
  class: "nb-progress__header"
1661
- }, Yl = /* @__PURE__ */ _({
1861
+ }, Tn = /* @__PURE__ */ v({
1662
1862
  __name: "NbProgress",
1663
1863
  props: {
1664
1864
  value: { default: null },
@@ -1667,35 +1867,35 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1667
1867
  showValue: { type: Boolean, default: !1 }
1668
1868
  },
1669
1869
  setup(e) {
1670
- const n = e, t = N(() => n.value === null ? 0 : Math.min(100, Math.max(0, n.value / n.max * 100)));
1671
- return (s, l) => (o(), u("div", Ql, [
1672
- e.showValue ? (o(), u("div", Wl, [
1870
+ const o = e, t = N(() => o.value === null ? 0 : Math.min(100, Math.max(0, o.value / o.max * 100)));
1871
+ return (s, l) => (n(), u("div", Bn, [
1872
+ e.showValue ? (n(), u("div", Cn, [
1673
1873
  f("span", null, p(e.label), 1),
1674
1874
  f("span", null, p(Math.round(t.value)) + "%", 1)
1675
- ])) : g("", !0),
1676
- c(a(Bt), {
1875
+ ])) : _("", !0),
1876
+ c(a(Dt), {
1677
1877
  class: "nb-progress",
1678
1878
  "model-value": e.value,
1679
1879
  max: e.max,
1680
1880
  "get-value-label": () => e.label
1681
1881
  }, {
1682
1882
  default: d(() => [
1683
- c(a(wt), {
1883
+ c(a(Ot), {
1684
1884
  class: "nb-progress__indicator",
1685
- style: L(e.value === null ? void 0 : { transform: `translateX(-${100 - t.value}%)` })
1885
+ style: q(e.value === null ? void 0 : { transform: `translateX(-${100 - t.value}%)` })
1686
1886
  }, null, 8, ["style"])
1687
1887
  ]),
1688
1888
  _: 1
1689
1889
  }, 8, ["model-value", "max", "get-value-label"])
1690
1890
  ]));
1691
1891
  }
1692
- }), Zl = ["disabled", "aria-describedby"], en = {
1892
+ }), wn = ["disabled", "aria-describedby"], Sn = {
1693
1893
  key: 0,
1694
1894
  class: "nb-radio-group__legend"
1695
- }, tn = { class: "nb-radio-group__options" }, an = ["for"], ln = ["id", "name", "value", "checked", "disabled", "onChange"], nn = { class: "nb-radio__content" }, on = { class: "nb-radio__label" }, sn = {
1895
+ }, Mn = { class: "nb-radio-group__options" }, An = ["for"], Dn = ["id", "name", "value", "checked", "disabled", "onChange"], On = { class: "nb-radio__content" }, Pn = { class: "nb-radio__label" }, Rn = {
1696
1896
  key: 0,
1697
1897
  class: "nb-radio__description"
1698
- }, dn = /* @__PURE__ */ _({
1898
+ }, qn = /* @__PURE__ */ v({
1699
1899
  __name: "NbRadioGroup",
1700
1900
  props: {
1701
1901
  modelValue: { default: "" },
@@ -1706,23 +1906,23 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1706
1906
  options: {}
1707
1907
  },
1708
1908
  emits: ["update:modelValue"],
1709
- setup(e, { emit: n }) {
1710
- const t = e, s = n, l = M("radio-group"), b = t.name ?? l, m = `${l}-hint`;
1711
- return (i, r) => (o(), u("fieldset", {
1909
+ setup(e, { emit: o }) {
1910
+ const t = e, s = o, l = A("radio-group"), b = t.name ?? l, m = `${l}-hint`;
1911
+ return (i, r) => (n(), u("fieldset", {
1712
1912
  class: "nb-root nb-radio-group",
1713
1913
  disabled: e.disabled,
1714
1914
  "aria-describedby": e.hint ? m : void 0
1715
1915
  }, [
1716
- e.label ? (o(), u("legend", en, p(e.label), 1)) : g("", !0),
1717
- e.hint ? (o(), u("p", {
1916
+ e.label ? (n(), u("legend", Sn, p(e.label), 1)) : _("", !0),
1917
+ e.hint ? (n(), u("p", {
1718
1918
  key: 1,
1719
1919
  id: m,
1720
1920
  class: "nb-field__hint nb-radio-group__hint"
1721
- }, p(e.hint), 1)) : g("", !0),
1722
- f("div", tn, [
1723
- (o(!0), u(B, null, T(e.options, (v, $) => (o(), u("label", {
1724
- key: v.value,
1725
- class: I(["nb-radio", { "is-checked": e.modelValue === v.value }]),
1921
+ }, p(e.hint), 1)) : _("", !0),
1922
+ f("div", Mn, [
1923
+ (n(!0), u(C, null, w(e.options, (h, $) => (n(), u("label", {
1924
+ key: h.value,
1925
+ class: x(["nb-radio", { "is-checked": e.modelValue === h.value }]),
1726
1926
  for: `${a(l)}-${$}`
1727
1927
  }, [
1728
1928
  f("input", {
@@ -1730,24 +1930,89 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1730
1930
  class: "nb-radio__input",
1731
1931
  type: "radio",
1732
1932
  name: a(b),
1733
- value: v.value,
1734
- checked: e.modelValue === v.value,
1735
- disabled: e.disabled || v.disabled,
1736
- onChange: (P) => s("update:modelValue", v.value)
1737
- }, null, 40, ln),
1933
+ value: h.value,
1934
+ checked: e.modelValue === h.value,
1935
+ disabled: e.disabled || h.disabled,
1936
+ onChange: (O) => s("update:modelValue", h.value)
1937
+ }, null, 40, Dn),
1738
1938
  r[0] || (r[0] = f("span", {
1739
1939
  class: "nb-radio__mark",
1740
1940
  "aria-hidden": "true"
1741
1941
  }, null, -1)),
1742
- f("span", nn, [
1743
- f("span", on, p(v.label), 1),
1744
- v.description ? (o(), u("span", sn, p(v.description), 1)) : g("", !0)
1942
+ f("span", On, [
1943
+ f("span", Pn, p(h.label), 1),
1944
+ h.description ? (n(), u("span", Rn, p(h.description), 1)) : _("", !0)
1745
1945
  ])
1746
- ], 10, an))), 128))
1946
+ ], 10, An))), 128))
1747
1947
  ])
1748
- ], 8, Zl));
1948
+ ], 8, wn));
1749
1949
  }
1750
- }), rn = /* @__PURE__ */ _({
1950
+ }), Ln = ["id", "disabled", "aria-label", "aria-invalid", "aria-describedby"], Un = {
1951
+ key: 0,
1952
+ class: "nb-field__label"
1953
+ }, Gn = { class: "nb-rating__options" }, En = ["name", "value", "checked", "required", "aria-label"], zn = ["id"], Fn = ["id"], Hn = /* @__PURE__ */ v({
1954
+ inheritAttrs: !1,
1955
+ __name: "NbRating",
1956
+ props: {
1957
+ modelValue: {},
1958
+ length: { default: 5 },
1959
+ label: {},
1960
+ hint: {},
1961
+ error: {},
1962
+ name: {},
1963
+ id: {},
1964
+ disabled: { type: Boolean, default: !1 },
1965
+ required: { type: Boolean, default: !1 }
1966
+ },
1967
+ emits: ["update:modelValue"],
1968
+ setup(e, { emit: o }) {
1969
+ const t = e, s = o, l = T("rating", t.id), b = N(() => M(t.hint, t.error, l.hintId, l.errorId));
1970
+ return (m, i) => (n(), u("fieldset", k(m.$attrs, {
1971
+ id: a(l).inputId,
1972
+ class: "nb-root nb-field nb-rating",
1973
+ disabled: e.disabled,
1974
+ "aria-label": e.label ? void 0 : "Rating",
1975
+ "aria-invalid": e.error ? "true" : void 0,
1976
+ "aria-describedby": b.value
1977
+ }), [
1978
+ e.label ? (n(), u("legend", Un, p(e.label), 1)) : _("", !0),
1979
+ f("div", Gn, [
1980
+ (n(!0), u(C, null, w(e.length, (r) => (n(), u("label", {
1981
+ key: r,
1982
+ class: x(["nb-rating__option", { "is-active": e.modelValue !== void 0 && r <= e.modelValue }])
1983
+ }, [
1984
+ f("input", {
1985
+ class: "nb-rating__input",
1986
+ type: "radio",
1987
+ name: e.name ?? a(l).inputId,
1988
+ value: r,
1989
+ checked: e.modelValue === r,
1990
+ required: e.required,
1991
+ "aria-label": `${r} of ${e.length}`,
1992
+ onChange: i[0] || (i[0] = (h) => s("update:modelValue", Number(h.target.value)))
1993
+ }, null, 40, En),
1994
+ i[1] || (i[1] = f("svg", {
1995
+ viewBox: "0 0 24 24",
1996
+ "aria-hidden": "true",
1997
+ focusable: "false"
1998
+ }, [
1999
+ f("path", { d: "m12 2 2.9 6.1 6.7 1-4.8 4.7 1.1 6.7-5.9-3.1-5.9 3.1 1.1-6.7-4.8-4.7 6.7-1z" })
2000
+ ], -1))
2001
+ ], 2))), 128))
2002
+ ]),
2003
+ e.hint ? (n(), u("span", {
2004
+ key: 1,
2005
+ id: a(l).hintId,
2006
+ class: "nb-field__hint"
2007
+ }, p(e.hint), 9, zn)) : _("", !0),
2008
+ e.error ? (n(), u("span", {
2009
+ key: 2,
2010
+ id: a(l).errorId,
2011
+ class: "nb-field__error"
2012
+ }, p(e.error), 9, Fn)) : _("", !0)
2013
+ ], 16, Ln));
2014
+ }
2015
+ }), Kn = /* @__PURE__ */ v({
1751
2016
  __name: "NbScrollArea",
1752
2017
  props: {
1753
2018
  label: { default: "Scrollable content" },
@@ -1755,27 +2020,27 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1755
2020
  type: { default: "hover" }
1756
2021
  },
1757
2022
  setup(e) {
1758
- return (n, t) => (o(), y(a(St), {
2023
+ return (o, t) => (n(), y(a(Pt), {
1759
2024
  class: "nb-root nb-scroll-area",
1760
2025
  type: e.type,
1761
- style: L({ height: e.height })
2026
+ style: q({ height: e.height })
1762
2027
  }, {
1763
2028
  default: d(() => [
1764
- c(a(Tt), {
2029
+ c(a(Rt), {
1765
2030
  class: "nb-scroll-area__viewport",
1766
2031
  "aria-label": e.label
1767
2032
  }, {
1768
2033
  default: d(() => [
1769
- h(n.$slots, "default")
2034
+ g(o.$slots, "default")
1770
2035
  ]),
1771
2036
  _: 3
1772
2037
  }, 8, ["aria-label"]),
1773
- c(a(Mt), {
2038
+ c(a(qt), {
1774
2039
  class: "nb-scroll-area__scrollbar",
1775
2040
  orientation: "vertical"
1776
2041
  }, {
1777
2042
  default: d(() => [
1778
- c(a(At), { class: "nb-scroll-area__thumb" })
2043
+ c(a(Lt), { class: "nb-scroll-area__thumb" })
1779
2044
  ]),
1780
2045
  _: 1
1781
2046
  })
@@ -1783,10 +2048,10 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1783
2048
  _: 3
1784
2049
  }, 8, ["type", "style"]));
1785
2050
  }
1786
- }), un = { class: "nb-sheet__header" }, cn = { class: "nb-sheet__body" }, bn = {
2051
+ }), jn = { class: "nb-sheet__header" }, Xn = { class: "nb-sheet__body" }, Jn = {
1787
2052
  key: 0,
1788
2053
  class: "nb-sheet__footer"
1789
- }, fn = /* @__PURE__ */ _({
2054
+ }, Qn = /* @__PURE__ */ v({
1790
2055
  __name: "NbSheet",
1791
2056
  props: {
1792
2057
  open: { type: Boolean, default: void 0 },
@@ -1796,66 +2061,66 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1796
2061
  side: { default: "right" }
1797
2062
  },
1798
2063
  emits: ["update:open"],
1799
- setup(e, { emit: n }) {
1800
- const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
1801
- w(() => t.open, (i) => {
2064
+ setup(e, { emit: o }) {
2065
+ const t = e, s = o, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
2066
+ S(() => t.open, (i) => {
1802
2067
  i !== void 0 && (l.value = i);
1803
2068
  });
1804
2069
  function m(i) {
1805
2070
  l.value = i, s("update:open", i);
1806
2071
  }
1807
- return (i, r) => (o(), y(a(Y), {
2072
+ return (i, r) => (n(), y(a(Z), {
1808
2073
  open: b.value,
1809
2074
  "onUpdate:open": m
1810
2075
  }, {
1811
2076
  default: d(() => [
1812
- c(a(Z), { class: "nb-root nb-overlay-trigger" }, {
2077
+ c(a(ee), { class: "nb-root nb-overlay-trigger" }, {
1813
2078
  default: d(() => [
1814
- h(i.$slots, "trigger")
2079
+ g(i.$slots, "trigger")
1815
2080
  ]),
1816
2081
  _: 3
1817
2082
  }),
1818
- c(a(ee), null, {
2083
+ c(a(te), null, {
1819
2084
  default: d(() => [
1820
- c(a(te), { class: "nb-root nb-sheet__overlay" }),
1821
- c(a(ae), x(e.description ? {} : { "aria-describedby": void 0 }, {
2085
+ c(a(ae), { class: "nb-root nb-sheet__overlay" }),
2086
+ c(a(le), k(e.description ? {} : { "aria-describedby": void 0 }, {
1822
2087
  class: ["nb-root nb-sheet", `nb-sheet--${e.side}`]
1823
2088
  }), {
1824
2089
  default: d(() => [
1825
- f("header", un, [
2090
+ f("header", jn, [
1826
2091
  f("div", null, [
1827
- c(a(le), { class: "nb-sheet__title" }, {
2092
+ c(a(ne), { class: "nb-sheet__title" }, {
1828
2093
  default: d(() => [
1829
- k(p(e.title), 1)
2094
+ I(p(e.title), 1)
1830
2095
  ]),
1831
2096
  _: 1
1832
2097
  }),
1833
- e.description ? (o(), y(a(Dt), {
2098
+ e.description ? (n(), y(a(Ut), {
1834
2099
  key: 0,
1835
2100
  class: "nb-sheet__description"
1836
2101
  }, {
1837
2102
  default: d(() => [
1838
- k(p(e.description), 1)
2103
+ I(p(e.description), 1)
1839
2104
  ]),
1840
2105
  _: 1
1841
- })) : g("", !0)
2106
+ })) : _("", !0)
1842
2107
  ]),
1843
- c(a(ne), {
2108
+ c(a(oe), {
1844
2109
  class: "nb-overlay-close",
1845
2110
  "aria-label": "Close sheet"
1846
2111
  }, {
1847
2112
  default: d(() => [...r[0] || (r[0] = [
1848
- k("×", -1)
2113
+ I("×", -1)
1849
2114
  ])]),
1850
2115
  _: 1
1851
2116
  })
1852
2117
  ]),
1853
- f("div", cn, [
1854
- h(i.$slots, "default")
2118
+ f("div", Xn, [
2119
+ g(i.$slots, "default")
1855
2120
  ]),
1856
- i.$slots.footer ? (o(), u("footer", bn, [
1857
- h(i.$slots, "footer")
1858
- ])) : g("", !0)
2121
+ i.$slots.footer ? (n(), u("footer", Jn, [
2122
+ g(i.$slots, "footer")
2123
+ ])) : _("", !0)
1859
2124
  ]),
1860
2125
  _: 3
1861
2126
  }, 16, ["class"])
@@ -1866,7 +2131,7 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1866
2131
  _: 3
1867
2132
  }, 8, ["open"]));
1868
2133
  }
1869
- }), mn = { class: "nb-root nb-field" }, pn = ["for"], _n = ["id"], vn = ["id"], hn = /* @__PURE__ */ _({
2134
+ }), Wn = { class: "nb-root nb-field" }, Yn = ["for"], Zn = ["id"], eo = ["id"], to = /* @__PURE__ */ v({
1870
2135
  inheritAttrs: !1,
1871
2136
  __name: "NbSelect",
1872
2137
  props: {
@@ -1881,18 +2146,18 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1881
2146
  id: {}
1882
2147
  },
1883
2148
  emits: ["update:modelValue"],
1884
- setup(e, { emit: n }) {
1885
- const t = e, s = n, l = S("select", t.id), b = N(() => D(t.hint, t.error, l.hintId, l.errorId));
2149
+ setup(e, { emit: o }) {
2150
+ const t = e, s = o, l = T("select", t.id), b = N(() => M(t.hint, t.error, l.hintId, l.errorId));
1886
2151
  function m(i) {
1887
2152
  typeof i == "string" && s("update:modelValue", i);
1888
2153
  }
1889
- return (i, r) => (o(), u("div", mn, [
1890
- e.label ? (o(), u("label", {
2154
+ return (i, r) => (n(), u("div", Wn, [
2155
+ e.label ? (n(), u("label", {
1891
2156
  key: 0,
1892
2157
  class: "nb-field__label",
1893
2158
  for: a(l).inputId
1894
- }, p(e.label), 9, pn)) : g("", !0),
1895
- c(a(Ot), {
2159
+ }, p(e.label), 9, Yn)) : _("", !0),
2160
+ c(a(Gt), {
1896
2161
  "model-value": e.modelValue,
1897
2162
  disabled: e.disabled,
1898
2163
  required: e.required,
@@ -1900,15 +2165,15 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1900
2165
  "onUpdate:modelValue": m
1901
2166
  }, {
1902
2167
  default: d(() => [
1903
- c(a(Pt), x(i.$attrs, {
2168
+ c(a(Et), k(i.$attrs, {
1904
2169
  id: a(l).inputId,
1905
2170
  class: "nb-select__trigger",
1906
2171
  "aria-invalid": e.error ? "true" : void 0,
1907
2172
  "aria-describedby": b.value
1908
2173
  }), {
1909
2174
  default: d(() => [
1910
- c(a(Rt), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
1911
- c(a(Lt), {
2175
+ c(a(zt), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
2176
+ c(a(Ft), {
1912
2177
  class: "nb-select__icon",
1913
2178
  "aria-hidden": "true"
1914
2179
  }, {
@@ -1925,15 +2190,15 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1925
2190
  ]),
1926
2191
  _: 1
1927
2192
  }, 16, ["id", "aria-invalid", "aria-describedby"]),
1928
- c(a(Ut), null, {
2193
+ c(a(Ht), null, {
1929
2194
  default: d(() => [
1930
- c(a(Gt), {
2195
+ c(a(Kt), {
1931
2196
  class: "nb-root nb-select__content",
1932
2197
  position: "popper",
1933
2198
  "side-offset": 5
1934
2199
  }, {
1935
2200
  default: d(() => [
1936
- c(a(qt), {
2201
+ c(a(jt), {
1937
2202
  class: "nb-select__scroll-button",
1938
2203
  "aria-label": "Scroll up"
1939
2204
  }, {
@@ -1948,13 +2213,13 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1948
2213
  ])]),
1949
2214
  _: 1
1950
2215
  }),
1951
- c(a(Et), { class: "nb-select__viewport" }, {
2216
+ c(a(Xt), { class: "nb-select__viewport" }, {
1952
2217
  default: d(() => [
1953
- h(i.$slots, "default")
2218
+ g(i.$slots, "default")
1954
2219
  ]),
1955
2220
  _: 3
1956
2221
  }),
1957
- c(a(zt), {
2222
+ c(a(Jt), {
1958
2223
  class: "nb-select__scroll-button",
1959
2224
  "aria-label": "Scroll down"
1960
2225
  }, {
@@ -1978,39 +2243,39 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
1978
2243
  ]),
1979
2244
  _: 3
1980
2245
  }, 8, ["model-value", "disabled", "required", "name"]),
1981
- e.hint ? (o(), u("span", {
2246
+ e.hint ? (n(), u("span", {
1982
2247
  key: 1,
1983
2248
  id: a(l).hintId,
1984
2249
  class: "nb-field__hint"
1985
- }, p(e.hint), 9, _n)) : g("", !0),
1986
- e.error ? (o(), u("span", {
2250
+ }, p(e.hint), 9, Zn)) : _("", !0),
2251
+ e.error ? (n(), u("span", {
1987
2252
  key: 2,
1988
2253
  id: a(l).errorId,
1989
2254
  class: "nb-field__error"
1990
- }, p(e.error), 9, vn)) : g("", !0)
2255
+ }, p(e.error), 9, eo)) : _("", !0)
1991
2256
  ]));
1992
2257
  }
1993
- }), gn = /* @__PURE__ */ _({
2258
+ }), ao = /* @__PURE__ */ v({
1994
2259
  __name: "NbSelectItem",
1995
2260
  props: {
1996
2261
  value: {},
1997
2262
  disabled: { type: Boolean, default: !1 }
1998
2263
  },
1999
2264
  setup(e) {
2000
- return (n, t) => (o(), y(a(Ft), {
2265
+ return (o, t) => (n(), y(a(Qt), {
2001
2266
  class: "nb-select__item",
2002
2267
  value: e.value,
2003
2268
  disabled: e.disabled,
2004
2269
  "data-value": e.value
2005
2270
  }, {
2006
2271
  default: d(() => [
2007
- c(a(Ht), null, {
2272
+ c(a(Wt), null, {
2008
2273
  default: d(() => [
2009
- h(n.$slots, "default")
2274
+ g(o.$slots, "default")
2010
2275
  ]),
2011
2276
  _: 3
2012
2277
  }),
2013
- c(a(Kt), {
2278
+ c(a(Yt), {
2014
2279
  class: "nb-select__indicator",
2015
2280
  "aria-hidden": "true"
2016
2281
  }, {
@@ -2028,26 +2293,26 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
2028
2293
  _: 3
2029
2294
  }, 8, ["value", "disabled", "data-value"]));
2030
2295
  }
2031
- }), yn = /* @__PURE__ */ _({
2296
+ }), lo = /* @__PURE__ */ v({
2032
2297
  __name: "NbSeparator",
2033
2298
  props: {
2034
2299
  orientation: { default: "horizontal" },
2035
2300
  decorative: { type: Boolean, default: !0 }
2036
2301
  },
2037
2302
  setup(e) {
2038
- return (n, t) => (o(), y(a(jt), {
2303
+ return (o, t) => (n(), y(a(Zt), {
2039
2304
  class: "nb-root nb-separator",
2040
2305
  orientation: e.orientation,
2041
2306
  decorative: e.decorative
2042
2307
  }, null, 8, ["orientation", "decorative"]));
2043
2308
  }
2044
- }), $n = { class: "nb-root nb-field" }, Nn = {
2309
+ }), no = { class: "nb-root nb-field" }, oo = {
2045
2310
  key: 0,
2046
2311
  class: "nb-slider__header"
2047
- }, kn = {
2312
+ }, so = {
2048
2313
  key: 1,
2049
2314
  class: "nb-slider__value"
2050
- }, xn = ["id"], In = ["id"], Cn = /* @__PURE__ */ _({
2315
+ }, io = ["id"], ro = ["id"], uo = /* @__PURE__ */ v({
2051
2316
  inheritAttrs: !1,
2052
2317
  __name: "NbSlider",
2053
2318
  props: {
@@ -2065,24 +2330,24 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
2065
2330
  showValue: { type: Boolean, default: !0 }
2066
2331
  },
2067
2332
  emits: ["update:modelValue", "change"],
2068
- setup(e, { emit: n }) {
2069
- const t = e, s = n, l = S("slider", t.id), b = `${l.inputId}-label`, m = N(() => D(t.hint, t.error, l.hintId, l.errorId));
2070
- function i(v) {
2071
- v?.[0] !== void 0 && s("update:modelValue", v[0]);
2333
+ setup(e, { emit: o }) {
2334
+ const t = e, s = o, l = T("slider", t.id), b = `${l.inputId}-label`, m = N(() => M(t.hint, t.error, l.hintId, l.errorId));
2335
+ function i(h) {
2336
+ h?.[0] !== void 0 && s("update:modelValue", h[0]);
2072
2337
  }
2073
- function r(v) {
2074
- v[0] !== void 0 && s("change", v[0]);
2338
+ function r(h) {
2339
+ h[0] !== void 0 && s("change", h[0]);
2075
2340
  }
2076
- return (v, $) => (o(), u("div", $n, [
2077
- e.label || e.showValue ? (o(), u("div", Nn, [
2078
- e.label ? (o(), u("span", {
2341
+ return (h, $) => (n(), u("div", no, [
2342
+ e.label || e.showValue ? (n(), u("div", oo, [
2343
+ e.label ? (n(), u("span", {
2079
2344
  key: 0,
2080
2345
  id: b,
2081
2346
  class: "nb-field__label"
2082
- }, p(e.label), 1)) : g("", !0),
2083
- e.showValue ? (o(), u("output", kn, p(e.modelValue), 1)) : g("", !0)
2084
- ])) : g("", !0),
2085
- c(a(Xt), {
2347
+ }, p(e.label), 1)) : _("", !0),
2348
+ e.showValue ? (n(), u("output", so, p(e.modelValue), 1)) : _("", !0)
2349
+ ])) : _("", !0),
2350
+ c(a(ea), {
2086
2351
  class: "nb-slider",
2087
2352
  "model-value": [e.modelValue],
2088
2353
  min: e.min,
@@ -2095,13 +2360,13 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
2095
2360
  onValueCommit: r
2096
2361
  }, {
2097
2362
  default: d(() => [
2098
- c(a(Jt), { class: "nb-slider__track" }, {
2363
+ c(a(ta), { class: "nb-slider__track" }, {
2099
2364
  default: d(() => [
2100
- c(a(Qt), { class: "nb-slider__range" })
2365
+ c(a(aa), { class: "nb-slider__range" })
2101
2366
  ]),
2102
2367
  _: 1
2103
2368
  }),
2104
- c(a(Wt), x(v.$attrs, {
2369
+ c(a(la), k(h.$attrs, {
2105
2370
  id: a(l).inputId,
2106
2371
  class: "nb-slider__thumb",
2107
2372
  "aria-labelledby": e.label ? b : void 0,
@@ -2111,19 +2376,19 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
2111
2376
  ]),
2112
2377
  _: 1
2113
2378
  }, 8, ["model-value", "min", "max", "step", "disabled", "required", "name"]),
2114
- e.hint ? (o(), u("span", {
2379
+ e.hint ? (n(), u("span", {
2115
2380
  key: 1,
2116
2381
  id: a(l).hintId,
2117
2382
  class: "nb-field__hint"
2118
- }, p(e.hint), 9, xn)) : g("", !0),
2119
- e.error ? (o(), u("span", {
2383
+ }, p(e.hint), 9, io)) : _("", !0),
2384
+ e.error ? (n(), u("span", {
2120
2385
  key: 2,
2121
2386
  id: a(l).errorId,
2122
2387
  class: "nb-field__error"
2123
- }, p(e.error), 9, In)) : g("", !0)
2388
+ }, p(e.error), 9, ro)) : _("", !0)
2124
2389
  ]));
2125
2390
  }
2126
- }), Vn = /* @__PURE__ */ _({
2391
+ }), co = /* @__PURE__ */ v({
2127
2392
  __name: "NbSkeleton",
2128
2393
  props: {
2129
2394
  width: { default: "100%" },
@@ -2131,32 +2396,114 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
2131
2396
  rounded: { type: Boolean, default: !1 }
2132
2397
  },
2133
2398
  setup(e) {
2134
- const n = e, t = N(() => ({ width: n.width, height: n.height }));
2135
- return (s, l) => (o(), u("div", {
2136
- class: I(["nb-root nb-skeleton", { "nb-skeleton--rounded": e.rounded }]),
2137
- style: L(t.value),
2399
+ const o = e, t = N(() => ({ width: o.width, height: o.height }));
2400
+ return (s, l) => (n(), u("div", {
2401
+ class: x(["nb-root nb-skeleton", { "nb-skeleton--rounded": e.rounded }]),
2402
+ style: q(t.value),
2138
2403
  "aria-hidden": "true"
2139
2404
  }, null, 6));
2140
2405
  }
2141
- }), Bn = ["aria-label"], wn = /* @__PURE__ */ _({
2406
+ }), bo = ["aria-label"], fo = /* @__PURE__ */ v({
2142
2407
  __name: "NbSpinner",
2143
2408
  props: {
2144
2409
  label: { default: "Loading" },
2145
2410
  size: { default: "md" }
2146
2411
  },
2147
2412
  setup(e) {
2148
- return (n, t) => (o(), u("span", {
2413
+ return (o, t) => (n(), u("span", {
2149
2414
  class: "nb-root nb-spinner-wrap",
2150
2415
  role: "status",
2151
2416
  "aria-label": e.label
2152
2417
  }, [
2153
2418
  f("span", {
2154
- class: I(["nb-spinner", `nb-spinner--${e.size}`]),
2419
+ class: x(["nb-spinner", `nb-spinner--${e.size}`]),
2155
2420
  "aria-hidden": "true"
2156
2421
  }, null, 2)
2157
- ], 8, Bn));
2422
+ ], 8, bo));
2158
2423
  }
2159
- }), Sn = ["for"], Tn = ["id", "checked", "disabled", "aria-checked", "aria-describedby"], Mn = { class: "nb-switch__content" }, An = { class: "nb-switch__label" }, Dn = ["id"], On = /* @__PURE__ */ _({
2424
+ }), mo = /* @__PURE__ */ v({
2425
+ __name: "NbStepper",
2426
+ props: {
2427
+ modelValue: {},
2428
+ defaultValue: { default: 1 },
2429
+ label: { default: "Progress" },
2430
+ orientation: { default: "horizontal" },
2431
+ linear: { type: Boolean, default: !0 }
2432
+ },
2433
+ emits: ["update:modelValue"],
2434
+ setup(e, { emit: o }) {
2435
+ const t = o;
2436
+ function s(l) {
2437
+ l !== void 0 && t("update:modelValue", l);
2438
+ }
2439
+ return (l, b) => (n(), y(a(na), {
2440
+ class: "nb-root nb-stepper",
2441
+ "model-value": e.modelValue,
2442
+ "default-value": e.defaultValue,
2443
+ "aria-label": e.label,
2444
+ orientation: e.orientation,
2445
+ linear: e.linear,
2446
+ "onUpdate:modelValue": s
2447
+ }, {
2448
+ default: d(() => [
2449
+ g(l.$slots, "default")
2450
+ ]),
2451
+ _: 3
2452
+ }, 8, ["model-value", "default-value", "aria-label", "orientation", "linear"]));
2453
+ }
2454
+ }), po = { class: "nb-stepper__copy" }, vo = /* @__PURE__ */ v({
2455
+ __name: "NbStepperItem",
2456
+ props: {
2457
+ step: {},
2458
+ title: {},
2459
+ description: {},
2460
+ disabled: { type: Boolean },
2461
+ completed: { type: Boolean }
2462
+ },
2463
+ setup(e) {
2464
+ return (o, t) => (n(), y(a(oa), {
2465
+ class: "nb-stepper__item",
2466
+ step: e.step,
2467
+ disabled: e.disabled,
2468
+ completed: e.completed
2469
+ }, {
2470
+ default: d(() => [
2471
+ c(a(sa), { class: "nb-stepper__trigger" }, {
2472
+ default: d(() => [
2473
+ c(a(ia), { class: "nb-stepper__indicator" }, {
2474
+ default: d(() => [
2475
+ I(p(e.step), 1)
2476
+ ]),
2477
+ _: 1
2478
+ }),
2479
+ f("span", po, [
2480
+ c(a(da), {
2481
+ as: "span",
2482
+ class: "nb-stepper__title"
2483
+ }, {
2484
+ default: d(() => [
2485
+ I(p(e.title), 1)
2486
+ ]),
2487
+ _: 1
2488
+ }),
2489
+ c(a(ra), {
2490
+ as: "span",
2491
+ class: "nb-stepper__description"
2492
+ }, {
2493
+ default: d(() => [
2494
+ I(p(e.description || `Step ${e.step}`), 1)
2495
+ ]),
2496
+ _: 1
2497
+ })
2498
+ ])
2499
+ ]),
2500
+ _: 1
2501
+ })
2502
+ ]),
2503
+ _: 1
2504
+ }, 8, ["step", "disabled", "completed"]));
2505
+ }
2506
+ }), ho = ["for"], _o = ["id", "checked", "disabled", "aria-checked", "aria-describedby"], go = { class: "nb-switch__content" }, yo = { class: "nb-switch__label" }, $o = ["id"], No = /* @__PURE__ */ v({
2160
2507
  inheritAttrs: !1,
2161
2508
  __name: "NbSwitch",
2162
2509
  props: {
@@ -2167,13 +2514,13 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
2167
2514
  id: {}
2168
2515
  },
2169
2516
  emits: ["update:modelValue"],
2170
- setup(e, { emit: n }) {
2171
- const t = e, s = n, l = S("switch", t.id);
2172
- return (b, m) => (o(), u("label", {
2173
- class: I(["nb-root nb-switch", { "is-disabled": e.disabled }]),
2517
+ setup(e, { emit: o }) {
2518
+ const t = e, s = o, l = T("switch", t.id);
2519
+ return (b, m) => (n(), u("label", {
2520
+ class: x(["nb-root nb-switch", { "is-disabled": e.disabled }]),
2174
2521
  for: a(l).inputId
2175
2522
  }, [
2176
- f("input", x(b.$attrs, {
2523
+ f("input", k(b.$attrs, {
2177
2524
  id: a(l).inputId,
2178
2525
  class: "nb-switch__input",
2179
2526
  type: "checkbox",
@@ -2183,30 +2530,106 @@ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
2183
2530
  "aria-checked": e.modelValue ? "true" : "false",
2184
2531
  "aria-describedby": e.description ? a(l).hintId : void 0,
2185
2532
  onChange: m[0] || (m[0] = (i) => s("update:modelValue", i.target.checked))
2186
- }), null, 16, Tn),
2533
+ }), null, 16, _o),
2187
2534
  m[1] || (m[1] = f("span", {
2188
2535
  class: "nb-switch__track",
2189
2536
  "aria-hidden": "true"
2190
2537
  }, [
2191
2538
  f("span", { class: "nb-switch__thumb" })
2192
2539
  ], -1)),
2193
- f("span", Mn, [
2194
- f("span", An, p(e.label), 1),
2195
- e.description ? (o(), u("span", {
2540
+ f("span", go, [
2541
+ f("span", yo, p(e.label), 1),
2542
+ e.description ? (n(), u("span", {
2196
2543
  key: 0,
2197
2544
  id: a(l).hintId,
2198
2545
  class: "nb-switch__description"
2199
- }, p(e.description), 9, Dn)) : g("", !0)
2546
+ }, p(e.description), 9, $o)) : _("", !0)
2200
2547
  ])
2201
- ], 10, Sn));
2548
+ ], 10, ho));
2202
2549
  }
2203
- }), se = /* @__PURE__ */ Symbol("nb-tabs");
2204
- function U() {
2205
- const e = be(se);
2550
+ }), Io = { class: "nb-root nb-field" }, ko = ["for"], xo = ["id"], Vo = ["id"], Bo = /* @__PURE__ */ v({
2551
+ inheritAttrs: !1,
2552
+ __name: "NbTagsInput",
2553
+ props: {
2554
+ modelValue: { default: () => [] },
2555
+ label: {},
2556
+ hint: {},
2557
+ error: {},
2558
+ placeholder: {},
2559
+ name: {},
2560
+ id: {},
2561
+ max: {},
2562
+ disabled: { type: Boolean, default: !1 },
2563
+ required: { type: Boolean, default: !1 }
2564
+ },
2565
+ emits: ["update:modelValue"],
2566
+ setup(e, { emit: o }) {
2567
+ const t = e, s = o, l = T("tags-input", t.id), b = N(() => M(t.hint, t.error, l.hintId, l.errorId));
2568
+ return (m, i) => (n(), u("div", Io, [
2569
+ e.label ? (n(), u("label", {
2570
+ key: 0,
2571
+ class: "nb-field__label",
2572
+ for: a(l).inputId
2573
+ }, p(e.label), 9, ko)) : _("", !0),
2574
+ c(a(ua), {
2575
+ class: "nb-tags-input",
2576
+ "model-value": e.modelValue,
2577
+ name: e.name ?? (e.required ? a(l).inputId : void 0),
2578
+ id: a(l).inputId,
2579
+ max: e.max,
2580
+ disabled: e.disabled,
2581
+ required: e.required,
2582
+ "onUpdate:modelValue": i[0] || (i[0] = (r) => s("update:modelValue", r))
2583
+ }, {
2584
+ default: d(() => [
2585
+ (n(!0), u(C, null, w(e.modelValue, (r) => (n(), y(a(ca), {
2586
+ key: r,
2587
+ class: "nb-tags-input__tag",
2588
+ value: r
2589
+ }, {
2590
+ default: d(() => [
2591
+ c(a(ba)),
2592
+ c(a(fa), {
2593
+ class: "nb-tags-input__remove",
2594
+ "aria-label": `Remove ${r}`,
2595
+ "aria-labelledby": void 0
2596
+ }, {
2597
+ default: d(() => [...i[1] || (i[1] = [
2598
+ I("×", -1)
2599
+ ])]),
2600
+ _: 1
2601
+ }, 8, ["aria-label"])
2602
+ ]),
2603
+ _: 2
2604
+ }, 1032, ["value"]))), 128)),
2605
+ c(a(ma), k(m.$attrs, {
2606
+ class: "nb-tags-input__input",
2607
+ placeholder: e.placeholder,
2608
+ "aria-invalid": e.error ? "true" : void 0,
2609
+ "aria-describedby": b.value
2610
+ }), null, 16, ["placeholder", "aria-invalid", "aria-describedby"])
2611
+ ]),
2612
+ _: 1
2613
+ }, 8, ["model-value", "name", "id", "max", "disabled", "required"]),
2614
+ e.hint ? (n(), u("span", {
2615
+ key: 1,
2616
+ id: a(l).hintId,
2617
+ class: "nb-field__hint"
2618
+ }, p(e.hint), 9, xo)) : _("", !0),
2619
+ e.error ? (n(), u("span", {
2620
+ key: 2,
2621
+ id: a(l).errorId,
2622
+ class: "nb-field__error"
2623
+ }, p(e.error), 9, Vo)) : _("", !0)
2624
+ ]));
2625
+ }
2626
+ }), de = /* @__PURE__ */ Symbol("nb-tabs");
2627
+ function L() {
2628
+ const e = fe(de);
2206
2629
  if (!e) throw new Error("Tabs components must be used inside NbTabs");
2207
2630
  return e;
2208
2631
  }
2209
- const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
2632
+ const Co = ["data-orientation"], To = /* @__PURE__ */ v({
2210
2633
  __name: "NbTabs",
2211
2634
  props: {
2212
2635
  modelValue: {},
@@ -2214,32 +2637,32 @@ const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
2214
2637
  orientation: { default: "horizontal" }
2215
2638
  },
2216
2639
  emits: ["update:modelValue"],
2217
- setup(e, { emit: n }) {
2218
- const t = e, s = n, l = M("tabs"), b = V(t.defaultValue), m = N(() => t.modelValue ?? b.value), i = N(() => t.orientation), r = ($) => encodeURIComponent($);
2219
- function v($) {
2640
+ setup(e, { emit: o }) {
2641
+ const t = e, s = o, l = A("tabs"), b = V(t.defaultValue), m = N(() => t.modelValue ?? b.value), i = N(() => t.orientation), r = ($) => encodeURIComponent($);
2642
+ function h($) {
2220
2643
  t.modelValue === void 0 && (b.value = $), s("update:modelValue", $);
2221
2644
  }
2222
- return fe(se, {
2645
+ return me(de, {
2223
2646
  activeValue: m,
2224
2647
  orientation: i,
2225
- select: v,
2648
+ select: h,
2226
2649
  triggerId: ($) => `${l}-tab-${r($)}`,
2227
2650
  panelId: ($) => `${l}-panel-${r($)}`
2228
- }), ($, P) => (o(), u("div", {
2229
- class: I(["nb-root nb-tabs", `nb-tabs--${i.value}`]),
2651
+ }), ($, O) => (n(), u("div", {
2652
+ class: x(["nb-root nb-tabs", `nb-tabs--${i.value}`]),
2230
2653
  "data-orientation": i.value
2231
2654
  }, [
2232
- h($.$slots, "default")
2233
- ], 10, Pn));
2655
+ g($.$slots, "default")
2656
+ ], 10, Co));
2234
2657
  }
2235
- }), Ln = ["id", "aria-labelledby", "hidden"], Un = /* @__PURE__ */ _({
2658
+ }), wo = ["id", "aria-labelledby", "hidden"], So = /* @__PURE__ */ v({
2236
2659
  __name: "NbTabsContent",
2237
2660
  props: {
2238
2661
  value: {}
2239
2662
  },
2240
2663
  setup(e) {
2241
- const n = e, t = U(), s = N(() => t.activeValue.value === n.value);
2242
- return (l, b) => me((o(), u("div", {
2664
+ const o = e, t = L(), s = N(() => t.activeValue.value === o.value);
2665
+ return (l, b) => pe((n(), u("div", {
2243
2666
  class: "nb-tabs__content",
2244
2667
  role: "tabpanel",
2245
2668
  id: a(t).panelId(e.value),
@@ -2247,43 +2670,43 @@ const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
2247
2670
  hidden: !s.value,
2248
2671
  tabindex: "0"
2249
2672
  }, [
2250
- h(l.$slots, "default")
2251
- ], 8, Ln)), [
2252
- [pe, s.value]
2673
+ g(l.$slots, "default")
2674
+ ], 8, wo)), [
2675
+ [ve, s.value]
2253
2676
  ]);
2254
2677
  }
2255
- }), Gn = ["aria-orientation"], qn = /* @__PURE__ */ _({
2678
+ }), Mo = ["aria-orientation"], Ao = /* @__PURE__ */ v({
2256
2679
  __name: "NbTabsList",
2257
2680
  setup(e) {
2258
- const { orientation: n } = U();
2681
+ const { orientation: o } = L();
2259
2682
  function t(s) {
2260
- const l = n.value === "vertical" ? "ArrowUp" : "ArrowLeft", b = n.value === "vertical" ? "ArrowDown" : "ArrowRight";
2683
+ const l = o.value === "vertical" ? "ArrowUp" : "ArrowLeft", b = o.value === "vertical" ? "ArrowDown" : "ArrowRight";
2261
2684
  if (![l, b, "Home", "End"].includes(s.key)) return;
2262
- const m = s.currentTarget, i = Array.from(m.querySelectorAll('[role="tab"]:not(:disabled)')), r = s.target.closest('[role="tab"]'), v = r ? i.indexOf(r) : -1;
2263
- if (!i.length || v < 0) return;
2685
+ const m = s.currentTarget, i = Array.from(m.querySelectorAll('[role="tab"]:not(:disabled)')), r = s.target.closest('[role="tab"]'), h = r ? i.indexOf(r) : -1;
2686
+ if (!i.length || h < 0) return;
2264
2687
  s.preventDefault();
2265
- const $ = s.key === "Home" ? 0 : s.key === "End" ? i.length - 1 : (v + (s.key === b ? 1 : -1) + i.length) % i.length;
2688
+ const $ = s.key === "Home" ? 0 : s.key === "End" ? i.length - 1 : (h + (s.key === b ? 1 : -1) + i.length) % i.length;
2266
2689
  i[$]?.focus(), i[$]?.click();
2267
2690
  }
2268
- return (s, l) => (o(), u("div", {
2691
+ return (s, l) => (n(), u("div", {
2269
2692
  class: "nb-tabs__list",
2270
2693
  role: "tablist",
2271
- "aria-orientation": a(n),
2694
+ "aria-orientation": a(o),
2272
2695
  onKeydown: t
2273
2696
  }, [
2274
- h(s.$slots, "default")
2275
- ], 40, Gn));
2697
+ g(s.$slots, "default")
2698
+ ], 40, Mo));
2276
2699
  }
2277
- }), En = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "data-active"], zn = /* @__PURE__ */ _({
2700
+ }), Do = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "data-active"], Oo = /* @__PURE__ */ v({
2278
2701
  __name: "NbTabsTrigger",
2279
2702
  props: {
2280
2703
  value: {},
2281
2704
  disabled: { type: Boolean, default: !1 }
2282
2705
  },
2283
2706
  setup(e) {
2284
- const n = e, t = U(), s = N(() => t.activeValue.value === n.value);
2285
- return (l, b) => (o(), u("button", {
2286
- class: I(["nb-tabs__trigger", { "is-active": s.value }]),
2707
+ const o = e, t = L(), s = N(() => t.activeValue.value === o.value);
2708
+ return (l, b) => (n(), u("button", {
2709
+ class: x(["nb-tabs__trigger", { "is-active": s.value }]),
2287
2710
  id: a(t).triggerId(e.value),
2288
2711
  type: "button",
2289
2712
  role: "tab",
@@ -2294,10 +2717,10 @@ const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
2294
2717
  "data-active": s.value ? "" : void 0,
2295
2718
  onClick: b[0] || (b[0] = (m) => a(t).select(e.value))
2296
2719
  }, [
2297
- h(l.$slots, "default")
2298
- ], 10, En));
2720
+ g(l.$slots, "default")
2721
+ ], 10, Do));
2299
2722
  }
2300
- }), Fn = { class: "nb-root nb-field" }, Hn = ["for"], Kn = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], jn = ["id"], Xn = ["id"], Jn = /* @__PURE__ */ _({
2723
+ }), Po = { class: "nb-root nb-field" }, Ro = ["for"], qo = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], Lo = ["id"], Uo = ["id"], Go = /* @__PURE__ */ v({
2301
2724
  inheritAttrs: !1,
2302
2725
  __name: "NbTextarea",
2303
2726
  props: {
@@ -2309,15 +2732,15 @@ const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
2309
2732
  id: {}
2310
2733
  },
2311
2734
  emits: ["update:modelValue"],
2312
- setup(e, { emit: n }) {
2313
- const t = e, s = n, l = S("textarea", t.id), b = N(() => D(t.hint, t.error, l.hintId, l.errorId));
2314
- return (m, i) => (o(), u("div", Fn, [
2315
- e.label ? (o(), u("label", {
2735
+ setup(e, { emit: o }) {
2736
+ const t = e, s = o, l = T("textarea", t.id), b = N(() => M(t.hint, t.error, l.hintId, l.errorId));
2737
+ return (m, i) => (n(), u("div", Po, [
2738
+ e.label ? (n(), u("label", {
2316
2739
  key: 0,
2317
2740
  class: "nb-field__label",
2318
2741
  for: a(l).inputId
2319
- }, p(e.label), 9, Hn)) : g("", !0),
2320
- f("textarea", x(m.$attrs, {
2742
+ }, p(e.label), 9, Ro)) : _("", !0),
2743
+ f("textarea", k(m.$attrs, {
2321
2744
  id: a(l).inputId,
2322
2745
  class: "nb-field__control nb-field__control--textarea",
2323
2746
  value: e.modelValue,
@@ -2325,34 +2748,34 @@ const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
2325
2748
  "aria-invalid": e.error ? "true" : void 0,
2326
2749
  "aria-describedby": b.value,
2327
2750
  onInput: i[0] || (i[0] = (r) => s("update:modelValue", r.target.value))
2328
- }), null, 16, Kn),
2329
- e.hint ? (o(), u("span", {
2751
+ }), null, 16, qo),
2752
+ e.hint ? (n(), u("span", {
2330
2753
  key: 1,
2331
2754
  id: a(l).hintId,
2332
2755
  class: "nb-field__hint"
2333
- }, p(e.hint), 9, jn)) : g("", !0),
2334
- e.error ? (o(), u("span", {
2756
+ }, p(e.hint), 9, Lo)) : _("", !0),
2757
+ e.error ? (n(), u("span", {
2335
2758
  key: 2,
2336
2759
  id: a(l).errorId,
2337
2760
  class: "nb-field__error"
2338
- }, p(e.error), 9, Xn)) : g("", !0)
2761
+ }, p(e.error), 9, Uo)) : _("", !0)
2339
2762
  ]));
2340
2763
  }
2341
- }), Qn = { class: "nb-root nb-table-wrap" }, Wn = { key: 0 }, Yn = /* @__PURE__ */ _({
2764
+ }), Eo = { class: "nb-root nb-table-wrap" }, zo = { key: 0 }, Fo = /* @__PURE__ */ v({
2342
2765
  inheritAttrs: !1,
2343
2766
  __name: "NbTable",
2344
2767
  props: {
2345
2768
  caption: {}
2346
2769
  },
2347
2770
  setup(e) {
2348
- return (n, t) => (o(), u("div", Qn, [
2349
- f("table", x(n.$attrs, { class: "nb-table" }), [
2350
- e.caption ? (o(), u("caption", Wn, p(e.caption), 1)) : g("", !0),
2351
- h(n.$slots, "default")
2771
+ return (o, t) => (n(), u("div", Eo, [
2772
+ f("table", k(o.$attrs, { class: "nb-table" }), [
2773
+ e.caption ? (n(), u("caption", zo, p(e.caption), 1)) : _("", !0),
2774
+ g(o.$slots, "default")
2352
2775
  ], 16)
2353
2776
  ]));
2354
2777
  }
2355
- }), Zn = { class: "nb-toast__content" }, eo = /* @__PURE__ */ _({
2778
+ }), Ho = { class: "nb-toast__content" }, Ko = /* @__PURE__ */ v({
2356
2779
  __name: "NbToast",
2357
2780
  props: {
2358
2781
  open: { type: Boolean, default: void 0 },
@@ -2363,21 +2786,21 @@ const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
2363
2786
  duration: { default: 5e3 }
2364
2787
  },
2365
2788
  emits: ["update:open"],
2366
- setup(e, { emit: n }) {
2367
- const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
2368
- w(() => t.open, (i) => {
2789
+ setup(e, { emit: o }) {
2790
+ const t = e, s = o, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
2791
+ S(() => t.open, (i) => {
2369
2792
  i !== void 0 && (l.value = i);
2370
2793
  });
2371
2794
  function m(i) {
2372
2795
  l.value = i, s("update:open", i);
2373
2796
  }
2374
- return (i, r) => (o(), y(a(Yt), {
2797
+ return (i, r) => (n(), y(a(pa), {
2375
2798
  label: "Notification",
2376
2799
  duration: e.duration
2377
2800
  }, {
2378
2801
  default: d(() => [
2379
- c(a(Zt), {
2380
- class: I(["nb-root nb-toast", `nb-toast--${e.tone}`]),
2802
+ c(a(va), {
2803
+ class: x(["nb-root nb-toast", `nb-toast--${e.tone}`]),
2381
2804
  open: b.value,
2382
2805
  "default-open": e.defaultOpen,
2383
2806
  type: "foreground",
@@ -2385,42 +2808,81 @@ const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
2385
2808
  "onUpdate:open": m
2386
2809
  }, {
2387
2810
  default: d(() => [
2388
- f("div", Zn, [
2389
- c(a(ea), { class: "nb-toast__title" }, {
2811
+ f("div", Ho, [
2812
+ c(a(ha), { class: "nb-toast__title" }, {
2390
2813
  default: d(() => [
2391
- k(p(e.title), 1)
2814
+ I(p(e.title), 1)
2392
2815
  ]),
2393
2816
  _: 1
2394
2817
  }),
2395
- e.description ? (o(), y(a(ta), {
2818
+ e.description ? (n(), y(a(_a), {
2396
2819
  key: 0,
2397
2820
  class: "nb-toast__description"
2398
2821
  }, {
2399
2822
  default: d(() => [
2400
- k(p(e.description), 1)
2823
+ I(p(e.description), 1)
2401
2824
  ]),
2402
2825
  _: 1
2403
- })) : g("", !0),
2404
- h(i.$slots, "default")
2826
+ })) : _("", !0),
2827
+ g(i.$slots, "default")
2405
2828
  ]),
2406
- c(a(aa), {
2829
+ c(a(ga), {
2407
2830
  class: "nb-overlay-close",
2408
2831
  "aria-label": "Dismiss notification"
2409
2832
  }, {
2410
2833
  default: d(() => [...r[0] || (r[0] = [
2411
- k("×", -1)
2834
+ I("×", -1)
2412
2835
  ])]),
2413
2836
  _: 1
2414
2837
  })
2415
2838
  ]),
2416
2839
  _: 3
2417
2840
  }, 8, ["class", "open", "default-open"]),
2418
- c(a(la), { class: "nb-root nb-toast-viewport" })
2841
+ c(a(ya), { class: "nb-root nb-toast-viewport" })
2419
2842
  ]),
2420
2843
  _: 3
2421
2844
  }, 8, ["duration"]));
2422
2845
  }
2423
- }), to = /* @__PURE__ */ _({
2846
+ }), jo = ["aria-label"], Xo = /* @__PURE__ */ v({
2847
+ __name: "NbTimeline",
2848
+ props: {
2849
+ label: {}
2850
+ },
2851
+ setup(e) {
2852
+ return (o, t) => (n(), u("ol", {
2853
+ class: "nb-root nb-timeline",
2854
+ "aria-label": e.label
2855
+ }, [
2856
+ g(o.$slots, "default")
2857
+ ], 8, jo));
2858
+ }
2859
+ }), Jo = { class: "nb-timeline__item" }, Qo = { class: "nb-timeline__card" }, Wo = { class: "nb-timeline__heading" }, Yo = ["datetime"], Zo = {
2860
+ key: 0,
2861
+ class: "nb-timeline__body"
2862
+ }, es = /* @__PURE__ */ v({
2863
+ __name: "NbTimelineItem",
2864
+ props: {
2865
+ title: {},
2866
+ date: {},
2867
+ datetime: {}
2868
+ },
2869
+ setup(e) {
2870
+ return (o, t) => (n(), u("li", Jo, [
2871
+ f("div", Qo, [
2872
+ f("div", Wo, [
2873
+ f("strong", null, p(e.title), 1),
2874
+ e.date ? (n(), u("time", {
2875
+ key: 0,
2876
+ datetime: e.datetime
2877
+ }, p(e.date), 9, Yo)) : _("", !0)
2878
+ ]),
2879
+ o.$slots.default ? (n(), u("div", Zo, [
2880
+ g(o.$slots, "default")
2881
+ ])) : _("", !0)
2882
+ ])
2883
+ ]));
2884
+ }
2885
+ }), ts = /* @__PURE__ */ v({
2424
2886
  inheritAttrs: !1,
2425
2887
  __name: "NbToggle",
2426
2888
  props: {
@@ -2432,9 +2894,9 @@ const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
2432
2894
  size: { default: "md" }
2433
2895
  },
2434
2896
  emits: ["update:modelValue"],
2435
- setup(e, { emit: n }) {
2436
- const t = e, s = n, l = N(() => O(`nb-toggle--${t.tone}`, `nb-toggle--${t.size}`));
2437
- return (b, m) => (o(), y(a(na), x(b.$attrs, {
2897
+ setup(e, { emit: o }) {
2898
+ const t = e, s = o, l = N(() => P(`nb-toggle--${t.tone}`, `nb-toggle--${t.size}`));
2899
+ return (b, m) => (n(), y(a($a), k(b.$attrs, {
2438
2900
  class: ["nb-root nb-toggle", l.value],
2439
2901
  "model-value": e.modelValue,
2440
2902
  "default-value": e.defaultValue,
@@ -2443,12 +2905,12 @@ const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
2443
2905
  "onUpdate:modelValue": m[0] || (m[0] = (i) => s("update:modelValue", i))
2444
2906
  }), {
2445
2907
  default: d(() => [
2446
- h(b.$slots, "default")
2908
+ g(b.$slots, "default")
2447
2909
  ]),
2448
2910
  _: 3
2449
2911
  }, 16, ["class", "model-value", "default-value", "disabled", "aria-label"]));
2450
2912
  }
2451
- }), ao = { class: "nb-root nb-field" }, lo = ["id"], no = ["id"], oo = /* @__PURE__ */ _({
2913
+ }), as = { class: "nb-root nb-field" }, ls = ["id"], ns = ["id"], os = /* @__PURE__ */ v({
2452
2914
  inheritAttrs: !1,
2453
2915
  __name: "NbToggleGroup",
2454
2916
  props: {
@@ -2464,18 +2926,18 @@ const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
2464
2926
  id: {}
2465
2927
  },
2466
2928
  emits: ["update:modelValue"],
2467
- setup(e, { emit: n }) {
2468
- const t = e, s = n, l = S("toggle-group", t.id), b = `${l.inputId}-label`, m = N(() => D(t.hint, t.error, l.hintId, l.errorId));
2929
+ setup(e, { emit: o }) {
2930
+ const t = e, s = o, l = T("toggle-group", t.id), b = `${l.inputId}-label`, m = N(() => M(t.hint, t.error, l.hintId, l.errorId));
2469
2931
  function i(r) {
2470
- (typeof r == "string" || Array.isArray(r) && r.every((v) => typeof v == "string")) && s("update:modelValue", r);
2932
+ (typeof r == "string" || Array.isArray(r) && r.every((h) => typeof h == "string")) && s("update:modelValue", r);
2471
2933
  }
2472
- return (r, v) => (o(), u("div", ao, [
2473
- e.label ? (o(), u("span", {
2934
+ return (r, h) => (n(), u("div", as, [
2935
+ e.label ? (n(), u("span", {
2474
2936
  key: 0,
2475
2937
  id: b,
2476
2938
  class: "nb-field__label"
2477
- }, p(e.label), 1)) : g("", !0),
2478
- c(a(oa), x(r.$attrs, {
2939
+ }, p(e.label), 1)) : _("", !0),
2940
+ c(a(Na), k(r.$attrs, {
2479
2941
  id: a(l).inputId,
2480
2942
  class: "nb-toggle-group",
2481
2943
  "model-value": e.modelValue,
@@ -2491,23 +2953,23 @@ const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
2491
2953
  "onUpdate:modelValue": i
2492
2954
  }), {
2493
2955
  default: d(() => [
2494
- h(r.$slots, "default")
2956
+ g(r.$slots, "default")
2495
2957
  ]),
2496
2958
  _: 3
2497
2959
  }, 16, ["id", "model-value", "type", "orientation", "disabled", "required", "name", "data-orientation", "aria-labelledby", "aria-invalid", "aria-describedby"]),
2498
- e.hint ? (o(), u("span", {
2960
+ e.hint ? (n(), u("span", {
2499
2961
  key: 1,
2500
2962
  id: a(l).hintId,
2501
2963
  class: "nb-field__hint"
2502
- }, p(e.hint), 9, lo)) : g("", !0),
2503
- e.error ? (o(), u("span", {
2964
+ }, p(e.hint), 9, ls)) : _("", !0),
2965
+ e.error ? (n(), u("span", {
2504
2966
  key: 2,
2505
2967
  id: a(l).errorId,
2506
2968
  class: "nb-field__error"
2507
- }, p(e.error), 9, no)) : g("", !0)
2969
+ }, p(e.error), 9, ns)) : _("", !0)
2508
2970
  ]));
2509
2971
  }
2510
- }), so = /* @__PURE__ */ _({
2972
+ }), ss = /* @__PURE__ */ v({
2511
2973
  inheritAttrs: !1,
2512
2974
  __name: "NbToggleGroupItem",
2513
2975
  props: {
@@ -2515,24 +2977,24 @@ const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
2515
2977
  disabled: { type: Boolean, default: !1 }
2516
2978
  },
2517
2979
  setup(e) {
2518
- return (n, t) => (o(), y(a(sa), x(n.$attrs, {
2980
+ return (o, t) => (n(), y(a(Ia), k(o.$attrs, {
2519
2981
  class: "nb-toggle-group__item",
2520
2982
  value: e.value,
2521
2983
  disabled: e.disabled
2522
2984
  }), {
2523
2985
  default: d(() => [
2524
- h(n.$slots, "default")
2986
+ g(o.$slots, "default")
2525
2987
  ]),
2526
2988
  _: 3
2527
2989
  }, 16, ["value", "disabled"]));
2528
2990
  }
2529
- }), io = ["aria-describedby"], ro = ["id", "hidden"], uo = /* @__PURE__ */ _({
2991
+ }), is = ["aria-describedby"], ds = ["id", "hidden"], rs = /* @__PURE__ */ v({
2530
2992
  __name: "NbTooltip",
2531
2993
  props: {
2532
2994
  content: {}
2533
2995
  },
2534
2996
  setup(e) {
2535
- const n = e, t = V(!1), s = M("tooltip");
2997
+ const o = e, t = V(!1), s = A("tooltip");
2536
2998
  function l() {
2537
2999
  t.value = !0;
2538
3000
  }
@@ -2542,7 +3004,7 @@ const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
2542
3004
  function m(i) {
2543
3005
  i.key === "Escape" && b();
2544
3006
  }
2545
- return (i, r) => (o(), u("span", {
3007
+ return (i, r) => (n(), u("span", {
2546
3008
  class: "nb-root nb-tooltip",
2547
3009
  onMouseenter: l,
2548
3010
  onMouseleave: b
@@ -2555,144 +3017,164 @@ const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
2555
3017
  onBlur: b,
2556
3018
  onKeydown: m
2557
3019
  }, [
2558
- h(i.$slots, "default")
2559
- ], 40, io),
3020
+ g(i.$slots, "default")
3021
+ ], 40, is),
2560
3022
  f("span", {
2561
3023
  id: a(s),
2562
3024
  class: "nb-tooltip__content",
2563
3025
  role: "tooltip",
2564
3026
  hidden: !t.value
2565
3027
  }, [
2566
- h(i.$slots, "content", {}, () => [
2567
- k(p(n.content), 1)
3028
+ g(i.$slots, "content", {}, () => [
3029
+ I(p(o.content), 1)
2568
3030
  ])
2569
- ], 8, ro)
3031
+ ], 8, ds)
2570
3032
  ], 32));
2571
3033
  }
2572
- }), fo = ia({
2573
- NbAccordion: da,
2574
- NbAccordionItem: ua,
2575
- NbAlert: tl,
2576
- NbAlertDialog: ll,
2577
- NbAspectRatio: ca,
2578
- NbAvatar: fa,
2579
- NbBadge: ba,
2580
- NbBreadcrumbs: ha,
2581
- NbButton: $a,
2582
- NbButtonGroup: ka,
2583
- NbCard: Va,
2584
- NbCheckbox: Ta,
2585
- NbCombobox: Pa,
2586
- NbCommand: Ua,
2587
- NbContextMenu: Ga,
2588
- NbContextMenuCheckboxItem: qa,
2589
- NbContextMenuItem: Ea,
2590
- NbContextMenuLabel: za,
2591
- NbContextMenuRadioGroup: Fa,
2592
- NbContextMenuRadioItem: Ha,
2593
- NbContextMenuSeparator: Ka,
2594
- NbContextMenuShortcut: Wa,
2595
- NbContextMenuSub: Ya,
2596
- NbDialog: il,
2597
- NbDropdownMenu: dl,
2598
- NbDropdownMenuItem: rl,
2599
- NbDropdownMenuSeparator: ul,
2600
- NbEmptyState: _l,
2601
- NbFieldset: yl,
2602
- NbHoverCard: Ml,
2603
- NbInput: Cl,
2604
- NbInputGroup: Tl,
2605
- NbKbd: Al,
2606
- NbLink: Dl,
2607
- NbMarker: Ol,
2608
- NbNavigationMenu: Ul,
2609
- NbNumberInput: Fl,
2610
- NbPagination: Hl,
2611
- NbPopover: Jl,
2612
- NbProgress: Yl,
2613
- NbRadioGroup: dn,
2614
- NbScrollArea: rn,
2615
- NbSheet: fn,
2616
- NbSelect: hn,
2617
- NbSelectItem: gn,
2618
- NbSeparator: yn,
2619
- NbSkeleton: Vn,
2620
- NbSlider: Cn,
2621
- NbSpinner: wn,
2622
- NbSwitch: On,
2623
- NbTable: Yn,
2624
- NbTabs: Rn,
2625
- NbTabsContent: Un,
2626
- NbTabsList: qn,
2627
- NbTabsTrigger: zn,
2628
- NbTextarea: Jn,
2629
- NbToast: eo,
2630
- NbToggle: to,
2631
- NbToggleGroup: oo,
2632
- NbToggleGroupItem: so,
2633
- NbTooltip: uo
3034
+ }), bs = ka({
3035
+ NbAccordion: xa,
3036
+ NbAccordionItem: Ba,
3037
+ NbAlert: $l,
3038
+ NbAlertDialog: Il,
3039
+ NbAspectRatio: Ca,
3040
+ NbAvatar: wa,
3041
+ NbBadge: Ta,
3042
+ NbBreadcrumbs: Oa,
3043
+ NbButton: ie,
3044
+ NbButtonGroup: La,
3045
+ NbCard: za,
3046
+ NbCheckbox: ja,
3047
+ NbCollapsible: Ja,
3048
+ NbCopyButton: Wa,
3049
+ NbCombobox: al,
3050
+ NbCommand: ol,
3051
+ NbContextMenu: sl,
3052
+ NbContextMenuCheckboxItem: il,
3053
+ NbContextMenuItem: dl,
3054
+ NbContextMenuLabel: rl,
3055
+ NbContextMenuRadioGroup: ul,
3056
+ NbContextMenuRadioItem: cl,
3057
+ NbContextMenuSeparator: bl,
3058
+ NbContextMenuShortcut: hl,
3059
+ NbContextMenuSub: _l,
3060
+ NbDialog: Bl,
3061
+ NbDropdownMenu: Cl,
3062
+ NbDropdownMenuItem: Tl,
3063
+ NbDropdownMenuSeparator: wl,
3064
+ NbEmptyState: Pl,
3065
+ NbFieldset: Ul,
3066
+ NbHoverCard: Yl,
3067
+ NbInput: Kl,
3068
+ NbInputGroup: Wl,
3069
+ NbKbd: Zl,
3070
+ NbLink: en,
3071
+ NbMarker: tn,
3072
+ NbMeter: dn,
3073
+ NbNavigationMenu: bn,
3074
+ NbNumberInput: hn,
3075
+ NbPagination: _n,
3076
+ NbPinInput: Nn,
3077
+ NbPopover: Vn,
3078
+ NbProgress: Tn,
3079
+ NbRadioGroup: qn,
3080
+ NbRating: Hn,
3081
+ NbScrollArea: Kn,
3082
+ NbSheet: Qn,
3083
+ NbSelect: to,
3084
+ NbSelectItem: ao,
3085
+ NbSeparator: lo,
3086
+ NbSkeleton: co,
3087
+ NbSlider: uo,
3088
+ NbSpinner: fo,
3089
+ NbStepper: mo,
3090
+ NbStepperItem: vo,
3091
+ NbSwitch: No,
3092
+ NbTagsInput: Bo,
3093
+ NbTable: Fo,
3094
+ NbTabs: To,
3095
+ NbTabsContent: So,
3096
+ NbTabsList: Ao,
3097
+ NbTabsTrigger: Oo,
3098
+ NbTextarea: Go,
3099
+ NbTimeline: Xo,
3100
+ NbTimelineItem: es,
3101
+ NbToast: Ko,
3102
+ NbToggle: ts,
3103
+ NbToggleGroup: os,
3104
+ NbToggleGroupItem: ss,
3105
+ NbTooltip: rs
2634
3106
  });
2635
3107
  export {
2636
- da as NbAccordion,
2637
- ua as NbAccordionItem,
2638
- tl as NbAlert,
2639
- ll as NbAlertDialog,
2640
- ca as NbAspectRatio,
2641
- fa as NbAvatar,
2642
- ba as NbBadge,
2643
- ha as NbBreadcrumbs,
2644
- $a as NbButton,
2645
- ka as NbButtonGroup,
2646
- Va as NbCard,
2647
- Ta as NbCheckbox,
2648
- Pa as NbCombobox,
2649
- Ua as NbCommand,
2650
- Ga as NbContextMenu,
2651
- qa as NbContextMenuCheckboxItem,
2652
- Ea as NbContextMenuItem,
2653
- za as NbContextMenuLabel,
2654
- Fa as NbContextMenuRadioGroup,
2655
- Ha as NbContextMenuRadioItem,
2656
- Ka as NbContextMenuSeparator,
2657
- Wa as NbContextMenuShortcut,
2658
- Ya as NbContextMenuSub,
2659
- il as NbDialog,
2660
- dl as NbDropdownMenu,
2661
- rl as NbDropdownMenuItem,
2662
- ul as NbDropdownMenuSeparator,
2663
- _l as NbEmptyState,
2664
- yl as NbFieldset,
2665
- Ml as NbHoverCard,
2666
- Cl as NbInput,
2667
- Tl as NbInputGroup,
2668
- Al as NbKbd,
2669
- Dl as NbLink,
2670
- Ol as NbMarker,
2671
- Ul as NbNavigationMenu,
2672
- Fl as NbNumberInput,
2673
- Hl as NbPagination,
2674
- Jl as NbPopover,
2675
- Yl as NbProgress,
2676
- dn as NbRadioGroup,
2677
- rn as NbScrollArea,
2678
- hn as NbSelect,
2679
- gn as NbSelectItem,
2680
- yn as NbSeparator,
2681
- fn as NbSheet,
2682
- Vn as NbSkeleton,
2683
- Cn as NbSlider,
2684
- wn as NbSpinner,
2685
- On as NbSwitch,
2686
- Yn as NbTable,
2687
- Rn as NbTabs,
2688
- Un as NbTabsContent,
2689
- qn as NbTabsList,
2690
- zn as NbTabsTrigger,
2691
- Jn as NbTextarea,
2692
- eo as NbToast,
2693
- to as NbToggle,
2694
- oo as NbToggleGroup,
2695
- so as NbToggleGroupItem,
2696
- uo as NbTooltip,
2697
- fo as NeoBrutalVue
3108
+ xa as NbAccordion,
3109
+ Ba as NbAccordionItem,
3110
+ $l as NbAlert,
3111
+ Il as NbAlertDialog,
3112
+ Ca as NbAspectRatio,
3113
+ wa as NbAvatar,
3114
+ Ta as NbBadge,
3115
+ Oa as NbBreadcrumbs,
3116
+ ie as NbButton,
3117
+ La as NbButtonGroup,
3118
+ za as NbCard,
3119
+ ja as NbCheckbox,
3120
+ Ja as NbCollapsible,
3121
+ al as NbCombobox,
3122
+ ol as NbCommand,
3123
+ sl as NbContextMenu,
3124
+ il as NbContextMenuCheckboxItem,
3125
+ dl as NbContextMenuItem,
3126
+ rl as NbContextMenuLabel,
3127
+ ul as NbContextMenuRadioGroup,
3128
+ cl as NbContextMenuRadioItem,
3129
+ bl as NbContextMenuSeparator,
3130
+ hl as NbContextMenuShortcut,
3131
+ _l as NbContextMenuSub,
3132
+ Wa as NbCopyButton,
3133
+ Bl as NbDialog,
3134
+ Cl as NbDropdownMenu,
3135
+ Tl as NbDropdownMenuItem,
3136
+ wl as NbDropdownMenuSeparator,
3137
+ Pl as NbEmptyState,
3138
+ Ul as NbFieldset,
3139
+ Yl as NbHoverCard,
3140
+ Kl as NbInput,
3141
+ Wl as NbInputGroup,
3142
+ Zl as NbKbd,
3143
+ en as NbLink,
3144
+ tn as NbMarker,
3145
+ dn as NbMeter,
3146
+ bn as NbNavigationMenu,
3147
+ hn as NbNumberInput,
3148
+ _n as NbPagination,
3149
+ Nn as NbPinInput,
3150
+ Vn as NbPopover,
3151
+ Tn as NbProgress,
3152
+ qn as NbRadioGroup,
3153
+ Hn as NbRating,
3154
+ Kn as NbScrollArea,
3155
+ to as NbSelect,
3156
+ ao as NbSelectItem,
3157
+ lo as NbSeparator,
3158
+ Qn as NbSheet,
3159
+ co as NbSkeleton,
3160
+ uo as NbSlider,
3161
+ fo as NbSpinner,
3162
+ mo as NbStepper,
3163
+ vo as NbStepperItem,
3164
+ No as NbSwitch,
3165
+ Fo as NbTable,
3166
+ To as NbTabs,
3167
+ So as NbTabsContent,
3168
+ Ao as NbTabsList,
3169
+ Oo as NbTabsTrigger,
3170
+ Bo as NbTagsInput,
3171
+ Go as NbTextarea,
3172
+ Xo as NbTimeline,
3173
+ es as NbTimelineItem,
3174
+ Ko as NbToast,
3175
+ ts as NbToggle,
3176
+ os as NbToggleGroup,
3177
+ ss as NbToggleGroupItem,
3178
+ rs as NbTooltip,
3179
+ bs as NeoBrutalVue
2698
3180
  };