@mureka-fe/ui 6.1.0 → 6.2.0

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 (31) hide show
  1. package/dist/llms.txt +47 -1
  2. package/dist/src/components/loading/Loading.vue.d.ts +21 -0
  3. package/dist/src/components/loading/Loading.vue.d.ts.map +1 -0
  4. package/dist/src/components/loading/__docs__/demos/basic.demo.vue.d.ts +3 -0
  5. package/dist/src/components/loading/__docs__/demos/basic.demo.vue.d.ts.map +1 -0
  6. package/dist/src/components/loading/__docs__/demos/container.demo.vue.d.ts +3 -0
  7. package/dist/src/components/loading/__docs__/demos/container.demo.vue.d.ts.map +1 -0
  8. package/dist/src/components/loading/__docs__/demos/fullscreen.demo.vue.d.ts +3 -0
  9. package/dist/src/components/loading/__docs__/demos/fullscreen.demo.vue.d.ts.map +1 -0
  10. package/dist/src/components/loading/__docs__/demos/imperative.demo.vue.d.ts +3 -0
  11. package/dist/src/components/loading/__docs__/demos/imperative.demo.vue.d.ts.map +1 -0
  12. package/dist/src/components/loading/__docs__/meta.d.ts +4 -0
  13. package/dist/src/components/loading/__docs__/meta.d.ts.map +1 -0
  14. package/dist/src/components/loading/index.d.ts +5 -0
  15. package/dist/src/components/loading/index.d.ts.map +1 -0
  16. package/dist/src/components/loading/loading.imperative.d.ts +26 -0
  17. package/dist/src/components/loading/loading.imperative.d.ts.map +1 -0
  18. package/dist/src/components/loading/loading.imperative.spec.d.ts +2 -0
  19. package/dist/src/components/loading/loading.imperative.spec.d.ts.map +1 -0
  20. package/dist/src/components/loading/loading.spec.d.ts +2 -0
  21. package/dist/src/components/loading/loading.spec.d.ts.map +1 -0
  22. package/dist/src/components/loading/loading.types.d.ts +38 -0
  23. package/dist/src/components/loading/loading.types.d.ts.map +1 -0
  24. package/dist/src/components/message/message.d.ts.map +1 -1
  25. package/dist/src/components/modal/Modal.vue.d.ts +1 -1
  26. package/dist/src/index.d.ts +2 -0
  27. package/dist/src/index.d.ts.map +1 -1
  28. package/dist/styles.css +1 -1
  29. package/dist/ui.js +763 -570
  30. package/dist/ui.umd.cjs +1 -1
  31. package/package.json +1 -1
package/dist/ui.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as H, useSlots as K, computed as n, openBlock as f, createElementBlock as m, normalizeClass as Q, Fragment as X, createElementVNode as v, createCommentVNode as M, unref as O, renderSlot as w, createTextVNode as G, toDisplayString as A, useAttrs as D, normalizeStyle as he, ref as N, inject as ne, watchEffect as Ie, mergeProps as R, nextTick as j, provide as le, renderList as pe, createBlock as E, withCtx as W, reactive as ze, h as be, createVNode as Oe, TransitionGroup as Ae, resolveDynamicComponent as Re, onMounted as oe, onBeforeUnmount as ie, watch as ue, Teleport as De, createApp as Ge } from "vue";
2
- const Ee = [
1
+ import { defineComponent as H, useSlots as F, computed as l, openBlock as f, createElementBlock as m, normalizeClass as O, Fragment as ee, createElementVNode as v, createCommentVNode as V, unref as D, renderSlot as x, createTextVNode as G, toDisplayString as z, useAttrs as E, normalizeStyle as W, ref as S, inject as ve, watchEffect as We, mergeProps as R, nextTick as j, provide as me, renderList as we, createBlock as Z, withCtx as U, watch as ae, onBeforeUnmount as se, createVNode as Y, Transition as ue, Teleport as xe, createApp as Ve, h as he, reactive as Je, TransitionGroup as Qe, resolveDynamicComponent as Ye, onMounted as ge } from "vue";
2
+ const et = [
3
3
  "new",
4
4
  "new-mini",
5
5
  "premier",
@@ -13,7 +13,7 @@ const Ee = [
13
13
  "published",
14
14
  "details",
15
15
  "bpm"
16
- ], je = ["outline", "solid", "soft"], Ue = {
16
+ ], tt = ["outline", "solid", "soft"], at = {
17
17
  new: { isSvgPreset: !0 },
18
18
  "new-mini": { isSvgPreset: !0 },
19
19
  premier: { defaultContent: "Premier" },
@@ -28,18 +28,18 @@ const Ee = [
28
28
  details: { defaultContent: "Details" },
29
29
  bpm: { defaultContent: "62 BPM" }
30
30
  };
31
- function ge(e, t) {
31
+ function $e(e, t) {
32
32
  return typeof t == "string" && e.includes(t);
33
33
  }
34
- function Ze(e) {
35
- return ge(je, e);
34
+ function st(e) {
35
+ return $e(tt, e);
36
36
  }
37
- function Fe(e) {
38
- return ge(Ee, e);
37
+ function lt(e) {
38
+ return $e(et, e);
39
39
  }
40
- function ke(e = {}) {
41
- if (Fe(e.preset)) {
42
- const t = Ue[e.preset];
40
+ function Te(e = {}) {
41
+ if (lt(e.preset)) {
42
+ const t = at[e.preset];
43
43
  return {
44
44
  preset: e.preset,
45
45
  defaultContent: t.defaultContent,
@@ -47,16 +47,16 @@ function ke(e = {}) {
47
47
  };
48
48
  }
49
49
  return {
50
- variant: Ze(e.variant) ? e.variant : "outline",
50
+ variant: st(e.variant) ? e.variant : "outline",
51
51
  paid: e.paid ?? !1,
52
52
  isSvgPreset: !1
53
53
  };
54
54
  }
55
- function Ke(e = {}) {
56
- const t = ke(e), a = ["mu-badge"];
55
+ function nt(e = {}) {
56
+ const t = Te(e), a = ["mu-badge"];
57
57
  return t.preset ? (a.push(`mu-badge--preset-${t.preset}`), t.isSvgPreset && a.push("mu-badge--svg"), t.preset === "details" && a.push("mu-badge--with-default-icon"), a) : (a.push(`mu-badge--variant-${t.variant}`, t.paid ? "is-paid" : "is-free"), a);
58
58
  }
59
- const qe = ["role", "aria-label"], Xe = {
59
+ const ot = ["role", "aria-label"], it = {
60
60
  key: 0,
61
61
  "data-test": "new-wordmark",
62
62
  class: "mu-badge__new-wordmark",
@@ -64,7 +64,7 @@ const qe = ["role", "aria-label"], Xe = {
64
64
  fill: "none",
65
65
  xmlns: "http://www.w3.org/2000/svg",
66
66
  "aria-hidden": "true"
67
- }, We = {
67
+ }, ut = {
68
68
  key: 1,
69
69
  "data-test": "new-mini-wordmark",
70
70
  class: "mu-badge__new-wordmark",
@@ -72,19 +72,19 @@ const qe = ["role", "aria-label"], Xe = {
72
72
  fill: "none",
73
73
  xmlns: "http://www.w3.org/2000/svg",
74
74
  "aria-hidden": "true"
75
- }, Je = {
75
+ }, rt = {
76
76
  key: 0,
77
77
  class: "mu-badge__prefix",
78
78
  "aria-hidden": "true"
79
- }, Qe = {
79
+ }, ct = {
80
80
  key: 1,
81
81
  class: "mu-badge__prefix",
82
82
  "aria-hidden": "true"
83
- }, Ye = { class: "mu-badge__content" }, et = {
83
+ }, dt = { class: "mu-badge__content" }, ft = {
84
84
  key: 2,
85
85
  class: "mu-badge__suffix",
86
86
  "aria-hidden": "true"
87
- }, tt = /* @__PURE__ */ H({
87
+ }, vt = /* @__PURE__ */ H({
88
88
  __name: "Badge",
89
89
  props: {
90
90
  variant: {},
@@ -92,14 +92,14 @@ const qe = ["role", "aria-label"], Xe = {
92
92
  preset: {}
93
93
  },
94
94
  setup(e) {
95
- const t = e, a = K(), s = n(() => ke(t)), r = n(() => Ke(t)), l = n(() => s.value.isSvgPreset ? "img" : void 0), o = n(() => s.value.isSvgPreset ? "NEW" : void 0), u = n(() => s.value.preset === "details");
95
+ const t = e, a = F(), s = l(() => Te(t)), r = l(() => nt(t)), n = l(() => s.value.isSvgPreset ? "img" : void 0), o = l(() => s.value.isSvgPreset ? "NEW" : void 0), u = l(() => s.value.preset === "details");
96
96
  return (c, i) => (f(), m("span", {
97
- class: Q(r.value),
98
- role: l.value,
97
+ class: O(r.value),
98
+ role: n.value,
99
99
  "aria-label": o.value
100
100
  }, [
101
- s.value.isSvgPreset ? (f(), m(X, { key: 0 }, [
102
- s.value.preset === "new" ? (f(), m("svg", Xe, [...i[0] || (i[0] = [
101
+ s.value.isSvgPreset ? (f(), m(ee, { key: 0 }, [
102
+ s.value.preset === "new" ? (f(), m("svg", it, [...i[0] || (i[0] = [
103
103
  v("path", {
104
104
  d: "M0 8V0H1.49679L3.84103 6.65205C3.82636 6.44018 3.80802 6.18813 3.78601 5.89589C3.76399 5.60365 3.74565 5.30046 3.73098 4.9863C3.72364 4.67215 3.71997 4.38721 3.71997 4.13151V0H4.82055V8H3.32376L0.990525 1.34794C1.0052 1.5379 1.01987 1.77534 1.03455 2.06027C1.05656 2.34521 1.07123 2.6411 1.07857 2.94795C1.09325 3.25479 1.10058 3.53973 1.10058 3.80274V8H0Z",
105
105
  fill: "currentColor"
@@ -112,7 +112,7 @@ const qe = ["role", "aria-label"], Xe = {
112
112
  d: "M14.7282 8L13.8587 0H14.9263L15.4656 5.74247C15.4803 5.88858 15.4913 6.04932 15.4986 6.22466C15.5133 6.4 15.5243 6.57169 15.5316 6.73973C15.5463 6.90776 15.5536 7.05388 15.5536 7.17808C15.5683 7.05388 15.583 6.90776 15.5977 6.73973C15.6123 6.57169 15.627 6.4 15.6417 6.22466C15.6637 6.04932 15.6857 5.88858 15.7077 5.74247L16.4011 0H17.5017L18.151 5.74247C18.1657 5.88858 18.1804 6.04932 18.195 6.22466C18.2171 6.4 18.2391 6.57169 18.2611 6.73973C18.2831 6.90776 18.2978 7.05388 18.3051 7.17808C18.3124 7.05388 18.3198 6.90776 18.3271 6.73973C18.3418 6.57169 18.3565 6.4 18.3711 6.22466C18.3858 6.04932 18.4005 5.88858 18.4152 5.74247L18.9655 0H20L19.0975 8H17.7218L17.0724 2.18082C17.0578 2.0274 17.0431 1.86667 17.0284 1.69863C17.0138 1.52329 16.9991 1.35525 16.9844 1.19452C16.9697 1.02648 16.9551 0.887671 16.9404 0.778082C16.933 0.887671 16.922 1.02648 16.9074 1.19452C16.8927 1.35525 16.878 1.52329 16.8633 1.69863C16.8487 1.86667 16.8303 2.0274 16.8083 2.18082L16.1149 8H14.7282Z",
113
113
  fill: "currentColor"
114
114
  }, null, -1)
115
- ])])) : s.value.preset === "new-mini" ? (f(), m("svg", We, [...i[1] || (i[1] = [
115
+ ])])) : s.value.preset === "new-mini" ? (f(), m("svg", ut, [...i[1] || (i[1] = [
116
116
  v("path", {
117
117
  d: "M0 6V0H1.12259L2.88078 4.98904C2.86977 4.83014 2.85601 4.6411 2.8395 4.42192C2.823 4.20274 2.80924 3.97534 2.79823 3.73973C2.79273 3.50411 2.78998 3.29041 2.78998 3.09863V0H3.61542V6H2.49282L0.742893 1.01096C0.753899 1.15342 0.764905 1.33151 0.775911 1.54521C0.79242 1.7589 0.803426 1.98082 0.808928 2.21096C0.819934 2.4411 0.825437 2.65479 0.825437 2.85205V6H0Z",
118
118
  fill: "currentColor"
@@ -125,9 +125,9 @@ const qe = ["role", "aria-label"], Xe = {
125
125
  d: "M11.0462 6L10.3941 0H11.1947L11.5992 4.30685C11.6102 4.41644 11.6185 4.53699 11.624 4.66849C11.635 4.8 11.6432 4.92877 11.6487 5.05479C11.6597 5.18082 11.6652 5.29041 11.6652 5.38356C11.6762 5.29041 11.6872 5.18082 11.6982 5.05479C11.7093 4.92877 11.7203 4.8 11.7313 4.66849C11.7478 4.53699 11.7643 4.41644 11.7808 4.30685L12.3008 0H13.1263L13.6133 4.30685C13.6243 4.41644 13.6353 4.53699 13.6463 4.66849C13.6628 4.8 13.6793 4.92877 13.6958 5.05479C13.7123 5.18082 13.7233 5.29041 13.7288 5.38356C13.7343 5.29041 13.7398 5.18082 13.7453 5.05479C13.7563 4.92877 13.7673 4.8 13.7784 4.66849C13.7894 4.53699 13.8004 4.41644 13.8114 4.30685L14.2241 0H15L14.3231 6H13.2913L12.8043 1.63562C12.7933 1.52055 12.7823 1.4 12.7713 1.27397C12.7603 1.14247 12.7493 1.01644 12.7383 0.89589C12.7273 0.769863 12.7163 0.665753 12.7053 0.583561C12.6998 0.665753 12.6915 0.769863 12.6805 0.89589C12.6695 1.01644 12.6585 1.14247 12.6475 1.27397C12.6365 1.4 12.6227 1.52055 12.6062 1.63562L12.0862 6H11.0462Z",
126
126
  fill: "currentColor"
127
127
  }, null, -1)
128
- ])])) : M("", !0)
129
- ], 64)) : (f(), m(X, { key: 1 }, [
130
- u.value ? (f(), m("span", Je, [...i[2] || (i[2] = [
128
+ ])])) : V("", !0)
129
+ ], 64)) : (f(), m(ee, { key: 1 }, [
130
+ u.value ? (f(), m("span", rt, [...i[2] || (i[2] = [
131
131
  v("svg", {
132
132
  "data-test": "details-icon",
133
133
  viewBox: "0 0 12 12",
@@ -143,27 +143,27 @@ const qe = ["role", "aria-label"], Xe = {
143
143
  "stroke-linejoin": "round"
144
144
  })
145
145
  ], -1)
146
- ])])) : O(a).prefix ? (f(), m("span", Qe, [
147
- w(c.$slots, "prefix", {}, void 0, !0)
148
- ])) : M("", !0),
149
- v("span", Ye, [
150
- w(c.$slots, "default", {}, () => [
151
- G(A(s.value.defaultContent), 1)
146
+ ])])) : D(a).prefix ? (f(), m("span", ct, [
147
+ x(c.$slots, "prefix", {}, void 0, !0)
148
+ ])) : V("", !0),
149
+ v("span", dt, [
150
+ x(c.$slots, "default", {}, () => [
151
+ G(z(s.value.defaultContent), 1)
152
152
  ], !0)
153
153
  ]),
154
- O(a).suffix ? (f(), m("span", et, [
155
- w(c.$slots, "suffix", {}, void 0, !0)
156
- ])) : M("", !0)
154
+ D(a).suffix ? (f(), m("span", ft, [
155
+ x(c.$slots, "suffix", {}, void 0, !0)
156
+ ])) : V("", !0)
157
157
  ], 64))
158
- ], 10, qe));
158
+ ], 10, ot));
159
159
  }
160
160
  }), I = (e, t) => {
161
161
  const a = e.__vccOpts || e;
162
162
  for (const [s, r] of t)
163
163
  a[s] = r;
164
164
  return a;
165
- }, es = /* @__PURE__ */ I(tt, [["__scopeId", "data-v-aa97ab3d"]]);
166
- function re(e = {}) {
165
+ }, Ms = /* @__PURE__ */ I(vt, [["__scopeId", "data-v-aa97ab3d"]]);
166
+ function pe(e = {}) {
167
167
  return {
168
168
  type: e.type ?? "primary",
169
169
  status: e.status,
@@ -177,8 +177,8 @@ function re(e = {}) {
177
177
  nativeType: e.nativeType ?? "button"
178
178
  };
179
179
  }
180
- function at(e = {}) {
181
- const t = re(e), a = [
180
+ function mt(e = {}) {
181
+ const t = pe(e), a = [
182
182
  "mu-button",
183
183
  `mu-button--${t.type}`,
184
184
  `mu-button--appearance-${t.appearance}`,
@@ -186,33 +186,33 @@ function at(e = {}) {
186
186
  ];
187
187
  return t.type === "ghost" && t.ghostTextTone === "primary" && a.push(`mu-button--ghost-text-${t.ghostTextTone}`), t.shape === "pill" && a.push("mu-button--shape-pill"), t.status && a.push(`mu-button--status-${t.status}`), t.iconOnly && a.push("mu-button--icon-only"), t.disabled && a.push("is-disabled"), t.loading && a.push("is-loading"), a;
188
188
  }
189
- function st(e = {}) {
190
- const t = re(e);
189
+ function ht(e = {}) {
190
+ const t = pe(e);
191
191
  return !t.disabled && !t.loading;
192
192
  }
193
- function nt(e = {}) {
194
- const t = e.iconOnly ?? !1, a = e.hasPrefix ?? !1, s = e.hasSuffix ?? !1, r = e.loading ?? !1, l = e.hasAriaLabel ?? !1;
193
+ function gt(e = {}) {
194
+ const t = e.iconOnly ?? !1, a = e.hasPrefix ?? !1, s = e.hasSuffix ?? !1, r = e.loading ?? !1, n = e.hasAriaLabel ?? !1;
195
195
  return {
196
196
  showPrefixSlot: !t && !r && a,
197
197
  showSuffixSlot: !t && s,
198
198
  showDefaultSlot: !(t && r),
199
199
  showLoadingIndicator: r,
200
- requiresAriaLabel: t && !l,
200
+ requiresAriaLabel: t && !n,
201
201
  isInvalidIconOnlyCombination: t && (a || s)
202
202
  };
203
203
  }
204
- const lt = ["type", "disabled", "aria-busy"], ot = {
204
+ const pt = ["type", "disabled", "aria-busy"], bt = {
205
205
  key: 0,
206
206
  class: "mu-button__prefix",
207
207
  "aria-hidden": "true"
208
- }, it = {
208
+ }, _t = {
209
209
  key: 1,
210
210
  class: "mu-button__content"
211
- }, ut = {
211
+ }, kt = {
212
212
  key: 2,
213
213
  class: "mu-button__suffix",
214
214
  "aria-hidden": "true"
215
- }, rt = /* @__PURE__ */ H({
215
+ }, yt = /* @__PURE__ */ H({
216
216
  __name: "Button",
217
217
  props: {
218
218
  type: { default: "primary" },
@@ -228,7 +228,7 @@ const lt = ["type", "disabled", "aria-busy"], ot = {
228
228
  },
229
229
  emits: ["click"],
230
230
  setup(e, { emit: t }) {
231
- const a = e, s = t, r = K(), l = D(), o = {
231
+ const a = e, s = t, r = F(), n = E(), o = {
232
232
  small: {
233
233
  width: "var(--mu-button-icon-size-small)",
234
234
  height: "var(--mu-button-icon-size-small)"
@@ -241,35 +241,35 @@ const lt = ["type", "disabled", "aria-busy"], ot = {
241
241
  width: "var(--mu-button-icon-size-large)",
242
242
  height: "var(--mu-button-icon-size-large)"
243
243
  }
244
- }, u = n(() => re(a)), c = n(() => at(u.value)), i = n(() => o[u.value.size]), d = n(
245
- () => nt({
244
+ }, u = l(() => pe(a)), c = l(() => mt(u.value)), i = l(() => o[u.value.size]), d = l(
245
+ () => gt({
246
246
  iconOnly: u.value.iconOnly,
247
247
  hasPrefix: !!r.prefix,
248
248
  hasSuffix: !!r.suffix,
249
249
  loading: u.value.loading,
250
250
  hasDefaultSlot: !!r.default,
251
- hasAriaLabel: typeof l["aria-label"] == "string" && l["aria-label"].trim().length > 0
251
+ hasAriaLabel: typeof n["aria-label"] == "string" && n["aria-label"].trim().length > 0
252
252
  })
253
253
  );
254
- function y(k) {
255
- if (!st(u.value)) {
256
- k.preventDefault(), k.stopPropagation();
254
+ function k(h) {
255
+ if (!ht(u.value)) {
256
+ h.preventDefault(), h.stopPropagation();
257
257
  return;
258
258
  }
259
- s("click", k);
259
+ s("click", h);
260
260
  }
261
- return (k, _) => (f(), m("button", {
261
+ return (h, _) => (f(), m("button", {
262
262
  type: u.value.nativeType,
263
- class: Q(["mu-button", c.value]),
263
+ class: O(["mu-button", c.value]),
264
264
  disabled: u.value.disabled || u.value.loading,
265
265
  "aria-busy": u.value.loading ? "true" : void 0,
266
- onClick: y
266
+ onClick: k
267
267
  }, [
268
- d.value.showLoadingIndicator || d.value.showPrefixSlot ? (f(), m("span", ot, [
268
+ d.value.showLoadingIndicator || d.value.showPrefixSlot ? (f(), m("span", bt, [
269
269
  d.value.showLoadingIndicator ? (f(), m("svg", {
270
270
  key: 0,
271
271
  class: "mu-button__loading-icon",
272
- style: he(i.value),
272
+ style: W(i.value),
273
273
  viewBox: "0 0 24 24",
274
274
  fill: "none",
275
275
  xmlns: "http://www.w3.org/2000/svg"
@@ -278,24 +278,24 @@ const lt = ["type", "disabled", "aria-busy"], ot = {
278
278
  d: "M2.00293 12C2.00293 6.47853 6.47853 2.00293 12 2.00293C12.5509 2.00293 12.9971 2.4491 12.9971 3C12.9971 3.5509 12.5509 3.99707 12 3.99707C7.58034 3.99707 3.99707 7.58034 3.99707 12C3.99707 16.4197 7.58034 20.0029 12 20.0029C16.4197 20.0029 20.0029 16.4197 20.0029 12C20.0029 11.4491 20.4491 11.0029 21 11.0029C21.5509 11.0029 21.9971 11.4491 21.9971 12C21.9971 17.5215 17.5215 21.9971 12 21.9971C6.47853 21.9971 2.00293 17.5215 2.00293 12Z",
279
279
  fill: "currentColor"
280
280
  }, null, -1)
281
- ])], 4)) : w(k.$slots, "prefix", { key: 1 }, void 0, !0)
282
- ])) : M("", !0),
283
- d.value.showDefaultSlot ? (f(), m("span", it, [
284
- w(k.$slots, "default", {}, void 0, !0)
285
- ])) : M("", !0),
286
- d.value.showSuffixSlot ? (f(), m("span", ut, [
287
- w(k.$slots, "suffix", {}, void 0, !0)
288
- ])) : M("", !0)
289
- ], 10, lt));
281
+ ])], 4)) : x(h.$slots, "prefix", { key: 1 }, void 0, !0)
282
+ ])) : V("", !0),
283
+ d.value.showDefaultSlot ? (f(), m("span", _t, [
284
+ x(h.$slots, "default", {}, void 0, !0)
285
+ ])) : V("", !0),
286
+ d.value.showSuffixSlot ? (f(), m("span", kt, [
287
+ x(h.$slots, "suffix", {}, void 0, !0)
288
+ ])) : V("", !0)
289
+ ], 10, pt));
290
290
  }
291
- }), me = /* @__PURE__ */ I(rt, [["__scopeId", "data-v-e59338a3"]]), _e = Symbol("MuCheckboxGroup"), ct = ["horizontal", "vertical"];
292
- function dt(e, t) {
291
+ }), Ce = /* @__PURE__ */ I(yt, [["__scopeId", "data-v-e59338a3"]]), Me = Symbol("MuCheckboxGroup"), Ct = ["horizontal", "vertical"];
292
+ function wt(e, t) {
293
293
  return typeof t == "string" && e.includes(t);
294
294
  }
295
- function ft(e) {
296
- return dt(ct, e);
295
+ function xt(e) {
296
+ return wt(Ct, e);
297
297
  }
298
- function Ce(e = {}) {
298
+ function Be(e = {}) {
299
299
  return {
300
300
  modelValue: e.modelValue,
301
301
  value: e.value,
@@ -305,40 +305,40 @@ function Ce(e = {}) {
305
305
  name: e.name
306
306
  };
307
307
  }
308
- function ye(e = {}) {
308
+ function Se(e = {}) {
309
309
  return {
310
310
  modelValue: e.modelValue,
311
311
  defaultValue: e.defaultValue,
312
312
  options: e.options,
313
313
  disabled: e.disabled ?? !1,
314
314
  name: e.name,
315
- direction: ft(e.direction) ? e.direction : "horizontal"
315
+ direction: xt(e.direction) ? e.direction : "horizontal"
316
316
  };
317
317
  }
318
- function vt(e = {}) {
318
+ function Vt(e = {}) {
319
319
  return e.modelValue !== void 0;
320
320
  }
321
- function mt(e = {}) {
321
+ function $t(e = {}) {
322
322
  return e.modelValue !== void 0;
323
323
  }
324
- function we(e, t) {
324
+ function Le(e, t) {
325
325
  return !e || t === void 0 ? !1 : e.some((a) => Object.is(a, t));
326
326
  }
327
- function ht(e, t) {
328
- return we(e, t) ? e.filter((a) => !Object.is(a, t)) : [...e, t];
327
+ function Tt(e, t) {
328
+ return Le(e, t) ? e.filter((a) => !Object.is(a, t)) : [...e, t];
329
329
  }
330
- function pt(e) {
330
+ function Mt(e) {
331
331
  return typeof e == "object" ? { ...e, label: e.label ?? String(e.value) } : { label: String(e), value: e };
332
332
  }
333
- function bt(e = {}, t = {}) {
334
- const a = Ce(e), s = ["mu-checkbox"];
333
+ function Bt(e = {}, t = {}) {
334
+ const a = Be(e), s = ["mu-checkbox"];
335
335
  return t.checked && s.push("is-checked"), (t.indeterminate || a.indeterminate) && s.push("is-indeterminate"), (t.disabled || a.disabled) && s.push("is-disabled"), s;
336
336
  }
337
- function gt(e = {}) {
338
- const t = ye(e), a = ["mu-checkbox-group", `mu-checkbox-group--${t.direction}`];
337
+ function St(e = {}) {
338
+ const t = Se(e), a = ["mu-checkbox-group", `mu-checkbox-group--${t.direction}`];
339
339
  return t.disabled && a.push("is-disabled"), a;
340
340
  }
341
- const kt = ["checked", "disabled", "name", "value"], _t = { class: "mu-checkbox__label" }, Ct = /* @__PURE__ */ H({
341
+ const Lt = ["checked", "disabled", "name", "value"], Pt = { class: "mu-checkbox__label" }, Nt = /* @__PURE__ */ H({
342
342
  inheritAttrs: !1,
343
343
  __name: "Checkbox",
344
344
  props: {
@@ -351,61 +351,61 @@ const kt = ["checked", "disabled", "name", "value"], _t = { class: "mu-checkbox_
351
351
  },
352
352
  emits: ["update:modelValue", "change", "focus", "blur"],
353
353
  setup(e, { emit: t }) {
354
- const a = e, s = t, r = D(), l = N(null), o = ne(_e, null), u = n(() => Ce(a)), c = n(() => vt(a)), i = N(u.value.defaultChecked), d = n(() => o ? u.value.value !== void 0 ? o.isChecked(u.value.value) : !1 : c.value ? u.value.modelValue ?? !1 : i.value), y = n(
354
+ const a = e, s = t, r = E(), n = S(null), o = ve(Me, null), u = l(() => Be(a)), c = l(() => Vt(a)), i = S(u.value.defaultChecked), d = l(() => o ? u.value.value !== void 0 ? o.isChecked(u.value.value) : !1 : c.value ? u.value.modelValue ?? !1 : i.value), k = l(
355
355
  () => u.value.disabled || !!(o != null && o.disabled.value)
356
- ), k = n(() => (o == null ? void 0 : o.name.value) ?? u.value.name), _ = n(
356
+ ), h = l(() => (o == null ? void 0 : o.name.value) ?? u.value.name), _ = l(
357
357
  () => u.value.value === void 0 ? void 0 : String(u.value.value)
358
- ), T = n(() => [
359
- bt(a, {
358
+ ), T = l(() => [
359
+ Bt(a, {
360
360
  checked: d.value,
361
361
  indeterminate: u.value.indeterminate,
362
- disabled: y.value
362
+ disabled: k.value
363
363
  }),
364
364
  r.class
365
- ]), x = n(() => {
366
- const { class: p, style: B, ...z } = r;
367
- return z;
368
- }), b = n(() => r.style);
369
- Ie(() => {
370
- l.value && (l.value.indeterminate = u.value.indeterminate);
365
+ ]), C = l(() => {
366
+ const { class: b, style: B, ...A } = r;
367
+ return A;
368
+ }), p = l(() => r.style);
369
+ We(() => {
370
+ n.value && (n.value.indeterminate = u.value.indeterminate);
371
371
  });
372
- function g(p) {
373
- p && (p.checked = d.value, p.indeterminate = u.value.indeterminate);
372
+ function y(b) {
373
+ b && (b.checked = d.value, b.indeterminate = u.value.indeterminate);
374
374
  }
375
- function S(p) {
376
- if (y.value)
375
+ function L(b) {
376
+ if (k.value)
377
377
  return;
378
- const B = p.target instanceof globalThis.HTMLInputElement ? p.target : null;
378
+ const B = b.target instanceof globalThis.HTMLInputElement ? b.target : null;
379
379
  if (o) {
380
- u.value.value !== void 0 && o.toggle(u.value.value, p), j(() => g(B));
380
+ u.value.value !== void 0 && o.toggle(u.value.value, b), j(() => y(B));
381
381
  return;
382
382
  }
383
- const z = !d.value;
384
- c.value || (i.value = z), s("update:modelValue", z), s("change", z, p), j(() => g(B));
383
+ const A = !d.value;
384
+ c.value || (i.value = A), s("update:modelValue", A), s("change", A, b), j(() => y(B));
385
385
  }
386
- function $(p) {
387
- s("focus", p);
386
+ function M(b) {
387
+ s("focus", b);
388
388
  }
389
- function h(p) {
390
- s("blur", p);
389
+ function g(b) {
390
+ s("blur", b);
391
391
  }
392
- return (p, B) => (f(), m("label", R(x.value, {
392
+ return (b, B) => (f(), m("label", R(C.value, {
393
393
  class: T.value,
394
- style: b.value
394
+ style: p.value
395
395
  }), [
396
396
  v("input", {
397
397
  ref_key: "inputRef",
398
- ref: l,
398
+ ref: n,
399
399
  class: "mu-checkbox__input",
400
400
  type: "checkbox",
401
401
  checked: d.value,
402
- disabled: y.value,
403
- name: k.value,
402
+ disabled: k.value,
403
+ name: h.value,
404
404
  value: _.value,
405
- onChange: S,
406
- onFocus: $,
407
- onBlur: h
408
- }, null, 40, kt),
405
+ onChange: L,
406
+ onFocus: M,
407
+ onBlur: g
408
+ }, null, 40, Lt),
409
409
  B[0] || (B[0] = v("span", {
410
410
  class: "mu-checkbox__control",
411
411
  "aria-hidden": "true"
@@ -423,12 +423,12 @@ const kt = ["checked", "disabled", "name", "value"], _t = { class: "mu-checkbox_
423
423
  ]),
424
424
  v("span", { class: "mu-checkbox__dash" })
425
425
  ], -1)),
426
- v("span", _t, [
427
- w(p.$slots, "default", {}, void 0, !0)
426
+ v("span", Pt, [
427
+ x(b.$slots, "default", {}, void 0, !0)
428
428
  ])
429
429
  ], 16));
430
430
  }
431
- }), yt = /* @__PURE__ */ I(Ct, [["__scopeId", "data-v-bf56ea83"]]), wt = /* @__PURE__ */ H({
431
+ }), Ht = /* @__PURE__ */ I(Nt, [["__scopeId", "data-v-bf56ea83"]]), It = /* @__PURE__ */ H({
432
432
  inheritAttrs: !1,
433
433
  __name: "CheckboxGroup",
434
434
  props: {
@@ -441,57 +441,248 @@ const kt = ["checked", "disabled", "name", "value"], _t = { class: "mu-checkbox_
441
441
  },
442
442
  emits: ["update:modelValue", "change"],
443
443
  setup(e, { emit: t }) {
444
- const a = e, s = t, r = D(), l = n(() => ye(a)), o = n(() => mt(a)), u = N([...l.value.defaultValue ?? []]), c = n(
445
- () => o.value ? l.value.modelValue ?? [] : u.value
446
- ), i = n(() => l.value.disabled), d = n(() => l.value.name), y = n(
447
- () => l.value.options ? l.value.options.map((g) => pt(g)) : null
448
- ), k = n(() => [gt(a), r.class]), _ = n(() => {
449
- const { class: g, style: S, ...$ } = r;
450
- return $;
451
- }), T = n(() => r.style);
452
- function x(g) {
453
- return we(c.value, g);
444
+ const a = e, s = t, r = E(), n = l(() => Se(a)), o = l(() => $t(a)), u = S([...n.value.defaultValue ?? []]), c = l(
445
+ () => o.value ? n.value.modelValue ?? [] : u.value
446
+ ), i = l(() => n.value.disabled), d = l(() => n.value.name), k = l(
447
+ () => n.value.options ? n.value.options.map((y) => Mt(y)) : null
448
+ ), h = l(() => [St(a), r.class]), _ = l(() => {
449
+ const { class: y, style: L, ...M } = r;
450
+ return M;
451
+ }), T = l(() => r.style);
452
+ function C(y) {
453
+ return Le(c.value, y);
454
454
  }
455
- function b(g, S) {
456
- if (l.value.disabled)
455
+ function p(y, L) {
456
+ if (n.value.disabled)
457
457
  return;
458
- const $ = ht(c.value, g);
459
- o.value || (u.value = $), s("update:modelValue", $), s("change", $, S);
458
+ const M = Tt(c.value, y);
459
+ o.value || (u.value = M), s("update:modelValue", M), s("change", M, L);
460
460
  }
461
- return le(_e, {
461
+ return me(Me, {
462
462
  value: c,
463
463
  disabled: i,
464
464
  name: d,
465
- isChecked: x,
466
- toggle: b
467
- }), (g, S) => (f(), m("div", R(_.value, {
465
+ isChecked: C,
466
+ toggle: p
467
+ }), (y, L) => (f(), m("div", R(_.value, {
468
468
  role: "group",
469
- class: k.value,
469
+ class: h.value,
470
470
  style: T.value
471
471
  }), [
472
- y.value ? (f(!0), m(X, { key: 0 }, pe(y.value, ($) => (f(), E(yt, {
473
- key: `${typeof $.value}:${$.value}`,
474
- value: $.value,
475
- disabled: $.disabled
472
+ k.value ? (f(!0), m(ee, { key: 0 }, we(k.value, (M) => (f(), Z(Ht, {
473
+ key: `${typeof M.value}:${M.value}`,
474
+ value: M.value,
475
+ disabled: M.disabled
476
476
  }, {
477
- default: W(() => [
478
- w(g.$slots, "label", { option: $ }, () => [
479
- G(A($.label), 1)
477
+ default: U(() => [
478
+ x(y.$slots, "label", { option: M }, () => [
479
+ G(z(M.label), 1)
480
480
  ], !0)
481
481
  ]),
482
482
  _: 2
483
- }, 1032, ["value", "disabled"]))), 128)) : w(g.$slots, "default", { key: 1 }, void 0, !0)
483
+ }, 1032, ["value", "disabled"]))), 128)) : x(y.$slots, "default", { key: 1 }, void 0, !0)
484
484
  ], 16));
485
485
  }
486
- }), ts = /* @__PURE__ */ I(wt, [["__scopeId", "data-v-852a5fc4"]]), xt = 3e3, Vt = {
486
+ }), Bs = /* @__PURE__ */ I(It, [["__scopeId", "data-v-852a5fc4"]]), Pe = 36;
487
+ function zt(e = {}) {
488
+ return {
489
+ spinning: e.spinning ?? !0,
490
+ text: e.text,
491
+ ariaLabel: e.ariaLabel,
492
+ size: e.size ?? Pe,
493
+ fullscreen: e.fullscreen ?? !1,
494
+ delay: e.delay ?? 0
495
+ };
496
+ }
497
+ function Ne(e = {}) {
498
+ return e.fullscreen ? "page" : e.hasContent ? "container" : "inline";
499
+ }
500
+ function At(e = {}) {
501
+ return ["mu-loading", `mu-loading--${Ne(e)}`];
502
+ }
503
+ const Ot = { class: "mu-loading__content" }, Dt = {
504
+ key: 0,
505
+ class: "mu-loading__overlay"
506
+ }, Rt = ["aria-label"], Et = {
507
+ key: 0,
508
+ class: "mu-loading__text"
509
+ }, Gt = ["aria-label"], Zt = {
510
+ key: 0,
511
+ class: "mu-loading__text"
512
+ }, Ut = ["aria-label"], jt = {
513
+ key: 0,
514
+ class: "mu-loading__text"
515
+ }, Ft = "M18 5.625C19.0355 5.625 19.875 6.46447 19.875 7.5C19.875 8.53553 19.0355 9.375 18 9.375V7.5V5.625ZM24.6491 12.506C23.989 11.7081 24.1006 10.5262 24.8985 9.86605C25.6963 9.20591 26.8782 9.31754 27.5384 10.1154L26.0938 11.3107L24.6491 12.506ZM18 7.5V9.375C13.2365 9.375 9.375 13.2365 9.375 18H7.5H5.625C5.625 11.1655 11.1655 5.625 18 5.625V7.5ZM7.5 18H9.375C9.375 22.7635 13.2365 26.625 18 26.625V28.5V30.375C11.1655 30.375 5.625 24.8345 5.625 18H7.5ZM18 28.5V26.625C22.7635 26.625 26.625 22.7635 26.625 18H28.5H30.375C30.375 24.8345 24.8345 30.375 18 30.375V28.5ZM28.5 18H26.625C26.625 15.9104 25.8843 13.9987 24.6491 12.506L26.0938 11.3107L27.5384 10.1154C29.3093 12.2557 30.375 15.0059 30.375 18H28.5Z", Kt = /* @__PURE__ */ H({
516
+ __name: "Loading",
517
+ props: {
518
+ spinning: { type: Boolean, default: !0 },
519
+ text: { default: void 0 },
520
+ ariaLabel: { default: void 0 },
521
+ size: { default: Pe },
522
+ fullscreen: { type: Boolean, default: !1 },
523
+ delay: { default: 0 }
524
+ },
525
+ setup(e) {
526
+ const t = e, a = F(), s = l(() => zt(t)), r = l(() => !!a.default), n = l(() => ({
527
+ fullscreen: s.value.fullscreen,
528
+ hasContent: r.value
529
+ })), o = l(() => Ne(n.value)), u = l(() => At(n.value)), c = ["mu-loading__indicator", "mu-loading__indicator--card"], i = `url("data:image/svg+xml,${encodeURIComponent(
530
+ `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><path d="${Ft}" fill="#000"/></svg>`
531
+ )}")`, d = l(() => ({
532
+ width: `${s.value.size}px`,
533
+ height: `${s.value.size}px`,
534
+ maskImage: i,
535
+ WebkitMaskImage: i
536
+ })), k = l(
537
+ () => s.value.text ? void 0 : s.value.ariaLabel ?? "Loading"
538
+ ), h = S(!1);
539
+ let _ = null;
540
+ function T() {
541
+ _ !== null && (globalThis.clearTimeout(_), _ = null);
542
+ }
543
+ return ae(
544
+ () => [s.value.spinning, s.value.delay],
545
+ ([C, p]) => {
546
+ if (T(), !C) {
547
+ h.value = !1;
548
+ return;
549
+ }
550
+ p > 0 ? _ = globalThis.setTimeout(() => {
551
+ h.value = !0;
552
+ }, p) : h.value = !0;
553
+ },
554
+ { immediate: !0 }
555
+ ), se(T), (C, p) => o.value === "container" ? (f(), m("div", {
556
+ key: 0,
557
+ class: O(u.value)
558
+ }, [
559
+ v("div", Ot, [
560
+ x(C.$slots, "default", {}, void 0, !0)
561
+ ]),
562
+ Y(ue, { name: "mu-loading-fade" }, {
563
+ default: U(() => [
564
+ h.value ? (f(), m("div", Dt, [
565
+ v("div", {
566
+ class: O(c),
567
+ role: "status",
568
+ "aria-live": "polite",
569
+ "aria-label": k.value
570
+ }, [
571
+ v("span", {
572
+ class: "mu-loading__spinner",
573
+ style: W(d.value),
574
+ "aria-hidden": "true"
575
+ }, null, 4),
576
+ s.value.text ? (f(), m("span", Et, z(s.value.text), 1)) : V("", !0)
577
+ ], 8, Rt)
578
+ ])) : V("", !0)
579
+ ]),
580
+ _: 1
581
+ })
582
+ ], 2)) : o.value === "page" ? (f(), Z(xe, {
583
+ key: 1,
584
+ to: "body"
585
+ }, [
586
+ Y(ue, { name: "mu-loading-fade" }, {
587
+ default: U(() => [
588
+ h.value ? (f(), m("div", {
589
+ key: 0,
590
+ class: O(u.value)
591
+ }, [
592
+ v("div", {
593
+ class: O(c),
594
+ role: "status",
595
+ "aria-live": "polite",
596
+ "aria-label": k.value
597
+ }, [
598
+ v("span", {
599
+ class: "mu-loading__spinner",
600
+ style: W(d.value),
601
+ "aria-hidden": "true"
602
+ }, null, 4),
603
+ s.value.text ? (f(), m("span", Zt, z(s.value.text), 1)) : V("", !0)
604
+ ], 8, Gt)
605
+ ], 2)) : V("", !0)
606
+ ]),
607
+ _: 1
608
+ })
609
+ ])) : (f(), m("div", {
610
+ key: 2,
611
+ class: O(u.value)
612
+ }, [
613
+ Y(ue, { name: "mu-loading-fade" }, {
614
+ default: U(() => [
615
+ h.value ? (f(), m("div", {
616
+ key: 0,
617
+ class: O(c),
618
+ role: "status",
619
+ "aria-live": "polite",
620
+ "aria-label": k.value
621
+ }, [
622
+ v("span", {
623
+ class: "mu-loading__spinner",
624
+ style: W(d.value),
625
+ "aria-hidden": "true"
626
+ }, null, 4),
627
+ s.value.text ? (f(), m("span", jt, z(s.value.text), 1)) : V("", !0)
628
+ ], 8, Ut)) : V("", !0)
629
+ ]),
630
+ _: 1
631
+ })
632
+ ], 2));
633
+ }
634
+ }), qt = /* @__PURE__ */ I(Kt, [["__scopeId", "data-v-6e3365ba"]]), Xt = { close: () => {
635
+ } };
636
+ let re = null, ce = null, J = 0;
637
+ const le = S(!1), He = S(void 0), Ie = S(void 0), ze = S(void 0);
638
+ function Ae() {
639
+ return typeof globalThis.document < "u";
640
+ }
641
+ function Wt() {
642
+ re || !Ae() || (ce = globalThis.document.createElement("div"), globalThis.document.body.appendChild(ce), re = Ve({
643
+ render() {
644
+ return he(qt, {
645
+ fullscreen: !0,
646
+ spinning: le.value,
647
+ text: He.value,
648
+ ariaLabel: Ie.value,
649
+ size: ze.value
650
+ });
651
+ }
652
+ }), re.mount(ce));
653
+ }
654
+ function Oe() {
655
+ J = Math.max(0, J - 1), J === 0 && (le.value = !1);
656
+ }
657
+ function Jt(e = {}) {
658
+ if (!Ae())
659
+ return Xt;
660
+ Wt(), J += 1, He.value = e.text, Ie.value = e.ariaLabel, ze.value = e.size, le.value = !0;
661
+ let t = !1;
662
+ return {
663
+ close: () => {
664
+ t || (t = !0, Oe());
665
+ }
666
+ };
667
+ }
668
+ const Ss = {
669
+ /** 显示全屏加载,引用计数 +1,返回可关闭句柄。 */
670
+ show: Jt,
671
+ /** 引用计数 -1,与单次 show 1:1 配对的便捷写法。 */
672
+ hide: Oe,
673
+ /** 无视引用计数强制清场(路由切换等一键收尾场景)。 */
674
+ hideAll() {
675
+ J = 0, le.value = !1;
676
+ }
677
+ }, Qt = 3e3, Yt = {
487
678
  close: () => {
488
679
  }
489
- }, U = ze({
680
+ }, K = Je({
490
681
  items: []
491
682
  });
492
- let $t = 1;
493
- const Z = /* @__PURE__ */ new Map();
494
- function Bt(e) {
683
+ let ea = 1;
684
+ const q = /* @__PURE__ */ new Map();
685
+ function ta(e) {
495
686
  return typeof e == "string" ? { title: e } : {
496
687
  title: e.title,
497
688
  description: e.description,
@@ -502,107 +693,107 @@ function Bt(e) {
502
693
  key: e.key
503
694
  };
504
695
  }
505
- function ce(e) {
696
+ function be(e) {
506
697
  return e.duration > 0;
507
698
  }
508
- function Tt(e) {
509
- return U.items.findIndex((t) => t.id === e);
699
+ function aa(e) {
700
+ return K.items.findIndex((t) => t.id === e);
510
701
  }
511
- function xe(e) {
512
- return U.items.find((t) => t.id === e);
702
+ function De(e) {
703
+ return K.items.find((t) => t.id === e);
513
704
  }
514
- function de(e) {
515
- const t = Z.get(e);
705
+ function _e(e) {
706
+ const t = q.get(e);
516
707
  t && t.timer !== null && (globalThis.clearTimeout(t.timer), t.timer = null);
517
708
  }
518
- function J(e) {
519
- const t = Tt(e);
520
- t < 0 || (de(e), Z.delete(e), U.items.splice(t, 1));
709
+ function te(e) {
710
+ const t = aa(e);
711
+ t < 0 || (_e(e), q.delete(e), K.items.splice(t, 1));
521
712
  }
522
- function Ve(e, t) {
523
- const a = Z.get(e);
524
- a && (de(e), a.remainingDuration = t, a.deadline = Date.now() + t, a.isPaused = !1, a.timer = globalThis.setTimeout(() => {
525
- J(e);
713
+ function Re(e, t) {
714
+ const a = q.get(e);
715
+ a && (_e(e), a.remainingDuration = t, a.deadline = Date.now() + t, a.isPaused = !1, a.timer = globalThis.setTimeout(() => {
716
+ te(e);
526
717
  }, t));
527
718
  }
528
- function Mt(e, t) {
719
+ function sa(e, t) {
529
720
  return {
530
- id: $t++,
721
+ id: ea++,
531
722
  type: e,
532
723
  title: t.title,
533
724
  description: t.description,
534
- duration: t.duration ?? xt,
725
+ duration: t.duration ?? Qt,
535
726
  closable: t.closable ?? !1,
536
727
  resetOnHover: t.resetOnHover ?? !1,
537
728
  icon: t.icon,
538
729
  key: t.key
539
730
  };
540
731
  }
541
- function St() {
732
+ function la() {
542
733
  return typeof globalThis.window < "u" && typeof globalThis.document < "u";
543
734
  }
544
- function Lt(e) {
735
+ function na(e) {
545
736
  return e.key !== void 0 && e.key !== null;
546
737
  }
547
- function Pt(e) {
548
- return U.items.find((t) => t.key === e);
738
+ function oa(e) {
739
+ return K.items.find((t) => t.key === e);
549
740
  }
550
- function Nt(e, t) {
551
- if (!St())
552
- return Vt;
553
- const a = Bt(t);
554
- if (Lt(a)) {
555
- const r = Pt(a.key);
741
+ function ia(e, t) {
742
+ if (!la())
743
+ return Yt;
744
+ const a = ta(t);
745
+ if (na(a)) {
746
+ const r = oa(a.key);
556
747
  if (r) {
557
- const l = r.id;
558
- return { close: () => J(l) };
748
+ const n = r.id;
749
+ return { close: () => te(n) };
559
750
  }
560
751
  }
561
- const s = Mt(e, a);
562
- return U.items.push(s), Z.set(s.id, {
752
+ const s = sa(e, a);
753
+ return K.items.push(s), q.set(s.id, {
563
754
  timer: null,
564
755
  deadline: 0,
565
756
  remainingDuration: s.duration,
566
757
  isPaused: !1
567
- }), ce(s) && Ve(s.id, s.duration), {
568
- close: () => J(s.id)
758
+ }), be(s) && Re(s.id, s.duration), {
759
+ close: () => te(s.id)
569
760
  };
570
761
  }
571
- function F(e) {
572
- return (t) => Nt(e, t);
762
+ function X(e) {
763
+ return (t) => ia(e, t);
573
764
  }
574
- const as = {
575
- success: F("success"),
576
- warning: F("warning"),
577
- info: F("info"),
578
- error: F("error"),
579
- danger: F("danger")
765
+ const Ls = {
766
+ success: X("success"),
767
+ warning: X("warning"),
768
+ info: X("info"),
769
+ error: X("error"),
770
+ danger: X("danger")
580
771
  };
581
- function Ht(e) {
582
- J(e);
772
+ function ua(e) {
773
+ te(e);
583
774
  }
584
- function It(e) {
585
- const t = Z.get(e), a = xe(e);
586
- !t || !a || t.isPaused || !a.resetOnHover || !ce(a) || (t.remainingDuration = Math.max(t.deadline - Date.now(), 0), de(e), t.isPaused = !0);
775
+ function ra(e) {
776
+ const t = q.get(e), a = De(e);
777
+ !t || !a || t.isPaused || !a.resetOnHover || !be(a) || (t.remainingDuration = Math.max(t.deadline - Date.now(), 0), _e(e), t.isPaused = !0);
587
778
  }
588
- function zt(e) {
589
- const t = Z.get(e), a = xe(e);
590
- !t || !a || !t.isPaused || !a.resetOnHover || !ce(a) || Ve(e, t.remainingDuration || a.duration);
779
+ function ca(e) {
780
+ const t = q.get(e), a = De(e);
781
+ !t || !a || !t.isPaused || !a.resetOnHover || !be(a) || Re(e, t.remainingDuration || a.duration);
591
782
  }
592
- const Ot = {
783
+ const da = {
593
784
  class: "mu-message-list",
594
785
  "aria-live": "polite",
595
786
  "aria-atomic": "true"
596
- }, At = ["onMouseenter", "onMouseleave"], Rt = {
787
+ }, fa = ["onMouseenter", "onMouseleave"], va = {
597
788
  class: "mu-message__icon",
598
789
  "aria-hidden": "true"
599
- }, Dt = { class: "mu-message__content" }, Gt = { class: "mu-message__title" }, Et = {
790
+ }, ma = { class: "mu-message__content" }, ha = { class: "mu-message__title" }, ga = {
600
791
  key: 0,
601
792
  class: "mu-message__description"
602
- }, jt = ["onClick"], Ut = /* @__PURE__ */ H({
793
+ }, pa = ["onClick"], ba = /* @__PURE__ */ H({
603
794
  __name: "MessageList",
604
795
  setup(e) {
605
- const t = n(() => U.items), a = H({
796
+ const t = l(() => K.items), a = H({
606
797
  name: "MarkupIcon",
607
798
  props: {
608
799
  markup: {
@@ -611,17 +802,17 @@ const Ot = {
611
802
  }
612
803
  },
613
804
  setup(c) {
614
- return () => be("span", { class: "mu-message__icon-markup", innerHTML: c.markup });
805
+ return () => he("span", { class: "mu-message__icon-markup", innerHTML: c.markup });
615
806
  }
616
807
  });
617
808
  function s(c) {
618
809
  return typeof c != "string";
619
810
  }
620
811
  function r(c) {
621
- It(c);
812
+ ra(c);
622
813
  }
623
- function l(c) {
624
- zt(c);
814
+ function n(c) {
815
+ ca(c);
625
816
  }
626
817
  function o(c) {
627
818
  if (!(c instanceof globalThis.HTMLElement))
@@ -636,37 +827,37 @@ const Ot = {
636
827
  error: '<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="8" stroke="currentColor" stroke-width="2"/><path d="M12 9V12.5" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><circle cx="12" cy="15.5" r="1" fill="currentColor"/></svg>',
637
828
  danger: '<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="8" stroke="currentColor" stroke-width="2"/><path d="M9 9L15 15" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M15 9L9 15" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>'
638
829
  };
639
- return (c, i) => (f(), m("div", Ot, [
640
- Oe(Ae, {
830
+ return (c, i) => (f(), m("div", da, [
831
+ Y(Qe, {
641
832
  name: "mu-message-fade",
642
833
  tag: "div",
643
834
  class: "mu-message-list__stack",
644
835
  onBeforeLeave: o
645
836
  }, {
646
- default: W(() => [
647
- (f(!0), m(X, null, pe(t.value, (d) => (f(), m("div", {
837
+ default: U(() => [
838
+ (f(!0), m(ee, null, we(t.value, (d) => (f(), m("div", {
648
839
  key: d.id,
649
- class: Q(["mu-message", [`mu-message--${d.type}`, { "mu-message--compact": !d.description }]]),
840
+ class: O(["mu-message", [`mu-message--${d.type}`, { "mu-message--compact": !d.description }]]),
650
841
  role: "status",
651
- onMouseenter: (y) => r(d.id),
652
- onMouseleave: (y) => l(d.id)
842
+ onMouseenter: (k) => r(d.id),
843
+ onMouseleave: (k) => n(d.id)
653
844
  }, [
654
- v("span", Rt, [
655
- d.icon && s(d.icon) ? (f(), E(Re(d.icon), { key: 0 })) : (f(), E(O(a), {
845
+ v("span", va, [
846
+ d.icon && s(d.icon) ? (f(), Z(Ye(d.icon), { key: 0 })) : (f(), Z(D(a), {
656
847
  key: 1,
657
848
  markup: typeof d.icon == "string" ? d.icon : u[d.type]
658
849
  }, null, 8, ["markup"]))
659
850
  ]),
660
- v("div", Dt, [
661
- v("div", Gt, A(d.title), 1),
662
- d.description ? (f(), m("p", Et, A(d.description), 1)) : M("", !0)
851
+ v("div", ma, [
852
+ v("div", ha, z(d.title), 1),
853
+ d.description ? (f(), m("p", ga, z(d.description), 1)) : V("", !0)
663
854
  ]),
664
855
  d.closable ? (f(), m("button", {
665
856
  key: 0,
666
857
  type: "button",
667
858
  class: "mu-message__close",
668
859
  "aria-label": "Close message",
669
- onClick: (y) => O(Ht)(d.id)
860
+ onClick: (k) => D(ua)(d.id)
670
861
  }, [...i[0] || (i[0] = [
671
862
  v("svg", {
672
863
  viewBox: "0 0 24 24",
@@ -680,14 +871,14 @@ const Ot = {
680
871
  "stroke-linecap": "round"
681
872
  })
682
873
  ], -1)
683
- ])], 8, jt)) : M("", !0)
684
- ], 42, At))), 128))
874
+ ])], 8, pa)) : V("", !0)
875
+ ], 42, fa))), 128))
685
876
  ]),
686
877
  _: 1
687
878
  })
688
879
  ]));
689
880
  }
690
- }), ss = /* @__PURE__ */ I(Ut, [["__scopeId", "data-v-fca28789"]]), Zt = {
881
+ }), Ps = /* @__PURE__ */ I(ba, [["__scopeId", "data-v-fca28789"]]), _a = {
691
882
  medium: {
692
883
  width: "548px",
693
884
  minHeight: "228px"
@@ -697,8 +888,8 @@ const Ot = {
697
888
  minHeight: "500px"
698
889
  }
699
890
  };
700
- function fe(e = {}) {
701
- const t = e.size ?? "medium", a = Zt[t], s = e.variant ?? "form";
891
+ function ke(e = {}) {
892
+ const t = e.size ?? "medium", a = _a[t], s = e.variant ?? "form";
702
893
  return {
703
894
  visible: e.visible ?? !1,
704
895
  title: e.title ?? "",
@@ -718,8 +909,8 @@ function fe(e = {}) {
718
909
  okLoading: e.okLoading ?? !1
719
910
  };
720
911
  }
721
- function Ft(e = {}) {
722
- const t = fe(e), a = [
912
+ function ka(e = {}) {
913
+ const t = ke(e), a = [
723
914
  "mu-modal",
724
915
  `mu-modal--${t.size}`,
725
916
  `mu-modal--${t.status}`,
@@ -727,8 +918,8 @@ function Ft(e = {}) {
727
918
  ];
728
919
  return t.variant === "feedback" && a.push("mu-modal--feedback"), a;
729
920
  }
730
- function Kt(e = {}) {
731
- const t = fe(e);
921
+ function ya(e = {}) {
922
+ const t = ke(e);
732
923
  return t.variant === "feedback" ? {
733
924
  type: "secondary",
734
925
  status: t.status === "default" ? void 0 : t.status
@@ -739,13 +930,13 @@ function Kt(e = {}) {
739
930
  type: "primary"
740
931
  };
741
932
  }
742
- const qt = {
933
+ const Ca = {
743
934
  key: 0,
744
935
  class: "mu-modal-root"
745
- }, Xt = { class: "mu-modal__header" }, Wt = ["data-status"], Jt = { class: "mu-modal__body" }, Qt = {
936
+ }, wa = { class: "mu-modal__header" }, xa = ["data-status"], Va = { class: "mu-modal__body" }, $a = {
746
937
  key: 0,
747
938
  class: "mu-modal__footer"
748
- }, Yt = /* @__PURE__ */ H({
939
+ }, Ta = /* @__PURE__ */ H({
749
940
  inheritAttrs: !1,
750
941
  __name: "Modal",
751
942
  props: {
@@ -766,76 +957,76 @@ const qt = {
766
957
  },
767
958
  emits: ["update:visible", "ok", "cancel", "close"],
768
959
  setup(e, { emit: t }) {
769
- const a = e, s = t, r = D(), l = n(() => fe(a)), o = n(() => [Ft(a), r.class]), u = n(() => {
770
- const { class: h, style: p, ...B } = r;
960
+ const a = e, s = t, r = E(), n = l(() => ke(a)), o = l(() => [ka(a), r.class]), u = l(() => {
961
+ const { class: g, style: b, ...B } = r;
771
962
  return B;
772
- }), c = n(() => Kt(a)), i = n(
773
- () => l.value.variant === "feedback" && l.value.hideCancel
774
- ), d = n(() => [
963
+ }), c = l(() => ya(a)), i = l(
964
+ () => n.value.variant === "feedback" && n.value.hideCancel
965
+ ), d = l(() => [
775
966
  {
776
- width: l.value.width,
777
- minHeight: l.value.minHeight
967
+ width: n.value.width,
968
+ minHeight: n.value.minHeight
778
969
  },
779
970
  r.style
780
- ]), y = `mu-modal-title-${Math.random().toString(36).slice(2, 10)}`, _ = typeof globalThis.document < "u" ? globalThis.document : null;
971
+ ]), k = `mu-modal-title-${Math.random().toString(36).slice(2, 10)}`, _ = typeof globalThis.document < "u" ? globalThis.document : null;
781
972
  function T() {
782
973
  s("update:visible", !1);
783
974
  }
784
- function x() {
785
- l.value.maskClosable && (T(), s("cancel", new globalThis.MouseEvent("click")));
975
+ function C() {
976
+ n.value.maskClosable && (T(), s("cancel", new globalThis.MouseEvent("click")));
786
977
  }
787
- function b() {
978
+ function p() {
788
979
  T(), s("close");
789
980
  }
790
- function g(h) {
791
- s("cancel", h), T();
981
+ function y(g) {
982
+ s("cancel", g), T();
792
983
  }
793
- function S(h) {
794
- s("ok", h);
984
+ function L(g) {
985
+ s("ok", g);
795
986
  }
796
- function $(h) {
797
- h.key !== "Escape" || !l.value.visible || !l.value.escToClose || (T(), s("close"));
987
+ function M(g) {
988
+ g.key !== "Escape" || !n.value.visible || !n.value.escToClose || (T(), s("close"));
798
989
  }
799
- return oe(() => {
800
- _ && _.addEventListener("keydown", $);
801
- }), ie(() => {
802
- _ && (_.removeEventListener("keydown", $), _.body.style.overflow = "");
803
- }), ue(
804
- () => l.value.visible,
805
- (h) => {
806
- _ && (_.body.style.overflow = h ? "hidden" : "");
990
+ return ge(() => {
991
+ _ && _.addEventListener("keydown", M);
992
+ }), se(() => {
993
+ _ && (_.removeEventListener("keydown", M), _.body.style.overflow = "");
994
+ }), ae(
995
+ () => n.value.visible,
996
+ (g) => {
997
+ _ && (_.body.style.overflow = g ? "hidden" : "");
807
998
  },
808
999
  { immediate: !0 }
809
- ), (h, p) => (f(), E(De, { to: "body" }, [
810
- l.value.visible ? (f(), m("div", qt, [
1000
+ ), (g, b) => (f(), Z(xe, { to: "body" }, [
1001
+ n.value.visible ? (f(), m("div", Ca, [
811
1002
  v("div", {
812
1003
  class: "mu-modal__mask",
813
- onClick: x
1004
+ onClick: C
814
1005
  }),
815
1006
  v("div", R(u.value, {
816
1007
  class: o.value,
817
1008
  style: d.value,
818
1009
  role: "dialog",
819
1010
  "aria-modal": "true",
820
- "aria-labelledby": y
1011
+ "aria-labelledby": k
821
1012
  }), [
822
- v("header", Xt, [
1013
+ v("header", wa, [
823
1014
  v("div", {
824
- id: y,
1015
+ id: k,
825
1016
  class: "mu-modal__title",
826
- "data-status": l.value.status
1017
+ "data-status": n.value.status
827
1018
  }, [
828
- w(h.$slots, "title", {}, () => [
829
- G(A(l.value.title), 1)
1019
+ x(g.$slots, "title", {}, () => [
1020
+ G(z(n.value.title), 1)
830
1021
  ], !0)
831
- ], 8, Wt),
832
- l.value.closable ? (f(), m("button", {
1022
+ ], 8, xa),
1023
+ n.value.closable ? (f(), m("button", {
833
1024
  key: 0,
834
1025
  type: "button",
835
1026
  class: "mu-modal__close",
836
1027
  "aria-label": "Close dialog",
837
- onClick: b
838
- }, [...p[0] || (p[0] = [
1028
+ onClick: p
1029
+ }, [...b[0] || (b[0] = [
839
1030
  v("span", {
840
1031
  class: "mu-modal__close-icon",
841
1032
  "aria-hidden": "true"
@@ -859,61 +1050,61 @@ const qt = {
859
1050
  })
860
1051
  ])
861
1052
  ], -1)
862
- ])])) : M("", !0)
1053
+ ])])) : V("", !0)
863
1054
  ]),
864
- v("div", Jt, [
865
- w(h.$slots, "default", {}, void 0, !0)
1055
+ v("div", Va, [
1056
+ x(g.$slots, "default", {}, void 0, !0)
866
1057
  ]),
867
- h.$slots.footer || !l.value.hideOk || !l.value.hideCancel ? (f(), m("footer", Qt, [
868
- w(h.$slots, "footer", {}, () => [
869
- l.value.hideCancel ? M("", !0) : (f(), E(O(me), {
1058
+ g.$slots.footer || !n.value.hideOk || !n.value.hideCancel ? (f(), m("footer", $a, [
1059
+ x(g.$slots, "footer", {}, () => [
1060
+ n.value.hideCancel ? V("", !0) : (f(), Z(D(Ce), {
870
1061
  key: 0,
871
1062
  type: "ghost",
872
1063
  class: "mu-modal__cancel",
873
- onClick: g
1064
+ onClick: y
874
1065
  }, {
875
- default: W(() => [
876
- G(A(l.value.cancelText), 1)
1066
+ default: U(() => [
1067
+ G(z(n.value.cancelText), 1)
877
1068
  ]),
878
1069
  _: 1
879
1070
  })),
880
- l.value.hideOk ? M("", !0) : (f(), E(O(me), R({ key: 1 }, c.value, {
881
- loading: l.value.okLoading,
1071
+ n.value.hideOk ? V("", !0) : (f(), Z(D(Ce), R({ key: 1 }, c.value, {
1072
+ loading: n.value.okLoading,
882
1073
  class: ["mu-modal__ok", { "mu-modal__ok--block": i.value }],
883
- onClick: S
1074
+ onClick: L
884
1075
  }), {
885
- default: W(() => [
886
- G(A(l.value.okText), 1)
1076
+ default: U(() => [
1077
+ G(z(n.value.okText), 1)
887
1078
  ]),
888
1079
  _: 1
889
1080
  }, 16, ["loading", "class"]))
890
1081
  ], !0)
891
- ])) : M("", !0)
1082
+ ])) : V("", !0)
892
1083
  ], 16)
893
- ])) : M("", !0)
1084
+ ])) : V("", !0)
894
1085
  ]));
895
1086
  }
896
- }), ea = /* @__PURE__ */ I(Yt, [["__scopeId", "data-v-e94991b0"]]);
897
- function ta(e) {
1087
+ }), Ma = /* @__PURE__ */ I(Ta, [["__scopeId", "data-v-e94991b0"]]);
1088
+ function Ba(e) {
898
1089
  return e === void 0 ? null : typeof e == "function" ? e() : e;
899
1090
  }
900
- function q(e = {}) {
1091
+ function Q(e = {}) {
901
1092
  return typeof globalThis.document > "u" ? Promise.resolve(!1) : new Promise((t) => {
902
1093
  const a = globalThis.document.createElement("div");
903
1094
  globalThis.document.body.appendChild(a);
904
- const s = N(!0);
905
- let r = null, l = !1;
1095
+ const s = S(!0);
1096
+ let r = null, n = !1;
906
1097
  const o = () => {
907
1098
  r && (r.unmount(), r = null), a.parentNode && a.parentNode.removeChild(a);
908
1099
  }, u = (d) => {
909
- l || (l = !0, s.value = !1, queueMicrotask(() => {
1100
+ n || (n = !0, s.value = !1, queueMicrotask(() => {
910
1101
  o(), t(d);
911
1102
  }));
912
1103
  }, { content: c, ...i } = e;
913
- r = Ge({
1104
+ r = Ve({
914
1105
  render() {
915
- return be(
916
- ea,
1106
+ return he(
1107
+ Ma,
917
1108
  {
918
1109
  ...i,
919
1110
  visible: s.value,
@@ -925,30 +1116,30 @@ function q(e = {}) {
925
1116
  onClose: () => u(!1)
926
1117
  },
927
1118
  {
928
- default: () => ta(c)
1119
+ default: () => Ba(c)
929
1120
  }
930
1121
  );
931
1122
  }
932
1123
  }), r.mount(a);
933
1124
  });
934
1125
  }
935
- const ns = {
1126
+ const Ns = {
936
1127
  /** 通用版本,透传所有 props,默认 variant='form'。 */
937
- show: q,
1128
+ show: Q,
938
1129
  /** 通用确认弹窗,等价于 show,使用 form 形态 + 自定义 status。 */
939
- confirm: (e = {}) => q(e),
1130
+ confirm: (e = {}) => Q(e),
940
1131
  /** 反馈形态 + status='success'。 */
941
- success: (e = {}) => q({ ...e, variant: "feedback", status: "success" }),
1132
+ success: (e = {}) => Q({ ...e, variant: "feedback", status: "success" }),
942
1133
  /** 反馈形态 + status='danger'。 */
943
- danger: (e = {}) => q({ ...e, variant: "feedback", status: "danger" })
944
- }, $e = Symbol("MuRadioGroup"), aa = ["horizontal", "vertical"];
945
- function sa(e, t) {
1134
+ danger: (e = {}) => Q({ ...e, variant: "feedback", status: "danger" })
1135
+ }, Ee = Symbol("MuRadioGroup"), Sa = ["horizontal", "vertical"];
1136
+ function La(e, t) {
946
1137
  return typeof t == "string" && e.includes(t);
947
1138
  }
948
- function na(e) {
949
- return sa(aa, e);
1139
+ function Pa(e) {
1140
+ return La(Sa, e);
950
1141
  }
951
- function Be(e = {}) {
1142
+ function Ge(e = {}) {
952
1143
  return {
953
1144
  modelValue: e.modelValue,
954
1145
  value: e.value ?? !0,
@@ -957,33 +1148,33 @@ function Be(e = {}) {
957
1148
  name: e.name
958
1149
  };
959
1150
  }
960
- function Te(e = {}) {
1151
+ function Ze(e = {}) {
961
1152
  return {
962
1153
  modelValue: e.modelValue,
963
1154
  defaultValue: e.defaultValue,
964
1155
  disabled: e.disabled ?? !1,
965
1156
  name: e.name,
966
- direction: na(e.direction) ? e.direction : "horizontal"
1157
+ direction: Pa(e.direction) ? e.direction : "horizontal"
967
1158
  };
968
1159
  }
969
- function la(e = {}) {
1160
+ function Na(e = {}) {
970
1161
  return e.modelValue !== void 0;
971
1162
  }
972
- function oa(e = {}) {
1163
+ function Ha(e = {}) {
973
1164
  return e.modelValue !== void 0;
974
1165
  }
975
- function ae(e, t) {
1166
+ function de(e, t) {
976
1167
  return Object.is(e, t);
977
1168
  }
978
- function ia(e = {}, t = {}) {
979
- const a = Be(e), s = ["mu-radio"];
1169
+ function Ia(e = {}, t = {}) {
1170
+ const a = Ge(e), s = ["mu-radio"];
980
1171
  return t.checked && s.push("is-checked"), (t.disabled || a.disabled) && s.push("is-disabled"), s;
981
1172
  }
982
- function ua(e = {}) {
983
- const t = Te(e), a = ["mu-radio-group", `mu-radio-group--${t.direction}`];
1173
+ function za(e = {}) {
1174
+ const t = Ze(e), a = ["mu-radio-group", `mu-radio-group--${t.direction}`];
984
1175
  return t.disabled && a.push("is-disabled"), a;
985
1176
  }
986
- const ra = ["checked", "disabled", "name", "value"], ca = { class: "mu-radio__label" }, da = /* @__PURE__ */ H({
1177
+ const Aa = ["checked", "disabled", "name", "value"], Oa = { class: "mu-radio__label" }, Da = /* @__PURE__ */ H({
987
1178
  inheritAttrs: !1,
988
1179
  __name: "Radio",
989
1180
  props: {
@@ -995,68 +1186,68 @@ const ra = ["checked", "disabled", "name", "value"], ca = { class: "mu-radio__la
995
1186
  },
996
1187
  emits: ["update:modelValue", "change", "focus", "blur"],
997
1188
  setup(e, { emit: t }) {
998
- const a = e, s = t, r = D(), l = ne($e, null), o = n(() => Be(a)), u = n(() => la(a)), c = N(o.value.defaultChecked), i = n(() => l ? ae(l.value.value, o.value.value) : u.value ? ae(o.value.modelValue, o.value.value) : c.value), d = n(
999
- () => o.value.disabled || !!(l != null && l.disabled.value)
1000
- ), y = n(() => (l == null ? void 0 : l.name.value) ?? o.value.name), k = n(() => String(o.value.value)), _ = n(() => [
1001
- ia(a, {
1189
+ const a = e, s = t, r = E(), n = ve(Ee, null), o = l(() => Ge(a)), u = l(() => Na(a)), c = S(o.value.defaultChecked), i = l(() => n ? de(n.value.value, o.value.value) : u.value ? de(o.value.modelValue, o.value.value) : c.value), d = l(
1190
+ () => o.value.disabled || !!(n != null && n.disabled.value)
1191
+ ), k = l(() => (n == null ? void 0 : n.name.value) ?? o.value.name), h = l(() => String(o.value.value)), _ = l(() => [
1192
+ Ia(a, {
1002
1193
  checked: i.value,
1003
1194
  disabled: d.value
1004
1195
  }),
1005
1196
  r.class
1006
- ]), T = n(() => {
1007
- const { class: h, style: p, ...B } = r;
1197
+ ]), T = l(() => {
1198
+ const { class: g, style: b, ...B } = r;
1008
1199
  return B;
1009
- }), x = n(() => r.style);
1010
- function b(h, p) {
1011
- u.value || (c.value = !0), s("update:modelValue", h), s("change", h, p);
1200
+ }), C = l(() => r.style);
1201
+ function p(g, b) {
1202
+ u.value || (c.value = !0), s("update:modelValue", g), s("change", g, b);
1012
1203
  }
1013
- function g(h) {
1204
+ function y(g) {
1014
1205
  if (d.value)
1015
1206
  return;
1016
- const p = o.value.value, B = h.target instanceof globalThis.HTMLInputElement ? h.target : null;
1017
- if (l) {
1018
- l.select(p, h), j(() => {
1207
+ const b = o.value.value, B = g.target instanceof globalThis.HTMLInputElement ? g.target : null;
1208
+ if (n) {
1209
+ n.select(b, g), j(() => {
1019
1210
  B && (B.checked = i.value);
1020
1211
  });
1021
1212
  return;
1022
1213
  }
1023
- b(p, h), j(() => {
1214
+ p(b, g), j(() => {
1024
1215
  B && (B.checked = i.value);
1025
1216
  });
1026
1217
  }
1027
- function S(h) {
1028
- s("focus", h);
1218
+ function L(g) {
1219
+ s("focus", g);
1029
1220
  }
1030
- function $(h) {
1031
- s("blur", h);
1221
+ function M(g) {
1222
+ s("blur", g);
1032
1223
  }
1033
- return (h, p) => (f(), m("label", R(T.value, {
1224
+ return (g, b) => (f(), m("label", R(T.value, {
1034
1225
  class: _.value,
1035
- style: x.value
1226
+ style: C.value
1036
1227
  }), [
1037
1228
  v("input", {
1038
1229
  class: "mu-radio__input",
1039
1230
  type: "radio",
1040
1231
  checked: i.value,
1041
1232
  disabled: d.value,
1042
- name: y.value,
1043
- value: k.value,
1044
- onChange: g,
1045
- onFocus: S,
1046
- onBlur: $
1047
- }, null, 40, ra),
1048
- p[0] || (p[0] = v("span", {
1233
+ name: k.value,
1234
+ value: h.value,
1235
+ onChange: y,
1236
+ onFocus: L,
1237
+ onBlur: M
1238
+ }, null, 40, Aa),
1239
+ b[0] || (b[0] = v("span", {
1049
1240
  class: "mu-radio__control",
1050
1241
  "aria-hidden": "true"
1051
1242
  }, [
1052
1243
  v("span", { class: "mu-radio__dot" })
1053
1244
  ], -1)),
1054
- v("span", ca, [
1055
- w(h.$slots, "default", {}, void 0, !0)
1245
+ v("span", Oa, [
1246
+ x(g.$slots, "default", {}, void 0, !0)
1056
1247
  ])
1057
1248
  ], 16));
1058
1249
  }
1059
- }), ls = /* @__PURE__ */ I(da, [["__scopeId", "data-v-f1283749"]]), fa = /* @__PURE__ */ H({
1250
+ }), Hs = /* @__PURE__ */ I(Da, [["__scopeId", "data-v-f1283749"]]), Ra = /* @__PURE__ */ H({
1060
1251
  inheritAttrs: !1,
1061
1252
  __name: "RadioGroup",
1062
1253
  props: {
@@ -1068,46 +1259,46 @@ const ra = ["checked", "disabled", "name", "value"], ca = { class: "mu-radio__la
1068
1259
  },
1069
1260
  emits: ["update:modelValue", "change"],
1070
1261
  setup(e, { emit: t }) {
1071
- const a = e, s = t, r = D(), l = n(() => Te(a)), o = n(() => oa(a)), u = N(l.value.defaultValue), c = n(
1072
- () => o.value ? l.value.modelValue : u.value
1073
- ), i = n(() => l.value.disabled), d = n(() => l.value.name), y = n(() => [ua(a), r.class]), k = n(() => {
1074
- const { class: x, style: b, ...g } = r;
1075
- return g;
1076
- }), _ = n(() => r.style);
1077
- function T(x, b) {
1078
- l.value.disabled || ae(c.value, x) || (o.value || (u.value = x), s("update:modelValue", x), s("change", x, b));
1262
+ const a = e, s = t, r = E(), n = l(() => Ze(a)), o = l(() => Ha(a)), u = S(n.value.defaultValue), c = l(
1263
+ () => o.value ? n.value.modelValue : u.value
1264
+ ), i = l(() => n.value.disabled), d = l(() => n.value.name), k = l(() => [za(a), r.class]), h = l(() => {
1265
+ const { class: C, style: p, ...y } = r;
1266
+ return y;
1267
+ }), _ = l(() => r.style);
1268
+ function T(C, p) {
1269
+ n.value.disabled || de(c.value, C) || (o.value || (u.value = C), s("update:modelValue", C), s("change", C, p));
1079
1270
  }
1080
- return le($e, {
1271
+ return me(Ee, {
1081
1272
  value: c,
1082
1273
  disabled: i,
1083
1274
  name: d,
1084
1275
  select: T
1085
- }), (x, b) => (f(), m("div", R(k.value, {
1276
+ }), (C, p) => (f(), m("div", R(h.value, {
1086
1277
  role: "radiogroup",
1087
- class: y.value,
1278
+ class: k.value,
1088
1279
  style: _.value
1089
1280
  }), [
1090
- w(x.$slots, "default", {}, void 0, !0)
1281
+ x(C.$slots, "default", {}, void 0, !0)
1091
1282
  ], 16));
1092
1283
  }
1093
- }), os = /* @__PURE__ */ I(fa, [["__scopeId", "data-v-3879fec4"]]), va = ["circle", "round", "line"], ma = ["small", "medium"];
1094
- function Me(e, t) {
1284
+ }), Is = /* @__PURE__ */ I(Ra, [["__scopeId", "data-v-3879fec4"]]), Ea = ["circle", "round", "line"], Ga = ["small", "medium"];
1285
+ function Ue(e, t) {
1095
1286
  return typeof t == "string" && e.includes(t);
1096
1287
  }
1097
- function ha(e) {
1098
- return Me(va, e);
1288
+ function Za(e) {
1289
+ return Ue(Ea, e);
1099
1290
  }
1100
- function pa(e) {
1101
- return Me(ma, e);
1291
+ function Ua(e) {
1292
+ return Ue(Ga, e);
1102
1293
  }
1103
- function se(e = {}) {
1294
+ function fe(e = {}) {
1104
1295
  return {
1105
1296
  modelValue: e.modelValue,
1106
1297
  defaultChecked: e.defaultChecked ?? !1,
1107
1298
  disabled: e.disabled ?? !1,
1108
1299
  loading: e.loading ?? !1,
1109
- type: ha(e.type) ? e.type : "circle",
1110
- size: pa(e.size) ? e.size : "medium",
1300
+ type: Za(e.type) ? e.type : "circle",
1301
+ size: Ua(e.size) ? e.size : "medium",
1111
1302
  checkedValue: e.checkedValue ?? !0,
1112
1303
  uncheckedValue: e.uncheckedValue ?? !1,
1113
1304
  checkedColor: e.checkedColor,
@@ -1117,35 +1308,35 @@ function se(e = {}) {
1117
1308
  uncheckedText: e.uncheckedText
1118
1309
  };
1119
1310
  }
1120
- function ba(e = {}) {
1311
+ function ja(e = {}) {
1121
1312
  return e.modelValue !== void 0;
1122
1313
  }
1123
- function Se(e, t) {
1314
+ function je(e, t) {
1124
1315
  return Object.is(e, t.checkedValue);
1125
1316
  }
1126
- function ga(e, t) {
1127
- return Se(e, t) ? t.uncheckedValue : t.checkedValue;
1317
+ function Fa(e, t) {
1318
+ return je(e, t) ? t.uncheckedValue : t.checkedValue;
1128
1319
  }
1129
- function ka(e) {
1320
+ function Ka(e) {
1130
1321
  return e.type !== "line" && e.size !== "small";
1131
1322
  }
1132
- function _a(e = {}, t = {}) {
1133
- const a = se(e), s = ["mu-switch", `mu-switch--${a.type}`, `mu-switch--${a.size}`];
1323
+ function qa(e = {}, t = {}) {
1324
+ const a = fe(e), s = ["mu-switch", `mu-switch--${a.type}`, `mu-switch--${a.size}`];
1134
1325
  return t.checked && s.push("is-checked"), a.disabled && s.push("is-disabled"), (a.loading || t.loading) && s.push("is-loading"), s;
1135
1326
  }
1136
- const Ca = ["aria-checked", "disabled"], ya = {
1327
+ const Xa = ["aria-checked", "disabled"], Wa = {
1137
1328
  class: "mu-switch__thumb",
1138
1329
  "aria-hidden": "true"
1139
- }, wa = {
1330
+ }, Ja = {
1140
1331
  key: 0,
1141
1332
  class: "mu-switch__loading-icon",
1142
1333
  viewBox: "0 0 16 16",
1143
1334
  fill: "none",
1144
1335
  xmlns: "http://www.w3.org/2000/svg"
1145
- }, xa = {
1336
+ }, Qa = {
1146
1337
  key: 0,
1147
1338
  class: "mu-switch__label"
1148
- }, Va = /* @__PURE__ */ H({
1339
+ }, Ya = /* @__PURE__ */ H({
1149
1340
  inheritAttrs: !1,
1150
1341
  __name: "Switch",
1151
1342
  props: {
@@ -1165,136 +1356,136 @@ const Ca = ["aria-checked", "disabled"], ya = {
1165
1356
  },
1166
1357
  emits: ["update:modelValue", "change", "focus", "blur"],
1167
1358
  setup(e, { emit: t }) {
1168
- const a = e, s = t, r = D(), l = K(), o = N(!1), u = se(a), c = N(
1359
+ const a = e, s = t, r = E(), n = F(), o = S(!1), u = fe(a), c = S(
1169
1360
  u.defaultChecked ? u.checkedValue : u.uncheckedValue
1170
- ), i = n(() => se(a)), d = n(() => ba(a)), y = n(
1361
+ ), i = l(() => fe(a)), d = l(() => ja(a)), k = l(
1171
1362
  () => d.value ? i.value.modelValue : c.value
1172
- ), k = n(() => Se(y.value, i.value)), _ = n(() => i.value.loading || o.value), T = n(() => ka(i.value)), x = n(() => T.value ? k.value ? !!(l.checked || i.value.checkedText) : !!(l.unchecked || i.value.uncheckedText) : !1), b = n(() => [
1173
- _a(a, {
1174
- checked: k.value,
1363
+ ), h = l(() => je(k.value, i.value)), _ = l(() => i.value.loading || o.value), T = l(() => Ka(i.value)), C = l(() => T.value ? h.value ? !!(n.checked || i.value.checkedText) : !!(n.unchecked || i.value.uncheckedText) : !1), p = l(() => [
1364
+ qa(a, {
1365
+ checked: h.value,
1175
1366
  loading: o.value
1176
1367
  }),
1177
1368
  {
1178
- "has-label": x.value
1369
+ "has-label": C.value
1179
1370
  },
1180
1371
  r.class
1181
- ]), g = n(() => {
1182
- const { class: C, style: L, type: V, ...P } = r;
1183
- return P;
1184
- }), S = n(() => {
1185
- const C = {};
1186
- return i.value.checkedColor && (C["--mu-switch-current-checked-bg"] = i.value.checkedColor, C["--mu-switch-current-checked-border"] = i.value.checkedColor, C["--mu-switch-current-checked-thumb"] = i.value.checkedColor, C["--mu-switch-current-checked-glow"] = `0 0 12px ${i.value.checkedColor}`), i.value.uncheckedColor && (C["--mu-switch-current-unchecked-bg"] = i.value.uncheckedColor), [C, r.style];
1372
+ ]), y = l(() => {
1373
+ const { class: w, style: P, type: $, ...N } = r;
1374
+ return N;
1375
+ }), L = l(() => {
1376
+ const w = {};
1377
+ return i.value.checkedColor && (w["--mu-switch-current-checked-bg"] = i.value.checkedColor, w["--mu-switch-current-checked-border"] = i.value.checkedColor, w["--mu-switch-current-checked-thumb"] = i.value.checkedColor, w["--mu-switch-current-checked-glow"] = `0 0 12px ${i.value.checkedColor}`), i.value.uncheckedColor && (w["--mu-switch-current-unchecked-bg"] = i.value.uncheckedColor), [w, r.style];
1187
1378
  });
1188
- function $() {
1379
+ function M() {
1189
1380
  }
1190
- function h(C) {
1191
- const L = i.value.beforeChange;
1192
- if (!L)
1381
+ function g(w) {
1382
+ const P = i.value.beforeChange;
1383
+ if (!P)
1193
1384
  return !0;
1194
1385
  try {
1195
- const V = L(C);
1196
- return V instanceof Promise ? (o.value = !0, V.then((P) => P !== !1).catch(() => !1)) : V !== !1;
1386
+ const $ = P(w);
1387
+ return $ instanceof Promise ? (o.value = !0, $.then((N) => N !== !1).catch(() => !1)) : $ !== !1;
1197
1388
  } catch {
1198
1389
  return !1;
1199
1390
  }
1200
1391
  }
1201
- function p(C, L) {
1202
- d.value || (c.value = C), s("update:modelValue", C), s("change", C, L);
1392
+ function b(w, P) {
1393
+ d.value || (c.value = w), s("update:modelValue", w), s("change", w, P);
1203
1394
  }
1204
- function B(C) {
1395
+ function B(w) {
1205
1396
  if (i.value.disabled || _.value)
1206
1397
  return;
1207
- const L = ga(y.value, i.value), V = h(L);
1208
- if (V instanceof Promise) {
1209
- V.then((P) => {
1210
- P && p(L, C);
1398
+ const P = Fa(k.value, i.value), $ = g(P);
1399
+ if ($ instanceof Promise) {
1400
+ $.then((N) => {
1401
+ N && b(P, w);
1211
1402
  }).finally(() => {
1212
1403
  o.value = !1;
1213
1404
  });
1214
1405
  return;
1215
1406
  }
1216
- V && p(L, C);
1407
+ $ && b(P, w);
1217
1408
  }
1218
- function z(C) {
1219
- s("focus", C);
1409
+ function A(w) {
1410
+ s("focus", w);
1220
1411
  }
1221
- function ee(C) {
1222
- s("blur", C);
1412
+ function oe(w) {
1413
+ s("blur", w);
1223
1414
  }
1224
- return (C, L) => (f(), m("button", R(g.value, {
1415
+ return (w, P) => (f(), m("button", R(y.value, {
1225
1416
  type: "button",
1226
1417
  role: "switch",
1227
- class: b.value,
1228
- style: S.value,
1229
- "aria-checked": k.value ? "true" : "false",
1418
+ class: p.value,
1419
+ style: L.value,
1420
+ "aria-checked": h.value ? "true" : "false",
1230
1421
  disabled: i.value.disabled || _.value,
1231
1422
  onClick: B,
1232
- onFocus: z,
1233
- onBlur: ee
1423
+ onFocus: A,
1424
+ onBlur: oe
1234
1425
  }), [
1235
- L[1] || (L[1] = v("span", {
1426
+ P[1] || (P[1] = v("span", {
1236
1427
  class: "mu-switch__line-track",
1237
1428
  "aria-hidden": "true"
1238
1429
  }, null, -1)),
1239
- v("span", ya, [
1240
- _.value ? (f(), m("svg", wa, [...L[0] || (L[0] = [
1430
+ v("span", Wa, [
1431
+ _.value ? (f(), m("svg", Ja, [...P[0] || (P[0] = [
1241
1432
  v("path", {
1242
1433
  d: "M8 1.5C8.41421 1.5 8.75 1.83579 8.75 2.25C8.75 2.66421 8.41421 3 8 3C5.23858 3 3 5.23858 3 8C3 10.7614 5.23858 13 8 13C10.7614 13 13 10.7614 13 8C13 7.58579 13.3358 7.25 13.75 7.25C14.1642 7.25 14.5 7.58579 14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5Z",
1243
1434
  fill: "currentColor"
1244
1435
  }, null, -1)
1245
- ])])) : k.value ? w(C.$slots, "checked-icon", { key: 1 }, void 0, !0) : w(C.$slots, "unchecked-icon", { key: 2 }, void 0, !0)
1436
+ ])])) : h.value ? x(w.$slots, "checked-icon", { key: 1 }, void 0, !0) : x(w.$slots, "unchecked-icon", { key: 2 }, void 0, !0)
1246
1437
  ]),
1247
- x.value ? (f(), m("span", xa, [
1248
- k.value ? w(C.$slots, "checked", { key: 0 }, () => [
1249
- G(A(i.value.checkedText), 1)
1250
- ], !0) : w(C.$slots, "unchecked", { key: 1 }, () => [
1251
- G(A(i.value.uncheckedText), 1)
1438
+ C.value ? (f(), m("span", Qa, [
1439
+ h.value ? x(w.$slots, "checked", { key: 0 }, () => [
1440
+ G(z(i.value.checkedText), 1)
1441
+ ], !0) : x(w.$slots, "unchecked", { key: 1 }, () => [
1442
+ G(z(i.value.uncheckedText), 1)
1252
1443
  ], !0)
1253
- ])) : M("", !0)
1254
- ], 16, Ca));
1444
+ ])) : V("", !0)
1445
+ ], 16, Xa));
1255
1446
  }
1256
- }), is = /* @__PURE__ */ I(Va, [["__scopeId", "data-v-8cfb8f2a"]]), Le = Symbol("MuTabs"), $a = ["line", "segment"], Ba = ["small", "medium", "large"], Ta = ["white", "ghost"], Ma = ["content", "equal"];
1257
- function Y(e, t) {
1447
+ }), zs = /* @__PURE__ */ I(Ya, [["__scopeId", "data-v-8cfb8f2a"]]), Fe = Symbol("MuTabs"), es = ["line", "segment"], ts = ["small", "medium", "large"], as = ["white", "ghost"], ss = ["content", "equal"];
1448
+ function ne(e, t) {
1258
1449
  return typeof t == "string" && e.includes(t);
1259
1450
  }
1260
- function Sa(e) {
1261
- return Y($a, e);
1451
+ function ls(e) {
1452
+ return ne(es, e);
1262
1453
  }
1263
- function La(e) {
1264
- return Y(Ba, e);
1454
+ function ns(e) {
1455
+ return ne(ts, e);
1265
1456
  }
1266
- function Pa(e) {
1267
- return Y(Ta, e);
1457
+ function os(e) {
1458
+ return ne(as, e);
1268
1459
  }
1269
- function Na(e) {
1270
- return Y(Ma, e);
1460
+ function is(e) {
1461
+ return ne(ss, e);
1271
1462
  }
1272
- function Pe(e = {}) {
1273
- const t = e, a = Sa(t.variant) ? t.variant : "line";
1463
+ function Ke(e = {}) {
1464
+ const t = e, a = ls(t.variant) ? t.variant : "line";
1274
1465
  return {
1275
1466
  modelValue: e.modelValue,
1276
1467
  defaultValue: e.defaultValue,
1277
1468
  variant: a,
1278
- appearance: a === "segment" && Pa(t.appearance) ? t.appearance : a === "segment" ? "white" : void 0,
1279
- size: La(t.size) ? t.size : "medium",
1280
- layout: Na(t.layout) ? t.layout : "content",
1469
+ appearance: a === "segment" && os(t.appearance) ? t.appearance : a === "segment" ? "white" : void 0,
1470
+ size: ns(t.size) ? t.size : "medium",
1471
+ layout: is(t.layout) ? t.layout : "content",
1281
1472
  disabled: e.disabled ?? !1
1282
1473
  };
1283
1474
  }
1284
- function Ha(e) {
1475
+ function us(e) {
1285
1476
  return {
1286
1477
  value: e.value,
1287
1478
  disabled: e.disabled ?? !1
1288
1479
  };
1289
1480
  }
1290
- function Ia(e = {}) {
1481
+ function rs(e = {}) {
1291
1482
  return e.modelValue !== void 0;
1292
1483
  }
1293
- function Ne(e, t) {
1484
+ function qe(e, t) {
1294
1485
  return Object.is(e, t);
1295
1486
  }
1296
- function za(e = {}) {
1297
- const t = Pe(e), a = [
1487
+ function cs(e = {}) {
1488
+ const t = Ke(e), a = [
1298
1489
  "mu-tabs",
1299
1490
  `mu-tabs--variant-${t.variant}`,
1300
1491
  `mu-tabs--size-${t.size}`,
@@ -1302,19 +1493,19 @@ function za(e = {}) {
1302
1493
  ];
1303
1494
  return t.variant === "segment" && a.push(`mu-tabs--appearance-${t.appearance}`), t.disabled && a.push("is-disabled"), a;
1304
1495
  }
1305
- function Oa(e, t = {}) {
1496
+ function ds(e, t = {}) {
1306
1497
  const a = ["mu-tab"];
1307
1498
  return t.active && a.push("is-active"), (t.disabled || e.disabled) && a.push("is-disabled"), a;
1308
1499
  }
1309
- const Aa = ["aria-selected", "disabled"], Ra = {
1500
+ const fs = ["aria-selected", "disabled"], vs = {
1310
1501
  key: 0,
1311
1502
  class: "mu-tab__prefix",
1312
1503
  "aria-hidden": "true"
1313
- }, Da = { class: "mu-tab__content" }, Ga = {
1504
+ }, ms = { class: "mu-tab__content" }, hs = {
1314
1505
  key: 1,
1315
1506
  class: "mu-tab__suffix",
1316
1507
  "aria-hidden": "true"
1317
- }, Ea = /* @__PURE__ */ H({
1508
+ }, gs = /* @__PURE__ */ H({
1318
1509
  inheritAttrs: !1,
1319
1510
  __name: "Tab",
1320
1511
  props: {
@@ -1323,63 +1514,63 @@ const Aa = ["aria-selected", "disabled"], Ra = {
1323
1514
  },
1324
1515
  emits: ["click"],
1325
1516
  setup(e, { emit: t }) {
1326
- const a = e, s = t, r = D(), l = K(), o = ne(Le, null), u = N(null), c = n(() => Ha(a)), i = n(
1327
- () => o ? Ne(o.value.value, c.value.value) : !1
1328
- ), d = n(
1517
+ const a = e, s = t, r = E(), n = F(), o = ve(Fe, null), u = S(null), c = l(() => us(a)), i = l(
1518
+ () => o ? qe(o.value.value, c.value.value) : !1
1519
+ ), d = l(
1329
1520
  () => c.value.disabled || !!(o != null && o.disabled.value)
1330
- ), y = n(() => [
1331
- Oa(a, {
1521
+ ), k = l(() => [
1522
+ ds(a, {
1332
1523
  active: i.value,
1333
1524
  disabled: d.value
1334
1525
  }),
1335
1526
  r.class
1336
- ]), k = n(() => {
1337
- const { class: b, style: g, ...S } = r;
1338
- return S;
1339
- }), _ = n(() => r.style);
1527
+ ]), h = l(() => {
1528
+ const { class: p, style: y, ...L } = r;
1529
+ return L;
1530
+ }), _ = l(() => r.style);
1340
1531
  function T() {
1341
1532
  !o || !u.value || o.registerItem(c.value.value, u.value);
1342
1533
  }
1343
- function x(b) {
1534
+ function C(p) {
1344
1535
  if (d.value) {
1345
- b.preventDefault(), b.stopPropagation();
1536
+ p.preventDefault(), p.stopPropagation();
1346
1537
  return;
1347
1538
  }
1348
- o && o.select(c.value.value, b), s("click", b);
1539
+ o && o.select(c.value.value, p), s("click", p);
1349
1540
  }
1350
- return oe(() => {
1541
+ return ge(() => {
1351
1542
  T();
1352
- }), ie(() => {
1543
+ }), se(() => {
1353
1544
  o == null || o.unregisterItem(c.value.value);
1354
- }), ue(
1545
+ }), ae(
1355
1546
  () => c.value.value,
1356
- (b, g) => {
1357
- !o || !u.value || (o.unregisterItem(g), o.registerItem(b, u.value));
1547
+ (p, y) => {
1548
+ !o || !u.value || (o.unregisterItem(y), o.registerItem(p, u.value));
1358
1549
  }
1359
- ), (b, g) => (f(), m("button", R({
1550
+ ), (p, y) => (f(), m("button", R({
1360
1551
  ref_key: "buttonRef",
1361
1552
  ref: u
1362
- }, k.value, {
1553
+ }, h.value, {
1363
1554
  type: "button",
1364
1555
  role: "tab",
1365
- class: y.value,
1556
+ class: k.value,
1366
1557
  style: _.value,
1367
1558
  "aria-selected": i.value ? "true" : "false",
1368
1559
  disabled: d.value,
1369
- onClick: x
1560
+ onClick: C
1370
1561
  }), [
1371
- O(l).prefix ? (f(), m("span", Ra, [
1372
- w(b.$slots, "prefix", {}, void 0, !0)
1373
- ])) : M("", !0),
1374
- v("span", Da, [
1375
- w(b.$slots, "default", {}, void 0, !0)
1562
+ D(n).prefix ? (f(), m("span", vs, [
1563
+ x(p.$slots, "prefix", {}, void 0, !0)
1564
+ ])) : V("", !0),
1565
+ v("span", ms, [
1566
+ x(p.$slots, "default", {}, void 0, !0)
1376
1567
  ]),
1377
- O(l).suffix ? (f(), m("span", Ga, [
1378
- w(b.$slots, "suffix", {}, void 0, !0)
1379
- ])) : M("", !0)
1380
- ], 16, Aa));
1568
+ D(n).suffix ? (f(), m("span", hs, [
1569
+ x(p.$slots, "suffix", {}, void 0, !0)
1570
+ ])) : V("", !0)
1571
+ ], 16, fs));
1381
1572
  }
1382
- }), us = /* @__PURE__ */ I(Ea, [["__scopeId", "data-v-eeb068b0"]]), ja = /* @__PURE__ */ H({
1573
+ }), As = /* @__PURE__ */ I(gs, [["__scopeId", "data-v-eeb068b0"]]), ps = /* @__PURE__ */ H({
1383
1574
  inheritAttrs: !1,
1384
1575
  __name: "Tabs",
1385
1576
  props: {
@@ -1393,109 +1584,109 @@ const Aa = ["aria-selected", "disabled"], Ra = {
1393
1584
  },
1394
1585
  emits: ["update:modelValue", "change"],
1395
1586
  setup(e, { emit: t }) {
1396
- const a = e, s = t, r = D(), l = N(null), o = n(() => Pe(a)), u = n(() => Ia(a)), c = N(o.value.defaultValue), i = n(
1587
+ const a = e, s = t, r = E(), n = S(null), o = l(() => Ke(a)), u = l(() => rs(a)), c = S(o.value.defaultValue), i = l(
1397
1588
  () => u.value ? o.value.modelValue : c.value
1398
- ), d = n(() => o.value.variant), y = n(() => o.value.appearance), k = n(() => o.value.size), _ = n(() => o.value.layout), T = n(() => o.value.disabled), x = N(!1), b = N(0), g = /* @__PURE__ */ new Map(), S = N({
1589
+ ), d = l(() => o.value.variant), k = l(() => o.value.appearance), h = l(() => o.value.size), _ = l(() => o.value.layout), T = l(() => o.value.disabled), C = S(!1), p = S(0), y = /* @__PURE__ */ new Map(), L = S({
1399
1590
  transform: "translateX(0px)",
1400
1591
  width: "0px"
1401
- }), $ = n(() => [za(a), r.class]), h = n(() => {
1402
- const { class: V, style: P, ...te } = r;
1403
- return te;
1404
- }), p = n(() => r.style);
1592
+ }), M = l(() => [cs(a), r.class]), g = l(() => {
1593
+ const { class: $, style: N, ...ie } = r;
1594
+ return ie;
1595
+ }), b = l(() => r.style);
1405
1596
  function B() {
1406
- const V = l.value, P = i.value !== void 0 ? g.get(i.value) : void 0;
1407
- if (!V || !P) {
1408
- S.value = {
1597
+ const $ = n.value, N = i.value !== void 0 ? y.get(i.value) : void 0;
1598
+ if (!$ || !N) {
1599
+ L.value = {
1409
1600
  transform: "translateX(0px)",
1410
1601
  width: "0px"
1411
1602
  };
1412
1603
  return;
1413
1604
  }
1414
- const te = V.getBoundingClientRect(), ve = P.getBoundingClientRect();
1415
- S.value = {
1416
- transform: `translateX(${ve.left - te.left}px)`,
1417
- width: `${ve.width}px`
1605
+ const ie = $.getBoundingClientRect(), ye = N.getBoundingClientRect();
1606
+ L.value = {
1607
+ transform: `translateX(${ye.left - ie.left}px)`,
1608
+ width: `${ye.width}px`
1418
1609
  };
1419
1610
  }
1420
- function z() {
1611
+ function A() {
1421
1612
  j(() => {
1422
1613
  B();
1423
1614
  });
1424
1615
  }
1425
- function ee(V, P) {
1426
- T.value || Ne(i.value, V) || (u.value || (c.value = V), s("update:modelValue", V), s("change", V, P));
1616
+ function oe($, N) {
1617
+ T.value || qe(i.value, $) || (u.value || (c.value = $), s("update:modelValue", $), s("change", $, N));
1427
1618
  }
1428
- function C(V, P) {
1429
- g.set(V, P), b.value += 1, z();
1619
+ function w($, N) {
1620
+ y.set($, N), p.value += 1, A();
1430
1621
  }
1431
- function L(V) {
1432
- g.delete(V), b.value += 1, z();
1622
+ function P($) {
1623
+ y.delete($), p.value += 1, A();
1433
1624
  }
1434
- return le(Le, {
1625
+ return me(Fe, {
1435
1626
  value: i,
1436
1627
  variant: d,
1437
- appearance: y,
1438
- size: k,
1628
+ appearance: k,
1629
+ size: h,
1439
1630
  layout: _,
1440
1631
  disabled: T,
1441
- select: ee,
1442
- registerItem: C,
1443
- unregisterItem: L
1444
- }), ue(
1445
- [i, d, k, _, b],
1632
+ select: oe,
1633
+ registerItem: w,
1634
+ unregisterItem: P
1635
+ }), ae(
1636
+ [i, d, h, _, p],
1446
1637
  () => {
1447
- z();
1638
+ A();
1448
1639
  },
1449
1640
  { flush: "post" }
1450
- ), oe(() => {
1641
+ ), ge(() => {
1451
1642
  globalThis.window.addEventListener("resize", B), j(() => {
1452
- B(), x.value = !0;
1643
+ B(), C.value = !0;
1453
1644
  });
1454
- }), ie(() => {
1645
+ }), se(() => {
1455
1646
  globalThis.window.removeEventListener("resize", B);
1456
- }), (V, P) => (f(), m("div", R({
1647
+ }), ($, N) => (f(), m("div", R({
1457
1648
  ref_key: "rootRef",
1458
- ref: l
1459
- }, h.value, {
1649
+ ref: n
1650
+ }, g.value, {
1460
1651
  role: "tablist",
1461
- class: [$.value, { "is-ready": x.value }],
1462
- style: p.value
1652
+ class: [M.value, { "is-ready": C.value }],
1653
+ style: b.value
1463
1654
  }), [
1464
- w(V.$slots, "default", {}, void 0, !0),
1655
+ x($.$slots, "default", {}, void 0, !0),
1465
1656
  v("span", {
1466
1657
  class: "mu-tabs__indicator",
1467
- style: he(S.value),
1658
+ style: W(L.value),
1468
1659
  "aria-hidden": "true"
1469
1660
  }, null, 4)
1470
1661
  ], 16));
1471
1662
  }
1472
- }), rs = /* @__PURE__ */ I(ja, [["__scopeId", "data-v-28e8c4f7"]]), Ua = ["outline", "solid", "soft"];
1473
- function Za(e, t) {
1663
+ }), Os = /* @__PURE__ */ I(ps, [["__scopeId", "data-v-28e8c4f7"]]), bs = ["outline", "solid", "soft"];
1664
+ function _s(e, t) {
1474
1665
  return typeof t == "string" && e.includes(t);
1475
1666
  }
1476
- function Fa(e) {
1477
- return Za(Ua, e);
1667
+ function ks(e) {
1668
+ return _s(bs, e);
1478
1669
  }
1479
- function He(e = {}) {
1670
+ function Xe(e = {}) {
1480
1671
  return {
1481
- variant: Fa(e.variant) ? e.variant : "outline",
1672
+ variant: ks(e.variant) ? e.variant : "outline",
1482
1673
  selected: e.selected ?? !1,
1483
1674
  disabled: e.disabled ?? !1
1484
1675
  };
1485
1676
  }
1486
- function Ka(e = {}) {
1487
- const t = He(e), a = ["mu-tag", `mu-tag--variant-${t.variant}`];
1677
+ function ys(e = {}) {
1678
+ const t = Xe(e), a = ["mu-tag", `mu-tag--variant-${t.variant}`];
1488
1679
  return t.selected && a.push("is-selected"), t.disabled && a.push("is-disabled"), a;
1489
1680
  }
1490
- const qa = ["disabled", "aria-pressed"], Xa = {
1681
+ const Cs = ["disabled", "aria-pressed"], ws = {
1491
1682
  key: 0,
1492
1683
  class: "mu-tag__prefix",
1493
1684
  "aria-hidden": "true"
1494
- }, Wa = { class: "mu-tag__content" }, Ja = {
1685
+ }, xs = { class: "mu-tag__content" }, Vs = {
1495
1686
  key: 1,
1496
1687
  class: "mu-tag__suffix",
1497
1688
  "aria-hidden": "true"
1498
- }, Qa = /* @__PURE__ */ H({
1689
+ }, $s = /* @__PURE__ */ H({
1499
1690
  __name: "Tag",
1500
1691
  props: {
1501
1692
  variant: {},
@@ -1504,43 +1695,45 @@ const qa = ["disabled", "aria-pressed"], Xa = {
1504
1695
  },
1505
1696
  emits: ["update:selected", "click"],
1506
1697
  setup(e, { emit: t }) {
1507
- const a = e, s = t, r = K(), l = n(() => He(a)), o = n(() => Ka(a));
1698
+ const a = e, s = t, r = F(), n = l(() => Xe(a)), o = l(() => ys(a));
1508
1699
  function u(c) {
1509
- l.value.disabled || (s("click", c), s("update:selected", !l.value.selected));
1700
+ n.value.disabled || (s("click", c), s("update:selected", !n.value.selected));
1510
1701
  }
1511
1702
  return (c, i) => (f(), m("button", {
1512
1703
  type: "button",
1513
- class: Q(o.value),
1514
- disabled: l.value.disabled,
1515
- "aria-pressed": l.value.selected,
1704
+ class: O(o.value),
1705
+ disabled: n.value.disabled,
1706
+ "aria-pressed": n.value.selected,
1516
1707
  onClick: u
1517
1708
  }, [
1518
- O(r).prefix ? (f(), m("span", Xa, [
1519
- w(c.$slots, "prefix", {}, void 0, !0)
1520
- ])) : M("", !0),
1521
- v("span", Wa, [
1522
- w(c.$slots, "default", {}, void 0, !0)
1709
+ D(r).prefix ? (f(), m("span", ws, [
1710
+ x(c.$slots, "prefix", {}, void 0, !0)
1711
+ ])) : V("", !0),
1712
+ v("span", xs, [
1713
+ x(c.$slots, "default", {}, void 0, !0)
1523
1714
  ]),
1524
- O(r).suffix ? (f(), m("span", Ja, [
1525
- w(c.$slots, "suffix", {}, void 0, !0)
1526
- ])) : M("", !0)
1527
- ], 10, qa));
1715
+ D(r).suffix ? (f(), m("span", Vs, [
1716
+ x(c.$slots, "suffix", {}, void 0, !0)
1717
+ ])) : V("", !0)
1718
+ ], 10, Cs));
1528
1719
  }
1529
- }), cs = /* @__PURE__ */ I(Qa, [["__scopeId", "data-v-e3e9ee4d"]]);
1720
+ }), Ds = /* @__PURE__ */ I($s, [["__scopeId", "data-v-e3e9ee4d"]]);
1530
1721
  export {
1531
- ss as MessageList,
1532
- es as MuBadge,
1533
- me as MuButton,
1534
- yt as MuCheckbox,
1535
- ts as MuCheckboxGroup,
1536
- ea as MuModal,
1537
- ls as MuRadio,
1538
- os as MuRadioGroup,
1539
- is as MuSwitch,
1540
- us as MuTab,
1541
- rs as MuTabs,
1542
- cs as MuTag,
1543
- as as message,
1544
- ns as muModal,
1545
- q as openMuModal
1722
+ Ps as MessageList,
1723
+ Ms as MuBadge,
1724
+ Ce as MuButton,
1725
+ Ht as MuCheckbox,
1726
+ Bs as MuCheckboxGroup,
1727
+ qt as MuLoading,
1728
+ Ma as MuModal,
1729
+ Hs as MuRadio,
1730
+ Is as MuRadioGroup,
1731
+ zs as MuSwitch,
1732
+ As as MuTab,
1733
+ Os as MuTabs,
1734
+ Ds as MuTag,
1735
+ Ss as loading,
1736
+ Ls as message,
1737
+ Ns as muModal,
1738
+ Q as openMuModal
1546
1739
  };