maz-ui 3.47.2-beta.2 → 3.47.2-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/components/MazChecklist.d.ts +1 -4
  2. package/components/MazChecklist.mjs +1 -1
  3. package/components/MazPhoneNumberInput.mjs +1 -1
  4. package/components/MazSelect.mjs +1 -1
  5. package/components/MazTable.mjs +1 -1
  6. package/components/assets/MazPhoneNumberInput.css +1 -1
  7. package/components/assets/MazSelect.css +1 -1
  8. package/components/chunks/{MazBtn-BMYXMZuX.mjs → MazBtn-C_BULYqZ.mjs} +2 -2
  9. package/components/chunks/{MazBtn-2VKM1wZu.mjs → MazBtn-Sj-Pq0YV.mjs} +2 -2
  10. package/components/chunks/{MazBtn-DfqRZvbB.mjs → MazBtn-cUQ1Tykp.mjs} +2 -2
  11. package/components/chunks/{MazBtn-BijEMn4r.mjs → MazBtn-psosbsi3.mjs} +2 -2
  12. package/components/chunks/{MazCheckbox-DMogZVHl.mjs → MazCheckbox-BBL0vgqe.mjs} +1 -1
  13. package/components/chunks/{MazCheckbox-Db6sPUbV.mjs → MazCheckbox-BTl370Qq.mjs} +1 -1
  14. package/components/chunks/{MazCheckbox-B22OcHt8.mjs → MazCheckbox-DTU2jEkC.mjs} +1 -1
  15. package/components/chunks/{MazChecklist-C95Y4Hb-.mjs → MazChecklist-CQv-sXP1.mjs} +79 -79
  16. package/components/chunks/{MazIcon-BF5TFzse.mjs → MazIcon-BdQtfzuy.mjs} +1 -1
  17. package/components/chunks/{MazInput-DC3S-CVu.mjs → MazInput-eOtg1L9F.mjs} +2 -2
  18. package/components/chunks/{MazInput-NE6H-10w.mjs → MazInput-geBqeT4i.mjs} +2 -2
  19. package/components/chunks/{MazLoadingBar-DdjHRC7g.mjs → MazLoadingBar-DHcYPXlE.mjs} +1 -1
  20. package/components/chunks/{MazPhoneNumberInput-BbssOUzo.mjs → MazPhoneNumberInput-BTm8A0bL.mjs} +33 -32
  21. package/components/chunks/{MazSelect-CDV9Fx6m.mjs → MazSelect-Cnz3p3n2.mjs} +41 -40
  22. package/components/chunks/{MazSelect-BJ07NVXQ.mjs → MazSelect-DOiqBTNY.mjs} +57 -56
  23. package/components/chunks/{MazSpinner-CykRbNHD.mjs → MazSpinner-B1PXhYRx.mjs} +1 -1
  24. package/components/chunks/{MazSpinner-CEFbkZkM.mjs → MazSpinner-B7tPZpHw.mjs} +1 -1
  25. package/components/chunks/{MazSpinner-Dmkr_r9u.mjs → MazSpinner-DOSj2BnX.mjs} +1 -1
  26. package/components/chunks/{MazSpinner-CfiIXW8y.mjs → MazSpinner-Dhg-s-9s.mjs} +1 -1
  27. package/components/chunks/{MazTable-BJDPdIJB.mjs → MazTable-BKdEx63E.mjs} +1 -1
  28. package/components/chunks/{MazTableCell-DILuUCTe.mjs → MazTableCell-CozcugiL.mjs} +1 -1
  29. package/components/chunks/{MazTableRow-D6H6-c8J.mjs → MazTableRow-bLFpjzu1.mjs} +1 -1
  30. package/components/chunks/{MazTableTitle-Ch-nyY1E.mjs → MazTableTitle-Qk239mu9.mjs} +1 -1
  31. package/modules/chunks/{MazBtn-B_Xlvgbg.cjs → MazBtn-D7el03Rl.cjs} +1 -1
  32. package/modules/chunks/{MazBtn-Dsr06Zgg.mjs → MazBtn-D8uOirkn.mjs} +2 -2
  33. package/modules/chunks/{MazIcon-CkuzyufF.cjs → MazIcon-B8BoiF7R.cjs} +1 -1
  34. package/modules/chunks/{MazIcon-DEgoQbMj.mjs → MazIcon-C6zDSPgJ.mjs} +1 -1
  35. package/modules/chunks/{MazSpinner-jP4QsCNE.cjs → MazSpinner-B-4tL9pK.cjs} +1 -1
  36. package/modules/chunks/{MazSpinner-BurN-1pb.mjs → MazSpinner-BvJydaeF.mjs} +1 -1
  37. package/modules/chunks/{index-CxFUggmu.mjs → index-Bf4X7amE.mjs} +111 -105
  38. package/modules/chunks/index-F0B533E8.cjs +124 -0
  39. package/modules/index.cjs +1 -1
  40. package/modules/index.mjs +1 -1
  41. package/nuxt/index.json +1 -1
  42. package/package.json +1 -1
  43. package/types/components/MazChecklist.vue.d.ts +1 -4
  44. package/types/modules/composables/useFormValidator/types.d.ts +6 -6
  45. package/types/modules/composables/useFormValidator/useFormField.d.ts +2 -2
  46. package/types/modules/composables/useFormValidator/useFormValidator.d.ts +3 -3
  47. package/types/modules/composables/useFormValidator/utils.d.ts +5 -5
  48. package/modules/chunks/index-CUNN0eIB.cjs +0 -124
@@ -1,7 +1,7 @@
1
1
  import '../assets/index.css';var Pt = Object.defineProperty;
2
2
  var Mt = (s, e, t) => e in s ? Pt(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
3
  var d = (s, e, t) => Mt(s, typeof e != "symbol" ? e + "" : e, t);
4
- import { inject as ot, ref as b, onMounted as ue, onUnmounted as it, computed as f, toValue as te, nextTick as Ue, getCurrentInstance as $t, watch as X, provide as Ht, useId as Vt, onBeforeUnmount as rt, createVNode as J, render as Ce, defineComponent as ge, defineAsyncComponent as H, reactive as Bt, openBlock as C, createElementBlock as _, withModifiers as Y, withKeys as Nt, unref as A, createCommentVNode as V, createElementVNode as B, normalizeClass as le, withDirectives as at, vShow as lt, createBlock as N, Teleport as Ft, Transition as ut, withCtx as U, mergeProps as ee, renderSlot as q, useAttrs as jt, createTextVNode as Q, toDisplayString as Z, Fragment as Ye, renderList as Ut, resolveDynamicComponent as _t, normalizeStyle as qt } from "vue";
4
+ import { inject as ot, ref as y, onMounted as ue, onUnmounted as it, computed as f, toValue as ae, nextTick as Ue, getCurrentInstance as $t, watch as X, provide as Ht, useId as Vt, onBeforeUnmount as rt, createVNode as J, render as Ce, defineComponent as ge, defineAsyncComponent as H, reactive as Bt, openBlock as C, createElementBlock as _, withModifiers as Y, withKeys as Nt, unref as A, createCommentVNode as V, createElementVNode as B, normalizeClass as le, withDirectives as at, vShow as lt, createBlock as N, Teleport as Ft, Transition as ut, withCtx as U, mergeProps as ee, renderSlot as q, useAttrs as jt, createTextVNode as Q, toDisplayString as Z, Fragment as Ye, renderList as Ut, resolveDynamicComponent as _t, normalizeStyle as qt } from "vue";
5
5
  function Oe(s, e) {
6
6
  const t = ot(s, e);
7
7
  if (!t)
@@ -26,7 +26,7 @@ function Rt(s = {}) {
26
26
  initialWidth: t = Number.POSITIVE_INFINITY,
27
27
  initialHeight: n = Number.POSITIVE_INFINITY,
28
28
  includeScrollbar: o = !0
29
- } = s, i = b(t), r = b(n);
29
+ } = s, i = y(t), r = y(n);
30
30
  function a() {
31
31
  e && (o ? (i.value = e.innerWidth, r.value = e.innerHeight) : (i.value = e.document.documentElement.clientWidth, r.value = e.document.documentElement.clientHeight));
32
32
  }
@@ -82,7 +82,7 @@ function ct(s, e, t) {
82
82
  i();
83
83
  }
84
84
  function dt(s) {
85
- const e = te(s);
85
+ const e = ae(s);
86
86
  return Array.isArray(e) ? Object.freeze([...e]) : typeof e == "object" && e !== null ? Object.freeze({ ...e }) : e;
87
87
  }
88
88
  function Ze(s) {
@@ -142,7 +142,7 @@ function Xt(s, e, t) {
142
142
  })), n[s].promise);
143
143
  };
144
144
  }
145
- const se = {
145
+ const te = {
146
146
  mode: "lazy",
147
147
  scrollToErrorSelector: ".has-field-error",
148
148
  debounceTime: 300,
@@ -151,7 +151,7 @@ const se = {
151
151
  function mt(s, e) {
152
152
  return Object.keys(e).includes(s);
153
153
  }
154
- function Xe(s = se.scrollToErrorSelector) {
154
+ function Xe(s = te.scrollToErrorSelector) {
155
155
  const e = document.querySelector(s);
156
156
  e && e.scrollIntoView({ behavior: "smooth", block: "center" });
157
157
  }
@@ -172,19 +172,20 @@ function Qt({
172
172
  debouncedFields: t,
173
173
  throttledFields: n
174
174
  }) {
175
- if (e) {
176
- if (t != null && t[s] && (n != null && n[s]))
177
- throw new Error(`The field "${s}" cannot be both debounced and throttled`);
178
- return t != null && t[s] ? Zt(
179
- s,
180
- pe,
181
- typeof t[s] == "number" ? t[s] : se.debounceTime
182
- ) : n != null && n[s] ? Xt(
183
- s,
184
- pe,
185
- typeof n[s] == "number" ? n[s] : se.throttleTime
186
- ) : pe;
187
- }
175
+ if (!e)
176
+ return;
177
+ const o = String(s);
178
+ if (t != null && t[o] && (n != null && n[o]))
179
+ throw new Error(`The field "${o}" cannot be both debounced and throttled`);
180
+ return t != null && t[o] ? Zt(
181
+ o,
182
+ pe,
183
+ typeof t[o] == "number" ? t[o] : te.debounceTime
184
+ ) : n != null && n[o] ? Xt(
185
+ o,
186
+ pe,
187
+ typeof n[o] == "number" ? n[o] : te.throttleTime
188
+ ) : pe;
188
189
  }
189
190
  function ft({
190
191
  name: s,
@@ -209,7 +210,7 @@ function ft({
209
210
  validated: !1,
210
211
  initialValue: dt(t),
211
212
  validateFunction: r,
212
- mode: i ? (o == null ? void 0 : o.mode) ?? (n == null ? void 0 : n.mode) ?? se.mode : void 0
213
+ mode: i ? (o == null ? void 0 : o.mode) ?? (n == null ? void 0 : n.mode) ?? te.mode : void 0
213
214
  };
214
215
  }
215
216
  function Jt({
@@ -263,7 +264,7 @@ function ht({
263
264
  initialValue: o.defaultValue ?? t[s],
264
265
  fieldState: e,
265
266
  options: o
266
- }), l = i ? a ?? e.mode ?? se.mode : e.mode;
267
+ }), l = i ? a ?? e.mode ?? te.mode : e.mode;
267
268
  return {
268
269
  ...e,
269
270
  initialValue: r,
@@ -494,12 +495,12 @@ function _n(s, e) {
494
495
  });
495
496
  };
496
497
  ue(() => {
497
- const I = qe(`useFormField of ${s.toString()}`);
498
+ const I = qe(`useFormField of ${s}`);
498
499
  ct(() => I.refs[t.ref], (c) => {
499
- const y = c instanceof HTMLElement ? c : c == null ? void 0 : c.$el;
500
- y && M(y);
500
+ const b = c instanceof HTMLElement ? c : c == null ? void 0 : c.$el;
501
+ b && M(b);
501
502
  }, {
502
- errorMessage: `[maz-ui](useFormField) No element found for ref ${t.ref} for field ${s.toString()}`
503
+ errorMessage: `[maz-ui](useFormField) No element found for ref ${t.ref} for field ${s}`
503
504
  });
504
505
  }), it(() => {
505
506
  os({
@@ -527,19 +528,19 @@ function _n(s, e) {
527
528
  }
528
529
  function qn({ schema: s, defaultValues: e, model: t, options: n }) {
529
530
  const o = qe("useFormValidator"), i = {
530
- mode: se.mode,
531
- scrollToError: se.scrollToErrorSelector,
531
+ mode: te.mode,
532
+ scrollToError: te.scrollToErrorSelector,
532
533
  debouncedFields: null,
533
534
  throttledFields: null,
534
535
  identifier: "main-form-validator",
535
536
  ...n
536
- }, r = b(e), a = b({ ...r.value, ...t == null ? void 0 : t.value }), u = te(s), l = b(
537
+ }, r = y(e), a = y({ ...r.value, ...t == null ? void 0 : t.value }), u = y(s), l = y(
537
538
  Jt({
538
539
  schema: u.value,
539
540
  payload: a.value,
540
541
  options: i
541
542
  })
542
- ), h = b(!1), g = b(!1), E = f(() => Object.values(l.value).every(({ valid: L }) => L)), T = f(() => Object.values(l.value).some(({ dirty: L }) => L)), M = f(() => ts(l.value)), I = f(() => Gt(M.value, l.value));
543
+ ), h = y(!1), g = y(!1), E = f(() => Object.values(l.value).every(({ valid: L }) => L)), T = f(() => Object.values(l.value).some(({ dirty: L }) => L)), M = f(() => ts(l.value)), I = f(() => Gt(M.value, l.value));
543
544
  t && X(
544
545
  a,
545
546
  (L) => {
@@ -572,7 +573,7 @@ function qn({ schema: s, defaultValues: e, model: t, options: n }) {
572
573
  showErrors: L
573
574
  });
574
575
  }
575
- const y = [];
576
+ const b = [];
576
577
  async function O(L) {
577
578
  await Ue();
578
579
  const D = X(
@@ -590,22 +591,27 @@ function qn({ schema: s, defaultValues: e, model: t, options: n }) {
590
591
  },
591
592
  { deep: typeof u.value[L] == "object" }
592
593
  );
593
- y.push(D);
594
+ b.push(D);
594
595
  }
595
596
  function v() {
596
- for (const L of y)
597
+ for (const L of b)
597
598
  L();
598
599
  for (const L of Object.keys(u.value))
599
600
  O(L);
600
601
  }
601
602
  function S(L, D) {
602
603
  return async (j) => {
603
- if (j == null || j.preventDefault(), h.value)
604
- return;
605
- g.value = !0, h.value = !0, await c(!0);
606
- const ne = typeof D == "string" ? D : i.scrollToError;
607
- let G;
608
- return E.value ? G = await L(a.value) : typeof ne != "boolean" && Xe(ne), h.value = !1, G;
604
+ if (j == null || j.preventDefault(), !h.value) {
605
+ g.value = !0, h.value = !0;
606
+ try {
607
+ await c(!0);
608
+ const se = typeof D == "string" ? D : i.scrollToError;
609
+ let G;
610
+ return E.value ? G = await L(a.value) : typeof se != "boolean" && Xe(se), h.value = !1, G;
611
+ } finally {
612
+ h.value = !1;
613
+ }
614
+ }
609
615
  };
610
616
  }
611
617
  const $ = {
@@ -891,7 +897,7 @@ const fs = [
891
897
  ];
892
898
  function hs(s, e) {
893
899
  return f(() => {
894
- const t = te(e), n = te(s);
900
+ const t = ae(e), n = ae(s);
895
901
  try {
896
902
  return !t || !n ? n : new Intl.DisplayNames([t], { type: "language" }).of(n) || n;
897
903
  } catch {
@@ -901,7 +907,7 @@ function hs(s, e) {
901
907
  }
902
908
  function vs(s) {
903
909
  return f(() => {
904
- const e = te(s);
910
+ const e = ae(s);
905
911
  if (!e)
906
912
  return [];
907
913
  const t = 65, n = 90, o = new Intl.DisplayNames([e], { type: "language" }), i = [];
@@ -918,7 +924,7 @@ function vs(s) {
918
924
  }
919
925
  function ps(s) {
920
926
  return f(() => {
921
- const e = te(s);
927
+ const e = ae(s);
922
928
  if (!e)
923
929
  return [];
924
930
  const t = new Intl.DisplayNames([e], {
@@ -1162,7 +1168,7 @@ class Ts {
1162
1168
  }
1163
1169
  }
1164
1170
  function Xn(s) {
1165
- const e = b(), t = b(), n = b(), o = b(), i = b(), r = b(), a = f(() => te(s.element)), u = new Ts({
1171
+ const e = y(), t = y(), n = y(), o = y(), i = y(), r = y(), a = f(() => ae(s.element)), u = new Ts({
1166
1172
  ...s,
1167
1173
  element: a.value,
1168
1174
  onValuesChanged(l) {
@@ -1190,7 +1196,7 @@ const Ls = {
1190
1196
  storageThemeValueLight: "light",
1191
1197
  storageThemeValueSystem: "system",
1192
1198
  watchChanges: !0
1193
- }, we = b("system"), K = b("system");
1199
+ }, we = y("system"), K = y("system");
1194
1200
  function Qe() {
1195
1201
  return window.matchMedia("(prefers-color-scheme: dark)").matches;
1196
1202
  }
@@ -1303,7 +1309,7 @@ function Gn(s) {
1303
1309
  };
1304
1310
  }
1305
1311
  function Cs({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200, callbackOffsetTime: n = 0 }) {
1306
- const o = b(s), i = b(s);
1312
+ const o = y(s), i = y(s);
1307
1313
  let r;
1308
1314
  function a(E) {
1309
1315
  typeof E == "number" && (i.value = E), typeof E == "number" && (o.value = E), u();
@@ -1629,10 +1635,10 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1629
1635
  },
1630
1636
  emits: ["close", "previous", "next", "before-close"],
1631
1637
  setup(s, { emit: e }) {
1632
- const t = s, n = e, o = H(() => import("./MazSpinner-BurN-1pb.mjs")), i = H(() => import("./x-mark-CnZwVvA7.mjs")), r = H(() => import("./chevron-left-BqVOLRdC.mjs")), a = b(!1), u = b(!1), l = b(!1), h = b(!1), g = b(!1), E = Bt({
1638
+ const t = s, n = e, o = H(() => import("./MazSpinner-BvJydaeF.mjs")), i = H(() => import("./x-mark-CnZwVvA7.mjs")), r = H(() => import("./chevron-left-BqVOLRdC.mjs")), a = y(!1), u = y(!1), l = y(!1), h = y(!1), g = y(!1), E = Bt({
1633
1639
  running: !1,
1634
1640
  ended: !1
1635
- }), T = b(t.clickedElement), M = f(() => t.clickedElement.getBoundingClientRect()), I = b(), c = b(t.src), y = b(t.alt), O = b(), v = b(), S = b(!0), $ = f(() => ({
1641
+ }), T = y(t.clickedElement), M = f(() => t.clickedElement.getBoundingClientRect()), I = y(), c = y(t.src), b = y(t.alt), O = y(), v = y(), S = y(!0), $ = f(() => ({
1636
1642
  "--is-zoomed": g.value,
1637
1643
  "--invisible": S.value,
1638
1644
  "--absolute": !g.value
@@ -1654,7 +1660,7 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1654
1660
  function j(p) {
1655
1661
  p.key === "Escape" && (p.preventDefault(), D()), (p.key === "ArrowLeft" || p.key === "ArrowRight") && (p.preventDefault(), me(p.key === "ArrowRight" ? "next" : "previous"));
1656
1662
  }
1657
- function ne() {
1663
+ function se() {
1658
1664
  document.documentElement.classList.add("--m-fullscreen-open");
1659
1665
  }
1660
1666
  function G() {
@@ -1669,7 +1675,7 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1669
1675
  async function de(p, w) {
1670
1676
  p.classList.remove(t.openInstanceClass), w.classList.add(t.openInstanceClass);
1671
1677
  const z = w.getAttribute("data-src"), P = w.getAttribute("data-alt");
1672
- y.value = P, c.value = z ?? c.value;
1678
+ b.value = P, c.value = z ?? c.value;
1673
1679
  }
1674
1680
  function me(p) {
1675
1681
  S.value = !0;
@@ -1698,7 +1704,7 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1698
1704
  async function Pe() {
1699
1705
  g.value ? (g.value = !g.value, m()) : (g.value = !g.value, fe());
1700
1706
  }
1701
- function oe(p) {
1707
+ function ne(p) {
1702
1708
  var z;
1703
1709
  E.running = !0, S.value = !1;
1704
1710
  const w = (z = v.value) == null ? void 0 : z.animate(p, {
@@ -1762,7 +1768,7 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1762
1768
  function k() {
1763
1769
  const { frames: p } = ze({
1764
1770
  trigger: "open"
1765
- }), w = oe(p);
1771
+ }), w = ne(p);
1766
1772
  if (!w) {
1767
1773
  console.error("[maz-ui](vFullscreenImg) open animation is not defined"), m();
1768
1774
  return;
@@ -1774,7 +1780,7 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1774
1780
  function x() {
1775
1781
  const { frames: p } = ze({
1776
1782
  trigger: "close"
1777
- }), w = oe(p);
1783
+ }), w = ne(p);
1778
1784
  function z() {
1779
1785
  var P, W;
1780
1786
  n("close"), (P = O.value) == null || P.remove(), (W = t.destroy) == null || W.call(t), E.running = !1, E.ended = !0;
@@ -1789,7 +1795,7 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1789
1795
  g.value || m();
1790
1796
  }
1791
1797
  return ue(() => {
1792
- u.value = !0, document.addEventListener("keydown", j), window.addEventListener("resize", he), ne(), h.value = ce().length > 1;
1798
+ u.value = !0, document.addEventListener("keydown", j), window.addEventListener("resize", he), se(), h.value = ce().length > 1;
1793
1799
  }), rt(() => {
1794
1800
  document.removeEventListener("keydown", j), window.removeEventListener("resize", he), G();
1795
1801
  }), (p, w) => (C(), _("div", {
@@ -1829,7 +1835,7 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1829
1835
  ref_key: "ImgElement",
1830
1836
  ref: v,
1831
1837
  src: c.value,
1832
- alt: y.value ?? void 0,
1838
+ alt: b.value ?? void 0,
1833
1839
  tabindex: "0",
1834
1840
  class: le([$.value]),
1835
1841
  onLoad: L,
@@ -2619,13 +2625,13 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
2619
2625
  async function r() {
2620
2626
  document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(tt);
2621
2627
  }
2622
- const a = b(n.modelValue);
2628
+ const a = y(n.modelValue);
2623
2629
  function u() {
2624
2630
  l(!1);
2625
2631
  }
2626
2632
  async function l(c) {
2627
- var y;
2628
- c || (o("before-close"), await ((y = n.beforeClose) == null ? void 0 : y.call(n))), a.value = c;
2633
+ var b;
2634
+ c || (o("before-close"), await ((b = n.beforeClose) == null ? void 0 : b.call(n))), a.value = c;
2629
2635
  }
2630
2636
  function h() {
2631
2637
  o("open");
@@ -2660,7 +2666,7 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
2660
2666
  present: a,
2661
2667
  toggleModal: l,
2662
2668
  onKeyPress: T
2663
- }), (c, y) => (C(), N(Ft, { to: c.teleportSelector }, [
2669
+ }), (c, b) => (C(), N(Ft, { to: c.teleportSelector }, [
2664
2670
  J(ut, {
2665
2671
  appear: "",
2666
2672
  name: c.transitionName,
@@ -2742,7 +2748,7 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
2742
2748
  },
2743
2749
  emits: ["open", "close", "update:model-value"],
2744
2750
  setup(s, { expose: e }) {
2745
- const t = s, n = H(() => import("./MazBtn-Dsr06Zgg.mjs")), o = H(() => import("./x-mark-CnZwVvA7.mjs")), i = jt(), r = b();
2751
+ const t = s, n = H(() => import("./MazBtn-D8uOirkn.mjs")), o = H(() => import("./x-mark-CnZwVvA7.mjs")), i = jt(), r = y();
2746
2752
  e({
2747
2753
  close: () => {
2748
2754
  var l, h;
@@ -2823,7 +2829,7 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
2823
2829
  /* FORWARDED */
2824
2830
  }, 16, ["persistent", "model-value"]));
2825
2831
  }
2826
- }), vn = /* @__PURE__ */ Re(hn, [["__scopeId", "data-v-50775b17"]]), ie = {
2832
+ }), vn = /* @__PURE__ */ Re(hn, [["__scopeId", "data-v-50775b17"]]), oe = {
2827
2833
  cancelText: "Cancel",
2828
2834
  confirmText: "Confirm",
2829
2835
  cancelButton: {
@@ -2834,11 +2840,11 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
2834
2840
  text: "Confirm",
2835
2841
  color: "success"
2836
2842
  }
2837
- }, pn = b(ie), re = b([]);
2843
+ }, pn = y(oe), ie = y([]);
2838
2844
  function gn(s, e) {
2839
2845
  return new Promise((t, n) => {
2840
- re.value = [
2841
- ...re.value,
2846
+ ie.value = [
2847
+ ...ie.value,
2842
2848
  {
2843
2849
  id: s,
2844
2850
  isActive: !0,
@@ -2853,7 +2859,7 @@ function gn(s, e) {
2853
2859
  });
2854
2860
  }
2855
2861
  function St(s) {
2856
- return re.value = re.value.filter(({ id: e }) => e !== s), re.value;
2862
+ return ie.value = ie.value.filter(({ id: e }) => e !== s), ie.value;
2857
2863
  }
2858
2864
  function st(s, e, t) {
2859
2865
  var n;
@@ -2864,7 +2870,7 @@ function st(s, e, t) {
2864
2870
  function xt() {
2865
2871
  return {
2866
2872
  data: pn,
2867
- dialogState: re,
2873
+ dialogState: ie,
2868
2874
  showDialogAndWaitChoice: gn,
2869
2875
  removeDialogFromState: St,
2870
2876
  rejectDialog: async (s, e = new Error("cancel"), t) => (await (t == null ? void 0 : t()), st("reject", s, e)),
@@ -2899,64 +2905,64 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
2899
2905
  },
2900
2906
  emits: ["open", "close"],
2901
2907
  setup(s, { expose: e }) {
2902
- const t = s, n = H(() => import("./MazBtn-Dsr06Zgg.mjs")), { dialogState: o, rejectDialog: i, resolveDialog: r, data: a } = xt(), u = f(() => {
2908
+ const t = s, n = H(() => import("./MazBtn-D8uOirkn.mjs")), { dialogState: o, rejectDialog: i, resolveDialog: r, data: a } = xt(), u = f(() => {
2903
2909
  var c;
2904
2910
  return t.buttons ?? ((c = t.data) == null ? void 0 : c.buttons) ?? a.value.buttons;
2905
2911
  }), l = f(() => ({
2906
- ...ie,
2912
+ ...oe,
2907
2913
  ...a.value,
2908
2914
  ...t.data
2909
2915
  })), h = f(() => {
2910
2916
  var O, v, S, $;
2911
- if (!(((O = a.value) == null ? void 0 : O.cancelButton) ?? ((v = t.data) == null ? void 0 : v.cancelButton) ?? ie.cancelButton))
2917
+ if (!(((O = a.value) == null ? void 0 : O.cancelButton) ?? ((v = t.data) == null ? void 0 : v.cancelButton) ?? oe.cancelButton))
2912
2918
  return;
2913
- const y = {
2914
- ...ie.cancelButton,
2919
+ const b = {
2920
+ ...oe.cancelButton,
2915
2921
  ...(S = a.value) == null ? void 0 : S.cancelButton,
2916
2922
  ...($ = t.data) == null ? void 0 : $.cancelButton
2917
2923
  };
2918
2924
  return {
2919
- ...y,
2920
- text: t.cancelText || l.value.cancelText || y.text
2925
+ ...b,
2926
+ text: t.cancelText || l.value.cancelText || b.text
2921
2927
  };
2922
2928
  }), g = f(() => {
2923
2929
  var O, v, S, $;
2924
- if (!(((O = a.value) == null ? void 0 : O.confirmButton) ?? ((v = t.data) == null ? void 0 : v.confirmButton) ?? ie.confirmButton))
2930
+ if (!(((O = a.value) == null ? void 0 : O.confirmButton) ?? ((v = t.data) == null ? void 0 : v.confirmButton) ?? oe.confirmButton))
2925
2931
  return;
2926
- const y = {
2927
- ...ie.confirmButton,
2932
+ const b = {
2933
+ ...oe.confirmButton,
2928
2934
  ...(S = a.value) == null ? void 0 : S.confirmButton,
2929
2935
  ...($ = t.data) == null ? void 0 : $.confirmButton
2930
2936
  };
2931
2937
  return {
2932
- ...y,
2933
- text: t.confirmText || l.value.confirmText || y.text
2938
+ ...b,
2939
+ text: t.confirmText || l.value.confirmText || b.text
2934
2940
  };
2935
2941
  }), E = f(
2936
2942
  () => o.value.find(({ id: c }) => c === t.identifier)
2937
- ), T = b();
2943
+ ), T = y();
2938
2944
  e({
2939
2945
  close: () => {
2940
- var c, y;
2941
- return (y = (c = T.value) == null ? void 0 : c.close) == null ? void 0 : y.call(c);
2946
+ var c, b;
2947
+ return (b = (c = T.value) == null ? void 0 : c.close) == null ? void 0 : b.call(c);
2942
2948
  }
2943
2949
  });
2944
2950
  function M(c) {
2945
2951
  return "type" in c && (c.type === "resolve" || c.type === "reject");
2946
2952
  }
2947
- function I(c, y) {
2948
- return M(y) ? y.type === "resolve" ? r(c, y.response) : i(c, y.response) : r(c, void 0, y.action);
2953
+ function I(c, b) {
2954
+ return M(b) ? b.type === "resolve" ? r(c, b.response) : i(c, b.response) : r(c, void 0, b.action);
2949
2955
  }
2950
- return (c, y) => {
2956
+ return (c, b) => {
2951
2957
  var O;
2952
2958
  return C(), N(vn, ee({
2953
2959
  ref_key: "dialog",
2954
2960
  ref: T
2955
2961
  }, { ...c.$attrs, ...t }, {
2956
2962
  "model-value": ((O = E.value) == null ? void 0 : O.isActive) ?? c.modelValue ?? !1,
2957
- onClose: y[2] || (y[2] = (v) => c.$emit("close", v)),
2958
- onOpen: y[3] || (y[3] = (v) => c.$emit("open", v)),
2959
- "onUpdate:modelValue": y[4] || (y[4] = (v) => A(i)(E.value))
2963
+ onClose: b[2] || (b[2] = (v) => c.$emit("close", v)),
2964
+ onOpen: b[3] || (b[3] = (v) => c.$emit("open", v)),
2965
+ "onUpdate:modelValue": b[4] || (b[4] = (v) => A(i)(E.value))
2960
2966
  }), {
2961
2967
  title: U(() => [
2962
2968
  q(c.$slots, "title", {}, () => {
@@ -3022,7 +3028,7 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
3022
3028
  h.value ? (C(), N(
3023
3029
  A(n),
3024
3030
  ee({ key: 0 }, h.value, {
3025
- onClick: y[0] || (y[0] = (v) => A(i)(E.value))
3031
+ onClick: b[0] || (b[0] = (v) => A(i)(E.value))
3026
3032
  }),
3027
3033
  {
3028
3034
  default: U(() => [
@@ -3043,7 +3049,7 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
3043
3049
  g.value ? (C(), N(
3044
3050
  A(n),
3045
3051
  ee({ key: 1 }, g.value, {
3046
- onClick: y[1] || (y[1] = (v) => A(r)(E.value))
3052
+ onClick: b[1] || (b[1] = (v) => A(r)(E.value))
3047
3053
  }),
3048
3054
  {
3049
3055
  default: U(() => [
@@ -3128,7 +3134,7 @@ const mo = {
3128
3134
  },
3129
3135
  emits: ["close", "click", "open"],
3130
3136
  setup(s, { expose: e, emit: t }) {
3131
- const n = s, o = t, i = H(() => import("./MazBtn-Dsr06Zgg.mjs")), r = H(() => import("./x-mark-CnZwVvA7.mjs")), a = H(
3137
+ const n = s, o = t, i = H(() => import("./MazBtn-D8uOirkn.mjs")), r = H(() => import("./x-mark-CnZwVvA7.mjs")), a = H(
3132
3138
  () => import("./arrow-top-right-on-square-jPmYJ34F.mjs")
3133
3139
  ), u = H(
3134
3140
  () => import("./exclamation-triangle-Z6d0ygp8.mjs")
@@ -3136,7 +3142,7 @@ const mo = {
3136
3142
  () => import("./exclamation-circle-CUk0ZajS.mjs")
3137
3143
  ), h = H(
3138
3144
  () => import("./information-circle-C7e5b_nL.mjs")
3139
- ), g = H(() => import("./check-circle-Bf7AGSQ-.mjs")), E = H(() => import("./link-Br1lfjTR.mjs")), T = b(), M = f(() => {
3145
+ ), g = H(() => import("./check-circle-Bf7AGSQ-.mjs")), E = H(() => import("./link-Br1lfjTR.mjs")), T = y(), M = f(() => {
3140
3146
  if (n.icon)
3141
3147
  switch (n.type) {
3142
3148
  case "danger":
@@ -3150,8 +3156,8 @@ const mo = {
3150
3156
  default:
3151
3157
  return;
3152
3158
  }
3153
- }), I = f(() => n.position.includes("top") ? "top" : "bottom"), c = f(() => n.position.includes("left") ? "left" : n.position.includes("right") ? "right" : "center"), y = f(() => c.value !== "center" ? c.value === "right" ? "m-slide-right" : "m-slide-left" : I.value === "top" ? "m-slide-top" : "m-slide-bottom"), O = b(!1), v = b(!1), S = b(), $ = `m-toast-container --${I.value} --${c.value}`, L = `.${$.replaceAll(" ", ".")}`, D = Cs({
3154
- callback: oe,
3159
+ }), I = f(() => n.position.includes("top") ? "top" : "bottom"), c = f(() => n.position.includes("left") ? "left" : n.position.includes("right") ? "right" : "center"), b = f(() => c.value !== "center" ? c.value === "right" ? "m-slide-right" : "m-slide-left" : I.value === "top" ? "m-slide-top" : "m-slide-bottom"), O = y(!1), v = y(!1), S = y(), $ = `m-toast-container --${I.value} --${c.value}`, L = `.${$.replaceAll(" ", ".")}`, D = Cs({
3160
+ callback: ne,
3155
3161
  timeout: typeof n.timeout == "number" ? n.timeout : 0,
3156
3162
  callbackOffsetTime: 200
3157
3163
  });
@@ -3162,19 +3168,19 @@ const mo = {
3162
3168
  x.className = $, k.append(x);
3163
3169
  }
3164
3170
  }
3165
- function ne() {
3171
+ function se() {
3166
3172
  const m = document.querySelector(L);
3167
3173
  return !n.queue && n.maxToasts === !1 ? !1 : typeof n.maxToasts == "number" && m ? n.maxToasts <= m.childElementCount : m && m.childElementCount > 0;
3168
3174
  }
3169
3175
  function G() {
3170
- if (ne()) {
3176
+ if (se()) {
3171
3177
  S.value = setTimeout(G, 250);
3172
3178
  return;
3173
3179
  }
3174
3180
  const m = document.querySelector(L);
3175
3181
  T.value && m && m.prepend(T.value), v.value = !0, typeof n.timeout == "number" && n.timeout > 0 && D.start();
3176
3182
  }
3177
- const ce = b("100%");
3183
+ const ce = y("100%");
3178
3184
  function De() {
3179
3185
  switch (n.type) {
3180
3186
  case "danger":
@@ -3199,7 +3205,7 @@ const mo = {
3199
3205
  }
3200
3206
  );
3201
3207
  function de(m) {
3202
- o("click", m), n.persistent || oe();
3208
+ o("click", m), n.persistent || ne();
3203
3209
  }
3204
3210
  async function me(m, k) {
3205
3211
  var x;
@@ -3211,10 +3217,10 @@ const mo = {
3211
3217
  function Pe() {
3212
3218
  D.stop(), S.value && clearTimeout(S.value);
3213
3219
  }
3214
- function oe() {
3220
+ function ne() {
3215
3221
  Pe(), v.value = !1;
3216
3222
  }
3217
- e({ closeToast: oe });
3223
+ e({ closeToast: ne });
3218
3224
  function Le() {
3219
3225
  o("open");
3220
3226
  }
@@ -3227,7 +3233,7 @@ const mo = {
3227
3233
  return ue(() => {
3228
3234
  j(), G();
3229
3235
  }), (m, k) => (C(), N(ut, {
3230
- name: y.value,
3236
+ name: b.value,
3231
3237
  onAfterLeave: ze,
3232
3238
  onAfterEnter: Le,
3233
3239
  persisted: ""
@@ -3407,37 +3413,37 @@ const fo = {
3407
3413
  install(s, e) {
3408
3414
  s.provide("toast", xn(s, e));
3409
3415
  }
3410
- }, ae = "";
3416
+ }, re = "";
3411
3417
  function On(s) {
3412
3418
  return s.filter((e, t, n) => t === n.indexOf(e));
3413
3419
  }
3414
3420
  function Dn(s) {
3415
- return (e = ae) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e);
3421
+ return (e = re) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e);
3416
3422
  }
3417
3423
  const Pn = (s) => s.length > 0;
3418
3424
  function Mn(s) {
3419
- return (e = ae) => On([...s, e]);
3425
+ return (e = re) => On([...s, e]);
3420
3426
  }
3421
3427
  function $n(s) {
3422
- return (e = ae) => s.filter((t) => t !== e);
3428
+ return (e = re) => s.filter((t) => t !== e);
3423
3429
  }
3424
3430
  class Hn {
3425
3431
  constructor() {
3426
- d(this, "_loaders", b([]));
3432
+ d(this, "_loaders", y([]));
3427
3433
  }
3428
3434
  get loaders() {
3429
3435
  return f(() => this._loaders.value);
3430
3436
  }
3431
- stop(e = ae) {
3437
+ stop(e = re) {
3432
3438
  this._loaders.value = $n(this._loaders.value)(e);
3433
3439
  }
3434
- start(e = ae) {
3440
+ start(e = re) {
3435
3441
  return this._loaders.value = Mn(this._loaders.value)(e), () => this.stop(e);
3436
3442
  }
3437
3443
  get anyLoading() {
3438
3444
  return f(() => Pn(this._loaders.value));
3439
3445
  }
3440
- isLoading(e = ae) {
3446
+ isLoading(e = re) {
3441
3447
  return f(() => Dn(this._loaders.value)(e)).value;
3442
3448
  }
3443
3449
  }