welcome-ui 9.0.0-alpha.4 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/README.md +47 -3
  2. package/dist/2W3RN7C5-bkX-rIa3.js +61 -0
  3. package/dist/4I4MLMKD-BLxAidnq.js +43 -0
  4. package/dist/Accordion.js +6 -6
  5. package/dist/Alert.js +1 -1
  6. package/dist/AspectRatio.js +1 -1
  7. package/dist/Avatar.js +1 -1
  8. package/dist/{4CMBR7SL-Dhp8uJop.js → B7UTNDHN-BlIblHCu.js} +59 -59
  9. package/dist/Badge.js +1 -1
  10. package/dist/Breadcrumb.css +1 -1
  11. package/dist/Breadcrumb.js +27 -27
  12. package/dist/Button.js +2 -2
  13. package/dist/ButtonGroup.js +1 -1
  14. package/dist/Card.js +1 -1
  15. package/dist/Checkbox.css +1 -1
  16. package/dist/Checkbox.js +22 -22
  17. package/dist/CloseButton.js +3 -3
  18. package/dist/{SYRFVSLH-CHNUB1rW.js → DSAASPLT-BaaCUKsb.js} +7 -7
  19. package/dist/DatePicker.js +5 -5
  20. package/dist/DateTimePicker.js +2 -2
  21. package/dist/Drawer.css +1 -1
  22. package/dist/Drawer.js +67 -67
  23. package/dist/DropdownMenu.js +261 -259
  24. package/dist/Field.js +1 -1
  25. package/dist/FieldGroup.js +1 -1
  26. package/dist/FileDrop.js +194 -221
  27. package/dist/FileUpload.js +2 -2
  28. package/dist/GVVKDT6A-bET6V7Py.js +724 -0
  29. package/dist/Hint.js +1 -1
  30. package/dist/{Icon-BisRi8B3.js → Icon-EG7O4YwD.js} +1 -1
  31. package/dist/Icon.js +12 -12
  32. package/dist/InputText.js +1 -1
  33. package/dist/{ASMQKSDT-SH1qSiMi.js → KPUWHTQJ-D2TPji47.js} +30 -30
  34. package/dist/Label.js +3 -3
  35. package/dist/Link.css +1 -1
  36. package/dist/Link.js +27 -27
  37. package/dist/Loader.js +1 -1
  38. package/dist/Logo.js +1 -1
  39. package/dist/Modal.js +10 -10
  40. package/dist/{JC64G2H7-DPy9R0De.js → NI3IVY7K-Ztb3-XAv.js} +571 -571
  41. package/dist/{P4IRICAX-7kH4HzWI.js → NMGNQVTG-C6TqBngP.js} +5 -5
  42. package/dist/{LVA2YJMS-NUHCRwFZ.js → OE2EFRVA-C3721cM3.js} +316 -315
  43. package/dist/{ITI7HKP4-C5xLpoVY.js → OLVWQA7U-DysaSaZj.js} +59 -59
  44. package/dist/Pagination.css +1 -1
  45. package/dist/Pagination.js +81 -73
  46. package/dist/PasswordInput.js +17 -18
  47. package/dist/Popover.js +14 -14
  48. package/dist/{YV4JVR4I-CVFstk2K.js → RTNCFSKZ-qpPg689E.js} +75 -73
  49. package/dist/Radio.css +1 -1
  50. package/dist/Radio.js +29 -29
  51. package/dist/RadioGroup.js +21 -21
  52. package/dist/RadioTab.js +2 -2
  53. package/dist/{P2CTZE2T-D1TepwxQ.js → SBSPVDDI-DJKkC1eb.js} +43 -43
  54. package/dist/{NLEBE274-B4zy25kL.js → SQZLCNLX-CHDXnZ16.js} +16 -16
  55. package/dist/Search.js +2 -2
  56. package/dist/Select.js +170 -181
  57. package/dist/Slider.js +1 -1
  58. package/dist/Swiper.css +1 -1
  59. package/dist/Swiper.js +151 -151
  60. package/dist/{VGCJ63VH-CVhs4PYt.js → T22PY7TE-C1N0q8Kn.js} +109 -109
  61. package/dist/Table.js +1 -1
  62. package/dist/Tabs.js +303 -308
  63. package/dist/Tag.js +3 -3
  64. package/dist/Text.js +1 -1
  65. package/dist/Textarea.js +1 -1
  66. package/dist/TimePicker.js +2 -2
  67. package/dist/Toast.js +1 -1
  68. package/dist/Toggle.js +2 -2
  69. package/dist/Tooltip.js +72 -72
  70. package/dist/VariantIcon.js +3 -3
  71. package/dist/WelcomeLoader.js +1 -1
  72. package/dist/XCKGTAUF-DkxWCbaW.js +25 -0
  73. package/dist/Y67KZUMI-DFEgrUv2.js +15 -0
  74. package/dist/{AXB53BZF-BHeessqV.js → ZTXFEM5L-CkrIQCN1.js} +7 -7
  75. package/dist/{field-icon-size-Du58qHNC.js → field-icon-size-Z5NulTSk.js} +216 -224
  76. package/dist/{index-5rXezknO.js → index-BC2bF45u.js} +1 -1
  77. package/dist/{index-C8GsqBDe.js → index-BeetbagJ.js} +1 -1
  78. package/dist/{index-BJLXLdM3.js → index-Bt79XJ8R.js} +1 -1
  79. package/dist/{index-Dcq5gh3E.js → index-BtwrJ6N4.js} +1 -1
  80. package/dist/{index-DL4-ut3P.js → index-CCASZBtz.js} +1 -1
  81. package/dist/{index-lbUBMgHp.js → index-CPqDZeah.js} +2 -2
  82. package/dist/{index-CTgip19b.js → index-CQEPCbEE.js} +1 -1
  83. package/dist/{index-CnxSNAPH.js → index-Crpe9CvH.js} +1 -1
  84. package/dist/{index-CWVOLBDY.js → index-D5a8Oe6k.js} +1 -1
  85. package/dist/{index-C1jjVTAc.js → index-D8dq-I5s.js} +1 -1
  86. package/dist/{index-Cvtm6uuS.js → index-DkwTwo3z.js} +1 -1
  87. package/dist/{index-BG2aV9o8.js → index-DnO8yBVT.js} +1 -1
  88. package/dist/index.css +0 -0
  89. package/dist/tslib.es6-DpB4Y59c.js +683 -0
  90. package/dist/types/components/Pagination/index.d.ts +1 -2
  91. package/dist/types/components/Pagination/types.d.ts +5 -2
  92. package/dist/types/components/PasswordInput/ToggleButton.d.ts +1 -1
  93. package/dist/types/components/PasswordInput/types.d.ts +1 -1
  94. package/dist/types/components/Tabs/components/TabList/index.d.ts +1 -1
  95. package/dist/types/components/Tabs/index.d.ts +1 -1
  96. package/dist/types/components/Tabs/types.d.ts +1 -2
  97. package/dist/types/components/Tabs/utils.d.ts +1 -2
  98. package/dist/types/utils/index.d.ts +1 -0
  99. package/dist/types/utils/theme/index.d.ts +0 -0
  100. package/dist/types/utils/useForkRef.d.ts +7 -1
  101. package/dist/useForkRef-D807AV7D.js +22 -0
  102. package/dist/{utils-BNMgUIHQ.js → utils-BpbIqM56.js} +1 -1
  103. package/dist/utils.js +2 -2
  104. package/package.json +5 -5
  105. package/dist/BYC7LY2E-DbSoi9cN.js +0 -673
  106. package/dist/KUU7WJ55-CsIy9XMu.js +0 -61
  107. package/dist/MTZPJQMC-D_TnSwZf.js +0 -15
  108. package/dist/QYJ6MIDR-Dm7lYMh6.js +0 -43
  109. package/dist/X5NMLKT6-PeY306ft.js +0 -25
  110. package/dist/index--0U5Rubs.js +0 -644
  111. /package/dist/{index-PAaZGbyz.js → index-CdiHdiVB.js} +0 -0
package/dist/FileDrop.js CHANGED
@@ -1,42 +1,15 @@
1
1
  "use client";
2
- import { jsxs as V, Fragment as ui, jsx as x } from "react/jsx-runtime";
3
- import Pi, { useMemo as Y, useRef as va, useReducer as qi, useEffect as ia, useCallback as z, forwardRef as vi, useImperativeHandle as Ii, Fragment as Ri, useState as Ja } from "react";
4
- import { P as s } from "./index--0U5Rubs.js";
5
- import { g as Si, c as ja } from "./index-PAaZGbyz.js";
2
+ import { jsxs as V, Fragment as vi, jsx as f } from "react/jsx-runtime";
3
+ import Pi, { useMemo as Y, useRef as ua, useReducer as qi, useEffect as ia, useCallback as j, forwardRef as ui, useImperativeHandle as Ii, Fragment as Ri, useState as Ja } from "react";
4
+ import { _ as N, P as s } from "./tslib.es6-DpB4Y59c.js";
5
+ import { g as Si, c as ja } from "./index-CdiHdiVB.js";
6
6
  import { Button as ba } from "./Button.js";
7
- import "./Icon-BisRi8B3.js";
8
- import { P as Ti, N as Li, E as Ci, T as Mi } from "./index-C1jjVTAc.js";
7
+ import "./Icon-EG7O4YwD.js";
8
+ import { P as Ti, N as Li, E as Ci, T as Mi } from "./index-D8dq-I5s.js";
9
9
  import { c as Xa } from "./create-event-rXDe5aCQ.js";
10
- import { g as $i, a as Ni, b as fi } from "./index-lbUBMgHp.js";
11
- import { E as Ki } from "./index-CnxSNAPH.js";
10
+ import { g as $i, a as Ni, b as fi } from "./index-CPqDZeah.js";
11
+ import { E as Ki } from "./index-Crpe9CvH.js";
12
12
  import { Text as ha } from "./Text.js";
13
- function N(a, i, t, e) {
14
- function n(o) {
15
- return o instanceof t ? o : new t(function(c) {
16
- c(o);
17
- });
18
- }
19
- return new (t || (t = Promise))(function(o, c) {
20
- function r(f) {
21
- try {
22
- h(e.next(f));
23
- } catch (j) {
24
- c(j);
25
- }
26
- }
27
- function u(f) {
28
- try {
29
- h(e.throw(f));
30
- } catch (j) {
31
- c(j);
32
- }
33
- }
34
- function h(f) {
35
- f.done ? o(f.value) : n(f.value).then(r, u);
36
- }
37
- h((e = e.apply(a, i || [])).next());
38
- });
39
- }
40
13
  const Hi = /* @__PURE__ */ new Map([
41
14
  // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
42
15
  ["1km", "application/vnd.1000minds.decision-model+xml"],
@@ -1335,8 +1308,8 @@ function ii(a, i) {
1335
1308
  var t;
1336
1309
  if (typeof a.getAsFileSystemHandle == "function")
1337
1310
  return a.getAsFileSystemHandle().then((o) => N(this, void 0, void 0, function* () {
1338
- const c = yield o.getFile();
1339
- return c.handle = o, G(c);
1311
+ const l = yield o.getFile();
1312
+ return l.handle = o, G(l);
1340
1313
  }));
1341
1314
  const e = a.getAsFile();
1342
1315
  if (!e)
@@ -1354,9 +1327,9 @@ function gi(a) {
1354
1327
  return new Promise((t, e) => {
1355
1328
  const n = [];
1356
1329
  function o() {
1357
- i.readEntries((c) => N(this, void 0, void 0, function* () {
1358
- if (c.length) {
1359
- const r = Promise.all(c.map(Qi));
1330
+ i.readEntries((l) => N(this, void 0, void 0, function* () {
1331
+ if (l.length) {
1332
+ const r = Promise.all(l.map(Qi));
1360
1333
  n.push(r), o();
1361
1334
  } else
1362
1335
  try {
@@ -1365,8 +1338,8 @@ function gi(a) {
1365
1338
  } catch (r) {
1366
1339
  e(r);
1367
1340
  }
1368
- }), (c) => {
1369
- e(c);
1341
+ }), (l) => {
1342
+ e(l);
1370
1343
  });
1371
1344
  }
1372
1345
  o();
@@ -1392,8 +1365,8 @@ function it() {
1392
1365
  if (t.length === 0)
1393
1366
  return !0;
1394
1367
  var e = a.name || "", n = (a.type || "").toLowerCase(), o = n.replace(/\/.*$/, "");
1395
- return t.some(function(c) {
1396
- var r = c.trim().toLowerCase();
1368
+ return t.some(function(l) {
1369
+ var r = l.trim().toLowerCase();
1397
1370
  return r.charAt(0) === "." ? e.toLowerCase().endsWith(r) : r.endsWith("/*") ? o === r.replace(/\/.*$/, "") : n === r;
1398
1371
  });
1399
1372
  }
@@ -1463,9 +1436,9 @@ function Ca(a, i) {
1463
1436
  function ct(a, i) {
1464
1437
  var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1465
1438
  if (t != null) {
1466
- var e = [], n = !0, o = !1, c, r;
1439
+ var e = [], n = !0, o = !1, l, r;
1467
1440
  try {
1468
- for (t = t.call(a); !(n = (c = t.next()).done) && (e.push(c.value), !(i && e.length === i)); n = !0)
1441
+ for (t = t.call(a); !(n = (l = t.next()).done) && (e.push(l.value), !(i && e.length === i)); n = !0)
1469
1442
  ;
1470
1443
  } catch (u) {
1471
1444
  o = !0, r = u;
@@ -1482,7 +1455,7 @@ function ct(a, i) {
1482
1455
  function lt(a) {
1483
1456
  if (Array.isArray(a)) return a;
1484
1457
  }
1485
- var rt = typeof Ia == "function" ? Ia : Ia.default, st = "file-invalid-type", dt = "file-too-large", mt = "file-too-small", ut = "too-many-files", vt = function() {
1458
+ var rt = typeof Ia == "function" ? Ia : Ia.default, st = "file-invalid-type", dt = "file-too-large", mt = "file-too-small", vt = "too-many-files", ut = function() {
1486
1459
  var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = i.split(","), e = t.length > 1 ? "one of ".concat(t.join(", ")) : t[0];
1487
1460
  return {
1488
1461
  code: st,
@@ -1499,12 +1472,12 @@ var rt = typeof Ia == "function" ? Ia : Ia.default, st = "file-invalid-type", dt
1499
1472
  message: "File is smaller than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
1500
1473
  };
1501
1474
  }, ft = {
1502
- code: ut,
1475
+ code: vt,
1503
1476
  message: "Too many files"
1504
1477
  };
1505
1478
  function yi(a, i) {
1506
1479
  var t = a.type === "application/x-moz-file" || rt(a, i);
1507
- return [t, t ? null : vt(i)];
1480
+ return [t, t ? null : ut(i)];
1508
1481
  }
1509
1482
  function wi(a, i, t) {
1510
1483
  if ($(a.size))
@@ -1521,10 +1494,10 @@ function $(a) {
1521
1494
  return a != null;
1522
1495
  }
1523
1496
  function xt(a) {
1524
- var i = a.files, t = a.accept, e = a.minSize, n = a.maxSize, o = a.multiple, c = a.maxFiles, r = a.validator;
1525
- return !o && i.length > 1 || o && c >= 1 && i.length > c ? !1 : i.every(function(u) {
1526
- var h = yi(u, t), f = ta(h, 1), j = f[0], P = wi(u, e, n), q = ta(P, 1), w = q[0], A = r ? r(u) : null;
1527
- return j && w && !A;
1497
+ var i = a.files, t = a.accept, e = a.minSize, n = a.maxSize, o = a.multiple, l = a.maxFiles, r = a.validator;
1498
+ return !o && i.length > 1 || o && l >= 1 && i.length > l ? !1 : i.every(function(u) {
1499
+ var w = yi(u, t), D = ta(w, 1), q = D[0], F = wi(u, e, n), P = ta(F, 1), h = P[0], E = r ? r(u) : null;
1500
+ return q && h && !E;
1528
1501
  });
1529
1502
  }
1530
1503
  function wa(a) {
@@ -1548,12 +1521,12 @@ function ht() {
1548
1521
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1549
1522
  return gt(a) || bt(a);
1550
1523
  }
1551
- function F() {
1524
+ function O() {
1552
1525
  for (var a = arguments.length, i = new Array(a), t = 0; t < a; t++)
1553
1526
  i[t] = arguments[t];
1554
1527
  return function(e) {
1555
- for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), c = 1; c < n; c++)
1556
- o[c - 1] = arguments[c];
1528
+ for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), l = 1; l < n; l++)
1529
+ o[l - 1] = arguments[l];
1557
1530
  return i.some(function(r) {
1558
1531
  return !wa(e) && r && r.apply(void 0, [e].concat(o)), wa(e);
1559
1532
  });
@@ -1565,11 +1538,11 @@ function yt() {
1565
1538
  function wt(a) {
1566
1539
  if ($(a)) {
1567
1540
  var i = Object.entries(a).filter(function(t) {
1568
- var e = ta(t, 2), n = e[0], o = e[1], c = !0;
1569
- return ki(n) || (console.warn('Skipped "'.concat(n, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), c = !1), (!Array.isArray(o) || !o.every(ji)) && (console.warn('Skipped "'.concat(n, '" because an invalid file extension was provided.')), c = !1), c;
1541
+ var e = ta(t, 2), n = e[0], o = e[1], l = !0;
1542
+ return ki(n) || (console.warn('Skipped "'.concat(n, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), l = !1), (!Array.isArray(o) || !o.every(ji)) && (console.warn('Skipped "'.concat(n, '" because an invalid file extension was provided.')), l = !1), l;
1570
1543
  }).reduce(function(t, e) {
1571
- var n = ta(e, 2), o = n[0], c = n[1];
1572
- return pi(pi({}, t), {}, bi({}, o, c));
1544
+ var n = ta(e, 2), o = n[0], l = n[1];
1545
+ return pi(pi({}, t), {}, bi({}, o, l));
1573
1546
  }, {});
1574
1547
  return [{
1575
1548
  // description is required due to https://crbug.com/1264708
@@ -1638,9 +1611,9 @@ function Ma(a, i) {
1638
1611
  function Rt(a, i) {
1639
1612
  var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1640
1613
  if (t != null) {
1641
- var e = [], n = !0, o = !1, c, r;
1614
+ var e = [], n = !0, o = !1, l, r;
1642
1615
  try {
1643
- for (t = t.call(a); !(n = (c = t.next()).done) && (e.push(c.value), !(i && e.length === i)); n = !0)
1616
+ for (t = t.call(a); !(n = (l = t.next()).done) && (e.push(l.value), !(i && e.length === i)); n = !0)
1644
1617
  ;
1645
1618
  } catch (u) {
1646
1619
  o = !0, r = u;
@@ -1698,13 +1671,13 @@ function Tt(a, i) {
1698
1671
  n = e[o], !(i.indexOf(n) >= 0) && (t[n] = a[n]);
1699
1672
  return t;
1700
1673
  }
1701
- var Ka = /* @__PURE__ */ vi(function(a, i) {
1702
- var t = a.children, e = ka(a, zt), n = _i(e), o = n.open, c = ka(n, _t);
1674
+ var Ka = /* @__PURE__ */ ui(function(a, i) {
1675
+ var t = a.children, e = ka(a, zt), n = _i(e), o = n.open, l = ka(n, _t);
1703
1676
  return Ii(i, function() {
1704
1677
  return {
1705
1678
  open: o
1706
1679
  };
1707
- }, [o]), /* @__PURE__ */ Pi.createElement(Ri, null, t(m(m({}, c), {}, {
1680
+ }, [o]), /* @__PURE__ */ Pi.createElement(Ri, null, t(m(m({}, l), {}, {
1708
1681
  open: o
1709
1682
  })));
1710
1683
  });
@@ -1904,19 +1877,19 @@ var Na = {
1904
1877
  fileRejections: []
1905
1878
  };
1906
1879
  function _i() {
1907
- var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = m(m({}, zi), a), t = i.accept, e = i.disabled, n = i.getFilesFromEvent, o = i.maxSize, c = i.minSize, r = i.multiple, u = i.maxFiles, h = i.onDragEnter, f = i.onDragLeave, j = i.onDragOver, P = i.onDrop, q = i.onDropAccepted, w = i.onDropRejected, A = i.onFileDialogCancel, S = i.onFileDialogOpen, ea = i.useFsAccessApi, na = i.autoFocus, Z = i.preventDropOnDocument, D = i.noClick, I = i.noKeyboard, K = i.noDrag, _ = i.noDragEventsBubbling, J = i.onError, T = i.validator, L = Y(function() {
1880
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = m(m({}, zi), a), t = i.accept, e = i.disabled, n = i.getFilesFromEvent, o = i.maxSize, l = i.minSize, r = i.multiple, u = i.maxFiles, w = i.onDragEnter, D = i.onDragLeave, q = i.onDragOver, F = i.onDrop, P = i.onDropAccepted, h = i.onDropRejected, E = i.onFileDialogCancel, S = i.onFileDialogOpen, ea = i.useFsAccessApi, na = i.autoFocus, Z = i.preventDropOnDocument, k = i.noClick, I = i.noKeyboard, K = i.noDrag, z = i.noDragEventsBubbling, J = i.onError, T = i.validator, L = Y(function() {
1908
1881
  return kt(t);
1909
1882
  }, [t]), pa = Y(function() {
1910
1883
  return wt(t);
1911
1884
  }, [t]), X = Y(function() {
1912
1885
  return typeof S == "function" ? S : si;
1913
1886
  }, [S]), C = Y(function() {
1914
- return typeof A == "function" ? A : si;
1915
- }, [A]), b = va(null), y = va(null), oa = qi(Lt, Na), ca = Ra(oa, 2), E = ca[0], d = ca[1], O = E.isFocused, la = E.isFileDialogActive, H = va(typeof window < "u" && window.isSecureContext && ea && yt()), Q = function() {
1887
+ return typeof E == "function" ? E : si;
1888
+ }, [E]), g = ua(null), b = ua(null), oa = qi(Lt, Na), ca = Ra(oa, 2), _ = ca[0], d = ca[1], A = _.isFocused, la = _.isFileDialogActive, H = ua(typeof window < "u" && window.isSecureContext && ea && yt()), Q = function() {
1916
1889
  !H.current && la && setTimeout(function() {
1917
- if (y.current) {
1918
- var l = y.current.files;
1919
- l.length || (d({
1890
+ if (b.current) {
1891
+ var c = b.current.files;
1892
+ c.length || (d({
1920
1893
  type: "closeDialog"
1921
1894
  }), C());
1922
1895
  }
@@ -1926,97 +1899,97 @@ function _i() {
1926
1899
  return window.addEventListener("focus", Q, !1), function() {
1927
1900
  window.removeEventListener("focus", Q, !1);
1928
1901
  };
1929
- }, [y, la, C, H]);
1930
- var R = va([]), Ha = function(l) {
1931
- b.current && b.current.contains(l.target) || (l.preventDefault(), R.current = []);
1902
+ }, [b, la, C, H]);
1903
+ var R = ua([]), Ha = function(c) {
1904
+ g.current && g.current.contains(c.target) || (c.preventDefault(), R.current = []);
1932
1905
  };
1933
1906
  ia(function() {
1934
1907
  return Z && (document.addEventListener("dragover", li, !1), document.addEventListener("drop", Ha, !1)), function() {
1935
1908
  Z && (document.removeEventListener("dragover", li), document.removeEventListener("drop", Ha));
1936
1909
  };
1937
- }, [b, Z]), ia(function() {
1938
- return !e && na && b.current && b.current.focus(), function() {
1910
+ }, [g, Z]), ia(function() {
1911
+ return !e && na && g.current && g.current.focus(), function() {
1939
1912
  };
1940
- }, [b, na, e]);
1941
- var M = z(function(p) {
1913
+ }, [g, na, e]);
1914
+ var M = j(function(p) {
1942
1915
  J ? J(p) : console.error(p);
1943
- }, [J]), Wa = z(function(p) {
1944
- p.preventDefault(), p.persist(), ma(p), R.current = [].concat(Ot(R.current), [p.target]), xa(p) && Promise.resolve(n(p)).then(function(l) {
1945
- if (!(wa(p) && !_)) {
1946
- var v = l.length, g = v > 0 && xt({
1947
- files: l,
1916
+ }, [J]), Wa = j(function(p) {
1917
+ p.preventDefault(), p.persist(), ma(p), R.current = [].concat(Ot(R.current), [p.target]), xa(p) && Promise.resolve(n(p)).then(function(c) {
1918
+ if (!(wa(p) && !z)) {
1919
+ var v = c.length, x = v > 0 && xt({
1920
+ files: c,
1948
1921
  accept: L,
1949
- minSize: c,
1922
+ minSize: l,
1950
1923
  maxSize: o,
1951
1924
  multiple: r,
1952
1925
  maxFiles: u,
1953
1926
  validator: T
1954
- }), k = v > 0 && !g;
1927
+ }), y = v > 0 && !x;
1955
1928
  d({
1956
- isDragAccept: g,
1957
- isDragReject: k,
1929
+ isDragAccept: x,
1930
+ isDragReject: y,
1958
1931
  isDragActive: !0,
1959
1932
  type: "setDraggedFiles"
1960
- }), h && h(p);
1933
+ }), w && w(p);
1961
1934
  }
1962
- }).catch(function(l) {
1963
- return M(l);
1935
+ }).catch(function(c) {
1936
+ return M(c);
1964
1937
  });
1965
- }, [n, h, M, _, L, c, o, r, u, T]), Ua = z(function(p) {
1938
+ }, [n, w, M, z, L, l, o, r, u, T]), Ua = j(function(p) {
1966
1939
  p.preventDefault(), p.persist(), ma(p);
1967
- var l = xa(p);
1968
- if (l && p.dataTransfer)
1940
+ var c = xa(p);
1941
+ if (c && p.dataTransfer)
1969
1942
  try {
1970
1943
  p.dataTransfer.dropEffect = "copy";
1971
1944
  } catch {
1972
1945
  }
1973
- return l && j && j(p), !1;
1974
- }, [j, _]), Ba = z(function(p) {
1946
+ return c && q && q(p), !1;
1947
+ }, [q, z]), Ba = j(function(p) {
1975
1948
  p.preventDefault(), p.persist(), ma(p);
1976
- var l = R.current.filter(function(g) {
1977
- return b.current && b.current.contains(g);
1978
- }), v = l.indexOf(p.target);
1979
- v !== -1 && l.splice(v, 1), R.current = l, !(l.length > 0) && (d({
1949
+ var c = R.current.filter(function(x) {
1950
+ return g.current && g.current.contains(x);
1951
+ }), v = c.indexOf(p.target);
1952
+ v !== -1 && c.splice(v, 1), R.current = c, !(c.length > 0) && (d({
1980
1953
  type: "setDraggedFiles",
1981
1954
  isDragActive: !1,
1982
1955
  isDragAccept: !1,
1983
1956
  isDragReject: !1
1984
- }), xa(p) && f && f(p));
1985
- }, [b, f, _]), ra = z(function(p, l) {
1986
- var v = [], g = [];
1987
- p.forEach(function(k) {
1988
- var aa = yi(k, L), B = Ra(aa, 2), _a = B[0], Ea = B[1], Aa = wi(k, c, o), ua = Ra(Aa, 2), Oa = ua[0], Fa = ua[1], Pa = T ? T(k) : null;
1957
+ }), xa(p) && D && D(p));
1958
+ }, [g, D, z]), ra = j(function(p, c) {
1959
+ var v = [], x = [];
1960
+ p.forEach(function(y) {
1961
+ var aa = yi(y, L), B = Ra(aa, 2), _a = B[0], Ea = B[1], Aa = wi(y, l, o), va = Ra(Aa, 2), Oa = va[0], Fa = va[1], Pa = T ? T(y) : null;
1989
1962
  if (_a && Oa && !Pa)
1990
- v.push(k);
1963
+ v.push(y);
1991
1964
  else {
1992
1965
  var qa = [Ea, Fa];
1993
- Pa && (qa = qa.concat(Pa)), g.push({
1994
- file: k,
1966
+ Pa && (qa = qa.concat(Pa)), x.push({
1967
+ file: y,
1995
1968
  errors: qa.filter(function(Fi) {
1996
1969
  return Fi;
1997
1970
  })
1998
1971
  });
1999
1972
  }
2000
- }), (!r && v.length > 1 || r && u >= 1 && v.length > u) && (v.forEach(function(k) {
2001
- g.push({
2002
- file: k,
1973
+ }), (!r && v.length > 1 || r && u >= 1 && v.length > u) && (v.forEach(function(y) {
1974
+ x.push({
1975
+ file: y,
2003
1976
  errors: [ft]
2004
1977
  });
2005
1978
  }), v.splice(0)), d({
2006
1979
  acceptedFiles: v,
2007
- fileRejections: g,
2008
- isDragReject: g.length > 0,
1980
+ fileRejections: x,
1981
+ isDragReject: x.length > 0,
2009
1982
  type: "setFiles"
2010
- }), P && P(v, g, l), g.length > 0 && w && w(g, l), v.length > 0 && q && q(v, l);
2011
- }, [d, r, L, c, o, u, P, q, w, T]), sa = z(function(p) {
2012
- p.preventDefault(), p.persist(), ma(p), R.current = [], xa(p) && Promise.resolve(n(p)).then(function(l) {
2013
- wa(p) && !_ || ra(l, p);
2014
- }).catch(function(l) {
2015
- return M(l);
1983
+ }), F && F(v, x, c), x.length > 0 && h && h(x, c), v.length > 0 && P && P(v, c);
1984
+ }, [d, r, L, l, o, u, F, P, h, T]), sa = j(function(p) {
1985
+ p.preventDefault(), p.persist(), ma(p), R.current = [], xa(p) && Promise.resolve(n(p)).then(function(c) {
1986
+ wa(p) && !z || ra(c, p);
1987
+ }).catch(function(c) {
1988
+ return M(c);
2016
1989
  }), d({
2017
1990
  type: "reset"
2018
1991
  });
2019
- }, [n, ra, M, _]), W = z(function() {
1992
+ }, [n, ra, M, z]), W = j(function() {
2020
1993
  if (H.current) {
2021
1994
  d({
2022
1995
  type: "openDialog"
@@ -2025,64 +1998,64 @@ function _i() {
2025
1998
  multiple: r,
2026
1999
  types: pa
2027
2000
  };
2028
- window.showOpenFilePicker(p).then(function(l) {
2029
- return n(l);
2030
- }).then(function(l) {
2031
- ra(l, null), d({
2001
+ window.showOpenFilePicker(p).then(function(c) {
2002
+ return n(c);
2003
+ }).then(function(c) {
2004
+ ra(c, null), d({
2032
2005
  type: "closeDialog"
2033
2006
  });
2034
- }).catch(function(l) {
2035
- jt(l) ? (C(l), d({
2007
+ }).catch(function(c) {
2008
+ jt(c) ? (C(c), d({
2036
2009
  type: "closeDialog"
2037
- })) : Dt(l) ? (H.current = !1, y.current ? (y.current.value = null, y.current.click()) : M(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : M(l);
2010
+ })) : Dt(c) ? (H.current = !1, b.current ? (b.current.value = null, b.current.click()) : M(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : M(c);
2038
2011
  });
2039
2012
  return;
2040
2013
  }
2041
- y.current && (d({
2014
+ b.current && (d({
2042
2015
  type: "openDialog"
2043
- }), X(), y.current.value = null, y.current.click());
2044
- }, [d, X, C, ea, ra, M, pa, r]), Ya = z(function(p) {
2045
- !b.current || !b.current.isEqualNode(p.target) || (p.key === " " || p.key === "Enter" || p.keyCode === 32 || p.keyCode === 13) && (p.preventDefault(), W());
2046
- }, [b, W]), Va = z(function() {
2016
+ }), X(), b.current.value = null, b.current.click());
2017
+ }, [d, X, C, ea, ra, M, pa, r]), Ya = j(function(p) {
2018
+ !g.current || !g.current.isEqualNode(p.target) || (p.key === " " || p.key === "Enter" || p.keyCode === 32 || p.keyCode === 13) && (p.preventDefault(), W());
2019
+ }, [g, W]), Va = j(function() {
2047
2020
  d({
2048
2021
  type: "focus"
2049
2022
  });
2050
- }, []), Ga = z(function() {
2023
+ }, []), Ga = j(function() {
2051
2024
  d({
2052
2025
  type: "blur"
2053
2026
  });
2054
- }, []), Za = z(function() {
2055
- D || (ht() ? setTimeout(W, 0) : W());
2056
- }, [D, W]), U = function(l) {
2057
- return e ? null : l;
2058
- }, za = function(l) {
2059
- return I ? null : U(l);
2060
- }, da = function(l) {
2061
- return K ? null : U(l);
2062
- }, ma = function(l) {
2063
- _ && l.stopPropagation();
2027
+ }, []), Za = j(function() {
2028
+ k || (ht() ? setTimeout(W, 0) : W());
2029
+ }, [k, W]), U = function(c) {
2030
+ return e ? null : c;
2031
+ }, za = function(c) {
2032
+ return I ? null : U(c);
2033
+ }, da = function(c) {
2034
+ return K ? null : U(c);
2035
+ }, ma = function(c) {
2036
+ z && c.stopPropagation();
2064
2037
  }, Ei = Y(function() {
2065
2038
  return function() {
2066
- var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, l = p.refKey, v = l === void 0 ? "ref" : l, g = p.role, k = p.onKeyDown, aa = p.onFocus, B = p.onBlur, _a = p.onClick, Ea = p.onDragEnter, Aa = p.onDragOver, ua = p.onDragLeave, Oa = p.onDrop, Fa = ka(p, Et);
2039
+ var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = p.refKey, v = c === void 0 ? "ref" : c, x = p.role, y = p.onKeyDown, aa = p.onFocus, B = p.onBlur, _a = p.onClick, Ea = p.onDragEnter, Aa = p.onDragOver, va = p.onDragLeave, Oa = p.onDrop, Fa = ka(p, Et);
2067
2040
  return m(m($a({
2068
- onKeyDown: za(F(k, Ya)),
2069
- onFocus: za(F(aa, Va)),
2070
- onBlur: za(F(B, Ga)),
2071
- onClick: U(F(_a, Za)),
2072
- onDragEnter: da(F(Ea, Wa)),
2073
- onDragOver: da(F(Aa, Ua)),
2074
- onDragLeave: da(F(ua, Ba)),
2075
- onDrop: da(F(Oa, sa)),
2076
- role: typeof g == "string" && g !== "" ? g : "presentation"
2077
- }, v, b), !e && !I ? {
2041
+ onKeyDown: za(O(y, Ya)),
2042
+ onFocus: za(O(aa, Va)),
2043
+ onBlur: za(O(B, Ga)),
2044
+ onClick: U(O(_a, Za)),
2045
+ onDragEnter: da(O(Ea, Wa)),
2046
+ onDragOver: da(O(Aa, Ua)),
2047
+ onDragLeave: da(O(va, Ba)),
2048
+ onDrop: da(O(Oa, sa)),
2049
+ role: typeof x == "string" && x !== "" ? x : "presentation"
2050
+ }, v, g), !e && !I ? {
2078
2051
  tabIndex: 0
2079
2052
  } : {}), Fa);
2080
2053
  };
2081
- }, [b, Ya, Va, Ga, Za, Wa, Ua, Ba, sa, I, K, e]), Ai = z(function(p) {
2054
+ }, [g, Ya, Va, Ga, Za, Wa, Ua, Ba, sa, I, K, e]), Ai = j(function(p) {
2082
2055
  p.stopPropagation();
2083
2056
  }, []), Oi = Y(function() {
2084
2057
  return function() {
2085
- var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, l = p.refKey, v = l === void 0 ? "ref" : l, g = p.onChange, k = p.onClick, aa = ka(p, At), B = $a({
2058
+ var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = p.refKey, v = c === void 0 ? "ref" : c, x = p.onChange, y = p.onClick, aa = ka(p, At), B = $a({
2086
2059
  accept: L,
2087
2060
  multiple: r,
2088
2061
  type: "file",
@@ -2098,19 +2071,19 @@ function _i() {
2098
2071
  width: "1px",
2099
2072
  whiteSpace: "nowrap"
2100
2073
  },
2101
- onChange: U(F(g, sa)),
2102
- onClick: U(F(k, Ai)),
2074
+ onChange: U(O(x, sa)),
2075
+ onClick: U(O(y, Ai)),
2103
2076
  tabIndex: -1
2104
- }, v, y);
2077
+ }, v, b);
2105
2078
  return m(m({}, B), aa);
2106
2079
  };
2107
- }, [y, t, r, sa, e]);
2108
- return m(m({}, E), {}, {
2109
- isFocused: O && !e,
2080
+ }, [b, t, r, sa, e]);
2081
+ return m(m({}, _), {}, {
2082
+ isFocused: A && !e,
2110
2083
  getRootProps: Ei,
2111
2084
  getInputProps: Oi,
2112
- rootRef: b,
2113
- inputRef: y,
2085
+ rootRef: g,
2086
+ inputRef: b,
2114
2087
  open: U(W)
2115
2088
  });
2116
2089
  }
@@ -2172,11 +2145,11 @@ const Ct = "_root_1encq_2", Mt = "_disabled_1encq_26", $t = "_actions_1encq_65",
2172
2145
  forceFileType: t,
2173
2146
  previewButtonText: e = "Preview"
2174
2147
  }) => {
2175
- const n = typeof a == "string", o = $i(a, t), c = a instanceof File ? Ni(a) : null, r = n && i ? i : fi(a);
2176
- return /* @__PURE__ */ V(ui, { children: [
2177
- /* @__PURE__ */ x(o, { className: Sa("file-preview-icon"), size: "xxl" }),
2178
- /* @__PURE__ */ x(ha, { className: Sa("file-preview-name"), lines: 1, variant: "h4", children: r }),
2179
- !n && /* @__PURE__ */ x(ha, { className: Sa("file-preview-size"), lines: 1, variant: "sm", children: c }),
2148
+ const n = typeof a == "string", o = $i(a, t), l = a instanceof File ? Ni(a) : null, r = n && i ? i : fi(a);
2149
+ return /* @__PURE__ */ V(vi, { children: [
2150
+ /* @__PURE__ */ f(o, { className: Sa("file-preview-icon"), size: "xxl" }),
2151
+ /* @__PURE__ */ f(ha, { className: Sa("file-preview-name"), lines: 1, variant: "h4", children: r }),
2152
+ !n && /* @__PURE__ */ f(ha, { className: Sa("file-preview-size"), lines: 1, variant: "sm", children: l }),
2180
2153
  n ? /* @__PURE__ */ V(
2181
2154
  ba,
2182
2155
  {
@@ -2187,8 +2160,8 @@ const Ct = "_root_1encq_2", Mt = "_disabled_1encq_26", $t = "_actions_1encq_65",
2187
2160
  size: "sm",
2188
2161
  target: "_blank",
2189
2162
  children: [
2190
- /* @__PURE__ */ x("span", { children: e }),
2191
- /* @__PURE__ */ x(Ki, {})
2163
+ /* @__PURE__ */ f("span", { children: e }),
2164
+ /* @__PURE__ */ f(Ki, {})
2192
2165
  ]
2193
2166
  }
2194
2167
  ) : null
@@ -2199,10 +2172,10 @@ const Ct = "_root_1encq_2", Mt = "_disabled_1encq_26", $t = "_actions_1encq_65",
2199
2172
  hint: t = "Drag & drop a file here or",
2200
2173
  openFile: e,
2201
2174
  title: n = "Add file"
2202
- }) => /* @__PURE__ */ V(ui, { children: [
2203
- /* @__PURE__ */ x(ha, { className: Ta("message-title"), variant: "h4", children: n }),
2204
- /* @__PURE__ */ x(ha, { className: Ta("message-hint"), variant: "sm", children: t }),
2205
- /* @__PURE__ */ x(
2175
+ }) => /* @__PURE__ */ V(vi, { children: [
2176
+ /* @__PURE__ */ f(ha, { className: Ta("message-title"), variant: "h4", children: n }),
2177
+ /* @__PURE__ */ f(ha, { className: Ta("message-hint"), variant: "sm", children: t }),
2178
+ /* @__PURE__ */ f(
2206
2179
  ba,
2207
2180
  {
2208
2181
  className: Ta("message-file-button-text"),
@@ -2219,12 +2192,12 @@ const Ct = "_root_1encq_2", Mt = "_disabled_1encq_26", $t = "_actions_1encq_65",
2219
2192
  fileName: e,
2220
2193
  fileUrl: n,
2221
2194
  forceFileType: o,
2222
- isAnImage: c,
2195
+ isAnImage: l,
2223
2196
  isHoverAccept: r,
2224
2197
  isHoverReject: u,
2225
- openFile: h,
2226
- wordings: f
2227
- }) => r ? /* @__PURE__ */ x(Ti, {}) : u ? /* @__PURE__ */ x(Li, {}) : i ? /* @__PURE__ */ x(di, { openFile: h, ...f }) : n ? c ? /* @__PURE__ */ x("img", { className: Kt("image-preview"), src: n }) : /* @__PURE__ */ x(Nt, { file: t, fileName: e, forceFileType: o, ...f }) : /* @__PURE__ */ x(di, { disabled: a, openFile: h, ...f }), mi = /\.(jpeg|jpg|gif|png|webp)$/, Wt = (a) => a ? typeof a == "string" ? !!fi(a).match(mi) : a.name ? !!a.name.match(mi) : !1 : !1, Ut = (a) => {
2198
+ openFile: w,
2199
+ wordings: D
2200
+ }) => r ? /* @__PURE__ */ f(Ti, {}) : u ? /* @__PURE__ */ f(Li, {}) : i ? /* @__PURE__ */ f(di, { openFile: w, ...D }) : n ? l ? /* @__PURE__ */ f("img", { className: Kt("image-preview"), src: n }) : /* @__PURE__ */ f(Nt, { file: t, fileName: e, forceFileType: o, ...D }) : /* @__PURE__ */ f(di, { disabled: a, openFile: w, ...D }), mi = /\.(jpeg|jpg|gif|png|webp)$/, Wt = (a) => a ? typeof a == "string" ? !!fi(a).match(mi) : a.name ? !!a.name.match(mi) : !1 : !1, Ut = (a) => {
2228
2201
  let i;
2229
2202
  if (a instanceof File ? i = a.preview : i = a, typeof i != "string" || i.startsWith("blob:"))
2230
2203
  return i;
@@ -2234,7 +2207,7 @@ const Ct = "_root_1encq_2", Mt = "_disabled_1encq_26", $t = "_actions_1encq_65",
2234
2207
  } catch {
2235
2208
  return;
2236
2209
  }
2237
- }, Bt = 2e6, Yt = "ERROR_INVALID_TYPE", Vt = "ERROR_INVALID_SIZE", ga = ja(Da), oe = vi(
2210
+ }, Bt = 2e6, Yt = "ERROR_INVALID_TYPE", Vt = "ERROR_INVALID_SIZE", ga = ja(Da), oe = ui(
2238
2211
  ({
2239
2212
  accept: a = {
2240
2213
  "image/*": []
@@ -2244,90 +2217,90 @@ const Ct = "_root_1encq_2", Mt = "_disabled_1encq_26", $t = "_actions_1encq_65",
2244
2217
  disabled: e,
2245
2218
  fileName: n,
2246
2219
  forceFileType: o,
2247
- handleAddFile: c,
2220
+ handleAddFile: l,
2248
2221
  handleRemoveFile: r,
2249
2222
  isClearable: u,
2250
- isEditable: h,
2251
- maxSize: f = Bt,
2252
- multiple: j,
2253
- name: P,
2254
- onBlur: q,
2255
- onChange: w,
2256
- onError: A,
2223
+ isEditable: w,
2224
+ maxSize: D = Bt,
2225
+ multiple: q,
2226
+ name: F,
2227
+ onBlur: P,
2228
+ onChange: h,
2229
+ onError: E,
2257
2230
  value: S,
2258
2231
  wordings: ea,
2259
2232
  ...na
2260
2233
  }, Z) => {
2261
- const [D, I] = Ja(S), [K, _] = Ja(void 0);
2234
+ const [k, I] = Ja(S), [K, z] = Ja(void 0);
2262
2235
  ia(() => {
2263
2236
  I(S);
2264
- }, [S]), ia(() => () => D && D instanceof File && URL.revokeObjectURL(D.preview), [D]);
2265
- const J = (E) => {
2266
- const [d] = E;
2267
- d instanceof File && (d.preview = URL.createObjectURL(d)), I(d), _(null);
2268
- const O = Xa({ name: P, value: d });
2269
- w == null || w(O), c == null || c(O);
2270
- }, T = (E, d) => {
2271
- let O;
2272
- E.map(({ errors: la }) => {
2237
+ }, [S]), ia(() => () => k && k instanceof File && URL.revokeObjectURL(k.preview), [k]);
2238
+ const J = (_) => {
2239
+ const [d] = _;
2240
+ d instanceof File && (d.preview = URL.createObjectURL(d)), I(d), z(null);
2241
+ const A = Xa({ name: F, value: d });
2242
+ h == null || h(A), l == null || l(A);
2243
+ }, T = (_, d) => {
2244
+ let A;
2245
+ _.map(({ errors: la }) => {
2273
2246
  la.map((H) => {
2274
2247
  const { code: Q, message: R } = H;
2275
- Q === "file-invalid-type" ? O = Yt : Q === "file-too-large" ? O = Vt : O = R;
2248
+ Q === "file-invalid-type" ? A = Yt : Q === "file-too-large" ? A = Vt : A = R;
2276
2249
  });
2277
- }), I(null), _(O), A == null || A(O), w == null || w(d), q == null || q();
2278
- }, L = (E) => {
2279
- E.preventDefault(), I(null), _(null);
2280
- const d = Xa({ name: P, value: null });
2281
- w == null || w(d), r == null || r(d);
2282
- }, { getInputProps: pa, getRootProps: X, isDragAccept: C, isDragActive: b, isDragReject: y, open: oa } = _i({
2250
+ }), I(null), z(A), E == null || E(A), h == null || h(d), P == null || P();
2251
+ }, L = (_) => {
2252
+ _.preventDefault(), I(null), z(null);
2253
+ const d = Xa({ name: F, value: null });
2254
+ h == null || h(d), r == null || r(d);
2255
+ }, { getInputProps: pa, getRootProps: X, isDragAccept: C, isDragActive: g, isDragReject: b, open: oa } = _i({
2283
2256
  accept: a,
2284
2257
  disabled: e,
2285
- maxSize: f,
2286
- multiple: j,
2258
+ maxSize: D,
2259
+ multiple: q,
2287
2260
  noClick: !0,
2288
2261
  onDropAccepted: J,
2289
2262
  onDropRejected: T
2290
- }), ca = (E) => A(E);
2263
+ }), ca = (_) => E(_);
2291
2264
  return /* @__PURE__ */ V(
2292
2265
  "div",
2293
2266
  {
2294
- className: ga("root", e && "disabled", y && "drag-reject", t),
2267
+ className: ga("root", e && "disabled", b && "drag-reject", t),
2295
2268
  ...X({
2296
2269
  disabled: e,
2297
2270
  handleRemoveFile: r,
2298
2271
  isClearable: u,
2299
2272
  isDragAccept: C,
2300
- isDragActive: b,
2301
- isDragReject: y,
2302
- isEditable: h,
2273
+ isDragActive: g,
2274
+ isDragReject: b,
2275
+ isEditable: w,
2303
2276
  ref: Z
2304
2277
  }),
2305
2278
  ...na,
2306
2279
  children: [
2307
- /* @__PURE__ */ x(
2280
+ /* @__PURE__ */ f(
2308
2281
  "input",
2309
2282
  {
2310
2283
  className: ga("file-input"),
2311
- ...pa({ disabled: e, multiple: j, name: P, onError: ca })
2284
+ ...pa({ disabled: e, multiple: q, name: F, onError: ca })
2312
2285
  }
2313
2286
  ),
2314
2287
  /* @__PURE__ */ V("div", { className: ga("file-preview"), children: [
2315
2288
  i({
2316
2289
  disabled: e,
2317
2290
  error: K,
2318
- file: D,
2291
+ file: k,
2319
2292
  fileName: n,
2320
- fileUrl: D && Ut(D),
2293
+ fileUrl: k && Ut(k),
2321
2294
  forceFileType: o,
2322
- isAnImage: o === "image" || Wt(D),
2295
+ isAnImage: o === "image" || Wt(k),
2323
2296
  isHoverAccept: C,
2324
- isHoverReject: y,
2297
+ isHoverReject: b,
2325
2298
  openFile: oa,
2326
2299
  wordings: ea
2327
2300
  }),
2328
- D && (K || h || u) ? /* @__PURE__ */ V("div", { className: ga("actions"), children: [
2329
- K || h ? /* @__PURE__ */ x(ba, { onClick: oa, shape: "circle", size: "sm", type: "button", variant: "tertiary", children: /* @__PURE__ */ x(Ci, {}) }) : null,
2330
- u ? /* @__PURE__ */ x(
2301
+ k && (K || w || u) ? /* @__PURE__ */ V("div", { className: ga("actions"), children: [
2302
+ K || w ? /* @__PURE__ */ f(ba, { onClick: oa, shape: "circle", size: "sm", type: "button", variant: "tertiary", children: /* @__PURE__ */ f(Ci, {}) }) : null,
2303
+ u ? /* @__PURE__ */ f(
2331
2304
  ba,
2332
2305
  {
2333
2306
  onClick: L,
@@ -2335,7 +2308,7 @@ const Ct = "_root_1encq_2", Mt = "_disabled_1encq_26", $t = "_actions_1encq_65",
2335
2308
  size: "sm",
2336
2309
  type: "button",
2337
2310
  variant: "primary-danger",
2338
- children: /* @__PURE__ */ x(Mi, {})
2311
+ children: /* @__PURE__ */ f(Mi, {})
2339
2312
  }
2340
2313
  ) : null
2341
2314
  ] }) : null