antd-mobile 5.24.2 → 5.25.0

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 (60) 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
  59. package/2x/bundle/css-vars-patch.css +0 -399
  60. package/bundle/css-vars-patch.css +0 -312
@@ -316,9 +316,10 @@ const zhCN = mergeLocale(base, {
316
316
  name: "\u5F00\u5173"
317
317
  }
318
318
  });
319
+ const zhCN$1 = zhCN;
319
320
  const defaultConfigRef = {
320
321
  current: {
321
- locale: zhCN
322
+ locale: zhCN$1
322
323
  }
323
324
  };
324
325
  function setDefaultConfig(config2) {
@@ -328,7 +329,7 @@ function getDefaultConfig() {
328
329
  return defaultConfigRef.current;
329
330
  }
330
331
  const ConfigContext = React__default.createContext(null);
331
- const ConfigProvider = (props) => {
332
+ const ConfigProvider$1 = (props) => {
332
333
  const {
333
334
  children
334
335
  } = props, config2 = __rest(props, ["children"]);
@@ -341,6 +342,7 @@ function useConfig() {
341
342
  var _a;
342
343
  return (_a = useContext(ConfigContext)) !== null && _a !== void 0 ? _a : getDefaultConfig();
343
344
  }
345
+ const ConfigProvider = ConfigProvider$1;
344
346
  const actionSheet = "";
345
347
  function attachPropertiesToComponent(component, properties) {
346
348
  const ret = component;
@@ -897,10 +899,10 @@ var isFunction$1 = function isFunction(value) {
897
899
  var isNumber = function isNumber2(value) {
898
900
  return typeof value === "number";
899
901
  };
900
- var isDev = true;
901
- const isDev$1 = isDev;
902
+ var isDev$1 = true;
903
+ const isDev$2 = isDev$1;
902
904
  function useMemoizedFn(fn) {
903
- if (isDev$1) {
905
+ if (isDev$2) {
904
906
  if (!isFunction$1(fn)) {
905
907
  console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof fn));
906
908
  }
@@ -937,7 +939,7 @@ function useLatest(value) {
937
939
  return ref;
938
940
  }
939
941
  var useUnmount = function useUnmount2(fn) {
940
- if (isDev$1) {
942
+ if (isDev$2) {
941
943
  if (!isFunction$1(fn)) {
942
944
  console.error("useUnmount expected parameter is a function, got ".concat(typeof fn));
943
945
  }
@@ -1106,7 +1108,7 @@ function throttle$1(func, wait, options) {
1106
1108
  }
1107
1109
  var throttle_1 = throttle$1;
1108
1110
  var useMount = function useMount2(fn) {
1109
- if (isDev$1) {
1111
+ if (isDev$2) {
1110
1112
  if (!isFunction$1(fn)) {
1111
1113
  console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof fn, '".'));
1112
1114
  }
@@ -1260,10 +1262,13 @@ var dayjs_min = { exports: {} };
1260
1262
  !function(t, e) {
1261
1263
  module.exports = e();
1262
1264
  }(commonjsGlobal, function() {
1263
- 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) {
1265
+ 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) {
1266
+ var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
1267
+ return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
1268
+ } }, m = function(t2, e2, n2) {
1264
1269
  var r2 = String(t2);
1265
1270
  return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
1266
- }, g = { s: m, z: function(t2) {
1271
+ }, v = { s: m, z: function(t2) {
1267
1272
  var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
1268
1273
  return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
1269
1274
  }, m: function t2(e2, n2) {
@@ -1277,14 +1282,14 @@ var dayjs_min = { exports: {} };
1277
1282
  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$/, "");
1278
1283
  }, u: function(t2) {
1279
1284
  return void 0 === t2;
1280
- } }, v = "en", D = {};
1281
- D[v] = M;
1285
+ } }, g = "en", D = {};
1286
+ D[g] = M;
1282
1287
  var p = function(t2) {
1283
1288
  return t2 instanceof _;
1284
1289
  }, S = function t2(e2, n2, r2) {
1285
1290
  var i2;
1286
1291
  if (!e2)
1287
- return v;
1292
+ return g;
1288
1293
  if ("string" == typeof e2) {
1289
1294
  var s2 = e2.toLowerCase();
1290
1295
  D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
@@ -1295,13 +1300,13 @@ var dayjs_min = { exports: {} };
1295
1300
  var a2 = e2.name;
1296
1301
  D[a2] = e2, i2 = a2;
1297
1302
  }
1298
- return !r2 && i2 && (v = i2), i2 || !r2 && v;
1303
+ return !r2 && i2 && (g = i2), i2 || !r2 && g;
1299
1304
  }, w = function(t2, e2) {
1300
1305
  if (p(t2))
1301
1306
  return t2.clone();
1302
1307
  var n2 = "object" == typeof e2 ? e2 : {};
1303
1308
  return n2.date = t2, n2.args = arguments, new _(n2);
1304
- }, O = g;
1309
+ }, O = v;
1305
1310
  O.l = S, O.i = p, O.w = function(t2, e2) {
1306
1311
  return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
1307
1312
  };
@@ -1320,7 +1325,7 @@ var dayjs_min = { exports: {} };
1320
1325
  if (e2 instanceof Date)
1321
1326
  return new Date(e2);
1322
1327
  if ("string" == typeof e2 && !/Z$/i.test(e2)) {
1323
- var r2 = e2.match(l);
1328
+ var r2 = e2.match($);
1324
1329
  if (r2) {
1325
1330
  var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
1326
1331
  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);
@@ -1334,7 +1339,7 @@ var dayjs_min = { exports: {} };
1334
1339
  }, m2.$utils = function() {
1335
1340
  return O;
1336
1341
  }, m2.isValid = function() {
1337
- return !(this.$d.toString() === $);
1342
+ return !(this.$d.toString() === l);
1338
1343
  }, m2.isSame = function(t2, e2) {
1339
1344
  var n2 = w(t2);
1340
1345
  return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
@@ -1349,69 +1354,69 @@ var dayjs_min = { exports: {} };
1349
1354
  }, m2.valueOf = function() {
1350
1355
  return this.$d.getTime();
1351
1356
  }, m2.startOf = function(t2, e2) {
1352
- var n2 = this, r2 = !!O.u(e2) || e2, h2 = O.p(t2), $2 = function(t3, e3) {
1357
+ var n2 = this, r2 = !!O.u(e2) || e2, h2 = O.p(t2), l2 = function(t3, e3) {
1353
1358
  var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
1354
1359
  return r2 ? i2 : i2.endOf(a);
1355
- }, l2 = function(t3, e3) {
1360
+ }, $2 = function(t3, e3) {
1356
1361
  return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
1357
- }, y2 = this.$W, M3 = this.$M, m3 = this.$D, g2 = "set" + (this.$u ? "UTC" : "");
1362
+ }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
1358
1363
  switch (h2) {
1359
1364
  case c:
1360
- return r2 ? $2(1, 0) : $2(31, 11);
1365
+ return r2 ? l2(1, 0) : l2(31, 11);
1361
1366
  case f:
1362
- return r2 ? $2(1, M3) : $2(0, M3 + 1);
1367
+ return r2 ? l2(1, M3) : l2(0, M3 + 1);
1363
1368
  case o:
1364
- var v2 = this.$locale().weekStart || 0, D2 = (y2 < v2 ? y2 + 7 : y2) - v2;
1365
- return $2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
1369
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
1370
+ return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
1366
1371
  case a:
1367
1372
  case d:
1368
- return l2(g2 + "Hours", 0);
1373
+ return $2(v2 + "Hours", 0);
1369
1374
  case u:
1370
- return l2(g2 + "Minutes", 1);
1375
+ return $2(v2 + "Minutes", 1);
1371
1376
  case s:
1372
- return l2(g2 + "Seconds", 2);
1377
+ return $2(v2 + "Seconds", 2);
1373
1378
  case i:
1374
- return l2(g2 + "Milliseconds", 3);
1379
+ return $2(v2 + "Milliseconds", 3);
1375
1380
  default:
1376
1381
  return this.clone();
1377
1382
  }
1378
1383
  }, m2.endOf = function(t2) {
1379
1384
  return this.startOf(t2, false);
1380
1385
  }, m2.$set = function(t2, e2) {
1381
- 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;
1386
+ 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;
1382
1387
  if (o2 === f || o2 === c) {
1383
1388
  var y2 = this.clone().set(d, 1);
1384
- y2.$d[$2](l2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
1389
+ y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
1385
1390
  } else
1386
- $2 && this.$d[$2](l2);
1391
+ l2 && this.$d[l2]($2);
1387
1392
  return this.init(), this;
1388
1393
  }, m2.set = function(t2, e2) {
1389
1394
  return this.clone().$set(t2, e2);
1390
1395
  }, m2.get = function(t2) {
1391
1396
  return this[O.p(t2)]();
1392
1397
  }, m2.add = function(r2, h2) {
1393
- var d2, $2 = this;
1398
+ var d2, l2 = this;
1394
1399
  r2 = Number(r2);
1395
- var l2 = O.p(h2), y2 = function(t2) {
1396
- var e2 = w($2);
1397
- return O.w(e2.date(e2.date() + Math.round(t2 * r2)), $2);
1400
+ var $2 = O.p(h2), y2 = function(t2) {
1401
+ var e2 = w(l2);
1402
+ return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
1398
1403
  };
1399
- if (l2 === f)
1404
+ if ($2 === f)
1400
1405
  return this.set(f, this.$M + r2);
1401
- if (l2 === c)
1406
+ if ($2 === c)
1402
1407
  return this.set(c, this.$y + r2);
1403
- if (l2 === a)
1408
+ if ($2 === a)
1404
1409
  return y2(1);
1405
- if (l2 === o)
1410
+ if ($2 === o)
1406
1411
  return y2(7);
1407
- var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[l2] || 1, m3 = this.$d.getTime() + r2 * M3;
1412
+ var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
1408
1413
  return O.w(m3, this);
1409
1414
  }, m2.subtract = function(t2, e2) {
1410
1415
  return this.add(-1 * t2, e2);
1411
1416
  }, m2.format = function(t2) {
1412
1417
  var e2 = this, n2 = this.$locale();
1413
1418
  if (!this.isValid())
1414
- return n2.invalidDate || $;
1419
+ return n2.invalidDate || l;
1415
1420
  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) {
1416
1421
  return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
1417
1422
  }, c6 = function(t3) {
@@ -1419,15 +1424,15 @@ var dayjs_min = { exports: {} };
1419
1424
  }, d2 = n2.meridiem || function(t3, e3, n3) {
1420
1425
  var r3 = t3 < 12 ? "AM" : "PM";
1421
1426
  return n3 ? r3.toLowerCase() : r3;
1422
- }, 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 };
1427
+ }, $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 };
1423
1428
  return r2.replace(y, function(t3, e3) {
1424
- return e3 || l2[t3] || i2.replace(":", "");
1429
+ return e3 || $2[t3] || i2.replace(":", "");
1425
1430
  });
1426
1431
  }, m2.utcOffset = function() {
1427
1432
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1428
- }, m2.diff = function(r2, d2, $2) {
1429
- var l2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e, g2 = this - M3, v2 = O.m(this, M3);
1430
- 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);
1433
+ }, m2.diff = function(r2, d2, l2) {
1434
+ var $2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e, v2 = this - M3, g2 = O.m(this, M3);
1435
+ 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);
1431
1436
  }, m2.daysInMonth = function() {
1432
1437
  return this.endOf(f).$D;
1433
1438
  }, m2.$locale = function() {
@@ -1457,7 +1462,7 @@ var dayjs_min = { exports: {} };
1457
1462
  return t2.$i || (t2(e2, _, w), t2.$i = true), w;
1458
1463
  }, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
1459
1464
  return w(1e3 * t2);
1460
- }, w.en = D[v], w.Ls = D, w.p = {}, w;
1465
+ }, w.en = D[g], w.Ls = D, w.p = {}, w;
1461
1466
  });
1462
1467
  })(dayjs_min);
1463
1468
  const dayjs = dayjs_min.exports;
@@ -1498,7 +1503,7 @@ var __spreadArray$2 = globalThis && globalThis.__spreadArray || function(to2, fr
1498
1503
  };
1499
1504
  function useDebounceFn(fn, options) {
1500
1505
  var _a;
1501
- if (isDev$1) {
1506
+ if (isDev$2) {
1502
1507
  if (!isFunction$1(fn)) {
1503
1508
  console.error("useDebounceFn expected parameter is a function, got ".concat(typeof fn));
1504
1509
  }
@@ -3565,7 +3570,7 @@ var __spreadArray = globalThis && globalThis.__spreadArray || function(to2, from
3565
3570
  };
3566
3571
  function useThrottleFn(fn, options) {
3567
3572
  var _a;
3568
- if (isDev$1) {
3573
+ if (isDev$2) {
3569
3574
  if (!isFunction$1(fn)) {
3570
3575
  console.error("useThrottleFn expected parameter is a function, got ".concat(typeof fn));
3571
3576
  }
@@ -7016,7 +7021,7 @@ const defaultProps$13 = {
7016
7021
  getContainer: null,
7017
7022
  stopPropagation: ["click"]
7018
7023
  };
7019
- const Mask = (p) => {
7024
+ const Mask$1 = (p) => {
7020
7025
  const props = mergeProps(defaultProps$13, p);
7021
7026
  const {
7022
7027
  locale
@@ -7085,6 +7090,7 @@ const Mask = (p) => {
7085
7090
  destroyOnClose: props.destroyOnClose
7086
7091
  }, renderToContainer(props.getContainer, node));
7087
7092
  };
7093
+ const Mask = Mask$1;
7088
7094
  function AddOutline(props) {
7089
7095
  return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7090
7096
  width: "1em",
@@ -7698,7 +7704,7 @@ const classPrefix$1k = `adm-popup`;
7698
7704
  const defaultProps$12 = Object.assign(Object.assign({}, defaultPopupBaseProps), {
7699
7705
  position: "bottom"
7700
7706
  });
7701
- const Popup = (p) => {
7707
+ const Popup$1 = (p) => {
7702
7708
  const props = mergeProps(defaultProps$12, p);
7703
7709
  const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
7704
7710
  const [active, setActive] = useState(props.visible);
@@ -7787,13 +7793,15 @@ const Popup = (p) => {
7787
7793
  destroyOnClose: props.destroyOnClose
7788
7794
  }, renderToContainer(props.getContainer, node));
7789
7795
  };
7796
+ const Popup = Popup$1;
7790
7797
  const safeArea = "";
7791
7798
  const classPrefix$1j = "adm-safe-area";
7792
- const SafeArea = (props) => {
7799
+ const SafeArea$1 = (props) => {
7793
7800
  return withNativeProps(props, React__default.createElement("div", {
7794
7801
  className: classNames(classPrefix$1j, `${classPrefix$1j}-position-${props.position}`)
7795
7802
  }));
7796
7803
  };
7804
+ const SafeArea = SafeArea$1;
7797
7805
  const fullClone = Object.assign({}, ReactDOM);
7798
7806
  const {
7799
7807
  version,
@@ -7998,13 +8006,14 @@ const index$j = attachPropertiesToComponent(ActionSheet, {
7998
8006
  });
7999
8007
  const autoCenter = "";
8000
8008
  const classPrefix$1h = "adm-auto-center";
8001
- const AutoCenter = (props) => {
8009
+ const AutoCenter$1 = (props) => {
8002
8010
  return withNativeProps(props, React__default.createElement("div", {
8003
8011
  className: classPrefix$1h
8004
8012
  }, React__default.createElement("div", {
8005
8013
  className: `${classPrefix$1h}-content`
8006
8014
  }, props.children)));
8007
8015
  };
8016
+ const AutoCenter = AutoCenter$1;
8008
8017
  const avatar = "";
8009
8018
  const image = "";
8010
8019
  var _stagedComponents_1_1_3_stagedComponents = {};
@@ -8076,7 +8085,7 @@ const defaultProps$10 = {
8076
8085
  lazy: false,
8077
8086
  draggable: false
8078
8087
  };
8079
- const Image$1 = staged_1((p) => {
8088
+ const Image$2 = staged_1((p) => {
8080
8089
  const props = mergeProps(defaultProps$10, p);
8081
8090
  const [loaded, setLoaded] = useState(false);
8082
8091
  const [failed, setFailed] = useState(false);
@@ -8144,6 +8153,7 @@ const Image$1 = staged_1((p) => {
8144
8153
  }
8145
8154
  }), renderInner()));
8146
8155
  });
8156
+ const Image$1 = Image$2;
8147
8157
  const Fallback = memo(() => React__default.createElement("svg", {
8148
8158
  className: "adm-avatar-fallback",
8149
8159
  width: "88px",
@@ -8187,7 +8197,7 @@ const defaultProps$$ = {
8187
8197
  fallback: React__default.createElement(Fallback, null),
8188
8198
  fit: "cover"
8189
8199
  };
8190
- const Avatar = (p) => {
8200
+ const Avatar$1 = (p) => {
8191
8201
  const props = mergeProps(defaultProps$$, p);
8192
8202
  return withNativeProps(props, React__default.createElement(Image$1, {
8193
8203
  className: classPrefix$1f,
@@ -8201,6 +8211,7 @@ const Avatar = (p) => {
8201
8211
  onError: props.onError
8202
8212
  }));
8203
8213
  };
8214
+ const Avatar = Avatar$1;
8204
8215
  const badge = "";
8205
8216
  const classPrefix$1e = `adm-badge`;
8206
8217
  const dot = React__default.createElement(React__default.Fragment, null);
@@ -8239,7 +8250,7 @@ const colorRecord$3 = {
8239
8250
  const defaultProps$_ = {
8240
8251
  color: "default"
8241
8252
  };
8242
- const DotLoading = memo((p) => {
8253
+ const DotLoading$2 = memo((p) => {
8243
8254
  var _a;
8244
8255
  const props = mergeProps(defaultProps$_, p);
8245
8256
  return withNativeProps(props, React__default.createElement("div", {
@@ -8283,6 +8294,7 @@ const DotLoading = memo((p) => {
8283
8294
  keyTimes: "0; 0.1; 0.3; 0.4; 1"
8284
8295
  }))))))))));
8285
8296
  });
8297
+ const DotLoading$1 = DotLoading$2;
8286
8298
  function isPromise(obj) {
8287
8299
  return !!obj && typeof obj === "object" && typeof obj.then === "function";
8288
8300
  }
@@ -8295,14 +8307,14 @@ const defaultProps$Z = {
8295
8307
  fill: "solid",
8296
8308
  block: false,
8297
8309
  loading: false,
8298
- loadingIcon: React__default.createElement(DotLoading, {
8310
+ loadingIcon: React__default.createElement(DotLoading$1, {
8299
8311
  color: "currentColor"
8300
8312
  }),
8301
8313
  type: "button",
8302
8314
  shape: "default",
8303
8315
  size: "middle"
8304
8316
  };
8305
- const Button = forwardRef((p, ref) => {
8317
+ const Button$1 = forwardRef((p, ref) => {
8306
8318
  const props = mergeProps(defaultProps$Z, p);
8307
8319
  const [innerLoading, setInnerLoading] = useState(false);
8308
8320
  const nativeButtonRef = useRef(null);
@@ -8351,6 +8363,7 @@ const Button = forwardRef((p, ref) => {
8351
8363
  className: `${classPrefix$1c}-loading-wrapper`
8352
8364
  }, props.loadingIcon, props.loadingText) : React__default.createElement("span", null, props.children)));
8353
8365
  });
8366
+ const Button = Button$1;
8354
8367
  const calendar = "";
8355
8368
  const ArrowLeft = () => {
8356
8369
  return React__default.createElement("svg", {
@@ -8482,7 +8495,7 @@ const defaultProps$Y = {
8482
8495
  nextMonthButton: React__default.createElement(ArrowLeft, null),
8483
8496
  nextYearButton: React__default.createElement(ArrowLeftDouble, null)
8484
8497
  };
8485
- const Calendar = forwardRef((p, ref) => {
8498
+ const Calendar$1 = forwardRef((p, ref) => {
8486
8499
  const today = dayjs();
8487
8500
  const props = mergeProps(defaultProps$Y, p);
8488
8501
  const {
@@ -8666,6 +8679,7 @@ const Calendar = forwardRef((p, ref) => {
8666
8679
  className: classPrefix$1b
8667
8680
  }, header, mark, body));
8668
8681
  });
8682
+ const Calendar = Calendar$1;
8669
8683
  const capsuleTabs = "";
8670
8684
  function useResizeEffect(effect, targetRef) {
8671
8685
  const fn = useMemoizedFn(effect);
@@ -8767,7 +8781,7 @@ const useTabListScroll = (targetRef, activeIndex) => {
8767
8781
  };
8768
8782
  const scrollMask = "";
8769
8783
  const classPrefix$1a = `adm-scroll-mask`;
8770
- const ScrollMask = (props) => {
8784
+ const ScrollMask$1 = (props) => {
8771
8785
  const maskRef = useRef(null);
8772
8786
  const [{
8773
8787
  leftMaskOpacity,
@@ -8824,6 +8838,7 @@ const ScrollMask = (props) => {
8824
8838
  }
8825
8839
  }));
8826
8840
  };
8841
+ const ScrollMask = ScrollMask$1;
8827
8842
  var _reactIs_17_0_2_reactIs = { exports: {} };
8828
8843
  var reactIs_development$1 = {};
8829
8844
  /** @license React v17.0.2
@@ -9127,7 +9142,7 @@ const index$i = attachPropertiesToComponent(CapsuleTabs, {
9127
9142
  });
9128
9143
  const card = "";
9129
9144
  const classPrefix$18 = `adm-card`;
9130
- const Card = (props) => {
9145
+ const Card$1 = (props) => {
9131
9146
  const renderHeader = () => {
9132
9147
  if (!(props.title || props.extra)) {
9133
9148
  return null;
@@ -9155,6 +9170,7 @@ const Card = (props) => {
9155
9170
  onClick: props.onClick
9156
9171
  }, renderHeader(), renderBody()));
9157
9172
  };
9173
+ const Card = Card$1;
9158
9174
  const picker = "";
9159
9175
  function clamp(v, min2, max2) {
9160
9176
  return Math.max(min2, Math.min(v, max2));
@@ -10962,13 +10978,14 @@ function rubberbandIfOutOfBounds(position, min2, max2, dimension, constant2 = 0.
10962
10978
  return +rubberband(position - max2, dimension, constant2) + max2;
10963
10979
  return position;
10964
10980
  }
10981
+ const isDev = true;
10965
10982
  function devWarning(component, message) {
10966
- {
10983
+ if (isDev) {
10967
10984
  console.warn(`[antd-mobile: ${component}] ${message}`);
10968
10985
  }
10969
10986
  }
10970
10987
  function devError(component, message) {
10971
- {
10988
+ if (isDev) {
10972
10989
  console.error(`[antd-mobile: ${component}] ${message}`);
10973
10990
  }
10974
10991
  }
@@ -11398,7 +11415,7 @@ const defaultProps$X = {
11398
11415
  color: "default"
11399
11416
  };
11400
11417
  const circumference = 15 * 3.14159265358979 * 2;
11401
- const SpinLoading = memo((p) => {
11418
+ const SpinLoading$1 = memo((p) => {
11402
11419
  var _a;
11403
11420
  const props = mergeProps(defaultProps$X, p);
11404
11421
  const motionReduced = useMotionReduced();
@@ -11440,6 +11457,7 @@ const SpinLoading = memo((p) => {
11440
11457
  cy: 16
11441
11458
  }))));
11442
11459
  });
11460
+ const SpinLoading = SpinLoading$1;
11443
11461
  const classPrefix$15 = `adm-picker-view`;
11444
11462
  const defaultProps$W = {
11445
11463
  defaultValue: [],
@@ -11449,7 +11467,7 @@ const defaultProps$W = {
11449
11467
  className: `${classPrefix$15}-loading-content`
11450
11468
  }, React__default.createElement(SpinLoading, null))
11451
11469
  };
11452
- const PickerView = memo((p) => {
11470
+ const PickerView$1 = memo((p) => {
11453
11471
  const props = mergeProps(defaultProps$W, p);
11454
11472
  const [innerValue, setInnerValue] = useState(props.value === void 0 ? props.defaultValue : props.value);
11455
11473
  useEffect(() => {
@@ -11510,8 +11528,9 @@ const PickerView = memo((p) => {
11510
11528
  className: `${classPrefix$15}-mask-bottom`
11511
11529
  })))));
11512
11530
  });
11513
- PickerView.displayName = "PickerView";
11531
+ PickerView$1.displayName = "PickerView";
11514
11532
  const pickerView = "";
11533
+ const PickerView = PickerView$1;
11515
11534
  const classPrefix$14 = `adm-picker`;
11516
11535
  const defaultProps$V = {
11517
11536
  defaultValue: [],
@@ -11752,7 +11771,7 @@ function prompt$2(props) {
11752
11771
  const index$h = attachPropertiesToComponent(CascadePicker, {
11753
11772
  prompt: prompt$2
11754
11773
  });
11755
- const CascadePickerView = (props) => {
11774
+ const CascadePickerView$1 = (props) => {
11756
11775
  const {
11757
11776
  options
11758
11777
  } = props, pickerProps = __rest(props, ["options"]);
@@ -11761,6 +11780,7 @@ const CascadePickerView = (props) => {
11761
11780
  columns: columnsFn
11762
11781
  }));
11763
11782
  };
11783
+ const CascadePickerView = CascadePickerView$1;
11764
11784
  const cascaderView = "";
11765
11785
  const tabs = "";
11766
11786
  const classPrefix$13 = `adm-tabs`;
@@ -12232,9 +12252,8 @@ const CascaderView$1 = (p) => {
12232
12252
  const {
12233
12253
  locale
12234
12254
  } = useConfig();
12235
- const props = mergeProps(defaultProps$R, {
12236
- placeholder: locale.Cascader.placeholder
12237
- }, p);
12255
+ const props = mergeProps(defaultProps$R, p);
12256
+ const placeholder = props.placeholder || locale.Cascader.placeholder;
12238
12257
  const [value, setValue2] = usePropsValue(Object.assign(Object.assign({}, props), {
12239
12258
  onChange: (val) => {
12240
12259
  var _a;
@@ -12303,7 +12322,7 @@ const CascaderView$1 = (p) => {
12303
12322
  key: index2.toString(),
12304
12323
  title: React__default.createElement("div", {
12305
12324
  className: `${classPrefix$Z}-header-title`
12306
- }, selected ? selected.label : props.placeholder),
12325
+ }, selected ? selected.label : typeof placeholder === "function" ? placeholder(index2) : placeholder),
12307
12326
  forceRender: true
12308
12327
  }, React__default.createElement("div", {
12309
12328
  className: `${classPrefix$Z}-content`
@@ -12485,7 +12504,7 @@ const centerPopup = "";
12485
12504
  const defaultProps$P = Object.assign(Object.assign({}, defaultPopupBaseProps), {
12486
12505
  getContainer: null
12487
12506
  });
12488
- const CenterPopup = (p) => {
12507
+ const CenterPopup$1 = (p) => {
12489
12508
  const props = mergeProps(defaultProps$P, p);
12490
12509
  const unmountedRef = useUnmountedRef$1();
12491
12510
  const style = useSpring({
@@ -12563,6 +12582,7 @@ const CenterPopup = (p) => {
12563
12582
  destroyOnClose: props.destroyOnClose
12564
12583
  }, renderToContainer(props.getContainer, node));
12565
12584
  };
12585
+ const CenterPopup = CenterPopup$1;
12566
12586
  const checkbox = "";
12567
12587
  const CheckboxGroupContext = createContext(null);
12568
12588
  const defaultProps$O = {
@@ -12654,7 +12674,7 @@ const Checkbox$1 = forwardRef((p, ref) => {
12654
12674
  value
12655
12675
  } = props;
12656
12676
  if (groupContext && value !== void 0) {
12657
- {
12677
+ if (isDev) {
12658
12678
  if (p.checked !== void 0) {
12659
12679
  devWarning("Checkbox", "When used within `Checkbox.Group`, the `checked` prop of `Checkbox` will not work.");
12660
12680
  }
@@ -13278,7 +13298,7 @@ const defaultProps$L = {
13278
13298
  precision: "day",
13279
13299
  renderLabel: defaultRenderLabel
13280
13300
  };
13281
- const DatePickerView = (p) => {
13301
+ const DatePickerView$1 = (p) => {
13282
13302
  var _a;
13283
13303
  const props = mergeProps(defaultProps$L, p);
13284
13304
  const [value, setValue2] = usePropsValue({
@@ -13303,6 +13323,7 @@ const DatePickerView = (p) => {
13303
13323
  onChange
13304
13324
  }));
13305
13325
  };
13326
+ const DatePickerView = DatePickerView$1;
13306
13327
  const dialog = "";
13307
13328
  const DialogActionButton = (props) => {
13308
13329
  const {
@@ -13478,7 +13499,7 @@ const defaultProps$I = {
13478
13499
  contentPosition: "center",
13479
13500
  direction: "horizontal"
13480
13501
  };
13481
- const Divider = (p) => {
13502
+ const Divider$1 = (p) => {
13482
13503
  const props = mergeProps(defaultProps$I, p);
13483
13504
  return withNativeProps(props, React__default.createElement("div", {
13484
13505
  className: classNames(classPrefix$V, `${classPrefix$V}-${props.direction}`, `${classPrefix$V}-${props.contentPosition}`)
@@ -13486,6 +13507,7 @@ const Divider = (p) => {
13486
13507
  className: `${classPrefix$V}-content`
13487
13508
  }, props.children)));
13488
13509
  };
13510
+ const Divider = Divider$1;
13489
13511
  const dropdown = "";
13490
13512
  const classPrefix$U = `adm-dropdown-item`;
13491
13513
  const Item = (props) => {
@@ -13507,6 +13529,7 @@ const Item = (props) => {
13507
13529
  })
13508
13530
  }, props.arrow === void 0 ? React__default.createElement(DownFill, null) : props.arrow))));
13509
13531
  };
13532
+ const Item$1 = Item;
13510
13533
  const ItemChildrenWrap = (props) => {
13511
13534
  const {
13512
13535
  active = false
@@ -13615,8 +13638,9 @@ const Dropdown = forwardRef((p, ref) => {
13615
13638
  }, item.props.children);
13616
13639
  })))));
13617
13640
  });
13618
- const index$c = attachPropertiesToComponent(Dropdown, {
13619
- Item
13641
+ const Dropdown$1 = Dropdown;
13642
+ const index$c = attachPropertiesToComponent(Dropdown$1, {
13643
+ Item: Item$1
13620
13644
  });
13621
13645
  const ellipsis = "";
13622
13646
  var _runes_0_4_3_runes = { exports: {} };
@@ -13750,7 +13774,7 @@ const defaultProps$G = {
13750
13774
  onContentClick: () => {
13751
13775
  }
13752
13776
  };
13753
- const Ellipsis = (p) => {
13777
+ const Ellipsis$1 = (p) => {
13754
13778
  const props = mergeProps(defaultProps$G, p);
13755
13779
  const rootRef = useRef(null);
13756
13780
  const [ellipsised, setEllipsised] = useState({});
@@ -13886,6 +13910,7 @@ function pxToNumber(value) {
13886
13910
  const match = value.match(/^\d*(\.\d*)?/);
13887
13911
  return match ? Number(match[0]) : 0;
13888
13912
  }
13913
+ const Ellipsis = Ellipsis$1;
13889
13914
  const empty = "";
13890
13915
  const EmptyIcon = (props) => {
13891
13916
  return withNativeProps(props, React__default.createElement("svg", {
@@ -13910,7 +13935,7 @@ const EmptyIcon = (props) => {
13910
13935
  })))));
13911
13936
  };
13912
13937
  const classPrefix$R = `adm-empty`;
13913
- const Empty = (props) => {
13938
+ const Empty$1 = (props) => {
13914
13939
  function renderImageNode() {
13915
13940
  const {
13916
13941
  image: image2
@@ -13939,6 +13964,7 @@ const Empty = (props) => {
13939
13964
  className: classNames(`${classPrefix$R}-description`)
13940
13965
  }, props.description)));
13941
13966
  };
13967
+ const Empty = Empty$1;
13942
13968
  const errorBlock = "";
13943
13969
  const classPrefix$Q = `adm-error-block`;
13944
13970
  const defaultProps$F = {
@@ -14477,13 +14503,14 @@ const imageRecord = {
14477
14503
  "empty": emptyImage,
14478
14504
  "busy": busyImage
14479
14505
  };
14480
- const ErrorBlock = createErrorBlock(imageRecord);
14506
+ const ErrorBlock$1 = createErrorBlock(imageRecord);
14507
+ const ErrorBlock = ErrorBlock$1;
14481
14508
  const floatingBubble = "";
14482
14509
  const classPrefix$P = `adm-floating-bubble`;
14483
14510
  const defaultProps$E = {
14484
14511
  axis: "y"
14485
14512
  };
14486
- const FloatingBubble = (p) => {
14513
+ const FloatingBubble$1 = (p) => {
14487
14514
  const props = mergeProps(defaultProps$E, p);
14488
14515
  const boundaryRef = useRef(null);
14489
14516
  const buttonRef = useRef(null);
@@ -14559,6 +14586,7 @@ const FloatingBubble = (p) => {
14559
14586
  ref: buttonRef
14560
14587
  }), props.children)));
14561
14588
  };
14589
+ const FloatingBubble = FloatingBubble$1;
14562
14590
  const floatingPanel = "";
14563
14591
  function nearest(arr, target) {
14564
14592
  return arr.reduce((pre, cur) => {
@@ -14568,7 +14596,7 @@ function nearest(arr, target) {
14568
14596
  const defaultProps$D = {
14569
14597
  handleDraggingOfContent: true
14570
14598
  };
14571
- const FloatingPanel = forwardRef((p, ref) => {
14599
+ const FloatingPanel$1 = forwardRef((p, ref) => {
14572
14600
  var _a, _b;
14573
14601
  const props = mergeProps(defaultProps$D, p);
14574
14602
  const {
@@ -14684,6 +14712,7 @@ const FloatingPanel = forwardRef((p, ref) => {
14684
14712
  ref: contentRef
14685
14713
  }, props.children)));
14686
14714
  });
14715
+ const FloatingPanel = FloatingPanel$1;
14687
14716
  const index$b = "";
14688
14717
  function _extends$1() {
14689
14718
  _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
@@ -15146,7 +15175,9 @@ function _regeneratorRuntime() {
15146
15175
  _regeneratorRuntime = function _regeneratorRuntime2() {
15147
15176
  return exports;
15148
15177
  };
15149
- var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
15178
+ var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty2 = Object.defineProperty || function(obj, key, desc) {
15179
+ obj[key] = desc.value;
15180
+ }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
15150
15181
  function define(obj, key, value) {
15151
15182
  return Object.defineProperty(obj, key, {
15152
15183
  value,
@@ -15164,48 +15195,9 @@ function _regeneratorRuntime() {
15164
15195
  }
15165
15196
  function wrap(innerFn, outerFn, self2, tryLocsList) {
15166
15197
  var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context2(tryLocsList || []);
15167
- return generator._invoke = function(innerFn2, self3, context2) {
15168
- var state = "suspendedStart";
15169
- return function(method4, arg) {
15170
- if ("executing" === state)
15171
- throw new Error("Generator is already running");
15172
- if ("completed" === state) {
15173
- if ("throw" === method4)
15174
- throw arg;
15175
- return doneResult();
15176
- }
15177
- for (context2.method = method4, context2.arg = arg; ; ) {
15178
- var delegate = context2.delegate;
15179
- if (delegate) {
15180
- var delegateResult = maybeInvokeDelegate(delegate, context2);
15181
- if (delegateResult) {
15182
- if (delegateResult === ContinueSentinel)
15183
- continue;
15184
- return delegateResult;
15185
- }
15186
- }
15187
- if ("next" === context2.method)
15188
- context2.sent = context2._sent = context2.arg;
15189
- else if ("throw" === context2.method) {
15190
- if ("suspendedStart" === state)
15191
- throw state = "completed", context2.arg;
15192
- context2.dispatchException(context2.arg);
15193
- } else
15194
- "return" === context2.method && context2.abrupt("return", context2.arg);
15195
- state = "executing";
15196
- var record2 = tryCatch(innerFn2, self3, context2);
15197
- if ("normal" === record2.type) {
15198
- if (state = context2.done ? "completed" : "suspendedYield", record2.arg === ContinueSentinel)
15199
- continue;
15200
- return {
15201
- value: record2.arg,
15202
- done: context2.done
15203
- };
15204
- }
15205
- "throw" === record2.type && (state = "completed", context2.method = "throw", context2.arg = record2.arg);
15206
- }
15207
- };
15208
- }(innerFn, self2, context), generator;
15198
+ return defineProperty2(generator, "_invoke", {
15199
+ value: makeInvokeMethod(innerFn, self2, context)
15200
+ }), generator;
15209
15201
  }
15210
15202
  function tryCatch(fn, obj, arg) {
15211
15203
  try {
@@ -15260,13 +15252,57 @@ function _regeneratorRuntime() {
15260
15252
  reject(record2.arg);
15261
15253
  }
15262
15254
  var previousPromise;
15263
- this._invoke = function(method4, arg) {
15264
- function callInvokeWithMethodAndArg() {
15265
- return new PromiseImpl(function(resolve, reject) {
15266
- invoke(method4, arg, resolve, reject);
15267
- });
15255
+ defineProperty2(this, "_invoke", {
15256
+ value: function value(method4, arg) {
15257
+ function callInvokeWithMethodAndArg() {
15258
+ return new PromiseImpl(function(resolve, reject) {
15259
+ invoke(method4, arg, resolve, reject);
15260
+ });
15261
+ }
15262
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
15263
+ }
15264
+ });
15265
+ }
15266
+ function makeInvokeMethod(innerFn, self2, context) {
15267
+ var state = "suspendedStart";
15268
+ return function(method4, arg) {
15269
+ if ("executing" === state)
15270
+ throw new Error("Generator is already running");
15271
+ if ("completed" === state) {
15272
+ if ("throw" === method4)
15273
+ throw arg;
15274
+ return doneResult();
15275
+ }
15276
+ for (context.method = method4, context.arg = arg; ; ) {
15277
+ var delegate = context.delegate;
15278
+ if (delegate) {
15279
+ var delegateResult = maybeInvokeDelegate(delegate, context);
15280
+ if (delegateResult) {
15281
+ if (delegateResult === ContinueSentinel)
15282
+ continue;
15283
+ return delegateResult;
15284
+ }
15285
+ }
15286
+ if ("next" === context.method)
15287
+ context.sent = context._sent = context.arg;
15288
+ else if ("throw" === context.method) {
15289
+ if ("suspendedStart" === state)
15290
+ throw state = "completed", context.arg;
15291
+ context.dispatchException(context.arg);
15292
+ } else
15293
+ "return" === context.method && context.abrupt("return", context.arg);
15294
+ state = "executing";
15295
+ var record2 = tryCatch(innerFn, self2, context);
15296
+ if ("normal" === record2.type) {
15297
+ if (state = context.done ? "completed" : "suspendedYield", record2.arg === ContinueSentinel)
15298
+ continue;
15299
+ return {
15300
+ value: record2.arg,
15301
+ done: context.done
15302
+ };
15303
+ }
15304
+ "throw" === record2.type && (state = "completed", context.method = "throw", context.arg = record2.arg);
15268
15305
  }
15269
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
15270
15306
  };
15271
15307
  }
15272
15308
  function maybeInvokeDelegate(delegate, context) {
@@ -15328,7 +15364,13 @@ function _regeneratorRuntime() {
15328
15364
  done: true
15329
15365
  };
15330
15366
  }
15331
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function(genFun) {
15367
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty2(Gp, "constructor", {
15368
+ value: GeneratorFunctionPrototype,
15369
+ configurable: true
15370
+ }), defineProperty2(GeneratorFunctionPrototype, "constructor", {
15371
+ value: GeneratorFunction,
15372
+ configurable: true
15373
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function(genFun) {
15332
15374
  var ctor = "function" == typeof genFun && genFun.constructor;
15333
15375
  return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
15334
15376
  }, exports.mark = function(genFun) {
@@ -15349,8 +15391,8 @@ function _regeneratorRuntime() {
15349
15391
  return this;
15350
15392
  }), define(Gp, "toString", function() {
15351
15393
  return "[object Generator]";
15352
- }), exports.keys = function(object4) {
15353
- var keys2 = [];
15394
+ }), exports.keys = function(val) {
15395
+ var object4 = Object(val), keys2 = [];
15354
15396
  for (var key in object4) {
15355
15397
  keys2.push(key);
15356
15398
  }
@@ -17168,6 +17210,8 @@ var Field = /* @__PURE__ */ function(_React$Component) {
17168
17210
  var filteredRules = _this.getRules();
17169
17211
  if (triggerName) {
17170
17212
  filteredRules = filteredRules.filter(function(rule) {
17213
+ return rule;
17214
+ }).filter(function(rule) {
17171
17215
  var validateTrigger = rule.validateTrigger;
17172
17216
  if (!validateTrigger) {
17173
17217
  return true;
@@ -19808,9 +19852,10 @@ function isOverflowElement(element) {
19808
19852
  const {
19809
19853
  overflow,
19810
19854
  overflowX,
19811
- overflowY
19855
+ overflowY,
19856
+ display
19812
19857
  } = getComputedStyle(element);
19813
- return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
19858
+ return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display);
19814
19859
  }
19815
19860
  function isTableElement(element) {
19816
19861
  return ["table", "td", "th"].includes(getNodeName(element));
@@ -19818,11 +19863,19 @@ function isTableElement(element) {
19818
19863
  function isContainingBlock(element) {
19819
19864
  const isFirefox = /firefox/i.test(getUAString());
19820
19865
  const css = getComputedStyle(element);
19821
- 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);
19866
+ 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(
19867
+ (value) => {
19868
+ const contain = css.contain;
19869
+ return contain != null ? contain.includes(value) : false;
19870
+ }
19871
+ );
19822
19872
  }
19823
19873
  function isLayoutViewport() {
19824
19874
  return !/^((?!chrome|android).)*safari/i.test(getUAString());
19825
19875
  }
19876
+ function isLastTraversableNode(node) {
19877
+ return ["html", "body", "#document"].includes(getNodeName(node));
19878
+ }
19826
19879
  const min = Math.min;
19827
19880
  const max = Math.max;
19828
19881
  const round$1 = Math.round;
@@ -19932,7 +19985,7 @@ function getContainingBlock(element) {
19932
19985
  if (isShadowRoot(currentNode)) {
19933
19986
  currentNode = currentNode.host;
19934
19987
  }
19935
- while (isHTMLElement(currentNode) && !["html", "body"].includes(getNodeName(currentNode))) {
19988
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
19936
19989
  if (isContainingBlock(currentNode)) {
19937
19990
  return currentNode;
19938
19991
  } else {
@@ -20046,7 +20099,7 @@ function getDocumentRect(element) {
20046
20099
  }
20047
20100
  function getNearestOverflowAncestor(node) {
20048
20101
  const parentNode = getParentNode(node);
20049
- if (["html", "body", "#document"].includes(getNodeName(parentNode))) {
20102
+ if (isLastTraversableNode(parentNode)) {
20050
20103
  return node.ownerDocument.body;
20051
20104
  }
20052
20105
  if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
@@ -20081,6 +20134,17 @@ function contains(parent, child) {
20081
20134
  }
20082
20135
  return false;
20083
20136
  }
20137
+ function getNearestParentCapableOfEscapingClipping(element, clippingAncestors) {
20138
+ let currentNode = element;
20139
+ while (currentNode && !isLastTraversableNode(currentNode) && !clippingAncestors.includes(currentNode)) {
20140
+ if (isElement(currentNode) && ["absolute", "fixed"].includes(getComputedStyle(currentNode).position)) {
20141
+ break;
20142
+ }
20143
+ const parentNode = getParentNode(currentNode);
20144
+ currentNode = isShadowRoot(parentNode) ? parentNode.host : parentNode;
20145
+ }
20146
+ return currentNode;
20147
+ }
20084
20148
  function getInnerBoundingClientRect(element, strategy) {
20085
20149
  const clientRect = getBoundingClientRect(element, false, strategy === "fixed");
20086
20150
  const top = clientRect.top + element.clientTop;
@@ -20107,12 +20171,20 @@ function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
20107
20171
  }
20108
20172
  function getClippingAncestors(element) {
20109
20173
  const clippingAncestors = getOverflowAncestors(element);
20110
- const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle(element).position);
20111
- const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
20174
+ const nearestEscapableParent = getNearestParentCapableOfEscapingClipping(element, clippingAncestors);
20175
+ let clipperElement = null;
20176
+ if (nearestEscapableParent && isHTMLElement(nearestEscapableParent)) {
20177
+ const offsetParent = getOffsetParent(nearestEscapableParent);
20178
+ if (isOverflowElement(nearestEscapableParent)) {
20179
+ clipperElement = nearestEscapableParent;
20180
+ } else if (isHTMLElement(offsetParent)) {
20181
+ clipperElement = offsetParent;
20182
+ }
20183
+ }
20112
20184
  if (!isElement(clipperElement)) {
20113
20185
  return [];
20114
20186
  }
20115
- return clippingAncestors.filter((clippingAncestors2) => isElement(clippingAncestors2) && contains(clippingAncestors2, clipperElement) && getNodeName(clippingAncestors2) !== "body");
20187
+ return clippingAncestors.filter((clippingAncestors2) => clipperElement && isElement(clippingAncestors2) && contains(clippingAncestors2, clipperElement) && getNodeName(clippingAncestors2) !== "body");
20116
20188
  }
20117
20189
  function getClippingRect(_ref) {
20118
20190
  let {
@@ -20170,13 +20242,12 @@ function autoUpdate(reference, floating, update2, options) {
20170
20242
  }
20171
20243
  const {
20172
20244
  ancestorScroll: _ancestorScroll = true,
20173
- ancestorResize: _ancestorResize = true,
20245
+ ancestorResize = true,
20174
20246
  elementResize = true,
20175
20247
  animationFrame = false
20176
20248
  } = options;
20177
20249
  const ancestorScroll = _ancestorScroll && !animationFrame;
20178
- const ancestorResize = _ancestorResize && !animationFrame;
20179
- const ancestors = ancestorScroll || ancestorResize ? [...isElement(reference) ? getOverflowAncestors(reference) : [], ...getOverflowAncestors(floating)] : [];
20250
+ const ancestors = ancestorScroll || ancestorResize ? [...isElement(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : [], ...getOverflowAncestors(floating)] : [];
20180
20251
  ancestors.forEach((ancestor) => {
20181
20252
  ancestorScroll && ancestor.addEventListener("scroll", update2, {
20182
20253
  passive: true
@@ -20193,6 +20264,9 @@ function autoUpdate(reference, floating, update2, options) {
20193
20264
  initialUpdate = false;
20194
20265
  });
20195
20266
  isElement(reference) && !animationFrame && observer.observe(reference);
20267
+ if (!isElement(reference) && reference.contextElement && !animationFrame) {
20268
+ observer.observe(reference.contextElement);
20269
+ }
20196
20270
  observer.observe(floating);
20197
20271
  }
20198
20272
  let frameId;
@@ -20843,7 +20917,8 @@ const multiply = (m1, m2) => {
20843
20917
  const classPrefix$J = `adm-image-viewer`;
20844
20918
  const Slide = (props) => {
20845
20919
  const {
20846
- dragLockRef
20920
+ dragLockRef,
20921
+ maxZoom
20847
20922
  } = props;
20848
20923
  const controlRef = useRef(null);
20849
20924
  const imgRef = useRef(null);
@@ -20928,7 +21003,13 @@ const Slide = (props) => {
20928
21003
  const [d] = state.offset;
20929
21004
  if (d < 0)
20930
21005
  return;
20931
- const nextZoom = state.last ? bound(d, 1, props.maxZoom) : d;
21006
+ let mergedMaxZoom;
21007
+ if (maxZoom === "auto") {
21008
+ mergedMaxZoom = controlSize && imgSize ? Math.max(controlSize.height / imgSize.height, controlSize.width / imgSize.width) : 1;
21009
+ } else {
21010
+ mergedMaxZoom = maxZoom;
21011
+ }
21012
+ const nextZoom = state.last ? bound(d, 1, mergedMaxZoom) : d;
20932
21013
  (_a = props.onZoomChange) === null || _a === void 0 ? void 0 : _a.call(props, nextZoom);
20933
21014
  if (state.last && nextZoom <= 1) {
20934
21015
  api.start({
@@ -21246,12 +21327,13 @@ const PreviewItem = (props) => {
21246
21327
  onClick: props.onClick
21247
21328
  }), renderLoading(), renderDelete());
21248
21329
  };
21330
+ const PreviewItem$1 = PreviewItem;
21249
21331
  const space = "";
21250
21332
  const classPrefix$F = `adm-space`;
21251
21333
  const defaultProps$z = {
21252
21334
  direction: "horizontal"
21253
21335
  };
21254
- const Space = (p) => {
21336
+ const Space$1 = (p) => {
21255
21337
  const props = mergeProps(defaultProps$z, p);
21256
21338
  const {
21257
21339
  direction,
@@ -21272,6 +21354,7 @@ const Space = (p) => {
21272
21354
  }, child);
21273
21355
  })));
21274
21356
  };
21357
+ const Space = Space$1;
21275
21358
  const classPrefix$E = `adm-image-uploader`;
21276
21359
  const defaultProps$y = {
21277
21360
  disableUpload: false,
@@ -21285,7 +21368,7 @@ const defaultProps$y = {
21285
21368
  showFailed: true,
21286
21369
  imageFit: "cover"
21287
21370
  };
21288
- const ImageUploader = (p) => {
21371
+ const ImageUploader$1 = (p) => {
21289
21372
  const {
21290
21373
  locale
21291
21374
  } = useConfig();
@@ -21322,6 +21405,9 @@ const ImageUploader = (p) => {
21322
21405
  return transformedFile;
21323
21406
  });
21324
21407
  }
21408
+ function getFinalTasks(tasks2) {
21409
+ return props.showFailed ? tasks2 : tasks2.filter((task) => task.status !== "fail");
21410
+ }
21325
21411
  function onChange(e) {
21326
21412
  var _a;
21327
21413
  return __awaiter$1(this, void 0, void 0, function* () {
@@ -21356,7 +21442,7 @@ const ImageUploader = (p) => {
21356
21442
  status: "pending",
21357
21443
  file
21358
21444
  }));
21359
- setTasks((prev) => [...prev, ...newTasks]);
21445
+ setTasks((prev) => [...getFinalTasks(prev), ...newTasks]);
21360
21446
  yield Promise.all(newTasks.map((currentTask) => __awaiter$1(this, void 0, void 0, function* () {
21361
21447
  try {
21362
21448
  const result2 = yield props.upload(currentTask.file);
@@ -21405,11 +21491,12 @@ const ImageUploader = (p) => {
21405
21491
  var _a;
21406
21492
  (_a = imageViewerHandlerRef.current) === null || _a === void 0 ? void 0 : _a.close();
21407
21493
  });
21408
- const showUpload = props.showUpload && (maxCount === 0 || value.length + tasks.length < maxCount);
21494
+ const finalTasks = getFinalTasks(tasks);
21495
+ const showUpload = props.showUpload && (maxCount === 0 || value.length + finalTasks.length < maxCount);
21409
21496
  const renderImages = () => {
21410
21497
  return value.map((fileItem, index2) => {
21411
21498
  var _a, _b;
21412
- const originNode = React__default.createElement(PreviewItem, {
21499
+ const originNode = React__default.createElement(PreviewItem$1, {
21413
21500
  key: (_a = fileItem.key) !== null && _a !== void 0 ? _a : index2,
21414
21501
  url: (_b = fileItem.thumbnailUrl) !== null && _b !== void 0 ? _b : fileItem.url,
21415
21502
  deletable: props.deletable,
@@ -21437,18 +21524,15 @@ const ImageUploader = (p) => {
21437
21524
  className: `${classPrefix$E}-space`,
21438
21525
  wrap: true,
21439
21526
  block: true
21440
- }, renderImages(), tasks.map((task) => {
21441
- if (!props.showFailed && task.status === "fail") {
21442
- return null;
21443
- }
21444
- return React__default.createElement(PreviewItem, {
21527
+ }, renderImages(), finalTasks.map((task) => {
21528
+ return React__default.createElement(PreviewItem$1, {
21445
21529
  key: task.id,
21446
21530
  file: task.file,
21447
21531
  deletable: task.status !== "pending",
21448
21532
  status: task.status,
21449
21533
  imageFit: props.imageFit,
21450
21534
  onDelete: () => {
21451
- setTasks(tasks.filter((x) => x.id !== task.id));
21535
+ setTasks((prev) => prev.filter((x) => x.id !== task.id));
21452
21536
  }
21453
21537
  });
21454
21538
  }), showUpload && React__default.createElement("div", {
@@ -21470,6 +21554,7 @@ const ImageUploader = (p) => {
21470
21554
  })))));
21471
21555
  };
21472
21556
  const imageUploader = "";
21557
+ const ImageUploader = ImageUploader$1;
21473
21558
  const indexBar = "";
21474
21559
  const Panel = () => null;
21475
21560
  const classPrefix$D = `adm-index-bar`;
@@ -21651,7 +21736,7 @@ const defaultProps$w = {
21651
21736
  retry
21652
21737
  })
21653
21738
  };
21654
- const InfiniteScroll = (p) => {
21739
+ const InfiniteScroll$1 = (p) => {
21655
21740
  const props = mergeProps(defaultProps$w, p);
21656
21741
  const [failed, setFailed] = useState(false);
21657
21742
  const doLoadMore = useLockFn((isRetry) => __awaiter$1(void 0, void 0, void 0, function* () {
@@ -21741,15 +21826,16 @@ const InfiniteScrollContent = (props) => {
21741
21826
  }
21742
21827
  }, locale.InfiniteScroll.retry));
21743
21828
  }
21744
- return React__default.createElement(React__default.Fragment, null, React__default.createElement("span", null, locale.common.loading), React__default.createElement(DotLoading, null));
21829
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement("span", null, locale.common.loading), React__default.createElement(DotLoading$1, null));
21745
21830
  };
21831
+ const InfiniteScroll = InfiniteScroll$1;
21746
21832
  const input = "";
21747
21833
  const classPrefix$A = `adm-input`;
21748
21834
  const defaultProps$v = {
21749
21835
  defaultValue: "",
21750
21836
  onlyShowClearWhenFocus: true
21751
21837
  };
21752
- const Input = forwardRef((p, ref) => {
21838
+ const Input$1 = forwardRef((p, ref) => {
21753
21839
  const props = mergeProps(defaultProps$v, p);
21754
21840
  const [value, setValue2] = usePropsValue(props);
21755
21841
  const [hasFocus, setHasFocus] = useState(false);
@@ -21880,6 +21966,7 @@ const Input = forwardRef((p, ref) => {
21880
21966
  "aria-label": locale.Input.clear
21881
21967
  }, React__default.createElement(CloseCircleFill, null))));
21882
21968
  });
21969
+ const Input = Input$1;
21883
21970
  const jumboTabs = "";
21884
21971
  const classPrefix$z = `adm-jumbo-tabs`;
21885
21972
  const JumboTab = () => {
@@ -21976,6 +22063,7 @@ const JumboTabs = (props) => {
21976
22063
  const index$8 = attachPropertiesToComponent(JumboTabs, {
21977
22064
  Tab: JumboTab
21978
22065
  });
22066
+ const DotLoading = DotLoading$2;
21979
22067
  const modal = "";
21980
22068
  const ModalActionButton = (props) => {
21981
22069
  const {
@@ -22146,7 +22234,7 @@ const classPrefix$y = `adm-nav-bar`;
22146
22234
  const defaultProps$s = {
22147
22235
  backArrow: true
22148
22236
  };
22149
- const NavBar = (p) => {
22237
+ const NavBar$1 = (p) => {
22150
22238
  const props = mergeProps(defaultProps$s, p);
22151
22239
  const {
22152
22240
  back,
@@ -22170,6 +22258,7 @@ const NavBar = (p) => {
22170
22258
  className: `${classPrefix$y}-right`
22171
22259
  }, props.right)));
22172
22260
  };
22261
+ const NavBar = NavBar$1;
22173
22262
  const noticeBar = "";
22174
22263
  const classPrefix$x = `adm-notice-bar`;
22175
22264
  const defaultProps$r = {
@@ -22178,7 +22267,7 @@ const defaultProps$r = {
22178
22267
  speed: 50,
22179
22268
  icon: React__default.createElement(SoundOutline, null)
22180
22269
  };
22181
- const NoticeBar = memo((p) => {
22270
+ const NoticeBar$1 = memo((p) => {
22182
22271
  const props = mergeProps(defaultProps$r, p);
22183
22272
  const containerRef = useRef(null);
22184
22273
  const textRef = useRef(null);
@@ -22256,6 +22345,7 @@ const NoticeBar = memo((p) => {
22256
22345
  className: `${classPrefix$x}-close-icon`
22257
22346
  })))));
22258
22347
  });
22348
+ const NoticeBar = NoticeBar$1;
22259
22349
  const numberKeyboard = "";
22260
22350
  function shuffle(array4) {
22261
22351
  const result2 = [...array4];
@@ -22276,7 +22366,7 @@ const defaultProps$q = {
22276
22366
  destroyOnClose: false,
22277
22367
  forceRender: false
22278
22368
  };
22279
- const NumberKeyboard = (p) => {
22369
+ const NumberKeyboard$1 = (p) => {
22280
22370
  const props = mergeProps(defaultProps$q, p);
22281
22371
  const {
22282
22372
  visible,
@@ -22431,13 +22521,14 @@ const NumberKeyboard = (p) => {
22431
22521
  position: "bottom"
22432
22522
  })))));
22433
22523
  };
22524
+ const NumberKeyboard = NumberKeyboard$1;
22434
22525
  const pageIndicator = "";
22435
22526
  const classPrefix$v = `adm-page-indicator`;
22436
22527
  const defaultProps$p = {
22437
22528
  color: "primary",
22438
22529
  direction: "horizontal"
22439
22530
  };
22440
- const PageIndicator = memo((p) => {
22531
+ const PageIndicator$1 = memo((p) => {
22441
22532
  const props = mergeProps(defaultProps$p, p);
22442
22533
  const dots = [];
22443
22534
  for (let i = 0; i < props.total; i++) {
@@ -22452,6 +22543,7 @@ const PageIndicator = memo((p) => {
22452
22543
  className: classNames(classPrefix$v, `${classPrefix$v}-${props.direction}`, `${classPrefix$v}-color-${props.color}`)
22453
22544
  }, dots));
22454
22545
  });
22546
+ const PageIndicator = PageIndicator$1;
22455
22547
  const passcodeInput = "";
22456
22548
  const classPrefix$u = "adm-passcode-input";
22457
22549
  const defaultProps$o = {
@@ -22462,7 +22554,7 @@ const defaultProps$o = {
22462
22554
  seperated: false,
22463
22555
  caret: true
22464
22556
  };
22465
- const PasscodeInput = forwardRef((p, ref) => {
22557
+ const PasscodeInput$1 = forwardRef((p, ref) => {
22466
22558
  const props = mergeProps(defaultProps$o, p);
22467
22559
  const cellLength = props.length > 0 && props.length < Infinity ? Math.floor(props.length) : defaultProps$o.length;
22468
22560
  const {
@@ -22576,6 +22668,7 @@ const PasscodeInput = forwardRef((p, ref) => {
22576
22668
  }
22577
22669
  }));
22578
22670
  });
22671
+ const PasscodeInput = PasscodeInput$1;
22579
22672
  const progressBar = "";
22580
22673
  const classPrefix$t = `adm-progress-bar`;
22581
22674
  const defaultProps$n = {
@@ -22583,7 +22676,7 @@ const defaultProps$n = {
22583
22676
  rounded: true,
22584
22677
  text: false
22585
22678
  };
22586
- const ProgressBar = (p) => {
22679
+ const ProgressBar$1 = (p) => {
22587
22680
  const props = mergeProps(defaultProps$n, p);
22588
22681
  const fillStyle = {
22589
22682
  width: `${props.percent}%`
@@ -22608,9 +22701,10 @@ const ProgressBar = (p) => {
22608
22701
  className: `${classPrefix$t}-text`
22609
22702
  }, textElement)));
22610
22703
  };
22704
+ const ProgressBar = ProgressBar$1;
22611
22705
  const progressCircle = "";
22612
22706
  const classPrefix$s = `adm-progress-circle`;
22613
- const ProgressCircle = (p) => {
22707
+ const ProgressCircle$1 = (p) => {
22614
22708
  const props = mergeProps({
22615
22709
  percent: 0
22616
22710
  }, p);
@@ -22634,6 +22728,7 @@ const ProgressCircle = (p) => {
22634
22728
  className: `${classPrefix$s}-info`
22635
22729
  }, props.children))));
22636
22730
  };
22731
+ const ProgressCircle = ProgressCircle$1;
22637
22732
  const pullToRefresh = "";
22638
22733
  const sleep = (time) => new Promise((resolve) => setTimeout(resolve, time));
22639
22734
  const classPrefix$r = `adm-pull-to-refresh`;
@@ -22647,7 +22742,7 @@ const defaultProps$m = {
22647
22742
  onRefresh: () => {
22648
22743
  }
22649
22744
  };
22650
- const PullToRefresh = (p) => {
22745
+ const PullToRefresh$1 = (p) => {
22651
22746
  var _a, _b;
22652
22747
  const {
22653
22748
  locale
@@ -22802,6 +22897,7 @@ const PullToRefresh = (p) => {
22802
22897
  className: `${classPrefix$r}-content`
22803
22898
  }, props.children));
22804
22899
  };
22900
+ const PullToRefresh = PullToRefresh$1;
22805
22901
  const radio = "";
22806
22902
  const RadioGroupContext = createContext(null);
22807
22903
  const defaultProps$l = {
@@ -22853,7 +22949,7 @@ const Radio = (p) => {
22853
22949
  value
22854
22950
  } = props;
22855
22951
  if (groupContext && value !== void 0) {
22856
- {
22952
+ if (isDev) {
22857
22953
  if (p.checked !== void 0) {
22858
22954
  devWarning("Radio", "When used within `Radio.Group`, the `checked` prop of `Radio` will not work.");
22859
22955
  }
@@ -22926,7 +23022,7 @@ const defaultProps$j = {
22926
23022
  readOnly: false,
22927
23023
  allowClear: true
22928
23024
  };
22929
- const Rate = (p) => {
23025
+ const Rate$1 = (p) => {
22930
23026
  const props = mergeProps(defaultProps$j, p);
22931
23027
  const [value, setValue2] = usePropsValue(props);
22932
23028
  const containerRef = useRef(null);
@@ -22983,6 +23079,7 @@ const Rate = (p) => {
22983
23079
  className: classNames(`${classPrefix$p}-box`)
22984
23080
  }, props.allowHalf && renderStar(i + 0.5, true), renderStar(i + 1, false)))));
22985
23081
  };
23082
+ const Rate = Rate$1;
22986
23083
  const result = "";
22987
23084
  const classPrefix$o = `adm-result`;
22988
23085
  const iconRecord$1 = {
@@ -22995,7 +23092,7 @@ const iconRecord$1 = {
22995
23092
  const defaultProps$i = {
22996
23093
  status: "info"
22997
23094
  };
22998
- const Result = (p) => {
23095
+ const Result$1 = (p) => {
22999
23096
  const props = mergeProps(defaultProps$i, p);
23000
23097
  const {
23001
23098
  status,
@@ -23016,6 +23113,7 @@ const Result = (p) => {
23016
23113
  className: `${classPrefix$o}-description`
23017
23114
  }, description) : null));
23018
23115
  };
23116
+ const Result = Result$1;
23019
23117
  const resultPage = "";
23020
23118
  const classPrefix$n = `adm-result-page`;
23021
23119
  const iconRecord = {
@@ -23112,7 +23210,7 @@ const defaultProps$g = {
23112
23210
  clearOnCancel: true,
23113
23211
  icon: React__default.createElement(SearchOutline, null)
23114
23212
  };
23115
- const SearchBar = forwardRef((p, ref) => {
23213
+ const SearchBar$1 = forwardRef((p, ref) => {
23116
23214
  const {
23117
23215
  locale
23118
23216
  } = useConfig();
@@ -23214,6 +23312,7 @@ const SearchBar = forwardRef((p, ref) => {
23214
23312
  }
23215
23313
  })), renderCancelButton()));
23216
23314
  });
23315
+ const SearchBar = SearchBar$1;
23217
23316
  const selector = "";
23218
23317
  const CheckMark = memo(() => {
23219
23318
  return React__default.createElement("svg", {
@@ -23249,7 +23348,7 @@ const defaultProps$f = {
23249
23348
  defaultValue: [],
23250
23349
  showCheckMark: true
23251
23350
  };
23252
- const Selector = (p) => {
23351
+ const Selector$1 = (p) => {
23253
23352
  const props = mergeProps(defaultProps$f, p);
23254
23353
  const [value, setValue2] = usePropsValue({
23255
23354
  value: props.value,
@@ -23301,6 +23400,7 @@ const Selector = (p) => {
23301
23400
  columns: props.columns
23302
23401
  }, items)));
23303
23402
  };
23403
+ const Selector = Selector$1;
23304
23404
  const sideBar = "";
23305
23405
  const Corner = memo((props) => withNativeProps(props, React__default.createElement("svg", {
23306
23406
  viewBox: "0 0 30 30"
@@ -23418,6 +23518,7 @@ const Ticks = ({
23418
23518
  className: `${classPrefix$i}-ticks`
23419
23519
  }, elements);
23420
23520
  };
23521
+ const Ticks$1 = Ticks;
23421
23522
  const classPrefix$h = `adm-slider-mark`;
23422
23523
  const Marks = ({
23423
23524
  marks,
@@ -23451,6 +23552,7 @@ const Marks = ({
23451
23552
  className: classPrefix$h
23452
23553
  }, elements);
23453
23554
  };
23555
+ const Marks$1 = Marks;
23454
23556
  const ThumbIcon = (props) => {
23455
23557
  return withNativeProps(props, React__default.createElement("svg", {
23456
23558
  viewBox: "0 0 24 24",
@@ -23534,7 +23636,7 @@ const Thumb = (props) => {
23534
23636
  "aria-valuemin": min2,
23535
23637
  "aria-valuenow": value,
23536
23638
  "aria-disabled": disabled
23537
- }), renderPopoverContent ? React__default.createElement(Popover$1, {
23639
+ }), renderPopoverContent ? React__default.createElement(Popover, {
23538
23640
  content: renderPopoverContent(value),
23539
23641
  placement: "top",
23540
23642
  visible: residentPopover || dragging,
@@ -23542,6 +23644,7 @@ const Thumb = (props) => {
23542
23644
  mode: "dark"
23543
23645
  }, thumbElement) : thumbElement);
23544
23646
  };
23647
+ const Thumb$1 = Thumb;
23545
23648
  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;
23546
23649
  function _Big_() {
23547
23650
  function Big2(n) {
@@ -24061,7 +24164,7 @@ const defaultProps$e = {
24061
24164
  popover: false,
24062
24165
  residentPopover: false
24063
24166
  };
24064
- const Slider = (p) => {
24167
+ const Slider$1 = (p) => {
24065
24168
  var _a;
24066
24169
  const props = mergeProps(defaultProps$e, p);
24067
24170
  const {
@@ -24162,7 +24265,7 @@ const Slider = (p) => {
24162
24265
  };
24163
24266
  const valueBeforeDragRef = useRef();
24164
24267
  const renderThumb = (index2) => {
24165
- return React__default.createElement(Thumb, {
24268
+ return React__default.createElement(Thumb$1, {
24166
24269
  key: index2,
24167
24270
  value: sliderValue[index2],
24168
24271
  min: min2,
@@ -24211,13 +24314,13 @@ const Slider = (p) => {
24211
24314
  width: fillSize,
24212
24315
  left: fillStart
24213
24316
  }
24214
- }), props.ticks && React__default.createElement(Ticks, {
24317
+ }), props.ticks && React__default.createElement(Ticks$1, {
24215
24318
  points: pointList,
24216
24319
  min: min2,
24217
24320
  max: max2,
24218
24321
  lowerBound: sliderValue[0],
24219
24322
  upperBound: sliderValue[1]
24220
- }), props.range && renderThumb(0), renderThumb(1))), marks && React__default.createElement(Marks, {
24323
+ }), props.range && renderThumb(0), renderThumb(1))), marks && React__default.createElement(Marks$1, {
24221
24324
  min: min2,
24222
24325
  max: max2,
24223
24326
  marks,
@@ -24225,6 +24328,7 @@ const Slider = (p) => {
24225
24328
  upperBound: sliderValue[1]
24226
24329
  })));
24227
24330
  };
24331
+ const Slider = Slider$1;
24228
24332
  const stepper = "";
24229
24333
  const classPrefix$e = `adm-stepper`;
24230
24334
  const defaultProps$d = {
@@ -24233,7 +24337,7 @@ const defaultProps$d = {
24233
24337
  disabled: false,
24234
24338
  allowEmpty: false
24235
24339
  };
24236
- const Stepper = (p) => {
24340
+ const Stepper$1 = (p) => {
24237
24341
  const props = mergeProps(defaultProps$d, p);
24238
24342
  const {
24239
24343
  disabled,
@@ -24367,6 +24471,7 @@ function convertTextToValue(text) {
24367
24471
  return null;
24368
24472
  return parseFloat(text);
24369
24473
  }
24474
+ const Stepper = Stepper$1;
24370
24475
  const steps = "";
24371
24476
  const classPrefix$d = `adm-step`;
24372
24477
  const Step = (props) => {
@@ -24439,7 +24544,7 @@ const defaultProps$b = {
24439
24544
  closeOnAction: true,
24440
24545
  stopPropagation: []
24441
24546
  };
24442
- const SwipeAction = forwardRef((p, ref) => {
24547
+ const SwipeAction$1 = forwardRef((p, ref) => {
24443
24548
  const props = mergeProps(defaultProps$b, p);
24444
24549
  const rootRef = useRef(null);
24445
24550
  const leftRef = useRef(null);
@@ -24629,6 +24734,7 @@ const colorRecord$1 = {
24629
24734
  warning: "var(--adm-color-warning)",
24630
24735
  danger: "var(--adm-color-danger)"
24631
24736
  };
24737
+ const SwipeAction = SwipeAction$1;
24632
24738
  const swiper = "";
24633
24739
  const SwiperItem = (props) => {
24634
24740
  return withNativeProps(props, React__default.createElement("div", {
@@ -24938,7 +25044,7 @@ const classPrefix$9 = `adm-switch`;
24938
25044
  const defaultProps$9 = {
24939
25045
  defaultChecked: false
24940
25046
  };
24941
- const Switch = (p) => {
25047
+ const Switch$1 = (p) => {
24942
25048
  const props = mergeProps(defaultProps$9, p);
24943
25049
  const disabled = props.disabled || props.loading || false;
24944
25050
  const [changing, setChanging] = useState(false);
@@ -24999,6 +25105,7 @@ const Switch = (p) => {
24999
25105
  className: `${classPrefix$9}-inner`
25000
25106
  }, checked ? props.checkedText : props.uncheckedText))));
25001
25107
  };
25108
+ const Switch = Switch$1;
25002
25109
  const tabBar = "";
25003
25110
  const TabBarItem = () => {
25004
25111
  return null;
@@ -25094,7 +25201,7 @@ const defaultProps$7 = {
25094
25201
  fill: "solid",
25095
25202
  round: false
25096
25203
  };
25097
- const Tag = (p) => {
25204
+ const Tag$1 = (p) => {
25098
25205
  var _a;
25099
25206
  const props = mergeProps(defaultProps$7, p);
25100
25207
  const color = (_a = colorRecord[props.color]) !== null && _a !== void 0 ? _a : props.color;
@@ -25111,6 +25218,7 @@ const Tag = (p) => {
25111
25218
  })
25112
25219
  }, props.children));
25113
25220
  };
25221
+ const Tag = Tag$1;
25114
25222
  const textArea = "";
25115
25223
  const classPrefix$6 = "adm-text-area";
25116
25224
  const defaultProps$6 = {
@@ -25119,7 +25227,7 @@ const defaultProps$6 = {
25119
25227
  autoSize: false,
25120
25228
  defaultValue: ""
25121
25229
  };
25122
- const TextArea = forwardRef((p, ref) => {
25230
+ const TextArea$1 = forwardRef((p, ref) => {
25123
25231
  const props = mergeProps(defaultProps$6, p);
25124
25232
  const {
25125
25233
  autoSize,
@@ -25219,7 +25327,8 @@ const TextArea = forwardRef((p, ref) => {
25219
25327
  onClick: props.onClick
25220
25328
  }), count));
25221
25329
  });
25222
- TextArea.defaultProps = defaultProps$6;
25330
+ TextArea$1.defaultProps = defaultProps$6;
25331
+ const TextArea = TextArea$1;
25223
25332
  const toast = "";
25224
25333
  const classPrefix$5 = `adm-toast`;
25225
25334
  const defaultProps$5 = {
@@ -25340,6 +25449,7 @@ const Toast = {
25340
25449
  clear,
25341
25450
  config
25342
25451
  };
25452
+ const Toast$1 = Toast;
25343
25453
  const treeSelect = "";
25344
25454
  function getTreeDeep(treeData, childrenName = "children") {
25345
25455
  const walker = (tree) => {
@@ -25691,7 +25801,7 @@ const classPrefix$2 = "adm-virtual-input";
25691
25801
  const defaultProps$2 = {
25692
25802
  defaultValue: ""
25693
25803
  };
25694
- const VirtualInput = forwardRef((p, ref) => {
25804
+ const VirtualInput$1 = forwardRef((p, ref) => {
25695
25805
  const props = mergeProps(defaultProps$2, p);
25696
25806
  const [value, setValue2] = usePropsValue(props);
25697
25807
  const rootRef = useRef(null);
@@ -25785,12 +25895,13 @@ const VirtualInput = forwardRef((p, ref) => {
25785
25895
  className: `${classPrefix$2}-placeholder`
25786
25896
  }, props.placeholder), keyboardElement));
25787
25897
  });
25898
+ const VirtualInput = VirtualInput$1;
25788
25899
  const waterMark = "";
25789
25900
  const classPrefix$1 = `adm-water-mark`;
25790
25901
  const defaultProps$1 = {
25791
25902
  fullPage: true
25792
25903
  };
25793
- const WaterMark = (p) => {
25904
+ const WaterMark$1 = (p) => {
25794
25905
  const props = mergeProps(defaultProps$1, p);
25795
25906
  const {
25796
25907
  zIndex = 2e3,
@@ -25860,6 +25971,7 @@ const WaterMark = (p) => {
25860
25971
  }
25861
25972
  }));
25862
25973
  };
25974
+ const WaterMark = WaterMark$1;
25863
25975
  const footer = "";
25864
25976
  const classPrefix = `adm-footer`;
25865
25977
  const defaultProps = {
@@ -25868,7 +25980,7 @@ const defaultProps = {
25868
25980
  content: "",
25869
25981
  chips: []
25870
25982
  };
25871
- const Footer = (p) => {
25983
+ const Footer$1 = (p) => {
25872
25984
  const props = mergeProps(defaultProps, p);
25873
25985
  const {
25874
25986
  label,
@@ -25893,7 +26005,7 @@ const Footer = (p) => {
25893
26005
  className: classNames(classPrefix)
25894
26006
  }, label && React__default.createElement("div", {
25895
26007
  className: `${classPrefix}-label`
25896
- }, React__default.createElement(Divider, null, label)), links && links.length > 0 && React__default.createElement("div", {
26008
+ }, React__default.createElement(Divider$1, null, label)), links && links.length > 0 && React__default.createElement("div", {
25897
26009
  className: `${classPrefix}-links`
25898
26010
  }, links.map((link, index2) => {
25899
26011
  return React__default.createElement(React__default.Fragment, {
@@ -25902,7 +26014,7 @@ const Footer = (p) => {
25902
26014
  href: link.href,
25903
26015
  rel: "noopener noreferrer",
25904
26016
  onClick: (event) => clickLinkItem(link, index2, event)
25905
- }, link.text), index2 !== links.length - 1 && React__default.createElement(Divider, {
26017
+ }, link.text), index2 !== links.length - 1 && React__default.createElement(Divider$1, {
25906
26018
  direction: "vertical"
25907
26019
  }));
25908
26020
  })), content && React__default.createElement("div", {
@@ -25919,6 +26031,7 @@ const Footer = (p) => {
25919
26031
  }, chip.text);
25920
26032
  }))));
25921
26033
  };
26034
+ const Footer = Footer$1;
25922
26035
  export {
25923
26036
  index$j as ActionSheet,
25924
26037
  AutoCenter,
@@ -25941,7 +26054,7 @@ export {
25941
26054
  DatePickerView,
25942
26055
  index$d as Dialog,
25943
26056
  Divider,
25944
- DotLoading,
26057
+ DotLoading$1 as DotLoading,
25945
26058
  index$c as Dropdown,
25946
26059
  Ellipsis,
25947
26060
  Empty,
@@ -25996,7 +26109,7 @@ export {
25996
26109
  Tabs,
25997
26110
  Tag,
25998
26111
  TextArea,
25999
- Toast,
26112
+ Toast$1 as Toast,
26000
26113
  index as TreeSelect,
26001
26114
  VirtualInput,
26002
26115
  WaterMark,