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,6 +1,6 @@
1
- import { nextTick as ge, defineComponent as le, defineAsyncComponent as ue, useAttrs as et, useSlots as je, onBeforeMount as We, computed as y, openBlock as g, createBlock as F, resolveDynamicComponent as ke, normalizeClass as X, withCtx as _, createElementBlock as A, createCommentVNode as W, renderSlot as ye, unref as G, ref as Q, watch as be, Fragment as de, renderList as ce, createElementVNode as ne, normalizeStyle as Se, withModifiers as Ee, createTextVNode as ze, toDisplayString as me, createVNode as R, TransitionGroup as Me, useCssVars as tt, Transition as Te, getCurrentInstance as Ue, onMounted as xe, withDirectives as qe, mergeProps as Fe, toHandlers as at, vModelDynamic as rt, onUnmounted as nt, vShow as ot } from "vue";
1
+ import { nextTick as ge, defineComponent as le, defineAsyncComponent as ue, useAttrs as et, useSlots as je, onBeforeMount as We, computed as y, openBlock as g, createBlock as x, resolveDynamicComponent as ke, normalizeClass as X, withCtx as _, createElementBlock as A, createCommentVNode as W, renderSlot as ye, unref as G, ref as Q, watch as be, Fragment as de, renderList as ce, createElementVNode as ne, normalizeStyle as Se, withModifiers as Ee, createTextVNode as ze, toDisplayString as me, createVNode as R, TransitionGroup as Me, useCssVars as tt, Transition as Te, getCurrentInstance as Ue, onMounted as Fe, withDirectives as qe, mergeProps as xe, toHandlers as at, vModelDynamic as rt, onUnmounted as nt, vShow as ot } from "vue";
2
2
  import '../assets/MazPicker.css';var Ye = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
- function Be(t) {
3
+ function Oe(t) {
4
4
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
5
5
  }
6
6
  var Ne = { exports: {} };
@@ -8,18 +8,17 @@ var Ne = { exports: {} };
8
8
  (function(e, u) {
9
9
  t.exports = u();
10
10
  })(Ye, function() {
11
- var e = 1e3, u = 6e4, d = 36e5, V = "millisecond", Y = "second", m = "minute", T = "hour", M = "day", b = "week", C = "month", P = "quarter", H = "year", j = "date", S = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, O = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, f = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(h) {
11
+ var e = 1e3, u = 6e4, d = 36e5, V = "millisecond", Y = "second", m = "minute", T = "hour", M = "day", b = "week", C = "month", P = "quarter", H = "year", j = "date", S = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, f = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(h) {
12
12
  var n = ["th", "st", "nd", "rd"], o = h % 100;
13
13
  return "[" + h + (n[(o - 20) % 10] || n[o] || n[0]) + "]";
14
- } }, x = function(h, n, o) {
14
+ } }, F = function(h, n, o) {
15
15
  var c = String(h);
16
16
  return !c || c.length >= n ? h : "" + Array(n + 1 - c.length).join(o) + h;
17
- }, U = { s: x, z: function(h) {
17
+ }, U = { s: F, z: function(h) {
18
18
  var n = -h.utcOffset(), o = Math.abs(n), c = Math.floor(o / 60), s = o % 60;
19
- return (n <= 0 ? "+" : "-") + x(c, 2, "0") + ":" + x(s, 2, "0");
19
+ return (n <= 0 ? "+" : "-") + F(c, 2, "0") + ":" + F(s, 2, "0");
20
20
  }, m: function h(n, o) {
21
- if (n.date() < o.date())
22
- return -h(o, n);
21
+ if (n.date() < o.date()) return -h(o, n);
23
22
  var c = 12 * (o.year() - n.year()) + (o.month() - n.month()), s = n.clone().add(c, C), $ = o - s < 0, a = n.clone().add(c + ($ ? -1 : 1), C);
24
23
  return +(-(c + (o - s) / ($ ? s - a : a - s)) || 0);
25
24
  }, a: function(h) {
@@ -34,26 +33,23 @@ var Ne = { exports: {} };
34
33
  return h instanceof N || !(!h || !h[z]);
35
34
  }, E = function h(n, o, c) {
36
35
  var s;
37
- if (!n)
38
- return p;
36
+ if (!n) return p;
39
37
  if (typeof n == "string") {
40
38
  var $ = n.toLowerCase();
41
39
  w[$] && (s = $), o && (w[$] = o, s = $);
42
40
  var a = n.split("-");
43
- if (!s && a.length > 1)
44
- return h(a[0]);
41
+ if (!s && a.length > 1) return h(a[0]);
45
42
  } else {
46
43
  var i = n.name;
47
44
  w[i] = n, s = i;
48
45
  }
49
46
  return !c && s && (p = s), s || !c && p;
50
47
  }, L = function(h, n) {
51
- if (I(h))
52
- return h.clone();
48
+ if (I(h)) return h.clone();
53
49
  var o = typeof n == "object" ? n : {};
54
50
  return o.date = h, o.args = arguments, new N(o);
55
- }, B = U;
56
- B.l = E, B.i = I, B.w = function(h, n) {
51
+ }, O = U;
52
+ O.l = E, O.i = I, O.w = function(h, n) {
57
53
  return L(h, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
58
54
  };
59
55
  var N = function() {
@@ -64,12 +60,9 @@ var Ne = { exports: {} };
64
60
  return n.parse = function(o) {
65
61
  this.$d = function(c) {
66
62
  var s = c.date, $ = c.utc;
67
- if (s === null)
68
- return /* @__PURE__ */ new Date(NaN);
69
- if (B.u(s))
70
- return /* @__PURE__ */ new Date();
71
- if (s instanceof Date)
72
- return new Date(s);
63
+ if (s === null) return /* @__PURE__ */ new Date(NaN);
64
+ if (O.u(s)) return /* @__PURE__ */ new Date();
65
+ if (s instanceof Date) return new Date(s);
73
66
  if (typeof s == "string" && !/Z$/i.test(s)) {
74
67
  var a = s.match(v);
75
68
  if (a) {
@@ -83,7 +76,7 @@ var Ne = { exports: {} };
83
76
  var o = this.$d;
84
77
  this.$y = o.getFullYear(), this.$M = o.getMonth(), this.$D = o.getDate(), this.$W = o.getDay(), this.$H = o.getHours(), this.$m = o.getMinutes(), this.$s = o.getSeconds(), this.$ms = o.getMilliseconds();
85
78
  }, n.$utils = function() {
86
- return B;
79
+ return O;
87
80
  }, n.isValid = function() {
88
81
  return this.$d.toString() !== S;
89
82
  }, n.isSame = function(o, c) {
@@ -94,17 +87,17 @@ var Ne = { exports: {} };
94
87
  }, n.isBefore = function(o, c) {
95
88
  return this.endOf(c) < L(o);
96
89
  }, n.$g = function(o, c, s) {
97
- return B.u(o) ? this[c] : this.set(s, o);
90
+ return O.u(o) ? this[c] : this.set(s, o);
98
91
  }, n.unix = function() {
99
92
  return Math.floor(this.valueOf() / 1e3);
100
93
  }, n.valueOf = function() {
101
94
  return this.$d.getTime();
102
95
  }, n.startOf = function(o, c) {
103
- var s = this, $ = !!B.u(c) || c, a = B.p(o), i = function(ae, J) {
104
- var re = B.w(s.$u ? Date.UTC(s.$y, J, ae) : new Date(s.$y, J, ae), s);
96
+ var s = this, $ = !!O.u(c) || c, a = O.p(o), i = function(ae, J) {
97
+ var re = O.w(s.$u ? Date.UTC(s.$y, J, ae) : new Date(s.$y, J, ae), s);
105
98
  return $ ? re : re.endOf(M);
106
99
  }, k = function(ae, J) {
107
- return B.w(s.toDate()[ae].apply(s.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(J)), s);
100
+ return O.w(s.toDate()[ae].apply(s.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(J)), s);
108
101
  }, q = this.$W, Z = this.$M, K = this.$D, oe = "set" + (this.$u ? "UTC" : "");
109
102
  switch (a) {
110
103
  case H:
@@ -129,59 +122,53 @@ var Ne = { exports: {} };
129
122
  }, n.endOf = function(o) {
130
123
  return this.startOf(o, !1);
131
124
  }, n.$set = function(o, c) {
132
- var s, $ = B.p(o), a = "set" + (this.$u ? "UTC" : ""), i = (s = {}, s[M] = a + "Date", s[j] = a + "Date", s[C] = a + "Month", s[H] = a + "FullYear", s[T] = a + "Hours", s[m] = a + "Minutes", s[Y] = a + "Seconds", s[V] = a + "Milliseconds", s)[$], k = $ === M ? this.$D + (c - this.$W) : c;
125
+ var s, $ = O.p(o), a = "set" + (this.$u ? "UTC" : ""), i = (s = {}, s[M] = a + "Date", s[j] = a + "Date", s[C] = a + "Month", s[H] = a + "FullYear", s[T] = a + "Hours", s[m] = a + "Minutes", s[Y] = a + "Seconds", s[V] = a + "Milliseconds", s)[$], k = $ === M ? this.$D + (c - this.$W) : c;
133
126
  if ($ === C || $ === H) {
134
127
  var q = this.clone().set(j, 1);
135
128
  q.$d[i](k), q.init(), this.$d = q.set(j, Math.min(this.$D, q.daysInMonth())).$d;
136
- } else
137
- i && this.$d[i](k);
129
+ } else i && this.$d[i](k);
138
130
  return this.init(), this;
139
131
  }, n.set = function(o, c) {
140
132
  return this.clone().$set(o, c);
141
133
  }, n.get = function(o) {
142
- return this[B.p(o)]();
134
+ return this[O.p(o)]();
143
135
  }, n.add = function(o, c) {
144
136
  var s, $ = this;
145
137
  o = Number(o);
146
- var a = B.p(c), i = function(Z) {
138
+ var a = O.p(c), i = function(Z) {
147
139
  var K = L($);
148
- return B.w(K.date(K.date() + Math.round(Z * o)), $);
140
+ return O.w(K.date(K.date() + Math.round(Z * o)), $);
149
141
  };
150
- if (a === C)
151
- return this.set(C, this.$M + o);
152
- if (a === H)
153
- return this.set(H, this.$y + o);
154
- if (a === M)
155
- return i(1);
156
- if (a === b)
157
- return i(7);
142
+ if (a === C) return this.set(C, this.$M + o);
143
+ if (a === H) return this.set(H, this.$y + o);
144
+ if (a === M) return i(1);
145
+ if (a === b) return i(7);
158
146
  var k = (s = {}, s[m] = u, s[T] = d, s[Y] = e, s)[a] || 1, q = this.$d.getTime() + o * k;
159
- return B.w(q, this);
147
+ return O.w(q, this);
160
148
  }, n.subtract = function(o, c) {
161
149
  return this.add(-1 * o, c);
162
150
  }, n.format = function(o) {
163
151
  var c = this, s = this.$locale();
164
- if (!this.isValid())
165
- return s.invalidDate || S;
166
- var $ = o || "YYYY-MM-DDTHH:mm:ssZ", a = B.z(this), i = this.$H, k = this.$m, q = this.$M, Z = s.weekdays, K = s.months, oe = s.meridiem, ee = function(J, re, fe, ve) {
152
+ if (!this.isValid()) return s.invalidDate || S;
153
+ var $ = o || "YYYY-MM-DDTHH:mm:ssZ", a = O.z(this), i = this.$H, k = this.$m, q = this.$M, Z = s.weekdays, K = s.months, oe = s.meridiem, ee = function(J, re, fe, ve) {
167
154
  return J && (J[re] || J(c, $)) || fe[re].slice(0, ve);
168
155
  }, ie = function(J) {
169
- return B.s(i % 12 || 12, J, "0");
156
+ return O.s(i % 12 || 12, J, "0");
170
157
  }, ae = oe || function(J, re, fe) {
171
158
  var ve = J < 12 ? "AM" : "PM";
172
159
  return fe ? ve.toLowerCase() : ve;
173
160
  };
174
- return $.replace(O, function(J, re) {
161
+ return $.replace(B, function(J, re) {
175
162
  return re || function(fe) {
176
163
  switch (fe) {
177
164
  case "YY":
178
165
  return String(c.$y).slice(-2);
179
166
  case "YYYY":
180
- return B.s(c.$y, 4, "0");
167
+ return O.s(c.$y, 4, "0");
181
168
  case "M":
182
169
  return q + 1;
183
170
  case "MM":
184
- return B.s(q + 1, 2, "0");
171
+ return O.s(q + 1, 2, "0");
185
172
  case "MMM":
186
173
  return ee(s.monthsShort, q, K, 3);
187
174
  case "MMMM":
@@ -189,7 +176,7 @@ var Ne = { exports: {} };
189
176
  case "D":
190
177
  return c.$D;
191
178
  case "DD":
192
- return B.s(c.$D, 2, "0");
179
+ return O.s(c.$D, 2, "0");
193
180
  case "d":
194
181
  return String(c.$W);
195
182
  case "dd":
@@ -201,7 +188,7 @@ var Ne = { exports: {} };
201
188
  case "H":
202
189
  return String(i);
203
190
  case "HH":
204
- return B.s(i, 2, "0");
191
+ return O.s(i, 2, "0");
205
192
  case "h":
206
193
  return ie(1);
207
194
  case "hh":
@@ -213,13 +200,13 @@ var Ne = { exports: {} };
213
200
  case "m":
214
201
  return String(k);
215
202
  case "mm":
216
- return B.s(k, 2, "0");
203
+ return O.s(k, 2, "0");
217
204
  case "s":
218
205
  return String(c.$s);
219
206
  case "ss":
220
- return B.s(c.$s, 2, "0");
207
+ return O.s(c.$s, 2, "0");
221
208
  case "SSS":
222
- return B.s(c.$ms, 3, "0");
209
+ return O.s(c.$ms, 3, "0");
223
210
  case "Z":
224
211
  return a;
225
212
  }
@@ -229,8 +216,8 @@ var Ne = { exports: {} };
229
216
  }, n.utcOffset = function() {
230
217
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
231
218
  }, n.diff = function(o, c, s) {
232
- var $, a = this, i = B.p(c), k = L(o), q = (k.utcOffset() - this.utcOffset()) * u, Z = this - k, K = function() {
233
- return B.m(a, k);
219
+ var $, a = this, i = O.p(c), k = L(o), q = (k.utcOffset() - this.utcOffset()) * u, Z = this - k, K = function() {
220
+ return O.m(a, k);
234
221
  };
235
222
  switch (i) {
236
223
  case H:
@@ -260,18 +247,17 @@ var Ne = { exports: {} };
260
247
  default:
261
248
  $ = Z;
262
249
  }
263
- return s ? $ : B.a($);
250
+ return s ? $ : O.a($);
264
251
  }, n.daysInMonth = function() {
265
252
  return this.endOf(C).$D;
266
253
  }, n.$locale = function() {
267
254
  return w[this.$L];
268
255
  }, n.locale = function(o, c) {
269
- if (!o)
270
- return this.$L;
256
+ if (!o) return this.$L;
271
257
  var s = this.clone(), $ = E(o, c, !0);
272
258
  return $ && (s.$L = $), s;
273
259
  }, n.clone = function() {
274
- return B.w(this.$d, this);
260
+ return O.w(this.$d, this);
275
261
  }, n.toDate = function() {
276
262
  return new Date(this.valueOf());
277
263
  }, n.toJSON = function() {
@@ -294,7 +280,7 @@ var Ne = { exports: {} };
294
280
  });
295
281
  })(Ne);
296
282
  var it = Ne.exports;
297
- const D = /* @__PURE__ */ Be(it);
283
+ const D = /* @__PURE__ */ Oe(it);
298
284
  var Ze = { exports: {} };
299
285
  (function(t, r) {
300
286
  (function(e, u) {
@@ -308,25 +294,22 @@ var Ze = { exports: {} };
308
294
  };
309
295
  }, b = [/[+-]\d\d:?(\d\d)?|Z/, function(S) {
310
296
  (this.zone || (this.zone = {})).offset = function(v) {
311
- if (!v || v === "Z")
312
- return 0;
313
- var O = v.match(/([+-]|\d\d)/g), f = 60 * O[1] + (+O[2] || 0);
314
- return f === 0 ? 0 : O[0] === "+" ? -f : f;
297
+ if (!v || v === "Z") return 0;
298
+ var B = v.match(/([+-]|\d\d)/g), f = 60 * B[1] + (+B[2] || 0);
299
+ return f === 0 ? 0 : B[0] === "+" ? -f : f;
315
300
  }(S);
316
301
  }], C = function(S) {
317
302
  var v = m[S];
318
303
  return v && (v.indexOf ? v : v.s.concat(v.f));
319
304
  }, P = function(S, v) {
320
- var O, f = m.meridiem;
305
+ var B, f = m.meridiem;
321
306
  if (f) {
322
- for (var x = 1; x <= 24; x += 1)
323
- if (S.indexOf(f(x, 0, v)) > -1) {
324
- O = x > 12;
325
- break;
326
- }
327
- } else
328
- O = S === (v ? "pm" : "PM");
329
- return O;
307
+ for (var F = 1; F <= 24; F += 1) if (S.indexOf(f(F, 0, v)) > -1) {
308
+ B = F > 12;
309
+ break;
310
+ }
311
+ } else B = S === (v ? "pm" : "PM");
312
+ return B;
330
313
  }, H = { A: [Y, function(S) {
331
314
  this.afternoon = P(S, !1);
332
315
  }], a: [Y, function(S) {
@@ -338,42 +321,37 @@ var Ze = { exports: {} };
338
321
  }], SSS: [/\d{3}/, function(S) {
339
322
  this.milliseconds = +S;
340
323
  }], s: [V, M("seconds")], ss: [V, M("seconds")], m: [V, M("minutes")], mm: [V, M("minutes")], H: [V, M("hours")], h: [V, M("hours")], HH: [V, M("hours")], hh: [V, M("hours")], D: [V, M("day")], DD: [d, M("day")], Do: [Y, function(S) {
341
- var v = m.ordinal, O = S.match(/\d+/);
342
- if (this.day = O[0], v)
343
- for (var f = 1; f <= 31; f += 1)
344
- v(f).replace(/\[|\]/g, "") === S && (this.day = f);
324
+ var v = m.ordinal, B = S.match(/\d+/);
325
+ if (this.day = B[0], v) for (var f = 1; f <= 31; f += 1) v(f).replace(/\[|\]/g, "") === S && (this.day = f);
345
326
  }], M: [V, M("month")], MM: [d, M("month")], MMM: [Y, function(S) {
346
- var v = C("months"), O = (C("monthsShort") || v.map(function(f) {
327
+ var v = C("months"), B = (C("monthsShort") || v.map(function(f) {
347
328
  return f.slice(0, 3);
348
329
  })).indexOf(S) + 1;
349
- if (O < 1)
350
- throw new Error();
351
- this.month = O % 12 || O;
330
+ if (B < 1) throw new Error();
331
+ this.month = B % 12 || B;
352
332
  }], MMMM: [Y, function(S) {
353
333
  var v = C("months").indexOf(S) + 1;
354
- if (v < 1)
355
- throw new Error();
334
+ if (v < 1) throw new Error();
356
335
  this.month = v % 12 || v;
357
336
  }], Y: [/[+-]?\d+/, M("year")], YY: [d, function(S) {
358
337
  this.year = T(S);
359
338
  }], YYYY: [/\d{4}/, M("year")], Z: b, ZZ: b };
360
339
  function j(S) {
361
- var v, O;
362
- v = S, O = m && m.formats;
363
- for (var f = (S = v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(E, L, B) {
364
- var N = B && B.toUpperCase();
365
- return L || O[B] || e[B] || O[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(l, h, n) {
340
+ var v, B;
341
+ v = S, B = m && m.formats;
342
+ for (var f = (S = v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(E, L, O) {
343
+ var N = O && O.toUpperCase();
344
+ return L || B[O] || e[O] || B[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(l, h, n) {
366
345
  return h || n.slice(1);
367
346
  });
368
- })).match(u), x = f.length, U = 0; U < x; U += 1) {
347
+ })).match(u), F = f.length, U = 0; U < F; U += 1) {
369
348
  var p = f[U], w = H[p], z = w && w[0], I = w && w[1];
370
349
  f[U] = I ? { regex: z, parser: I } : p.replace(/^\[|\]$/g, "");
371
350
  }
372
351
  return function(E) {
373
- for (var L = {}, B = 0, N = 0; B < x; B += 1) {
374
- var l = f[B];
375
- if (typeof l == "string")
376
- N += l.length;
352
+ for (var L = {}, O = 0, N = 0; O < F; O += 1) {
353
+ var l = f[O];
354
+ if (typeof l == "string") N += l.length;
377
355
  else {
378
356
  var h = l.regex, n = l.parser, o = E.slice(N), c = h.exec(o)[0];
379
357
  n.call(L, c), E = E.replace(c, "");
@@ -388,45 +366,42 @@ var Ze = { exports: {} };
388
366
  }(L), L;
389
367
  };
390
368
  }
391
- return function(S, v, O) {
392
- O.p.customParseFormat = !0, S && S.parseTwoDigitYear && (T = S.parseTwoDigitYear);
393
- var f = v.prototype, x = f.parse;
369
+ return function(S, v, B) {
370
+ B.p.customParseFormat = !0, S && S.parseTwoDigitYear && (T = S.parseTwoDigitYear);
371
+ var f = v.prototype, F = f.parse;
394
372
  f.parse = function(U) {
395
373
  var p = U.date, w = U.utc, z = U.args;
396
374
  this.$u = w;
397
375
  var I = z[1];
398
376
  if (typeof I == "string") {
399
- var E = z[2] === !0, L = z[3] === !0, B = E || L, N = z[2];
400
- L && (N = z[2]), m = this.$locale(), !E && N && (m = O.Ls[N]), this.$d = function(o, c, s) {
377
+ var E = z[2] === !0, L = z[3] === !0, O = E || L, N = z[2];
378
+ L && (N = z[2]), m = this.$locale(), !E && N && (m = B.Ls[N]), this.$d = function(o, c, s) {
401
379
  try {
402
- if (["x", "X"].indexOf(c) > -1)
403
- return new Date((c === "X" ? 1e3 : 1) * o);
380
+ if (["x", "X"].indexOf(c) > -1) return new Date((c === "X" ? 1e3 : 1) * o);
404
381
  var $ = j(c)(o), a = $.year, i = $.month, k = $.day, q = $.hours, Z = $.minutes, K = $.seconds, oe = $.milliseconds, ee = $.zone, ie = /* @__PURE__ */ new Date(), ae = k || (a || i ? 1 : ie.getDate()), J = a || ie.getFullYear(), re = 0;
405
382
  a && !i || (re = i > 0 ? i - 1 : ie.getMonth());
406
- var fe = q || 0, ve = Z || 0, Oe = K || 0, Ce = oe || 0;
407
- return ee ? new Date(Date.UTC(J, re, ae, fe, ve, Oe, Ce + 60 * ee.offset * 1e3)) : s ? new Date(Date.UTC(J, re, ae, fe, ve, Oe, Ce)) : new Date(J, re, ae, fe, ve, Oe, Ce);
383
+ var fe = q || 0, ve = Z || 0, Be = K || 0, Ce = oe || 0;
384
+ return ee ? new Date(Date.UTC(J, re, ae, fe, ve, Be, Ce + 60 * ee.offset * 1e3)) : s ? new Date(Date.UTC(J, re, ae, fe, ve, Be, Ce)) : new Date(J, re, ae, fe, ve, Be, Ce);
408
385
  } catch {
409
386
  return /* @__PURE__ */ new Date("");
410
387
  }
411
- }(p, I, w), this.init(), N && N !== !0 && (this.$L = this.locale(N).$L), B && p != this.format(I) && (this.$d = /* @__PURE__ */ new Date("")), m = {};
412
- } else if (I instanceof Array)
413
- for (var l = I.length, h = 1; h <= l; h += 1) {
414
- z[1] = I[h - 1];
415
- var n = O.apply(this, z);
416
- if (n.isValid()) {
417
- this.$d = n.$d, this.$L = n.$L, this.init();
418
- break;
419
- }
420
- h === l && (this.$d = /* @__PURE__ */ new Date(""));
388
+ }(p, I, w), this.init(), N && N !== !0 && (this.$L = this.locale(N).$L), O && p != this.format(I) && (this.$d = /* @__PURE__ */ new Date("")), m = {};
389
+ } else if (I instanceof Array) for (var l = I.length, h = 1; h <= l; h += 1) {
390
+ z[1] = I[h - 1];
391
+ var n = B.apply(this, z);
392
+ if (n.isValid()) {
393
+ this.$d = n.$d, this.$L = n.$L, this.init();
394
+ break;
421
395
  }
422
- else
423
- x.call(this, U);
396
+ h === l && (this.$d = /* @__PURE__ */ new Date(""));
397
+ }
398
+ else F.call(this, U);
424
399
  };
425
400
  };
426
401
  });
427
402
  })(Ze);
428
403
  var lt = Ze.exports;
429
- const st = /* @__PURE__ */ Be(lt);
404
+ const st = /* @__PURE__ */ Oe(lt);
430
405
  var Re = { exports: {} };
431
406
  (function(t, r) {
432
407
  (function(e, u) {
@@ -441,7 +416,7 @@ var Re = { exports: {} };
441
416
  });
442
417
  })(Re);
443
418
  var ut = Re.exports;
444
- const dt = /* @__PURE__ */ Be(ut), Ve = "__maz-click-outside__";
419
+ const dt = /* @__PURE__ */ Oe(ut), Ve = "__maz-click-outside__";
445
420
  function Ge() {
446
421
  return document.ontouchstart === null ? "touchstart" : "click";
447
422
  }
@@ -514,7 +489,7 @@ var Xe = { exports: {} };
514
489
  });
515
490
  })(Xe);
516
491
  var vt = Xe.exports;
517
- const ht = /* @__PURE__ */ Be(vt);
492
+ const ht = /* @__PURE__ */ Oe(vt);
518
493
  function De(t) {
519
494
  return t ? (t = t.toString(), t.charAt(0).toUpperCase() + t.slice(1)) : "";
520
495
  }
@@ -645,15 +620,15 @@ const St = /* @__PURE__ */ le({
645
620
  loading: { type: Boolean },
646
621
  disabled: { type: Boolean },
647
622
  fab: { type: Boolean },
648
- icon: { default: void 0 },
649
- leftIcon: { default: void 0 },
650
- rightIcon: { default: void 0 },
623
+ icon: { type: [String, Function, Object], default: void 0 },
624
+ leftIcon: { type: [String, Function, Object], default: void 0 },
625
+ rightIcon: { type: [String, Function, Object], default: void 0 },
651
626
  noPadding: { type: Boolean },
652
627
  noElevation: { type: Boolean },
653
628
  contentClass: { default: void 0 }
654
629
  },
655
630
  setup(t) {
656
- const r = t, e = ue(() => import("./MazSpinner-yZGK-AQe.mjs")), u = ue(() => import("./MazIcon-BDGxCy9M.mjs")), { href: d, to: V } = et(), Y = je();
631
+ const r = t, e = ue(() => import("./MazSpinner-DnVHWljy.mjs")), u = ue(() => import("./MazIcon-BDGxCy9M.mjs")), { href: d, to: V } = et(), Y = je();
657
632
  We(() => {
658
633
  r.icon && !r.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
659
634
  });
@@ -661,8 +636,8 @@ const St = /* @__PURE__ */ le({
661
636
  () => r.pastel ? `--${r.color}-pastel` : r.outline ? `--${r.color}-outline` : `--${r.color}`
662
637
  ), M = y(
663
638
  () => (r.loading || r.disabled) && m.value === "button"
664
- ), b = y(() => M.value ? "--cursor-default" : "--cursor-pointer"), C = y(() => `--is-${r.variant}`), P = y(() => r.loading && r.variant === "button"), H = y(() => !!Y["left-icon"] || r.leftIcon), j = y(() => !!Y["right-icon"] || r.rightIcon), S = y(() => H.value || j.value), v = y(() => r.fab && (r.icon || !!Y.icon)), O = y(() => m.value === "button" ? r.type : void 0);
665
- return (f, x) => (g(), F(ke(m.value), {
639
+ ), b = y(() => M.value ? "--cursor-default" : "--cursor-pointer"), C = y(() => `--is-${r.variant}`), P = y(() => r.loading && r.variant === "button"), H = y(() => !!Y["left-icon"] || r.leftIcon), j = y(() => !!Y["right-icon"] || r.rightIcon), S = y(() => H.value || j.value), v = y(() => r.fab && (r.icon || !!Y.icon)), B = y(() => m.value === "button" ? r.type : void 0);
640
+ return (f, F) => (g(), x(ke(m.value), {
666
641
  disabled: M.value || void 0,
667
642
  class: X(["m-btn", [
668
643
  `--${f.size}`,
@@ -683,7 +658,7 @@ const St = /* @__PURE__ */ le({
683
658
  "--no-elevation": f.noElevation
684
659
  }
685
660
  ]]),
686
- type: O.value
661
+ type: B.value
687
662
  }, {
688
663
  default: _(() => [
689
664
  H.value ? (g(), A(
@@ -697,10 +672,10 @@ const St = /* @__PURE__ */ le({
697
672
  @slot left-icon - The icon to display on the left of the button
698
673
  `),
699
674
  ye(f.$slots, "left-icon", {}, () => [
700
- typeof f.leftIcon == "string" ? (g(), F(G(u), {
675
+ typeof f.leftIcon == "string" ? (g(), x(G(u), {
701
676
  key: 0,
702
677
  name: f.leftIcon
703
- }, null, 8, ["name"])) : f.leftIcon ? (g(), F(ke(f.leftIcon), { key: 1 })) : W("v-if", !0)
678
+ }, null, 8, ["name"])) : f.leftIcon ? (g(), x(ke(f.leftIcon), { key: 1 })) : W("v-if", !0)
704
679
  ], !0)
705
680
  ],
706
681
  2
@@ -717,10 +692,10 @@ const St = /* @__PURE__ */ le({
717
692
  @slot icon - The icon to display on the fab button
718
693
  `),
719
694
  ye(f.$slots, "icon", {}, () => [
720
- typeof f.icon == "string" ? (g(), F(G(u), {
695
+ typeof f.icon == "string" ? (g(), x(G(u), {
721
696
  key: 0,
722
697
  name: f.icon
723
- }, null, 8, ["name"])) : f.icon ? (g(), F(ke(f.icon), { key: 1 })) : W("v-if", !0)
698
+ }, null, 8, ["name"])) : f.icon ? (g(), x(ke(f.icon), { key: 1 })) : W("v-if", !0)
724
699
  ], !0)
725
700
  ],
726
701
  2
@@ -752,16 +727,16 @@ const St = /* @__PURE__ */ le({
752
727
  @slot right-icon - The icon to display on the right of the button
753
728
  `),
754
729
  ye(f.$slots, "right-icon", {}, () => [
755
- typeof f.rightIcon == "string" ? (g(), F(G(u), {
730
+ typeof f.rightIcon == "string" ? (g(), x(G(u), {
756
731
  key: 0,
757
732
  name: f.rightIcon
758
- }, null, 8, ["name"])) : f.rightIcon ? (g(), F(ke(f.rightIcon), { key: 1 })) : W("v-if", !0)
733
+ }, null, 8, ["name"])) : f.rightIcon ? (g(), x(ke(f.rightIcon), { key: 1 })) : W("v-if", !0)
759
734
  ], !0)
760
735
  ],
761
736
  2
762
737
  /* CLASS */
763
738
  )) : W("v-if", !0),
764
- P.value ? (g(), F(G(e), {
739
+ P.value ? (g(), x(G(e), {
765
740
  key: 4,
766
741
  class: "m-btn-loader",
767
742
  size: "2em",
@@ -812,7 +787,7 @@ const St = /* @__PURE__ */ le({
812
787
  u("update:model-value", p);
813
788
  }
814
789
  }), V = y(() => Array.from({ length: e.isHour12 ? 12 : 24 }, (p, w) => w).map((p) => {
815
- const w = p + (e.isHour12 ? 1 : 0), z = S(w), I = D(d.value).set("hour", z), E = O(z) || (e.minDate && d.value ? D(e.minDate).isAfter(I, "hour") : !1) || (e.maxDate && d.value ? D(e.maxDate).isBefore(I, "hour") : !1);
790
+ const w = p + (e.isHour12 ? 1 : 0), z = S(w), I = D(d.value).set("hour", z), E = B(z) || (e.minDate && d.value ? D(e.minDate).isAfter(I, "hour") : !1) || (e.maxDate && d.value ? D(e.maxDate).isBefore(I, "hour") : !1);
816
791
  return {
817
792
  label: `${w < 10 ? "0" : ""}${w}`,
818
793
  value: D(d.value).set("hour", z),
@@ -896,15 +871,15 @@ const St = /* @__PURE__ */ le({
896
871
  { immediate: !0 }
897
872
  );
898
873
  function v(p) {
899
- x("hour", p), x("minute", p), e.isHour12 && x("ampm", p);
874
+ F("hour", p), F("minute", p), e.isHour12 && F("ampm", p);
900
875
  }
901
- function O(p) {
876
+ function B(p) {
902
877
  return (e.disabledHours && e.disabledHours.includes(p)) ?? !1;
903
878
  }
904
879
  function f(p, w) {
905
880
  return w === "am" || w === "pm" ? M.value === w : p === "hour" ? m.value === w.get(p) : p === "minute" ? T.value === w.get(p) : !1;
906
881
  }
907
- async function x(p, w = !0) {
882
+ async function F(p, w = !0) {
908
883
  if (H.value) {
909
884
  const z = H.value.querySelector(`.m-picker-time__column__${p}`), I = H.value.querySelector(
910
885
  `.m-picker-time__column__${p} .--is-selected`
@@ -922,7 +897,7 @@ const St = /* @__PURE__ */ le({
922
897
  const I = z.get("hour"), E = I + 12 > 12 && I + 12 < 24 ? I + 12 : I === 0 ? 12 : I;
923
898
  d.value = z.set("hour", E).format();
924
899
  }
925
- await ge(), x(p);
900
+ await ge(), F(p);
926
901
  }
927
902
  return (p, w) => (g(), A(
928
903
  "div",
@@ -956,7 +931,7 @@ const St = /* @__PURE__ */ le({
956
931
  (g(!0), A(
957
932
  de,
958
933
  null,
959
- ce(z, ({ value: L, label: B, isDisabled: N }, l) => (g(), F(pe, {
934
+ ce(z, ({ value: L, label: O, isDisabled: N }, l) => (g(), x(pe, {
960
935
  key: l,
961
936
  size: "xs",
962
937
  color: f(I, L) ? t.color : "transparent",
@@ -967,7 +942,7 @@ const St = /* @__PURE__ */ le({
967
942
  }, {
968
943
  default: _(() => [
969
944
  ze(
970
- me(B),
945
+ me(O),
971
946
  1
972
947
  /* TEXT */
973
948
  )
@@ -1001,7 +976,7 @@ const St = /* @__PURE__ */ le({
1001
976
  /* CLASS */
1002
977
  ));
1003
978
  }
1004
- }), Bt = /* @__PURE__ */ se(Yt, [["__scopeId", "data-v-ded59006"]]), Ot = {
979
+ }), Ot = /* @__PURE__ */ se(Yt, [["__scopeId", "data-v-ded59006"]]), Bt = {
1005
980
  key: 0,
1006
981
  class: "m-picker-header__date"
1007
982
  }, Ct = /* @__PURE__ */ le({
@@ -1083,7 +1058,7 @@ const St = /* @__PURE__ */ le({
1083
1058
  class: X(["m-picker-header", [`--${t.color}`]])
1084
1059
  },
1085
1060
  [
1086
- t.hasDate ? (g(), A("div", Ot, [
1061
+ t.hasDate ? (g(), A("div", Bt, [
1087
1062
  R(Me, {
1088
1063
  name: u.value,
1089
1064
  tag: "div",
@@ -1350,7 +1325,7 @@ const Wt = /* @__PURE__ */ le({
1350
1325
  if (e.hoverredDay)
1351
1326
  return D(n).isSame(e.hoverredDay);
1352
1327
  }
1353
- function O(n) {
1328
+ function B(n) {
1354
1329
  var o;
1355
1330
  return e.modelValue && e.modelValue && typeof e.modelValue == "object" && (o = e.modelValue) != null && o.start ? he(n, e.modelValue.start, "date") : !1;
1356
1331
  }
@@ -1358,7 +1333,7 @@ const Wt = /* @__PURE__ */ le({
1358
1333
  var o;
1359
1334
  return e.modelValue && e.modelValue && typeof e.modelValue == "object" && (o = e.modelValue) != null && o.end ? he(n, e.modelValue.end, "date") : !1;
1360
1335
  }
1361
- function x(n) {
1336
+ function F(n) {
1362
1337
  const o = e.modelValue;
1363
1338
  return typeof o == "object" ? o.start && he(n, o.start, "date") || o.end && he(n, o.end, "date") || I(n) ? e.color : "transparent" : z(n) ? e.color : "transparent";
1364
1339
  }
@@ -1416,7 +1391,7 @@ const Wt = /* @__PURE__ */ le({
1416
1391
  var o;
1417
1392
  return (o = e.disabledWeekly) != null && o.length ? e.disabledWeekly.some((c) => Ke(n, c)) : !1;
1418
1393
  }
1419
- function B(n) {
1394
+ function O(n) {
1420
1395
  var o;
1421
1396
  return (o = e.disabledDates) != null && o.length ? e.disabledDates.some((c) => he(n, c, "date")) : !1;
1422
1397
  }
@@ -1465,15 +1440,15 @@ const Wt = /* @__PURE__ */ le({
1465
1440
  (g(!0), A(
1466
1441
  de,
1467
1442
  null,
1468
- ce(P.value, ({ label: $, date: a }, i) => (g(), F(pe, {
1443
+ ce(P.value, ({ label: $, date: a }, i) => (g(), x(pe, {
1469
1444
  key: i,
1470
1445
  size: "mini",
1471
- color: x(a),
1446
+ color: F(a),
1472
1447
  type: "button",
1473
- disabled: t.disabled || E(a) || N(a) || L(a) || B(a),
1448
+ disabled: t.disabled || E(a) || N(a) || L(a) || O(a),
1474
1449
  class: X({
1475
1450
  "--is-today": w(a),
1476
- "--is-first": O(a),
1451
+ "--is-first": B(a),
1477
1452
  "--is-last": f(a) || m.value && v(a),
1478
1453
  "--is-selected": U(a) === 1,
1479
1454
  "--is-between": U(a) === 2,
@@ -1516,7 +1491,7 @@ const Wt = /* @__PURE__ */ le({
1516
1491
  /* NEED_PATCH */
1517
1492
  ));
1518
1493
  }
1519
- }), Et = /* @__PURE__ */ se(Wt, [["__scopeId", "data-v-72921ea8"]]), Ut = { class: "maz-picker-calendar-days" }, xt = /* @__PURE__ */ le({
1494
+ }), Et = /* @__PURE__ */ se(Wt, [["__scopeId", "data-v-72921ea8"]]), Ut = { class: "maz-picker-calendar-days" }, Ft = /* @__PURE__ */ le({
1520
1495
  __name: "MazPickerCalendarDays",
1521
1496
  props: {
1522
1497
  locale: { type: String, required: !0 },
@@ -1540,7 +1515,7 @@ const Wt = /* @__PURE__ */ le({
1540
1515
  ))
1541
1516
  ]));
1542
1517
  }
1543
- }), Ft = /* @__PURE__ */ se(xt, [["__scopeId", "data-v-4315c0cd"]]), Nt = { class: "maz-picker-calendar-month --has-padding" }, Zt = /* @__PURE__ */ le({
1518
+ }), xt = /* @__PURE__ */ se(Ft, [["__scopeId", "data-v-4315c0cd"]]), Nt = { class: "maz-picker-calendar-month --has-padding" }, Zt = /* @__PURE__ */ le({
1544
1519
  __name: "MazPickerCalendarMonth",
1545
1520
  props: {
1546
1521
  modelValue: {
@@ -1577,7 +1552,7 @@ const Wt = /* @__PURE__ */ le({
1577
1552
  set: (T) => u("update:calendar-date", T)
1578
1553
  });
1579
1554
  return (T, M) => (g(), A("div", Nt, [
1580
- R(Ft, {
1555
+ R(xt, {
1581
1556
  locale: t.locale,
1582
1557
  "first-day-of-week": t.firstDayOfWeek,
1583
1558
  class: "maz-picker-calendar-month__days"
@@ -1627,7 +1602,7 @@ const Wt = /* @__PURE__ */ le({
1627
1602
  },
1628
1603
  emits: ["update:model-value", "update:calendar-date"],
1629
1604
  setup(t, { emit: r }) {
1630
- const e = t, u = r, d = ue(() => import("./MazPickerMonthSwitcher-CKtfZ_m-.mjs")), V = ue(() => import("./MazPickerYearSwitcher-0b5Wrem9.mjs")), Y = ue(() => import("./MazPickerShortcuts-Cc9VoqBw.mjs")), m = Q(), T = y(() => e.modelValue && typeof e.modelValue == "object"), M = y(
1605
+ const e = t, u = r, d = ue(() => import("./MazPickerMonthSwitcher-DZPHWTJt.mjs")), V = ue(() => import("./MazPickerYearSwitcher-Ynp2qf3F.mjs")), Y = ue(() => import("./MazPickerShortcuts-CBEmYjPG.mjs")), m = Q(), T = y(() => e.modelValue && typeof e.modelValue == "object"), M = y(
1631
1606
  () => !e.noShortcuts && e.shortcuts.length > 0 && T.value
1632
1607
  ), b = Q(!1), C = Q(!1), P = y({
1633
1608
  get: () => e.modelValue,
@@ -1637,10 +1612,10 @@ const Wt = /* @__PURE__ */ le({
1637
1612
  set: (S) => u("update:calendar-date", S)
1638
1613
  });
1639
1614
  return (S, v) => (g(), A("div", Gt, [
1640
- M.value ? (g(), F(G(Y), {
1615
+ M.value ? (g(), x(G(Y), {
1641
1616
  key: 0,
1642
1617
  modelValue: P.value,
1643
- "onUpdate:modelValue": v[0] || (v[0] = (O) => P.value = O),
1618
+ "onUpdate:modelValue": v[0] || (v[0] = (B) => P.value = B),
1644
1619
  color: t.color,
1645
1620
  shortcuts: t.shortcuts,
1646
1621
  shortcut: t.shortcut,
@@ -1655,22 +1630,22 @@ const Wt = /* @__PURE__ */ le({
1655
1630
  [
1656
1631
  R(jt, {
1657
1632
  "calendar-date": j.value,
1658
- "onUpdate:calendarDate": v[1] || (v[1] = (O) => j.value = O),
1633
+ "onUpdate:calendarDate": v[1] || (v[1] = (B) => j.value = B),
1659
1634
  locale: t.locale,
1660
1635
  double: t.double,
1661
- onOpenMonthSwitcher: v[2] || (v[2] = (O) => b.value = !0),
1662
- onOpenYearSwitcher: v[3] || (v[3] = (O) => C.value = !0)
1636
+ onOpenMonthSwitcher: v[2] || (v[2] = (B) => b.value = !0),
1637
+ onOpenYearSwitcher: v[3] || (v[3] = (B) => C.value = !0)
1663
1638
  }, null, 8, ["calendar-date", "locale", "double"]),
1664
1639
  R(Te, { name: "maz-picker-slide" }, {
1665
1640
  default: _(() => [
1666
- b.value ? (g(), F(G(d), {
1641
+ b.value ? (g(), x(G(d), {
1667
1642
  key: 0,
1668
1643
  "calendar-date": j.value,
1669
- "onUpdate:calendarDate": v[4] || (v[4] = (O) => j.value = O),
1644
+ "onUpdate:calendarDate": v[4] || (v[4] = (B) => j.value = B),
1670
1645
  color: t.color,
1671
1646
  double: t.double,
1672
1647
  locale: t.locale,
1673
- onClose: v[5] || (v[5] = (O) => b.value = !1)
1648
+ onClose: v[5] || (v[5] = (B) => b.value = !1)
1674
1649
  }, null, 8, ["calendar-date", "color", "double", "locale"])) : W("v-if", !0)
1675
1650
  ]),
1676
1651
  _: 1
@@ -1678,13 +1653,13 @@ const Wt = /* @__PURE__ */ le({
1678
1653
  }),
1679
1654
  R(Te, { name: "maz-picker-slide" }, {
1680
1655
  default: _(() => [
1681
- C.value ? (g(), F(G(V), {
1656
+ C.value ? (g(), x(G(V), {
1682
1657
  key: 0,
1683
1658
  "calendar-date": j.value,
1684
- "onUpdate:calendarDate": v[6] || (v[6] = (O) => j.value = O),
1659
+ "onUpdate:calendarDate": v[6] || (v[6] = (B) => j.value = B),
1685
1660
  color: t.color,
1686
1661
  locale: t.locale,
1687
- onClose: v[7] || (v[7] = (O) => C.value = !1)
1662
+ onClose: v[7] || (v[7] = (B) => C.value = !1)
1688
1663
  }, null, 8, ["calendar-date", "color", "locale"])) : W("v-if", !0)
1689
1664
  ]),
1690
1665
  _: 1
@@ -1694,8 +1669,8 @@ const Wt = /* @__PURE__ */ le({
1694
1669
  (g(!0), A(
1695
1670
  de,
1696
1671
  null,
1697
- ce(H.value, (O) => (g(), F(Rt, {
1698
- key: O,
1672
+ ce(H.value, (B) => (g(), x(Rt, {
1673
+ key: B,
1699
1674
  modelValue: P.value,
1700
1675
  "onUpdate:modelValue": v[8] || (v[8] = (f) => P.value = f),
1701
1676
  "hoverred-day": m.value,
@@ -1704,7 +1679,7 @@ const Wt = /* @__PURE__ */ le({
1704
1679
  locale: t.locale,
1705
1680
  "has-time": t.hasTime,
1706
1681
  color: t.color,
1707
- "offset-month": O,
1682
+ "offset-month": B,
1708
1683
  "first-day-of-week": t.firstDayOfWeek,
1709
1684
  "min-date": t.minDate,
1710
1685
  "max-date": t.maxDate,
@@ -1780,7 +1755,7 @@ const Wt = /* @__PURE__ */ le({
1780
1755
  }])
1781
1756
  },
1782
1757
  [
1783
- t.noHeader ? W("v-if", !0) : (g(), F(It, {
1758
+ t.noHeader ? W("v-if", !0) : (g(), x(It, {
1784
1759
  key: 0,
1785
1760
  color: t.color,
1786
1761
  "has-time": t.hasTime,
@@ -1794,7 +1769,7 @@ const Wt = /* @__PURE__ */ le({
1794
1769
  class: "m-picker-container__header"
1795
1770
  }, null, 8, ["color", "has-time", "model-value", "locale", "calendar-date", "has-date", "formatter-options", "double", "no-shortcuts"])),
1796
1771
  ne("div", Kt, [
1797
- t.hasDate ? (g(), F(Xt, {
1772
+ t.hasDate ? (g(), x(Xt, {
1798
1773
  key: 0,
1799
1774
  modelValue: d.value,
1800
1775
  "onUpdate:modelValue": m[0] || (m[0] = (T) => d.value = T),
@@ -1815,7 +1790,7 @@ const Wt = /* @__PURE__ */ le({
1815
1790
  "no-shortcuts": t.noShortcuts,
1816
1791
  class: "m-picker-container__calendar"
1817
1792
  }, null, 8, ["modelValue", "calendar-date", "color", "locale", "has-time", "double", "min-date", "max-date", "first-day-of-week", "disabled", "disabled-weekly", "disabled-dates", "shortcuts", "shortcut", "no-shortcuts"])) : W("v-if", !0),
1818
- t.hasTime ? (g(), F(Bt, {
1793
+ t.hasTime ? (g(), x(Ot, {
1819
1794
  key: 1,
1820
1795
  modelValue: d.value,
1821
1796
  "onUpdate:modelValue": m[2] || (m[2] = (T) => d.value = T),
@@ -1910,8 +1885,8 @@ const la = {
1910
1885
  validButtonLoading: { type: Boolean, default: !1 },
1911
1886
  autoFocus: { type: Boolean, default: !1 },
1912
1887
  borderActive: { type: Boolean, default: !1 },
1913
- leftIcon: { default: void 0 },
1914
- rightIcon: { default: void 0 },
1888
+ leftIcon: { type: [String, Function, Object], default: void 0 },
1889
+ rightIcon: { type: [String, Function, Object], default: void 0 },
1915
1890
  roundedSize: { default: void 0 },
1916
1891
  block: { type: Boolean }
1917
1892
  },
@@ -1921,7 +1896,7 @@ const la = {
1921
1896
  componentName: "MazInput",
1922
1897
  providedId: e.id
1923
1898
  });
1924
- xe(() => {
1899
+ Fe(() => {
1925
1900
  var l;
1926
1901
  e.autoFocus && ((l = C.value) == null || l.focus());
1927
1902
  });
@@ -1953,11 +1928,11 @@ const la = {
1953
1928
  }
1954
1929
  return "--default-border";
1955
1930
  }
1956
- }), v = je(), O = y(() => {
1931
+ }), v = je(), B = y(() => {
1957
1932
  const { required: l, placeholder: h } = e;
1958
1933
  if (h)
1959
1934
  return l ? `${h} *` : h;
1960
- }), f = y(() => p.value !== void 0 && p.value !== ""), x = _e(
1935
+ }), f = y(() => p.value !== void 0 && p.value !== ""), F = _e(
1961
1936
  (l) => {
1962
1937
  u("update:model-value", l);
1963
1938
  },
@@ -1965,7 +1940,7 @@ const la = {
1965
1940
  );
1966
1941
  function U(l) {
1967
1942
  if (e.debounce)
1968
- return x(l);
1943
+ return F(l);
1969
1944
  u("update:model-value", l);
1970
1945
  }
1971
1946
  const p = y({
@@ -1981,7 +1956,7 @@ const la = {
1981
1956
  function L(l) {
1982
1957
  u("focus", l), b.value = !0;
1983
1958
  }
1984
- function B(l) {
1959
+ function O(l) {
1985
1960
  u("blur", l), b.value = !1;
1986
1961
  }
1987
1962
  function N(l) {
@@ -2023,18 +1998,18 @@ const la = {
2023
1998
  @slot left-icon - The icon to display on the left of the input
2024
1999
  `),
2025
2000
  l.$slots["left-icon"] || l.leftIcon ? ye(l.$slots, "left-icon", { key: 0 }, () => [
2026
- typeof l.leftIcon == "string" ? (g(), F(G(V), {
2001
+ typeof l.leftIcon == "string" ? (g(), x(G(V), {
2027
2002
  key: 0,
2028
2003
  name: l.leftIcon,
2029
2004
  class: "maz-text-xl maz-text-muted"
2030
- }, null, 8, ["name"])) : l.leftIcon ? (g(), F(ke(l.leftIcon), {
2005
+ }, null, 8, ["name"])) : l.leftIcon ? (g(), x(ke(l.leftIcon), {
2031
2006
  key: 1,
2032
2007
  class: "maz-text-xl maz-text-muted"
2033
2008
  })) : W("v-if", !0)
2034
2009
  ], !0) : W("v-if", !0)
2035
2010
  ])) : W("v-if", !0),
2036
2011
  ne("div", sa, [
2037
- qe(ne("input", Fe({
2012
+ qe(ne("input", xe({
2038
2013
  id: G(P),
2039
2014
  ref_key: "input",
2040
2015
  ref: C,
@@ -2043,14 +2018,14 @@ const la = {
2043
2018
  name: l.name
2044
2019
  }, l.$attrs, {
2045
2020
  inputmode: l.inputmode,
2046
- placeholder: O.value,
2021
+ placeholder: B.value,
2047
2022
  "aria-label": l.label || l.placeholder,
2048
2023
  disabled: l.disabled,
2049
2024
  readonly: l.readonly,
2050
2025
  required: l.required,
2051
2026
  class: "m-input-input"
2052
2027
  }, at({
2053
- blur: B,
2028
+ blur: O,
2054
2029
  focus: L,
2055
2030
  change: N
2056
2031
  }, !0), {
@@ -2087,16 +2062,16 @@ const la = {
2087
2062
  @slot right-icon - The icon to display on the right of the input
2088
2063
  `),
2089
2064
  l.$slots["right-icon"] || l.rightIcon ? ye(l.$slots, "right-icon", { key: 0 }, () => [
2090
- typeof l.rightIcon == "string" ? (g(), F(G(V), {
2065
+ typeof l.rightIcon == "string" ? (g(), x(G(V), {
2091
2066
  key: 0,
2092
2067
  name: l.rightIcon,
2093
2068
  class: "maz-text-xl maz-text-muted"
2094
- }, null, 8, ["name"])) : l.rightIcon ? (g(), F(ke(l.rightIcon), {
2069
+ }, null, 8, ["name"])) : l.rightIcon ? (g(), x(ke(l.rightIcon), {
2095
2070
  key: 1,
2096
2071
  class: "maz-text-xl maz-text-muted"
2097
2072
  })) : W("v-if", !0)
2098
2073
  ], !0) : W("v-if", !0),
2099
- H.value ? (g(), F(G(d), {
2074
+ H.value ? (g(), x(G(d), {
2100
2075
  key: 1,
2101
2076
  color: "transparent",
2102
2077
  tabindex: "-1",
@@ -2104,10 +2079,10 @@ const la = {
2104
2079
  onClick: h[2] || (h[2] = Ee((n) => M.value = !M.value, ["stop"]))
2105
2080
  }, {
2106
2081
  default: _(() => [
2107
- M.value ? (g(), F(G(Y), {
2082
+ M.value ? (g(), x(G(Y), {
2108
2083
  key: 0,
2109
2084
  class: "maz-text-xl maz-text-muted"
2110
- })) : (g(), F(G(m), {
2085
+ })) : (g(), x(G(m), {
2111
2086
  key: 1,
2112
2087
  class: "maz-text-xl maz-text-muted"
2113
2088
  }))
@@ -2257,7 +2232,7 @@ const la = {
2257
2232
  return;
2258
2233
  s(a);
2259
2234
  const i = typeof a == "object";
2260
- e.autoClose && (!i || i && a.end) && B();
2235
+ e.autoClose && (!i || i && a.end) && O();
2261
2236
  }
2262
2237
  }), C = y(() => e.time || e.onlyTime), P = y(() => e.double && !e.onlyTime), H = y(() => !e.onlyTime), j = y(() => typeof b.value == "object");
2263
2238
  We(() => {
@@ -2271,14 +2246,14 @@ const la = {
2271
2246
  const i = (typeof a == "object" ? a.start : a) ?? D().format();
2272
2247
  return e.minDate && D(i).isBefore(e.minDate) ? e.minDate : e.maxDate && D(i).isAfter(e.maxDate) ? e.minDate ?? e.maxDate : i;
2273
2248
  }
2274
- const v = Q(S(b.value)), O = y(
2249
+ const v = Q(S(b.value)), B = y(
2275
2250
  () => e.format.includes("a") || e.format.includes("A") || e.format.includes("h")
2276
2251
  ), f = y(() => ({
2277
2252
  ...d,
2278
2253
  ...e.inputDateStyle,
2279
2254
  timeStyle: e.inputDateStyle.timeStyle ?? C.value ? "short" : void 0,
2280
- hour12: e.inputDateStyle.hour12 ?? O.value
2281
- })), x = y(() => {
2255
+ hour12: e.inputDateStyle.hour12 ?? B.value
2256
+ })), F = y(() => {
2282
2257
  if (b.value)
2283
2258
  return e.onlyTime ? b.value ? te(D(b.value).format(), m.value, {
2284
2259
  timeStyle: f.value.timeStyle,
@@ -2296,7 +2271,7 @@ const la = {
2296
2271
  vertical: "bottom",
2297
2272
  horizontal: "left"
2298
2273
  }), z = y(() => (U.value || e.open || p.value) && !e.disabled || e.inline), I = Q(!1);
2299
- xe(async () => {
2274
+ Fe(async () => {
2300
2275
  if (I.value = !0, e.customElementSelector && h(e.customElementSelector), !e.locale) {
2301
2276
  const a = $t();
2302
2277
  if (!e.noUseBrowserLocale && a)
@@ -2330,11 +2305,11 @@ const la = {
2330
2305
  const k = document.querySelector(`#${T.value}`), q = a == null ? void 0 : a.getBoundingClientRect(), Z = window.innerHeight, K = ((k == null ? void 0 : k.clientHeight) ?? 0) - i, oe = (q && Z - q.bottom) ?? 0, ee = (q && q.top) ?? 0, ie = oe && oe >= K, ae = ee && ee >= K;
2331
2306
  return !ie && (ae || ee >= oe) ? "top" : "bottom";
2332
2307
  }
2333
- function B() {
2308
+ function O() {
2334
2309
  U.value = !1, p.value = !1, u("close");
2335
2310
  }
2336
2311
  function N() {
2337
- e.customElementSelector || B();
2312
+ e.customElementSelector || O();
2338
2313
  }
2339
2314
  function l() {
2340
2315
  p.value = !p.value;
@@ -2408,7 +2383,7 @@ const la = {
2408
2383
  { immediate: !0 }
2409
2384
  );
2410
2385
  function $(a) {
2411
- a.code === "Escape" && z.value && (a.preventDefault(), B());
2386
+ a.code === "Escape" && z.value && (a.preventDefault(), O());
2412
2387
  }
2413
2388
  return be(
2414
2389
  () => z.value,
@@ -2443,9 +2418,9 @@ const la = {
2443
2418
  style: Se(a.style)
2444
2419
  },
2445
2420
  [
2446
- !a.customElementSelector && !a.inline ? (g(), F(ma, Fe({
2421
+ !a.customElementSelector && !a.inline ? (g(), x(ma, xe({
2447
2422
  key: 0,
2448
- "model-value": x.value,
2423
+ "model-value": F.value,
2449
2424
  readonly: ""
2450
2425
  }, a.$attrs, {
2451
2426
  block: "",
@@ -2491,7 +2466,7 @@ const la = {
2491
2466
  "no-header": a.noHeader,
2492
2467
  "min-date": a.minDate,
2493
2468
  format: a.format,
2494
- "is-hour12": O.value,
2469
+ "is-hour12": B.value,
2495
2470
  "max-date": a.maxDate,
2496
2471
  "disabled-weekly": a.disabledWeekly,
2497
2472
  inline: a.inline,
@@ -2503,7 +2478,7 @@ const la = {
2503
2478
  "disabled-dates": a.disabledDates,
2504
2479
  "minute-interval": a.minuteInterval,
2505
2480
  "no-shortcuts": a.noShortcuts,
2506
- onClose: B
2481
+ onClose: O
2507
2482
  }, null, 8, ["id", "modelValue", "calendar-date", "is-open", "color", "locale", "has-date", "double", "has-time", "formatter-options", "no-header", "min-date", "format", "is-hour12", "max-date", "disabled-weekly", "inline", "first-day-of-week", "shortcuts", "shortcut", "disabled", "disabled-hours", "disabled-dates", "minute-interval", "no-shortcuts"]), [
2508
2483
  [ot, z.value]
2509
2484
  ])