@txgw/payout-components 0.6.0 → 1.0.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.
- package/dist/AMIS-D9TLFIT7.js +1 -0
- package/dist/Action-B-ZQiXEF.js +1 -0
- package/dist/Action-D_mwIN-5.js +1 -0
- package/dist/Alert-UVAjNb7s.js +1 -0
- package/dist/AnchorNav-BjgLgX6m.js +1 -0
- package/dist/App-ncbuqXE2.js +1 -0
- package/dist/Audio-B3lYr3U2.js +1 -0
- package/dist/Avatar-XqOgD9ui.js +1 -0
- package/dist/BarCode-B_ISp_TQ.js +1 -0
- package/dist/BarCode-Cg3O5s_0.js +1 -0
- package/dist/Breadcrumb-CTA88DWN.js +1 -0
- package/dist/ButtonGroup-pVY35HQ1.js +1 -0
- package/dist/ButtonGroupSelect-Bt6Jwo5u.js +1 -0
- package/dist/ButtonGroupSelect-C_qcxdHQ.js +1 -0
- package/dist/ButtonToolbar-CUNT7FK4.js +1 -0
- package/dist/CRUD-DRudIc-q.js +1 -0
- package/dist/CRUD2-CYGF0EMp.js +1 -0
- package/dist/Calendar-BW4diX9T.js +1 -0
- package/dist/Card-B_1cg_nQ.js +1 -0
- package/dist/Card-C4m8b89W.js +1 -0
- package/dist/Card2-BXG0mDni.js +1 -0
- package/dist/Cards-ak9W7Ggn.js +1 -0
- package/dist/Carousel-CxCXr052.js +1 -0
- package/dist/ChainedSelect-BcWT4XqI.js +1 -0
- package/dist/Chart-BxLGXl9u.js +1 -0
- package/dist/ChartRadios-DstdFZq_.js +1 -0
- package/dist/Checkbox-C4MOpWIk.js +1 -0
- package/dist/Checkbox-nA8maqiS.js +1 -0
- package/dist/Checkboxes-DaAz8fEe.js +1 -0
- package/dist/Code-C7wxKt-Z.js +1 -0
- package/dist/Collapse-B7DWMzHM.js +1 -0
- package/dist/Collapse-BW-pXRle.js +1 -0
- package/dist/CollapseGroup-C5HPq_8j.js +1 -0
- package/dist/Color-BpoN5ndM.js +1 -0
- package/dist/ColorPicker-B-eyCI0N.js +1 -0
- package/dist/ColumnToggler-BCOanQf7.js +1 -0
- package/dist/ColumnToggler-BNmJdTb9.js +1 -0
- package/dist/Combo-DVBtMl-s.js +1 -0
- package/dist/ConditionBuilder-bQtsEBIu.js +1 -0
- package/dist/Container-BCEndXiL.js +1 -0
- package/dist/Control-DBSbZmLZ.js +1 -0
- package/dist/Custom-CVj3O57n.js +1 -0
- package/dist/{Date-C9Kib09x.js → Date-CuBE2XD8.js} +1 -333
- package/dist/DateRange-Bd9o9Fl_.js +1 -0
- package/dist/Dialog-DzlFCRtq.js +1 -0
- package/dist/DiffEditor-Cccg35Ly.js +1 -0
- package/dist/Divider-gy0IUviz.js +1 -0
- package/dist/Drawer-C37JbURK.js +1 -0
- package/dist/DropDownButton-DO4hK0Kp.js +1 -0
- package/dist/Each-BfbwJEMb.js +1 -0
- package/dist/FieldSet-D3WMli0B.js +1 -0
- package/dist/FieldSet-D8oj-Vb4.js +1 -0
- package/dist/Flex-CXooKsRI.js +1 -0
- package/dist/Formula-KUisLb0j.js +1 -0
- package/dist/Grid2D-6cCqZG6j.js +1 -0
- package/dist/GridNav-Bvueqq-Q.js +1 -0
- package/dist/Group-EswEogaf.js +1 -0
- package/dist/HBox-DGIyZMV6.js +1 -0
- package/dist/HBox-DyS1JJHh.js +1 -0
- package/dist/Hidden-DwrGEKjM.js +1 -0
- package/dist/IFrame-BT4_03AI.js +1 -0
- package/dist/Icon-BNP1oNtQ.js +1 -0
- package/dist/IconPicker-CIL2Wob5.js +1 -0
- package/dist/IconPickerIcons-DN0pqJHt.js +1 -0
- package/dist/IconSelect-D1CPpZAU.js +1 -0
- package/dist/IconSelectStore-BM_zyU2d.js +1 -0
- package/dist/Image--xtRdgd5.js +1 -0
- package/dist/Image-BAenzG4k.js +1 -0
- package/dist/Images-zPCUHCyK.js +1 -0
- package/dist/InputArray-BnERrQT7.js +1 -0
- package/dist/InputCity-Bidd_z8i.js +1 -0
- package/dist/InputColor-D0Kf9p1Q.js +1 -0
- package/dist/InputDate-CzCxGUx_.js +1 -0
- package/dist/InputDateRange-Bp3owFpS.js +1 -0
- package/dist/InputExcel-DUdIptAN.js +1 -0
- package/dist/InputFile-DquJWe_S.js +1 -0
- package/dist/InputFile-X4G2zOvt.js +1 -0
- package/dist/InputFormula-Cu3Oc5xq.js +1 -0
- package/dist/InputGroup-RqgoJFcl.js +1 -0
- package/dist/InputImage-CdVzSsuR.js +1 -0
- package/dist/InputImage-Cv5FkWaC.js +1 -0
- package/dist/InputMonthRange-BTR1bISz.js +1 -0
- package/dist/InputNumber-C0rip8fu.js +1 -0
- package/dist/InputQuarterRange-D1X-Z2tN.js +1 -0
- package/dist/InputRange-Dq-ePI8S.js +1 -0
- package/dist/InputRating-_KtpPZno.js +1 -0
- package/dist/InputRepeat-D3Drjx3I.js +1 -0
- package/dist/InputRichText-0TZzQzcy.js +1 -0
- package/dist/InputRichText-CyfWV74o.js +1 -0
- package/dist/InputSignature-CXV7thvH.js +1 -0
- package/dist/InputSubForm-CQuaHTe3.js +1 -0
- package/dist/InputTable-CJ4Dl3xA.js +1 -0
- package/dist/InputTag-BAjQnJh1.js +1 -0
- package/dist/InputText-Ci8XzpKK.js +1 -0
- package/dist/InputTree-Coq2YfRD.js +1 -0
- package/dist/InputVerificationCode-CZbzrwa_.js +1 -0
- package/dist/InputYearRange-CbdR1nuY.js +1 -0
- package/dist/JSONSchema-Z9eJulgD.js +1 -0
- package/dist/JSONSchemaEditor-qtbO2bWX.js +1 -0
- package/dist/Json-I_TX2D01.js +1 -0
- package/dist/Link-DoCudSpW.js +1 -0
- package/dist/List-BItkFb-A.js +1 -0
- package/dist/List-Ccx0hLxM.js +1 -0
- package/dist/ListSelect-f6rDx6N2.js +1 -0
- package/dist/LocationPicker-CZd07tME.js +1 -0
- package/dist/Log--rbcIY4g.js +1 -0
- package/dist/Mapping-rpBDdw-o.js +1 -0
- package/dist/Markdown-BlxcmdTl.js +1 -0
- package/dist/Markdown-M8qWm8IY.js +1 -0
- package/dist/MatrixCheckboxes-DCnC8NGQ.js +1 -0
- package/dist/MultilineText-CHrvTjY_.js +1 -0
- package/dist/Nav-CDJbX6q3.js +1 -0
- package/dist/NestedSelect-Uxvg89Pe.js +1 -0
- package/dist/Number-tVXWVP4G.js +1 -0
- package/dist/OfficeViewer-Cz447nMa.js +1 -0
- package/dist/Operation-JkWrokFn.js +1 -0
- package/dist/Page-C5qOXz9A.js +1 -0
- package/dist/Pagination-DQoNu1Qo.js +1 -0
- package/dist/PaginationWrapper-07h0-dmz.js +1 -0
- package/dist/Panel--P2Ov47t.js +1 -0
- package/dist/Password-CF1feQa2.js +1 -0
- package/dist/Picker-CKV0_5vN.js +1 -0
- package/dist/Plain-CnRq3KDS.js +1 -0
- package/dist/PopUp-xCiesfUA.js +104 -0
- package/dist/Portlet-Agkkko8B.js +1 -0
- package/dist/Progress-D-JOmIgT.js +1 -0
- package/dist/Property-BoNnFGV9.js +1 -0
- package/dist/QRCode-BFfhBYxV.js +2 -0
- package/dist/Radio-BRNZ49gi.js +1 -0
- package/dist/Radios-0CT3XjKZ.js +1 -0
- package/dist/Remark-BuTyhR9e.js +1 -0
- package/dist/Remark-XZDS4Z3Y.js +1 -0
- package/dist/RichText-wfPXQmb8.js +1 -0
- package/dist/SearchBox-__1UKInO.js +1 -0
- package/dist/Select-D9nj7O4q.js +1 -0
- package/dist/Service-fGzhGL0m.js +1 -0
- package/dist/Shape-C9r17D5A.js +1 -0
- package/dist/Slider-BryEccA-.js +1 -0
- package/dist/SparkLine-CcOuk0we.js +1 -0
- package/dist/Spinner-qyJRJu1C.js +1 -0
- package/dist/StaticHoc-C0bGgnQS.js +1 -0
- package/dist/Status-BPtAA54m.js +1 -0
- package/dist/Steps-DsmYH15c.js +1 -0
- package/dist/Switch-CMkhfkPn.js +1 -0
- package/dist/SwitchContainer-BLxuSTyZ.js +1 -0
- package/dist/Table-DsxWjUvF.js +1 -0
- package/dist/Table-HvHD2tS0.js +1 -0
- package/dist/Table2-C4HNs_R1.js +1 -0
- package/dist/TableView-zfvmfF6E.js +1 -0
- package/dist/Tabs-BeQyEedg.js +1 -0
- package/dist/TabsTransfer-BsYcLplM.js +1 -0
- package/dist/TabsTransferPicker-SS6hg5Hc.js +1 -0
- package/dist/Tag-IL_v32Aa.js +1 -0
- package/dist/Tasks-D6GQavXw.js +1 -0
- package/dist/Textarea-Ck0rJ3Ff.js +1 -0
- package/dist/Timeline-BT7aVGPP.js +1 -0
- package/dist/TooltipWrapper-Bx_3339q.js +1 -0
- package/dist/Tpl-BiWl-0O_.js +1 -0
- package/dist/Transfer-BwyAe8c8.js +1 -0
- package/dist/Transfer-CldOhDuU.js +1 -0
- package/dist/TransferPicker-C2cth5_r.js +1 -0
- package/dist/TreeSelect-D9-PBXkV.js +1 -0
- package/dist/UUID-R41mBvtB.js +1 -0
- package/dist/UserSelect-Cq56ZLkZ.js +1 -0
- package/dist/VBox-BEdXFwFf.js +1 -0
- package/dist/Video-BIQhs4lA.js +1 -0
- package/dist/WebComponent-Vzfd9UEy.js +1 -0
- package/dist/Wizard-BwEpr22M.js +1 -0
- package/dist/Words-C7JrGNdU.js +1 -0
- package/dist/Wrapper-DIGr8a29.js +1 -0
- package/dist/_getTag-x788Ng9o.js +1 -0
- package/dist/beneficiary-form-_xPce615.js +10 -0
- package/dist/client-BoE-UyzU.js +1 -0
- package/dist/crypto-js-Cv2Y8hvs.js +1 -0
- package/dist/doc-CmSOujco.js +1 -0
- package/dist/es-Cn6dJrVn.js +1 -0
- package/dist/esm-CofciBhy.js +4 -0
- package/dist/esm-DyRrwLZv.js +1 -0
- package/dist/esm-vG8eylH_.js +28 -0
- package/dist/function-C8ta9DKb.js +3 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -120
- package/dist/index.js +1 -96
- package/dist/isEqual-BxlJ5vH7.js +1 -0
- package/dist/main-CLaM-mkN.js +1 -0
- package/dist/mi18n-react.esm-BFa-Q7wX.js +1 -0
- package/dist/objectSpread2-yExSo67O.js +1 -0
- package/dist/omitBy-CFU0pICA.js +1 -0
- package/dist/papaparse.min-CU0u_rom.js +1 -0
- package/dist/react-BW4ssgUo.js +1 -0
- package/dist/react-cropper.es-zEJdZmmN.js +1 -0
- package/dist/react-dom-DmgFzc6z.js +1 -0
- package/dist/rolldown-runtime-DcYi-9oA.js +1 -0
- package/dist/tslib.es6-C2q27PUR.js +1 -0
- package/dist/xor-ziNg7OgH.js +1 -0
- package/package.json +20 -15
- package/dist/AMIS--SZXSfKF.js +0 -23
- package/dist/Action-D7O1nxY2.js +0 -10
- package/dist/Action-DpRShNiD.js +0 -646
- package/dist/Alert-sakO0sgo.js +0 -34
- package/dist/AnchorNav-1OrNpCPU.js +0 -88
- package/dist/App-mzRv6t1L.js +0 -213
- package/dist/Audio-CmGRzA8C.js +0 -324
- package/dist/Avatar-C0g_Dcsr.js +0 -75
- package/dist/BarCode-Bgr2-a69.js +0 -35
- package/dist/BarCode-f_fuunrs.js +0 -2708
- package/dist/Breadcrumb-3pb8787J.js +0 -38
- package/dist/ButtonGroup-DBJgP_U6.js +0 -16
- package/dist/ButtonGroupSelect-BV8FHgm0.js +0 -93
- package/dist/ButtonGroupSelect-Cl2irnYh.js +0 -8
- package/dist/ButtonToolbar-DMCBgh9w.js +0 -36
- package/dist/CRUD-DFP1DIcc.js +0 -1048
- package/dist/CRUD2-BGpsdJ3D.js +0 -660
- package/dist/Calendar-D_aFq70_.js +0 -18
- package/dist/Card-C54K-VRd.js +0 -14
- package/dist/Card-FmRg7dLO.js +0 -346
- package/dist/Card2-Blr9gGoC.js +0 -68
- package/dist/Cards-B7J3bYtx.js +0 -485
- package/dist/Carousel-Ba4JeK7n.js +0 -414
- package/dist/ChainedSelect-CUU7qCFQ.js +0 -212
- package/dist/Chart-BmOD9NEG.js +0 -276
- package/dist/ChartRadios-Bm7pnICh.js +0 -93
- package/dist/Checkbox-CcjG9Mv4.js +0 -157
- package/dist/Checkbox-yvPZaH8N.js +0 -10
- package/dist/Checkboxes-Babxqar9.js +0 -285
- package/dist/Code-B7FhTic-.js +0 -111
- package/dist/Collapse-BYdoEOZ2.js +0 -124
- package/dist/Collapse-C9riUcKK.js +0 -9
- package/dist/CollapseGroup-B7DmpWY1.js +0 -74
- package/dist/Color-BM1Qa0C1.js +0 -34
- package/dist/ColorPicker-BXmi_OWm.js +0 -5258
- package/dist/ColumnToggler-3QYyVjVf.js +0 -81
- package/dist/ColumnToggler-D0NlxwMq.js +0 -10
- package/dist/ColumnToggler-DLFwzPef.js +0 -228
- package/dist/Combo-BsouWVHB.js +0 -748
- package/dist/Combo-Cabifvbg.js +0 -9
- package/dist/ConditionBuilder-BacjsaTh.js +0 -113
- package/dist/Container-C5-66abH.js +0 -86
- package/dist/Control-krTArjIv.js +0 -38
- package/dist/Custom-DawY4LgO.js +0 -73
- package/dist/DateRange-D2lKQT_J.js +0 -34
- package/dist/Dialog-oNlQLXnk.js +0 -508
- package/dist/DiffEditor-DY8XdtJS.js +0 -104
- package/dist/Divider-BgpLhaqf.js +0 -70
- package/dist/Drawer-DslUxLot.js +0 -448
- package/dist/DropDownButton-BIuAagmC.js +0 -193
- package/dist/Each-CA8gaJkL.js +0 -79
- package/dist/FieldSet-Cg1pE5gA.js +0 -64
- package/dist/FieldSet-DVAa2H_Q.js +0 -10
- package/dist/Flex-Baz4bI9u.js +0 -99
- package/dist/Formula-ABhgdx_Q.js +0 -72
- package/dist/Grid2D-DmdOVnhu.js +0 -84
- package/dist/GridNav-lHAunT1M.js +0 -56
- package/dist/Group-7sGnjMli.js +0 -85
- package/dist/HBox-DxchKWfv.js +0 -7
- package/dist/HBox-s88aG83B.js +0 -48
- package/dist/Hidden-BrTWoL8d.js +0 -27
- package/dist/IFrame-DaZ1v2-9.js +0 -141
- package/dist/Icon-DNbdrsn8.js +0 -74
- package/dist/IconPicker-DqNlu5Zd.js +0 -230
- package/dist/IconPickerIcons-dHFcDHrv.js +0 -15
- package/dist/IconSelect-CvBITEcy.js +0 -254
- package/dist/IconSelectStore-CTqJPujB.js +0 -45
- package/dist/Image-BBs8tnny.js +0 -258
- package/dist/Image-DM9_Ii2b.js +0 -9
- package/dist/Images-cRmH380W.js +0 -377
- package/dist/InputArray-Dov-RBrP.js +0 -42
- package/dist/InputCity-owVpsIaD.js +0 -351
- package/dist/InputColor-DhVJhPp6.js +0 -53
- package/dist/InputDate-DLOwHbwT.js +0 -10
- package/dist/InputDate-DWaIvnAp.js +0 -292
- package/dist/InputDateRange-CnGNwIFe.js +0 -10
- package/dist/InputDateRange-Diqw3JLp.js +0 -170
- package/dist/InputExcel-BjWNYvnN.js +0 -427
- package/dist/InputFile-89BOwWJE.js +0 -601
- package/dist/InputFile-DOym0HDc.js +0 -10
- package/dist/InputFormula-CV5j31Ow.js +0 -75
- package/dist/InputGroup-C7O2ba0g.js +0 -112
- package/dist/InputImage-BF7DAF8L.js +0 -12
- package/dist/InputImage-DcsVQf7c.js +0 -834
- package/dist/InputMonthRange-BjD3hmwp.js +0 -76
- package/dist/InputNumber-DKMOkba-.js +0 -255
- package/dist/InputQuarterRange-DZKnkZ_s.js +0 -76
- package/dist/InputRange-DiHKf3tP.js +0 -266
- package/dist/InputRating-Bc8Od5b8.js +0 -115
- package/dist/InputRepeat-BhF5KVB2.js +0 -179
- package/dist/InputRichText-BBBdDFA2.js +0 -7
- package/dist/InputRichText-CieHn0fO.js +0 -198
- package/dist/InputSignature-CbfGjJlU.js +0 -495
- package/dist/InputSubForm-BkM_3Rjg.js +0 -236
- package/dist/InputTable-CgOqC6Pc.js +0 -900
- package/dist/InputTag-35kCFM5X.js +0 -464
- package/dist/InputText-BbEjGBtv.js +0 -541
- package/dist/InputTree-DchkyMbL.js +0 -311
- package/dist/InputVerificationCode-kMxc8wW7.js +0 -62
- package/dist/InputYearRange-WJKJeloR.js +0 -76
- package/dist/JSONSchema-Bs0EWcHb.js +0 -47
- package/dist/JSONSchemaEditor-BoAK9FOL.js +0 -66
- package/dist/Json-DFjy1HRw.js +0 -80
- package/dist/Link-nYGLB6gy.js +0 -57
- package/dist/List-D3183f4Z.js +0 -14
- package/dist/List-W3IAZR_6.js +0 -671
- package/dist/ListSelect-DWGbHVxd.js +0 -104
- package/dist/LocationPicker-2G9yOxtm.js +0 -121
- package/dist/Log-D6VU702y.js +0 -207
- package/dist/Mapping-BATMD_xR.js +0 -118
- package/dist/Markdown-Baxbu8lV.js +0 -53
- package/dist/Markdown-Cg-xahnQ.js +0 -6205
- package/dist/MatrixCheckboxes-B9hmFakW.js +0 -262
- package/dist/MultilineText-0fMQhUCY.js +0 -28
- package/dist/Nav-DHIehZOG.js +0 -639
- package/dist/NestedSelect-tQztH4PI.js +0 -517
- package/dist/Number-Cndoqeyx.js +0 -40
- package/dist/OfficeViewer-BVD_e5eZ.js +0 -169
- package/dist/Operation-DIv6n9dT.js +0 -36
- package/dist/Page-WoZtIIfk.js +0 -459
- package/dist/Pagination-DHvYHd_3.js +0 -61
- package/dist/PaginationWrapper-CtIJOXdw.js +0 -58
- package/dist/Panel-Dt4KQrKa.js +0 -156
- package/dist/Password-Wjfq7MSA.js +0 -45
- package/dist/Picker-Cu52ukRg.js +0 -488
- package/dist/Plain-DIlG753a.js +0 -62
- package/dist/PopUp-Bgkvnd4X.js +0 -2761
- package/dist/Portlet-3Nh2cWeq.js +0 -107
- package/dist/Progress-Dh2FTsky.js +0 -89
- package/dist/Property-DRSklFlT.js +0 -72
- package/dist/QRCode-BeUD-g8-.js +0 -1139
- package/dist/Radio-DrJJfNFI.js +0 -89
- package/dist/Radios-CL3mreXa.js +0 -176
- package/dist/Remark-Cmo-r6dp.js +0 -81
- package/dist/Remark-DuAbEmCW.js +0 -9
- package/dist/RichText-jkERm8rC.js +0 -13807
- package/dist/SearchBox-CTxSMcV2.js +0 -112
- package/dist/Select-D3LTuHwe.js +0 -362
- package/dist/Service-CN2v_Z9z.js +0 -347
- package/dist/Shape-Bi93tLCN.js +0 -37
- package/dist/Slider-C0jqeBGt.js +0 -78
- package/dist/SparkLine-Ce6-mdqG.js +0 -38
- package/dist/Spinner-DZDEct1A.js +0 -27
- package/dist/StaticHoc-BAdofX5w.js +0 -80
- package/dist/Status-CDC2e2_o.js +0 -93
- package/dist/Steps-CGyTaaVI.js +0 -271
- package/dist/Switch-QA0l7uEg.js +0 -100
- package/dist/SwitchContainer-zXvaPFlG.js +0 -93
- package/dist/Table-B8tWpiPU.js +0 -13
- package/dist/Table-DzGbNFxu.js +0 -3190
- package/dist/Table2-CQZ3und9.js +0 -1198
- package/dist/TableView-nlFBhvL1.js +0 -115
- package/dist/Tabs-XleB-2Mc.js +0 -487
- package/dist/TabsTransfer-CLLGXAkP.js +0 -188
- package/dist/TabsTransfer-Cs_Rg0TU.js +0 -11
- package/dist/TabsTransferPicker-VA3Vlla-.js +0 -99
- package/dist/Tag-tr5RKBfl.js +0 -75
- package/dist/Tasks-C2-ayUd-.js +0 -305
- package/dist/Textarea-_KbIxQet.js +0 -132
- package/dist/Timeline-CctoJRQo.js +0 -87
- package/dist/TooltipWrapper-BGNr8U2K.js +0 -83
- package/dist/Tpl-C28lpITc.js +0 -152
- package/dist/Transfer-Hjc9zR8W.js +0 -288
- package/dist/Transfer-tYS9Rx8U.js +0 -10
- package/dist/TransferPicker-C7Wzyuct.js +0 -123
- package/dist/TreeSelect-DAlWCEqs.js +0 -456
- package/dist/UUID-B5UZnlxW.js +0 -33
- package/dist/UserSelect-DqZZQB83.js +0 -170
- package/dist/VBox-C1OZZT8-.js +0 -38
- package/dist/Video-C1FRwLLL.js +0 -4068
- package/dist/WebComponent-g8Zc9zXp.js +0 -29
- package/dist/Wizard-DkqCsGz-.js +0 -585
- package/dist/Words-DUuKqyIf.js +0 -113
- package/dist/Wrapper-DmZ78GYG.js +0 -39
- package/dist/_getTag-CWmGzIun.js +0 -509
- package/dist/beneficiary-form-DCl2L16P.js +0 -3773
- package/dist/client-BEyTOBXT.js +0 -26
- package/dist/crypto-js-DUFYRUag.js +0 -3694
- package/dist/doc-B-Im0Knb.js +0 -1731
- package/dist/es-CsUppg1O.js +0 -837
- package/dist/esm-Cj_BRpNI.js +0 -35832
- package/dist/esm-DEyK_c3W.js +0 -25349
- package/dist/esm-SCCPj-cs.js +0 -93004
- package/dist/function-CNJMA2ft.js +0 -3151
- package/dist/isEqual-E2NjjS0_.js +0 -641
- package/dist/main-Bf7MY24z.js +0 -4475
- package/dist/mi18n-react.esm-y-nzmW0A.js +0 -1138
- package/dist/objectSpread2-smpSKONV.js +0 -27
- package/dist/omitBy-CD5n2TA7.js +0 -39
- package/dist/papaparse.min-3xa9r8Qi.js +0 -496
- package/dist/react-RxxVsDMo.js +0 -1205
- package/dist/react-cropper.es-anJ2KE7h.js +0 -1260
- package/dist/react-dom-D1mxcNoQ.js +0 -16864
- package/dist/react-g40aymqL.js +0 -2
- package/dist/rolldown-runtime-DwW8Tac2.js +0 -21
- package/dist/tslib.es6-DJiA3ePV.js +0 -170
- package/dist/xor-D-ggRBpm.js +0 -20
package/dist/es-CsUppg1O.js
DELETED
|
@@ -1,837 +0,0 @@
|
|
|
1
|
-
import { s as __toESM, t as __commonJSMin } from "./rolldown-runtime-DwW8Tac2.js";
|
|
2
|
-
import { t as require_react } from "./react-RxxVsDMo.js";
|
|
3
|
-
import { a as __generator, l as __spread, n as __awaiter } from "./tslib.es6-DJiA3ePV.js";
|
|
4
|
-
import { K as require_prop_types } from "./esm-DEyK_c3W.js";
|
|
5
|
-
var COMMON_MIME_TYPES = new Map([
|
|
6
|
-
["aac", "audio/aac"],
|
|
7
|
-
["abw", "application/x-abiword"],
|
|
8
|
-
["arc", "application/x-freearc"],
|
|
9
|
-
["avif", "image/avif"],
|
|
10
|
-
["avi", "video/x-msvideo"],
|
|
11
|
-
["azw", "application/vnd.amazon.ebook"],
|
|
12
|
-
["bin", "application/octet-stream"],
|
|
13
|
-
["bmp", "image/bmp"],
|
|
14
|
-
["bz", "application/x-bzip"],
|
|
15
|
-
["bz2", "application/x-bzip2"],
|
|
16
|
-
["cda", "application/x-cdf"],
|
|
17
|
-
["csh", "application/x-csh"],
|
|
18
|
-
["css", "text/css"],
|
|
19
|
-
["csv", "text/csv"],
|
|
20
|
-
["doc", "application/msword"],
|
|
21
|
-
["docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"],
|
|
22
|
-
["eot", "application/vnd.ms-fontobject"],
|
|
23
|
-
["epub", "application/epub+zip"],
|
|
24
|
-
["gz", "application/gzip"],
|
|
25
|
-
["gif", "image/gif"],
|
|
26
|
-
["htm", "text/html"],
|
|
27
|
-
["html", "text/html"],
|
|
28
|
-
["ico", "image/vnd.microsoft.icon"],
|
|
29
|
-
["ics", "text/calendar"],
|
|
30
|
-
["jar", "application/java-archive"],
|
|
31
|
-
["jpeg", "image/jpeg"],
|
|
32
|
-
["jpg", "image/jpeg"],
|
|
33
|
-
["js", "text/javascript"],
|
|
34
|
-
["json", "application/json"],
|
|
35
|
-
["jsonld", "application/ld+json"],
|
|
36
|
-
["mid", "audio/midi"],
|
|
37
|
-
["midi", "audio/midi"],
|
|
38
|
-
["mjs", "text/javascript"],
|
|
39
|
-
["mp3", "audio/mpeg"],
|
|
40
|
-
["mp4", "video/mp4"],
|
|
41
|
-
["mpeg", "video/mpeg"],
|
|
42
|
-
["mpkg", "application/vnd.apple.installer+xml"],
|
|
43
|
-
["odp", "application/vnd.oasis.opendocument.presentation"],
|
|
44
|
-
["ods", "application/vnd.oasis.opendocument.spreadsheet"],
|
|
45
|
-
["odt", "application/vnd.oasis.opendocument.text"],
|
|
46
|
-
["oga", "audio/ogg"],
|
|
47
|
-
["ogv", "video/ogg"],
|
|
48
|
-
["ogx", "application/ogg"],
|
|
49
|
-
["opus", "audio/opus"],
|
|
50
|
-
["otf", "font/otf"],
|
|
51
|
-
["png", "image/png"],
|
|
52
|
-
["pdf", "application/pdf"],
|
|
53
|
-
["php", "application/x-httpd-php"],
|
|
54
|
-
["ppt", "application/vnd.ms-powerpoint"],
|
|
55
|
-
["pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation"],
|
|
56
|
-
["rar", "application/vnd.rar"],
|
|
57
|
-
["rtf", "application/rtf"],
|
|
58
|
-
["sh", "application/x-sh"],
|
|
59
|
-
["svg", "image/svg+xml"],
|
|
60
|
-
["swf", "application/x-shockwave-flash"],
|
|
61
|
-
["tar", "application/x-tar"],
|
|
62
|
-
["tif", "image/tiff"],
|
|
63
|
-
["tiff", "image/tiff"],
|
|
64
|
-
["ts", "video/mp2t"],
|
|
65
|
-
["ttf", "font/ttf"],
|
|
66
|
-
["txt", "text/plain"],
|
|
67
|
-
["vsd", "application/vnd.visio"],
|
|
68
|
-
["wav", "audio/wav"],
|
|
69
|
-
["weba", "audio/webm"],
|
|
70
|
-
["webm", "video/webm"],
|
|
71
|
-
["webp", "image/webp"],
|
|
72
|
-
["woff", "font/woff"],
|
|
73
|
-
["woff2", "font/woff2"],
|
|
74
|
-
["xhtml", "application/xhtml+xml"],
|
|
75
|
-
["xls", "application/vnd.ms-excel"],
|
|
76
|
-
["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
|
|
77
|
-
["xml", "application/xml"],
|
|
78
|
-
["xul", "application/vnd.mozilla.xul+xml"],
|
|
79
|
-
["zip", "application/zip"],
|
|
80
|
-
["7z", "application/x-7z-compressed"],
|
|
81
|
-
["mkv", "video/x-matroska"],
|
|
82
|
-
["mov", "video/quicktime"],
|
|
83
|
-
["msg", "application/vnd.ms-outlook"]
|
|
84
|
-
]);
|
|
85
|
-
function toFileWithPath(e, t) {
|
|
86
|
-
var n = withMimeType(e);
|
|
87
|
-
if (typeof n.path != "string") {
|
|
88
|
-
var r = e.webkitRelativePath;
|
|
89
|
-
Object.defineProperty(n, "path", {
|
|
90
|
-
value: typeof t == "string" ? t : typeof r == "string" && r.length > 0 ? r : e.name,
|
|
91
|
-
writable: !1,
|
|
92
|
-
configurable: !1,
|
|
93
|
-
enumerable: !0
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
return n;
|
|
97
|
-
}
|
|
98
|
-
function withMimeType(e) {
|
|
99
|
-
var t = e.name;
|
|
100
|
-
if (t && t.lastIndexOf(".") !== -1 && !e.type) {
|
|
101
|
-
var n = t.split(".").pop().toLowerCase(), r = COMMON_MIME_TYPES.get(n);
|
|
102
|
-
r && Object.defineProperty(e, "type", {
|
|
103
|
-
value: r,
|
|
104
|
-
writable: !1,
|
|
105
|
-
configurable: !1,
|
|
106
|
-
enumerable: !0
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
return e;
|
|
110
|
-
}
|
|
111
|
-
var FILES_TO_IGNORE = [".DS_Store", "Thumbs.db"];
|
|
112
|
-
function fromEvent(e) {
|
|
113
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
114
|
-
return __generator(this, function(t) {
|
|
115
|
-
return isObject(e) && isDataTransfer(e) ? [2, getDataTransferFiles(e.dataTransfer, e.type)] : isChangeEvt(e) ? [2, getInputFiles(e)] : Array.isArray(e) && e.every(function(e) {
|
|
116
|
-
return "getFile" in e && typeof e.getFile == "function";
|
|
117
|
-
}) ? [2, getFsHandleFiles(e)] : [2, []];
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
function isDataTransfer(e) {
|
|
122
|
-
return isObject(e.dataTransfer);
|
|
123
|
-
}
|
|
124
|
-
function isChangeEvt(e) {
|
|
125
|
-
return isObject(e) && isObject(e.target);
|
|
126
|
-
}
|
|
127
|
-
function isObject(e) {
|
|
128
|
-
return typeof e == "object" && !!e;
|
|
129
|
-
}
|
|
130
|
-
function getInputFiles(e) {
|
|
131
|
-
return fromList(e.target.files).map(function(e) {
|
|
132
|
-
return toFileWithPath(e);
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
function getFsHandleFiles(e) {
|
|
136
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
137
|
-
var t;
|
|
138
|
-
return __generator(this, function(n) {
|
|
139
|
-
switch (n.label) {
|
|
140
|
-
case 0: return [4, Promise.all(e.map(function(e) {
|
|
141
|
-
return e.getFile();
|
|
142
|
-
}))];
|
|
143
|
-
case 1: return t = n.sent(), [2, t.map(function(e) {
|
|
144
|
-
return toFileWithPath(e);
|
|
145
|
-
})];
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
function getDataTransferFiles(e, t) {
|
|
151
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
152
|
-
var n, i;
|
|
153
|
-
return __generator(this, function(r) {
|
|
154
|
-
switch (r.label) {
|
|
155
|
-
case 0: return e === null ? [2, []] : e.items ? (n = fromList(e.items).filter(function(e) {
|
|
156
|
-
return e.kind === "file";
|
|
157
|
-
}), t === "drop" ? [4, Promise.all(n.map(toFilePromises))] : [2, n]) : [3, 2];
|
|
158
|
-
case 1: return i = r.sent(), [2, noIgnoredFiles(flatten(i))];
|
|
159
|
-
case 2: return [2, noIgnoredFiles(fromList(e.files).map(function(e) {
|
|
160
|
-
return toFileWithPath(e);
|
|
161
|
-
}))];
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
function noIgnoredFiles(e) {
|
|
167
|
-
return e.filter(function(e) {
|
|
168
|
-
return FILES_TO_IGNORE.indexOf(e.name) === -1;
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
function fromList(e) {
|
|
172
|
-
if (e === null) return [];
|
|
173
|
-
for (var t = [], n = 0; n < e.length; n++) {
|
|
174
|
-
var r = e[n];
|
|
175
|
-
t.push(r);
|
|
176
|
-
}
|
|
177
|
-
return t;
|
|
178
|
-
}
|
|
179
|
-
function toFilePromises(e) {
|
|
180
|
-
if (typeof e.webkitGetAsEntry != "function") return fromDataTransferItem(e);
|
|
181
|
-
var t = e.webkitGetAsEntry();
|
|
182
|
-
return t && t.isDirectory ? fromDirEntry(t) : fromDataTransferItem(e);
|
|
183
|
-
}
|
|
184
|
-
function flatten(e) {
|
|
185
|
-
return e.reduce(function(e, t) {
|
|
186
|
-
return __spread(e, Array.isArray(t) ? flatten(t) : [t]);
|
|
187
|
-
}, []);
|
|
188
|
-
}
|
|
189
|
-
function fromDataTransferItem(e) {
|
|
190
|
-
var t = e.getAsFile();
|
|
191
|
-
if (!t) return Promise.reject(e + " is not a File");
|
|
192
|
-
var n = toFileWithPath(t);
|
|
193
|
-
return Promise.resolve(n);
|
|
194
|
-
}
|
|
195
|
-
function fromEntry(e) {
|
|
196
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
197
|
-
return __generator(this, function(t) {
|
|
198
|
-
return [2, e.isDirectory ? fromDirEntry(e) : fromFileEntry(e)];
|
|
199
|
-
});
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
function fromDirEntry(e) {
|
|
203
|
-
var t = e.createReader();
|
|
204
|
-
return new Promise(function(e, n) {
|
|
205
|
-
var i = [];
|
|
206
|
-
function o() {
|
|
207
|
-
var s = this;
|
|
208
|
-
t.readEntries(function(t) {
|
|
209
|
-
return __awaiter(s, void 0, void 0, function() {
|
|
210
|
-
var a, s, c;
|
|
211
|
-
return __generator(this, function(r) {
|
|
212
|
-
switch (r.label) {
|
|
213
|
-
case 0:
|
|
214
|
-
if (t.length) return [3, 5];
|
|
215
|
-
r.label = 1;
|
|
216
|
-
case 1: return r.trys.push([
|
|
217
|
-
1,
|
|
218
|
-
3,
|
|
219
|
-
,
|
|
220
|
-
4
|
|
221
|
-
]), [4, Promise.all(i)];
|
|
222
|
-
case 2: return a = r.sent(), e(a), [3, 4];
|
|
223
|
-
case 3: return s = r.sent(), n(s), [3, 4];
|
|
224
|
-
case 4: return [3, 6];
|
|
225
|
-
case 5: c = Promise.all(t.map(fromEntry)), i.push(c), o(), r.label = 6;
|
|
226
|
-
case 6: return [2];
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
});
|
|
230
|
-
}, function(e) {
|
|
231
|
-
n(e);
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
o();
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
function fromFileEntry(e) {
|
|
238
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
239
|
-
return __generator(this, function(t) {
|
|
240
|
-
return [2, new Promise(function(t, n) {
|
|
241
|
-
e.file(function(n) {
|
|
242
|
-
t(toFileWithPath(n, e.fullPath));
|
|
243
|
-
}, function(e) {
|
|
244
|
-
n(e);
|
|
245
|
-
});
|
|
246
|
-
})];
|
|
247
|
-
});
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
var require_es = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
251
|
-
e.__esModule = !0, e.default = function(e, t) {
|
|
252
|
-
if (e && t) {
|
|
253
|
-
var n = Array.isArray(t) ? t : t.split(","), r = e.name || "", i = (e.type || "").toLowerCase(), a = i.replace(/\/.*$/, "");
|
|
254
|
-
return n.some(function(e) {
|
|
255
|
-
var t = e.trim().toLowerCase();
|
|
256
|
-
return t.charAt(0) === "." ? r.toLowerCase().endsWith(t) : t.endsWith("/*") ? a === t.replace(/\/.*$/, "") : i === t;
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
return !0;
|
|
260
|
-
};
|
|
261
|
-
})), import_es = /* @__PURE__ */ __toESM(require_es());
|
|
262
|
-
function ownKeys$1(e, t) {
|
|
263
|
-
var n = Object.keys(e);
|
|
264
|
-
if (Object.getOwnPropertySymbols) {
|
|
265
|
-
var r = Object.getOwnPropertySymbols(e);
|
|
266
|
-
t && (r = r.filter(function(t) {
|
|
267
|
-
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
268
|
-
})), n.push.apply(n, r);
|
|
269
|
-
}
|
|
270
|
-
return n;
|
|
271
|
-
}
|
|
272
|
-
function _objectSpread$1(e) {
|
|
273
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
274
|
-
var n = arguments[t] == null ? {} : arguments[t];
|
|
275
|
-
t % 2 ? ownKeys$1(Object(n), !0).forEach(function(t) {
|
|
276
|
-
_defineProperty$1(e, t, n[t]);
|
|
277
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ownKeys$1(Object(n)).forEach(function(t) {
|
|
278
|
-
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
return e;
|
|
282
|
-
}
|
|
283
|
-
function _defineProperty$1(e, t, n) {
|
|
284
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
285
|
-
value: n,
|
|
286
|
-
enumerable: !0,
|
|
287
|
-
configurable: !0,
|
|
288
|
-
writable: !0
|
|
289
|
-
}) : e[t] = n, e;
|
|
290
|
-
}
|
|
291
|
-
function _slicedToArray$1(e, t) {
|
|
292
|
-
return _arrayWithHoles$1(e) || _iterableToArrayLimit$1(e, t) || _unsupportedIterableToArray$1(e, t) || _nonIterableRest$1();
|
|
293
|
-
}
|
|
294
|
-
function _nonIterableRest$1() {
|
|
295
|
-
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
296
|
-
}
|
|
297
|
-
function _unsupportedIterableToArray$1(e, t) {
|
|
298
|
-
if (e) {
|
|
299
|
-
if (typeof e == "string") return _arrayLikeToArray$1(e, t);
|
|
300
|
-
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
301
|
-
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
302
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(e, t);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
function _arrayLikeToArray$1(e, t) {
|
|
306
|
-
(t == null || t > e.length) && (t = e.length);
|
|
307
|
-
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
308
|
-
return r;
|
|
309
|
-
}
|
|
310
|
-
function _iterableToArrayLimit$1(e, t) {
|
|
311
|
-
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
312
|
-
if (n != null) {
|
|
313
|
-
var r = [], i = !0, a = !1, o, s;
|
|
314
|
-
try {
|
|
315
|
-
for (n = n.call(e); !(i = (o = n.next()).done) && (r.push(o.value), !(t && r.length === t)); i = !0);
|
|
316
|
-
} catch (e) {
|
|
317
|
-
a = !0, s = e;
|
|
318
|
-
} finally {
|
|
319
|
-
try {
|
|
320
|
-
!i && n.return != null && n.return();
|
|
321
|
-
} finally {
|
|
322
|
-
if (a) throw s;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
return r;
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
function _arrayWithHoles$1(e) {
|
|
329
|
-
if (Array.isArray(e)) return e;
|
|
330
|
-
}
|
|
331
|
-
var FILE_INVALID_TYPE = "file-invalid-type", FILE_TOO_LARGE = "file-too-large", FILE_TOO_SMALL = "file-too-small", TOO_MANY_FILES = "too-many-files", ErrorCode = {
|
|
332
|
-
FileInvalidType: FILE_INVALID_TYPE,
|
|
333
|
-
FileTooLarge: FILE_TOO_LARGE,
|
|
334
|
-
FileTooSmall: FILE_TOO_SMALL,
|
|
335
|
-
TooManyFiles: TOO_MANY_FILES
|
|
336
|
-
}, getInvalidTypeRejectionErr = function(e) {
|
|
337
|
-
return e = Array.isArray(e) && e.length === 1 ? e[0] : e, {
|
|
338
|
-
code: FILE_INVALID_TYPE,
|
|
339
|
-
message: `File type must be ${Array.isArray(e) ? `one of ${e.join(", ")}` : e}`
|
|
340
|
-
};
|
|
341
|
-
}, getTooLargeRejectionErr = function(e) {
|
|
342
|
-
return {
|
|
343
|
-
code: FILE_TOO_LARGE,
|
|
344
|
-
message: `File is larger than ${e} ${e === 1 ? "byte" : "bytes"}`
|
|
345
|
-
};
|
|
346
|
-
}, getTooSmallRejectionErr = function(e) {
|
|
347
|
-
return {
|
|
348
|
-
code: FILE_TOO_SMALL,
|
|
349
|
-
message: `File is smaller than ${e} ${e === 1 ? "byte" : "bytes"}`
|
|
350
|
-
};
|
|
351
|
-
}, TOO_MANY_FILES_REJECTION = {
|
|
352
|
-
code: TOO_MANY_FILES,
|
|
353
|
-
message: "Too many files"
|
|
354
|
-
};
|
|
355
|
-
function fileAccepted(e, t) {
|
|
356
|
-
var n = e.type === "application/x-moz-file" || (0, import_es.default)(e, t);
|
|
357
|
-
return [n, n ? null : getInvalidTypeRejectionErr(t)];
|
|
358
|
-
}
|
|
359
|
-
function fileMatchSize(e, t, n) {
|
|
360
|
-
if (isDefined(e.size)) {
|
|
361
|
-
if (isDefined(t) && isDefined(n)) {
|
|
362
|
-
if (e.size > n) return [!1, getTooLargeRejectionErr(n)];
|
|
363
|
-
if (e.size < t) return [!1, getTooSmallRejectionErr(t)];
|
|
364
|
-
} else if (isDefined(t) && e.size < t) return [!1, getTooSmallRejectionErr(t)];
|
|
365
|
-
else if (isDefined(n) && e.size > n) return [!1, getTooLargeRejectionErr(n)];
|
|
366
|
-
}
|
|
367
|
-
return [!0, null];
|
|
368
|
-
}
|
|
369
|
-
function isDefined(e) {
|
|
370
|
-
return e != null;
|
|
371
|
-
}
|
|
372
|
-
function allFilesAccepted(e) {
|
|
373
|
-
var t = e.files, n = e.accept, r = e.minSize, i = e.maxSize, a = e.multiple, o = e.maxFiles;
|
|
374
|
-
return !a && t.length > 1 || a && o >= 1 && t.length > o ? !1 : t.every(function(e) {
|
|
375
|
-
var t = _slicedToArray$1(fileAccepted(e, n), 1)[0], a = _slicedToArray$1(fileMatchSize(e, r, i), 1)[0];
|
|
376
|
-
return t && a;
|
|
377
|
-
});
|
|
378
|
-
}
|
|
379
|
-
function isPropagationStopped(e) {
|
|
380
|
-
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : e.cancelBubble === void 0 ? !1 : e.cancelBubble;
|
|
381
|
-
}
|
|
382
|
-
function isEvtWithFiles(e) {
|
|
383
|
-
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(e) {
|
|
384
|
-
return e === "Files" || e === "application/x-moz-file";
|
|
385
|
-
}) : !!e.target && !!e.target.files;
|
|
386
|
-
}
|
|
387
|
-
function onDocumentDragOver(e) {
|
|
388
|
-
e.preventDefault();
|
|
389
|
-
}
|
|
390
|
-
function isIe(e) {
|
|
391
|
-
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
392
|
-
}
|
|
393
|
-
function isEdge(e) {
|
|
394
|
-
return e.indexOf("Edge/") !== -1;
|
|
395
|
-
}
|
|
396
|
-
function isIeOrEdge() {
|
|
397
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
398
|
-
return isIe(e) || isEdge(e);
|
|
399
|
-
}
|
|
400
|
-
function composeEventHandlers() {
|
|
401
|
-
var e = [...arguments];
|
|
402
|
-
return function(t) {
|
|
403
|
-
var n = [...arguments].slice(1);
|
|
404
|
-
return e.some(function(e) {
|
|
405
|
-
return !isPropagationStopped(t) && e && e.apply(void 0, [t].concat(n)), isPropagationStopped(t);
|
|
406
|
-
});
|
|
407
|
-
};
|
|
408
|
-
}
|
|
409
|
-
function canUseFileSystemAccessAPI() {
|
|
410
|
-
return "showOpenFilePicker" in window;
|
|
411
|
-
}
|
|
412
|
-
function filePickerOptionsTypes(e) {
|
|
413
|
-
return e = typeof e == "string" ? e.split(",") : e, [{
|
|
414
|
-
description: "everything",
|
|
415
|
-
accept: Array.isArray(e) ? e.filter(function(e) {
|
|
416
|
-
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || /\w+\/[-+.\w]+/g.test(e);
|
|
417
|
-
}).reduce(function(e, t) {
|
|
418
|
-
return _objectSpread$1(_objectSpread$1({}, e), {}, _defineProperty$1({}, t, []));
|
|
419
|
-
}, {}) : {}
|
|
420
|
-
}];
|
|
421
|
-
}
|
|
422
|
-
var import_react = /* @__PURE__ */ __toESM(require_react()), import_prop_types = /* @__PURE__ */ __toESM(require_prop_types()), _excluded = ["children"], _excluded2 = ["open"], _excluded3 = [
|
|
423
|
-
"refKey",
|
|
424
|
-
"role",
|
|
425
|
-
"onKeyDown",
|
|
426
|
-
"onFocus",
|
|
427
|
-
"onBlur",
|
|
428
|
-
"onClick",
|
|
429
|
-
"onDragEnter",
|
|
430
|
-
"onDragOver",
|
|
431
|
-
"onDragLeave",
|
|
432
|
-
"onDrop"
|
|
433
|
-
], _excluded4 = [
|
|
434
|
-
"refKey",
|
|
435
|
-
"onChange",
|
|
436
|
-
"onClick"
|
|
437
|
-
];
|
|
438
|
-
function _toConsumableArray(e) {
|
|
439
|
-
return _arrayWithoutHoles(e) || _iterableToArray(e) || _unsupportedIterableToArray(e) || _nonIterableSpread();
|
|
440
|
-
}
|
|
441
|
-
function _nonIterableSpread() {
|
|
442
|
-
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
443
|
-
}
|
|
444
|
-
function _iterableToArray(e) {
|
|
445
|
-
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
446
|
-
}
|
|
447
|
-
function _arrayWithoutHoles(e) {
|
|
448
|
-
if (Array.isArray(e)) return _arrayLikeToArray(e);
|
|
449
|
-
}
|
|
450
|
-
function _slicedToArray(e, t) {
|
|
451
|
-
return _arrayWithHoles(e) || _iterableToArrayLimit(e, t) || _unsupportedIterableToArray(e, t) || _nonIterableRest();
|
|
452
|
-
}
|
|
453
|
-
function _nonIterableRest() {
|
|
454
|
-
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
455
|
-
}
|
|
456
|
-
function _unsupportedIterableToArray(e, t) {
|
|
457
|
-
if (e) {
|
|
458
|
-
if (typeof e == "string") return _arrayLikeToArray(e, t);
|
|
459
|
-
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
460
|
-
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
461
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(e, t);
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
function _arrayLikeToArray(e, t) {
|
|
465
|
-
(t == null || t > e.length) && (t = e.length);
|
|
466
|
-
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
467
|
-
return r;
|
|
468
|
-
}
|
|
469
|
-
function _iterableToArrayLimit(e, t) {
|
|
470
|
-
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
471
|
-
if (n != null) {
|
|
472
|
-
var r = [], i = !0, a = !1, o, s;
|
|
473
|
-
try {
|
|
474
|
-
for (n = n.call(e); !(i = (o = n.next()).done) && (r.push(o.value), !(t && r.length === t)); i = !0);
|
|
475
|
-
} catch (e) {
|
|
476
|
-
a = !0, s = e;
|
|
477
|
-
} finally {
|
|
478
|
-
try {
|
|
479
|
-
!i && n.return != null && n.return();
|
|
480
|
-
} finally {
|
|
481
|
-
if (a) throw s;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
return r;
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
function _arrayWithHoles(e) {
|
|
488
|
-
if (Array.isArray(e)) return e;
|
|
489
|
-
}
|
|
490
|
-
function ownKeys(e, t) {
|
|
491
|
-
var n = Object.keys(e);
|
|
492
|
-
if (Object.getOwnPropertySymbols) {
|
|
493
|
-
var r = Object.getOwnPropertySymbols(e);
|
|
494
|
-
t && (r = r.filter(function(t) {
|
|
495
|
-
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
496
|
-
})), n.push.apply(n, r);
|
|
497
|
-
}
|
|
498
|
-
return n;
|
|
499
|
-
}
|
|
500
|
-
function _objectSpread(e) {
|
|
501
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
502
|
-
var n = arguments[t] == null ? {} : arguments[t];
|
|
503
|
-
t % 2 ? ownKeys(Object(n), !0).forEach(function(t) {
|
|
504
|
-
_defineProperty(e, t, n[t]);
|
|
505
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ownKeys(Object(n)).forEach(function(t) {
|
|
506
|
-
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
return e;
|
|
510
|
-
}
|
|
511
|
-
function _defineProperty(e, t, n) {
|
|
512
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
513
|
-
value: n,
|
|
514
|
-
enumerable: !0,
|
|
515
|
-
configurable: !0,
|
|
516
|
-
writable: !0
|
|
517
|
-
}) : e[t] = n, e;
|
|
518
|
-
}
|
|
519
|
-
function _objectWithoutProperties(e, t) {
|
|
520
|
-
if (e == null) return {};
|
|
521
|
-
var n = _objectWithoutPropertiesLoose(e, t), r, i;
|
|
522
|
-
if (Object.getOwnPropertySymbols) {
|
|
523
|
-
var a = Object.getOwnPropertySymbols(e);
|
|
524
|
-
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
525
|
-
}
|
|
526
|
-
return n;
|
|
527
|
-
}
|
|
528
|
-
function _objectWithoutPropertiesLoose(e, t) {
|
|
529
|
-
if (e == null) return {};
|
|
530
|
-
var n = {}, r = Object.keys(e), i, a;
|
|
531
|
-
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
532
|
-
return n;
|
|
533
|
-
}
|
|
534
|
-
var Dropzone = /* @__PURE__ */ (0, import_react.forwardRef)(function(e, t) {
|
|
535
|
-
var n = e.children, r = useDropzone(_objectWithoutProperties(e, _excluded)), i = r.open, a = _objectWithoutProperties(r, _excluded2);
|
|
536
|
-
return (0, import_react.useImperativeHandle)(t, function() {
|
|
537
|
-
return { open: i };
|
|
538
|
-
}, [i]), /* @__PURE__ */ import_react.createElement(import_react.Fragment, null, n(_objectSpread(_objectSpread({}, a), {}, { open: i })));
|
|
539
|
-
});
|
|
540
|
-
Dropzone.displayName = "Dropzone";
|
|
541
|
-
var defaultProps = {
|
|
542
|
-
disabled: !1,
|
|
543
|
-
getFilesFromEvent: fromEvent,
|
|
544
|
-
maxSize: Infinity,
|
|
545
|
-
minSize: 0,
|
|
546
|
-
multiple: !0,
|
|
547
|
-
maxFiles: 0,
|
|
548
|
-
preventDropOnDocument: !0,
|
|
549
|
-
noClick: !1,
|
|
550
|
-
noKeyboard: !1,
|
|
551
|
-
noDrag: !1,
|
|
552
|
-
noDragEventsBubbling: !1,
|
|
553
|
-
validator: null,
|
|
554
|
-
useFsAccessApi: !1
|
|
555
|
-
};
|
|
556
|
-
Dropzone.defaultProps = defaultProps, Dropzone.propTypes = {
|
|
557
|
-
children: import_prop_types.default.func,
|
|
558
|
-
accept: import_prop_types.default.oneOfType([import_prop_types.default.string, import_prop_types.default.arrayOf(import_prop_types.default.string)]),
|
|
559
|
-
multiple: import_prop_types.default.bool,
|
|
560
|
-
preventDropOnDocument: import_prop_types.default.bool,
|
|
561
|
-
noClick: import_prop_types.default.bool,
|
|
562
|
-
noKeyboard: import_prop_types.default.bool,
|
|
563
|
-
noDrag: import_prop_types.default.bool,
|
|
564
|
-
noDragEventsBubbling: import_prop_types.default.bool,
|
|
565
|
-
minSize: import_prop_types.default.number,
|
|
566
|
-
maxSize: import_prop_types.default.number,
|
|
567
|
-
maxFiles: import_prop_types.default.number,
|
|
568
|
-
disabled: import_prop_types.default.bool,
|
|
569
|
-
getFilesFromEvent: import_prop_types.default.func,
|
|
570
|
-
onFileDialogCancel: import_prop_types.default.func,
|
|
571
|
-
onFileDialogOpen: import_prop_types.default.func,
|
|
572
|
-
useFsAccessApi: import_prop_types.default.bool,
|
|
573
|
-
onDragEnter: import_prop_types.default.func,
|
|
574
|
-
onDragLeave: import_prop_types.default.func,
|
|
575
|
-
onDragOver: import_prop_types.default.func,
|
|
576
|
-
onDrop: import_prop_types.default.func,
|
|
577
|
-
onDropAccepted: import_prop_types.default.func,
|
|
578
|
-
onDropRejected: import_prop_types.default.func,
|
|
579
|
-
validator: import_prop_types.default.func
|
|
580
|
-
};
|
|
581
|
-
var es_default = Dropzone, initialState = {
|
|
582
|
-
isFocused: !1,
|
|
583
|
-
isFileDialogActive: !1,
|
|
584
|
-
isDragActive: !1,
|
|
585
|
-
isDragAccept: !1,
|
|
586
|
-
isDragReject: !1,
|
|
587
|
-
draggedFiles: [],
|
|
588
|
-
acceptedFiles: [],
|
|
589
|
-
fileRejections: []
|
|
590
|
-
};
|
|
591
|
-
function useDropzone() {
|
|
592
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = _objectSpread(_objectSpread({}, defaultProps), e), n = t.accept, r = t.disabled, i = t.getFilesFromEvent, a = t.maxSize, o = t.minSize, s = t.multiple, c = t.maxFiles, l = t.onDragEnter, u = t.onDragLeave, d = t.onDragOver, f = t.onDrop, p = t.onDropAccepted, m = t.onDropRejected, h = t.onFileDialogCancel, g = t.onFileDialogOpen, _ = t.useFsAccessApi, v = t.preventDropOnDocument, y = t.noClick, b = t.noKeyboard, x = t.noDrag, S = t.noDragEventsBubbling, C = t.validator, w = (0, import_react.useMemo)(function() {
|
|
593
|
-
return typeof g == "function" ? g : noop;
|
|
594
|
-
}, [g]), T = (0, import_react.useMemo)(function() {
|
|
595
|
-
return typeof h == "function" ? h : noop;
|
|
596
|
-
}, [h]), E = (0, import_react.useRef)(null), D = (0, import_react.useRef)(null), O = _slicedToArray((0, import_react.useReducer)(reducer, initialState), 2), k = O[0], A = O[1], j = k.isFocused, M = k.isFileDialogActive, N = k.draggedFiles, P = function() {
|
|
597
|
-
M && setTimeout(function() {
|
|
598
|
-
D.current && (D.current.files.length || (A({ type: "closeDialog" }), T()));
|
|
599
|
-
}, 300);
|
|
600
|
-
};
|
|
601
|
-
(0, import_react.useEffect)(function() {
|
|
602
|
-
return _ && canUseFileSystemAccessAPI() ? function() {} : (window.addEventListener("focus", P, !1), function() {
|
|
603
|
-
window.removeEventListener("focus", P, !1);
|
|
604
|
-
});
|
|
605
|
-
}, [
|
|
606
|
-
D,
|
|
607
|
-
M,
|
|
608
|
-
T,
|
|
609
|
-
_
|
|
610
|
-
]);
|
|
611
|
-
var F = (0, import_react.useRef)([]), I = function(e) {
|
|
612
|
-
E.current && E.current.contains(e.target) || (e.preventDefault(), F.current = []);
|
|
613
|
-
};
|
|
614
|
-
(0, import_react.useEffect)(function() {
|
|
615
|
-
return v && (document.addEventListener("dragover", onDocumentDragOver, !1), document.addEventListener("drop", I, !1)), function() {
|
|
616
|
-
v && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", I));
|
|
617
|
-
};
|
|
618
|
-
}, [E, v]);
|
|
619
|
-
var L = (0, import_react.useCallback)(function(e) {
|
|
620
|
-
e.preventDefault(), e.persist(), X(e), F.current = [].concat(_toConsumableArray(F.current), [e.target]), isEvtWithFiles(e) && Promise.resolve(i(e)).then(function(t) {
|
|
621
|
-
isPropagationStopped(e) && !S || (A({
|
|
622
|
-
draggedFiles: t,
|
|
623
|
-
isDragActive: !0,
|
|
624
|
-
type: "setDraggedFiles"
|
|
625
|
-
}), l && l(e));
|
|
626
|
-
});
|
|
627
|
-
}, [
|
|
628
|
-
i,
|
|
629
|
-
l,
|
|
630
|
-
S
|
|
631
|
-
]), R = (0, import_react.useCallback)(function(e) {
|
|
632
|
-
e.preventDefault(), e.persist(), X(e);
|
|
633
|
-
var t = isEvtWithFiles(e);
|
|
634
|
-
if (t && e.dataTransfer) try {
|
|
635
|
-
e.dataTransfer.dropEffect = "copy";
|
|
636
|
-
} catch {}
|
|
637
|
-
return t && d && d(e), !1;
|
|
638
|
-
}, [d, S]), z = (0, import_react.useCallback)(function(e) {
|
|
639
|
-
e.preventDefault(), e.persist(), X(e);
|
|
640
|
-
var t = F.current.filter(function(e) {
|
|
641
|
-
return E.current && E.current.contains(e);
|
|
642
|
-
}), n = t.indexOf(e.target);
|
|
643
|
-
n !== -1 && t.splice(n, 1), F.current = t, !(t.length > 0) && (A({
|
|
644
|
-
isDragActive: !1,
|
|
645
|
-
type: "setDraggedFiles",
|
|
646
|
-
draggedFiles: []
|
|
647
|
-
}), isEvtWithFiles(e) && u && u(e));
|
|
648
|
-
}, [
|
|
649
|
-
E,
|
|
650
|
-
u,
|
|
651
|
-
S
|
|
652
|
-
]), B = (0, import_react.useCallback)(function(e, t) {
|
|
653
|
-
var r = [], i = [];
|
|
654
|
-
e.forEach(function(e) {
|
|
655
|
-
var t = _slicedToArray(fileAccepted(e, n), 2), s = t[0], c = t[1], l = _slicedToArray(fileMatchSize(e, o, a), 2), u = l[0], d = l[1], f = C ? C(e) : null;
|
|
656
|
-
if (s && u && !f) r.push(e);
|
|
657
|
-
else {
|
|
658
|
-
var p = [c, d];
|
|
659
|
-
f && (p = p.concat(f)), i.push({
|
|
660
|
-
file: e,
|
|
661
|
-
errors: p.filter(function(e) {
|
|
662
|
-
return e;
|
|
663
|
-
})
|
|
664
|
-
});
|
|
665
|
-
}
|
|
666
|
-
}), (!s && r.length > 1 || s && c >= 1 && r.length > c) && (r.forEach(function(e) {
|
|
667
|
-
i.push({
|
|
668
|
-
file: e,
|
|
669
|
-
errors: [TOO_MANY_FILES_REJECTION]
|
|
670
|
-
});
|
|
671
|
-
}), r.splice(0)), A({
|
|
672
|
-
acceptedFiles: r,
|
|
673
|
-
fileRejections: i,
|
|
674
|
-
type: "setFiles"
|
|
675
|
-
}), f && f(r, i, t), i.length > 0 && m && m(i, t), r.length > 0 && p && p(r, t);
|
|
676
|
-
}, [
|
|
677
|
-
A,
|
|
678
|
-
s,
|
|
679
|
-
n,
|
|
680
|
-
o,
|
|
681
|
-
a,
|
|
682
|
-
c,
|
|
683
|
-
f,
|
|
684
|
-
p,
|
|
685
|
-
m,
|
|
686
|
-
C
|
|
687
|
-
]), V = (0, import_react.useCallback)(function(e) {
|
|
688
|
-
e.preventDefault(), e.persist(), X(e), F.current = [], isEvtWithFiles(e) && Promise.resolve(i(e)).then(function(t) {
|
|
689
|
-
isPropagationStopped(e) && !S || B(t, e);
|
|
690
|
-
}), A({ type: "reset" });
|
|
691
|
-
}, [
|
|
692
|
-
i,
|
|
693
|
-
B,
|
|
694
|
-
S
|
|
695
|
-
]), H = (0, import_react.useCallback)(function() {
|
|
696
|
-
if (_ && canUseFileSystemAccessAPI()) {
|
|
697
|
-
A({ type: "openDialog" }), w();
|
|
698
|
-
var e = {
|
|
699
|
-
multiple: s,
|
|
700
|
-
types: filePickerOptionsTypes(n)
|
|
701
|
-
};
|
|
702
|
-
window.showOpenFilePicker(e).then(function(e) {
|
|
703
|
-
return i(e);
|
|
704
|
-
}).then(function(e) {
|
|
705
|
-
return B(e, null);
|
|
706
|
-
}).catch(function(e) {
|
|
707
|
-
return T(e);
|
|
708
|
-
}).finally(function() {
|
|
709
|
-
return A({ type: "closeDialog" });
|
|
710
|
-
});
|
|
711
|
-
return;
|
|
712
|
-
}
|
|
713
|
-
D.current && (A({ type: "openDialog" }), w(), D.current.value = null, D.current.click());
|
|
714
|
-
}, [
|
|
715
|
-
A,
|
|
716
|
-
w,
|
|
717
|
-
T,
|
|
718
|
-
_,
|
|
719
|
-
B,
|
|
720
|
-
n,
|
|
721
|
-
s
|
|
722
|
-
]), U = (0, import_react.useCallback)(function(e) {
|
|
723
|
-
!E.current || !E.current.isEqualNode(e.target) || (e.keyCode === 32 || e.keyCode === 13) && (e.preventDefault(), H());
|
|
724
|
-
}, [
|
|
725
|
-
E,
|
|
726
|
-
D,
|
|
727
|
-
H
|
|
728
|
-
]), W = (0, import_react.useCallback)(function() {
|
|
729
|
-
A({ type: "focus" });
|
|
730
|
-
}, []), G = (0, import_react.useCallback)(function() {
|
|
731
|
-
A({ type: "blur" });
|
|
732
|
-
}, []), K = (0, import_react.useCallback)(function() {
|
|
733
|
-
y || (isIeOrEdge() ? setTimeout(H, 0) : H());
|
|
734
|
-
}, [
|
|
735
|
-
D,
|
|
736
|
-
y,
|
|
737
|
-
H
|
|
738
|
-
]), q = function(e) {
|
|
739
|
-
return r ? null : e;
|
|
740
|
-
}, J = function(e) {
|
|
741
|
-
return b ? null : q(e);
|
|
742
|
-
}, Y = function(e) {
|
|
743
|
-
return x ? null : q(e);
|
|
744
|
-
}, X = function(e) {
|
|
745
|
-
S && e.stopPropagation();
|
|
746
|
-
}, Ae = (0, import_react.useMemo)(function() {
|
|
747
|
-
return function() {
|
|
748
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.refKey, n = t === void 0 ? "ref" : t, i = e.role, a = e.onKeyDown, o = e.onFocus, s = e.onBlur, c = e.onClick, l = e.onDragEnter, u = e.onDragOver, d = e.onDragLeave, f = e.onDrop, p = _objectWithoutProperties(e, _excluded3);
|
|
749
|
-
return _objectSpread(_objectSpread(_defineProperty({
|
|
750
|
-
onKeyDown: J(composeEventHandlers(a, U)),
|
|
751
|
-
onFocus: J(composeEventHandlers(o, W)),
|
|
752
|
-
onBlur: J(composeEventHandlers(s, G)),
|
|
753
|
-
onClick: q(composeEventHandlers(c, K)),
|
|
754
|
-
onDragEnter: Y(composeEventHandlers(l, L)),
|
|
755
|
-
onDragOver: Y(composeEventHandlers(u, R)),
|
|
756
|
-
onDragLeave: Y(composeEventHandlers(d, z)),
|
|
757
|
-
onDrop: Y(composeEventHandlers(f, V)),
|
|
758
|
-
role: typeof i == "string" && i !== "" ? i : "button"
|
|
759
|
-
}, n, E), !r && !b ? { tabIndex: 0 } : {}), p);
|
|
760
|
-
};
|
|
761
|
-
}, [
|
|
762
|
-
E,
|
|
763
|
-
U,
|
|
764
|
-
W,
|
|
765
|
-
G,
|
|
766
|
-
K,
|
|
767
|
-
L,
|
|
768
|
-
R,
|
|
769
|
-
z,
|
|
770
|
-
V,
|
|
771
|
-
b,
|
|
772
|
-
x,
|
|
773
|
-
r
|
|
774
|
-
]), je = (0, import_react.useCallback)(function(e) {
|
|
775
|
-
e.stopPropagation();
|
|
776
|
-
}, []), Me = (0, import_react.useMemo)(function() {
|
|
777
|
-
return function() {
|
|
778
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.refKey, r = t === void 0 ? "ref" : t, i = e.onChange, a = e.onClick, o = _objectWithoutProperties(e, _excluded4);
|
|
779
|
-
return _objectSpread(_objectSpread({}, _defineProperty({
|
|
780
|
-
accept: n,
|
|
781
|
-
multiple: s,
|
|
782
|
-
type: "file",
|
|
783
|
-
style: { display: "none" },
|
|
784
|
-
onChange: q(composeEventHandlers(i, V)),
|
|
785
|
-
onClick: q(composeEventHandlers(a, je)),
|
|
786
|
-
autoComplete: "off",
|
|
787
|
-
tabIndex: -1
|
|
788
|
-
}, r, D)), o);
|
|
789
|
-
};
|
|
790
|
-
}, [
|
|
791
|
-
D,
|
|
792
|
-
n,
|
|
793
|
-
s,
|
|
794
|
-
V,
|
|
795
|
-
r
|
|
796
|
-
]), Z = N.length, Q = Z > 0 && allFilesAccepted({
|
|
797
|
-
files: N,
|
|
798
|
-
accept: n,
|
|
799
|
-
minSize: o,
|
|
800
|
-
maxSize: a,
|
|
801
|
-
multiple: s,
|
|
802
|
-
maxFiles: c
|
|
803
|
-
}), $ = Z > 0 && !Q;
|
|
804
|
-
return _objectSpread(_objectSpread({}, k), {}, {
|
|
805
|
-
isDragAccept: Q,
|
|
806
|
-
isDragReject: $,
|
|
807
|
-
isFocused: j && !r,
|
|
808
|
-
getRootProps: Ae,
|
|
809
|
-
getInputProps: Me,
|
|
810
|
-
rootRef: E,
|
|
811
|
-
inputRef: D,
|
|
812
|
-
open: q(H)
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
function reducer(e, t) {
|
|
816
|
-
/* istanbul ignore next */
|
|
817
|
-
switch (t.type) {
|
|
818
|
-
case "focus": return _objectSpread(_objectSpread({}, e), {}, { isFocused: !0 });
|
|
819
|
-
case "blur": return _objectSpread(_objectSpread({}, e), {}, { isFocused: !1 });
|
|
820
|
-
case "openDialog": return _objectSpread(_objectSpread({}, initialState), {}, { isFileDialogActive: !0 });
|
|
821
|
-
case "closeDialog": return _objectSpread(_objectSpread({}, e), {}, { isFileDialogActive: !1 });
|
|
822
|
-
case "setDraggedFiles":
|
|
823
|
-
var n = t.isDragActive, r = t.draggedFiles;
|
|
824
|
-
return _objectSpread(_objectSpread({}, e), {}, {
|
|
825
|
-
draggedFiles: r,
|
|
826
|
-
isDragActive: n
|
|
827
|
-
});
|
|
828
|
-
case "setFiles": return _objectSpread(_objectSpread({}, e), {}, {
|
|
829
|
-
acceptedFiles: t.acceptedFiles,
|
|
830
|
-
fileRejections: t.fileRejections
|
|
831
|
-
});
|
|
832
|
-
case "reset": return _objectSpread({}, initialState);
|
|
833
|
-
default: return e;
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
function noop() {}
|
|
837
|
-
export { ErrorCode as n, require_es as r, es_default as t };
|