maz-ui 3.28.0 → 3.28.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 (30) hide show
  1. package/components/MazAccordion.mjs +1 -1
  2. package/components/MazInputNumber.d.ts +3 -2
  3. package/components/MazInputNumber.mjs +2 -98
  4. package/components/assets/MazAccordion.css +1 -1
  5. package/components/assets/MazInputNumber.css +1 -1
  6. package/components/chunks/{MazAccordion-posaK9nP.mjs → MazAccordion-pZkwkqAr.mjs} +39 -38
  7. package/components/chunks/MazInputNumber-OAPwOzCG.mjs +596 -0
  8. package/components/chunks/{MazSpinner-GCPS0yJL.mjs → MazSpinner-RwIjv6Xr.mjs} +1 -1
  9. package/components/chunks/{MazSpinner-NtRhZv9o.mjs → MazSpinner-yYMg5h03.mjs} +1 -1
  10. package/css/main.css +1 -1
  11. package/modules/chunks/{MazBtn-BjjqJeyy.cjs → MazBtn-pl1zplR1.cjs} +1 -1
  12. package/modules/chunks/{MazBtn-i7A6854I.mjs → MazBtn-vQMWTV0k.mjs} +2 -2
  13. package/modules/chunks/{MazIcon-mZNgyUkv.cjs → MazIcon-PpF58JqR.cjs} +1 -1
  14. package/modules/chunks/{MazIcon-_zmW6Z2N.mjs → MazIcon-iHejQyeA.mjs} +1 -1
  15. package/modules/chunks/{MazSpinner-mn9MhxbV.cjs → MazSpinner-4FGq9uY1.cjs} +1 -1
  16. package/modules/chunks/{MazSpinner-zUQyynC3.mjs → MazSpinner-DJzZmr-v.mjs} +1 -1
  17. package/modules/chunks/{index-ezXyG63J.mjs → index-bXD69qtB.mjs} +111 -104
  18. package/modules/chunks/{index-DCZgntsf.cjs → index-eNQnoHF9.cjs} +2 -2
  19. package/modules/index.cjs +1 -1
  20. package/modules/index.mjs +1 -1
  21. package/nuxt/index.json +1 -1
  22. package/package.json +1 -1
  23. package/tailwindcss/variables/utilities.ts +3 -0
  24. package/types/components/MazInputNumber.vue.d.ts +3 -2
  25. package/types/tailwindcss/variables/utilities.d.ts +3 -0
  26. package/components/chunks/MazBtn-tjMMZdlj.mjs +0 -152
  27. package/components/chunks/MazInput-h4Rs2XYn.mjs +0 -283
  28. package/components/chunks/_plugin-vue_export-helper-hUChTQA_.mjs +0 -9
  29. package/components/chunks/minus-thGpw2GG.mjs +0 -30
  30. package/components/chunks/plus-02mftP8S.mjs +0 -30
@@ -2,7 +2,7 @@ var Qe = Object.defineProperty;
2
2
  var Je = (s, e, t) => e in s ? Qe(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
3
  var a = (s, e, t) => (Je(s, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import "../assets/index.css";
5
- import { inject as et, createVNode as P, render as ee, nextTick as He, defineComponent as $e, defineAsyncComponent as w, onBeforeMount as tt, ref as h, computed as g, onMounted as Ee, onBeforeUnmount as De, openBlock as z, createElementBlock as Z, normalizeClass as re, withModifiers as $, withKeys as st, withDirectives as be, unref as L, vShow as we, createCommentVNode as H, createElementVNode as E, Transition as Me, withCtx as ne, watch as it, createBlock as U, resolveDynamicComponent as ot, toDisplayString as pe, createTextVNode as nt, normalizeStyle as rt } from "vue";
5
+ import { inject as et, createVNode as H, render as ee, nextTick as He, defineComponent as $e, defineAsyncComponent as z, onBeforeMount as tt, ref as h, computed as g, onMounted as Ee, onBeforeUnmount as De, openBlock as E, createElementBlock as Z, normalizeClass as re, withModifiers as D, withKeys as st, withDirectives as be, unref as T, vShow as we, createCommentVNode as $, createElementVNode as I, Transition as Me, withCtx as ne, watch as it, createBlock as U, resolveDynamicComponent as ot, toDisplayString as pe, createTextVNode as nt, normalizeStyle as rt } from "vue";
6
6
  function Le(s, e) {
7
7
  const t = et(s, e);
8
8
  if (!t)
@@ -25,14 +25,14 @@ function Be(s, e) {
25
25
  function i() {
26
26
  t && ee(null, t);
27
27
  }
28
- const o = P(
28
+ const o = H(
29
29
  s,
30
30
  { ...e == null ? void 0 : e.props, ...e != null && e.addDestroyInProps ? { destroy: i } : {} },
31
31
  e == null ? void 0 : e.children
32
32
  );
33
33
  return e != null && e.app ? (o.appContext = e.app._context, t ? ee(o, t) : typeof document < "u" && (t = document.createElement("div"), ee(o, t))) : (t = t ?? document.body, ee(o, t)), { vNode: o, destroy: i, el: t };
34
34
  }
35
- function D() {
35
+ function M() {
36
36
  return typeof document < "u";
37
37
  }
38
38
  class lt {
@@ -83,13 +83,13 @@ class lt {
83
83
  this.callback = e, this.options = {
84
84
  ...this.defaultOptions,
85
85
  ...t
86
- }, D() && this.start();
86
+ }, M() && this.start();
87
87
  }
88
88
  get element() {
89
89
  return this.options.element ?? document.body;
90
90
  }
91
91
  start() {
92
- if (!D()) {
92
+ if (!M()) {
93
93
  console.warn("[IdleTimeout](start) you should run this method on client side");
94
94
  return;
95
95
  }
@@ -108,7 +108,7 @@ class lt {
108
108
  this.isDestroy = !1, this.isIdle = !1, this.remainingTime = 0, this.resetTimeout(), this.callback({ isIdle: this.isIdle });
109
109
  }
110
110
  destroy() {
111
- if (!D()) {
111
+ if (!M()) {
112
112
  console.warn("[IdleTimeout](destroy) you should run this method on client side");
113
113
  return;
114
114
  }
@@ -157,10 +157,10 @@ class ct {
157
157
  this.callback = e, this.options = {
158
158
  ...this.defaultOptions,
159
159
  ...t
160
- }, this.eventHandlerFunction = this.eventHandler.bind(this), D() && this.start();
160
+ }, this.eventHandlerFunction = this.eventHandler.bind(this), M() && this.start();
161
161
  }
162
162
  start() {
163
- if (!D()) {
163
+ if (!M()) {
164
164
  console.warn("[UserVisibility](start) you should run this method on client side");
165
165
  return;
166
166
  }
@@ -779,16 +779,16 @@ const gt = {
779
779
  },
780
780
  emits: ["close", "previous", "next", "before-close"],
781
781
  setup(s, { emit: e }) {
782
- const t = e, i = w(() => import("./MazSpinner-zUQyynC3.mjs")), o = w(() => import("./x-mark-pPwcH6Hz.mjs")), m = w(() => import("./chevron-left-48sF6neb.mjs"));
782
+ const t = e, i = z(() => import("./MazSpinner-DJzZmr-v.mjs")), o = z(() => import("./x-mark-pPwcH6Hz.mjs")), m = z(() => import("./chevron-left-48sF6neb.mjs"));
783
783
  let d;
784
784
  tt(async () => {
785
785
  d = await import("vue-scrollto");
786
786
  });
787
- const l = s, f = h(!1), p = h(!1), y = h(!1), v = h(!1), M = h(!1), I = h(!1), T = h(!1), C = h(l.clickedElement instanceof HTMLImageElement), G = h(l.src), B = h(l.alt), F = h(), c = h(), k = g(
788
- () => C.value && l.animated && !l.scaleAnimation
787
+ const l = s, f = h(!1), p = h(!1), y = h(!1), v = h(!1), L = h(!1), b = h(!1), k = h(!1), S = h(l.clickedElement instanceof HTMLImageElement), G = h(l.src), B = h(l.alt), F = h(), c = h(), A = g(
788
+ () => S.value && l.animated && !l.scaleAnimation
789
789
  ), N = g(
790
- () => (C.value || !l.animated) && !l.scaleAnimation
791
- ), _ = h(!1), le = g(() => I.value ? `--is-zoomed maz-cursor-zoom-in maz-max-w-[none] ${_.value ? "maz-h-screen maz-w-auto" : "maz-h-auto maz-w-screen"}` : `cursor-zoom-out ${_.value ? "maz-w-screen maz-h-screen --is-landscape" : "maz-h-screen maz-w-auto"}`);
790
+ () => (S.value || !l.animated) && !l.scaleAnimation
791
+ ), _ = h(!1), le = g(() => b.value ? `--is-zoomed maz-cursor-zoom-in maz-max-w-[none] ${_.value ? "maz-h-screen maz-w-auto" : "maz-h-auto maz-w-screen"}` : `cursor-zoom-out ${_.value ? "maz-w-screen maz-h-screen --is-landscape" : "maz-h-screen maz-w-auto"}`);
792
792
  function ce() {
793
793
  p.value = !0, y.value = !1, v.value = !0;
794
794
  }
@@ -796,7 +796,7 @@ const gt = {
796
796
  t("before-close"), f.value = !1;
797
797
  }
798
798
  function Q(r) {
799
- r.key === "Escape" && (r.preventDefault(), q()), (r.key === "ArrowLeft" || r.key === "ArrowRight") && (r.preventDefault(), S(r.key === "ArrowRight"));
799
+ r.key === "Escape" && (r.preventDefault(), q()), (r.key === "ArrowLeft" || r.key === "ArrowRight") && (r.preventDefault(), O(r.key === "ArrowRight"));
800
800
  }
801
801
  function ue() {
802
802
  document.documentElement.classList.add("--m-fullscreen-open");
@@ -812,56 +812,56 @@ const gt = {
812
812
  }
813
813
  async function de(r, n) {
814
814
  r.classList.remove(l.openInstanceClass), n.classList.add(l.openInstanceClass);
815
- const u = n.getAttribute("data-src"), b = n.getAttribute("data-alt");
816
- B.value = b ?? void 0, u && (G.value = u), p.value = !1, await X(300), p.value || (y.value = !0);
815
+ const u = n.getAttribute("data-src"), w = n.getAttribute("data-alt");
816
+ B.value = w ?? void 0, u && (G.value = u), p.value = !1, await X(300), p.value || (y.value = !0);
817
817
  }
818
- function S(r) {
818
+ function O(r) {
819
819
  const n = document.querySelector(
820
820
  `.m-fullscreen-img-instance.${l.openInstanceClass}`
821
821
  );
822
822
  if (n) {
823
- const u = W(), b = u.indexOf(n), O = r ? b + 1 : b - 1, A = u[J(u, O)];
824
- A && de(n, A), t(r ? "next" : "previous");
823
+ const u = W(), w = u.indexOf(n), P = r ? w + 1 : w - 1, x = u[J(u, P)];
824
+ x && de(n, x), t(r ? "next" : "previous");
825
825
  }
826
826
  }
827
827
  async function he(r) {
828
828
  const n = r.target;
829
- n.style.width = `${n.clientWidth}px`, n.style.height = `${n.clientHeight}px`, await X(0), I.value = !I.value, n.style.removeProperty("width"), n.style.removeProperty("height"), await X(0);
830
- const u = n.clientWidth / r.clientY, O = window.innerWidth / u - window.innerHeight / 2;
829
+ n.style.width = `${n.clientWidth}px`, n.style.height = `${n.clientHeight}px`, await X(0), b.value = !b.value, n.style.removeProperty("width"), n.style.removeProperty("height"), await X(0);
830
+ const u = n.clientWidth / r.clientY, P = window.innerWidth / u - window.innerHeight / 2;
831
831
  d.scrollTo(n, 200, {
832
832
  container: n.parentElement,
833
833
  easing: "linear",
834
- offset: I.value ? O : 0
834
+ offset: b.value ? P : 0
835
835
  });
836
836
  }
837
837
  Ee(async () => {
838
- await He(), document.addEventListener("keydown", Q), f.value = !0, y.value = !0, ue(), M.value = W().length > 1, c.value && (_.value = l.clickedElementBounds.height < l.clickedElementBounds.width);
838
+ await He(), document.addEventListener("keydown", Q), f.value = !0, y.value = !0, ue(), L.value = W().length > 1, c.value && (_.value = l.clickedElementBounds.height < l.clickedElementBounds.width);
839
839
  });
840
840
  function K() {
841
- c.value && (T.value = !0, c.value.style.removeProperty("margin-left"), c.value.style.removeProperty("margin-right"), c.value.style.opacity = "0.5", c.value.style.width = `${l.clickedElementBounds.width}px`, c.value.style.height = `${l.clickedElementBounds.height}px`, c.value.style.top = `${l.clickedElementBounds.top}px`, c.value.style.left = `${l.clickedElementBounds.left}px`);
841
+ c.value && (k.value = !0, c.value.style.removeProperty("margin-left"), c.value.style.removeProperty("margin-right"), c.value.style.opacity = "0.5", c.value.style.width = `${l.clickedElementBounds.width}px`, c.value.style.height = `${l.clickedElementBounds.height}px`, c.value.style.top = `${l.clickedElementBounds.top}px`, c.value.style.left = `${l.clickedElementBounds.left}px`);
842
842
  }
843
843
  async function ve() {
844
844
  if (await X(0), c.value) {
845
845
  c.value.style.opacity = "1", c.value.style.removeProperty("height"), c.value.style.removeProperty("width"), c.value.style.removeProperty("transform");
846
- const r = window.innerWidth, n = window.innerHeight, u = l.clickedElementBounds.height, b = l.clickedElementBounds.width;
846
+ const r = window.innerWidth, n = window.innerHeight, u = l.clickedElementBounds.height, w = l.clickedElementBounds.width;
847
847
  if (_.value) {
848
848
  c.value.style.left = "0px";
849
- const O = u * r / b, A = (n - O) / 2;
850
- c.value.style.top = `${A <= 0 ? 0 : A}px`;
849
+ const P = u * r / w, x = (n - P) / 2;
850
+ c.value.style.top = `${x <= 0 ? 0 : x}px`;
851
851
  } else {
852
852
  c.value.style.top = "0px";
853
- const O = b * n / u, A = (r - O) / 2;
854
- c.value.style.left = `${A <= 0 ? 0 : A}px`;
853
+ const P = w * n / u, x = (r - P) / 2;
854
+ c.value.style.left = `${x <= 0 ? 0 : x}px`;
855
855
  }
856
856
  }
857
857
  }
858
858
  function Y() {
859
- c.value && (c.value.style.removeProperty("top"), c.value.style.removeProperty("left"), c.value.style.marginLeft = "auto", c.value.style.marginRight = "auto", c.value.style.removeProperty("opacity")), T.value = !1;
859
+ c.value && (c.value.style.removeProperty("top"), c.value.style.removeProperty("left"), c.value.style.marginLeft = "auto", c.value.style.marginRight = "auto", c.value.style.removeProperty("opacity")), k.value = !1;
860
860
  }
861
861
  function fe() {
862
862
  if (c.value) {
863
863
  const { left: r, top: n } = c.value.getBoundingClientRect();
864
- c.value.style.left = `${r}px`, c.value.style.top = `${n}px`, c.value.style.width = `${c.value.width}px`, c.value.style.height = `${c.value.height}px`, T.value = !0;
864
+ c.value.style.left = `${r}px`, c.value.style.top = `${n}px`, c.value.style.width = `${c.value.width}px`, c.value.style.height = `${c.value.height}px`, k.value = !0;
865
865
  }
866
866
  }
867
867
  function ge() {
@@ -870,17 +870,17 @@ const gt = {
870
870
  }
871
871
  return De(() => {
872
872
  document.removeEventListener("keydown", Q), me();
873
- }), (r, n) => (z(), Z("div", {
873
+ }), (r, n) => (E(), Z("div", {
874
874
  ref_key: "FullscreenImgElement",
875
875
  ref: F,
876
876
  role: "button",
877
- class: re(["m-fullscreen-img", { "--animation-active": T.value }]),
877
+ class: re(["m-fullscreen-img", { "--animation-active": k.value }]),
878
878
  tabindex: "0",
879
- onClick: $(q, ["self"]),
880
- onKeypress: st($(q, ["prevent"]), ["esc"])
879
+ onClick: D(q, ["self"]),
880
+ onKeypress: st(D(q, ["prevent"]), ["esc"])
881
881
  }, [
882
- be(P(
883
- L(i),
882
+ be(H(
883
+ T(i),
884
884
  { class: "m-fullscreen-img-loader maz-h-16" },
885
885
  null,
886
886
  512
@@ -888,42 +888,42 @@ const gt = {
888
888
  ), [
889
889
  [we, y.value]
890
890
  ]),
891
- v.value && M.value ? (z(), Z("button", {
891
+ v.value && L.value ? (E(), Z("button", {
892
892
  key: 0,
893
893
  type: "button",
894
894
  class: "m-fullscreen-btn --next",
895
- onClick: n[0] || (n[0] = $((u) => S(!0), ["stop"]))
895
+ onClick: n[0] || (n[0] = D((u) => O(!0), ["stop"]))
896
896
  }, [
897
- P(L(m), { class: "maz-rotate-90 maz-text-2xl" })
898
- ])) : H("v-if", !0),
899
- f.value && v.value && M.value ? (z(), Z("button", {
897
+ H(T(m), { class: "maz-rotate-90 maz-text-2xl" })
898
+ ])) : $("v-if", !0),
899
+ f.value && v.value && L.value ? (E(), Z("button", {
900
900
  key: 1,
901
901
  type: "button",
902
902
  class: "m-fullscreen-btn --previous",
903
- onClick: n[1] || (n[1] = $((u) => S(!1), ["stop"]))
903
+ onClick: n[1] || (n[1] = D((u) => O(!1), ["stop"]))
904
904
  }, [
905
- P(L(m), { class: "maz-text-2xl" })
906
- ])) : H("v-if", !0),
907
- E("button", {
905
+ H(T(m), { class: "maz-text-2xl" })
906
+ ])) : $("v-if", !0),
907
+ I("button", {
908
908
  type: "button",
909
909
  class: "m-fullscreen-btn --close",
910
910
  onClick: q
911
911
  }, [
912
- P(L(o), { class: "maz-text-2xl" })
912
+ H(T(o), { class: "maz-text-2xl" })
913
913
  ]),
914
- E("div", bt, [
915
- P(Me, {
914
+ I("div", bt, [
915
+ H(Me, {
916
916
  name: N.value ? void 0 : "maz-scale-fade",
917
- onBeforeEnter: n[3] || (n[3] = (u) => k.value && K()),
918
- onEnter: n[4] || (n[4] = (u) => k.value && ve()),
919
- onAfterEnter: n[5] || (n[5] = (u) => k.value && Y()),
920
- onBeforeLeave: n[6] || (n[6] = (u) => k.value && fe()),
921
- onLeave: n[7] || (n[7] = (u) => k.value && K()),
917
+ onBeforeEnter: n[3] || (n[3] = (u) => A.value && K()),
918
+ onEnter: n[4] || (n[4] = (u) => A.value && ve()),
919
+ onAfterEnter: n[5] || (n[5] = (u) => A.value && Y()),
920
+ onBeforeLeave: n[6] || (n[6] = (u) => A.value && fe()),
921
+ onLeave: n[7] || (n[7] = (u) => A.value && K()),
922
922
  onAfterLeave: ge,
923
923
  persisted: ""
924
924
  }, {
925
925
  default: ne(() => [
926
- be(E("img", {
926
+ be(I("img", {
927
927
  id: "ZvImgElement",
928
928
  ref_key: "ImgElement",
929
929
  ref: c,
@@ -1182,15 +1182,15 @@ const Ye = {
1182
1182
  },
1183
1183
  emits: ["close", "click", "open"],
1184
1184
  setup(s, { emit: e }) {
1185
- const t = w(() => import("./MazBtn-i7A6854I.mjs")), i = w(() => import("./x-mark-pPwcH6Hz.mjs")), o = w(
1185
+ const t = z(() => import("./MazBtn-vQMWTV0k.mjs")), i = z(() => import("./x-mark-pPwcH6Hz.mjs")), o = z(
1186
1186
  () => import("./arrow-top-right-on-square-JGWhrxDH.mjs")
1187
- ), m = w(
1187
+ ), m = z(
1188
1188
  () => import("./exclamation-triangle-KCpIguWV.mjs")
1189
- ), d = w(
1189
+ ), d = z(
1190
1190
  () => import("./exclamation-circle-AoEMgPzE.mjs")
1191
- ), l = w(
1191
+ ), l = z(
1192
1192
  () => import("./information-circle-5aSd26ke.mjs")
1193
- ), f = w(() => import("./check-circle-JGd6LGss.mjs")), p = w(() => import("./link-CVsbXQMi.mjs")), y = h(), v = s, M = g(() => {
1193
+ ), f = z(() => import("./check-circle-JGd6LGss.mjs")), p = z(() => import("./link-CVsbXQMi.mjs")), y = h(), v = s, L = g(() => {
1194
1194
  switch (v.type) {
1195
1195
  case "danger":
1196
1196
  return m;
@@ -1203,7 +1203,7 @@ const Ye = {
1203
1203
  default:
1204
1204
  return;
1205
1205
  }
1206
- }), I = e, T = g(() => v.position.includes("top") ? "top" : "bottom"), C = g(() => v.position.includes("left") ? "left" : v.position.includes("right") ? "right" : "center"), G = g(() => C.value !== "center" ? C.value === "right" ? "m-slide-right" : "m-slide-left" : T.value === "top" ? "m-slide-top" : "m-slide-bottom"), B = h(!1), F = h(!1), c = h(), k = `m-toast-container --${T.value} --${C.value}`, N = `.${k.replaceAll(" ", ".")}`, { start: _, stop: le, pause: ce, resume: q, remainingTime: Q } = Dt({
1206
+ }), b = e, k = g(() => v.position.includes("top") ? "top" : "bottom"), S = g(() => v.position.includes("left") ? "left" : v.position.includes("right") ? "right" : "center"), G = g(() => S.value !== "center" ? S.value === "right" ? "m-slide-right" : "m-slide-left" : k.value === "top" ? "m-slide-top" : "m-slide-bottom"), B = h(!1), F = h(!1), c = h(), A = `m-toast-container --${k.value} --${S.value}`, N = `.${A.replaceAll(" ", ".")}`, { start: _, stop: le, pause: ce, resume: q, remainingTime: Q } = Dt({
1207
1207
  callback: Y,
1208
1208
  timeout: v.timeout
1209
1209
  });
@@ -1211,7 +1211,7 @@ const Ye = {
1211
1211
  const r = document.querySelector(N);
1212
1212
  if (!r && !r) {
1213
1213
  const n = document.body, u = document.createElement("div");
1214
- u.className = k, n.append(u);
1214
+ u.className = A, n.append(u);
1215
1215
  }
1216
1216
  }
1217
1217
  function me() {
@@ -1250,12 +1250,12 @@ const Ye = {
1250
1250
  }
1251
1251
  }
1252
1252
  );
1253
- function S(r) {
1254
- I("click", r), v.persistent || Y();
1253
+ function O(r) {
1254
+ b("click", r), v.persistent || Y();
1255
1255
  }
1256
1256
  async function he(r, n) {
1257
1257
  var u;
1258
- B.value = !0, await r(), B.value = !1, (u = v.action) != null && u.closeToast && S(n);
1258
+ B.value = !0, await r(), B.value = !1, (u = v.action) != null && u.closeToast && O(n);
1259
1259
  }
1260
1260
  function K(r) {
1261
1261
  v.noPauseOnHover || (r ? ce() : q());
@@ -1267,44 +1267,44 @@ const Ye = {
1267
1267
  ve(), F.value = !1;
1268
1268
  }
1269
1269
  function fe() {
1270
- I("open");
1270
+ b("open");
1271
1271
  }
1272
1272
  function ge() {
1273
1273
  var n;
1274
- I("close"), (n = y.value) == null || n.remove();
1274
+ b("close"), (n = y.value) == null || n.remove();
1275
1275
  const r = document.querySelector(N);
1276
1276
  r && !(r != null && r.hasChildNodes()) && r.remove();
1277
1277
  }
1278
1278
  return Ee(() => {
1279
1279
  ue(), W();
1280
- }), (r, n) => (z(), U(Me, {
1280
+ }), (r, n) => (E(), U(Me, {
1281
1281
  name: G.value,
1282
1282
  onAfterLeave: ge,
1283
1283
  onAfterEnter: fe,
1284
1284
  persisted: ""
1285
1285
  }, {
1286
1286
  default: ne(() => [
1287
- be(E(
1287
+ be(I(
1288
1288
  "button",
1289
1289
  {
1290
1290
  ref_key: "Toaster",
1291
1291
  ref: y,
1292
- class: re(["m-toast", [`--${s.type}`, `--${T.value}`, `--${C.value}`, { "maz-pb-1": s.timeout }]]),
1292
+ class: re(["m-toast", [`--${s.type}`, `--${k.value}`, `--${S.value}`, { "maz-pb-1": s.timeout }]]),
1293
1293
  role: "alert",
1294
1294
  onMouseover: n[2] || (n[2] = (u) => K(!0)),
1295
1295
  onMouseleave: n[3] || (n[3] = (u) => K(!1)),
1296
- onClick: n[4] || (n[4] = $((u) => {
1297
- var b;
1298
- return s.link && !((b = s.link) != null && b.closeToast) ? void 0 : S(u);
1296
+ onClick: n[4] || (n[4] = D((u) => {
1297
+ var w;
1298
+ return s.link && !((w = s.link) != null && w.closeToast) ? void 0 : O(u);
1299
1299
  }, ["stop"]))
1300
1300
  },
1301
1301
  [
1302
- M.value ? (z(), U(ot(M.value), {
1302
+ L.value ? (E(), U(ot(L.value), {
1303
1303
  key: 0,
1304
1304
  class: "maz-text-2xl"
1305
- })) : H("v-if", !0),
1306
- E("div", Mt, [
1307
- E(
1305
+ })) : $("v-if", !0),
1306
+ I("div", Mt, [
1307
+ I(
1308
1308
  "p",
1309
1309
  Bt,
1310
1310
  pe(s.message),
@@ -1312,14 +1312,14 @@ const Ye = {
1312
1312
  /* TEXT */
1313
1313
  )
1314
1314
  ]),
1315
- s.action ? (z(), U(L(t), {
1315
+ s.action ? (E(), U(T(t), {
1316
1316
  key: 1,
1317
1317
  "data-test": "action-btn",
1318
1318
  color: s.type,
1319
1319
  pastel: "",
1320
1320
  loading: B.value,
1321
1321
  size: "sm",
1322
- onClick: n[0] || (n[0] = $((u) => he(s.action.func, u), ["stop"]))
1322
+ onClick: n[0] || (n[0] = D((u) => he(s.action.func, u), ["stop"]))
1323
1323
  }, {
1324
1324
  default: ne(() => [
1325
1325
  nt(
@@ -1330,8 +1330,8 @@ const Ye = {
1330
1330
  ]),
1331
1331
  _: 1
1332
1332
  /* STABLE */
1333
- }, 8, ["color", "loading"])) : H("v-if", !0),
1334
- s.link ? (z(), U(L(t), {
1333
+ }, 8, ["color", "loading"])) : $("v-if", !0),
1334
+ s.link ? (E(), U(T(t), {
1335
1335
  key: 2,
1336
1336
  "data-test": "link-btn",
1337
1337
  color: s.type,
@@ -1343,18 +1343,18 @@ const Ye = {
1343
1343
  default: ne(() => {
1344
1344
  var u;
1345
1345
  return [
1346
- E("div", Ft, [
1347
- s.link.text ? (z(), Z(
1346
+ I("div", Ft, [
1347
+ s.link.text ? (E(), Z(
1348
1348
  "span",
1349
1349
  Nt,
1350
1350
  pe(s.link.text),
1351
1351
  1
1352
1352
  /* TEXT */
1353
- )) : H("v-if", !0),
1354
- ((u = s.link) == null ? void 0 : u.target) == "_blank" ? (z(), U(L(o), {
1353
+ )) : $("v-if", !0),
1354
+ ((u = s.link) == null ? void 0 : u.target) == "_blank" ? (E(), U(T(o), {
1355
1355
  key: 1,
1356
1356
  class: "maz-text-xl"
1357
- })) : (z(), U(L(p), {
1357
+ })) : (E(), U(T(p), {
1358
1358
  key: 2,
1359
1359
  class: "maz-text-xl"
1360
1360
  }))
@@ -1363,16 +1363,16 @@ const Ye = {
1363
1363
  }),
1364
1364
  _: 1
1365
1365
  /* STABLE */
1366
- }, 8, ["color", "href", "target"])) : H("v-if", !0),
1367
- s.persistent ? H("v-if", !0) : (z(), Z("button", {
1366
+ }, 8, ["color", "href", "target"])) : $("v-if", !0),
1367
+ s.persistent ? $("v-if", !0) : (E(), Z("button", {
1368
1368
  key: 3,
1369
1369
  class: "--close",
1370
- onClick: n[1] || (n[1] = $((u) => S(u), ["stop"]))
1370
+ onClick: n[1] || (n[1] = D((u) => O(u), ["stop"]))
1371
1371
  }, [
1372
- P(L(i), { class: "--icon maz-text-xl" })
1372
+ H(T(i), { class: "--icon maz-text-xl" })
1373
1373
  ])),
1374
- E("div", _t, [
1375
- E(
1374
+ I("div", _t, [
1375
+ I(
1376
1376
  "div",
1377
1377
  {
1378
1378
  style: rt({
@@ -1511,11 +1511,18 @@ class Qt {
1511
1511
  const f = l.getAttribute("data-maz-aos-once"), p = typeof f == "string" ? f === "true" : this.options.animation.once;
1512
1512
  if (typeof this.options.observer.threshold == "number" && i.intersectionRatio > this.options.observer.threshold) {
1513
1513
  const y = l.getAttribute("data-maz-aos-duration"), v = l.getAttribute("data-maz-aos-delay");
1514
- y || (l.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
1514
+ if (y || (l.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
1515
1515
  l.style.transitionDuration = "0";
1516
1516
  }, 1e3)), v || (l.style.transitionDelay = `${this.options.animation.delay}ms`, setTimeout(() => {
1517
1517
  l.style.transitionDelay = "0";
1518
- }, 1e3)), l.classList.add("maz-aos-animate"), p && t.unobserve(l);
1518
+ }, 1e3)), l.classList.add("maz-aos-animate"), p) {
1519
+ const L = l.getAttribute("data-maz-aos-anchor");
1520
+ if (L) {
1521
+ const b = document.querySelector(L);
1522
+ b && t.unobserve(b);
1523
+ }
1524
+ t.unobserve(l);
1525
+ }
1519
1526
  } else
1520
1527
  l.classList.remove("maz-aos-animate");
1521
1528
  }
@@ -1536,7 +1543,7 @@ class Qt {
1536
1543
  }
1537
1544
  }
1538
1545
  runAnimations() {
1539
- if (D())
1546
+ if (M())
1540
1547
  return this.handleObserver();
1541
1548
  console.warn("[MazAos](runAnimations) should be executed on client side");
1542
1549
  }
@@ -1544,7 +1551,7 @@ class Qt {
1544
1551
  let oe;
1545
1552
  const ps = {
1546
1553
  install: (s, e) => {
1547
- oe = new Qt(e), s.provide("aos", oe), D() && (e != null && e.router ? e.router.afterEach(async () => {
1554
+ oe = new Qt(e), s.provide("aos", oe), M() && (e != null && e.router ? e.router.afterEach(async () => {
1548
1555
  oe.runAnimations();
1549
1556
  }) : oe.runAnimations());
1550
1557
  }
@@ -1555,7 +1562,7 @@ const ps = {
1555
1562
  storageThemeValueDark: "dark",
1556
1563
  storageThemeValueLight: "light",
1557
1564
  storageThemeValueSystem: "system"
1558
- }, R = h("system"), x = h("system");
1565
+ }, R = h("system"), C = h("system");
1559
1566
  function Ie({
1560
1567
  darkClass: s,
1561
1568
  lightClass: e,
@@ -1564,7 +1571,7 @@ function Ie({
1564
1571
  setLocalStorageValue: o = !0,
1565
1572
  setSelectedTheme: m = !0
1566
1573
  }) {
1567
- document.documentElement.classList.remove(e), document.documentElement.classList.add(s), R.value = i, m && (x.value = i), o && (localStorage[t] = i);
1574
+ document.documentElement.classList.remove(e), document.documentElement.classList.add(s), R.value = i, m && (C.value = i), o && (localStorage[t] = i);
1568
1575
  }
1569
1576
  function Te({
1570
1577
  darkClass: s,
@@ -1574,10 +1581,10 @@ function Te({
1574
1581
  setLocalStorageValue: o = !0,
1575
1582
  setSelectedTheme: m = !0
1576
1583
  }) {
1577
- document.documentElement.classList.remove(s), document.documentElement.classList.add(e), R.value = i, m && (x.value = i), o && (localStorage[t] = i);
1584
+ document.documentElement.classList.remove(s), document.documentElement.classList.add(e), R.value = i, m && (C.value = i), o && (localStorage[t] = i);
1578
1585
  }
1579
1586
  function Xe(s) {
1580
- document.documentElement.classList.remove(s.darkClass), document.documentElement.classList.remove(s.lightClass), R.value = s.storageThemeValueSystem, x.value = s.storageThemeValueSystem, s.setLocalStorageValue && (localStorage[s.storageThemeKey] = s.storageThemeValueSystem), Ze({ ...s, setSelectedTheme: !1 });
1587
+ document.documentElement.classList.remove(s.darkClass), document.documentElement.classList.remove(s.lightClass), R.value = s.storageThemeValueSystem, C.value = s.storageThemeValueSystem, s.setLocalStorageValue && (localStorage[s.storageThemeKey] = s.storageThemeValueSystem), Ze({ ...s, setSelectedTheme: !1 });
1581
1588
  }
1582
1589
  function Se() {
1583
1590
  return window.matchMedia("(prefers-color-scheme: dark)").matches;
@@ -1606,9 +1613,9 @@ function ys(s = Ce) {
1606
1613
  const e = {
1607
1614
  ...Ce,
1608
1615
  ...s
1609
- }, t = g(() => x.value === e.storageThemeValueDark), i = g(() => x.value === e.storageThemeValueLight), o = g(() => x.value === e.storageThemeValueSystem);
1616
+ }, t = g(() => C.value === e.storageThemeValueDark), i = g(() => C.value === e.storageThemeValueLight), o = g(() => C.value === e.storageThemeValueSystem);
1610
1617
  return Ee(() => {
1611
- localStorage[e.storageThemeKey] && (R.value = localStorage[e.storageThemeKey], x.value = localStorage[e.storageThemeKey]);
1618
+ localStorage[e.storageThemeKey] && (R.value = localStorage[e.storageThemeKey], C.value = localStorage[e.storageThemeKey]);
1612
1619
  }), {
1613
1620
  autoSetTheme: () => Ze(e),
1614
1621
  toggleTheme: () => Jt(e),
@@ -1619,7 +1626,7 @@ function ys(s = Ce) {
1619
1626
  hasLightTheme: i,
1620
1627
  hasSystemTheme: o,
1621
1628
  theme: R,
1622
- selectedTheme: x
1629
+ selectedTheme: C
1623
1630
  };
1624
1631
  }
1625
1632
  const bs = ({
@@ -1677,7 +1684,7 @@ export {
1677
1684
  ct as U,
1678
1685
  Zt as W,
1679
1686
  Ke as _,
1680
- D as a,
1687
+ M as a,
1681
1688
  hs as b,
1682
1689
  as as c,
1683
1690
  ns as d,