antd-mobile 5.24.2 → 5.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/2x/bundle/antd-mobile.cjs.development.js +304 -191
  2. package/2x/bundle/antd-mobile.cjs.js +8 -8
  3. package/2x/bundle/antd-mobile.es.development.js +304 -191
  4. package/2x/bundle/antd-mobile.es.js +6566 -6502
  5. package/2x/bundle/antd-mobile.umd.development.js +304 -191
  6. package/2x/bundle/antd-mobile.umd.js +8 -8
  7. package/2x/bundle/style.css +1 -0
  8. package/2x/cjs/components/cascader-view/cascader-view.d.ts +1 -1
  9. package/2x/cjs/components/cascader-view/cascader-view.js +3 -4
  10. package/2x/cjs/components/image-uploader/image-uploader.js +8 -7
  11. package/2x/cjs/components/image-viewer/image-viewer.d.ts +1 -1
  12. package/2x/cjs/components/image-viewer/slide.d.ts +1 -1
  13. package/2x/cjs/components/image-viewer/slide.js +9 -2
  14. package/2x/cjs/components/popup/popup.css +1 -0
  15. package/2x/cjs/components/slider/thumb.js +3 -2
  16. package/2x/cjs/index.d.ts +81 -1
  17. package/2x/cjs/index.js +1 -1
  18. package/2x/es/components/cascader-view/cascader-view.d.ts +1 -1
  19. package/2x/es/components/cascader-view/cascader-view.js +3 -4
  20. package/2x/es/components/image-uploader/image-uploader.js +8 -7
  21. package/2x/es/components/image-viewer/image-viewer.d.ts +1 -1
  22. package/2x/es/components/image-viewer/slide.d.ts +1 -1
  23. package/2x/es/components/image-viewer/slide.js +9 -2
  24. package/2x/es/components/popup/popup.css +1 -0
  25. package/2x/es/components/slider/thumb.js +1 -1
  26. package/2x/es/index.d.ts +81 -1
  27. package/2x/es/index.js +1 -1
  28. package/2x/package.json +1 -1
  29. package/bundle/antd-mobile.cjs.development.js +304 -191
  30. package/bundle/antd-mobile.cjs.js +8 -8
  31. package/bundle/antd-mobile.compatible.umd.js +1 -1
  32. package/bundle/antd-mobile.es.development.js +304 -191
  33. package/bundle/antd-mobile.es.js +6566 -6502
  34. package/bundle/antd-mobile.umd.development.js +304 -191
  35. package/bundle/antd-mobile.umd.js +8 -8
  36. package/bundle/style.css +1 -1
  37. package/cjs/components/cascader-view/cascader-view.d.ts +1 -1
  38. package/cjs/components/cascader-view/cascader-view.js +3 -4
  39. package/cjs/components/image-uploader/image-uploader.js +8 -7
  40. package/cjs/components/image-viewer/image-viewer.d.ts +1 -1
  41. package/cjs/components/image-viewer/slide.d.ts +1 -1
  42. package/cjs/components/image-viewer/slide.js +9 -2
  43. package/cjs/components/popup/popup.css +1 -0
  44. package/cjs/components/slider/thumb.js +3 -2
  45. package/cjs/index.d.ts +81 -1
  46. package/cjs/index.js +1 -1
  47. package/es/components/cascader-view/cascader-view.d.ts +1 -1
  48. package/es/components/cascader-view/cascader-view.js +3 -4
  49. package/es/components/image-uploader/image-uploader.js +8 -7
  50. package/es/components/image-viewer/image-viewer.d.ts +1 -1
  51. package/es/components/image-viewer/slide.d.ts +1 -1
  52. package/es/components/image-viewer/slide.js +9 -2
  53. package/es/components/popup/popup.css +1 -0
  54. package/es/components/slider/thumb.js +1 -1
  55. package/es/index.d.ts +81 -1
  56. package/es/index.js +1 -1
  57. package/package.json +1 -1
  58. package/umd/antd-mobile.js +1 -1
@@ -338,9 +338,10 @@ const zhCN = mergeLocale(base, {
338
338
  name: "\u5F00\u5173"
339
339
  }
340
340
  });
341
+ const zhCN$1 = zhCN;
341
342
  const defaultConfigRef = {
342
343
  current: {
343
- locale: zhCN
344
+ locale: zhCN$1
344
345
  }
345
346
  };
346
347
  function setDefaultConfig(config2) {
@@ -350,7 +351,7 @@ function getDefaultConfig() {
350
351
  return defaultConfigRef.current;
351
352
  }
352
353
  const ConfigContext = React__default.default.createContext(null);
353
- const ConfigProvider = (props) => {
354
+ const ConfigProvider$1 = (props) => {
354
355
  const {
355
356
  children
356
357
  } = props, config2 = __rest(props, ["children"]);
@@ -363,6 +364,7 @@ function useConfig() {
363
364
  var _a;
364
365
  return (_a = React$1.useContext(ConfigContext)) !== null && _a !== void 0 ? _a : getDefaultConfig();
365
366
  }
367
+ const ConfigProvider = ConfigProvider$1;
366
368
  const actionSheet = "";
367
369
  function attachPropertiesToComponent(component, properties) {
368
370
  const ret = component;
@@ -919,10 +921,10 @@ var isFunction$1 = function isFunction(value) {
919
921
  var isNumber = function isNumber2(value) {
920
922
  return typeof value === "number";
921
923
  };
922
- var isDev = true;
923
- const isDev$1 = isDev;
924
+ var isDev$1 = true;
925
+ const isDev$2 = isDev$1;
924
926
  function useMemoizedFn(fn) {
925
- if (isDev$1) {
927
+ if (isDev$2) {
926
928
  if (!isFunction$1(fn)) {
927
929
  console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof fn));
928
930
  }
@@ -959,7 +961,7 @@ function useLatest(value) {
959
961
  return ref;
960
962
  }
961
963
  var useUnmount = function useUnmount2(fn) {
962
- if (isDev$1) {
964
+ if (isDev$2) {
963
965
  if (!isFunction$1(fn)) {
964
966
  console.error("useUnmount expected parameter is a function, got ".concat(typeof fn));
965
967
  }
@@ -1128,7 +1130,7 @@ function throttle$1(func, wait, options) {
1128
1130
  }
1129
1131
  var throttle_1 = throttle$1;
1130
1132
  var useMount = function useMount2(fn) {
1131
- if (isDev$1) {
1133
+ if (isDev$2) {
1132
1134
  if (!isFunction$1(fn)) {
1133
1135
  console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof fn, '".'));
1134
1136
  }
@@ -1282,10 +1284,13 @@ var dayjs_min = { exports: {} };
1282
1284
  !function(t, e) {
1283
1285
  module2.exports = e();
1284
1286
  }(commonjsGlobal, function() {
1285
- var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", f = "month", h = "quarter", c = "year", d = "date", $ = "Invalid Date", l = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_") }, m = function(t2, e2, n2) {
1287
+ var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", f = "month", h = "quarter", c = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
1288
+ var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
1289
+ return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
1290
+ } }, m = function(t2, e2, n2) {
1286
1291
  var r2 = String(t2);
1287
1292
  return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
1288
- }, g = { s: m, z: function(t2) {
1293
+ }, v = { s: m, z: function(t2) {
1289
1294
  var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
1290
1295
  return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
1291
1296
  }, m: function t2(e2, n2) {
@@ -1299,14 +1304,14 @@ var dayjs_min = { exports: {} };
1299
1304
  return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
1300
1305
  }, u: function(t2) {
1301
1306
  return void 0 === t2;
1302
- } }, v = "en", D = {};
1303
- D[v] = M;
1307
+ } }, g = "en", D = {};
1308
+ D[g] = M;
1304
1309
  var p = function(t2) {
1305
1310
  return t2 instanceof _;
1306
1311
  }, S = function t2(e2, n2, r2) {
1307
1312
  var i2;
1308
1313
  if (!e2)
1309
- return v;
1314
+ return g;
1310
1315
  if ("string" == typeof e2) {
1311
1316
  var s2 = e2.toLowerCase();
1312
1317
  D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
@@ -1317,13 +1322,13 @@ var dayjs_min = { exports: {} };
1317
1322
  var a2 = e2.name;
1318
1323
  D[a2] = e2, i2 = a2;
1319
1324
  }
1320
- return !r2 && i2 && (v = i2), i2 || !r2 && v;
1325
+ return !r2 && i2 && (g = i2), i2 || !r2 && g;
1321
1326
  }, w = function(t2, e2) {
1322
1327
  if (p(t2))
1323
1328
  return t2.clone();
1324
1329
  var n2 = "object" == typeof e2 ? e2 : {};
1325
1330
  return n2.date = t2, n2.args = arguments, new _(n2);
1326
- }, O = g;
1331
+ }, O = v;
1327
1332
  O.l = S, O.i = p, O.w = function(t2, e2) {
1328
1333
  return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
1329
1334
  };
@@ -1342,7 +1347,7 @@ var dayjs_min = { exports: {} };
1342
1347
  if (e2 instanceof Date)
1343
1348
  return new Date(e2);
1344
1349
  if ("string" == typeof e2 && !/Z$/i.test(e2)) {
1345
- var r2 = e2.match(l);
1350
+ var r2 = e2.match($);
1346
1351
  if (r2) {
1347
1352
  var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
1348
1353
  return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
@@ -1356,7 +1361,7 @@ var dayjs_min = { exports: {} };
1356
1361
  }, m2.$utils = function() {
1357
1362
  return O;
1358
1363
  }, m2.isValid = function() {
1359
- return !(this.$d.toString() === $);
1364
+ return !(this.$d.toString() === l);
1360
1365
  }, m2.isSame = function(t2, e2) {
1361
1366
  var n2 = w(t2);
1362
1367
  return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
@@ -1371,69 +1376,69 @@ var dayjs_min = { exports: {} };
1371
1376
  }, m2.valueOf = function() {
1372
1377
  return this.$d.getTime();
1373
1378
  }, m2.startOf = function(t2, e2) {
1374
- var n2 = this, r2 = !!O.u(e2) || e2, h2 = O.p(t2), $2 = function(t3, e3) {
1379
+ var n2 = this, r2 = !!O.u(e2) || e2, h2 = O.p(t2), l2 = function(t3, e3) {
1375
1380
  var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
1376
1381
  return r2 ? i2 : i2.endOf(a);
1377
- }, l2 = function(t3, e3) {
1382
+ }, $2 = function(t3, e3) {
1378
1383
  return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
1379
- }, y2 = this.$W, M3 = this.$M, m3 = this.$D, g2 = "set" + (this.$u ? "UTC" : "");
1384
+ }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
1380
1385
  switch (h2) {
1381
1386
  case c:
1382
- return r2 ? $2(1, 0) : $2(31, 11);
1387
+ return r2 ? l2(1, 0) : l2(31, 11);
1383
1388
  case f:
1384
- return r2 ? $2(1, M3) : $2(0, M3 + 1);
1389
+ return r2 ? l2(1, M3) : l2(0, M3 + 1);
1385
1390
  case o:
1386
- var v2 = this.$locale().weekStart || 0, D2 = (y2 < v2 ? y2 + 7 : y2) - v2;
1387
- return $2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
1391
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
1392
+ return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
1388
1393
  case a:
1389
1394
  case d:
1390
- return l2(g2 + "Hours", 0);
1395
+ return $2(v2 + "Hours", 0);
1391
1396
  case u:
1392
- return l2(g2 + "Minutes", 1);
1397
+ return $2(v2 + "Minutes", 1);
1393
1398
  case s:
1394
- return l2(g2 + "Seconds", 2);
1399
+ return $2(v2 + "Seconds", 2);
1395
1400
  case i:
1396
- return l2(g2 + "Milliseconds", 3);
1401
+ return $2(v2 + "Milliseconds", 3);
1397
1402
  default:
1398
1403
  return this.clone();
1399
1404
  }
1400
1405
  }, m2.endOf = function(t2) {
1401
1406
  return this.startOf(t2, false);
1402
1407
  }, m2.$set = function(t2, e2) {
1403
- var n2, o2 = O.p(t2), h2 = "set" + (this.$u ? "UTC" : ""), $2 = (n2 = {}, n2[a] = h2 + "Date", n2[d] = h2 + "Date", n2[f] = h2 + "Month", n2[c] = h2 + "FullYear", n2[u] = h2 + "Hours", n2[s] = h2 + "Minutes", n2[i] = h2 + "Seconds", n2[r] = h2 + "Milliseconds", n2)[o2], l2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
1408
+ var n2, o2 = O.p(t2), h2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = h2 + "Date", n2[d] = h2 + "Date", n2[f] = h2 + "Month", n2[c] = h2 + "FullYear", n2[u] = h2 + "Hours", n2[s] = h2 + "Minutes", n2[i] = h2 + "Seconds", n2[r] = h2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
1404
1409
  if (o2 === f || o2 === c) {
1405
1410
  var y2 = this.clone().set(d, 1);
1406
- y2.$d[$2](l2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
1411
+ y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
1407
1412
  } else
1408
- $2 && this.$d[$2](l2);
1413
+ l2 && this.$d[l2]($2);
1409
1414
  return this.init(), this;
1410
1415
  }, m2.set = function(t2, e2) {
1411
1416
  return this.clone().$set(t2, e2);
1412
1417
  }, m2.get = function(t2) {
1413
1418
  return this[O.p(t2)]();
1414
1419
  }, m2.add = function(r2, h2) {
1415
- var d2, $2 = this;
1420
+ var d2, l2 = this;
1416
1421
  r2 = Number(r2);
1417
- var l2 = O.p(h2), y2 = function(t2) {
1418
- var e2 = w($2);
1419
- return O.w(e2.date(e2.date() + Math.round(t2 * r2)), $2);
1422
+ var $2 = O.p(h2), y2 = function(t2) {
1423
+ var e2 = w(l2);
1424
+ return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
1420
1425
  };
1421
- if (l2 === f)
1426
+ if ($2 === f)
1422
1427
  return this.set(f, this.$M + r2);
1423
- if (l2 === c)
1428
+ if ($2 === c)
1424
1429
  return this.set(c, this.$y + r2);
1425
- if (l2 === a)
1430
+ if ($2 === a)
1426
1431
  return y2(1);
1427
- if (l2 === o)
1432
+ if ($2 === o)
1428
1433
  return y2(7);
1429
- var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[l2] || 1, m3 = this.$d.getTime() + r2 * M3;
1434
+ var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
1430
1435
  return O.w(m3, this);
1431
1436
  }, m2.subtract = function(t2, e2) {
1432
1437
  return this.add(-1 * t2, e2);
1433
1438
  }, m2.format = function(t2) {
1434
1439
  var e2 = this, n2 = this.$locale();
1435
1440
  if (!this.isValid())
1436
- return n2.invalidDate || $;
1441
+ return n2.invalidDate || l;
1437
1442
  var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, f2 = n2.months, h2 = function(t3, n3, i3, s3) {
1438
1443
  return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
1439
1444
  }, c6 = function(t3) {
@@ -1441,15 +1446,15 @@ var dayjs_min = { exports: {} };
1441
1446
  }, d2 = n2.meridiem || function(t3, e3, n3) {
1442
1447
  var r3 = t3 < 12 ? "AM" : "PM";
1443
1448
  return n3 ? r3.toLowerCase() : r3;
1444
- }, l2 = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: a2 + 1, MM: O.s(a2 + 1, 2, "0"), MMM: h2(n2.monthsShort, a2, f2, 3), MMMM: h2(f2, a2), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: h2(n2.weekdaysMin, this.$W, o2, 2), ddd: h2(n2.weekdaysShort, this.$W, o2, 3), dddd: o2[this.$W], H: String(s2), HH: O.s(s2, 2, "0"), h: c6(1), hh: c6(2), a: d2(s2, u2, true), A: d2(s2, u2, false), m: String(u2), mm: O.s(u2, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: i2 };
1449
+ }, $2 = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: a2 + 1, MM: O.s(a2 + 1, 2, "0"), MMM: h2(n2.monthsShort, a2, f2, 3), MMMM: h2(f2, a2), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: h2(n2.weekdaysMin, this.$W, o2, 2), ddd: h2(n2.weekdaysShort, this.$W, o2, 3), dddd: o2[this.$W], H: String(s2), HH: O.s(s2, 2, "0"), h: c6(1), hh: c6(2), a: d2(s2, u2, true), A: d2(s2, u2, false), m: String(u2), mm: O.s(u2, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: i2 };
1445
1450
  return r2.replace(y, function(t3, e3) {
1446
- return e3 || l2[t3] || i2.replace(":", "");
1451
+ return e3 || $2[t3] || i2.replace(":", "");
1447
1452
  });
1448
1453
  }, m2.utcOffset = function() {
1449
1454
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1450
- }, m2.diff = function(r2, d2, $2) {
1451
- var l2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e, g2 = this - M3, v2 = O.m(this, M3);
1452
- return v2 = (l2 = {}, l2[c] = v2 / 12, l2[f] = v2, l2[h] = v2 / 3, l2[o] = (g2 - m3) / 6048e5, l2[a] = (g2 - m3) / 864e5, l2[u] = g2 / n, l2[s] = g2 / e, l2[i] = g2 / t, l2)[y2] || g2, $2 ? v2 : O.a(v2);
1455
+ }, m2.diff = function(r2, d2, l2) {
1456
+ var $2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e, v2 = this - M3, g2 = O.m(this, M3);
1457
+ return g2 = ($2 = {}, $2[c] = g2 / 12, $2[f] = g2, $2[h] = g2 / 3, $2[o] = (v2 - m3) / 6048e5, $2[a] = (v2 - m3) / 864e5, $2[u] = v2 / n, $2[s] = v2 / e, $2[i] = v2 / t, $2)[y2] || v2, l2 ? g2 : O.a(g2);
1453
1458
  }, m2.daysInMonth = function() {
1454
1459
  return this.endOf(f).$D;
1455
1460
  }, m2.$locale = function() {
@@ -1479,7 +1484,7 @@ var dayjs_min = { exports: {} };
1479
1484
  return t2.$i || (t2(e2, _, w), t2.$i = true), w;
1480
1485
  }, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
1481
1486
  return w(1e3 * t2);
1482
- }, w.en = D[v], w.Ls = D, w.p = {}, w;
1487
+ }, w.en = D[g], w.Ls = D, w.p = {}, w;
1483
1488
  });
1484
1489
  })(dayjs_min);
1485
1490
  const dayjs = dayjs_min.exports;
@@ -1520,7 +1525,7 @@ var __spreadArray$2 = globalThis && globalThis.__spreadArray || function(to2, fr
1520
1525
  };
1521
1526
  function useDebounceFn(fn, options) {
1522
1527
  var _a;
1523
- if (isDev$1) {
1528
+ if (isDev$2) {
1524
1529
  if (!isFunction$1(fn)) {
1525
1530
  console.error("useDebounceFn expected parameter is a function, got ".concat(typeof fn));
1526
1531
  }
@@ -3587,7 +3592,7 @@ var __spreadArray = globalThis && globalThis.__spreadArray || function(to2, from
3587
3592
  };
3588
3593
  function useThrottleFn(fn, options) {
3589
3594
  var _a;
3590
- if (isDev$1) {
3595
+ if (isDev$2) {
3591
3596
  if (!isFunction$1(fn)) {
3592
3597
  console.error("useThrottleFn expected parameter is a function, got ".concat(typeof fn));
3593
3598
  }
@@ -7038,7 +7043,7 @@ const defaultProps$13 = {
7038
7043
  getContainer: null,
7039
7044
  stopPropagation: ["click"]
7040
7045
  };
7041
- const Mask = (p) => {
7046
+ const Mask$1 = (p) => {
7042
7047
  const props = mergeProps(defaultProps$13, p);
7043
7048
  const {
7044
7049
  locale
@@ -7107,6 +7112,7 @@ const Mask = (p) => {
7107
7112
  destroyOnClose: props.destroyOnClose
7108
7113
  }, renderToContainer(props.getContainer, node));
7109
7114
  };
7115
+ const Mask = Mask$1;
7110
7116
  function AddOutline(props) {
7111
7117
  return /* @__PURE__ */ React__namespace.createElement("svg", Object.assign({
7112
7118
  width: "1em",
@@ -7720,7 +7726,7 @@ const classPrefix$1k = `adm-popup`;
7720
7726
  const defaultProps$12 = Object.assign(Object.assign({}, defaultPopupBaseProps), {
7721
7727
  position: "bottom"
7722
7728
  });
7723
- const Popup = (p) => {
7729
+ const Popup$1 = (p) => {
7724
7730
  const props = mergeProps(defaultProps$12, p);
7725
7731
  const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
7726
7732
  const [active, setActive] = React$1.useState(props.visible);
@@ -7809,13 +7815,15 @@ const Popup = (p) => {
7809
7815
  destroyOnClose: props.destroyOnClose
7810
7816
  }, renderToContainer(props.getContainer, node));
7811
7817
  };
7818
+ const Popup = Popup$1;
7812
7819
  const safeArea = "";
7813
7820
  const classPrefix$1j = "adm-safe-area";
7814
- const SafeArea = (props) => {
7821
+ const SafeArea$1 = (props) => {
7815
7822
  return withNativeProps(props, React__default.default.createElement("div", {
7816
7823
  className: classNames(classPrefix$1j, `${classPrefix$1j}-position-${props.position}`)
7817
7824
  }));
7818
7825
  };
7826
+ const SafeArea = SafeArea$1;
7819
7827
  const fullClone = Object.assign({}, ReactDOM__namespace);
7820
7828
  const {
7821
7829
  version,
@@ -8020,13 +8028,14 @@ const index$j = attachPropertiesToComponent(ActionSheet, {
8020
8028
  });
8021
8029
  const autoCenter = "";
8022
8030
  const classPrefix$1h = "adm-auto-center";
8023
- const AutoCenter = (props) => {
8031
+ const AutoCenter$1 = (props) => {
8024
8032
  return withNativeProps(props, React__default.default.createElement("div", {
8025
8033
  className: classPrefix$1h
8026
8034
  }, React__default.default.createElement("div", {
8027
8035
  className: `${classPrefix$1h}-content`
8028
8036
  }, props.children)));
8029
8037
  };
8038
+ const AutoCenter = AutoCenter$1;
8030
8039
  const avatar = "";
8031
8040
  const image = "";
8032
8041
  var _stagedComponents_1_1_3_stagedComponents = {};
@@ -8098,7 +8107,7 @@ const defaultProps$10 = {
8098
8107
  lazy: false,
8099
8108
  draggable: false
8100
8109
  };
8101
- const Image$1 = staged_1((p) => {
8110
+ const Image$2 = staged_1((p) => {
8102
8111
  const props = mergeProps(defaultProps$10, p);
8103
8112
  const [loaded, setLoaded] = React$1.useState(false);
8104
8113
  const [failed, setFailed] = React$1.useState(false);
@@ -8166,6 +8175,7 @@ const Image$1 = staged_1((p) => {
8166
8175
  }
8167
8176
  }), renderInner()));
8168
8177
  });
8178
+ const Image$1 = Image$2;
8169
8179
  const Fallback = React$1.memo(() => React__default.default.createElement("svg", {
8170
8180
  className: "adm-avatar-fallback",
8171
8181
  width: "88px",
@@ -8209,7 +8219,7 @@ const defaultProps$$ = {
8209
8219
  fallback: React__default.default.createElement(Fallback, null),
8210
8220
  fit: "cover"
8211
8221
  };
8212
- const Avatar = (p) => {
8222
+ const Avatar$1 = (p) => {
8213
8223
  const props = mergeProps(defaultProps$$, p);
8214
8224
  return withNativeProps(props, React__default.default.createElement(Image$1, {
8215
8225
  className: classPrefix$1f,
@@ -8223,6 +8233,7 @@ const Avatar = (p) => {
8223
8233
  onError: props.onError
8224
8234
  }));
8225
8235
  };
8236
+ const Avatar = Avatar$1;
8226
8237
  const badge = "";
8227
8238
  const classPrefix$1e = `adm-badge`;
8228
8239
  const dot = React__default.default.createElement(React__default.default.Fragment, null);
@@ -8261,7 +8272,7 @@ const colorRecord$3 = {
8261
8272
  const defaultProps$_ = {
8262
8273
  color: "default"
8263
8274
  };
8264
- const DotLoading = React$1.memo((p) => {
8275
+ const DotLoading$2 = React$1.memo((p) => {
8265
8276
  var _a;
8266
8277
  const props = mergeProps(defaultProps$_, p);
8267
8278
  return withNativeProps(props, React__default.default.createElement("div", {
@@ -8305,6 +8316,7 @@ const DotLoading = React$1.memo((p) => {
8305
8316
  keyTimes: "0; 0.1; 0.3; 0.4; 1"
8306
8317
  }))))))))));
8307
8318
  });
8319
+ const DotLoading$1 = DotLoading$2;
8308
8320
  function isPromise(obj) {
8309
8321
  return !!obj && typeof obj === "object" && typeof obj.then === "function";
8310
8322
  }
@@ -8317,14 +8329,14 @@ const defaultProps$Z = {
8317
8329
  fill: "solid",
8318
8330
  block: false,
8319
8331
  loading: false,
8320
- loadingIcon: React__default.default.createElement(DotLoading, {
8332
+ loadingIcon: React__default.default.createElement(DotLoading$1, {
8321
8333
  color: "currentColor"
8322
8334
  }),
8323
8335
  type: "button",
8324
8336
  shape: "default",
8325
8337
  size: "middle"
8326
8338
  };
8327
- const Button = React$1.forwardRef((p, ref) => {
8339
+ const Button$1 = React$1.forwardRef((p, ref) => {
8328
8340
  const props = mergeProps(defaultProps$Z, p);
8329
8341
  const [innerLoading, setInnerLoading] = React$1.useState(false);
8330
8342
  const nativeButtonRef = React$1.useRef(null);
@@ -8373,6 +8385,7 @@ const Button = React$1.forwardRef((p, ref) => {
8373
8385
  className: `${classPrefix$1c}-loading-wrapper`
8374
8386
  }, props.loadingIcon, props.loadingText) : React__default.default.createElement("span", null, props.children)));
8375
8387
  });
8388
+ const Button = Button$1;
8376
8389
  const calendar = "";
8377
8390
  const ArrowLeft = () => {
8378
8391
  return React__default.default.createElement("svg", {
@@ -8504,7 +8517,7 @@ const defaultProps$Y = {
8504
8517
  nextMonthButton: React__default.default.createElement(ArrowLeft, null),
8505
8518
  nextYearButton: React__default.default.createElement(ArrowLeftDouble, null)
8506
8519
  };
8507
- const Calendar = React$1.forwardRef((p, ref) => {
8520
+ const Calendar$1 = React$1.forwardRef((p, ref) => {
8508
8521
  const today = dayjs();
8509
8522
  const props = mergeProps(defaultProps$Y, p);
8510
8523
  const {
@@ -8688,6 +8701,7 @@ const Calendar = React$1.forwardRef((p, ref) => {
8688
8701
  className: classPrefix$1b
8689
8702
  }, header, mark, body));
8690
8703
  });
8704
+ const Calendar = Calendar$1;
8691
8705
  const capsuleTabs = "";
8692
8706
  function useResizeEffect(effect, targetRef) {
8693
8707
  const fn = useMemoizedFn(effect);
@@ -8789,7 +8803,7 @@ const useTabListScroll = (targetRef, activeIndex) => {
8789
8803
  };
8790
8804
  const scrollMask = "";
8791
8805
  const classPrefix$1a = `adm-scroll-mask`;
8792
- const ScrollMask = (props) => {
8806
+ const ScrollMask$1 = (props) => {
8793
8807
  const maskRef = React$1.useRef(null);
8794
8808
  const [{
8795
8809
  leftMaskOpacity,
@@ -8846,6 +8860,7 @@ const ScrollMask = (props) => {
8846
8860
  }
8847
8861
  }));
8848
8862
  };
8863
+ const ScrollMask = ScrollMask$1;
8849
8864
  var _reactIs_17_0_2_reactIs = { exports: {} };
8850
8865
  var reactIs_development$1 = {};
8851
8866
  /** @license React v17.0.2
@@ -9149,7 +9164,7 @@ const index$i = attachPropertiesToComponent(CapsuleTabs, {
9149
9164
  });
9150
9165
  const card = "";
9151
9166
  const classPrefix$18 = `adm-card`;
9152
- const Card = (props) => {
9167
+ const Card$1 = (props) => {
9153
9168
  const renderHeader = () => {
9154
9169
  if (!(props.title || props.extra)) {
9155
9170
  return null;
@@ -9177,6 +9192,7 @@ const Card = (props) => {
9177
9192
  onClick: props.onClick
9178
9193
  }, renderHeader(), renderBody()));
9179
9194
  };
9195
+ const Card = Card$1;
9180
9196
  const picker = "";
9181
9197
  function clamp(v, min2, max2) {
9182
9198
  return Math.max(min2, Math.min(v, max2));
@@ -10984,13 +11000,14 @@ function rubberbandIfOutOfBounds(position, min2, max2, dimension, constant2 = 0.
10984
11000
  return +rubberband(position - max2, dimension, constant2) + max2;
10985
11001
  return position;
10986
11002
  }
11003
+ const isDev = true;
10987
11004
  function devWarning(component, message) {
10988
- {
11005
+ if (isDev) {
10989
11006
  console.warn(`[antd-mobile: ${component}] ${message}`);
10990
11007
  }
10991
11008
  }
10992
11009
  function devError(component, message) {
10993
- {
11010
+ if (isDev) {
10994
11011
  console.error(`[antd-mobile: ${component}] ${message}`);
10995
11012
  }
10996
11013
  }
@@ -11420,7 +11437,7 @@ const defaultProps$X = {
11420
11437
  color: "default"
11421
11438
  };
11422
11439
  const circumference = 15 * 3.14159265358979 * 2;
11423
- const SpinLoading = React$1.memo((p) => {
11440
+ const SpinLoading$1 = React$1.memo((p) => {
11424
11441
  var _a;
11425
11442
  const props = mergeProps(defaultProps$X, p);
11426
11443
  const motionReduced = useMotionReduced();
@@ -11462,6 +11479,7 @@ const SpinLoading = React$1.memo((p) => {
11462
11479
  cy: 16
11463
11480
  }))));
11464
11481
  });
11482
+ const SpinLoading = SpinLoading$1;
11465
11483
  const classPrefix$15 = `adm-picker-view`;
11466
11484
  const defaultProps$W = {
11467
11485
  defaultValue: [],
@@ -11471,7 +11489,7 @@ const defaultProps$W = {
11471
11489
  className: `${classPrefix$15}-loading-content`
11472
11490
  }, React__default.default.createElement(SpinLoading, null))
11473
11491
  };
11474
- const PickerView = React$1.memo((p) => {
11492
+ const PickerView$1 = React$1.memo((p) => {
11475
11493
  const props = mergeProps(defaultProps$W, p);
11476
11494
  const [innerValue, setInnerValue] = React$1.useState(props.value === void 0 ? props.defaultValue : props.value);
11477
11495
  React$1.useEffect(() => {
@@ -11532,8 +11550,9 @@ const PickerView = React$1.memo((p) => {
11532
11550
  className: `${classPrefix$15}-mask-bottom`
11533
11551
  })))));
11534
11552
  });
11535
- PickerView.displayName = "PickerView";
11553
+ PickerView$1.displayName = "PickerView";
11536
11554
  const pickerView = "";
11555
+ const PickerView = PickerView$1;
11537
11556
  const classPrefix$14 = `adm-picker`;
11538
11557
  const defaultProps$V = {
11539
11558
  defaultValue: [],
@@ -11774,7 +11793,7 @@ function prompt$2(props) {
11774
11793
  const index$h = attachPropertiesToComponent(CascadePicker, {
11775
11794
  prompt: prompt$2
11776
11795
  });
11777
- const CascadePickerView = (props) => {
11796
+ const CascadePickerView$1 = (props) => {
11778
11797
  const {
11779
11798
  options
11780
11799
  } = props, pickerProps = __rest(props, ["options"]);
@@ -11783,6 +11802,7 @@ const CascadePickerView = (props) => {
11783
11802
  columns: columnsFn
11784
11803
  }));
11785
11804
  };
11805
+ const CascadePickerView = CascadePickerView$1;
11786
11806
  const cascaderView = "";
11787
11807
  const tabs = "";
11788
11808
  const classPrefix$13 = `adm-tabs`;
@@ -12254,9 +12274,8 @@ const CascaderView$1 = (p) => {
12254
12274
  const {
12255
12275
  locale
12256
12276
  } = useConfig();
12257
- const props = mergeProps(defaultProps$R, {
12258
- placeholder: locale.Cascader.placeholder
12259
- }, p);
12277
+ const props = mergeProps(defaultProps$R, p);
12278
+ const placeholder = props.placeholder || locale.Cascader.placeholder;
12260
12279
  const [value, setValue2] = usePropsValue(Object.assign(Object.assign({}, props), {
12261
12280
  onChange: (val) => {
12262
12281
  var _a;
@@ -12325,7 +12344,7 @@ const CascaderView$1 = (p) => {
12325
12344
  key: index2.toString(),
12326
12345
  title: React__default.default.createElement("div", {
12327
12346
  className: `${classPrefix$Z}-header-title`
12328
- }, selected ? selected.label : props.placeholder),
12347
+ }, selected ? selected.label : typeof placeholder === "function" ? placeholder(index2) : placeholder),
12329
12348
  forceRender: true
12330
12349
  }, React__default.default.createElement("div", {
12331
12350
  className: `${classPrefix$Z}-content`
@@ -12507,7 +12526,7 @@ const centerPopup = "";
12507
12526
  const defaultProps$P = Object.assign(Object.assign({}, defaultPopupBaseProps), {
12508
12527
  getContainer: null
12509
12528
  });
12510
- const CenterPopup = (p) => {
12529
+ const CenterPopup$1 = (p) => {
12511
12530
  const props = mergeProps(defaultProps$P, p);
12512
12531
  const unmountedRef = useUnmountedRef$1();
12513
12532
  const style = useSpring({
@@ -12585,6 +12604,7 @@ const CenterPopup = (p) => {
12585
12604
  destroyOnClose: props.destroyOnClose
12586
12605
  }, renderToContainer(props.getContainer, node));
12587
12606
  };
12607
+ const CenterPopup = CenterPopup$1;
12588
12608
  const checkbox = "";
12589
12609
  const CheckboxGroupContext = React$1.createContext(null);
12590
12610
  const defaultProps$O = {
@@ -12676,7 +12696,7 @@ const Checkbox$1 = React$1.forwardRef((p, ref) => {
12676
12696
  value
12677
12697
  } = props;
12678
12698
  if (groupContext && value !== void 0) {
12679
- {
12699
+ if (isDev) {
12680
12700
  if (p.checked !== void 0) {
12681
12701
  devWarning("Checkbox", "When used within `Checkbox.Group`, the `checked` prop of `Checkbox` will not work.");
12682
12702
  }
@@ -13300,7 +13320,7 @@ const defaultProps$L = {
13300
13320
  precision: "day",
13301
13321
  renderLabel: defaultRenderLabel
13302
13322
  };
13303
- const DatePickerView = (p) => {
13323
+ const DatePickerView$1 = (p) => {
13304
13324
  var _a;
13305
13325
  const props = mergeProps(defaultProps$L, p);
13306
13326
  const [value, setValue2] = usePropsValue({
@@ -13325,6 +13345,7 @@ const DatePickerView = (p) => {
13325
13345
  onChange
13326
13346
  }));
13327
13347
  };
13348
+ const DatePickerView = DatePickerView$1;
13328
13349
  const dialog = "";
13329
13350
  const DialogActionButton = (props) => {
13330
13351
  const {
@@ -13500,7 +13521,7 @@ const defaultProps$I = {
13500
13521
  contentPosition: "center",
13501
13522
  direction: "horizontal"
13502
13523
  };
13503
- const Divider = (p) => {
13524
+ const Divider$1 = (p) => {
13504
13525
  const props = mergeProps(defaultProps$I, p);
13505
13526
  return withNativeProps(props, React__default.default.createElement("div", {
13506
13527
  className: classNames(classPrefix$V, `${classPrefix$V}-${props.direction}`, `${classPrefix$V}-${props.contentPosition}`)
@@ -13508,6 +13529,7 @@ const Divider = (p) => {
13508
13529
  className: `${classPrefix$V}-content`
13509
13530
  }, props.children)));
13510
13531
  };
13532
+ const Divider = Divider$1;
13511
13533
  const dropdown = "";
13512
13534
  const classPrefix$U = `adm-dropdown-item`;
13513
13535
  const Item = (props) => {
@@ -13529,6 +13551,7 @@ const Item = (props) => {
13529
13551
  })
13530
13552
  }, props.arrow === void 0 ? React__default.default.createElement(DownFill, null) : props.arrow))));
13531
13553
  };
13554
+ const Item$1 = Item;
13532
13555
  const ItemChildrenWrap = (props) => {
13533
13556
  const {
13534
13557
  active = false
@@ -13637,8 +13660,9 @@ const Dropdown = React$1.forwardRef((p, ref) => {
13637
13660
  }, item.props.children);
13638
13661
  })))));
13639
13662
  });
13640
- const index$c = attachPropertiesToComponent(Dropdown, {
13641
- Item
13663
+ const Dropdown$1 = Dropdown;
13664
+ const index$c = attachPropertiesToComponent(Dropdown$1, {
13665
+ Item: Item$1
13642
13666
  });
13643
13667
  const ellipsis = "";
13644
13668
  var _runes_0_4_3_runes = { exports: {} };
@@ -13772,7 +13796,7 @@ const defaultProps$G = {
13772
13796
  onContentClick: () => {
13773
13797
  }
13774
13798
  };
13775
- const Ellipsis = (p) => {
13799
+ const Ellipsis$1 = (p) => {
13776
13800
  const props = mergeProps(defaultProps$G, p);
13777
13801
  const rootRef = React$1.useRef(null);
13778
13802
  const [ellipsised, setEllipsised] = React$1.useState({});
@@ -13908,6 +13932,7 @@ function pxToNumber(value) {
13908
13932
  const match = value.match(/^\d*(\.\d*)?/);
13909
13933
  return match ? Number(match[0]) : 0;
13910
13934
  }
13935
+ const Ellipsis = Ellipsis$1;
13911
13936
  const empty = "";
13912
13937
  const EmptyIcon = (props) => {
13913
13938
  return withNativeProps(props, React__default.default.createElement("svg", {
@@ -13932,7 +13957,7 @@ const EmptyIcon = (props) => {
13932
13957
  })))));
13933
13958
  };
13934
13959
  const classPrefix$R = `adm-empty`;
13935
- const Empty = (props) => {
13960
+ const Empty$1 = (props) => {
13936
13961
  function renderImageNode() {
13937
13962
  const {
13938
13963
  image: image2
@@ -13961,6 +13986,7 @@ const Empty = (props) => {
13961
13986
  className: classNames(`${classPrefix$R}-description`)
13962
13987
  }, props.description)));
13963
13988
  };
13989
+ const Empty = Empty$1;
13964
13990
  const errorBlock = "";
13965
13991
  const classPrefix$Q = `adm-error-block`;
13966
13992
  const defaultProps$F = {
@@ -14499,13 +14525,14 @@ const imageRecord = {
14499
14525
  "empty": emptyImage,
14500
14526
  "busy": busyImage
14501
14527
  };
14502
- const ErrorBlock = createErrorBlock(imageRecord);
14528
+ const ErrorBlock$1 = createErrorBlock(imageRecord);
14529
+ const ErrorBlock = ErrorBlock$1;
14503
14530
  const floatingBubble = "";
14504
14531
  const classPrefix$P = `adm-floating-bubble`;
14505
14532
  const defaultProps$E = {
14506
14533
  axis: "y"
14507
14534
  };
14508
- const FloatingBubble = (p) => {
14535
+ const FloatingBubble$1 = (p) => {
14509
14536
  const props = mergeProps(defaultProps$E, p);
14510
14537
  const boundaryRef = React$1.useRef(null);
14511
14538
  const buttonRef = React$1.useRef(null);
@@ -14581,6 +14608,7 @@ const FloatingBubble = (p) => {
14581
14608
  ref: buttonRef
14582
14609
  }), props.children)));
14583
14610
  };
14611
+ const FloatingBubble = FloatingBubble$1;
14584
14612
  const floatingPanel = "";
14585
14613
  function nearest(arr, target) {
14586
14614
  return arr.reduce((pre, cur) => {
@@ -14590,7 +14618,7 @@ function nearest(arr, target) {
14590
14618
  const defaultProps$D = {
14591
14619
  handleDraggingOfContent: true
14592
14620
  };
14593
- const FloatingPanel = React$1.forwardRef((p, ref) => {
14621
+ const FloatingPanel$1 = React$1.forwardRef((p, ref) => {
14594
14622
  var _a, _b;
14595
14623
  const props = mergeProps(defaultProps$D, p);
14596
14624
  const {
@@ -14706,6 +14734,7 @@ const FloatingPanel = React$1.forwardRef((p, ref) => {
14706
14734
  ref: contentRef
14707
14735
  }, props.children)));
14708
14736
  });
14737
+ const FloatingPanel = FloatingPanel$1;
14709
14738
  const index$b = "";
14710
14739
  function _extends$1() {
14711
14740
  _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
@@ -15168,7 +15197,9 @@ function _regeneratorRuntime() {
15168
15197
  _regeneratorRuntime = function _regeneratorRuntime2() {
15169
15198
  return exports2;
15170
15199
  };
15171
- var exports2 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
15200
+ var exports2 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty2 = Object.defineProperty || function(obj, key, desc) {
15201
+ obj[key] = desc.value;
15202
+ }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
15172
15203
  function define(obj, key, value) {
15173
15204
  return Object.defineProperty(obj, key, {
15174
15205
  value,
@@ -15186,48 +15217,9 @@ function _regeneratorRuntime() {
15186
15217
  }
15187
15218
  function wrap(innerFn, outerFn, self2, tryLocsList) {
15188
15219
  var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context2(tryLocsList || []);
15189
- return generator._invoke = function(innerFn2, self3, context2) {
15190
- var state = "suspendedStart";
15191
- return function(method4, arg) {
15192
- if ("executing" === state)
15193
- throw new Error("Generator is already running");
15194
- if ("completed" === state) {
15195
- if ("throw" === method4)
15196
- throw arg;
15197
- return doneResult();
15198
- }
15199
- for (context2.method = method4, context2.arg = arg; ; ) {
15200
- var delegate = context2.delegate;
15201
- if (delegate) {
15202
- var delegateResult = maybeInvokeDelegate(delegate, context2);
15203
- if (delegateResult) {
15204
- if (delegateResult === ContinueSentinel)
15205
- continue;
15206
- return delegateResult;
15207
- }
15208
- }
15209
- if ("next" === context2.method)
15210
- context2.sent = context2._sent = context2.arg;
15211
- else if ("throw" === context2.method) {
15212
- if ("suspendedStart" === state)
15213
- throw state = "completed", context2.arg;
15214
- context2.dispatchException(context2.arg);
15215
- } else
15216
- "return" === context2.method && context2.abrupt("return", context2.arg);
15217
- state = "executing";
15218
- var record2 = tryCatch(innerFn2, self3, context2);
15219
- if ("normal" === record2.type) {
15220
- if (state = context2.done ? "completed" : "suspendedYield", record2.arg === ContinueSentinel)
15221
- continue;
15222
- return {
15223
- value: record2.arg,
15224
- done: context2.done
15225
- };
15226
- }
15227
- "throw" === record2.type && (state = "completed", context2.method = "throw", context2.arg = record2.arg);
15228
- }
15229
- };
15230
- }(innerFn, self2, context), generator;
15220
+ return defineProperty2(generator, "_invoke", {
15221
+ value: makeInvokeMethod(innerFn, self2, context)
15222
+ }), generator;
15231
15223
  }
15232
15224
  function tryCatch(fn, obj, arg) {
15233
15225
  try {
@@ -15282,13 +15274,57 @@ function _regeneratorRuntime() {
15282
15274
  reject(record2.arg);
15283
15275
  }
15284
15276
  var previousPromise;
15285
- this._invoke = function(method4, arg) {
15286
- function callInvokeWithMethodAndArg() {
15287
- return new PromiseImpl(function(resolve, reject) {
15288
- invoke(method4, arg, resolve, reject);
15289
- });
15277
+ defineProperty2(this, "_invoke", {
15278
+ value: function value(method4, arg) {
15279
+ function callInvokeWithMethodAndArg() {
15280
+ return new PromiseImpl(function(resolve, reject) {
15281
+ invoke(method4, arg, resolve, reject);
15282
+ });
15283
+ }
15284
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
15285
+ }
15286
+ });
15287
+ }
15288
+ function makeInvokeMethod(innerFn, self2, context) {
15289
+ var state = "suspendedStart";
15290
+ return function(method4, arg) {
15291
+ if ("executing" === state)
15292
+ throw new Error("Generator is already running");
15293
+ if ("completed" === state) {
15294
+ if ("throw" === method4)
15295
+ throw arg;
15296
+ return doneResult();
15297
+ }
15298
+ for (context.method = method4, context.arg = arg; ; ) {
15299
+ var delegate = context.delegate;
15300
+ if (delegate) {
15301
+ var delegateResult = maybeInvokeDelegate(delegate, context);
15302
+ if (delegateResult) {
15303
+ if (delegateResult === ContinueSentinel)
15304
+ continue;
15305
+ return delegateResult;
15306
+ }
15307
+ }
15308
+ if ("next" === context.method)
15309
+ context.sent = context._sent = context.arg;
15310
+ else if ("throw" === context.method) {
15311
+ if ("suspendedStart" === state)
15312
+ throw state = "completed", context.arg;
15313
+ context.dispatchException(context.arg);
15314
+ } else
15315
+ "return" === context.method && context.abrupt("return", context.arg);
15316
+ state = "executing";
15317
+ var record2 = tryCatch(innerFn, self2, context);
15318
+ if ("normal" === record2.type) {
15319
+ if (state = context.done ? "completed" : "suspendedYield", record2.arg === ContinueSentinel)
15320
+ continue;
15321
+ return {
15322
+ value: record2.arg,
15323
+ done: context.done
15324
+ };
15325
+ }
15326
+ "throw" === record2.type && (state = "completed", context.method = "throw", context.arg = record2.arg);
15290
15327
  }
15291
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
15292
15328
  };
15293
15329
  }
15294
15330
  function maybeInvokeDelegate(delegate, context) {
@@ -15350,7 +15386,13 @@ function _regeneratorRuntime() {
15350
15386
  done: true
15351
15387
  };
15352
15388
  }
15353
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports2.isGeneratorFunction = function(genFun) {
15389
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty2(Gp, "constructor", {
15390
+ value: GeneratorFunctionPrototype,
15391
+ configurable: true
15392
+ }), defineProperty2(GeneratorFunctionPrototype, "constructor", {
15393
+ value: GeneratorFunction,
15394
+ configurable: true
15395
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports2.isGeneratorFunction = function(genFun) {
15354
15396
  var ctor = "function" == typeof genFun && genFun.constructor;
15355
15397
  return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
15356
15398
  }, exports2.mark = function(genFun) {
@@ -15371,8 +15413,8 @@ function _regeneratorRuntime() {
15371
15413
  return this;
15372
15414
  }), define(Gp, "toString", function() {
15373
15415
  return "[object Generator]";
15374
- }), exports2.keys = function(object4) {
15375
- var keys2 = [];
15416
+ }), exports2.keys = function(val) {
15417
+ var object4 = Object(val), keys2 = [];
15376
15418
  for (var key in object4) {
15377
15419
  keys2.push(key);
15378
15420
  }
@@ -17190,6 +17232,8 @@ var Field = /* @__PURE__ */ function(_React$Component) {
17190
17232
  var filteredRules = _this.getRules();
17191
17233
  if (triggerName) {
17192
17234
  filteredRules = filteredRules.filter(function(rule) {
17235
+ return rule;
17236
+ }).filter(function(rule) {
17193
17237
  var validateTrigger = rule.validateTrigger;
17194
17238
  if (!validateTrigger) {
17195
17239
  return true;
@@ -19830,9 +19874,10 @@ function isOverflowElement(element) {
19830
19874
  const {
19831
19875
  overflow,
19832
19876
  overflowX,
19833
- overflowY
19877
+ overflowY,
19878
+ display
19834
19879
  } = getComputedStyle(element);
19835
- return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
19880
+ return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display);
19836
19881
  }
19837
19882
  function isTableElement(element) {
19838
19883
  return ["table", "td", "th"].includes(getNodeName(element));
@@ -19840,11 +19885,19 @@ function isTableElement(element) {
19840
19885
  function isContainingBlock(element) {
19841
19886
  const isFirefox = /firefox/i.test(getUAString());
19842
19887
  const css = getComputedStyle(element);
19843
- return css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].includes(css.willChange) || isFirefox && css.willChange === "filter" || isFirefox && (css.filter ? css.filter !== "none" : false);
19888
+ return css.transform !== "none" || css.perspective !== "none" || isFirefox && css.willChange === "filter" || isFirefox && (css.filter ? css.filter !== "none" : false) || ["transform", "perspective"].some((value) => css.willChange.includes(value)) || ["paint", "layout", "strict", "content"].some(
19889
+ (value) => {
19890
+ const contain = css.contain;
19891
+ return contain != null ? contain.includes(value) : false;
19892
+ }
19893
+ );
19844
19894
  }
19845
19895
  function isLayoutViewport() {
19846
19896
  return !/^((?!chrome|android).)*safari/i.test(getUAString());
19847
19897
  }
19898
+ function isLastTraversableNode(node) {
19899
+ return ["html", "body", "#document"].includes(getNodeName(node));
19900
+ }
19848
19901
  const min = Math.min;
19849
19902
  const max = Math.max;
19850
19903
  const round$1 = Math.round;
@@ -19954,7 +20007,7 @@ function getContainingBlock(element) {
19954
20007
  if (isShadowRoot(currentNode)) {
19955
20008
  currentNode = currentNode.host;
19956
20009
  }
19957
- while (isHTMLElement(currentNode) && !["html", "body"].includes(getNodeName(currentNode))) {
20010
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
19958
20011
  if (isContainingBlock(currentNode)) {
19959
20012
  return currentNode;
19960
20013
  } else {
@@ -20068,7 +20121,7 @@ function getDocumentRect(element) {
20068
20121
  }
20069
20122
  function getNearestOverflowAncestor(node) {
20070
20123
  const parentNode = getParentNode(node);
20071
- if (["html", "body", "#document"].includes(getNodeName(parentNode))) {
20124
+ if (isLastTraversableNode(parentNode)) {
20072
20125
  return node.ownerDocument.body;
20073
20126
  }
20074
20127
  if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
@@ -20103,6 +20156,17 @@ function contains(parent, child) {
20103
20156
  }
20104
20157
  return false;
20105
20158
  }
20159
+ function getNearestParentCapableOfEscapingClipping(element, clippingAncestors) {
20160
+ let currentNode = element;
20161
+ while (currentNode && !isLastTraversableNode(currentNode) && !clippingAncestors.includes(currentNode)) {
20162
+ if (isElement(currentNode) && ["absolute", "fixed"].includes(getComputedStyle(currentNode).position)) {
20163
+ break;
20164
+ }
20165
+ const parentNode = getParentNode(currentNode);
20166
+ currentNode = isShadowRoot(parentNode) ? parentNode.host : parentNode;
20167
+ }
20168
+ return currentNode;
20169
+ }
20106
20170
  function getInnerBoundingClientRect(element, strategy) {
20107
20171
  const clientRect = getBoundingClientRect(element, false, strategy === "fixed");
20108
20172
  const top = clientRect.top + element.clientTop;
@@ -20129,12 +20193,20 @@ function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
20129
20193
  }
20130
20194
  function getClippingAncestors(element) {
20131
20195
  const clippingAncestors = getOverflowAncestors(element);
20132
- const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle(element).position);
20133
- const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
20196
+ const nearestEscapableParent = getNearestParentCapableOfEscapingClipping(element, clippingAncestors);
20197
+ let clipperElement = null;
20198
+ if (nearestEscapableParent && isHTMLElement(nearestEscapableParent)) {
20199
+ const offsetParent = getOffsetParent(nearestEscapableParent);
20200
+ if (isOverflowElement(nearestEscapableParent)) {
20201
+ clipperElement = nearestEscapableParent;
20202
+ } else if (isHTMLElement(offsetParent)) {
20203
+ clipperElement = offsetParent;
20204
+ }
20205
+ }
20134
20206
  if (!isElement(clipperElement)) {
20135
20207
  return [];
20136
20208
  }
20137
- return clippingAncestors.filter((clippingAncestors2) => isElement(clippingAncestors2) && contains(clippingAncestors2, clipperElement) && getNodeName(clippingAncestors2) !== "body");
20209
+ return clippingAncestors.filter((clippingAncestors2) => clipperElement && isElement(clippingAncestors2) && contains(clippingAncestors2, clipperElement) && getNodeName(clippingAncestors2) !== "body");
20138
20210
  }
20139
20211
  function getClippingRect(_ref) {
20140
20212
  let {
@@ -20192,13 +20264,12 @@ function autoUpdate(reference, floating, update2, options) {
20192
20264
  }
20193
20265
  const {
20194
20266
  ancestorScroll: _ancestorScroll = true,
20195
- ancestorResize: _ancestorResize = true,
20267
+ ancestorResize = true,
20196
20268
  elementResize = true,
20197
20269
  animationFrame = false
20198
20270
  } = options;
20199
20271
  const ancestorScroll = _ancestorScroll && !animationFrame;
20200
- const ancestorResize = _ancestorResize && !animationFrame;
20201
- const ancestors = ancestorScroll || ancestorResize ? [...isElement(reference) ? getOverflowAncestors(reference) : [], ...getOverflowAncestors(floating)] : [];
20272
+ const ancestors = ancestorScroll || ancestorResize ? [...isElement(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : [], ...getOverflowAncestors(floating)] : [];
20202
20273
  ancestors.forEach((ancestor) => {
20203
20274
  ancestorScroll && ancestor.addEventListener("scroll", update2, {
20204
20275
  passive: true
@@ -20215,6 +20286,9 @@ function autoUpdate(reference, floating, update2, options) {
20215
20286
  initialUpdate = false;
20216
20287
  });
20217
20288
  isElement(reference) && !animationFrame && observer.observe(reference);
20289
+ if (!isElement(reference) && reference.contextElement && !animationFrame) {
20290
+ observer.observe(reference.contextElement);
20291
+ }
20218
20292
  observer.observe(floating);
20219
20293
  }
20220
20294
  let frameId;
@@ -20865,7 +20939,8 @@ const multiply = (m1, m2) => {
20865
20939
  const classPrefix$J = `adm-image-viewer`;
20866
20940
  const Slide = (props) => {
20867
20941
  const {
20868
- dragLockRef
20942
+ dragLockRef,
20943
+ maxZoom
20869
20944
  } = props;
20870
20945
  const controlRef = React$1.useRef(null);
20871
20946
  const imgRef = React$1.useRef(null);
@@ -20950,7 +21025,13 @@ const Slide = (props) => {
20950
21025
  const [d] = state.offset;
20951
21026
  if (d < 0)
20952
21027
  return;
20953
- const nextZoom = state.last ? bound(d, 1, props.maxZoom) : d;
21028
+ let mergedMaxZoom;
21029
+ if (maxZoom === "auto") {
21030
+ mergedMaxZoom = controlSize && imgSize ? Math.max(controlSize.height / imgSize.height, controlSize.width / imgSize.width) : 1;
21031
+ } else {
21032
+ mergedMaxZoom = maxZoom;
21033
+ }
21034
+ const nextZoom = state.last ? bound(d, 1, mergedMaxZoom) : d;
20954
21035
  (_a = props.onZoomChange) === null || _a === void 0 ? void 0 : _a.call(props, nextZoom);
20955
21036
  if (state.last && nextZoom <= 1) {
20956
21037
  api.start({
@@ -21268,12 +21349,13 @@ const PreviewItem = (props) => {
21268
21349
  onClick: props.onClick
21269
21350
  }), renderLoading(), renderDelete());
21270
21351
  };
21352
+ const PreviewItem$1 = PreviewItem;
21271
21353
  const space = "";
21272
21354
  const classPrefix$F = `adm-space`;
21273
21355
  const defaultProps$z = {
21274
21356
  direction: "horizontal"
21275
21357
  };
21276
- const Space = (p) => {
21358
+ const Space$1 = (p) => {
21277
21359
  const props = mergeProps(defaultProps$z, p);
21278
21360
  const {
21279
21361
  direction,
@@ -21294,6 +21376,7 @@ const Space = (p) => {
21294
21376
  }, child);
21295
21377
  })));
21296
21378
  };
21379
+ const Space = Space$1;
21297
21380
  const classPrefix$E = `adm-image-uploader`;
21298
21381
  const defaultProps$y = {
21299
21382
  disableUpload: false,
@@ -21307,7 +21390,7 @@ const defaultProps$y = {
21307
21390
  showFailed: true,
21308
21391
  imageFit: "cover"
21309
21392
  };
21310
- const ImageUploader = (p) => {
21393
+ const ImageUploader$1 = (p) => {
21311
21394
  const {
21312
21395
  locale
21313
21396
  } = useConfig();
@@ -21344,6 +21427,9 @@ const ImageUploader = (p) => {
21344
21427
  return transformedFile;
21345
21428
  });
21346
21429
  }
21430
+ function getFinalTasks(tasks2) {
21431
+ return props.showFailed ? tasks2 : tasks2.filter((task) => task.status !== "fail");
21432
+ }
21347
21433
  function onChange(e) {
21348
21434
  var _a;
21349
21435
  return __awaiter$1(this, void 0, void 0, function* () {
@@ -21378,7 +21464,7 @@ const ImageUploader = (p) => {
21378
21464
  status: "pending",
21379
21465
  file
21380
21466
  }));
21381
- setTasks((prev) => [...prev, ...newTasks]);
21467
+ setTasks((prev) => [...getFinalTasks(prev), ...newTasks]);
21382
21468
  yield Promise.all(newTasks.map((currentTask) => __awaiter$1(this, void 0, void 0, function* () {
21383
21469
  try {
21384
21470
  const result2 = yield props.upload(currentTask.file);
@@ -21427,11 +21513,12 @@ const ImageUploader = (p) => {
21427
21513
  var _a;
21428
21514
  (_a = imageViewerHandlerRef.current) === null || _a === void 0 ? void 0 : _a.close();
21429
21515
  });
21430
- const showUpload = props.showUpload && (maxCount === 0 || value.length + tasks.length < maxCount);
21516
+ const finalTasks = getFinalTasks(tasks);
21517
+ const showUpload = props.showUpload && (maxCount === 0 || value.length + finalTasks.length < maxCount);
21431
21518
  const renderImages = () => {
21432
21519
  return value.map((fileItem, index2) => {
21433
21520
  var _a, _b;
21434
- const originNode = React__default.default.createElement(PreviewItem, {
21521
+ const originNode = React__default.default.createElement(PreviewItem$1, {
21435
21522
  key: (_a = fileItem.key) !== null && _a !== void 0 ? _a : index2,
21436
21523
  url: (_b = fileItem.thumbnailUrl) !== null && _b !== void 0 ? _b : fileItem.url,
21437
21524
  deletable: props.deletable,
@@ -21459,18 +21546,15 @@ const ImageUploader = (p) => {
21459
21546
  className: `${classPrefix$E}-space`,
21460
21547
  wrap: true,
21461
21548
  block: true
21462
- }, renderImages(), tasks.map((task) => {
21463
- if (!props.showFailed && task.status === "fail") {
21464
- return null;
21465
- }
21466
- return React__default.default.createElement(PreviewItem, {
21549
+ }, renderImages(), finalTasks.map((task) => {
21550
+ return React__default.default.createElement(PreviewItem$1, {
21467
21551
  key: task.id,
21468
21552
  file: task.file,
21469
21553
  deletable: task.status !== "pending",
21470
21554
  status: task.status,
21471
21555
  imageFit: props.imageFit,
21472
21556
  onDelete: () => {
21473
- setTasks(tasks.filter((x) => x.id !== task.id));
21557
+ setTasks((prev) => prev.filter((x) => x.id !== task.id));
21474
21558
  }
21475
21559
  });
21476
21560
  }), showUpload && React__default.default.createElement("div", {
@@ -21492,6 +21576,7 @@ const ImageUploader = (p) => {
21492
21576
  })))));
21493
21577
  };
21494
21578
  const imageUploader = "";
21579
+ const ImageUploader = ImageUploader$1;
21495
21580
  const indexBar = "";
21496
21581
  const Panel = () => null;
21497
21582
  const classPrefix$D = `adm-index-bar`;
@@ -21673,7 +21758,7 @@ const defaultProps$w = {
21673
21758
  retry
21674
21759
  })
21675
21760
  };
21676
- const InfiniteScroll = (p) => {
21761
+ const InfiniteScroll$1 = (p) => {
21677
21762
  const props = mergeProps(defaultProps$w, p);
21678
21763
  const [failed, setFailed] = React$1.useState(false);
21679
21764
  const doLoadMore = useLockFn((isRetry) => __awaiter$1(void 0, void 0, void 0, function* () {
@@ -21763,15 +21848,16 @@ const InfiniteScrollContent = (props) => {
21763
21848
  }
21764
21849
  }, locale.InfiniteScroll.retry));
21765
21850
  }
21766
- return React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement("span", null, locale.common.loading), React__default.default.createElement(DotLoading, null));
21851
+ return React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement("span", null, locale.common.loading), React__default.default.createElement(DotLoading$1, null));
21767
21852
  };
21853
+ const InfiniteScroll = InfiniteScroll$1;
21768
21854
  const input = "";
21769
21855
  const classPrefix$A = `adm-input`;
21770
21856
  const defaultProps$v = {
21771
21857
  defaultValue: "",
21772
21858
  onlyShowClearWhenFocus: true
21773
21859
  };
21774
- const Input = React$1.forwardRef((p, ref) => {
21860
+ const Input$1 = React$1.forwardRef((p, ref) => {
21775
21861
  const props = mergeProps(defaultProps$v, p);
21776
21862
  const [value, setValue2] = usePropsValue(props);
21777
21863
  const [hasFocus, setHasFocus] = React$1.useState(false);
@@ -21902,6 +21988,7 @@ const Input = React$1.forwardRef((p, ref) => {
21902
21988
  "aria-label": locale.Input.clear
21903
21989
  }, React__default.default.createElement(CloseCircleFill, null))));
21904
21990
  });
21991
+ const Input = Input$1;
21905
21992
  const jumboTabs = "";
21906
21993
  const classPrefix$z = `adm-jumbo-tabs`;
21907
21994
  const JumboTab = () => {
@@ -21998,6 +22085,7 @@ const JumboTabs = (props) => {
21998
22085
  const index$8 = attachPropertiesToComponent(JumboTabs, {
21999
22086
  Tab: JumboTab
22000
22087
  });
22088
+ const DotLoading = DotLoading$2;
22001
22089
  const modal = "";
22002
22090
  const ModalActionButton = (props) => {
22003
22091
  const {
@@ -22168,7 +22256,7 @@ const classPrefix$y = `adm-nav-bar`;
22168
22256
  const defaultProps$s = {
22169
22257
  backArrow: true
22170
22258
  };
22171
- const NavBar = (p) => {
22259
+ const NavBar$1 = (p) => {
22172
22260
  const props = mergeProps(defaultProps$s, p);
22173
22261
  const {
22174
22262
  back,
@@ -22192,6 +22280,7 @@ const NavBar = (p) => {
22192
22280
  className: `${classPrefix$y}-right`
22193
22281
  }, props.right)));
22194
22282
  };
22283
+ const NavBar = NavBar$1;
22195
22284
  const noticeBar = "";
22196
22285
  const classPrefix$x = `adm-notice-bar`;
22197
22286
  const defaultProps$r = {
@@ -22200,7 +22289,7 @@ const defaultProps$r = {
22200
22289
  speed: 50,
22201
22290
  icon: React__default.default.createElement(SoundOutline, null)
22202
22291
  };
22203
- const NoticeBar = React$1.memo((p) => {
22292
+ const NoticeBar$1 = React$1.memo((p) => {
22204
22293
  const props = mergeProps(defaultProps$r, p);
22205
22294
  const containerRef = React$1.useRef(null);
22206
22295
  const textRef = React$1.useRef(null);
@@ -22278,6 +22367,7 @@ const NoticeBar = React$1.memo((p) => {
22278
22367
  className: `${classPrefix$x}-close-icon`
22279
22368
  })))));
22280
22369
  });
22370
+ const NoticeBar = NoticeBar$1;
22281
22371
  const numberKeyboard = "";
22282
22372
  function shuffle(array4) {
22283
22373
  const result2 = [...array4];
@@ -22298,7 +22388,7 @@ const defaultProps$q = {
22298
22388
  destroyOnClose: false,
22299
22389
  forceRender: false
22300
22390
  };
22301
- const NumberKeyboard = (p) => {
22391
+ const NumberKeyboard$1 = (p) => {
22302
22392
  const props = mergeProps(defaultProps$q, p);
22303
22393
  const {
22304
22394
  visible,
@@ -22453,13 +22543,14 @@ const NumberKeyboard = (p) => {
22453
22543
  position: "bottom"
22454
22544
  })))));
22455
22545
  };
22546
+ const NumberKeyboard = NumberKeyboard$1;
22456
22547
  const pageIndicator = "";
22457
22548
  const classPrefix$v = `adm-page-indicator`;
22458
22549
  const defaultProps$p = {
22459
22550
  color: "primary",
22460
22551
  direction: "horizontal"
22461
22552
  };
22462
- const PageIndicator = React$1.memo((p) => {
22553
+ const PageIndicator$1 = React$1.memo((p) => {
22463
22554
  const props = mergeProps(defaultProps$p, p);
22464
22555
  const dots = [];
22465
22556
  for (let i = 0; i < props.total; i++) {
@@ -22474,6 +22565,7 @@ const PageIndicator = React$1.memo((p) => {
22474
22565
  className: classNames(classPrefix$v, `${classPrefix$v}-${props.direction}`, `${classPrefix$v}-color-${props.color}`)
22475
22566
  }, dots));
22476
22567
  });
22568
+ const PageIndicator = PageIndicator$1;
22477
22569
  const passcodeInput = "";
22478
22570
  const classPrefix$u = "adm-passcode-input";
22479
22571
  const defaultProps$o = {
@@ -22484,7 +22576,7 @@ const defaultProps$o = {
22484
22576
  seperated: false,
22485
22577
  caret: true
22486
22578
  };
22487
- const PasscodeInput = React$1.forwardRef((p, ref) => {
22579
+ const PasscodeInput$1 = React$1.forwardRef((p, ref) => {
22488
22580
  const props = mergeProps(defaultProps$o, p);
22489
22581
  const cellLength = props.length > 0 && props.length < Infinity ? Math.floor(props.length) : defaultProps$o.length;
22490
22582
  const {
@@ -22598,6 +22690,7 @@ const PasscodeInput = React$1.forwardRef((p, ref) => {
22598
22690
  }
22599
22691
  }));
22600
22692
  });
22693
+ const PasscodeInput = PasscodeInput$1;
22601
22694
  const progressBar = "";
22602
22695
  const classPrefix$t = `adm-progress-bar`;
22603
22696
  const defaultProps$n = {
@@ -22605,7 +22698,7 @@ const defaultProps$n = {
22605
22698
  rounded: true,
22606
22699
  text: false
22607
22700
  };
22608
- const ProgressBar = (p) => {
22701
+ const ProgressBar$1 = (p) => {
22609
22702
  const props = mergeProps(defaultProps$n, p);
22610
22703
  const fillStyle = {
22611
22704
  width: `${props.percent}%`
@@ -22630,9 +22723,10 @@ const ProgressBar = (p) => {
22630
22723
  className: `${classPrefix$t}-text`
22631
22724
  }, textElement)));
22632
22725
  };
22726
+ const ProgressBar = ProgressBar$1;
22633
22727
  const progressCircle = "";
22634
22728
  const classPrefix$s = `adm-progress-circle`;
22635
- const ProgressCircle = (p) => {
22729
+ const ProgressCircle$1 = (p) => {
22636
22730
  const props = mergeProps({
22637
22731
  percent: 0
22638
22732
  }, p);
@@ -22656,6 +22750,7 @@ const ProgressCircle = (p) => {
22656
22750
  className: `${classPrefix$s}-info`
22657
22751
  }, props.children))));
22658
22752
  };
22753
+ const ProgressCircle = ProgressCircle$1;
22659
22754
  const pullToRefresh = "";
22660
22755
  const sleep = (time) => new Promise((resolve) => setTimeout(resolve, time));
22661
22756
  const classPrefix$r = `adm-pull-to-refresh`;
@@ -22669,7 +22764,7 @@ const defaultProps$m = {
22669
22764
  onRefresh: () => {
22670
22765
  }
22671
22766
  };
22672
- const PullToRefresh = (p) => {
22767
+ const PullToRefresh$1 = (p) => {
22673
22768
  var _a, _b;
22674
22769
  const {
22675
22770
  locale
@@ -22824,6 +22919,7 @@ const PullToRefresh = (p) => {
22824
22919
  className: `${classPrefix$r}-content`
22825
22920
  }, props.children));
22826
22921
  };
22922
+ const PullToRefresh = PullToRefresh$1;
22827
22923
  const radio = "";
22828
22924
  const RadioGroupContext = React$1.createContext(null);
22829
22925
  const defaultProps$l = {
@@ -22875,7 +22971,7 @@ const Radio = (p) => {
22875
22971
  value
22876
22972
  } = props;
22877
22973
  if (groupContext && value !== void 0) {
22878
- {
22974
+ if (isDev) {
22879
22975
  if (p.checked !== void 0) {
22880
22976
  devWarning("Radio", "When used within `Radio.Group`, the `checked` prop of `Radio` will not work.");
22881
22977
  }
@@ -22948,7 +23044,7 @@ const defaultProps$j = {
22948
23044
  readOnly: false,
22949
23045
  allowClear: true
22950
23046
  };
22951
- const Rate = (p) => {
23047
+ const Rate$1 = (p) => {
22952
23048
  const props = mergeProps(defaultProps$j, p);
22953
23049
  const [value, setValue2] = usePropsValue(props);
22954
23050
  const containerRef = React$1.useRef(null);
@@ -23005,6 +23101,7 @@ const Rate = (p) => {
23005
23101
  className: classNames(`${classPrefix$p}-box`)
23006
23102
  }, props.allowHalf && renderStar(i + 0.5, true), renderStar(i + 1, false)))));
23007
23103
  };
23104
+ const Rate = Rate$1;
23008
23105
  const result = "";
23009
23106
  const classPrefix$o = `adm-result`;
23010
23107
  const iconRecord$1 = {
@@ -23017,7 +23114,7 @@ const iconRecord$1 = {
23017
23114
  const defaultProps$i = {
23018
23115
  status: "info"
23019
23116
  };
23020
- const Result = (p) => {
23117
+ const Result$1 = (p) => {
23021
23118
  const props = mergeProps(defaultProps$i, p);
23022
23119
  const {
23023
23120
  status,
@@ -23038,6 +23135,7 @@ const Result = (p) => {
23038
23135
  className: `${classPrefix$o}-description`
23039
23136
  }, description) : null));
23040
23137
  };
23138
+ const Result = Result$1;
23041
23139
  const resultPage = "";
23042
23140
  const classPrefix$n = `adm-result-page`;
23043
23141
  const iconRecord = {
@@ -23134,7 +23232,7 @@ const defaultProps$g = {
23134
23232
  clearOnCancel: true,
23135
23233
  icon: React__default.default.createElement(SearchOutline, null)
23136
23234
  };
23137
- const SearchBar = React$1.forwardRef((p, ref) => {
23235
+ const SearchBar$1 = React$1.forwardRef((p, ref) => {
23138
23236
  const {
23139
23237
  locale
23140
23238
  } = useConfig();
@@ -23236,6 +23334,7 @@ const SearchBar = React$1.forwardRef((p, ref) => {
23236
23334
  }
23237
23335
  })), renderCancelButton()));
23238
23336
  });
23337
+ const SearchBar = SearchBar$1;
23239
23338
  const selector = "";
23240
23339
  const CheckMark = React$1.memo(() => {
23241
23340
  return React__default.default.createElement("svg", {
@@ -23271,7 +23370,7 @@ const defaultProps$f = {
23271
23370
  defaultValue: [],
23272
23371
  showCheckMark: true
23273
23372
  };
23274
- const Selector = (p) => {
23373
+ const Selector$1 = (p) => {
23275
23374
  const props = mergeProps(defaultProps$f, p);
23276
23375
  const [value, setValue2] = usePropsValue({
23277
23376
  value: props.value,
@@ -23323,6 +23422,7 @@ const Selector = (p) => {
23323
23422
  columns: props.columns
23324
23423
  }, items)));
23325
23424
  };
23425
+ const Selector = Selector$1;
23326
23426
  const sideBar = "";
23327
23427
  const Corner = React$1.memo((props) => withNativeProps(props, React__default.default.createElement("svg", {
23328
23428
  viewBox: "0 0 30 30"
@@ -23440,6 +23540,7 @@ const Ticks = ({
23440
23540
  className: `${classPrefix$i}-ticks`
23441
23541
  }, elements);
23442
23542
  };
23543
+ const Ticks$1 = Ticks;
23443
23544
  const classPrefix$h = `adm-slider-mark`;
23444
23545
  const Marks = ({
23445
23546
  marks,
@@ -23473,6 +23574,7 @@ const Marks = ({
23473
23574
  className: classPrefix$h
23474
23575
  }, elements);
23475
23576
  };
23577
+ const Marks$1 = Marks;
23476
23578
  const ThumbIcon = (props) => {
23477
23579
  return withNativeProps(props, React__default.default.createElement("svg", {
23478
23580
  viewBox: "0 0 24 24",
@@ -23556,7 +23658,7 @@ const Thumb = (props) => {
23556
23658
  "aria-valuemin": min2,
23557
23659
  "aria-valuenow": value,
23558
23660
  "aria-disabled": disabled
23559
- }), renderPopoverContent ? React__default.default.createElement(Popover$1, {
23661
+ }), renderPopoverContent ? React__default.default.createElement(Popover, {
23560
23662
  content: renderPopoverContent(value),
23561
23663
  placement: "top",
23562
23664
  visible: residentPopover || dragging,
@@ -23564,6 +23666,7 @@ const Thumb = (props) => {
23564
23666
  mode: "dark"
23565
23667
  }, thumbElement) : thumbElement);
23566
23668
  };
23669
+ const Thumb$1 = Thumb;
23567
23670
  var DP = 20, RM = 1, MAX_DP = 1e6, MAX_POWER = 1e6, NE = -7, PE = 21, STRICT = false, NAME = "[big.js] ", INVALID = NAME + "Invalid ", INVALID_DP = INVALID + "decimal places", INVALID_RM = INVALID + "rounding mode", DIV_BY_ZERO = NAME + "Division by zero", P = {}, UNDEFINED = void 0, NUMERIC = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
23568
23671
  function _Big_() {
23569
23672
  function Big2(n) {
@@ -24083,7 +24186,7 @@ const defaultProps$e = {
24083
24186
  popover: false,
24084
24187
  residentPopover: false
24085
24188
  };
24086
- const Slider = (p) => {
24189
+ const Slider$1 = (p) => {
24087
24190
  var _a;
24088
24191
  const props = mergeProps(defaultProps$e, p);
24089
24192
  const {
@@ -24184,7 +24287,7 @@ const Slider = (p) => {
24184
24287
  };
24185
24288
  const valueBeforeDragRef = React$1.useRef();
24186
24289
  const renderThumb = (index2) => {
24187
- return React__default.default.createElement(Thumb, {
24290
+ return React__default.default.createElement(Thumb$1, {
24188
24291
  key: index2,
24189
24292
  value: sliderValue[index2],
24190
24293
  min: min2,
@@ -24233,13 +24336,13 @@ const Slider = (p) => {
24233
24336
  width: fillSize,
24234
24337
  left: fillStart
24235
24338
  }
24236
- }), props.ticks && React__default.default.createElement(Ticks, {
24339
+ }), props.ticks && React__default.default.createElement(Ticks$1, {
24237
24340
  points: pointList,
24238
24341
  min: min2,
24239
24342
  max: max2,
24240
24343
  lowerBound: sliderValue[0],
24241
24344
  upperBound: sliderValue[1]
24242
- }), props.range && renderThumb(0), renderThumb(1))), marks && React__default.default.createElement(Marks, {
24345
+ }), props.range && renderThumb(0), renderThumb(1))), marks && React__default.default.createElement(Marks$1, {
24243
24346
  min: min2,
24244
24347
  max: max2,
24245
24348
  marks,
@@ -24247,6 +24350,7 @@ const Slider = (p) => {
24247
24350
  upperBound: sliderValue[1]
24248
24351
  })));
24249
24352
  };
24353
+ const Slider = Slider$1;
24250
24354
  const stepper = "";
24251
24355
  const classPrefix$e = `adm-stepper`;
24252
24356
  const defaultProps$d = {
@@ -24255,7 +24359,7 @@ const defaultProps$d = {
24255
24359
  disabled: false,
24256
24360
  allowEmpty: false
24257
24361
  };
24258
- const Stepper = (p) => {
24362
+ const Stepper$1 = (p) => {
24259
24363
  const props = mergeProps(defaultProps$d, p);
24260
24364
  const {
24261
24365
  disabled,
@@ -24389,6 +24493,7 @@ function convertTextToValue(text) {
24389
24493
  return null;
24390
24494
  return parseFloat(text);
24391
24495
  }
24496
+ const Stepper = Stepper$1;
24392
24497
  const steps = "";
24393
24498
  const classPrefix$d = `adm-step`;
24394
24499
  const Step = (props) => {
@@ -24461,7 +24566,7 @@ const defaultProps$b = {
24461
24566
  closeOnAction: true,
24462
24567
  stopPropagation: []
24463
24568
  };
24464
- const SwipeAction = React$1.forwardRef((p, ref) => {
24569
+ const SwipeAction$1 = React$1.forwardRef((p, ref) => {
24465
24570
  const props = mergeProps(defaultProps$b, p);
24466
24571
  const rootRef = React$1.useRef(null);
24467
24572
  const leftRef = React$1.useRef(null);
@@ -24651,6 +24756,7 @@ const colorRecord$1 = {
24651
24756
  warning: "var(--adm-color-warning)",
24652
24757
  danger: "var(--adm-color-danger)"
24653
24758
  };
24759
+ const SwipeAction = SwipeAction$1;
24654
24760
  const swiper = "";
24655
24761
  const SwiperItem = (props) => {
24656
24762
  return withNativeProps(props, React__default.default.createElement("div", {
@@ -24960,7 +25066,7 @@ const classPrefix$9 = `adm-switch`;
24960
25066
  const defaultProps$9 = {
24961
25067
  defaultChecked: false
24962
25068
  };
24963
- const Switch = (p) => {
25069
+ const Switch$1 = (p) => {
24964
25070
  const props = mergeProps(defaultProps$9, p);
24965
25071
  const disabled = props.disabled || props.loading || false;
24966
25072
  const [changing, setChanging] = React$1.useState(false);
@@ -25021,6 +25127,7 @@ const Switch = (p) => {
25021
25127
  className: `${classPrefix$9}-inner`
25022
25128
  }, checked ? props.checkedText : props.uncheckedText))));
25023
25129
  };
25130
+ const Switch = Switch$1;
25024
25131
  const tabBar = "";
25025
25132
  const TabBarItem = () => {
25026
25133
  return null;
@@ -25116,7 +25223,7 @@ const defaultProps$7 = {
25116
25223
  fill: "solid",
25117
25224
  round: false
25118
25225
  };
25119
- const Tag = (p) => {
25226
+ const Tag$1 = (p) => {
25120
25227
  var _a;
25121
25228
  const props = mergeProps(defaultProps$7, p);
25122
25229
  const color = (_a = colorRecord[props.color]) !== null && _a !== void 0 ? _a : props.color;
@@ -25133,6 +25240,7 @@ const Tag = (p) => {
25133
25240
  })
25134
25241
  }, props.children));
25135
25242
  };
25243
+ const Tag = Tag$1;
25136
25244
  const textArea = "";
25137
25245
  const classPrefix$6 = "adm-text-area";
25138
25246
  const defaultProps$6 = {
@@ -25141,7 +25249,7 @@ const defaultProps$6 = {
25141
25249
  autoSize: false,
25142
25250
  defaultValue: ""
25143
25251
  };
25144
- const TextArea = React$1.forwardRef((p, ref) => {
25252
+ const TextArea$1 = React$1.forwardRef((p, ref) => {
25145
25253
  const props = mergeProps(defaultProps$6, p);
25146
25254
  const {
25147
25255
  autoSize,
@@ -25241,7 +25349,8 @@ const TextArea = React$1.forwardRef((p, ref) => {
25241
25349
  onClick: props.onClick
25242
25350
  }), count));
25243
25351
  });
25244
- TextArea.defaultProps = defaultProps$6;
25352
+ TextArea$1.defaultProps = defaultProps$6;
25353
+ const TextArea = TextArea$1;
25245
25354
  const toast = "";
25246
25355
  const classPrefix$5 = `adm-toast`;
25247
25356
  const defaultProps$5 = {
@@ -25362,6 +25471,7 @@ const Toast = {
25362
25471
  clear,
25363
25472
  config
25364
25473
  };
25474
+ const Toast$1 = Toast;
25365
25475
  const treeSelect = "";
25366
25476
  function getTreeDeep(treeData, childrenName = "children") {
25367
25477
  const walker = (tree) => {
@@ -25713,7 +25823,7 @@ const classPrefix$2 = "adm-virtual-input";
25713
25823
  const defaultProps$2 = {
25714
25824
  defaultValue: ""
25715
25825
  };
25716
- const VirtualInput = React$1.forwardRef((p, ref) => {
25826
+ const VirtualInput$1 = React$1.forwardRef((p, ref) => {
25717
25827
  const props = mergeProps(defaultProps$2, p);
25718
25828
  const [value, setValue2] = usePropsValue(props);
25719
25829
  const rootRef = React$1.useRef(null);
@@ -25807,12 +25917,13 @@ const VirtualInput = React$1.forwardRef((p, ref) => {
25807
25917
  className: `${classPrefix$2}-placeholder`
25808
25918
  }, props.placeholder), keyboardElement));
25809
25919
  });
25920
+ const VirtualInput = VirtualInput$1;
25810
25921
  const waterMark = "";
25811
25922
  const classPrefix$1 = `adm-water-mark`;
25812
25923
  const defaultProps$1 = {
25813
25924
  fullPage: true
25814
25925
  };
25815
- const WaterMark = (p) => {
25926
+ const WaterMark$1 = (p) => {
25816
25927
  const props = mergeProps(defaultProps$1, p);
25817
25928
  const {
25818
25929
  zIndex = 2e3,
@@ -25882,6 +25993,7 @@ const WaterMark = (p) => {
25882
25993
  }
25883
25994
  }));
25884
25995
  };
25996
+ const WaterMark = WaterMark$1;
25885
25997
  const footer = "";
25886
25998
  const classPrefix = `adm-footer`;
25887
25999
  const defaultProps = {
@@ -25890,7 +26002,7 @@ const defaultProps = {
25890
26002
  content: "",
25891
26003
  chips: []
25892
26004
  };
25893
- const Footer = (p) => {
26005
+ const Footer$1 = (p) => {
25894
26006
  const props = mergeProps(defaultProps, p);
25895
26007
  const {
25896
26008
  label,
@@ -25915,7 +26027,7 @@ const Footer = (p) => {
25915
26027
  className: classNames(classPrefix)
25916
26028
  }, label && React__default.default.createElement("div", {
25917
26029
  className: `${classPrefix}-label`
25918
- }, React__default.default.createElement(Divider, null, label)), links && links.length > 0 && React__default.default.createElement("div", {
26030
+ }, React__default.default.createElement(Divider$1, null, label)), links && links.length > 0 && React__default.default.createElement("div", {
25919
26031
  className: `${classPrefix}-links`
25920
26032
  }, links.map((link, index2) => {
25921
26033
  return React__default.default.createElement(React__default.default.Fragment, {
@@ -25924,7 +26036,7 @@ const Footer = (p) => {
25924
26036
  href: link.href,
25925
26037
  rel: "noopener noreferrer",
25926
26038
  onClick: (event) => clickLinkItem(link, index2, event)
25927
- }, link.text), index2 !== links.length - 1 && React__default.default.createElement(Divider, {
26039
+ }, link.text), index2 !== links.length - 1 && React__default.default.createElement(Divider$1, {
25928
26040
  direction: "vertical"
25929
26041
  }));
25930
26042
  })), content && React__default.default.createElement("div", {
@@ -25941,6 +26053,7 @@ const Footer = (p) => {
25941
26053
  }, chip.text);
25942
26054
  }))));
25943
26055
  };
26056
+ const Footer = Footer$1;
25944
26057
  exports.ActionSheet = index$j;
25945
26058
  exports.AutoCenter = AutoCenter;
25946
26059
  exports.Avatar = Avatar;
@@ -25962,7 +26075,7 @@ exports.DatePicker = index$e;
25962
26075
  exports.DatePickerView = DatePickerView;
25963
26076
  exports.Dialog = index$d;
25964
26077
  exports.Divider = Divider;
25965
- exports.DotLoading = DotLoading;
26078
+ exports.DotLoading = DotLoading$1;
25966
26079
  exports.Dropdown = index$c;
25967
26080
  exports.Ellipsis = Ellipsis;
25968
26081
  exports.Empty = Empty;
@@ -26017,7 +26130,7 @@ exports.TabBar = index$1;
26017
26130
  exports.Tabs = Tabs;
26018
26131
  exports.Tag = Tag;
26019
26132
  exports.TextArea = TextArea;
26020
- exports.Toast = Toast;
26133
+ exports.Toast = Toast$1;
26021
26134
  exports.TreeSelect = index;
26022
26135
  exports.VirtualInput = VirtualInput;
26023
26136
  exports.WaterMark = WaterMark;