@mc-markets/ui 1.1.45 → 1.1.47

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
@@ -19,7 +19,7 @@ var Se = (e, t) => {
19
19
  t.indexOf(o) < 0 && st.call(e, o) && (n[o] = e[o]);
20
20
  return n;
21
21
  };
22
- var Ne = (e, t, n) => new Promise((o, a) => {
22
+ var Fe = (e, t, n) => new Promise((o, a) => {
23
23
  var l = (i) => {
24
24
  try {
25
25
  r(n.next(i));
@@ -37,7 +37,7 @@ var Ne = (e, t, n) => new Promise((o, a) => {
37
37
  });
38
38
  import * as pt from "element-plus";
39
39
  import { ElForm as nn } from "element-plus";
40
- import { computed as R, createElementBlock as m, openBlock as d, mergeProps as S, renderSlot as y, ref as _, createBlock as E, createSlots as O, renderList as M, withCtx as $, unref as j, useAttrs as Ie, createCommentVNode as N, createElementVNode as C, Fragment as H, normalizeClass as U, mergeModels as Re, useModel as je, createVNode as x, normalizeProps as vt, guardReactiveProps as gt, Teleport as Te, TransitionGroup as _t, resolveDynamicComponent as ht, toDisplayString as K, useSlots as on, watch as V, normalizeStyle as bt, createTextVNode as Ue, provide as Oe, onMounted as ke, nextTick as le, onUnmounted as Ye, withDirectives as xe, vShow as Pe, inject as He, onDeactivated as Ae, isRef as sn, onActivated as Ke, reactive as an, getCurrentInstance as yt, defineComponent as ge, onBeforeUnmount as Ct, watchEffect as rn, Transition as $t } from "vue";
40
+ import { computed as R, createElementBlock as m, openBlock as d, mergeProps as S, renderSlot as h, ref as _, createBlock as E, createSlots as O, renderList as M, withCtx as $, unref as j, useAttrs as Te, createCommentVNode as D, createElementVNode as C, Fragment as K, normalizeClass as U, mergeModels as Re, useModel as ze, createVNode as x, normalizeProps as vt, guardReactiveProps as gt, Teleport as Oe, TransitionGroup as _t, resolveDynamicComponent as ht, toDisplayString as Y, useSlots as on, watch as V, normalizeStyle as bt, createTextVNode as we, provide as ke, onMounted as xe, nextTick as le, onUnmounted as Ye, withDirectives as Pe, vShow as Ae, inject as He, onDeactivated as Le, isRef as sn, onActivated as Ke, reactive as an, getCurrentInstance as yt, defineComponent as ge, onBeforeUnmount as Ct, watchEffect as rn, Transition as $t } from "vue";
41
41
  import { ElButton as ln, ElInput as cn, ElFormItem as un, ElTooltip as dn, ElSelect as fn, ElOption as mn, ElOptionGroup as pn, ElPagination as vn, ElRadio as gn, ElRadioGroup as _n, ElRadioButton as hn, ElSwitch as bn, ElTag as yn, ElAlert as Cn, ElDialog as $n, ElNotification as Sn, ElDatePicker as En, ElEmpty as Mn, ElTable as Rn, ElTableColumn as wn } from "element-plus/es";
42
42
  import "element-plus/es/components/base/style/index";
43
43
  import "element-plus/es/components/button/style/index";
@@ -118,10 +118,10 @@ const G = (e, t) => {
118
118
  class: a.value,
119
119
  style: l.value
120
120
  }, r.$attrs, { onClick: s }), [
121
- y(r.$slots, "default", {}, void 0, !0)
121
+ h(r.$slots, "default", {}, void 0, !0)
122
122
  ], 16));
123
123
  }
124
- }), ze = /* @__PURE__ */ G(In, [["__scopeId", "data-v-74564eea"]]);
124
+ }), Ve = /* @__PURE__ */ G(In, [["__scopeId", "data-v-74564eea"]]);
125
125
  function L(e = "innerRef", t = {}) {
126
126
  const { compatibilityKeys: n = {} } = t, o = _(), a = new Proxy({}, {
127
127
  get(l, s) {
@@ -136,8 +136,8 @@ function L(e = "innerRef", t = {}) {
136
136
  return () => o.value;
137
137
  if (s === "call")
138
138
  return (u, ...v) => {
139
- var h, k;
140
- return (k = (h = o.value) == null ? void 0 : h[u]) == null ? void 0 : k.call(h, ...v);
139
+ var b, k;
140
+ return (k = (b = o.value) == null ? void 0 : b[u]) == null ? void 0 : k.call(b, ...v);
141
141
  };
142
142
  const i = o.value;
143
143
  if (!i) return;
@@ -191,7 +191,7 @@ const Tn = /* @__PURE__ */ Object.assign({
191
191
  M(a.$slots, (r, i) => ({
192
192
  name: i,
193
193
  fn: $(() => [
194
- y(a.$slots, i, {}, void 0, !0)
194
+ h(a.$slots, i, {}, void 0, !0)
195
195
  ])
196
196
  }))
197
197
  ]), 1040);
@@ -214,7 +214,7 @@ const Tn = /* @__PURE__ */ Object.assign({
214
214
  M(a.$slots, (r, i) => ({
215
215
  name: i,
216
216
  fn: $(() => [
217
- y(a.$slots, i)
217
+ h(a.$slots, i)
218
218
  ])
219
219
  }))
220
220
  ]), 1040, ["class"]);
@@ -233,7 +233,7 @@ const Tn = /* @__PURE__ */ Object.assign({
233
233
  M(a.$slots, (s, r) => ({
234
234
  name: r,
235
235
  fn: $(() => [
236
- y(a.$slots, r)
236
+ h(a.$slots, r)
237
237
  ])
238
238
  }))
239
239
  ]), 1040));
@@ -254,7 +254,7 @@ const Tn = /* @__PURE__ */ Object.assign({
254
254
  M(a.$slots, (r, i) => ({
255
255
  name: i,
256
256
  fn: $(() => [
257
- y(a.$slots, i)
257
+ h(a.$slots, i)
258
258
  ])
259
259
  }))
260
260
  ]), 1040);
@@ -267,7 +267,7 @@ const Tn = /* @__PURE__ */ Object.assign({
267
267
  }), n;
268
268
  };
269
269
  function ce(e, t = "popperClass") {
270
- const n = Ie(), o = R(() => Ln(n, t)), a = R(() => An(e, n[t]));
270
+ const n = Te(), o = R(() => Ln(n, t)), a = R(() => An(e, n[t]));
271
271
  return {
272
272
  mergedAttrs: o,
273
273
  className: a
@@ -294,13 +294,13 @@ const Bn = /* @__PURE__ */ Object.assign({
294
294
  M(s.$slots, (c, u) => ({
295
295
  name: u,
296
296
  fn: $(() => [
297
- y(s.$slots, u)
297
+ h(s.$slots, u)
298
298
  ])
299
299
  }))
300
300
  ]), 1040, ["popper-class"]);
301
301
  };
302
302
  }
303
- }), Dn = /* @__PURE__ */ Object.assign({
303
+ }), Nn = /* @__PURE__ */ Object.assign({
304
304
  name: "MSelect"
305
305
  }, {
306
306
  __name: "Select",
@@ -317,13 +317,13 @@ const Bn = /* @__PURE__ */ Object.assign({
317
317
  M(a.$slots, (r, i) => ({
318
318
  name: i,
319
319
  fn: $(() => [
320
- y(a.$slots, i)
320
+ h(a.$slots, i)
321
321
  ])
322
322
  }))
323
323
  ]), 1040, ["class"]);
324
324
  };
325
325
  }
326
- }), Nn = /* @__PURE__ */ Object.assign({
326
+ }), Dn = /* @__PURE__ */ Object.assign({
327
327
  name: "MOption"
328
328
  }, {
329
329
  __name: "Option",
@@ -338,7 +338,7 @@ const Bn = /* @__PURE__ */ Object.assign({
338
338
  M(a.$slots, (r, i) => ({
339
339
  name: i,
340
340
  fn: $(() => [
341
- y(a.$slots, i)
341
+ h(a.$slots, i)
342
342
  ])
343
343
  }))
344
344
  ]), 1040);
@@ -359,7 +359,7 @@ const Bn = /* @__PURE__ */ Object.assign({
359
359
  M(a.$slots, (r, i) => ({
360
360
  name: i,
361
361
  fn: $(() => [
362
- y(a.$slots, i)
362
+ h(a.$slots, i)
363
363
  ])
364
364
  }))
365
365
  ]), 1040);
@@ -380,7 +380,7 @@ const Bn = /* @__PURE__ */ Object.assign({
380
380
  M(a.$slots, (r, i) => ({
381
381
  name: i,
382
382
  fn: $(() => [
383
- y(a.$slots, i)
383
+ h(a.$slots, i)
384
384
  ])
385
385
  }))
386
386
  ]), 1040);
@@ -407,7 +407,7 @@ const Bn = /* @__PURE__ */ Object.assign({
407
407
  M(l.$slots, (i, c) => ({
408
408
  name: c,
409
409
  fn: $(() => [
410
- y(l.$slots, c)
410
+ h(l.$slots, c)
411
411
  ])
412
412
  }))
413
413
  ]), 1040);
@@ -424,7 +424,7 @@ const Bn = /* @__PURE__ */ Object.assign({
424
424
  }
425
425
  },
426
426
  setup(e, { expose: t }) {
427
- const n = Ie(), o = R(() => {
427
+ const n = Te(), o = R(() => {
428
428
  const r = "mc-radio-group-popper";
429
429
  return n.popperClass ? `${r} ${n.popperClass}`.trim() : r;
430
430
  }), a = R(() => {
@@ -443,7 +443,7 @@ const Bn = /* @__PURE__ */ Object.assign({
443
443
  M(r.$slots, (u, v) => ({
444
444
  name: v,
445
445
  fn: $(() => [
446
- y(r.$slots, v)
446
+ h(r.$slots, v)
447
447
  ])
448
448
  }))
449
449
  ]), 1040, ["popper-class"]);
@@ -470,7 +470,7 @@ const Bn = /* @__PURE__ */ Object.assign({
470
470
  M(l.$slots, (i, c) => ({
471
471
  name: c,
472
472
  fn: $(() => [
473
- y(l.$slots, c)
473
+ h(l.$slots, c)
474
474
  ])
475
475
  }))
476
476
  ]), 1040);
@@ -500,7 +500,7 @@ const Bn = /* @__PURE__ */ Object.assign({
500
500
  M(s.$slots, (c, u) => ({
501
501
  name: u,
502
502
  fn: $(() => [
503
- y(s.$slots, u)
503
+ h(s.$slots, u)
504
504
  ])
505
505
  }))
506
506
  ]), 1040, ["popper-class"]);
@@ -545,24 +545,24 @@ const Bn = /* @__PURE__ */ Object.assign({
545
545
  type: o.value,
546
546
  class: ["m-tag", { "is-loading": a.value }]
547
547
  }), O({ _: 2 }, [
548
- M(c.$slots, (h, k) => ({
548
+ M(c.$slots, (b, k) => ({
549
549
  name: k,
550
550
  fn: $(() => [
551
551
  a.value && !l.value ? (d(), m("div", Un, [
552
552
  C("div", Yn, [
553
- (d(), m(H, null, M(8, (B) => C("div", { key: B })), 64))
553
+ (d(), m(K, null, M(8, (B) => C("div", { key: B })), 64))
554
554
  ])
555
555
  ])) : l.value ? (d(), m("i", {
556
556
  key: 1,
557
557
  class: U(["prefixIcon", ["iconfont", l.value]])
558
- }, null, 2)) : N("", !0),
558
+ }, null, 2)) : D("", !0),
559
559
  C("div", null, [
560
- y(c.$slots, k)
560
+ h(c.$slots, k)
561
561
  ]),
562
562
  s.value ? (d(), m("i", {
563
563
  key: 2,
564
564
  class: U(["suffixIcon", ["iconfont", s.value]])
565
- }, null, 2)) : N("", !0)
565
+ }, null, 2)) : D("", !0)
566
566
  ])
567
567
  }))
568
568
  ]), 1040, ["type", "class"]);
@@ -583,7 +583,7 @@ const Bn = /* @__PURE__ */ Object.assign({
583
583
  }
584
584
  },
585
585
  setup(e) {
586
- const t = e, n = Ie(), o = R(() => {
586
+ const t = e, n = Te(), o = R(() => {
587
587
  const r = n, { useCustomIcon: l } = r, s = Se(r, ["useCustomIcon"]);
588
588
  return Q(W({}, s), {
589
589
  type: t.type
@@ -607,7 +607,7 @@ const Bn = /* @__PURE__ */ Object.assign({
607
607
  M(l.$slots, (i, c) => ({
608
608
  name: c,
609
609
  fn: $(() => [
610
- y(l.$slots, c)
610
+ h(l.$slots, c)
611
611
  ])
612
612
  }))
613
613
  ]), 1040);
@@ -647,7 +647,7 @@ const Bn = /* @__PURE__ */ Object.assign({
647
647
  }),
648
648
  emits: /* @__PURE__ */ Re(["close"], ["update:modelValue"]),
649
649
  setup(e, { expose: t, emit: n }) {
650
- const o = je(e, "modelValue"), { innerRef: a, exposedProxy: l } = L("dialogRef");
650
+ const o = ze(e, "modelValue"), { innerRef: a, exposedProxy: l } = L("dialogRef");
651
651
  return t(l), (s, r) => {
652
652
  const i = $n;
653
653
  return d(), m("div", null, [
@@ -667,21 +667,21 @@ const Bn = /* @__PURE__ */ Object.assign({
667
667
  "header-class": "m-header"
668
668
  }), O({
669
669
  default: $(() => [
670
- y(s.$slots, "default")
670
+ h(s.$slots, "default")
671
671
  ]),
672
672
  _: 2
673
673
  }, [
674
674
  s.$slots.header ? {
675
675
  name: "header",
676
676
  fn: $(({ close: c, titleId: u, titleClass: v }) => [
677
- y(s.$slots, "header", vt(gt({ close: c, titleId: u, titleClass: v })))
677
+ h(s.$slots, "header", vt(gt({ close: c, titleId: u, titleClass: v })))
678
678
  ]),
679
679
  key: "0"
680
680
  } : void 0,
681
681
  s.$slots.footer ? {
682
682
  name: "footer",
683
683
  fn: $(() => [
684
- y(s.$slots, "footer")
684
+ h(s.$slots, "footer")
685
685
  ]),
686
686
  key: "1"
687
687
  } : void 0
@@ -698,7 +698,7 @@ function eo(e, t, n, o, a, l) {
698
698
  M(e.$slots, (r, i) => ({
699
699
  name: i,
700
700
  fn: $(() => [
701
- y(e.$slots, i)
701
+ h(e.$slots, i)
702
702
  ])
703
703
  }))
704
704
  ]), 1040);
@@ -798,14 +798,14 @@ const oo = {
798
798
  class: "message-repeat"
799
799
  }, go = ["onClick"];
800
800
  function _o(e, t, n, o, a, l) {
801
- return d(), E(Te, { to: "body" }, [
801
+ return d(), E(Oe, { to: "body" }, [
802
802
  x(_t, {
803
803
  name: "message",
804
804
  tag: "div",
805
805
  class: "message-container"
806
806
  }, {
807
807
  default: $(() => [
808
- (d(!0), m(H, null, M(o.messages, (s) => (d(), m("div", {
808
+ (d(!0), m(K, null, M(o.messages, (s) => (d(), m("div", {
809
809
  key: s.id,
810
810
  class: U([
811
811
  "custom-message",
@@ -820,20 +820,20 @@ function _o(e, t, n, o, a, l) {
820
820
  src: s.customIcon,
821
821
  alt: "custom icon",
822
822
  class: "message-icon-img"
823
- }, null, 8, lo)) : s.type === "success" ? (d(), m("img", io)) : s.type === "warning" ? (d(), m("img", co)) : s.type === "error" ? (d(), m("img", uo)) : N("", !0)
824
- ])) : N("", !0),
823
+ }, null, 8, lo)) : s.type === "success" ? (d(), m("img", io)) : s.type === "warning" ? (d(), m("img", co)) : s.type === "error" ? (d(), m("img", uo)) : D("", !0)
824
+ ])) : D("", !0),
825
825
  C("div", fo, [
826
826
  typeof s.message == "function" ? (d(), E(ht(s.message), { key: 0 })) : s.dangerouslyUseHTMLString ? (d(), m("div", {
827
827
  key: 1,
828
828
  innerHTML: s.message
829
- }, null, 8, mo)) : (d(), m("span", po, K(s.message), 1)),
830
- s.repeatNum > 1 ? (d(), m("span", vo, K(s.repeatNum), 1)) : N("", !0)
829
+ }, null, 8, mo)) : (d(), m("span", po, Y(s.message), 1)),
830
+ s.repeatNum > 1 ? (d(), m("span", vo, Y(s.repeatNum), 1)) : D("", !0)
831
831
  ]),
832
832
  s.showClose ? (d(), m("button", {
833
833
  key: 1,
834
834
  class: "message-close",
835
835
  onClick: (r) => o.closeMessage(s.id)
836
- }, " × ", 8, go)) : N("", !0)
836
+ }, " × ", 8, go)) : D("", !0)
837
837
  ], 2))), 128))
838
838
  ]),
839
839
  _: 1
@@ -898,14 +898,14 @@ const Ha = {
898
898
  class: "notification-action"
899
899
  }, Mo = ["onClick"];
900
900
  function Ro(e, t, n, o, a, l) {
901
- return d(), E(Te, { to: "body" }, [
901
+ return d(), E(Oe, { to: "body" }, [
902
902
  x(_t, {
903
903
  name: "notification",
904
904
  tag: "div",
905
905
  class: "notification-container"
906
906
  }, {
907
907
  default: $(() => [
908
- (d(!0), m(H, null, M(o.notifications, (s) => (d(), m("div", {
908
+ (d(!0), m(K, null, M(o.notifications, (s) => (d(), m("div", {
909
909
  key: s.id,
910
910
  class: U([
911
911
  "custom-notification",
@@ -919,17 +919,17 @@ function Ro(e, t, n, o, a, l) {
919
919
  })
920
920
  ], -1)),
921
921
  C("div", Co, [
922
- C("div", $o, K(s.title), 1),
923
- C("div", So, K(s.message), 1),
922
+ C("div", $o, Y(s.title), 1),
923
+ C("div", So, Y(s.message), 1),
924
924
  s.slotContent ? (d(), m("div", Eo, [
925
925
  (d(), E(ht(s.slotContent)))
926
- ])) : N("", !0)
926
+ ])) : D("", !0)
927
927
  ]),
928
928
  s.showClose ? (d(), m("button", {
929
929
  key: 0,
930
930
  class: "notification-close",
931
931
  onClick: (r) => o.closeNotification(s.id)
932
- }, " × ", 8, Mo)) : N("", !0)
932
+ }, " × ", 8, Mo)) : D("", !0)
933
933
  ], 2))), 128))
934
934
  ]),
935
935
  _: 1
@@ -966,7 +966,7 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
966
966
  M(s.$slots, (c, u) => ({
967
967
  name: u,
968
968
  fn: $(() => [
969
- y(s.$slots, u)
969
+ h(s.$slots, u)
970
970
  ])
971
971
  }))
972
972
  ]), 1040, ["popper-class", "class"]);
@@ -1000,7 +1000,7 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
1000
1000
  }
1001
1001
  },
1002
1002
  setup(e, { expose: t }) {
1003
- const n = e, o = Ie(), a = R(() => {
1003
+ const n = e, o = Te(), a = R(() => {
1004
1004
  const u = o, { image: i } = u;
1005
1005
  return Se(u, ["image"]);
1006
1006
  }), l = R(() => {
@@ -1013,10 +1013,10 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
1013
1013
  ref_key: "emptyRef",
1014
1014
  ref: s
1015
1015
  }, a.value, { image: l.value }), O({ _: 2 }, [
1016
- M(i.$slots, (v, h) => ({
1017
- name: h,
1016
+ M(i.$slots, (v, b) => ({
1017
+ name: b,
1018
1018
  fn: $(() => [
1019
- y(i.$slots, h)
1019
+ h(i.$slots, b)
1020
1020
  ])
1021
1021
  }))
1022
1022
  ]), 1040, ["image"]);
@@ -1037,7 +1037,7 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
1037
1037
  M(a.$slots, (r, i) => ({
1038
1038
  name: i,
1039
1039
  fn: $(() => [
1040
- y(a.$slots, i)
1040
+ h(a.$slots, i)
1041
1041
  ])
1042
1042
  }))
1043
1043
  ]), 1040);
@@ -1054,7 +1054,7 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
1054
1054
  M(t.$slots, (a, l) => ({
1055
1055
  name: l,
1056
1056
  fn: $((s) => [
1057
- y(t.$slots, l, vt(gt(s || {})))
1057
+ h(t.$slots, l, vt(gt(s || {})))
1058
1058
  ])
1059
1059
  }))
1060
1060
  ]), 1040);
@@ -1163,16 +1163,16 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
1163
1163
  }, [
1164
1164
  C("div", Po, [
1165
1165
  e.icon || j(o).icon ? (d(), m("div", Ao, [
1166
- y(u.$slots, "icon", {}, () => [
1167
- x(ze, {
1166
+ h(u.$slots, "icon", {}, () => [
1167
+ x(Ve, {
1168
1168
  name: e.icon,
1169
1169
  size: e.iconSize
1170
1170
  }, null, 8, ["name", "size"])
1171
1171
  ], !0)
1172
- ])) : N("", !0),
1172
+ ])) : D("", !0),
1173
1173
  C("div", Lo, [
1174
- y(u.$slots, "default", {}, () => [
1175
- Ue(K(e.content), 1)
1174
+ h(u.$slots, "default", {}, () => [
1175
+ we(Y(e.content), 1)
1176
1176
  ], !0)
1177
1177
  ]),
1178
1178
  e.closable ? (d(), m("div", {
@@ -1180,20 +1180,20 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
1180
1180
  class: "m-banner__close",
1181
1181
  onClick: c
1182
1182
  }, [
1183
- x(ze, {
1183
+ x(Ve, {
1184
1184
  name: "lucide-x",
1185
1185
  size: e.closeIconSize
1186
1186
  }, null, 8, ["size"])
1187
- ])) : N("", !0)
1187
+ ])) : D("", !0)
1188
1188
  ])
1189
- ], 6)) : N("", !0);
1189
+ ], 6)) : D("", !0);
1190
1190
  }
1191
- }), Do = /* @__PURE__ */ G(Bo, [["__scopeId", "data-v-00c80323"]]);
1192
- function we(e) {
1191
+ }), No = /* @__PURE__ */ G(Bo, [["__scopeId", "data-v-00c80323"]]);
1192
+ function Ie(e) {
1193
1193
  e && e.classList && e.classList.add("mc-ui-override");
1194
1194
  }
1195
- function No(e) {
1196
- e && e.$el && we(e.$el);
1195
+ function Do(e) {
1196
+ e && e.$el && Ie(e.$el);
1197
1197
  }
1198
1198
  function Fo() {
1199
1199
  typeof document != "undefined" && (document.body.classList.add("mc-ui-override"), new MutationObserver((t) => {
@@ -1245,7 +1245,7 @@ function zo(e = '[class*="el-"]') {
1245
1245
  o && !o.classList.contains("mc-ui-override") && o.classList.add("mc-ui-override");
1246
1246
  });
1247
1247
  }
1248
- function Ve(e = 768) {
1248
+ function Ge(e = 768) {
1249
1249
  if (typeof window == "undefined" || typeof document == "undefined")
1250
1250
  return !1;
1251
1251
  if (document.documentElement.classList.contains("mc-h5"))
@@ -1256,23 +1256,23 @@ function Ve(e = 768) {
1256
1256
  function Vo(e) {
1257
1257
  return Q(W({}, e), {
1258
1258
  mounted() {
1259
- we(this.$el), e.mounted && e.mounted.call(this);
1259
+ Ie(this.$el), e.mounted && e.mounted.call(this);
1260
1260
  },
1261
1261
  updated() {
1262
- we(this.$el), e.updated && e.updated.call(this);
1262
+ Ie(this.$el), e.updated && e.updated.call(this);
1263
1263
  }
1264
1264
  });
1265
1265
  }
1266
1266
  const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1267
1267
  __proto__: null,
1268
- addComponentOverride: No,
1269
- addOverrideClass: we,
1268
+ addComponentOverride: Do,
1269
+ addOverrideClass: Ie,
1270
1270
  applyGlobalOverride: Fo,
1271
1271
  createOverrideComponent: Vo,
1272
1272
  enableH5Override: jo,
1273
1273
  forceRefreshStyles: zo,
1274
- isH5: Ve
1275
- }, Symbol.toStringTag, { value: "Module" })), D = {
1274
+ isH5: Ge
1275
+ }, Symbol.toStringTag, { value: "Module" })), N = {
1276
1276
  // 滚动相关
1277
1277
  SCROLL_RATIO: 0.8,
1278
1278
  // 滚动比例
@@ -1321,21 +1321,21 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1321
1321
  },
1322
1322
  emits: ["update:modelValue", "tab-click", "tab-remove", "tab-change", "tab-add", "edit"],
1323
1323
  setup(e, { emit: t, slots: n }) {
1324
- const o = _(null), a = _(null), l = _(null), s = _([]), r = _(e.modelValue), i = _(0), c = _(0), u = _([]), v = _(!1), h = _(!1), k = _({ width: "0px", left: "0px" });
1324
+ const o = _(null), a = _(null), l = _(null), s = _([]), r = _(e.modelValue), i = _(0), c = _(0), u = _([]), v = _(!1), b = _(!1), k = _({ width: "0px", left: "0px" });
1325
1325
  let B = null, z = null, F = null, te = !1, ue = !1, X = null;
1326
1326
  const de = () => {
1327
1327
  k.value = { width: "0px", left: "0px" };
1328
1328
  }, be = (f) => {
1329
1329
  let p = f.offsetLeft;
1330
- if (Ve()) {
1330
+ if (Ge()) {
1331
1331
  const w = window.getComputedStyle(o.value), P = parseFloat(w.paddingLeft) || 0;
1332
- if (Math.abs(p - P) > D.H5_POSITION_TOLERANCE) {
1332
+ if (Math.abs(p - P) > N.H5_POSITION_TOLERANCE) {
1333
1333
  const I = o.value.getBoundingClientRect();
1334
1334
  p = f.getBoundingClientRect().left - I.left;
1335
1335
  }
1336
1336
  }
1337
1337
  return p;
1338
- }, b = (f = !0) => {
1338
+ }, y = (f = !0) => {
1339
1339
  le(() => {
1340
1340
  if (!o.value || s.value.length === 0 || !r.value) {
1341
1341
  de();
@@ -1351,46 +1351,46 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1351
1351
  de();
1352
1352
  return;
1353
1353
  }
1354
- const T = be(P) + P.offsetWidth / 2 - D.ACTIVE_BAR_OFFSET;
1354
+ const T = be(P) + P.offsetWidth / 2 - N.ACTIVE_BAR_OFFSET;
1355
1355
  k.value = {
1356
- width: `${D.ACTIVE_BAR_WIDTH}px`,
1356
+ width: `${N.ACTIVE_BAR_WIDTH}px`,
1357
1357
  left: `${T}px`
1358
- }, f && Y(P);
1358
+ }, f && H(P);
1359
1359
  });
1360
- }, Y = (f) => {
1360
+ }, H = (f) => {
1361
1361
  if (!a.value || !f) return;
1362
1362
  const p = a.value, w = p.clientWidth, P = p.scrollLeft, I = f.offsetLeft, T = f.offsetWidth, A = I + T;
1363
- if (Ve()) {
1363
+ if (Ge()) {
1364
1364
  const re = I + T / 2, Yt = o.value.scrollWidth, Ht = Math.max(0, Yt - w);
1365
1365
  let Ce = re - w / 2;
1366
1366
  Ce = Math.max(0, Math.min(Ce, Ht));
1367
- const Be = I - P, De = A - P, Kt = Be >= 0 && De <= w, tt = w * D.EDGE_THRESHOLD_RATIO, qt = Be >= 0 && Be < tt, Zt = De > w - tt && De <= w, Xt = !Kt || qt || Zt, Jt = Math.abs(P - Ce);
1368
- Xt && Jt > D.SCROLL_MIN_DIFF && p.scrollTo({ left: Ce, behavior: "smooth" });
1367
+ const Ne = I - P, De = A - P, Kt = Ne >= 0 && De <= w, tt = w * N.EDGE_THRESHOLD_RATIO, qt = Ne >= 0 && Ne < tt, Zt = De > w - tt && De <= w, Xt = !Kt || qt || Zt, Jt = Math.abs(P - Ce);
1368
+ Xt && Jt > N.SCROLL_MIN_DIFF && p.scrollTo({ left: Ce, behavior: "smooth" });
1369
1369
  } else
1370
1370
  I < P ? p.scrollTo({
1371
- left: I - D.SCROLL_MARGIN,
1371
+ left: I - N.SCROLL_MARGIN,
1372
1372
  behavior: "smooth"
1373
1373
  }) : A > P + w && p.scrollTo({
1374
- left: A - w + D.SCROLL_MARGIN,
1374
+ left: A - w + N.SCROLL_MARGIN,
1375
1375
  behavior: "smooth"
1376
1376
  });
1377
1377
  }, fe = (f) => {
1378
1378
  if (f === r.value) return;
1379
1379
  const p = r.value;
1380
- r.value = f, t("update:modelValue", f), t("tab-click", f), t("tab-change", f, p), b();
1380
+ r.value = f, t("update:modelValue", f), t("tab-click", f), t("tab-change", f, p), y();
1381
1381
  }, ne = (f) => {
1382
1382
  t("tab-remove", f), t("edit", f, "remove");
1383
1383
  }, ye = () => {
1384
1384
  t("tab-add"), t("edit", null, "add");
1385
1385
  }, me = () => {
1386
- s.value.length > 0 && (r.value && b(), J());
1386
+ s.value.length > 0 && (r.value && y(), J());
1387
1387
  }, pe = (f) => {
1388
1388
  const p = s.value.findIndex((w) => w.name === f.name);
1389
1389
  p === -1 ? s.value.push(f) : s.value[p] = f, B && clearTimeout(B), B = setTimeout(() => {
1390
1390
  le(() => {
1391
1391
  Xe(), me();
1392
1392
  });
1393
- }, D.SORT_DELAY);
1393
+ }, N.SORT_DELAY);
1394
1394
  }, Xe = () => {
1395
1395
  if (!l.value || s.value.length === 0) return;
1396
1396
  const f = l.value.querySelectorAll(".m-tab-pane");
@@ -1408,20 +1408,20 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1408
1408
  re && T.push(re);
1409
1409
  }), s.value.forEach((A) => {
1410
1410
  T.find((re) => re.name === A.name) || T.push(A);
1411
- }), T.length === s.value.length && (s.value.splice(0, s.value.length, ...T), b());
1411
+ }), T.length === s.value.length && (s.value.splice(0, s.value.length, ...T), y());
1412
1412
  }
1413
1413
  }, Je = (f) => {
1414
1414
  const p = s.value.findIndex((w) => w.name === f);
1415
1415
  p > -1 && s.value.splice(p, 1);
1416
1416
  };
1417
- Oe("tabsContext", {
1417
+ ke("tabsContext", {
1418
1418
  activeTab: r,
1419
1419
  registerTab: pe,
1420
1420
  unregisterTab: Je,
1421
1421
  handleTabRemove: ne,
1422
1422
  handleTabAdd: ye
1423
1423
  }), V(() => e.modelValue, (f, p) => {
1424
- f !== r.value && (r.value = f, t("tab-change", f, p), b());
1424
+ f !== r.value && (r.value = f, t("tab-change", f, p), y());
1425
1425
  });
1426
1426
  const jt = (f) => {
1427
1427
  if (c.value === 0) return !1;
@@ -1431,7 +1431,7 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1431
1431
  i.value++, ue = !0, le(() => {
1432
1432
  setTimeout(() => {
1433
1433
  Xe(), s.value.length > 0 && (c.value = s.value.length, u.value = s.value.map((f) => String(f.name)), me()), ue = !1;
1434
- }, D.RESET_DELAY);
1434
+ }, N.RESET_DELAY);
1435
1435
  });
1436
1436
  };
1437
1437
  V(s, (f) => {
@@ -1447,29 +1447,29 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1447
1447
  if (!a.value || !o.value) return;
1448
1448
  const f = a.value, p = o.value, w = f.scrollLeft, P = p.scrollWidth, I = f.clientWidth;
1449
1449
  if (!(P > I)) {
1450
- v.value = !1, h.value = !1;
1450
+ v.value = !1, b.value = !1;
1451
1451
  return;
1452
1452
  }
1453
1453
  const A = Math.max(0, P - I);
1454
- v.value = w > D.SCROLL_PRECISION, h.value = w < A - D.SCROLL_PRECISION;
1454
+ v.value = w > N.SCROLL_PRECISION, b.value = w < A - N.SCROLL_PRECISION;
1455
1455
  }, Qe = () => {
1456
1456
  z && (cancelAnimationFrame(z), z = null), F && (clearTimeout(F), F = null);
1457
1457
  }, Vt = () => {
1458
- J(), te || b(!1), Qe(), z = requestAnimationFrame(() => {
1458
+ J(), te || y(!1), Qe(), z = requestAnimationFrame(() => {
1459
1459
  J(), z = null;
1460
1460
  }), F = setTimeout(() => {
1461
1461
  J(), te && (te = !1), F = null;
1462
- }, D.SCROLL_DEBOUNCE);
1462
+ }, N.SCROLL_DEBOUNCE);
1463
1463
  }, et = (f) => {
1464
1464
  if (!a.value) return;
1465
1465
  te = !0;
1466
- const p = a.value.clientWidth * D.SCROLL_RATIO;
1466
+ const p = a.value.clientWidth * N.SCROLL_RATIO;
1467
1467
  a.value.scrollBy({
1468
1468
  left: f === "left" ? -p : p,
1469
1469
  behavior: "smooth"
1470
1470
  }), setTimeout(() => {
1471
1471
  J(), te = !1;
1472
- }, D.SCROLL_ANIMATION);
1472
+ }, N.SCROLL_ANIMATION);
1473
1473
  }, Gt = () => {
1474
1474
  et("left");
1475
1475
  }, Wt = () => {
@@ -1480,17 +1480,17 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1480
1480
  r.value = f.name, t("update:modelValue", r.value);
1481
1481
  }
1482
1482
  };
1483
- return ke(() => {
1484
- c.value = s.value.length, u.value = s.value.map((f) => String(f.name)), Ut(), b(), setTimeout(() => {
1485
- b();
1486
- }, D.INIT_DELAY), requestAnimationFrame(() => {
1483
+ return xe(() => {
1484
+ c.value = s.value.length, u.value = s.value.map((f) => String(f.name)), Ut(), y(), setTimeout(() => {
1485
+ y();
1486
+ }, N.INIT_DELAY), requestAnimationFrame(() => {
1487
1487
  setTimeout(() => {
1488
- b();
1489
- }, D.INIT_DELAY);
1488
+ y();
1489
+ }, N.INIT_DELAY);
1490
1490
  }), le(() => {
1491
1491
  J();
1492
1492
  }), a.value && o.value && (X = new ResizeObserver(() => {
1493
- J(), b(!1);
1493
+ J(), y(!1);
1494
1494
  }), X.observe(a.value), X.observe(o.value));
1495
1495
  }), Ye(() => {
1496
1496
  B && (clearTimeout(B), B = null), Qe(), X && (X.disconnect(), X = null);
@@ -1502,14 +1502,14 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1502
1502
  activeTab: r,
1503
1503
  activeBarStyle: k,
1504
1504
  showLeftArrow: v,
1505
- showRightArrow: h,
1505
+ showRightArrow: b,
1506
1506
  internalKey: i,
1507
1507
  handleTabClick: fe,
1508
1508
  handleTabRemove: ne,
1509
1509
  handleTabAdd: ye,
1510
1510
  registerTab: pe,
1511
1511
  unregisterTab: Je,
1512
- updateActiveBarPosition: b,
1512
+ updateActiveBarPosition: y,
1513
1513
  updateArrowVisibility: J,
1514
1514
  handleScroll: Vt,
1515
1515
  handleScrollLeft: Gt,
@@ -1529,40 +1529,40 @@ function Ko(e, t, n, o, a, l) {
1529
1529
  key: 0,
1530
1530
  class: "m-tabs__arrow m-tabs__arrow--left iconfont icon-chevron-left",
1531
1531
  onClick: t[0] || (t[0] = (...s) => o.handleScrollLeft && o.handleScrollLeft(...s))
1532
- })) : N("", !0),
1532
+ })) : D("", !0),
1533
1533
  C("div", {
1534
1534
  class: "m-tabs__header",
1535
1535
  ref: "headerRef",
1536
1536
  onScroll: t[1] || (t[1] = (...s) => o.handleScroll && o.handleScroll(...s))
1537
1537
  }, [
1538
1538
  C("div", Yo, [
1539
- (d(!0), m(H, null, M(o.tabs, (s, r) => (d(), m("div", {
1539
+ (d(!0), m(K, null, M(o.tabs, (s, r) => (d(), m("div", {
1540
1540
  key: s.name,
1541
1541
  class: U([
1542
1542
  "m-tabs__item",
1543
1543
  { "is-active": o.activeTab === s.name }
1544
1544
  ]),
1545
1545
  onClick: (i) => o.handleTabClick(s.name)
1546
- }, K(s.label), 11, Ho))), 128)),
1546
+ }, Y(s.label), 11, Ho))), 128)),
1547
1547
  n.styleType !== "solid" ? (d(), m("div", {
1548
1548
  key: 0,
1549
1549
  class: "m-tabs__active-bar",
1550
1550
  style: bt(o.activeBarStyle)
1551
- }, null, 4)) : N("", !0)
1551
+ }, null, 4)) : D("", !0)
1552
1552
  ], 512)
1553
1553
  ], 544),
1554
1554
  o.showRightArrow ? (d(), m("i", {
1555
1555
  key: 1,
1556
1556
  class: "m-tabs__arrow m-tabs__arrow--right iconfont icon-chevron-right",
1557
1557
  onClick: t[2] || (t[2] = (...s) => o.handleScrollRight && o.handleScrollRight(...s))
1558
- })) : N("", !0)
1558
+ })) : D("", !0)
1559
1559
  ]),
1560
1560
  (d(), m("div", {
1561
1561
  class: "m-tabs__content",
1562
1562
  ref: "contentRef",
1563
1563
  key: o.internalKey
1564
1564
  }, [
1565
- y(e.$slots, "default", {}, void 0, !0)
1565
+ h(e.$slots, "default", {}, void 0, !0)
1566
1566
  ]))
1567
1567
  ], 2);
1568
1568
  }
@@ -1596,7 +1596,7 @@ const qo = /* @__PURE__ */ G(Wo, [["render", Ko], ["__scopeId", "data-v-ff86167b
1596
1596
  };
1597
1597
  t.registerTab(l);
1598
1598
  };
1599
- return ke(() => {
1599
+ return xe(() => {
1600
1600
  a();
1601
1601
  }), V(() => [e.label, e.name, e.disabled, e.closable], (l, s) => {
1602
1602
  (!s || l[0] !== s[0] || l[1] !== s[1] || l[2] !== s[2] || l[3] !== s[3]) && a();
@@ -1609,13 +1609,13 @@ const qo = /* @__PURE__ */ G(Wo, [["render", Ko], ["__scopeId", "data-v-ff86167b
1609
1609
  }
1610
1610
  }, Xo = ["data-tab-name"];
1611
1611
  function Jo(e, t, n, o, a, l) {
1612
- return xe((d(), m("div", {
1612
+ return Pe((d(), m("div", {
1613
1613
  class: U(["m-tab-pane", { "is-active": o.isActive }]),
1614
1614
  "data-tab-name": o.tabName
1615
1615
  }, [
1616
- y(e.$slots, "default", {}, void 0, !0)
1616
+ h(e.$slots, "default", {}, void 0, !0)
1617
1617
  ], 10, Xo)), [
1618
- [Pe, o.isActive]
1618
+ [Ae, o.isActive]
1619
1619
  ]);
1620
1620
  }
1621
1621
  const Qo = /* @__PURE__ */ G(Zo, [["render", Jo], ["__scopeId", "data-v-f1c56283"]]), es = { class: "m-tab-card-item__text" }, ts = /* @__PURE__ */ Object.assign({
@@ -1652,8 +1652,8 @@ const Qo = /* @__PURE__ */ G(Zo, [["render", Jo], ["__scopeId", "data-v-f1c56283
1652
1652
  onClick: s
1653
1653
  }, [
1654
1654
  C("span", es, [
1655
- y(r.$slots, "default", {}, () => [
1656
- Ue(K(e.label), 1)
1655
+ h(r.$slots, "default", {}, () => [
1656
+ we(Y(e.label), 1)
1657
1657
  ], !0)
1658
1658
  ])
1659
1659
  ], 2));
@@ -1692,14 +1692,14 @@ const Qo = /* @__PURE__ */ G(Zo, [["render", Jo], ["__scopeId", "data-v-f1c56283
1692
1692
  };
1693
1693
  return V(() => n.modelValue, (r) => {
1694
1694
  r !== a.value && (a.value = r);
1695
- }), Oe("tabCardContext", {
1695
+ }), ke("tabCardContext", {
1696
1696
  activeTab: a,
1697
1697
  handleTabClick: s
1698
1698
  }), (r, i) => (d(), m("div", {
1699
1699
  class: U(["m-tab-card", { "is-disabled": e.disabled }])
1700
1700
  }, [
1701
1701
  C("div", ns, [
1702
- (d(!0), m(H, null, M(l.value, (c, u) => (d(), E(Mt, {
1702
+ (d(!0), m(K, null, M(l.value, (c, u) => (d(), E(Mt, {
1703
1703
  key: c.name,
1704
1704
  name: c.name,
1705
1705
  label: c.label,
@@ -1758,22 +1758,22 @@ const Qo = /* @__PURE__ */ G(Zo, [["render", Jo], ["__scopeId", "data-v-f1c56283
1758
1758
  }
1759
1759
  };
1760
1760
  return (a, l) => (d(), m("nav", is, [
1761
- (d(!0), m(H, null, M(e.items, (s, r) => (d(), m(H, { key: r }, [
1761
+ (d(!0), m(K, null, M(e.items, (s, r) => (d(), m(K, { key: r }, [
1762
1762
  C("span", {
1763
1763
  class: U(["m-breadcrumb__item", { "is-link": s.to }]),
1764
1764
  onClick: (i) => o(s)
1765
- }, K(s.label), 11, cs),
1765
+ }, Y(s.label), 11, cs),
1766
1766
  r < e.items.length - 1 ? (d(), E(ls, {
1767
1767
  key: 0,
1768
1768
  class: "m-breadcrumb__separator"
1769
- })) : N("", !0)
1769
+ })) : D("", !0)
1770
1770
  ], 64))), 128))
1771
1771
  ]));
1772
1772
  }
1773
1773
  }), ds = /* @__PURE__ */ G(us, [["__scopeId", "data-v-8b9e8867"]]);
1774
1774
  function fs() {
1775
1775
  }
1776
- const _e = Object.assign, Rt = typeof window != "undefined", qe = (e) => e !== null && typeof e == "object", ie = (e) => e != null, Ge = (e) => typeof e == "function", ms = (e) => qe(e) && Ge(e.then) && Ge(e.catch), wt = (e) => typeof e == "number" || /^\d+(\.\d+)?$/.test(e), ps = () => Rt ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : !1;
1776
+ const _e = Object.assign, Rt = typeof window != "undefined", qe = (e) => e !== null && typeof e == "object", ie = (e) => e != null, We = (e) => typeof e == "function", ms = (e) => qe(e) && We(e.then) && We(e.catch), wt = (e) => typeof e == "number" || /^\d+(\.\d+)?$/.test(e), ps = () => Rt ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : !1;
1777
1777
  function at(e, t) {
1778
1778
  const n = t.split(".");
1779
1779
  let o = e;
@@ -1792,7 +1792,7 @@ const It = null, ee = [Number, String], ae = {
1792
1792
  var Ze = typeof window != "undefined";
1793
1793
  function Tt(e) {
1794
1794
  let t;
1795
- ke(() => {
1795
+ xe(() => {
1796
1796
  e(), le(() => {
1797
1797
  t = !0;
1798
1798
  });
@@ -1808,34 +1808,34 @@ function Ot(e, t, n = {}) {
1808
1808
  const i = (v) => {
1809
1809
  if (s)
1810
1810
  return;
1811
- const h = j(v);
1812
- h && !r && (h.addEventListener(e, t, {
1811
+ const b = j(v);
1812
+ b && !r && (b.addEventListener(e, t, {
1813
1813
  capture: l,
1814
1814
  passive: a
1815
1815
  }), r = !0);
1816
1816
  }, c = (v) => {
1817
1817
  if (s)
1818
1818
  return;
1819
- const h = j(v);
1820
- h && r && (h.removeEventListener(e, t, l), r = !1);
1819
+ const b = j(v);
1820
+ b && r && (b.removeEventListener(e, t, l), r = !1);
1821
1821
  };
1822
- Ye(() => c(o)), Ae(() => c(o)), Tt(() => i(o));
1822
+ Ye(() => c(o)), Le(() => c(o)), Tt(() => i(o));
1823
1823
  let u;
1824
- return sn(o) && (u = V(o, (v, h) => {
1825
- c(h), i(v);
1824
+ return sn(o) && (u = V(o, (v, b) => {
1825
+ c(b), i(v);
1826
1826
  })), () => {
1827
1827
  u == null || u(), c(o), s = !0;
1828
1828
  };
1829
1829
  }
1830
- var Ee, Fe;
1830
+ var Ee, je;
1831
1831
  function vs() {
1832
- if (!Ee && (Ee = _(0), Fe = _(0), Ze)) {
1832
+ if (!Ee && (Ee = _(0), je = _(0), Ze)) {
1833
1833
  const e = () => {
1834
- Ee.value = window.innerWidth, Fe.value = window.innerHeight;
1834
+ Ee.value = window.innerWidth, je.value = window.innerHeight;
1835
1835
  };
1836
1836
  e(), window.addEventListener("resize", e, { passive: !0 }), window.addEventListener("orientationchange", e, { passive: !0 });
1837
1837
  }
1838
- return { width: Ee, height: Fe };
1838
+ return { width: Ee, height: je };
1839
1839
  }
1840
1840
  var gs = /scroll|auto|overlay/i, _s = Ze ? window : void 0;
1841
1841
  function hs(e) {
@@ -1955,20 +1955,20 @@ function Ts(e) {
1955
1955
  const t = xt(e) + ".";
1956
1956
  return (n, ...o) => {
1957
1957
  const a = Is.messages(), l = at(a, t + n) || at(a, n);
1958
- return Ge(l) ? l(...o) : l;
1958
+ return We(l) ? l(...o) : l;
1959
1959
  };
1960
1960
  }
1961
- function We(e, t) {
1961
+ function Ue(e, t) {
1962
1962
  return t ? typeof t == "string" ? ` ${e}--${t}` : Array.isArray(t) ? t.reduce(
1963
- (n, o) => n + We(e, o),
1963
+ (n, o) => n + Ue(e, o),
1964
1964
  ""
1965
1965
  ) : Object.keys(t).reduce(
1966
- (n, o) => n + (t[o] ? We(e, o) : ""),
1966
+ (n, o) => n + (t[o] ? Ue(e, o) : ""),
1967
1967
  ""
1968
1968
  ) : "";
1969
1969
  }
1970
1970
  function Os(e) {
1971
- return (t, n) => (t && typeof t != "string" && (n = t, t = ""), t = t ? `${e}__${t}` : e, `${t}${We(t, n)}`);
1971
+ return (t, n) => (t && typeof t != "string" && (n = t, t = ""), t = t ? `${e}__${t}` : e, `${t}${Ue(t, n)}`);
1972
1972
  }
1973
1973
  function he(e) {
1974
1974
  const t = `van-${e}`;
@@ -1993,7 +1993,7 @@ function xs(e, {
1993
1993
  } else
1994
1994
  n();
1995
1995
  }
1996
- function Le(e) {
1996
+ function Be(e) {
1997
1997
  return e.install = (t) => {
1998
1998
  const { name: n } = e;
1999
1999
  n && (t.component(n, e), t.component(xt(`-${n}`), e));
@@ -2014,7 +2014,7 @@ const [Ls, ct] = he("badge"), Bs = {
2014
2014
  showZero: ae,
2015
2015
  position: Z("top-right")
2016
2016
  };
2017
- var Ds = ge({
2017
+ var Ns = ge({
2018
2018
  name: Ls,
2019
2019
  props: Bs,
2020
2020
  setup(e, {
@@ -2043,8 +2043,8 @@ var Ds = ge({
2043
2043
  if (e.offset) {
2044
2044
  const [i, c] = e.offset, {
2045
2045
  position: u
2046
- } = e, [v, h] = u.split("-");
2047
- t.default ? (typeof c == "number" ? r[v] = oe(v === "top" ? c : -c) : r[v] = v === "top" ? oe(c) : a(c), typeof i == "number" ? r[h] = oe(h === "left" ? i : -i) : r[h] = h === "left" ? oe(i) : a(i)) : (r.marginTop = oe(c), r.marginLeft = oe(i));
2046
+ } = e, [v, b] = u.split("-");
2047
+ t.default ? (typeof c == "number" ? r[v] = oe(v === "top" ? c : -c) : r[v] = v === "top" ? oe(c) : a(c), typeof i == "number" ? r[b] = oe(b === "left" ? i : -i) : r[b] = b === "left" ? oe(i) : a(i)) : (r.marginTop = oe(c), r.marginLeft = oe(i));
2048
2048
  }
2049
2049
  return r;
2050
2050
  }), s = () => {
@@ -2072,7 +2072,7 @@ var Ds = ge({
2072
2072
  };
2073
2073
  }
2074
2074
  });
2075
- const Ns = Le(Ds);
2075
+ const Ds = Be(Ns);
2076
2076
  let At = 2e3;
2077
2077
  const Fs = () => ++At, js = (e) => {
2078
2078
  At = e;
@@ -2120,13 +2120,13 @@ ge({
2120
2120
  s && a(s), o();
2121
2121
  }, {
2122
2122
  immediate: !0
2123
- }), Ke(o), Ae(a), Ct(a), V(n, (l, s) => {
2123
+ }), Ke(o), Le(a), Ct(a), V(n, (l, s) => {
2124
2124
  e.themeVarsScope === "global" && Me(l, s);
2125
2125
  }), V(() => e.themeVarsScope, (l, s) => {
2126
2126
  s === "global" && Me({}, n.value), l === "global" && Me(n.value, {});
2127
2127
  }), e.themeVarsScope === "global" && Me(n.value, {});
2128
2128
  }
2129
- return Oe(Bt, e), rn(() => {
2129
+ return ke(Bt, e), rn(() => {
2130
2130
  e.zIndex !== void 0 && js(e.zIndex);
2131
2131
  }), () => x(e.tag, {
2132
2132
  class: zs(),
@@ -2165,7 +2165,7 @@ var Ks = ge({
2165
2165
  badge: i,
2166
2166
  color: c
2167
2167
  } = e, u = Ys(s);
2168
- return x(Ns, S({
2168
+ return x(Ds, S({
2169
2169
  dot: l,
2170
2170
  tag: a,
2171
2171
  class: [o.value, u ? "" : `${o.value}-${s}`],
@@ -2186,7 +2186,7 @@ var Ks = ge({
2186
2186
  };
2187
2187
  }
2188
2188
  });
2189
- const qs = Le(Ks), Zs = {
2189
+ const qs = Be(Ks), Zs = {
2190
2190
  // whether to show popup
2191
2191
  show: Boolean,
2192
2192
  // z-index
@@ -2249,10 +2249,10 @@ const dt = "van-overflow-hidden";
2249
2249
  function Qs(e, t) {
2250
2250
  const n = Js(), o = "01", a = "10", l = (u) => {
2251
2251
  n.move(u);
2252
- const v = n.deltaY.value > 0 ? a : o, h = bs(
2252
+ const v = n.deltaY.value > 0 ? a : o, b = bs(
2253
2253
  u.target,
2254
2254
  e.value
2255
- ), { scrollHeight: k, offsetHeight: B, scrollTop: z } = h;
2255
+ ), { scrollHeight: k, offsetHeight: B, scrollTop: z } = b;
2256
2256
  let F = "11";
2257
2257
  z === 0 ? F = B >= k ? "00" : "01" : z + B >= k && (F = "10"), F !== "11" && n.isVertical() && !(parseInt(F, 2) & parseInt(v, 2)) && kt(u);
2258
2258
  }, s = () => {
@@ -2260,11 +2260,11 @@ function Qs(e, t) {
2260
2260
  }, r = () => {
2261
2261
  ve && (document.removeEventListener("touchstart", n.start), document.removeEventListener("touchmove", l), ve--, ve || document.body.classList.remove(dt));
2262
2262
  }, i = () => t() && s(), c = () => t() && r();
2263
- Tt(i), Ae(c), Ct(c), V(t, (u) => {
2263
+ Tt(i), Le(c), Ct(c), V(t, (u) => {
2264
2264
  u ? s() : r();
2265
2265
  });
2266
2266
  }
2267
- function Dt(e) {
2267
+ function Nt(e) {
2268
2268
  const t = _(!1);
2269
2269
  return V(
2270
2270
  e,
@@ -2296,16 +2296,16 @@ var oa = ge({
2296
2296
  attrs: t,
2297
2297
  slots: n
2298
2298
  }) {
2299
- const o = _(), a = Dt(() => e.show || !e.lazyRender), l = (r) => {
2299
+ const o = _(), a = Nt(() => e.show || !e.lazyRender), l = (r) => {
2300
2300
  e.lockScroll && kt(r);
2301
2301
  }, s = a(() => {
2302
2302
  var r;
2303
2303
  const i = _e(Cs(e.zIndex), e.customStyle);
2304
- return ie(e.duration) && (i.animationDuration = `${e.duration}s`), xe(x("div", S({
2304
+ return ie(e.duration) && (i.animationDuration = `${e.duration}s`), Pe(x("div", S({
2305
2305
  ref: o,
2306
2306
  style: i,
2307
2307
  class: [ta(), e.className]
2308
- }, t), [(r = n.default) == null ? void 0 : r.call(n)]), [[Pe, e.show]]);
2308
+ }, t), [(r = n.default) == null ? void 0 : r.call(n)]), [[Ae, e.show]]);
2309
2309
  });
2310
2310
  return Ot("touchmove", l, {
2311
2311
  target: o
@@ -2316,7 +2316,7 @@ var oa = ge({
2316
2316
  }, {
2317
2317
  default: s
2318
2318
  });
2319
- return e.teleport ? x(Te, {
2319
+ return e.teleport ? x(Oe, {
2320
2320
  to: e.teleport
2321
2321
  }, {
2322
2322
  default: () => [r]
@@ -2324,7 +2324,7 @@ var oa = ge({
2324
2324
  };
2325
2325
  }
2326
2326
  });
2327
- const sa = Le(oa), aa = _e({}, Zs, {
2327
+ const sa = Be(oa), aa = _e({}, Zs, {
2328
2328
  round: Boolean,
2329
2329
  position: Z("center"),
2330
2330
  closeIcon: Z("cross"),
@@ -2348,15 +2348,15 @@ var la = ge({
2348
2348
  slots: o
2349
2349
  }) {
2350
2350
  let a, l;
2351
- const s = _(), r = _(), i = Dt(() => e.show || !e.lazyRender), c = R(() => {
2352
- const b = {
2351
+ const s = _(), r = _(), i = Nt(() => e.show || !e.lazyRender), c = R(() => {
2352
+ const y = {
2353
2353
  zIndex: s.value
2354
2354
  };
2355
2355
  if (ie(e.duration)) {
2356
- const Y = e.position === "center" ? "animationDuration" : "transitionDuration";
2357
- b[Y] = `${e.duration}s`;
2356
+ const H = e.position === "center" ? "animationDuration" : "transitionDuration";
2357
+ y[H] = `${e.duration}s`;
2358
2358
  }
2359
- return b;
2359
+ return y;
2360
2360
  }), u = () => {
2361
2361
  a || (a = !0, s.value = e.zIndex !== void 0 ? +e.zIndex : Fs(), t("open"));
2362
2362
  }, v = () => {
@@ -2365,11 +2365,11 @@ var la = ge({
2365
2365
  a = !1, t("close"), t("update:show", !1);
2366
2366
  }
2367
2367
  });
2368
- }, h = (b) => {
2369
- t("clickOverlay", b), e.closeOnClickOverlay && v();
2368
+ }, b = (y) => {
2369
+ t("clickOverlay", y), e.closeOnClickOverlay && v();
2370
2370
  }, k = () => {
2371
2371
  if (e.overlay) {
2372
- const b = _e({
2372
+ const y = _e({
2373
2373
  show: e.show,
2374
2374
  class: e.overlayClass,
2375
2375
  zIndex: s.value,
@@ -2378,14 +2378,14 @@ var la = ge({
2378
2378
  role: e.closeOnClickOverlay ? "button" : void 0,
2379
2379
  tabindex: e.closeOnClickOverlay ? 0 : void 0
2380
2380
  }, e.overlayProps);
2381
- return x(sa, S(b, ft(), {
2382
- onClick: h
2381
+ return x(sa, S(y, ft(), {
2382
+ onClick: b
2383
2383
  }), {
2384
2384
  default: o["overlay-content"]
2385
2385
  });
2386
2386
  }
2387
- }, B = (b) => {
2388
- t("clickCloseIcon", b), v();
2387
+ }, B = (y) => {
2388
+ t("clickCloseIcon", y), v();
2389
2389
  }, z = () => {
2390
2390
  if (e.closeable)
2391
2391
  return x(qs, {
@@ -2402,18 +2402,18 @@ var la = ge({
2402
2402
  F && clearTimeout(F), F = setTimeout(() => {
2403
2403
  t("opened");
2404
2404
  });
2405
- }, ue = () => t("closed"), X = (b) => t("keydown", b), de = i(() => {
2406
- var b;
2405
+ }, ue = () => t("closed"), X = (y) => t("keydown", y), de = i(() => {
2406
+ var y;
2407
2407
  const {
2408
- destroyOnClose: Y,
2408
+ destroyOnClose: H,
2409
2409
  round: fe,
2410
2410
  position: ne,
2411
2411
  safeAreaInsetTop: ye,
2412
2412
  safeAreaInsetBottom: me,
2413
2413
  show: pe
2414
2414
  } = e;
2415
- if (!(!pe && Y))
2416
- return xe(x("div", S({
2415
+ if (!(!pe && H))
2416
+ return Pe(x("div", S({
2417
2417
  ref: r,
2418
2418
  style: c.value,
2419
2419
  role: "dialog",
@@ -2426,15 +2426,15 @@ var la = ge({
2426
2426
  "van-safe-area-bottom": me
2427
2427
  }],
2428
2428
  onKeydown: X
2429
- }, n, ft()), [(b = o.default) == null ? void 0 : b.call(o), z()]), [[Pe, pe]]);
2429
+ }, n, ft()), [(y = o.default) == null ? void 0 : y.call(o), z()]), [[Ae, pe]]);
2430
2430
  }), be = () => {
2431
2431
  const {
2432
- position: b,
2433
- transition: Y,
2432
+ position: y,
2433
+ transition: H,
2434
2434
  transitionAppear: fe
2435
- } = e, ne = b === "center" ? "van-fade" : `van-popup-slide-${b}`;
2435
+ } = e, ne = y === "center" ? "van-fade" : `van-popup-slide-${y}`;
2436
2436
  return x($t, {
2437
- name: Y || ne,
2437
+ name: H || ne,
2438
2438
  appear: fe,
2439
2439
  onAfterEnter: te,
2440
2440
  onAfterLeave: ue
@@ -2442,29 +2442,29 @@ var la = ge({
2442
2442
  default: de
2443
2443
  });
2444
2444
  };
2445
- return V(() => e.show, (b) => {
2446
- b && !a && (u(), n.tabindex === 0 && le(() => {
2447
- var Y;
2448
- (Y = r.value) == null || Y.focus();
2449
- })), !b && a && (a = !1, t("close"));
2445
+ return V(() => e.show, (y) => {
2446
+ y && !a && (u(), n.tabindex === 0 && le(() => {
2447
+ var H;
2448
+ (H = r.value) == null || H.focus();
2449
+ })), !y && a && (a = !1, t("close"));
2450
2450
  }), As({
2451
2451
  popupRef: r
2452
2452
  }), Qs(r, () => e.show && e.lockScroll), Ot("popstate", () => {
2453
2453
  e.closeOnPopstate && (v(), l = !1);
2454
- }), ke(() => {
2454
+ }), xe(() => {
2455
2455
  e.show && u();
2456
2456
  }), Ke(() => {
2457
2457
  l && (t("update:show", !0), l = !1);
2458
- }), Ae(() => {
2458
+ }), Le(() => {
2459
2459
  e.show && e.teleport && (v(), l = !0);
2460
- }), Oe(Ps, () => e.show), () => e.teleport ? x(Te, {
2460
+ }), ke(Ps, () => e.show), () => e.teleport ? x(Oe, {
2461
2461
  to: e.teleport
2462
2462
  }, {
2463
2463
  default: () => [k(), be()]
2464
- }) : x(H, null, [k(), be()]);
2464
+ }) : x(K, null, [k(), be()]);
2465
2465
  }
2466
2466
  });
2467
- const ia = Le(la), ca = { class: "header" }, ua = { class: "title" }, da = { class: "list-container" }, fa = ["onClick"], ma = { class: "label" }, pa = { class: "active-icon" }, va = /* @__PURE__ */ Object.assign({
2467
+ const ia = Be(la), ca = { class: "header" }, ua = { class: "title" }, da = { class: "list-container" }, fa = ["onClick"], ma = { class: "label" }, pa = { class: "active-icon" }, va = /* @__PURE__ */ Object.assign({
2468
2468
  name: "MPicker"
2469
2469
  }, {
2470
2470
  __name: "Picker",
@@ -2492,7 +2492,7 @@ const ia = Le(la), ca = { class: "header" }, ua = { class: "title" }, da = { cla
2492
2492
  }),
2493
2493
  emits: /* @__PURE__ */ Re(["confirm"], ["update:modelValue", "update:show"]),
2494
2494
  setup(e, { emit: t }) {
2495
- const n = t, o = e, a = je(e, "modelValue"), l = je(e, "show"), s = (i) => {
2495
+ const n = t, o = e, a = ze(e, "modelValue"), l = ze(e, "show"), s = (i) => {
2496
2496
  a.value = i[o.columnsFieldNames.value], n("confirm", i), r();
2497
2497
  }, r = () => {
2498
2498
  l.value = !1;
@@ -2505,7 +2505,7 @@ const ia = Le(la), ca = { class: "header" }, ua = { class: "title" }, da = { cla
2505
2505
  }, i.$attrs), {
2506
2506
  default: $(() => [
2507
2507
  C("div", ca, [
2508
- C("div", ua, K(e.title), 1),
2508
+ C("div", ua, Y(e.title), 1),
2509
2509
  C("div", {
2510
2510
  class: "close",
2511
2511
  onClick: r
@@ -2514,31 +2514,33 @@ const ia = Le(la), ca = { class: "header" }, ua = { class: "title" }, da = { cla
2514
2514
  ])])
2515
2515
  ]),
2516
2516
  C("div", da, [
2517
- (d(!0), m(H, null, M(e.columns, (u) => (d(), m("div", {
2517
+ we(Y(a.value) + " ", 1),
2518
+ (d(!0), m(K, null, M(e.columns, (u) => (d(), m("div", {
2518
2519
  class: U(["list-item", { active: a.value === u[e.columnsFieldNames.value] }]),
2519
2520
  key: u[e.columnsFieldNames.value],
2520
2521
  onClick: (v) => s(u)
2521
2522
  }, [
2522
2523
  C("div", ma, [
2523
- i.$slots.label ? y(i.$slots, "label", {
2524
+ i.$slots.label ? h(i.$slots, "label", {
2524
2525
  key: 0,
2525
2526
  item: u
2526
- }, void 0, !0) : (d(), m(H, { key: 1 }, [
2527
- Ue(K(u[e.columnsFieldNames.label]), 1)
2527
+ }, void 0, !0) : (d(), m(K, { key: 1 }, [
2528
+ we(Y(u[e.columnsFieldNames.label]), 1)
2528
2529
  ], 64))
2529
2530
  ]),
2530
- xe(C("div", pa, [...c[2] || (c[2] = [
2531
+ Pe(C("div", pa, [...c[2] || (c[2] = [
2531
2532
  C("i", { class: "iconfont icon-check" }, null, -1)
2532
2533
  ])], 512), [
2533
- [Pe, a.value === u[e.columnsFieldNames.value]]
2534
+ [Ae, a.value === u[e.columnsFieldNames.value]]
2534
2535
  ])
2535
- ], 10, fa))), 128))
2536
+ ], 10, fa))), 128)),
2537
+ h(i.$slots, "default", {}, void 0, !0)
2536
2538
  ])
2537
2539
  ]),
2538
2540
  _: 3
2539
2541
  }, 16, ["show"]));
2540
2542
  }
2541
- }), ga = /* @__PURE__ */ G(va, [["__scopeId", "data-v-ac0dc874"]]), Nt = [ze, On, kn, xn, Pn, Bn, Dn, Nn, Fn, jn, zn, Vn, Gn, Wn, Hn, Xn, Jn, to, St, Et, wo, Oo, ko, xo, Do, qo, Qo, ss, Mt, ds, ga];
2543
+ }), ga = /* @__PURE__ */ G(va, [["__scopeId", "data-v-a898974e"]]), Dt = [Ve, On, kn, xn, Pn, Bn, Nn, Dn, Fn, jn, zn, Vn, Gn, Wn, Hn, Xn, Jn, to, St, Et, wo, Oo, ko, xo, No, qo, Qo, ss, Mt, ds, ga];
2542
2544
  function Ft(e) {
2543
2545
  return !e || typeof e != "string" || !e.startsWith("M") ? null : "m-" + e.slice(1).replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
2544
2546
  }
@@ -2547,7 +2549,7 @@ const _a = [
2547
2549
  { id: "global-notification-container", component: Et }
2548
2550
  ];
2549
2551
  function ha(n) {
2550
- return Ne(this, arguments, function* ({ id: e, component: t }) {
2552
+ return Fe(this, arguments, function* ({ id: e, component: t }) {
2551
2553
  try {
2552
2554
  if (document.getElementById(e)) return;
2553
2555
  const { createApp: o, h: a } = yield import("vue"), l = document.createElement("div");
@@ -2560,14 +2562,14 @@ function ha(n) {
2560
2562
  });
2561
2563
  }
2562
2564
  function ba() {
2563
- return Ne(this, null, function* () {
2565
+ return Fe(this, null, function* () {
2564
2566
  const e = _a.map(ha);
2565
2567
  yield Promise.all(e);
2566
2568
  });
2567
2569
  }
2568
2570
  const g = {};
2569
2571
  function ya(e) {
2570
- const t = Nt.map((n) => Ft(n == null ? void 0 : n.name)).filter(Boolean);
2572
+ const t = Dt.map((n) => Ft(n == null ? void 0 : n.name)).filter(Boolean);
2571
2573
  Object.entries(pt).forEach(([n, o]) => {
2572
2574
  if (o && o.name && typeof o.name == "string" && o.name.startsWith("El")) {
2573
2575
  const a = "m-" + o.name.slice(2).replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
@@ -2580,9 +2582,9 @@ function ya(e) {
2580
2582
  const Ca = (e) => {
2581
2583
  typeof window != "undefined" && Promise.resolve().then(() => Go).then(({ applyGlobalOverride: t, enableH5Override: n }) => {
2582
2584
  t(), n({ mode: "auto", breakpoint: 768 });
2583
- }), console.log("🚀 开始安装 @mc-markets/ui 组件库..."), Nt.forEach((t) => {
2584
- const n = Ft(t == null ? void 0 : t.name);
2585
- n && e.component(n, t);
2585
+ }), console.log("🚀 开始安装 @mc-markets/ui 组件库..."), Dt.forEach((t) => {
2586
+ const n = Ft(t == null ? void 0 : t.name), o = t == null ? void 0 : t.name;
2587
+ n && e.component(n, t), o && e.component(o, t);
2586
2588
  }), ya(e), typeof window != "undefined" && ba();
2587
2589
  }, Ka = { install: Ca }, qa = pt.ElMessageBox, Za = W({}, g), Xa = g.MButtonGroup, Ja = g.MCarousel, Qa = g.MCarouselItem, er = g.MCascader, tr = g.MCascaderPanel, nr = g.MCheckTag, or = g.MCalendar, sr = g.MTimePicker, ar = g.MDateTimePicker, rr = g.MColorPicker, lr = g.MTransfer, ir = g.MTree, cr = g.MTreeSelect, ur = g.MUpload, dr = g.MImage, fr = g.MImageViewer, mr = g.MBacktop, pr = g.MInfiniteScroll, vr = g.MAffix, gr = g.MScrollbar, _r = g.MResult, hr = g.MSkeleton, br = g.MLoading, yr = g.MSpinner, Cr = g.MProgress, $r = g.MBadge, Sr = g.MAvatar, Er = g.MImagePreview, Mr = g.MTeleport, Rr = g.MConfigProvider;
2588
2590
  export {
@@ -2591,7 +2593,7 @@ export {
2591
2593
  Sr as MAvatar,
2592
2594
  mr as MBacktop,
2593
2595
  $r as MBadge,
2594
- Do as MBanner,
2596
+ No as MBanner,
2595
2597
  ds as MBreadcrumb,
2596
2598
  On as MButton,
2597
2599
  Xa as MButtonGroup,
@@ -2609,7 +2611,7 @@ export {
2609
2611
  Oo as MEmpty,
2610
2612
  xn as MForm,
2611
2613
  Pn as MFormItem,
2612
- ze as MIcon,
2614
+ Ve as MIcon,
2613
2615
  dr as MImage,
2614
2616
  Er as MImagePreview,
2615
2617
  fr as MImageViewer,
@@ -2620,7 +2622,7 @@ export {
2620
2622
  qa as MMessageBox,
2621
2623
  Et as MNotifiMessage,
2622
2624
  to as MNotification,
2623
- Nn as MOption,
2625
+ Dn as MOption,
2624
2626
  Fn as MOptionGroup,
2625
2627
  jn as MPagination,
2626
2628
  ga as MPicker,
@@ -2630,7 +2632,7 @@ export {
2630
2632
  Vn as MRadioGroup,
2631
2633
  _r as MResult,
2632
2634
  gr as MScrollbar,
2633
- Dn as MSelect,
2635
+ Nn as MSelect,
2634
2636
  hr as MSkeleton,
2635
2637
  yr as MSpinner,
2636
2638
  Wn as MSwitch,
@@ -2650,14 +2652,14 @@ export {
2650
2652
  ur as MUpload,
2651
2653
  oo as Message,
2652
2654
  Ha as NotifiMessage,
2653
- No as addComponentOverride,
2654
- we as addOverrideClass,
2655
+ Do as addComponentOverride,
2656
+ Ie as addOverrideClass,
2655
2657
  Fo as applyGlobalOverride,
2656
2658
  Vo as createOverrideComponent,
2657
2659
  Ka as default,
2658
2660
  jo as enableH5Override,
2659
2661
  zo as forceRefreshStyles,
2660
- Ve as isH5,
2662
+ Ge as isH5,
2661
2663
  Za as mComponents
2662
2664
  };
2663
2665
  //# sourceMappingURL=index.mjs.map