@lanaco/lnc-react-ui 4.0.225 → 4.0.226
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.
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.js +2 -2
- package/dist/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +2 -2
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +3 -3
- package/dist/AdBannerSection.cjs +1 -1
- package/dist/AdBannerSection.js +3 -3
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +2 -2
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +2 -2
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +2 -2
- package/dist/BannerNextSection.cjs +1 -1
- package/dist/BannerNextSection.js +3 -3
- package/dist/BannerSectionBasic.cjs +1 -1
- package/dist/BannerSectionBasic.js +2 -2
- package/dist/BannerSectionCarousel.cjs +1 -1
- package/dist/BannerSectionCarousel.js +5 -5
- package/dist/BannerSectionGrid.cjs +2 -2
- package/dist/BannerSectionGrid.js +5 -5
- package/dist/BannerSectionSimple.cjs +1 -1
- package/dist/BannerSectionSimple.js +4 -4
- package/dist/BannerSectionWithList.cjs +1 -1
- package/dist/BannerSectionWithList.js +3 -3
- package/dist/BannerSectionWithListImage.cjs +1 -1
- package/dist/BannerSectionWithListImage.js +2 -2
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +6 -6
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +2 -2
- package/dist/BlogExploreSection.cjs +1 -1
- package/dist/BlogExploreSection.js +6 -6
- package/dist/BlogImagePathSection.cjs +1 -1
- package/dist/BlogImagePathSection.js +2 -2
- package/dist/BlogListSection.cjs +1 -1
- package/dist/BlogListSection.js +6 -6
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +3 -3
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +3 -3
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +4 -4
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +9 -9
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +5 -5
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +7 -7
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +6 -6
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +8 -8
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +4 -4
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +2 -2
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +3 -3
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +2 -2
- package/dist/CalorieCalculatorSection.cjs +1 -1
- package/dist/CalorieCalculatorSection.js +3 -3
- package/dist/{CategorySimpleCard-CkSwvJRw.js → CategorySimpleCard-TJRJ_2Sb.js} +3 -3
- package/dist/{CategorySimpleCard-CIBvknos.cjs → CategorySimpleCard-lIdzBNDa.cjs} +1 -1
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +2 -2
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +2 -2
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +2 -2
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +2 -2
- package/dist/ContactSection.cjs +5 -5
- package/dist/ContactSection.js +1765 -1712
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +3 -3
- package/dist/{CustomStyles-DR4WuDUN.js → CustomStyles-B6uutenq.js} +58 -55
- package/dist/{CustomStyles-2TQQSwtU.cjs → CustomStyles-dJQPJ4s4.cjs} +4 -4
- package/dist/{DailyMotion-BPdBW5Yv.cjs → DailyMotion-BLODEbGN.cjs} +1 -1
- package/dist/{DailyMotion-P9S-WhTX.js → DailyMotion-BcKTajo7.js} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +1 -1
- package/dist/DateInput.cjs +1 -1
- package/dist/DateInput.js +4 -4
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +2 -2
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +2 -2
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +7 -7
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +8 -8
- package/dist/DetailsView.cjs +1 -1
- package/dist/DetailsView.js +2 -2
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +2 -2
- package/dist/DragAndDropFile.cjs +10 -10
- package/dist/DragAndDropFile.js +444 -408
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +2 -2
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +3 -3
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +2 -2
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +2 -2
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +2 -2
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +2 -2
- package/dist/{Facebook-C8L2KR4O.cjs → Facebook-Cxy7fSgc.cjs} +1 -1
- package/dist/{Facebook-vhbBr0rd.js → Facebook-o0wYiIu4.js} +25 -25
- package/dist/FaqSection.cjs +1 -1
- package/dist/FaqSection.js +4 -4
- package/dist/FeedbackSection.cjs +1 -1
- package/dist/FeedbackSection.js +3 -3
- package/dist/FieldOfInterestsMasonrySection.cjs +1 -1
- package/dist/FieldOfInterestsMasonrySection.js +4 -4
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +5 -5
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +4 -4
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +2 -2
- package/dist/{FilePlayer-BVFgHY_f.cjs → FilePlayer-DyIgZGf2.cjs} +1 -1
- package/dist/{FilePlayer-CXTLAokk.js → FilePlayer-Evom9jRl.js} +1 -1
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +2 -2
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +2 -2
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +2 -2
- package/dist/GeneralWithTagsCardsSection.cjs +1 -1
- package/dist/GeneralWithTagsCardsSection.js +4 -4
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +6 -6
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.js +1 -1
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +1 -1
- package/dist/HelpBannerSection.cjs +1 -1
- package/dist/HelpBannerSection.js +2 -2
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +2 -2
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +2 -2
- package/dist/{Kaltura-CRGK2EP7.js → Kaltura-CA_8jdJe.js} +1 -1
- package/dist/{Kaltura-C2fRoaEg.cjs → Kaltura-l-2u1Tm7.cjs} +1 -1
- package/dist/Kanban.cjs +5 -5
- package/dist/Kanban.js +5 -5
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +2 -2
- package/dist/{KanbanCard-DihrKn-I.cjs → KanbanCard-9Pe_tjMt.cjs} +1 -1
- package/dist/{KanbanCard-B9V9EjVE.js → KanbanCard-ffmclwO4.js} +1 -1
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -2
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +1 -1
- package/dist/KanbanHeader.cjs +1 -1
- package/dist/KanbanHeader.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +3 -3
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +2 -2
- package/dist/LoanCalculatorSection.cjs +1 -1
- package/dist/LoanCalculatorSection.js +4 -4
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +3 -3
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +4 -4
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +2 -2
- package/dist/{Mixcloud-D09BQNOt.cjs → Mixcloud-BwTRg6SF.cjs} +1 -1
- package/dist/{Mixcloud-Cn5M-EIT.js → Mixcloud-D2JZtlPe.js} +10 -10
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +3 -3
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/{Mux-C6szci3w.js → Mux-CBMcNvuK.js} +1 -1
- package/dist/{Mux-C-xD7crc.cjs → Mux-tp04uiAm.cjs} +1 -1
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +2 -2
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +2 -2
- package/dist/Notification.cjs +1 -1
- package/dist/Notification.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +3 -3
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +2 -2
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +2 -2
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +3 -3
- package/dist/PageLayout.cjs +1 -1
- package/dist/PageLayout.js +1 -1
- package/dist/Pagination.cjs +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/PartnerBannerSection.cjs +1 -1
- package/dist/PartnerBannerSection.js +2 -2
- package/dist/PartnerBrandsSection.cjs +1 -1
- package/dist/PartnerBrandsSection.js +4 -4
- package/dist/PartnerCardsSection.cjs +1 -1
- package/dist/PartnerCardsSection.js +4 -4
- package/dist/PartnerStatsSection.cjs +1 -1
- package/dist/PartnerStatsSection.js +3 -3
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +2 -2
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +3 -3
- package/dist/PopoverDescription.cjs +1 -1
- package/dist/PopoverDescription.js +1 -1
- package/dist/PopoverHeading.cjs +1 -1
- package/dist/PopoverHeading.js +1 -1
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +1 -1
- package/dist/{Preview-B8HyPnfR.cjs → Preview-2LWO1jPt.cjs} +1 -1
- package/dist/{Preview-CO6WSP5f.js → Preview-CEZQvDLk.js} +6 -6
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +7 -7
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +2 -2
- package/dist/QuattroCardsSection.cjs +1 -1
- package/dist/QuattroCardsSection.js +5 -5
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +3 -3
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +2 -2
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +2 -2
- package/dist/ReviewsSection.cjs +1 -1
- package/dist/ReviewsSection.js +6 -6
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +6 -6
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +2 -2
- package/dist/{SearchSection-BEYnWPSr.js → SearchSection-BQkugcbp.js} +17 -17
- package/dist/{SearchSection-DUY61r3k.cjs → SearchSection-CgbZsVg2.cjs} +2 -2
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +1 -1
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +2 -2
- package/dist/SeparatorSection.cjs +1 -1
- package/dist/SeparatorSection.js +2 -2
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +5 -5
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +2 -2
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +7 -7
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +6 -6
- package/dist/{SoundCloud-Cfaj1Ze1.js → SoundCloud-CK7NvImk.js} +13 -13
- package/dist/{SoundCloud-BsL6Onq6.cjs → SoundCloud-DVmlWv2g.cjs} +1 -1
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +2 -2
- package/dist/StatsSection.cjs +1 -1
- package/dist/StatsSection.js +3 -3
- package/dist/{Streamable-DFtyk9Dt.cjs → Streamable-BBV7DQsj.cjs} +1 -1
- package/dist/{Streamable-CG8_-_w7.js → Streamable-D5oxy9aa.js} +1 -1
- package/dist/Surface.cjs +1 -1
- package/dist/Surface.js +2 -2
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +2 -2
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +2 -2
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +5 -5
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +3 -3
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +2 -2
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +2 -2
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +3 -3
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +2 -2
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +2 -2
- package/dist/ToggleSection.cjs +1 -1
- package/dist/ToggleSection.js +3 -3
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +2 -2
- package/dist/{Twitch-BIUEEDiE.cjs → Twitch-CH7rLHNj.cjs} +1 -1
- package/dist/{Twitch-CbU_0Tx9.js → Twitch-DtrfG3Wo.js} +5 -5
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +2 -2
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +4 -4
- package/dist/{Vidyard-S6Fl_F78.js → Vidyard-C66crgMN.js} +1 -1
- package/dist/{Vidyard-QkjVIros.cjs → Vidyard-DGbMnWlF.cjs} +1 -1
- package/dist/{Vimeo-5bkeYCV4.js → Vimeo-BjGe7JPl.js} +1 -1
- package/dist/{Vimeo-B5jsifNT.cjs → Vimeo-DdFP5z1P.cjs} +1 -1
- package/dist/{Wistia-dpbMmx23.cjs → Wistia-CTuM5tqn.cjs} +1 -1
- package/dist/{Wistia-gOZBV0XZ.js → Wistia-Cnd0mYar.js} +3 -3
- package/dist/{YouTube-BfZRCB6O.cjs → YouTube-Chpmigf-.cjs} +1 -1
- package/dist/{YouTube-XoIB4ATQ.js → YouTube-D2wx0EoX.js} +3 -3
- package/dist/{breakpoints-ff0SIcV3.js → breakpoints-BubDitvo.js} +3 -3
- package/dist/emotion-is-prop-valid.esm-DqkrfvDp.js +10 -0
- package/dist/emotion-is-prop-valid.esm-eyvxYx3u.cjs +1 -0
- package/dist/{emotion-styled.browser.esm-BNN1dTl3.js → emotion-styled.browser.esm-DfbrHHed.js} +4 -4
- package/dist/{emotion-styled.browser.esm-BtEseadx.cjs → emotion-styled.browser.esm-DwHBgTPn.cjs} +1 -1
- package/dist/floating-ui.dom-Bvf9G8UM.cjs +1 -0
- package/dist/floating-ui.dom-C16Oktn3.js +959 -0
- package/dist/{floating-ui.react.esm-CfpRzwmn.js → floating-ui.react.esm-B-RMCmpu.js} +477 -460
- package/dist/floating-ui.react.esm-CsrI9PVk.cjs +4 -0
- package/dist/{index-vQOR22Py.cjs → index-3GKF_7BJ.cjs} +1 -1
- package/dist/{index-41nUb2kP.cjs → index-7Jsjuf-Q.cjs} +29 -29
- package/dist/{index-B1vKwsDE.js → index-B2yaYXE2.js} +651 -651
- package/dist/{index-DZFKpq77.cjs → index-BGNavrtB.cjs} +1 -1
- package/dist/{index-hC-E71GE.js → index-BHcrzV2G.js} +3 -3
- package/dist/{index-CsTfXxpp.cjs → index-Bj1KWOV4.cjs} +1 -1
- package/dist/{index-Cav6G7wx.cjs → index-BkztbBWe.cjs} +1 -1
- package/dist/{index-oYE1Pl7q.cjs → index-BsAddfgC.cjs} +1 -1
- package/dist/{index-C4HycAPS.js → index-CM6vzQBx.js} +4 -4
- package/dist/{index-C-uOIDDa.js → index-Cn4bq6ZX.js} +3 -3
- package/dist/{index-BWeXujWl.js → index-CuRcxKQH.js} +3 -3
- package/dist/{index-DA7SIHV1.cjs → index-CxWXiOMf.cjs} +1 -1
- package/dist/{index-B1-PjbTA.cjs → index-D4-_TrSn.cjs} +1 -1
- package/dist/{index-CBZ-jNah.cjs → index-D4OKsSqi.cjs} +1 -1
- package/dist/{index-4wvppFLx.js → index-DB1J-G6Z.js} +2 -2
- package/dist/{index-BvMY2TbK.js → index-DEypPQRI.js} +1 -1
- package/dist/{index-CX2A-q39.cjs → index-DMbNpyIV.cjs} +1 -1
- package/dist/{index-BdKi2ogu.js → index-DMmw5Ad5.js} +1 -1
- package/dist/{index-CoQ9APCD.js → index-DdfMcHz0.js} +2 -2
- package/dist/{index-B9c6y2J5.cjs → index-DgUNsgfF.cjs} +1 -1
- package/dist/{index-BzSWu-7v.js → index-Djo0ZcRE.js} +5 -5
- package/dist/{index-uCWKRzoS.cjs → index-DkPva6Gr.cjs} +1 -1
- package/dist/{index-BEUk0FDk.js → index-Dx2hfxCG.js} +4 -4
- package/dist/{index-B_ilx3wM.cjs → index-fzBXDy05.cjs} +1 -1
- package/dist/{index-DDShXLaW.js → index-gFZSZLba.js} +6 -6
- package/dist/{index-D9fI5BvI.js → index-jGcy-5M_.js} +3 -3
- package/dist/{index-L_Va5-wK.js → index-rhYVjszT.js} +5 -5
- package/dist/{index-Dc0EEBRW.cjs → index-tdg_Vmed.cjs} +1 -1
- package/dist/{index-6RFrSPs_.js → index-vz5mtWGo.js} +5 -5
- package/dist/index.cjs +1 -1
- package/dist/index.js +6 -6
- package/dist/{react-toastify.esm-BoMuFZcq.cjs → react-toastify.esm-C6GBR4r3.cjs} +1 -1
- package/dist/{react-toastify.esm-BLQznunb.js → react-toastify.esm-CUXbGoqt.js} +1 -1
- package/dist/{style-DC05rdyx.cjs → style-Boz6dk5s.cjs} +1 -1
- package/dist/{style-Bq3rMbnN.js → style-BzaX45du.js} +2 -2
- package/dist/{style-BUyFad_y.js → style-D54KOzZj.js} +3 -3
- package/dist/{style-AYc9hnFj.cjs → style-DIWAdlai.cjs} +1 -1
- package/dist/{style-BwQ4djFC.js → style-DvkivBNg.js} +1 -1
- package/dist/{style-BAcV7F53.cjs → style-Ito6YFqi.cjs} +1 -1
- package/dist/{styled-components.browser.esm-CvykQBGY.cjs → styled-components.browser.esm-BaNxtZgB.cjs} +1 -1
- package/dist/{styled-components.browser.esm-D-n22PJk.js → styled-components.browser.esm-Cfeh8eHg.js} +1 -1
- package/dist/{tag-Bi8gg6hJ.js → tag-CHNc7DhI.js} +2 -2
- package/dist/{tag-DSnhWWHE.cjs → tag-CWcvCQcz.cjs} +1 -1
- package/dist/{theme-Befg4g_L.js → theme-mUflS4q4.js} +1 -1
- package/dist/{useDetectMobile-CcVo3PNi.js → useDetectMobile-B0Jog4jQ.js} +1 -1
- package/dist/usePopover.cjs +1 -1
- package/dist/usePopover.js +6 -6
- package/dist/{utils-B2fsQ6PS.js → utils-MoGhNMmj.js} +3 -3
- package/package.json +1 -1
- package/dist/emotion-is-prop-valid.esm-BNsx9k19.cjs +0 -1
- package/dist/emotion-is-prop-valid.esm-CbWxtx4i.js +0 -10
- package/dist/floating-ui.dom-B931An3C.js +0 -954
- package/dist/floating-ui.dom-CN4MB7mG.cjs +0 -1
- package/dist/floating-ui.react.esm-CiYofNnh.cjs +0 -4
package/dist/DragAndDropFile.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as Ha, jsx as
|
|
2
|
-
import
|
|
3
|
-
import { s as Ra } from "./emotion-styled.browser.esm-
|
|
1
|
+
import { jsxs as Ha, jsx as oa, Fragment as ki } from "react/jsx-runtime";
|
|
2
|
+
import ji, { useMemo as J, useRef as Q, useReducer as Di, useEffect as la, useCallback as w, forwardRef as oi, useImperativeHandle as zi, Fragment as Ei, useState as Wa, cloneElement as Ai } from "react";
|
|
3
|
+
import { s as Ra } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
4
4
|
import Na from "./Icon.js";
|
|
5
|
-
import { P as
|
|
6
|
-
import { b as
|
|
7
|
-
import
|
|
8
|
-
import { c as Ua, m as
|
|
9
|
-
import { u as
|
|
10
|
-
const
|
|
5
|
+
import { P as s } from "./index-CblbdqjE.js";
|
|
6
|
+
import { b as B } from "./tslib.es6-DQ-SzcmG.js";
|
|
7
|
+
import Fi from "./Button.js";
|
|
8
|
+
import { c as Ua, m as Oi } from "./utils-MoGhNMmj.js";
|
|
9
|
+
import { u as _i } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
10
|
+
const Pi = /* @__PURE__ */ new Map([
|
|
11
11
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
12
12
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
13
13
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -1210,14 +1210,14 @@ const Oi = /* @__PURE__ */ new Map([
|
|
|
1210
1210
|
["zmm", "application/vnd.handheld-entertainment+xml"],
|
|
1211
1211
|
["zsh", "text/x-scriptzsh"]
|
|
1212
1212
|
]);
|
|
1213
|
-
function
|
|
1214
|
-
const n =
|
|
1215
|
-
return typeof n.path != "string" && Ya(n, "path",
|
|
1213
|
+
function X(a, i, t) {
|
|
1214
|
+
const n = Ci(a), { webkitRelativePath: e } = a, c = typeof i == "string" ? i : typeof e == "string" && e.length > 0 ? e : `./${a.name}`;
|
|
1215
|
+
return typeof n.path != "string" && Ya(n, "path", c), Ya(n, "relativePath", c), n;
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function Ci(a) {
|
|
1218
1218
|
const { name: i } = a;
|
|
1219
1219
|
if (i && i.lastIndexOf(".") !== -1 && !a.type) {
|
|
1220
|
-
const n = i.split(".").pop().toLowerCase(), e =
|
|
1220
|
+
const n = i.split(".").pop().toLowerCase(), e = Pi.get(n);
|
|
1221
1221
|
e && Object.defineProperty(a, "type", {
|
|
1222
1222
|
value: e,
|
|
1223
1223
|
writable: !1,
|
|
@@ -1235,49 +1235,49 @@ function Ya(a, i, t) {
|
|
|
1235
1235
|
enumerable: !0
|
|
1236
1236
|
});
|
|
1237
1237
|
}
|
|
1238
|
-
const
|
|
1238
|
+
const Si = [
|
|
1239
1239
|
// Thumbnail cache files for macOS and Windows
|
|
1240
1240
|
".DS_Store",
|
|
1241
1241
|
// macOs
|
|
1242
1242
|
"Thumbs.db"
|
|
1243
1243
|
// Windows
|
|
1244
1244
|
];
|
|
1245
|
-
function
|
|
1246
|
-
return
|
|
1247
|
-
return ba(a) &&
|
|
1245
|
+
function Ti(a) {
|
|
1246
|
+
return B(this, void 0, void 0, function* () {
|
|
1247
|
+
return ba(a) && qi(a.dataTransfer) ? $i(a.dataTransfer, a.type) : Ii(a) ? Ri(a) : Array.isArray(a) && a.every((i) => "getFile" in i && typeof i.getFile == "function") ? Li(a) : [];
|
|
1248
1248
|
});
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function qi(a) {
|
|
1251
1251
|
return ba(a);
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function Ii(a) {
|
|
1254
1254
|
return ba(a) && ba(a.target);
|
|
1255
1255
|
}
|
|
1256
1256
|
function ba(a) {
|
|
1257
1257
|
return typeof a == "object" && a !== null;
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return Ca(a.target.files).map((i) =>
|
|
1259
|
+
function Ri(a) {
|
|
1260
|
+
return Ca(a.target.files).map((i) => X(i));
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return
|
|
1264
|
-
return (yield Promise.all(a.map((t) => t.getFile()))).map((t) =>
|
|
1262
|
+
function Li(a) {
|
|
1263
|
+
return B(this, void 0, void 0, function* () {
|
|
1264
|
+
return (yield Promise.all(a.map((t) => t.getFile()))).map((t) => X(t));
|
|
1265
1265
|
});
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1268
|
-
return
|
|
1267
|
+
function $i(a, i) {
|
|
1268
|
+
return B(this, void 0, void 0, function* () {
|
|
1269
1269
|
if (a.items) {
|
|
1270
1270
|
const t = Ca(a.items).filter((e) => e.kind === "file");
|
|
1271
1271
|
if (i !== "drop")
|
|
1272
1272
|
return t;
|
|
1273
|
-
const n = yield Promise.all(t.map(
|
|
1274
|
-
return
|
|
1273
|
+
const n = yield Promise.all(t.map(Mi));
|
|
1274
|
+
return Va(ci(n));
|
|
1275
1275
|
}
|
|
1276
|
-
return
|
|
1276
|
+
return Va(Ca(a.files).map((t) => X(t)));
|
|
1277
1277
|
});
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1280
|
-
return a.filter((i) =>
|
|
1279
|
+
function Va(a) {
|
|
1280
|
+
return a.filter((i) => Si.indexOf(i.name) === -1);
|
|
1281
1281
|
}
|
|
1282
1282
|
function Ca(a) {
|
|
1283
1283
|
if (a === null)
|
|
@@ -1289,50 +1289,50 @@ function Ca(a) {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
return i;
|
|
1291
1291
|
}
|
|
1292
|
-
function
|
|
1292
|
+
function Mi(a) {
|
|
1293
1293
|
if (typeof a.webkitGetAsEntry != "function")
|
|
1294
|
-
return
|
|
1294
|
+
return Ja(a);
|
|
1295
1295
|
const i = a.webkitGetAsEntry();
|
|
1296
|
-
return i && i.isDirectory ?
|
|
1296
|
+
return i && i.isDirectory ? li(i) : Ja(a, i);
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function ci(a) {
|
|
1299
1299
|
return a.reduce((i, t) => [
|
|
1300
1300
|
...i,
|
|
1301
|
-
...Array.isArray(t) ?
|
|
1301
|
+
...Array.isArray(t) ? ci(t) : [t]
|
|
1302
1302
|
], []);
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return
|
|
1304
|
+
function Ja(a, i) {
|
|
1305
|
+
return B(this, void 0, void 0, function* () {
|
|
1306
1306
|
var t;
|
|
1307
1307
|
if (globalThis.isSecureContext && typeof a.getAsFileSystemHandle == "function") {
|
|
1308
|
-
const
|
|
1309
|
-
if (
|
|
1308
|
+
const c = yield a.getAsFileSystemHandle();
|
|
1309
|
+
if (c === null)
|
|
1310
1310
|
throw new Error(`${a} is not a File`);
|
|
1311
|
-
if (
|
|
1312
|
-
const l = yield
|
|
1313
|
-
return l.handle =
|
|
1311
|
+
if (c !== void 0) {
|
|
1312
|
+
const l = yield c.getFile();
|
|
1313
|
+
return l.handle = c, X(l);
|
|
1314
1314
|
}
|
|
1315
1315
|
}
|
|
1316
1316
|
const n = a.getAsFile();
|
|
1317
1317
|
if (!n)
|
|
1318
1318
|
throw new Error(`${a} is not a File`);
|
|
1319
|
-
return
|
|
1319
|
+
return X(n, (t = i == null ? void 0 : i.fullPath) !== null && t !== void 0 ? t : void 0);
|
|
1320
1320
|
});
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1323
|
-
return
|
|
1324
|
-
return a.isDirectory ?
|
|
1322
|
+
function Ki(a) {
|
|
1323
|
+
return B(this, void 0, void 0, function* () {
|
|
1324
|
+
return a.isDirectory ? li(a) : Gi(a);
|
|
1325
1325
|
});
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function li(a) {
|
|
1328
1328
|
const i = a.createReader();
|
|
1329
1329
|
return new Promise((t, n) => {
|
|
1330
1330
|
const e = [];
|
|
1331
|
-
function
|
|
1332
|
-
i.readEntries((l) =>
|
|
1331
|
+
function c() {
|
|
1332
|
+
i.readEntries((l) => B(this, void 0, void 0, function* () {
|
|
1333
1333
|
if (l.length) {
|
|
1334
|
-
const r = Promise.all(l.map(
|
|
1335
|
-
e.push(r),
|
|
1334
|
+
const r = Promise.all(l.map(Ki));
|
|
1335
|
+
e.push(r), c();
|
|
1336
1336
|
} else
|
|
1337
1337
|
try {
|
|
1338
1338
|
const r = yield Promise.all(e);
|
|
@@ -1344,14 +1344,14 @@ function oi(a) {
|
|
|
1344
1344
|
n(l);
|
|
1345
1345
|
});
|
|
1346
1346
|
}
|
|
1347
|
-
|
|
1347
|
+
c();
|
|
1348
1348
|
});
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1351
|
-
return
|
|
1350
|
+
function Gi(a) {
|
|
1351
|
+
return B(this, void 0, void 0, function* () {
|
|
1352
1352
|
return new Promise((i, t) => {
|
|
1353
1353
|
a.file((n) => {
|
|
1354
|
-
const e =
|
|
1354
|
+
const e = X(n, a.fullPath);
|
|
1355
1355
|
i(e);
|
|
1356
1356
|
}, (n) => {
|
|
1357
1357
|
t(n);
|
|
@@ -1364,28 +1364,28 @@ var _a = function(a, i) {
|
|
|
1364
1364
|
var t = Array.isArray(i) ? i : i.split(",");
|
|
1365
1365
|
if (t.length === 0)
|
|
1366
1366
|
return !0;
|
|
1367
|
-
var n = a.name || "", e = (a.type || "").toLowerCase(),
|
|
1367
|
+
var n = a.name || "", e = (a.type || "").toLowerCase(), c = e.replace(/\/.*$/, "");
|
|
1368
1368
|
return t.some(function(l) {
|
|
1369
1369
|
var r = l.trim().toLowerCase();
|
|
1370
|
-
return r.charAt(0) === "." ? n.toLowerCase().endsWith(r) : r.endsWith("/*") ?
|
|
1370
|
+
return r.charAt(0) === "." ? n.toLowerCase().endsWith(r) : r.endsWith("/*") ? c === r.replace(/\/.*$/, "") : e === r;
|
|
1371
1371
|
});
|
|
1372
1372
|
}
|
|
1373
1373
|
return !0;
|
|
1374
1374
|
};
|
|
1375
|
-
function
|
|
1376
|
-
return
|
|
1375
|
+
function Qa(a) {
|
|
1376
|
+
return Wi(a) || Hi(a) || si(a) || Bi();
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function Bi() {
|
|
1379
1379
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1380
1380
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function Hi(a) {
|
|
1383
1383
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1385
|
+
function Wi(a) {
|
|
1386
1386
|
if (Array.isArray(a)) return Sa(a);
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function Xa(a, i) {
|
|
1389
1389
|
var t = Object.keys(a);
|
|
1390
1390
|
if (Object.getOwnPropertySymbols) {
|
|
1391
1391
|
var n = Object.getOwnPropertySymbols(a);
|
|
@@ -1395,28 +1395,28 @@ function Qa(a, i) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
return t;
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function Za(a) {
|
|
1399
1399
|
for (var i = 1; i < arguments.length; i++) {
|
|
1400
1400
|
var t = arguments[i] != null ? arguments[i] : {};
|
|
1401
|
-
i % 2 ?
|
|
1402
|
-
|
|
1403
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
1401
|
+
i % 2 ? Xa(Object(t), !0).forEach(function(n) {
|
|
1402
|
+
ri(a, n, t[n]);
|
|
1403
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Xa(Object(t)).forEach(function(n) {
|
|
1404
1404
|
Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1405
1405
|
});
|
|
1406
1406
|
}
|
|
1407
1407
|
return a;
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function ri(a, i, t) {
|
|
1410
1410
|
return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1413
|
-
return
|
|
1412
|
+
function ra(a, i) {
|
|
1413
|
+
return Yi(a) || Ui(a, i) || si(a, i) || Ni();
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function Ni() {
|
|
1416
1416
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1417
1417
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function si(a, i) {
|
|
1420
1420
|
if (a) {
|
|
1421
1421
|
if (typeof a == "string") return Sa(a, i);
|
|
1422
1422
|
var t = Object.prototype.toString.call(a).slice(8, -1);
|
|
@@ -1430,116 +1430,119 @@ function Sa(a, i) {
|
|
|
1430
1430
|
n[t] = a[t];
|
|
1431
1431
|
return n;
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function Ui(a, i) {
|
|
1434
1434
|
var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
1435
1435
|
if (t != null) {
|
|
1436
|
-
var n = [], e = !0,
|
|
1436
|
+
var n = [], e = !0, c = !1, l, r;
|
|
1437
1437
|
try {
|
|
1438
1438
|
for (t = t.call(a); !(e = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); e = !0)
|
|
1439
1439
|
;
|
|
1440
|
-
} catch (
|
|
1441
|
-
|
|
1440
|
+
} catch (y) {
|
|
1441
|
+
c = !0, r = y;
|
|
1442
1442
|
} finally {
|
|
1443
1443
|
try {
|
|
1444
1444
|
!e && t.return != null && t.return();
|
|
1445
1445
|
} finally {
|
|
1446
|
-
if (
|
|
1446
|
+
if (c) throw r;
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
1449
|
return n;
|
|
1450
1450
|
}
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1452
|
+
function Yi(a) {
|
|
1453
1453
|
if (Array.isArray(a)) return a;
|
|
1454
1454
|
}
|
|
1455
|
-
var
|
|
1455
|
+
var Vi = typeof _a == "function" ? _a : _a.default, Ji = "file-invalid-type", Qi = "file-too-large", Xi = "file-too-small", Zi = "too-many-files", at = function() {
|
|
1456
1456
|
var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = i.split(","), n = t.length > 1 ? "one of ".concat(t.join(", ")) : t[0];
|
|
1457
1457
|
return {
|
|
1458
|
-
code:
|
|
1458
|
+
code: Ji,
|
|
1459
1459
|
message: "File type must be ".concat(n)
|
|
1460
1460
|
};
|
|
1461
|
-
},
|
|
1461
|
+
}, ai = function(i) {
|
|
1462
1462
|
return {
|
|
1463
|
-
code:
|
|
1463
|
+
code: Qi,
|
|
1464
1464
|
message: "File is larger than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
|
|
1465
1465
|
};
|
|
1466
|
-
},
|
|
1466
|
+
}, ii = function(i) {
|
|
1467
1467
|
return {
|
|
1468
|
-
code:
|
|
1468
|
+
code: Xi,
|
|
1469
1469
|
message: "File is smaller than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
|
|
1470
1470
|
};
|
|
1471
|
-
},
|
|
1472
|
-
code:
|
|
1471
|
+
}, it = {
|
|
1472
|
+
code: Zi,
|
|
1473
1473
|
message: "Too many files"
|
|
1474
1474
|
};
|
|
1475
|
-
function
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1475
|
+
function tt(a) {
|
|
1476
|
+
return a.type === "" && typeof a.getAsFile == "function";
|
|
1477
|
+
}
|
|
1478
|
+
function di(a, i) {
|
|
1479
|
+
var t = a.type === "application/x-moz-file" || Vi(a, i) || tt(a);
|
|
1480
|
+
return [t, t ? null : at(i)];
|
|
1481
|
+
}
|
|
1482
|
+
function mi(a, i, t) {
|
|
1483
|
+
if (G(a.size))
|
|
1484
|
+
if (G(i) && G(t)) {
|
|
1485
|
+
if (a.size > t) return [!1, ai(t)];
|
|
1486
|
+
if (a.size < i) return [!1, ii(i)];
|
|
1484
1487
|
} else {
|
|
1485
|
-
if (
|
|
1486
|
-
if (
|
|
1488
|
+
if (G(i) && a.size < i) return [!1, ii(i)];
|
|
1489
|
+
if (G(t) && a.size > t) return [!1, ai(t)];
|
|
1487
1490
|
}
|
|
1488
1491
|
return [!0, null];
|
|
1489
1492
|
}
|
|
1490
|
-
function
|
|
1493
|
+
function G(a) {
|
|
1491
1494
|
return a != null;
|
|
1492
1495
|
}
|
|
1493
|
-
function
|
|
1494
|
-
var i = a.files, t = a.accept, n = a.minSize, e = a.maxSize,
|
|
1495
|
-
return !
|
|
1496
|
-
var D =
|
|
1497
|
-
return
|
|
1496
|
+
function nt(a) {
|
|
1497
|
+
var i = a.files, t = a.accept, n = a.minSize, e = a.maxSize, c = a.multiple, l = a.maxFiles, r = a.validator;
|
|
1498
|
+
return !c && i.length > 1 || c && l >= 1 && i.length > l ? !1 : i.every(function(y) {
|
|
1499
|
+
var D = di(y, t), S = ra(D, 1), O = S[0], T = mi(y, n, e), q = ra(T, 1), z = q[0], P = r ? r(y) : null;
|
|
1500
|
+
return O && z && !P;
|
|
1498
1501
|
});
|
|
1499
1502
|
}
|
|
1500
1503
|
function ha(a) {
|
|
1501
1504
|
return typeof a.isPropagationStopped == "function" ? a.isPropagationStopped() : typeof a.cancelBubble < "u" ? a.cancelBubble : !1;
|
|
1502
1505
|
}
|
|
1503
|
-
function
|
|
1506
|
+
function ca(a) {
|
|
1504
1507
|
return a.dataTransfer ? Array.prototype.some.call(a.dataTransfer.types, function(i) {
|
|
1505
1508
|
return i === "Files" || i === "application/x-moz-file";
|
|
1506
1509
|
}) : !!a.target && !!a.target.files;
|
|
1507
1510
|
}
|
|
1508
|
-
function
|
|
1511
|
+
function ti(a) {
|
|
1509
1512
|
a.preventDefault();
|
|
1510
1513
|
}
|
|
1511
|
-
function
|
|
1514
|
+
function et(a) {
|
|
1512
1515
|
return a.indexOf("MSIE") !== -1 || a.indexOf("Trident/") !== -1;
|
|
1513
1516
|
}
|
|
1514
|
-
function
|
|
1517
|
+
function pt(a) {
|
|
1515
1518
|
return a.indexOf("Edge/") !== -1;
|
|
1516
1519
|
}
|
|
1517
|
-
function
|
|
1520
|
+
function ot() {
|
|
1518
1521
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
1519
|
-
return
|
|
1522
|
+
return et(a) || pt(a);
|
|
1520
1523
|
}
|
|
1521
|
-
function
|
|
1524
|
+
function F() {
|
|
1522
1525
|
for (var a = arguments.length, i = new Array(a), t = 0; t < a; t++)
|
|
1523
1526
|
i[t] = arguments[t];
|
|
1524
1527
|
return function(n) {
|
|
1525
|
-
for (var e = arguments.length,
|
|
1526
|
-
|
|
1528
|
+
for (var e = arguments.length, c = new Array(e > 1 ? e - 1 : 0), l = 1; l < e; l++)
|
|
1529
|
+
c[l - 1] = arguments[l];
|
|
1527
1530
|
return i.some(function(r) {
|
|
1528
|
-
return !ha(n) && r && r.apply(void 0, [n].concat(
|
|
1531
|
+
return !ha(n) && r && r.apply(void 0, [n].concat(c)), ha(n);
|
|
1529
1532
|
});
|
|
1530
1533
|
};
|
|
1531
1534
|
}
|
|
1532
|
-
function
|
|
1535
|
+
function ct() {
|
|
1533
1536
|
return "showOpenFilePicker" in window;
|
|
1534
1537
|
}
|
|
1535
|
-
function
|
|
1536
|
-
if (
|
|
1538
|
+
function lt(a) {
|
|
1539
|
+
if (G(a)) {
|
|
1537
1540
|
var i = Object.entries(a).filter(function(t) {
|
|
1538
|
-
var n =
|
|
1539
|
-
return
|
|
1541
|
+
var n = ra(t, 2), e = n[0], c = n[1], l = !0;
|
|
1542
|
+
return ui(e) || (console.warn('Skipped "'.concat(e, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), l = !1), (!Array.isArray(c) || !c.every(vi)) && (console.warn('Skipped "'.concat(e, '" because an invalid file extension was provided.')), l = !1), l;
|
|
1540
1543
|
}).reduce(function(t, n) {
|
|
1541
|
-
var e =
|
|
1542
|
-
return
|
|
1544
|
+
var e = ra(n, 2), c = e[0], l = e[1];
|
|
1545
|
+
return Za(Za({}, t), {}, ri({}, c, l));
|
|
1543
1546
|
}, {});
|
|
1544
1547
|
return [{
|
|
1545
1548
|
// description is required due to https://crbug.com/1264708
|
|
@@ -1549,49 +1552,49 @@ function pt(a) {
|
|
|
1549
1552
|
}
|
|
1550
1553
|
return a;
|
|
1551
1554
|
}
|
|
1552
|
-
function
|
|
1553
|
-
if (
|
|
1555
|
+
function rt(a) {
|
|
1556
|
+
if (G(a))
|
|
1554
1557
|
return Object.entries(a).reduce(function(i, t) {
|
|
1555
|
-
var n =
|
|
1556
|
-
return [].concat(
|
|
1558
|
+
var n = ra(t, 2), e = n[0], c = n[1];
|
|
1559
|
+
return [].concat(Qa(i), [e], Qa(c));
|
|
1557
1560
|
}, []).filter(function(i) {
|
|
1558
|
-
return
|
|
1561
|
+
return ui(i) || vi(i);
|
|
1559
1562
|
}).join(",");
|
|
1560
1563
|
}
|
|
1561
|
-
function
|
|
1564
|
+
function st(a) {
|
|
1562
1565
|
return a instanceof DOMException && (a.name === "AbortError" || a.code === a.ABORT_ERR);
|
|
1563
1566
|
}
|
|
1564
|
-
function
|
|
1567
|
+
function dt(a) {
|
|
1565
1568
|
return a instanceof DOMException && (a.name === "SecurityError" || a.code === a.SECURITY_ERR);
|
|
1566
1569
|
}
|
|
1567
|
-
function
|
|
1570
|
+
function ui(a) {
|
|
1568
1571
|
return a === "audio/*" || a === "video/*" || a === "image/*" || a === "text/*" || a === "application/*" || /\w+\/[-+.\w]+/g.test(a);
|
|
1569
1572
|
}
|
|
1570
|
-
function
|
|
1573
|
+
function vi(a) {
|
|
1571
1574
|
return /^.*\.[\w]+$/.test(a);
|
|
1572
1575
|
}
|
|
1573
|
-
var
|
|
1574
|
-
function
|
|
1575
|
-
return
|
|
1576
|
+
var mt = ["children"], ut = ["open"], vt = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], ft = ["refKey", "onChange", "onClick"];
|
|
1577
|
+
function ni(a) {
|
|
1578
|
+
return bt(a) || gt(a) || fi(a) || xt();
|
|
1576
1579
|
}
|
|
1577
|
-
function
|
|
1580
|
+
function xt() {
|
|
1578
1581
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1579
1582
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1580
1583
|
}
|
|
1581
|
-
function
|
|
1584
|
+
function gt(a) {
|
|
1582
1585
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
1583
1586
|
}
|
|
1584
|
-
function
|
|
1587
|
+
function bt(a) {
|
|
1585
1588
|
if (Array.isArray(a)) return Ta(a);
|
|
1586
1589
|
}
|
|
1587
1590
|
function Pa(a, i) {
|
|
1588
|
-
return
|
|
1591
|
+
return wt(a) || yt(a, i) || fi(a, i) || ht();
|
|
1589
1592
|
}
|
|
1590
|
-
function
|
|
1593
|
+
function ht() {
|
|
1591
1594
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1592
1595
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1593
1596
|
}
|
|
1594
|
-
function
|
|
1597
|
+
function fi(a, i) {
|
|
1595
1598
|
if (a) {
|
|
1596
1599
|
if (typeof a == "string") return Ta(a, i);
|
|
1597
1600
|
var t = Object.prototype.toString.call(a).slice(8, -1);
|
|
@@ -1605,29 +1608,29 @@ function Ta(a, i) {
|
|
|
1605
1608
|
n[t] = a[t];
|
|
1606
1609
|
return n;
|
|
1607
1610
|
}
|
|
1608
|
-
function
|
|
1611
|
+
function yt(a, i) {
|
|
1609
1612
|
var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
1610
1613
|
if (t != null) {
|
|
1611
|
-
var n = [], e = !0,
|
|
1614
|
+
var n = [], e = !0, c = !1, l, r;
|
|
1612
1615
|
try {
|
|
1613
1616
|
for (t = t.call(a); !(e = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); e = !0)
|
|
1614
1617
|
;
|
|
1615
|
-
} catch (
|
|
1616
|
-
|
|
1618
|
+
} catch (y) {
|
|
1619
|
+
c = !0, r = y;
|
|
1617
1620
|
} finally {
|
|
1618
1621
|
try {
|
|
1619
1622
|
!e && t.return != null && t.return();
|
|
1620
1623
|
} finally {
|
|
1621
|
-
if (
|
|
1624
|
+
if (c) throw r;
|
|
1622
1625
|
}
|
|
1623
1626
|
}
|
|
1624
1627
|
return n;
|
|
1625
1628
|
}
|
|
1626
1629
|
}
|
|
1627
|
-
function
|
|
1630
|
+
function wt(a) {
|
|
1628
1631
|
if (Array.isArray(a)) return a;
|
|
1629
1632
|
}
|
|
1630
|
-
function
|
|
1633
|
+
function ei(a, i) {
|
|
1631
1634
|
var t = Object.keys(a);
|
|
1632
1635
|
if (Object.getOwnPropertySymbols) {
|
|
1633
1636
|
var n = Object.getOwnPropertySymbols(a);
|
|
@@ -1640,9 +1643,9 @@ function ti(a, i) {
|
|
|
1640
1643
|
function m(a) {
|
|
1641
1644
|
for (var i = 1; i < arguments.length; i++) {
|
|
1642
1645
|
var t = arguments[i] != null ? arguments[i] : {};
|
|
1643
|
-
i % 2 ?
|
|
1646
|
+
i % 2 ? ei(Object(t), !0).forEach(function(n) {
|
|
1644
1647
|
qa(a, n, t[n]);
|
|
1645
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
1648
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : ei(Object(t)).forEach(function(n) {
|
|
1646
1649
|
Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1647
1650
|
});
|
|
1648
1651
|
}
|
|
@@ -1653,35 +1656,35 @@ function qa(a, i, t) {
|
|
|
1653
1656
|
}
|
|
1654
1657
|
function ya(a, i) {
|
|
1655
1658
|
if (a == null) return {};
|
|
1656
|
-
var t =
|
|
1659
|
+
var t = kt(a, i), n, e;
|
|
1657
1660
|
if (Object.getOwnPropertySymbols) {
|
|
1658
|
-
var
|
|
1659
|
-
for (e = 0; e <
|
|
1660
|
-
n =
|
|
1661
|
+
var c = Object.getOwnPropertySymbols(a);
|
|
1662
|
+
for (e = 0; e < c.length; e++)
|
|
1663
|
+
n = c[e], !(i.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(a, n) && (t[n] = a[n]);
|
|
1661
1664
|
}
|
|
1662
1665
|
return t;
|
|
1663
1666
|
}
|
|
1664
|
-
function
|
|
1667
|
+
function kt(a, i) {
|
|
1665
1668
|
if (a == null) return {};
|
|
1666
|
-
var t = {}, n = Object.keys(a), e,
|
|
1667
|
-
for (
|
|
1668
|
-
e = n[
|
|
1669
|
+
var t = {}, n = Object.keys(a), e, c;
|
|
1670
|
+
for (c = 0; c < n.length; c++)
|
|
1671
|
+
e = n[c], !(i.indexOf(e) >= 0) && (t[e] = a[e]);
|
|
1669
1672
|
return t;
|
|
1670
1673
|
}
|
|
1671
|
-
var La = /* @__PURE__ */
|
|
1672
|
-
var t = a.children, n = ya(a,
|
|
1673
|
-
return
|
|
1674
|
+
var La = /* @__PURE__ */ oi(function(a, i) {
|
|
1675
|
+
var t = a.children, n = ya(a, mt), e = gi(n), c = e.open, l = ya(e, ut);
|
|
1676
|
+
return zi(i, function() {
|
|
1674
1677
|
return {
|
|
1675
|
-
open:
|
|
1678
|
+
open: c
|
|
1676
1679
|
};
|
|
1677
|
-
}, [
|
|
1678
|
-
open:
|
|
1680
|
+
}, [c]), /* @__PURE__ */ ji.createElement(Ei, null, t(m(m({}, l), {}, {
|
|
1681
|
+
open: c
|
|
1679
1682
|
})));
|
|
1680
1683
|
});
|
|
1681
1684
|
La.displayName = "Dropzone";
|
|
1682
|
-
var
|
|
1685
|
+
var xi = {
|
|
1683
1686
|
disabled: !1,
|
|
1684
|
-
getFilesFromEvent:
|
|
1687
|
+
getFilesFromEvent: Ti,
|
|
1685
1688
|
maxSize: 1 / 0,
|
|
1686
1689
|
minSize: 0,
|
|
1687
1690
|
multiple: !0,
|
|
@@ -1695,7 +1698,7 @@ var vi = {
|
|
|
1695
1698
|
useFsAccessApi: !1,
|
|
1696
1699
|
autoFocus: !1
|
|
1697
1700
|
};
|
|
1698
|
-
La.defaultProps =
|
|
1701
|
+
La.defaultProps = xi;
|
|
1699
1702
|
La.propTypes = {
|
|
1700
1703
|
/**
|
|
1701
1704
|
* Render function that exposes the dropzone state and prop getter fns
|
|
@@ -1709,10 +1712,11 @@ La.propTypes = {
|
|
|
1709
1712
|
* @param {boolean} params.isDragActive Active drag is in progress
|
|
1710
1713
|
* @param {boolean} params.isDragAccept Dragged files are accepted
|
|
1711
1714
|
* @param {boolean} params.isDragReject Some dragged files are rejected
|
|
1715
|
+
* @param {boolean} params.isDragGlobal Files are being dragged anywhere on the document
|
|
1712
1716
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
1713
1717
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
1714
1718
|
*/
|
|
1715
|
-
children:
|
|
1719
|
+
children: s.func,
|
|
1716
1720
|
/**
|
|
1717
1721
|
* Set accepted file types.
|
|
1718
1722
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -1720,90 +1724,90 @@ La.propTypes = {
|
|
|
1720
1724
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
1721
1725
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
1722
1726
|
*/
|
|
1723
|
-
accept:
|
|
1727
|
+
accept: s.objectOf(s.arrayOf(s.string)),
|
|
1724
1728
|
/**
|
|
1725
1729
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
1726
1730
|
*/
|
|
1727
|
-
multiple:
|
|
1731
|
+
multiple: s.bool,
|
|
1728
1732
|
/**
|
|
1729
1733
|
* If false, allow dropped items to take over the current browser window
|
|
1730
1734
|
*/
|
|
1731
|
-
preventDropOnDocument:
|
|
1735
|
+
preventDropOnDocument: s.bool,
|
|
1732
1736
|
/**
|
|
1733
1737
|
* If true, disables click to open the native file selection dialog
|
|
1734
1738
|
*/
|
|
1735
|
-
noClick:
|
|
1739
|
+
noClick: s.bool,
|
|
1736
1740
|
/**
|
|
1737
1741
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
1738
1742
|
* Note that it also stops tracking the focus state.
|
|
1739
1743
|
*/
|
|
1740
|
-
noKeyboard:
|
|
1744
|
+
noKeyboard: s.bool,
|
|
1741
1745
|
/**
|
|
1742
1746
|
* If true, disables drag 'n' drop
|
|
1743
1747
|
*/
|
|
1744
|
-
noDrag:
|
|
1748
|
+
noDrag: s.bool,
|
|
1745
1749
|
/**
|
|
1746
1750
|
* If true, stops drag event propagation to parents
|
|
1747
1751
|
*/
|
|
1748
|
-
noDragEventsBubbling:
|
|
1752
|
+
noDragEventsBubbling: s.bool,
|
|
1749
1753
|
/**
|
|
1750
1754
|
* Minimum file size (in bytes)
|
|
1751
1755
|
*/
|
|
1752
|
-
minSize:
|
|
1756
|
+
minSize: s.number,
|
|
1753
1757
|
/**
|
|
1754
1758
|
* Maximum file size (in bytes)
|
|
1755
1759
|
*/
|
|
1756
|
-
maxSize:
|
|
1760
|
+
maxSize: s.number,
|
|
1757
1761
|
/**
|
|
1758
1762
|
* Maximum accepted number of files
|
|
1759
1763
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
1760
1764
|
*/
|
|
1761
|
-
maxFiles:
|
|
1765
|
+
maxFiles: s.number,
|
|
1762
1766
|
/**
|
|
1763
1767
|
* Enable/disable the dropzone
|
|
1764
1768
|
*/
|
|
1765
|
-
disabled:
|
|
1769
|
+
disabled: s.bool,
|
|
1766
1770
|
/**
|
|
1767
1771
|
* Use this to provide a custom file aggregator
|
|
1768
1772
|
*
|
|
1769
1773
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
1770
1774
|
*/
|
|
1771
|
-
getFilesFromEvent:
|
|
1775
|
+
getFilesFromEvent: s.func,
|
|
1772
1776
|
/**
|
|
1773
1777
|
* Cb for when closing the file dialog with no selection
|
|
1774
1778
|
*/
|
|
1775
|
-
onFileDialogCancel:
|
|
1779
|
+
onFileDialogCancel: s.func,
|
|
1776
1780
|
/**
|
|
1777
1781
|
* Cb for when opening the file dialog
|
|
1778
1782
|
*/
|
|
1779
|
-
onFileDialogOpen:
|
|
1783
|
+
onFileDialogOpen: s.func,
|
|
1780
1784
|
/**
|
|
1781
1785
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
1782
1786
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
1783
1787
|
*/
|
|
1784
|
-
useFsAccessApi:
|
|
1788
|
+
useFsAccessApi: s.bool,
|
|
1785
1789
|
/**
|
|
1786
1790
|
* Set to true to focus the root element on render
|
|
1787
1791
|
*/
|
|
1788
|
-
autoFocus:
|
|
1792
|
+
autoFocus: s.bool,
|
|
1789
1793
|
/**
|
|
1790
1794
|
* Cb for when the `dragenter` event occurs.
|
|
1791
1795
|
*
|
|
1792
1796
|
* @param {DragEvent} event
|
|
1793
1797
|
*/
|
|
1794
|
-
onDragEnter:
|
|
1798
|
+
onDragEnter: s.func,
|
|
1795
1799
|
/**
|
|
1796
1800
|
* Cb for when the `dragleave` event occurs
|
|
1797
1801
|
*
|
|
1798
1802
|
* @param {DragEvent} event
|
|
1799
1803
|
*/
|
|
1800
|
-
onDragLeave:
|
|
1804
|
+
onDragLeave: s.func,
|
|
1801
1805
|
/**
|
|
1802
1806
|
* Cb for when the `dragover` event occurs
|
|
1803
1807
|
*
|
|
1804
1808
|
* @param {DragEvent} event
|
|
1805
1809
|
*/
|
|
1806
|
-
onDragOver:
|
|
1810
|
+
onDragOver: s.func,
|
|
1807
1811
|
/**
|
|
1808
1812
|
* Cb for when the `drop` event occurs.
|
|
1809
1813
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -1834,7 +1838,7 @@ La.propTypes = {
|
|
|
1834
1838
|
* @param {FileRejection[]} fileRejections
|
|
1835
1839
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
1836
1840
|
*/
|
|
1837
|
-
onDrop:
|
|
1841
|
+
onDrop: s.func,
|
|
1838
1842
|
/**
|
|
1839
1843
|
* Cb for when the `drop` event occurs.
|
|
1840
1844
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -1842,7 +1846,7 @@ La.propTypes = {
|
|
|
1842
1846
|
* @param {File[]} files
|
|
1843
1847
|
* @param {(DragEvent|Event)} event
|
|
1844
1848
|
*/
|
|
1845
|
-
onDropAccepted:
|
|
1849
|
+
onDropAccepted: s.func,
|
|
1846
1850
|
/**
|
|
1847
1851
|
* Cb for when the `drop` event occurs.
|
|
1848
1852
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -1850,19 +1854,19 @@ La.propTypes = {
|
|
|
1850
1854
|
* @param {FileRejection[]} fileRejections
|
|
1851
1855
|
* @param {(DragEvent|Event)} event
|
|
1852
1856
|
*/
|
|
1853
|
-
onDropRejected:
|
|
1857
|
+
onDropRejected: s.func,
|
|
1854
1858
|
/**
|
|
1855
1859
|
* Cb for when there's some error from any of the promises.
|
|
1856
1860
|
*
|
|
1857
1861
|
* @param {Error} error
|
|
1858
1862
|
*/
|
|
1859
|
-
onError:
|
|
1863
|
+
onError: s.func,
|
|
1860
1864
|
/**
|
|
1861
1865
|
* Custom validation function. It must return null if there's no errors.
|
|
1862
1866
|
* @param {File} file
|
|
1863
1867
|
* @returns {FileError|FileError[]|null}
|
|
1864
1868
|
*/
|
|
1865
|
-
validator:
|
|
1869
|
+
validator: s.func
|
|
1866
1870
|
};
|
|
1867
1871
|
var Ia = {
|
|
1868
1872
|
isFocused: !1,
|
|
@@ -1870,190 +1874,218 @@ var Ia = {
|
|
|
1870
1874
|
isDragActive: !1,
|
|
1871
1875
|
isDragAccept: !1,
|
|
1872
1876
|
isDragReject: !1,
|
|
1877
|
+
isDragGlobal: !1,
|
|
1873
1878
|
acceptedFiles: [],
|
|
1874
1879
|
fileRejections: []
|
|
1875
1880
|
};
|
|
1876
|
-
function
|
|
1877
|
-
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = m(m({},
|
|
1878
|
-
return
|
|
1879
|
-
}, [t]),
|
|
1880
|
-
return
|
|
1881
|
-
}, [t]),
|
|
1882
|
-
return typeof
|
|
1883
|
-
}, [
|
|
1884
|
-
return typeof
|
|
1885
|
-
}, [
|
|
1886
|
-
!
|
|
1887
|
-
if (
|
|
1888
|
-
var
|
|
1889
|
-
|
|
1881
|
+
function gi() {
|
|
1882
|
+
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = m(m({}, xi), a), t = i.accept, n = i.disabled, e = i.getFilesFromEvent, c = i.maxSize, l = i.minSize, r = i.multiple, y = i.maxFiles, D = i.onDragEnter, S = i.onDragLeave, O = i.onDragOver, T = i.onDrop, q = i.onDropAccepted, z = i.onDropRejected, P = i.onFileDialogCancel, H = i.onFileDialogOpen, Z = i.useFsAccessApi, aa = i.autoFocus, W = i.preventDropOnDocument, I = i.noClick, ia = i.noKeyboard, ta = i.noDrag, k = i.noDragEventsBubbling, R = i.onError, L = i.validator, $ = J(function() {
|
|
1883
|
+
return rt(t);
|
|
1884
|
+
}, [t]), sa = J(function() {
|
|
1885
|
+
return lt(t);
|
|
1886
|
+
}, [t]), N = J(function() {
|
|
1887
|
+
return typeof H == "function" ? H : pi;
|
|
1888
|
+
}, [H]), M = J(function() {
|
|
1889
|
+
return typeof P == "function" ? P : pi;
|
|
1890
|
+
}, [P]), f = Q(null), b = Q(null), da = Di(jt, Ia), na = Pa(da, 2), ea = na[0], g = na[1], wa = ea.isFocused, pa = ea.isFileDialogActive, U = Q(typeof window < "u" && window.isSecureContext && Z && ct()), ma = function() {
|
|
1891
|
+
!U.current && pa && setTimeout(function() {
|
|
1892
|
+
if (b.current) {
|
|
1893
|
+
var o = b.current.files;
|
|
1894
|
+
o.length || (g({
|
|
1890
1895
|
type: "closeDialog"
|
|
1891
|
-
}),
|
|
1896
|
+
}), M());
|
|
1892
1897
|
}
|
|
1893
1898
|
}, 300);
|
|
1894
1899
|
};
|
|
1895
|
-
|
|
1896
|
-
return window.addEventListener("focus",
|
|
1897
|
-
window.removeEventListener("focus",
|
|
1900
|
+
la(function() {
|
|
1901
|
+
return window.addEventListener("focus", ma, !1), function() {
|
|
1902
|
+
window.removeEventListener("focus", ma, !1);
|
|
1898
1903
|
};
|
|
1899
|
-
}, [
|
|
1900
|
-
var
|
|
1901
|
-
|
|
1904
|
+
}, [b, pa, M, U]);
|
|
1905
|
+
var C = Q([]), E = Q([]), d = function(o) {
|
|
1906
|
+
f.current && f.current.contains(o.target) || (o.preventDefault(), C.current = []);
|
|
1902
1907
|
};
|
|
1903
|
-
|
|
1904
|
-
return
|
|
1905
|
-
|
|
1908
|
+
la(function() {
|
|
1909
|
+
return W && (document.addEventListener("dragover", ti, !1), document.addEventListener("drop", d, !1)), function() {
|
|
1910
|
+
W && (document.removeEventListener("dragover", ti), document.removeEventListener("drop", d));
|
|
1906
1911
|
};
|
|
1907
|
-
}, [
|
|
1908
|
-
|
|
1912
|
+
}, [f, W]), la(function() {
|
|
1913
|
+
var p = function(A) {
|
|
1914
|
+
E.current = [].concat(ni(E.current), [A.target]), ca(A) && g({
|
|
1915
|
+
isDragGlobal: !0,
|
|
1916
|
+
type: "setDragGlobal"
|
|
1917
|
+
});
|
|
1918
|
+
}, o = function(A) {
|
|
1919
|
+
E.current = E.current.filter(function(_) {
|
|
1920
|
+
return _ !== A.target && _ !== null;
|
|
1921
|
+
}), !(E.current.length > 0) && g({
|
|
1922
|
+
isDragGlobal: !1,
|
|
1923
|
+
type: "setDragGlobal"
|
|
1924
|
+
});
|
|
1925
|
+
}, v = function() {
|
|
1926
|
+
E.current = [], g({
|
|
1927
|
+
isDragGlobal: !1,
|
|
1928
|
+
type: "setDragGlobal"
|
|
1929
|
+
});
|
|
1930
|
+
}, x = function() {
|
|
1931
|
+
E.current = [], g({
|
|
1932
|
+
isDragGlobal: !1,
|
|
1933
|
+
type: "setDragGlobal"
|
|
1934
|
+
});
|
|
1909
1935
|
};
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
}, [
|
|
1914
|
-
|
|
1936
|
+
return document.addEventListener("dragenter", p, !1), document.addEventListener("dragleave", o, !1), document.addEventListener("dragend", v, !1), document.addEventListener("drop", x, !1), function() {
|
|
1937
|
+
document.removeEventListener("dragenter", p), document.removeEventListener("dragleave", o), document.removeEventListener("dragend", v), document.removeEventListener("drop", x);
|
|
1938
|
+
};
|
|
1939
|
+
}, [f]), la(function() {
|
|
1940
|
+
return !n && aa && f.current && f.current.focus(), function() {
|
|
1941
|
+
};
|
|
1942
|
+
}, [f, aa, n]);
|
|
1943
|
+
var u = w(function(p) {
|
|
1944
|
+
R ? R(p) : console.error(p);
|
|
1945
|
+
}, [R]), j = w(function(p) {
|
|
1946
|
+
p.preventDefault(), p.persist(), xa(p), C.current = [].concat(ni(C.current), [p.target]), ca(p) && Promise.resolve(e(p)).then(function(o) {
|
|
1915
1947
|
if (!(ha(p) && !k)) {
|
|
1916
|
-
var v =
|
|
1917
|
-
files:
|
|
1918
|
-
accept:
|
|
1948
|
+
var v = o.length, x = v > 0 && nt({
|
|
1949
|
+
files: o,
|
|
1950
|
+
accept: $,
|
|
1919
1951
|
minSize: l,
|
|
1920
|
-
maxSize:
|
|
1952
|
+
maxSize: c,
|
|
1921
1953
|
multiple: r,
|
|
1922
|
-
maxFiles:
|
|
1923
|
-
validator:
|
|
1924
|
-
}),
|
|
1925
|
-
|
|
1954
|
+
maxFiles: y,
|
|
1955
|
+
validator: L
|
|
1956
|
+
}), h = v > 0 && !x;
|
|
1957
|
+
g({
|
|
1926
1958
|
isDragAccept: x,
|
|
1927
|
-
isDragReject:
|
|
1959
|
+
isDragReject: h,
|
|
1928
1960
|
isDragActive: !0,
|
|
1929
1961
|
type: "setDraggedFiles"
|
|
1930
1962
|
}), D && D(p);
|
|
1931
1963
|
}
|
|
1932
|
-
}).catch(function(
|
|
1933
|
-
return
|
|
1964
|
+
}).catch(function(o) {
|
|
1965
|
+
return u(o);
|
|
1934
1966
|
});
|
|
1935
|
-
}, [e, D,
|
|
1936
|
-
p.preventDefault(), p.persist(),
|
|
1937
|
-
var
|
|
1938
|
-
if (
|
|
1967
|
+
}, [e, D, u, k, $, l, c, r, y, L]), K = w(function(p) {
|
|
1968
|
+
p.preventDefault(), p.persist(), xa(p);
|
|
1969
|
+
var o = ca(p);
|
|
1970
|
+
if (o && p.dataTransfer)
|
|
1939
1971
|
try {
|
|
1940
1972
|
p.dataTransfer.dropEffect = "copy";
|
|
1941
1973
|
} catch {
|
|
1942
1974
|
}
|
|
1943
|
-
return
|
|
1944
|
-
}, [
|
|
1945
|
-
p.preventDefault(), p.persist(),
|
|
1946
|
-
var
|
|
1947
|
-
return
|
|
1948
|
-
}), v =
|
|
1949
|
-
v !== -1 &&
|
|
1975
|
+
return o && O && O(p), !1;
|
|
1976
|
+
}, [O, k]), $a = w(function(p) {
|
|
1977
|
+
p.preventDefault(), p.persist(), xa(p);
|
|
1978
|
+
var o = C.current.filter(function(x) {
|
|
1979
|
+
return f.current && f.current.contains(x);
|
|
1980
|
+
}), v = o.indexOf(p.target);
|
|
1981
|
+
v !== -1 && o.splice(v, 1), C.current = o, !(o.length > 0) && (g({
|
|
1950
1982
|
type: "setDraggedFiles",
|
|
1951
1983
|
isDragActive: !1,
|
|
1952
1984
|
isDragAccept: !1,
|
|
1953
1985
|
isDragReject: !1
|
|
1954
|
-
}),
|
|
1955
|
-
}, [
|
|
1986
|
+
}), ca(p) && S && S(p));
|
|
1987
|
+
}, [f, S, k]), ua = w(function(p, o) {
|
|
1956
1988
|
var v = [], x = [];
|
|
1957
|
-
p.forEach(function(
|
|
1958
|
-
var
|
|
1989
|
+
p.forEach(function(h) {
|
|
1990
|
+
var A = di(h, $), _ = Pa(A, 2), ja = _[0], Da = _[1], za = mi(h, l, c), ga = Pa(za, 2), Ea = ga[0], Aa = ga[1], Fa = L ? L(h) : null;
|
|
1959
1991
|
if (ja && Ea && !Fa)
|
|
1960
|
-
v.push(
|
|
1992
|
+
v.push(h);
|
|
1961
1993
|
else {
|
|
1962
1994
|
var Oa = [Da, Aa];
|
|
1963
1995
|
Fa && (Oa = Oa.concat(Fa)), x.push({
|
|
1964
|
-
file:
|
|
1965
|
-
errors: Oa.filter(function(
|
|
1966
|
-
return
|
|
1996
|
+
file: h,
|
|
1997
|
+
errors: Oa.filter(function(wi) {
|
|
1998
|
+
return wi;
|
|
1967
1999
|
})
|
|
1968
2000
|
});
|
|
1969
2001
|
}
|
|
1970
|
-
}), (!r && v.length > 1 || r &&
|
|
2002
|
+
}), (!r && v.length > 1 || r && y >= 1 && v.length > y) && (v.forEach(function(h) {
|
|
1971
2003
|
x.push({
|
|
1972
|
-
file:
|
|
1973
|
-
errors: [
|
|
2004
|
+
file: h,
|
|
2005
|
+
errors: [it]
|
|
1974
2006
|
});
|
|
1975
|
-
}), v.splice(0)),
|
|
2007
|
+
}), v.splice(0)), g({
|
|
1976
2008
|
acceptedFiles: v,
|
|
1977
2009
|
fileRejections: x,
|
|
1978
2010
|
isDragReject: x.length > 0,
|
|
1979
2011
|
type: "setFiles"
|
|
1980
|
-
}),
|
|
1981
|
-
}, [
|
|
1982
|
-
p.preventDefault(), p.persist(),
|
|
1983
|
-
ha(p) && !k ||
|
|
1984
|
-
}).catch(function(
|
|
1985
|
-
return
|
|
1986
|
-
}),
|
|
2012
|
+
}), T && T(v, x, o), x.length > 0 && z && z(x, o), v.length > 0 && q && q(v, o);
|
|
2013
|
+
}, [g, r, $, l, c, y, T, q, z, L]), va = w(function(p) {
|
|
2014
|
+
p.preventDefault(), p.persist(), xa(p), C.current = [], ca(p) && Promise.resolve(e(p)).then(function(o) {
|
|
2015
|
+
ha(p) && !k || ua(o, p);
|
|
2016
|
+
}).catch(function(o) {
|
|
2017
|
+
return u(o);
|
|
2018
|
+
}), g({
|
|
1987
2019
|
type: "reset"
|
|
1988
2020
|
});
|
|
1989
|
-
}, [e,
|
|
1990
|
-
if (
|
|
1991
|
-
|
|
2021
|
+
}, [e, ua, u, k]), Y = w(function() {
|
|
2022
|
+
if (U.current) {
|
|
2023
|
+
g({
|
|
1992
2024
|
type: "openDialog"
|
|
1993
|
-
}),
|
|
2025
|
+
}), N();
|
|
1994
2026
|
var p = {
|
|
1995
2027
|
multiple: r,
|
|
1996
|
-
types:
|
|
2028
|
+
types: sa
|
|
1997
2029
|
};
|
|
1998
|
-
window.showOpenFilePicker(p).then(function(
|
|
1999
|
-
return e(
|
|
2000
|
-
}).then(function(
|
|
2001
|
-
|
|
2030
|
+
window.showOpenFilePicker(p).then(function(o) {
|
|
2031
|
+
return e(o);
|
|
2032
|
+
}).then(function(o) {
|
|
2033
|
+
ua(o, null), g({
|
|
2002
2034
|
type: "closeDialog"
|
|
2003
2035
|
});
|
|
2004
|
-
}).catch(function(
|
|
2005
|
-
|
|
2036
|
+
}).catch(function(o) {
|
|
2037
|
+
st(o) ? (M(o), g({
|
|
2006
2038
|
type: "closeDialog"
|
|
2007
|
-
})) :
|
|
2039
|
+
})) : dt(o) ? (U.current = !1, b.current ? (b.current.value = null, b.current.click()) : u(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."))) : u(o);
|
|
2008
2040
|
});
|
|
2009
2041
|
return;
|
|
2010
2042
|
}
|
|
2011
|
-
|
|
2043
|
+
b.current && (g({
|
|
2012
2044
|
type: "openDialog"
|
|
2013
|
-
}),
|
|
2014
|
-
}, [
|
|
2015
|
-
!
|
|
2016
|
-
}, [
|
|
2017
|
-
|
|
2045
|
+
}), N(), b.current.value = null, b.current.click());
|
|
2046
|
+
}, [g, N, M, Z, ua, u, sa, r]), Ma = w(function(p) {
|
|
2047
|
+
!f.current || !f.current.isEqualNode(p.target) || (p.key === " " || p.key === "Enter" || p.keyCode === 32 || p.keyCode === 13) && (p.preventDefault(), Y());
|
|
2048
|
+
}, [f, Y]), Ka = w(function() {
|
|
2049
|
+
g({
|
|
2018
2050
|
type: "focus"
|
|
2019
2051
|
});
|
|
2020
|
-
}, []),
|
|
2021
|
-
|
|
2052
|
+
}, []), Ga = w(function() {
|
|
2053
|
+
g({
|
|
2022
2054
|
type: "blur"
|
|
2023
2055
|
});
|
|
2024
|
-
}, []), Ba =
|
|
2025
|
-
|
|
2026
|
-
}, [
|
|
2027
|
-
return n ? null :
|
|
2028
|
-
}, ka = function(
|
|
2029
|
-
return
|
|
2030
|
-
},
|
|
2031
|
-
return
|
|
2032
|
-
},
|
|
2033
|
-
k &&
|
|
2034
|
-
},
|
|
2056
|
+
}, []), Ba = w(function() {
|
|
2057
|
+
I || (ot() ? setTimeout(Y, 0) : Y());
|
|
2058
|
+
}, [I, Y]), V = function(o) {
|
|
2059
|
+
return n ? null : o;
|
|
2060
|
+
}, ka = function(o) {
|
|
2061
|
+
return ia ? null : V(o);
|
|
2062
|
+
}, fa = function(o) {
|
|
2063
|
+
return ta ? null : V(o);
|
|
2064
|
+
}, xa = function(o) {
|
|
2065
|
+
k && o.stopPropagation();
|
|
2066
|
+
}, bi = J(function() {
|
|
2035
2067
|
return function() {
|
|
2036
|
-
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
2068
|
+
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = p.refKey, v = o === void 0 ? "ref" : o, x = p.role, h = p.onKeyDown, A = p.onFocus, _ = p.onBlur, ja = p.onClick, Da = p.onDragEnter, za = p.onDragOver, ga = p.onDragLeave, Ea = p.onDrop, Aa = ya(p, vt);
|
|
2037
2069
|
return m(m(qa({
|
|
2038
|
-
onKeyDown: ka(
|
|
2039
|
-
onFocus: ka(
|
|
2040
|
-
onBlur: ka(
|
|
2041
|
-
onClick:
|
|
2042
|
-
onDragEnter:
|
|
2043
|
-
onDragOver:
|
|
2044
|
-
onDragLeave:
|
|
2045
|
-
onDrop:
|
|
2070
|
+
onKeyDown: ka(F(h, Ma)),
|
|
2071
|
+
onFocus: ka(F(A, Ka)),
|
|
2072
|
+
onBlur: ka(F(_, Ga)),
|
|
2073
|
+
onClick: V(F(ja, Ba)),
|
|
2074
|
+
onDragEnter: fa(F(Da, j)),
|
|
2075
|
+
onDragOver: fa(F(za, K)),
|
|
2076
|
+
onDragLeave: fa(F(ga, $a)),
|
|
2077
|
+
onDrop: fa(F(Ea, va)),
|
|
2046
2078
|
role: typeof x == "string" && x !== "" ? x : "presentation"
|
|
2047
|
-
}, v,
|
|
2079
|
+
}, v, f), !n && !ia ? {
|
|
2048
2080
|
tabIndex: 0
|
|
2049
2081
|
} : {}), Aa);
|
|
2050
2082
|
};
|
|
2051
|
-
}, [
|
|
2083
|
+
}, [f, Ma, Ka, Ga, Ba, j, K, $a, va, ia, ta, n]), hi = w(function(p) {
|
|
2052
2084
|
p.stopPropagation();
|
|
2053
|
-
}, []),
|
|
2085
|
+
}, []), yi = J(function() {
|
|
2054
2086
|
return function() {
|
|
2055
|
-
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
2056
|
-
accept:
|
|
2087
|
+
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = p.refKey, v = o === void 0 ? "ref" : o, x = p.onChange, h = p.onClick, A = ya(p, ft), _ = qa({
|
|
2088
|
+
accept: $,
|
|
2057
2089
|
multiple: r,
|
|
2058
2090
|
type: "file",
|
|
2059
2091
|
style: {
|
|
@@ -2068,23 +2100,23 @@ function fi() {
|
|
|
2068
2100
|
width: "1px",
|
|
2069
2101
|
whiteSpace: "nowrap"
|
|
2070
2102
|
},
|
|
2071
|
-
onChange:
|
|
2072
|
-
onClick:
|
|
2103
|
+
onChange: V(F(x, va)),
|
|
2104
|
+
onClick: V(F(h, hi)),
|
|
2073
2105
|
tabIndex: -1
|
|
2074
|
-
}, v,
|
|
2075
|
-
return m(m({},
|
|
2106
|
+
}, v, b);
|
|
2107
|
+
return m(m({}, _), A);
|
|
2076
2108
|
};
|
|
2077
|
-
}, [
|
|
2078
|
-
return m(m({},
|
|
2109
|
+
}, [b, t, r, va, n]);
|
|
2110
|
+
return m(m({}, ea), {}, {
|
|
2079
2111
|
isFocused: wa && !n,
|
|
2080
|
-
getRootProps:
|
|
2081
|
-
getInputProps:
|
|
2082
|
-
rootRef:
|
|
2083
|
-
inputRef:
|
|
2084
|
-
open:
|
|
2112
|
+
getRootProps: bi,
|
|
2113
|
+
getInputProps: yi,
|
|
2114
|
+
rootRef: f,
|
|
2115
|
+
inputRef: b,
|
|
2116
|
+
open: V(Y)
|
|
2085
2117
|
});
|
|
2086
2118
|
}
|
|
2087
|
-
function
|
|
2119
|
+
function jt(a, i) {
|
|
2088
2120
|
switch (i.type) {
|
|
2089
2121
|
case "focus":
|
|
2090
2122
|
return m(m({}, a), {}, {
|
|
@@ -2114,23 +2146,27 @@ function wt(a, i) {
|
|
|
2114
2146
|
fileRejections: i.fileRejections,
|
|
2115
2147
|
isDragReject: i.isDragReject
|
|
2116
2148
|
});
|
|
2149
|
+
case "setDragGlobal":
|
|
2150
|
+
return m(m({}, a), {}, {
|
|
2151
|
+
isDragGlobal: i.isDragGlobal
|
|
2152
|
+
});
|
|
2117
2153
|
case "reset":
|
|
2118
2154
|
return m({}, Ia);
|
|
2119
2155
|
default:
|
|
2120
2156
|
return a;
|
|
2121
2157
|
}
|
|
2122
2158
|
}
|
|
2123
|
-
function
|
|
2159
|
+
function pi() {
|
|
2124
2160
|
}
|
|
2125
|
-
const
|
|
2161
|
+
const Dt = {
|
|
2126
2162
|
small: "0.5rem 0.813rem",
|
|
2127
2163
|
medium: "0.75rem 1.063rem",
|
|
2128
2164
|
large: "1rem 1.313rem"
|
|
2129
|
-
},
|
|
2165
|
+
}, zt = {
|
|
2130
2166
|
small: "1.25rem",
|
|
2131
2167
|
medium: "1.5rem",
|
|
2132
2168
|
large: "1.75rem"
|
|
2133
|
-
},
|
|
2169
|
+
}, Et = Ra.label`
|
|
2134
2170
|
display: flex;
|
|
2135
2171
|
flex-direction: column;
|
|
2136
2172
|
justify-content: center;
|
|
@@ -2138,7 +2174,7 @@ const kt = {
|
|
|
2138
2174
|
gap: 0.5rem;
|
|
2139
2175
|
cursor: pointer;
|
|
2140
2176
|
font-size: ${(a) => a.theme.typography.component[a.size].subTxtFontSize};
|
|
2141
|
-
padding: ${(a) =>
|
|
2177
|
+
padding: ${(a) => Dt[a.size]};
|
|
2142
2178
|
|
|
2143
2179
|
color: ${(a) => Ua(
|
|
2144
2180
|
a.theme,
|
|
@@ -2149,7 +2185,7 @@ const kt = {
|
|
|
2149
2185
|
)};
|
|
2150
2186
|
|
|
2151
2187
|
& .dnd-icon-lnc {
|
|
2152
|
-
font-size: ${(a) =>
|
|
2188
|
+
font-size: ${(a) => zt[a.size]};
|
|
2153
2189
|
color: ${(a) => Ua(
|
|
2154
2190
|
a.theme,
|
|
2155
2191
|
"DragDropFiles",
|
|
@@ -2158,150 +2194,150 @@ const kt = {
|
|
|
2158
2194
|
"text"
|
|
2159
2195
|
)};
|
|
2160
2196
|
}
|
|
2161
|
-
`,
|
|
2197
|
+
`, At = Ra.input`
|
|
2162
2198
|
width: 0.1px;
|
|
2163
2199
|
height: 0.1px;
|
|
2164
2200
|
opacity: 0;
|
|
2165
2201
|
overflow: hidden;
|
|
2166
2202
|
position: absolute;
|
|
2167
2203
|
z-index: -1;
|
|
2168
|
-
`,
|
|
2204
|
+
`, Ft = Ra.span`
|
|
2169
2205
|
align-self: self-end;
|
|
2170
2206
|
cursor: pointer;
|
|
2171
|
-
`,
|
|
2207
|
+
`, Ot = (a) => new Promise((i) => {
|
|
2172
2208
|
const t = document.createElement("video");
|
|
2173
2209
|
t.preload = "metadata", t.onloadedmetadata = () => {
|
|
2174
2210
|
window.URL.revokeObjectURL(t == null ? void 0 : t.src), i(t == null ? void 0 : t.duration);
|
|
2175
2211
|
}, t.src = URL.createObjectURL(a);
|
|
2176
|
-
}),
|
|
2212
|
+
}), $t = oi((a, i) => {
|
|
2177
2213
|
const {
|
|
2178
2214
|
inputRef: t,
|
|
2179
2215
|
id: n = "",
|
|
2180
2216
|
disabled: e = !1,
|
|
2181
|
-
acceptDropzone:
|
|
2217
|
+
acceptDropzone: c = {},
|
|
2182
2218
|
acceptInput: l,
|
|
2183
2219
|
multiple: r = !1,
|
|
2184
|
-
selectFileText:
|
|
2220
|
+
selectFileText: y = "Select file",
|
|
2185
2221
|
control: D,
|
|
2186
|
-
dndFileText:
|
|
2187
|
-
showDnD:
|
|
2188
|
-
className:
|
|
2189
|
-
style:
|
|
2222
|
+
dndFileText: S = "Drag and drop file here or",
|
|
2223
|
+
showDnD: O = !0,
|
|
2224
|
+
className: T = "",
|
|
2225
|
+
style: q = {},
|
|
2190
2226
|
onChange: z = () => {
|
|
2191
2227
|
},
|
|
2192
|
-
onFocus:
|
|
2228
|
+
onFocus: P = () => {
|
|
2193
2229
|
},
|
|
2194
|
-
onBlur:
|
|
2230
|
+
onBlur: H = () => {
|
|
2195
2231
|
},
|
|
2196
|
-
onDropAccepted:
|
|
2232
|
+
onDropAccepted: Z = () => {
|
|
2197
2233
|
},
|
|
2198
|
-
onDrop:
|
|
2234
|
+
onDrop: aa = () => {
|
|
2199
2235
|
},
|
|
2200
|
-
color:
|
|
2201
|
-
size:
|
|
2202
|
-
inputProps:
|
|
2203
|
-
alwaysShowDropzone:
|
|
2236
|
+
color: W = "primary",
|
|
2237
|
+
size: I = "small",
|
|
2238
|
+
inputProps: ia,
|
|
2239
|
+
alwaysShowDropzone: ta = !1,
|
|
2204
2240
|
maxVideoDuration: k = null,
|
|
2205
2241
|
// in seconds
|
|
2206
|
-
onMaxDurationExceed:
|
|
2242
|
+
onMaxDurationExceed: R = () => {
|
|
2207
2243
|
},
|
|
2208
|
-
...
|
|
2209
|
-
} = a,
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
}, [
|
|
2213
|
-
var
|
|
2214
|
-
const
|
|
2215
|
-
if (!
|
|
2216
|
-
const
|
|
2217
|
-
for (const j of
|
|
2218
|
-
const
|
|
2219
|
-
if (k &&
|
|
2244
|
+
...L
|
|
2245
|
+
} = a, $ = _i(), [sa, N] = Wa(!1), [M, f] = Wa(O), b = Q();
|
|
2246
|
+
la(() => {
|
|
2247
|
+
f(O);
|
|
2248
|
+
}, [O]);
|
|
2249
|
+
var da = { theme: $, size: I, color: W, disabled: e, focused: sa };
|
|
2250
|
+
const na = async (d) => {
|
|
2251
|
+
if (!Oi(k)) return d;
|
|
2252
|
+
const u = [];
|
|
2253
|
+
for (const j of d) {
|
|
2254
|
+
const K = await Ot(j);
|
|
2255
|
+
if (k && K > k) {
|
|
2220
2256
|
console.error(
|
|
2221
2257
|
`${j.name} is too long. Max allowed: ${k}`
|
|
2222
|
-
),
|
|
2258
|
+
), R == null || R();
|
|
2223
2259
|
continue;
|
|
2224
2260
|
} else
|
|
2225
|
-
|
|
2261
|
+
u.push(j);
|
|
2226
2262
|
}
|
|
2227
|
-
return
|
|
2228
|
-
},
|
|
2229
|
-
|
|
2230
|
-
}, []),
|
|
2231
|
-
const
|
|
2232
|
-
(
|
|
2233
|
-
}, []), wa = async (
|
|
2234
|
-
var
|
|
2235
|
-
const
|
|
2236
|
-
(j == null ? void 0 : j.length) > 0 ? (z && !e && z(j),
|
|
2237
|
-
},
|
|
2238
|
-
var
|
|
2239
|
-
i != null && i.current ? (
|
|
2240
|
-
},
|
|
2241
|
-
onClick: (
|
|
2242
|
-
|
|
2263
|
+
return u;
|
|
2264
|
+
}, ea = w((d, u) => {
|
|
2265
|
+
aa && aa(d, u), f(!1);
|
|
2266
|
+
}, []), g = w(async (d) => {
|
|
2267
|
+
const u = await na(d);
|
|
2268
|
+
(u == null ? void 0 : u.length) > 0 && (z && !e && z(u), Z && Z(u), f(!1));
|
|
2269
|
+
}, []), wa = async (d) => {
|
|
2270
|
+
var K;
|
|
2271
|
+
const u = Array.from((K = d == null ? void 0 : d.target) == null ? void 0 : K.files), j = await na(u);
|
|
2272
|
+
(j == null ? void 0 : j.length) > 0 ? (z && !e && z(j), f(!1)) : d.target.value = "";
|
|
2273
|
+
}, pa = () => {
|
|
2274
|
+
var d, u;
|
|
2275
|
+
i != null && i.current ? (d = i.current) == null || d.click() : (u = b == null ? void 0 : b.current) == null || u.click();
|
|
2276
|
+
}, U = () => D ? Ai(D, {
|
|
2277
|
+
onClick: (d) => {
|
|
2278
|
+
pa(), D.onClick && D.onClick(d);
|
|
2243
2279
|
},
|
|
2244
2280
|
disabled: e
|
|
2245
|
-
}) : /* @__PURE__ */
|
|
2246
|
-
|
|
2281
|
+
}) : /* @__PURE__ */ oa(
|
|
2282
|
+
Fi,
|
|
2247
2283
|
{
|
|
2248
|
-
color:
|
|
2249
|
-
size:
|
|
2250
|
-
text:
|
|
2284
|
+
color: W,
|
|
2285
|
+
size: I,
|
|
2286
|
+
text: y,
|
|
2251
2287
|
disabled: e,
|
|
2252
|
-
onClick: (
|
|
2253
|
-
|
|
2288
|
+
onClick: (d) => {
|
|
2289
|
+
d.preventDefault(), pa();
|
|
2254
2290
|
}
|
|
2255
2291
|
}
|
|
2256
|
-
), { getRootProps:
|
|
2257
|
-
onDrop:
|
|
2258
|
-
accept:
|
|
2259
|
-
onDropAccepted:
|
|
2292
|
+
), { getRootProps: ma, getInputProps: C, isDragActive: E } = gi({
|
|
2293
|
+
onDrop: ea,
|
|
2294
|
+
accept: c,
|
|
2295
|
+
onDropAccepted: g,
|
|
2260
2296
|
multiple: r,
|
|
2261
2297
|
disabled: e,
|
|
2262
2298
|
noClick: !0
|
|
2263
2299
|
});
|
|
2264
2300
|
return /* @__PURE__ */ Ha(
|
|
2265
|
-
|
|
2301
|
+
Et,
|
|
2266
2302
|
{
|
|
2267
|
-
...
|
|
2268
|
-
className:
|
|
2269
|
-
style:
|
|
2270
|
-
...
|
|
2271
|
-
...
|
|
2272
|
-
ref: i ||
|
|
2303
|
+
...da,
|
|
2304
|
+
className: T,
|
|
2305
|
+
style: q,
|
|
2306
|
+
...ma(),
|
|
2307
|
+
...L,
|
|
2308
|
+
ref: i || b,
|
|
2273
2309
|
children: [
|
|
2274
|
-
/* @__PURE__ */
|
|
2275
|
-
|
|
2310
|
+
/* @__PURE__ */ oa(
|
|
2311
|
+
At,
|
|
2276
2312
|
{
|
|
2277
|
-
...
|
|
2278
|
-
...
|
|
2313
|
+
...C(),
|
|
2314
|
+
...da,
|
|
2279
2315
|
multiple: r,
|
|
2280
2316
|
ref: t,
|
|
2281
2317
|
type: "file",
|
|
2282
2318
|
action: "bla.html",
|
|
2283
2319
|
accept: l,
|
|
2284
2320
|
id: n,
|
|
2285
|
-
onFocus: (
|
|
2286
|
-
e ||
|
|
2321
|
+
onFocus: (d) => {
|
|
2322
|
+
e || N(!0), P && !e && P(d);
|
|
2287
2323
|
},
|
|
2288
|
-
onBlur: (
|
|
2289
|
-
e ||
|
|
2324
|
+
onBlur: (d) => {
|
|
2325
|
+
e || N(!1), H && !e && H(d);
|
|
2290
2326
|
},
|
|
2291
2327
|
onChange: wa,
|
|
2292
|
-
...
|
|
2328
|
+
...ia
|
|
2293
2329
|
}
|
|
2294
2330
|
),
|
|
2295
|
-
!
|
|
2296
|
-
(
|
|
2297
|
-
/* @__PURE__ */
|
|
2298
|
-
|
|
2299
|
-
|
|
2331
|
+
!E && !M && !ta && /* @__PURE__ */ oa(Ft, { children: /* @__PURE__ */ oa(Na, { icon: "plus", size: I }) }),
|
|
2332
|
+
(E || M || ta) && /* @__PURE__ */ Ha(ki, { children: [
|
|
2333
|
+
/* @__PURE__ */ oa(Na, { icon: "upload", size: I, className: "dnd-icon-lnc" }),
|
|
2334
|
+
S,
|
|
2335
|
+
U()
|
|
2300
2336
|
] })
|
|
2301
2337
|
]
|
|
2302
2338
|
}
|
|
2303
2339
|
);
|
|
2304
2340
|
});
|
|
2305
2341
|
export {
|
|
2306
|
-
|
|
2342
|
+
$t as default
|
|
2307
2343
|
};
|