@mc-markets/ui 1.1.44 → 1.1.45

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
@@ -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 z, useAttrs as Ie, createCommentVNode as N, createElementVNode as C, Fragment as H, normalizeClass as U, mergeModels as Re, useModel as ze, 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 Ae, inject as He, onDeactivated as Pe, 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 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";
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";
@@ -121,7 +121,7 @@ const G = (e, t) => {
121
121
  y(r.$slots, "default", {}, void 0, !0)
122
122
  ], 16));
123
123
  }
124
- }), je = /* @__PURE__ */ G(In, [["__scopeId", "data-v-74564eea"]]);
124
+ }), ze = /* @__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) {
@@ -226,7 +226,7 @@ const Tn = /* @__PURE__ */ Object.assign({
226
226
  __name: "Form",
227
227
  setup(e, { expose: t }) {
228
228
  const { innerRef: n, exposedProxy: o } = L("formRef");
229
- return t(o), (a, l) => (d(), E(z(nn), S({
229
+ return t(o), (a, l) => (d(), E(j(nn), S({
230
230
  ref_key: "formRef",
231
231
  ref: n
232
232
  }, a.$attrs, { class: "m-form" }), O({ _: 2 }, [
@@ -238,7 +238,7 @@ const Tn = /* @__PURE__ */ Object.assign({
238
238
  }))
239
239
  ]), 1040));
240
240
  }
241
- }), An = /* @__PURE__ */ Object.assign({
241
+ }), Pn = /* @__PURE__ */ Object.assign({
242
242
  name: "MFormItem"
243
243
  }, {
244
244
  __name: "FormItem",
@@ -260,14 +260,14 @@ const Tn = /* @__PURE__ */ Object.assign({
260
260
  ]), 1040);
261
261
  };
262
262
  }
263
- }), Pn = (...e) => e.filter(Boolean).join(" "), Ln = (e, ...t) => {
263
+ }), An = (...e) => e.filter(Boolean).join(" "), Ln = (e, ...t) => {
264
264
  const n = W({}, e);
265
265
  return t.forEach((o) => {
266
266
  delete n[o];
267
267
  }), n;
268
268
  };
269
269
  function ce(e, t = "popperClass") {
270
- const n = Ie(), o = R(() => Ln(n, t)), a = R(() => Pn(e, n[t]));
270
+ const n = Ie(), o = R(() => Ln(n, t)), a = R(() => An(e, n[t]));
271
271
  return {
272
272
  mergedAttrs: o,
273
273
  className: a
@@ -290,7 +290,7 @@ const Bn = /* @__PURE__ */ Object.assign({
290
290
  return d(), E(i, S({
291
291
  ref_key: "tooltipRef",
292
292
  ref: a
293
- }, z(n), { "popper-class": z(o) }), O({ _: 2 }, [
293
+ }, j(n), { "popper-class": j(o) }), O({ _: 2 }, [
294
294
  M(s.$slots, (c, u) => ({
295
295
  name: u,
296
296
  fn: $(() => [
@@ -365,7 +365,7 @@ const Bn = /* @__PURE__ */ Object.assign({
365
365
  ]), 1040);
366
366
  };
367
367
  }
368
- }), zn = /* @__PURE__ */ Object.assign({
368
+ }), jn = /* @__PURE__ */ Object.assign({
369
369
  name: "MPagination"
370
370
  }, {
371
371
  __name: "Pagination",
@@ -386,7 +386,7 @@ const Bn = /* @__PURE__ */ Object.assign({
386
386
  ]), 1040);
387
387
  };
388
388
  }
389
- }), jn = /* @__PURE__ */ Object.assign({
389
+ }), zn = /* @__PURE__ */ Object.assign({
390
390
  name: "MRadio"
391
391
  }, {
392
392
  __name: "Radio",
@@ -403,7 +403,7 @@ const Bn = /* @__PURE__ */ Object.assign({
403
403
  return d(), E(r, S({
404
404
  ref_key: "radioRef",
405
405
  ref: o
406
- }, z(n), { class: "m-radio" }), O({ _: 2 }, [
406
+ }, j(n), { class: "m-radio" }), O({ _: 2 }, [
407
407
  M(l.$slots, (i, c) => ({
408
408
  name: c,
409
409
  fn: $(() => [
@@ -466,7 +466,7 @@ const Bn = /* @__PURE__ */ Object.assign({
466
466
  return d(), E(r, S({
467
467
  ref_key: "radioButtonRef",
468
468
  ref: o
469
- }, z(n), { class: "m-radio-button" }), O({ _: 2 }, [
469
+ }, j(n), { class: "m-radio-button" }), O({ _: 2 }, [
470
470
  M(l.$slots, (i, c) => ({
471
471
  name: c,
472
472
  fn: $(() => [
@@ -493,8 +493,8 @@ const Bn = /* @__PURE__ */ Object.assign({
493
493
  return d(), E(i, S({
494
494
  ref_key: "switchRef",
495
495
  ref: a
496
- }, z(n), {
497
- "popper-class": z(o),
496
+ }, j(n), {
497
+ "popper-class": j(o),
498
498
  class: "m-switch"
499
499
  }), O({ _: 2 }, [
500
500
  M(s.$slots, (c, u) => ({
@@ -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 = ze(e, "modelValue"), { innerRef: a, exposedProxy: l } = L("dialogRef");
650
+ const o = je(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, [
@@ -959,9 +959,9 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
959
959
  return d(), E(i, S({
960
960
  ref_key: "datePickerRef",
961
961
  ref: a
962
- }, z(n), {
962
+ }, j(n), {
963
963
  class: ["m-datepicker", { "style-type-solid": e.styleType === "solid" }],
964
- "popper-class": z(o)
964
+ "popper-class": j(o)
965
965
  }), O({ _: 2 }, [
966
966
  M(s.$slots, (c, u) => ({
967
967
  name: u,
@@ -1060,7 +1060,7 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
1060
1060
  ]), 1040);
1061
1061
  };
1062
1062
  }
1063
- }), Ao = { class: "m-banner__content" }, Po = {
1063
+ }), Po = { class: "m-banner__content" }, Ao = {
1064
1064
  key: 0,
1065
1065
  class: "m-banner__icon"
1066
1066
  }, Lo = { class: "m-banner__text" }, Bo = /* @__PURE__ */ Object.assign({
@@ -1156,15 +1156,15 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
1156
1156
  `m-banner--${e.type}`,
1157
1157
  {
1158
1158
  "m-banner--closable": e.closable,
1159
- "m-banner--with-icon": e.icon || z(o).icon
1159
+ "m-banner--with-icon": e.icon || j(o).icon
1160
1160
  }
1161
1161
  ]]),
1162
1162
  style: bt(r.value)
1163
1163
  }, [
1164
- C("div", Ao, [
1165
- e.icon || z(o).icon ? (d(), m("div", Po, [
1164
+ C("div", Po, [
1165
+ e.icon || j(o).icon ? (d(), m("div", Ao, [
1166
1166
  y(u.$slots, "icon", {}, () => [
1167
- x(je, {
1167
+ x(ze, {
1168
1168
  name: e.icon,
1169
1169
  size: e.iconSize
1170
1170
  }, null, 8, ["name", "size"])
@@ -1180,7 +1180,7 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
1180
1180
  class: "m-banner__close",
1181
1181
  onClick: c
1182
1182
  }, [
1183
- x(je, {
1183
+ x(ze, {
1184
1184
  name: "lucide-x",
1185
1185
  size: e.closeIconSize
1186
1186
  }, null, 8, ["size"])
@@ -1216,7 +1216,7 @@ function Fo() {
1216
1216
  subtree: !0
1217
1217
  }));
1218
1218
  }
1219
- function zo(e = {}) {
1219
+ function jo(e = {}) {
1220
1220
  if (typeof window == "undefined" || typeof document == "undefined") return () => {
1221
1221
  };
1222
1222
  const {
@@ -1239,7 +1239,7 @@ function zo(e = {}) {
1239
1239
  window.removeEventListener("resize", i);
1240
1240
  };
1241
1241
  }
1242
- function jo(e = '[class*="el-"]') {
1242
+ function zo(e = '[class*="el-"]') {
1243
1243
  typeof document != "undefined" && document.querySelectorAll(e).forEach((n) => {
1244
1244
  const o = n.closest(".mc-ui-override") || n.parentElement;
1245
1245
  o && !o.classList.contains("mc-ui-override") && o.classList.add("mc-ui-override");
@@ -1269,8 +1269,8 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1269
1269
  addOverrideClass: we,
1270
1270
  applyGlobalOverride: Fo,
1271
1271
  createOverrideComponent: Vo,
1272
- enableH5Override: zo,
1273
- forceRefreshStyles: jo,
1272
+ enableH5Override: jo,
1273
+ forceRefreshStyles: zo,
1274
1274
  isH5: Ve
1275
1275
  }, Symbol.toStringTag, { value: "Module" })), D = {
1276
1276
  // 滚动相关
@@ -1322,14 +1322,14 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1322
1322
  emits: ["update:modelValue", "tab-click", "tab-remove", "tab-change", "tab-add", "edit"],
1323
1323
  setup(e, { emit: t, slots: n }) {
1324
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" });
1325
- let B = null, j = null, F = null, te = !1, ue = !1, X = null;
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
1330
  if (Ve()) {
1331
- const w = window.getComputedStyle(o.value), A = parseFloat(w.paddingLeft) || 0;
1332
- if (Math.abs(p - A) > D.H5_POSITION_TOLERANCE) {
1331
+ const w = window.getComputedStyle(o.value), P = parseFloat(w.paddingLeft) || 0;
1332
+ if (Math.abs(p - P) > D.H5_POSITION_TOLERANCE) {
1333
1333
  const I = o.value.getBoundingClientRect();
1334
1334
  p = f.getBoundingClientRect().left - I.left;
1335
1335
  }
@@ -1341,37 +1341,37 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1341
1341
  de();
1342
1342
  return;
1343
1343
  }
1344
- const p = s.value.findIndex((P) => P.name === r.value);
1344
+ const p = s.value.findIndex((A) => A.name === r.value);
1345
1345
  if (p === -1) {
1346
1346
  de();
1347
1347
  return;
1348
1348
  }
1349
- const A = o.value.querySelectorAll(".m-tabs__item")[p];
1350
- if (!A) {
1349
+ const P = o.value.querySelectorAll(".m-tabs__item")[p];
1350
+ if (!P) {
1351
1351
  de();
1352
1352
  return;
1353
1353
  }
1354
- const T = be(A) + A.offsetWidth / 2 - D.ACTIVE_BAR_OFFSET;
1354
+ const T = be(P) + P.offsetWidth / 2 - D.ACTIVE_BAR_OFFSET;
1355
1355
  k.value = {
1356
1356
  width: `${D.ACTIVE_BAR_WIDTH}px`,
1357
1357
  left: `${T}px`
1358
- }, f && Y(A);
1358
+ }, f && Y(P);
1359
1359
  });
1360
1360
  }, Y = (f) => {
1361
1361
  if (!a.value || !f) return;
1362
- const p = a.value, w = p.clientWidth, A = p.scrollLeft, I = f.offsetLeft, T = f.offsetWidth, P = I + T;
1362
+ const p = a.value, w = p.clientWidth, P = p.scrollLeft, I = f.offsetLeft, T = f.offsetWidth, A = I + T;
1363
1363
  if (Ve()) {
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 - A, De = P - A, 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(A - Ce);
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
1368
  Xt && Jt > D.SCROLL_MIN_DIFF && p.scrollTo({ left: Ce, behavior: "smooth" });
1369
1369
  } else
1370
- I < A ? p.scrollTo({
1370
+ I < P ? p.scrollTo({
1371
1371
  left: I - D.SCROLL_MARGIN,
1372
1372
  behavior: "smooth"
1373
- }) : P > A + w && p.scrollTo({
1374
- left: P - w + D.SCROLL_MARGIN,
1373
+ }) : A > P + w && p.scrollTo({
1374
+ left: A - w + D.SCROLL_MARGIN,
1375
1375
  behavior: "smooth"
1376
1376
  });
1377
1377
  }, fe = (f) => {
@@ -1402,12 +1402,12 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1402
1402
  }), p.length === 0 || p.length !== s.value.length) return;
1403
1403
  const w = s.value.map((I) => String(I.name));
1404
1404
  if (!(w.length === p.length && w.every((I, T) => I === String(p[T])))) {
1405
- const I = new Map(s.value.map((P) => [String(P.name), P])), T = [];
1406
- p.forEach((P) => {
1407
- const re = I.get(String(P));
1405
+ const I = new Map(s.value.map((A) => [String(A.name), A])), T = [];
1406
+ p.forEach((A) => {
1407
+ const re = I.get(String(A));
1408
1408
  re && T.push(re);
1409
- }), s.value.forEach((P) => {
1410
- T.find((re) => re.name === P.name) || T.push(P);
1409
+ }), s.value.forEach((A) => {
1410
+ T.find((re) => re.name === A.name) || T.push(A);
1411
1411
  }), T.length === s.value.length && (s.value.splice(0, s.value.length, ...T), b());
1412
1412
  }
1413
1413
  }, Je = (f) => {
@@ -1423,11 +1423,11 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1423
1423
  }), V(() => e.modelValue, (f, p) => {
1424
1424
  f !== r.value && (r.value = f, t("tab-change", f, p), b());
1425
1425
  });
1426
- const zt = (f) => {
1426
+ const jt = (f) => {
1427
1427
  if (c.value === 0) return !1;
1428
- const p = f.length, w = f.map((T) => String(T.name)), A = p !== c.value, I = p === c.value && w.some((T, P) => P >= u.value.length || T !== u.value[P]);
1429
- return A || I;
1430
- }, jt = () => {
1428
+ const p = f.length, w = f.map((T) => String(T.name)), P = p !== c.value, I = p === c.value && w.some((T, A) => A >= u.value.length || T !== u.value[A]);
1429
+ return P || I;
1430
+ }, zt = () => {
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;
@@ -1436,8 +1436,8 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1436
1436
  };
1437
1437
  V(s, (f) => {
1438
1438
  if (!(ue || f.length === 0)) {
1439
- if (zt(f)) {
1440
- jt();
1439
+ if (jt(f)) {
1440
+ zt();
1441
1441
  return;
1442
1442
  }
1443
1443
  c.value = f.length, u.value = f.map((p) => String(p.name)), me();
@@ -1445,18 +1445,18 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1445
1445
  }, { deep: !0 });
1446
1446
  const J = () => {
1447
1447
  if (!a.value || !o.value) return;
1448
- const f = a.value, p = o.value, w = f.scrollLeft, A = p.scrollWidth, I = f.clientWidth;
1449
- if (!(A > I)) {
1448
+ const f = a.value, p = o.value, w = f.scrollLeft, P = p.scrollWidth, I = f.clientWidth;
1449
+ if (!(P > I)) {
1450
1450
  v.value = !1, h.value = !1;
1451
1451
  return;
1452
1452
  }
1453
- const P = Math.max(0, A - I);
1454
- v.value = w > D.SCROLL_PRECISION, h.value = w < P - D.SCROLL_PRECISION;
1453
+ const A = Math.max(0, P - I);
1454
+ v.value = w > D.SCROLL_PRECISION, h.value = w < A - D.SCROLL_PRECISION;
1455
1455
  }, Qe = () => {
1456
- j && (cancelAnimationFrame(j), j = null), F && (clearTimeout(F), F = null);
1456
+ z && (cancelAnimationFrame(z), z = null), F && (clearTimeout(F), F = null);
1457
1457
  }, Vt = () => {
1458
- J(), te || b(!1), Qe(), j = requestAnimationFrame(() => {
1459
- J(), j = null;
1458
+ J(), te || b(!1), Qe(), z = requestAnimationFrame(() => {
1459
+ J(), z = null;
1460
1460
  }), F = setTimeout(() => {
1461
1461
  J(), te && (te = !1), F = null;
1462
1462
  }, D.SCROLL_DEBOUNCE);
@@ -1615,7 +1615,7 @@ function Jo(e, t, n, o, a, l) {
1615
1615
  }, [
1616
1616
  y(e.$slots, "default", {}, void 0, !0)
1617
1617
  ], 10, Xo)), [
1618
- [Ae, o.isActive]
1618
+ [Pe, 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({
@@ -1808,7 +1808,7 @@ function Ot(e, t, n = {}) {
1808
1808
  const i = (v) => {
1809
1809
  if (s)
1810
1810
  return;
1811
- const h = z(v);
1811
+ const h = j(v);
1812
1812
  h && !r && (h.addEventListener(e, t, {
1813
1813
  capture: l,
1814
1814
  passive: a
@@ -1816,10 +1816,10 @@ function Ot(e, t, n = {}) {
1816
1816
  }, c = (v) => {
1817
1817
  if (s)
1818
1818
  return;
1819
- const h = z(v);
1819
+ const h = j(v);
1820
1820
  h && r && (h.removeEventListener(e, t, l), r = !1);
1821
1821
  };
1822
- Ye(() => c(o)), Pe(() => c(o)), Tt(() => i(o));
1822
+ Ye(() => c(o)), Ae(() => c(o)), Tt(() => i(o));
1823
1823
  let u;
1824
1824
  return sn(o) && (u = V(o, (v, h) => {
1825
1825
  c(h), i(v);
@@ -1868,9 +1868,9 @@ function Cs(e) {
1868
1868
  const $s = /-(\w)/g, xt = (e) => e.replace($s, (t, n) => n.toUpperCase()), Ss = (e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, ""), { hasOwnProperty: Es } = Object.prototype;
1869
1869
  function Ms(e, t, n) {
1870
1870
  const o = t[n];
1871
- ie(o) && (!Es.call(e, n) || !qe(o) ? e[n] = o : e[n] = At(Object(e[n]), o));
1871
+ ie(o) && (!Es.call(e, n) || !qe(o) ? e[n] = o : e[n] = Pt(Object(e[n]), o));
1872
1872
  }
1873
- function At(e, t) {
1873
+ function Pt(e, t) {
1874
1874
  return Object.keys(t).forEach((n) => {
1875
1875
  Ms(e, t, n);
1876
1876
  }), e;
@@ -1947,7 +1947,7 @@ const rt = _("zh-CN"), lt = an({
1947
1947
  rt.value = e, this.add({ [e]: t });
1948
1948
  },
1949
1949
  add(e = {}) {
1950
- At(lt, e);
1950
+ Pt(lt, e);
1951
1951
  }
1952
1952
  };
1953
1953
  var Is = ws;
@@ -1999,8 +1999,8 @@ function Le(e) {
1999
1999
  n && (t.component(n, e), t.component(xt(`-${n}`), e));
2000
2000
  }, e;
2001
2001
  }
2002
- const As = Symbol();
2003
- function Ps(e) {
2002
+ const Ps = Symbol();
2003
+ function As(e) {
2004
2004
  const t = yt();
2005
2005
  t && _e(t.proxy, e);
2006
2006
  }
@@ -2073,10 +2073,10 @@ var Ds = ge({
2073
2073
  }
2074
2074
  });
2075
2075
  const Ns = Le(Ds);
2076
- let Pt = 2e3;
2077
- const Fs = () => ++Pt, zs = (e) => {
2078
- Pt = e;
2079
- }, [Lt, js] = he("config-provider"), Bt = Symbol(Lt), Vs = {
2076
+ let At = 2e3;
2077
+ const Fs = () => ++At, js = (e) => {
2078
+ At = e;
2079
+ }, [Lt, zs] = he("config-provider"), Bt = Symbol(Lt), Vs = {
2080
2080
  tag: Z("div"),
2081
2081
  theme: Z("light"),
2082
2082
  zIndex: Number,
@@ -2120,16 +2120,16 @@ ge({
2120
2120
  s && a(s), o();
2121
2121
  }, {
2122
2122
  immediate: !0
2123
- }), Ke(o), Pe(a), Ct(a), V(n, (l, s) => {
2123
+ }), Ke(o), Ae(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
2129
  return Oe(Bt, e), rn(() => {
2130
- e.zIndex !== void 0 && zs(e.zIndex);
2130
+ e.zIndex !== void 0 && js(e.zIndex);
2131
2131
  }), () => x(e.tag, {
2132
- class: js(),
2132
+ class: zs(),
2133
2133
  style: e.themeVarsScope === "local" ? n.value : void 0
2134
2134
  }, {
2135
2135
  default: () => {
@@ -2225,8 +2225,8 @@ function Js() {
2225
2225
  move: (k) => {
2226
2226
  const B = k.touches[0];
2227
2227
  n.value = (B.clientX < 0 ? 0 : B.clientX) - e.value, o.value = B.clientY - t.value, a.value = Math.abs(n.value), l.value = Math.abs(o.value);
2228
- const j = 10;
2229
- (!s.value || a.value < j && l.value < j) && (s.value = Xs(a.value, l.value)), r.value && (a.value > it || l.value > it) && (r.value = !1);
2228
+ const z = 10;
2229
+ (!s.value || a.value < z && l.value < z) && (s.value = Xs(a.value, l.value)), r.value && (a.value > it || l.value > it) && (r.value = !1);
2230
2230
  },
2231
2231
  start: (k) => {
2232
2232
  u(), e.value = k.touches[0].clientX, t.value = k.touches[0].clientY;
@@ -2252,15 +2252,15 @@ function Qs(e, t) {
2252
2252
  const v = n.deltaY.value > 0 ? a : o, h = bs(
2253
2253
  u.target,
2254
2254
  e.value
2255
- ), { scrollHeight: k, offsetHeight: B, scrollTop: j } = h;
2255
+ ), { scrollHeight: k, offsetHeight: B, scrollTop: z } = h;
2256
2256
  let F = "11";
2257
- j === 0 ? F = B >= k ? "00" : "01" : j + B >= k && (F = "10"), F !== "11" && n.isVertical() && !(parseInt(F, 2) & parseInt(v, 2)) && kt(u);
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 = () => {
2259
2259
  document.addEventListener("touchstart", n.start), document.addEventListener("touchmove", l, { passive: !1 }), ve || document.body.classList.add(dt), ve++;
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), Pe(c), Ct(c), V(t, (u) => {
2263
+ Tt(i), Ae(c), Ct(c), V(t, (u) => {
2264
2264
  u ? s() : r();
2265
2265
  });
2266
2266
  }
@@ -2305,7 +2305,7 @@ var oa = ge({
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)]), [[Ae, e.show]]);
2308
+ }, t), [(r = n.default) == null ? void 0 : r.call(n)]), [[Pe, e.show]]);
2309
2309
  });
2310
2310
  return Ot("touchmove", l, {
2311
2311
  target: o
@@ -2386,7 +2386,7 @@ var la = ge({
2386
2386
  }
2387
2387
  }, B = (b) => {
2388
2388
  t("clickCloseIcon", b), v();
2389
- }, j = () => {
2389
+ }, z = () => {
2390
2390
  if (e.closeable)
2391
2391
  return x(qs, {
2392
2392
  role: "button",
@@ -2426,7 +2426,7 @@ 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), j()]), [[Ae, pe]]);
2429
+ }, n, ft()), [(b = o.default) == null ? void 0 : b.call(o), z()]), [[Pe, pe]]);
2430
2430
  }), be = () => {
2431
2431
  const {
2432
2432
  position: b,
@@ -2447,7 +2447,7 @@ var la = ge({
2447
2447
  var Y;
2448
2448
  (Y = r.value) == null || Y.focus();
2449
2449
  })), !b && a && (a = !1, t("close"));
2450
- }), Ps({
2450
+ }), As({
2451
2451
  popupRef: r
2452
2452
  }), Qs(r, () => e.show && e.lockScroll), Ot("popstate", () => {
2453
2453
  e.closeOnPopstate && (v(), l = !1);
@@ -2455,16 +2455,18 @@ var la = ge({
2455
2455
  e.show && u();
2456
2456
  }), Ke(() => {
2457
2457
  l && (t("update:show", !0), l = !1);
2458
- }), Pe(() => {
2458
+ }), Ae(() => {
2459
2459
  e.show && e.teleport && (v(), l = !0);
2460
- }), Oe(As, () => e.show), () => e.teleport ? x(Te, {
2460
+ }), Oe(Ps, () => e.show), () => e.teleport ? x(Te, {
2461
2461
  to: e.teleport
2462
2462
  }, {
2463
2463
  default: () => [k(), be()]
2464
2464
  }) : x(H, 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 = {
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({
2468
+ name: "MPicker"
2469
+ }, {
2468
2470
  __name: "Picker",
2469
2471
  props: /* @__PURE__ */ Re({
2470
2472
  title: {
@@ -2490,12 +2492,12 @@ const ia = Le(la), ca = { class: "header" }, ua = { class: "title" }, da = { cla
2490
2492
  }),
2491
2493
  emits: /* @__PURE__ */ Re(["confirm"], ["update:modelValue", "update:show"]),
2492
2494
  setup(e, { emit: t }) {
2493
- const n = t, o = e, a = ze(e, "modelValue"), l = ze(e, "show"), s = (i) => {
2495
+ const n = t, o = e, a = je(e, "modelValue"), l = je(e, "show"), s = (i) => {
2494
2496
  a.value = i[o.columnsFieldNames.value], n("confirm", i), r();
2495
2497
  }, r = () => {
2496
2498
  l.value = !1;
2497
2499
  };
2498
- return (i, c) => (d(), E(z(ia), S({
2500
+ return (i, c) => (d(), E(j(ia), S({
2499
2501
  show: l.value,
2500
2502
  "onUpdate:show": c[0] || (c[0] = (u) => l.value = u),
2501
2503
  round: "",
@@ -2528,7 +2530,7 @@ const ia = Le(la), ca = { class: "header" }, ua = { class: "title" }, da = { cla
2528
2530
  xe(C("div", pa, [...c[2] || (c[2] = [
2529
2531
  C("i", { class: "iconfont icon-check" }, null, -1)
2530
2532
  ])], 512), [
2531
- [Ae, a.value === u[e.columnsFieldNames.value]]
2533
+ [Pe, a.value === u[e.columnsFieldNames.value]]
2532
2534
  ])
2533
2535
  ], 10, fa))), 128))
2534
2536
  ])
@@ -2536,7 +2538,7 @@ const ia = Le(la), ca = { class: "header" }, ua = { class: "title" }, da = { cla
2536
2538
  _: 3
2537
2539
  }, 16, ["show"]));
2538
2540
  }
2539
- }, ga = /* @__PURE__ */ G(va, [["__scopeId", "data-v-5ca52427"]]), Nt = [je, On, kn, xn, An, Bn, Dn, Nn, Fn, zn, jn, Vn, Gn, Wn, Hn, Xn, Jn, to, St, Et, wo, Oo, ko, xo, Do, qo, Qo, ss, Mt, ds, ga];
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];
2540
2542
  function Ft(e) {
2541
2543
  return !e || typeof e != "string" || !e.startsWith("M") ? null : "m-" + e.slice(1).replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
2542
2544
  }
@@ -2606,8 +2608,8 @@ export {
2606
2608
  Jn as MDialog,
2607
2609
  Oo as MEmpty,
2608
2610
  xn as MForm,
2609
- An as MFormItem,
2610
- je as MIcon,
2611
+ Pn as MFormItem,
2612
+ ze as MIcon,
2611
2613
  dr as MImage,
2612
2614
  Er as MImagePreview,
2613
2615
  fr as MImageViewer,
@@ -2620,10 +2622,10 @@ export {
2620
2622
  to as MNotification,
2621
2623
  Nn as MOption,
2622
2624
  Fn as MOptionGroup,
2623
- zn as MPagination,
2625
+ jn as MPagination,
2624
2626
  ga as MPicker,
2625
2627
  Cr as MProgress,
2626
- jn as MRadio,
2628
+ zn as MRadio,
2627
2629
  Gn as MRadioButton,
2628
2630
  Vn as MRadioGroup,
2629
2631
  _r as MResult,
@@ -2653,8 +2655,8 @@ export {
2653
2655
  Fo as applyGlobalOverride,
2654
2656
  Vo as createOverrideComponent,
2655
2657
  Ka as default,
2656
- zo as enableH5Override,
2657
- jo as forceRefreshStyles,
2658
+ jo as enableH5Override,
2659
+ zo as forceRefreshStyles,
2658
2660
  Ve as isH5,
2659
2661
  Za as mComponents
2660
2662
  };