@nmorph/nmorph-ui-kit 1.0.9 → 1.0.10

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.es.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { createI18n as ft, useI18n as ke } from "vue-i18n";
2
2
  import { ref as y, reactive as ce, watch as q, readonly as De, inject as N, onMounted as ae, onUnmounted as he, nextTick as me, defineComponent as H, computed as c, openBlock as i, createElementBlock as d, normalizeClass as T, createElementVNode as f, createBlock as R, unref as v, renderSlot as B, toDisplayString as U, createCommentVNode as E, useCssVars as I, normalizeStyle as te, resolveDynamicComponent as _t, createTextVNode as oe, createVNode as S, withCtx as j, Fragment as K, renderList as X, provide as ee, Teleport as ge, withModifiers as re, mergeProps as ye, withDirectives as Oe, vShow as Ve, useSlots as Ee, TransitionGroup as be, withKeys as ve, resolveComponent as Pe } from "vue";
3
3
  const Se = (e) => {
4
- const { inputValue: l, rules: t } = e, a = y([]), n = y(!1), r = y(!1);
4
+ const { inputValue: l, rules: t } = e, a = y([]), n = y(!1), s = y(!1);
5
5
  return {
6
- touched: r,
6
+ touched: s,
7
7
  valid: n,
8
8
  errors: a,
9
9
  validate: () => {
@@ -19,7 +19,7 @@ const Se = (e) => {
19
19
  console.warn("The input value and the provided rules do not match");
20
20
  return;
21
21
  }
22
- if (r.value || (r.value = !0), w) {
22
+ if (s.value || (s.value = !0), w) {
23
23
  const b = t;
24
24
  a.value = b.reduce((x, h) => (u.match(h.pattern) || x.push(h.error), x), []);
25
25
  }
@@ -94,10 +94,10 @@ const Se = (e) => {
94
94
  }, gt = (e, l) => {
95
95
  console.log(`%c ${l} `, `background: ${Ze[e].bg}; color: ${Ze[e].text}`);
96
96
  }, yt = (e, l = !1) => {
97
- const t = ce({}), a = ce({}), n = ce(Je(e)), r = y(!1), s = y(!1), o = () => {
97
+ const t = ce({}), a = ce({}), n = ce(Je(e)), s = y(!1), r = y(!1), o = () => {
98
98
  Object.entries(e).forEach(([C, m]) => {
99
99
  a[C] = Se({ inputValue: m.value, rules: m.rules }), a[C].validate();
100
- }), r.value = Object.entries(a).every(([C, m]) => m.valid);
100
+ }), s.value = Object.entries(a).every(([C, m]) => m.valid);
101
101
  }, u = () => {
102
102
  Object.entries(e).forEach(([C, m]) => {
103
103
  t[C] = Se({ inputValue: m.value, rules: m.rules }), t[C].validate();
@@ -110,14 +110,14 @@ const Se = (e) => {
110
110
  p(n, C).forEach((g) => {
111
111
  const _ = C[g];
112
112
  t[g] = Se({ inputValue: _.value, rules: _.rules }), t[g].validate();
113
- }), Object.assign(n, Je(C)), o(), s.value = !0;
113
+ }), Object.assign(n, Je(C)), o(), r.value = !0;
114
114
  }, { deep: !0 }), l && u(), {
115
115
  fields: t,
116
- isFormValid: De(r),
117
- isAnyTouched: De(s)
116
+ isFormValid: De(s),
117
+ isAnyTouched: De(r)
118
118
  };
119
119
  }, nt = (e) => {
120
- const { initialPlacement: l, relativeElement: t, contentDOMElement: a, yOffset: n = 0, xOffset: r = 0 } = e, s = y(l), o = y({ x: "0px", y: "0px" }), u = N("nmorph"), p = y(null);
120
+ const { initialPlacement: l, relativeElement: t, contentDOMElement: a, yOffset: n = 0, xOffset: s = 0 } = e, r = y(l), o = y({ x: "0px", y: "0px" }), u = N("nmorph"), p = y(null);
121
121
  q(
122
122
  () => u.browser,
123
123
  () => {
@@ -155,11 +155,11 @@ const Se = (e) => {
155
155
  return;
156
156
  }
157
157
  const k = h.getBoundingClientRect(), { x: M, y: A } = k, P = k.width, $ = k.height, O = window.innerWidth, D = window.innerHeight;
158
- s.value === "top" && A - x < 0 && (s.value = "bottom"), s.value === "bottom" && A + $ + x > D && (s.value = "top"), s.value === "left" && M - b < 0 && (s.value = "right"), s.value === "right" && M + P + b > O && (s.value = "left"), s.value === "top" && (o.value = { x: `${M + r}px`, y: `${A - x + n}px` }), s.value === "bottom" && (o.value = { x: `${M + r}px`, y: `${A + $ + n}px` }), s.value === "right" && (o.value = { x: `${M + P + r}px`, y: `${A + n}px` }), s.value === "left" && (o.value = { x: `${M - b + r}px`, y: `${A + n}px` });
158
+ r.value === "top" && A - x < 0 && (r.value = "bottom"), r.value === "bottom" && A + $ + x > D && (r.value = "top"), r.value === "left" && M - b < 0 && (r.value = "right"), r.value === "right" && M + P + b > O && (r.value = "left"), r.value === "top" && (o.value = { x: `${M + s}px`, y: `${A - x + n}px` }), r.value === "bottom" && (o.value = { x: `${M + s}px`, y: `${A + $ + n}px` }), r.value === "right" && (o.value = { x: `${M + P + s}px`, y: `${A + n}px` }), r.value === "left" && (o.value = { x: `${M - b + s}px`, y: `${A + n}px` });
159
159
  });
160
160
  };
161
- return { placement: s, placementCoords: o };
162
- }, bt = "@nmorph/nmorph-ui-kit", kt = "module", $t = "1.0.9", xt = "MIT", wt = {
161
+ return { placement: r, placementCoords: o };
162
+ }, bt = "@nmorph/nmorph-ui-kit", kt = "module", $t = "1.0.10", xt = "MIT", wt = {
163
163
  node: "18.13.0",
164
164
  npm: "8.19.3"
165
165
  }, Ct = "./dist/index.d.ts", Mt = "./dist/index.umd.js", St = "./dist/index.es.js", Tt = "./dist/style.css", Bt = [
@@ -311,8 +311,8 @@ const Se = (e) => {
311
311
  }, Ie = (e, l) => {
312
312
  let t = parseInt(e.substring(1, 3), 16), a = parseInt(e.substring(3, 5), 16), n = parseInt(e.substring(5, 7), 16);
313
313
  t = Math.round(t * (1 + l / 100)), a = Math.round(a * (1 + l / 100)), n = Math.round(n * (1 + l / 100)), t = Math.min(255, Math.max(0, t)), a = Math.min(255, Math.max(0, a)), n = Math.min(255, Math.max(0, n));
314
- const r = t.toString(16).padStart(2, "0"), s = a.toString(16).padStart(2, "0"), o = n.toString(16).padStart(2, "0");
315
- return `#${r}${s}${o}`;
314
+ const s = t.toString(16).padStart(2, "0"), r = a.toString(16).padStart(2, "0"), o = n.toString(16).padStart(2, "0");
315
+ return `#${s}${r}${o}`;
316
316
  }, qt = (e) => {
317
317
  gt("warn", `NMORPH(v${Pt.version})`);
318
318
  const l = { ...jt, ...e }, t = (g) => {
@@ -347,17 +347,17 @@ const Se = (e) => {
347
347
  ${x}
348
348
  }
349
349
  `;
350
- }, r = {};
350
+ }, s = {};
351
351
  Object.entries(l.themes).forEach(([g, _]) => {
352
- r[g] = [];
352
+ s[g] = [];
353
353
  const b = !!_.darkShade, x = !!_.lightShade;
354
- !!_.main && !b && !x && (r[g] = t(_.main)), r[g] = [...r[g], ...a(_)];
354
+ !!_.main && !b && !x && (s[g] = t(_.main)), s[g] = [...s[g], ...a(_)];
355
355
  });
356
- const s = document.createElement("style");
357
- s.type = "text/css", s.innerHTML = n(r, l.other), document.head.appendChild(s);
356
+ const r = document.createElement("style");
357
+ r.type = "text/css", r.innerHTML = n(s, l.other), document.head.appendChild(r);
358
358
  const o = (g) => {
359
359
  u.value = g, p.setAttribute(pe, u.value), l.saveCurrentThemeToLS ? localStorage.setItem(pe, g) : localStorage.removeItem(pe);
360
- }, u = y(l.defaultTheme), p = document.querySelector("html"), w = localStorage.getItem(pe), C = r[w];
360
+ }, u = y(l.defaultTheme), p = document.querySelector("html"), w = localStorage.getItem(pe), C = s[w];
361
361
  l.saveCurrentThemeToLS && C && (u.value = localStorage.getItem(pe)), o(u.value);
362
362
  const m = l;
363
363
  return { setTheme: o, currentTheme: De(u), data: m, getDynamicColorVariables: t };
@@ -518,13 +518,13 @@ const Ae = {
518
518
  clearTimeout(t), t = setTimeout(() => {
519
519
  e.value.width = window.innerWidth, e.value.height = window.innerHeight;
520
520
  }, 400);
521
- }, r = () => {
521
+ }, s = () => {
522
522
  clearTimeout(a), a = setTimeout(() => {
523
523
  l.value = window.scrollY;
524
524
  }, 400);
525
525
  };
526
- return window && (window.addEventListener("resize", n), window.addEventListener("scroll", r)), he(() => {
527
- window.removeEventListener("resize", n), window.removeEventListener("scroll", r);
526
+ return window && (window.addEventListener("resize", n), window.addEventListener("scroll", s)), he(() => {
527
+ window.removeEventListener("resize", n), window.removeEventListener("scroll", s);
528
528
  }), {
529
529
  dimensions: e,
530
530
  scrollTop: l
@@ -536,16 +536,16 @@ const Ae = {
536
536
  fill: !0,
537
537
  width: "330px"
538
538
  }, t = (n) => {
539
- const r = {
539
+ const s = {
540
540
  id: String(Date.now()),
541
541
  ...l
542
- }, s = ce({
543
- ...r,
542
+ }, r = ce({
543
+ ...s,
544
544
  ...n
545
545
  });
546
- e.value.push(s), s.duration !== 0 && setTimeout(() => a(s.id), s.duration);
546
+ e.value.push(r), r.duration !== 0 && setTimeout(() => a(r.id), r.duration);
547
547
  }, a = (n) => {
548
- e.value = e.value.filter((r) => r.id !== n);
548
+ e.value = e.value.filter((s) => s.id !== n);
549
549
  };
550
550
  return {
551
551
  notifications: e,
@@ -581,11 +581,11 @@ const Ae = {
581
581
  `${t.icon && "icon"}`
582
582
  ]
583
583
  })
584
- ), n = y(null), r = {
584
+ ), n = y(null), s = {
585
585
  thin: "small",
586
586
  default: "medium",
587
587
  thick: "large"
588
- }, s = c(() => r[t.height]);
588
+ }, r = c(() => s[t.height]);
589
589
  return l({ buttonDOMElement: n }), (o, u) => (i(), d("div", {
590
590
  class: T(a.value)
591
591
  }, [
@@ -607,7 +607,7 @@ const Ae = {
607
607
  t.loading ? (i(), R(v(z), {
608
608
  key: 1,
609
609
  name: "loader",
610
- size: s.value
610
+ size: r.value
611
611
  }, null, 8, ["size"])) : E("", !0),
612
612
  B(o.$slots, "append")
613
613
  ]))
@@ -630,8 +630,8 @@ const ra = {
630
630
  path: { default: "" }
631
631
  },
632
632
  setup(e) {
633
- I((s) => ({
634
- "24a1af14": r.value
633
+ I((o) => ({
634
+ "367223c6": s.value
635
635
  }));
636
636
  const l = e, t = c(
637
637
  () => V({
@@ -642,27 +642,29 @@ const ra = {
642
642
  ]
643
643
  })
644
644
  ), a = y(null), n = c(() => {
645
- const s = {};
646
- return l.width && (s["--width"] = l.width), l.height && (s["--height"] = l.height), s;
647
- }), r = c(() => l.color);
645
+ const o = {};
646
+ return l.width && (o["--width"] = l.width), l.height && (o["--height"] = l.height), o;
647
+ }), s = c(() => l.color), r = {
648
+ audio: import("./audio-d94a2612.js")
649
+ };
648
650
  return q(
649
651
  () => l.name,
650
- async (s) => {
651
- if (s)
652
+ async (o) => {
653
+ if (o)
652
654
  try {
653
- a.value = (await import(`${l.path}assets/icons/${s}.svg`)).default;
654
- } catch (o) {
655
- console.error(`Icon ${s} could not be loaded`, o), a.value = null;
655
+ a.value = await r.audio;
656
+ } catch (u) {
657
+ console.error(`Icon ${o} could not be loaded`, u), a.value = null;
656
658
  }
657
659
  },
658
660
  { immediate: !0 }
659
- ), (s, o) => (i(), d("div", {
661
+ ), (o, u) => (i(), d("div", {
660
662
  class: T(t.value),
661
663
  style: te(n.value)
662
664
  }, [
663
665
  l.name ? (i(), d("div", ra, [
664
666
  (i(), R(_t(a.value)))
665
- ])) : B(s.$slots, "default", { key: 1 })
667
+ ])) : B(o.$slots, "default", { key: 1 })
666
668
  ], 6));
667
669
  }
668
670
  });
@@ -735,13 +737,13 @@ const Ro = /* @__PURE__ */ H({
735
737
  "6ab0c31b": Q.value,
736
738
  e0c171ca: m.value,
737
739
  "4956b50c": g.value,
738
- 73570806: s.value,
739
- 73570807: r.value,
740
+ 73570806: r.value,
741
+ 73570807: s.value,
740
742
  "14ef4acf": Y.value,
741
743
  "6253ec03": _.value,
742
744
  "634acaec": b.value
743
745
  }));
744
- const a = e, n = y(null), r = c(() => a.scrollYProp), s = c(() => a.scrollXProp), o = y(!1), u = y(!1), p = () => {
746
+ const a = e, n = y(null), s = c(() => a.scrollYProp), r = c(() => a.scrollXProp), o = y(!1), u = y(!1), p = () => {
745
747
  o.value = n.value?.scrollHeight > n.value?.clientHeight, u.value = n.value?.scrollWidth > n.value?.clientWidth;
746
748
  }, w = c(() => a.yBarWidthInPx + a.yGapInPx), C = c(() => a.xBarWidthInPx + a.xGapInPx), m = c(
747
749
  () => a.scrollYProp === "hidden" || !o.value ? "0" : `${w.value}px`
@@ -829,18 +831,18 @@ const va = /* @__PURE__ */ H({
829
831
  "11d2c240": u.value,
830
832
  "75c6801c": C.value
831
833
  }));
832
- const t = e, a = l, n = y(!1), r = c(
834
+ const t = e, a = l, n = y(!1), s = c(
833
835
  () => V({
834
836
  nmorph: [`${t.frameBorder > 0 && "shadow-combined"}`],
835
837
  "nmorph-avatar": [t.shape]
836
838
  })
837
- ), s = (g) => {
839
+ ), r = (g) => {
838
840
  a("error", g), n.value = !0;
839
841
  }, o = (g) => {
840
842
  a("load", g), n.value = !1;
841
843
  }, u = c(() => `${t.imagePadding}px`), p = c(() => ` ${t.size}px`), w = c(() => `${t.size / 100 * 60}px`), C = c(() => t.shape === "circle" ? "50%" : "4px"), m = c(() => `${t.frameBorder}px`);
842
844
  return (g, _) => (i(), d("div", {
843
- class: T(r.value)
845
+ class: T(s.value)
844
846
  }, [
845
847
  S(v(He), {
846
848
  fit: t.fit,
@@ -849,7 +851,7 @@ const va = /* @__PURE__ */ H({
849
851
  alt: t.alt,
850
852
  "frame-border": 0,
851
853
  onLoad: o,
852
- onError: s
854
+ onError: r
853
855
  }, {
854
856
  error: j(() => [
855
857
  S(v(z), {
@@ -897,15 +899,15 @@ const $e = (e, l) => {
897
899
  () => V({
898
900
  "nmorph-badge__container": [`${l.hidden && "hidden"}`]
899
901
  })
900
- ), n = c(() => typeof Number(l.value) == "number" && Number(l.value) > l.max ? `${l.max}+` : l.value), r = c(() => {
902
+ ), n = c(() => typeof Number(l.value) == "number" && Number(l.value) > l.max ? `${l.max}+` : l.value), s = c(() => {
901
903
  const p = `${(o?.value / 2 + l.offsetX) * -1}px`, w = `${(u?.value / 2 + l.offsetY) * -1}px`;
902
904
  return {
903
905
  x: p,
904
906
  y: w
905
907
  };
906
- }), s = y(null), o = y(0), u = y(0);
908
+ }), r = y(null), o = y(0), u = y(0);
907
909
  return ae(() => {
908
- s.value && (o.value = s.value.clientWidth, u.value = s.value.clientHeight);
910
+ r.value && (o.value = r.value.clientWidth, u.value = r.value.clientHeight);
909
911
  }), (p, w) => l.disabled ? B(p.$slots, "default", { key: 1 }) : (i(), d("div", {
910
912
  key: 0,
911
913
  class: T(t.value)
@@ -913,9 +915,9 @@ const $e = (e, l) => {
913
915
  B(p.$slots, "default"),
914
916
  f("div", {
915
917
  ref_key: "badge",
916
- ref: s,
918
+ ref: r,
917
919
  class: T(a.value),
918
- style: te({ right: r.value.x, top: r.value.y })
920
+ style: te({ right: s.value.x, top: s.value.y })
919
921
  }, [
920
922
  l.isDot ? (i(), d("div", ma)) : (i(), d("div", ha, [
921
923
  B(p.$slots, "value", {}, () => [
@@ -942,32 +944,32 @@ const fa = { class: "nmorph-calendar-header__text" }, _a = { class: "nmorph-cale
942
944
  "nmorph-calendar-header": []
943
945
  })
944
946
  );
945
- return (r, s) => (i(), d("div", {
947
+ return (s, r) => (i(), d("div", {
946
948
  class: T(n.value)
947
949
  }, [
948
- B(r.$slots, "default", {}, () => [
950
+ B(s.$slots, "default", {}, () => [
949
951
  f("div", fa, U(t.year) + " " + U(v(it)(t.month)), 1),
950
952
  f("div", _a, [
951
- r.showPreviousMonthButton ? (i(), R(v(G), {
953
+ s.showPreviousMonthButton ? (i(), R(v(G), {
952
954
  key: 0,
953
955
  class: "nmorph-calendar-header__action",
954
- onClick: s[0] || (s[0] = (o) => a("click-previous-month"))
956
+ onClick: r[0] || (r[0] = (o) => a("click-previous-month"))
955
957
  }, {
956
958
  default: j(() => [
957
959
  S(v(z), { name: "arrow-left" })
958
960
  ]),
959
961
  _: 1
960
962
  })) : E("", !0),
961
- r.showTodayButton ? (i(), R(v(G), {
963
+ s.showTodayButton ? (i(), R(v(G), {
962
964
  key: 1,
963
965
  class: "nmorph-calendar-header__action",
964
966
  text: "Today",
965
- onClick: s[1] || (s[1] = (o) => a("click-today"))
967
+ onClick: r[1] || (r[1] = (o) => a("click-today"))
966
968
  })) : E("", !0),
967
- r.showNextMonthButton ? (i(), R(v(G), {
969
+ s.showNextMonthButton ? (i(), R(v(G), {
968
970
  key: 2,
969
971
  class: "nmorph-calendar-header__action",
970
- onClick: s[2] || (s[2] = (o) => a("click-next-month"))
972
+ onClick: r[2] || (r[2] = (o) => a("click-next-month"))
971
973
  }, {
972
974
  default: j(() => [
973
975
  S(v(z), { name: "arrow-right" })
@@ -996,9 +998,9 @@ const ya = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct"
996
998
  },
997
999
  emits: ["update:model-value", "update-initial-date"],
998
1000
  setup(e, { emit: l }) {
999
- const t = e, a = l, { days: n } = Ye(), r = () => {
1001
+ const t = e, a = l, { days: n } = Ye(), s = () => {
1000
1002
  g.value = h.value;
1001
- }, s = () => {
1003
+ }, r = () => {
1002
1004
  g.value = /* @__PURE__ */ new Date();
1003
1005
  }, o = () => {
1004
1006
  g.value = k.value;
@@ -1029,7 +1031,7 @@ const ya = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct"
1029
1031
  const { monthType: O, hidden: D } = $;
1030
1032
  if (D)
1031
1033
  return;
1032
- O === "next" && o(), O === "previous" && r();
1034
+ O === "next" && o(), O === "previous" && s();
1033
1035
  const { date: Y } = $;
1034
1036
  if (t.type === "date" && (_.value = Y, a("update:model-value", _.value)), t.type === "dates") {
1035
1037
  if (!Array.isArray(_.value))
@@ -1107,8 +1109,8 @@ const ya = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct"
1107
1109
  "show-today-button": M.value.showTodayButton,
1108
1110
  "show-next-month-button": M.value.showNextMonthButton,
1109
1111
  onClickNextMonth: o,
1110
- onClickPreviousMonth: r,
1111
- onClickToday: s
1112
+ onClickPreviousMonth: s,
1113
+ onClickToday: r
1112
1114
  }, null, 8, ["year", "month", "show-previous-month-button", "show-today-button", "show-next-month-button"])
1113
1115
  ]),
1114
1116
  B($.$slots, "content", {}, () => [
@@ -1190,7 +1192,7 @@ const xa = (e) => {
1190
1192
  const { months: l } = Ye();
1191
1193
  return l[e];
1192
1194
  }, Sa = (e) => e % 4 === 0 && e % 100 !== 0 || e % 400 === 0, tt = (e, l) => [0, 2, 4, 6, 7, 9, 11].includes(l) ? 31 : [3, 5, 8, 10].includes(l) ? 30 : Sa(e) ? 29 : 28, ue = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Ta = (e, l) => {
1193
- const t = (F) => l ? F < ue(l[0]) || F > ue(l[1]) : !1, a = e.value.getFullYear(), n = e.value.getMonth(), s = new Date(a, n, 1).getDay() + 1, o = tt(a, n), u = 7 + s - 8;
1195
+ const t = (F) => l ? F < ue(l[0]) || F > ue(l[1]) : !1, a = e.value.getFullYear(), n = e.value.getMonth(), r = new Date(a, n, 1).getDay() + 1, o = tt(a, n), u = 7 + r - 8;
1194
1196
  let C = 7 - (new Date(a, n, o).getDay() + 1);
1195
1197
  const m = /* @__PURE__ */ new Date(), g = m.getDate(), _ = m.getMonth(), b = n - 1, x = tt(a, b);
1196
1198
  let h = x - u;
@@ -1255,7 +1257,7 @@ const xa = (e) => {
1255
1257
  "nmorph-card": [l.shadowType]
1256
1258
  })
1257
1259
  ), a = c(() => `${l.combinedShadowBorderWidth}px`);
1258
- return (n, r) => (i(), d("div", {
1260
+ return (n, s) => (i(), d("div", {
1259
1261
  class: T(t.value)
1260
1262
  }, [
1261
1263
  f("div", Ba, [
@@ -1281,7 +1283,7 @@ const Wo = /* @__PURE__ */ $e(Va, [["__scopeId", "data-v-e3cb136f"]]), Ha = ["id
1281
1283
  t.value = t.value + 1;
1282
1284
  }, n = () => {
1283
1285
  t.value = t.value - 1;
1284
- }, r = e, s = l, o = c(
1286
+ }, s = e, r = l, o = c(
1285
1287
  () => V({
1286
1288
  "nmorph-carousel": []
1287
1289
  })
@@ -1294,9 +1296,9 @@ const Wo = /* @__PURE__ */ $e(Va, [["__scopeId", "data-v-e3cb136f"]]), Ha = ["id
1294
1296
  t.value === 0 && (t.value = Object.keys(C).length, x.value = !1), t.value > Object.keys(C).length && (t.value = 1, x.value = !1);
1295
1297
  };
1296
1298
  ae(() => {
1297
- r.loop && t.value === 0 && (me(() => m()), w.value?.addEventListener("transitionend", g));
1299
+ s.loop && t.value === 0 && (me(() => m()), w.value?.addEventListener("transitionend", g));
1298
1300
  }), q(t, (M) => {
1299
- s("change", t.value), (M === 1 || M === Object.keys(C).length) && setTimeout(() => {
1301
+ r("change", t.value), (M === 1 || M === Object.keys(C).length) && setTimeout(() => {
1300
1302
  x.value = !0;
1301
1303
  });
1302
1304
  });
@@ -1363,14 +1365,14 @@ const Uo = /* @__PURE__ */ H({
1363
1365
  ), a = N("carousel-data", void 0), n = y(!1);
1364
1366
  return ae(() => {
1365
1367
  n.value = !0, a && a.data.value.push(l.name);
1366
- }), (r, s) => n.value ? (i(), d("div", {
1368
+ }), (s, r) => n.value ? (i(), d("div", {
1367
1369
  key: 0,
1368
1370
  class: T(t.value)
1369
1371
  }, [
1370
1372
  (i(), R(ge, {
1371
1373
  to: `#nmorph-carousel-item-${v(a)?.carouselId}-${l.name}`
1372
1374
  }, [
1373
- B(r.$slots, "default")
1375
+ B(s.$slots, "default")
1374
1376
  ], 8, ["to"]))
1375
1377
  ], 2)) : E("", !0);
1376
1378
  }
@@ -1398,16 +1400,16 @@ const Uo = /* @__PURE__ */ H({
1398
1400
  const p = a.value.indexOf(o);
1399
1401
  u && p === -1 && a.value.push(o), !u && p !== -1 && a.value.splice(p, 1);
1400
1402
  }
1401
- r("update:model-value", a.value);
1403
+ s("update:model-value", a.value);
1402
1404
  };
1403
1405
  ee("collapse-data", a), ee("update-model", n);
1404
- const r = l, s = c(
1406
+ const s = l, r = c(
1405
1407
  () => V({
1406
1408
  "nmorph-collapse": []
1407
1409
  })
1408
1410
  );
1409
1411
  return (o, u) => (i(), d("div", {
1410
- class: T(s.value)
1412
+ class: T(r.value)
1411
1413
  }, [
1412
1414
  B(o.$slots, "default")
1413
1415
  ], 2));
@@ -1423,11 +1425,11 @@ const Uo = /* @__PURE__ */ H({
1423
1425
  },
1424
1426
  emits: ["click-item"],
1425
1427
  setup(e, { emit: l }) {
1426
- const t = e, a = l, n = y(!1), r = c(
1428
+ const t = e, a = l, n = y(!1), s = c(
1427
1429
  () => V({
1428
1430
  "nmorph-collapse-item": [`${t.disabled && "disabled"}`, `${n.value && "is-open"}`]
1429
1431
  })
1430
- ), s = c(
1432
+ ), r = c(
1431
1433
  () => V({
1432
1434
  nmorph: [se[t.height]]
1433
1435
  })
@@ -1445,11 +1447,11 @@ const Uo = /* @__PURE__ */ H({
1445
1447
  ), q(n, () => {
1446
1448
  w.value = n.value && p.value ? p.value?.clientHeight : 0;
1447
1449
  }), (m, g) => (i(), d("div", {
1448
- class: T(r.value),
1450
+ class: T(s.value),
1449
1451
  onClick: re(C, ["stop"])
1450
1452
  }, [
1451
1453
  f("div", {
1452
- class: T(["nmorph-collapse-item__title", s.value])
1454
+ class: T(["nmorph-collapse-item__title", r.value])
1453
1455
  }, [
1454
1456
  B(m.$slots, "title", {}, () => [
1455
1457
  oe(U(t.title), 1)
@@ -1493,16 +1495,16 @@ const Aa = ["src", "alt", "srcset"], Fa = {
1493
1495
  "038c8bec": _.value,
1494
1496
  "6b4fbaa3": g.value
1495
1497
  }));
1496
- const { t } = ke(), a = e, n = c(() => a.loadingText ? a.loadingText : t("NmorphImage.loadingText")), r = c(
1498
+ const { t } = ke(), a = e, n = c(() => a.loadingText ? a.loadingText : t("NmorphImage.loadingText")), s = c(
1497
1499
  () => a.loadFailedText ? a.loadFailedText : t("NmorphImage.loadFailedText")
1498
- ), s = y(!1), o = y(!1), u = l, p = (b) => {
1499
- s.value = !0, o.value = !1, u("load", b);
1500
+ ), r = y(!1), o = y(!1), u = l, p = (b) => {
1501
+ r.value = !0, o.value = !1, u("load", b);
1500
1502
  }, w = (b) => {
1501
- s.value = !0, o.value = !0, u("error", b);
1502
- }, C = c(() => s.value && o.value), m = c(
1503
+ r.value = !0, o.value = !0, u("error", b);
1504
+ }, C = c(() => r.value && o.value), m = c(
1503
1505
  () => V({
1504
1506
  nmorph: [`${a.frameBorder > 0 && "shadow-combined"}`],
1505
- "nmorph-image": [`${(C.value || !s.value) && "hide"}`]
1507
+ "nmorph-image": [`${(C.value || !r.value) && "hide"}`]
1506
1508
  })
1507
1509
  ), g = c(() => a.fit), _ = c(() => `${a.frameBorder}px`);
1508
1510
  return (b, x) => a.src ? (i(), d("div", {
@@ -1518,9 +1520,9 @@ const Aa = ["src", "alt", "srcset"], Fa = {
1518
1520
  }, null, 40, Aa),
1519
1521
  C.value ? (i(), d("div", Fa, [
1520
1522
  B(b.$slots, "error", {}, () => [
1521
- oe(U(r.value), 1)
1523
+ oe(U(s.value), 1)
1522
1524
  ], !0)
1523
- ])) : s.value ? E("", !0) : (i(), d("div", Ra, [
1525
+ ])) : r.value ? E("", !0) : (i(), d("div", Ra, [
1524
1526
  B(b.$slots, "loading", {}, () => [
1525
1527
  oe(U(n.value), 1)
1526
1528
  ], !0)
@@ -1556,7 +1558,7 @@ const He = /* @__PURE__ */ $e(za, [["__scopeId", "data-v-4c8df10c"]]), ja = { cl
1556
1558
  () => V({
1557
1559
  "nmorph-image-preview": [`${a.value && "opened"}`]
1558
1560
  })
1559
- ), r = y(t.initialIndex), s = c(() => typeof t.src == "string" ? t.src : t.src[r.value]), o = y(1), u = () => {
1561
+ ), s = y(t.initialIndex), r = c(() => typeof t.src == "string" ? t.src : t.src[s.value]), o = y(1), u = () => {
1560
1562
  a.value = !0, $("update:model-value", a.value);
1561
1563
  }, p = () => {
1562
1564
  a.value = !1, $("update:model-value", a.value);
@@ -1573,11 +1575,11 @@ const He = /* @__PURE__ */ $e(za, [["__scopeId", "data-v-4c8df10c"]]), ja = { cl
1573
1575
  }, x = () => {
1574
1576
  o.value = 1;
1575
1577
  }, h = y(0), k = () => {
1576
- const D = t.src.length - 1, Y = r.value - 1;
1577
- Y < 0 ? r.value = D : r.value = Y;
1578
+ const D = t.src.length - 1, Y = s.value - 1;
1579
+ Y < 0 ? s.value = D : s.value = Y;
1578
1580
  }, M = () => {
1579
- const D = t.src.length - 1, Y = r.value + 1;
1580
- Y > D ? r.value = 0 : r.value = Y;
1581
+ const D = t.src.length - 1, Y = s.value + 1;
1582
+ Y > D ? s.value = 0 : s.value = Y;
1581
1583
  }, A = c(() => {
1582
1584
  let D = {
1583
1585
  icon: "shrink",
@@ -1613,7 +1615,7 @@ const He = /* @__PURE__ */ $e(za, [["__scopeId", "data-v-4c8df10c"]]), ja = { cl
1613
1615
  onClick: u
1614
1616
  }, [
1615
1617
  S(v(He), {
1616
- src: s.value,
1618
+ src: r.value,
1617
1619
  alt: t.alt,
1618
1620
  fit: "cover"
1619
1621
  }, null, 8, ["src", "alt"])
@@ -1625,7 +1627,7 @@ const He = /* @__PURE__ */ $e(za, [["__scopeId", "data-v-4c8df10c"]]), ja = { cl
1625
1627
  default: j(() => [
1626
1628
  f("div", ja, [
1627
1629
  S(v(He), {
1628
- src: s.value,
1630
+ src: r.value,
1629
1631
  alt: t.alt,
1630
1632
  fit: "cover",
1631
1633
  style: te({ transform: `rotate(${h.value}deg) scale(${o.value})` })
@@ -1700,9 +1702,9 @@ const Qo = /* @__PURE__ */ H({
1700
1702
  () => V({
1701
1703
  "nmorph-pagination": [`${t.disabled && "disabled"}`]
1702
1704
  })
1703
- ), r = () => {
1705
+ ), s = () => {
1704
1706
  o.value = String(Number(o.value) - 1);
1705
- }, s = () => {
1707
+ }, r = () => {
1706
1708
  o.value = String(Number(o.value) + 1);
1707
1709
  }, o = y(String(t.modelValue)), u = c(() => {
1708
1710
  const b = t.totalElementsQuantity / t.elementsQuantityOnPage + 1, x = b % 1 === 0 ? -1 : 0;
@@ -1737,7 +1739,7 @@ const Qo = /* @__PURE__ */ H({
1737
1739
  S(v(G), {
1738
1740
  class: "nmorph-pagination__btn nmorph-pagination__prev-btn",
1739
1741
  disabled: C.value || t.disabled,
1740
- onClick: r
1742
+ onClick: s
1741
1743
  }, {
1742
1744
  default: j(() => [
1743
1745
  S(v(z), {
@@ -1778,7 +1780,7 @@ const Qo = /* @__PURE__ */ H({
1778
1780
  S(v(G), {
1779
1781
  class: "nmorph-pagination__btn nmorph-pagination__next-btn",
1780
1782
  disabled: m.value || t.disabled,
1781
- onClick: s
1783
+ onClick: r
1782
1784
  }, {
1783
1785
  default: j(() => [
1784
1786
  S(v(z), {
@@ -1818,16 +1820,16 @@ const Qa = {
1818
1820
  I((m) => ({
1819
1821
  "1ae927c9": a.value,
1820
1822
  "588931e9": n.value,
1821
- "781c6b0a": r.value,
1823
+ "781c6b0a": s.value,
1822
1824
  "58c45d38": w.value
1823
1825
  }));
1824
1826
  const l = e, t = c(
1825
1827
  () => V({
1826
1828
  "nmorph-progress": []
1827
1829
  })
1828
- ), a = c(() => `${l.percentage}%`), n = c(() => Array.isArray(l.color) ? l.color.find((m) => m.percentage <= l.percentage)?.color : typeof l.color == "function" ? l.color(l.percentage) : l.color), r = c(() => l.indeterminate ? "var(--animation)" : "none"), s = y(null), o = y(1), u = c(() => `${o.value} ${o.value}`), p = c(() => o.value - l.percentage / 100 * o.value);
1830
+ ), a = c(() => `${l.percentage}%`), n = c(() => Array.isArray(l.color) ? l.color.find((m) => m.percentage <= l.percentage)?.color : typeof l.color == "function" ? l.color(l.percentage) : l.color), s = c(() => l.indeterminate ? "var(--animation)" : "none"), r = y(null), o = y(1), u = c(() => `${o.value} ${o.value}`), p = c(() => o.value - l.percentage / 100 * o.value);
1829
1831
  ae(() => {
1830
- s.value && (o.value = 2 * Math.PI * s.value.r.baseVal.value);
1832
+ r.value && (o.value = 2 * Math.PI * r.value.r.baseVal.value);
1831
1833
  });
1832
1834
  const w = c(() => `${l.circleSize}px`), C = c(() => `${l.percentage}%`);
1833
1835
  return (m, g) => (i(), d("div", {
@@ -1861,7 +1863,7 @@ const Qa = {
1861
1863
  }, [
1862
1864
  f("circle", {
1863
1865
  ref_key: "circle",
1864
- ref: s,
1866
+ ref: r,
1865
1867
  class: "nmorph-progress__circle-ring",
1866
1868
  cx: l.circleSize / 2,
1867
1869
  cy: l.circleSize / 2,
@@ -1894,8 +1896,8 @@ const tl = {
1894
1896
  class: T(t.value)
1895
1897
  }, [
1896
1898
  l.rows && l.loading ? (i(), d("div", tl, [
1897
- (i(!0), d(K, null, X(l.rows, (r) => (i(), R(v(sl), {
1898
- key: r,
1899
+ (i(!0), d(K, null, X(l.rows, (s) => (i(), R(v(sl), {
1900
+ key: s,
1899
1901
  width: "100%",
1900
1902
  height: "14px",
1901
1903
  variant: "rect"
@@ -1924,7 +1926,7 @@ const ol = { class: "nmorph-skeleton-item__element" }, sl = /* @__PURE__ */ H({
1924
1926
  design: { default: "nmorph" }
1925
1927
  },
1926
1928
  setup(e) {
1927
- I((r) => ({
1929
+ I((s) => ({
1928
1930
  "085cc1bc": a.value,
1929
1931
  "2d27081e": n.value
1930
1932
  }));
@@ -1933,7 +1935,7 @@ const ol = { class: "nmorph-skeleton-item__element" }, sl = /* @__PURE__ */ H({
1933
1935
  "nmorph-skeleton-item": [l.variant, `${l.design === "nmorph" ? "nmorph-design" : ""}`]
1934
1936
  })
1935
1937
  ), a = c(() => l.width), n = c(() => l.height);
1936
- return (r, s) => (i(), d("div", {
1938
+ return (s, r) => (i(), d("div", {
1937
1939
  class: T(t.value)
1938
1940
  }, [
1939
1941
  f("div", ol, [
@@ -1958,17 +1960,17 @@ const we = "10px", rl = /* @__PURE__ */ H({
1958
1960
  () => V({
1959
1961
  "nmorph-sort-button": [`${t.value}`]
1960
1962
  })
1961
- ), r = () => {
1962
- const s = t.value === "ascending" ? "descending" : "ascending";
1963
- a("sort", s);
1963
+ ), s = () => {
1964
+ const r = t.value === "ascending" ? "descending" : "ascending";
1965
+ a("sort", r);
1964
1966
  };
1965
- return (s, o) => (i(), d("div", {
1967
+ return (r, o) => (i(), d("div", {
1966
1968
  class: T(n.value)
1967
1969
  }, [
1968
1970
  S(v(G), {
1969
1971
  height: "thin",
1970
1972
  "style-type": "transparent",
1971
- onClick: r
1973
+ onClick: s
1972
1974
  }, {
1973
1975
  default: j(() => [
1974
1976
  S(v(z), {
@@ -2003,7 +2005,7 @@ const il = { class: "nmorph-table__wrapper" }, ul = { class: "nmorph-table__head
2003
2005
  () => V({
2004
2006
  "nmorph-table": [`${l.design}`]
2005
2007
  })
2006
- ), a = y(l.data), n = y(l.sort), r = (g, _) => {
2008
+ ), a = y(l.data), n = y(l.sort), s = (g, _) => {
2007
2009
  n.value && (n.value[_] = g, a.value.sort((b, x) => {
2008
2010
  const h = String(b[_]).toLowerCase(), k = String(x[_]).toLowerCase();
2009
2011
  if (!n.value)
@@ -2011,11 +2013,11 @@ const il = { class: "nmorph-table__wrapper" }, ul = { class: "nmorph-table__head
2011
2013
  const M = n.value[_];
2012
2014
  return M === "ascending" ? h.localeCompare(k) : M === "descending" ? k.localeCompare(h) : 0;
2013
2015
  }));
2014
- }, s = y(null), o = y([]);
2016
+ }, r = y(null), o = y([]);
2015
2017
  ee("table-data", { rows: a, columns: o });
2016
2018
  const u = c(() => {
2017
2019
  const g = o.value.map((k) => k.width).filter((k) => !!k), _ = g.length, b = g.reduce((k, M) => (k += Number(M), k), 0), x = o.value.length - _;
2018
- return s.value?.clientWidth ? (s.value?.clientWidth - b) / x : 0;
2020
+ return r.value?.clientWidth ? (r.value?.clientWidth - b) / x : 0;
2019
2021
  }), p = (g) => g !== "" ? g : u.value, w = y(0);
2020
2022
  q(
2021
2023
  () => l.data,
@@ -2029,7 +2031,7 @@ const il = { class: "nmorph-table__wrapper" }, ul = { class: "nmorph-table__head
2029
2031
  const C = (g) => typeof g == "object" ? "" : g, m = de();
2030
2032
  return ee("table-identifier", m), (g, _) => (i(), d("div", {
2031
2033
  ref_key: "nmorphDOMTable",
2032
- ref: s,
2034
+ ref: r,
2033
2035
  key: w.value,
2034
2036
  class: T(t.value)
2035
2037
  }, [
@@ -2058,7 +2060,7 @@ const il = { class: "nmorph-table__wrapper" }, ul = { class: "nmorph-table__head
2058
2060
  key: 0,
2059
2061
  class: "nmorph-table__button-wrapper",
2060
2062
  value: n.value[b.prop],
2061
- onSort: (h) => r(h, b.prop)
2063
+ onSort: (h) => s(h, b.prop)
2062
2064
  }, null, 8, ["value", "onSort"])) : E("", !0)
2063
2065
  ], 4)
2064
2066
  ])
@@ -2118,16 +2120,16 @@ const _l = /* @__PURE__ */ H({
2118
2120
  () => V({
2119
2121
  "nmorph-table-cell": []
2120
2122
  })
2121
- ), r = c(() => `#table-cell-${t}-${a.row}-${l}`), s = y(!1);
2123
+ ), s = c(() => `#table-cell-${t}-${a.row}-${l}`), r = y(!1);
2122
2124
  return ae(async () => {
2123
2125
  await me();
2124
- const o = document.querySelector(r.value);
2125
- o && (o.innerHTML = ""), s.value = !0;
2126
- }), (o, u) => s.value ? (i(), d("div", {
2126
+ const o = document.querySelector(s.value);
2127
+ o && (o.innerHTML = ""), r.value = !0;
2128
+ }), (o, u) => r.value ? (i(), d("div", {
2127
2129
  key: 0,
2128
2130
  class: T(n.value)
2129
2131
  }, [
2130
- (i(), R(ge, { to: r.value }, [
2132
+ (i(), R(ge, { to: s.value }, [
2131
2133
  B(o.$slots, "default")
2132
2134
  ], 8, ["to"]))
2133
2135
  ], 2)) : E("", !0);
@@ -2145,20 +2147,20 @@ const _l = /* @__PURE__ */ H({
2145
2147
  () => V({
2146
2148
  "nmorph-table-column": []
2147
2149
  })
2148
- ), r = y(0);
2150
+ ), s = y(0);
2149
2151
  ee("column-property", a.prop), ee("table-identifier", t), ae(() => {
2150
- s();
2152
+ r();
2151
2153
  });
2152
- const s = () => {
2154
+ const r = () => {
2153
2155
  if (!l?.columns.value)
2154
2156
  return;
2155
2157
  const { columns: u } = l;
2156
- r.value = u.value.length + 1, l.columns.value = [...u.value, { ...a, id: r.value }];
2158
+ s.value = u.value.length + 1, l.columns.value = [...u.value, { ...a, id: s.value }];
2157
2159
  }, o = y(null);
2158
2160
  return (u, p) => (i(), d("div", {
2159
2161
  ref_key: "columnDOMEl",
2160
2162
  ref: o,
2161
- "data-id": r.value,
2163
+ "data-id": s.value,
2162
2164
  class: T(n.value)
2163
2165
  }, [
2164
2166
  B(u.$slots, "default", {
@@ -2178,17 +2180,17 @@ const _l = /* @__PURE__ */ H({
2178
2180
  "nmorph-list": []
2179
2181
  })
2180
2182
  );
2181
- let r = y(t.modelValue);
2182
- const s = (o) => {
2183
- r.value = r.value.filter((u) => u.value !== o), a("close", o), a("update:model-value", r.value);
2183
+ let s = y(t.modelValue);
2184
+ const r = (o) => {
2185
+ s.value = s.value.filter((u) => u.value !== o), a("close", o), a("update:model-value", s.value);
2184
2186
  };
2185
2187
  return (o, u) => (i(), d("div", {
2186
2188
  class: T(n.value)
2187
2189
  }, [
2188
- (i(!0), d(K, null, X(v(r), (p) => (i(), R(v(ut), ye({
2190
+ (i(!0), d(K, null, X(v(s), (p) => (i(), R(v(ut), ye({
2189
2191
  key: p.value,
2190
2192
  ref_for: !0
2191
- }, p, { onClose: s }), null, 16))), 128))
2193
+ }, p, { onClose: r }), null, 16))), 128))
2192
2194
  ], 2));
2193
2195
  }
2194
2196
  }), bl = { class: "nmorph-tag-item__content" }, ut = /* @__PURE__ */ H({
@@ -2207,19 +2209,19 @@ const _l = /* @__PURE__ */ H({
2207
2209
  nmorph: [se[t.height]],
2208
2210
  "nmorph-tag-item": [`${t.design === "nmorph" ? "nmorph-design" : ""}`]
2209
2211
  })
2210
- ), n = l, r = () => {
2212
+ ), n = l, s = () => {
2211
2213
  n("close", t.value);
2212
2214
  };
2213
- return (s, o) => (i(), d("div", {
2215
+ return (r, o) => (i(), d("div", {
2214
2216
  class: T(a.value)
2215
2217
  }, [
2216
2218
  f("div", bl, [
2217
- f("span", null, U(s.text), 1),
2219
+ f("span", null, U(r.text), 1),
2218
2220
  t.removable ? (i(), R(v(z), {
2219
2221
  key: 0,
2220
2222
  class: "nmorph-tag-item__close-icon",
2221
2223
  name: "error",
2222
- onClick: re(r, ["stop"])
2224
+ onClick: re(s, ["stop"])
2223
2225
  })) : E("", !0)
2224
2226
  ])
2225
2227
  ], 2));
@@ -2254,9 +2256,9 @@ const kl = ["innerHTML"], $l = {
2254
2256
  () => V({
2255
2257
  "nmorph-alert": [t.type, `${t.bordered && "bordered"}`, `${t.fill && "fill"}`]
2256
2258
  })
2257
- ), r = () => {
2259
+ ), s = () => {
2258
2260
  a("close");
2259
- }, s = {
2261
+ }, r = {
2260
2262
  [_e.success]: "success-filled",
2261
2263
  [_e.warning]: "warn-triangle-filled",
2262
2264
  [_e.info]: "info-filled",
@@ -2275,7 +2277,7 @@ const kl = ["innerHTML"], $l = {
2275
2277
  t.showIcon ? (i(), d("div", wl, [
2276
2278
  B(p.$slots, "icon", {}, () => [
2277
2279
  S(v(z), {
2278
- name: s[t.type],
2280
+ name: r[t.type],
2279
2281
  size: "medium"
2280
2282
  }, null, 8, ["name"])
2281
2283
  ])
@@ -2296,7 +2298,7 @@ const kl = ["innerHTML"], $l = {
2296
2298
  t.closable ? (i(), d("div", {
2297
2299
  key: 0,
2298
2300
  class: "nmorph-alert__close",
2299
- onClick: r
2301
+ onClick: s
2300
2302
  }, [
2301
2303
  S(v(z), {
2302
2304
  name: "cross",
@@ -2325,14 +2327,14 @@ const Bl = { class: "nmorph-dialog__header" }, Dl = { class: "nmorph-dialog__tit
2325
2327
  emits: ["on-close", "update:model-value"],
2326
2328
  setup(e, { emit: l }) {
2327
2329
  I((m) => ({
2328
- "097fcdea": r.value,
2329
- "4478cc6c": s.value
2330
+ "097fcdea": s.value,
2331
+ "4478cc6c": r.value
2330
2332
  }));
2331
2333
  const t = e, a = l, n = c(
2332
2334
  () => V({
2333
2335
  "nmorph-dialog": []
2334
2336
  })
2335
- ), r = c(() => t.width), s = c(() => t.zIndex), o = y(t.modelValue);
2337
+ ), s = c(() => t.width), r = c(() => t.zIndex), o = y(t.modelValue);
2336
2338
  let u = null, p = null;
2337
2339
  q(
2338
2340
  () => t.modelValue,
@@ -2399,14 +2401,14 @@ const Vl = { class: "nmorph-tooltip__shadow-content" }, Hl = {
2399
2401
  I((m) => ({
2400
2402
  "6d1447a0": w.value
2401
2403
  }));
2402
- const t = e, a = y(t.forceShow), n = y(null), r = y(null), { placement: s } = nt({
2404
+ const t = e, a = y(t.forceShow), n = y(null), s = y(null), { placement: r } = nt({
2403
2405
  initialPlacement: t.position,
2404
2406
  contentDOMElement: n,
2405
- relativeElement: r
2407
+ relativeElement: s
2406
2408
  }), o = c(
2407
2409
  () => V({
2408
2410
  "nmorph-tooltip": [
2409
- s.value,
2411
+ r.value,
2410
2412
  `${!!t.forceCoordinate?.x && !!t.forceCoordinate?.y && "force-coords"}`
2411
2413
  ]
2412
2414
  })
@@ -2427,7 +2429,7 @@ const Vl = { class: "nmorph-tooltip__shadow-content" }, Hl = {
2427
2429
  }, [
2428
2430
  f("div", {
2429
2431
  ref_key: "slotDOMRef",
2430
- ref: r
2432
+ ref: s
2431
2433
  }, [
2432
2434
  B(m.$slots, "default")
2433
2435
  ], 512),
@@ -2508,42 +2510,42 @@ const Rl = {
2508
2510
  ), n = N(
2509
2511
  "change-checkbox-value-handler",
2510
2512
  void 0
2511
- ), r = e;
2513
+ ), s = e;
2512
2514
  q(
2513
- () => r.modelValue,
2515
+ () => s.modelValue,
2514
2516
  (g) => {
2515
2517
  u.value = g;
2516
2518
  }
2517
2519
  );
2518
- const s = y(null);
2519
- l({ inputDOMRef: s });
2520
- const o = a !== void 0, u = o ? y(a.value) : y(r.modelValue), p = c(() => o ? a.value.includes(r.id) : r.modelValue), w = t, C = () => {
2521
- if (!r.disabled) {
2520
+ const r = y(null);
2521
+ l({ inputDOMRef: r });
2522
+ const o = a !== void 0, u = o ? y(a.value) : y(s.modelValue), p = c(() => o ? a.value.includes(s.id) : s.modelValue), w = t, C = () => {
2523
+ if (!s.disabled) {
2522
2524
  if (!o) {
2523
2525
  u.value = !u.value, w("update:model-value", u.value);
2524
2526
  return;
2525
2527
  }
2526
- n && Array.isArray(u.value) && n(r.id, u.value);
2528
+ n && Array.isArray(u.value) && n(s.id, u.value);
2527
2529
  }
2528
2530
  }, m = c(
2529
2531
  () => V({
2530
2532
  "nmorph-checkbox": [
2531
2533
  `${p.value && "checked"}`,
2532
- `${r.disabled && "disabled"}`,
2533
- `${r.design === "button" && "button"}`
2534
+ `${s.disabled && "disabled"}`,
2535
+ `${s.design === "button" && "button"}`
2534
2536
  ]
2535
2537
  })
2536
2538
  );
2537
2539
  return (g, _) => (i(), d("label", {
2538
2540
  class: T(m.value)
2539
2541
  }, [
2540
- r.design === "checkbox" ? (i(), d("div", Rl, [
2542
+ s.design === "checkbox" ? (i(), d("div", Rl, [
2541
2543
  f("div", zl, [
2542
2544
  f("input", {
2543
2545
  ref_key: "inputDOMRef",
2544
- ref: s,
2546
+ ref: r,
2545
2547
  type: "checkbox",
2546
- disabled: r.disabled,
2548
+ disabled: s.disabled,
2547
2549
  checked: p.value,
2548
2550
  class: "nmorph-native-input",
2549
2551
  onChange: C
@@ -2551,23 +2553,23 @@ const Rl = {
2551
2553
  _[0] || (_[0] = f("div", { class: "nmorph-checkbox__fake" }, null, -1)),
2552
2554
  p.value ? (i(), d("div", Wl)) : E("", !0)
2553
2555
  ]),
2554
- r.label ? (i(), d("div", Yl, [
2555
- f("span", null, U(r.label), 1)
2556
+ s.label ? (i(), d("div", Yl, [
2557
+ f("span", null, U(s.label), 1)
2556
2558
  ])) : (i(), d("div", Ul, [
2557
2559
  B(g.$slots, "default")
2558
2560
  ]))
2559
2561
  ])) : E("", !0),
2560
- r.design === "button" ? (i(), d("div", ql, [
2562
+ s.design === "button" ? (i(), d("div", ql, [
2561
2563
  f("input", {
2562
2564
  ref_key: "inputDOMRef",
2563
- ref: s,
2565
+ ref: r,
2564
2566
  type: "checkbox",
2565
- disabled: r.disabled,
2567
+ disabled: s.disabled,
2566
2568
  checked: p.value,
2567
2569
  onChange: C
2568
2570
  }, null, 40, Gl),
2569
- r.label ? (i(), d("div", Ql, [
2570
- f("span", null, U(r.label), 1)
2571
+ s.label ? (i(), d("div", Ql, [
2572
+ f("span", null, U(s.label), 1)
2571
2573
  ])) : (i(), d("div", Kl, [
2572
2574
  B(g.$slots, "label")
2573
2575
  ]))
@@ -2587,15 +2589,15 @@ const Jl = { class: "nmorph-checkbox-group__wrapper" }, Zl = { class: "nmorph-ch
2587
2589
  },
2588
2590
  emits: ["update:model-value"],
2589
2591
  setup(e, { emit: l }) {
2590
- const t = e, a = y(t.modelValue), n = l, r = (o) => {
2592
+ const t = e, a = y(t.modelValue), n = l, s = (o) => {
2591
2593
  a.value.includes(o) ? a.value = a.value.filter((u) => u !== o) : a.value.push(o), n("update:model-value", a.value);
2592
- }, s = c(
2594
+ }, r = c(
2593
2595
  () => V({
2594
2596
  "nmorph-checkbox-group": [t.design, t.direction]
2595
2597
  })
2596
2598
  );
2597
- return ee("checkbox-group-selected-value", a), ee("change-checkbox-value-handler", r), (o, u) => (i(), d("div", {
2598
- class: T(s.value)
2599
+ return ee("checkbox-group-selected-value", a), ee("change-checkbox-value-handler", s), (o, u) => (i(), d("div", {
2600
+ class: T(r.value)
2599
2601
  }, [
2600
2602
  f("div", Jl, [
2601
2603
  f("div", Zl, [
@@ -2632,11 +2634,11 @@ const Nl = { class: "nmorph-autocomplete__input-content" }, Il = {
2632
2634
  },
2633
2635
  emits: ["update:model-value", "select"],
2634
2636
  setup(e, { emit: l }) {
2635
- const t = e, a = y(t.modelValue), n = l, r = c(
2637
+ const t = e, a = y(t.modelValue), n = l, s = c(
2636
2638
  () => V({
2637
2639
  "nmorph-autocomplete": []
2638
2640
  })
2639
- ), s = (_) => {
2641
+ ), r = (_) => {
2640
2642
  a.value = _, n("update:model-value", a.value);
2641
2643
  }, o = y(!1), u = y(null), p = () => {
2642
2644
  o.value = !1;
@@ -2656,7 +2658,7 @@ const Nl = { class: "nmorph-autocomplete__input-content" }, Il = {
2656
2658
  }), q(g, (_) => {
2657
2659
  _ && (o.value = !0);
2658
2660
  }), (_, b) => (i(), d("div", {
2659
- class: T(r.value)
2661
+ class: T(s.value)
2660
2662
  }, [
2661
2663
  f("div", Nl, [
2662
2664
  f("div", {
@@ -2671,7 +2673,7 @@ const Nl = { class: "nmorph-autocomplete__input-content" }, Il = {
2671
2673
  placeholder: t.placeholder,
2672
2674
  clearable: t.clearable,
2673
2675
  onFocus: m,
2674
- "onUpdate:modelValue": s
2676
+ "onUpdate:modelValue": r
2675
2677
  }, null, 8, ["height", "disabled", "model-value", "placeholder", "clearable"])
2676
2678
  ], 512)
2677
2679
  ]),
@@ -2716,12 +2718,12 @@ const tn = /* @__PURE__ */ H({
2716
2718
  "nmorph-input-clear-button": []
2717
2719
  })
2718
2720
  );
2719
- return (n, r) => (i(), d("div", {
2721
+ return (n, s) => (i(), d("div", {
2720
2722
  class: T(a.value)
2721
2723
  }, [
2722
2724
  S(v(z), {
2723
2725
  name: "error",
2724
- onClick: r[0] || (r[0] = re((s) => t("clear"), ["stop"]))
2726
+ onClick: s[0] || (s[0] = re((r) => t("clear"), ["stop"]))
2725
2727
  })
2726
2728
  ], 2));
2727
2729
  }
@@ -2738,14 +2740,14 @@ const tn = /* @__PURE__ */ H({
2738
2740
  "nmorph-date-picker-header": []
2739
2741
  })
2740
2742
  );
2741
- return (r, s) => (i(), d("div", {
2743
+ return (s, r) => (i(), d("div", {
2742
2744
  class: T(n.value)
2743
2745
  }, [
2744
2746
  f("div", an, [
2745
2747
  S(v(G), {
2746
2748
  class: "nmorph-date-picker-header__action-btn",
2747
2749
  "style-type": "transparent",
2748
- onClick: s[0] || (s[0] = (o) => a("prev-year")),
2750
+ onClick: r[0] || (r[0] = (o) => a("prev-year")),
2749
2751
  tabindex: -1
2750
2752
  }, {
2751
2753
  default: j(() => [
@@ -2759,7 +2761,7 @@ const tn = /* @__PURE__ */ H({
2759
2761
  S(v(G), {
2760
2762
  class: "nmorph-date-picker-header__action-btn",
2761
2763
  "style-type": "transparent",
2762
- onClick: s[1] || (s[1] = (o) => a("prev-month")),
2764
+ onClick: r[1] || (r[1] = (o) => a("prev-month")),
2763
2765
  tabindex: -1
2764
2766
  }, {
2765
2767
  default: j(() => [
@@ -2776,14 +2778,14 @@ const tn = /* @__PURE__ */ H({
2776
2778
  text: t.year,
2777
2779
  "style-type": "transparent",
2778
2780
  fill: "",
2779
- onClick: s[2] || (s[2] = (o) => a("change-year")),
2781
+ onClick: r[2] || (r[2] = (o) => a("change-year")),
2780
2782
  tabindex: -1
2781
2783
  }, null, 8, ["text"]),
2782
2784
  S(v(G), {
2783
2785
  text: v(it)(t.month),
2784
2786
  "style-type": "transparent",
2785
2787
  fill: "",
2786
- onClick: s[3] || (s[3] = (o) => a("change-month")),
2788
+ onClick: r[3] || (r[3] = (o) => a("change-month")),
2787
2789
  tabindex: -1
2788
2790
  }, null, 8, ["text"])
2789
2791
  ]),
@@ -2791,7 +2793,7 @@ const tn = /* @__PURE__ */ H({
2791
2793
  S(v(G), {
2792
2794
  class: "nmorph-date-picker-header__action-btn",
2793
2795
  "style-type": "transparent",
2794
- onClick: s[4] || (s[4] = (o) => a("next-month")),
2796
+ onClick: r[4] || (r[4] = (o) => a("next-month")),
2795
2797
  tabindex: -1
2796
2798
  }, {
2797
2799
  default: j(() => [
@@ -2805,7 +2807,7 @@ const tn = /* @__PURE__ */ H({
2805
2807
  S(v(G), {
2806
2808
  class: "nmorph-date-picker-header__action-btn",
2807
2809
  "style-type": "transparent",
2808
- onClick: s[5] || (s[5] = (o) => a("next-year")),
2810
+ onClick: r[5] || (r[5] = (o) => a("next-year")),
2809
2811
  tabindex: -1
2810
2812
  }, {
2811
2813
  default: j(() => [
@@ -2832,14 +2834,14 @@ const sn = { class: "nmorph-year-month-picker__header" }, rn = { class: "nmorph-
2832
2834
  label: h.substring(0, 3),
2833
2835
  value: String(k),
2834
2836
  tabindex: -1
2835
- })), n = e, r = y(a), s = y(String(n.currentDate.getMonth())), o = y(n.currentDate.getFullYear()), u = () => {
2837
+ })), n = e, s = y(a), r = y(String(n.currentDate.getMonth())), o = y(n.currentDate.getFullYear()), u = () => {
2836
2838
  const h = n.currentDate.getFullYear(), k = xa(h).map((M) => ({ label: String(M), value: String(M) }));
2837
- r.value = k;
2839
+ s.value = k;
2838
2840
  };
2839
2841
  q(
2840
2842
  () => n.currentDate,
2841
2843
  () => {
2842
- n.type === "year" && (u(), s.value = String(n.currentDate.getFullYear()));
2844
+ n.type === "year" && (u(), r.value = String(n.currentDate.getFullYear()));
2843
2845
  },
2844
2846
  {
2845
2847
  immediate: !0,
@@ -2851,9 +2853,9 @@ const sn = { class: "nmorph-year-month-picker__header" }, rn = { class: "nmorph-
2851
2853
  "nmorph-year-month-picker": []
2852
2854
  })
2853
2855
  ), C = (h) => {
2854
- s.value = h, n.type === "month" ? p("update-month", s.value) : p("update-year", s.value);
2856
+ r.value = h, n.type === "month" ? p("update-month", r.value) : p("update-year", r.value);
2855
2857
  }, m = (h) => {
2856
- r.value = r.value.map((k) => {
2858
+ s.value = s.value.map((k) => {
2857
2859
  const M = String(h === "decrease" ? Number(k.value) - 10 : Number(k.value) + 10);
2858
2860
  return {
2859
2861
  label: M,
@@ -2864,7 +2866,7 @@ const sn = { class: "nmorph-year-month-picker__header" }, rn = { class: "nmorph-
2864
2866
  h === "decrease" ? o.value = o.value - 1 : o.value = o.value + 1, p("update-year", String(o.value));
2865
2867
  }, _ = (h) => {
2866
2868
  h === "decrease" ? n.type === "year" ? m("decrease") : g("decrease") : n.type === "year" ? m("increase") : g("increase");
2867
- }, b = c(() => n.type === "year" ? `${r.value[0].label} - ${r.value[r.value.length - 1].label}` : String(o.value)), x = () => {
2869
+ }, b = c(() => n.type === "year" ? `${s.value[0].label} - ${s.value[s.value.length - 1].label}` : String(o.value)), x = () => {
2868
2870
  n.type === "month" && p("back-to-years");
2869
2871
  };
2870
2872
  return (h, k) => (i(), d("div", {
@@ -2909,8 +2911,8 @@ const sn = { class: "nmorph-year-month-picker__header" }, rn = { class: "nmorph-
2909
2911
  S(v(So)),
2910
2912
  f("div", un, [
2911
2913
  S(v(dt), {
2912
- "model-value": s.value,
2913
- options: r.value,
2914
+ "model-value": r.value,
2915
+ options: s.value,
2914
2916
  "onUpdate:modelValue": C
2915
2917
  }, null, 8, ["model-value", "options"])
2916
2918
  ])
@@ -2930,46 +2932,46 @@ const cn = /* @__PURE__ */ H({
2930
2932
  () => V({
2931
2933
  "nmorph-date-picker-content": []
2932
2934
  })
2933
- ), r = y(t.initialDate), s = y("calendar"), o = c(() => new Date(r.value.setMonth(r.value.getMonth() - 1))), u = c(() => new Date(r.value.setMonth(r.value.getMonth() + 1))), p = c(() => new Date(r.value.setFullYear(r.value.getFullYear() - 1))), w = c(() => new Date(r.value.setFullYear(r.value.getFullYear() + 1))), C = () => {
2934
- r.value = o.value;
2935
+ ), s = y(t.initialDate), r = y("calendar"), o = c(() => new Date(s.value.setMonth(s.value.getMonth() - 1))), u = c(() => new Date(s.value.setMonth(s.value.getMonth() + 1))), p = c(() => new Date(s.value.setFullYear(s.value.getFullYear() - 1))), w = c(() => new Date(s.value.setFullYear(s.value.getFullYear() + 1))), C = () => {
2936
+ s.value = o.value;
2935
2937
  }, m = () => {
2936
- r.value = u.value;
2938
+ s.value = u.value;
2937
2939
  }, g = () => {
2938
- r.value = p.value;
2940
+ s.value = p.value;
2939
2941
  }, _ = () => {
2940
- r.value = w.value;
2942
+ s.value = w.value;
2941
2943
  }, b = () => {
2942
- s.value = "year";
2944
+ r.value = "year";
2943
2945
  }, x = () => {
2944
- s.value = "month";
2946
+ r.value = "month";
2945
2947
  }, h = ($) => {
2946
- const O = new Date(r.value.setFullYear(Number($)));
2947
- r.value = O, s.value = "month";
2948
+ const O = new Date(s.value.setFullYear(Number($)));
2949
+ s.value = O, r.value = "month";
2948
2950
  }, k = ($) => {
2949
- const O = new Date(r.value.setMonth(Number($)));
2950
- r.value = O, s.value = "calendar";
2951
+ const O = new Date(s.value.setMonth(Number($)));
2952
+ s.value = O, r.value = "calendar";
2951
2953
  }, M = () => {
2952
- s.value = "year";
2954
+ r.value = "year";
2953
2955
  }, A = ($) => {
2954
2956
  a("update-selected-value", $);
2955
2957
  }, P = ($) => {
2956
- r.value = $;
2958
+ s.value = $;
2957
2959
  };
2958
2960
  return ($, O) => (i(), d("div", {
2959
2961
  class: T(n.value)
2960
2962
  }, [
2961
- s.value === "calendar" ? (i(), R(v($a), {
2963
+ r.value === "calendar" ? (i(), R(v($a), {
2962
2964
  key: 0,
2963
2965
  type: t.type,
2964
- "initial-date": r.value,
2966
+ "initial-date": s.value,
2965
2967
  "model-value": t.selectedValues,
2966
2968
  "onUpdate:modelValue": A,
2967
2969
  onUpdateInitialDate: P
2968
2970
  }, {
2969
2971
  header: j(() => [
2970
2972
  S(on, {
2971
- year: r.value.getFullYear(),
2972
- month: r.value.getMonth(),
2973
+ year: s.value.getFullYear(),
2974
+ month: s.value.getMonth(),
2973
2975
  onPrevMonth: C,
2974
2976
  onNextMonth: m,
2975
2977
  onPrevYear: g,
@@ -2980,16 +2982,16 @@ const cn = /* @__PURE__ */ H({
2980
2982
  ]),
2981
2983
  _: 1
2982
2984
  }, 8, ["type", "initial-date", "model-value"])) : E("", !0),
2983
- s.value === "year" ? (i(), R(at, {
2985
+ r.value === "year" ? (i(), R(at, {
2984
2986
  key: 1,
2985
2987
  type: "year",
2986
- "current-date": r.value,
2988
+ "current-date": s.value,
2987
2989
  onUpdateYear: h
2988
2990
  }, null, 8, ["current-date"])) : E("", !0),
2989
- s.value === "month" ? (i(), R(at, {
2991
+ r.value === "month" ? (i(), R(at, {
2990
2992
  key: 2,
2991
2993
  type: "month",
2992
- "current-date": r.value,
2994
+ "current-date": s.value,
2993
2995
  onUpdateYear: h,
2994
2996
  onUpdateMonth: k,
2995
2997
  onBackToYears: M
@@ -3009,7 +3011,7 @@ const cn = /* @__PURE__ */ H({
3009
3011
  },
3010
3012
  emits: ["update:model-value"],
3011
3013
  setup(e, { emit: l }) {
3012
- const { t, messages: a } = ke(), n = e, r = c(() => n.placeholder ? n.placeholder : t("NmorphDatePicker.pickADate")), s = y(n.modelValue), o = l, u = y(!1), p = () => {
3014
+ const { t, messages: a } = ke(), n = e, s = c(() => n.placeholder ? n.placeholder : t("NmorphDatePicker.pickADate")), r = y(n.modelValue), o = l, u = y(!1), p = () => {
3013
3015
  u.value = !0;
3014
3016
  }, w = () => {
3015
3017
  u.value = !1;
@@ -3023,21 +3025,21 @@ const cn = /* @__PURE__ */ H({
3023
3025
  }, b = () => {
3024
3026
  m.value = !m.value;
3025
3027
  }, x = c(() => {
3026
- if (!s.value)
3027
- return r.value;
3028
- if (Array.isArray(s.value)) {
3029
- if (s.value.length === 0)
3030
- return r.value;
3031
- const A = et(s.value), P = n.type === "daterange" ? " - " : ", ";
3028
+ if (!r.value)
3029
+ return s.value;
3030
+ if (Array.isArray(r.value)) {
3031
+ if (r.value.length === 0)
3032
+ return s.value;
3033
+ const A = et(r.value), P = n.type === "daterange" ? " - " : ", ";
3032
3034
  return A.join(P);
3033
3035
  } else
3034
- return et(s.value);
3036
+ return et(r.value);
3035
3037
  }), h = () => {
3036
- const A = Array.isArray(s.value) ? [] : null;
3037
- s.value = A, o("update:model-value", s.value);
3038
+ const A = Array.isArray(r.value) ? [] : null;
3039
+ r.value = A, o("update:model-value", r.value);
3038
3040
  }, k = (A) => {
3039
- s.value = A, o("update:model-value", s.value);
3040
- }, M = c(() => Array.isArray(s.value) ? s.value.length > 0 : !!s.value);
3041
+ r.value = A, o("update:model-value", r.value);
3042
+ }, M = c(() => Array.isArray(r.value) ? r.value.length > 0 : !!r.value);
3041
3043
  return (A, P) => (i(), d("div", {
3042
3044
  class: T(C.value)
3043
3045
  }, [
@@ -3078,7 +3080,7 @@ const cn = /* @__PURE__ */ H({
3078
3080
  }, {
3079
3081
  default: j(() => [
3080
3082
  S(cn, {
3081
- "selected-values": s.value,
3083
+ "selected-values": r.value,
3082
3084
  "initial-date": n.initialDate,
3083
3085
  type: A.type,
3084
3086
  onUpdateSelectedValue: k
@@ -3106,8 +3108,8 @@ const fn = { class: "nmorph-file-upload__trigger" }, _n = ["multiple"], gn = {
3106
3108
  },
3107
3109
  emits: ["update:model-value", "on-unsupported-file-type-error"],
3108
3110
  setup(e, { expose: l, emit: t }) {
3109
- const { t: a } = ke(), n = e, r = c(() => n.buttonText ? n.buttonText : a("NmorphFileUpload.selectFile")), s = (x) => x.split("/")[1], o = (x) => {
3110
- const h = s(x);
3111
+ const { t: a } = ke(), n = e, s = c(() => n.buttonText ? n.buttonText : a("NmorphFileUpload.selectFile")), r = (x) => x.split("/")[1], o = (x) => {
3112
+ const h = r(x);
3111
3113
  let k = "doc";
3112
3114
  return h in Ue && (k = "image"), h in Ge && (k = "audio"), h in qe && (k = "video"), h in Qe && (k = "archive"), k;
3113
3115
  };
@@ -3118,7 +3120,7 @@ const fn = { class: "nmorph-file-upload__trigger" }, _n = ["multiple"], gn = {
3118
3120
  const h = x.target;
3119
3121
  if (h.files) {
3120
3122
  if (Array.from(h.files).forEach((k) => {
3121
- const M = s(k.type);
3123
+ const M = r(k.type);
3122
3124
  if (!n.allowedTypes.includes(M))
3123
3125
  return _("on-unsupported-file-type-error", k.type);
3124
3126
  const A = URL.createObjectURL(k), P = { data: k, previewUrl: A };
@@ -3156,7 +3158,7 @@ const fn = { class: "nmorph-file-upload__trigger" }, _n = ["multiple"], gn = {
3156
3158
  }, null, 40, _n),
3157
3159
  B(x.$slots, "trigger", {}, () => [
3158
3160
  S(v(G), {
3159
- text: r.value,
3161
+ text: s.value,
3160
3162
  fill: "",
3161
3163
  onClick: w,
3162
3164
  disabled: n.disabled
@@ -3221,11 +3223,11 @@ const ts = {
3221
3223
  "nmorph-form": []
3222
3224
  })
3223
3225
  ), n = yt(t.value, t.validateImmediately);
3224
- return l({ formData: n }), ee("form-data", n), (r, s) => (i(), d("form", {
3226
+ return l({ formData: n }), ee("form-data", n), (s, r) => (i(), d("form", {
3225
3227
  class: T(a.value)
3226
3228
  }, [
3227
3229
  f("div", $n, [
3228
- B(r.$slots, "default")
3230
+ B(s.$slots, "default")
3229
3231
  ])
3230
3232
  ], 2));
3231
3233
  }
@@ -3243,7 +3245,7 @@ const ts = {
3243
3245
  "nmorph-error-box": [`${l.staticHeight && "static-height"}`, `${t.value.length === 0 && "empty"}`]
3244
3246
  })
3245
3247
  );
3246
- return (n, r) => (i(), d("div", {
3248
+ return (n, s) => (i(), d("div", {
3247
3249
  class: T(a.value)
3248
3250
  }, [
3249
3251
  S(be, {
@@ -3251,10 +3253,10 @@ const ts = {
3251
3253
  tag: "div"
3252
3254
  }, {
3253
3255
  default: j(() => [
3254
- (i(!0), d(K, null, X(t.value, (s) => (i(), d("p", {
3255
- key: s,
3256
+ (i(!0), d(K, null, X(t.value, (r) => (i(), d("p", {
3257
+ key: r,
3256
3258
  class: "nmorph-error-box__error"
3257
- }, U(s), 1))), 128))
3259
+ }, U(r), 1))), 128))
3258
3260
  ]),
3259
3261
  _: 1
3260
3262
  })
@@ -3276,7 +3278,7 @@ const Te = "18px", wn = /* @__PURE__ */ H({
3276
3278
  "nmorph-validation-icon": [l.valid ? "valid" : "invalid"]
3277
3279
  })
3278
3280
  ), a = c(() => l.valid ? "success" : "error");
3279
- return (n, r) => (i(), d("div", {
3281
+ return (n, s) => (i(), d("div", {
3280
3282
  class: T(t.value)
3281
3283
  }, [
3282
3284
  n.show ? (i(), R(v(z), {
@@ -3299,13 +3301,13 @@ const Cn = { key: 0 }, Mn = { class: "nmorph-form-item__content" }, ls = /* @__P
3299
3301
  staticErrorBoxSpace: { type: Boolean, default: !1 }
3300
3302
  },
3301
3303
  setup(e) {
3302
- const l = e, t = N("form-data", void 0), a = c(() => t?.fields[l.id]), n = c(() => a.value), r = c(
3304
+ const l = e, t = N("form-data", void 0), a = c(() => t?.fields[l.id]), n = c(() => a.value), s = c(
3303
3305
  () => !!n.value && !!a?.value?.touched && l.showValidationIcon
3304
- ), s = c(() => n.value && a.value?.touched), o = c(
3306
+ ), r = c(() => n.value && a.value?.touched), o = c(
3305
3307
  () => V({
3306
3308
  "nmorph-form-item": [
3307
3309
  `${l.label && "labeled"}`,
3308
- `${s.value && (a.value?.valid ? "valid" : "invalid")}`
3310
+ `${r.value && (a.value?.valid ? "valid" : "invalid")}`
3309
3311
  ]
3310
3312
  })
3311
3313
  );
@@ -3318,7 +3320,7 @@ const Cn = { key: 0 }, Mn = { class: "nmorph-form-item__content" }, ls = /* @__P
3318
3320
  l.showValidationIcon ? (i(), R(v(wn), {
3319
3321
  key: 0,
3320
3322
  valid: !!a.value?.valid,
3321
- show: r.value
3323
+ show: s.value
3322
3324
  }, null, 8, ["valid", "show"])) : E("", !0)
3323
3325
  ]),
3324
3326
  S(v(xn), {
@@ -3362,11 +3364,11 @@ const Sn = { class: "nmorph-number-input__content" }, Tn = { class: "nmorph-numb
3362
3364
  `${a.actionBtnPositionRight && "action-btn-position-right"}`
3363
3365
  ]
3364
3366
  })
3365
- ), r = y(a.modelValue), s = () => {
3366
- r.value += a.step;
3367
+ ), s = y(a.modelValue), r = () => {
3368
+ s.value += a.step;
3367
3369
  }, o = () => {
3368
- r.value -= a.step;
3369
- }, u = c(() => r.value <= a.min), p = c(() => r.value >= a.max), w = c(() => a.height === "thick" ? "16px" : "12px"), C = {
3370
+ s.value -= a.step;
3371
+ }, u = c(() => s.value <= a.min), p = c(() => s.value >= a.max), w = c(() => a.height === "thick" ? "16px" : "12px"), C = {
3370
3372
  thick: {
3371
3373
  default: "12px",
3372
3374
  right: "8px"
@@ -3385,10 +3387,10 @@ const Sn = { class: "nmorph-number-input__content" }, Tn = { class: "nmorph-numb
3385
3387
  }), g = t, _ = (x) => {
3386
3388
  const h = x.target;
3387
3389
  let k = Number(h.value);
3388
- r.value = k;
3390
+ s.value = k;
3389
3391
  };
3390
- q(r, (x) => {
3391
- x > a.max && (r.value = a.max, b.value?.blur()), r.value < a.min && (r.value = a.min, b.value?.blur()), g("update:model-value", x);
3392
+ q(s, (x) => {
3393
+ x > a.max && (s.value = a.max, b.value?.blur()), s.value < a.min && (s.value = a.min, b.value?.blur()), g("update:model-value", x);
3392
3394
  });
3393
3395
  const b = y(null);
3394
3396
  return l({ inputDOMRef: b }), (x, h) => (i(), d("div", {
@@ -3417,7 +3419,7 @@ const Sn = { class: "nmorph-number-input__content" }, Tn = { class: "nmorph-numb
3417
3419
  ref_key: "inputDOMRef",
3418
3420
  ref: b,
3419
3421
  class: "nmorph-native-input",
3420
- value: r.value,
3422
+ value: s.value,
3421
3423
  type: "number",
3422
3424
  min: a.min,
3423
3425
  max: a.max,
@@ -3444,7 +3446,7 @@ const Sn = { class: "nmorph-number-input__content" }, Tn = { class: "nmorph-numb
3444
3446
  S(v(G), {
3445
3447
  "style-type": "transparent",
3446
3448
  disabled: p.value,
3447
- onClick: s
3449
+ onClick: r
3448
3450
  }, {
3449
3451
  default: j(() => [
3450
3452
  S(v(z), {
@@ -3461,7 +3463,7 @@ const Sn = { class: "nmorph-number-input__content" }, Tn = { class: "nmorph-numb
3461
3463
  "style-type": "transparent",
3462
3464
  disabled: p.value,
3463
3465
  height: a.height,
3464
- onClick: s
3466
+ onClick: r
3465
3467
  }, {
3466
3468
  default: j(() => [
3467
3469
  S(v(z), {
@@ -3506,15 +3508,15 @@ const Pn = { class: "nmorph-select__content" }, An = ["id", "name"], Fn = ["valu
3506
3508
  setup(e, { emit: l }) {
3507
3509
  const { t } = ke(), a = e, n = c(
3508
3510
  () => a.noElementPlaceholder ? a.noElementPlaceholder : t("NmorphSelect.noElementPlaceholder")
3509
- ), r = l, s = y(a.modelValue), o = y(a.open), u = y(null), p = y(null), w = y(!0), C = a.id ? a.id : de(), m = a.name ? a.name : de(), g = (J) => {
3511
+ ), s = l, r = y(a.modelValue), o = y(a.open), u = y(null), p = y(null), w = y(!0), C = a.id ? a.id : de(), m = a.name ? a.name : de(), g = (J) => {
3510
3512
  if (!a.disabled) {
3511
- if (o.value = !1, typeof s.value == "string" && (!a.valueRequired && s.value === J ? s.value = "" : s.value = J, r("update:model-value", s.value)), Array.isArray(s.value)) {
3512
- const Z = s.value.includes(J), ne = s.value.length === 1 && Z;
3513
+ if (o.value = !1, typeof r.value == "string" && (!a.valueRequired && r.value === J ? r.value = "" : r.value = J, s("update:model-value", r.value)), Array.isArray(r.value)) {
3514
+ const Z = r.value.includes(J), ne = r.value.length === 1 && Z;
3513
3515
  if (a.valueRequired && ne)
3514
3516
  return;
3515
- Z ? s.value = s.value.filter((xe) => xe !== J) : s.value = [...s.value, J];
3517
+ Z ? r.value = r.value.filter((xe) => xe !== J) : r.value = [...r.value, J];
3516
3518
  }
3517
- r("update:model-value", s.value);
3519
+ s("update:model-value", r.value);
3518
3520
  }
3519
3521
  }, _ = y(!1), b = () => {
3520
3522
  _.value = !0;
@@ -3558,8 +3560,8 @@ const Pn = { class: "nmorph-select__content" }, An = ["id", "name"], Fn = ["valu
3558
3560
  }), he(() => {
3559
3561
  document.removeEventListener("click", M);
3560
3562
  });
3561
- const D = c(() => typeof s.value == "string" ? s.value === "" ? n.value : a.options.find((J) => J.value === s.value)?.label : a.options.find((J) => J.value === s.value)?.label), Y = c(() => a.options.length > 0 ? a.options : a.optionsMap), F = c(() => Y.value.length > 0 ? Y.value.filter((Z) => s.value.includes(Z.value)).map((Z) => ({ text: Z.label, value: Z.value })) : Array.isArray(s.value) ? s.value.map((Z) => ({ text: Z, value: Z })) : [{ text: s.value, value: s.value }]);
3562
- ee("select-selected-value", s), ee("select-change-selected-value", g);
3563
+ const D = c(() => typeof r.value == "string" ? r.value === "" ? n.value : a.options.find((J) => J.value === r.value)?.label : a.options.find((J) => J.value === r.value)?.label), Y = c(() => a.options.length > 0 ? a.options : a.optionsMap), F = c(() => Y.value.length > 0 ? Y.value.filter((Z) => r.value.includes(Z.value)).map((Z) => ({ text: Z.label, value: Z.value })) : Array.isArray(r.value) ? r.value.map((Z) => ({ text: Z, value: Z })) : [{ text: r.value, value: r.value }]);
3564
+ ee("select-selected-value", r), ee("select-change-selected-value", g);
3563
3565
  const Q = y(null), le = () => {
3564
3566
  o.value = !o.value;
3565
3567
  }, fe = () => {
@@ -3596,7 +3598,7 @@ const Pn = { class: "nmorph-select__content" }, An = ["id", "name"], Fn = ["valu
3596
3598
  class: "nmorph-select__selected-values-line",
3597
3599
  onClick: re(k, ["stop"])
3598
3600
  }, [
3599
- typeof s.value == "string" ? (i(), d("div", Rn, U(D.value), 1)) : s.value.length === 0 ? (i(), d("div", zn, U(n.value), 1)) : (i(), d("div", jn, [
3601
+ typeof r.value == "string" ? (i(), d("div", Rn, U(D.value), 1)) : r.value.length === 0 ? (i(), d("div", zn, U(n.value), 1)) : (i(), d("div", jn, [
3600
3602
  (i(!0), d(K, null, X(F.value, (ne) => (i(), R(v(ut), ye({
3601
3603
  key: ne.value,
3602
3604
  ref_for: !0
@@ -3654,8 +3656,8 @@ const Wn = ["value"], Yn = { class: "nmorph-select-option__content" }, Un = /* @
3654
3656
  },
3655
3657
  emits: ["change-value"],
3656
3658
  setup(e, { emit: l }) {
3657
- const t = N("select-selected-value", void 0), a = N("select-change-selected-value", void 0), n = e, r = l, s = () => {
3658
- n.disabled || (r("change-value", n.value), a && a(n.value));
3659
+ const t = N("select-selected-value", void 0), a = N("select-change-selected-value", void 0), n = e, s = l, r = () => {
3660
+ n.disabled || (s("change-value", n.value), a && a(n.value));
3659
3661
  }, o = c(() => typeof t?.value == "string" ? t.value === n.value : Array.isArray(t?.value) ? t.value.some((p) => p === n.value) : !1), u = c(
3660
3662
  () => V({
3661
3663
  nmorph: [se[n.height]],
@@ -3668,7 +3670,7 @@ const Wn = ["value"], Yn = { class: "nmorph-select-option__content" }, Un = /* @
3668
3670
  );
3669
3671
  return (p, w) => (i(), d("div", {
3670
3672
  class: T(u.value),
3671
- onClick: s,
3673
+ onClick: r,
3672
3674
  value: n.value
3673
3675
  }, [
3674
3676
  f("div", Yn, [
@@ -3703,9 +3705,9 @@ const qn = { class: "nmorph-slider__content" }, Gn = { class: "nmorph-slider__in
3703
3705
  nmorph: [],
3704
3706
  "nmorph-slider": [`${t.disabled && "disabled"}`]
3705
3707
  })
3706
- ), n = `${Be}px`, r = y(t.showTooltip), s = l, o = y(t.modelValue), u = y(null);
3708
+ ), n = `${Be}px`, s = y(t.showTooltip), r = l, o = y(t.modelValue), u = y(null);
3707
3709
  q(o, () => {
3708
- s("update:model-value", o.value);
3710
+ r("update:model-value", o.value);
3709
3711
  }), q(
3710
3712
  () => t.modelValue,
3711
3713
  ($) => {
@@ -3742,9 +3744,9 @@ const qn = { class: "nmorph-slider__content" }, Gn = { class: "nmorph-slider__in
3742
3744
  }, x = () => {
3743
3745
  t.disabled || (document.addEventListener("mousemove", _), document.addEventListener("mouseup", b));
3744
3746
  }, h = y(null), k = () => {
3745
- t.showTooltip && (r.value = !0);
3747
+ t.showTooltip && (s.value = !0);
3746
3748
  }, M = () => {
3747
- t.showTooltip && (r.value = !1);
3749
+ t.showTooltip && (s.value = !1);
3748
3750
  }, A = ($) => {
3749
3751
  const O = $.target;
3750
3752
  o.value = Number(O.value);
@@ -3759,7 +3761,7 @@ const qn = { class: "nmorph-slider__content" }, Gn = { class: "nmorph-slider__in
3759
3761
  ref: u,
3760
3762
  class: "nmorph-slider__input-container"
3761
3763
  }, [
3762
- r.value && !t.disabled ? (i(), R(v(Fl), {
3764
+ s.value && !t.disabled ? (i(), R(v(Fl), {
3763
3765
  key: 0,
3764
3766
  ref_key: "tooltipRootRef",
3765
3767
  ref: p,
@@ -3804,17 +3806,17 @@ const Kn = ["value", "disabled"], Xn = { class: "nmorph-switch-thumb" }, rs = /*
3804
3806
  },
3805
3807
  emits: ["update:model-value"],
3806
3808
  setup(e, { expose: l, emit: t }) {
3807
- const a = e, n = t, r = y(!1), s = () => {
3808
- r.value = !0;
3809
+ const a = e, n = t, s = y(!1), r = () => {
3810
+ s.value = !0;
3809
3811
  }, o = () => {
3810
- r.value = !1;
3812
+ s.value = !1;
3811
3813
  }, u = c(
3812
3814
  () => V({
3813
3815
  "nmorph-switch": [
3814
3816
  `${a.disabled && "disabled"}`,
3815
3817
  `${p.value ? "on" : "off"}`,
3816
3818
  `${a.loading && "loading"}`,
3817
- `${r.value && "focus"}`
3819
+ `${s.value && "focus"}`
3818
3820
  ]
3819
3821
  })
3820
3822
  ), p = y(a.modelValue === a.activeValue), w = () => {
@@ -3843,7 +3845,7 @@ const Kn = ["value", "disabled"], Xn = { class: "nmorph-switch-thumb" }, rs = /*
3843
3845
  value: p.value,
3844
3846
  disabled: a.disabled,
3845
3847
  class: "nmorph-native-input",
3846
- onFocus: s,
3848
+ onFocus: r,
3847
3849
  onBlur: o
3848
3850
  }, null, 40, Kn),
3849
3851
  f("div", {
@@ -3881,12 +3883,12 @@ const Jn = { class: "nmorph-text-input__input-side" }, Zn = {
3881
3883
  I((h) => ({
3882
3884
  "6c6d90c2": x.value
3883
3885
  }));
3884
- const a = Ee(), n = e, r = c(
3886
+ const a = Ee(), n = e, s = c(
3885
3887
  () => V({
3886
3888
  nmorph: [se[n.height], `${w.value && "focused"}`],
3887
3889
  "nmorph-text-input": [`${n.typePassword && "password"}`]
3888
3890
  })
3889
- ), s = (h) => {
3891
+ ), r = (h) => {
3890
3892
  const k = h.target;
3891
3893
  _("update:model-value", k.value);
3892
3894
  }, o = y(!1), u = () => {
@@ -3899,7 +3901,7 @@ const Jn = { class: "nmorph-text-input__input-side" }, Zn = {
3899
3901
  l({ inputDOMRef: g });
3900
3902
  const _ = t, b = c(() => n.clearable ? "error" : o.value ? "eye-blocked" : "eye"), x = c(() => a["prepend-icon"] ? "28px" : "8px");
3901
3903
  return (h, k) => (i(), d("div", {
3902
- class: T(r.value)
3904
+ class: T(s.value)
3903
3905
  }, [
3904
3906
  f("div", Jn, [
3905
3907
  v(a)["prepend-icon"] ? (i(), d("div", Zn, [
@@ -3913,7 +3915,7 @@ const Jn = { class: "nmorph-text-input__input-side" }, Zn = {
3913
3915
  placeholder: n.placeholder,
3914
3916
  disabled: n.disabled,
3915
3917
  value: n.modelValue,
3916
- onInput: s,
3918
+ onInput: r,
3917
3919
  onFocus: C,
3918
3920
  onBlur: m,
3919
3921
  onKeyup: k[0] || (k[0] = ve((M) => _("on-enter"), ["enter"]))
@@ -3953,8 +3955,8 @@ const Ln = { class: "nmorph-time-picker__content" }, eo = { class: "nmorph-time-
3953
3955
  I(($) => ({
3954
3956
  "50fc8a59": A.value
3955
3957
  }));
3956
- const a = e, n = t, r = y(null), s = y(null);
3957
- l({ inputDOMRef: s });
3958
+ const a = e, n = t, s = y(null), r = y(null);
3959
+ l({ inputDOMRef: r });
3958
3960
  const o = y(a.open), u = y([0, 0, 0]), p = y(a.initWithoutValue), w = () => {
3959
3961
  o.value = !o.value;
3960
3962
  }, C = c(
@@ -3989,7 +3991,7 @@ const Ln = { class: "nmorph-time-picker__content" }, eo = { class: "nmorph-time-
3989
3991
  const D = Pe("NmorphTimeRoller");
3990
3992
  return i(), d("div", {
3991
3993
  ref_key: "timepickerDOMRef",
3992
- ref: r,
3994
+ ref: s,
3993
3995
  class: T(C.value),
3994
3996
  onClick: w
3995
3997
  }, [
@@ -4001,7 +4003,7 @@ const Ln = { class: "nmorph-time-picker__content" }, eo = { class: "nmorph-time-
4001
4003
  }),
4002
4004
  f("input", {
4003
4005
  ref_key: "inputDOMRef",
4004
- ref: s,
4006
+ ref: r,
4005
4007
  type: "time",
4006
4008
  value: u.value,
4007
4009
  step: "1",
@@ -4009,10 +4011,10 @@ const Ln = { class: "nmorph-time-picker__content" }, eo = { class: "nmorph-time-
4009
4011
  }, null, 8, to),
4010
4012
  f("span", null, U(P.value), 1)
4011
4013
  ]),
4012
- r.value ? (i(), R(v(Me), {
4014
+ s.value ? (i(), R(v(Me), {
4013
4015
  key: 0,
4014
4016
  open: o.value,
4015
- "relative-element": r.value,
4017
+ "relative-element": s.value,
4016
4018
  onOnOutsideClick: k
4017
4019
  }, {
4018
4020
  default: j(() => [
@@ -4088,16 +4090,16 @@ const lt = (e) => {
4088
4090
  const t = N("radio-group-selected-value", void 0), a = N(
4089
4091
  "change-radio-button-value-handler",
4090
4092
  void 0
4091
- ), n = e, r = () => {
4093
+ ), n = e, s = () => {
4092
4094
  a && !n.disabled && a(n.value);
4093
- }, s = c(() => t?.value === n.value || n.checked), o = c(
4095
+ }, r = c(() => t?.value === n.value || n.checked), o = c(
4094
4096
  () => V({
4095
- "nmorph-radio": [`${n.disabled && "disabled"}`, `${s.value && "checked"}`, n.styleType]
4097
+ "nmorph-radio": [`${n.disabled && "disabled"}`, `${r.value && "checked"}`, n.styleType]
4096
4098
  })
4097
4099
  ), u = y(null);
4098
4100
  return l({ inputDOMRef: u }), (p, w) => (i(), d("label", {
4099
4101
  class: T(o.value),
4100
- onClick: re(r, ["prevent"])
4102
+ onClick: re(s, ["prevent"])
4101
4103
  }, [
4102
4104
  n.styleType === "radio-style" ? (i(), d("div", no, [
4103
4105
  f("div", oo, [
@@ -4107,12 +4109,12 @@ const lt = (e) => {
4107
4109
  type: "radio",
4108
4110
  name: n.label,
4109
4111
  value: n.value,
4110
- checked: s.value,
4112
+ checked: r.value,
4111
4113
  tabindex: n.tabindex,
4112
4114
  class: "nmorph-native-input"
4113
4115
  }, null, 8, so),
4114
4116
  w[0] || (w[0] = f("div", { class: "nmorph-radio__fake" }, null, -1)),
4115
- s.value ? (i(), d("div", ro)) : E("", !0)
4117
+ r.value ? (i(), d("div", ro)) : E("", !0)
4116
4118
  ]),
4117
4119
  n.label ? (i(), d("span", io, U(n.label), 1)) : B(p.$slots, "label", { key: 1 }, void 0, !0)
4118
4120
  ])) : E("", !0),
@@ -4124,7 +4126,7 @@ const lt = (e) => {
4124
4126
  disabled: n.disabled,
4125
4127
  name: n.label,
4126
4128
  value: n.value,
4127
- checked: s.value,
4129
+ checked: r.value,
4128
4130
  tabindex: n.tabindex,
4129
4131
  class: "nmorph-native-input"
4130
4132
  }, null, 8, co),
@@ -4156,13 +4158,13 @@ const ho = /* @__PURE__ */ $e(mo, [["__scopeId", "data-v-e1360c2e"]]), fo = { cl
4156
4158
  a.value = o;
4157
4159
  }
4158
4160
  );
4159
- const n = l, r = (o) => {
4161
+ const n = l, s = (o) => {
4160
4162
  a.value = o, n("update:model-value", a.value);
4161
- }, s = c(() => V({ "nmorph-radio-group": [t.styleType, t.direction] }));
4162
- return ee("radio-group-selected-value", a), ee("change-radio-button-value-handler", r), (o, u) => {
4163
+ }, r = c(() => V({ "nmorph-radio-group": [t.styleType, t.direction] }));
4164
+ return ee("radio-group-selected-value", a), ee("change-radio-button-value-handler", s), (o, u) => {
4163
4165
  const p = Pe("NmorphRadio");
4164
4166
  return i(), d("div", {
4165
- class: T(s.value)
4167
+ class: T(r.value)
4166
4168
  }, [
4167
4169
  f("div", fo, [
4168
4170
  f("div", _o, [
@@ -4193,9 +4195,9 @@ const us = /* @__PURE__ */ H({
4193
4195
  setup(e, { emit: l }) {
4194
4196
  I((m) => ({
4195
4197
  "13d4e1c7": n.value,
4196
- "4bd46fe0": r.value
4198
+ "4bd46fe0": s.value
4197
4199
  }));
4198
- const t = e, a = l, n = c(() => `${t.right}px`), r = c(() => `${t.bottom}px`), s = c(
4200
+ const t = e, a = l, n = c(() => `${t.right}px`), s = c(() => `${t.bottom}px`), r = c(
4199
4201
  () => V({
4200
4202
  "nmorph-backtop": [`${p.value && "show"}`, t.design]
4201
4203
  })
@@ -4218,7 +4220,7 @@ const us = /* @__PURE__ */ H({
4218
4220
  }), (m, g) => (i(), d("div", {
4219
4221
  ref_key: "selfDOMEl",
4220
4222
  ref: u,
4221
- class: T(s.value)
4223
+ class: T(r.value)
4222
4224
  }, [
4223
4225
  f("div", {
4224
4226
  onClick: re(C, ["stop"])
@@ -4257,10 +4259,10 @@ const go = ["id"], yo = {
4257
4259
  "nmorph-breadcrumb": []
4258
4260
  })
4259
4261
  );
4260
- return (r, s) => (i(), d("div", {
4262
+ return (s, r) => (i(), d("div", {
4261
4263
  class: T(n.value)
4262
4264
  }, [
4263
- B(r.$slots, "default"),
4265
+ B(s.$slots, "default"),
4264
4266
  (i(!0), d(K, null, X(t.value, (o, u) => (i(), d("div", {
4265
4267
  key: u,
4266
4268
  class: "nmorph-breadcrumb__content"
@@ -4285,25 +4287,25 @@ const ds = /* @__PURE__ */ H({
4285
4287
  () => V({
4286
4288
  "nmorph-breadcrumb-item": []
4287
4289
  })
4288
- ), a = N("breadcrumb-data", void 0), n = y(!1), r = de();
4290
+ ), a = N("breadcrumb-data", void 0), n = y(!1), s = de();
4289
4291
  return ae(() => {
4290
4292
  n.value = !0;
4291
- }), a.breadcrumbs.value.push({ ...l, itemId: r }), (s, o) => {
4293
+ }), a.breadcrumbs.value.push({ ...l, itemId: s }), (r, o) => {
4292
4294
  const u = Pe("router-link");
4293
- return n.value && v(r) ? (i(), d("div", {
4295
+ return n.value && v(s) ? (i(), d("div", {
4294
4296
  key: 0,
4295
4297
  class: T(t.value)
4296
4298
  }, [
4297
4299
  (i(), R(ge, {
4298
- to: `#nmorph-breadcrumb-${v(a)?.breadcrumbId}-${v(r)}-element`
4300
+ to: `#nmorph-breadcrumb-${v(a)?.breadcrumbId}-${v(s)}-element`
4299
4301
  }, [
4300
4302
  S(u, {
4301
- to: s.to,
4302
- replace: s.replace,
4303
+ to: r.to,
4304
+ replace: r.replace,
4303
4305
  class: "fill-height"
4304
4306
  }, {
4305
4307
  default: j(() => [
4306
- B(s.$slots, "default")
4308
+ B(r.$slots, "default")
4307
4309
  ]),
4308
4310
  _: 3
4309
4311
  }, 8, ["to", "replace"])
@@ -4326,13 +4328,13 @@ const ds = /* @__PURE__ */ H({
4326
4328
  I((p) => ({
4327
4329
  f609801e: o.value
4328
4330
  }));
4329
- const t = e, a = l, n = y(null), { placementCoords: r } = nt({
4331
+ const t = e, a = l, n = y(null), { placementCoords: s } = nt({
4330
4332
  initialPlacement: "bottom",
4331
4333
  contentDOMElement: n,
4332
4334
  relativeElement: t.relativeElement,
4333
4335
  yOffset: t.yOffset,
4334
4336
  xOffset: t.xOffset
4335
- }), s = c(
4337
+ }), r = c(
4336
4338
  () => V({
4337
4339
  "nmorph-dropdown": [`${!t.open && "closed"}`]
4338
4340
  })
@@ -4348,8 +4350,8 @@ const ds = /* @__PURE__ */ H({
4348
4350
  f("div", {
4349
4351
  ref_key: "dropdownDOMRef",
4350
4352
  ref: n,
4351
- class: T(s.value),
4352
- style: te({ left: `${v(r).x}`, top: `${v(r).y}` })
4353
+ class: T(r.value),
4354
+ style: te({ left: `${v(s).x}`, top: `${v(s).y}` })
4353
4355
  }, [
4354
4356
  B(p.$slots, "default")
4355
4357
  ], 6)
@@ -4371,17 +4373,17 @@ const bo = { class: "nmorph-tabs__label-list" }, ko = ["id", "onClick", "custom"
4371
4373
  () => V({
4372
4374
  "nmorph-tabs": [`${t.stretch && "stretch"}`]
4373
4375
  })
4374
- ), r = (w) => {
4376
+ ), s = (w) => {
4375
4377
  if (w.disabled)
4376
4378
  return;
4377
4379
  const { name: C } = w;
4378
4380
  a("update:model-value", C), a("tab-change", C);
4379
- }, s = y([]), o = de();
4381
+ }, r = y([]), o = de();
4380
4382
  ee("nmorph-tabs-data", {
4381
- tabsData: s,
4383
+ tabsData: r,
4382
4384
  tabsIdentifier: o
4383
4385
  });
4384
- const u = c(() => t.panes.length > 0 ? t.panes : s.value), p = Ee();
4386
+ const u = c(() => t.panes.length > 0 ? t.panes : r.value), p = Ee();
4385
4387
  return (w, C) => (i(), d("div", {
4386
4388
  class: T(n.value)
4387
4389
  }, [
@@ -4394,7 +4396,7 @@ const bo = { class: "nmorph-tabs__label-list" }, ko = ["id", "onClick", "custom"
4394
4396
  { "nmorph-tabs__label--selected": m.name === t.modelValue },
4395
4397
  { "nmorph-tabs__label--disabled": m.disabled }
4396
4398
  ]]),
4397
- onClick: (g) => r(m),
4399
+ onClick: (g) => s(m),
4398
4400
  custom: m.disabled
4399
4401
  }, [
4400
4402
  v(p).default ? E("", !0) : (i(), d("div", $o, U(m.label), 1))
@@ -4438,20 +4440,20 @@ const pt = (e, l) => {
4438
4440
  ae(() => {
4439
4441
  n.value = !0;
4440
4442
  }), a.tabsData.value.push(l);
4441
- const r = l;
4442
- return (s, o) => n.value ? (i(), d("div", {
4443
+ const s = l;
4444
+ return (r, o) => n.value ? (i(), d("div", {
4443
4445
  key: 0,
4444
4446
  class: T(t.value)
4445
4447
  }, [
4446
4448
  (i(), R(ge, {
4447
4449
  to: `#${v(pt)(v(a)?.tabsIdentifier, l.name)}`
4448
4450
  }, [
4449
- B(s.$slots, "label", { scope: v(r) })
4451
+ B(r.$slots, "label", { scope: v(s) })
4450
4452
  ], 8, ["to"])),
4451
4453
  (i(), R(ge, {
4452
4454
  to: `#${v(vt)(v(a)?.tabsIdentifier, l.name)}`
4453
4455
  }, [
4454
- B(s.$slots, "default", { scope: v(r) })
4456
+ B(r.$slots, "default", { scope: v(s) })
4455
4457
  ], 8, ["to"]))
4456
4458
  ], 2)) : E("", !0);
4457
4459
  }
@@ -4484,9 +4486,9 @@ const Ke = /* @__PURE__ */ H({
4484
4486
  "nmorph-overlay": [`${t.show && "show"}`, `${t.transparent && "transparent"}`]
4485
4487
  })
4486
4488
  ), n = () => {
4487
- r("on-outside-click");
4488
- }, r = l;
4489
- return (s, o) => (i(), d("div", {
4489
+ s("on-outside-click");
4490
+ }, s = l;
4491
+ return (r, o) => (i(), d("div", {
4490
4492
  class: T(a.value),
4491
4493
  onClick: re(n, ["stop"])
4492
4494
  }, [
@@ -4495,7 +4497,7 @@ const Ke = /* @__PURE__ */ H({
4495
4497
  onClick: o[0] || (o[0] = re(() => {
4496
4498
  }, ["stop"]))
4497
4499
  }, [
4498
- B(s.$slots, "default")
4500
+ B(r.$slots, "default")
4499
4501
  ])
4500
4502
  ], 2));
4501
4503
  }
@@ -4509,15 +4511,15 @@ const To = /* @__PURE__ */ H({
4509
4511
  quantity: { default: 100 }
4510
4512
  },
4511
4513
  setup(e) {
4512
- const l = y([]), t = c(() => r.notifications.filter((o) => !l.value.includes(o.id))), a = c(() => {
4513
- const o = Math.max(t.value.length - r.quantity, 0);
4514
+ const l = y([]), t = c(() => s.notifications.filter((o) => !l.value.includes(o.id))), a = c(() => {
4515
+ const o = Math.max(t.value.length - s.quantity, 0);
4514
4516
  return t.value.slice(o);
4515
4517
  }), n = (o) => {
4516
4518
  l.value = [...l.value, o];
4517
- }, r = e, s = c(() => r.zIndex);
4519
+ }, s = e, r = c(() => s.zIndex);
4518
4520
  return (o, u) => (i(), d("div", {
4519
- class: T(`nmorph-notification-provider nmorph-notification-provider--${r.placement}`),
4520
- style: te({ zIndex: s.value })
4521
+ class: T(`nmorph-notification-provider nmorph-notification-provider--${s.placement}`),
4522
+ style: te({ zIndex: r.value })
4521
4523
  }, [
4522
4524
  S(be, {
4523
4525
  name: "nmorph-notification",
@@ -4544,10 +4546,10 @@ var Bo = /* @__PURE__ */ ((e) => (e["top-left"] = "top-left", e["top-center"] =
4544
4546
  const hs = {
4545
4547
  install(e, l = {}) {
4546
4548
  if (!l?.i18n?.outsideMessagesMerge) {
4547
- const r = Lt(l.i18n), s = e.__VUE_I18N__;
4548
- s ? (r.global.messages && Object.entries(r.global.messages).forEach(([o, u]) => {
4549
- s.global.mergeLocaleMessage(o, u);
4550
- }), r.global.locale && (s.global.locale.value = r.global.locale)) : e.use(r);
4549
+ const s = Lt(l.i18n), r = e.__VUE_I18N__;
4550
+ r ? (s.global.messages && Object.entries(s.global.messages).forEach(([o, u]) => {
4551
+ r.global.mergeLocaleMessage(o, u);
4552
+ }), s.global.locale && (r.global.locale.value = s.global.locale)) : e.use(s);
4551
4553
  }
4552
4554
  const t = qt(l.theme), a = ea(), n = { theme: t, browser: a };
4553
4555
  return e.provide("nmorph", n), e;