@lanaco/lnc-react-ui 4.0.198 → 4.0.200

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 (247) hide show
  1. package/dist/Accordion.cjs +5 -5
  2. package/dist/Accordion.js +45 -56
  3. package/dist/AccordionDetails.cjs +3 -3
  4. package/dist/AccordionDetails.js +11 -25
  5. package/dist/AccordionSummary.cjs +4 -4
  6. package/dist/AccordionSummary.js +34 -44
  7. package/dist/ActionsToolbar.cjs +2 -3
  8. package/dist/ActionsToolbar.js +83 -135
  9. package/dist/Alert.cjs +10 -10
  10. package/dist/Alert.js +32 -64
  11. package/dist/Avatar.cjs +9 -9
  12. package/dist/Avatar.js +33 -72
  13. package/dist/Badge.cjs +6 -6
  14. package/dist/Badge.js +22 -47
  15. package/dist/BlogCategoryCardsSection.cjs +1 -1
  16. package/dist/BlogCategoryCardsSection.js +12 -14
  17. package/dist/BlogExploreSection.cjs +1 -1
  18. package/dist/BlogExploreSection.js +1 -1
  19. package/dist/BlogsSectionWithFilters.cjs +1 -1
  20. package/dist/BlogsSectionWithFilters.js +1 -1
  21. package/dist/Breadcrumbs.cjs +5 -5
  22. package/dist/Breadcrumbs.js +57 -87
  23. package/dist/Button.cjs +11 -11
  24. package/dist/Button.js +126 -173
  25. package/dist/ButtonGroup.cjs +8 -8
  26. package/dist/ButtonGroup.js +37 -49
  27. package/dist/CalorieCalculatorSection.cjs +8 -8
  28. package/dist/CalorieCalculatorSection.js +90 -97
  29. package/dist/CheckBoxInput.cjs +1 -1
  30. package/dist/CheckBoxInput.js +2 -5
  31. package/dist/Chip.cjs +14 -14
  32. package/dist/Chip.js +73 -111
  33. package/dist/ConfirmationForm.cjs +6 -6
  34. package/dist/ConfirmationForm.js +67 -109
  35. package/dist/ContactSection.cjs +1 -0
  36. package/dist/ContactSection.js +1 -0
  37. package/dist/Content.cjs +1 -1
  38. package/dist/Content.js +7 -15
  39. package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
  40. package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
  41. package/dist/DataView.cjs +1 -1
  42. package/dist/DataView.js +30 -50
  43. package/dist/DateInput.cjs +4 -4
  44. package/dist/DateInput.js +1347 -1383
  45. package/dist/DecimalInput.cjs +6 -6
  46. package/dist/DecimalInput.js +210 -263
  47. package/dist/DecimalInputV2.cjs +23 -23
  48. package/dist/DecimalInputV2.js +119 -176
  49. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  50. package/dist/DetailedProductsInfinitiveSection.js +1 -1
  51. package/dist/DetailedProductsSection.cjs +1 -1
  52. package/dist/DetailedProductsSection.js +1 -1
  53. package/dist/DetailsView.cjs +9 -9
  54. package/dist/DetailsView.js +111 -162
  55. package/dist/DoubleRangeSlider.cjs +22 -22
  56. package/dist/DoubleRangeSlider.js +70 -95
  57. package/dist/DragAndDropFile.cjs +10 -10
  58. package/dist/DragAndDropFile.js +347 -402
  59. package/dist/DragDropFiles.cjs +4 -4
  60. package/dist/DragDropFiles.js +70 -124
  61. package/dist/Drawer.cjs +5 -5
  62. package/dist/Drawer.js +97 -135
  63. package/dist/Dropdown.cjs +1 -1
  64. package/dist/Dropdown.js +44 -213
  65. package/dist/DropdownItem.cjs +14 -14
  66. package/dist/DropdownItem.js +106 -142
  67. package/dist/DropdownLookup.cjs +1 -1
  68. package/dist/DropdownLookup.js +61 -242
  69. package/dist/DropdownMenu.cjs +4 -4
  70. package/dist/DropdownMenu.js +87 -149
  71. package/dist/EditableTable.cjs +10 -10
  72. package/dist/EditableTable.js +165 -331
  73. package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
  74. package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
  75. package/dist/FaqSection.cjs +3 -3
  76. package/dist/FaqSection.js +119 -153
  77. package/dist/FileInput.cjs +7 -7
  78. package/dist/FileInput.js +66 -94
  79. package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
  80. package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
  81. package/dist/FlexBox.cjs +6 -6
  82. package/dist/FlexBox.js +28 -63
  83. package/dist/FlexGrid.cjs +1 -1
  84. package/dist/FlexGrid.js +27 -67
  85. package/dist/FlexGridItem.cjs +6 -6
  86. package/dist/FlexGridItem.js +34 -62
  87. package/dist/Footer.cjs +1 -1
  88. package/dist/Footer.js +7 -15
  89. package/dist/FormField.cjs +7 -7
  90. package/dist/FormField.js +22 -47
  91. package/dist/FormView.cjs +6 -6
  92. package/dist/FormView.js +148 -195
  93. package/dist/Grid.cjs +2 -2
  94. package/dist/Grid.js +40 -65
  95. package/dist/GridItem.cjs +2 -2
  96. package/dist/GridItem.js +47 -80
  97. package/dist/Header.cjs +1 -1
  98. package/dist/Header.js +7 -15
  99. package/dist/HelpBannerSection.cjs +3 -3
  100. package/dist/HelpBannerSection.js +9 -15
  101. package/dist/Icon.cjs +4 -4
  102. package/dist/Icon.js +29 -55
  103. package/dist/IconButton.cjs +9 -9
  104. package/dist/IconButton.js +89 -127
  105. package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
  106. package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
  107. package/dist/Kanban.cjs +7 -7
  108. package/dist/Kanban.js +2033 -2098
  109. package/dist/KanbanActionsToolbar.cjs +4 -5
  110. package/dist/KanbanActionsToolbar.js +61 -96
  111. package/dist/KanbanCard-B9V9EjVE.js +137 -0
  112. package/dist/KanbanCard-DihrKn-I.cjs +30 -0
  113. package/dist/KanbanCard.cjs +1 -1
  114. package/dist/KanbanCard.js +2 -3
  115. package/dist/KanbanFooter.cjs +3 -3
  116. package/dist/KanbanFooter.js +37 -55
  117. package/dist/KanbanHeader.cjs +4 -4
  118. package/dist/KanbanHeader.js +49 -81
  119. package/dist/KanbanView.cjs +2 -2
  120. package/dist/KanbanView.js +106 -173
  121. package/dist/Link.cjs +7 -7
  122. package/dist/Link.js +20 -37
  123. package/dist/LocationSearchSection.cjs +1 -1
  124. package/dist/LocationSearchSection.js +1 -1
  125. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  126. package/dist/MasonryGeneralCardsSection.js +1 -1
  127. package/dist/MenuItem.cjs +13 -13
  128. package/dist/MenuItem.js +101 -139
  129. package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
  130. package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
  131. package/dist/Modal.cjs +18 -19
  132. package/dist/Modal.js +131 -166
  133. package/dist/MultiSelectDropdown.cjs +1 -1
  134. package/dist/MultiSelectDropdown.js +25 -196
  135. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  136. package/dist/MultiSelectDropdownLookup.js +27 -209
  137. package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
  138. package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
  139. package/dist/NestedDropdownItem.cjs +3 -3
  140. package/dist/NestedDropdownItem.js +45 -67
  141. package/dist/NestedMenuItem.cjs +5 -5
  142. package/dist/NestedMenuItem.js +51 -78
  143. package/dist/NotificationContainer.cjs +10 -10
  144. package/dist/NotificationContainer.js +46 -79
  145. package/dist/NotificationMessage.cjs +2 -2
  146. package/dist/NotificationMessage.js +47 -64
  147. package/dist/NumberInput.cjs +23 -23
  148. package/dist/NumberInput.js +89 -149
  149. package/dist/PageLayout.cjs +2 -2
  150. package/dist/PageLayout.js +20 -28
  151. package/dist/Pagination.cjs +3 -3
  152. package/dist/Pagination.js +102 -185
  153. package/dist/PasswordInput.cjs +23 -23
  154. package/dist/PasswordInput.js +108 -137
  155. package/dist/Popover.cjs +1 -1
  156. package/dist/Popover.js +7 -32
  157. package/dist/PopoverContent.cjs +5 -5
  158. package/dist/PopoverContent.js +22 -28
  159. package/dist/PopoverTrigger.cjs +1 -1
  160. package/dist/PopoverTrigger.js +7 -12
  161. package/dist/ProgressBar.cjs +8 -8
  162. package/dist/ProgressBar.js +32 -59
  163. package/dist/RadioGroup.cjs +3 -3
  164. package/dist/RadioGroup.js +41 -72
  165. package/dist/RadioInput.cjs +28 -28
  166. package/dist/RadioInput.js +78 -123
  167. package/dist/RangeSlider.cjs +19 -19
  168. package/dist/RangeSlider.js +92 -119
  169. package/dist/ReviewsSection.cjs +13 -13
  170. package/dist/ReviewsSection.js +81 -101
  171. package/dist/SalesCampaignsSection.cjs +19 -19
  172. package/dist/SalesCampaignsSection.js +283 -324
  173. package/dist/SearchBar.cjs +10 -10
  174. package/dist/SearchBar.js +168 -188
  175. package/dist/SearchSection-B94YN_6P.cjs +161 -0
  176. package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
  177. package/dist/SearchSection.cjs +1 -1
  178. package/dist/SearchSection.js +2 -3
  179. package/dist/Separator.cjs +3 -3
  180. package/dist/Separator.js +14 -19
  181. package/dist/Sidebar.cjs +4 -5
  182. package/dist/Sidebar.js +33 -56
  183. package/dist/SimpleCategoriesSection.cjs +1 -1
  184. package/dist/SimpleCategoriesSection.js +1 -1
  185. package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
  186. package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
  187. package/dist/Spinner.cjs +18 -18
  188. package/dist/Spinner.js +37 -54
  189. package/dist/StatsSection.cjs +6 -6
  190. package/dist/StatsSection.js +15 -25
  191. package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
  192. package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
  193. package/dist/Surface.cjs +4 -4
  194. package/dist/Surface.js +19 -34
  195. package/dist/SwipeableDrawer.cjs +8 -8
  196. package/dist/SwipeableDrawer.js +84 -136
  197. package/dist/TabItem.cjs +11 -11
  198. package/dist/TabItem.js +83 -118
  199. package/dist/Table.cjs +65 -65
  200. package/dist/Table.js +786 -1167
  201. package/dist/TableView.cjs +2 -2
  202. package/dist/TableView.js +113 -197
  203. package/dist/Tabs.cjs +4 -4
  204. package/dist/Tabs.js +41 -60
  205. package/dist/TextAreaInput.cjs +14 -14
  206. package/dist/TextAreaInput.js +131 -181
  207. package/dist/TextInput.cjs +23 -23
  208. package/dist/TextInput.js +78 -126
  209. package/dist/ThemeProvider.cjs +5 -5
  210. package/dist/ThemeProvider.js +35 -39
  211. package/dist/TimeInput.cjs +7 -7
  212. package/dist/TimeInput.js +46 -72
  213. package/dist/Toggle.cjs +20 -20
  214. package/dist/Toggle.js +78 -109
  215. package/dist/ToggleSection.cjs +6 -5
  216. package/dist/ToggleSection.js +49 -55
  217. package/dist/TreeMenu.cjs +5 -5
  218. package/dist/TreeMenu.js +43 -67
  219. package/dist/TreeMenuSeparator.cjs +3 -3
  220. package/dist/TreeMenuSeparator.js +12 -20
  221. package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
  222. package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
  223. package/dist/UploadedFile.cjs +11 -11
  224. package/dist/UploadedFile.js +73 -99
  225. package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
  226. package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
  227. package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
  228. package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
  229. package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
  230. package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
  231. package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
  232. package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
  233. package/dist/index-BdKi2ogu.js +39 -0
  234. package/dist/index-CRk3vcd4.cjs +95 -0
  235. package/dist/index-CX2A-q39.cjs +4 -0
  236. package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
  237. package/dist/index.cjs +1 -1
  238. package/dist/index.js +2 -2
  239. package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
  240. package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
  241. package/package.json +1 -1
  242. package/dist/KanbanCard-68kSAXL6.js +0 -175
  243. package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
  244. package/dist/SearchSection-BcbHP6QF.cjs +0 -161
  245. package/dist/index-Be-_NM9Q.cjs +0 -4
  246. package/dist/index-C0LcDEqa.js +0 -47
  247. package/dist/index-CSNxZFTX.cjs +0 -95
@@ -1,13 +1,13 @@
1
1
  import { jsxs as Ha, jsx as ia, Fragment as yi } from "react/jsx-runtime";
2
- import wi, { useMemo as Y, useRef as ta, useReducer as ki, useEffect as xa, useCallback as h, forwardRef as ei, useImperativeHandle as ji, Fragment as Di, useState as Wa, cloneElement as zi } from "react";
3
- import { P as o } from "./index-CblbdqjE.js";
4
- import { s as Ia } from "./emotion-styled.browser.esm-BNN1dTl3.js";
2
+ import wi, { useMemo as U, useRef as ta, useReducer as ki, useEffect as ma, useCallback as h, forwardRef as ei, useImperativeHandle as ji, Fragment as Di, useState as Wa, cloneElement as zi } from "react";
3
+ import { s as Sa } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
4
  import Na from "./Icon.js";
6
- import { b as R } from "./tslib.es6-DQ-SzcmG.js";
5
+ import { P as s } from "./index-CblbdqjE.js";
6
+ import { b as M } from "./tslib.es6-DQ-SzcmG.js";
7
7
  import Ei from "./Button.js";
8
8
  import { b as Ua } from "./utils-DtEfC-TX.js";
9
- import { u as Fi } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
10
- const Ai = /* @__PURE__ */ new Map([
9
+ import { u as Ai } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
10
+ const Fi = /* @__PURE__ */ new Map([
11
11
  // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
12
12
  ["1km", "application/vnd.1000minds.decision-model+xml"],
13
13
  ["3dml", "text/vnd.in3d.3dml"],
@@ -1210,14 +1210,14 @@ const Ai = /* @__PURE__ */ new Map([
1210
1210
  ["zmm", "application/vnd.handheld-entertainment+xml"],
1211
1211
  ["zsh", "text/x-scriptzsh"]
1212
1212
  ]);
1213
- function G(a, i, t) {
1214
- const n = Oi(a), { webkitRelativePath: e } = a, c = typeof i == "string" ? i : typeof e == "string" && e.length > 0 ? e : `./${a.name}`;
1215
- return typeof n.path != "string" && Ya(n, "path", c), Ya(n, "relativePath", c), n;
1213
+ function Y(a, i, t) {
1214
+ const n = Oi(a), { webkitRelativePath: e } = a, o = typeof i == "string" ? i : typeof e == "string" && e.length > 0 ? e : `./${a.name}`;
1215
+ return typeof n.path != "string" && Ya(n, "path", o), Ya(n, "relativePath", o), n;
1216
1216
  }
1217
1217
  function Oi(a) {
1218
1218
  const { name: i } = a;
1219
1219
  if (i && i.lastIndexOf(".") !== -1 && !a.type) {
1220
- const n = i.split(".").pop().toLowerCase(), e = Ai.get(n);
1220
+ const n = i.split(".").pop().toLowerCase(), e = Fi.get(n);
1221
1221
  e && Object.defineProperty(a, "type", {
1222
1222
  value: e,
1223
1223
  writable: !1,
@@ -1243,43 +1243,43 @@ const _i = [
1243
1243
  // Windows
1244
1244
  ];
1245
1245
  function Pi(a) {
1246
- return R(this, void 0, void 0, function* () {
1247
- return ga(a) && Si(a.dataTransfer) ? Ii(a.dataTransfer, a.type) : Ci(a) ? Ti(a) : Array.isArray(a) && a.every((i) => "getFile" in i && typeof i.getFile == "function") ? qi(a) : [];
1246
+ return M(this, void 0, void 0, function* () {
1247
+ return ua(a) && Ci(a.dataTransfer) ? Ii(a.dataTransfer, a.type) : Si(a) ? Ti(a) : Array.isArray(a) && a.every((i) => "getFile" in i && typeof i.getFile == "function") ? qi(a) : [];
1248
1248
  });
1249
1249
  }
1250
- function Si(a) {
1251
- return ga(a);
1252
- }
1253
1250
  function Ci(a) {
1254
- return ga(a) && ga(a.target);
1251
+ return ua(a);
1255
1252
  }
1256
- function ga(a) {
1253
+ function Si(a) {
1254
+ return ua(a) && ua(a.target);
1255
+ }
1256
+ function ua(a) {
1257
1257
  return typeof a == "object" && a !== null;
1258
1258
  }
1259
1259
  function Ti(a) {
1260
- return Pa(a.target.files).map((i) => G(i));
1260
+ return Fa(a.target.files).map((i) => Y(i));
1261
1261
  }
1262
1262
  function qi(a) {
1263
- return R(this, void 0, void 0, function* () {
1264
- return (yield Promise.all(a.map((t) => t.getFile()))).map((t) => G(t));
1263
+ return M(this, void 0, void 0, function* () {
1264
+ return (yield Promise.all(a.map((t) => t.getFile()))).map((t) => Y(t));
1265
1265
  });
1266
1266
  }
1267
1267
  function Ii(a, i) {
1268
- return R(this, void 0, void 0, function* () {
1268
+ return M(this, void 0, void 0, function* () {
1269
1269
  if (a.items) {
1270
- const t = Pa(a.items).filter((e) => e.kind === "file");
1270
+ const t = Fa(a.items).filter((e) => e.kind === "file");
1271
1271
  if (i !== "drop")
1272
1272
  return t;
1273
1273
  const n = yield Promise.all(t.map(Ri));
1274
1274
  return Ga(pi(n));
1275
1275
  }
1276
- return Ga(Pa(a.files).map((t) => G(t)));
1276
+ return Ga(Fa(a.files).map((t) => Y(t)));
1277
1277
  });
1278
1278
  }
1279
1279
  function Ga(a) {
1280
1280
  return a.filter((i) => _i.indexOf(i.name) === -1);
1281
1281
  }
1282
- function Pa(a) {
1282
+ function Fa(a) {
1283
1283
  if (a === null)
1284
1284
  return [];
1285
1285
  const i = [];
@@ -1302,25 +1302,25 @@ function pi(a) {
1302
1302
  ], []);
1303
1303
  }
1304
1304
  function Va(a, i) {
1305
- return R(this, void 0, void 0, function* () {
1305
+ return M(this, void 0, void 0, function* () {
1306
1306
  var t;
1307
1307
  if (globalThis.isSecureContext && typeof a.getAsFileSystemHandle == "function") {
1308
- const c = yield a.getAsFileSystemHandle();
1309
- if (c === null)
1308
+ const o = yield a.getAsFileSystemHandle();
1309
+ if (o === null)
1310
1310
  throw new Error(`${a} is not a File`);
1311
- if (c !== void 0) {
1312
- const r = yield c.getFile();
1313
- return r.handle = c, G(r);
1311
+ if (o !== void 0) {
1312
+ const l = yield o.getFile();
1313
+ return l.handle = o, Y(l);
1314
1314
  }
1315
1315
  }
1316
1316
  const n = a.getAsFile();
1317
1317
  if (!n)
1318
1318
  throw new Error(`${a} is not a File`);
1319
- return G(n, (t = i == null ? void 0 : i.fullPath) !== null && t !== void 0 ? t : void 0);
1319
+ return Y(n, (t = i == null ? void 0 : i.fullPath) !== null && t !== void 0 ? t : void 0);
1320
1320
  });
1321
1321
  }
1322
1322
  function Li(a) {
1323
- return R(this, void 0, void 0, function* () {
1323
+ return M(this, void 0, void 0, function* () {
1324
1324
  return a.isDirectory ? oi(a) : Mi(a);
1325
1325
  });
1326
1326
  }
@@ -1328,30 +1328,30 @@ function oi(a) {
1328
1328
  const i = a.createReader();
1329
1329
  return new Promise((t, n) => {
1330
1330
  const e = [];
1331
- function c() {
1332
- i.readEntries((r) => R(this, void 0, void 0, function* () {
1333
- if (r.length) {
1334
- const s = Promise.all(r.map(Li));
1335
- e.push(s), c();
1331
+ function o() {
1332
+ i.readEntries((l) => M(this, void 0, void 0, function* () {
1333
+ if (l.length) {
1334
+ const r = Promise.all(l.map(Li));
1335
+ e.push(r), o();
1336
1336
  } else
1337
1337
  try {
1338
- const s = yield Promise.all(e);
1339
- t(s);
1340
- } catch (s) {
1341
- n(s);
1338
+ const r = yield Promise.all(e);
1339
+ t(r);
1340
+ } catch (r) {
1341
+ n(r);
1342
1342
  }
1343
- }), (r) => {
1344
- n(r);
1343
+ }), (l) => {
1344
+ n(l);
1345
1345
  });
1346
1346
  }
1347
- c();
1347
+ o();
1348
1348
  });
1349
1349
  }
1350
1350
  function Mi(a) {
1351
- return R(this, void 0, void 0, function* () {
1351
+ return M(this, void 0, void 0, function* () {
1352
1352
  return new Promise((i, t) => {
1353
1353
  a.file((n) => {
1354
- const e = G(n, a.fullPath);
1354
+ const e = Y(n, a.fullPath);
1355
1355
  i(e);
1356
1356
  }, (n) => {
1357
1357
  t(n);
@@ -1359,15 +1359,15 @@ function Mi(a) {
1359
1359
  });
1360
1360
  });
1361
1361
  }
1362
- var Oa = function(a, i) {
1362
+ var Ea = function(a, i) {
1363
1363
  if (a && i) {
1364
1364
  var t = Array.isArray(i) ? i : i.split(",");
1365
1365
  if (t.length === 0)
1366
1366
  return !0;
1367
- var n = a.name || "", e = (a.type || "").toLowerCase(), c = e.replace(/\/.*$/, "");
1368
- return t.some(function(r) {
1369
- var s = r.trim().toLowerCase();
1370
- return s.charAt(0) === "." ? n.toLowerCase().endsWith(s) : s.endsWith("/*") ? c === s.replace(/\/.*$/, "") : e === s;
1367
+ var n = a.name || "", e = (a.type || "").toLowerCase(), o = e.replace(/\/.*$/, "");
1368
+ return t.some(function(l) {
1369
+ var r = l.trim().toLowerCase();
1370
+ return r.charAt(0) === "." ? n.toLowerCase().endsWith(r) : r.endsWith("/*") ? o === r.replace(/\/.*$/, "") : e === r;
1371
1371
  });
1372
1372
  }
1373
1373
  return !0;
@@ -1383,7 +1383,7 @@ function Ki(a) {
1383
1383
  if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
1384
1384
  }
1385
1385
  function Bi(a) {
1386
- if (Array.isArray(a)) return Sa(a);
1386
+ if (Array.isArray(a)) return Oa(a);
1387
1387
  }
1388
1388
  function Qa(a, i) {
1389
1389
  var t = Object.keys(a);
@@ -1418,13 +1418,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1418
1418
  }
1419
1419
  function li(a, i) {
1420
1420
  if (a) {
1421
- if (typeof a == "string") return Sa(a, i);
1421
+ if (typeof a == "string") return Oa(a, i);
1422
1422
  var t = Object.prototype.toString.call(a).slice(8, -1);
1423
1423
  if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
1424
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Sa(a, i);
1424
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Oa(a, i);
1425
1425
  }
1426
1426
  }
1427
- function Sa(a, i) {
1427
+ function Oa(a, i) {
1428
1428
  (i == null || i > a.length) && (i = a.length);
1429
1429
  for (var t = 0, n = new Array(i); t < i; t++)
1430
1430
  n[t] = a[t];
@@ -1433,17 +1433,17 @@ function Sa(a, i) {
1433
1433
  function Wi(a, i) {
1434
1434
  var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1435
1435
  if (t != null) {
1436
- var n = [], e = !0, c = !1, r, s;
1436
+ var n = [], e = !0, o = !1, l, r;
1437
1437
  try {
1438
- for (t = t.call(a); !(e = (r = t.next()).done) && (n.push(r.value), !(i && n.length === i)); e = !0)
1438
+ for (t = t.call(a); !(e = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); e = !0)
1439
1439
  ;
1440
- } catch (g) {
1441
- c = !0, s = g;
1440
+ } catch (x) {
1441
+ o = !0, r = x;
1442
1442
  } finally {
1443
1443
  try {
1444
1444
  !e && t.return != null && t.return();
1445
1445
  } finally {
1446
- if (c) throw s;
1446
+ if (o) throw r;
1447
1447
  }
1448
1448
  }
1449
1449
  return n;
@@ -1452,7 +1452,7 @@ function Wi(a, i) {
1452
1452
  function Ni(a) {
1453
1453
  if (Array.isArray(a)) return a;
1454
1454
  }
1455
- var Ui = typeof Oa == "function" ? Oa : Oa.default, Yi = "file-invalid-type", Gi = "file-too-large", Vi = "file-too-small", Ji = "too-many-files", Qi = function() {
1455
+ var Ui = typeof Ea == "function" ? Ea : Ea.default, Yi = "file-invalid-type", Gi = "file-too-large", Vi = "file-too-small", Ji = "too-many-files", Qi = function() {
1456
1456
  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];
1457
1457
  return {
1458
1458
  code: Yi,
@@ -1477,30 +1477,30 @@ function ri(a, i) {
1477
1477
  return [t, t ? null : Qi(i)];
1478
1478
  }
1479
1479
  function si(a, i, t) {
1480
- if (I(a.size))
1481
- if (I(i) && I(t)) {
1480
+ if (L(a.size))
1481
+ if (L(i) && L(t)) {
1482
1482
  if (a.size > t) return [!1, Za(t)];
1483
1483
  if (a.size < i) return [!1, ai(i)];
1484
1484
  } else {
1485
- if (I(i) && a.size < i) return [!1, ai(i)];
1486
- if (I(t) && a.size > t) return [!1, Za(t)];
1485
+ if (L(i) && a.size < i) return [!1, ai(i)];
1486
+ if (L(t) && a.size > t) return [!1, Za(t)];
1487
1487
  }
1488
1488
  return [!0, null];
1489
1489
  }
1490
- function I(a) {
1490
+ function L(a) {
1491
1491
  return a != null;
1492
1492
  }
1493
1493
  function Zi(a) {
1494
- var i = a.files, t = a.accept, n = a.minSize, e = a.maxSize, c = a.multiple, r = a.maxFiles, s = a.validator;
1495
- return !c && i.length > 1 || c && r >= 1 && i.length > r ? !1 : i.every(function(g) {
1496
- var F = ri(g, t), w = na(F, 1), A = w[0], L = si(g, n, e), j = na(L, 1), O = j[0], _ = s ? s(g) : null;
1497
- return A && O && !_;
1494
+ var i = a.files, t = a.accept, n = a.minSize, e = a.maxSize, o = a.multiple, l = a.maxFiles, r = a.validator;
1495
+ return !o && i.length > 1 || o && l >= 1 && i.length > l ? !1 : i.every(function(x) {
1496
+ var k = ri(x, t), P = na(k, 1), z = P[0], C = si(x, n, e), S = na(C, 1), j = S[0], F = r ? r(x) : null;
1497
+ return z && j && !F;
1498
1498
  });
1499
1499
  }
1500
- function ba(a) {
1500
+ function va(a) {
1501
1501
  return typeof a.isPropagationStopped == "function" ? a.isPropagationStopped() : typeof a.cancelBubble < "u" ? a.cancelBubble : !1;
1502
1502
  }
1503
- function fa(a) {
1503
+ function da(a) {
1504
1504
  return a.dataTransfer ? Array.prototype.some.call(a.dataTransfer.types, function(i) {
1505
1505
  return i === "Files" || i === "application/x-moz-file";
1506
1506
  }) : !!a.target && !!a.target.files;
@@ -1518,14 +1518,14 @@ function tt() {
1518
1518
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1519
1519
  return at(a) || it(a);
1520
1520
  }
1521
- function k() {
1521
+ function D() {
1522
1522
  for (var a = arguments.length, i = new Array(a), t = 0; t < a; t++)
1523
1523
  i[t] = arguments[t];
1524
1524
  return function(n) {
1525
- for (var e = arguments.length, c = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
1526
- c[r - 1] = arguments[r];
1527
- return i.some(function(s) {
1528
- return !ba(n) && s && s.apply(void 0, [n].concat(c)), ba(n);
1525
+ for (var e = arguments.length, o = new Array(e > 1 ? e - 1 : 0), l = 1; l < e; l++)
1526
+ o[l - 1] = arguments[l];
1527
+ return i.some(function(r) {
1528
+ return !va(n) && r && r.apply(void 0, [n].concat(o)), va(n);
1529
1529
  });
1530
1530
  };
1531
1531
  }
@@ -1533,13 +1533,13 @@ function nt() {
1533
1533
  return "showOpenFilePicker" in window;
1534
1534
  }
1535
1535
  function et(a) {
1536
- if (I(a)) {
1536
+ if (L(a)) {
1537
1537
  var i = Object.entries(a).filter(function(t) {
1538
- var n = na(t, 2), e = n[0], c = n[1], r = !0;
1539
- return di(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.')), r = !1), (!Array.isArray(c) || !c.every(mi)) && (console.warn('Skipped "'.concat(e, '" because an invalid file extension was provided.')), r = !1), r;
1538
+ var n = na(t, 2), e = n[0], o = n[1], l = !0;
1539
+ return di(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.')), l = !1), (!Array.isArray(o) || !o.every(mi)) && (console.warn('Skipped "'.concat(e, '" because an invalid file extension was provided.')), l = !1), l;
1540
1540
  }).reduce(function(t, n) {
1541
- var e = na(n, 2), c = e[0], r = e[1];
1542
- return Xa(Xa({}, t), {}, ci({}, c, r));
1541
+ var e = na(n, 2), o = e[0], l = e[1];
1542
+ return Xa(Xa({}, t), {}, ci({}, o, l));
1543
1543
  }, {});
1544
1544
  return [{
1545
1545
  // description is required due to https://crbug.com/1264708
@@ -1550,10 +1550,10 @@ function et(a) {
1550
1550
  return a;
1551
1551
  }
1552
1552
  function pt(a) {
1553
- if (I(a))
1553
+ if (L(a))
1554
1554
  return Object.entries(a).reduce(function(i, t) {
1555
- var n = na(t, 2), e = n[0], c = n[1];
1556
- return [].concat(Ja(i), [e], Ja(c));
1555
+ var n = na(t, 2), e = n[0], o = n[1];
1556
+ return [].concat(Ja(i), [e], Ja(o));
1557
1557
  }, []).filter(function(i) {
1558
1558
  return di(i) || mi(i);
1559
1559
  }).join(",");
@@ -1582,9 +1582,9 @@ function vt(a) {
1582
1582
  if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
1583
1583
  }
1584
1584
  function ft(a) {
1585
- if (Array.isArray(a)) return Ca(a);
1585
+ if (Array.isArray(a)) return _a(a);
1586
1586
  }
1587
- function _a(a, i) {
1587
+ function Aa(a, i) {
1588
1588
  return bt(a) || gt(a, i) || ui(a, i) || xt();
1589
1589
  }
1590
1590
  function xt() {
@@ -1593,13 +1593,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1593
1593
  }
1594
1594
  function ui(a, i) {
1595
1595
  if (a) {
1596
- if (typeof a == "string") return Ca(a, i);
1596
+ if (typeof a == "string") return _a(a, i);
1597
1597
  var t = Object.prototype.toString.call(a).slice(8, -1);
1598
1598
  if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
1599
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Ca(a, i);
1599
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return _a(a, i);
1600
1600
  }
1601
1601
  }
1602
- function Ca(a, i) {
1602
+ function _a(a, i) {
1603
1603
  (i == null || i > a.length) && (i = a.length);
1604
1604
  for (var t = 0, n = new Array(i); t < i; t++)
1605
1605
  n[t] = a[t];
@@ -1608,17 +1608,17 @@ function Ca(a, i) {
1608
1608
  function gt(a, i) {
1609
1609
  var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1610
1610
  if (t != null) {
1611
- var n = [], e = !0, c = !1, r, s;
1611
+ var n = [], e = !0, o = !1, l, r;
1612
1612
  try {
1613
- for (t = t.call(a); !(e = (r = t.next()).done) && (n.push(r.value), !(i && n.length === i)); e = !0)
1613
+ for (t = t.call(a); !(e = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); e = !0)
1614
1614
  ;
1615
- } catch (g) {
1616
- c = !0, s = g;
1615
+ } catch (x) {
1616
+ o = !0, r = x;
1617
1617
  } finally {
1618
1618
  try {
1619
1619
  !e && t.return != null && t.return();
1620
1620
  } finally {
1621
- if (c) throw s;
1621
+ if (o) throw r;
1622
1622
  }
1623
1623
  }
1624
1624
  return n;
@@ -1637,48 +1637,48 @@ function ti(a, i) {
1637
1637
  }
1638
1638
  return t;
1639
1639
  }
1640
- function m(a) {
1640
+ function d(a) {
1641
1641
  for (var i = 1; i < arguments.length; i++) {
1642
1642
  var t = arguments[i] != null ? arguments[i] : {};
1643
1643
  i % 2 ? ti(Object(t), !0).forEach(function(n) {
1644
- Ta(a, n, t[n]);
1644
+ Pa(a, n, t[n]);
1645
1645
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : ti(Object(t)).forEach(function(n) {
1646
1646
  Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
1647
1647
  });
1648
1648
  }
1649
1649
  return a;
1650
1650
  }
1651
- function Ta(a, i, t) {
1651
+ function Pa(a, i, t) {
1652
1652
  return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
1653
1653
  }
1654
- function ha(a, i) {
1654
+ function fa(a, i) {
1655
1655
  if (a == null) return {};
1656
1656
  var t = ht(a, i), n, e;
1657
1657
  if (Object.getOwnPropertySymbols) {
1658
- var c = Object.getOwnPropertySymbols(a);
1659
- for (e = 0; e < c.length; e++)
1660
- n = c[e], !(i.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(a, n) && (t[n] = a[n]);
1658
+ var o = Object.getOwnPropertySymbols(a);
1659
+ for (e = 0; e < o.length; e++)
1660
+ n = o[e], !(i.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(a, n) && (t[n] = a[n]);
1661
1661
  }
1662
1662
  return t;
1663
1663
  }
1664
1664
  function ht(a, i) {
1665
1665
  if (a == null) return {};
1666
- var t = {}, n = Object.keys(a), e, c;
1667
- for (c = 0; c < n.length; c++)
1668
- e = n[c], !(i.indexOf(e) >= 0) && (t[e] = a[e]);
1666
+ var t = {}, n = Object.keys(a), e, o;
1667
+ for (o = 0; o < n.length; o++)
1668
+ e = n[o], !(i.indexOf(e) >= 0) && (t[e] = a[e]);
1669
1669
  return t;
1670
1670
  }
1671
- var Ra = /* @__PURE__ */ ei(function(a, i) {
1672
- var t = a.children, n = ha(a, lt), e = fi(n), c = e.open, r = ha(e, rt);
1671
+ var Ta = /* @__PURE__ */ ei(function(a, i) {
1672
+ var t = a.children, n = fa(a, lt), e = fi(n), o = e.open, l = fa(e, rt);
1673
1673
  return ji(i, function() {
1674
1674
  return {
1675
- open: c
1675
+ open: o
1676
1676
  };
1677
- }, [c]), /* @__PURE__ */ wi.createElement(Di, null, t(m(m({}, r), {}, {
1678
- open: c
1677
+ }, [o]), /* @__PURE__ */ wi.createElement(Di, null, t(d(d({}, l), {}, {
1678
+ open: o
1679
1679
  })));
1680
1680
  });
1681
- Ra.displayName = "Dropzone";
1681
+ Ta.displayName = "Dropzone";
1682
1682
  var vi = {
1683
1683
  disabled: !1,
1684
1684
  getFilesFromEvent: Pi,
@@ -1695,8 +1695,8 @@ var vi = {
1695
1695
  useFsAccessApi: !1,
1696
1696
  autoFocus: !1
1697
1697
  };
1698
- Ra.defaultProps = vi;
1699
- Ra.propTypes = {
1698
+ Ta.defaultProps = vi;
1699
+ Ta.propTypes = {
1700
1700
  /**
1701
1701
  * Render function that exposes the dropzone state and prop getter fns
1702
1702
  *
@@ -1712,7 +1712,7 @@ Ra.propTypes = {
1712
1712
  * @param {File[]} params.acceptedFiles Accepted files
1713
1713
  * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
1714
1714
  */
1715
- children: o.func,
1715
+ children: s.func,
1716
1716
  /**
1717
1717
  * Set accepted file types.
1718
1718
  * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
@@ -1720,90 +1720,90 @@ Ra.propTypes = {
1720
1720
  * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
1721
1721
  * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
1722
1722
  */
1723
- accept: o.objectOf(o.arrayOf(o.string)),
1723
+ accept: s.objectOf(s.arrayOf(s.string)),
1724
1724
  /**
1725
1725
  * Allow drag 'n' drop (or selection from the file dialog) of multiple files
1726
1726
  */
1727
- multiple: o.bool,
1727
+ multiple: s.bool,
1728
1728
  /**
1729
1729
  * If false, allow dropped items to take over the current browser window
1730
1730
  */
1731
- preventDropOnDocument: o.bool,
1731
+ preventDropOnDocument: s.bool,
1732
1732
  /**
1733
1733
  * If true, disables click to open the native file selection dialog
1734
1734
  */
1735
- noClick: o.bool,
1735
+ noClick: s.bool,
1736
1736
  /**
1737
1737
  * If true, disables SPACE/ENTER to open the native file selection dialog.
1738
1738
  * Note that it also stops tracking the focus state.
1739
1739
  */
1740
- noKeyboard: o.bool,
1740
+ noKeyboard: s.bool,
1741
1741
  /**
1742
1742
  * If true, disables drag 'n' drop
1743
1743
  */
1744
- noDrag: o.bool,
1744
+ noDrag: s.bool,
1745
1745
  /**
1746
1746
  * If true, stops drag event propagation to parents
1747
1747
  */
1748
- noDragEventsBubbling: o.bool,
1748
+ noDragEventsBubbling: s.bool,
1749
1749
  /**
1750
1750
  * Minimum file size (in bytes)
1751
1751
  */
1752
- minSize: o.number,
1752
+ minSize: s.number,
1753
1753
  /**
1754
1754
  * Maximum file size (in bytes)
1755
1755
  */
1756
- maxSize: o.number,
1756
+ maxSize: s.number,
1757
1757
  /**
1758
1758
  * Maximum accepted number of files
1759
1759
  * The default value is 0 which means there is no limitation to how many files are accepted.
1760
1760
  */
1761
- maxFiles: o.number,
1761
+ maxFiles: s.number,
1762
1762
  /**
1763
1763
  * Enable/disable the dropzone
1764
1764
  */
1765
- disabled: o.bool,
1765
+ disabled: s.bool,
1766
1766
  /**
1767
1767
  * Use this to provide a custom file aggregator
1768
1768
  *
1769
1769
  * @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
1770
1770
  */
1771
- getFilesFromEvent: o.func,
1771
+ getFilesFromEvent: s.func,
1772
1772
  /**
1773
1773
  * Cb for when closing the file dialog with no selection
1774
1774
  */
1775
- onFileDialogCancel: o.func,
1775
+ onFileDialogCancel: s.func,
1776
1776
  /**
1777
1777
  * Cb for when opening the file dialog
1778
1778
  */
1779
- onFileDialogOpen: o.func,
1779
+ onFileDialogOpen: s.func,
1780
1780
  /**
1781
1781
  * Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
1782
1782
  * to open the file picker instead of using an `<input type="file">` click event.
1783
1783
  */
1784
- useFsAccessApi: o.bool,
1784
+ useFsAccessApi: s.bool,
1785
1785
  /**
1786
1786
  * Set to true to focus the root element on render
1787
1787
  */
1788
- autoFocus: o.bool,
1788
+ autoFocus: s.bool,
1789
1789
  /**
1790
1790
  * Cb for when the `dragenter` event occurs.
1791
1791
  *
1792
1792
  * @param {DragEvent} event
1793
1793
  */
1794
- onDragEnter: o.func,
1794
+ onDragEnter: s.func,
1795
1795
  /**
1796
1796
  * Cb for when the `dragleave` event occurs
1797
1797
  *
1798
1798
  * @param {DragEvent} event
1799
1799
  */
1800
- onDragLeave: o.func,
1800
+ onDragLeave: s.func,
1801
1801
  /**
1802
1802
  * Cb for when the `dragover` event occurs
1803
1803
  *
1804
1804
  * @param {DragEvent} event
1805
1805
  */
1806
- onDragOver: o.func,
1806
+ onDragOver: s.func,
1807
1807
  /**
1808
1808
  * Cb for when the `drop` event occurs.
1809
1809
  * Note that this callback is invoked after the `getFilesFromEvent` callback is done.
@@ -1834,7 +1834,7 @@ Ra.propTypes = {
1834
1834
  * @param {FileRejection[]} fileRejections
1835
1835
  * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
1836
1836
  */
1837
- onDrop: o.func,
1837
+ onDrop: s.func,
1838
1838
  /**
1839
1839
  * Cb for when the `drop` event occurs.
1840
1840
  * Note that if no files are accepted, this callback is not invoked.
@@ -1842,7 +1842,7 @@ Ra.propTypes = {
1842
1842
  * @param {File[]} files
1843
1843
  * @param {(DragEvent|Event)} event
1844
1844
  */
1845
- onDropAccepted: o.func,
1845
+ onDropAccepted: s.func,
1846
1846
  /**
1847
1847
  * Cb for when the `drop` event occurs.
1848
1848
  * Note that if no files are rejected, this callback is not invoked.
@@ -1850,21 +1850,21 @@ Ra.propTypes = {
1850
1850
  * @param {FileRejection[]} fileRejections
1851
1851
  * @param {(DragEvent|Event)} event
1852
1852
  */
1853
- onDropRejected: o.func,
1853
+ onDropRejected: s.func,
1854
1854
  /**
1855
1855
  * Cb for when there's some error from any of the promises.
1856
1856
  *
1857
1857
  * @param {Error} error
1858
1858
  */
1859
- onError: o.func,
1859
+ onError: s.func,
1860
1860
  /**
1861
1861
  * Custom validation function. It must return null if there's no errors.
1862
1862
  * @param {File} file
1863
1863
  * @returns {FileError|FileError[]|null}
1864
1864
  */
1865
- validator: o.func
1865
+ validator: s.func
1866
1866
  };
1867
- var qa = {
1867
+ var Ca = {
1868
1868
  isFocused: !1,
1869
1869
  isFileDialogActive: !1,
1870
1870
  isDragActive: !1,
@@ -1874,187 +1874,187 @@ var qa = {
1874
1874
  fileRejections: []
1875
1875
  };
1876
1876
  function fi() {
1877
- var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = m(m({}, vi), a), t = i.accept, n = i.disabled, e = i.getFilesFromEvent, c = i.maxSize, r = i.minSize, s = i.multiple, g = i.maxFiles, F = i.onDragEnter, w = i.onDragLeave, A = i.onDragOver, L = i.onDrop, j = i.onDropAccepted, O = i.onDropRejected, _ = i.onFileDialogCancel, E = i.onFileDialogOpen, V = i.useFsAccessApi, J = i.autoFocus, M = i.preventDropOnDocument, Q = i.noClick, $ = i.noKeyboard, P = i.noDrag, D = i.noDragEventsBubbling, K = i.onError, S = i.validator, C = Y(function() {
1877
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = d(d({}, vi), a), t = i.accept, n = i.disabled, e = i.getFilesFromEvent, o = i.maxSize, l = i.minSize, r = i.multiple, x = i.maxFiles, k = i.onDragEnter, P = i.onDragLeave, z = i.onDragOver, C = i.onDrop, S = i.onDropAccepted, j = i.onDropRejected, F = i.onFileDialogCancel, $ = i.onFileDialogOpen, G = i.useFsAccessApi, V = i.autoFocus, K = i.preventDropOnDocument, T = i.noClick, J = i.noKeyboard, Q = i.noDrag, E = i.noDragEventsBubbling, X = i.onError, q = i.validator, O = U(function() {
1878
1878
  return pt(t);
1879
- }, [t]), ea = Y(function() {
1879
+ }, [t]), Z = U(function() {
1880
1880
  return et(t);
1881
- }, [t]), B = Y(function() {
1882
- return typeof E == "function" ? E : ni;
1883
- }, [E]), T = Y(function() {
1884
- return typeof _ == "function" ? _ : ni;
1885
- }, [_]), u = ta(null), x = ta(null), pa = ki(yt, qa), oa = _a(pa, 2), X = oa[0], b = oa[1], ca = X.isFocused, la = X.isFileDialogActive, H = ta(typeof window < "u" && window.isSecureContext && V && nt()), ra = function() {
1886
- !H.current && la && setTimeout(function() {
1887
- if (x.current) {
1888
- var l = x.current.files;
1889
- l.length || (b({
1881
+ }, [t]), _ = U(function() {
1882
+ return typeof $ == "function" ? $ : ni;
1883
+ }, [$]), A = U(function() {
1884
+ return typeof F == "function" ? F : ni;
1885
+ }, [F]), v = ta(null), b = ta(null), xa = ki(yt, Ca), ea = Aa(xa, 2), B = ea[0], g = ea[1], ga = B.isFocused, pa = B.isFileDialogActive, I = ta(typeof window < "u" && window.isSecureContext && G && nt()), m = function() {
1886
+ !I.current && pa && setTimeout(function() {
1887
+ if (b.current) {
1888
+ var c = b.current.files;
1889
+ c.length || (g({
1890
1890
  type: "closeDialog"
1891
- }), T());
1891
+ }), A());
1892
1892
  }
1893
1893
  }, 300);
1894
1894
  };
1895
- xa(function() {
1896
- return window.addEventListener("focus", ra, !1), function() {
1897
- window.removeEventListener("focus", ra, !1);
1895
+ ma(function() {
1896
+ return window.addEventListener("focus", m, !1), function() {
1897
+ window.removeEventListener("focus", m, !1);
1898
1898
  };
1899
- }, [x, la, T, H]);
1900
- var z = ta([]), ya = function(l) {
1901
- u.current && u.current.contains(l.target) || (l.preventDefault(), z.current = []);
1899
+ }, [b, pa, A, I]);
1900
+ var w = ta([]), qa = function(c) {
1901
+ v.current && v.current.contains(c.target) || (c.preventDefault(), w.current = []);
1902
1902
  };
1903
- xa(function() {
1904
- return M && (document.addEventListener("dragover", ii, !1), document.addEventListener("drop", ya, !1)), function() {
1905
- M && (document.removeEventListener("dragover", ii), document.removeEventListener("drop", ya));
1903
+ ma(function() {
1904
+ return K && (document.addEventListener("dragover", ii, !1), document.addEventListener("drop", qa, !1)), function() {
1905
+ K && (document.removeEventListener("dragover", ii), document.removeEventListener("drop", qa));
1906
1906
  };
1907
- }, [u, M]), xa(function() {
1908
- return !n && J && u.current && u.current.focus(), function() {
1907
+ }, [v, K]), ma(function() {
1908
+ return !n && V && v.current && v.current.focus(), function() {
1909
1909
  };
1910
- }, [u, J, n]);
1911
- var d = h(function(p) {
1912
- K ? K(p) : console.error(p);
1913
- }, [K]), q = h(function(p) {
1914
- p.preventDefault(), p.persist(), ua(p), z.current = [].concat(mt(z.current), [p.target]), fa(p) && Promise.resolve(e(p)).then(function(l) {
1915
- if (!(ba(p) && !D)) {
1916
- var v = l.length, f = v > 0 && Zi({
1917
- files: l,
1918
- accept: C,
1919
- minSize: r,
1920
- maxSize: c,
1921
- multiple: s,
1922
- maxFiles: g,
1923
- validator: S
1924
- }), y = v > 0 && !f;
1925
- b({
1910
+ }, [v, V, n]);
1911
+ var R = h(function(p) {
1912
+ X ? X(p) : console.error(p);
1913
+ }, [X]), Ia = h(function(p) {
1914
+ p.preventDefault(), p.persist(), ra(p), w.current = [].concat(mt(w.current), [p.target]), da(p) && Promise.resolve(e(p)).then(function(c) {
1915
+ if (!(va(p) && !E)) {
1916
+ var u = c.length, f = u > 0 && Zi({
1917
+ files: c,
1918
+ accept: O,
1919
+ minSize: l,
1920
+ maxSize: o,
1921
+ multiple: r,
1922
+ maxFiles: x,
1923
+ validator: q
1924
+ }), y = u > 0 && !f;
1925
+ g({
1926
1926
  isDragAccept: f,
1927
1927
  isDragReject: y,
1928
1928
  isDragActive: !0,
1929
1929
  type: "setDraggedFiles"
1930
- }), F && F(p);
1930
+ }), k && k(p);
1931
1931
  }
1932
- }).catch(function(l) {
1933
- return d(l);
1932
+ }).catch(function(c) {
1933
+ return R(c);
1934
1934
  });
1935
- }, [e, F, d, D, C, r, c, s, g, S]), Z = h(function(p) {
1936
- p.preventDefault(), p.persist(), ua(p);
1937
- var l = fa(p);
1938
- if (l && p.dataTransfer)
1935
+ }, [e, k, R, E, O, l, o, r, x, q]), Ra = h(function(p) {
1936
+ p.preventDefault(), p.persist(), ra(p);
1937
+ var c = da(p);
1938
+ if (c && p.dataTransfer)
1939
1939
  try {
1940
1940
  p.dataTransfer.dropEffect = "copy";
1941
1941
  } catch {
1942
1942
  }
1943
- return l && A && A(p), !1;
1944
- }, [A, D]), La = h(function(p) {
1945
- p.preventDefault(), p.persist(), ua(p);
1946
- var l = z.current.filter(function(f) {
1947
- return u.current && u.current.contains(f);
1948
- }), v = l.indexOf(p.target);
1949
- v !== -1 && l.splice(v, 1), z.current = l, !(l.length > 0) && (b({
1943
+ return c && z && z(p), !1;
1944
+ }, [z, E]), La = h(function(p) {
1945
+ p.preventDefault(), p.persist(), ra(p);
1946
+ var c = w.current.filter(function(f) {
1947
+ return v.current && v.current.contains(f);
1948
+ }), u = c.indexOf(p.target);
1949
+ u !== -1 && c.splice(u, 1), w.current = c, !(c.length > 0) && (g({
1950
1950
  type: "setDraggedFiles",
1951
1951
  isDragActive: !1,
1952
1952
  isDragAccept: !1,
1953
1953
  isDragReject: !1
1954
- }), fa(p) && w && w(p));
1955
- }, [u, w, D]), sa = h(function(p, l) {
1956
- var v = [], f = [];
1954
+ }), da(p) && P && P(p));
1955
+ }, [v, P, E]), oa = h(function(p, c) {
1956
+ var u = [], f = [];
1957
1957
  p.forEach(function(y) {
1958
- var aa = ri(y, C), U = _a(aa, 2), ka = U[0], ja = U[1], Da = si(y, r, c), va = _a(Da, 2), za = va[0], Ea = va[1], Fa = S ? S(y) : null;
1959
- if (ka && za && !Fa)
1960
- v.push(y);
1958
+ var aa = ri(y, O), N = Aa(aa, 2), ha = N[0], ya = N[1], wa = si(y, l, o), sa = Aa(wa, 2), ka = sa[0], ja = sa[1], Da = q ? q(y) : null;
1959
+ if (ha && ka && !Da)
1960
+ u.push(y);
1961
1961
  else {
1962
- var Aa = [ja, Ea];
1963
- Fa && (Aa = Aa.concat(Fa)), f.push({
1962
+ var za = [ya, ja];
1963
+ Da && (za = za.concat(Da)), f.push({
1964
1964
  file: y,
1965
- errors: Aa.filter(function(hi) {
1965
+ errors: za.filter(function(hi) {
1966
1966
  return hi;
1967
1967
  })
1968
1968
  });
1969
1969
  }
1970
- }), (!s && v.length > 1 || s && g >= 1 && v.length > g) && (v.forEach(function(y) {
1970
+ }), (!r && u.length > 1 || r && x >= 1 && u.length > x) && (u.forEach(function(y) {
1971
1971
  f.push({
1972
1972
  file: y,
1973
1973
  errors: [Xi]
1974
1974
  });
1975
- }), v.splice(0)), b({
1976
- acceptedFiles: v,
1975
+ }), u.splice(0)), g({
1976
+ acceptedFiles: u,
1977
1977
  fileRejections: f,
1978
1978
  isDragReject: f.length > 0,
1979
1979
  type: "setFiles"
1980
- }), L && L(v, f, l), f.length > 0 && O && O(f, l), v.length > 0 && j && j(v, l);
1981
- }, [b, s, C, r, c, g, L, j, O, S]), da = h(function(p) {
1982
- p.preventDefault(), p.persist(), ua(p), z.current = [], fa(p) && Promise.resolve(e(p)).then(function(l) {
1983
- ba(p) && !D || sa(l, p);
1984
- }).catch(function(l) {
1985
- return d(l);
1986
- }), b({
1980
+ }), C && C(u, f, c), f.length > 0 && j && j(f, c), u.length > 0 && S && S(u, c);
1981
+ }, [g, r, O, l, o, x, C, S, j, q]), ca = h(function(p) {
1982
+ p.preventDefault(), p.persist(), ra(p), w.current = [], da(p) && Promise.resolve(e(p)).then(function(c) {
1983
+ va(p) && !E || oa(c, p);
1984
+ }).catch(function(c) {
1985
+ return R(c);
1986
+ }), g({
1987
1987
  type: "reset"
1988
1988
  });
1989
- }, [e, sa, d, D]), W = h(function() {
1990
- if (H.current) {
1991
- b({
1989
+ }, [e, oa, R, E]), H = h(function() {
1990
+ if (I.current) {
1991
+ g({
1992
1992
  type: "openDialog"
1993
- }), B();
1993
+ }), _();
1994
1994
  var p = {
1995
- multiple: s,
1996
- types: ea
1995
+ multiple: r,
1996
+ types: Z
1997
1997
  };
1998
- window.showOpenFilePicker(p).then(function(l) {
1999
- return e(l);
2000
- }).then(function(l) {
2001
- sa(l, null), b({
1998
+ window.showOpenFilePicker(p).then(function(c) {
1999
+ return e(c);
2000
+ }).then(function(c) {
2001
+ oa(c, null), g({
2002
2002
  type: "closeDialog"
2003
2003
  });
2004
- }).catch(function(l) {
2005
- ot(l) ? (T(l), b({
2004
+ }).catch(function(c) {
2005
+ ot(c) ? (A(c), g({
2006
2006
  type: "closeDialog"
2007
- })) : ct(l) ? (H.current = !1, x.current ? (x.current.value = null, x.current.click()) : d(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."))) : d(l);
2007
+ })) : ct(c) ? (I.current = !1, b.current ? (b.current.value = null, b.current.click()) : R(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."))) : R(c);
2008
2008
  });
2009
2009
  return;
2010
2010
  }
2011
- x.current && (b({
2011
+ b.current && (g({
2012
2012
  type: "openDialog"
2013
- }), B(), x.current.value = null, x.current.click());
2014
- }, [b, B, T, V, sa, d, ea, s]), Ma = h(function(p) {
2015
- !u.current || !u.current.isEqualNode(p.target) || (p.key === " " || p.key === "Enter" || p.keyCode === 32 || p.keyCode === 13) && (p.preventDefault(), W());
2016
- }, [u, W]), $a = h(function() {
2017
- b({
2013
+ }), _(), b.current.value = null, b.current.click());
2014
+ }, [g, _, A, G, oa, R, Z, r]), Ma = h(function(p) {
2015
+ !v.current || !v.current.isEqualNode(p.target) || (p.key === " " || p.key === "Enter" || p.keyCode === 32 || p.keyCode === 13) && (p.preventDefault(), H());
2016
+ }, [v, H]), $a = h(function() {
2017
+ g({
2018
2018
  type: "focus"
2019
2019
  });
2020
2020
  }, []), Ka = h(function() {
2021
- b({
2021
+ g({
2022
2022
  type: "blur"
2023
2023
  });
2024
2024
  }, []), Ba = h(function() {
2025
- Q || (tt() ? setTimeout(W, 0) : W());
2026
- }, [Q, W]), N = function(l) {
2027
- return n ? null : l;
2028
- }, wa = function(l) {
2029
- return $ ? null : N(l);
2030
- }, ma = function(l) {
2031
- return P ? null : N(l);
2032
- }, ua = function(l) {
2033
- D && l.stopPropagation();
2034
- }, xi = Y(function() {
2025
+ T || (tt() ? setTimeout(H, 0) : H());
2026
+ }, [T, H]), W = function(c) {
2027
+ return n ? null : c;
2028
+ }, ba = function(c) {
2029
+ return J ? null : W(c);
2030
+ }, la = function(c) {
2031
+ return Q ? null : W(c);
2032
+ }, ra = function(c) {
2033
+ E && c.stopPropagation();
2034
+ }, xi = U(function() {
2035
2035
  return function() {
2036
- var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, l = p.refKey, v = l === void 0 ? "ref" : l, f = p.role, y = p.onKeyDown, aa = p.onFocus, U = p.onBlur, ka = p.onClick, ja = p.onDragEnter, Da = p.onDragOver, va = p.onDragLeave, za = p.onDrop, Ea = ha(p, st);
2037
- return m(m(Ta({
2038
- onKeyDown: wa(k(y, Ma)),
2039
- onFocus: wa(k(aa, $a)),
2040
- onBlur: wa(k(U, Ka)),
2041
- onClick: N(k(ka, Ba)),
2042
- onDragEnter: ma(k(ja, q)),
2043
- onDragOver: ma(k(Da, Z)),
2044
- onDragLeave: ma(k(va, La)),
2045
- onDrop: ma(k(za, da)),
2036
+ var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = p.refKey, u = c === void 0 ? "ref" : c, f = p.role, y = p.onKeyDown, aa = p.onFocus, N = p.onBlur, ha = p.onClick, ya = p.onDragEnter, wa = p.onDragOver, sa = p.onDragLeave, ka = p.onDrop, ja = fa(p, st);
2037
+ return d(d(Pa({
2038
+ onKeyDown: ba(D(y, Ma)),
2039
+ onFocus: ba(D(aa, $a)),
2040
+ onBlur: ba(D(N, Ka)),
2041
+ onClick: W(D(ha, Ba)),
2042
+ onDragEnter: la(D(ya, Ia)),
2043
+ onDragOver: la(D(wa, Ra)),
2044
+ onDragLeave: la(D(sa, La)),
2045
+ onDrop: la(D(ka, ca)),
2046
2046
  role: typeof f == "string" && f !== "" ? f : "presentation"
2047
- }, v, u), !n && !$ ? {
2047
+ }, u, v), !n && !J ? {
2048
2048
  tabIndex: 0
2049
- } : {}), Ea);
2049
+ } : {}), ja);
2050
2050
  };
2051
- }, [u, Ma, $a, Ka, Ba, q, Z, La, da, $, P, n]), gi = h(function(p) {
2051
+ }, [v, Ma, $a, Ka, Ba, Ia, Ra, La, ca, J, Q, n]), gi = h(function(p) {
2052
2052
  p.stopPropagation();
2053
- }, []), bi = Y(function() {
2053
+ }, []), bi = U(function() {
2054
2054
  return function() {
2055
- var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, l = p.refKey, v = l === void 0 ? "ref" : l, f = p.onChange, y = p.onClick, aa = ha(p, dt), U = Ta({
2056
- accept: C,
2057
- multiple: s,
2055
+ var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = p.refKey, u = c === void 0 ? "ref" : c, f = p.onChange, y = p.onClick, aa = fa(p, dt), N = Pa({
2056
+ accept: O,
2057
+ multiple: r,
2058
2058
  type: "file",
2059
2059
  style: {
2060
2060
  border: 0,
@@ -2068,54 +2068,54 @@ function fi() {
2068
2068
  width: "1px",
2069
2069
  whiteSpace: "nowrap"
2070
2070
  },
2071
- onChange: N(k(f, da)),
2072
- onClick: N(k(y, gi)),
2071
+ onChange: W(D(f, ca)),
2072
+ onClick: W(D(y, gi)),
2073
2073
  tabIndex: -1
2074
- }, v, x);
2075
- return m(m({}, U), aa);
2074
+ }, u, b);
2075
+ return d(d({}, N), aa);
2076
2076
  };
2077
- }, [x, t, s, da, n]);
2078
- return m(m({}, X), {}, {
2079
- isFocused: ca && !n,
2077
+ }, [b, t, r, ca, n]);
2078
+ return d(d({}, B), {}, {
2079
+ isFocused: ga && !n,
2080
2080
  getRootProps: xi,
2081
2081
  getInputProps: bi,
2082
- rootRef: u,
2083
- inputRef: x,
2084
- open: N(W)
2082
+ rootRef: v,
2083
+ inputRef: b,
2084
+ open: W(H)
2085
2085
  });
2086
2086
  }
2087
2087
  function yt(a, i) {
2088
2088
  switch (i.type) {
2089
2089
  case "focus":
2090
- return m(m({}, a), {}, {
2090
+ return d(d({}, a), {}, {
2091
2091
  isFocused: !0
2092
2092
  });
2093
2093
  case "blur":
2094
- return m(m({}, a), {}, {
2094
+ return d(d({}, a), {}, {
2095
2095
  isFocused: !1
2096
2096
  });
2097
2097
  case "openDialog":
2098
- return m(m({}, qa), {}, {
2098
+ return d(d({}, Ca), {}, {
2099
2099
  isFileDialogActive: !0
2100
2100
  });
2101
2101
  case "closeDialog":
2102
- return m(m({}, a), {}, {
2102
+ return d(d({}, a), {}, {
2103
2103
  isFileDialogActive: !1
2104
2104
  });
2105
2105
  case "setDraggedFiles":
2106
- return m(m({}, a), {}, {
2106
+ return d(d({}, a), {}, {
2107
2107
  isDragActive: i.isDragActive,
2108
2108
  isDragAccept: i.isDragAccept,
2109
2109
  isDragReject: i.isDragReject
2110
2110
  });
2111
2111
  case "setFiles":
2112
- return m(m({}, a), {}, {
2112
+ return d(d({}, a), {}, {
2113
2113
  acceptedFiles: i.acceptedFiles,
2114
2114
  fileRejections: i.fileRejections,
2115
2115
  isDragReject: i.isDragReject
2116
2116
  });
2117
2117
  case "reset":
2118
- return m({}, qa);
2118
+ return d({}, Ca);
2119
2119
  default:
2120
2120
  return a;
2121
2121
  }
@@ -2130,7 +2130,7 @@ const wt = {
2130
2130
  small: "1.25rem",
2131
2131
  medium: "1.5rem",
2132
2132
  large: "1.75rem"
2133
- }, jt = Ia.label`
2133
+ }, jt = Sa.label`
2134
2134
  display: flex;
2135
2135
  flex-direction: column;
2136
2136
  justify-content: center;
@@ -2158,179 +2158,124 @@ const wt = {
2158
2158
  "text"
2159
2159
  )};
2160
2160
  }
2161
- `, Dt = Ia.input`
2161
+ `, Dt = Sa.input`
2162
2162
  width: 0.1px;
2163
2163
  height: 0.1px;
2164
2164
  opacity: 0;
2165
2165
  overflow: hidden;
2166
2166
  position: absolute;
2167
2167
  z-index: -1;
2168
- `, zt = Ia.span`
2168
+ `, zt = Sa.span`
2169
2169
  align-self: self-end;
2170
2170
  cursor: pointer;
2171
- `, Et = ei((a, i) => {
2171
+ `, qt = ei((a, i) => {
2172
2172
  const {
2173
2173
  inputRef: t,
2174
2174
  id: n = "",
2175
2175
  disabled: e = !1,
2176
- preventDefault: c,
2177
- acceptDropzone: r = {},
2178
- acceptInput: s,
2179
- multiple: g = !1,
2180
- selectFileText: F = "Select file",
2181
- control: w,
2182
- dndFileText: A = "Drag and drop file here or",
2183
- showFileSize: L = !1,
2184
- showDnD: j = !0,
2185
- className: O = "",
2186
- style: _ = {},
2187
- onChange: E = () => {
2176
+ acceptDropzone: o = {},
2177
+ acceptInput: l,
2178
+ multiple: r = !1,
2179
+ selectFileText: x = "Select file",
2180
+ control: k,
2181
+ dndFileText: P = "Drag and drop file here or",
2182
+ showDnD: z = !0,
2183
+ className: C = "",
2184
+ style: S = {},
2185
+ onChange: j = () => {
2188
2186
  },
2189
- onFocus: V = () => {
2187
+ onFocus: F = () => {
2190
2188
  },
2191
- onBlur: J = () => {
2189
+ onBlur: $ = () => {
2192
2190
  },
2193
- onDropAccepted: M = () => {
2191
+ onDropAccepted: G = () => {
2194
2192
  },
2195
- onDrop: Q = () => {
2193
+ onDrop: V = () => {
2196
2194
  },
2197
- color: $ = "primary",
2198
- size: P = "small",
2199
- inputProps: D,
2200
- alwaysShowDropzone: K = !1,
2201
- ...S
2202
- } = a, C = Fi(), [ea, B] = Wa(!1), [T, u] = Wa(j), x = ta();
2203
- xa(() => {
2204
- u(j);
2205
- }, [j]);
2206
- var pa = { theme: C, size: P, color: $, disabled: e, focused: ea };
2207
- const oa = h((d, q) => {
2208
- Q && Q(d, q), u(!1);
2209
- }, []), X = h((d) => {
2210
- E && !e && E(d), M && M(d), u(!1);
2211
- }, []), b = (d) => {
2212
- E && !e && E(d), u(!1);
2213
- }, ca = (d) => {
2214
- var q, Z;
2215
- i != null && i.current ? (q = i.current) == null || q.click() : (Z = x == null ? void 0 : x.current) == null || Z.click();
2216
- }, la = () => w ? zi(w, {
2217
- onClick: (d) => {
2218
- ca(), w.onClick && w.onClick(d);
2195
+ color: K = "primary",
2196
+ size: T = "small",
2197
+ inputProps: J,
2198
+ alwaysShowDropzone: Q = !1,
2199
+ ...E
2200
+ } = a, X = Ai(), [q, O] = Wa(!1), [Z, _] = Wa(z), A = ta();
2201
+ ma(() => {
2202
+ _(z);
2203
+ }, [z]);
2204
+ var v = { theme: X, size: T, color: K, disabled: e, focused: q };
2205
+ const b = h((m, w) => {
2206
+ V && V(m, w), _(!1);
2207
+ }, []), xa = h((m) => {
2208
+ j && !e && j(m), G && G(m), _(!1);
2209
+ }, []), ea = (m) => {
2210
+ j && !e && j(m), _(!1);
2211
+ }, B = () => {
2212
+ var m, w;
2213
+ i != null && i.current ? (m = i.current) == null || m.click() : (w = A == null ? void 0 : A.current) == null || w.click();
2214
+ }, g = () => k ? zi(k, {
2215
+ onClick: (m) => {
2216
+ B(), k.onClick && k.onClick(m);
2219
2217
  },
2220
2218
  disabled: e
2221
2219
  }) : /* @__PURE__ */ ia(
2222
2220
  Ei,
2223
2221
  {
2224
- color: $,
2225
- size: P,
2226
- text: F,
2222
+ color: K,
2223
+ size: T,
2224
+ text: x,
2227
2225
  disabled: e,
2228
- onClick: (d) => {
2229
- d.preventDefault(), ca();
2226
+ onClick: (m) => {
2227
+ m.preventDefault(), B();
2230
2228
  }
2231
2229
  }
2232
- ), { getRootProps: H, getInputProps: ra, isDragActive: z, open: ya } = fi({
2233
- onDrop: oa,
2234
- accept: r,
2235
- onDropAccepted: X,
2236
- multiple: g,
2230
+ ), { getRootProps: ga, getInputProps: pa, isDragActive: I } = fi({
2231
+ onDrop: b,
2232
+ accept: o,
2233
+ onDropAccepted: xa,
2234
+ multiple: r,
2237
2235
  disabled: e,
2238
2236
  noClick: !0
2239
2237
  });
2240
2238
  return /* @__PURE__ */ Ha(
2241
2239
  jt,
2242
2240
  {
2243
- ...pa,
2244
- className: O,
2245
- style: _,
2246
- ...H(),
2247
- ...S,
2248
- ref: i || x,
2241
+ ...v,
2242
+ className: C,
2243
+ style: S,
2244
+ ...ga(),
2245
+ ...E,
2246
+ ref: i || A,
2249
2247
  children: [
2250
2248
  /* @__PURE__ */ ia(
2251
2249
  Dt,
2252
2250
  {
2253
- ...ra(),
2254
- ...pa,
2255
- multiple: g,
2251
+ ...pa(),
2252
+ ...v,
2253
+ multiple: r,
2256
2254
  ref: t,
2257
2255
  type: "file",
2258
2256
  action: "bla.html",
2259
- accept: s,
2257
+ accept: l,
2260
2258
  id: n,
2261
- onFocus: (d) => {
2262
- e || B(!0), V && !e && V(d);
2259
+ onFocus: (m) => {
2260
+ e || O(!0), F && !e && F(m);
2263
2261
  },
2264
- onBlur: (d) => {
2265
- e || B(!1), J && !e && J(d);
2262
+ onBlur: (m) => {
2263
+ e || O(!1), $ && !e && $(m);
2266
2264
  },
2267
- onChange: b,
2268
- ...D
2265
+ onChange: ea,
2266
+ ...J
2269
2267
  }
2270
2268
  ),
2271
- !z && !T && !K && /* @__PURE__ */ ia(zt, { children: /* @__PURE__ */ ia(Na, { icon: "plus", size: P }) }),
2272
- (z || T || K) && /* @__PURE__ */ Ha(yi, { children: [
2273
- /* @__PURE__ */ ia(Na, { icon: "upload", size: P, className: "dnd-icon-lnc" }),
2274
- A,
2275
- la()
2269
+ !I && !Z && !Q && /* @__PURE__ */ ia(zt, { children: /* @__PURE__ */ ia(Na, { icon: "plus", size: T }) }),
2270
+ (I || Z || Q) && /* @__PURE__ */ Ha(yi, { children: [
2271
+ /* @__PURE__ */ ia(Na, { icon: "upload", size: T, className: "dnd-icon-lnc" }),
2272
+ P,
2273
+ g()
2276
2274
  ] })
2277
2275
  ]
2278
2276
  }
2279
2277
  );
2280
2278
  });
2281
- Et.propTypes = {
2282
- inputRef: o.any,
2283
- id: o.any,
2284
- disabled: o.bool,
2285
- /**
2286
- * Type of: { \[key: string]: string[] }
2287
- *
2288
- * Ex: {
2289
- *
2290
- * 'image/png': ['.png'],
2291
- *
2292
- * 'text/html': ['.html', '.htm']
2293
- *
2294
- * }
2295
- */
2296
- accept: o.object,
2297
- multiple: o.bool,
2298
- selectFileText: o.string,
2299
- /**
2300
- * Custom control which opens file explorer on click
2301
- */
2302
- control: o.element,
2303
- dndFileText: o.oneOfType([o.string, o.element]),
2304
- showFileSize: o.bool,
2305
- /**
2306
- * Determines whether Drag and Drop area or Add button will be shown
2307
- *
2308
- * }
2309
- */
2310
- showDnD: o.bool,
2311
- alwaysShowDropzone: o.bool,
2312
- //-------------------------
2313
- onChange: o.func,
2314
- onFocus: o.func,
2315
- onBlur: o.func,
2316
- onDropAccepted: o.func,
2317
- onDrop: o.func,
2318
- //-------------------------
2319
- className: o.string,
2320
- style: o.object,
2321
- size: o.oneOf(["small", "medium", "large"]),
2322
- color: o.oneOf([
2323
- "primary",
2324
- "secondary",
2325
- "success",
2326
- "danger",
2327
- "warning",
2328
- "information",
2329
- "neutral",
2330
- "gray"
2331
- ]),
2332
- inputProps: o.any
2333
- };
2334
2279
  export {
2335
- Et as default
2280
+ qt as default
2336
2281
  };