maz-ui 3.44.0 → 3.44.2

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 (124) hide show
  1. package/components/MazAccordion.mjs +25 -25
  2. package/components/MazAvatar.mjs +1 -1
  3. package/components/MazBottomSheet.mjs +1 -1
  4. package/components/MazBtn.mjs +1 -1
  5. package/components/MazCard.mjs +1 -1
  6. package/components/MazCardSpotlight.mjs +9 -9
  7. package/components/MazCarousel.mjs +1 -1
  8. package/components/MazDialog.mjs +1 -1
  9. package/components/MazDialogPromise.mjs +1 -1
  10. package/components/MazDrawer.mjs +1 -1
  11. package/components/MazDropdown.mjs +1 -1
  12. package/components/MazDropzone.mjs +1 -1
  13. package/components/MazGallery.mjs +1 -1
  14. package/components/MazInput.mjs +1 -1
  15. package/components/MazInputNumber.mjs +1 -1
  16. package/components/MazInputPrice.mjs +1 -1
  17. package/components/MazInputTags.mjs +1 -1
  18. package/components/MazLazyImg.mjs +1 -1
  19. package/components/MazLink.mjs +22 -22
  20. package/components/MazPagination.mjs +1 -1
  21. package/components/MazPhoneNumberInput.mjs +1 -1
  22. package/components/MazPicker.mjs +1 -1
  23. package/components/MazReadingProgressBar.mjs +1 -2
  24. package/components/MazSelect.mjs +1 -1
  25. package/components/MazTable.mjs +1 -1
  26. package/components/MazTextarea.mjs +1 -1
  27. package/components/assets/MazPhoneNumberInput.css +1 -1
  28. package/components/assets/MazSelect.css +1 -1
  29. package/components/assets/MazTable.css +1 -1
  30. package/components/assets/MazTabsBar.css +1 -1
  31. package/components/chunks/{MazAvatar-BU1nJFcV.mjs → MazAvatar-CoT6WIl0.mjs} +1 -1
  32. package/components/chunks/{MazBottomSheet-DUOIusEi.mjs → MazBottomSheet-DpI8wFgc.mjs} +1 -1
  33. package/components/chunks/MazBtn-BIVlttu0.mjs +150 -0
  34. package/components/chunks/MazBtn-BQ7aH6Qe.mjs +158 -0
  35. package/components/chunks/{MazBtn-5BSKOcqG.mjs → MazBtn-BXDpaXn1.mjs} +44 -44
  36. package/components/chunks/MazBtn-C7RDTnn-.mjs +150 -0
  37. package/components/chunks/{MazBtn-BY8WCtM7.mjs → MazBtn-CPkNymJj.mjs} +44 -44
  38. package/components/chunks/{MazBtn-C5G78zLg.mjs → MazBtn-CQSo596y.mjs} +44 -44
  39. package/components/chunks/MazBtn-D2tIsob2.mjs +150 -0
  40. package/components/chunks/MazBtn-DRTBFUgW.mjs +150 -0
  41. package/components/chunks/{MazBtn-f1mBXJeU.mjs → MazBtn-Dfz-5FeI.mjs} +23 -26
  42. package/components/chunks/{MazBtn-CeVwyYR5.mjs → MazBtn-Vas62hFD.mjs} +44 -44
  43. package/components/chunks/MazBtn-gE-drZkE.mjs +150 -0
  44. package/components/chunks/{MazCard-BWxV_Z-i.mjs → MazCard-BBwohtCJ.mjs} +1 -1
  45. package/components/chunks/{MazCarousel-D5EmW7Sa.mjs → MazCarousel-DJ_nQfy4.mjs} +1 -1
  46. package/components/chunks/{MazCheckbox-D3PXkt75.mjs → MazCheckbox-BK1MX0uq.mjs} +1 -1
  47. package/components/chunks/{MazCheckbox-BWiMbecz.mjs → MazCheckbox-D3Fm-BFu.mjs} +1 -1
  48. package/components/chunks/{MazDialog-CLWKCphI.mjs → MazDialog-DXaeCp-b.mjs} +1 -1
  49. package/components/chunks/{MazDialogPromise-DVOJwdVp.mjs → MazDialogPromise-Bgxjg9ss.mjs} +2 -2
  50. package/components/chunks/{MazDropzone-Dm2IirHm.mjs → MazDropzone-D0W0dlgY.mjs} +2 -3
  51. package/components/chunks/{MazGallery-Bn9p1gNb.mjs → MazGallery-CBE4wD7D.mjs} +3 -4
  52. package/components/chunks/{MazGallery-BlfPe8WG.mjs → MazGallery-Din0Z37d.mjs} +4 -5
  53. package/components/chunks/{MazIcon-D3umgnku.mjs → MazIcon-CTjWIkTp.mjs} +1 -1
  54. package/components/chunks/{MazIcon-B8A0hQAH.mjs → MazIcon-CUOwXGOK.mjs} +1 -1
  55. package/components/chunks/{MazInput-BpsE-mdg.mjs → MazInput-D177bUMh.mjs} +44 -44
  56. package/components/chunks/{MazInputNumber-DGBYbDSX.mjs → MazInputNumber-CstQGS8u.mjs} +121 -121
  57. package/components/chunks/{MazInputPrice-j2BNMeFp.mjs → MazInputPrice-Bp7ie9jm.mjs} +48 -48
  58. package/components/chunks/{MazInputTags-CJofVaj5.mjs → MazInputTags-C7nZucYu.mjs} +63 -63
  59. package/components/chunks/{MazLazyImg-Dboc6Xfz.mjs → MazLazyImg-DADMg49z.mjs} +3 -4
  60. package/components/chunks/{MazLazyImg-BFG6FIJZ.mjs → MazLazyImg-xLPMdfif.mjs} +4 -5
  61. package/components/chunks/{MazPagination-C6ZehQSZ.mjs → MazPagination-NbHR41CQ.mjs} +44 -44
  62. package/components/chunks/{MazPhoneNumberInput-DpWoNQfx.mjs → MazPhoneNumberInput-BGo-vcnD.mjs} +61 -61
  63. package/components/chunks/{MazPicker-ia2BEmm5.mjs → MazPicker-CJBezF2t.mjs} +173 -198
  64. package/components/chunks/{MazPickerMonthSwitcher-CKtfZ_m-.mjs → MazPickerMonthSwitcher-DZPHWTJt.mjs} +1 -1
  65. package/components/chunks/{MazPickerShortcuts-Cc9VoqBw.mjs → MazPickerShortcuts-CBEmYjPG.mjs} +1 -1
  66. package/components/chunks/{MazPickerYearSwitcher-0b5Wrem9.mjs → MazPickerYearSwitcher-Ynp2qf3F.mjs} +1 -1
  67. package/components/chunks/{MazSelect-COJoKXbV.mjs → MazSelect-D4TuCHwj.mjs} +29 -29
  68. package/components/chunks/{MazSpinner-BaAMq7LI.mjs → MazSpinner--h9DYpGx.mjs} +1 -1
  69. package/components/chunks/{MazSpinner-BZOjTZBN.mjs → MazSpinner-6pxbKImG.mjs} +1 -1
  70. package/components/chunks/{MazSpinner-RvDGcBng.mjs → MazSpinner-BVd7-OTu.mjs} +1 -1
  71. package/components/chunks/MazSpinner-C6T_enKo.mjs +37 -0
  72. package/components/chunks/{MazSpinner-DkXequnp.mjs → MazSpinner-C8x7LsHq.mjs} +1 -1
  73. package/components/chunks/{MazSpinner-V-bFi71W.mjs → MazSpinner-CLz4ccD0.mjs} +1 -1
  74. package/components/chunks/MazSpinner-CmJlBqgH.mjs +37 -0
  75. package/components/chunks/MazSpinner-D4gpZ7vL.mjs +37 -0
  76. package/components/chunks/{MazSpinner-CNIlbDfg.mjs → MazSpinner-D8k_MENa.mjs} +1 -1
  77. package/components/chunks/MazSpinner-DGxqly6h.mjs +37 -0
  78. package/components/chunks/{MazSpinner-9Jue6cel.mjs → MazSpinner-DVkxyBoy.mjs} +1 -1
  79. package/components/chunks/{MazSpinner-BGPOws6a.mjs → MazSpinner-DjR5FVqo.mjs} +1 -1
  80. package/components/chunks/MazSpinner-DnVHWljy.mjs +37 -0
  81. package/components/chunks/{MazSpinner-C41VyUup.mjs → MazSpinner-DneKNmrs.mjs} +1 -1
  82. package/components/chunks/MazSpinner-Q02SOFkL.mjs +37 -0
  83. package/components/chunks/{MazSpinner-EA5ejB8F.mjs → MazSpinner-T1t1bpbm.mjs} +1 -1
  84. package/components/chunks/{MazSpinner-BWYdqSMP.mjs → MazSpinner-dFnsq52G.mjs} +1 -1
  85. package/components/chunks/MazSpinner-iA4Rz7K5.mjs +37 -0
  86. package/components/chunks/{MazSpinner-DHQH6Bhz.mjs → MazSpinner-rAqBu92m.mjs} +1 -1
  87. package/components/chunks/MazSpinner-va5G9enA.mjs +37 -0
  88. package/components/chunks/{MazTable-DRUj_PZp.mjs → MazTable-BPMuTZbS.mjs} +305 -305
  89. package/components/chunks/{MazTransitionExpand-B08cSrmL.mjs → MazTransitionExpand-CYyEf_hd.mjs} +1 -1
  90. package/css/main.css +2 -1
  91. package/modules/assets/index.css +1 -1
  92. package/modules/chunks/MazBtn-1g7UvzQ_.mjs +150 -0
  93. package/modules/chunks/{MazBtn-BbCGGxkK.cjs → MazBtn-BKk3IsoH.cjs} +2 -2
  94. package/modules/chunks/{MazIcon-BDSXZYZ8.cjs → MazIcon-BEnQqDG6.cjs} +1 -1
  95. package/modules/chunks/{MazIcon-C2ch3jUS.mjs → MazIcon-BdDO3aVl.mjs} +1 -1
  96. package/modules/chunks/{MazSpinner-C9_xSbZZ.mjs → MazSpinner--BVvGFIO.mjs} +1 -1
  97. package/modules/chunks/{MazSpinner-BiyFRA4w.cjs → MazSpinner-PMlxvkWb.cjs} +1 -1
  98. package/modules/chunks/index-D5F2dSFa.cjs +124 -0
  99. package/modules/chunks/{index-Cwbjspv3.mjs → index-D7R1dvsf.mjs} +347 -347
  100. package/modules/index.cjs +1 -1
  101. package/modules/index.mjs +1 -1
  102. package/nuxt/index.json +3 -3
  103. package/nuxt/index.mjs +1 -1
  104. package/nuxt/types.d.mts +6 -12
  105. package/nuxt/types.d.ts +6 -12
  106. package/package.json +10 -10
  107. package/types/modules/composables/use-timer.d.ts +6 -1
  108. package/types/modules/plugins/toaster/MazToast.vue.d.ts +2 -2
  109. package/components/chunks/MazBtn-B1-sTc7F.mjs +0 -155
  110. package/components/chunks/MazBtn-ColLVUca.mjs +0 -150
  111. package/components/chunks/MazBtn-DJhQqzja.mjs +0 -150
  112. package/components/chunks/MazBtn-DuY28-0U.mjs +0 -150
  113. package/components/chunks/MazBtn-h3WmmaEO.mjs +0 -150
  114. package/components/chunks/MazBtn-zyRLUViT.mjs +0 -150
  115. package/components/chunks/MazSpinner-Bad2n-0k.mjs +0 -37
  116. package/components/chunks/MazSpinner-C6StE-Mb.mjs +0 -37
  117. package/components/chunks/MazSpinner-Cz2DHV6g.mjs +0 -37
  118. package/components/chunks/MazSpinner-D4CdHpP2.mjs +0 -37
  119. package/components/chunks/MazSpinner-DRj2VpGA.mjs +0 -37
  120. package/components/chunks/MazSpinner-aPFlrc5E.mjs +0 -37
  121. package/components/chunks/MazSpinner-nOD-7_sU.mjs +0 -37
  122. package/components/chunks/MazSpinner-yZGK-AQe.mjs +0 -37
  123. package/modules/chunks/MazBtn-UBHTKqaN.mjs +0 -150
  124. package/modules/chunks/index-tnjajVkX.cjs +0 -124
@@ -1,7 +1,7 @@
1
1
  import '../assets/index.css';var Ge = Object.defineProperty;
2
2
  var Je = (s, e, t) => e in s ? Ge(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
- var a = (s, e, t) => (Je(s, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { inject as et, createVNode as V, render as ie, nextTick as tt, defineComponent as De, defineAsyncComponent as I, ref as f, computed as v, watch as ke, onMounted as ue, onBeforeUnmount as Me, openBlock as E, createElementBlock as B, withModifiers as A, withKeys as st, withDirectives as Pe, unref as x, vShow as $e, createCommentVNode as S, createElementVNode as O, normalizeClass as Ee, createBlock as N, Transition as nt, withCtx as ye, resolveDynamicComponent as it, toDisplayString as be, createTextVNode as ot, normalizeStyle as rt, getCurrentInstance as at, onUnmounted as lt } from "vue";
3
+ var a = (s, e, t) => Je(s, typeof e != "symbol" ? e + "" : e, t);
4
+ import { inject as et, createVNode as U, render as re, nextTick as tt, defineComponent as De, defineAsyncComponent as k, ref as h, computed as f, watch as ke, onMounted as de, onBeforeUnmount as Me, openBlock as z, createElementBlock as W, withModifiers as H, withKeys as st, withDirectives as Pe, unref as O, vShow as $e, createCommentVNode as x, createElementVNode as D, normalizeClass as Ee, createBlock as q, Transition as nt, withCtx as ye, resolveDynamicComponent as it, toDisplayString as be, createTextVNode as ot, normalizeStyle as rt, getCurrentInstance as at, onUnmounted as lt } from "vue";
5
5
  function Se(s, e) {
6
6
  const t = et(s, e);
7
7
  if (!t)
@@ -22,16 +22,16 @@ function ct(s) {
22
22
  function _e(s, e) {
23
23
  let t = e == null ? void 0 : e.element;
24
24
  function n() {
25
- t && ie(null, t);
25
+ t && re(null, t);
26
26
  }
27
- const i = V(
27
+ const i = U(
28
28
  s,
29
29
  { ...e == null ? void 0 : e.props, ...e != null && e.addDestroyInProps ? { destroy: n } : {} },
30
30
  e == null ? void 0 : e.children
31
31
  );
32
- return e != null && e.app ? (i.appContext = e.app._context, t ? ie(i, t) : typeof document < "u" && (t = document.createElement("div"), ie(i, t))) : (t = t ?? document.body, ie(i, t)), { vNode: i, destroy: n, el: t };
32
+ return e != null && e.app ? (i.appContext = e.app._context, t ? re(i, t) : typeof document < "u" && (t = document.createElement("div"), re(i, t))) : (t = t ?? document.body, re(i, t)), { vNode: i, destroy: n, el: t };
33
33
  }
34
- function L() {
34
+ function E() {
35
35
  return typeof document < "u";
36
36
  }
37
37
  class ut {
@@ -82,13 +82,13 @@ class ut {
82
82
  this.callback = e, this.options = {
83
83
  ...this.defaultOptions,
84
84
  ...t
85
- }, L() && this.start();
85
+ }, E() && this.start();
86
86
  }
87
87
  get element() {
88
88
  return this.options.element ?? document.body;
89
89
  }
90
90
  start() {
91
- if (!L()) {
91
+ if (!E()) {
92
92
  console.warn("[IdleTimeout](start) you should run this method on client side");
93
93
  return;
94
94
  }
@@ -107,7 +107,7 @@ class ut {
107
107
  this.isDestroy = !1, this.isIdle = !1, this.remainingTime = 0, this.resetTimeout(), this.callback({ isIdle: this.isIdle });
108
108
  }
109
109
  destroy() {
110
- if (!L()) {
110
+ if (!E()) {
111
111
  console.warn("[IdleTimeout](destroy) you should run this method on client side");
112
112
  return;
113
113
  }
@@ -156,10 +156,10 @@ class mt {
156
156
  this.callback = e, this.options = {
157
157
  ...this.defaultOptions,
158
158
  ...t
159
- }, this.eventHandlerFunction = this.eventHandler.bind(this), L() && this.start();
159
+ }, this.eventHandlerFunction = this.eventHandler.bind(this), E() && this.start();
160
160
  }
161
161
  start() {
162
- if (!L()) {
162
+ if (!E()) {
163
163
  console.warn("[UserVisibility](start) you should run this method on client side");
164
164
  return;
165
165
  }
@@ -301,8 +301,8 @@ class ht {
301
301
  this.runCallbacks(e), this.emitValuesChanged();
302
302
  }
303
303
  runCallbacks(e) {
304
- var t, n, i, o, l, c, m, g;
305
- typeof this.xDiff != "number" || typeof this.yDiff != "number" || Math.abs(this.xDiff) < this.options.threshold && Math.abs(this.yDiff) < this.options.threshold || (Math.abs(this.xDiff) > Math.abs(this.yDiff) ? this.xDiff > 0 ? (n = (t = this.options).onLeft) == null || n.call(t, e) : (o = (i = this.options).onRight) == null || o.call(i, e) : this.yDiff > 0 ? (c = (l = this.options).onUp) == null || c.call(l, e) : (g = (m = this.options).onDown) == null || g.call(m, e), this.resetValues());
304
+ var t, n, i, o, r, c, m, v;
305
+ typeof this.xDiff != "number" || typeof this.yDiff != "number" || Math.abs(this.xDiff) < this.options.threshold && Math.abs(this.yDiff) < this.options.threshold || (Math.abs(this.xDiff) > Math.abs(this.yDiff) ? this.xDiff > 0 ? (n = (t = this.options).onLeft) == null || n.call(t, e) : (o = (i = this.options).onRight) == null || o.call(i, e) : this.yDiff > 0 ? (c = (r = this.options).onUp) == null || c.call(r, e) : (v = (m = this.options).onDown) == null || v.call(m, e), this.resetValues());
306
306
  }
307
307
  resetValues() {
308
308
  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();
@@ -381,7 +381,7 @@ function xe(s, e) {
381
381
  i = i.normalize(o);
382
382
  return i;
383
383
  }
384
- const ce = "__maz-click-outside__";
384
+ const me = "__maz-click-outside__";
385
385
  function Fe() {
386
386
  return document.ontouchstart === null ? "touchstart" : "click";
387
387
  }
@@ -391,12 +391,12 @@ async function Ne(s, e) {
391
391
  const t = e.instance, n = e.value, i = typeof n == "function";
392
392
  if (!i)
393
393
  throw new Error("[maz-ui](vClickOutside) the callback should be a function");
394
- await tt(), s[ce] = (l) => {
395
- if ((!s || l.target && !s.contains(l.target)) && n && i)
396
- return n.call(t, l);
394
+ await tt(), s[me] = (r) => {
395
+ if ((!s || r.target && !s.contains(r.target)) && n && i)
396
+ return n.call(t, r);
397
397
  };
398
398
  const o = Fe();
399
- document.addEventListener(o, s[ce], { passive: !0 });
399
+ document.addEventListener(o, s[me], { passive: !0 });
400
400
  } catch (t) {
401
401
  console.error("[maz-ui](vClickOutside)", t);
402
402
  }
@@ -404,7 +404,7 @@ async function Ne(s, e) {
404
404
  function Ve(s) {
405
405
  try {
406
406
  const e = Fe();
407
- document.removeEventListener(e, s[ce], !1), delete s[ce];
407
+ document.removeEventListener(e, s[me], !1), delete s[me];
408
408
  } catch (e) {
409
409
  console.error("[maz-ui](vClickOutside)", e);
410
410
  }
@@ -428,14 +428,14 @@ const pt = {
428
428
  }
429
429
  };
430
430
  function Be(s, e, t) {
431
- var l;
431
+ var r;
432
432
  s.stopPropagation();
433
433
  const n = typeof t.value == "function" ? t.value : t.value.handler, i = typeof t.value == "object" ? t.value.exclude : void 0;
434
434
  let o = !1;
435
435
  if (i && i.length > 0) {
436
436
  for (const c of i)
437
437
  if (!o && s.target instanceof HTMLElement) {
438
- const m = (l = document.querySelector(c)) == null ? void 0 : l.getAttribute("id");
438
+ const m = (r = document.querySelector(c)) == null ? void 0 : r.getAttribute("id");
439
439
  o = s.target.getAttribute("id") === m;
440
440
  }
441
441
  }
@@ -498,17 +498,17 @@ class Ue {
498
498
  e.removeAttribute("data-tooltip"), e.classList.remove("m-tooltip"), e.classList.remove("m-tooltip--top"), e.classList.remove("m-tooltip--bottom"), e.classList.remove("m-tooltip--left"), e.classList.remove("m-tooltip--right"), e.classList.remove("m-tooltip--open"), e.classList.remove(`m-tooltip--${this.getColor(t)}`);
499
499
  }
500
500
  }
501
- let oe;
501
+ let ae;
502
502
  const ks = {
503
503
  beforeMount(s, e) {
504
504
  const t = typeof e.value == "object" ? e.value : {};
505
- return oe = new Ue(t), oe.create(s, e);
505
+ return ae = new Ue(t), ae.create(s, e);
506
506
  },
507
507
  updated(s, e) {
508
- return oe.update(s, e);
508
+ return ae.update(s, e);
509
509
  },
510
510
  unmounted(s, e) {
511
- return oe.remove(s, e);
511
+ return ae.remove(s, e);
512
512
  }
513
513
  }, Et = {
514
514
  install: (s, e = Le) => {
@@ -755,8 +755,8 @@ class Tt {
755
755
  ".maz-zoom-img-instance.maz-is-open"
756
756
  );
757
757
  if (n) {
758
- const i = this.allInstances.indexOf(n), o = t ? i + 1 : i - 1, l = this.allInstances[this.getNewInstanceIndex(o)];
759
- l && this.useNextInstance(n, l);
758
+ const i = this.allInstances.indexOf(n), o = t ? i + 1 : i - 1, r = this.allInstances[this.getNewInstanceIndex(o)];
759
+ r && this.useNextInstance(n, r);
760
760
  }
761
761
  }
762
762
  useNextInstance(e, t) {
@@ -785,16 +785,16 @@ class Tt {
785
785
  this.img.removeEventListener("load", this.onImgLoadedCallback);
786
786
  }
787
787
  }
788
- let re;
788
+ let le;
789
789
  const It = {
790
790
  created(s, e) {
791
- re = new Tt(e), re.create(s);
791
+ le = new Tt(e), le.create(s);
792
792
  },
793
793
  updated(s, e) {
794
- re.update(e);
794
+ le.update(e);
795
795
  },
796
796
  unmounted(s) {
797
- re.remove(s);
797
+ le.remove(s);
798
798
  }
799
799
  }, kt = {
800
800
  install(s) {
@@ -927,25 +927,24 @@ class We {
927
927
  n.src = t;
928
928
  }
929
929
  handleIntersectionObserver(e, t, n, i) {
930
- var o, l;
930
+ var o, r;
931
931
  this.observers.push(i);
932
932
  for (const c of n)
933
933
  if (c.isIntersecting) {
934
- if ((l = (o = this.options).onIntersecting) == null || l.call(o, c.target), this.options.observerOnce && i.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
934
+ if ((r = (o = this.options).onIntersecting) == null || r.call(o, c.target), this.options.observerOnce && i.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
935
935
  return;
936
936
  this.loadImage(e, t);
937
937
  }
938
938
  }
939
939
  createObserver(e, t) {
940
- const n = (l, c) => {
941
- this.handleIntersectionObserver(e, t, l, c);
940
+ const n = (r, c) => {
941
+ this.handleIntersectionObserver(e, t, r, c);
942
942
  }, i = this.options.observerOptions;
943
943
  new IntersectionObserver(n, i).observe(e);
944
944
  }
945
945
  async imageHandler(e, t, n) {
946
946
  if (n === "update")
947
- for await (const i of this.observers)
948
- i.unobserve(e);
947
+ for await (const i of this.observers) i.unobserve(e);
949
948
  window.IntersectionObserver ? this.createObserver(e, t) : this.loadImage(e, t);
950
949
  }
951
950
  async bindUpdateHandler(e, t, n) {
@@ -968,17 +967,17 @@ class We {
968
967
  this.observers = [];
969
968
  }
970
969
  }
971
- let ae;
970
+ let ce;
972
971
  const Ss = {
973
972
  created(s, e) {
974
973
  const t = typeof e.value == "object" ? e.value : {};
975
- ae = new We(t), ae.add(s, e);
974
+ ce = new We(t), ce.add(s, e);
976
975
  },
977
976
  updated(s, e) {
978
- ae.update(s, e);
977
+ ce.update(s, e);
979
978
  },
980
979
  unmounted(s, e) {
981
- ae.remove(s, e);
980
+ ce.remove(s, e);
982
981
  }
983
982
  }, Ct = {
984
983
  install(s, e = {}) {
@@ -1014,81 +1013,81 @@ const Ss = {
1014
1013
  },
1015
1014
  emits: ["close", "previous", "next", "before-close"],
1016
1015
  setup(s, { emit: e }) {
1017
- const t = s, n = e, i = I(() => import("./MazSpinner-C9_xSbZZ.mjs")), o = I(() => import("./x-mark-BP8zWe_C.mjs")), l = I(() => import("./chevron-left-CcZaP3Rc.mjs")), c = f(!1), m = f(!1), g = f(!1), z = f(!1), y = f(!1), b = f(t.clickedElement), T = v(() => t.clickedElement.getBoundingClientRect()), Q = v(
1016
+ const t = s, n = e, i = k(() => import("./MazSpinner--BVvGFIO.mjs")), o = k(() => import("./x-mark-BP8zWe_C.mjs")), r = k(() => import("./chevron-left-CcZaP3Rc.mjs")), c = h(!1), m = h(!1), v = h(!1), L = h(!1), b = h(!1), y = h(t.clickedElement), T = f(() => t.clickedElement.getBoundingClientRect()), ee = f(
1018
1017
  () => T.value.height < T.value.width
1019
- ), $ = f(t.src), H = f(t.alt), G = f(), k = f(), U = v(() => y.value ? "--is-zoomed maz-cursor-zoom-out" : "maz-cursor-zoom-in");
1020
- function W() {
1021
- c.value = !0, m.value = !1, g.value = !0;
1018
+ ), _ = h(t.src), M = h(t.alt), te = h(), S = h(), R = f(() => b.value ? "--is-zoomed maz-cursor-zoom-out" : "maz-cursor-zoom-in");
1019
+ function Y() {
1020
+ c.value = !0, m.value = !1, v.value = !0;
1022
1021
  }
1023
1022
  ke(
1024
- () => g.value,
1025
- (u) => {
1026
- u && ne();
1023
+ () => v.value,
1024
+ (l) => {
1025
+ l && ve();
1027
1026
  }
1028
1027
  );
1029
- function D() {
1030
- n("before-close"), ve();
1028
+ function P() {
1029
+ n("before-close"), u();
1031
1030
  }
1032
- function M(u) {
1033
- u.key === "Escape" && (u.preventDefault(), D()), (u.key === "ArrowLeft" || u.key === "ArrowRight") && (u.preventDefault(), j(u.key === "ArrowRight" ? "next" : "previous"));
1031
+ function $(l) {
1032
+ l.key === "Escape" && (l.preventDefault(), P()), (l.key === "ArrowLeft" || l.key === "ArrowRight") && (l.preventDefault(), K(l.key === "ArrowRight" ? "next" : "previous"));
1034
1033
  }
1035
- function me() {
1034
+ function F() {
1036
1035
  document.documentElement.classList.add("--m-fullscreen-open");
1037
1036
  }
1038
- function de() {
1037
+ function he() {
1039
1038
  document.documentElement.classList.remove("--m-fullscreen-open");
1040
1039
  }
1041
- function J() {
1040
+ function se() {
1042
1041
  return [...document.querySelectorAll(".m-fullscreen-img-instance")];
1043
1042
  }
1044
- function he(u, d) {
1045
- return d < 0 ? u.length - 1 : d >= u.length ? 0 : d;
1043
+ function ne(l, d) {
1044
+ return d < 0 ? l.length - 1 : d >= l.length ? 0 : d;
1046
1045
  }
1047
- async function fe(u, d) {
1048
- u.classList.remove(t.openInstanceClass), d.classList.add(t.openInstanceClass);
1049
- const r = d.getAttribute("data-src"), h = d.getAttribute("data-alt");
1050
- H.value = h, r && ($.value = r), c.value = !1, c.value || (m.value = !0);
1046
+ async function ie(l, d) {
1047
+ l.classList.remove(t.openInstanceClass), d.classList.add(t.openInstanceClass);
1048
+ const g = d.getAttribute("data-src"), w = d.getAttribute("data-alt");
1049
+ M.value = w, g && (_.value = g), c.value = !1, c.value || (m.value = !0);
1051
1050
  }
1052
- function j(u) {
1051
+ function K(l) {
1053
1052
  const d = document.querySelector(
1054
1053
  `.m-fullscreen-img-instance.${t.openInstanceClass}`
1055
1054
  );
1056
1055
  if (d) {
1057
- const r = J(), h = r.indexOf(d), p = u === "next" ? h + 1 : h - 1, w = r[he(r, p)];
1058
- b.value = w, w && fe(d, w), n(u), y.value ? ee(k.value) : F();
1056
+ const g = se(), w = g.indexOf(d), C = l === "next" ? w + 1 : w - 1, I = g[ne(g, C)];
1057
+ y.value = I, I && ie(d, I), n(l), b.value ? N(S.value) : B();
1059
1058
  }
1060
1059
  }
1061
- function ee(u) {
1062
- Q.value ? (u.style.width = `${window.innerWidth}px`, u.style.removeProperty("height")) : (u.style.height = `${window.innerHeight}px`, u.style.removeProperty("width")), u.style.removeProperty("top"), u.style.removeProperty("left");
1060
+ function N(l) {
1061
+ ee.value ? (l.style.width = `${window.innerWidth}px`, l.style.removeProperty("height")) : (l.style.height = `${window.innerHeight}px`, l.style.removeProperty("width")), l.style.removeProperty("top"), l.style.removeProperty("left");
1063
1062
  }
1064
- async function te() {
1065
- const u = k.value;
1066
- y.value ? (y.value = !y.value, F()) : (y.value = !y.value, ee(u));
1063
+ async function fe() {
1064
+ const l = S.value;
1065
+ b.value ? (b.value = !b.value, B()) : (b.value = !b.value, N(l));
1067
1066
  }
1068
- function R(u) {
1067
+ function X(l) {
1069
1068
  var d;
1070
- return (d = k.value) == null ? void 0 : d.animate(u, {
1069
+ return (d = S.value) == null ? void 0 : d.animate(l, {
1071
1070
  duration: t.animation.duration,
1072
1071
  // Durée de l'animation en millisecondes
1073
1072
  easing: t.animation.easing
1074
1073
  // Fonction d'interpolation pour l'animation inverse
1075
1074
  });
1076
1075
  }
1077
- function se(u = t.offset ?? 0) {
1078
- const d = (b.value instanceof HTMLImageElement ? b.value.naturalWidth : b.value.clientWidth) || 1, r = (b.value instanceof HTMLImageElement ? b.value.naturalHeight : b.value.clientHeight) || 1, h = window.innerWidth, p = window.innerHeight, w = Math.min(
1079
- (h - 2 * u) / d,
1080
- (p - 2 * u) / r
1081
- ), pe = (h - d * w) / 2, ge = (p - r * w) / 2;
1076
+ function oe(l = t.offset ?? 0) {
1077
+ const d = (y.value instanceof HTMLImageElement ? y.value.naturalWidth : y.value.clientWidth) || 1, g = (y.value instanceof HTMLImageElement ? y.value.naturalHeight : y.value.clientHeight) || 1, w = window.innerWidth, C = window.innerHeight, I = Math.min(
1078
+ (w - 2 * l) / d,
1079
+ (C - 2 * l) / g
1080
+ ), pe = (w - d * I) / 2, ge = (C - g * I) / 2;
1082
1081
  return {
1083
1082
  centerX: pe,
1084
1083
  centerY: ge,
1085
1084
  originalWidth: d,
1086
- originalHeight: r,
1087
- scale: w
1085
+ originalHeight: g,
1086
+ scale: I
1088
1087
  };
1089
1088
  }
1090
- function _({ trigger: u }) {
1091
- const { originalWidth: d, originalHeight: r, scale: h, centerX: p, centerY: w } = se(), { top: pe, left: ge, width: Ze, height: Qe } = T.value, Ce = [
1089
+ function V({ trigger: l }) {
1090
+ const { originalWidth: d, originalHeight: g, scale: w, centerX: C, centerY: I } = oe(), { top: pe, left: ge, width: Ze, height: Qe } = T.value, Ce = [
1092
1091
  {
1093
1092
  top: `${pe}px`,
1094
1093
  left: `${ge}px`,
@@ -1097,67 +1096,67 @@ const Ss = {
1097
1096
  opacity: 0
1098
1097
  },
1099
1098
  {
1100
- top: `${w}px`,
1101
- left: `${p}px`,
1102
- width: `${d * h}px`,
1103
- height: `${r * h}px`,
1099
+ top: `${I}px`,
1100
+ left: `${C}px`,
1101
+ width: `${d * w}px`,
1102
+ height: `${g * w}px`,
1104
1103
  opacity: 1
1105
1104
  }
1106
1105
  ];
1107
1106
  return {
1108
- frames: u === "open" ? Ce : Ce.reverse()
1107
+ frames: l === "open" ? Ce : Ce.reverse()
1109
1108
  };
1110
1109
  }
1111
- function F() {
1112
- const { centerX: u, centerY: d, originalHeight: r, originalWidth: h, scale: p } = se(), w = {
1110
+ function B() {
1111
+ const { centerX: l, centerY: d, originalHeight: g, originalWidth: w, scale: C } = oe(), I = {
1113
1112
  top: `${d}px`,
1114
- left: `${u}px`,
1115
- width: `${h * p}px`,
1116
- height: `${r * p}px`
1113
+ left: `${l}px`,
1114
+ width: `${w * C}px`,
1115
+ height: `${g * C}px`
1117
1116
  };
1118
- if (!k.value)
1117
+ if (!S.value)
1119
1118
  throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
1120
- Object.assign(k.value.style, w);
1119
+ Object.assign(S.value.style, I);
1121
1120
  }
1122
- function ne() {
1123
- const { frames: u } = _({
1121
+ function ve() {
1122
+ const { frames: l } = V({
1124
1123
  trigger: "open"
1125
- }), d = R(u);
1124
+ }), d = X(l);
1126
1125
  if (!d)
1127
1126
  throw console.error("[maz-ui](vFullscreenImg) open animation is not defined");
1128
1127
  d.onfinish = () => {
1129
- F();
1128
+ B();
1130
1129
  };
1131
1130
  }
1132
- function ve() {
1133
- const { frames: u } = _({
1131
+ function u() {
1132
+ const { frames: l } = V({
1134
1133
  trigger: "close"
1135
- }), d = R(u);
1134
+ }), d = X(l);
1136
1135
  if (!d)
1137
1136
  throw console.error("[maz-ui](vFullscreenImg) close animation is not defined");
1138
1137
  d.onfinish = () => {
1139
- var r, h;
1140
- n("close"), (r = G.value) == null || r.remove(), (h = t.destroy) == null || h.call(t);
1138
+ var g, w;
1139
+ n("close"), (g = te.value) == null || g.remove(), (w = t.destroy) == null || w.call(t);
1141
1140
  };
1142
1141
  }
1143
- function P() {
1144
- y.value || F();
1142
+ function p() {
1143
+ b.value || B();
1145
1144
  }
1146
- return ue(() => {
1147
- m.value = !0, document.addEventListener("keydown", M), window.addEventListener("resize", P), me(), z.value = J().length > 1;
1145
+ return de(() => {
1146
+ m.value = !0, document.addEventListener("keydown", $), window.addEventListener("resize", p), F(), L.value = se().length > 1;
1148
1147
  }), Me(() => {
1149
- document.removeEventListener("keydown", M), window.removeEventListener("resize", P), de();
1150
- }), (u, d) => (E(), B("div", {
1148
+ document.removeEventListener("keydown", $), window.removeEventListener("resize", p), he();
1149
+ }), (l, d) => (z(), W("div", {
1151
1150
  ref_key: "FullscreenImgElement",
1152
- ref: G,
1151
+ ref: te,
1153
1152
  role: "button",
1154
1153
  class: "m-fullscreen-img",
1155
1154
  tabindex: "0",
1156
- onClick: A(D, ["stop"]),
1157
- onKeypress: st(A(D, ["prevent"]), ["esc"])
1155
+ onClick: H(P, ["stop"]),
1156
+ onKeypress: st(H(P, ["prevent"]), ["esc"])
1158
1157
  }, [
1159
- Pe(V(
1160
- x(i),
1158
+ Pe(U(
1159
+ O(i),
1161
1160
  { class: "m-fullscreen-img-loader maz-h-16" },
1162
1161
  null,
1163
1162
  512
@@ -1165,40 +1164,40 @@ const Ss = {
1165
1164
  ), [
1166
1165
  [$e, m.value]
1167
1166
  ]),
1168
- g.value && z.value ? (E(), B("button", {
1167
+ v.value && L.value ? (z(), W("button", {
1169
1168
  key: 0,
1170
1169
  type: "button",
1171
1170
  class: "m-fullscreen-btn --next",
1172
- onClick: d[0] || (d[0] = A((r) => j("next"), ["stop"]))
1171
+ onClick: d[0] || (d[0] = H((g) => K("next"), ["stop"]))
1173
1172
  }, [
1174
- V(x(l), { class: "maz-rotate-180 maz-text-3xl" })
1175
- ])) : S("v-if", !0),
1176
- g.value && z.value ? (E(), B("button", {
1173
+ U(O(r), { class: "maz-rotate-180 maz-text-3xl" })
1174
+ ])) : x("v-if", !0),
1175
+ v.value && L.value ? (z(), W("button", {
1177
1176
  key: 1,
1178
1177
  type: "button",
1179
1178
  class: "m-fullscreen-btn --previous",
1180
- onClick: d[1] || (d[1] = A((r) => j("previous"), ["stop"]))
1179
+ onClick: d[1] || (d[1] = H((g) => K("previous"), ["stop"]))
1181
1180
  }, [
1182
- V(x(l), { class: "maz-text-3xl" })
1183
- ])) : S("v-if", !0),
1184
- O("button", {
1181
+ U(O(r), { class: "maz-text-3xl" })
1182
+ ])) : x("v-if", !0),
1183
+ D("button", {
1185
1184
  type: "button",
1186
1185
  class: "m-fullscreen-btn --close",
1187
- onClick: D
1186
+ onClick: P
1188
1187
  }, [
1189
- V(x(o), { class: "maz-text-3xl" })
1188
+ U(O(o), { class: "maz-text-3xl" })
1190
1189
  ]),
1191
- O("div", At, [
1192
- S(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),
1193
- O("img", {
1190
+ D("div", At, [
1191
+ x(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),
1192
+ D("img", {
1194
1193
  ref_key: "ImgElement",
1195
- ref: k,
1196
- src: $.value,
1197
- alt: H.value ?? void 0,
1194
+ ref: S,
1195
+ src: _.value,
1196
+ alt: M.value ?? void 0,
1198
1197
  tabindex: "0",
1199
- class: Ee([U.value]),
1200
- onLoad: W,
1201
- onClick: d[2] || (d[2] = A((r) => u.zoom ? te() : void 0, ["stop"]))
1198
+ class: Ee([R.value]),
1199
+ onLoad: Y,
1200
+ onClick: d[2] || (d[2] = H((g) => l.zoom ? fe() : void 0, ["stop"]))
1202
1201
  }, null, 42, Ot)
1203
1202
  ])
1204
1203
  ], 40, xt));
@@ -1283,16 +1282,16 @@ class Mt {
1283
1282
  e.style.zIndex = "1", this.options.scaleOnHover && (e.style.transform = "scale(1.04)"), this.options.blurOnHover && (e.style.filter = "blur(3px)");
1284
1283
  }
1285
1284
  }
1286
- let le;
1285
+ let ue;
1287
1286
  const Pt = {
1288
1287
  mounted(s, e) {
1289
- return le = new Mt(), le.create(s, e);
1288
+ return ue = new Mt(), ue.create(s, e);
1290
1289
  },
1291
1290
  updated(s, e) {
1292
- return le.update(s, e);
1291
+ return ue.update(s, e);
1293
1292
  },
1294
1293
  unmounted(s) {
1295
- return le.remove(s);
1294
+ return ue.remove(s);
1296
1295
  }
1297
1296
  }, $t = {
1298
1297
  install(s) {
@@ -1393,32 +1392,32 @@ const Yt = {
1393
1392
  s.provide("filters", Yt);
1394
1393
  }
1395
1394
  };
1396
- function Kt({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200 }) {
1397
- const n = f(s), i = f(s);
1398
- let o;
1399
- function l(y) {
1400
- typeof y == "number" && (i.value = y), typeof y == "number" && (n.value = y), c();
1395
+ function Kt({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200, callbackOffsetTime: n = 0 }) {
1396
+ const i = h(s), o = h(s);
1397
+ let r;
1398
+ function c(y) {
1399
+ typeof y == "number" && (o.value = y), typeof y == "number" && (i.value = y), m();
1401
1400
  }
1402
- function c() {
1403
- o || (o = setInterval(() => {
1404
- i.value -= t, i.value <= 0 && (z(), e == null || e());
1401
+ function m() {
1402
+ r || (r = setInterval(() => {
1403
+ o.value -= t, o.value <= 0 && (b(), setTimeout(() => e == null ? void 0 : e(), n));
1405
1404
  }, t));
1406
1405
  }
1407
- function m() {
1408
- o && (clearInterval(o), o = void 0);
1406
+ function v() {
1407
+ r && (clearInterval(r), r = void 0);
1409
1408
  }
1410
- function g() {
1411
- !o && i.value > 0 && c();
1409
+ function L() {
1410
+ !r && o.value > 0 && m();
1412
1411
  }
1413
- function z() {
1414
- i.value = n.value, m();
1412
+ function b() {
1413
+ setTimeout(() => o.value = i.value, n * 2), v();
1415
1414
  }
1416
1415
  return {
1417
- remainingTime: i,
1418
- start: l,
1419
- pause: m,
1420
- resume: g,
1421
- stop: z
1416
+ remainingTime: o,
1417
+ start: c,
1418
+ pause: v,
1419
+ resume: L,
1420
+ stop: b
1422
1421
  };
1423
1422
  }
1424
1423
  const Xt = { class: "m-toast__message-wrapper" }, Zt = { class: "m-toast__message" }, Qt = { class: "maz-flex maz-items-center maz-gap-2" }, Gt = { key: 0 }, Jt = {
@@ -1441,53 +1440,54 @@ const Xt = { class: "m-toast__message-wrapper" }, Zt = { class: "m-toast__messag
1441
1440
  },
1442
1441
  emits: ["close", "click", "open"],
1443
1442
  setup(s, { expose: e, emit: t }) {
1444
- const n = s, i = t, o = I(() => import("./MazBtn-UBHTKqaN.mjs")), l = I(() => import("./x-mark-BP8zWe_C.mjs")), c = I(
1443
+ const n = s, i = t, o = k(() => import("./MazBtn-1g7UvzQ_.mjs")), r = k(() => import("./x-mark-BP8zWe_C.mjs")), c = k(
1445
1444
  () => import("./arrow-top-right-on-square-CkcBq4qD.mjs")
1446
- ), m = I(
1445
+ ), m = k(
1447
1446
  () => import("./exclamation-triangle-BfZLmRbP.mjs")
1448
- ), g = I(
1447
+ ), v = k(
1449
1448
  () => import("./exclamation-circle-DzBJ8vGa.mjs")
1450
- ), z = I(
1449
+ ), L = k(
1451
1450
  () => import("./information-circle-C0pE_7kr.mjs")
1452
- ), y = I(() => import("./check-circle-CtCMBYyp.mjs")), b = I(() => import("./link-D7FkvsK4.mjs")), T = f(), Q = v(() => {
1451
+ ), b = k(() => import("./check-circle-CtCMBYyp.mjs")), y = k(() => import("./link-D7FkvsK4.mjs")), T = h(), ee = f(() => {
1453
1452
  if (n.icon)
1454
1453
  switch (n.type) {
1455
1454
  case "danger":
1456
1455
  return m;
1457
1456
  case "info":
1458
- return z;
1457
+ return L;
1459
1458
  case "success":
1460
- return y;
1459
+ return b;
1461
1460
  case "warning":
1462
- return g;
1461
+ return v;
1463
1462
  default:
1464
1463
  return;
1465
1464
  }
1466
- }), $ = v(() => n.position.includes("top") ? "top" : "bottom"), H = v(() => n.position.includes("left") ? "left" : n.position.includes("right") ? "right" : "center"), G = v(() => H.value !== "center" ? H.value === "right" ? "m-slide-right" : "m-slide-left" : $.value === "top" ? "m-slide-top" : "m-slide-bottom"), k = f(!1), U = f(!1), W = f(), D = `m-toast-container --${$.value} --${H.value}`, M = `.${D.replaceAll(" ", ".")}`, { start: me, stop: de, pause: J, resume: he, remainingTime: fe } = Kt({
1467
- callback: P,
1468
- timeout: typeof n.timeout == "number" ? n.timeout : 0
1465
+ }), _ = f(() => n.position.includes("top") ? "top" : "bottom"), M = f(() => n.position.includes("left") ? "left" : n.position.includes("right") ? "right" : "center"), te = f(() => M.value !== "center" ? M.value === "right" ? "m-slide-right" : "m-slide-left" : _.value === "top" ? "m-slide-top" : "m-slide-bottom"), S = h(!1), R = h(!1), Y = h(), P = `m-toast-container --${_.value} --${M.value}`, $ = `.${P.replaceAll(" ", ".")}`, F = Kt({
1466
+ callback: V,
1467
+ timeout: typeof n.timeout == "number" ? n.timeout : 0,
1468
+ callbackOffsetTime: 200
1469
1469
  });
1470
- function j() {
1471
- const r = document.querySelector(M);
1472
- if (!r && !r) {
1473
- const h = document.body, p = document.createElement("div");
1474
- p.className = D, h.append(p);
1470
+ function he() {
1471
+ const u = document.querySelector($);
1472
+ if (!u && !u) {
1473
+ const p = document.body, l = document.createElement("div");
1474
+ l.className = P, p.append(l);
1475
1475
  }
1476
1476
  }
1477
- function ee() {
1478
- const r = document.querySelector(M);
1479
- return !n.queue && n.maxToasts === !1 ? !1 : typeof n.maxToasts == "number" && r ? n.maxToasts <= r.childElementCount : r && r.childElementCount > 0;
1477
+ function se() {
1478
+ const u = document.querySelector($);
1479
+ return !n.queue && n.maxToasts === !1 ? !1 : typeof n.maxToasts == "number" && u ? n.maxToasts <= u.childElementCount : u && u.childElementCount > 0;
1480
1480
  }
1481
- function te() {
1482
- if (ee()) {
1483
- W.value = setTimeout(te, 250);
1481
+ function ne() {
1482
+ if (se()) {
1483
+ Y.value = setTimeout(ne, 250);
1484
1484
  return;
1485
1485
  }
1486
- const r = document.querySelector(M);
1487
- T.value && r && r.prepend(T.value), U.value = !0, typeof n.timeout == "number" && n.timeout > 0 && me();
1486
+ const u = document.querySelector($);
1487
+ T.value && u && u.prepend(T.value), R.value = !0, typeof n.timeout == "number" && n.timeout > 0 && F.start();
1488
1488
  }
1489
- const R = f("100%");
1490
- function se() {
1489
+ const ie = h("100%");
1490
+ function K() {
1491
1491
  switch (n.type) {
1492
1492
  case "danger":
1493
1493
  return "maz-bg-danger-700";
@@ -1502,125 +1502,125 @@ const Xt = { class: "m-toast__message-wrapper" }, Zt = { class: "m-toast__messag
1502
1502
  }
1503
1503
  }
1504
1504
  ke(
1505
- () => fe.value,
1506
- (r) => {
1505
+ F.remainingTime,
1506
+ (u) => {
1507
1507
  if (typeof n.timeout == "number") {
1508
- const h = 100 * r / n.timeout;
1509
- R.value = `${h}%`, r <= 0 && P();
1508
+ const p = 100 * u / n.timeout;
1509
+ ie.value = `${p}%`;
1510
1510
  }
1511
1511
  }
1512
1512
  );
1513
- function _(r) {
1514
- i("click", r), n.persistent || P();
1513
+ function N(u) {
1514
+ i("click", u), n.persistent || V();
1515
1515
  }
1516
- async function F(r, h) {
1517
- var p;
1518
- k.value = !0, await r(), k.value = !1, (p = n.action) != null && p.closeToast && _(h);
1516
+ async function fe(u, p) {
1517
+ var l;
1518
+ S.value = !0, await u(), S.value = !1, (l = n.action) != null && l.closeToast && N(p);
1519
1519
  }
1520
- function ne(r) {
1521
- n.noPauseOnHover || (r ? J() : he());
1520
+ function X(u) {
1521
+ n.noPauseOnHover || (u ? F.pause() : F.resume());
1522
1522
  }
1523
- function ve() {
1524
- de(), W.value && clearTimeout(W.value);
1523
+ function oe() {
1524
+ stop(), Y.value && clearTimeout(Y.value);
1525
1525
  }
1526
- function P() {
1527
- ve(), U.value = !1;
1526
+ function V() {
1527
+ oe(), R.value = !1;
1528
1528
  }
1529
- e({ close: P });
1530
- function u() {
1529
+ e({ closeToast: V });
1530
+ function B() {
1531
1531
  i("open");
1532
1532
  }
1533
- function d() {
1534
- var h;
1535
- i("close"), (h = T.value) == null || h.remove();
1536
- const r = document.querySelector(M);
1537
- r && !(r != null && r.hasChildNodes()) && r.remove();
1533
+ function ve() {
1534
+ var p;
1535
+ i("close"), (p = T.value) == null || p.remove();
1536
+ const u = document.querySelector($);
1537
+ u && !(u != null && u.hasChildNodes()) && u.remove();
1538
1538
  }
1539
- return ue(() => {
1540
- j(), te();
1541
- }), (r, h) => (E(), N(nt, {
1542
- name: G.value,
1543
- onAfterLeave: d,
1544
- onAfterEnter: u,
1539
+ return de(() => {
1540
+ he(), ne();
1541
+ }), (u, p) => (z(), q(nt, {
1542
+ name: te.value,
1543
+ onAfterLeave: ve,
1544
+ onAfterEnter: B,
1545
1545
  persisted: ""
1546
1546
  }, {
1547
1547
  default: ye(() => [
1548
- Pe(O(
1548
+ Pe(D(
1549
1549
  "button",
1550
1550
  {
1551
1551
  ref_key: "Toaster",
1552
1552
  ref: T,
1553
1553
  class: Ee(["m-toast", [
1554
- `--${r.type}`,
1555
- `--${$.value}`,
1556
- `--${H.value}`,
1557
- { "maz-pb-1": typeof r.timeout == "number" && r.timeout > 0, "--persistent": r.persistent }
1554
+ `--${u.type}`,
1555
+ `--${_.value}`,
1556
+ `--${M.value}`,
1557
+ { "maz-pb-1": typeof u.timeout == "number" && u.timeout > 0, "--persistent": u.persistent }
1558
1558
  ]]),
1559
1559
  role: "alert",
1560
- onMouseover: h[2] || (h[2] = (p) => ne(!0)),
1561
- onMouseleave: h[3] || (h[3] = (p) => ne(!1)),
1562
- onClick: h[4] || (h[4] = A((p) => {
1563
- var w;
1564
- return r.link && !((w = r.link) != null && w.closeToast) ? void 0 : _(p);
1560
+ onMouseover: p[2] || (p[2] = (l) => X(!0)),
1561
+ onMouseleave: p[3] || (p[3] = (l) => X(!1)),
1562
+ onClick: p[4] || (p[4] = H((l) => {
1563
+ var d;
1564
+ return u.link && !((d = u.link) != null && d.closeToast) ? void 0 : N(l);
1565
1565
  }, ["stop"]))
1566
1566
  },
1567
1567
  [
1568
- Q.value ? (E(), N(it(Q.value), {
1568
+ ee.value ? (z(), q(it(ee.value), {
1569
1569
  key: 0,
1570
1570
  class: "maz-text-2xl"
1571
- })) : S("v-if", !0),
1572
- O("div", Xt, [
1573
- O(
1571
+ })) : x("v-if", !0),
1572
+ D("div", Xt, [
1573
+ D(
1574
1574
  "p",
1575
1575
  Zt,
1576
- be(r.message),
1576
+ be(u.message),
1577
1577
  1
1578
1578
  /* TEXT */
1579
1579
  )
1580
1580
  ]),
1581
- r.action ? (E(), N(x(o), {
1581
+ u.action ? (z(), q(O(o), {
1582
1582
  key: 1,
1583
1583
  "data-test": "action-btn",
1584
- color: r.type,
1584
+ color: u.type,
1585
1585
  pastel: "",
1586
- loading: k.value,
1586
+ loading: S.value,
1587
1587
  size: "sm",
1588
- onClick: h[0] || (h[0] = A((p) => r.action ? F(r.action.func, p) : void 0, ["stop"]))
1588
+ onClick: p[0] || (p[0] = H((l) => u.action ? fe(u.action.func, l) : void 0, ["stop"]))
1589
1589
  }, {
1590
1590
  default: ye(() => [
1591
1591
  ot(
1592
- be(r.action.text),
1592
+ be(u.action.text),
1593
1593
  1
1594
1594
  /* TEXT */
1595
1595
  )
1596
1596
  ]),
1597
1597
  _: 1
1598
1598
  /* STABLE */
1599
- }, 8, ["color", "loading"])) : S("v-if", !0),
1600
- r.link ? (E(), N(x(o), {
1599
+ }, 8, ["color", "loading"])) : x("v-if", !0),
1600
+ u.link ? (z(), q(O(o), {
1601
1601
  key: 2,
1602
1602
  "data-test": "link-btn",
1603
- color: r.type,
1603
+ color: u.type,
1604
1604
  pastel: "",
1605
1605
  size: "xs",
1606
- href: r.link.href,
1607
- target: r.link.target ?? "_self"
1606
+ href: u.link.href,
1607
+ target: u.link.target ?? "_self"
1608
1608
  }, {
1609
1609
  default: ye(() => {
1610
- var p;
1610
+ var l;
1611
1611
  return [
1612
- O("div", Qt, [
1613
- r.link.text ? (E(), B(
1612
+ D("div", Qt, [
1613
+ u.link.text ? (z(), W(
1614
1614
  "span",
1615
1615
  Gt,
1616
- be(r.link.text),
1616
+ be(u.link.text),
1617
1617
  1
1618
1618
  /* TEXT */
1619
- )) : S("v-if", !0),
1620
- ((p = r.link) == null ? void 0 : p.target) === "_blank" ? (E(), N(x(c), {
1619
+ )) : x("v-if", !0),
1620
+ ((l = u.link) == null ? void 0 : l.target) === "_blank" ? (z(), q(O(c), {
1621
1621
  key: 1,
1622
1622
  class: "maz-text-xl"
1623
- })) : (E(), N(x(b), {
1623
+ })) : (z(), q(O(y), {
1624
1624
  key: 2,
1625
1625
  class: "maz-text-xl"
1626
1626
  }))
@@ -1629,40 +1629,40 @@ const Xt = { class: "m-toast__message-wrapper" }, Zt = { class: "m-toast__messag
1629
1629
  }),
1630
1630
  _: 1
1631
1631
  /* STABLE */
1632
- }, 8, ["color", "href", "target"])) : S("v-if", !0),
1633
- r.persistent ? S("v-if", !0) : (E(), B("button", {
1632
+ }, 8, ["color", "href", "target"])) : x("v-if", !0),
1633
+ u.persistent ? x("v-if", !0) : (z(), W("button", {
1634
1634
  key: 3,
1635
1635
  class: "--close",
1636
- onClick: h[1] || (h[1] = A((p) => _(p), ["stop"]))
1636
+ onClick: p[1] || (p[1] = H((l) => N(l), ["stop"]))
1637
1637
  }, [
1638
- V(x(l), { class: "--icon maz-text-xl" })
1638
+ U(O(r), { class: "--icon maz-text-xl" })
1639
1639
  ])),
1640
- typeof r.timeout == "number" && r.timeout > 0 ? (E(), B("div", Jt, [
1641
- O(
1640
+ typeof u.timeout == "number" && u.timeout > 0 ? (z(), W("div", Jt, [
1641
+ D(
1642
1642
  "div",
1643
1643
  {
1644
1644
  style: rt({
1645
- width: R.value
1645
+ width: ie.value
1646
1646
  }),
1647
- class: Ee(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear", se()])
1647
+ class: Ee(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear", K()])
1648
1648
  },
1649
1649
  null,
1650
1650
  6
1651
1651
  /* CLASS, STYLE */
1652
1652
  )
1653
- ])) : S("v-if", !0)
1653
+ ])) : x("v-if", !0)
1654
1654
  ],
1655
1655
  34
1656
1656
  /* CLASS, NEED_HYDRATION */
1657
1657
  ), [
1658
- [$e, U.value]
1658
+ [$e, R.value]
1659
1659
  ])
1660
1660
  ]),
1661
1661
  _: 1
1662
1662
  /* STABLE */
1663
1663
  }, 8, ["name"]));
1664
1664
  }
1665
- }), ts = /* @__PURE__ */ je(es, [["__scopeId", "data-v-18377575"]]), ss = {
1665
+ }), ts = /* @__PURE__ */ je(es, [["__scopeId", "data-v-cdb80f1f"]]), ss = {
1666
1666
  position: "bottom-right",
1667
1667
  timeout: 1e4,
1668
1668
  persistent: !1,
@@ -1685,8 +1685,8 @@ class ns {
1685
1685
  return {
1686
1686
  destroy: i,
1687
1687
  close: () => {
1688
- var l, c;
1689
- return (c = (l = o.component) == null ? void 0 : l.exposed) == null ? void 0 : c.close();
1688
+ var r, c;
1689
+ return (c = (r = o.component) == null ? void 0 : r.exposed) == null ? void 0 : c.closeToast();
1690
1690
  }
1691
1691
  };
1692
1692
  }
@@ -1719,38 +1719,38 @@ const As = {
1719
1719
  install(s, e) {
1720
1720
  s.provide("toast", is(s, e));
1721
1721
  }
1722
- }, q = "";
1722
+ }, j = "";
1723
1723
  function os(s) {
1724
1724
  return s.filter((e, t, n) => t === n.indexOf(e));
1725
1725
  }
1726
1726
  function rs(s) {
1727
- return (e = q) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e);
1727
+ return (e = j) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e);
1728
1728
  }
1729
1729
  const as = (s) => s.length > 0;
1730
1730
  function ls(s) {
1731
- return (e = q) => os([...s, e]);
1731
+ return (e = j) => os([...s, e]);
1732
1732
  }
1733
1733
  function cs(s) {
1734
- return (e = q) => s.filter((t) => t !== e);
1734
+ return (e = j) => s.filter((t) => t !== e);
1735
1735
  }
1736
1736
  class us {
1737
1737
  constructor() {
1738
- a(this, "_loaders", f([]));
1738
+ a(this, "_loaders", h([]));
1739
1739
  }
1740
1740
  get loaders() {
1741
- return v(() => this._loaders.value);
1741
+ return f(() => this._loaders.value);
1742
1742
  }
1743
- stop(e = q) {
1743
+ stop(e = j) {
1744
1744
  this._loaders.value = cs(this._loaders.value)(e);
1745
1745
  }
1746
- start(e = q) {
1746
+ start(e = j) {
1747
1747
  return this._loaders.value = ls(this._loaders.value)(e), () => this.stop(e);
1748
1748
  }
1749
1749
  get anyLoading() {
1750
- return v(() => as(this._loaders.value));
1750
+ return f(() => as(this._loaders.value));
1751
1751
  }
1752
- isLoading(e = q) {
1753
- return v(() => rs(this._loaders.value)(e)).value;
1752
+ isLoading(e = j) {
1753
+ return f(() => rs(this._loaders.value)(e)).value;
1754
1754
  }
1755
1755
  }
1756
1756
  const ms = new us(), Os = {
@@ -1787,26 +1787,26 @@ class ds {
1787
1787
  }
1788
1788
  handleIntersect(e, t) {
1789
1789
  for (const n of e) {
1790
- const o = n.target.getAttribute("data-maz-aos-children") === "true", l = n.target.getAttribute("data-maz-aos") ? [n.target] : [];
1790
+ const o = n.target.getAttribute("data-maz-aos-children") === "true", r = n.target.getAttribute("data-maz-aos") ? [n.target] : [];
1791
1791
  if (o) {
1792
1792
  const c = [...document.querySelectorAll("[data-maz-aos-anchor]")].map(
1793
1793
  (m) => m.getAttribute("data-maz-aos-anchor") === `#${n.target.id}` ? m : void 0
1794
1794
  );
1795
1795
  for (const m of c)
1796
- m && l.push(m);
1796
+ m && r.push(m);
1797
1797
  }
1798
- for (const c of l) {
1799
- const m = c.getAttribute("data-maz-aos-once"), g = typeof m == "string" ? m === "true" : this.options.animation.once;
1798
+ for (const c of r) {
1799
+ const m = c.getAttribute("data-maz-aos-once"), v = typeof m == "string" ? m === "true" : this.options.animation.once;
1800
1800
  if (typeof this.options.observer.threshold == "number" && n.intersectionRatio > this.options.observer.threshold) {
1801
- const z = c.getAttribute("data-maz-aos-duration"), y = c.getAttribute("data-maz-aos-delay");
1802
- if (z || (c.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
1801
+ const L = c.getAttribute("data-maz-aos-duration"), b = c.getAttribute("data-maz-aos-delay");
1802
+ if (L || (c.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
1803
1803
  c.style.transitionDuration = "0";
1804
- }, 1e3)), y || (c.style.transitionDelay = `${this.options.animation.delay}ms`, setTimeout(() => {
1804
+ }, 1e3)), b || (c.style.transitionDelay = `${this.options.animation.delay}ms`, setTimeout(() => {
1805
1805
  c.style.transitionDelay = "0";
1806
- }, 1e3)), c.classList.add("maz-aos-animate"), g) {
1807
- const b = c.getAttribute("data-maz-aos-anchor");
1808
- if (b) {
1809
- const T = document.querySelector(b);
1806
+ }, 1e3)), c.classList.add("maz-aos-animate"), v) {
1807
+ const y = c.getAttribute("data-maz-aos-anchor");
1808
+ if (y) {
1809
+ const T = document.querySelector(y);
1810
1810
  T && t.unobserve(T);
1811
1811
  }
1812
1812
  t.unobserve(c);
@@ -1831,21 +1831,21 @@ class ds {
1831
1831
  }
1832
1832
  }
1833
1833
  runAnimations() {
1834
- if (L())
1834
+ if (E())
1835
1835
  return this.handleObserver();
1836
1836
  console.warn("[MazAos](runAnimations) should be executed on client side");
1837
1837
  }
1838
1838
  }
1839
- let Y;
1839
+ let Z;
1840
1840
  const Hs = {
1841
1841
  install: (s, e) => {
1842
- Y = new ds(e), s.provide("aos", Y), L() && (e != null && e.router ? e.router.afterEach(async () => {
1843
- Y.runAnimations();
1844
- }) : Y.runAnimations());
1842
+ Z = new ds(e), s.provide("aos", Z), E() && (e != null && e.router ? e.router.afterEach(async () => {
1843
+ Z.runAnimations();
1844
+ }) : Z.runAnimations());
1845
1845
  }
1846
1846
  };
1847
1847
  function Ds() {
1848
- return Y;
1848
+ return Z;
1849
1849
  }
1850
1850
  const hs = {
1851
1851
  darkClass: "dark",
@@ -1855,11 +1855,11 @@ const hs = {
1855
1855
  storageThemeValueLight: "light",
1856
1856
  storageThemeValueSystem: "system",
1857
1857
  watchChanges: !0
1858
- }, K = f("system"), C = f("system");
1858
+ }, Q = h("system"), A = h("system");
1859
1859
  function He() {
1860
1860
  return window.matchMedia("(prefers-color-scheme: dark)").matches;
1861
1861
  }
1862
- function X({
1862
+ function G({
1863
1863
  darkClass: s,
1864
1864
  lightClass: e,
1865
1865
  storageThemeKey: t,
@@ -1867,9 +1867,9 @@ function X({
1867
1867
  setLocalStorageValue: i = !0,
1868
1868
  setSelectedTheme: o = !0
1869
1869
  }) {
1870
- L() && (document.documentElement.classList.remove(e), document.documentElement.classList.add(s), K.value = n, o && (C.value = n), i && (localStorage[t] = n));
1870
+ E() && (document.documentElement.classList.remove(e), document.documentElement.classList.add(s), Q.value = n, o && (A.value = n), i && (localStorage[t] = n));
1871
1871
  }
1872
- function Z({
1872
+ function J({
1873
1873
  darkClass: s,
1874
1874
  lightClass: e,
1875
1875
  storageThemeKey: t,
@@ -1877,14 +1877,14 @@ function Z({
1877
1877
  setLocalStorageValue: i = !0,
1878
1878
  setSelectedTheme: o = !0
1879
1879
  }) {
1880
- L() && (document.documentElement.classList.remove(s), document.documentElement.classList.add(e), K.value = n, o && (C.value = n), i && (localStorage[t] = n));
1880
+ E() && (document.documentElement.classList.remove(s), document.documentElement.classList.add(e), Q.value = n, o && (A.value = n), i && (localStorage[t] = n));
1881
1881
  }
1882
1882
  function Re({
1883
1883
  setLocalStorageValue: s = !0,
1884
1884
  ...e
1885
1885
  }) {
1886
- if (L())
1887
- return document.documentElement.classList.remove(e.darkClass), document.documentElement.classList.remove(e.lightClass), K.value = e.storageThemeValueSystem, C.value = e.storageThemeValueSystem, s && (localStorage[e.storageThemeKey] = e.storageThemeValueSystem), Ie(e);
1886
+ if (E())
1887
+ return document.documentElement.classList.remove(e.darkClass), document.documentElement.classList.remove(e.lightClass), Q.value = e.storageThemeValueSystem, A.value = e.storageThemeValueSystem, s && (localStorage[e.storageThemeKey] = e.storageThemeValueSystem), Ie(e);
1888
1888
  }
1889
1889
  function Ye(s) {
1890
1890
  if (!s.defaultTheme)
@@ -1893,13 +1893,13 @@ function Ye(s) {
1893
1893
  return console.error('[maz-ui](useThemeHandler) Default theme must be "light" or "dark"');
1894
1894
  switch (s.defaultTheme) {
1895
1895
  case "dark":
1896
- return X({
1896
+ return G({
1897
1897
  ...s,
1898
1898
  setLocalStorageValue: !1,
1899
1899
  setSelectedTheme: !0
1900
1900
  });
1901
1901
  case "light":
1902
- return Z({
1902
+ return J({
1903
1903
  ...s,
1904
1904
  setLocalStorageValue: !1,
1905
1905
  setSelectedTheme: !0
@@ -1907,11 +1907,11 @@ function Ye(s) {
1907
1907
  }
1908
1908
  }
1909
1909
  function Ie(s) {
1910
- return L() ? !localStorage[s.storageThemeKey] && s.defaultTheme ? Ye(s) : localStorage[s.storageThemeKey] === s.storageThemeValueDark || !localStorage[s.storageThemeKey] && He() || localStorage[s.storageThemeKey] === s.storageThemeValueSystem && He() ? X({
1910
+ return E() ? !localStorage[s.storageThemeKey] && s.defaultTheme ? Ye(s) : localStorage[s.storageThemeKey] === s.storageThemeValueDark || !localStorage[s.storageThemeKey] && He() || localStorage[s.storageThemeKey] === s.storageThemeValueSystem && He() ? G({
1911
1911
  ...s,
1912
1912
  setLocalStorageValue: !1,
1913
1913
  setSelectedTheme: !1
1914
- }) : Z({
1914
+ }) : J({
1915
1915
  ...s,
1916
1916
  setLocalStorageValue: !1,
1917
1917
  setSelectedTheme: !1
@@ -1921,10 +1921,10 @@ function ze({
1921
1921
  theme: s,
1922
1922
  ...e
1923
1923
  }) {
1924
- return s === "system" ? Re(e) : s === "dark" ? X(e) : Z(e);
1924
+ return s === "system" ? Re(e) : s === "dark" ? G(e) : J(e);
1925
1925
  }
1926
1926
  function fs(s) {
1927
- return K.value === s.storageThemeValueDark ? Z(s) : X(s);
1927
+ return Q.value === s.storageThemeValueDark ? J(s) : G(s);
1928
1928
  }
1929
1929
  function Ms(s) {
1930
1930
  const e = {
@@ -1934,18 +1934,18 @@ function Ms(s) {
1934
1934
  function t() {
1935
1935
  Ie(e);
1936
1936
  }
1937
- return ue(() => {
1938
- localStorage[e.storageThemeKey] && (C.value = localStorage[e.storageThemeKey]), e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", t);
1937
+ return de(() => {
1938
+ localStorage[e.storageThemeKey] && (A.value = localStorage[e.storageThemeKey]), e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", t);
1939
1939
  }), Me(() => {
1940
1940
  e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change", t);
1941
- }), ke(C, (n) => {
1941
+ }), ke(A, (n) => {
1942
1942
  switch (localStorage[e.storageThemeKey] = n, n) {
1943
1943
  case e.storageThemeValueDark: {
1944
- X(e);
1944
+ G(e);
1945
1945
  break;
1946
1946
  }
1947
1947
  case e.storageThemeValueLight: {
1948
- Z(e);
1948
+ J(e);
1949
1949
  break;
1950
1950
  }
1951
1951
  case e.storageThemeValueSystem: {
@@ -1960,11 +1960,11 @@ function Ms(s) {
1960
1960
  setDarkTheme: () => ze({ ...e, theme: "dark" }),
1961
1961
  setLightTheme: () => ze({ ...e, theme: "light" }),
1962
1962
  setDefaultTheme: () => Ye(e),
1963
- hasDarkTheme: v(() => C.value === e.storageThemeValueDark),
1964
- hasLightTheme: v(() => C.value === e.storageThemeValueLight),
1965
- hasSystemTheme: v(() => C.value === e.storageThemeValueSystem),
1966
- theme: K,
1967
- selectedTheme: C
1963
+ hasDarkTheme: f(() => A.value === e.storageThemeValueDark),
1964
+ hasLightTheme: f(() => A.value === e.storageThemeValueLight),
1965
+ hasSystemTheme: f(() => A.value === e.storageThemeValueSystem),
1966
+ theme: Q,
1967
+ selectedTheme: A
1968
1968
  };
1969
1969
  }
1970
1970
  function Ps({
@@ -1972,7 +1972,7 @@ function Ps({
1972
1972
  providedId: e
1973
1973
  }) {
1974
1974
  const t = at();
1975
- return v(() => e ?? `${s}-${t == null ? void 0 : t.uid}`);
1975
+ return f(() => e ?? `${s}-${t == null ? void 0 : t.uid}`);
1976
1976
  }
1977
1977
  function $s() {
1978
1978
  return Se("aos");
@@ -2003,19 +2003,19 @@ function vs(s) {
2003
2003
  }
2004
2004
  function ps(s = {}) {
2005
2005
  const {
2006
- internalWindow: e = L() ? window : void 0,
2006
+ internalWindow: e = E() ? window : void 0,
2007
2007
  initialWidth: t = Number.POSITIVE_INFINITY,
2008
2008
  initialHeight: n = Number.POSITIVE_INFINITY,
2009
2009
  includeScrollbar: i = !0
2010
- } = s, o = f(t), l = f(n);
2010
+ } = s, o = h(t), r = h(n);
2011
2011
  function c() {
2012
- e && (i ? (o.value = e.innerWidth, l.value = e.innerHeight) : (o.value = e.document.documentElement.clientWidth, l.value = e.document.documentElement.clientHeight));
2012
+ e && (i ? (o.value = e.innerWidth, r.value = e.innerHeight) : (o.value = e.document.documentElement.clientWidth, r.value = e.document.documentElement.clientHeight));
2013
2013
  }
2014
- return c(), ue(() => {
2014
+ return c(), de(() => {
2015
2015
  e && window.addEventListener("resize", c, { passive: !0 });
2016
2016
  }), lt(() => {
2017
2017
  e && window.removeEventListener("resize", c);
2018
- }), { width: o, height: l };
2018
+ }), { width: o, height: r };
2019
2019
  }
2020
2020
  function Bs({
2021
2021
  initialWidth: s = 0,
@@ -2024,7 +2024,7 @@ function Bs({
2024
2024
  internalWindow: n,
2025
2025
  listenOrientation: i,
2026
2026
  breakpoints: o,
2027
- mediumBreakPoint: l = "md",
2027
+ mediumBreakPoint: r = "md",
2028
2028
  largeBreakPoint: c = "lg"
2029
2029
  }) {
2030
2030
  const { width: m } = ps({
@@ -2034,24 +2034,24 @@ function Bs({
2034
2034
  includeScrollbar: t,
2035
2035
  internalWindow: n,
2036
2036
  listenOrientation: i
2037
- }), g = vs(o), z = v(() => m.value >= g[c]), y = v(
2038
- () => m.value >= g[l] && m.value < g[c]
2039
- ), b = v(() => m.value >= 0 && m.value < g[l]);
2037
+ }), v = vs(o), L = f(() => m.value >= v[c]), b = f(
2038
+ () => m.value >= v[r] && m.value < v[c]
2039
+ ), y = f(() => m.value >= 0 && m.value < v[r]);
2040
2040
  return {
2041
2041
  width: m,
2042
- numericBreakpoints: g,
2043
- isSmallScreen: b,
2044
- isLargeScreen: z,
2045
- isMediumScreen: y,
2042
+ numericBreakpoints: v,
2043
+ isSmallScreen: y,
2044
+ isLargeScreen: L,
2045
+ isMediumScreen: b,
2046
2046
  breakpoints: o
2047
2047
  };
2048
2048
  }
2049
2049
  function qs(s) {
2050
- const e = f(), t = f(), n = f(), i = f(), o = f(), l = f(), c = new ht({
2050
+ const e = h(), t = h(), n = h(), i = h(), o = h(), r = h(), c = new ht({
2051
2051
  ...s,
2052
2052
  element: s.element,
2053
2053
  onValuesChanged(m) {
2054
- e.value = m.xDiff, t.value = m.yDiff, n.value = m.xStart, i.value = m.xEnd, o.value = m.yStart, l.value = m.yEnd;
2054
+ e.value = m.xDiff, t.value = m.yDiff, n.value = m.xStart, i.value = m.xEnd, o.value = m.yStart, r.value = m.yEnd;
2055
2055
  }
2056
2056
  });
2057
2057
  return {
@@ -2060,7 +2060,7 @@ function qs(s) {
2060
2060
  xStart: n,
2061
2061
  xEnd: i,
2062
2062
  yStart: o,
2063
- yEnd: l,
2063
+ yEnd: r,
2064
2064
  start: c.start,
2065
2065
  stop: c.stop
2066
2066
  };
@@ -2074,25 +2074,25 @@ function gs(s, e = 150) {
2074
2074
  return Math.ceil(t / e);
2075
2075
  }
2076
2076
  function Us(s) {
2077
- const e = v(
2077
+ const e = f(
2078
2078
  () => {
2079
- var l;
2080
- return typeof s.velocity == "number" ? s.velocity : ((l = s.velocity) == null ? void 0 : l.value) ?? 150;
2079
+ var r;
2080
+ return typeof s.velocity == "number" ? s.velocity : ((r = s.velocity) == null ? void 0 : r.value) ?? 150;
2081
2081
  }
2082
- ), t = v(() => {
2083
- var l;
2084
- return typeof s.contentSelector == "string" ? s.contentSelector : (l = s.contentSelector) == null ? void 0 : l.value;
2085
- }), n = v(() => {
2086
- var l, c, m;
2087
- if (typeof ((l = s.contentRef) == null ? void 0 : l.value) == "object")
2082
+ ), t = f(() => {
2083
+ var r;
2084
+ return typeof s.contentSelector == "string" ? s.contentSelector : (r = s.contentSelector) == null ? void 0 : r.value;
2085
+ }), n = f(() => {
2086
+ var r, c, m;
2087
+ if (typeof ((r = s.contentRef) == null ? void 0 : r.value) == "object")
2088
2088
  return (c = s.contentRef.value) == null ? void 0 : c.textContent;
2089
2089
  if (t.value && typeof document < "u") {
2090
- const g = document.querySelector(t.value);
2091
- if (g)
2092
- return g.textContent;
2090
+ const v = document.querySelector(t.value);
2091
+ if (v)
2092
+ return v.textContent;
2093
2093
  }
2094
2094
  return typeof s.content == "string" ? s.content : (m = s.content) == null ? void 0 : m.value;
2095
- }), i = v(() => gs(n.value, e.value)), o = v(() => Ke([n.value]));
2095
+ }), i = f(() => gs(n.value, e.value)), o = f(() => Ke([n.value]));
2096
2096
  return {
2097
2097
  content: n,
2098
2098
  wordCount: o,
@@ -2107,12 +2107,12 @@ function ys(s, e) {
2107
2107
  for (let o = 0; o <= n; o++)
2108
2108
  i[0][o] = o;
2109
2109
  for (let o = 1; o <= t; o++)
2110
- for (let l = 1; l <= n; l++) {
2111
- const c = s[o - 1] === e[l - 1] ? 0 : 1;
2112
- i[o][l] = Math.min(
2113
- i[o - 1][l] + 1,
2114
- i[o][l - 1] + 1,
2115
- i[o - 1][l - 1] + c
2110
+ for (let r = 1; r <= n; r++) {
2111
+ const c = s[o - 1] === e[r - 1] ? 0 : 1;
2112
+ i[o][r] = Math.min(
2113
+ i[o - 1][r] + 1,
2114
+ i[o][r - 1] + 1,
2115
+ i[o - 1][r - 1] + c
2116
2116
  );
2117
2117
  }
2118
2118
  return i[t][n];
@@ -2125,16 +2125,16 @@ function bs(s, e, t = 0.75) {
2125
2125
  return Xe(s, e) >= t;
2126
2126
  }
2127
2127
  function Ws(s, e, t = 0.75) {
2128
- const n = v(
2128
+ const n = f(
2129
2129
  () => xe(typeof s == "string" ? s : s.value)
2130
- ), i = v(
2130
+ ), i = f(
2131
2131
  () => xe(typeof e == "string" ? e : e.value)
2132
- ), o = v(() => typeof t == "number" ? t : t.value), l = v(() => Xe(n.value, i.value));
2132
+ ), o = f(() => typeof t == "number" ? t : t.value), r = f(() => Xe(n.value, i.value));
2133
2133
  return {
2134
- isMatching: v(
2134
+ isMatching: f(
2135
2135
  () => bs(n.value, i.value, o.value)
2136
2136
  ),
2137
- score: l
2137
+ score: r
2138
2138
  };
2139
2139
  }
2140
2140
  export {
@@ -2165,7 +2165,7 @@ export {
2165
2165
  Us as Y,
2166
2166
  Ws as Z,
2167
2167
  je as _,
2168
- L as a,
2168
+ E as a,
2169
2169
  ht as b,
2170
2170
  Ts as c,
2171
2171
  Es as d,