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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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
  }
@@ -178,11 +178,11 @@ function Qt({
178
178
  return t != null && t[s] ? Zt(
179
179
  s,
180
180
  pe,
181
- typeof t[s] == "number" ? t[s] : se.debounceTime
181
+ typeof t[s] == "number" ? t[s] : te.debounceTime
182
182
  ) : n != null && n[s] ? Xt(
183
183
  s,
184
184
  pe,
185
- typeof n[s] == "number" ? n[s] : se.throttleTime
185
+ typeof n[s] == "number" ? n[s] : te.throttleTime
186
186
  ) : pe;
187
187
  }
188
188
  }
@@ -209,7 +209,7 @@ function ft({
209
209
  validated: !1,
210
210
  initialValue: dt(t),
211
211
  validateFunction: r,
212
- mode: i ? (o == null ? void 0 : o.mode) ?? (n == null ? void 0 : n.mode) ?? se.mode : void 0
212
+ mode: i ? (o == null ? void 0 : o.mode) ?? (n == null ? void 0 : n.mode) ?? te.mode : void 0
213
213
  };
214
214
  }
215
215
  function Jt({
@@ -263,7 +263,7 @@ function ht({
263
263
  initialValue: o.defaultValue ?? t[s],
264
264
  fieldState: e,
265
265
  options: o
266
- }), l = i ? a ?? e.mode ?? se.mode : e.mode;
266
+ }), l = i ? a ?? e.mode ?? te.mode : e.mode;
267
267
  return {
268
268
  ...e,
269
269
  initialValue: r,
@@ -494,12 +494,12 @@ function _n(s, e) {
494
494
  });
495
495
  };
496
496
  ue(() => {
497
- const I = qe(`useFormField of ${s.toString()}`);
497
+ const I = qe(`useFormField of ${s}`);
498
498
  ct(() => I.refs[t.ref], (c) => {
499
- const y = c instanceof HTMLElement ? c : c == null ? void 0 : c.$el;
500
- y && M(y);
499
+ const b = c instanceof HTMLElement ? c : c == null ? void 0 : c.$el;
500
+ b && M(b);
501
501
  }, {
502
- errorMessage: `[maz-ui](useFormField) No element found for ref ${t.ref} for field ${s.toString()}`
502
+ errorMessage: `[maz-ui](useFormField) No element found for ref ${t.ref} for field ${s}`
503
503
  });
504
504
  }), it(() => {
505
505
  os({
@@ -527,19 +527,19 @@ function _n(s, e) {
527
527
  }
528
528
  function qn({ schema: s, defaultValues: e, model: t, options: n }) {
529
529
  const o = qe("useFormValidator"), i = {
530
- mode: se.mode,
531
- scrollToError: se.scrollToErrorSelector,
530
+ mode: te.mode,
531
+ scrollToError: te.scrollToErrorSelector,
532
532
  debouncedFields: null,
533
533
  throttledFields: null,
534
534
  identifier: "main-form-validator",
535
535
  ...n
536
- }, r = b(e), a = b({ ...r.value, ...t == null ? void 0 : t.value }), u = te(s), l = b(
536
+ }, r = y(e), a = y({ ...r.value, ...t == null ? void 0 : t.value }), u = y(s), l = y(
537
537
  Jt({
538
538
  schema: u.value,
539
539
  payload: a.value,
540
540
  options: i
541
541
  })
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));
542
+ ), 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
543
  t && X(
544
544
  a,
545
545
  (L) => {
@@ -572,7 +572,7 @@ function qn({ schema: s, defaultValues: e, model: t, options: n }) {
572
572
  showErrors: L
573
573
  });
574
574
  }
575
- const y = [];
575
+ const b = [];
576
576
  async function O(L) {
577
577
  await Ue();
578
578
  const D = X(
@@ -590,10 +590,10 @@ function qn({ schema: s, defaultValues: e, model: t, options: n }) {
590
590
  },
591
591
  { deep: typeof u.value[L] == "object" }
592
592
  );
593
- y.push(D);
593
+ b.push(D);
594
594
  }
595
595
  function v() {
596
- for (const L of y)
596
+ for (const L of b)
597
597
  L();
598
598
  for (const L of Object.keys(u.value))
599
599
  O(L);
@@ -603,9 +603,9 @@ function qn({ schema: s, defaultValues: e, model: t, options: n }) {
603
603
  if (j == null || j.preventDefault(), h.value)
604
604
  return;
605
605
  g.value = !0, h.value = !0, await c(!0);
606
- const ne = typeof D == "string" ? D : i.scrollToError;
606
+ const se = typeof D == "string" ? D : i.scrollToError;
607
607
  let G;
608
- return E.value ? G = await L(a.value) : typeof ne != "boolean" && Xe(ne), h.value = !1, G;
608
+ return E.value ? G = await L(a.value) : typeof se != "boolean" && Xe(se), h.value = !1, G;
609
609
  };
610
610
  }
611
611
  const $ = {
@@ -891,7 +891,7 @@ const fs = [
891
891
  ];
892
892
  function hs(s, e) {
893
893
  return f(() => {
894
- const t = te(e), n = te(s);
894
+ const t = ae(e), n = ae(s);
895
895
  try {
896
896
  return !t || !n ? n : new Intl.DisplayNames([t], { type: "language" }).of(n) || n;
897
897
  } catch {
@@ -901,7 +901,7 @@ function hs(s, e) {
901
901
  }
902
902
  function vs(s) {
903
903
  return f(() => {
904
- const e = te(s);
904
+ const e = ae(s);
905
905
  if (!e)
906
906
  return [];
907
907
  const t = 65, n = 90, o = new Intl.DisplayNames([e], { type: "language" }), i = [];
@@ -918,7 +918,7 @@ function vs(s) {
918
918
  }
919
919
  function ps(s) {
920
920
  return f(() => {
921
- const e = te(s);
921
+ const e = ae(s);
922
922
  if (!e)
923
923
  return [];
924
924
  const t = new Intl.DisplayNames([e], {
@@ -1162,7 +1162,7 @@ class Ts {
1162
1162
  }
1163
1163
  }
1164
1164
  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({
1165
+ const e = y(), t = y(), n = y(), o = y(), i = y(), r = y(), a = f(() => ae(s.element)), u = new Ts({
1166
1166
  ...s,
1167
1167
  element: a.value,
1168
1168
  onValuesChanged(l) {
@@ -1190,7 +1190,7 @@ const Ls = {
1190
1190
  storageThemeValueLight: "light",
1191
1191
  storageThemeValueSystem: "system",
1192
1192
  watchChanges: !0
1193
- }, we = b("system"), K = b("system");
1193
+ }, we = y("system"), K = y("system");
1194
1194
  function Qe() {
1195
1195
  return window.matchMedia("(prefers-color-scheme: dark)").matches;
1196
1196
  }
@@ -1303,7 +1303,7 @@ function Gn(s) {
1303
1303
  };
1304
1304
  }
1305
1305
  function Cs({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200, callbackOffsetTime: n = 0 }) {
1306
- const o = b(s), i = b(s);
1306
+ const o = y(s), i = y(s);
1307
1307
  let r;
1308
1308
  function a(E) {
1309
1309
  typeof E == "number" && (i.value = E), typeof E == "number" && (o.value = E), u();
@@ -1629,10 +1629,10 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1629
1629
  },
1630
1630
  emits: ["close", "previous", "next", "before-close"],
1631
1631
  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({
1632
+ const t = s, n = e, o = H(() => import("./MazSpinner-C95OqwKl.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
1633
  running: !1,
1634
1634
  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(() => ({
1635
+ }), 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
1636
  "--is-zoomed": g.value,
1637
1637
  "--invisible": S.value,
1638
1638
  "--absolute": !g.value
@@ -1654,7 +1654,7 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1654
1654
  function j(p) {
1655
1655
  p.key === "Escape" && (p.preventDefault(), D()), (p.key === "ArrowLeft" || p.key === "ArrowRight") && (p.preventDefault(), me(p.key === "ArrowRight" ? "next" : "previous"));
1656
1656
  }
1657
- function ne() {
1657
+ function se() {
1658
1658
  document.documentElement.classList.add("--m-fullscreen-open");
1659
1659
  }
1660
1660
  function G() {
@@ -1669,7 +1669,7 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1669
1669
  async function de(p, w) {
1670
1670
  p.classList.remove(t.openInstanceClass), w.classList.add(t.openInstanceClass);
1671
1671
  const z = w.getAttribute("data-src"), P = w.getAttribute("data-alt");
1672
- y.value = P, c.value = z ?? c.value;
1672
+ b.value = P, c.value = z ?? c.value;
1673
1673
  }
1674
1674
  function me(p) {
1675
1675
  S.value = !0;
@@ -1698,7 +1698,7 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1698
1698
  async function Pe() {
1699
1699
  g.value ? (g.value = !g.value, m()) : (g.value = !g.value, fe());
1700
1700
  }
1701
- function oe(p) {
1701
+ function ne(p) {
1702
1702
  var z;
1703
1703
  E.running = !0, S.value = !1;
1704
1704
  const w = (z = v.value) == null ? void 0 : z.animate(p, {
@@ -1762,7 +1762,7 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1762
1762
  function k() {
1763
1763
  const { frames: p } = ze({
1764
1764
  trigger: "open"
1765
- }), w = oe(p);
1765
+ }), w = ne(p);
1766
1766
  if (!w) {
1767
1767
  console.error("[maz-ui](vFullscreenImg) open animation is not defined"), m();
1768
1768
  return;
@@ -1774,7 +1774,7 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1774
1774
  function x() {
1775
1775
  const { frames: p } = ze({
1776
1776
  trigger: "close"
1777
- }), w = oe(p);
1777
+ }), w = ne(p);
1778
1778
  function z() {
1779
1779
  var P, W;
1780
1780
  n("close"), (P = O.value) == null || P.remove(), (W = t.destroy) == null || W.call(t), E.running = !1, E.ended = !0;
@@ -1789,7 +1789,7 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1789
1789
  g.value || m();
1790
1790
  }
1791
1791
  return ue(() => {
1792
- u.value = !0, document.addEventListener("keydown", j), window.addEventListener("resize", he), ne(), h.value = ce().length > 1;
1792
+ u.value = !0, document.addEventListener("keydown", j), window.addEventListener("resize", he), se(), h.value = ce().length > 1;
1793
1793
  }), rt(() => {
1794
1794
  document.removeEventListener("keydown", j), window.removeEventListener("resize", he), G();
1795
1795
  }), (p, w) => (C(), _("div", {
@@ -1829,7 +1829,7 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1829
1829
  ref_key: "ImgElement",
1830
1830
  ref: v,
1831
1831
  src: c.value,
1832
- alt: y.value ?? void 0,
1832
+ alt: b.value ?? void 0,
1833
1833
  tabindex: "0",
1834
1834
  class: le([$.value]),
1835
1835
  onLoad: L,
@@ -2619,13 +2619,13 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
2619
2619
  async function r() {
2620
2620
  document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(tt);
2621
2621
  }
2622
- const a = b(n.modelValue);
2622
+ const a = y(n.modelValue);
2623
2623
  function u() {
2624
2624
  l(!1);
2625
2625
  }
2626
2626
  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;
2627
+ var b;
2628
+ c || (o("before-close"), await ((b = n.beforeClose) == null ? void 0 : b.call(n))), a.value = c;
2629
2629
  }
2630
2630
  function h() {
2631
2631
  o("open");
@@ -2660,7 +2660,7 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
2660
2660
  present: a,
2661
2661
  toggleModal: l,
2662
2662
  onKeyPress: T
2663
- }), (c, y) => (C(), N(Ft, { to: c.teleportSelector }, [
2663
+ }), (c, b) => (C(), N(Ft, { to: c.teleportSelector }, [
2664
2664
  J(ut, {
2665
2665
  appear: "",
2666
2666
  name: c.transitionName,
@@ -2742,7 +2742,7 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
2742
2742
  },
2743
2743
  emits: ["open", "close", "update:model-value"],
2744
2744
  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();
2745
+ const t = s, n = H(() => import("./MazBtn-QVmZ90t5.mjs")), o = H(() => import("./x-mark-CnZwVvA7.mjs")), i = jt(), r = y();
2746
2746
  e({
2747
2747
  close: () => {
2748
2748
  var l, h;
@@ -2823,7 +2823,7 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
2823
2823
  /* FORWARDED */
2824
2824
  }, 16, ["persistent", "model-value"]));
2825
2825
  }
2826
- }), vn = /* @__PURE__ */ Re(hn, [["__scopeId", "data-v-50775b17"]]), ie = {
2826
+ }), vn = /* @__PURE__ */ Re(hn, [["__scopeId", "data-v-50775b17"]]), oe = {
2827
2827
  cancelText: "Cancel",
2828
2828
  confirmText: "Confirm",
2829
2829
  cancelButton: {
@@ -2834,11 +2834,11 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
2834
2834
  text: "Confirm",
2835
2835
  color: "success"
2836
2836
  }
2837
- }, pn = b(ie), re = b([]);
2837
+ }, pn = y(oe), ie = y([]);
2838
2838
  function gn(s, e) {
2839
2839
  return new Promise((t, n) => {
2840
- re.value = [
2841
- ...re.value,
2840
+ ie.value = [
2841
+ ...ie.value,
2842
2842
  {
2843
2843
  id: s,
2844
2844
  isActive: !0,
@@ -2853,7 +2853,7 @@ function gn(s, e) {
2853
2853
  });
2854
2854
  }
2855
2855
  function St(s) {
2856
- return re.value = re.value.filter(({ id: e }) => e !== s), re.value;
2856
+ return ie.value = ie.value.filter(({ id: e }) => e !== s), ie.value;
2857
2857
  }
2858
2858
  function st(s, e, t) {
2859
2859
  var n;
@@ -2864,7 +2864,7 @@ function st(s, e, t) {
2864
2864
  function xt() {
2865
2865
  return {
2866
2866
  data: pn,
2867
- dialogState: re,
2867
+ dialogState: ie,
2868
2868
  showDialogAndWaitChoice: gn,
2869
2869
  removeDialogFromState: St,
2870
2870
  rejectDialog: async (s, e = new Error("cancel"), t) => (await (t == null ? void 0 : t()), st("reject", s, e)),
@@ -2899,64 +2899,64 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
2899
2899
  },
2900
2900
  emits: ["open", "close"],
2901
2901
  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(() => {
2902
+ const t = s, n = H(() => import("./MazBtn-QVmZ90t5.mjs")), { dialogState: o, rejectDialog: i, resolveDialog: r, data: a } = xt(), u = f(() => {
2903
2903
  var c;
2904
2904
  return t.buttons ?? ((c = t.data) == null ? void 0 : c.buttons) ?? a.value.buttons;
2905
2905
  }), l = f(() => ({
2906
- ...ie,
2906
+ ...oe,
2907
2907
  ...a.value,
2908
2908
  ...t.data
2909
2909
  })), h = f(() => {
2910
2910
  var O, v, S, $;
2911
- if (!(((O = a.value) == null ? void 0 : O.cancelButton) ?? ((v = t.data) == null ? void 0 : v.cancelButton) ?? ie.cancelButton))
2911
+ if (!(((O = a.value) == null ? void 0 : O.cancelButton) ?? ((v = t.data) == null ? void 0 : v.cancelButton) ?? oe.cancelButton))
2912
2912
  return;
2913
- const y = {
2914
- ...ie.cancelButton,
2913
+ const b = {
2914
+ ...oe.cancelButton,
2915
2915
  ...(S = a.value) == null ? void 0 : S.cancelButton,
2916
2916
  ...($ = t.data) == null ? void 0 : $.cancelButton
2917
2917
  };
2918
2918
  return {
2919
- ...y,
2920
- text: t.cancelText || l.value.cancelText || y.text
2919
+ ...b,
2920
+ text: t.cancelText || l.value.cancelText || b.text
2921
2921
  };
2922
2922
  }), g = f(() => {
2923
2923
  var O, v, S, $;
2924
- if (!(((O = a.value) == null ? void 0 : O.confirmButton) ?? ((v = t.data) == null ? void 0 : v.confirmButton) ?? ie.confirmButton))
2924
+ if (!(((O = a.value) == null ? void 0 : O.confirmButton) ?? ((v = t.data) == null ? void 0 : v.confirmButton) ?? oe.confirmButton))
2925
2925
  return;
2926
- const y = {
2927
- ...ie.confirmButton,
2926
+ const b = {
2927
+ ...oe.confirmButton,
2928
2928
  ...(S = a.value) == null ? void 0 : S.confirmButton,
2929
2929
  ...($ = t.data) == null ? void 0 : $.confirmButton
2930
2930
  };
2931
2931
  return {
2932
- ...y,
2933
- text: t.confirmText || l.value.confirmText || y.text
2932
+ ...b,
2933
+ text: t.confirmText || l.value.confirmText || b.text
2934
2934
  };
2935
2935
  }), E = f(
2936
2936
  () => o.value.find(({ id: c }) => c === t.identifier)
2937
- ), T = b();
2937
+ ), T = y();
2938
2938
  e({
2939
2939
  close: () => {
2940
- var c, y;
2941
- return (y = (c = T.value) == null ? void 0 : c.close) == null ? void 0 : y.call(c);
2940
+ var c, b;
2941
+ return (b = (c = T.value) == null ? void 0 : c.close) == null ? void 0 : b.call(c);
2942
2942
  }
2943
2943
  });
2944
2944
  function M(c) {
2945
2945
  return "type" in c && (c.type === "resolve" || c.type === "reject");
2946
2946
  }
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);
2947
+ function I(c, b) {
2948
+ return M(b) ? b.type === "resolve" ? r(c, b.response) : i(c, b.response) : r(c, void 0, b.action);
2949
2949
  }
2950
- return (c, y) => {
2950
+ return (c, b) => {
2951
2951
  var O;
2952
2952
  return C(), N(vn, ee({
2953
2953
  ref_key: "dialog",
2954
2954
  ref: T
2955
2955
  }, { ...c.$attrs, ...t }, {
2956
2956
  "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))
2957
+ onClose: b[2] || (b[2] = (v) => c.$emit("close", v)),
2958
+ onOpen: b[3] || (b[3] = (v) => c.$emit("open", v)),
2959
+ "onUpdate:modelValue": b[4] || (b[4] = (v) => A(i)(E.value))
2960
2960
  }), {
2961
2961
  title: U(() => [
2962
2962
  q(c.$slots, "title", {}, () => {
@@ -3022,7 +3022,7 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
3022
3022
  h.value ? (C(), N(
3023
3023
  A(n),
3024
3024
  ee({ key: 0 }, h.value, {
3025
- onClick: y[0] || (y[0] = (v) => A(i)(E.value))
3025
+ onClick: b[0] || (b[0] = (v) => A(i)(E.value))
3026
3026
  }),
3027
3027
  {
3028
3028
  default: U(() => [
@@ -3043,7 +3043,7 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
3043
3043
  g.value ? (C(), N(
3044
3044
  A(n),
3045
3045
  ee({ key: 1 }, g.value, {
3046
- onClick: y[1] || (y[1] = (v) => A(r)(E.value))
3046
+ onClick: b[1] || (b[1] = (v) => A(r)(E.value))
3047
3047
  }),
3048
3048
  {
3049
3049
  default: U(() => [
@@ -3128,7 +3128,7 @@ const mo = {
3128
3128
  },
3129
3129
  emits: ["close", "click", "open"],
3130
3130
  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(
3131
+ const n = s, o = t, i = H(() => import("./MazBtn-QVmZ90t5.mjs")), r = H(() => import("./x-mark-CnZwVvA7.mjs")), a = H(
3132
3132
  () => import("./arrow-top-right-on-square-jPmYJ34F.mjs")
3133
3133
  ), u = H(
3134
3134
  () => import("./exclamation-triangle-Z6d0ygp8.mjs")
@@ -3136,7 +3136,7 @@ const mo = {
3136
3136
  () => import("./exclamation-circle-CUk0ZajS.mjs")
3137
3137
  ), h = H(
3138
3138
  () => import("./information-circle-C7e5b_nL.mjs")
3139
- ), g = H(() => import("./check-circle-Bf7AGSQ-.mjs")), E = H(() => import("./link-Br1lfjTR.mjs")), T = b(), M = f(() => {
3139
+ ), g = H(() => import("./check-circle-Bf7AGSQ-.mjs")), E = H(() => import("./link-Br1lfjTR.mjs")), T = y(), M = f(() => {
3140
3140
  if (n.icon)
3141
3141
  switch (n.type) {
3142
3142
  case "danger":
@@ -3150,8 +3150,8 @@ const mo = {
3150
3150
  default:
3151
3151
  return;
3152
3152
  }
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,
3153
+ }), 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({
3154
+ callback: ne,
3155
3155
  timeout: typeof n.timeout == "number" ? n.timeout : 0,
3156
3156
  callbackOffsetTime: 200
3157
3157
  });
@@ -3162,19 +3162,19 @@ const mo = {
3162
3162
  x.className = $, k.append(x);
3163
3163
  }
3164
3164
  }
3165
- function ne() {
3165
+ function se() {
3166
3166
  const m = document.querySelector(L);
3167
3167
  return !n.queue && n.maxToasts === !1 ? !1 : typeof n.maxToasts == "number" && m ? n.maxToasts <= m.childElementCount : m && m.childElementCount > 0;
3168
3168
  }
3169
3169
  function G() {
3170
- if (ne()) {
3170
+ if (se()) {
3171
3171
  S.value = setTimeout(G, 250);
3172
3172
  return;
3173
3173
  }
3174
3174
  const m = document.querySelector(L);
3175
3175
  T.value && m && m.prepend(T.value), v.value = !0, typeof n.timeout == "number" && n.timeout > 0 && D.start();
3176
3176
  }
3177
- const ce = b("100%");
3177
+ const ce = y("100%");
3178
3178
  function De() {
3179
3179
  switch (n.type) {
3180
3180
  case "danger":
@@ -3199,7 +3199,7 @@ const mo = {
3199
3199
  }
3200
3200
  );
3201
3201
  function de(m) {
3202
- o("click", m), n.persistent || oe();
3202
+ o("click", m), n.persistent || ne();
3203
3203
  }
3204
3204
  async function me(m, k) {
3205
3205
  var x;
@@ -3211,10 +3211,10 @@ const mo = {
3211
3211
  function Pe() {
3212
3212
  D.stop(), S.value && clearTimeout(S.value);
3213
3213
  }
3214
- function oe() {
3214
+ function ne() {
3215
3215
  Pe(), v.value = !1;
3216
3216
  }
3217
- e({ closeToast: oe });
3217
+ e({ closeToast: ne });
3218
3218
  function Le() {
3219
3219
  o("open");
3220
3220
  }
@@ -3227,7 +3227,7 @@ const mo = {
3227
3227
  return ue(() => {
3228
3228
  j(), G();
3229
3229
  }), (m, k) => (C(), N(ut, {
3230
- name: y.value,
3230
+ name: b.value,
3231
3231
  onAfterLeave: ze,
3232
3232
  onAfterEnter: Le,
3233
3233
  persisted: ""
@@ -3407,37 +3407,37 @@ const fo = {
3407
3407
  install(s, e) {
3408
3408
  s.provide("toast", xn(s, e));
3409
3409
  }
3410
- }, ae = "";
3410
+ }, re = "";
3411
3411
  function On(s) {
3412
3412
  return s.filter((e, t, n) => t === n.indexOf(e));
3413
3413
  }
3414
3414
  function Dn(s) {
3415
- return (e = ae) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e);
3415
+ return (e = re) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e);
3416
3416
  }
3417
3417
  const Pn = (s) => s.length > 0;
3418
3418
  function Mn(s) {
3419
- return (e = ae) => On([...s, e]);
3419
+ return (e = re) => On([...s, e]);
3420
3420
  }
3421
3421
  function $n(s) {
3422
- return (e = ae) => s.filter((t) => t !== e);
3422
+ return (e = re) => s.filter((t) => t !== e);
3423
3423
  }
3424
3424
  class Hn {
3425
3425
  constructor() {
3426
- d(this, "_loaders", b([]));
3426
+ d(this, "_loaders", y([]));
3427
3427
  }
3428
3428
  get loaders() {
3429
3429
  return f(() => this._loaders.value);
3430
3430
  }
3431
- stop(e = ae) {
3431
+ stop(e = re) {
3432
3432
  this._loaders.value = $n(this._loaders.value)(e);
3433
3433
  }
3434
- start(e = ae) {
3434
+ start(e = re) {
3435
3435
  return this._loaders.value = Mn(this._loaders.value)(e), () => this.stop(e);
3436
3436
  }
3437
3437
  get anyLoading() {
3438
3438
  return f(() => Pn(this._loaders.value));
3439
3439
  }
3440
- isLoading(e = ae) {
3440
+ isLoading(e = re) {
3441
3441
  return f(() => Dn(this._loaders.value)(e)).value;
3442
3442
  }
3443
3443
  }