@nubisco/ui 1.24.0 → 1.26.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.
package/dist/index.mjs CHANGED
@@ -1,25 +1,25 @@
1
1
  import * as e from "vue";
2
- import { Comment as t, Fragment as n, Teleport as r, Text as i, Transition as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineAsyncComponent as p, defineComponent as m, getCurrentInstance as h, inject as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeStyle as x, onBeforeUnmount as S, onMounted as C, onUnmounted as w, openBlock as T, provide as E, reactive as D, ref as O, renderList as k, renderSlot as A, resolveComponent as j, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, unref as F, useId as I, useModel as L, useSlots as R, vModelCheckbox as ee, vModelDynamic as te, vModelText as ne, vShow as re, watch as z, withCtx as B, withDirectives as V, withKeys as H, withModifiers as U } from "vue";
2
+ import { Comment as t, Fragment as n, Teleport as r, Text as i, Transition as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineAsyncComponent as p, defineComponent as m, getCurrentInstance as h, inject as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeStyle as x, onBeforeUnmount as S, onMounted as C, onUnmounted as w, openBlock as T, provide as E, reactive as D, ref as O, renderList as k, renderSlot as A, resolveComponent as j, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, unref as F, useId as I, useModel as L, useSlots as R, vModelCheckbox as ee, vModelDynamic as te, vModelText as ne, vShow as z, watch as B, withCtx as V, withDirectives as H, withKeys as U, withModifiers as W } from "vue";
3
3
  //#region \0rolldown/runtime.js
4
- var ie = Object.defineProperty, ae = (e, t) => {
4
+ var re = Object.defineProperty, ie = (e, t) => {
5
5
  let n = {};
6
- for (var r in e) ie(n, r, {
6
+ for (var r in e) re(n, r, {
7
7
  get: e[r],
8
8
  enumerable: !0
9
9
  });
10
- return t || ie(n, Symbol.toStringTag, { value: "Module" }), n;
11
- }, oe = /* @__PURE__ */ function(e) {
10
+ return t || re(n, Symbol.toStringTag, { value: "Module" }), n;
11
+ }, ae = /* @__PURE__ */ function(e) {
12
12
  return e.Default = "default", e.Inline = "inline", e;
13
- }(oe || {}), se = /* @__PURE__ */ function(e) {
13
+ }(ae || {}), oe = /* @__PURE__ */ function(e) {
14
14
  return e.Small = "sm", e.Medium = "md", e.Large = "lg", e;
15
- }(se || {}), W = {
15
+ }(oe || {}), se = {
16
16
  key: 0,
17
17
  class: "nb-ai-label--dot"
18
18
  }, ce = /* @__PURE__ */ m({
19
19
  __name: "AiLabel",
20
20
  props: {
21
- variant: { default: oe.Default },
22
- size: { default: se.Medium }
21
+ variant: { default: ae.Default },
22
+ size: { default: oe.Medium }
23
23
  },
24
24
  setup(e) {
25
25
  let t = e, n = o(() => ({
@@ -32,11 +32,11 @@ var ie = Object.defineProperty, ae = (e, t) => {
32
32
  return T(), s(i, v({
33
33
  is: "button",
34
34
  align: "center"
35
- }, { ...e.variant === F(oe).Inline && { gap: "sm" } }, {
35
+ }, { ...e.variant === F(ae).Inline && { gap: "sm" } }, {
36
36
  justify: "center",
37
37
  class: n.value
38
38
  }), {
39
- default: B(() => [e.variant === F(oe).Inline ? (T(), l("div", W)) : c("", !0), r[0] ||= u("svg", {
39
+ default: V(() => [e.variant === F(ae).Inline ? (T(), l("div", se)) : c("", !0), r[0] ||= u("svg", {
40
40
  xmlns: "http://www.w3.org/2000/svg",
41
41
  viewBox: "0 0 256 256"
42
42
  }, [u("path", {
@@ -139,7 +139,7 @@ var ie = Object.defineProperty, ae = (e, t) => {
139
139
  },
140
140
  setup(e) {
141
141
  return (t, r) => (T(), s(a, { name: "nb-chart-tooltip" }, {
142
- default: B(() => [e.visible ? (T(), l("div", {
142
+ default: V(() => [e.visible ? (T(), l("div", {
143
143
  key: 0,
144
144
  class: "nb-chart__tooltip",
145
145
  style: x({ transform: `translate(${e.x}px, ${e.y}px)` }),
@@ -331,11 +331,11 @@ var ie = Object.defineProperty, ae = (e, t) => {
331
331
  height: e.height,
332
332
  "show-legend": e.showLegend && d.value.length > 0
333
333
  }, {
334
- legend: B(() => [f(ye, { items: d.value.map((e) => ({
334
+ legend: V(() => [f(ye, { items: d.value.map((e) => ({
335
335
  label: e.name,
336
336
  color: e.color
337
337
  })) }, null, 8, ["items"])]),
338
- default: B(() => [u("div", {
338
+ default: V(() => [u("div", {
339
339
  ref_key: "root",
340
340
  ref: i,
341
341
  class: "nb-bar-chart"
@@ -12725,7 +12725,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
12725
12725
  type: !e.href && !e.to ? e.type : void 0,
12726
12726
  onClick: n[0] ||= (n) => e.disabled || e.loading ? void 0 : t.$emit("click", n)
12727
12727
  }, {
12728
- default: B(() => [A(t.$slots, "default", {}, void 0, !0), e.loading || e.icon ? (T(), l("div", LWt, [e.loading ? (T(), l("span", RWt)) : e.icon ? (T(), s(I8, {
12728
+ default: V(() => [A(t.$slots, "default", {}, void 0, !0), e.loading || e.icon ? (T(), l("div", LWt, [e.loading ? (T(), l("span", RWt)) : e.icon ? (T(), s(I8, {
12729
12729
  key: 1,
12730
12730
  name: e.icon,
12731
12731
  size: a.value,
@@ -12850,7 +12850,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
12850
12850
  color: "transparent",
12851
12851
  label: "None"
12852
12852
  }, m = O(a.value == null);
12853
- z(() => a.value, (e) => {
12853
+ B(() => a.value, (e) => {
12854
12854
  e ?? (m.value = !0);
12855
12855
  });
12856
12856
  let h = o(() => t.allowMultiple ? !1 : t.showNull || m.value), g = o(() => h.value ? [p, ...u.value] : u.value), _ = o(() => {
@@ -12908,7 +12908,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
12908
12908
  for: i.value,
12909
12909
  disabled: !1
12910
12910
  }, {
12911
- default: B(() => [d(P(e.label), 1)]),
12911
+ default: V(() => [d(P(e.label), 1)]),
12912
12912
  _: 1
12913
12913
  }, 8, ["for"])) : c("", !0)], 64)) : c("", !0),
12914
12914
  e.variant === "fluid" && (e.label || t.$slots.label) ? (T(), l("div", GWt, [t.$slots.label ? A(t.$slots, "label", { key: 0 }, void 0, !0) : (T(), l("label", KWt, P(e.label), 1))])) : c("", !0),
@@ -12920,7 +12920,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
12920
12920
  shrink: !1,
12921
12921
  style: x(_.value)
12922
12922
  }, {
12923
- default: B(() => [(T(!0), l(n, null, k(g.value, (t) => (T(), s(u, {
12923
+ default: V(() => [(T(!0), l(n, null, k(g.value, (t) => (T(), s(u, {
12924
12924
  is: "button",
12925
12925
  key: `option-${t.id || t.value}`,
12926
12926
  align: "center",
@@ -12930,7 +12930,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
12930
12930
  disabled: t.disabled,
12931
12931
  onClick: (n) => !e.onlyView && D(t.value)
12932
12932
  }, {
12933
- default: B(() => [!e.onlyView && y(t.value) && !w(t) ? (T(), s(o, {
12933
+ default: V(() => [!e.onlyView && y(t.value) && !w(t) ? (T(), s(o, {
12934
12934
  key: 0,
12935
12935
  name: "check-light",
12936
12936
  color: M(t)
@@ -13040,10 +13040,10 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13040
13040
  setFileStatus: E
13041
13041
  }), (t, r) => (T(), l("div", {
13042
13042
  class: "nb-file-uploader",
13043
- onDragenter: U(x, ["prevent"]),
13044
- onDragover: r[0] ||= U(() => {}, ["prevent"]),
13045
- onDragleave: U(S, ["prevent"]),
13046
- onDrop: U(C, ["prevent"])
13043
+ onDragenter: W(x, ["prevent"]),
13044
+ onDragover: r[0] ||= W(() => {}, ["prevent"]),
13045
+ onDragleave: W(S, ["prevent"]),
13046
+ onDrop: W(C, ["prevent"])
13047
13047
  }, [
13048
13048
  e.heading ? (T(), l("p", YWt, P(e.heading), 1)) : c("", !0),
13049
13049
  e.description ? (T(), l("p", XWt, P(e.description), 1)) : c("", !0),
@@ -13058,9 +13058,9 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13058
13058
  key: 3,
13059
13059
  class: "nb-file-uploader__btn",
13060
13060
  variant: e.variant,
13061
- onClick: U(g, ["stop"])
13061
+ onClick: W(g, ["stop"])
13062
13062
  }, {
13063
- default: B(() => [d(P(e.buttonLabel), 1)]),
13063
+ default: V(() => [d(P(e.buttonLabel), 1)]),
13064
13064
  _: 1
13065
13065
  }, 8, ["variant"])),
13066
13066
  u("input", {
@@ -13308,7 +13308,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13308
13308
  width: Math.max(c - s, 4)
13309
13309
  };
13310
13310
  }).filter(Boolean) : [];
13311
- }), re = (e, t) => `${e},${t} ${e - 5},${t + 5} ${e + 5},${t + 5}`, z = (e, t, n) => `${e},${t - n} ${e + n},${t} ${e},${t + n} ${e - n},${t}`, V = o(() => {
13311
+ }), z = (e, t) => `${e},${t} ${e - 5},${t + 5} ${e + 5},${t + 5}`, B = (e, t, n) => `${e},${t - n} ${e + n},${t} ${e},${t + n} ${e - n},${t}`, H = o(() => {
13312
13312
  let e = t.dependencies ?? [];
13313
13313
  if (!e.length) return [];
13314
13314
  let n = new Map((t.tasks ?? []).map((e) => [e.id, e]));
@@ -13325,13 +13325,13 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13325
13325
  arrowhead: `${g},${_} ${g - 6},${_ - 4} ${g - 6},${_ + 4}`
13326
13326
  };
13327
13327
  }).filter(Boolean);
13328
- }), H = O(null), U = O(null), ie = D({
13328
+ }), U = O(null), W = O(null), re = D({
13329
13329
  x: 0,
13330
13330
  y: 0
13331
- }), ae = O(null), oe = (e, t) => {
13332
- if (!H.value) return;
13333
- let n = H.value.getBoundingClientRect();
13334
- ie.x = e.clientX - n.left + 12, ie.y = e.clientY - n.top + 12, U.value = t.id, ae.value = {
13331
+ }), ie = O(null), ae = (e, t) => {
13332
+ if (!U.value) return;
13333
+ let n = U.value.getBoundingClientRect();
13334
+ re.x = e.clientX - n.left + 12, re.y = e.clientY - n.top + 12, W.value = t.id, ie.value = {
13335
13335
  title: t.label,
13336
13336
  rows: [
13337
13337
  {
@@ -13351,10 +13351,10 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13351
13351
  }] : []
13352
13352
  ]
13353
13353
  };
13354
- }, se = (e, t) => {
13355
- if (!H.value) return;
13356
- let n = H.value.getBoundingClientRect();
13357
- ie.x = e.clientX - n.left + 12, ie.y = e.clientY - n.top + 12, U.value = t.id, ae.value = {
13354
+ }, oe = (e, t) => {
13355
+ if (!U.value) return;
13356
+ let n = U.value.getBoundingClientRect();
13357
+ re.x = e.clientX - n.left + 12, re.y = e.clientY - n.top + 12, W.value = t.id, ie.value = {
13358
13358
  title: t.label,
13359
13359
  rows: [{
13360
13360
  label: "Date",
@@ -13362,7 +13362,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13362
13362
  color: t.color
13363
13363
  }]
13364
13364
  };
13365
- }, W = o(() => {
13365
+ }, se = o(() => {
13366
13366
  let e = /* @__PURE__ */ new Set();
13367
13367
  for (let n of t.tasks ?? []) e.add(n.status ?? "default");
13368
13368
  let n = {
@@ -13381,10 +13381,10 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13381
13381
  title: e.title,
13382
13382
  subtitle: e.subtitle,
13383
13383
  height: e.height,
13384
- "show-legend": e.showLegend && W.value.length > 1
13384
+ "show-legend": e.showLegend && se.value.length > 1
13385
13385
  }, {
13386
- legend: B(() => [f(ye, { items: W.value }, null, 8, ["items"])]),
13387
- default: B(() => [u("div", { class: b(["nb-gantt", { "nb-gantt--has-groups": g.value }]) }, [u("div", {
13386
+ legend: V(() => [f(ye, { items: se.value }, null, 8, ["items"])]),
13387
+ default: V(() => [u("div", { class: b(["nb-gantt", { "nb-gantt--has-groups": g.value }]) }, [u("div", {
13388
13388
  class: "nb-gantt__list",
13389
13389
  style: x({ width: `${e.listWidth}px` })
13390
13390
  }, [u("div", {
@@ -13398,21 +13398,21 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13398
13398
  }, [u("span", { class: b(["nb-gantt__list-caret", { "is-collapsed": m.value.has(t.id) }]) }, "▸", 2), u("span", oGt, P(t.label), 1)], 12, aGt)) : (T(), l("div", {
13399
13399
  key: 1,
13400
13400
  class: b(["nb-gantt__list-row", {
13401
- "is-hovered": U.value === t.id,
13401
+ "is-hovered": W.value === t.id,
13402
13402
  "is-milestone": t.milestone
13403
13403
  }]),
13404
13404
  style: x({
13405
13405
  height: `${e.rowHeight}px`,
13406
13406
  paddingLeft: t.indent ? "20px" : void 0
13407
13407
  }),
13408
- onMouseenter: (e) => U.value = t.id,
13409
- onMouseleave: r[0] ||= (e) => U.value = null
13408
+ onMouseenter: (e) => W.value = t.id,
13409
+ onMouseleave: r[0] ||= (e) => W.value = null
13410
13410
  }, [u("span", {
13411
13411
  class: "nb-gantt__list-label",
13412
13412
  title: t.label
13413
13413
  }, P(t.label), 9, cGt)], 46, sGt))], 64))), 128))])], 4), u("div", {
13414
13414
  ref_key: "timelineEl",
13415
- ref: H,
13415
+ ref: U,
13416
13416
  class: "nb-gantt__timeline"
13417
13417
  }, [
13418
13418
  (T(), l("svg", {
@@ -13438,7 +13438,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13438
13438
  height: N.value,
13439
13439
  role: "img",
13440
13440
  "aria-label": e.title || "Gantt chart",
13441
- onMouseleave: r[4] ||= (e) => U.value = null
13441
+ onMouseleave: r[4] ||= (e) => W.value = null
13442
13442
  }, [
13443
13443
  e.showGrid ? (T(), l("g", mGt, [(T(!0), l(n, null, k(F.value, (e, t) => (T(), l("line", {
13444
13444
  key: `grid-${t}`,
@@ -13478,17 +13478,17 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13478
13478
  }, null, 8, vGt),
13479
13479
  u("polygon", {
13480
13480
  class: "nb-gantt__summary-caret",
13481
- points: re(t.x, t.y + e.rowHeight * .65)
13481
+ points: z(t.x, t.y + e.rowHeight * .65)
13482
13482
  }, null, 8, yGt),
13483
13483
  u("polygon", {
13484
13484
  class: "nb-gantt__summary-caret",
13485
- points: re(t.x + t.width, t.y + e.rowHeight * .65)
13485
+ points: z(t.x + t.width, t.y + e.rowHeight * .65)
13486
13486
  }, null, 8, bGt)
13487
13487
  ]))), 128)),
13488
13488
  (T(!0), l(n, null, k(ee.value, (t) => (T(), l("g", { key: `bar-${t.id}` }, [u("rect", {
13489
13489
  class: b(["nb-gantt__bar", [`nb-gantt__bar--${t.status}`, {
13490
- "is-hovered": U.value === t.id,
13491
- "is-dim": U.value !== null && U.value !== t.id
13490
+ "is-hovered": W.value === t.id,
13491
+ "is-dim": W.value !== null && W.value !== t.id
13492
13492
  }]]),
13493
13493
  x: t.x,
13494
13494
  y: t.y + a.value,
@@ -13496,9 +13496,9 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13496
13496
  height: d.value,
13497
13497
  rx: "3",
13498
13498
  fill: t.color,
13499
- onMouseenter: (e) => U.value = t.id,
13500
- onMouseleave: r[1] ||= (e) => U.value = null,
13501
- onMousemove: (e) => oe(e, t)
13499
+ onMouseenter: (e) => W.value = t.id,
13500
+ onMouseleave: r[1] ||= (e) => W.value = null,
13501
+ onMousemove: (e) => ae(e, t)
13502
13502
  }, null, 42, xGt), e.showProgress && t.progress > 0 ? (T(), l("rect", {
13503
13503
  key: 0,
13504
13504
  class: "nb-gantt__bar-progress",
@@ -13512,21 +13512,21 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13512
13512
  }, null, 8, SGt)) : c("", !0)]))), 128)),
13513
13513
  (T(!0), l(n, null, k(te.value, (t) => (T(), l("g", { key: `ms-${t.id}` }, [u("polygon", {
13514
13514
  class: b(["nb-gantt__milestone", {
13515
- "is-hovered": U.value === t.id,
13516
- "is-dim": U.value !== null && U.value !== t.id
13515
+ "is-hovered": W.value === t.id,
13516
+ "is-dim": W.value !== null && W.value !== t.id
13517
13517
  }]),
13518
- points: z(t.x, t.y + e.rowHeight / 2, p.value),
13518
+ points: B(t.x, t.y + e.rowHeight / 2, p.value),
13519
13519
  fill: t.color,
13520
- onMouseenter: (e) => U.value = t.id,
13521
- onMouseleave: r[2] ||= (e) => U.value = null,
13522
- onMousemove: (e) => se(e, t)
13520
+ onMouseenter: (e) => W.value = t.id,
13521
+ onMouseleave: r[2] ||= (e) => W.value = null,
13522
+ onMousemove: (e) => oe(e, t)
13523
13523
  }, null, 42, CGt)]))), 128)),
13524
- u("g", null, [(T(!0), l(n, null, k(V.value, (e, t) => (T(), l("path", {
13524
+ u("g", null, [(T(!0), l(n, null, k(H.value, (e, t) => (T(), l("path", {
13525
13525
  key: `dep-${t}`,
13526
13526
  class: "nb-gantt__dependency",
13527
13527
  d: e.path,
13528
13528
  fill: "none"
13529
- }, null, 8, wGt))), 128)), (T(!0), l(n, null, k(V.value, (e, t) => (T(), l("polygon", {
13529
+ }, null, 8, wGt))), 128)), (T(!0), l(n, null, k(H.value, (e, t) => (T(), l("polygon", {
13530
13530
  key: `dep-arrow-${t}`,
13531
13531
  class: "nb-gantt__dependency-arrow",
13532
13532
  points: e.arrowhead
@@ -13538,16 +13538,16 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13538
13538
  width: M.value,
13539
13539
  height: e.rowHeight,
13540
13540
  fill: "transparent",
13541
- onMouseenter: (e) => U.value = t.id,
13542
- onMouseleave: r[3] ||= (e) => U.value = null
13541
+ onMouseenter: (e) => W.value = t.id,
13542
+ onMouseleave: r[3] ||= (e) => W.value = null
13543
13543
  }, null, 40, EGt))), 128))])
13544
13544
  ], 40, pGt)),
13545
13545
  f(we, {
13546
- visible: e.showTooltip && U.value !== null && ae.value !== null,
13547
- x: ie.x,
13548
- y: ie.y,
13549
- title: ae.value?.title ?? "",
13550
- rows: ae.value?.rows ?? []
13546
+ visible: e.showTooltip && W.value !== null && ie.value !== null,
13547
+ x: re.x,
13548
+ y: re.y,
13549
+ title: ie.value?.title ?? "",
13550
+ rows: ie.value?.rows ?? []
13551
13551
  }, null, 8, [
13552
13552
  "visible",
13553
13553
  "x",
@@ -13896,13 +13896,13 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13896
13896
  gap: "md",
13897
13897
  class: "nb-form"
13898
13898
  }, {
13899
- default: B(() => [
13899
+ default: V(() => [
13900
13900
  e.title ? (T(), s(r, {
13901
13901
  key: 0,
13902
13902
  is: "h4",
13903
13903
  class: "nb-form--header"
13904
13904
  }, {
13905
- default: B(() => [d(P(e.title), 1)]),
13905
+ default: V(() => [d(P(e.title), 1)]),
13906
13906
  _: 1
13907
13907
  })) : c("", !0),
13908
13908
  t.$slots.message ? (T(), s(r, {
@@ -13910,7 +13910,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13910
13910
  is: "p",
13911
13911
  class: "nb-form--message"
13912
13912
  }, {
13913
- default: B(() => [A(t.$slots, "message")]),
13913
+ default: V(() => [A(t.$slots, "message")]),
13914
13914
  _: 3
13915
13915
  })) : c("", !0),
13916
13916
  t.$slots.default ? (T(), s(r, {
@@ -13920,7 +13920,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13920
13920
  gap: "sm",
13921
13921
  class: "nb-form--body"
13922
13922
  }, {
13923
- default: B(() => [A(t.$slots, "default")]),
13923
+ default: V(() => [A(t.$slots, "default")]),
13924
13924
  _: 3
13925
13925
  })) : c("", !0),
13926
13926
  t.$slots.footer ? (T(), s(r, {
@@ -13929,7 +13929,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
13929
13929
  class: "nb-form--footer",
13930
13930
  justify: "end"
13931
13931
  }, {
13932
- default: B(() => [A(t.$slots, "footer")]),
13932
+ default: V(() => [A(t.$slots, "footer")]),
13933
13933
  _: 3
13934
13934
  })) : c("", !0)
13935
13935
  ]),
@@ -14294,7 +14294,7 @@ var IWt = ["title"], I8 = /* @__PURE__ */ G(/* @__PURE__ */ m({
14294
14294
  class: b(x.value),
14295
14295
  tabindex: e.tabIndex ?? !n.includes(e.is) ? "-1" : "0"
14296
14296
  }, {
14297
- default: B(() => [A(e.$slots, "default")]),
14297
+ default: V(() => [A(e.$slots, "default")]),
14298
14298
  _: 3
14299
14299
  }, 8, [
14300
14300
  "id",
@@ -14671,7 +14671,7 @@ function ZGt(e, t = {}) {
14671
14671
  for (; t = M(e);) n += t;
14672
14672
  let r = e.currentChar();
14673
14673
  if (r && r !== "}" && r !== y5 && r !== _5 && r !== v5 && r !== " ") {
14674
- let t = H(e);
14674
+ let t = U(e);
14675
14675
  return d($.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n + t), n + t;
14676
14676
  }
14677
14677
  return e.currentChar() === y5 && d($.UNTERMINATED_CLOSING_BRACE, a(), 0), n;
@@ -14684,24 +14684,24 @@ function ZGt(e, t = {}) {
14684
14684
  function ne(e) {
14685
14685
  return e !== b5 && e !== v5;
14686
14686
  }
14687
- function re(e) {
14687
+ function z(e) {
14688
14688
  g(e), m(e, "'");
14689
14689
  let t = "", n = "";
14690
- for (; t = O(e, ne);) t === "\\" ? n += z(e) : n += t;
14690
+ for (; t = O(e, ne);) t === "\\" ? n += B(e) : n += t;
14691
14691
  let r = e.currentChar();
14692
14692
  return r === v5 || r === y5 ? (d($.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), r === v5 && (e.next(), m(e, "'")), n) : (m(e, "'"), n);
14693
14693
  }
14694
- function z(e) {
14694
+ function B(e) {
14695
14695
  let t = e.currentChar();
14696
14696
  switch (t) {
14697
14697
  case "\\":
14698
14698
  case "'": return e.next(), `\\${t}`;
14699
- case "u": return B(e, t, 4);
14700
- case "U": return B(e, t, 6);
14699
+ case "u": return V(e, t, 4);
14700
+ case "U": return V(e, t, 6);
14701
14701
  default: return d($.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, t), "";
14702
14702
  }
14703
14703
  }
14704
- function B(e, t, n) {
14704
+ function V(e, t, n) {
14705
14705
  m(e, t);
14706
14706
  let r = "";
14707
14707
  for (let i = 0; i < n; i++) {
@@ -14714,70 +14714,70 @@ function ZGt(e, t = {}) {
14714
14714
  }
14715
14715
  return `\\${t}${r}`;
14716
14716
  }
14717
- function V(e) {
14717
+ function H(e) {
14718
14718
  return e !== "{" && e !== "}" && e !== _5 && e !== v5;
14719
14719
  }
14720
- function H(e) {
14720
+ function U(e) {
14721
14721
  g(e);
14722
14722
  let t = "", n = "";
14723
- for (; t = O(e, V);) n += t;
14723
+ for (; t = O(e, H);) n += t;
14724
14724
  return n;
14725
14725
  }
14726
- function U(e) {
14726
+ function W(e) {
14727
14727
  let t = "", n = "";
14728
14728
  for (; t = A(e);) n += t;
14729
14729
  return n;
14730
14730
  }
14731
- function ie(e) {
14731
+ function re(e) {
14732
14732
  let t = (n) => {
14733
14733
  let r = e.currentChar();
14734
14734
  return r === "{" || r === "@" || r === "|" || r === "(" || r === ")" || !r || r === _5 ? n : (n += r, e.next(), t(n));
14735
14735
  };
14736
14736
  return t("");
14737
14737
  }
14738
- function ae(e) {
14738
+ function ie(e) {
14739
14739
  g(e);
14740
14740
  let t = m(e, "|");
14741
14741
  return g(e), t;
14742
14742
  }
14743
- function oe(e, t) {
14743
+ function ae(e, t) {
14744
14744
  let n = null;
14745
14745
  switch (e.currentChar()) {
14746
14746
  case "{": return t.braceNest >= 1 && d($.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), e.next(), n = f(t, 2, "{"), g(e), t.braceNest++, n;
14747
14747
  case "}": return t.braceNest > 0 && t.currentType === 2 && d($.EMPTY_PLACEHOLDER, a(), 0), e.next(), n = f(t, 3, "}"), t.braceNest--, t.braceNest > 0 && g(e), t.inLinked && t.braceNest === 0 && (t.inLinked = !1), n;
14748
- case "@": return t.braceNest > 0 && d($.UNTERMINATED_CLOSING_BRACE, a(), 0), n = se(e, t) || p(t), t.braceNest = 0, n;
14748
+ case "@": return t.braceNest > 0 && d($.UNTERMINATED_CLOSING_BRACE, a(), 0), n = oe(e, t) || p(t), t.braceNest = 0, n;
14749
14749
  default: {
14750
14750
  let r = !0, i = !0, o = !0;
14751
- if (E(e)) return t.braceNest > 0 && d($.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, ae(e)), t.braceNest = 0, t.inLinked = !1, n;
14752
- if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d($.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0, W(e, t);
14751
+ if (E(e)) return t.braceNest > 0 && d($.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, ie(e)), t.braceNest = 0, t.inLinked = !1, n;
14752
+ if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d($.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0, se(e, t);
14753
14753
  if (r = y(e, t)) return n = f(t, 4, ee(e)), g(e), n;
14754
14754
  if (i = b(e, t)) return n = f(t, 5, te(e)), g(e), n;
14755
- if (o = x(e, t)) return n = f(t, 6, re(e)), g(e), n;
14756
- if (!r && !i && !o) return n = f(t, 12, H(e)), d($.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), g(e), n;
14755
+ if (o = x(e, t)) return n = f(t, 6, z(e)), g(e), n;
14756
+ if (!r && !i && !o) return n = f(t, 12, U(e)), d($.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), g(e), n;
14757
14757
  break;
14758
14758
  }
14759
14759
  }
14760
14760
  return n;
14761
14761
  }
14762
- function se(e, t) {
14762
+ function oe(e, t) {
14763
14763
  let { currentType: n } = t, r = null, i = e.currentChar();
14764
14764
  switch ((n === 7 || n === 8 || n === 11 || n === 9) && (i === v5 || i === _5) && d($.INVALID_LINKED_FORMAT, a(), 0), i) {
14765
14765
  case "@": return e.next(), r = f(t, 7, "@"), t.inLinked = !0, r;
14766
14766
  case ".": return g(e), e.next(), f(t, 8, ".");
14767
14767
  case ":": return g(e), e.next(), f(t, 9, ":");
14768
- default: return E(e) ? (r = f(t, 1, ae(e)), t.braceNest = 0, t.inLinked = !1, r) : S(e, t) || w(e, t) ? (g(e), se(e, t)) : C(e, t) ? (g(e), f(t, 11, U(e))) : T(e, t) ? (g(e), i === "{" ? oe(e, t) || r : f(t, 10, ie(e))) : (n === 7 && d($.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, W(e, t));
14768
+ default: return E(e) ? (r = f(t, 1, ie(e)), t.braceNest = 0, t.inLinked = !1, r) : S(e, t) || w(e, t) ? (g(e), oe(e, t)) : C(e, t) ? (g(e), f(t, 11, W(e))) : T(e, t) ? (g(e), i === "{" ? ae(e, t) || r : f(t, 10, re(e))) : (n === 7 && d($.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, se(e, t));
14769
14769
  }
14770
14770
  }
14771
- function W(e, t) {
14771
+ function se(e, t) {
14772
14772
  let n = { type: 13 };
14773
- if (t.braceNest > 0) return oe(e, t) || p(t);
14774
- if (t.inLinked) return se(e, t) || p(t);
14773
+ if (t.braceNest > 0) return ae(e, t) || p(t);
14774
+ if (t.inLinked) return oe(e, t) || p(t);
14775
14775
  switch (e.currentChar()) {
14776
- case "{": return oe(e, t) || p(t);
14776
+ case "{": return ae(e, t) || p(t);
14777
14777
  case "}": return d($.UNBALANCED_CLOSING_BRACE, a(), 0), e.next(), f(t, 3, "}");
14778
- case "@": return se(e, t) || p(t);
14778
+ case "@": return oe(e, t) || p(t);
14779
14779
  default:
14780
- if (E(e)) return n = f(t, 1, ae(e)), t.braceNest = 0, t.inLinked = !1, n;
14780
+ if (E(e)) return n = f(t, 1, ie(e)), t.braceNest = 0, t.inLinked = !1, n;
14781
14781
  if (D(e)) return f(t, 0, R(e));
14782
14782
  break;
14783
14783
  }
@@ -14785,7 +14785,7 @@ function ZGt(e, t = {}) {
14785
14785
  }
14786
14786
  function ce() {
14787
14787
  let { currentType: e, offset: t, startLoc: n, endLoc: o } = c;
14788
- return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === y5 ? f(c, 13) : W(r, c);
14788
+ return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === y5 ? f(c, 13) : se(r, c);
14789
14789
  }
14790
14790
  return {
14791
14791
  nextToken: ce,
@@ -16227,38 +16227,38 @@ function wqt(e = {}) {
16227
16227
  function ne(...e) {
16228
16228
  return R((t) => Reflect.apply(y7, null, [t, ...e]), () => b7(...e), "datetime format", (t) => Reflect.apply(t.d, t, [...e]), () => "", (e) => Y(e) || c5(e));
16229
16229
  }
16230
- function re(...e) {
16230
+ function z(...e) {
16231
16231
  return R((t) => Reflect.apply(S7, null, [t, ...e]), () => C7(...e), "number format", (t) => Reflect.apply(t.n, t, [...e]), () => "", (e) => Y(e) || c5(e));
16232
16232
  }
16233
- function B(e) {
16233
+ function V(e) {
16234
16234
  return e.map((e) => Y(e) || $8(e) || X(e) ? G7(String(e)) : e);
16235
16235
  }
16236
- let V = {
16237
- normalize: B,
16236
+ let H = {
16237
+ normalize: V,
16238
16238
  interpolate: (e) => e,
16239
16239
  type: "vnode"
16240
16240
  };
16241
- function H(...e) {
16241
+ function U(...e) {
16242
16242
  return R((t) => {
16243
16243
  let n, r = t;
16244
16244
  try {
16245
- r.processor = V, n = Reflect.apply(O7, null, [r, ...e]);
16245
+ r.processor = H, n = Reflect.apply(O7, null, [r, ...e]);
16246
16246
  } finally {
16247
16247
  r.processor = null;
16248
16248
  }
16249
16249
  return n;
16250
16250
  }, () => j7(...e), "translate", (t) => t[P7](...e), (e) => [G7(e)], (e) => c5(e));
16251
16251
  }
16252
- function U(...e) {
16252
+ function W(...e) {
16253
16253
  return R((t) => Reflect.apply(S7, null, [t, ...e]), () => C7(...e), "number format", (t) => t[I7](...e), q7, (e) => Y(e) || c5(e));
16254
16254
  }
16255
- function ie(...e) {
16255
+ function re(...e) {
16256
16256
  return R((t) => Reflect.apply(y7, null, [t, ...e]), () => b7(...e), "datetime format", (t) => t[F7](...e), q7, (e) => Y(e) || c5(e));
16257
16257
  }
16258
- function ae(e) {
16258
+ function ie(e) {
16259
16259
  C = e, w.pluralRules = C;
16260
16260
  }
16261
- function oe(e, t) {
16261
+ function ae(e, t) {
16262
16262
  return R(() => {
16263
16263
  if (!e) return !1;
16264
16264
  let n = Y(t) ? t : c.value, r = Y(t) ? [n] : Z5(w, l.value, n);
@@ -16269,7 +16269,7 @@ function wqt(e = {}) {
16269
16269
  return !1;
16270
16270
  }, () => [e], "translate exists", (n) => Reflect.apply(n.te, n, [e, t]), Cqt, (e) => X(e));
16271
16271
  }
16272
- function se(e) {
16272
+ function oe(e) {
16273
16273
  let t = null, n = Z5(w, l.value, c.value);
16274
16274
  for (let r = 0; r < n.length; r++) {
16275
16275
  let i = u.value[n[r]] || {}, a = w.messageResolver(i, e);
@@ -16280,8 +16280,8 @@ function wqt(e = {}) {
16280
16280
  }
16281
16281
  return t;
16282
16282
  }
16283
- function W(e) {
16284
- return se(e) ?? (t && t.tm(e) || {});
16283
+ function se(e) {
16284
+ return oe(e) ?? (t && t.tm(e) || {});
16285
16285
  }
16286
16286
  function ce(e) {
16287
16287
  return u.value[e] || {};
@@ -16318,9 +16318,9 @@ function wqt(e = {}) {
16318
16318
  function he(e, t) {
16319
16319
  f.value[e] = r5(f.value[e] || {}, t), w.numberFormats = f.value, w7(w, e, t);
16320
16320
  }
16321
- J7++, t && J8 && (z(t.locale, (e) => {
16321
+ J7++, t && J8 && (B(t.locale, (e) => {
16322
16322
  s && (c.value = e, w.locale = e, h7(w, c.value, l.value));
16323
- }), z(t.fallbackLocale, (e) => {
16323
+ }), B(t.fallbackLocale, (e) => {
16324
16324
  s && (l.value = e, w.fallbackLocale = e, h7(w, c.value, l.value));
16325
16325
  }));
16326
16326
  let K = {
@@ -16390,9 +16390,9 @@ function wqt(e = {}) {
16390
16390
  setPostTranslationHandler: P,
16391
16391
  getMissingHandler: F,
16392
16392
  setMissingHandler: I,
16393
- [yqt]: ae
16393
+ [yqt]: ie
16394
16394
  };
16395
- return K.datetimeFormats = A, K.numberFormats = j, K.rt = te, K.te = oe, K.tm = W, K.d = ne, K.n = re, K.getDateTimeFormat = ue, K.setDateTimeFormat = de, K.mergeDateTimeFormat = fe, K.getNumberFormat = pe, K.setNumberFormat = me, K.mergeNumberFormat = he, K[z7] = n, K[P7] = H, K[F7] = ie, K[I7] = U, process.env.NODE_ENV !== "production" && (K[L7] = (e) => {
16395
+ return K.datetimeFormats = A, K.numberFormats = j, K.rt = te, K.te = ae, K.tm = se, K.d = ne, K.n = z, K.getDateTimeFormat = ue, K.setDateTimeFormat = de, K.mergeDateTimeFormat = fe, K.getNumberFormat = pe, K.setNumberFormat = me, K.mergeNumberFormat = he, K[z7] = n, K[P7] = U, K[F7] = re, K[I7] = W, process.env.NODE_ENV !== "production" && (K[L7] = (e) => {
16396
16396
  w.__v_emitter = e;
16397
16397
  }, K[R7] = () => {
16398
16398
  w.__v_emitter = void 0;
@@ -16593,7 +16593,7 @@ var $7 = /* @__PURE__ */ function(e) {
16593
16593
  width: h.width * _.x * .5,
16594
16594
  height: h.height * _.y * .5
16595
16595
  };
16596
- re(), me();
16596
+ z(), me();
16597
16597
  }
16598
16598
  }, h.onerror = () => {
16599
16599
  console.error("Failed to load image");
@@ -16605,14 +16605,14 @@ var $7 = /* @__PURE__ */ function(e) {
16605
16605
  g &&= (URL.revokeObjectURL(g), null);
16606
16606
  let e = y.value;
16607
16607
  e && (URL.revokeObjectURL(e), y.value = null);
16608
- }), z(() => i.image, (e) => {
16608
+ }), B(() => i.image, (e) => {
16609
16609
  e && te();
16610
- }), z(() => [
16610
+ }), B(() => [
16611
16611
  i.cropAsCircle,
16612
16612
  i.outputAsCircle,
16613
16613
  i.lockAspectRatio
16614
16614
  ], () => {
16615
- p.value && m && re();
16615
+ p.value && m && z();
16616
16616
  });
16617
16617
  let ne = () => {
16618
16618
  let e = h.width / h.height, t = e9, n = t9;
@@ -16620,15 +16620,15 @@ var $7 = /* @__PURE__ */ function(e) {
16620
16620
  drawWidth: t,
16621
16621
  drawHeight: n
16622
16622
  };
16623
- }, re = () => {
16623
+ }, z = () => {
16624
16624
  if (m && p.value) {
16625
16625
  m.clearRect(0, 0, p.value.width, p.value.height);
16626
16626
  let e = (p.value.width - h.width * _.x) / 2, t = (p.value.height - h.height * _.y) / 2;
16627
- m.drawImage(h, 0, 0, h.width, h.height, e, t, h.width * _.x, h.height * _.y), V();
16627
+ m.drawImage(h, 0, 0, h.width, h.height, e, t, h.width * _.x, h.height * _.y), H();
16628
16628
  }
16629
- }, V = () => {
16629
+ }, H = () => {
16630
16630
  m && p.value && (m.save(), m.beginPath(), i.cropAsCircle ? m.arc(v.value.x + v.value.width / 2, v.value.y + v.value.height / 2, v.value.width / 2, 0, Math.PI * 2) : m.rect(v.value.x, v.value.y, v.value.width, v.value.height), m.rect(0, 0, p.value.width, p.value.height), m.clip("evenodd"), m.fillStyle = "rgba(0, 0, 0, 0.5)", m.fillRect(0, 0, p.value.width, p.value.height), m.restore(), m.save(), m.strokeStyle = "rgba(255, 255, 255, 0.8)", m.lineWidth = 1, m.setLineDash([5, 5]), m.imageSmoothingEnabled = !1, i.cropAsCircle ? (m.beginPath(), m.arc(v.value.x + v.value.width / 2, v.value.y + v.value.height / 2, v.value.width / 2, 0, Math.PI * 2), m.stroke()) : m.strokeRect(v.value.x, v.value.y, v.value.width, v.value.height), m.restore());
16631
- }, H = o(() => {
16631
+ }, U = o(() => {
16632
16632
  if (i.cropAsCircle) {
16633
16633
  let e = v.value.x + v.value.width / 2, t = v.value.y + v.value.height / 2, n = v.value.width / 2;
16634
16634
  return {
@@ -16699,7 +16699,7 @@ var $7 = /* @__PURE__ */ function(e) {
16699
16699
  top: `${v.value.y + v.value.height / 2 - 5}px`
16700
16700
  }
16701
16701
  };
16702
- }), ie = (e) => {
16702
+ }), re = (e) => {
16703
16703
  if ("touches" in e && e.touches.length > 0) {
16704
16704
  let t = e.touches[0];
16705
16705
  return {
@@ -16714,39 +16714,39 @@ var $7 = /* @__PURE__ */ function(e) {
16714
16714
  clientX: 0,
16715
16715
  clientY: 0
16716
16716
  };
16717
- }, ae = (e) => {
16717
+ }, ie = (e) => {
16718
16718
  let t = p.value;
16719
16719
  if (!t) return null;
16720
- let { clientX: n, clientY: r } = ie(e), { left: i, top: a } = t.getBoundingClientRect();
16720
+ let { clientX: n, clientY: r } = re(e), { left: i, top: a } = t.getBoundingClientRect();
16721
16721
  return {
16722
16722
  x: n - i,
16723
16723
  y: r - a
16724
16724
  };
16725
- }, oe = (e) => {
16725
+ }, ae = (e) => {
16726
16726
  e.preventDefault();
16727
- let t = ae(e);
16727
+ let t = ie(e);
16728
16728
  if (!t) return;
16729
16729
  let { x: n, y: r } = t;
16730
16730
  fe(n, r) && (D = !0, E = !0, A = {
16731
16731
  x: n - v.value.x,
16732
16732
  y: r - v.value.y
16733
16733
  });
16734
- }, se = (e) => {
16734
+ }, oe = (e) => {
16735
16735
  D ? ce(e) : M && ue(e);
16736
- }, W = () => {
16736
+ }, se = () => {
16737
16737
  D && (G(), D = !1, me()), M && (de(), me()), E = !1, D = !1;
16738
16738
  }, ce = (e) => {
16739
16739
  if (E) {
16740
- let t = ae(e);
16740
+ let t = ie(e);
16741
16741
  if (!t) return;
16742
16742
  let { x: n, y: r } = t;
16743
- v.value.x = Math.floor(n - A.x), v.value.y = Math.floor(r - A.y), re();
16743
+ v.value.x = Math.floor(n - A.x), v.value.y = Math.floor(r - A.y), z();
16744
16744
  }
16745
16745
  }, G = () => {
16746
- E &&= (pe(), re(), !1);
16746
+ E &&= (pe(), z(), !1);
16747
16747
  }, le = (e, t) => {
16748
16748
  e.preventDefault();
16749
- let n = ae(e);
16749
+ let n = ie(e);
16750
16750
  n && (M = !0, L = t, N = {
16751
16751
  x: n.x,
16752
16752
  y: n.y
@@ -16754,7 +16754,7 @@ var $7 = /* @__PURE__ */ function(e) {
16754
16754
  }, ue = (e) => {
16755
16755
  if (!M) return;
16756
16756
  if (i.lockAspectRatio && p.value) {
16757
- let t = ae(e);
16757
+ let t = ie(e);
16758
16758
  if (!t) return;
16759
16759
  let { x: n, y: r } = t, a = I.x + I.width / 2, o = I.y + I.height / 2;
16760
16760
  if (i.cropAsCircle) {
@@ -16774,10 +16774,10 @@ var $7 = /* @__PURE__ */ function(e) {
16774
16774
  height: i
16775
16775
  };
16776
16776
  }
16777
- re();
16777
+ z();
16778
16778
  return;
16779
16779
  }
16780
- let t = ae(e);
16780
+ let t = ie(e);
16781
16781
  if (!t) return;
16782
16782
  let { x: n, y: r } = t, a = n - N.x, o = r - N.y;
16783
16783
  R = e instanceof MouseEvent && e.shiftKey;
@@ -16812,9 +16812,9 @@ var $7 = /* @__PURE__ */ function(e) {
16812
16812
  let e = I.width / I.height;
16813
16813
  ["left", "right"].includes(L) ? (s.height = s.width / e, L === "left" && (s.y = I.y - (s.height - I.height) / 2)) : ["top", "bottom"].includes(L) && (s.width = s.height * e, L === "top" && (s.x = I.x - (s.width - I.width) / 2));
16814
16814
  }
16815
- v.value = s, re();
16815
+ v.value = s, z();
16816
16816
  }, de = () => {
16817
- M && (pe(), re(), M = !1, L = null);
16817
+ M && (pe(), z(), M = !1, L = null);
16818
16818
  }, fe = (e, t) => {
16819
16819
  if (i.cropAsCircle) {
16820
16820
  let n = v.value.x + v.value.width / 2, r = v.value.y + v.value.height / 2, i = v.value.width / 2, a = e - n, o = t - r;
@@ -16856,39 +16856,39 @@ var $7 = /* @__PURE__ */ function(e) {
16856
16856
  }, "image/jpeg", .8));
16857
16857
  }
16858
16858
  };
16859
- return z(() => i, () => {
16859
+ return B(() => i, () => {
16860
16860
  me();
16861
16861
  }, { deep: !0 }), (t, i) => {
16862
16862
  let a = j("NbGrid");
16863
16863
  return T(), l("div", Nqt, [u("div", {
16864
16864
  class: "canvas-container",
16865
- onMousedown: oe,
16866
- onMousemove: se,
16867
- onMouseup: W,
16868
- onMouseleave: W,
16869
- onTouchstart: oe,
16870
- onTouchmove: se,
16871
- onTouchend: W
16865
+ onMousedown: ae,
16866
+ onMousemove: oe,
16867
+ onMouseup: se,
16868
+ onMouseleave: se,
16869
+ onTouchstart: ae,
16870
+ onTouchmove: oe,
16871
+ onTouchend: se
16872
16872
  }, [u("canvas", {
16873
16873
  ref_key: "canvas",
16874
16874
  ref: p
16875
16875
  }, null, 512), (T(), l(n, null, k(ee, (e) => u("div", {
16876
16876
  key: e.name,
16877
16877
  class: b(["resize-handle", e.name]),
16878
- style: x(H.value[e.name]),
16879
- onMousedown: U((t) => le(t, e.name), ["stop"]),
16880
- onTouchstart: U((t) => le(t, e.name), ["stop"])
16878
+ style: x(U.value[e.name]),
16879
+ onMousedown: W((t) => le(t, e.name), ["stop"]),
16880
+ onTouchstart: W((t) => le(t, e.name), ["stop"])
16881
16881
  }, null, 46, Pqt)), 64))], 32), e.showPreview && y.value && w.value ? (T(), s(a, {
16882
16882
  key: 0,
16883
16883
  class: "cropped-image-preview"
16884
16884
  }, {
16885
- default: B(() => [f(a, {
16885
+ default: V(() => [f(a, {
16886
16886
  is: "ul",
16887
16887
  dir: "col",
16888
16888
  justify: "center",
16889
16889
  gap: "sm"
16890
16890
  }, {
16891
- default: B(() => [
16891
+ default: V(() => [
16892
16892
  u("li", null, [u("strong", null, P(F(r)("common.X")), 1), d(" " + P(w.value.x.toFixed(0)), 1)]),
16893
16893
  u("li", null, [u("strong", null, P(F(r)("common.Y")), 1), d(" " + P(w.value.y.toFixed(0)), 1)]),
16894
16894
  u("li", null, [u("strong", null, P(F(r)("common.WIDTH")), 1), d(" " + P(w.value.width.toFixed(0)), 1)]),
@@ -16977,18 +16977,18 @@ var $7 = /* @__PURE__ */ function(e) {
16977
16977
  }]) }, [
16978
16978
  u("div", { class: b(["title", { editor: p.value }]) }, [d(P(e.title) + " ", 1), v(a.value) ? (T(), l("span", Lqt, P(y(a.value) ? `[ ${a.value.length} items ]` : `{ ${a.value && typeof a.value == "object" ? Object.keys(a.value).length : 0} properties }`), 1)) : c("", !0)], 2),
16979
16979
  v(a.value) ? c("", !0) : (T(), l("div", Rqt, [
16980
- S(a.value) ? c("", !0) : V((T(), l("span", {
16980
+ S(a.value) ? c("", !0) : H((T(), l("span", {
16981
16981
  key: 0,
16982
16982
  class: b({
16983
16983
  value: !0,
16984
16984
  "value--null": x(a.value)
16985
16985
  }),
16986
16986
  onDblclick: r[0] ||= () => p.value = e.editable
16987
- }, P(x(a.value) ? Bqt : a.value), 35)), [[re, !p.value]]),
16988
- !S(a.value) && p.value ? V((T(), l("input", {
16987
+ }, P(x(a.value) ? Bqt : a.value), 35)), [[z, !p.value]]),
16988
+ !S(a.value) && p.value ? H((T(), l("input", {
16989
16989
  key: 1,
16990
16990
  "onUpdate:modelValue": r[1] ||= (e) => a.value = e,
16991
- onKeyup: r[2] ||= H(() => p.value = !1, ["enter"]),
16991
+ onKeyup: r[2] ||= U(() => p.value = !1, ["enter"]),
16992
16992
  onBlur: r[3] ||= () => p.value = !1
16993
16993
  }, null, 544)), [[ne, a.value]]) : c("", !0),
16994
16994
  S(a.value) ? (T(), l("span", {
@@ -17144,11 +17144,11 @@ var $7 = /* @__PURE__ */ function(e) {
17144
17144
  height: e.height,
17145
17145
  "show-legend": e.showLegend && d.value.length > 0
17146
17146
  }, {
17147
- legend: B(() => [f(ye, { items: d.value.map((e) => ({
17147
+ legend: V(() => [f(ye, { items: d.value.map((e) => ({
17148
17148
  label: e.name,
17149
17149
  color: e.color
17150
17150
  })) }, null, 8, ["items"])]),
17151
- default: B(() => [u("div", {
17151
+ default: V(() => [u("div", {
17152
17152
  ref_key: "root",
17153
17153
  ref: i,
17154
17154
  class: "nb-line-chart"
@@ -17360,7 +17360,7 @@ var $7 = /* @__PURE__ */ function(e) {
17360
17360
  let t = window.innerHeight - g.top - 8;
17361
17361
  d.value.style.maxHeight = `${t}px`;
17362
17362
  }
17363
- return z(() => i.open, (e) => {
17363
+ return B(() => i.open, (e) => {
17364
17364
  e ? (p.value = -1, document.addEventListener("mousedown", P), y(() => {
17365
17365
  F(), j().length > 0 && M(0);
17366
17366
  })) : (p.value = -1, document.removeEventListener("mousedown", P));
@@ -17372,7 +17372,7 @@ var $7 = /* @__PURE__ */ function(e) {
17372
17372
  close: C,
17373
17373
  el: d
17374
17374
  }), (t, n) => (T(), s(r, { to: "body" }, [f(a, { name: "nb-menu" }, {
17375
- default: B(() => [e.open ? (T(), l("ul", {
17375
+ default: V(() => [e.open ? (T(), l("ul", {
17376
17376
  key: 0,
17377
17377
  ref_key: "menuRef",
17378
17378
  ref: d,
@@ -17466,7 +17466,7 @@ var $7 = /* @__PURE__ */ function(e) {
17466
17466
  function _() {
17467
17467
  s.value && a?.setActiveMenu(null);
17468
17468
  }
17469
- return z(s, (e) => {
17469
+ return B(s, (e) => {
17470
17470
  e && c();
17471
17471
  }), C(() => {
17472
17472
  r.value && a && a.registerTrigger({
@@ -17498,7 +17498,7 @@ var $7 = /* @__PURE__ */ function(e) {
17498
17498
  "max-width": e.maxWidth,
17499
17499
  onClose: _
17500
17500
  }, {
17501
- default: B(() => [A(t.$slots, "default")]),
17501
+ default: V(() => [A(t.$slots, "default")]),
17502
17502
  _: 3
17503
17503
  }, 8, [
17504
17504
  "open",
@@ -17568,7 +17568,7 @@ var $7 = /* @__PURE__ */ function(e) {
17568
17568
  "aria-checked": e.selectable || e.radioGroup ? e.selected : void 0,
17569
17569
  tabindex: -1,
17570
17570
  onClick: m,
17571
- onKeydown: [H(U(m, ["prevent"]), ["enter"]), H(U(m, ["prevent"]), ["space"])],
17571
+ onKeydown: [U(W(m, ["prevent"]), ["enter"]), U(W(m, ["prevent"]), ["space"])],
17572
17572
  onMouseenter: n[0] ||= (e) => t.$emit("highlight")
17573
17573
  }, [
17574
17574
  e.selectable && e.selected ? (T(), s(r, {
@@ -17682,9 +17682,9 @@ var u9 = /* @__PURE__ */ G(oJt, [["render", cJt]]), lJt = [
17682
17682
  onMouseenter: M,
17683
17683
  onMouseleave: N,
17684
17684
  onKeydown: [
17685
- H(U(E, ["prevent"]), ["right"]),
17686
- H(U(D, ["prevent"]), ["left"]),
17687
- H(U(D, ["prevent"]), ["escape"])
17685
+ U(W(E, ["prevent"]), ["right"]),
17686
+ U(W(D, ["prevent"]), ["left"]),
17687
+ U(W(D, ["prevent"]), ["escape"])
17688
17688
  ],
17689
17689
  onClick: L
17690
17690
  }, [
@@ -17701,7 +17701,7 @@ var u9 = /* @__PURE__ */ G(oJt, [["render", cJt]]), lJt = [
17701
17701
  class: "nb-submenu-trigger__caret"
17702
17702
  })
17703
17703
  ], 42, lJt), (T(), s(r, { to: "body" }, [f(a, { name: "nb-submenu" }, {
17704
- default: B(() => [p.value ? (T(), l("ul", {
17704
+ default: V(() => [p.value ? (T(), l("ul", {
17705
17705
  key: 0,
17706
17706
  ref_key: "submenuRef",
17707
17707
  ref: d,
@@ -17836,13 +17836,13 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
17836
17836
  document.querySelector(".nb-command-palette__item--highlighted")?.scrollIntoView({ block: "nearest" });
17837
17837
  });
17838
17838
  }
17839
- z(() => i.isOpen, (e) => {
17839
+ B(() => i.isOpen, (e) => {
17840
17840
  e ? (p.value = i.searchFilter ?? "", m.value = null, y(() => {
17841
17841
  d.value?.focus(), y(() => {
17842
17842
  w.value.length > 0 && (m.value = w.value[0].id);
17843
17843
  });
17844
17844
  }), document.body.style.overflow = "hidden") : (p.value = "", document.body.style.overflow = "");
17845
- }), z(v, (e) => {
17845
+ }), B(v, (e) => {
17846
17846
  e.length > 0 && !e.find((e) => e.id === m.value) ? m.value = e[0].id : e.length === 0 && (m.value = null);
17847
17847
  });
17848
17848
  let M = {
@@ -17882,10 +17882,10 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
17882
17882
  }), (t, o) => {
17883
17883
  let h = j("NbIcon");
17884
17884
  return T(), s(r, { to: "body" }, [f(a, { name: "nb-command-palette" }, {
17885
- default: B(() => [F(i).isOpen ? (T(), l("div", {
17885
+ default: V(() => [F(i).isOpen ? (T(), l("div", {
17886
17886
  key: 0,
17887
17887
  class: "nb-command-palette__overlay",
17888
- onClick: o[1] ||= U((e) => F(i).close(), ["self"])
17888
+ onClick: o[1] ||= W((e) => F(i).close(), ["self"])
17889
17889
  }, [u("div", {
17890
17890
  class: "nb-command-palette",
17891
17891
  onKeydown: D
@@ -17893,7 +17893,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
17893
17893
  name: "magnifying-glass",
17894
17894
  size: 20,
17895
17895
  class: "nb-command-palette__search-icon"
17896
- }), V(u("input", {
17896
+ }), H(u("input", {
17897
17897
  ref_key: "inputRef",
17898
17898
  ref: d,
17899
17899
  "onUpdate:modelValue": o[0] ||= (e) => p.value = e,
@@ -17997,7 +17997,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
17997
17997
  function p() {
17998
17998
  n.closeOnOverlay && i("close");
17999
17999
  }
18000
- z(() => n.open, (e) => {
18000
+ B(() => n.open, (e) => {
18001
18001
  document.body.style.overflow = e ? "hidden" : "";
18002
18002
  }), w(() => {
18003
18003
  document.body.style.overflow = "";
@@ -18012,16 +18012,16 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18012
18012
  }), (t, n) => {
18013
18013
  let m = j("NbIcon"), h = j("NbGrid");
18014
18014
  return T(), s(r, { to: "body" }, [f(a, { name: "nb-modal" }, {
18015
- default: B(() => [e.open ? (T(), l("div", {
18015
+ default: V(() => [e.open ? (T(), l("div", {
18016
18016
  key: 0,
18017
18017
  class: "nb-modal--overlay",
18018
- onClick: U(p, ["self"])
18018
+ onClick: W(p, ["self"])
18019
18019
  }, [u("div", {
18020
18020
  class: "nb-modal--content",
18021
18021
  role: "dialog",
18022
18022
  "aria-modal": "true",
18023
18023
  style: x({ maxWidth: o[e.size] }),
18024
- onClick: n[1] ||= U(() => {}, ["stop"])
18024
+ onClick: n[1] ||= W(() => {}, ["stop"])
18025
18025
  }, [
18026
18026
  t.$slots.header || e.title ? (T(), l("header", TJt, [u("span", EJt, [A(t.$slots, "header", {}, () => [d(P(e.title), 1)], !0)]), u("button", {
18027
18027
  class: "nb-modal--close",
@@ -18036,7 +18036,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18036
18036
  class: "nb-modal--footer",
18037
18037
  distributed: ""
18038
18038
  }, {
18039
- default: B(() => [A(t.$slots, "footer", {}, void 0, !0)]),
18039
+ default: V(() => [A(t.$slots, "footer", {}, void 0, !0)]),
18040
18040
  _: 3
18041
18041
  })) : c("", !0)
18042
18042
  ], 4)])) : c("", !0)]),
@@ -18102,7 +18102,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18102
18102
  function x(e) {
18103
18103
  p.value && (p.value.value = e == null ? "" : String(e));
18104
18104
  }
18105
- C(() => x(i.modelValue)), z(() => i.modelValue, (e) => {
18105
+ C(() => x(i.modelValue)), B(() => i.modelValue, (e) => {
18106
18106
  m.value || x(e);
18107
18107
  });
18108
18108
  function S() {
@@ -18157,7 +18157,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18157
18157
  required: e.required,
18158
18158
  disabled: e.disabled
18159
18159
  }, {
18160
- default: B(() => [d(P(e.label), 1)]),
18160
+ default: V(() => [d(P(e.label), 1)]),
18161
18161
  _: 1
18162
18162
  }, 8, [
18163
18163
  "for",
@@ -18179,7 +18179,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18179
18179
  required: e.required,
18180
18180
  onInput: E,
18181
18181
  onBlur: D,
18182
- onKeydown: r[0] ||= H(U(() => p.value?.blur(), ["prevent"]), ["enter"]),
18182
+ onKeydown: r[0] ||= U(W(() => p.value?.blur(), ["prevent"]), ["enter"]),
18183
18183
  onFocus: r[1] ||= (e) => m.value = !0
18184
18184
  }, null, 40, OJt),
18185
18185
  e.error ? (T(), s(h9, {
@@ -18188,7 +18188,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18188
18188
  "icon-only": !0,
18189
18189
  class: "nb-number-input__status"
18190
18190
  }, {
18191
- default: B(() => [d(P(e.error), 1)]),
18191
+ default: V(() => [d(P(e.error), 1)]),
18192
18192
  _: 1
18193
18193
  })) : e.warning ? (T(), s(h9, {
18194
18194
  key: 1,
@@ -18196,7 +18196,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18196
18196
  "icon-only": !0,
18197
18197
  class: "nb-number-input__status"
18198
18198
  }, {
18199
- default: B(() => [d(P(e.warning), 1)]),
18199
+ default: V(() => [d(P(e.warning), 1)]),
18200
18200
  _: 1
18201
18201
  })) : c("", !0),
18202
18202
  u("div", kJt, [u("button", {
@@ -18204,7 +18204,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18204
18204
  class: b(["nb-number-input__stepper", { "nb-number-input__stepper--at-limit": _.value }]),
18205
18205
  disabled: e.disabled,
18206
18206
  "aria-label": "Decrease",
18207
- onMousedown: r[2] ||= U(() => {}, ["prevent"]),
18207
+ onMousedown: r[2] ||= W(() => {}, ["prevent"]),
18208
18208
  onClick: w
18209
18209
  }, [f(I8, {
18210
18210
  name: "minus",
@@ -18214,7 +18214,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18214
18214
  class: b(["nb-number-input__stepper", { "nb-number-input__stepper--at-limit": v.value }]),
18215
18215
  disabled: e.disabled,
18216
18216
  "aria-label": "Increase",
18217
- onMousedown: r[3] ||= U(() => {}, ["prevent"]),
18217
+ onMousedown: r[3] ||= W(() => {}, ["prevent"]),
18218
18218
  onClick: S
18219
18219
  }, [f(I8, {
18220
18220
  name: "plus",
@@ -18226,21 +18226,21 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18226
18226
  variant: "error",
18227
18227
  class: "nb-number-input__message"
18228
18228
  }, {
18229
- default: B(() => [d(P(e.error), 1)]),
18229
+ default: V(() => [d(P(e.error), 1)]),
18230
18230
  _: 1
18231
18231
  })) : e.warning ? (T(), s(h9, {
18232
18232
  key: 2,
18233
18233
  variant: "warning",
18234
18234
  class: "nb-number-input__message"
18235
18235
  }, {
18236
- default: B(() => [d(P(e.warning), 1)]),
18236
+ default: V(() => [d(P(e.warning), 1)]),
18237
18237
  _: 1
18238
18238
  })) : e.helper ? (T(), s(h9, {
18239
18239
  key: 3,
18240
18240
  variant: "helper",
18241
18241
  class: "nb-number-input__message"
18242
18242
  }, {
18243
- default: B(() => [d(P(e.helper), 1)]),
18243
+ default: V(() => [d(P(e.helper), 1)]),
18244
18244
  _: 1
18245
18245
  })) : c("", !0)
18246
18246
  ], 64)) : e.variant === "fluid" ? (T(), l(n, { key: 1 }, [u("div", { class: b(["nb-number-input__field-wrapper", A.value]) }, [e.label ? (T(), l("div", MJt, [u("label", {
@@ -18252,7 +18252,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18252
18252
  "icon-only": !0,
18253
18253
  class: "nb-number-input__inner-message"
18254
18254
  }, {
18255
- default: B(() => [d(P(e.helper), 1)]),
18255
+ default: V(() => [d(P(e.helper), 1)]),
18256
18256
  _: 1
18257
18257
  })) : c("", !0)])) : c("", !0), u("div", FJt, [
18258
18258
  u("input", {
@@ -18269,7 +18269,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18269
18269
  required: e.required,
18270
18270
  onInput: E,
18271
18271
  onBlur: D,
18272
- onKeydown: r[4] ||= H(U(() => p.value?.blur(), ["prevent"]), ["enter"]),
18272
+ onKeydown: r[4] ||= U(W(() => p.value?.blur(), ["prevent"]), ["enter"]),
18273
18273
  onFocus: r[5] ||= (e) => m.value = !0
18274
18274
  }, null, 40, IJt),
18275
18275
  e.error ? (T(), s(h9, {
@@ -18278,7 +18278,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18278
18278
  "icon-only": !0,
18279
18279
  class: "nb-number-input__status"
18280
18280
  }, {
18281
- default: B(() => [d(P(e.error), 1)]),
18281
+ default: V(() => [d(P(e.error), 1)]),
18282
18282
  _: 1
18283
18283
  })) : e.warning ? (T(), s(h9, {
18284
18284
  key: 1,
@@ -18286,7 +18286,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18286
18286
  "icon-only": !0,
18287
18287
  class: "nb-number-input__status"
18288
18288
  }, {
18289
- default: B(() => [d(P(e.warning), 1)]),
18289
+ default: V(() => [d(P(e.warning), 1)]),
18290
18290
  _: 1
18291
18291
  })) : c("", !0),
18292
18292
  u("div", LJt, [u("button", {
@@ -18294,7 +18294,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18294
18294
  class: b(["nb-number-input__stepper", { "nb-number-input__stepper--at-limit": _.value }]),
18295
18295
  disabled: e.disabled,
18296
18296
  "aria-label": "Decrease",
18297
- onMousedown: r[6] ||= U(() => {}, ["prevent"]),
18297
+ onMousedown: r[6] ||= W(() => {}, ["prevent"]),
18298
18298
  onClick: w
18299
18299
  }, [f(I8, {
18300
18300
  name: "minus",
@@ -18304,7 +18304,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18304
18304
  class: b(["nb-number-input__stepper", { "nb-number-input__stepper--at-limit": v.value }]),
18305
18305
  disabled: e.disabled,
18306
18306
  "aria-label": "Increase",
18307
- onMousedown: r[7] ||= U(() => {}, ["prevent"]),
18307
+ onMousedown: r[7] ||= W(() => {}, ["prevent"]),
18308
18308
  onClick: S
18309
18309
  }, [f(I8, {
18310
18310
  name: "plus",
@@ -18315,14 +18315,14 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18315
18315
  variant: "error",
18316
18316
  class: "nb-number-input__fluid-message"
18317
18317
  }, {
18318
- default: B(() => [d(P(e.error), 1)]),
18318
+ default: V(() => [d(P(e.error), 1)]),
18319
18319
  _: 1
18320
18320
  })) : e.warning ? (T(), s(h9, {
18321
18321
  key: 1,
18322
18322
  variant: "warning",
18323
18323
  class: "nb-number-input__fluid-message"
18324
18324
  }, {
18325
- default: B(() => [d(P(e.warning), 1)]),
18325
+ default: V(() => [d(P(e.warning), 1)]),
18326
18326
  _: 1
18327
18327
  })) : c("", !0)], 64)) : c("", !0)], 2));
18328
18328
  }
@@ -18430,11 +18430,11 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18430
18430
  height: e.height,
18431
18431
  "show-legend": e.showLegend && a.value.length > 0
18432
18432
  }, {
18433
- legend: B(() => [f(ye, { items: a.value.map((e) => ({
18433
+ legend: V(() => [f(ye, { items: a.value.map((e) => ({
18434
18434
  label: e.label,
18435
18435
  color: e.color
18436
18436
  })) }, null, 8, ["items"])]),
18437
- default: B(() => [u("div", {
18437
+ default: V(() => [u("div", {
18438
18438
  ref_key: "root",
18439
18439
  ref: r,
18440
18440
  class: "nb-pie-chart"
@@ -18531,7 +18531,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18531
18531
  let o = j("NbLabel"), f = j("NbMessage");
18532
18532
  return T(), l("div", { class: b(r.value) }, [
18533
18533
  e.label ? (T(), s(o, { key: 0 }, {
18534
- default: B(() => [d(P(e.label), 1)]),
18534
+ default: V(() => [d(P(e.label), 1)]),
18535
18535
  _: 1
18536
18536
  })) : c("", !0),
18537
18537
  u("div", { class: b(["nb-radio__group", `nb-radio__group--${e.direction}`]) }, [(T(!0), l(n, null, k(e.options, (n) => (T(), l("label", {
@@ -18552,21 +18552,21 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18552
18552
  variant: "error",
18553
18553
  class: "nb-radio__message"
18554
18554
  }, {
18555
- default: B(() => [d(P(e.error), 1)]),
18555
+ default: V(() => [d(P(e.error), 1)]),
18556
18556
  _: 1
18557
18557
  })) : e.warning ? (T(), s(f, {
18558
18558
  key: 2,
18559
18559
  variant: "warning",
18560
18560
  class: "nb-radio__message"
18561
18561
  }, {
18562
- default: B(() => [d(P(e.warning), 1)]),
18562
+ default: V(() => [d(P(e.warning), 1)]),
18563
18563
  _: 1
18564
18564
  })) : e.helper ? (T(), s(f, {
18565
18565
  key: 3,
18566
18566
  variant: "helper",
18567
18567
  class: "nb-radio__message"
18568
18568
  }, {
18569
- default: B(() => [d(P(e.helper), 1)]),
18569
+ default: V(() => [d(P(e.helper), 1)]),
18570
18570
  _: 1
18571
18571
  })) : c("", !0)
18572
18572
  ], 2);
@@ -18676,7 +18676,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18676
18676
  if (a.disabled) return;
18677
18677
  m.value = !0, R();
18678
18678
  let e = a.options ?? [];
18679
- g.value = M.value.length > 0 ? Math.max(0, e.findIndex((e) => e.value === M.value[0])) : -1, y(U);
18679
+ g.value = M.value.length > 0 ? Math.max(0, e.findIndex((e) => e.value === M.value[0])) : -1, y(W);
18680
18680
  }
18681
18681
  function te() {
18682
18682
  m.value = !1, g.value = -1;
@@ -18684,32 +18684,32 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18684
18684
  function ne() {
18685
18685
  m.value ? te() : ee();
18686
18686
  }
18687
- function re(e) {
18687
+ function z(e) {
18688
18688
  let t = e.target, n = _.value?.contains(t) ?? !1, r = C.value?.contains(t) ?? !1;
18689
18689
  !n && !r && te();
18690
18690
  }
18691
- function V() {
18691
+ function H() {
18692
18692
  m.value && R();
18693
18693
  }
18694
- z(m, (e) => {
18695
- e ? (document.addEventListener("mousedown", re), window.addEventListener("scroll", V, !0), window.addEventListener("resize", V)) : (document.removeEventListener("mousedown", re), window.removeEventListener("scroll", V, !0), window.removeEventListener("resize", V));
18694
+ B(m, (e) => {
18695
+ e ? (document.addEventListener("mousedown", z), window.addEventListener("scroll", H, !0), window.addEventListener("resize", H)) : (document.removeEventListener("mousedown", z), window.removeEventListener("scroll", H, !0), window.removeEventListener("resize", H));
18696
18696
  }), S(() => {
18697
- document.removeEventListener("mousedown", re), window.removeEventListener("scroll", V, !0), window.removeEventListener("resize", V);
18697
+ document.removeEventListener("mousedown", z), window.removeEventListener("scroll", H, !0), window.removeEventListener("resize", H);
18698
18698
  });
18699
- function H(e) {
18699
+ function U(e) {
18700
18700
  let t = a.options ?? [];
18701
18701
  if (!m.value) {
18702
18702
  (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), ee());
18703
18703
  return;
18704
18704
  }
18705
- e.key === "Escape" ? (te(), e.preventDefault()) : e.key === "Tab" ? te() : e.key === "ArrowDown" ? (e.preventDefault(), g.value = Math.min(g.value + 1, t.length - 1), U()) : e.key === "ArrowUp" ? (e.preventDefault(), g.value = Math.max(g.value - 1, 0), U()) : (e.key === "Enter" || e.key === " ") && g.value >= 0 && (e.preventDefault(), L(t[g.value]));
18705
+ e.key === "Escape" ? (te(), e.preventDefault()) : e.key === "Tab" ? te() : e.key === "ArrowDown" ? (e.preventDefault(), g.value = Math.min(g.value + 1, t.length - 1), W()) : e.key === "ArrowUp" ? (e.preventDefault(), g.value = Math.max(g.value - 1, 0), W()) : (e.key === "Enter" || e.key === " ") && g.value >= 0 && (e.preventDefault(), L(t[g.value]));
18706
18706
  }
18707
- function U() {
18707
+ function W() {
18708
18708
  y(() => {
18709
18709
  !C.value || g.value < 0 || C.value.querySelectorAll(".nb-select__option")[g.value]?.scrollIntoView({ block: "nearest" });
18710
18710
  });
18711
18711
  }
18712
- let ie = o(() => [
18712
+ let re = o(() => [
18713
18713
  "nb-select",
18714
18714
  `nb-select--${a.variant}`,
18715
18715
  `nb-select--${a.size}`,
@@ -18729,8 +18729,8 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18729
18729
  return T(), l(n, null, [u("div", {
18730
18730
  ref_key: "rootRef",
18731
18731
  ref: _,
18732
- class: b(ie.value),
18733
- onKeydown: H
18732
+ class: b(re.value),
18733
+ onKeydown: U
18734
18734
  }, [e.variant === "default" ? (T(), l(n, { key: 0 }, [
18735
18735
  t.$slots.label ? A(t.$slots, "label", { key: 0 }) : e.label ? (T(), s(a, {
18736
18736
  key: 1,
@@ -18738,7 +18738,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18738
18738
  required: e.required,
18739
18739
  disabled: e.disabled
18740
18740
  }, {
18741
- default: B(() => [d(P(e.label), 1)]),
18741
+ default: V(() => [d(P(e.label), 1)]),
18742
18742
  _: 1
18743
18743
  }, 8, [
18744
18744
  "for",
@@ -18768,7 +18768,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18768
18768
  "icon-only": !0,
18769
18769
  class: "nb-select__status-icon"
18770
18770
  }, {
18771
- default: B(() => [d(P(e.error), 1)]),
18771
+ default: V(() => [d(P(e.error), 1)]),
18772
18772
  _: 1
18773
18773
  })) : e.warning ? (T(), s(o, {
18774
18774
  key: 1,
@@ -18776,7 +18776,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18776
18776
  "icon-only": !0,
18777
18777
  class: "nb-select__status-icon"
18778
18778
  }, {
18779
- default: B(() => [d(P(e.warning), 1)]),
18779
+ default: V(() => [d(P(e.warning), 1)]),
18780
18780
  _: 1
18781
18781
  })) : c("", !0),
18782
18782
  f(y, {
@@ -18784,7 +18784,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18784
18784
  justify: "center",
18785
18785
  class: "nb-select__caret"
18786
18786
  }, {
18787
- default: B(() => [f(p, {
18787
+ default: V(() => [f(p, {
18788
18788
  name: m.value ? "caret-up" : "caret-down",
18789
18789
  size: 16
18790
18790
  }, null, 8, ["name"])]),
@@ -18796,21 +18796,21 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18796
18796
  variant: "error",
18797
18797
  class: "nb-select__message"
18798
18798
  }, {
18799
- default: B(() => [d(P(e.error), 1)]),
18799
+ default: V(() => [d(P(e.error), 1)]),
18800
18800
  _: 1
18801
18801
  })) : e.warning ? (T(), s(o, {
18802
18802
  key: 3,
18803
18803
  variant: "warning",
18804
18804
  class: "nb-select__message"
18805
18805
  }, {
18806
- default: B(() => [d(P(e.warning), 1)]),
18806
+ default: V(() => [d(P(e.warning), 1)]),
18807
18807
  _: 1
18808
18808
  })) : e.helper ? (T(), s(o, {
18809
18809
  key: 4,
18810
18810
  variant: "helper",
18811
18811
  class: "nb-select__message"
18812
18812
  }, {
18813
- default: B(() => [d(P(e.helper), 1)]),
18813
+ default: V(() => [d(P(e.helper), 1)]),
18814
18814
  _: 1
18815
18815
  })) : c("", !0)
18816
18816
  ], 64)) : e.variant === "fluid" ? (T(), l(n, { key: 1 }, [u("button", {
@@ -18835,13 +18835,13 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18835
18835
  gap: "xs",
18836
18836
  class: "nb-select__inner-header"
18837
18837
  }, {
18838
- default: B(() => [t.$slots.label ? A(t.$slots, "label", { key: 0 }) : (T(), l("label", QJt, [d(P(e.label) + " ", 1), e.required ? (T(), l("span", $Jt, "*")) : c("", !0)])), e.helper && !e.error && !e.warning ? (T(), s(o, {
18838
+ default: V(() => [t.$slots.label ? A(t.$slots, "label", { key: 0 }) : (T(), l("label", QJt, [d(P(e.label) + " ", 1), e.required ? (T(), l("span", $Jt, "*")) : c("", !0)])), e.helper && !e.error && !e.warning ? (T(), s(o, {
18839
18839
  key: 2,
18840
18840
  variant: "helper",
18841
18841
  "icon-only": !0,
18842
18842
  class: "nb-select__inner-message"
18843
18843
  }, {
18844
- default: B(() => [d(P(e.helper), 1)]),
18844
+ default: V(() => [d(P(e.helper), 1)]),
18845
18845
  _: 1
18846
18846
  })) : c("", !0)]),
18847
18847
  _: 3
@@ -18851,12 +18851,12 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18851
18851
  flex: "",
18852
18852
  class: "nb-select__value-row"
18853
18853
  }, {
18854
- default: B(() => [u("span", { class: b(["nb-select__value", { "nb-select__value--placeholder": !N.value }]) }, P(N.value || e.placeholder), 3), f(y, {
18854
+ default: V(() => [u("span", { class: b(["nb-select__value", { "nb-select__value--placeholder": !N.value }]) }, P(N.value || e.placeholder), 3), f(y, {
18855
18855
  align: "center",
18856
18856
  justify: "center",
18857
18857
  class: "nb-select__caret"
18858
18858
  }, {
18859
- default: B(() => [f(p, {
18859
+ default: V(() => [f(p, {
18860
18860
  name: m.value ? "caret-up" : "caret-down",
18861
18861
  size: 16
18862
18862
  }, null, 8, ["name"])]),
@@ -18868,14 +18868,14 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
18868
18868
  variant: "error",
18869
18869
  class: "nb-select__fluid-message"
18870
18870
  }, {
18871
- default: B(() => [d(P(e.error), 1)]),
18871
+ default: V(() => [d(P(e.error), 1)]),
18872
18872
  _: 1
18873
18873
  })) : e.warning ? (T(), s(o, {
18874
18874
  key: 1,
18875
18875
  variant: "warning",
18876
18876
  class: "nb-select__fluid-message"
18877
18877
  }, {
18878
- default: B(() => [d(P(e.warning), 1)]),
18878
+ default: V(() => [d(P(e.warning), 1)]),
18879
18879
  _: 1
18880
18880
  })) : c("", !0)], 64)) : c("", !0)], 34), (T(), s(r, { to: "body" }, [m.value ? (T(), l("div", {
18881
18881
  key: 0,
@@ -19012,7 +19012,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19012
19012
  "data-tooltip": e.tooltip || void 0,
19013
19013
  onClick: n[0] ||= (n) => e.disabled ? void 0 : t.$emit("click", n)
19014
19014
  }, {
19015
- default: B(() => [A(t.$slots, "default", {}, void 0, !0)]),
19015
+ default: V(() => [A(t.$slots, "default", {}, void 0, !0)]),
19016
19016
  _: 3
19017
19017
  }, 8, [
19018
19018
  "class",
@@ -19129,7 +19129,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19129
19129
  r.disabled || N(y(e));
19130
19130
  }
19131
19131
  function R(e) {
19132
- r.disabled || (i("change", r.range ? [h.value, g.value] : m.value), N(y(e))), re();
19132
+ r.disabled || (i("change", r.range ? [h.value, g.value] : m.value), N(y(e))), z();
19133
19133
  }
19134
19134
  function ee() {
19135
19135
  document.addEventListener("mousemove", F), document.addEventListener("mouseup", I);
@@ -19140,29 +19140,29 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19140
19140
  function ne() {
19141
19141
  document.addEventListener("touchmove", L, { passive: !0 }), document.addEventListener("touchend", R);
19142
19142
  }
19143
- function re() {
19143
+ function z() {
19144
19144
  p.value = null, document.removeEventListener("touchmove", L), document.removeEventListener("touchend", R);
19145
19145
  }
19146
- function z(e) {
19146
+ function B(e) {
19147
19147
  if (r.disabled) return;
19148
19148
  let t = y(e);
19149
19149
  p.value = M(t), N(t), ee();
19150
19150
  }
19151
- function V(e) {
19151
+ function H(e) {
19152
19152
  if (r.disabled) return;
19153
19153
  let t = y(e);
19154
19154
  p.value = M(t), N(t), ne();
19155
19155
  }
19156
- function H(e, t) {
19156
+ function U(e, t) {
19157
19157
  r.disabled || (p.value = r.range ? e : null, ee());
19158
19158
  }
19159
- function ie(e, t) {
19159
+ function re(e, t) {
19160
19160
  r.disabled || (p.value = r.range ? e : null, ne());
19161
19161
  }
19162
19162
  S(() => {
19163
- te(), re();
19163
+ te(), z();
19164
19164
  });
19165
- let ae = o(() => [
19165
+ let ie = o(() => [
19166
19166
  "nb-slider",
19167
19167
  `nb-slider--${r.size}`,
19168
19168
  `nb-slider--${r.variant}`,
@@ -19172,18 +19172,18 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19172
19172
  "nb-slider--error": !!r.error,
19173
19173
  "nb-slider--warning": !r.error && !!r.warning
19174
19174
  }
19175
- ]), oe = o(() => ({
19175
+ ]), ae = o(() => ({
19176
19176
  "nb-slider__track-area--error": !!r.error,
19177
19177
  "nb-slider__track-area--warning": !r.error && !!r.warning
19178
19178
  }));
19179
19179
  return (t, r) => {
19180
19180
  let i = j("NbLabel"), o = j("NbNumberInput"), p = j("NbGrid"), v = j("NbMessage");
19181
- return T(), l("div", { class: b(ae.value) }, [
19181
+ return T(), l("div", { class: b(ie.value) }, [
19182
19182
  e.variant === "default" && e.label ? (T(), s(i, {
19183
19183
  key: 0,
19184
19184
  class: "nb-slider__label"
19185
19185
  }, {
19186
- default: B(() => [d(P(e.label), 1)]),
19186
+ default: V(() => [d(P(e.label), 1)]),
19187
19187
  _: 1
19188
19188
  })) : c("", !0),
19189
19189
  u("div", CYt, [e.variant === "fluid" && e.label ? (T(), l("div", wYt, [u("label", TYt, P(e.label), 1)])) : c("", !0), f(p, {
@@ -19192,7 +19192,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19192
19192
  gap: "sm",
19193
19193
  class: "nb-slider__row"
19194
19194
  }, {
19195
- default: B(() => [
19195
+ default: V(() => [
19196
19196
  e.range && e.showInput ? (T(), s(o, {
19197
19197
  key: 0,
19198
19198
  size: e.variant === "fluid" ? "sm" : e.size,
@@ -19216,15 +19216,15 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19216
19216
  dir: "col",
19217
19217
  justify: "end",
19218
19218
  gap: "xs",
19219
- class: b(["nb-slider__track-area", oe.value]),
19219
+ class: b(["nb-slider__track-area", ae.value]),
19220
19220
  grow: ""
19221
19221
  }, {
19222
- default: B(() => [u("div", {
19222
+ default: V(() => [u("div", {
19223
19223
  ref_key: "trackRef",
19224
19224
  ref: a,
19225
19225
  class: "nb-slider__track",
19226
- onMousedown: z,
19227
- onTouchstartPassive: V
19226
+ onMousedown: B,
19227
+ onTouchstartPassive: H
19228
19228
  }, [u("div", {
19229
19229
  class: "nb-slider__track__fill",
19230
19230
  style: x(C.value)
@@ -19232,22 +19232,22 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19232
19232
  u("div", {
19233
19233
  class: "nb-slider__track__handle nb-slider__track__handle--low",
19234
19234
  style: x({ left: `${_(h.value)}%` }),
19235
- onMousedown: r[2] ||= U((e) => H("low", e), ["stop"]),
19236
- onTouchstartPassive: r[3] ||= U((e) => ie("low", e), ["stop"])
19235
+ onMousedown: r[2] ||= W((e) => U("low", e), ["stop"]),
19236
+ onTouchstartPassive: r[3] ||= W((e) => re("low", e), ["stop"])
19237
19237
  }, null, 36),
19238
19238
  u("div", {
19239
19239
  class: "nb-slider__track__handle nb-slider__track__handle--high",
19240
19240
  style: x({ left: `${_(g.value)}%` }),
19241
- onMousedown: r[4] ||= U((e) => H("high", e), ["stop"]),
19242
- onTouchstartPassive: r[5] ||= U((e) => ie("high", e), ["stop"])
19241
+ onMousedown: r[4] ||= W((e) => U("high", e), ["stop"]),
19242
+ onTouchstartPassive: r[5] ||= W((e) => re("high", e), ["stop"])
19243
19243
  }, null, 36),
19244
19244
  r[8] ||= u("div", { class: "nb-slider__tick" }, null, -1)
19245
19245
  ], 64)) : (T(), l("div", {
19246
19246
  key: 0,
19247
19247
  class: "nb-slider__track__handle",
19248
19248
  style: x({ left: `${_(m.value)}%` }),
19249
- onMousedown: r[0] ||= U((e) => H(null, e), ["stop"]),
19250
- onTouchstartPassive: r[1] ||= U((e) => ie(null, e), ["stop"])
19249
+ onMousedown: r[0] ||= W((e) => U(null, e), ["stop"]),
19250
+ onTouchstartPassive: r[1] ||= W((e) => re(null, e), ["stop"])
19251
19251
  }, null, 36))], 544), u("div", EYt, [u("span", DYt, P(e.min), 1), u("span", OYt, P(e.max), 1)])]),
19252
19252
  _: 1
19253
19253
  }, 8, ["class"]),
@@ -19278,21 +19278,21 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19278
19278
  variant: "error",
19279
19279
  class: "nb-slider__message"
19280
19280
  }, {
19281
- default: B(() => [d(P(e.error), 1)]),
19281
+ default: V(() => [d(P(e.error), 1)]),
19282
19282
  _: 1
19283
19283
  })) : e.warning ? (T(), s(v, {
19284
19284
  key: 2,
19285
19285
  variant: "warning",
19286
19286
  class: "nb-slider__message"
19287
19287
  }, {
19288
- default: B(() => [d(P(e.warning), 1)]),
19288
+ default: V(() => [d(P(e.warning), 1)]),
19289
19289
  _: 1
19290
19290
  })) : e.helper ? (T(), s(v, {
19291
19291
  key: 3,
19292
19292
  variant: "helper",
19293
19293
  class: "nb-slider__message"
19294
19294
  }, {
19295
- default: B(() => [d(P(e.helper), 1)]),
19295
+ default: V(() => [d(P(e.helper), 1)]),
19296
19296
  _: 1
19297
19297
  })) : c("", !0)
19298
19298
  ], 2);
@@ -19444,17 +19444,17 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19444
19444
  align: "center",
19445
19445
  gap: "sm"
19446
19446
  }, {
19447
- default: B(() => [e.label ? (T(), s(a9, {
19447
+ default: V(() => [e.label ? (T(), s(a9, {
19448
19448
  key: 0,
19449
19449
  for: `${F(r)}-input`,
19450
19450
  disabled: e.disabled
19451
19451
  }, {
19452
- default: B(() => [d(P(e.label), 1)]),
19452
+ default: V(() => [d(P(e.label), 1)]),
19453
19453
  _: 1
19454
19454
  }, 8, ["for", "disabled"])) : c("", !0), u("label", v({
19455
19455
  for: `${F(r)}-input`,
19456
19456
  class: l.value
19457
- }, i.value, { onClick: o[1] ||= U(() => {}, ["stop"]) }), [V(u("input", {
19457
+ }, i.value, { onClick: o[1] ||= W(() => {}, ["stop"]) }), [H(u("input", {
19458
19458
  id: `${F(r)}-input`,
19459
19459
  "onUpdate:modelValue": o[0] ||= (e) => t.value = e,
19460
19460
  name: e.name,
@@ -19585,7 +19585,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19585
19585
  function x() {
19586
19586
  f.value && a.value && (f.value.scrollTop = a.value.scrollTop);
19587
19587
  }
19588
- z(_, () => y(x));
19588
+ B(_, () => y(x));
19589
19589
  let S = o(() => r.error ? "error" : r.warning ? "warning" : "helper"), C = o(() => r.error ?? r.warning ?? r.helper ?? ""), w = o(() => !!C.value), E = o(() => ({
19590
19590
  "nb-text-input__field-wrapper--focused": p.value,
19591
19591
  "nb-text-input__field-wrapper--error": !!r.error,
@@ -19607,14 +19607,14 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19607
19607
  { "nb-text-input--multiline": e.multiline }
19608
19608
  ])
19609
19609
  }, {
19610
- default: B(() => [e.variant === "default" ? (T(), l(n, { key: 0 }, [
19610
+ default: V(() => [e.variant === "default" ? (T(), l(n, { key: 0 }, [
19611
19611
  t.$slots.label ? A(t.$slots, "label", { key: 0 }, void 0, !0) : e.label ? (T(), s(a9, {
19612
19612
  key: 1,
19613
19613
  for: h.value,
19614
19614
  required: e.required,
19615
19615
  disabled: e.disabled
19616
19616
  }, {
19617
- default: B(() => [d(P(e.label), 1)]),
19617
+ default: V(() => [d(P(e.label), 1)]),
19618
19618
  _: 1
19619
19619
  }, 8, [
19620
19620
  "for",
@@ -19667,7 +19667,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19667
19667
  onInput: r[3] ||= (e) => i.value = e.target.value,
19668
19668
  onFocus: r[4] ||= (e) => p.value = !0,
19669
19669
  onBlur: r[5] ||= (e) => p.value = !1
19670
- }), null, 16, zYt))])) : (T(), l(n, { key: 1 }, [e.multiline ? V((T(), l("textarea", v({
19670
+ }), null, 16, zYt))])) : (T(), l(n, { key: 1 }, [e.multiline ? H((T(), l("textarea", v({
19671
19671
  key: 0,
19672
19672
  id: h.value,
19673
19673
  ref_key: "nativeRef",
@@ -19683,7 +19683,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19683
19683
  rows: e.rows,
19684
19684
  onFocus: r[7] ||= (e) => p.value = !0,
19685
19685
  onBlur: r[8] ||= (e) => p.value = !1
19686
- }), null, 16, BYt)), [[ne, i.value]]) : V((T(), l("input", v({
19686
+ }), null, 16, BYt)), [[ne, i.value]]) : H((T(), l("input", v({
19687
19687
  key: 1,
19688
19688
  id: h.value,
19689
19689
  ref_key: "nativeRef",
@@ -19712,7 +19712,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19712
19712
  variant: S.value,
19713
19713
  class: "nb-text-input__message"
19714
19714
  }, {
19715
- default: B(() => [d(P(C.value), 1)]),
19715
+ default: V(() => [d(P(C.value), 1)]),
19716
19716
  _: 1
19717
19717
  }, 8, ["variant"])) : c("", !0),
19718
19718
  A(t.$slots, "dropdown", {}, void 0, !0)
@@ -19729,9 +19729,9 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19729
19729
  "icon-only": "",
19730
19730
  class: "nb-text-input__inner-message"
19731
19731
  }, {
19732
- default: B(() => [d(P(C.value), 1)]),
19732
+ default: V(() => [d(P(C.value), 1)]),
19733
19733
  _: 1
19734
- }, 8, ["variant"])) : c("", !0)])) : c("", !0), V(u("input", v({
19734
+ }, 8, ["variant"])) : c("", !0)])) : c("", !0), H(u("input", v({
19735
19735
  id: h.value,
19736
19736
  ref_key: "nativeRef",
19737
19737
  ref: a
@@ -19786,7 +19786,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
19786
19786
  }
19787
19787
  return C(p), w(() => {
19788
19788
  o && clearTimeout(o);
19789
- }), z(() => n.duration, (e) => {
19789
+ }), B(() => n.duration, (e) => {
19790
19790
  o && clearTimeout(o), s = e ?? 0, p();
19791
19791
  }), (t, n) => (T(), l("div", {
19792
19792
  class: b(["nb-toast", `nb-toast--${e.variant}`]),
@@ -20021,10 +20021,10 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20021
20021
  function ne(e) {
20022
20022
  e.preventDefault(), e.stopPropagation(), a && a.onDrop();
20023
20023
  }
20024
- function re() {
20024
+ function z() {
20025
20025
  a && a.onDragEnd();
20026
20026
  }
20027
- function z(e) {
20027
+ function B(e) {
20028
20028
  a && (e.key === "Enter" ? (e.preventDefault(), j()) : e.key === "ArrowRight" && h.value ? (e.preventDefault(), _.value || (a.toggle(n.id), r("toggle", n.id, !0))) : e.key === "ArrowLeft" ? (e.preventDefault(), _.value && (a.toggle(n.id), r("toggle", n.id, !1))) : e.key === "F2" && (e.preventDefault(), r("dblclick", n.id)));
20029
20029
  }
20030
20030
  return (t, n) => (T(), l("li", {
@@ -20045,15 +20045,15 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20045
20045
  "nb-tree-node--drop-after": k.value === "after",
20046
20046
  "nb-tree-node--drop-inside": k.value === "inside"
20047
20047
  }]),
20048
- onClick: U(j, ["stop"]),
20049
- onDblclick: U(N, ["stop"]),
20050
- onContextmenu: U(F, ["prevent"]),
20051
- onKeydown: z,
20048
+ onClick: W(j, ["stop"]),
20049
+ onDblclick: W(N, ["stop"]),
20050
+ onContextmenu: W(F, ["prevent"]),
20051
+ onKeydown: B,
20052
20052
  onDragstart: I,
20053
20053
  onDragover: ee,
20054
20054
  onDragleave: te,
20055
20055
  onDrop: ne,
20056
- onDragend: re
20056
+ onDragend: z
20057
20057
  }, [u("div", {
20058
20058
  class: "nb-tree-node__label",
20059
20059
  style: x({
@@ -20286,46 +20286,44 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20286
20286
  "connect",
20287
20287
  "disconnect",
20288
20288
  "move",
20289
- "selection-change"
20289
+ "selection-change",
20290
+ "focus"
20290
20291
  ],
20291
20292
  setup(e, { expose: t, emit: r }) {
20292
- let i = e, a = r, s = O(), d = O(0), f = O(0), p = O(1), m = O(0), h = O(/* @__PURE__ */ new Set());
20293
- function g(e) {
20294
- h.value = new Set(e), a("selection-change", e), _();
20293
+ let i = e, a = r, s = O(), d = O(0), f = O(0), p = O(1), m = O(0), h = O(/* @__PURE__ */ new Set()), g = O(null);
20294
+ function _(e) {
20295
+ g.value = e, a("focus", e);
20295
20296
  }
20296
- function _() {
20297
- s.value && s.value.querySelectorAll(".nb-blueprint-card").forEach((e) => {
20298
- let t = e.dataset.cardId;
20299
- t && e.classList.toggle("nb-blueprint-card--selected", h.value.has(t));
20300
- });
20297
+ function v(e) {
20298
+ h.value = new Set(e), a("selection-change", e);
20301
20299
  }
20302
- function v() {
20300
+ function w() {
20303
20301
  if (!s.value) return;
20304
20302
  let e = [];
20305
20303
  s.value.querySelectorAll("[data-card-id]").forEach((t) => {
20306
20304
  let n = t.dataset.cardId;
20307
20305
  n && e.push(n);
20308
- }), g(e);
20306
+ }), v(e);
20309
20307
  }
20310
- function w() {
20311
- g([]);
20312
- }
20313
- let E = O(!1);
20314
- function D(e) {
20315
- e.code === "Space" && !e.repeat && (E.value = !0, e.preventDefault());
20308
+ function E() {
20309
+ v([]), _(null);
20316
20310
  }
20311
+ let D = O(!1);
20317
20312
  function j(e) {
20318
- e.code === "Space" && (E.value = !1);
20313
+ e.code === "Space" && !e.repeat && (D.value = !0, e.preventDefault());
20319
20314
  }
20320
- let M = !1, N = 0, P = 0;
20321
- function I(e) {
20315
+ function M(e) {
20316
+ e.code === "Space" && (D.value = !1);
20317
+ }
20318
+ let N = !1, P = 0, I = 0;
20319
+ function L(e) {
20322
20320
  if (e.target.closest(".nb-blueprint-card__port")) return;
20323
20321
  if (e.button === 1) {
20324
- L(e);
20322
+ R(e);
20325
20323
  return;
20326
20324
  }
20327
- if (E.value) {
20328
- L(e);
20325
+ if (D.value) {
20326
+ R(e);
20329
20327
  return;
20330
20328
  }
20331
20329
  let t = e.target.closest(".nb-blueprint-card");
@@ -20333,27 +20331,28 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20333
20331
  ae(e, t);
20334
20332
  return;
20335
20333
  }
20336
- le(e);
20337
- }
20338
- function L(e) {
20339
- M = !0, N = e.clientX - d.value, P = e.clientY - f.value, document.addEventListener("mousemove", R), document.addEventListener("mouseup", ee);
20334
+ de(e);
20340
20335
  }
20341
20336
  function R(e) {
20342
- M && (d.value = e.clientX - N, f.value = e.clientY - P, m.value++);
20337
+ N = !0, P = e.clientX - d.value, I = e.clientY - f.value, document.addEventListener("mousemove", ee), document.addEventListener("mouseup", te);
20343
20338
  }
20344
- function ee() {
20345
- M = !1, document.removeEventListener("mousemove", R), document.removeEventListener("mouseup", ee);
20339
+ function ee(e) {
20340
+ N && (d.value = e.clientX - P, f.value = e.clientY - I, m.value++);
20346
20341
  }
20347
- function te(e) {
20342
+ function te() {
20343
+ N = !1, document.removeEventListener("mousemove", ee), document.removeEventListener("mouseup", te);
20344
+ }
20345
+ function ne(e) {
20348
20346
  let t = s.value?.getBoundingClientRect();
20349
- if (!t) return;
20350
- let n = p.value, r = e.deltaY > 0 ? -.1 : .1, i = Math.max(z9, Math.min(B9, n + r));
20351
- if (i === n) return;
20352
- let a = e.clientX - t.left, o = e.clientY - t.top, c = (a - d.value) / n, l = (o - f.value) / n;
20353
- d.value = a - c * i, f.value = o - l * i, p.value = i;
20347
+ if (t) if (e.ctrlKey) {
20348
+ let n = p.value, r = 1 - e.deltaY * .01, i = Math.max(z9, Math.min(B9, n * r));
20349
+ if (i === n) return;
20350
+ let a = e.clientX - t.left, o = e.clientY - t.top, s = (a - d.value) / n, c = (o - f.value) / n;
20351
+ d.value = a - s * i, f.value = o - c * i, p.value = i;
20352
+ } else d.value -= e.deltaX, f.value -= e.deltaY, m.value++;
20354
20353
  }
20355
- let ne = !1, re = 0, z = 0, B = /* @__PURE__ */ new Map(), V = !1;
20356
- function H(e) {
20354
+ let z = !1, B = 0, V = 0, H = /* @__PURE__ */ new Map(), U = !1;
20355
+ function re(e) {
20357
20356
  let t = e.parentElement;
20358
20357
  if (!t) return {
20359
20358
  x: 0,
@@ -20375,48 +20374,50 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20375
20374
  function ae(e, t) {
20376
20375
  let n = t.dataset.cardId;
20377
20376
  if (n) {
20378
- if (e.shiftKey) {
20377
+ if (B = e.clientX, V = e.clientY, U = !1, H = /* @__PURE__ */ new Map(), e.shiftKey) {
20379
20378
  let e = new Set(h.value);
20380
- e.has(n) ? e.delete(n) : e.add(n), g(Array.from(e));
20381
- } else h.value.has(n) || g([n]);
20382
- if (re = e.clientX, z = e.clientY, V = !1, B = /* @__PURE__ */ new Map(), s.value) for (let e of h.value) {
20383
- let t = s.value.querySelector(`[data-card-id="${e}"]`);
20384
- t && B.set(e, H(t));
20379
+ e.has(n) ? e.delete(n) : e.add(n), v(Array.from(e));
20380
+ } else h.value.has(n) || v([n]), _(n);
20381
+ y(() => {
20382
+ if (s.value) for (let e of h.value) {
20383
+ let t = s.value.querySelector(`[data-card-id="${e}"]`);
20384
+ t && H.set(e, re(t));
20385
+ }
20386
+ }), document.addEventListener("mousemove", se), document.addEventListener("mouseup", ce);
20387
+ }
20388
+ }
20389
+ function oe() {
20390
+ if (!s.value) return;
20391
+ let e = [];
20392
+ for (let t of H.keys()) {
20393
+ let n = s.value.querySelector(`[data-card-id="${t}"]`);
20394
+ if (n) {
20395
+ let r = re(n);
20396
+ e.push({
20397
+ id: t,
20398
+ x: Math.round(r.x),
20399
+ y: Math.round(r.y)
20400
+ });
20385
20401
  }
20386
- document.addEventListener("mousemove", oe), document.addEventListener("mouseup", se);
20387
20402
  }
20403
+ e.length && a("move", e);
20388
20404
  }
20389
- function oe(e) {
20390
- let t = (e.clientX - re) / p.value, n = (e.clientY - z) / p.value;
20391
- if (!(!ne && Math.abs(t * p.value) < V9 && Math.abs(n * p.value) < V9) && (ne = !0, V = !0, s.value)) {
20392
- for (let [e, r] of B) {
20405
+ function se(e) {
20406
+ let t = (e.clientX - B) / p.value, n = (e.clientY - V) / p.value;
20407
+ if (!(!z && Math.abs(t * p.value) < V9 && Math.abs(n * p.value) < V9) && (z = !0, U = !0, s.value)) {
20408
+ for (let [e, r] of H) {
20393
20409
  let i = s.value.querySelector(`[data-card-id="${e}"]`);
20394
20410
  i && ie(i, r.x + t, r.y + n);
20395
20411
  }
20396
- m.value++;
20412
+ oe(), m.value++;
20397
20413
  }
20398
20414
  }
20399
- function se() {
20400
- if (document.removeEventListener("mousemove", oe), document.removeEventListener("mouseup", se), V && s.value) {
20401
- let e = [];
20402
- for (let t of B.keys()) {
20403
- let n = s.value.querySelector(`[data-card-id="${t}"]`);
20404
- if (n) {
20405
- let r = H(n);
20406
- e.push({
20407
- id: t,
20408
- x: Math.round(r.x),
20409
- y: Math.round(r.y)
20410
- });
20411
- }
20412
- }
20413
- e.length && a("move", e);
20414
- }
20415
- ne = !1, V = !1, B = /* @__PURE__ */ new Map();
20415
+ function ce() {
20416
+ document.removeEventListener("mousemove", se), document.removeEventListener("mouseup", ce), U && oe(), z = !1, U = !1, H = /* @__PURE__ */ new Map();
20416
20417
  }
20417
- let W = O(null), ce = !1, G = o(() => {
20418
- if (!W.value) return {};
20419
- let { x1: e, y1: t, x2: n, y2: r } = W.value;
20418
+ let G = O(null), le = !1, ue = o(() => {
20419
+ if (!G.value) return {};
20420
+ let { x1: e, y1: t, x2: n, y2: r } = G.value;
20420
20421
  return {
20421
20422
  left: `${Math.min(e, n)}px`,
20422
20423
  top: `${Math.min(t, r)}px`,
@@ -20424,65 +20425,65 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20424
20425
  height: `${Math.abs(r - t)}px`
20425
20426
  };
20426
20427
  });
20427
- function le(e) {
20428
+ function de(e) {
20428
20429
  if (!s.value) return;
20429
20430
  let t = s.value.getBoundingClientRect(), n = e.clientX - t.left, r = e.clientY - t.top;
20430
- ce = e.shiftKey, ce || g([]), W.value = {
20431
+ le = e.shiftKey, le || v([]), G.value = {
20431
20432
  x1: n,
20432
20433
  y1: r,
20433
20434
  x2: n,
20434
20435
  y2: r
20435
- }, document.addEventListener("mousemove", ue), document.addEventListener("mouseup", de);
20436
+ }, document.addEventListener("mousemove", fe), document.addEventListener("mouseup", pe);
20436
20437
  }
20437
- function ue(e) {
20438
- if (!W.value || !s.value) return;
20438
+ function fe(e) {
20439
+ if (!G.value || !s.value) return;
20439
20440
  let t = s.value.getBoundingClientRect();
20440
- W.value.x2 = e.clientX - t.left, W.value.y2 = e.clientY - t.top;
20441
+ G.value.x2 = e.clientX - t.left, G.value.y2 = e.clientY - t.top;
20441
20442
  }
20442
- function de() {
20443
- if (document.removeEventListener("mousemove", ue), document.removeEventListener("mouseup", de), !W.value || !s.value) {
20444
- W.value = null;
20443
+ function pe() {
20444
+ if (document.removeEventListener("mousemove", fe), document.removeEventListener("mouseup", pe), !G.value || !s.value) {
20445
+ G.value = null;
20445
20446
  return;
20446
20447
  }
20447
- let e = s.value.getBoundingClientRect(), { x1: t, y1: n, x2: r, y2: i } = W.value, a = Math.min(t, r), o = Math.min(n, i), c = Math.max(t, r), l = Math.max(n, i);
20448
+ let e = s.value.getBoundingClientRect(), { x1: t, y1: n, x2: r, y2: i } = G.value, a = Math.min(t, r), o = Math.min(n, i), c = Math.max(t, r), l = Math.max(n, i);
20448
20449
  if (Math.abs(r - t) < V9 && Math.abs(i - n) < V9) {
20449
- ce || g([]), W.value = null;
20450
+ le || (v([]), _(null)), G.value = null;
20450
20451
  return;
20451
20452
  }
20452
- let u = ce ? [...h.value] : [];
20453
+ let u = le ? [...h.value] : [];
20453
20454
  s.value.querySelectorAll("[data-card-id]").forEach((t) => {
20454
20455
  let n = t.getBoundingClientRect(), r = n.left - e.left, i = n.top - e.top, s = r + n.width, d = i + n.height;
20455
20456
  if (r < c && s > a && i < l && d > o) {
20456
20457
  let e = t.dataset.cardId;
20457
20458
  e && !u.includes(e) && u.push(e);
20458
20459
  }
20459
- }), g(u), W.value = null;
20460
+ }), v(u), G.value = null;
20460
20461
  }
20461
- let fe = O(null), pe = null;
20462
- function me(e) {
20463
- pe = e, document.addEventListener("mousemove", he), document.addEventListener("mouseup", K);
20462
+ let me = O(null), he = null;
20463
+ function K(e) {
20464
+ he = e, document.addEventListener("mousemove", ge), document.addEventListener("mouseup", _e);
20464
20465
  }
20465
- function he(e) {
20466
- if (!pe || !s.value) return;
20467
- let t = s.value.getBoundingClientRect(), n = (e.clientX - t.left - d.value) / p.value, r = (e.clientY - t.top - f.value) / p.value, i = s.value.querySelector(`[data-port="${pe.nodeId}:${pe.portId}"]`);
20466
+ function ge(e) {
20467
+ if (!he || !s.value) return;
20468
+ let t = s.value.getBoundingClientRect(), n = (e.clientX - t.left - d.value) / p.value, r = (e.clientY - t.top - f.value) / p.value, i = s.value.querySelector(`[data-port="${he.nodeId}:${he.portId}"]`);
20468
20469
  if (!i) return;
20469
20470
  let a = i.getBoundingClientRect(), o = (a.left + a.width / 2 - t.left - d.value) / p.value, c = (a.top + a.height / 2 - t.top - f.value) / p.value, l = Math.abs(n - o) * .5;
20470
- fe.value = `M ${o} ${c} C ${o + l} ${c}, ${n - l} ${r}, ${n} ${r}`;
20471
+ me.value = `M ${o} ${c} C ${o + l} ${c}, ${n - l} ${r}, ${n} ${r}`;
20471
20472
  }
20472
- function K() {
20473
- pe = null, fe.value = null, document.removeEventListener("mousemove", he), document.removeEventListener("mouseup", K);
20473
+ function _e() {
20474
+ he = null, me.value = null, document.removeEventListener("mousemove", ge), document.removeEventListener("mouseup", _e);
20474
20475
  }
20475
- function ge(e) {
20476
- if (!pe || pe.nodeId === e.nodeId || pe.type === e.type) return;
20477
- let t = pe.type === "output" ? pe : e, n = pe.type === "output" ? e : pe;
20476
+ function ve(e) {
20477
+ if (!he || he.nodeId === e.nodeId || he.type === e.type) return;
20478
+ let t = he.type === "output" ? he : e, n = he.type === "output" ? e : he;
20478
20479
  a("connect", {
20479
20480
  fromNode: t.nodeId,
20480
20481
  fromPort: t.portId,
20481
20482
  toNode: n.nodeId,
20482
20483
  toPort: n.portId
20483
- }), pe = null, fe.value = null;
20484
+ }), he = null, me.value = null;
20484
20485
  }
20485
- function _e(e) {
20486
+ function ye(e) {
20486
20487
  let t = e.closest(".nb-blueprint-card");
20487
20488
  if (t) {
20488
20489
  let e = getComputedStyle(t).getPropertyValue("--nb-card-color").trim();
@@ -20490,7 +20491,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20490
20491
  }
20491
20492
  return "var(--nb-c-primary)";
20492
20493
  }
20493
- let ve = o(() => {
20494
+ let be = o(() => {
20494
20495
  if (m.value, !s.value) return [];
20495
20496
  let e = s.value.getBoundingClientRect();
20496
20497
  return i.connections.map((t) => {
@@ -20500,17 +20501,17 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20500
20501
  return {
20501
20502
  path: `M ${o} ${c} C ${o + m} ${c}, ${l - m} ${u}, ${l} ${u}`,
20502
20503
  conn: t,
20503
- color: _e(n)
20504
+ color: ye(n)
20504
20505
  };
20505
20506
  }).filter(Boolean);
20506
20507
  });
20507
- function ye() {
20508
+ function xe() {
20508
20509
  if (!s.value) return null;
20509
20510
  let e = s.value.querySelectorAll("[data-card-id]");
20510
20511
  if (e.length === 0) return null;
20511
20512
  let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
20512
20513
  return e.forEach((e) => {
20513
- let a = e, o = H(a), s = a.offsetWidth, c = a.offsetHeight;
20514
+ let a = e, o = re(a), s = a.offsetWidth, c = a.offsetHeight;
20514
20515
  t = Math.min(t, o.x), n = Math.min(n, o.y), r = Math.max(r, o.x + s), i = Math.max(i, o.y + c);
20515
20516
  }), {
20516
20517
  minX: t,
@@ -20519,9 +20520,9 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20519
20520
  maxY: i
20520
20521
  };
20521
20522
  }
20522
- function be() {
20523
+ function Se() {
20523
20524
  if (p.value = 1, !s.value) return;
20524
- let e = ye();
20525
+ let e = xe();
20525
20526
  if (!e) {
20526
20527
  d.value = 0, f.value = 0;
20527
20528
  return;
@@ -20529,31 +20530,31 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20529
20530
  let t = s.value.getBoundingClientRect(), n = (e.minX + e.maxX) / 2, r = (e.minY + e.maxY) / 2;
20530
20531
  d.value = t.width / 2 - n, f.value = t.height / 2 - r;
20531
20532
  }
20532
- function xe(e = 40) {
20533
+ function Ce(e = 40) {
20533
20534
  if (!s.value) return;
20534
- let t = ye();
20535
+ let t = xe();
20535
20536
  if (!t) {
20536
- Se();
20537
+ we();
20537
20538
  return;
20538
20539
  }
20539
20540
  let n = s.value.getBoundingClientRect(), r = t.maxX - t.minX, i = t.maxY - t.minY;
20540
20541
  if (r <= 0 || i <= 0) {
20541
- be();
20542
+ Se();
20542
20543
  return;
20543
20544
  }
20544
20545
  let a = n.width - e * 2, o = n.height - e * 2, c = a / r, l = o / i, u = Math.max(z9, Math.min(B9, Math.min(c, l))), m = (t.minX + t.maxX) / 2, h = (t.minY + t.maxY) / 2;
20545
20546
  p.value = u, d.value = n.width / 2 - m * u, f.value = n.height / 2 - h * u;
20546
20547
  }
20547
- function Se() {
20548
+ function we() {
20548
20549
  d.value = 0, f.value = 0, p.value = 1;
20549
20550
  }
20550
- function Ce() {
20551
+ function Te() {
20551
20552
  if (!s.value) return [];
20552
20553
  let e = [];
20553
20554
  for (let t of h.value) {
20554
20555
  let n = s.value.querySelector(`[data-card-id="${t}"]`);
20555
20556
  if (!n) continue;
20556
- let r = H(n);
20557
+ let r = re(n);
20557
20558
  e.push({
20558
20559
  id: t,
20559
20560
  el: n,
@@ -20565,7 +20566,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20565
20566
  }
20566
20567
  return e;
20567
20568
  }
20568
- function we(e) {
20569
+ function Ee(e) {
20569
20570
  let t = [];
20570
20571
  for (let n of e) ie(n.el, n.x, n.y), t.push({
20571
20572
  id: n.id,
@@ -20574,65 +20575,65 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20574
20575
  });
20575
20576
  t.length && (m.value++, a("move", t));
20576
20577
  }
20577
- function Te() {
20578
- let e = Ce();
20578
+ function De() {
20579
+ let e = Te();
20579
20580
  if (e.length < 2) return;
20580
20581
  let t = Math.min(...e.map((e) => e.x));
20581
- e.forEach((e) => e.x = t), we(e);
20582
+ e.forEach((e) => e.x = t), Ee(e);
20582
20583
  }
20583
- function Ee() {
20584
- let e = Ce();
20584
+ function Oe() {
20585
+ let e = Te();
20585
20586
  if (e.length < 2) return;
20586
20587
  let t = e.map((e) => e.x + e.w / 2), n = t.reduce((e, t) => e + t, 0) / t.length;
20587
- e.forEach((e) => e.x = n - e.w / 2), we(e);
20588
+ e.forEach((e) => e.x = n - e.w / 2), Ee(e);
20588
20589
  }
20589
- function De() {
20590
- let e = Ce();
20590
+ function ke() {
20591
+ let e = Te();
20591
20592
  if (e.length < 2) return;
20592
20593
  let t = Math.max(...e.map((e) => e.x + e.w));
20593
- e.forEach((e) => e.x = t - e.w), we(e);
20594
+ e.forEach((e) => e.x = t - e.w), Ee(e);
20594
20595
  }
20595
- function Oe() {
20596
- let e = Ce();
20596
+ function Ae() {
20597
+ let e = Te();
20597
20598
  if (e.length < 2) return;
20598
20599
  let t = Math.min(...e.map((e) => e.y));
20599
- e.forEach((e) => e.y = t), we(e);
20600
+ e.forEach((e) => e.y = t), Ee(e);
20600
20601
  }
20601
- function ke() {
20602
- let e = Ce();
20602
+ function je() {
20603
+ let e = Te();
20603
20604
  if (e.length < 2) return;
20604
20605
  let t = e.map((e) => e.y + e.h / 2), n = t.reduce((e, t) => e + t, 0) / t.length;
20605
- e.forEach((e) => e.y = n - e.h / 2), we(e);
20606
+ e.forEach((e) => e.y = n - e.h / 2), Ee(e);
20606
20607
  }
20607
- function Ae() {
20608
- let e = Ce();
20608
+ function Me() {
20609
+ let e = Te();
20609
20610
  if (e.length < 2) return;
20610
20611
  let t = Math.max(...e.map((e) => e.y + e.h));
20611
- e.forEach((e) => e.y = t - e.h), we(e);
20612
+ e.forEach((e) => e.y = t - e.h), Ee(e);
20612
20613
  }
20613
- function je() {
20614
- let e = Ce();
20614
+ function Ne() {
20615
+ let e = Te();
20615
20616
  if (e.length < 3) return;
20616
20617
  e.sort((e, t) => e.x - t.x);
20617
20618
  let t = e[0], n = e[e.length - 1], r = e.reduce((e, t) => e + t.w, 0), i = (n.x + n.w - t.x - r) / (e.length - 1), a = t.x + t.w + i;
20618
20619
  for (let t = 1; t < e.length - 1; t++) e[t].x = a, a += e[t].w + i;
20619
- we(e);
20620
+ Ee(e);
20620
20621
  }
20621
- function Me() {
20622
- let e = Ce();
20622
+ function Pe() {
20623
+ let e = Te();
20623
20624
  if (e.length < 3) return;
20624
20625
  e.sort((e, t) => e.y - t.y);
20625
20626
  let t = e[0], n = e[e.length - 1], r = e.reduce((e, t) => e + t.h, 0), i = (n.y + n.h - t.y - r) / (e.length - 1), a = t.y + t.h + i;
20626
20627
  for (let t = 1; t < e.length - 1; t++) e[t].y = a, a += e[t].h + i;
20627
- we(e);
20628
+ Ee(e);
20628
20629
  }
20629
- function Ne(e) {
20630
+ function Fe(e) {
20630
20631
  if (!s.value) return;
20631
20632
  let t = e?.gapX ?? 80, n = e?.gapY ?? 40, r = e?.padding ?? 60, a = [];
20632
20633
  if (s.value.querySelectorAll("[data-card-id]").forEach((e) => {
20633
20634
  let t = e, n = t.dataset.cardId;
20634
20635
  if (!n) return;
20635
- let r = H(t);
20636
+ let r = re(t);
20636
20637
  a.push({
20637
20638
  id: n,
20638
20639
  el: t,
@@ -20667,37 +20668,38 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20667
20668
  for (let e of s) e.x = m, e.y = a, a += e.h + n, i = Math.max(i, e.w);
20668
20669
  m += i + t;
20669
20670
  }
20670
- we(a);
20671
+ Ee(a);
20671
20672
  }
20672
- let Pe = new MutationObserver(() => {
20673
+ let Ie = new MutationObserver(() => {
20673
20674
  m.value++;
20674
20675
  });
20675
20676
  return C(() => {
20676
- s.value && Pe.observe(s.value, {
20677
+ s.value && Ie.observe(s.value, {
20677
20678
  childList: !0,
20678
20679
  subtree: !0,
20679
20680
  attributes: !0
20680
- }), window.addEventListener("keydown", D), window.addEventListener("keyup", j), y(() => y(xe));
20681
+ }), window.addEventListener("keydown", j), window.addEventListener("keyup", M), y(() => y(Ce));
20681
20682
  }), S(() => {
20682
- Pe.disconnect(), window.removeEventListener("keydown", D), window.removeEventListener("keyup", j);
20683
+ Ie.disconnect(), window.removeEventListener("keydown", j), window.removeEventListener("keyup", M);
20683
20684
  }), t({
20684
- centerView: be,
20685
- fitToView: xe,
20686
- resetView: Se,
20685
+ centerView: Se,
20686
+ fitToView: Ce,
20687
+ resetView: we,
20687
20688
  selectedIds: h,
20688
- selectAll: v,
20689
- deselectAll: w,
20690
- alignLeft: Te,
20691
- alignCenter: Ee,
20692
- alignRight: De,
20693
- alignTop: Oe,
20694
- alignMiddle: ke,
20695
- alignBottom: Ae,
20696
- distributeHorizontally: je,
20697
- distributeVertically: Me,
20698
- autoLayout: Ne,
20699
- onPortMouseDown: me,
20700
- onPortMouseUp: ge,
20689
+ focusedId: g,
20690
+ selectAll: w,
20691
+ deselectAll: E,
20692
+ alignLeft: De,
20693
+ alignCenter: Oe,
20694
+ alignRight: ke,
20695
+ alignTop: Ae,
20696
+ alignMiddle: je,
20697
+ alignBottom: Me,
20698
+ distributeHorizontally: Ne,
20699
+ distributeVertically: Pe,
20700
+ autoLayout: Fe,
20701
+ onPortMouseDown: K,
20702
+ onPortMouseUp: ve,
20701
20703
  panX: d,
20702
20704
  panY: f,
20703
20705
  zoom: p
@@ -20705,11 +20707,11 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20705
20707
  ref_key: "containerRef",
20706
20708
  ref: s,
20707
20709
  class: b(["nb-blueprint", {
20708
- "is-panning": F(M),
20709
- "is-space": E.value
20710
+ "is-panning": F(N),
20711
+ "is-space": D.value
20710
20712
  }]),
20711
- onMousedown: I,
20712
- onWheel: U(te, ["prevent"])
20713
+ onMousedown: L,
20714
+ onWheel: W(ne, ["prevent"])
20713
20715
  }, [
20714
20716
  t[0] ||= u("div", { class: "nb-blueprint__ambient" }, null, -1),
20715
20717
  u("div", {
@@ -20723,7 +20725,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20723
20725
  transformOrigin: "0 0"
20724
20726
  })
20725
20727
  }, [(T(), l("svg", _Xt, [
20726
- (T(!0), l(n, null, k(ve.value, (t, n) => (T(), l("path", {
20728
+ (T(!0), l(n, null, k(be.value, (t, n) => (T(), l("path", {
20727
20729
  key: n,
20728
20730
  d: t.path,
20729
20731
  fill: "none",
@@ -20733,7 +20735,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20733
20735
  style: x({ filter: `drop-shadow(0 0 6px ${t.color})` }),
20734
20736
  onClick: (n) => e.$emit("disconnect", t.conn)
20735
20737
  }, null, 12, vXt))), 128)),
20736
- (T(!0), l(n, null, k(ve.value, (e, t) => (T(), l("path", {
20738
+ (T(!0), l(n, null, k(be.value, (e, t) => (T(), l("path", {
20737
20739
  key: `flow-${t}`,
20738
20740
  d: e.path,
20739
20741
  fill: "none",
@@ -20743,9 +20745,9 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20743
20745
  class: "nb-blueprint__wire-flow",
20744
20746
  "pointer-events": "none"
20745
20747
  }, null, 8, yXt))), 128)),
20746
- fe.value ? (T(), l("path", {
20748
+ me.value ? (T(), l("path", {
20747
20749
  key: 0,
20748
- d: fe.value,
20750
+ d: me.value,
20749
20751
  fill: "none",
20750
20752
  stroke: "var(--nb-c-primary)",
20751
20753
  "stroke-width": "2",
@@ -20753,14 +20755,14 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20753
20755
  opacity: "0.6"
20754
20756
  }, null, 8, bXt)) : c("", !0)
20755
20757
  ])), A(e.$slots, "default", {}, void 0, !0)], 4),
20756
- W.value ? (T(), l("div", {
20758
+ G.value ? (T(), l("div", {
20757
20759
  key: 0,
20758
20760
  class: "nb-blueprint__marquee",
20759
- style: x(G.value)
20761
+ style: x(ue.value)
20760
20762
  }, null, 4)) : c("", !0)
20761
20763
  ], 34));
20762
20764
  }
20763
- }), [["__scopeId", "data-v-4c37a824"]]), xXt = ["data-card-id"], SXt = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--left" }, CXt = [
20765
+ }), [["__scopeId", "data-v-00b9225f"]]), xXt = ["data-card-id"], SXt = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--left" }, CXt = [
20764
20766
  "data-port",
20765
20767
  "title",
20766
20768
  "onMousedown",
@@ -20896,12 +20898,12 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20896
20898
  ]]),
20897
20899
  style: x({ "--pin-color": g(n) }),
20898
20900
  title: n.label,
20899
- onMousedown: U((r) => t.$emit("port-mousedown", {
20901
+ onMousedown: W((r) => t.$emit("port-mousedown", {
20900
20902
  nodeId: e.id,
20901
20903
  portId: n.id,
20902
20904
  type: "input"
20903
20905
  }), ["stop"]),
20904
- onMouseup: U((r) => t.$emit("port-mouseup", {
20906
+ onMouseup: W((r) => t.$emit("port-mouseup", {
20905
20907
  nodeId: e.id,
20906
20908
  portId: n.id,
20907
20909
  type: "input"
@@ -20911,7 +20913,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20911
20913
  u("button", {
20912
20914
  class: "nb-blueprint-card__collapse",
20913
20915
  title: e.collapsed ? "Expand" : "Collapse",
20914
- onClick: o[0] ||= U((n) => t.$emit("toggle-collapse", e.id), ["stop"])
20916
+ onClick: o[0] ||= W((n) => t.$emit("toggle-collapse", e.id), ["stop"])
20915
20917
  }, [...o[5] ||= [u("svg", {
20916
20918
  width: "14",
20917
20919
  height: "14",
@@ -20927,7 +20929,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20927
20929
  e.enabled === void 0 ? c("", !0) : (T(), l("label", {
20928
20930
  key: 0,
20929
20931
  class: "nb-blueprint-card__toggle",
20930
- onClick: o[2] ||= U(() => {}, ["stop"])
20932
+ onClick: o[2] ||= W(() => {}, ["stop"])
20931
20933
  }, [u("input", {
20932
20934
  type: "checkbox",
20933
20935
  checked: e.enabled,
@@ -20937,7 +20939,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20937
20939
  key: 1,
20938
20940
  class: "nb-blueprint-card__remove",
20939
20941
  title: "Remove",
20940
- onClick: o[3] ||= U((n) => t.$emit("remove", e.id), ["stop"])
20942
+ onClick: o[3] ||= W((n) => t.$emit("remove", e.id), ["stop"])
20941
20943
  }, " × ")) : c("", !0)
20942
20944
  ]), e.collapsed ? c("", !0) : (T(), l(n, { key: 0 }, [
20943
20945
  e.preview ? (T(), l("span", jXt, P(e.preview), 1)) : c("", !0),
@@ -20961,12 +20963,12 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20961
20963
  class: b(["nb-blueprint-card__port", [`nb-blueprint-card__port--${_(n)}`, p(n.id) ? "nb-blueprint-card__port--connected" : ""]]),
20962
20964
  style: x({ "--pin-color": g(n) }),
20963
20965
  title: n.label,
20964
- onMousedown: U((r) => t.$emit("port-mousedown", {
20966
+ onMousedown: W((r) => t.$emit("port-mousedown", {
20965
20967
  nodeId: e.id,
20966
20968
  portId: n.id,
20967
20969
  type: "output"
20968
20970
  }), ["stop"]),
20969
- onMouseup: U((r) => t.$emit("port-mouseup", {
20971
+ onMouseup: W((r) => t.$emit("port-mouseup", {
20970
20972
  nodeId: e.id,
20971
20973
  portId: n.id,
20972
20974
  type: "output"
@@ -20974,7 +20976,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
20974
20976
  }, null, 46, RXt))), 128))])
20975
20977
  ], 46, xXt));
20976
20978
  }
20977
- }), [["__scopeId", "data-v-cc50cebd"]]), zXt = {
20979
+ }), [["__scopeId", "data-v-5fcfcd01"]]), zXt = {
20978
20980
  NbAiLabel: le,
20979
20981
  NbBadge: pe,
20980
20982
  NbBarChart: Re,
@@ -21023,7 +21025,7 @@ var pJt = { class: "nb-command-palette__input-row" }, mJt = ["placeholder"], hJt
21023
21025
  Object.entries(zXt).forEach(([t, n]) => {
21024
21026
  e.component(t, n);
21025
21027
  });
21026
- } }, VXt = /* @__PURE__ */ ae({ default: () => HXt });
21028
+ } }, VXt = /* @__PURE__ */ ie({ default: () => HXt });
21027
21029
  function HXt(e) {
21028
21030
  e.directive("nb-context-menu", {
21029
21031
  mounted(e, t) {
@@ -21059,7 +21061,7 @@ function W9(e) {
21059
21061
  }
21060
21062
  //#endregion
21061
21063
  //#region src/directives/ToolTip.directive.ts
21062
- var UXt = /* @__PURE__ */ ae({ default: () => J9 }), G9 = /* @__PURE__ */ new Set(), K9 = (e) => {
21064
+ var UXt = /* @__PURE__ */ ie({ default: () => J9 }), G9 = /* @__PURE__ */ new Set(), K9 = (e) => {
21063
21065
  if (Array.isArray(e)) return e.map((e) => K9(e)).join("");
21064
21066
  if (!e || typeof e != "object" || !e.component) return "";
21065
21067
  let { component: t, props: n = {}, children: r, content: i } = e, a = r === void 0 ? i : r, o = Object.entries(n).map(([e, t]) => `${e}="${W9(String(t))}"`).join(" "), s = Array.isArray(a) ? K9(a) : a === void 0 ? "" : W9(String(a));