@mureka-fe/ui 6.0.1 → 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 (35) hide show
  1. package/dist/llms.txt +53 -6
  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/__docs__/demos/dedupe.demo.vue.d.ts +3 -0
  25. package/dist/src/components/message/__docs__/demos/dedupe.demo.vue.d.ts.map +1 -0
  26. package/dist/src/components/message/__docs__/meta.d.ts.map +1 -1
  27. package/dist/src/components/message/message.d.ts +6 -0
  28. package/dist/src/components/message/message.d.ts.map +1 -1
  29. package/dist/src/components/modal/Modal.vue.d.ts +1 -1
  30. package/dist/src/index.d.ts +2 -0
  31. package/dist/src/index.d.ts.map +1 -1
  32. package/dist/styles.css +1 -1
  33. package/dist/ui.js +819 -610
  34. package/dist/ui.umd.cjs +1 -1
  35. package/package.json +1 -1
package/dist/ui.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as H, useSlots as F, computed as l, openBlock as f, createElementBlock as m, normalizeClass as J, 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 se, watchEffect as ze, mergeProps as R, nextTick as j, provide as le, renderList as pe, createBlock as E, withCtx as W, reactive as Ie, h as be, createVNode as Oe, TransitionGroup as Ae, resolveDynamicComponent as Re, onMounted as ne, onBeforeUnmount as oe, 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 qe(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 Ke = ["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 Ke = ["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 Ke = ["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 Ke = ["role", "aria-label"], Xe = {
92
92
  preset: {}
93
93
  },
94
94
  setup(e) {
95
- const t = e, a = F(), s = l(() => ke(t)), c = l(() => qe(t)), n = l(() => s.value.isSvgPreset ? "img" : void 0), o = l(() => s.value.isSvgPreset ? "NEW" : void 0), i = l(() => s.value.preset === "details");
96
- return (r, u) => (f(), m("span", {
97
- class: J(c.value),
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
+ return (c, i) => (f(), m("span", {
97
+ class: O(r.value),
98
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, [...u[0] || (u[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 Ke = ["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, [...u[1] || (u[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 Ke = ["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
- i.value ? (f(), m("span", Je, [...u[2] || (u[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 Ke = ["role", "aria-label"], Xe = {
143
143
  "stroke-linejoin": "round"
144
144
  })
145
145
  ], -1)
146
- ])])) : O(a).prefix ? (f(), m("span", Qe, [
147
- w(r.$slots, "prefix", {}, void 0, !0)
148
- ])) : M("", !0),
149
- v("span", Ye, [
150
- w(r.$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(r.$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, Ke));
158
+ ], 10, ot));
159
159
  }
160
- }), z = (e, t) => {
160
+ }), I = (e, t) => {
161
161
  const a = e.__vccOpts || e;
162
- for (const [s, c] of t)
163
- a[s] = c;
162
+ for (const [s, r] of t)
163
+ a[s] = r;
164
164
  return a;
165
- }, Qa = /* @__PURE__ */ z(tt, [["__scopeId", "data-v-aa97ab3d"]]);
166
- function ie(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 ie(e = {}) {
177
177
  nativeType: e.nativeType ?? "button"
178
178
  };
179
179
  }
180
- function at(e = {}) {
181
- const t = ie(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 = ie(e);
189
+ function ht(e = {}) {
190
+ const t = pe(e);
191
191
  return !t.disabled && !t.loading;
192
192
  }
193
- function lt(e = {}) {
194
- const t = e.iconOnly ?? !1, a = e.hasPrefix ?? !1, s = e.hasSuffix ?? !1, c = e.loading ?? !1, n = 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
- showPrefixSlot: !t && !c && a,
196
+ showPrefixSlot: !t && !r && a,
197
197
  showSuffixSlot: !t && s,
198
- showDefaultSlot: !(t && c),
199
- showLoadingIndicator: c,
198
+ showDefaultSlot: !(t && r),
199
+ showLoadingIndicator: r,
200
200
  requiresAriaLabel: t && !n,
201
201
  isInvalidIconOnlyCombination: t && (a || s)
202
202
  };
203
203
  }
204
- const nt = ["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
- }, ut = {
208
+ }, _t = {
209
209
  key: 1,
210
210
  class: "mu-button__content"
211
- }, it = {
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 nt = ["type", "disabled", "aria-busy"], ot = {
228
228
  },
229
229
  emits: ["click"],
230
230
  setup(e, { emit: t }) {
231
- const a = e, s = t, c = F(), n = 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 nt = ["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
- }, i = l(() => ie(a)), r = l(() => at(i.value)), u = l(() => o[i.value.size]), d = l(
245
- () => lt({
246
- iconOnly: i.value.iconOnly,
247
- hasPrefix: !!c.prefix,
248
- hasSuffix: !!c.suffix,
249
- loading: i.value.loading,
250
- hasDefaultSlot: !!c.default,
244
+ }, u = l(() => pe(a)), c = l(() => mt(u.value)), i = l(() => o[u.value.size]), d = l(
245
+ () => gt({
246
+ iconOnly: u.value.iconOnly,
247
+ hasPrefix: !!r.prefix,
248
+ hasSuffix: !!r.suffix,
249
+ loading: u.value.loading,
250
+ hasDefaultSlot: !!r.default,
251
251
  hasAriaLabel: typeof n["aria-label"] == "string" && n["aria-label"].trim().length > 0
252
252
  })
253
253
  );
254
- function y(k) {
255
- if (!st(i.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", {
262
- type: i.value.nativeType,
263
- class: J(["mu-button", r.value]),
264
- disabled: i.value.disabled || i.value.loading,
265
- "aria-busy": i.value.loading ? "true" : void 0,
266
- onClick: y
261
+ return (h, _) => (f(), m("button", {
262
+ type: u.value.nativeType,
263
+ class: O(["mu-button", c.value]),
264
+ disabled: u.value.disabled || u.value.loading,
265
+ "aria-busy": u.value.loading ? "true" : void 0,
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(u.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 nt = ["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", ut, [
284
- w(k.$slots, "default", {}, void 0, !0)
285
- ])) : M("", !0),
286
- d.value.showSuffixSlot ? (f(), m("span", it, [
287
- w(k.$slots, "suffix", {}, void 0, !0)
288
- ])) : M("", !0)
289
- ], 10, nt));
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__ */ z(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,47 +351,47 @@ 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, c = D(), n = N(null), o = se(_e, null), i = l(() => Ce(a)), r = l(() => vt(a)), u = N(i.value.defaultChecked), d = l(() => o ? i.value.value !== void 0 ? o.isChecked(i.value.value) : !1 : r.value ? i.value.modelValue ?? !1 : u.value), y = l(
355
- () => i.value.disabled || !!(o != null && o.disabled.value)
356
- ), k = l(() => (o == null ? void 0 : o.name.value) ?? i.value.name), _ = l(
357
- () => i.value.value === void 0 ? void 0 : String(i.value.value)
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
+ () => u.value.disabled || !!(o != null && o.disabled.value)
356
+ ), h = l(() => (o == null ? void 0 : o.name.value) ?? u.value.name), _ = l(
357
+ () => u.value.value === void 0 ? void 0 : String(u.value.value)
358
358
  ), T = l(() => [
359
- bt(a, {
359
+ Bt(a, {
360
360
  checked: d.value,
361
- indeterminate: i.value.indeterminate,
362
- disabled: y.value
361
+ indeterminate: u.value.indeterminate,
362
+ disabled: k.value
363
363
  }),
364
- c.class
365
- ]), x = l(() => {
366
- const { class: p, style: B, ...I } = c;
367
- return I;
368
- }), b = l(() => c.style);
369
- ze(() => {
370
- n.value && (n.value.indeterminate = i.value.indeterminate);
364
+ r.class
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 = i.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
- i.value.value !== void 0 && o.toggle(i.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 I = !d.value;
384
- r.value || (u.value = I), s("update:modelValue", I), s("change", I, 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",
@@ -399,13 +399,13 @@ const kt = ["checked", "disabled", "name", "value"], _t = { class: "mu-checkbox_
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__ */ z(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,152 +441,359 @@ 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, c = D(), n = l(() => ye(a)), o = l(() => mt(a)), i = N([...n.value.defaultValue ?? []]), r = l(
445
- () => o.value ? n.value.modelValue ?? [] : i.value
446
- ), u = l(() => n.value.disabled), d = l(() => n.value.name), y = l(
447
- () => n.value.options ? n.value.options.map((g) => pt(g)) : null
448
- ), k = l(() => [gt(a), c.class]), _ = l(() => {
449
- const { class: g, style: S, ...$ } = c;
450
- return $;
451
- }), T = l(() => c.style);
452
- function x(g) {
453
- return we(r.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) {
455
+ function p(y, L) {
456
456
  if (n.value.disabled)
457
457
  return;
458
- const $ = ht(r.value, g);
459
- o.value || (i.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, {
462
- value: r,
463
- disabled: u,
461
+ return me(Me, {
462
+ value: c,
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
- }), Ya = /* @__PURE__ */ z(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
- }, q = Ie({
680
+ }, K = Je({
490
681
  items: []
491
682
  });
492
- let $t = 1;
493
- const U = /* @__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,
498
689
  duration: e.duration,
499
690
  closable: e.closable,
500
691
  resetOnHover: e.resetOnHover,
501
- icon: e.icon
692
+ icon: e.icon,
693
+ key: e.key
502
694
  };
503
695
  }
504
- function re(e) {
696
+ function be(e) {
505
697
  return e.duration > 0;
506
698
  }
507
- function Tt(e) {
508
- return q.items.findIndex((t) => t.id === e);
699
+ function aa(e) {
700
+ return K.items.findIndex((t) => t.id === e);
509
701
  }
510
- function xe(e) {
511
- return q.items.find((t) => t.id === e);
702
+ function De(e) {
703
+ return K.items.find((t) => t.id === e);
512
704
  }
513
- function ce(e) {
514
- const t = U.get(e);
705
+ function _e(e) {
706
+ const t = q.get(e);
515
707
  t && t.timer !== null && (globalThis.clearTimeout(t.timer), t.timer = null);
516
708
  }
517
- function de(e) {
518
- const t = Tt(e);
519
- t < 0 || (ce(e), U.delete(e), q.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));
520
712
  }
521
- function Ve(e, t) {
522
- const a = U.get(e);
523
- a && (ce(e), a.remainingDuration = t, a.deadline = Date.now() + t, a.isPaused = !1, a.timer = globalThis.setTimeout(() => {
524
- de(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);
525
717
  }, t));
526
718
  }
527
- function Mt(e, t) {
719
+ function sa(e, t) {
528
720
  return {
529
- id: $t++,
721
+ id: ea++,
530
722
  type: e,
531
723
  title: t.title,
532
724
  description: t.description,
533
- duration: t.duration ?? xt,
725
+ duration: t.duration ?? Qt,
534
726
  closable: t.closable ?? !1,
535
727
  resetOnHover: t.resetOnHover ?? !1,
536
- icon: t.icon
728
+ icon: t.icon,
729
+ key: t.key
537
730
  };
538
731
  }
539
- function St() {
732
+ function la() {
540
733
  return typeof globalThis.window < "u" && typeof globalThis.document < "u";
541
734
  }
542
- function Lt(e, t) {
543
- if (!St())
544
- return Vt;
545
- const a = Bt(t), s = Mt(e, a);
546
- return q.items.push(s), U.set(s.id, {
735
+ function na(e) {
736
+ return e.key !== void 0 && e.key !== null;
737
+ }
738
+ function oa(e) {
739
+ return K.items.find((t) => t.key === e);
740
+ }
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);
747
+ if (r) {
748
+ const n = r.id;
749
+ return { close: () => te(n) };
750
+ }
751
+ }
752
+ const s = sa(e, a);
753
+ return K.items.push(s), q.set(s.id, {
547
754
  timer: null,
548
755
  deadline: 0,
549
756
  remainingDuration: s.duration,
550
757
  isPaused: !1
551
- }), re(s) && Ve(s.id, s.duration), {
552
- close: () => de(s.id)
758
+ }), be(s) && Re(s.id, s.duration), {
759
+ close: () => te(s.id)
553
760
  };
554
761
  }
555
- function Z(e) {
556
- return (t) => Lt(e, t);
762
+ function X(e) {
763
+ return (t) => ia(e, t);
557
764
  }
558
- const es = {
559
- success: Z("success"),
560
- warning: Z("warning"),
561
- info: Z("info"),
562
- error: Z("error"),
563
- danger: Z("danger")
765
+ const Ls = {
766
+ success: X("success"),
767
+ warning: X("warning"),
768
+ info: X("info"),
769
+ error: X("error"),
770
+ danger: X("danger")
564
771
  };
565
- function Pt(e) {
566
- de(e);
772
+ function ua(e) {
773
+ te(e);
567
774
  }
568
- function Nt(e) {
569
- const t = U.get(e), a = xe(e);
570
- !t || !a || t.isPaused || !a.resetOnHover || !re(a) || (t.remainingDuration = Math.max(t.deadline - Date.now(), 0), ce(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);
571
778
  }
572
- function Ht(e) {
573
- const t = U.get(e), a = xe(e);
574
- !t || !a || !t.isPaused || !a.resetOnHover || !re(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);
575
782
  }
576
- const zt = {
783
+ const da = {
577
784
  class: "mu-message-list",
578
785
  "aria-live": "polite",
579
786
  "aria-atomic": "true"
580
- }, It = ["onMouseenter", "onMouseleave"], Ot = {
787
+ }, fa = ["onMouseenter", "onMouseleave"], va = {
581
788
  class: "mu-message__icon",
582
789
  "aria-hidden": "true"
583
- }, At = { class: "mu-message__content" }, Rt = { class: "mu-message__title" }, Dt = {
790
+ }, ma = { class: "mu-message__content" }, ha = { class: "mu-message__title" }, ga = {
584
791
  key: 0,
585
792
  class: "mu-message__description"
586
- }, Gt = ["onClick"], Et = /* @__PURE__ */ H({
793
+ }, pa = ["onClick"], ba = /* @__PURE__ */ H({
587
794
  __name: "MessageList",
588
795
  setup(e) {
589
- const t = l(() => q.items), a = H({
796
+ const t = l(() => K.items), a = H({
590
797
  name: "MarkupIcon",
591
798
  props: {
592
799
  markup: {
@@ -594,64 +801,64 @@ const zt = {
594
801
  required: !0
595
802
  }
596
803
  },
597
- setup(r) {
598
- return () => be("span", { class: "mu-message__icon-markup", innerHTML: r.markup });
804
+ setup(c) {
805
+ return () => he("span", { class: "mu-message__icon-markup", innerHTML: c.markup });
599
806
  }
600
807
  });
601
- function s(r) {
602
- return typeof r != "string";
808
+ function s(c) {
809
+ return typeof c != "string";
603
810
  }
604
- function c(r) {
605
- Nt(r);
811
+ function r(c) {
812
+ ra(c);
606
813
  }
607
- function n(r) {
608
- Ht(r);
814
+ function n(c) {
815
+ ca(c);
609
816
  }
610
- function o(r) {
611
- if (!(r instanceof globalThis.HTMLElement))
817
+ function o(c) {
818
+ if (!(c instanceof globalThis.HTMLElement))
612
819
  return;
613
- const u = r.getBoundingClientRect();
614
- r.style.width = `${u.width}px`, r.style.height = `${u.height}px`;
820
+ const i = c.getBoundingClientRect();
821
+ c.style.width = `${i.width}px`, c.style.height = `${i.height}px`;
615
822
  }
616
- const i = {
823
+ const u = {
617
824
  success: '<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 6.5L9.5 17L4 11.5" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',
618
825
  warning: '<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 4.5L20 18.5H4L12 4.5Z" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/><path d="M12 9.5V13.5" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><circle cx="12" cy="16.5" r="1" fill="currentColor"/></svg>',
619
826
  info: '<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"/><circle cx="12" cy="8.5" r="1" fill="currentColor"/><path d="M12 11.5V16" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>',
620
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>',
621
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>'
622
829
  };
623
- return (r, u) => (f(), m("div", zt, [
624
- Oe(Ae, {
830
+ return (c, i) => (f(), m("div", da, [
831
+ Y(Qe, {
625
832
  name: "mu-message-fade",
626
833
  tag: "div",
627
834
  class: "mu-message-list__stack",
628
835
  onBeforeLeave: o
629
836
  }, {
630
- default: W(() => [
631
- (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", {
632
839
  key: d.id,
633
- class: J(["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 }]]),
634
841
  role: "status",
635
- onMouseenter: (y) => c(d.id),
636
- onMouseleave: (y) => n(d.id)
842
+ onMouseenter: (k) => r(d.id),
843
+ onMouseleave: (k) => n(d.id)
637
844
  }, [
638
- v("span", Ot, [
639
- 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), {
640
847
  key: 1,
641
- markup: typeof d.icon == "string" ? d.icon : i[d.type]
848
+ markup: typeof d.icon == "string" ? d.icon : u[d.type]
642
849
  }, null, 8, ["markup"]))
643
850
  ]),
644
- v("div", At, [
645
- v("div", Rt, A(d.title), 1),
646
- d.description ? (f(), m("p", Dt, 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)
647
854
  ]),
648
855
  d.closable ? (f(), m("button", {
649
856
  key: 0,
650
857
  type: "button",
651
858
  class: "mu-message__close",
652
859
  "aria-label": "Close message",
653
- onClick: (y) => O(Pt)(d.id)
654
- }, [...u[0] || (u[0] = [
860
+ onClick: (k) => D(ua)(d.id)
861
+ }, [...i[0] || (i[0] = [
655
862
  v("svg", {
656
863
  viewBox: "0 0 24 24",
657
864
  fill: "none",
@@ -664,14 +871,14 @@ const zt = {
664
871
  "stroke-linecap": "round"
665
872
  })
666
873
  ], -1)
667
- ])], 8, Gt)) : M("", !0)
668
- ], 42, It))), 128))
874
+ ])], 8, pa)) : V("", !0)
875
+ ], 42, fa))), 128))
669
876
  ]),
670
877
  _: 1
671
878
  })
672
879
  ]));
673
880
  }
674
- }), ts = /* @__PURE__ */ z(Et, [["__scopeId", "data-v-fca28789"]]), jt = {
881
+ }), Ps = /* @__PURE__ */ I(ba, [["__scopeId", "data-v-fca28789"]]), _a = {
675
882
  medium: {
676
883
  width: "548px",
677
884
  minHeight: "228px"
@@ -681,8 +888,8 @@ const zt = {
681
888
  minHeight: "500px"
682
889
  }
683
890
  };
684
- function fe(e = {}) {
685
- const t = e.size ?? "medium", a = jt[t], s = e.variant ?? "form";
891
+ function ke(e = {}) {
892
+ const t = e.size ?? "medium", a = _a[t], s = e.variant ?? "form";
686
893
  return {
687
894
  visible: e.visible ?? !1,
688
895
  title: e.title ?? "",
@@ -702,8 +909,8 @@ function fe(e = {}) {
702
909
  okLoading: e.okLoading ?? !1
703
910
  };
704
911
  }
705
- function Ut(e = {}) {
706
- const t = fe(e), a = [
912
+ function ka(e = {}) {
913
+ const t = ke(e), a = [
707
914
  "mu-modal",
708
915
  `mu-modal--${t.size}`,
709
916
  `mu-modal--${t.status}`,
@@ -711,8 +918,8 @@ function Ut(e = {}) {
711
918
  ];
712
919
  return t.variant === "feedback" && a.push("mu-modal--feedback"), a;
713
920
  }
714
- function Zt(e = {}) {
715
- const t = fe(e);
921
+ function ya(e = {}) {
922
+ const t = ke(e);
716
923
  return t.variant === "feedback" ? {
717
924
  type: "secondary",
718
925
  status: t.status === "default" ? void 0 : t.status
@@ -723,13 +930,13 @@ function Zt(e = {}) {
723
930
  type: "primary"
724
931
  };
725
932
  }
726
- const Ft = {
933
+ const Ca = {
727
934
  key: 0,
728
935
  class: "mu-modal-root"
729
- }, qt = { class: "mu-modal__header" }, Kt = ["data-status"], Xt = { class: "mu-modal__body" }, Wt = {
936
+ }, wa = { class: "mu-modal__header" }, xa = ["data-status"], Va = { class: "mu-modal__body" }, $a = {
730
937
  key: 0,
731
938
  class: "mu-modal__footer"
732
- }, Jt = /* @__PURE__ */ H({
939
+ }, Ta = /* @__PURE__ */ H({
733
940
  inheritAttrs: !1,
734
941
  __name: "Modal",
735
942
  props: {
@@ -750,76 +957,76 @@ const Ft = {
750
957
  },
751
958
  emits: ["update:visible", "ok", "cancel", "close"],
752
959
  setup(e, { emit: t }) {
753
- const a = e, s = t, c = D(), n = l(() => fe(a)), o = l(() => [Ut(a), c.class]), i = l(() => {
754
- const { class: h, style: p, ...B } = c;
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;
755
962
  return B;
756
- }), r = l(() => Zt(a)), u = l(
963
+ }), c = l(() => ya(a)), i = l(
757
964
  () => n.value.variant === "feedback" && n.value.hideCancel
758
965
  ), d = l(() => [
759
966
  {
760
967
  width: n.value.width,
761
968
  minHeight: n.value.minHeight
762
969
  },
763
- c.style
764
- ]), y = `mu-modal-title-${Math.random().toString(36).slice(2, 10)}`, _ = typeof globalThis.document < "u" ? globalThis.document : null;
970
+ r.style
971
+ ]), k = `mu-modal-title-${Math.random().toString(36).slice(2, 10)}`, _ = typeof globalThis.document < "u" ? globalThis.document : null;
765
972
  function T() {
766
973
  s("update:visible", !1);
767
974
  }
768
- function x() {
975
+ function C() {
769
976
  n.value.maskClosable && (T(), s("cancel", new globalThis.MouseEvent("click")));
770
977
  }
771
- function b() {
978
+ function p() {
772
979
  T(), s("close");
773
980
  }
774
- function g(h) {
775
- s("cancel", h), T();
981
+ function y(g) {
982
+ s("cancel", g), T();
776
983
  }
777
- function S(h) {
778
- s("ok", h);
984
+ function L(g) {
985
+ s("ok", g);
779
986
  }
780
- function $(h) {
781
- h.key !== "Escape" || !n.value.visible || !n.value.escToClose || (T(), s("close"));
987
+ function M(g) {
988
+ g.key !== "Escape" || !n.value.visible || !n.value.escToClose || (T(), s("close"));
782
989
  }
783
- return ne(() => {
784
- _ && _.addEventListener("keydown", $);
785
- }), oe(() => {
786
- _ && (_.removeEventListener("keydown", $), _.body.style.overflow = "");
787
- }), ue(
990
+ return ge(() => {
991
+ _ && _.addEventListener("keydown", M);
992
+ }), se(() => {
993
+ _ && (_.removeEventListener("keydown", M), _.body.style.overflow = "");
994
+ }), ae(
788
995
  () => n.value.visible,
789
- (h) => {
790
- _ && (_.body.style.overflow = h ? "hidden" : "");
996
+ (g) => {
997
+ _ && (_.body.style.overflow = g ? "hidden" : "");
791
998
  },
792
999
  { immediate: !0 }
793
- ), (h, p) => (f(), E(De, { to: "body" }, [
794
- n.value.visible ? (f(), m("div", Ft, [
1000
+ ), (g, b) => (f(), Z(xe, { to: "body" }, [
1001
+ n.value.visible ? (f(), m("div", Ca, [
795
1002
  v("div", {
796
1003
  class: "mu-modal__mask",
797
- onClick: x
1004
+ onClick: C
798
1005
  }),
799
- v("div", R(i.value, {
1006
+ v("div", R(u.value, {
800
1007
  class: o.value,
801
1008
  style: d.value,
802
1009
  role: "dialog",
803
1010
  "aria-modal": "true",
804
- "aria-labelledby": y
1011
+ "aria-labelledby": k
805
1012
  }), [
806
- v("header", qt, [
1013
+ v("header", wa, [
807
1014
  v("div", {
808
- id: y,
1015
+ id: k,
809
1016
  class: "mu-modal__title",
810
1017
  "data-status": n.value.status
811
1018
  }, [
812
- w(h.$slots, "title", {}, () => [
813
- G(A(n.value.title), 1)
1019
+ x(g.$slots, "title", {}, () => [
1020
+ G(z(n.value.title), 1)
814
1021
  ], !0)
815
- ], 8, Kt),
1022
+ ], 8, xa),
816
1023
  n.value.closable ? (f(), m("button", {
817
1024
  key: 0,
818
1025
  type: "button",
819
1026
  class: "mu-modal__close",
820
1027
  "aria-label": "Close dialog",
821
- onClick: b
822
- }, [...p[0] || (p[0] = [
1028
+ onClick: p
1029
+ }, [...b[0] || (b[0] = [
823
1030
  v("span", {
824
1031
  class: "mu-modal__close-icon",
825
1032
  "aria-hidden": "true"
@@ -843,96 +1050,96 @@ const Ft = {
843
1050
  })
844
1051
  ])
845
1052
  ], -1)
846
- ])])) : M("", !0)
1053
+ ])])) : V("", !0)
847
1054
  ]),
848
- v("div", Xt, [
849
- w(h.$slots, "default", {}, void 0, !0)
1055
+ v("div", Va, [
1056
+ x(g.$slots, "default", {}, void 0, !0)
850
1057
  ]),
851
- h.$slots.footer || !n.value.hideOk || !n.value.hideCancel ? (f(), m("footer", Wt, [
852
- w(h.$slots, "footer", {}, () => [
853
- n.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), {
854
1061
  key: 0,
855
1062
  type: "ghost",
856
1063
  class: "mu-modal__cancel",
857
- onClick: g
1064
+ onClick: y
858
1065
  }, {
859
- default: W(() => [
860
- G(A(n.value.cancelText), 1)
1066
+ default: U(() => [
1067
+ G(z(n.value.cancelText), 1)
861
1068
  ]),
862
1069
  _: 1
863
1070
  })),
864
- n.value.hideOk ? M("", !0) : (f(), E(O(me), R({ key: 1 }, r.value, {
1071
+ n.value.hideOk ? V("", !0) : (f(), Z(D(Ce), R({ key: 1 }, c.value, {
865
1072
  loading: n.value.okLoading,
866
- class: ["mu-modal__ok", { "mu-modal__ok--block": u.value }],
867
- onClick: S
1073
+ class: ["mu-modal__ok", { "mu-modal__ok--block": i.value }],
1074
+ onClick: L
868
1075
  }), {
869
- default: W(() => [
870
- G(A(n.value.okText), 1)
1076
+ default: U(() => [
1077
+ G(z(n.value.okText), 1)
871
1078
  ]),
872
1079
  _: 1
873
1080
  }, 16, ["loading", "class"]))
874
1081
  ], !0)
875
- ])) : M("", !0)
1082
+ ])) : V("", !0)
876
1083
  ], 16)
877
- ])) : M("", !0)
1084
+ ])) : V("", !0)
878
1085
  ]));
879
1086
  }
880
- }), Qt = /* @__PURE__ */ z(Jt, [["__scopeId", "data-v-e94991b0"]]);
881
- function Yt(e) {
1087
+ }), Ma = /* @__PURE__ */ I(Ta, [["__scopeId", "data-v-e94991b0"]]);
1088
+ function Ba(e) {
882
1089
  return e === void 0 ? null : typeof e == "function" ? e() : e;
883
1090
  }
884
- function K(e = {}) {
1091
+ function Q(e = {}) {
885
1092
  return typeof globalThis.document > "u" ? Promise.resolve(!1) : new Promise((t) => {
886
1093
  const a = globalThis.document.createElement("div");
887
1094
  globalThis.document.body.appendChild(a);
888
- const s = N(!0);
889
- let c = null, n = !1;
1095
+ const s = S(!0);
1096
+ let r = null, n = !1;
890
1097
  const o = () => {
891
- c && (c.unmount(), c = null), a.parentNode && a.parentNode.removeChild(a);
892
- }, i = (d) => {
1098
+ r && (r.unmount(), r = null), a.parentNode && a.parentNode.removeChild(a);
1099
+ }, u = (d) => {
893
1100
  n || (n = !0, s.value = !1, queueMicrotask(() => {
894
1101
  o(), t(d);
895
1102
  }));
896
- }, { content: r, ...u } = e;
897
- c = Ge({
1103
+ }, { content: c, ...i } = e;
1104
+ r = Ve({
898
1105
  render() {
899
- return be(
900
- Qt,
1106
+ return he(
1107
+ Ma,
901
1108
  {
902
- ...u,
1109
+ ...i,
903
1110
  visible: s.value,
904
1111
  "onUpdate:visible": (d) => {
905
- d || i(!1);
1112
+ d || u(!1);
906
1113
  },
907
- onOk: () => i(!0),
908
- onCancel: () => i(!1),
909
- onClose: () => i(!1)
1114
+ onOk: () => u(!0),
1115
+ onCancel: () => u(!1),
1116
+ onClose: () => u(!1)
910
1117
  },
911
1118
  {
912
- default: () => Yt(r)
1119
+ default: () => Ba(c)
913
1120
  }
914
1121
  );
915
1122
  }
916
- }), c.mount(a);
1123
+ }), r.mount(a);
917
1124
  });
918
1125
  }
919
- const as = {
1126
+ const Ns = {
920
1127
  /** 通用版本,透传所有 props,默认 variant='form'。 */
921
- show: K,
1128
+ show: Q,
922
1129
  /** 通用确认弹窗,等价于 show,使用 form 形态 + 自定义 status。 */
923
- confirm: (e = {}) => K(e),
1130
+ confirm: (e = {}) => Q(e),
924
1131
  /** 反馈形态 + status='success'。 */
925
- success: (e = {}) => K({ ...e, variant: "feedback", status: "success" }),
1132
+ success: (e = {}) => Q({ ...e, variant: "feedback", status: "success" }),
926
1133
  /** 反馈形态 + status='danger'。 */
927
- danger: (e = {}) => K({ ...e, variant: "feedback", status: "danger" })
928
- }, $e = Symbol("MuRadioGroup"), ea = ["horizontal", "vertical"];
929
- function ta(e, t) {
1134
+ danger: (e = {}) => Q({ ...e, variant: "feedback", status: "danger" })
1135
+ }, Ee = Symbol("MuRadioGroup"), Sa = ["horizontal", "vertical"];
1136
+ function La(e, t) {
930
1137
  return typeof t == "string" && e.includes(t);
931
1138
  }
932
- function aa(e) {
933
- return ta(ea, e);
1139
+ function Pa(e) {
1140
+ return La(Sa, e);
934
1141
  }
935
- function Be(e = {}) {
1142
+ function Ge(e = {}) {
936
1143
  return {
937
1144
  modelValue: e.modelValue,
938
1145
  value: e.value ?? !0,
@@ -941,33 +1148,33 @@ function Be(e = {}) {
941
1148
  name: e.name
942
1149
  };
943
1150
  }
944
- function Te(e = {}) {
1151
+ function Ze(e = {}) {
945
1152
  return {
946
1153
  modelValue: e.modelValue,
947
1154
  defaultValue: e.defaultValue,
948
1155
  disabled: e.disabled ?? !1,
949
1156
  name: e.name,
950
- direction: aa(e.direction) ? e.direction : "horizontal"
1157
+ direction: Pa(e.direction) ? e.direction : "horizontal"
951
1158
  };
952
1159
  }
953
- function sa(e = {}) {
1160
+ function Na(e = {}) {
954
1161
  return e.modelValue !== void 0;
955
1162
  }
956
- function la(e = {}) {
1163
+ function Ha(e = {}) {
957
1164
  return e.modelValue !== void 0;
958
1165
  }
959
- function te(e, t) {
1166
+ function de(e, t) {
960
1167
  return Object.is(e, t);
961
1168
  }
962
- function na(e = {}, t = {}) {
963
- const a = Be(e), s = ["mu-radio"];
1169
+ function Ia(e = {}, t = {}) {
1170
+ const a = Ge(e), s = ["mu-radio"];
964
1171
  return t.checked && s.push("is-checked"), (t.disabled || a.disabled) && s.push("is-disabled"), s;
965
1172
  }
966
- function oa(e = {}) {
967
- 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}`];
968
1175
  return t.disabled && a.push("is-disabled"), a;
969
1176
  }
970
- const ua = ["checked", "disabled", "name", "value"], ia = { class: "mu-radio__label" }, ra = /* @__PURE__ */ H({
1177
+ const Aa = ["checked", "disabled", "name", "value"], Oa = { class: "mu-radio__label" }, Da = /* @__PURE__ */ H({
971
1178
  inheritAttrs: !1,
972
1179
  __name: "Radio",
973
1180
  props: {
@@ -979,68 +1186,68 @@ const ua = ["checked", "disabled", "name", "value"], ia = { class: "mu-radio__la
979
1186
  },
980
1187
  emits: ["update:modelValue", "change", "focus", "blur"],
981
1188
  setup(e, { emit: t }) {
982
- const a = e, s = t, c = D(), n = se($e, null), o = l(() => Be(a)), i = l(() => sa(a)), r = N(o.value.defaultChecked), u = l(() => n ? te(n.value.value, o.value.value) : i.value ? te(o.value.modelValue, o.value.value) : r.value), d = l(
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(
983
1190
  () => o.value.disabled || !!(n != null && n.disabled.value)
984
- ), y = l(() => (n == null ? void 0 : n.name.value) ?? o.value.name), k = l(() => String(o.value.value)), _ = l(() => [
985
- na(a, {
986
- checked: u.value,
1191
+ ), k = l(() => (n == null ? void 0 : n.name.value) ?? o.value.name), h = l(() => String(o.value.value)), _ = l(() => [
1192
+ Ia(a, {
1193
+ checked: i.value,
987
1194
  disabled: d.value
988
1195
  }),
989
- c.class
1196
+ r.class
990
1197
  ]), T = l(() => {
991
- const { class: h, style: p, ...B } = c;
1198
+ const { class: g, style: b, ...B } = r;
992
1199
  return B;
993
- }), x = l(() => c.style);
994
- function b(h, p) {
995
- i.value || (r.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);
996
1203
  }
997
- function g(h) {
1204
+ function y(g) {
998
1205
  if (d.value)
999
1206
  return;
1000
- const p = o.value.value, B = h.target instanceof globalThis.HTMLInputElement ? h.target : null;
1207
+ const b = o.value.value, B = g.target instanceof globalThis.HTMLInputElement ? g.target : null;
1001
1208
  if (n) {
1002
- n.select(p, h), j(() => {
1003
- B && (B.checked = u.value);
1209
+ n.select(b, g), j(() => {
1210
+ B && (B.checked = i.value);
1004
1211
  });
1005
1212
  return;
1006
1213
  }
1007
- b(p, h), j(() => {
1008
- B && (B.checked = u.value);
1214
+ p(b, g), j(() => {
1215
+ B && (B.checked = i.value);
1009
1216
  });
1010
1217
  }
1011
- function S(h) {
1012
- s("focus", h);
1218
+ function L(g) {
1219
+ s("focus", g);
1013
1220
  }
1014
- function $(h) {
1015
- s("blur", h);
1221
+ function M(g) {
1222
+ s("blur", g);
1016
1223
  }
1017
- return (h, p) => (f(), m("label", R(T.value, {
1224
+ return (g, b) => (f(), m("label", R(T.value, {
1018
1225
  class: _.value,
1019
- style: x.value
1226
+ style: C.value
1020
1227
  }), [
1021
1228
  v("input", {
1022
1229
  class: "mu-radio__input",
1023
1230
  type: "radio",
1024
- checked: u.value,
1231
+ checked: i.value,
1025
1232
  disabled: d.value,
1026
- name: y.value,
1027
- value: k.value,
1028
- onChange: g,
1029
- onFocus: S,
1030
- onBlur: $
1031
- }, null, 40, ua),
1032
- 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", {
1033
1240
  class: "mu-radio__control",
1034
1241
  "aria-hidden": "true"
1035
1242
  }, [
1036
1243
  v("span", { class: "mu-radio__dot" })
1037
1244
  ], -1)),
1038
- v("span", ia, [
1039
- w(h.$slots, "default", {}, void 0, !0)
1245
+ v("span", Oa, [
1246
+ x(g.$slots, "default", {}, void 0, !0)
1040
1247
  ])
1041
1248
  ], 16));
1042
1249
  }
1043
- }), ss = /* @__PURE__ */ z(ra, [["__scopeId", "data-v-f1283749"]]), ca = /* @__PURE__ */ H({
1250
+ }), Hs = /* @__PURE__ */ I(Da, [["__scopeId", "data-v-f1283749"]]), Ra = /* @__PURE__ */ H({
1044
1251
  inheritAttrs: !1,
1045
1252
  __name: "RadioGroup",
1046
1253
  props: {
@@ -1052,46 +1259,46 @@ const ua = ["checked", "disabled", "name", "value"], ia = { class: "mu-radio__la
1052
1259
  },
1053
1260
  emits: ["update:modelValue", "change"],
1054
1261
  setup(e, { emit: t }) {
1055
- const a = e, s = t, c = D(), n = l(() => Te(a)), o = l(() => la(a)), i = N(n.value.defaultValue), r = l(
1056
- () => o.value ? n.value.modelValue : i.value
1057
- ), u = l(() => n.value.disabled), d = l(() => n.value.name), y = l(() => [oa(a), c.class]), k = l(() => {
1058
- const { class: x, style: b, ...g } = c;
1059
- return g;
1060
- }), _ = l(() => c.style);
1061
- function T(x, b) {
1062
- n.value.disabled || te(r.value, x) || (o.value || (i.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));
1063
1270
  }
1064
- return le($e, {
1065
- value: r,
1066
- disabled: u,
1271
+ return me(Ee, {
1272
+ value: c,
1273
+ disabled: i,
1067
1274
  name: d,
1068
1275
  select: T
1069
- }), (x, b) => (f(), m("div", R(k.value, {
1276
+ }), (C, p) => (f(), m("div", R(h.value, {
1070
1277
  role: "radiogroup",
1071
- class: y.value,
1278
+ class: k.value,
1072
1279
  style: _.value
1073
1280
  }), [
1074
- w(x.$slots, "default", {}, void 0, !0)
1281
+ x(C.$slots, "default", {}, void 0, !0)
1075
1282
  ], 16));
1076
1283
  }
1077
- }), ls = /* @__PURE__ */ z(ca, [["__scopeId", "data-v-3879fec4"]]), da = ["circle", "round", "line"], fa = ["small", "medium"];
1078
- 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) {
1079
1286
  return typeof t == "string" && e.includes(t);
1080
1287
  }
1081
- function va(e) {
1082
- return Me(da, e);
1288
+ function Za(e) {
1289
+ return Ue(Ea, e);
1083
1290
  }
1084
- function ma(e) {
1085
- return Me(fa, e);
1291
+ function Ua(e) {
1292
+ return Ue(Ga, e);
1086
1293
  }
1087
- function ae(e = {}) {
1294
+ function fe(e = {}) {
1088
1295
  return {
1089
1296
  modelValue: e.modelValue,
1090
1297
  defaultChecked: e.defaultChecked ?? !1,
1091
1298
  disabled: e.disabled ?? !1,
1092
1299
  loading: e.loading ?? !1,
1093
- type: va(e.type) ? e.type : "circle",
1094
- size: ma(e.size) ? e.size : "medium",
1300
+ type: Za(e.type) ? e.type : "circle",
1301
+ size: Ua(e.size) ? e.size : "medium",
1095
1302
  checkedValue: e.checkedValue ?? !0,
1096
1303
  uncheckedValue: e.uncheckedValue ?? !1,
1097
1304
  checkedColor: e.checkedColor,
@@ -1101,35 +1308,35 @@ function ae(e = {}) {
1101
1308
  uncheckedText: e.uncheckedText
1102
1309
  };
1103
1310
  }
1104
- function ha(e = {}) {
1311
+ function ja(e = {}) {
1105
1312
  return e.modelValue !== void 0;
1106
1313
  }
1107
- function Se(e, t) {
1314
+ function je(e, t) {
1108
1315
  return Object.is(e, t.checkedValue);
1109
1316
  }
1110
- function pa(e, t) {
1111
- return Se(e, t) ? t.uncheckedValue : t.checkedValue;
1317
+ function Fa(e, t) {
1318
+ return je(e, t) ? t.uncheckedValue : t.checkedValue;
1112
1319
  }
1113
- function ba(e) {
1320
+ function Ka(e) {
1114
1321
  return e.type !== "line" && e.size !== "small";
1115
1322
  }
1116
- function ga(e = {}, t = {}) {
1117
- const a = ae(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}`];
1118
1325
  return t.checked && s.push("is-checked"), a.disabled && s.push("is-disabled"), (a.loading || t.loading) && s.push("is-loading"), s;
1119
1326
  }
1120
- const ka = ["aria-checked", "disabled"], _a = {
1327
+ const Xa = ["aria-checked", "disabled"], Wa = {
1121
1328
  class: "mu-switch__thumb",
1122
1329
  "aria-hidden": "true"
1123
- }, Ca = {
1330
+ }, Ja = {
1124
1331
  key: 0,
1125
1332
  class: "mu-switch__loading-icon",
1126
1333
  viewBox: "0 0 16 16",
1127
1334
  fill: "none",
1128
1335
  xmlns: "http://www.w3.org/2000/svg"
1129
- }, ya = {
1336
+ }, Qa = {
1130
1337
  key: 0,
1131
1338
  class: "mu-switch__label"
1132
- }, wa = /* @__PURE__ */ H({
1339
+ }, Ya = /* @__PURE__ */ H({
1133
1340
  inheritAttrs: !1,
1134
1341
  __name: "Switch",
1135
1342
  props: {
@@ -1149,136 +1356,136 @@ const ka = ["aria-checked", "disabled"], _a = {
1149
1356
  },
1150
1357
  emits: ["update:modelValue", "change", "focus", "blur"],
1151
1358
  setup(e, { emit: t }) {
1152
- const a = e, s = t, c = D(), n = F(), o = N(!1), i = ae(a), r = N(
1153
- i.defaultChecked ? i.checkedValue : i.uncheckedValue
1154
- ), u = l(() => ae(a)), d = l(() => ha(a)), y = l(
1155
- () => d.value ? u.value.modelValue : r.value
1156
- ), k = l(() => Se(y.value, u.value)), _ = l(() => u.value.loading || o.value), T = l(() => ba(u.value)), x = l(() => T.value ? k.value ? !!(n.checked || u.value.checkedText) : !!(n.unchecked || u.value.uncheckedText) : !1), b = l(() => [
1157
- ga(a, {
1158
- checked: k.value,
1359
+ const a = e, s = t, r = E(), n = F(), o = S(!1), u = fe(a), c = S(
1360
+ u.defaultChecked ? u.checkedValue : u.uncheckedValue
1361
+ ), i = l(() => fe(a)), d = l(() => ja(a)), k = l(
1362
+ () => d.value ? i.value.modelValue : c.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,
1159
1366
  loading: o.value
1160
1367
  }),
1161
1368
  {
1162
- "has-label": x.value
1369
+ "has-label": C.value
1163
1370
  },
1164
- c.class
1165
- ]), g = l(() => {
1166
- const { class: C, style: L, type: V, ...P } = c;
1167
- return P;
1168
- }), S = l(() => {
1169
- const C = {};
1170
- return u.value.checkedColor && (C["--mu-switch-current-checked-bg"] = u.value.checkedColor, C["--mu-switch-current-checked-border"] = u.value.checkedColor, C["--mu-switch-current-checked-thumb"] = u.value.checkedColor, C["--mu-switch-current-checked-glow"] = `0 0 12px ${u.value.checkedColor}`), u.value.uncheckedColor && (C["--mu-switch-current-unchecked-bg"] = u.value.uncheckedColor), [C, c.style];
1371
+ r.class
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];
1171
1378
  });
1172
- function $() {
1379
+ function M() {
1173
1380
  }
1174
- function h(C) {
1175
- const L = u.value.beforeChange;
1176
- if (!L)
1381
+ function g(w) {
1382
+ const P = i.value.beforeChange;
1383
+ if (!P)
1177
1384
  return !0;
1178
1385
  try {
1179
- const V = L(C);
1180
- 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;
1181
1388
  } catch {
1182
1389
  return !1;
1183
1390
  }
1184
1391
  }
1185
- function p(C, L) {
1186
- d.value || (r.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);
1187
1394
  }
1188
- function B(C) {
1189
- if (u.value.disabled || _.value)
1395
+ function B(w) {
1396
+ if (i.value.disabled || _.value)
1190
1397
  return;
1191
- const L = pa(y.value, u.value), V = h(L);
1192
- if (V instanceof Promise) {
1193
- V.then((P) => {
1194
- 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);
1195
1402
  }).finally(() => {
1196
1403
  o.value = !1;
1197
1404
  });
1198
1405
  return;
1199
1406
  }
1200
- V && p(L, C);
1407
+ $ && b(P, w);
1201
1408
  }
1202
- function I(C) {
1203
- s("focus", C);
1409
+ function A(w) {
1410
+ s("focus", w);
1204
1411
  }
1205
- function Y(C) {
1206
- s("blur", C);
1412
+ function oe(w) {
1413
+ s("blur", w);
1207
1414
  }
1208
- return (C, L) => (f(), m("button", R(g.value, {
1415
+ return (w, P) => (f(), m("button", R(y.value, {
1209
1416
  type: "button",
1210
1417
  role: "switch",
1211
- class: b.value,
1212
- style: S.value,
1213
- "aria-checked": k.value ? "true" : "false",
1214
- disabled: u.value.disabled || _.value,
1418
+ class: p.value,
1419
+ style: L.value,
1420
+ "aria-checked": h.value ? "true" : "false",
1421
+ disabled: i.value.disabled || _.value,
1215
1422
  onClick: B,
1216
- onFocus: I,
1217
- onBlur: Y
1423
+ onFocus: A,
1424
+ onBlur: oe
1218
1425
  }), [
1219
- L[1] || (L[1] = v("span", {
1426
+ P[1] || (P[1] = v("span", {
1220
1427
  class: "mu-switch__line-track",
1221
1428
  "aria-hidden": "true"
1222
1429
  }, null, -1)),
1223
- v("span", _a, [
1224
- _.value ? (f(), m("svg", Ca, [...L[0] || (L[0] = [
1430
+ v("span", Wa, [
1431
+ _.value ? (f(), m("svg", Ja, [...P[0] || (P[0] = [
1225
1432
  v("path", {
1226
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",
1227
1434
  fill: "currentColor"
1228
1435
  }, null, -1)
1229
- ])])) : 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)
1230
1437
  ]),
1231
- x.value ? (f(), m("span", ya, [
1232
- k.value ? w(C.$slots, "checked", { key: 0 }, () => [
1233
- G(A(u.value.checkedText), 1)
1234
- ], !0) : w(C.$slots, "unchecked", { key: 1 }, () => [
1235
- G(A(u.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)
1236
1443
  ], !0)
1237
- ])) : M("", !0)
1238
- ], 16, ka));
1444
+ ])) : V("", !0)
1445
+ ], 16, Xa));
1239
1446
  }
1240
- }), ns = /* @__PURE__ */ z(wa, [["__scopeId", "data-v-8cfb8f2a"]]), Le = Symbol("MuTabs"), xa = ["line", "segment"], Va = ["small", "medium", "large"], $a = ["white", "ghost"], Ba = ["content", "equal"];
1241
- function Q(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) {
1242
1449
  return typeof t == "string" && e.includes(t);
1243
1450
  }
1244
- function Ta(e) {
1245
- return Q(xa, e);
1451
+ function ls(e) {
1452
+ return ne(es, e);
1246
1453
  }
1247
- function Ma(e) {
1248
- return Q(Va, e);
1454
+ function ns(e) {
1455
+ return ne(ts, e);
1249
1456
  }
1250
- function Sa(e) {
1251
- return Q($a, e);
1457
+ function os(e) {
1458
+ return ne(as, e);
1252
1459
  }
1253
- function La(e) {
1254
- return Q(Ba, e);
1460
+ function is(e) {
1461
+ return ne(ss, e);
1255
1462
  }
1256
- function Pe(e = {}) {
1257
- const t = e, a = Ta(t.variant) ? t.variant : "line";
1463
+ function Ke(e = {}) {
1464
+ const t = e, a = ls(t.variant) ? t.variant : "line";
1258
1465
  return {
1259
1466
  modelValue: e.modelValue,
1260
1467
  defaultValue: e.defaultValue,
1261
1468
  variant: a,
1262
- appearance: a === "segment" && Sa(t.appearance) ? t.appearance : a === "segment" ? "white" : void 0,
1263
- size: Ma(t.size) ? t.size : "medium",
1264
- layout: La(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",
1265
1472
  disabled: e.disabled ?? !1
1266
1473
  };
1267
1474
  }
1268
- function Pa(e) {
1475
+ function us(e) {
1269
1476
  return {
1270
1477
  value: e.value,
1271
1478
  disabled: e.disabled ?? !1
1272
1479
  };
1273
1480
  }
1274
- function Na(e = {}) {
1481
+ function rs(e = {}) {
1275
1482
  return e.modelValue !== void 0;
1276
1483
  }
1277
- function Ne(e, t) {
1484
+ function qe(e, t) {
1278
1485
  return Object.is(e, t);
1279
1486
  }
1280
- function Ha(e = {}) {
1281
- const t = Pe(e), a = [
1487
+ function cs(e = {}) {
1488
+ const t = Ke(e), a = [
1282
1489
  "mu-tabs",
1283
1490
  `mu-tabs--variant-${t.variant}`,
1284
1491
  `mu-tabs--size-${t.size}`,
@@ -1286,19 +1493,19 @@ function Ha(e = {}) {
1286
1493
  ];
1287
1494
  return t.variant === "segment" && a.push(`mu-tabs--appearance-${t.appearance}`), t.disabled && a.push("is-disabled"), a;
1288
1495
  }
1289
- function za(e, t = {}) {
1496
+ function ds(e, t = {}) {
1290
1497
  const a = ["mu-tab"];
1291
1498
  return t.active && a.push("is-active"), (t.disabled || e.disabled) && a.push("is-disabled"), a;
1292
1499
  }
1293
- const Ia = ["aria-selected", "disabled"], Oa = {
1500
+ const fs = ["aria-selected", "disabled"], vs = {
1294
1501
  key: 0,
1295
1502
  class: "mu-tab__prefix",
1296
1503
  "aria-hidden": "true"
1297
- }, Aa = { class: "mu-tab__content" }, Ra = {
1504
+ }, ms = { class: "mu-tab__content" }, hs = {
1298
1505
  key: 1,
1299
1506
  class: "mu-tab__suffix",
1300
1507
  "aria-hidden": "true"
1301
- }, Da = /* @__PURE__ */ H({
1508
+ }, gs = /* @__PURE__ */ H({
1302
1509
  inheritAttrs: !1,
1303
1510
  __name: "Tab",
1304
1511
  props: {
@@ -1307,63 +1514,63 @@ const Ia = ["aria-selected", "disabled"], Oa = {
1307
1514
  },
1308
1515
  emits: ["click"],
1309
1516
  setup(e, { emit: t }) {
1310
- const a = e, s = t, c = D(), n = F(), o = se(Le, null), i = N(null), r = l(() => Pa(a)), u = l(
1311
- () => o ? Ne(o.value.value, r.value.value) : !1
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
1312
1519
  ), d = l(
1313
- () => r.value.disabled || !!(o != null && o.disabled.value)
1314
- ), y = l(() => [
1315
- za(a, {
1316
- active: u.value,
1520
+ () => c.value.disabled || !!(o != null && o.disabled.value)
1521
+ ), k = l(() => [
1522
+ ds(a, {
1523
+ active: i.value,
1317
1524
  disabled: d.value
1318
1525
  }),
1319
- c.class
1320
- ]), k = l(() => {
1321
- const { class: b, style: g, ...S } = c;
1322
- return S;
1323
- }), _ = l(() => c.style);
1526
+ r.class
1527
+ ]), h = l(() => {
1528
+ const { class: p, style: y, ...L } = r;
1529
+ return L;
1530
+ }), _ = l(() => r.style);
1324
1531
  function T() {
1325
- !o || !i.value || o.registerItem(r.value.value, i.value);
1532
+ !o || !u.value || o.registerItem(c.value.value, u.value);
1326
1533
  }
1327
- function x(b) {
1534
+ function C(p) {
1328
1535
  if (d.value) {
1329
- b.preventDefault(), b.stopPropagation();
1536
+ p.preventDefault(), p.stopPropagation();
1330
1537
  return;
1331
1538
  }
1332
- o && o.select(r.value.value, b), s("click", b);
1539
+ o && o.select(c.value.value, p), s("click", p);
1333
1540
  }
1334
- return ne(() => {
1541
+ return ge(() => {
1335
1542
  T();
1336
- }), oe(() => {
1337
- o == null || o.unregisterItem(r.value.value);
1338
- }), ue(
1339
- () => r.value.value,
1340
- (b, g) => {
1341
- !o || !i.value || (o.unregisterItem(g), o.registerItem(b, i.value));
1543
+ }), se(() => {
1544
+ o == null || o.unregisterItem(c.value.value);
1545
+ }), ae(
1546
+ () => c.value.value,
1547
+ (p, y) => {
1548
+ !o || !u.value || (o.unregisterItem(y), o.registerItem(p, u.value));
1342
1549
  }
1343
- ), (b, g) => (f(), m("button", R({
1550
+ ), (p, y) => (f(), m("button", R({
1344
1551
  ref_key: "buttonRef",
1345
- ref: i
1346
- }, k.value, {
1552
+ ref: u
1553
+ }, h.value, {
1347
1554
  type: "button",
1348
1555
  role: "tab",
1349
- class: y.value,
1556
+ class: k.value,
1350
1557
  style: _.value,
1351
- "aria-selected": u.value ? "true" : "false",
1558
+ "aria-selected": i.value ? "true" : "false",
1352
1559
  disabled: d.value,
1353
- onClick: x
1560
+ onClick: C
1354
1561
  }), [
1355
- O(n).prefix ? (f(), m("span", Oa, [
1356
- w(b.$slots, "prefix", {}, void 0, !0)
1357
- ])) : M("", !0),
1358
- v("span", Aa, [
1359
- 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)
1360
1567
  ]),
1361
- O(n).suffix ? (f(), m("span", Ra, [
1362
- w(b.$slots, "suffix", {}, void 0, !0)
1363
- ])) : M("", !0)
1364
- ], 16, Ia));
1568
+ D(n).suffix ? (f(), m("span", hs, [
1569
+ x(p.$slots, "suffix", {}, void 0, !0)
1570
+ ])) : V("", !0)
1571
+ ], 16, fs));
1365
1572
  }
1366
- }), os = /* @__PURE__ */ z(Da, [["__scopeId", "data-v-eeb068b0"]]), Ga = /* @__PURE__ */ H({
1573
+ }), As = /* @__PURE__ */ I(gs, [["__scopeId", "data-v-eeb068b0"]]), ps = /* @__PURE__ */ H({
1367
1574
  inheritAttrs: !1,
1368
1575
  __name: "Tabs",
1369
1576
  props: {
@@ -1377,109 +1584,109 @@ const Ia = ["aria-selected", "disabled"], Oa = {
1377
1584
  },
1378
1585
  emits: ["update:modelValue", "change"],
1379
1586
  setup(e, { emit: t }) {
1380
- const a = e, s = t, c = D(), n = N(null), o = l(() => Pe(a)), i = l(() => Na(a)), r = N(o.value.defaultValue), u = l(
1381
- () => i.value ? o.value.modelValue : r.value
1382
- ), d = l(() => o.value.variant), y = l(() => o.value.appearance), k = l(() => o.value.size), _ = l(() => o.value.layout), T = l(() => o.value.disabled), x = N(!1), b = N(0), g = /* @__PURE__ */ new Map(), S = 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(
1588
+ () => u.value ? o.value.modelValue : c.value
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({
1383
1590
  transform: "translateX(0px)",
1384
1591
  width: "0px"
1385
- }), $ = l(() => [Ha(a), c.class]), h = l(() => {
1386
- const { class: V, style: P, ...ee } = c;
1387
- return ee;
1388
- }), p = l(() => c.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);
1389
1596
  function B() {
1390
- const V = n.value, P = u.value !== void 0 ? g.get(u.value) : void 0;
1391
- if (!V || !P) {
1392
- S.value = {
1597
+ const $ = n.value, N = i.value !== void 0 ? y.get(i.value) : void 0;
1598
+ if (!$ || !N) {
1599
+ L.value = {
1393
1600
  transform: "translateX(0px)",
1394
1601
  width: "0px"
1395
1602
  };
1396
1603
  return;
1397
1604
  }
1398
- const ee = V.getBoundingClientRect(), ve = P.getBoundingClientRect();
1399
- S.value = {
1400
- transform: `translateX(${ve.left - ee.left}px)`,
1401
- 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`
1402
1609
  };
1403
1610
  }
1404
- function I() {
1611
+ function A() {
1405
1612
  j(() => {
1406
1613
  B();
1407
1614
  });
1408
1615
  }
1409
- function Y(V, P) {
1410
- T.value || Ne(u.value, V) || (i.value || (r.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));
1411
1618
  }
1412
- function C(V, P) {
1413
- g.set(V, P), b.value += 1, I();
1619
+ function w($, N) {
1620
+ y.set($, N), p.value += 1, A();
1414
1621
  }
1415
- function L(V) {
1416
- g.delete(V), b.value += 1, I();
1622
+ function P($) {
1623
+ y.delete($), p.value += 1, A();
1417
1624
  }
1418
- return le(Le, {
1419
- value: u,
1625
+ return me(Fe, {
1626
+ value: i,
1420
1627
  variant: d,
1421
- appearance: y,
1422
- size: k,
1628
+ appearance: k,
1629
+ size: h,
1423
1630
  layout: _,
1424
1631
  disabled: T,
1425
- select: Y,
1426
- registerItem: C,
1427
- unregisterItem: L
1428
- }), ue(
1429
- [u, d, k, _, b],
1632
+ select: oe,
1633
+ registerItem: w,
1634
+ unregisterItem: P
1635
+ }), ae(
1636
+ [i, d, h, _, p],
1430
1637
  () => {
1431
- I();
1638
+ A();
1432
1639
  },
1433
1640
  { flush: "post" }
1434
- ), ne(() => {
1641
+ ), ge(() => {
1435
1642
  globalThis.window.addEventListener("resize", B), j(() => {
1436
- B(), x.value = !0;
1643
+ B(), C.value = !0;
1437
1644
  });
1438
- }), oe(() => {
1645
+ }), se(() => {
1439
1646
  globalThis.window.removeEventListener("resize", B);
1440
- }), (V, P) => (f(), m("div", R({
1647
+ }), ($, N) => (f(), m("div", R({
1441
1648
  ref_key: "rootRef",
1442
1649
  ref: n
1443
- }, h.value, {
1650
+ }, g.value, {
1444
1651
  role: "tablist",
1445
- class: [$.value, { "is-ready": x.value }],
1446
- style: p.value
1652
+ class: [M.value, { "is-ready": C.value }],
1653
+ style: b.value
1447
1654
  }), [
1448
- w(V.$slots, "default", {}, void 0, !0),
1655
+ x($.$slots, "default", {}, void 0, !0),
1449
1656
  v("span", {
1450
1657
  class: "mu-tabs__indicator",
1451
- style: he(S.value),
1658
+ style: W(L.value),
1452
1659
  "aria-hidden": "true"
1453
1660
  }, null, 4)
1454
1661
  ], 16));
1455
1662
  }
1456
- }), us = /* @__PURE__ */ z(Ga, [["__scopeId", "data-v-28e8c4f7"]]), Ea = ["outline", "solid", "soft"];
1457
- function ja(e, t) {
1663
+ }), Os = /* @__PURE__ */ I(ps, [["__scopeId", "data-v-28e8c4f7"]]), bs = ["outline", "solid", "soft"];
1664
+ function _s(e, t) {
1458
1665
  return typeof t == "string" && e.includes(t);
1459
1666
  }
1460
- function Ua(e) {
1461
- return ja(Ea, e);
1667
+ function ks(e) {
1668
+ return _s(bs, e);
1462
1669
  }
1463
- function He(e = {}) {
1670
+ function Xe(e = {}) {
1464
1671
  return {
1465
- variant: Ua(e.variant) ? e.variant : "outline",
1672
+ variant: ks(e.variant) ? e.variant : "outline",
1466
1673
  selected: e.selected ?? !1,
1467
1674
  disabled: e.disabled ?? !1
1468
1675
  };
1469
1676
  }
1470
- function Za(e = {}) {
1471
- 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}`];
1472
1679
  return t.selected && a.push("is-selected"), t.disabled && a.push("is-disabled"), a;
1473
1680
  }
1474
- const Fa = ["disabled", "aria-pressed"], qa = {
1681
+ const Cs = ["disabled", "aria-pressed"], ws = {
1475
1682
  key: 0,
1476
1683
  class: "mu-tag__prefix",
1477
1684
  "aria-hidden": "true"
1478
- }, Ka = { class: "mu-tag__content" }, Xa = {
1685
+ }, xs = { class: "mu-tag__content" }, Vs = {
1479
1686
  key: 1,
1480
1687
  class: "mu-tag__suffix",
1481
1688
  "aria-hidden": "true"
1482
- }, Wa = /* @__PURE__ */ H({
1689
+ }, $s = /* @__PURE__ */ H({
1483
1690
  __name: "Tag",
1484
1691
  props: {
1485
1692
  variant: {},
@@ -1488,43 +1695,45 @@ const Fa = ["disabled", "aria-pressed"], qa = {
1488
1695
  },
1489
1696
  emits: ["update:selected", "click"],
1490
1697
  setup(e, { emit: t }) {
1491
- const a = e, s = t, c = F(), n = l(() => He(a)), o = l(() => Za(a));
1492
- function i(r) {
1493
- n.value.disabled || (s("click", r), s("update:selected", !n.value.selected));
1698
+ const a = e, s = t, r = F(), n = l(() => Xe(a)), o = l(() => ys(a));
1699
+ function u(c) {
1700
+ n.value.disabled || (s("click", c), s("update:selected", !n.value.selected));
1494
1701
  }
1495
- return (r, u) => (f(), m("button", {
1702
+ return (c, i) => (f(), m("button", {
1496
1703
  type: "button",
1497
- class: J(o.value),
1704
+ class: O(o.value),
1498
1705
  disabled: n.value.disabled,
1499
1706
  "aria-pressed": n.value.selected,
1500
- onClick: i
1707
+ onClick: u
1501
1708
  }, [
1502
- O(c).prefix ? (f(), m("span", qa, [
1503
- w(r.$slots, "prefix", {}, void 0, !0)
1504
- ])) : M("", !0),
1505
- v("span", Ka, [
1506
- w(r.$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)
1507
1714
  ]),
1508
- O(c).suffix ? (f(), m("span", Xa, [
1509
- w(r.$slots, "suffix", {}, void 0, !0)
1510
- ])) : M("", !0)
1511
- ], 10, Fa));
1715
+ D(r).suffix ? (f(), m("span", Vs, [
1716
+ x(c.$slots, "suffix", {}, void 0, !0)
1717
+ ])) : V("", !0)
1718
+ ], 10, Cs));
1512
1719
  }
1513
- }), is = /* @__PURE__ */ z(Wa, [["__scopeId", "data-v-e3e9ee4d"]]);
1720
+ }), Ds = /* @__PURE__ */ I($s, [["__scopeId", "data-v-e3e9ee4d"]]);
1514
1721
  export {
1515
- ts as MessageList,
1516
- Qa as MuBadge,
1517
- me as MuButton,
1518
- yt as MuCheckbox,
1519
- Ya as MuCheckboxGroup,
1520
- Qt as MuModal,
1521
- ss as MuRadio,
1522
- ls as MuRadioGroup,
1523
- ns as MuSwitch,
1524
- os as MuTab,
1525
- us as MuTabs,
1526
- is as MuTag,
1527
- es as message,
1528
- as as muModal,
1529
- K 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
1530
1739
  };