react-vant-nova 1.0.7 → 1.0.9

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 (41) hide show
  1. package/README.md +2 -2
  2. package/bundle/index.css +149 -0
  3. package/bundle/index.min.css +1 -1
  4. package/bundle/react-vant-nova.es.js +949 -728
  5. package/bundle/react-vant-nova.js +868 -646
  6. package/bundle/react-vant-nova.min.js +2 -2
  7. package/es/empty/Network.d.ts +1 -0
  8. package/es/index.d.ts +1 -0
  9. package/es/index.js +2 -1
  10. package/es/radio/Radio.d.ts +1 -0
  11. package/es/radio/RadioGroup.d.ts +1 -0
  12. package/es/treeSelect/PropsType.d.ts +85 -0
  13. package/es/treeSelect/PropsType.js +1 -0
  14. package/es/treeSelect/TreeSelect.d.ts +4 -0
  15. package/es/treeSelect/TreeSelect.js +259 -0
  16. package/es/treeSelect/index.d.ts +5 -0
  17. package/es/treeSelect/index.js +4 -0
  18. package/es/treeSelect/style/index.css +149 -0
  19. package/es/treeSelect/style/var.css +0 -0
  20. package/es/utils/dom/render.js +12 -30
  21. package/es/utils/dom/render1.d.ts +9 -0
  22. package/es/utils/dom/render1.js +85 -0
  23. package/lib/empty/Network.d.ts +1 -0
  24. package/lib/index.css +149 -0
  25. package/lib/index.d.ts +1 -0
  26. package/lib/index.js +12 -0
  27. package/lib/index.min.css +1 -1
  28. package/lib/radio/Radio.d.ts +1 -0
  29. package/lib/radio/RadioGroup.d.ts +1 -0
  30. package/lib/treeSelect/PropsType.d.ts +85 -0
  31. package/lib/treeSelect/PropsType.js +6 -0
  32. package/lib/treeSelect/TreeSelect.d.ts +4 -0
  33. package/lib/treeSelect/TreeSelect.js +291 -0
  34. package/lib/treeSelect/index.d.ts +5 -0
  35. package/lib/treeSelect/index.js +16 -0
  36. package/lib/treeSelect/style/index.css +149 -0
  37. package/lib/treeSelect/style/var.css +0 -0
  38. package/lib/utils/dom/render.js +20 -32
  39. package/lib/utils/dom/render1.d.ts +9 -0
  40. package/lib/utils/dom/render1.js +106 -0
  41. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import React, { useRef, useEffect, useState, useMemo, useCallback, useContext, createContext, forwardRef, useImperativeHandle, memo, isValidElement, Children, cloneElement } from "react";
2
- import clsx from "clsx";
2
+ import cls from "clsx";
3
3
  import { ArrowLeft, ArrowUp, ArrowDown, Arrow, Cross, Clear, QuestionO, PhotoFail, Photo, Checked, Success, Search as Search$1, Star, StarO, Close, Description, Photograph, ExpandO } from "@react-vant/icons";
4
4
  import { CSSTransition } from "react-transition-group";
5
- import * as ReactDOM from "react-dom";
6
- import { createPortal } from "react-dom";
5
+ import * as require$$0 from "react-dom";
6
+ import require$$0__default, { createPortal } from "react-dom";
7
7
  import { createUseGesture, dragAction, pinchAction, useDrag } from "@use-gesture/react";
8
8
  import { useSpring, animated } from "@react-spring/web";
9
9
  import { createPopper, offsetModifier } from "@vant/popperjs";
@@ -915,7 +915,7 @@ function usePropsValue(options) {
915
915
  );
916
916
  return [stateRef.current, setState];
917
917
  }
918
- var index$16 = {
918
+ var index$17 = {
919
919
  useClickAway,
920
920
  useCountDown,
921
921
  useEventListener,
@@ -934,14 +934,14 @@ var index$16 = {
934
934
  useMemoizedFn,
935
935
  usePropsValue
936
936
  };
937
+ var index$16 = "";
937
938
  var index$15 = "";
938
- var index$14 = "";
939
939
  const SpinIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement(React.Fragment, null, Array(12).fill(null).map((_, index2) => /* @__PURE__ */ React.createElement("i", {
940
940
  key: index2,
941
- className: clsx(bem2("line", String(index2 + 1)))
941
+ className: cls(bem2("line", String(index2 + 1)))
942
942
  })));
943
943
  const CircularIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement("svg", {
944
- className: clsx(bem2("circular")),
944
+ className: cls(bem2("circular")),
945
945
  viewBox: "25 25 50 50"
946
946
  }, /* @__PURE__ */ React.createElement("circle", {
947
947
  cx: "50",
@@ -950,7 +950,7 @@ const CircularIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement("svg
950
950
  fill: "none"
951
951
  }));
952
952
  const BallIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement("div", {
953
- className: clsx(bem2("ball"))
953
+ className: cls(bem2("ball"))
954
954
  }, /* @__PURE__ */ React.createElement("div", null), /* @__PURE__ */ React.createElement("div", null), /* @__PURE__ */ React.createElement("div", null));
955
955
  const Icon = (bem2) => ({
956
956
  spinner: /* @__PURE__ */ React.createElement(SpinIcon, {
@@ -963,7 +963,7 @@ const Icon = (bem2) => ({
963
963
  bem: bem2
964
964
  })
965
965
  });
966
- const [bem$1E] = createNamespace("loading");
966
+ const [bem$1F] = createNamespace("loading");
967
967
  const Loading = (props) => {
968
968
  const {
969
969
  className,
@@ -985,7 +985,7 @@ const Loading = (props) => {
985
985
  const renderText = () => {
986
986
  if (children) {
987
987
  return /* @__PURE__ */ React.createElement("span", {
988
- className: clsx(bem$1E("text")),
988
+ className: cls(bem$1F("text")),
989
989
  style: {
990
990
  fontSize: addUnit(textSize),
991
991
  color: textColor != null ? textColor : color
@@ -995,12 +995,12 @@ const Loading = (props) => {
995
995
  return null;
996
996
  };
997
997
  return /* @__PURE__ */ React.createElement("div", {
998
- className: clsx(className, bem$1E([type, { vertical }])),
998
+ className: cls(className, bem$1F([type, { vertical }])),
999
999
  style: props.style
1000
1000
  }, /* @__PURE__ */ React.createElement("span", {
1001
- className: clsx(bem$1E("spinner", type)),
1001
+ className: cls(bem$1F("spinner", type)),
1002
1002
  style: spinnerStyle
1003
- }, Icon(bem$1E)[type]), renderText());
1003
+ }, Icon(bem$1F)[type]), renderText());
1004
1004
  };
1005
1005
  const WHITE = "#fff";
1006
1006
  const BORDER = "rv-hairline";
@@ -1013,7 +1013,7 @@ const BORDER_UNSET_TOP_BOTTOM = `${BORDER}-unset--top-bottom`;
1013
1013
  const SHADOW = "rv-shadow";
1014
1014
  const COMPONENT_TYPE_KEY = "__REACT_VANT_COMPONENT";
1015
1015
  const ButtonContext = React.createContext({});
1016
- const [bem$1D] = createNamespace("button");
1016
+ const [bem$1E] = createNamespace("button");
1017
1017
  const Button$1 = (props) => {
1018
1018
  const {
1019
1019
  color,
@@ -1067,9 +1067,9 @@ const Button$1 = (props) => {
1067
1067
  [parent == null ? void 0 : parent.tag, props.tag]
1068
1068
  );
1069
1069
  const TagElement = tag;
1070
- const classes = clsx(
1070
+ const classes = cls(
1071
1071
  className,
1072
- bem$1D([
1072
+ bem$1E([
1073
1073
  type,
1074
1074
  size,
1075
1075
  {
@@ -1106,7 +1106,7 @@ const Button$1 = (props) => {
1106
1106
  if (loading) {
1107
1107
  const { loadingSize = "20px" } = props;
1108
1108
  return /* @__PURE__ */ React.createElement(Loading, {
1109
- className: clsx(bem$1D("loading")),
1109
+ className: cls(bem$1E("loading")),
1110
1110
  size: loadingSize,
1111
1111
  type: loadingType,
1112
1112
  color: type === "default" ? void 0 : ""
@@ -1120,7 +1120,7 @@ const Button$1 = (props) => {
1120
1120
  }
1121
1121
  if (props.icon) {
1122
1122
  return React.cloneElement(props.icon, {
1123
- className: clsx(bem$1D("icon"))
1123
+ className: cls(bem$1E("icon"))
1124
1124
  });
1125
1125
  }
1126
1126
  return null;
@@ -1135,13 +1135,13 @@ const Button$1 = (props) => {
1135
1135
  if (text) {
1136
1136
  return /* @__PURE__ */ React.createElement("span", {
1137
1137
  key: "text",
1138
- className: clsx(bem$1D("text"))
1138
+ className: cls(bem$1E("text"))
1139
1139
  }, text);
1140
1140
  }
1141
1141
  return null;
1142
1142
  };
1143
1143
  const renderContent = () => /* @__PURE__ */ React.createElement("div", {
1144
- className: clsx(bem$1D("content"))
1144
+ className: cls(bem$1E("content"))
1145
1145
  }, iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon());
1146
1146
  const ValidTagElement = TagElement;
1147
1147
  return /* @__PURE__ */ React.createElement(ValidTagElement, {
@@ -1153,7 +1153,7 @@ const Button$1 = (props) => {
1153
1153
  onClick
1154
1154
  }, renderContent());
1155
1155
  };
1156
- const [bem$1C] = createNamespace("button-group");
1156
+ const [bem$1D] = createNamespace("button-group");
1157
1157
  const ButtonGroup = ({
1158
1158
  className,
1159
1159
  style,
@@ -1169,9 +1169,9 @@ const ButtonGroup = ({
1169
1169
  return /* @__PURE__ */ React.createElement("div", {
1170
1170
  onClick: internalClick,
1171
1171
  style,
1172
- className: clsx(
1172
+ className: cls(
1173
1173
  className,
1174
- bem$1C([
1174
+ bem$1D([
1175
1175
  props.type,
1176
1176
  {
1177
1177
  round: props.round,
@@ -1186,7 +1186,7 @@ const ButtonGroup = ({
1186
1186
  }, children));
1187
1187
  };
1188
1188
  const Button = Object.assign(Button$1, { Group: ButtonGroup });
1189
- var index$13 = "";
1189
+ var index$14 = "";
1190
1190
  function mergeProps(...items) {
1191
1191
  const result = { ...items[0] };
1192
1192
  items.forEach((item) => {
@@ -1197,7 +1197,7 @@ function mergeProps(...items) {
1197
1197
  });
1198
1198
  return result;
1199
1199
  }
1200
- const [bem$1B] = createNamespace("badge");
1200
+ const [bem$1C] = createNamespace("badge");
1201
1201
  const Badge = (p) => {
1202
1202
  const props = mergeProps(p, {
1203
1203
  tag: "div",
@@ -1239,11 +1239,11 @@ const Badge = (p) => {
1239
1239
  style = { ...props.style, ...style };
1240
1240
  }
1241
1241
  return /* @__PURE__ */ React.createElement("div", {
1242
- className: clsx(
1242
+ className: cls(
1243
1243
  {
1244
1244
  [props.className]: props.className && !props.children
1245
1245
  },
1246
- bem$1B({ dot: props.dot, fixed: !!props.children })
1246
+ bem$1C({ dot: props.dot, fixed: !!props.children })
1247
1247
  ),
1248
1248
  style
1249
1249
  }, renderContent());
@@ -1253,7 +1253,7 @@ const Badge = (p) => {
1253
1253
  if (props.children) {
1254
1254
  const ValidTagElement = TagElement;
1255
1255
  return /* @__PURE__ */ React.createElement(ValidTagElement, {
1256
- className: clsx(bem$1B("wrapper"), props.className),
1256
+ className: cls(bem$1C("wrapper"), props.className),
1257
1257
  style: props.style,
1258
1258
  onClick: props.onClick,
1259
1259
  onTouchStart: props.onTouchStart
@@ -1261,9 +1261,9 @@ const Badge = (p) => {
1261
1261
  }
1262
1262
  return renderBadge();
1263
1263
  };
1264
+ var index$13 = "";
1264
1265
  var index$12 = "";
1265
- var index$11 = "";
1266
- const [bem$1A] = createNamespace("cell-group");
1266
+ const [bem$1B] = createNamespace("cell-group");
1267
1267
  const CellGroup = (p) => {
1268
1268
  const props = mergeProps(p, {
1269
1269
  border: true
@@ -1271,14 +1271,14 @@ const CellGroup = (p) => {
1271
1271
  const { title, border, inset: insetP, card } = props;
1272
1272
  const inset = card || insetP;
1273
1273
  const renderGroup = () => /* @__PURE__ */ React.createElement("div", {
1274
- className: clsx(bem$1A({ inset }), {
1274
+ className: cls(bem$1B({ inset }), {
1275
1275
  [BORDER_TOP_BOTTOM]: !inset && border
1276
1276
  })
1277
1277
  }, props.children);
1278
1278
  const renderTitle = () => {
1279
1279
  if (title)
1280
1280
  return /* @__PURE__ */ React.createElement("div", {
1281
- className: clsx(bem$1A("title"))
1281
+ className: cls(bem$1B("title"))
1282
1282
  }, title);
1283
1283
  return null;
1284
1284
  };
@@ -1287,13 +1287,13 @@ const CellGroup = (p) => {
1287
1287
  style: props.style
1288
1288
  }, renderTitle(), renderGroup());
1289
1289
  };
1290
- const [bem$1z] = createNamespace("cell");
1290
+ const [bem$1A] = createNamespace("cell");
1291
1291
  const Cell$1 = (props) => {
1292
1292
  const renderLabel = () => {
1293
1293
  const showLabel = isDef(props.label);
1294
1294
  if (showLabel) {
1295
1295
  return /* @__PURE__ */ React.createElement("div", {
1296
- className: clsx(bem$1z("label"), props.labelClass)
1296
+ className: cls(bem$1A("label"), props.labelClass)
1297
1297
  }, props.label);
1298
1298
  }
1299
1299
  return null;
@@ -1301,7 +1301,7 @@ const Cell$1 = (props) => {
1301
1301
  const renderTitle = () => {
1302
1302
  if (isDef(props.title)) {
1303
1303
  return /* @__PURE__ */ React.createElement("div", {
1304
- className: clsx(bem$1z("title"), props.titleClass),
1304
+ className: cls(bem$1A("title"), props.titleClass),
1305
1305
  style: props.titleStyle
1306
1306
  }, props.title, renderLabel());
1307
1307
  }
@@ -1312,7 +1312,7 @@ const Cell$1 = (props) => {
1312
1312
  const hasValue = isDef(props.children) || isDef(props.value);
1313
1313
  if (hasValue) {
1314
1314
  return /* @__PURE__ */ React.createElement("div", {
1315
- className: clsx(bem$1z("value", { alone: !hasTitle }), props.valueClass)
1315
+ className: cls(bem$1A("value", { alone: !hasTitle }), props.valueClass)
1316
1316
  }, isDef(props.children) ? props.children : /* @__PURE__ */ React.createElement("span", null, props.value));
1317
1317
  }
1318
1318
  return null;
@@ -1321,7 +1321,7 @@ const Cell$1 = (props) => {
1321
1321
  var _a, _b, _c;
1322
1322
  if (props.icon) {
1323
1323
  return React.cloneElement(props.icon, {
1324
- className: clsx((_c = (_b = (_a = props.icon) == null ? void 0 : _a.props) == null ? void 0 : _b.className) != null ? _c : "", bem$1z("left-icon"))
1324
+ className: cls((_c = (_b = (_a = props.icon) == null ? void 0 : _a.props) == null ? void 0 : _b.className) != null ? _c : "", bem$1A("left-icon"))
1325
1325
  });
1326
1326
  }
1327
1327
  return null;
@@ -1331,7 +1331,7 @@ const Cell$1 = (props) => {
1331
1331
  return props.rightIcon;
1332
1332
  }
1333
1333
  if (props.isLink) {
1334
- const className2 = clsx(bem$1z("right-icon"));
1334
+ const className2 = cls(bem$1A("right-icon"));
1335
1335
  if (props.arrowDirection === "left")
1336
1336
  return /* @__PURE__ */ React.createElement(ArrowLeft, {
1337
1337
  className: className2
@@ -1372,16 +1372,16 @@ const Cell$1 = (props) => {
1372
1372
  }
1373
1373
  return /* @__PURE__ */ React.createElement("div", {
1374
1374
  style,
1375
- className: clsx(bem$1z(classes), className),
1375
+ className: cls(bem$1A(classes), className),
1376
1376
  role: clickable ? "button" : void 0,
1377
1377
  onClick
1378
1378
  }, renderLeftIcon(), renderTitle(), renderValue(), renderRightIcon(), props.extra);
1379
1379
  };
1380
1380
  const Cell = Object.assign(Cell$1, { Group: CellGroup });
1381
+ var index$11 = "";
1381
1382
  var index$10 = "";
1382
1383
  var index$$ = "";
1383
- var index$_ = "";
1384
- const [bem$1y] = createNamespace("overlay");
1384
+ const [bem$1z] = createNamespace("overlay");
1385
1385
  const Overlay = (p) => {
1386
1386
  const nodeRef = useRef(null);
1387
1387
  const props = mergeProps(p, {
@@ -1416,7 +1416,7 @@ const Overlay = (p) => {
1416
1416
  (_a = props.onClick) == null ? void 0 : _a.call(props, e);
1417
1417
  }
1418
1418
  },
1419
- className: clsx(bem$1y(), props.className)
1419
+ className: cls(bem$1z(), props.className)
1420
1420
  }, props.children)
1421
1421
  );
1422
1422
  };
@@ -1559,7 +1559,7 @@ const sharedPopupProps = [
1559
1559
  "beforeClose"
1560
1560
  ];
1561
1561
  let globalZIndex = 2e3;
1562
- const [bem$1x] = createNamespace("popup");
1562
+ const [bem$1y] = createNamespace("popup");
1563
1563
  const Popup = forwardRef((p, ref) => {
1564
1564
  var _a;
1565
1565
  const props = mergeProps(p, {
@@ -1651,7 +1651,7 @@ const Popup = forwardRef((p, ref) => {
1651
1651
  const { closeIconPosition } = props;
1652
1652
  if (closeIcon) {
1653
1653
  return /* @__PURE__ */ React.createElement("div", {
1654
- className: clsx(bem$1x("close-icon", closeIconPosition)),
1654
+ className: cls(bem$1y("close-icon", closeIconPosition)),
1655
1655
  onClick: onClickCloseIcon
1656
1656
  }, closeIcon);
1657
1657
  }
@@ -1662,7 +1662,7 @@ const Popup = forwardRef((p, ref) => {
1662
1662
  const renderTitle = () => {
1663
1663
  if (title) {
1664
1664
  return /* @__PURE__ */ React.createElement("div", {
1665
- className: clsx(bem$1x("title"))
1665
+ className: cls(bem$1y("title"))
1666
1666
  }, title);
1667
1667
  }
1668
1668
  return null;
@@ -1670,7 +1670,7 @@ const Popup = forwardRef((p, ref) => {
1670
1670
  const renderDescription = () => {
1671
1671
  if (description) {
1672
1672
  return /* @__PURE__ */ React.createElement("div", {
1673
- className: clsx(bem$1x("description"))
1673
+ className: cls(bem$1y("description"))
1674
1674
  }, description);
1675
1675
  }
1676
1676
  return null;
@@ -1685,8 +1685,8 @@ const Popup = forwardRef((p, ref) => {
1685
1685
  ...style,
1686
1686
  display: !visible && !animatedVisible ? "none" : void 0
1687
1687
  },
1688
- className: clsx(
1689
- bem$1x({
1688
+ className: cls(
1689
+ bem$1y({
1690
1690
  round,
1691
1691
  [position]: position
1692
1692
  }),
@@ -1740,9 +1740,9 @@ const Popup = forwardRef((p, ref) => {
1740
1740
  }, renderOverlay(), renderTransition())
1741
1741
  );
1742
1742
  });
1743
- var index$Z = "";
1743
+ var index$_ = "";
1744
1744
  const ActionButtonContext = createContext({});
1745
- const [bem$1w] = createNamespace("action-bar");
1745
+ const [bem$1x] = createNamespace("action-bar");
1746
1746
  const ActionBar$1 = (p) => {
1747
1747
  const props = mergeProps(p, {
1748
1748
  safeAreaInsetBottom: true
@@ -1754,7 +1754,7 @@ const ActionBar$1 = (p) => {
1754
1754
  return /* @__PURE__ */ React.createElement(ActionButtonContext.Provider, {
1755
1755
  value: { parent: { children } }
1756
1756
  }, /* @__PURE__ */ React.createElement("div", {
1757
- className: clsx(props.className, bem$1w(), {
1757
+ className: cls(props.className, bem$1x(), {
1758
1758
  "rv-safe-area-bottom": props.safeAreaInsetBottom
1759
1759
  }),
1760
1760
  style: props.style
@@ -1764,27 +1764,27 @@ const ActionBar$1 = (p) => {
1764
1764
  })
1765
1765
  )));
1766
1766
  };
1767
- const [bem$1v] = createNamespace("action-bar-icon");
1767
+ const [bem$1w] = createNamespace("action-bar-icon");
1768
1768
  const ActionBarIcon = (props) => {
1769
1769
  const renderIcon = () => {
1770
1770
  const { badge, icon } = props;
1771
1771
  if (icon) {
1772
1772
  return /* @__PURE__ */ React.createElement(Badge, {
1773
1773
  ...badge,
1774
- className: clsx(bem$1v("icon"))
1774
+ className: cls(bem$1w("icon"))
1775
1775
  }, icon);
1776
1776
  }
1777
1777
  return null;
1778
1778
  };
1779
1779
  return /* @__PURE__ */ React.createElement("div", {
1780
1780
  role: "button",
1781
- className: clsx(props.className, bem$1v()),
1781
+ className: cls(props.className, bem$1w()),
1782
1782
  style: props.style,
1783
1783
  tabIndex: 0,
1784
1784
  onClick: props.onClick
1785
1785
  }, renderIcon(), props.children || props.text);
1786
1786
  };
1787
- const [bem$1u] = createNamespace("action-bar-button");
1787
+ const [bem$1v] = createNamespace("action-bar-button");
1788
1788
  const ActionBarButton = (props) => {
1789
1789
  const { type, icon, text, color, loading, disabled, index: index2 } = props;
1790
1790
  const { parent } = useContext(ActionButtonContext);
@@ -1803,9 +1803,9 @@ const ActionBarButton = (props) => {
1803
1803
  return false;
1804
1804
  }, [index2, parent]);
1805
1805
  return /* @__PURE__ */ React.createElement(Button, {
1806
- className: clsx(
1806
+ className: cls(
1807
1807
  props.className,
1808
- bem$1u([
1808
+ bem$1v([
1809
1809
  type,
1810
1810
  {
1811
1811
  last: isLast,
@@ -1926,7 +1926,7 @@ const INITIAL_STATE$1 = {
1926
1926
  locale: zhCN
1927
1927
  };
1928
1928
  const ConfigProvider$1 = createContext(INITIAL_STATE$1);
1929
- const [bem$1t] = createNamespace("dialog");
1929
+ const [bem$1u] = createNamespace("dialog");
1930
1930
  const Dialog$1 = (p) => {
1931
1931
  const { locale } = useContext(ConfigProvider$1);
1932
1932
  const props = mergeProps(p, {
@@ -1949,8 +1949,8 @@ const Dialog$1 = (p) => {
1949
1949
  const renderTitle = () => {
1950
1950
  if (props.title) {
1951
1951
  return /* @__PURE__ */ React.createElement("div", {
1952
- className: clsx(
1953
- bem$1t("header", {
1952
+ className: cls(
1953
+ bem$1u("header", {
1954
1954
  isolated: !props.message && !props.children
1955
1955
  })
1956
1956
  )
@@ -1961,15 +1961,15 @@ const Dialog$1 = (p) => {
1961
1961
  const renderContent = () => {
1962
1962
  if (props.children) {
1963
1963
  return /* @__PURE__ */ React.createElement("div", {
1964
- className: clsx(bem$1t("content"))
1964
+ className: cls(bem$1u("content"))
1965
1965
  }, props.children);
1966
1966
  }
1967
1967
  if (message) {
1968
1968
  return /* @__PURE__ */ React.createElement("div", {
1969
- className: clsx(bem$1t("content", { isolated: !title }))
1969
+ className: cls(bem$1u("content", { isolated: !title }))
1970
1970
  }, /* @__PURE__ */ React.createElement("div", {
1971
- className: clsx(
1972
- bem$1t("message", {
1971
+ className: cls(
1972
+ bem$1u("message", {
1973
1973
  "has-title": title,
1974
1974
  [messageAlign]: messageAlign
1975
1975
  })
@@ -1981,11 +1981,11 @@ const Dialog$1 = (p) => {
1981
1981
  const renderButtons = () => {
1982
1982
  var _a, _b, _c, _d, _e, _f;
1983
1983
  return /* @__PURE__ */ React.createElement("div", {
1984
- className: clsx(BORDER_TOP, bem$1t("footer"))
1984
+ className: cls(BORDER_TOP, bem$1u("footer"))
1985
1985
  }, props.showCancelButton && /* @__PURE__ */ React.createElement(Button, {
1986
1986
  size: "large",
1987
1987
  text: props.cancelButtonText || locale.cancel,
1988
- className: clsx(bem$1t("cancel")),
1988
+ className: cls(bem$1u("cancel")),
1989
1989
  style: { color: props.cancelButtonColor },
1990
1990
  loading: (_a = props.cancelProps) == null ? void 0 : _a.loading,
1991
1991
  disabled: (_b = props.cancelProps) == null ? void 0 : _b.disabled,
@@ -1993,7 +1993,7 @@ const Dialog$1 = (p) => {
1993
1993
  }), props.showConfirmButton && /* @__PURE__ */ React.createElement(Button, {
1994
1994
  size: "large",
1995
1995
  text: props.confirmButtonText || locale.confirm,
1996
- className: clsx(bem$1t("confirm"), {
1996
+ className: cls(bem$1u("confirm"), {
1997
1997
  [BORDER_LEFT]: props.showCancelButton
1998
1998
  }),
1999
1999
  round: theme === "round-button" || void 0,
@@ -2006,11 +2006,11 @@ const Dialog$1 = (p) => {
2006
2006
  const renderRoundButtons = () => {
2007
2007
  var _a, _b, _c, _d, _e, _f;
2008
2008
  return /* @__PURE__ */ React.createElement(ActionBar, {
2009
- className: clsx(bem$1t("footer"))
2009
+ className: cls(bem$1u("footer"))
2010
2010
  }, props.showCancelButton && /* @__PURE__ */ React.createElement(ActionBar.Button, {
2011
2011
  type: "warning",
2012
2012
  text: props.cancelButtonText || locale.cancel,
2013
- className: clsx(bem$1t("cancel")),
2013
+ className: cls(bem$1u("cancel")),
2014
2014
  color: props.cancelButtonColor,
2015
2015
  loading: (_a = props.cancelProps) == null ? void 0 : _a.loading,
2016
2016
  disabled: (_b = props.cancelProps) == null ? void 0 : _b.disabled,
@@ -2018,7 +2018,7 @@ const Dialog$1 = (p) => {
2018
2018
  }), props.showConfirmButton && /* @__PURE__ */ React.createElement(ActionBar.Button, {
2019
2019
  type: "danger",
2020
2020
  text: props.confirmButtonText || locale.confirm,
2021
- className: clsx(bem$1t("confirm")),
2021
+ className: cls(bem$1u("confirm")),
2022
2022
  color: props.confirmButtonColor,
2023
2023
  loading: (_d = props.confirmProps) == null ? void 0 : _d.loading,
2024
2024
  disabled: (_e = props.confirmProps) == null ? void 0 : _e.disabled,
@@ -2033,7 +2033,7 @@ const Dialog$1 = (p) => {
2033
2033
  return /* @__PURE__ */ React.createElement(Popup, {
2034
2034
  ...others,
2035
2035
  visible,
2036
- className: clsx(bem$1t([theme]), className),
2036
+ className: cls(bem$1u([theme]), className),
2037
2037
  style: { width: addUnit(width) },
2038
2038
  "aria-labelledby": title || message,
2039
2039
  closeOnClickOverlay,
@@ -2042,19 +2042,16 @@ const Dialog$1 = (p) => {
2042
2042
  onClosed: props.onClosed
2043
2043
  }, renderTitle(), renderContent(), renderFooter());
2044
2044
  };
2045
+ var createRoot;
2046
+ var m = require$$0__default;
2047
+ {
2048
+ createRoot = m.createRoot;
2049
+ m.hydrateRoot;
2050
+ }
2045
2051
  const fullClone = {
2046
- ...ReactDOM
2052
+ ...require$$0
2047
2053
  };
2048
- const { unmountComponentAtNode } = fullClone;
2049
- let createRoot;
2050
- if (fullClone.createRoot) {
2051
- createRoot = fullClone.createRoot;
2052
- } else {
2053
- try {
2054
- createRoot = require("react-dom/client").createRoot;
2055
- } catch (e) {
2056
- }
2057
- }
2054
+ const { render: reactRender, unmountComponentAtNode } = fullClone;
2058
2055
  function toggleWarning(skip) {
2059
2056
  const { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED } = fullClone;
2060
2057
  if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && typeof __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === "object") {
@@ -2063,12 +2060,8 @@ function toggleWarning(skip) {
2063
2060
  }
2064
2061
  const MARK = "__react_vant_root__";
2065
2062
  function legacyRender(node, container) {
2066
- if (fullClone.render) {
2067
- fullClone.render(node, container);
2068
- } else {
2069
- if (createRoot) {
2070
- concurrentRender(node, container);
2071
- }
2063
+ if (reactRender) {
2064
+ reactRender(node, container);
2072
2065
  }
2073
2066
  }
2074
2067
  function concurrentRender(node, container) {
@@ -2086,7 +2079,7 @@ function render(node, container) {
2086
2079
  legacyRender(node, container);
2087
2080
  }
2088
2081
  function legacyUnmount(container) {
2089
- return unmountComponentAtNode(container);
2082
+ return unmountComponentAtNode ? unmountComponentAtNode(container) : false;
2090
2083
  }
2091
2084
  async function concurrentUnmount(container) {
2092
2085
  return Promise.resolve().then(() => {
@@ -2096,7 +2089,7 @@ async function concurrentUnmount(container) {
2096
2089
  });
2097
2090
  }
2098
2091
  function unmount(container) {
2099
- if (createRoot) {
2092
+ if (createRoot || container[MARK]) {
2100
2093
  return concurrentUnmount(container);
2101
2094
  }
2102
2095
  return legacyUnmount(container);
@@ -2228,7 +2221,7 @@ Dialog.confirm = (props) => {
2228
2221
  });
2229
2222
  });
2230
2223
  };
2231
- const [bem$1s] = createNamespace("input");
2224
+ const [bem$1t] = createNamespace("input");
2232
2225
  const Input$1 = forwardRef((p, ref) => {
2233
2226
  const props = mergeProps(p, {
2234
2227
  clearIcon: /* @__PURE__ */ React.createElement(Clear, null),
@@ -2335,7 +2328,7 @@ const Input$1 = forwardRef((p, ref) => {
2335
2328
  inputMode,
2336
2329
  ref: inputRef,
2337
2330
  name,
2338
- className: clsx(bem$1s("control")),
2331
+ className: cls(bem$1t("control")),
2339
2332
  disabled,
2340
2333
  autoFocus,
2341
2334
  readOnly,
@@ -2371,21 +2364,21 @@ const Input$1 = forwardRef((p, ref) => {
2371
2364
  (_a = props.onClear) == null ? void 0 : _a.call(props, e);
2372
2365
  };
2373
2366
  return /* @__PURE__ */ React.createElement("div", {
2374
- className: clsx(bem$1s([align]), className),
2367
+ className: cls(bem$1t([align]), className),
2375
2368
  style
2376
2369
  }, props.prefix && /* @__PURE__ */ React.createElement("div", {
2377
- className: clsx(bem$1s("prefix"))
2370
+ className: cls(bem$1t("prefix"))
2378
2371
  }, props.prefix), renderInput(), showClear && React.cloneElement(
2379
2372
  props.clearIcon || /* @__PURE__ */ React.createElement(Clear, null),
2380
2373
  {
2381
- className: clsx(bem$1s("clear")),
2374
+ className: cls(bem$1t("clear")),
2382
2375
  onTouchStart: handleClear
2383
2376
  }
2384
2377
  ), props.suffix && /* @__PURE__ */ React.createElement("div", {
2385
- className: clsx(bem$1s("suffix"))
2378
+ className: cls(bem$1t("suffix"))
2386
2379
  }, props.suffix));
2387
2380
  });
2388
- const [bem$1r] = createNamespace("textarea");
2381
+ const [bem$1s] = createNamespace("textarea");
2389
2382
  const TextArea = forwardRef((p, ref) => {
2390
2383
  const props = mergeProps(p, {
2391
2384
  rows: 2,
@@ -2452,7 +2445,7 @@ const TextArea = forwardRef((p, ref) => {
2452
2445
  adjustSize();
2453
2446
  }, [value]);
2454
2447
  const controlClass = React.useMemo(() => {
2455
- return bem$1r("control", [
2448
+ return bem$1s("control", [
2456
2449
  {
2457
2450
  "min-height": !props.autoSize,
2458
2451
  clear: props.clearable
@@ -2488,9 +2481,9 @@ const TextArea = forwardRef((p, ref) => {
2488
2481
  if (showWordLimit) {
2489
2482
  const currentCount = (value ? `${value}` : "").length;
2490
2483
  return /* @__PURE__ */ React.createElement("div", {
2491
- className: clsx(bem$1r("word-limit"))
2484
+ className: cls(bem$1s("word-limit"))
2492
2485
  }, typeof showWordLimit === "function" ? showWordLimit({ currentCount, maxLength }) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", {
2493
- className: clsx(bem$1r("word-num"))
2486
+ className: cls(bem$1s("word-num"))
2494
2487
  }, currentCount), maxLength ? `/${maxLength}` : false));
2495
2488
  }
2496
2489
  return null;
@@ -2509,13 +2502,13 @@ const TextArea = forwardRef((p, ref) => {
2509
2502
  return false;
2510
2503
  }, [value, props.clearTrigger, hasFocus]);
2511
2504
  return /* @__PURE__ */ React.createElement("div", {
2512
- className: clsx(bem$1r(), className),
2505
+ className: cls(bem$1s(), className),
2513
2506
  style
2514
2507
  }, /* @__PURE__ */ React.createElement("textarea", {
2515
2508
  ref: nativeTextAreaRef,
2516
2509
  name,
2517
2510
  rows,
2518
- className: clsx(controlClass),
2511
+ className: cls(controlClass),
2519
2512
  value,
2520
2513
  disabled,
2521
2514
  autoFocus,
@@ -2544,14 +2537,14 @@ const TextArea = forwardRef((p, ref) => {
2544
2537
  },
2545
2538
  onClick: props.onClick
2546
2539
  }), showClear && React.cloneElement(props.clearIcon, {
2547
- className: clsx(bem$1r("clear")),
2540
+ className: cls(bem$1s("clear")),
2548
2541
  onTouchStart: handleClear
2549
2542
  }), renderWordLimit());
2550
2543
  });
2544
+ var index$Z = "";
2551
2545
  var index$Y = "";
2552
- var index$X = "";
2553
2546
  const Input = Object.assign(Input$1, { TextArea });
2554
- const [bem$1q] = createNamespace("field");
2547
+ const [bem$1r] = createNamespace("field");
2555
2548
  const Field = forwardRef((p, ref) => {
2556
2549
  var _a;
2557
2550
  const props = mergeProps(p, {
@@ -2633,7 +2626,7 @@ const Field = forwardRef((p, ref) => {
2633
2626
  } = props;
2634
2627
  if (isDef(props.children)) {
2635
2628
  return /* @__PURE__ */ React.createElement("div", {
2636
- className: clsx(bem$1q("children"))
2629
+ className: cls(bem$1r("children"))
2637
2630
  }, props.children);
2638
2631
  }
2639
2632
  const commonProps = {
@@ -2677,7 +2670,7 @@ const Field = forwardRef((p, ref) => {
2677
2670
  if (!leftIcon)
2678
2671
  return null;
2679
2672
  return /* @__PURE__ */ React.createElement("div", {
2680
- className: clsx(bem$1q("left-icon")),
2673
+ className: cls(bem$1r("left-icon")),
2681
2674
  onClick: onClickLeftIcon
2682
2675
  }, leftIcon);
2683
2676
  };
@@ -2686,7 +2679,7 @@ const Field = forwardRef((p, ref) => {
2686
2679
  if (!rightIcon)
2687
2680
  return null;
2688
2681
  return /* @__PURE__ */ React.createElement("div", {
2689
- className: clsx(bem$1q("right-icon")),
2682
+ className: cls(bem$1r("right-icon")),
2690
2683
  onClick: onClickRightIcon
2691
2684
  }, rightIcon);
2692
2685
  };
@@ -2694,7 +2687,7 @@ const Field = forwardRef((p, ref) => {
2694
2687
  const message = props.errorMessage;
2695
2688
  if (message) {
2696
2689
  return /* @__PURE__ */ React.createElement("div", {
2697
- className: clsx(bem$1q("error-message"))
2690
+ className: cls(bem$1r("error-message"))
2698
2691
  }, message);
2699
2692
  }
2700
2693
  return null;
@@ -2702,7 +2695,7 @@ const Field = forwardRef((p, ref) => {
2702
2695
  const renderIntro = () => {
2703
2696
  if (props.intro) {
2704
2697
  return /* @__PURE__ */ React.createElement("div", {
2705
- className: clsx(bem$1q("intro"))
2698
+ className: cls(bem$1r("intro"))
2706
2699
  }, props.intro);
2707
2700
  }
2708
2701
  return null;
@@ -2718,7 +2711,7 @@ const Field = forwardRef((p, ref) => {
2718
2711
  dialogProps = customDialogProps;
2719
2712
  }
2720
2713
  return /* @__PURE__ */ React.createElement("div", {
2721
- className: clsx(bem$1q("tooltip")),
2714
+ className: cls(bem$1r("tooltip")),
2722
2715
  onClick: () => Dialog.show(dialogProps)
2723
2716
  }, icon);
2724
2717
  }
@@ -2760,13 +2753,13 @@ const Field = forwardRef((p, ref) => {
2760
2753
  clickable,
2761
2754
  extra: props.extra,
2762
2755
  titleStyle: { ...labelStyle(), ...titleStyle },
2763
- valueClass: clsx(bem$1q("value", [controlAlign]), valueClass),
2764
- titleClass: clsx(bem$1q("label", labelAlign), labelClass),
2756
+ valueClass: cls(bem$1r("value", [controlAlign]), valueClass),
2757
+ titleClass: cls(bem$1r("label", labelAlign), labelClass),
2765
2758
  arrowDirection,
2766
2759
  onClick: props.onClick,
2767
2760
  style: props.style,
2768
- className: clsx(
2769
- bem$1q({
2761
+ className: cls(
2762
+ bem$1r({
2770
2763
  error,
2771
2764
  disabled,
2772
2765
  [`label-${labelAlign}`]: labelAlign
@@ -2774,20 +2767,20 @@ const Field = forwardRef((p, ref) => {
2774
2767
  className
2775
2768
  )
2776
2769
  }, /* @__PURE__ */ React.createElement("div", {
2777
- className: clsx(bem$1q("body"))
2770
+ className: cls(bem$1r("body"))
2778
2771
  }, props.prefix && /* @__PURE__ */ React.createElement("div", {
2779
- className: clsx(bem$1q("prefix"))
2772
+ className: cls(bem$1r("prefix"))
2780
2773
  }, props.prefix), /* @__PURE__ */ React.createElement("div", {
2781
- className: clsx(bem$1q("control-wrapper"))
2774
+ className: cls(bem$1r("control-wrapper"))
2782
2775
  }, renderInput()), renderRightIcon(), suffix && /* @__PURE__ */ React.createElement("div", {
2783
- className: clsx(bem$1q("suffix"))
2776
+ className: cls(bem$1r("suffix"))
2784
2777
  }, suffix)), renderMessage(), renderIntro());
2785
2778
  });
2786
2779
  const FIELD_KEY = Symbol("field");
2787
2780
  const FieldNamespace = Object.assign(Field, { [COMPONENT_TYPE_KEY]: FIELD_KEY });
2788
- var index$W = "";
2781
+ var index$X = "";
2789
2782
  const FlexContext = createContext({});
2790
- const [bem$1p] = createNamespace("flexbox");
2783
+ const [bem$1q] = createNamespace("flexbox");
2791
2784
  const Flex$1 = (props) => {
2792
2785
  const {
2793
2786
  direction,
@@ -2815,9 +2808,9 @@ const Flex$1 = (props) => {
2815
2808
  } : {},
2816
2809
  ...style
2817
2810
  };
2818
- const wrapCls = clsx(
2811
+ const wrapCls = cls(
2819
2812
  className,
2820
- bem$1p([
2813
+ bem$1q([
2821
2814
  direction,
2822
2815
  wrap,
2823
2816
  justify ? `justify-${justify}` : false,
@@ -2832,10 +2825,10 @@ const Flex$1 = (props) => {
2832
2825
  ...rest
2833
2826
  }, children));
2834
2827
  };
2835
- const [bem$1o] = createNamespace("flexitem");
2828
+ const [bem$1p] = createNamespace("flexitem");
2836
2829
  const FlexItem = (props) => {
2837
2830
  const { style, className, span, children, flex, ...others } = props;
2838
- const classes = clsx(bem$1o([span == null ? void 0 : span.toString()]), className);
2831
+ const classes = cls(bem$1p([span == null ? void 0 : span.toString()]), className);
2839
2832
  const parseFlex = (_flex) => {
2840
2833
  if (typeof _flex === "number") {
2841
2834
  return `${_flex} ${_flex} auto`;
@@ -2871,9 +2864,9 @@ const FlexItem = (props) => {
2871
2864
  });
2872
2865
  };
2873
2866
  const Flex = Object.assign(Flex$1, { Item: FlexItem });
2874
- var index$V = "";
2867
+ var index$W = "";
2875
2868
  const formatGap = (gap) => typeof gap === "number" ? `${gap}px` : gap;
2876
- const [bem$1n] = createNamespace("space");
2869
+ const [bem$1o] = createNamespace("space");
2877
2870
  const Space = (props) => {
2878
2871
  const { wrap, block, direction = "horizontal", align, justify } = props;
2879
2872
  const style = React.useMemo(() => {
@@ -2899,9 +2892,9 @@ const Space = (props) => {
2899
2892
  [props.children]
2900
2893
  );
2901
2894
  return /* @__PURE__ */ React.createElement("div", {
2902
- className: clsx(
2895
+ className: cls(
2903
2896
  props.className,
2904
- bem$1n({
2897
+ bem$1o({
2905
2898
  wrap,
2906
2899
  block,
2907
2900
  [`${direction}`]: !!direction,
@@ -2915,13 +2908,13 @@ const Space = (props) => {
2915
2908
  return /* @__PURE__ */ React.createElement(React.Fragment, {
2916
2909
  key: idx
2917
2910
  }, /* @__PURE__ */ React.createElement("div", {
2918
- className: clsx(bem$1n("item"))
2911
+ className: cls(bem$1o("item"))
2919
2912
  }, child), !!props.divider && idx !== childList.length - 1 && /* @__PURE__ */ React.createElement("div", {
2920
- className: clsx(bem$1n("item-divider"))
2913
+ className: cls(bem$1o("item-divider"))
2921
2914
  }, props.divider));
2922
2915
  }));
2923
2916
  };
2924
- var index$U = "";
2917
+ var index$V = "";
2925
2918
  const CheckMark = memo(() => {
2926
2919
  return /* @__PURE__ */ React.createElement("svg", {
2927
2920
  width: "17px",
@@ -2950,7 +2943,7 @@ const CheckMark = memo(() => {
2950
2943
  points: "34.2767388 22 24.797043 31.4796958 21 27.6826527"
2951
2944
  })))))));
2952
2945
  });
2953
- const [bem$1m] = createNamespace("selector");
2946
+ const [bem$1n] = createNamespace("selector");
2954
2947
  const Selector = (p) => {
2955
2948
  const props = mergeProps(p, {
2956
2949
  multiple: false,
@@ -2973,8 +2966,8 @@ const Selector = (p) => {
2973
2966
  const items = props.options.map((option) => {
2974
2967
  const active = (value || []).includes(option.value);
2975
2968
  const disabled = option.disabled || props.disabled;
2976
- const itemCls = clsx(
2977
- bem$1m("item", {
2969
+ const itemCls = cls(
2970
+ bem$1n("item", {
2978
2971
  active: active && !props.multiple,
2979
2972
  "multiple-active": active && props.multiple,
2980
2973
  disabled
@@ -2996,17 +2989,17 @@ const Selector = (p) => {
2996
2989
  }
2997
2990
  }
2998
2991
  }, option.label, option.description && /* @__PURE__ */ React.createElement("div", {
2999
- className: clsx(bem$1m("item-description"))
2992
+ className: cls(bem$1n("item-description"))
3000
2993
  }, option.description), active && props.showCheckMark && /* @__PURE__ */ React.createElement("div", {
3001
- className: clsx(bem$1m("check-mark-wrapper"))
2994
+ className: cls(bem$1n("check-mark-wrapper"))
3002
2995
  }, /* @__PURE__ */ React.createElement(CheckMark, null)));
3003
2996
  });
3004
2997
  return /* @__PURE__ */ React.createElement("div", {
3005
- className: clsx(bem$1m(), props.className),
2998
+ className: cls(bem$1n(), props.className),
3006
2999
  style: props.style
3007
3000
  }, items);
3008
3001
  };
3009
- var index$T = "";
3002
+ var index$U = "";
3010
3003
  function useResizeEffect(effect, targetRef) {
3011
3004
  const fn = useMemoizedFn(effect);
3012
3005
  useIsomorphicLayoutEffect(() => {
@@ -3141,7 +3134,7 @@ const Ellipsis = (p) => {
3141
3134
  };
3142
3135
  return /* @__PURE__ */ React.createElement("div", {
3143
3136
  ref: rootRef,
3144
- className: clsx("rv-typography__ellipsis", props.className),
3137
+ className: cls("rv-typography__ellipsis", props.className),
3145
3138
  style: props.style
3146
3139
  }, renderContent());
3147
3140
  };
@@ -3151,7 +3144,7 @@ function pxToNumber(value) {
3151
3144
  const match = value.match(/^\d*(\.\d*)?/);
3152
3145
  return match ? Number(match[0]) : 0;
3153
3146
  }
3154
- const [bem$1l] = createNamespace("typography");
3147
+ const [bem$1m] = createNamespace("typography");
3155
3148
  const ellipsisDefaultValue = {
3156
3149
  rows: 1
3157
3150
  };
@@ -3228,10 +3221,10 @@ const TypographyBase = ({
3228
3221
  if (isEnhanceEllipsis)
3229
3222
  return /* @__PURE__ */ React.createElement(Ellipsis, {
3230
3223
  onContentClick: internalClick,
3231
- className: clsx(
3224
+ className: cls(
3232
3225
  className,
3233
3226
  `rv-typography__${renderType}`,
3234
- bem$1l([
3227
+ bem$1m([
3235
3228
  type,
3236
3229
  size,
3237
3230
  {
@@ -3249,10 +3242,10 @@ const TypographyBase = ({
3249
3242
  style: measureStyle
3250
3243
  }, children);
3251
3244
  return /* @__PURE__ */ React.createElement(TagElement, {
3252
- className: clsx(
3245
+ className: cls(
3253
3246
  className,
3254
3247
  `rv-typography__${renderType}`,
3255
- bem$1l([
3248
+ bem$1m([
3256
3249
  type,
3257
3250
  size,
3258
3251
  {
@@ -3292,7 +3285,7 @@ const Link = (props) => /* @__PURE__ */ React.createElement(TypographyBase, {
3292
3285
  ...props
3293
3286
  });
3294
3287
  const TypographyNamespace = Object.assign(TypographyBase, { Text, Title, Link });
3295
- var index$S = "";
3288
+ var index$T = "";
3296
3289
  function parseFormat(format2, currentTime) {
3297
3290
  const { days } = currentTime;
3298
3291
  let { hours, minutes, seconds, milliseconds } = currentTime;
@@ -3328,7 +3321,7 @@ function parseFormat(format2, currentTime) {
3328
3321
  }
3329
3322
  return format2;
3330
3323
  }
3331
- const [bem$1k] = createNamespace("count-down");
3324
+ const [bem$1l] = createNamespace("count-down");
3332
3325
  const CountDown = forwardRef((p, ref) => {
3333
3326
  const props = mergeProps(p, {
3334
3327
  autoStart: true,
@@ -3362,12 +3355,12 @@ const CountDown = forwardRef((p, ref) => {
3362
3355
  reset: resetTime
3363
3356
  }));
3364
3357
  return /* @__PURE__ */ React.createElement("div", {
3365
- className: clsx(props.className, bem$1k()),
3358
+ className: cls(props.className, bem$1l()),
3366
3359
  style: props.style
3367
3360
  }, props.children ? props.children(current) : timeText);
3368
3361
  });
3369
- var index$R = "";
3370
- const [bem$1j] = createNamespace("divider");
3362
+ var index$S = "";
3363
+ const [bem$1k] = createNamespace("divider");
3371
3364
  const Divider = ({
3372
3365
  children,
3373
3366
  className,
@@ -3379,9 +3372,9 @@ const Divider = ({
3379
3372
  }) => {
3380
3373
  return /* @__PURE__ */ React.createElement("div", {
3381
3374
  role: "separator",
3382
- className: clsx(
3375
+ className: cls(
3383
3376
  className,
3384
- bem$1j({
3377
+ bem$1k({
3385
3378
  dashed,
3386
3379
  hairline,
3387
3380
  "vertical": type === "vertical",
@@ -3391,8 +3384,8 @@ const Divider = ({
3391
3384
  ...props
3392
3385
  }, children);
3393
3386
  };
3394
- var index$Q = "";
3395
- const [bem$1i] = createNamespace("image");
3387
+ var index$R = "";
3388
+ const [bem$1j] = createNamespace("image");
3396
3389
  const Image$1 = (props) => {
3397
3390
  const [status, setStatus] = useSetState({ loading: true, error: false });
3398
3391
  const imgRef = useRef(null);
@@ -3435,7 +3428,7 @@ const Image$1 = (props) => {
3435
3428
  const renderLoadingIcon = () => {
3436
3429
  if (loadingIcon)
3437
3430
  return React.cloneElement(loadingIcon, {
3438
- className: clsx(bem$1i("loading-icon")),
3431
+ className: cls(bem$1j("loading-icon")),
3439
3432
  fontSize: props.iconSize
3440
3433
  });
3441
3434
  return null;
@@ -3443,7 +3436,7 @@ const Image$1 = (props) => {
3443
3436
  const renderErrorIcon = () => {
3444
3437
  if (errorIcon) {
3445
3438
  return React.cloneElement(errorIcon, {
3446
- className: clsx(bem$1i("error-icon")),
3439
+ className: cls(bem$1j("error-icon")),
3447
3440
  fontSize: props.iconSize
3448
3441
  });
3449
3442
  }
@@ -3452,13 +3445,13 @@ const Image$1 = (props) => {
3452
3445
  const renderPlaceholder = () => {
3453
3446
  if (status.loading && showLoading) {
3454
3447
  return /* @__PURE__ */ React.createElement("div", {
3455
- className: clsx(bem$1i("loading")),
3448
+ className: cls(bem$1j("loading")),
3456
3449
  onClick: props.onClick
3457
3450
  }, renderLoadingIcon());
3458
3451
  }
3459
3452
  if (status.error && showError) {
3460
3453
  return /* @__PURE__ */ React.createElement("div", {
3461
- className: clsx(bem$1i("error")),
3454
+ className: cls(bem$1j("error")),
3462
3455
  onClick: props.onClick
3463
3456
  }, renderErrorIcon());
3464
3457
  }
@@ -3469,7 +3462,7 @@ const Image$1 = (props) => {
3469
3462
  return null;
3470
3463
  }
3471
3464
  const attrs = {
3472
- className: clsx(bem$1i("img")),
3465
+ className: cls(bem$1j("img")),
3473
3466
  style: {
3474
3467
  objectFit: fit
3475
3468
  }
@@ -3484,9 +3477,9 @@ const Image$1 = (props) => {
3484
3477
  });
3485
3478
  };
3486
3479
  return /* @__PURE__ */ React.createElement("div", {
3487
- className: clsx(
3480
+ className: cls(
3488
3481
  props.className,
3489
- bem$1i({
3482
+ bem$1j({
3490
3483
  block,
3491
3484
  round: props.round
3492
3485
  })
@@ -3495,11 +3488,11 @@ const Image$1 = (props) => {
3495
3488
  onClick: props.onClick
3496
3489
  }, renderImage(), renderPlaceholder(), props.children);
3497
3490
  };
3491
+ var index$Q = "";
3498
3492
  var index$P = "";
3499
- var index$O = "";
3500
3493
  const DEFAULT_ROW_WIDTH = "100%";
3501
3494
  const DEFAULT_LAST_ROW_WIDTH = "60%";
3502
- const [bem$1h] = createNamespace("skeleton");
3495
+ const [bem$1i] = createNamespace("skeleton");
3503
3496
  const Skeleton = ({
3504
3497
  children,
3505
3498
  className,
@@ -3534,7 +3527,7 @@ const Skeleton = ({
3534
3527
  const renderAvatar = () => {
3535
3528
  if (props.avatar) {
3536
3529
  return /* @__PURE__ */ React.createElement("div", {
3537
- className: clsx(bem$1h("avatar", props.avatarShape)),
3530
+ className: cls(bem$1i("avatar", props.avatarShape)),
3538
3531
  style: getSizeStyle(props.avatarSize)
3539
3532
  });
3540
3533
  }
@@ -3545,7 +3538,7 @@ const Skeleton = ({
3545
3538
  const width = addUnit(props.titleWidth);
3546
3539
  const height = addUnit(getRowHeight(0));
3547
3540
  return /* @__PURE__ */ React.createElement("div", {
3548
- className: clsx(bem$1h("title")),
3541
+ className: cls(bem$1i("title")),
3549
3542
  style: { width, height }
3550
3543
  });
3551
3544
  }
@@ -3556,23 +3549,23 @@ const Skeleton = ({
3556
3549
  const height = addUnit(getRowHeight(i));
3557
3550
  return /* @__PURE__ */ React.createElement("div", {
3558
3551
  key: i,
3559
- className: clsx(bem$1h("row")),
3552
+ className: cls(bem$1i("row")),
3560
3553
  style: { width, height }
3561
3554
  });
3562
3555
  });
3563
3556
  if (!props.loading)
3564
3557
  return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
3565
3558
  return /* @__PURE__ */ React.createElement("div", {
3566
- className: clsx(
3559
+ className: cls(
3567
3560
  className,
3568
- bem$1h({ animate: props.animate, round: props.round })
3561
+ bem$1i({ animate: props.animate, round: props.round })
3569
3562
  ),
3570
3563
  style
3571
3564
  }, renderAvatar(), /* @__PURE__ */ React.createElement("div", {
3572
- className: clsx(bem$1h("content"))
3565
+ className: cls(bem$1i("content"))
3573
3566
  }, renderTitle(), renderRows()));
3574
3567
  };
3575
- const [bem$1g] = createNamespace("lazyload");
3568
+ const [bem$1h] = createNamespace("lazyload");
3576
3569
  const Lazyload = (p) => {
3577
3570
  const props = mergeProps(p, {
3578
3571
  placeholder: /* @__PURE__ */ React.createElement(Skeleton, {
@@ -3584,16 +3577,16 @@ const Lazyload = (p) => {
3584
3577
  const { height, placeholder, children, className, style } = props;
3585
3578
  return inViewPort ? /* @__PURE__ */ React.createElement(React.Fragment, null, children) : /* @__PURE__ */ React.createElement("div", {
3586
3579
  ref,
3587
- className: clsx(bem$1g(), className),
3580
+ className: cls(bem$1h(), className),
3588
3581
  style: { height, ...style }
3589
3582
  }, placeholder);
3590
3583
  };
3591
3584
  const getLazyImagePlaceholder = (bem2) => /* @__PURE__ */ React.createElement("div", {
3592
- className: clsx(bem2("loading"))
3585
+ className: cls(bem2("loading"))
3593
3586
  }, /* @__PURE__ */ React.createElement(Photo, {
3594
- className: clsx(bem2("loading-icon"))
3587
+ className: cls(bem2("loading-icon"))
3595
3588
  }));
3596
- const [bem$1f] = createNamespace("image");
3589
+ const [bem$1g] = createNamespace("image");
3597
3590
  const LazyImage = (p) => {
3598
3591
  const props = mergeProps(p, {
3599
3592
  fit: "fill",
@@ -3606,13 +3599,13 @@ const LazyImage = (p) => {
3606
3599
  const { lazyload, ...imageProps } = props;
3607
3600
  const renderPlaceholder = () => {
3608
3601
  if (typeof lazyload === "boolean")
3609
- return getLazyImagePlaceholder(bem$1f);
3610
- return lazyload.placeholder || getLazyImagePlaceholder(bem$1f);
3602
+ return getLazyImagePlaceholder(bem$1g);
3603
+ return lazyload.placeholder || getLazyImagePlaceholder(bem$1g);
3611
3604
  };
3612
3605
  if (lazyload) {
3613
3606
  const { className, style, height, width } = imageProps;
3614
3607
  const attrs = {
3615
- className: clsx(className, bem$1f({ block: imageProps.block })),
3608
+ className: cls(className, bem$1g({ block: imageProps.block })),
3616
3609
  style: { ...style, height, width }
3617
3610
  };
3618
3611
  return /* @__PURE__ */ React.createElement(Lazyload, {
@@ -3630,7 +3623,7 @@ const IMAGE_KEY = Symbol("image");
3630
3623
  const ImageNamespace = Object.assign(LazyImage, {
3631
3624
  [COMPONENT_TYPE_KEY]: IMAGE_KEY
3632
3625
  });
3633
- var index$N = "";
3626
+ var index$O = "";
3634
3627
  const useDragAndPinch = createUseGesture([dragAction, pinchAction]);
3635
3628
  function bound(position, min, max) {
3636
3629
  let ret = position;
@@ -3654,7 +3647,7 @@ function rubberbandIfOutOfBounds(position, min, max, dimension, constant = 0.15)
3654
3647
  return +rubberband(position - max, dimension, constant) + max;
3655
3648
  return position;
3656
3649
  }
3657
- const [bem$1e] = createNamespace("image-preview");
3650
+ const [bem$1f] = createNamespace("image-preview");
3658
3651
  const Slide = (props) => {
3659
3652
  const { dragLockRef } = props;
3660
3653
  const controlRef = useRef(null);
@@ -3774,21 +3767,21 @@ const Slide = (props) => {
3774
3767
  const { lazyload } = props;
3775
3768
  const renderPlaceholder = () => {
3776
3769
  if (typeof lazyload === "boolean")
3777
- return getLazyImagePlaceholder(bem$1e);
3778
- return lazyload.placeholder || getLazyImagePlaceholder(bem$1e);
3770
+ return getLazyImagePlaceholder(bem$1f);
3771
+ return lazyload.placeholder || getLazyImagePlaceholder(bem$1f);
3779
3772
  };
3780
3773
  return /* @__PURE__ */ React.createElement("div", {
3781
- className: clsx(bem$1e("slide")),
3774
+ className: cls(bem$1f("slide")),
3782
3775
  onPointerMove: (e) => {
3783
3776
  if (zoom.get() !== 1) {
3784
3777
  e.stopPropagation();
3785
3778
  }
3786
3779
  }
3787
3780
  }, /* @__PURE__ */ React.createElement("div", {
3788
- className: clsx(bem$1e("control")),
3781
+ className: cls(bem$1f("control")),
3789
3782
  ref: controlRef
3790
3783
  }, /* @__PURE__ */ React.createElement(animated.div, {
3791
- className: clsx(bem$1e("image-wrapper")),
3784
+ className: cls(bem$1f("image-wrapper")),
3792
3785
  style: {
3793
3786
  translateX: x,
3794
3787
  translateY: y,
@@ -3808,7 +3801,7 @@ const Slide = (props) => {
3808
3801
  alt: props.image
3809
3802
  }))));
3810
3803
  };
3811
- const [bem$1d] = createNamespace("image-preview");
3804
+ const [bem$1e] = createNamespace("image-preview");
3812
3805
  const Slides = forwardRef((props, ref) => {
3813
3806
  const slideWidth = window.innerWidth + unitToPx(16);
3814
3807
  const [{ x }, api] = useSpring(() => ({
@@ -3870,10 +3863,10 @@ const Slides = forwardRef((props, ref) => {
3870
3863
  }
3871
3864
  );
3872
3865
  return /* @__PURE__ */ React.createElement("div", {
3873
- className: clsx(bem$1d("slides")),
3866
+ className: cls(bem$1e("slides")),
3874
3867
  ...bind()
3875
3868
  }, /* @__PURE__ */ React.createElement(animated.div, {
3876
- className: clsx(bem$1d("slides-inner")),
3869
+ className: cls(bem$1e("slides-inner")),
3877
3870
  style: { x: x.to((x2) => -x2) }
3878
3871
  }, props.images.map((image, idx) => /* @__PURE__ */ React.createElement(Slide, {
3879
3872
  key: `${image}${idx}`,
@@ -3892,7 +3885,7 @@ const Slides = forwardRef((props, ref) => {
3892
3885
  dragLockRef
3893
3886
  }))));
3894
3887
  });
3895
- const [bem$1c] = createNamespace("indicator");
3888
+ const [bem$1d] = createNamespace("indicator");
3896
3889
  const SwiperPagIndicator = React.memo(
3897
3890
  ({ vertical, ...props }) => {
3898
3891
  const dots = [];
@@ -3900,8 +3893,8 @@ const SwiperPagIndicator = React.memo(
3900
3893
  dots.push(
3901
3894
  /* @__PURE__ */ React.createElement("div", {
3902
3895
  key: i,
3903
- className: clsx(
3904
- bem$1c("dot", {
3896
+ className: cls(
3897
+ bem$1d("dot", {
3905
3898
  active: props.current === i
3906
3899
  })
3907
3900
  )
@@ -3909,12 +3902,12 @@ const SwiperPagIndicator = React.memo(
3909
3902
  );
3910
3903
  }
3911
3904
  return /* @__PURE__ */ React.createElement("div", {
3912
- className: clsx(props.className, bem$1c({ vertical })),
3905
+ className: cls(props.className, bem$1d({ vertical })),
3913
3906
  style: props.style
3914
3907
  }, dots);
3915
3908
  }
3916
3909
  );
3917
- const [bem$1b] = createNamespace("image-preview");
3910
+ const [bem$1c] = createNamespace("image-preview");
3918
3911
  const ImagePreview$1 = React.forwardRef(
3919
3912
  (p, ref) => {
3920
3913
  const props = mergeProps(p, {
@@ -3946,7 +3939,7 @@ const ImagePreview$1 = React.forwardRef(
3946
3939
  (_a = props.onClose) == null ? void 0 : _a.call(props, { url: currentImage, index: active });
3947
3940
  };
3948
3941
  const renderContent = () => /* @__PURE__ */ React.createElement("div", {
3949
- className: clsx(bem$1b("content"))
3942
+ className: cls(bem$1c("content"))
3950
3943
  }, props.images && /* @__PURE__ */ React.createElement(Slides, {
3951
3944
  ref: slidesRef,
3952
3945
  defaultIndex: props.startPosition,
@@ -3963,7 +3956,7 @@ const ImagePreview$1 = React.forwardRef(
3963
3956
  const renderClose = () => {
3964
3957
  if (props.closeable) {
3965
3958
  return React.cloneElement(props.closeIcon, {
3966
- className: clsx(bem$1b("close-icon", props.closeIconPosition)),
3959
+ className: cls(bem$1c("close-icon", props.closeIconPosition)),
3967
3960
  onClick: onClose
3968
3961
  });
3969
3962
  }
@@ -3972,7 +3965,7 @@ const ImagePreview$1 = React.forwardRef(
3972
3965
  const renderIndex = () => {
3973
3966
  if (props.showIndex) {
3974
3967
  return /* @__PURE__ */ React.createElement("div", {
3975
- className: clsx(bem$1b("index"))
3968
+ className: cls(bem$1c("index"))
3976
3969
  }, props.indexRender ? props.indexRender({ index: active, len: props.images.length }) : `${active + 1} / ${props.images.length}`);
3977
3970
  }
3978
3971
  return null;
@@ -3980,7 +3973,7 @@ const ImagePreview$1 = React.forwardRef(
3980
3973
  const renderIndicator = () => {
3981
3974
  if (props.showIndicators) {
3982
3975
  return /* @__PURE__ */ React.createElement("div", {
3983
- className: clsx(bem$1b("indicator"))
3976
+ className: cls(bem$1c("indicator"))
3984
3977
  }, /* @__PURE__ */ React.createElement(SwiperPagIndicator, {
3985
3978
  total: props.images.length,
3986
3979
  current: active
@@ -3996,8 +3989,8 @@ const ImagePreview$1 = React.forwardRef(
3996
3989
  }
3997
3990
  }));
3998
3991
  return /* @__PURE__ */ React.createElement(Popup, {
3999
- className: clsx(bem$1b(), props.className),
4000
- overlayClass: clsx(bem$1b("overlay")),
3992
+ className: cls(bem$1c(), props.className),
3993
+ overlayClass: cls(bem$1c("overlay")),
4001
3994
  ...pick(props, [
4002
3995
  "visible",
4003
3996
  "overlayStyle",
@@ -4064,7 +4057,7 @@ const open = (props) => {
4064
4057
  const ImagePreview = Object.assign(ImagePreview$1, {
4065
4058
  open
4066
4059
  });
4067
- var index$M = "";
4060
+ var index$N = "";
4068
4061
  const prefix = "rv-empty-network-";
4069
4062
  const renderStop = (color, offset, opacity) => /* @__PURE__ */ React.createElement("stop", {
4070
4063
  stopColor: color,
@@ -4182,7 +4175,7 @@ const Network = /* @__PURE__ */ React.createElement("svg", {
4182
4175
  rx: "1.114"
4183
4176
  }))));
4184
4177
  const PRESET_IMAGES = ["error", "search", "default"];
4185
- const [bem$1a] = createNamespace("empty");
4178
+ const [bem$1b] = createNamespace("empty");
4186
4179
  const Empty = (p) => {
4187
4180
  const props = mergeProps(p, {
4188
4181
  image: "default"
@@ -4206,7 +4199,7 @@ const Empty = (p) => {
4206
4199
  const renderDescription = () => {
4207
4200
  if (props.description) {
4208
4201
  return /* @__PURE__ */ React.createElement("div", {
4209
- className: clsx(bem$1a("description"))
4202
+ className: cls(bem$1b("description"))
4210
4203
  }, props.description);
4211
4204
  }
4212
4205
  return null;
@@ -4214,21 +4207,21 @@ const Empty = (p) => {
4214
4207
  const renderBottom = () => {
4215
4208
  if (props.children) {
4216
4209
  return /* @__PURE__ */ React.createElement("div", {
4217
- className: clsx(bem$1a("bottom"))
4210
+ className: cls(bem$1b("bottom"))
4218
4211
  }, props.children);
4219
4212
  }
4220
4213
  return null;
4221
4214
  };
4222
4215
  return /* @__PURE__ */ React.createElement("div", {
4223
- className: clsx(props.className, bem$1a()),
4216
+ className: cls(props.className, bem$1b()),
4224
4217
  style: props.style
4225
4218
  }, /* @__PURE__ */ React.createElement("div", {
4226
- className: clsx(bem$1a("image")),
4219
+ className: cls(bem$1b("image")),
4227
4220
  style: getSizeStyle(props.imageSize)
4228
4221
  }, renderImage()), renderDescription(), renderBottom());
4229
4222
  };
4230
- var index$L = "";
4231
- const [bem$19] = createNamespace("notify");
4223
+ var index$M = "";
4224
+ const [bem$1a] = createNamespace("notify");
4232
4225
  const Notify = ({
4233
4226
  children,
4234
4227
  ...p
@@ -4254,7 +4247,7 @@ const Notify = ({
4254
4247
  onClosed: props.onClosed,
4255
4248
  teleport: props.teleport
4256
4249
  }, /* @__PURE__ */ React.createElement("div", {
4257
- className: clsx(bem$19([props.type]), props.className)
4250
+ className: cls(bem$1a([props.type]), props.className)
4258
4251
  }, children || props.message));
4259
4252
  };
4260
4253
  let lockCount = 0;
@@ -4365,10 +4358,10 @@ const exportNotifyNamespace = Object.assign(Notify, {
4365
4358
  resetDefaultOptions,
4366
4359
  clear
4367
4360
  });
4368
- var index$K = "";
4361
+ var index$L = "";
4369
4362
  const DEFAULT_HEAD_HEIGHT = 50;
4370
4363
  const TEXT_STATUS = ["pulling", "loosing", "success"];
4371
- const [bem$18] = createNamespace("pull-refresh");
4364
+ const [bem$19] = createNamespace("pull-refresh");
4372
4365
  const PullRefresh = (p) => {
4373
4366
  const props = mergeProps(p, {
4374
4367
  headHeight: 50,
@@ -4440,7 +4433,7 @@ const PullRefresh = (p) => {
4440
4433
  nodes.push(
4441
4434
  /* @__PURE__ */ React.createElement("div", {
4442
4435
  key: "text",
4443
- className: clsx(bem$18("text"))
4436
+ className: cls(bem$19("text"))
4444
4437
  }, getStatusText())
4445
4438
  );
4446
4439
  }
@@ -4448,7 +4441,7 @@ const PullRefresh = (p) => {
4448
4441
  nodes.push(
4449
4442
  /* @__PURE__ */ React.createElement(Loading, {
4450
4443
  key: "loading",
4451
- className: clsx(bem$18("loading"))
4444
+ className: cls(bem$19("loading"))
4452
4445
  }, getStatusText())
4453
4446
  );
4454
4447
  }
@@ -4537,21 +4530,21 @@ const PullRefresh = (p) => {
4537
4530
  );
4538
4531
  return /* @__PURE__ */ React.createElement("div", {
4539
4532
  ref: root2,
4540
- className: clsx(props.className, bem$18()),
4533
+ className: cls(props.className, bem$19()),
4541
4534
  style: props.style
4542
4535
  }, /* @__PURE__ */ React.createElement("div", {
4543
4536
  ref: track,
4544
- className: clsx(bem$18("track")),
4537
+ className: cls(bem$19("track")),
4545
4538
  style: trackStyle,
4546
4539
  onTouchStart,
4547
4540
  onTouchEnd,
4548
4541
  onTouchCancel: onTouchEnd
4549
4542
  }, /* @__PURE__ */ React.createElement("div", {
4550
- className: clsx(bem$18("head")),
4543
+ className: cls(bem$19("head")),
4551
4544
  style: getHeadStyle()
4552
4545
  }, renderStatus()), props.children));
4553
4546
  };
4554
- var index$J = "";
4547
+ var index$K = "";
4555
4548
  function isWindow$1(val) {
4556
4549
  return val === window;
4557
4550
  }
@@ -4581,7 +4574,7 @@ const useRect = (elementRef) => {
4581
4574
  height: 0
4582
4575
  };
4583
4576
  };
4584
- const [bem$17] = createNamespace("swipe-cell");
4577
+ const [bem$18] = createNamespace("swipe-cell");
4585
4578
  const SwipeCell = forwardRef(
4586
4579
  (p, instanceRef) => {
4587
4580
  const props = mergeProps(p, {
@@ -4706,7 +4699,7 @@ const SwipeCell = forwardRef(
4706
4699
  if (props[`${side}Action`]) {
4707
4700
  return /* @__PURE__ */ React.createElement("div", {
4708
4701
  ref: measuredRef,
4709
- className: clsx(bem$17(side)),
4702
+ className: cls(bem$18(side)),
4710
4703
  onClick: getClickHandler(side, true)
4711
4704
  }, props[`${side}Action`]);
4712
4705
  }
@@ -4727,18 +4720,18 @@ const SwipeCell = forwardRef(
4727
4720
  });
4728
4721
  return /* @__PURE__ */ React.createElement("div", {
4729
4722
  ref: root2,
4730
- className: clsx(bem$17()),
4723
+ className: cls(bem$18()),
4731
4724
  onClick: getClickHandler("cell"),
4732
4725
  onTouchStart,
4733
4726
  onTouchEnd,
4734
4727
  onTouchCancel: onTouchEnd
4735
4728
  }, /* @__PURE__ */ React.createElement("div", {
4736
- className: clsx(bem$17("wrapper")),
4729
+ className: cls(bem$18("wrapper")),
4737
4730
  style: wrapperStyle
4738
4731
  }, renderSideContent("left", leftRef), props.children, renderSideContent("right", rightRef)));
4739
4732
  }
4740
4733
  );
4741
- var index$I = "";
4734
+ var index$J = "";
4742
4735
  const PRESET_ICONS = [
4743
4736
  "qq",
4744
4737
  "link",
@@ -4755,7 +4748,7 @@ function getIconURL(icon) {
4755
4748
  }
4756
4749
  return icon;
4757
4750
  }
4758
- const [bem$16] = createNamespace("share-sheet");
4751
+ const [bem$17] = createNamespace("share-sheet");
4759
4752
  const ShareSheet = (p) => {
4760
4753
  const props = mergeProps(p, {
4761
4754
  options: [],
@@ -4777,11 +4770,11 @@ const ShareSheet = (p) => {
4777
4770
  const { title, description } = props;
4778
4771
  if (title || description) {
4779
4772
  return /* @__PURE__ */ React.createElement("div", {
4780
- className: clsx(bem$16("header"))
4773
+ className: cls(bem$17("header"))
4781
4774
  }, title && /* @__PURE__ */ React.createElement("div", {
4782
- className: clsx(bem$16("title"))
4775
+ className: cls(bem$17("title"))
4783
4776
  }, title), description && /* @__PURE__ */ React.createElement("div", {
4784
- className: clsx(bem$16("description"))
4777
+ className: cls(bem$17("description"))
4785
4778
  }, description));
4786
4779
  }
4787
4780
  return null;
@@ -4792,21 +4785,21 @@ const ShareSheet = (p) => {
4792
4785
  key: index2,
4793
4786
  role: "button",
4794
4787
  tabIndex: 0,
4795
- className: clsx([bem$16("option"), className]),
4788
+ className: cls([bem$17("option"), className]),
4796
4789
  onClick: () => onSelect(option, index2)
4797
4790
  }, typeof icon === "string" ? /* @__PURE__ */ React.createElement("img", {
4798
4791
  alt: "share sheet icon",
4799
4792
  src: getIconURL(icon),
4800
- className: clsx(bem$16("icon"))
4793
+ className: cls(bem$17("icon"))
4801
4794
  }) : icon, name && /* @__PURE__ */ React.createElement("span", {
4802
- className: clsx(bem$16("name"))
4795
+ className: cls(bem$17("name"))
4803
4796
  }, name), description && /* @__PURE__ */ React.createElement("span", {
4804
- className: clsx(bem$16("option-description"))
4797
+ className: cls(bem$17("option-description"))
4805
4798
  }, description));
4806
4799
  };
4807
4800
  const renderOptions = (options, border, key) => /* @__PURE__ */ React.createElement("div", {
4808
4801
  key,
4809
- className: clsx(bem$16("options", { border }))
4802
+ className: cls(bem$17("options", { border }))
4810
4803
  }, options.map(renderOption));
4811
4804
  const renderRows = () => {
4812
4805
  const { options } = props;
@@ -4822,7 +4815,7 @@ const ShareSheet = (p) => {
4822
4815
  if (cancelText) {
4823
4816
  return /* @__PURE__ */ React.createElement("button", {
4824
4817
  type: "button",
4825
- className: clsx(bem$16("cancel")),
4818
+ className: cls(bem$17("cancel")),
4826
4819
  onClick: onCancel
4827
4820
  }, cancelText);
4828
4821
  }
@@ -4830,7 +4823,7 @@ const ShareSheet = (p) => {
4830
4823
  };
4831
4824
  return /* @__PURE__ */ React.createElement(Popup, {
4832
4825
  round: true,
4833
- className: clsx(bem$16()),
4826
+ className: cls(bem$17()),
4834
4827
  position: "bottom",
4835
4828
  onClose: onCancel,
4836
4829
  ...pick(props, [
@@ -4846,8 +4839,8 @@ const ShareSheet = (p) => {
4846
4839
  ])
4847
4840
  }, renderHeader(), renderRows(), renderCancelButton());
4848
4841
  };
4849
- var index$H = "";
4850
- const [bem$15] = createNamespace("notice-bar");
4842
+ var index$I = "";
4843
+ const [bem$16] = createNamespace("notice-bar");
4851
4844
  const NoticeBar = forwardRef((p, ref) => {
4852
4845
  const props = mergeProps(p, {
4853
4846
  delay: 1,
@@ -4878,7 +4871,7 @@ const NoticeBar = forwardRef((p, ref) => {
4878
4871
  const renderLeftIcon = () => {
4879
4872
  if (props.leftIcon) {
4880
4873
  return React.cloneElement(props.leftIcon, {
4881
- className: clsx(bem$15("left-icon"))
4874
+ className: cls(bem$16("left-icon"))
4882
4875
  });
4883
4876
  }
4884
4877
  return null;
@@ -4907,7 +4900,7 @@ const NoticeBar = forwardRef((p, ref) => {
4907
4900
  const finalRightIcon = props.rightIcon || getRightIcon();
4908
4901
  if (finalRightIcon) {
4909
4902
  return React.cloneElement(finalRightIcon, {
4910
- className: clsx(bem$15("right-icon")),
4903
+ className: cls(bem$16("right-icon")),
4911
4904
  onClick: onClickRightIcon
4912
4905
  });
4913
4906
  }
@@ -4937,10 +4930,10 @@ const NoticeBar = forwardRef((p, ref) => {
4937
4930
  transitionDuration: `${state.duration}s`
4938
4931
  };
4939
4932
  return /* @__PURE__ */ React.createElement("div", {
4940
- className: clsx(bem$15("wrap")),
4933
+ className: cls(bem$16("wrap")),
4941
4934
  ref: wrapRef
4942
4935
  }, /* @__PURE__ */ React.createElement("div", {
4943
- className: clsx(bem$15("content"), { "rv-ellipsis": ellipsis }),
4936
+ className: cls(bem$16("content"), { "rv-ellipsis": ellipsis }),
4944
4937
  ref: contentRef,
4945
4938
  style,
4946
4939
  onTransitionEnd
@@ -4985,12 +4978,12 @@ const NoticeBar = forwardRef((p, ref) => {
4985
4978
  }));
4986
4979
  return state.show && /* @__PURE__ */ React.createElement("div", {
4987
4980
  role: "alert",
4988
- className: clsx(bem$15({ wrapable }), props.className),
4981
+ className: cls(bem$16({ wrapable }), props.className),
4989
4982
  style: { color, background, ...props.style },
4990
4983
  onClick: props.onClick
4991
4984
  }, renderLeftIcon(), renderMarquee(), renderRightIcon());
4992
4985
  });
4993
- var index$G = "";
4986
+ var index$H = "";
4994
4987
  const useLazyEffect = (effect, deps) => {
4995
4988
  const [c, setC] = useState(0);
4996
4989
  useEffect(() => {
@@ -5011,7 +5004,7 @@ const popupProps = [
5011
5004
  "onOpened",
5012
5005
  "onClickOverlay"
5013
5006
  ];
5014
- const [bem$14] = createNamespace("popover");
5007
+ const [bem$15] = createNamespace("popover");
5015
5008
  const Popover = forwardRef(
5016
5009
  ({ children, className, ...p }, ref) => {
5017
5010
  const props = mergeProps(p, {
@@ -5098,16 +5091,16 @@ const Popover = forwardRef(
5098
5091
  const { icon, text, color, disabled, className: actionClassname } = action;
5099
5092
  return /* @__PURE__ */ React.createElement("div", {
5100
5093
  key: index2,
5101
- className: clsx(
5102
- bem$14("action", { disabled, "with-icon": icon }),
5094
+ className: cls(
5095
+ bem$15("action", { disabled, "with-icon": icon }),
5103
5096
  actionClassname
5104
5097
  ),
5105
5098
  style: { color },
5106
5099
  onClick: () => onClickAction(action, index2)
5107
5100
  }, icon ? React.cloneElement(icon, {
5108
- className: clsx(bem$14("action-icon"))
5101
+ className: cls(bem$15("action-icon"))
5109
5102
  }) : null, /* @__PURE__ */ React.createElement("div", {
5110
- className: clsx(bem$14("action-text"), BORDER_BOTTOM)
5103
+ className: cls(bem$15("action-text"), BORDER_BOTTOM)
5111
5104
  }, text));
5112
5105
  };
5113
5106
  useEffect(() => {
@@ -5148,12 +5141,12 @@ const Popover = forwardRef(
5148
5141
  useClickAway(wrapperRef, onClickAway, "touchstart");
5149
5142
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", {
5150
5143
  ref: wrapperRef,
5151
- className: clsx(bem$14("wrapper")),
5144
+ className: cls(bem$15("wrapper")),
5152
5145
  onClick: onClickWrapper
5153
5146
  }, props.reference), /* @__PURE__ */ React.createElement(Popup, {
5154
5147
  ref: popoverRef,
5155
5148
  visible,
5156
- className: clsx(className, bem$14([props.theme])),
5149
+ className: cls(className, bem$15([props.theme])),
5157
5150
  position: "",
5158
5151
  transition: "rv-zoom",
5159
5152
  lockScroll: false,
@@ -5161,14 +5154,14 @@ const Popover = forwardRef(
5161
5154
  onClose: onInternalClose,
5162
5155
  ...pick(props, popupProps)
5163
5156
  }, /* @__PURE__ */ React.createElement("div", {
5164
- className: clsx(bem$14("arrow"))
5157
+ className: cls(bem$15("arrow"))
5165
5158
  }), /* @__PURE__ */ React.createElement("div", {
5166
5159
  role: "menu",
5167
- className: clsx(bem$14("content"))
5160
+ className: cls(bem$15("content"))
5168
5161
  }, children || props.actions.map(renderAction))));
5169
5162
  }
5170
5163
  );
5171
- var index$F = "";
5164
+ var index$G = "";
5172
5165
  function useLockFn(fn) {
5173
5166
  const lockRef = useRef(false);
5174
5167
  return useCallback(
@@ -5334,7 +5327,7 @@ function useThrottleFn(fn, options) {
5334
5327
  flush: throttled.flush
5335
5328
  };
5336
5329
  }
5337
- const [bem$13] = createNamespace("list");
5330
+ const [bem$14] = createNamespace("list");
5338
5331
  function isWindow(element) {
5339
5332
  return element === window;
5340
5333
  }
@@ -5412,7 +5405,7 @@ const LoadMore = React.forwardRef((p, ref) => {
5412
5405
  const renderDone = () => {
5413
5406
  if (props.finishedText) {
5414
5407
  return /* @__PURE__ */ React.createElement("div", {
5415
- className: clsx(bem$13("finished"))
5408
+ className: cls(bem$14("finished"))
5416
5409
  }, props.finishedText);
5417
5410
  }
5418
5411
  return null;
@@ -5423,14 +5416,14 @@ const LoadMore = React.forwardRef((p, ref) => {
5423
5416
  return props.errorText(retry);
5424
5417
  return /* @__PURE__ */ React.createElement("div", {
5425
5418
  onClick: retry,
5426
- className: clsx(bem$13("error"))
5419
+ className: cls(bem$14("error"))
5427
5420
  }, props.errorText);
5428
5421
  }
5429
5422
  return null;
5430
5423
  };
5431
5424
  const renderLoading = () => {
5432
5425
  return /* @__PURE__ */ React.createElement(Loading, {
5433
- className: clsx(bem$13("loading")),
5426
+ className: cls(bem$14("loading")),
5434
5427
  size: 16
5435
5428
  }, props.loadingText || locale.loading);
5436
5429
  };
@@ -5443,10 +5436,10 @@ const LoadMore = React.forwardRef((p, ref) => {
5443
5436
  };
5444
5437
  React.useImperativeHandle(ref, () => ({ check }));
5445
5438
  return /* @__PURE__ */ React.createElement("div", {
5446
- className: clsx(props.className, bem$13()),
5439
+ className: cls(props.className, bem$14()),
5447
5440
  style: props.style
5448
5441
  }, props.children, /* @__PURE__ */ React.createElement("div", {
5449
- className: clsx(props.className, bem$13("loadmore")),
5442
+ className: cls(props.className, bem$14("loadmore")),
5450
5443
  ref: elementRef
5451
5444
  }, renderPlaceholder()));
5452
5445
  });
@@ -5456,7 +5449,7 @@ const List = forwardRef((p, ref) => {
5456
5449
  });
5457
5450
  return /* @__PURE__ */ React.createElement(LoadMore, {
5458
5451
  ref,
5459
- className: clsx(props.className),
5452
+ className: cls(props.className),
5460
5453
  style: props.style,
5461
5454
  onLoad: props.onLoad,
5462
5455
  threshold: props.offset,
@@ -5466,8 +5459,8 @@ const List = forwardRef((p, ref) => {
5466
5459
  errorText: props.errorText
5467
5460
  }, props.children);
5468
5461
  });
5469
- var index$E = "";
5470
- const [bem$12] = createNamespace("steps");
5462
+ var index$F = "";
5463
+ const [bem$13] = createNamespace("steps");
5471
5464
  const Steps$1 = ({ children, className, style, ...p }) => {
5472
5465
  const props = mergeProps(p, {
5473
5466
  active: 0,
@@ -5475,10 +5468,10 @@ const Steps$1 = ({ children, className, style, ...p }) => {
5475
5468
  activeIcon: /* @__PURE__ */ React.createElement(Checked, null)
5476
5469
  });
5477
5470
  return /* @__PURE__ */ React.createElement("div", {
5478
- className: clsx(className, bem$12([props.direction])),
5471
+ className: cls(className, bem$13([props.direction])),
5479
5472
  style
5480
5473
  }, /* @__PURE__ */ React.createElement("div", {
5481
- className: clsx(bem$12("items"))
5474
+ className: cls(bem$13("items"))
5482
5475
  }, React.Children.toArray(children).filter(Boolean).map(
5483
5476
  (child, index2) => React.cloneElement(child, {
5484
5477
  index: index2,
@@ -5486,7 +5479,7 @@ const Steps$1 = ({ children, className, style, ...p }) => {
5486
5479
  })
5487
5480
  )));
5488
5481
  };
5489
- const [bem$11] = createNamespace("step");
5482
+ const [bem$12] = createNamespace("step");
5490
5483
  const StepsItem = ({ children, ...props }) => {
5491
5484
  const { index: index2, parent: parentProps } = props;
5492
5485
  const getStatus = () => {
@@ -5535,7 +5528,7 @@ const StepsItem = ({ children, ...props }) => {
5535
5528
  if (isActive()) {
5536
5529
  if (activeIcon) {
5537
5530
  return React.cloneElement(activeIcon, {
5538
- className: clsx(bem$11("icon", "active")),
5531
+ className: cls(bem$12("icon", "active")),
5539
5532
  color: activeColor,
5540
5533
  style: {
5541
5534
  color: activeColor
@@ -5545,7 +5538,7 @@ const StepsItem = ({ children, ...props }) => {
5545
5538
  }
5546
5539
  if (getStatus() === "finish" && finishIcon) {
5547
5540
  return React.cloneElement(finishIcon, {
5548
- className: clsx(bem$11("icon", "finish")),
5541
+ className: cls(bem$12("icon", "finish")),
5549
5542
  color: activeColor,
5550
5543
  style: {
5551
5544
  color: activeColor
@@ -5554,7 +5547,7 @@ const StepsItem = ({ children, ...props }) => {
5554
5547
  }
5555
5548
  if (inactiveIcon) {
5556
5549
  return React.cloneElement(inactiveIcon, {
5557
- className: clsx(bem$11("icon")),
5550
+ className: cls(bem$12("icon")),
5558
5551
  color: activeColor,
5559
5552
  style: {
5560
5553
  color: activeColor
@@ -5562,33 +5555,33 @@ const StepsItem = ({ children, ...props }) => {
5562
5555
  });
5563
5556
  }
5564
5557
  return /* @__PURE__ */ React.createElement("i", {
5565
- className: clsx(bem$11("circle")),
5558
+ className: cls(bem$12("circle")),
5566
5559
  style: lineStyle
5567
5560
  });
5568
5561
  };
5569
5562
  const status = getStatus();
5570
5563
  return /* @__PURE__ */ React.createElement("div", {
5571
5564
  style: props.style,
5572
- className: clsx(
5565
+ className: cls(
5573
5566
  props.className,
5574
5567
  BORDER,
5575
- bem$11([parentProps.direction, { [status]: status }])
5568
+ bem$12([parentProps.direction, { [status]: status }])
5576
5569
  )
5577
5570
  }, /* @__PURE__ */ React.createElement("div", {
5578
- className: clsx(bem$11("title", { active: isActive() })),
5571
+ className: cls(bem$12("title", { active: isActive() })),
5579
5572
  style: titleStyle,
5580
5573
  onClick: onClickStep
5581
5574
  }, children), /* @__PURE__ */ React.createElement("div", {
5582
- className: clsx(bem$11("circle-container")),
5575
+ className: cls(bem$12("circle-container")),
5583
5576
  onClick: onClickStep
5584
5577
  }, renderCircle()), /* @__PURE__ */ React.createElement("div", {
5585
- className: clsx(bem$11("line")),
5578
+ className: cls(bem$12("line")),
5586
5579
  style: lineStyle
5587
5580
  }));
5588
5581
  };
5589
5582
  const Steps = Object.assign(Steps$1, { Item: StepsItem });
5590
- var index$D = "";
5591
- const [bem$10] = createNamespace("toast");
5583
+ var index$E = "";
5584
+ const [bem$11] = createNamespace("toast");
5592
5585
  const Toast$1 = (p) => {
5593
5586
  const props = mergeProps(p, {
5594
5587
  type: "info",
@@ -5621,13 +5614,13 @@ const Toast$1 = (p) => {
5621
5614
  if (hasIcon) {
5622
5615
  const buildInIcon = type === "fail" ? /* @__PURE__ */ React.createElement(Cross, null) : /* @__PURE__ */ React.createElement(Success, null);
5623
5616
  return React.cloneElement(icon || buildInIcon, {
5624
- className: clsx(bem$10("icon")),
5617
+ className: cls(bem$11("icon")),
5625
5618
  fontSize: iconSize
5626
5619
  });
5627
5620
  }
5628
5621
  if (type === "loading") {
5629
5622
  return /* @__PURE__ */ React.createElement(Loading, {
5630
- className: clsx(bem$10("loading")),
5623
+ className: cls(bem$11("loading")),
5631
5624
  type: loadingType
5632
5625
  });
5633
5626
  }
@@ -5637,14 +5630,14 @@ const Toast$1 = (p) => {
5637
5630
  const { message } = props;
5638
5631
  if (isDef(message) && message !== "") {
5639
5632
  return /* @__PURE__ */ React.createElement("div", {
5640
- className: clsx(bem$10("info"))
5633
+ className: cls(bem$11("info"))
5641
5634
  }, message);
5642
5635
  }
5643
5636
  return null;
5644
5637
  };
5645
5638
  return /* @__PURE__ */ React.createElement(Popup, {
5646
- className: clsx([
5647
- bem$10([props.position, { [props.type]: !props.icon }]),
5639
+ className: cls([
5640
+ bem$11([props.position, { [props.type]: !props.icon }]),
5648
5641
  props.className
5649
5642
  ]),
5650
5643
  visible: props.visible,
@@ -5792,8 +5785,8 @@ ToastObj.resetDefaultOptions = (type) => {
5792
5785
  }
5793
5786
  };
5794
5787
  const Toast = ToastObj;
5795
- var index$C = "";
5796
- const [bem$$] = createNamespace("action-sheet");
5788
+ var index$D = "";
5789
+ const [bem$10] = createNamespace("action-sheet");
5797
5790
  const ActionSheet = (p) => {
5798
5791
  const props = mergeProps(p, {
5799
5792
  closeable: true,
@@ -5813,9 +5806,9 @@ const ActionSheet = (p) => {
5813
5806
  if (!props.title)
5814
5807
  return null;
5815
5808
  return /* @__PURE__ */ React.createElement("div", {
5816
- className: clsx(bem$$("header"))
5809
+ className: cls(bem$10("header"))
5817
5810
  }, props.title, props.closeable && React.cloneElement(props.closeIcon, {
5818
- className: clsx(bem$$("clear")),
5811
+ className: cls(bem$10("clear")),
5819
5812
  onClick: onCancel
5820
5813
  }));
5821
5814
  };
@@ -5825,12 +5818,12 @@ const ActionSheet = (p) => {
5825
5818
  return [
5826
5819
  /* @__PURE__ */ React.createElement("div", {
5827
5820
  key: "cancel-gap",
5828
- className: clsx(bem$$("gap"))
5821
+ className: cls(bem$10("gap"))
5829
5822
  }),
5830
5823
  /* @__PURE__ */ React.createElement("button", {
5831
5824
  key: "cancel-btn",
5832
5825
  type: "button",
5833
- className: clsx(bem$$("cancel")),
5826
+ className: cls(bem$10("cancel")),
5834
5827
  onClick: onCancel
5835
5828
  }, props.cancelText)
5836
5829
  ];
@@ -5847,15 +5840,15 @@ const ActionSheet = (p) => {
5847
5840
  style
5848
5841
  } = item;
5849
5842
  const Content = loading ? /* @__PURE__ */ React.createElement(Loading, {
5850
- className: clsx(bem$$("loading-icon"))
5843
+ className: cls(bem$10("loading-icon"))
5851
5844
  }) : [
5852
5845
  /* @__PURE__ */ React.createElement("span", {
5853
5846
  key: `${index2}-1`,
5854
- className: clsx(bem$$("name"))
5847
+ className: cls(bem$10("name"))
5855
5848
  }, name),
5856
5849
  subname && /* @__PURE__ */ React.createElement("div", {
5857
5850
  key: `${index2}-2`,
5858
- className: clsx(bem$$("subname"))
5851
+ className: cls(bem$10("subname"))
5859
5852
  }, subname)
5860
5853
  ];
5861
5854
  const onClick = () => {
@@ -5877,14 +5870,14 @@ const ActionSheet = (p) => {
5877
5870
  key: index2,
5878
5871
  type: "button",
5879
5872
  style: { color, ...style },
5880
- className: clsx(bem$$("item", { loading, disabled }), className),
5873
+ className: cls(bem$10("item", { loading, disabled }), className),
5881
5874
  onClick
5882
5875
  }, Content);
5883
5876
  };
5884
5877
  const renderDescription = () => {
5885
5878
  if (props.description) {
5886
5879
  return /* @__PURE__ */ React.createElement("div", {
5887
- className: clsx(bem$$("description"))
5880
+ className: cls(bem$10("description"))
5888
5881
  }, props.description);
5889
5882
  }
5890
5883
  return null;
@@ -5897,19 +5890,19 @@ const ActionSheet = (p) => {
5897
5890
  };
5898
5891
  return /* @__PURE__ */ React.createElement(Popup, {
5899
5892
  visible: props.visible,
5900
- className: clsx(bem$$("wrapper")),
5893
+ className: cls(bem$10("wrapper")),
5901
5894
  position: "bottom",
5902
5895
  ...pick(props, sharedPopupProps),
5903
5896
  onClose: onCancel,
5904
5897
  closeable: false
5905
5898
  }, /* @__PURE__ */ React.createElement("div", {
5906
- className: clsx(bem$$(), props.className),
5899
+ className: cls(bem$10(), props.className),
5907
5900
  style: props.style
5908
5901
  }, renderHeader(), renderDescription(), /* @__PURE__ */ React.createElement("div", {
5909
- className: clsx(bem$$("content"))
5902
+ className: cls(bem$10("content"))
5910
5903
  }, renderOptions(), props.children), renderCancel()));
5911
5904
  };
5912
- var index$B = "";
5905
+ var index$C = "";
5913
5906
  function useRefs() {
5914
5907
  const refs = React.useRef([]);
5915
5908
  const setRefs = React.useCallback(
@@ -5942,7 +5935,7 @@ const useMergedState = (option) => {
5942
5935
  }
5943
5936
  return [mergedValue, triggerChange];
5944
5937
  };
5945
- const [bem$_] = createNamespace("dropdown-menu");
5938
+ const [bem$$] = createNamespace("dropdown-menu");
5946
5939
  const DropdownMenu$1 = forwardRef(
5947
5940
  (p, ref) => {
5948
5941
  const props = mergeProps(p, {
@@ -6047,15 +6040,15 @@ const DropdownMenu$1 = forwardRef(
6047
6040
  key: index2,
6048
6041
  role: "button",
6049
6042
  tabIndex: disabled ? -1 : 0,
6050
- className: clsx(bem$_("item", { disabled })),
6043
+ className: cls(bem$$("item", { disabled })),
6051
6044
  onClick: () => {
6052
6045
  if (!disabled) {
6053
6046
  toggleItem(index2);
6054
6047
  }
6055
6048
  }
6056
6049
  }, /* @__PURE__ */ React.createElement("span", {
6057
- className: clsx(
6058
- bem$_("title", {
6050
+ className: cls(
6051
+ bem$$("title", {
6059
6052
  down: showPopup === (props.direction === "down"),
6060
6053
  active: showPopup
6061
6054
  }),
@@ -6101,12 +6094,12 @@ const DropdownMenu$1 = forwardRef(
6101
6094
  value: { props, value: innerValue, onChange: onInnerChange, close }
6102
6095
  }, /* @__PURE__ */ React.createElement("div", {
6103
6096
  ref: root2,
6104
- className: clsx(bem$_(), props.className),
6097
+ className: cls(bem$$(), props.className),
6105
6098
  style: { ...props.style }
6106
6099
  }, /* @__PURE__ */ React.createElement("div", {
6107
6100
  ref: barRef,
6108
6101
  style: barStyle(),
6109
- className: clsx(bem$_("bar", { opened }))
6102
+ className: cls(bem$$("bar", { opened }))
6110
6103
  }, Children.toArray(props.children).filter(Boolean).map((child, index2) => {
6111
6104
  return renderTitle(child.props, index2);
6112
6105
  })), Children.toArray(props.children).filter(Boolean).map(
@@ -6133,7 +6126,7 @@ const inheritPropsKey = [
6133
6126
  function inheritProps(parentProps, props) {
6134
6127
  return { ...parentProps, ...props };
6135
6128
  }
6136
- const [bem$Z] = createNamespace("dropdown-item");
6129
+ const [bem$_] = createNamespace("dropdown-item");
6137
6130
  const DropdownMenuItem = forwardRef(({ options = [], placeholder = "\u8BF7\u9009\u62E9", ...props }, ref) => {
6138
6131
  var _a;
6139
6132
  const [state, setState] = useSetState({
@@ -6191,11 +6184,11 @@ const DropdownMenuItem = forwardRef(({ options = [], placeholder = "\u8BF7\u9009
6191
6184
  key: option.value,
6192
6185
  icon: option.icon,
6193
6186
  title: option.text,
6194
- className: clsx(bem$Z("option", { active })),
6187
+ className: cls(bem$_("option", { active })),
6195
6188
  style: { color: active ? activeColor : "" },
6196
6189
  onClick
6197
6190
  }, active && (activeIcon || /* @__PURE__ */ React.createElement(Success, {
6198
- className: clsx(bem$Z("icon")),
6191
+ className: cls(bem$_("icon")),
6199
6192
  color: activeColor
6200
6193
  })));
6201
6194
  };
@@ -6211,12 +6204,12 @@ const DropdownMenuItem = forwardRef(({ options = [], placeholder = "\u8BF7\u9009
6211
6204
  const attrs = pick(inheritProps(parent.props, props), inheritPropsKey);
6212
6205
  return /* @__PURE__ */ React.createElement("div", {
6213
6206
  style: { ...style, display: state.showWrapper ? "block" : "none" },
6214
- className: clsx(bem$Z([direction])),
6207
+ className: cls(bem$_([direction])),
6215
6208
  onClick: onClickWrapper
6216
6209
  }, /* @__PURE__ */ React.createElement(Popup, {
6217
6210
  ...attrs,
6218
6211
  visible: props.showPopup,
6219
- className: clsx(bem$Z("content")),
6212
+ className: cls(bem$_("content")),
6220
6213
  position: direction === "down" ? "top" : "bottom",
6221
6214
  duration: state.transition ? +duration : 0,
6222
6215
  overlayStyle: { position: "absolute", ...overlayStyle },
@@ -6238,8 +6231,8 @@ const DropdownMenuItem = forwardRef(({ options = [], placeholder = "\u8BF7\u9009
6238
6231
  return renderContent();
6239
6232
  });
6240
6233
  const DropdownMenu = Object.assign(DropdownMenu$1, { Item: DropdownMenuItem });
6241
- var index$A = "";
6242
- const [bem$Y] = createNamespace("search");
6234
+ var index$B = "";
6235
+ const [bem$Z] = createNamespace("search");
6243
6236
  const Search = forwardRef((p, ref) => {
6244
6237
  const props = mergeProps(p, {
6245
6238
  shape: "square",
@@ -6288,7 +6281,7 @@ const Search = forwardRef((p, ref) => {
6288
6281
  const renderLabel = () => {
6289
6282
  if (props.label) {
6290
6283
  return /* @__PURE__ */ React.createElement("div", {
6291
- className: clsx(bem$Y("label"))
6284
+ className: cls(bem$Z("label"))
6292
6285
  }, props.label);
6293
6286
  }
6294
6287
  return null;
@@ -6298,7 +6291,7 @@ const Search = forwardRef((p, ref) => {
6298
6291
  return props.action;
6299
6292
  if (props.showAction) {
6300
6293
  return /* @__PURE__ */ React.createElement("div", {
6301
- className: clsx(bem$Y("action")),
6294
+ className: cls(bem$Z("action")),
6302
6295
  role: "button",
6303
6296
  tabIndex: 0,
6304
6297
  onClick: onCancel
@@ -6343,7 +6336,7 @@ const Search = forwardRef((p, ref) => {
6343
6336
  const renderField = () => {
6344
6337
  return /* @__PURE__ */ React.createElement(FieldNamespace, {
6345
6338
  ref: filedRef,
6346
- className: clsx(bem$Y("field")),
6339
+ className: cls(bem$Z("field")),
6347
6340
  type: "search",
6348
6341
  rows: 1,
6349
6342
  value: value || "",
@@ -6369,17 +6362,17 @@ const Search = forwardRef((p, ref) => {
6369
6362
  blur
6370
6363
  }));
6371
6364
  return /* @__PURE__ */ React.createElement("div", {
6372
- className: clsx(
6365
+ className: cls(
6373
6366
  props.className,
6374
- bem$Y({ "show-action": props.showAction })
6367
+ bem$Z({ "show-action": props.showAction })
6375
6368
  ),
6376
6369
  style: { ...props.style, background: props.background }
6377
6370
  }, /* @__PURE__ */ React.createElement("div", {
6378
- className: clsx(bem$Y("content", props.shape))
6371
+ className: cls(bem$Z("content", props.shape))
6379
6372
  }, renderLabel(), renderField()), renderAction());
6380
6373
  });
6381
- var index$z = "";
6382
- const [bem$X] = createNamespace("sidebar-item");
6374
+ var index$A = "";
6375
+ const [bem$Y] = createNamespace("sidebar-item");
6383
6376
  const SidebarItem = (props) => {
6384
6377
  const { parent, index: index2 } = props;
6385
6378
  const onClick = () => {
@@ -6393,15 +6386,15 @@ const SidebarItem = (props) => {
6393
6386
  const { dot, badge, title, disabled } = props;
6394
6387
  const selected = index2 === parent.getActive();
6395
6388
  return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("a", {
6396
- className: clsx(bem$X({ select: selected, disabled })),
6389
+ className: cls(bem$Y({ select: selected, disabled })),
6397
6390
  onClick
6398
6391
  }, /* @__PURE__ */ React.createElement(Badge, {
6399
6392
  dot,
6400
6393
  content: badge,
6401
- className: clsx(bem$X("text"))
6394
+ className: cls(bem$Y("text"))
6402
6395
  }, title)));
6403
6396
  };
6404
- const [bem$W] = createNamespace("sidebar");
6397
+ const [bem$X] = createNamespace("sidebar");
6405
6398
  const Sidebar$1 = ({
6406
6399
  children,
6407
6400
  className,
@@ -6432,10 +6425,10 @@ const Sidebar$1 = ({
6432
6425
  [children]
6433
6426
  );
6434
6427
  return /* @__PURE__ */ React.createElement("div", {
6435
- className: clsx(className, bem$W("wrapper")),
6428
+ className: cls(className, bem$X("wrapper")),
6436
6429
  style
6437
6430
  }, /* @__PURE__ */ React.createElement("div", {
6438
- className: clsx(props.sideClassName, bem$W()),
6431
+ className: cls(props.sideClassName, bem$X()),
6439
6432
  style: props.sideStyle
6440
6433
  }, validChildren.map(
6441
6434
  (child, index2) => React.cloneElement(child, {
@@ -6448,7 +6441,7 @@ const Sidebar$1 = ({
6448
6441
  )), validChildren.map(
6449
6442
  (child, index2) => {
6450
6443
  return /* @__PURE__ */ React.createElement("div", {
6451
- className: clsx(child.props.contentClassName, bem$W("content")),
6444
+ className: cls(child.props.contentClassName, bem$X("content")),
6452
6445
  key: child.key,
6453
6446
  style: {
6454
6447
  ...child.props.contentStyle,
@@ -6459,9 +6452,9 @@ const Sidebar$1 = ({
6459
6452
  ));
6460
6453
  };
6461
6454
  const Sidebar = Object.assign(Sidebar$1, { Item: SidebarItem });
6455
+ var index$z = "";
6462
6456
  var index$y = "";
6463
- var index$x = "";
6464
- const [bem$V] = createNamespace("sticky");
6457
+ const [bem$W] = createNamespace("sticky");
6465
6458
  const Sticky = (p) => {
6466
6459
  const props = mergeProps(p, {
6467
6460
  offsetTop: 0,
@@ -6565,11 +6558,11 @@ const Sticky = (p) => {
6565
6558
  ref: root2,
6566
6559
  style: rootStyle
6567
6560
  }, /* @__PURE__ */ React.createElement("div", {
6568
- className: clsx(bem$V({ fixed: state.fixed })),
6561
+ className: cls(bem$W({ fixed: state.fixed })),
6569
6562
  style: stickyStyle
6570
6563
  }, props.children));
6571
6564
  };
6572
- const [bem$U] = createNamespace("tab");
6565
+ const [bem$V] = createNamespace("tab");
6573
6566
  const TabsTitle = forwardRef((props, ref) => {
6574
6567
  const {
6575
6568
  type,
@@ -6608,8 +6601,8 @@ const TabsTitle = forwardRef((props, ref) => {
6608
6601
  }, [type, color, disabled, isActive, activeColor, inactiveColor]);
6609
6602
  const renderText = () => {
6610
6603
  const Title2 = /* @__PURE__ */ React.createElement("span", {
6611
- className: clsx(
6612
- bem$U("text", { ellipsis: !props.scrollable && props.type !== "jumbo" })
6604
+ className: cls(
6605
+ bem$V("text", { ellipsis: !props.scrollable && props.type !== "jumbo" })
6613
6606
  ),
6614
6607
  style: {
6615
6608
  backgroundColor: props.type === "capsule" && isActive && color
@@ -6621,7 +6614,7 @@ const TabsTitle = forwardRef((props, ref) => {
6621
6614
  return props.title;
6622
6615
  })());
6623
6616
  const Description2 = props.type === "jumbo" && !!props.description ? /* @__PURE__ */ React.createElement("div", {
6624
- className: clsx(bem$U("description")),
6617
+ className: cls(bem$V("description")),
6625
6618
  style: { backgroundColor: isActive && color }
6626
6619
  }, (() => {
6627
6620
  if (typeof props.description === "function") {
@@ -6640,8 +6633,8 @@ const TabsTitle = forwardRef((props, ref) => {
6640
6633
  };
6641
6634
  return /* @__PURE__ */ React.createElement("div", {
6642
6635
  ref,
6643
- className: clsx([
6644
- bem$U({
6636
+ className: cls([
6637
+ bem$V({
6645
6638
  active: props.isActive,
6646
6639
  disabled: props.disabled
6647
6640
  }),
@@ -6652,8 +6645,8 @@ const TabsTitle = forwardRef((props, ref) => {
6652
6645
  onClick: props.onClick
6653
6646
  }, renderText());
6654
6647
  });
6655
- var index$w = "";
6656
- const [bem$T] = createNamespace("swiper-item");
6648
+ var index$x = "";
6649
+ const [bem$U] = createNamespace("swiper-item");
6657
6650
  const SwiperItem = React.forwardRef(
6658
6651
  (props, ref) => {
6659
6652
  const wrapperRef = React.useRef(null);
@@ -6670,9 +6663,9 @@ const SwiperItem = React.forwardRef(
6670
6663
  });
6671
6664
  return /* @__PURE__ */ React.createElement("div", {
6672
6665
  ref: wrapperRef,
6673
- className: clsx(
6666
+ className: cls(
6674
6667
  props.className,
6675
- bem$T({
6668
+ bem$U({
6676
6669
  hidden: props.autoHeight && show2 === false
6677
6670
  })
6678
6671
  ),
@@ -6681,7 +6674,7 @@ const SwiperItem = React.forwardRef(
6681
6674
  }, props.children);
6682
6675
  }
6683
6676
  );
6684
- const [bem$S] = createNamespace("swiper");
6677
+ const [bem$T] = createNamespace("swiper");
6685
6678
  const Swiper$1 = forwardRef((p, ref) => {
6686
6679
  const props = mergeProps(p, {
6687
6680
  initialSwipe: 0,
@@ -6838,7 +6831,7 @@ const Swiper$1 = forwardRef((p, ref) => {
6838
6831
  const renderIndicator = () => {
6839
6832
  if (props.indicator === void 0 || props.indicator === true) {
6840
6833
  return /* @__PURE__ */ React.createElement("div", {
6841
- className: clsx(bem$S("indicator", { vertical }))
6834
+ className: cls(bem$T("indicator", { vertical }))
6842
6835
  }, /* @__PURE__ */ React.createElement(SwiperPagIndicator, {
6843
6836
  ...props.indicatorProps,
6844
6837
  vertical,
@@ -6902,14 +6895,14 @@ const Swiper$1 = forwardRef((p, ref) => {
6902
6895
  const renderTrackInner = () => {
6903
6896
  if (loop) {
6904
6897
  return /* @__PURE__ */ React.createElement("div", {
6905
- className: clsx(
6906
- bem$S("track-inner", {
6898
+ className: cls(
6899
+ bem$T("track-inner", {
6907
6900
  vertical
6908
6901
  })
6909
6902
  )
6910
6903
  }, React.Children.map(validChildren, (child, index2) => {
6911
6904
  return /* @__PURE__ */ React.createElement(animated.div, {
6912
- className: clsx(bem$S("slide")),
6905
+ className: cls(bem$T("slide")),
6913
6906
  style: {
6914
6907
  [axis]: position.to((pos) => {
6915
6908
  let finalPosition = -pos + index2 * 100;
@@ -6928,13 +6921,13 @@ const Swiper$1 = forwardRef((p, ref) => {
6928
6921
  }));
6929
6922
  }
6930
6923
  return /* @__PURE__ */ React.createElement(animated.div, {
6931
- className: clsx(bem$S("track-inner")),
6924
+ className: cls(bem$T("track-inner")),
6932
6925
  style: {
6933
6926
  [axis]: position.to((position2) => `${-position2}%`)
6934
6927
  }
6935
6928
  }, React.Children.map(validChildren, (child, index2) => {
6936
6929
  return /* @__PURE__ */ React.createElement("div", {
6937
- className: clsx(bem$S("slide"))
6930
+ className: cls(bem$T("slide"))
6938
6931
  }, React.cloneElement(child, {
6939
6932
  ref: setChildrenRefs(index2),
6940
6933
  autoHeight
@@ -6942,12 +6935,12 @@ const Swiper$1 = forwardRef((p, ref) => {
6942
6935
  }));
6943
6936
  };
6944
6937
  return /* @__PURE__ */ React.createElement("div", {
6945
- className: clsx(props.className, bem$S({ vertical })),
6938
+ className: cls(props.className, bem$T({ vertical })),
6946
6939
  style: computedStyle
6947
6940
  }, /* @__PURE__ */ React.createElement("div", {
6948
6941
  ref: trackRef,
6949
- className: clsx(
6950
- bem$S("track", {
6942
+ className: cls(
6943
+ bem$T("track", {
6951
6944
  "allow-touch-move": props.touchable
6952
6945
  })
6953
6946
  ),
@@ -6975,7 +6968,7 @@ function isScrollTarget(element, parent) {
6975
6968
  return false;
6976
6969
  }
6977
6970
  const Swiper = Object.assign(Swiper$1, { Item: SwiperItem });
6978
- const [bem$R] = createNamespace("tabs");
6971
+ const [bem$S] = createNamespace("tabs");
6979
6972
  const TabsContent = (props) => {
6980
6973
  const innerEffect = useRef(false);
6981
6974
  const { animated: animated2, swipeable, duration, swiperRef } = props;
@@ -6990,7 +6983,7 @@ const TabsContent = (props) => {
6990
6983
  loop: false,
6991
6984
  autoplay: false,
6992
6985
  touchable: !!swipeable,
6993
- className: clsx(bem$R("track")),
6986
+ className: cls(bem$S("track")),
6994
6987
  duration: +duration,
6995
6988
  indicator: false,
6996
6989
  onChange: (idx) => {
@@ -7003,7 +6996,7 @@ const TabsContent = (props) => {
7003
6996
  }
7004
6997
  }, React.Children.map(props.children, (child) => /* @__PURE__ */ React.createElement(Swiper.Item, {
7005
6998
  style: { cursor: !swipeable ? "auto" : void 0 },
7006
- className: clsx(bem$R("pane-wrapper"))
6999
+ className: cls(bem$S("pane-wrapper"))
7007
7000
  }, child)));
7008
7001
  }
7009
7002
  return props.children;
@@ -7021,8 +7014,8 @@ const TabsContent = (props) => {
7021
7014
  swipeToCurrentTab(props.currentIndex);
7022
7015
  }, [props.currentIndex]);
7023
7016
  return /* @__PURE__ */ React.createElement("div", {
7024
- className: clsx(
7025
- bem$R("content", {
7017
+ className: cls(
7018
+ bem$S("content", {
7026
7019
  animated: animated2 || swipeable
7027
7020
  })
7028
7021
  )
@@ -7067,7 +7060,7 @@ function getWindowHeight() {
7067
7060
  function isReachBottom(offset = 0) {
7068
7061
  return getScrollTop() + getWindowHeight() + offset >= getScrollHeight();
7069
7062
  }
7070
- const [bem$Q] = createNamespace("tabs");
7063
+ const [bem$R] = createNamespace("tabs");
7071
7064
  const getTabName = (tab, index2) => {
7072
7065
  var _a;
7073
7066
  return (_a = tab == null ? void 0 : tab.name) != null ? _a : index2;
@@ -7296,22 +7289,22 @@ const Tabs$1 = forwardRef((p, ref) => {
7296
7289
  const { type, border } = props;
7297
7290
  return /* @__PURE__ */ React.createElement("div", {
7298
7291
  ref: wrapRef,
7299
- className: clsx([
7300
- bem$Q("wrap", { scrollable }),
7292
+ className: cls([
7293
+ bem$R("wrap", { scrollable }),
7301
7294
  { [BORDER_TOP_BOTTOM]: type !== "card" && border }
7302
7295
  ])
7303
7296
  }, /* @__PURE__ */ React.createElement("div", {
7304
7297
  ref: navRef,
7305
7298
  role: "tablist",
7306
- className: clsx(
7307
- bem$Q("nav", [
7299
+ className: cls(
7300
+ bem$R("nav", [
7308
7301
  type,
7309
7302
  { complete: scrollable, start: align === "start" }
7310
7303
  ])
7311
7304
  ),
7312
7305
  style: navStyle
7313
7306
  }, props.navLeft, renderNav(), type === "line" && !immediateRef.current && /* @__PURE__ */ React.createElement("div", {
7314
- className: clsx(bem$Q("line")),
7307
+ className: cls(bem$R("line")),
7315
7308
  style: lineStyle
7316
7309
  }), props.navRight));
7317
7310
  };
@@ -7364,7 +7357,7 @@ const Tabs$1 = forwardRef((p, ref) => {
7364
7357
  value: { props, currentName, scrollIntoView }
7365
7358
  }, /* @__PURE__ */ React.createElement("div", {
7366
7359
  ref: root2,
7367
- className: clsx(props.className, bem$Q([props.type])),
7360
+ className: cls(props.className, bem$R([props.type])),
7368
7361
  style: props.style
7369
7362
  }, props.sticky ? /* @__PURE__ */ React.createElement(Sticky, {
7370
7363
  container: root2,
@@ -7386,7 +7379,7 @@ const Tabs$1 = forwardRef((p, ref) => {
7386
7379
  })
7387
7380
  ))));
7388
7381
  });
7389
- const [bem$P] = createNamespace("tab");
7382
+ const [bem$Q] = createNamespace("tab");
7390
7383
  const TabPane = forwardRef((props, ref) => {
7391
7384
  const parent = useContext(TabsContext);
7392
7385
  const { animated: animated2, swipeable, scrollspy, lazyRender, lazyRenderPlaceholder } = parent.props;
@@ -7416,18 +7409,18 @@ const TabPane = forwardRef((props, ref) => {
7416
7409
  return /* @__PURE__ */ React.createElement("div", {
7417
7410
  ref,
7418
7411
  role: "tabpanel",
7419
- className: clsx(bem$P("pane"))
7412
+ className: cls(bem$Q("pane"))
7420
7413
  }, Content);
7421
7414
  }
7422
7415
  return /* @__PURE__ */ React.createElement("div", {
7423
7416
  ref,
7424
7417
  style: { display: show2 ? "block" : "none" },
7425
7418
  role: "tabpanel",
7426
- className: clsx(bem$P("pane"))
7419
+ className: cls(bem$Q("pane"))
7427
7420
  }, Content);
7428
7421
  });
7429
7422
  const Tabs = Object.assign(Tabs$1, { TabPane });
7430
- var index$v = "";
7423
+ var index$w = "";
7431
7424
  const useHeight = (element) => {
7432
7425
  const [height, setHeight] = useState(0);
7433
7426
  useEffect(() => {
@@ -7437,7 +7430,7 @@ const useHeight = (element) => {
7437
7430
  }, [element.current]);
7438
7431
  return height;
7439
7432
  };
7440
- const [bem$O] = createNamespace("nav-bar");
7433
+ const [bem$P] = createNamespace("nav-bar");
7441
7434
  const NavBar = (p) => {
7442
7435
  const props = mergeProps(p, {
7443
7436
  border: true,
@@ -7460,11 +7453,11 @@ const NavBar = (p) => {
7460
7453
  return [
7461
7454
  props.leftArrow && React.cloneElement(props.leftArrow, {
7462
7455
  key: "arroe",
7463
- className: clsx(bem$O("arrow"))
7456
+ className: cls(bem$P("arrow"))
7464
7457
  }),
7465
7458
  props.leftText && /* @__PURE__ */ React.createElement("span", {
7466
7459
  key: "text",
7467
- className: clsx(bem$O("text"))
7460
+ className: cls(bem$P("text"))
7468
7461
  }, props.leftText)
7469
7462
  ];
7470
7463
  };
@@ -7473,7 +7466,7 @@ const NavBar = (p) => {
7473
7466
  return props.rightText;
7474
7467
  }
7475
7468
  return /* @__PURE__ */ React.createElement("span", {
7476
- className: clsx(bem$O("text"))
7469
+ className: cls(bem$P("text"))
7477
7470
  }, props.rightText);
7478
7471
  };
7479
7472
  const renderNavBar = () => {
@@ -7487,29 +7480,29 @@ const NavBar = (p) => {
7487
7480
  return /* @__PURE__ */ React.createElement("div", {
7488
7481
  ref: navBarRef,
7489
7482
  style,
7490
- className: clsx(
7491
- bem$O({ fixed, "safe-area-inset-top": props.safeAreaInsetTop }),
7483
+ className: cls(
7484
+ bem$P({ fixed, "safe-area-inset-top": props.safeAreaInsetTop }),
7492
7485
  {
7493
7486
  [BORDER_BOTTOM]: border
7494
7487
  },
7495
7488
  props.className
7496
7489
  )
7497
7490
  }, /* @__PURE__ */ React.createElement("div", {
7498
- className: clsx(bem$O("content"))
7491
+ className: cls(bem$P("content"))
7499
7492
  }, hasLeft && /* @__PURE__ */ React.createElement("div", {
7500
- className: clsx(bem$O("left")),
7493
+ className: cls(bem$P("left")),
7501
7494
  onClick: onClickLeft
7502
7495
  }, renderLeft()), /* @__PURE__ */ React.createElement("div", {
7503
- className: clsx(bem$O("title"), "rv-ellipsis")
7496
+ className: cls(bem$P("title"), "rv-ellipsis")
7504
7497
  }, title), hasRight && /* @__PURE__ */ React.createElement("div", {
7505
- className: clsx(bem$O("right")),
7498
+ className: cls(bem$P("right")),
7506
7499
  onClick: onClickRight
7507
7500
  }, renderRight())));
7508
7501
  };
7509
7502
  const renderPlaceholder = () => {
7510
7503
  if (props.fixed && props.placeholder) {
7511
7504
  return /* @__PURE__ */ React.createElement("div", {
7512
- className: clsx(bem$O("placeholder")),
7505
+ className: cls(bem$P("placeholder")),
7513
7506
  style: { height: navBarHeight ? `${navBarHeight}px` : void 0 }
7514
7507
  });
7515
7508
  }
@@ -7517,8 +7510,8 @@ const NavBar = (p) => {
7517
7510
  };
7518
7511
  return /* @__PURE__ */ React.createElement(React.Fragment, null, renderPlaceholder(), renderNavBar());
7519
7512
  };
7520
- var index$u = "";
7521
- const [bem$N] = createNamespace("tag");
7513
+ var index$v = "";
7514
+ const [bem$O] = createNamespace("tag");
7522
7515
  const Tag = (p) => {
7523
7516
  const props = mergeProps(p, {
7524
7517
  show: true,
@@ -7554,13 +7547,13 @@ const Tag = (p) => {
7554
7547
  classes[size] = size;
7555
7548
  }
7556
7549
  const CloseIcon = closeable && /* @__PURE__ */ React.createElement(Cross, {
7557
- className: clsx(bem$N("close")),
7550
+ className: cls(bem$O("close")),
7558
7551
  onClick: onClose
7559
7552
  });
7560
7553
  return /* @__PURE__ */ React.createElement("span", {
7561
7554
  ref: nodeRef,
7562
7555
  style: { ...getStyle, ...props.style },
7563
- className: clsx(props.className, bem$N([classes, type])),
7556
+ className: cls(props.className, bem$O([classes, type])),
7564
7557
  onClick: props.onClick
7565
7558
  }, props.children, CloseIcon);
7566
7559
  };
@@ -7572,8 +7565,8 @@ const Tag = (p) => {
7572
7565
  unmountOnExit: true
7573
7566
  }, renderTag());
7574
7567
  };
7575
- var index$t = "";
7576
- const [bem$M] = createNamespace("grid");
7568
+ var index$u = "";
7569
+ const [bem$N] = createNamespace("grid");
7577
7570
  const Grid = ({ children, className, style, ...p }) => {
7578
7571
  const props = mergeProps(p, {
7579
7572
  center: true,
@@ -7582,7 +7575,7 @@ const Grid = ({ children, className, style, ...p }) => {
7582
7575
  });
7583
7576
  return /* @__PURE__ */ React.createElement("div", {
7584
7577
  style: { paddingLeft: addUnit(props.gutter), ...style },
7585
- className: clsx(className, bem$M(), {
7578
+ className: cls(className, bem$N(), {
7586
7579
  [BORDER_TOP]: props.border && !props.gutter
7587
7580
  })
7588
7581
  }, React.Children.toArray(children).filter(Boolean).map(
@@ -7592,7 +7585,7 @@ const Grid = ({ children, className, style, ...p }) => {
7592
7585
  })
7593
7586
  ));
7594
7587
  };
7595
- const [bem$L] = createNamespace("grid-item");
7588
+ const [bem$M] = createNamespace("grid-item");
7596
7589
  const GridItem = ({
7597
7590
  children,
7598
7591
  className,
@@ -7636,7 +7629,7 @@ const GridItem = ({
7636
7629
  return /* @__PURE__ */ React.createElement(Badge, {
7637
7630
  ...props.badge
7638
7631
  }, React.cloneElement(props.icon, {
7639
- className: clsx(bem$L("icon")),
7632
+ className: cls(bem$M("icon")),
7640
7633
  color: props.iconColor,
7641
7634
  fontSize: parent.iconSize
7642
7635
  }));
@@ -7649,7 +7642,7 @@ const GridItem = ({
7649
7642
  }
7650
7643
  if (props.text) {
7651
7644
  return /* @__PURE__ */ React.createElement("span", {
7652
- className: clsx(bem$L("text"))
7645
+ className: cls(bem$M("text"))
7653
7646
  }, props.text);
7654
7647
  }
7655
7648
  return null;
@@ -7661,9 +7654,9 @@ const GridItem = ({
7661
7654
  return /* @__PURE__ */ React.createElement(React.Fragment, null, renderIcon(), renderText());
7662
7655
  };
7663
7656
  const { center, border, square, gutter, reverse, direction } = parent;
7664
- const classes = clsx(
7657
+ const classes = cls(
7665
7658
  props.contentClassName,
7666
- bem$L("content", [
7659
+ bem$M("content", [
7667
7660
  direction,
7668
7661
  {
7669
7662
  center,
@@ -7676,7 +7669,7 @@ const GridItem = ({
7676
7669
  { [BORDER]: border }
7677
7670
  );
7678
7671
  return /* @__PURE__ */ React.createElement("div", {
7679
- className: clsx(className, bem$L({ square })),
7672
+ className: cls(className, bem$M({ square })),
7680
7673
  style: rootStyle
7681
7674
  }, /* @__PURE__ */ React.createElement("div", {
7682
7675
  role: props.onClick ? "button" : void 0,
@@ -7686,10 +7679,10 @@ const GridItem = ({
7686
7679
  }, renderContent()));
7687
7680
  };
7688
7681
  const GridNamespace = Object.assign(Grid, { Item: GridItem });
7689
- var index$s = "";
7682
+ var index$t = "";
7690
7683
  const IndexBarContext = createContext({});
7691
7684
  const INDEX_ANCHORE_KEY = Symbol("index-anchor");
7692
- const [bem$K] = createNamespace("index-anchor");
7685
+ const [bem$L] = createNamespace("index-anchor");
7693
7686
  const IndexAnchor = forwardRef((props, ref) => {
7694
7687
  const root2 = useRef();
7695
7688
  const height = useHeight(root2);
@@ -7750,11 +7743,11 @@ const IndexAnchor = forwardRef((props, ref) => {
7750
7743
  }
7751
7744
  }, /* @__PURE__ */ React.createElement("div", {
7752
7745
  style: anchorStyle,
7753
- className: clsx(bem$K({ sticky }), { [BORDER_BOTTOM]: sticky })
7746
+ className: cls(bem$L({ sticky }), { [BORDER_BOTTOM]: sticky })
7754
7747
  }, props.children || props.index));
7755
7748
  });
7756
7749
  IndexAnchor[COMPONENT_TYPE_KEY] = INDEX_ANCHORE_KEY;
7757
- const [bem$J] = createNamespace("index-bar");
7750
+ const [bem$K] = createNamespace("index-bar");
7758
7751
  const IndexBar$1 = forwardRef((p, ref) => {
7759
7752
  const props = mergeProps(p, {
7760
7753
  sticky: true,
@@ -7848,7 +7841,7 @@ const IndexBar$1 = forwardRef((p, ref) => {
7848
7841
  const active = index2 === activeAnchor;
7849
7842
  return /* @__PURE__ */ React.createElement("span", {
7850
7843
  key: index2,
7851
- className: clsx(bem$J("index", { active })),
7844
+ className: cls(bem$K("index", { active })),
7852
7845
  style: active ? highlightStyle : null,
7853
7846
  "data-index": index2
7854
7847
  }, props.itemRender ? props.itemRender(index2, active) : index2);
@@ -7936,13 +7929,13 @@ const IndexBar$1 = forwardRef((p, ref) => {
7936
7929
  value: { zIndex, highlightColor, sticky }
7937
7930
  }, /* @__PURE__ */ React.createElement("div", {
7938
7931
  ref: root2,
7939
- className: clsx(bem$J(), props.className),
7932
+ className: cls(bem$K(), props.className),
7940
7933
  style: props.style
7941
7934
  }, renderToContainer(
7942
7935
  props.teleport,
7943
7936
  /* @__PURE__ */ React.createElement("div", {
7944
7937
  ref: sidebar,
7945
- className: clsx(bem$J("sidebar")),
7938
+ className: cls(bem$K("sidebar")),
7946
7939
  style: sidebarStyle,
7947
7940
  onClick: onClickSidebar,
7948
7941
  onTouchStart
@@ -7958,9 +7951,9 @@ function genAlphabet() {
7958
7951
  return indexList;
7959
7952
  }
7960
7953
  const IndexBar = Object.assign(IndexBar$1, { Anchor: IndexAnchor });
7961
- var index$r = "";
7954
+ var index$s = "";
7962
7955
  const CollapseContext = createContext({});
7963
- const [bem$I] = createNamespace("collapse");
7956
+ const [bem$J] = createNamespace("collapse");
7964
7957
  const Collapse$1 = (p) => {
7965
7958
  const props = mergeProps(p, {
7966
7959
  border: true
@@ -8007,7 +8000,7 @@ const Collapse$1 = (p) => {
8007
8000
  }, /* @__PURE__ */ React.createElement("div", {
8008
8001
  style: props.style,
8009
8002
  ref: props.nativeRef,
8010
- className: clsx(bem$I(), props.className, {
8003
+ className: cls(bem$J(), props.className, {
8011
8004
  [BORDER_TOP_BOTTOM]: props.border
8012
8005
  })
8013
8006
  }, React.Children.toArray(props.children).filter(Boolean).map(
@@ -8025,7 +8018,7 @@ function useLazyRender(show2) {
8025
8018
  }, [show2]);
8026
8019
  return (render2) => () => inited ? render2() : null;
8027
8020
  }
8028
- const [bem$H] = createNamespace("collapse-item");
8021
+ const [bem$I] = createNamespace("collapse-item");
8029
8022
  const CollapseItem = forwardRef(
8030
8023
  ({ className, style, ...p }, ref) => {
8031
8024
  const props = mergeProps(p, {
@@ -8086,8 +8079,8 @@ const CollapseItem = forwardRef(
8086
8079
  const renderTitle = () => {
8087
8080
  const { border, disabled, children, readOnly, ...others } = props;
8088
8081
  return /* @__PURE__ */ React.createElement(Cell, {
8089
- className: clsx(
8090
- bem$H("title", {
8082
+ className: cls(
8083
+ bem$I("title", {
8091
8084
  disabled,
8092
8085
  expanded,
8093
8086
  borderless: !border
@@ -8102,25 +8095,25 @@ const CollapseItem = forwardRef(
8102
8095
  };
8103
8096
  const renderContent = lazyRender(() => /* @__PURE__ */ React.createElement("div", {
8104
8097
  ref: wrapperRef,
8105
- className: clsx(bem$H("wrapper")),
8098
+ className: cls(bem$I("wrapper")),
8106
8099
  onTransitionEnd
8107
8100
  }, /* @__PURE__ */ React.createElement("div", {
8108
8101
  ref: contentRef,
8109
- className: clsx(bem$H("content"))
8102
+ className: cls(bem$I("content"))
8110
8103
  }, props.children)));
8111
8104
  useImperativeHandle(ref, () => ({
8112
8105
  toggle
8113
8106
  }));
8114
8107
  return /* @__PURE__ */ React.createElement("div", {
8115
8108
  style,
8116
- className: clsx(className, bem$H({ border: index2 && props.border }))
8109
+ className: cls(className, bem$I({ border: index2 && props.border }))
8117
8110
  }, renderTitle(), renderContent());
8118
8111
  }
8119
8112
  );
8120
8113
  const Collapse = Object.assign(Collapse$1, { Item: CollapseItem });
8121
- var index$q = "";
8114
+ var index$r = "";
8122
8115
  const RadioContext = createContext({});
8123
- const [bem$G] = createNamespace("radio-group");
8116
+ const [bem$H] = createNamespace("radio-group");
8124
8117
  function RadioGroup(props) {
8125
8118
  const [checked, setChecked] = useMergedState({
8126
8119
  value: props.value,
@@ -8134,7 +8127,7 @@ function RadioGroup(props) {
8134
8127
  return /* @__PURE__ */ React.createElement(RadioContext.Provider, {
8135
8128
  value: { parent: { props }, toggle, checked }
8136
8129
  }, /* @__PURE__ */ React.createElement("div", {
8137
- className: clsx(props.className, bem$G([props.direction])),
8130
+ className: cls(props.className, bem$H([props.direction])),
8138
8131
  style: props.style,
8139
8132
  role: "radiogroup"
8140
8133
  }, props.children));
@@ -8187,7 +8180,7 @@ const Checker = (p) => {
8187
8180
  const iconSize = props.iconSize || getParentProp("iconSize");
8188
8181
  return /* @__PURE__ */ React.createElement("div", {
8189
8182
  ref: iconRef,
8190
- className: clsx(bem2("icon", [shape, { disabled, checked }])),
8183
+ className: cls(bem2("icon", [shape, { disabled, checked }])),
8191
8184
  style: { fontSize: addUnit(iconSize) }
8192
8185
  }, props.iconRender ? props.iconRender({ checked, disabled }) : /* @__PURE__ */ React.createElement(Success, {
8193
8186
  style: iconStyle
@@ -8203,7 +8196,7 @@ const Checker = (p) => {
8203
8196
  };
8204
8197
  return /* @__PURE__ */ React.createElement("div", {
8205
8198
  role: props.role,
8206
- className: clsx(
8199
+ className: cls(
8207
8200
  props.bem([
8208
8201
  {
8209
8202
  disabled,
@@ -8219,7 +8212,7 @@ const Checker = (p) => {
8219
8212
  onClick
8220
8213
  }, props.labelPosition === "left" && renderLabel(), renderIcon(), props.labelPosition !== "left" && renderLabel());
8221
8214
  };
8222
- const [bem$F] = createNamespace("radio");
8215
+ const [bem$G] = createNamespace("radio");
8223
8216
  function Radio$1(props) {
8224
8217
  const { parent, ...context } = useContext(RadioContext);
8225
8218
  const checked = useMemo(() => {
@@ -8232,7 +8225,7 @@ function Radio$1(props) {
8232
8225
  };
8233
8226
  return /* @__PURE__ */ React.createElement(Checker, {
8234
8227
  ...props,
8235
- bem: bem$F,
8228
+ bem: bem$G,
8236
8229
  role: "radio",
8237
8230
  parent,
8238
8231
  checked,
@@ -8240,7 +8233,7 @@ function Radio$1(props) {
8240
8233
  });
8241
8234
  }
8242
8235
  const Radio = Object.assign(Radio$1, { Group: RadioGroup });
8243
- var index$p = "";
8236
+ var index$q = "";
8244
8237
  function getRateStatus(value, index2, allowHalf, readOnly) {
8245
8238
  if (value >= index2) {
8246
8239
  return { status: "full", value: 1 };
@@ -8257,7 +8250,7 @@ function getRateStatus(value, index2, allowHalf, readOnly) {
8257
8250
  }
8258
8251
  return { status: "void", value: 0 };
8259
8252
  }
8260
- const [bem$E] = createNamespace("rate");
8253
+ const [bem$F] = createNamespace("rate");
8261
8254
  const Rate = ({
8262
8255
  count = 5,
8263
8256
  touchable = true,
@@ -8362,25 +8355,25 @@ const Rate = ({
8362
8355
  ref: setItemRefs(index2),
8363
8356
  role: "radio",
8364
8357
  style,
8365
- className: clsx(bem$E("item")),
8358
+ className: cls(bem$F("item")),
8366
8359
  tabIndex: 0,
8367
8360
  "aria-setsize": parseInt(count == null ? void 0 : count.toString(), 10),
8368
8361
  "aria-posinset": score,
8369
8362
  "aria-checked": !isVoid,
8370
8363
  onClick: onClickItem
8371
8364
  }, React.cloneElement(isFull ? icon : voidIcon, {
8372
- className: clsx(bem$E("icon", { disabled, full: isFull })),
8365
+ className: cls(bem$F("icon", { disabled, full: isFull })),
8373
8366
  style: {
8374
8367
  color: disabled ? disabledColor : isFull ? color : voidColor,
8375
8368
  fontSize: size
8376
8369
  }
8377
8370
  }), renderHalf && /* @__PURE__ */ React.createElement("div", {
8378
- className: clsx(bem$E("icon", ["half"])),
8371
+ className: cls(bem$F("icon", ["half"])),
8379
8372
  style: { width: `${item.value * 100}%` }
8380
8373
  }, React.cloneElement(
8381
8374
  isVoid ? voidIcon : icon,
8382
8375
  {
8383
- className: clsx(bem$E("icon", [{ disabled, full: !isVoid }])),
8376
+ className: cls(bem$F("icon", [{ disabled, full: !isVoid }])),
8384
8377
  style: {
8385
8378
  color: disabled ? disabledColor : isVoid ? voidColor : color,
8386
8379
  fontSize: size
@@ -8395,8 +8388,8 @@ const Rate = ({
8395
8388
  return /* @__PURE__ */ React.createElement("div", {
8396
8389
  ref: root2,
8397
8390
  role: "radiogroup",
8398
- className: clsx(
8399
- bem$E({
8391
+ className: cls(
8392
+ bem$F({
8400
8393
  readOnly: props.readOnly,
8401
8394
  disabled: props.disabled
8402
8395
  })
@@ -8405,7 +8398,7 @@ const Rate = ({
8405
8398
  onTouchStart
8406
8399
  }, list.map(renderStar));
8407
8400
  };
8408
- var index$o = "";
8401
+ var index$p = "";
8409
8402
  function formatMonthTitle(date) {
8410
8403
  return [date.getFullYear(), date.getMonth() + 1];
8411
8404
  }
@@ -8471,7 +8464,7 @@ function getTrueValue(value) {
8471
8464
  function getMonthEndDay(year, month) {
8472
8465
  return 32 - new Date(year, month - 1, 32).getDate();
8473
8466
  }
8474
- const [bem$D] = createNamespace("calendar");
8467
+ const [bem$E] = createNamespace("calendar");
8475
8468
  const CalenderDay = (p) => {
8476
8469
  const props = mergeProps(p, {
8477
8470
  offset: 0
@@ -8514,7 +8507,7 @@ const CalenderDay = (p) => {
8514
8507
  const { topInfo } = props.item;
8515
8508
  if (topInfo || props.topInfoRender) {
8516
8509
  return /* @__PURE__ */ React.createElement("div", {
8517
- className: clsx(bem$D("top-info"))
8510
+ className: cls(bem$E("top-info"))
8518
8511
  }, props.topInfoRender ? props.topInfoRender(props.item) : topInfo);
8519
8512
  }
8520
8513
  return null;
@@ -8523,7 +8516,7 @@ const CalenderDay = (p) => {
8523
8516
  const { bottomInfo } = props.item;
8524
8517
  if (bottomInfo || props.bottomInfoRender) {
8525
8518
  return /* @__PURE__ */ React.createElement("div", {
8526
- className: clsx(bem$D("bottom-info"))
8519
+ className: cls(bem$E("bottom-info"))
8527
8520
  }, props.bottomInfoRender ? props.bottomInfoRender(props.item) : bottomInfo);
8528
8521
  }
8529
8522
  return null;
@@ -8534,7 +8527,7 @@ const CalenderDay = (p) => {
8534
8527
  const Nodes = /* @__PURE__ */ React.createElement(React.Fragment, null, renderTopInfo(), text, renderBottomInfo());
8535
8528
  if (type2 === "selected") {
8536
8529
  return /* @__PURE__ */ React.createElement("div", {
8537
- className: clsx(bem$D("selected-day")),
8530
+ className: cls(bem$E("selected-day")),
8538
8531
  style: {
8539
8532
  width: rowHeight,
8540
8533
  height: rowHeight,
@@ -8547,19 +8540,19 @@ const CalenderDay = (p) => {
8547
8540
  const { type, className } = props.item;
8548
8541
  if (type === "placeholder") {
8549
8542
  return /* @__PURE__ */ React.createElement("div", {
8550
- className: clsx(bem$D("day")),
8543
+ className: cls(bem$E("day")),
8551
8544
  style
8552
8545
  });
8553
8546
  }
8554
8547
  return /* @__PURE__ */ React.createElement("div", {
8555
8548
  role: "gridcell",
8556
8549
  style,
8557
- className: clsx(bem$D("day", type), className),
8550
+ className: cls(bem$E("day", type), className),
8558
8551
  tabIndex: type === "disabled" ? void 0 : -1,
8559
8552
  onClick
8560
8553
  }, renderContent());
8561
8554
  };
8562
- const [bem$C] = createNamespace("calendar");
8555
+ const [bem$D] = createNamespace("calendar");
8563
8556
  const CalenderMonth = forwardRef((props, ref) => {
8564
8557
  const [visible, setVisible] = useState();
8565
8558
  const daysRef = useRef();
@@ -8674,7 +8667,7 @@ const CalenderMonth = forwardRef((props, ref) => {
8674
8667
  const renderTitle = () => {
8675
8668
  if (props.showMonthTitle) {
8676
8669
  return /* @__PURE__ */ React.createElement("div", {
8677
- className: clsx(bem$C("month-title"))
8670
+ className: cls(bem$D("month-title"))
8678
8671
  }, title);
8679
8672
  }
8680
8673
  return null;
@@ -8682,7 +8675,7 @@ const CalenderMonth = forwardRef((props, ref) => {
8682
8675
  const renderMark = () => {
8683
8676
  if (props.showMark && shouldRender) {
8684
8677
  return /* @__PURE__ */ React.createElement("div", {
8685
- className: clsx(bem$C("month-mark"))
8678
+ className: cls(bem$D("month-mark"))
8686
8679
  }, props.date.getMonth() + 1);
8687
8680
  }
8688
8681
  return null;
@@ -8725,7 +8718,7 @@ const CalenderMonth = forwardRef((props, ref) => {
8725
8718
  const renderDays = () => /* @__PURE__ */ React.createElement("div", {
8726
8719
  ref: daysRef,
8727
8720
  role: "grid",
8728
- className: clsx(bem$C("days"))
8721
+ className: cls(bem$D("days"))
8729
8722
  }, renderMark(), (shouldRender ? days : placeholders).map(renderDay));
8730
8723
  useImperativeHandle(ref, () => ({
8731
8724
  getTitle,
@@ -8734,18 +8727,18 @@ const CalenderMonth = forwardRef((props, ref) => {
8734
8727
  scrollIntoView
8735
8728
  }));
8736
8729
  return /* @__PURE__ */ React.createElement("div", {
8737
- className: clsx(bem$C("month")),
8730
+ className: cls(bem$D("month")),
8738
8731
  ref: setMonthRef
8739
8732
  }, renderTitle(), renderDays());
8740
8733
  });
8741
- const [bem$B] = createNamespace("calendar");
8734
+ const [bem$C] = createNamespace("calendar");
8742
8735
  const CalenderHeader = (props) => {
8743
8736
  const { locale } = useContext(ConfigProvider$1);
8744
8737
  const renderTitle = () => {
8745
8738
  if (props.showTitle) {
8746
8739
  const text = props.title || locale.vanCalendar.title;
8747
8740
  return /* @__PURE__ */ React.createElement("div", {
8748
- className: clsx(bem$B("header-title"))
8741
+ className: cls(bem$C("header-title"))
8749
8742
  }, text);
8750
8743
  }
8751
8744
  return null;
@@ -8757,7 +8750,7 @@ const CalenderHeader = (props) => {
8757
8750
  const renderSubtitle = () => {
8758
8751
  if (props.showSubtitle) {
8759
8752
  return /* @__PURE__ */ React.createElement("div", {
8760
- className: clsx(bem$B("header-subtitle")),
8753
+ className: cls(bem$C("header-subtitle")),
8761
8754
  onClick: onClickSubtitle
8762
8755
  }, props.subtitle);
8763
8756
  }
@@ -8772,17 +8765,17 @@ const CalenderHeader = (props) => {
8772
8765
  ...weekdays.slice(0, firstDayOfWeek)
8773
8766
  ];
8774
8767
  return /* @__PURE__ */ React.createElement("div", {
8775
- className: clsx(bem$B("weekdays"))
8768
+ className: cls(bem$C("weekdays"))
8776
8769
  }, renderWeekDaysContent.map((text, i) => /* @__PURE__ */ React.createElement("span", {
8777
8770
  key: i,
8778
- className: clsx(bem$B("weekday"))
8771
+ className: cls(bem$C("weekday"))
8779
8772
  }, text)));
8780
8773
  };
8781
8774
  return /* @__PURE__ */ React.createElement("div", {
8782
- className: clsx(bem$B("header"))
8775
+ className: cls(bem$C("header"))
8783
8776
  }, renderTitle(), renderSubtitle(), renderWeekDays());
8784
8777
  };
8785
- const [bem$A] = createNamespace("calendar");
8778
+ const [bem$B] = createNamespace("calendar");
8786
8779
  const defaultMinDate = getToday();
8787
8780
  const defaultMaxDate = (() => {
8788
8781
  const now = getToday();
@@ -9123,7 +9116,7 @@ const Calendar = forwardRef(
9123
9116
  block: true,
9124
9117
  type: "danger",
9125
9118
  color: props.color,
9126
- className: clsx(bem$A("confirm")),
9119
+ className: cls(bem$B("confirm")),
9127
9120
  disabled: buttonDisabled,
9128
9121
  nativeType: "button",
9129
9122
  onClick: onConfirm
@@ -9132,12 +9125,12 @@ const Calendar = forwardRef(
9132
9125
  return null;
9133
9126
  };
9134
9127
  const renderFooter = () => /* @__PURE__ */ React.createElement("div", {
9135
- className: clsx(bem$A("footer"), {
9128
+ className: cls(bem$B("footer"), {
9136
9129
  "rv-safe-area-bottom": props.safeAreaInsetBottom
9137
9130
  })
9138
9131
  }, renderFooterButton());
9139
9132
  const renderCalendar = () => /* @__PURE__ */ React.createElement("div", {
9140
- className: clsx(className, bem$A()),
9133
+ className: cls(className, bem$B()),
9141
9134
  style
9142
9135
  }, /* @__PURE__ */ React.createElement(CalenderHeader, {
9143
9136
  weekdays: props.weekdays,
@@ -9152,7 +9145,7 @@ const Calendar = forwardRef(
9152
9145
  }
9153
9146
  }), props.horizontal ? /* @__PURE__ */ React.createElement("div", {
9154
9147
  ref: bodyRef,
9155
- className: clsx(bem$A("horizontal-body"))
9148
+ className: cls(bem$B("horizontal-body"))
9156
9149
  }, /* @__PURE__ */ React.createElement(Swiper, {
9157
9150
  indicator: () => null,
9158
9151
  onChange: (index2) => {
@@ -9162,7 +9155,7 @@ const Calendar = forwardRef(
9162
9155
  key: month
9163
9156
  }, renderMonth(month, index2))))) : /* @__PURE__ */ React.createElement("div", {
9164
9157
  ref: bodyRef,
9165
- className: clsx(bem$A("body")),
9158
+ className: cls(bem$B("body")),
9166
9159
  onScroll
9167
9160
  }, months.map(renderMonth)), renderFooter());
9168
9161
  const actions = {
@@ -9202,7 +9195,7 @@ const Calendar = forwardRef(
9202
9195
  if (props.poppable) {
9203
9196
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Popup, {
9204
9197
  visible,
9205
- className: clsx(bem$A("popup")),
9198
+ className: cls(bem$B("popup")),
9206
9199
  round: props.round,
9207
9200
  position: props.position,
9208
9201
  closeable: props.showTitle || props.showSubtitle,
@@ -9221,7 +9214,7 @@ const Calendar = forwardRef(
9221
9214
  return renderCalendar();
9222
9215
  }
9223
9216
  );
9224
- var index$n = "";
9217
+ var index$o = "";
9225
9218
  function useCascaderExtend(options, keys, value) {
9226
9219
  const { childrenKey, valueKey } = keys;
9227
9220
  const depth = useMemo(() => {
@@ -9297,7 +9290,7 @@ function useDebounceEffect(effect, deps, options) {
9297
9290
  }, deps);
9298
9291
  useUpdateEffect(effect, [flag]);
9299
9292
  }
9300
- const [bem$z] = createNamespace("cascader");
9293
+ const [bem$A] = createNamespace("cascader");
9301
9294
  const Cascader = (props) => {
9302
9295
  const { locale } = useContext(ConfigProvider$1);
9303
9296
  const [value, setValue] = useState(
@@ -9375,27 +9368,27 @@ const Cascader = (props) => {
9375
9368
  return null;
9376
9369
  if (props.closeIcon) {
9377
9370
  return React.cloneElement(props.closeIcon, {
9378
- className: clsx(bem$z("close-icon")),
9371
+ className: cls(bem$A("close-icon")),
9379
9372
  onClick: props.onClose
9380
9373
  });
9381
9374
  }
9382
9375
  return /* @__PURE__ */ React.createElement(Cross, {
9383
- className: clsx(bem$z("close-icon")),
9376
+ className: cls(bem$A("close-icon")),
9384
9377
  onClick: props.onClose
9385
9378
  });
9386
9379
  };
9387
9380
  const renderHeader = () => /* @__PURE__ */ React.createElement("div", {
9388
- className: clsx(bem$z("header"))
9381
+ className: cls(bem$A("header"))
9389
9382
  }, /* @__PURE__ */ React.createElement("h2", {
9390
- className: clsx(bem$z("title"))
9383
+ className: cls(bem$A("title"))
9391
9384
  }, props.title), renderCloseIcon());
9392
9385
  const renderOption = (option, selected, tabIndex) => {
9393
9386
  const color = option.color || (selected ? props.activeColor : void 0);
9394
9387
  const Text2 = props.optionRender ? props.optionRender({ option, selected }) : /* @__PURE__ */ React.createElement("span", null, option[textKey]);
9395
9388
  return /* @__PURE__ */ React.createElement("li", {
9396
9389
  key: option[valueKey],
9397
- className: clsx(
9398
- bem$z("option", {
9390
+ className: cls(
9391
+ bem$A("option", {
9399
9392
  selected,
9400
9393
  disabled: option.disabled
9401
9394
  }),
@@ -9404,12 +9397,12 @@ const Cascader = (props) => {
9404
9397
  style: { color },
9405
9398
  onClick: () => onSelect(option, tabIndex)
9406
9399
  }, Text2, selected ? /* @__PURE__ */ React.createElement(Success, {
9407
- className: clsx(bem$z("selected-icon"))
9400
+ className: cls(bem$A("selected-icon"))
9408
9401
  }) : null);
9409
9402
  };
9410
9403
  const renderOptions = (options, selectedOption, tabIndex) => /* @__PURE__ */ React.createElement("ul", {
9411
9404
  key: tabIndex,
9412
- className: clsx(bem$z("options"))
9405
+ className: cls(bem$A("options"))
9413
9406
  }, options.map(
9414
9407
  (option) => renderOption(
9415
9408
  option,
@@ -9423,8 +9416,8 @@ const Cascader = (props) => {
9423
9416
  return /* @__PURE__ */ React.createElement(Tabs.TabPane, {
9424
9417
  key: tabIndex,
9425
9418
  title,
9426
- titleClass: clsx(
9427
- bem$z("tab", {
9419
+ titleClass: cls(
9420
+ bem$A("tab", {
9428
9421
  unselected: !selectedOption
9429
9422
  })
9430
9423
  )
@@ -9433,7 +9426,7 @@ const Cascader = (props) => {
9433
9426
  const renderTabs = () => /* @__PURE__ */ React.createElement(Tabs, {
9434
9427
  animated: true,
9435
9428
  active: activeTab,
9436
- className: clsx(bem$z("tabs")),
9429
+ className: cls(bem$A("tabs")),
9437
9430
  color: props.activeColor,
9438
9431
  swipeThreshold: 0,
9439
9432
  swipeable: props.swipeable,
@@ -9441,7 +9434,7 @@ const Cascader = (props) => {
9441
9434
  onClickTab
9442
9435
  }, tabs.map(renderTab));
9443
9436
  return /* @__PURE__ */ React.createElement("div", {
9444
- className: clsx(bem$z())
9437
+ className: cls(bem$A())
9445
9438
  }, renderHeader(), tabs.length ? renderTabs() : null);
9446
9439
  };
9447
9440
  const CascaderPopup = React.forwardRef(
@@ -9557,9 +9550,9 @@ const CascaderPopup = React.forwardRef(
9557
9550
  }, content), (_a = props.children) == null ? void 0 : _a.call(props, value, items, actions));
9558
9551
  }
9559
9552
  );
9560
- var index$m = "";
9553
+ var index$n = "";
9561
9554
  const CheckboxContext = createContext({});
9562
- const [bem$y] = createNamespace("checkbox-group");
9555
+ const [bem$z] = createNamespace("checkbox-group");
9563
9556
  const CheckBoxGroup = forwardRef(
9564
9557
  (props, ref) => {
9565
9558
  const [childrenRefs, setChildrenRefs] = useRefs();
@@ -9596,7 +9589,7 @@ const CheckBoxGroup = forwardRef(
9596
9589
  return /* @__PURE__ */ React.createElement(CheckboxContext.Provider, {
9597
9590
  value: { parent: { props }, toggle, checked: checked || [] }
9598
9591
  }, /* @__PURE__ */ React.createElement("div", {
9599
- className: clsx(props.className, bem$y([props.direction]))
9592
+ className: cls(props.className, bem$z([props.direction]))
9600
9593
  }, React.Children.toArray(props.children).filter(Boolean).map((child, index2) => {
9601
9594
  var _a;
9602
9595
  if (((_a = child.type) == null ? void 0 : _a.displayName) !== "Checkbox")
@@ -9605,7 +9598,7 @@ const CheckBoxGroup = forwardRef(
9605
9598
  })));
9606
9599
  }
9607
9600
  );
9608
- const [bem$x] = createNamespace("checkbox");
9601
+ const [bem$y] = createNamespace("checkbox");
9609
9602
  const CheckBox = forwardRef((p, ref) => {
9610
9603
  const props = mergeProps(p, {
9611
9604
  bindGroup: true
@@ -9659,7 +9652,7 @@ const CheckBox = forwardRef((p, ref) => {
9659
9652
  }));
9660
9653
  return /* @__PURE__ */ React.createElement(Checker, {
9661
9654
  ...props,
9662
- bem: bem$x,
9655
+ bem: bem$y,
9663
9656
  role: "checkbox",
9664
9657
  parent,
9665
9658
  checked: isChecked,
@@ -9670,7 +9663,7 @@ const CheckBox = forwardRef((p, ref) => {
9670
9663
  });
9671
9664
  CheckBox.displayName = "Checkbox";
9672
9665
  const Checkbox = Object.assign(CheckBox, { Group: CheckBoxGroup });
9673
- var index$l = "";
9666
+ var index$m = "";
9674
9667
  const DEFAULT_DURATION = 200;
9675
9668
  const MOMENTUM_LIMIT_TIME = 300;
9676
9669
  const MOMENTUM_LIMIT_DISTANCE = 15;
@@ -9680,7 +9673,7 @@ function getElementTranslateY(element) {
9680
9673
  const translateY = transform.slice(7, transform.length - 1).split(", ")[5];
9681
9674
  return Number(translateY);
9682
9675
  }
9683
- const [bem$w] = createNamespace("picker-column");
9676
+ const [bem$x] = createNamespace("picker-column");
9684
9677
  const PickerColumn = memo(
9685
9678
  forwardRef((props, ref) => {
9686
9679
  const { locale } = useContext(ConfigProvider$1);
@@ -9862,8 +9855,8 @@ const PickerColumn = memo(
9862
9855
  role: "button",
9863
9856
  style: optionStyle,
9864
9857
  tabIndex: disabled ? -1 : 0,
9865
- className: clsx(
9866
- bem$w("item", {
9858
+ className: cls(
9859
+ bem$x("item", {
9867
9860
  disabled,
9868
9861
  selected: option[valueKey] === value
9869
9862
  })
@@ -9888,7 +9881,7 @@ const PickerColumn = memo(
9888
9881
  stopMomentum
9889
9882
  }));
9890
9883
  return /* @__PURE__ */ React.createElement("div", {
9891
- className: clsx(bem$w(), props.className),
9884
+ className: cls(bem$x(), props.className),
9892
9885
  onTouchStart,
9893
9886
  onTouchMove,
9894
9887
  onTouchEnd,
@@ -9900,7 +9893,7 @@ const PickerColumn = memo(
9900
9893
  transitionDuration: `${state.duration}ms`,
9901
9894
  transitionProperty: state.duration ? "all" : "none"
9902
9895
  },
9903
- className: clsx(bem$w("wrapper")),
9896
+ className: cls(bem$x("wrapper")),
9904
9897
  onTransitionEnd: stopMomentum
9905
9898
  }, renderOptions()));
9906
9899
  }),
@@ -9997,10 +9990,10 @@ function withCache(generate) {
9997
9990
  function generateColumnsExtend(rawColumns, keys, val) {
9998
9991
  const { textKey, valueKey } = keys;
9999
9992
  const columns = withCache(() => {
10000
- let cls = typeof rawColumns === "function" ? rawColumns(val) : rawColumns;
10001
- if (!Array.isArray(cls[0]))
10002
- cls = [cls];
10003
- return cls.map(
9993
+ let cls2 = typeof rawColumns === "function" ? rawColumns(val) : rawColumns;
9994
+ if (!Array.isArray(cls2[0]))
9995
+ cls2 = [cls2];
9996
+ return cls2.map(
10004
9997
  (column) => column.map((item) => {
10005
9998
  if (typeof item === "string")
10006
9999
  return { [textKey]: item, [valueKey]: item };
@@ -10048,7 +10041,7 @@ function useColumnsExtend(columns, keys, value) {
10048
10041
  [columns, keys, value]
10049
10042
  );
10050
10043
  }
10051
- const [bem$v] = createNamespace("picker");
10044
+ const [bem$w] = createNamespace("picker");
10052
10045
  function PickerInner(props) {
10053
10046
  const { locale } = useContext(ConfigProvider$1);
10054
10047
  const wrapper = useRef(null);
@@ -10116,7 +10109,7 @@ function PickerInner(props) {
10116
10109
  const renderTitle = () => {
10117
10110
  if (props.title) {
10118
10111
  return /* @__PURE__ */ React.createElement("div", {
10119
- className: clsx(bem$v("title"), "rv-ellipsis")
10112
+ className: cls(bem$w("title"), "rv-ellipsis")
10120
10113
  }, props.title);
10121
10114
  }
10122
10115
  return null;
@@ -10125,7 +10118,7 @@ function PickerInner(props) {
10125
10118
  const text = props.cancelButtonText || locale.cancel;
10126
10119
  return /* @__PURE__ */ React.createElement("button", {
10127
10120
  type: "button",
10128
- className: clsx(bem$v("cancel")),
10121
+ className: cls(bem$w("cancel")),
10129
10122
  onClick: cancel
10130
10123
  }, text);
10131
10124
  };
@@ -10133,14 +10126,14 @@ function PickerInner(props) {
10133
10126
  const text = props.confirmButtonText || locale.confirm;
10134
10127
  return /* @__PURE__ */ React.createElement("button", {
10135
10128
  type: "button",
10136
- className: clsx(bem$v("confirm")),
10129
+ className: cls(bem$w("confirm")),
10137
10130
  onClick: confirm
10138
10131
  }, text);
10139
10132
  };
10140
10133
  const renderToolbar = () => {
10141
10134
  if (props.showToolbar) {
10142
10135
  return /* @__PURE__ */ React.createElement("div", {
10143
- className: clsx(bem$v("toolbar"))
10136
+ className: cls(bem$w("toolbar"))
10144
10137
  }, props.toolbar || /* @__PURE__ */ React.createElement(React.Fragment, null, renderCancel(), renderTitle(), renderConfirm()));
10145
10138
  }
10146
10139
  return null;
@@ -10175,13 +10168,13 @@ function PickerInner(props) {
10175
10168
  };
10176
10169
  return /* @__PURE__ */ React.createElement("div", {
10177
10170
  ref: wrapper,
10178
- className: clsx(bem$v("columns")),
10171
+ className: cls(bem$w("columns")),
10179
10172
  style: columnsStyle
10180
10173
  }, renderColumnItems(), /* @__PURE__ */ React.createElement("div", {
10181
- className: clsx(bem$v("mask")),
10174
+ className: cls(bem$w("mask")),
10182
10175
  style: maskStyle
10183
10176
  }), /* @__PURE__ */ React.createElement("div", {
10184
- className: clsx(BORDER_UNSET_TOP_BOTTOM, bem$v("frame")),
10177
+ className: cls(BORDER_UNSET_TOP_BOTTOM, bem$w("frame")),
10185
10178
  style: frameStyle
10186
10179
  }));
10187
10180
  };
@@ -10189,9 +10182,9 @@ function PickerInner(props) {
10189
10182
  target: wrapper.current
10190
10183
  });
10191
10184
  return /* @__PURE__ */ React.createElement("div", {
10192
- className: clsx(bem$v(), props.className)
10185
+ className: cls(bem$w(), props.className)
10193
10186
  }, props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? /* @__PURE__ */ React.createElement(Loading, {
10194
- className: clsx(bem$v("loading"))
10187
+ className: cls(bem$w("loading"))
10195
10188
  }) : null, props.columnsTop, renderColumns(), props.columnsBottom, props.toolbarPosition === "bottom" ? renderToolbar() : null);
10196
10189
  }
10197
10190
  function PopupPicker(p, ref) {
@@ -10673,25 +10666,25 @@ const TimePicker = forwardRef(
10673
10666
  });
10674
10667
  }
10675
10668
  );
10676
- const [bem$u] = createNamespace("datetime-picker");
10669
+ const [bem$v] = createNamespace("datetime-picker");
10677
10670
  const DateTimePicker = forwardRef(
10678
10671
  (props, ref) => {
10679
10672
  const isTimePicker = props.type === "time";
10680
10673
  if (isTimePicker)
10681
10674
  return /* @__PURE__ */ React.createElement(TimePicker, {
10682
10675
  ref,
10683
- className: clsx(bem$u()),
10676
+ className: cls(bem$v()),
10684
10677
  ...props
10685
10678
  });
10686
10679
  return /* @__PURE__ */ React.createElement(DatePicker, {
10687
10680
  ref,
10688
- className: clsx(bem$u()),
10681
+ className: cls(bem$v()),
10689
10682
  ...props
10690
10683
  });
10691
10684
  }
10692
10685
  );
10693
- var index$k = "";
10694
- const [bem$t] = createNamespace("password-input");
10686
+ var index$l = "";
10687
+ const [bem$u] = createNamespace("password-input");
10695
10688
  const PasswordInput = forwardRef(
10696
10689
  (p, ref) => {
10697
10690
  const props = mergeProps(p, {
@@ -10768,18 +10761,18 @@ const PasswordInput = forwardRef(
10768
10761
  Points.push(
10769
10762
  /* @__PURE__ */ React.createElement("li", {
10770
10763
  key: i,
10771
- className: clsx(
10764
+ className: cls(
10772
10765
  {
10773
10766
  [BORDER_LEFT]: showBorder,
10774
10767
  [props.highlightClass]: props.highlightClass && char && !props.mask
10775
10768
  },
10776
- bem$t("item", { focus: showCursor })
10769
+ bem$u("item", { focus: showCursor })
10777
10770
  ),
10778
10771
  style
10779
10772
  }, mask ? /* @__PURE__ */ React.createElement("i", {
10780
10773
  style: { visibility: char ? "visible" : "hidden" }
10781
10774
  }) : char, showCursor && /* @__PURE__ */ React.createElement("div", {
10782
- className: clsx(bem$t("cursor"))
10775
+ className: cls(bem$u("cursor"))
10783
10776
  }))
10784
10777
  );
10785
10778
  }
@@ -10814,10 +10807,10 @@ const PasswordInput = forwardRef(
10814
10807
  }));
10815
10808
  const info = props.errorInfo || props.info;
10816
10809
  return /* @__PURE__ */ React.createElement("div", {
10817
- className: clsx(bem$t(), props.className),
10810
+ className: cls(bem$u(), props.className),
10818
10811
  style: props.style
10819
10812
  }, /* @__PURE__ */ React.createElement("ul", {
10820
- className: clsx(bem$t("security"), {
10813
+ className: cls(bem$u("security"), {
10821
10814
  [BORDER_SURROUND]: !props.gutter
10822
10815
  })
10823
10816
  }, renderPoints(), /* @__PURE__ */ React.createElement("input", {
@@ -10844,26 +10837,26 @@ const PasswordInput = forwardRef(
10844
10837
  (_a = props.onBlur) == null ? void 0 : _a.call(props, e);
10845
10838
  }
10846
10839
  })), info ? /* @__PURE__ */ React.createElement("div", {
10847
- className: clsx(bem$t(props.errorInfo ? "error-info" : "info"))
10840
+ className: cls(bem$u(props.errorInfo ? "error-info" : "info"))
10848
10841
  }, info) : null);
10849
10842
  }
10850
10843
  );
10851
- var index$j = "";
10844
+ var index$k = "";
10852
10845
  const CollapseIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement("svg", {
10853
- className: clsx(bem2("collapse-icon")),
10846
+ className: cls(bem2("collapse-icon")),
10854
10847
  viewBox: "0 0 30 24"
10855
10848
  }, /* @__PURE__ */ React.createElement("path", {
10856
10849
  d: "M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",
10857
10850
  fill: "currentColor"
10858
10851
  }));
10859
10852
  const DeleteIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement("svg", {
10860
- className: clsx(bem2("delete-icon")),
10853
+ className: cls(bem2("delete-icon")),
10861
10854
  viewBox: "0 0 32 22"
10862
10855
  }, /* @__PURE__ */ React.createElement("path", {
10863
10856
  d: "M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",
10864
10857
  fill: "currentColor"
10865
10858
  }));
10866
- const [bem$s] = createNamespace("key");
10859
+ const [bem$t] = createNamespace("key");
10867
10860
  const NumberKeyboardKey = ({
10868
10861
  children,
10869
10862
  className,
@@ -10895,18 +10888,18 @@ const NumberKeyboardKey = ({
10895
10888
  const renderContent = () => {
10896
10889
  if (props.loading) {
10897
10890
  return /* @__PURE__ */ React.createElement(Loading, {
10898
- className: clsx(bem$s("loading-icon"))
10891
+ className: cls(bem$t("loading-icon"))
10899
10892
  });
10900
10893
  }
10901
10894
  const text = children || props.text;
10902
10895
  switch (props.type) {
10903
10896
  case "delete":
10904
10897
  return text || /* @__PURE__ */ React.createElement(DeleteIcon, {
10905
- bem: bem$s
10898
+ bem: bem$t
10906
10899
  });
10907
10900
  case "extra":
10908
10901
  return text || /* @__PURE__ */ React.createElement(CollapseIcon, {
10909
- bem: bem$s
10902
+ bem: bem$t
10910
10903
  });
10911
10904
  default:
10912
10905
  return text;
@@ -10914,7 +10907,7 @@ const NumberKeyboardKey = ({
10914
10907
  };
10915
10908
  return /* @__PURE__ */ React.createElement("div", {
10916
10909
  style,
10917
- className: clsx(className, bem$s("wrapper", { wider: props.wider })),
10910
+ className: cls(className, bem$t("wrapper", { wider: props.wider })),
10918
10911
  onTouchStart,
10919
10912
  onTouchMove,
10920
10913
  onTouchEnd,
@@ -10922,8 +10915,8 @@ const NumberKeyboardKey = ({
10922
10915
  }, /* @__PURE__ */ React.createElement("div", {
10923
10916
  role: "button",
10924
10917
  tabIndex: 0,
10925
- className: clsx(
10926
- bem$s([
10918
+ className: cls(
10919
+ bem$t([
10927
10920
  props.color,
10928
10921
  {
10929
10922
  large: props.large,
@@ -10934,7 +10927,7 @@ const NumberKeyboardKey = ({
10934
10927
  )
10935
10928
  }, renderContent()));
10936
10929
  };
10937
- const [bem$r] = createNamespace("number-keyboard");
10930
+ const [bem$s] = createNamespace("number-keyboard");
10938
10931
  const NumberKeyboard = ({
10939
10932
  className,
10940
10933
  style,
@@ -11031,12 +11024,12 @@ const NumberKeyboard = ({
11031
11024
  return null;
11032
11025
  }
11033
11026
  return /* @__PURE__ */ React.createElement("div", {
11034
- className: clsx(bem$r("header"))
11027
+ className: cls(bem$s("header"))
11035
11028
  }, title && /* @__PURE__ */ React.createElement("h2", {
11036
- className: clsx(bem$r("title"))
11029
+ className: cls(bem$s("title"))
11037
11030
  }, title), showClose && /* @__PURE__ */ React.createElement("button", {
11038
11031
  type: "button",
11039
- className: clsx(bem$r("close")),
11032
+ className: cls(bem$s("close")),
11040
11033
  onClick: onClose
11041
11034
  }, closeButtonText));
11042
11035
  };
@@ -11065,7 +11058,7 @@ const NumberKeyboard = ({
11065
11058
  const renderSidebar = () => {
11066
11059
  if (props.theme === "custom") {
11067
11060
  return /* @__PURE__ */ React.createElement("div", {
11068
- className: clsx(bem$r("sidebar"))
11061
+ className: cls(bem$s("sidebar"))
11069
11062
  }, props.showDeleteKey && /* @__PURE__ */ React.createElement(NumberKeyboardKey, {
11070
11063
  large: true,
11071
11064
  text: props.deleteButtonText,
@@ -11101,23 +11094,23 @@ const NumberKeyboard = ({
11101
11094
  }, /* @__PURE__ */ React.createElement("div", {
11102
11095
  ref: root2,
11103
11096
  style: { ...style, ...getZIndexStyle(props.zIndex) },
11104
- className: clsx(
11097
+ className: cls(
11105
11098
  className,
11106
- bem$r({
11099
+ bem$s({
11107
11100
  unfit: !props.safeAreaInsetBottom,
11108
11101
  "with-title": !!Title2
11109
11102
  })
11110
11103
  ),
11111
11104
  onTouchStart: stopPropagation
11112
11105
  }, Title2, /* @__PURE__ */ React.createElement("div", {
11113
- className: clsx(bem$r("body"))
11106
+ className: cls(bem$s("body"))
11114
11107
  }, /* @__PURE__ */ React.createElement("div", {
11115
- className: clsx(bem$r("keys"))
11108
+ className: cls(bem$s("keys"))
11116
11109
  }, renderKeys()), renderSidebar())));
11117
11110
  return Content;
11118
11111
  };
11119
- var index$i = "";
11120
- const [bem$q] = createNamespace("slider");
11112
+ var index$j = "";
11113
+ const [bem$r] = createNamespace("slider");
11121
11114
  const Slider = (p) => {
11122
11115
  const props = mergeProps(p, {
11123
11116
  min: 0,
@@ -11297,9 +11290,9 @@ const Slider = (p) => {
11297
11290
  const getButtonClassName = (index2) => {
11298
11291
  if (typeof index2 === "number") {
11299
11292
  const position = ["left", "right"];
11300
- return bem$q("button-wrapper", position[index2]);
11293
+ return bem$r("button-wrapper", position[index2]);
11301
11294
  }
11302
- return bem$q("button-wrapper", props.reverse ? "left" : "right");
11295
+ return bem$r("button-wrapper", props.reverse ? "left" : "right");
11303
11296
  };
11304
11297
  const renderButtonContent = (value, index2) => {
11305
11298
  if (typeof index2 === "number") {
@@ -11315,7 +11308,7 @@ const Slider = (p) => {
11315
11308
  return props.button;
11316
11309
  }
11317
11310
  return /* @__PURE__ */ React.createElement("div", {
11318
- className: clsx(bem$q("button")),
11311
+ className: cls(bem$r("button")),
11319
11312
  style: getSizeStyle(props.buttonSize)
11320
11313
  });
11321
11314
  };
@@ -11325,7 +11318,7 @@ const Slider = (p) => {
11325
11318
  ref: buttounRef,
11326
11319
  key: index2,
11327
11320
  role: "slider",
11328
- className: clsx(getButtonClassName(index2)),
11321
+ className: cls(getButtonClassName(index2)),
11329
11322
  tabIndex: props.disabled || props.readOnly ? -1 : 0,
11330
11323
  "aria-valuemin": props.min,
11331
11324
  "aria-valuenow": value,
@@ -11363,27 +11356,27 @@ const Slider = (p) => {
11363
11356
  return /* @__PURE__ */ React.createElement("div", {
11364
11357
  ref: root2,
11365
11358
  style: wrapperStyle,
11366
- className: clsx(
11359
+ className: cls(
11367
11360
  props.className,
11368
- bem$q({
11361
+ bem$r({
11369
11362
  vertical: props.vertical,
11370
11363
  disabled: props.disabled
11371
11364
  })
11372
11365
  ),
11373
11366
  onClick
11374
11367
  }, /* @__PURE__ */ React.createElement("div", {
11375
- className: clsx(bem$q("bar")),
11368
+ className: cls(bem$r("bar")),
11376
11369
  style: barStyle
11377
11370
  }, props.range ? [renderButton(setButtonRef1, 0), renderButton(setButtonRef2, 1)] : renderButton(setButtonRef1)));
11378
11371
  };
11379
- var index$h = "";
11372
+ var index$i = "";
11380
11373
  const LONG_PRESS_INTERVAL = 100;
11381
11374
  const LONG_PRESS_START_TIME = 600;
11382
11375
  function add(num1, num2) {
11383
11376
  const cardinal = 10 ** 10;
11384
11377
  return Math.round((num1 + num2) * cardinal) / cardinal;
11385
11378
  }
11386
- const [bem$p] = createNamespace("stepper");
11379
+ const [bem$q] = createNamespace("stepper");
11387
11380
  const Stepper = React.forwardRef((p, ref) => {
11388
11381
  const props = mergeProps(p, {
11389
11382
  theme: "default",
@@ -11552,19 +11545,19 @@ const Stepper = React.forwardRef((p, ref) => {
11552
11545
  blur: () => inputRef.current.blur()
11553
11546
  }));
11554
11547
  return /* @__PURE__ */ React.createElement("div", {
11555
- className: clsx(props.className, bem$p([props.theme])),
11548
+ className: cls(props.className, bem$q([props.theme])),
11556
11549
  style: props.style
11557
11550
  }, props.showMinus && /* @__PURE__ */ React.createElement("button", {
11558
11551
  type: "button",
11559
11552
  "aria-label": "minus",
11560
11553
  style: buttonStyle,
11561
- className: clsx(bem$p("minus", { disabled: minusDisabled })),
11554
+ className: cls(bem$q("minus", { disabled: minusDisabled })),
11562
11555
  ...createListeners("minus")
11563
11556
  }), props.showInput && /* @__PURE__ */ React.createElement("input", {
11564
11557
  ref: inputRef,
11565
11558
  type: props.integer ? "tel" : "text",
11566
11559
  role: "spinbutton",
11567
- className: clsx(bem$p("input")),
11560
+ className: cls(bem$q("input")),
11568
11561
  value: inputValue,
11569
11562
  style: inputStyle,
11570
11563
  disabled: props.disabled || props.disableInput,
@@ -11583,7 +11576,7 @@ const Stepper = React.forwardRef((p, ref) => {
11583
11576
  type: "button",
11584
11577
  "aria-label": "add",
11585
11578
  style: buttonStyle,
11586
- className: clsx(bem$p("plus", { disabled: plusDisabled })),
11579
+ className: cls(bem$q("plus", { disabled: plusDisabled })),
11587
11580
  ...createListeners("plus")
11588
11581
  }));
11589
11582
  });
@@ -11601,7 +11594,7 @@ function convertTextToValue(text) {
11601
11594
  return null;
11602
11595
  return parseFloat(text);
11603
11596
  }
11604
- const [bem$o] = createNamespace("switch");
11597
+ const [bem$p] = createNamespace("switch");
11605
11598
  const Swtich = (p) => {
11606
11599
  const props = mergeProps(p, {
11607
11600
  activeValue: true,
@@ -11636,7 +11629,7 @@ const Swtich = (p) => {
11636
11629
  if (props.loading) {
11637
11630
  const color = isChecked ? props.activeColor : props.inactiveColor;
11638
11631
  return /* @__PURE__ */ React.createElement(Loading, {
11639
- className: clsx(bem$o("loading")),
11632
+ className: cls(bem$p("loading")),
11640
11633
  color
11641
11634
  });
11642
11635
  }
@@ -11645,9 +11638,9 @@ const Swtich = (p) => {
11645
11638
  return /* @__PURE__ */ React.createElement("div", {
11646
11639
  role: "switch",
11647
11640
  tabIndex: 0,
11648
- className: clsx(
11641
+ className: cls(
11649
11642
  props.className,
11650
- bem$o({
11643
+ bem$p({
11651
11644
  on: isChecked,
11652
11645
  loading,
11653
11646
  disabled
@@ -11657,11 +11650,11 @@ const Swtich = (p) => {
11657
11650
  "aria-checked": isChecked,
11658
11651
  onClick
11659
11652
  }, /* @__PURE__ */ React.createElement("div", {
11660
- className: clsx(bem$o("node"))
11653
+ className: cls(bem$p("node"))
11661
11654
  }, renderLoading()));
11662
11655
  };
11656
+ var index$h = "";
11663
11657
  var index$g = "";
11664
- var index$f = "";
11665
11658
  function toArray(item) {
11666
11659
  if (Array.isArray(item)) {
11667
11660
  return item;
@@ -11731,7 +11724,7 @@ function isImageFile(item, isImage) {
11731
11724
  }
11732
11725
  return false;
11733
11726
  }
11734
- const [bem$n] = createNamespace("uploader");
11727
+ const [bem$o] = createNamespace("uploader");
11735
11728
  const UploaderPreviewItem = (props) => {
11736
11729
  const { onPreview, statusTextRender, status, file, url } = props;
11737
11730
  const isImage = useMemo(
@@ -11747,14 +11740,14 @@ const UploaderPreviewItem = (props) => {
11747
11740
  const renderMask = () => {
11748
11741
  if (status === "failed" || status === "pending") {
11749
11742
  const MaskIcon = status === "failed" ? /* @__PURE__ */ React.createElement(Close, {
11750
- className: clsx(bem$n("mask-icon"))
11743
+ className: cls(bem$o("mask-icon"))
11751
11744
  }) : /* @__PURE__ */ React.createElement(Loading, {
11752
- className: clsx(bem$n("loading"))
11745
+ className: cls(bem$o("loading"))
11753
11746
  });
11754
11747
  return /* @__PURE__ */ React.createElement("div", {
11755
- className: clsx(bem$n("mask"))
11748
+ className: cls(bem$o("mask"))
11756
11749
  }, MaskIcon, statusTextRender && /* @__PURE__ */ React.createElement("div", {
11757
- className: clsx(bem$n("mask-message"))
11750
+ className: cls(bem$o("mask-message"))
11758
11751
  }, statusTextRender(status)));
11759
11752
  }
11760
11753
  return null;
@@ -11762,10 +11755,10 @@ const UploaderPreviewItem = (props) => {
11762
11755
  const renderDeleteIcon = () => {
11763
11756
  if (props.deletable) {
11764
11757
  return props.deleteRender ? props.deleteRender(props.onDelete) : /* @__PURE__ */ React.createElement("div", {
11765
- className: clsx(bem$n("preview-delete")),
11758
+ className: cls(bem$o("preview-delete")),
11766
11759
  onClick: props.onDelete
11767
11760
  }, /* @__PURE__ */ React.createElement(Cross, {
11768
- className: clsx(bem$n("preview-delete-icon"))
11761
+ className: cls(bem$o("preview-delete-icon"))
11769
11762
  }));
11770
11763
  }
11771
11764
  return null;
@@ -11779,27 +11772,27 @@ const UploaderPreviewItem = (props) => {
11779
11772
  return /* @__PURE__ */ React.createElement(ImageNamespace, {
11780
11773
  fit: props.imageFit,
11781
11774
  src: imageSrc,
11782
- className: clsx(bem$n("preview-image")),
11775
+ className: cls(bem$o("preview-image")),
11783
11776
  width: props.previewSize,
11784
11777
  height: props.previewSize,
11785
11778
  onClick: onPreview
11786
11779
  }, renderCover());
11787
11780
  }
11788
11781
  return /* @__PURE__ */ React.createElement("div", {
11789
- className: clsx(bem$n("file")),
11782
+ className: cls(bem$o("file")),
11790
11783
  style: getSizeStyle(props.previewSize)
11791
11784
  }, /* @__PURE__ */ React.createElement(Description, {
11792
- className: clsx(bem$n("file-icon"))
11785
+ className: cls(bem$o("file-icon"))
11793
11786
  }), /* @__PURE__ */ React.createElement("div", {
11794
- className: clsx(bem$n("file-name"), "rv-ellipsis")
11787
+ className: cls(bem$o("file-name"), "rv-ellipsis")
11795
11788
  }, file ? file.name : url), renderCover());
11796
11789
  };
11797
11790
  return /* @__PURE__ */ React.createElement("div", {
11798
- className: clsx(bem$n("preview")),
11791
+ className: cls(bem$o("preview")),
11799
11792
  onClick: props.onClick
11800
11793
  }, renderPreview(), renderMask(), renderDeleteIcon());
11801
11794
  };
11802
- const [bem$m] = createNamespace("uploader");
11795
+ const [bem$n] = createNamespace("uploader");
11803
11796
  const Uploader = forwardRef((p, ref) => {
11804
11797
  var _a;
11805
11798
  const props = mergeProps(p, {
@@ -12008,7 +12001,7 @@ const Uploader = forwardRef((p, ref) => {
12008
12001
  const renderUploadIcon = () => {
12009
12002
  if (props.uploadIcon) {
12010
12003
  return React.cloneElement(props.uploadIcon, {
12011
- className: clsx(bem$m("upload-icon"))
12004
+ className: cls(bem$n("upload-icon"))
12012
12005
  });
12013
12006
  }
12014
12007
  return null;
@@ -12018,7 +12011,7 @@ const Uploader = forwardRef((p, ref) => {
12018
12011
  const Input2 = props.readOnly ? null : /* @__PURE__ */ React.createElement("input", {
12019
12012
  ref: inputRef,
12020
12013
  type: "file",
12021
- className: clsx(bem$m("input")),
12014
+ className: cls(bem$n("input")),
12022
12015
  accept: props.accept,
12023
12016
  capture: props.capture,
12024
12017
  multiple: props.multiple,
@@ -12027,16 +12020,16 @@ const Uploader = forwardRef((p, ref) => {
12027
12020
  });
12028
12021
  if (props.children) {
12029
12022
  return /* @__PURE__ */ React.createElement("div", {
12030
- className: clsx(bem$m("input-wrapper")),
12023
+ className: cls(bem$n("input-wrapper")),
12031
12024
  onClick: props.onClickUpload
12032
12025
  }, props.children, Input2);
12033
12026
  }
12034
12027
  return /* @__PURE__ */ React.createElement("div", {
12035
- className: clsx(bem$m("upload", { readOnly: props.readOnly })),
12028
+ className: cls(bem$n("upload", { readOnly: props.readOnly })),
12036
12029
  style: getSizeStyle(props.previewSize),
12037
12030
  onClick: props.onClickUpload
12038
12031
  }, renderUploadIcon(), props.uploadText && /* @__PURE__ */ React.createElement("span", {
12039
- className: clsx(bem$m("upload-text"))
12032
+ className: cls(bem$n("upload-text"))
12040
12033
  }, props.uploadText), Input2);
12041
12034
  }
12042
12035
  return null;
@@ -12051,13 +12044,13 @@ const Uploader = forwardRef((p, ref) => {
12051
12044
  closeImagePreview
12052
12045
  }));
12053
12046
  return /* @__PURE__ */ React.createElement("div", {
12054
- className: clsx(bem$m())
12047
+ className: cls(bem$n())
12055
12048
  }, /* @__PURE__ */ React.createElement("div", {
12056
- className: clsx(bem$m("wrapper", { disabled: props.disabled }))
12049
+ className: cls(bem$n("wrapper", { disabled: props.disabled }))
12057
12050
  }, renderPreviewList(), renderUpload()));
12058
12051
  });
12059
- var index$e = "";
12060
- const [bem$l] = createNamespace("progress");
12052
+ var index$f = "";
12053
+ const [bem$m] = createNamespace("progress");
12061
12054
  const Progress = (p) => {
12062
12055
  const props = mergeProps(p, {
12063
12056
  showPivot: true,
@@ -12079,7 +12072,7 @@ const Progress = (p) => {
12079
12072
  };
12080
12073
  return /* @__PURE__ */ React.createElement("span", {
12081
12074
  style,
12082
- className: clsx(bem$l("pivot"))
12075
+ className: cls(bem$m("pivot"))
12083
12076
  }, text);
12084
12077
  }
12085
12078
  return null;
@@ -12095,14 +12088,14 @@ const Progress = (p) => {
12095
12088
  transform: `scaleX(${+percentage / 100})`
12096
12089
  };
12097
12090
  return /* @__PURE__ */ React.createElement("div", {
12098
- className: clsx(bem$l(), props.className),
12091
+ className: cls(bem$m(), props.className),
12099
12092
  style: rootStyle
12100
12093
  }, /* @__PURE__ */ React.createElement("span", {
12101
- className: clsx(bem$l("portion")),
12094
+ className: cls(bem$m("portion")),
12102
12095
  style: portionStyle
12103
12096
  }), renderPivot());
12104
12097
  };
12105
- var index$d = "";
12098
+ var index$e = "";
12106
12099
  let uid = 0;
12107
12100
  function format(rate) {
12108
12101
  return Math.min(Math.max(+rate, 0), 100);
@@ -12117,7 +12110,7 @@ const ROTATE_ANGLE_MAP = {
12117
12110
  bottom: 180,
12118
12111
  left: 270
12119
12112
  };
12120
- const [bem$k] = createNamespace("circle");
12113
+ const [bem$l] = createNamespace("circle");
12121
12114
  const Circle = (p) => {
12122
12115
  const props = mergeProps(p, {
12123
12116
  clockwise: true,
@@ -12191,7 +12184,7 @@ const Circle = (p) => {
12191
12184
  return /* @__PURE__ */ React.createElement("path", {
12192
12185
  d: path,
12193
12186
  style,
12194
- className: clsx(bem$k("hover")),
12187
+ className: cls(bem$l("hover")),
12195
12188
  stroke: color
12196
12189
  });
12197
12190
  };
@@ -12202,7 +12195,7 @@ const Circle = (p) => {
12202
12195
  strokeWidth: `${props.strokeWidth}px`
12203
12196
  };
12204
12197
  return /* @__PURE__ */ React.createElement("path", {
12205
- className: clsx(bem$k("layer")),
12198
+ className: cls(bem$l("layer")),
12206
12199
  style,
12207
12200
  d: path
12208
12201
  });
@@ -12228,24 +12221,24 @@ const Circle = (p) => {
12228
12221
  const renderText = () => {
12229
12222
  if (props.text) {
12230
12223
  return /* @__PURE__ */ React.createElement("div", {
12231
- className: clsx(bem$k("text"))
12224
+ className: cls(bem$l("text"))
12232
12225
  }, props.text);
12233
12226
  }
12234
12227
  return props.children;
12235
12228
  };
12236
12229
  return /* @__PURE__ */ React.createElement("div", {
12237
- className: clsx(bem$k(), props.className),
12230
+ className: cls(bem$l(), props.className),
12238
12231
  style: { ...props.style, ...getSizeStyle(props.size) }
12239
12232
  }, /* @__PURE__ */ React.createElement("svg", {
12240
12233
  viewBox: `0 0 ${viewBoxSize} ${viewBoxSize}`,
12241
12234
  style: svgStyle
12242
12235
  }, renderGradient(), renderLayer(), renderHover()), renderText());
12243
12236
  };
12244
- var index$c = "";
12237
+ var index$d = "";
12245
12238
  function makePage(number, text, active) {
12246
12239
  return { number, text, active };
12247
12240
  }
12248
- const [bem$j] = createNamespace("pagination");
12241
+ const [bem$k] = createNamespace("pagination");
12249
12242
  const Pagination = (p) => {
12250
12243
  const props = mergeProps(p, {
12251
12244
  mode: "multi",
@@ -12310,7 +12303,7 @@ const Pagination = (p) => {
12310
12303
  const renderDesc = () => {
12311
12304
  if (props.mode !== "multi") {
12312
12305
  return /* @__PURE__ */ React.createElement("li", {
12313
- className: clsx(bem$j("page-desc"))
12306
+ className: cls(bem$k("page-desc"))
12314
12307
  }, props.pageDesc ? props.pageDesc : `${props.value}/${count}`);
12315
12308
  }
12316
12309
  return null;
@@ -12319,34 +12312,34 @@ const Pagination = (p) => {
12319
12312
  const onSelect = (value2) => () => select(value2, true);
12320
12313
  const { value } = props;
12321
12314
  return /* @__PURE__ */ React.createElement("ul", {
12322
- className: clsx(bem$j({ simple }))
12315
+ className: cls(bem$k({ simple }))
12323
12316
  }, /* @__PURE__ */ React.createElement("li", {
12324
- className: clsx(
12325
- bem$j("item", { disabled: value === 1 }),
12326
- bem$j("prev"),
12317
+ className: cls(
12318
+ bem$k("item", { disabled: value === 1 }),
12319
+ bem$k("prev"),
12327
12320
  BORDER
12328
12321
  ),
12329
12322
  onClick: onSelect(value - 1)
12330
12323
  }, props.prevText || locale.vanPagination.prev), pages.map((page, index2) => /* @__PURE__ */ React.createElement("li", {
12331
12324
  key: index2,
12332
- className: clsx(
12333
- bem$j("item", { active: page.active }),
12334
- bem$j("page"),
12325
+ className: cls(
12326
+ bem$k("item", { active: page.active }),
12327
+ bem$k("page"),
12335
12328
  BORDER
12336
12329
  ),
12337
12330
  onClick: onSelect(page.number)
12338
12331
  }, props.pageRender ? props.pageRender(page) : page.text)), renderDesc(), /* @__PURE__ */ React.createElement("li", {
12339
- className: clsx(
12340
- bem$j("item", { disabled: value === count }),
12341
- bem$j("next"),
12332
+ className: cls(
12333
+ bem$k("item", { disabled: value === count }),
12334
+ bem$k("next"),
12342
12335
  BORDER
12343
12336
  ),
12344
12337
  onClick: onSelect(value + 1)
12345
12338
  }, props.nextText || locale.vanPagination.next));
12346
12339
  };
12347
- var index$b = "";
12340
+ var index$c = "";
12348
12341
  const TabbarContext = createContext({});
12349
- const [bem$i] = createNamespace("tabbar");
12342
+ const [bem$j] = createNamespace("tabbar");
12350
12343
  const Tabbar$1 = (p) => {
12351
12344
  const props = mergeProps(p, {
12352
12345
  fixed: true,
@@ -12361,7 +12354,7 @@ const Tabbar$1 = (p) => {
12361
12354
  const height = useHeight(root2);
12362
12355
  const renderPlaceholder = (renderContent) => {
12363
12356
  return /* @__PURE__ */ React.createElement("div", {
12364
- className: clsx(bem$i("placeholder")),
12357
+ className: cls(bem$j("placeholder")),
12365
12358
  style: { height }
12366
12359
  }, renderContent());
12367
12360
  };
@@ -12383,7 +12376,7 @@ const Tabbar$1 = (p) => {
12383
12376
  }, /* @__PURE__ */ React.createElement("div", {
12384
12377
  ref: root2,
12385
12378
  style: { ...props.style, ...getZIndexStyle(zIndex) },
12386
- className: clsx(props.className, bem$i({ fixed }), {
12379
+ className: cls(props.className, bem$j({ fixed }), {
12387
12380
  [BORDER_TOP_BOTTOM]: border,
12388
12381
  "rv-safe-area-bottom": enableSafeArea()
12389
12382
  })
@@ -12399,7 +12392,7 @@ const Tabbar$1 = (p) => {
12399
12392
  }
12400
12393
  return renderTabbar();
12401
12394
  };
12402
- const [bem$h] = createNamespace("tabbar-item");
12395
+ const [bem$i] = createNamespace("tabbar-item");
12403
12396
  const TabbarItem = (props) => {
12404
12397
  const { setActive, index: index2 } = props;
12405
12398
  const { parent } = useContext(TabbarContext);
@@ -12423,14 +12416,14 @@ const TabbarItem = (props) => {
12423
12416
  };
12424
12417
  const color = active ? activeColor : inactiveColor;
12425
12418
  return /* @__PURE__ */ React.createElement("div", {
12426
- className: clsx(props.className, bem$h({ active })),
12419
+ className: cls(props.className, bem$i({ active })),
12427
12420
  style: { ...props.style, color },
12428
12421
  onClick
12429
12422
  }, /* @__PURE__ */ React.createElement(Badge, {
12430
12423
  ...props.badge,
12431
- className: clsx(bem$h("icon"))
12424
+ className: cls(bem$i("icon"))
12432
12425
  }, renderIcon()), /* @__PURE__ */ React.createElement("div", {
12433
- className: clsx(bem$h("text"))
12426
+ className: cls(bem$i("text"))
12434
12427
  }, typeof props.children === "function" ? props.children(active) : props.children));
12435
12428
  };
12436
12429
  const Tabbar = Object.assign(Tabbar$1, { Item: TabbarItem });
@@ -12467,7 +12460,7 @@ const ConfigProvider = ({
12467
12460
  style: varStyle
12468
12461
  }, children));
12469
12462
  };
12470
- var index$a = "";
12463
+ var index$b = "";
12471
12464
  const FormSubscribe = (props) => {
12472
12465
  const update = useUpdate();
12473
12466
  const form = useContext(FieldContext);
@@ -12493,7 +12486,7 @@ const DEFAULT_FORM_CONTEXT = {
12493
12486
  controlAlign: "left"
12494
12487
  };
12495
12488
  const FormContext = React.createContext(DEFAULT_FORM_CONTEXT);
12496
- const [bem$g] = createNamespace("form");
12489
+ const [bem$h] = createNamespace("form");
12497
12490
  const Form$1 = forwardRef((props, ref) => {
12498
12491
  const {
12499
12492
  className,
@@ -12510,7 +12503,7 @@ const Form$1 = forwardRef((props, ref) => {
12510
12503
  ...formProps
12511
12504
  } = props;
12512
12505
  return /* @__PURE__ */ React.createElement(RcForm, {
12513
- className: clsx(bem$g(), className),
12506
+ className: cls(bem$h(), className),
12514
12507
  style,
12515
12508
  ref,
12516
12509
  ...formProps
@@ -12525,7 +12518,7 @@ const Form$1 = forwardRef((props, ref) => {
12525
12518
  labelAlign
12526
12519
  }
12527
12520
  }, children), footer && /* @__PURE__ */ React.createElement("div", {
12528
- className: clsx(bem$g("footer"))
12521
+ className: cls(bem$h("footer"))
12529
12522
  }, footer));
12530
12523
  });
12531
12524
  function shouldConstruct(Component) {
@@ -12559,7 +12552,7 @@ const MemoInput = React.memo(
12559
12552
  ),
12560
12553
  (prev2, next) => prev2.value === next.value && prev2.update === next.update
12561
12554
  );
12562
- const [bem$f] = createNamespace("form-item");
12555
+ const [bem$g] = createNamespace("form-item");
12563
12556
  const FormItemLayout = (props) => {
12564
12557
  var _a, _b, _c, _d, _e, _f;
12565
12558
  const { meta, ...fieldProps } = props;
@@ -12574,7 +12567,7 @@ const FormItemLayout = (props) => {
12574
12567
  const errorMessage = showValidateMessage && error ? meta.errors[0] : null;
12575
12568
  const attrs = {
12576
12569
  ...fieldProps,
12577
- className: clsx(bem$f({ vertical: layout === "vertical" }), props.className),
12570
+ className: cls(bem$g({ vertical: layout === "vertical" }), props.className),
12578
12571
  colon,
12579
12572
  error: showValidateMessage ? false : error,
12580
12573
  errorMessage,
@@ -12794,7 +12787,7 @@ function parseVanAreaList(data, columnsNum) {
12794
12787
  }
12795
12788
  return provinces;
12796
12789
  }
12797
- const [bem$e] = createNamespace("area");
12790
+ const [bem$f] = createNamespace("area");
12798
12791
  const Area = forwardRef((p, ref) => {
12799
12792
  const props = mergeProps(p, {
12800
12793
  areaList: {},
@@ -12816,28 +12809,28 @@ const Area = forwardRef((p, ref) => {
12816
12809
  return /* @__PURE__ */ React.createElement(Picker, {
12817
12810
  ref,
12818
12811
  style: props.style,
12819
- className: clsx(bem$e(), props.className),
12812
+ className: cls(bem$f(), props.className),
12820
12813
  columns,
12821
12814
  ...pick(props, INHERIT_PROPS)
12822
12815
  });
12823
12816
  });
12824
- var index$9 = "";
12817
+ var index$a = "";
12825
12818
  const CardHeader = (props) => {
12826
12819
  const [bem2] = createNamespace("card-header");
12827
12820
  return /* @__PURE__ */ React.createElement("div", {
12828
- className: clsx(props.className, bem2(), { [BORDER_BOTTOM]: props.border }),
12821
+ className: cls(props.className, bem2(), { [BORDER_BOTTOM]: props.border }),
12829
12822
  style: props.style,
12830
12823
  onClick: props.onClick
12831
12824
  }, /* @__PURE__ */ React.createElement("div", {
12832
- className: clsx(bem2("content"))
12825
+ className: cls(bem2("content"))
12833
12826
  }, props.children), props.extra && /* @__PURE__ */ React.createElement("div", {
12834
- className: clsx(bem2("extra"))
12827
+ className: cls(bem2("extra"))
12835
12828
  }, props.extra));
12836
12829
  };
12837
12830
  const CardBody = (props) => {
12838
12831
  const [bem2] = createNamespace("card-body");
12839
12832
  return /* @__PURE__ */ React.createElement("div", {
12840
- className: clsx(props.className, bem2()),
12833
+ className: cls(props.className, bem2()),
12841
12834
  style: props.style,
12842
12835
  onClick: props.onClick
12843
12836
  }, props.children);
@@ -12845,7 +12838,7 @@ const CardBody = (props) => {
12845
12838
  const CardFooter = (props) => {
12846
12839
  const [bem2] = createNamespace("card-footer");
12847
12840
  return /* @__PURE__ */ React.createElement("div", {
12848
- className: clsx(props.className, bem2({ compact: props.compact }), {
12841
+ className: cls(props.className, bem2({ compact: props.compact }), {
12849
12842
  [BORDER_TOP]: props.border
12850
12843
  }),
12851
12844
  style: props.style,
@@ -12855,7 +12848,7 @@ const CardFooter = (props) => {
12855
12848
  const CardCover = (props) => {
12856
12849
  const [bem2] = createNamespace("card-cover");
12857
12850
  return /* @__PURE__ */ React.createElement("div", {
12858
- className: clsx(props.className, bem2()),
12851
+ className: cls(props.className, bem2()),
12859
12852
  style: props.style,
12860
12853
  onClick: props.onClick
12861
12854
  }, props.children);
@@ -12864,7 +12857,7 @@ const Card$1 = (props) => {
12864
12857
  const [bem2] = createNamespace("card");
12865
12858
  const { className, style, round, border, children } = props;
12866
12859
  return /* @__PURE__ */ React.createElement("div", {
12867
- className: clsx(bem2({ round, border }), className),
12860
+ className: cls(bem2({ round, border }), className),
12868
12861
  style,
12869
12862
  onClick: props.onClick
12870
12863
  }, children);
@@ -12875,11 +12868,11 @@ const Card = Object.assign(Card$1, {
12875
12868
  Footer: CardFooter,
12876
12869
  Cover: CardCover
12877
12870
  });
12878
- var index$8 = "";
12871
+ var index$9 = "";
12879
12872
  function isStringOrNumber(target) {
12880
12873
  return typeof target === "string" || typeof target === "number";
12881
12874
  }
12882
- const [bem$d] = createNamespace("product-card");
12875
+ const [bem$e] = createNamespace("product-card");
12883
12876
  const ProductCard = (p) => {
12884
12877
  const props = mergeProps(p, {
12885
12878
  currency: "\xA5",
@@ -12888,7 +12881,7 @@ const ProductCard = (p) => {
12888
12881
  const renderTitle = () => {
12889
12882
  if (props.title) {
12890
12883
  return /* @__PURE__ */ React.createElement("div", {
12891
- className: clsx(bem$d("title"), "rv-multi-ellipsis--l2")
12884
+ className: cls(bem$e("title"), "rv-multi-ellipsis--l2")
12892
12885
  }, props.title);
12893
12886
  }
12894
12887
  return null;
@@ -12896,7 +12889,7 @@ const ProductCard = (p) => {
12896
12889
  const renderThumbTag = () => {
12897
12890
  if (props.tag) {
12898
12891
  return /* @__PURE__ */ React.createElement("div", {
12899
- className: clsx(bem$d("tag"))
12892
+ className: cls(bem$e("tag"))
12900
12893
  }, isStringOrNumber(props.tag) ? /* @__PURE__ */ React.createElement(Tag, {
12901
12894
  mark: true,
12902
12895
  type: "danger"
@@ -12922,7 +12915,7 @@ const ProductCard = (p) => {
12922
12915
  if (props.thumb) {
12923
12916
  return /* @__PURE__ */ React.createElement("a", {
12924
12917
  href: props.thumbLink,
12925
- className: clsx(bem$d("thumb")),
12918
+ className: cls(bem$e("thumb")),
12926
12919
  onClick: props.onClickThumb
12927
12920
  }, renderThumbImage(), renderThumbTag());
12928
12921
  }
@@ -12931,7 +12924,7 @@ const ProductCard = (p) => {
12931
12924
  const renderDesc = () => {
12932
12925
  if (props.desc) {
12933
12926
  return /* @__PURE__ */ React.createElement("div", {
12934
- className: clsx(bem$d("desc"), "rv-ellipsis")
12927
+ className: cls(bem$e("desc"), "rv-ellipsis")
12935
12928
  }, props.desc);
12936
12929
  }
12937
12930
  return null;
@@ -12940,18 +12933,18 @@ const ProductCard = (p) => {
12940
12933
  if (isStringOrNumber(props.price)) {
12941
12934
  const priceArr = props.price.toString().split(".");
12942
12935
  return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("span", {
12943
- className: clsx(bem$d("price-currency"))
12936
+ className: cls(bem$e("price-currency"))
12944
12937
  }, props.currency), /* @__PURE__ */ React.createElement("span", {
12945
- className: clsx(bem$d("price-integer"))
12938
+ className: cls(bem$e("price-integer"))
12946
12939
  }, priceArr[0]), props.decimal && /* @__PURE__ */ React.createElement(React.Fragment, null, ".", /* @__PURE__ */ React.createElement("span", {
12947
- className: clsx(bem$d("price-decimal"))
12940
+ className: cls(bem$e("price-decimal"))
12948
12941
  }, priceArr[1] || "00")));
12949
12942
  }
12950
12943
  return props.price;
12951
12944
  };
12952
12945
  const renderOriginalPrice = () => {
12953
12946
  return /* @__PURE__ */ React.createElement("div", {
12954
- className: clsx(bem$d("origin-price"))
12947
+ className: cls(bem$e("origin-price"))
12955
12948
  }, isStringOrNumber(props.originPrice) ? `${props.currency} ${props.originPrice}` : props.originPrice);
12956
12949
  };
12957
12950
  const showNum = isDef(props.num);
@@ -12959,30 +12952,30 @@ const ProductCard = (p) => {
12959
12952
  const showOriginPrice = isDef(props.originPrice);
12960
12953
  const showBottom = showNum || showPrice || showOriginPrice || props.bottom;
12961
12954
  const Price = showPrice && /* @__PURE__ */ React.createElement("div", {
12962
- className: clsx(bem$d("price"))
12955
+ className: cls(bem$e("price"))
12963
12956
  }, renderPriceText());
12964
12957
  const OriginPrice = showOriginPrice && renderOriginalPrice();
12965
12958
  const Num = showNum && /* @__PURE__ */ React.createElement("div", {
12966
- className: clsx(bem$d("num"))
12959
+ className: cls(bem$e("num"))
12967
12960
  }, isStringOrNumber(props.num) ? `x${props.num}` : props.num);
12968
12961
  const Footer = props.footer && /* @__PURE__ */ React.createElement("div", {
12969
- className: clsx(bem$d("footer"))
12962
+ className: cls(bem$e("footer"))
12970
12963
  }, props.footer);
12971
12964
  const Bottom = showBottom && /* @__PURE__ */ React.createElement("div", {
12972
- className: clsx(bem$d("bottom"))
12965
+ className: cls(bem$e("bottom"))
12973
12966
  }, props.priceTop, Price, OriginPrice, Num, props.bottom);
12974
12967
  return /* @__PURE__ */ React.createElement("div", {
12975
- className: clsx(bem$d(), props.className),
12968
+ className: cls(bem$e(), props.className),
12976
12969
  style: props.style,
12977
12970
  onClick: props.onClick
12978
12971
  }, /* @__PURE__ */ React.createElement("div", {
12979
- className: clsx(bem$d("header"))
12972
+ className: cls(bem$e("header"))
12980
12973
  }, renderThumb(), /* @__PURE__ */ React.createElement("div", {
12981
- className: clsx(bem$d("content", { centered: props.centered }))
12974
+ className: cls(bem$e("content", { centered: props.centered }))
12982
12975
  }, /* @__PURE__ */ React.createElement("div", null, renderTitle(), renderDesc(), props.tags), Bottom)), Footer);
12983
12976
  };
12984
- var index$7 = "";
12985
- const [bem$c] = createNamespace("submit-bar");
12977
+ var index$8 = "";
12978
+ const [bem$d] = createNamespace("submit-bar");
12986
12979
  const SubmitBar = (p) => {
12987
12980
  const props = mergeProps(p, {
12988
12981
  buttonType: "danger",
@@ -12997,14 +12990,14 @@ const SubmitBar = (p) => {
12997
12990
  const pricePair = (+price / 100).toFixed(+decimalLength).split(".");
12998
12991
  const decimal = decimalLength ? `.${pricePair[1]}` : "";
12999
12992
  return /* @__PURE__ */ React.createElement("div", {
13000
- className: clsx(bem$c("text")),
12993
+ className: cls(bem$d("text")),
13001
12994
  style: { textAlign }
13002
12995
  }, /* @__PURE__ */ React.createElement("span", null, label || locale.vanSubmitBar.label), /* @__PURE__ */ React.createElement("span", {
13003
- className: clsx(bem$c("price"))
12996
+ className: cls(bem$d("price"))
13004
12997
  }, currency, /* @__PURE__ */ React.createElement("span", {
13005
- className: clsx(bem$c("price-integer"))
12998
+ className: cls(bem$d("price-integer"))
13006
12999
  }, pricePair[0]), decimal), suffixLabel && /* @__PURE__ */ React.createElement("span", {
13007
- className: clsx(bem$c("suffix-label"))
13000
+ className: cls(bem$d("suffix-label"))
13008
13001
  }, suffixLabel));
13009
13002
  }
13010
13003
  return null;
@@ -13013,11 +13006,11 @@ const SubmitBar = (p) => {
13013
13006
  const { tip, tipIcon } = props;
13014
13007
  if (tip) {
13015
13008
  return /* @__PURE__ */ React.createElement("div", {
13016
- className: clsx(bem$c("tip"))
13009
+ className: cls(bem$d("tip"))
13017
13010
  }, tipIcon && React.cloneElement(tipIcon, {
13018
- className: clsx(bem$c("tip-icon"))
13011
+ className: cls(bem$d("tip-icon"))
13019
13012
  }), tip && /* @__PURE__ */ React.createElement("span", {
13020
- className: clsx(bem$c("tip-text"))
13013
+ className: cls(bem$d("tip-text"))
13021
13014
  }, tip));
13022
13015
  }
13023
13016
  return null;
@@ -13031,7 +13024,7 @@ const SubmitBar = (p) => {
13031
13024
  round: true,
13032
13025
  type: props.buttonType,
13033
13026
  text: props.buttonText,
13034
- className: clsx(bem$c("button", props.buttonType)),
13027
+ className: cls(bem$d("button", props.buttonType)),
13035
13028
  color: props.buttonColor,
13036
13029
  loading: props.loading,
13037
13030
  disabled: props.disabled,
@@ -13039,15 +13032,15 @@ const SubmitBar = (p) => {
13039
13032
  });
13040
13033
  };
13041
13034
  return /* @__PURE__ */ React.createElement("div", {
13042
- className: clsx(props.className, bem$c(), {
13035
+ className: cls(props.className, bem$d(), {
13043
13036
  "rv-safe-area-bottom": props.safeAreaInsetBottom
13044
13037
  }),
13045
13038
  style: props.style
13046
13039
  }, props.top, renderTip(), /* @__PURE__ */ React.createElement("div", {
13047
- className: clsx(bem$c("bar"))
13040
+ className: cls(bem$d("bar"))
13048
13041
  }, props.children, renderText(), renderButton()));
13049
13042
  };
13050
- var index$6 = "";
13043
+ var index$7 = "";
13051
13044
  function formatValue(coupons, chosenCoupon, currency, locale) {
13052
13045
  const coupon = coupons[+chosenCoupon];
13053
13046
  if (coupon) {
@@ -13061,7 +13054,7 @@ function formatValue(coupons, chosenCoupon, currency, locale) {
13061
13054
  }
13062
13055
  return coupons.length === 0 ? locale.noCoupon : locale.vanCouponCell.count(coupons.length);
13063
13056
  }
13064
- const [bem$b] = createNamespace("coupon-cell");
13057
+ const [bem$c] = createNamespace("coupon-cell");
13065
13058
  const CouponCell = (p) => {
13066
13059
  const props = mergeProps(p, {
13067
13060
  border: true,
@@ -13080,16 +13073,16 @@ const CouponCell = (p) => {
13080
13073
  );
13081
13074
  return /* @__PURE__ */ React.createElement(Cell, {
13082
13075
  style: props.style,
13083
- className: clsx(bem$b(), props.className),
13076
+ className: cls(bem$c(), props.className),
13084
13077
  value,
13085
13078
  title: props.title || locale.vanCouponCell.title,
13086
13079
  border: props.border,
13087
13080
  isLink: props.editable,
13088
- valueClass: clsx(bem$b("value", { selected })),
13081
+ valueClass: cls(bem$c("value", { selected })),
13089
13082
  onClick: props.onClick
13090
13083
  });
13091
13084
  };
13092
- var index$5 = "";
13085
+ var index$6 = "";
13093
13086
  function getDate(timeStamp) {
13094
13087
  const date = new Date(timeStamp * 1e3);
13095
13088
  return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
@@ -13104,7 +13097,7 @@ function formatAmount(amount) {
13104
13097
  amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2
13105
13098
  );
13106
13099
  }
13107
- const [bem$a] = createNamespace("coupon");
13100
+ const [bem$b] = createNamespace("coupon");
13108
13101
  const Coupon = (p) => {
13109
13102
  const props = mergeProps(p, {
13110
13103
  currency: "\xA5"
@@ -13135,31 +13128,31 @@ const Coupon = (p) => {
13135
13128
  const { chosen, coupon, disabled } = props;
13136
13129
  const description = disabled && coupon.reason || coupon.description;
13137
13130
  return /* @__PURE__ */ React.createElement("div", {
13138
- className: clsx(props.className, bem$a({ disabled })),
13131
+ className: cls(props.className, bem$b({ disabled })),
13139
13132
  style: props.style,
13140
13133
  onClick: props.onClick
13141
13134
  }, /* @__PURE__ */ React.createElement("div", {
13142
- className: clsx(bem$a("content"))
13135
+ className: cls(bem$b("content"))
13143
13136
  }, /* @__PURE__ */ React.createElement("div", {
13144
- className: clsx(bem$a("head"))
13137
+ className: cls(bem$b("head"))
13145
13138
  }, /* @__PURE__ */ React.createElement("h2", {
13146
- className: clsx(bem$a("amount"))
13139
+ className: cls(bem$b("amount"))
13147
13140
  }, faceAmount), /* @__PURE__ */ React.createElement("p", {
13148
- className: clsx(bem$a("condition"))
13141
+ className: cls(bem$b("condition"))
13149
13142
  }, coupon.condition || conditionMessage)), /* @__PURE__ */ React.createElement("div", {
13150
- className: clsx(bem$a("body"))
13143
+ className: cls(bem$b("body"))
13151
13144
  }, /* @__PURE__ */ React.createElement("p", {
13152
- className: clsx(bem$a("name"))
13145
+ className: cls(bem$b("name"))
13153
13146
  }, coupon.name), /* @__PURE__ */ React.createElement("p", {
13154
- className: clsx(bem$a("valid"))
13147
+ className: cls(bem$b("valid"))
13155
13148
  }, validPeriod), !disabled && /* @__PURE__ */ React.createElement(Checkbox, {
13156
- className: clsx(bem$a("corner")),
13149
+ className: cls(bem$b("corner")),
13157
13150
  checked: chosen
13158
13151
  }))), description && /* @__PURE__ */ React.createElement("p", {
13159
- className: clsx(bem$a("description"))
13152
+ className: cls(bem$b("description"))
13160
13153
  }, description));
13161
13154
  };
13162
- const [bem$9] = createNamespace("coupon-list");
13155
+ const [bem$a] = createNamespace("coupon-list");
13163
13156
  const CouponList = (p) => {
13164
13157
  var _a;
13165
13158
  const props = mergeProps(p, {
@@ -13202,7 +13195,7 @@ const CouponList = (p) => {
13202
13195
  }
13203
13196
  };
13204
13197
  const renderEmpty = () => /* @__PURE__ */ React.createElement("div", {
13205
- className: clsx(bem$9("empty"))
13198
+ className: cls(bem$a("empty"))
13206
13199
  }, /* @__PURE__ */ React.createElement("img", {
13207
13200
  alt: "empty",
13208
13201
  src: props.emptyImage
@@ -13210,19 +13203,19 @@ const CouponList = (p) => {
13210
13203
  const renderExchangeBar = () => {
13211
13204
  if (props.showExchangeBar) {
13212
13205
  return /* @__PURE__ */ React.createElement("div", {
13213
- className: clsx(bem$9("exchange-bar"))
13206
+ className: cls(bem$a("exchange-bar"))
13214
13207
  }, /* @__PURE__ */ React.createElement(FieldNamespace, {
13215
13208
  value: state.code,
13216
13209
  onChange: innerChange,
13217
13210
  clearable: true,
13218
13211
  border: false,
13219
- className: clsx(bem$9("field")),
13212
+ className: cls(bem$a("field")),
13220
13213
  placeholder: props.inputPlaceholder || locale.vanCouponList.placeholder,
13221
13214
  maxLength: 20
13222
13215
  }), /* @__PURE__ */ React.createElement(Button, {
13223
13216
  plain: true,
13224
13217
  type: "primary",
13225
- className: clsx(bem$9("exchange")),
13218
+ className: cls(bem$a("exchange")),
13226
13219
  text: props.exchangeButtonText || locale.vanCouponList.exchange,
13227
13220
  loading: props.exchangeButtonLoading,
13228
13221
  disabled: buttonDisabled,
@@ -13238,8 +13231,8 @@ const CouponList = (p) => {
13238
13231
  return /* @__PURE__ */ React.createElement(Tabs.TabPane, {
13239
13232
  title
13240
13233
  }, /* @__PURE__ */ React.createElement("div", {
13241
- className: clsx(
13242
- bem$9("list", {
13234
+ className: cls(
13235
+ bem$a("list", {
13243
13236
  "with-bar": props.showExchangeBar,
13244
13237
  "with-bottom": props.showCloseButton
13245
13238
  })
@@ -13259,8 +13252,8 @@ const CouponList = (p) => {
13259
13252
  return /* @__PURE__ */ React.createElement(Tabs.TabPane, {
13260
13253
  title
13261
13254
  }, /* @__PURE__ */ React.createElement("div", {
13262
- className: clsx(
13263
- bem$9("list", {
13255
+ className: cls(
13256
+ bem$a("list", {
13264
13257
  "with-bar": props.showExchangeBar,
13265
13258
  "with-bottom": props.showCloseButton
13266
13259
  })
@@ -13280,21 +13273,21 @@ const CouponList = (p) => {
13280
13273
  updateState({ code: props.code });
13281
13274
  }, [props.code]);
13282
13275
  return /* @__PURE__ */ React.createElement("div", {
13283
- className: clsx(bem$9(), props.className),
13276
+ className: cls(bem$a(), props.className),
13284
13277
  style: props.style
13285
13278
  }, renderExchangeBar(), /* @__PURE__ */ React.createElement(Tabs, {
13286
13279
  active: state.tab,
13287
13280
  border: false,
13288
13281
  ...props.tabsProps,
13289
- className: clsx(bem$9("tab"), (_a = props.tabsProps) == null ? void 0 : _a.className)
13282
+ className: cls(bem$a("tab"), (_a = props.tabsProps) == null ? void 0 : _a.className)
13290
13283
  }, renderCouponTab(), renderDisabledTab()), /* @__PURE__ */ React.createElement("div", {
13291
- className: clsx(bem$9("bottom"))
13284
+ className: cls(bem$a("bottom"))
13292
13285
  }, /* @__PURE__ */ React.createElement(Button, {
13293
13286
  "v-show": props.showCloseButton,
13294
13287
  round: true,
13295
13288
  block: true,
13296
13289
  type: "primary",
13297
- className: clsx(bem$9("close")),
13290
+ className: cls(bem$a("close")),
13298
13291
  text: props.closeButtonText || locale.vanCouponList.close,
13299
13292
  onClick: () => {
13300
13293
  var _a2;
@@ -13303,7 +13296,7 @@ const CouponList = (p) => {
13303
13296
  })));
13304
13297
  };
13305
13298
  const EMPTY_IMAGE = "https://img.yzcdn.cn/vant/coupon-empty.png";
13306
- var index$4 = "";
13299
+ var index$5 = "";
13307
13300
  const LIMIT_TYPE = {
13308
13301
  QUOTA_LIMIT: 0,
13309
13302
  STOCK_LIMIT: 1
@@ -13424,29 +13417,29 @@ const getSelectedProperties = (propList, selectedProp) => {
13424
13417
  });
13425
13418
  return list;
13426
13419
  };
13427
- const [bem$8] = createNamespace("sku-row");
13420
+ const [bem$9] = createNamespace("sku-row");
13428
13421
  const SkuRow = (props) => {
13429
13422
  const { skuRow } = props;
13430
13423
  const renderTitle = () => {
13431
13424
  return /* @__PURE__ */ React.createElement("div", {
13432
- className: clsx(bem$8("title"))
13425
+ className: cls(bem$9("title"))
13433
13426
  }, skuRow.k, skuRow.is_multiple && /* @__PURE__ */ React.createElement("span", {
13434
- className: clsx(bem$8("title-multiple"))
13427
+ className: cls(bem$9("title-multiple"))
13435
13428
  }, "\uFF08\u53EF\u591A\u9009\uFF09"));
13436
13429
  };
13437
13430
  const renderContent = () => {
13438
13431
  const { largeImageMode } = skuRow;
13439
13432
  return largeImageMode ? /* @__PURE__ */ React.createElement("div", {
13440
- className: clsx(bem$8("scroller"))
13433
+ className: cls(bem$9("scroller"))
13441
13434
  }, /* @__PURE__ */ React.createElement("div", {
13442
- className: clsx(bem$8("row"))
13435
+ className: cls(bem$9("row"))
13443
13436
  }, props.children)) : props.children;
13444
13437
  };
13445
13438
  return /* @__PURE__ */ React.createElement("div", {
13446
- className: clsx(bem$8(), BORDER_BOTTOM)
13439
+ className: cls(bem$9(), BORDER_BOTTOM)
13447
13440
  }, renderTitle(), renderContent());
13448
13441
  };
13449
- const [bem$7] = createNamespace("sku-row");
13442
+ const [bem$8] = createNamespace("sku-row");
13450
13443
  const SkuRowItem = (props) => {
13451
13444
  var _a, _b;
13452
13445
  const classPrefix = props.largeImageMode ? "image-item" : "item";
@@ -13473,7 +13466,7 @@ const SkuRowItem = (props) => {
13473
13466
  fit: "cover",
13474
13467
  src: imgUrl,
13475
13468
  lazyload: props.lazyload,
13476
- className: clsx(bem$7(`${classPrefix}-img`))
13469
+ className: cls(bem$8(`${classPrefix}-img`))
13477
13470
  });
13478
13471
  }
13479
13472
  return null;
@@ -13494,23 +13487,23 @@ const SkuRowItem = (props) => {
13494
13487
  };
13495
13488
  const choosed = props.skuValue.id === props.selectedSku[props.skuKeyStr];
13496
13489
  return /* @__PURE__ */ React.createElement("span", {
13497
- className: clsx(
13498
- bem$7(classPrefix, {
13490
+ className: cls(
13491
+ bem$8(classPrefix, {
13499
13492
  active: choosed,
13500
13493
  disabled: !choosable
13501
13494
  })
13502
13495
  ),
13503
13496
  onClick: onSelect
13504
13497
  }, imageRender(), /* @__PURE__ */ React.createElement("div", {
13505
- className: clsx(bem$7(`${classPrefix}-name`))
13498
+ className: cls(bem$8(`${classPrefix}-name`))
13506
13499
  }, props.largeImageMode ? /* @__PURE__ */ React.createElement("span", {
13507
- className: clsx("rv-multi-ellipsis--l2")
13500
+ className: cls("rv-multi-ellipsis--l2")
13508
13501
  }, (_a = props.skuValue) == null ? void 0 : _a.name) : (_b = props.skuValue) == null ? void 0 : _b.name), props.largeImageMode && (props.previewIcon || /* @__PURE__ */ React.createElement(ExpandO, {
13509
- className: clsx(bem$7(`${classPrefix}-img-icon`)),
13502
+ className: cls(bem$8(`${classPrefix}-img-icon`)),
13510
13503
  onClick: onPreviewImg
13511
13504
  })));
13512
13505
  };
13513
- const [bem$6] = createNamespace("sku-row");
13506
+ const [bem$7] = createNamespace("sku-row");
13514
13507
  const SkuRowPropItem = (props) => {
13515
13508
  var _a;
13516
13509
  const choosed = useMemo(() => {
@@ -13532,18 +13525,18 @@ const SkuRowPropItem = (props) => {
13532
13525
  });
13533
13526
  };
13534
13527
  return /* @__PURE__ */ React.createElement("span", {
13535
- className: clsx(
13536
- bem$6("item", {
13528
+ className: cls(
13529
+ bem$7("item", {
13537
13530
  active: choosed
13538
13531
  })
13539
13532
  ),
13540
13533
  onClick: onSelect
13541
13534
  }, /* @__PURE__ */ React.createElement("span", {
13542
- className: clsx(bem$6("item-name"))
13535
+ className: cls(bem$7("item-name"))
13543
13536
  }, (_a = props.skuValue) == null ? void 0 : _a.name));
13544
13537
  };
13545
13538
  const { QUOTA_LIMIT: QUOTA_LIMIT$1, STOCK_LIMIT } = LIMIT_TYPE;
13546
- const [bem$5] = createNamespace("sku");
13539
+ const [bem$6] = createNamespace("sku");
13547
13540
  const SkuStepper = (p) => {
13548
13541
  const props = mergeProps(p, {
13549
13542
  quota: 0,
@@ -13629,23 +13622,23 @@ const SkuStepper = (p) => {
13629
13622
  });
13630
13623
  };
13631
13624
  return /* @__PURE__ */ React.createElement("div", {
13632
- className: clsx(bem$5("stepper-stock"))
13625
+ className: cls(bem$6("stepper-stock"))
13633
13626
  }, /* @__PURE__ */ React.createElement("div", {
13634
- className: clsx(bem$5("stepper-title"))
13627
+ className: cls(bem$6("stepper-title"))
13635
13628
  }, props.stepperTitle), /* @__PURE__ */ React.createElement(Stepper, {
13636
13629
  min: stepperMinLimit,
13637
13630
  max: stepperLimit,
13638
- className: clsx(bem$5("stepper")),
13631
+ className: cls(bem$6("stepper")),
13639
13632
  disableInput: props.disableStepperInput,
13640
13633
  value: props.currentNum,
13641
13634
  onChange,
13642
13635
  onOverlimit: onOverLimit
13643
13636
  }), !props.hideQuotaText && quotaContent && /* @__PURE__ */ React.createElement("span", {
13644
- className: clsx(bem$5("stepper-quota"))
13637
+ className: cls(bem$6("stepper-quota"))
13645
13638
  }, quotaContent));
13646
13639
  };
13647
13640
  const { QUOTA_LIMIT } = LIMIT_TYPE;
13648
- const [bem$4] = createNamespace("sku");
13641
+ const [bem$5] = createNamespace("sku");
13649
13642
  const Sku = forwardRef((p, ref) => {
13650
13643
  var _a, _b;
13651
13644
  const props = mergeProps(p, {
@@ -13789,8 +13782,8 @@ const Sku = forwardRef((p, ref) => {
13789
13782
  return props.stockRender(stock);
13790
13783
  }
13791
13784
  return /* @__PURE__ */ React.createElement(React.Fragment, null, "\u5269\u4F59", /* @__PURE__ */ React.createElement("span", {
13792
- className: clsx(
13793
- bem$4("stock-num", {
13785
+ className: cls(
13786
+ bem$5("stock-num", {
13794
13787
  highlight: stock < props.stockThreshold
13795
13788
  })
13796
13789
  )
@@ -13975,21 +13968,21 @@ const Sku = forwardRef((p, ref) => {
13975
13968
  const renderHeaderInfo = () => {
13976
13969
  var _a2;
13977
13970
  return /* @__PURE__ */ React.createElement(React.Fragment, null, ((_a2 = props.skuHeaderPriceRender) == null ? void 0 : _a2.call(props, price)) || /* @__PURE__ */ React.createElement("div", {
13978
- className: clsx(bem$4("goods-price"))
13971
+ className: cls(bem$5("goods-price"))
13979
13972
  }, /* @__PURE__ */ React.createElement("span", {
13980
- className: clsx(bem$4("price-symbol"))
13973
+ className: cls(bem$5("price-symbol"))
13981
13974
  }, "\uFFE5"), /* @__PURE__ */ React.createElement("span", {
13982
- className: clsx(bem$4("price-num"))
13975
+ className: cls(bem$5("price-num"))
13983
13976
  }, price), props.priceTag && /* @__PURE__ */ React.createElement("span", {
13984
- className: clsx(bem$4("price-tag"))
13977
+ className: cls(bem$5("price-tag"))
13985
13978
  }, props.priceTag)), props.skuHeaderOriginPrice && /* @__PURE__ */ React.createElement("div", {
13986
- className: clsx(bem$4("header-item"))
13979
+ className: cls(bem$5("header-item"))
13987
13980
  }, props.skuHeaderOriginPrice), !props.hideStock && /* @__PURE__ */ React.createElement("div", {
13988
- className: clsx(bem$4("header-item"))
13981
+ className: cls(bem$5("header-item"))
13989
13982
  }, /* @__PURE__ */ React.createElement("span", {
13990
- className: clsx(bem$4("stock"))
13983
+ className: cls(bem$5("stock"))
13991
13984
  }, stockContent)), !props.hideSelectedText && /* @__PURE__ */ React.createElement("div", {
13992
- className: clsx(bem$4("header-item"))
13985
+ className: cls(bem$5("header-item"))
13993
13986
  }, selectedText));
13994
13987
  };
13995
13988
  const renderHeader = () => {
@@ -13998,20 +13991,20 @@ const Sku = forwardRef((p, ref) => {
13998
13991
  const selectedValue = getSkuImgValue(sku, state.selectedSku);
13999
13992
  const imgUrl = selectedValue ? selectedValue.imgUrl : props.goods.picture;
14000
13993
  return /* @__PURE__ */ React.createElement("div", {
14001
- className: clsx(bem$4("header"), BORDER_BOTTOM)
13994
+ className: cls(bem$5("header"), BORDER_BOTTOM)
14002
13995
  }, props.showHeaderImage && /* @__PURE__ */ React.createElement(ImageNamespace, {
14003
13996
  fit: "cover",
14004
13997
  src: imgUrl,
14005
- className: clsx(bem$4("header__img-wrap")),
13998
+ className: cls(bem$5("header__img-wrap")),
14006
13999
  onClick: () => onPreviewImage(selectedValue)
14007
14000
  }, props.skuHeaderImageExtra), /* @__PURE__ */ React.createElement("div", {
14008
- className: clsx(bem$4("header__goods-info"))
14001
+ className: cls(bem$5("header__goods-info"))
14009
14002
  }, renderHeaderInfo(), props.skuHeaderExtra));
14010
14003
  };
14011
14004
  const renderGroup = () => {
14012
14005
  return props.skuGroup || hasSkuOrAttr && /* @__PURE__ */ React.createElement("div", {
14013
- className: clsx(
14014
- bem$4("group-container", {
14006
+ className: cls(
14007
+ bem$5("group-container", {
14015
14008
  "hide-soldout": !props.showSoldoutSku
14016
14009
  })
14017
14010
  )
@@ -14061,13 +14054,13 @@ const Sku = forwardRef((p, ref) => {
14061
14054
  });
14062
14055
  const renderBody = () => {
14063
14056
  return /* @__PURE__ */ React.createElement("div", {
14064
- className: clsx(bem$4("body")),
14057
+ className: cls(bem$5("body")),
14065
14058
  style: bodyStyle
14066
14059
  }, props.skuBodyTop, renderGroup(), props.skuGroupExtra, renderStepper());
14067
14060
  };
14068
14061
  const renderActions = () => {
14069
14062
  return props.skuActions || /* @__PURE__ */ React.createElement("div", {
14070
- className: clsx(bem$4("actions"))
14063
+ className: cls(bem$5("actions"))
14071
14064
  }, /* @__PURE__ */ React.createElement(ActionBar, null, props.showAddCartBtn && /* @__PURE__ */ React.createElement(ActionBar.Button, {
14072
14065
  type: "warning",
14073
14066
  text: props.addCartText || "\u52A0\u5165\u8D2D\u7269\u8F66",
@@ -14097,10 +14090,10 @@ const Sku = forwardRef((p, ref) => {
14097
14090
  visible,
14098
14091
  onClose: onPopupClose,
14099
14092
  onClosed: onPopupClosed,
14100
- className: clsx((_b = props.popupProps) == null ? void 0 : _b.className, bem$4("container"))
14093
+ className: cls((_b = props.popupProps) == null ? void 0 : _b.className, bem$5("container"))
14101
14094
  }, renderHeader(), renderBody(), props.skuActionsTop, renderActions(), props.skuActionsBottom);
14102
14095
  });
14103
- var index$3 = "";
14096
+ var index$4 = "";
14104
14097
  const FloatingBallItem$1 = createContext({});
14105
14098
  var FloatingBallItem = (props) => {
14106
14099
  const parent = React.useContext(FloatingBallItem$1);
@@ -14108,7 +14101,7 @@ var FloatingBallItem = (props) => {
14108
14101
  parent == null ? void 0 : parent.close();
14109
14102
  };
14110
14103
  return /* @__PURE__ */ React.createElement("div", {
14111
- className: clsx("rv-floating-ball__menu__item"),
14104
+ className: cls("rv-floating-ball__menu__item"),
14112
14105
  onClick: handleItemClick
14113
14106
  }, props.children);
14114
14107
  };
@@ -14222,7 +14215,7 @@ const useFloatingTouch = (props) => {
14222
14215
  const TOUCH_DURATION = 0;
14223
14216
  const TRANSITION_DURATION = 300;
14224
14217
  const DEFAULT_ADSORB = { indent: 0.5, distance: 0 };
14225
- const [bem$3] = createNamespace("floating-ball");
14218
+ const [bem$4] = createNamespace("floating-ball");
14226
14219
  const FloatingBall = forwardRef(
14227
14220
  (p, ref) => {
14228
14221
  var _a, _b, _c, _d;
@@ -14273,8 +14266,8 @@ const FloatingBall = forwardRef(
14273
14266
  return null;
14274
14267
  const [position1, position2] = position.split(" ");
14275
14268
  return /* @__PURE__ */ React.createElement("div", {
14276
- className: clsx(
14277
- bem$3("menu", {
14269
+ className: cls(
14270
+ bem$4("menu", {
14278
14271
  [(_a2 = props.menu) == null ? void 0 : _a2.direction]: !!((_b2 = props.menu) == null ? void 0 : _b2.direction),
14279
14272
  [position1]: !!position1,
14280
14273
  [position2]: !!position2
@@ -14433,15 +14426,15 @@ const FloatingBall = forwardRef(
14433
14426
  }
14434
14427
  }
14435
14428
  }, /* @__PURE__ */ React.createElement("div", {
14436
- className: clsx(props.className, indentClassName, bem$3({ active })),
14429
+ className: cls(props.className, indentClassName, bem$4({ active })),
14437
14430
  style: trackStyle,
14438
14431
  ref: setContainer,
14439
14432
  onTouchStart,
14440
14433
  onTouchEnd,
14441
14434
  onTouchCancel: onTouchEnd
14442
14435
  }, renderMenus(), /* @__PURE__ */ React.createElement("div", {
14443
- className: clsx(
14444
- bem$3("base", {
14436
+ className: cls(
14437
+ bem$4("base", {
14445
14438
  [props.disabledClassName]: props.disabled
14446
14439
  })
14447
14440
  ),
@@ -14449,7 +14442,7 @@ const FloatingBall = forwardRef(
14449
14442
  }, typeof props.children === "function" ? props.children({ active, indenting: state.indenting }) : props.children)));
14450
14443
  }
14451
14444
  );
14452
- var index$2 = "";
14445
+ var index$3 = "";
14453
14446
  const DEFAULT_FONT = {
14454
14447
  style: "normal",
14455
14448
  weight: "normal",
@@ -14457,7 +14450,7 @@ const DEFAULT_FONT = {
14457
14450
  size: 14,
14458
14451
  family: "sans-serif"
14459
14452
  };
14460
- const [bem$2] = createNamespace("water-mark");
14453
+ const [bem$3] = createNamespace("water-mark");
14461
14454
  const WaterMark = (p) => {
14462
14455
  const props = mergeProps(p, {
14463
14456
  zIndex: 2e3,
@@ -14520,8 +14513,8 @@ const WaterMark = (p) => {
14520
14513
  }
14521
14514
  }, [gapX, gapY, rotate, width, height, image, content, font]);
14522
14515
  return /* @__PURE__ */ React.createElement("div", {
14523
- className: clsx(
14524
- bem$2({
14516
+ className: cls(
14517
+ bem$3({
14525
14518
  full: props.fullPage
14526
14519
  })
14527
14520
  ),
@@ -14532,8 +14525,8 @@ const WaterMark = (p) => {
14532
14525
  }
14533
14526
  });
14534
14527
  };
14535
- var index$1 = "";
14536
- const [bem$1] = createNamespace("floating-panel");
14528
+ var index$2 = "";
14529
+ const [bem$2] = createNamespace("floating-panel");
14537
14530
  function scrollReachBottom(el) {
14538
14531
  const scrollTop = getScrollTop$1(el);
14539
14532
  return scrollTop >= el.scrollHeight - getVisibleHeight(el);
@@ -14611,7 +14604,7 @@ const FloatingPanel = forwardRef(
14611
14604
  useEventListener("touchend", onTouchEnd, { target: root2, passive: false });
14612
14605
  return /* @__PURE__ */ React.createElement(animated.div, {
14613
14606
  ref: root2,
14614
- className: clsx(bem$1(), className),
14607
+ className: cls(bem$2(), className),
14615
14608
  style: {
14616
14609
  height: maxAnchor,
14617
14610
  transform: visibleH.to((h) => `translateY(calc(100% - ${h}px))`),
@@ -14619,12 +14612,12 @@ const FloatingPanel = forwardRef(
14619
14612
  }
14620
14613
  }, /* @__PURE__ */ React.createElement("div", {
14621
14614
  ref: header,
14622
- className: clsx(bem$1("header"))
14615
+ className: cls(bem$2("header"))
14623
14616
  }, /* @__PURE__ */ React.createElement("div", {
14624
- className: clsx(bem$1("thumb"))
14617
+ className: cls(bem$2("thumb"))
14625
14618
  })), /* @__PURE__ */ React.createElement(animated.div, {
14626
14619
  ref: body,
14627
- className: clsx(bem$1("body"))
14620
+ className: cls(bem$2("body"))
14628
14621
  }, props.children));
14629
14622
  }
14630
14623
  );
@@ -14633,8 +14626,8 @@ function findNearestAnchor(anchors, target) {
14633
14626
  return Math.abs(target - pre) < Math.abs(target - cur) ? pre : cur;
14634
14627
  });
14635
14628
  }
14636
- var index = "";
14637
- const [bem] = createNamespace("table");
14629
+ var index$1 = "";
14630
+ const [bem$1] = createNamespace("table");
14638
14631
  const Table = (props) => {
14639
14632
  const containerRef = useRef(null);
14640
14633
  const [containerWidth, setContainerWidth] = useState(0);
@@ -14717,10 +14710,10 @@ const Table = (props) => {
14717
14710
  if (!showHeader)
14718
14711
  return null;
14719
14712
  return /* @__PURE__ */ React.createElement("thead", {
14720
- className: clsx(bem("header"))
14713
+ className: cls(bem$1("header"))
14721
14714
  }, /* @__PURE__ */ React.createElement("tr", null, columns.map((column, index2) => /* @__PURE__ */ React.createElement("th", {
14722
14715
  key: column.dataIndex || index2,
14723
- className: clsx(bem("header-cell")),
14716
+ className: cls(bem$1("header-cell")),
14724
14717
  style: {
14725
14718
  ...columnStyles[index2],
14726
14719
  textAlign: column.align || "left"
@@ -14730,26 +14723,26 @@ const Table = (props) => {
14730
14723
  const renderBody = () => {
14731
14724
  if (dataSource.length === 0) {
14732
14725
  return /* @__PURE__ */ React.createElement("tbody", {
14733
- className: clsx(bem("body"))
14726
+ className: cls(bem$1("body"))
14734
14727
  }, /* @__PURE__ */ React.createElement("tr", null, /* @__PURE__ */ React.createElement("td", {
14735
14728
  colSpan: columns.length,
14736
- className: clsx(bem("empty-cell"))
14729
+ className: cls(bem$1("empty-cell"))
14737
14730
  }, /* @__PURE__ */ React.createElement("div", {
14738
- className: clsx(bem("empty-image"))
14731
+ className: cls(bem$1("empty-image"))
14739
14732
  }, emptyImage && /* @__PURE__ */ React.createElement("img", {
14740
14733
  src: emptyImage
14741
14734
  })), /* @__PURE__ */ React.createElement("div", null, emptyText))));
14742
14735
  }
14743
14736
  return /* @__PURE__ */ React.createElement("tbody", {
14744
- className: clsx(bem("body"))
14737
+ className: cls(bem$1("body"))
14745
14738
  }, dataSource.map((record, rowIndex) => /* @__PURE__ */ React.createElement("tr", {
14746
14739
  key: getRowKey(record, rowIndex),
14747
- className: clsx(bem("row"))
14740
+ className: cls(bem$1("row"))
14748
14741
  }, columns.map((column, colIndex) => {
14749
14742
  const text = record[column.dataIndex];
14750
14743
  return /* @__PURE__ */ React.createElement("td", {
14751
14744
  key: column.dataIndex || colIndex,
14752
- className: clsx(bem("cell")),
14745
+ className: cls(bem$1("cell")),
14753
14746
  style: {
14754
14747
  ...columnStyles[colIndex],
14755
14748
  textAlign: column.align || "left"
@@ -14757,16 +14750,16 @@ const Table = (props) => {
14757
14750
  }, column.render ? column.render(text, record, rowIndex) : text);
14758
14751
  }))));
14759
14752
  };
14760
- const classes = clsx(
14753
+ const classes = cls(
14761
14754
  className,
14762
- bem([
14755
+ bem$1([
14763
14756
  {
14764
14757
  bordered
14765
14758
  }
14766
14759
  ])
14767
14760
  );
14768
14761
  return /* @__PURE__ */ React.createElement("div", {
14769
- className: clsx(bem("wrapper")),
14762
+ className: cls(bem$1("wrapper")),
14770
14763
  ref: containerRef
14771
14764
  }, /* @__PURE__ */ React.createElement("table", {
14772
14765
  className: classes,
@@ -14777,4 +14770,232 @@ const Table = (props) => {
14777
14770
  ...restProps
14778
14771
  }, renderHeader(), renderBody()));
14779
14772
  };
14780
- export { ActionBar, ActionSheet, Area, Badge, Button, Calendar, Card, CascaderPopup as Cascader, Cell, CellGroup, Checkbox, CheckBoxGroup as CheckboxGroup, Circle, Collapse, CollapseItem, ConfigProvider, CountDown, CouponCell, CouponList, DateTimePicker as DatetimePicker, Dialog, Divider, DropdownMenu, Empty, FieldNamespace as Field, Flex, FloatingBall, FloatingPanel, Form, GridNamespace as Grid, GridItem, ImageNamespace as Image, ImagePreview, IndexAnchor, IndexBar, Input, Lazyload, List, Loading, NavBar, NoticeBar, exportNotifyNamespace as Notify, NumberKeyboard, Overlay, Pagination, PasswordInput, Picker, Popover, Popup, ProductCard, Progress, PullRefresh, Radio, RadioGroup, Rate, Search, Selector, ShareSheet, Sidebar, SidebarItem, Skeleton, Sku, Slider, Space, Stepper, Steps, StepsItem, Sticky, SubmitBar, SwipeCell, Swiper, Swtich as Switch, Tabbar, TabbarItem, Table, Tabs, Tag, Toast, TypographyNamespace as Typography, Uploader, WaterMark, index$16 as hooks };
14773
+ var index = "";
14774
+ const [bem] = createNamespace("tree-select");
14775
+ const TreeSelectItem = ({
14776
+ node,
14777
+ selected,
14778
+ multiple,
14779
+ level = 0,
14780
+ onClick,
14781
+ fieldNames
14782
+ }) => {
14783
+ const {
14784
+ title: titleKey = "title",
14785
+ value: valueKey = "value",
14786
+ children: childrenKey = "children"
14787
+ } = fieldNames || {};
14788
+ const title = node[titleKey];
14789
+ const children = node[childrenKey];
14790
+ const hasChildren = children && children.length > 0;
14791
+ const handleClick = () => {
14792
+ if (!node.disabled) {
14793
+ onClick == null ? void 0 : onClick(node);
14794
+ }
14795
+ };
14796
+ return /* @__PURE__ */ React.createElement("div", {
14797
+ className: cls(bem("item-wrapper"))
14798
+ }, /* @__PURE__ */ React.createElement("div", {
14799
+ className: cls(
14800
+ bem("item", {
14801
+ active: selected,
14802
+ disabled: node.disabled,
14803
+ level: `level-${level}`
14804
+ }),
14805
+ node.className
14806
+ ),
14807
+ style: node.style,
14808
+ onClick: handleClick
14809
+ }, /* @__PURE__ */ React.createElement("div", {
14810
+ className: cls(bem("item-content"))
14811
+ }, node.icon && /* @__PURE__ */ React.createElement("span", {
14812
+ className: cls(bem("item-icon"))
14813
+ }, node.icon), /* @__PURE__ */ React.createElement("span", {
14814
+ className: cls(bem("item-title"))
14815
+ }, title)), selected && !multiple && /* @__PURE__ */ React.createElement(Success, {
14816
+ className: cls(bem("item-selected-icon"))
14817
+ }), multiple && /* @__PURE__ */ React.createElement("input", {
14818
+ type: "checkbox",
14819
+ checked: selected,
14820
+ disabled: node.disabled,
14821
+ className: cls(bem("item-checkbox")),
14822
+ readOnly: true
14823
+ })), hasChildren && /* @__PURE__ */ React.createElement("div", {
14824
+ className: cls(bem("item-children"))
14825
+ }, children.map((child, index2) => /* @__PURE__ */ React.createElement(TreeSelectItem, {
14826
+ key: child[valueKey] || index2,
14827
+ node: child,
14828
+ selected: false,
14829
+ multiple,
14830
+ level: level + 1,
14831
+ onClick,
14832
+ fieldNames
14833
+ }))));
14834
+ };
14835
+ const TreeSelect = (p) => {
14836
+ const props = mergeProps(p, {
14837
+ treeData: [],
14838
+ height: 272,
14839
+ navWidth: 80,
14840
+ defaultActiveIndex: 0,
14841
+ fieldNames: {
14842
+ title: "title",
14843
+ value: "value",
14844
+ key: "key",
14845
+ children: "children"
14846
+ }
14847
+ });
14848
+ const {
14849
+ title: titleKey,
14850
+ value: valueKey,
14851
+ key: keyKey,
14852
+ children: childrenKey
14853
+ } = extend(
14854
+ {
14855
+ title: "title",
14856
+ value: "value",
14857
+ key: "key",
14858
+ children: "children"
14859
+ },
14860
+ props.fieldNames
14861
+ );
14862
+ const [selectedValue, setSelectedValue] = useMergedState({
14863
+ value: props.value,
14864
+ defaultValue: props.defaultValue
14865
+ });
14866
+ const [activeIndex, setActiveIndex] = useMergedState({
14867
+ value: props.activeIndex,
14868
+ defaultValue: props.defaultActiveIndex
14869
+ });
14870
+ const navItems = useMemo(() => {
14871
+ return props.treeData || [];
14872
+ }, [props.treeData]);
14873
+ const contentItems = useMemo(() => {
14874
+ const currentNav = navItems[activeIndex];
14875
+ return (currentNav == null ? void 0 : currentNav[childrenKey]) || [];
14876
+ }, [navItems, activeIndex, childrenKey]);
14877
+ const isValueSelected = useMemoizedFn((value) => {
14878
+ if (props.multiple) {
14879
+ return Array.isArray(selectedValue) && selectedValue.includes(value);
14880
+ }
14881
+ return selectedValue === value;
14882
+ });
14883
+ const findNode = useMemoizedFn(
14884
+ (nodes, value) => {
14885
+ for (const node of nodes) {
14886
+ if (node[valueKey] === value) {
14887
+ return node;
14888
+ }
14889
+ if (node[childrenKey]) {
14890
+ const found = findNode(node[childrenKey], value);
14891
+ if (found)
14892
+ return found;
14893
+ }
14894
+ }
14895
+ return null;
14896
+ }
14897
+ );
14898
+ const getSelectedNodes = useMemoizedFn(
14899
+ (value) => {
14900
+ const values = Array.isArray(value) ? value : [value];
14901
+ const nodes = [];
14902
+ values.forEach((val) => {
14903
+ const node = findNode(props.treeData || [], val);
14904
+ if (node)
14905
+ nodes.push(node);
14906
+ });
14907
+ return nodes;
14908
+ }
14909
+ );
14910
+ const handleNavClick = useMemoizedFn((index2) => {
14911
+ var _a;
14912
+ setActiveIndex(index2);
14913
+ (_a = props.onNavClick) == null ? void 0 : _a.call(props, index2);
14914
+ });
14915
+ const handleItemClick = useMemoizedFn((node) => {
14916
+ var _a;
14917
+ const value = node[valueKey];
14918
+ let newValue;
14919
+ if (props.multiple) {
14920
+ const currentValues = Array.isArray(selectedValue) ? selectedValue : [];
14921
+ if (currentValues.includes(value)) {
14922
+ newValue = currentValues.filter((v) => v !== value);
14923
+ } else {
14924
+ newValue = [...currentValues, value];
14925
+ }
14926
+ } else {
14927
+ newValue = value;
14928
+ }
14929
+ setSelectedValue(newValue);
14930
+ const selectedNodes = getSelectedNodes(newValue);
14931
+ (_a = props.onChange) == null ? void 0 : _a.call(props, newValue, selectedNodes);
14932
+ });
14933
+ const renderNav = () => /* @__PURE__ */ React.createElement("div", {
14934
+ className: cls(bem("nav"), props.navClassName),
14935
+ style: {
14936
+ width: props.navWidth,
14937
+ height: props.height,
14938
+ ...props.navStyle
14939
+ }
14940
+ }, navItems.map((item, index2) => {
14941
+ const isActive = index2 === activeIndex;
14942
+ const title = item[titleKey];
14943
+ return /* @__PURE__ */ React.createElement("div", {
14944
+ key: item[keyKey] || item[valueKey] || index2,
14945
+ className: cls(
14946
+ bem("nav-item", {
14947
+ active: isActive,
14948
+ disabled: item.disabled
14949
+ }),
14950
+ item.className
14951
+ ),
14952
+ style: item.style,
14953
+ onClick: () => !item.disabled && handleNavClick(index2)
14954
+ }, item.icon && /* @__PURE__ */ React.createElement("span", {
14955
+ className: cls(bem("nav-icon"))
14956
+ }, item.icon), /* @__PURE__ */ React.createElement("span", {
14957
+ className: cls(bem("nav-text"))
14958
+ }, title), item.badge && /* @__PURE__ */ React.createElement("span", {
14959
+ className: cls(bem("nav-badge"))
14960
+ }, item.badge));
14961
+ }));
14962
+ const renderContent = () => {
14963
+ const currentNav = navItems[activeIndex];
14964
+ if (props.contentRender && currentNav) {
14965
+ return /* @__PURE__ */ React.createElement("div", {
14966
+ className: cls(bem("content"), props.contentClassName),
14967
+ style: {
14968
+ height: props.height,
14969
+ ...props.contentStyle
14970
+ }
14971
+ }, props.contentRender(currentNav));
14972
+ }
14973
+ return /* @__PURE__ */ React.createElement("div", {
14974
+ className: cls(bem("content"), props.contentClassName),
14975
+ style: {
14976
+ height: props.height,
14977
+ ...props.contentStyle
14978
+ }
14979
+ }, contentItems.length > 0 ? /* @__PURE__ */ React.createElement("div", {
14980
+ className: cls(bem("items"))
14981
+ }, contentItems.map((item, index2) => {
14982
+ const value = item[valueKey];
14983
+ const selected = isValueSelected(value);
14984
+ return /* @__PURE__ */ React.createElement(TreeSelectItem, {
14985
+ key: item[keyKey] || value || index2,
14986
+ node: item,
14987
+ selected,
14988
+ multiple: props.multiple,
14989
+ onClick: handleItemClick,
14990
+ fieldNames: props.fieldNames
14991
+ });
14992
+ })) : /* @__PURE__ */ React.createElement("div", {
14993
+ className: cls(bem("content-empty"))
14994
+ }, props.placeholder || "\u6682\u65E0\u6570\u636E"));
14995
+ };
14996
+ return /* @__PURE__ */ React.createElement("div", {
14997
+ className: cls(props.className, bem()),
14998
+ style: props.style
14999
+ }, renderNav(), renderContent());
15000
+ };
15001
+ export { ActionBar, ActionSheet, Area, Badge, Button, Calendar, Card, CascaderPopup as Cascader, Cell, CellGroup, Checkbox, CheckBoxGroup as CheckboxGroup, Circle, Collapse, CollapseItem, ConfigProvider, CountDown, CouponCell, CouponList, DateTimePicker as DatetimePicker, Dialog, Divider, DropdownMenu, Empty, FieldNamespace as Field, Flex, FloatingBall, FloatingPanel, Form, GridNamespace as Grid, GridItem, ImageNamespace as Image, ImagePreview, IndexAnchor, IndexBar, Input, Lazyload, List, Loading, NavBar, NoticeBar, exportNotifyNamespace as Notify, NumberKeyboard, Overlay, Pagination, PasswordInput, Picker, Popover, Popup, ProductCard, Progress, PullRefresh, Radio, RadioGroup, Rate, Search, Selector, ShareSheet, Sidebar, SidebarItem, Skeleton, Sku, Slider, Space, Stepper, Steps, StepsItem, Sticky, SubmitBar, SwipeCell, Swiper, Swtich as Switch, Tabbar, TabbarItem, Table, Tabs, Tag, Toast, TreeSelect, TypographyNamespace as Typography, Uploader, WaterMark, index$17 as hooks };