@mc-markets/ui 1.0.94 → 1.0.97

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