@mc-markets/ui 1.0.84 → 1.0.86

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.
package/dist/index.mjs CHANGED
@@ -1,43 +1,43 @@
1
- var pe = Object.defineProperty, fe = Object.defineProperties;
2
- var _e = Object.getOwnPropertyDescriptors;
3
- var F = Object.getOwnPropertySymbols;
4
- var X = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
5
- var Q = (e, s, n) => s in e ? pe(e, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[s] = n, k = (e, s) => {
6
- for (var n in s || (s = {}))
7
- X.call(s, n) && Q(e, n, s[n]);
8
- if (F)
9
- for (var n of F(s))
10
- Y.call(s, n) && Q(e, n, s[n]);
1
+ var ge = Object.defineProperty, ve = Object.defineProperties;
2
+ var he = Object.getOwnPropertyDescriptors;
3
+ var D = Object.getOwnPropertySymbols;
4
+ var te = Object.prototype.hasOwnProperty, se = Object.prototype.propertyIsEnumerable;
5
+ var ee = (e, t, n) => t in e ? ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, I = (e, t) => {
6
+ for (var n in t || (t = {}))
7
+ te.call(t, n) && ee(e, n, t[n]);
8
+ if (D)
9
+ for (var n of D(t))
10
+ se.call(t, n) && ee(e, n, t[n]);
11
11
  return e;
12
- }, E = (e, s) => fe(e, _e(s));
13
- var D = (e, s) => {
12
+ }, x = (e, t) => ve(e, he(t));
13
+ var G = (e, t) => {
14
14
  var n = {};
15
- for (var t in e)
16
- X.call(e, t) && s.indexOf(t) < 0 && (n[t] = e[t]);
17
- if (e != null && F)
18
- for (var t of F(e))
19
- s.indexOf(t) < 0 && Y.call(e, t) && (n[t] = e[t]);
15
+ for (var s in e)
16
+ te.call(e, s) && t.indexOf(s) < 0 && (n[s] = e[s]);
17
+ if (e != null && D)
18
+ for (var s of D(e))
19
+ t.indexOf(s) < 0 && se.call(e, s) && (n[s] = e[s]);
20
20
  return n;
21
21
  };
22
- var W = (e, s, n) => new Promise((t, o) => {
23
- var a = (d) => {
22
+ var Z = (e, t, n) => new Promise((s, o) => {
23
+ var a = (u) => {
24
24
  try {
25
- l(n.next(d));
26
- } catch (f) {
27
- o(f);
25
+ c(n.next(u));
26
+ } catch (p) {
27
+ o(p);
28
28
  }
29
- }, r = (d) => {
29
+ }, r = (u) => {
30
30
  try {
31
- l(n.throw(d));
32
- } catch (f) {
33
- o(f);
31
+ c(n.throw(u));
32
+ } catch (p) {
33
+ o(p);
34
34
  }
35
- }, l = (d) => d.done ? t(d.value) : Promise.resolve(d.value).then(a, r);
36
- l((n = n.apply(e, s)).next());
35
+ }, c = (u) => u.done ? s(u.value) : Promise.resolve(u.value).then(a, r);
36
+ c((n = n.apply(e, t)).next());
37
37
  });
38
- import * as ee from "element-plus";
39
- import { computed as $, createElementBlock as u, openBlock as i, mergeProps as h, renderSlot as m, createBlock as g, createSlots as v, renderList as _, withCtx as p, ref as O, useAttrs as V, unref as I, normalizeProps as U, guardReactiveProps as q, createCommentVNode as T, createElementVNode as y, Fragment as L, normalizeClass as S, mergeModels as K, useModel as ge, createVNode as j, Teleport as te, TransitionGroup as se, resolveDynamicComponent as ne, toDisplayString as x, useSlots as be, watch as N, normalizeStyle as oe, createTextVNode as ae, provide as re, onMounted as le, nextTick as ve, withDirectives as he, vShow as ye, inject as ie, onUnmounted as $e } from "vue";
40
- import { ElButton as Me, ElInput as Ce, ElForm as ke, ElFormItem as Te, ElTooltip as Se, ElSelect as Ie, ElOption as we, ElOptionGroup as Be, ElPagination as Oe, ElRadio as Ee, ElRadioGroup as xe, ElRadioButton as Pe, ElSwitch as Ae, ElTag as je, ElAlert as Ne, ElDialog as Ve, ElNotification as Le, ElDatePicker as Re, ElEmpty as ze, ElTable as Fe, ElTableColumn as De } from "element-plus/es";
38
+ import * as ce from "element-plus";
39
+ import { computed as h, createElementBlock as i, openBlock as l, mergeProps as y, renderSlot as d, createBlock as _, createSlots as v, renderList as b, withCtx as f, ref as w, useAttrs as V, unref as O, normalizeProps as U, guardReactiveProps as q, createCommentVNode as C, createElementVNode as $, Fragment as L, normalizeClass as S, mergeModels as ne, useModel as ye, createVNode as j, Teleport as le, TransitionGroup as ie, resolveDynamicComponent as K, toDisplayString as B, useSlots as $e, watch as A, normalizeStyle as ue, createTextVNode as de, provide as Q, onMounted as X, nextTick as Me, withDirectives as Ce, vShow as ke, inject as H, onUnmounted as me } from "vue";
40
+ import { ElButton as Ie, ElInput as Se, ElForm as Te, ElFormItem as we, ElTooltip as Oe, ElSelect as Ee, ElOption as Be, ElOptionGroup as xe, ElPagination as Ne, ElRadio as Pe, ElRadioGroup as je, ElRadioButton as Ae, ElSwitch as Ve, ElTag as Le, ElAlert as Re, ElDialog as ze, ElNotification as De, ElDatePicker as Ge, ElEmpty as Fe, ElTable as Ue, ElTableColumn as qe } from "element-plus/es";
41
41
  import "element-plus/es/components/base/style/index";
42
42
  import "element-plus/es/components/button/style/index";
43
43
  import "element-plus/es/components/input/style/index";
@@ -60,12 +60,12 @@ import "element-plus/es/components/date-picker/style/index";
60
60
  import "element-plus/es/components/empty/style/index";
61
61
  import "element-plus/es/components/table/style/index";
62
62
  import "element-plus/es/components/table-column/style/index";
63
- const w = (e, s) => {
63
+ const T = (e, t) => {
64
64
  const n = e.__vccOpts || e;
65
- for (const [t, o] of s)
66
- n[t] = o;
65
+ for (const [s, o] of t)
66
+ n[s] = o;
67
67
  return n;
68
- }, Ge = /* @__PURE__ */ Object.assign({
68
+ }, He = /* @__PURE__ */ Object.assign({
69
69
  name: "MIcon"
70
70
  }, {
71
71
  __name: "Icon",
@@ -104,132 +104,132 @@ const w = (e, s) => {
104
104
  }
105
105
  },
106
106
  emits: ["click"],
107
- setup(e, { emit: s }) {
108
- const n = e, t = s, o = $(() => {
109
- const l = ["iconfont"];
110
- return n.name && l.push(`${n.prefix}-${n.name}`), n.spin && l.push("icon-spin"), n.pulse && l.push("icon-pulse"), n.flip && l.push(`icon-flip-${n.flip}`), l;
111
- }), a = $(() => {
112
- const l = {};
113
- return n.size && (typeof n.size == "number" ? l.fontSize = `${n.size}px` : l.fontSize = n.size), n.color && (l.color = n.color), n.rotate !== 0 && (l.transform = `rotate(${n.rotate}deg)`), l;
114
- }), r = (l) => {
115
- t("click", l);
107
+ setup(e, { emit: t }) {
108
+ const n = e, s = t, o = h(() => {
109
+ const c = ["iconfont"];
110
+ return n.name && c.push(`${n.prefix}-${n.name}`), n.spin && c.push("icon-spin"), n.pulse && c.push("icon-pulse"), n.flip && c.push(`icon-flip-${n.flip}`), c;
111
+ }), a = h(() => {
112
+ const c = {};
113
+ return n.size && (typeof n.size == "number" ? c.fontSize = `${n.size}px` : c.fontSize = n.size), n.color && (c.color = n.color), n.rotate !== 0 && (c.transform = `rotate(${n.rotate}deg)`), c;
114
+ }), r = (c) => {
115
+ s("click", c);
116
116
  };
117
- return (l, d) => (i(), u("i", h({
117
+ return (c, u) => (l(), i("i", y({
118
118
  class: o.value,
119
119
  style: a.value
120
- }, l.$attrs, { onClick: r }), [
121
- m(l.$slots, "default", {}, void 0, !0)
120
+ }, c.$attrs, { onClick: r }), [
121
+ d(c.$slots, "default", {}, void 0, !0)
122
122
  ], 16));
123
123
  }
124
- }), Z = /* @__PURE__ */ w(Ge, [["__scopeId", "data-v-90f84c9e"]]), Ue = /* @__PURE__ */ Object.assign({
124
+ }), J = /* @__PURE__ */ T(He, [["__scopeId", "data-v-90f84c9e"]]), We = /* @__PURE__ */ Object.assign({
125
125
  name: "MButton"
126
126
  }, {
127
127
  __name: "Button",
128
128
  setup(e) {
129
- return (s, n) => {
130
- const t = Me;
131
- return i(), g(t, h(s.$attrs, { class: "m-button" }), v({ _: 2 }, [
132
- _(s.$slots, (o, a) => ({
129
+ return (t, n) => {
130
+ const s = Ie;
131
+ return l(), _(s, y(t.$attrs, { class: "m-button" }), v({ _: 2 }, [
132
+ b(t.$slots, (o, a) => ({
133
133
  name: a,
134
- fn: p(() => [
135
- m(s.$slots, a, {}, void 0, !0)
134
+ fn: f(() => [
135
+ d(t.$slots, a, {}, void 0, !0)
136
136
  ])
137
137
  }))
138
138
  ]), 1040);
139
139
  };
140
140
  }
141
- }), qe = /* @__PURE__ */ w(Ue, [["__scopeId", "data-v-9c99add1"]]), He = /* @__PURE__ */ Object.assign({
141
+ }), Ze = /* @__PURE__ */ T(We, [["__scopeId", "data-v-9c99add1"]]), Je = /* @__PURE__ */ Object.assign({
142
142
  name: "MInput"
143
143
  }, {
144
144
  __name: "Input",
145
145
  setup(e) {
146
- return (s, n) => {
147
- const t = Ce;
148
- return i(), g(t, h(s.$attrs, {
149
- class: ["m-input", { solid: s.$attrs.styleType === "solid" }]
146
+ return (t, n) => {
147
+ const s = Se;
148
+ return l(), _(s, y(t.$attrs, {
149
+ class: ["m-input", { solid: t.$attrs.styleType === "solid" }]
150
150
  }), v({ _: 2 }, [
151
- _(s.$slots, (o, a) => ({
151
+ b(t.$slots, (o, a) => ({
152
152
  name: a,
153
- fn: p(() => [
154
- m(s.$slots, a)
153
+ fn: f(() => [
154
+ d(t.$slots, a)
155
155
  ])
156
156
  }))
157
157
  ]), 1040, ["class"]);
158
158
  };
159
159
  }
160
- }), We = /* @__PURE__ */ Object.assign({
160
+ }), Ke = /* @__PURE__ */ Object.assign({
161
161
  name: "MForm"
162
162
  }, {
163
163
  __name: "Form",
164
- setup(e, { expose: s }) {
165
- const n = O();
166
- return V(), s({
167
- validate: (t) => {
164
+ setup(e, { expose: t }) {
165
+ const n = w();
166
+ return V(), t({
167
+ validate: (s) => {
168
168
  var o;
169
- return (o = n.value) == null ? void 0 : o.validate(t);
169
+ return (o = n.value) == null ? void 0 : o.validate(s);
170
170
  },
171
- validateField: (t, o) => {
171
+ validateField: (s, o) => {
172
172
  var a;
173
- return (a = n.value) == null ? void 0 : a.validateField(t, o);
173
+ return (a = n.value) == null ? void 0 : a.validateField(s, o);
174
174
  },
175
175
  resetFields: () => {
176
- var t;
177
- return (t = n.value) == null ? void 0 : t.resetFields();
176
+ var s;
177
+ return (s = n.value) == null ? void 0 : s.resetFields();
178
178
  },
179
- scrollToField: (t) => {
179
+ scrollToField: (s) => {
180
180
  var o;
181
- return (o = n.value) == null ? void 0 : o.scrollToField(t);
181
+ return (o = n.value) == null ? void 0 : o.scrollToField(s);
182
182
  },
183
- clearValidate: (t) => {
183
+ clearValidate: (s) => {
184
184
  var o;
185
- return (o = n.value) == null ? void 0 : o.clearValidate(t);
185
+ return (o = n.value) == null ? void 0 : o.clearValidate(s);
186
186
  }
187
- }), (t, o) => {
188
- const a = ke;
189
- return i(), g(a, h({
187
+ }), (s, o) => {
188
+ const a = Te;
189
+ return l(), _(a, y({
190
190
  ref_key: "formRef",
191
191
  ref: n
192
- }, t.$attrs, { class: "m-form" }), v({ _: 2 }, [
193
- _(t.$slots, (r, l) => ({
194
- name: l,
195
- fn: p(() => [
196
- m(t.$slots, l)
192
+ }, s.$attrs, { class: "m-form" }), v({ _: 2 }, [
193
+ b(s.$slots, (r, c) => ({
194
+ name: c,
195
+ fn: f(() => [
196
+ d(s.$slots, c)
197
197
  ])
198
198
  }))
199
199
  ]), 1040);
200
200
  };
201
201
  }
202
- }), Ze = /* @__PURE__ */ Object.assign({
202
+ }), Qe = /* @__PURE__ */ Object.assign({
203
203
  name: "MFormItem"
204
204
  }, {
205
205
  __name: "FormItem",
206
206
  setup(e) {
207
- return (s, n) => {
208
- const t = Te;
209
- return i(), g(t, h(s.$attrs, { class: "m-form-item" }), v({ _: 2 }, [
210
- _(s.$slots, (o, a) => ({
207
+ return (t, n) => {
208
+ const s = we;
209
+ return l(), _(s, y(t.$attrs, { class: "m-form-item" }), v({ _: 2 }, [
210
+ b(t.$slots, (o, a) => ({
211
211
  name: a,
212
- fn: p(() => [
213
- m(s.$slots, a)
212
+ fn: f(() => [
213
+ d(t.$slots, a)
214
214
  ])
215
215
  }))
216
216
  ]), 1040);
217
217
  };
218
218
  }
219
- }), Je = (...e) => e.filter(Boolean).join(" "), Qe = (e, ...s) => {
220
- const n = k({}, e);
221
- return s.forEach((t) => {
222
- delete n[t];
219
+ }), Xe = (...e) => e.filter(Boolean).join(" "), Ye = (e, ...t) => {
220
+ const n = I({}, e);
221
+ return t.forEach((s) => {
222
+ delete n[s];
223
223
  }), n;
224
224
  };
225
- function A(e, s = "popperClass") {
226
- const n = V(), t = $(() => Qe(n, s)), o = $(() => Je(e, n[s]));
225
+ function P(e, t = "popperClass") {
226
+ const n = V(), s = h(() => Ye(n, t)), o = h(() => Xe(e, n[t]));
227
227
  return {
228
- mergedAttrs: t,
228
+ mergedAttrs: s,
229
229
  className: o
230
230
  };
231
231
  }
232
- const Xe = /* @__PURE__ */ Object.assign({
232
+ const et = /* @__PURE__ */ Object.assign({
233
233
  name: "MTooltip"
234
234
  }, {
235
235
  __name: "Tooltip",
@@ -240,91 +240,91 @@ const Xe = /* @__PURE__ */ Object.assign({
240
240
  }
241
241
  },
242
242
  setup(e) {
243
- const { mergedAttrs: s, className: n } = A("mc-tooltip-popper");
244
- return (t, o) => {
245
- const a = Se;
246
- return i(), g(a, h(I(s), { "popper-class": I(n) }), v({ _: 2 }, [
247
- _(t.$slots, (r, l) => ({
248
- name: l,
249
- fn: p(() => [
250
- m(t.$slots, l)
243
+ const { mergedAttrs: t, className: n } = P("mc-tooltip-popper");
244
+ return (s, o) => {
245
+ const a = Oe;
246
+ return l(), _(a, y(O(t), { "popper-class": O(n) }), v({ _: 2 }, [
247
+ b(s.$slots, (r, c) => ({
248
+ name: c,
249
+ fn: f(() => [
250
+ d(s.$slots, c)
251
251
  ])
252
252
  }))
253
253
  ]), 1040, ["popper-class"]);
254
254
  };
255
255
  }
256
- }), Ye = /* @__PURE__ */ Object.assign({
256
+ }), tt = /* @__PURE__ */ Object.assign({
257
257
  name: "MSelect"
258
258
  }, {
259
259
  __name: "Select",
260
260
  setup(e) {
261
- return (s, n) => {
262
- const t = Ie;
263
- return i(), g(t, h({
264
- class: ["m-select", { solid: s.$attrs.styleType === "solid" }],
261
+ return (t, n) => {
262
+ const s = Ee;
263
+ return l(), _(s, y({
264
+ class: ["m-select", { solid: t.$attrs.styleType === "solid" }],
265
265
  "show-arrow": !1
266
- }, s.$attrs), v({ _: 2 }, [
267
- _(s.$slots, (o, a) => ({
266
+ }, t.$attrs), v({ _: 2 }, [
267
+ b(t.$slots, (o, a) => ({
268
268
  name: a,
269
- fn: p(() => [
270
- m(s.$slots, a)
269
+ fn: f(() => [
270
+ d(t.$slots, a)
271
271
  ])
272
272
  }))
273
273
  ]), 1040, ["class"]);
274
274
  };
275
275
  }
276
- }), Ke = /* @__PURE__ */ Object.assign({
276
+ }), st = /* @__PURE__ */ Object.assign({
277
277
  name: "MOption"
278
278
  }, {
279
279
  __name: "Option",
280
280
  setup(e) {
281
- return (s, n) => {
282
- const t = we;
283
- return i(), g(t, U(q(s.$attrs)), v({ _: 2 }, [
284
- _(s.$slots, (o, a) => ({
281
+ return (t, n) => {
282
+ const s = Be;
283
+ return l(), _(s, U(q(t.$attrs)), v({ _: 2 }, [
284
+ b(t.$slots, (o, a) => ({
285
285
  name: a,
286
- fn: p(() => [
287
- m(s.$slots, a)
286
+ fn: f(() => [
287
+ d(t.$slots, a)
288
288
  ])
289
289
  }))
290
290
  ]), 1040);
291
291
  };
292
292
  }
293
- }), et = /* @__PURE__ */ Object.assign({
293
+ }), nt = /* @__PURE__ */ Object.assign({
294
294
  name: "MOptionGroup"
295
295
  }, {
296
296
  __name: "OptionGroup",
297
297
  setup(e) {
298
- return (s, n) => {
299
- const t = Be;
300
- return i(), g(t, U(q(s.$attrs)), v({ _: 2 }, [
301
- _(s.$slots, (o, a) => ({
298
+ return (t, n) => {
299
+ const s = xe;
300
+ return l(), _(s, U(q(t.$attrs)), v({ _: 2 }, [
301
+ b(t.$slots, (o, a) => ({
302
302
  name: a,
303
- fn: p(() => [
304
- m(s.$slots, a)
303
+ fn: f(() => [
304
+ d(t.$slots, a)
305
305
  ])
306
306
  }))
307
307
  ]), 1040);
308
308
  };
309
309
  }
310
- }), tt = /* @__PURE__ */ Object.assign({
310
+ }), ot = /* @__PURE__ */ Object.assign({
311
311
  name: "MPagination"
312
312
  }, {
313
313
  __name: "Pagination",
314
314
  setup(e) {
315
- return (s, n) => {
316
- const t = Oe;
317
- return i(), g(t, h(s.$attrs, { class: "m-pagination" }), v({ _: 2 }, [
318
- _(s.$slots, (o, a) => ({
315
+ return (t, n) => {
316
+ const s = Ne;
317
+ return l(), _(s, y(t.$attrs, { class: "m-pagination" }), v({ _: 2 }, [
318
+ b(t.$slots, (o, a) => ({
319
319
  name: a,
320
- fn: p(() => [
321
- m(s.$slots, a)
320
+ fn: f(() => [
321
+ d(t.$slots, a)
322
322
  ])
323
323
  }))
324
324
  ]), 1040);
325
325
  };
326
326
  }
327
- }), st = /* @__PURE__ */ Object.assign({
327
+ }), at = /* @__PURE__ */ Object.assign({
328
328
  name: "MRadio"
329
329
  }, {
330
330
  __name: "Radio",
@@ -335,20 +335,20 @@ const Xe = /* @__PURE__ */ Object.assign({
335
335
  }
336
336
  },
337
337
  setup(e) {
338
- const { mergedAttrs: s } = A("mc-radio-popper");
339
- return (n, t) => {
340
- const o = Ee;
341
- return i(), g(o, h(I(s), { class: "m-radio" }), v({ _: 2 }, [
342
- _(n.$slots, (a, r) => ({
338
+ const { mergedAttrs: t } = P("mc-radio-popper");
339
+ return (n, s) => {
340
+ const o = Pe;
341
+ return l(), _(o, y(O(t), { class: "m-radio" }), v({ _: 2 }, [
342
+ b(n.$slots, (a, r) => ({
343
343
  name: r,
344
- fn: p(() => [
345
- m(n.$slots, r)
344
+ fn: f(() => [
345
+ d(n.$slots, r)
346
346
  ])
347
347
  }))
348
348
  ]), 1040);
349
349
  };
350
350
  }
351
- }), nt = /* @__PURE__ */ Object.assign({
351
+ }), rt = /* @__PURE__ */ Object.assign({
352
352
  name: "MRadioGroup"
353
353
  }, {
354
354
  __name: "RadioGroup",
@@ -359,29 +359,29 @@ const Xe = /* @__PURE__ */ Object.assign({
359
359
  }
360
360
  },
361
361
  setup(e) {
362
- const s = V(), n = $(() => {
362
+ const t = V(), n = h(() => {
363
363
  const o = "mc-radio-group-popper";
364
- return s.popperClass ? `${o} ${s.popperClass}`.trim() : o;
365
- }), t = $(() => {
366
- const r = s, { popperClass: o } = r;
367
- return D(r, ["popperClass"]);
364
+ return t.popperClass ? `${o} ${t.popperClass}`.trim() : o;
365
+ }), s = h(() => {
366
+ const r = t, { popperClass: o } = r;
367
+ return G(r, ["popperClass"]);
368
368
  });
369
369
  return (o, a) => {
370
- const r = xe;
371
- return i(), g(r, h(t.value, {
370
+ const r = je;
371
+ return l(), _(r, y(s.value, {
372
372
  "popper-class": n.value,
373
373
  class: "m-radio-group"
374
374
  }), v({ _: 2 }, [
375
- _(o.$slots, (l, d) => ({
376
- name: d,
377
- fn: p(() => [
378
- m(o.$slots, d)
375
+ b(o.$slots, (c, u) => ({
376
+ name: u,
377
+ fn: f(() => [
378
+ d(o.$slots, u)
379
379
  ])
380
380
  }))
381
381
  ]), 1040, ["popper-class"]);
382
382
  };
383
383
  }
384
- }), ot = /* @__PURE__ */ Object.assign({
384
+ }), ct = /* @__PURE__ */ Object.assign({
385
385
  name: "MRadioButton"
386
386
  }, {
387
387
  __name: "RadioButton",
@@ -392,20 +392,20 @@ const Xe = /* @__PURE__ */ Object.assign({
392
392
  }
393
393
  },
394
394
  setup(e) {
395
- const { mergedAttrs: s } = A("mc-radio-button-popper");
396
- return (n, t) => {
397
- const o = Pe;
398
- return i(), g(o, h(I(s), { class: "m-radio-button" }), v({ _: 2 }, [
399
- _(n.$slots, (a, r) => ({
395
+ const { mergedAttrs: t } = P("mc-radio-button-popper");
396
+ return (n, s) => {
397
+ const o = Ae;
398
+ return l(), _(o, y(O(t), { class: "m-radio-button" }), v({ _: 2 }, [
399
+ b(n.$slots, (a, r) => ({
400
400
  name: r,
401
- fn: p(() => [
402
- m(n.$slots, r)
401
+ fn: f(() => [
402
+ d(n.$slots, r)
403
403
  ])
404
404
  }))
405
405
  ]), 1040);
406
406
  };
407
407
  }
408
- }), at = /* @__PURE__ */ Object.assign({
408
+ }), lt = /* @__PURE__ */ Object.assign({
409
409
  name: "MSwitch"
410
410
  }, {
411
411
  __name: "Switch",
@@ -416,26 +416,26 @@ const Xe = /* @__PURE__ */ Object.assign({
416
416
  }
417
417
  },
418
418
  setup(e) {
419
- const { mergedAttrs: s, className: n } = A("mc-switch-popper");
420
- return (t, o) => {
421
- const a = Ae;
422
- return i(), g(a, h(I(s), {
423
- "popper-class": I(n),
419
+ const { mergedAttrs: t, className: n } = P("mc-switch-popper");
420
+ return (s, o) => {
421
+ const a = Ve;
422
+ return l(), _(a, y(O(t), {
423
+ "popper-class": O(n),
424
424
  class: "m-switch"
425
425
  }), v({ _: 2 }, [
426
- _(t.$slots, (r, l) => ({
427
- name: l,
428
- fn: p(() => [
429
- m(t.$slots, l)
426
+ b(s.$slots, (r, c) => ({
427
+ name: c,
428
+ fn: f(() => [
429
+ d(s.$slots, c)
430
430
  ])
431
431
  }))
432
432
  ]), 1040, ["popper-class"]);
433
433
  };
434
434
  }
435
- }), rt = {
435
+ }), it = {
436
436
  key: 0,
437
437
  class: "custom-spinner"
438
- }, lt = { class: "ldio-spinner" }, it = /* @__PURE__ */ Object.assign({
438
+ }, ut = { class: "ldio-spinner" }, dt = /* @__PURE__ */ Object.assign({
439
439
  name: "MTag"
440
440
  }, {
441
441
  __name: "Tag",
@@ -454,43 +454,43 @@ const Xe = /* @__PURE__ */ Object.assign({
454
454
  }
455
455
  },
456
456
  setup(e) {
457
- const s = e, n = $(() => s.prefixIcon);
458
- return (t, o) => {
459
- const a = je;
460
- return i(), g(a, h(t.$attrs, {
457
+ const t = e, n = h(() => t.prefixIcon);
458
+ return (s, o) => {
459
+ const a = Le;
460
+ return l(), _(a, y(s.$attrs, {
461
461
  class: ["m-tag", { "is-loading": e.loading }]
462
462
  }), v({ _: 2 }, [
463
- _(t.$slots, (r, l) => ({
464
- name: l,
465
- fn: p(() => [
466
- e.loading && !e.prefixIcon ? (i(), u("div", rt, [
467
- y("div", lt, [
468
- (i(), u(L, null, _(8, (d) => y("div", { key: d })), 64))
463
+ b(s.$slots, (r, c) => ({
464
+ name: c,
465
+ fn: f(() => [
466
+ e.loading && !e.prefixIcon ? (l(), i("div", it, [
467
+ $("div", ut, [
468
+ (l(), i(L, null, b(8, (u) => $("div", { key: u })), 64))
469
469
  ])
470
- ])) : n.value ? (i(), u("i", {
470
+ ])) : n.value ? (l(), i("i", {
471
471
  key: 1,
472
472
  class: S(["prefixIcon", ["iconfont", n.value]])
473
- }, null, 2)) : T("", !0),
474
- y("div", null, [
475
- m(t.$slots, l)
473
+ }, null, 2)) : C("", !0),
474
+ $("div", null, [
475
+ d(s.$slots, c)
476
476
  ]),
477
- e.suffixIcon ? (i(), u("i", {
477
+ e.suffixIcon ? (l(), i("i", {
478
478
  key: 2,
479
479
  class: S(["suffixIcon", ["iconfont", e.suffixIcon]])
480
- }, null, 2)) : T("", !0)
480
+ }, null, 2)) : C("", !0)
481
481
  ])
482
482
  }))
483
483
  ]), 1040, ["class"]);
484
484
  };
485
485
  }
486
- }), ct = ["src", "alt"], ut = ["success", "warning", "error"], dt = {
486
+ }), mt = ["src", "alt"], pt = ["success", "warning", "error"], ft = {
487
487
  name: "MAlert"
488
- }, mt = /* @__PURE__ */ Object.assign(dt, {
488
+ }, _t = /* @__PURE__ */ Object.assign(ft, {
489
489
  props: {
490
490
  type: {
491
491
  type: String,
492
492
  default: "success",
493
- validator: (e) => ut.includes(e)
493
+ validator: (e) => pt.includes(e)
494
494
  },
495
495
  useCustomIcon: {
496
496
  type: Boolean,
@@ -498,41 +498,41 @@ const Xe = /* @__PURE__ */ Object.assign({
498
498
  }
499
499
  },
500
500
  setup(e) {
501
- const s = e, n = V(), t = $(() => {
502
- const l = n, { useCustomIcon: a } = l, r = D(l, ["useCustomIcon"]);
503
- return E(k({}, r), {
504
- type: s.type
501
+ const t = e, n = V(), s = h(() => {
502
+ const c = n, { useCustomIcon: a } = c, r = G(c, ["useCustomIcon"]);
503
+ return x(I({}, r), {
504
+ type: t.type
505
505
  // 确保 type 属性正确传递给 el-alert
506
506
  });
507
- }), o = $(() => s.useCustomIcon ? `https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-${s.type}.png` : null);
507
+ }), o = h(() => t.useCustomIcon ? `https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-${t.type}.png` : null);
508
508
  return (a, r) => {
509
- const l = Ne;
510
- return i(), g(l, h(t.value, { class: "mc-alert" }), v({ _: 2 }, [
509
+ const c = Re;
510
+ return l(), _(c, y(s.value, { class: "mc-alert" }), v({ _: 2 }, [
511
511
  o.value ? {
512
512
  name: "icon",
513
- fn: p(() => [
514
- y("img", {
513
+ fn: f(() => [
514
+ $("img", {
515
515
  src: o.value,
516
516
  alt: `${e.type} icon`,
517
517
  class: "mc-alert-icon"
518
- }, null, 8, ct)
518
+ }, null, 8, mt)
519
519
  ]),
520
520
  key: "0"
521
521
  } : void 0,
522
- _(a.$slots, (d, f) => ({
523
- name: f,
524
- fn: p(() => [
525
- m(a.$slots, f)
522
+ b(a.$slots, (u, p) => ({
523
+ name: p,
524
+ fn: f(() => [
525
+ d(a.$slots, p)
526
526
  ])
527
527
  }))
528
528
  ]), 1040);
529
529
  };
530
530
  }
531
- }), pt = /* @__PURE__ */ Object.assign({
531
+ }), bt = /* @__PURE__ */ Object.assign({
532
532
  name: "MDialog"
533
533
  }, {
534
534
  __name: "Dialog",
535
- props: /* @__PURE__ */ K({
535
+ props: /* @__PURE__ */ ne({
536
536
  width: {
537
537
  type: String,
538
538
  default: "440px"
@@ -560,13 +560,13 @@ const Xe = /* @__PURE__ */ Object.assign({
560
560
  },
561
561
  modelModifiers: {}
562
562
  }),
563
- emits: /* @__PURE__ */ K(["close"], ["update:modelValue"]),
564
- setup(e, { emit: s }) {
565
- const n = ge(e, "modelValue");
566
- return (t, o) => {
567
- const a = Ve;
568
- return i(), u("div", null, [
569
- j(a, h({
563
+ emits: /* @__PURE__ */ ne(["close"], ["update:modelValue"]),
564
+ setup(e, { emit: t }) {
565
+ const n = ye(e, "modelValue");
566
+ return (s, o) => {
567
+ const a = ze;
568
+ return l(), i("div", null, [
569
+ j(a, y({
570
570
  modelValue: n.value,
571
571
  "onUpdate:modelValue": o[0] || (o[0] = (r) => n.value = r),
572
572
  width: e.width,
@@ -574,26 +574,26 @@ const Xe = /* @__PURE__ */ Object.assign({
574
574
  draggable: e.draggable,
575
575
  "close-on-click-modal": e.closeOnClickModal,
576
576
  center: e.center
577
- }, t.$attrs, {
577
+ }, s.$attrs, {
578
578
  class: "m-dialog",
579
579
  "header-class": "m-header"
580
580
  }), v({
581
- default: p(() => [
582
- m(t.$slots, "default")
581
+ default: f(() => [
582
+ d(s.$slots, "default")
583
583
  ]),
584
584
  _: 2
585
585
  }, [
586
- t.$slots.header ? {
586
+ s.$slots.header ? {
587
587
  name: "header",
588
- fn: p(({ close: r, titleId: l, titleClass: d }) => [
589
- m(t.$slots, "header", U(q({ close: r, titleId: l, titleClass: d })))
588
+ fn: f(({ close: r, titleId: c, titleClass: u }) => [
589
+ d(s.$slots, "header", U(q({ close: r, titleId: c, titleClass: u })))
590
590
  ]),
591
591
  key: "0"
592
592
  } : void 0,
593
- t.$slots.footer ? {
593
+ s.$slots.footer ? {
594
594
  name: "footer",
595
- fn: p(() => [
596
- m(t.$slots, "footer")
595
+ fn: f(() => [
596
+ d(s.$slots, "footer")
597
597
  ]),
598
598
  key: "1"
599
599
  } : void 0
@@ -601,23 +601,23 @@ const Xe = /* @__PURE__ */ Object.assign({
601
601
  ]);
602
602
  };
603
603
  }
604
- }), ft = {
604
+ }), gt = {
605
605
  name: "MNotification"
606
606
  };
607
- function _t(e, s, n, t, o, a) {
608
- const r = Le;
609
- return i(), g(r, h(e.$attrs, { class: "mc-notification" }), v({ _: 2 }, [
610
- _(e.$slots, (l, d) => ({
611
- name: d,
612
- fn: p(() => [
613
- m(e.$slots, d)
607
+ function vt(e, t, n, s, o, a) {
608
+ const r = De;
609
+ return l(), _(r, y(e.$attrs, { class: "mc-notification" }), v({ _: 2 }, [
610
+ b(e.$slots, (c, u) => ({
611
+ name: u,
612
+ fn: f(() => [
613
+ d(e.$slots, u)
614
614
  ])
615
615
  }))
616
616
  ]), 1040);
617
617
  }
618
- const gt = /* @__PURE__ */ w(ft, [["render", _t]]), B = O([]);
619
- let bt = 0;
620
- const vt = {
618
+ const ht = /* @__PURE__ */ T(gt, [["render", vt]]), E = w([]);
619
+ let yt = 0;
620
+ const $t = {
621
621
  // 默认配置
622
622
  defaultOptions: {
623
623
  message: "",
@@ -639,85 +639,85 @@ const vt = {
639
639
  // 显示消息
640
640
  show(e = {}) {
641
641
  typeof e == "string" && (e = { message: e });
642
- const s = E(k(k({}, this.defaultOptions), e), {
643
- id: ++bt
642
+ const t = x(I(I({}, this.defaultOptions), e), {
643
+ id: ++yt
644
644
  });
645
- if (s.grouping) {
646
- const n = B.value.findIndex(
647
- (t) => t.message === s.message && t.type === s.type && t.grouping
645
+ if (t.grouping) {
646
+ const n = E.value.findIndex(
647
+ (s) => s.message === t.message && s.type === t.type && s.grouping
648
648
  );
649
649
  if (n > -1)
650
- return B.value[n].repeatNum++, { close: () => this.close(B.value[n].id) };
650
+ return E.value[n].repeatNum++, { close: () => this.close(E.value[n].id) };
651
651
  }
652
- return B.value.push(s), s.duration > 0 && setTimeout(() => {
653
- this.close(s.id);
654
- }, s.duration), {
655
- close: () => this.close(s.id)
652
+ return E.value.push(t), t.duration > 0 && setTimeout(() => {
653
+ this.close(t.id);
654
+ }, t.duration), {
655
+ close: () => this.close(t.id)
656
656
  };
657
657
  },
658
658
  // 关闭指定消息
659
659
  close(e) {
660
- const s = B.value.findIndex((n) => n.id === e);
661
- if (s > -1) {
662
- const n = B.value[s];
663
- n.onClose && n.onClose(n), B.value.splice(s, 1);
660
+ const t = E.value.findIndex((n) => n.id === e);
661
+ if (t > -1) {
662
+ const n = E.value[t];
663
+ n.onClose && n.onClose(n), E.value.splice(t, 1);
664
664
  }
665
665
  },
666
666
  // 关闭所有消息
667
667
  closeAll() {
668
- B.value = [];
668
+ E.value = [];
669
669
  },
670
670
  // 便捷方法
671
671
  success(e = {}) {
672
- return typeof e == "string" && (e = { message: e }), this.show(E(k({}, e), { type: "success" }));
672
+ return typeof e == "string" && (e = { message: e }), this.show(x(I({}, e), { type: "success" }));
673
673
  },
674
674
  warning(e = {}) {
675
- return typeof e == "string" && (e = { message: e }), this.show(E(k({}, e), { type: "warning" }));
675
+ return typeof e == "string" && (e = { message: e }), this.show(x(I({}, e), { type: "warning" }));
676
676
  },
677
677
  error(e = {}) {
678
- return typeof e == "string" && (e = { message: e }), this.show(E(k({}, e), { type: "error" }));
678
+ return typeof e == "string" && (e = { message: e }), this.show(x(I({}, e), { type: "error" }));
679
679
  }
680
- }, ht = (e) => {
681
- vt.close(e);
682
- }, yt = {
680
+ }, Mt = (e) => {
681
+ $t.close(e);
682
+ }, Ct = {
683
683
  name: "MMessage",
684
684
  setup() {
685
685
  return {
686
- messages: B,
687
- closeMessage: ht
686
+ messages: E,
687
+ closeMessage: Mt
688
688
  };
689
689
  }
690
- }, $t = {
690
+ }, kt = {
691
691
  key: 0,
692
692
  class: "message-icon"
693
- }, Mt = ["src"], Ct = {
693
+ }, It = ["src"], St = {
694
694
  key: 1,
695
695
  src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-success.png",
696
696
  alt: "success icon",
697
697
  class: "message-icon-img"
698
- }, kt = {
698
+ }, Tt = {
699
699
  key: 2,
700
700
  src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-warning.png",
701
701
  alt: "warning icon",
702
702
  class: "message-icon-img"
703
- }, Tt = {
703
+ }, wt = {
704
704
  key: 3,
705
705
  src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-error.png",
706
706
  alt: "error icon",
707
707
  class: "message-icon-img"
708
- }, St = { class: "message-content" }, It = ["innerHTML"], wt = { key: 2 }, Bt = {
708
+ }, Ot = { class: "message-content" }, Et = ["innerHTML"], Bt = { key: 2 }, xt = {
709
709
  key: 3,
710
710
  class: "message-repeat"
711
- }, Ot = ["onClick"];
712
- function Et(e, s, n, t, o, a) {
713
- return i(), g(te, { to: "body" }, [
714
- j(se, {
711
+ }, Nt = ["onClick"];
712
+ function Pt(e, t, n, s, o, a) {
713
+ return l(), _(le, { to: "body" }, [
714
+ j(ie, {
715
715
  name: "message",
716
716
  tag: "div",
717
717
  class: "message-container"
718
718
  }, {
719
- default: p(() => [
720
- (i(!0), u(L, null, _(t.messages, (r) => (i(), u("div", {
719
+ default: f(() => [
720
+ (l(!0), i(L, null, b(s.messages, (r) => (l(), i("div", {
721
721
  key: r.id,
722
722
  class: S([
723
723
  "custom-message",
@@ -726,35 +726,35 @@ function Et(e, s, n, t, o, a) {
726
726
  { "message-plain": r.plain }
727
727
  ])
728
728
  }, [
729
- r.showIcon ? (i(), u("div", $t, [
730
- r.customIcon ? (i(), u("img", {
729
+ r.showIcon ? (l(), i("div", kt, [
730
+ r.customIcon ? (l(), i("img", {
731
731
  key: 0,
732
732
  src: r.customIcon,
733
733
  alt: "custom icon",
734
734
  class: "message-icon-img"
735
- }, null, 8, Mt)) : r.type === "success" ? (i(), u("img", Ct)) : r.type === "warning" ? (i(), u("img", kt)) : r.type === "error" ? (i(), u("img", Tt)) : T("", !0)
736
- ])) : T("", !0),
737
- y("div", St, [
738
- typeof r.message == "function" ? (i(), g(ne(r.message), { key: 0 })) : r.dangerouslyUseHTMLString ? (i(), u("div", {
735
+ }, null, 8, It)) : r.type === "success" ? (l(), i("img", St)) : r.type === "warning" ? (l(), i("img", Tt)) : r.type === "error" ? (l(), i("img", wt)) : C("", !0)
736
+ ])) : C("", !0),
737
+ $("div", Ot, [
738
+ typeof r.message == "function" ? (l(), _(K(r.message), { key: 0 })) : r.dangerouslyUseHTMLString ? (l(), i("div", {
739
739
  key: 1,
740
740
  innerHTML: r.message
741
- }, null, 8, It)) : (i(), u("span", wt, x(r.message), 1)),
742
- r.repeatNum > 1 ? (i(), u("span", Bt, x(r.repeatNum), 1)) : T("", !0)
741
+ }, null, 8, Et)) : (l(), i("span", Bt, B(r.message), 1)),
742
+ r.repeatNum > 1 ? (l(), i("span", xt, B(r.repeatNum), 1)) : C("", !0)
743
743
  ]),
744
- r.showClose ? (i(), u("button", {
744
+ r.showClose ? (l(), i("button", {
745
745
  key: 1,
746
746
  class: "message-close",
747
- onClick: (l) => t.closeMessage(r.id)
748
- }, " × ", 8, Ot)) : T("", !0)
747
+ onClick: (c) => s.closeMessage(r.id)
748
+ }, " × ", 8, Nt)) : C("", !0)
749
749
  ], 2))), 128))
750
750
  ]),
751
751
  _: 1
752
752
  })
753
753
  ]);
754
754
  }
755
- const ce = /* @__PURE__ */ w(yt, [["render", Et]]), P = O([]);
756
- let xt = 0;
757
- const Xs = {
755
+ const pe = /* @__PURE__ */ T(Ct, [["render", Pt]]), N = w([]);
756
+ let jt = 0;
757
+ const mn = {
758
758
  // 默认配置
759
759
  defaultOptions: {
760
760
  title: "",
@@ -766,23 +766,23 @@ const Xs = {
766
766
  },
767
767
  // 显示通知
768
768
  show(e = {}) {
769
- const s = E(k(k({}, this.defaultOptions), e), {
770
- id: ++xt
769
+ const t = x(I(I({}, this.defaultOptions), e), {
770
+ id: ++jt
771
771
  });
772
- return P.value.push(s), s.duration > 0 && setTimeout(() => {
773
- this.close(s.id);
774
- }, s.duration), {
775
- close: () => this.close(s.id)
772
+ return N.value.push(t), t.duration > 0 && setTimeout(() => {
773
+ this.close(t.id);
774
+ }, t.duration), {
775
+ close: () => this.close(t.id)
776
776
  };
777
777
  },
778
778
  // 关闭指定通知
779
779
  close(e) {
780
- const s = P.value.findIndex((n) => n.id === e);
781
- s > -1 && P.value.splice(s, 1);
780
+ const t = N.value.findIndex((n) => n.id === e);
781
+ t > -1 && N.value.splice(t, 1);
782
782
  },
783
783
  // 关闭所有通知
784
784
  closeAll() {
785
- P.value = [];
785
+ N.value = [];
786
786
  },
787
787
  // 便捷方法
788
788
  success(e = {}) {
@@ -794,61 +794,61 @@ const Xs = {
794
794
  error(e = {}) {
795
795
  return this.show(e);
796
796
  }
797
- }, Pt = (e) => {
798
- const s = P.value.findIndex((n) => n.id === e);
799
- s > -1 && P.value.splice(s, 1);
800
- }, At = {
797
+ }, At = (e) => {
798
+ const t = N.value.findIndex((n) => n.id === e);
799
+ t > -1 && N.value.splice(t, 1);
800
+ }, Vt = {
801
801
  name: "MNotifiMessage",
802
802
  setup() {
803
803
  return {
804
- notifications: P,
805
- closeNotification: Pt
804
+ notifications: N,
805
+ closeNotification: At
806
806
  };
807
807
  }
808
- }, jt = { class: "notification-content" }, Nt = { class: "notification-title" }, Vt = { class: "notification-message" }, Lt = {
808
+ }, Lt = { class: "notification-content" }, Rt = { class: "notification-title" }, zt = { class: "notification-message" }, Dt = {
809
809
  key: 0,
810
810
  class: "notification-action"
811
- }, Rt = ["onClick"];
812
- function zt(e, s, n, t, o, a) {
813
- return i(), g(te, { to: "body" }, [
814
- j(se, {
811
+ }, Gt = ["onClick"];
812
+ function Ft(e, t, n, s, o, a) {
813
+ return l(), _(le, { to: "body" }, [
814
+ j(ie, {
815
815
  name: "notification",
816
816
  tag: "div",
817
817
  class: "notification-container"
818
818
  }, {
819
- default: p(() => [
820
- (i(!0), u(L, null, _(t.notifications, (r) => (i(), u("div", {
819
+ default: f(() => [
820
+ (l(!0), i(L, null, b(s.notifications, (r) => (l(), i("div", {
821
821
  key: r.id,
822
822
  class: S([
823
823
  "custom-notification",
824
824
  `notification-${r.position}`
825
825
  ])
826
826
  }, [
827
- s[0] || (s[0] = y("div", { class: "notification-icon" }, [
828
- y("img", {
827
+ t[0] || (t[0] = $("div", { class: "notification-icon" }, [
828
+ $("img", {
829
829
  src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/MCImages/userCenter/icon-quota-tip.png",
830
830
  alt: "notification icon"
831
831
  })
832
832
  ], -1)),
833
- y("div", jt, [
834
- y("div", Nt, x(r.title), 1),
835
- y("div", Vt, x(r.message), 1),
836
- r.slotContent ? (i(), u("div", Lt, [
837
- (i(), g(ne(r.slotContent)))
838
- ])) : T("", !0)
833
+ $("div", Lt, [
834
+ $("div", Rt, B(r.title), 1),
835
+ $("div", zt, B(r.message), 1),
836
+ r.slotContent ? (l(), i("div", Dt, [
837
+ (l(), _(K(r.slotContent)))
838
+ ])) : C("", !0)
839
839
  ]),
840
- r.showClose ? (i(), u("button", {
840
+ r.showClose ? (l(), i("button", {
841
841
  key: 0,
842
842
  class: "notification-close",
843
- onClick: (l) => t.closeNotification(r.id)
844
- }, " × ", 8, Rt)) : T("", !0)
843
+ onClick: (c) => s.closeNotification(r.id)
844
+ }, " × ", 8, Gt)) : C("", !0)
845
845
  ], 2))), 128))
846
846
  ]),
847
847
  _: 1
848
848
  })
849
849
  ]);
850
850
  }
851
- const ue = /* @__PURE__ */ w(At, [["render", zt]]), Ft = /* @__PURE__ */ Object.assign({
851
+ const fe = /* @__PURE__ */ T(Vt, [["render", Ft]]), Ut = /* @__PURE__ */ Object.assign({
852
852
  name: "MDatePicker"
853
853
  }, {
854
854
  __name: "DatePicker",
@@ -863,26 +863,26 @@ const ue = /* @__PURE__ */ w(At, [["render", zt]]), Ft = /* @__PURE__ */ Object.
863
863
  }
864
864
  },
865
865
  setup(e) {
866
- const { mergedAttrs: s, className: n } = A(
866
+ const { mergedAttrs: t, className: n } = P(
867
867
  "mc-datepicker-popper",
868
868
  "popperClass"
869
869
  );
870
- return (t, o) => {
871
- const a = Re;
872
- return i(), g(a, h(I(s), {
870
+ return (s, o) => {
871
+ const a = Ge;
872
+ return l(), _(a, y(O(t), {
873
873
  class: ["m-datepicker", e.styleType],
874
- "popper-class": I(n)
874
+ "popper-class": O(n)
875
875
  }), v({ _: 2 }, [
876
- _(t.$slots, (r, l) => ({
877
- name: l,
878
- fn: p(() => [
879
- m(t.$slots, l)
876
+ b(s.$slots, (r, c) => ({
877
+ name: c,
878
+ fn: f(() => [
879
+ d(s.$slots, c)
880
880
  ])
881
881
  }))
882
882
  ]), 1040, ["popper-class", "class"]);
883
883
  };
884
884
  }
885
- }), Dt = [
885
+ }), qt = [
886
886
  "404",
887
887
  "billing",
888
888
  "cart",
@@ -899,74 +899,74 @@ const ue = /* @__PURE__ */ w(At, [["render", zt]]), Ft = /* @__PURE__ */ Object.
899
899
  "subscription",
900
900
  "todo",
901
901
  "wishlist"
902
- ], Gt = {
902
+ ], Ht = {
903
903
  name: "MEmpty"
904
- }, Ut = /* @__PURE__ */ Object.assign(Gt, {
904
+ }, Wt = /* @__PURE__ */ Object.assign(Ht, {
905
905
  props: {
906
906
  image: {
907
907
  type: String,
908
908
  default: "orders",
909
- validator: (e) => e.includes("/") || e.includes("http") ? !0 : Dt.includes(e)
909
+ validator: (e) => e.includes("/") || e.includes("http") ? !0 : qt.includes(e)
910
910
  }
911
911
  },
912
912
  setup(e) {
913
- const s = e, n = V(), t = $(() => {
914
- const l = n, { image: a } = l;
915
- return D(l, ["image"]);
916
- }), o = $(() => {
917
- const { image: a } = s;
913
+ const t = e, n = V(), s = h(() => {
914
+ const c = n, { image: a } = c;
915
+ return G(c, ["image"]);
916
+ }), o = h(() => {
917
+ const { image: a } = t;
918
918
  return a.includes("/") || a.includes("http") ? a : `/images/empty/${a}.png`;
919
919
  });
920
920
  return (a, r) => {
921
- const l = ze;
922
- return i(), g(l, h(t.value, { image: o.value }), v({ _: 2 }, [
923
- _(a.$slots, (d, f) => ({
924
- name: f,
925
- fn: p(() => [
926
- m(a.$slots, f)
921
+ const c = Fe;
922
+ return l(), _(c, y(s.value, { image: o.value }), v({ _: 2 }, [
923
+ b(a.$slots, (u, p) => ({
924
+ name: p,
925
+ fn: f(() => [
926
+ d(a.$slots, p)
927
927
  ])
928
928
  }))
929
929
  ]), 1040, ["image"]);
930
930
  };
931
931
  }
932
- }), qt = /* @__PURE__ */ Object.assign({
932
+ }), Zt = /* @__PURE__ */ Object.assign({
933
933
  name: "MTable"
934
934
  }, {
935
935
  __name: "Table",
936
936
  setup(e) {
937
- return (s, n) => {
938
- const t = Fe;
939
- return i(), g(t, U(q(s.$attrs)), v({ _: 2 }, [
940
- _(s.$slots, (o, a) => ({
937
+ return (t, n) => {
938
+ const s = Ue;
939
+ return l(), _(s, U(q(t.$attrs)), v({ _: 2 }, [
940
+ b(t.$slots, (o, a) => ({
941
941
  name: a,
942
- fn: p(() => [
943
- m(s.$slots, a)
942
+ fn: f(() => [
943
+ d(t.$slots, a)
944
944
  ])
945
945
  }))
946
946
  ]), 1040);
947
947
  };
948
948
  }
949
- }), Ht = /* @__PURE__ */ Object.assign({
949
+ }), Jt = /* @__PURE__ */ Object.assign({
950
950
  name: "MTableColumn"
951
951
  }, {
952
952
  __name: "TableColumn",
953
953
  setup(e) {
954
- return (s, n) => {
955
- const t = De;
956
- return i(), g(t, h(s.$attrs, { class: "m-table-column" }), v({ _: 2 }, [
957
- _(s.$slots, (o, a) => ({
954
+ return (t, n) => {
955
+ const s = qe;
956
+ return l(), _(s, y(t.$attrs, { class: "m-table-column" }), v({ _: 2 }, [
957
+ b(t.$slots, (o, a) => ({
958
958
  name: a,
959
- fn: p(() => [
960
- m(s.$slots, a)
959
+ fn: f(() => [
960
+ d(t.$slots, a)
961
961
  ])
962
962
  }))
963
963
  ]), 1040);
964
964
  };
965
965
  }
966
- }), Wt = { class: "m-banner__content" }, Zt = {
966
+ }), Kt = { class: "m-banner__content" }, Qt = {
967
967
  key: 0,
968
968
  class: "m-banner__icon"
969
- }, Jt = { class: "m-banner__text" }, Qt = /* @__PURE__ */ Object.assign({
969
+ }, Xt = { class: "m-banner__text" }, Yt = /* @__PURE__ */ Object.assign({
970
970
  name: "MBanner"
971
971
  }, {
972
972
  __name: "Banner",
@@ -1029,69 +1029,69 @@ const ue = /* @__PURE__ */ w(At, [["render", zt]]), Ft = /* @__PURE__ */ Object.
1029
1029
  }
1030
1030
  },
1031
1031
  emits: ["close", "update:visible"],
1032
- setup(e, { expose: s, emit: n }) {
1033
- const t = be(), o = e, a = n, r = O(o.visible);
1034
- N(() => o.visible, (M) => {
1032
+ setup(e, { expose: t, emit: n }) {
1033
+ const s = $e(), o = e, a = n, r = w(o.visible);
1034
+ A(() => o.visible, (M) => {
1035
1035
  r.value = M;
1036
1036
  });
1037
- const l = $(() => {
1037
+ const c = h(() => {
1038
1038
  const M = {};
1039
1039
  return o.backgroundColor && (M.backgroundColor = o.backgroundColor), o.textColor && (M.color = o.textColor), o.borderColor && (M.borderColor = o.borderColor), M;
1040
- }), d = {
1040
+ }), u = {
1041
1041
  info: "info",
1042
1042
  success: "check-circle",
1043
1043
  warning: "warning",
1044
1044
  error: "close-circle"
1045
1045
  };
1046
- $(() => o.icon || d[o.type]);
1047
- const f = () => {
1046
+ h(() => o.icon || u[o.type]);
1047
+ const p = () => {
1048
1048
  r.value = !1, a("update:visible", !1), a("close");
1049
1049
  };
1050
- return N(r, (M) => {
1050
+ return A(r, (M) => {
1051
1051
  M && o.duration > 0 && setTimeout(() => {
1052
- f();
1052
+ p();
1053
1053
  }, o.duration);
1054
- }), s({
1055
- close: f
1056
- }), (M, R) => e.visible ? (i(), u("div", {
1054
+ }), t({
1055
+ close: p
1056
+ }), (M, R) => e.visible ? (l(), i("div", {
1057
1057
  key: 0,
1058
1058
  class: S(["m-banner", [
1059
1059
  `m-banner--${e.type}`,
1060
1060
  {
1061
1061
  "m-banner--closable": e.closable,
1062
- "m-banner--with-icon": e.icon || I(t).icon
1062
+ "m-banner--with-icon": e.icon || O(s).icon
1063
1063
  }
1064
1064
  ]]),
1065
- style: oe(l.value)
1065
+ style: ue(c.value)
1066
1066
  }, [
1067
- y("div", Wt, [
1068
- e.icon || I(t).icon ? (i(), u("div", Zt, [
1069
- m(M.$slots, "icon", {}, () => [
1070
- j(Z, {
1067
+ $("div", Kt, [
1068
+ e.icon || O(s).icon ? (l(), i("div", Qt, [
1069
+ d(M.$slots, "icon", {}, () => [
1070
+ j(J, {
1071
1071
  name: e.icon,
1072
1072
  size: e.iconSize
1073
1073
  }, null, 8, ["name", "size"])
1074
1074
  ], !0)
1075
- ])) : T("", !0),
1076
- y("div", Jt, [
1077
- m(M.$slots, "default", {}, () => [
1078
- ae(x(e.content), 1)
1075
+ ])) : C("", !0),
1076
+ $("div", Xt, [
1077
+ d(M.$slots, "default", {}, () => [
1078
+ de(B(e.content), 1)
1079
1079
  ], !0)
1080
1080
  ]),
1081
- e.closable ? (i(), u("div", {
1081
+ e.closable ? (l(), i("div", {
1082
1082
  key: 1,
1083
1083
  class: "m-banner__close",
1084
- onClick: f
1084
+ onClick: p
1085
1085
  }, [
1086
- j(Z, {
1086
+ j(J, {
1087
1087
  name: "lucide-x",
1088
1088
  size: e.closeIconSize
1089
1089
  }, null, 8, ["size"])
1090
- ])) : T("", !0)
1090
+ ])) : C("", !0)
1091
1091
  ])
1092
- ], 6)) : T("", !0);
1092
+ ], 6)) : C("", !0);
1093
1093
  }
1094
- }), Xt = /* @__PURE__ */ w(Qt, [["__scopeId", "data-v-00c80323"]]), Yt = {
1094
+ }), es = /* @__PURE__ */ T(Yt, [["__scopeId", "data-v-00c80323"]]), ts = {
1095
1095
  name: "MTabs",
1096
1096
  props: {
1097
1097
  modelValue: {
@@ -1109,109 +1109,109 @@ const ue = /* @__PURE__ */ w(At, [["render", zt]]), Ft = /* @__PURE__ */ Object.
1109
1109
  }
1110
1110
  },
1111
1111
  emits: ["update:modelValue", "tab-click", "tab-remove", "tab-change", "tab-add", "edit"],
1112
- setup(e, { emit: s }) {
1113
- const n = O(null), t = O([]), o = O(e.modelValue), a = O({ width: "0px", left: "0px" }), r = () => {
1114
- ve(() => {
1115
- if (!n.value || t.value.length === 0) {
1112
+ setup(e, { emit: t }) {
1113
+ const n = w(null), s = w([]), o = w(e.modelValue), a = w({ width: "0px", left: "0px" }), r = () => {
1114
+ Me(() => {
1115
+ if (!n.value || s.value.length === 0) {
1116
1116
  a.value = { width: "0px", left: "0px" };
1117
1117
  return;
1118
1118
  }
1119
- const b = o.value;
1120
- if (!b) {
1119
+ const g = o.value;
1120
+ if (!g) {
1121
1121
  a.value = { width: "0px", left: "0px" };
1122
1122
  return;
1123
1123
  }
1124
- const C = t.value.findIndex((me) => me.name === b);
1125
- if (C === -1) {
1124
+ const k = s.value.findIndex((be) => be.name === g);
1125
+ if (k === -1) {
1126
1126
  a.value = { width: "0px", left: "0px" };
1127
1127
  return;
1128
1128
  }
1129
- const H = n.value.querySelectorAll(".m-tabs__item")[C];
1130
- if (!H) {
1129
+ const W = n.value.querySelectorAll(".m-tabs__item")[k];
1130
+ if (!W) {
1131
1131
  a.value = { width: "0px", left: "0px" };
1132
1132
  return;
1133
1133
  }
1134
- const de = H.offsetLeft + H.offsetWidth / 2 - 8;
1134
+ const _e = W.offsetLeft + W.offsetWidth / 2 - 8;
1135
1135
  a.value = {
1136
1136
  width: "16px",
1137
- left: `${de}px`
1137
+ left: `${_e}px`
1138
1138
  };
1139
1139
  });
1140
- }, l = (b) => {
1141
- if (b === o.value) return;
1142
- const C = o.value;
1143
- o.value = b, s("update:modelValue", b), s("tab-click", b), s("tab-change", b, C), r();
1144
- }, d = (b) => {
1145
- s("tab-remove", b), s("edit", b, "remove");
1146
- }, f = () => {
1147
- s("tab-add"), s("edit", null, "add");
1148
- }, M = (b) => {
1149
- const C = t.value.findIndex((z) => z.name === b.name);
1150
- C === -1 ? t.value.push(b) : t.value[C] = b;
1151
- }, R = (b) => {
1152
- const C = t.value.findIndex((z) => z.name === b);
1153
- C > -1 && t.value.splice(C, 1);
1140
+ }, c = (g) => {
1141
+ if (g === o.value) return;
1142
+ const k = o.value;
1143
+ o.value = g, t("update:modelValue", g), t("tab-click", g), t("tab-change", g, k), r();
1144
+ }, u = (g) => {
1145
+ t("tab-remove", g), t("edit", g, "remove");
1146
+ }, p = () => {
1147
+ t("tab-add"), t("edit", null, "add");
1148
+ }, M = (g) => {
1149
+ const k = s.value.findIndex((z) => z.name === g.name);
1150
+ k === -1 ? s.value.push(g) : s.value[k] = g;
1151
+ }, R = (g) => {
1152
+ const k = s.value.findIndex((z) => z.name === g);
1153
+ k > -1 && s.value.splice(k, 1);
1154
1154
  };
1155
- return re("tabsContext", {
1155
+ return Q("tabsContext", {
1156
1156
  activeTab: o,
1157
1157
  registerTab: M,
1158
1158
  unregisterTab: R,
1159
- handleTabRemove: d,
1160
- handleTabAdd: f
1161
- }), N(() => e.modelValue, (b, C) => {
1162
- b !== o.value && (o.value = b, s("tab-change", b, C), r());
1163
- }), N(t, () => {
1159
+ handleTabRemove: u,
1160
+ handleTabAdd: p
1161
+ }), A(() => e.modelValue, (g, k) => {
1162
+ g !== o.value && (o.value = g, t("tab-change", g, k), r());
1163
+ }), A(s, () => {
1164
1164
  r();
1165
- }, { deep: !0 }), le(() => {
1166
- if (!o.value && t.value.length > 0) {
1167
- const b = t.value[0];
1168
- o.value = b.name, s("update:modelValue", o.value);
1165
+ }, { deep: !0 }), X(() => {
1166
+ if (!o.value && s.value.length > 0) {
1167
+ const g = s.value[0];
1168
+ o.value = g.name, t("update:modelValue", o.value);
1169
1169
  }
1170
1170
  r();
1171
1171
  }), {
1172
1172
  navRef: n,
1173
- tabs: t,
1173
+ tabs: s,
1174
1174
  activeTab: o,
1175
1175
  activeBarStyle: a,
1176
- handleTabClick: l,
1177
- handleTabRemove: d,
1178
- handleTabAdd: f,
1176
+ handleTabClick: c,
1177
+ handleTabRemove: u,
1178
+ handleTabAdd: p,
1179
1179
  registerTab: M,
1180
1180
  unregisterTab: R,
1181
1181
  updateActiveBarPosition: r
1182
1182
  };
1183
1183
  }
1184
- }, Kt = { class: "m-tabs__header" }, es = {
1184
+ }, ss = { class: "m-tabs__header" }, ns = {
1185
1185
  class: "m-tabs__nav",
1186
1186
  ref: "navRef"
1187
- }, ts = ["onClick"], ss = { class: "m-tabs__content" };
1188
- function ns(e, s, n, t, o, a) {
1189
- return i(), u("div", {
1187
+ }, os = ["onClick"], as = { class: "m-tabs__content" };
1188
+ function rs(e, t, n, s, o, a) {
1189
+ return l(), i("div", {
1190
1190
  class: S(["m-tabs", { "style-solid": n.styleType === "solid" }])
1191
1191
  }, [
1192
- y("div", Kt, [
1193
- y("div", es, [
1194
- (i(!0), u(L, null, _(t.tabs, (r, l) => (i(), u("div", {
1192
+ $("div", ss, [
1193
+ $("div", ns, [
1194
+ (l(!0), i(L, null, b(s.tabs, (r, c) => (l(), i("div", {
1195
1195
  key: r.name,
1196
1196
  class: S([
1197
1197
  "m-tabs__item",
1198
- { "is-active": t.activeTab === r.name }
1198
+ { "is-active": s.activeTab === r.name }
1199
1199
  ]),
1200
- onClick: (d) => t.handleTabClick(r.name)
1201
- }, x(r.label), 11, ts))), 128)),
1202
- n.styleType !== "solid" ? (i(), u("div", {
1200
+ onClick: (u) => s.handleTabClick(r.name)
1201
+ }, B(r.label), 11, os))), 128)),
1202
+ n.styleType !== "solid" ? (l(), i("div", {
1203
1203
  key: 0,
1204
1204
  class: "m-tabs__active-bar",
1205
- style: oe(t.activeBarStyle)
1206
- }, null, 4)) : T("", !0)
1205
+ style: ue(s.activeBarStyle)
1206
+ }, null, 4)) : C("", !0)
1207
1207
  ], 512)
1208
1208
  ]),
1209
- y("div", ss, [
1210
- m(e.$slots, "default", {}, void 0, !0)
1209
+ $("div", as, [
1210
+ d(e.$slots, "default", {}, void 0, !0)
1211
1211
  ])
1212
1212
  ], 2);
1213
1213
  }
1214
- const os = /* @__PURE__ */ w(Yt, [["render", ns], ["__scopeId", "data-v-37dc138d"]]), as = {
1214
+ const cs = /* @__PURE__ */ T(ts, [["render", rs], ["__scopeId", "data-v-37dc138d"]]), ls = {
1215
1215
  name: "MTabPane",
1216
1216
  props: {
1217
1217
  label: {
@@ -1232,33 +1232,33 @@ const os = /* @__PURE__ */ w(Yt, [["render", ns], ["__scopeId", "data-v-37dc138d
1232
1232
  }
1233
1233
  },
1234
1234
  setup(e) {
1235
- const s = ie("tabsContext"), n = $(() => e.name || e.label), t = $(() => s.activeTab.value === n.value);
1236
- return le(() => {
1235
+ const t = H("tabsContext"), n = h(() => e.name || e.label), s = h(() => t.activeTab.value === n.value);
1236
+ return X(() => {
1237
1237
  const o = {
1238
1238
  label: e.label,
1239
1239
  name: n.value,
1240
1240
  disabled: e.disabled,
1241
1241
  closable: e.closable
1242
1242
  };
1243
- s.registerTab(o);
1244
- }), $e(() => {
1245
- s.unregisterTab(n.value);
1243
+ t.registerTab(o);
1244
+ }), me(() => {
1245
+ t.unregisterTab(n.value);
1246
1246
  }), {
1247
- isActive: t,
1247
+ isActive: s,
1248
1248
  tabName: n
1249
1249
  };
1250
1250
  }
1251
1251
  };
1252
- function rs(e, s, n, t, o, a) {
1253
- return he((i(), u("div", {
1254
- class: S(["m-tab-pane", { "is-active": t.isActive }])
1252
+ function is(e, t, n, s, o, a) {
1253
+ return Ce((l(), i("div", {
1254
+ class: S(["m-tab-pane", { "is-active": s.isActive }])
1255
1255
  }, [
1256
- m(e.$slots, "default", {}, void 0, !0)
1256
+ d(e.$slots, "default", {}, void 0, !0)
1257
1257
  ], 2)), [
1258
- [ye, t.isActive]
1258
+ [ke, s.isActive]
1259
1259
  ]);
1260
1260
  }
1261
- const ls = /* @__PURE__ */ w(as, [["render", rs], ["__scopeId", "data-v-31f89b3b"]]), is = { class: "m-tab-card__container" }, cs = ["onClick"], us = { class: "m-tab-card__text" }, ds = /* @__PURE__ */ Object.assign({
1261
+ const us = /* @__PURE__ */ T(ls, [["render", is], ["__scopeId", "data-v-31f89b3b"]]), ds = { class: "m-tab-card__container" }, ms = ["onClick"], ps = { class: "m-tab-card__text" }, fs = /* @__PURE__ */ Object.assign({
1262
1262
  name: "MTabCard"
1263
1263
  }, {
1264
1264
  __name: "TabCard",
@@ -1277,45 +1277,45 @@ const ls = /* @__PURE__ */ w(as, [["render", rs], ["__scopeId", "data-v-31f89b3b
1277
1277
  }
1278
1278
  },
1279
1279
  emits: ["update:modelValue", "change", "tab-click"],
1280
- setup(e, { emit: s }) {
1281
- const n = e, t = s;
1282
- A();
1283
- const o = O(n.modelValue), a = $(() => n.options.map((l) => typeof l == "string" ? { label: l, name: l, disabled: !1 } : {
1284
- label: l.label || l.name || "",
1285
- name: l.name || l.label || "",
1286
- disabled: l.disabled || !1
1287
- })), r = (l, d) => {
1288
- if (d || n.disabled || l === o.value)
1280
+ setup(e, { emit: t }) {
1281
+ const n = e, s = t;
1282
+ P();
1283
+ const o = w(n.modelValue), a = h(() => n.options.map((c) => typeof c == "string" ? { label: c, name: c, disabled: !1 } : {
1284
+ label: c.label || c.name || "",
1285
+ name: c.name || c.label || "",
1286
+ disabled: c.disabled || !1
1287
+ })), r = (c, u) => {
1288
+ if (u || n.disabled || c === o.value)
1289
1289
  return;
1290
- const f = o.value;
1291
- o.value = l, t("update:modelValue", l), t("change", l, f), t("tab-click", l);
1290
+ const p = o.value;
1291
+ o.value = c, s("update:modelValue", c), s("change", c, p), s("tab-click", c);
1292
1292
  };
1293
- return N(() => n.modelValue, (l) => {
1294
- l !== o.value && (o.value = l);
1295
- }), re("tabCardContext", {
1293
+ return A(() => n.modelValue, (c) => {
1294
+ c !== o.value && (o.value = c);
1295
+ }), Q("tabCardContext", {
1296
1296
  activeTab: o,
1297
1297
  handleTabClick: r
1298
- }), (l, d) => (i(), u("div", {
1298
+ }), (c, u) => (l(), i("div", {
1299
1299
  class: S(["m-tab-card", { "is-disabled": e.disabled }])
1300
1300
  }, [
1301
- y("div", is, [
1302
- (i(!0), u(L, null, _(a.value, (f, M) => (i(), u("div", {
1303
- key: f.name,
1301
+ $("div", ds, [
1302
+ (l(!0), i(L, null, b(a.value, (p, M) => (l(), i("div", {
1303
+ key: p.name,
1304
1304
  class: S([
1305
1305
  "m-tab-card__item",
1306
1306
  {
1307
- "is-active": o.value === f.name,
1308
- "is-disabled": f.disabled
1307
+ "is-active": o.value === p.name,
1308
+ "is-disabled": p.disabled
1309
1309
  }
1310
1310
  ]),
1311
- onClick: (R) => r(f.name, f.disabled)
1311
+ onClick: (R) => r(p.name, p.disabled)
1312
1312
  }, [
1313
- y("span", us, x(f.label), 1)
1314
- ], 10, cs))), 128))
1313
+ $("span", ps, B(p.label), 1)
1314
+ ], 10, ms))), 128))
1315
1315
  ])
1316
1316
  ], 2));
1317
1317
  }
1318
- }), ms = /* @__PURE__ */ w(ds, [["__scopeId", "data-v-dd55f784"]]), ps = { class: "m-tab-card-item__text" }, fs = /* @__PURE__ */ Object.assign({
1318
+ }), _s = /* @__PURE__ */ T(fs, [["__scopeId", "data-v-dd55f784"]]), bs = { class: "m-tab-card-item__text" }, gs = /* @__PURE__ */ Object.assign({
1319
1319
  name: "MTabCardItem"
1320
1320
  }, {
1321
1321
  __name: "TabCardItem",
@@ -1334,11 +1334,11 @@ const ls = /* @__PURE__ */ w(as, [["render", rs], ["__scopeId", "data-v-31f89b3b
1334
1334
  }
1335
1335
  },
1336
1336
  emits: ["click"],
1337
- setup(e, { emit: s }) {
1338
- const n = e, t = s, o = ie("tabCardContext"), a = $(() => o.activeTab.value === n.name), r = () => {
1339
- n.disabled || (o.handleTabClick(n.name, n.disabled), t("click", n.name));
1337
+ setup(e, { emit: t }) {
1338
+ const n = e, s = t, o = H("tabCardContext"), a = h(() => o.activeTab.value === n.name), r = () => {
1339
+ n.disabled || (o.handleTabClick(n.name, n.disabled), s("click", n.name));
1340
1340
  };
1341
- return (l, d) => (i(), u("div", {
1341
+ return (c, u) => (l(), i("div", {
1342
1342
  class: S([
1343
1343
  "m-tab-card-item",
1344
1344
  {
@@ -1348,30 +1348,145 @@ const ls = /* @__PURE__ */ w(as, [["render", rs], ["__scopeId", "data-v-31f89b3b
1348
1348
  ]),
1349
1349
  onClick: r
1350
1350
  }, [
1351
- y("span", ps, [
1352
- m(l.$slots, "default", {}, () => [
1353
- ae(x(e.label), 1)
1351
+ $("span", bs, [
1352
+ d(c.$slots, "default", {}, () => [
1353
+ de(B(e.label), 1)
1354
1354
  ], !0)
1355
1355
  ])
1356
1356
  ], 2));
1357
1357
  }
1358
- }), _s = /* @__PURE__ */ w(fs, [["__scopeId", "data-v-adce2436"]]);
1359
- function G(e) {
1358
+ }), vs = /* @__PURE__ */ T(gs, [["__scopeId", "data-v-adce2436"]]), hs = {
1359
+ class: "m-breadcrumb",
1360
+ "aria-label": "Breadcrumb"
1361
+ }, ys = /* @__PURE__ */ Object.assign({
1362
+ name: "MBreadcrumb"
1363
+ }, {
1364
+ __name: "Breadcrumb",
1365
+ props: {
1366
+ separator: {
1367
+ type: String,
1368
+ default: "/"
1369
+ },
1370
+ separatorIcon: {
1371
+ type: [String, Object],
1372
+ default: void 0
1373
+ }
1374
+ },
1375
+ setup(e) {
1376
+ const t = e, n = w([]), s = () => {
1377
+ const r = Date.now() + Math.random();
1378
+ return n.value.push(r), r;
1379
+ }, o = (r) => {
1380
+ const c = n.value.indexOf(r);
1381
+ c > -1 && n.value.splice(c, 1);
1382
+ }, a = (r) => n.value.indexOf(r) === n.value.length - 1;
1383
+ return Q("breadcrumbContext", {
1384
+ separator: t.separator,
1385
+ separatorIcon: t.separatorIcon,
1386
+ registerItem: s,
1387
+ unregisterItem: o,
1388
+ isLastItem: a
1389
+ }), (r, c) => (l(), i("nav", hs, [
1390
+ d(r.$slots, "default", {}, void 0, !0)
1391
+ ]));
1392
+ }
1393
+ }), $s = /* @__PURE__ */ T(ys, [["__scopeId", "data-v-e2689f65"]]);
1394
+ /*!
1395
+ * vue-router v4.5.1
1396
+ * (c) 2025 Eduardo San Martin Morote
1397
+ * @license MIT
1398
+ */
1399
+ var oe;
1400
+ (function(e) {
1401
+ e.pop = "pop", e.push = "push";
1402
+ })(oe || (oe = {}));
1403
+ var ae;
1404
+ (function(e) {
1405
+ e.back = "back", e.forward = "forward", e.unknown = "";
1406
+ })(ae || (ae = {}));
1407
+ Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
1408
+ var re;
1409
+ (function(e) {
1410
+ e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
1411
+ })(re || (re = {}));
1412
+ Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
1413
+ Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
1414
+ const Ms = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
1415
+ Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
1416
+ Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
1417
+ function Cs() {
1418
+ return H(Ms);
1419
+ }
1420
+ const ks = { class: "m-breadcrumb__item" }, Is = {
1421
+ key: 1,
1422
+ class: "m-breadcrumb__inner"
1423
+ }, Ss = {
1424
+ key: 2,
1425
+ class: "m-breadcrumb__separator"
1426
+ }, Ts = {
1427
+ key: 3,
1428
+ class: "m-breadcrumb__separator"
1429
+ }, ws = /* @__PURE__ */ Object.assign({
1430
+ name: "MBreadcrumbItem"
1431
+ }, {
1432
+ __name: "BreadcrumbItem",
1433
+ props: {
1434
+ to: {
1435
+ type: [String, Object],
1436
+ default: ""
1437
+ },
1438
+ replace: {
1439
+ type: Boolean,
1440
+ default: !1
1441
+ }
1442
+ },
1443
+ setup(e) {
1444
+ const t = e, n = H("breadcrumbContext", {
1445
+ separator: "/",
1446
+ separatorIcon: void 0,
1447
+ registerItem: () => null,
1448
+ unregisterItem: () => {
1449
+ },
1450
+ isLastItem: () => !1
1451
+ }), s = h(() => n.separator), o = h(() => n.separatorIcon), a = w(null), r = h(() => a.value ? n.isLastItem(a.value) : !1), c = Cs(), u = () => {
1452
+ t.to && (t.replace ? c.replace(t.to) : c.push(t.to));
1453
+ };
1454
+ return X(() => {
1455
+ n.registerItem && (a.value = n.registerItem());
1456
+ }), me(() => {
1457
+ n.unregisterItem && a.value && n.unregisterItem(a.value);
1458
+ }), (p, M) => (l(), i("span", ks, [
1459
+ e.to ? (l(), i("span", {
1460
+ key: 0,
1461
+ class: S(["m-breadcrumb__inner", { "is-link": e.to }]),
1462
+ onClick: u
1463
+ }, [
1464
+ d(p.$slots, "default", {}, void 0, !0)
1465
+ ], 2)) : (l(), i("span", Is, [
1466
+ d(p.$slots, "default", {}, void 0, !0)
1467
+ ])),
1468
+ o.value && !r.value ? (l(), i("i", Ss, [
1469
+ (l(), _(K(o.value)))
1470
+ ])) : r.value ? C("", !0) : (l(), i("span", Ts, B(s.value), 1))
1471
+ ]));
1472
+ }
1473
+ }), Os = /* @__PURE__ */ T(ws, [["__scopeId", "data-v-29577d85"]]);
1474
+ function F(e) {
1360
1475
  e && e.classList && e.classList.add("mc-ui-override");
1361
1476
  }
1362
- function gs(e) {
1363
- e && e.$el && G(e.$el);
1477
+ function Es(e) {
1478
+ e && e.$el && F(e.$el);
1364
1479
  }
1365
- function bs() {
1366
- typeof document != "undefined" && (document.body.classList.add("mc-ui-override"), new MutationObserver((s) => {
1367
- s.forEach((n) => {
1368
- n.addedNodes.forEach((t) => {
1369
- if (t.nodeType === 1 && t.classList) {
1370
- if (t.className && typeof t.className == "string" && t.className.includes("el-")) {
1371
- const a = t.closest(".mc-ui-override") || t.parentElement;
1480
+ function Bs() {
1481
+ typeof document != "undefined" && (document.body.classList.add("mc-ui-override"), new MutationObserver((t) => {
1482
+ t.forEach((n) => {
1483
+ n.addedNodes.forEach((s) => {
1484
+ if (s.nodeType === 1 && s.classList) {
1485
+ if (s.className && typeof s.className == "string" && s.className.includes("el-")) {
1486
+ const a = s.closest(".mc-ui-override") || s.parentElement;
1372
1487
  a && !a.classList.contains("mc-ui-override") && a.classList.add("mc-ui-override");
1373
1488
  }
1374
- t.querySelectorAll('[class*="el-"]').forEach((a) => {
1489
+ s.querySelectorAll('[class*="el-"]').forEach((a) => {
1375
1490
  const r = a.closest(".mc-ui-override") || a.parentElement;
1376
1491
  r && !r.classList.contains("mc-ui-override") && r.classList.add("mc-ui-override");
1377
1492
  });
@@ -1383,57 +1498,57 @@ function bs() {
1383
1498
  subtree: !0
1384
1499
  }));
1385
1500
  }
1386
- function vs(e = '[class*="el-"]') {
1501
+ function xs(e = '[class*="el-"]') {
1387
1502
  typeof document != "undefined" && document.querySelectorAll(e).forEach((n) => {
1388
- const t = n.closest(".mc-ui-override") || n.parentElement;
1389
- t && !t.classList.contains("mc-ui-override") && t.classList.add("mc-ui-override");
1503
+ const s = n.closest(".mc-ui-override") || n.parentElement;
1504
+ s && !s.classList.contains("mc-ui-override") && s.classList.add("mc-ui-override");
1390
1505
  });
1391
1506
  }
1392
- function hs(e) {
1393
- return E(k({}, e), {
1507
+ function Ns(e) {
1508
+ return x(I({}, e), {
1394
1509
  mounted() {
1395
- G(this.$el), e.mounted && e.mounted.call(this);
1510
+ F(this.$el), e.mounted && e.mounted.call(this);
1396
1511
  },
1397
1512
  updated() {
1398
- G(this.$el), e.updated && e.updated.call(this);
1513
+ F(this.$el), e.updated && e.updated.call(this);
1399
1514
  }
1400
1515
  });
1401
1516
  }
1402
- const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1517
+ const Ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1403
1518
  __proto__: null,
1404
- addComponentOverride: gs,
1405
- addOverrideClass: G,
1406
- applyGlobalOverride: bs,
1407
- createOverrideComponent: hs,
1408
- forceRefreshStyles: vs
1409
- }, Symbol.toStringTag, { value: "Module" })), J = [Z, qe, He, We, Ze, Xe, Ye, Ke, et, tt, st, nt, ot, at, it, mt, pt, gt, ce, ue, Ft, Ut, qt, Ht, Xt, os, ls, ms, _s], $s = [
1410
- { id: "global-message-container", component: ce },
1411
- { id: "global-notification-container", component: ue }
1519
+ addComponentOverride: Es,
1520
+ addOverrideClass: F,
1521
+ applyGlobalOverride: Bs,
1522
+ createOverrideComponent: Ns,
1523
+ forceRefreshStyles: xs
1524
+ }, Symbol.toStringTag, { value: "Module" })), Y = [J, Ze, Je, Ke, Qe, et, tt, st, nt, ot, at, rt, ct, lt, dt, _t, bt, ht, pe, fe, Ut, Wt, Zt, Jt, es, cs, us, _s, vs, $s, Os], js = [
1525
+ { id: "global-message-container", component: pe },
1526
+ { id: "global-notification-container", component: fe }
1412
1527
  ];
1413
- function Ms(n) {
1414
- return W(this, arguments, function* ({ id: e, component: s }) {
1528
+ function As(n) {
1529
+ return Z(this, arguments, function* ({ id: e, component: t }) {
1415
1530
  try {
1416
1531
  if (document.getElementById(e)) return;
1417
- const { createApp: t, h: o } = yield import("vue"), a = document.createElement("div");
1418
- a.id = e, document.body.appendChild(a), t({
1419
- render: () => o(s)
1532
+ const { createApp: s, h: o } = yield import("vue"), a = document.createElement("div");
1533
+ a.id = e, document.body.appendChild(a), s({
1534
+ render: () => o(t)
1420
1535
  }).mount(`#${e}`);
1421
- } catch (t) {
1422
- console.warn(`Failed to create global component ${e}:`, t);
1536
+ } catch (s) {
1537
+ console.warn(`Failed to create global component ${e}:`, s);
1423
1538
  }
1424
1539
  });
1425
1540
  }
1426
- function Cs() {
1427
- return W(this, null, function* () {
1428
- const e = $s.map(Ms);
1541
+ function Vs() {
1542
+ return Z(this, null, function* () {
1543
+ const e = js.map(As);
1429
1544
  yield Promise.all(e);
1430
1545
  });
1431
1546
  }
1432
- const c = {};
1433
- function ks(e) {
1434
- const s = J.map((n) => {
1547
+ const m = {};
1548
+ function Ls(e) {
1549
+ const t = Y.map((n) => {
1435
1550
  if (n && n.name && typeof n.name == "string") {
1436
- let t = n.name.toLowerCase();
1551
+ let s = n.name.toLowerCase();
1437
1552
  return {
1438
1553
  mradiogroup: "m-radio-group",
1439
1554
  mradiobutton: "m-radio-button",
@@ -1442,26 +1557,28 @@ function ks(e) {
1442
1557
  mtabs: "m-tabs",
1443
1558
  mtabpane: "m-tab-pane",
1444
1559
  mtabcard: "m-tab-card",
1445
- mtabcarditem: "m-tab-card-item"
1446
- }[t] || t.replace(/^m/, "m-");
1560
+ mtabcarditem: "m-tab-card-item",
1561
+ mbreadcrumb: "m-breadcrumb",
1562
+ mbreadcrumbitem: "m-breadcrumb-item"
1563
+ }[s] || s.replace(/^m/, "m-");
1447
1564
  }
1448
1565
  return null;
1449
1566
  }).filter(Boolean);
1450
- Object.entries(ee).forEach(([n, t]) => {
1451
- if (t && t.name && typeof t.name == "string" && t.name.startsWith("El")) {
1452
- const o = "m-" + t.name.slice(2).replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
1453
- s.includes(o) || e._context.components[o] || e.component(o, t);
1454
- const a = "M" + t.name.slice(2);
1455
- c[a] = t;
1567
+ Object.entries(ce).forEach(([n, s]) => {
1568
+ if (s && s.name && typeof s.name == "string" && s.name.startsWith("El")) {
1569
+ const o = "m-" + s.name.slice(2).replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
1570
+ t.includes(o) || e._context.components[o] || e.component(o, s);
1571
+ const a = "M" + s.name.slice(2);
1572
+ m[a] = s;
1456
1573
  }
1457
1574
  });
1458
1575
  }
1459
- const Ts = (e) => {
1460
- typeof window != "undefined" && Promise.resolve().then(() => ys).then(({ applyGlobalOverride: s }) => {
1461
- s();
1462
- }), console.log("🚀 开始安装 @mc-markets/ui 组件库..."), J.forEach((s) => {
1463
- if (s && s.name && typeof s.name == "string") {
1464
- let n = s.name.toLowerCase();
1576
+ const Rs = (e) => {
1577
+ typeof window != "undefined" && Promise.resolve().then(() => Ps).then(({ applyGlobalOverride: t }) => {
1578
+ t();
1579
+ }), console.log("🚀 开始安装 @mc-markets/ui 组件库..."), Y.forEach((t) => {
1580
+ if (t && t.name && typeof t.name == "string") {
1581
+ let n = t.name.toLowerCase();
1465
1582
  n = {
1466
1583
  mradiogroup: "m-radio-group",
1467
1584
  mradiobutton: "m-radio-button",
@@ -1470,15 +1587,17 @@ const Ts = (e) => {
1470
1587
  mtabs: "m-tabs",
1471
1588
  mtabpane: "m-tab-pane",
1472
1589
  mtabcard: "m-tab-card",
1473
- mtabcarditem: "m-tab-card-item"
1474
- }[n] || n.replace(/^m/, "m-"), e.component(n, s);
1590
+ mtabcarditem: "m-tab-card-item",
1591
+ mbreadcrumb: "m-breadcrumb",
1592
+ mbreadcrumbitem: "m-breadcrumb-item"
1593
+ }[n] || n.replace(/^m/, "m-"), e.component(n, t);
1475
1594
  }
1476
- }), ks(e), typeof window != "undefined" && Cs();
1595
+ }), Ls(e), typeof window != "undefined" && Vs();
1477
1596
  };
1478
- function Ys(e) {
1479
- const s = Object.keys(e._context.components || {}), n = J.map((t) => {
1480
- if (t && t.name && typeof t.name == "string") {
1481
- let o = t.name.toLowerCase();
1597
+ function pn(e) {
1598
+ const t = Object.keys(e._context.components || {}), n = Y.map((s) => {
1599
+ if (s && s.name && typeof s.name == "string") {
1600
+ let o = s.name.toLowerCase();
1482
1601
  return {
1483
1602
  mradiogroup: "m-radio-group",
1484
1603
  mradiobutton: "m-radio-button",
@@ -1487,90 +1606,92 @@ function Ys(e) {
1487
1606
  mtabs: "m-tabs",
1488
1607
  mtabpane: "m-tab-pane",
1489
1608
  mtabcard: "m-tab-card",
1490
- mtabcarditem: "m-tab-card-item"
1609
+ mtabcarditem: "m-tab-card-item",
1610
+ mbreadcrumb: "m-breadcrumb",
1611
+ mbreadcrumbitem: "m-breadcrumb-item"
1491
1612
  }[o] || o.replace(/^m/, "m-");
1492
1613
  }
1493
1614
  return null;
1494
1615
  }).filter(Boolean);
1495
- return console.log("📊 组件注册状态报告:"), console.log("已注册的组件:", s.filter((t) => t.startsWith("m-"))), console.log("自定义组件:", n), {
1496
- registered: s,
1616
+ return console.log("📊 组件注册状态报告:"), console.log("已注册的组件:", t.filter((s) => s.startsWith("m-"))), console.log("自定义组件:", n), {
1617
+ registered: t,
1497
1618
  custom: n,
1498
- conflicts: s.filter(
1499
- (t) => t.startsWith("m-") && n.includes(t)
1619
+ conflicts: t.filter(
1620
+ (s) => s.startsWith("m-") && n.includes(s)
1500
1621
  )
1501
1622
  };
1502
1623
  }
1503
- const Ks = { install: Ts }, en = ee.ElMessageBox, tn = k({}, c), sn = c.MButtonGroup, nn = c.MBreadcrumb, on = c.MBreadcrumbItem, an = c.MCarousel, rn = c.MCarouselItem, ln = c.MCascader, cn = c.MCascaderPanel, un = c.MCheckTag, dn = c.MCalendar, mn = c.MTimePicker, pn = c.MDateTimePicker, fn = c.MColorPicker, _n = c.MTransfer, gn = c.MTree, bn = c.MTreeSelect, vn = c.MUpload, hn = c.MImage, yn = c.MImageViewer, $n = c.MBacktop, Mn = c.MInfiniteScroll, Cn = c.MAffix, kn = c.MScrollbar, Tn = c.MResult, Sn = c.MSkeleton, In = c.MLoading, wn = c.MSpinner, Bn = c.MProgress, On = c.MBadge, En = c.MAvatar, xn = c.MImagePreview, Pn = c.MTeleport, An = c.MConfigProvider;
1624
+ const fn = { install: Rs }, _n = ce.ElMessageBox, bn = I({}, m), gn = m.MButtonGroup, vn = m.MCarousel, hn = m.MCarouselItem, yn = m.MCascader, $n = m.MCascaderPanel, Mn = m.MCheckTag, Cn = m.MCalendar, kn = m.MTimePicker, In = m.MDateTimePicker, Sn = m.MColorPicker, Tn = m.MTransfer, wn = m.MTree, On = m.MTreeSelect, En = m.MUpload, Bn = m.MImage, xn = m.MImageViewer, Nn = m.MBacktop, Pn = m.MInfiniteScroll, jn = m.MAffix, An = m.MScrollbar, Vn = m.MResult, Ln = m.MSkeleton, Rn = m.MLoading, zn = m.MSpinner, Dn = m.MProgress, Gn = m.MBadge, Fn = m.MAvatar, Un = m.MImagePreview, qn = m.MTeleport, Hn = m.MConfigProvider;
1504
1625
  export {
1505
- Cn as MAffix,
1506
- mt as MAlert,
1507
- En as MAvatar,
1508
- $n as MBacktop,
1509
- On as MBadge,
1510
- Xt as MBanner,
1511
- nn as MBreadcrumb,
1512
- on as MBreadcrumbItem,
1513
- qe as MButton,
1514
- sn as MButtonGroup,
1515
- dn as MCalendar,
1516
- an as MCarousel,
1517
- rn as MCarouselItem,
1518
- ln as MCascader,
1519
- cn as MCascaderPanel,
1520
- un as MCheckTag,
1521
- fn as MColorPicker,
1522
- An as MConfigProvider,
1523
- Ft as MDatePicker,
1524
- pn as MDateTimePicker,
1525
- pt as MDialog,
1526
- Ut as MEmpty,
1527
- We as MForm,
1528
- Ze as MFormItem,
1529
- Z as MIcon,
1530
- hn as MImage,
1531
- xn as MImagePreview,
1532
- yn as MImageViewer,
1533
- Mn as MInfiniteScroll,
1534
- He as MInput,
1535
- In as MLoading,
1536
- ce as MMessage,
1537
- en as MMessageBox,
1538
- ue as MNotifiMessage,
1539
- gt as MNotification,
1540
- tt as MPagination,
1541
- Bn as MProgress,
1542
- st as MRadio,
1543
- ot as MRadioButton,
1544
- nt as MRadioGroup,
1545
- Tn as MResult,
1546
- kn as MScrollbar,
1547
- Ye as MSelect,
1548
- Sn as MSkeleton,
1549
- wn as MSpinner,
1550
- at as MSwitch,
1551
- ms as MTabCard,
1552
- _s as MTabCardItem,
1553
- ls as MTabPane,
1554
- qt as MTable,
1555
- Ht as MTableColumn,
1556
- os as MTabs,
1557
- it as MTag,
1558
- Pn as MTeleport,
1559
- mn as MTimePicker,
1560
- Xe as MTooltip,
1561
- _n as MTransfer,
1562
- gn as MTree,
1563
- bn as MTreeSelect,
1564
- vn as MUpload,
1565
- vt as Message,
1566
- Xs as NotifiMessage,
1567
- gs as addComponentOverride,
1568
- G as addOverrideClass,
1569
- bs as applyGlobalOverride,
1570
- Ys as checkComponentRegistration,
1571
- hs as createOverrideComponent,
1572
- Ks as default,
1573
- vs as forceRefreshStyles,
1574
- tn as mComponents
1626
+ jn as MAffix,
1627
+ _t as MAlert,
1628
+ Fn as MAvatar,
1629
+ Nn as MBacktop,
1630
+ Gn as MBadge,
1631
+ es as MBanner,
1632
+ $s as MBreadcrumb,
1633
+ Os as MBreadcrumbItem,
1634
+ Ze as MButton,
1635
+ gn as MButtonGroup,
1636
+ Cn as MCalendar,
1637
+ vn as MCarousel,
1638
+ hn as MCarouselItem,
1639
+ yn as MCascader,
1640
+ $n as MCascaderPanel,
1641
+ Mn as MCheckTag,
1642
+ Sn as MColorPicker,
1643
+ Hn as MConfigProvider,
1644
+ Ut as MDatePicker,
1645
+ In as MDateTimePicker,
1646
+ bt as MDialog,
1647
+ Wt as MEmpty,
1648
+ Ke as MForm,
1649
+ Qe as MFormItem,
1650
+ J as MIcon,
1651
+ Bn as MImage,
1652
+ Un as MImagePreview,
1653
+ xn as MImageViewer,
1654
+ Pn as MInfiniteScroll,
1655
+ Je as MInput,
1656
+ Rn as MLoading,
1657
+ pe as MMessage,
1658
+ _n as MMessageBox,
1659
+ fe as MNotifiMessage,
1660
+ ht as MNotification,
1661
+ ot as MPagination,
1662
+ Dn as MProgress,
1663
+ at as MRadio,
1664
+ ct as MRadioButton,
1665
+ rt as MRadioGroup,
1666
+ Vn as MResult,
1667
+ An as MScrollbar,
1668
+ tt as MSelect,
1669
+ Ln as MSkeleton,
1670
+ zn as MSpinner,
1671
+ lt as MSwitch,
1672
+ _s as MTabCard,
1673
+ vs as MTabCardItem,
1674
+ us as MTabPane,
1675
+ Zt as MTable,
1676
+ Jt as MTableColumn,
1677
+ cs as MTabs,
1678
+ dt as MTag,
1679
+ qn as MTeleport,
1680
+ kn as MTimePicker,
1681
+ et as MTooltip,
1682
+ Tn as MTransfer,
1683
+ wn as MTree,
1684
+ On as MTreeSelect,
1685
+ En as MUpload,
1686
+ $t as Message,
1687
+ mn as NotifiMessage,
1688
+ Es as addComponentOverride,
1689
+ F as addOverrideClass,
1690
+ Bs as applyGlobalOverride,
1691
+ pn as checkComponentRegistration,
1692
+ Ns as createOverrideComponent,
1693
+ fn as default,
1694
+ xs as forceRefreshStyles,
1695
+ bn as mComponents
1575
1696
  };
1576
1697
  //# sourceMappingURL=index.mjs.map