react-vant-nova 1.0.8 → 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.
@@ -1,5 +1,5 @@
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
5
  import * as require$$0 from "react-dom";
@@ -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,
@@ -2221,7 +2221,7 @@ Dialog.confirm = (props) => {
2221
2221
  });
2222
2222
  });
2223
2223
  };
2224
- const [bem$1s] = createNamespace("input");
2224
+ const [bem$1t] = createNamespace("input");
2225
2225
  const Input$1 = forwardRef((p, ref) => {
2226
2226
  const props = mergeProps(p, {
2227
2227
  clearIcon: /* @__PURE__ */ React.createElement(Clear, null),
@@ -2328,7 +2328,7 @@ const Input$1 = forwardRef((p, ref) => {
2328
2328
  inputMode,
2329
2329
  ref: inputRef,
2330
2330
  name,
2331
- className: clsx(bem$1s("control")),
2331
+ className: cls(bem$1t("control")),
2332
2332
  disabled,
2333
2333
  autoFocus,
2334
2334
  readOnly,
@@ -2364,21 +2364,21 @@ const Input$1 = forwardRef((p, ref) => {
2364
2364
  (_a = props.onClear) == null ? void 0 : _a.call(props, e);
2365
2365
  };
2366
2366
  return /* @__PURE__ */ React.createElement("div", {
2367
- className: clsx(bem$1s([align]), className),
2367
+ className: cls(bem$1t([align]), className),
2368
2368
  style
2369
2369
  }, props.prefix && /* @__PURE__ */ React.createElement("div", {
2370
- className: clsx(bem$1s("prefix"))
2370
+ className: cls(bem$1t("prefix"))
2371
2371
  }, props.prefix), renderInput(), showClear && React.cloneElement(
2372
2372
  props.clearIcon || /* @__PURE__ */ React.createElement(Clear, null),
2373
2373
  {
2374
- className: clsx(bem$1s("clear")),
2374
+ className: cls(bem$1t("clear")),
2375
2375
  onTouchStart: handleClear
2376
2376
  }
2377
2377
  ), props.suffix && /* @__PURE__ */ React.createElement("div", {
2378
- className: clsx(bem$1s("suffix"))
2378
+ className: cls(bem$1t("suffix"))
2379
2379
  }, props.suffix));
2380
2380
  });
2381
- const [bem$1r] = createNamespace("textarea");
2381
+ const [bem$1s] = createNamespace("textarea");
2382
2382
  const TextArea = forwardRef((p, ref) => {
2383
2383
  const props = mergeProps(p, {
2384
2384
  rows: 2,
@@ -2445,7 +2445,7 @@ const TextArea = forwardRef((p, ref) => {
2445
2445
  adjustSize();
2446
2446
  }, [value]);
2447
2447
  const controlClass = React.useMemo(() => {
2448
- return bem$1r("control", [
2448
+ return bem$1s("control", [
2449
2449
  {
2450
2450
  "min-height": !props.autoSize,
2451
2451
  clear: props.clearable
@@ -2481,9 +2481,9 @@ const TextArea = forwardRef((p, ref) => {
2481
2481
  if (showWordLimit) {
2482
2482
  const currentCount = (value ? `${value}` : "").length;
2483
2483
  return /* @__PURE__ */ React.createElement("div", {
2484
- className: clsx(bem$1r("word-limit"))
2484
+ className: cls(bem$1s("word-limit"))
2485
2485
  }, typeof showWordLimit === "function" ? showWordLimit({ currentCount, maxLength }) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", {
2486
- className: clsx(bem$1r("word-num"))
2486
+ className: cls(bem$1s("word-num"))
2487
2487
  }, currentCount), maxLength ? `/${maxLength}` : false));
2488
2488
  }
2489
2489
  return null;
@@ -2502,13 +2502,13 @@ const TextArea = forwardRef((p, ref) => {
2502
2502
  return false;
2503
2503
  }, [value, props.clearTrigger, hasFocus]);
2504
2504
  return /* @__PURE__ */ React.createElement("div", {
2505
- className: clsx(bem$1r(), className),
2505
+ className: cls(bem$1s(), className),
2506
2506
  style
2507
2507
  }, /* @__PURE__ */ React.createElement("textarea", {
2508
2508
  ref: nativeTextAreaRef,
2509
2509
  name,
2510
2510
  rows,
2511
- className: clsx(controlClass),
2511
+ className: cls(controlClass),
2512
2512
  value,
2513
2513
  disabled,
2514
2514
  autoFocus,
@@ -2537,14 +2537,14 @@ const TextArea = forwardRef((p, ref) => {
2537
2537
  },
2538
2538
  onClick: props.onClick
2539
2539
  }), showClear && React.cloneElement(props.clearIcon, {
2540
- className: clsx(bem$1r("clear")),
2540
+ className: cls(bem$1s("clear")),
2541
2541
  onTouchStart: handleClear
2542
2542
  }), renderWordLimit());
2543
2543
  });
2544
+ var index$Z = "";
2544
2545
  var index$Y = "";
2545
- var index$X = "";
2546
2546
  const Input = Object.assign(Input$1, { TextArea });
2547
- const [bem$1q] = createNamespace("field");
2547
+ const [bem$1r] = createNamespace("field");
2548
2548
  const Field = forwardRef((p, ref) => {
2549
2549
  var _a;
2550
2550
  const props = mergeProps(p, {
@@ -2626,7 +2626,7 @@ const Field = forwardRef((p, ref) => {
2626
2626
  } = props;
2627
2627
  if (isDef(props.children)) {
2628
2628
  return /* @__PURE__ */ React.createElement("div", {
2629
- className: clsx(bem$1q("children"))
2629
+ className: cls(bem$1r("children"))
2630
2630
  }, props.children);
2631
2631
  }
2632
2632
  const commonProps = {
@@ -2670,7 +2670,7 @@ const Field = forwardRef((p, ref) => {
2670
2670
  if (!leftIcon)
2671
2671
  return null;
2672
2672
  return /* @__PURE__ */ React.createElement("div", {
2673
- className: clsx(bem$1q("left-icon")),
2673
+ className: cls(bem$1r("left-icon")),
2674
2674
  onClick: onClickLeftIcon
2675
2675
  }, leftIcon);
2676
2676
  };
@@ -2679,7 +2679,7 @@ const Field = forwardRef((p, ref) => {
2679
2679
  if (!rightIcon)
2680
2680
  return null;
2681
2681
  return /* @__PURE__ */ React.createElement("div", {
2682
- className: clsx(bem$1q("right-icon")),
2682
+ className: cls(bem$1r("right-icon")),
2683
2683
  onClick: onClickRightIcon
2684
2684
  }, rightIcon);
2685
2685
  };
@@ -2687,7 +2687,7 @@ const Field = forwardRef((p, ref) => {
2687
2687
  const message = props.errorMessage;
2688
2688
  if (message) {
2689
2689
  return /* @__PURE__ */ React.createElement("div", {
2690
- className: clsx(bem$1q("error-message"))
2690
+ className: cls(bem$1r("error-message"))
2691
2691
  }, message);
2692
2692
  }
2693
2693
  return null;
@@ -2695,7 +2695,7 @@ const Field = forwardRef((p, ref) => {
2695
2695
  const renderIntro = () => {
2696
2696
  if (props.intro) {
2697
2697
  return /* @__PURE__ */ React.createElement("div", {
2698
- className: clsx(bem$1q("intro"))
2698
+ className: cls(bem$1r("intro"))
2699
2699
  }, props.intro);
2700
2700
  }
2701
2701
  return null;
@@ -2711,7 +2711,7 @@ const Field = forwardRef((p, ref) => {
2711
2711
  dialogProps = customDialogProps;
2712
2712
  }
2713
2713
  return /* @__PURE__ */ React.createElement("div", {
2714
- className: clsx(bem$1q("tooltip")),
2714
+ className: cls(bem$1r("tooltip")),
2715
2715
  onClick: () => Dialog.show(dialogProps)
2716
2716
  }, icon);
2717
2717
  }
@@ -2753,13 +2753,13 @@ const Field = forwardRef((p, ref) => {
2753
2753
  clickable,
2754
2754
  extra: props.extra,
2755
2755
  titleStyle: { ...labelStyle(), ...titleStyle },
2756
- valueClass: clsx(bem$1q("value", [controlAlign]), valueClass),
2757
- titleClass: clsx(bem$1q("label", labelAlign), labelClass),
2756
+ valueClass: cls(bem$1r("value", [controlAlign]), valueClass),
2757
+ titleClass: cls(bem$1r("label", labelAlign), labelClass),
2758
2758
  arrowDirection,
2759
2759
  onClick: props.onClick,
2760
2760
  style: props.style,
2761
- className: clsx(
2762
- bem$1q({
2761
+ className: cls(
2762
+ bem$1r({
2763
2763
  error,
2764
2764
  disabled,
2765
2765
  [`label-${labelAlign}`]: labelAlign
@@ -2767,20 +2767,20 @@ const Field = forwardRef((p, ref) => {
2767
2767
  className
2768
2768
  )
2769
2769
  }, /* @__PURE__ */ React.createElement("div", {
2770
- className: clsx(bem$1q("body"))
2770
+ className: cls(bem$1r("body"))
2771
2771
  }, props.prefix && /* @__PURE__ */ React.createElement("div", {
2772
- className: clsx(bem$1q("prefix"))
2772
+ className: cls(bem$1r("prefix"))
2773
2773
  }, props.prefix), /* @__PURE__ */ React.createElement("div", {
2774
- className: clsx(bem$1q("control-wrapper"))
2774
+ className: cls(bem$1r("control-wrapper"))
2775
2775
  }, renderInput()), renderRightIcon(), suffix && /* @__PURE__ */ React.createElement("div", {
2776
- className: clsx(bem$1q("suffix"))
2776
+ className: cls(bem$1r("suffix"))
2777
2777
  }, suffix)), renderMessage(), renderIntro());
2778
2778
  });
2779
2779
  const FIELD_KEY = Symbol("field");
2780
2780
  const FieldNamespace = Object.assign(Field, { [COMPONENT_TYPE_KEY]: FIELD_KEY });
2781
- var index$W = "";
2781
+ var index$X = "";
2782
2782
  const FlexContext = createContext({});
2783
- const [bem$1p] = createNamespace("flexbox");
2783
+ const [bem$1q] = createNamespace("flexbox");
2784
2784
  const Flex$1 = (props) => {
2785
2785
  const {
2786
2786
  direction,
@@ -2808,9 +2808,9 @@ const Flex$1 = (props) => {
2808
2808
  } : {},
2809
2809
  ...style
2810
2810
  };
2811
- const wrapCls = clsx(
2811
+ const wrapCls = cls(
2812
2812
  className,
2813
- bem$1p([
2813
+ bem$1q([
2814
2814
  direction,
2815
2815
  wrap,
2816
2816
  justify ? `justify-${justify}` : false,
@@ -2825,10 +2825,10 @@ const Flex$1 = (props) => {
2825
2825
  ...rest
2826
2826
  }, children));
2827
2827
  };
2828
- const [bem$1o] = createNamespace("flexitem");
2828
+ const [bem$1p] = createNamespace("flexitem");
2829
2829
  const FlexItem = (props) => {
2830
2830
  const { style, className, span, children, flex, ...others } = props;
2831
- 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);
2832
2832
  const parseFlex = (_flex) => {
2833
2833
  if (typeof _flex === "number") {
2834
2834
  return `${_flex} ${_flex} auto`;
@@ -2864,9 +2864,9 @@ const FlexItem = (props) => {
2864
2864
  });
2865
2865
  };
2866
2866
  const Flex = Object.assign(Flex$1, { Item: FlexItem });
2867
- var index$V = "";
2867
+ var index$W = "";
2868
2868
  const formatGap = (gap) => typeof gap === "number" ? `${gap}px` : gap;
2869
- const [bem$1n] = createNamespace("space");
2869
+ const [bem$1o] = createNamespace("space");
2870
2870
  const Space = (props) => {
2871
2871
  const { wrap, block, direction = "horizontal", align, justify } = props;
2872
2872
  const style = React.useMemo(() => {
@@ -2892,9 +2892,9 @@ const Space = (props) => {
2892
2892
  [props.children]
2893
2893
  );
2894
2894
  return /* @__PURE__ */ React.createElement("div", {
2895
- className: clsx(
2895
+ className: cls(
2896
2896
  props.className,
2897
- bem$1n({
2897
+ bem$1o({
2898
2898
  wrap,
2899
2899
  block,
2900
2900
  [`${direction}`]: !!direction,
@@ -2908,13 +2908,13 @@ const Space = (props) => {
2908
2908
  return /* @__PURE__ */ React.createElement(React.Fragment, {
2909
2909
  key: idx
2910
2910
  }, /* @__PURE__ */ React.createElement("div", {
2911
- className: clsx(bem$1n("item"))
2911
+ className: cls(bem$1o("item"))
2912
2912
  }, child), !!props.divider && idx !== childList.length - 1 && /* @__PURE__ */ React.createElement("div", {
2913
- className: clsx(bem$1n("item-divider"))
2913
+ className: cls(bem$1o("item-divider"))
2914
2914
  }, props.divider));
2915
2915
  }));
2916
2916
  };
2917
- var index$U = "";
2917
+ var index$V = "";
2918
2918
  const CheckMark = memo(() => {
2919
2919
  return /* @__PURE__ */ React.createElement("svg", {
2920
2920
  width: "17px",
@@ -2943,7 +2943,7 @@ const CheckMark = memo(() => {
2943
2943
  points: "34.2767388 22 24.797043 31.4796958 21 27.6826527"
2944
2944
  })))))));
2945
2945
  });
2946
- const [bem$1m] = createNamespace("selector");
2946
+ const [bem$1n] = createNamespace("selector");
2947
2947
  const Selector = (p) => {
2948
2948
  const props = mergeProps(p, {
2949
2949
  multiple: false,
@@ -2966,8 +2966,8 @@ const Selector = (p) => {
2966
2966
  const items = props.options.map((option) => {
2967
2967
  const active = (value || []).includes(option.value);
2968
2968
  const disabled = option.disabled || props.disabled;
2969
- const itemCls = clsx(
2970
- bem$1m("item", {
2969
+ const itemCls = cls(
2970
+ bem$1n("item", {
2971
2971
  active: active && !props.multiple,
2972
2972
  "multiple-active": active && props.multiple,
2973
2973
  disabled
@@ -2989,17 +2989,17 @@ const Selector = (p) => {
2989
2989
  }
2990
2990
  }
2991
2991
  }, option.label, option.description && /* @__PURE__ */ React.createElement("div", {
2992
- className: clsx(bem$1m("item-description"))
2992
+ className: cls(bem$1n("item-description"))
2993
2993
  }, option.description), active && props.showCheckMark && /* @__PURE__ */ React.createElement("div", {
2994
- className: clsx(bem$1m("check-mark-wrapper"))
2994
+ className: cls(bem$1n("check-mark-wrapper"))
2995
2995
  }, /* @__PURE__ */ React.createElement(CheckMark, null)));
2996
2996
  });
2997
2997
  return /* @__PURE__ */ React.createElement("div", {
2998
- className: clsx(bem$1m(), props.className),
2998
+ className: cls(bem$1n(), props.className),
2999
2999
  style: props.style
3000
3000
  }, items);
3001
3001
  };
3002
- var index$T = "";
3002
+ var index$U = "";
3003
3003
  function useResizeEffect(effect, targetRef) {
3004
3004
  const fn = useMemoizedFn(effect);
3005
3005
  useIsomorphicLayoutEffect(() => {
@@ -3134,7 +3134,7 @@ const Ellipsis = (p) => {
3134
3134
  };
3135
3135
  return /* @__PURE__ */ React.createElement("div", {
3136
3136
  ref: rootRef,
3137
- className: clsx("rv-typography__ellipsis", props.className),
3137
+ className: cls("rv-typography__ellipsis", props.className),
3138
3138
  style: props.style
3139
3139
  }, renderContent());
3140
3140
  };
@@ -3144,7 +3144,7 @@ function pxToNumber(value) {
3144
3144
  const match = value.match(/^\d*(\.\d*)?/);
3145
3145
  return match ? Number(match[0]) : 0;
3146
3146
  }
3147
- const [bem$1l] = createNamespace("typography");
3147
+ const [bem$1m] = createNamespace("typography");
3148
3148
  const ellipsisDefaultValue = {
3149
3149
  rows: 1
3150
3150
  };
@@ -3221,10 +3221,10 @@ const TypographyBase = ({
3221
3221
  if (isEnhanceEllipsis)
3222
3222
  return /* @__PURE__ */ React.createElement(Ellipsis, {
3223
3223
  onContentClick: internalClick,
3224
- className: clsx(
3224
+ className: cls(
3225
3225
  className,
3226
3226
  `rv-typography__${renderType}`,
3227
- bem$1l([
3227
+ bem$1m([
3228
3228
  type,
3229
3229
  size,
3230
3230
  {
@@ -3242,10 +3242,10 @@ const TypographyBase = ({
3242
3242
  style: measureStyle
3243
3243
  }, children);
3244
3244
  return /* @__PURE__ */ React.createElement(TagElement, {
3245
- className: clsx(
3245
+ className: cls(
3246
3246
  className,
3247
3247
  `rv-typography__${renderType}`,
3248
- bem$1l([
3248
+ bem$1m([
3249
3249
  type,
3250
3250
  size,
3251
3251
  {
@@ -3285,7 +3285,7 @@ const Link = (props) => /* @__PURE__ */ React.createElement(TypographyBase, {
3285
3285
  ...props
3286
3286
  });
3287
3287
  const TypographyNamespace = Object.assign(TypographyBase, { Text, Title, Link });
3288
- var index$S = "";
3288
+ var index$T = "";
3289
3289
  function parseFormat(format2, currentTime) {
3290
3290
  const { days } = currentTime;
3291
3291
  let { hours, minutes, seconds, milliseconds } = currentTime;
@@ -3321,7 +3321,7 @@ function parseFormat(format2, currentTime) {
3321
3321
  }
3322
3322
  return format2;
3323
3323
  }
3324
- const [bem$1k] = createNamespace("count-down");
3324
+ const [bem$1l] = createNamespace("count-down");
3325
3325
  const CountDown = forwardRef((p, ref) => {
3326
3326
  const props = mergeProps(p, {
3327
3327
  autoStart: true,
@@ -3355,12 +3355,12 @@ const CountDown = forwardRef((p, ref) => {
3355
3355
  reset: resetTime
3356
3356
  }));
3357
3357
  return /* @__PURE__ */ React.createElement("div", {
3358
- className: clsx(props.className, bem$1k()),
3358
+ className: cls(props.className, bem$1l()),
3359
3359
  style: props.style
3360
3360
  }, props.children ? props.children(current) : timeText);
3361
3361
  });
3362
- var index$R = "";
3363
- const [bem$1j] = createNamespace("divider");
3362
+ var index$S = "";
3363
+ const [bem$1k] = createNamespace("divider");
3364
3364
  const Divider = ({
3365
3365
  children,
3366
3366
  className,
@@ -3372,9 +3372,9 @@ const Divider = ({
3372
3372
  }) => {
3373
3373
  return /* @__PURE__ */ React.createElement("div", {
3374
3374
  role: "separator",
3375
- className: clsx(
3375
+ className: cls(
3376
3376
  className,
3377
- bem$1j({
3377
+ bem$1k({
3378
3378
  dashed,
3379
3379
  hairline,
3380
3380
  "vertical": type === "vertical",
@@ -3384,8 +3384,8 @@ const Divider = ({
3384
3384
  ...props
3385
3385
  }, children);
3386
3386
  };
3387
- var index$Q = "";
3388
- const [bem$1i] = createNamespace("image");
3387
+ var index$R = "";
3388
+ const [bem$1j] = createNamespace("image");
3389
3389
  const Image$1 = (props) => {
3390
3390
  const [status, setStatus] = useSetState({ loading: true, error: false });
3391
3391
  const imgRef = useRef(null);
@@ -3428,7 +3428,7 @@ const Image$1 = (props) => {
3428
3428
  const renderLoadingIcon = () => {
3429
3429
  if (loadingIcon)
3430
3430
  return React.cloneElement(loadingIcon, {
3431
- className: clsx(bem$1i("loading-icon")),
3431
+ className: cls(bem$1j("loading-icon")),
3432
3432
  fontSize: props.iconSize
3433
3433
  });
3434
3434
  return null;
@@ -3436,7 +3436,7 @@ const Image$1 = (props) => {
3436
3436
  const renderErrorIcon = () => {
3437
3437
  if (errorIcon) {
3438
3438
  return React.cloneElement(errorIcon, {
3439
- className: clsx(bem$1i("error-icon")),
3439
+ className: cls(bem$1j("error-icon")),
3440
3440
  fontSize: props.iconSize
3441
3441
  });
3442
3442
  }
@@ -3445,13 +3445,13 @@ const Image$1 = (props) => {
3445
3445
  const renderPlaceholder = () => {
3446
3446
  if (status.loading && showLoading) {
3447
3447
  return /* @__PURE__ */ React.createElement("div", {
3448
- className: clsx(bem$1i("loading")),
3448
+ className: cls(bem$1j("loading")),
3449
3449
  onClick: props.onClick
3450
3450
  }, renderLoadingIcon());
3451
3451
  }
3452
3452
  if (status.error && showError) {
3453
3453
  return /* @__PURE__ */ React.createElement("div", {
3454
- className: clsx(bem$1i("error")),
3454
+ className: cls(bem$1j("error")),
3455
3455
  onClick: props.onClick
3456
3456
  }, renderErrorIcon());
3457
3457
  }
@@ -3462,7 +3462,7 @@ const Image$1 = (props) => {
3462
3462
  return null;
3463
3463
  }
3464
3464
  const attrs = {
3465
- className: clsx(bem$1i("img")),
3465
+ className: cls(bem$1j("img")),
3466
3466
  style: {
3467
3467
  objectFit: fit
3468
3468
  }
@@ -3477,9 +3477,9 @@ const Image$1 = (props) => {
3477
3477
  });
3478
3478
  };
3479
3479
  return /* @__PURE__ */ React.createElement("div", {
3480
- className: clsx(
3480
+ className: cls(
3481
3481
  props.className,
3482
- bem$1i({
3482
+ bem$1j({
3483
3483
  block,
3484
3484
  round: props.round
3485
3485
  })
@@ -3488,11 +3488,11 @@ const Image$1 = (props) => {
3488
3488
  onClick: props.onClick
3489
3489
  }, renderImage(), renderPlaceholder(), props.children);
3490
3490
  };
3491
+ var index$Q = "";
3491
3492
  var index$P = "";
3492
- var index$O = "";
3493
3493
  const DEFAULT_ROW_WIDTH = "100%";
3494
3494
  const DEFAULT_LAST_ROW_WIDTH = "60%";
3495
- const [bem$1h] = createNamespace("skeleton");
3495
+ const [bem$1i] = createNamespace("skeleton");
3496
3496
  const Skeleton = ({
3497
3497
  children,
3498
3498
  className,
@@ -3527,7 +3527,7 @@ const Skeleton = ({
3527
3527
  const renderAvatar = () => {
3528
3528
  if (props.avatar) {
3529
3529
  return /* @__PURE__ */ React.createElement("div", {
3530
- className: clsx(bem$1h("avatar", props.avatarShape)),
3530
+ className: cls(bem$1i("avatar", props.avatarShape)),
3531
3531
  style: getSizeStyle(props.avatarSize)
3532
3532
  });
3533
3533
  }
@@ -3538,7 +3538,7 @@ const Skeleton = ({
3538
3538
  const width = addUnit(props.titleWidth);
3539
3539
  const height = addUnit(getRowHeight(0));
3540
3540
  return /* @__PURE__ */ React.createElement("div", {
3541
- className: clsx(bem$1h("title")),
3541
+ className: cls(bem$1i("title")),
3542
3542
  style: { width, height }
3543
3543
  });
3544
3544
  }
@@ -3549,23 +3549,23 @@ const Skeleton = ({
3549
3549
  const height = addUnit(getRowHeight(i));
3550
3550
  return /* @__PURE__ */ React.createElement("div", {
3551
3551
  key: i,
3552
- className: clsx(bem$1h("row")),
3552
+ className: cls(bem$1i("row")),
3553
3553
  style: { width, height }
3554
3554
  });
3555
3555
  });
3556
3556
  if (!props.loading)
3557
3557
  return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
3558
3558
  return /* @__PURE__ */ React.createElement("div", {
3559
- className: clsx(
3559
+ className: cls(
3560
3560
  className,
3561
- bem$1h({ animate: props.animate, round: props.round })
3561
+ bem$1i({ animate: props.animate, round: props.round })
3562
3562
  ),
3563
3563
  style
3564
3564
  }, renderAvatar(), /* @__PURE__ */ React.createElement("div", {
3565
- className: clsx(bem$1h("content"))
3565
+ className: cls(bem$1i("content"))
3566
3566
  }, renderTitle(), renderRows()));
3567
3567
  };
3568
- const [bem$1g] = createNamespace("lazyload");
3568
+ const [bem$1h] = createNamespace("lazyload");
3569
3569
  const Lazyload = (p) => {
3570
3570
  const props = mergeProps(p, {
3571
3571
  placeholder: /* @__PURE__ */ React.createElement(Skeleton, {
@@ -3577,16 +3577,16 @@ const Lazyload = (p) => {
3577
3577
  const { height, placeholder, children, className, style } = props;
3578
3578
  return inViewPort ? /* @__PURE__ */ React.createElement(React.Fragment, null, children) : /* @__PURE__ */ React.createElement("div", {
3579
3579
  ref,
3580
- className: clsx(bem$1g(), className),
3580
+ className: cls(bem$1h(), className),
3581
3581
  style: { height, ...style }
3582
3582
  }, placeholder);
3583
3583
  };
3584
3584
  const getLazyImagePlaceholder = (bem2) => /* @__PURE__ */ React.createElement("div", {
3585
- className: clsx(bem2("loading"))
3585
+ className: cls(bem2("loading"))
3586
3586
  }, /* @__PURE__ */ React.createElement(Photo, {
3587
- className: clsx(bem2("loading-icon"))
3587
+ className: cls(bem2("loading-icon"))
3588
3588
  }));
3589
- const [bem$1f] = createNamespace("image");
3589
+ const [bem$1g] = createNamespace("image");
3590
3590
  const LazyImage = (p) => {
3591
3591
  const props = mergeProps(p, {
3592
3592
  fit: "fill",
@@ -3599,13 +3599,13 @@ const LazyImage = (p) => {
3599
3599
  const { lazyload, ...imageProps } = props;
3600
3600
  const renderPlaceholder = () => {
3601
3601
  if (typeof lazyload === "boolean")
3602
- return getLazyImagePlaceholder(bem$1f);
3603
- return lazyload.placeholder || getLazyImagePlaceholder(bem$1f);
3602
+ return getLazyImagePlaceholder(bem$1g);
3603
+ return lazyload.placeholder || getLazyImagePlaceholder(bem$1g);
3604
3604
  };
3605
3605
  if (lazyload) {
3606
3606
  const { className, style, height, width } = imageProps;
3607
3607
  const attrs = {
3608
- className: clsx(className, bem$1f({ block: imageProps.block })),
3608
+ className: cls(className, bem$1g({ block: imageProps.block })),
3609
3609
  style: { ...style, height, width }
3610
3610
  };
3611
3611
  return /* @__PURE__ */ React.createElement(Lazyload, {
@@ -3623,7 +3623,7 @@ const IMAGE_KEY = Symbol("image");
3623
3623
  const ImageNamespace = Object.assign(LazyImage, {
3624
3624
  [COMPONENT_TYPE_KEY]: IMAGE_KEY
3625
3625
  });
3626
- var index$N = "";
3626
+ var index$O = "";
3627
3627
  const useDragAndPinch = createUseGesture([dragAction, pinchAction]);
3628
3628
  function bound(position, min, max) {
3629
3629
  let ret = position;
@@ -3647,7 +3647,7 @@ function rubberbandIfOutOfBounds(position, min, max, dimension, constant = 0.15)
3647
3647
  return +rubberband(position - max, dimension, constant) + max;
3648
3648
  return position;
3649
3649
  }
3650
- const [bem$1e] = createNamespace("image-preview");
3650
+ const [bem$1f] = createNamespace("image-preview");
3651
3651
  const Slide = (props) => {
3652
3652
  const { dragLockRef } = props;
3653
3653
  const controlRef = useRef(null);
@@ -3767,21 +3767,21 @@ const Slide = (props) => {
3767
3767
  const { lazyload } = props;
3768
3768
  const renderPlaceholder = () => {
3769
3769
  if (typeof lazyload === "boolean")
3770
- return getLazyImagePlaceholder(bem$1e);
3771
- return lazyload.placeholder || getLazyImagePlaceholder(bem$1e);
3770
+ return getLazyImagePlaceholder(bem$1f);
3771
+ return lazyload.placeholder || getLazyImagePlaceholder(bem$1f);
3772
3772
  };
3773
3773
  return /* @__PURE__ */ React.createElement("div", {
3774
- className: clsx(bem$1e("slide")),
3774
+ className: cls(bem$1f("slide")),
3775
3775
  onPointerMove: (e) => {
3776
3776
  if (zoom.get() !== 1) {
3777
3777
  e.stopPropagation();
3778
3778
  }
3779
3779
  }
3780
3780
  }, /* @__PURE__ */ React.createElement("div", {
3781
- className: clsx(bem$1e("control")),
3781
+ className: cls(bem$1f("control")),
3782
3782
  ref: controlRef
3783
3783
  }, /* @__PURE__ */ React.createElement(animated.div, {
3784
- className: clsx(bem$1e("image-wrapper")),
3784
+ className: cls(bem$1f("image-wrapper")),
3785
3785
  style: {
3786
3786
  translateX: x,
3787
3787
  translateY: y,
@@ -3801,7 +3801,7 @@ const Slide = (props) => {
3801
3801
  alt: props.image
3802
3802
  }))));
3803
3803
  };
3804
- const [bem$1d] = createNamespace("image-preview");
3804
+ const [bem$1e] = createNamespace("image-preview");
3805
3805
  const Slides = forwardRef((props, ref) => {
3806
3806
  const slideWidth = window.innerWidth + unitToPx(16);
3807
3807
  const [{ x }, api] = useSpring(() => ({
@@ -3863,10 +3863,10 @@ const Slides = forwardRef((props, ref) => {
3863
3863
  }
3864
3864
  );
3865
3865
  return /* @__PURE__ */ React.createElement("div", {
3866
- className: clsx(bem$1d("slides")),
3866
+ className: cls(bem$1e("slides")),
3867
3867
  ...bind()
3868
3868
  }, /* @__PURE__ */ React.createElement(animated.div, {
3869
- className: clsx(bem$1d("slides-inner")),
3869
+ className: cls(bem$1e("slides-inner")),
3870
3870
  style: { x: x.to((x2) => -x2) }
3871
3871
  }, props.images.map((image, idx) => /* @__PURE__ */ React.createElement(Slide, {
3872
3872
  key: `${image}${idx}`,
@@ -3885,7 +3885,7 @@ const Slides = forwardRef((props, ref) => {
3885
3885
  dragLockRef
3886
3886
  }))));
3887
3887
  });
3888
- const [bem$1c] = createNamespace("indicator");
3888
+ const [bem$1d] = createNamespace("indicator");
3889
3889
  const SwiperPagIndicator = React.memo(
3890
3890
  ({ vertical, ...props }) => {
3891
3891
  const dots = [];
@@ -3893,8 +3893,8 @@ const SwiperPagIndicator = React.memo(
3893
3893
  dots.push(
3894
3894
  /* @__PURE__ */ React.createElement("div", {
3895
3895
  key: i,
3896
- className: clsx(
3897
- bem$1c("dot", {
3896
+ className: cls(
3897
+ bem$1d("dot", {
3898
3898
  active: props.current === i
3899
3899
  })
3900
3900
  )
@@ -3902,12 +3902,12 @@ const SwiperPagIndicator = React.memo(
3902
3902
  );
3903
3903
  }
3904
3904
  return /* @__PURE__ */ React.createElement("div", {
3905
- className: clsx(props.className, bem$1c({ vertical })),
3905
+ className: cls(props.className, bem$1d({ vertical })),
3906
3906
  style: props.style
3907
3907
  }, dots);
3908
3908
  }
3909
3909
  );
3910
- const [bem$1b] = createNamespace("image-preview");
3910
+ const [bem$1c] = createNamespace("image-preview");
3911
3911
  const ImagePreview$1 = React.forwardRef(
3912
3912
  (p, ref) => {
3913
3913
  const props = mergeProps(p, {
@@ -3939,7 +3939,7 @@ const ImagePreview$1 = React.forwardRef(
3939
3939
  (_a = props.onClose) == null ? void 0 : _a.call(props, { url: currentImage, index: active });
3940
3940
  };
3941
3941
  const renderContent = () => /* @__PURE__ */ React.createElement("div", {
3942
- className: clsx(bem$1b("content"))
3942
+ className: cls(bem$1c("content"))
3943
3943
  }, props.images && /* @__PURE__ */ React.createElement(Slides, {
3944
3944
  ref: slidesRef,
3945
3945
  defaultIndex: props.startPosition,
@@ -3956,7 +3956,7 @@ const ImagePreview$1 = React.forwardRef(
3956
3956
  const renderClose = () => {
3957
3957
  if (props.closeable) {
3958
3958
  return React.cloneElement(props.closeIcon, {
3959
- className: clsx(bem$1b("close-icon", props.closeIconPosition)),
3959
+ className: cls(bem$1c("close-icon", props.closeIconPosition)),
3960
3960
  onClick: onClose
3961
3961
  });
3962
3962
  }
@@ -3965,7 +3965,7 @@ const ImagePreview$1 = React.forwardRef(
3965
3965
  const renderIndex = () => {
3966
3966
  if (props.showIndex) {
3967
3967
  return /* @__PURE__ */ React.createElement("div", {
3968
- className: clsx(bem$1b("index"))
3968
+ className: cls(bem$1c("index"))
3969
3969
  }, props.indexRender ? props.indexRender({ index: active, len: props.images.length }) : `${active + 1} / ${props.images.length}`);
3970
3970
  }
3971
3971
  return null;
@@ -3973,7 +3973,7 @@ const ImagePreview$1 = React.forwardRef(
3973
3973
  const renderIndicator = () => {
3974
3974
  if (props.showIndicators) {
3975
3975
  return /* @__PURE__ */ React.createElement("div", {
3976
- className: clsx(bem$1b("indicator"))
3976
+ className: cls(bem$1c("indicator"))
3977
3977
  }, /* @__PURE__ */ React.createElement(SwiperPagIndicator, {
3978
3978
  total: props.images.length,
3979
3979
  current: active
@@ -3989,8 +3989,8 @@ const ImagePreview$1 = React.forwardRef(
3989
3989
  }
3990
3990
  }));
3991
3991
  return /* @__PURE__ */ React.createElement(Popup, {
3992
- className: clsx(bem$1b(), props.className),
3993
- overlayClass: clsx(bem$1b("overlay")),
3992
+ className: cls(bem$1c(), props.className),
3993
+ overlayClass: cls(bem$1c("overlay")),
3994
3994
  ...pick(props, [
3995
3995
  "visible",
3996
3996
  "overlayStyle",
@@ -4057,7 +4057,7 @@ const open = (props) => {
4057
4057
  const ImagePreview = Object.assign(ImagePreview$1, {
4058
4058
  open
4059
4059
  });
4060
- var index$M = "";
4060
+ var index$N = "";
4061
4061
  const prefix = "rv-empty-network-";
4062
4062
  const renderStop = (color, offset, opacity) => /* @__PURE__ */ React.createElement("stop", {
4063
4063
  stopColor: color,
@@ -4175,7 +4175,7 @@ const Network = /* @__PURE__ */ React.createElement("svg", {
4175
4175
  rx: "1.114"
4176
4176
  }))));
4177
4177
  const PRESET_IMAGES = ["error", "search", "default"];
4178
- const [bem$1a] = createNamespace("empty");
4178
+ const [bem$1b] = createNamespace("empty");
4179
4179
  const Empty = (p) => {
4180
4180
  const props = mergeProps(p, {
4181
4181
  image: "default"
@@ -4199,7 +4199,7 @@ const Empty = (p) => {
4199
4199
  const renderDescription = () => {
4200
4200
  if (props.description) {
4201
4201
  return /* @__PURE__ */ React.createElement("div", {
4202
- className: clsx(bem$1a("description"))
4202
+ className: cls(bem$1b("description"))
4203
4203
  }, props.description);
4204
4204
  }
4205
4205
  return null;
@@ -4207,21 +4207,21 @@ const Empty = (p) => {
4207
4207
  const renderBottom = () => {
4208
4208
  if (props.children) {
4209
4209
  return /* @__PURE__ */ React.createElement("div", {
4210
- className: clsx(bem$1a("bottom"))
4210
+ className: cls(bem$1b("bottom"))
4211
4211
  }, props.children);
4212
4212
  }
4213
4213
  return null;
4214
4214
  };
4215
4215
  return /* @__PURE__ */ React.createElement("div", {
4216
- className: clsx(props.className, bem$1a()),
4216
+ className: cls(props.className, bem$1b()),
4217
4217
  style: props.style
4218
4218
  }, /* @__PURE__ */ React.createElement("div", {
4219
- className: clsx(bem$1a("image")),
4219
+ className: cls(bem$1b("image")),
4220
4220
  style: getSizeStyle(props.imageSize)
4221
4221
  }, renderImage()), renderDescription(), renderBottom());
4222
4222
  };
4223
- var index$L = "";
4224
- const [bem$19] = createNamespace("notify");
4223
+ var index$M = "";
4224
+ const [bem$1a] = createNamespace("notify");
4225
4225
  const Notify = ({
4226
4226
  children,
4227
4227
  ...p
@@ -4247,7 +4247,7 @@ const Notify = ({
4247
4247
  onClosed: props.onClosed,
4248
4248
  teleport: props.teleport
4249
4249
  }, /* @__PURE__ */ React.createElement("div", {
4250
- className: clsx(bem$19([props.type]), props.className)
4250
+ className: cls(bem$1a([props.type]), props.className)
4251
4251
  }, children || props.message));
4252
4252
  };
4253
4253
  let lockCount = 0;
@@ -4358,10 +4358,10 @@ const exportNotifyNamespace = Object.assign(Notify, {
4358
4358
  resetDefaultOptions,
4359
4359
  clear
4360
4360
  });
4361
- var index$K = "";
4361
+ var index$L = "";
4362
4362
  const DEFAULT_HEAD_HEIGHT = 50;
4363
4363
  const TEXT_STATUS = ["pulling", "loosing", "success"];
4364
- const [bem$18] = createNamespace("pull-refresh");
4364
+ const [bem$19] = createNamespace("pull-refresh");
4365
4365
  const PullRefresh = (p) => {
4366
4366
  const props = mergeProps(p, {
4367
4367
  headHeight: 50,
@@ -4433,7 +4433,7 @@ const PullRefresh = (p) => {
4433
4433
  nodes.push(
4434
4434
  /* @__PURE__ */ React.createElement("div", {
4435
4435
  key: "text",
4436
- className: clsx(bem$18("text"))
4436
+ className: cls(bem$19("text"))
4437
4437
  }, getStatusText())
4438
4438
  );
4439
4439
  }
@@ -4441,7 +4441,7 @@ const PullRefresh = (p) => {
4441
4441
  nodes.push(
4442
4442
  /* @__PURE__ */ React.createElement(Loading, {
4443
4443
  key: "loading",
4444
- className: clsx(bem$18("loading"))
4444
+ className: cls(bem$19("loading"))
4445
4445
  }, getStatusText())
4446
4446
  );
4447
4447
  }
@@ -4530,21 +4530,21 @@ const PullRefresh = (p) => {
4530
4530
  );
4531
4531
  return /* @__PURE__ */ React.createElement("div", {
4532
4532
  ref: root2,
4533
- className: clsx(props.className, bem$18()),
4533
+ className: cls(props.className, bem$19()),
4534
4534
  style: props.style
4535
4535
  }, /* @__PURE__ */ React.createElement("div", {
4536
4536
  ref: track,
4537
- className: clsx(bem$18("track")),
4537
+ className: cls(bem$19("track")),
4538
4538
  style: trackStyle,
4539
4539
  onTouchStart,
4540
4540
  onTouchEnd,
4541
4541
  onTouchCancel: onTouchEnd
4542
4542
  }, /* @__PURE__ */ React.createElement("div", {
4543
- className: clsx(bem$18("head")),
4543
+ className: cls(bem$19("head")),
4544
4544
  style: getHeadStyle()
4545
4545
  }, renderStatus()), props.children));
4546
4546
  };
4547
- var index$J = "";
4547
+ var index$K = "";
4548
4548
  function isWindow$1(val) {
4549
4549
  return val === window;
4550
4550
  }
@@ -4574,7 +4574,7 @@ const useRect = (elementRef) => {
4574
4574
  height: 0
4575
4575
  };
4576
4576
  };
4577
- const [bem$17] = createNamespace("swipe-cell");
4577
+ const [bem$18] = createNamespace("swipe-cell");
4578
4578
  const SwipeCell = forwardRef(
4579
4579
  (p, instanceRef) => {
4580
4580
  const props = mergeProps(p, {
@@ -4699,7 +4699,7 @@ const SwipeCell = forwardRef(
4699
4699
  if (props[`${side}Action`]) {
4700
4700
  return /* @__PURE__ */ React.createElement("div", {
4701
4701
  ref: measuredRef,
4702
- className: clsx(bem$17(side)),
4702
+ className: cls(bem$18(side)),
4703
4703
  onClick: getClickHandler(side, true)
4704
4704
  }, props[`${side}Action`]);
4705
4705
  }
@@ -4720,18 +4720,18 @@ const SwipeCell = forwardRef(
4720
4720
  });
4721
4721
  return /* @__PURE__ */ React.createElement("div", {
4722
4722
  ref: root2,
4723
- className: clsx(bem$17()),
4723
+ className: cls(bem$18()),
4724
4724
  onClick: getClickHandler("cell"),
4725
4725
  onTouchStart,
4726
4726
  onTouchEnd,
4727
4727
  onTouchCancel: onTouchEnd
4728
4728
  }, /* @__PURE__ */ React.createElement("div", {
4729
- className: clsx(bem$17("wrapper")),
4729
+ className: cls(bem$18("wrapper")),
4730
4730
  style: wrapperStyle
4731
4731
  }, renderSideContent("left", leftRef), props.children, renderSideContent("right", rightRef)));
4732
4732
  }
4733
4733
  );
4734
- var index$I = "";
4734
+ var index$J = "";
4735
4735
  const PRESET_ICONS = [
4736
4736
  "qq",
4737
4737
  "link",
@@ -4748,7 +4748,7 @@ function getIconURL(icon) {
4748
4748
  }
4749
4749
  return icon;
4750
4750
  }
4751
- const [bem$16] = createNamespace("share-sheet");
4751
+ const [bem$17] = createNamespace("share-sheet");
4752
4752
  const ShareSheet = (p) => {
4753
4753
  const props = mergeProps(p, {
4754
4754
  options: [],
@@ -4770,11 +4770,11 @@ const ShareSheet = (p) => {
4770
4770
  const { title, description } = props;
4771
4771
  if (title || description) {
4772
4772
  return /* @__PURE__ */ React.createElement("div", {
4773
- className: clsx(bem$16("header"))
4773
+ className: cls(bem$17("header"))
4774
4774
  }, title && /* @__PURE__ */ React.createElement("div", {
4775
- className: clsx(bem$16("title"))
4775
+ className: cls(bem$17("title"))
4776
4776
  }, title), description && /* @__PURE__ */ React.createElement("div", {
4777
- className: clsx(bem$16("description"))
4777
+ className: cls(bem$17("description"))
4778
4778
  }, description));
4779
4779
  }
4780
4780
  return null;
@@ -4785,21 +4785,21 @@ const ShareSheet = (p) => {
4785
4785
  key: index2,
4786
4786
  role: "button",
4787
4787
  tabIndex: 0,
4788
- className: clsx([bem$16("option"), className]),
4788
+ className: cls([bem$17("option"), className]),
4789
4789
  onClick: () => onSelect(option, index2)
4790
4790
  }, typeof icon === "string" ? /* @__PURE__ */ React.createElement("img", {
4791
4791
  alt: "share sheet icon",
4792
4792
  src: getIconURL(icon),
4793
- className: clsx(bem$16("icon"))
4793
+ className: cls(bem$17("icon"))
4794
4794
  }) : icon, name && /* @__PURE__ */ React.createElement("span", {
4795
- className: clsx(bem$16("name"))
4795
+ className: cls(bem$17("name"))
4796
4796
  }, name), description && /* @__PURE__ */ React.createElement("span", {
4797
- className: clsx(bem$16("option-description"))
4797
+ className: cls(bem$17("option-description"))
4798
4798
  }, description));
4799
4799
  };
4800
4800
  const renderOptions = (options, border, key) => /* @__PURE__ */ React.createElement("div", {
4801
4801
  key,
4802
- className: clsx(bem$16("options", { border }))
4802
+ className: cls(bem$17("options", { border }))
4803
4803
  }, options.map(renderOption));
4804
4804
  const renderRows = () => {
4805
4805
  const { options } = props;
@@ -4815,7 +4815,7 @@ const ShareSheet = (p) => {
4815
4815
  if (cancelText) {
4816
4816
  return /* @__PURE__ */ React.createElement("button", {
4817
4817
  type: "button",
4818
- className: clsx(bem$16("cancel")),
4818
+ className: cls(bem$17("cancel")),
4819
4819
  onClick: onCancel
4820
4820
  }, cancelText);
4821
4821
  }
@@ -4823,7 +4823,7 @@ const ShareSheet = (p) => {
4823
4823
  };
4824
4824
  return /* @__PURE__ */ React.createElement(Popup, {
4825
4825
  round: true,
4826
- className: clsx(bem$16()),
4826
+ className: cls(bem$17()),
4827
4827
  position: "bottom",
4828
4828
  onClose: onCancel,
4829
4829
  ...pick(props, [
@@ -4839,8 +4839,8 @@ const ShareSheet = (p) => {
4839
4839
  ])
4840
4840
  }, renderHeader(), renderRows(), renderCancelButton());
4841
4841
  };
4842
- var index$H = "";
4843
- const [bem$15] = createNamespace("notice-bar");
4842
+ var index$I = "";
4843
+ const [bem$16] = createNamespace("notice-bar");
4844
4844
  const NoticeBar = forwardRef((p, ref) => {
4845
4845
  const props = mergeProps(p, {
4846
4846
  delay: 1,
@@ -4871,7 +4871,7 @@ const NoticeBar = forwardRef((p, ref) => {
4871
4871
  const renderLeftIcon = () => {
4872
4872
  if (props.leftIcon) {
4873
4873
  return React.cloneElement(props.leftIcon, {
4874
- className: clsx(bem$15("left-icon"))
4874
+ className: cls(bem$16("left-icon"))
4875
4875
  });
4876
4876
  }
4877
4877
  return null;
@@ -4900,7 +4900,7 @@ const NoticeBar = forwardRef((p, ref) => {
4900
4900
  const finalRightIcon = props.rightIcon || getRightIcon();
4901
4901
  if (finalRightIcon) {
4902
4902
  return React.cloneElement(finalRightIcon, {
4903
- className: clsx(bem$15("right-icon")),
4903
+ className: cls(bem$16("right-icon")),
4904
4904
  onClick: onClickRightIcon
4905
4905
  });
4906
4906
  }
@@ -4930,10 +4930,10 @@ const NoticeBar = forwardRef((p, ref) => {
4930
4930
  transitionDuration: `${state.duration}s`
4931
4931
  };
4932
4932
  return /* @__PURE__ */ React.createElement("div", {
4933
- className: clsx(bem$15("wrap")),
4933
+ className: cls(bem$16("wrap")),
4934
4934
  ref: wrapRef
4935
4935
  }, /* @__PURE__ */ React.createElement("div", {
4936
- className: clsx(bem$15("content"), { "rv-ellipsis": ellipsis }),
4936
+ className: cls(bem$16("content"), { "rv-ellipsis": ellipsis }),
4937
4937
  ref: contentRef,
4938
4938
  style,
4939
4939
  onTransitionEnd
@@ -4978,12 +4978,12 @@ const NoticeBar = forwardRef((p, ref) => {
4978
4978
  }));
4979
4979
  return state.show && /* @__PURE__ */ React.createElement("div", {
4980
4980
  role: "alert",
4981
- className: clsx(bem$15({ wrapable }), props.className),
4981
+ className: cls(bem$16({ wrapable }), props.className),
4982
4982
  style: { color, background, ...props.style },
4983
4983
  onClick: props.onClick
4984
4984
  }, renderLeftIcon(), renderMarquee(), renderRightIcon());
4985
4985
  });
4986
- var index$G = "";
4986
+ var index$H = "";
4987
4987
  const useLazyEffect = (effect, deps) => {
4988
4988
  const [c, setC] = useState(0);
4989
4989
  useEffect(() => {
@@ -5004,7 +5004,7 @@ const popupProps = [
5004
5004
  "onOpened",
5005
5005
  "onClickOverlay"
5006
5006
  ];
5007
- const [bem$14] = createNamespace("popover");
5007
+ const [bem$15] = createNamespace("popover");
5008
5008
  const Popover = forwardRef(
5009
5009
  ({ children, className, ...p }, ref) => {
5010
5010
  const props = mergeProps(p, {
@@ -5091,16 +5091,16 @@ const Popover = forwardRef(
5091
5091
  const { icon, text, color, disabled, className: actionClassname } = action;
5092
5092
  return /* @__PURE__ */ React.createElement("div", {
5093
5093
  key: index2,
5094
- className: clsx(
5095
- bem$14("action", { disabled, "with-icon": icon }),
5094
+ className: cls(
5095
+ bem$15("action", { disabled, "with-icon": icon }),
5096
5096
  actionClassname
5097
5097
  ),
5098
5098
  style: { color },
5099
5099
  onClick: () => onClickAction(action, index2)
5100
5100
  }, icon ? React.cloneElement(icon, {
5101
- className: clsx(bem$14("action-icon"))
5101
+ className: cls(bem$15("action-icon"))
5102
5102
  }) : null, /* @__PURE__ */ React.createElement("div", {
5103
- className: clsx(bem$14("action-text"), BORDER_BOTTOM)
5103
+ className: cls(bem$15("action-text"), BORDER_BOTTOM)
5104
5104
  }, text));
5105
5105
  };
5106
5106
  useEffect(() => {
@@ -5141,12 +5141,12 @@ const Popover = forwardRef(
5141
5141
  useClickAway(wrapperRef, onClickAway, "touchstart");
5142
5142
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", {
5143
5143
  ref: wrapperRef,
5144
- className: clsx(bem$14("wrapper")),
5144
+ className: cls(bem$15("wrapper")),
5145
5145
  onClick: onClickWrapper
5146
5146
  }, props.reference), /* @__PURE__ */ React.createElement(Popup, {
5147
5147
  ref: popoverRef,
5148
5148
  visible,
5149
- className: clsx(className, bem$14([props.theme])),
5149
+ className: cls(className, bem$15([props.theme])),
5150
5150
  position: "",
5151
5151
  transition: "rv-zoom",
5152
5152
  lockScroll: false,
@@ -5154,14 +5154,14 @@ const Popover = forwardRef(
5154
5154
  onClose: onInternalClose,
5155
5155
  ...pick(props, popupProps)
5156
5156
  }, /* @__PURE__ */ React.createElement("div", {
5157
- className: clsx(bem$14("arrow"))
5157
+ className: cls(bem$15("arrow"))
5158
5158
  }), /* @__PURE__ */ React.createElement("div", {
5159
5159
  role: "menu",
5160
- className: clsx(bem$14("content"))
5160
+ className: cls(bem$15("content"))
5161
5161
  }, children || props.actions.map(renderAction))));
5162
5162
  }
5163
5163
  );
5164
- var index$F = "";
5164
+ var index$G = "";
5165
5165
  function useLockFn(fn) {
5166
5166
  const lockRef = useRef(false);
5167
5167
  return useCallback(
@@ -5327,7 +5327,7 @@ function useThrottleFn(fn, options) {
5327
5327
  flush: throttled.flush
5328
5328
  };
5329
5329
  }
5330
- const [bem$13] = createNamespace("list");
5330
+ const [bem$14] = createNamespace("list");
5331
5331
  function isWindow(element) {
5332
5332
  return element === window;
5333
5333
  }
@@ -5405,7 +5405,7 @@ const LoadMore = React.forwardRef((p, ref) => {
5405
5405
  const renderDone = () => {
5406
5406
  if (props.finishedText) {
5407
5407
  return /* @__PURE__ */ React.createElement("div", {
5408
- className: clsx(bem$13("finished"))
5408
+ className: cls(bem$14("finished"))
5409
5409
  }, props.finishedText);
5410
5410
  }
5411
5411
  return null;
@@ -5416,14 +5416,14 @@ const LoadMore = React.forwardRef((p, ref) => {
5416
5416
  return props.errorText(retry);
5417
5417
  return /* @__PURE__ */ React.createElement("div", {
5418
5418
  onClick: retry,
5419
- className: clsx(bem$13("error"))
5419
+ className: cls(bem$14("error"))
5420
5420
  }, props.errorText);
5421
5421
  }
5422
5422
  return null;
5423
5423
  };
5424
5424
  const renderLoading = () => {
5425
5425
  return /* @__PURE__ */ React.createElement(Loading, {
5426
- className: clsx(bem$13("loading")),
5426
+ className: cls(bem$14("loading")),
5427
5427
  size: 16
5428
5428
  }, props.loadingText || locale.loading);
5429
5429
  };
@@ -5436,10 +5436,10 @@ const LoadMore = React.forwardRef((p, ref) => {
5436
5436
  };
5437
5437
  React.useImperativeHandle(ref, () => ({ check }));
5438
5438
  return /* @__PURE__ */ React.createElement("div", {
5439
- className: clsx(props.className, bem$13()),
5439
+ className: cls(props.className, bem$14()),
5440
5440
  style: props.style
5441
5441
  }, props.children, /* @__PURE__ */ React.createElement("div", {
5442
- className: clsx(props.className, bem$13("loadmore")),
5442
+ className: cls(props.className, bem$14("loadmore")),
5443
5443
  ref: elementRef
5444
5444
  }, renderPlaceholder()));
5445
5445
  });
@@ -5449,7 +5449,7 @@ const List = forwardRef((p, ref) => {
5449
5449
  });
5450
5450
  return /* @__PURE__ */ React.createElement(LoadMore, {
5451
5451
  ref,
5452
- className: clsx(props.className),
5452
+ className: cls(props.className),
5453
5453
  style: props.style,
5454
5454
  onLoad: props.onLoad,
5455
5455
  threshold: props.offset,
@@ -5459,8 +5459,8 @@ const List = forwardRef((p, ref) => {
5459
5459
  errorText: props.errorText
5460
5460
  }, props.children);
5461
5461
  });
5462
- var index$E = "";
5463
- const [bem$12] = createNamespace("steps");
5462
+ var index$F = "";
5463
+ const [bem$13] = createNamespace("steps");
5464
5464
  const Steps$1 = ({ children, className, style, ...p }) => {
5465
5465
  const props = mergeProps(p, {
5466
5466
  active: 0,
@@ -5468,10 +5468,10 @@ const Steps$1 = ({ children, className, style, ...p }) => {
5468
5468
  activeIcon: /* @__PURE__ */ React.createElement(Checked, null)
5469
5469
  });
5470
5470
  return /* @__PURE__ */ React.createElement("div", {
5471
- className: clsx(className, bem$12([props.direction])),
5471
+ className: cls(className, bem$13([props.direction])),
5472
5472
  style
5473
5473
  }, /* @__PURE__ */ React.createElement("div", {
5474
- className: clsx(bem$12("items"))
5474
+ className: cls(bem$13("items"))
5475
5475
  }, React.Children.toArray(children).filter(Boolean).map(
5476
5476
  (child, index2) => React.cloneElement(child, {
5477
5477
  index: index2,
@@ -5479,7 +5479,7 @@ const Steps$1 = ({ children, className, style, ...p }) => {
5479
5479
  })
5480
5480
  )));
5481
5481
  };
5482
- const [bem$11] = createNamespace("step");
5482
+ const [bem$12] = createNamespace("step");
5483
5483
  const StepsItem = ({ children, ...props }) => {
5484
5484
  const { index: index2, parent: parentProps } = props;
5485
5485
  const getStatus = () => {
@@ -5528,7 +5528,7 @@ const StepsItem = ({ children, ...props }) => {
5528
5528
  if (isActive()) {
5529
5529
  if (activeIcon) {
5530
5530
  return React.cloneElement(activeIcon, {
5531
- className: clsx(bem$11("icon", "active")),
5531
+ className: cls(bem$12("icon", "active")),
5532
5532
  color: activeColor,
5533
5533
  style: {
5534
5534
  color: activeColor
@@ -5538,7 +5538,7 @@ const StepsItem = ({ children, ...props }) => {
5538
5538
  }
5539
5539
  if (getStatus() === "finish" && finishIcon) {
5540
5540
  return React.cloneElement(finishIcon, {
5541
- className: clsx(bem$11("icon", "finish")),
5541
+ className: cls(bem$12("icon", "finish")),
5542
5542
  color: activeColor,
5543
5543
  style: {
5544
5544
  color: activeColor
@@ -5547,7 +5547,7 @@ const StepsItem = ({ children, ...props }) => {
5547
5547
  }
5548
5548
  if (inactiveIcon) {
5549
5549
  return React.cloneElement(inactiveIcon, {
5550
- className: clsx(bem$11("icon")),
5550
+ className: cls(bem$12("icon")),
5551
5551
  color: activeColor,
5552
5552
  style: {
5553
5553
  color: activeColor
@@ -5555,33 +5555,33 @@ const StepsItem = ({ children, ...props }) => {
5555
5555
  });
5556
5556
  }
5557
5557
  return /* @__PURE__ */ React.createElement("i", {
5558
- className: clsx(bem$11("circle")),
5558
+ className: cls(bem$12("circle")),
5559
5559
  style: lineStyle
5560
5560
  });
5561
5561
  };
5562
5562
  const status = getStatus();
5563
5563
  return /* @__PURE__ */ React.createElement("div", {
5564
5564
  style: props.style,
5565
- className: clsx(
5565
+ className: cls(
5566
5566
  props.className,
5567
5567
  BORDER,
5568
- bem$11([parentProps.direction, { [status]: status }])
5568
+ bem$12([parentProps.direction, { [status]: status }])
5569
5569
  )
5570
5570
  }, /* @__PURE__ */ React.createElement("div", {
5571
- className: clsx(bem$11("title", { active: isActive() })),
5571
+ className: cls(bem$12("title", { active: isActive() })),
5572
5572
  style: titleStyle,
5573
5573
  onClick: onClickStep
5574
5574
  }, children), /* @__PURE__ */ React.createElement("div", {
5575
- className: clsx(bem$11("circle-container")),
5575
+ className: cls(bem$12("circle-container")),
5576
5576
  onClick: onClickStep
5577
5577
  }, renderCircle()), /* @__PURE__ */ React.createElement("div", {
5578
- className: clsx(bem$11("line")),
5578
+ className: cls(bem$12("line")),
5579
5579
  style: lineStyle
5580
5580
  }));
5581
5581
  };
5582
5582
  const Steps = Object.assign(Steps$1, { Item: StepsItem });
5583
- var index$D = "";
5584
- const [bem$10] = createNamespace("toast");
5583
+ var index$E = "";
5584
+ const [bem$11] = createNamespace("toast");
5585
5585
  const Toast$1 = (p) => {
5586
5586
  const props = mergeProps(p, {
5587
5587
  type: "info",
@@ -5614,13 +5614,13 @@ const Toast$1 = (p) => {
5614
5614
  if (hasIcon) {
5615
5615
  const buildInIcon = type === "fail" ? /* @__PURE__ */ React.createElement(Cross, null) : /* @__PURE__ */ React.createElement(Success, null);
5616
5616
  return React.cloneElement(icon || buildInIcon, {
5617
- className: clsx(bem$10("icon")),
5617
+ className: cls(bem$11("icon")),
5618
5618
  fontSize: iconSize
5619
5619
  });
5620
5620
  }
5621
5621
  if (type === "loading") {
5622
5622
  return /* @__PURE__ */ React.createElement(Loading, {
5623
- className: clsx(bem$10("loading")),
5623
+ className: cls(bem$11("loading")),
5624
5624
  type: loadingType
5625
5625
  });
5626
5626
  }
@@ -5630,14 +5630,14 @@ const Toast$1 = (p) => {
5630
5630
  const { message } = props;
5631
5631
  if (isDef(message) && message !== "") {
5632
5632
  return /* @__PURE__ */ React.createElement("div", {
5633
- className: clsx(bem$10("info"))
5633
+ className: cls(bem$11("info"))
5634
5634
  }, message);
5635
5635
  }
5636
5636
  return null;
5637
5637
  };
5638
5638
  return /* @__PURE__ */ React.createElement(Popup, {
5639
- className: clsx([
5640
- bem$10([props.position, { [props.type]: !props.icon }]),
5639
+ className: cls([
5640
+ bem$11([props.position, { [props.type]: !props.icon }]),
5641
5641
  props.className
5642
5642
  ]),
5643
5643
  visible: props.visible,
@@ -5785,8 +5785,8 @@ ToastObj.resetDefaultOptions = (type) => {
5785
5785
  }
5786
5786
  };
5787
5787
  const Toast = ToastObj;
5788
- var index$C = "";
5789
- const [bem$$] = createNamespace("action-sheet");
5788
+ var index$D = "";
5789
+ const [bem$10] = createNamespace("action-sheet");
5790
5790
  const ActionSheet = (p) => {
5791
5791
  const props = mergeProps(p, {
5792
5792
  closeable: true,
@@ -5806,9 +5806,9 @@ const ActionSheet = (p) => {
5806
5806
  if (!props.title)
5807
5807
  return null;
5808
5808
  return /* @__PURE__ */ React.createElement("div", {
5809
- className: clsx(bem$$("header"))
5809
+ className: cls(bem$10("header"))
5810
5810
  }, props.title, props.closeable && React.cloneElement(props.closeIcon, {
5811
- className: clsx(bem$$("clear")),
5811
+ className: cls(bem$10("clear")),
5812
5812
  onClick: onCancel
5813
5813
  }));
5814
5814
  };
@@ -5818,12 +5818,12 @@ const ActionSheet = (p) => {
5818
5818
  return [
5819
5819
  /* @__PURE__ */ React.createElement("div", {
5820
5820
  key: "cancel-gap",
5821
- className: clsx(bem$$("gap"))
5821
+ className: cls(bem$10("gap"))
5822
5822
  }),
5823
5823
  /* @__PURE__ */ React.createElement("button", {
5824
5824
  key: "cancel-btn",
5825
5825
  type: "button",
5826
- className: clsx(bem$$("cancel")),
5826
+ className: cls(bem$10("cancel")),
5827
5827
  onClick: onCancel
5828
5828
  }, props.cancelText)
5829
5829
  ];
@@ -5840,15 +5840,15 @@ const ActionSheet = (p) => {
5840
5840
  style
5841
5841
  } = item;
5842
5842
  const Content = loading ? /* @__PURE__ */ React.createElement(Loading, {
5843
- className: clsx(bem$$("loading-icon"))
5843
+ className: cls(bem$10("loading-icon"))
5844
5844
  }) : [
5845
5845
  /* @__PURE__ */ React.createElement("span", {
5846
5846
  key: `${index2}-1`,
5847
- className: clsx(bem$$("name"))
5847
+ className: cls(bem$10("name"))
5848
5848
  }, name),
5849
5849
  subname && /* @__PURE__ */ React.createElement("div", {
5850
5850
  key: `${index2}-2`,
5851
- className: clsx(bem$$("subname"))
5851
+ className: cls(bem$10("subname"))
5852
5852
  }, subname)
5853
5853
  ];
5854
5854
  const onClick = () => {
@@ -5870,14 +5870,14 @@ const ActionSheet = (p) => {
5870
5870
  key: index2,
5871
5871
  type: "button",
5872
5872
  style: { color, ...style },
5873
- className: clsx(bem$$("item", { loading, disabled }), className),
5873
+ className: cls(bem$10("item", { loading, disabled }), className),
5874
5874
  onClick
5875
5875
  }, Content);
5876
5876
  };
5877
5877
  const renderDescription = () => {
5878
5878
  if (props.description) {
5879
5879
  return /* @__PURE__ */ React.createElement("div", {
5880
- className: clsx(bem$$("description"))
5880
+ className: cls(bem$10("description"))
5881
5881
  }, props.description);
5882
5882
  }
5883
5883
  return null;
@@ -5890,19 +5890,19 @@ const ActionSheet = (p) => {
5890
5890
  };
5891
5891
  return /* @__PURE__ */ React.createElement(Popup, {
5892
5892
  visible: props.visible,
5893
- className: clsx(bem$$("wrapper")),
5893
+ className: cls(bem$10("wrapper")),
5894
5894
  position: "bottom",
5895
5895
  ...pick(props, sharedPopupProps),
5896
5896
  onClose: onCancel,
5897
5897
  closeable: false
5898
5898
  }, /* @__PURE__ */ React.createElement("div", {
5899
- className: clsx(bem$$(), props.className),
5899
+ className: cls(bem$10(), props.className),
5900
5900
  style: props.style
5901
5901
  }, renderHeader(), renderDescription(), /* @__PURE__ */ React.createElement("div", {
5902
- className: clsx(bem$$("content"))
5902
+ className: cls(bem$10("content"))
5903
5903
  }, renderOptions(), props.children), renderCancel()));
5904
5904
  };
5905
- var index$B = "";
5905
+ var index$C = "";
5906
5906
  function useRefs() {
5907
5907
  const refs = React.useRef([]);
5908
5908
  const setRefs = React.useCallback(
@@ -5935,7 +5935,7 @@ const useMergedState = (option) => {
5935
5935
  }
5936
5936
  return [mergedValue, triggerChange];
5937
5937
  };
5938
- const [bem$_] = createNamespace("dropdown-menu");
5938
+ const [bem$$] = createNamespace("dropdown-menu");
5939
5939
  const DropdownMenu$1 = forwardRef(
5940
5940
  (p, ref) => {
5941
5941
  const props = mergeProps(p, {
@@ -6040,15 +6040,15 @@ const DropdownMenu$1 = forwardRef(
6040
6040
  key: index2,
6041
6041
  role: "button",
6042
6042
  tabIndex: disabled ? -1 : 0,
6043
- className: clsx(bem$_("item", { disabled })),
6043
+ className: cls(bem$$("item", { disabled })),
6044
6044
  onClick: () => {
6045
6045
  if (!disabled) {
6046
6046
  toggleItem(index2);
6047
6047
  }
6048
6048
  }
6049
6049
  }, /* @__PURE__ */ React.createElement("span", {
6050
- className: clsx(
6051
- bem$_("title", {
6050
+ className: cls(
6051
+ bem$$("title", {
6052
6052
  down: showPopup === (props.direction === "down"),
6053
6053
  active: showPopup
6054
6054
  }),
@@ -6094,12 +6094,12 @@ const DropdownMenu$1 = forwardRef(
6094
6094
  value: { props, value: innerValue, onChange: onInnerChange, close }
6095
6095
  }, /* @__PURE__ */ React.createElement("div", {
6096
6096
  ref: root2,
6097
- className: clsx(bem$_(), props.className),
6097
+ className: cls(bem$$(), props.className),
6098
6098
  style: { ...props.style }
6099
6099
  }, /* @__PURE__ */ React.createElement("div", {
6100
6100
  ref: barRef,
6101
6101
  style: barStyle(),
6102
- className: clsx(bem$_("bar", { opened }))
6102
+ className: cls(bem$$("bar", { opened }))
6103
6103
  }, Children.toArray(props.children).filter(Boolean).map((child, index2) => {
6104
6104
  return renderTitle(child.props, index2);
6105
6105
  })), Children.toArray(props.children).filter(Boolean).map(
@@ -6126,7 +6126,7 @@ const inheritPropsKey = [
6126
6126
  function inheritProps(parentProps, props) {
6127
6127
  return { ...parentProps, ...props };
6128
6128
  }
6129
- const [bem$Z] = createNamespace("dropdown-item");
6129
+ const [bem$_] = createNamespace("dropdown-item");
6130
6130
  const DropdownMenuItem = forwardRef(({ options = [], placeholder = "\u8BF7\u9009\u62E9", ...props }, ref) => {
6131
6131
  var _a;
6132
6132
  const [state, setState] = useSetState({
@@ -6184,11 +6184,11 @@ const DropdownMenuItem = forwardRef(({ options = [], placeholder = "\u8BF7\u9009
6184
6184
  key: option.value,
6185
6185
  icon: option.icon,
6186
6186
  title: option.text,
6187
- className: clsx(bem$Z("option", { active })),
6187
+ className: cls(bem$_("option", { active })),
6188
6188
  style: { color: active ? activeColor : "" },
6189
6189
  onClick
6190
6190
  }, active && (activeIcon || /* @__PURE__ */ React.createElement(Success, {
6191
- className: clsx(bem$Z("icon")),
6191
+ className: cls(bem$_("icon")),
6192
6192
  color: activeColor
6193
6193
  })));
6194
6194
  };
@@ -6204,12 +6204,12 @@ const DropdownMenuItem = forwardRef(({ options = [], placeholder = "\u8BF7\u9009
6204
6204
  const attrs = pick(inheritProps(parent.props, props), inheritPropsKey);
6205
6205
  return /* @__PURE__ */ React.createElement("div", {
6206
6206
  style: { ...style, display: state.showWrapper ? "block" : "none" },
6207
- className: clsx(bem$Z([direction])),
6207
+ className: cls(bem$_([direction])),
6208
6208
  onClick: onClickWrapper
6209
6209
  }, /* @__PURE__ */ React.createElement(Popup, {
6210
6210
  ...attrs,
6211
6211
  visible: props.showPopup,
6212
- className: clsx(bem$Z("content")),
6212
+ className: cls(bem$_("content")),
6213
6213
  position: direction === "down" ? "top" : "bottom",
6214
6214
  duration: state.transition ? +duration : 0,
6215
6215
  overlayStyle: { position: "absolute", ...overlayStyle },
@@ -6231,8 +6231,8 @@ const DropdownMenuItem = forwardRef(({ options = [], placeholder = "\u8BF7\u9009
6231
6231
  return renderContent();
6232
6232
  });
6233
6233
  const DropdownMenu = Object.assign(DropdownMenu$1, { Item: DropdownMenuItem });
6234
- var index$A = "";
6235
- const [bem$Y] = createNamespace("search");
6234
+ var index$B = "";
6235
+ const [bem$Z] = createNamespace("search");
6236
6236
  const Search = forwardRef((p, ref) => {
6237
6237
  const props = mergeProps(p, {
6238
6238
  shape: "square",
@@ -6281,7 +6281,7 @@ const Search = forwardRef((p, ref) => {
6281
6281
  const renderLabel = () => {
6282
6282
  if (props.label) {
6283
6283
  return /* @__PURE__ */ React.createElement("div", {
6284
- className: clsx(bem$Y("label"))
6284
+ className: cls(bem$Z("label"))
6285
6285
  }, props.label);
6286
6286
  }
6287
6287
  return null;
@@ -6291,7 +6291,7 @@ const Search = forwardRef((p, ref) => {
6291
6291
  return props.action;
6292
6292
  if (props.showAction) {
6293
6293
  return /* @__PURE__ */ React.createElement("div", {
6294
- className: clsx(bem$Y("action")),
6294
+ className: cls(bem$Z("action")),
6295
6295
  role: "button",
6296
6296
  tabIndex: 0,
6297
6297
  onClick: onCancel
@@ -6336,7 +6336,7 @@ const Search = forwardRef((p, ref) => {
6336
6336
  const renderField = () => {
6337
6337
  return /* @__PURE__ */ React.createElement(FieldNamespace, {
6338
6338
  ref: filedRef,
6339
- className: clsx(bem$Y("field")),
6339
+ className: cls(bem$Z("field")),
6340
6340
  type: "search",
6341
6341
  rows: 1,
6342
6342
  value: value || "",
@@ -6362,17 +6362,17 @@ const Search = forwardRef((p, ref) => {
6362
6362
  blur
6363
6363
  }));
6364
6364
  return /* @__PURE__ */ React.createElement("div", {
6365
- className: clsx(
6365
+ className: cls(
6366
6366
  props.className,
6367
- bem$Y({ "show-action": props.showAction })
6367
+ bem$Z({ "show-action": props.showAction })
6368
6368
  ),
6369
6369
  style: { ...props.style, background: props.background }
6370
6370
  }, /* @__PURE__ */ React.createElement("div", {
6371
- className: clsx(bem$Y("content", props.shape))
6371
+ className: cls(bem$Z("content", props.shape))
6372
6372
  }, renderLabel(), renderField()), renderAction());
6373
6373
  });
6374
- var index$z = "";
6375
- const [bem$X] = createNamespace("sidebar-item");
6374
+ var index$A = "";
6375
+ const [bem$Y] = createNamespace("sidebar-item");
6376
6376
  const SidebarItem = (props) => {
6377
6377
  const { parent, index: index2 } = props;
6378
6378
  const onClick = () => {
@@ -6386,15 +6386,15 @@ const SidebarItem = (props) => {
6386
6386
  const { dot, badge, title, disabled } = props;
6387
6387
  const selected = index2 === parent.getActive();
6388
6388
  return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("a", {
6389
- className: clsx(bem$X({ select: selected, disabled })),
6389
+ className: cls(bem$Y({ select: selected, disabled })),
6390
6390
  onClick
6391
6391
  }, /* @__PURE__ */ React.createElement(Badge, {
6392
6392
  dot,
6393
6393
  content: badge,
6394
- className: clsx(bem$X("text"))
6394
+ className: cls(bem$Y("text"))
6395
6395
  }, title)));
6396
6396
  };
6397
- const [bem$W] = createNamespace("sidebar");
6397
+ const [bem$X] = createNamespace("sidebar");
6398
6398
  const Sidebar$1 = ({
6399
6399
  children,
6400
6400
  className,
@@ -6425,10 +6425,10 @@ const Sidebar$1 = ({
6425
6425
  [children]
6426
6426
  );
6427
6427
  return /* @__PURE__ */ React.createElement("div", {
6428
- className: clsx(className, bem$W("wrapper")),
6428
+ className: cls(className, bem$X("wrapper")),
6429
6429
  style
6430
6430
  }, /* @__PURE__ */ React.createElement("div", {
6431
- className: clsx(props.sideClassName, bem$W()),
6431
+ className: cls(props.sideClassName, bem$X()),
6432
6432
  style: props.sideStyle
6433
6433
  }, validChildren.map(
6434
6434
  (child, index2) => React.cloneElement(child, {
@@ -6441,7 +6441,7 @@ const Sidebar$1 = ({
6441
6441
  )), validChildren.map(
6442
6442
  (child, index2) => {
6443
6443
  return /* @__PURE__ */ React.createElement("div", {
6444
- className: clsx(child.props.contentClassName, bem$W("content")),
6444
+ className: cls(child.props.contentClassName, bem$X("content")),
6445
6445
  key: child.key,
6446
6446
  style: {
6447
6447
  ...child.props.contentStyle,
@@ -6452,9 +6452,9 @@ const Sidebar$1 = ({
6452
6452
  ));
6453
6453
  };
6454
6454
  const Sidebar = Object.assign(Sidebar$1, { Item: SidebarItem });
6455
+ var index$z = "";
6455
6456
  var index$y = "";
6456
- var index$x = "";
6457
- const [bem$V] = createNamespace("sticky");
6457
+ const [bem$W] = createNamespace("sticky");
6458
6458
  const Sticky = (p) => {
6459
6459
  const props = mergeProps(p, {
6460
6460
  offsetTop: 0,
@@ -6558,11 +6558,11 @@ const Sticky = (p) => {
6558
6558
  ref: root2,
6559
6559
  style: rootStyle
6560
6560
  }, /* @__PURE__ */ React.createElement("div", {
6561
- className: clsx(bem$V({ fixed: state.fixed })),
6561
+ className: cls(bem$W({ fixed: state.fixed })),
6562
6562
  style: stickyStyle
6563
6563
  }, props.children));
6564
6564
  };
6565
- const [bem$U] = createNamespace("tab");
6565
+ const [bem$V] = createNamespace("tab");
6566
6566
  const TabsTitle = forwardRef((props, ref) => {
6567
6567
  const {
6568
6568
  type,
@@ -6601,8 +6601,8 @@ const TabsTitle = forwardRef((props, ref) => {
6601
6601
  }, [type, color, disabled, isActive, activeColor, inactiveColor]);
6602
6602
  const renderText = () => {
6603
6603
  const Title2 = /* @__PURE__ */ React.createElement("span", {
6604
- className: clsx(
6605
- bem$U("text", { ellipsis: !props.scrollable && props.type !== "jumbo" })
6604
+ className: cls(
6605
+ bem$V("text", { ellipsis: !props.scrollable && props.type !== "jumbo" })
6606
6606
  ),
6607
6607
  style: {
6608
6608
  backgroundColor: props.type === "capsule" && isActive && color
@@ -6614,7 +6614,7 @@ const TabsTitle = forwardRef((props, ref) => {
6614
6614
  return props.title;
6615
6615
  })());
6616
6616
  const Description2 = props.type === "jumbo" && !!props.description ? /* @__PURE__ */ React.createElement("div", {
6617
- className: clsx(bem$U("description")),
6617
+ className: cls(bem$V("description")),
6618
6618
  style: { backgroundColor: isActive && color }
6619
6619
  }, (() => {
6620
6620
  if (typeof props.description === "function") {
@@ -6633,8 +6633,8 @@ const TabsTitle = forwardRef((props, ref) => {
6633
6633
  };
6634
6634
  return /* @__PURE__ */ React.createElement("div", {
6635
6635
  ref,
6636
- className: clsx([
6637
- bem$U({
6636
+ className: cls([
6637
+ bem$V({
6638
6638
  active: props.isActive,
6639
6639
  disabled: props.disabled
6640
6640
  }),
@@ -6645,8 +6645,8 @@ const TabsTitle = forwardRef((props, ref) => {
6645
6645
  onClick: props.onClick
6646
6646
  }, renderText());
6647
6647
  });
6648
- var index$w = "";
6649
- const [bem$T] = createNamespace("swiper-item");
6648
+ var index$x = "";
6649
+ const [bem$U] = createNamespace("swiper-item");
6650
6650
  const SwiperItem = React.forwardRef(
6651
6651
  (props, ref) => {
6652
6652
  const wrapperRef = React.useRef(null);
@@ -6663,9 +6663,9 @@ const SwiperItem = React.forwardRef(
6663
6663
  });
6664
6664
  return /* @__PURE__ */ React.createElement("div", {
6665
6665
  ref: wrapperRef,
6666
- className: clsx(
6666
+ className: cls(
6667
6667
  props.className,
6668
- bem$T({
6668
+ bem$U({
6669
6669
  hidden: props.autoHeight && show2 === false
6670
6670
  })
6671
6671
  ),
@@ -6674,7 +6674,7 @@ const SwiperItem = React.forwardRef(
6674
6674
  }, props.children);
6675
6675
  }
6676
6676
  );
6677
- const [bem$S] = createNamespace("swiper");
6677
+ const [bem$T] = createNamespace("swiper");
6678
6678
  const Swiper$1 = forwardRef((p, ref) => {
6679
6679
  const props = mergeProps(p, {
6680
6680
  initialSwipe: 0,
@@ -6831,7 +6831,7 @@ const Swiper$1 = forwardRef((p, ref) => {
6831
6831
  const renderIndicator = () => {
6832
6832
  if (props.indicator === void 0 || props.indicator === true) {
6833
6833
  return /* @__PURE__ */ React.createElement("div", {
6834
- className: clsx(bem$S("indicator", { vertical }))
6834
+ className: cls(bem$T("indicator", { vertical }))
6835
6835
  }, /* @__PURE__ */ React.createElement(SwiperPagIndicator, {
6836
6836
  ...props.indicatorProps,
6837
6837
  vertical,
@@ -6895,14 +6895,14 @@ const Swiper$1 = forwardRef((p, ref) => {
6895
6895
  const renderTrackInner = () => {
6896
6896
  if (loop) {
6897
6897
  return /* @__PURE__ */ React.createElement("div", {
6898
- className: clsx(
6899
- bem$S("track-inner", {
6898
+ className: cls(
6899
+ bem$T("track-inner", {
6900
6900
  vertical
6901
6901
  })
6902
6902
  )
6903
6903
  }, React.Children.map(validChildren, (child, index2) => {
6904
6904
  return /* @__PURE__ */ React.createElement(animated.div, {
6905
- className: clsx(bem$S("slide")),
6905
+ className: cls(bem$T("slide")),
6906
6906
  style: {
6907
6907
  [axis]: position.to((pos) => {
6908
6908
  let finalPosition = -pos + index2 * 100;
@@ -6921,13 +6921,13 @@ const Swiper$1 = forwardRef((p, ref) => {
6921
6921
  }));
6922
6922
  }
6923
6923
  return /* @__PURE__ */ React.createElement(animated.div, {
6924
- className: clsx(bem$S("track-inner")),
6924
+ className: cls(bem$T("track-inner")),
6925
6925
  style: {
6926
6926
  [axis]: position.to((position2) => `${-position2}%`)
6927
6927
  }
6928
6928
  }, React.Children.map(validChildren, (child, index2) => {
6929
6929
  return /* @__PURE__ */ React.createElement("div", {
6930
- className: clsx(bem$S("slide"))
6930
+ className: cls(bem$T("slide"))
6931
6931
  }, React.cloneElement(child, {
6932
6932
  ref: setChildrenRefs(index2),
6933
6933
  autoHeight
@@ -6935,12 +6935,12 @@ const Swiper$1 = forwardRef((p, ref) => {
6935
6935
  }));
6936
6936
  };
6937
6937
  return /* @__PURE__ */ React.createElement("div", {
6938
- className: clsx(props.className, bem$S({ vertical })),
6938
+ className: cls(props.className, bem$T({ vertical })),
6939
6939
  style: computedStyle
6940
6940
  }, /* @__PURE__ */ React.createElement("div", {
6941
6941
  ref: trackRef,
6942
- className: clsx(
6943
- bem$S("track", {
6942
+ className: cls(
6943
+ bem$T("track", {
6944
6944
  "allow-touch-move": props.touchable
6945
6945
  })
6946
6946
  ),
@@ -6968,7 +6968,7 @@ function isScrollTarget(element, parent) {
6968
6968
  return false;
6969
6969
  }
6970
6970
  const Swiper = Object.assign(Swiper$1, { Item: SwiperItem });
6971
- const [bem$R] = createNamespace("tabs");
6971
+ const [bem$S] = createNamespace("tabs");
6972
6972
  const TabsContent = (props) => {
6973
6973
  const innerEffect = useRef(false);
6974
6974
  const { animated: animated2, swipeable, duration, swiperRef } = props;
@@ -6983,7 +6983,7 @@ const TabsContent = (props) => {
6983
6983
  loop: false,
6984
6984
  autoplay: false,
6985
6985
  touchable: !!swipeable,
6986
- className: clsx(bem$R("track")),
6986
+ className: cls(bem$S("track")),
6987
6987
  duration: +duration,
6988
6988
  indicator: false,
6989
6989
  onChange: (idx) => {
@@ -6996,7 +6996,7 @@ const TabsContent = (props) => {
6996
6996
  }
6997
6997
  }, React.Children.map(props.children, (child) => /* @__PURE__ */ React.createElement(Swiper.Item, {
6998
6998
  style: { cursor: !swipeable ? "auto" : void 0 },
6999
- className: clsx(bem$R("pane-wrapper"))
6999
+ className: cls(bem$S("pane-wrapper"))
7000
7000
  }, child)));
7001
7001
  }
7002
7002
  return props.children;
@@ -7014,8 +7014,8 @@ const TabsContent = (props) => {
7014
7014
  swipeToCurrentTab(props.currentIndex);
7015
7015
  }, [props.currentIndex]);
7016
7016
  return /* @__PURE__ */ React.createElement("div", {
7017
- className: clsx(
7018
- bem$R("content", {
7017
+ className: cls(
7018
+ bem$S("content", {
7019
7019
  animated: animated2 || swipeable
7020
7020
  })
7021
7021
  )
@@ -7060,7 +7060,7 @@ function getWindowHeight() {
7060
7060
  function isReachBottom(offset = 0) {
7061
7061
  return getScrollTop() + getWindowHeight() + offset >= getScrollHeight();
7062
7062
  }
7063
- const [bem$Q] = createNamespace("tabs");
7063
+ const [bem$R] = createNamespace("tabs");
7064
7064
  const getTabName = (tab, index2) => {
7065
7065
  var _a;
7066
7066
  return (_a = tab == null ? void 0 : tab.name) != null ? _a : index2;
@@ -7289,22 +7289,22 @@ const Tabs$1 = forwardRef((p, ref) => {
7289
7289
  const { type, border } = props;
7290
7290
  return /* @__PURE__ */ React.createElement("div", {
7291
7291
  ref: wrapRef,
7292
- className: clsx([
7293
- bem$Q("wrap", { scrollable }),
7292
+ className: cls([
7293
+ bem$R("wrap", { scrollable }),
7294
7294
  { [BORDER_TOP_BOTTOM]: type !== "card" && border }
7295
7295
  ])
7296
7296
  }, /* @__PURE__ */ React.createElement("div", {
7297
7297
  ref: navRef,
7298
7298
  role: "tablist",
7299
- className: clsx(
7300
- bem$Q("nav", [
7299
+ className: cls(
7300
+ bem$R("nav", [
7301
7301
  type,
7302
7302
  { complete: scrollable, start: align === "start" }
7303
7303
  ])
7304
7304
  ),
7305
7305
  style: navStyle
7306
7306
  }, props.navLeft, renderNav(), type === "line" && !immediateRef.current && /* @__PURE__ */ React.createElement("div", {
7307
- className: clsx(bem$Q("line")),
7307
+ className: cls(bem$R("line")),
7308
7308
  style: lineStyle
7309
7309
  }), props.navRight));
7310
7310
  };
@@ -7357,7 +7357,7 @@ const Tabs$1 = forwardRef((p, ref) => {
7357
7357
  value: { props, currentName, scrollIntoView }
7358
7358
  }, /* @__PURE__ */ React.createElement("div", {
7359
7359
  ref: root2,
7360
- className: clsx(props.className, bem$Q([props.type])),
7360
+ className: cls(props.className, bem$R([props.type])),
7361
7361
  style: props.style
7362
7362
  }, props.sticky ? /* @__PURE__ */ React.createElement(Sticky, {
7363
7363
  container: root2,
@@ -7379,7 +7379,7 @@ const Tabs$1 = forwardRef((p, ref) => {
7379
7379
  })
7380
7380
  ))));
7381
7381
  });
7382
- const [bem$P] = createNamespace("tab");
7382
+ const [bem$Q] = createNamespace("tab");
7383
7383
  const TabPane = forwardRef((props, ref) => {
7384
7384
  const parent = useContext(TabsContext);
7385
7385
  const { animated: animated2, swipeable, scrollspy, lazyRender, lazyRenderPlaceholder } = parent.props;
@@ -7409,18 +7409,18 @@ const TabPane = forwardRef((props, ref) => {
7409
7409
  return /* @__PURE__ */ React.createElement("div", {
7410
7410
  ref,
7411
7411
  role: "tabpanel",
7412
- className: clsx(bem$P("pane"))
7412
+ className: cls(bem$Q("pane"))
7413
7413
  }, Content);
7414
7414
  }
7415
7415
  return /* @__PURE__ */ React.createElement("div", {
7416
7416
  ref,
7417
7417
  style: { display: show2 ? "block" : "none" },
7418
7418
  role: "tabpanel",
7419
- className: clsx(bem$P("pane"))
7419
+ className: cls(bem$Q("pane"))
7420
7420
  }, Content);
7421
7421
  });
7422
7422
  const Tabs = Object.assign(Tabs$1, { TabPane });
7423
- var index$v = "";
7423
+ var index$w = "";
7424
7424
  const useHeight = (element) => {
7425
7425
  const [height, setHeight] = useState(0);
7426
7426
  useEffect(() => {
@@ -7430,7 +7430,7 @@ const useHeight = (element) => {
7430
7430
  }, [element.current]);
7431
7431
  return height;
7432
7432
  };
7433
- const [bem$O] = createNamespace("nav-bar");
7433
+ const [bem$P] = createNamespace("nav-bar");
7434
7434
  const NavBar = (p) => {
7435
7435
  const props = mergeProps(p, {
7436
7436
  border: true,
@@ -7453,11 +7453,11 @@ const NavBar = (p) => {
7453
7453
  return [
7454
7454
  props.leftArrow && React.cloneElement(props.leftArrow, {
7455
7455
  key: "arroe",
7456
- className: clsx(bem$O("arrow"))
7456
+ className: cls(bem$P("arrow"))
7457
7457
  }),
7458
7458
  props.leftText && /* @__PURE__ */ React.createElement("span", {
7459
7459
  key: "text",
7460
- className: clsx(bem$O("text"))
7460
+ className: cls(bem$P("text"))
7461
7461
  }, props.leftText)
7462
7462
  ];
7463
7463
  };
@@ -7466,7 +7466,7 @@ const NavBar = (p) => {
7466
7466
  return props.rightText;
7467
7467
  }
7468
7468
  return /* @__PURE__ */ React.createElement("span", {
7469
- className: clsx(bem$O("text"))
7469
+ className: cls(bem$P("text"))
7470
7470
  }, props.rightText);
7471
7471
  };
7472
7472
  const renderNavBar = () => {
@@ -7480,29 +7480,29 @@ const NavBar = (p) => {
7480
7480
  return /* @__PURE__ */ React.createElement("div", {
7481
7481
  ref: navBarRef,
7482
7482
  style,
7483
- className: clsx(
7484
- bem$O({ fixed, "safe-area-inset-top": props.safeAreaInsetTop }),
7483
+ className: cls(
7484
+ bem$P({ fixed, "safe-area-inset-top": props.safeAreaInsetTop }),
7485
7485
  {
7486
7486
  [BORDER_BOTTOM]: border
7487
7487
  },
7488
7488
  props.className
7489
7489
  )
7490
7490
  }, /* @__PURE__ */ React.createElement("div", {
7491
- className: clsx(bem$O("content"))
7491
+ className: cls(bem$P("content"))
7492
7492
  }, hasLeft && /* @__PURE__ */ React.createElement("div", {
7493
- className: clsx(bem$O("left")),
7493
+ className: cls(bem$P("left")),
7494
7494
  onClick: onClickLeft
7495
7495
  }, renderLeft()), /* @__PURE__ */ React.createElement("div", {
7496
- className: clsx(bem$O("title"), "rv-ellipsis")
7496
+ className: cls(bem$P("title"), "rv-ellipsis")
7497
7497
  }, title), hasRight && /* @__PURE__ */ React.createElement("div", {
7498
- className: clsx(bem$O("right")),
7498
+ className: cls(bem$P("right")),
7499
7499
  onClick: onClickRight
7500
7500
  }, renderRight())));
7501
7501
  };
7502
7502
  const renderPlaceholder = () => {
7503
7503
  if (props.fixed && props.placeholder) {
7504
7504
  return /* @__PURE__ */ React.createElement("div", {
7505
- className: clsx(bem$O("placeholder")),
7505
+ className: cls(bem$P("placeholder")),
7506
7506
  style: { height: navBarHeight ? `${navBarHeight}px` : void 0 }
7507
7507
  });
7508
7508
  }
@@ -7510,8 +7510,8 @@ const NavBar = (p) => {
7510
7510
  };
7511
7511
  return /* @__PURE__ */ React.createElement(React.Fragment, null, renderPlaceholder(), renderNavBar());
7512
7512
  };
7513
- var index$u = "";
7514
- const [bem$N] = createNamespace("tag");
7513
+ var index$v = "";
7514
+ const [bem$O] = createNamespace("tag");
7515
7515
  const Tag = (p) => {
7516
7516
  const props = mergeProps(p, {
7517
7517
  show: true,
@@ -7547,13 +7547,13 @@ const Tag = (p) => {
7547
7547
  classes[size] = size;
7548
7548
  }
7549
7549
  const CloseIcon = closeable && /* @__PURE__ */ React.createElement(Cross, {
7550
- className: clsx(bem$N("close")),
7550
+ className: cls(bem$O("close")),
7551
7551
  onClick: onClose
7552
7552
  });
7553
7553
  return /* @__PURE__ */ React.createElement("span", {
7554
7554
  ref: nodeRef,
7555
7555
  style: { ...getStyle, ...props.style },
7556
- className: clsx(props.className, bem$N([classes, type])),
7556
+ className: cls(props.className, bem$O([classes, type])),
7557
7557
  onClick: props.onClick
7558
7558
  }, props.children, CloseIcon);
7559
7559
  };
@@ -7565,8 +7565,8 @@ const Tag = (p) => {
7565
7565
  unmountOnExit: true
7566
7566
  }, renderTag());
7567
7567
  };
7568
- var index$t = "";
7569
- const [bem$M] = createNamespace("grid");
7568
+ var index$u = "";
7569
+ const [bem$N] = createNamespace("grid");
7570
7570
  const Grid = ({ children, className, style, ...p }) => {
7571
7571
  const props = mergeProps(p, {
7572
7572
  center: true,
@@ -7575,7 +7575,7 @@ const Grid = ({ children, className, style, ...p }) => {
7575
7575
  });
7576
7576
  return /* @__PURE__ */ React.createElement("div", {
7577
7577
  style: { paddingLeft: addUnit(props.gutter), ...style },
7578
- className: clsx(className, bem$M(), {
7578
+ className: cls(className, bem$N(), {
7579
7579
  [BORDER_TOP]: props.border && !props.gutter
7580
7580
  })
7581
7581
  }, React.Children.toArray(children).filter(Boolean).map(
@@ -7585,7 +7585,7 @@ const Grid = ({ children, className, style, ...p }) => {
7585
7585
  })
7586
7586
  ));
7587
7587
  };
7588
- const [bem$L] = createNamespace("grid-item");
7588
+ const [bem$M] = createNamespace("grid-item");
7589
7589
  const GridItem = ({
7590
7590
  children,
7591
7591
  className,
@@ -7629,7 +7629,7 @@ const GridItem = ({
7629
7629
  return /* @__PURE__ */ React.createElement(Badge, {
7630
7630
  ...props.badge
7631
7631
  }, React.cloneElement(props.icon, {
7632
- className: clsx(bem$L("icon")),
7632
+ className: cls(bem$M("icon")),
7633
7633
  color: props.iconColor,
7634
7634
  fontSize: parent.iconSize
7635
7635
  }));
@@ -7642,7 +7642,7 @@ const GridItem = ({
7642
7642
  }
7643
7643
  if (props.text) {
7644
7644
  return /* @__PURE__ */ React.createElement("span", {
7645
- className: clsx(bem$L("text"))
7645
+ className: cls(bem$M("text"))
7646
7646
  }, props.text);
7647
7647
  }
7648
7648
  return null;
@@ -7654,9 +7654,9 @@ const GridItem = ({
7654
7654
  return /* @__PURE__ */ React.createElement(React.Fragment, null, renderIcon(), renderText());
7655
7655
  };
7656
7656
  const { center, border, square, gutter, reverse, direction } = parent;
7657
- const classes = clsx(
7657
+ const classes = cls(
7658
7658
  props.contentClassName,
7659
- bem$L("content", [
7659
+ bem$M("content", [
7660
7660
  direction,
7661
7661
  {
7662
7662
  center,
@@ -7669,7 +7669,7 @@ const GridItem = ({
7669
7669
  { [BORDER]: border }
7670
7670
  );
7671
7671
  return /* @__PURE__ */ React.createElement("div", {
7672
- className: clsx(className, bem$L({ square })),
7672
+ className: cls(className, bem$M({ square })),
7673
7673
  style: rootStyle
7674
7674
  }, /* @__PURE__ */ React.createElement("div", {
7675
7675
  role: props.onClick ? "button" : void 0,
@@ -7679,10 +7679,10 @@ const GridItem = ({
7679
7679
  }, renderContent()));
7680
7680
  };
7681
7681
  const GridNamespace = Object.assign(Grid, { Item: GridItem });
7682
- var index$s = "";
7682
+ var index$t = "";
7683
7683
  const IndexBarContext = createContext({});
7684
7684
  const INDEX_ANCHORE_KEY = Symbol("index-anchor");
7685
- const [bem$K] = createNamespace("index-anchor");
7685
+ const [bem$L] = createNamespace("index-anchor");
7686
7686
  const IndexAnchor = forwardRef((props, ref) => {
7687
7687
  const root2 = useRef();
7688
7688
  const height = useHeight(root2);
@@ -7743,11 +7743,11 @@ const IndexAnchor = forwardRef((props, ref) => {
7743
7743
  }
7744
7744
  }, /* @__PURE__ */ React.createElement("div", {
7745
7745
  style: anchorStyle,
7746
- className: clsx(bem$K({ sticky }), { [BORDER_BOTTOM]: sticky })
7746
+ className: cls(bem$L({ sticky }), { [BORDER_BOTTOM]: sticky })
7747
7747
  }, props.children || props.index));
7748
7748
  });
7749
7749
  IndexAnchor[COMPONENT_TYPE_KEY] = INDEX_ANCHORE_KEY;
7750
- const [bem$J] = createNamespace("index-bar");
7750
+ const [bem$K] = createNamespace("index-bar");
7751
7751
  const IndexBar$1 = forwardRef((p, ref) => {
7752
7752
  const props = mergeProps(p, {
7753
7753
  sticky: true,
@@ -7841,7 +7841,7 @@ const IndexBar$1 = forwardRef((p, ref) => {
7841
7841
  const active = index2 === activeAnchor;
7842
7842
  return /* @__PURE__ */ React.createElement("span", {
7843
7843
  key: index2,
7844
- className: clsx(bem$J("index", { active })),
7844
+ className: cls(bem$K("index", { active })),
7845
7845
  style: active ? highlightStyle : null,
7846
7846
  "data-index": index2
7847
7847
  }, props.itemRender ? props.itemRender(index2, active) : index2);
@@ -7929,13 +7929,13 @@ const IndexBar$1 = forwardRef((p, ref) => {
7929
7929
  value: { zIndex, highlightColor, sticky }
7930
7930
  }, /* @__PURE__ */ React.createElement("div", {
7931
7931
  ref: root2,
7932
- className: clsx(bem$J(), props.className),
7932
+ className: cls(bem$K(), props.className),
7933
7933
  style: props.style
7934
7934
  }, renderToContainer(
7935
7935
  props.teleport,
7936
7936
  /* @__PURE__ */ React.createElement("div", {
7937
7937
  ref: sidebar,
7938
- className: clsx(bem$J("sidebar")),
7938
+ className: cls(bem$K("sidebar")),
7939
7939
  style: sidebarStyle,
7940
7940
  onClick: onClickSidebar,
7941
7941
  onTouchStart
@@ -7951,9 +7951,9 @@ function genAlphabet() {
7951
7951
  return indexList;
7952
7952
  }
7953
7953
  const IndexBar = Object.assign(IndexBar$1, { Anchor: IndexAnchor });
7954
- var index$r = "";
7954
+ var index$s = "";
7955
7955
  const CollapseContext = createContext({});
7956
- const [bem$I] = createNamespace("collapse");
7956
+ const [bem$J] = createNamespace("collapse");
7957
7957
  const Collapse$1 = (p) => {
7958
7958
  const props = mergeProps(p, {
7959
7959
  border: true
@@ -8000,7 +8000,7 @@ const Collapse$1 = (p) => {
8000
8000
  }, /* @__PURE__ */ React.createElement("div", {
8001
8001
  style: props.style,
8002
8002
  ref: props.nativeRef,
8003
- className: clsx(bem$I(), props.className, {
8003
+ className: cls(bem$J(), props.className, {
8004
8004
  [BORDER_TOP_BOTTOM]: props.border
8005
8005
  })
8006
8006
  }, React.Children.toArray(props.children).filter(Boolean).map(
@@ -8018,7 +8018,7 @@ function useLazyRender(show2) {
8018
8018
  }, [show2]);
8019
8019
  return (render2) => () => inited ? render2() : null;
8020
8020
  }
8021
- const [bem$H] = createNamespace("collapse-item");
8021
+ const [bem$I] = createNamespace("collapse-item");
8022
8022
  const CollapseItem = forwardRef(
8023
8023
  ({ className, style, ...p }, ref) => {
8024
8024
  const props = mergeProps(p, {
@@ -8079,8 +8079,8 @@ const CollapseItem = forwardRef(
8079
8079
  const renderTitle = () => {
8080
8080
  const { border, disabled, children, readOnly, ...others } = props;
8081
8081
  return /* @__PURE__ */ React.createElement(Cell, {
8082
- className: clsx(
8083
- bem$H("title", {
8082
+ className: cls(
8083
+ bem$I("title", {
8084
8084
  disabled,
8085
8085
  expanded,
8086
8086
  borderless: !border
@@ -8095,25 +8095,25 @@ const CollapseItem = forwardRef(
8095
8095
  };
8096
8096
  const renderContent = lazyRender(() => /* @__PURE__ */ React.createElement("div", {
8097
8097
  ref: wrapperRef,
8098
- className: clsx(bem$H("wrapper")),
8098
+ className: cls(bem$I("wrapper")),
8099
8099
  onTransitionEnd
8100
8100
  }, /* @__PURE__ */ React.createElement("div", {
8101
8101
  ref: contentRef,
8102
- className: clsx(bem$H("content"))
8102
+ className: cls(bem$I("content"))
8103
8103
  }, props.children)));
8104
8104
  useImperativeHandle(ref, () => ({
8105
8105
  toggle
8106
8106
  }));
8107
8107
  return /* @__PURE__ */ React.createElement("div", {
8108
8108
  style,
8109
- className: clsx(className, bem$H({ border: index2 && props.border }))
8109
+ className: cls(className, bem$I({ border: index2 && props.border }))
8110
8110
  }, renderTitle(), renderContent());
8111
8111
  }
8112
8112
  );
8113
8113
  const Collapse = Object.assign(Collapse$1, { Item: CollapseItem });
8114
- var index$q = "";
8114
+ var index$r = "";
8115
8115
  const RadioContext = createContext({});
8116
- const [bem$G] = createNamespace("radio-group");
8116
+ const [bem$H] = createNamespace("radio-group");
8117
8117
  function RadioGroup(props) {
8118
8118
  const [checked, setChecked] = useMergedState({
8119
8119
  value: props.value,
@@ -8127,7 +8127,7 @@ function RadioGroup(props) {
8127
8127
  return /* @__PURE__ */ React.createElement(RadioContext.Provider, {
8128
8128
  value: { parent: { props }, toggle, checked }
8129
8129
  }, /* @__PURE__ */ React.createElement("div", {
8130
- className: clsx(props.className, bem$G([props.direction])),
8130
+ className: cls(props.className, bem$H([props.direction])),
8131
8131
  style: props.style,
8132
8132
  role: "radiogroup"
8133
8133
  }, props.children));
@@ -8180,7 +8180,7 @@ const Checker = (p) => {
8180
8180
  const iconSize = props.iconSize || getParentProp("iconSize");
8181
8181
  return /* @__PURE__ */ React.createElement("div", {
8182
8182
  ref: iconRef,
8183
- className: clsx(bem2("icon", [shape, { disabled, checked }])),
8183
+ className: cls(bem2("icon", [shape, { disabled, checked }])),
8184
8184
  style: { fontSize: addUnit(iconSize) }
8185
8185
  }, props.iconRender ? props.iconRender({ checked, disabled }) : /* @__PURE__ */ React.createElement(Success, {
8186
8186
  style: iconStyle
@@ -8196,7 +8196,7 @@ const Checker = (p) => {
8196
8196
  };
8197
8197
  return /* @__PURE__ */ React.createElement("div", {
8198
8198
  role: props.role,
8199
- className: clsx(
8199
+ className: cls(
8200
8200
  props.bem([
8201
8201
  {
8202
8202
  disabled,
@@ -8212,7 +8212,7 @@ const Checker = (p) => {
8212
8212
  onClick
8213
8213
  }, props.labelPosition === "left" && renderLabel(), renderIcon(), props.labelPosition !== "left" && renderLabel());
8214
8214
  };
8215
- const [bem$F] = createNamespace("radio");
8215
+ const [bem$G] = createNamespace("radio");
8216
8216
  function Radio$1(props) {
8217
8217
  const { parent, ...context } = useContext(RadioContext);
8218
8218
  const checked = useMemo(() => {
@@ -8225,7 +8225,7 @@ function Radio$1(props) {
8225
8225
  };
8226
8226
  return /* @__PURE__ */ React.createElement(Checker, {
8227
8227
  ...props,
8228
- bem: bem$F,
8228
+ bem: bem$G,
8229
8229
  role: "radio",
8230
8230
  parent,
8231
8231
  checked,
@@ -8233,7 +8233,7 @@ function Radio$1(props) {
8233
8233
  });
8234
8234
  }
8235
8235
  const Radio = Object.assign(Radio$1, { Group: RadioGroup });
8236
- var index$p = "";
8236
+ var index$q = "";
8237
8237
  function getRateStatus(value, index2, allowHalf, readOnly) {
8238
8238
  if (value >= index2) {
8239
8239
  return { status: "full", value: 1 };
@@ -8250,7 +8250,7 @@ function getRateStatus(value, index2, allowHalf, readOnly) {
8250
8250
  }
8251
8251
  return { status: "void", value: 0 };
8252
8252
  }
8253
- const [bem$E] = createNamespace("rate");
8253
+ const [bem$F] = createNamespace("rate");
8254
8254
  const Rate = ({
8255
8255
  count = 5,
8256
8256
  touchable = true,
@@ -8355,25 +8355,25 @@ const Rate = ({
8355
8355
  ref: setItemRefs(index2),
8356
8356
  role: "radio",
8357
8357
  style,
8358
- className: clsx(bem$E("item")),
8358
+ className: cls(bem$F("item")),
8359
8359
  tabIndex: 0,
8360
8360
  "aria-setsize": parseInt(count == null ? void 0 : count.toString(), 10),
8361
8361
  "aria-posinset": score,
8362
8362
  "aria-checked": !isVoid,
8363
8363
  onClick: onClickItem
8364
8364
  }, React.cloneElement(isFull ? icon : voidIcon, {
8365
- className: clsx(bem$E("icon", { disabled, full: isFull })),
8365
+ className: cls(bem$F("icon", { disabled, full: isFull })),
8366
8366
  style: {
8367
8367
  color: disabled ? disabledColor : isFull ? color : voidColor,
8368
8368
  fontSize: size
8369
8369
  }
8370
8370
  }), renderHalf && /* @__PURE__ */ React.createElement("div", {
8371
- className: clsx(bem$E("icon", ["half"])),
8371
+ className: cls(bem$F("icon", ["half"])),
8372
8372
  style: { width: `${item.value * 100}%` }
8373
8373
  }, React.cloneElement(
8374
8374
  isVoid ? voidIcon : icon,
8375
8375
  {
8376
- className: clsx(bem$E("icon", [{ disabled, full: !isVoid }])),
8376
+ className: cls(bem$F("icon", [{ disabled, full: !isVoid }])),
8377
8377
  style: {
8378
8378
  color: disabled ? disabledColor : isVoid ? voidColor : color,
8379
8379
  fontSize: size
@@ -8388,8 +8388,8 @@ const Rate = ({
8388
8388
  return /* @__PURE__ */ React.createElement("div", {
8389
8389
  ref: root2,
8390
8390
  role: "radiogroup",
8391
- className: clsx(
8392
- bem$E({
8391
+ className: cls(
8392
+ bem$F({
8393
8393
  readOnly: props.readOnly,
8394
8394
  disabled: props.disabled
8395
8395
  })
@@ -8398,7 +8398,7 @@ const Rate = ({
8398
8398
  onTouchStart
8399
8399
  }, list.map(renderStar));
8400
8400
  };
8401
- var index$o = "";
8401
+ var index$p = "";
8402
8402
  function formatMonthTitle(date) {
8403
8403
  return [date.getFullYear(), date.getMonth() + 1];
8404
8404
  }
@@ -8464,7 +8464,7 @@ function getTrueValue(value) {
8464
8464
  function getMonthEndDay(year, month) {
8465
8465
  return 32 - new Date(year, month - 1, 32).getDate();
8466
8466
  }
8467
- const [bem$D] = createNamespace("calendar");
8467
+ const [bem$E] = createNamespace("calendar");
8468
8468
  const CalenderDay = (p) => {
8469
8469
  const props = mergeProps(p, {
8470
8470
  offset: 0
@@ -8507,7 +8507,7 @@ const CalenderDay = (p) => {
8507
8507
  const { topInfo } = props.item;
8508
8508
  if (topInfo || props.topInfoRender) {
8509
8509
  return /* @__PURE__ */ React.createElement("div", {
8510
- className: clsx(bem$D("top-info"))
8510
+ className: cls(bem$E("top-info"))
8511
8511
  }, props.topInfoRender ? props.topInfoRender(props.item) : topInfo);
8512
8512
  }
8513
8513
  return null;
@@ -8516,7 +8516,7 @@ const CalenderDay = (p) => {
8516
8516
  const { bottomInfo } = props.item;
8517
8517
  if (bottomInfo || props.bottomInfoRender) {
8518
8518
  return /* @__PURE__ */ React.createElement("div", {
8519
- className: clsx(bem$D("bottom-info"))
8519
+ className: cls(bem$E("bottom-info"))
8520
8520
  }, props.bottomInfoRender ? props.bottomInfoRender(props.item) : bottomInfo);
8521
8521
  }
8522
8522
  return null;
@@ -8527,7 +8527,7 @@ const CalenderDay = (p) => {
8527
8527
  const Nodes = /* @__PURE__ */ React.createElement(React.Fragment, null, renderTopInfo(), text, renderBottomInfo());
8528
8528
  if (type2 === "selected") {
8529
8529
  return /* @__PURE__ */ React.createElement("div", {
8530
- className: clsx(bem$D("selected-day")),
8530
+ className: cls(bem$E("selected-day")),
8531
8531
  style: {
8532
8532
  width: rowHeight,
8533
8533
  height: rowHeight,
@@ -8540,19 +8540,19 @@ const CalenderDay = (p) => {
8540
8540
  const { type, className } = props.item;
8541
8541
  if (type === "placeholder") {
8542
8542
  return /* @__PURE__ */ React.createElement("div", {
8543
- className: clsx(bem$D("day")),
8543
+ className: cls(bem$E("day")),
8544
8544
  style
8545
8545
  });
8546
8546
  }
8547
8547
  return /* @__PURE__ */ React.createElement("div", {
8548
8548
  role: "gridcell",
8549
8549
  style,
8550
- className: clsx(bem$D("day", type), className),
8550
+ className: cls(bem$E("day", type), className),
8551
8551
  tabIndex: type === "disabled" ? void 0 : -1,
8552
8552
  onClick
8553
8553
  }, renderContent());
8554
8554
  };
8555
- const [bem$C] = createNamespace("calendar");
8555
+ const [bem$D] = createNamespace("calendar");
8556
8556
  const CalenderMonth = forwardRef((props, ref) => {
8557
8557
  const [visible, setVisible] = useState();
8558
8558
  const daysRef = useRef();
@@ -8667,7 +8667,7 @@ const CalenderMonth = forwardRef((props, ref) => {
8667
8667
  const renderTitle = () => {
8668
8668
  if (props.showMonthTitle) {
8669
8669
  return /* @__PURE__ */ React.createElement("div", {
8670
- className: clsx(bem$C("month-title"))
8670
+ className: cls(bem$D("month-title"))
8671
8671
  }, title);
8672
8672
  }
8673
8673
  return null;
@@ -8675,7 +8675,7 @@ const CalenderMonth = forwardRef((props, ref) => {
8675
8675
  const renderMark = () => {
8676
8676
  if (props.showMark && shouldRender) {
8677
8677
  return /* @__PURE__ */ React.createElement("div", {
8678
- className: clsx(bem$C("month-mark"))
8678
+ className: cls(bem$D("month-mark"))
8679
8679
  }, props.date.getMonth() + 1);
8680
8680
  }
8681
8681
  return null;
@@ -8718,7 +8718,7 @@ const CalenderMonth = forwardRef((props, ref) => {
8718
8718
  const renderDays = () => /* @__PURE__ */ React.createElement("div", {
8719
8719
  ref: daysRef,
8720
8720
  role: "grid",
8721
- className: clsx(bem$C("days"))
8721
+ className: cls(bem$D("days"))
8722
8722
  }, renderMark(), (shouldRender ? days : placeholders).map(renderDay));
8723
8723
  useImperativeHandle(ref, () => ({
8724
8724
  getTitle,
@@ -8727,18 +8727,18 @@ const CalenderMonth = forwardRef((props, ref) => {
8727
8727
  scrollIntoView
8728
8728
  }));
8729
8729
  return /* @__PURE__ */ React.createElement("div", {
8730
- className: clsx(bem$C("month")),
8730
+ className: cls(bem$D("month")),
8731
8731
  ref: setMonthRef
8732
8732
  }, renderTitle(), renderDays());
8733
8733
  });
8734
- const [bem$B] = createNamespace("calendar");
8734
+ const [bem$C] = createNamespace("calendar");
8735
8735
  const CalenderHeader = (props) => {
8736
8736
  const { locale } = useContext(ConfigProvider$1);
8737
8737
  const renderTitle = () => {
8738
8738
  if (props.showTitle) {
8739
8739
  const text = props.title || locale.vanCalendar.title;
8740
8740
  return /* @__PURE__ */ React.createElement("div", {
8741
- className: clsx(bem$B("header-title"))
8741
+ className: cls(bem$C("header-title"))
8742
8742
  }, text);
8743
8743
  }
8744
8744
  return null;
@@ -8750,7 +8750,7 @@ const CalenderHeader = (props) => {
8750
8750
  const renderSubtitle = () => {
8751
8751
  if (props.showSubtitle) {
8752
8752
  return /* @__PURE__ */ React.createElement("div", {
8753
- className: clsx(bem$B("header-subtitle")),
8753
+ className: cls(bem$C("header-subtitle")),
8754
8754
  onClick: onClickSubtitle
8755
8755
  }, props.subtitle);
8756
8756
  }
@@ -8765,17 +8765,17 @@ const CalenderHeader = (props) => {
8765
8765
  ...weekdays.slice(0, firstDayOfWeek)
8766
8766
  ];
8767
8767
  return /* @__PURE__ */ React.createElement("div", {
8768
- className: clsx(bem$B("weekdays"))
8768
+ className: cls(bem$C("weekdays"))
8769
8769
  }, renderWeekDaysContent.map((text, i) => /* @__PURE__ */ React.createElement("span", {
8770
8770
  key: i,
8771
- className: clsx(bem$B("weekday"))
8771
+ className: cls(bem$C("weekday"))
8772
8772
  }, text)));
8773
8773
  };
8774
8774
  return /* @__PURE__ */ React.createElement("div", {
8775
- className: clsx(bem$B("header"))
8775
+ className: cls(bem$C("header"))
8776
8776
  }, renderTitle(), renderSubtitle(), renderWeekDays());
8777
8777
  };
8778
- const [bem$A] = createNamespace("calendar");
8778
+ const [bem$B] = createNamespace("calendar");
8779
8779
  const defaultMinDate = getToday();
8780
8780
  const defaultMaxDate = (() => {
8781
8781
  const now = getToday();
@@ -9116,7 +9116,7 @@ const Calendar = forwardRef(
9116
9116
  block: true,
9117
9117
  type: "danger",
9118
9118
  color: props.color,
9119
- className: clsx(bem$A("confirm")),
9119
+ className: cls(bem$B("confirm")),
9120
9120
  disabled: buttonDisabled,
9121
9121
  nativeType: "button",
9122
9122
  onClick: onConfirm
@@ -9125,12 +9125,12 @@ const Calendar = forwardRef(
9125
9125
  return null;
9126
9126
  };
9127
9127
  const renderFooter = () => /* @__PURE__ */ React.createElement("div", {
9128
- className: clsx(bem$A("footer"), {
9128
+ className: cls(bem$B("footer"), {
9129
9129
  "rv-safe-area-bottom": props.safeAreaInsetBottom
9130
9130
  })
9131
9131
  }, renderFooterButton());
9132
9132
  const renderCalendar = () => /* @__PURE__ */ React.createElement("div", {
9133
- className: clsx(className, bem$A()),
9133
+ className: cls(className, bem$B()),
9134
9134
  style
9135
9135
  }, /* @__PURE__ */ React.createElement(CalenderHeader, {
9136
9136
  weekdays: props.weekdays,
@@ -9145,7 +9145,7 @@ const Calendar = forwardRef(
9145
9145
  }
9146
9146
  }), props.horizontal ? /* @__PURE__ */ React.createElement("div", {
9147
9147
  ref: bodyRef,
9148
- className: clsx(bem$A("horizontal-body"))
9148
+ className: cls(bem$B("horizontal-body"))
9149
9149
  }, /* @__PURE__ */ React.createElement(Swiper, {
9150
9150
  indicator: () => null,
9151
9151
  onChange: (index2) => {
@@ -9155,7 +9155,7 @@ const Calendar = forwardRef(
9155
9155
  key: month
9156
9156
  }, renderMonth(month, index2))))) : /* @__PURE__ */ React.createElement("div", {
9157
9157
  ref: bodyRef,
9158
- className: clsx(bem$A("body")),
9158
+ className: cls(bem$B("body")),
9159
9159
  onScroll
9160
9160
  }, months.map(renderMonth)), renderFooter());
9161
9161
  const actions = {
@@ -9195,7 +9195,7 @@ const Calendar = forwardRef(
9195
9195
  if (props.poppable) {
9196
9196
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Popup, {
9197
9197
  visible,
9198
- className: clsx(bem$A("popup")),
9198
+ className: cls(bem$B("popup")),
9199
9199
  round: props.round,
9200
9200
  position: props.position,
9201
9201
  closeable: props.showTitle || props.showSubtitle,
@@ -9214,7 +9214,7 @@ const Calendar = forwardRef(
9214
9214
  return renderCalendar();
9215
9215
  }
9216
9216
  );
9217
- var index$n = "";
9217
+ var index$o = "";
9218
9218
  function useCascaderExtend(options, keys, value) {
9219
9219
  const { childrenKey, valueKey } = keys;
9220
9220
  const depth = useMemo(() => {
@@ -9290,7 +9290,7 @@ function useDebounceEffect(effect, deps, options) {
9290
9290
  }, deps);
9291
9291
  useUpdateEffect(effect, [flag]);
9292
9292
  }
9293
- const [bem$z] = createNamespace("cascader");
9293
+ const [bem$A] = createNamespace("cascader");
9294
9294
  const Cascader = (props) => {
9295
9295
  const { locale } = useContext(ConfigProvider$1);
9296
9296
  const [value, setValue] = useState(
@@ -9368,27 +9368,27 @@ const Cascader = (props) => {
9368
9368
  return null;
9369
9369
  if (props.closeIcon) {
9370
9370
  return React.cloneElement(props.closeIcon, {
9371
- className: clsx(bem$z("close-icon")),
9371
+ className: cls(bem$A("close-icon")),
9372
9372
  onClick: props.onClose
9373
9373
  });
9374
9374
  }
9375
9375
  return /* @__PURE__ */ React.createElement(Cross, {
9376
- className: clsx(bem$z("close-icon")),
9376
+ className: cls(bem$A("close-icon")),
9377
9377
  onClick: props.onClose
9378
9378
  });
9379
9379
  };
9380
9380
  const renderHeader = () => /* @__PURE__ */ React.createElement("div", {
9381
- className: clsx(bem$z("header"))
9381
+ className: cls(bem$A("header"))
9382
9382
  }, /* @__PURE__ */ React.createElement("h2", {
9383
- className: clsx(bem$z("title"))
9383
+ className: cls(bem$A("title"))
9384
9384
  }, props.title), renderCloseIcon());
9385
9385
  const renderOption = (option, selected, tabIndex) => {
9386
9386
  const color = option.color || (selected ? props.activeColor : void 0);
9387
9387
  const Text2 = props.optionRender ? props.optionRender({ option, selected }) : /* @__PURE__ */ React.createElement("span", null, option[textKey]);
9388
9388
  return /* @__PURE__ */ React.createElement("li", {
9389
9389
  key: option[valueKey],
9390
- className: clsx(
9391
- bem$z("option", {
9390
+ className: cls(
9391
+ bem$A("option", {
9392
9392
  selected,
9393
9393
  disabled: option.disabled
9394
9394
  }),
@@ -9397,12 +9397,12 @@ const Cascader = (props) => {
9397
9397
  style: { color },
9398
9398
  onClick: () => onSelect(option, tabIndex)
9399
9399
  }, Text2, selected ? /* @__PURE__ */ React.createElement(Success, {
9400
- className: clsx(bem$z("selected-icon"))
9400
+ className: cls(bem$A("selected-icon"))
9401
9401
  }) : null);
9402
9402
  };
9403
9403
  const renderOptions = (options, selectedOption, tabIndex) => /* @__PURE__ */ React.createElement("ul", {
9404
9404
  key: tabIndex,
9405
- className: clsx(bem$z("options"))
9405
+ className: cls(bem$A("options"))
9406
9406
  }, options.map(
9407
9407
  (option) => renderOption(
9408
9408
  option,
@@ -9416,8 +9416,8 @@ const Cascader = (props) => {
9416
9416
  return /* @__PURE__ */ React.createElement(Tabs.TabPane, {
9417
9417
  key: tabIndex,
9418
9418
  title,
9419
- titleClass: clsx(
9420
- bem$z("tab", {
9419
+ titleClass: cls(
9420
+ bem$A("tab", {
9421
9421
  unselected: !selectedOption
9422
9422
  })
9423
9423
  )
@@ -9426,7 +9426,7 @@ const Cascader = (props) => {
9426
9426
  const renderTabs = () => /* @__PURE__ */ React.createElement(Tabs, {
9427
9427
  animated: true,
9428
9428
  active: activeTab,
9429
- className: clsx(bem$z("tabs")),
9429
+ className: cls(bem$A("tabs")),
9430
9430
  color: props.activeColor,
9431
9431
  swipeThreshold: 0,
9432
9432
  swipeable: props.swipeable,
@@ -9434,7 +9434,7 @@ const Cascader = (props) => {
9434
9434
  onClickTab
9435
9435
  }, tabs.map(renderTab));
9436
9436
  return /* @__PURE__ */ React.createElement("div", {
9437
- className: clsx(bem$z())
9437
+ className: cls(bem$A())
9438
9438
  }, renderHeader(), tabs.length ? renderTabs() : null);
9439
9439
  };
9440
9440
  const CascaderPopup = React.forwardRef(
@@ -9550,9 +9550,9 @@ const CascaderPopup = React.forwardRef(
9550
9550
  }, content), (_a = props.children) == null ? void 0 : _a.call(props, value, items, actions));
9551
9551
  }
9552
9552
  );
9553
- var index$m = "";
9553
+ var index$n = "";
9554
9554
  const CheckboxContext = createContext({});
9555
- const [bem$y] = createNamespace("checkbox-group");
9555
+ const [bem$z] = createNamespace("checkbox-group");
9556
9556
  const CheckBoxGroup = forwardRef(
9557
9557
  (props, ref) => {
9558
9558
  const [childrenRefs, setChildrenRefs] = useRefs();
@@ -9589,7 +9589,7 @@ const CheckBoxGroup = forwardRef(
9589
9589
  return /* @__PURE__ */ React.createElement(CheckboxContext.Provider, {
9590
9590
  value: { parent: { props }, toggle, checked: checked || [] }
9591
9591
  }, /* @__PURE__ */ React.createElement("div", {
9592
- className: clsx(props.className, bem$y([props.direction]))
9592
+ className: cls(props.className, bem$z([props.direction]))
9593
9593
  }, React.Children.toArray(props.children).filter(Boolean).map((child, index2) => {
9594
9594
  var _a;
9595
9595
  if (((_a = child.type) == null ? void 0 : _a.displayName) !== "Checkbox")
@@ -9598,7 +9598,7 @@ const CheckBoxGroup = forwardRef(
9598
9598
  })));
9599
9599
  }
9600
9600
  );
9601
- const [bem$x] = createNamespace("checkbox");
9601
+ const [bem$y] = createNamespace("checkbox");
9602
9602
  const CheckBox = forwardRef((p, ref) => {
9603
9603
  const props = mergeProps(p, {
9604
9604
  bindGroup: true
@@ -9652,7 +9652,7 @@ const CheckBox = forwardRef((p, ref) => {
9652
9652
  }));
9653
9653
  return /* @__PURE__ */ React.createElement(Checker, {
9654
9654
  ...props,
9655
- bem: bem$x,
9655
+ bem: bem$y,
9656
9656
  role: "checkbox",
9657
9657
  parent,
9658
9658
  checked: isChecked,
@@ -9663,7 +9663,7 @@ const CheckBox = forwardRef((p, ref) => {
9663
9663
  });
9664
9664
  CheckBox.displayName = "Checkbox";
9665
9665
  const Checkbox = Object.assign(CheckBox, { Group: CheckBoxGroup });
9666
- var index$l = "";
9666
+ var index$m = "";
9667
9667
  const DEFAULT_DURATION = 200;
9668
9668
  const MOMENTUM_LIMIT_TIME = 300;
9669
9669
  const MOMENTUM_LIMIT_DISTANCE = 15;
@@ -9673,7 +9673,7 @@ function getElementTranslateY(element) {
9673
9673
  const translateY = transform.slice(7, transform.length - 1).split(", ")[5];
9674
9674
  return Number(translateY);
9675
9675
  }
9676
- const [bem$w] = createNamespace("picker-column");
9676
+ const [bem$x] = createNamespace("picker-column");
9677
9677
  const PickerColumn = memo(
9678
9678
  forwardRef((props, ref) => {
9679
9679
  const { locale } = useContext(ConfigProvider$1);
@@ -9855,8 +9855,8 @@ const PickerColumn = memo(
9855
9855
  role: "button",
9856
9856
  style: optionStyle,
9857
9857
  tabIndex: disabled ? -1 : 0,
9858
- className: clsx(
9859
- bem$w("item", {
9858
+ className: cls(
9859
+ bem$x("item", {
9860
9860
  disabled,
9861
9861
  selected: option[valueKey] === value
9862
9862
  })
@@ -9881,7 +9881,7 @@ const PickerColumn = memo(
9881
9881
  stopMomentum
9882
9882
  }));
9883
9883
  return /* @__PURE__ */ React.createElement("div", {
9884
- className: clsx(bem$w(), props.className),
9884
+ className: cls(bem$x(), props.className),
9885
9885
  onTouchStart,
9886
9886
  onTouchMove,
9887
9887
  onTouchEnd,
@@ -9893,7 +9893,7 @@ const PickerColumn = memo(
9893
9893
  transitionDuration: `${state.duration}ms`,
9894
9894
  transitionProperty: state.duration ? "all" : "none"
9895
9895
  },
9896
- className: clsx(bem$w("wrapper")),
9896
+ className: cls(bem$x("wrapper")),
9897
9897
  onTransitionEnd: stopMomentum
9898
9898
  }, renderOptions()));
9899
9899
  }),
@@ -9990,10 +9990,10 @@ function withCache(generate) {
9990
9990
  function generateColumnsExtend(rawColumns, keys, val) {
9991
9991
  const { textKey, valueKey } = keys;
9992
9992
  const columns = withCache(() => {
9993
- let cls = typeof rawColumns === "function" ? rawColumns(val) : rawColumns;
9994
- if (!Array.isArray(cls[0]))
9995
- cls = [cls];
9996
- 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(
9997
9997
  (column) => column.map((item) => {
9998
9998
  if (typeof item === "string")
9999
9999
  return { [textKey]: item, [valueKey]: item };
@@ -10041,7 +10041,7 @@ function useColumnsExtend(columns, keys, value) {
10041
10041
  [columns, keys, value]
10042
10042
  );
10043
10043
  }
10044
- const [bem$v] = createNamespace("picker");
10044
+ const [bem$w] = createNamespace("picker");
10045
10045
  function PickerInner(props) {
10046
10046
  const { locale } = useContext(ConfigProvider$1);
10047
10047
  const wrapper = useRef(null);
@@ -10109,7 +10109,7 @@ function PickerInner(props) {
10109
10109
  const renderTitle = () => {
10110
10110
  if (props.title) {
10111
10111
  return /* @__PURE__ */ React.createElement("div", {
10112
- className: clsx(bem$v("title"), "rv-ellipsis")
10112
+ className: cls(bem$w("title"), "rv-ellipsis")
10113
10113
  }, props.title);
10114
10114
  }
10115
10115
  return null;
@@ -10118,7 +10118,7 @@ function PickerInner(props) {
10118
10118
  const text = props.cancelButtonText || locale.cancel;
10119
10119
  return /* @__PURE__ */ React.createElement("button", {
10120
10120
  type: "button",
10121
- className: clsx(bem$v("cancel")),
10121
+ className: cls(bem$w("cancel")),
10122
10122
  onClick: cancel
10123
10123
  }, text);
10124
10124
  };
@@ -10126,14 +10126,14 @@ function PickerInner(props) {
10126
10126
  const text = props.confirmButtonText || locale.confirm;
10127
10127
  return /* @__PURE__ */ React.createElement("button", {
10128
10128
  type: "button",
10129
- className: clsx(bem$v("confirm")),
10129
+ className: cls(bem$w("confirm")),
10130
10130
  onClick: confirm
10131
10131
  }, text);
10132
10132
  };
10133
10133
  const renderToolbar = () => {
10134
10134
  if (props.showToolbar) {
10135
10135
  return /* @__PURE__ */ React.createElement("div", {
10136
- className: clsx(bem$v("toolbar"))
10136
+ className: cls(bem$w("toolbar"))
10137
10137
  }, props.toolbar || /* @__PURE__ */ React.createElement(React.Fragment, null, renderCancel(), renderTitle(), renderConfirm()));
10138
10138
  }
10139
10139
  return null;
@@ -10168,13 +10168,13 @@ function PickerInner(props) {
10168
10168
  };
10169
10169
  return /* @__PURE__ */ React.createElement("div", {
10170
10170
  ref: wrapper,
10171
- className: clsx(bem$v("columns")),
10171
+ className: cls(bem$w("columns")),
10172
10172
  style: columnsStyle
10173
10173
  }, renderColumnItems(), /* @__PURE__ */ React.createElement("div", {
10174
- className: clsx(bem$v("mask")),
10174
+ className: cls(bem$w("mask")),
10175
10175
  style: maskStyle
10176
10176
  }), /* @__PURE__ */ React.createElement("div", {
10177
- className: clsx(BORDER_UNSET_TOP_BOTTOM, bem$v("frame")),
10177
+ className: cls(BORDER_UNSET_TOP_BOTTOM, bem$w("frame")),
10178
10178
  style: frameStyle
10179
10179
  }));
10180
10180
  };
@@ -10182,9 +10182,9 @@ function PickerInner(props) {
10182
10182
  target: wrapper.current
10183
10183
  });
10184
10184
  return /* @__PURE__ */ React.createElement("div", {
10185
- className: clsx(bem$v(), props.className)
10185
+ className: cls(bem$w(), props.className)
10186
10186
  }, props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? /* @__PURE__ */ React.createElement(Loading, {
10187
- className: clsx(bem$v("loading"))
10187
+ className: cls(bem$w("loading"))
10188
10188
  }) : null, props.columnsTop, renderColumns(), props.columnsBottom, props.toolbarPosition === "bottom" ? renderToolbar() : null);
10189
10189
  }
10190
10190
  function PopupPicker(p, ref) {
@@ -10666,25 +10666,25 @@ const TimePicker = forwardRef(
10666
10666
  });
10667
10667
  }
10668
10668
  );
10669
- const [bem$u] = createNamespace("datetime-picker");
10669
+ const [bem$v] = createNamespace("datetime-picker");
10670
10670
  const DateTimePicker = forwardRef(
10671
10671
  (props, ref) => {
10672
10672
  const isTimePicker = props.type === "time";
10673
10673
  if (isTimePicker)
10674
10674
  return /* @__PURE__ */ React.createElement(TimePicker, {
10675
10675
  ref,
10676
- className: clsx(bem$u()),
10676
+ className: cls(bem$v()),
10677
10677
  ...props
10678
10678
  });
10679
10679
  return /* @__PURE__ */ React.createElement(DatePicker, {
10680
10680
  ref,
10681
- className: clsx(bem$u()),
10681
+ className: cls(bem$v()),
10682
10682
  ...props
10683
10683
  });
10684
10684
  }
10685
10685
  );
10686
- var index$k = "";
10687
- const [bem$t] = createNamespace("password-input");
10686
+ var index$l = "";
10687
+ const [bem$u] = createNamespace("password-input");
10688
10688
  const PasswordInput = forwardRef(
10689
10689
  (p, ref) => {
10690
10690
  const props = mergeProps(p, {
@@ -10761,18 +10761,18 @@ const PasswordInput = forwardRef(
10761
10761
  Points.push(
10762
10762
  /* @__PURE__ */ React.createElement("li", {
10763
10763
  key: i,
10764
- className: clsx(
10764
+ className: cls(
10765
10765
  {
10766
10766
  [BORDER_LEFT]: showBorder,
10767
10767
  [props.highlightClass]: props.highlightClass && char && !props.mask
10768
10768
  },
10769
- bem$t("item", { focus: showCursor })
10769
+ bem$u("item", { focus: showCursor })
10770
10770
  ),
10771
10771
  style
10772
10772
  }, mask ? /* @__PURE__ */ React.createElement("i", {
10773
10773
  style: { visibility: char ? "visible" : "hidden" }
10774
10774
  }) : char, showCursor && /* @__PURE__ */ React.createElement("div", {
10775
- className: clsx(bem$t("cursor"))
10775
+ className: cls(bem$u("cursor"))
10776
10776
  }))
10777
10777
  );
10778
10778
  }
@@ -10807,10 +10807,10 @@ const PasswordInput = forwardRef(
10807
10807
  }));
10808
10808
  const info = props.errorInfo || props.info;
10809
10809
  return /* @__PURE__ */ React.createElement("div", {
10810
- className: clsx(bem$t(), props.className),
10810
+ className: cls(bem$u(), props.className),
10811
10811
  style: props.style
10812
10812
  }, /* @__PURE__ */ React.createElement("ul", {
10813
- className: clsx(bem$t("security"), {
10813
+ className: cls(bem$u("security"), {
10814
10814
  [BORDER_SURROUND]: !props.gutter
10815
10815
  })
10816
10816
  }, renderPoints(), /* @__PURE__ */ React.createElement("input", {
@@ -10837,26 +10837,26 @@ const PasswordInput = forwardRef(
10837
10837
  (_a = props.onBlur) == null ? void 0 : _a.call(props, e);
10838
10838
  }
10839
10839
  })), info ? /* @__PURE__ */ React.createElement("div", {
10840
- className: clsx(bem$t(props.errorInfo ? "error-info" : "info"))
10840
+ className: cls(bem$u(props.errorInfo ? "error-info" : "info"))
10841
10841
  }, info) : null);
10842
10842
  }
10843
10843
  );
10844
- var index$j = "";
10844
+ var index$k = "";
10845
10845
  const CollapseIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement("svg", {
10846
- className: clsx(bem2("collapse-icon")),
10846
+ className: cls(bem2("collapse-icon")),
10847
10847
  viewBox: "0 0 30 24"
10848
10848
  }, /* @__PURE__ */ React.createElement("path", {
10849
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",
10850
10850
  fill: "currentColor"
10851
10851
  }));
10852
10852
  const DeleteIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement("svg", {
10853
- className: clsx(bem2("delete-icon")),
10853
+ className: cls(bem2("delete-icon")),
10854
10854
  viewBox: "0 0 32 22"
10855
10855
  }, /* @__PURE__ */ React.createElement("path", {
10856
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",
10857
10857
  fill: "currentColor"
10858
10858
  }));
10859
- const [bem$s] = createNamespace("key");
10859
+ const [bem$t] = createNamespace("key");
10860
10860
  const NumberKeyboardKey = ({
10861
10861
  children,
10862
10862
  className,
@@ -10888,18 +10888,18 @@ const NumberKeyboardKey = ({
10888
10888
  const renderContent = () => {
10889
10889
  if (props.loading) {
10890
10890
  return /* @__PURE__ */ React.createElement(Loading, {
10891
- className: clsx(bem$s("loading-icon"))
10891
+ className: cls(bem$t("loading-icon"))
10892
10892
  });
10893
10893
  }
10894
10894
  const text = children || props.text;
10895
10895
  switch (props.type) {
10896
10896
  case "delete":
10897
10897
  return text || /* @__PURE__ */ React.createElement(DeleteIcon, {
10898
- bem: bem$s
10898
+ bem: bem$t
10899
10899
  });
10900
10900
  case "extra":
10901
10901
  return text || /* @__PURE__ */ React.createElement(CollapseIcon, {
10902
- bem: bem$s
10902
+ bem: bem$t
10903
10903
  });
10904
10904
  default:
10905
10905
  return text;
@@ -10907,7 +10907,7 @@ const NumberKeyboardKey = ({
10907
10907
  };
10908
10908
  return /* @__PURE__ */ React.createElement("div", {
10909
10909
  style,
10910
- className: clsx(className, bem$s("wrapper", { wider: props.wider })),
10910
+ className: cls(className, bem$t("wrapper", { wider: props.wider })),
10911
10911
  onTouchStart,
10912
10912
  onTouchMove,
10913
10913
  onTouchEnd,
@@ -10915,8 +10915,8 @@ const NumberKeyboardKey = ({
10915
10915
  }, /* @__PURE__ */ React.createElement("div", {
10916
10916
  role: "button",
10917
10917
  tabIndex: 0,
10918
- className: clsx(
10919
- bem$s([
10918
+ className: cls(
10919
+ bem$t([
10920
10920
  props.color,
10921
10921
  {
10922
10922
  large: props.large,
@@ -10927,7 +10927,7 @@ const NumberKeyboardKey = ({
10927
10927
  )
10928
10928
  }, renderContent()));
10929
10929
  };
10930
- const [bem$r] = createNamespace("number-keyboard");
10930
+ const [bem$s] = createNamespace("number-keyboard");
10931
10931
  const NumberKeyboard = ({
10932
10932
  className,
10933
10933
  style,
@@ -11024,12 +11024,12 @@ const NumberKeyboard = ({
11024
11024
  return null;
11025
11025
  }
11026
11026
  return /* @__PURE__ */ React.createElement("div", {
11027
- className: clsx(bem$r("header"))
11027
+ className: cls(bem$s("header"))
11028
11028
  }, title && /* @__PURE__ */ React.createElement("h2", {
11029
- className: clsx(bem$r("title"))
11029
+ className: cls(bem$s("title"))
11030
11030
  }, title), showClose && /* @__PURE__ */ React.createElement("button", {
11031
11031
  type: "button",
11032
- className: clsx(bem$r("close")),
11032
+ className: cls(bem$s("close")),
11033
11033
  onClick: onClose
11034
11034
  }, closeButtonText));
11035
11035
  };
@@ -11058,7 +11058,7 @@ const NumberKeyboard = ({
11058
11058
  const renderSidebar = () => {
11059
11059
  if (props.theme === "custom") {
11060
11060
  return /* @__PURE__ */ React.createElement("div", {
11061
- className: clsx(bem$r("sidebar"))
11061
+ className: cls(bem$s("sidebar"))
11062
11062
  }, props.showDeleteKey && /* @__PURE__ */ React.createElement(NumberKeyboardKey, {
11063
11063
  large: true,
11064
11064
  text: props.deleteButtonText,
@@ -11094,23 +11094,23 @@ const NumberKeyboard = ({
11094
11094
  }, /* @__PURE__ */ React.createElement("div", {
11095
11095
  ref: root2,
11096
11096
  style: { ...style, ...getZIndexStyle(props.zIndex) },
11097
- className: clsx(
11097
+ className: cls(
11098
11098
  className,
11099
- bem$r({
11099
+ bem$s({
11100
11100
  unfit: !props.safeAreaInsetBottom,
11101
11101
  "with-title": !!Title2
11102
11102
  })
11103
11103
  ),
11104
11104
  onTouchStart: stopPropagation
11105
11105
  }, Title2, /* @__PURE__ */ React.createElement("div", {
11106
- className: clsx(bem$r("body"))
11106
+ className: cls(bem$s("body"))
11107
11107
  }, /* @__PURE__ */ React.createElement("div", {
11108
- className: clsx(bem$r("keys"))
11108
+ className: cls(bem$s("keys"))
11109
11109
  }, renderKeys()), renderSidebar())));
11110
11110
  return Content;
11111
11111
  };
11112
- var index$i = "";
11113
- const [bem$q] = createNamespace("slider");
11112
+ var index$j = "";
11113
+ const [bem$r] = createNamespace("slider");
11114
11114
  const Slider = (p) => {
11115
11115
  const props = mergeProps(p, {
11116
11116
  min: 0,
@@ -11290,9 +11290,9 @@ const Slider = (p) => {
11290
11290
  const getButtonClassName = (index2) => {
11291
11291
  if (typeof index2 === "number") {
11292
11292
  const position = ["left", "right"];
11293
- return bem$q("button-wrapper", position[index2]);
11293
+ return bem$r("button-wrapper", position[index2]);
11294
11294
  }
11295
- return bem$q("button-wrapper", props.reverse ? "left" : "right");
11295
+ return bem$r("button-wrapper", props.reverse ? "left" : "right");
11296
11296
  };
11297
11297
  const renderButtonContent = (value, index2) => {
11298
11298
  if (typeof index2 === "number") {
@@ -11308,7 +11308,7 @@ const Slider = (p) => {
11308
11308
  return props.button;
11309
11309
  }
11310
11310
  return /* @__PURE__ */ React.createElement("div", {
11311
- className: clsx(bem$q("button")),
11311
+ className: cls(bem$r("button")),
11312
11312
  style: getSizeStyle(props.buttonSize)
11313
11313
  });
11314
11314
  };
@@ -11318,7 +11318,7 @@ const Slider = (p) => {
11318
11318
  ref: buttounRef,
11319
11319
  key: index2,
11320
11320
  role: "slider",
11321
- className: clsx(getButtonClassName(index2)),
11321
+ className: cls(getButtonClassName(index2)),
11322
11322
  tabIndex: props.disabled || props.readOnly ? -1 : 0,
11323
11323
  "aria-valuemin": props.min,
11324
11324
  "aria-valuenow": value,
@@ -11356,27 +11356,27 @@ const Slider = (p) => {
11356
11356
  return /* @__PURE__ */ React.createElement("div", {
11357
11357
  ref: root2,
11358
11358
  style: wrapperStyle,
11359
- className: clsx(
11359
+ className: cls(
11360
11360
  props.className,
11361
- bem$q({
11361
+ bem$r({
11362
11362
  vertical: props.vertical,
11363
11363
  disabled: props.disabled
11364
11364
  })
11365
11365
  ),
11366
11366
  onClick
11367
11367
  }, /* @__PURE__ */ React.createElement("div", {
11368
- className: clsx(bem$q("bar")),
11368
+ className: cls(bem$r("bar")),
11369
11369
  style: barStyle
11370
11370
  }, props.range ? [renderButton(setButtonRef1, 0), renderButton(setButtonRef2, 1)] : renderButton(setButtonRef1)));
11371
11371
  };
11372
- var index$h = "";
11372
+ var index$i = "";
11373
11373
  const LONG_PRESS_INTERVAL = 100;
11374
11374
  const LONG_PRESS_START_TIME = 600;
11375
11375
  function add(num1, num2) {
11376
11376
  const cardinal = 10 ** 10;
11377
11377
  return Math.round((num1 + num2) * cardinal) / cardinal;
11378
11378
  }
11379
- const [bem$p] = createNamespace("stepper");
11379
+ const [bem$q] = createNamespace("stepper");
11380
11380
  const Stepper = React.forwardRef((p, ref) => {
11381
11381
  const props = mergeProps(p, {
11382
11382
  theme: "default",
@@ -11545,19 +11545,19 @@ const Stepper = React.forwardRef((p, ref) => {
11545
11545
  blur: () => inputRef.current.blur()
11546
11546
  }));
11547
11547
  return /* @__PURE__ */ React.createElement("div", {
11548
- className: clsx(props.className, bem$p([props.theme])),
11548
+ className: cls(props.className, bem$q([props.theme])),
11549
11549
  style: props.style
11550
11550
  }, props.showMinus && /* @__PURE__ */ React.createElement("button", {
11551
11551
  type: "button",
11552
11552
  "aria-label": "minus",
11553
11553
  style: buttonStyle,
11554
- className: clsx(bem$p("minus", { disabled: minusDisabled })),
11554
+ className: cls(bem$q("minus", { disabled: minusDisabled })),
11555
11555
  ...createListeners("minus")
11556
11556
  }), props.showInput && /* @__PURE__ */ React.createElement("input", {
11557
11557
  ref: inputRef,
11558
11558
  type: props.integer ? "tel" : "text",
11559
11559
  role: "spinbutton",
11560
- className: clsx(bem$p("input")),
11560
+ className: cls(bem$q("input")),
11561
11561
  value: inputValue,
11562
11562
  style: inputStyle,
11563
11563
  disabled: props.disabled || props.disableInput,
@@ -11576,7 +11576,7 @@ const Stepper = React.forwardRef((p, ref) => {
11576
11576
  type: "button",
11577
11577
  "aria-label": "add",
11578
11578
  style: buttonStyle,
11579
- className: clsx(bem$p("plus", { disabled: plusDisabled })),
11579
+ className: cls(bem$q("plus", { disabled: plusDisabled })),
11580
11580
  ...createListeners("plus")
11581
11581
  }));
11582
11582
  });
@@ -11594,7 +11594,7 @@ function convertTextToValue(text) {
11594
11594
  return null;
11595
11595
  return parseFloat(text);
11596
11596
  }
11597
- const [bem$o] = createNamespace("switch");
11597
+ const [bem$p] = createNamespace("switch");
11598
11598
  const Swtich = (p) => {
11599
11599
  const props = mergeProps(p, {
11600
11600
  activeValue: true,
@@ -11629,7 +11629,7 @@ const Swtich = (p) => {
11629
11629
  if (props.loading) {
11630
11630
  const color = isChecked ? props.activeColor : props.inactiveColor;
11631
11631
  return /* @__PURE__ */ React.createElement(Loading, {
11632
- className: clsx(bem$o("loading")),
11632
+ className: cls(bem$p("loading")),
11633
11633
  color
11634
11634
  });
11635
11635
  }
@@ -11638,9 +11638,9 @@ const Swtich = (p) => {
11638
11638
  return /* @__PURE__ */ React.createElement("div", {
11639
11639
  role: "switch",
11640
11640
  tabIndex: 0,
11641
- className: clsx(
11641
+ className: cls(
11642
11642
  props.className,
11643
- bem$o({
11643
+ bem$p({
11644
11644
  on: isChecked,
11645
11645
  loading,
11646
11646
  disabled
@@ -11650,11 +11650,11 @@ const Swtich = (p) => {
11650
11650
  "aria-checked": isChecked,
11651
11651
  onClick
11652
11652
  }, /* @__PURE__ */ React.createElement("div", {
11653
- className: clsx(bem$o("node"))
11653
+ className: cls(bem$p("node"))
11654
11654
  }, renderLoading()));
11655
11655
  };
11656
+ var index$h = "";
11656
11657
  var index$g = "";
11657
- var index$f = "";
11658
11658
  function toArray(item) {
11659
11659
  if (Array.isArray(item)) {
11660
11660
  return item;
@@ -11724,7 +11724,7 @@ function isImageFile(item, isImage) {
11724
11724
  }
11725
11725
  return false;
11726
11726
  }
11727
- const [bem$n] = createNamespace("uploader");
11727
+ const [bem$o] = createNamespace("uploader");
11728
11728
  const UploaderPreviewItem = (props) => {
11729
11729
  const { onPreview, statusTextRender, status, file, url } = props;
11730
11730
  const isImage = useMemo(
@@ -11740,14 +11740,14 @@ const UploaderPreviewItem = (props) => {
11740
11740
  const renderMask = () => {
11741
11741
  if (status === "failed" || status === "pending") {
11742
11742
  const MaskIcon = status === "failed" ? /* @__PURE__ */ React.createElement(Close, {
11743
- className: clsx(bem$n("mask-icon"))
11743
+ className: cls(bem$o("mask-icon"))
11744
11744
  }) : /* @__PURE__ */ React.createElement(Loading, {
11745
- className: clsx(bem$n("loading"))
11745
+ className: cls(bem$o("loading"))
11746
11746
  });
11747
11747
  return /* @__PURE__ */ React.createElement("div", {
11748
- className: clsx(bem$n("mask"))
11748
+ className: cls(bem$o("mask"))
11749
11749
  }, MaskIcon, statusTextRender && /* @__PURE__ */ React.createElement("div", {
11750
- className: clsx(bem$n("mask-message"))
11750
+ className: cls(bem$o("mask-message"))
11751
11751
  }, statusTextRender(status)));
11752
11752
  }
11753
11753
  return null;
@@ -11755,10 +11755,10 @@ const UploaderPreviewItem = (props) => {
11755
11755
  const renderDeleteIcon = () => {
11756
11756
  if (props.deletable) {
11757
11757
  return props.deleteRender ? props.deleteRender(props.onDelete) : /* @__PURE__ */ React.createElement("div", {
11758
- className: clsx(bem$n("preview-delete")),
11758
+ className: cls(bem$o("preview-delete")),
11759
11759
  onClick: props.onDelete
11760
11760
  }, /* @__PURE__ */ React.createElement(Cross, {
11761
- className: clsx(bem$n("preview-delete-icon"))
11761
+ className: cls(bem$o("preview-delete-icon"))
11762
11762
  }));
11763
11763
  }
11764
11764
  return null;
@@ -11772,27 +11772,27 @@ const UploaderPreviewItem = (props) => {
11772
11772
  return /* @__PURE__ */ React.createElement(ImageNamespace, {
11773
11773
  fit: props.imageFit,
11774
11774
  src: imageSrc,
11775
- className: clsx(bem$n("preview-image")),
11775
+ className: cls(bem$o("preview-image")),
11776
11776
  width: props.previewSize,
11777
11777
  height: props.previewSize,
11778
11778
  onClick: onPreview
11779
11779
  }, renderCover());
11780
11780
  }
11781
11781
  return /* @__PURE__ */ React.createElement("div", {
11782
- className: clsx(bem$n("file")),
11782
+ className: cls(bem$o("file")),
11783
11783
  style: getSizeStyle(props.previewSize)
11784
11784
  }, /* @__PURE__ */ React.createElement(Description, {
11785
- className: clsx(bem$n("file-icon"))
11785
+ className: cls(bem$o("file-icon"))
11786
11786
  }), /* @__PURE__ */ React.createElement("div", {
11787
- className: clsx(bem$n("file-name"), "rv-ellipsis")
11787
+ className: cls(bem$o("file-name"), "rv-ellipsis")
11788
11788
  }, file ? file.name : url), renderCover());
11789
11789
  };
11790
11790
  return /* @__PURE__ */ React.createElement("div", {
11791
- className: clsx(bem$n("preview")),
11791
+ className: cls(bem$o("preview")),
11792
11792
  onClick: props.onClick
11793
11793
  }, renderPreview(), renderMask(), renderDeleteIcon());
11794
11794
  };
11795
- const [bem$m] = createNamespace("uploader");
11795
+ const [bem$n] = createNamespace("uploader");
11796
11796
  const Uploader = forwardRef((p, ref) => {
11797
11797
  var _a;
11798
11798
  const props = mergeProps(p, {
@@ -12001,7 +12001,7 @@ const Uploader = forwardRef((p, ref) => {
12001
12001
  const renderUploadIcon = () => {
12002
12002
  if (props.uploadIcon) {
12003
12003
  return React.cloneElement(props.uploadIcon, {
12004
- className: clsx(bem$m("upload-icon"))
12004
+ className: cls(bem$n("upload-icon"))
12005
12005
  });
12006
12006
  }
12007
12007
  return null;
@@ -12011,7 +12011,7 @@ const Uploader = forwardRef((p, ref) => {
12011
12011
  const Input2 = props.readOnly ? null : /* @__PURE__ */ React.createElement("input", {
12012
12012
  ref: inputRef,
12013
12013
  type: "file",
12014
- className: clsx(bem$m("input")),
12014
+ className: cls(bem$n("input")),
12015
12015
  accept: props.accept,
12016
12016
  capture: props.capture,
12017
12017
  multiple: props.multiple,
@@ -12020,16 +12020,16 @@ const Uploader = forwardRef((p, ref) => {
12020
12020
  });
12021
12021
  if (props.children) {
12022
12022
  return /* @__PURE__ */ React.createElement("div", {
12023
- className: clsx(bem$m("input-wrapper")),
12023
+ className: cls(bem$n("input-wrapper")),
12024
12024
  onClick: props.onClickUpload
12025
12025
  }, props.children, Input2);
12026
12026
  }
12027
12027
  return /* @__PURE__ */ React.createElement("div", {
12028
- className: clsx(bem$m("upload", { readOnly: props.readOnly })),
12028
+ className: cls(bem$n("upload", { readOnly: props.readOnly })),
12029
12029
  style: getSizeStyle(props.previewSize),
12030
12030
  onClick: props.onClickUpload
12031
12031
  }, renderUploadIcon(), props.uploadText && /* @__PURE__ */ React.createElement("span", {
12032
- className: clsx(bem$m("upload-text"))
12032
+ className: cls(bem$n("upload-text"))
12033
12033
  }, props.uploadText), Input2);
12034
12034
  }
12035
12035
  return null;
@@ -12044,13 +12044,13 @@ const Uploader = forwardRef((p, ref) => {
12044
12044
  closeImagePreview
12045
12045
  }));
12046
12046
  return /* @__PURE__ */ React.createElement("div", {
12047
- className: clsx(bem$m())
12047
+ className: cls(bem$n())
12048
12048
  }, /* @__PURE__ */ React.createElement("div", {
12049
- className: clsx(bem$m("wrapper", { disabled: props.disabled }))
12049
+ className: cls(bem$n("wrapper", { disabled: props.disabled }))
12050
12050
  }, renderPreviewList(), renderUpload()));
12051
12051
  });
12052
- var index$e = "";
12053
- const [bem$l] = createNamespace("progress");
12052
+ var index$f = "";
12053
+ const [bem$m] = createNamespace("progress");
12054
12054
  const Progress = (p) => {
12055
12055
  const props = mergeProps(p, {
12056
12056
  showPivot: true,
@@ -12072,7 +12072,7 @@ const Progress = (p) => {
12072
12072
  };
12073
12073
  return /* @__PURE__ */ React.createElement("span", {
12074
12074
  style,
12075
- className: clsx(bem$l("pivot"))
12075
+ className: cls(bem$m("pivot"))
12076
12076
  }, text);
12077
12077
  }
12078
12078
  return null;
@@ -12088,14 +12088,14 @@ const Progress = (p) => {
12088
12088
  transform: `scaleX(${+percentage / 100})`
12089
12089
  };
12090
12090
  return /* @__PURE__ */ React.createElement("div", {
12091
- className: clsx(bem$l(), props.className),
12091
+ className: cls(bem$m(), props.className),
12092
12092
  style: rootStyle
12093
12093
  }, /* @__PURE__ */ React.createElement("span", {
12094
- className: clsx(bem$l("portion")),
12094
+ className: cls(bem$m("portion")),
12095
12095
  style: portionStyle
12096
12096
  }), renderPivot());
12097
12097
  };
12098
- var index$d = "";
12098
+ var index$e = "";
12099
12099
  let uid = 0;
12100
12100
  function format(rate) {
12101
12101
  return Math.min(Math.max(+rate, 0), 100);
@@ -12110,7 +12110,7 @@ const ROTATE_ANGLE_MAP = {
12110
12110
  bottom: 180,
12111
12111
  left: 270
12112
12112
  };
12113
- const [bem$k] = createNamespace("circle");
12113
+ const [bem$l] = createNamespace("circle");
12114
12114
  const Circle = (p) => {
12115
12115
  const props = mergeProps(p, {
12116
12116
  clockwise: true,
@@ -12184,7 +12184,7 @@ const Circle = (p) => {
12184
12184
  return /* @__PURE__ */ React.createElement("path", {
12185
12185
  d: path,
12186
12186
  style,
12187
- className: clsx(bem$k("hover")),
12187
+ className: cls(bem$l("hover")),
12188
12188
  stroke: color
12189
12189
  });
12190
12190
  };
@@ -12195,7 +12195,7 @@ const Circle = (p) => {
12195
12195
  strokeWidth: `${props.strokeWidth}px`
12196
12196
  };
12197
12197
  return /* @__PURE__ */ React.createElement("path", {
12198
- className: clsx(bem$k("layer")),
12198
+ className: cls(bem$l("layer")),
12199
12199
  style,
12200
12200
  d: path
12201
12201
  });
@@ -12221,24 +12221,24 @@ const Circle = (p) => {
12221
12221
  const renderText = () => {
12222
12222
  if (props.text) {
12223
12223
  return /* @__PURE__ */ React.createElement("div", {
12224
- className: clsx(bem$k("text"))
12224
+ className: cls(bem$l("text"))
12225
12225
  }, props.text);
12226
12226
  }
12227
12227
  return props.children;
12228
12228
  };
12229
12229
  return /* @__PURE__ */ React.createElement("div", {
12230
- className: clsx(bem$k(), props.className),
12230
+ className: cls(bem$l(), props.className),
12231
12231
  style: { ...props.style, ...getSizeStyle(props.size) }
12232
12232
  }, /* @__PURE__ */ React.createElement("svg", {
12233
12233
  viewBox: `0 0 ${viewBoxSize} ${viewBoxSize}`,
12234
12234
  style: svgStyle
12235
12235
  }, renderGradient(), renderLayer(), renderHover()), renderText());
12236
12236
  };
12237
- var index$c = "";
12237
+ var index$d = "";
12238
12238
  function makePage(number, text, active) {
12239
12239
  return { number, text, active };
12240
12240
  }
12241
- const [bem$j] = createNamespace("pagination");
12241
+ const [bem$k] = createNamespace("pagination");
12242
12242
  const Pagination = (p) => {
12243
12243
  const props = mergeProps(p, {
12244
12244
  mode: "multi",
@@ -12303,7 +12303,7 @@ const Pagination = (p) => {
12303
12303
  const renderDesc = () => {
12304
12304
  if (props.mode !== "multi") {
12305
12305
  return /* @__PURE__ */ React.createElement("li", {
12306
- className: clsx(bem$j("page-desc"))
12306
+ className: cls(bem$k("page-desc"))
12307
12307
  }, props.pageDesc ? props.pageDesc : `${props.value}/${count}`);
12308
12308
  }
12309
12309
  return null;
@@ -12312,34 +12312,34 @@ const Pagination = (p) => {
12312
12312
  const onSelect = (value2) => () => select(value2, true);
12313
12313
  const { value } = props;
12314
12314
  return /* @__PURE__ */ React.createElement("ul", {
12315
- className: clsx(bem$j({ simple }))
12315
+ className: cls(bem$k({ simple }))
12316
12316
  }, /* @__PURE__ */ React.createElement("li", {
12317
- className: clsx(
12318
- bem$j("item", { disabled: value === 1 }),
12319
- bem$j("prev"),
12317
+ className: cls(
12318
+ bem$k("item", { disabled: value === 1 }),
12319
+ bem$k("prev"),
12320
12320
  BORDER
12321
12321
  ),
12322
12322
  onClick: onSelect(value - 1)
12323
12323
  }, props.prevText || locale.vanPagination.prev), pages.map((page, index2) => /* @__PURE__ */ React.createElement("li", {
12324
12324
  key: index2,
12325
- className: clsx(
12326
- bem$j("item", { active: page.active }),
12327
- bem$j("page"),
12325
+ className: cls(
12326
+ bem$k("item", { active: page.active }),
12327
+ bem$k("page"),
12328
12328
  BORDER
12329
12329
  ),
12330
12330
  onClick: onSelect(page.number)
12331
12331
  }, props.pageRender ? props.pageRender(page) : page.text)), renderDesc(), /* @__PURE__ */ React.createElement("li", {
12332
- className: clsx(
12333
- bem$j("item", { disabled: value === count }),
12334
- bem$j("next"),
12332
+ className: cls(
12333
+ bem$k("item", { disabled: value === count }),
12334
+ bem$k("next"),
12335
12335
  BORDER
12336
12336
  ),
12337
12337
  onClick: onSelect(value + 1)
12338
12338
  }, props.nextText || locale.vanPagination.next));
12339
12339
  };
12340
- var index$b = "";
12340
+ var index$c = "";
12341
12341
  const TabbarContext = createContext({});
12342
- const [bem$i] = createNamespace("tabbar");
12342
+ const [bem$j] = createNamespace("tabbar");
12343
12343
  const Tabbar$1 = (p) => {
12344
12344
  const props = mergeProps(p, {
12345
12345
  fixed: true,
@@ -12354,7 +12354,7 @@ const Tabbar$1 = (p) => {
12354
12354
  const height = useHeight(root2);
12355
12355
  const renderPlaceholder = (renderContent) => {
12356
12356
  return /* @__PURE__ */ React.createElement("div", {
12357
- className: clsx(bem$i("placeholder")),
12357
+ className: cls(bem$j("placeholder")),
12358
12358
  style: { height }
12359
12359
  }, renderContent());
12360
12360
  };
@@ -12376,7 +12376,7 @@ const Tabbar$1 = (p) => {
12376
12376
  }, /* @__PURE__ */ React.createElement("div", {
12377
12377
  ref: root2,
12378
12378
  style: { ...props.style, ...getZIndexStyle(zIndex) },
12379
- className: clsx(props.className, bem$i({ fixed }), {
12379
+ className: cls(props.className, bem$j({ fixed }), {
12380
12380
  [BORDER_TOP_BOTTOM]: border,
12381
12381
  "rv-safe-area-bottom": enableSafeArea()
12382
12382
  })
@@ -12392,7 +12392,7 @@ const Tabbar$1 = (p) => {
12392
12392
  }
12393
12393
  return renderTabbar();
12394
12394
  };
12395
- const [bem$h] = createNamespace("tabbar-item");
12395
+ const [bem$i] = createNamespace("tabbar-item");
12396
12396
  const TabbarItem = (props) => {
12397
12397
  const { setActive, index: index2 } = props;
12398
12398
  const { parent } = useContext(TabbarContext);
@@ -12416,14 +12416,14 @@ const TabbarItem = (props) => {
12416
12416
  };
12417
12417
  const color = active ? activeColor : inactiveColor;
12418
12418
  return /* @__PURE__ */ React.createElement("div", {
12419
- className: clsx(props.className, bem$h({ active })),
12419
+ className: cls(props.className, bem$i({ active })),
12420
12420
  style: { ...props.style, color },
12421
12421
  onClick
12422
12422
  }, /* @__PURE__ */ React.createElement(Badge, {
12423
12423
  ...props.badge,
12424
- className: clsx(bem$h("icon"))
12424
+ className: cls(bem$i("icon"))
12425
12425
  }, renderIcon()), /* @__PURE__ */ React.createElement("div", {
12426
- className: clsx(bem$h("text"))
12426
+ className: cls(bem$i("text"))
12427
12427
  }, typeof props.children === "function" ? props.children(active) : props.children));
12428
12428
  };
12429
12429
  const Tabbar = Object.assign(Tabbar$1, { Item: TabbarItem });
@@ -12460,7 +12460,7 @@ const ConfigProvider = ({
12460
12460
  style: varStyle
12461
12461
  }, children));
12462
12462
  };
12463
- var index$a = "";
12463
+ var index$b = "";
12464
12464
  const FormSubscribe = (props) => {
12465
12465
  const update = useUpdate();
12466
12466
  const form = useContext(FieldContext);
@@ -12486,7 +12486,7 @@ const DEFAULT_FORM_CONTEXT = {
12486
12486
  controlAlign: "left"
12487
12487
  };
12488
12488
  const FormContext = React.createContext(DEFAULT_FORM_CONTEXT);
12489
- const [bem$g] = createNamespace("form");
12489
+ const [bem$h] = createNamespace("form");
12490
12490
  const Form$1 = forwardRef((props, ref) => {
12491
12491
  const {
12492
12492
  className,
@@ -12503,7 +12503,7 @@ const Form$1 = forwardRef((props, ref) => {
12503
12503
  ...formProps
12504
12504
  } = props;
12505
12505
  return /* @__PURE__ */ React.createElement(RcForm, {
12506
- className: clsx(bem$g(), className),
12506
+ className: cls(bem$h(), className),
12507
12507
  style,
12508
12508
  ref,
12509
12509
  ...formProps
@@ -12518,7 +12518,7 @@ const Form$1 = forwardRef((props, ref) => {
12518
12518
  labelAlign
12519
12519
  }
12520
12520
  }, children), footer && /* @__PURE__ */ React.createElement("div", {
12521
- className: clsx(bem$g("footer"))
12521
+ className: cls(bem$h("footer"))
12522
12522
  }, footer));
12523
12523
  });
12524
12524
  function shouldConstruct(Component) {
@@ -12552,7 +12552,7 @@ const MemoInput = React.memo(
12552
12552
  ),
12553
12553
  (prev2, next) => prev2.value === next.value && prev2.update === next.update
12554
12554
  );
12555
- const [bem$f] = createNamespace("form-item");
12555
+ const [bem$g] = createNamespace("form-item");
12556
12556
  const FormItemLayout = (props) => {
12557
12557
  var _a, _b, _c, _d, _e, _f;
12558
12558
  const { meta, ...fieldProps } = props;
@@ -12567,7 +12567,7 @@ const FormItemLayout = (props) => {
12567
12567
  const errorMessage = showValidateMessage && error ? meta.errors[0] : null;
12568
12568
  const attrs = {
12569
12569
  ...fieldProps,
12570
- className: clsx(bem$f({ vertical: layout === "vertical" }), props.className),
12570
+ className: cls(bem$g({ vertical: layout === "vertical" }), props.className),
12571
12571
  colon,
12572
12572
  error: showValidateMessage ? false : error,
12573
12573
  errorMessage,
@@ -12787,7 +12787,7 @@ function parseVanAreaList(data, columnsNum) {
12787
12787
  }
12788
12788
  return provinces;
12789
12789
  }
12790
- const [bem$e] = createNamespace("area");
12790
+ const [bem$f] = createNamespace("area");
12791
12791
  const Area = forwardRef((p, ref) => {
12792
12792
  const props = mergeProps(p, {
12793
12793
  areaList: {},
@@ -12809,28 +12809,28 @@ const Area = forwardRef((p, ref) => {
12809
12809
  return /* @__PURE__ */ React.createElement(Picker, {
12810
12810
  ref,
12811
12811
  style: props.style,
12812
- className: clsx(bem$e(), props.className),
12812
+ className: cls(bem$f(), props.className),
12813
12813
  columns,
12814
12814
  ...pick(props, INHERIT_PROPS)
12815
12815
  });
12816
12816
  });
12817
- var index$9 = "";
12817
+ var index$a = "";
12818
12818
  const CardHeader = (props) => {
12819
12819
  const [bem2] = createNamespace("card-header");
12820
12820
  return /* @__PURE__ */ React.createElement("div", {
12821
- className: clsx(props.className, bem2(), { [BORDER_BOTTOM]: props.border }),
12821
+ className: cls(props.className, bem2(), { [BORDER_BOTTOM]: props.border }),
12822
12822
  style: props.style,
12823
12823
  onClick: props.onClick
12824
12824
  }, /* @__PURE__ */ React.createElement("div", {
12825
- className: clsx(bem2("content"))
12825
+ className: cls(bem2("content"))
12826
12826
  }, props.children), props.extra && /* @__PURE__ */ React.createElement("div", {
12827
- className: clsx(bem2("extra"))
12827
+ className: cls(bem2("extra"))
12828
12828
  }, props.extra));
12829
12829
  };
12830
12830
  const CardBody = (props) => {
12831
12831
  const [bem2] = createNamespace("card-body");
12832
12832
  return /* @__PURE__ */ React.createElement("div", {
12833
- className: clsx(props.className, bem2()),
12833
+ className: cls(props.className, bem2()),
12834
12834
  style: props.style,
12835
12835
  onClick: props.onClick
12836
12836
  }, props.children);
@@ -12838,7 +12838,7 @@ const CardBody = (props) => {
12838
12838
  const CardFooter = (props) => {
12839
12839
  const [bem2] = createNamespace("card-footer");
12840
12840
  return /* @__PURE__ */ React.createElement("div", {
12841
- className: clsx(props.className, bem2({ compact: props.compact }), {
12841
+ className: cls(props.className, bem2({ compact: props.compact }), {
12842
12842
  [BORDER_TOP]: props.border
12843
12843
  }),
12844
12844
  style: props.style,
@@ -12848,7 +12848,7 @@ const CardFooter = (props) => {
12848
12848
  const CardCover = (props) => {
12849
12849
  const [bem2] = createNamespace("card-cover");
12850
12850
  return /* @__PURE__ */ React.createElement("div", {
12851
- className: clsx(props.className, bem2()),
12851
+ className: cls(props.className, bem2()),
12852
12852
  style: props.style,
12853
12853
  onClick: props.onClick
12854
12854
  }, props.children);
@@ -12857,7 +12857,7 @@ const Card$1 = (props) => {
12857
12857
  const [bem2] = createNamespace("card");
12858
12858
  const { className, style, round, border, children } = props;
12859
12859
  return /* @__PURE__ */ React.createElement("div", {
12860
- className: clsx(bem2({ round, border }), className),
12860
+ className: cls(bem2({ round, border }), className),
12861
12861
  style,
12862
12862
  onClick: props.onClick
12863
12863
  }, children);
@@ -12868,11 +12868,11 @@ const Card = Object.assign(Card$1, {
12868
12868
  Footer: CardFooter,
12869
12869
  Cover: CardCover
12870
12870
  });
12871
- var index$8 = "";
12871
+ var index$9 = "";
12872
12872
  function isStringOrNumber(target) {
12873
12873
  return typeof target === "string" || typeof target === "number";
12874
12874
  }
12875
- const [bem$d] = createNamespace("product-card");
12875
+ const [bem$e] = createNamespace("product-card");
12876
12876
  const ProductCard = (p) => {
12877
12877
  const props = mergeProps(p, {
12878
12878
  currency: "\xA5",
@@ -12881,7 +12881,7 @@ const ProductCard = (p) => {
12881
12881
  const renderTitle = () => {
12882
12882
  if (props.title) {
12883
12883
  return /* @__PURE__ */ React.createElement("div", {
12884
- className: clsx(bem$d("title"), "rv-multi-ellipsis--l2")
12884
+ className: cls(bem$e("title"), "rv-multi-ellipsis--l2")
12885
12885
  }, props.title);
12886
12886
  }
12887
12887
  return null;
@@ -12889,7 +12889,7 @@ const ProductCard = (p) => {
12889
12889
  const renderThumbTag = () => {
12890
12890
  if (props.tag) {
12891
12891
  return /* @__PURE__ */ React.createElement("div", {
12892
- className: clsx(bem$d("tag"))
12892
+ className: cls(bem$e("tag"))
12893
12893
  }, isStringOrNumber(props.tag) ? /* @__PURE__ */ React.createElement(Tag, {
12894
12894
  mark: true,
12895
12895
  type: "danger"
@@ -12915,7 +12915,7 @@ const ProductCard = (p) => {
12915
12915
  if (props.thumb) {
12916
12916
  return /* @__PURE__ */ React.createElement("a", {
12917
12917
  href: props.thumbLink,
12918
- className: clsx(bem$d("thumb")),
12918
+ className: cls(bem$e("thumb")),
12919
12919
  onClick: props.onClickThumb
12920
12920
  }, renderThumbImage(), renderThumbTag());
12921
12921
  }
@@ -12924,7 +12924,7 @@ const ProductCard = (p) => {
12924
12924
  const renderDesc = () => {
12925
12925
  if (props.desc) {
12926
12926
  return /* @__PURE__ */ React.createElement("div", {
12927
- className: clsx(bem$d("desc"), "rv-ellipsis")
12927
+ className: cls(bem$e("desc"), "rv-ellipsis")
12928
12928
  }, props.desc);
12929
12929
  }
12930
12930
  return null;
@@ -12933,18 +12933,18 @@ const ProductCard = (p) => {
12933
12933
  if (isStringOrNumber(props.price)) {
12934
12934
  const priceArr = props.price.toString().split(".");
12935
12935
  return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("span", {
12936
- className: clsx(bem$d("price-currency"))
12936
+ className: cls(bem$e("price-currency"))
12937
12937
  }, props.currency), /* @__PURE__ */ React.createElement("span", {
12938
- className: clsx(bem$d("price-integer"))
12938
+ className: cls(bem$e("price-integer"))
12939
12939
  }, priceArr[0]), props.decimal && /* @__PURE__ */ React.createElement(React.Fragment, null, ".", /* @__PURE__ */ React.createElement("span", {
12940
- className: clsx(bem$d("price-decimal"))
12940
+ className: cls(bem$e("price-decimal"))
12941
12941
  }, priceArr[1] || "00")));
12942
12942
  }
12943
12943
  return props.price;
12944
12944
  };
12945
12945
  const renderOriginalPrice = () => {
12946
12946
  return /* @__PURE__ */ React.createElement("div", {
12947
- className: clsx(bem$d("origin-price"))
12947
+ className: cls(bem$e("origin-price"))
12948
12948
  }, isStringOrNumber(props.originPrice) ? `${props.currency} ${props.originPrice}` : props.originPrice);
12949
12949
  };
12950
12950
  const showNum = isDef(props.num);
@@ -12952,30 +12952,30 @@ const ProductCard = (p) => {
12952
12952
  const showOriginPrice = isDef(props.originPrice);
12953
12953
  const showBottom = showNum || showPrice || showOriginPrice || props.bottom;
12954
12954
  const Price = showPrice && /* @__PURE__ */ React.createElement("div", {
12955
- className: clsx(bem$d("price"))
12955
+ className: cls(bem$e("price"))
12956
12956
  }, renderPriceText());
12957
12957
  const OriginPrice = showOriginPrice && renderOriginalPrice();
12958
12958
  const Num = showNum && /* @__PURE__ */ React.createElement("div", {
12959
- className: clsx(bem$d("num"))
12959
+ className: cls(bem$e("num"))
12960
12960
  }, isStringOrNumber(props.num) ? `x${props.num}` : props.num);
12961
12961
  const Footer = props.footer && /* @__PURE__ */ React.createElement("div", {
12962
- className: clsx(bem$d("footer"))
12962
+ className: cls(bem$e("footer"))
12963
12963
  }, props.footer);
12964
12964
  const Bottom = showBottom && /* @__PURE__ */ React.createElement("div", {
12965
- className: clsx(bem$d("bottom"))
12965
+ className: cls(bem$e("bottom"))
12966
12966
  }, props.priceTop, Price, OriginPrice, Num, props.bottom);
12967
12967
  return /* @__PURE__ */ React.createElement("div", {
12968
- className: clsx(bem$d(), props.className),
12968
+ className: cls(bem$e(), props.className),
12969
12969
  style: props.style,
12970
12970
  onClick: props.onClick
12971
12971
  }, /* @__PURE__ */ React.createElement("div", {
12972
- className: clsx(bem$d("header"))
12972
+ className: cls(bem$e("header"))
12973
12973
  }, renderThumb(), /* @__PURE__ */ React.createElement("div", {
12974
- className: clsx(bem$d("content", { centered: props.centered }))
12974
+ className: cls(bem$e("content", { centered: props.centered }))
12975
12975
  }, /* @__PURE__ */ React.createElement("div", null, renderTitle(), renderDesc(), props.tags), Bottom)), Footer);
12976
12976
  };
12977
- var index$7 = "";
12978
- const [bem$c] = createNamespace("submit-bar");
12977
+ var index$8 = "";
12978
+ const [bem$d] = createNamespace("submit-bar");
12979
12979
  const SubmitBar = (p) => {
12980
12980
  const props = mergeProps(p, {
12981
12981
  buttonType: "danger",
@@ -12990,14 +12990,14 @@ const SubmitBar = (p) => {
12990
12990
  const pricePair = (+price / 100).toFixed(+decimalLength).split(".");
12991
12991
  const decimal = decimalLength ? `.${pricePair[1]}` : "";
12992
12992
  return /* @__PURE__ */ React.createElement("div", {
12993
- className: clsx(bem$c("text")),
12993
+ className: cls(bem$d("text")),
12994
12994
  style: { textAlign }
12995
12995
  }, /* @__PURE__ */ React.createElement("span", null, label || locale.vanSubmitBar.label), /* @__PURE__ */ React.createElement("span", {
12996
- className: clsx(bem$c("price"))
12996
+ className: cls(bem$d("price"))
12997
12997
  }, currency, /* @__PURE__ */ React.createElement("span", {
12998
- className: clsx(bem$c("price-integer"))
12998
+ className: cls(bem$d("price-integer"))
12999
12999
  }, pricePair[0]), decimal), suffixLabel && /* @__PURE__ */ React.createElement("span", {
13000
- className: clsx(bem$c("suffix-label"))
13000
+ className: cls(bem$d("suffix-label"))
13001
13001
  }, suffixLabel));
13002
13002
  }
13003
13003
  return null;
@@ -13006,11 +13006,11 @@ const SubmitBar = (p) => {
13006
13006
  const { tip, tipIcon } = props;
13007
13007
  if (tip) {
13008
13008
  return /* @__PURE__ */ React.createElement("div", {
13009
- className: clsx(bem$c("tip"))
13009
+ className: cls(bem$d("tip"))
13010
13010
  }, tipIcon && React.cloneElement(tipIcon, {
13011
- className: clsx(bem$c("tip-icon"))
13011
+ className: cls(bem$d("tip-icon"))
13012
13012
  }), tip && /* @__PURE__ */ React.createElement("span", {
13013
- className: clsx(bem$c("tip-text"))
13013
+ className: cls(bem$d("tip-text"))
13014
13014
  }, tip));
13015
13015
  }
13016
13016
  return null;
@@ -13024,7 +13024,7 @@ const SubmitBar = (p) => {
13024
13024
  round: true,
13025
13025
  type: props.buttonType,
13026
13026
  text: props.buttonText,
13027
- className: clsx(bem$c("button", props.buttonType)),
13027
+ className: cls(bem$d("button", props.buttonType)),
13028
13028
  color: props.buttonColor,
13029
13029
  loading: props.loading,
13030
13030
  disabled: props.disabled,
@@ -13032,15 +13032,15 @@ const SubmitBar = (p) => {
13032
13032
  });
13033
13033
  };
13034
13034
  return /* @__PURE__ */ React.createElement("div", {
13035
- className: clsx(props.className, bem$c(), {
13035
+ className: cls(props.className, bem$d(), {
13036
13036
  "rv-safe-area-bottom": props.safeAreaInsetBottom
13037
13037
  }),
13038
13038
  style: props.style
13039
13039
  }, props.top, renderTip(), /* @__PURE__ */ React.createElement("div", {
13040
- className: clsx(bem$c("bar"))
13040
+ className: cls(bem$d("bar"))
13041
13041
  }, props.children, renderText(), renderButton()));
13042
13042
  };
13043
- var index$6 = "";
13043
+ var index$7 = "";
13044
13044
  function formatValue(coupons, chosenCoupon, currency, locale) {
13045
13045
  const coupon = coupons[+chosenCoupon];
13046
13046
  if (coupon) {
@@ -13054,7 +13054,7 @@ function formatValue(coupons, chosenCoupon, currency, locale) {
13054
13054
  }
13055
13055
  return coupons.length === 0 ? locale.noCoupon : locale.vanCouponCell.count(coupons.length);
13056
13056
  }
13057
- const [bem$b] = createNamespace("coupon-cell");
13057
+ const [bem$c] = createNamespace("coupon-cell");
13058
13058
  const CouponCell = (p) => {
13059
13059
  const props = mergeProps(p, {
13060
13060
  border: true,
@@ -13073,16 +13073,16 @@ const CouponCell = (p) => {
13073
13073
  );
13074
13074
  return /* @__PURE__ */ React.createElement(Cell, {
13075
13075
  style: props.style,
13076
- className: clsx(bem$b(), props.className),
13076
+ className: cls(bem$c(), props.className),
13077
13077
  value,
13078
13078
  title: props.title || locale.vanCouponCell.title,
13079
13079
  border: props.border,
13080
13080
  isLink: props.editable,
13081
- valueClass: clsx(bem$b("value", { selected })),
13081
+ valueClass: cls(bem$c("value", { selected })),
13082
13082
  onClick: props.onClick
13083
13083
  });
13084
13084
  };
13085
- var index$5 = "";
13085
+ var index$6 = "";
13086
13086
  function getDate(timeStamp) {
13087
13087
  const date = new Date(timeStamp * 1e3);
13088
13088
  return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
@@ -13097,7 +13097,7 @@ function formatAmount(amount) {
13097
13097
  amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2
13098
13098
  );
13099
13099
  }
13100
- const [bem$a] = createNamespace("coupon");
13100
+ const [bem$b] = createNamespace("coupon");
13101
13101
  const Coupon = (p) => {
13102
13102
  const props = mergeProps(p, {
13103
13103
  currency: "\xA5"
@@ -13128,31 +13128,31 @@ const Coupon = (p) => {
13128
13128
  const { chosen, coupon, disabled } = props;
13129
13129
  const description = disabled && coupon.reason || coupon.description;
13130
13130
  return /* @__PURE__ */ React.createElement("div", {
13131
- className: clsx(props.className, bem$a({ disabled })),
13131
+ className: cls(props.className, bem$b({ disabled })),
13132
13132
  style: props.style,
13133
13133
  onClick: props.onClick
13134
13134
  }, /* @__PURE__ */ React.createElement("div", {
13135
- className: clsx(bem$a("content"))
13135
+ className: cls(bem$b("content"))
13136
13136
  }, /* @__PURE__ */ React.createElement("div", {
13137
- className: clsx(bem$a("head"))
13137
+ className: cls(bem$b("head"))
13138
13138
  }, /* @__PURE__ */ React.createElement("h2", {
13139
- className: clsx(bem$a("amount"))
13139
+ className: cls(bem$b("amount"))
13140
13140
  }, faceAmount), /* @__PURE__ */ React.createElement("p", {
13141
- className: clsx(bem$a("condition"))
13141
+ className: cls(bem$b("condition"))
13142
13142
  }, coupon.condition || conditionMessage)), /* @__PURE__ */ React.createElement("div", {
13143
- className: clsx(bem$a("body"))
13143
+ className: cls(bem$b("body"))
13144
13144
  }, /* @__PURE__ */ React.createElement("p", {
13145
- className: clsx(bem$a("name"))
13145
+ className: cls(bem$b("name"))
13146
13146
  }, coupon.name), /* @__PURE__ */ React.createElement("p", {
13147
- className: clsx(bem$a("valid"))
13147
+ className: cls(bem$b("valid"))
13148
13148
  }, validPeriod), !disabled && /* @__PURE__ */ React.createElement(Checkbox, {
13149
- className: clsx(bem$a("corner")),
13149
+ className: cls(bem$b("corner")),
13150
13150
  checked: chosen
13151
13151
  }))), description && /* @__PURE__ */ React.createElement("p", {
13152
- className: clsx(bem$a("description"))
13152
+ className: cls(bem$b("description"))
13153
13153
  }, description));
13154
13154
  };
13155
- const [bem$9] = createNamespace("coupon-list");
13155
+ const [bem$a] = createNamespace("coupon-list");
13156
13156
  const CouponList = (p) => {
13157
13157
  var _a;
13158
13158
  const props = mergeProps(p, {
@@ -13195,7 +13195,7 @@ const CouponList = (p) => {
13195
13195
  }
13196
13196
  };
13197
13197
  const renderEmpty = () => /* @__PURE__ */ React.createElement("div", {
13198
- className: clsx(bem$9("empty"))
13198
+ className: cls(bem$a("empty"))
13199
13199
  }, /* @__PURE__ */ React.createElement("img", {
13200
13200
  alt: "empty",
13201
13201
  src: props.emptyImage
@@ -13203,19 +13203,19 @@ const CouponList = (p) => {
13203
13203
  const renderExchangeBar = () => {
13204
13204
  if (props.showExchangeBar) {
13205
13205
  return /* @__PURE__ */ React.createElement("div", {
13206
- className: clsx(bem$9("exchange-bar"))
13206
+ className: cls(bem$a("exchange-bar"))
13207
13207
  }, /* @__PURE__ */ React.createElement(FieldNamespace, {
13208
13208
  value: state.code,
13209
13209
  onChange: innerChange,
13210
13210
  clearable: true,
13211
13211
  border: false,
13212
- className: clsx(bem$9("field")),
13212
+ className: cls(bem$a("field")),
13213
13213
  placeholder: props.inputPlaceholder || locale.vanCouponList.placeholder,
13214
13214
  maxLength: 20
13215
13215
  }), /* @__PURE__ */ React.createElement(Button, {
13216
13216
  plain: true,
13217
13217
  type: "primary",
13218
- className: clsx(bem$9("exchange")),
13218
+ className: cls(bem$a("exchange")),
13219
13219
  text: props.exchangeButtonText || locale.vanCouponList.exchange,
13220
13220
  loading: props.exchangeButtonLoading,
13221
13221
  disabled: buttonDisabled,
@@ -13231,8 +13231,8 @@ const CouponList = (p) => {
13231
13231
  return /* @__PURE__ */ React.createElement(Tabs.TabPane, {
13232
13232
  title
13233
13233
  }, /* @__PURE__ */ React.createElement("div", {
13234
- className: clsx(
13235
- bem$9("list", {
13234
+ className: cls(
13235
+ bem$a("list", {
13236
13236
  "with-bar": props.showExchangeBar,
13237
13237
  "with-bottom": props.showCloseButton
13238
13238
  })
@@ -13252,8 +13252,8 @@ const CouponList = (p) => {
13252
13252
  return /* @__PURE__ */ React.createElement(Tabs.TabPane, {
13253
13253
  title
13254
13254
  }, /* @__PURE__ */ React.createElement("div", {
13255
- className: clsx(
13256
- bem$9("list", {
13255
+ className: cls(
13256
+ bem$a("list", {
13257
13257
  "with-bar": props.showExchangeBar,
13258
13258
  "with-bottom": props.showCloseButton
13259
13259
  })
@@ -13273,21 +13273,21 @@ const CouponList = (p) => {
13273
13273
  updateState({ code: props.code });
13274
13274
  }, [props.code]);
13275
13275
  return /* @__PURE__ */ React.createElement("div", {
13276
- className: clsx(bem$9(), props.className),
13276
+ className: cls(bem$a(), props.className),
13277
13277
  style: props.style
13278
13278
  }, renderExchangeBar(), /* @__PURE__ */ React.createElement(Tabs, {
13279
13279
  active: state.tab,
13280
13280
  border: false,
13281
13281
  ...props.tabsProps,
13282
- 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)
13283
13283
  }, renderCouponTab(), renderDisabledTab()), /* @__PURE__ */ React.createElement("div", {
13284
- className: clsx(bem$9("bottom"))
13284
+ className: cls(bem$a("bottom"))
13285
13285
  }, /* @__PURE__ */ React.createElement(Button, {
13286
13286
  "v-show": props.showCloseButton,
13287
13287
  round: true,
13288
13288
  block: true,
13289
13289
  type: "primary",
13290
- className: clsx(bem$9("close")),
13290
+ className: cls(bem$a("close")),
13291
13291
  text: props.closeButtonText || locale.vanCouponList.close,
13292
13292
  onClick: () => {
13293
13293
  var _a2;
@@ -13296,7 +13296,7 @@ const CouponList = (p) => {
13296
13296
  })));
13297
13297
  };
13298
13298
  const EMPTY_IMAGE = "https://img.yzcdn.cn/vant/coupon-empty.png";
13299
- var index$4 = "";
13299
+ var index$5 = "";
13300
13300
  const LIMIT_TYPE = {
13301
13301
  QUOTA_LIMIT: 0,
13302
13302
  STOCK_LIMIT: 1
@@ -13417,29 +13417,29 @@ const getSelectedProperties = (propList, selectedProp) => {
13417
13417
  });
13418
13418
  return list;
13419
13419
  };
13420
- const [bem$8] = createNamespace("sku-row");
13420
+ const [bem$9] = createNamespace("sku-row");
13421
13421
  const SkuRow = (props) => {
13422
13422
  const { skuRow } = props;
13423
13423
  const renderTitle = () => {
13424
13424
  return /* @__PURE__ */ React.createElement("div", {
13425
- className: clsx(bem$8("title"))
13425
+ className: cls(bem$9("title"))
13426
13426
  }, skuRow.k, skuRow.is_multiple && /* @__PURE__ */ React.createElement("span", {
13427
- className: clsx(bem$8("title-multiple"))
13427
+ className: cls(bem$9("title-multiple"))
13428
13428
  }, "\uFF08\u53EF\u591A\u9009\uFF09"));
13429
13429
  };
13430
13430
  const renderContent = () => {
13431
13431
  const { largeImageMode } = skuRow;
13432
13432
  return largeImageMode ? /* @__PURE__ */ React.createElement("div", {
13433
- className: clsx(bem$8("scroller"))
13433
+ className: cls(bem$9("scroller"))
13434
13434
  }, /* @__PURE__ */ React.createElement("div", {
13435
- className: clsx(bem$8("row"))
13435
+ className: cls(bem$9("row"))
13436
13436
  }, props.children)) : props.children;
13437
13437
  };
13438
13438
  return /* @__PURE__ */ React.createElement("div", {
13439
- className: clsx(bem$8(), BORDER_BOTTOM)
13439
+ className: cls(bem$9(), BORDER_BOTTOM)
13440
13440
  }, renderTitle(), renderContent());
13441
13441
  };
13442
- const [bem$7] = createNamespace("sku-row");
13442
+ const [bem$8] = createNamespace("sku-row");
13443
13443
  const SkuRowItem = (props) => {
13444
13444
  var _a, _b;
13445
13445
  const classPrefix = props.largeImageMode ? "image-item" : "item";
@@ -13466,7 +13466,7 @@ const SkuRowItem = (props) => {
13466
13466
  fit: "cover",
13467
13467
  src: imgUrl,
13468
13468
  lazyload: props.lazyload,
13469
- className: clsx(bem$7(`${classPrefix}-img`))
13469
+ className: cls(bem$8(`${classPrefix}-img`))
13470
13470
  });
13471
13471
  }
13472
13472
  return null;
@@ -13487,23 +13487,23 @@ const SkuRowItem = (props) => {
13487
13487
  };
13488
13488
  const choosed = props.skuValue.id === props.selectedSku[props.skuKeyStr];
13489
13489
  return /* @__PURE__ */ React.createElement("span", {
13490
- className: clsx(
13491
- bem$7(classPrefix, {
13490
+ className: cls(
13491
+ bem$8(classPrefix, {
13492
13492
  active: choosed,
13493
13493
  disabled: !choosable
13494
13494
  })
13495
13495
  ),
13496
13496
  onClick: onSelect
13497
13497
  }, imageRender(), /* @__PURE__ */ React.createElement("div", {
13498
- className: clsx(bem$7(`${classPrefix}-name`))
13498
+ className: cls(bem$8(`${classPrefix}-name`))
13499
13499
  }, props.largeImageMode ? /* @__PURE__ */ React.createElement("span", {
13500
- className: clsx("rv-multi-ellipsis--l2")
13500
+ className: cls("rv-multi-ellipsis--l2")
13501
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, {
13502
- className: clsx(bem$7(`${classPrefix}-img-icon`)),
13502
+ className: cls(bem$8(`${classPrefix}-img-icon`)),
13503
13503
  onClick: onPreviewImg
13504
13504
  })));
13505
13505
  };
13506
- const [bem$6] = createNamespace("sku-row");
13506
+ const [bem$7] = createNamespace("sku-row");
13507
13507
  const SkuRowPropItem = (props) => {
13508
13508
  var _a;
13509
13509
  const choosed = useMemo(() => {
@@ -13525,18 +13525,18 @@ const SkuRowPropItem = (props) => {
13525
13525
  });
13526
13526
  };
13527
13527
  return /* @__PURE__ */ React.createElement("span", {
13528
- className: clsx(
13529
- bem$6("item", {
13528
+ className: cls(
13529
+ bem$7("item", {
13530
13530
  active: choosed
13531
13531
  })
13532
13532
  ),
13533
13533
  onClick: onSelect
13534
13534
  }, /* @__PURE__ */ React.createElement("span", {
13535
- className: clsx(bem$6("item-name"))
13535
+ className: cls(bem$7("item-name"))
13536
13536
  }, (_a = props.skuValue) == null ? void 0 : _a.name));
13537
13537
  };
13538
13538
  const { QUOTA_LIMIT: QUOTA_LIMIT$1, STOCK_LIMIT } = LIMIT_TYPE;
13539
- const [bem$5] = createNamespace("sku");
13539
+ const [bem$6] = createNamespace("sku");
13540
13540
  const SkuStepper = (p) => {
13541
13541
  const props = mergeProps(p, {
13542
13542
  quota: 0,
@@ -13622,23 +13622,23 @@ const SkuStepper = (p) => {
13622
13622
  });
13623
13623
  };
13624
13624
  return /* @__PURE__ */ React.createElement("div", {
13625
- className: clsx(bem$5("stepper-stock"))
13625
+ className: cls(bem$6("stepper-stock"))
13626
13626
  }, /* @__PURE__ */ React.createElement("div", {
13627
- className: clsx(bem$5("stepper-title"))
13627
+ className: cls(bem$6("stepper-title"))
13628
13628
  }, props.stepperTitle), /* @__PURE__ */ React.createElement(Stepper, {
13629
13629
  min: stepperMinLimit,
13630
13630
  max: stepperLimit,
13631
- className: clsx(bem$5("stepper")),
13631
+ className: cls(bem$6("stepper")),
13632
13632
  disableInput: props.disableStepperInput,
13633
13633
  value: props.currentNum,
13634
13634
  onChange,
13635
13635
  onOverlimit: onOverLimit
13636
13636
  }), !props.hideQuotaText && quotaContent && /* @__PURE__ */ React.createElement("span", {
13637
- className: clsx(bem$5("stepper-quota"))
13637
+ className: cls(bem$6("stepper-quota"))
13638
13638
  }, quotaContent));
13639
13639
  };
13640
13640
  const { QUOTA_LIMIT } = LIMIT_TYPE;
13641
- const [bem$4] = createNamespace("sku");
13641
+ const [bem$5] = createNamespace("sku");
13642
13642
  const Sku = forwardRef((p, ref) => {
13643
13643
  var _a, _b;
13644
13644
  const props = mergeProps(p, {
@@ -13782,8 +13782,8 @@ const Sku = forwardRef((p, ref) => {
13782
13782
  return props.stockRender(stock);
13783
13783
  }
13784
13784
  return /* @__PURE__ */ React.createElement(React.Fragment, null, "\u5269\u4F59", /* @__PURE__ */ React.createElement("span", {
13785
- className: clsx(
13786
- bem$4("stock-num", {
13785
+ className: cls(
13786
+ bem$5("stock-num", {
13787
13787
  highlight: stock < props.stockThreshold
13788
13788
  })
13789
13789
  )
@@ -13968,21 +13968,21 @@ const Sku = forwardRef((p, ref) => {
13968
13968
  const renderHeaderInfo = () => {
13969
13969
  var _a2;
13970
13970
  return /* @__PURE__ */ React.createElement(React.Fragment, null, ((_a2 = props.skuHeaderPriceRender) == null ? void 0 : _a2.call(props, price)) || /* @__PURE__ */ React.createElement("div", {
13971
- className: clsx(bem$4("goods-price"))
13971
+ className: cls(bem$5("goods-price"))
13972
13972
  }, /* @__PURE__ */ React.createElement("span", {
13973
- className: clsx(bem$4("price-symbol"))
13973
+ className: cls(bem$5("price-symbol"))
13974
13974
  }, "\uFFE5"), /* @__PURE__ */ React.createElement("span", {
13975
- className: clsx(bem$4("price-num"))
13975
+ className: cls(bem$5("price-num"))
13976
13976
  }, price), props.priceTag && /* @__PURE__ */ React.createElement("span", {
13977
- className: clsx(bem$4("price-tag"))
13977
+ className: cls(bem$5("price-tag"))
13978
13978
  }, props.priceTag)), props.skuHeaderOriginPrice && /* @__PURE__ */ React.createElement("div", {
13979
- className: clsx(bem$4("header-item"))
13979
+ className: cls(bem$5("header-item"))
13980
13980
  }, props.skuHeaderOriginPrice), !props.hideStock && /* @__PURE__ */ React.createElement("div", {
13981
- className: clsx(bem$4("header-item"))
13981
+ className: cls(bem$5("header-item"))
13982
13982
  }, /* @__PURE__ */ React.createElement("span", {
13983
- className: clsx(bem$4("stock"))
13983
+ className: cls(bem$5("stock"))
13984
13984
  }, stockContent)), !props.hideSelectedText && /* @__PURE__ */ React.createElement("div", {
13985
- className: clsx(bem$4("header-item"))
13985
+ className: cls(bem$5("header-item"))
13986
13986
  }, selectedText));
13987
13987
  };
13988
13988
  const renderHeader = () => {
@@ -13991,20 +13991,20 @@ const Sku = forwardRef((p, ref) => {
13991
13991
  const selectedValue = getSkuImgValue(sku, state.selectedSku);
13992
13992
  const imgUrl = selectedValue ? selectedValue.imgUrl : props.goods.picture;
13993
13993
  return /* @__PURE__ */ React.createElement("div", {
13994
- className: clsx(bem$4("header"), BORDER_BOTTOM)
13994
+ className: cls(bem$5("header"), BORDER_BOTTOM)
13995
13995
  }, props.showHeaderImage && /* @__PURE__ */ React.createElement(ImageNamespace, {
13996
13996
  fit: "cover",
13997
13997
  src: imgUrl,
13998
- className: clsx(bem$4("header__img-wrap")),
13998
+ className: cls(bem$5("header__img-wrap")),
13999
13999
  onClick: () => onPreviewImage(selectedValue)
14000
14000
  }, props.skuHeaderImageExtra), /* @__PURE__ */ React.createElement("div", {
14001
- className: clsx(bem$4("header__goods-info"))
14001
+ className: cls(bem$5("header__goods-info"))
14002
14002
  }, renderHeaderInfo(), props.skuHeaderExtra));
14003
14003
  };
14004
14004
  const renderGroup = () => {
14005
14005
  return props.skuGroup || hasSkuOrAttr && /* @__PURE__ */ React.createElement("div", {
14006
- className: clsx(
14007
- bem$4("group-container", {
14006
+ className: cls(
14007
+ bem$5("group-container", {
14008
14008
  "hide-soldout": !props.showSoldoutSku
14009
14009
  })
14010
14010
  )
@@ -14054,13 +14054,13 @@ const Sku = forwardRef((p, ref) => {
14054
14054
  });
14055
14055
  const renderBody = () => {
14056
14056
  return /* @__PURE__ */ React.createElement("div", {
14057
- className: clsx(bem$4("body")),
14057
+ className: cls(bem$5("body")),
14058
14058
  style: bodyStyle
14059
14059
  }, props.skuBodyTop, renderGroup(), props.skuGroupExtra, renderStepper());
14060
14060
  };
14061
14061
  const renderActions = () => {
14062
14062
  return props.skuActions || /* @__PURE__ */ React.createElement("div", {
14063
- className: clsx(bem$4("actions"))
14063
+ className: cls(bem$5("actions"))
14064
14064
  }, /* @__PURE__ */ React.createElement(ActionBar, null, props.showAddCartBtn && /* @__PURE__ */ React.createElement(ActionBar.Button, {
14065
14065
  type: "warning",
14066
14066
  text: props.addCartText || "\u52A0\u5165\u8D2D\u7269\u8F66",
@@ -14090,10 +14090,10 @@ const Sku = forwardRef((p, ref) => {
14090
14090
  visible,
14091
14091
  onClose: onPopupClose,
14092
14092
  onClosed: onPopupClosed,
14093
- 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"))
14094
14094
  }, renderHeader(), renderBody(), props.skuActionsTop, renderActions(), props.skuActionsBottom);
14095
14095
  });
14096
- var index$3 = "";
14096
+ var index$4 = "";
14097
14097
  const FloatingBallItem$1 = createContext({});
14098
14098
  var FloatingBallItem = (props) => {
14099
14099
  const parent = React.useContext(FloatingBallItem$1);
@@ -14101,7 +14101,7 @@ var FloatingBallItem = (props) => {
14101
14101
  parent == null ? void 0 : parent.close();
14102
14102
  };
14103
14103
  return /* @__PURE__ */ React.createElement("div", {
14104
- className: clsx("rv-floating-ball__menu__item"),
14104
+ className: cls("rv-floating-ball__menu__item"),
14105
14105
  onClick: handleItemClick
14106
14106
  }, props.children);
14107
14107
  };
@@ -14215,7 +14215,7 @@ const useFloatingTouch = (props) => {
14215
14215
  const TOUCH_DURATION = 0;
14216
14216
  const TRANSITION_DURATION = 300;
14217
14217
  const DEFAULT_ADSORB = { indent: 0.5, distance: 0 };
14218
- const [bem$3] = createNamespace("floating-ball");
14218
+ const [bem$4] = createNamespace("floating-ball");
14219
14219
  const FloatingBall = forwardRef(
14220
14220
  (p, ref) => {
14221
14221
  var _a, _b, _c, _d;
@@ -14266,8 +14266,8 @@ const FloatingBall = forwardRef(
14266
14266
  return null;
14267
14267
  const [position1, position2] = position.split(" ");
14268
14268
  return /* @__PURE__ */ React.createElement("div", {
14269
- className: clsx(
14270
- bem$3("menu", {
14269
+ className: cls(
14270
+ bem$4("menu", {
14271
14271
  [(_a2 = props.menu) == null ? void 0 : _a2.direction]: !!((_b2 = props.menu) == null ? void 0 : _b2.direction),
14272
14272
  [position1]: !!position1,
14273
14273
  [position2]: !!position2
@@ -14426,15 +14426,15 @@ const FloatingBall = forwardRef(
14426
14426
  }
14427
14427
  }
14428
14428
  }, /* @__PURE__ */ React.createElement("div", {
14429
- className: clsx(props.className, indentClassName, bem$3({ active })),
14429
+ className: cls(props.className, indentClassName, bem$4({ active })),
14430
14430
  style: trackStyle,
14431
14431
  ref: setContainer,
14432
14432
  onTouchStart,
14433
14433
  onTouchEnd,
14434
14434
  onTouchCancel: onTouchEnd
14435
14435
  }, renderMenus(), /* @__PURE__ */ React.createElement("div", {
14436
- className: clsx(
14437
- bem$3("base", {
14436
+ className: cls(
14437
+ bem$4("base", {
14438
14438
  [props.disabledClassName]: props.disabled
14439
14439
  })
14440
14440
  ),
@@ -14442,7 +14442,7 @@ const FloatingBall = forwardRef(
14442
14442
  }, typeof props.children === "function" ? props.children({ active, indenting: state.indenting }) : props.children)));
14443
14443
  }
14444
14444
  );
14445
- var index$2 = "";
14445
+ var index$3 = "";
14446
14446
  const DEFAULT_FONT = {
14447
14447
  style: "normal",
14448
14448
  weight: "normal",
@@ -14450,7 +14450,7 @@ const DEFAULT_FONT = {
14450
14450
  size: 14,
14451
14451
  family: "sans-serif"
14452
14452
  };
14453
- const [bem$2] = createNamespace("water-mark");
14453
+ const [bem$3] = createNamespace("water-mark");
14454
14454
  const WaterMark = (p) => {
14455
14455
  const props = mergeProps(p, {
14456
14456
  zIndex: 2e3,
@@ -14513,8 +14513,8 @@ const WaterMark = (p) => {
14513
14513
  }
14514
14514
  }, [gapX, gapY, rotate, width, height, image, content, font]);
14515
14515
  return /* @__PURE__ */ React.createElement("div", {
14516
- className: clsx(
14517
- bem$2({
14516
+ className: cls(
14517
+ bem$3({
14518
14518
  full: props.fullPage
14519
14519
  })
14520
14520
  ),
@@ -14525,8 +14525,8 @@ const WaterMark = (p) => {
14525
14525
  }
14526
14526
  });
14527
14527
  };
14528
- var index$1 = "";
14529
- const [bem$1] = createNamespace("floating-panel");
14528
+ var index$2 = "";
14529
+ const [bem$2] = createNamespace("floating-panel");
14530
14530
  function scrollReachBottom(el) {
14531
14531
  const scrollTop = getScrollTop$1(el);
14532
14532
  return scrollTop >= el.scrollHeight - getVisibleHeight(el);
@@ -14604,7 +14604,7 @@ const FloatingPanel = forwardRef(
14604
14604
  useEventListener("touchend", onTouchEnd, { target: root2, passive: false });
14605
14605
  return /* @__PURE__ */ React.createElement(animated.div, {
14606
14606
  ref: root2,
14607
- className: clsx(bem$1(), className),
14607
+ className: cls(bem$2(), className),
14608
14608
  style: {
14609
14609
  height: maxAnchor,
14610
14610
  transform: visibleH.to((h) => `translateY(calc(100% - ${h}px))`),
@@ -14612,12 +14612,12 @@ const FloatingPanel = forwardRef(
14612
14612
  }
14613
14613
  }, /* @__PURE__ */ React.createElement("div", {
14614
14614
  ref: header,
14615
- className: clsx(bem$1("header"))
14615
+ className: cls(bem$2("header"))
14616
14616
  }, /* @__PURE__ */ React.createElement("div", {
14617
- className: clsx(bem$1("thumb"))
14617
+ className: cls(bem$2("thumb"))
14618
14618
  })), /* @__PURE__ */ React.createElement(animated.div, {
14619
14619
  ref: body,
14620
- className: clsx(bem$1("body"))
14620
+ className: cls(bem$2("body"))
14621
14621
  }, props.children));
14622
14622
  }
14623
14623
  );
@@ -14626,8 +14626,8 @@ function findNearestAnchor(anchors, target) {
14626
14626
  return Math.abs(target - pre) < Math.abs(target - cur) ? pre : cur;
14627
14627
  });
14628
14628
  }
14629
- var index = "";
14630
- const [bem] = createNamespace("table");
14629
+ var index$1 = "";
14630
+ const [bem$1] = createNamespace("table");
14631
14631
  const Table = (props) => {
14632
14632
  const containerRef = useRef(null);
14633
14633
  const [containerWidth, setContainerWidth] = useState(0);
@@ -14710,10 +14710,10 @@ const Table = (props) => {
14710
14710
  if (!showHeader)
14711
14711
  return null;
14712
14712
  return /* @__PURE__ */ React.createElement("thead", {
14713
- className: clsx(bem("header"))
14713
+ className: cls(bem$1("header"))
14714
14714
  }, /* @__PURE__ */ React.createElement("tr", null, columns.map((column, index2) => /* @__PURE__ */ React.createElement("th", {
14715
14715
  key: column.dataIndex || index2,
14716
- className: clsx(bem("header-cell")),
14716
+ className: cls(bem$1("header-cell")),
14717
14717
  style: {
14718
14718
  ...columnStyles[index2],
14719
14719
  textAlign: column.align || "left"
@@ -14723,26 +14723,26 @@ const Table = (props) => {
14723
14723
  const renderBody = () => {
14724
14724
  if (dataSource.length === 0) {
14725
14725
  return /* @__PURE__ */ React.createElement("tbody", {
14726
- className: clsx(bem("body"))
14726
+ className: cls(bem$1("body"))
14727
14727
  }, /* @__PURE__ */ React.createElement("tr", null, /* @__PURE__ */ React.createElement("td", {
14728
14728
  colSpan: columns.length,
14729
- className: clsx(bem("empty-cell"))
14729
+ className: cls(bem$1("empty-cell"))
14730
14730
  }, /* @__PURE__ */ React.createElement("div", {
14731
- className: clsx(bem("empty-image"))
14731
+ className: cls(bem$1("empty-image"))
14732
14732
  }, emptyImage && /* @__PURE__ */ React.createElement("img", {
14733
14733
  src: emptyImage
14734
14734
  })), /* @__PURE__ */ React.createElement("div", null, emptyText))));
14735
14735
  }
14736
14736
  return /* @__PURE__ */ React.createElement("tbody", {
14737
- className: clsx(bem("body"))
14737
+ className: cls(bem$1("body"))
14738
14738
  }, dataSource.map((record, rowIndex) => /* @__PURE__ */ React.createElement("tr", {
14739
14739
  key: getRowKey(record, rowIndex),
14740
- className: clsx(bem("row"))
14740
+ className: cls(bem$1("row"))
14741
14741
  }, columns.map((column, colIndex) => {
14742
14742
  const text = record[column.dataIndex];
14743
14743
  return /* @__PURE__ */ React.createElement("td", {
14744
14744
  key: column.dataIndex || colIndex,
14745
- className: clsx(bem("cell")),
14745
+ className: cls(bem$1("cell")),
14746
14746
  style: {
14747
14747
  ...columnStyles[colIndex],
14748
14748
  textAlign: column.align || "left"
@@ -14750,16 +14750,16 @@ const Table = (props) => {
14750
14750
  }, column.render ? column.render(text, record, rowIndex) : text);
14751
14751
  }))));
14752
14752
  };
14753
- const classes = clsx(
14753
+ const classes = cls(
14754
14754
  className,
14755
- bem([
14755
+ bem$1([
14756
14756
  {
14757
14757
  bordered
14758
14758
  }
14759
14759
  ])
14760
14760
  );
14761
14761
  return /* @__PURE__ */ React.createElement("div", {
14762
- className: clsx(bem("wrapper")),
14762
+ className: cls(bem$1("wrapper")),
14763
14763
  ref: containerRef
14764
14764
  }, /* @__PURE__ */ React.createElement("table", {
14765
14765
  className: classes,
@@ -14770,4 +14770,232 @@ const Table = (props) => {
14770
14770
  ...restProps
14771
14771
  }, renderHeader(), renderBody()));
14772
14772
  };
14773
- 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 };