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

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 (55) hide show
  1. package/components/MazChecklist.d.ts +1 -4
  2. package/components/MazChecklist.mjs +1 -1
  3. package/components/MazDropdown.d.ts +2 -1
  4. package/components/MazDropdown.mjs +2 -325
  5. package/components/MazPhoneNumberInput.mjs +1 -1
  6. package/components/MazSelect.mjs +1 -1
  7. package/components/MazTable.mjs +1 -1
  8. package/components/assets/MazPhoneNumberInput.css +1 -1
  9. package/components/assets/MazSelect.css +1 -1
  10. package/components/chunks/{MazBtn-cDJlUVVY.mjs → MazBtn-BJxI5VQw.mjs} +1 -1
  11. package/components/chunks/{MazBtn-BMYXMZuX.mjs → MazBtn-C_BULYqZ.mjs} +2 -2
  12. package/components/chunks/{MazBtn-2VKM1wZu.mjs → MazBtn-Sj-Pq0YV.mjs} +2 -2
  13. package/components/chunks/{MazBtn-DfqRZvbB.mjs → MazBtn-cUQ1Tykp.mjs} +2 -2
  14. package/components/chunks/{MazBtn-BijEMn4r.mjs → MazBtn-psosbsi3.mjs} +2 -2
  15. package/components/chunks/{MazCheckbox-DMogZVHl.mjs → MazCheckbox-BBL0vgqe.mjs} +1 -1
  16. package/components/chunks/{MazCheckbox-Db6sPUbV.mjs → MazCheckbox-BTl370Qq.mjs} +1 -1
  17. package/components/chunks/{MazCheckbox-B22OcHt8.mjs → MazCheckbox-DTU2jEkC.mjs} +1 -1
  18. package/components/chunks/{MazChecklist-C95Y4Hb-.mjs → MazChecklist-CQv-sXP1.mjs} +79 -79
  19. package/components/chunks/MazDropdown-peYVJsXv.mjs +441 -0
  20. package/components/chunks/{MazIcon-BF5TFzse.mjs → MazIcon-BdQtfzuy.mjs} +1 -1
  21. package/components/chunks/MazIcon-Bk4mYF1h.mjs +4 -0
  22. package/components/chunks/{MazInput-DC3S-CVu.mjs → MazInput-eOtg1L9F.mjs} +2 -2
  23. package/components/chunks/{MazInput-NE6H-10w.mjs → MazInput-geBqeT4i.mjs} +2 -2
  24. package/components/chunks/{MazLink-C_3Wya94.mjs → MazLink-Cd4MwIC9.mjs} +1 -1
  25. package/components/chunks/{MazLoadingBar-DdjHRC7g.mjs → MazLoadingBar-DHcYPXlE.mjs} +1 -1
  26. package/components/chunks/{MazPhoneNumberInput-BbssOUzo.mjs → MazPhoneNumberInput-BTm8A0bL.mjs} +33 -32
  27. package/components/chunks/{MazSelect-CDV9Fx6m.mjs → MazSelect-Cnz3p3n2.mjs} +41 -40
  28. package/components/chunks/{MazSelect-BJ07NVXQ.mjs → MazSelect-DOiqBTNY.mjs} +57 -56
  29. package/components/chunks/{MazSpinner-CykRbNHD.mjs → MazSpinner-B1PXhYRx.mjs} +1 -1
  30. package/components/chunks/{MazSpinner-CEFbkZkM.mjs → MazSpinner-B7tPZpHw.mjs} +1 -1
  31. package/components/chunks/{MazSpinner-Dmkr_r9u.mjs → MazSpinner-DOSj2BnX.mjs} +1 -1
  32. package/components/chunks/{MazSpinner-CfiIXW8y.mjs → MazSpinner-Dhg-s-9s.mjs} +1 -1
  33. package/components/chunks/{MazTable-BJDPdIJB.mjs → MazTable-BKdEx63E.mjs} +1 -1
  34. package/components/chunks/{MazTableCell-DILuUCTe.mjs → MazTableCell-CozcugiL.mjs} +1 -1
  35. package/components/chunks/{MazTableRow-D6H6-c8J.mjs → MazTableRow-bLFpjzu1.mjs} +1 -1
  36. package/components/chunks/{MazTableTitle-Ch-nyY1E.mjs → MazTableTitle-Qk239mu9.mjs} +1 -1
  37. package/modules/chunks/{MazBtn-R7z-Hxp-.cjs → MazBtn-D7el03Rl.cjs} +1 -1
  38. package/modules/chunks/{MazBtn-QVmZ90t5.mjs → MazBtn-D8uOirkn.mjs} +2 -2
  39. package/modules/chunks/{MazIcon-CKCoY05P.cjs → MazIcon-B8BoiF7R.cjs} +1 -1
  40. package/modules/chunks/{MazIcon-DJfEPmBG.mjs → MazIcon-C6zDSPgJ.mjs} +1 -1
  41. package/modules/chunks/{MazSpinner-DYT43E6e.cjs → MazSpinner-B-4tL9pK.cjs} +1 -1
  42. package/modules/chunks/{MazSpinner-C95OqwKl.mjs → MazSpinner-BvJydaeF.mjs} +1 -1
  43. package/modules/chunks/{index-CjsYU5rv.mjs → index-Bf4X7amE.mjs} +29 -23
  44. package/modules/chunks/index-F0B533E8.cjs +124 -0
  45. package/modules/index.cjs +1 -1
  46. package/modules/index.mjs +1 -1
  47. package/nuxt/index.json +1 -1
  48. package/package.json +1 -1
  49. package/types/components/MazChecklist.vue.d.ts +1 -4
  50. package/types/components/MazDropdown.vue.d.ts +2 -1
  51. package/types/modules/composables/useFormValidator/types.d.ts +6 -6
  52. package/types/modules/composables/useFormValidator/useFormField.d.ts +2 -2
  53. package/types/modules/composables/useFormValidator/useFormValidator.d.ts +3 -3
  54. package/types/modules/composables/useFormValidator/utils.d.ts +5 -5
  55. package/modules/chunks/index-oVi9-l4o.cjs +0 -124
@@ -1,4 +1,4 @@
1
- import { useId as Me, computed as p, defineComponent as he, defineAsyncComponent as A, ref as V, onMounted as Te, useSlots as Ee, openBlock as m, createElementBlock as k, normalizeClass as q, normalizeStyle as x, createElementVNode as E, renderSlot as U, createBlock as K, unref as b, resolveDynamicComponent as me, createCommentVNode as g, withDirectives as be, mergeProps as ge, toHandlers as Oe, vModelDynamic as De, createTextVNode as Ne, toDisplayString as de, withModifiers as F, withCtx as _, createVNode as H, useCssVars as Pe, onBeforeMount as Fe, nextTick as se, Transition as He, Fragment as ve, renderList as qe } from "vue";
1
+ import { useId as Me, computed as p, defineComponent as he, defineAsyncComponent as A, ref as V, onMounted as Te, useSlots as Ee, openBlock as m, createElementBlock as k, normalizeClass as H, normalizeStyle as x, createElementVNode as E, renderSlot as q, createBlock as K, unref as b, resolveDynamicComponent as me, createCommentVNode as g, withDirectives as be, mergeProps as ge, toHandlers as Oe, vModelDynamic as De, createTextVNode as Ne, toDisplayString as de, withModifiers as P, withCtx as _, createVNode as F, useCssVars as Pe, onBeforeMount as Fe, nextTick as se, Transition as He, Fragment as ve, renderList as qe } from "vue";
2
2
  import '../assets/MazSelect.css';function ze({
3
3
  componentName: u,
4
4
  providedId: r
@@ -117,8 +117,8 @@ function ke(u, r, l) {
117
117
  if (s && s.length > 0) {
118
118
  for (const $ of s)
119
119
  if (!d && u.target instanceof HTMLElement) {
120
- const W = (y = document.querySelector($)) == null ? void 0 : y.getAttribute("id");
121
- d = u.target.getAttribute("id") === W;
120
+ const U = (y = document.querySelector($)) == null ? void 0 : y.getAttribute("id");
121
+ d = u.target.getAttribute("id") === U;
122
122
  }
123
123
  }
124
124
  !r.contains(u.target) && !d && (t == null || t());
@@ -204,7 +204,7 @@ const Xe = {
204
204
  },
205
205
  emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
206
206
  setup(u, { emit: r }) {
207
- const l = u, t = r, s = A(() => import("./MazBtn-BMYXMZuX.mjs")), d = A(() => import("./MazIcon-BbvBov5G.mjs")), y = A(() => import("./eye-slash-BoO00xzs.mjs")), $ = A(() => import("./eye-f8zAUc30.mjs")), W = A(() => import("./check-C9Q_W85g.mjs")), z = V(!1), f = V(!1), O = V(), te = ze({
207
+ const l = u, t = r, s = A(() => import("./MazBtn-C_BULYqZ.mjs")), d = A(() => import("./MazIcon-BbvBov5G.mjs")), y = A(() => import("./eye-slash-BoO00xzs.mjs")), $ = A(() => import("./eye-f8zAUc30.mjs")), U = A(() => import("./check-C9Q_W85g.mjs")), z = V(!1), f = V(!1), O = V(), te = ze({
208
208
  componentName: "MazInput",
209
209
  providedId: l.id
210
210
  });
@@ -240,7 +240,7 @@ const Xe = {
240
240
  }
241
241
  return "--default-border";
242
242
  }
243
- }), j = Ee(), Z = p(() => {
243
+ }), W = Ee(), Z = p(() => {
244
244
  const { required: o, placeholder: h } = l;
245
245
  if (h)
246
246
  return o ? `${h} *` : h;
@@ -258,14 +258,14 @@ const Xe = {
258
258
  const L = p({
259
259
  get: () => l.modelValue,
260
260
  set: (o) => D(o)
261
- }), Q = p(() => (!!l.label || !!l.hint) && (f.value || !!J.value || !!l.placeholder || ["date", "month", "week"].includes(l.type))), X = p(() => !!l.label || !!l.hint);
261
+ }), j = p(() => (!!l.label || !!l.hint) && (f.value || !!J.value || !!l.placeholder || ["date", "month", "week"].includes(l.type))), X = p(() => !!l.label || !!l.hint);
262
262
  function Y() {
263
- return !!j["right-icon"] || G.value || !!j["valid-button"] || l.validButton || !!l.rightIcon;
263
+ return !!W["right-icon"] || G.value || !!W["valid-button"] || l.validButton || !!l.rightIcon;
264
264
  }
265
265
  function B() {
266
- return !!j["left-icon"] || !!l.leftIcon;
266
+ return !!W["left-icon"] || !!l.leftIcon;
267
267
  }
268
- function R(o) {
268
+ function Q(o) {
269
269
  t("focus", o), f.value = !0;
270
270
  }
271
271
  function le(o) {
@@ -280,10 +280,10 @@ const Xe = {
280
280
  return (o, h) => (m(), k(
281
281
  "div",
282
282
  {
283
- class: q(["m-input", [
283
+ class: H(["m-input", [
284
284
  {
285
285
  "--is-focused": f.value || o.borderActive,
286
- "--should-up": Q.value,
286
+ "--should-up": j.value,
287
287
  "--has-label": X.value,
288
288
  "--is-disabled": o.disabled,
289
289
  "--is-readonly": o.readonly,
@@ -301,7 +301,7 @@ const Xe = {
301
301
  E(
302
302
  "div",
303
303
  {
304
- class: q(["m-input-wrapper", [
304
+ class: H(["m-input-wrapper", [
305
305
  o.inputClasses,
306
306
  I.value,
307
307
  o.roundedSize ? `--rounded-${o.roundedSize}` : { "maz-rounded": !o.noRadius }
@@ -309,7 +309,7 @@ const Xe = {
309
309
  },
310
310
  [
311
311
  B() ? (m(), k("div", Xe, [
312
- o.$slots["left-icon"] || o.leftIcon ? U(o.$slots, "left-icon", { key: 0 }, () => [
312
+ o.$slots["left-icon"] || o.leftIcon ? q(o.$slots, "left-icon", { key: 0 }, () => [
313
313
  typeof o.leftIcon == "string" ? (m(), K(b(d), {
314
314
  key: 0,
315
315
  name: o.leftIcon,
@@ -338,7 +338,7 @@ const Xe = {
338
338
  class: "m-input-input"
339
339
  }, Oe({
340
340
  blur: le,
341
- focus: R,
341
+ focus: Q,
342
342
  change: ae,
343
343
  input: M
344
344
  }, !0), {
@@ -350,7 +350,7 @@ const Xe = {
350
350
  "span",
351
351
  {
352
352
  key: 0,
353
- class: q(["m-input-label", [
353
+ class: H(["m-input-label", [
354
354
  {
355
355
  "maz-text-danger-600": o.error,
356
356
  "maz-text-success-600": o.success,
@@ -371,7 +371,7 @@ const Xe = {
371
371
  )) : g("v-if", !0)
372
372
  ]),
373
373
  Y() ? (m(), k("div", et, [
374
- o.$slots["right-icon"] || o.rightIcon ? U(o.$slots, "right-icon", { key: 0 }, () => [
374
+ o.$slots["right-icon"] || o.rightIcon ? q(o.$slots, "right-icon", { key: 0 }, () => [
375
375
  typeof o.rightIcon == "string" ? (m(), K(b(d), {
376
376
  key: 0,
377
377
  name: o.rightIcon,
@@ -386,7 +386,7 @@ const Xe = {
386
386
  color: "transparent",
387
387
  tabindex: "-1",
388
388
  size: "mini",
389
- onClick: h[2] || (h[2] = F((T) => z.value = !z.value, ["stop"]))
389
+ onClick: h[2] || (h[2] = P((T) => z.value = !z.value, ["stop"]))
390
390
  }, {
391
391
  default: _(() => [
392
392
  z.value ? (m(), K(b(y), {
@@ -400,8 +400,8 @@ const Xe = {
400
400
  _: 1
401
401
  /* STABLE */
402
402
  })) : g("v-if", !0),
403
- o.$slots["valid-button"] || o.validButton ? U(o.$slots, "valid-button", { key: 2 }, () => [
404
- H(b(s), {
403
+ o.$slots["valid-button"] || o.validButton ? q(o.$slots, "valid-button", { key: 2 }, () => [
404
+ F(b(s), {
405
405
  color: "transparent",
406
406
  disabled: o.disabled,
407
407
  tabindex: "-1",
@@ -411,7 +411,7 @@ const Xe = {
411
411
  type: "submit"
412
412
  }, {
413
413
  default: _(() => [
414
- H(b(W), { class: "maz-text-2xl maz-text-normal" })
414
+ F(b(U), { class: "maz-text-2xl maz-text-normal" })
415
415
  ]),
416
416
  _: 1
417
417
  /* STABLE */
@@ -465,14 +465,14 @@ const Xe = {
465
465
  emits: ["close", "open", "blur", "focus", "change", "input", "update:model-value", "selected-option"],
466
466
  setup(u, { expose: r, emit: l }) {
467
467
  Pe((e) => ({
468
- cb149e58: oe.value,
469
- "215ff493": te.value,
470
- "64d6cfbb": G.value
468
+ fba4bd7a: oe.value,
469
+ "2796b77c": te.value,
470
+ d1bcc1ac: G.value
471
471
  }));
472
- const t = u, s = l, d = A(() => import("./MazCheckbox-DMogZVHl.mjs")), y = A(() => import("./magnifying-glass--nBiyXot.mjs")), $ = A(() => import("./chevron-down-BkvtON3b.mjs")), W = A(() => import("./no-symbol-CIgKzsrB.mjs"));
472
+ const t = u, s = l, d = A(() => import("./MazCheckbox-BBL0vgqe.mjs")), y = A(() => import("./magnifying-glass--nBiyXot.mjs")), $ = A(() => import("./chevron-down-BkvtON3b.mjs")), U = A(() => import("./no-symbol-CIgKzsrB.mjs"));
473
473
  r({
474
474
  /** Method to open the option list */
475
- openList: P,
475
+ openList: R,
476
476
  /** Method to close the option list */
477
477
  closeList: N
478
478
  });
@@ -484,7 +484,7 @@ const Xe = {
484
484
  () => O.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
485
485
  ), oe = p(
486
486
  () => O.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
487
- ), I = p(() => z.value || t.open), j = ze({
487
+ ), I = p(() => z.value || t.open), W = ze({
488
488
  componentName: "MazSelect",
489
489
  providedId: t.id
490
490
  });
@@ -526,11 +526,11 @@ const Xe = {
526
526
  var e;
527
527
  (e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), ie();
528
528
  });
529
- const L = V(), Q = V(), X = V(), Y = V();
529
+ const L = V(), j = V(), X = V(), Y = V();
530
530
  function B(e) {
531
531
  return e == null;
532
532
  }
533
- function R(e) {
533
+ function Q(e) {
534
534
  var i;
535
535
  return (((i = D.value) == null ? void 0 : i.some(
536
536
  (n) => n[t.optionValueKey] === e[t.optionValueKey]
@@ -574,16 +574,16 @@ const Xe = {
574
574
  return e == null ? void 0 : e.preventDefault();
575
575
  await se(), z.value = !1, f.value = 0, s("close", e);
576
576
  }
577
- async function P(e) {
577
+ async function R(e) {
578
578
  t.disabled || I.value || (e == null || e.preventDefault(), z.value = !0, await ne(), s("focus", e), s("open", z.value));
579
579
  }
580
580
  function ce() {
581
581
  var e, a;
582
- (a = ((e = Q.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.focus();
582
+ (a = ((e = j.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.focus();
583
583
  }
584
584
  function Se() {
585
585
  var e, a;
586
- (a = ((e = Q.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.dispatchEvent(new Event("input"));
586
+ (a = ((e = j.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.dispatchEvent(new Event("input"));
587
587
  }
588
588
  function Ke(e) {
589
589
  z.value ? N(e) : ce();
@@ -604,7 +604,7 @@ const Xe = {
604
604
  }
605
605
  function Be(e) {
606
606
  const a = e.key;
607
- /^[\dA-Za-z\u0400-\u04FF]$/.test(a) ? (e.preventDefault(), P(e), t.search ? Ae(a) : $e(a)) : pe(e);
607
+ /^[\dA-Za-z\u0400-\u04FF]$/.test(a) ? (e.preventDefault(), R(e), t.search ? Ae(a) : $e(a)) : pe(e);
608
608
  }
609
609
  function pe(e, a = !0) {
610
610
  const i = e.code, n = ["ArrowUp", "ArrowDown"].includes(i), c = (a ? ["Enter", "Space"] : ["Enter"]).includes(i), v = i === "Escape" && I.value;
@@ -614,14 +614,15 @@ const Xe = {
614
614
  var c;
615
615
  e.preventDefault();
616
616
  const i = e.code;
617
- I.value || P(e);
617
+ I.value || R(e);
618
618
  const n = (c = S.value) == null ? void 0 : c.length;
619
619
  n && (typeof a == "number" ? a === n - 1 && i === "ArrowDown" ? f.value = 0 : a === 0 && i === "ArrowUp" ? f.value = n - 1 : f.value = i === "ArrowDown" ? a + 1 : a - 1 : f.value = i === "ArrowDown" ? 0 : n - 1, ne(f.value));
620
620
  }
621
621
  function Le(e, a) {
622
622
  var n, c, v;
623
- if (e.preventDefault(), !I.value)
624
- return P(e);
623
+ if (!I.value)
624
+ return;
625
+ e.preventDefault();
625
626
  const i = a ? ((n = S.value) == null ? void 0 : n[a]) ?? ((c = S.value) == null ? void 0 : c[0]) : (v = S.value) == null ? void 0 : v[0];
626
627
  B(i) || fe(i);
627
628
  }
@@ -666,7 +667,7 @@ const Xe = {
666
667
  {
667
668
  ref_key: "mazSelectElement",
668
669
  ref: L,
669
- class: q(["m-select", [
670
+ class: H(["m-select", [
670
671
  { "--is-open": I.value, "--disabled": e.disabled, "--block": e.block },
671
672
  t.class,
672
673
  `--${e.size}`
@@ -674,10 +675,10 @@ const Xe = {
674
675
  style: x(e.style)
675
676
  },
676
677
  [
677
- H(ye, ge({
678
- id: b(j),
678
+ F(ye, ge({
679
+ id: b(W),
679
680
  ref_key: "mazInputComponent",
680
- ref: Q,
681
+ ref: j,
681
682
  class: "m-select-input"
682
683
  }, e.$attrs, {
683
684
  required: e.required,
@@ -688,9 +689,9 @@ const Xe = {
688
689
  block: "",
689
690
  autocomplete: e.autocomplete,
690
691
  disabled: e.disabled,
691
- onFocus: F(P, ["prevent", "stop"]),
692
- onBlur: F(N, ["prevent", "stop"]),
693
- onClick: F(P, ["prevent", "stop"]),
692
+ onFocus: P(R, ["prevent", "stop"]),
693
+ onBlur: P(N, ["prevent", "stop"]),
694
+ onClick: P(R, ["prevent", "stop"]),
694
695
  onChange: a[0] || (a[0] = (n) => s("change", n)),
695
696
  onInput: a[1] || (a[1] = (n) => s("input", n)),
696
697
  onKeydown: Be
@@ -701,15 +702,15 @@ const Xe = {
701
702
  type: "button",
702
703
  class: "m-select-input__toggle-button maz-custom",
703
704
  "aria-label": `${I.value ? "collapse" : "expand"} list of options`,
704
- onClick: F(Ke, ["stop"])
705
+ onClick: P(Ke, ["stop"])
705
706
  }, [
706
- H(b($), { class: "m-select-chevron maz-text-xl" })
707
+ F(b($), { class: "m-select-chevron maz-text-xl" })
707
708
  ], 8, ot)
708
709
  ]),
709
710
  _: 1
710
711
  /* STABLE */
711
712
  }, 16, ["id", "required", "border-active", "color", "model-value", "size", "autocomplete", "disabled"]),
712
- H(He, { name: ae.value }, {
713
+ F(He, { name: ae.value }, {
713
714
  default: _(() => [
714
715
  I.value ? (m(), k(
715
716
  "div",
@@ -717,7 +718,7 @@ const Xe = {
717
718
  key: 0,
718
719
  ref_key: "optionsListElement",
719
720
  ref: Y,
720
- class: q(["m-select-list", {
721
+ class: H(["m-select-list", {
721
722
  "--top": e.listPosition.includes("top"),
722
723
  "--left": e.listPosition.includes("left"),
723
724
  "--right": e.listPosition.includes("right"),
@@ -751,9 +752,9 @@ const Xe = {
751
752
  "left-icon": b(y),
752
753
  onKeydown: a[3] || (a[3] = (n) => pe(n, !1))
753
754
  }, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : g("v-if", !0),
754
- !S.value || S.value.length <= 0 ? U(e.$slots, "no-results", { key: 1 }, () => [
755
+ !S.value || S.value.length <= 0 ? q(e.$slots, "no-results", { key: 1 }, () => [
755
756
  E("span", lt, [
756
- H(b(W), { class: "maz-h-6 maz-w-6 maz-text-normal" })
757
+ F(b(U), { class: "maz-h-6 maz-w-6 maz-text-normal" })
757
758
  ])
758
759
  ], !0) : (m(), k("div", at, [
759
760
  (m(!0), k(
@@ -763,7 +764,7 @@ const Xe = {
763
764
  ve,
764
765
  { key: c },
765
766
  [
766
- n.label && n.isOptGroup ? U(e.$slots, "optgroup", {
767
+ n.label && n.isOptGroup ? q(e.$slots, "optgroup", {
767
768
  key: 0,
768
769
  label: n.label
769
770
  }, () => [
@@ -778,26 +779,26 @@ const Xe = {
778
779
  key: 1,
779
780
  tabindex: "-1",
780
781
  type: "button",
781
- class: q(["m-select-list-item maz-custom maz-flex-none", [
782
+ class: H(["m-select-list-item maz-custom maz-flex-none", [
782
783
  {
783
784
  "--is-keyboard-selected": f.value === c,
784
- "--is-selected": R(n),
785
+ "--is-selected": Q(n),
785
786
  "--is-none-value": B(n[e.optionValueKey])
786
787
  }
787
788
  ]]),
788
789
  style: x(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
789
- onClick: F((v) => fe(n), ["prevent", "stop"])
790
+ onClick: P((v) => fe(n), ["prevent", "stop"])
790
791
  }, [
791
792
  e.multiple ? (m(), K(b(d), {
792
793
  key: 0,
793
794
  tabindex: "-1",
794
- "model-value": R(n),
795
+ "model-value": Q(n),
795
796
  size: "sm",
796
797
  color: e.color
797
798
  }, null, 8, ["model-value", "color"])) : g("v-if", !0),
798
- U(e.$slots, "default", {
799
+ q(e.$slots, "default", {
799
800
  option: n,
800
- isSelected: R(n)
801
+ isSelected: Q(n)
801
802
  }, () => [
802
803
  E(
803
804
  "span",
@@ -835,7 +836,7 @@ const Xe = {
835
836
  ]);
836
837
  };
837
838
  }
838
- }), rt = /* @__PURE__ */ we(st, [["__scopeId", "data-v-e35a36a6"]]);
839
+ }), rt = /* @__PURE__ */ we(st, [["__scopeId", "data-v-3b483b12"]]);
839
840
  export {
840
841
  rt as M,
841
842
  we as _,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazSelect-BJ07NVXQ.mjs";
2
+ import { _ as a } from "./MazSelect-DOiqBTNY.mjs";
3
3
  import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
4
4
  __name: "MazSpinner",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazPhoneNumberInput-BbssOUzo.mjs";
2
+ import { _ as a } from "./MazPhoneNumberInput-BTm8A0bL.mjs";
3
3
  import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
4
4
  __name: "MazSpinner",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazChecklist-C95Y4Hb-.mjs";
2
+ import { _ as a } from "./MazChecklist-CQv-sXP1.mjs";
3
3
  import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
4
4
  __name: "MazSpinner",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazTable-BJDPdIJB.mjs";
2
+ import { _ as a } from "./MazTable-BKdEx63E.mjs";
3
3
  import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
4
4
  __name: "MazSpinner",
5
5
  props: {
@@ -68,7 +68,7 @@ import '../assets/MazTable.css';const Ee = {
68
68
  d3635954: a.tableLayout,
69
69
  "1dde4b1b": a.captionSide
70
70
  }));
71
- const a = N, $ = D, F = f(() => import("./arrow-up-DjSlktWl.mjs")), J = f(() => import("./chevron-double-left-D4-NpyrF.mjs")), W = f(() => import("./chevron-left-BqVOLRdC.mjs")), se = f(() => import("./magnifying-glass--nBiyXot.mjs")), w = f(() => import("./MazBtn-BijEMn4r.mjs")), X = f(() => import("./MazCheckbox-Db6sPUbV.mjs")), ne = f(() => import("./MazInput-DC3S-CVu.mjs")), ue = f(() => import("./MazLoadingBar-DdjHRC7g.mjs")), Z = f(() => import("./MazSelect-CDV9Fx6m.mjs")), L = f(() => import("./MazTableCell-DILuUCTe.mjs")), K = f(() => import("./MazTableRow-D6H6-c8J.mjs")), H = f(() => import("./MazTableTitle-Ch-nyY1E.mjs")), re = {
71
+ const a = N, $ = D, F = f(() => import("./arrow-up-DjSlktWl.mjs")), J = f(() => import("./chevron-double-left-D4-NpyrF.mjs")), W = f(() => import("./chevron-left-BqVOLRdC.mjs")), se = f(() => import("./magnifying-glass--nBiyXot.mjs")), w = f(() => import("./MazBtn-psosbsi3.mjs")), X = f(() => import("./MazCheckbox-BTl370Qq.mjs")), ne = f(() => import("./MazInput-eOtg1L9F.mjs")), ue = f(() => import("./MazLoadingBar-DHcYPXlE.mjs")), Z = f(() => import("./MazSelect-Cnz3p3n2.mjs")), L = f(() => import("./MazTableCell-CozcugiL.mjs")), K = f(() => import("./MazTableRow-bLFpjzu1.mjs")), H = f(() => import("./MazTableTitle-Qk239mu9.mjs")), re = {
72
72
  noResults: "No results",
73
73
  actionHeader: "Actions",
74
74
  searchByAllLabel: "All",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as o, openBlock as a, createElementBlock as l, normalizeClass as r, unref as s, renderSlot as n } from "vue";
2
2
  import { i as c } from "./inject-strict-BmiaNiwC.mjs";
3
- import { _ as m } from "./MazTable-BJDPdIJB.mjs";
3
+ import { _ as m } from "./MazTable-BKdEx63E.mjs";
4
4
  import '../assets/MazTableCell.css';const _ = /* @__PURE__ */ o({
5
5
  __name: "MazTableCell",
6
6
  setup(i) {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as n, openBlock as l, createElementBlock as c, normalizeClass as s, unref as e, renderSlot as d } from "vue";
2
2
  import { i as b } from "./inject-strict-BmiaNiwC.mjs";
3
- import { _ as p } from "./MazTable-BJDPdIJB.mjs";
3
+ import { _ as p } from "./MazTable-BKdEx63E.mjs";
4
4
  import '../assets/MazTableRow.css';const m = /* @__PURE__ */ n({
5
5
  __name: "MazTableRow",
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as a, openBlock as o, createElementBlock as r, normalizeClass as s, unref as l, renderSlot as n } from "vue";
2
2
  import { i as c } from "./inject-strict-BmiaNiwC.mjs";
3
- import { _ as i } from "./MazTable-BJDPdIJB.mjs";
3
+ import { _ as i } from "./MazTable-BKdEx63E.mjs";
4
4
  import '../assets/MazTableTitle.css';const m = /* @__PURE__ */ a({
5
5
  __name: "MazTableTitle",
6
6
  setup(_) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../assets/MazBtn.css');const e=require("vue"),C=require("./index-oVi9-l4o.cjs"),h={key:2,class:"m-btn-loader-container"},j=e.defineComponent({__name:"MazBtn",props:{variant:{default:"button"},size:{default:"md"},color:{default:"primary"},type:{default:"button"},rounded:{type:Boolean},roundedSize:{default:"lg"},noRounded:{type:Boolean},outline:{type:Boolean},pastel:{type:Boolean},block:{type:Boolean},noUnderline:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},fab:{type:Boolean},icon:{type:[String,Function,Object],default:void 0},leftIcon:{type:[String,Function,Object],default:void 0},rightIcon:{type:[String,Function,Object],default:void 0},noPadding:{type:Boolean},noElevation:{type:Boolean},justify:{default:"center"}},setup(u){const n=u,c=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-DYT43E6e.cjs"))),l=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazIcon-CKCoY05P.cjs"))),{href:d,to:m}=e.useAttrs(),a=e.useSlots(),r=e.computed(()=>d?"a":m?"router-link":"button"),f=e.computed(()=>n.pastel?`--${n.color}-pastel`:n.outline?`--${n.color}-outline`:`--${n.color}`),s=e.computed(()=>(n.loading||n.disabled)&&r.value==="button"),p=e.computed(()=>s.value?"--cursor-default":"--cursor-pointer"),y=e.computed(()=>`--is-${n.variant}`),v=e.computed(()=>n.loading&&n.variant==="button"),z=e.computed(()=>!!a["left-icon"]||n.leftIcon),i=e.computed(()=>!!a["right-icon"]||n.rightIcon),b=e.computed(()=>z.value||i.value),k=e.computed(()=>n.icon||!!a.icon),B=e.computed(()=>r.value==="button"?n.type:void 0),t=e.computed(()=>n.size==="xl"?"maz-text-3xl":n.size==="lg"?"maz-text-2xl":n.size==="md"?"maz-text-xl":n.size==="sm"?"maz-text-lg":n.size==="xs"?"maz-text-base":n.size==="mini"?"maz-text-sm":"md"),g=e.computed(()=>n.justify==="start"?"maz-justify-start":n.justify==="end"?"maz-justify-end":n.justify==="center"?"maz-justify-center":n.justify==="between"?"maz-justify-between":n.justify==="around"?"maz-justify-around":n.justify==="evenly"?"maz-justify-evenly":"maz-justify-center");return(o,S)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{disabled:s.value||void 0,class:e.normalizeClass(["m-btn",[`--${o.size}`,!o.fab&&!o.rounded&&o.roundedSize&&`--rounded-${o.roundedSize}`,f.value,p.value,y.value,g.value,{"--block":o.block,"--no-underline":o.noUnderline,"--fab":o.fab,"--loading":o.loading,"--disabled":s.value,"--icon":b.value,"--rounded":o.rounded,"--no-rounded":o.noRounded,"--no-padding":o.noPadding,"--no-elevation":o.noElevation}]]),type:B.value},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"left-icon",{},()=>[typeof o.leftIcon=="string"?(e.openBlock(),e.createBlock(e.unref(l),{key:0,name:o.leftIcon,class:e.normalizeClass([t.value])},null,8,["name","class"])):o.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.leftIcon),{key:1,class:e.normalizeClass([t.value])},null,8,["class"])):e.createCommentVNode("v-if",!0)],!0),k.value?e.renderSlot(o.$slots,"icon",{key:0},()=>[typeof o.icon=="string"?(e.openBlock(),e.createBlock(e.unref(l),{key:0,name:o.icon,class:e.normalizeClass([t.value])},null,8,["name","class"])):o.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.icon),{key:1,class:e.normalizeClass([t.value])},null,8,["class"])):e.createCommentVNode("v-if",!0)],!0):e.createCommentVNode("v-if",!0),e.renderSlot(o.$slots,"default",{},void 0,!0),i.value?e.renderSlot(o.$slots,"right-icon",{key:1},()=>[typeof o.rightIcon=="string"?(e.openBlock(),e.createBlock(e.unref(l),{key:0,name:o.rightIcon,class:e.normalizeClass([t.value])},null,8,["name","class"])):o.rightIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.rightIcon),{key:1,class:e.normalizeClass([t.value])},null,8,["class"])):e.createCommentVNode("v-if",!0)],!0):e.createCommentVNode("v-if",!0),v.value?(e.openBlock(),e.createElementBlock("div",h,[e.createVNode(e.unref(c),{size:"2em",color:o.color},null,8,["color"])])):e.createCommentVNode("v-if",!0)]),_:3},8,["disabled","class","type"]))}}),I=C._export_sfc(j,[["__scopeId","data-v-d3a1ed01"]]);exports.default=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../assets/MazBtn.css');const e=require("vue"),C=require("./index-F0B533E8.cjs"),h={key:2,class:"m-btn-loader-container"},j=e.defineComponent({__name:"MazBtn",props:{variant:{default:"button"},size:{default:"md"},color:{default:"primary"},type:{default:"button"},rounded:{type:Boolean},roundedSize:{default:"lg"},noRounded:{type:Boolean},outline:{type:Boolean},pastel:{type:Boolean},block:{type:Boolean},noUnderline:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},fab:{type:Boolean},icon:{type:[String,Function,Object],default:void 0},leftIcon:{type:[String,Function,Object],default:void 0},rightIcon:{type:[String,Function,Object],default:void 0},noPadding:{type:Boolean},noElevation:{type:Boolean},justify:{default:"center"}},setup(u){const n=u,c=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-B-4tL9pK.cjs"))),l=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazIcon-B8BoiF7R.cjs"))),{href:d,to:m}=e.useAttrs(),a=e.useSlots(),r=e.computed(()=>d?"a":m?"router-link":"button"),f=e.computed(()=>n.pastel?`--${n.color}-pastel`:n.outline?`--${n.color}-outline`:`--${n.color}`),s=e.computed(()=>(n.loading||n.disabled)&&r.value==="button"),p=e.computed(()=>s.value?"--cursor-default":"--cursor-pointer"),y=e.computed(()=>`--is-${n.variant}`),v=e.computed(()=>n.loading&&n.variant==="button"),z=e.computed(()=>!!a["left-icon"]||n.leftIcon),i=e.computed(()=>!!a["right-icon"]||n.rightIcon),b=e.computed(()=>z.value||i.value),k=e.computed(()=>n.icon||!!a.icon),B=e.computed(()=>r.value==="button"?n.type:void 0),t=e.computed(()=>n.size==="xl"?"maz-text-3xl":n.size==="lg"?"maz-text-2xl":n.size==="md"?"maz-text-xl":n.size==="sm"?"maz-text-lg":n.size==="xs"?"maz-text-base":n.size==="mini"?"maz-text-sm":"md"),g=e.computed(()=>n.justify==="start"?"maz-justify-start":n.justify==="end"?"maz-justify-end":n.justify==="center"?"maz-justify-center":n.justify==="between"?"maz-justify-between":n.justify==="around"?"maz-justify-around":n.justify==="evenly"?"maz-justify-evenly":"maz-justify-center");return(o,S)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{disabled:s.value||void 0,class:e.normalizeClass(["m-btn",[`--${o.size}`,!o.fab&&!o.rounded&&o.roundedSize&&`--rounded-${o.roundedSize}`,f.value,p.value,y.value,g.value,{"--block":o.block,"--no-underline":o.noUnderline,"--fab":o.fab,"--loading":o.loading,"--disabled":s.value,"--icon":b.value,"--rounded":o.rounded,"--no-rounded":o.noRounded,"--no-padding":o.noPadding,"--no-elevation":o.noElevation}]]),type:B.value},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"left-icon",{},()=>[typeof o.leftIcon=="string"?(e.openBlock(),e.createBlock(e.unref(l),{key:0,name:o.leftIcon,class:e.normalizeClass([t.value])},null,8,["name","class"])):o.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.leftIcon),{key:1,class:e.normalizeClass([t.value])},null,8,["class"])):e.createCommentVNode("v-if",!0)],!0),k.value?e.renderSlot(o.$slots,"icon",{key:0},()=>[typeof o.icon=="string"?(e.openBlock(),e.createBlock(e.unref(l),{key:0,name:o.icon,class:e.normalizeClass([t.value])},null,8,["name","class"])):o.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.icon),{key:1,class:e.normalizeClass([t.value])},null,8,["class"])):e.createCommentVNode("v-if",!0)],!0):e.createCommentVNode("v-if",!0),e.renderSlot(o.$slots,"default",{},void 0,!0),i.value?e.renderSlot(o.$slots,"right-icon",{key:1},()=>[typeof o.rightIcon=="string"?(e.openBlock(),e.createBlock(e.unref(l),{key:0,name:o.rightIcon,class:e.normalizeClass([t.value])},null,8,["name","class"])):o.rightIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.rightIcon),{key:1,class:e.normalizeClass([t.value])},null,8,["class"])):e.createCommentVNode("v-if",!0)],!0):e.createCommentVNode("v-if",!0),v.value?(e.openBlock(),e.createElementBlock("div",h,[e.createVNode(e.unref(c),{size:"2em",color:o.color},null,8,["color"])])):e.createCommentVNode("v-if",!0)]),_:3},8,["disabled","class","type"]))}}),I=C._export_sfc(j,[["__scopeId","data-v-d3a1ed01"]]);exports.default=I;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, defineAsyncComponent as v, useAttrs as E, useSlots as O, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as r, normalizeClass as l, withCtx as R, renderSlot as u, unref as d, createCommentVNode as i, createElementBlock as A, createVNode as D } from "vue";
2
- import { _ as L } from "./index-CjsYU5rv.mjs";
2
+ import { _ as L } from "./index-Bf4X7amE.mjs";
3
3
  import '../assets/MazBtn.css';const N = {
4
4
  key: 2,
5
5
  class: "m-btn-loader-container"
@@ -28,7 +28,7 @@ import '../assets/MazBtn.css';const N = {
28
28
  justify: { default: "center" }
29
29
  },
30
30
  setup(z) {
31
- const n = z, b = v(() => import("./MazSpinner-C95OqwKl.mjs")), c = v(() => import("./MazIcon-DJfEPmBG.mjs")), { href: g, to: h } = E(), f = O(), y = o(() => g ? "a" : h ? "router-link" : "button"), j = o(
31
+ const n = z, b = v(() => import("./MazSpinner-BvJydaeF.mjs")), c = v(() => import("./MazIcon-C6zDSPgJ.mjs")), { href: g, to: h } = E(), f = O(), y = o(() => g ? "a" : h ? "router-link" : "button"), j = o(
32
32
  () => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
33
33
  ), m = o(
34
34
  () => (n.loading || n.disabled) && y.value === "button"
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),T=require("./index-oVi9-l4o.cjs"),z=["innerHTML"],x=o.defineComponent({__name:"MazIcon",props:{src:{type:String,default:void 0},path:{type:String,default:void 0},name:{type:String,default:void 0},size:{type:String,default:void 0},title:{type:String,default:void 0},transformSource:{type:Function,default:s=>s}},emits:["loaded","unloaded","error"],setup(s,{emit:m}){const i=s,d=m,a={},l=o.ref(),f=o.ref();function g(){try{return T.injectStrict("mazIconPath")}catch{return}}const v=o.computed(()=>i.path??g()),p=o.computed(()=>i.src?i.src:v.value?`${v.value}/${i.name}.svg`:`/${i.name}.svg`);o.onMounted(()=>{!i.name&&!i.src&&console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop')});function S(e,r){const t=e.querySelectorAll("title");if(t.length>0)t[0].textContent=r;else{const n=document.createElementNS("http://www.w3.org/2000/svg","title");n.textContent=r,e.append(n)}}function h(e){return Object.keys(e).reduce((r,t)=>(e[t]!==!1&&e[t]!==null&&e[t]!==void 0&&(r[t]=e[t]),r),{})}function y(e){const r={},t=e.attributes;if(!t)return r;for(let n=t.length-1;n>=0;n--)r[t[n].name]=t[n].value;return r}function w(e){let r=e.cloneNode(!0);return r=i.transformSource(e),i.title&&S(r,i.title),e.innerHTML}async function E(e){a[e]||(a[e]=M(e));try{l.value=await a[e],await o.nextTick(),d("loaded",f.value)}catch(r){l.value&&(l.value=void 0,d("unloaded")),delete a[e],d("error",r)}}function M(e){return new Promise((r,t)=>{const n=new XMLHttpRequest;n.open("GET",e,!0),n.addEventListener("load",()=>{if(n.status>=200&&n.status<400)try{let c=new DOMParser().parseFromString(n.responseText,"text/xml").querySelectorAll("svg")[0];c?(c=i.transformSource(c),r(c)):t(new Error('Loaded file is not valid SVG"'))}catch(u){t(u)}else t(new Error("Error loading SVG"))}),n.addEventListener("error",u=>t(u)),n.send()})}return o.watchEffect(()=>E(p.value)),(e,r)=>l.value?(o.openBlock(),o.createElementBlock("svg",o.mergeProps({key:0,ref_key:"svgElem",ref:f,width:"1em",height:"1em"},{...y(l.value),...h(e.$attrs)},{style:`font-size: ${s.size}`,innerHTML:w(l.value)}),null,16,z)):o.createCommentVNode("v-if",!0)}});exports.default=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),T=require("./index-F0B533E8.cjs"),z=["innerHTML"],x=o.defineComponent({__name:"MazIcon",props:{src:{type:String,default:void 0},path:{type:String,default:void 0},name:{type:String,default:void 0},size:{type:String,default:void 0},title:{type:String,default:void 0},transformSource:{type:Function,default:s=>s}},emits:["loaded","unloaded","error"],setup(s,{emit:m}){const i=s,d=m,a={},l=o.ref(),f=o.ref();function g(){try{return T.injectStrict("mazIconPath")}catch{return}}const v=o.computed(()=>i.path??g()),p=o.computed(()=>i.src?i.src:v.value?`${v.value}/${i.name}.svg`:`/${i.name}.svg`);o.onMounted(()=>{!i.name&&!i.src&&console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop')});function S(e,r){const t=e.querySelectorAll("title");if(t.length>0)t[0].textContent=r;else{const n=document.createElementNS("http://www.w3.org/2000/svg","title");n.textContent=r,e.append(n)}}function h(e){return Object.keys(e).reduce((r,t)=>(e[t]!==!1&&e[t]!==null&&e[t]!==void 0&&(r[t]=e[t]),r),{})}function y(e){const r={},t=e.attributes;if(!t)return r;for(let n=t.length-1;n>=0;n--)r[t[n].name]=t[n].value;return r}function w(e){let r=e.cloneNode(!0);return r=i.transformSource(e),i.title&&S(r,i.title),e.innerHTML}async function E(e){a[e]||(a[e]=M(e));try{l.value=await a[e],await o.nextTick(),d("loaded",f.value)}catch(r){l.value&&(l.value=void 0,d("unloaded")),delete a[e],d("error",r)}}function M(e){return new Promise((r,t)=>{const n=new XMLHttpRequest;n.open("GET",e,!0),n.addEventListener("load",()=>{if(n.status>=200&&n.status<400)try{let c=new DOMParser().parseFromString(n.responseText,"text/xml").querySelectorAll("svg")[0];c?(c=i.transformSource(c),r(c)):t(new Error('Loaded file is not valid SVG"'))}catch(u){t(u)}else t(new Error("Error loading SVG"))}),n.addEventListener("error",u=>t(u)),n.send()})}return o.watchEffect(()=>E(p.value)),(e,r)=>l.value?(o.openBlock(),o.createElementBlock("svg",o.mergeProps({key:0,ref_key:"svgElem",ref:f,width:"1em",height:"1em"},{...y(l.value),...h(e.$attrs)},{style:`font-size: ${s.size}`,innerHTML:w(l.value)}),null,16,z)):o.createCommentVNode("v-if",!0)}});exports.default=x;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as T, ref as m, computed as v, onMounted as x, watchEffect as L, openBlock as P, createElementBlock as _, mergeProps as A, createCommentVNode as C, nextTick as $ } from "vue";
2
- import { i as q } from "./index-CjsYU5rv.mjs";
2
+ import { i as q } from "./index-Bf4X7amE.mjs";
3
3
  const H = ["innerHTML"], V = /* @__PURE__ */ T({
4
4
  __name: "MazIcon",
5
5
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../assets/MazSpinner.css');const e=require("vue"),s=require("./index-oVi9-l4o.cjs"),o=["width","height"],r=e.defineComponent({__name:"MazSpinner",props:{size:{default:"2em"},color:{default:"theme"}},setup(l){return(n,t)=>(e.openBlock(),e.createElementBlock("svg",{width:n.size,height:n.size,version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 50 50","xml:space":"preserve",class:e.normalizeClass(["m-spinner",`m-spinner--${n.color}`]),style:{"enable-background":"new 0 0 50 50"}},t[0]||(t[0]=[e.createElementVNode("path",{d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"},null,-1)]),10,o))}}),i=s._export_sfc(r,[["__scopeId","data-v-2868435d"]]);exports.default=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../assets/MazSpinner.css');const e=require("vue"),s=require("./index-F0B533E8.cjs"),o=["width","height"],r=e.defineComponent({__name:"MazSpinner",props:{size:{default:"2em"},color:{default:"theme"}},setup(l){return(n,t)=>(e.openBlock(),e.createElementBlock("svg",{width:n.size,height:n.size,version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 50 50","xml:space":"preserve",class:e.normalizeClass(["m-spinner",`m-spinner--${n.color}`]),style:{"enable-background":"new 0 0 50 50"}},t[0]||(t[0]=[e.createElementVNode("path",{d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"},null,-1)]),10,o))}}),i=s._export_sfc(r,[["__scopeId","data-v-2868435d"]]);exports.default=i;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./index-CjsYU5rv.mjs";
2
+ import { _ as a } from "./index-Bf4X7amE.mjs";
3
3
  import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
4
4
  __name: "MazSpinner",
5
5
  props: {
@@ -172,19 +172,20 @@ function Qt({
172
172
  debouncedFields: t,
173
173
  throttledFields: n
174
174
  }) {
175
- if (e) {
176
- if (t != null && t[s] && (n != null && n[s]))
177
- throw new Error(`The field "${s}" cannot be both debounced and throttled`);
178
- return t != null && t[s] ? Zt(
179
- s,
180
- pe,
181
- typeof t[s] == "number" ? t[s] : te.debounceTime
182
- ) : n != null && n[s] ? Xt(
183
- s,
184
- pe,
185
- typeof n[s] == "number" ? n[s] : te.throttleTime
186
- ) : pe;
187
- }
175
+ if (!e)
176
+ return;
177
+ const o = String(s);
178
+ if (t != null && t[o] && (n != null && n[o]))
179
+ throw new Error(`The field "${o}" cannot be both debounced and throttled`);
180
+ return t != null && t[o] ? Zt(
181
+ o,
182
+ pe,
183
+ typeof t[o] == "number" ? t[o] : te.debounceTime
184
+ ) : n != null && n[o] ? Xt(
185
+ o,
186
+ pe,
187
+ typeof n[o] == "number" ? n[o] : te.throttleTime
188
+ ) : pe;
188
189
  }
189
190
  function ft({
190
191
  name: s,
@@ -600,12 +601,17 @@ function qn({ schema: s, defaultValues: e, model: t, options: n }) {
600
601
  }
601
602
  function S(L, D) {
602
603
  return async (j) => {
603
- if (j == null || j.preventDefault(), h.value)
604
- return;
605
- g.value = !0, h.value = !0, await c(!0);
606
- const se = typeof D == "string" ? D : i.scrollToError;
607
- let G;
608
- return E.value ? G = await L(a.value) : typeof se != "boolean" && Xe(se), h.value = !1, G;
604
+ if (j == null || j.preventDefault(), !h.value) {
605
+ g.value = !0, h.value = !0;
606
+ try {
607
+ await c(!0);
608
+ const se = typeof D == "string" ? D : i.scrollToError;
609
+ let G;
610
+ return E.value ? G = await L(a.value) : typeof se != "boolean" && Xe(se), h.value = !1, G;
611
+ } finally {
612
+ h.value = !1;
613
+ }
614
+ }
609
615
  };
610
616
  }
611
617
  const $ = {
@@ -1629,7 +1635,7 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
1629
1635
  },
1630
1636
  emits: ["close", "previous", "next", "before-close"],
1631
1637
  setup(s, { emit: e }) {
1632
- const t = s, n = e, o = H(() => import("./MazSpinner-C95OqwKl.mjs")), i = H(() => import("./x-mark-CnZwVvA7.mjs")), r = H(() => import("./chevron-left-BqVOLRdC.mjs")), a = y(!1), u = y(!1), l = y(!1), h = y(!1), g = y(!1), E = Bt({
1638
+ const t = s, n = e, o = H(() => import("./MazSpinner-BvJydaeF.mjs")), i = H(() => import("./x-mark-CnZwVvA7.mjs")), r = H(() => import("./chevron-left-BqVOLRdC.mjs")), a = y(!1), u = y(!1), l = y(!1), h = y(!1), g = y(!1), E = Bt({
1633
1639
  running: !1,
1634
1640
  ended: !1
1635
1641
  }), T = y(t.clickedElement), M = f(() => t.clickedElement.getBoundingClientRect()), I = y(), c = y(t.src), b = y(t.alt), O = y(), v = y(), S = y(!0), $ = f(() => ({
@@ -2742,7 +2748,7 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
2742
2748
  },
2743
2749
  emits: ["open", "close", "update:model-value"],
2744
2750
  setup(s, { expose: e }) {
2745
- const t = s, n = H(() => import("./MazBtn-QVmZ90t5.mjs")), o = H(() => import("./x-mark-CnZwVvA7.mjs")), i = jt(), r = y();
2751
+ const t = s, n = H(() => import("./MazBtn-D8uOirkn.mjs")), o = H(() => import("./x-mark-CnZwVvA7.mjs")), i = jt(), r = y();
2746
2752
  e({
2747
2753
  close: () => {
2748
2754
  var l, h;
@@ -2899,7 +2905,7 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
2899
2905
  },
2900
2906
  emits: ["open", "close"],
2901
2907
  setup(s, { expose: e }) {
2902
- const t = s, n = H(() => import("./MazBtn-QVmZ90t5.mjs")), { dialogState: o, rejectDialog: i, resolveDialog: r, data: a } = xt(), u = f(() => {
2908
+ const t = s, n = H(() => import("./MazBtn-D8uOirkn.mjs")), { dialogState: o, rejectDialog: i, resolveDialog: r, data: a } = xt(), u = f(() => {
2903
2909
  var c;
2904
2910
  return t.buttons ?? ((c = t.data) == null ? void 0 : c.buttons) ?? a.value.buttons;
2905
2911
  }), l = f(() => ({
@@ -3128,7 +3134,7 @@ const mo = {
3128
3134
  },
3129
3135
  emits: ["close", "click", "open"],
3130
3136
  setup(s, { expose: e, emit: t }) {
3131
- const n = s, o = t, i = H(() => import("./MazBtn-QVmZ90t5.mjs")), r = H(() => import("./x-mark-CnZwVvA7.mjs")), a = H(
3137
+ const n = s, o = t, i = H(() => import("./MazBtn-D8uOirkn.mjs")), r = H(() => import("./x-mark-CnZwVvA7.mjs")), a = H(
3132
3138
  () => import("./arrow-top-right-on-square-jPmYJ34F.mjs")
3133
3139
  ), u = H(
3134
3140
  () => import("./exclamation-triangle-Z6d0ygp8.mjs")