@kingteza/crud-component 1.44.1 → 1.44.2

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,368 +1,408 @@
1
- import { jsx as r, jsxs as B, Fragment as pe } from "react/jsx-runtime";
2
- import { Cropper as Be } from "react-advanced-cropper";
3
- import { RotateLeftOutlined as Pe, RotateRightOutlined as Te, UploadOutlined as we, LoadingOutlined as De } from "@ant-design/icons";
4
- import { Form as He, Modal as ue, Space as me, Upload as Le } from "antd";
5
- import K, { useRef as Q, useState as m, useCallback as J, useEffect as W, useMemo as fe } from "react";
6
- import { useTranslationLib as Ve } from "../../locale/index.es.js";
7
- import y from "../button/Button.es.js";
1
+ import { jsx as o, jsxs as U, Fragment as pe } from "react/jsx-runtime";
2
+ import { Cropper as ze } from "react-advanced-cropper";
3
+ import { RotateLeftOutlined as Be, RotateRightOutlined as Re, UploadOutlined as we, LoadingOutlined as Te } from "@ant-design/icons";
4
+ import { Form as Le, Modal as ue, Space as me, Upload as De } from "antd";
5
+ import A, { useRef as G, useState as I, useCallback as _, useEffect as E, useMemo as fe } from "react";
6
+ import { useTranslationLib as He } from "../../locale/index.es.js";
7
+ import x from "../button/Button.es.js";
8
8
  import ge from "../../util/ImageUtil.es.js";
9
- import _e from "../../icons/FlipHIcon.es.js";
10
- import Ee from "../../icons/FlipVIcon.es.js";
11
- const Me = He.Item, he = "crud-component.image-picker.button-state";
12
- function X(o) {
13
- return new Promise((p, f) => {
14
- const i = new FileReader();
15
- i.readAsDataURL(o), i.onload = () => p(i.result), i.onerror = (g) => f(g);
9
+ import Ve from "../../icons/FlipHIcon.es.js";
10
+ import _e from "../../icons/FlipVIcon.es.js";
11
+ const Ee = Le.Item, he = "crud-component.image-picker.button-state";
12
+ function K(c) {
13
+ return new Promise((b, y) => {
14
+ const n = new FileReader();
15
+ n.readAsDataURL(c), n.onload = () => b(n.result), n.onerror = (m) => y(m);
16
16
  });
17
17
  }
18
18
  const et = ({
19
- values: o = [],
20
- required: p,
21
- buttonType: f,
22
- label: i,
23
- name: g,
24
- onChange: h,
25
- aspectRatio: O,
26
- buttonTitle: x,
27
- hidePreview: S,
28
- buttonSize: w = "large",
29
- showButtonText: v = !0,
30
- showOnlyIcon: Y = !1,
31
- icon: P = /* @__PURE__ */ r(we, {}),
32
- loading: T,
33
- maxCount: R = 1,
34
- onAdd: n,
35
- onRemove: D,
36
- listType: H,
19
+ values: c = [],
20
+ getRealUrl: b,
21
+ required: y,
22
+ buttonType: n,
23
+ label: m,
24
+ name: M,
25
+ onChange: C,
26
+ aspectRatio: F,
27
+ buttonTitle: z,
28
+ hidePreview: k,
29
+ buttonSize: O = "large",
30
+ showButtonText: B = !0,
31
+ showOnlyIcon: Q = !1,
32
+ icon: R = /* @__PURE__ */ o(we, {}),
33
+ loading: N,
34
+ maxCount: s = 1,
35
+ onAdd: S,
36
+ onRemove: T,
37
+ listType: X,
37
38
  showSkipCropButton: ve,
38
- skipResize: Z,
39
- asyncUpload: j,
40
- ...q
39
+ skipResize: J,
40
+ asyncUpload: L,
41
+ ...Y
41
42
  }) => {
42
- const [be, Ce] = K.useState(""), [Ie, ke] = K.useState(""), [Fe, ee] = K.useState(!1), L = Q(), l = Q(null), [s, b] = m([]), [C, V] = m(), ye = Q(), Oe = () => ee(!1), xe = async (e) => {
43
- !e.url && !e.preview && (e.preview = await X(e.originFileObj)), ke(e.url || e.preview), ee(!0), Ce(e.name);
44
- }, [te, z] = m(!1), re = (e) => {
43
+ const [be, ye] = A.useState(""), [Fe, Ie] = A.useState(""), [Ce, Z] = A.useState(!1), D = G(), f = G(null), [d, g] = I([]), [j, H] = I(), ke = G(), Oe = () => Z(!1), Se = async (e) => {
44
+ !e.url && !e.preview && (e.preview = await K(e.originFileObj)), Ie(e.url || e.preview), Z(!0), ye(e.name);
45
+ }, [q, P] = I(!1), ee = (e) => {
45
46
  var t;
46
- (t = l.current) == null || t.rotateImage(e ? -90 : 90);
47
- }, oe = J((e) => {
47
+ (t = f.current) == null || t.rotateImage(e ? -90 : 90);
48
+ }, te = _((e) => {
48
49
  var t;
49
- l.current && ((t = l.current) == null || t.flipImage(e === "h", e === "v"));
50
+ f.current && ((t = f.current) == null || t.flipImage(e === "h", e === "v"));
50
51
  }, []);
51
- W(() => {
52
- h == null || h(s[0], s);
53
- }, [s, h]);
54
- const [_, $] = m(), ie = J(
52
+ E(() => {
53
+ C == null || C(d[0], d);
54
+ }, [d, C]);
55
+ const [V, W] = I(), oe = _(
55
56
  async (e) => {
56
- var N;
57
- const { type: t, size: a, name: I, uid: k } = L.current;
58
- if ($(e ? "skip-crop" : "crop"), z(!0), e) {
59
- const F = L.current, E = Z ? F : await ge.resizeImage(F), U = await X(E), u = {
60
- url: U,
61
- name: I,
62
- uid: k,
63
- type: t,
64
- size: a,
65
- thumbUrl: U,
66
- originFileObj: E,
67
- status: j ? "uploading" : void 0
68
- };
69
- if (n)
57
+ var ce;
58
+ const { type: t, size: i, name: w, uid: a } = D.current;
59
+ W(e ? "skip-crop" : "crop"), P(!0);
60
+ const v = async (r) => {
61
+ if (S)
70
62
  try {
71
- z(!0), j ? n(u).then(() => {
72
- b(
73
- (M) => M.map(
74
- (d) => d.uid === u.uid ? { ...d, status: "done" } : d
75
- )
63
+ if (P(!0), L)
64
+ g(
65
+ (l) => s <= 1 ? [r] : [r, ...l]
66
+ ), S(r).then((l) => {
67
+ g(
68
+ (p) => p.map(
69
+ (u) => u.uid === r.uid ? {
70
+ ...u,
71
+ status: "done",
72
+ response: l ?? u.response
73
+ } : u
74
+ )
75
+ );
76
+ });
77
+ else {
78
+ const l = await S(r), p = {
79
+ ...r,
80
+ response: l ?? r.response,
81
+ status: "done"
82
+ };
83
+ g(
84
+ (u) => s <= 1 ? [p] : [p, ...u]
76
85
  );
77
- }) : await n(u);
86
+ }
78
87
  } finally {
79
- z(!1);
88
+ P(!1);
80
89
  }
81
- b([u, ...s]), z(!1), V(void 0), $(void 0);
90
+ else
91
+ g((l) => s <= 1 ? [r] : [r, ...l]);
92
+ };
93
+ if (e) {
94
+ const r = D.current, l = J ? r : await ge.resizeImage(r), p = await K(l);
95
+ await v({
96
+ url: p,
97
+ name: w,
98
+ uid: a,
99
+ type: t,
100
+ size: i,
101
+ thumbUrl: p,
102
+ originFileObj: l,
103
+ status: L ? "uploading" : void 0
104
+ }), P(!1), H(void 0), W(void 0);
82
105
  } else {
83
- const F = (N = l.current) == null ? void 0 : N.getCanvas();
84
- F == null || F.toBlob(async (E) => {
85
- const U = Object.assign(new File([E], I, { type: t }), {
86
- uid: k
87
- }), u = Z ? U : await ge.resizeImage(U), M = await X(u), d = {
88
- url: M,
89
- name: I,
90
- uid: k,
106
+ const r = (ce = f.current) == null ? void 0 : ce.getCanvas();
107
+ r == null || r.toBlob(async (l) => {
108
+ const p = Object.assign(new File([l], w, { type: t }), {
109
+ uid: a
110
+ }), u = J ? p : await ge.resizeImage(p), de = await K(u);
111
+ await v({
112
+ url: de,
113
+ name: w,
114
+ uid: a,
91
115
  type: t,
92
- size: a,
93
- thumbUrl: M,
116
+ size: i,
117
+ thumbUrl: de,
94
118
  originFileObj: u,
95
- status: j ? "uploading" : void 0
96
- };
97
- n && (j ? n(d).then(() => {
98
- b(
99
- (Ue) => Ue.map(
100
- (G) => G.uid === d.uid ? { ...G, status: "done" } : G
101
- )
102
- );
103
- }) : await n(d)), b([d, ...s]), z(!1);
104
- }), V(void 0), $(void 0);
119
+ status: L ? "uploading" : void 0
120
+ }), P(!1), H(void 0), W(void 0);
121
+ });
105
122
  }
106
123
  },
107
- [j]
108
- ), Se = () => {
109
- V(void 0), L.current = void 0;
110
- }, ne = J((e) => {
124
+ [L, s, S, J]
125
+ ), je = () => {
126
+ H(void 0), D.current = void 0;
127
+ }, re = _((e) => {
111
128
  const t = e;
112
129
  if (t) {
113
- L.current = t;
114
- const a = new FileReader();
115
- a.addEventListener("load", () => {
116
- var I;
117
- if (typeof a.result == "string") {
118
- V(a.result);
119
- const k = localStorage.getItem(he), N = k ? JSON.parse(k) : void 0;
120
- N && ((I = l.current) == null || I.setState(N)), setTimeout(() => {
121
- de(l.current);
130
+ D.current = t;
131
+ const i = new FileReader();
132
+ i.addEventListener("load", () => {
133
+ var w;
134
+ if (typeof i.result == "string") {
135
+ H(i.result);
136
+ const a = localStorage.getItem(he), v = a ? JSON.parse(a) : void 0;
137
+ v && ((w = f.current) == null || w.setState(v)), setTimeout(() => {
138
+ le(f.current);
122
139
  }, 100);
123
140
  }
124
- }), a.readAsDataURL(t);
141
+ }), i.readAsDataURL(t);
125
142
  }
126
143
  }, []);
127
- W(() => {
128
- if (o != null && o.length || typeof o == "string") {
129
- const e = Array.isArray(o) ? o.map((t) => [{ uid: o, url: t }]) : [{ uid: o, url: o }];
130
- b(e);
131
- }
132
- }, [o]);
133
- const { t: c } = Ve(), Re = fe(
134
- () => p ? {
135
- required: p,
136
- validator: (e, t, a) => {
137
- C || s != null && s.length ? a() : a(`${i ?? ""} ${c("err.validation.required")}`);
144
+ E(() => {
145
+ let e = !1;
146
+ return (async () => {
147
+ if (c == null || c === "") {
148
+ e || g([]);
149
+ return;
150
+ }
151
+ const i = typeof c == "string" ? [c] : c;
152
+ if (!i.length) {
153
+ e || g([]);
154
+ return;
155
+ }
156
+ const w = await Promise.all(
157
+ i.map(async (a) => {
158
+ const v = b ? await b(a) : a;
159
+ return {
160
+ uid: a,
161
+ url: v,
162
+ thumbUrl: v,
163
+ response: a,
164
+ name: a.split("/").pop() ?? a
165
+ };
166
+ })
167
+ );
168
+ e || g(w);
169
+ })(), () => {
170
+ e = !0;
171
+ };
172
+ }, [c, b]);
173
+ const { t: h } = He(), xe = fe(
174
+ () => y ? {
175
+ required: y,
176
+ validator: (e, t, i) => {
177
+ j || d != null && d.length ? i() : i(`${m ?? ""} ${h("err.validation.required")}`);
138
178
  }
139
179
  } : void 0,
140
- [p, C, s == null ? void 0 : s.length, i, c]
141
- ), se = x ?? c("message.uploadButtonText"), ae = fe(
142
- () => /* @__PURE__ */ r(
143
- Je,
180
+ [y, j, d == null ? void 0 : d.length, m, h]
181
+ ), ie = z ?? h("message.uploadButtonText"), ne = fe(
182
+ () => /* @__PURE__ */ o(
183
+ Me,
144
184
  {
145
- showLoadingIndicator: te,
146
- _buttonTitle: se,
147
- buttonSize: w,
148
- buttonType: f,
149
- fileList: s,
150
- hidePreview: S,
151
- icon: P,
152
- loading: T,
153
- listType: H,
154
- maxCount: R,
155
- onChangeFile: ne,
156
- onRemove: D,
157
- showButtonText: v,
158
- handlePreview: xe,
159
- setFileList: b
185
+ showLoadingIndicator: q,
186
+ _buttonTitle: ie,
187
+ buttonSize: O,
188
+ buttonType: n,
189
+ fileList: d,
190
+ hidePreview: k,
191
+ icon: R,
192
+ loading: N,
193
+ listType: X,
194
+ maxCount: s,
195
+ onChangeFile: re,
196
+ onRemove: T,
197
+ showButtonText: B,
198
+ handlePreview: Se,
199
+ setFileList: g
160
200
  }
161
201
  ),
162
202
  [
163
- te,
164
- se,
165
- w,
166
- f,
203
+ q,
204
+ ie,
205
+ O,
206
+ n,
207
+ d,
208
+ k,
209
+ R,
210
+ N,
211
+ X,
167
212
  s,
168
- S,
169
- P,
213
+ re,
170
214
  T,
171
- H,
172
- R,
173
- ne,
174
- D,
175
- v
215
+ B
176
216
  ]
177
217
  );
178
- ye.current = ae.props.beforeUpload;
179
- const [je, le] = m(0), [ze, ce] = m(0), [A, Ne] = m();
180
- W(() => {
218
+ ke.current = ne.props.beforeUpload;
219
+ const [Ne, se] = I(0), [Pe, ae] = I(0), [$, Ue] = I();
220
+ E(() => {
181
221
  const e = setTimeout(() => {
182
- A && localStorage.setItem(he, JSON.stringify(A));
222
+ $ && localStorage.setItem(he, JSON.stringify($));
183
223
  }, 400);
184
224
  return () => clearTimeout(e);
185
- }, [A]), W(() => {
186
- if (!C) {
187
- le(0), ce(0);
225
+ }, [$]), E(() => {
226
+ if (!j) {
227
+ se(0), ae(0);
188
228
  const e = setTimeout(() => {
189
229
  var t;
190
- (t = l.current) == null || t.reset();
230
+ (t = f.current) == null || t.reset();
191
231
  }, 1500);
192
232
  return () => clearTimeout(e);
193
233
  }
194
- }, [C]);
195
- const de = J(async (e) => {
234
+ }, [j]);
235
+ const le = _(async (e) => {
196
236
  if (e) {
197
237
  const t = e.getCoordinates();
198
- Ne(e.getState()), le((t == null ? void 0 : t.width) ?? 10), ce((t == null ? void 0 : t.height) ?? 10);
238
+ Ue(e.getState()), se((t == null ? void 0 : t.width) ?? 10), ae((t == null ? void 0 : t.height) ?? 10);
199
239
  }
200
240
  }, []);
201
- return /* @__PURE__ */ B(pe, { children: [
202
- /* @__PURE__ */ r(
203
- Me,
241
+ return /* @__PURE__ */ U(pe, { children: [
242
+ /* @__PURE__ */ o(
243
+ Ee,
204
244
  {
205
- label: i,
206
- ...q,
207
- name: g,
245
+ label: m,
246
+ ...Y,
247
+ name: M,
208
248
  className: "mb-0",
209
- rules: [Re, ...q.rules ?? []],
210
- children: ae
249
+ rules: [xe, ...Y.rules ?? []],
250
+ children: ne
211
251
  }
212
252
  ),
213
- /* @__PURE__ */ B(
253
+ /* @__PURE__ */ U(
214
254
  ue,
215
255
  {
216
- open: !!C,
256
+ open: !!j,
217
257
  maskClosable: !1,
218
- onOk: () => ie(!1),
258
+ onOk: () => oe(!1),
219
259
  closable: !1,
220
260
  okButtonProps: {
221
- loading: _ === "crop",
222
- disabled: _ === "skip-crop"
261
+ loading: V === "crop",
262
+ disabled: V === "skip-crop"
223
263
  },
224
- onCancel: Se,
225
- footer: (e, { CancelBtn: t, OkBtn: a }) => ve ? /* @__PURE__ */ B(me, { children: [
226
- /* @__PURE__ */ r(t, {}),
227
- /* @__PURE__ */ r(
228
- y,
264
+ onCancel: je,
265
+ footer: (e, { CancelBtn: t, OkBtn: i }) => ve ? /* @__PURE__ */ U(me, { children: [
266
+ /* @__PURE__ */ o(t, {}),
267
+ /* @__PURE__ */ o(
268
+ x,
229
269
  {
230
270
  type: "primary",
231
- loading: _ === "skip-crop",
232
- disabled: _ === "crop",
233
- onClick: () => ie(!0),
234
- children: c("str.skipCrop")
271
+ loading: V === "skip-crop",
272
+ disabled: V === "crop",
273
+ onClick: () => oe(!0),
274
+ children: h("str.skipCrop")
235
275
  }
236
276
  ),
237
- /* @__PURE__ */ r(a, {})
238
- ] }) : /* @__PURE__ */ r(pe, { children: e }),
277
+ /* @__PURE__ */ o(i, {})
278
+ ] }) : /* @__PURE__ */ o(pe, { children: e }),
239
279
  destroyOnHidden: !0,
240
280
  children: [
241
- /* @__PURE__ */ r(
242
- Be,
281
+ /* @__PURE__ */ o(
282
+ ze,
243
283
  {
244
- ref: l,
284
+ ref: f,
245
285
  stencilProps: {
246
286
  grid: !0
247
287
  },
248
288
  style: { border: "1px solid black" },
249
- src: C,
289
+ src: j,
250
290
  onChange: (e) => {
251
- de(e);
291
+ le(e);
252
292
  },
253
- aspectRatio: O ? {
254
- minimum: O,
255
- maximum: O
293
+ aspectRatio: F ? {
294
+ minimum: F,
295
+ maximum: F
256
296
  } : void 0
257
297
  }
258
298
  ),
259
- /* @__PURE__ */ r("p", { className: "text-center", children: [je, ze].join(" ⨉ ") }),
260
- /* @__PURE__ */ r("div", { className: "mt-2 d-flex justify-content-center", children: /* @__PURE__ */ B(me.Compact, { children: [
261
- /* @__PURE__ */ r(
262
- y,
299
+ /* @__PURE__ */ o("p", { className: "text-center", children: [Ne, Pe].join(" ⨉ ") }),
300
+ /* @__PURE__ */ o("div", { className: "mt-2 d-flex justify-content-center", children: /* @__PURE__ */ U(me.Compact, { children: [
301
+ /* @__PURE__ */ o(
302
+ x,
263
303
  {
264
304
  size: "large",
265
- tooltip: c("str.rotateLeft"),
266
- icon: /* @__PURE__ */ r(Pe, {}),
267
- onClick: () => re(!0)
305
+ tooltip: h("str.rotateLeft"),
306
+ icon: /* @__PURE__ */ o(Be, {}),
307
+ onClick: () => ee(!0)
268
308
  }
269
309
  ),
270
- /* @__PURE__ */ r(
271
- y,
310
+ /* @__PURE__ */ o(
311
+ x,
272
312
  {
273
313
  size: "large",
274
- icon: /* @__PURE__ */ r(Te, {}),
275
- tooltip: c("str.rotateRight"),
276
- onClick: () => re(!1)
314
+ icon: /* @__PURE__ */ o(Re, {}),
315
+ tooltip: h("str.rotateRight"),
316
+ onClick: () => ee(!1)
277
317
  }
278
318
  ),
279
- /* @__PURE__ */ r(
280
- y,
319
+ /* @__PURE__ */ o(
320
+ x,
281
321
  {
282
322
  size: "large",
283
- icon: /* @__PURE__ */ r(_e, {}),
284
- tooltip: c("str.flipHorizontal"),
285
- onClick: () => oe("h")
323
+ icon: /* @__PURE__ */ o(Ve, {}),
324
+ tooltip: h("str.flipHorizontal"),
325
+ onClick: () => te("h")
286
326
  }
287
327
  ),
288
- /* @__PURE__ */ r(
289
- y,
328
+ /* @__PURE__ */ o(
329
+ x,
290
330
  {
291
331
  size: "large",
292
- icon: /* @__PURE__ */ r(Ee, {}),
293
- tooltip: c("str.flipVertical"),
294
- onClick: () => oe("v")
332
+ icon: /* @__PURE__ */ o(_e, {}),
333
+ tooltip: h("str.flipVertical"),
334
+ onClick: () => te("v")
295
335
  }
296
336
  )
297
337
  ] }) })
298
338
  ]
299
339
  }
300
340
  ),
301
- /* @__PURE__ */ r(
341
+ /* @__PURE__ */ o(
302
342
  ue,
303
343
  {
304
- open: Fe,
344
+ open: Ce,
305
345
  title: be,
306
346
  footer: null,
307
347
  onCancel: Oe,
308
- children: /* @__PURE__ */ r("div", { className: "text-center", children: /* @__PURE__ */ r("img", { alt: "example", style: { maxWidth: "400px" }, src: Ie }) })
348
+ children: /* @__PURE__ */ o("div", { className: "text-center", children: /* @__PURE__ */ o("img", { alt: "example", style: { maxWidth: "400px" }, src: Fe }) })
309
349
  }
310
350
  )
311
351
  ] });
312
- }, Je = ({
313
- _buttonTitle: o,
314
- buttonSize: p,
315
- buttonType: f,
316
- fileList: i,
317
- hidePreview: g,
318
- icon: h,
319
- loading: O,
320
- maxCount: x,
321
- onChangeFile: S,
322
- onRemove: w,
323
- showButtonText: v,
324
- handlePreview: Y,
325
- setFileList: P,
326
- showLoadingIndicator: T,
327
- listType: R = "picture"
328
- }) => /* @__PURE__ */ B(
329
- Le,
352
+ }, Me = ({
353
+ _buttonTitle: c,
354
+ buttonSize: b,
355
+ buttonType: y,
356
+ fileList: n,
357
+ hidePreview: m,
358
+ icon: M,
359
+ loading: C,
360
+ maxCount: F,
361
+ onChangeFile: z,
362
+ onRemove: k,
363
+ showButtonText: O,
364
+ handlePreview: B,
365
+ setFileList: Q,
366
+ showLoadingIndicator: R,
367
+ listType: N = "picture"
368
+ }) => /* @__PURE__ */ U(
369
+ De,
330
370
  {
331
371
  accept: "image/x-png,image/gif,image/jpeg",
332
- fileList: i,
333
- defaultFileList: i,
372
+ fileList: n,
373
+ defaultFileList: n,
334
374
  onChange: () => {
335
375
  },
336
- className: (i.length >= x ? " hide-upload " : "") + " mb-0",
376
+ className: (n.length >= F ? " hide-upload " : "") + " mb-0",
337
377
  multiple: !1,
338
- onPreview: g ? void 0 : Y,
339
- onDrop: (n) => (S(n.dataTransfer.files.item(0)), !1),
340
- listType: R,
341
- showUploadList: !g,
342
- onRemove: (n) => {
343
- const D = i.filter((H) => n.uid !== H.uid);
344
- w == null || w(n), P(D);
378
+ onPreview: m ? void 0 : B,
379
+ onDrop: (s) => (z(s.dataTransfer.files.item(0)), !1),
380
+ listType: N,
381
+ showUploadList: !m,
382
+ onRemove: (s) => {
383
+ const S = n.filter((T) => s.uid !== T.uid);
384
+ k == null || k(s), Q(S);
345
385
  },
346
- beforeUpload: async (n) => (S(n), !1),
347
- maxCount: x,
386
+ beforeUpload: async (s) => (z(s), !1),
387
+ maxCount: F,
348
388
  children: [
349
- T && /* @__PURE__ */ r(De, {}),
350
- /* @__PURE__ */ r("div", { className: "d-flex flex-column", children: i.length < x && (R === "picture-circle" ? /* @__PURE__ */ r(we, {}) : /* @__PURE__ */ r(
351
- y,
389
+ R && /* @__PURE__ */ o(Te, {}),
390
+ /* @__PURE__ */ o("div", { className: "d-flex flex-column", children: n.length < F && (N === "picture-circle" ? /* @__PURE__ */ o(we, {}) : /* @__PURE__ */ o(
391
+ x,
352
392
  {
353
- loading: O,
354
- tooltip: v ? void 0 : o,
355
- size: p,
356
- icon: h,
357
- type: v ? f : "text",
358
- children: v ? o : void 0
393
+ loading: C,
394
+ tooltip: O ? void 0 : c,
395
+ size: b,
396
+ icon: M,
397
+ type: O ? y : "text",
398
+ children: O ? c : void 0
359
399
  }
360
400
  )) })
361
401
  ]
362
402
  },
363
- i.length
403
+ n.length
364
404
  );
365
405
  export {
366
- Je as UploadComponent,
406
+ Me as UploadComponent,
367
407
  et as default
368
408
  };