@sheerid/jslib-nightly 2.104.0-alpha.1 → 2.105.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/__tests__/e2e/collectInfo/collectInfo.spec.d.ts +1 -0
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +16311 -17900
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{EmailLoopPending-Cp3dQjbH.js → EmailLoopPending-CKTAwQQA.js} +17 -17
- package/chunk/{EmailLoopPending-Cp3dQjbH.js.map → EmailLoopPending-CKTAwQQA.js.map} +1 -1
- package/chunk/{EmailLoopPending-WTPkkJsm.js → EmailLoopPending-Dzs07hxx.js} +17 -17
- package/chunk/{EmailLoopPending-WTPkkJsm.js.map → EmailLoopPending-Dzs07hxx.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-D7gWh3Qx.js → LicensedProfessionalOrganizationComponent-BNNNPaDn.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-D7gWh3Qx.js.map → LicensedProfessionalOrganizationComponent-BNNNPaDn.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-LYrmpWss.js → LicensedProfessionalOrganizationComponent-trZr_eIW.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-LYrmpWss.js.map → LicensedProfessionalOrganizationComponent-trZr_eIW.js.map} +1 -1
- 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-CQTiZz60.js → StepIDCheckLoopOnfido-C9iUX8TC.js} +11 -12
- package/chunk/{StepIDCheckLoopOnfido-CQTiZz60.js.map → StepIDCheckLoopOnfido-C9iUX8TC.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CsO8JOUT.js → StepIDCheckLoopOnfido-lChJAp_W.js} +11 -12
- package/chunk/{StepIDCheckLoopOnfido-CsO8JOUT.js.map → StepIDCheckLoopOnfido-lChJAp_W.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-VCHUckkA.js → StepIDCheckLoopRegula-BB8xA4nn.js} +85 -59
- package/chunk/StepIDCheckLoopRegula-BB8xA4nn.js.map +1 -0
- package/chunk/{StepIDCheckLoopRegula-B2frgNDw.js → StepIDCheckLoopRegula-D8XhToQz.js} +85 -59
- package/chunk/StepIDCheckLoopRegula-D8XhToQz.js.map +1 -0
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.js → StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js} +48 -48
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js.map → StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js → StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.js} +48 -48
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.js.map → StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.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-CgBENXRP.js → index-B1579hxf.js} +28 -28
- package/chunk/{index-tFgJS6bB.js.map → index-B1579hxf.js.map} +1 -1
- package/chunk/{index-DB9SisGK.js → index-B4B6qxaM.js} +15 -15
- package/chunk/{index-DB9SisGK.js.map → index-B4B6qxaM.js.map} +1 -1
- package/chunk/{index-BGCnajPS.js → index-B5okgMmp.js} +30 -30
- package/chunk/{index-BFMTiaJv.js.map → index-B5okgMmp.js.map} +1 -1
- package/chunk/{index-DPEoeYI6.js → index-B8tKf2Rd.js} +38 -38
- package/chunk/{index-CgSW4Vzh.js.map → index-B8tKf2Rd.js.map} +1 -1
- package/chunk/{index-XXxK9rgV.js → index-B92Kfyw6.js} +46 -46
- package/chunk/{index-XXxK9rgV.js.map → index-B92Kfyw6.js.map} +1 -1
- package/chunk/{index-CtqWr1aK.js → index-BDsZCFuU.js} +58 -58
- package/chunk/{index-CtqWr1aK.js.map → index-BDsZCFuU.js.map} +1 -1
- package/chunk/{index-aKTpkBwz.js → index-BGGHZBWq.js} +56 -48
- package/chunk/{index-aKTpkBwz.js.map → index-BGGHZBWq.js.map} +1 -1
- package/chunk/{index-B3NA0DdP.js → index-BW4s6-PH.js} +46 -46
- package/chunk/{index-B3NA0DdP.js.map → index-BW4s6-PH.js.map} +1 -1
- package/chunk/{index-MRhfTdmm.js → index-BYMr8It7.js} +15 -15
- package/chunk/{index-MRhfTdmm.js.map → index-BYMr8It7.js.map} +1 -1
- package/chunk/{index-CgSW4Vzh.js → index-BjaCS2a8.js} +38 -38
- package/{lib/index-DIJ3ZLm3.js.map → chunk/index-BjaCS2a8.js.map} +1 -1
- package/chunk/{index-BDw8efPp.js → index-Bld-AWYE.js} +11 -11
- package/chunk/{index-BhkJfnda.js.map → index-Bld-AWYE.js.map} +1 -1
- package/chunk/{index-C9bZ7enn.js → index-BnPrfsM1.js} +7 -7
- package/chunk/{index-2QV6VPA3.js.map → index-BnPrfsM1.js.map} +1 -1
- package/chunk/{index-NjSUlAP4.js → index-BqnEM3hj.js} +54 -54
- package/chunk/index-BqnEM3hj.js.map +1 -0
- package/chunk/{index-RmF57u5_.js → index-BrkIzqD1.js} +57 -54
- package/chunk/index-BrkIzqD1.js.map +1 -0
- package/chunk/index-BupTUiiS.js +27 -0
- package/chunk/index-BupTUiiS.js.map +1 -0
- package/chunk/{index-BPEB_HHW.js → index-BvGP9l7M.js} +237 -219
- package/chunk/index-BvGP9l7M.js.map +1 -0
- package/chunk/index-C7nYtBX_.js +172 -0
- package/chunk/index-C7nYtBX_.js.map +1 -0
- package/chunk/{index-BtYzUCrC.js → index-CCUi9Uhw.js} +11 -11
- package/chunk/{index-qAxcloBs.js.map → index-CCUi9Uhw.js.map} +1 -1
- package/chunk/{index-DZsw9-0u.js → index-CEi_QkyI.js} +237 -219
- package/chunk/index-CEi_QkyI.js.map +1 -0
- package/chunk/index-CLCPYu7D.js +176 -0
- package/chunk/index-CLCPYu7D.js.map +1 -0
- package/chunk/{index-BhkJfnda.js → index-CZjGTko2.js} +11 -11
- package/chunk/{index-BDw8efPp.js.map → index-CZjGTko2.js.map} +1 -1
- package/chunk/{index-Dl7QItmr.js → index-CfUabHav.js} +56 -48
- package/chunk/{index-Dl7QItmr.js.map → index-CfUabHav.js.map} +1 -1
- package/chunk/{index-qAxcloBs.js → index-CjcHzfTY.js} +11 -11
- package/chunk/{index-BtYzUCrC.js.map → index-CjcHzfTY.js.map} +1 -1
- package/chunk/{index-DWjrZunN.js → index-Cp0C-9fh.js} +8 -8
- package/{lib/index-BpAwd4yZ.js.map → chunk/index-Cp0C-9fh.js.map} +1 -1
- package/chunk/{index-D3dphMnl.js → index-Cq__fToG.js} +15 -15
- package/chunk/{index-CaSKZsTY.js.map → index-Cq__fToG.js.map} +1 -1
- package/chunk/{index-DFQ4PjGJ.js → index-D6oLMvTq.js} +58 -58
- package/chunk/{index-DFQ4PjGJ.js.map → index-D6oLMvTq.js.map} +1 -1
- package/chunk/{index-tFgJS6bB.js → index-D7O7vvSe.js} +28 -28
- package/{lib/index-CFbGwQvV.js.map → chunk/index-D7O7vvSe.js.map} +1 -1
- package/chunk/{index-BFMTiaJv.js → index-DGGRPaEI.js} +30 -30
- package/chunk/{index-BGCnajPS.js.map → index-DGGRPaEI.js.map} +1 -1
- package/chunk/index-DIkWpujR.js +4 -4
- package/chunk/index-DIkWpujR.js.map +1 -1
- package/chunk/{index-DIV55Je2.js → index-DPv0lytr.js} +18 -18
- package/chunk/{index-DIV55Je2.js.map → index-DPv0lytr.js.map} +1 -1
- package/chunk/{index-4APDQFqJ.js → index-DSrYVtDo.js} +8 -8
- package/chunk/{index-4APDQFqJ.js.map → index-DSrYVtDo.js.map} +1 -1
- package/chunk/{index-D7dDB9pN.js → index-Dba2dHcR.js} +18 -18
- package/chunk/{index-D7dDB9pN.js.map → index-Dba2dHcR.js.map} +1 -1
- package/chunk/{index-CaSKZsTY.js → index-DhpucFa7.js} +15 -15
- package/{lib/index-CWWXURVN.js.map → chunk/index-DhpucFa7.js.map} +1 -1
- package/chunk/{index-_ohn63ug.js → index-DnCqjuSC.js} +29 -29
- package/chunk/{index-B30_E6pJ.js.map → index-DnCqjuSC.js.map} +1 -1
- package/chunk/{index-B30_E6pJ.js → index-DpYUZXus.js} +29 -29
- package/chunk/{index-_ohn63ug.js.map → index-DpYUZXus.js.map} +1 -1
- package/chunk/{index-oMg5zy_2.js → index-F6_JySe5.js} +54 -54
- package/chunk/index-F6_JySe5.js.map +1 -0
- package/chunk/{index-2QV6VPA3.js → index-YmkMflXj.js} +7 -7
- package/chunk/{index-C9bZ7enn.js.map → index-YmkMflXj.js.map} +1 -1
- package/chunk/{index-C0jDbJPp.js → index-eYM75vHB.js} +57 -54
- package/chunk/index-eYM75vHB.js.map +1 -0
- package/chunk/index-iZ8pO5if.js +31 -0
- package/chunk/index-iZ8pO5if.js.map +1 -0
- 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-C5fsaYJe.js} +11 -11
- package/chunk/{useCollectFieldsEndpoint-BsY8WlOg.js.map → useCollectFieldsEndpoint-C5fsaYJe.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DeICm6Vb.js → useCollectFieldsEndpoint-kmLFyUA-.js} +11 -11
- package/chunk/{useCollectFieldsEndpoint-DeICm6Vb.js.map → useCollectFieldsEndpoint-kmLFyUA-.js.map} +1 -1
- package/chunk/{useEmailFirstExperiment-3uKuefem.js → useEmailFirstExperiment-CSa3DQll.js} +30 -29
- package/chunk/{useEmailFirstExperiment-3uKuefem.js.map → useEmailFirstExperiment-CSa3DQll.js.map} +1 -1
- package/chunk/{useEmailFirstExperiment-B1_E_D0z.js → useEmailFirstExperiment-DZ1B78ke.js} +30 -29
- package/chunk/{useEmailFirstExperiment-B1_E_D0z.js.map → useEmailFirstExperiment-DZ1B78ke.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-CqGboDpE.js → EmailLoopPending-Dv5RU8aW.js} +8 -8
- package/lib/{EmailLoopPending-CqGboDpE.js.map → EmailLoopPending-Dv5RU8aW.js.map} +1 -1
- package/lib/{LicensedProfessionalOrganizationComponent-DZ-zCLNb.js → LicensedProfessionalOrganizationComponent-DtoPR91l.js} +5 -5
- package/lib/{LicensedProfessionalOrganizationComponent-DZ-zCLNb.js.map → LicensedProfessionalOrganizationComponent-DtoPR91l.js.map} +1 -1
- 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-DGfjdYFR.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-BdghJG7J.js.map → StepCollectMilitaryStatusComponent-DGfjdYFR.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-C6a2v64o.js → StepIDCheckLoopOnfido-DiSAKwu6.js} +5 -5
- package/lib/{StepIDCheckLoopOnfido-C6a2v64o.js.map → StepIDCheckLoopOnfido-DiSAKwu6.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-B4gdB1au.js → StepIDCheckLoopRegula-Cbr1wxzD.js} +16 -17
- package/lib/StepIDCheckLoopRegula-Cbr1wxzD.js.map +1 -0
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-DIS37EQl.js → StepInactiveMilitaryPersonalInfoComponent-CEneK5BB.js} +44 -44
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-DIS37EQl.js.map → StepInactiveMilitaryPersonalInfoComponent-CEneK5BB.js.map} +1 -1
- package/lib/VerificationApiUtils-BaeyxwKQ.js +21 -0
- package/lib/{VerificationApiUtils-Dec-3NxE.js.map → VerificationApiUtils-BaeyxwKQ.js.map} +1 -1
- 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-CNbgOM7D.js → es6-DIUKg5Yl.js} +12458 -13664
- package/lib/es6-DIUKg5Yl.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-CwEH1Xqn.js → index-348MFV_0.js} +5 -5
- package/lib/{index-CwEH1Xqn.js.map → index-348MFV_0.js.map} +1 -1
- package/lib/{index-CF4-uNPC.js → index-5FO_J7_Z.js} +27 -27
- package/lib/{index-CF4-uNPC.js.map → index-5FO_J7_Z.js.map} +1 -1
- package/lib/{index-DiEccR2E.js → index-B8tJDCPk.js} +27 -27
- package/lib/{index-DiEccR2E.js.map → index-B8tJDCPk.js.map} +1 -1
- package/lib/{index-Da-h4i4f.js → index-BNxZc3yj.js} +20 -20
- package/lib/{index-Da-h4i4f.js.map → index-BNxZc3yj.js.map} +1 -1
- package/lib/{index-CFbGwQvV.js → index-BR7Obj6X.js} +32 -32
- package/{chunk/index-CgBENXRP.js.map → lib/index-BR7Obj6X.js.map} +1 -1
- package/lib/index-BfZIEtAp.js +174 -0
- package/lib/index-BfZIEtAp.js.map +1 -0
- package/lib/{index-BpAwd4yZ.js → index-BwlcJZwR.js} +8 -8
- package/{chunk/index-DWjrZunN.js.map → lib/index-BwlcJZwR.js.map} +1 -1
- package/lib/{index-CFdjELC4.js → index-CEOPDO2Y.js} +30 -27
- package/lib/index-CEOPDO2Y.js.map +1 -0
- package/lib/{index-U8Xg6WS9.js → index-CGjXCGni.js} +20 -20
- package/lib/{index-U8Xg6WS9.js.map → index-CGjXCGni.js.map} +1 -1
- package/lib/index-CLowb6Wx.js +11 -0
- package/lib/index-CLowb6Wx.js.map +1 -0
- package/lib/{index-Bs8gT2Ki.js → index-CT2Bcg4x.js} +5 -5
- package/lib/{index-Bs8gT2Ki.js.map → index-CT2Bcg4x.js.map} +1 -1
- package/lib/{index-BgxQ03Lw.js → index-CUzHMJTj.js} +26 -26
- package/lib/{index-BgxQ03Lw.js.map → index-CUzHMJTj.js.map} +1 -1
- package/lib/{index-Dz5MfyRl.js → index-CeXTXAJi.js} +60 -60
- package/lib/{index-Dz5MfyRl.js.map → index-CeXTXAJi.js.map} +1 -1
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/index-DIkWpujR.js.map +1 -1
- package/lib/index-DPs8xffH.js +11 -0
- package/lib/index-DPs8xffH.js.map +1 -0
- package/lib/index-DWo3Cysb.js +11 -0
- package/lib/index-DWo3Cysb.js.map +1 -0
- package/lib/index-DXdjJ-86.js +28 -0
- package/lib/{index-BqMoknWH.js.map → index-DXdjJ-86.js.map} +1 -1
- package/lib/{index-JHJAgNn2.js → index-DdQXDuhi.js} +9 -9
- package/lib/{index-JHJAgNn2.js.map → index-DdQXDuhi.js.map} +1 -1
- package/lib/{index-s1MF80_2.js → index-LZPXbSqW.js} +402 -385
- package/lib/index-LZPXbSqW.js.map +1 -0
- package/lib/{index-DIJ3ZLm3.js → index-MzEDmZWe.js} +16 -16
- package/{chunk/index-DPEoeYI6.js.map → lib/index-MzEDmZWe.js.map} +1 -1
- package/lib/index-TKSJ1nbf.js +11 -0
- package/lib/index-TKSJ1nbf.js.map +1 -0
- package/lib/{index-CWWXURVN.js → index-UiGEZV81.js} +5 -5
- package/{chunk/index-D3dphMnl.js.map → lib/index-UiGEZV81.js.map} +1 -1
- package/lib/{index-CHCJ1GKm.js → index-ed6oGI-U.js} +7 -7
- package/lib/{index-CHCJ1GKm.js.map → index-ed6oGI-U.js.map} +1 -1
- package/lib/{index-B-vvoe4K.js → index-s5CW4RjM.js} +61 -61
- package/lib/index-s5CW4RjM.js.map +1 -0
- 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-DLjeRtxA.js → useCollectFieldsEndpoint-CS1fVgEX.js} +6 -6
- package/lib/{useCollectFieldsEndpoint-DLjeRtxA.js.map → useCollectFieldsEndpoint-CS1fVgEX.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-RXZazerr.js → useEmailFirstExperiment-Co9DPGhK.js} +7 -6
- package/lib/{useEmailFirstExperiment-RXZazerr.js.map → useEmailFirstExperiment-Co9DPGhK.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 +16329 -17918
- 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/VerificationService/ViewModel.d.ts +5 -3
- 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/intl/localized-messages/en-US.json.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 +12 -8
- 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-B2frgNDw.js.map +0 -1
- package/chunk/StepIDCheckLoopRegula-VCHUckkA.js.map +0 -1
- package/chunk/index-BIn_Jf1h.js +0 -48
- package/chunk/index-BIn_Jf1h.js.map +0 -1
- package/chunk/index-BOpxl8V9.js +0 -167
- package/chunk/index-BOpxl8V9.js.map +0 -1
- package/chunk/index-BPEB_HHW.js.map +0 -1
- package/chunk/index-C0jDbJPp.js.map +0 -1
- package/chunk/index-CfKAGYGb.js +0 -52
- package/chunk/index-CfKAGYGb.js.map +0 -1
- package/chunk/index-DZsw9-0u.js.map +0 -1
- package/chunk/index-DtoxnCtM.js +0 -171
- package/chunk/index-DtoxnCtM.js.map +0 -1
- package/chunk/index-NjSUlAP4.js.map +0 -1
- package/chunk/index-RmF57u5_.js.map +0 -1
- package/chunk/index-oMg5zy_2.js.map +0 -1
- package/lib/StepCollectMilitaryStatusComponent-BdghJG7J.js +0 -11
- package/lib/StepIDCheckLoopRegula-B4gdB1au.js.map +0 -1
- package/lib/VerificationApiUtils-Dec-3NxE.js +0 -23
- package/lib/es6-CNbgOM7D.js.map +0 -1
- package/lib/index-B-vvoe4K.js.map +0 -1
- package/lib/index-BUb81vE5.js +0 -11
- package/lib/index-BUb81vE5.js.map +0 -1
- package/lib/index-BqMoknWH.js +0 -28
- package/lib/index-BvZhF_Rn.js +0 -168
- package/lib/index-BvZhF_Rn.js.map +0 -1
- package/lib/index-CFdjELC4.js.map +0 -1
- package/lib/index-DFexphfg.js +0 -11
- package/lib/index-DFexphfg.js.map +0 -1
- package/lib/index-DbevfyP-.js +0 -11
- package/lib/index-DbevfyP-.js.map +0 -1
- package/lib/index-aInot7yT.js +0 -11
- package/lib/index-aInot7yT.js.map +0 -1
- package/lib/index-s1MF80_2.js.map +0 -1
@@ -1,23 +1,24 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
6
|
-
* BUILD_COMMIT:
|
3
|
+
* VERSION: 2.105.0-alpha.0
|
4
|
+
* BUILD_TIMESTAMP: 1746202200333
|
5
|
+
* BUILD_DATE: Fri May 02 2025 16:10:00 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 5e00bc964fbbb4f7f7b152a375026d6591cd1564
|
7
7
|
*/
|
8
|
-
import {
|
9
|
-
|
8
|
+
import { m 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, a as h, i as yt, al as Ce, av as It, g as Et, b0 as vt, d as Ut, b1 as ze, n as jt, A as Dt, b2 as _t, U as At, b3 as Rt, b4 as wt, b5 as Ft, k as Nt, l as Oe, V as ge, b6 as Ct, b7 as Ot, b8 as Tt, b9 as St } from "../sheerid.js";
|
9
|
+
import { P as Lt } from "./StepIDCheckLoopRegula-D8XhToQz.js";
|
10
|
+
const Mt = (e, a, o) => ye(e, (r) => {
|
10
11
|
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;
|
11
|
-
}),
|
12
|
+
}), kt = (e, a) => {
|
12
13
|
if (![1, 2, 3].includes(a))
|
13
14
|
throw new Error(
|
14
15
|
`Expected either 1, 2 or 3 for argument "fileNumber", but received ${a}`
|
15
16
|
);
|
16
|
-
return
|
17
|
+
return ye(e, (o) => {
|
17
18
|
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);
|
18
19
|
});
|
19
20
|
};
|
20
|
-
var
|
21
|
+
var Pt = /* @__PURE__ */ new Map([
|
21
22
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
22
23
|
["aac", "audio/aac"],
|
23
24
|
["abw", "application/x-abiword"],
|
@@ -100,7 +101,7 @@ var kt = /* @__PURE__ */ new Map([
|
|
100
101
|
["msg", "application/vnd.ms-outlook"]
|
101
102
|
]);
|
102
103
|
function ne(e, a) {
|
103
|
-
var o =
|
104
|
+
var o = Bt(e);
|
104
105
|
if (typeof o.path != "string") {
|
105
106
|
var r = e.webkitRelativePath;
|
106
107
|
Object.defineProperty(o, "path", {
|
@@ -112,10 +113,10 @@ function ne(e, a) {
|
|
112
113
|
}
|
113
114
|
return o;
|
114
115
|
}
|
115
|
-
function
|
116
|
+
function Bt(e) {
|
116
117
|
var a = e.name, o = a && a.lastIndexOf(".") !== -1;
|
117
118
|
if (o && !e.type) {
|
118
|
-
var r = a.split(".").pop().toLowerCase(), s =
|
119
|
+
var r = a.split(".").pop().toLowerCase(), s = Pt.get(r);
|
119
120
|
s && Object.defineProperty(e, "type", {
|
120
121
|
value: s,
|
121
122
|
writable: !1,
|
@@ -125,36 +126,36 @@ function Pt(e) {
|
|
125
126
|
}
|
126
127
|
return e;
|
127
128
|
}
|
128
|
-
var
|
129
|
+
var Yt = [
|
129
130
|
// Thumbnail cache files for macOS and Windows
|
130
131
|
".DS_Store",
|
131
132
|
"Thumbs.db"
|
132
133
|
// Windows
|
133
134
|
];
|
134
|
-
function
|
135
|
+
function Ht(e) {
|
135
136
|
return q(this, void 0, void 0, function() {
|
136
137
|
return Z(this, function(a) {
|
137
|
-
return
|
138
|
+
return Ie(e) && zt(e) ? [2, $t(e.dataTransfer, e.type)] : Vt(e) ? [2, Wt(e)] : Array.isArray(e) && e.every(function(o) {
|
138
139
|
return "getFile" in o && typeof o.getFile == "function";
|
139
|
-
}) ? [2,
|
140
|
+
}) ? [2, Gt(e)] : [2, []];
|
140
141
|
});
|
141
142
|
});
|
142
143
|
}
|
143
|
-
function Ht(e) {
|
144
|
-
return Ee(e.dataTransfer);
|
145
|
-
}
|
146
144
|
function zt(e) {
|
147
|
-
return
|
145
|
+
return Ie(e.dataTransfer);
|
148
146
|
}
|
149
|
-
function
|
147
|
+
function Vt(e) {
|
148
|
+
return Ie(e) && Ie(e.target);
|
149
|
+
}
|
150
|
+
function Ie(e) {
|
150
151
|
return typeof e == "object" && e !== null;
|
151
152
|
}
|
152
|
-
function
|
153
|
+
function Wt(e) {
|
153
154
|
return Se(e.target.files).map(function(a) {
|
154
155
|
return ne(a);
|
155
156
|
});
|
156
157
|
}
|
157
|
-
function
|
158
|
+
function Gt(e) {
|
158
159
|
return q(this, void 0, void 0, function() {
|
159
160
|
var a;
|
160
161
|
return Z(this, function(o) {
|
@@ -171,7 +172,7 @@ function Wt(e) {
|
|
171
172
|
});
|
172
173
|
});
|
173
174
|
}
|
174
|
-
function
|
175
|
+
function $t(e, a) {
|
175
176
|
return q(this, void 0, void 0, function() {
|
176
177
|
var o, r;
|
177
178
|
return Z(this, function(s) {
|
@@ -179,7 +180,7 @@ function Gt(e, a) {
|
|
179
180
|
case 0:
|
180
181
|
return e === null ? [2, []] : e.items ? (o = Se(e.items).filter(function(d) {
|
181
182
|
return d.kind === "file";
|
182
|
-
}), a !== "drop" ? [2, o] : [4, Promise.all(o.map(
|
183
|
+
}), a !== "drop" ? [2, o] : [4, Promise.all(o.map(Kt))]) : [3, 2];
|
183
184
|
case 1:
|
184
185
|
return r = s.sent(), [2, Ve(rt(r))];
|
185
186
|
case 2:
|
@@ -192,7 +193,7 @@ function Gt(e, a) {
|
|
192
193
|
}
|
193
194
|
function Ve(e) {
|
194
195
|
return e.filter(function(a) {
|
195
|
-
return
|
196
|
+
return Yt.indexOf(a.name) === -1;
|
196
197
|
});
|
197
198
|
}
|
198
199
|
function Se(e) {
|
@@ -204,7 +205,7 @@ function Se(e) {
|
|
204
205
|
}
|
205
206
|
return a;
|
206
207
|
}
|
207
|
-
function
|
208
|
+
function Kt(e) {
|
208
209
|
if (typeof e.webkitGetAsEntry != "function")
|
209
210
|
return We(e);
|
210
211
|
var a = e.webkitGetAsEntry();
|
@@ -212,7 +213,7 @@ function $t(e) {
|
|
212
213
|
}
|
213
214
|
function rt(e) {
|
214
215
|
return e.reduce(function(a, o) {
|
215
|
-
return
|
216
|
+
return xt(a, Array.isArray(o) ? rt(o) : [o]);
|
216
217
|
}, []);
|
217
218
|
}
|
218
219
|
function We(e) {
|
@@ -222,10 +223,10 @@ function We(e) {
|
|
222
223
|
var o = ne(a);
|
223
224
|
return Promise.resolve(o);
|
224
225
|
}
|
225
|
-
function
|
226
|
+
function qt(e) {
|
226
227
|
return q(this, void 0, void 0, function() {
|
227
228
|
return Z(this, function(a) {
|
228
|
-
return [2, e.isDirectory ? nt(e) :
|
229
|
+
return [2, e.isDirectory ? nt(e) : Zt(e)];
|
229
230
|
});
|
230
231
|
});
|
231
232
|
}
|
@@ -241,7 +242,8 @@ function nt(e) {
|
|
241
242
|
return Z(this, function(U) {
|
242
243
|
switch (U.label) {
|
243
244
|
case 0:
|
244
|
-
if (c.length)
|
245
|
+
if (c.length)
|
246
|
+
return [3, 5];
|
245
247
|
U.label = 1;
|
246
248
|
case 1:
|
247
249
|
return U.trys.push([1, 3, , 4]), [4, Promise.all(s)];
|
@@ -252,7 +254,7 @@ function nt(e) {
|
|
252
254
|
case 4:
|
253
255
|
return [3, 6];
|
254
256
|
case 5:
|
255
|
-
R = Promise.all(c.map(
|
257
|
+
R = Promise.all(c.map(qt)), s.push(R), d(), U.label = 6;
|
256
258
|
case 6:
|
257
259
|
return [
|
258
260
|
2
|
@@ -268,7 +270,7 @@ function nt(e) {
|
|
268
270
|
d();
|
269
271
|
});
|
270
272
|
}
|
271
|
-
function
|
273
|
+
function Zt(e) {
|
272
274
|
return q(this, void 0, void 0, function() {
|
273
275
|
return Z(this, function(a) {
|
274
276
|
return [2, new Promise(function(o, r) {
|
@@ -282,12 +284,9 @@ function qt(e) {
|
|
282
284
|
});
|
283
285
|
});
|
284
286
|
}
|
285
|
-
var
|
287
|
+
var Qt = function(e, a) {
|
286
288
|
if (e && a) {
|
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(/\/.*$/, "");
|
289
|
+
var o = Array.isArray(a) ? a : a.split(","), r = e.name || "", s = (e.type || "").toLowerCase(), d = s.replace(/\/.*$/, "");
|
291
290
|
return o.some(function(m) {
|
292
291
|
var c = m.trim().toLowerCase();
|
293
292
|
return c.charAt(0) === "." ? r.toLowerCase().endsWith(c) : c.endsWith("/*") ? d === c.replace(/\/.*$/, "") : s === c;
|
@@ -320,18 +319,21 @@ function st(e, a, o) {
|
|
320
319
|
return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
|
321
320
|
}
|
322
321
|
function Ke(e, a) {
|
323
|
-
return
|
322
|
+
return ta(e) || ea(e, a) || Jt(e, a) || Xt();
|
324
323
|
}
|
325
|
-
function
|
324
|
+
function Xt() {
|
326
325
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
327
326
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
328
327
|
}
|
329
|
-
function
|
328
|
+
function Jt(e, a) {
|
330
329
|
if (e) {
|
331
|
-
if (typeof e == "string")
|
330
|
+
if (typeof e == "string")
|
331
|
+
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
|
-
|
333
|
+
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set")
|
334
|
+
return Array.from(e);
|
335
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))
|
336
|
+
return qe(e, a);
|
335
337
|
}
|
336
338
|
}
|
337
339
|
function qe(e, a) {
|
@@ -340,7 +342,7 @@ function qe(e, a) {
|
|
340
342
|
r[o] = e[o];
|
341
343
|
return r;
|
342
344
|
}
|
343
|
-
function
|
345
|
+
function ea(e, a) {
|
344
346
|
var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
345
347
|
if (o != null) {
|
346
348
|
var r = [], s = !0, d = !1, m, c;
|
@@ -353,65 +355,71 @@ function Jt(e, a) {
|
|
353
355
|
try {
|
354
356
|
!s && o.return != null && o.return();
|
355
357
|
} finally {
|
356
|
-
if (d)
|
358
|
+
if (d)
|
359
|
+
throw c;
|
357
360
|
}
|
358
361
|
}
|
359
362
|
return r;
|
360
363
|
}
|
361
364
|
}
|
362
|
-
function
|
363
|
-
if (Array.isArray(e))
|
365
|
+
function ta(e) {
|
366
|
+
if (Array.isArray(e))
|
367
|
+
return e;
|
364
368
|
}
|
365
|
-
var
|
369
|
+
var aa = "file-invalid-type", oa = "file-too-large", ra = "file-too-small", na = "too-many-files", sa = function(a) {
|
366
370
|
a = Array.isArray(a) && a.length === 1 ? a[0] : a;
|
367
371
|
var o = Array.isArray(a) ? "one of ".concat(a.join(", ")) : a;
|
368
372
|
return {
|
369
|
-
code:
|
373
|
+
code: aa,
|
370
374
|
message: "File type must be ".concat(o)
|
371
375
|
};
|
372
376
|
}, Ze = function(a) {
|
373
377
|
return {
|
374
|
-
code:
|
378
|
+
code: oa,
|
375
379
|
message: "File is larger than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
|
376
380
|
};
|
377
381
|
}, Qe = function(a) {
|
378
382
|
return {
|
379
|
-
code:
|
383
|
+
code: ra,
|
380
384
|
message: "File is smaller than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
|
381
385
|
};
|
382
|
-
},
|
383
|
-
code:
|
386
|
+
}, ia = {
|
387
|
+
code: na,
|
384
388
|
message: "Too many files"
|
385
389
|
};
|
386
390
|
function it(e, a) {
|
387
|
-
var o = e.type === "application/x-moz-file" ||
|
388
|
-
return [o, o ? null :
|
391
|
+
var o = e.type === "application/x-moz-file" || Qt(e, a);
|
392
|
+
return [o, o ? null : sa(a)];
|
389
393
|
}
|
390
394
|
function lt(e, a, o) {
|
391
395
|
if (re(e.size))
|
392
396
|
if (re(a) && re(o)) {
|
393
|
-
if (e.size > o)
|
394
|
-
|
397
|
+
if (e.size > o)
|
398
|
+
return [!1, Ze(o)];
|
399
|
+
if (e.size < a)
|
400
|
+
return [!1, Qe(a)];
|
395
401
|
} else {
|
396
|
-
if (re(a) && e.size < a)
|
397
|
-
|
402
|
+
if (re(a) && e.size < a)
|
403
|
+
return [!1, Qe(a)];
|
404
|
+
if (re(o) && e.size > o)
|
405
|
+
return [!1, Ze(o)];
|
398
406
|
}
|
399
407
|
return [!0, null];
|
400
408
|
}
|
401
409
|
function re(e) {
|
402
410
|
return e != null;
|
403
411
|
}
|
404
|
-
function
|
412
|
+
function la(e) {
|
405
413
|
var a = e.files, o = e.accept, r = e.minSize, s = e.maxSize, d = e.multiple, m = e.maxFiles;
|
406
414
|
return !d && a.length > 1 || d && m >= 1 && a.length > m ? !1 : a.every(function(c) {
|
407
415
|
var v = it(c, o), x = Ke(v, 1), R = x[0], U = lt(c, r, s), N = Ke(U, 1), w = N[0];
|
408
416
|
return R && w;
|
409
417
|
});
|
410
418
|
}
|
411
|
-
function
|
419
|
+
function Ee(e) {
|
412
420
|
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
413
421
|
}
|
414
|
-
function
|
422
|
+
function xe(e) {
|
415
423
|
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(a) {
|
416
424
|
return a === "Files" || a === "application/x-moz-file";
|
417
425
|
}) : !!e.target && !!e.target.files;
|
@@ -419,15 +427,15 @@ function be(e) {
|
|
419
427
|
function Xe(e) {
|
420
428
|
e.preventDefault();
|
421
429
|
}
|
422
|
-
function
|
430
|
+
function da(e) {
|
423
431
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
424
432
|
}
|
425
|
-
function
|
433
|
+
function ca(e) {
|
426
434
|
return e.indexOf("Edge/") !== -1;
|
427
435
|
}
|
428
|
-
function
|
436
|
+
function pa() {
|
429
437
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
430
|
-
return
|
438
|
+
return da(e) || ca(e);
|
431
439
|
}
|
432
440
|
function S() {
|
433
441
|
for (var e = arguments.length, a = new Array(e), o = 0; o < e; o++)
|
@@ -436,14 +444,14 @@ function S() {
|
|
436
444
|
for (var s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), m = 1; m < s; m++)
|
437
445
|
d[m - 1] = arguments[m];
|
438
446
|
return a.some(function(c) {
|
439
|
-
return !
|
447
|
+
return !Ee(r) && c && c.apply(void 0, [r].concat(d)), Ee(r);
|
440
448
|
});
|
441
449
|
};
|
442
450
|
}
|
443
451
|
function Je() {
|
444
452
|
return "showOpenFilePicker" in window;
|
445
453
|
}
|
446
|
-
function
|
454
|
+
function ua(e) {
|
447
455
|
return e = typeof e == "string" ? e.split(",") : e, [{
|
448
456
|
description: "everything",
|
449
457
|
// TODO: Need to handle filtering more elegantly than this!
|
@@ -454,33 +462,38 @@ function pa(e) {
|
|
454
462
|
}, {}) : {}
|
455
463
|
}];
|
456
464
|
}
|
457
|
-
var
|
458
|
-
function
|
459
|
-
return
|
465
|
+
var fa = ["children"], ma = ["open"], ha = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], ga = ["refKey", "onChange", "onClick"];
|
466
|
+
function xa(e) {
|
467
|
+
return Ia(e) || ya(e) || dt(e) || ba();
|
460
468
|
}
|
461
|
-
function
|
469
|
+
function ba() {
|
462
470
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
463
471
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
464
472
|
}
|
465
|
-
function ba(e) {
|
466
|
-
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
467
|
-
}
|
468
473
|
function ya(e) {
|
469
|
-
if (
|
474
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
|
475
|
+
return Array.from(e);
|
476
|
+
}
|
477
|
+
function Ia(e) {
|
478
|
+
if (Array.isArray(e))
|
479
|
+
return Le(e);
|
470
480
|
}
|
471
481
|
function Te(e, a) {
|
472
|
-
return
|
482
|
+
return Ua(e) || va(e, a) || dt(e, a) || Ea();
|
473
483
|
}
|
474
|
-
function
|
484
|
+
function Ea() {
|
475
485
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
476
486
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
477
487
|
}
|
478
488
|
function dt(e, a) {
|
479
489
|
if (e) {
|
480
|
-
if (typeof e == "string")
|
490
|
+
if (typeof e == "string")
|
491
|
+
return Le(e, a);
|
481
492
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
482
|
-
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set")
|
483
|
-
|
493
|
+
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set")
|
494
|
+
return Array.from(e);
|
495
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))
|
496
|
+
return Le(e, a);
|
484
497
|
}
|
485
498
|
}
|
486
499
|
function Le(e, a) {
|
@@ -489,7 +502,7 @@ function Le(e, a) {
|
|
489
502
|
r[o] = e[o];
|
490
503
|
return r;
|
491
504
|
}
|
492
|
-
function
|
505
|
+
function va(e, a) {
|
493
506
|
var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
494
507
|
if (o != null) {
|
495
508
|
var r = [], s = !0, d = !1, m, c;
|
@@ -502,14 +515,16 @@ function Ea(e, a) {
|
|
502
515
|
try {
|
503
516
|
!s && o.return != null && o.return();
|
504
517
|
} finally {
|
505
|
-
if (d)
|
518
|
+
if (d)
|
519
|
+
throw c;
|
506
520
|
}
|
507
521
|
}
|
508
522
|
return r;
|
509
523
|
}
|
510
524
|
}
|
511
|
-
function
|
512
|
-
if (Array.isArray(e))
|
525
|
+
function Ua(e) {
|
526
|
+
if (Array.isArray(e))
|
527
|
+
return e;
|
513
528
|
}
|
514
529
|
function et(e, a) {
|
515
530
|
var o = Object.keys(e);
|
@@ -535,9 +550,10 @@ function b(e) {
|
|
535
550
|
function Me(e, a, o) {
|
536
551
|
return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
|
537
552
|
}
|
538
|
-
function
|
539
|
-
if (e == null)
|
540
|
-
|
553
|
+
function ve(e, a) {
|
554
|
+
if (e == null)
|
555
|
+
return {};
|
556
|
+
var o = ja(e, a), r, s;
|
541
557
|
if (Object.getOwnPropertySymbols) {
|
542
558
|
var d = Object.getOwnPropertySymbols(e);
|
543
559
|
for (s = 0; s < d.length; s++)
|
@@ -545,27 +561,28 @@ function Ue(e, a) {
|
|
545
561
|
}
|
546
562
|
return o;
|
547
563
|
}
|
548
|
-
function
|
549
|
-
if (e == null)
|
564
|
+
function ja(e, a) {
|
565
|
+
if (e == null)
|
566
|
+
return {};
|
550
567
|
var o = {}, r = Object.keys(e), s, d;
|
551
568
|
for (d = 0; d < r.length; d++)
|
552
569
|
s = r[d], !(a.indexOf(s) >= 0) && (o[s] = e[s]);
|
553
570
|
return o;
|
554
571
|
}
|
555
|
-
var
|
556
|
-
var o = e.children, r =
|
572
|
+
var Ue = /* @__PURE__ */ f.forwardRef(function(e, a) {
|
573
|
+
var o = e.children, r = ve(e, fa), s = Da(r), d = s.open, m = ve(s, ma);
|
557
574
|
return f.useImperativeHandle(a, function() {
|
558
575
|
return {
|
559
576
|
open: d
|
560
577
|
};
|
561
|
-
}, [d]), /* @__PURE__ */
|
578
|
+
}, [d]), /* @__PURE__ */ bt.createElement(f.Fragment, null, o(b(b({}, m), {}, {
|
562
579
|
open: d
|
563
580
|
})));
|
564
581
|
});
|
565
|
-
|
582
|
+
Ue.displayName = "Dropzone";
|
566
583
|
var ct = {
|
567
584
|
disabled: !1,
|
568
|
-
getFilesFromEvent:
|
585
|
+
getFilesFromEvent: Ht,
|
569
586
|
maxSize: 1 / 0,
|
570
587
|
minSize: 0,
|
571
588
|
multiple: !0,
|
@@ -578,8 +595,8 @@ var ct = {
|
|
578
595
|
validator: null,
|
579
596
|
useFsAccessApi: !1
|
580
597
|
};
|
581
|
-
|
582
|
-
|
598
|
+
Ue.defaultProps = ct;
|
599
|
+
Ue.propTypes = {
|
583
600
|
/**
|
584
601
|
* Render function that exposes the dropzone state and prop getter fns
|
585
602
|
*
|
@@ -739,6 +756,7 @@ se.propTypes = {
|
|
739
756
|
*/
|
740
757
|
validator: g.func
|
741
758
|
};
|
759
|
+
const pt = Ue;
|
742
760
|
var ke = {
|
743
761
|
isFocused: !1,
|
744
762
|
isFileDialogActive: !1,
|
@@ -749,12 +767,12 @@ var ke = {
|
|
749
767
|
acceptedFiles: [],
|
750
768
|
fileRejections: []
|
751
769
|
};
|
752
|
-
function
|
770
|
+
function Da() {
|
753
771
|
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() {
|
754
772
|
return typeof z == "function" ? z : tt;
|
755
773
|
}, [z]), H = f.useMemo(function() {
|
756
774
|
return typeof B == "function" ? B : tt;
|
757
|
-
}, [B]), j = f.useRef(null), D = f.useRef(null), Be = f.useReducer(
|
775
|
+
}, [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() {
|
758
776
|
ee && setTimeout(function() {
|
759
777
|
if (D.current) {
|
760
778
|
var p = D.current.files;
|
@@ -766,29 +784,29 @@ function ja() {
|
|
766
784
|
};
|
767
785
|
f.useEffect(function() {
|
768
786
|
return V && Je() ? function() {
|
769
|
-
} : (window.addEventListener("focus",
|
770
|
-
window.removeEventListener("focus",
|
787
|
+
} : (window.addEventListener("focus", de, !1), function() {
|
788
|
+
window.removeEventListener("focus", de, !1);
|
771
789
|
});
|
772
790
|
}, [D, ee, H, V]);
|
773
|
-
var T = f.useRef([]),
|
791
|
+
var T = f.useRef([]), ce = function(p) {
|
774
792
|
j.current && j.current.contains(p.target) || (p.preventDefault(), T.current = []);
|
775
793
|
};
|
776
794
|
f.useEffect(function() {
|
777
|
-
return X && (document.addEventListener("dragover", Xe, !1), document.addEventListener("drop",
|
778
|
-
X && (document.removeEventListener("dragover", Xe), document.removeEventListener("drop",
|
795
|
+
return X && (document.addEventListener("dragover", Xe, !1), document.addEventListener("drop", ce, !1)), function() {
|
796
|
+
X && (document.removeEventListener("dragover", Xe), document.removeEventListener("drop", ce));
|
779
797
|
};
|
780
798
|
}, [j, X]);
|
781
|
-
var
|
782
|
-
l.preventDefault(), l.persist(),
|
783
|
-
|
799
|
+
var pe = f.useCallback(function(l) {
|
800
|
+
l.preventDefault(), l.persist(), me(l), T.current = [].concat(xa(T.current), [l.target]), xe(l) && Promise.resolve(s(l)).then(function(p) {
|
801
|
+
Ee(l) && !P || (_({
|
784
802
|
draggedFiles: p,
|
785
803
|
isDragActive: !0,
|
786
804
|
type: "setDraggedFiles"
|
787
805
|
}), x && x(l));
|
788
806
|
});
|
789
|
-
}, [s, x, P]),
|
790
|
-
l.preventDefault(), l.persist(),
|
791
|
-
var p =
|
807
|
+
}, [s, x, P]), ue = f.useCallback(function(l) {
|
808
|
+
l.preventDefault(), l.persist(), me(l);
|
809
|
+
var p = xe(l);
|
792
810
|
if (p && l.dataTransfer)
|
793
811
|
try {
|
794
812
|
l.dataTransfer.dropEffect = "copy";
|
@@ -796,7 +814,7 @@ function ja() {
|
|
796
814
|
}
|
797
815
|
return p && U && U(l), !1;
|
798
816
|
}, [U, P]), G = f.useCallback(function(l) {
|
799
|
-
l.preventDefault(), l.persist(),
|
817
|
+
l.preventDefault(), l.persist(), me(l);
|
800
818
|
var p = T.current.filter(function(A) {
|
801
819
|
return j.current && j.current.contains(A);
|
802
820
|
}), E = p.indexOf(l.target);
|
@@ -804,26 +822,26 @@ function ja() {
|
|
804
822
|
isDragActive: !1,
|
805
823
|
type: "setDraggedFiles",
|
806
824
|
draggedFiles: []
|
807
|
-
}),
|
825
|
+
}), xe(l) && R && R(l));
|
808
826
|
}, [j, R, P]), i = f.useCallback(function(l, p) {
|
809
827
|
var E = [], A = [];
|
810
828
|
l.forEach(function(F) {
|
811
|
-
var oe = it(F, o), K = Te(oe, 2), De = K[0], _e = K[1], Ae = lt(F, m, d),
|
829
|
+
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;
|
812
830
|
if (De && Re && !Fe)
|
813
831
|
E.push(F);
|
814
832
|
else {
|
815
833
|
var Ne = [_e, we];
|
816
834
|
Fe && (Ne = Ne.concat(Fe)), A.push({
|
817
835
|
file: F,
|
818
|
-
errors: Ne.filter(function(
|
819
|
-
return
|
836
|
+
errors: Ne.filter(function(gt) {
|
837
|
+
return gt;
|
820
838
|
})
|
821
839
|
});
|
822
840
|
}
|
823
841
|
}), (!c && E.length > 1 || c && v >= 1 && E.length > v) && (E.forEach(function(F) {
|
824
842
|
A.push({
|
825
843
|
file: F,
|
826
|
-
errors: [
|
844
|
+
errors: [ia]
|
827
845
|
});
|
828
846
|
}), E.splice(0)), _({
|
829
847
|
acceptedFiles: E,
|
@@ -831,8 +849,8 @@ function ja() {
|
|
831
849
|
type: "setFiles"
|
832
850
|
}), N && N(E, A, p), A.length > 0 && Q && Q(A, p), E.length > 0 && w && w(E, p);
|
833
851
|
}, [_, c, o, m, d, v, N, w, Q, O]), I = f.useCallback(function(l) {
|
834
|
-
l.preventDefault(), l.persist(),
|
835
|
-
|
852
|
+
l.preventDefault(), l.persist(), me(l), T.current = [], xe(l) && Promise.resolve(s(l)).then(function(p) {
|
853
|
+
Ee(l) && !P || i(p, l);
|
836
854
|
}), _({
|
837
855
|
type: "reset"
|
838
856
|
});
|
@@ -843,7 +861,7 @@ function ja() {
|
|
843
861
|
}), Y();
|
844
862
|
var l = {
|
845
863
|
multiple: c,
|
846
|
-
types:
|
864
|
+
types: ua(o)
|
847
865
|
};
|
848
866
|
window.showOpenFilePicker(l).then(function(p) {
|
849
867
|
return s(p);
|
@@ -872,37 +890,37 @@ function ja() {
|
|
872
890
|
type: "blur"
|
873
891
|
});
|
874
892
|
}, []), M = f.useCallback(function() {
|
875
|
-
y || (
|
893
|
+
y || (pa() ? setTimeout(L, 0) : L());
|
876
894
|
}, [D, y, L]), k = function(p) {
|
877
895
|
return r ? null : p;
|
878
896
|
}, je = function(p) {
|
879
897
|
return J ? null : k(p);
|
880
|
-
},
|
898
|
+
}, fe = function(p) {
|
881
899
|
return C ? null : k(p);
|
882
|
-
},
|
900
|
+
}, me = function(p) {
|
883
901
|
P && p.stopPropagation();
|
884
|
-
},
|
902
|
+
}, ut = f.useMemo(function() {
|
885
903
|
return function() {
|
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,
|
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, he = l.onDragLeave, Re = l.onDrop, we = ve(l, ha);
|
887
905
|
return b(b(Me({
|
888
906
|
onKeyDown: je(S(F, $)),
|
889
907
|
onFocus: je(S(oe, te)),
|
890
908
|
onBlur: je(S(K, ae)),
|
891
909
|
onClick: k(S(De, M)),
|
892
|
-
onDragEnter:
|
893
|
-
onDragOver:
|
894
|
-
onDragLeave:
|
895
|
-
onDrop:
|
910
|
+
onDragEnter: fe(S(_e, pe)),
|
911
|
+
onDragOver: fe(S(Ae, ue)),
|
912
|
+
onDragLeave: fe(S(he, G)),
|
913
|
+
onDrop: fe(S(Re, I)),
|
896
914
|
role: typeof A == "string" && A !== "" ? A : "button"
|
897
915
|
}, E, j), !r && !J ? {
|
898
916
|
tabIndex: 0
|
899
917
|
} : {}), we);
|
900
918
|
};
|
901
|
-
}, [j, $, te, ae, M,
|
919
|
+
}, [j, $, te, ae, M, pe, ue, G, I, J, C, r]), ft = f.useCallback(function(l) {
|
902
920
|
l.stopPropagation();
|
903
|
-
}, []),
|
921
|
+
}, []), mt = f.useMemo(function() {
|
904
922
|
return function() {
|
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 =
|
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 = ve(l, ga), K = Me({
|
906
924
|
accept: o,
|
907
925
|
multiple: c,
|
908
926
|
type: "file",
|
@@ -910,32 +928,32 @@ function ja() {
|
|
910
928
|
display: "none"
|
911
929
|
},
|
912
930
|
onChange: k(S(A, I)),
|
913
|
-
onClick: k(S(F,
|
931
|
+
onClick: k(S(F, ft)),
|
914
932
|
autoComplete: "off",
|
915
933
|
tabIndex: -1
|
916
934
|
}, E, D);
|
917
935
|
return b(b({}, K), oe);
|
918
936
|
};
|
919
|
-
}, [D, o, c, I, r]), Ye =
|
920
|
-
files:
|
937
|
+
}, [D, o, c, I, r]), Ye = le.length, He = Ye > 0 && la({
|
938
|
+
files: le,
|
921
939
|
accept: o,
|
922
940
|
minSize: m,
|
923
941
|
maxSize: d,
|
924
942
|
multiple: c,
|
925
943
|
maxFiles: v
|
926
|
-
}),
|
944
|
+
}), ht = Ye > 0 && !He;
|
927
945
|
return b(b({}, W), {}, {
|
928
946
|
isDragAccept: He,
|
929
|
-
isDragReject:
|
930
|
-
isFocused:
|
931
|
-
getRootProps:
|
932
|
-
getInputProps:
|
947
|
+
isDragReject: ht,
|
948
|
+
isFocused: ie && !r,
|
949
|
+
getRootProps: ut,
|
950
|
+
getInputProps: mt,
|
933
951
|
rootRef: j,
|
934
952
|
inputRef: D,
|
935
953
|
open: k(L)
|
936
954
|
});
|
937
955
|
}
|
938
|
-
function
|
956
|
+
function _a(e, a) {
|
939
957
|
switch (a.type) {
|
940
958
|
case "focus":
|
941
959
|
return b(b({}, e), {}, {
|
@@ -972,7 +990,7 @@ function Da(e, a) {
|
|
972
990
|
}
|
973
991
|
function tt() {
|
974
992
|
}
|
975
|
-
function
|
993
|
+
function be({
|
976
994
|
title: e,
|
977
995
|
children: a,
|
978
996
|
id: o,
|
@@ -1009,7 +1027,7 @@ function ye({
|
|
1009
1027
|
}
|
1010
1028
|
);
|
1011
1029
|
}
|
1012
|
-
const
|
1030
|
+
const Aa = {
|
1013
1031
|
[u.STUDENT]: [
|
1014
1032
|
"step.docUpload.acceptableUploads.student.idCard",
|
1015
1033
|
"step.docUpload.acceptableUploads.student.classSchedule",
|
@@ -1065,7 +1083,7 @@ const _a = {
|
|
1065
1083
|
"step.docUpload.acceptableUploads.lowIncome.programApprovalScreenshot",
|
1066
1084
|
"step.docUpload.acceptableUploads.lowIncome.programBankStatement"
|
1067
1085
|
]
|
1068
|
-
},
|
1086
|
+
}, Ra = {
|
1069
1087
|
[n.ACTIVE_DUTY]: [
|
1070
1088
|
"step.docUpload.acceptableUploads.military.active.leaveEarningStatement",
|
1071
1089
|
"step.docUpload.acceptableUploads.military.active.uniformedServicesId"
|
@@ -1132,7 +1150,7 @@ const _a = {
|
|
1132
1150
|
[n.NUTRITION_PROFESSIONAL]: [
|
1133
1151
|
"step.docUpload.acceptableUploads.licensedProfessional.license"
|
1134
1152
|
]
|
1135
|
-
},
|
1153
|
+
}, wa = {
|
1136
1154
|
[u.STUDENT]: [
|
1137
1155
|
"step.docUpload.uploadInfo.fullName",
|
1138
1156
|
"step.docUpload.uploadInfo.institutionName",
|
@@ -1190,7 +1208,7 @@ const _a = {
|
|
1190
1208
|
"step.docUpload.uploadInfo.fullName",
|
1191
1209
|
"step.docUpload.uploadInfo.lowIncome.validDate"
|
1192
1210
|
]
|
1193
|
-
},
|
1211
|
+
}, Fa = {
|
1194
1212
|
[n.ACTIVE_DUTY]: ["step.docUpload.uploadInfo.military.activeDuty.status"],
|
1195
1213
|
[n.VETERAN]: ["step.docUpload.uploadInfo.military.veteran.status"],
|
1196
1214
|
[n.RESERVIST]: ["step.docUpload.uploadInfo.military.reservist.status"],
|
@@ -1219,30 +1237,30 @@ const _a = {
|
|
1219
1237
|
[n.ARCHITECT]: [],
|
1220
1238
|
[n.GENERAL_CONTRACTOR]: [],
|
1221
1239
|
[n.NUTRITION_PROFESSIONAL]: []
|
1222
|
-
},
|
1240
|
+
}, Na = {
|
1223
1241
|
// MILITARY_FAMILY is overridden to not show branch of service.
|
1224
1242
|
[n.MILITARY_FAMILY]: [
|
1225
1243
|
"step.docUpload.uploadInfo.fullName",
|
1226
1244
|
"step.docUpload.uploadInfo.military.militaryFamily.status"
|
1227
1245
|
]
|
1228
1246
|
};
|
1229
|
-
function
|
1247
|
+
function Ca(e, a) {
|
1230
1248
|
return [
|
1231
1249
|
.../* @__PURE__ */ new Set([
|
1232
|
-
...
|
1233
|
-
...
|
1250
|
+
...Ra[a] || [],
|
1251
|
+
...Aa[e] || []
|
1234
1252
|
])
|
1235
1253
|
];
|
1236
1254
|
}
|
1237
|
-
function
|
1238
|
-
return
|
1255
|
+
function Oa(e, a) {
|
1256
|
+
return Na[a] || [
|
1239
1257
|
.../* @__PURE__ */ new Set([
|
1240
|
-
...
|
1241
|
-
...
|
1258
|
+
...Fa[a] || [],
|
1259
|
+
...wa[e] || []
|
1242
1260
|
])
|
1243
1261
|
];
|
1244
1262
|
}
|
1245
|
-
const
|
1263
|
+
const Ta = ({
|
1246
1264
|
options: e,
|
1247
1265
|
selected: a,
|
1248
1266
|
onChange: o,
|
@@ -1287,11 +1305,11 @@ const Oa = ({
|
|
1287
1305
|
] })
|
1288
1306
|
)) })
|
1289
1307
|
] });
|
1290
|
-
},
|
1308
|
+
}, Sa = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "sid-named-divider", children: [
|
1291
1309
|
/* @__PURE__ */ t.jsx("hr", { className: "sid-named-divider__rule" }),
|
1292
1310
|
/* @__PURE__ */ t.jsx("p", { className: "sid-named-divider__text", children: e })
|
1293
1311
|
] });
|
1294
|
-
function
|
1312
|
+
function La({
|
1295
1313
|
title: e,
|
1296
1314
|
titleId: a,
|
1297
1315
|
...o
|
@@ -1314,7 +1332,7 @@ function Sa({
|
|
1314
1332
|
d: "M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
|
1315
1333
|
}));
|
1316
1334
|
}
|
1317
|
-
const
|
1335
|
+
const Ma = f.forwardRef(La), ka = Ma, Pa = (e) => /* @__PURE__ */ t.jsxs(
|
1318
1336
|
"svg",
|
1319
1337
|
{
|
1320
1338
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1482,7 +1500,7 @@ const La = /* @__PURE__ */ f.forwardRef(Sa), Ma = (e) => /* @__PURE__ */ t.jsxs(
|
|
1482
1500
|
)
|
1483
1501
|
]
|
1484
1502
|
}
|
1485
|
-
),
|
1503
|
+
), Ba = (e) => /* @__PURE__ */ t.jsxs(
|
1486
1504
|
"svg",
|
1487
1505
|
{
|
1488
1506
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1547,7 +1565,7 @@ const La = /* @__PURE__ */ f.forwardRef(Sa), Ma = (e) => /* @__PURE__ */ t.jsxs(
|
|
1547
1565
|
)
|
1548
1566
|
]
|
1549
1567
|
}
|
1550
|
-
),
|
1568
|
+
), Ya = (e) => /* @__PURE__ */ t.jsxs(
|
1551
1569
|
"svg",
|
1552
1570
|
{
|
1553
1571
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1611,13 +1629,13 @@ const La = /* @__PURE__ */ f.forwardRef(Sa), Ma = (e) => /* @__PURE__ */ t.jsxs(
|
|
1611
1629
|
)
|
1612
1630
|
]
|
1613
1631
|
}
|
1614
|
-
),
|
1615
|
-
function
|
1616
|
-
return e === "ID_CARD" && a === "large" ?
|
1632
|
+
), Ha = ["ID_CARD", "SCHEDULE"];
|
1633
|
+
function za(e, a) {
|
1634
|
+
return e === "ID_CARD" && a === "large" ? Pa : e === "ID_CARD" && a === "small" ? at : e === "SCHEDULE" && a === "large" ? Ba : e === "SCHEDULE" && a === "small" ? Ya : at;
|
1617
1635
|
}
|
1618
|
-
const
|
1619
|
-
const r =
|
1620
|
-
return /* @__PURE__ */ t.jsx(
|
1636
|
+
const Va = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
1637
|
+
const r = za(a, o);
|
1638
|
+
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: [
|
1621
1639
|
/* @__PURE__ */ t.jsx("input", { ...d() }),
|
1622
1640
|
o === "small" ? /* @__PURE__ */ t.jsxs("button", { className: "sid-document-type-attachment", type: "button", children: [
|
1623
1641
|
/* @__PURE__ */ t.jsx(r, { className: "sid-document-type-attachment__icon-small" }),
|
@@ -1625,7 +1643,7 @@ const Ha = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1625
1643
|
a === "ID_CARD" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Dated School ID card" }),
|
1626
1644
|
a === "SCHEDULE" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Class Schedule" })
|
1627
1645
|
] }),
|
1628
|
-
/* @__PURE__ */ t.jsx(
|
1646
|
+
/* @__PURE__ */ t.jsx(ka, { className: "sid-document-type-attachment__plus" })
|
1629
1647
|
] }) : /* @__PURE__ */ t.jsxs(
|
1630
1648
|
"button",
|
1631
1649
|
{
|
@@ -1641,7 +1659,7 @@ const Ha = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1641
1659
|
}
|
1642
1660
|
)
|
1643
1661
|
] }) });
|
1644
|
-
},
|
1662
|
+
}, Wa = {
|
1645
1663
|
[u.STUDENT]: [
|
1646
1664
|
"step.docUpload.uploadInfo.fullName",
|
1647
1665
|
"step.docUpload.uploadInfo.student.school",
|
@@ -1704,7 +1722,7 @@ const Ha = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1704
1722
|
"step.docUpload.uploadInfo.recentMover.address",
|
1705
1723
|
"step.docUpload.uploadInfo.recentMover.validDate"
|
1706
1724
|
]
|
1707
|
-
},
|
1725
|
+
}, Ga = {
|
1708
1726
|
[n.ACTIVE_DUTY]: [],
|
1709
1727
|
[n.VETERAN]: [],
|
1710
1728
|
[n.RESERVIST]: [],
|
@@ -1733,16 +1751,16 @@ const Ha = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1733
1751
|
[n.ARCHITECT]: [],
|
1734
1752
|
[n.GENERAL_CONTRACTOR]: [],
|
1735
1753
|
[n.NUTRITION_PROFESSIONAL]: []
|
1736
|
-
},
|
1754
|
+
}, $a = {
|
1737
1755
|
// MILITARY_FAMILY is overridden to not show branch of service.
|
1738
1756
|
[n.MILITARY_FAMILY]: [
|
1739
1757
|
"step.docUpload.uploadInfo.military.uploadInstructionsDependent"
|
1740
1758
|
]
|
1741
1759
|
};
|
1742
|
-
function
|
1743
|
-
return
|
1744
|
-
...
|
1745
|
-
...
|
1760
|
+
function Ka(e, a) {
|
1761
|
+
return $a[a] || [
|
1762
|
+
...Ga[a] || [],
|
1763
|
+
...Wa[e] || []
|
1746
1764
|
];
|
1747
1765
|
}
|
1748
1766
|
const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e ? /* @__PURE__ */ t.jsxs("div", { className: "sid-field-error sid-field-error-redesign__doc-upload", children: [
|
@@ -1754,70 +1772,70 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1754
1772
|
}
|
1755
1773
|
),
|
1756
1774
|
a ? a.map((r) => /* @__PURE__ */ t.jsx("div", { className: "sid-field-error-redesign__doc-upload__span", children: r }, `error-${r}`)) : null
|
1757
|
-
] }) : null,
|
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 ?
|
1775
|
+
] }) : null, qa = ({ verificationService: e, intl: a }) => {
|
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 ? Ka : Oa)(
|
1759
1777
|
m,
|
1760
1778
|
c
|
1761
1779
|
), Q = e.verificationResponse.country === "US", B = (i) => ({
|
1762
1780
|
name: i.name,
|
1763
1781
|
url: i.type.includes("image") ? URL.createObjectURL(i) : ""
|
1764
|
-
}), [z, V] = f.useState({}), { userDidConvert: X } =
|
1765
|
-
|
1782
|
+
}), [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);
|
1783
|
+
Et(vt) && y.push({
|
1766
1784
|
name: "myFile.png",
|
1767
1785
|
url: ""
|
1768
1786
|
});
|
1769
|
-
const
|
1787
|
+
const se = a.formatMessage({
|
1770
1788
|
id: "step.docUpload.addFile",
|
1771
1789
|
defaultMessage: "Add documents"
|
1772
1790
|
});
|
1773
1791
|
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));
|
1774
1792
|
const W = y.map((i) => z[i.name]), _ = (i, I) => {
|
1775
|
-
r(!1), e.updateViewModel(
|
1776
|
-
},
|
1793
|
+
r(!1), e.updateViewModel(Mt(x, i, I));
|
1794
|
+
}, ie = (i) => {
|
1777
1795
|
const I = i + 1;
|
1778
|
-
r(!1), H([]), D(!1), e.updateViewModel(
|
1779
|
-
}, ee = R.docUpload ||
|
1796
|
+
r(!1), H([]), D(!1), e.updateViewModel(kt(x, I));
|
1797
|
+
}, ee = R.docUpload || Ut(() => e.verificationResponse.errorIds[0], void 0), le = (i, I) => {
|
1780
1798
|
const L = [], $ = [], te = [];
|
1781
1799
|
for (const M of i) {
|
1782
1800
|
const k = St(
|
1783
|
-
|
1801
|
+
ge.docUpload,
|
1784
1802
|
M,
|
1785
1803
|
e.formValidationOptions
|
1786
1804
|
);
|
1787
1805
|
k === void 0 ? (I && V({ ...z, [M.name]: I }), L.push(M)) : (te.push(M.name), $.push(k));
|
1788
1806
|
}
|
1789
1807
|
let ae;
|
1790
|
-
$ && (ae =
|
1808
|
+
$ && (ae = ye(R, (M) => {
|
1791
1809
|
M.docUpload = $[0];
|
1792
1810
|
})), e.updateFieldValidationErrors(ae), _(L, te);
|
1793
|
-
},
|
1811
|
+
}, de = () => {
|
1794
1812
|
Oe.info("StepDocUploadComponent submitting form"), D(!0), (O && w.every((i) => Y.includes(i)) || !O) && (e.submitStep(
|
1795
|
-
|
1813
|
+
ge.docUpload,
|
1796
1814
|
x,
|
1797
1815
|
e.verificationResponse
|
1798
|
-
), X(
|
1816
|
+
), X(Ct, Ot));
|
1799
1817
|
}, T = (i, I) => {
|
1800
|
-
i.length > 0 ?
|
1818
|
+
i.length > 0 ? le(i, I) : i.length <= 0 && Oe.error(
|
1801
1819
|
"No files were accepted or rejected. Unknown error.",
|
1802
|
-
|
1820
|
+
ge.docUpload
|
1803
1821
|
);
|
1804
|
-
},
|
1822
|
+
}, ce = (i) => {
|
1805
1823
|
T(Array.from(i.target.files));
|
1806
|
-
},
|
1807
|
-
const I =
|
1824
|
+
}, pe = (i) => {
|
1825
|
+
const I = Tt("addFile");
|
1808
1826
|
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), I.click());
|
1809
|
-
},
|
1827
|
+
}, ue = async () => {
|
1810
1828
|
Oe.info("StepDocUploadComponent submitting form after skipping document upload");
|
1811
|
-
const i =
|
1829
|
+
const i = ye(x, () => {
|
1812
1830
|
});
|
1813
1831
|
e.submitStep(
|
1814
|
-
|
1832
|
+
ge.cancelDocUpload,
|
1815
1833
|
i,
|
1816
1834
|
e.verificationResponse
|
1817
1835
|
);
|
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:
|
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: Ha.map(
|
1819
1837
|
(i) => !W.includes(i) && /* @__PURE__ */ t.jsx(
|
1820
|
-
|
1838
|
+
Va,
|
1821
1839
|
{
|
1822
1840
|
onFileDrop: T,
|
1823
1841
|
type: i,
|
@@ -1833,7 +1851,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1833
1851
|
erroredFileNames: x.erroredFileNames
|
1834
1852
|
}
|
1835
1853
|
),
|
1836
|
-
/* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(
|
1854
|
+
/* @__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(
|
1837
1855
|
"div",
|
1838
1856
|
{
|
1839
1857
|
...i(),
|
@@ -1846,7 +1864,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1846
1864
|
tabIndex: -1,
|
1847
1865
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
1848
1866
|
type: "button",
|
1849
|
-
"aria-label":
|
1867
|
+
"aria-label": se,
|
1850
1868
|
children: /* @__PURE__ */ t.jsx(
|
1851
1869
|
h,
|
1852
1870
|
{
|
@@ -1868,9 +1886,9 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1868
1886
|
children: [
|
1869
1887
|
/* @__PURE__ */ t.jsxs("div", { role: "main", children: [
|
1870
1888
|
/* @__PURE__ */ t.jsxs("div", { className: "sid-header sid-l-space-top-md", children: [
|
1871
|
-
/* @__PURE__ */ t.jsx("div", { className: "sid-doc-upload-logo-container sid-l-horz-center", children: /* @__PURE__ */ t.jsx(
|
1872
|
-
/* @__PURE__ */ t.jsx(
|
1873
|
-
/* @__PURE__ */ t.jsx(
|
1889
|
+
/* @__PURE__ */ t.jsx("div", { className: "sid-doc-upload-logo-container sid-l-horz-center", children: /* @__PURE__ */ t.jsx(jt, { verificationService: e }) }),
|
1890
|
+
/* @__PURE__ */ t.jsx(Dt, { align: "start", children: /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.title", tagName: "h1" }) }),
|
1891
|
+
/* @__PURE__ */ t.jsx(_t, { verificationService: e }),
|
1874
1892
|
d && d.length > 0 && /* @__PURE__ */ t.jsxs("div", { className: "sid-upload-rejection__wrapper", children: [
|
1875
1893
|
/* @__PURE__ */ t.jsx("div", { className: "sid-header__subtitle-doc-upload-rejected", children: /* @__PURE__ */ t.jsx(
|
1876
1894
|
h,
|
@@ -1933,8 +1951,8 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1933
1951
|
tabIndex: 0,
|
1934
1952
|
"aria-label": `Remove file ${i.name}`,
|
1935
1953
|
className: "sid-file-list__remove-btn",
|
1936
|
-
onClick: () =>
|
1937
|
-
onKeyPress: () =>
|
1954
|
+
onClick: () => ie(I),
|
1955
|
+
onKeyPress: () => ie(I)
|
1938
1956
|
}
|
1939
1957
|
)
|
1940
1958
|
] })
|
@@ -1945,10 +1963,10 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1945
1963
|
className: "sid-docdrop-wrap__dropzone thumbnail_wrapper",
|
1946
1964
|
htmlFor: "sid-take-photo-input",
|
1947
1965
|
role: "button",
|
1948
|
-
onKeyUp: (i) =>
|
1966
|
+
onKeyUp: (i) => pe(i),
|
1949
1967
|
tabIndex: 0,
|
1950
1968
|
children: [
|
1951
|
-
/* @__PURE__ */ t.jsx(
|
1969
|
+
/* @__PURE__ */ t.jsx(Lt, { className: "sid-uploadzone__icon", width: "16px" }),
|
1952
1970
|
/* @__PURE__ */ t.jsx("p", { className: "sid-docdrop-wrap__instructions thumbnail_wrapper-text", children: /* @__PURE__ */ t.jsx(
|
1953
1971
|
h,
|
1954
1972
|
{
|
@@ -1959,7 +1977,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1959
1977
|
/* @__PURE__ */ t.jsx(
|
1960
1978
|
"input",
|
1961
1979
|
{
|
1962
|
-
onChange:
|
1980
|
+
onChange: ce,
|
1963
1981
|
type: "file",
|
1964
1982
|
id: "sid-take-photo-input",
|
1965
1983
|
hidden: !0,
|
@@ -1981,7 +1999,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1981
1999
|
}
|
1982
2000
|
),
|
1983
2001
|
O && y.length >= 1 && /* @__PURE__ */ t.jsx(
|
1984
|
-
|
2002
|
+
Ta,
|
1985
2003
|
{
|
1986
2004
|
options: w,
|
1987
2005
|
selected: Y,
|
@@ -1993,7 +2011,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1993
2011
|
"button",
|
1994
2012
|
{
|
1995
2013
|
id: "sid-submit-doc-upload",
|
1996
|
-
onClick:
|
2014
|
+
onClick: de,
|
1997
2015
|
type: "submit",
|
1998
2016
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
1999
2017
|
"aria-disabled": y.length <= 0 || O && !w.every((i) => Y.includes(i)),
|
@@ -2021,13 +2039,13 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2021
2039
|
] }) : null,
|
2022
2040
|
C === "doc-type-icons" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2023
2041
|
y.length > 0 && y.length < 2 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2024
|
-
/* @__PURE__ */ t.jsx(
|
2042
|
+
/* @__PURE__ */ t.jsx(Sa, { children: "Add another document" }),
|
2025
2043
|
G
|
2026
2044
|
] }),
|
2027
2045
|
/* @__PURE__ */ t.jsx("h3", { children: "FAQ" }),
|
2028
|
-
/* @__PURE__ */ t.jsx(
|
2046
|
+
/* @__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)) }) })
|
2029
2047
|
] }) : /* @__PURE__ */ t.jsxs(
|
2030
|
-
|
2048
|
+
be,
|
2031
2049
|
{
|
2032
2050
|
id: "suggestedDocs",
|
2033
2051
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2041,7 +2059,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2041
2059
|
children: [
|
2042
2060
|
N && /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptableUploadExamples" }),
|
2043
2061
|
/* @__PURE__ */ t.jsxs("ul", { className: "sid-acceptable-document-types", children: [
|
2044
|
-
(N ? Rt :
|
2062
|
+
(N ? Rt : Ca)(
|
2045
2063
|
m,
|
2046
2064
|
c
|
2047
2065
|
).map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)),
|
@@ -2067,7 +2085,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2067
2085
|
}
|
2068
2086
|
),
|
2069
2087
|
/* @__PURE__ */ t.jsxs(
|
2070
|
-
|
2088
|
+
be,
|
2071
2089
|
{
|
2072
2090
|
id: "whatHappensNext",
|
2073
2091
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2108,7 +2126,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2108
2126
|
}
|
2109
2127
|
),
|
2110
2128
|
/* @__PURE__ */ t.jsx(
|
2111
|
-
|
2129
|
+
be,
|
2112
2130
|
{
|
2113
2131
|
id: "canIFinishLater",
|
2114
2132
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2132,7 +2150,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2132
2150
|
{
|
2133
2151
|
href: "#",
|
2134
2152
|
className: "sid-link sid-override-link",
|
2135
|
-
onClick: () =>
|
2153
|
+
onClick: () => ue(),
|
2136
2154
|
role: "button",
|
2137
2155
|
children: /* @__PURE__ */ t.jsx(
|
2138
2156
|
h,
|
@@ -2148,7 +2166,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2148
2166
|
]
|
2149
2167
|
}
|
2150
2168
|
);
|
2151
|
-
},
|
2169
|
+
}, Xa = yt(qa);
|
2152
2170
|
export {
|
2153
|
-
|
2171
|
+
Xa as default
|
2154
2172
|
};
|