@sheerid/jslib-nightly 2.103.0-alpha.1 → 2.104.0-alpha.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/__tests__/__helpers__/renderers.d.ts +5 -5
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +16418 -17936
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{EmailLoopPending-Cp3dQjbH.js → EmailLoopPending-D-O7IRrU.js} +17 -17
- package/chunk/{EmailLoopPending-Cp3dQjbH.js.map → EmailLoopPending-D-O7IRrU.js.map} +1 -1
- package/chunk/{EmailLoopPending-WTPkkJsm.js → EmailLoopPending-DmENoLpP.js} +17 -17
- package/chunk/{EmailLoopPending-WTPkkJsm.js.map → EmailLoopPending-DmENoLpP.js.map} +1 -1
- package/chunk/LicensedProfessionalOrganizationComponent-BrW9osPt.js +55 -0
- package/chunk/LicensedProfessionalOrganizationComponent-BrW9osPt.js.map +1 -0
- package/chunk/LicensedProfessionalOrganizationComponent-Cu6a9uBs.js +51 -0
- package/chunk/LicensedProfessionalOrganizationComponent-Cu6a9uBs.js.map +1 -0
- package/chunk/{Onfido-AyvUk6wg.js → Onfido-CMH3IUna.js} +28 -28
- package/chunk/{Onfido-AyvUk6wg.js.map → Onfido-CMH3IUna.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-Dbk23JEP.js → StepIDCheckLoopOnfido-BRtMQNQl.js} +12 -13
- package/chunk/{StepIDCheckLoopOnfido-DbTm06es.js.map → StepIDCheckLoopOnfido-BRtMQNQl.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DbTm06es.js → StepIDCheckLoopOnfido-mZhLONqq.js} +12 -13
- package/chunk/{StepIDCheckLoopOnfido-Dbk23JEP.js.map → StepIDCheckLoopOnfido-mZhLONqq.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-CeadrU2e.js → StepIDCheckLoopRegula-1wd-jJGJ.js} +85 -58
- package/chunk/StepIDCheckLoopRegula-1wd-jJGJ.js.map +1 -0
- package/chunk/{StepIDCheckLoopRegula-B7RS9_LL.js → StepIDCheckLoopRegula-jyg1vIi3.js} +85 -58
- package/chunk/StepIDCheckLoopRegula-jyg1vIi3.js.map +1 -0
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.js → StepInactiveMilitaryPersonalInfoComponent-CmQGKlal.js} +52 -52
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js.map → StepInactiveMilitaryPersonalInfoComponent-CmQGKlal.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js → StepInactiveMilitaryPersonalInfoComponent-Qfl3ZvB1.js} +52 -52
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.js.map → StepInactiveMilitaryPersonalInfoComponent-Qfl3ZvB1.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-Dl7QItmr.js → index-1tM2UWke.js} +56 -48
- package/chunk/{index-Dl7QItmr.js.map → index-1tM2UWke.js.map} +1 -1
- package/chunk/{index-XXxK9rgV.js → index-25aIMfhs.js} +87 -86
- package/chunk/index-25aIMfhs.js.map +1 -0
- package/chunk/{index-BOpxl8V9.js → index-2tpdu0Sm.js} +28 -28
- package/chunk/{index-BOpxl8V9.js.map → index-2tpdu0Sm.js.map} +1 -1
- package/chunk/{index-CaSKZsTY.js → index-BJxmlJd1.js} +15 -15
- package/chunk/{index-CaSKZsTY.js.map → index-BJxmlJd1.js.map} +1 -1
- package/chunk/{index-4APDQFqJ.js → index-BSXBGGOf.js} +10 -10
- package/{lib/index-BHwYKmBe.js.map → chunk/index-BSXBGGOf.js.map} +1 -1
- package/chunk/index-B_CvWvhW.js +27 -0
- package/chunk/index-B_CvWvhW.js.map +1 -0
- package/chunk/{index-DFQ4PjGJ.js → index-BgB4HxER.js} +58 -58
- package/chunk/{index-CtqWr1aK.js.map → index-BgB4HxER.js.map} +1 -1
- package/chunk/{index-RmF57u5_.js → index-BjWeyRVL.js} +43 -43
- package/chunk/{index-C0jDbJPp.js.map → index-BjWeyRVL.js.map} +1 -1
- package/chunk/{index-qAxcloBs.js → index-BmJ3aubI.js} +11 -11
- package/chunk/{index-qAxcloBs.js.map → index-BmJ3aubI.js.map} +1 -1
- package/chunk/{index-CtqWr1aK.js → index-BrVZpRb7.js} +58 -58
- package/chunk/{index-DFQ4PjGJ.js.map → index-BrVZpRb7.js.map} +1 -1
- package/chunk/index-Bv_0MGCt.js +31 -0
- package/chunk/index-Bv_0MGCt.js.map +1 -0
- package/chunk/{index-aKTpkBwz.js → index-C3tQa9xA.js} +56 -48
- package/chunk/{index-aKTpkBwz.js.map → index-C3tQa9xA.js.map} +1 -1
- package/chunk/{index-C0jDbJPp.js → index-C6cgSdQ9.js} +43 -43
- package/chunk/{index-RmF57u5_.js.map → index-C6cgSdQ9.js.map} +1 -1
- package/chunk/{index-D3dphMnl.js → index-CEidf7uT.js} +15 -15
- package/{lib/index-Sytmygw_.js.map → chunk/index-CEidf7uT.js.map} +1 -1
- package/chunk/{index-BhkJfnda.js → index-CGKKTwvx.js} +15 -15
- package/chunk/{index-BDw8efPp.js.map → index-CGKKTwvx.js.map} +1 -1
- package/chunk/{index-BtYzUCrC.js → index-Cb7GlxEu.js} +11 -11
- package/chunk/{index-BtYzUCrC.js.map → index-Cb7GlxEu.js.map} +1 -1
- package/chunk/{index-DPEoeYI6.js → index-Cq8qB8GK.js} +44 -44
- package/chunk/{index-CgSW4Vzh.js.map → index-Cq8qB8GK.js.map} +1 -1
- package/chunk/{index-B30_E6pJ.js → index-D1j4nnQa.js} +31 -31
- package/chunk/{index-B30_E6pJ.js.map → index-D1j4nnQa.js.map} +1 -1
- package/chunk/{index-DB9SisGK.js → index-D6Gez9pU.js} +21 -21
- package/chunk/{index-DB9SisGK.js.map → index-D6Gez9pU.js.map} +1 -1
- package/chunk/{index-BGCnajPS.js → index-D6RaCifq.js} +30 -30
- package/chunk/{index-BFMTiaJv.js.map → index-D6RaCifq.js.map} +1 -1
- package/chunk/{index-NjSUlAP4.js → index-D8z4eipH.js} +53 -53
- package/chunk/{index-oMg5zy_2.js.map → index-D8z4eipH.js.map} +1 -1
- package/chunk/{index-C9bZ7enn.js → index-DFjiwKs3.js} +7 -7
- package/chunk/{index-2QV6VPA3.js.map → index-DFjiwKs3.js.map} +1 -1
- package/chunk/index-DIkWpujR.js +4 -4
- package/chunk/index-DIkWpujR.js.map +1 -1
- package/chunk/{index-BDw8efPp.js → index-DJReh58z.js} +15 -15
- package/chunk/{index-BhkJfnda.js.map → index-DJReh58z.js.map} +1 -1
- package/chunk/{index-DWjrZunN.js → index-DPLvpl1z.js} +10 -10
- package/chunk/{index-4APDQFqJ.js.map → index-DPLvpl1z.js.map} +1 -1
- package/chunk/{index-DZsw9-0u.js → index-DR_Yi6nm.js} +237 -219
- package/chunk/index-DR_Yi6nm.js.map +1 -0
- package/chunk/{index-_ohn63ug.js → index-DZ0bnNgg.js} +31 -31
- package/chunk/{index-_ohn63ug.js.map → index-DZ0bnNgg.js.map} +1 -1
- package/chunk/{index-B3NA0DdP.js → index-D_lbJwrN.js} +87 -86
- package/chunk/index-D_lbJwrN.js.map +1 -0
- package/chunk/{index-MRhfTdmm.js → index-DyHhX3QL.js} +21 -21
- package/chunk/{index-MRhfTdmm.js.map → index-DyHhX3QL.js.map} +1 -1
- package/chunk/{index-CgSW4Vzh.js → index-F-HVkQz5.js} +44 -44
- package/{lib/index-Cn53lF5X.js.map → chunk/index-F-HVkQz5.js.map} +1 -1
- package/chunk/{index-D7dDB9pN.js → index-GaKINs6g.js} +23 -23
- package/chunk/{index-DIV55Je2.js.map → index-GaKINs6g.js.map} +1 -1
- package/{lib/index-S3ZpXPMJ.js → chunk/index-IntP52Fm.js} +22 -23
- package/chunk/{index-BGCnajPS.js.map → index-IntP52Fm.js.map} +1 -1
- package/chunk/{index-DIV55Je2.js → index-i9-QlgZ0.js} +23 -23
- package/chunk/{index-D7dDB9pN.js.map → index-i9-QlgZ0.js.map} +1 -1
- package/chunk/{index-tFgJS6bB.js → index-n6-LNqUp.js} +23 -23
- package/chunk/{index-tFgJS6bB.js.map → index-n6-LNqUp.js.map} +1 -1
- package/chunk/{index-2QV6VPA3.js → index-rjS-77t0.js} +7 -7
- package/chunk/{index-C9bZ7enn.js.map → index-rjS-77t0.js.map} +1 -1
- package/chunk/{index-BPEB_HHW.js → index-vIL1gjSk.js} +237 -219
- package/chunk/index-vIL1gjSk.js.map +1 -0
- package/chunk/{index-CgBENXRP.js → index-whConjrR.js} +23 -23
- package/{lib/index-BcE9NN84.js.map → chunk/index-whConjrR.js.map} +1 -1
- package/chunk/{index-DtoxnCtM.js → index-y-QcpyIc.js} +28 -28
- package/{lib/index-DQvdYpIH.js.map → chunk/index-y-QcpyIc.js.map} +1 -1
- package/chunk/{index-oMg5zy_2.js → index-ygMzyxW9.js} +53 -53
- package/chunk/{index-NjSUlAP4.js.map → index-ygMzyxW9.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-BsY8WlOg.js → useCollectFieldsEndpoint-CumMd2sJ.js} +11 -11
- package/chunk/{useCollectFieldsEndpoint-BsY8WlOg.js.map → useCollectFieldsEndpoint-CumMd2sJ.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DeICm6Vb.js → useCollectFieldsEndpoint-V5bz5WAF.js} +11 -11
- package/chunk/{useCollectFieldsEndpoint-DeICm6Vb.js.map → useCollectFieldsEndpoint-V5bz5WAF.js.map} +1 -1
- package/chunk/{useEmailFirstExperiment-3uKuefem.js → useEmailFirstExperiment-CV5nAxtl.js} +30 -29
- package/chunk/{useEmailFirstExperiment-3uKuefem.js.map → useEmailFirstExperiment-CV5nAxtl.js.map} +1 -1
- package/chunk/{useEmailFirstExperiment-B1_E_D0z.js → useEmailFirstExperiment-mjdDc7vk.js} +30 -29
- package/chunk/{useEmailFirstExperiment-B1_E_D0z.js.map → useEmailFirstExperiment-mjdDc7vk.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 +25 -25
- package/lib/{EmailLoopPending-BWEJteWf.js → EmailLoopPending-DUy2k56y.js} +14 -14
- package/lib/{EmailLoopPending-BWEJteWf.js.map → EmailLoopPending-DUy2k56y.js.map} +1 -1
- package/lib/LicensedProfessionalOrganizationComponent-BPtxmkjH.js +52 -0
- package/lib/LicensedProfessionalOrganizationComponent-BPtxmkjH.js.map +1 -0
- package/lib/{Onfido-AyvUk6wg.js → Onfido-CMH3IUna.js} +28 -28
- package/lib/{Onfido-AyvUk6wg.js.map → Onfido-CMH3IUna.js.map} +1 -1
- package/lib/StepCollectMilitaryStatusComponent-u1rI8N4t.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-B6FWsKVT.js.map → StepCollectMilitaryStatusComponent-u1rI8N4t.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-BoYu03qf.js → StepIDCheckLoopOnfido-DirszrOR.js} +19 -19
- package/lib/{StepIDCheckLoopOnfido-BoYu03qf.js.map → StepIDCheckLoopOnfido-DirszrOR.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-CleO2AvI.js → StepIDCheckLoopRegula-DoIQP1h2.js} +5 -5
- package/lib/{StepIDCheckLoopRegula-CleO2AvI.js.map → StepIDCheckLoopRegula-DoIQP1h2.js.map} +1 -1
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-CwHB55DG.js → StepInactiveMilitaryPersonalInfoComponent-uX6OkV0d.js} +52 -52
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-CwHB55DG.js.map → StepInactiveMilitaryPersonalInfoComponent-uX6OkV0d.js.map} +1 -1
- package/lib/VerificationApiUtils-DXDQAg5m.js +21 -0
- package/lib/VerificationApiUtils-DXDQAg5m.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-DS7nD0gX.js +26840 -0
- package/lib/es6-DS7nD0gX.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-DpFFsGey.js → index--qLF6ZOW.js} +76 -75
- package/lib/index--qLF6ZOW.js.map +1 -0
- package/lib/index-0NkCv3Y-.js +11 -0
- package/lib/index-0NkCv3Y-.js.map +1 -0
- package/lib/{index-DQvdYpIH.js → index-9ka8yNRo.js} +23 -23
- package/{chunk/index-DtoxnCtM.js.map → lib/index-9ka8yNRo.js.map} +1 -1
- package/lib/{index-D0D7HAPn.js → index-AWpSRRq3.js} +60 -60
- package/lib/{index-D0D7HAPn.js.map → index-AWpSRRq3.js.map} +1 -1
- package/lib/index-B9dEWYQH.js +11 -0
- package/lib/index-B9dEWYQH.js.map +1 -0
- package/lib/{index-BcE9NN84.js → index-BAFdbWcI.js} +32 -32
- package/{chunk/index-CgBENXRP.js.map → lib/index-BAFdbWcI.js.map} +1 -1
- package/lib/index-BY6Xy81u.js +11 -0
- package/lib/index-BY6Xy81u.js.map +1 -0
- package/lib/{index-CRYZY6vI.js → index-C1JFiqbD.js} +24 -24
- package/lib/{index-CRYZY6vI.js.map → index-C1JFiqbD.js.map} +1 -1
- package/lib/index-C3Iqch6i.js +11 -0
- package/lib/index-C3Iqch6i.js.map +1 -0
- package/lib/{index-CBDyLXYG.js → index-CCflTrqh.js} +52 -52
- package/lib/{index-CBDyLXYG.js.map → index-CCflTrqh.js.map} +1 -1
- package/lib/{index-VNMhK7yn.js → index-CJfYYEay.js} +7 -7
- package/lib/{index-VNMhK7yn.js.map → index-CJfYYEay.js.map} +1 -1
- package/lib/{index-Cn53lF5X.js → index-CLj9YCrn.js} +27 -27
- package/{chunk/index-DPEoeYI6.js.map → lib/index-CLj9YCrn.js.map} +1 -1
- package/lib/{index-CBifWEeV.js → index-CY10ElCy.js} +402 -385
- package/lib/index-CY10ElCy.js.map +1 -0
- package/lib/{index-3SRQvj39.js → index-CgJWGuRF.js} +26 -26
- package/lib/{index-3SRQvj39.js.map → index-CgJWGuRF.js.map} +1 -1
- package/lib/{index-BxVqnD-7.js → index-CkW6g9oh.js} +23 -23
- package/lib/{index-BxVqnD-7.js.map → index-CkW6g9oh.js.map} +1 -1
- package/lib/{index-eOSlGhXP.js → index-CwqfypY1.js} +5 -5
- package/lib/{index-eOSlGhXP.js.map → index-CwqfypY1.js.map} +1 -1
- package/{chunk/index-BFMTiaJv.js → lib/index-CyiYceqn.js} +33 -32
- package/lib/{index-S3ZpXPMJ.js.map → index-CyiYceqn.js.map} +1 -1
- package/lib/{index-BHwYKmBe.js → index-D-0wY68l.js} +10 -10
- package/{chunk/index-DWjrZunN.js.map → lib/index-D-0wY68l.js.map} +1 -1
- package/lib/{index-BJBWT9wa.js → index-DEYBhR7F.js} +25 -25
- package/lib/{index-BJBWT9wa.js.map → index-DEYBhR7F.js.map} +1 -1
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/index-DIkWpujR.js.map +1 -1
- package/lib/index-Da2aS2uY.js +28 -0
- package/lib/{index-B8_50Him.js.map → index-Da2aS2uY.js.map} +1 -1
- package/lib/{index-Sytmygw_.js → index-DcOpzG-K.js} +5 -5
- package/{chunk/index-D3dphMnl.js.map → lib/index-DcOpzG-K.js.map} +1 -1
- package/lib/{index-CTem-Vg8.js → index-VC3WFrsr.js} +9 -9
- package/lib/{index-CTem-Vg8.js.map → index-VC3WFrsr.js.map} +1 -1
- package/lib/{index-CrV2nMoq.js → index-uCUcf8WW.js} +5 -5
- package/lib/{index-CrV2nMoq.js.map → index-uCUcf8WW.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-CAKKawmD.js → useCollectFieldsEndpoint-DhvzoNQ8.js} +8 -8
- package/lib/{useCollectFieldsEndpoint-CAKKawmD.js.map → useCollectFieldsEndpoint-DhvzoNQ8.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-vO9rcSms.js → useEmailFirstExperiment-r3ZPOBWV.js} +7 -6
- package/lib/{useEmailFirstExperiment-vO9rcSms.js.map → useEmailFirstExperiment-r3ZPOBWV.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 +16514 -18032
- 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 +0 -1
- package/src/components/CopyToClipboard/CopyToClipboardComponent.d.ts +1 -2
- 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 +1 -2
- 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 +8 -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/LicensedProfessionalOrganizationComponent-D7gWh3Qx.js +0 -45
- package/chunk/LicensedProfessionalOrganizationComponent-D7gWh3Qx.js.map +0 -1
- package/chunk/LicensedProfessionalOrganizationComponent-LYrmpWss.js +0 -49
- package/chunk/LicensedProfessionalOrganizationComponent-LYrmpWss.js.map +0 -1
- package/chunk/StepIDCheckLoopRegula-B7RS9_LL.js.map +0 -1
- package/chunk/StepIDCheckLoopRegula-CeadrU2e.js.map +0 -1
- package/chunk/index-B2aeWDCT.js +0 -48
- package/chunk/index-B2aeWDCT.js.map +0 -1
- package/chunk/index-B3NA0DdP.js.map +0 -1
- package/chunk/index-BPEB_HHW.js.map +0 -1
- package/chunk/index-BqmbVto7.js +0 -52
- package/chunk/index-BqmbVto7.js.map +0 -1
- package/chunk/index-DZsw9-0u.js.map +0 -1
- package/chunk/index-XXxK9rgV.js.map +0 -1
- package/lib/LicensedProfessionalOrganizationComponent-8Fz7VzpC.js +0 -46
- package/lib/LicensedProfessionalOrganizationComponent-8Fz7VzpC.js.map +0 -1
- package/lib/StepCollectMilitaryStatusComponent-B6FWsKVT.js +0 -11
- package/lib/VerificationApiUtils-xT8neNEB.js +0 -24
- package/lib/VerificationApiUtils-xT8neNEB.js.map +0 -1
- package/lib/es6-B4C99nr_.js +0 -27974
- package/lib/es6-B4C99nr_.js.map +0 -1
- package/lib/index-B8_50Him.js +0 -28
- package/lib/index-CBifWEeV.js.map +0 -1
- package/lib/index-CTWjUdXx.js +0 -11
- package/lib/index-CTWjUdXx.js.map +0 -1
- package/lib/index-CiuvIMbL.js +0 -11
- package/lib/index-CiuvIMbL.js.map +0 -1
- package/lib/index-DZB3KVgZ.js +0 -11
- package/lib/index-DZB3KVgZ.js.map +0 -1
- package/lib/index-DpFFsGey.js.map +0 -1
- package/lib/index-XBfOIml7.js +0 -11
- package/lib/index-XBfOIml7.js.map +0 -1
@@ -4,24 +4,25 @@
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
5
5
|
*/
|
6
6
|
/**
|
7
|
-
* VERSION: 2.
|
8
|
-
* BUILD_TIMESTAMP:
|
9
|
-
* BUILD_DATE: Thu May 01 2025
|
10
|
-
* BUILD_COMMIT:
|
7
|
+
* VERSION: 2.104.0-alpha.0
|
8
|
+
* BUILD_TIMESTAMP: 1746122131368
|
9
|
+
* BUILD_DATE: Thu May 01 2025 17:55:31 GMT+0000 (Coordinated Universal Time)
|
10
|
+
* BUILD_COMMIT: 11de903d86267c3dbd7e05948a323fa12b63d0ec
|
11
11
|
*/
|
12
|
-
import {
|
13
|
-
|
12
|
+
import { n as ye, aW as Pe, aX as q, aY as Z, aZ as xt, r as f, R as bt, a_ as g, j as t, aN as u, a$ as n, b as h, i as yt, al as Ce, av as It, g as Et, b0 as vt, e as Ut, b1 as ze, o as jt, A as Dt, b2 as _t, U as At, b3 as Rt, b4 as wt, b5 as Ft, m as Nt, l as Oe, V as ge, b6 as Ct, b7 as Ot, b8 as Tt, b9 as St } from "../_mysheerid-preview.js";
|
13
|
+
import { P as Lt } from "./StepIDCheckLoopRegula-1wd-jJGJ.js";
|
14
|
+
const Mt = (e, a, o) => ye(e, (r) => {
|
14
15
|
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;
|
15
|
-
}),
|
16
|
+
}), kt = (e, a) => {
|
16
17
|
if (![1, 2, 3].includes(a))
|
17
18
|
throw new Error(
|
18
19
|
`Expected either 1, 2 or 3 for argument "fileNumber", but received ${a}`
|
19
20
|
);
|
20
|
-
return
|
21
|
+
return ye(e, (o) => {
|
21
22
|
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);
|
22
23
|
});
|
23
24
|
};
|
24
|
-
var
|
25
|
+
var Pt = /* @__PURE__ */ new Map([
|
25
26
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
26
27
|
["aac", "audio/aac"],
|
27
28
|
["abw", "application/x-abiword"],
|
@@ -104,7 +105,7 @@ var kt = /* @__PURE__ */ new Map([
|
|
104
105
|
["msg", "application/vnd.ms-outlook"]
|
105
106
|
]);
|
106
107
|
function ne(e, a) {
|
107
|
-
var o =
|
108
|
+
var o = Bt(e);
|
108
109
|
if (typeof o.path != "string") {
|
109
110
|
var r = e.webkitRelativePath;
|
110
111
|
Object.defineProperty(o, "path", {
|
@@ -116,10 +117,10 @@ function ne(e, a) {
|
|
116
117
|
}
|
117
118
|
return o;
|
118
119
|
}
|
119
|
-
function
|
120
|
+
function Bt(e) {
|
120
121
|
var a = e.name, o = a && a.lastIndexOf(".") !== -1;
|
121
122
|
if (o && !e.type) {
|
122
|
-
var r = a.split(".").pop().toLowerCase(), s =
|
123
|
+
var r = a.split(".").pop().toLowerCase(), s = Pt.get(r);
|
123
124
|
s && Object.defineProperty(e, "type", {
|
124
125
|
value: s,
|
125
126
|
writable: !1,
|
@@ -129,36 +130,36 @@ function Pt(e) {
|
|
129
130
|
}
|
130
131
|
return e;
|
131
132
|
}
|
132
|
-
var
|
133
|
+
var Yt = [
|
133
134
|
// Thumbnail cache files for macOS and Windows
|
134
135
|
".DS_Store",
|
135
136
|
"Thumbs.db"
|
136
137
|
// Windows
|
137
138
|
];
|
138
|
-
function
|
139
|
+
function Ht(e) {
|
139
140
|
return q(this, void 0, void 0, function() {
|
140
141
|
return Z(this, function(a) {
|
141
|
-
return
|
142
|
+
return Ie(e) && zt(e) ? [2, $t(e.dataTransfer, e.type)] : Vt(e) ? [2, Wt(e)] : Array.isArray(e) && e.every(function(o) {
|
142
143
|
return "getFile" in o && typeof o.getFile == "function";
|
143
|
-
}) ? [2,
|
144
|
+
}) ? [2, Gt(e)] : [2, []];
|
144
145
|
});
|
145
146
|
});
|
146
147
|
}
|
147
|
-
function Ht(e) {
|
148
|
-
return Ee(e.dataTransfer);
|
149
|
-
}
|
150
148
|
function zt(e) {
|
151
|
-
return
|
149
|
+
return Ie(e.dataTransfer);
|
152
150
|
}
|
153
|
-
function
|
151
|
+
function Vt(e) {
|
152
|
+
return Ie(e) && Ie(e.target);
|
153
|
+
}
|
154
|
+
function Ie(e) {
|
154
155
|
return typeof e == "object" && e !== null;
|
155
156
|
}
|
156
|
-
function
|
157
|
+
function Wt(e) {
|
157
158
|
return Se(e.target.files).map(function(a) {
|
158
159
|
return ne(a);
|
159
160
|
});
|
160
161
|
}
|
161
|
-
function
|
162
|
+
function Gt(e) {
|
162
163
|
return q(this, void 0, void 0, function() {
|
163
164
|
var a;
|
164
165
|
return Z(this, function(o) {
|
@@ -175,7 +176,7 @@ function Wt(e) {
|
|
175
176
|
});
|
176
177
|
});
|
177
178
|
}
|
178
|
-
function
|
179
|
+
function $t(e, a) {
|
179
180
|
return q(this, void 0, void 0, function() {
|
180
181
|
var o, r;
|
181
182
|
return Z(this, function(s) {
|
@@ -183,7 +184,7 @@ function Gt(e, a) {
|
|
183
184
|
case 0:
|
184
185
|
return e === null ? [2, []] : e.items ? (o = Se(e.items).filter(function(d) {
|
185
186
|
return d.kind === "file";
|
186
|
-
}), a !== "drop" ? [2, o] : [4, Promise.all(o.map(
|
187
|
+
}), a !== "drop" ? [2, o] : [4, Promise.all(o.map(Kt))]) : [3, 2];
|
187
188
|
case 1:
|
188
189
|
return r = s.sent(), [2, Ve(rt(r))];
|
189
190
|
case 2:
|
@@ -196,7 +197,7 @@ function Gt(e, a) {
|
|
196
197
|
}
|
197
198
|
function Ve(e) {
|
198
199
|
return e.filter(function(a) {
|
199
|
-
return
|
200
|
+
return Yt.indexOf(a.name) === -1;
|
200
201
|
});
|
201
202
|
}
|
202
203
|
function Se(e) {
|
@@ -208,7 +209,7 @@ function Se(e) {
|
|
208
209
|
}
|
209
210
|
return a;
|
210
211
|
}
|
211
|
-
function
|
212
|
+
function Kt(e) {
|
212
213
|
if (typeof e.webkitGetAsEntry != "function")
|
213
214
|
return We(e);
|
214
215
|
var a = e.webkitGetAsEntry();
|
@@ -216,7 +217,7 @@ function $t(e) {
|
|
216
217
|
}
|
217
218
|
function rt(e) {
|
218
219
|
return e.reduce(function(a, o) {
|
219
|
-
return
|
220
|
+
return xt(a, Array.isArray(o) ? rt(o) : [o]);
|
220
221
|
}, []);
|
221
222
|
}
|
222
223
|
function We(e) {
|
@@ -226,10 +227,10 @@ function We(e) {
|
|
226
227
|
var o = ne(a);
|
227
228
|
return Promise.resolve(o);
|
228
229
|
}
|
229
|
-
function
|
230
|
+
function qt(e) {
|
230
231
|
return q(this, void 0, void 0, function() {
|
231
232
|
return Z(this, function(a) {
|
232
|
-
return [2, e.isDirectory ? nt(e) :
|
233
|
+
return [2, e.isDirectory ? nt(e) : Zt(e)];
|
233
234
|
});
|
234
235
|
});
|
235
236
|
}
|
@@ -245,7 +246,8 @@ function nt(e) {
|
|
245
246
|
return Z(this, function(U) {
|
246
247
|
switch (U.label) {
|
247
248
|
case 0:
|
248
|
-
if (c.length)
|
249
|
+
if (c.length)
|
250
|
+
return [3, 5];
|
249
251
|
U.label = 1;
|
250
252
|
case 1:
|
251
253
|
return U.trys.push([1, 3, , 4]), [4, Promise.all(s)];
|
@@ -256,7 +258,7 @@ function nt(e) {
|
|
256
258
|
case 4:
|
257
259
|
return [3, 6];
|
258
260
|
case 5:
|
259
|
-
R = Promise.all(c.map(
|
261
|
+
R = Promise.all(c.map(qt)), s.push(R), d(), U.label = 6;
|
260
262
|
case 6:
|
261
263
|
return [
|
262
264
|
2
|
@@ -272,7 +274,7 @@ function nt(e) {
|
|
272
274
|
d();
|
273
275
|
});
|
274
276
|
}
|
275
|
-
function
|
277
|
+
function Zt(e) {
|
276
278
|
return q(this, void 0, void 0, function() {
|
277
279
|
return Z(this, function(a) {
|
278
280
|
return [2, new Promise(function(o, r) {
|
@@ -286,12 +288,9 @@ function qt(e) {
|
|
286
288
|
});
|
287
289
|
});
|
288
290
|
}
|
289
|
-
var
|
291
|
+
var Qt = function(e, a) {
|
290
292
|
if (e && a) {
|
291
|
-
var o = Array.isArray(a) ? a : a.split(",");
|
292
|
-
if (o.length === 0)
|
293
|
-
return !0;
|
294
|
-
var r = e.name || "", s = (e.type || "").toLowerCase(), d = s.replace(/\/.*$/, "");
|
293
|
+
var o = Array.isArray(a) ? a : a.split(","), r = e.name || "", s = (e.type || "").toLowerCase(), d = s.replace(/\/.*$/, "");
|
295
294
|
return o.some(function(m) {
|
296
295
|
var c = m.trim().toLowerCase();
|
297
296
|
return c.charAt(0) === "." ? r.toLowerCase().endsWith(c) : c.endsWith("/*") ? d === c.replace(/\/.*$/, "") : s === c;
|
@@ -324,18 +323,21 @@ function st(e, a, o) {
|
|
324
323
|
return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
|
325
324
|
}
|
326
325
|
function Ke(e, a) {
|
327
|
-
return
|
326
|
+
return ta(e) || ea(e, a) || Jt(e, a) || Xt();
|
328
327
|
}
|
329
|
-
function
|
328
|
+
function Xt() {
|
330
329
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
331
330
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
332
331
|
}
|
333
|
-
function
|
332
|
+
function Jt(e, a) {
|
334
333
|
if (e) {
|
335
|
-
if (typeof e == "string")
|
334
|
+
if (typeof e == "string")
|
335
|
+
return qe(e, a);
|
336
336
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
337
|
-
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set")
|
338
|
-
|
337
|
+
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set")
|
338
|
+
return Array.from(e);
|
339
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))
|
340
|
+
return qe(e, a);
|
339
341
|
}
|
340
342
|
}
|
341
343
|
function qe(e, a) {
|
@@ -344,7 +346,7 @@ function qe(e, a) {
|
|
344
346
|
r[o] = e[o];
|
345
347
|
return r;
|
346
348
|
}
|
347
|
-
function
|
349
|
+
function ea(e, a) {
|
348
350
|
var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
349
351
|
if (o != null) {
|
350
352
|
var r = [], s = !0, d = !1, m, c;
|
@@ -357,65 +359,71 @@ function Jt(e, a) {
|
|
357
359
|
try {
|
358
360
|
!s && o.return != null && o.return();
|
359
361
|
} finally {
|
360
|
-
if (d)
|
362
|
+
if (d)
|
363
|
+
throw c;
|
361
364
|
}
|
362
365
|
}
|
363
366
|
return r;
|
364
367
|
}
|
365
368
|
}
|
366
|
-
function
|
367
|
-
if (Array.isArray(e))
|
369
|
+
function ta(e) {
|
370
|
+
if (Array.isArray(e))
|
371
|
+
return e;
|
368
372
|
}
|
369
|
-
var
|
373
|
+
var aa = "file-invalid-type", oa = "file-too-large", ra = "file-too-small", na = "too-many-files", sa = function(a) {
|
370
374
|
a = Array.isArray(a) && a.length === 1 ? a[0] : a;
|
371
375
|
var o = Array.isArray(a) ? "one of ".concat(a.join(", ")) : a;
|
372
376
|
return {
|
373
|
-
code:
|
377
|
+
code: aa,
|
374
378
|
message: "File type must be ".concat(o)
|
375
379
|
};
|
376
380
|
}, Ze = function(a) {
|
377
381
|
return {
|
378
|
-
code:
|
382
|
+
code: oa,
|
379
383
|
message: "File is larger than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
|
380
384
|
};
|
381
385
|
}, Qe = function(a) {
|
382
386
|
return {
|
383
|
-
code:
|
387
|
+
code: ra,
|
384
388
|
message: "File is smaller than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
|
385
389
|
};
|
386
|
-
},
|
387
|
-
code:
|
390
|
+
}, ia = {
|
391
|
+
code: na,
|
388
392
|
message: "Too many files"
|
389
393
|
};
|
390
394
|
function it(e, a) {
|
391
|
-
var o = e.type === "application/x-moz-file" ||
|
392
|
-
return [o, o ? null :
|
395
|
+
var o = e.type === "application/x-moz-file" || Qt(e, a);
|
396
|
+
return [o, o ? null : sa(a)];
|
393
397
|
}
|
394
398
|
function lt(e, a, o) {
|
395
399
|
if (re(e.size))
|
396
400
|
if (re(a) && re(o)) {
|
397
|
-
if (e.size > o)
|
398
|
-
|
401
|
+
if (e.size > o)
|
402
|
+
return [!1, Ze(o)];
|
403
|
+
if (e.size < a)
|
404
|
+
return [!1, Qe(a)];
|
399
405
|
} else {
|
400
|
-
if (re(a) && e.size < a)
|
401
|
-
|
406
|
+
if (re(a) && e.size < a)
|
407
|
+
return [!1, Qe(a)];
|
408
|
+
if (re(o) && e.size > o)
|
409
|
+
return [!1, Ze(o)];
|
402
410
|
}
|
403
411
|
return [!0, null];
|
404
412
|
}
|
405
413
|
function re(e) {
|
406
414
|
return e != null;
|
407
415
|
}
|
408
|
-
function
|
416
|
+
function la(e) {
|
409
417
|
var a = e.files, o = e.accept, r = e.minSize, s = e.maxSize, d = e.multiple, m = e.maxFiles;
|
410
418
|
return !d && a.length > 1 || d && m >= 1 && a.length > m ? !1 : a.every(function(c) {
|
411
419
|
var v = it(c, o), x = Ke(v, 1), R = x[0], U = lt(c, r, s), N = Ke(U, 1), w = N[0];
|
412
420
|
return R && w;
|
413
421
|
});
|
414
422
|
}
|
415
|
-
function
|
423
|
+
function Ee(e) {
|
416
424
|
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
417
425
|
}
|
418
|
-
function
|
426
|
+
function xe(e) {
|
419
427
|
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(a) {
|
420
428
|
return a === "Files" || a === "application/x-moz-file";
|
421
429
|
}) : !!e.target && !!e.target.files;
|
@@ -423,15 +431,15 @@ function be(e) {
|
|
423
431
|
function Xe(e) {
|
424
432
|
e.preventDefault();
|
425
433
|
}
|
426
|
-
function
|
434
|
+
function da(e) {
|
427
435
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
428
436
|
}
|
429
|
-
function
|
437
|
+
function ca(e) {
|
430
438
|
return e.indexOf("Edge/") !== -1;
|
431
439
|
}
|
432
|
-
function
|
440
|
+
function pa() {
|
433
441
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
434
|
-
return
|
442
|
+
return da(e) || ca(e);
|
435
443
|
}
|
436
444
|
function S() {
|
437
445
|
for (var e = arguments.length, a = new Array(e), o = 0; o < e; o++)
|
@@ -440,14 +448,14 @@ function S() {
|
|
440
448
|
for (var s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), m = 1; m < s; m++)
|
441
449
|
d[m - 1] = arguments[m];
|
442
450
|
return a.some(function(c) {
|
443
|
-
return !
|
451
|
+
return !Ee(r) && c && c.apply(void 0, [r].concat(d)), Ee(r);
|
444
452
|
});
|
445
453
|
};
|
446
454
|
}
|
447
455
|
function Je() {
|
448
456
|
return "showOpenFilePicker" in window;
|
449
457
|
}
|
450
|
-
function
|
458
|
+
function ua(e) {
|
451
459
|
return e = typeof e == "string" ? e.split(",") : e, [{
|
452
460
|
description: "everything",
|
453
461
|
// TODO: Need to handle filtering more elegantly than this!
|
@@ -458,33 +466,38 @@ function pa(e) {
|
|
458
466
|
}, {}) : {}
|
459
467
|
}];
|
460
468
|
}
|
461
|
-
var
|
462
|
-
function
|
463
|
-
return
|
469
|
+
var fa = ["children"], ma = ["open"], ha = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], ga = ["refKey", "onChange", "onClick"];
|
470
|
+
function xa(e) {
|
471
|
+
return Ia(e) || ya(e) || dt(e) || ba();
|
464
472
|
}
|
465
|
-
function
|
473
|
+
function ba() {
|
466
474
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
467
475
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
468
476
|
}
|
469
|
-
function ba(e) {
|
470
|
-
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
471
|
-
}
|
472
477
|
function ya(e) {
|
473
|
-
if (
|
478
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
|
479
|
+
return Array.from(e);
|
480
|
+
}
|
481
|
+
function Ia(e) {
|
482
|
+
if (Array.isArray(e))
|
483
|
+
return Le(e);
|
474
484
|
}
|
475
485
|
function Te(e, a) {
|
476
|
-
return
|
486
|
+
return Ua(e) || va(e, a) || dt(e, a) || Ea();
|
477
487
|
}
|
478
|
-
function
|
488
|
+
function Ea() {
|
479
489
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
480
490
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
481
491
|
}
|
482
492
|
function dt(e, a) {
|
483
493
|
if (e) {
|
484
|
-
if (typeof e == "string")
|
494
|
+
if (typeof e == "string")
|
495
|
+
return Le(e, a);
|
485
496
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
486
|
-
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set")
|
487
|
-
|
497
|
+
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set")
|
498
|
+
return Array.from(e);
|
499
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))
|
500
|
+
return Le(e, a);
|
488
501
|
}
|
489
502
|
}
|
490
503
|
function Le(e, a) {
|
@@ -493,7 +506,7 @@ function Le(e, a) {
|
|
493
506
|
r[o] = e[o];
|
494
507
|
return r;
|
495
508
|
}
|
496
|
-
function
|
509
|
+
function va(e, a) {
|
497
510
|
var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
498
511
|
if (o != null) {
|
499
512
|
var r = [], s = !0, d = !1, m, c;
|
@@ -506,14 +519,16 @@ function Ea(e, a) {
|
|
506
519
|
try {
|
507
520
|
!s && o.return != null && o.return();
|
508
521
|
} finally {
|
509
|
-
if (d)
|
522
|
+
if (d)
|
523
|
+
throw c;
|
510
524
|
}
|
511
525
|
}
|
512
526
|
return r;
|
513
527
|
}
|
514
528
|
}
|
515
|
-
function
|
516
|
-
if (Array.isArray(e))
|
529
|
+
function Ua(e) {
|
530
|
+
if (Array.isArray(e))
|
531
|
+
return e;
|
517
532
|
}
|
518
533
|
function et(e, a) {
|
519
534
|
var o = Object.keys(e);
|
@@ -539,9 +554,10 @@ function b(e) {
|
|
539
554
|
function Me(e, a, o) {
|
540
555
|
return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
|
541
556
|
}
|
542
|
-
function
|
543
|
-
if (e == null)
|
544
|
-
|
557
|
+
function ve(e, a) {
|
558
|
+
if (e == null)
|
559
|
+
return {};
|
560
|
+
var o = ja(e, a), r, s;
|
545
561
|
if (Object.getOwnPropertySymbols) {
|
546
562
|
var d = Object.getOwnPropertySymbols(e);
|
547
563
|
for (s = 0; s < d.length; s++)
|
@@ -549,27 +565,28 @@ function Ue(e, a) {
|
|
549
565
|
}
|
550
566
|
return o;
|
551
567
|
}
|
552
|
-
function
|
553
|
-
if (e == null)
|
568
|
+
function ja(e, a) {
|
569
|
+
if (e == null)
|
570
|
+
return {};
|
554
571
|
var o = {}, r = Object.keys(e), s, d;
|
555
572
|
for (d = 0; d < r.length; d++)
|
556
573
|
s = r[d], !(a.indexOf(s) >= 0) && (o[s] = e[s]);
|
557
574
|
return o;
|
558
575
|
}
|
559
|
-
var
|
560
|
-
var o = e.children, r =
|
576
|
+
var Ue = /* @__PURE__ */ f.forwardRef(function(e, a) {
|
577
|
+
var o = e.children, r = ve(e, fa), s = Da(r), d = s.open, m = ve(s, ma);
|
561
578
|
return f.useImperativeHandle(a, function() {
|
562
579
|
return {
|
563
580
|
open: d
|
564
581
|
};
|
565
|
-
}, [d]), /* @__PURE__ */
|
582
|
+
}, [d]), /* @__PURE__ */ bt.createElement(f.Fragment, null, o(b(b({}, m), {}, {
|
566
583
|
open: d
|
567
584
|
})));
|
568
585
|
});
|
569
|
-
|
586
|
+
Ue.displayName = "Dropzone";
|
570
587
|
var ct = {
|
571
588
|
disabled: !1,
|
572
|
-
getFilesFromEvent:
|
589
|
+
getFilesFromEvent: Ht,
|
573
590
|
maxSize: 1 / 0,
|
574
591
|
minSize: 0,
|
575
592
|
multiple: !0,
|
@@ -582,8 +599,8 @@ var ct = {
|
|
582
599
|
validator: null,
|
583
600
|
useFsAccessApi: !1
|
584
601
|
};
|
585
|
-
|
586
|
-
|
602
|
+
Ue.defaultProps = ct;
|
603
|
+
Ue.propTypes = {
|
587
604
|
/**
|
588
605
|
* Render function that exposes the dropzone state and prop getter fns
|
589
606
|
*
|
@@ -743,6 +760,7 @@ se.propTypes = {
|
|
743
760
|
*/
|
744
761
|
validator: g.func
|
745
762
|
};
|
763
|
+
const pt = Ue;
|
746
764
|
var ke = {
|
747
765
|
isFocused: !1,
|
748
766
|
isFileDialogActive: !1,
|
@@ -753,12 +771,12 @@ var ke = {
|
|
753
771
|
acceptedFiles: [],
|
754
772
|
fileRejections: []
|
755
773
|
};
|
756
|
-
function
|
774
|
+
function Da() {
|
757
775
|
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() {
|
758
776
|
return typeof z == "function" ? z : tt;
|
759
777
|
}, [z]), H = f.useMemo(function() {
|
760
778
|
return typeof B == "function" ? B : tt;
|
761
|
-
}, [B]), j = f.useRef(null), D = f.useRef(null), Be = f.useReducer(
|
779
|
+
}, [B]), j = f.useRef(null), D = f.useRef(null), Be = f.useReducer(_a, ke), se = Te(Be, 2), W = se[0], _ = se[1], ie = W.isFocused, ee = W.isFileDialogActive, le = W.draggedFiles, de = function() {
|
762
780
|
ee && setTimeout(function() {
|
763
781
|
if (D.current) {
|
764
782
|
var p = D.current.files;
|
@@ -770,29 +788,29 @@ function ja() {
|
|
770
788
|
};
|
771
789
|
f.useEffect(function() {
|
772
790
|
return V && Je() ? function() {
|
773
|
-
} : (window.addEventListener("focus",
|
774
|
-
window.removeEventListener("focus",
|
791
|
+
} : (window.addEventListener("focus", de, !1), function() {
|
792
|
+
window.removeEventListener("focus", de, !1);
|
775
793
|
});
|
776
794
|
}, [D, ee, H, V]);
|
777
|
-
var T = f.useRef([]),
|
795
|
+
var T = f.useRef([]), ce = function(p) {
|
778
796
|
j.current && j.current.contains(p.target) || (p.preventDefault(), T.current = []);
|
779
797
|
};
|
780
798
|
f.useEffect(function() {
|
781
|
-
return X && (document.addEventListener("dragover", Xe, !1), document.addEventListener("drop",
|
782
|
-
X && (document.removeEventListener("dragover", Xe), document.removeEventListener("drop",
|
799
|
+
return X && (document.addEventListener("dragover", Xe, !1), document.addEventListener("drop", ce, !1)), function() {
|
800
|
+
X && (document.removeEventListener("dragover", Xe), document.removeEventListener("drop", ce));
|
783
801
|
};
|
784
802
|
}, [j, X]);
|
785
|
-
var
|
786
|
-
l.preventDefault(), l.persist(),
|
787
|
-
|
803
|
+
var pe = f.useCallback(function(l) {
|
804
|
+
l.preventDefault(), l.persist(), me(l), T.current = [].concat(xa(T.current), [l.target]), xe(l) && Promise.resolve(s(l)).then(function(p) {
|
805
|
+
Ee(l) && !P || (_({
|
788
806
|
draggedFiles: p,
|
789
807
|
isDragActive: !0,
|
790
808
|
type: "setDraggedFiles"
|
791
809
|
}), x && x(l));
|
792
810
|
});
|
793
|
-
}, [s, x, P]),
|
794
|
-
l.preventDefault(), l.persist(),
|
795
|
-
var p =
|
811
|
+
}, [s, x, P]), ue = f.useCallback(function(l) {
|
812
|
+
l.preventDefault(), l.persist(), me(l);
|
813
|
+
var p = xe(l);
|
796
814
|
if (p && l.dataTransfer)
|
797
815
|
try {
|
798
816
|
l.dataTransfer.dropEffect = "copy";
|
@@ -800,7 +818,7 @@ function ja() {
|
|
800
818
|
}
|
801
819
|
return p && U && U(l), !1;
|
802
820
|
}, [U, P]), G = f.useCallback(function(l) {
|
803
|
-
l.preventDefault(), l.persist(),
|
821
|
+
l.preventDefault(), l.persist(), me(l);
|
804
822
|
var p = T.current.filter(function(A) {
|
805
823
|
return j.current && j.current.contains(A);
|
806
824
|
}), E = p.indexOf(l.target);
|
@@ -808,26 +826,26 @@ function ja() {
|
|
808
826
|
isDragActive: !1,
|
809
827
|
type: "setDraggedFiles",
|
810
828
|
draggedFiles: []
|
811
|
-
}),
|
829
|
+
}), xe(l) && R && R(l));
|
812
830
|
}, [j, R, P]), i = f.useCallback(function(l, p) {
|
813
831
|
var E = [], A = [];
|
814
832
|
l.forEach(function(F) {
|
815
|
-
var oe = it(F, o), K = Te(oe, 2), De = K[0], _e = K[1], Ae = lt(F, m, d),
|
833
|
+
var oe = it(F, o), K = Te(oe, 2), De = K[0], _e = K[1], Ae = lt(F, m, d), he = Te(Ae, 2), Re = he[0], we = he[1], Fe = O ? O(F) : null;
|
816
834
|
if (De && Re && !Fe)
|
817
835
|
E.push(F);
|
818
836
|
else {
|
819
837
|
var Ne = [_e, we];
|
820
838
|
Fe && (Ne = Ne.concat(Fe)), A.push({
|
821
839
|
file: F,
|
822
|
-
errors: Ne.filter(function(
|
823
|
-
return
|
840
|
+
errors: Ne.filter(function(gt) {
|
841
|
+
return gt;
|
824
842
|
})
|
825
843
|
});
|
826
844
|
}
|
827
845
|
}), (!c && E.length > 1 || c && v >= 1 && E.length > v) && (E.forEach(function(F) {
|
828
846
|
A.push({
|
829
847
|
file: F,
|
830
|
-
errors: [
|
848
|
+
errors: [ia]
|
831
849
|
});
|
832
850
|
}), E.splice(0)), _({
|
833
851
|
acceptedFiles: E,
|
@@ -835,8 +853,8 @@ function ja() {
|
|
835
853
|
type: "setFiles"
|
836
854
|
}), N && N(E, A, p), A.length > 0 && Q && Q(A, p), E.length > 0 && w && w(E, p);
|
837
855
|
}, [_, c, o, m, d, v, N, w, Q, O]), I = f.useCallback(function(l) {
|
838
|
-
l.preventDefault(), l.persist(),
|
839
|
-
|
856
|
+
l.preventDefault(), l.persist(), me(l), T.current = [], xe(l) && Promise.resolve(s(l)).then(function(p) {
|
857
|
+
Ee(l) && !P || i(p, l);
|
840
858
|
}), _({
|
841
859
|
type: "reset"
|
842
860
|
});
|
@@ -847,7 +865,7 @@ function ja() {
|
|
847
865
|
}), Y();
|
848
866
|
var l = {
|
849
867
|
multiple: c,
|
850
|
-
types:
|
868
|
+
types: ua(o)
|
851
869
|
};
|
852
870
|
window.showOpenFilePicker(l).then(function(p) {
|
853
871
|
return s(p);
|
@@ -876,37 +894,37 @@ function ja() {
|
|
876
894
|
type: "blur"
|
877
895
|
});
|
878
896
|
}, []), M = f.useCallback(function() {
|
879
|
-
y || (
|
897
|
+
y || (pa() ? setTimeout(L, 0) : L());
|
880
898
|
}, [D, y, L]), k = function(p) {
|
881
899
|
return r ? null : p;
|
882
900
|
}, je = function(p) {
|
883
901
|
return J ? null : k(p);
|
884
|
-
},
|
902
|
+
}, fe = function(p) {
|
885
903
|
return C ? null : k(p);
|
886
|
-
},
|
904
|
+
}, me = function(p) {
|
887
905
|
P && p.stopPropagation();
|
888
|
-
},
|
906
|
+
}, ut = f.useMemo(function() {
|
889
907
|
return function() {
|
890
|
-
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,
|
908
|
+
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, he = l.onDragLeave, Re = l.onDrop, we = ve(l, ha);
|
891
909
|
return b(b(Me({
|
892
910
|
onKeyDown: je(S(F, $)),
|
893
911
|
onFocus: je(S(oe, te)),
|
894
912
|
onBlur: je(S(K, ae)),
|
895
913
|
onClick: k(S(De, M)),
|
896
|
-
onDragEnter:
|
897
|
-
onDragOver:
|
898
|
-
onDragLeave:
|
899
|
-
onDrop:
|
914
|
+
onDragEnter: fe(S(_e, pe)),
|
915
|
+
onDragOver: fe(S(Ae, ue)),
|
916
|
+
onDragLeave: fe(S(he, G)),
|
917
|
+
onDrop: fe(S(Re, I)),
|
900
918
|
role: typeof A == "string" && A !== "" ? A : "button"
|
901
919
|
}, E, j), !r && !J ? {
|
902
920
|
tabIndex: 0
|
903
921
|
} : {}), we);
|
904
922
|
};
|
905
|
-
}, [j, $, te, ae, M,
|
923
|
+
}, [j, $, te, ae, M, pe, ue, G, I, J, C, r]), ft = f.useCallback(function(l) {
|
906
924
|
l.stopPropagation();
|
907
|
-
}, []),
|
925
|
+
}, []), mt = f.useMemo(function() {
|
908
926
|
return function() {
|
909
|
-
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 =
|
927
|
+
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 = ve(l, ga), K = Me({
|
910
928
|
accept: o,
|
911
929
|
multiple: c,
|
912
930
|
type: "file",
|
@@ -914,32 +932,32 @@ function ja() {
|
|
914
932
|
display: "none"
|
915
933
|
},
|
916
934
|
onChange: k(S(A, I)),
|
917
|
-
onClick: k(S(F,
|
935
|
+
onClick: k(S(F, ft)),
|
918
936
|
autoComplete: "off",
|
919
937
|
tabIndex: -1
|
920
938
|
}, E, D);
|
921
939
|
return b(b({}, K), oe);
|
922
940
|
};
|
923
|
-
}, [D, o, c, I, r]), Ye =
|
924
|
-
files:
|
941
|
+
}, [D, o, c, I, r]), Ye = le.length, He = Ye > 0 && la({
|
942
|
+
files: le,
|
925
943
|
accept: o,
|
926
944
|
minSize: m,
|
927
945
|
maxSize: d,
|
928
946
|
multiple: c,
|
929
947
|
maxFiles: v
|
930
|
-
}),
|
948
|
+
}), ht = Ye > 0 && !He;
|
931
949
|
return b(b({}, W), {}, {
|
932
950
|
isDragAccept: He,
|
933
|
-
isDragReject:
|
934
|
-
isFocused:
|
935
|
-
getRootProps:
|
936
|
-
getInputProps:
|
951
|
+
isDragReject: ht,
|
952
|
+
isFocused: ie && !r,
|
953
|
+
getRootProps: ut,
|
954
|
+
getInputProps: mt,
|
937
955
|
rootRef: j,
|
938
956
|
inputRef: D,
|
939
957
|
open: k(L)
|
940
958
|
});
|
941
959
|
}
|
942
|
-
function
|
960
|
+
function _a(e, a) {
|
943
961
|
switch (a.type) {
|
944
962
|
case "focus":
|
945
963
|
return b(b({}, e), {}, {
|
@@ -976,7 +994,7 @@ function Da(e, a) {
|
|
976
994
|
}
|
977
995
|
function tt() {
|
978
996
|
}
|
979
|
-
function
|
997
|
+
function be({
|
980
998
|
title: e,
|
981
999
|
children: a,
|
982
1000
|
id: o,
|
@@ -1013,7 +1031,7 @@ function ye({
|
|
1013
1031
|
}
|
1014
1032
|
);
|
1015
1033
|
}
|
1016
|
-
const
|
1034
|
+
const Aa = {
|
1017
1035
|
[u.STUDENT]: [
|
1018
1036
|
"step.docUpload.acceptableUploads.student.idCard",
|
1019
1037
|
"step.docUpload.acceptableUploads.student.classSchedule",
|
@@ -1069,7 +1087,7 @@ const _a = {
|
|
1069
1087
|
"step.docUpload.acceptableUploads.lowIncome.programApprovalScreenshot",
|
1070
1088
|
"step.docUpload.acceptableUploads.lowIncome.programBankStatement"
|
1071
1089
|
]
|
1072
|
-
},
|
1090
|
+
}, Ra = {
|
1073
1091
|
[n.ACTIVE_DUTY]: [
|
1074
1092
|
"step.docUpload.acceptableUploads.military.active.leaveEarningStatement",
|
1075
1093
|
"step.docUpload.acceptableUploads.military.active.uniformedServicesId"
|
@@ -1136,7 +1154,7 @@ const _a = {
|
|
1136
1154
|
[n.NUTRITION_PROFESSIONAL]: [
|
1137
1155
|
"step.docUpload.acceptableUploads.licensedProfessional.license"
|
1138
1156
|
]
|
1139
|
-
},
|
1157
|
+
}, wa = {
|
1140
1158
|
[u.STUDENT]: [
|
1141
1159
|
"step.docUpload.uploadInfo.fullName",
|
1142
1160
|
"step.docUpload.uploadInfo.institutionName",
|
@@ -1194,7 +1212,7 @@ const _a = {
|
|
1194
1212
|
"step.docUpload.uploadInfo.fullName",
|
1195
1213
|
"step.docUpload.uploadInfo.lowIncome.validDate"
|
1196
1214
|
]
|
1197
|
-
},
|
1215
|
+
}, Fa = {
|
1198
1216
|
[n.ACTIVE_DUTY]: ["step.docUpload.uploadInfo.military.activeDuty.status"],
|
1199
1217
|
[n.VETERAN]: ["step.docUpload.uploadInfo.military.veteran.status"],
|
1200
1218
|
[n.RESERVIST]: ["step.docUpload.uploadInfo.military.reservist.status"],
|
@@ -1223,30 +1241,30 @@ const _a = {
|
|
1223
1241
|
[n.ARCHITECT]: [],
|
1224
1242
|
[n.GENERAL_CONTRACTOR]: [],
|
1225
1243
|
[n.NUTRITION_PROFESSIONAL]: []
|
1226
|
-
},
|
1244
|
+
}, Na = {
|
1227
1245
|
// MILITARY_FAMILY is overridden to not show branch of service.
|
1228
1246
|
[n.MILITARY_FAMILY]: [
|
1229
1247
|
"step.docUpload.uploadInfo.fullName",
|
1230
1248
|
"step.docUpload.uploadInfo.military.militaryFamily.status"
|
1231
1249
|
]
|
1232
1250
|
};
|
1233
|
-
function
|
1251
|
+
function Ca(e, a) {
|
1234
1252
|
return [
|
1235
1253
|
.../* @__PURE__ */ new Set([
|
1236
|
-
...
|
1237
|
-
...
|
1254
|
+
...Ra[a] || [],
|
1255
|
+
...Aa[e] || []
|
1238
1256
|
])
|
1239
1257
|
];
|
1240
1258
|
}
|
1241
|
-
function
|
1242
|
-
return
|
1259
|
+
function Oa(e, a) {
|
1260
|
+
return Na[a] || [
|
1243
1261
|
.../* @__PURE__ */ new Set([
|
1244
|
-
...
|
1245
|
-
...
|
1262
|
+
...Fa[a] || [],
|
1263
|
+
...wa[e] || []
|
1246
1264
|
])
|
1247
1265
|
];
|
1248
1266
|
}
|
1249
|
-
const
|
1267
|
+
const Ta = ({
|
1250
1268
|
options: e,
|
1251
1269
|
selected: a,
|
1252
1270
|
onChange: o,
|
@@ -1291,11 +1309,11 @@ const Oa = ({
|
|
1291
1309
|
] })
|
1292
1310
|
)) })
|
1293
1311
|
] });
|
1294
|
-
},
|
1312
|
+
}, Sa = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "sid-named-divider", children: [
|
1295
1313
|
/* @__PURE__ */ t.jsx("hr", { className: "sid-named-divider__rule" }),
|
1296
1314
|
/* @__PURE__ */ t.jsx("p", { className: "sid-named-divider__text", children: e })
|
1297
1315
|
] });
|
1298
|
-
function
|
1316
|
+
function La({
|
1299
1317
|
title: e,
|
1300
1318
|
titleId: a,
|
1301
1319
|
...o
|
@@ -1318,7 +1336,7 @@ function Sa({
|
|
1318
1336
|
d: "M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
|
1319
1337
|
}));
|
1320
1338
|
}
|
1321
|
-
const
|
1339
|
+
const Ma = f.forwardRef(La), ka = Ma, Pa = (e) => /* @__PURE__ */ t.jsxs(
|
1322
1340
|
"svg",
|
1323
1341
|
{
|
1324
1342
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1486,7 +1504,7 @@ const La = /* @__PURE__ */ f.forwardRef(Sa), Ma = (e) => /* @__PURE__ */ t.jsxs(
|
|
1486
1504
|
)
|
1487
1505
|
]
|
1488
1506
|
}
|
1489
|
-
),
|
1507
|
+
), Ba = (e) => /* @__PURE__ */ t.jsxs(
|
1490
1508
|
"svg",
|
1491
1509
|
{
|
1492
1510
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1551,7 +1569,7 @@ const La = /* @__PURE__ */ f.forwardRef(Sa), Ma = (e) => /* @__PURE__ */ t.jsxs(
|
|
1551
1569
|
)
|
1552
1570
|
]
|
1553
1571
|
}
|
1554
|
-
),
|
1572
|
+
), Ya = (e) => /* @__PURE__ */ t.jsxs(
|
1555
1573
|
"svg",
|
1556
1574
|
{
|
1557
1575
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1615,13 +1633,13 @@ const La = /* @__PURE__ */ f.forwardRef(Sa), Ma = (e) => /* @__PURE__ */ t.jsxs(
|
|
1615
1633
|
)
|
1616
1634
|
]
|
1617
1635
|
}
|
1618
|
-
),
|
1619
|
-
function
|
1620
|
-
return e === "ID_CARD" && a === "large" ?
|
1636
|
+
), Ha = ["ID_CARD", "SCHEDULE"];
|
1637
|
+
function za(e, a) {
|
1638
|
+
return e === "ID_CARD" && a === "large" ? Pa : e === "ID_CARD" && a === "small" ? at : e === "SCHEDULE" && a === "large" ? Ba : e === "SCHEDULE" && a === "small" ? Ya : at;
|
1621
1639
|
}
|
1622
|
-
const
|
1623
|
-
const r =
|
1624
|
-
return /* @__PURE__ */ t.jsx(
|
1640
|
+
const Va = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
1641
|
+
const r = za(a, o);
|
1642
|
+
return /* @__PURE__ */ t.jsx(pt, { onDrop: (s) => e(s, a), children: ({ getRootProps: s, getInputProps: d }) => /* @__PURE__ */ t.jsxs("section", { ...s(), className: "sid-document-type-attachment-wrap", children: [
|
1625
1643
|
/* @__PURE__ */ t.jsx("input", { ...d() }),
|
1626
1644
|
o === "small" ? /* @__PURE__ */ t.jsxs("button", { className: "sid-document-type-attachment", type: "button", children: [
|
1627
1645
|
/* @__PURE__ */ t.jsx(r, { className: "sid-document-type-attachment__icon-small" }),
|
@@ -1629,7 +1647,7 @@ const Ha = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1629
1647
|
a === "ID_CARD" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Dated School ID card" }),
|
1630
1648
|
a === "SCHEDULE" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Class Schedule" })
|
1631
1649
|
] }),
|
1632
|
-
/* @__PURE__ */ t.jsx(
|
1650
|
+
/* @__PURE__ */ t.jsx(ka, { className: "sid-document-type-attachment__plus" })
|
1633
1651
|
] }) : /* @__PURE__ */ t.jsxs(
|
1634
1652
|
"button",
|
1635
1653
|
{
|
@@ -1645,7 +1663,7 @@ const Ha = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1645
1663
|
}
|
1646
1664
|
)
|
1647
1665
|
] }) });
|
1648
|
-
},
|
1666
|
+
}, Wa = {
|
1649
1667
|
[u.STUDENT]: [
|
1650
1668
|
"step.docUpload.uploadInfo.fullName",
|
1651
1669
|
"step.docUpload.uploadInfo.student.school",
|
@@ -1708,7 +1726,7 @@ const Ha = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1708
1726
|
"step.docUpload.uploadInfo.recentMover.address",
|
1709
1727
|
"step.docUpload.uploadInfo.recentMover.validDate"
|
1710
1728
|
]
|
1711
|
-
},
|
1729
|
+
}, Ga = {
|
1712
1730
|
[n.ACTIVE_DUTY]: [],
|
1713
1731
|
[n.VETERAN]: [],
|
1714
1732
|
[n.RESERVIST]: [],
|
@@ -1737,16 +1755,16 @@ const Ha = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1737
1755
|
[n.ARCHITECT]: [],
|
1738
1756
|
[n.GENERAL_CONTRACTOR]: [],
|
1739
1757
|
[n.NUTRITION_PROFESSIONAL]: []
|
1740
|
-
},
|
1758
|
+
}, $a = {
|
1741
1759
|
// MILITARY_FAMILY is overridden to not show branch of service.
|
1742
1760
|
[n.MILITARY_FAMILY]: [
|
1743
1761
|
"step.docUpload.uploadInfo.military.uploadInstructionsDependent"
|
1744
1762
|
]
|
1745
1763
|
};
|
1746
|
-
function
|
1747
|
-
return
|
1748
|
-
...
|
1749
|
-
...
|
1764
|
+
function Ka(e, a) {
|
1765
|
+
return $a[a] || [
|
1766
|
+
...Ga[a] || [],
|
1767
|
+
...Wa[e] || []
|
1750
1768
|
];
|
1751
1769
|
}
|
1752
1770
|
const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e ? /* @__PURE__ */ t.jsxs("div", { className: "sid-field-error sid-field-error-redesign__doc-upload", children: [
|
@@ -1758,70 +1776,70 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1758
1776
|
}
|
1759
1777
|
),
|
1760
1778
|
a ? a.map((r) => /* @__PURE__ */ t.jsx("div", { className: "sid-field-error-redesign__doc-upload__span", children: r }, `error-${r}`)) : null
|
1761
|
-
] }) : null,
|
1762
|
-
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 ?
|
1779
|
+
] }) : null, qa = ({ verificationService: e, intl: a }) => {
|
1780
|
+
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 ? Ka : Oa)(
|
1763
1781
|
m,
|
1764
1782
|
c
|
1765
1783
|
), Q = e.verificationResponse.country === "US", B = (i) => ({
|
1766
1784
|
name: i.name,
|
1767
1785
|
url: i.type.includes("image") ? URL.createObjectURL(i) : ""
|
1768
|
-
}), [z, V] = f.useState({}), { userDidConvert: X } =
|
1769
|
-
|
1786
|
+
}), [z, V] = f.useState({}), { userDidConvert: X } = It(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);
|
1787
|
+
Et(vt) && y.push({
|
1770
1788
|
name: "myFile.png",
|
1771
1789
|
url: ""
|
1772
1790
|
});
|
1773
|
-
const
|
1791
|
+
const se = a.formatMessage({
|
1774
1792
|
id: "step.docUpload.addFile",
|
1775
1793
|
defaultMessage: "Add documents"
|
1776
1794
|
});
|
1777
1795
|
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));
|
1778
1796
|
const W = y.map((i) => z[i.name]), _ = (i, I) => {
|
1779
|
-
r(!1), e.updateViewModel(
|
1780
|
-
},
|
1797
|
+
r(!1), e.updateViewModel(Mt(x, i, I));
|
1798
|
+
}, ie = (i) => {
|
1781
1799
|
const I = i + 1;
|
1782
|
-
r(!1), H([]), D(!1), e.updateViewModel(
|
1783
|
-
}, ee = R.docUpload ||
|
1800
|
+
r(!1), H([]), D(!1), e.updateViewModel(kt(x, I));
|
1801
|
+
}, ee = R.docUpload || Ut(() => e.verificationResponse.errorIds[0], void 0), le = (i, I) => {
|
1784
1802
|
const L = [], $ = [], te = [];
|
1785
1803
|
for (const M of i) {
|
1786
1804
|
const k = St(
|
1787
|
-
|
1805
|
+
ge.docUpload,
|
1788
1806
|
M,
|
1789
1807
|
e.formValidationOptions
|
1790
1808
|
);
|
1791
1809
|
k === void 0 ? (I && V({ ...z, [M.name]: I }), L.push(M)) : (te.push(M.name), $.push(k));
|
1792
1810
|
}
|
1793
1811
|
let ae;
|
1794
|
-
$ && (ae =
|
1812
|
+
$ && (ae = ye(R, (M) => {
|
1795
1813
|
M.docUpload = $[0];
|
1796
1814
|
})), e.updateFieldValidationErrors(ae), _(L, te);
|
1797
|
-
},
|
1815
|
+
}, de = () => {
|
1798
1816
|
Oe.info("StepDocUploadComponent submitting form"), D(!0), (O && w.every((i) => Y.includes(i)) || !O) && (e.submitStep(
|
1799
|
-
|
1817
|
+
ge.docUpload,
|
1800
1818
|
x,
|
1801
1819
|
e.verificationResponse
|
1802
|
-
), X(
|
1820
|
+
), X(Ct, Ot));
|
1803
1821
|
}, T = (i, I) => {
|
1804
|
-
i.length > 0 ?
|
1822
|
+
i.length > 0 ? le(i, I) : i.length <= 0 && Oe.error(
|
1805
1823
|
"No files were accepted or rejected. Unknown error.",
|
1806
|
-
|
1824
|
+
ge.docUpload
|
1807
1825
|
);
|
1808
|
-
},
|
1826
|
+
}, ce = (i) => {
|
1809
1827
|
T(Array.from(i.target.files));
|
1810
|
-
},
|
1811
|
-
const I =
|
1828
|
+
}, pe = (i) => {
|
1829
|
+
const I = Tt("addFile");
|
1812
1830
|
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), I.click());
|
1813
|
-
},
|
1831
|
+
}, ue = async () => {
|
1814
1832
|
Oe.info("StepDocUploadComponent submitting form after skipping document upload");
|
1815
|
-
const i =
|
1833
|
+
const i = ye(x, () => {
|
1816
1834
|
});
|
1817
1835
|
e.submitStep(
|
1818
|
-
|
1836
|
+
ge.cancelDocUpload,
|
1819
1837
|
i,
|
1820
1838
|
e.verificationResponse
|
1821
1839
|
);
|
1822
|
-
}, 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:
|
1840
|
+
}, 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: Ha.map(
|
1823
1841
|
(i) => !W.includes(i) && /* @__PURE__ */ t.jsx(
|
1824
|
-
|
1842
|
+
Va,
|
1825
1843
|
{
|
1826
1844
|
onFileDrop: T,
|
1827
1845
|
type: i,
|
@@ -1837,7 +1855,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1837
1855
|
erroredFileNames: x.erroredFileNames
|
1838
1856
|
}
|
1839
1857
|
),
|
1840
|
-
/* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(
|
1858
|
+
/* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(pt, { onDrop: (i) => T(i), accept: ze.join(","), children: ({ getRootProps: i, getInputProps: I }) => /* @__PURE__ */ t.jsxs(
|
1841
1859
|
"div",
|
1842
1860
|
{
|
1843
1861
|
...i(),
|
@@ -1850,7 +1868,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1850
1868
|
tabIndex: -1,
|
1851
1869
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
1852
1870
|
type: "button",
|
1853
|
-
"aria-label":
|
1871
|
+
"aria-label": se,
|
1854
1872
|
children: /* @__PURE__ */ t.jsx(
|
1855
1873
|
h,
|
1856
1874
|
{
|
@@ -1872,9 +1890,9 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1872
1890
|
children: [
|
1873
1891
|
/* @__PURE__ */ t.jsxs("div", { role: "main", children: [
|
1874
1892
|
/* @__PURE__ */ t.jsxs("div", { className: "sid-header sid-l-space-top-md", children: [
|
1875
|
-
/* @__PURE__ */ t.jsx("div", { className: "sid-doc-upload-logo-container sid-l-horz-center", children: /* @__PURE__ */ t.jsx(
|
1876
|
-
/* @__PURE__ */ t.jsx(
|
1877
|
-
/* @__PURE__ */ t.jsx(
|
1893
|
+
/* @__PURE__ */ t.jsx("div", { className: "sid-doc-upload-logo-container sid-l-horz-center", children: /* @__PURE__ */ t.jsx(jt, { verificationService: e }) }),
|
1894
|
+
/* @__PURE__ */ t.jsx(Dt, { align: "start", children: /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.title", tagName: "h1" }) }),
|
1895
|
+
/* @__PURE__ */ t.jsx(_t, { verificationService: e }),
|
1878
1896
|
d && d.length > 0 && /* @__PURE__ */ t.jsxs("div", { className: "sid-upload-rejection__wrapper", children: [
|
1879
1897
|
/* @__PURE__ */ t.jsx("div", { className: "sid-header__subtitle-doc-upload-rejected", children: /* @__PURE__ */ t.jsx(
|
1880
1898
|
h,
|
@@ -1937,8 +1955,8 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1937
1955
|
tabIndex: 0,
|
1938
1956
|
"aria-label": `Remove file ${i.name}`,
|
1939
1957
|
className: "sid-file-list__remove-btn",
|
1940
|
-
onClick: () =>
|
1941
|
-
onKeyPress: () =>
|
1958
|
+
onClick: () => ie(I),
|
1959
|
+
onKeyPress: () => ie(I)
|
1942
1960
|
}
|
1943
1961
|
)
|
1944
1962
|
] })
|
@@ -1949,10 +1967,10 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1949
1967
|
className: "sid-docdrop-wrap__dropzone thumbnail_wrapper",
|
1950
1968
|
htmlFor: "sid-take-photo-input",
|
1951
1969
|
role: "button",
|
1952
|
-
onKeyUp: (i) =>
|
1970
|
+
onKeyUp: (i) => pe(i),
|
1953
1971
|
tabIndex: 0,
|
1954
1972
|
children: [
|
1955
|
-
/* @__PURE__ */ t.jsx(
|
1973
|
+
/* @__PURE__ */ t.jsx(Lt, { className: "sid-uploadzone__icon", width: "16px" }),
|
1956
1974
|
/* @__PURE__ */ t.jsx("p", { className: "sid-docdrop-wrap__instructions thumbnail_wrapper-text", children: /* @__PURE__ */ t.jsx(
|
1957
1975
|
h,
|
1958
1976
|
{
|
@@ -1963,7 +1981,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1963
1981
|
/* @__PURE__ */ t.jsx(
|
1964
1982
|
"input",
|
1965
1983
|
{
|
1966
|
-
onChange:
|
1984
|
+
onChange: ce,
|
1967
1985
|
type: "file",
|
1968
1986
|
id: "sid-take-photo-input",
|
1969
1987
|
hidden: !0,
|
@@ -1985,7 +2003,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1985
2003
|
}
|
1986
2004
|
),
|
1987
2005
|
O && y.length >= 1 && /* @__PURE__ */ t.jsx(
|
1988
|
-
|
2006
|
+
Ta,
|
1989
2007
|
{
|
1990
2008
|
options: w,
|
1991
2009
|
selected: Y,
|
@@ -1997,7 +2015,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1997
2015
|
"button",
|
1998
2016
|
{
|
1999
2017
|
id: "sid-submit-doc-upload",
|
2000
|
-
onClick:
|
2018
|
+
onClick: de,
|
2001
2019
|
type: "submit",
|
2002
2020
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
2003
2021
|
"aria-disabled": y.length <= 0 || O && !w.every((i) => Y.includes(i)),
|
@@ -2025,13 +2043,13 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2025
2043
|
] }) : null,
|
2026
2044
|
C === "doc-type-icons" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2027
2045
|
y.length > 0 && y.length < 2 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2028
|
-
/* @__PURE__ */ t.jsx(
|
2046
|
+
/* @__PURE__ */ t.jsx(Sa, { children: "Add another document" }),
|
2029
2047
|
G
|
2030
2048
|
] }),
|
2031
2049
|
/* @__PURE__ */ t.jsx("h3", { children: "FAQ" }),
|
2032
|
-
/* @__PURE__ */ t.jsx(
|
2050
|
+
/* @__PURE__ */ t.jsx(be, { 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)) }) })
|
2033
2051
|
] }) : /* @__PURE__ */ t.jsxs(
|
2034
|
-
|
2052
|
+
be,
|
2035
2053
|
{
|
2036
2054
|
id: "suggestedDocs",
|
2037
2055
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2045,7 +2063,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2045
2063
|
children: [
|
2046
2064
|
N && /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptableUploadExamples" }),
|
2047
2065
|
/* @__PURE__ */ t.jsxs("ul", { className: "sid-acceptable-document-types", children: [
|
2048
|
-
(N ? Rt :
|
2066
|
+
(N ? Rt : Ca)(
|
2049
2067
|
m,
|
2050
2068
|
c
|
2051
2069
|
).map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)),
|
@@ -2071,7 +2089,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2071
2089
|
}
|
2072
2090
|
),
|
2073
2091
|
/* @__PURE__ */ t.jsxs(
|
2074
|
-
|
2092
|
+
be,
|
2075
2093
|
{
|
2076
2094
|
id: "whatHappensNext",
|
2077
2095
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2112,7 +2130,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2112
2130
|
}
|
2113
2131
|
),
|
2114
2132
|
/* @__PURE__ */ t.jsx(
|
2115
|
-
|
2133
|
+
be,
|
2116
2134
|
{
|
2117
2135
|
id: "canIFinishLater",
|
2118
2136
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2136,7 +2154,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2136
2154
|
{
|
2137
2155
|
href: "#",
|
2138
2156
|
className: "sid-link sid-override-link",
|
2139
|
-
onClick: () =>
|
2157
|
+
onClick: () => ue(),
|
2140
2158
|
role: "button",
|
2141
2159
|
children: /* @__PURE__ */ t.jsx(
|
2142
2160
|
h,
|
@@ -2152,7 +2170,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2152
2170
|
]
|
2153
2171
|
}
|
2154
2172
|
);
|
2155
|
-
},
|
2173
|
+
}, Xa = yt(qa);
|
2156
2174
|
export {
|
2157
|
-
|
2175
|
+
Xa as default
|
2158
2176
|
};
|