welcome-ui 8.1.0 → 8.2.0-alpha.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 (156) hide show
  1. package/dist/Alert.mjs +28 -28
  2. package/dist/Avatar.mjs +47 -44
  3. package/dist/Breadcrumb.mjs +169 -167
  4. package/dist/ButtonGroup.mjs +14 -14
  5. package/dist/Checkbox.mjs +1 -1
  6. package/dist/{CustomPopper-B2Cqfph4.mjs → CustomPopper-DezjKb9n.mjs} +12 -17
  7. package/dist/DatePicker.mjs +74 -74
  8. package/dist/DateTimePicker.mjs +60 -59
  9. package/dist/DateTimePickerCommon.mjs +1 -1
  10. package/dist/Drawer.mjs +51 -55
  11. package/dist/DropdownMenu.mjs +183 -183
  12. package/dist/Field.mjs +9 -10
  13. package/dist/FileDrop.mjs +455 -465
  14. package/dist/FileUpload.mjs +74 -81
  15. package/dist/Files.mjs +15 -15
  16. package/dist/InputText.mjs +42 -42
  17. package/dist/Label.mjs +1 -1
  18. package/dist/Modal.mjs +115 -119
  19. package/dist/Pagination.mjs +31 -29
  20. package/dist/PasswordInput.mjs +9 -9
  21. package/dist/Picker.mjs +23 -23
  22. package/dist/Radio.mjs +35 -35
  23. package/dist/RadioTab.mjs +1 -1
  24. package/dist/Search.mjs +123 -127
  25. package/dist/Select.mjs +301 -318
  26. package/dist/Slider.mjs +228 -224
  27. package/dist/Stack.mjs +15 -12
  28. package/dist/Swiper.mjs +126 -127
  29. package/dist/Tabs.mjs +1 -1
  30. package/dist/Tag.mjs +19 -19
  31. package/dist/Text.mjs +35 -37
  32. package/dist/Textarea.mjs +1 -1
  33. package/dist/TimePicker.mjs +61 -61
  34. package/dist/Toast.mjs +3 -3
  35. package/dist/Toggle.mjs +1 -1
  36. package/dist/Tooltip.mjs +1 -1
  37. package/dist/VariantIcon.mjs +14 -5
  38. package/dist/WuiProvider.mjs +35 -38
  39. package/dist/{field-styles-BVlRlvuu.mjs → field-styles-CfVLcVQp.mjs} +1 -1
  40. package/dist/{hex-to-rgba-DU_XzKIK.mjs → hex-to-rgba-BIDK-3ab.mjs} +2 -2
  41. package/dist/{index-5HBq1O6Z.mjs → index-62h-enZF.mjs} +31 -31
  42. package/dist/index-BhcLigYU.mjs +77 -0
  43. package/dist/theme.mjs +23 -23
  44. package/dist/throttle-BDBzFeFj.mjs +13 -0
  45. package/dist/types/components/Accordion/styles.d.ts +2 -2
  46. package/dist/types/components/Accordion/theme.d.ts +1 -1
  47. package/dist/types/components/Alert/styles.d.ts +9 -9
  48. package/dist/types/components/Alert/theme.d.ts +3 -3
  49. package/dist/types/components/AspectRatio/styles.d.ts +2 -3
  50. package/dist/types/components/Avatar/index.d.ts +2 -1
  51. package/dist/types/components/Avatar/styles.d.ts +8 -8
  52. package/dist/types/components/Avatar/theme.d.ts +2 -2
  53. package/dist/types/components/Avatar/utils.d.ts +1 -1
  54. package/dist/types/components/Badge/styles.d.ts +4 -4
  55. package/dist/types/components/Badge/theme.d.ts +1 -1
  56. package/dist/types/components/Breadcrumb/index.d.ts +1 -1
  57. package/dist/types/components/Breadcrumb/theme.d.ts +1 -1
  58. package/dist/types/components/Button/index.d.ts +1 -1
  59. package/dist/types/components/Button/styles.d.ts +1 -1
  60. package/dist/types/components/Button/theme.d.ts +3 -3
  61. package/dist/types/components/ButtonGroup/index.d.ts +2 -2
  62. package/dist/types/components/Card/Cover.styles.d.ts +4 -4
  63. package/dist/types/components/Card/theme.d.ts +1 -1
  64. package/dist/types/components/Checkbox/styles.d.ts +1 -1
  65. package/dist/types/components/Checkbox/theme.d.ts +1 -1
  66. package/dist/types/components/ClearButton/index.d.ts +4 -4
  67. package/dist/types/components/ClearButton/styles.d.ts +4 -4
  68. package/dist/types/components/CloseButton/styles.d.ts +4 -4
  69. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
  70. package/dist/types/components/DateTimePickerCommon/theme.d.ts +1 -1
  71. package/dist/types/components/DateTimePickerCommon/utils.d.ts +1 -1
  72. package/dist/types/components/Drawer/index.d.ts +5 -5
  73. package/dist/types/components/Drawer/styles.d.ts +4 -4
  74. package/dist/types/components/Drawer/theme.d.ts +2 -2
  75. package/dist/types/components/DropdownMenu/index.d.ts +1 -1
  76. package/dist/types/components/DropdownMenu/theme.d.ts +1 -1
  77. package/dist/types/components/Field/utils.d.ts +1 -1
  78. package/dist/types/components/FileDrop/index.d.ts +4 -4
  79. package/dist/types/components/FileDrop/theme.d.ts +1 -1
  80. package/dist/types/components/FileUpload/index.d.ts +2 -2
  81. package/dist/types/components/Files/index.d.ts +3 -3
  82. package/dist/types/components/Files/types.d.ts +1 -1
  83. package/dist/types/components/Hint/theme.d.ts +1 -1
  84. package/dist/types/components/Icon/theme.d.ts +2 -2
  85. package/dist/types/components/Icons/Sun/content.json.d.ts +1 -2
  86. package/dist/types/components/Label/theme.d.ts +1 -1
  87. package/dist/types/components/Link/index.d.ts +2 -2
  88. package/dist/types/components/Link/styles.d.ts +4 -4
  89. package/dist/types/components/Link/theme.d.ts +1 -1
  90. package/dist/types/components/Loader/styles.d.ts +4 -4
  91. package/dist/types/components/Loader/theme.d.ts +2 -2
  92. package/dist/types/components/Modal/Assets/Backdrop.d.ts +4 -4
  93. package/dist/types/components/Modal/Assets/index.d.ts +8 -8
  94. package/dist/types/components/Modal/Assets/styles.d.ts +8 -8
  95. package/dist/types/components/Modal/Close.d.ts +2 -2
  96. package/dist/types/components/Modal/Content.d.ts +5 -3
  97. package/dist/types/components/Modal/index.d.ts +10 -10
  98. package/dist/types/components/Modal/styles.d.ts +7 -7
  99. package/dist/types/components/Modal/theme.d.ts +1 -1
  100. package/dist/types/components/Pagination/theme.d.ts +1 -1
  101. package/dist/types/components/Picker/index.d.ts +1 -1
  102. package/dist/types/components/Picker/styles.d.ts +1 -1
  103. package/dist/types/components/Popover/styles.d.ts +4 -4
  104. package/dist/types/components/Popover/theme.d.ts +1 -1
  105. package/dist/types/components/Radio/index.d.ts +2 -2
  106. package/dist/types/components/Radio/styles.d.ts +5 -5
  107. package/dist/types/components/Radio/theme.d.ts +1 -1
  108. package/dist/types/components/RadioTab/index.d.ts +1 -1
  109. package/dist/types/components/RadioTab/styles.d.ts +10 -4
  110. package/dist/types/components/RadioTab/theme.d.ts +1 -1
  111. package/dist/types/components/Search/index.d.ts +1 -1
  112. package/dist/types/components/Select/index.d.ts +4 -4
  113. package/dist/types/components/Select/styles.d.ts +4 -4
  114. package/dist/types/components/Select/utils.d.ts +4 -8
  115. package/dist/types/components/Shape/styles.d.ts +3 -3
  116. package/dist/types/components/Slider/styles.d.ts +16 -16
  117. package/dist/types/components/Slider/theme.d.ts +1 -1
  118. package/dist/types/components/Swiper/index.d.ts +1 -1
  119. package/dist/types/components/Swiper/styles.d.ts +16 -16
  120. package/dist/types/components/Swiper/theme.d.ts +1 -1
  121. package/dist/types/components/System/index.d.ts +6 -6
  122. package/dist/types/components/Table/theme.d.ts +1 -1
  123. package/dist/types/components/Tabs/ActiveBar.d.ts +2 -2
  124. package/dist/types/components/Tabs/TabList.d.ts +2 -2
  125. package/dist/types/components/Tabs/styles.d.ts +2 -2
  126. package/dist/types/components/Tabs/theme.d.ts +1 -1
  127. package/dist/types/components/Tag/theme.d.ts +1 -1
  128. package/dist/types/components/Textarea/theme.d.ts +1 -1
  129. package/dist/types/components/Toast/ToastWrapper.d.ts +1 -1
  130. package/dist/types/components/Toast/index.d.ts +1 -1
  131. package/dist/types/components/Toast/styles.d.ts +14 -14
  132. package/dist/types/components/Toast/theme.d.ts +1 -1
  133. package/dist/types/components/Toggle/index.d.ts +2 -2
  134. package/dist/types/components/Toggle/styles.d.ts +4 -5
  135. package/dist/types/components/Toggle/theme.d.ts +1 -1
  136. package/dist/types/components/Tooltip/index.d.ts +2 -2
  137. package/dist/types/components/Tooltip/styles.d.ts +1 -1
  138. package/dist/types/components/Tooltip/theme.d.ts +1 -1
  139. package/dist/types/components/VariantIcon/theme.d.ts +1 -1
  140. package/dist/types/components/WuiProvider/font.d.ts +5 -3
  141. package/dist/types/components/WuiProvider/index.d.ts +1 -1
  142. package/dist/types/theme/colors.d.ts +9 -1
  143. package/dist/types/theme/defaultFields.d.ts +5 -5
  144. package/dist/types/theme/index.d.ts +2 -2
  145. package/dist/types/theme/screens.d.ts +7 -7
  146. package/dist/types/theme/space.d.ts +9 -9
  147. package/dist/types/theme/typography.d.ts +1 -1
  148. package/dist/types/utils/field-styles.d.ts +6 -6
  149. package/dist/types/utils/use-create-portal.d.ts +1 -1
  150. package/dist/types/utils/use-viewport.d.ts +2 -2
  151. package/dist/{use-fork-ref-DvaCTfQ_.mjs → use-fork-ref-CUZErtAC.mjs} +3 -4
  152. package/dist/utils.mjs +29 -102
  153. package/dist/wrap-children-CzmhoRzd.mjs +13 -0
  154. package/package.json +2 -2
  155. package/dist/throttle-CW18pWlW.mjs +0 -13
  156. package/dist/wrap-children-DBSD-X5-.mjs +0 -9
package/dist/FileDrop.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
  "use client";
2
2
  import { j as d } from "./jsx-runtime-B7I4PJ0H.mjs";
3
- import Aa, { forwardRef as Fa, useMemo as V, useRef as vi, useReducer as Oa, useEffect as ai, useCallback as E, useImperativeHandle as _a, Fragment as Pa, useState as Vi } from "react";
3
+ import Ai, { forwardRef as Fi, useMemo as V, useRef as va, useReducer as Oi, useEffect as ia, useCallback as z, useImperativeHandle as _i, Fragment as Pi, useState as Va } from "react";
4
4
  import { P as s } from "./index-DgSynio4.mjs";
5
- import { g as Ia } from "./_commonjsHelpers-CXJ7dpIk.mjs";
6
- import { Button as gi } from "./Button.mjs";
5
+ import { g as Ii } from "./_commonjsHelpers-CXJ7dpIk.mjs";
6
+ import { Button as ga } from "./Button.mjs";
7
7
  import "./Icon.mjs";
8
- import { P as Ra, N as Sa, E as qa, T as Ta } from "./index-D8v_VJ9z.mjs";
9
- import { shouldForwardProp as La, forwardRef as Ca } from "./System.mjs";
10
- import { c as Gi } from "./create-event-rXDe5aCQ.mjs";
11
- import { getFileIcon as $a, getFileSize as Ma, getFileName as sa } from "./Files.mjs";
12
- import { E as Ka } from "./index-DvzWKxKE.mjs";
13
- import { Text as bi } from "./Text.mjs";
14
- import ki, { th as P, css as Ii } from "@xstyled/styled-components";
15
- function H(i, a, t, n) {
8
+ import { P as Ri, N as Si, E as qi, T as Ti } from "./index-D8v_VJ9z.mjs";
9
+ import { shouldForwardProp as Ci, forwardRef as Li } from "./System.mjs";
10
+ import { c as Ga } from "./create-event-rXDe5aCQ.mjs";
11
+ import { getFileIcon as $i, getFileSize as Mi, getFileName as si } from "./Files.mjs";
12
+ import { E as Ki } from "./index-DvzWKxKE.mjs";
13
+ import { Text as ba } from "./Text.mjs";
14
+ import ka, { th as _, css as Ia } from "@xstyled/styled-components";
15
+ function H(a, i, t, n) {
16
16
  function e(o) {
17
17
  return o instanceof t ? o : new t(function(c) {
18
18
  c(o);
@@ -22,24 +22,24 @@ function H(i, a, t, n) {
22
22
  function r(x) {
23
23
  try {
24
24
  h(n.next(x));
25
- } catch (D) {
26
- c(D);
25
+ } catch (k) {
26
+ c(k);
27
27
  }
28
28
  }
29
29
  function v(x) {
30
30
  try {
31
31
  h(n.throw(x));
32
- } catch (D) {
33
- c(D);
32
+ } catch (k) {
33
+ c(k);
34
34
  }
35
35
  }
36
36
  function h(x) {
37
37
  x.done ? o(x.value) : e(x.value).then(r, v);
38
38
  }
39
- h((n = n.apply(i, a || [])).next());
39
+ h((n = n.apply(a, i || [])).next());
40
40
  });
41
41
  }
42
- const Ha = /* @__PURE__ */ new Map([
42
+ const Hi = /* @__PURE__ */ new Map([
43
43
  // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
44
44
  ["1km", "application/vnd.1000minds.decision-model+xml"],
45
45
  ["3dml", "text/vnd.in3d.3dml"],
@@ -1242,123 +1242,123 @@ const Ha = /* @__PURE__ */ new Map([
1242
1242
  ["zmm", "application/vnd.handheld-entertainment+xml"],
1243
1243
  ["zsh", "text/x-scriptzsh"]
1244
1244
  ]);
1245
- function G(i, a, t) {
1246
- const n = Wa(i), { webkitRelativePath: e } = i, o = typeof a == "string" ? a : typeof e == "string" && e.length > 0 ? e : `./${i.name}`;
1247
- return typeof n.path != "string" && Zi(n, "path", o), Zi(n, "relativePath", o), n;
1248
- }
1249
- function Wa(i) {
1250
- const { name: a } = i;
1251
- if (a && a.lastIndexOf(".") !== -1 && !i.type) {
1252
- const n = a.split(".").pop().toLowerCase(), e = Ha.get(n);
1253
- e && Object.defineProperty(i, "type", {
1245
+ function G(a, i, t) {
1246
+ const n = Wi(a), { webkitRelativePath: e } = a, o = typeof i == "string" ? i : typeof e == "string" && e.length > 0 ? e : `./${a.name}`;
1247
+ return typeof n.path != "string" && Za(n, "path", o), Za(n, "relativePath", o), n;
1248
+ }
1249
+ function Wi(a) {
1250
+ const { name: i } = a;
1251
+ if (i && i.lastIndexOf(".") !== -1 && !a.type) {
1252
+ const n = i.split(".").pop().toLowerCase(), e = Hi.get(n);
1253
+ e && Object.defineProperty(a, "type", {
1254
1254
  value: e,
1255
1255
  writable: !1,
1256
1256
  configurable: !1,
1257
1257
  enumerable: !0
1258
1258
  });
1259
1259
  }
1260
- return i;
1260
+ return a;
1261
1261
  }
1262
- function Zi(i, a, t) {
1263
- Object.defineProperty(i, a, {
1262
+ function Za(a, i, t) {
1263
+ Object.defineProperty(a, i, {
1264
1264
  value: t,
1265
1265
  writable: !1,
1266
1266
  configurable: !1,
1267
1267
  enumerable: !0
1268
1268
  });
1269
1269
  }
1270
- const Na = [
1270
+ const Bi = [
1271
1271
  // Thumbnail cache files for macOS and Windows
1272
1272
  ".DS_Store",
1273
1273
  // macOs
1274
1274
  "Thumbs.db"
1275
1275
  // Windows
1276
1276
  ];
1277
- function Ua(i) {
1277
+ function Ni(a) {
1278
1278
  return H(this, void 0, void 0, function* () {
1279
- return hi(i) && Ba(i.dataTransfer) ? Za(i.dataTransfer, i.type) : Ya(i) ? Va(i) : Array.isArray(i) && i.every((a) => "getFile" in a && typeof a.getFile == "function") ? Ga(i) : [];
1279
+ return ha(a) && Ui(a.dataTransfer) ? Zi(a.dataTransfer, a.type) : Yi(a) ? Vi(a) : Array.isArray(a) && a.every((i) => "getFile" in i && typeof i.getFile == "function") ? Gi(a) : [];
1280
1280
  });
1281
1281
  }
1282
- function Ba(i) {
1283
- return hi(i);
1282
+ function Ui(a) {
1283
+ return ha(a);
1284
1284
  }
1285
- function Ya(i) {
1286
- return hi(i) && hi(i.target);
1285
+ function Yi(a) {
1286
+ return ha(a) && ha(a.target);
1287
1287
  }
1288
- function hi(i) {
1289
- return typeof i == "object" && i !== null;
1288
+ function ha(a) {
1289
+ return typeof a == "object" && a !== null;
1290
1290
  }
1291
- function Va(i) {
1292
- return qi(i.target.files).map((a) => G(a));
1291
+ function Vi(a) {
1292
+ return qa(a.target.files).map((i) => G(i));
1293
1293
  }
1294
- function Ga(i) {
1294
+ function Gi(a) {
1295
1295
  return H(this, void 0, void 0, function* () {
1296
- return (yield Promise.all(i.map((t) => t.getFile()))).map((t) => G(t));
1296
+ return (yield Promise.all(a.map((t) => t.getFile()))).map((t) => G(t));
1297
1297
  });
1298
1298
  }
1299
- function Za(i, a) {
1299
+ function Zi(a, i) {
1300
1300
  return H(this, void 0, void 0, function* () {
1301
- if (i.items) {
1302
- const t = qi(i.items).filter((e) => e.kind === "file");
1303
- if (a !== "drop")
1301
+ if (a.items) {
1302
+ const t = qa(a.items).filter((e) => e.kind === "file");
1303
+ if (i !== "drop")
1304
1304
  return t;
1305
- const n = yield Promise.all(t.map(Ja));
1306
- return Ji(da(n));
1305
+ const n = yield Promise.all(t.map(Ji));
1306
+ return Ja(di(n));
1307
1307
  }
1308
- return Ji(qi(i.files).map((t) => G(t)));
1308
+ return Ja(qa(a.files).map((t) => G(t)));
1309
1309
  });
1310
1310
  }
1311
- function Ji(i) {
1312
- return i.filter((a) => Na.indexOf(a.name) === -1);
1311
+ function Ja(a) {
1312
+ return a.filter((i) => Bi.indexOf(i.name) === -1);
1313
1313
  }
1314
- function qi(i) {
1315
- if (i === null)
1314
+ function qa(a) {
1315
+ if (a === null)
1316
1316
  return [];
1317
- const a = [];
1318
- for (let t = 0; t < i.length; t++) {
1319
- const n = i[t];
1320
- a.push(n);
1317
+ const i = [];
1318
+ for (let t = 0; t < a.length; t++) {
1319
+ const n = a[t];
1320
+ i.push(n);
1321
1321
  }
1322
- return a;
1322
+ return i;
1323
1323
  }
1324
- function Ja(i) {
1325
- if (typeof i.webkitGetAsEntry != "function")
1326
- return Xi(i);
1327
- const a = i.webkitGetAsEntry();
1328
- return a && a.isDirectory ? ma(a) : Xi(i, a);
1324
+ function Ji(a) {
1325
+ if (typeof a.webkitGetAsEntry != "function")
1326
+ return Xa(a);
1327
+ const i = a.webkitGetAsEntry();
1328
+ return i && i.isDirectory ? mi(i) : Xa(a, i);
1329
1329
  }
1330
- function da(i) {
1331
- return i.reduce((a, t) => [
1332
- ...a,
1333
- ...Array.isArray(t) ? da(t) : [t]
1330
+ function di(a) {
1331
+ return a.reduce((i, t) => [
1332
+ ...i,
1333
+ ...Array.isArray(t) ? di(t) : [t]
1334
1334
  ], []);
1335
1335
  }
1336
- function Xi(i, a) {
1336
+ function Xa(a, i) {
1337
1337
  var t;
1338
- if (typeof i.getAsFileSystemHandle == "function")
1339
- return i.getAsFileSystemHandle().then((o) => H(this, void 0, void 0, function* () {
1338
+ if (typeof a.getAsFileSystemHandle == "function")
1339
+ return a.getAsFileSystemHandle().then((o) => H(this, void 0, void 0, function* () {
1340
1340
  const c = yield o.getFile();
1341
1341
  return c.handle = o, G(c);
1342
1342
  }));
1343
- const n = i.getAsFile();
1343
+ const n = a.getAsFile();
1344
1344
  if (!n)
1345
- return Promise.reject(`${i} is not a File`);
1346
- const e = G(n, (t = a == null ? void 0 : a.fullPath) !== null && t !== void 0 ? t : void 0);
1345
+ return Promise.reject(`${a} is not a File`);
1346
+ const e = G(n, (t = i == null ? void 0 : i.fullPath) !== null && t !== void 0 ? t : void 0);
1347
1347
  return Promise.resolve(e);
1348
1348
  }
1349
- function Xa(i) {
1349
+ function Xi(a) {
1350
1350
  return H(this, void 0, void 0, function* () {
1351
- return i.isDirectory ? ma(i) : Qa(i);
1351
+ return a.isDirectory ? mi(a) : Qi(a);
1352
1352
  });
1353
1353
  }
1354
- function ma(i) {
1355
- const a = i.createReader();
1354
+ function mi(a) {
1355
+ const i = a.createReader();
1356
1356
  return new Promise((t, n) => {
1357
1357
  const e = [];
1358
1358
  function o() {
1359
- a.readEntries((c) => H(this, void 0, void 0, function* () {
1359
+ i.readEntries((c) => H(this, void 0, void 0, function* () {
1360
1360
  if (c.length) {
1361
- const r = Promise.all(c.map(Xa));
1361
+ const r = Promise.all(c.map(Xi));
1362
1362
  e.push(r), o();
1363
1363
  } else
1364
1364
  try {
@@ -1374,100 +1374,100 @@ function ma(i) {
1374
1374
  o();
1375
1375
  });
1376
1376
  }
1377
- function Qa(i) {
1377
+ function Qi(a) {
1378
1378
  return H(this, void 0, void 0, function* () {
1379
- return new Promise((a, t) => {
1380
- i.file((n) => {
1381
- const e = G(n, i.fullPath);
1382
- a(e);
1379
+ return new Promise((i, t) => {
1380
+ a.file((n) => {
1381
+ const e = G(n, a.fullPath);
1382
+ i(e);
1383
1383
  }, (n) => {
1384
1384
  t(n);
1385
1385
  });
1386
1386
  });
1387
1387
  });
1388
1388
  }
1389
- var fi = {}, Qi;
1390
- function it() {
1391
- return Qi || (Qi = 1, fi.__esModule = !0, fi.default = function(i, a) {
1392
- if (i && a) {
1393
- var t = Array.isArray(a) ? a : a.split(",");
1389
+ var fa = {}, Qa;
1390
+ function at() {
1391
+ return Qa || (Qa = 1, fa.__esModule = !0, fa.default = function(a, i) {
1392
+ if (a && i) {
1393
+ var t = Array.isArray(i) ? i : i.split(",");
1394
1394
  if (t.length === 0)
1395
1395
  return !0;
1396
- var n = i.name || "", e = (i.type || "").toLowerCase(), o = e.replace(/\/.*$/, "");
1396
+ var n = a.name || "", e = (a.type || "").toLowerCase(), o = e.replace(/\/.*$/, "");
1397
1397
  return t.some(function(c) {
1398
1398
  var r = c.trim().toLowerCase();
1399
1399
  return r.charAt(0) === "." ? n.toLowerCase().endsWith(r) : r.endsWith("/*") ? o === r.replace(/\/.*$/, "") : e === r;
1400
1400
  });
1401
1401
  }
1402
1402
  return !0;
1403
- }), fi;
1403
+ }), fa;
1404
1404
  }
1405
- var at = it();
1406
- const Ri = /* @__PURE__ */ Ia(at);
1407
- function ia(i) {
1408
- return et(i) || nt(i) || va(i) || tt();
1405
+ var it = at();
1406
+ const Ra = /* @__PURE__ */ Ii(it);
1407
+ function ai(a) {
1408
+ return et(a) || nt(a) || vi(a) || tt();
1409
1409
  }
1410
1410
  function tt() {
1411
1411
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1412
1412
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1413
1413
  }
1414
- function nt(i) {
1415
- if (typeof Symbol < "u" && i[Symbol.iterator] != null || i["@@iterator"] != null) return Array.from(i);
1414
+ function nt(a) {
1415
+ if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
1416
1416
  }
1417
- function et(i) {
1418
- if (Array.isArray(i)) return Ti(i);
1417
+ function et(a) {
1418
+ if (Array.isArray(a)) return Ta(a);
1419
1419
  }
1420
- function aa(i, a) {
1421
- var t = Object.keys(i);
1420
+ function ii(a, i) {
1421
+ var t = Object.keys(a);
1422
1422
  if (Object.getOwnPropertySymbols) {
1423
- var n = Object.getOwnPropertySymbols(i);
1424
- a && (n = n.filter(function(e) {
1425
- return Object.getOwnPropertyDescriptor(i, e).enumerable;
1423
+ var n = Object.getOwnPropertySymbols(a);
1424
+ i && (n = n.filter(function(e) {
1425
+ return Object.getOwnPropertyDescriptor(a, e).enumerable;
1426
1426
  })), t.push.apply(t, n);
1427
1427
  }
1428
1428
  return t;
1429
1429
  }
1430
- function ta(i) {
1431
- for (var a = 1; a < arguments.length; a++) {
1432
- var t = arguments[a] != null ? arguments[a] : {};
1433
- a % 2 ? aa(Object(t), !0).forEach(function(n) {
1434
- ua(i, n, t[n]);
1435
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : aa(Object(t)).forEach(function(n) {
1436
- Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
1430
+ function ti(a) {
1431
+ for (var i = 1; i < arguments.length; i++) {
1432
+ var t = arguments[i] != null ? arguments[i] : {};
1433
+ i % 2 ? ii(Object(t), !0).forEach(function(n) {
1434
+ ui(a, n, t[n]);
1435
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : ii(Object(t)).forEach(function(n) {
1436
+ Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
1437
1437
  });
1438
1438
  }
1439
- return i;
1439
+ return a;
1440
1440
  }
1441
- function ua(i, a, t) {
1442
- return a in i ? Object.defineProperty(i, a, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[a] = t, i;
1441
+ function ui(a, i, t) {
1442
+ return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
1443
1443
  }
1444
- function ti(i, a) {
1445
- return ct(i) || ot(i, a) || va(i, a) || pt();
1444
+ function ta(a, i) {
1445
+ return ct(a) || ot(a, i) || vi(a, i) || pt();
1446
1446
  }
1447
1447
  function pt() {
1448
1448
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1449
1449
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1450
1450
  }
1451
- function va(i, a) {
1452
- if (i) {
1453
- if (typeof i == "string") return Ti(i, a);
1454
- var t = Object.prototype.toString.call(i).slice(8, -1);
1455
- if (t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set") return Array.from(i);
1456
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Ti(i, a);
1451
+ function vi(a, i) {
1452
+ if (a) {
1453
+ if (typeof a == "string") return Ta(a, i);
1454
+ var t = Object.prototype.toString.call(a).slice(8, -1);
1455
+ if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
1456
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Ta(a, i);
1457
1457
  }
1458
1458
  }
1459
- function Ti(i, a) {
1460
- (a == null || a > i.length) && (a = i.length);
1461
- for (var t = 0, n = new Array(a); t < a; t++)
1462
- n[t] = i[t];
1459
+ function Ta(a, i) {
1460
+ (i == null || i > a.length) && (i = a.length);
1461
+ for (var t = 0, n = new Array(i); t < i; t++)
1462
+ n[t] = a[t];
1463
1463
  return n;
1464
1464
  }
1465
- function ot(i, a) {
1466
- var t = i == null ? null : typeof Symbol < "u" && i[Symbol.iterator] || i["@@iterator"];
1465
+ function ot(a, i) {
1466
+ var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1467
1467
  if (t != null) {
1468
1468
  var n = [], e = !0, o = !1, c, r;
1469
1469
  try {
1470
- for (t = t.call(i); !(e = (c = t.next()).done) && (n.push(c.value), !(a && n.length === a)); e = !0)
1470
+ for (t = t.call(a); !(e = (c = t.next()).done) && (n.push(c.value), !(i && n.length === i)); e = !0)
1471
1471
  ;
1472
1472
  } catch (v) {
1473
1473
  o = !0, r = v;
@@ -1481,168 +1481,168 @@ function ot(i, a) {
1481
1481
  return n;
1482
1482
  }
1483
1483
  }
1484
- function ct(i) {
1485
- if (Array.isArray(i)) return i;
1484
+ function ct(a) {
1485
+ if (Array.isArray(a)) return a;
1486
1486
  }
1487
- var lt = typeof Ri == "function" ? Ri : Ri.default, rt = "file-invalid-type", st = "file-too-large", dt = "file-too-small", mt = "too-many-files", ut = function() {
1488
- var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = a.split(","), n = t.length > 1 ? "one of ".concat(t.join(", ")) : t[0];
1487
+ var lt = typeof Ra == "function" ? Ra : Ra.default, rt = "file-invalid-type", st = "file-too-large", dt = "file-too-small", mt = "too-many-files", ut = function() {
1488
+ var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = i.split(","), n = t.length > 1 ? "one of ".concat(t.join(", ")) : t[0];
1489
1489
  return {
1490
1490
  code: rt,
1491
1491
  message: "File type must be ".concat(n)
1492
1492
  };
1493
- }, na = function(a) {
1493
+ }, ni = function(i) {
1494
1494
  return {
1495
1495
  code: st,
1496
- message: "File is larger than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
1496
+ message: "File is larger than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
1497
1497
  };
1498
- }, ea = function(a) {
1498
+ }, ei = function(i) {
1499
1499
  return {
1500
1500
  code: dt,
1501
- message: "File is smaller than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
1501
+ message: "File is smaller than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
1502
1502
  };
1503
1503
  }, vt = {
1504
1504
  code: mt,
1505
1505
  message: "Too many files"
1506
1506
  };
1507
- function fa(i, a) {
1508
- var t = i.type === "application/x-moz-file" || lt(i, a);
1509
- return [t, t ? null : ut(a)];
1510
- }
1511
- function xa(i, a, t) {
1512
- if (K(i.size))
1513
- if (K(a) && K(t)) {
1514
- if (i.size > t) return [!1, na(t)];
1515
- if (i.size < a) return [!1, ea(a)];
1507
+ function fi(a, i) {
1508
+ var t = a.type === "application/x-moz-file" || lt(a, i);
1509
+ return [t, t ? null : ut(i)];
1510
+ }
1511
+ function xi(a, i, t) {
1512
+ if (K(a.size))
1513
+ if (K(i) && K(t)) {
1514
+ if (a.size > t) return [!1, ni(t)];
1515
+ if (a.size < i) return [!1, ei(i)];
1516
1516
  } else {
1517
- if (K(a) && i.size < a) return [!1, ea(a)];
1518
- if (K(t) && i.size > t) return [!1, na(t)];
1517
+ if (K(i) && a.size < i) return [!1, ei(i)];
1518
+ if (K(t) && a.size > t) return [!1, ni(t)];
1519
1519
  }
1520
1520
  return [!0, null];
1521
1521
  }
1522
- function K(i) {
1523
- return i != null;
1522
+ function K(a) {
1523
+ return a != null;
1524
1524
  }
1525
- function ft(i) {
1526
- var a = i.files, t = i.accept, n = i.minSize, e = i.maxSize, o = i.multiple, c = i.maxFiles, r = i.validator;
1527
- return !o && a.length > 1 || o && c >= 1 && a.length > c ? !1 : a.every(function(v) {
1528
- var h = fa(v, t), x = ti(h, 1), D = x[0], I = xa(v, n, e), R = ti(I, 1), y = R[0], z = r ? r(v) : null;
1529
- return D && y && !z;
1525
+ function ft(a) {
1526
+ var i = a.files, t = a.accept, n = a.minSize, e = a.maxSize, o = a.multiple, c = a.maxFiles, r = a.validator;
1527
+ return !o && i.length > 1 || o && c >= 1 && i.length > c ? !1 : i.every(function(v) {
1528
+ var h = fi(v, t), x = ta(h, 1), k = x[0], P = xi(v, n, e), R = ta(P, 1), j = R[0], I = r ? r(v) : null;
1529
+ return k && j && !I;
1530
1530
  });
1531
1531
  }
1532
- function yi(i) {
1533
- return typeof i.isPropagationStopped == "function" ? i.isPropagationStopped() : typeof i.cancelBubble < "u" ? i.cancelBubble : !1;
1532
+ function ya(a) {
1533
+ return typeof a.isPropagationStopped == "function" ? a.isPropagationStopped() : typeof a.cancelBubble < "u" ? a.cancelBubble : !1;
1534
1534
  }
1535
- function xi(i) {
1536
- return i.dataTransfer ? Array.prototype.some.call(i.dataTransfer.types, function(a) {
1537
- return a === "Files" || a === "application/x-moz-file";
1538
- }) : !!i.target && !!i.target.files;
1535
+ function xa(a) {
1536
+ return a.dataTransfer ? Array.prototype.some.call(a.dataTransfer.types, function(i) {
1537
+ return i === "Files" || i === "application/x-moz-file";
1538
+ }) : !!a.target && !!a.target.files;
1539
1539
  }
1540
- function pa(i) {
1541
- i.preventDefault();
1540
+ function pi(a) {
1541
+ a.preventDefault();
1542
1542
  }
1543
- function xt(i) {
1544
- return i.indexOf("MSIE") !== -1 || i.indexOf("Trident/") !== -1;
1543
+ function xt(a) {
1544
+ return a.indexOf("MSIE") !== -1 || a.indexOf("Trident/") !== -1;
1545
1545
  }
1546
- function gt(i) {
1547
- return i.indexOf("Edge/") !== -1;
1546
+ function gt(a) {
1547
+ return a.indexOf("Edge/") !== -1;
1548
1548
  }
1549
1549
  function bt() {
1550
- var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1551
- return xt(i) || gt(i);
1550
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1551
+ return xt(a) || gt(a);
1552
1552
  }
1553
- function _() {
1554
- for (var i = arguments.length, a = new Array(i), t = 0; t < i; t++)
1555
- a[t] = arguments[t];
1553
+ function O() {
1554
+ for (var a = arguments.length, i = new Array(a), t = 0; t < a; t++)
1555
+ i[t] = arguments[t];
1556
1556
  return function(n) {
1557
1557
  for (var e = arguments.length, o = new Array(e > 1 ? e - 1 : 0), c = 1; c < e; c++)
1558
1558
  o[c - 1] = arguments[c];
1559
- return a.some(function(r) {
1560
- return !yi(n) && r && r.apply(void 0, [n].concat(o)), yi(n);
1559
+ return i.some(function(r) {
1560
+ return !ya(n) && r && r.apply(void 0, [n].concat(o)), ya(n);
1561
1561
  });
1562
1562
  };
1563
1563
  }
1564
1564
  function ht() {
1565
1565
  return "showOpenFilePicker" in window;
1566
1566
  }
1567
- function yt(i) {
1568
- if (K(i)) {
1569
- var a = Object.entries(i).filter(function(t) {
1570
- var n = ti(t, 2), e = n[0], o = n[1], c = !0;
1571
- return ga(e) || (console.warn('Skipped "'.concat(e, '" 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(ba)) && (console.warn('Skipped "'.concat(e, '" because an invalid file extension was provided.')), c = !1), c;
1567
+ function yt(a) {
1568
+ if (K(a)) {
1569
+ var i = Object.entries(a).filter(function(t) {
1570
+ var n = ta(t, 2), e = n[0], o = n[1], c = !0;
1571
+ return gi(e) || (console.warn('Skipped "'.concat(e, '" 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(bi)) && (console.warn('Skipped "'.concat(e, '" because an invalid file extension was provided.')), c = !1), c;
1572
1572
  }).reduce(function(t, n) {
1573
- var e = ti(n, 2), o = e[0], c = e[1];
1574
- return ta(ta({}, t), {}, ua({}, o, c));
1573
+ var e = ta(n, 2), o = e[0], c = e[1];
1574
+ return ti(ti({}, t), {}, ui({}, o, c));
1575
1575
  }, {});
1576
1576
  return [{
1577
1577
  // description is required due to https://crbug.com/1264708
1578
1578
  description: "Files",
1579
- accept: a
1579
+ accept: i
1580
1580
  }];
1581
1581
  }
1582
- return i;
1582
+ return a;
1583
1583
  }
1584
- function wt(i) {
1585
- if (K(i))
1586
- return Object.entries(i).reduce(function(a, t) {
1587
- var n = ti(t, 2), e = n[0], o = n[1];
1588
- return [].concat(ia(a), [e], ia(o));
1589
- }, []).filter(function(a) {
1590
- return ga(a) || ba(a);
1584
+ function wt(a) {
1585
+ if (K(a))
1586
+ return Object.entries(a).reduce(function(i, t) {
1587
+ var n = ta(t, 2), e = n[0], o = n[1];
1588
+ return [].concat(ai(i), [e], ai(o));
1589
+ }, []).filter(function(i) {
1590
+ return gi(i) || bi(i);
1591
1591
  }).join(",");
1592
1592
  }
1593
- function kt(i) {
1594
- return i instanceof DOMException && (i.name === "AbortError" || i.code === i.ABORT_ERR);
1593
+ function kt(a) {
1594
+ return a instanceof DOMException && (a.name === "AbortError" || a.code === a.ABORT_ERR);
1595
1595
  }
1596
- function jt(i) {
1597
- return i instanceof DOMException && (i.name === "SecurityError" || i.code === i.SECURITY_ERR);
1596
+ function jt(a) {
1597
+ return a instanceof DOMException && (a.name === "SecurityError" || a.code === a.SECURITY_ERR);
1598
1598
  }
1599
- function ga(i) {
1600
- return i === "audio/*" || i === "video/*" || i === "image/*" || i === "text/*" || i === "application/*" || /\w+\/[-+.\w]+/g.test(i);
1599
+ function gi(a) {
1600
+ return a === "audio/*" || a === "video/*" || a === "image/*" || a === "text/*" || a === "application/*" || /\w+\/[-+.\w]+/g.test(a);
1601
1601
  }
1602
- function ba(i) {
1603
- return /^.*\.[\w]+$/.test(i);
1602
+ function bi(a) {
1603
+ return /^.*\.[\w]+$/.test(a);
1604
1604
  }
1605
1605
  var Dt = ["children"], zt = ["open"], Et = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], At = ["refKey", "onChange", "onClick"];
1606
- function Ft(i) {
1607
- return Pt(i) || _t(i) || ha(i) || Ot();
1606
+ function Ft(a) {
1607
+ return Pt(a) || _t(a) || hi(a) || Ot();
1608
1608
  }
1609
1609
  function Ot() {
1610
1610
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1611
1611
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1612
1612
  }
1613
- function _t(i) {
1614
- if (typeof Symbol < "u" && i[Symbol.iterator] != null || i["@@iterator"] != null) return Array.from(i);
1613
+ function _t(a) {
1614
+ if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
1615
1615
  }
1616
- function Pt(i) {
1617
- if (Array.isArray(i)) return Li(i);
1616
+ function Pt(a) {
1617
+ if (Array.isArray(a)) return Ca(a);
1618
1618
  }
1619
- function Si(i, a) {
1620
- return St(i) || Rt(i, a) || ha(i, a) || It();
1619
+ function Sa(a, i) {
1620
+ return St(a) || Rt(a, i) || hi(a, i) || It();
1621
1621
  }
1622
1622
  function It() {
1623
1623
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1624
1624
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1625
1625
  }
1626
- function ha(i, a) {
1627
- if (i) {
1628
- if (typeof i == "string") return Li(i, a);
1629
- var t = Object.prototype.toString.call(i).slice(8, -1);
1630
- if (t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set") return Array.from(i);
1631
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Li(i, a);
1626
+ function hi(a, i) {
1627
+ if (a) {
1628
+ if (typeof a == "string") return Ca(a, i);
1629
+ var t = Object.prototype.toString.call(a).slice(8, -1);
1630
+ if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
1631
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Ca(a, i);
1632
1632
  }
1633
1633
  }
1634
- function Li(i, a) {
1635
- (a == null || a > i.length) && (a = i.length);
1636
- for (var t = 0, n = new Array(a); t < a; t++)
1637
- n[t] = i[t];
1634
+ function Ca(a, i) {
1635
+ (i == null || i > a.length) && (i = a.length);
1636
+ for (var t = 0, n = new Array(i); t < i; t++)
1637
+ n[t] = a[t];
1638
1638
  return n;
1639
1639
  }
1640
- function Rt(i, a) {
1641
- var t = i == null ? null : typeof Symbol < "u" && i[Symbol.iterator] || i["@@iterator"];
1640
+ function Rt(a, i) {
1641
+ var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1642
1642
  if (t != null) {
1643
1643
  var n = [], e = !0, o = !1, c, r;
1644
1644
  try {
1645
- for (t = t.call(i); !(e = (c = t.next()).done) && (n.push(c.value), !(a && n.length === a)); e = !0)
1645
+ for (t = t.call(a); !(e = (c = t.next()).done) && (n.push(c.value), !(i && n.length === i)); e = !0)
1646
1646
  ;
1647
1647
  } catch (v) {
1648
1648
  o = !0, r = v;
@@ -1656,64 +1656,64 @@ function Rt(i, a) {
1656
1656
  return n;
1657
1657
  }
1658
1658
  }
1659
- function St(i) {
1660
- if (Array.isArray(i)) return i;
1659
+ function St(a) {
1660
+ if (Array.isArray(a)) return a;
1661
1661
  }
1662
- function oa(i, a) {
1663
- var t = Object.keys(i);
1662
+ function oi(a, i) {
1663
+ var t = Object.keys(a);
1664
1664
  if (Object.getOwnPropertySymbols) {
1665
- var n = Object.getOwnPropertySymbols(i);
1666
- a && (n = n.filter(function(e) {
1667
- return Object.getOwnPropertyDescriptor(i, e).enumerable;
1665
+ var n = Object.getOwnPropertySymbols(a);
1666
+ i && (n = n.filter(function(e) {
1667
+ return Object.getOwnPropertyDescriptor(a, e).enumerable;
1668
1668
  })), t.push.apply(t, n);
1669
1669
  }
1670
1670
  return t;
1671
1671
  }
1672
- function u(i) {
1673
- for (var a = 1; a < arguments.length; a++) {
1674
- var t = arguments[a] != null ? arguments[a] : {};
1675
- a % 2 ? oa(Object(t), !0).forEach(function(n) {
1676
- Ci(i, n, t[n]);
1677
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : oa(Object(t)).forEach(function(n) {
1678
- Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
1672
+ function u(a) {
1673
+ for (var i = 1; i < arguments.length; i++) {
1674
+ var t = arguments[i] != null ? arguments[i] : {};
1675
+ i % 2 ? oi(Object(t), !0).forEach(function(n) {
1676
+ La(a, n, t[n]);
1677
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : oi(Object(t)).forEach(function(n) {
1678
+ Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
1679
1679
  });
1680
1680
  }
1681
- return i;
1681
+ return a;
1682
1682
  }
1683
- function Ci(i, a, t) {
1684
- return a in i ? Object.defineProperty(i, a, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[a] = t, i;
1683
+ function La(a, i, t) {
1684
+ return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
1685
1685
  }
1686
- function wi(i, a) {
1687
- if (i == null) return {};
1688
- var t = qt(i, a), n, e;
1686
+ function wa(a, i) {
1687
+ if (a == null) return {};
1688
+ var t = qt(a, i), n, e;
1689
1689
  if (Object.getOwnPropertySymbols) {
1690
- var o = Object.getOwnPropertySymbols(i);
1690
+ var o = Object.getOwnPropertySymbols(a);
1691
1691
  for (e = 0; e < o.length; e++)
1692
- n = o[e], !(a.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(i, n) && (t[n] = i[n]);
1692
+ n = o[e], !(i.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(a, n) && (t[n] = a[n]);
1693
1693
  }
1694
1694
  return t;
1695
1695
  }
1696
- function qt(i, a) {
1697
- if (i == null) return {};
1698
- var t = {}, n = Object.keys(i), e, o;
1696
+ function qt(a, i) {
1697
+ if (a == null) return {};
1698
+ var t = {}, n = Object.keys(a), e, o;
1699
1699
  for (o = 0; o < n.length; o++)
1700
- e = n[o], !(a.indexOf(e) >= 0) && (t[e] = i[e]);
1700
+ e = n[o], !(i.indexOf(e) >= 0) && (t[e] = a[e]);
1701
1701
  return t;
1702
1702
  }
1703
- var ji = /* @__PURE__ */ Fa(function(i, a) {
1704
- var t = i.children, n = wi(i, Dt), e = wa(n), o = e.open, c = wi(e, zt);
1705
- return _a(a, function() {
1703
+ var ja = /* @__PURE__ */ Fi(function(a, i) {
1704
+ var t = a.children, n = wa(a, Dt), e = wi(n), o = e.open, c = wa(e, zt);
1705
+ return _i(i, function() {
1706
1706
  return {
1707
1707
  open: o
1708
1708
  };
1709
- }, [o]), /* @__PURE__ */ Aa.createElement(Pa, null, t(u(u({}, c), {}, {
1709
+ }, [o]), /* @__PURE__ */ Ai.createElement(Pi, null, t(u(u({}, c), {}, {
1710
1710
  open: o
1711
1711
  })));
1712
1712
  });
1713
- ji.displayName = "Dropzone";
1714
- var ya = {
1713
+ ja.displayName = "Dropzone";
1714
+ var yi = {
1715
1715
  disabled: !1,
1716
- getFilesFromEvent: Ua,
1716
+ getFilesFromEvent: Ni,
1717
1717
  maxSize: 1 / 0,
1718
1718
  minSize: 0,
1719
1719
  multiple: !0,
@@ -1727,8 +1727,8 @@ var ya = {
1727
1727
  useFsAccessApi: !1,
1728
1728
  autoFocus: !1
1729
1729
  };
1730
- ji.defaultProps = ya;
1731
- ji.propTypes = {
1730
+ ja.defaultProps = yi;
1731
+ ja.propTypes = {
1732
1732
  /**
1733
1733
  * Render function that exposes the dropzone state and prop getter fns
1734
1734
  *
@@ -1896,7 +1896,7 @@ ji.propTypes = {
1896
1896
  */
1897
1897
  validator: s.func
1898
1898
  };
1899
- var $i = {
1899
+ var $a = {
1900
1900
  isFocused: !1,
1901
1901
  isFileDialogActive: !1,
1902
1902
  isDragActive: !1,
@@ -1905,58 +1905,58 @@ var $i = {
1905
1905
  acceptedFiles: [],
1906
1906
  fileRejections: []
1907
1907
  };
1908
- function wa() {
1909
- var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = u(u({}, ya), i), t = a.accept, n = a.disabled, e = a.getFilesFromEvent, o = a.maxSize, c = a.minSize, r = a.multiple, v = a.maxFiles, h = a.onDragEnter, x = a.onDragLeave, D = a.onDragOver, I = a.onDrop, R = a.onDropAccepted, y = a.onDropRejected, z = a.onFileDialogCancel, T = a.onFileDialogOpen, ni = a.useFsAccessApi, ei = a.autoFocus, Z = a.preventDropOnDocument, k = a.noClick, S = a.noKeyboard, W = a.noDrag, A = a.noDragEventsBubbling, J = a.onError, L = a.validator, C = V(function() {
1908
+ function wi() {
1909
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = u(u({}, yi), a), t = i.accept, n = i.disabled, e = i.getFilesFromEvent, o = i.maxSize, c = i.minSize, r = i.multiple, v = i.maxFiles, h = i.onDragEnter, x = i.onDragLeave, k = i.onDragOver, P = i.onDrop, R = i.onDropAccepted, j = i.onDropRejected, I = i.onFileDialogCancel, T = i.onFileDialogOpen, na = i.useFsAccessApi, ea = i.autoFocus, Z = i.preventDropOnDocument, D = i.noClick, S = i.noKeyboard, W = i.noDrag, E = i.noDragEventsBubbling, J = i.onError, C = i.validator, L = V(function() {
1910
1910
  return wt(t);
1911
- }, [t]), pi = V(function() {
1911
+ }, [t]), pa = V(function() {
1912
1912
  return yt(t);
1913
1913
  }, [t]), X = V(function() {
1914
- return typeof T == "function" ? T : ca;
1914
+ return typeof T == "function" ? T : ci;
1915
1915
  }, [T]), $ = V(function() {
1916
- return typeof z == "function" ? z : ca;
1917
- }, [z]), b = vi(null), w = vi(null), oi = Oa(Tt, $i), ci = Si(oi, 2), F = ci[0], m = ci[1], O = F.isFocused, li = F.isFileDialogActive, N = vi(typeof window < "u" && window.isSecureContext && ni && ht()), Q = function() {
1918
- !N.current && li && setTimeout(function() {
1919
- if (w.current) {
1920
- var l = w.current.files;
1916
+ return typeof I == "function" ? I : ci;
1917
+ }, [I]), b = va(null), y = va(null), oa = Oi(Tt, $a), ca = Sa(oa, 2), A = ca[0], m = ca[1], F = A.isFocused, la = A.isFileDialogActive, B = va(typeof window < "u" && window.isSecureContext && na && ht()), Q = function() {
1918
+ !B.current && la && setTimeout(function() {
1919
+ if (y.current) {
1920
+ var l = y.current.files;
1921
1921
  l.length || (m({
1922
1922
  type: "closeDialog"
1923
1923
  }), $());
1924
1924
  }
1925
1925
  }, 300);
1926
1926
  };
1927
- ai(function() {
1927
+ ia(function() {
1928
1928
  return window.addEventListener("focus", Q, !1), function() {
1929
1929
  window.removeEventListener("focus", Q, !1);
1930
1930
  };
1931
- }, [w, li, $, N]);
1932
- var q = vi([]), Mi = function(l) {
1931
+ }, [y, la, $, B]);
1932
+ var q = va([]), Ma = function(l) {
1933
1933
  b.current && b.current.contains(l.target) || (l.preventDefault(), q.current = []);
1934
1934
  };
1935
- ai(function() {
1936
- return Z && (document.addEventListener("dragover", pa, !1), document.addEventListener("drop", Mi, !1)), function() {
1937
- Z && (document.removeEventListener("dragover", pa), document.removeEventListener("drop", Mi));
1935
+ ia(function() {
1936
+ return Z && (document.addEventListener("dragover", pi, !1), document.addEventListener("drop", Ma, !1)), function() {
1937
+ Z && (document.removeEventListener("dragover", pi), document.removeEventListener("drop", Ma));
1938
1938
  };
1939
- }, [b, Z]), ai(function() {
1940
- return !n && ei && b.current && b.current.focus(), function() {
1939
+ }, [b, Z]), ia(function() {
1940
+ return !n && ea && b.current && b.current.focus(), function() {
1941
1941
  };
1942
- }, [b, ei, n]);
1943
- var M = E(function(p) {
1942
+ }, [b, ea, n]);
1943
+ var M = z(function(p) {
1944
1944
  J ? J(p) : console.error(p);
1945
- }, [J]), Ki = E(function(p) {
1946
- p.preventDefault(), p.persist(), mi(p), q.current = [].concat(Ft(q.current), [p.target]), xi(p) && Promise.resolve(e(p)).then(function(l) {
1947
- if (!(yi(p) && !A)) {
1945
+ }, [J]), Ka = z(function(p) {
1946
+ p.preventDefault(), p.persist(), ma(p), q.current = [].concat(Ft(q.current), [p.target]), xa(p) && Promise.resolve(e(p)).then(function(l) {
1947
+ if (!(ya(p) && !E)) {
1948
1948
  var f = l.length, g = f > 0 && ft({
1949
1949
  files: l,
1950
- accept: C,
1950
+ accept: L,
1951
1951
  minSize: c,
1952
1952
  maxSize: o,
1953
1953
  multiple: r,
1954
1954
  maxFiles: v,
1955
- validator: L
1956
- }), j = f > 0 && !g;
1955
+ validator: C
1956
+ }), w = f > 0 && !g;
1957
1957
  m({
1958
1958
  isDragAccept: g,
1959
- isDragReject: j,
1959
+ isDragReject: w,
1960
1960
  isDragActive: !0,
1961
1961
  type: "setDraggedFiles"
1962
1962
  }), h && h(p);
@@ -1964,17 +1964,17 @@ function wa() {
1964
1964
  }).catch(function(l) {
1965
1965
  return M(l);
1966
1966
  });
1967
- }, [e, h, M, A, C, c, o, r, v, L]), Hi = E(function(p) {
1968
- p.preventDefault(), p.persist(), mi(p);
1969
- var l = xi(p);
1967
+ }, [e, h, M, E, L, c, o, r, v, C]), Ha = z(function(p) {
1968
+ p.preventDefault(), p.persist(), ma(p);
1969
+ var l = xa(p);
1970
1970
  if (l && p.dataTransfer)
1971
1971
  try {
1972
1972
  p.dataTransfer.dropEffect = "copy";
1973
1973
  } catch {
1974
1974
  }
1975
- return l && D && D(p), !1;
1976
- }, [D, A]), Wi = E(function(p) {
1977
- p.preventDefault(), p.persist(), mi(p);
1975
+ return l && k && k(p), !1;
1976
+ }, [k, E]), Wa = z(function(p) {
1977
+ p.preventDefault(), p.persist(), ma(p);
1978
1978
  var l = q.current.filter(function(g) {
1979
1979
  return b.current && b.current.contains(g);
1980
1980
  }), f = l.indexOf(p.target);
@@ -1983,25 +1983,25 @@ function wa() {
1983
1983
  isDragActive: !1,
1984
1984
  isDragAccept: !1,
1985
1985
  isDragReject: !1
1986
- }), xi(p) && x && x(p));
1987
- }, [b, x, A]), ri = E(function(p, l) {
1986
+ }), xa(p) && x && x(p));
1987
+ }, [b, x, E]), ra = z(function(p, l) {
1988
1988
  var f = [], g = [];
1989
- p.forEach(function(j) {
1990
- var ii = fa(j, C), Y = Si(ii, 2), zi = Y[0], Ei = Y[1], Ai = xa(j, c, o), ui = Si(Ai, 2), Fi = ui[0], Oi = ui[1], _i = L ? L(j) : null;
1991
- if (zi && Fi && !_i)
1992
- f.push(j);
1989
+ p.forEach(function(w) {
1990
+ var aa = fi(w, L), Y = Sa(aa, 2), za = Y[0], Ea = Y[1], Aa = xi(w, c, o), ua = Sa(Aa, 2), Fa = ua[0], Oa = ua[1], _a = C ? C(w) : null;
1991
+ if (za && Fa && !_a)
1992
+ f.push(w);
1993
1993
  else {
1994
- var Pi = [Ei, Oi];
1995
- _i && (Pi = Pi.concat(_i)), g.push({
1996
- file: j,
1997
- errors: Pi.filter(function(Ea) {
1998
- return Ea;
1994
+ var Pa = [Ea, Oa];
1995
+ _a && (Pa = Pa.concat(_a)), g.push({
1996
+ file: w,
1997
+ errors: Pa.filter(function(Ei) {
1998
+ return Ei;
1999
1999
  })
2000
2000
  });
2001
2001
  }
2002
- }), (!r && f.length > 1 || r && v >= 1 && f.length > v) && (f.forEach(function(j) {
2002
+ }), (!r && f.length > 1 || r && v >= 1 && f.length > v) && (f.forEach(function(w) {
2003
2003
  g.push({
2004
- file: j,
2004
+ file: w,
2005
2005
  errors: [vt]
2006
2006
  });
2007
2007
  }), f.splice(0)), m({
@@ -2009,83 +2009,83 @@ function wa() {
2009
2009
  fileRejections: g,
2010
2010
  isDragReject: g.length > 0,
2011
2011
  type: "setFiles"
2012
- }), I && I(f, g, l), g.length > 0 && y && y(g, l), f.length > 0 && R && R(f, l);
2013
- }, [m, r, C, c, o, v, I, R, y, L]), si = E(function(p) {
2014
- p.preventDefault(), p.persist(), mi(p), q.current = [], xi(p) && Promise.resolve(e(p)).then(function(l) {
2015
- yi(p) && !A || ri(l, p);
2012
+ }), P && P(f, g, l), g.length > 0 && j && j(g, l), f.length > 0 && R && R(f, l);
2013
+ }, [m, r, L, c, o, v, P, R, j, C]), sa = z(function(p) {
2014
+ p.preventDefault(), p.persist(), ma(p), q.current = [], xa(p) && Promise.resolve(e(p)).then(function(l) {
2015
+ ya(p) && !E || ra(l, p);
2016
2016
  }).catch(function(l) {
2017
2017
  return M(l);
2018
2018
  }), m({
2019
2019
  type: "reset"
2020
2020
  });
2021
- }, [e, ri, M, A]), U = E(function() {
2022
- if (N.current) {
2021
+ }, [e, ra, M, E]), N = z(function() {
2022
+ if (B.current) {
2023
2023
  m({
2024
2024
  type: "openDialog"
2025
2025
  }), X();
2026
2026
  var p = {
2027
2027
  multiple: r,
2028
- types: pi
2028
+ types: pa
2029
2029
  };
2030
2030
  window.showOpenFilePicker(p).then(function(l) {
2031
2031
  return e(l);
2032
2032
  }).then(function(l) {
2033
- ri(l, null), m({
2033
+ ra(l, null), m({
2034
2034
  type: "closeDialog"
2035
2035
  });
2036
2036
  }).catch(function(l) {
2037
2037
  kt(l) ? ($(l), m({
2038
2038
  type: "closeDialog"
2039
- })) : jt(l) ? (N.current = !1, w.current ? (w.current.value = null, w.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);
2039
+ })) : jt(l) ? (B.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);
2040
2040
  });
2041
2041
  return;
2042
2042
  }
2043
- w.current && (m({
2043
+ y.current && (m({
2044
2044
  type: "openDialog"
2045
- }), X(), w.current.value = null, w.current.click());
2046
- }, [m, X, $, ni, ri, M, pi, r]), Ni = E(function(p) {
2047
- !b.current || !b.current.isEqualNode(p.target) || (p.key === " " || p.key === "Enter" || p.keyCode === 32 || p.keyCode === 13) && (p.preventDefault(), U());
2048
- }, [b, U]), Ui = E(function() {
2045
+ }), X(), y.current.value = null, y.current.click());
2046
+ }, [m, X, $, na, ra, M, pa, r]), Ba = z(function(p) {
2047
+ !b.current || !b.current.isEqualNode(p.target) || (p.key === " " || p.key === "Enter" || p.keyCode === 32 || p.keyCode === 13) && (p.preventDefault(), N());
2048
+ }, [b, N]), Na = z(function() {
2049
2049
  m({
2050
2050
  type: "focus"
2051
2051
  });
2052
- }, []), Bi = E(function() {
2052
+ }, []), Ua = z(function() {
2053
2053
  m({
2054
2054
  type: "blur"
2055
2055
  });
2056
- }, []), Yi = E(function() {
2057
- k || (bt() ? setTimeout(U, 0) : U());
2058
- }, [k, U]), B = function(l) {
2056
+ }, []), Ya = z(function() {
2057
+ D || (bt() ? setTimeout(N, 0) : N());
2058
+ }, [D, N]), U = function(l) {
2059
2059
  return n ? null : l;
2060
- }, Di = function(l) {
2061
- return S ? null : B(l);
2062
- }, di = function(l) {
2063
- return W ? null : B(l);
2064
- }, mi = function(l) {
2065
- A && l.stopPropagation();
2066
- }, ja = V(function() {
2060
+ }, Da = function(l) {
2061
+ return S ? null : U(l);
2062
+ }, da = function(l) {
2063
+ return W ? null : U(l);
2064
+ }, ma = function(l) {
2065
+ E && l.stopPropagation();
2066
+ }, ji = V(function() {
2067
2067
  return function() {
2068
- var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, l = p.refKey, f = l === void 0 ? "ref" : l, g = p.role, j = p.onKeyDown, ii = p.onFocus, Y = p.onBlur, zi = p.onClick, Ei = p.onDragEnter, Ai = p.onDragOver, ui = p.onDragLeave, Fi = p.onDrop, Oi = wi(p, Et);
2069
- return u(u(Ci({
2070
- onKeyDown: Di(_(j, Ni)),
2071
- onFocus: Di(_(ii, Ui)),
2072
- onBlur: Di(_(Y, Bi)),
2073
- onClick: B(_(zi, Yi)),
2074
- onDragEnter: di(_(Ei, Ki)),
2075
- onDragOver: di(_(Ai, Hi)),
2076
- onDragLeave: di(_(ui, Wi)),
2077
- onDrop: di(_(Fi, si)),
2068
+ var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, l = p.refKey, f = l === void 0 ? "ref" : l, g = p.role, w = p.onKeyDown, aa = p.onFocus, Y = p.onBlur, za = p.onClick, Ea = p.onDragEnter, Aa = p.onDragOver, ua = p.onDragLeave, Fa = p.onDrop, Oa = wa(p, Et);
2069
+ return u(u(La({
2070
+ onKeyDown: Da(O(w, Ba)),
2071
+ onFocus: Da(O(aa, Na)),
2072
+ onBlur: Da(O(Y, Ua)),
2073
+ onClick: U(O(za, Ya)),
2074
+ onDragEnter: da(O(Ea, Ka)),
2075
+ onDragOver: da(O(Aa, Ha)),
2076
+ onDragLeave: da(O(ua, Wa)),
2077
+ onDrop: da(O(Fa, sa)),
2078
2078
  role: typeof g == "string" && g !== "" ? g : "presentation"
2079
2079
  }, f, b), !n && !S ? {
2080
2080
  tabIndex: 0
2081
- } : {}), Oi);
2081
+ } : {}), Oa);
2082
2082
  };
2083
- }, [b, Ni, Ui, Bi, Yi, Ki, Hi, Wi, si, S, W, n]), Da = E(function(p) {
2083
+ }, [b, Ba, Na, Ua, Ya, Ka, Ha, Wa, sa, S, W, n]), Di = z(function(p) {
2084
2084
  p.stopPropagation();
2085
- }, []), za = V(function() {
2085
+ }, []), zi = V(function() {
2086
2086
  return function() {
2087
- var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, l = p.refKey, f = l === void 0 ? "ref" : l, g = p.onChange, j = p.onClick, ii = wi(p, At), Y = Ci({
2088
- accept: C,
2087
+ var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, l = p.refKey, f = l === void 0 ? "ref" : l, g = p.onChange, w = p.onClick, aa = wa(p, At), Y = La({
2088
+ accept: L,
2089
2089
  multiple: r,
2090
2090
  type: "file",
2091
2091
  style: {
@@ -2100,95 +2100,94 @@ function wa() {
2100
2100
  width: "1px",
2101
2101
  whiteSpace: "nowrap"
2102
2102
  },
2103
- onChange: B(_(g, si)),
2104
- onClick: B(_(j, Da)),
2103
+ onChange: U(O(g, sa)),
2104
+ onClick: U(O(w, Di)),
2105
2105
  tabIndex: -1
2106
- }, f, w);
2107
- return u(u({}, Y), ii);
2106
+ }, f, y);
2107
+ return u(u({}, Y), aa);
2108
2108
  };
2109
- }, [w, t, r, si, n]);
2110
- return u(u({}, F), {}, {
2111
- isFocused: O && !n,
2112
- getRootProps: ja,
2113
- getInputProps: za,
2109
+ }, [y, t, r, sa, n]);
2110
+ return u(u({}, A), {}, {
2111
+ isFocused: F && !n,
2112
+ getRootProps: ji,
2113
+ getInputProps: zi,
2114
2114
  rootRef: b,
2115
- inputRef: w,
2116
- open: B(U)
2115
+ inputRef: y,
2116
+ open: U(N)
2117
2117
  });
2118
2118
  }
2119
- function Tt(i, a) {
2120
- switch (a.type) {
2119
+ function Tt(a, i) {
2120
+ switch (i.type) {
2121
2121
  case "focus":
2122
- return u(u({}, i), {}, {
2122
+ return u(u({}, a), {}, {
2123
2123
  isFocused: !0
2124
2124
  });
2125
2125
  case "blur":
2126
- return u(u({}, i), {}, {
2126
+ return u(u({}, a), {}, {
2127
2127
  isFocused: !1
2128
2128
  });
2129
2129
  case "openDialog":
2130
- return u(u({}, $i), {}, {
2130
+ return u(u({}, $a), {}, {
2131
2131
  isFileDialogActive: !0
2132
2132
  });
2133
2133
  case "closeDialog":
2134
- return u(u({}, i), {}, {
2134
+ return u(u({}, a), {}, {
2135
2135
  isFileDialogActive: !1
2136
2136
  });
2137
2137
  case "setDraggedFiles":
2138
- return u(u({}, i), {}, {
2139
- isDragActive: a.isDragActive,
2140
- isDragAccept: a.isDragAccept,
2141
- isDragReject: a.isDragReject
2138
+ return u(u({}, a), {}, {
2139
+ isDragActive: i.isDragActive,
2140
+ isDragAccept: i.isDragAccept,
2141
+ isDragReject: i.isDragReject
2142
2142
  });
2143
2143
  case "setFiles":
2144
- return u(u({}, i), {}, {
2145
- acceptedFiles: a.acceptedFiles,
2146
- fileRejections: a.fileRejections,
2147
- isDragReject: a.isDragReject
2144
+ return u(u({}, a), {}, {
2145
+ acceptedFiles: i.acceptedFiles,
2146
+ fileRejections: i.fileRejections,
2147
+ isDragReject: i.isDragReject
2148
2148
  });
2149
2149
  case "reset":
2150
- return u({}, $i);
2150
+ return u({}, $a);
2151
2151
  default:
2152
- return i;
2152
+ return a;
2153
2153
  }
2154
2154
  }
2155
- function ca() {
2155
+ function ci() {
2156
2156
  }
2157
- const Lt = ({
2158
- file: i,
2159
- fileName: a,
2157
+ const Ct = ({
2158
+ file: a,
2159
+ fileName: i,
2160
2160
  forceFileType: t,
2161
2161
  previewButtonText: n = "Preview"
2162
2162
  }) => {
2163
- if (!i) return null;
2164
- const e = typeof i == "string", o = $a(i, t), c = i instanceof File ? Ma(i) : null, r = e && a ? a : sa(i);
2163
+ const e = typeof a == "string", o = $i(a, t), c = a instanceof File ? Mi(a) : null, r = e && i ? i : si(a);
2165
2164
  return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
2166
2165
  /* @__PURE__ */ d.jsx(o, { color: "neutral-90", h: 50, mb: "lg", w: 50 }),
2167
- /* @__PURE__ */ d.jsx(bi, { color: "neutral-90", lines: 1, m: 0, maxWidth: 600, variant: "h4", children: r }),
2168
- !e && /* @__PURE__ */ d.jsx(bi, { color: "beige-70", fontWeight: "medium", lines: 1, m: 0, variant: "sm", children: c }),
2169
- e ? /* @__PURE__ */ d.jsxs(gi, { as: "a", href: i, mt: "md", rel: "noopener", size: "sm", target: "_blank", children: [
2166
+ /* @__PURE__ */ d.jsx(ba, { color: "neutral-90", lines: 1, m: 0, maxWidth: 600, variant: "h4", children: r }),
2167
+ !e && /* @__PURE__ */ d.jsx(ba, { color: "beige-70", fontWeight: "medium", lines: 1, m: 0, variant: "sm", children: c }),
2168
+ e ? /* @__PURE__ */ d.jsxs(ga, { as: "a", href: a, mt: "md", rel: "noopener", size: "sm", target: "_blank", children: [
2170
2169
  /* @__PURE__ */ d.jsx("span", { children: n }),
2171
- /* @__PURE__ */ d.jsx(Ka, {})
2170
+ /* @__PURE__ */ d.jsx(Ki, {})
2172
2171
  ] }) : null
2173
2172
  ] });
2174
- }, la = ({
2175
- disabled: i,
2176
- fileButtonText: a = "Browse file",
2173
+ }, li = ({
2174
+ disabled: a,
2175
+ fileButtonText: i = "Browse file",
2177
2176
  hint: t = "Drag & drop a file here or",
2178
2177
  openFile: n,
2179
2178
  title: e = "Add file"
2180
2179
  }) => /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
2181
- /* @__PURE__ */ d.jsx(bi, { color: "neutral-90", m: "0", variant: "h4", children: e }),
2182
- /* @__PURE__ */ d.jsx(bi, { color: "beige-70", m: "0", mt: "xs", variant: "sm", children: t }),
2183
- /* @__PURE__ */ d.jsx(gi, { disabled: i, mt: "lg", onClick: n, type: "button", children: a })
2184
- ] }), Ct = ki.divBox.withConfig({ shouldForwardProp: La })(
2185
- ({ disabled: i, isDragAccept: a, isDragReject: t }) => Ii`
2186
- ${P("defaultFields.default")};
2187
- ${P("fileDrops.default")};
2188
- ${a && P("fileDrops.dragAccept")};
2189
- ${t && Ii`
2190
- border-color: ${P("defaultFields.variants.danger.borderColor")};
2191
- ${P("fileDrops.dragReject")}
2180
+ /* @__PURE__ */ d.jsx(ba, { color: "neutral-90", m: "0", variant: "h4", children: e }),
2181
+ /* @__PURE__ */ d.jsx(ba, { color: "beige-70", m: "0", mt: "xs", variant: "sm", children: t }),
2182
+ /* @__PURE__ */ d.jsx(ga, { disabled: a, mt: "lg", onClick: n, type: "button", children: i })
2183
+ ] }), Lt = ka.divBox.withConfig({ shouldForwardProp: Ci })(
2184
+ ({ disabled: a, isDragAccept: i, isDragReject: t }) => Ia`
2185
+ ${_("defaultFields.default")};
2186
+ ${_("fileDrops.default")};
2187
+ ${i && _("fileDrops.dragAccept")};
2188
+ ${t && Ia`
2189
+ border-color: ${_("defaultFields.variants.danger.borderColor")};
2190
+ ${_("fileDrops.dragReject")}
2192
2191
  `};
2193
2192
  position: relative;
2194
2193
  display: flex;
@@ -2198,34 +2197,34 @@ const Lt = ({
2198
2197
  transition: medium;
2199
2198
 
2200
2199
  &:focus {
2201
- ${P("defaultFields.focused.default")};
2200
+ ${_("defaultFields.focused.default")};
2202
2201
  }
2203
2202
 
2204
- ${i && Ii`
2205
- ${P("defaultFields.disabled")};
2206
- ${P("fileDrops.disabled")};
2203
+ ${a && Ia`
2204
+ ${_("defaultFields.disabled")};
2205
+ ${_("fileDrops.disabled")};
2207
2206
  `};
2208
2207
  `
2209
- ), $t = ki.div`
2208
+ ), $t = ka.div`
2210
2209
  width: 100%;
2211
2210
  height: 100%;
2212
2211
  display: flex;
2213
2212
  flex-direction: column;
2214
2213
  align-items: center;
2215
2214
  justify-content: center;
2216
- `, ka = ki.imgBox`
2215
+ `, ki = ka.imgBox`
2217
2216
  max-height: 100%;
2218
2217
  max-width: 100%;
2219
2218
  object-fit: contain;
2220
- `, Mt = ki.div`
2219
+ `, Mt = ka.div`
2221
2220
  position: absolute;
2222
- top: ${P.space("md")};
2223
- right: ${P.space("md")};
2221
+ top: ${_.space("md")};
2222
+ right: ${_.space("md")};
2224
2223
  display: flex;
2225
2224
  gap: xs;
2226
2225
  `, Kt = ({
2227
- disabled: i,
2228
- error: a,
2226
+ disabled: a,
2227
+ error: i,
2229
2228
  file: t,
2230
2229
  fileName: n,
2231
2230
  fileUrl: e,
@@ -2235,29 +2234,22 @@ const Lt = ({
2235
2234
  isHoverReject: v,
2236
2235
  openFile: h,
2237
2236
  wordings: x
2238
- }) => r ? /* @__PURE__ */ d.jsx(Ra, {}) : v ? /* @__PURE__ */ d.jsx(Sa, {}) : a ? /* @__PURE__ */ d.jsx(la, { openFile: h, ...x }) : e ? c ? /* @__PURE__ */ d.jsx(ka, { src: e }) : /* @__PURE__ */ d.jsx(Lt, { file: t, fileName: n, forceFileType: o, ...x }) : /* @__PURE__ */ d.jsx(la, { disabled: i, openFile: h, ...x }), ra = /\.(jpeg|jpg|gif|png|webp)$/, Ht = (i) => {
2239
- if (!i) return !1;
2240
- if (typeof i == "string") {
2241
- const a = sa(i);
2242
- return !!a && !!a.match(ra);
2243
- } else
2244
- return i.name ? !!i.name.match(ra) : !1;
2245
- }, Wt = (i) => {
2246
- let a;
2247
- if (i instanceof File ? a = i.preview : a = i, typeof a != "string" || a.startsWith("blob:"))
2248
- return a;
2237
+ }) => r ? /* @__PURE__ */ d.jsx(Ri, {}) : v ? /* @__PURE__ */ d.jsx(Si, {}) : i ? /* @__PURE__ */ d.jsx(li, { openFile: h, ...x }) : e ? c ? /* @__PURE__ */ d.jsx(ki, { src: e }) : /* @__PURE__ */ d.jsx(Ct, { file: t, fileName: n, forceFileType: o, ...x }) : /* @__PURE__ */ d.jsx(li, { disabled: a, openFile: h, ...x }), ri = /\.(jpeg|jpg|gif|png|webp)$/, Ht = (a) => a ? typeof a == "string" ? !!si(a).match(ri) : a.name ? !!a.name.match(ri) : !1 : !1, Wt = (a) => {
2238
+ let i;
2239
+ if (a instanceof File ? i = a.preview : i = a, typeof i != "string" || i.startsWith("blob:"))
2240
+ return i;
2249
2241
  if (typeof window < "u")
2250
2242
  try {
2251
- return new URL(a);
2243
+ return new URL(i);
2252
2244
  } catch {
2253
2245
  return;
2254
2246
  }
2255
- }, Nt = wa || ji.useDropzone, Ut = 2e6, Bt = "ERROR_INVALID_TYPE", Yt = "ERROR_INVALID_SIZE", Vt = Ca(
2247
+ }, Bt = wi || ja.useDropzone, Nt = 2e6, Ut = "ERROR_INVALID_TYPE", Yt = "ERROR_INVALID_SIZE", Vt = Li(
2256
2248
  ({
2257
- accept: i = {
2249
+ accept: a = {
2258
2250
  "image/*": []
2259
2251
  },
2260
- children: a = Kt,
2252
+ children: i = Kt,
2261
2253
  dataTestId: t,
2262
2254
  disabled: n,
2263
2255
  fileName: e,
@@ -2266,50 +2258,48 @@ const Lt = ({
2266
2258
  handleRemoveFile: r,
2267
2259
  isClearable: v,
2268
2260
  isEditable: h,
2269
- maxSize: x = Ut,
2270
- multiple: D,
2271
- name: I,
2261
+ maxSize: x = Nt,
2262
+ multiple: k,
2263
+ name: P,
2272
2264
  onBlur: R,
2273
- onChange: y,
2274
- onError: z,
2265
+ onChange: j,
2266
+ onError: I,
2275
2267
  value: T,
2276
- wordings: ni,
2277
- ...ei
2268
+ wordings: na,
2269
+ ...ea
2278
2270
  }, Z) => {
2279
- const [k, S] = Vi(T), [W, A] = Vi(null);
2280
- ai(() => {
2271
+ const [D, S] = Va(T), [W, E] = Va(void 0);
2272
+ ia(() => {
2281
2273
  S(T);
2282
- }, [T]), ai(() => () => {
2283
- k && k instanceof File && k.preview && URL.revokeObjectURL(k.preview);
2284
- }, [k]);
2285
- const J = (F) => {
2286
- const [m] = F;
2287
- m instanceof File && (m.preview = URL.createObjectURL(m)), S(m), A(null);
2288
- const O = Gi({ name: I, value: m });
2289
- y == null || y(O), c == null || c(O);
2290
- }, L = (F, m) => {
2291
- let O = null;
2292
- F.map(({ errors: li }) => {
2293
- li.map((N) => {
2294
- const { code: Q, message: q } = N;
2295
- Q === "file-invalid-type" ? O = Bt : Q === "file-too-large" ? O = Yt : O = q;
2274
+ }, [T]), ia(() => () => D && D instanceof File && URL.revokeObjectURL(D.preview), [D]);
2275
+ const J = (A) => {
2276
+ const [m] = A;
2277
+ m instanceof File && (m.preview = URL.createObjectURL(m)), S(m), E(null);
2278
+ const F = Ga({ name: P, value: m });
2279
+ j && j(F), c && c(F);
2280
+ }, C = (A, m) => {
2281
+ let F;
2282
+ A.map(({ errors: la }) => {
2283
+ la.map((B) => {
2284
+ const { code: Q, message: q } = B;
2285
+ Q === "file-invalid-type" ? F = Ut : Q === "file-too-large" ? F = Yt : F = q;
2296
2286
  });
2297
- }), S(null), A(O), O && (z == null || z(O)), y == null || y(m), R == null || R();
2298
- }, C = (F) => {
2299
- F.preventDefault(), S(null), A(null);
2300
- const m = Gi({ name: I, value: null });
2301
- y == null || y(m), r == null || r(m);
2302
- }, { getInputProps: pi, getRootProps: X, isDragAccept: $, isDragActive: b, isDragReject: w, open: oi } = Nt({
2303
- accept: i,
2287
+ }), S(null), E(F), I && I(F), j && j(m), R && R();
2288
+ }, L = (A) => {
2289
+ A.preventDefault(), S(null), E(null);
2290
+ const m = Ga({ name: P, value: null });
2291
+ j && j(m), r && r(m);
2292
+ }, { getInputProps: pa, getRootProps: X, isDragAccept: $, isDragActive: b, isDragReject: y, open: oa } = Bt({
2293
+ accept: a,
2304
2294
  disabled: n,
2305
2295
  maxSize: x,
2306
- multiple: D,
2296
+ multiple: k,
2307
2297
  noClick: !0,
2308
2298
  onDropAccepted: J,
2309
- onDropRejected: L
2310
- }), ci = (F) => z == null ? void 0 : z(F);
2299
+ onDropRejected: C
2300
+ }), ca = (A) => I(A);
2311
2301
  return /* @__PURE__ */ d.jsxs(
2312
- Ct,
2302
+ Lt,
2313
2303
  {
2314
2304
  ...X({
2315
2305
  "data-testid": t,
@@ -2318,36 +2308,36 @@ const Lt = ({
2318
2308
  isClearable: v,
2319
2309
  isDragAccept: $,
2320
2310
  isDragActive: b,
2321
- isDragReject: w,
2311
+ isDragReject: y,
2322
2312
  isEditable: h,
2323
2313
  ref: Z
2324
2314
  }),
2325
- ...ei,
2315
+ ...ea,
2326
2316
  children: [
2327
2317
  /* @__PURE__ */ d.jsx(
2328
2318
  "input",
2329
2319
  {
2330
- ...pi({ disabled: n, multiple: D, name: I, onError: ci }),
2320
+ ...pa({ disabled: n, multiple: k, name: P, onError: ca }),
2331
2321
  style: { display: "block", height: 0, opacity: 0, width: 0 }
2332
2322
  }
2333
2323
  ),
2334
2324
  /* @__PURE__ */ d.jsxs($t, { children: [
2335
- a({
2325
+ i({
2336
2326
  disabled: n,
2337
2327
  error: W,
2338
- file: k,
2328
+ file: D,
2339
2329
  fileName: e,
2340
- fileUrl: k && Wt(k),
2330
+ fileUrl: D && Wt(D),
2341
2331
  forceFileType: o,
2342
- isAnImage: o === "image" || Ht(k),
2332
+ isAnImage: o === "image" || Ht(D),
2343
2333
  isHoverAccept: $,
2344
- isHoverReject: w,
2345
- openFile: oi,
2346
- wordings: ni
2334
+ isHoverReject: y,
2335
+ openFile: oa,
2336
+ wordings: na
2347
2337
  }),
2348
- k && (W || h || v) ? /* @__PURE__ */ d.jsxs(Mt, { children: [
2349
- W || h ? /* @__PURE__ */ d.jsx(gi, { onClick: oi, shape: "circle", size: "sm", type: "button", variant: "tertiary", children: /* @__PURE__ */ d.jsx(qa, {}) }) : null,
2350
- v ? /* @__PURE__ */ d.jsx(gi, { danger: !0, onClick: C, shape: "circle", size: "sm", type: "button", children: /* @__PURE__ */ d.jsx(Ta, {}) }) : null
2338
+ D && (W || h || v) ? /* @__PURE__ */ d.jsxs(Mt, { children: [
2339
+ W || h ? /* @__PURE__ */ d.jsx(ga, { onClick: oa, shape: "circle", size: "sm", type: "button", variant: "tertiary", children: /* @__PURE__ */ d.jsx(qi, {}) }) : null,
2340
+ v ? /* @__PURE__ */ d.jsx(ga, { danger: !0, onClick: L, shape: "circle", size: "sm", type: "button", children: /* @__PURE__ */ d.jsx(Ti, {}) }) : null
2351
2341
  ] }) : null
2352
2342
  ] })
2353
2343
  ]
@@ -2356,7 +2346,7 @@ const Lt = ({
2356
2346
  }
2357
2347
  );
2358
2348
  Vt.displayName = "FileDrop";
2359
- const rn = ka;
2349
+ const rn = ki;
2360
2350
  export {
2361
2351
  Vt as FileDrop,
2362
2352
  rn as ImagePreview