welcome-ui 8.1.3 → 8.2.0-alpha.1

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 (244) hide show
  1. package/dist/{AXB53BZF-BOEe01VW.mjs → AXB53BZF-XKOjjeWO.mjs} +3 -3
  2. package/dist/Accordion.mjs +30 -23
  3. package/dist/Alert.mjs +72 -66
  4. package/dist/AspectRatio.mjs +9 -9
  5. package/dist/Avatar.mjs +45 -41
  6. package/dist/{BYC7LY2E-B1IDizRs.mjs → BYC7LY2E-CWSI38FM.mjs} +128 -127
  7. package/dist/Badge.mjs +25 -25
  8. package/dist/Box.mjs +5 -5
  9. package/dist/Breadcrumb.mjs +118 -112
  10. package/dist/Button.mjs +72 -67
  11. package/dist/ButtonGroup.mjs +12 -11
  12. package/dist/Card.mjs +14 -14
  13. package/dist/Checkbox.mjs +2 -2
  14. package/dist/ClearButton.mjs +15 -15
  15. package/dist/CloseButton.mjs +9 -9
  16. package/dist/{CustomInput-IA_gVoXd.mjs → CustomPopper-DezjKb9n.mjs} +1458 -1442
  17. package/dist/DatePicker.mjs +63 -62
  18. package/dist/DateTimePicker.mjs +69 -63
  19. package/dist/DateTimePickerCommon.mjs +1 -1
  20. package/dist/Drawer.mjs +180 -168
  21. package/dist/DropdownMenu.mjs +354 -351
  22. package/dist/Field.mjs +103 -92
  23. package/dist/FieldGroup.mjs +12 -9
  24. package/dist/FileDrop.mjs +316 -295
  25. package/dist/FileUpload.mjs +83 -69
  26. package/dist/Files.mjs +41 -41
  27. package/dist/Flex.mjs +13 -13
  28. package/dist/Grid.mjs +29 -29
  29. package/dist/Hint.mjs +12 -12
  30. package/dist/{ITI7HKP4-EL9KXYBU.mjs → ITI7HKP4-C89kOQb8.mjs} +68 -67
  31. package/dist/Icon.mjs +25 -25
  32. package/dist/Icons.mjs +988 -988
  33. package/dist/IconsFont.mjs +22 -22
  34. package/dist/InputText.mjs +64 -56
  35. package/dist/{JC64G2H7-BzklVBKM.mjs → JC64G2H7-afsomHuH.mjs} +47 -46
  36. package/dist/{KUU7WJ55-CS4NemC6.mjs → KUU7WJ55-CzsjuIMv.mjs} +1 -1
  37. package/dist/LVA2YJMS-C-kJ1lkr.mjs +873 -0
  38. package/dist/Label.mjs +37 -35
  39. package/dist/Link.mjs +32 -28
  40. package/dist/Loader.mjs +20 -16
  41. package/dist/Logo.mjs +55 -42
  42. package/dist/{MTZPJQMC-CMjAwC0N.mjs → MTZPJQMC-TybFZCho.mjs} +2 -2
  43. package/dist/Modal.mjs +263 -244
  44. package/dist/{NLEBE274-QOMV1l7e.mjs → NLEBE274-oSxMftGy.mjs} +9 -9
  45. package/dist/{P2CTZE2T-Cl2w7OLV.mjs → P2CTZE2T-DOT1mNnX.mjs} +49 -48
  46. package/dist/{P4IRICAX-DezbJY4s.mjs → P4IRICAX-CWSZLTGz.mjs} +3 -3
  47. package/dist/Pagination.mjs +105 -103
  48. package/dist/PasswordInput.mjs +35 -34
  49. package/dist/Picker.mjs +36 -34
  50. package/dist/Popover.mjs +106 -99
  51. package/dist/{QYJ6MIDR-Bb0O5xUM.mjs → QYJ6MIDR-DJ-vUdAM.mjs} +31 -30
  52. package/dist/Radio.mjs +52 -46
  53. package/dist/RadioGroup.mjs +47 -47
  54. package/dist/RadioTab.mjs +37 -35
  55. package/dist/{SYRFVSLH-jn06-eLy.mjs → SYRFVSLH-B6m278Vb.mjs} +11 -10
  56. package/dist/Search.mjs +147 -135
  57. package/dist/Select.mjs +348 -330
  58. package/dist/Shape.mjs +9 -9
  59. package/dist/Slider.mjs +353 -326
  60. package/dist/Stack.mjs +24 -23
  61. package/dist/Swiper.mjs +192 -186
  62. package/dist/Table.mjs +23 -23
  63. package/dist/Tabs.mjs +205 -200
  64. package/dist/Tag.mjs +49 -47
  65. package/dist/Text.mjs +20 -20
  66. package/dist/Textarea.mjs +40 -40
  67. package/dist/TimePicker.mjs +59 -58
  68. package/dist/Toast.mjs +135 -128
  69. package/dist/Toggle.mjs +27 -24
  70. package/dist/Tooltip.mjs +103 -99
  71. package/dist/UniversalLink.mjs +15 -15
  72. package/dist/{VEVQD5MH-CuegL0m0.mjs → VEVQD5MH-0w9Y7Ytc.mjs} +3 -3
  73. package/dist/{VGCJ63VH-BMzoZtCu.mjs → VGCJ63VH-C0UPBY-5.mjs} +39 -38
  74. package/dist/VariantIcon.mjs +23 -22
  75. package/dist/WelcomeLoader.mjs +122 -121
  76. package/dist/WuiProvider.mjs +52 -44
  77. package/dist/{X5NMLKT6-CvSCix-_.mjs → X5NMLKT6-BJw3xE-K.mjs} +2 -2
  78. package/dist/{YV4JVR4I-Bh7B7TET.mjs → YV4JVR4I-DPC8mMuG.mjs} +57 -57
  79. package/dist/hide-focus-rings-root-CCXdysih.mjs +15 -0
  80. package/dist/{index-5PUh49rV.mjs → index-62h-enZF.mjs} +62 -61
  81. package/dist/{index-C7zM96J_.mjs → index-BaLGEKs7.mjs} +8 -8
  82. package/dist/index-CYmF7qCH.mjs +11 -0
  83. package/dist/index-C_k-m0Rl.mjs +36 -0
  84. package/dist/index-D8v_VJ9z.mjs +26 -0
  85. package/dist/{index-BNGGwOCo.mjs → index-DAZ1SYdj.mjs} +7 -7
  86. package/dist/index-DpkNUfAS.mjs +11 -0
  87. package/dist/{index-DqBUFsqP.mjs → index-DvzWKxKE.mjs} +7 -7
  88. package/dist/{index-Bkl89twW.mjs → index-QaLwIvZS.mjs} +8 -8
  89. package/dist/{index-BQtDgQBH.mjs → index-SQQQ4dEE.mjs} +8 -8
  90. package/dist/index-i_anpNhw.mjs +66 -0
  91. package/dist/index-wl3X6EM1.mjs +16 -0
  92. package/dist/jsx-runtime-B7I4PJ0H.mjs +613 -0
  93. package/dist/radio-group-C0fUHvam.mjs +52 -0
  94. package/dist/theme.mjs +805 -805
  95. package/dist/types/components/Accordion/index.d.ts +1 -1
  96. package/dist/types/components/Alert/index.d.ts +2 -2
  97. package/dist/types/components/Alert/styles.d.ts +4 -4
  98. package/dist/types/components/Alert/theme.d.ts +4 -4
  99. package/dist/types/components/Avatar/index.d.ts +1 -1
  100. package/dist/types/components/Avatar/styles.d.ts +4 -4
  101. package/dist/types/components/Avatar/theme.d.ts +1 -1
  102. package/dist/types/components/Badge/index.d.ts +2 -2
  103. package/dist/types/components/Badge/styles.d.ts +2 -2
  104. package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
  105. package/dist/types/components/Breadcrumb/index.d.ts +1 -1
  106. package/dist/types/components/Button/index.d.ts +4 -5
  107. package/dist/types/components/Button/theme.d.ts +7 -7
  108. package/dist/types/components/ButtonGroup/index.d.ts +3 -3
  109. package/dist/types/components/Card/Cover.styles.d.ts +2 -2
  110. package/dist/types/components/Card/index.d.ts +2 -3
  111. package/dist/types/components/Checkbox/index.d.ts +2 -2
  112. package/dist/types/components/ClearButton/index.d.ts +4 -5
  113. package/dist/types/components/ClearButton/styles.d.ts +2 -2
  114. package/dist/types/components/CloseButton/styles.d.ts +2 -2
  115. package/dist/types/components/DatePicker/index.d.ts +3 -3
  116. package/dist/types/components/DateTimePicker/index.d.ts +2 -2
  117. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
  118. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
  119. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
  120. package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
  121. package/dist/types/components/DateTimePickerCommon/utils.d.ts +1 -1
  122. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
  123. package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
  124. package/dist/types/components/Drawer/index.d.ts +8 -8
  125. package/dist/types/components/Drawer/styles.d.ts +3 -3
  126. package/dist/types/components/Drawer/theme.d.ts +1 -1
  127. package/dist/types/components/DropdownMenu/index.d.ts +4 -4
  128. package/dist/types/components/Field/index.d.ts +8 -8
  129. package/dist/types/components/Field/styles.d.ts +1 -1
  130. package/dist/types/components/Field/utils.d.ts +1 -1
  131. package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
  132. package/dist/types/components/FileDrop/Message.d.ts +1 -1
  133. package/dist/types/components/FileDrop/index.d.ts +16 -16
  134. package/dist/types/components/FileUpload/index.d.ts +13 -13
  135. package/dist/types/components/Files/index.d.ts +4 -4
  136. package/dist/types/components/Files/types.d.ts +1 -1
  137. package/dist/types/components/Hint/index.d.ts +1 -2
  138. package/dist/types/components/Icon/index.d.ts +3 -3
  139. package/dist/types/components/Icon/styles.d.ts +3 -3
  140. package/dist/types/components/Icon/theme.d.ts +1 -1
  141. package/dist/types/components/Icons/index.d.ts +2 -2
  142. package/dist/types/components/IconsFont/index.d.ts +2 -3
  143. package/dist/types/components/IconsFont/styles.d.ts +1 -1
  144. package/dist/types/components/InputText/index.d.ts +1 -1
  145. package/dist/types/components/InputText/styles.d.ts +1 -1
  146. package/dist/types/components/Label/index.d.ts +2 -3
  147. package/dist/types/components/Link/index.d.ts +3 -3
  148. package/dist/types/components/Link/styles.d.ts +2 -2
  149. package/dist/types/components/Loader/index.d.ts +1 -1
  150. package/dist/types/components/Loader/styles.d.ts +2 -2
  151. package/dist/types/components/Loader/theme.d.ts +2 -2
  152. package/dist/types/components/Logo/Solutions.d.ts +1 -2
  153. package/dist/types/components/Logo/Symbol.d.ts +1 -2
  154. package/dist/types/components/Logo/Wui.d.ts +1 -2
  155. package/dist/types/components/Logo/index.d.ts +5 -5
  156. package/dist/types/components/Modal/Assets/Backdrop.d.ts +4 -5
  157. package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -2
  158. package/dist/types/components/Modal/Assets/index.d.ts +5 -5
  159. package/dist/types/components/Modal/Assets/styles.d.ts +4 -4
  160. package/dist/types/components/Modal/Close.d.ts +1 -2
  161. package/dist/types/components/Modal/Footer.d.ts +1 -1
  162. package/dist/types/components/Modal/Header.d.ts +2 -2
  163. package/dist/types/components/Modal/index.d.ts +11 -11
  164. package/dist/types/components/Modal/styles.d.ts +4 -4
  165. package/dist/types/components/Modal/theme.d.ts +1 -1
  166. package/dist/types/components/Pagination/index.d.ts +2 -2
  167. package/dist/types/components/Pagination/utils.d.ts +1 -1
  168. package/dist/types/components/Popover/Arrow.d.ts +1 -2
  169. package/dist/types/components/Popover/Content.d.ts +2 -3
  170. package/dist/types/components/Popover/Popover.d.ts +4 -5
  171. package/dist/types/components/Popover/PopoverHover.d.ts +3 -4
  172. package/dist/types/components/Popover/Trigger.d.ts +1 -1
  173. package/dist/types/components/Popover/usePopover.d.ts +6 -6
  174. package/dist/types/components/Radio/index.d.ts +5 -5
  175. package/dist/types/components/Radio/styles.d.ts +2 -2
  176. package/dist/types/components/RadioGroup/index.d.ts +2 -2
  177. package/dist/types/components/RadioTab/index.d.ts +2 -2
  178. package/dist/types/components/RadioTab/styles.d.ts +9 -9
  179. package/dist/types/components/Search/index.d.ts +4 -4
  180. package/dist/types/components/Select/index.d.ts +9 -9
  181. package/dist/types/components/Select/styles.d.ts +4 -4
  182. package/dist/types/components/Select/utils.d.ts +4 -4
  183. package/dist/types/components/Shape/index.d.ts +1 -1
  184. package/dist/types/components/Shape/styles.d.ts +2 -2
  185. package/dist/types/components/Slider/Range.d.ts +3 -3
  186. package/dist/types/components/Slider/index.d.ts +2 -2
  187. package/dist/types/components/Slider/styles.d.ts +10 -10
  188. package/dist/types/components/Stack/index.d.ts +1 -1
  189. package/dist/types/components/Swiper/index.d.ts +16 -17
  190. package/dist/types/components/Swiper/styles.d.ts +55 -55
  191. package/dist/types/components/System/index.d.ts +10 -10
  192. package/dist/types/components/Table/index.d.ts +6 -7
  193. package/dist/types/components/Table/styles.d.ts +1 -1
  194. package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
  195. package/dist/types/components/Tabs/TabList.d.ts +2 -2
  196. package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
  197. package/dist/types/components/Tabs/theme.d.ts +1 -1
  198. package/dist/types/components/Tag/index.d.ts +2 -3
  199. package/dist/types/components/Tag/styles.d.ts +1 -1
  200. package/dist/types/components/Tag/theme.d.ts +2 -2
  201. package/dist/types/components/Text/index.d.ts +2 -2
  202. package/dist/types/components/Textarea/index.d.ts +1 -1
  203. package/dist/types/components/TimePicker/index.d.ts +2 -2
  204. package/dist/types/components/Toast/Growl.d.ts +1 -1
  205. package/dist/types/components/Toast/Snackbar.d.ts +1 -1
  206. package/dist/types/components/Toast/ToastWrapper.d.ts +4 -4
  207. package/dist/types/components/Toast/index.d.ts +5 -5
  208. package/dist/types/components/Toast/styles.d.ts +10 -10
  209. package/dist/types/components/Toast/theme.d.ts +1 -1
  210. package/dist/types/components/Toast/utils.d.ts +13 -13
  211. package/dist/types/components/Toggle/index.d.ts +2 -2
  212. package/dist/types/components/Toggle/theme.d.ts +4 -4
  213. package/dist/types/components/Tooltip/index.d.ts +3 -3
  214. package/dist/types/components/VariantIcon/index.d.ts +1 -1
  215. package/dist/types/components/VariantIcon/styles.d.ts +1 -1
  216. package/dist/types/components/VariantIcon/theme.d.ts +1 -1
  217. package/dist/types/theme/colors.d.ts +3 -3
  218. package/dist/types/theme/dark.d.ts +1 -1
  219. package/dist/types/theme/defaultFields.d.ts +5 -5
  220. package/dist/types/theme/fonts.d.ts +5 -5
  221. package/dist/types/theme/index.d.ts +31 -31
  222. package/dist/types/theme/screens.d.ts +7 -7
  223. package/dist/types/theme/space.d.ts +9 -9
  224. package/dist/types/utils/field-styles.d.ts +2 -2
  225. package/dist/types/utils/index.d.ts +2 -2
  226. package/dist/types/utils/ts-utils.d.ts +1 -1
  227. package/dist/types/utils/use-copy-text.d.ts +1 -1
  228. package/dist/types/utils/use-create-portal.d.ts +1 -1
  229. package/dist/types/utils/wrap-children.d.ts +1 -1
  230. package/dist/{use-viewport-CfklieD-.mjs → use-viewport-CWpjoHXy.mjs} +2 -2
  231. package/dist/utils.mjs +13 -13
  232. package/dist/wrap-children-CzmhoRzd.mjs +13 -0
  233. package/package.json +3 -27
  234. package/dist/LVA2YJMS-DDEmK0pp.mjs +0 -1482
  235. package/dist/hide-focus-rings-root-BNyva1yb.mjs +0 -14
  236. package/dist/index-B0gDDiFm.mjs +0 -66
  237. package/dist/index-B22SHR8h.mjs +0 -26
  238. package/dist/index-CQD9fgf_.mjs +0 -11
  239. package/dist/index-CmsWSKKs.mjs +0 -11
  240. package/dist/index-u1oHKa7X.mjs +0 -16
  241. package/dist/index-wr_b5GSV.mjs +0 -36
  242. package/dist/radio-group-RFyDp0KD.mjs +0 -51
  243. package/dist/wrap-children-aq69jtFP.mjs +0 -12
  244. package/dist/{downshift.esm-D0ns_SQs.mjs → downshift.esm-B7Jil1wW.mjs} +9 -9
package/dist/FileDrop.mjs CHANGED
@@ -1,18 +1,19 @@
1
1
  "use client";
2
- import s, { forwardRef as Ai, useMemo as V, useRef as va, useReducer as Fi, useEffect as ia, useCallback as E, useImperativeHandle as Oi, Fragment as _i, useState as Va } from "react";
3
- import { P as d } from "./index-DgSynio4.mjs";
4
- import { g as Pi } from "./_commonjsHelpers-CXJ7dpIk.mjs";
2
+ import { j as d } from "./jsx-runtime-B7I4PJ0H.mjs";
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
+ import { P as s } from "./index-DgSynio4.mjs";
5
+ import { g as Ii } from "./_commonjsHelpers-CXJ7dpIk.mjs";
6
+ import { Button as ga } from "./Button.mjs";
7
+ import "./Icon.mjs";
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";
5
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";
6
14
  import ka, { th as _, css as Ia } from "@xstyled/styled-components";
7
- import { shouldForwardProp as Ii, forwardRef as Ri } from "./System.mjs";
8
- import { Text as ga } from "./Text.mjs";
9
- import { Button as ba } from "./Button.mjs";
10
- import "./Icon.mjs";
11
- import { E as Si } from "./index-DqBUFsqP.mjs";
12
- import { getFileIcon as qi, getFileSize as Ti, getFileName as si } from "./Files.mjs";
13
- import { P as Ci, N as Li, E as $i, T as Mi } from "./index-B22SHR8h.mjs";
14
- function H(a, i, t, e) {
15
- function n(o) {
15
+ function H(a, i, t, n) {
16
+ function e(o) {
16
17
  return o instanceof t ? o : new t(function(c) {
17
18
  c(o);
18
19
  });
@@ -20,25 +21,25 @@ function H(a, i, t, e) {
20
21
  return new (t || (t = Promise))(function(o, c) {
21
22
  function r(x) {
22
23
  try {
23
- h(e.next(x));
24
+ h(n.next(x));
24
25
  } catch (k) {
25
26
  c(k);
26
27
  }
27
28
  }
28
29
  function v(x) {
29
30
  try {
30
- h(e.throw(x));
31
+ h(n.throw(x));
31
32
  } catch (k) {
32
33
  c(k);
33
34
  }
34
35
  }
35
36
  function h(x) {
36
- x.done ? o(x.value) : n(x.value).then(r, v);
37
+ x.done ? o(x.value) : e(x.value).then(r, v);
37
38
  }
38
- h((e = e.apply(a, i || [])).next());
39
+ h((n = n.apply(a, i || [])).next());
39
40
  });
40
41
  }
41
- const Ki = /* @__PURE__ */ new Map([
42
+ const Hi = /* @__PURE__ */ new Map([
42
43
  // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
43
44
  ["1km", "application/vnd.1000minds.decision-model+xml"],
44
45
  ["3dml", "text/vnd.in3d.3dml"],
@@ -1242,15 +1243,15 @@ const Ki = /* @__PURE__ */ new Map([
1242
1243
  ["zsh", "text/x-scriptzsh"]
1243
1244
  ]);
1244
1245
  function G(a, i, t) {
1245
- const e = Hi(a), { webkitRelativePath: n } = a, o = typeof i == "string" ? i : typeof n == "string" && n.length > 0 ? n : `./${a.name}`;
1246
- return typeof e.path != "string" && Za(e, "path", o), Za(e, "relativePath", o), e;
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;
1247
1248
  }
1248
- function Hi(a) {
1249
+ function Wi(a) {
1249
1250
  const { name: i } = a;
1250
1251
  if (i && i.lastIndexOf(".") !== -1 && !a.type) {
1251
- const e = i.split(".").pop().toLowerCase(), n = Ki.get(e);
1252
- n && Object.defineProperty(a, "type", {
1253
- value: n,
1252
+ const n = i.split(".").pop().toLowerCase(), e = Hi.get(n);
1253
+ e && Object.defineProperty(a, "type", {
1254
+ value: e,
1254
1255
  writable: !1,
1255
1256
  configurable: !1,
1256
1257
  enumerable: !0
@@ -1266,61 +1267,61 @@ function Za(a, i, t) {
1266
1267
  enumerable: !0
1267
1268
  });
1268
1269
  }
1269
- const Wi = [
1270
+ const Bi = [
1270
1271
  // Thumbnail cache files for macOS and Windows
1271
1272
  ".DS_Store",
1272
1273
  // macOs
1273
1274
  "Thumbs.db"
1274
1275
  // Windows
1275
1276
  ];
1276
- function Bi(a) {
1277
+ function Ni(a) {
1277
1278
  return H(this, void 0, void 0, function* () {
1278
- return ha(a) && Ni(a.dataTransfer) ? Gi(a.dataTransfer, a.type) : Ui(a) ? Yi(a) : Array.isArray(a) && a.every((i) => "getFile" in i && typeof i.getFile == "function") ? Vi(a) : [];
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) : [];
1279
1280
  });
1280
1281
  }
1281
- function Ni(a) {
1282
+ function Ui(a) {
1282
1283
  return ha(a);
1283
1284
  }
1284
- function Ui(a) {
1285
+ function Yi(a) {
1285
1286
  return ha(a) && ha(a.target);
1286
1287
  }
1287
1288
  function ha(a) {
1288
1289
  return typeof a == "object" && a !== null;
1289
1290
  }
1290
- function Yi(a) {
1291
+ function Vi(a) {
1291
1292
  return qa(a.target.files).map((i) => G(i));
1292
1293
  }
1293
- function Vi(a) {
1294
+ function Gi(a) {
1294
1295
  return H(this, void 0, void 0, function* () {
1295
1296
  return (yield Promise.all(a.map((t) => t.getFile()))).map((t) => G(t));
1296
1297
  });
1297
1298
  }
1298
- function Gi(a, i) {
1299
+ function Zi(a, i) {
1299
1300
  return H(this, void 0, void 0, function* () {
1300
1301
  if (a.items) {
1301
- const t = qa(a.items).filter((n) => n.kind === "file");
1302
+ const t = qa(a.items).filter((e) => e.kind === "file");
1302
1303
  if (i !== "drop")
1303
1304
  return t;
1304
- const e = yield Promise.all(t.map(Zi));
1305
- return Ja(di(e));
1305
+ const n = yield Promise.all(t.map(Ji));
1306
+ return Ja(di(n));
1306
1307
  }
1307
1308
  return Ja(qa(a.files).map((t) => G(t)));
1308
1309
  });
1309
1310
  }
1310
1311
  function Ja(a) {
1311
- return a.filter((i) => Wi.indexOf(i.name) === -1);
1312
+ return a.filter((i) => Bi.indexOf(i.name) === -1);
1312
1313
  }
1313
1314
  function qa(a) {
1314
1315
  if (a === null)
1315
1316
  return [];
1316
1317
  const i = [];
1317
1318
  for (let t = 0; t < a.length; t++) {
1318
- const e = a[t];
1319
- i.push(e);
1319
+ const n = a[t];
1320
+ i.push(n);
1320
1321
  }
1321
1322
  return i;
1322
1323
  }
1323
- function Zi(a) {
1324
+ function Ji(a) {
1324
1325
  if (typeof a.webkitGetAsEntry != "function")
1325
1326
  return Xa(a);
1326
1327
  const i = a.webkitGetAsEntry();
@@ -1339,78 +1340,78 @@ function Xa(a, i) {
1339
1340
  const c = yield o.getFile();
1340
1341
  return c.handle = o, G(c);
1341
1342
  }));
1342
- const e = a.getAsFile();
1343
- if (!e)
1343
+ const n = a.getAsFile();
1344
+ if (!n)
1344
1345
  return Promise.reject(`${a} is not a File`);
1345
- const n = G(e, (t = i == null ? void 0 : i.fullPath) !== null && t !== void 0 ? t : void 0);
1346
- return Promise.resolve(n);
1346
+ const e = G(n, (t = i == null ? void 0 : i.fullPath) !== null && t !== void 0 ? t : void 0);
1347
+ return Promise.resolve(e);
1347
1348
  }
1348
- function Ji(a) {
1349
+ function Xi(a) {
1349
1350
  return H(this, void 0, void 0, function* () {
1350
- return a.isDirectory ? mi(a) : Xi(a);
1351
+ return a.isDirectory ? mi(a) : Qi(a);
1351
1352
  });
1352
1353
  }
1353
1354
  function mi(a) {
1354
1355
  const i = a.createReader();
1355
- return new Promise((t, e) => {
1356
- const n = [];
1356
+ return new Promise((t, n) => {
1357
+ const e = [];
1357
1358
  function o() {
1358
1359
  i.readEntries((c) => H(this, void 0, void 0, function* () {
1359
1360
  if (c.length) {
1360
- const r = Promise.all(c.map(Ji));
1361
- n.push(r), o();
1361
+ const r = Promise.all(c.map(Xi));
1362
+ e.push(r), o();
1362
1363
  } else
1363
1364
  try {
1364
- const r = yield Promise.all(n);
1365
+ const r = yield Promise.all(e);
1365
1366
  t(r);
1366
1367
  } catch (r) {
1367
- e(r);
1368
+ n(r);
1368
1369
  }
1369
1370
  }), (c) => {
1370
- e(c);
1371
+ n(c);
1371
1372
  });
1372
1373
  }
1373
1374
  o();
1374
1375
  });
1375
1376
  }
1376
- function Xi(a) {
1377
+ function Qi(a) {
1377
1378
  return H(this, void 0, void 0, function* () {
1378
1379
  return new Promise((i, t) => {
1379
- a.file((e) => {
1380
- const n = G(e, a.fullPath);
1381
- i(n);
1382
- }, (e) => {
1383
- t(e);
1380
+ a.file((n) => {
1381
+ const e = G(n, a.fullPath);
1382
+ i(e);
1383
+ }, (n) => {
1384
+ t(n);
1384
1385
  });
1385
1386
  });
1386
1387
  });
1387
1388
  }
1388
1389
  var fa = {}, Qa;
1389
- function Qi() {
1390
+ function at() {
1390
1391
  return Qa || (Qa = 1, fa.__esModule = !0, fa.default = function(a, i) {
1391
1392
  if (a && i) {
1392
1393
  var t = Array.isArray(i) ? i : i.split(",");
1393
1394
  if (t.length === 0)
1394
1395
  return !0;
1395
- var e = a.name || "", n = (a.type || "").toLowerCase(), o = n.replace(/\/.*$/, "");
1396
+ var n = a.name || "", e = (a.type || "").toLowerCase(), o = e.replace(/\/.*$/, "");
1396
1397
  return t.some(function(c) {
1397
1398
  var r = c.trim().toLowerCase();
1398
- return r.charAt(0) === "." ? e.toLowerCase().endsWith(r) : r.endsWith("/*") ? o === r.replace(/\/.*$/, "") : n === r;
1399
+ return r.charAt(0) === "." ? n.toLowerCase().endsWith(r) : r.endsWith("/*") ? o === r.replace(/\/.*$/, "") : e === r;
1399
1400
  });
1400
1401
  }
1401
1402
  return !0;
1402
1403
  }), fa;
1403
1404
  }
1404
- var at = Qi();
1405
- const Ra = /* @__PURE__ */ Pi(at);
1405
+ var it = at();
1406
+ const Ra = /* @__PURE__ */ Ii(it);
1406
1407
  function ai(a) {
1407
- return et(a) || tt(a) || vi(a) || it();
1408
+ return et(a) || nt(a) || vi(a) || tt();
1408
1409
  }
1409
- function it() {
1410
+ function tt() {
1410
1411
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1411
1412
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1412
1413
  }
1413
- function tt(a) {
1414
+ function nt(a) {
1414
1415
  if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
1415
1416
  }
1416
1417
  function et(a) {
@@ -1419,20 +1420,20 @@ function et(a) {
1419
1420
  function ii(a, i) {
1420
1421
  var t = Object.keys(a);
1421
1422
  if (Object.getOwnPropertySymbols) {
1422
- var e = Object.getOwnPropertySymbols(a);
1423
- i && (e = e.filter(function(n) {
1424
- return Object.getOwnPropertyDescriptor(a, n).enumerable;
1425
- })), t.push.apply(t, e);
1423
+ var n = Object.getOwnPropertySymbols(a);
1424
+ i && (n = n.filter(function(e) {
1425
+ return Object.getOwnPropertyDescriptor(a, e).enumerable;
1426
+ })), t.push.apply(t, n);
1426
1427
  }
1427
1428
  return t;
1428
1429
  }
1429
1430
  function ti(a) {
1430
1431
  for (var i = 1; i < arguments.length; i++) {
1431
1432
  var t = arguments[i] != null ? arguments[i] : {};
1432
- i % 2 ? ii(Object(t), !0).forEach(function(e) {
1433
- ui(a, e, t[e]);
1434
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : ii(Object(t)).forEach(function(e) {
1435
- Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(t, e));
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));
1436
1437
  });
1437
1438
  }
1438
1439
  return a;
@@ -1441,9 +1442,9 @@ function ui(a, i, t) {
1441
1442
  return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
1442
1443
  }
1443
1444
  function ta(a, i) {
1444
- return ot(a) || pt(a, i) || vi(a, i) || nt();
1445
+ return ct(a) || ot(a, i) || vi(a, i) || pt();
1445
1446
  }
1446
- function nt() {
1447
+ function pt() {
1447
1448
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1448
1449
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1449
1450
  }
@@ -1457,74 +1458,74 @@ function vi(a, i) {
1457
1458
  }
1458
1459
  function Ta(a, i) {
1459
1460
  (i == null || i > a.length) && (i = a.length);
1460
- for (var t = 0, e = new Array(i); t < i; t++)
1461
- e[t] = a[t];
1462
- return e;
1461
+ for (var t = 0, n = new Array(i); t < i; t++)
1462
+ n[t] = a[t];
1463
+ return n;
1463
1464
  }
1464
- function pt(a, i) {
1465
+ function ot(a, i) {
1465
1466
  var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1466
1467
  if (t != null) {
1467
- var e = [], n = !0, o = !1, c, r;
1468
+ var n = [], e = !0, o = !1, c, r;
1468
1469
  try {
1469
- for (t = t.call(a); !(n = (c = t.next()).done) && (e.push(c.value), !(i && e.length === i)); n = !0)
1470
+ for (t = t.call(a); !(e = (c = t.next()).done) && (n.push(c.value), !(i && n.length === i)); e = !0)
1470
1471
  ;
1471
1472
  } catch (v) {
1472
1473
  o = !0, r = v;
1473
1474
  } finally {
1474
1475
  try {
1475
- !n && t.return != null && t.return();
1476
+ !e && t.return != null && t.return();
1476
1477
  } finally {
1477
1478
  if (o) throw r;
1478
1479
  }
1479
1480
  }
1480
- return e;
1481
+ return n;
1481
1482
  }
1482
1483
  }
1483
- function ot(a) {
1484
+ function ct(a) {
1484
1485
  if (Array.isArray(a)) return a;
1485
1486
  }
1486
- var ct = typeof Ra == "function" ? Ra : Ra.default, lt = "file-invalid-type", rt = "file-too-large", st = "file-too-small", dt = "too-many-files", mt = function() {
1487
- 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];
1488
- return {
1489
- code: lt,
1490
- message: "File type must be ".concat(e)
1491
- };
1492
- }, ei = function(i) {
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];
1493
1489
  return {
1494
1490
  code: rt,
1495
- message: "File is larger than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
1491
+ message: "File type must be ".concat(n)
1496
1492
  };
1497
1493
  }, ni = function(i) {
1498
1494
  return {
1499
1495
  code: st,
1496
+ message: "File is larger than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
1497
+ };
1498
+ }, ei = function(i) {
1499
+ return {
1500
+ code: dt,
1500
1501
  message: "File is smaller than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
1501
1502
  };
1502
- }, ut = {
1503
- code: dt,
1503
+ }, vt = {
1504
+ code: mt,
1504
1505
  message: "Too many files"
1505
1506
  };
1506
1507
  function fi(a, i) {
1507
- var t = a.type === "application/x-moz-file" || ct(a, i);
1508
- return [t, t ? null : mt(i)];
1508
+ var t = a.type === "application/x-moz-file" || lt(a, i);
1509
+ return [t, t ? null : ut(i)];
1509
1510
  }
1510
1511
  function xi(a, i, t) {
1511
1512
  if (K(a.size))
1512
1513
  if (K(i) && K(t)) {
1513
- if (a.size > t) return [!1, ei(t)];
1514
- if (a.size < i) return [!1, ni(i)];
1514
+ if (a.size > t) return [!1, ni(t)];
1515
+ if (a.size < i) return [!1, ei(i)];
1515
1516
  } else {
1516
- if (K(i) && a.size < i) return [!1, ni(i)];
1517
- if (K(t) && a.size > t) return [!1, ei(t)];
1517
+ if (K(i) && a.size < i) return [!1, ei(i)];
1518
+ if (K(t) && a.size > t) return [!1, ni(t)];
1518
1519
  }
1519
1520
  return [!0, null];
1520
1521
  }
1521
1522
  function K(a) {
1522
1523
  return a != null;
1523
1524
  }
1524
- function vt(a) {
1525
- var i = a.files, t = a.accept, e = a.minSize, n = a.maxSize, o = a.multiple, c = a.maxFiles, r = a.validator;
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;
1526
1527
  return !o && i.length > 1 || o && c >= 1 && i.length > c ? !1 : i.every(function(v) {
1527
- var h = fi(v, t), x = ta(h, 1), k = x[0], P = xi(v, e, n), R = ta(P, 1), j = R[0], I = r ? r(v) : null;
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;
1528
1529
  return k && j && !I;
1529
1530
  });
1530
1531
  }
@@ -1539,37 +1540,37 @@ function xa(a) {
1539
1540
  function pi(a) {
1540
1541
  a.preventDefault();
1541
1542
  }
1542
- function ft(a) {
1543
+ function xt(a) {
1543
1544
  return a.indexOf("MSIE") !== -1 || a.indexOf("Trident/") !== -1;
1544
1545
  }
1545
- function xt(a) {
1546
+ function gt(a) {
1546
1547
  return a.indexOf("Edge/") !== -1;
1547
1548
  }
1548
- function gt() {
1549
+ function bt() {
1549
1550
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1550
- return ft(a) || xt(a);
1551
+ return xt(a) || gt(a);
1551
1552
  }
1552
1553
  function O() {
1553
1554
  for (var a = arguments.length, i = new Array(a), t = 0; t < a; t++)
1554
1555
  i[t] = arguments[t];
1555
- return function(e) {
1556
- for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), c = 1; c < n; c++)
1556
+ return function(n) {
1557
+ for (var e = arguments.length, o = new Array(e > 1 ? e - 1 : 0), c = 1; c < e; c++)
1557
1558
  o[c - 1] = arguments[c];
1558
1559
  return i.some(function(r) {
1559
- return !ya(e) && r && r.apply(void 0, [e].concat(o)), ya(e);
1560
+ return !ya(n) && r && r.apply(void 0, [n].concat(o)), ya(n);
1560
1561
  });
1561
1562
  };
1562
1563
  }
1563
- function bt() {
1564
+ function ht() {
1564
1565
  return "showOpenFilePicker" in window;
1565
1566
  }
1566
- function ht(a) {
1567
+ function yt(a) {
1567
1568
  if (K(a)) {
1568
1569
  var i = Object.entries(a).filter(function(t) {
1569
- var e = ta(t, 2), n = e[0], o = e[1], c = !0;
1570
- return gi(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(bi)) && (console.warn('Skipped "'.concat(n, '" because an invalid file extension was provided.')), c = !1), c;
1571
- }).reduce(function(t, e) {
1572
- var n = ta(e, 2), o = n[0], c = n[1];
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
+ }).reduce(function(t, n) {
1573
+ var e = ta(n, 2), o = e[0], c = e[1];
1573
1574
  return ti(ti({}, t), {}, ui({}, o, c));
1574
1575
  }, {});
1575
1576
  return [{
@@ -1580,19 +1581,19 @@ function ht(a) {
1580
1581
  }
1581
1582
  return a;
1582
1583
  }
1583
- function yt(a) {
1584
+ function wt(a) {
1584
1585
  if (K(a))
1585
1586
  return Object.entries(a).reduce(function(i, t) {
1586
- var e = ta(t, 2), n = e[0], o = e[1];
1587
- return [].concat(ai(i), [n], ai(o));
1587
+ var n = ta(t, 2), e = n[0], o = n[1];
1588
+ return [].concat(ai(i), [e], ai(o));
1588
1589
  }, []).filter(function(i) {
1589
1590
  return gi(i) || bi(i);
1590
1591
  }).join(",");
1591
1592
  }
1592
- function wt(a) {
1593
+ function kt(a) {
1593
1594
  return a instanceof DOMException && (a.name === "AbortError" || a.code === a.ABORT_ERR);
1594
1595
  }
1595
- function kt(a) {
1596
+ function jt(a) {
1596
1597
  return a instanceof DOMException && (a.name === "SecurityError" || a.code === a.SECURITY_ERR);
1597
1598
  }
1598
1599
  function gi(a) {
@@ -1601,24 +1602,24 @@ function gi(a) {
1601
1602
  function bi(a) {
1602
1603
  return /^.*\.[\w]+$/.test(a);
1603
1604
  }
1604
- var jt = ["children"], Dt = ["open"], Et = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], zt = ["refKey", "onChange", "onClick"];
1605
- function At(a) {
1606
- return _t(a) || Ot(a) || hi(a) || Ft();
1605
+ var Dt = ["children"], zt = ["open"], Et = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], At = ["refKey", "onChange", "onClick"];
1606
+ function Ft(a) {
1607
+ return Pt(a) || _t(a) || hi(a) || Ot();
1607
1608
  }
1608
- function Ft() {
1609
+ function Ot() {
1609
1610
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1610
1611
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1611
1612
  }
1612
- function Ot(a) {
1613
+ function _t(a) {
1613
1614
  if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
1614
1615
  }
1615
- function _t(a) {
1616
+ function Pt(a) {
1616
1617
  if (Array.isArray(a)) return Ca(a);
1617
1618
  }
1618
1619
  function Sa(a, i) {
1619
- return Rt(a) || It(a, i) || hi(a, i) || Pt();
1620
+ return St(a) || Rt(a, i) || hi(a, i) || It();
1620
1621
  }
1621
- function Pt() {
1622
+ function It() {
1622
1623
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1623
1624
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1624
1625
  }
@@ -1632,49 +1633,49 @@ function hi(a, i) {
1632
1633
  }
1633
1634
  function Ca(a, i) {
1634
1635
  (i == null || i > a.length) && (i = a.length);
1635
- for (var t = 0, e = new Array(i); t < i; t++)
1636
- e[t] = a[t];
1637
- return e;
1636
+ for (var t = 0, n = new Array(i); t < i; t++)
1637
+ n[t] = a[t];
1638
+ return n;
1638
1639
  }
1639
- function It(a, i) {
1640
+ function Rt(a, i) {
1640
1641
  var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1641
1642
  if (t != null) {
1642
- var e = [], n = !0, o = !1, c, r;
1643
+ var n = [], e = !0, o = !1, c, r;
1643
1644
  try {
1644
- for (t = t.call(a); !(n = (c = t.next()).done) && (e.push(c.value), !(i && e.length === i)); n = !0)
1645
+ for (t = t.call(a); !(e = (c = t.next()).done) && (n.push(c.value), !(i && n.length === i)); e = !0)
1645
1646
  ;
1646
1647
  } catch (v) {
1647
1648
  o = !0, r = v;
1648
1649
  } finally {
1649
1650
  try {
1650
- !n && t.return != null && t.return();
1651
+ !e && t.return != null && t.return();
1651
1652
  } finally {
1652
1653
  if (o) throw r;
1653
1654
  }
1654
1655
  }
1655
- return e;
1656
+ return n;
1656
1657
  }
1657
1658
  }
1658
- function Rt(a) {
1659
+ function St(a) {
1659
1660
  if (Array.isArray(a)) return a;
1660
1661
  }
1661
1662
  function oi(a, i) {
1662
1663
  var t = Object.keys(a);
1663
1664
  if (Object.getOwnPropertySymbols) {
1664
- var e = Object.getOwnPropertySymbols(a);
1665
- i && (e = e.filter(function(n) {
1666
- return Object.getOwnPropertyDescriptor(a, n).enumerable;
1667
- })), t.push.apply(t, e);
1665
+ var n = Object.getOwnPropertySymbols(a);
1666
+ i && (n = n.filter(function(e) {
1667
+ return Object.getOwnPropertyDescriptor(a, e).enumerable;
1668
+ })), t.push.apply(t, n);
1668
1669
  }
1669
1670
  return t;
1670
1671
  }
1671
1672
  function u(a) {
1672
1673
  for (var i = 1; i < arguments.length; i++) {
1673
1674
  var t = arguments[i] != null ? arguments[i] : {};
1674
- i % 2 ? oi(Object(t), !0).forEach(function(e) {
1675
- La(a, e, t[e]);
1676
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : oi(Object(t)).forEach(function(e) {
1677
- Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(t, e));
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));
1678
1679
  });
1679
1680
  }
1680
1681
  return a;
@@ -1684,35 +1685,35 @@ function La(a, i, t) {
1684
1685
  }
1685
1686
  function wa(a, i) {
1686
1687
  if (a == null) return {};
1687
- var t = St(a, i), e, n;
1688
+ var t = qt(a, i), n, e;
1688
1689
  if (Object.getOwnPropertySymbols) {
1689
1690
  var o = Object.getOwnPropertySymbols(a);
1690
- for (n = 0; n < o.length; n++)
1691
- e = o[n], !(i.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(a, e) && (t[e] = a[e]);
1691
+ for (e = 0; e < o.length; e++)
1692
+ n = o[e], !(i.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(a, n) && (t[n] = a[n]);
1692
1693
  }
1693
1694
  return t;
1694
1695
  }
1695
- function St(a, i) {
1696
+ function qt(a, i) {
1696
1697
  if (a == null) return {};
1697
- var t = {}, e = Object.keys(a), n, o;
1698
- for (o = 0; o < e.length; o++)
1699
- n = e[o], !(i.indexOf(n) >= 0) && (t[n] = a[n]);
1698
+ var t = {}, n = Object.keys(a), e, o;
1699
+ for (o = 0; o < n.length; o++)
1700
+ e = n[o], !(i.indexOf(e) >= 0) && (t[e] = a[e]);
1700
1701
  return t;
1701
1702
  }
1702
- var ja = /* @__PURE__ */ Ai(function(a, i) {
1703
- var t = a.children, e = wa(a, jt), n = wi(e), o = n.open, c = wa(n, Dt);
1704
- return Oi(i, 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() {
1705
1706
  return {
1706
1707
  open: o
1707
1708
  };
1708
- }, [o]), /* @__PURE__ */ s.createElement(_i, null, t(u(u({}, c), {}, {
1709
+ }, [o]), /* @__PURE__ */ Ai.createElement(Pi, null, t(u(u({}, c), {}, {
1709
1710
  open: o
1710
1711
  })));
1711
1712
  });
1712
1713
  ja.displayName = "Dropzone";
1713
1714
  var yi = {
1714
1715
  disabled: !1,
1715
- getFilesFromEvent: Bi,
1716
+ getFilesFromEvent: Ni,
1716
1717
  maxSize: 1 / 0,
1717
1718
  minSize: 0,
1718
1719
  multiple: !0,
@@ -1743,7 +1744,7 @@ ja.propTypes = {
1743
1744
  * @param {File[]} params.acceptedFiles Accepted files
1744
1745
  * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
1745
1746
  */
1746
- children: d.func,
1747
+ children: s.func,
1747
1748
  /**
1748
1749
  * Set accepted file types.
1749
1750
  * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
@@ -1751,90 +1752,90 @@ ja.propTypes = {
1751
1752
  * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
1752
1753
  * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
1753
1754
  */
1754
- accept: d.objectOf(d.arrayOf(d.string)),
1755
+ accept: s.objectOf(s.arrayOf(s.string)),
1755
1756
  /**
1756
1757
  * Allow drag 'n' drop (or selection from the file dialog) of multiple files
1757
1758
  */
1758
- multiple: d.bool,
1759
+ multiple: s.bool,
1759
1760
  /**
1760
1761
  * If false, allow dropped items to take over the current browser window
1761
1762
  */
1762
- preventDropOnDocument: d.bool,
1763
+ preventDropOnDocument: s.bool,
1763
1764
  /**
1764
1765
  * If true, disables click to open the native file selection dialog
1765
1766
  */
1766
- noClick: d.bool,
1767
+ noClick: s.bool,
1767
1768
  /**
1768
1769
  * If true, disables SPACE/ENTER to open the native file selection dialog.
1769
1770
  * Note that it also stops tracking the focus state.
1770
1771
  */
1771
- noKeyboard: d.bool,
1772
+ noKeyboard: s.bool,
1772
1773
  /**
1773
1774
  * If true, disables drag 'n' drop
1774
1775
  */
1775
- noDrag: d.bool,
1776
+ noDrag: s.bool,
1776
1777
  /**
1777
1778
  * If true, stops drag event propagation to parents
1778
1779
  */
1779
- noDragEventsBubbling: d.bool,
1780
+ noDragEventsBubbling: s.bool,
1780
1781
  /**
1781
1782
  * Minimum file size (in bytes)
1782
1783
  */
1783
- minSize: d.number,
1784
+ minSize: s.number,
1784
1785
  /**
1785
1786
  * Maximum file size (in bytes)
1786
1787
  */
1787
- maxSize: d.number,
1788
+ maxSize: s.number,
1788
1789
  /**
1789
1790
  * Maximum accepted number of files
1790
1791
  * The default value is 0 which means there is no limitation to how many files are accepted.
1791
1792
  */
1792
- maxFiles: d.number,
1793
+ maxFiles: s.number,
1793
1794
  /**
1794
1795
  * Enable/disable the dropzone
1795
1796
  */
1796
- disabled: d.bool,
1797
+ disabled: s.bool,
1797
1798
  /**
1798
1799
  * Use this to provide a custom file aggregator
1799
1800
  *
1800
1801
  * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
1801
1802
  */
1802
- getFilesFromEvent: d.func,
1803
+ getFilesFromEvent: s.func,
1803
1804
  /**
1804
1805
  * Cb for when closing the file dialog with no selection
1805
1806
  */
1806
- onFileDialogCancel: d.func,
1807
+ onFileDialogCancel: s.func,
1807
1808
  /**
1808
1809
  * Cb for when opening the file dialog
1809
1810
  */
1810
- onFileDialogOpen: d.func,
1811
+ onFileDialogOpen: s.func,
1811
1812
  /**
1812
1813
  * Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
1813
1814
  * to open the file picker instead of using an `<input type="file">` click event.
1814
1815
  */
1815
- useFsAccessApi: d.bool,
1816
+ useFsAccessApi: s.bool,
1816
1817
  /**
1817
1818
  * Set to true to focus the root element on render
1818
1819
  */
1819
- autoFocus: d.bool,
1820
+ autoFocus: s.bool,
1820
1821
  /**
1821
1822
  * Cb for when the `dragenter` event occurs.
1822
1823
  *
1823
1824
  * @param {DragEvent} event
1824
1825
  */
1825
- onDragEnter: d.func,
1826
+ onDragEnter: s.func,
1826
1827
  /**
1827
1828
  * Cb for when the `dragleave` event occurs
1828
1829
  *
1829
1830
  * @param {DragEvent} event
1830
1831
  */
1831
- onDragLeave: d.func,
1832
+ onDragLeave: s.func,
1832
1833
  /**
1833
1834
  * Cb for when the `dragover` event occurs
1834
1835
  *
1835
1836
  * @param {DragEvent} event
1836
1837
  */
1837
- onDragOver: d.func,
1838
+ onDragOver: s.func,
1838
1839
  /**
1839
1840
  * Cb for when the `drop` event occurs.
1840
1841
  * Note that this callback is invoked after the `getFilesFromEvent` callback is done.
@@ -1865,7 +1866,7 @@ ja.propTypes = {
1865
1866
  * @param {FileRejection[]} fileRejections
1866
1867
  * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
1867
1868
  */
1868
- onDrop: d.func,
1869
+ onDrop: s.func,
1869
1870
  /**
1870
1871
  * Cb for when the `drop` event occurs.
1871
1872
  * Note that if no files are accepted, this callback is not invoked.
@@ -1873,7 +1874,7 @@ ja.propTypes = {
1873
1874
  * @param {File[]} files
1874
1875
  * @param {(DragEvent|Event)} event
1875
1876
  */
1876
- onDropAccepted: d.func,
1877
+ onDropAccepted: s.func,
1877
1878
  /**
1878
1879
  * Cb for when the `drop` event occurs.
1879
1880
  * Note that if no files are rejected, this callback is not invoked.
@@ -1881,19 +1882,19 @@ ja.propTypes = {
1881
1882
  * @param {FileRejection[]} fileRejections
1882
1883
  * @param {(DragEvent|Event)} event
1883
1884
  */
1884
- onDropRejected: d.func,
1885
+ onDropRejected: s.func,
1885
1886
  /**
1886
1887
  * Cb for when there's some error from any of the promises.
1887
1888
  *
1888
1889
  * @param {Error} error
1889
1890
  */
1890
- onError: d.func,
1891
+ onError: s.func,
1891
1892
  /**
1892
1893
  * Custom validation function. It must return null if there's no errors.
1893
1894
  * @param {File} file
1894
1895
  * @returns {FileError|FileError[]|null}
1895
1896
  */
1896
- validator: d.func
1897
+ validator: s.func
1897
1898
  };
1898
1899
  var $a = {
1899
1900
  isFocused: !1,
@@ -1905,15 +1906,15 @@ var $a = {
1905
1906
  fileRejections: []
1906
1907
  };
1907
1908
  function wi() {
1908
- var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = u(u({}, yi), a), t = i.accept, e = i.disabled, n = 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, ea = i.useFsAccessApi, na = i.autoFocus, Z = i.preventDropOnDocument, D = i.noClick, S = i.noKeyboard, W = i.noDrag, z = i.noDragEventsBubbling, J = i.onError, C = i.validator, L = V(function() {
1909
- return yt(t);
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
+ return wt(t);
1910
1911
  }, [t]), pa = V(function() {
1911
- return ht(t);
1912
+ return yt(t);
1912
1913
  }, [t]), X = V(function() {
1913
1914
  return typeof T == "function" ? T : ci;
1914
1915
  }, [T]), $ = V(function() {
1915
1916
  return typeof I == "function" ? I : ci;
1916
- }, [I]), b = va(null), y = va(null), oa = Fi(qt, $a), ca = Sa(oa, 2), A = ca[0], m = ca[1], F = A.isFocused, la = A.isFileDialogActive, B = va(typeof window < "u" && window.isSecureContext && ea && bt()), Q = function() {
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() {
1917
1918
  !B.current && la && setTimeout(function() {
1918
1919
  if (y.current) {
1919
1920
  var l = y.current.files;
@@ -1936,15 +1937,15 @@ function wi() {
1936
1937
  Z && (document.removeEventListener("dragover", pi), document.removeEventListener("drop", Ma));
1937
1938
  };
1938
1939
  }, [b, Z]), ia(function() {
1939
- return !e && na && b.current && b.current.focus(), function() {
1940
+ return !n && ea && b.current && b.current.focus(), function() {
1940
1941
  };
1941
- }, [b, na, e]);
1942
- var M = E(function(p) {
1942
+ }, [b, ea, n]);
1943
+ var M = z(function(p) {
1943
1944
  J ? J(p) : console.error(p);
1944
- }, [J]), Ka = E(function(p) {
1945
- p.preventDefault(), p.persist(), ma(p), q.current = [].concat(At(q.current), [p.target]), xa(p) && Promise.resolve(n(p)).then(function(l) {
1946
- if (!(ya(p) && !z)) {
1947
- var f = l.length, g = f > 0 && vt({
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
+ var f = l.length, g = f > 0 && ft({
1948
1949
  files: l,
1949
1950
  accept: L,
1950
1951
  minSize: c,
@@ -1963,7 +1964,7 @@ function wi() {
1963
1964
  }).catch(function(l) {
1964
1965
  return M(l);
1965
1966
  });
1966
- }, [n, h, M, z, L, c, o, r, v, C]), Ha = E(function(p) {
1967
+ }, [e, h, M, E, L, c, o, r, v, C]), Ha = z(function(p) {
1967
1968
  p.preventDefault(), p.persist(), ma(p);
1968
1969
  var l = xa(p);
1969
1970
  if (l && p.dataTransfer)
@@ -1972,7 +1973,7 @@ function wi() {
1972
1973
  } catch {
1973
1974
  }
1974
1975
  return l && k && k(p), !1;
1975
- }, [k, z]), Wa = E(function(p) {
1976
+ }, [k, E]), Wa = z(function(p) {
1976
1977
  p.preventDefault(), p.persist(), ma(p);
1977
1978
  var l = q.current.filter(function(g) {
1978
1979
  return b.current && b.current.contains(g);
@@ -1983,25 +1984,25 @@ function wi() {
1983
1984
  isDragAccept: !1,
1984
1985
  isDragReject: !1
1985
1986
  }), xa(p) && x && x(p));
1986
- }, [b, x, z]), ra = E(function(p, l) {
1987
+ }, [b, x, E]), ra = z(function(p, l) {
1987
1988
  var f = [], g = [];
1988
1989
  p.forEach(function(w) {
1989
- var aa = fi(w, L), Y = Sa(aa, 2), Ea = Y[0], za = Y[1], Aa = xi(w, c, o), ua = Sa(Aa, 2), Fa = ua[0], Oa = ua[1], _a = C ? C(w) : null;
1990
- if (Ea && Fa && !_a)
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)
1991
1992
  f.push(w);
1992
1993
  else {
1993
- var Pa = [za, Oa];
1994
+ var Pa = [Ea, Oa];
1994
1995
  _a && (Pa = Pa.concat(_a)), g.push({
1995
1996
  file: w,
1996
- errors: Pa.filter(function(zi) {
1997
- return zi;
1997
+ errors: Pa.filter(function(Ei) {
1998
+ return Ei;
1998
1999
  })
1999
2000
  });
2000
2001
  }
2001
2002
  }), (!r && f.length > 1 || r && v >= 1 && f.length > v) && (f.forEach(function(w) {
2002
2003
  g.push({
2003
2004
  file: w,
2004
- errors: [ut]
2005
+ errors: [vt]
2005
2006
  });
2006
2007
  }), f.splice(0)), m({
2007
2008
  acceptedFiles: f,
@@ -2009,15 +2010,15 @@ function wi() {
2009
2010
  isDragReject: g.length > 0,
2010
2011
  type: "setFiles"
2011
2012
  }), P && P(f, g, l), g.length > 0 && j && j(g, l), f.length > 0 && R && R(f, l);
2012
- }, [m, r, L, c, o, v, P, R, j, C]), sa = E(function(p) {
2013
- p.preventDefault(), p.persist(), ma(p), q.current = [], xa(p) && Promise.resolve(n(p)).then(function(l) {
2014
- ya(p) && !z || ra(l, p);
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);
2015
2016
  }).catch(function(l) {
2016
2017
  return M(l);
2017
2018
  }), m({
2018
2019
  type: "reset"
2019
2020
  });
2020
- }, [n, ra, M, z]), N = E(function() {
2021
+ }, [e, ra, M, E]), N = z(function() {
2021
2022
  if (B.current) {
2022
2023
  m({
2023
2024
  type: "openDialog"
@@ -2027,63 +2028,63 @@ function wi() {
2027
2028
  types: pa
2028
2029
  };
2029
2030
  window.showOpenFilePicker(p).then(function(l) {
2030
- return n(l);
2031
+ return e(l);
2031
2032
  }).then(function(l) {
2032
2033
  ra(l, null), m({
2033
2034
  type: "closeDialog"
2034
2035
  });
2035
2036
  }).catch(function(l) {
2036
- wt(l) ? ($(l), m({
2037
+ kt(l) ? ($(l), m({
2037
2038
  type: "closeDialog"
2038
- })) : kt(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);
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);
2039
2040
  });
2040
2041
  return;
2041
2042
  }
2042
2043
  y.current && (m({
2043
2044
  type: "openDialog"
2044
2045
  }), X(), y.current.value = null, y.current.click());
2045
- }, [m, X, $, ea, ra, M, pa, r]), Ba = E(function(p) {
2046
+ }, [m, X, $, na, ra, M, pa, r]), Ba = z(function(p) {
2046
2047
  !b.current || !b.current.isEqualNode(p.target) || (p.key === " " || p.key === "Enter" || p.keyCode === 32 || p.keyCode === 13) && (p.preventDefault(), N());
2047
- }, [b, N]), Na = E(function() {
2048
+ }, [b, N]), Na = z(function() {
2048
2049
  m({
2049
2050
  type: "focus"
2050
2051
  });
2051
- }, []), Ua = E(function() {
2052
+ }, []), Ua = z(function() {
2052
2053
  m({
2053
2054
  type: "blur"
2054
2055
  });
2055
- }, []), Ya = E(function() {
2056
- D || (gt() ? setTimeout(N, 0) : N());
2056
+ }, []), Ya = z(function() {
2057
+ D || (bt() ? setTimeout(N, 0) : N());
2057
2058
  }, [D, N]), U = function(l) {
2058
- return e ? null : l;
2059
+ return n ? null : l;
2059
2060
  }, Da = function(l) {
2060
2061
  return S ? null : U(l);
2061
2062
  }, da = function(l) {
2062
2063
  return W ? null : U(l);
2063
2064
  }, ma = function(l) {
2064
- z && l.stopPropagation();
2065
+ E && l.stopPropagation();
2065
2066
  }, ji = V(function() {
2066
2067
  return function() {
2067
- 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, Ea = p.onClick, za = p.onDragEnter, Aa = p.onDragOver, ua = p.onDragLeave, Fa = p.onDrop, Oa = wa(p, Et);
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);
2068
2069
  return u(u(La({
2069
2070
  onKeyDown: Da(O(w, Ba)),
2070
2071
  onFocus: Da(O(aa, Na)),
2071
2072
  onBlur: Da(O(Y, Ua)),
2072
- onClick: U(O(Ea, Ya)),
2073
- onDragEnter: da(O(za, Ka)),
2073
+ onClick: U(O(za, Ya)),
2074
+ onDragEnter: da(O(Ea, Ka)),
2074
2075
  onDragOver: da(O(Aa, Ha)),
2075
2076
  onDragLeave: da(O(ua, Wa)),
2076
2077
  onDrop: da(O(Fa, sa)),
2077
2078
  role: typeof g == "string" && g !== "" ? g : "presentation"
2078
- }, f, b), !e && !S ? {
2079
+ }, f, b), !n && !S ? {
2079
2080
  tabIndex: 0
2080
2081
  } : {}), Oa);
2081
2082
  };
2082
- }, [b, Ba, Na, Ua, Ya, Ka, Ha, Wa, sa, S, W, e]), Di = E(function(p) {
2083
+ }, [b, Ba, Na, Ua, Ya, Ka, Ha, Wa, sa, S, W, n]), Di = z(function(p) {
2083
2084
  p.stopPropagation();
2084
- }, []), Ei = V(function() {
2085
+ }, []), zi = V(function() {
2085
2086
  return function() {
2086
- 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, zt), Y = La({
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({
2087
2088
  accept: L,
2088
2089
  multiple: r,
2089
2090
  type: "file",
@@ -2105,17 +2106,17 @@ function wi() {
2105
2106
  }, f, y);
2106
2107
  return u(u({}, Y), aa);
2107
2108
  };
2108
- }, [y, t, r, sa, e]);
2109
+ }, [y, t, r, sa, n]);
2109
2110
  return u(u({}, A), {}, {
2110
- isFocused: F && !e,
2111
+ isFocused: F && !n,
2111
2112
  getRootProps: ji,
2112
- getInputProps: Ei,
2113
+ getInputProps: zi,
2113
2114
  rootRef: b,
2114
2115
  inputRef: y,
2115
2116
  open: U(N)
2116
2117
  });
2117
2118
  }
2118
- function qt(a, i) {
2119
+ function Tt(a, i) {
2119
2120
  switch (i.type) {
2120
2121
  case "focus":
2121
2122
  return u(u({}, a), {}, {
@@ -2153,7 +2154,33 @@ function qt(a, i) {
2153
2154
  }
2154
2155
  function ci() {
2155
2156
  }
2156
- const Tt = ka.divBox.withConfig({ shouldForwardProp: Ii })(
2157
+ const Ct = ({
2158
+ file: a,
2159
+ fileName: i,
2160
+ forceFileType: t,
2161
+ previewButtonText: n = "Preview"
2162
+ }) => {
2163
+ const e = typeof a == "string", o = $i(a, t), c = a instanceof File ? Mi(a) : null, r = e && i ? i : si(a);
2164
+ return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
2165
+ /* @__PURE__ */ d.jsx(o, { color: "neutral-90", h: 50, mb: "lg", w: 50 }),
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: [
2169
+ /* @__PURE__ */ d.jsx("span", { children: n }),
2170
+ /* @__PURE__ */ d.jsx(Ki, {})
2171
+ ] }) : null
2172
+ ] });
2173
+ }, li = ({
2174
+ disabled: a,
2175
+ fileButtonText: i = "Browse file",
2176
+ hint: t = "Drag & drop a file here or",
2177
+ openFile: n,
2178
+ title: e = "Add file"
2179
+ }) => /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
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 })(
2157
2184
  ({ disabled: a, isDragAccept: i, isDragReject: t }) => Ia`
2158
2185
  ${_("defaultFields.default")};
2159
2186
  ${_("fileDrops.default")};
@@ -2178,7 +2205,7 @@ const Tt = ka.divBox.withConfig({ shouldForwardProp: Ii })(
2178
2205
  ${_("fileDrops.disabled")};
2179
2206
  `};
2180
2207
  `
2181
- ), Ct = ka.div`
2208
+ ), $t = ka.div`
2182
2209
  width: 100%;
2183
2210
  height: 100%;
2184
2211
  display: flex;
@@ -2189,39 +2216,25 @@ const Tt = ka.divBox.withConfig({ shouldForwardProp: Ii })(
2189
2216
  max-height: 100%;
2190
2217
  max-width: 100%;
2191
2218
  object-fit: contain;
2192
- `, Lt = ka.div`
2219
+ `, Mt = ka.div`
2193
2220
  position: absolute;
2194
2221
  top: ${_.space("md")};
2195
2222
  right: ${_.space("md")};
2196
2223
  display: flex;
2197
2224
  gap: xs;
2198
- `, li = ({
2199
- disabled: a,
2200
- fileButtonText: i = "Browse file",
2201
- hint: t = "Drag & drop a file here or",
2202
- openFile: e,
2203
- title: n = "Add file"
2204
- }) => /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(ga, { color: "neutral-90", m: "0", variant: "h4" }, n), /* @__PURE__ */ s.createElement(ga, { color: "beige-70", m: "0", mt: "xs", variant: "sm" }, t), /* @__PURE__ */ s.createElement(ba, { disabled: a, mt: "lg", onClick: e, type: "button" }, i)), $t = ({
2205
- file: a,
2206
- fileName: i,
2207
- forceFileType: t,
2208
- previewButtonText: e = "Preview"
2209
- }) => {
2210
- const n = typeof a == "string", o = qi(a, t), c = a instanceof File ? Ti(a) : null, r = n && i ? i : si(a);
2211
- return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(o, { color: "neutral-90", h: 50, mb: "lg", w: 50 }), /* @__PURE__ */ s.createElement(ga, { color: "neutral-90", lines: 1, m: 0, maxWidth: 600, variant: "h4" }, r), !n && /* @__PURE__ */ s.createElement(ga, { color: "beige-70", fontWeight: "medium", lines: 1, m: 0, variant: "sm" }, c), n && /* @__PURE__ */ s.createElement(ba, { as: "a", href: a, mt: "md", rel: "noopener", size: "sm", target: "_blank" }, /* @__PURE__ */ s.createElement("span", null, e), /* @__PURE__ */ s.createElement(Si, null)));
2212
- }, Mt = ({
2225
+ `, Kt = ({
2213
2226
  disabled: a,
2214
2227
  error: i,
2215
2228
  file: t,
2216
- fileName: e,
2217
- fileUrl: n,
2229
+ fileName: n,
2230
+ fileUrl: e,
2218
2231
  forceFileType: o,
2219
2232
  isAnImage: c,
2220
2233
  isHoverAccept: r,
2221
2234
  isHoverReject: v,
2222
2235
  openFile: h,
2223
2236
  wordings: x
2224
- }) => r ? /* @__PURE__ */ s.createElement(Ci, null) : v ? /* @__PURE__ */ s.createElement(Li, null) : i ? /* @__PURE__ */ s.createElement(li, { openFile: h, ...x }) : n ? c ? /* @__PURE__ */ s.createElement(ki, { src: n }) : /* @__PURE__ */ s.createElement($t, { file: t, fileName: e, forceFileType: o, ...x }) : /* @__PURE__ */ s.createElement(li, { disabled: a, openFile: h, ...x }), ri = /\.(jpeg|jpg|gif|png|webp)$/, Kt = (a) => a ? typeof a == "string" ? !!si(a).match(ri) : a.name ? !!a.name.match(ri) : !1 : !1, Ht = (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) => {
2225
2238
  let i;
2226
2239
  if (a instanceof File ? i = a.preview : i = a, typeof i != "string" || i.startsWith("blob:"))
2227
2240
  return i;
@@ -2231,37 +2244,37 @@ const Tt = ka.divBox.withConfig({ shouldForwardProp: Ii })(
2231
2244
  } catch {
2232
2245
  return;
2233
2246
  }
2234
- }, Wt = wi || ja.useDropzone, Bt = 2e6, Nt = "ERROR_INVALID_TYPE", Ut = "ERROR_INVALID_SIZE", Yt = Ri(
2247
+ }, Bt = wi || ja.useDropzone, Nt = 2e6, Ut = "ERROR_INVALID_TYPE", Yt = "ERROR_INVALID_SIZE", Vt = Li(
2235
2248
  ({
2236
2249
  accept: a = {
2237
2250
  "image/*": []
2238
2251
  },
2239
- children: i = Mt,
2252
+ children: i = Kt,
2240
2253
  dataTestId: t,
2241
- disabled: e,
2242
- fileName: n,
2254
+ disabled: n,
2255
+ fileName: e,
2243
2256
  forceFileType: o,
2244
2257
  handleAddFile: c,
2245
2258
  handleRemoveFile: r,
2246
2259
  isClearable: v,
2247
2260
  isEditable: h,
2248
- maxSize: x = Bt,
2261
+ maxSize: x = Nt,
2249
2262
  multiple: k,
2250
2263
  name: P,
2251
2264
  onBlur: R,
2252
2265
  onChange: j,
2253
2266
  onError: I,
2254
2267
  value: T,
2255
- wordings: ea,
2256
- ...na
2268
+ wordings: na,
2269
+ ...ea
2257
2270
  }, Z) => {
2258
- const [D, S] = Va(T), [W, z] = Va(void 0);
2271
+ const [D, S] = Va(T), [W, E] = Va(void 0);
2259
2272
  ia(() => {
2260
2273
  S(T);
2261
2274
  }, [T]), ia(() => () => D && D instanceof File && URL.revokeObjectURL(D.preview), [D]);
2262
2275
  const J = (A) => {
2263
2276
  const [m] = A;
2264
- m instanceof File && (m.preview = URL.createObjectURL(m)), S(m), z(null);
2277
+ m instanceof File && (m.preview = URL.createObjectURL(m)), S(m), E(null);
2265
2278
  const F = Ga({ name: P, value: m });
2266
2279
  j && j(F), c && c(F);
2267
2280
  }, C = (A, m) => {
@@ -2269,64 +2282,72 @@ const Tt = ka.divBox.withConfig({ shouldForwardProp: Ii })(
2269
2282
  A.map(({ errors: la }) => {
2270
2283
  la.map((B) => {
2271
2284
  const { code: Q, message: q } = B;
2272
- Q === "file-invalid-type" ? F = Nt : Q === "file-too-large" ? F = Ut : F = q;
2285
+ Q === "file-invalid-type" ? F = Ut : Q === "file-too-large" ? F = Yt : F = q;
2273
2286
  });
2274
- }), S(null), z(F), I && I(F), j && j(m), R && R();
2287
+ }), S(null), E(F), I && I(F), j && j(m), R && R();
2275
2288
  }, L = (A) => {
2276
- A.preventDefault(), S(null), z(null);
2289
+ A.preventDefault(), S(null), E(null);
2277
2290
  const m = Ga({ name: P, value: null });
2278
2291
  j && j(m), r && r(m);
2279
- }, { getInputProps: pa, getRootProps: X, isDragAccept: $, isDragActive: b, isDragReject: y, open: oa } = Wt({
2292
+ }, { getInputProps: pa, getRootProps: X, isDragAccept: $, isDragActive: b, isDragReject: y, open: oa } = Bt({
2280
2293
  accept: a,
2281
- disabled: e,
2294
+ disabled: n,
2282
2295
  maxSize: x,
2283
2296
  multiple: k,
2284
2297
  noClick: !0,
2285
2298
  onDropAccepted: J,
2286
2299
  onDropRejected: C
2287
2300
  }), ca = (A) => I(A);
2288
- return /* @__PURE__ */ s.createElement(
2289
- Tt,
2301
+ return /* @__PURE__ */ d.jsxs(
2302
+ Lt,
2290
2303
  {
2291
2304
  ...X({
2292
2305
  "data-testid": t,
2306
+ disabled: n,
2293
2307
  handleRemoveFile: r,
2294
- isEditable: h,
2295
- isDragActive: b,
2308
+ isClearable: v,
2296
2309
  isDragAccept: $,
2310
+ isDragActive: b,
2297
2311
  isDragReject: y,
2298
- isClearable: v,
2299
- disabled: e,
2312
+ isEditable: h,
2300
2313
  ref: Z
2301
2314
  }),
2302
- ...na
2303
- },
2304
- /* @__PURE__ */ s.createElement(
2305
- "input",
2306
- {
2307
- ...pa({ disabled: e, multiple: k, name: P, onError: ca }),
2308
- style: { display: "block", opacity: 0, height: 0, width: 0 }
2309
- }
2310
- ),
2311
- /* @__PURE__ */ s.createElement(Ct, null, i({
2312
- disabled: e,
2313
- error: W,
2314
- file: D,
2315
- fileName: n,
2316
- fileUrl: D && Ht(D),
2317
- forceFileType: o,
2318
- isAnImage: o === "image" || Kt(D),
2319
- isHoverAccept: $,
2320
- isHoverReject: y,
2321
- openFile: oa,
2322
- wordings: ea
2323
- }), !!D && (W || h || v) && /* @__PURE__ */ s.createElement(Lt, null, (W || h) && /* @__PURE__ */ s.createElement(ba, { onClick: oa, shape: "circle", size: "sm", type: "button", variant: "tertiary" }, /* @__PURE__ */ s.createElement($i, null)), v && /* @__PURE__ */ s.createElement(ba, { danger: !0, onClick: L, shape: "circle", size: "sm", type: "button" }, /* @__PURE__ */ s.createElement(Mi, null))))
2315
+ ...ea,
2316
+ children: [
2317
+ /* @__PURE__ */ d.jsx(
2318
+ "input",
2319
+ {
2320
+ ...pa({ disabled: n, multiple: k, name: P, onError: ca }),
2321
+ style: { display: "block", height: 0, opacity: 0, width: 0 }
2322
+ }
2323
+ ),
2324
+ /* @__PURE__ */ d.jsxs($t, { children: [
2325
+ i({
2326
+ disabled: n,
2327
+ error: W,
2328
+ file: D,
2329
+ fileName: e,
2330
+ fileUrl: D && Wt(D),
2331
+ forceFileType: o,
2332
+ isAnImage: o === "image" || Ht(D),
2333
+ isHoverAccept: $,
2334
+ isHoverReject: y,
2335
+ openFile: oa,
2336
+ wordings: na
2337
+ }),
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
2341
+ ] }) : null
2342
+ ] })
2343
+ ]
2344
+ }
2324
2345
  );
2325
2346
  }
2326
2347
  );
2327
- Yt.displayName = "FileDrop";
2328
- const oe = ki;
2348
+ Vt.displayName = "FileDrop";
2349
+ const rn = ki;
2329
2350
  export {
2330
- Yt as FileDrop,
2331
- oe as ImagePreview
2351
+ Vt as FileDrop,
2352
+ rn as ImagePreview
2332
2353
  };