@unicom-cloud/ui 0.8.64 → 0.8.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/Affix.js +2 -2
  2. package/Alert.js +2 -2
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +4 -4
  5. package/Avatar.js +2 -2
  6. package/BackTop.js +2 -2
  7. package/Badge.js +37 -31
  8. package/Breadcrumb.js +3 -3
  9. package/Button.js +82 -71
  10. package/Calendar.js +4 -4
  11. package/Card.js +2 -2
  12. package/Carousel.js +2 -2
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +5 -5
  17. package/Comment.js +2 -2
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +3 -3
  20. package/DatePicker.js +92 -92
  21. package/Descriptions.js +2 -2
  22. package/Divider.js +2 -2
  23. package/Draggable.js +2 -2
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +2 -2
  26. package/Empty.js +2 -2
  27. package/Form.js +4 -4
  28. package/Grid.js +3 -3
  29. package/Icon.js +2 -2
  30. package/IconHover.js +2 -2
  31. package/Image.js +2 -2
  32. package/Input.js +3 -3
  33. package/InputNumber.js +3 -3
  34. package/InputTag.js +1 -1
  35. package/Layout.js +3 -3
  36. package/Link.js +2 -2
  37. package/List.js +30 -30
  38. package/Mentions.js +4 -4
  39. package/Menu.js +2 -2
  40. package/Message.js +2 -2
  41. package/Modal.js +1 -1
  42. package/Notice.js +2 -2
  43. package/Notification.js +2 -2
  44. package/OverflowEllipsis.js +2 -2
  45. package/PageHeader.js +2 -2
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +2 -2
  49. package/Popover.js +2 -2
  50. package/Progress.js +2 -2
  51. package/Radio.js +2 -2
  52. package/Rate.js +2 -2
  53. package/ResizeBox.js +155 -154
  54. package/Result.js +2 -2
  55. package/Select.js +2 -2
  56. package/SelectView.js +7 -7
  57. package/Skeleton.js +2 -2
  58. package/Slider.js +5 -5
  59. package/Space.js +2 -2
  60. package/Spin.js +2 -2
  61. package/Statistic.js +2 -2
  62. package/Steps.js +2 -2
  63. package/Switch.js +3 -3
  64. package/Table.js +5 -5
  65. package/Tabs.js +4 -4
  66. package/Tag.js +2 -2
  67. package/TimePicker.js +4 -4
  68. package/Timeline.js +2 -2
  69. package/Tooltip.js +2 -2
  70. package/Transfer.js +4 -4
  71. package/Tree.js +1 -1
  72. package/TreeSelect.js +2 -2
  73. package/Trigger.js +43 -42
  74. package/Typography.js +1 -1
  75. package/Upload.js +4 -5
  76. package/VerificationCode.js +1 -1
  77. package/Version.js +5 -3
  78. package/Watermark.js +1 -1
  79. package/chunk/{-IELMT_x.js → 1GQdnTJp.js} +2 -2
  80. package/chunk/BAWsPQBM.js +11 -0
  81. package/chunk/{BJSjbYSN.js → BS09tn7B.js} +2 -2
  82. package/chunk/{oR9TkA35.js → BUCEs557.js} +2 -2
  83. package/chunk/BqGtwxTi.js +777 -0
  84. package/chunk/{CtUTlwlQ.js → Bqk6yh16.js} +2 -2
  85. package/chunk/{DPJEIBKZ.js → BqufsN8i.js} +4 -4
  86. package/chunk/{CA69nxbj.js → BtlvlGQN.js} +2 -2
  87. package/chunk/{CAhODOfT.js → CF6p9R93.js} +2 -2
  88. package/chunk/{D-oHJail.js → CGZ0In1p.js} +178 -175
  89. package/chunk/{BHnRi7Xh.js → CH1UUxsg.js} +4 -4
  90. package/chunk/{Yvz-hPQB.js → CIlGCedk.js} +3 -3
  91. package/chunk/{tW_FgNSv.js → CPcm9Cm5.js} +2 -2
  92. package/chunk/{Cqyp4qni.js → CSC_V_25.js} +45 -45
  93. package/chunk/{BtIG250j.js → CWgltRVL.js} +40 -40
  94. package/chunk/{BCxoi4Kf.js → CsbCHnFk.js} +2 -2
  95. package/chunk/{Cb_oWoGj.js → CwhPMMWy.js} +14 -14
  96. package/chunk/{QlYCEvCX.js → DG-epQqF.js} +2 -2
  97. package/chunk/{CxpFYX4B.js → DIx0qmCq.js} +3 -3
  98. package/chunk/{D01b7bWX.js → DK4KcodH.js} +176 -175
  99. package/chunk/{CYQ1EE4h.js → DLvMA1OW.js} +2 -2
  100. package/chunk/{CAiaqaWc.js → DQDkV47j.js} +2 -2
  101. package/chunk/{BfHNSLva.js → DTjcKyDN.js} +135 -134
  102. package/chunk/{BmO1y0vr.js → DUeHQKtx.js} +12 -12
  103. package/chunk/{CZfGDXaB.js → DXZEpA3t.js} +2 -2
  104. package/chunk/{CTF5o0OX.js → DjtWv6Wn.js} +1 -1
  105. package/chunk/{B5GDq8NJ.js → DlLL5JQo.js} +99 -96
  106. package/chunk/{CBgwLBAC.js → Dnycc1qJ.js} +104 -103
  107. package/chunk/{B68hRpYG.js → DqFhzTWC.js} +3 -3
  108. package/chunk/{BwSpYGK-.js → Dv_xRzvR.js} +3 -3
  109. package/chunk/{DQ561AmR.js → Ek8U5CTN.js} +222 -221
  110. package/chunk/{BSBJlVZH.js → ewRDIDUz.js} +4 -4
  111. package/chunk/{pq-36BDW.js → tYXLFPVI.js} +3 -3
  112. package/hooks/useIntersectionObserver.js +1 -1
  113. package/hooks/useMergeValue.js +2 -2
  114. package/index.js +378 -374
  115. package/locale/en-US.js +1 -1
  116. package/locale/tr-TR.js +1 -1
  117. package/package.json +1 -1
  118. package/style/variable.less +820 -0
  119. package/style.css +1 -1
  120. package/types/badge/index.d.ts +2 -2
  121. package/types/button/index.d.ts +3 -1
  122. package/types/config-provider/interface.d.ts +1 -1
  123. package/types/index.d.ts +5 -5
  124. package/types/select/interface.d.ts +1 -1
  125. package/types/tabs/Tab.d.ts +1 -1
  126. package/types/upload/Upload.d.ts +1 -1
  127. package/types/version/index.d.ts +2 -0
  128. package/utils/className.js +1 -1
  129. package/utils/contextHolder.js +1 -1
  130. package/utils/copy.js +1 -1
  131. package/utils/index.js +41 -41
  132. package/utils/is.js +37 -37
  133. package/utils/reactDOM.js +3 -3
  134. package/utils/scrollIntoView.js +1 -1
  135. package/chunk/BzPkh4Zv.js +0 -11
  136. package/chunk/_m8hLSsx.js +0 -776
@@ -1,46 +1,47 @@
1
- import { jsxs as F, Fragment as M, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as F, Fragment as K, jsx as n } from "react/jsx-runtime";
2
2
  import k from "lodash/isFunction";
3
- import me from "lodash/isNumber";
4
- import te, { useContext as z, forwardRef as Q, useState as A, useEffect as G, isValidElement as Ue, useRef as ie, useImperativeHandle as fe } from "react";
5
- import { d as W, I as xe } from "./B5GDq8NJ.js";
6
- import { useMergeProps as $e } from "../hooks/useMergeProps.js";
7
- import { y as X } from "./BzPkh4Zv.js";
8
- import Ie from "../utils/omit.js";
9
- import ce from "../utils/warning.js";
10
- import { _ as we, P as ne } from "./CLBavO5c.js";
11
- import { a as Pe } from "./B68hRpYG.js";
12
- import ge from "@unicom-cloud/icons/IconUiDelete";
13
- import Ce from "@unicom-cloud/icons/IconUiEye";
14
- import Ne from "@unicom-cloud/icons/IconUiImageClose";
15
- import ae from "@unicom-cloud/icons/IconUiUpload";
16
- import { l as he } from "./CTxjmYmx.js";
17
- import { useKeyboardEvent as Y } from "../hooks/useKeyboardEvent.js";
3
+ import fe from "lodash/isNumber";
4
+ import ee, { useContext as M, forwardRef as X, useState as A, useEffect as G, isValidElement as xe, useRef as te, useImperativeHandle as ge } from "react";
5
+ import { d as z, I as $e } from "./DlLL5JQo.js";
6
+ import { useMergeProps as Ie } from "../hooks/useMergeProps.js";
7
+ import { y as J } from "./BAWsPQBM.js";
8
+ import we from "../utils/omit.js";
9
+ import de from "../utils/warning.js";
10
+ import { _ as Pe, P as ie } from "./CLBavO5c.js";
11
+ import { a as Ce } from "./DqFhzTWC.js";
12
+ import he from "@unicom-cloud/icons/IconUiDelete";
13
+ import Ne from "@unicom-cloud/icons/IconUiEye";
14
+ import Fe from "@unicom-cloud/icons/IconUiImageClose";
15
+ import oe from "@unicom-cloud/icons/IconUiUpload";
16
+ import { l as be } from "./CTxjmYmx.js";
17
+ import { useKeyboardEvent as Q } from "../hooks/useKeyboardEvent.js";
18
18
  import "../utils/is.js";
19
- import Fe from "@unicom-cloud/icons/IconUiCheck";
20
- import Ee from "@unicom-cloud/icons/IconUiPause";
21
- import Le from "@unicom-cloud/icons/IconUiPlayArrowFill";
22
- import Re from "../Progress.js";
23
- import re from "../Tooltip.js";
24
- import _ from "lodash/isPlainObject";
25
- import De from "@unicom-cloud/icons/IconUiExclamationCircleFill";
19
+ import Ee from "@unicom-cloud/icons/IconUiCheck";
20
+ import Le from "@unicom-cloud/icons/IconUiPause";
21
+ import Re from "@unicom-cloud/icons/IconUiPlayArrowFill";
22
+ import De from "../Progress.js";
23
+ import ne from "../Tooltip.js";
24
+ import re from "lodash/isPlainObject.js";
25
+ import Oe from "@unicom-cloud/icons/IconUiExclamationCircleFill";
26
26
  import Te from "@unicom-cloud/icons/IconUiFile";
27
- import Oe from "@unicom-cloud/icons/IconUiFileAudio";
27
+ import ke from "@unicom-cloud/icons/IconUiFileAudio";
28
28
  import ve from "@unicom-cloud/icons/IconUiFileImage";
29
- import ke from "@unicom-cloud/icons/IconUiFilePdf";
30
- import Se from "@unicom-cloud/icons/IconUiFileVideo";
31
- import { K as qe } from "./Cqyp4qni.js";
32
- import de from "@unicom-cloud/icons/IconUiPlus";
33
- import je from "../Button.js";
34
- import Ae from "lodash/isArray";
35
- import { NOOP as p } from "../utils/constant.js";
29
+ import Se from "@unicom-cloud/icons/IconUiFilePdf";
30
+ import je from "@unicom-cloud/icons/IconUiFileVideo";
31
+ import { K as qe } from "./CSC_V_25.js";
32
+ import ae from "lodash/isPlainObject";
33
+ import ue from "@unicom-cloud/icons/IconUiPlus";
34
+ import Ae from "../Button.js";
35
+ import Ve from "lodash/isArray";
36
+ import { NOOP as Z } from "../utils/constant.js";
36
37
  const I = {
37
38
  init: "init",
38
39
  uploading: "uploading",
39
40
  success: "done",
40
41
  fail: "error"
41
- }, be = (e) => {
42
- var w, f, o, c, g, v;
43
- const u = Y(), { file: m, prefixCls: s, progressProps: t, progressRender: r } = e, { locale: i } = z(W), { status: l, percent: h = 0 } = m, b = `${s}-list`, U = t && t.width ? { width: t.width } : {}, x = /* @__PURE__ */ F(M, { children: [
42
+ }, ye = (e) => {
43
+ var w, f, o, c, g, b;
44
+ const u = Q(), { file: m, prefixCls: s, progressProps: t, progressRender: r } = e, { locale: i } = M(z), { status: l, percent: h = 0 } = m, v = `${s}-list`, U = t && t.width ? { width: t.width } : {}, x = /* @__PURE__ */ F(K, { children: [
44
45
  l === I.fail && e.reuploadIcon !== null && /* @__PURE__ */ n(
45
46
  "span",
46
47
  {
@@ -58,16 +59,16 @@ const I = {
58
59
  (a = e.onReupload) == null || a.call(e, m);
59
60
  }
60
61
  }),
61
- children: e.reuploadIcon || (e.listType === "picture-card" ? /* @__PURE__ */ n(ae, {}) : (f = i == null ? void 0 : i.Upload) == null ? void 0 : f.reupload)
62
+ children: e.reuploadIcon || (e.listType === "picture-card" ? /* @__PURE__ */ n(oe, {}) : (f = i == null ? void 0 : i.Upload) == null ? void 0 : f.reupload)
62
63
  }
63
64
  ),
64
- l === I.success && e.successIcon !== null && /* @__PURE__ */ n("span", { className: `${s}-list-success-icon`, children: e.successIcon || /* @__PURE__ */ n(Fe, {}) }),
65
- l !== I.success && /* @__PURE__ */ F("div", { className: `${b}-status`, style: U, children: [
65
+ l === I.success && e.successIcon !== null && /* @__PURE__ */ n("span", { className: `${s}-list-success-icon`, children: e.successIcon || /* @__PURE__ */ n(Ee, {}) }),
66
+ l !== I.success && /* @__PURE__ */ F("div", { className: `${v}-status`, style: U, children: [
66
67
  /* @__PURE__ */ n(
67
- Re,
68
+ De,
68
69
  {
69
70
  showText: !1,
70
- className: `${b}-progress`,
71
+ className: `${v}-progress`,
71
72
  type: "circle",
72
73
  status: l === I.fail ? "error" : l === I.success ? "success" : "normal",
73
74
  percent: h,
@@ -92,7 +93,7 @@ const I = {
92
93
  (a = e.onUpload) == null || a.call(e, m);
93
94
  }
94
95
  }),
95
- children: e.startIcon || /* @__PURE__ */ n(re, { content: (c = i == null ? void 0 : i.Upload) == null ? void 0 : c.start, children: /* @__PURE__ */ n(Le, {}) })
96
+ children: e.startIcon || /* @__PURE__ */ n(ne, { content: (c = i == null ? void 0 : i.Upload) == null ? void 0 : c.start, children: /* @__PURE__ */ n(Re, {}) })
96
97
  }
97
98
  ),
98
99
  l === I.uploading && e.cancelIcon !== null && /* @__PURE__ */ n(
@@ -111,20 +112,20 @@ const I = {
111
112
  (a = e.onAbort) == null || a.call(e, m);
112
113
  }
113
114
  }),
114
- children: e.cancelIcon || /* @__PURE__ */ n(re, { content: (v = i == null ? void 0 : i.Upload) == null ? void 0 : v.cancel, children: /* @__PURE__ */ n(Ee, {}) })
115
+ children: e.cancelIcon || /* @__PURE__ */ n(ne, { content: (b = i == null ? void 0 : i.Upload) == null ? void 0 : b.cancel, children: /* @__PURE__ */ n(Le, {}) })
115
116
  }
116
117
  )
117
118
  ] })
118
119
  ] });
119
120
  return k(r) ? r(m, x) : x;
120
- }, Ve = (e, u) => {
121
- const { disabled: m, prefixCls: s, file: t, showUploadList: r, locale: i } = e, l = Y(), h = `${s}-list-item-picture`, { status: b, originFile: U } = t, [x, w] = A(t.url), f = _(r) ? r : {};
121
+ }, He = (e, u) => {
122
+ const { disabled: m, prefixCls: s, file: t, showUploadList: r, locale: i } = e, l = Q(), h = `${s}-list-item-picture`, { status: v, originFile: U } = t, [x, w] = A(t.url), f = re(r) ? r : {};
122
123
  return G(() => {
123
124
  if (t.url !== void 0)
124
125
  w(t.url);
125
126
  else {
126
127
  const o = t.originFile;
127
- o && he(o).then((c) => {
128
+ o && be(o).then((c) => {
128
129
  w(c);
129
130
  }).catch((c) => {
130
131
  console.error(c);
@@ -139,8 +140,8 @@ const I = {
139
140
  var c;
140
141
  (c = e.onChange) == null || c.call(e, { type: "url", data: void 0 });
141
142
  };
142
- }, [x]), /* @__PURE__ */ n("div", { className: h, ref: u, children: b === I.uploading ? /* @__PURE__ */ n(
143
- be,
143
+ }, [x]), /* @__PURE__ */ n("div", { className: h, ref: u, children: v === I.uploading ? /* @__PURE__ */ n(
144
+ ye,
144
145
  {
145
146
  onReupload: e.onReupload,
146
147
  onUpload: e.onUpload,
@@ -151,10 +152,10 @@ const I = {
151
152
  progressProps: e.progressProps,
152
153
  ...f
153
154
  }
154
- ) : /* @__PURE__ */ F(M, { children: [
155
+ ) : /* @__PURE__ */ F(K, { children: [
155
156
  k(f.imageRender) ? f.imageRender(t) : /* @__PURE__ */ n("img", { src: x, alt: t.name }),
156
157
  /* @__PURE__ */ F("div", { className: `${h}-mask`, role: "radiogroup", children: [
157
- t.status === I.fail && /* @__PURE__ */ n("div", { className: `${h}-error-tip`, children: f.errorIcon !== null && /* @__PURE__ */ n("span", { className: `${s}-list-error-icon`, children: f.errorIcon || /* @__PURE__ */ n(Ne, {}) }) }),
158
+ t.status === I.fail && /* @__PURE__ */ n("div", { className: `${h}-error-tip`, children: f.errorIcon !== null && /* @__PURE__ */ n("span", { className: `${s}-list-error-icon`, children: f.errorIcon || /* @__PURE__ */ n(Fe, {}) }) }),
158
159
  /* @__PURE__ */ F("div", { className: `${h}-operation`, children: [
159
160
  t.status !== I.fail && f.previewIcon !== null && /* @__PURE__ */ n(
160
161
  "span",
@@ -173,7 +174,7 @@ const I = {
173
174
  var o;
174
175
  (o = e.onPreview) == null || o.call(e, t);
175
176
  },
176
- children: f.previewIcon || /* @__PURE__ */ n(Ce, {})
177
+ children: f.previewIcon || /* @__PURE__ */ n(Ne, {})
177
178
  }
178
179
  ),
179
180
  t.status === I.fail && f.reuploadIcon !== null && /* @__PURE__ */ n(
@@ -193,7 +194,7 @@ const I = {
193
194
  (o = e.onReupload) == null || o.call(e, t);
194
195
  }
195
196
  }),
196
- children: f.reuploadIcon || /* @__PURE__ */ n(ae, {})
197
+ children: f.reuploadIcon || /* @__PURE__ */ n(oe, {})
197
198
  }
198
199
  ),
199
200
  !m && f.removeIcon !== null && /* @__PURE__ */ n(
@@ -213,13 +214,13 @@ const I = {
213
214
  (o = e.onRemove) == null || o.call(e, t);
214
215
  }
215
216
  }),
216
- children: f.removeIcon || /* @__PURE__ */ n(ge, {})
217
+ children: f.removeIcon || /* @__PURE__ */ n(he, {})
217
218
  }
218
219
  )
219
220
  ] })
220
221
  ] })
221
222
  ] }) });
222
- }, He = Q(Ve), Ge = (e) => {
223
+ }, Ge = X(He), _e = (e) => {
223
224
  let u = "";
224
225
  if (e.originFile && e.originFile.type)
225
226
  u = e.originFile.type;
@@ -227,9 +228,9 @@ const I = {
227
228
  const s = (e.name || "").split(".").pop() || "";
228
229
  u = s, ["png", "jpg", "jpeg", "bmp", "gif"].indexOf(s) > -1 ? u = "image" : ["mp4", "m2v", "mkv"].indexOf(s) > -1 ? u = "video" : ["mp3", "wav", "wmv"].indexOf(s) > -1 && (u = "audio");
229
230
  }
230
- return u.indexOf("image") > -1 ? ve : u.indexOf("pdf") > -1 ? ke : u.indexOf("audio") > -1 ? Oe : u.indexOf("video") > -1 ? Se : Te;
231
- }, _e = (e, u) => {
232
- const { prefixCls: m, disabled: s, file: t, locale: r } = e, i = `${m}-list-item-text`, l = Y(), h = Ge(t), b = _(e.showUploadList) ? e.showUploadList : {}, U = _(b) ? b : {}, x = t.name || t.originFile && t.originFile.name, [w, f] = A(t.url);
231
+ return u.indexOf("image") > -1 ? ve : u.indexOf("pdf") > -1 ? Se : u.indexOf("audio") > -1 ? ke : u.indexOf("video") > -1 ? je : Te;
232
+ }, Be = (e, u) => {
233
+ const { prefixCls: m, disabled: s, file: t, locale: r } = e, i = `${m}-list-item-text`, l = Q(), h = _e(t), v = re(e.showUploadList) ? e.showUploadList : {}, U = re(v) ? v : {}, x = t.name || t.originFile && t.originFile.name, [w, f] = A(t.url);
233
234
  let o = {};
234
235
  return t.status !== I.fail && (o = {
235
236
  popupVisible: !1
@@ -238,7 +239,7 @@ const I = {
238
239
  f(t.url);
239
240
  else {
240
241
  const c = t.originFile;
241
- c && he(c).then((g) => {
242
+ c && be(c).then((g) => {
242
243
  f(g);
243
244
  }).catch((g) => {
244
245
  console.error(g);
@@ -260,11 +261,11 @@ const I = {
260
261
  ref: u,
261
262
  children: [
262
263
  /* @__PURE__ */ F("div", { className: i, children: [
263
- e.listType === "picture-list" && /* @__PURE__ */ n("div", { className: `${i}-thumbnail`, children: k(b.imageRender) ? b.imageRender(t) : /* @__PURE__ */ n("img", { src: w }) }),
264
+ e.listType === "picture-list" && /* @__PURE__ */ n("div", { className: `${i}-thumbnail`, children: k(v.imageRender) ? v.imageRender(t) : /* @__PURE__ */ n("img", { src: w }) }),
264
265
  /* @__PURE__ */ F("div", { className: `${i}-content`, children: [
265
266
  /* @__PURE__ */ F("div", { className: `${i}-name`, children: [
266
267
  e.listType === "text" && U.fileIcon !== null && /* @__PURE__ */ n("span", { className: `${m}-list-file-icon`, children: U.fileIcon || /* @__PURE__ */ n(h, {}) }),
267
- k(b.fileName) ? /* @__PURE__ */ n("span", { className: `${i}-name-text`, children: b.fileName(t) }) : t.url ? /* @__PURE__ */ n(
268
+ k(v.fileName) ? /* @__PURE__ */ n("span", { className: `${i}-name-text`, children: v.fileName(t) }) : t.url ? /* @__PURE__ */ n(
268
269
  "a",
269
270
  {
270
271
  href: t.url,
@@ -275,17 +276,17 @@ const I = {
275
276
  }
276
277
  ) : /* @__PURE__ */ n("span", { className: `${i}-name-text`, children: x }),
277
278
  t.status === I.fail && U.errorIcon !== null && /* @__PURE__ */ n(
278
- re,
279
+ ne,
279
280
  {
280
- content: (typeof t.response == "object" ? Ue(t.response) && t.response : t.response) || r.Upload.error,
281
+ content: (typeof t.response == "object" ? xe(t.response) && t.response : t.response) || r.Upload.error,
281
282
  ...o,
282
283
  disabled: t.status !== I.fail,
283
- children: /* @__PURE__ */ n("span", { className: `${e.prefixCls}-list-error-icon`, children: U.errorIcon || (e.listType === "picture-card" ? /* @__PURE__ */ n(ve, {}) : /* @__PURE__ */ n(De, {})) })
284
+ children: /* @__PURE__ */ n("span", { className: `${e.prefixCls}-list-error-icon`, children: U.errorIcon || (e.listType === "picture-card" ? /* @__PURE__ */ n(ve, {}) : /* @__PURE__ */ n(Oe, {})) })
284
285
  }
285
286
  )
286
287
  ] }),
287
288
  /* @__PURE__ */ n(
288
- be,
289
+ ye,
289
290
  {
290
291
  file: t,
291
292
  prefixCls: m,
@@ -299,7 +300,7 @@ const I = {
299
300
  ] })
300
301
  ] }),
301
302
  /* @__PURE__ */ n("div", { className: `${m}-list-item-operation`, children: !s && U.removeIcon !== null && /* @__PURE__ */ n(
302
- xe,
303
+ $e,
303
304
  {
304
305
  className: `${m}-list-remove-icon-hover`,
305
306
  onClick: () => {
@@ -314,38 +315,38 @@ const I = {
314
315
  (c = e.onRemove) == null || c.call(e, t);
315
316
  }
316
317
  }),
317
- children: /* @__PURE__ */ n("span", { className: `${m}-list-remove-icon`, children: U.removeIcon || /* @__PURE__ */ n(ge, {}) })
318
+ children: /* @__PURE__ */ n("span", { className: `${m}-list-remove-icon`, children: U.removeIcon || /* @__PURE__ */ n(he, {}) })
318
319
  }
319
320
  ) })
320
321
  ]
321
322
  }
322
323
  );
323
- }, Be = Q(_e), ye = (e) => {
324
- const { locale: u, rtl: m } = z(W), {
324
+ }, Ke = X(Be), Ue = (e) => {
325
+ const { locale: u, rtl: m } = M(z), {
325
326
  listType: s,
326
327
  fileList: t,
327
328
  renderUploadList: r,
328
329
  renderUploadItem: i,
329
330
  prefixCls: l,
330
331
  ...h
331
- } = e, [b, U] = A(-1), [x, w] = A([]);
332
+ } = e, [v, U] = A(-1), [x, w] = A([]);
332
333
  if (k(r))
333
334
  return /* @__PURE__ */ n("div", { className: `${l}-list`, children: r(t, h) });
334
335
  const f = (c) => {
335
336
  e.imagePreview && U(c);
336
337
  };
337
- function o(c, g, v) {
338
- (c == null ? void 0 : c.type) === "url" && [I.init, I.success].indexOf(v.status) > -1 && w((a) => {
338
+ function o(c, g, b) {
339
+ (c == null ? void 0 : c.type) === "url" && [I.init, I.success].indexOf(b.status) > -1 && w((a) => {
339
340
  const E = [...a];
340
341
  return E[g] = c.data, E.filter(Boolean);
341
342
  });
342
343
  }
343
344
  return G(() => () => {
344
- }, []), /* @__PURE__ */ F(M, { children: [
345
+ }, []), /* @__PURE__ */ F(K, { children: [
345
346
  /* @__PURE__ */ n(
346
- we,
347
+ Pe,
347
348
  {
348
- className: X(
349
+ className: J(
349
350
  `${l}-list`,
350
351
  `${l}-list-type-${s}`,
351
352
  {
@@ -353,12 +354,12 @@ const I = {
353
354
  }
354
355
  ),
355
356
  children: t.map((c, g) => {
356
- let v = s === "picture-card" ? /* @__PURE__ */ n(
357
+ let b = s === "picture-card" ? /* @__PURE__ */ n(
357
358
  "div",
358
359
  {
359
360
  className: `${l}-list-item ${l}-list-item-${c.status}`,
360
361
  children: /* @__PURE__ */ n(
361
- He,
362
+ Ge,
362
363
  {
363
364
  ...e,
364
365
  onPreview: (a) => {
@@ -374,7 +375,7 @@ const I = {
374
375
  )
375
376
  }
376
377
  ) : /* @__PURE__ */ n(
377
- Be,
378
+ Ke,
378
379
  {
379
380
  ...e,
380
381
  file: c,
@@ -384,8 +385,8 @@ const I = {
384
385
  }
385
386
  }
386
387
  );
387
- return k(i) && (v = i(v, c, t)), s === "picture-card" ? /* @__PURE__ */ n(
388
- ne,
388
+ return k(i) && (b = i(b, c, t)), s === "picture-card" ? /* @__PURE__ */ n(
389
+ ie,
389
390
  {
390
391
  timeout: { enter: 200, exit: 400 },
391
392
  classNames: `${l}-slide-inline`,
@@ -401,11 +402,11 @@ const I = {
401
402
  onExited: (a) => {
402
403
  a && (a.style.width = 0);
403
404
  },
404
- children: v
405
+ children: b
405
406
  },
406
407
  c.uid
407
408
  ) : /* @__PURE__ */ n(
408
- ne,
409
+ ie,
409
410
  {
410
411
  timeout: { enter: 200, exit: 400 },
411
412
  classNames: `${l}-slide-up`,
@@ -418,7 +419,7 @@ const I = {
418
419
  onExited: (a) => {
419
420
  a && (a.style.height = 0);
420
421
  },
421
- children: v
422
+ children: b
422
423
  },
423
424
  c.uid
424
425
  );
@@ -426,27 +427,27 @@ const I = {
426
427
  }
427
428
  ),
428
429
  s === "picture-card" && e.imagePreview && /* @__PURE__ */ n(
429
- Pe,
430
+ Ce,
430
431
  {
431
432
  srcList: x,
432
- visible: b !== -1,
433
- current: b,
433
+ visible: v !== -1,
434
+ current: v,
434
435
  onChange: f,
435
436
  onVisibleChange: (c) => {
436
- f(c ? b : -1);
437
+ f(c ? v : -1);
437
438
  }
438
439
  }
439
440
  )
440
441
  ] });
441
442
  };
442
- ye.displayName = "FileList";
443
- const oe = (e, u) => {
444
- const m = _(u) ? u == null ? void 0 : u.type : u;
445
- if (!(_(u) && u.strict === !1) && m && e) {
446
- const t = Ae(m) ? m : m.split(",").map((i) => i.trim()).filter((i) => i), r = (e.name.indexOf(".") > -1 ? `.${e.name.split(".").pop()}` : "").toLowerCase();
443
+ Ue.displayName = "FileList";
444
+ const le = (e, u) => {
445
+ const m = ae(u) ? u == null ? void 0 : u.type : u;
446
+ if (!(ae(u) && u.strict === !1) && m && e) {
447
+ const t = Ve(m) ? m : m.split(",").map((i) => i.trim()).filter((i) => i), r = (e.name.indexOf(".") > -1 ? `.${e.name.split(".").pop()}` : "").toLowerCase();
447
448
  return t.some((i) => {
448
- const l = i && i.toLowerCase(), h = (e.type || "").toLowerCase(), b = h.split("/")[0];
449
- if (l === h || `${b}${r.replace(".", "/")}` === l || /^\*(\/\*)?$/.test(l))
449
+ const l = i && i.toLowerCase(), h = (e.type || "").toLowerCase(), v = h.split("/")[0];
450
+ if (l === h || `${v}${r.replace(".", "/")}` === l || /^\*(\/\*)?$/.test(l))
450
451
  return !0;
451
452
  if (/\/\*/.test(l))
452
453
  return h.replace(/\/.*$/, "") === l.replace(/\/.*$/, "");
@@ -458,30 +459,30 @@ const oe = (e, u) => {
458
459
  });
459
460
  }
460
461
  return !!e;
461
- }, Ke = (e, u) => {
462
+ }, Me = (e, u) => {
462
463
  if (!e)
463
464
  return;
464
465
  let m = [].slice.call(e);
465
- return u && (m = m.filter((s) => oe(s, u))), m;
466
- }, Me = (e, u, m) => {
466
+ return u && (m = m.filter((s) => le(s, u))), m;
467
+ }, ze = (e, u, m) => {
467
468
  const s = [];
468
469
  let t = 0;
469
470
  const r = () => {
470
471
  !t && m(s);
471
472
  }, i = (h) => {
472
473
  if (t += 1, h != null && h.isFile) {
473
- h.file((b) => {
474
- t -= 1, oe(b, u) && (Object.defineProperty(b, "webkitRelativePath", {
474
+ h.file((v) => {
475
+ t -= 1, le(v, u) && (Object.defineProperty(v, "webkitRelativePath", {
475
476
  value: h.fullPath.replace(/^\//, "")
476
- }), s.push(b)), r();
477
+ }), s.push(v)), r();
477
478
  });
478
479
  return;
479
480
  }
480
481
  if (h != null && h.isDirectory) {
481
- const b = h.createReader();
482
+ const v = h.createReader();
482
483
  let U = !1;
483
484
  const x = () => {
484
- b.readEntries((w) => {
485
+ v.readEntries((w) => {
485
486
  U || (t -= 1, U = !0), w.length === 0 ? r() : (x(), w.forEach(i));
486
487
  });
487
488
  };
@@ -493,10 +494,10 @@ const oe = (e, u) => {
493
494
  [].slice.call(e).forEach((h) => {
494
495
  h.webkitGetAsEntry && i(h.webkitGetAsEntry());
495
496
  });
496
- }, ze = (e, u) => {
497
- const m = Y(), { locale: s } = z(W), [t, r] = A(!1), [i, l] = A(0), {
497
+ }, We = (e, u) => {
498
+ const m = Q(), { locale: s } = M(z), [t, r] = A(!1), [i, l] = A(0), {
498
499
  tip: h,
499
- children: b,
500
+ children: v,
500
501
  disabled: U,
501
502
  drag: x,
502
503
  listType: w,
@@ -508,54 +509,54 @@ const oe = (e, u) => {
508
509
  };
509
510
  return G(() => {
510
511
  l(0);
511
- }, [t]), b === null ? null : /* @__PURE__ */ n(
512
+ }, [t]), v === null ? null : /* @__PURE__ */ n(
512
513
  "div",
513
514
  {
514
515
  className: `${f}-trigger`,
515
516
  onClick: U ? void 0 : e.onClick,
516
517
  ...m({
517
518
  onPressEnter: () => {
518
- var v;
519
- !U && ((v = e.onClick) == null || v.call(e));
519
+ var b;
520
+ !U && ((b = e.onClick) == null || b.call(e));
520
521
  }
521
522
  }),
522
523
  ref: u,
523
524
  onDragEnter: () => {
524
525
  l(i + 1);
525
526
  },
526
- onDragLeave: (v) => {
527
+ onDragLeave: (b) => {
527
528
  var a;
528
- v.preventDefault(), i === 0 ? (r(!1), !U && ((a = e.onDragLeave) == null || a.call(e, v))) : l(i - 1);
529
+ b.preventDefault(), i === 0 ? (r(!1), !U && ((a = e.onDragLeave) == null || a.call(e, b))) : l(i - 1);
529
530
  },
530
- onDrop: (v) => {
531
+ onDrop: (b) => {
531
532
  var a, E;
532
- if (v.preventDefault(), !U && e.drag !== !1) {
533
+ if (b.preventDefault(), !U && e.drag !== !1) {
533
534
  if (r(!1), e.directory)
534
- Me(v.dataTransfer.items, o, (S) => {
535
- var T;
536
- (T = e.onDragFiles) == null || T.call(e, S);
535
+ ze(b.dataTransfer.items, o, (S) => {
536
+ var O;
537
+ (O = e.onDragFiles) == null || O.call(e, S);
537
538
  });
538
539
  else {
539
- const S = [].slice.call(v.dataTransfer.items || []).reduce((V, j, B) => {
540
- if (j.webkitGetAsEntry) {
541
- const d = j.webkitGetAsEntry();
542
- return d != null && d.isDirectory ? [...V, B] : V;
540
+ const S = [].slice.call(b.dataTransfer.items || []).reduce((V, q, _) => {
541
+ if (q.webkitGetAsEntry) {
542
+ const d = q.webkitGetAsEntry();
543
+ return d != null && d.isDirectory ? [...V, _] : V;
543
544
  }
544
- }, []), T = [].slice.call(v.dataTransfer.files || []).filter((V, j) => !S.includes(j)), q = Ke(T, o);
545
- q.length > 0 && ((a = e.onDragFiles) == null || a.call(e, c ? q : q.slice(0, 1)));
545
+ }, []), O = [].slice.call(b.dataTransfer.files || []).filter((V, q) => !S.includes(q)), j = Me(O, o);
546
+ j.length > 0 && ((a = e.onDragFiles) == null || a.call(e, c ? j : j.slice(0, 1)));
546
547
  }
547
- (E = e.onDrop) == null || E.call(e, v);
548
+ (E = e.onDrop) == null || E.call(e, b);
548
549
  }
549
550
  },
550
- onDragOver: (v) => {
551
+ onDragOver: (b) => {
551
552
  var a;
552
- v.preventDefault(), !U && !t && (r(!0), (a = e.onDragOver) == null || a.call(e, v));
553
+ b.preventDefault(), !U && !t && (r(!0), (a = e.onDragOver) == null || a.call(e, b));
553
554
  },
554
- children: te.isValidElement(b) ? /* @__PURE__ */ n(
555
+ children: ee.isValidElement(v) ? /* @__PURE__ */ n(
555
556
  "div",
556
557
  {
557
- className: X({ [`${f}-trigger-custom-active`]: t }),
558
- children: te.cloneElement(b, g)
558
+ className: J({ [`${f}-trigger-custom-active`]: t }),
559
+ children: ee.cloneElement(v, g)
559
560
  }
560
561
  ) : w === "picture-card" ? /* @__PURE__ */ n("div", { className: `${f}-trigger-picture-wrapper`, children: /* @__PURE__ */ n(
561
562
  "div",
@@ -563,41 +564,41 @@ const oe = (e, u) => {
563
564
  className: `${f}-trigger-picture`,
564
565
  tabIndex: 0,
565
566
  "aria-label": s.Upload.upload,
566
- children: /* @__PURE__ */ n("div", { className: `${f}-trigger-picture-text`, children: e.triggerPictureIcon ?? /* @__PURE__ */ n(de, {}) })
567
+ children: /* @__PURE__ */ n("div", { className: `${f}-trigger-picture-text`, children: e.triggerPictureIcon ?? /* @__PURE__ */ n(ue, {}) })
567
568
  }
568
569
  ) }) : x ? /* @__PURE__ */ F(
569
570
  "div",
570
571
  {
571
- className: X(`${f}-trigger-drag`, {
572
+ className: J(`${f}-trigger-drag`, {
572
573
  [`${f}-trigger-drag-active`]: t
573
574
  }),
574
575
  tabIndex: 0,
575
576
  "aria-label": s.Upload.drag,
576
577
  children: [
577
- e.triggerPictureIcon ?? /* @__PURE__ */ n(de, {}),
578
+ e.triggerPictureIcon ?? /* @__PURE__ */ n(ue, {}),
578
579
  /* @__PURE__ */ n("p", { className: `${f}-trigger-drag-text`, children: t ? s.Upload.dragHover : s.Upload.drag }),
579
580
  h && /* @__PURE__ */ n("div", { className: `${f}-trigger-tip`, children: h })
580
581
  ]
581
582
  }
582
583
  ) : /* @__PURE__ */ F(
583
- je,
584
+ Ae,
584
585
  {
585
586
  ...g,
586
587
  "aria-label": s.Upload.upload,
587
588
  type: "primary",
588
589
  className: `${f}-trigger-with-icon`,
589
590
  children: [
590
- /* @__PURE__ */ n(ae, {}),
591
+ /* @__PURE__ */ n(oe, {}),
591
592
  s.Upload.upload
592
593
  ]
593
594
  }
594
595
  )
595
596
  }
596
597
  );
597
- }, We = Q(
598
- ze
598
+ }, Je = X(
599
+ We
599
600
  );
600
- function ue(e) {
601
+ function me(e) {
601
602
  const u = e.responseText || e.response;
602
603
  if (!u)
603
604
  return u;
@@ -607,32 +608,32 @@ function ue(e) {
607
608
  return u;
608
609
  }
609
610
  }
610
- const Je = function(e) {
611
+ const Xe = function(e) {
611
612
  const {
612
- onProgress: u = p,
613
- onError: m = p,
614
- onSuccess: s = p,
613
+ onProgress: u = Z,
614
+ onError: m = Z,
615
+ onSuccess: s = Z,
615
616
  action: t,
616
617
  method: r,
617
618
  headers: i = {},
618
619
  name: l,
619
620
  file: h,
620
- data: b = {},
621
+ data: v = {},
621
622
  withCredentials: U = !1
622
623
  } = e;
623
624
  function x(g) {
624
625
  return typeof g == "function" ? g(h) : g;
625
626
  }
626
- const w = x(l), f = x(b), o = new XMLHttpRequest();
627
+ const w = x(l), f = x(v), o = new XMLHttpRequest();
627
628
  u && o.upload && (o.upload.onprogress = function(g) {
628
- let v;
629
- g.total > 0 && (v = g.loaded / g.total * 100), u(parseInt(v, 10), g);
630
- }), o.onerror = function(v) {
631
- m(v);
629
+ let b;
630
+ g.total > 0 && (b = g.loaded / g.total * 100), u(parseInt(b, 10), g);
631
+ }), o.onerror = function(b) {
632
+ m(b);
632
633
  }, o.onload = function() {
633
634
  if (o.status < 200 || o.status >= 300)
634
- return m(ue(o));
635
- s(ue(o));
635
+ return m(me(o));
636
+ s(me(o));
636
637
  };
637
638
  const c = new FormData();
638
639
  f && Object.keys(f).map((g) => c.append(g, f[g])), c.append(w || "file", h), o.open(r, t, !0), U && "withCredentials" in o && (o.withCredentials = !0);
@@ -644,16 +645,16 @@ const Je = function(e) {
644
645
  }
645
646
  };
646
647
  };
647
- function Xe(e, u) {
648
- z(W);
649
- const m = ie(null), [s, t] = A({ uploadRequests: {} });
648
+ function Qe(e, u) {
649
+ M(z);
650
+ const m = te(null), [s, t] = A({ uploadRequests: {} });
650
651
  function r(d) {
651
652
  x(d);
652
653
  }
653
654
  function i(d) {
654
655
  var N;
655
656
  const $ = s.uploadRequests[d.uid];
656
- $ && ((N = $.abort) == null || N.call($), b({
657
+ $ && ((N = $.abort) == null || N.call($), v({
657
658
  ...d,
658
659
  status: I.fail
659
660
  }), h(d.uid));
@@ -671,7 +672,7 @@ function Xe(e, u) {
671
672
  uploadRequests: $
672
673
  });
673
674
  }
674
- fe(u, () => ({
675
+ ge(u, () => ({
675
676
  // 提供 ref 调用
676
677
  upload: r,
677
678
  abort: i,
@@ -679,7 +680,7 @@ function Xe(e, u) {
679
680
  // 删除上传(手动上传时,文件会出现在上传列表,但属于init状态)
680
681
  delete: h
681
682
  }));
682
- function b(d, $ = e.fileList) {
683
+ function v(d, $ = e.fileList) {
683
684
  const { onFileStatusChange: N } = e, L = "uid" in d ? "uid" : "name";
684
685
  N == null || N(
685
686
  $.map((y) => y[L] === d[L] ? d : y),
@@ -699,19 +700,19 @@ function Xe(e, u) {
699
700
  withCredentials: C,
700
701
  customRequest: P,
701
702
  method: R
702
- } = e, le = {
703
- onProgress: (K, D) => {
704
- var se;
705
- const J = U(d);
706
- J && (J.status = I.uploading, J.percent = K, (se = e == null ? void 0 : e.onProgress) == null || se.call(e, J, D));
703
+ } = e, se = {
704
+ onProgress: (B, D) => {
705
+ var ce;
706
+ const W = U(d);
707
+ W && (W.status = I.uploading, W.percent = B, (ce = e == null ? void 0 : e.onProgress) == null || ce.call(e, W, D));
707
708
  },
708
- onSuccess: (K) => {
709
+ onSuccess: (B) => {
709
710
  const D = U(d);
710
- D && (D.status = I.success, D.response = K, b(D)), h(d.uid);
711
+ D && (D.status = I.success, D.response = B, v(D)), h(d.uid);
711
712
  },
712
- onError: (K) => {
713
+ onError: (B) => {
713
714
  const D = U(d);
714
- D && (D.status = I.fail, D.response = K, b(D)), h(d.uid);
715
+ D && (D.status = I.fail, D.response = B, v(D)), h(d.uid);
715
716
  },
716
717
  headers: N,
717
718
  name: L,
@@ -719,28 +720,28 @@ function Xe(e, u) {
719
720
  data: y,
720
721
  withCredentials: C
721
722
  };
722
- b(d);
723
- let Z;
724
- P ? Z = await P(le) : $ && (Z = Je({ ...le, action: $, method: R })), t({
723
+ v(d);
724
+ let Y;
725
+ P ? Y = await P(se) : $ && (Y = Xe({ ...se, action: $, method: R })), t({
725
726
  uploadRequests: {
726
727
  ...s.uploadRequests,
727
- [d.uid]: Z
728
+ [d.uid]: Y
728
729
  }
729
730
  });
730
731
  }
731
732
  function w(d) {
732
733
  const { limit: $, fileList: N, onExceedLimit: L, autoUpload: y } = e;
733
- if (me($) && $ < N.length + d.length)
734
+ if (fe($) && $ < N.length + d.length)
734
735
  return L == null ? void 0 : L(d, N);
735
736
  const C = (P, R) => {
736
- const O = e.fileList || [], H = {
737
+ const T = e.fileList || [], H = {
737
738
  uid: `${String(+/* @__PURE__ */ new Date())}${R}`,
738
739
  originFile: P,
739
740
  percent: 0,
740
741
  status: I.init,
741
742
  name: P.name
742
743
  };
743
- b(H), O.push(H), b(H, O), y && setTimeout(() => {
744
+ v(H), T.push(H), v(H, T), y && setTimeout(() => {
744
745
  x({
745
746
  ...H,
746
747
  status: I.uploading
@@ -748,13 +749,13 @@ function Xe(e, u) {
748
749
  }, 0);
749
750
  };
750
751
  d.forEach((P, R) => {
751
- oe(P, e.accept) && (k(e.beforeUpload) ? Promise.resolve(e.beforeUpload(P, d)).then((O) => {
752
- if (O !== !1) {
753
- const H = qe(O) ? O : P;
752
+ le(P, e.accept) && (k(e.beforeUpload) ? Promise.resolve(e.beforeUpload(P, d)).then((T) => {
753
+ if (T !== !1) {
754
+ const H = qe(T) ? T : P;
754
755
  C(H, R);
755
756
  }
756
- }).catch((O) => {
757
- console.error(O);
757
+ }).catch((T) => {
758
+ console.error(T);
758
759
  }) : C(P, R));
759
760
  });
760
761
  }
@@ -763,17 +764,17 @@ function Xe(e, u) {
763
764
  multiple: o,
764
765
  children: c,
765
766
  prefixCls: g,
766
- tip: v,
767
+ tip: b,
767
768
  disabled: a,
768
769
  drag: E,
769
770
  listType: S,
770
- hide: T,
771
- directory: q,
771
+ hide: O,
772
+ directory: j,
772
773
  onDrop: V,
773
- onDragOver: j,
774
- onDragLeave: B
774
+ onDragOver: q,
775
+ onDragLeave: _
775
776
  } = e;
776
- return /* @__PURE__ */ F(M, { children: [
777
+ return /* @__PURE__ */ F(K, { children: [
777
778
  /* @__PURE__ */ n(
778
779
  "input",
779
780
  {
@@ -787,9 +788,9 @@ function Xe(e, u) {
787
788
  zIndex: -999999
788
789
  },
789
790
  type: "file",
790
- accept: _(f) ? f == null ? void 0 : f.type : f,
791
+ accept: ae(f) ? f == null ? void 0 : f.type : f,
791
792
  multiple: o,
792
- ...q ? { webkitdirectory: "true" } : {},
793
+ ...j ? { webkitdirectory: "true" } : {},
793
794
  onChange: (d) => {
794
795
  const $ = d.target.files;
795
796
  $ && (w([].slice.call($)), m.current.value = "");
@@ -801,17 +802,17 @@ function Xe(e, u) {
801
802
  "trigger-input"
802
803
  ),
803
804
  /* @__PURE__ */ n(
804
- ne,
805
+ ie,
805
806
  {
806
- in: !T,
807
+ in: !O,
807
808
  timeout: 100,
808
809
  unmountOnExit: !0,
809
810
  classNames: "fadeIn",
810
811
  children: /* @__PURE__ */ n(
811
- We,
812
+ Je,
812
813
  {
813
- directory: q,
814
- tip: v,
814
+ directory: j,
815
+ tip: b,
815
816
  multiple: o,
816
817
  accept: f,
817
818
  disabled: a,
@@ -819,8 +820,8 @@ function Xe(e, u) {
819
820
  listType: S,
820
821
  triggerPictureIcon: e.triggerPictureIcon,
821
822
  onDrop: V,
822
- onDragOver: j,
823
- onDragLeave: B,
823
+ onDragOver: q,
824
+ onDragLeave: _,
824
825
  onDragFiles: w,
825
826
  onClick: () => {
826
827
  var d, $;
@@ -833,17 +834,17 @@ function Xe(e, u) {
833
834
  },
834
835
  "trigger-node"
835
836
  ),
836
- v && S !== "picture-card" && !E ? /* @__PURE__ */ n("div", { className: `${g}-trigger-tip`, children: v }, "trigger-tip") : null
837
+ b && S !== "picture-card" && !E ? /* @__PURE__ */ n("div", { className: `${g}-trigger-tip`, children: b }, "trigger-tip") : null
837
838
  ] });
838
839
  }
839
- const Qe = te.forwardRef(Xe), ee = function(e) {
840
+ const Ye = ee.forwardRef(Qe), p = function(e) {
840
841
  const u = [].concat(e || []).filter(Boolean);
841
842
  return u.reduce((m, s, t) => {
842
843
  if (s.uid) {
843
844
  const r = u.findIndex(
844
845
  (l) => s.uid === l.uid && s !== l
845
846
  );
846
- ce(r !== -1, "[Upload]: duplicate uid");
847
+ de(r !== -1, "[Upload]: duplicate uid");
847
848
  const i = {
848
849
  status: I.success,
849
850
  percent: 100,
@@ -851,7 +852,7 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
851
852
  };
852
853
  r === -1 ? m.push(i) : m.splice(r, 1, i);
853
854
  } else {
854
- ce(!0, "[Upload]: uid is required");
855
+ de(!0, "[Upload]: uid is required");
855
856
  const r = `${String(+/* @__PURE__ */ new Date())}${t}`;
856
857
  m.push({
857
858
  uid: r,
@@ -862,18 +863,18 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
862
863
  }
863
864
  return m;
864
865
  }, []);
865
- }, Ye = {
866
+ }, Ze = {
866
867
  listType: "text",
867
868
  autoUpload: !0,
868
869
  showUploadList: !0,
869
870
  beforeUpload: () => !0,
870
871
  method: "post"
871
- }, Ze = (e, u) => {
872
- const { getPrefixCls: m, componentConfig: s, rtl: t } = z(W), r = $e(
872
+ }, pe = (e, u) => {
873
+ const { getPrefixCls: m, componentConfig: s, rtl: t } = M(z), r = Ie(
873
874
  e,
874
- Ye,
875
+ Ze,
875
876
  s == null ? void 0 : s.Upload
876
- ), i = m("upload"), l = ie(), h = ie(), [b, U] = A(() => "fileList" in r ? ee(r.fileList) : "defaultFileList" in r ? ee(r.defaultFileList) : []), x = "fileList" in r ? ee(r.fileList) : b, w = (y, C) => {
877
+ ), i = m("upload"), l = te(), h = te(), [v, U] = A(() => "fileList" in r ? p(r.fileList) : "defaultFileList" in r ? p(r.defaultFileList) : []), x = "fileList" in r ? p(r.fileList) : v, w = (y, C) => {
877
878
  var P;
878
879
  "fileList" in r || U(y), (P = r.onChange) == null || P.call(r, y, C);
879
880
  }, f = (y) => {
@@ -900,7 +901,7 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
900
901
  }, g = (y) => {
901
902
  y && l.current && l.current.abort(y);
902
903
  };
903
- fe(u, () => ({
904
+ ge(u, () => ({
904
905
  submit: (y) => {
905
906
  let C = [];
906
907
  y ? C = [y] : C = x.filter((P) => P.status === I.init), C.forEach((P) => {
@@ -918,19 +919,19 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
918
919
  getRootDOMNode: () => h.current
919
920
  }));
920
921
  const {
921
- listType: v,
922
+ listType: b,
922
923
  className: a,
923
924
  style: E,
924
925
  renderUploadItem: S,
925
- showUploadList: T,
926
- renderUploadList: q,
926
+ showUploadList: O,
927
+ renderUploadList: j,
927
928
  progressProps: V,
928
- imagePreview: j,
929
- ...B
930
- } = r, d = me(r.limit) ? { hideOnExceedLimit: !0, maxCount: r.limit } : { hideOnExceedLimit: !0, ...r.limit }, $ = d.maxCount && d.maxCount <= x.length, N = "disabled" in r ? r.disabled : !d.hideOnExceedLimit && $, L = /* @__PURE__ */ n(
929
+ imagePreview: q,
930
+ ..._
931
+ } = r, d = fe(r.limit) ? { hideOnExceedLimit: !0, maxCount: r.limit } : { hideOnExceedLimit: !0, ...r.limit }, $ = d.maxCount && d.maxCount <= x.length, N = "disabled" in r ? r.disabled : !d.hideOnExceedLimit && $, L = /* @__PURE__ */ n(
931
932
  "div",
932
933
  {
933
- ...Ie(B, [
934
+ ...we(_, [
934
935
  "disabled",
935
936
  "directory",
936
937
  "onReupload",
@@ -962,10 +963,10 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
962
963
  "onDragOver",
963
964
  "onDragLeave"
964
965
  ]),
965
- className: X(
966
+ className: J(
966
967
  i,
967
968
  {
968
- [`${i}-type-${v}`]: v,
969
+ [`${i}-type-${b}`]: b,
969
970
  [`${i}-drag`]: r.drag,
970
971
  [`${i}-disabled`]: N,
971
972
  [`${i}-hide`]: d.hideOnExceedLimit && $,
@@ -976,7 +977,7 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
976
977
  style: E,
977
978
  ref: h,
978
979
  children: /* @__PURE__ */ n(
979
- Qe,
980
+ Ye,
980
981
  {
981
982
  ref: l,
982
983
  ...r,
@@ -996,19 +997,19 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
996
997
  )
997
998
  }
998
999
  );
999
- return /* @__PURE__ */ F(M, { children: [
1000
- v !== "picture-card" && L,
1001
- T && /* @__PURE__ */ n(
1002
- ye,
1000
+ return /* @__PURE__ */ F(K, { children: [
1001
+ b !== "picture-card" && L,
1002
+ O && /* @__PURE__ */ n(
1003
+ Ue,
1003
1004
  {
1004
- imagePreview: j,
1005
+ imagePreview: q,
1005
1006
  progressProps: V,
1006
- showUploadList: T,
1007
+ showUploadList: O,
1007
1008
  disabled: r.disabled,
1008
- listType: v,
1009
+ listType: b,
1009
1010
  fileList: x,
1010
1011
  renderUploadItem: S,
1011
- renderUploadList: q,
1012
+ renderUploadList: j,
1012
1013
  onUpload: f,
1013
1014
  onAbort: g,
1014
1015
  onRemove: c,
@@ -1017,15 +1018,15 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
1017
1018
  prefixCls: i
1018
1019
  }
1019
1020
  ),
1020
- v === "picture-card" && L,
1021
- r.tip && v === "picture-card" && /* @__PURE__ */ n("div", { className: `${i}-trigger-tip`, children: r.tip })
1021
+ b === "picture-card" && L,
1022
+ r.tip && b === "picture-card" && /* @__PURE__ */ n("div", { className: `${i}-trigger-tip`, children: r.tip })
1022
1023
  ] });
1023
- }, pe = Q(
1024
- Ze
1024
+ }, et = X(
1025
+ pe
1025
1026
  );
1026
- pe.displayName = "Upload";
1027
+ et.displayName = "Upload";
1027
1028
  export {
1028
- ye as F,
1029
+ Ue as F,
1029
1030
  I as S,
1030
- pe as U
1031
+ et as U
1031
1032
  };