@keboola/design 11.0.0 → 11.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (670) hide show
  1. package/AGENTS.md +16 -1
  2. package/CHANGELOG.md +2138 -0
  3. package/COMPONENT-API.md +40 -1
  4. package/dist/AIKit-DiS0CVOW.js +1320 -0
  5. package/dist/AIKit-DiS0CVOW.js.map +1 -0
  6. package/dist/Alert-DfZq9kGe.js +133 -0
  7. package/dist/Alert-DfZq9kGe.js.map +1 -0
  8. package/dist/AlertModal-Dp_XuJBW.js +219 -0
  9. package/dist/AlertModal-Dp_XuJBW.js.map +1 -0
  10. package/dist/AppShell-B5GQN6Zs.js +143 -0
  11. package/dist/AppShell-B5GQN6Zs.js.map +1 -0
  12. package/dist/AutoSaveTextarea-BeuWuszr.js +58 -0
  13. package/dist/{chunk-UGT6DKWM.js.map → AutoSaveTextarea-BeuWuszr.js.map} +1 -1
  14. package/dist/Badge-Ch26CXoP.js +195 -0
  15. package/dist/Badge-Ch26CXoP.js.map +1 -0
  16. package/dist/BrandEditor-DyzgfVkl.js +903 -0
  17. package/dist/BrandEditor-DyzgfVkl.js.map +1 -0
  18. package/dist/BrandLogo-CJkRd0F8.js +46 -0
  19. package/dist/BrandLogo-CJkRd0F8.js.map +1 -0
  20. package/dist/Breadcrumb-Frst8MTA.js +330 -0
  21. package/dist/Breadcrumb-Frst8MTA.js.map +1 -0
  22. package/dist/Button-6xBX0nNl.js +391 -0
  23. package/dist/Button-6xBX0nNl.js.map +1 -0
  24. package/dist/Calendar-cG5NIJ4O.js +6768 -0
  25. package/dist/Calendar-cG5NIJ4O.js.map +1 -0
  26. package/dist/Card-BAoZ35CV.js +105 -0
  27. package/dist/Card-BAoZ35CV.js.map +1 -0
  28. package/dist/Checkbox-GJ8-srt4.js +97 -0
  29. package/dist/Checkbox-GJ8-srt4.js.map +1 -0
  30. package/dist/Clipboard-CBJZiviP.js +58 -0
  31. package/dist/Clipboard-CBJZiviP.js.map +1 -0
  32. package/dist/ClipboardButton-ClcluT0C.js +43 -0
  33. package/dist/ClipboardButton-ClcluT0C.js.map +1 -0
  34. package/dist/CodeEditor-DyaN-Ij2.js +1000 -0
  35. package/dist/CodeEditor-DyaN-Ij2.js.map +1 -0
  36. package/dist/Collapsible-BQXWEOBC.js +34 -0
  37. package/dist/Collapsible-BQXWEOBC.js.map +1 -0
  38. package/dist/ColorInput-B8z4j4Y_.js +180 -0
  39. package/dist/ColorInput-B8z4j4Y_.js.map +1 -0
  40. package/dist/ColorModeSwitch-dZFZyqy1.js +77 -0
  41. package/dist/ColorModeSwitch-dZFZyqy1.js.map +1 -0
  42. package/dist/Combobox-Dgm6Z4ib.js +443 -0
  43. package/dist/Combobox-Dgm6Z4ib.js.map +1 -0
  44. package/dist/Command-C0aZfVTq.js +102 -0
  45. package/dist/Command-C0aZfVTq.js.map +1 -0
  46. package/dist/CopyField-BJ96zvXs.js +322 -0
  47. package/dist/CopyField-BJ96zvXs.js.map +1 -0
  48. package/dist/DateInput-B3UdzRfW.js +141 -0
  49. package/dist/DateInput-B3UdzRfW.js.map +1 -0
  50. package/dist/DatePicker-Dw3DpbUh.js +24 -0
  51. package/dist/DatePicker-Dw3DpbUh.js.map +1 -0
  52. package/dist/DateRangeInput-DTuySEiq.js +139 -0
  53. package/dist/DateRangeInput-DTuySEiq.js.map +1 -0
  54. package/dist/DateRangePicker-DCmMHg4s.js +159 -0
  55. package/dist/DateRangePicker-DCmMHg4s.js.map +1 -0
  56. package/dist/DiagramSkeleton-lwBS2YBa.js +11 -0
  57. package/dist/DiagramSkeleton-lwBS2YBa.js.map +1 -0
  58. package/dist/DiffView-ppTIzh2h.js +429 -0
  59. package/dist/DiffView-ppTIzh2h.js.map +1 -0
  60. package/dist/DropdownMenu-t90tVw6l.js +327 -0
  61. package/dist/DropdownMenu-t90tVw6l.js.map +1 -0
  62. package/dist/FieldBox-D7DYtX_m.js +70 -0
  63. package/dist/FieldBox-D7DYtX_m.js.map +1 -0
  64. package/dist/FieldItem-CAPj9lj3.d.ts +111 -0
  65. package/dist/FieldItem-D-h1NeBo.js +108 -0
  66. package/dist/FieldItem-D-h1NeBo.js.map +1 -0
  67. package/dist/FileUpload-BRv0TaZk.js +2527 -0
  68. package/dist/FileUpload-BRv0TaZk.js.map +1 -0
  69. package/dist/Form-DHvcFoEi.js +311 -0
  70. package/dist/Form-DHvcFoEi.js.map +1 -0
  71. package/dist/FormGroup-C41n65cE.js +124 -0
  72. package/dist/FormGroup-C41n65cE.js.map +1 -0
  73. package/dist/FullScreenModal-Cb3PGgh4.js +96 -0
  74. package/dist/FullScreenModal-Cb3PGgh4.js.map +1 -0
  75. package/dist/HoverCard-WfDkLK1s.js +31 -0
  76. package/dist/HoverCard-WfDkLK1s.js.map +1 -0
  77. package/dist/InputGroup-CdTq8H7c.js +292 -0
  78. package/dist/InputGroup-CdTq8H7c.js.map +1 -0
  79. package/dist/Kbd-CxHAo1oo.js +111 -0
  80. package/dist/Kbd-CxHAo1oo.js.map +1 -0
  81. package/dist/MarkedText-Ckbft5mw.js +44 -0
  82. package/dist/MarkedText-Ckbft5mw.js.map +1 -0
  83. package/dist/MermaidDiagram-ChL3WIQT.js +399 -0
  84. package/dist/MermaidDiagram-ChL3WIQT.js.map +1 -0
  85. package/dist/Modal-wqG8nJiK.js +185 -0
  86. package/dist/Modal-wqG8nJiK.js.map +1 -0
  87. package/dist/ModalTitle-C76ke2eo.js +28 -0
  88. package/dist/ModalTitle-C76ke2eo.js.map +1 -0
  89. package/dist/MultiActionButtonGroup-BiIIubiL.js +33 -0
  90. package/dist/MultiActionButtonGroup-BiIIubiL.js.map +1 -0
  91. package/dist/Navbar-BfaPeLUL.js +325 -0
  92. package/dist/Navbar-BfaPeLUL.js.map +1 -0
  93. package/dist/OtpInput-CbbymqYs.js +93 -0
  94. package/dist/OtpInput-CbbymqYs.js.map +1 -0
  95. package/dist/PageHeader-Q3IpCnQd.js +177 -0
  96. package/dist/PageHeader-Q3IpCnQd.js.map +1 -0
  97. package/dist/PageLayout-DSVM-ASz.js +176 -0
  98. package/dist/PageLayout-DSVM-ASz.js.map +1 -0
  99. package/dist/PageToolbar-OQg3mPF-.js +153 -0
  100. package/dist/PageToolbar-OQg3mPF-.js.map +1 -0
  101. package/dist/Pagination-Cjfda8KG.js +70 -0
  102. package/dist/Pagination-Cjfda8KG.js.map +1 -0
  103. package/dist/Popconfirm-D7_vfxFd.js +167 -0
  104. package/dist/Popconfirm-D7_vfxFd.js.map +1 -0
  105. package/dist/Popover-CzeHjvrB.js +85 -0
  106. package/dist/Popover-CzeHjvrB.js.map +1 -0
  107. package/dist/RadioGroup-sIveSsNa.js +233 -0
  108. package/dist/RadioGroup-sIveSsNa.js.map +1 -0
  109. package/dist/Resizable-D3vYToZH.js +52 -0
  110. package/dist/Resizable-D3vYToZH.js.map +1 -0
  111. package/dist/Search-3UiqNZRj.js +184 -0
  112. package/dist/Search-3UiqNZRj.js.map +1 -0
  113. package/dist/SearchInput-C7dF_Ir-.js +102 -0
  114. package/dist/SearchInput-C7dF_Ir-.js.map +1 -0
  115. package/dist/SectionNav-8NoTOKO8.js +276 -0
  116. package/dist/SectionNav-8NoTOKO8.js.map +1 -0
  117. package/dist/Select-Is0VkePH.js +181 -0
  118. package/dist/Select-Is0VkePH.js.map +1 -0
  119. package/dist/Sheet-Dw9BDvjI.js +169 -0
  120. package/dist/Sheet-Dw9BDvjI.js.map +1 -0
  121. package/dist/Sidebar-Dcb4rinA.js +799 -0
  122. package/dist/Sidebar-Dcb4rinA.js.map +1 -0
  123. package/dist/Slider-BOPfMOMm.js +127 -0
  124. package/dist/Slider-BOPfMOMm.js.map +1 -0
  125. package/dist/Stepper-C8sm9ZFM.js +325 -0
  126. package/dist/Stepper-C8sm9ZFM.js.map +1 -0
  127. package/dist/Switch-CX2A0v50.js +201 -0
  128. package/dist/Switch-CX2A0v50.js.map +1 -0
  129. package/dist/Table-CvYuTuNU.js +104 -0
  130. package/dist/Table-CvYuTuNU.js.map +1 -0
  131. package/dist/Tabs-UMQuDoW8.js +74 -0
  132. package/dist/Tabs-UMQuDoW8.js.map +1 -0
  133. package/dist/TextInput-CMuN1WfY.js +110 -0
  134. package/dist/TextInput-CMuN1WfY.js.map +1 -0
  135. package/dist/ThemeProvider-QncUrfJn.js +203 -0
  136. package/dist/ThemeProvider-QncUrfJn.js.map +1 -0
  137. package/dist/TimePicker-D9zktB8A.js +98 -0
  138. package/dist/TimePicker-D9zktB8A.js.map +1 -0
  139. package/dist/Timeline-6btyJl4D.js +154 -0
  140. package/dist/Timeline-6btyJl4D.js.map +1 -0
  141. package/dist/Toast-DQSbs3oA.js +49 -0
  142. package/dist/Toast-DQSbs3oA.js.map +1 -0
  143. package/dist/ToggleGroup-Cy_10Mvu.js +47 -0
  144. package/dist/ToggleGroup-Cy_10Mvu.js.map +1 -0
  145. package/dist/Workbench-BzE-Vvd9.js +293 -0
  146. package/dist/Workbench-BzE-Vvd9.js.map +1 -0
  147. package/dist/ZoomableSvg-CZEu6sAq.js +248 -0
  148. package/dist/ZoomableSvg-CZEu6sAq.js.map +1 -0
  149. package/dist/charts.d.ts +110 -103
  150. package/dist/charts.js +303 -254
  151. package/dist/charts.js.map +1 -1
  152. package/dist/classNames-BzrkDnOD.js +9 -0
  153. package/dist/classNames-BzrkDnOD.js.map +1 -0
  154. package/dist/context-KxxeMHbR.js +62 -0
  155. package/dist/context-KxxeMHbR.js.map +1 -0
  156. package/dist/editors.d.ts +244 -175
  157. package/dist/editors.js +802 -428
  158. package/dist/editors.js.map +1 -1
  159. package/dist/escapeStringRegexp-8MxP2knR.js +6 -0
  160. package/dist/escapeStringRegexp-8MxP2knR.js.map +1 -0
  161. package/dist/icons-Cek151jC.js +640 -0
  162. package/dist/icons-Cek151jC.js.map +1 -0
  163. package/dist/icons.d.ts +2 -41
  164. package/dist/icons.js +2 -9
  165. package/dist/index-m-kQEWiY.d.ts +54 -0
  166. package/dist/index.d.ts +6191 -9891
  167. package/dist/index.js +113 -124
  168. package/dist/internal/blocks/AIKit.js +2 -30
  169. package/dist/internal/blocks/AppShell.js +2 -11
  170. package/dist/internal/blocks/AutoSaveTextarea.js +2 -14
  171. package/dist/internal/blocks/BrandEditor.js +2 -23
  172. package/dist/internal/blocks/ChartPanel.js +45 -9
  173. package/dist/internal/blocks/ChartPanel.js.map +1 -1
  174. package/dist/internal/blocks/ClipboardButton.js +2 -12
  175. package/dist/internal/blocks/ColorInput.js +2 -13
  176. package/dist/internal/blocks/ColorModeSwitch.js +2 -13
  177. package/dist/internal/blocks/Command.js +2 -15
  178. package/dist/internal/blocks/CopyField.js +2 -11
  179. package/dist/internal/blocks/DashboardHero.js +58 -8
  180. package/dist/internal/blocks/DashboardHero.js.map +1 -1
  181. package/dist/internal/blocks/DateInput.js +2 -16
  182. package/dist/internal/blocks/DateRangeInput.js +2 -16
  183. package/dist/internal/blocks/EmptyConfigurationActionCard.js +15 -9
  184. package/dist/internal/blocks/EmptyConfigurationActionCard.js.map +1 -1
  185. package/dist/internal/blocks/EmptyState.js +141 -3
  186. package/dist/internal/blocks/EmptyState.js.map +1 -1
  187. package/dist/internal/blocks/ErrorState.js +178 -4
  188. package/dist/internal/blocks/ErrorState.js.map +1 -1
  189. package/dist/internal/blocks/ExportMenu.js +40 -12
  190. package/dist/internal/blocks/ExportMenu.js.map +1 -1
  191. package/dist/internal/blocks/Form/connectors/MultiComboboxField.js +56 -0
  192. package/dist/internal/blocks/Form/connectors/MultiComboboxField.js.map +1 -0
  193. package/dist/internal/blocks/Form.js +2 -29
  194. package/dist/internal/blocks/FormGroup.js +2 -18
  195. package/dist/internal/blocks/GoogleButton.js +94 -9
  196. package/dist/internal/blocks/GoogleButton.js.map +1 -1
  197. package/dist/internal/blocks/MicrosoftButton.js +63 -9
  198. package/dist/internal/blocks/MicrosoftButton.js.map +1 -1
  199. package/dist/internal/blocks/MultiActionButtonGroup.js +2 -12
  200. package/dist/internal/blocks/MultiCombobox.js +192 -13
  201. package/dist/internal/blocks/MultiCombobox.js.map +1 -1
  202. package/dist/internal/blocks/NumberInput.js +43 -11
  203. package/dist/internal/blocks/NumberInput.js.map +1 -1
  204. package/dist/internal/blocks/OtpInput.js +2 -10
  205. package/dist/internal/blocks/PageHeader.js +2 -9
  206. package/dist/internal/blocks/PageLayout.js +2 -9
  207. package/dist/internal/blocks/PageToolbar.js +2 -13
  208. package/dist/internal/blocks/PasswordInput.js +96 -12
  209. package/dist/internal/blocks/PasswordInput.js.map +1 -1
  210. package/dist/internal/blocks/SearchInput.js +2 -12
  211. package/dist/internal/blocks/SearchInputWithNavigation.js +64 -15
  212. package/dist/internal/blocks/SearchInputWithNavigation.js.map +1 -1
  213. package/dist/internal/blocks/SectionNav.js +2 -15
  214. package/dist/internal/blocks/SplitButton.js +45 -13
  215. package/dist/internal/blocks/SplitButton.js.map +1 -1
  216. package/dist/internal/blocks/StatCard.js +96 -9
  217. package/dist/internal/blocks/StatCard.js.map +1 -1
  218. package/dist/internal/blocks/TextInput.js +2 -13
  219. package/dist/internal/blocks/Textarea.js +31 -12
  220. package/dist/internal/blocks/Textarea.js.map +1 -1
  221. package/dist/internal/blocks/TimeInput.js +76 -16
  222. package/dist/internal/blocks/TimeInput.js.map +1 -1
  223. package/dist/internal/components/Alert.js +2 -11
  224. package/dist/internal/components/AlertModal.js +2 -11
  225. package/dist/internal/components/Avatar.js +52 -8
  226. package/dist/internal/components/Avatar.js.map +1 -1
  227. package/dist/internal/components/Badge.js +2 -9
  228. package/dist/internal/components/BrandLogo.js +2 -11
  229. package/dist/internal/components/Breadcrumb.js +2 -14
  230. package/dist/internal/components/Button.js +2 -10
  231. package/dist/internal/components/ButtonGroup.js +65 -8
  232. package/dist/internal/components/ButtonGroup.js.map +1 -1
  233. package/dist/internal/components/Calendar.js +2 -9
  234. package/dist/internal/components/Card.js +2 -9
  235. package/dist/internal/components/Checkbox.js +2 -11
  236. package/dist/internal/components/Clipboard.js +2 -9
  237. package/dist/internal/components/Collapsible.js +2 -9
  238. package/dist/internal/components/CollapsiblePanel.js +86 -10
  239. package/dist/internal/components/CollapsiblePanel.js.map +1 -1
  240. package/dist/internal/components/Combobox.js +2 -13
  241. package/dist/internal/components/DatePicker.js +2 -11
  242. package/dist/internal/components/DateRangePicker.js +2 -17
  243. package/dist/internal/components/DiffView.js +2 -9
  244. package/dist/internal/components/DotsLoader.js +17 -4
  245. package/dist/internal/components/DotsLoader.js.map +1 -1
  246. package/dist/internal/components/DropdownMenu.js +2 -11
  247. package/dist/internal/components/EmptySearchContent.js +11 -3
  248. package/dist/internal/components/EmptySearchContent.js.map +1 -1
  249. package/dist/internal/components/FileUpload.js +2 -11
  250. package/dist/internal/components/FullScreenModal.js +2 -12
  251. package/dist/internal/components/HelpBlock.js +24 -3
  252. package/dist/internal/components/HelpBlock.js.map +1 -1
  253. package/dist/internal/components/HoverCard.js +2 -9
  254. package/dist/internal/components/InputGroup.js +2 -11
  255. package/dist/internal/components/Kbd.js +2 -9
  256. package/dist/internal/components/Label.js +38 -8
  257. package/dist/internal/components/Label.js.map +1 -1
  258. package/dist/internal/components/Link.js +21 -8
  259. package/dist/internal/components/Link.js.map +1 -1
  260. package/dist/internal/components/MarkedText.js +2 -5
  261. package/dist/internal/components/MergeEditor/ConflictStatus/ConflictStatusIndicator.js +19 -9
  262. package/dist/internal/components/MergeEditor/ConflictStatus/ConflictStatusIndicator.js.map +1 -1
  263. package/dist/internal/components/MergeEditor/PaneHeader.js +12 -3
  264. package/dist/internal/components/MergeEditor/PaneHeader.js.map +1 -1
  265. package/dist/internal/components/MergeEditor/constants.js +17 -3
  266. package/dist/internal/components/MergeEditor/constants.js.map +1 -1
  267. package/dist/internal/components/MergeEditor/useMergeDiff.js +2 -5
  268. package/dist/internal/components/Modal.js +2 -13
  269. package/dist/internal/components/Navbar.js +2 -14
  270. package/dist/internal/components/Pagination.js +2 -11
  271. package/dist/internal/components/PanelWithDetails.js +30 -10
  272. package/dist/internal/components/PanelWithDetails.js.map +1 -1
  273. package/dist/internal/components/Popconfirm.js +2 -12
  274. package/dist/internal/components/Popover.js +2 -9
  275. package/dist/internal/components/Progress.js +46 -8
  276. package/dist/internal/components/Progress.js.map +1 -1
  277. package/dist/internal/components/RadioGroup.js +2 -12
  278. package/dist/internal/components/Resizable.js +2 -9
  279. package/dist/internal/components/ScrollArea.js +41 -8
  280. package/dist/internal/components/ScrollArea.js.map +1 -1
  281. package/dist/internal/components/Search.js +2 -10
  282. package/dist/internal/components/Select.js +2 -12
  283. package/dist/internal/components/Separator.js +83 -8
  284. package/dist/internal/components/Separator.js.map +1 -1
  285. package/dist/internal/components/Sheet.js +2 -12
  286. package/dist/internal/components/Sidebar.js +2 -20
  287. package/dist/internal/components/Skeleton/Skeleton.js +38 -8
  288. package/dist/internal/components/Skeleton/Skeleton.js.map +1 -1
  289. package/dist/internal/components/Skeleton/SkeletonList.js +40 -9
  290. package/dist/internal/components/Skeleton/SkeletonList.js.map +1 -1
  291. package/dist/internal/components/Slider.js +2 -11
  292. package/dist/internal/components/SpotlightBackdrop.js +131 -8
  293. package/dist/internal/components/SpotlightBackdrop.js.map +1 -1
  294. package/dist/internal/components/Stepper.js +2 -10
  295. package/dist/internal/components/Switch.js +2 -10
  296. package/dist/internal/components/Table.js +2 -10
  297. package/dist/internal/components/Tabs.js +2 -12
  298. package/dist/internal/components/ThemeProvider.js +3 -10
  299. package/dist/internal/components/TimePicker.js +2 -12
  300. package/dist/internal/components/Timeline.js +2 -10
  301. package/dist/internal/components/Toast.js +3 -11
  302. package/dist/internal/components/Toggle.js +168 -8
  303. package/dist/internal/components/Toggle.js.map +1 -1
  304. package/dist/internal/components/ToggleGroup.js +2 -9
  305. package/dist/internal/components/Tooltip.js +2 -8
  306. package/dist/internal/components/Truncated.js +44 -8
  307. package/dist/internal/components/Truncated.js.map +1 -1
  308. package/dist/internal/components/Workbench.js +2 -11
  309. package/dist/internal/components/ZoomableSvg.js +2 -13
  310. package/dist/internal/hooks/useAutosizeInput.js +76 -3
  311. package/dist/internal/hooks/useAutosizeInput.js.map +1 -1
  312. package/dist/internal/hooks/useScrollbarPosition.js +44 -4
  313. package/dist/internal/hooks/useScrollbarPosition.js.map +1 -1
  314. package/dist/internal/hooks/useStableCallback.js +28 -3
  315. package/dist/internal/hooks/useStableCallback.js.map +1 -1
  316. package/dist/internal/utils/mergeRefs.js +19 -3
  317. package/dist/internal/utils/mergeRefs.js.map +1 -1
  318. package/dist/internal/utils.js +5 -8
  319. package/dist/markdown-editor.d.ts +72 -72
  320. package/dist/markdown-editor.js +1122 -1207
  321. package/dist/markdown-editor.js.map +1 -1
  322. package/dist/mermaid.d.ts +12 -12
  323. package/dist/mermaid.js +2 -18
  324. package/dist/rjsf.d.ts +45 -34
  325. package/dist/rjsf.js +1601 -1671
  326. package/dist/rjsf.js.map +1 -1
  327. package/dist/rolldown-runtime-Bdc48AWt.js +33 -0
  328. package/dist/styles-DSUP_-9Z.js +158 -0
  329. package/dist/styles-DSUP_-9Z.js.map +1 -0
  330. package/dist/styles.css +1 -1
  331. package/dist/testing.d.ts +8 -7
  332. package/dist/testing.js +36 -21
  333. package/dist/testing.js.map +1 -1
  334. package/dist/themeTokens-BNg98Mu9.js +85 -0
  335. package/dist/themeTokens-BNg98Mu9.js.map +1 -0
  336. package/dist/toast-CjkURw0M.js +184 -0
  337. package/dist/toast-CjkURw0M.js.map +1 -0
  338. package/dist/useColorSchemeState-CYqcUfSH.js +61 -0
  339. package/dist/useColorSchemeState-CYqcUfSH.js.map +1 -0
  340. package/dist/useControllableState-M6494mCT.js +31 -0
  341. package/dist/useControllableState-M6494mCT.js.map +1 -0
  342. package/dist/useElement-DkF6esWL.js +15 -0
  343. package/dist/useElement-DkF6esWL.js.map +1 -0
  344. package/dist/useMergeDiff-CvowEXJ1.js +465 -0
  345. package/dist/useMergeDiff-CvowEXJ1.js.map +1 -0
  346. package/dist/utils-D0c5VAyF.js +308 -0
  347. package/dist/utils-D0c5VAyF.js.map +1 -0
  348. package/package.json +11 -10
  349. package/dist/MermaidDiagram-ZU5KAVRT.js +0 -18
  350. package/dist/MermaidDiagram-ZU5KAVRT.js.map +0 -1
  351. package/dist/chunk-2YYJDKSP.js +0 -51
  352. package/dist/chunk-2YYJDKSP.js.map +0 -1
  353. package/dist/chunk-3P5UUCFI.js +0 -385
  354. package/dist/chunk-3P5UUCFI.js.map +0 -1
  355. package/dist/chunk-3QDFDDWZ.js +0 -99
  356. package/dist/chunk-3QDFDDWZ.js.map +0 -1
  357. package/dist/chunk-3W27OLK5.js +0 -15
  358. package/dist/chunk-3W27OLK5.js.map +0 -1
  359. package/dist/chunk-4FIZZONW.js +0 -40
  360. package/dist/chunk-4FIZZONW.js.map +0 -1
  361. package/dist/chunk-4GIAXOJG.js +0 -133
  362. package/dist/chunk-4GIAXOJG.js.map +0 -1
  363. package/dist/chunk-52NDNMK7.js +0 -99
  364. package/dist/chunk-52NDNMK7.js.map +0 -1
  365. package/dist/chunk-576G5OES.js +0 -201
  366. package/dist/chunk-576G5OES.js.map +0 -1
  367. package/dist/chunk-5AIE6SET.js +0 -659
  368. package/dist/chunk-5AIE6SET.js.map +0 -1
  369. package/dist/chunk-5FTNAZRW.js +0 -327
  370. package/dist/chunk-5FTNAZRW.js.map +0 -1
  371. package/dist/chunk-5IG2S7ZY.js +0 -70
  372. package/dist/chunk-5IG2S7ZY.js.map +0 -1
  373. package/dist/chunk-5QCXHNCW.js +0 -404
  374. package/dist/chunk-5QCXHNCW.js.map +0 -1
  375. package/dist/chunk-6DUMGC7Y.js +0 -105
  376. package/dist/chunk-6DUMGC7Y.js.map +0 -1
  377. package/dist/chunk-6J25CVST.js +0 -174
  378. package/dist/chunk-6J25CVST.js.map +0 -1
  379. package/dist/chunk-6NN35XOP.js +0 -120
  380. package/dist/chunk-6NN35XOP.js.map +0 -1
  381. package/dist/chunk-6NZBVA4T.js +0 -24
  382. package/dist/chunk-6NZBVA4T.js.map +0 -1
  383. package/dist/chunk-6W5BHRCL.js +0 -295
  384. package/dist/chunk-6W5BHRCL.js.map +0 -1
  385. package/dist/chunk-72BKRCEG.js +0 -409
  386. package/dist/chunk-72BKRCEG.js.map +0 -1
  387. package/dist/chunk-7GTI3PPI.js +0 -95
  388. package/dist/chunk-7GTI3PPI.js.map +0 -1
  389. package/dist/chunk-7P6PLZ4B.js +0 -74
  390. package/dist/chunk-7P6PLZ4B.js.map +0 -1
  391. package/dist/chunk-7WZWY5IA.js +0 -46
  392. package/dist/chunk-7WZWY5IA.js.map +0 -1
  393. package/dist/chunk-AIYO2632.js +0 -489
  394. package/dist/chunk-AIYO2632.js.map +0 -1
  395. package/dist/chunk-ANFZWPNE.js +0 -112
  396. package/dist/chunk-ANFZWPNE.js.map +0 -1
  397. package/dist/chunk-ANZTVAJU.js +0 -73
  398. package/dist/chunk-ANZTVAJU.js.map +0 -1
  399. package/dist/chunk-BD5BTJKX.js +0 -166
  400. package/dist/chunk-BD5BTJKX.js.map +0 -1
  401. package/dist/chunk-BHGIDSRJ.js +0 -140
  402. package/dist/chunk-BHGIDSRJ.js.map +0 -1
  403. package/dist/chunk-BSQWZITZ.js +0 -507
  404. package/dist/chunk-BSQWZITZ.js.map +0 -1
  405. package/dist/chunk-D3LAIK62.js +0 -23
  406. package/dist/chunk-D3LAIK62.js.map +0 -1
  407. package/dist/chunk-DODCR43C.js +0 -155
  408. package/dist/chunk-DODCR43C.js.map +0 -1
  409. package/dist/chunk-EEK5NGZF.js +0 -40
  410. package/dist/chunk-EEK5NGZF.js.map +0 -1
  411. package/dist/chunk-ENRG7TXA.js +0 -11
  412. package/dist/chunk-ENRG7TXA.js.map +0 -1
  413. package/dist/chunk-EQRMGIGY.js +0 -239
  414. package/dist/chunk-EQRMGIGY.js.map +0 -1
  415. package/dist/chunk-ERAHK5YQ.js +0 -495
  416. package/dist/chunk-ERAHK5YQ.js.map +0 -1
  417. package/dist/chunk-F3FOFY2P.js +0 -124
  418. package/dist/chunk-F3FOFY2P.js.map +0 -1
  419. package/dist/chunk-F6BTWFOC.js +0 -507
  420. package/dist/chunk-F6BTWFOC.js.map +0 -1
  421. package/dist/chunk-F6J6NNAL.js +0 -34
  422. package/dist/chunk-F6J6NNAL.js.map +0 -1
  423. package/dist/chunk-FCHJ7D5O.js +0 -59
  424. package/dist/chunk-FCHJ7D5O.js.map +0 -1
  425. package/dist/chunk-FFJTEQCC.js +0 -80
  426. package/dist/chunk-FFJTEQCC.js.map +0 -1
  427. package/dist/chunk-FUFMVW7O.js +0 -64
  428. package/dist/chunk-FUFMVW7O.js.map +0 -1
  429. package/dist/chunk-FVPGQ6UE.js +0 -25
  430. package/dist/chunk-FVPGQ6UE.js.map +0 -1
  431. package/dist/chunk-G3PMV62Z.js +0 -33
  432. package/dist/chunk-G3PMV62Z.js.map +0 -1
  433. package/dist/chunk-GACFOW3E.js +0 -51
  434. package/dist/chunk-GACFOW3E.js.map +0 -1
  435. package/dist/chunk-GDT6HQMK.js +0 -42
  436. package/dist/chunk-GDT6HQMK.js.map +0 -1
  437. package/dist/chunk-HLGU22C6.js +0 -2589
  438. package/dist/chunk-HLGU22C6.js.map +0 -1
  439. package/dist/chunk-HPMYYGP7.js +0 -134
  440. package/dist/chunk-HPMYYGP7.js.map +0 -1
  441. package/dist/chunk-I2UCOD45.js +0 -197
  442. package/dist/chunk-I2UCOD45.js.map +0 -1
  443. package/dist/chunk-IEGDZUVM.js +0 -75
  444. package/dist/chunk-IEGDZUVM.js.map +0 -1
  445. package/dist/chunk-IIS7INHF.js +0 -47
  446. package/dist/chunk-IIS7INHF.js.map +0 -1
  447. package/dist/chunk-ITELSEFU.js +0 -256
  448. package/dist/chunk-ITELSEFU.js.map +0 -1
  449. package/dist/chunk-IXAYNBOY.js +0 -407
  450. package/dist/chunk-IXAYNBOY.js.map +0 -1
  451. package/dist/chunk-JUW2ETEI.js +0 -191
  452. package/dist/chunk-JUW2ETEI.js.map +0 -1
  453. package/dist/chunk-K65C7CVE.js +0 -127
  454. package/dist/chunk-K65C7CVE.js.map +0 -1
  455. package/dist/chunk-KDI64MCY.js +0 -189
  456. package/dist/chunk-KDI64MCY.js.map +0 -1
  457. package/dist/chunk-KN4ASMH5.js +0 -160
  458. package/dist/chunk-KN4ASMH5.js.map +0 -1
  459. package/dist/chunk-KQW7QNTU.js +0 -1549
  460. package/dist/chunk-KQW7QNTU.js.map +0 -1
  461. package/dist/chunk-KR7NXXHC.js +0 -66
  462. package/dist/chunk-KR7NXXHC.js.map +0 -1
  463. package/dist/chunk-KRZKIVMA.js +0 -142
  464. package/dist/chunk-KRZKIVMA.js.map +0 -1
  465. package/dist/chunk-KTTLLKGQ.js +0 -185
  466. package/dist/chunk-KTTLLKGQ.js.map +0 -1
  467. package/dist/chunk-KWKSHPDP.js +0 -234
  468. package/dist/chunk-KWKSHPDP.js.map +0 -1
  469. package/dist/chunk-KZVC7OYG.js +0 -57
  470. package/dist/chunk-KZVC7OYG.js.map +0 -1
  471. package/dist/chunk-L5DHUN2V.js +0 -204
  472. package/dist/chunk-L5DHUN2V.js.map +0 -1
  473. package/dist/chunk-LCTGEH57.js +0 -1376
  474. package/dist/chunk-LCTGEH57.js.map +0 -1
  475. package/dist/chunk-LXLIQ2D6.js +0 -12
  476. package/dist/chunk-LXLIQ2D6.js.map +0 -1
  477. package/dist/chunk-M4CTURKX.js +0 -84
  478. package/dist/chunk-M4CTURKX.js.map +0 -1
  479. package/dist/chunk-M6LTUPVP.js +0 -301
  480. package/dist/chunk-M6LTUPVP.js.map +0 -1
  481. package/dist/chunk-MA6RRHDT.js +0 -291
  482. package/dist/chunk-MA6RRHDT.js.map +0 -1
  483. package/dist/chunk-MODE4QIA.js +0 -6
  484. package/dist/chunk-MODE4QIA.js.map +0 -1
  485. package/dist/chunk-MVILMVGG.js +0 -118
  486. package/dist/chunk-MVILMVGG.js.map +0 -1
  487. package/dist/chunk-MWS4VCLV.js +0 -17
  488. package/dist/chunk-MWS4VCLV.js.map +0 -1
  489. package/dist/chunk-NEUX74SO.js +0 -315
  490. package/dist/chunk-NEUX74SO.js.map +0 -1
  491. package/dist/chunk-NFHKYBRD.js +0 -156
  492. package/dist/chunk-NFHKYBRD.js.map +0 -1
  493. package/dist/chunk-NHJNNXD3.js +0 -89
  494. package/dist/chunk-NHJNNXD3.js.map +0 -1
  495. package/dist/chunk-O2BF3HZL.js +0 -33
  496. package/dist/chunk-O2BF3HZL.js.map +0 -1
  497. package/dist/chunk-OANXCZYD.js +0 -212
  498. package/dist/chunk-OANXCZYD.js.map +0 -1
  499. package/dist/chunk-ODJF7YIP.js +0 -230
  500. package/dist/chunk-ODJF7YIP.js.map +0 -1
  501. package/dist/chunk-ON4BJTHI.js +0 -101
  502. package/dist/chunk-ON4BJTHI.js.map +0 -1
  503. package/dist/chunk-OTL5WXIJ.js +0 -16
  504. package/dist/chunk-OTL5WXIJ.js.map +0 -1
  505. package/dist/chunk-PACNBKJV.js +0 -47
  506. package/dist/chunk-PACNBKJV.js.map +0 -1
  507. package/dist/chunk-PROCA7K7.js +0 -23
  508. package/dist/chunk-PROCA7K7.js.map +0 -1
  509. package/dist/chunk-QGMIPA67.js +0 -85
  510. package/dist/chunk-QGMIPA67.js.map +0 -1
  511. package/dist/chunk-QQA37LFB.js +0 -190
  512. package/dist/chunk-QQA37LFB.js.map +0 -1
  513. package/dist/chunk-QZAWRSEB.js +0 -61
  514. package/dist/chunk-QZAWRSEB.js.map +0 -1
  515. package/dist/chunk-R74KGWNS.js +0 -699
  516. package/dist/chunk-R74KGWNS.js.map +0 -1
  517. package/dist/chunk-RFDLHMKL.js +0 -110
  518. package/dist/chunk-RFDLHMKL.js.map +0 -1
  519. package/dist/chunk-RL64HN7S.js +0 -40
  520. package/dist/chunk-RL64HN7S.js.map +0 -1
  521. package/dist/chunk-RMRQKPL7.js +0 -115
  522. package/dist/chunk-RMRQKPL7.js.map +0 -1
  523. package/dist/chunk-RQVK4IYC.js +0 -606
  524. package/dist/chunk-RQVK4IYC.js.map +0 -1
  525. package/dist/chunk-RTW56PWZ.js +0 -59
  526. package/dist/chunk-RTW56PWZ.js.map +0 -1
  527. package/dist/chunk-RUTPQNLR.js +0 -266
  528. package/dist/chunk-RUTPQNLR.js.map +0 -1
  529. package/dist/chunk-S6TAF63G.js +0 -25
  530. package/dist/chunk-S6TAF63G.js.map +0 -1
  531. package/dist/chunk-SBGAUGXY.js +0 -224
  532. package/dist/chunk-SBGAUGXY.js.map +0 -1
  533. package/dist/chunk-SC275NHZ.js +0 -407
  534. package/dist/chunk-SC275NHZ.js.map +0 -1
  535. package/dist/chunk-SCQPU4UE.js +0 -97
  536. package/dist/chunk-SCQPU4UE.js.map +0 -1
  537. package/dist/chunk-SFFF2WQP.js +0 -8
  538. package/dist/chunk-SFFF2WQP.js.map +0 -1
  539. package/dist/chunk-SJYMHZKA.js +0 -36
  540. package/dist/chunk-SJYMHZKA.js.map +0 -1
  541. package/dist/chunk-SLCCUJVN.js +0 -125
  542. package/dist/chunk-SLCCUJVN.js.map +0 -1
  543. package/dist/chunk-SVBSNSD4.js +0 -259
  544. package/dist/chunk-SVBSNSD4.js.map +0 -1
  545. package/dist/chunk-SVPLTL35.js +0 -62
  546. package/dist/chunk-SVPLTL35.js.map +0 -1
  547. package/dist/chunk-SWQFYNYG.js +0 -338
  548. package/dist/chunk-SWQFYNYG.js.map +0 -1
  549. package/dist/chunk-THHB4EWS.js +0 -72
  550. package/dist/chunk-THHB4EWS.js.map +0 -1
  551. package/dist/chunk-TUCDD33E.js +0 -246
  552. package/dist/chunk-TUCDD33E.js.map +0 -1
  553. package/dist/chunk-TV4WAP2R.js +0 -14
  554. package/dist/chunk-TV4WAP2R.js.map +0 -1
  555. package/dist/chunk-U3A6YBTZ.js +0 -134
  556. package/dist/chunk-U3A6YBTZ.js.map +0 -1
  557. package/dist/chunk-UGT6DKWM.js +0 -95
  558. package/dist/chunk-VSERHUWD.js +0 -212
  559. package/dist/chunk-VSERHUWD.js.map +0 -1
  560. package/dist/chunk-VYG7BDXC.js +0 -49
  561. package/dist/chunk-VYG7BDXC.js.map +0 -1
  562. package/dist/chunk-WETKNYZX.js +0 -52
  563. package/dist/chunk-WETKNYZX.js.map +0 -1
  564. package/dist/chunk-WGG4AML3.js +0 -216
  565. package/dist/chunk-WGG4AML3.js.map +0 -1
  566. package/dist/chunk-WKAUEL6I.js +0 -30
  567. package/dist/chunk-WKAUEL6I.js.map +0 -1
  568. package/dist/chunk-WPOLA5CG.js +0 -81
  569. package/dist/chunk-WPOLA5CG.js.map +0 -1
  570. package/dist/chunk-WPVETCGJ.js +0 -254
  571. package/dist/chunk-WPVETCGJ.js.map +0 -1
  572. package/dist/chunk-WTSM3A7E.js +0 -13
  573. package/dist/chunk-WTSM3A7E.js.map +0 -1
  574. package/dist/chunk-WU3F2K3T.js +0 -148
  575. package/dist/chunk-WU3F2K3T.js.map +0 -1
  576. package/dist/chunk-WZZK2DTZ.js +0 -39
  577. package/dist/chunk-WZZK2DTZ.js.map +0 -1
  578. package/dist/chunk-X4IHLKRD.js +0 -42
  579. package/dist/chunk-X4IHLKRD.js.map +0 -1
  580. package/dist/chunk-XAHEXZJC.js +0 -80
  581. package/dist/chunk-XAHEXZJC.js.map +0 -1
  582. package/dist/chunk-XCYGJDUX.js +0 -31
  583. package/dist/chunk-XCYGJDUX.js.map +0 -1
  584. package/dist/chunk-Y4W3JORC.js +0 -104
  585. package/dist/chunk-Y4W3JORC.js.map +0 -1
  586. package/dist/chunk-YFZJ3ZLG.js +0 -1297
  587. package/dist/chunk-YFZJ3ZLG.js.map +0 -1
  588. package/dist/chunk-YI3WLXEN.js +0 -4387
  589. package/dist/chunk-YI3WLXEN.js.map +0 -1
  590. package/dist/chunk-ZBKFSPD3.js +0 -29
  591. package/dist/chunk-ZBKFSPD3.js.map +0 -1
  592. package/dist/chunk-ZOERRQ6A.js +0 -79
  593. package/dist/chunk-ZOERRQ6A.js.map +0 -1
  594. package/dist/chunk-ZSTGUKHU.js +0 -10
  595. package/dist/chunk-ZSTGUKHU.js.map +0 -1
  596. package/dist/chunk-ZUEHDL27.js +0 -65
  597. package/dist/chunk-ZUEHDL27.js.map +0 -1
  598. package/dist/constants-D3gaMY-W.d.ts +0 -39
  599. package/dist/icons.js.map +0 -1
  600. package/dist/index.js.map +0 -1
  601. package/dist/internal/blocks/AIKit.js.map +0 -1
  602. package/dist/internal/blocks/AppShell.js.map +0 -1
  603. package/dist/internal/blocks/AutoSaveTextarea.js.map +0 -1
  604. package/dist/internal/blocks/BrandEditor.js.map +0 -1
  605. package/dist/internal/blocks/ClipboardButton.js.map +0 -1
  606. package/dist/internal/blocks/ColorInput.js.map +0 -1
  607. package/dist/internal/blocks/ColorModeSwitch.js.map +0 -1
  608. package/dist/internal/blocks/Command.js.map +0 -1
  609. package/dist/internal/blocks/CopyField.js.map +0 -1
  610. package/dist/internal/blocks/DateInput.js.map +0 -1
  611. package/dist/internal/blocks/DateRangeInput.js.map +0 -1
  612. package/dist/internal/blocks/Form.js.map +0 -1
  613. package/dist/internal/blocks/FormGroup.js.map +0 -1
  614. package/dist/internal/blocks/MultiActionButtonGroup.js.map +0 -1
  615. package/dist/internal/blocks/OtpInput.js.map +0 -1
  616. package/dist/internal/blocks/PageHeader.js.map +0 -1
  617. package/dist/internal/blocks/PageLayout.js.map +0 -1
  618. package/dist/internal/blocks/PageToolbar.js.map +0 -1
  619. package/dist/internal/blocks/SearchInput.js.map +0 -1
  620. package/dist/internal/blocks/SectionNav.js.map +0 -1
  621. package/dist/internal/blocks/TextInput.js.map +0 -1
  622. package/dist/internal/components/Alert.js.map +0 -1
  623. package/dist/internal/components/AlertModal.js.map +0 -1
  624. package/dist/internal/components/Badge.js.map +0 -1
  625. package/dist/internal/components/BrandLogo.js.map +0 -1
  626. package/dist/internal/components/Breadcrumb.js.map +0 -1
  627. package/dist/internal/components/Button.js.map +0 -1
  628. package/dist/internal/components/Calendar.js.map +0 -1
  629. package/dist/internal/components/Card.js.map +0 -1
  630. package/dist/internal/components/Checkbox.js.map +0 -1
  631. package/dist/internal/components/Clipboard.js.map +0 -1
  632. package/dist/internal/components/Collapsible.js.map +0 -1
  633. package/dist/internal/components/Combobox.js.map +0 -1
  634. package/dist/internal/components/DatePicker.js.map +0 -1
  635. package/dist/internal/components/DateRangePicker.js.map +0 -1
  636. package/dist/internal/components/DiffView.js.map +0 -1
  637. package/dist/internal/components/DropdownMenu.js.map +0 -1
  638. package/dist/internal/components/FileUpload.js.map +0 -1
  639. package/dist/internal/components/FullScreenModal.js.map +0 -1
  640. package/dist/internal/components/HoverCard.js.map +0 -1
  641. package/dist/internal/components/InputGroup.js.map +0 -1
  642. package/dist/internal/components/Kbd.js.map +0 -1
  643. package/dist/internal/components/MarkedText.js.map +0 -1
  644. package/dist/internal/components/MergeEditor/useMergeDiff.js.map +0 -1
  645. package/dist/internal/components/Modal.js.map +0 -1
  646. package/dist/internal/components/Navbar.js.map +0 -1
  647. package/dist/internal/components/Pagination.js.map +0 -1
  648. package/dist/internal/components/Popconfirm.js.map +0 -1
  649. package/dist/internal/components/Popover.js.map +0 -1
  650. package/dist/internal/components/RadioGroup.js.map +0 -1
  651. package/dist/internal/components/Resizable.js.map +0 -1
  652. package/dist/internal/components/Search.js.map +0 -1
  653. package/dist/internal/components/Select.js.map +0 -1
  654. package/dist/internal/components/Sheet.js.map +0 -1
  655. package/dist/internal/components/Sidebar.js.map +0 -1
  656. package/dist/internal/components/Slider.js.map +0 -1
  657. package/dist/internal/components/Stepper.js.map +0 -1
  658. package/dist/internal/components/Switch.js.map +0 -1
  659. package/dist/internal/components/Table.js.map +0 -1
  660. package/dist/internal/components/Tabs.js.map +0 -1
  661. package/dist/internal/components/ThemeProvider.js.map +0 -1
  662. package/dist/internal/components/TimePicker.js.map +0 -1
  663. package/dist/internal/components/Timeline.js.map +0 -1
  664. package/dist/internal/components/Toast.js.map +0 -1
  665. package/dist/internal/components/ToggleGroup.js.map +0 -1
  666. package/dist/internal/components/Tooltip.js.map +0 -1
  667. package/dist/internal/components/Workbench.js.map +0 -1
  668. package/dist/internal/components/ZoomableSvg.js.map +0 -1
  669. package/dist/internal/utils.js.map +0 -1
  670. package/dist/mermaid.js.map +0 -1
@@ -0,0 +1,2527 @@
1
+ import { __commonJSMin, __toESM } from "./rolldown-runtime-Bdc48AWt.js";
2
+ import { cn } from "./classNames-BzrkDnOD.js";
3
+ import { File, FileSpreadsheet, FileText, Upload, X } from "./icons-Cek151jC.js";
4
+ import { Button } from "./Button-6xBX0nNl.js";
5
+ import React, { Fragment, createContext, forwardRef, use, useCallback, useEffect, useImperativeHandle, useMemo, useReducer, useRef } from "react";
6
+ import { cva } from "class-variance-authority";
7
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
+ //#region src/components/FileUpload/context.ts
9
+ const FileUploadContext = createContext(null);
10
+ const FileUploadProvider = FileUploadContext.Provider;
11
+ const useFileUploadContext = () => {
12
+ const ctx = use(FileUploadContext);
13
+ if (ctx === null) throw new Error("FileUpload subcomponents and hooks must be used inside <FileUpload>.");
14
+ return ctx;
15
+ };
16
+ /**
17
+ * Rejections from the most recent drop, read from the enclosing `FileUpload`. Use it to render
18
+ * your own "why was this refused" copy next to the drop zone — `FileUpload` ships none, because
19
+ * the wording is product copy. Replaced on every drop, so it never goes stale.
20
+ */
21
+ const useFileUploadRejections = () => useFileUploadContext().dropTarget.rejections;
22
+ //#endregion
23
+ //#region src/components/FileUpload/styles.ts
24
+ const dropZoneVariants = cva([
25
+ "tw:flex",
26
+ "tw:flex-col",
27
+ "tw:items-center",
28
+ "tw:justify-center",
29
+ "tw:gap-2",
30
+ "tw:px-6",
31
+ "tw:py-10",
32
+ "tw:text-center",
33
+ "tw:rounded-lg",
34
+ "tw:border-2",
35
+ "tw:border-dashed",
36
+ "tw:border-input",
37
+ "tw:bg-background",
38
+ "tw:text-foreground",
39
+ "tw:transition-colors",
40
+ "tw:cursor-pointer",
41
+ "tw:select-none",
42
+ "tw:!outline-hidden",
43
+ "tw:focus-visible:ring-2",
44
+ "tw:focus-visible:ring-ring/50",
45
+ "tw:focus-visible:border-primary"
46
+ ], {
47
+ defaultVariants: { state: "idle" },
48
+ variants: { state: {
49
+ idle: ["tw:hover:bg-accent", "tw:hover:border-primary"],
50
+ dragging: ["tw:bg-accent", "tw:border-primary"],
51
+ disabled: ["tw:opacity-50", "tw:cursor-not-allowed"],
52
+ error: ["tw:border-destructive", "tw:bg-destructive/5"]
53
+ } }
54
+ });
55
+ const fileItemVariants = cva([
56
+ "tw:flex",
57
+ "tw:items-center",
58
+ "tw:gap-3",
59
+ "tw:rounded-md",
60
+ "tw:border",
61
+ "tw:border-solid",
62
+ "tw:px-3",
63
+ "tw:py-2",
64
+ "tw:text-sm",
65
+ "tw:text-foreground"
66
+ ], {
67
+ defaultVariants: { invalid: false },
68
+ variants: { invalid: {
69
+ false: ["tw:border-border", "tw:bg-background"],
70
+ true: ["tw:border-destructive", "tw:bg-destructive/5"]
71
+ } }
72
+ });
73
+ //#endregion
74
+ //#region src/components/FileUpload/FileUploadDropZone.tsx
75
+ /**
76
+ * Drop-zone target. Defaults to "Drag files here or click to browse" + Upload icon.
77
+ * Pass `children` to fully replace the inner block.
78
+ */
79
+ const FileUploadDropZone = ({ children, inputId, className, ...rest }) => {
80
+ const { dropTarget, forcedState, disabled } = useFileUploadContext();
81
+ const { getRootProps, getInputProps, isDragActive, rejections } = dropTarget;
82
+ const state = disabled ? "disabled" : forcedState ?? (rejections.length > 0 ? "error" : isDragActive ? "dragging" : "idle");
83
+ const rootProps = getRootProps({
84
+ role: "button",
85
+ ...rest
86
+ });
87
+ return /* @__PURE__ */ jsxs("div", {
88
+ ...rootProps,
89
+ "data-slot": "file-upload-dropzone",
90
+ className: cn(dropZoneVariants({ state }), className),
91
+ children: [/* @__PURE__ */ jsx("input", { ...getInputProps({ id: inputId }) }), children ?? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Upload, { className: "tw:size-8 tw:text-muted-foreground" }), /* @__PURE__ */ jsx("p", {
92
+ className: "tw:m-0 tw:text-sm tw:font-medium",
93
+ children: "Drag files here or click to browse"
94
+ })] })]
95
+ });
96
+ };
97
+ //#endregion
98
+ //#region src/components/FileUpload/FileUploadFileList.tsx
99
+ const formatBytes = (bytes) => {
100
+ if (bytes === 0) return "0 B";
101
+ const units = [
102
+ "B",
103
+ "KB",
104
+ "MB",
105
+ "GB"
106
+ ];
107
+ const exponent = Math.min(Math.floor(Math.log10(bytes) / 3), units.length - 1);
108
+ const value = bytes / 1e3 ** exponent;
109
+ return `${value.toFixed(value >= 10 || exponent === 0 ? 0 : 1)} ${units[exponent]}`;
110
+ };
111
+ const iconForFile = (file) => {
112
+ if (file.type.startsWith("text/csv") || file.name.endsWith(".csv")) return FileSpreadsheet;
113
+ if (file.type.startsWith("text/")) return FileText;
114
+ return File;
115
+ };
116
+ /**
117
+ * Selected-files list. Caller owns the `files` array — pass it back into the list and handle
118
+ * removal via `onRemove`.
119
+ */
120
+ const FileUploadFileList = ({ files, onRemove, invalid, className, ...rest }) => {
121
+ if (files.length === 0) return null;
122
+ const itemClassName = fileItemVariants({ invalid });
123
+ return /* @__PURE__ */ jsx("ul", {
124
+ className: cn("tw:m-0 tw:flex tw:list-none tw:flex-col tw:gap-2 tw:p-0", className),
125
+ ...rest,
126
+ children: files.map((file, index) => {
127
+ const Icon = iconForFile(file);
128
+ return /* @__PURE__ */ jsxs("li", {
129
+ className: itemClassName,
130
+ children: [
131
+ /* @__PURE__ */ jsx(Icon, { className: "tw:size-5 tw:shrink-0 tw:text-muted-foreground" }),
132
+ /* @__PURE__ */ jsxs("div", {
133
+ className: "tw:flex tw:min-w-0 tw:flex-1 tw:flex-col",
134
+ children: [/* @__PURE__ */ jsx("span", {
135
+ className: "tw:truncate tw:font-medium",
136
+ children: file.name
137
+ }), /* @__PURE__ */ jsx("span", {
138
+ className: "tw:text-xs tw:text-muted-foreground",
139
+ children: formatBytes(file.size)
140
+ })]
141
+ }),
142
+ onRemove && /* @__PURE__ */ jsx(Button, {
143
+ variant: "invisible",
144
+ size: "icon-sm",
145
+ "aria-label": `Remove ${file.name}`,
146
+ onClick: () => onRemove(file, index),
147
+ children: /* @__PURE__ */ jsx(X, {})
148
+ })
149
+ ]
150
+ }, `${file.name}-${index}`);
151
+ })
152
+ });
153
+ };
154
+ //#endregion
155
+ //#region ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
156
+ /** @license React v16.13.1
157
+ * react-is.development.js
158
+ *
159
+ * Copyright (c) Facebook, Inc. and its affiliates.
160
+ *
161
+ * This source code is licensed under the MIT license found in the
162
+ * LICENSE file in the root directory of this source tree.
163
+ */
164
+ var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => {
165
+ (function() {
166
+ "use strict";
167
+ var hasSymbol = typeof Symbol === "function" && Symbol.for;
168
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
169
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
170
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
171
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
172
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
173
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
174
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
175
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
176
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
177
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
178
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
179
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
180
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
181
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
182
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
183
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
184
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
185
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
186
+ function isValidElementType(type) {
187
+ return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
188
+ }
189
+ function typeOf(object) {
190
+ if (typeof object === "object" && object !== null) {
191
+ var $$typeof = object.$$typeof;
192
+ switch ($$typeof) {
193
+ case REACT_ELEMENT_TYPE:
194
+ var type = object.type;
195
+ switch (type) {
196
+ case REACT_ASYNC_MODE_TYPE:
197
+ case REACT_CONCURRENT_MODE_TYPE:
198
+ case REACT_FRAGMENT_TYPE:
199
+ case REACT_PROFILER_TYPE:
200
+ case REACT_STRICT_MODE_TYPE:
201
+ case REACT_SUSPENSE_TYPE: return type;
202
+ default:
203
+ var $$typeofType = type && type.$$typeof;
204
+ switch ($$typeofType) {
205
+ case REACT_CONTEXT_TYPE:
206
+ case REACT_FORWARD_REF_TYPE:
207
+ case REACT_LAZY_TYPE:
208
+ case REACT_MEMO_TYPE:
209
+ case REACT_PROVIDER_TYPE: return $$typeofType;
210
+ default: return $$typeof;
211
+ }
212
+ }
213
+ case REACT_PORTAL_TYPE: return $$typeof;
214
+ }
215
+ }
216
+ }
217
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
218
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
219
+ var ContextConsumer = REACT_CONTEXT_TYPE;
220
+ var ContextProvider = REACT_PROVIDER_TYPE;
221
+ var Element = REACT_ELEMENT_TYPE;
222
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
223
+ var Fragment = REACT_FRAGMENT_TYPE;
224
+ var Lazy = REACT_LAZY_TYPE;
225
+ var Memo = REACT_MEMO_TYPE;
226
+ var Portal = REACT_PORTAL_TYPE;
227
+ var Profiler = REACT_PROFILER_TYPE;
228
+ var StrictMode = REACT_STRICT_MODE_TYPE;
229
+ var Suspense = REACT_SUSPENSE_TYPE;
230
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
231
+ function isAsyncMode(object) {
232
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
233
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
234
+ console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
235
+ }
236
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
237
+ }
238
+ function isConcurrentMode(object) {
239
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
240
+ }
241
+ function isContextConsumer(object) {
242
+ return typeOf(object) === REACT_CONTEXT_TYPE;
243
+ }
244
+ function isContextProvider(object) {
245
+ return typeOf(object) === REACT_PROVIDER_TYPE;
246
+ }
247
+ function isElement(object) {
248
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
249
+ }
250
+ function isForwardRef(object) {
251
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
252
+ }
253
+ function isFragment(object) {
254
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
255
+ }
256
+ function isLazy(object) {
257
+ return typeOf(object) === REACT_LAZY_TYPE;
258
+ }
259
+ function isMemo(object) {
260
+ return typeOf(object) === REACT_MEMO_TYPE;
261
+ }
262
+ function isPortal(object) {
263
+ return typeOf(object) === REACT_PORTAL_TYPE;
264
+ }
265
+ function isProfiler(object) {
266
+ return typeOf(object) === REACT_PROFILER_TYPE;
267
+ }
268
+ function isStrictMode(object) {
269
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
270
+ }
271
+ function isSuspense(object) {
272
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
273
+ }
274
+ exports.AsyncMode = AsyncMode;
275
+ exports.ConcurrentMode = ConcurrentMode;
276
+ exports.ContextConsumer = ContextConsumer;
277
+ exports.ContextProvider = ContextProvider;
278
+ exports.Element = Element;
279
+ exports.ForwardRef = ForwardRef;
280
+ exports.Fragment = Fragment;
281
+ exports.Lazy = Lazy;
282
+ exports.Memo = Memo;
283
+ exports.Portal = Portal;
284
+ exports.Profiler = Profiler;
285
+ exports.StrictMode = StrictMode;
286
+ exports.Suspense = Suspense;
287
+ exports.isAsyncMode = isAsyncMode;
288
+ exports.isConcurrentMode = isConcurrentMode;
289
+ exports.isContextConsumer = isContextConsumer;
290
+ exports.isContextProvider = isContextProvider;
291
+ exports.isElement = isElement;
292
+ exports.isForwardRef = isForwardRef;
293
+ exports.isFragment = isFragment;
294
+ exports.isLazy = isLazy;
295
+ exports.isMemo = isMemo;
296
+ exports.isPortal = isPortal;
297
+ exports.isProfiler = isProfiler;
298
+ exports.isStrictMode = isStrictMode;
299
+ exports.isSuspense = isSuspense;
300
+ exports.isValidElementType = isValidElementType;
301
+ exports.typeOf = typeOf;
302
+ })();
303
+ }));
304
+ //#endregion
305
+ //#region ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js
306
+ var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => {
307
+ module.exports = require_react_is_development();
308
+ }));
309
+ //#endregion
310
+ //#region ../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js
311
+ /*
312
+ object-assign
313
+ (c) Sindre Sorhus
314
+ @license MIT
315
+ */
316
+ var require_object_assign = /* @__PURE__ */ __commonJSMin(((exports, module) => {
317
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
318
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
319
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
320
+ function toObject(val) {
321
+ if (val === null || val === void 0) throw new TypeError("Object.assign cannot be called with null or undefined");
322
+ return Object(val);
323
+ }
324
+ function shouldUseNative() {
325
+ try {
326
+ if (!Object.assign) return false;
327
+ var test1 = /* @__PURE__ */ new String("abc");
328
+ test1[5] = "de";
329
+ if (Object.getOwnPropertyNames(test1)[0] === "5") return false;
330
+ var test2 = {};
331
+ for (var i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i;
332
+ if (Object.getOwnPropertyNames(test2).map(function(n) {
333
+ return test2[n];
334
+ }).join("") !== "0123456789") return false;
335
+ var test3 = {};
336
+ "abcdefghijklmnopqrst".split("").forEach(function(letter) {
337
+ test3[letter] = letter;
338
+ });
339
+ if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") return false;
340
+ return true;
341
+ } catch (err) {
342
+ return false;
343
+ }
344
+ }
345
+ module.exports = shouldUseNative() ? Object.assign : function(target, source) {
346
+ var from;
347
+ var to = toObject(target);
348
+ var symbols;
349
+ for (var s = 1; s < arguments.length; s++) {
350
+ from = Object(arguments[s]);
351
+ for (var key in from) if (hasOwnProperty.call(from, key)) to[key] = from[key];
352
+ if (getOwnPropertySymbols) {
353
+ symbols = getOwnPropertySymbols(from);
354
+ for (var i = 0; i < symbols.length; i++) if (propIsEnumerable.call(from, symbols[i])) to[symbols[i]] = from[symbols[i]];
355
+ }
356
+ }
357
+ return to;
358
+ };
359
+ }));
360
+ //#endregion
361
+ //#region ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js
362
+ /**
363
+ * Copyright (c) 2013-present, Facebook, Inc.
364
+ *
365
+ * This source code is licensed under the MIT license found in the
366
+ * LICENSE file in the root directory of this source tree.
367
+ */
368
+ var require_ReactPropTypesSecret = /* @__PURE__ */ __commonJSMin(((exports, module) => {
369
+ module.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
370
+ }));
371
+ //#endregion
372
+ //#region ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js
373
+ var require_has = /* @__PURE__ */ __commonJSMin(((exports, module) => {
374
+ module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
375
+ }));
376
+ //#endregion
377
+ //#region ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js
378
+ /**
379
+ * Copyright (c) 2013-present, Facebook, Inc.
380
+ *
381
+ * This source code is licensed under the MIT license found in the
382
+ * LICENSE file in the root directory of this source tree.
383
+ */
384
+ var require_checkPropTypes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
385
+ var printWarning = function() {};
386
+ var ReactPropTypesSecret = require_ReactPropTypesSecret();
387
+ var loggedTypeFailures = {};
388
+ var has = require_has();
389
+ printWarning = function(text) {
390
+ var message = "Warning: " + text;
391
+ if (typeof console !== "undefined") console.error(message);
392
+ try {
393
+ throw new Error(message);
394
+ } catch (x) {}
395
+ };
396
+ /**
397
+ * Assert that the values match with the type specs.
398
+ * Error messages are memorized and will only be shown once.
399
+ *
400
+ * @param {object} typeSpecs Map of name to a ReactPropType
401
+ * @param {object} values Runtime values that need to be type-checked
402
+ * @param {string} location e.g. "prop", "context", "child context"
403
+ * @param {string} componentName Name of the component for error messages.
404
+ * @param {?Function} getStack Returns the component stack.
405
+ * @private
406
+ */
407
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
408
+ for (var typeSpecName in typeSpecs) if (has(typeSpecs, typeSpecName)) {
409
+ var error;
410
+ try {
411
+ if (typeof typeSpecs[typeSpecName] !== "function") {
412
+ var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
413
+ err.name = "Invariant Violation";
414
+ throw err;
415
+ }
416
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
417
+ } catch (ex) {
418
+ error = ex;
419
+ }
420
+ if (error && !(error instanceof Error)) printWarning((componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).");
421
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
422
+ loggedTypeFailures[error.message] = true;
423
+ var stack = getStack ? getStack() : "";
424
+ printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : ""));
425
+ }
426
+ }
427
+ }
428
+ /**
429
+ * Resets warning cache when testing.
430
+ *
431
+ * @private
432
+ */
433
+ checkPropTypes.resetWarningCache = function() {
434
+ loggedTypeFailures = {};
435
+ };
436
+ module.exports = checkPropTypes;
437
+ }));
438
+ //#endregion
439
+ //#region ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js
440
+ /**
441
+ * Copyright (c) 2013-present, Facebook, Inc.
442
+ *
443
+ * This source code is licensed under the MIT license found in the
444
+ * LICENSE file in the root directory of this source tree.
445
+ */
446
+ var require_factoryWithTypeCheckers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
447
+ var ReactIs = require_react_is();
448
+ var assign = require_object_assign();
449
+ var ReactPropTypesSecret = require_ReactPropTypesSecret();
450
+ var has = require_has();
451
+ var checkPropTypes = require_checkPropTypes();
452
+ var printWarning = function() {};
453
+ printWarning = function(text) {
454
+ var message = "Warning: " + text;
455
+ if (typeof console !== "undefined") console.error(message);
456
+ try {
457
+ throw new Error(message);
458
+ } catch (x) {}
459
+ };
460
+ function emptyFunctionThatReturnsNull() {
461
+ return null;
462
+ }
463
+ module.exports = function(isValidElement, throwOnDirectAccess) {
464
+ var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
465
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
466
+ /**
467
+ * Returns the iterator method function contained on the iterable object.
468
+ *
469
+ * Be sure to invoke the function with the iterable as context:
470
+ *
471
+ * var iteratorFn = getIteratorFn(myIterable);
472
+ * if (iteratorFn) {
473
+ * var iterator = iteratorFn.call(myIterable);
474
+ * ...
475
+ * }
476
+ *
477
+ * @param {?object} maybeIterable
478
+ * @return {?function}
479
+ */
480
+ function getIteratorFn(maybeIterable) {
481
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
482
+ if (typeof iteratorFn === "function") return iteratorFn;
483
+ }
484
+ /**
485
+ * Collection of methods that allow declaration and validation of props that are
486
+ * supplied to React components. Example usage:
487
+ *
488
+ * var Props = require('ReactPropTypes');
489
+ * var MyArticle = React.createClass({
490
+ * propTypes: {
491
+ * // An optional string prop named "description".
492
+ * description: Props.string,
493
+ *
494
+ * // A required enum prop named "category".
495
+ * category: Props.oneOf(['News','Photos']).isRequired,
496
+ *
497
+ * // A prop named "dialog" that requires an instance of Dialog.
498
+ * dialog: Props.instanceOf(Dialog).isRequired
499
+ * },
500
+ * render: function() { ... }
501
+ * });
502
+ *
503
+ * A more formal specification of how these methods are used:
504
+ *
505
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
506
+ * decl := ReactPropTypes.{type}(.isRequired)?
507
+ *
508
+ * Each and every declaration produces a function with the same signature. This
509
+ * allows the creation of custom validation functions. For example:
510
+ *
511
+ * var MyLink = React.createClass({
512
+ * propTypes: {
513
+ * // An optional string or URI prop named "href".
514
+ * href: function(props, propName, componentName) {
515
+ * var propValue = props[propName];
516
+ * if (propValue != null && typeof propValue !== 'string' &&
517
+ * !(propValue instanceof URI)) {
518
+ * return new Error(
519
+ * 'Expected a string or an URI for ' + propName + ' in ' +
520
+ * componentName
521
+ * );
522
+ * }
523
+ * }
524
+ * },
525
+ * render: function() {...}
526
+ * });
527
+ *
528
+ * @internal
529
+ */
530
+ var ANONYMOUS = "<<anonymous>>";
531
+ var ReactPropTypes = {
532
+ array: createPrimitiveTypeChecker("array"),
533
+ bigint: createPrimitiveTypeChecker("bigint"),
534
+ bool: createPrimitiveTypeChecker("boolean"),
535
+ func: createPrimitiveTypeChecker("function"),
536
+ number: createPrimitiveTypeChecker("number"),
537
+ object: createPrimitiveTypeChecker("object"),
538
+ string: createPrimitiveTypeChecker("string"),
539
+ symbol: createPrimitiveTypeChecker("symbol"),
540
+ any: createAnyTypeChecker(),
541
+ arrayOf: createArrayOfTypeChecker,
542
+ element: createElementTypeChecker(),
543
+ elementType: createElementTypeTypeChecker(),
544
+ instanceOf: createInstanceTypeChecker,
545
+ node: createNodeChecker(),
546
+ objectOf: createObjectOfTypeChecker,
547
+ oneOf: createEnumTypeChecker,
548
+ oneOfType: createUnionTypeChecker,
549
+ shape: createShapeTypeChecker,
550
+ exact: createStrictShapeTypeChecker
551
+ };
552
+ /**
553
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
554
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
555
+ */
556
+ function is(x, y) {
557
+ if (x === y) return x !== 0 || 1 / x === 1 / y;
558
+ else return x !== x && y !== y;
559
+ }
560
+ /**
561
+ * We use an Error-like object for backward compatibility as people may call
562
+ * PropTypes directly and inspect their output. However, we don't use real
563
+ * Errors anymore. We don't inspect their stack anyway, and creating them
564
+ * is prohibitively expensive if they are created too often, such as what
565
+ * happens in oneOfType() for any type before the one that matched.
566
+ */
567
+ function PropTypeError(message, data) {
568
+ this.message = message;
569
+ this.data = data && typeof data === "object" ? data : {};
570
+ this.stack = "";
571
+ }
572
+ PropTypeError.prototype = Error.prototype;
573
+ function createChainableTypeChecker(validate) {
574
+ var manualPropTypeCallCache = {};
575
+ var manualPropTypeWarningCount = 0;
576
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
577
+ componentName = componentName || ANONYMOUS;
578
+ propFullName = propFullName || propName;
579
+ if (secret !== ReactPropTypesSecret) {
580
+ if (throwOnDirectAccess) {
581
+ var err = /* @__PURE__ */ new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
582
+ err.name = "Invariant Violation";
583
+ throw err;
584
+ } else if (typeof console !== "undefined") {
585
+ var cacheKey = componentName + ":" + propName;
586
+ if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
587
+ printWarning("You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.");
588
+ manualPropTypeCallCache[cacheKey] = true;
589
+ manualPropTypeWarningCount++;
590
+ }
591
+ }
592
+ }
593
+ if (props[propName] == null) {
594
+ if (isRequired) {
595
+ if (props[propName] === null) return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
596
+ return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
597
+ }
598
+ return null;
599
+ } else return validate(props, propName, componentName, location, propFullName);
600
+ }
601
+ var chainedCheckType = checkType.bind(null, false);
602
+ chainedCheckType.isRequired = checkType.bind(null, true);
603
+ return chainedCheckType;
604
+ }
605
+ function createPrimitiveTypeChecker(expectedType) {
606
+ function validate(props, propName, componentName, location, propFullName, secret) {
607
+ var propValue = props[propName];
608
+ if (getPropType(propValue) !== expectedType) {
609
+ var preciseType = getPreciseType(propValue);
610
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), { expectedType });
611
+ }
612
+ return null;
613
+ }
614
+ return createChainableTypeChecker(validate);
615
+ }
616
+ function createAnyTypeChecker() {
617
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
618
+ }
619
+ function createArrayOfTypeChecker(typeChecker) {
620
+ function validate(props, propName, componentName, location, propFullName) {
621
+ if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
622
+ var propValue = props[propName];
623
+ if (!Array.isArray(propValue)) {
624
+ var propType = getPropType(propValue);
625
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
626
+ }
627
+ for (var i = 0; i < propValue.length; i++) {
628
+ var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
629
+ if (error instanceof Error) return error;
630
+ }
631
+ return null;
632
+ }
633
+ return createChainableTypeChecker(validate);
634
+ }
635
+ function createElementTypeChecker() {
636
+ function validate(props, propName, componentName, location, propFullName) {
637
+ var propValue = props[propName];
638
+ if (!isValidElement(propValue)) {
639
+ var propType = getPropType(propValue);
640
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
641
+ }
642
+ return null;
643
+ }
644
+ return createChainableTypeChecker(validate);
645
+ }
646
+ function createElementTypeTypeChecker() {
647
+ function validate(props, propName, componentName, location, propFullName) {
648
+ var propValue = props[propName];
649
+ if (!ReactIs.isValidElementType(propValue)) {
650
+ var propType = getPropType(propValue);
651
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
652
+ }
653
+ return null;
654
+ }
655
+ return createChainableTypeChecker(validate);
656
+ }
657
+ function createInstanceTypeChecker(expectedClass) {
658
+ function validate(props, propName, componentName, location, propFullName) {
659
+ if (!(props[propName] instanceof expectedClass)) {
660
+ var expectedClassName = expectedClass.name || ANONYMOUS;
661
+ var actualClassName = getClassName(props[propName]);
662
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
663
+ }
664
+ return null;
665
+ }
666
+ return createChainableTypeChecker(validate);
667
+ }
668
+ function createEnumTypeChecker(expectedValues) {
669
+ if (!Array.isArray(expectedValues)) {
670
+ if (arguments.length > 1) printWarning("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).");
671
+ else printWarning("Invalid argument supplied to oneOf, expected an array.");
672
+ return emptyFunctionThatReturnsNull;
673
+ }
674
+ function validate(props, propName, componentName, location, propFullName) {
675
+ var propValue = props[propName];
676
+ for (var i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null;
677
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
678
+ if (getPreciseType(value) === "symbol") return String(value);
679
+ return value;
680
+ });
681
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
682
+ }
683
+ return createChainableTypeChecker(validate);
684
+ }
685
+ function createObjectOfTypeChecker(typeChecker) {
686
+ function validate(props, propName, componentName, location, propFullName) {
687
+ if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
688
+ var propValue = props[propName];
689
+ var propType = getPropType(propValue);
690
+ if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
691
+ for (var key in propValue) if (has(propValue, key)) {
692
+ var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
693
+ if (error instanceof Error) return error;
694
+ }
695
+ return null;
696
+ }
697
+ return createChainableTypeChecker(validate);
698
+ }
699
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
700
+ if (!Array.isArray(arrayOfTypeCheckers)) {
701
+ printWarning("Invalid argument supplied to oneOfType, expected an instance of array.");
702
+ return emptyFunctionThatReturnsNull;
703
+ }
704
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
705
+ var checker = arrayOfTypeCheckers[i];
706
+ if (typeof checker !== "function") {
707
+ printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + ".");
708
+ return emptyFunctionThatReturnsNull;
709
+ }
710
+ }
711
+ function validate(props, propName, componentName, location, propFullName) {
712
+ var expectedTypes = [];
713
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
714
+ var checker = arrayOfTypeCheckers[i];
715
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
716
+ if (checkerResult == null) return null;
717
+ if (checkerResult.data && has(checkerResult.data, "expectedType")) expectedTypes.push(checkerResult.data.expectedType);
718
+ }
719
+ var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
720
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
721
+ }
722
+ return createChainableTypeChecker(validate);
723
+ }
724
+ function createNodeChecker() {
725
+ function validate(props, propName, componentName, location, propFullName) {
726
+ if (!isNode(props[propName])) return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
727
+ return null;
728
+ }
729
+ return createChainableTypeChecker(validate);
730
+ }
731
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
732
+ return new PropTypeError((componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`.");
733
+ }
734
+ function createShapeTypeChecker(shapeTypes) {
735
+ function validate(props, propName, componentName, location, propFullName) {
736
+ var propValue = props[propName];
737
+ var propType = getPropType(propValue);
738
+ if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
739
+ for (var key in shapeTypes) {
740
+ var checker = shapeTypes[key];
741
+ if (typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
742
+ var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
743
+ if (error) return error;
744
+ }
745
+ return null;
746
+ }
747
+ return createChainableTypeChecker(validate);
748
+ }
749
+ function createStrictShapeTypeChecker(shapeTypes) {
750
+ function validate(props, propName, componentName, location, propFullName) {
751
+ var propValue = props[propName];
752
+ var propType = getPropType(propValue);
753
+ if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
754
+ for (var key in assign({}, props[propName], shapeTypes)) {
755
+ var checker = shapeTypes[key];
756
+ if (has(shapeTypes, key) && typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
757
+ if (!checker) return new PropTypeError("Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " "));
758
+ var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
759
+ if (error) return error;
760
+ }
761
+ return null;
762
+ }
763
+ return createChainableTypeChecker(validate);
764
+ }
765
+ function isNode(propValue) {
766
+ switch (typeof propValue) {
767
+ case "number":
768
+ case "string":
769
+ case "undefined": return true;
770
+ case "boolean": return !propValue;
771
+ case "object":
772
+ if (Array.isArray(propValue)) return propValue.every(isNode);
773
+ if (propValue === null || isValidElement(propValue)) return true;
774
+ var iteratorFn = getIteratorFn(propValue);
775
+ if (iteratorFn) {
776
+ var iterator = iteratorFn.call(propValue);
777
+ var step;
778
+ if (iteratorFn !== propValue.entries) {
779
+ while (!(step = iterator.next()).done) if (!isNode(step.value)) return false;
780
+ } else while (!(step = iterator.next()).done) {
781
+ var entry = step.value;
782
+ if (entry) {
783
+ if (!isNode(entry[1])) return false;
784
+ }
785
+ }
786
+ } else return false;
787
+ return true;
788
+ default: return false;
789
+ }
790
+ }
791
+ function isSymbol(propType, propValue) {
792
+ if (propType === "symbol") return true;
793
+ if (!propValue) return false;
794
+ if (propValue["@@toStringTag"] === "Symbol") return true;
795
+ if (typeof Symbol === "function" && propValue instanceof Symbol) return true;
796
+ return false;
797
+ }
798
+ function getPropType(propValue) {
799
+ var propType = typeof propValue;
800
+ if (Array.isArray(propValue)) return "array";
801
+ if (propValue instanceof RegExp) return "object";
802
+ if (isSymbol(propType, propValue)) return "symbol";
803
+ return propType;
804
+ }
805
+ function getPreciseType(propValue) {
806
+ if (typeof propValue === "undefined" || propValue === null) return "" + propValue;
807
+ var propType = getPropType(propValue);
808
+ if (propType === "object") {
809
+ if (propValue instanceof Date) return "date";
810
+ else if (propValue instanceof RegExp) return "regexp";
811
+ }
812
+ return propType;
813
+ }
814
+ function getPostfixForTypeWarning(value) {
815
+ var type = getPreciseType(value);
816
+ switch (type) {
817
+ case "array":
818
+ case "object": return "an " + type;
819
+ case "boolean":
820
+ case "date":
821
+ case "regexp": return "a " + type;
822
+ default: return type;
823
+ }
824
+ }
825
+ function getClassName(propValue) {
826
+ if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS;
827
+ return propValue.constructor.name;
828
+ }
829
+ ReactPropTypes.checkPropTypes = checkPropTypes;
830
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
831
+ ReactPropTypes.PropTypes = ReactPropTypes;
832
+ return ReactPropTypes;
833
+ };
834
+ }));
835
+ //#endregion
836
+ //#region ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js
837
+ var require_prop_types = /* @__PURE__ */ __commonJSMin(((exports, module) => {
838
+ var ReactIs = require_react_is();
839
+ module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, true);
840
+ }));
841
+ //#endregion
842
+ //#region ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
843
+ function __awaiter(thisArg, _arguments, P, generator) {
844
+ function adopt(value) {
845
+ return value instanceof P ? value : new P(function(resolve) {
846
+ resolve(value);
847
+ });
848
+ }
849
+ return new (P || (P = Promise))(function(resolve, reject) {
850
+ function fulfilled(value) {
851
+ try {
852
+ step(generator.next(value));
853
+ } catch (e) {
854
+ reject(e);
855
+ }
856
+ }
857
+ function rejected(value) {
858
+ try {
859
+ step(generator["throw"](value));
860
+ } catch (e) {
861
+ reject(e);
862
+ }
863
+ }
864
+ function step(result) {
865
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
866
+ }
867
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
868
+ });
869
+ }
870
+ function __generator(thisArg, body) {
871
+ var _ = {
872
+ label: 0,
873
+ sent: function() {
874
+ if (t[0] & 1) throw t[1];
875
+ return t[1];
876
+ },
877
+ trys: [],
878
+ ops: []
879
+ }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
880
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
881
+ return this;
882
+ }), g;
883
+ function verb(n) {
884
+ return function(v) {
885
+ return step([n, v]);
886
+ };
887
+ }
888
+ function step(op) {
889
+ if (f) throw new TypeError("Generator is already executing.");
890
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
891
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
892
+ if (y = 0, t) op = [op[0] & 2, t.value];
893
+ switch (op[0]) {
894
+ case 0:
895
+ case 1:
896
+ t = op;
897
+ break;
898
+ case 4:
899
+ _.label++;
900
+ return {
901
+ value: op[1],
902
+ done: false
903
+ };
904
+ case 5:
905
+ _.label++;
906
+ y = op[1];
907
+ op = [0];
908
+ continue;
909
+ case 7:
910
+ op = _.ops.pop();
911
+ _.trys.pop();
912
+ continue;
913
+ default:
914
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
915
+ _ = 0;
916
+ continue;
917
+ }
918
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
919
+ _.label = op[1];
920
+ break;
921
+ }
922
+ if (op[0] === 6 && _.label < t[1]) {
923
+ _.label = t[1];
924
+ t = op;
925
+ break;
926
+ }
927
+ if (t && _.label < t[2]) {
928
+ _.label = t[2];
929
+ _.ops.push(op);
930
+ break;
931
+ }
932
+ if (t[2]) _.ops.pop();
933
+ _.trys.pop();
934
+ continue;
935
+ }
936
+ op = body.call(thisArg, _);
937
+ } catch (e) {
938
+ op = [6, e];
939
+ y = 0;
940
+ } finally {
941
+ f = t = 0;
942
+ }
943
+ if (op[0] & 5) throw op[1];
944
+ return {
945
+ value: op[0] ? op[1] : void 0,
946
+ done: true
947
+ };
948
+ }
949
+ }
950
+ function __read(o, n) {
951
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
952
+ if (!m) return o;
953
+ var i = m.call(o), r, ar = [], e;
954
+ try {
955
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
956
+ } catch (error) {
957
+ e = { error };
958
+ } finally {
959
+ try {
960
+ if (r && !r.done && (m = i["return"])) m.call(i);
961
+ } finally {
962
+ if (e) throw e.error;
963
+ }
964
+ }
965
+ return ar;
966
+ }
967
+ function __spreadArray(to, from, pack) {
968
+ if (pack || arguments.length === 2) {
969
+ for (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {
970
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
971
+ ar[i] = from[i];
972
+ }
973
+ }
974
+ return to.concat(ar || Array.prototype.slice.call(from));
975
+ }
976
+ //#endregion
977
+ //#region ../../node_modules/.pnpm/file-selector@0.6.0/node_modules/file-selector/dist/es5/file.js
978
+ var COMMON_MIME_TYPES = /* @__PURE__ */ new Map([
979
+ ["aac", "audio/aac"],
980
+ ["abw", "application/x-abiword"],
981
+ ["arc", "application/x-freearc"],
982
+ ["avif", "image/avif"],
983
+ ["avi", "video/x-msvideo"],
984
+ ["azw", "application/vnd.amazon.ebook"],
985
+ ["bin", "application/octet-stream"],
986
+ ["bmp", "image/bmp"],
987
+ ["bz", "application/x-bzip"],
988
+ ["bz2", "application/x-bzip2"],
989
+ ["cda", "application/x-cdf"],
990
+ ["csh", "application/x-csh"],
991
+ ["css", "text/css"],
992
+ ["csv", "text/csv"],
993
+ ["doc", "application/msword"],
994
+ ["docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"],
995
+ ["eot", "application/vnd.ms-fontobject"],
996
+ ["epub", "application/epub+zip"],
997
+ ["gz", "application/gzip"],
998
+ ["gif", "image/gif"],
999
+ ["heic", "image/heic"],
1000
+ ["heif", "image/heif"],
1001
+ ["htm", "text/html"],
1002
+ ["html", "text/html"],
1003
+ ["ico", "image/vnd.microsoft.icon"],
1004
+ ["ics", "text/calendar"],
1005
+ ["jar", "application/java-archive"],
1006
+ ["jpeg", "image/jpeg"],
1007
+ ["jpg", "image/jpeg"],
1008
+ ["js", "text/javascript"],
1009
+ ["json", "application/json"],
1010
+ ["jsonld", "application/ld+json"],
1011
+ ["mid", "audio/midi"],
1012
+ ["midi", "audio/midi"],
1013
+ ["mjs", "text/javascript"],
1014
+ ["mp3", "audio/mpeg"],
1015
+ ["mp4", "video/mp4"],
1016
+ ["mpeg", "video/mpeg"],
1017
+ ["mpkg", "application/vnd.apple.installer+xml"],
1018
+ ["odp", "application/vnd.oasis.opendocument.presentation"],
1019
+ ["ods", "application/vnd.oasis.opendocument.spreadsheet"],
1020
+ ["odt", "application/vnd.oasis.opendocument.text"],
1021
+ ["oga", "audio/ogg"],
1022
+ ["ogv", "video/ogg"],
1023
+ ["ogx", "application/ogg"],
1024
+ ["opus", "audio/opus"],
1025
+ ["otf", "font/otf"],
1026
+ ["png", "image/png"],
1027
+ ["pdf", "application/pdf"],
1028
+ ["php", "application/x-httpd-php"],
1029
+ ["ppt", "application/vnd.ms-powerpoint"],
1030
+ ["pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation"],
1031
+ ["rar", "application/vnd.rar"],
1032
+ ["rtf", "application/rtf"],
1033
+ ["sh", "application/x-sh"],
1034
+ ["svg", "image/svg+xml"],
1035
+ ["swf", "application/x-shockwave-flash"],
1036
+ ["tar", "application/x-tar"],
1037
+ ["tif", "image/tiff"],
1038
+ ["tiff", "image/tiff"],
1039
+ ["ts", "video/mp2t"],
1040
+ ["ttf", "font/ttf"],
1041
+ ["txt", "text/plain"],
1042
+ ["vsd", "application/vnd.visio"],
1043
+ ["wav", "audio/wav"],
1044
+ ["weba", "audio/webm"],
1045
+ ["webm", "video/webm"],
1046
+ ["webp", "image/webp"],
1047
+ ["woff", "font/woff"],
1048
+ ["woff2", "font/woff2"],
1049
+ ["xhtml", "application/xhtml+xml"],
1050
+ ["xls", "application/vnd.ms-excel"],
1051
+ ["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
1052
+ ["xml", "application/xml"],
1053
+ ["xul", "application/vnd.mozilla.xul+xml"],
1054
+ ["zip", "application/zip"],
1055
+ ["7z", "application/x-7z-compressed"],
1056
+ ["mkv", "video/x-matroska"],
1057
+ ["mov", "video/quicktime"],
1058
+ ["msg", "application/vnd.ms-outlook"]
1059
+ ]);
1060
+ function toFileWithPath(file, path) {
1061
+ var f = withMimeType(file);
1062
+ if (typeof f.path !== "string") {
1063
+ var webkitRelativePath = file.webkitRelativePath;
1064
+ Object.defineProperty(f, "path", {
1065
+ value: typeof path === "string" ? path : typeof webkitRelativePath === "string" && webkitRelativePath.length > 0 ? webkitRelativePath : file.name,
1066
+ writable: false,
1067
+ configurable: false,
1068
+ enumerable: true
1069
+ });
1070
+ }
1071
+ return f;
1072
+ }
1073
+ function withMimeType(file) {
1074
+ var name = file.name;
1075
+ if (name && name.lastIndexOf(".") !== -1 && !file.type) {
1076
+ var ext = name.split(".").pop().toLowerCase();
1077
+ var type = COMMON_MIME_TYPES.get(ext);
1078
+ if (type) Object.defineProperty(file, "type", {
1079
+ value: type,
1080
+ writable: false,
1081
+ configurable: false,
1082
+ enumerable: true
1083
+ });
1084
+ }
1085
+ return file;
1086
+ }
1087
+ //#endregion
1088
+ //#region ../../node_modules/.pnpm/file-selector@0.6.0/node_modules/file-selector/dist/es5/file-selector.js
1089
+ var FILES_TO_IGNORE = [".DS_Store", "Thumbs.db"];
1090
+ /**
1091
+ * Convert a DragEvent's DataTrasfer object to a list of File objects
1092
+ * NOTE: If some of the items are folders,
1093
+ * everything will be flattened and placed in the same list but the paths will be kept as a {path} property.
1094
+ *
1095
+ * EXPERIMENTAL: A list of https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle objects can also be passed as an arg
1096
+ * and a list of File objects will be returned.
1097
+ *
1098
+ * @param evt
1099
+ */
1100
+ function fromEvent(evt) {
1101
+ return __awaiter(this, void 0, void 0, function() {
1102
+ return __generator(this, function(_a) {
1103
+ if (isObject(evt) && isDataTransfer(evt.dataTransfer)) return [2, getDataTransferFiles(evt.dataTransfer, evt.type)];
1104
+ else if (isChangeEvt(evt)) return [2, getInputFiles(evt)];
1105
+ else if (Array.isArray(evt) && evt.every(function(item) {
1106
+ return "getFile" in item && typeof item.getFile === "function";
1107
+ })) return [2, getFsHandleFiles(evt)];
1108
+ return [2, []];
1109
+ });
1110
+ });
1111
+ }
1112
+ function isDataTransfer(value) {
1113
+ return isObject(value);
1114
+ }
1115
+ function isChangeEvt(value) {
1116
+ return isObject(value) && isObject(value.target);
1117
+ }
1118
+ function isObject(v) {
1119
+ return typeof v === "object" && v !== null;
1120
+ }
1121
+ function getInputFiles(evt) {
1122
+ return fromList(evt.target.files).map(function(file) {
1123
+ return toFileWithPath(file);
1124
+ });
1125
+ }
1126
+ function getFsHandleFiles(handles) {
1127
+ return __awaiter(this, void 0, void 0, function() {
1128
+ var files;
1129
+ return __generator(this, function(_a) {
1130
+ switch (_a.label) {
1131
+ case 0: return [4, Promise.all(handles.map(function(h) {
1132
+ return h.getFile();
1133
+ }))];
1134
+ case 1:
1135
+ files = _a.sent();
1136
+ return [2, files.map(function(file) {
1137
+ return toFileWithPath(file);
1138
+ })];
1139
+ }
1140
+ });
1141
+ });
1142
+ }
1143
+ function getDataTransferFiles(dt, type) {
1144
+ return __awaiter(this, void 0, void 0, function() {
1145
+ var items, files;
1146
+ return __generator(this, function(_a) {
1147
+ switch (_a.label) {
1148
+ case 0:
1149
+ if (!dt.items) return [3, 2];
1150
+ items = fromList(dt.items).filter(function(item) {
1151
+ return item.kind === "file";
1152
+ });
1153
+ if (type !== "drop") return [2, items];
1154
+ return [4, Promise.all(items.map(toFilePromises))];
1155
+ case 1:
1156
+ files = _a.sent();
1157
+ return [2, noIgnoredFiles(flatten(files))];
1158
+ case 2: return [2, noIgnoredFiles(fromList(dt.files).map(function(file) {
1159
+ return toFileWithPath(file);
1160
+ }))];
1161
+ }
1162
+ });
1163
+ });
1164
+ }
1165
+ function noIgnoredFiles(files) {
1166
+ return files.filter(function(file) {
1167
+ return FILES_TO_IGNORE.indexOf(file.name) === -1;
1168
+ });
1169
+ }
1170
+ function fromList(items) {
1171
+ if (items === null) return [];
1172
+ var files = [];
1173
+ for (var i = 0; i < items.length; i++) {
1174
+ var file = items[i];
1175
+ files.push(file);
1176
+ }
1177
+ return files;
1178
+ }
1179
+ function toFilePromises(item) {
1180
+ if (typeof item.webkitGetAsEntry !== "function") return fromDataTransferItem(item);
1181
+ var entry = item.webkitGetAsEntry();
1182
+ if (entry && entry.isDirectory) return fromDirEntry(entry);
1183
+ return fromDataTransferItem(item);
1184
+ }
1185
+ function flatten(items) {
1186
+ return items.reduce(function(acc, files) {
1187
+ return __spreadArray(__spreadArray([], __read(acc), false), __read(Array.isArray(files) ? flatten(files) : [files]), false);
1188
+ }, []);
1189
+ }
1190
+ function fromDataTransferItem(item) {
1191
+ var file = item.getAsFile();
1192
+ if (!file) return Promise.reject("".concat(item, " is not a File"));
1193
+ var fwp = toFileWithPath(file);
1194
+ return Promise.resolve(fwp);
1195
+ }
1196
+ function fromEntry(entry) {
1197
+ return __awaiter(this, void 0, void 0, function() {
1198
+ return __generator(this, function(_a) {
1199
+ return [2, entry.isDirectory ? fromDirEntry(entry) : fromFileEntry(entry)];
1200
+ });
1201
+ });
1202
+ }
1203
+ function fromDirEntry(entry) {
1204
+ var reader = entry.createReader();
1205
+ return new Promise(function(resolve, reject) {
1206
+ var entries = [];
1207
+ function readEntries() {
1208
+ var _this = this;
1209
+ reader.readEntries(function(batch) {
1210
+ return __awaiter(_this, void 0, void 0, function() {
1211
+ var files, err_1, items;
1212
+ return __generator(this, function(_a) {
1213
+ switch (_a.label) {
1214
+ case 0:
1215
+ if (!!batch.length) return [3, 5];
1216
+ _a.label = 1;
1217
+ case 1:
1218
+ _a.trys.push([
1219
+ 1,
1220
+ 3,
1221
+ ,
1222
+ 4
1223
+ ]);
1224
+ return [4, Promise.all(entries)];
1225
+ case 2:
1226
+ files = _a.sent();
1227
+ resolve(files);
1228
+ return [3, 4];
1229
+ case 3:
1230
+ err_1 = _a.sent();
1231
+ reject(err_1);
1232
+ return [3, 4];
1233
+ case 4: return [3, 6];
1234
+ case 5:
1235
+ items = Promise.all(batch.map(fromEntry));
1236
+ entries.push(items);
1237
+ readEntries();
1238
+ _a.label = 6;
1239
+ case 6: return [2];
1240
+ }
1241
+ });
1242
+ });
1243
+ }, function(err) {
1244
+ reject(err);
1245
+ });
1246
+ }
1247
+ readEntries();
1248
+ });
1249
+ }
1250
+ function fromFileEntry(entry) {
1251
+ return __awaiter(this, void 0, void 0, function() {
1252
+ return __generator(this, function(_a) {
1253
+ return [2, new Promise(function(resolve, reject) {
1254
+ entry.file(function(file) {
1255
+ resolve(toFileWithPath(file, entry.fullPath));
1256
+ }, function(err) {
1257
+ reject(err);
1258
+ });
1259
+ })];
1260
+ });
1261
+ });
1262
+ }
1263
+ //#endregion
1264
+ //#region ../../node_modules/.pnpm/attr-accept@2.2.2/node_modules/attr-accept/dist/es/index.js
1265
+ var require_es = /* @__PURE__ */ __commonJSMin(((exports) => {
1266
+ exports.__esModule = true;
1267
+ exports.default = function(file, acceptedFiles) {
1268
+ if (file && acceptedFiles) {
1269
+ var acceptedFilesArray = Array.isArray(acceptedFiles) ? acceptedFiles : acceptedFiles.split(",");
1270
+ var fileName = file.name || "";
1271
+ var mimeType = (file.type || "").toLowerCase();
1272
+ var baseMimeType = mimeType.replace(/\/.*$/, "");
1273
+ return acceptedFilesArray.some(function(type) {
1274
+ var validType = type.trim().toLowerCase();
1275
+ if (validType.charAt(0) === ".") return fileName.toLowerCase().endsWith(validType);
1276
+ else if (validType.endsWith("/*")) return baseMimeType === validType.replace(/\/.*$/, "");
1277
+ return mimeType === validType;
1278
+ });
1279
+ }
1280
+ return true;
1281
+ };
1282
+ }));
1283
+ //#endregion
1284
+ //#region ../../node_modules/.pnpm/react-dropzone@14.2.3_react@19.2.7/node_modules/react-dropzone/dist/es/utils/index.js
1285
+ var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types());
1286
+ var import_es = /* @__PURE__ */ __toESM(require_es());
1287
+ function _toConsumableArray$1(arr) {
1288
+ return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1();
1289
+ }
1290
+ function _nonIterableSpread$1() {
1291
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1292
+ }
1293
+ function _iterableToArray$1(iter) {
1294
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1295
+ }
1296
+ function _arrayWithoutHoles$1(arr) {
1297
+ if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
1298
+ }
1299
+ function ownKeys$1(object, enumerableOnly) {
1300
+ var keys = Object.keys(object);
1301
+ if (Object.getOwnPropertySymbols) {
1302
+ var symbols = Object.getOwnPropertySymbols(object);
1303
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
1304
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
1305
+ })), keys.push.apply(keys, symbols);
1306
+ }
1307
+ return keys;
1308
+ }
1309
+ function _objectSpread$1(target) {
1310
+ for (var i = 1; i < arguments.length; i++) {
1311
+ var source = null != arguments[i] ? arguments[i] : {};
1312
+ i % 2 ? ownKeys$1(Object(source), !0).forEach(function(key) {
1313
+ _defineProperty$1(target, key, source[key]);
1314
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function(key) {
1315
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1316
+ });
1317
+ }
1318
+ return target;
1319
+ }
1320
+ function _defineProperty$1(obj, key, value) {
1321
+ if (key in obj) Object.defineProperty(obj, key, {
1322
+ value,
1323
+ enumerable: true,
1324
+ configurable: true,
1325
+ writable: true
1326
+ });
1327
+ else obj[key] = value;
1328
+ return obj;
1329
+ }
1330
+ function _slicedToArray$1(arr, i) {
1331
+ return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest$1();
1332
+ }
1333
+ function _nonIterableRest$1() {
1334
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1335
+ }
1336
+ function _unsupportedIterableToArray$1(o, minLen) {
1337
+ if (!o) return;
1338
+ if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
1339
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1340
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1341
+ if (n === "Map" || n === "Set") return Array.from(o);
1342
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
1343
+ }
1344
+ function _arrayLikeToArray$1(arr, len) {
1345
+ if (len == null || len > arr.length) len = arr.length;
1346
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1347
+ return arr2;
1348
+ }
1349
+ function _iterableToArrayLimit$1(arr, i) {
1350
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1351
+ if (_i == null) return;
1352
+ var _arr = [];
1353
+ var _n = true;
1354
+ var _d = false;
1355
+ var _s, _e;
1356
+ try {
1357
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
1358
+ _arr.push(_s.value);
1359
+ if (i && _arr.length === i) break;
1360
+ }
1361
+ } catch (err) {
1362
+ _d = true;
1363
+ _e = err;
1364
+ } finally {
1365
+ try {
1366
+ if (!_n && _i["return"] != null) _i["return"]();
1367
+ } finally {
1368
+ if (_d) throw _e;
1369
+ }
1370
+ }
1371
+ return _arr;
1372
+ }
1373
+ function _arrayWithHoles$1(arr) {
1374
+ if (Array.isArray(arr)) return arr;
1375
+ }
1376
+ var FILE_INVALID_TYPE = "file-invalid-type";
1377
+ var FILE_TOO_LARGE = "file-too-large";
1378
+ var FILE_TOO_SMALL = "file-too-small";
1379
+ var TOO_MANY_FILES = "too-many-files";
1380
+ var getInvalidTypeRejectionErr = function getInvalidTypeRejectionErr(accept) {
1381
+ accept = Array.isArray(accept) && accept.length === 1 ? accept[0] : accept;
1382
+ var messageSuffix = Array.isArray(accept) ? "one of ".concat(accept.join(", ")) : accept;
1383
+ return {
1384
+ code: FILE_INVALID_TYPE,
1385
+ message: "File type must be ".concat(messageSuffix)
1386
+ };
1387
+ };
1388
+ var getTooLargeRejectionErr = function getTooLargeRejectionErr(maxSize) {
1389
+ return {
1390
+ code: FILE_TOO_LARGE,
1391
+ message: "File is larger than ".concat(maxSize, " ").concat(maxSize === 1 ? "byte" : "bytes")
1392
+ };
1393
+ };
1394
+ var getTooSmallRejectionErr = function getTooSmallRejectionErr(minSize) {
1395
+ return {
1396
+ code: FILE_TOO_SMALL,
1397
+ message: "File is smaller than ".concat(minSize, " ").concat(minSize === 1 ? "byte" : "bytes")
1398
+ };
1399
+ };
1400
+ var TOO_MANY_FILES_REJECTION = {
1401
+ code: TOO_MANY_FILES,
1402
+ message: "Too many files"
1403
+ };
1404
+ function fileAccepted(file, accept) {
1405
+ var isAcceptable = file.type === "application/x-moz-file" || (0, import_es.default)(file, accept);
1406
+ return [isAcceptable, isAcceptable ? null : getInvalidTypeRejectionErr(accept)];
1407
+ }
1408
+ function fileMatchSize(file, minSize, maxSize) {
1409
+ if (isDefined(file.size)) {
1410
+ if (isDefined(minSize) && isDefined(maxSize)) {
1411
+ if (file.size > maxSize) return [false, getTooLargeRejectionErr(maxSize)];
1412
+ if (file.size < minSize) return [false, getTooSmallRejectionErr(minSize)];
1413
+ } else if (isDefined(minSize) && file.size < minSize) return [false, getTooSmallRejectionErr(minSize)];
1414
+ else if (isDefined(maxSize) && file.size > maxSize) return [false, getTooLargeRejectionErr(maxSize)];
1415
+ }
1416
+ return [true, null];
1417
+ }
1418
+ function isDefined(value) {
1419
+ return value !== void 0 && value !== null;
1420
+ }
1421
+ /**
1422
+ *
1423
+ * @param {object} options
1424
+ * @param {File[]} options.files
1425
+ * @param {string|string[]} [options.accept]
1426
+ * @param {number} [options.minSize]
1427
+ * @param {number} [options.maxSize]
1428
+ * @param {boolean} [options.multiple]
1429
+ * @param {number} [options.maxFiles]
1430
+ * @param {(f: File) => FileError|FileError[]|null} [options.validator]
1431
+ * @returns
1432
+ */
1433
+ function allFilesAccepted(_ref) {
1434
+ var files = _ref.files, accept = _ref.accept, minSize = _ref.minSize, maxSize = _ref.maxSize, multiple = _ref.multiple, maxFiles = _ref.maxFiles, validator = _ref.validator;
1435
+ if (!multiple && files.length > 1 || multiple && maxFiles >= 1 && files.length > maxFiles) return false;
1436
+ return files.every(function(file) {
1437
+ var accepted = _slicedToArray$1(fileAccepted(file, accept), 1)[0];
1438
+ var sizeMatch = _slicedToArray$1(fileMatchSize(file, minSize, maxSize), 1)[0];
1439
+ var customErrors = validator ? validator(file) : null;
1440
+ return accepted && sizeMatch && !customErrors;
1441
+ });
1442
+ }
1443
+ function isPropagationStopped(event) {
1444
+ if (typeof event.isPropagationStopped === "function") return event.isPropagationStopped();
1445
+ else if (typeof event.cancelBubble !== "undefined") return event.cancelBubble;
1446
+ return false;
1447
+ }
1448
+ function isEvtWithFiles(event) {
1449
+ if (!event.dataTransfer) return !!event.target && !!event.target.files;
1450
+ return Array.prototype.some.call(event.dataTransfer.types, function(type) {
1451
+ return type === "Files" || type === "application/x-moz-file";
1452
+ });
1453
+ }
1454
+ function onDocumentDragOver(event) {
1455
+ event.preventDefault();
1456
+ }
1457
+ function isIe(userAgent) {
1458
+ return userAgent.indexOf("MSIE") !== -1 || userAgent.indexOf("Trident/") !== -1;
1459
+ }
1460
+ function isEdge(userAgent) {
1461
+ return userAgent.indexOf("Edge/") !== -1;
1462
+ }
1463
+ function isIeOrEdge() {
1464
+ var userAgent = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1465
+ return isIe(userAgent) || isEdge(userAgent);
1466
+ }
1467
+ /**
1468
+ * This is intended to be used to compose event handlers
1469
+ * They are executed in order until one of them calls `event.isPropagationStopped()`.
1470
+ * Note that the check is done on the first invoke too,
1471
+ * meaning that if propagation was stopped before invoking the fns,
1472
+ * no handlers will be executed.
1473
+ *
1474
+ * @param {Function} fns the event hanlder functions
1475
+ * @return {Function} the event handler to add to an element
1476
+ */
1477
+ function composeEventHandlers() {
1478
+ for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) fns[_key] = arguments[_key];
1479
+ return function(event) {
1480
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) args[_key2 - 1] = arguments[_key2];
1481
+ return fns.some(function(fn) {
1482
+ if (!isPropagationStopped(event) && fn) fn.apply(void 0, [event].concat(args));
1483
+ return isPropagationStopped(event);
1484
+ });
1485
+ };
1486
+ }
1487
+ /**
1488
+ * canUseFileSystemAccessAPI checks if the [File System Access API](https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API)
1489
+ * is supported by the browser.
1490
+ * @returns {boolean}
1491
+ */
1492
+ function canUseFileSystemAccessAPI() {
1493
+ return "showOpenFilePicker" in window;
1494
+ }
1495
+ /**
1496
+ * Convert the `{accept}` dropzone prop to the
1497
+ * `{types}` option for https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker
1498
+ *
1499
+ * @param {AcceptProp} accept
1500
+ * @returns {{accept: string[]}[]}
1501
+ */
1502
+ function pickerOptionsFromAccept(accept) {
1503
+ if (isDefined(accept)) return [{
1504
+ description: "Files",
1505
+ accept: Object.entries(accept).filter(function(_ref2) {
1506
+ var _ref3 = _slicedToArray$1(_ref2, 2), mimeType = _ref3[0], ext = _ref3[1];
1507
+ var ok = true;
1508
+ if (!isMIMEType(mimeType)) {
1509
+ console.warn("Skipped \"".concat(mimeType, "\" 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."));
1510
+ ok = false;
1511
+ }
1512
+ if (!Array.isArray(ext) || !ext.every(isExt)) {
1513
+ console.warn("Skipped \"".concat(mimeType, "\" because an invalid file extension was provided."));
1514
+ ok = false;
1515
+ }
1516
+ return ok;
1517
+ }).reduce(function(agg, _ref4) {
1518
+ var _ref5 = _slicedToArray$1(_ref4, 2), mimeType = _ref5[0], ext = _ref5[1];
1519
+ return _objectSpread$1(_objectSpread$1({}, agg), {}, _defineProperty$1({}, mimeType, ext));
1520
+ }, {})
1521
+ }];
1522
+ return accept;
1523
+ }
1524
+ /**
1525
+ * Convert the `{accept}` dropzone prop to an array of MIME types/extensions.
1526
+ * @param {AcceptProp} accept
1527
+ * @returns {string}
1528
+ */
1529
+ function acceptPropAsAcceptAttr(accept) {
1530
+ if (isDefined(accept)) return Object.entries(accept).reduce(function(a, _ref6) {
1531
+ var _ref7 = _slicedToArray$1(_ref6, 2), mimeType = _ref7[0], ext = _ref7[1];
1532
+ return [].concat(_toConsumableArray$1(a), [mimeType], _toConsumableArray$1(ext));
1533
+ }, []).filter(function(v) {
1534
+ return isMIMEType(v) || isExt(v);
1535
+ }).join(",");
1536
+ }
1537
+ /**
1538
+ * Check if v is an exception caused by aborting a request (e.g window.showOpenFilePicker()).
1539
+ *
1540
+ * See https://developer.mozilla.org/en-US/docs/Web/API/DOMException.
1541
+ * @param {any} v
1542
+ * @returns {boolean} True if v is an abort exception.
1543
+ */
1544
+ function isAbort(v) {
1545
+ return v instanceof DOMException && (v.name === "AbortError" || v.code === v.ABORT_ERR);
1546
+ }
1547
+ /**
1548
+ * Check if v is a security error.
1549
+ *
1550
+ * See https://developer.mozilla.org/en-US/docs/Web/API/DOMException.
1551
+ * @param {any} v
1552
+ * @returns {boolean} True if v is a security error.
1553
+ */
1554
+ function isSecurityError(v) {
1555
+ return v instanceof DOMException && (v.name === "SecurityError" || v.code === v.SECURITY_ERR);
1556
+ }
1557
+ /**
1558
+ * Check if v is a MIME type string.
1559
+ *
1560
+ * See accepted format: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers.
1561
+ *
1562
+ * @param {string} v
1563
+ */
1564
+ function isMIMEType(v) {
1565
+ return v === "audio/*" || v === "video/*" || v === "image/*" || v === "text/*" || /\w+\/[-+.\w]+/g.test(v);
1566
+ }
1567
+ /**
1568
+ * Check if v is a file extension.
1569
+ * @param {string} v
1570
+ */
1571
+ function isExt(v) {
1572
+ return /^.*\.[\w]+$/.test(v);
1573
+ }
1574
+ /**
1575
+ * @typedef {Object.<string, string[]>} AcceptProp
1576
+ */
1577
+ /**
1578
+ * @typedef {object} FileError
1579
+ * @property {string} message
1580
+ * @property {ErrorCode|string} code
1581
+ */
1582
+ /**
1583
+ * @typedef {"file-invalid-type"|"file-too-large"|"file-too-small"|"too-many-files"} ErrorCode
1584
+ */
1585
+ //#endregion
1586
+ //#region ../../node_modules/.pnpm/react-dropzone@14.2.3_react@19.2.7/node_modules/react-dropzone/dist/es/index.js
1587
+ var _excluded = ["children"];
1588
+ var _excluded2 = ["open"];
1589
+ var _excluded3 = [
1590
+ "refKey",
1591
+ "role",
1592
+ "onKeyDown",
1593
+ "onFocus",
1594
+ "onBlur",
1595
+ "onClick",
1596
+ "onDragEnter",
1597
+ "onDragOver",
1598
+ "onDragLeave",
1599
+ "onDrop"
1600
+ ];
1601
+ var _excluded4 = [
1602
+ "refKey",
1603
+ "onChange",
1604
+ "onClick"
1605
+ ];
1606
+ function _toConsumableArray(arr) {
1607
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
1608
+ }
1609
+ function _nonIterableSpread() {
1610
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1611
+ }
1612
+ function _iterableToArray(iter) {
1613
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1614
+ }
1615
+ function _arrayWithoutHoles(arr) {
1616
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
1617
+ }
1618
+ function _slicedToArray(arr, i) {
1619
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
1620
+ }
1621
+ function _nonIterableRest() {
1622
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1623
+ }
1624
+ function _unsupportedIterableToArray(o, minLen) {
1625
+ if (!o) return;
1626
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1627
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1628
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1629
+ if (n === "Map" || n === "Set") return Array.from(o);
1630
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1631
+ }
1632
+ function _arrayLikeToArray(arr, len) {
1633
+ if (len == null || len > arr.length) len = arr.length;
1634
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1635
+ return arr2;
1636
+ }
1637
+ function _iterableToArrayLimit(arr, i) {
1638
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1639
+ if (_i == null) return;
1640
+ var _arr = [];
1641
+ var _n = true;
1642
+ var _d = false;
1643
+ var _s, _e;
1644
+ try {
1645
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
1646
+ _arr.push(_s.value);
1647
+ if (i && _arr.length === i) break;
1648
+ }
1649
+ } catch (err) {
1650
+ _d = true;
1651
+ _e = err;
1652
+ } finally {
1653
+ try {
1654
+ if (!_n && _i["return"] != null) _i["return"]();
1655
+ } finally {
1656
+ if (_d) throw _e;
1657
+ }
1658
+ }
1659
+ return _arr;
1660
+ }
1661
+ function _arrayWithHoles(arr) {
1662
+ if (Array.isArray(arr)) return arr;
1663
+ }
1664
+ function ownKeys(object, enumerableOnly) {
1665
+ var keys = Object.keys(object);
1666
+ if (Object.getOwnPropertySymbols) {
1667
+ var symbols = Object.getOwnPropertySymbols(object);
1668
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
1669
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
1670
+ })), keys.push.apply(keys, symbols);
1671
+ }
1672
+ return keys;
1673
+ }
1674
+ function _objectSpread(target) {
1675
+ for (var i = 1; i < arguments.length; i++) {
1676
+ var source = null != arguments[i] ? arguments[i] : {};
1677
+ i % 2 ? ownKeys(Object(source), !0).forEach(function(key) {
1678
+ _defineProperty(target, key, source[key]);
1679
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
1680
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1681
+ });
1682
+ }
1683
+ return target;
1684
+ }
1685
+ function _defineProperty(obj, key, value) {
1686
+ if (key in obj) Object.defineProperty(obj, key, {
1687
+ value,
1688
+ enumerable: true,
1689
+ configurable: true,
1690
+ writable: true
1691
+ });
1692
+ else obj[key] = value;
1693
+ return obj;
1694
+ }
1695
+ function _objectWithoutProperties(source, excluded) {
1696
+ if (source == null) return {};
1697
+ var target = _objectWithoutPropertiesLoose(source, excluded);
1698
+ var key, i;
1699
+ if (Object.getOwnPropertySymbols) {
1700
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
1701
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
1702
+ key = sourceSymbolKeys[i];
1703
+ if (excluded.indexOf(key) >= 0) continue;
1704
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
1705
+ target[key] = source[key];
1706
+ }
1707
+ }
1708
+ return target;
1709
+ }
1710
+ function _objectWithoutPropertiesLoose(source, excluded) {
1711
+ if (source == null) return {};
1712
+ var target = {};
1713
+ var sourceKeys = Object.keys(source);
1714
+ var key, i;
1715
+ for (i = 0; i < sourceKeys.length; i++) {
1716
+ key = sourceKeys[i];
1717
+ if (excluded.indexOf(key) >= 0) continue;
1718
+ target[key] = source[key];
1719
+ }
1720
+ return target;
1721
+ }
1722
+ /**
1723
+ * Convenience wrapper component for the `useDropzone` hook
1724
+ *
1725
+ * ```jsx
1726
+ * <Dropzone>
1727
+ * {({getRootProps, getInputProps}) => (
1728
+ * <div {...getRootProps()}>
1729
+ * <input {...getInputProps()} />
1730
+ * <p>Drag 'n' drop some files here, or click to select files</p>
1731
+ * </div>
1732
+ * )}
1733
+ * </Dropzone>
1734
+ * ```
1735
+ */
1736
+ var Dropzone = /*#__PURE__*/ forwardRef(function(_ref, ref) {
1737
+ var children = _ref.children;
1738
+ var _useDropzone = useDropzone(_objectWithoutProperties(_ref, _excluded)), open = _useDropzone.open, props = _objectWithoutProperties(_useDropzone, _excluded2);
1739
+ useImperativeHandle(ref, function() {
1740
+ return { open };
1741
+ }, [open]);
1742
+ return /*#__PURE__*/ React.createElement(Fragment, null, children(_objectSpread(_objectSpread({}, props), {}, { open })));
1743
+ });
1744
+ Dropzone.displayName = "Dropzone";
1745
+ var defaultProps = {
1746
+ disabled: false,
1747
+ getFilesFromEvent: fromEvent,
1748
+ maxSize: Infinity,
1749
+ minSize: 0,
1750
+ multiple: true,
1751
+ maxFiles: 0,
1752
+ preventDropOnDocument: true,
1753
+ noClick: false,
1754
+ noKeyboard: false,
1755
+ noDrag: false,
1756
+ noDragEventsBubbling: false,
1757
+ validator: null,
1758
+ useFsAccessApi: true,
1759
+ autoFocus: false
1760
+ };
1761
+ Dropzone.defaultProps = defaultProps;
1762
+ Dropzone.propTypes = {
1763
+ /**
1764
+ * Render function that exposes the dropzone state and prop getter fns
1765
+ *
1766
+ * @param {object} params
1767
+ * @param {Function} params.getRootProps Returns the props you should apply to the root drop container you render
1768
+ * @param {Function} params.getInputProps Returns the props you should apply to hidden file input you render
1769
+ * @param {Function} params.open Open the native file selection dialog
1770
+ * @param {boolean} params.isFocused Dropzone area is in focus
1771
+ * @param {boolean} params.isFileDialogActive File dialog is opened
1772
+ * @param {boolean} params.isDragActive Active drag is in progress
1773
+ * @param {boolean} params.isDragAccept Dragged files are accepted
1774
+ * @param {boolean} params.isDragReject Some dragged files are rejected
1775
+ * @param {File[]} params.acceptedFiles Accepted files
1776
+ * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
1777
+ */
1778
+ children: import_prop_types.default.func,
1779
+ /**
1780
+ * Set accepted file types.
1781
+ * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
1782
+ * Keep in mind that mime type determination is not reliable across platforms. CSV files,
1783
+ * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
1784
+ * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
1785
+ */
1786
+ accept: import_prop_types.default.objectOf(import_prop_types.default.arrayOf(import_prop_types.default.string)),
1787
+ /**
1788
+ * Allow drag 'n' drop (or selection from the file dialog) of multiple files
1789
+ */
1790
+ multiple: import_prop_types.default.bool,
1791
+ /**
1792
+ * If false, allow dropped items to take over the current browser window
1793
+ */
1794
+ preventDropOnDocument: import_prop_types.default.bool,
1795
+ /**
1796
+ * If true, disables click to open the native file selection dialog
1797
+ */
1798
+ noClick: import_prop_types.default.bool,
1799
+ /**
1800
+ * If true, disables SPACE/ENTER to open the native file selection dialog.
1801
+ * Note that it also stops tracking the focus state.
1802
+ */
1803
+ noKeyboard: import_prop_types.default.bool,
1804
+ /**
1805
+ * If true, disables drag 'n' drop
1806
+ */
1807
+ noDrag: import_prop_types.default.bool,
1808
+ /**
1809
+ * If true, stops drag event propagation to parents
1810
+ */
1811
+ noDragEventsBubbling: import_prop_types.default.bool,
1812
+ /**
1813
+ * Minimum file size (in bytes)
1814
+ */
1815
+ minSize: import_prop_types.default.number,
1816
+ /**
1817
+ * Maximum file size (in bytes)
1818
+ */
1819
+ maxSize: import_prop_types.default.number,
1820
+ /**
1821
+ * Maximum accepted number of files
1822
+ * The default value is 0 which means there is no limitation to how many files are accepted.
1823
+ */
1824
+ maxFiles: import_prop_types.default.number,
1825
+ /**
1826
+ * Enable/disable the dropzone
1827
+ */
1828
+ disabled: import_prop_types.default.bool,
1829
+ /**
1830
+ * Use this to provide a custom file aggregator
1831
+ *
1832
+ * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
1833
+ */
1834
+ getFilesFromEvent: import_prop_types.default.func,
1835
+ /**
1836
+ * Cb for when closing the file dialog with no selection
1837
+ */
1838
+ onFileDialogCancel: import_prop_types.default.func,
1839
+ /**
1840
+ * Cb for when opening the file dialog
1841
+ */
1842
+ onFileDialogOpen: import_prop_types.default.func,
1843
+ /**
1844
+ * Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
1845
+ * to open the file picker instead of using an `<input type="file">` click event.
1846
+ */
1847
+ useFsAccessApi: import_prop_types.default.bool,
1848
+ /**
1849
+ * Set to true to focus the root element on render
1850
+ */
1851
+ autoFocus: import_prop_types.default.bool,
1852
+ /**
1853
+ * Cb for when the `dragenter` event occurs.
1854
+ *
1855
+ * @param {DragEvent} event
1856
+ */
1857
+ onDragEnter: import_prop_types.default.func,
1858
+ /**
1859
+ * Cb for when the `dragleave` event occurs
1860
+ *
1861
+ * @param {DragEvent} event
1862
+ */
1863
+ onDragLeave: import_prop_types.default.func,
1864
+ /**
1865
+ * Cb for when the `dragover` event occurs
1866
+ *
1867
+ * @param {DragEvent} event
1868
+ */
1869
+ onDragOver: import_prop_types.default.func,
1870
+ /**
1871
+ * Cb for when the `drop` event occurs.
1872
+ * Note that this callback is invoked after the `getFilesFromEvent` callback is done.
1873
+ *
1874
+ * Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and `maxSize` props.
1875
+ * `accept` must be a valid [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml) according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension.
1876
+ * If `multiple` is set to false and additional files are dropped,
1877
+ * all files besides the first will be rejected.
1878
+ * Any file which does not have a size in the [`minSize`, `maxSize`] range, will be rejected as well.
1879
+ *
1880
+ * Note that the `onDrop` callback will always be invoked regardless if the dropped files were accepted or rejected.
1881
+ * If you'd like to react to a specific scenario, use the `onDropAccepted`/`onDropRejected` props.
1882
+ *
1883
+ * `onDrop` will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.
1884
+ * For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:
1885
+ *
1886
+ * ```js
1887
+ * function onDrop(acceptedFiles) {
1888
+ * const req = request.post('/upload')
1889
+ * acceptedFiles.forEach(file => {
1890
+ * req.attach(file.name, file)
1891
+ * })
1892
+ * req.end(callback)
1893
+ * }
1894
+ * ```
1895
+ *
1896
+ * @param {File[]} acceptedFiles
1897
+ * @param {FileRejection[]} fileRejections
1898
+ * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
1899
+ */
1900
+ onDrop: import_prop_types.default.func,
1901
+ /**
1902
+ * Cb for when the `drop` event occurs.
1903
+ * Note that if no files are accepted, this callback is not invoked.
1904
+ *
1905
+ * @param {File[]} files
1906
+ * @param {(DragEvent|Event)} event
1907
+ */
1908
+ onDropAccepted: import_prop_types.default.func,
1909
+ /**
1910
+ * Cb for when the `drop` event occurs.
1911
+ * Note that if no files are rejected, this callback is not invoked.
1912
+ *
1913
+ * @param {FileRejection[]} fileRejections
1914
+ * @param {(DragEvent|Event)} event
1915
+ */
1916
+ onDropRejected: import_prop_types.default.func,
1917
+ /**
1918
+ * Cb for when there's some error from any of the promises.
1919
+ *
1920
+ * @param {Error} error
1921
+ */
1922
+ onError: import_prop_types.default.func,
1923
+ /**
1924
+ * Custom validation function. It must return null if there's no errors.
1925
+ * @param {File} file
1926
+ * @returns {FileError|FileError[]|null}
1927
+ */
1928
+ validator: import_prop_types.default.func
1929
+ };
1930
+ /**
1931
+ * A function that is invoked for the `dragenter`,
1932
+ * `dragover` and `dragleave` events.
1933
+ * It is not invoked if the items are not files (such as link, text, etc.).
1934
+ *
1935
+ * @callback dragCb
1936
+ * @param {DragEvent} event
1937
+ */
1938
+ /**
1939
+ * A function that is invoked for the `drop` or input change event.
1940
+ * It is not invoked if the items are not files (such as link, text, etc.).
1941
+ *
1942
+ * @callback dropCb
1943
+ * @param {File[]} acceptedFiles List of accepted files
1944
+ * @param {FileRejection[]} fileRejections List of rejected files and why they were rejected
1945
+ * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
1946
+ */
1947
+ /**
1948
+ * A function that is invoked for the `drop` or input change event.
1949
+ * It is not invoked if the items are files (such as link, text, etc.).
1950
+ *
1951
+ * @callback dropAcceptedCb
1952
+ * @param {File[]} files List of accepted files that meet the given criteria
1953
+ * (`accept`, `multiple`, `minSize`, `maxSize`)
1954
+ * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
1955
+ */
1956
+ /**
1957
+ * A function that is invoked for the `drop` or input change event.
1958
+ *
1959
+ * @callback dropRejectedCb
1960
+ * @param {File[]} files List of rejected files that do not meet the given criteria
1961
+ * (`accept`, `multiple`, `minSize`, `maxSize`)
1962
+ * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
1963
+ */
1964
+ /**
1965
+ * A function that is used aggregate files,
1966
+ * in a asynchronous fashion, from drag or input change events.
1967
+ *
1968
+ * @callback getFilesFromEvent
1969
+ * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
1970
+ * @returns {(File[]|Promise<File[]>)}
1971
+ */
1972
+ /**
1973
+ * An object with the current dropzone state.
1974
+ *
1975
+ * @typedef {object} DropzoneState
1976
+ * @property {boolean} isFocused Dropzone area is in focus
1977
+ * @property {boolean} isFileDialogActive File dialog is opened
1978
+ * @property {boolean} isDragActive Active drag is in progress
1979
+ * @property {boolean} isDragAccept Dragged files are accepted
1980
+ * @property {boolean} isDragReject Some dragged files are rejected
1981
+ * @property {File[]} acceptedFiles Accepted files
1982
+ * @property {FileRejection[]} fileRejections Rejected files and why they were rejected
1983
+ */
1984
+ /**
1985
+ * An object with the dropzone methods.
1986
+ *
1987
+ * @typedef {object} DropzoneMethods
1988
+ * @property {Function} getRootProps Returns the props you should apply to the root drop container you render
1989
+ * @property {Function} getInputProps Returns the props you should apply to hidden file input you render
1990
+ * @property {Function} open Open the native file selection dialog
1991
+ */
1992
+ var initialState = {
1993
+ isFocused: false,
1994
+ isFileDialogActive: false,
1995
+ isDragActive: false,
1996
+ isDragAccept: false,
1997
+ isDragReject: false,
1998
+ acceptedFiles: [],
1999
+ fileRejections: []
2000
+ };
2001
+ /**
2002
+ * A React hook that creates a drag 'n' drop area.
2003
+ *
2004
+ * ```jsx
2005
+ * function MyDropzone(props) {
2006
+ * const {getRootProps, getInputProps} = useDropzone({
2007
+ * onDrop: acceptedFiles => {
2008
+ * // do something with the File objects, e.g. upload to some server
2009
+ * }
2010
+ * });
2011
+ * return (
2012
+ * <div {...getRootProps()}>
2013
+ * <input {...getInputProps()} />
2014
+ * <p>Drag and drop some files here, or click to select files</p>
2015
+ * </div>
2016
+ * )
2017
+ * }
2018
+ * ```
2019
+ *
2020
+ * @function useDropzone
2021
+ *
2022
+ * @param {object} props
2023
+ * @param {import("./utils").AcceptProp} [props.accept] Set accepted file types.
2024
+ * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
2025
+ * Keep in mind that mime type determination is not reliable across platforms. CSV files,
2026
+ * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
2027
+ * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
2028
+ * @param {boolean} [props.multiple=true] Allow drag 'n' drop (or selection from the file dialog) of multiple files
2029
+ * @param {boolean} [props.preventDropOnDocument=true] If false, allow dropped items to take over the current browser window
2030
+ * @param {boolean} [props.noClick=false] If true, disables click to open the native file selection dialog
2031
+ * @param {boolean} [props.noKeyboard=false] If true, disables SPACE/ENTER to open the native file selection dialog.
2032
+ * Note that it also stops tracking the focus state.
2033
+ * @param {boolean} [props.noDrag=false] If true, disables drag 'n' drop
2034
+ * @param {boolean} [props.noDragEventsBubbling=false] If true, stops drag event propagation to parents
2035
+ * @param {number} [props.minSize=0] Minimum file size (in bytes)
2036
+ * @param {number} [props.maxSize=Infinity] Maximum file size (in bytes)
2037
+ * @param {boolean} [props.disabled=false] Enable/disable the dropzone
2038
+ * @param {getFilesFromEvent} [props.getFilesFromEvent] Use this to provide a custom file aggregator
2039
+ * @param {Function} [props.onFileDialogCancel] Cb for when closing the file dialog with no selection
2040
+ * @param {boolean} [props.useFsAccessApi] Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
2041
+ * to open the file picker instead of using an `<input type="file">` click event.
2042
+ * @param {boolean} autoFocus Set to true to auto focus the root element.
2043
+ * @param {Function} [props.onFileDialogOpen] Cb for when opening the file dialog
2044
+ * @param {dragCb} [props.onDragEnter] Cb for when the `dragenter` event occurs.
2045
+ * @param {dragCb} [props.onDragLeave] Cb for when the `dragleave` event occurs
2046
+ * @param {dragCb} [props.onDragOver] Cb for when the `dragover` event occurs
2047
+ * @param {dropCb} [props.onDrop] Cb for when the `drop` event occurs.
2048
+ * Note that this callback is invoked after the `getFilesFromEvent` callback is done.
2049
+ *
2050
+ * Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and `maxSize` props.
2051
+ * `accept` must be an object with keys as a valid [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml) according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) and the value an array of file extensions (optional).
2052
+ * If `multiple` is set to false and additional files are dropped,
2053
+ * all files besides the first will be rejected.
2054
+ * Any file which does not have a size in the [`minSize`, `maxSize`] range, will be rejected as well.
2055
+ *
2056
+ * Note that the `onDrop` callback will always be invoked regardless if the dropped files were accepted or rejected.
2057
+ * If you'd like to react to a specific scenario, use the `onDropAccepted`/`onDropRejected` props.
2058
+ *
2059
+ * `onDrop` will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.
2060
+ * For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:
2061
+ *
2062
+ * ```js
2063
+ * function onDrop(acceptedFiles) {
2064
+ * const req = request.post('/upload')
2065
+ * acceptedFiles.forEach(file => {
2066
+ * req.attach(file.name, file)
2067
+ * })
2068
+ * req.end(callback)
2069
+ * }
2070
+ * ```
2071
+ * @param {dropAcceptedCb} [props.onDropAccepted]
2072
+ * @param {dropRejectedCb} [props.onDropRejected]
2073
+ * @param {(error: Error) => void} [props.onError]
2074
+ *
2075
+ * @returns {DropzoneState & DropzoneMethods}
2076
+ */
2077
+ function useDropzone() {
2078
+ var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2079
+ var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props), accept = _defaultProps$props.accept, disabled = _defaultProps$props.disabled, getFilesFromEvent = _defaultProps$props.getFilesFromEvent, maxSize = _defaultProps$props.maxSize, minSize = _defaultProps$props.minSize, multiple = _defaultProps$props.multiple, maxFiles = _defaultProps$props.maxFiles, onDragEnter = _defaultProps$props.onDragEnter, onDragLeave = _defaultProps$props.onDragLeave, onDragOver = _defaultProps$props.onDragOver, onDrop = _defaultProps$props.onDrop, onDropAccepted = _defaultProps$props.onDropAccepted, onDropRejected = _defaultProps$props.onDropRejected, onFileDialogCancel = _defaultProps$props.onFileDialogCancel, onFileDialogOpen = _defaultProps$props.onFileDialogOpen, useFsAccessApi = _defaultProps$props.useFsAccessApi, autoFocus = _defaultProps$props.autoFocus, preventDropOnDocument = _defaultProps$props.preventDropOnDocument, noClick = _defaultProps$props.noClick, noKeyboard = _defaultProps$props.noKeyboard, noDrag = _defaultProps$props.noDrag, noDragEventsBubbling = _defaultProps$props.noDragEventsBubbling, onError = _defaultProps$props.onError, validator = _defaultProps$props.validator;
2080
+ var acceptAttr = useMemo(function() {
2081
+ return acceptPropAsAcceptAttr(accept);
2082
+ }, [accept]);
2083
+ var pickerTypes = useMemo(function() {
2084
+ return pickerOptionsFromAccept(accept);
2085
+ }, [accept]);
2086
+ var onFileDialogOpenCb = useMemo(function() {
2087
+ return typeof onFileDialogOpen === "function" ? onFileDialogOpen : noop;
2088
+ }, [onFileDialogOpen]);
2089
+ var onFileDialogCancelCb = useMemo(function() {
2090
+ return typeof onFileDialogCancel === "function" ? onFileDialogCancel : noop;
2091
+ }, [onFileDialogCancel]);
2092
+ /**
2093
+ * @constant
2094
+ * @type {React.MutableRefObject<HTMLElement>}
2095
+ */
2096
+ var rootRef = useRef(null);
2097
+ var inputRef = useRef(null);
2098
+ var _useReducer2 = _slicedToArray(useReducer(reducer, initialState), 2), state = _useReducer2[0], dispatch = _useReducer2[1];
2099
+ var isFocused = state.isFocused, isFileDialogActive = state.isFileDialogActive;
2100
+ var fsAccessApiWorksRef = useRef(typeof window !== "undefined" && window.isSecureContext && useFsAccessApi && canUseFileSystemAccessAPI());
2101
+ var onWindowFocus = function onWindowFocus() {
2102
+ if (!fsAccessApiWorksRef.current && isFileDialogActive) setTimeout(function() {
2103
+ if (inputRef.current) {
2104
+ if (!inputRef.current.files.length) {
2105
+ dispatch({ type: "closeDialog" });
2106
+ onFileDialogCancelCb();
2107
+ }
2108
+ }
2109
+ }, 300);
2110
+ };
2111
+ useEffect(function() {
2112
+ window.addEventListener("focus", onWindowFocus, false);
2113
+ return function() {
2114
+ window.removeEventListener("focus", onWindowFocus, false);
2115
+ };
2116
+ }, [
2117
+ inputRef,
2118
+ isFileDialogActive,
2119
+ onFileDialogCancelCb,
2120
+ fsAccessApiWorksRef
2121
+ ]);
2122
+ var dragTargetsRef = useRef([]);
2123
+ var onDocumentDrop = function onDocumentDrop(event) {
2124
+ if (rootRef.current && rootRef.current.contains(event.target)) return;
2125
+ event.preventDefault();
2126
+ dragTargetsRef.current = [];
2127
+ };
2128
+ useEffect(function() {
2129
+ if (preventDropOnDocument) {
2130
+ document.addEventListener("dragover", onDocumentDragOver, false);
2131
+ document.addEventListener("drop", onDocumentDrop, false);
2132
+ }
2133
+ return function() {
2134
+ if (preventDropOnDocument) {
2135
+ document.removeEventListener("dragover", onDocumentDragOver);
2136
+ document.removeEventListener("drop", onDocumentDrop);
2137
+ }
2138
+ };
2139
+ }, [rootRef, preventDropOnDocument]);
2140
+ useEffect(function() {
2141
+ if (!disabled && autoFocus && rootRef.current) rootRef.current.focus();
2142
+ return function() {};
2143
+ }, [
2144
+ rootRef,
2145
+ autoFocus,
2146
+ disabled
2147
+ ]);
2148
+ var onErrCb = useCallback(function(e) {
2149
+ if (onError) onError(e);
2150
+ else console.error(e);
2151
+ }, [onError]);
2152
+ var onDragEnterCb = useCallback(function(event) {
2153
+ event.preventDefault();
2154
+ event.persist();
2155
+ stopPropagation(event);
2156
+ dragTargetsRef.current = [].concat(_toConsumableArray(dragTargetsRef.current), [event.target]);
2157
+ if (isEvtWithFiles(event)) Promise.resolve(getFilesFromEvent(event)).then(function(files) {
2158
+ if (isPropagationStopped(event) && !noDragEventsBubbling) return;
2159
+ var fileCount = files.length;
2160
+ var isDragAccept = fileCount > 0 && allFilesAccepted({
2161
+ files,
2162
+ accept: acceptAttr,
2163
+ minSize,
2164
+ maxSize,
2165
+ multiple,
2166
+ maxFiles,
2167
+ validator
2168
+ });
2169
+ dispatch({
2170
+ isDragAccept,
2171
+ isDragReject: fileCount > 0 && !isDragAccept,
2172
+ isDragActive: true,
2173
+ type: "setDraggedFiles"
2174
+ });
2175
+ if (onDragEnter) onDragEnter(event);
2176
+ }).catch(function(e) {
2177
+ return onErrCb(e);
2178
+ });
2179
+ }, [
2180
+ getFilesFromEvent,
2181
+ onDragEnter,
2182
+ onErrCb,
2183
+ noDragEventsBubbling,
2184
+ acceptAttr,
2185
+ minSize,
2186
+ maxSize,
2187
+ multiple,
2188
+ maxFiles,
2189
+ validator
2190
+ ]);
2191
+ var onDragOverCb = useCallback(function(event) {
2192
+ event.preventDefault();
2193
+ event.persist();
2194
+ stopPropagation(event);
2195
+ var hasFiles = isEvtWithFiles(event);
2196
+ if (hasFiles && event.dataTransfer) try {
2197
+ event.dataTransfer.dropEffect = "copy";
2198
+ } catch (_unused) {}
2199
+ if (hasFiles && onDragOver) onDragOver(event);
2200
+ return false;
2201
+ }, [onDragOver, noDragEventsBubbling]);
2202
+ var onDragLeaveCb = useCallback(function(event) {
2203
+ event.preventDefault();
2204
+ event.persist();
2205
+ stopPropagation(event);
2206
+ var targets = dragTargetsRef.current.filter(function(target) {
2207
+ return rootRef.current && rootRef.current.contains(target);
2208
+ });
2209
+ var targetIdx = targets.indexOf(event.target);
2210
+ if (targetIdx !== -1) targets.splice(targetIdx, 1);
2211
+ dragTargetsRef.current = targets;
2212
+ if (targets.length > 0) return;
2213
+ dispatch({
2214
+ type: "setDraggedFiles",
2215
+ isDragActive: false,
2216
+ isDragAccept: false,
2217
+ isDragReject: false
2218
+ });
2219
+ if (isEvtWithFiles(event) && onDragLeave) onDragLeave(event);
2220
+ }, [
2221
+ rootRef,
2222
+ onDragLeave,
2223
+ noDragEventsBubbling
2224
+ ]);
2225
+ var setFiles = useCallback(function(files, event) {
2226
+ var acceptedFiles = [];
2227
+ var fileRejections = [];
2228
+ files.forEach(function(file) {
2229
+ var _fileAccepted2 = _slicedToArray(fileAccepted(file, acceptAttr), 2), accepted = _fileAccepted2[0], acceptError = _fileAccepted2[1];
2230
+ var _fileMatchSize2 = _slicedToArray(fileMatchSize(file, minSize, maxSize), 2), sizeMatch = _fileMatchSize2[0], sizeError = _fileMatchSize2[1];
2231
+ var customErrors = validator ? validator(file) : null;
2232
+ if (accepted && sizeMatch && !customErrors) acceptedFiles.push(file);
2233
+ else {
2234
+ var errors = [acceptError, sizeError];
2235
+ if (customErrors) errors = errors.concat(customErrors);
2236
+ fileRejections.push({
2237
+ file,
2238
+ errors: errors.filter(function(e) {
2239
+ return e;
2240
+ })
2241
+ });
2242
+ }
2243
+ });
2244
+ if (!multiple && acceptedFiles.length > 1 || multiple && maxFiles >= 1 && acceptedFiles.length > maxFiles) {
2245
+ acceptedFiles.forEach(function(file) {
2246
+ fileRejections.push({
2247
+ file,
2248
+ errors: [TOO_MANY_FILES_REJECTION]
2249
+ });
2250
+ });
2251
+ acceptedFiles.splice(0);
2252
+ }
2253
+ dispatch({
2254
+ acceptedFiles,
2255
+ fileRejections,
2256
+ type: "setFiles"
2257
+ });
2258
+ if (onDrop) onDrop(acceptedFiles, fileRejections, event);
2259
+ if (fileRejections.length > 0 && onDropRejected) onDropRejected(fileRejections, event);
2260
+ if (acceptedFiles.length > 0 && onDropAccepted) onDropAccepted(acceptedFiles, event);
2261
+ }, [
2262
+ dispatch,
2263
+ multiple,
2264
+ acceptAttr,
2265
+ minSize,
2266
+ maxSize,
2267
+ maxFiles,
2268
+ onDrop,
2269
+ onDropAccepted,
2270
+ onDropRejected,
2271
+ validator
2272
+ ]);
2273
+ var onDropCb = useCallback(function(event) {
2274
+ event.preventDefault();
2275
+ event.persist();
2276
+ stopPropagation(event);
2277
+ dragTargetsRef.current = [];
2278
+ if (isEvtWithFiles(event)) Promise.resolve(getFilesFromEvent(event)).then(function(files) {
2279
+ if (isPropagationStopped(event) && !noDragEventsBubbling) return;
2280
+ setFiles(files, event);
2281
+ }).catch(function(e) {
2282
+ return onErrCb(e);
2283
+ });
2284
+ dispatch({ type: "reset" });
2285
+ }, [
2286
+ getFilesFromEvent,
2287
+ setFiles,
2288
+ onErrCb,
2289
+ noDragEventsBubbling
2290
+ ]);
2291
+ var openFileDialog = useCallback(function() {
2292
+ if (fsAccessApiWorksRef.current) {
2293
+ dispatch({ type: "openDialog" });
2294
+ onFileDialogOpenCb();
2295
+ var opts = {
2296
+ multiple,
2297
+ types: pickerTypes
2298
+ };
2299
+ window.showOpenFilePicker(opts).then(function(handles) {
2300
+ return getFilesFromEvent(handles);
2301
+ }).then(function(files) {
2302
+ setFiles(files, null);
2303
+ dispatch({ type: "closeDialog" });
2304
+ }).catch(function(e) {
2305
+ if (isAbort(e)) {
2306
+ onFileDialogCancelCb(e);
2307
+ dispatch({ type: "closeDialog" });
2308
+ } else if (isSecurityError(e)) {
2309
+ fsAccessApiWorksRef.current = false;
2310
+ if (inputRef.current) {
2311
+ inputRef.current.value = null;
2312
+ inputRef.current.click();
2313
+ } else onErrCb(/* @__PURE__ */ 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."));
2314
+ } else onErrCb(e);
2315
+ });
2316
+ return;
2317
+ }
2318
+ if (inputRef.current) {
2319
+ dispatch({ type: "openDialog" });
2320
+ onFileDialogOpenCb();
2321
+ inputRef.current.value = null;
2322
+ inputRef.current.click();
2323
+ }
2324
+ }, [
2325
+ dispatch,
2326
+ onFileDialogOpenCb,
2327
+ onFileDialogCancelCb,
2328
+ useFsAccessApi,
2329
+ setFiles,
2330
+ onErrCb,
2331
+ pickerTypes,
2332
+ multiple
2333
+ ]);
2334
+ var onKeyDownCb = useCallback(function(event) {
2335
+ if (!rootRef.current || !rootRef.current.isEqualNode(event.target)) return;
2336
+ if (event.key === " " || event.key === "Enter" || event.keyCode === 32 || event.keyCode === 13) {
2337
+ event.preventDefault();
2338
+ openFileDialog();
2339
+ }
2340
+ }, [rootRef, openFileDialog]);
2341
+ var onFocusCb = useCallback(function() {
2342
+ dispatch({ type: "focus" });
2343
+ }, []);
2344
+ var onBlurCb = useCallback(function() {
2345
+ dispatch({ type: "blur" });
2346
+ }, []);
2347
+ var onClickCb = useCallback(function() {
2348
+ if (noClick) return;
2349
+ if (isIeOrEdge()) setTimeout(openFileDialog, 0);
2350
+ else openFileDialog();
2351
+ }, [noClick, openFileDialog]);
2352
+ var composeHandler = function composeHandler(fn) {
2353
+ return disabled ? null : fn;
2354
+ };
2355
+ var composeKeyboardHandler = function composeKeyboardHandler(fn) {
2356
+ return noKeyboard ? null : composeHandler(fn);
2357
+ };
2358
+ var composeDragHandler = function composeDragHandler(fn) {
2359
+ return noDrag ? null : composeHandler(fn);
2360
+ };
2361
+ var stopPropagation = function stopPropagation(event) {
2362
+ if (noDragEventsBubbling) event.stopPropagation();
2363
+ };
2364
+ var getRootProps = useMemo(function() {
2365
+ return function() {
2366
+ var _ref2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref2$refKey = _ref2.refKey, refKey = _ref2$refKey === void 0 ? "ref" : _ref2$refKey, role = _ref2.role, onKeyDown = _ref2.onKeyDown, onFocus = _ref2.onFocus, onBlur = _ref2.onBlur, onClick = _ref2.onClick, onDragEnter = _ref2.onDragEnter, onDragOver = _ref2.onDragOver, onDragLeave = _ref2.onDragLeave, onDrop = _ref2.onDrop, rest = _objectWithoutProperties(_ref2, _excluded3);
2367
+ return _objectSpread(_objectSpread(_defineProperty({
2368
+ onKeyDown: composeKeyboardHandler(composeEventHandlers(onKeyDown, onKeyDownCb)),
2369
+ onFocus: composeKeyboardHandler(composeEventHandlers(onFocus, onFocusCb)),
2370
+ onBlur: composeKeyboardHandler(composeEventHandlers(onBlur, onBlurCb)),
2371
+ onClick: composeHandler(composeEventHandlers(onClick, onClickCb)),
2372
+ onDragEnter: composeDragHandler(composeEventHandlers(onDragEnter, onDragEnterCb)),
2373
+ onDragOver: composeDragHandler(composeEventHandlers(onDragOver, onDragOverCb)),
2374
+ onDragLeave: composeDragHandler(composeEventHandlers(onDragLeave, onDragLeaveCb)),
2375
+ onDrop: composeDragHandler(composeEventHandlers(onDrop, onDropCb)),
2376
+ role: typeof role === "string" && role !== "" ? role : "presentation"
2377
+ }, refKey, rootRef), !disabled && !noKeyboard ? { tabIndex: 0 } : {}), rest);
2378
+ };
2379
+ }, [
2380
+ rootRef,
2381
+ onKeyDownCb,
2382
+ onFocusCb,
2383
+ onBlurCb,
2384
+ onClickCb,
2385
+ onDragEnterCb,
2386
+ onDragOverCb,
2387
+ onDragLeaveCb,
2388
+ onDropCb,
2389
+ noKeyboard,
2390
+ noDrag,
2391
+ disabled
2392
+ ]);
2393
+ var onInputElementClick = useCallback(function(event) {
2394
+ event.stopPropagation();
2395
+ }, []);
2396
+ var getInputProps = useMemo(function() {
2397
+ return function() {
2398
+ var _ref3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref3$refKey = _ref3.refKey, refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey, onChange = _ref3.onChange, onClick = _ref3.onClick, rest = _objectWithoutProperties(_ref3, _excluded4);
2399
+ return _objectSpread(_objectSpread({}, _defineProperty({
2400
+ accept: acceptAttr,
2401
+ multiple,
2402
+ type: "file",
2403
+ style: { display: "none" },
2404
+ onChange: composeHandler(composeEventHandlers(onChange, onDropCb)),
2405
+ onClick: composeHandler(composeEventHandlers(onClick, onInputElementClick)),
2406
+ tabIndex: -1
2407
+ }, refKey, inputRef)), rest);
2408
+ };
2409
+ }, [
2410
+ inputRef,
2411
+ accept,
2412
+ multiple,
2413
+ onDropCb,
2414
+ disabled
2415
+ ]);
2416
+ return _objectSpread(_objectSpread({}, state), {}, {
2417
+ isFocused: isFocused && !disabled,
2418
+ getRootProps,
2419
+ getInputProps,
2420
+ rootRef,
2421
+ inputRef,
2422
+ open: composeHandler(openFileDialog)
2423
+ });
2424
+ }
2425
+ /**
2426
+ * @param {DropzoneState} state
2427
+ * @param {{type: string} & DropzoneState} action
2428
+ * @returns {DropzoneState}
2429
+ */
2430
+ function reducer(state, action) {
2431
+ /* istanbul ignore next */
2432
+ switch (action.type) {
2433
+ case "focus": return _objectSpread(_objectSpread({}, state), {}, { isFocused: true });
2434
+ case "blur": return _objectSpread(_objectSpread({}, state), {}, { isFocused: false });
2435
+ case "openDialog": return _objectSpread(_objectSpread({}, initialState), {}, { isFileDialogActive: true });
2436
+ case "closeDialog": return _objectSpread(_objectSpread({}, state), {}, { isFileDialogActive: false });
2437
+ case "setDraggedFiles": return _objectSpread(_objectSpread({}, state), {}, {
2438
+ isDragActive: action.isDragActive,
2439
+ isDragAccept: action.isDragAccept,
2440
+ isDragReject: action.isDragReject
2441
+ });
2442
+ case "setFiles": return _objectSpread(_objectSpread({}, state), {}, {
2443
+ acceptedFiles: action.acceptedFiles,
2444
+ fileRejections: action.fileRejections
2445
+ });
2446
+ case "reset": return _objectSpread({}, initialState);
2447
+ default: return state;
2448
+ }
2449
+ }
2450
+ function noop() {}
2451
+ //#endregion
2452
+ //#region src/components/FileUpload/useFileDropTarget.ts
2453
+ /**
2454
+ * Headless drop target — turns any element into one via `getRootProps()`.
2455
+ *
2456
+ * **When to use:** the drop affordance is an existing subtree you style yourself (a message
2457
+ * composer, a card, a whole panel). Pair with `noClick` / `noKeyboard` when that subtree is
2458
+ * already interactive, so clicking or typing inside it doesn't open the file dialog.
2459
+ * **When NOT to use:** a standalone drop box — compose `FileUpload` + `FileUpload.DropZone`,
2460
+ * which own the dashed-border chrome and the drag / error visual states.
2461
+ */
2462
+ const useFileDropTarget = ({ accept, maxSize, maxFiles, multiple = true, disabled = false, noClick, noKeyboard, onFilesChange, onFilesRejected } = {}) => {
2463
+ const { getRootProps, getInputProps, isDragActive, fileRejections } = useDropzone({
2464
+ accept,
2465
+ maxSize,
2466
+ maxFiles,
2467
+ multiple,
2468
+ disabled,
2469
+ noClick,
2470
+ noKeyboard,
2471
+ onDropAccepted: (files) => onFilesChange?.(files),
2472
+ onDropRejected: (rejections) => onFilesRejected?.(rejections)
2473
+ });
2474
+ return {
2475
+ getRootProps,
2476
+ getInputProps,
2477
+ isDragActive,
2478
+ rejections: fileRejections
2479
+ };
2480
+ };
2481
+ //#endregion
2482
+ //#region src/components/FileUpload/FileUpload.tsx
2483
+ /**
2484
+ * Drop-zone primitive — caller owns the file array; the component signals drops.
2485
+ *
2486
+ * Brand-neutral: the chrome is semantic tokens, so it follows whichever brand is active (there is
2487
+ * no argo-only runtime gate) and renders under legacy chrome too.
2488
+ *
2489
+ * **When to use:** any in-page file-picker flow (Card body, Modal, page content).
2490
+ * **When NOT to use:** for upload progress or pipeline orchestration, build app-level state on top of
2491
+ * `onFilesChange`; this primitive does not own the upload lifecycle. When the drop affordance is an
2492
+ * existing subtree you style yourself, reach for `useFileDropTarget` instead.
2493
+ * **Composition:** wrap `<FileUpload.DropZone />` for the drop target and `<FileUpload.FileList />`
2494
+ * for the selected-files list. The caller stores the `File[]` and renders it back into `FileList`.
2495
+ * Rejection copy is the caller's — read it with `useFileUploadRejections()`.
2496
+ */
2497
+ const FileUploadInner = ({ accept, maxSize, maxFiles, multiple, disabled = false, onFilesChange, onFilesRejected, forcedState, children, className, ...rest }) => {
2498
+ const dropTarget = useFileDropTarget({
2499
+ accept,
2500
+ maxSize,
2501
+ maxFiles,
2502
+ multiple,
2503
+ disabled,
2504
+ onFilesChange,
2505
+ onFilesRejected
2506
+ });
2507
+ return /* @__PURE__ */ jsx(FileUploadProvider, {
2508
+ value: {
2509
+ dropTarget,
2510
+ forcedState,
2511
+ disabled
2512
+ },
2513
+ children: /* @__PURE__ */ jsx("div", {
2514
+ className: cn("tw:flex tw:flex-col tw:gap-3", className),
2515
+ ...rest,
2516
+ children
2517
+ })
2518
+ });
2519
+ };
2520
+ const FileUpload = Object.assign(FileUploadInner, {
2521
+ DropZone: FileUploadDropZone,
2522
+ FileList: FileUploadFileList
2523
+ });
2524
+ //#endregion
2525
+ export { FileUpload, useFileDropTarget, useFileUploadRejections };
2526
+
2527
+ //# sourceMappingURL=FileUpload-BRv0TaZk.js.map