@sheerid/jslib-nightly 2.103.0-alpha.0 → 2.103.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__tests__/__helpers__/renderers.d.ts +5 -5
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +17814 -16217
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{EmailLoopPending-CKTAwQQA.js → EmailLoopPending-Cp3dQjbH.js} +17 -17
- package/chunk/{EmailLoopPending-CKTAwQQA.js.map → EmailLoopPending-Cp3dQjbH.js.map} +1 -1
- package/chunk/{EmailLoopPending-Dzs07hxx.js → EmailLoopPending-WTPkkJsm.js} +17 -17
- package/chunk/{EmailLoopPending-Dzs07hxx.js.map → EmailLoopPending-WTPkkJsm.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-BNNNPaDn.js → LicensedProfessionalOrganizationComponent-D7gWh3Qx.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-BNNNPaDn.js.map → LicensedProfessionalOrganizationComponent-D7gWh3Qx.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-trZr_eIW.js → LicensedProfessionalOrganizationComponent-LYrmpWss.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-trZr_eIW.js.map → LicensedProfessionalOrganizationComponent-LYrmpWss.js.map} +1 -1
- package/chunk/{Onfido-CMH3IUna.js → Onfido-AyvUk6wg.js} +28 -28
- package/chunk/{Onfido-CMH3IUna.js.map → Onfido-AyvUk6wg.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-C9iUX8TC.js → StepIDCheckLoopOnfido-DbTm06es.js} +12 -11
- package/chunk/{StepIDCheckLoopOnfido-C9iUX8TC.js.map → StepIDCheckLoopOnfido-DbTm06es.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-lChJAp_W.js → StepIDCheckLoopOnfido-Dbk23JEP.js} +12 -11
- package/chunk/{StepIDCheckLoopOnfido-lChJAp_W.js.map → StepIDCheckLoopOnfido-Dbk23JEP.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-D8XhToQz.js → StepIDCheckLoopRegula-B7RS9_LL.js} +58 -85
- package/chunk/StepIDCheckLoopRegula-B7RS9_LL.js.map +1 -0
- package/chunk/{StepIDCheckLoopRegula-BB8xA4nn.js → StepIDCheckLoopRegula-CeadrU2e.js} +58 -85
- package/chunk/StepIDCheckLoopRegula-CeadrU2e.js.map +1 -0
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.js → StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js} +48 -48
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js.map → StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js → StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.js} +48 -48
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.js.map → StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.js.map} +1 -1
- package/chunk/ar-CtJ_9k3U.js +4 -4
- package/chunk/bg-CWxXfiDq.js +4 -4
- package/chunk/bn-IN-Dpq_hCqt.js +4 -4
- package/chunk/cs-HevyelX7.js +4 -4
- package/chunk/da-6QXhWjWH.js +4 -4
- package/chunk/de-ChuCvRLv.js +4 -4
- package/chunk/el-3IAhABcN.js +4 -4
- package/chunk/en-GB-ByNBaer-.js +4 -4
- package/chunk/es-CL_dUc9X.js +4 -4
- package/chunk/es-ES-CW4At4Ol.js +4 -4
- package/chunk/fi-D8cIebkk.js +4 -4
- package/chunk/fr-BDU-1C6f.js +4 -4
- package/chunk/fr-CA-Dc02rv8D.js +4 -4
- package/chunk/ga-P7eP-INQ.js +4 -4
- package/chunk/hi-IN-DlmwjoqH.js +4 -4
- package/chunk/hr-CT_VP_lm.js +4 -4
- package/chunk/hu-I8Z1uXsR.js +4 -4
- package/chunk/id-CUPTGKOT.js +4 -4
- package/chunk/{index-YmkMflXj.js → index-2QV6VPA3.js} +7 -7
- package/chunk/{index-BnPrfsM1.js.map → index-2QV6VPA3.js.map} +1 -1
- package/chunk/{index-DSrYVtDo.js → index-4APDQFqJ.js} +8 -8
- package/chunk/{index-DSrYVtDo.js.map → index-4APDQFqJ.js.map} +1 -1
- package/chunk/index-B2aeWDCT.js +48 -0
- package/chunk/index-B2aeWDCT.js.map +1 -0
- package/chunk/{index-DpYUZXus.js → index-B30_E6pJ.js} +29 -29
- package/chunk/{index-DnCqjuSC.js.map → index-B30_E6pJ.js.map} +1 -1
- package/chunk/{index-BW4s6-PH.js → index-B3NA0DdP.js} +46 -46
- package/chunk/{index-BW4s6-PH.js.map → index-B3NA0DdP.js.map} +1 -1
- package/chunk/{index-Bld-AWYE.js → index-BDw8efPp.js} +11 -11
- package/chunk/{index-CZjGTko2.js.map → index-BDw8efPp.js.map} +1 -1
- package/chunk/{index-DGGRPaEI.js → index-BFMTiaJv.js} +30 -30
- package/chunk/{index-DGGRPaEI.js.map → index-BFMTiaJv.js.map} +1 -1
- package/chunk/{index-B5okgMmp.js → index-BGCnajPS.js} +30 -30
- package/chunk/{index-B5okgMmp.js.map → index-BGCnajPS.js.map} +1 -1
- package/chunk/{index-Dk8xxijl.js → index-BOpxl8V9.js} +31 -31
- package/{lib/index-oDSZ3K4N.js.map → chunk/index-BOpxl8V9.js.map} +1 -1
- package/chunk/{index-BvGP9l7M.js → index-BPEB_HHW.js} +219 -237
- package/chunk/index-BPEB_HHW.js.map +1 -0
- package/chunk/{index-CZjGTko2.js → index-BhkJfnda.js} +11 -11
- package/chunk/{index-Bld-AWYE.js.map → index-BhkJfnda.js.map} +1 -1
- package/chunk/index-BqmbVto7.js +52 -0
- package/chunk/index-BqmbVto7.js.map +1 -0
- package/chunk/{index-CCUi9Uhw.js → index-BtYzUCrC.js} +11 -11
- package/chunk/{index-CCUi9Uhw.js.map → index-BtYzUCrC.js.map} +1 -1
- package/chunk/{index-DCKw4cP_.js → index-C0jDbJPp.js} +45 -45
- package/chunk/{index-DCKw4cP_.js.map → index-C0jDbJPp.js.map} +1 -1
- package/chunk/{index-BnPrfsM1.js → index-C9bZ7enn.js} +7 -7
- package/chunk/{index-YmkMflXj.js.map → index-C9bZ7enn.js.map} +1 -1
- package/chunk/{index-DhpucFa7.js → index-CaSKZsTY.js} +15 -15
- package/{lib/index-4MLTewcd.js.map → chunk/index-CaSKZsTY.js.map} +1 -1
- package/chunk/{index-B1579hxf.js → index-CgBENXRP.js} +28 -28
- package/{lib/index-DK8uTv_W.js.map → chunk/index-CgBENXRP.js.map} +1 -1
- package/chunk/{index-BjaCS2a8.js → index-CgSW4Vzh.js} +38 -38
- package/{lib/index-BM0CWYn5.js.map → chunk/index-CgSW4Vzh.js.map} +1 -1
- package/chunk/{index-BDsZCFuU.js → index-CtqWr1aK.js} +58 -58
- package/chunk/{index-D6oLMvTq.js.map → index-CtqWr1aK.js.map} +1 -1
- package/chunk/{index-Cq__fToG.js → index-D3dphMnl.js} +15 -15
- package/chunk/{index-DhpucFa7.js.map → index-D3dphMnl.js.map} +1 -1
- package/chunk/{index-Dba2dHcR.js → index-D7dDB9pN.js} +18 -18
- package/chunk/{index-Dba2dHcR.js.map → index-D7dDB9pN.js.map} +1 -1
- package/chunk/{index-B4B6qxaM.js → index-DB9SisGK.js} +15 -15
- package/chunk/{index-BYMr8It7.js.map → index-DB9SisGK.js.map} +1 -1
- package/chunk/{index-D6oLMvTq.js → index-DFQ4PjGJ.js} +58 -58
- package/chunk/{index-BDsZCFuU.js.map → index-DFQ4PjGJ.js.map} +1 -1
- package/chunk/{index-DPv0lytr.js → index-DIV55Je2.js} +18 -18
- package/chunk/{index-DPv0lytr.js.map → index-DIV55Je2.js.map} +1 -1
- package/chunk/index-DIkWpujR.js +4 -4
- package/chunk/index-DIkWpujR.js.map +1 -1
- package/chunk/{index-B8tKf2Rd.js → index-DPEoeYI6.js} +38 -38
- package/chunk/{index-B8tKf2Rd.js.map → index-DPEoeYI6.js.map} +1 -1
- package/chunk/{index-Cp0C-9fh.js → index-DWjrZunN.js} +8 -8
- package/{lib/index-BKCtNTGV.js.map → chunk/index-DWjrZunN.js.map} +1 -1
- package/chunk/{index-CEi_QkyI.js → index-DZsw9-0u.js} +219 -237
- package/chunk/index-DZsw9-0u.js.map +1 -0
- package/chunk/{index-CfUabHav.js → index-Dl7QItmr.js} +48 -56
- package/chunk/{index-BGGHZBWq.js.map → index-Dl7QItmr.js.map} +1 -1
- package/chunk/{index-D1tjxfIg.js → index-DtoxnCtM.js} +31 -31
- package/chunk/{index-D1tjxfIg.js.map → index-DtoxnCtM.js.map} +1 -1
- package/chunk/{index-BYMr8It7.js → index-MRhfTdmm.js} +15 -15
- package/chunk/{index-B4B6qxaM.js.map → index-MRhfTdmm.js.map} +1 -1
- package/chunk/{index-QVvWIHrD.js → index-NjSUlAP4.js} +53 -53
- package/chunk/{index-DFsuXQL_.js.map → index-NjSUlAP4.js.map} +1 -1
- package/chunk/{index-Bb9hNLHu.js → index-RmF57u5_.js} +45 -45
- package/chunk/{index-Bb9hNLHu.js.map → index-RmF57u5_.js.map} +1 -1
- package/chunk/{index-B92Kfyw6.js → index-XXxK9rgV.js} +46 -46
- package/chunk/{index-B92Kfyw6.js.map → index-XXxK9rgV.js.map} +1 -1
- package/chunk/{index-DnCqjuSC.js → index-_ohn63ug.js} +29 -29
- package/chunk/{index-DpYUZXus.js.map → index-_ohn63ug.js.map} +1 -1
- package/chunk/{index-BGGHZBWq.js → index-aKTpkBwz.js} +48 -56
- package/chunk/{index-CfUabHav.js.map → index-aKTpkBwz.js.map} +1 -1
- package/chunk/{index-DFsuXQL_.js → index-oMg5zy_2.js} +53 -53
- package/chunk/{index-QVvWIHrD.js.map → index-oMg5zy_2.js.map} +1 -1
- package/chunk/{index-CjcHzfTY.js → index-qAxcloBs.js} +11 -11
- package/chunk/{index-CjcHzfTY.js.map → index-qAxcloBs.js.map} +1 -1
- package/chunk/{index-D7O7vvSe.js → index-tFgJS6bB.js} +28 -28
- package/chunk/{index-B1579hxf.js.map → index-tFgJS6bB.js.map} +1 -1
- package/chunk/is-CUuXi4qZ.js +4 -4
- package/chunk/it-BNmynTsg.js +4 -4
- package/chunk/iw-FGzquR_X.js +4 -4
- package/chunk/ja-YgUpXA0l.js +4 -4
- package/chunk/ko-CuNS5J_M.js +4 -4
- package/chunk/lo-BEf8aFjR.js +4 -4
- package/chunk/lt-DvX1gz1a.js +4 -4
- package/chunk/ms-gSqM-Mfi.js +4 -4
- package/chunk/nl-BE-Cid5LFlN.js +4 -4
- package/chunk/nl-CUUTswxa.js +4 -4
- package/chunk/no-BvUqlShV.js +4 -4
- package/chunk/pl-CU8leZhI.js +4 -4
- package/chunk/pt-BR-CboWpHFi.js +4 -4
- package/chunk/pt-BnK7xRT_.js +4 -4
- package/chunk/ro-BfAyXxSW.js +4 -4
- package/chunk/ru-BD-YGPuQ.js +4 -4
- package/chunk/sk-CqsabpdG.js +4 -4
- package/chunk/sl-CeVAf0S_.js +4 -4
- package/chunk/sr-DSaHxcCQ.js +4 -4
- package/chunk/sv-DOyWYViy.js +4 -4
- package/chunk/sw-2Q7Jo6wp.js +4 -4
- package/chunk/th-BZ6F9sPf.js +4 -4
- package/chunk/tr-om80xrv2.js +4 -4
- package/chunk/uk-Dxugux8e.js +4 -4
- package/chunk/ur-OBILUeZ7.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-C5fsaYJe.js → useCollectFieldsEndpoint-BsY8WlOg.js} +11 -11
- package/chunk/{useCollectFieldsEndpoint-C5fsaYJe.js.map → useCollectFieldsEndpoint-BsY8WlOg.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-kmLFyUA-.js → useCollectFieldsEndpoint-DeICm6Vb.js} +11 -11
- package/chunk/{useCollectFieldsEndpoint-kmLFyUA-.js.map → useCollectFieldsEndpoint-DeICm6Vb.js.map} +1 -1
- package/chunk/{useEmailFirstExperiment-CSa3DQll.js → useEmailFirstExperiment-3uKuefem.js} +29 -30
- package/chunk/{useEmailFirstExperiment-CSa3DQll.js.map → useEmailFirstExperiment-3uKuefem.js.map} +1 -1
- package/chunk/{useEmailFirstExperiment-DZ1B78ke.js → useEmailFirstExperiment-B1_E_D0z.js} +29 -30
- package/chunk/{useEmailFirstExperiment-DZ1B78ke.js.map → useEmailFirstExperiment-B1_E_D0z.js.map} +1 -1
- package/chunk/vi-BOR2GuRI.js +4 -4
- package/chunk/zh-HK-BI-IHOGG.js +4 -4
- package/chunk/zh-eoMG5RFC.js +4 -4
- package/chunk/zu-D_A8wcJW.js +4 -4
- package/dev/programIds.d.ts +1 -1
- package/es6.css +4 -4
- package/jslib.js +15 -15
- package/lib/{EmailLoopPending-BUvc2o4W.js → EmailLoopPending-BWEJteWf.js} +8 -8
- package/lib/{EmailLoopPending-BUvc2o4W.js.map → EmailLoopPending-BWEJteWf.js.map} +1 -1
- package/lib/{LicensedProfessionalOrganizationComponent-C0ioAzQP.js → LicensedProfessionalOrganizationComponent-8Fz7VzpC.js} +5 -5
- package/lib/{LicensedProfessionalOrganizationComponent-C0ioAzQP.js.map → LicensedProfessionalOrganizationComponent-8Fz7VzpC.js.map} +1 -1
- package/lib/{Onfido-CMH3IUna.js → Onfido-AyvUk6wg.js} +28 -28
- package/lib/{Onfido-CMH3IUna.js.map → Onfido-AyvUk6wg.js.map} +1 -1
- package/lib/StepCollectMilitaryStatusComponent-B6FWsKVT.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-BrUSHecv.js.map → StepCollectMilitaryStatusComponent-B6FWsKVT.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-QuiU9VOZ.js → StepIDCheckLoopOnfido-BoYu03qf.js} +5 -5
- package/lib/{StepIDCheckLoopOnfido-QuiU9VOZ.js.map → StepIDCheckLoopOnfido-BoYu03qf.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-D_U-ctEk.js → StepIDCheckLoopRegula-CleO2AvI.js} +5 -5
- package/lib/{StepIDCheckLoopRegula-D_U-ctEk.js.map → StepIDCheckLoopRegula-CleO2AvI.js.map} +1 -1
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-Dc5bdsFt.js → StepInactiveMilitaryPersonalInfoComponent-CwHB55DG.js} +44 -44
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-Dc5bdsFt.js.map → StepInactiveMilitaryPersonalInfoComponent-CwHB55DG.js.map} +1 -1
- package/lib/VerificationApiUtils-xT8neNEB.js +24 -0
- package/lib/VerificationApiUtils-xT8neNEB.js.map +1 -0
- package/lib/ar-CtJ_9k3U.js +4 -4
- package/lib/bg-CWxXfiDq.js +4 -4
- package/lib/bn-IN-Dpq_hCqt.js +4 -4
- package/lib/cs-HevyelX7.js +4 -4
- package/lib/da-6QXhWjWH.js +4 -4
- package/lib/de-ChuCvRLv.js +4 -4
- package/lib/el-3IAhABcN.js +4 -4
- package/lib/en-GB-ByNBaer-.js +4 -4
- package/lib/es-CL_dUc9X.js +4 -4
- package/lib/es-ES-CW4At4Ol.js +4 -4
- package/lib/{es6-ClGZD1Ql.js → es6-B4C99nr_.js} +13666 -12453
- package/lib/es6-B4C99nr_.js.map +1 -0
- package/lib/fi-D8cIebkk.js +4 -4
- package/lib/fr-BDU-1C6f.js +4 -4
- package/lib/fr-CA-Dc02rv8D.js +4 -4
- package/lib/ga-P7eP-INQ.js +4 -4
- package/lib/hi-IN-DlmwjoqH.js +4 -4
- package/lib/hr-CT_VP_lm.js +4 -4
- package/lib/hu-I8Z1uXsR.js +4 -4
- package/lib/id-CUPTGKOT.js +4 -4
- package/lib/{index-DvUGTGOD.js → index-3SRQvj39.js} +26 -26
- package/lib/{index-DvUGTGOD.js.map → index-3SRQvj39.js.map} +1 -1
- package/lib/index-B8_50Him.js +28 -0
- package/lib/{index-DQX8eu91.js.map → index-B8_50Him.js.map} +1 -1
- package/lib/{index-BKCtNTGV.js → index-BHwYKmBe.js} +8 -8
- package/{chunk/index-Cp0C-9fh.js.map → lib/index-BHwYKmBe.js.map} +1 -1
- package/lib/{index-Dgidg7gd.js → index-BJBWT9wa.js} +20 -20
- package/lib/{index-Dgidg7gd.js.map → index-BJBWT9wa.js.map} +1 -1
- package/lib/{index-DK8uTv_W.js → index-BcE9NN84.js} +32 -32
- package/{chunk/index-D7O7vvSe.js.map → lib/index-BcE9NN84.js.map} +1 -1
- package/lib/{index-Csw34cSZ.js → index-BxVqnD-7.js} +20 -20
- package/lib/{index-Csw34cSZ.js.map → index-BxVqnD-7.js.map} +1 -1
- package/lib/{index-XXiQZWaM.js → index-CBDyLXYG.js} +51 -51
- package/lib/{index-XXiQZWaM.js.map → index-CBDyLXYG.js.map} +1 -1
- package/lib/{index-CJRwjY_C.js → index-CBifWEeV.js} +385 -402
- package/lib/index-CBifWEeV.js.map +1 -0
- package/lib/{index-DkeVrwYw.js → index-CRYZY6vI.js} +29 -29
- package/lib/{index-DkeVrwYw.js.map → index-CRYZY6vI.js.map} +1 -1
- package/lib/index-CTWjUdXx.js +11 -0
- package/lib/index-CTWjUdXx.js.map +1 -0
- package/lib/{index-DNCyzTg_.js → index-CTem-Vg8.js} +9 -9
- package/lib/{index-DNCyzTg_.js.map → index-CTem-Vg8.js.map} +1 -1
- package/lib/index-CiuvIMbL.js +11 -0
- package/lib/index-CiuvIMbL.js.map +1 -0
- package/lib/{index-BM0CWYn5.js → index-Cn53lF5X.js} +16 -16
- package/{chunk/index-BjaCS2a8.js.map → lib/index-Cn53lF5X.js.map} +1 -1
- package/lib/{index-CiAI82QD.js → index-CrV2nMoq.js} +5 -5
- package/lib/{index-CiAI82QD.js.map → index-CrV2nMoq.js.map} +1 -1
- package/lib/{index-DB8iBNmq.js → index-D0D7HAPn.js} +57 -57
- package/lib/{index-DB8iBNmq.js.map → index-D0D7HAPn.js.map} +1 -1
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/index-DIkWpujR.js.map +1 -1
- package/lib/{index-oDSZ3K4N.js → index-DQvdYpIH.js} +23 -23
- package/{chunk/index-Dk8xxijl.js.map → lib/index-DQvdYpIH.js.map} +1 -1
- package/lib/index-DZB3KVgZ.js +11 -0
- package/lib/index-DZB3KVgZ.js.map +1 -0
- package/lib/{index-D7GbxOiS.js → index-DpFFsGey.js} +27 -27
- package/lib/{index-D7GbxOiS.js.map → index-DpFFsGey.js.map} +1 -1
- package/lib/{index-D-7phqEN.js → index-S3ZpXPMJ.js} +26 -26
- package/lib/{index-D-7phqEN.js.map → index-S3ZpXPMJ.js.map} +1 -1
- package/lib/{index-4MLTewcd.js → index-Sytmygw_.js} +5 -5
- package/{chunk/index-Cq__fToG.js.map → lib/index-Sytmygw_.js.map} +1 -1
- package/lib/{index-ow0CW_My.js → index-VNMhK7yn.js} +7 -7
- package/lib/{index-ow0CW_My.js.map → index-VNMhK7yn.js.map} +1 -1
- package/lib/index-XBfOIml7.js +11 -0
- package/lib/index-XBfOIml7.js.map +1 -0
- package/lib/{index-BdJWpsUE.js → index-eOSlGhXP.js} +5 -5
- package/lib/{index-BdJWpsUE.js.map → index-eOSlGhXP.js.map} +1 -1
- package/lib/is-CUuXi4qZ.js +4 -4
- package/lib/it-BNmynTsg.js +4 -4
- package/lib/iw-FGzquR_X.js +4 -4
- package/lib/ja-YgUpXA0l.js +4 -4
- package/lib/ko-CuNS5J_M.js +4 -4
- package/lib/lo-BEf8aFjR.js +4 -4
- package/lib/lt-DvX1gz1a.js +4 -4
- package/lib/ms-gSqM-Mfi.js +4 -4
- package/lib/nl-BE-Cid5LFlN.js +4 -4
- package/lib/nl-CUUTswxa.js +4 -4
- package/lib/no-BvUqlShV.js +4 -4
- package/lib/pl-CU8leZhI.js +4 -4
- package/lib/pt-BR-CboWpHFi.js +4 -4
- package/lib/pt-BnK7xRT_.js +4 -4
- package/lib/ro-BfAyXxSW.js +4 -4
- package/lib/ru-BD-YGPuQ.js +4 -4
- package/lib/sk-CqsabpdG.js +4 -4
- package/lib/sl-CeVAf0S_.js +4 -4
- package/lib/sr-DSaHxcCQ.js +4 -4
- package/lib/sv-DOyWYViy.js +4 -4
- package/lib/sw-2Q7Jo6wp.js +4 -4
- package/lib/th-BZ6F9sPf.js +4 -4
- package/lib/tr-om80xrv2.js +4 -4
- package/lib/uk-Dxugux8e.js +4 -4
- package/lib/ur-OBILUeZ7.js +4 -4
- package/lib/{useCollectFieldsEndpoint-aCIIzOgu.js → useCollectFieldsEndpoint-CAKKawmD.js} +6 -6
- package/lib/{useCollectFieldsEndpoint-aCIIzOgu.js.map → useCollectFieldsEndpoint-CAKKawmD.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-B9QlkzY_.js → useEmailFirstExperiment-vO9rcSms.js} +6 -7
- package/lib/{useEmailFirstExperiment-B9QlkzY_.js.map → useEmailFirstExperiment-vO9rcSms.js.map} +1 -1
- package/lib/vi-BOR2GuRI.js +4 -4
- package/lib/zh-HK-BI-IHOGG.js +4 -4
- package/lib/zh-eoMG5RFC.js +4 -4
- package/lib/zu-D_A8wcJW.js +4 -4
- package/package.json +4 -4
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +6 -6
- package/sheerid-install.js.map +1 -1
- package/sheerid.css +5 -5
- package/sheerid.js +17945 -16348
- package/sheerid.js.map +1 -1
- package/src/components/AcceptableUploadsComponent/AcceptableUploadsComponent.d.ts +1 -1
- package/src/components/AcceptableUploadsComponent/getLegacyAcceptableUploads.d.ts +1 -1
- package/src/components/Button/Button.d.ts +1 -0
- package/src/components/CopyToClipboard/CopyToClipboardComponent.d.ts +2 -1
- package/src/components/CustomCssContext/CustomCssContextProvider.d.ts +1 -1
- package/src/components/DateComponent/DateComponent.d.ts +2 -2
- package/src/components/ExtraMessage.d.ts +1 -1
- package/src/components/FaqLink/FaqLinkComponent.d.ts +1 -1
- package/src/components/FeatureFlags/ExperimentComponent/ExperimentComponent.d.ts +4 -4
- package/src/components/FetchOrganizationsComponent.d.ts +1 -1
- package/src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.d.ts +1 -1
- package/src/components/FormFields/Address/AddressComponent.d.ts +2 -2
- package/src/components/FormFields/BirthDate/BirthDateComponent.d.ts +1 -1
- package/src/components/FormFields/BranchOfService/BranchOfServiceComponent.d.ts +2 -2
- package/src/components/FormFields/CVECNumber/CVECNumberComponent.d.ts +2 -2
- package/src/components/FormFields/ChangeLocale/ChangeLocaleComponent.d.ts +3 -3
- package/src/components/FormFields/City/City.d.ts +2 -2
- package/src/components/FormFields/CollegeName/CollegeNameComponent.d.ts +2 -2
- package/src/components/FormFields/Company/CompanyComponent.d.ts +2 -2
- package/src/components/FormFields/Country/CountryComponent.d.ts +2 -2
- package/src/components/FormFields/Country/CountryComponentWrapper.d.ts +2 -2
- package/src/components/FormFields/DischargeDate/DischargeDateComponent.d.ts +1 -1
- package/src/components/FormFields/DriverLicenseNumber/DriverLicenseNumberComponent.d.ts +2 -2
- package/src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.d.ts +2 -2
- package/src/components/FormFields/Email/EmailComponent.d.ts +2 -2
- package/src/components/FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent.d.ts +1 -1
- package/src/components/FormFields/EmailFirstCollectInfo/useEmailFirstExperiment.d.ts +1 -1
- package/src/components/FormFields/FirstName/FirstNameComponent.d.ts +2 -2
- package/src/components/FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent.d.ts +2 -2
- package/src/components/FormFields/FormFieldCustom/FormFieldCustom.d.ts +2 -2
- package/src/components/FormFields/FormFieldInputSelect/FormFieldInputSelect.d.ts +1 -1
- package/src/components/FormFields/FormFieldRadio/FormFieldRadio.d.ts +2 -2
- package/src/components/FormFields/FormFieldSelect/FormFieldSelect.d.ts +2 -2
- package/src/components/FormFields/FormFieldText/FormFieldText.d.ts +1 -1
- package/src/components/FormFields/FormFieldTypeahead/FormFieldTypeahead.d.ts +2 -2
- package/src/components/FormFields/LastName/LastNameComponent.d.ts +2 -2
- package/src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.d.ts +2 -2
- package/src/components/FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent.d.ts +2 -2
- package/src/components/FormFields/MarketConsentWrapper/MarketConsentWrapperComponent.d.ts +1 -1
- package/src/components/FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent.d.ts +2 -2
- package/src/components/FormFields/MemberId/MemberIdComponent.d.ts +2 -2
- package/src/components/FormFields/MembershipOrganization/MembershipOrganizationComponent.d.ts +2 -2
- package/src/components/FormFields/OptIn/OptInComponent.d.ts +1 -1
- package/src/components/FormFields/OverrideCode/OverrideCodeComponent.d.ts +2 -2
- package/src/components/FormFields/PhoneNumber/PhoneNumberComponent.d.ts +2 -2
- package/src/components/FormFields/PostalCode/PostalCodeComponent.d.ts +2 -2
- package/src/components/FormFields/SMSCode/SMSCodeComponent.d.ts +2 -2
- package/src/components/FormFields/SSN/SSN.d.ts +2 -2
- package/src/components/FormFields/State/State.d.ts +2 -2
- package/src/components/FormFields/State/StateSelectComponent.d.ts +2 -2
- package/src/components/FormFields/Status/StatusComponent.d.ts +2 -2
- package/src/components/FormFields/TeacherSchool/TeacherSchoolComponent.d.ts +2 -2
- package/src/components/FormFooter/FooterTextComponent.d.ts +1 -1
- package/src/components/FormFooter/FormFooterComponent.d.ts +1 -1
- package/src/components/FormHeader/FormHeaderComponent.d.ts +1 -1
- package/src/components/FormHeader/StepHeaders/PersonalInfoHeaderComponent.d.ts +1 -1
- package/src/components/FormInputs/InputRadio/InputRadio.d.ts +1 -1
- package/src/components/FormInputs/InputSelect/InputSelectComponent.d.ts +1 -1
- package/src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.d.ts +1 -1
- package/src/components/FormInputs/PostalCodeInput/PostalCodeInputComponent.d.ts +1 -1
- package/src/components/FormInputs/Select/SelectComponent.d.ts +1 -1
- package/src/components/FormInputs/Select/SelectList/SelectListComponent.d.ts +1 -1
- package/src/components/FormInputs/Typeahead/TypeaheadComponent.d.ts +1 -1
- package/src/components/FormInputs/Typeahead/TypeaheadComponentHelper.d.ts +1 -1
- package/src/components/HowDoesVerifyingWork/HowDoesVerifyingWorkComponent.d.ts +1 -1
- package/src/components/Layout/Layout.d.ts +1 -1
- package/src/components/LoadStepComponent.d.ts +1 -1
- package/src/components/LoadingScreen/LoadingScreenComponent.d.ts +1 -1
- package/src/components/LoadingScreen/LoadingScreenMessage.d.ts +1 -1
- package/src/components/LogoComponent/LogoComponent.d.ts +1 -1
- package/src/components/NewVerificationComponent.d.ts +3 -3
- package/src/components/NewVerificationInnerComponent.d.ts +1 -1
- package/src/components/OrganizationList/OrganizationListComponent.d.ts +1 -1
- package/src/components/PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton.d.ts +2 -2
- package/src/components/PersonalInfoStepWrapper/PersonalInfoStepWrapper.d.ts +2 -1
- package/src/components/PoweredBy/PoweredByComponent.d.ts +1 -1
- package/src/components/PrivacyPolicyLink/PrivacyPolicyLinkComponent.d.ts +2 -2
- package/src/components/RewardsRemaining/RewardsRemainingComponent.d.ts +1 -1
- package/src/components/SingleSignOnComponent.d.ts +2 -2
- package/src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.d.ts +2 -2
- package/src/components/StepCollectIdentifier/StepCollectIdentifierComponent.d.ts +1 -1
- package/src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.d.ts +2 -2
- package/src/components/StepConsolation/StepConsolationComponent.d.ts +1 -1
- package/src/components/StepDocUpload/StepDocUploadComponent.d.ts +1 -1
- package/src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.d.ts +1 -1
- package/src/components/StepEmailLoop/EmailLoopPending.d.ts +1 -1
- package/src/components/StepEmailLoop/StepEmailLoopComponent.d.ts +2 -2
- package/src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepError/StepErrorComponent.d.ts +2 -2
- package/src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopOnfidoFooter.d.ts +1 -1
- package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopRegulaFooter.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Onfido/IdCheckLoopOnfido/IdCheckLoopOnfido.d.ts +2 -2
- package/src/components/StepIDCheckLoop/Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Onfido/utils/getAndFormatOrderedStepCards.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/DisplayThumbnail.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/IdCheckLoopRegula.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Regula/StepIDCheckLoopRegulaComponent/StepIDCheckLoopRegula.d.ts +1 -1
- package/src/components/StepIDCheckLoop/StepIDCheckLoopComponent.d.ts +1 -1
- package/src/components/StepIdentityPersonalInfo/StepDriverLicensePersonalInfoComponent.d.ts +1 -1
- package/src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepIdentityPersonalInfo/StepHybridIdentityPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.d.ts +1 -1
- package/src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepMilitaryPersonalInfo/StepInactiveMilitaryPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepOverrideComponent/StepOverrideComponent.d.ts +2 -2
- package/src/components/StepPending/ReviewPendingComponent.d.ts +1 -1
- package/src/components/StepPending/SingleSignOnPendingComponent.d.ts +2 -2
- package/src/components/StepPending/StepPendingComponent.d.ts +1 -1
- package/src/components/StepPending/ThirdPartyLoopPendingComponent.d.ts +1 -1
- package/src/components/StepSMSLoop/StepSMSLoopComponent.d.ts +2 -2
- package/src/components/StepSSO/StepSSOComponent.d.ts +1 -1
- package/src/components/StepSeniorPersonalInfo/StepSeniorPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.d.ts +1 -1
- package/src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepSuccess/StepSuccessComponent.d.ts +1 -1
- package/src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepThirdPartyLoop/StepThirdPartyLoopComponent.d.ts +3 -3
- package/src/components/TestModeFlag/TestModeFlagComponent.d.ts +1 -1
- package/src/components/UploadInfoComponent/UploadInfoComponent.d.ts +1 -1
- package/src/components/VerificationForm/VerificationFormComponent.d.ts +1 -1
- package/src/es5Bindings/VerificationFormEs5.d.ts +1 -1
- package/src/lib/ProgramTheme/programThemeGetters.d.ts +1 -1
- package/src/lib/ServerApi/ApiUrls.d.ts +1 -1
- package/src/lib/ServerApi/VerificationApiClient.d.ts +1 -1
- package/src/lib/ServerApi/VerificationHelpRequestApi.d.ts +1 -1
- package/src/lib/VerificationService/VerificationServiceActions.d.ts +1 -1
- package/src/lib/hooks/index.d.ts +1 -1
- package/src/lib/installScript/_mysheerid-preview.d.ts +2 -2
- package/src/lib/installScript/affinity.d.ts +1 -1
- package/src/lib/installScript/iframe.d.ts +1 -1
- package/src/lib/installScript/index.d.ts +3 -3
- package/src/lib/installScript/modal.d.ts +1 -1
- package/src/lib/state/contextHooks.d.ts +1 -1
- package/src/lib/types/runtimeTypes.d.ts +1 -1
- package/src/lib/types/types.d.ts +7 -7
- package/src/lib/utils/customTagReplacer/index.d.ts +1 -1
- package/src/lib/utils/stepComponentHelpers/stepComponentHelpers.d.ts +2 -2
- package/src/lib/utils/structures/FormSelectChoice.d.ts +1 -1
- package/types-reference.zip +0 -0
- package/chunk/StepIDCheckLoopRegula-BB8xA4nn.js.map +0 -1
- package/chunk/StepIDCheckLoopRegula-D8XhToQz.js.map +0 -1
- package/chunk/index-BupTUiiS.js +0 -27
- package/chunk/index-BupTUiiS.js.map +0 -1
- package/chunk/index-BvGP9l7M.js.map +0 -1
- package/chunk/index-CEi_QkyI.js.map +0 -1
- package/chunk/index-iZ8pO5if.js +0 -31
- package/chunk/index-iZ8pO5if.js.map +0 -1
- package/lib/StepCollectMilitaryStatusComponent-BrUSHecv.js +0 -11
- package/lib/VerificationApiUtils-Bddo_Ii5.js +0 -21
- package/lib/VerificationApiUtils-Bddo_Ii5.js.map +0 -1
- package/lib/es6-ClGZD1Ql.js.map +0 -1
- package/lib/index-BTFR2LEp.js +0 -11
- package/lib/index-BTFR2LEp.js.map +0 -1
- package/lib/index-CJRwjY_C.js.map +0 -1
- package/lib/index-CLXE6HT-.js +0 -11
- package/lib/index-CLXE6HT-.js.map +0 -1
- package/lib/index-DQX8eu91.js +0 -28
- package/lib/index-Drn1VYH2.js +0 -11
- package/lib/index-Drn1VYH2.js.map +0 -1
- package/lib/index-Y9jkUBfw.js +0 -11
- package/lib/index-Y9jkUBfw.js.map +0 -1
@@ -1,24 +1,23 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.103.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
6
|
-
* BUILD_COMMIT:
|
3
|
+
* VERSION: 2.103.0-alpha.1
|
4
|
+
* BUILD_TIMESTAMP: 1746113249549
|
5
|
+
* BUILD_DATE: Thu May 01 2025 15:27:29 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: d965970f2cd2a5e2e0ec472faaa3d106de7ca01e
|
7
7
|
*/
|
8
|
-
import {
|
9
|
-
|
10
|
-
const Mt = (e, a, o) => ye(e, (r) => {
|
8
|
+
import { k as Ie, aU as Pe, aV as q, aW as Z, aX as gt, r as f, R as xt, aY as g, j as t, aZ as n, aL as u, a as h, i as bt, ai as Ce, as as yt, aH as It, a_ as Et, c as vt, a$ as ze, L as Ut, A as jt, b0 as Dt, af as _t, J as At, b1 as Rt, b2 as wt, b3 as Ft, f as Nt, l as Oe, V as xe, ah as Ct, b4 as Ot, b5 as Tt, b6 as St } from "../sheerid.js";
|
9
|
+
const Lt = (e, a, o) => Ie(e, (r) => {
|
11
10
|
Object.keys(e).filter((s) => !!e[s] && s.includes("file")).map((s) => e[s]).concat(a, Array(Pe).fill(void 0)).splice(0, 3).forEach((s, d) => r[`file${d + 1}`] = s), o ? r.erroredFileNames = o : r.erroredFileNames = void 0;
|
12
|
-
}),
|
11
|
+
}), Mt = (e, a) => {
|
13
12
|
if (![1, 2, 3].includes(a))
|
14
13
|
throw new Error(
|
15
14
|
`Expected either 1, 2 or 3 for argument "fileNumber", but received ${a}`
|
16
15
|
);
|
17
|
-
return
|
16
|
+
return Ie(e, (o) => {
|
18
17
|
Object.keys(e).filter((r) => r.includes("file") && !r.includes(a.toString())).map((r) => e[r]).concat(Array(Pe).fill(void 0)).splice(0, 3).forEach((r, s) => o[`file${s + 1}`] = r);
|
19
18
|
});
|
20
19
|
};
|
21
|
-
var
|
20
|
+
var kt = /* @__PURE__ */ new Map([
|
22
21
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
23
22
|
["aac", "audio/aac"],
|
24
23
|
["abw", "application/x-abiword"],
|
@@ -101,7 +100,7 @@ var Pt = /* @__PURE__ */ new Map([
|
|
101
100
|
["msg", "application/vnd.ms-outlook"]
|
102
101
|
]);
|
103
102
|
function ne(e, a) {
|
104
|
-
var o =
|
103
|
+
var o = Pt(e);
|
105
104
|
if (typeof o.path != "string") {
|
106
105
|
var r = e.webkitRelativePath;
|
107
106
|
Object.defineProperty(o, "path", {
|
@@ -113,10 +112,10 @@ function ne(e, a) {
|
|
113
112
|
}
|
114
113
|
return o;
|
115
114
|
}
|
116
|
-
function
|
115
|
+
function Pt(e) {
|
117
116
|
var a = e.name, o = a && a.lastIndexOf(".") !== -1;
|
118
117
|
if (o && !e.type) {
|
119
|
-
var r = a.split(".").pop().toLowerCase(), s =
|
118
|
+
var r = a.split(".").pop().toLowerCase(), s = kt.get(r);
|
120
119
|
s && Object.defineProperty(e, "type", {
|
121
120
|
value: s,
|
122
121
|
writable: !1,
|
@@ -126,36 +125,36 @@ function Bt(e) {
|
|
126
125
|
}
|
127
126
|
return e;
|
128
127
|
}
|
129
|
-
var
|
128
|
+
var Bt = [
|
130
129
|
// Thumbnail cache files for macOS and Windows
|
131
130
|
".DS_Store",
|
132
131
|
"Thumbs.db"
|
133
132
|
// Windows
|
134
133
|
];
|
135
|
-
function
|
134
|
+
function Yt(e) {
|
136
135
|
return q(this, void 0, void 0, function() {
|
137
136
|
return Z(this, function(a) {
|
138
|
-
return
|
137
|
+
return Ee(e) && Ht(e) ? [2, Gt(e.dataTransfer, e.type)] : zt(e) ? [2, Vt(e)] : Array.isArray(e) && e.every(function(o) {
|
139
138
|
return "getFile" in o && typeof o.getFile == "function";
|
140
|
-
}) ? [2,
|
139
|
+
}) ? [2, Wt(e)] : [2, []];
|
141
140
|
});
|
142
141
|
});
|
143
142
|
}
|
144
|
-
function
|
145
|
-
return
|
143
|
+
function Ht(e) {
|
144
|
+
return Ee(e.dataTransfer);
|
146
145
|
}
|
147
|
-
function
|
148
|
-
return
|
146
|
+
function zt(e) {
|
147
|
+
return Ee(e) && Ee(e.target);
|
149
148
|
}
|
150
|
-
function
|
149
|
+
function Ee(e) {
|
151
150
|
return typeof e == "object" && e !== null;
|
152
151
|
}
|
153
|
-
function
|
152
|
+
function Vt(e) {
|
154
153
|
return Se(e.target.files).map(function(a) {
|
155
154
|
return ne(a);
|
156
155
|
});
|
157
156
|
}
|
158
|
-
function
|
157
|
+
function Wt(e) {
|
159
158
|
return q(this, void 0, void 0, function() {
|
160
159
|
var a;
|
161
160
|
return Z(this, function(o) {
|
@@ -172,7 +171,7 @@ function Gt(e) {
|
|
172
171
|
});
|
173
172
|
});
|
174
173
|
}
|
175
|
-
function
|
174
|
+
function Gt(e, a) {
|
176
175
|
return q(this, void 0, void 0, function() {
|
177
176
|
var o, r;
|
178
177
|
return Z(this, function(s) {
|
@@ -180,7 +179,7 @@ function $t(e, a) {
|
|
180
179
|
case 0:
|
181
180
|
return e === null ? [2, []] : e.items ? (o = Se(e.items).filter(function(d) {
|
182
181
|
return d.kind === "file";
|
183
|
-
}), a !== "drop" ? [2, o] : [4, Promise.all(o.map(
|
182
|
+
}), a !== "drop" ? [2, o] : [4, Promise.all(o.map($t))]) : [3, 2];
|
184
183
|
case 1:
|
185
184
|
return r = s.sent(), [2, Ve(rt(r))];
|
186
185
|
case 2:
|
@@ -193,7 +192,7 @@ function $t(e, a) {
|
|
193
192
|
}
|
194
193
|
function Ve(e) {
|
195
194
|
return e.filter(function(a) {
|
196
|
-
return
|
195
|
+
return Bt.indexOf(a.name) === -1;
|
197
196
|
});
|
198
197
|
}
|
199
198
|
function Se(e) {
|
@@ -205,7 +204,7 @@ function Se(e) {
|
|
205
204
|
}
|
206
205
|
return a;
|
207
206
|
}
|
208
|
-
function
|
207
|
+
function $t(e) {
|
209
208
|
if (typeof e.webkitGetAsEntry != "function")
|
210
209
|
return We(e);
|
211
210
|
var a = e.webkitGetAsEntry();
|
@@ -213,7 +212,7 @@ function Kt(e) {
|
|
213
212
|
}
|
214
213
|
function rt(e) {
|
215
214
|
return e.reduce(function(a, o) {
|
216
|
-
return
|
215
|
+
return gt(a, Array.isArray(o) ? rt(o) : [o]);
|
217
216
|
}, []);
|
218
217
|
}
|
219
218
|
function We(e) {
|
@@ -223,10 +222,10 @@ function We(e) {
|
|
223
222
|
var o = ne(a);
|
224
223
|
return Promise.resolve(o);
|
225
224
|
}
|
226
|
-
function
|
225
|
+
function Kt(e) {
|
227
226
|
return q(this, void 0, void 0, function() {
|
228
227
|
return Z(this, function(a) {
|
229
|
-
return [2, e.isDirectory ? nt(e) :
|
228
|
+
return [2, e.isDirectory ? nt(e) : qt(e)];
|
230
229
|
});
|
231
230
|
});
|
232
231
|
}
|
@@ -242,8 +241,7 @@ function nt(e) {
|
|
242
241
|
return Z(this, function(U) {
|
243
242
|
switch (U.label) {
|
244
243
|
case 0:
|
245
|
-
if (c.length)
|
246
|
-
return [3, 5];
|
244
|
+
if (c.length) return [3, 5];
|
247
245
|
U.label = 1;
|
248
246
|
case 1:
|
249
247
|
return U.trys.push([1, 3, , 4]), [4, Promise.all(s)];
|
@@ -254,7 +252,7 @@ function nt(e) {
|
|
254
252
|
case 4:
|
255
253
|
return [3, 6];
|
256
254
|
case 5:
|
257
|
-
R = Promise.all(c.map(
|
255
|
+
R = Promise.all(c.map(Kt)), s.push(R), d(), U.label = 6;
|
258
256
|
case 6:
|
259
257
|
return [
|
260
258
|
2
|
@@ -270,7 +268,7 @@ function nt(e) {
|
|
270
268
|
d();
|
271
269
|
});
|
272
270
|
}
|
273
|
-
function
|
271
|
+
function qt(e) {
|
274
272
|
return q(this, void 0, void 0, function() {
|
275
273
|
return Z(this, function(a) {
|
276
274
|
return [2, new Promise(function(o, r) {
|
@@ -284,9 +282,12 @@ function Zt(e) {
|
|
284
282
|
});
|
285
283
|
});
|
286
284
|
}
|
287
|
-
var
|
285
|
+
var Zt = function(e, a) {
|
288
286
|
if (e && a) {
|
289
|
-
var o = Array.isArray(a) ? a : a.split(",")
|
287
|
+
var o = Array.isArray(a) ? a : a.split(",");
|
288
|
+
if (o.length === 0)
|
289
|
+
return !0;
|
290
|
+
var r = e.name || "", s = (e.type || "").toLowerCase(), d = s.replace(/\/.*$/, "");
|
290
291
|
return o.some(function(m) {
|
291
292
|
var c = m.trim().toLowerCase();
|
292
293
|
return c.charAt(0) === "." ? r.toLowerCase().endsWith(c) : c.endsWith("/*") ? d === c.replace(/\/.*$/, "") : s === c;
|
@@ -319,21 +320,18 @@ function st(e, a, o) {
|
|
319
320
|
return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
|
320
321
|
}
|
321
322
|
function Ke(e, a) {
|
322
|
-
return
|
323
|
+
return ea(e) || Jt(e, a) || Xt(e, a) || Qt();
|
323
324
|
}
|
324
|
-
function
|
325
|
+
function Qt() {
|
325
326
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
326
327
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
327
328
|
}
|
328
|
-
function
|
329
|
+
function Xt(e, a) {
|
329
330
|
if (e) {
|
330
|
-
if (typeof e == "string")
|
331
|
-
return qe(e, a);
|
331
|
+
if (typeof e == "string") return qe(e, a);
|
332
332
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
333
|
-
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set")
|
334
|
-
|
335
|
-
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))
|
336
|
-
return qe(e, a);
|
333
|
+
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
|
334
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return qe(e, a);
|
337
335
|
}
|
338
336
|
}
|
339
337
|
function qe(e, a) {
|
@@ -342,7 +340,7 @@ function qe(e, a) {
|
|
342
340
|
r[o] = e[o];
|
343
341
|
return r;
|
344
342
|
}
|
345
|
-
function
|
343
|
+
function Jt(e, a) {
|
346
344
|
var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
347
345
|
if (o != null) {
|
348
346
|
var r = [], s = !0, d = !1, m, c;
|
@@ -355,71 +353,65 @@ function ea(e, a) {
|
|
355
353
|
try {
|
356
354
|
!s && o.return != null && o.return();
|
357
355
|
} finally {
|
358
|
-
if (d)
|
359
|
-
throw c;
|
356
|
+
if (d) throw c;
|
360
357
|
}
|
361
358
|
}
|
362
359
|
return r;
|
363
360
|
}
|
364
361
|
}
|
365
|
-
function
|
366
|
-
if (Array.isArray(e))
|
367
|
-
return e;
|
362
|
+
function ea(e) {
|
363
|
+
if (Array.isArray(e)) return e;
|
368
364
|
}
|
369
|
-
var
|
365
|
+
var ta = "file-invalid-type", aa = "file-too-large", oa = "file-too-small", ra = "too-many-files", na = function(a) {
|
370
366
|
a = Array.isArray(a) && a.length === 1 ? a[0] : a;
|
371
367
|
var o = Array.isArray(a) ? "one of ".concat(a.join(", ")) : a;
|
372
368
|
return {
|
373
|
-
code:
|
369
|
+
code: ta,
|
374
370
|
message: "File type must be ".concat(o)
|
375
371
|
};
|
376
372
|
}, Ze = function(a) {
|
377
373
|
return {
|
378
|
-
code:
|
374
|
+
code: aa,
|
379
375
|
message: "File is larger than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
|
380
376
|
};
|
381
377
|
}, Qe = function(a) {
|
382
378
|
return {
|
383
|
-
code:
|
379
|
+
code: oa,
|
384
380
|
message: "File is smaller than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
|
385
381
|
};
|
386
|
-
},
|
387
|
-
code:
|
382
|
+
}, sa = {
|
383
|
+
code: ra,
|
388
384
|
message: "Too many files"
|
389
385
|
};
|
390
386
|
function it(e, a) {
|
391
|
-
var o = e.type === "application/x-moz-file" ||
|
392
|
-
return [o, o ? null :
|
387
|
+
var o = e.type === "application/x-moz-file" || Zt(e, a);
|
388
|
+
return [o, o ? null : na(a)];
|
393
389
|
}
|
394
390
|
function lt(e, a, o) {
|
395
391
|
if (re(e.size))
|
396
392
|
if (re(a) && re(o)) {
|
397
|
-
if (e.size > o)
|
398
|
-
|
399
|
-
if (e.size < a)
|
400
|
-
return [!1, Qe(a)];
|
393
|
+
if (e.size > o) return [!1, Ze(o)];
|
394
|
+
if (e.size < a) return [!1, Qe(a)];
|
401
395
|
} else {
|
402
|
-
if (re(a) && e.size < a)
|
403
|
-
|
404
|
-
if (re(o) && e.size > o)
|
405
|
-
return [!1, Ze(o)];
|
396
|
+
if (re(a) && e.size < a) return [!1, Qe(a)];
|
397
|
+
if (re(o) && e.size > o) return [!1, Ze(o)];
|
406
398
|
}
|
407
399
|
return [!0, null];
|
408
400
|
}
|
409
401
|
function re(e) {
|
410
402
|
return e != null;
|
411
403
|
}
|
412
|
-
function
|
404
|
+
function ia(e) {
|
413
405
|
var a = e.files, o = e.accept, r = e.minSize, s = e.maxSize, d = e.multiple, m = e.maxFiles;
|
414
406
|
return !d && a.length > 1 || d && m >= 1 && a.length > m ? !1 : a.every(function(c) {
|
415
407
|
var v = it(c, o), x = Ke(v, 1), R = x[0], U = lt(c, r, s), N = Ke(U, 1), w = N[0];
|
416
408
|
return R && w;
|
417
409
|
});
|
418
410
|
}
|
419
|
-
function
|
411
|
+
function ve(e) {
|
420
412
|
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
421
413
|
}
|
422
|
-
function
|
414
|
+
function be(e) {
|
423
415
|
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(a) {
|
424
416
|
return a === "Files" || a === "application/x-moz-file";
|
425
417
|
}) : !!e.target && !!e.target.files;
|
@@ -427,15 +419,15 @@ function xe(e) {
|
|
427
419
|
function Xe(e) {
|
428
420
|
e.preventDefault();
|
429
421
|
}
|
430
|
-
function
|
422
|
+
function la(e) {
|
431
423
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
432
424
|
}
|
433
|
-
function
|
425
|
+
function da(e) {
|
434
426
|
return e.indexOf("Edge/") !== -1;
|
435
427
|
}
|
436
|
-
function
|
428
|
+
function ca() {
|
437
429
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
438
|
-
return
|
430
|
+
return la(e) || da(e);
|
439
431
|
}
|
440
432
|
function S() {
|
441
433
|
for (var e = arguments.length, a = new Array(e), o = 0; o < e; o++)
|
@@ -444,14 +436,14 @@ function S() {
|
|
444
436
|
for (var s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), m = 1; m < s; m++)
|
445
437
|
d[m - 1] = arguments[m];
|
446
438
|
return a.some(function(c) {
|
447
|
-
return !
|
439
|
+
return !ve(r) && c && c.apply(void 0, [r].concat(d)), ve(r);
|
448
440
|
});
|
449
441
|
};
|
450
442
|
}
|
451
443
|
function Je() {
|
452
444
|
return "showOpenFilePicker" in window;
|
453
445
|
}
|
454
|
-
function
|
446
|
+
function pa(e) {
|
455
447
|
return e = typeof e == "string" ? e.split(",") : e, [{
|
456
448
|
description: "everything",
|
457
449
|
// TODO: Need to handle filtering more elegantly than this!
|
@@ -462,38 +454,33 @@ function ua(e) {
|
|
462
454
|
}, {}) : {}
|
463
455
|
}];
|
464
456
|
}
|
465
|
-
var
|
466
|
-
function
|
467
|
-
return
|
457
|
+
var ua = ["children"], fa = ["open"], ma = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], ha = ["refKey", "onChange", "onClick"];
|
458
|
+
function ga(e) {
|
459
|
+
return ya(e) || ba(e) || dt(e) || xa();
|
468
460
|
}
|
469
|
-
function
|
461
|
+
function xa() {
|
470
462
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
471
463
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
472
464
|
}
|
473
|
-
function
|
474
|
-
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
|
475
|
-
return Array.from(e);
|
465
|
+
function ba(e) {
|
466
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
476
467
|
}
|
477
|
-
function
|
478
|
-
if (Array.isArray(e))
|
479
|
-
return Le(e);
|
468
|
+
function ya(e) {
|
469
|
+
if (Array.isArray(e)) return Le(e);
|
480
470
|
}
|
481
471
|
function Te(e, a) {
|
482
|
-
return
|
472
|
+
return va(e) || Ea(e, a) || dt(e, a) || Ia();
|
483
473
|
}
|
484
|
-
function
|
474
|
+
function Ia() {
|
485
475
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
486
476
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
487
477
|
}
|
488
478
|
function dt(e, a) {
|
489
479
|
if (e) {
|
490
|
-
if (typeof e == "string")
|
491
|
-
return Le(e, a);
|
480
|
+
if (typeof e == "string") return Le(e, a);
|
492
481
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
493
|
-
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set")
|
494
|
-
|
495
|
-
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))
|
496
|
-
return Le(e, a);
|
482
|
+
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
|
483
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return Le(e, a);
|
497
484
|
}
|
498
485
|
}
|
499
486
|
function Le(e, a) {
|
@@ -502,7 +489,7 @@ function Le(e, a) {
|
|
502
489
|
r[o] = e[o];
|
503
490
|
return r;
|
504
491
|
}
|
505
|
-
function
|
492
|
+
function Ea(e, a) {
|
506
493
|
var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
507
494
|
if (o != null) {
|
508
495
|
var r = [], s = !0, d = !1, m, c;
|
@@ -515,16 +502,14 @@ function va(e, a) {
|
|
515
502
|
try {
|
516
503
|
!s && o.return != null && o.return();
|
517
504
|
} finally {
|
518
|
-
if (d)
|
519
|
-
throw c;
|
505
|
+
if (d) throw c;
|
520
506
|
}
|
521
507
|
}
|
522
508
|
return r;
|
523
509
|
}
|
524
510
|
}
|
525
|
-
function
|
526
|
-
if (Array.isArray(e))
|
527
|
-
return e;
|
511
|
+
function va(e) {
|
512
|
+
if (Array.isArray(e)) return e;
|
528
513
|
}
|
529
514
|
function et(e, a) {
|
530
515
|
var o = Object.keys(e);
|
@@ -550,10 +535,9 @@ function b(e) {
|
|
550
535
|
function Me(e, a, o) {
|
551
536
|
return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
|
552
537
|
}
|
553
|
-
function
|
554
|
-
if (e == null)
|
555
|
-
|
556
|
-
var o = ja(e, a), r, s;
|
538
|
+
function Ue(e, a) {
|
539
|
+
if (e == null) return {};
|
540
|
+
var o = Ua(e, a), r, s;
|
557
541
|
if (Object.getOwnPropertySymbols) {
|
558
542
|
var d = Object.getOwnPropertySymbols(e);
|
559
543
|
for (s = 0; s < d.length; s++)
|
@@ -561,28 +545,27 @@ function ve(e, a) {
|
|
561
545
|
}
|
562
546
|
return o;
|
563
547
|
}
|
564
|
-
function
|
565
|
-
if (e == null)
|
566
|
-
return {};
|
548
|
+
function Ua(e, a) {
|
549
|
+
if (e == null) return {};
|
567
550
|
var o = {}, r = Object.keys(e), s, d;
|
568
551
|
for (d = 0; d < r.length; d++)
|
569
552
|
s = r[d], !(a.indexOf(s) >= 0) && (o[s] = e[s]);
|
570
553
|
return o;
|
571
554
|
}
|
572
|
-
var
|
573
|
-
var o = e.children, r =
|
555
|
+
var se = /* @__PURE__ */ f.forwardRef(function(e, a) {
|
556
|
+
var o = e.children, r = Ue(e, ua), s = ja(r), d = s.open, m = Ue(s, fa);
|
574
557
|
return f.useImperativeHandle(a, function() {
|
575
558
|
return {
|
576
559
|
open: d
|
577
560
|
};
|
578
|
-
}, [d]), /* @__PURE__ */
|
561
|
+
}, [d]), /* @__PURE__ */ xt.createElement(f.Fragment, null, o(b(b({}, m), {}, {
|
579
562
|
open: d
|
580
563
|
})));
|
581
564
|
});
|
582
|
-
|
565
|
+
se.displayName = "Dropzone";
|
583
566
|
var ct = {
|
584
567
|
disabled: !1,
|
585
|
-
getFilesFromEvent:
|
568
|
+
getFilesFromEvent: Yt,
|
586
569
|
maxSize: 1 / 0,
|
587
570
|
minSize: 0,
|
588
571
|
multiple: !0,
|
@@ -595,8 +578,8 @@ var ct = {
|
|
595
578
|
validator: null,
|
596
579
|
useFsAccessApi: !1
|
597
580
|
};
|
598
|
-
|
599
|
-
|
581
|
+
se.defaultProps = ct;
|
582
|
+
se.propTypes = {
|
600
583
|
/**
|
601
584
|
* Render function that exposes the dropzone state and prop getter fns
|
602
585
|
*
|
@@ -756,7 +739,6 @@ Ue.propTypes = {
|
|
756
739
|
*/
|
757
740
|
validator: g.func
|
758
741
|
};
|
759
|
-
const pt = Ue;
|
760
742
|
var ke = {
|
761
743
|
isFocused: !1,
|
762
744
|
isFileDialogActive: !1,
|
@@ -767,12 +749,12 @@ var ke = {
|
|
767
749
|
acceptedFiles: [],
|
768
750
|
fileRejections: []
|
769
751
|
};
|
770
|
-
function
|
752
|
+
function ja() {
|
771
753
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = b(b({}, ct), e), o = a.accept, r = a.disabled, s = a.getFilesFromEvent, d = a.maxSize, m = a.minSize, c = a.multiple, v = a.maxFiles, x = a.onDragEnter, R = a.onDragLeave, U = a.onDragOver, N = a.onDrop, w = a.onDropAccepted, Q = a.onDropRejected, B = a.onFileDialogCancel, z = a.onFileDialogOpen, V = a.useFsAccessApi, X = a.preventDropOnDocument, y = a.noClick, J = a.noKeyboard, C = a.noDrag, P = a.noDragEventsBubbling, O = a.validator, Y = f.useMemo(function() {
|
772
754
|
return typeof z == "function" ? z : tt;
|
773
755
|
}, [z]), H = f.useMemo(function() {
|
774
756
|
return typeof B == "function" ? B : tt;
|
775
|
-
}, [B]), j = f.useRef(null), D = f.useRef(null), Be = f.useReducer(
|
757
|
+
}, [B]), j = f.useRef(null), D = f.useRef(null), Be = f.useReducer(Da, ke), ie = Te(Be, 2), W = ie[0], _ = ie[1], le = W.isFocused, ee = W.isFileDialogActive, de = W.draggedFiles, ce = function() {
|
776
758
|
ee && setTimeout(function() {
|
777
759
|
if (D.current) {
|
778
760
|
var p = D.current.files;
|
@@ -784,29 +766,29 @@ function Da() {
|
|
784
766
|
};
|
785
767
|
f.useEffect(function() {
|
786
768
|
return V && Je() ? function() {
|
787
|
-
} : (window.addEventListener("focus",
|
788
|
-
window.removeEventListener("focus",
|
769
|
+
} : (window.addEventListener("focus", ce, !1), function() {
|
770
|
+
window.removeEventListener("focus", ce, !1);
|
789
771
|
});
|
790
772
|
}, [D, ee, H, V]);
|
791
|
-
var T = f.useRef([]),
|
773
|
+
var T = f.useRef([]), pe = function(p) {
|
792
774
|
j.current && j.current.contains(p.target) || (p.preventDefault(), T.current = []);
|
793
775
|
};
|
794
776
|
f.useEffect(function() {
|
795
|
-
return X && (document.addEventListener("dragover", Xe, !1), document.addEventListener("drop",
|
796
|
-
X && (document.removeEventListener("dragover", Xe), document.removeEventListener("drop",
|
777
|
+
return X && (document.addEventListener("dragover", Xe, !1), document.addEventListener("drop", pe, !1)), function() {
|
778
|
+
X && (document.removeEventListener("dragover", Xe), document.removeEventListener("drop", pe));
|
797
779
|
};
|
798
780
|
}, [j, X]);
|
799
|
-
var
|
800
|
-
l.preventDefault(), l.persist(),
|
801
|
-
|
781
|
+
var ue = f.useCallback(function(l) {
|
782
|
+
l.preventDefault(), l.persist(), he(l), T.current = [].concat(ga(T.current), [l.target]), be(l) && Promise.resolve(s(l)).then(function(p) {
|
783
|
+
ve(l) && !P || (_({
|
802
784
|
draggedFiles: p,
|
803
785
|
isDragActive: !0,
|
804
786
|
type: "setDraggedFiles"
|
805
787
|
}), x && x(l));
|
806
788
|
});
|
807
|
-
}, [s, x, P]),
|
808
|
-
l.preventDefault(), l.persist(),
|
809
|
-
var p =
|
789
|
+
}, [s, x, P]), fe = f.useCallback(function(l) {
|
790
|
+
l.preventDefault(), l.persist(), he(l);
|
791
|
+
var p = be(l);
|
810
792
|
if (p && l.dataTransfer)
|
811
793
|
try {
|
812
794
|
l.dataTransfer.dropEffect = "copy";
|
@@ -814,7 +796,7 @@ function Da() {
|
|
814
796
|
}
|
815
797
|
return p && U && U(l), !1;
|
816
798
|
}, [U, P]), G = f.useCallback(function(l) {
|
817
|
-
l.preventDefault(), l.persist(),
|
799
|
+
l.preventDefault(), l.persist(), he(l);
|
818
800
|
var p = T.current.filter(function(A) {
|
819
801
|
return j.current && j.current.contains(A);
|
820
802
|
}), E = p.indexOf(l.target);
|
@@ -822,26 +804,26 @@ function Da() {
|
|
822
804
|
isDragActive: !1,
|
823
805
|
type: "setDraggedFiles",
|
824
806
|
draggedFiles: []
|
825
|
-
}),
|
807
|
+
}), be(l) && R && R(l));
|
826
808
|
}, [j, R, P]), i = f.useCallback(function(l, p) {
|
827
809
|
var E = [], A = [];
|
828
810
|
l.forEach(function(F) {
|
829
|
-
var oe = it(F, o), K = Te(oe, 2), De = K[0], _e = K[1], Ae = lt(F, m, d),
|
811
|
+
var oe = it(F, o), K = Te(oe, 2), De = K[0], _e = K[1], Ae = lt(F, m, d), ge = Te(Ae, 2), Re = ge[0], we = ge[1], Fe = O ? O(F) : null;
|
830
812
|
if (De && Re && !Fe)
|
831
813
|
E.push(F);
|
832
814
|
else {
|
833
815
|
var Ne = [_e, we];
|
834
816
|
Fe && (Ne = Ne.concat(Fe)), A.push({
|
835
817
|
file: F,
|
836
|
-
errors: Ne.filter(function(
|
837
|
-
return
|
818
|
+
errors: Ne.filter(function(ht) {
|
819
|
+
return ht;
|
838
820
|
})
|
839
821
|
});
|
840
822
|
}
|
841
823
|
}), (!c && E.length > 1 || c && v >= 1 && E.length > v) && (E.forEach(function(F) {
|
842
824
|
A.push({
|
843
825
|
file: F,
|
844
|
-
errors: [
|
826
|
+
errors: [sa]
|
845
827
|
});
|
846
828
|
}), E.splice(0)), _({
|
847
829
|
acceptedFiles: E,
|
@@ -849,8 +831,8 @@ function Da() {
|
|
849
831
|
type: "setFiles"
|
850
832
|
}), N && N(E, A, p), A.length > 0 && Q && Q(A, p), E.length > 0 && w && w(E, p);
|
851
833
|
}, [_, c, o, m, d, v, N, w, Q, O]), I = f.useCallback(function(l) {
|
852
|
-
l.preventDefault(), l.persist(),
|
853
|
-
|
834
|
+
l.preventDefault(), l.persist(), he(l), T.current = [], be(l) && Promise.resolve(s(l)).then(function(p) {
|
835
|
+
ve(l) && !P || i(p, l);
|
854
836
|
}), _({
|
855
837
|
type: "reset"
|
856
838
|
});
|
@@ -861,7 +843,7 @@ function Da() {
|
|
861
843
|
}), Y();
|
862
844
|
var l = {
|
863
845
|
multiple: c,
|
864
|
-
types:
|
846
|
+
types: pa(o)
|
865
847
|
};
|
866
848
|
window.showOpenFilePicker(l).then(function(p) {
|
867
849
|
return s(p);
|
@@ -890,37 +872,37 @@ function Da() {
|
|
890
872
|
type: "blur"
|
891
873
|
});
|
892
874
|
}, []), M = f.useCallback(function() {
|
893
|
-
y || (
|
875
|
+
y || (ca() ? setTimeout(L, 0) : L());
|
894
876
|
}, [D, y, L]), k = function(p) {
|
895
877
|
return r ? null : p;
|
896
878
|
}, je = function(p) {
|
897
879
|
return J ? null : k(p);
|
898
|
-
}, fe = function(p) {
|
899
|
-
return C ? null : k(p);
|
900
880
|
}, me = function(p) {
|
881
|
+
return C ? null : k(p);
|
882
|
+
}, he = function(p) {
|
901
883
|
P && p.stopPropagation();
|
902
|
-
},
|
884
|
+
}, pt = f.useMemo(function() {
|
903
885
|
return function() {
|
904
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, E = p === void 0 ? "ref" : p, A = l.role, F = l.onKeyDown, oe = l.onFocus, K = l.onBlur, De = l.onClick, _e = l.onDragEnter, Ae = l.onDragOver,
|
886
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, E = p === void 0 ? "ref" : p, A = l.role, F = l.onKeyDown, oe = l.onFocus, K = l.onBlur, De = l.onClick, _e = l.onDragEnter, Ae = l.onDragOver, ge = l.onDragLeave, Re = l.onDrop, we = Ue(l, ma);
|
905
887
|
return b(b(Me({
|
906
888
|
onKeyDown: je(S(F, $)),
|
907
889
|
onFocus: je(S(oe, te)),
|
908
890
|
onBlur: je(S(K, ae)),
|
909
891
|
onClick: k(S(De, M)),
|
910
|
-
onDragEnter:
|
911
|
-
onDragOver:
|
912
|
-
onDragLeave:
|
913
|
-
onDrop:
|
892
|
+
onDragEnter: me(S(_e, ue)),
|
893
|
+
onDragOver: me(S(Ae, fe)),
|
894
|
+
onDragLeave: me(S(ge, G)),
|
895
|
+
onDrop: me(S(Re, I)),
|
914
896
|
role: typeof A == "string" && A !== "" ? A : "button"
|
915
897
|
}, E, j), !r && !J ? {
|
916
898
|
tabIndex: 0
|
917
899
|
} : {}), we);
|
918
900
|
};
|
919
|
-
}, [j, $, te, ae, M,
|
901
|
+
}, [j, $, te, ae, M, ue, fe, G, I, J, C, r]), ut = f.useCallback(function(l) {
|
920
902
|
l.stopPropagation();
|
921
|
-
}, []),
|
903
|
+
}, []), ft = f.useMemo(function() {
|
922
904
|
return function() {
|
923
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, E = p === void 0 ? "ref" : p, A = l.onChange, F = l.onClick, oe =
|
905
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, E = p === void 0 ? "ref" : p, A = l.onChange, F = l.onClick, oe = Ue(l, ha), K = Me({
|
924
906
|
accept: o,
|
925
907
|
multiple: c,
|
926
908
|
type: "file",
|
@@ -928,32 +910,32 @@ function Da() {
|
|
928
910
|
display: "none"
|
929
911
|
},
|
930
912
|
onChange: k(S(A, I)),
|
931
|
-
onClick: k(S(F,
|
913
|
+
onClick: k(S(F, ut)),
|
932
914
|
autoComplete: "off",
|
933
915
|
tabIndex: -1
|
934
916
|
}, E, D);
|
935
917
|
return b(b({}, K), oe);
|
936
918
|
};
|
937
|
-
}, [D, o, c, I, r]), Ye =
|
938
|
-
files:
|
919
|
+
}, [D, o, c, I, r]), Ye = de.length, He = Ye > 0 && ia({
|
920
|
+
files: de,
|
939
921
|
accept: o,
|
940
922
|
minSize: m,
|
941
923
|
maxSize: d,
|
942
924
|
multiple: c,
|
943
925
|
maxFiles: v
|
944
|
-
}),
|
926
|
+
}), mt = Ye > 0 && !He;
|
945
927
|
return b(b({}, W), {}, {
|
946
928
|
isDragAccept: He,
|
947
|
-
isDragReject:
|
948
|
-
isFocused:
|
949
|
-
getRootProps:
|
950
|
-
getInputProps:
|
929
|
+
isDragReject: mt,
|
930
|
+
isFocused: le && !r,
|
931
|
+
getRootProps: pt,
|
932
|
+
getInputProps: ft,
|
951
933
|
rootRef: j,
|
952
934
|
inputRef: D,
|
953
935
|
open: k(L)
|
954
936
|
});
|
955
937
|
}
|
956
|
-
function
|
938
|
+
function Da(e, a) {
|
957
939
|
switch (a.type) {
|
958
940
|
case "focus":
|
959
941
|
return b(b({}, e), {}, {
|
@@ -990,7 +972,7 @@ function _a(e, a) {
|
|
990
972
|
}
|
991
973
|
function tt() {
|
992
974
|
}
|
993
|
-
function
|
975
|
+
function ye({
|
994
976
|
title: e,
|
995
977
|
children: a,
|
996
978
|
id: o,
|
@@ -1027,7 +1009,7 @@ function be({
|
|
1027
1009
|
}
|
1028
1010
|
);
|
1029
1011
|
}
|
1030
|
-
const
|
1012
|
+
const _a = {
|
1031
1013
|
[u.STUDENT]: [
|
1032
1014
|
"step.docUpload.acceptableUploads.student.idCard",
|
1033
1015
|
"step.docUpload.acceptableUploads.student.classSchedule",
|
@@ -1083,7 +1065,7 @@ const Aa = {
|
|
1083
1065
|
"step.docUpload.acceptableUploads.lowIncome.programApprovalScreenshot",
|
1084
1066
|
"step.docUpload.acceptableUploads.lowIncome.programBankStatement"
|
1085
1067
|
]
|
1086
|
-
},
|
1068
|
+
}, Aa = {
|
1087
1069
|
[n.ACTIVE_DUTY]: [
|
1088
1070
|
"step.docUpload.acceptableUploads.military.active.leaveEarningStatement",
|
1089
1071
|
"step.docUpload.acceptableUploads.military.active.uniformedServicesId"
|
@@ -1150,7 +1132,7 @@ const Aa = {
|
|
1150
1132
|
[n.NUTRITION_PROFESSIONAL]: [
|
1151
1133
|
"step.docUpload.acceptableUploads.licensedProfessional.license"
|
1152
1134
|
]
|
1153
|
-
},
|
1135
|
+
}, Ra = {
|
1154
1136
|
[u.STUDENT]: [
|
1155
1137
|
"step.docUpload.uploadInfo.fullName",
|
1156
1138
|
"step.docUpload.uploadInfo.institutionName",
|
@@ -1208,7 +1190,7 @@ const Aa = {
|
|
1208
1190
|
"step.docUpload.uploadInfo.fullName",
|
1209
1191
|
"step.docUpload.uploadInfo.lowIncome.validDate"
|
1210
1192
|
]
|
1211
|
-
},
|
1193
|
+
}, wa = {
|
1212
1194
|
[n.ACTIVE_DUTY]: ["step.docUpload.uploadInfo.military.activeDuty.status"],
|
1213
1195
|
[n.VETERAN]: ["step.docUpload.uploadInfo.military.veteran.status"],
|
1214
1196
|
[n.RESERVIST]: ["step.docUpload.uploadInfo.military.reservist.status"],
|
@@ -1237,30 +1219,30 @@ const Aa = {
|
|
1237
1219
|
[n.ARCHITECT]: [],
|
1238
1220
|
[n.GENERAL_CONTRACTOR]: [],
|
1239
1221
|
[n.NUTRITION_PROFESSIONAL]: []
|
1240
|
-
},
|
1222
|
+
}, Fa = {
|
1241
1223
|
// MILITARY_FAMILY is overridden to not show branch of service.
|
1242
1224
|
[n.MILITARY_FAMILY]: [
|
1243
1225
|
"step.docUpload.uploadInfo.fullName",
|
1244
1226
|
"step.docUpload.uploadInfo.military.militaryFamily.status"
|
1245
1227
|
]
|
1246
1228
|
};
|
1247
|
-
function
|
1229
|
+
function Na(e, a) {
|
1248
1230
|
return [
|
1249
1231
|
.../* @__PURE__ */ new Set([
|
1250
|
-
...
|
1251
|
-
...
|
1232
|
+
...Aa[a] || [],
|
1233
|
+
..._a[e] || []
|
1252
1234
|
])
|
1253
1235
|
];
|
1254
1236
|
}
|
1255
|
-
function
|
1256
|
-
return
|
1237
|
+
function Ca(e, a) {
|
1238
|
+
return Fa[a] || [
|
1257
1239
|
.../* @__PURE__ */ new Set([
|
1258
|
-
...
|
1259
|
-
...
|
1240
|
+
...wa[a] || [],
|
1241
|
+
...Ra[e] || []
|
1260
1242
|
])
|
1261
1243
|
];
|
1262
1244
|
}
|
1263
|
-
const
|
1245
|
+
const Oa = ({
|
1264
1246
|
options: e,
|
1265
1247
|
selected: a,
|
1266
1248
|
onChange: o,
|
@@ -1305,11 +1287,11 @@ const Ta = ({
|
|
1305
1287
|
] })
|
1306
1288
|
)) })
|
1307
1289
|
] });
|
1308
|
-
},
|
1290
|
+
}, Ta = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "sid-named-divider", children: [
|
1309
1291
|
/* @__PURE__ */ t.jsx("hr", { className: "sid-named-divider__rule" }),
|
1310
1292
|
/* @__PURE__ */ t.jsx("p", { className: "sid-named-divider__text", children: e })
|
1311
1293
|
] });
|
1312
|
-
function
|
1294
|
+
function Sa({
|
1313
1295
|
title: e,
|
1314
1296
|
titleId: a,
|
1315
1297
|
...o
|
@@ -1332,7 +1314,7 @@ function La({
|
|
1332
1314
|
d: "M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
|
1333
1315
|
}));
|
1334
1316
|
}
|
1335
|
-
const
|
1317
|
+
const La = /* @__PURE__ */ f.forwardRef(Sa), Ma = (e) => /* @__PURE__ */ t.jsxs(
|
1336
1318
|
"svg",
|
1337
1319
|
{
|
1338
1320
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1500,7 +1482,7 @@ const Ma = f.forwardRef(La), ka = Ma, Pa = (e) => /* @__PURE__ */ t.jsxs(
|
|
1500
1482
|
)
|
1501
1483
|
]
|
1502
1484
|
}
|
1503
|
-
),
|
1485
|
+
), ka = (e) => /* @__PURE__ */ t.jsxs(
|
1504
1486
|
"svg",
|
1505
1487
|
{
|
1506
1488
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1565,7 +1547,7 @@ const Ma = f.forwardRef(La), ka = Ma, Pa = (e) => /* @__PURE__ */ t.jsxs(
|
|
1565
1547
|
)
|
1566
1548
|
]
|
1567
1549
|
}
|
1568
|
-
),
|
1550
|
+
), Pa = (e) => /* @__PURE__ */ t.jsxs(
|
1569
1551
|
"svg",
|
1570
1552
|
{
|
1571
1553
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1629,13 +1611,13 @@ const Ma = f.forwardRef(La), ka = Ma, Pa = (e) => /* @__PURE__ */ t.jsxs(
|
|
1629
1611
|
)
|
1630
1612
|
]
|
1631
1613
|
}
|
1632
|
-
),
|
1633
|
-
function
|
1634
|
-
return e === "ID_CARD" && a === "large" ?
|
1614
|
+
), Ba = ["ID_CARD", "SCHEDULE"];
|
1615
|
+
function Ya(e, a) {
|
1616
|
+
return e === "ID_CARD" && a === "large" ? Ma : e === "ID_CARD" && a === "small" ? at : e === "SCHEDULE" && a === "large" ? ka : e === "SCHEDULE" && a === "small" ? Pa : at;
|
1635
1617
|
}
|
1636
|
-
const
|
1637
|
-
const r =
|
1638
|
-
return /* @__PURE__ */ t.jsx(
|
1618
|
+
const Ha = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
1619
|
+
const r = Ya(a, o);
|
1620
|
+
return /* @__PURE__ */ t.jsx(se, { onDrop: (s) => e(s, a), children: ({ getRootProps: s, getInputProps: d }) => /* @__PURE__ */ t.jsxs("section", { ...s(), className: "sid-document-type-attachment-wrap", children: [
|
1639
1621
|
/* @__PURE__ */ t.jsx("input", { ...d() }),
|
1640
1622
|
o === "small" ? /* @__PURE__ */ t.jsxs("button", { className: "sid-document-type-attachment", type: "button", children: [
|
1641
1623
|
/* @__PURE__ */ t.jsx(r, { className: "sid-document-type-attachment__icon-small" }),
|
@@ -1643,7 +1625,7 @@ const Va = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1643
1625
|
a === "ID_CARD" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Dated School ID card" }),
|
1644
1626
|
a === "SCHEDULE" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Class Schedule" })
|
1645
1627
|
] }),
|
1646
|
-
/* @__PURE__ */ t.jsx(
|
1628
|
+
/* @__PURE__ */ t.jsx(La, { className: "sid-document-type-attachment__plus" })
|
1647
1629
|
] }) : /* @__PURE__ */ t.jsxs(
|
1648
1630
|
"button",
|
1649
1631
|
{
|
@@ -1659,7 +1641,7 @@ const Va = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1659
1641
|
}
|
1660
1642
|
)
|
1661
1643
|
] }) });
|
1662
|
-
},
|
1644
|
+
}, za = {
|
1663
1645
|
[u.STUDENT]: [
|
1664
1646
|
"step.docUpload.uploadInfo.fullName",
|
1665
1647
|
"step.docUpload.uploadInfo.student.school",
|
@@ -1722,7 +1704,7 @@ const Va = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1722
1704
|
"step.docUpload.uploadInfo.recentMover.address",
|
1723
1705
|
"step.docUpload.uploadInfo.recentMover.validDate"
|
1724
1706
|
]
|
1725
|
-
},
|
1707
|
+
}, Va = {
|
1726
1708
|
[n.ACTIVE_DUTY]: [],
|
1727
1709
|
[n.VETERAN]: [],
|
1728
1710
|
[n.RESERVIST]: [],
|
@@ -1751,16 +1733,16 @@ const Va = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1751
1733
|
[n.ARCHITECT]: [],
|
1752
1734
|
[n.GENERAL_CONTRACTOR]: [],
|
1753
1735
|
[n.NUTRITION_PROFESSIONAL]: []
|
1754
|
-
},
|
1736
|
+
}, Wa = {
|
1755
1737
|
// MILITARY_FAMILY is overridden to not show branch of service.
|
1756
1738
|
[n.MILITARY_FAMILY]: [
|
1757
1739
|
"step.docUpload.uploadInfo.military.uploadInstructionsDependent"
|
1758
1740
|
]
|
1759
1741
|
};
|
1760
|
-
function
|
1761
|
-
return
|
1762
|
-
...
|
1763
|
-
...
|
1742
|
+
function Ga(e, a) {
|
1743
|
+
return Wa[a] || [
|
1744
|
+
...Va[a] || [],
|
1745
|
+
...za[e] || []
|
1764
1746
|
];
|
1765
1747
|
}
|
1766
1748
|
const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e ? /* @__PURE__ */ t.jsxs("div", { className: "sid-field-error sid-field-error-redesign__doc-upload", children: [
|
@@ -1772,70 +1754,70 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1772
1754
|
}
|
1773
1755
|
),
|
1774
1756
|
a ? a.map((r) => /* @__PURE__ */ t.jsx("div", { className: "sid-field-error-redesign__doc-upload__span", children: r }, `error-${r}`)) : null
|
1775
|
-
] }) : null,
|
1776
|
-
const [o, r] = f.useState(!1), s = e.verificationResponse, { rejectionReasons: d, segment: m, subSegment: c } = s, { programTheme: v } = e, x = e.viewModel, { fieldValidationErrors: R } = e, { overrideEnabled: U } = e.programTheme, N = Ce("doc-upload-redesign-use-legacy-message-keys"), w = (N ?
|
1757
|
+
] }) : null, $a = ({ verificationService: e, intl: a }) => {
|
1758
|
+
const [o, r] = f.useState(!1), s = e.verificationResponse, { rejectionReasons: d, segment: m, subSegment: c } = s, { programTheme: v } = e, x = e.viewModel, { fieldValidationErrors: R } = e, { overrideEnabled: U } = e.programTheme, N = Ce("doc-upload-redesign-use-legacy-message-keys"), w = (N ? Ga : Ca)(
|
1777
1759
|
m,
|
1778
1760
|
c
|
1779
1761
|
), Q = e.verificationResponse.country === "US", B = (i) => ({
|
1780
1762
|
name: i.name,
|
1781
1763
|
url: i.type.includes("image") ? URL.createObjectURL(i) : ""
|
1782
|
-
}), [z, V] = f.useState({}), { userDidConvert: X } =
|
1783
|
-
Et
|
1764
|
+
}), [z, V] = f.useState({}), { userDidConvert: X } = yt(m), y = [], J = Ce("doc-upload-may24"), C = s.segment === "student" && s.locale === "en-US" ? J : "default", O = Ce("docUpload-assertion-checklist") === "checklist", [Y, H] = f.useState([]), [j, D] = f.useState(!1);
|
1765
|
+
It(Et) && y.push({
|
1784
1766
|
name: "myFile.png",
|
1785
1767
|
url: ""
|
1786
1768
|
});
|
1787
|
-
const
|
1769
|
+
const ie = a.formatMessage({
|
1788
1770
|
id: "step.docUpload.addFile",
|
1789
1771
|
defaultMessage: "Add documents"
|
1790
1772
|
});
|
1791
1773
|
x.file1 && x.file1.name && y.push(B(x.file1)), x.file2 && x.file2.name && y.push(B(x.file2)), x.file3 && x.file3.name && y.push(B(x.file3));
|
1792
1774
|
const W = y.map((i) => z[i.name]), _ = (i, I) => {
|
1793
|
-
r(!1), e.updateViewModel(
|
1794
|
-
},
|
1775
|
+
r(!1), e.updateViewModel(Lt(x, i, I));
|
1776
|
+
}, le = (i) => {
|
1795
1777
|
const I = i + 1;
|
1796
|
-
r(!1), H([]), D(!1), e.updateViewModel(
|
1797
|
-
}, ee = R.docUpload ||
|
1778
|
+
r(!1), H([]), D(!1), e.updateViewModel(Mt(x, I));
|
1779
|
+
}, ee = R.docUpload || vt(() => e.verificationResponse.errorIds[0], void 0), de = (i, I) => {
|
1798
1780
|
const L = [], $ = [], te = [];
|
1799
1781
|
for (const M of i) {
|
1800
1782
|
const k = St(
|
1801
|
-
|
1783
|
+
xe.docUpload,
|
1802
1784
|
M,
|
1803
1785
|
e.formValidationOptions
|
1804
1786
|
);
|
1805
1787
|
k === void 0 ? (I && V({ ...z, [M.name]: I }), L.push(M)) : (te.push(M.name), $.push(k));
|
1806
1788
|
}
|
1807
1789
|
let ae;
|
1808
|
-
$ && (ae =
|
1790
|
+
$ && (ae = Ie(R, (M) => {
|
1809
1791
|
M.docUpload = $[0];
|
1810
1792
|
})), e.updateFieldValidationErrors(ae), _(L, te);
|
1811
|
-
},
|
1793
|
+
}, ce = () => {
|
1812
1794
|
Oe.info("StepDocUploadComponent submitting form"), D(!0), (O && w.every((i) => Y.includes(i)) || !O) && (e.submitStep(
|
1813
|
-
|
1795
|
+
xe.docUpload,
|
1814
1796
|
x,
|
1815
1797
|
e.verificationResponse
|
1816
|
-
), X(
|
1798
|
+
), X(Ot, Tt));
|
1817
1799
|
}, T = (i, I) => {
|
1818
|
-
i.length > 0 ?
|
1800
|
+
i.length > 0 ? de(i, I) : i.length <= 0 && Oe.error(
|
1819
1801
|
"No files were accepted or rejected. Unknown error.",
|
1820
|
-
|
1802
|
+
xe.docUpload
|
1821
1803
|
);
|
1822
|
-
}, ce = (i) => {
|
1823
|
-
T(Array.from(i.target.files));
|
1824
1804
|
}, pe = (i) => {
|
1825
|
-
|
1805
|
+
T(Array.from(i.target.files));
|
1806
|
+
}, ue = (i) => {
|
1807
|
+
const I = Ct("addFile");
|
1826
1808
|
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), I.click());
|
1827
|
-
},
|
1809
|
+
}, fe = async () => {
|
1828
1810
|
Oe.info("StepDocUploadComponent submitting form after skipping document upload");
|
1829
|
-
const i =
|
1811
|
+
const i = Ie(x, () => {
|
1830
1812
|
});
|
1831
1813
|
e.submitStep(
|
1832
|
-
|
1814
|
+
xe.cancelDocUpload,
|
1833
1815
|
i,
|
1834
1816
|
e.verificationResponse
|
1835
1817
|
);
|
1836
|
-
}, G = /* @__PURE__ */ t.jsx("div", { className: "sid-upload-wrap sid-l-space-top-md sid-l-space-btm-md", children: C === "doc-type-icons" ? /* @__PURE__ */ t.jsx(t.Fragment, { children:
|
1818
|
+
}, G = /* @__PURE__ */ t.jsx("div", { className: "sid-upload-wrap sid-l-space-top-md sid-l-space-btm-md", children: C === "doc-type-icons" ? /* @__PURE__ */ t.jsx(t.Fragment, { children: Ba.map(
|
1837
1819
|
(i) => !W.includes(i) && /* @__PURE__ */ t.jsx(
|
1838
|
-
|
1820
|
+
Ha,
|
1839
1821
|
{
|
1840
1822
|
onFileDrop: T,
|
1841
1823
|
type: i,
|
@@ -1851,7 +1833,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1851
1833
|
erroredFileNames: x.erroredFileNames
|
1852
1834
|
}
|
1853
1835
|
),
|
1854
|
-
/* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(
|
1836
|
+
/* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(se, { onDrop: (i) => T(i), accept: ze.join(","), children: ({ getRootProps: i, getInputProps: I }) => /* @__PURE__ */ t.jsxs(
|
1855
1837
|
"div",
|
1856
1838
|
{
|
1857
1839
|
...i(),
|
@@ -1864,7 +1846,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1864
1846
|
tabIndex: -1,
|
1865
1847
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
1866
1848
|
type: "button",
|
1867
|
-
"aria-label":
|
1849
|
+
"aria-label": ie,
|
1868
1850
|
children: /* @__PURE__ */ t.jsx(
|
1869
1851
|
h,
|
1870
1852
|
{
|
@@ -1886,9 +1868,9 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1886
1868
|
children: [
|
1887
1869
|
/* @__PURE__ */ t.jsxs("div", { role: "main", children: [
|
1888
1870
|
/* @__PURE__ */ t.jsxs("div", { className: "sid-header sid-l-space-top-md", children: [
|
1889
|
-
/* @__PURE__ */ t.jsx("div", { className: "sid-doc-upload-logo-container sid-l-horz-center", children: /* @__PURE__ */ t.jsx(
|
1890
|
-
/* @__PURE__ */ t.jsx(
|
1891
|
-
/* @__PURE__ */ t.jsx(
|
1871
|
+
/* @__PURE__ */ t.jsx("div", { className: "sid-doc-upload-logo-container sid-l-horz-center", children: /* @__PURE__ */ t.jsx(Ut, { verificationService: e }) }),
|
1872
|
+
/* @__PURE__ */ t.jsx(jt, { align: "start", children: /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.title", tagName: "h1" }) }),
|
1873
|
+
/* @__PURE__ */ t.jsx(Dt, { verificationService: e }),
|
1892
1874
|
d && d.length > 0 && /* @__PURE__ */ t.jsxs("div", { className: "sid-upload-rejection__wrapper", children: [
|
1893
1875
|
/* @__PURE__ */ t.jsx("div", { className: "sid-header__subtitle-doc-upload-rejected", children: /* @__PURE__ */ t.jsx(
|
1894
1876
|
h,
|
@@ -1951,8 +1933,8 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1951
1933
|
tabIndex: 0,
|
1952
1934
|
"aria-label": `Remove file ${i.name}`,
|
1953
1935
|
className: "sid-file-list__remove-btn",
|
1954
|
-
onClick: () =>
|
1955
|
-
onKeyPress: () =>
|
1936
|
+
onClick: () => le(I),
|
1937
|
+
onKeyPress: () => le(I)
|
1956
1938
|
}
|
1957
1939
|
)
|
1958
1940
|
] })
|
@@ -1963,10 +1945,10 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1963
1945
|
className: "sid-docdrop-wrap__dropzone thumbnail_wrapper",
|
1964
1946
|
htmlFor: "sid-take-photo-input",
|
1965
1947
|
role: "button",
|
1966
|
-
onKeyUp: (i) =>
|
1948
|
+
onKeyUp: (i) => ue(i),
|
1967
1949
|
tabIndex: 0,
|
1968
1950
|
children: [
|
1969
|
-
/* @__PURE__ */ t.jsx(
|
1951
|
+
/* @__PURE__ */ t.jsx(_t, { className: "sid-uploadzone__icon", width: "16px" }),
|
1970
1952
|
/* @__PURE__ */ t.jsx("p", { className: "sid-docdrop-wrap__instructions thumbnail_wrapper-text", children: /* @__PURE__ */ t.jsx(
|
1971
1953
|
h,
|
1972
1954
|
{
|
@@ -1977,7 +1959,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1977
1959
|
/* @__PURE__ */ t.jsx(
|
1978
1960
|
"input",
|
1979
1961
|
{
|
1980
|
-
onChange:
|
1962
|
+
onChange: pe,
|
1981
1963
|
type: "file",
|
1982
1964
|
id: "sid-take-photo-input",
|
1983
1965
|
hidden: !0,
|
@@ -1999,7 +1981,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1999
1981
|
}
|
2000
1982
|
),
|
2001
1983
|
O && y.length >= 1 && /* @__PURE__ */ t.jsx(
|
2002
|
-
|
1984
|
+
Oa,
|
2003
1985
|
{
|
2004
1986
|
options: w,
|
2005
1987
|
selected: Y,
|
@@ -2011,7 +1993,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2011
1993
|
"button",
|
2012
1994
|
{
|
2013
1995
|
id: "sid-submit-doc-upload",
|
2014
|
-
onClick:
|
1996
|
+
onClick: ce,
|
2015
1997
|
type: "submit",
|
2016
1998
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
2017
1999
|
"aria-disabled": y.length <= 0 || O && !w.every((i) => Y.includes(i)),
|
@@ -2039,13 +2021,13 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2039
2021
|
] }) : null,
|
2040
2022
|
C === "doc-type-icons" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2041
2023
|
y.length > 0 && y.length < 2 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2042
|
-
/* @__PURE__ */ t.jsx(
|
2024
|
+
/* @__PURE__ */ t.jsx(Ta, { children: "Add another document" }),
|
2043
2025
|
G
|
2044
2026
|
] }),
|
2045
2027
|
/* @__PURE__ */ t.jsx("h3", { children: "FAQ" }),
|
2046
|
-
/* @__PURE__ */ t.jsx(
|
2028
|
+
/* @__PURE__ */ t.jsx(ye, { id: "suggestedDocs", title: "What information is needed?", children: /* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children: w.map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-doc-upload-requirements__definition", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)) }) })
|
2047
2029
|
] }) : /* @__PURE__ */ t.jsxs(
|
2048
|
-
|
2030
|
+
ye,
|
2049
2031
|
{
|
2050
2032
|
id: "suggestedDocs",
|
2051
2033
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2059,7 +2041,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2059
2041
|
children: [
|
2060
2042
|
N && /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptableUploadExamples" }),
|
2061
2043
|
/* @__PURE__ */ t.jsxs("ul", { className: "sid-acceptable-document-types", children: [
|
2062
|
-
(N ? Rt :
|
2044
|
+
(N ? Rt : Na)(
|
2063
2045
|
m,
|
2064
2046
|
c
|
2065
2047
|
).map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)),
|
@@ -2085,7 +2067,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2085
2067
|
}
|
2086
2068
|
),
|
2087
2069
|
/* @__PURE__ */ t.jsxs(
|
2088
|
-
|
2070
|
+
ye,
|
2089
2071
|
{
|
2090
2072
|
id: "whatHappensNext",
|
2091
2073
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2126,7 +2108,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2126
2108
|
}
|
2127
2109
|
),
|
2128
2110
|
/* @__PURE__ */ t.jsx(
|
2129
|
-
|
2111
|
+
ye,
|
2130
2112
|
{
|
2131
2113
|
id: "canIFinishLater",
|
2132
2114
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2150,7 +2132,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2150
2132
|
{
|
2151
2133
|
href: "#",
|
2152
2134
|
className: "sid-link sid-override-link",
|
2153
|
-
onClick: () =>
|
2135
|
+
onClick: () => fe(),
|
2154
2136
|
role: "button",
|
2155
2137
|
children: /* @__PURE__ */ t.jsx(
|
2156
2138
|
h,
|
@@ -2166,7 +2148,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2166
2148
|
]
|
2167
2149
|
}
|
2168
2150
|
);
|
2169
|
-
},
|
2151
|
+
}, qa = bt($a);
|
2170
2152
|
export {
|
2171
|
-
|
2153
|
+
qa as default
|
2172
2154
|
};
|