maz-ui 3.47.2-beta.23 → 3.47.2-beta.24

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 (25) hide show
  1. package/components/MazDialog.mjs +1 -1
  2. package/components/MazDialogPromise.mjs +1 -1
  3. package/components/assets/MazDialog.css +1 -1
  4. package/components/assets/MazDialogPromise.css +1 -1
  5. package/components/chunks/{MazBtn-CsLtHm4K.mjs → MazBtn-B5o15XDU.mjs} +2 -2
  6. package/components/chunks/{MazBtn-ZAcYNusG.mjs → MazBtn-D-lSRE8n.mjs} +2 -2
  7. package/components/chunks/{MazDialog-Ca3jJ12T.mjs → MazDialog-CVo6Lqqe.mjs} +102 -102
  8. package/components/chunks/MazDialogPromise-CpVRFbno.mjs +551 -0
  9. package/components/chunks/{MazSpinner-D5Sbo759.mjs → MazSpinner-5S6Sn-lq.mjs} +1 -1
  10. package/components/chunks/{MazSpinner-DPur0-r-.mjs → MazSpinner-Bn4pnCJx.mjs} +1 -1
  11. package/modules/assets/index.css +1 -1
  12. package/modules/chunks/{MazBtn-yNCoLFA6.mjs → MazBtn-BB46O5je.mjs} +2 -2
  13. package/modules/chunks/{MazBtn-CFge_w1W.cjs → MazBtn-CZT-LQS2.cjs} +1 -1
  14. package/modules/chunks/{MazIcon-C3__MBEL.mjs → MazIcon-CQd2Upkc.mjs} +1 -1
  15. package/modules/chunks/{MazIcon-CqhvM2xp.cjs → MazIcon-yWU14J0C.cjs} +1 -1
  16. package/modules/chunks/{MazSpinner-C4XtaFJk.mjs → MazSpinner-C2h_t5PV.mjs} +1 -1
  17. package/modules/chunks/{MazSpinner-DkJAN36F.cjs → MazSpinner-D8KHXwFm.cjs} +1 -1
  18. package/modules/chunks/{index-CXu9R01-.mjs → index-2pl8TbAm.mjs} +740 -740
  19. package/modules/chunks/index-DwaxfXYQ.cjs +124 -0
  20. package/modules/index.cjs +1 -1
  21. package/modules/index.mjs +1 -1
  22. package/nuxt/index.json +1 -1
  23. package/package.json +1 -1
  24. package/components/chunks/MazDialogPromise-DOnmLhui.mjs +0 -551
  25. package/modules/chunks/index-Bawg2UGE.cjs +0 -124
@@ -1,17 +1,17 @@
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
- var d = (s, e, t) => Mt(s, typeof e != "symbol" ? e + "" : e, t);
4
- import { inject as ot, ref as w, onMounted as le, onUnmounted as it, computed as p, toValue as ve, nextTick as ae, getCurrentInstance as $t, watch as X, provide as Vt, useId as Ht, onBeforeUnmount as rt, createVNode as J, render as Ce, defineComponent as ye, defineAsyncComponent as H, reactive as Bt, openBlock as C, createElementBlock as U, withModifiers as Y, withKeys as Nt, unref as x, createCommentVNode as B, createElementVNode as V, normalizeClass as ge, withDirectives as at, vShow as lt, createBlock as N, Teleport as Ft, Transition as ut, withCtx as q, mergeProps as ee, renderSlot as W, useAttrs as jt, createTextVNode as Q, toDisplayString as Z, Fragment as Ye, renderList as qt, resolveDynamicComponent as Ut, normalizeStyle as Wt } from "vue";
3
+ var c = (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 h, toValue as pe, nextTick as ae, getCurrentInstance as $t, watch as X, provide as Vt, useId as Ht, onBeforeUnmount as rt, createVNode as J, render as Ce, defineComponent as ye, defineAsyncComponent as H, reactive as Bt, openBlock as A, createElementBlock as U, withModifiers as Y, withKeys as Nt, unref as O, createCommentVNode as B, createElementVNode as V, normalizeClass as le, withDirectives as at, vShow as lt, createBlock as N, Teleport as Ft, Transition as ut, withCtx as q, mergeProps as ee, renderSlot as W, useAttrs as jt, useSlots as qt, createTextVNode as Q, toDisplayString as Z, Fragment as Ye, renderList as Ut, resolveDynamicComponent as Wt, normalizeStyle as Rt } from "vue";
5
5
  function De(s, e) {
6
6
  const t = ot(s, e);
7
7
  if (!t)
8
8
  throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${s.toString()}`);
9
9
  return t;
10
10
  }
11
- function jn() {
11
+ function qn() {
12
12
  return De("aos");
13
13
  }
14
- function Rt(s) {
14
+ function _t(s) {
15
15
  const e = {};
16
16
  for (const [t, n] of Object.entries(s))
17
17
  e[t] = Number.parseInt(n, 10);
@@ -20,23 +20,23 @@ function Rt(s) {
20
20
  function F() {
21
21
  return typeof document < "u";
22
22
  }
23
- function _t(s = {}) {
23
+ function Kt(s = {}) {
24
24
  const {
25
25
  internalWindow: e = F() ? window : void 0,
26
26
  initialWidth: t = Number.POSITIVE_INFINITY,
27
27
  initialHeight: n = Number.POSITIVE_INFINITY,
28
28
  includeScrollbar: o = !0
29
- } = s, i = w(t), r = w(n);
29
+ } = s, i = b(t), r = b(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
  }
33
- return a(), le(() => {
33
+ return a(), ue(() => {
34
34
  e && window.addEventListener("resize", a, { passive: !0 });
35
35
  }), it(() => {
36
36
  e && window.removeEventListener("resize", a);
37
37
  }), { width: i, height: r };
38
38
  }
39
- function qn({
39
+ function Un({
40
40
  initialWidth: s = 0,
41
41
  initialHeight: e,
42
42
  includeScrollbar: t,
@@ -46,26 +46,26 @@ function qn({
46
46
  mediumBreakPoint: r = "md",
47
47
  largeBreakPoint: a = "lg"
48
48
  }) {
49
- const { width: l } = _t({
49
+ const { width: l } = Kt({
50
50
  initialWidth: s,
51
51
  // (SSR) mobile first
52
52
  initialHeight: e,
53
53
  includeScrollbar: t,
54
54
  internalWindow: n,
55
55
  listenOrientation: o
56
- }), u = Rt(i), b = p(() => l.value >= u[a]), c = p(
56
+ }), u = _t(i), y = h(() => l.value >= u[a]), z = h(
57
57
  () => l.value >= u[r] && l.value < u[a]
58
- ), f = p(() => l.value >= 0 && l.value < u[r]);
58
+ ), w = h(() => l.value >= 0 && l.value < u[r]);
59
59
  return {
60
60
  width: l,
61
61
  numericBreakpoints: u,
62
- isSmallScreen: f,
63
- isLargeScreen: b,
64
- isMediumScreen: c,
62
+ isSmallScreen: w,
63
+ isLargeScreen: y,
64
+ isMediumScreen: z,
65
65
  breakpoints: i
66
66
  };
67
67
  }
68
- function Un() {
68
+ function Wn() {
69
69
  return De("dialog");
70
70
  }
71
71
  function ct(s, e, t) {
@@ -82,13 +82,13 @@ function ct(s, e, t) {
82
82
  i();
83
83
  }
84
84
  function dt(s) {
85
- const e = ve(s);
85
+ const e = pe(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) {
89
89
  return s == null || typeof s == "string" || typeof s == "number" || typeof s == "boolean" || typeof s == "symbol" || typeof s == "bigint";
90
90
  }
91
- function Kt(s, e) {
91
+ function Yt(s, e) {
92
92
  if (s.length !== e.length)
93
93
  return !1;
94
94
  for (const [t, n] of s.entries())
@@ -96,7 +96,7 @@ function Kt(s, e) {
96
96
  return !1;
97
97
  return !0;
98
98
  }
99
- function Yt(s, e) {
99
+ function Zt(s, e) {
100
100
  const t = Object.keys(s), n = Object.keys(e);
101
101
  if (t.length !== n.length)
102
102
  return !1;
@@ -106,9 +106,9 @@ function Yt(s, e) {
106
106
  return !0;
107
107
  }
108
108
  function be(s, e) {
109
- return Ze(s) || Ze(e) ? s === e : s instanceof Date && e instanceof Date ? s.getTime() === e.getTime() : typeof s != typeof e || Array.isArray(s) !== Array.isArray(e) ? !1 : Array.isArray(s) && Array.isArray(e) ? Kt(s, e) : typeof s == "object" && typeof e == "object" ? Yt(s, e) : !1;
109
+ return Ze(s) || Ze(e) ? s === e : s instanceof Date && e instanceof Date ? s.getTime() === e.getTime() : typeof s != typeof e || Array.isArray(s) !== Array.isArray(e) ? !1 : Array.isArray(s) && Array.isArray(e) ? Yt(s, e) : typeof s == "object" && typeof e == "object" ? Zt(s, e) : !1;
110
110
  }
111
- function Zt(s, e, t) {
111
+ function Xt(s, e, t) {
112
112
  const n = {};
113
113
  return function(...o) {
114
114
  n[s] || (n[s] = { timer: null, promise: null });
@@ -126,7 +126,7 @@ function Zt(s, e, t) {
126
126
  }), i.promise;
127
127
  };
128
128
  }
129
- function Xt(s, e, t) {
129
+ function Gt(s, e, t) {
130
130
  const n = {};
131
131
  return async (...o) => {
132
132
  const i = Date.now();
@@ -155,7 +155,7 @@ function Xe(s = te.scrollToErrorSelector) {
155
155
  const e = document.querySelector(s);
156
156
  e && e.scrollIntoView({ behavior: "smooth", block: "center" });
157
157
  }
158
- function Gt(s, e) {
158
+ function Qt(s, e) {
159
159
  const t = {};
160
160
  for (const [n, o] of Object.entries(s)) {
161
161
  const i = o;
@@ -166,7 +166,7 @@ function Gt(s, e) {
166
166
  function We(s) {
167
167
  return s == null || s === "";
168
168
  }
169
- function Qt({
169
+ function Jt({
170
170
  name: s,
171
171
  hasValidation: e,
172
172
  debouncedFields: t,
@@ -177,15 +177,15 @@ function Qt({
177
177
  const o = String(s);
178
178
  if (t != null && t[o] && (n != null && n[o]))
179
179
  throw new Error(`The field "${o}" cannot be both debounced and throttled`);
180
- return t != null && t[o] ? Zt(
180
+ return t != null && t[o] ? Xt(
181
181
  o,
182
- pe,
182
+ ge,
183
183
  typeof t[o] == "number" ? t[o] : te.debounceTime
184
- ) : n != null && n[o] ? Xt(
184
+ ) : n != null && n[o] ? Gt(
185
185
  o,
186
- pe,
186
+ ge,
187
187
  typeof n[o] == "number" ? n[o] : te.throttleTime
188
- ) : pe;
188
+ ) : ge;
189
189
  }
190
190
  function ft({
191
191
  name: s,
@@ -194,7 +194,7 @@ function ft({
194
194
  fieldState: n,
195
195
  options: o
196
196
  }) {
197
- const i = e ? mt(s, e) : !1, r = Qt({
197
+ const i = e ? mt(s, e) : !1, r = Jt({
198
198
  name: s,
199
199
  hasValidation: i,
200
200
  debouncedFields: o == null ? void 0 : o.debouncedFields,
@@ -213,7 +213,7 @@ function ft({
213
213
  mode: i ? (o == null ? void 0 : o.mode) ?? (n == null ? void 0 : n.mode) ?? te.mode : void 0
214
214
  };
215
215
  }
216
- function Jt({
216
+ function es({
217
217
  schema: s,
218
218
  payload: e,
219
219
  options: t
@@ -231,7 +231,7 @@ function Jt({
231
231
  }
232
232
  return n;
233
233
  }
234
- function es({
234
+ function ts({
235
235
  fieldsStates: s,
236
236
  payload: e,
237
237
  schema: t,
@@ -272,18 +272,18 @@ function ht({
272
272
  ...e != null && e.mode && u !== e.mode ? l : {}
273
273
  };
274
274
  }
275
- function ts(s) {
275
+ function ss(s) {
276
276
  const e = {};
277
277
  for (const [t, { errors: n }] of Object.entries(s))
278
278
  e[t] = n;
279
279
  return e;
280
280
  }
281
- function ss(s) {
281
+ function ns(s) {
282
282
  return s instanceof HTMLInputElement || s instanceof HTMLSelectElement || s instanceof HTMLTextAreaElement ? [s] : s.querySelectorAll(
283
283
  "input, select, textarea"
284
284
  );
285
285
  }
286
- function ns({
286
+ function os({
287
287
  interactiveElements: s,
288
288
  onBlurHandler: e,
289
289
  mode: t
@@ -292,7 +292,7 @@ function ns({
292
292
  we(["eager", "blur", "progressive"], t) && n.addEventListener("blur", e);
293
293
  });
294
294
  }
295
- function os({
295
+ function is({
296
296
  interactiveElements: s,
297
297
  onBlurHandler: e
298
298
  }) {
@@ -300,14 +300,14 @@ function os({
300
300
  t.removeEventListener("blur", e);
301
301
  });
302
302
  }
303
- async function is(s, e, t) {
304
- const n = await ds(e), i = await (await gt("safeParseAsync"))(n.entries[s], t ?? "");
303
+ async function rs(s, e, t) {
304
+ const n = await ms(e), i = await (await gt("safeParseAsync"))(n.entries[s], t ?? "");
305
305
  return {
306
306
  result: i,
307
307
  isValid: i.success
308
308
  };
309
309
  }
310
- async function pe({
310
+ async function ge({
311
311
  name: s,
312
312
  fieldState: e,
313
313
  schema: t,
@@ -319,7 +319,7 @@ async function pe({
319
319
  e.valid = !0, e.validating = !1, e.validated = !0, e.errors = [], e.error = !1;
320
320
  return;
321
321
  }
322
- const { result: r, isValid: a } = await is(s, t, n[s]);
322
+ const { result: r, isValid: a } = await rs(s, t, n[s]);
323
323
  e.valid = a, (o || i && !a && !We(n[s])) && (e.error = !a), e.errors = r.issues ?? [], e.validating = !1, e.validated = !0;
324
324
  }
325
325
  function vt({
@@ -338,7 +338,7 @@ function vt({
338
338
  };
339
339
  return (i = e.validateFunction) == null ? void 0 : i.call(e, o);
340
340
  }
341
- function rs({
341
+ function as({
342
342
  fieldsStates: s,
343
343
  payload: e,
344
344
  showErrors: t = !0,
@@ -346,7 +346,7 @@ function rs({
346
346
  }) {
347
347
  return Promise.all(
348
348
  Object.keys(s).map(
349
- (o) => pe({
349
+ (o) => ge({
350
350
  name: o,
351
351
  setError: t,
352
352
  fieldState: s[o],
@@ -365,7 +365,7 @@ function pt({
365
365
  const { dirty: n, blurred: o, mode: i, valid: r } = e;
366
366
  return s === "blur" && (we(["lazy", "aggressive"], i) || r) || s === "input" && i === "blur" || !i ? !1 : t || i === "eager" && o || i === "blur" && o || i === "aggressive" && n || i === "lazy" && n || i === "progressive";
367
367
  }
368
- function as({
368
+ function ls({
369
369
  name: s,
370
370
  force: e = !1,
371
371
  payload: t,
@@ -382,7 +382,7 @@ function as({
382
382
  payload: t
383
383
  });
384
384
  }
385
- function ls({
385
+ function us({
386
386
  name: s,
387
387
  payload: e,
388
388
  fieldState: t,
@@ -407,14 +407,14 @@ function Re(s) {
407
407
  throw new Error(`${s} must be called within setup()`);
408
408
  return e;
409
409
  }
410
- function us(s, e) {
410
+ function cs(s, e) {
411
411
  var o;
412
412
  const n = ((o = Re(e).formContexts) == null ? void 0 : o.get(s)) ?? ot(s);
413
413
  if (!n)
414
414
  throw new Error("useFormField must be used within a form (useFormValidator)");
415
415
  return n;
416
416
  }
417
- function cs({
417
+ function ds({
418
418
  ref: s,
419
419
  fieldState: e,
420
420
  onBlurHandler: t
@@ -431,13 +431,13 @@ async function gt(s) {
431
431
  const e = await import("./index-BgyjI1q8.mjs");
432
432
  return Be[s] = e[s], e[s];
433
433
  }
434
- async function ds(s) {
434
+ async function ms(s) {
435
435
  return (await gt("objectAsync"))(s);
436
436
  }
437
437
  function we(s, e) {
438
438
  return e ? s.includes(e) : !1;
439
439
  }
440
- function Wn(s, e) {
440
+ function Rn(s, e) {
441
441
  const t = {
442
442
  formIdentifier: "main-form-validator",
443
443
  ...e
@@ -448,85 +448,85 @@ function Wn(s, e) {
448
448
  internalSchema: r,
449
449
  errorMessages: a,
450
450
  isSubmitted: l
451
- } = us(t.formIdentifier, "useFormField"), u = mt(s, r.value) ? (e == null ? void 0 : e.mode) ?? i.mode : void 0;
451
+ } = cs(t.formIdentifier, "useFormField"), u = mt(s, r.value) ? (e == null ? void 0 : e.mode) ?? i.mode : void 0;
452
452
  t.mode = u;
453
- const b = p(() => n.value[s]);
453
+ const y = h(() => n.value[s]);
454
454
  if (n.value[s] = ht({
455
455
  name: s,
456
- fieldState: b.value,
456
+ fieldState: y.value,
457
457
  payload: o.value,
458
458
  schema: r.value,
459
459
  options: { ...i, ...t }
460
460
  }), t.defaultValue !== void 0 && !be(o.value[s], t.defaultValue)) {
461
- const E = t.defaultValue;
462
- o.value[s] = E, n.value[s].initialValue = dt(E);
461
+ const f = t.defaultValue;
462
+ o.value[s] = f, n.value[s].initialValue = dt(f);
463
463
  }
464
- u && pe({
464
+ u && ge({
465
465
  name: s,
466
- fieldState: b.value,
466
+ fieldState: y.value,
467
467
  payload: o.value,
468
468
  schema: r.value,
469
469
  setError: u === "aggressive",
470
470
  setErrorIfInvalidAndNotEmpty: u === "lazy"
471
471
  });
472
- function c() {
473
- as({
472
+ function z() {
473
+ ls({
474
474
  name: s,
475
- fieldState: b.value,
475
+ fieldState: y.value,
476
476
  payload: o.value,
477
477
  schema: r.value,
478
478
  isSubmitted: l.value
479
479
  });
480
480
  }
481
- const f = p(
482
- () => cs({
481
+ const w = h(
482
+ () => ds({
483
483
  ref: t.ref,
484
- onBlurHandler: c,
485
- fieldState: b.value
484
+ onBlurHandler: z,
485
+ fieldState: y.value
486
486
  })
487
487
  );
488
488
  if (t.ref && we(["eager", "blur", "progressive"], u)) {
489
- let E = [];
490
- const O = (I) => {
491
- E = ss(I), ns({
492
- interactiveElements: E,
493
- onBlurHandler: c,
489
+ let f = [];
490
+ const k = (T) => {
491
+ f = ns(T), os({
492
+ interactiveElements: f,
493
+ onBlurHandler: z,
494
494
  mode: u
495
495
  });
496
496
  };
497
- le(() => {
498
- const I = Re(`useFormField of ${s}`);
499
- ct(() => I.refs[t.ref], (h) => {
500
- const m = h instanceof HTMLElement ? h : h == null ? void 0 : h.$el;
501
- m && O(m);
497
+ ue(() => {
498
+ const T = Re(`useFormField of ${s}`);
499
+ ct(() => T.refs[t.ref], (m) => {
500
+ const d = m instanceof HTMLElement ? m : m == null ? void 0 : m.$el;
501
+ d && k(d);
502
502
  }, {
503
503
  errorMessage: `[maz-ui](useFormField) No element found for ref ${t.ref} for field ${s}`
504
504
  });
505
505
  }), it(() => {
506
- os({
507
- interactiveElements: E,
508
- onBlurHandler: c
506
+ is({
507
+ interactiveElements: f,
508
+ onBlurHandler: z
509
509
  });
510
510
  });
511
511
  }
512
512
  return {
513
- hasError: p(() => b.value.error),
514
- errors: p(() => b.value.errors),
515
- errorMessage: p(() => a.value[s]),
516
- isValid: p(() => b.value.valid),
517
- isDirty: p(() => b.value.dirty),
518
- isBlurred: p(() => b.value.blurred),
519
- isValidated: p(() => b.value.validated),
520
- isValidating: p(() => b.value.validating),
521
- mode: p(() => b.value.mode),
522
- value: p({
513
+ hasError: h(() => y.value.error),
514
+ errors: h(() => y.value.errors),
515
+ errorMessage: h(() => a.value[s]),
516
+ isValid: h(() => y.value.valid),
517
+ isDirty: h(() => y.value.dirty),
518
+ isBlurred: h(() => y.value.blurred),
519
+ isValidated: h(() => y.value.validated),
520
+ isValidating: h(() => y.value.validating),
521
+ mode: h(() => y.value.mode),
522
+ value: h({
523
523
  get: () => o.value[s],
524
- set: (E) => o.value[s] = E
524
+ set: (f) => o.value[s] = f
525
525
  }),
526
- validationEvents: f
526
+ validationEvents: w
527
527
  };
528
528
  }
529
- function Rn({ schema: s, defaultValues: e, model: t, options: n }) {
529
+ function _n({ schema: s, defaultValues: e, model: t, options: n }) {
530
530
  const o = Re("useFormValidator"), i = {
531
531
  mode: te.mode,
532
532
  scrollToError: te.scrollToErrorSelector,
@@ -534,82 +534,82 @@ function Rn({ schema: s, defaultValues: e, model: t, options: n }) {
534
534
  throttledFields: null,
535
535
  identifier: "main-form-validator",
536
536
  ...n
537
- }, r = w(e), a = w({ ...r.value, ...t == null ? void 0 : t.value }), l = w(s), u = w(
538
- Jt({
537
+ }, r = b(e), a = b({ ...r.value, ...t == null ? void 0 : t.value }), l = b(s), u = b(
538
+ es({
539
539
  schema: l.value,
540
540
  payload: a.value,
541
541
  options: i
542
542
  })
543
- ), b = w(!1), c = w(!1), f = p(() => Object.values(u.value).every(({ valid: T }) => T)), E = p(() => Object.values(u.value).some(({ dirty: T }) => T)), O = p(() => ts(u.value)), I = p(() => Gt(O.value, u.value));
543
+ ), y = b(!1), z = b(!1), w = h(() => Object.values(u.value).every(({ valid: L }) => L)), f = h(() => Object.values(u.value).some(({ dirty: L }) => L)), k = h(() => ss(u.value)), T = h(() => Qt(k.value, u.value));
544
544
  t && X(
545
545
  a,
546
- (T) => {
547
- t.value = { ...r.value, ...T };
546
+ (L) => {
547
+ t.value = { ...r.value, ...L };
548
548
  },
549
549
  { deep: !0 }
550
550
  ), X(
551
551
  r,
552
- (T) => {
553
- a.value = { ...T, ...a.value };
552
+ (L) => {
553
+ a.value = { ...L, ...a.value };
554
554
  },
555
555
  { deep: !0 }
556
556
  ), X(
557
557
  l,
558
- (T) => {
559
- es({
560
- schema: T,
558
+ (L) => {
559
+ ts({
560
+ schema: L,
561
561
  fieldsStates: u.value,
562
562
  payload: a.value,
563
563
  options: i
564
- }), h();
564
+ }), m();
565
565
  },
566
566
  { deep: !0 }
567
- ), h();
568
- function h(T = i.mode === "aggressive") {
569
- return rs({
567
+ ), m();
568
+ function m(L = i.mode === "aggressive") {
569
+ return as({
570
570
  fieldsStates: u.value,
571
571
  payload: a.value,
572
572
  schema: l.value,
573
- showErrors: T
573
+ showErrors: L
574
574
  });
575
575
  }
576
- const m = [];
577
- async function L(T) {
576
+ const d = [];
577
+ async function C(L) {
578
578
  await ae();
579
579
  const P = X(
580
- () => a.value[T],
580
+ () => a.value[L],
581
581
  () => {
582
- const j = u.value[T];
583
- ls({
584
- name: T,
582
+ const j = u.value[L];
583
+ us({
584
+ name: L,
585
585
  fieldState: j,
586
586
  payload: a.value,
587
587
  schema: l.value,
588
- isSubmitted: c.value,
588
+ isSubmitted: z.value,
589
589
  forceValidation: we(["aggressive", "lazy", "progressive"], j.mode)
590
590
  });
591
591
  },
592
- { deep: typeof l.value[T] == "object" }
592
+ { deep: typeof l.value[L] == "object" }
593
593
  );
594
- m.push(P);
594
+ d.push(P);
595
595
  }
596
- function g() {
597
- for (const T of m)
598
- T();
599
- for (const T of Object.keys(l.value))
600
- L(T);
596
+ function p() {
597
+ for (const L of d)
598
+ L();
599
+ for (const L of Object.keys(l.value))
600
+ C(L);
601
601
  }
602
- function A(T, P) {
602
+ function S(L, P) {
603
603
  return async (j) => {
604
- if (j == null || j.preventDefault(), !b.value) {
605
- c.value = !0, b.value = !0;
604
+ if (j == null || j.preventDefault(), !y.value) {
605
+ z.value = !0, y.value = !0;
606
606
  try {
607
- await h(!0);
607
+ await m(!0);
608
608
  const se = typeof P == "string" ? P : i.scrollToError;
609
609
  let G;
610
- return f.value ? G = await T(a.value) : typeof se != "boolean" && Xe(se), b.value = !1, G;
610
+ return w.value ? G = await L(a.value) : typeof se != "boolean" && Xe(se), y.value = !1, G;
611
611
  } finally {
612
- b.value = !1;
612
+ y.value = !1;
613
613
  }
614
614
  }
615
615
  };
@@ -619,42 +619,42 @@ function Rn({ schema: s, defaultValues: e, model: t, options: n }) {
619
619
  payload: a,
620
620
  options: i,
621
621
  internalSchema: l,
622
- errorMessages: I,
623
- isSubmitted: c
622
+ errorMessages: T,
623
+ isSubmitted: z
624
624
  };
625
- return o.formContexts ?? (o.formContexts = /* @__PURE__ */ new Map()), o.formContexts.set(i.identifier, D), Vt(i.identifier, D), g(), {
625
+ return o.formContexts ?? (o.formContexts = /* @__PURE__ */ new Map()), o.formContexts.set(i.identifier, D), Vt(i.identifier, D), p(), {
626
626
  identifier: i.identifier,
627
- isDirty: E,
628
- isSubmitting: b,
629
- isSubmitted: c,
630
- isValid: f,
631
- errors: O,
627
+ isDirty: f,
628
+ isSubmitting: y,
629
+ isSubmitted: z,
630
+ isValid: w,
631
+ errors: k,
632
632
  model: a,
633
633
  fieldsStates: u,
634
- validateForm: h,
634
+ validateForm: m,
635
635
  scrollToError: Xe,
636
- handleSubmit: A,
637
- errorMessages: I
636
+ handleSubmit: S,
637
+ errorMessages: T
638
638
  };
639
639
  }
640
- class ms {
640
+ class fs {
641
641
  constructor(e, t) {
642
- d(this, "defaultOptions", {
642
+ c(this, "defaultOptions", {
643
643
  element: void 0,
644
644
  timeout: 60 * 1e3 * 5,
645
645
  // 5 minutes
646
646
  once: !1,
647
647
  immediate: !0
648
648
  });
649
- d(this, "options");
650
- d(this, "timeoutHandler");
651
- d(this, "isIdle", !1);
652
- d(this, "isDestroy", !1);
653
- d(this, "startTime", 0);
654
- d(this, "remainingTime", 0);
655
- d(this, "lastClientX", -1);
656
- d(this, "lastClientY", -1);
657
- d(this, "eventNames", [
649
+ c(this, "options");
650
+ c(this, "timeoutHandler");
651
+ c(this, "isIdle", !1);
652
+ c(this, "isDestroy", !1);
653
+ c(this, "startTime", 0);
654
+ c(this, "remainingTime", 0);
655
+ c(this, "lastClientX", -1);
656
+ c(this, "lastClientY", -1);
657
+ c(this, "eventNames", [
658
658
  "DOMMouseScroll",
659
659
  "mousedown",
660
660
  "mousemove",
@@ -667,7 +667,7 @@ class ms {
667
667
  "wheel",
668
668
  "click"
669
669
  ]);
670
- d(this, "handleEvent", (e) => {
670
+ c(this, "handleEvent", (e) => {
671
671
  try {
672
672
  if (this.remainingTime > 0)
673
673
  return;
@@ -744,19 +744,19 @@ class ms {
744
744
  e ? this.handleTimeout() : this.reset(), this.callback({ isIdle: this.isIdle, instance: this });
745
745
  }
746
746
  }
747
- function _n({
747
+ function Kn({
748
748
  callback: s,
749
749
  options: e
750
750
  }) {
751
- return new ms(s, e);
751
+ return new fs(s, e);
752
752
  }
753
- function Kn({
753
+ function Yn({
754
754
  componentName: s,
755
755
  providedId: e
756
756
  }) {
757
- return p(() => e ?? `${s}-${Ht().replace(/:/g, "")}`);
757
+ return h(() => e ?? `${s}-${Ht().replace(/:/g, "")}`);
758
758
  }
759
- const fs = [
759
+ const hs = [
760
760
  "af-ZA",
761
761
  "sq-AL",
762
762
  "ar-DZ",
@@ -893,7 +893,7 @@ const fs = [
893
893
  "Cy-uz-UZ",
894
894
  "Lt-uz-UZ",
895
895
  "vi-VN"
896
- ], hs = [
896
+ ], vs = [
897
897
  "aa",
898
898
  "ab",
899
899
  "ae",
@@ -1078,11 +1078,11 @@ const fs = [
1078
1078
  "za",
1079
1079
  "zh",
1080
1080
  "zu"
1081
- ], vs = [...hs, ...fs];
1082
- function Yn(s) {
1081
+ ], ps = [...vs, ...hs];
1082
+ function Zn(s) {
1083
1083
  function e(n, o) {
1084
- return p(() => {
1085
- const i = ve(o), r = ve(n);
1084
+ return h(() => {
1085
+ const i = pe(o), r = pe(n);
1086
1086
  try {
1087
1087
  return !i || !r ? r : new Intl.DisplayNames([i], { type: "language" }).of(r) || r;
1088
1088
  } catch {
@@ -1091,14 +1091,14 @@ function Yn(s) {
1091
1091
  });
1092
1092
  }
1093
1093
  function t(n) {
1094
- return p(() => {
1095
- const o = ve(n);
1094
+ return h(() => {
1095
+ const o = pe(n);
1096
1096
  if (!o)
1097
1097
  return [];
1098
1098
  const i = new Intl.DisplayNames([o], {
1099
1099
  type: "language"
1100
1100
  });
1101
- return vs.map((r) => {
1101
+ return ps.map((r) => {
1102
1102
  try {
1103
1103
  const a = i.of(r);
1104
1104
  return !a || r.toLocaleLowerCase() === a.toLocaleLowerCase() ? void 0 : {
@@ -1120,20 +1120,20 @@ function yt(s) {
1120
1120
  const e = s.join(", ").match(/\b\w+\b/g);
1121
1121
  return e ? e.length : 0;
1122
1122
  }
1123
- function ps(s, e = 150) {
1123
+ function gs(s, e = 150) {
1124
1124
  const t = yt([s]);
1125
1125
  return Math.ceil(t / e);
1126
1126
  }
1127
- function Zn(s) {
1128
- const e = p(
1127
+ function Xn(s) {
1128
+ const e = h(
1129
1129
  () => {
1130
1130
  var r;
1131
1131
  return typeof s.velocity == "number" ? s.velocity : ((r = s.velocity) == null ? void 0 : r.value) ?? 150;
1132
1132
  }
1133
- ), t = p(() => {
1133
+ ), t = h(() => {
1134
1134
  var r;
1135
1135
  return typeof s.contentSelector == "string" ? s.contentSelector : (r = s.contentSelector) == null ? void 0 : r.value;
1136
- }), n = p(() => {
1136
+ }), n = h(() => {
1137
1137
  var r, a, l;
1138
1138
  if (typeof ((r = s.contentRef) == null ? void 0 : r.value) == "object")
1139
1139
  return (a = s.contentRef.value) == null ? void 0 : a.textContent;
@@ -1143,7 +1143,7 @@ function Zn(s) {
1143
1143
  return u.textContent;
1144
1144
  }
1145
1145
  return typeof s.content == "string" ? s.content : (l = s.content) == null ? void 0 : l.value;
1146
- }), o = p(() => ps(n.value, e.value)), i = p(() => yt([n.value]));
1146
+ }), o = h(() => gs(n.value, e.value)), i = h(() => yt([n.value]));
1147
1147
  return {
1148
1148
  content: n,
1149
1149
  wordCount: i,
@@ -1151,7 +1151,7 @@ function Zn(s) {
1151
1151
  duration: o
1152
1152
  };
1153
1153
  }
1154
- const gs = {
1154
+ const ys = {
1155
1155
  removeAccents: !0,
1156
1156
  caseSensitive: !1,
1157
1157
  replaceSpaces: !0,
@@ -1162,7 +1162,7 @@ const gs = {
1162
1162
  customNormalizationForms: ["NFC", "NFKD"]
1163
1163
  };
1164
1164
  function Ge(s, e) {
1165
- const t = { ...gs, ...e }, n = {
1165
+ const t = { ...ys, ...e }, n = {
1166
1166
  À: "A",
1167
1167
  Á: "A",
1168
1168
  Â: "A",
@@ -1217,7 +1217,7 @@ function Ge(s, e) {
1217
1217
  o = o.normalize(i);
1218
1218
  return o;
1219
1219
  }
1220
- function ys(s, e) {
1220
+ function bs(s, e) {
1221
1221
  const t = s.length, n = e.length, o = [];
1222
1222
  for (let i = 0; i <= t; i++)
1223
1223
  o[i] = [i];
@@ -1235,49 +1235,49 @@ function ys(s, e) {
1235
1235
  return o[t][n];
1236
1236
  }
1237
1237
  function bt(s, e) {
1238
- const t = ys(s, e), n = Math.max(s.length, e.length);
1238
+ const t = bs(s, e), n = Math.max(s.length, e.length);
1239
1239
  return 1 - t / n;
1240
1240
  }
1241
- function bs(s, e, t = 0.75) {
1241
+ function ws(s, e, t = 0.75) {
1242
1242
  return bt(s, e) >= t;
1243
1243
  }
1244
- function Xn(s, e, t = 0.75) {
1245
- const n = p(
1244
+ function Gn(s, e, t = 0.75) {
1245
+ const n = h(
1246
1246
  () => Ge(typeof s == "string" ? s : s.value)
1247
- ), o = p(
1247
+ ), o = h(
1248
1248
  () => Ge(typeof e == "string" ? e : e.value)
1249
- ), i = p(() => typeof t == "number" ? t : t.value), r = p(() => bt(n.value, o.value));
1249
+ ), i = h(() => typeof t == "number" ? t : t.value), r = h(() => bt(n.value, o.value));
1250
1250
  return {
1251
- isMatching: p(
1252
- () => bs(n.value, o.value, i.value)
1251
+ isMatching: h(
1252
+ () => ws(n.value, o.value, i.value)
1253
1253
  ),
1254
1254
  score: r
1255
1255
  };
1256
1256
  }
1257
- const ws = {
1257
+ const Es = {
1258
1258
  preventDefaultOnTouchMove: !1,
1259
1259
  preventDefaultOnMouseWheel: !1,
1260
1260
  threshold: 50,
1261
1261
  immediate: !1,
1262
1262
  triggerOnEnd: !1
1263
1263
  };
1264
- class Es {
1264
+ class zs {
1265
1265
  constructor(e) {
1266
- d(this, "element");
1267
- d(this, "xStart");
1268
- d(this, "yStart");
1269
- d(this, "xEnd");
1270
- d(this, "yEnd");
1271
- d(this, "xDiff");
1272
- d(this, "yDiff");
1273
- d(this, "onToucheStartCallback");
1274
- d(this, "onToucheMoveCallback");
1275
- d(this, "onToucheEndCallback");
1276
- d(this, "onMouseWheelCallback");
1277
- d(this, "start");
1278
- d(this, "stop");
1279
- d(this, "options");
1280
- this.inputOption = e, this.options = { ...ws, ...e }, this.onToucheStartCallback = this.toucheStartHandler.bind(this), this.onToucheMoveCallback = this.handleTouchMove.bind(this), this.onToucheEndCallback = this.handleTouchEnd.bind(this), this.onMouseWheelCallback = this.handleMouseWheel.bind(this), this.start = this.startListening.bind(this), this.stop = this.stopListening.bind(this), this.options.element && this.setElement(this.options.element), this.options.immediate && this.start();
1266
+ c(this, "element");
1267
+ c(this, "xStart");
1268
+ c(this, "yStart");
1269
+ c(this, "xEnd");
1270
+ c(this, "yEnd");
1271
+ c(this, "xDiff");
1272
+ c(this, "yDiff");
1273
+ c(this, "onToucheStartCallback");
1274
+ c(this, "onToucheMoveCallback");
1275
+ c(this, "onToucheEndCallback");
1276
+ c(this, "onMouseWheelCallback");
1277
+ c(this, "start");
1278
+ c(this, "stop");
1279
+ c(this, "options");
1280
+ this.inputOption = e, this.options = { ...Es, ...e }, this.onToucheStartCallback = this.toucheStartHandler.bind(this), this.onToucheMoveCallback = this.handleTouchMove.bind(this), this.onToucheEndCallback = this.handleTouchEnd.bind(this), this.onMouseWheelCallback = this.handleMouseWheel.bind(this), this.start = this.startListening.bind(this), this.stop = this.stopListening.bind(this), this.options.element && this.setElement(this.options.element), this.options.immediate && this.start();
1281
1281
  }
1282
1282
  startListening() {
1283
1283
  this.setElement(this.options.element), this.element.addEventListener("touchstart", this.onToucheStartCallback, { passive: !0 }), this.element.addEventListener("touchmove", this.onToucheMoveCallback, { passive: !0 }), this.options.triggerOnEnd && this.element.addEventListener("touchend", this.onToucheEndCallback, { passive: !0 }), this.options.preventDefaultOnMouseWheel && this.element.addEventListener("mousewheel", this.onMouseWheelCallback, { passive: !1 });
@@ -1333,8 +1333,8 @@ class Es {
1333
1333
  this.xStart = void 0, this.yStart = void 0, this.xEnd = void 0, this.yEnd = void 0, this.xDiff = void 0, this.yDiff = void 0, this.emitValuesChanged();
1334
1334
  }
1335
1335
  }
1336
- function Gn(s) {
1337
- const e = w(), t = w(), n = w(), o = w(), i = w(), r = w(), a = p(() => ve(s.element)), l = new Es({
1336
+ function Qn(s) {
1337
+ const e = b(), t = b(), n = b(), o = b(), i = b(), r = b(), a = h(() => pe(s.element)), l = new zs({
1338
1338
  ...s,
1339
1339
  element: a.value,
1340
1340
  onValuesChanged(u) {
@@ -1354,7 +1354,7 @@ function Gn(s) {
1354
1354
  stop: l.stop
1355
1355
  };
1356
1356
  }
1357
- const zs = {
1357
+ const Ts = {
1358
1358
  darkClass: "dark",
1359
1359
  lightClass: "light",
1360
1360
  storageThemeKey: "theme",
@@ -1362,7 +1362,7 @@ const zs = {
1362
1362
  storageThemeValueLight: "light",
1363
1363
  storageThemeValueSystem: "system",
1364
1364
  watchChanges: !0
1365
- }, Ee = w("system"), K = w("system");
1365
+ }, Ee = b("system"), K = b("system");
1366
1366
  function Qe() {
1367
1367
  return window.matchMedia("(prefers-color-scheme: dark)").matches;
1368
1368
  }
@@ -1430,18 +1430,18 @@ function Ne({
1430
1430
  }) {
1431
1431
  return s === "system" ? wt(e) : s === "dark" ? ze(e) : Te(e);
1432
1432
  }
1433
- function Ts(s) {
1433
+ function Ls(s) {
1434
1434
  return Ee.value === s.storageThemeValueDark ? Te(s) : ze(s);
1435
1435
  }
1436
- function Qn(s) {
1436
+ function Jn(s) {
1437
1437
  const e = {
1438
- ...zs,
1438
+ ...Ts,
1439
1439
  ...s
1440
1440
  };
1441
1441
  function t() {
1442
1442
  je(e);
1443
1443
  }
1444
- return le(() => {
1444
+ return ue(() => {
1445
1445
  localStorage[e.storageThemeKey] && (K.value = localStorage[e.storageThemeKey]), e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", t);
1446
1446
  }), rt(() => {
1447
1447
  e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change", t);
@@ -1462,61 +1462,61 @@ function Qn(s) {
1462
1462
  }
1463
1463
  }), {
1464
1464
  autoSetTheme: () => je(e),
1465
- toggleTheme: () => Ts(e),
1465
+ toggleTheme: () => Ls(e),
1466
1466
  setSystemTheme: () => Ne({ ...e, theme: "system" }),
1467
1467
  setDarkTheme: () => Ne({ ...e, theme: "dark" }),
1468
1468
  setLightTheme: () => Ne({ ...e, theme: "light" }),
1469
1469
  setDefaultTheme: () => Et(e),
1470
- hasDarkTheme: p(() => K.value === e.storageThemeValueDark),
1471
- hasLightTheme: p(() => K.value === e.storageThemeValueLight),
1472
- hasSystemTheme: p(() => K.value === e.storageThemeValueSystem),
1470
+ hasDarkTheme: h(() => K.value === e.storageThemeValueDark),
1471
+ hasLightTheme: h(() => K.value === e.storageThemeValueLight),
1472
+ hasSystemTheme: h(() => K.value === e.storageThemeValueSystem),
1473
1473
  theme: Ee,
1474
1474
  selectedTheme: K
1475
1475
  };
1476
1476
  }
1477
- function Ls({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200, callbackOffsetTime: n = 0 }) {
1478
- const o = w(s), i = w(s);
1477
+ function ks({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200, callbackOffsetTime: n = 0 }) {
1478
+ const o = b(s), i = b(s);
1479
1479
  let r;
1480
- function a(f) {
1481
- typeof f == "number" && (i.value = f), typeof f == "number" && (o.value = f), l();
1480
+ function a(w) {
1481
+ typeof w == "number" && (i.value = w), typeof w == "number" && (o.value = w), l();
1482
1482
  }
1483
1483
  function l() {
1484
1484
  r || (r = setInterval(() => {
1485
- i.value -= t, i.value <= 0 && (c(), setTimeout(() => e == null ? void 0 : e(), n));
1485
+ i.value -= t, i.value <= 0 && (z(), setTimeout(() => e == null ? void 0 : e(), n));
1486
1486
  }, t));
1487
1487
  }
1488
1488
  function u() {
1489
1489
  r && (clearInterval(r), r = void 0);
1490
1490
  }
1491
- function b() {
1491
+ function y() {
1492
1492
  !r && i.value > 0 && l();
1493
1493
  }
1494
- function c() {
1494
+ function z() {
1495
1495
  setTimeout(() => i.value = o.value, n * 2), u();
1496
1496
  }
1497
1497
  return {
1498
1498
  remainingTime: i,
1499
1499
  start: a,
1500
1500
  pause: u,
1501
- resume: b,
1502
- stop: c
1501
+ resume: y,
1502
+ stop: z
1503
1503
  };
1504
1504
  }
1505
- function Jn() {
1505
+ function eo() {
1506
1506
  return De("toast");
1507
1507
  }
1508
- class ks {
1508
+ class Cs {
1509
1509
  constructor(e, t) {
1510
- d(this, "eventHandlerFunction");
1511
- d(this, "event", "visibilitychange");
1512
- d(this, "timeoutHandler");
1513
- d(this, "options");
1514
- d(this, "defaultOptions", {
1510
+ c(this, "eventHandlerFunction");
1511
+ c(this, "event", "visibilitychange");
1512
+ c(this, "timeoutHandler");
1513
+ c(this, "options");
1514
+ c(this, "defaultOptions", {
1515
1515
  timeout: 5e3,
1516
1516
  once: !1,
1517
1517
  immediate: !0
1518
1518
  });
1519
- d(this, "isVisible", !1);
1519
+ c(this, "isVisible", !1);
1520
1520
  this.callback = e, this.options = {
1521
1521
  ...this.defaultOptions,
1522
1522
  ...t
@@ -1551,13 +1551,13 @@ class ks {
1551
1551
  this.removeEventListener(), this.timeoutHandler && clearTimeout(this.timeoutHandler);
1552
1552
  }
1553
1553
  }
1554
- function eo({
1554
+ function to({
1555
1555
  callback: s,
1556
1556
  options: e
1557
1557
  }) {
1558
- return new ks(s, e);
1558
+ return new Cs(s, e);
1559
1559
  }
1560
- function to() {
1560
+ function so() {
1561
1561
  return De("wait");
1562
1562
  }
1563
1563
  const Oe = "__maz-click-outside__";
@@ -1588,7 +1588,7 @@ function Lt(s) {
1588
1588
  console.error("[maz-ui](vClickOutside)", e);
1589
1589
  }
1590
1590
  }
1591
- function Cs(s, e) {
1591
+ function Is(s, e) {
1592
1592
  try {
1593
1593
  if (e.value === e.oldValue)
1594
1594
  return;
@@ -1597,13 +1597,13 @@ function Cs(s, e) {
1597
1597
  console.error("[maz-ui](vClickOutside)", t);
1598
1598
  }
1599
1599
  }
1600
- const Is = {
1600
+ const As = {
1601
1601
  mounted: Tt,
1602
- updated: Cs,
1602
+ updated: Is,
1603
1603
  unmounted: Lt
1604
- }, As = {
1604
+ }, Ss = {
1605
1605
  install: (s) => {
1606
- s.directive("click-outside", Is);
1606
+ s.directive("click-outside", As);
1607
1607
  }
1608
1608
  };
1609
1609
  function kt(s, e, t) {
@@ -1623,11 +1623,11 @@ function kt(s, e, t) {
1623
1623
  function Ct() {
1624
1624
  return document.ontouchstart === null ? "touchstart" : "click";
1625
1625
  }
1626
- function Ss(s, e) {
1626
+ function xs(s, e) {
1627
1627
  const t = Ct();
1628
1628
  document.removeEventListener(t, (n) => kt(n, s, e));
1629
1629
  }
1630
- function xs(s, e) {
1630
+ function Os(s, e) {
1631
1631
  if (typeof e.value != "function" && typeof e.value == "object" && typeof e.value.handler != "function") {
1632
1632
  console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
1633
1633
  return;
@@ -1635,19 +1635,19 @@ function xs(s, e) {
1635
1635
  const t = Ct();
1636
1636
  document.addEventListener(t, (n) => kt(n, s, e));
1637
1637
  }
1638
- const Os = {
1639
- mounted: xs,
1640
- unmounted: Ss
1641
- }, Ds = {
1638
+ const Ds = {
1639
+ mounted: Os,
1640
+ unmounted: xs
1641
+ }, Ps = {
1642
1642
  install: (s) => {
1643
- s.directive("closable", Os);
1643
+ s.directive("closable", Ds);
1644
1644
  }
1645
1645
  }, qe = {
1646
1646
  position: "top"
1647
1647
  };
1648
1648
  class It {
1649
1649
  constructor(e = {}) {
1650
- d(this, "options");
1650
+ c(this, "options");
1651
1651
  this.options = {
1652
1652
  ...qe,
1653
1653
  ...e
@@ -1683,7 +1683,7 @@ class It {
1683
1683
  }
1684
1684
  }
1685
1685
  let Ie;
1686
- const so = {
1686
+ const no = {
1687
1687
  beforeMount(s, e) {
1688
1688
  const t = typeof e.value == "object" ? e.value : {};
1689
1689
  return Ie = new It(t), Ie.create(s, e);
@@ -1694,7 +1694,7 @@ const so = {
1694
1694
  unmounted(s, e) {
1695
1695
  return Ie.remove(s, e);
1696
1696
  }
1697
- }, Ps = {
1697
+ }, Ms = {
1698
1698
  install: (s, e = qe) => {
1699
1699
  const t = {
1700
1700
  ...qe,
@@ -1719,16 +1719,16 @@ function _e(s, e) {
1719
1719
  );
1720
1720
  return e != null && e.app ? (i.appContext = e.app._context, t ? Ce(i, t) : typeof document < "u" && (t = document.createElement("div"), Ce(i, t))) : (t = t ?? document.body, Ce(i, t)), { vNode: i, destroy: n, el: t };
1721
1721
  }
1722
- function Ms(s) {
1722
+ function $s(s) {
1723
1723
  return !!s;
1724
1724
  }
1725
- function no(s) {
1725
+ function oo(s) {
1726
1726
  return [...s].map((e) => {
1727
1727
  const t = e.codePointAt(0);
1728
1728
  return t ? t % 32 + 127461 : void 0;
1729
- }).filter(Ms).map((e) => String.fromCodePoint(e)).join("");
1729
+ }).filter($s).map((e) => String.fromCodePoint(e)).join("");
1730
1730
  }
1731
- function oo(s, e) {
1731
+ function io(s, e) {
1732
1732
  let t;
1733
1733
  return function(...n) {
1734
1734
  clearTimeout(t), t = setTimeout(() => {
@@ -1736,14 +1736,14 @@ function oo(s, e) {
1736
1736
  }, e);
1737
1737
  };
1738
1738
  }
1739
- class io {
1739
+ class ro {
1740
1740
  constructor({ src: e, identifier: t, once: n = !0, async: o = !0, defer: i = !0 }) {
1741
- d(this, "src");
1742
- d(this, "script");
1743
- d(this, "once");
1744
- d(this, "async");
1745
- d(this, "defer");
1746
- d(this, "identifier");
1741
+ c(this, "src");
1742
+ c(this, "script");
1743
+ c(this, "once");
1744
+ c(this, "async");
1745
+ c(this, "defer");
1746
+ c(this, "identifier");
1747
1747
  if (typeof window > "u")
1748
1748
  throw new TypeError("[ScriptLoader]: Is supported only on browser side");
1749
1749
  if (!e)
@@ -1777,10 +1777,10 @@ class io {
1777
1777
  });
1778
1778
  }
1779
1779
  }
1780
- function $s(s) {
1780
+ function Vs(s) {
1781
1781
  return new Promise((e) => setTimeout(e, s));
1782
1782
  }
1783
- function ro(s, e) {
1783
+ function ao(s, e) {
1784
1784
  let t = !1, n, o;
1785
1785
  return function(...i) {
1786
1786
  t ? (clearTimeout(n), n = setTimeout(() => {
@@ -1788,7 +1788,7 @@ function ro(s, e) {
1788
1788
  }, Math.max(e - (Date.now() - o), 0))) : (s.apply(this, i), o = Date.now(), t = !0);
1789
1789
  };
1790
1790
  }
1791
- const Vs = ["onKeypress"], Hs = { class: "m-fullscreen-img-scroller" }, Bs = ["src", "alt"], Ns = /* @__PURE__ */ ye({
1791
+ const Hs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["src", "alt"], Fs = /* @__PURE__ */ ye({
1792
1792
  __name: "MazFullscreenImg",
1793
1793
  props: {
1794
1794
  src: {},
@@ -1806,30 +1806,30 @@ const Vs = ["onKeypress"], Hs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
1806
1806
  },
1807
1807
  emits: ["close", "previous", "next", "before-close"],
1808
1808
  setup(s, { emit: e }) {
1809
- const t = s, n = e, o = H(() => import("./MazSpinner-C4XtaFJk.mjs")), i = H(() => import("./x-mark-CnZwVvA7.mjs")), r = H(() => import("./chevron-left-BqVOLRdC.mjs")), a = w(!1), l = w(!1), u = w(!1), b = w(!1), c = w(!1), f = Bt({
1809
+ const t = s, n = e, o = H(() => import("./MazSpinner-C2h_t5PV.mjs")), i = H(() => import("./x-mark-CnZwVvA7.mjs")), r = H(() => import("./chevron-left-BqVOLRdC.mjs")), a = b(!1), l = b(!1), u = b(!1), y = b(!1), z = b(!1), w = Bt({
1810
1810
  running: !1,
1811
1811
  ended: !1
1812
- }), E = w(t.clickedElement), O = p(() => t.clickedElement.getBoundingClientRect()), I = w(), h = w(t.src), m = w(t.alt), L = w(), g = w(), A = w(!0), D = p(() => ({
1813
- "--is-zoomed": c.value,
1814
- "--invisible": A.value,
1815
- "--absolute": !c.value
1812
+ }), f = b(t.clickedElement), k = h(() => t.clickedElement.getBoundingClientRect()), T = b(), m = b(t.src), d = b(t.alt), C = b(), p = b(), S = b(!0), D = h(() => ({
1813
+ "--is-zoomed": z.value,
1814
+ "--invisible": S.value,
1815
+ "--absolute": !z.value
1816
1816
  }));
1817
- function T() {
1818
- var y, z;
1819
- g.value && (I.value = ((y = g.value) == null ? void 0 : y.naturalWidth) > ((z = g.value) == null ? void 0 : z.naturalHeight)), a.value = !0, l.value = !1, u.value = !0;
1817
+ function L() {
1818
+ var g, E;
1819
+ p.value && (T.value = ((g = p.value) == null ? void 0 : g.naturalWidth) > ((E = p.value) == null ? void 0 : E.naturalHeight)), a.value = !0, l.value = !1, u.value = !0;
1820
1820
  }
1821
1821
  X(
1822
1822
  u,
1823
- (y) => {
1824
- y && S();
1823
+ (g) => {
1824
+ g && x();
1825
1825
  },
1826
1826
  { immediate: !0 }
1827
1827
  );
1828
1828
  function P() {
1829
1829
  n("before-close"), M();
1830
1830
  }
1831
- function j(y) {
1832
- y.key === "Escape" && (y.preventDefault(), P()), (y.key === "ArrowLeft" || y.key === "ArrowRight") && (y.preventDefault(), de(y.key === "ArrowRight" ? "next" : "previous"));
1831
+ function j(g) {
1832
+ g.key === "Escape" && (g.preventDefault(), P()), (g.key === "ArrowLeft" || g.key === "ArrowRight") && (g.preventDefault(), me(g.key === "ArrowRight" ? "next" : "previous"));
1833
1833
  }
1834
1834
  function se() {
1835
1835
  document.documentElement.classList.add("--m-fullscreen-open");
@@ -1837,26 +1837,26 @@ const Vs = ["onKeypress"], Hs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
1837
1837
  function G() {
1838
1838
  document.documentElement.classList.remove("--m-fullscreen-open");
1839
1839
  }
1840
- function ue() {
1840
+ function ce() {
1841
1841
  return [...document.querySelectorAll(".m-fullscreen-img-instance")];
1842
1842
  }
1843
- function Me(y, z) {
1844
- return z < 0 ? y.length - 1 : z >= y.length ? 0 : z;
1843
+ function Me(g, E) {
1844
+ return E < 0 ? g.length - 1 : E >= g.length ? 0 : E;
1845
1845
  }
1846
- function ce(y, z) {
1847
- y.classList.remove(t.openInstanceClass), z.classList.add(t.openInstanceClass);
1848
- const k = z.getAttribute("data-src"), $ = z.getAttribute("data-alt");
1849
- m.value = $, h.value = k ?? h.value;
1846
+ function de(g, E) {
1847
+ g.classList.remove(t.openInstanceClass), E.classList.add(t.openInstanceClass);
1848
+ const I = E.getAttribute("data-src"), $ = E.getAttribute("data-alt");
1849
+ d.value = $, m.value = I ?? m.value;
1850
1850
  }
1851
- function de(y) {
1852
- A.value = !0;
1853
- const z = document.querySelector(
1851
+ function me(g) {
1852
+ S.value = !0;
1853
+ const E = document.querySelector(
1854
1854
  `.m-fullscreen-img-instance.${t.openInstanceClass}`
1855
1855
  );
1856
- if (z) {
1857
- const k = ue(), $ = k.indexOf(z), R = y === "next" ? $ + 1 : $ - 1, _ = k[Me(k, R)];
1858
- E.value = _, _ && ce(z, _), n(y), a.value = !1, l.value = !0, ct(() => a.value === !0, () => {
1859
- A.value = !1, c.value ? me() : v();
1856
+ if (E) {
1857
+ const I = ce(), $ = I.indexOf(E), R = g === "next" ? $ + 1 : $ - 1, _ = I[Me(I, R)];
1858
+ f.value = _, _ && de(E, _), n(g), a.value = !1, l.value = !0, ct(() => a.value === !0, () => {
1859
+ S.value = !1, z.value ? fe() : v();
1860
1860
  }, {
1861
1861
  expectedValue: !0,
1862
1862
  interval: 100,
@@ -1864,45 +1864,45 @@ const Vs = ["onKeypress"], Hs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
1864
1864
  });
1865
1865
  }
1866
1866
  }
1867
- function me() {
1868
- const y = g.value;
1869
- if (!y) {
1867
+ function fe() {
1868
+ const g = p.value;
1869
+ if (!g) {
1870
1870
  console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
1871
1871
  return;
1872
1872
  }
1873
- y.style.removeProperty("max-width"), y.style.removeProperty("max-height"), y == null || y.style.removeProperty("top"), y == null || y.style.removeProperty("left"), I.value ? (y.style.height = "100vh", y.style.removeProperty("width")) : (y.style.width = "100vw", y.style.removeProperty("height"));
1873
+ g.style.removeProperty("max-width"), g.style.removeProperty("max-height"), g == null || g.style.removeProperty("top"), g == null || g.style.removeProperty("left"), T.value ? (g.style.height = "100vh", g.style.removeProperty("width")) : (g.style.width = "100vw", g.style.removeProperty("height"));
1874
1874
  }
1875
1875
  function $e() {
1876
- c.value ? (c.value = !c.value, v()) : (c.value = !c.value, me());
1876
+ z.value ? (z.value = !z.value, v()) : (z.value = !z.value, fe());
1877
1877
  }
1878
- function ne(y) {
1879
- var k;
1880
- f.running = !0, A.value = !1;
1881
- const z = (k = g.value) == null ? void 0 : k.animate(y, {
1878
+ function ne(g) {
1879
+ var I;
1880
+ w.running = !0, S.value = !1;
1881
+ const E = (I = p.value) == null ? void 0 : I.animate(g, {
1882
1882
  duration: t.animation.duration,
1883
1883
  easing: t.animation.easing
1884
1884
  });
1885
- if (!z) {
1886
- console.error("[maz-ui](vFullscreenImg) animation is not defined"), f.running = !1, f.ended = !0;
1885
+ if (!E) {
1886
+ console.error("[maz-ui](vFullscreenImg) animation is not defined"), w.running = !1, w.ended = !0;
1887
1887
  return;
1888
1888
  }
1889
- return z;
1889
+ return E;
1890
1890
  }
1891
- function Le(y = t.offset ?? 0) {
1892
- const z = E.value.clientWidth || 1, k = E.value.clientHeight || 1, $ = window.innerWidth, R = window.innerHeight, _ = Math.min(
1893
- ($ - 2 * y) / z,
1894
- (R - 2 * y) / k
1895
- ), Ve = ($ - z * _) / 2, He = (R - k * _) / 2;
1891
+ function Le(g = t.offset ?? 0) {
1892
+ const E = f.value.clientWidth || 1, I = f.value.clientHeight || 1, $ = window.innerWidth, R = window.innerHeight, _ = Math.min(
1893
+ ($ - 2 * g) / E,
1894
+ (R - 2 * g) / I
1895
+ ), Ve = ($ - E * _) / 2, He = (R - I * _) / 2;
1896
1896
  return {
1897
1897
  centerX: Ve,
1898
1898
  centerY: He,
1899
- width: z,
1900
- height: k,
1899
+ width: E,
1900
+ height: I,
1901
1901
  scale: _
1902
1902
  };
1903
1903
  }
1904
- function ke({ trigger: y }) {
1905
- const { width: z, height: k, scale: $, centerX: R, centerY: _ } = Le(), { top: Ve, left: He, width: Ot, height: Dt } = O.value, Ke = [
1904
+ function ke({ trigger: g }) {
1905
+ const { width: E, height: I, scale: $, centerX: R, centerY: _ } = Le(), { top: Ve, left: He, width: Ot, height: Dt } = k.value, Ke = [
1906
1906
  {
1907
1907
  top: `${Ve}px`,
1908
1908
  left: `${He}px`,
@@ -1913,107 +1913,107 @@ const Vs = ["onKeypress"], Hs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
1913
1913
  {
1914
1914
  top: `${_}px`,
1915
1915
  left: `${R}px`,
1916
- width: `${z * $}px`,
1917
- height: `${k * $}px`,
1916
+ width: `${E * $}px`,
1917
+ height: `${I * $}px`,
1918
1918
  opacity: 1
1919
1919
  }
1920
1920
  ];
1921
1921
  return {
1922
- frames: y === "open" ? Ke : Ke.reverse()
1922
+ frames: g === "open" ? Ke : Ke.reverse()
1923
1923
  };
1924
1924
  }
1925
1925
  function v() {
1926
- const { height: y, width: z, scale: k } = Le(), $ = I.value ? {
1927
- width: `${z * k}px`,
1928
- maxHeight: `${y * k}px`
1926
+ const { height: g, width: E, scale: I } = Le(), $ = T.value ? {
1927
+ width: `${E * I}px`,
1928
+ maxHeight: `${g * I}px`
1929
1929
  } : {
1930
- height: `${y * k}px`,
1931
- maxWidth: `${z * k}px`
1930
+ height: `${g * I}px`,
1931
+ maxWidth: `${E * I}px`
1932
1932
  };
1933
- if (!g.value) {
1933
+ if (!p.value) {
1934
1934
  console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
1935
1935
  return;
1936
1936
  }
1937
- I.value ? (g.value.style.removeProperty("height"), g.value.style.removeProperty("maxHeight")) : (g.value.style.removeProperty("width"), g.value.style.removeProperty("maxWidth")), Object.assign(g.value.style, $);
1937
+ T.value ? (p.value.style.removeProperty("height"), p.value.style.removeProperty("maxHeight")) : (p.value.style.removeProperty("width"), p.value.style.removeProperty("maxWidth")), Object.assign(p.value.style, $);
1938
1938
  }
1939
- function S() {
1940
- const { frames: y } = ke({
1939
+ function x() {
1940
+ const { frames: g } = ke({
1941
1941
  trigger: "open"
1942
- }), z = ne(y);
1943
- if (!z) {
1942
+ }), E = ne(g);
1943
+ if (!E) {
1944
1944
  console.error("[maz-ui](vFullscreenImg) open animation is not defined"), v();
1945
1945
  return;
1946
1946
  }
1947
- z.onfinish = () => {
1948
- v(), f.running = !1, f.ended = !0;
1947
+ E.onfinish = () => {
1948
+ v(), w.running = !1, w.ended = !0;
1949
1949
  };
1950
1950
  }
1951
1951
  function M() {
1952
- const { frames: y } = ke({
1952
+ const { frames: g } = ke({
1953
1953
  trigger: "close"
1954
- }), z = ne(y);
1955
- function k() {
1954
+ }), E = ne(g);
1955
+ function I() {
1956
1956
  var $, R;
1957
- n("close"), ($ = L.value) == null || $.remove(), (R = t.destroy) == null || R.call(t), f.running = !1, f.ended = !0;
1957
+ n("close"), ($ = C.value) == null || $.remove(), (R = t.destroy) == null || R.call(t), w.running = !1, w.ended = !0;
1958
1958
  }
1959
- if (!z) {
1960
- console.error("[maz-ui](vFullscreenImg) close animation is not defined"), k();
1959
+ if (!E) {
1960
+ console.error("[maz-ui](vFullscreenImg) close animation is not defined"), I();
1961
1961
  return;
1962
1962
  }
1963
- z.onfinish = k;
1963
+ E.onfinish = I;
1964
1964
  }
1965
- function fe() {
1966
- c.value || v();
1965
+ function he() {
1966
+ z.value || v();
1967
1967
  }
1968
- return le(() => {
1969
- l.value = !0, document.addEventListener("keydown", j), window.addEventListener("resize", fe), se(), b.value = ue().length > 1;
1968
+ return ue(() => {
1969
+ l.value = !0, document.addEventListener("keydown", j), window.addEventListener("resize", he), se(), y.value = ce().length > 1;
1970
1970
  }), rt(() => {
1971
- document.removeEventListener("keydown", j), window.removeEventListener("resize", fe), G();
1972
- }), (y, z) => (C(), U("div", {
1971
+ document.removeEventListener("keydown", j), window.removeEventListener("resize", he), G();
1972
+ }), (g, E) => (A(), U("div", {
1973
1973
  ref_key: "FullscreenImgElement",
1974
- ref: L,
1974
+ ref: C,
1975
1975
  role: "button",
1976
1976
  class: "m-fullscreen-img",
1977
1977
  tabindex: "0",
1978
1978
  onClick: Y(P, ["stop"]),
1979
1979
  onKeypress: Nt(Y(P, ["prevent"]), ["esc"])
1980
1980
  }, [
1981
- u.value && b.value ? (C(), U("button", {
1981
+ u.value && y.value ? (A(), U("button", {
1982
1982
  key: 0,
1983
1983
  type: "button",
1984
1984
  class: "m-fullscreen-btn --next",
1985
- onClick: z[0] || (z[0] = Y((k) => de("next"), ["stop"]))
1985
+ onClick: E[0] || (E[0] = Y((I) => me("next"), ["stop"]))
1986
1986
  }, [
1987
- J(x(r), { class: "maz-rotate-180" })
1987
+ J(O(r), { class: "maz-rotate-180" })
1988
1988
  ])) : B("v-if", !0),
1989
- u.value && b.value ? (C(), U("button", {
1989
+ u.value && y.value ? (A(), U("button", {
1990
1990
  key: 1,
1991
1991
  type: "button",
1992
1992
  class: "m-fullscreen-btn --previous",
1993
- onClick: z[1] || (z[1] = Y((k) => de("previous"), ["stop"]))
1993
+ onClick: E[1] || (E[1] = Y((I) => me("previous"), ["stop"]))
1994
1994
  }, [
1995
- J(x(r))
1995
+ J(O(r))
1996
1996
  ])) : B("v-if", !0),
1997
1997
  V("button", {
1998
1998
  type: "button",
1999
1999
  class: "m-fullscreen-btn --close",
2000
2000
  onClick: P
2001
2001
  }, [
2002
- J(x(i))
2002
+ J(O(i))
2003
2003
  ]),
2004
- V("div", Hs, [
2004
+ V("div", Bs, [
2005
2005
  V("img", {
2006
2006
  ref_key: "ImgElement",
2007
- ref: g,
2008
- src: h.value,
2009
- alt: m.value ?? void 0,
2007
+ ref: p,
2008
+ src: m.value,
2009
+ alt: d.value ?? void 0,
2010
2010
  tabindex: "0",
2011
- class: ge([D.value]),
2012
- onLoad: T,
2013
- onClick: z[2] || (z[2] = Y((k) => y.zoom && $e(), ["stop"]))
2014
- }, null, 42, Bs),
2011
+ class: le([D.value]),
2012
+ onLoad: L,
2013
+ onClick: E[2] || (E[2] = Y((I) => g.zoom && $e(), ["stop"]))
2014
+ }, null, 42, Ns),
2015
2015
  at(J(
2016
- x(o),
2016
+ O(o),
2017
2017
  { class: "m-fullscreen-img-loader" },
2018
2018
  null,
2019
2019
  512
@@ -2022,18 +2022,18 @@ const Vs = ["onKeypress"], Hs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
2022
2022
  [lt, l.value]
2023
2023
  ])
2024
2024
  ])
2025
- ], 40, Vs));
2025
+ ], 40, Hs));
2026
2026
  }
2027
2027
  }), Pe = (s, e) => {
2028
2028
  const t = s.__vccOpts || s;
2029
2029
  for (const [n, o] of e)
2030
2030
  t[n] = o;
2031
2031
  return t;
2032
- }, Fs = /* @__PURE__ */ Pe(Ns, [["__scopeId", "data-v-4a73acb2"]]), Je = "m-fullscreen-is-open";
2033
- class js {
2032
+ }, js = /* @__PURE__ */ Pe(Fs, [["__scopeId", "data-v-4a73acb2"]]), Je = "m-fullscreen-is-open";
2033
+ class qs {
2034
2034
  constructor() {
2035
- d(this, "options");
2036
- d(this, "defaultOptions", {
2035
+ c(this, "options");
2036
+ c(this, "defaultOptions", {
2037
2037
  scaleOnHover: !1,
2038
2038
  blurOnHover: !1,
2039
2039
  disabled: !1,
@@ -2044,9 +2044,9 @@ class js {
2044
2044
  easing: "ease-in-out"
2045
2045
  }
2046
2046
  });
2047
- d(this, "mouseEnterListener");
2048
- d(this, "mouseLeaveListener");
2049
- d(this, "renderPreviewListener");
2047
+ c(this, "mouseEnterListener");
2048
+ c(this, "mouseLeaveListener");
2049
+ c(this, "renderPreviewListener");
2050
2050
  }
2051
2051
  buildOptions(e, t) {
2052
2052
  const n = typeof t.value == "object" ? t.value : { src: t.value, alt: void 0 }, o = (n == null ? void 0 : n.src) ?? this.getImgSrc(e), i = (n == null ? void 0 : n.alt) ?? this.getImgAlt(e);
@@ -2087,7 +2087,7 @@ class js {
2087
2087
  e.removeEventListener("mouseenter", this.mouseEnterListener), e.removeEventListener("mouseleave", this.mouseLeaveListener), e.removeEventListener("click", this.renderPreviewListener), e.classList.remove("m-fullscreen-img-instance"), e.style.cursor = "";
2088
2088
  }
2089
2089
  renderPreview(e) {
2090
- return e.classList.add(Je), _e(Fs, {
2090
+ return e.classList.add(Je), _e(js, {
2091
2091
  props: {
2092
2092
  ...this.options,
2093
2093
  openInstanceClass: Je,
@@ -2105,9 +2105,9 @@ class js {
2105
2105
  }
2106
2106
  }
2107
2107
  let Ae;
2108
- const qs = {
2108
+ const Us = {
2109
2109
  mounted(s, e) {
2110
- return Ae = new js(), Ae.create(s, e);
2110
+ return Ae = new qs(), Ae.create(s, e);
2111
2111
  },
2112
2112
  updated(s, e) {
2113
2113
  return Ae.update(s, e);
@@ -2115,11 +2115,11 @@ const qs = {
2115
2115
  unmounted(s) {
2116
2116
  return Ae.remove(s);
2117
2117
  }
2118
- }, Us = {
2118
+ }, Ws = {
2119
2119
  install(s) {
2120
- s.directive("fullscreen-img", qs);
2120
+ s.directive("fullscreen-img", Us);
2121
2121
  }
2122
- }, Ws = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", Ue = {
2122
+ }, Rs = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", Ue = {
2123
2123
  baseClass: "m-lazy-img",
2124
2124
  loadedClass: "m-lazy-loaded",
2125
2125
  loadingClass: "m-lazy-loading",
@@ -2135,12 +2135,12 @@ const qs = {
2135
2135
  };
2136
2136
  class At {
2137
2137
  constructor(e = {}) {
2138
- d(this, "observers", []);
2139
- d(this, "defaultOptions", Ue);
2140
- d(this, "options");
2141
- d(this, "onImgLoadedCallback");
2142
- d(this, "onImgErrorCallback");
2143
- d(this, "hasImgLoaded", !1);
2138
+ c(this, "observers", []);
2139
+ c(this, "defaultOptions", Ue);
2140
+ c(this, "options");
2141
+ c(this, "onImgLoadedCallback");
2142
+ c(this, "onImgErrorCallback");
2143
+ c(this, "hasImgLoaded", !1);
2144
2144
  this.options = this.buildOptions(e), this.onImgLoadedCallback = this.imageIsLoaded.bind(this), this.onImgErrorCallback = this.imageHasError.bind(this);
2145
2145
  }
2146
2146
  async loadErrorPhoto() {
@@ -2274,7 +2274,7 @@ class At {
2274
2274
  async add(e, t) {
2275
2275
  if (this.hasBgImgMode(t) && this.isPictureElement(e))
2276
2276
  throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);
2277
- setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e, Ws), await this.bindUpdateHandler(e, t, "bind");
2277
+ setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e, Rs), await this.bindUpdateHandler(e, t, "bind");
2278
2278
  }
2279
2279
  async update(e, t) {
2280
2280
  t.value !== t.oldValue && (this.hasImgLoaded = !1, this.removeAllStateClasses(e), await this.bindUpdateHandler(e, t, "update"));
@@ -2287,7 +2287,7 @@ class At {
2287
2287
  }
2288
2288
  }
2289
2289
  let Se;
2290
- const ao = {
2290
+ const lo = {
2291
2291
  created(s, e) {
2292
2292
  const t = typeof e.value == "object" ? e.value : {};
2293
2293
  Se = new At(t), Se.add(s, e);
@@ -2298,7 +2298,7 @@ const ao = {
2298
2298
  unmounted(s, e) {
2299
2299
  Se.remove(s, e);
2300
2300
  }
2301
- }, Rs = {
2301
+ }, _s = {
2302
2302
  install(s, e = {}) {
2303
2303
  const t = {
2304
2304
  ...Ue,
@@ -2314,7 +2314,7 @@ const ao = {
2314
2314
  unmounted: n.remove.bind(n)
2315
2315
  });
2316
2316
  }
2317
- }, _s = `
2317
+ }, Ks = `
2318
2318
  .maz-zoom-img {
2319
2319
  position: fixed;
2320
2320
  top: 0;
@@ -2443,23 +2443,23 @@ const ao = {
2443
2443
  previous: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>',
2444
2444
  spinner: '<svg width="40px" height="40px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="currentColor" x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve" class="maz-zoom-img__loader__svg" data-v-6d1cb50c=""><path d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"></path></svg>'
2445
2445
  };
2446
- class Ks {
2446
+ class Ys {
2447
2447
  constructor(e) {
2448
- d(this, "options");
2449
- d(this, "loader");
2450
- d(this, "wrapper");
2451
- d(this, "img");
2452
- d(this, "keydownHandler");
2453
- d(this, "onImgLoadedCallback");
2454
- d(this, "buttonsAdded");
2455
- d(this, "defaultOptions", {
2448
+ c(this, "options");
2449
+ c(this, "loader");
2450
+ c(this, "wrapper");
2451
+ c(this, "img");
2452
+ c(this, "keydownHandler");
2453
+ c(this, "onImgLoadedCallback");
2454
+ c(this, "buttonsAdded");
2455
+ c(this, "defaultOptions", {
2456
2456
  scale: !0,
2457
2457
  blur: !0,
2458
2458
  disabled: !1
2459
2459
  });
2460
- d(this, "mouseEnterListener");
2461
- d(this, "mouseLeaveListener");
2462
- d(this, "renderPreviewListener");
2460
+ c(this, "mouseEnterListener");
2461
+ c(this, "mouseLeaveListener");
2462
+ c(this, "renderPreviewListener");
2463
2463
  if (!e.value)
2464
2464
  throw new Error(
2465
2465
  '[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`'
@@ -2490,7 +2490,7 @@ class Ks {
2490
2490
  e.classList.add(
2491
2491
  "maz-is-open"
2492
2492
  /* OPEN */
2493
- ), this.addStyle(_s);
2493
+ ), this.addStyle(Ks);
2494
2494
  const n = document.createElement("div");
2495
2495
  n.classList.add("maz-zoom-img"), n.setAttribute("id", "MazImgPreviewFullsize"), n.addEventListener("click", (o) => {
2496
2496
  n.isEqualNode(o.target) && this.closePreview();
@@ -2581,9 +2581,9 @@ class Ks {
2581
2581
  }
2582
2582
  }
2583
2583
  let xe;
2584
- const Ys = {
2584
+ const Zs = {
2585
2585
  created(s, e) {
2586
- xe = new Ks(e), xe.create(s);
2586
+ xe = new Ys(e), xe.create(s);
2587
2587
  },
2588
2588
  updated(s, e) {
2589
2589
  xe.update(e);
@@ -2591,36 +2591,36 @@ const Ys = {
2591
2591
  unmounted(s) {
2592
2592
  xe.remove(s);
2593
2593
  }
2594
- }, Zs = {
2594
+ }, Xs = {
2595
2595
  install(s) {
2596
- s.directive("zoom-img", Ys);
2597
- }
2598
- }, Xs = [
2599
- Ds,
2600
- Zs,
2601
- Rs,
2602
- As,
2603
- Us,
2604
- Ps
2605
- ], lo = {
2596
+ s.directive("zoom-img", Zs);
2597
+ }
2598
+ }, Gs = [
2599
+ Ps,
2600
+ Xs,
2601
+ _s,
2602
+ Ss,
2603
+ Ws,
2604
+ Ms
2605
+ ], uo = {
2606
2606
  install(s) {
2607
- for (const e of Xs)
2607
+ for (const e of Gs)
2608
2608
  e.install(s, {});
2609
2609
  }
2610
2610
  };
2611
- function Gs(s) {
2611
+ function Qs(s) {
2612
2612
  return s ? (s = s.toString(), s.charAt(0).toUpperCase() + s.slice(1)) : "";
2613
2613
  }
2614
- const Qs = {
2614
+ const Js = {
2615
2615
  style: "currency",
2616
2616
  minimumFractionDigits: 2,
2617
2617
  round: !1
2618
2618
  };
2619
- function Js(s, e, t) {
2619
+ function en(s, e, t) {
2620
2620
  let n = Number(s);
2621
2621
  return t.round && (n = Math.floor(n), t.minimumFractionDigits = 0), new Intl.NumberFormat(e, t).format(n);
2622
2622
  }
2623
- function en(s, e, t) {
2623
+ function tn(s, e, t) {
2624
2624
  if (s === void 0)
2625
2625
  throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");
2626
2626
  if (e === void 0)
@@ -2630,29 +2630,29 @@ function en(s, e, t) {
2630
2630
  if (t.currency === void 0)
2631
2631
  throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.");
2632
2632
  }
2633
- function tn(s, e, t) {
2633
+ function sn(s, e, t) {
2634
2634
  const n = {
2635
- ...Qs,
2635
+ ...Js,
2636
2636
  ...t
2637
2637
  };
2638
- en(s, e, n);
2638
+ tn(s, e, n);
2639
2639
  try {
2640
- return Js(s, e, n);
2640
+ return en(s, e, n);
2641
2641
  } catch (o) {
2642
2642
  throw new Error(`[maz-ui](FilterCurrency) ${o}`);
2643
2643
  }
2644
2644
  }
2645
- const sn = {
2645
+ const nn = {
2646
2646
  month: "short",
2647
2647
  day: "numeric",
2648
2648
  year: "numeric"
2649
2649
  };
2650
- function nn(s, e, t) {
2650
+ function on(s, e, t) {
2651
2651
  if (e === void 0)
2652
2652
  throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");
2653
2653
  if (typeof e != "string")
2654
2654
  throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");
2655
- const n = t ?? sn;
2655
+ const n = t ?? nn;
2656
2656
  try {
2657
2657
  const o = s instanceof Date ? s : new Date(s);
2658
2658
  return new Intl.DateTimeFormat(e, n).format(o);
@@ -2660,12 +2660,12 @@ function nn(s, e, t) {
2660
2660
  throw new Error(`[maz-ui](FilterDate) ${o}`);
2661
2661
  }
2662
2662
  }
2663
- const on = {
2663
+ const rn = {
2664
2664
  minimumFractionDigits: 2
2665
2665
  };
2666
- function rn(s, e, t) {
2666
+ function an(s, e, t) {
2667
2667
  const n = {
2668
- ...on,
2668
+ ...rn,
2669
2669
  ...t
2670
2670
  };
2671
2671
  if (s === void 0)
@@ -2680,14 +2680,14 @@ function rn(s, e, t) {
2680
2680
  throw new Error(`[maz-ui](FilterNumber) ${o}`);
2681
2681
  }
2682
2682
  }
2683
- const an = {
2684
- capitalize: Gs,
2685
- currency: tn,
2686
- date: nn,
2687
- number: rn
2688
- }, uo = {
2683
+ const ln = {
2684
+ capitalize: Qs,
2685
+ currency: sn,
2686
+ date: on,
2687
+ number: an
2688
+ }, co = {
2689
2689
  install(s) {
2690
- s.provide("filters", an);
2690
+ s.provide("filters", ln);
2691
2691
  }
2692
2692
  }, Fe = {
2693
2693
  delay: 100,
@@ -2702,9 +2702,9 @@ const an = {
2702
2702
  delay: 0
2703
2703
  }
2704
2704
  };
2705
- class ln {
2705
+ class un {
2706
2706
  constructor(e) {
2707
- d(this, "options");
2707
+ c(this, "options");
2708
2708
  this.options = {
2709
2709
  delay: (e == null ? void 0 : e.delay) ?? Fe.delay,
2710
2710
  observer: {
@@ -2731,16 +2731,16 @@ class ln {
2731
2731
  for (const a of r) {
2732
2732
  const l = a.getAttribute("data-maz-aos-once"), u = typeof l == "string" ? l === "true" : this.options.animation.once;
2733
2733
  if (typeof this.options.observer.threshold == "number" && n.intersectionRatio > this.options.observer.threshold) {
2734
- const b = a.getAttribute("data-maz-aos-duration"), c = a.getAttribute("data-maz-aos-delay");
2735
- if (b || (a.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
2734
+ const y = a.getAttribute("data-maz-aos-duration"), z = a.getAttribute("data-maz-aos-delay");
2735
+ if (y || (a.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
2736
2736
  a.style.transitionDuration = "0";
2737
- }, 1e3)), c || (a.style.transitionDelay = `${this.options.animation.delay}ms`, setTimeout(() => {
2737
+ }, 1e3)), z || (a.style.transitionDelay = `${this.options.animation.delay}ms`, setTimeout(() => {
2738
2738
  a.style.transitionDelay = "0";
2739
2739
  }, 1e3)), a.classList.add("maz-aos-animate"), u) {
2740
- const f = a.getAttribute("data-maz-aos-anchor");
2741
- if (f) {
2742
- const E = document.querySelector(f);
2743
- E && t.unobserve(E);
2740
+ const w = a.getAttribute("data-maz-aos-anchor");
2741
+ if (w) {
2742
+ const f = document.querySelector(w);
2743
+ f && t.unobserve(f);
2744
2744
  }
2745
2745
  t.unobserve(a);
2746
2746
  }
@@ -2750,7 +2750,7 @@ class ln {
2750
2750
  }
2751
2751
  }
2752
2752
  async handleObserver() {
2753
- await $s(this.options.delay);
2753
+ await Vs(this.options.delay);
2754
2754
  const e = new IntersectionObserver(this.handleIntersect.bind(this), this.options.observer);
2755
2755
  for (const t of document.querySelectorAll("[data-maz-aos]")) {
2756
2756
  const n = t.getAttribute("data-maz-aos-anchor");
@@ -2767,22 +2767,22 @@ class ln {
2767
2767
  console.warn("[MazAos](runAnimations) should be executed on client side");
2768
2768
  }
2769
2769
  }
2770
- let he;
2771
- const co = {
2770
+ let ve;
2771
+ const mo = {
2772
2772
  install: (s, e) => {
2773
- he = new ln(e), s.provide("aos", he), F() && (e != null && e.router ? e.router.afterEach(() => {
2774
- he.runAnimations();
2775
- }) : he.runAnimations());
2773
+ ve = new un(e), s.provide("aos", ve), F() && (e != null && e.router ? e.router.afterEach(() => {
2774
+ ve.runAnimations();
2775
+ }) : ve.runAnimations());
2776
2776
  }
2777
2777
  };
2778
- function mo() {
2779
- return he;
2778
+ function fo() {
2779
+ return ve;
2780
2780
  }
2781
- const un = {
2781
+ const cn = {
2782
2782
  role: "dialog",
2783
2783
  class: "m-backdrop-container",
2784
2784
  "aria-modal": "true"
2785
- }, cn = { class: "m-backdrop-wrapper" }, tt = "--backdrop-present", dn = /* @__PURE__ */ ye({
2785
+ }, dn = { class: "m-backdrop-wrapper" }, tt = "--backdrop-present", mn = /* @__PURE__ */ ye({
2786
2786
  inheritAttrs: !1,
2787
2787
  __name: "MazBackdrop",
2788
2788
  props: {
@@ -2810,92 +2810,92 @@ const un = {
2810
2810
  function i() {
2811
2811
  document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(tt);
2812
2812
  }
2813
- const r = w(s.modelValue);
2813
+ const r = b(s.modelValue);
2814
2814
  function a() {
2815
2815
  l(!1);
2816
2816
  }
2817
- async function l(m) {
2818
- var L;
2819
- m || (n("before-close"), await ((L = s.beforeClose) == null ? void 0 : L.call(s))), r.value = m;
2817
+ async function l(d) {
2818
+ var C;
2819
+ d || (n("before-close"), await ((C = s.beforeClose) == null ? void 0 : C.call(s))), r.value = d;
2820
2820
  }
2821
2821
  function u() {
2822
2822
  n("open");
2823
2823
  }
2824
- function b() {
2825
- n("update:model-value", !1), n("close"), O();
2824
+ function y() {
2825
+ n("update:model-value", !1), n("close"), k();
2826
2826
  }
2827
- function c() {
2827
+ function z() {
2828
2828
  s.persistent || a();
2829
2829
  }
2830
- function f(m) {
2831
- !s.noCloseOnEscKey && m.key === "Escape" && !s.persistent && a();
2830
+ function w(d) {
2831
+ !s.noCloseOnEscKey && d.key === "Escape" && !s.persistent && a();
2832
2832
  }
2833
- function E() {
2834
- o(), document.addEventListener("keyup", f, !1);
2833
+ function f() {
2834
+ o(), document.addEventListener("keyup", w, !1);
2835
2835
  }
2836
- function O() {
2837
- document.removeEventListener("keyup", f), i();
2836
+ function k() {
2837
+ document.removeEventListener("keyup", w), i();
2838
2838
  }
2839
- le(() => {
2840
- s.modelValue ? E() : O();
2839
+ ue(() => {
2840
+ s.modelValue ? f() : k();
2841
2841
  });
2842
- let I = null;
2843
- function h(m) {
2844
- const L = document.querySelector(m), A = L && Array.from(L.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select')), D = A == null ? void 0 : A.filter((T) => {
2845
- const P = window.getComputedStyle(T);
2846
- return P.display !== "none" && P.visibility !== "hidden" && !T.disabled;
2842
+ let T = null;
2843
+ function m(d) {
2844
+ const C = document.querySelector(d), S = C && Array.from(C.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select')), D = S == null ? void 0 : S.filter((L) => {
2845
+ const P = window.getComputedStyle(L);
2846
+ return P.display !== "none" && P.visibility !== "hidden" && !L.disabled;
2847
2847
  });
2848
2848
  return D && D.length > 0 ? D[0] : null;
2849
2849
  }
2850
2850
  return X(
2851
2851
  () => s.modelValue,
2852
- async (m) => {
2853
- if (r.value = m, m) {
2854
- E(), I = document.activeElement, await ae();
2855
- const L = h(".m-backdrop-content");
2856
- L == null || L.focus();
2852
+ async (d) => {
2853
+ if (r.value = d, d) {
2854
+ f(), T = document.activeElement, await ae();
2855
+ const C = m(".m-backdrop-content");
2856
+ C == null || C.focus();
2857
2857
  } else
2858
- O(), await ae(), I == null || I.focus();
2858
+ k(), await ae(), T == null || T.focus();
2859
2859
  }
2860
2860
  ), e({
2861
2861
  onBackdropAnimationEnter: u,
2862
- onBackdropAnimationLeave: b,
2863
- onBackdropClicked: c,
2862
+ onBackdropAnimationLeave: y,
2863
+ onBackdropClicked: z,
2864
2864
  close: a,
2865
2865
  present: r,
2866
2866
  toggleModal: l,
2867
- onKeyPress: f
2868
- }), (m, L) => (C(), N(Ft, { to: m.teleportSelector }, [
2867
+ onKeyPress: w
2868
+ }), (d, C) => (A(), N(Ft, { to: d.teleportSelector }, [
2869
2869
  J(ut, {
2870
2870
  appear: "",
2871
- name: m.transitionName,
2871
+ name: d.transitionName,
2872
2872
  onAfterEnter: u,
2873
- onAfterLeave: b
2873
+ onAfterLeave: y
2874
2874
  }, {
2875
2875
  default: q(() => [
2876
- r.value ? (C(), U(
2876
+ r.value ? (A(), U(
2877
2877
  "div",
2878
2878
  ee({
2879
2879
  key: 0,
2880
2880
  class: "m-backdrop --present"
2881
- }, m.$attrs, {
2882
- class: [m.backdropClass, m.variant && `--variant-${m.variant}`, { "--persistent": m.persistent }]
2881
+ }, d.$attrs, {
2882
+ class: [d.backdropClass, d.variant && `--variant-${d.variant}`, { "--persistent": d.persistent }]
2883
2883
  }),
2884
2884
  [
2885
- V("div", un, [
2886
- V("div", cn, [
2885
+ V("div", cn, [
2886
+ V("div", dn, [
2887
2887
  V(
2888
2888
  "div",
2889
2889
  {
2890
- class: ge(["m-backdrop-content", [m.backdropContentClass, `--justify-${m.justify}`, `--align-${m.align}`, { "--padding": m.contentPadding }]]),
2890
+ class: le(["m-backdrop-content", [d.backdropContentClass, `--justify-${d.justify}`, `--align-${d.align}`, { "--padding": d.contentPadding }]]),
2891
2891
  role: "button",
2892
2892
  tabindex: "-1",
2893
- onClick: Y(c, ["self"])
2893
+ onClick: Y(z, ["self"])
2894
2894
  },
2895
2895
  [
2896
- W(m.$slots, "default", {
2896
+ W(d.$slots, "default", {
2897
2897
  close: a,
2898
- onBackdropClicked: c
2898
+ onBackdropClicked: z
2899
2899
  }, void 0, !0)
2900
2900
  ],
2901
2901
  2
@@ -2913,14 +2913,14 @@ const un = {
2913
2913
  }, 8, ["name"])
2914
2914
  ], 8, ["to"]));
2915
2915
  }
2916
- }), mn = /* @__PURE__ */ Pe(dn, [["__scopeId", "data-v-7aa1682e"]]), fn = {
2916
+ }), fn = /* @__PURE__ */ Pe(mn, [["__scopeId", "data-v-7aa1682e"]]), hn = {
2917
2917
  key: 0,
2918
2918
  id: "dialogTitle",
2919
2919
  class: "m-dialog-title"
2920
- }, hn = {
2920
+ }, vn = {
2921
2921
  key: 0,
2922
2922
  class: "m-dialog-footer"
2923
- }, vn = /* @__PURE__ */ ye({
2923
+ }, pn = /* @__PURE__ */ ye({
2924
2924
  name: "MazDialog",
2925
2925
  inheritAttrs: !1,
2926
2926
  __name: "MazDialog",
@@ -2945,15 +2945,15 @@ const un = {
2945
2945
  },
2946
2946
  emits: ["open", "close", "update:model-value"],
2947
2947
  setup(s, { expose: e }) {
2948
- const t = s, n = H(() => import("./MazBtn-yNCoLFA6.mjs")), o = H(() => import("./x-mark-CnZwVvA7.mjs")), i = jt(), r = w();
2948
+ const t = s, n = H(() => import("./MazBtn-BB46O5je.mjs")), o = H(() => import("./x-mark-CnZwVvA7.mjs")), i = jt(), r = b();
2949
2949
  e({
2950
2950
  close: () => {
2951
- var c, f;
2952
- return (f = (c = r.value) == null ? void 0 : c.close) == null ? void 0 : f.call(c);
2951
+ var f, k;
2952
+ return (k = (f = r.value) == null ? void 0 : f.close) == null ? void 0 : k.call(f);
2953
2953
  }
2954
2954
  });
2955
- const a = p(() => {
2956
- const c = [
2955
+ const a = h(() => {
2956
+ const f = [
2957
2957
  "modelValue",
2958
2958
  "title",
2959
2959
  "noClose",
@@ -2962,70 +2962,70 @@ const un = {
2962
2962
  "scrollable"
2963
2963
  ];
2964
2964
  return Object.fromEntries(
2965
- Object.entries(t).filter(([f]) => !c.includes(f))
2965
+ Object.entries(t).filter(([k]) => !f.includes(k))
2966
2966
  );
2967
- }), l = p(() => ({
2967
+ }), l = h(() => ({
2968
2968
  ...i,
2969
2969
  class: void 0,
2970
2970
  style: void 0
2971
- })), u = p(() => ({
2971
+ })), u = h(() => ({
2972
2972
  class: i.class,
2973
2973
  style: i.style
2974
- })), b = w();
2975
- return t.scrollable && X(() => t.modelValue, async (c) => {
2976
- await ae(), c && b.value && setTimeout(() => {
2977
- var f;
2978
- (f = b.value) == null || f.scrollTo({ top: 0, behavior: "instant" });
2974
+ })), y = b(), z = qt(), w = h(() => !!z.footer);
2975
+ return t.scrollable && X(() => t.modelValue, async (f) => {
2976
+ await ae(), f && y.value && setTimeout(() => {
2977
+ var k;
2978
+ (k = y.value) == null || k.scrollTo({ top: 0, behavior: "instant" });
2979
2979
  }, 0);
2980
- }), (c, f) => (C(), N(mn, ee({ ...l.value, ...a.value }, {
2980
+ }), (f, k) => (A(), N(fn, ee({ ...l.value, ...a.value }, {
2981
2981
  ref_key: "backdrop",
2982
2982
  ref: r,
2983
- "model-value": c.modelValue,
2983
+ "model-value": f.modelValue,
2984
2984
  "transition-name": "modal-anim",
2985
2985
  "aria-labelledby": "dialogTitle",
2986
2986
  "aria-describedby": "dialogDesc",
2987
2987
  "content-padding": "",
2988
2988
  justify: "center",
2989
2989
  variant: "dialog",
2990
- onClose: f[0] || (f[0] = (E) => c.$emit("close", E)),
2991
- onOpen: f[1] || (f[1] = (E) => c.$emit("open", E)),
2992
- "onUpdate:modelValue": f[2] || (f[2] = (E) => c.$emit("update:model-value", E))
2990
+ onClose: k[0] || (k[0] = (T) => f.$emit("close", T)),
2991
+ onOpen: k[1] || (k[1] = (T) => f.$emit("open", T)),
2992
+ "onUpdate:modelValue": k[2] || (k[2] = (T) => f.$emit("update:model-value", T))
2993
2993
  }), {
2994
- default: q(({ close: E, onBackdropClicked: O }) => [
2994
+ default: q(({ close: T, onBackdropClicked: m }) => [
2995
2995
  V(
2996
2996
  "div",
2997
2997
  ee({
2998
- class: ["m-dialog", { "--scrollable": c.scrollable }],
2998
+ class: ["m-dialog", { "--scrollable": f.scrollable }],
2999
2999
  role: "dialog",
3000
3000
  "aria-modal": "true",
3001
- style: [{ "--max-width": c.maxWidth, "--min-width": c.minWidth }]
3001
+ style: [{ "--max-width": f.maxWidth, "--min-width": f.minWidth }]
3002
3002
  }, u.value),
3003
3003
  [
3004
- W(c.$slots, "header", {
3005
- close: E,
3006
- onBackdropClicked: O
3004
+ W(f.$slots, "header", {
3005
+ close: T,
3006
+ onBackdropClicked: m
3007
3007
  }, () => [
3008
3008
  V(
3009
3009
  "div",
3010
3010
  {
3011
- class: ge(["m-dialog-header", { "--has-title": c.$slots.title || c.title }])
3011
+ class: le(["m-dialog-header", { "--has-title": f.$slots.title || f.title }])
3012
3012
  },
3013
3013
  [
3014
- c.$slots.title || c.title ? (C(), U("h2", fn, [
3015
- W(c.$slots, "title", {}, () => [
3014
+ f.$slots.title || f.title ? (A(), U("h2", hn, [
3015
+ W(f.$slots, "title", {}, () => [
3016
3016
  Q(
3017
- Z(c.title),
3017
+ Z(f.title),
3018
3018
  1
3019
3019
  /* TEXT */
3020
3020
  )
3021
3021
  ], !0)
3022
3022
  ])) : B("v-if", !0),
3023
- !c.noClose && !c.persistent ? (C(), N(x(n), {
3023
+ !f.noClose && !f.persistent ? (A(), N(O(n), {
3024
3024
  key: 1,
3025
3025
  color: "transparent",
3026
3026
  size: "sm",
3027
- icon: x(o),
3028
- onClick: E
3027
+ icon: O(o),
3028
+ onClick: T
3029
3029
  }, null, 8, ["icon", "onClick"])) : B("v-if", !0)
3030
3030
  ],
3031
3031
  2
@@ -3037,22 +3037,22 @@ const un = {
3037
3037
  {
3038
3038
  id: "dialogDesc",
3039
3039
  ref_key: "dialogContent",
3040
- ref: b,
3041
- class: "m-dialog-content"
3040
+ ref: y,
3041
+ class: le(["m-dialog-content", { "--bottom-padding": !w.value }])
3042
3042
  },
3043
3043
  [
3044
- W(c.$slots, "default", {
3045
- close: E,
3046
- onBackdropClicked: O
3044
+ W(f.$slots, "default", {
3045
+ close: T,
3046
+ onBackdropClicked: m
3047
3047
  }, void 0, !0)
3048
3048
  ],
3049
- 512
3050
- /* NEED_PATCH */
3049
+ 2
3050
+ /* CLASS */
3051
3051
  ),
3052
- c.$slots.footer ? (C(), U("div", hn, [
3053
- W(c.$slots, "footer", {
3054
- close: E,
3055
- onBackdropClicked: O
3052
+ w.value ? (A(), U("div", vn, [
3053
+ W(f.$slots, "footer", {
3054
+ close: T,
3055
+ onBackdropClicked: m
3056
3056
  }, void 0, !0)
3057
3057
  ])) : B("v-if", !0)
3058
3058
  ],
@@ -3064,7 +3064,7 @@ const un = {
3064
3064
  /* FORWARDED */
3065
3065
  }, 16, ["model-value"]));
3066
3066
  }
3067
- }), pn = /* @__PURE__ */ Pe(vn, [["__scopeId", "data-v-b16ef3d7"]]), oe = {
3067
+ }), gn = /* @__PURE__ */ Pe(pn, [["__scopeId", "data-v-b8a6c7fb"]]), oe = {
3068
3068
  cancelText: "Cancel",
3069
3069
  confirmText: "Confirm",
3070
3070
  cancelButton: {
@@ -3075,8 +3075,8 @@ const un = {
3075
3075
  text: "Confirm",
3076
3076
  color: "success"
3077
3077
  }
3078
- }, gn = w(oe), ie = w([]);
3079
- function yn(s, e) {
3078
+ }, yn = b(oe), ie = b([]);
3079
+ function bn(s, e) {
3080
3080
  return new Promise((t, n) => {
3081
3081
  ie.value = [
3082
3082
  ...ie.value,
@@ -3104,15 +3104,15 @@ function st(s, e, t) {
3104
3104
  }
3105
3105
  function xt() {
3106
3106
  return {
3107
- data: gn,
3107
+ data: yn,
3108
3108
  dialogState: ie,
3109
- showDialogAndWaitChoice: yn,
3109
+ showDialogAndWaitChoice: bn,
3110
3110
  removeDialogFromState: St,
3111
3111
  rejectDialog: async (s, e = new Error("cancel"), t) => (await (t == null ? void 0 : t()), st("reject", s, e)),
3112
3112
  resolveDialog: async (s, e = "accept", t) => (await (t == null ? void 0 : t()), st("resolve", s, e))
3113
3113
  };
3114
3114
  }
3115
- const bn = { class: "maz-flex maz-items-center maz-gap-2" }, wn = /* @__PURE__ */ ye({
3115
+ const wn = { class: "maz-flex maz-items-center maz-gap-2" }, En = /* @__PURE__ */ ye({
3116
3116
  __name: "MazDialogPromise",
3117
3117
  props: {
3118
3118
  data: { default: void 0 },
@@ -3143,71 +3143,71 @@ const bn = { class: "maz-flex maz-items-center maz-gap-2" }, wn = /* @__PURE__ *
3143
3143
  },
3144
3144
  emits: ["open", "close"],
3145
3145
  setup(s, { expose: e }) {
3146
- const t = s, n = H(() => import("./MazBtn-yNCoLFA6.mjs")), { dialogState: o, rejectDialog: i, resolveDialog: r, data: a } = xt(), l = p(() => {
3147
- var h;
3148
- return t.buttons ?? ((h = t.data) == null ? void 0 : h.buttons) ?? a.value.buttons;
3149
- }), u = p(() => ({
3146
+ const t = s, n = H(() => import("./MazBtn-BB46O5je.mjs")), { dialogState: o, rejectDialog: i, resolveDialog: r, data: a } = xt(), l = h(() => {
3147
+ var m;
3148
+ return t.buttons ?? ((m = t.data) == null ? void 0 : m.buttons) ?? a.value.buttons;
3149
+ }), u = h(() => ({
3150
3150
  ...oe,
3151
3151
  ...a.value,
3152
3152
  ...t.data
3153
- })), b = p(() => {
3154
- var L, g, A, D;
3155
- if (!(((L = a.value) == null ? void 0 : L.cancelButton) ?? ((g = t.data) == null ? void 0 : g.cancelButton) ?? oe.cancelButton))
3153
+ })), y = h(() => {
3154
+ var C, p, S, D;
3155
+ if (!(((C = a.value) == null ? void 0 : C.cancelButton) ?? ((p = t.data) == null ? void 0 : p.cancelButton) ?? oe.cancelButton))
3156
3156
  return;
3157
- const m = {
3157
+ const d = {
3158
3158
  ...oe.cancelButton,
3159
- ...(A = a.value) == null ? void 0 : A.cancelButton,
3159
+ ...(S = a.value) == null ? void 0 : S.cancelButton,
3160
3160
  ...(D = t.data) == null ? void 0 : D.cancelButton
3161
3161
  };
3162
3162
  return {
3163
- ...m,
3164
- text: t.cancelText || u.value.cancelText || m.text
3163
+ ...d,
3164
+ text: t.cancelText || u.value.cancelText || d.text
3165
3165
  };
3166
- }), c = p(() => {
3167
- var L, g, A, D;
3168
- if (!(((L = a.value) == null ? void 0 : L.confirmButton) ?? ((g = t.data) == null ? void 0 : g.confirmButton) ?? oe.confirmButton))
3166
+ }), z = h(() => {
3167
+ var C, p, S, D;
3168
+ if (!(((C = a.value) == null ? void 0 : C.confirmButton) ?? ((p = t.data) == null ? void 0 : p.confirmButton) ?? oe.confirmButton))
3169
3169
  return;
3170
- const m = {
3170
+ const d = {
3171
3171
  ...oe.confirmButton,
3172
- ...(A = a.value) == null ? void 0 : A.confirmButton,
3172
+ ...(S = a.value) == null ? void 0 : S.confirmButton,
3173
3173
  ...(D = t.data) == null ? void 0 : D.confirmButton
3174
3174
  };
3175
3175
  return {
3176
- ...m,
3177
- text: t.confirmText || u.value.confirmText || m.text
3176
+ ...d,
3177
+ text: t.confirmText || u.value.confirmText || d.text
3178
3178
  };
3179
- }), f = p(
3180
- () => o.value.find(({ id: h }) => h === t.identifier)
3181
- ), E = w();
3179
+ }), w = h(
3180
+ () => o.value.find(({ id: m }) => m === t.identifier)
3181
+ ), f = b();
3182
3182
  e({
3183
3183
  close: () => {
3184
- var h, m;
3185
- return (m = (h = E.value) == null ? void 0 : h.close) == null ? void 0 : m.call(h);
3184
+ var m, d;
3185
+ return (d = (m = f.value) == null ? void 0 : m.close) == null ? void 0 : d.call(m);
3186
3186
  }
3187
3187
  });
3188
- function O(h) {
3189
- return "type" in h && (h.type === "resolve" || h.type === "reject");
3188
+ function k(m) {
3189
+ return "type" in m && (m.type === "resolve" || m.type === "reject");
3190
3190
  }
3191
- function I(h, m) {
3192
- return O(m) ? m.type === "resolve" ? r(h, m.response) : i(h, m.response) : r(h, void 0, m.action);
3191
+ function T(m, d) {
3192
+ return k(d) ? d.type === "resolve" ? r(m, d.response) : i(m, d.response) : r(m, void 0, d.action);
3193
3193
  }
3194
- return (h, m) => {
3195
- var L;
3196
- return C(), N(pn, ee({
3194
+ return (m, d) => {
3195
+ var C;
3196
+ return A(), N(gn, ee({
3197
3197
  ref_key: "dialog",
3198
- ref: E
3199
- }, { ...h.$attrs, ...t }, {
3200
- "model-value": ((L = f.value) == null ? void 0 : L.isActive) ?? h.modelValue ?? !1,
3201
- onClose: m[2] || (m[2] = (g) => h.$emit("close", g)),
3202
- onOpen: m[3] || (m[3] = (g) => h.$emit("open", g)),
3203
- "onUpdate:modelValue": m[4] || (m[4] = (g) => x(i)(f.value))
3198
+ ref: f
3199
+ }, { ...m.$attrs, ...t }, {
3200
+ "model-value": ((C = w.value) == null ? void 0 : C.isActive) ?? m.modelValue ?? !1,
3201
+ onClose: d[2] || (d[2] = (p) => m.$emit("close", p)),
3202
+ onOpen: d[3] || (d[3] = (p) => m.$emit("open", p)),
3203
+ "onUpdate:modelValue": d[4] || (d[4] = (p) => O(i)(w.value))
3204
3204
  }), {
3205
3205
  title: q(() => [
3206
- W(h.$slots, "title", {}, () => {
3207
- var g;
3206
+ W(m.$slots, "title", {}, () => {
3207
+ var p;
3208
3208
  return [
3209
3209
  Q(
3210
- Z(h.title || ((g = u.value) == null ? void 0 : g.title)),
3210
+ Z(m.title || ((p = u.value) == null ? void 0 : p.title)),
3211
3211
  1
3212
3212
  /* TEXT */
3213
3213
  )
@@ -3215,14 +3215,14 @@ const bn = { class: "maz-flex maz-items-center maz-gap-2" }, wn = /* @__PURE__ *
3215
3215
  })
3216
3216
  ]),
3217
3217
  default: q(() => [
3218
- W(h.$slots, "default", {
3219
- resolve: (g) => x(r)(f.value, g),
3220
- reject: (g) => x(i)(f.value, g)
3218
+ W(m.$slots, "default", {
3219
+ resolve: (p) => O(r)(w.value, p),
3220
+ reject: (p) => O(i)(w.value, p)
3221
3221
  }, () => {
3222
- var g;
3222
+ var p;
3223
3223
  return [
3224
3224
  Q(
3225
- Z(h.message || ((g = u.value) == null ? void 0 : g.message)),
3225
+ Z(m.message || ((p = u.value) == null ? void 0 : p.message)),
3226
3226
  1
3227
3227
  /* TEXT */
3228
3228
  )
@@ -3230,26 +3230,26 @@ const bn = { class: "maz-flex maz-items-center maz-gap-2" }, wn = /* @__PURE__ *
3230
3230
  })
3231
3231
  ]),
3232
3232
  footer: q(() => [
3233
- W(h.$slots, "footer-button", {
3234
- resolve: (g) => x(r)(f.value, g),
3235
- reject: (g) => x(i)(f.value, g)
3233
+ W(m.$slots, "footer-button", {
3234
+ resolve: (p) => O(r)(w.value, p),
3235
+ reject: (p) => O(i)(w.value, p)
3236
3236
  }, () => [
3237
- V("div", bn, [
3238
- l.value ? (C(!0), U(
3237
+ V("div", wn, [
3238
+ l.value ? (A(!0), U(
3239
3239
  Ye,
3240
3240
  { key: 0 },
3241
- qt(l.value, (g, A) => (C(), N(x(n), ee({
3242
- key: A,
3241
+ Ut(l.value, (p, S) => (A(), N(O(n), ee({
3242
+ key: S,
3243
3243
  ref_for: !0
3244
3244
  }, {
3245
- ...g,
3245
+ ...p,
3246
3246
  type: "button"
3247
3247
  }, {
3248
- onClick: (D) => I(f.value, g)
3248
+ onClick: (D) => T(w.value, p)
3249
3249
  }), {
3250
3250
  default: q(() => [
3251
3251
  Q(
3252
- Z(g.text),
3252
+ Z(p.text),
3253
3253
  1
3254
3254
  /* TEXT */
3255
3255
  )
@@ -3259,20 +3259,20 @@ const bn = { class: "maz-flex maz-items-center maz-gap-2" }, wn = /* @__PURE__ *
3259
3259
  }, 1040, ["onClick"]))),
3260
3260
  128
3261
3261
  /* KEYED_FRAGMENT */
3262
- )) : (C(), U(
3262
+ )) : (A(), U(
3263
3263
  Ye,
3264
3264
  { key: 1 },
3265
3265
  [
3266
- b.value ? (C(), N(
3267
- x(n),
3268
- ee({ key: 0 }, b.value, {
3269
- onClick: m[0] || (m[0] = (g) => x(i)(f.value))
3266
+ y.value ? (A(), N(
3267
+ O(n),
3268
+ ee({ key: 0 }, y.value, {
3269
+ onClick: d[0] || (d[0] = (p) => O(i)(w.value))
3270
3270
  }),
3271
3271
  {
3272
3272
  default: q(() => [
3273
- W(h.$slots, "cancel-text", {}, () => [
3273
+ W(m.$slots, "cancel-text", {}, () => [
3274
3274
  Q(
3275
- Z(b.value.text),
3275
+ Z(y.value.text),
3276
3276
  1
3277
3277
  /* TEXT */
3278
3278
  )
@@ -3284,16 +3284,16 @@ const bn = { class: "maz-flex maz-items-center maz-gap-2" }, wn = /* @__PURE__ *
3284
3284
  16
3285
3285
  /* FULL_PROPS */
3286
3286
  )) : B("v-if", !0),
3287
- c.value ? (C(), N(
3288
- x(n),
3289
- ee({ key: 1 }, c.value, {
3290
- onClick: m[1] || (m[1] = (g) => x(r)(f.value))
3287
+ z.value ? (A(), N(
3288
+ O(n),
3289
+ ee({ key: 1 }, z.value, {
3290
+ onClick: d[1] || (d[1] = (p) => O(r)(w.value))
3291
3291
  }),
3292
3292
  {
3293
3293
  default: q(() => [
3294
- W(h.$slots, "confirm-text", {}, () => [
3294
+ W(m.$slots, "confirm-text", {}, () => [
3295
3295
  Q(
3296
- Z(c.value.text),
3296
+ Z(z.value.text),
3297
3297
  1
3298
3298
  /* TEXT */
3299
3299
  )
@@ -3320,7 +3320,7 @@ const bn = { class: "maz-flex maz-items-center maz-gap-2" }, wn = /* @__PURE__ *
3320
3320
  }), nt = {
3321
3321
  identifier: "main-dialog"
3322
3322
  };
3323
- class En {
3323
+ class zn {
3324
3324
  constructor(e, t = nt) {
3325
3325
  this.app = e, this.globalOptions = t;
3326
3326
  }
@@ -3329,13 +3329,13 @@ class En {
3329
3329
  ...nt,
3330
3330
  ...this.globalOptions,
3331
3331
  ...e
3332
- }, { destroy: n, vNode: o } = _e(wn, {
3332
+ }, { destroy: n, vNode: o } = _e(En, {
3333
3333
  props: t,
3334
3334
  app: this.app
3335
3335
  }), { showDialogAndWaitChoice: i } = xt();
3336
3336
  function r() {
3337
- var l, u, b;
3338
- (u = (l = o.component) == null ? void 0 : l.exposed) == null || u.close(), (b = t.promiseCallback) == null || b.call(t), setTimeout(() => {
3337
+ var l, u, y;
3338
+ (u = (l = o.component) == null ? void 0 : l.exposed) == null || u.close(), (y = t.promiseCallback) == null || y.call(t), setTimeout(() => {
3339
3339
  n();
3340
3340
  }, 700);
3341
3341
  }
@@ -3348,14 +3348,14 @@ class En {
3348
3348
  };
3349
3349
  }
3350
3350
  }
3351
- const fo = {
3351
+ const ho = {
3352
3352
  install(s, e) {
3353
- s.provide("dialog", new En(s, e));
3353
+ s.provide("dialog", new zn(s, e));
3354
3354
  }
3355
- }, zn = { class: "m-toast__message-wrapper" }, Tn = { class: "m-toast__message" }, Ln = { class: "maz-flex maz-items-center maz-gap-2" }, kn = { key: 0 }, Cn = {
3355
+ }, Tn = { class: "m-toast__message-wrapper" }, Ln = { class: "m-toast__message" }, kn = { class: "maz-flex maz-items-center maz-gap-2" }, Cn = { key: 0 }, In = {
3356
3356
  key: 4,
3357
3357
  class: "progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"
3358
- }, In = /* @__PURE__ */ ye({
3358
+ }, An = /* @__PURE__ */ ye({
3359
3359
  __name: "MazToast",
3360
3360
  props: {
3361
3361
  message: { default: void 0 },
@@ -3372,53 +3372,53 @@ const fo = {
3372
3372
  },
3373
3373
  emits: ["close", "click", "open"],
3374
3374
  setup(s, { expose: e, emit: t }) {
3375
- const n = s, o = t, i = H(() => import("./MazBtn-yNCoLFA6.mjs")), r = H(() => import("./x-mark-CnZwVvA7.mjs")), a = H(
3375
+ const n = s, o = t, i = H(() => import("./MazBtn-BB46O5je.mjs")), r = H(() => import("./x-mark-CnZwVvA7.mjs")), a = H(
3376
3376
  () => import("./arrow-top-right-on-square-jPmYJ34F.mjs")
3377
3377
  ), l = H(
3378
3378
  () => import("./exclamation-triangle-Z6d0ygp8.mjs")
3379
3379
  ), u = H(
3380
3380
  () => import("./exclamation-circle-CUk0ZajS.mjs")
3381
- ), b = H(
3381
+ ), y = H(
3382
3382
  () => import("./information-circle-C7e5b_nL.mjs")
3383
- ), c = H(() => import("./check-circle-Bf7AGSQ-.mjs")), f = H(() => import("./link-Br1lfjTR.mjs")), E = w(), O = p(() => {
3383
+ ), z = H(() => import("./check-circle-Bf7AGSQ-.mjs")), w = H(() => import("./link-Br1lfjTR.mjs")), f = b(), k = h(() => {
3384
3384
  if (n.icon)
3385
3385
  switch (n.type) {
3386
3386
  case "danger":
3387
3387
  return l;
3388
3388
  case "info":
3389
- return b;
3389
+ return y;
3390
3390
  case "success":
3391
- return c;
3391
+ return z;
3392
3392
  case "warning":
3393
3393
  return u;
3394
3394
  default:
3395
3395
  return;
3396
3396
  }
3397
- }), I = p(() => n.position.includes("top") ? "top" : "bottom"), h = p(() => n.position.includes("left") ? "left" : n.position.includes("right") ? "right" : "center"), m = p(() => h.value !== "center" ? h.value === "right" ? "m-slide-right" : "m-slide-left" : I.value === "top" ? "m-slide-top" : "m-slide-bottom"), L = w(!1), g = w(!1), A = w(), D = `m-toast-container --${I.value} --${h.value}`, T = `.${D.replaceAll(" ", ".")}`, P = Ls({
3397
+ }), T = h(() => n.position.includes("top") ? "top" : "bottom"), m = h(() => n.position.includes("left") ? "left" : n.position.includes("right") ? "right" : "center"), d = h(() => m.value !== "center" ? m.value === "right" ? "m-slide-right" : "m-slide-left" : T.value === "top" ? "m-slide-top" : "m-slide-bottom"), C = b(!1), p = b(!1), S = b(), D = `m-toast-container --${T.value} --${m.value}`, L = `.${D.replaceAll(" ", ".")}`, P = ks({
3398
3398
  callback: ne,
3399
3399
  timeout: typeof n.timeout == "number" ? n.timeout : 0,
3400
3400
  callbackOffsetTime: 200
3401
3401
  });
3402
3402
  function j() {
3403
- const v = document.querySelector(T);
3403
+ const v = document.querySelector(L);
3404
3404
  if (!v && !v) {
3405
- const S = document.body, M = document.createElement("div");
3406
- M.className = D, S.append(M);
3405
+ const x = document.body, M = document.createElement("div");
3406
+ M.className = D, x.append(M);
3407
3407
  }
3408
3408
  }
3409
3409
  function se() {
3410
- const v = document.querySelector(T);
3410
+ const v = document.querySelector(L);
3411
3411
  return !n.queue && n.maxToasts === !1 ? !1 : typeof n.maxToasts == "number" && v ? n.maxToasts <= v.childElementCount : v && v.childElementCount > 0;
3412
3412
  }
3413
3413
  function G() {
3414
3414
  if (se()) {
3415
- A.value = setTimeout(G, 250);
3415
+ S.value = setTimeout(G, 250);
3416
3416
  return;
3417
3417
  }
3418
- const v = document.querySelector(T);
3419
- E.value && v && v.prepend(E.value), g.value = !0, typeof n.timeout == "number" && n.timeout > 0 && P.start();
3418
+ const v = document.querySelector(L);
3419
+ f.value && v && v.prepend(f.value), p.value = !0, typeof n.timeout == "number" && n.timeout > 0 && P.start();
3420
3420
  }
3421
- const ue = w("100%");
3421
+ const ce = b("100%");
3422
3422
  function Me() {
3423
3423
  switch (n.type) {
3424
3424
  case "danger":
@@ -3437,41 +3437,41 @@ const fo = {
3437
3437
  P.remainingTime,
3438
3438
  (v) => {
3439
3439
  if (typeof n.timeout == "number") {
3440
- const S = 100 * v / n.timeout;
3441
- ue.value = `${S}%`;
3440
+ const x = 100 * v / n.timeout;
3441
+ ce.value = `${x}%`;
3442
3442
  }
3443
3443
  }
3444
3444
  );
3445
- function ce(v) {
3445
+ function de(v) {
3446
3446
  o("click", v), n.persistent || ne();
3447
3447
  }
3448
- async function de(v, S) {
3448
+ async function me(v, x) {
3449
3449
  var M;
3450
- L.value = !0, await v(), L.value = !1, (M = n.action) != null && M.closeToast && ce(S);
3450
+ C.value = !0, await v(), C.value = !1, (M = n.action) != null && M.closeToast && de(x);
3451
3451
  }
3452
- function me(v) {
3452
+ function fe(v) {
3453
3453
  n.noPauseOnHover || (v ? P.pause() : P.resume());
3454
3454
  }
3455
3455
  function $e() {
3456
- P.stop(), A.value && clearTimeout(A.value);
3456
+ P.stop(), S.value && clearTimeout(S.value);
3457
3457
  }
3458
3458
  function ne() {
3459
- $e(), g.value = !1;
3459
+ $e(), p.value = !1;
3460
3460
  }
3461
3461
  e({ closeToast: ne });
3462
3462
  function Le() {
3463
3463
  o("open");
3464
3464
  }
3465
3465
  function ke() {
3466
- var S;
3467
- o("close"), (S = E.value) == null || S.remove();
3468
- const v = document.querySelector(T);
3466
+ var x;
3467
+ o("close"), (x = f.value) == null || x.remove();
3468
+ const v = document.querySelector(L);
3469
3469
  v && !(v != null && v.hasChildNodes()) && v.remove();
3470
3470
  }
3471
- return le(() => {
3471
+ return ue(() => {
3472
3472
  j(), G();
3473
- }), (v, S) => (C(), N(ut, {
3474
- name: m.value,
3473
+ }), (v, x) => (A(), N(ut, {
3474
+ name: d.value,
3475
3475
  onAfterLeave: ke,
3476
3476
  onAfterEnter: Le,
3477
3477
  persisted: ""
@@ -3481,43 +3481,43 @@ const fo = {
3481
3481
  "button",
3482
3482
  {
3483
3483
  ref_key: "Toaster",
3484
- ref: E,
3485
- class: ge(["m-toast", [
3484
+ ref: f,
3485
+ class: le(["m-toast", [
3486
3486
  `--${v.type}`,
3487
- `--${I.value}`,
3488
- `--${h.value}`,
3487
+ `--${T.value}`,
3488
+ `--${m.value}`,
3489
3489
  { "maz-pb-1": typeof v.timeout == "number" && v.timeout > 0, "--persistent": v.persistent }
3490
3490
  ]]),
3491
3491
  role: "alert",
3492
- onMouseover: S[2] || (S[2] = (M) => me(!0)),
3493
- onMouseleave: S[3] || (S[3] = (M) => me(!1)),
3494
- onClick: S[4] || (S[4] = Y((M) => {
3495
- var fe;
3496
- return v.link && !((fe = v.link) != null && fe.closeToast) ? void 0 : ce(M);
3492
+ onMouseover: x[2] || (x[2] = (M) => fe(!0)),
3493
+ onMouseleave: x[3] || (x[3] = (M) => fe(!1)),
3494
+ onClick: x[4] || (x[4] = Y((M) => {
3495
+ var he;
3496
+ return v.link && !((he = v.link) != null && he.closeToast) ? void 0 : de(M);
3497
3497
  }, ["stop"]))
3498
3498
  },
3499
3499
  [
3500
- O.value ? (C(), N(Ut(O.value), {
3500
+ k.value ? (A(), N(Wt(k.value), {
3501
3501
  key: 0,
3502
3502
  class: "maz-text-2xl"
3503
3503
  })) : B("v-if", !0),
3504
- V("div", zn, [
3504
+ V("div", Tn, [
3505
3505
  V(
3506
3506
  "p",
3507
- Tn,
3507
+ Ln,
3508
3508
  Z(v.message),
3509
3509
  1
3510
3510
  /* TEXT */
3511
3511
  )
3512
3512
  ]),
3513
- v.action ? (C(), N(x(i), {
3513
+ v.action ? (A(), N(O(i), {
3514
3514
  key: 1,
3515
3515
  "data-test": "action-btn",
3516
3516
  color: v.type,
3517
3517
  pastel: "",
3518
- loading: L.value,
3518
+ loading: C.value,
3519
3519
  size: "sm",
3520
- onClick: S[0] || (S[0] = Y((M) => v.action ? de(v.action.func, M) : void 0, ["stop"]))
3520
+ onClick: x[0] || (x[0] = Y((M) => v.action ? me(v.action.func, M) : void 0, ["stop"]))
3521
3521
  }, {
3522
3522
  default: q(() => [
3523
3523
  Q(
@@ -3529,7 +3529,7 @@ const fo = {
3529
3529
  _: 1
3530
3530
  /* STABLE */
3531
3531
  }, 8, ["color", "loading"])) : B("v-if", !0),
3532
- v.link ? (C(), N(x(i), {
3532
+ v.link ? (A(), N(O(i), {
3533
3533
  key: 2,
3534
3534
  "data-test": "link-btn",
3535
3535
  color: v.type,
@@ -3541,18 +3541,18 @@ const fo = {
3541
3541
  default: q(() => {
3542
3542
  var M;
3543
3543
  return [
3544
- V("div", Ln, [
3545
- v.link.text ? (C(), U(
3544
+ V("div", kn, [
3545
+ v.link.text ? (A(), U(
3546
3546
  "span",
3547
- kn,
3547
+ Cn,
3548
3548
  Z(v.link.text),
3549
3549
  1
3550
3550
  /* TEXT */
3551
3551
  )) : B("v-if", !0),
3552
- ((M = v.link) == null ? void 0 : M.target) === "_blank" ? (C(), N(x(a), {
3552
+ ((M = v.link) == null ? void 0 : M.target) === "_blank" ? (A(), N(O(a), {
3553
3553
  key: 1,
3554
3554
  class: "maz-text-xl"
3555
- })) : (C(), N(x(f), {
3555
+ })) : (A(), N(O(w), {
3556
3556
  key: 2,
3557
3557
  class: "maz-text-xl"
3558
3558
  }))
@@ -3562,21 +3562,21 @@ const fo = {
3562
3562
  _: 1
3563
3563
  /* STABLE */
3564
3564
  }, 8, ["color", "href", "target"])) : B("v-if", !0),
3565
- v.persistent ? B("v-if", !0) : (C(), U("button", {
3565
+ v.persistent ? B("v-if", !0) : (A(), U("button", {
3566
3566
  key: 3,
3567
3567
  class: "--close",
3568
- onClick: S[1] || (S[1] = Y((M) => ce(M), ["stop"]))
3568
+ onClick: x[1] || (x[1] = Y((M) => de(M), ["stop"]))
3569
3569
  }, [
3570
- J(x(r), { class: "--icon maz-text-xl" })
3570
+ J(O(r), { class: "--icon maz-text-xl" })
3571
3571
  ])),
3572
- typeof v.timeout == "number" && v.timeout > 0 ? (C(), U("div", Cn, [
3572
+ typeof v.timeout == "number" && v.timeout > 0 ? (A(), U("div", In, [
3573
3573
  V(
3574
3574
  "div",
3575
3575
  {
3576
- style: Wt({
3577
- width: ue.value
3576
+ style: Rt({
3577
+ width: ce.value
3578
3578
  }),
3579
- class: ge(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear", Me()])
3579
+ class: le(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear", Me()])
3580
3580
  },
3581
3581
  null,
3582
3582
  6
@@ -3587,30 +3587,30 @@ const fo = {
3587
3587
  34
3588
3588
  /* CLASS, NEED_HYDRATION */
3589
3589
  ), [
3590
- [lt, g.value]
3590
+ [lt, p.value]
3591
3591
  ])
3592
3592
  ]),
3593
3593
  _: 1
3594
3594
  /* STABLE */
3595
3595
  }, 8, ["name"]));
3596
3596
  }
3597
- }), An = /* @__PURE__ */ Pe(In, [["__scopeId", "data-v-eaf59fd1"]]), Sn = {
3597
+ }), Sn = /* @__PURE__ */ Pe(An, [["__scopeId", "data-v-eaf59fd1"]]), xn = {
3598
3598
  position: "bottom-right",
3599
3599
  timeout: 1e4,
3600
3600
  persistent: !1,
3601
3601
  icon: !0
3602
3602
  };
3603
- class xn {
3603
+ class On {
3604
3604
  constructor(e, t) {
3605
3605
  this.app = e, this.globalOptions = t;
3606
3606
  }
3607
3607
  show(e, t) {
3608
3608
  const n = {
3609
- ...Sn,
3609
+ ...xn,
3610
3610
  ...this.globalOptions,
3611
3611
  ...t,
3612
3612
  message: e
3613
- }, { destroy: o, vNode: i } = _e(An, {
3613
+ }, { destroy: o, vNode: i } = _e(Sn, {
3614
3614
  props: n,
3615
3615
  app: this.app
3616
3616
  });
@@ -3644,113 +3644,113 @@ class xn {
3644
3644
  return this.show(e, this.getLocalOptions("warning", t));
3645
3645
  }
3646
3646
  }
3647
- function On(s, e) {
3648
- return new xn(s, e);
3647
+ function Dn(s, e) {
3648
+ return new On(s, e);
3649
3649
  }
3650
- const ho = {
3650
+ const vo = {
3651
3651
  install(s, e) {
3652
- s.provide("toast", On(s, e));
3652
+ s.provide("toast", Dn(s, e));
3653
3653
  }
3654
3654
  }, re = "";
3655
- function Dn(s) {
3655
+ function Pn(s) {
3656
3656
  return s.filter((e, t, n) => t === n.indexOf(e));
3657
3657
  }
3658
- function Pn(s) {
3658
+ function Mn(s) {
3659
3659
  return (e = re) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e);
3660
3660
  }
3661
- const Mn = (s) => s.length > 0;
3662
- function $n(s) {
3663
- return (e = re) => Dn([...s, e]);
3664
- }
3661
+ const $n = (s) => s.length > 0;
3665
3662
  function Vn(s) {
3663
+ return (e = re) => Pn([...s, e]);
3664
+ }
3665
+ function Hn(s) {
3666
3666
  return (e = re) => s.filter((t) => t !== e);
3667
3667
  }
3668
- class Hn {
3668
+ class Bn {
3669
3669
  constructor() {
3670
- d(this, "_loaders", w([]));
3670
+ c(this, "_loaders", b([]));
3671
3671
  }
3672
3672
  get loaders() {
3673
- return p(() => this._loaders.value);
3673
+ return h(() => this._loaders.value);
3674
3674
  }
3675
3675
  stop(e = re) {
3676
- this._loaders.value = Vn(this._loaders.value)(e);
3676
+ this._loaders.value = Hn(this._loaders.value)(e);
3677
3677
  }
3678
3678
  start(e = re) {
3679
- return this._loaders.value = $n(this._loaders.value)(e), () => this.stop(e);
3679
+ return this._loaders.value = Vn(this._loaders.value)(e), () => this.stop(e);
3680
3680
  }
3681
3681
  get anyLoading() {
3682
- return p(() => Mn(this._loaders.value));
3682
+ return h(() => $n(this._loaders.value));
3683
3683
  }
3684
3684
  isLoading(e = re) {
3685
- return p(() => Pn(this._loaders.value)(e)).value;
3685
+ return h(() => Mn(this._loaders.value)(e)).value;
3686
3686
  }
3687
3687
  }
3688
- const Bn = new Hn(), vo = {
3688
+ const Nn = new Bn(), po = {
3689
3689
  install: (s) => {
3690
- s.provide("wait", Bn);
3690
+ s.provide("wait", Nn);
3691
3691
  }
3692
3692
  };
3693
3693
  export {
3694
- mo as $,
3695
- Ps as A,
3696
- Us as B,
3697
- qs as C,
3698
- Rs as D,
3699
- ao as E,
3700
- Zs as F,
3701
- Ys as G,
3702
- uo as H,
3703
- Gs as I,
3704
- tn as J,
3705
- nn as K,
3706
- rn as L,
3694
+ fo as $,
3695
+ Ms as A,
3696
+ Ws as B,
3697
+ Us as C,
3698
+ _s as D,
3699
+ lo as E,
3700
+ Xs as F,
3701
+ Zs as G,
3702
+ co as H,
3703
+ Qs as I,
3704
+ sn as J,
3705
+ on as K,
3706
+ an as L,
3707
3707
  ct as M,
3708
- no as N,
3709
- oo as O,
3710
- ms as P,
3708
+ oo as N,
3709
+ io as O,
3710
+ fs as P,
3711
3711
  F as Q,
3712
3712
  _e as R,
3713
3713
  Ge as S,
3714
- io as T,
3715
- $s as U,
3716
- Es as V,
3717
- ro as W,
3718
- Ms as X,
3719
- ks as Y,
3720
- ln as Z,
3714
+ ro as T,
3715
+ Vs as U,
3716
+ zs as V,
3717
+ ao as W,
3718
+ $s as X,
3719
+ Cs as Y,
3720
+ un as Z,
3721
3721
  Pe as _,
3722
- qn as a,
3723
- co as a0,
3724
- En as a1,
3725
- fo as a2,
3726
- ho as a3,
3727
- xn as a4,
3728
- Bn as a5,
3729
- vo as a6,
3730
- Hn as a7,
3731
- Un as b,
3732
- Wn as c,
3733
- Rn as d,
3734
- _n as e,
3735
- Kn as f,
3736
- hs as g,
3737
- Yn as h,
3722
+ Un as a,
3723
+ mo as a0,
3724
+ zn as a1,
3725
+ ho as a2,
3726
+ vo as a3,
3727
+ On as a4,
3728
+ Nn as a5,
3729
+ po as a6,
3730
+ Bn as a7,
3731
+ Wn as b,
3732
+ Rn as c,
3733
+ _n as d,
3734
+ Kn as e,
3735
+ Yn as f,
3736
+ vs as g,
3737
+ Zn as h,
3738
3738
  De as i,
3739
- Zn as j,
3740
- Xn as k,
3741
- vs as l,
3742
- Gn as m,
3743
- Qn as n,
3744
- Ls as o,
3745
- Jn as p,
3746
- eo as q,
3747
- to as r,
3748
- _t as s,
3749
- lo as t,
3750
- jn as u,
3751
- Is as v,
3752
- As as w,
3753
- Os as x,
3754
- Ds as y,
3755
- so as z
3739
+ Xn as j,
3740
+ Gn as k,
3741
+ ps as l,
3742
+ Qn as m,
3743
+ Jn as n,
3744
+ ks as o,
3745
+ eo as p,
3746
+ to as q,
3747
+ so as r,
3748
+ Kt as s,
3749
+ uo as t,
3750
+ qn as u,
3751
+ As as v,
3752
+ Ss as w,
3753
+ Ds as x,
3754
+ Ps as y,
3755
+ no as z
3756
3756
  };