@sheerid/jslib-nightly 2.104.0-alpha.2 → 2.106.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 +18343 -16668
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{EmailLoopPending-Dzs07hxx.js → EmailLoopPending-Dtf0p85F.js} +18 -18
- package/chunk/{EmailLoopPending-CKTAwQQA.js.map → EmailLoopPending-Dtf0p85F.js.map} +1 -1
- package/chunk/{EmailLoopPending-CKTAwQQA.js → EmailLoopPending-Dy8mLFvV.js} +18 -18
- package/chunk/{EmailLoopPending-Dzs07hxx.js.map → EmailLoopPending-Dy8mLFvV.js.map} +1 -1
- package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +55 -0
- package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js.map +1 -0
- package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +51 -0
- package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js.map +1 -0
- package/chunk/{Onfido-CMH3IUna.js → Onfido-AyvUk6wg.js} +28 -28
- package/chunk/{Onfido-CMH3IUna.js.map → Onfido-AyvUk6wg.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-lChJAp_W.js → StepIDCheckLoopOnfido-CmNwFqjD.js} +13 -12
- package/chunk/{StepIDCheckLoopOnfido-C9iUX8TC.js.map → StepIDCheckLoopOnfido-CmNwFqjD.js.map} +1 -1
- package/{lib/StepIDCheckLoopOnfido-tTk18P23.js → chunk/StepIDCheckLoopOnfido-DtbplNxs.js} +26 -27
- package/chunk/{StepIDCheckLoopOnfido-lChJAp_W.js.map → StepIDCheckLoopOnfido-DtbplNxs.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-BB8xA4nn.js → StepIDCheckLoopRegula-RoX971sR.js} +59 -85
- package/chunk/StepIDCheckLoopRegula-RoX971sR.js.map +1 -0
- package/chunk/{StepIDCheckLoopRegula-D8XhToQz.js → StepIDCheckLoopRegula-oqf-QxHT.js} +59 -85
- package/chunk/StepIDCheckLoopRegula-oqf-QxHT.js.map +1 -0
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js → StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js} +48 -48
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js.map → StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.js → StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js} +48 -48
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.js.map → StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.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-DGGRPaEI.js → index-4APUDd8S.js} +27 -27
- package/chunk/{index-DGGRPaEI.js.map → index-4APUDd8S.js.map} +1 -1
- package/chunk/{index-BDsZCFuU.js → index-9OD0Bw98.js} +58 -58
- package/chunk/{index-D6oLMvTq.js.map → index-9OD0Bw98.js.map} +1 -1
- package/chunk/index-B-PpnUEO.js +52 -0
- package/chunk/index-B-PpnUEO.js.map +1 -0
- package/chunk/{index-BW4s6-PH.js → index-B8F8N-JM.js} +90 -89
- package/chunk/index-B8F8N-JM.js.map +1 -0
- package/chunk/{index-BGGHZBWq.js → index-B8KPM--K.js} +48 -56
- package/chunk/{index-BGGHZBWq.js.map → index-B8KPM--K.js.map} +1 -1
- package/chunk/{index-DhpucFa7.js → index-BD2bjH-C.js} +5 -5
- package/{lib/index-CZodZNg-.js.map → chunk/index-BD2bjH-C.js.map} +1 -1
- package/chunk/{index-Dba2dHcR.js → index-BD_a0MZT.js} +21 -21
- package/chunk/{index-DPv0lytr.js.map → index-BD_a0MZT.js.map} +1 -1
- package/chunk/{index-DnCqjuSC.js → index-BDrKYann.js} +26 -26
- package/chunk/{index-DnCqjuSC.js.map → index-BDrKYann.js.map} +1 -1
- package/chunk/{index-CblWzXDU.js → index-BTR4RdFx.js} +22 -22
- package/chunk/{index-UGfD9tnj.js.map → index-BTR4RdFx.js.map} +1 -1
- package/chunk/{index-Bld-AWYE.js → index-Bi9QXN5x.js} +13 -13
- package/chunk/{index-CZjGTko2.js.map → index-Bi9QXN5x.js.map} +1 -1
- package/chunk/{index-B1579hxf.js → index-Bmq6cJ3F.js} +26 -26
- package/{lib/index-qTuKj59y.js.map → chunk/index-Bmq6cJ3F.js.map} +1 -1
- package/chunk/{index-DPv0lytr.js → index-BpZoH-Wz.js} +21 -21
- package/chunk/{index-Dba2dHcR.js.map → index-BpZoH-Wz.js.map} +1 -1
- package/chunk/{index-BjaCS2a8.js → index-BuX76GyE.js} +34 -34
- package/{lib/index-BF3H-Cda.js.map → chunk/index-BuX76GyE.js.map} +1 -1
- package/chunk/{index-CfUabHav.js → index-C2h0Wj84.js} +48 -56
- package/chunk/{index-CfUabHav.js.map → index-C2h0Wj84.js.map} +1 -1
- package/chunk/{index-B5okgMmp.js → index-C8MQD8EK.js} +27 -27
- package/chunk/{index-B5okgMmp.js.map → index-C8MQD8EK.js.map} +1 -1
- package/chunk/{index-CCUi9Uhw.js → index-C8u9IJUa.js} +11 -11
- package/chunk/{index-CCUi9Uhw.js.map → index-C8u9IJUa.js.map} +1 -1
- package/chunk/{index-D7O7vvSe.js → index-C96ntS0u.js} +26 -26
- package/chunk/{index-B1579hxf.js.map → index-C96ntS0u.js.map} +1 -1
- package/chunk/{index-DCKw4cP_.js → index-CG2W8lDZ.js} +42 -42
- package/chunk/{index-DCKw4cP_.js.map → index-CG2W8lDZ.js.map} +1 -1
- package/chunk/index-CHK5i4jj.js +48 -0
- package/chunk/index-CHK5i4jj.js.map +1 -0
- package/chunk/{index-DSrYVtDo.js → index-CTb96lOK.js} +10 -10
- package/chunk/{index-DSrYVtDo.js.map → index-CTb96lOK.js.map} +1 -1
- package/chunk/{index-Cq__fToG.js → index-CcRowarb.js} +5 -5
- package/chunk/{index-Cq__fToG.js.map → index-CcRowarb.js.map} +1 -1
- package/chunk/{index-BnPrfsM1.js → index-CeHu2Npu.js} +7 -7
- package/chunk/{index-BnPrfsM1.js.map → index-CeHu2Npu.js.map} +1 -1
- package/chunk/{index-UGfD9tnj.js → index-CepZL7Cr.js} +22 -22
- package/chunk/{index-CblWzXDU.js.map → index-CepZL7Cr.js.map} +1 -1
- package/chunk/{index-BvGP9l7M.js → index-CniY_P3e.js} +219 -237
- package/chunk/index-CniY_P3e.js.map +1 -0
- package/chunk/{index-Bb9hNLHu.js → index-DDyTUP55.js} +42 -42
- package/chunk/{index-Bb9hNLHu.js.map → index-DDyTUP55.js.map} +1 -1
- package/chunk/index-DIkWpujR.js +4 -4
- package/chunk/index-DIkWpujR.js.map +1 -1
- package/chunk/{index-D6oLMvTq.js → index-DKWjcFJK.js} +58 -58
- package/chunk/{index-BDsZCFuU.js.map → index-DKWjcFJK.js.map} +1 -1
- package/chunk/{index-B4B6qxaM.js → index-DLz31Fzh.js} +11 -11
- package/chunk/{index-BYMr8It7.js.map → index-DLz31Fzh.js.map} +1 -1
- package/chunk/{index-B8tKf2Rd.js → index-DO5Z3e-E.js} +34 -34
- package/chunk/{index-B8tKf2Rd.js.map → index-DO5Z3e-E.js.map} +1 -1
- package/chunk/{index-CjcHzfTY.js → index-DRlGAW07.js} +11 -11
- package/chunk/{index-CjcHzfTY.js.map → index-DRlGAW07.js.map} +1 -1
- package/chunk/{index-YmkMflXj.js → index-DVynViqA.js} +7 -7
- package/chunk/{index-YmkMflXj.js.map → index-DVynViqA.js.map} +1 -1
- package/chunk/{index-B92Kfyw6.js → index-Dg8t7-dm.js} +90 -89
- package/chunk/index-Dg8t7-dm.js.map +1 -0
- package/chunk/{index-DpYUZXus.js → index-DhGg9lvf.js} +26 -26
- package/chunk/{index-DpYUZXus.js.map → index-DhGg9lvf.js.map} +1 -1
- package/chunk/{index-QVvWIHrD.js → index-DtH8Qo7N.js} +51 -51
- package/chunk/{index-DFsuXQL_.js.map → index-DtH8Qo7N.js.map} +1 -1
- package/chunk/{index-BYMr8It7.js → index-DzqRsB7_.js} +11 -11
- package/chunk/{index-B4B6qxaM.js.map → index-DzqRsB7_.js.map} +1 -1
- package/chunk/{index-CEi_QkyI.js → index-FfXcSdRM.js} +219 -237
- package/chunk/index-FfXcSdRM.js.map +1 -0
- package/chunk/{index-CZjGTko2.js → index-FjzhfDlx.js} +13 -13
- package/chunk/{index-Bld-AWYE.js.map → index-FjzhfDlx.js.map} +1 -1
- package/chunk/{index-Cp0C-9fh.js → index-Gfy-1H7s.js} +10 -10
- package/{lib/index-QQE4f5yZ.js.map → chunk/index-Gfy-1H7s.js.map} +1 -1
- package/chunk/{index-DFsuXQL_.js → index-jFznw2e5.js} +51 -51
- package/chunk/{index-QVvWIHrD.js.map → index-jFznw2e5.js.map} +1 -1
- package/chunk/is-CUuXi4qZ.js +4 -4
- package/chunk/it-BNmynTsg.js +4 -4
- package/chunk/iw-FGzquR_X.js +4 -4
- package/chunk/ja-YgUpXA0l.js +4 -4
- package/chunk/ko-CuNS5J_M.js +4 -4
- package/chunk/lo-BEf8aFjR.js +4 -4
- package/chunk/lt-DvX1gz1a.js +4 -4
- package/chunk/ms-gSqM-Mfi.js +4 -4
- package/chunk/nl-BE-Cid5LFlN.js +4 -4
- package/chunk/nl-CUUTswxa.js +4 -4
- package/chunk/no-BvUqlShV.js +4 -4
- package/chunk/pl-CU8leZhI.js +4 -4
- package/chunk/pt-BR-CboWpHFi.js +4 -4
- package/chunk/pt-BnK7xRT_.js +4 -4
- package/chunk/ro-BfAyXxSW.js +4 -4
- package/chunk/ru-BD-YGPuQ.js +4 -4
- package/chunk/sk-CqsabpdG.js +4 -4
- package/chunk/sl-CeVAf0S_.js +4 -4
- package/chunk/sr-DSaHxcCQ.js +4 -4
- package/chunk/sv-DOyWYViy.js +4 -4
- package/chunk/sw-2Q7Jo6wp.js +4 -4
- package/chunk/th-BZ6F9sPf.js +4 -4
- package/chunk/tr-om80xrv2.js +4 -4
- package/chunk/uk-Dxugux8e.js +4 -4
- package/chunk/ur-OBILUeZ7.js +4 -4
- package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js +4 -4
- package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js.map +1 -1
- package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js +4 -4
- package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js.map +1 -1
- package/chunk/{useEmailFirstExperiment-CSa3DQll.js → useEmailFirstExperiment-BbDrKQEs.js} +29 -30
- package/chunk/{useEmailFirstExperiment-CSa3DQll.js.map → useEmailFirstExperiment-BbDrKQEs.js.map} +1 -1
- package/chunk/{useEmailFirstExperiment-DZ1B78ke.js → useEmailFirstExperiment-CgU-itQI.js} +29 -30
- package/chunk/{useEmailFirstExperiment-DZ1B78ke.js.map → useEmailFirstExperiment-CgU-itQI.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-9TIqOjh0.js → EmailLoopPending-DHyoi6Bo.js} +12 -12
- package/lib/{EmailLoopPending-9TIqOjh0.js.map → EmailLoopPending-DHyoi6Bo.js.map} +1 -1
- package/lib/LicensedProfessionalOrganizationComponent-DKJY8_Bo.js +52 -0
- package/lib/LicensedProfessionalOrganizationComponent-DKJY8_Bo.js.map +1 -0
- package/lib/{Onfido-CMH3IUna.js → Onfido-AyvUk6wg.js} +28 -28
- package/lib/{Onfido-CMH3IUna.js.map → Onfido-AyvUk6wg.js.map} +1 -1
- package/lib/StepCollectMilitaryStatusComponent-C3-_M61B.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-D9AxEZrO.js.map → StepCollectMilitaryStatusComponent-C3-_M61B.js.map} +1 -1
- package/{chunk/StepIDCheckLoopOnfido-C9iUX8TC.js → lib/StepIDCheckLoopOnfido-mkqkDAc7.js} +13 -11
- package/lib/{StepIDCheckLoopOnfido-tTk18P23.js.map → StepIDCheckLoopOnfido-mkqkDAc7.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-BzHh3YEv.js → StepIDCheckLoopRegula-8i7ukSzj.js} +22 -21
- package/lib/StepIDCheckLoopRegula-8i7ukSzj.js.map +1 -0
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-DCgIcHvZ.js → StepInactiveMilitaryPersonalInfoComponent-C5mr8-zz.js} +45 -45
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-DCgIcHvZ.js.map → StepInactiveMilitaryPersonalInfoComponent-C5mr8-zz.js.map} +1 -1
- package/lib/VerificationApiUtils-DblEVBsu.js +23 -0
- package/lib/{VerificationApiUtils-hb7EqMfE.js.map → VerificationApiUtils-DblEVBsu.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-C6MdgCMX.js → es6-Bax-ZIK1.js} +13137 -11845
- package/lib/es6-Bax-ZIK1.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-B9-1tzv2.js +28 -0
- package/lib/{index-BplQ7imw.js.map → index-B9-1tzv2.js.map} +1 -1
- package/lib/{index-QQE4f5yZ.js → index-BYh8hnmi.js} +8 -8
- package/{chunk/index-Cp0C-9fh.js.map → lib/index-BYh8hnmi.js.map} +1 -1
- package/lib/{index-B0q6ScmE.js → index-Bor8xQwD.js} +27 -27
- package/lib/{index-B0q6ScmE.js.map → index-Bor8xQwD.js.map} +1 -1
- package/lib/{index-qTuKj59y.js → index-By8PwRxR.js} +34 -34
- package/{chunk/index-D7O7vvSe.js.map → lib/index-By8PwRxR.js.map} +1 -1
- package/lib/{index-vHwl9Ouo.js → index-C0t3HeI1.js} +30 -30
- package/lib/{index-vHwl9Ouo.js.map → index-C0t3HeI1.js.map} +1 -1
- package/lib/index-C1FdZaTA.js +11 -0
- package/lib/index-C1FdZaTA.js.map +1 -0
- package/lib/index-CEI7rrAW.js +11 -0
- package/lib/index-CEI7rrAW.js.map +1 -0
- package/lib/{index-BJIfbxEt.js → index-CFmLOU-H.js} +9 -9
- package/lib/{index-BJIfbxEt.js.map → index-CFmLOU-H.js.map} +1 -1
- package/lib/{index-B4tPRnWs.js → index-CFof6_XO.js} +76 -75
- package/lib/index-CFof6_XO.js.map +1 -0
- package/lib/{index-CZodZNg-.js → index-CW1HjY48.js} +5 -5
- package/{chunk/index-DhpucFa7.js.map → lib/index-CW1HjY48.js.map} +1 -1
- package/lib/{index-DyBgfOX7.js → index-Cc79lE_w.js} +385 -402
- package/lib/index-Cc79lE_w.js.map +1 -0
- package/lib/{index-BF3H-Cda.js → index-CtBDD9Ra.js} +24 -24
- package/{chunk/index-BjaCS2a8.js.map → lib/index-CtBDD9Ra.js.map} +1 -1
- package/lib/{index-D4eERCAu.js → index-D5WHNimv.js} +5 -5
- package/lib/{index-D4eERCAu.js.map → index-D5WHNimv.js.map} +1 -1
- package/lib/{index-cfFxpmJ0.js → index-D8RA_3zM.js} +5 -5
- package/lib/{index-cfFxpmJ0.js.map → index-D8RA_3zM.js.map} +1 -1
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/index-DIkWpujR.js.map +1 -1
- package/lib/{index-Cp36Pcoi.js → index-DNy9MAMH.js} +22 -22
- package/lib/{index-Cp36Pcoi.js.map → index-DNy9MAMH.js.map} +1 -1
- package/lib/index-DY02gOyn.js +11 -0
- package/lib/index-DY02gOyn.js.map +1 -0
- package/lib/{index-CZjkIENw.js → index-Dr1CSaxo.js} +49 -49
- package/lib/{index-CZjkIENw.js.map → index-Dr1CSaxo.js.map} +1 -1
- package/lib/{index-BpszpgeX.js → index-DsOGDkYS.js} +26 -26
- package/lib/{index-BpszpgeX.js.map → index-DsOGDkYS.js.map} +1 -1
- package/lib/{index-uG_slt2C.js → index-DxDA2pF0.js} +7 -7
- package/lib/{index-uG_slt2C.js.map → index-DxDA2pF0.js.map} +1 -1
- package/lib/index-VwmdVgfA.js +11 -0
- package/lib/index-VwmdVgfA.js.map +1 -0
- package/lib/{index-DKrXU7hs.js → index-cY-LRN6y.js} +24 -24
- package/lib/{index-DKrXU7hs.js.map → index-cY-LRN6y.js.map} +1 -1
- package/lib/{index-A2uleoGr.js → index-rFJ4gEYd.js} +58 -58
- package/lib/{index-A2uleoGr.js.map → index-rFJ4gEYd.js.map} +1 -1
- package/lib/{index-N-dolDtu.js → index-sDIVnQkX.js} +26 -26
- package/lib/{index-N-dolDtu.js.map → index-sDIVnQkX.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-wNz5nMBP.js → useCollectFieldsEndpoint-CHeRlgj7.js} +8 -8
- package/lib/{useCollectFieldsEndpoint-wNz5nMBP.js.map → useCollectFieldsEndpoint-CHeRlgj7.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-Bk3uBcKy.js → useEmailFirstExperiment-DFQvJdHp.js} +6 -7
- package/lib/{useEmailFirstExperiment-Bk3uBcKy.js.map → useEmailFirstExperiment-DFQvJdHp.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 +18542 -16867
- package/sheerid.js.map +1 -1
- package/src/components/AcceptableUploadsComponent/AcceptableUploadsComponent.d.ts +1 -1
- package/src/components/AcceptableUploadsComponent/getLegacyAcceptableUploads.d.ts +1 -1
- package/src/components/Button/Button.d.ts +1 -0
- package/src/components/CopyToClipboard/CopyToClipboardComponent.d.ts +2 -1
- package/src/components/CustomCssContext/CustomCssContextProvider.d.ts +1 -1
- package/src/components/DateComponent/DateComponent.d.ts +2 -2
- package/src/components/ExtraMessage.d.ts +1 -1
- package/src/components/FaqLink/FaqLinkComponent.d.ts +1 -1
- package/src/components/FeatureFlags/ExperimentComponent/ExperimentComponent.d.ts +4 -4
- package/src/components/FetchOrganizationsComponent.d.ts +1 -1
- package/src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.d.ts +1 -1
- package/src/components/FormFields/Address/AddressComponent.d.ts +2 -2
- package/src/components/FormFields/BirthDate/BirthDateComponent.d.ts +1 -1
- package/src/components/FormFields/BranchOfService/BranchOfServiceComponent.d.ts +2 -2
- package/src/components/FormFields/CVECNumber/CVECNumberComponent.d.ts +2 -2
- package/src/components/FormFields/ChangeLocale/ChangeLocaleComponent.d.ts +3 -3
- package/src/components/FormFields/City/City.d.ts +2 -2
- package/src/components/FormFields/CollegeName/CollegeNameComponent.d.ts +2 -2
- package/src/components/FormFields/Company/CompanyComponent.d.ts +2 -2
- package/src/components/FormFields/Country/CountryComponent.d.ts +2 -2
- package/src/components/FormFields/Country/CountryComponentWrapper.d.ts +2 -2
- package/src/components/FormFields/DischargeDate/DischargeDateComponent.d.ts +1 -1
- package/src/components/FormFields/DriverLicenseNumber/DriverLicenseNumberComponent.d.ts +2 -2
- package/src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.d.ts +2 -2
- package/src/components/FormFields/Email/EmailComponent.d.ts +2 -2
- package/src/components/FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent.d.ts +1 -1
- package/src/components/FormFields/EmailFirstCollectInfo/useEmailFirstExperiment.d.ts +1 -1
- package/src/components/FormFields/FirstName/FirstNameComponent.d.ts +2 -2
- package/src/components/FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent.d.ts +2 -2
- package/src/components/FormFields/FormFieldCustom/FormFieldCustom.d.ts +2 -2
- package/src/components/FormFields/FormFieldInputSelect/FormFieldInputSelect.d.ts +1 -1
- package/src/components/FormFields/FormFieldRadio/FormFieldRadio.d.ts +2 -2
- package/src/components/FormFields/FormFieldSelect/FormFieldSelect.d.ts +2 -2
- package/src/components/FormFields/FormFieldText/FormFieldText.d.ts +1 -1
- package/src/components/FormFields/FormFieldTypeahead/FormFieldTypeahead.d.ts +2 -2
- package/src/components/FormFields/LastName/LastNameComponent.d.ts +2 -2
- package/src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.d.ts +2 -2
- package/src/components/FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent.d.ts +2 -2
- package/src/components/FormFields/MarketConsentWrapper/MarketConsentWrapperComponent.d.ts +1 -1
- package/src/components/FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent.d.ts +2 -2
- package/src/components/FormFields/MemberId/MemberIdComponent.d.ts +2 -2
- package/src/components/FormFields/MembershipOrganization/MembershipOrganizationComponent.d.ts +2 -2
- package/src/components/FormFields/OptIn/OptInComponent.d.ts +1 -1
- package/src/components/FormFields/OverrideCode/OverrideCodeComponent.d.ts +2 -2
- package/src/components/FormFields/PhoneNumber/PhoneNumberComponent.d.ts +2 -2
- package/src/components/FormFields/PostalCode/PostalCodeComponent.d.ts +2 -2
- package/src/components/FormFields/SMSCode/SMSCodeComponent.d.ts +2 -2
- package/src/components/FormFields/SSN/SSN.d.ts +2 -2
- package/src/components/FormFields/State/State.d.ts +2 -2
- package/src/components/FormFields/State/StateSelectComponent.d.ts +2 -2
- package/src/components/FormFields/Status/StatusComponent.d.ts +2 -2
- package/src/components/FormFields/TeacherSchool/TeacherSchoolComponent.d.ts +2 -2
- package/src/components/FormFooter/FooterTextComponent.d.ts +1 -1
- package/src/components/FormFooter/FormFooterComponent.d.ts +1 -1
- package/src/components/FormHeader/FormHeaderComponent.d.ts +1 -1
- package/src/components/FormHeader/StepHeaders/PersonalInfoHeaderComponent.d.ts +1 -1
- package/src/components/FormInputs/InputRadio/InputRadio.d.ts +1 -1
- package/src/components/FormInputs/InputSelect/InputSelectComponent.d.ts +1 -1
- package/src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.d.ts +1 -1
- package/src/components/FormInputs/PostalCodeInput/PostalCodeInputComponent.d.ts +1 -1
- package/src/components/FormInputs/Select/SelectComponent.d.ts +1 -1
- package/src/components/FormInputs/Select/SelectList/SelectListComponent.d.ts +1 -1
- package/src/components/FormInputs/Typeahead/TypeaheadComponent.d.ts +1 -1
- package/src/components/FormInputs/Typeahead/TypeaheadComponentHelper.d.ts +1 -1
- package/src/components/HowDoesVerifyingWork/HowDoesVerifyingWorkComponent.d.ts +1 -1
- package/src/components/Layout/Layout.d.ts +1 -1
- package/src/components/LoadStepComponent.d.ts +1 -1
- package/src/components/LoadingScreen/LoadingScreenComponent.d.ts +1 -1
- package/src/components/LoadingScreen/LoadingScreenMessage.d.ts +1 -1
- package/src/components/LogoComponent/LogoComponent.d.ts +1 -1
- package/src/components/NewVerificationComponent.d.ts +3 -3
- package/src/components/NewVerificationInnerComponent.d.ts +1 -1
- package/src/components/OrganizationList/OrganizationListComponent.d.ts +1 -1
- package/src/components/PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton.d.ts +2 -2
- package/src/components/PersonalInfoStepWrapper/PersonalInfoStepWrapper.d.ts +2 -1
- package/src/components/PoweredBy/PoweredByComponent.d.ts +1 -1
- package/src/components/PrivacyPolicyLink/PrivacyPolicyLinkComponent.d.ts +2 -2
- package/src/components/RewardsRemaining/RewardsRemainingComponent.d.ts +1 -1
- package/src/components/SingleSignOnComponent.d.ts +2 -2
- package/src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.d.ts +2 -2
- package/src/components/StepCollectIdentifier/StepCollectIdentifierComponent.d.ts +1 -1
- package/src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.d.ts +2 -2
- package/src/components/StepConsolation/StepConsolationComponent.d.ts +1 -1
- package/src/components/StepDocUpload/StepDocUploadComponent.d.ts +1 -1
- package/src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.d.ts +1 -1
- package/src/components/StepEmailLoop/EmailLoopPending.d.ts +1 -1
- package/src/components/StepEmailLoop/StepEmailLoopComponent.d.ts +2 -2
- package/src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepError/StepErrorComponent.d.ts +2 -2
- package/src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopOnfidoFooter.d.ts +1 -1
- package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopRegulaFooter.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Onfido/IdCheckLoopOnfido/IdCheckLoopOnfido.d.ts +2 -2
- package/src/components/StepIDCheckLoop/Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Onfido/utils/getAndFormatOrderedStepCards.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/DisplayThumbnail.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/IdCheckLoopRegula.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Regula/StepIDCheckLoopRegulaComponent/StepIDCheckLoopRegula.d.ts +1 -1
- package/src/components/StepIDCheckLoop/StepIDCheckLoopComponent.d.ts +1 -1
- package/src/components/StepIdentityPersonalInfo/StepDriverLicensePersonalInfoComponent.d.ts +1 -1
- package/src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepIdentityPersonalInfo/StepHybridIdentityPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.d.ts +1 -1
- package/src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepMilitaryPersonalInfo/StepInactiveMilitaryPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepOverrideComponent/StepOverrideComponent.d.ts +2 -2
- package/src/components/StepPending/ReviewPendingComponent.d.ts +1 -1
- package/src/components/StepPending/SingleSignOnPendingComponent.d.ts +2 -2
- package/src/components/StepPending/StepPendingComponent.d.ts +1 -1
- package/src/components/StepPending/ThirdPartyLoopPendingComponent.d.ts +1 -1
- package/src/components/StepSMSLoop/StepSMSLoopComponent.d.ts +2 -2
- package/src/components/StepSSO/StepSSOComponent.d.ts +1 -1
- package/src/components/StepSeniorPersonalInfo/StepSeniorPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.d.ts +1 -1
- package/src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepSuccess/StepSuccessComponent.d.ts +1 -1
- package/src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepThirdPartyLoop/StepThirdPartyLoopComponent.d.ts +3 -3
- package/src/components/TestModeFlag/TestModeFlagComponent.d.ts +1 -1
- package/src/components/UploadInfoComponent/UploadInfoComponent.d.ts +1 -1
- package/src/components/VerificationForm/VerificationFormComponent.d.ts +1 -1
- package/src/es5Bindings/VerificationFormEs5.d.ts +1 -1
- package/src/lib/ProgramTheme/programThemeGetters.d.ts +1 -1
- package/src/lib/ServerApi/ApiUrls.d.ts +1 -1
- package/src/lib/ServerApi/VerificationApiClient.d.ts +1 -1
- package/src/lib/ServerApi/VerificationHelpRequestApi.d.ts +1 -1
- package/src/lib/VerificationService/VerificationServiceActions.d.ts +1 -1
- package/src/lib/hooks/index.d.ts +1 -1
- package/src/lib/installScript/_mysheerid-preview.d.ts +2 -2
- package/src/lib/installScript/affinity.d.ts +1 -1
- package/src/lib/installScript/iframe.d.ts +1 -1
- package/src/lib/installScript/index.d.ts +3 -3
- package/src/lib/installScript/modal.d.ts +1 -1
- package/src/lib/state/contextHooks.d.ts +1 -1
- package/src/lib/types/runtimeTypes.d.ts +1 -1
- package/src/lib/types/types.d.ts +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-BNNNPaDn.js +0 -45
- package/chunk/LicensedProfessionalOrganizationComponent-BNNNPaDn.js.map +0 -1
- package/chunk/LicensedProfessionalOrganizationComponent-trZr_eIW.js +0 -49
- package/chunk/LicensedProfessionalOrganizationComponent-trZr_eIW.js.map +0 -1
- package/chunk/StepIDCheckLoopRegula-BB8xA4nn.js.map +0 -1
- package/chunk/StepIDCheckLoopRegula-D8XhToQz.js.map +0 -1
- package/chunk/index-B92Kfyw6.js.map +0 -1
- package/chunk/index-BW4s6-PH.js.map +0 -1
- package/chunk/index-BupTUiiS.js +0 -27
- package/chunk/index-BupTUiiS.js.map +0 -1
- package/chunk/index-BvGP9l7M.js.map +0 -1
- package/chunk/index-CEi_QkyI.js.map +0 -1
- package/chunk/index-iZ8pO5if.js +0 -31
- package/chunk/index-iZ8pO5if.js.map +0 -1
- package/lib/LicensedProfessionalOrganizationComponent-BdlRIkjK.js +0 -46
- package/lib/LicensedProfessionalOrganizationComponent-BdlRIkjK.js.map +0 -1
- package/lib/StepCollectMilitaryStatusComponent-D9AxEZrO.js +0 -11
- package/lib/StepIDCheckLoopRegula-BzHh3YEv.js.map +0 -1
- package/lib/VerificationApiUtils-hb7EqMfE.js +0 -21
- package/lib/es6-C6MdgCMX.js.map +0 -1
- package/lib/index-B4tPRnWs.js.map +0 -1
- package/lib/index-BplQ7imw.js +0 -28
- package/lib/index-BvlWWXiT.js +0 -11
- package/lib/index-BvlWWXiT.js.map +0 -1
- package/lib/index-CJvrsSXZ.js +0 -11
- package/lib/index-CJvrsSXZ.js.map +0 -1
- package/lib/index-DLUpqP9u.js +0 -11
- package/lib/index-DLUpqP9u.js.map +0 -1
- package/lib/index-DyBgfOX7.js.map +0 -1
- package/lib/index-wzVNqFMX.js +0 -11
- package/lib/index-wzVNqFMX.js.map +0 -1
@@ -4,25 +4,24 @@
|
|
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:
|
10
|
-
* BUILD_COMMIT:
|
7
|
+
* VERSION: 2.106.0-alpha.0
|
8
|
+
* BUILD_TIMESTAMP: 1746221803457
|
9
|
+
* BUILD_DATE: Fri May 02 2025 21:36:43 GMT+0000 (Coordinated Universal Time)
|
10
|
+
* BUILD_COMMIT: 9044dfe474729d087a9b0854f585172ebebac94e
|
11
11
|
*/
|
12
|
-
import { m as
|
13
|
-
|
14
|
-
const Mt = (e, a, o) => ye(e, (r) => {
|
12
|
+
import { m as Ie, aU as Pe, aV as q, aW as Z, aX as gt, s as f, R as xt, aY as g, j as t, aZ as n, aL as u, b as h, i as bt, ai as Ce, as as yt, aH as It, a_ as Et, d as vt, a$ as ze, L as Ut, A as jt, b0 as Dt, af as _t, J as At, b1 as Rt, b2 as wt, b3 as Ft, k as Nt, l as Oe, V as xe, ah as Ct, b4 as Ot, b5 as Tt, b6 as St } from "../_mysheerid-preview.js";
|
13
|
+
const Lt = (e, a, o) => Ie(e, (r) => {
|
15
14
|
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;
|
16
|
-
}),
|
15
|
+
}), Mt = (e, a) => {
|
17
16
|
if (![1, 2, 3].includes(a))
|
18
17
|
throw new Error(
|
19
18
|
`Expected either 1, 2 or 3 for argument "fileNumber", but received ${a}`
|
20
19
|
);
|
21
|
-
return
|
20
|
+
return Ie(e, (o) => {
|
22
21
|
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);
|
23
22
|
});
|
24
23
|
};
|
25
|
-
var
|
24
|
+
var kt = /* @__PURE__ */ new Map([
|
26
25
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
27
26
|
["aac", "audio/aac"],
|
28
27
|
["abw", "application/x-abiword"],
|
@@ -105,7 +104,7 @@ var Pt = /* @__PURE__ */ new Map([
|
|
105
104
|
["msg", "application/vnd.ms-outlook"]
|
106
105
|
]);
|
107
106
|
function ne(e, a) {
|
108
|
-
var o =
|
107
|
+
var o = Pt(e);
|
109
108
|
if (typeof o.path != "string") {
|
110
109
|
var r = e.webkitRelativePath;
|
111
110
|
Object.defineProperty(o, "path", {
|
@@ -117,10 +116,10 @@ function ne(e, a) {
|
|
117
116
|
}
|
118
117
|
return o;
|
119
118
|
}
|
120
|
-
function
|
119
|
+
function Pt(e) {
|
121
120
|
var a = e.name, o = a && a.lastIndexOf(".") !== -1;
|
122
121
|
if (o && !e.type) {
|
123
|
-
var r = a.split(".").pop().toLowerCase(), s =
|
122
|
+
var r = a.split(".").pop().toLowerCase(), s = kt.get(r);
|
124
123
|
s && Object.defineProperty(e, "type", {
|
125
124
|
value: s,
|
126
125
|
writable: !1,
|
@@ -130,36 +129,36 @@ function Bt(e) {
|
|
130
129
|
}
|
131
130
|
return e;
|
132
131
|
}
|
133
|
-
var
|
132
|
+
var Bt = [
|
134
133
|
// Thumbnail cache files for macOS and Windows
|
135
134
|
".DS_Store",
|
136
135
|
"Thumbs.db"
|
137
136
|
// Windows
|
138
137
|
];
|
139
|
-
function
|
138
|
+
function Yt(e) {
|
140
139
|
return q(this, void 0, void 0, function() {
|
141
140
|
return Z(this, function(a) {
|
142
|
-
return
|
141
|
+
return Ee(e) && Ht(e) ? [2, Gt(e.dataTransfer, e.type)] : zt(e) ? [2, Vt(e)] : Array.isArray(e) && e.every(function(o) {
|
143
142
|
return "getFile" in o && typeof o.getFile == "function";
|
144
|
-
}) ? [2,
|
143
|
+
}) ? [2, Wt(e)] : [2, []];
|
145
144
|
});
|
146
145
|
});
|
147
146
|
}
|
148
|
-
function
|
149
|
-
return
|
147
|
+
function Ht(e) {
|
148
|
+
return Ee(e.dataTransfer);
|
150
149
|
}
|
151
|
-
function
|
152
|
-
return
|
150
|
+
function zt(e) {
|
151
|
+
return Ee(e) && Ee(e.target);
|
153
152
|
}
|
154
|
-
function
|
153
|
+
function Ee(e) {
|
155
154
|
return typeof e == "object" && e !== null;
|
156
155
|
}
|
157
|
-
function
|
156
|
+
function Vt(e) {
|
158
157
|
return Se(e.target.files).map(function(a) {
|
159
158
|
return ne(a);
|
160
159
|
});
|
161
160
|
}
|
162
|
-
function
|
161
|
+
function Wt(e) {
|
163
162
|
return q(this, void 0, void 0, function() {
|
164
163
|
var a;
|
165
164
|
return Z(this, function(o) {
|
@@ -176,7 +175,7 @@ function Gt(e) {
|
|
176
175
|
});
|
177
176
|
});
|
178
177
|
}
|
179
|
-
function
|
178
|
+
function Gt(e, a) {
|
180
179
|
return q(this, void 0, void 0, function() {
|
181
180
|
var o, r;
|
182
181
|
return Z(this, function(s) {
|
@@ -184,7 +183,7 @@ function $t(e, a) {
|
|
184
183
|
case 0:
|
185
184
|
return e === null ? [2, []] : e.items ? (o = Se(e.items).filter(function(d) {
|
186
185
|
return d.kind === "file";
|
187
|
-
}), a !== "drop" ? [2, o] : [4, Promise.all(o.map(
|
186
|
+
}), a !== "drop" ? [2, o] : [4, Promise.all(o.map($t))]) : [3, 2];
|
188
187
|
case 1:
|
189
188
|
return r = s.sent(), [2, Ve(rt(r))];
|
190
189
|
case 2:
|
@@ -197,7 +196,7 @@ function $t(e, a) {
|
|
197
196
|
}
|
198
197
|
function Ve(e) {
|
199
198
|
return e.filter(function(a) {
|
200
|
-
return
|
199
|
+
return Bt.indexOf(a.name) === -1;
|
201
200
|
});
|
202
201
|
}
|
203
202
|
function Se(e) {
|
@@ -209,7 +208,7 @@ function Se(e) {
|
|
209
208
|
}
|
210
209
|
return a;
|
211
210
|
}
|
212
|
-
function
|
211
|
+
function $t(e) {
|
213
212
|
if (typeof e.webkitGetAsEntry != "function")
|
214
213
|
return We(e);
|
215
214
|
var a = e.webkitGetAsEntry();
|
@@ -217,7 +216,7 @@ function Kt(e) {
|
|
217
216
|
}
|
218
217
|
function rt(e) {
|
219
218
|
return e.reduce(function(a, o) {
|
220
|
-
return
|
219
|
+
return gt(a, Array.isArray(o) ? rt(o) : [o]);
|
221
220
|
}, []);
|
222
221
|
}
|
223
222
|
function We(e) {
|
@@ -227,10 +226,10 @@ function We(e) {
|
|
227
226
|
var o = ne(a);
|
228
227
|
return Promise.resolve(o);
|
229
228
|
}
|
230
|
-
function
|
229
|
+
function Kt(e) {
|
231
230
|
return q(this, void 0, void 0, function() {
|
232
231
|
return Z(this, function(a) {
|
233
|
-
return [2, e.isDirectory ? nt(e) :
|
232
|
+
return [2, e.isDirectory ? nt(e) : qt(e)];
|
234
233
|
});
|
235
234
|
});
|
236
235
|
}
|
@@ -246,8 +245,7 @@ function nt(e) {
|
|
246
245
|
return Z(this, function(U) {
|
247
246
|
switch (U.label) {
|
248
247
|
case 0:
|
249
|
-
if (c.length)
|
250
|
-
return [3, 5];
|
248
|
+
if (c.length) return [3, 5];
|
251
249
|
U.label = 1;
|
252
250
|
case 1:
|
253
251
|
return U.trys.push([1, 3, , 4]), [4, Promise.all(s)];
|
@@ -258,7 +256,7 @@ function nt(e) {
|
|
258
256
|
case 4:
|
259
257
|
return [3, 6];
|
260
258
|
case 5:
|
261
|
-
R = Promise.all(c.map(
|
259
|
+
R = Promise.all(c.map(Kt)), s.push(R), d(), U.label = 6;
|
262
260
|
case 6:
|
263
261
|
return [
|
264
262
|
2
|
@@ -274,7 +272,7 @@ function nt(e) {
|
|
274
272
|
d();
|
275
273
|
});
|
276
274
|
}
|
277
|
-
function
|
275
|
+
function qt(e) {
|
278
276
|
return q(this, void 0, void 0, function() {
|
279
277
|
return Z(this, function(a) {
|
280
278
|
return [2, new Promise(function(o, r) {
|
@@ -288,9 +286,12 @@ function Zt(e) {
|
|
288
286
|
});
|
289
287
|
});
|
290
288
|
}
|
291
|
-
var
|
289
|
+
var Zt = function(e, a) {
|
292
290
|
if (e && a) {
|
293
|
-
var o = Array.isArray(a) ? a : a.split(",")
|
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(/\/.*$/, "");
|
294
295
|
return o.some(function(m) {
|
295
296
|
var c = m.trim().toLowerCase();
|
296
297
|
return c.charAt(0) === "." ? r.toLowerCase().endsWith(c) : c.endsWith("/*") ? d === c.replace(/\/.*$/, "") : s === c;
|
@@ -323,21 +324,18 @@ function st(e, a, o) {
|
|
323
324
|
return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
|
324
325
|
}
|
325
326
|
function Ke(e, a) {
|
326
|
-
return
|
327
|
+
return ea(e) || Jt(e, a) || Xt(e, a) || Qt();
|
327
328
|
}
|
328
|
-
function
|
329
|
+
function Qt() {
|
329
330
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
330
331
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
331
332
|
}
|
332
|
-
function
|
333
|
+
function Xt(e, a) {
|
333
334
|
if (e) {
|
334
|
-
if (typeof e == "string")
|
335
|
-
return qe(e, a);
|
335
|
+
if (typeof e == "string") 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
|
-
|
339
|
-
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))
|
340
|
-
return qe(e, a);
|
337
|
+
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
|
338
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return qe(e, a);
|
341
339
|
}
|
342
340
|
}
|
343
341
|
function qe(e, a) {
|
@@ -346,7 +344,7 @@ function qe(e, a) {
|
|
346
344
|
r[o] = e[o];
|
347
345
|
return r;
|
348
346
|
}
|
349
|
-
function
|
347
|
+
function Jt(e, a) {
|
350
348
|
var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
351
349
|
if (o != null) {
|
352
350
|
var r = [], s = !0, d = !1, m, c;
|
@@ -359,71 +357,65 @@ function ea(e, a) {
|
|
359
357
|
try {
|
360
358
|
!s && o.return != null && o.return();
|
361
359
|
} finally {
|
362
|
-
if (d)
|
363
|
-
throw c;
|
360
|
+
if (d) throw c;
|
364
361
|
}
|
365
362
|
}
|
366
363
|
return r;
|
367
364
|
}
|
368
365
|
}
|
369
|
-
function
|
370
|
-
if (Array.isArray(e))
|
371
|
-
return e;
|
366
|
+
function ea(e) {
|
367
|
+
if (Array.isArray(e)) return e;
|
372
368
|
}
|
373
|
-
var
|
369
|
+
var ta = "file-invalid-type", aa = "file-too-large", oa = "file-too-small", ra = "too-many-files", na = function(a) {
|
374
370
|
a = Array.isArray(a) && a.length === 1 ? a[0] : a;
|
375
371
|
var o = Array.isArray(a) ? "one of ".concat(a.join(", ")) : a;
|
376
372
|
return {
|
377
|
-
code:
|
373
|
+
code: ta,
|
378
374
|
message: "File type must be ".concat(o)
|
379
375
|
};
|
380
376
|
}, Ze = function(a) {
|
381
377
|
return {
|
382
|
-
code:
|
378
|
+
code: aa,
|
383
379
|
message: "File is larger than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
|
384
380
|
};
|
385
381
|
}, Qe = function(a) {
|
386
382
|
return {
|
387
|
-
code:
|
383
|
+
code: oa,
|
388
384
|
message: "File is smaller than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
|
389
385
|
};
|
390
|
-
},
|
391
|
-
code:
|
386
|
+
}, sa = {
|
387
|
+
code: ra,
|
392
388
|
message: "Too many files"
|
393
389
|
};
|
394
390
|
function it(e, a) {
|
395
|
-
var o = e.type === "application/x-moz-file" ||
|
396
|
-
return [o, o ? null :
|
391
|
+
var o = e.type === "application/x-moz-file" || Zt(e, a);
|
392
|
+
return [o, o ? null : na(a)];
|
397
393
|
}
|
398
394
|
function lt(e, a, o) {
|
399
395
|
if (re(e.size))
|
400
396
|
if (re(a) && re(o)) {
|
401
|
-
if (e.size > o)
|
402
|
-
|
403
|
-
if (e.size < a)
|
404
|
-
return [!1, Qe(a)];
|
397
|
+
if (e.size > o) return [!1, Ze(o)];
|
398
|
+
if (e.size < a) return [!1, Qe(a)];
|
405
399
|
} else {
|
406
|
-
if (re(a) && e.size < a)
|
407
|
-
|
408
|
-
if (re(o) && e.size > o)
|
409
|
-
return [!1, Ze(o)];
|
400
|
+
if (re(a) && e.size < a) return [!1, Qe(a)];
|
401
|
+
if (re(o) && e.size > o) return [!1, Ze(o)];
|
410
402
|
}
|
411
403
|
return [!0, null];
|
412
404
|
}
|
413
405
|
function re(e) {
|
414
406
|
return e != null;
|
415
407
|
}
|
416
|
-
function
|
408
|
+
function ia(e) {
|
417
409
|
var a = e.files, o = e.accept, r = e.minSize, s = e.maxSize, d = e.multiple, m = e.maxFiles;
|
418
410
|
return !d && a.length > 1 || d && m >= 1 && a.length > m ? !1 : a.every(function(c) {
|
419
411
|
var v = it(c, o), x = Ke(v, 1), R = x[0], U = lt(c, r, s), N = Ke(U, 1), w = N[0];
|
420
412
|
return R && w;
|
421
413
|
});
|
422
414
|
}
|
423
|
-
function
|
415
|
+
function ve(e) {
|
424
416
|
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
425
417
|
}
|
426
|
-
function
|
418
|
+
function be(e) {
|
427
419
|
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(a) {
|
428
420
|
return a === "Files" || a === "application/x-moz-file";
|
429
421
|
}) : !!e.target && !!e.target.files;
|
@@ -431,15 +423,15 @@ function xe(e) {
|
|
431
423
|
function Xe(e) {
|
432
424
|
e.preventDefault();
|
433
425
|
}
|
434
|
-
function
|
426
|
+
function la(e) {
|
435
427
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
436
428
|
}
|
437
|
-
function
|
429
|
+
function da(e) {
|
438
430
|
return e.indexOf("Edge/") !== -1;
|
439
431
|
}
|
440
|
-
function
|
432
|
+
function ca() {
|
441
433
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
442
|
-
return
|
434
|
+
return la(e) || da(e);
|
443
435
|
}
|
444
436
|
function S() {
|
445
437
|
for (var e = arguments.length, a = new Array(e), o = 0; o < e; o++)
|
@@ -448,14 +440,14 @@ function S() {
|
|
448
440
|
for (var s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), m = 1; m < s; m++)
|
449
441
|
d[m - 1] = arguments[m];
|
450
442
|
return a.some(function(c) {
|
451
|
-
return !
|
443
|
+
return !ve(r) && c && c.apply(void 0, [r].concat(d)), ve(r);
|
452
444
|
});
|
453
445
|
};
|
454
446
|
}
|
455
447
|
function Je() {
|
456
448
|
return "showOpenFilePicker" in window;
|
457
449
|
}
|
458
|
-
function
|
450
|
+
function pa(e) {
|
459
451
|
return e = typeof e == "string" ? e.split(",") : e, [{
|
460
452
|
description: "everything",
|
461
453
|
// TODO: Need to handle filtering more elegantly than this!
|
@@ -466,38 +458,33 @@ function ua(e) {
|
|
466
458
|
}, {}) : {}
|
467
459
|
}];
|
468
460
|
}
|
469
|
-
var
|
470
|
-
function
|
471
|
-
return
|
461
|
+
var ua = ["children"], fa = ["open"], ma = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], ha = ["refKey", "onChange", "onClick"];
|
462
|
+
function ga(e) {
|
463
|
+
return ya(e) || ba(e) || dt(e) || xa();
|
472
464
|
}
|
473
|
-
function
|
465
|
+
function xa() {
|
474
466
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
475
467
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
476
468
|
}
|
477
|
-
function
|
478
|
-
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
|
479
|
-
return Array.from(e);
|
469
|
+
function ba(e) {
|
470
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
480
471
|
}
|
481
|
-
function
|
482
|
-
if (Array.isArray(e))
|
483
|
-
return Le(e);
|
472
|
+
function ya(e) {
|
473
|
+
if (Array.isArray(e)) return Le(e);
|
484
474
|
}
|
485
475
|
function Te(e, a) {
|
486
|
-
return
|
476
|
+
return va(e) || Ea(e, a) || dt(e, a) || Ia();
|
487
477
|
}
|
488
|
-
function
|
478
|
+
function Ia() {
|
489
479
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
490
480
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
491
481
|
}
|
492
482
|
function dt(e, a) {
|
493
483
|
if (e) {
|
494
|
-
if (typeof e == "string")
|
495
|
-
return Le(e, a);
|
484
|
+
if (typeof e == "string") return Le(e, a);
|
496
485
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
497
|
-
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set")
|
498
|
-
|
499
|
-
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))
|
500
|
-
return Le(e, a);
|
486
|
+
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
|
487
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return Le(e, a);
|
501
488
|
}
|
502
489
|
}
|
503
490
|
function Le(e, a) {
|
@@ -506,7 +493,7 @@ function Le(e, a) {
|
|
506
493
|
r[o] = e[o];
|
507
494
|
return r;
|
508
495
|
}
|
509
|
-
function
|
496
|
+
function Ea(e, a) {
|
510
497
|
var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
511
498
|
if (o != null) {
|
512
499
|
var r = [], s = !0, d = !1, m, c;
|
@@ -519,16 +506,14 @@ function va(e, a) {
|
|
519
506
|
try {
|
520
507
|
!s && o.return != null && o.return();
|
521
508
|
} finally {
|
522
|
-
if (d)
|
523
|
-
throw c;
|
509
|
+
if (d) throw c;
|
524
510
|
}
|
525
511
|
}
|
526
512
|
return r;
|
527
513
|
}
|
528
514
|
}
|
529
|
-
function
|
530
|
-
if (Array.isArray(e))
|
531
|
-
return e;
|
515
|
+
function va(e) {
|
516
|
+
if (Array.isArray(e)) return e;
|
532
517
|
}
|
533
518
|
function et(e, a) {
|
534
519
|
var o = Object.keys(e);
|
@@ -554,10 +539,9 @@ function b(e) {
|
|
554
539
|
function Me(e, a, o) {
|
555
540
|
return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
|
556
541
|
}
|
557
|
-
function
|
558
|
-
if (e == null)
|
559
|
-
|
560
|
-
var o = ja(e, a), r, s;
|
542
|
+
function Ue(e, a) {
|
543
|
+
if (e == null) return {};
|
544
|
+
var o = Ua(e, a), r, s;
|
561
545
|
if (Object.getOwnPropertySymbols) {
|
562
546
|
var d = Object.getOwnPropertySymbols(e);
|
563
547
|
for (s = 0; s < d.length; s++)
|
@@ -565,28 +549,27 @@ function ve(e, a) {
|
|
565
549
|
}
|
566
550
|
return o;
|
567
551
|
}
|
568
|
-
function
|
569
|
-
if (e == null)
|
570
|
-
return {};
|
552
|
+
function Ua(e, a) {
|
553
|
+
if (e == null) return {};
|
571
554
|
var o = {}, r = Object.keys(e), s, d;
|
572
555
|
for (d = 0; d < r.length; d++)
|
573
556
|
s = r[d], !(a.indexOf(s) >= 0) && (o[s] = e[s]);
|
574
557
|
return o;
|
575
558
|
}
|
576
|
-
var
|
577
|
-
var o = e.children, r =
|
559
|
+
var se = /* @__PURE__ */ f.forwardRef(function(e, a) {
|
560
|
+
var o = e.children, r = Ue(e, ua), s = ja(r), d = s.open, m = Ue(s, fa);
|
578
561
|
return f.useImperativeHandle(a, function() {
|
579
562
|
return {
|
580
563
|
open: d
|
581
564
|
};
|
582
|
-
}, [d]), /* @__PURE__ */
|
565
|
+
}, [d]), /* @__PURE__ */ xt.createElement(f.Fragment, null, o(b(b({}, m), {}, {
|
583
566
|
open: d
|
584
567
|
})));
|
585
568
|
});
|
586
|
-
|
569
|
+
se.displayName = "Dropzone";
|
587
570
|
var ct = {
|
588
571
|
disabled: !1,
|
589
|
-
getFilesFromEvent:
|
572
|
+
getFilesFromEvent: Yt,
|
590
573
|
maxSize: 1 / 0,
|
591
574
|
minSize: 0,
|
592
575
|
multiple: !0,
|
@@ -599,8 +582,8 @@ var ct = {
|
|
599
582
|
validator: null,
|
600
583
|
useFsAccessApi: !1
|
601
584
|
};
|
602
|
-
|
603
|
-
|
585
|
+
se.defaultProps = ct;
|
586
|
+
se.propTypes = {
|
604
587
|
/**
|
605
588
|
* Render function that exposes the dropzone state and prop getter fns
|
606
589
|
*
|
@@ -760,7 +743,6 @@ Ue.propTypes = {
|
|
760
743
|
*/
|
761
744
|
validator: g.func
|
762
745
|
};
|
763
|
-
const pt = Ue;
|
764
746
|
var ke = {
|
765
747
|
isFocused: !1,
|
766
748
|
isFileDialogActive: !1,
|
@@ -771,12 +753,12 @@ var ke = {
|
|
771
753
|
acceptedFiles: [],
|
772
754
|
fileRejections: []
|
773
755
|
};
|
774
|
-
function
|
756
|
+
function ja() {
|
775
757
|
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() {
|
776
758
|
return typeof z == "function" ? z : tt;
|
777
759
|
}, [z]), H = f.useMemo(function() {
|
778
760
|
return typeof B == "function" ? B : tt;
|
779
|
-
}, [B]), j = f.useRef(null), D = f.useRef(null), Be = f.useReducer(
|
761
|
+
}, [B]), j = f.useRef(null), D = f.useRef(null), Be = f.useReducer(Da, ke), ie = Te(Be, 2), W = ie[0], _ = ie[1], le = W.isFocused, ee = W.isFileDialogActive, de = W.draggedFiles, ce = function() {
|
780
762
|
ee && setTimeout(function() {
|
781
763
|
if (D.current) {
|
782
764
|
var p = D.current.files;
|
@@ -788,29 +770,29 @@ function Da() {
|
|
788
770
|
};
|
789
771
|
f.useEffect(function() {
|
790
772
|
return V && Je() ? function() {
|
791
|
-
} : (window.addEventListener("focus",
|
792
|
-
window.removeEventListener("focus",
|
773
|
+
} : (window.addEventListener("focus", ce, !1), function() {
|
774
|
+
window.removeEventListener("focus", ce, !1);
|
793
775
|
});
|
794
776
|
}, [D, ee, H, V]);
|
795
|
-
var T = f.useRef([]),
|
777
|
+
var T = f.useRef([]), pe = function(p) {
|
796
778
|
j.current && j.current.contains(p.target) || (p.preventDefault(), T.current = []);
|
797
779
|
};
|
798
780
|
f.useEffect(function() {
|
799
|
-
return X && (document.addEventListener("dragover", Xe, !1), document.addEventListener("drop",
|
800
|
-
X && (document.removeEventListener("dragover", Xe), document.removeEventListener("drop",
|
781
|
+
return X && (document.addEventListener("dragover", Xe, !1), document.addEventListener("drop", pe, !1)), function() {
|
782
|
+
X && (document.removeEventListener("dragover", Xe), document.removeEventListener("drop", pe));
|
801
783
|
};
|
802
784
|
}, [j, X]);
|
803
|
-
var
|
804
|
-
l.preventDefault(), l.persist(),
|
805
|
-
|
785
|
+
var ue = f.useCallback(function(l) {
|
786
|
+
l.preventDefault(), l.persist(), he(l), T.current = [].concat(ga(T.current), [l.target]), be(l) && Promise.resolve(s(l)).then(function(p) {
|
787
|
+
ve(l) && !P || (_({
|
806
788
|
draggedFiles: p,
|
807
789
|
isDragActive: !0,
|
808
790
|
type: "setDraggedFiles"
|
809
791
|
}), x && x(l));
|
810
792
|
});
|
811
|
-
}, [s, x, P]),
|
812
|
-
l.preventDefault(), l.persist(),
|
813
|
-
var p =
|
793
|
+
}, [s, x, P]), fe = f.useCallback(function(l) {
|
794
|
+
l.preventDefault(), l.persist(), he(l);
|
795
|
+
var p = be(l);
|
814
796
|
if (p && l.dataTransfer)
|
815
797
|
try {
|
816
798
|
l.dataTransfer.dropEffect = "copy";
|
@@ -818,7 +800,7 @@ function Da() {
|
|
818
800
|
}
|
819
801
|
return p && U && U(l), !1;
|
820
802
|
}, [U, P]), G = f.useCallback(function(l) {
|
821
|
-
l.preventDefault(), l.persist(),
|
803
|
+
l.preventDefault(), l.persist(), he(l);
|
822
804
|
var p = T.current.filter(function(A) {
|
823
805
|
return j.current && j.current.contains(A);
|
824
806
|
}), E = p.indexOf(l.target);
|
@@ -826,26 +808,26 @@ function Da() {
|
|
826
808
|
isDragActive: !1,
|
827
809
|
type: "setDraggedFiles",
|
828
810
|
draggedFiles: []
|
829
|
-
}),
|
811
|
+
}), be(l) && R && R(l));
|
830
812
|
}, [j, R, P]), i = f.useCallback(function(l, p) {
|
831
813
|
var E = [], A = [];
|
832
814
|
l.forEach(function(F) {
|
833
|
-
var oe = it(F, o), K = Te(oe, 2), De = K[0], _e = K[1], Ae = lt(F, m, d),
|
815
|
+
var oe = it(F, o), K = Te(oe, 2), De = K[0], _e = K[1], Ae = lt(F, m, d), ge = Te(Ae, 2), Re = ge[0], we = ge[1], Fe = O ? O(F) : null;
|
834
816
|
if (De && Re && !Fe)
|
835
817
|
E.push(F);
|
836
818
|
else {
|
837
819
|
var Ne = [_e, we];
|
838
820
|
Fe && (Ne = Ne.concat(Fe)), A.push({
|
839
821
|
file: F,
|
840
|
-
errors: Ne.filter(function(
|
841
|
-
return
|
822
|
+
errors: Ne.filter(function(ht) {
|
823
|
+
return ht;
|
842
824
|
})
|
843
825
|
});
|
844
826
|
}
|
845
827
|
}), (!c && E.length > 1 || c && v >= 1 && E.length > v) && (E.forEach(function(F) {
|
846
828
|
A.push({
|
847
829
|
file: F,
|
848
|
-
errors: [
|
830
|
+
errors: [sa]
|
849
831
|
});
|
850
832
|
}), E.splice(0)), _({
|
851
833
|
acceptedFiles: E,
|
@@ -853,8 +835,8 @@ function Da() {
|
|
853
835
|
type: "setFiles"
|
854
836
|
}), N && N(E, A, p), A.length > 0 && Q && Q(A, p), E.length > 0 && w && w(E, p);
|
855
837
|
}, [_, c, o, m, d, v, N, w, Q, O]), I = f.useCallback(function(l) {
|
856
|
-
l.preventDefault(), l.persist(),
|
857
|
-
|
838
|
+
l.preventDefault(), l.persist(), he(l), T.current = [], be(l) && Promise.resolve(s(l)).then(function(p) {
|
839
|
+
ve(l) && !P || i(p, l);
|
858
840
|
}), _({
|
859
841
|
type: "reset"
|
860
842
|
});
|
@@ -865,7 +847,7 @@ function Da() {
|
|
865
847
|
}), Y();
|
866
848
|
var l = {
|
867
849
|
multiple: c,
|
868
|
-
types:
|
850
|
+
types: pa(o)
|
869
851
|
};
|
870
852
|
window.showOpenFilePicker(l).then(function(p) {
|
871
853
|
return s(p);
|
@@ -894,37 +876,37 @@ function Da() {
|
|
894
876
|
type: "blur"
|
895
877
|
});
|
896
878
|
}, []), M = f.useCallback(function() {
|
897
|
-
y || (
|
879
|
+
y || (ca() ? setTimeout(L, 0) : L());
|
898
880
|
}, [D, y, L]), k = function(p) {
|
899
881
|
return r ? null : p;
|
900
882
|
}, je = function(p) {
|
901
883
|
return J ? null : k(p);
|
902
|
-
}, fe = function(p) {
|
903
|
-
return C ? null : k(p);
|
904
884
|
}, me = function(p) {
|
885
|
+
return C ? null : k(p);
|
886
|
+
}, he = function(p) {
|
905
887
|
P && p.stopPropagation();
|
906
|
-
},
|
888
|
+
}, pt = f.useMemo(function() {
|
907
889
|
return function() {
|
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,
|
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, ge = l.onDragLeave, Re = l.onDrop, we = Ue(l, ma);
|
909
891
|
return b(b(Me({
|
910
892
|
onKeyDown: je(S(F, $)),
|
911
893
|
onFocus: je(S(oe, te)),
|
912
894
|
onBlur: je(S(K, ae)),
|
913
895
|
onClick: k(S(De, M)),
|
914
|
-
onDragEnter:
|
915
|
-
onDragOver:
|
916
|
-
onDragLeave:
|
917
|
-
onDrop:
|
896
|
+
onDragEnter: me(S(_e, ue)),
|
897
|
+
onDragOver: me(S(Ae, fe)),
|
898
|
+
onDragLeave: me(S(ge, G)),
|
899
|
+
onDrop: me(S(Re, I)),
|
918
900
|
role: typeof A == "string" && A !== "" ? A : "button"
|
919
901
|
}, E, j), !r && !J ? {
|
920
902
|
tabIndex: 0
|
921
903
|
} : {}), we);
|
922
904
|
};
|
923
|
-
}, [j, $, te, ae, M,
|
905
|
+
}, [j, $, te, ae, M, ue, fe, G, I, J, C, r]), ut = f.useCallback(function(l) {
|
924
906
|
l.stopPropagation();
|
925
|
-
}, []),
|
907
|
+
}, []), ft = f.useMemo(function() {
|
926
908
|
return function() {
|
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 =
|
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 = Ue(l, ha), K = Me({
|
928
910
|
accept: o,
|
929
911
|
multiple: c,
|
930
912
|
type: "file",
|
@@ -932,32 +914,32 @@ function Da() {
|
|
932
914
|
display: "none"
|
933
915
|
},
|
934
916
|
onChange: k(S(A, I)),
|
935
|
-
onClick: k(S(F,
|
917
|
+
onClick: k(S(F, ut)),
|
936
918
|
autoComplete: "off",
|
937
919
|
tabIndex: -1
|
938
920
|
}, E, D);
|
939
921
|
return b(b({}, K), oe);
|
940
922
|
};
|
941
|
-
}, [D, o, c, I, r]), Ye =
|
942
|
-
files:
|
923
|
+
}, [D, o, c, I, r]), Ye = de.length, He = Ye > 0 && ia({
|
924
|
+
files: de,
|
943
925
|
accept: o,
|
944
926
|
minSize: m,
|
945
927
|
maxSize: d,
|
946
928
|
multiple: c,
|
947
929
|
maxFiles: v
|
948
|
-
}),
|
930
|
+
}), mt = Ye > 0 && !He;
|
949
931
|
return b(b({}, W), {}, {
|
950
932
|
isDragAccept: He,
|
951
|
-
isDragReject:
|
952
|
-
isFocused:
|
953
|
-
getRootProps:
|
954
|
-
getInputProps:
|
933
|
+
isDragReject: mt,
|
934
|
+
isFocused: le && !r,
|
935
|
+
getRootProps: pt,
|
936
|
+
getInputProps: ft,
|
955
937
|
rootRef: j,
|
956
938
|
inputRef: D,
|
957
939
|
open: k(L)
|
958
940
|
});
|
959
941
|
}
|
960
|
-
function
|
942
|
+
function Da(e, a) {
|
961
943
|
switch (a.type) {
|
962
944
|
case "focus":
|
963
945
|
return b(b({}, e), {}, {
|
@@ -994,7 +976,7 @@ function _a(e, a) {
|
|
994
976
|
}
|
995
977
|
function tt() {
|
996
978
|
}
|
997
|
-
function
|
979
|
+
function ye({
|
998
980
|
title: e,
|
999
981
|
children: a,
|
1000
982
|
id: o,
|
@@ -1031,7 +1013,7 @@ function be({
|
|
1031
1013
|
}
|
1032
1014
|
);
|
1033
1015
|
}
|
1034
|
-
const
|
1016
|
+
const _a = {
|
1035
1017
|
[u.STUDENT]: [
|
1036
1018
|
"step.docUpload.acceptableUploads.student.idCard",
|
1037
1019
|
"step.docUpload.acceptableUploads.student.classSchedule",
|
@@ -1087,7 +1069,7 @@ const Aa = {
|
|
1087
1069
|
"step.docUpload.acceptableUploads.lowIncome.programApprovalScreenshot",
|
1088
1070
|
"step.docUpload.acceptableUploads.lowIncome.programBankStatement"
|
1089
1071
|
]
|
1090
|
-
},
|
1072
|
+
}, Aa = {
|
1091
1073
|
[n.ACTIVE_DUTY]: [
|
1092
1074
|
"step.docUpload.acceptableUploads.military.active.leaveEarningStatement",
|
1093
1075
|
"step.docUpload.acceptableUploads.military.active.uniformedServicesId"
|
@@ -1154,7 +1136,7 @@ const Aa = {
|
|
1154
1136
|
[n.NUTRITION_PROFESSIONAL]: [
|
1155
1137
|
"step.docUpload.acceptableUploads.licensedProfessional.license"
|
1156
1138
|
]
|
1157
|
-
},
|
1139
|
+
}, Ra = {
|
1158
1140
|
[u.STUDENT]: [
|
1159
1141
|
"step.docUpload.uploadInfo.fullName",
|
1160
1142
|
"step.docUpload.uploadInfo.institutionName",
|
@@ -1212,7 +1194,7 @@ const Aa = {
|
|
1212
1194
|
"step.docUpload.uploadInfo.fullName",
|
1213
1195
|
"step.docUpload.uploadInfo.lowIncome.validDate"
|
1214
1196
|
]
|
1215
|
-
},
|
1197
|
+
}, wa = {
|
1216
1198
|
[n.ACTIVE_DUTY]: ["step.docUpload.uploadInfo.military.activeDuty.status"],
|
1217
1199
|
[n.VETERAN]: ["step.docUpload.uploadInfo.military.veteran.status"],
|
1218
1200
|
[n.RESERVIST]: ["step.docUpload.uploadInfo.military.reservist.status"],
|
@@ -1241,30 +1223,30 @@ const Aa = {
|
|
1241
1223
|
[n.ARCHITECT]: [],
|
1242
1224
|
[n.GENERAL_CONTRACTOR]: [],
|
1243
1225
|
[n.NUTRITION_PROFESSIONAL]: []
|
1244
|
-
},
|
1226
|
+
}, Fa = {
|
1245
1227
|
// MILITARY_FAMILY is overridden to not show branch of service.
|
1246
1228
|
[n.MILITARY_FAMILY]: [
|
1247
1229
|
"step.docUpload.uploadInfo.fullName",
|
1248
1230
|
"step.docUpload.uploadInfo.military.militaryFamily.status"
|
1249
1231
|
]
|
1250
1232
|
};
|
1251
|
-
function
|
1233
|
+
function Na(e, a) {
|
1252
1234
|
return [
|
1253
1235
|
.../* @__PURE__ */ new Set([
|
1254
|
-
...
|
1255
|
-
...
|
1236
|
+
...Aa[a] || [],
|
1237
|
+
..._a[e] || []
|
1256
1238
|
])
|
1257
1239
|
];
|
1258
1240
|
}
|
1259
|
-
function
|
1260
|
-
return
|
1241
|
+
function Ca(e, a) {
|
1242
|
+
return Fa[a] || [
|
1261
1243
|
.../* @__PURE__ */ new Set([
|
1262
|
-
...
|
1263
|
-
...
|
1244
|
+
...wa[a] || [],
|
1245
|
+
...Ra[e] || []
|
1264
1246
|
])
|
1265
1247
|
];
|
1266
1248
|
}
|
1267
|
-
const
|
1249
|
+
const Oa = ({
|
1268
1250
|
options: e,
|
1269
1251
|
selected: a,
|
1270
1252
|
onChange: o,
|
@@ -1309,11 +1291,11 @@ const Ta = ({
|
|
1309
1291
|
] })
|
1310
1292
|
)) })
|
1311
1293
|
] });
|
1312
|
-
},
|
1294
|
+
}, Ta = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "sid-named-divider", children: [
|
1313
1295
|
/* @__PURE__ */ t.jsx("hr", { className: "sid-named-divider__rule" }),
|
1314
1296
|
/* @__PURE__ */ t.jsx("p", { className: "sid-named-divider__text", children: e })
|
1315
1297
|
] });
|
1316
|
-
function
|
1298
|
+
function Sa({
|
1317
1299
|
title: e,
|
1318
1300
|
titleId: a,
|
1319
1301
|
...o
|
@@ -1336,7 +1318,7 @@ function La({
|
|
1336
1318
|
d: "M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
|
1337
1319
|
}));
|
1338
1320
|
}
|
1339
|
-
const
|
1321
|
+
const La = /* @__PURE__ */ f.forwardRef(Sa), Ma = (e) => /* @__PURE__ */ t.jsxs(
|
1340
1322
|
"svg",
|
1341
1323
|
{
|
1342
1324
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1504,7 +1486,7 @@ const Ma = f.forwardRef(La), ka = Ma, Pa = (e) => /* @__PURE__ */ t.jsxs(
|
|
1504
1486
|
)
|
1505
1487
|
]
|
1506
1488
|
}
|
1507
|
-
),
|
1489
|
+
), ka = (e) => /* @__PURE__ */ t.jsxs(
|
1508
1490
|
"svg",
|
1509
1491
|
{
|
1510
1492
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1569,7 +1551,7 @@ const Ma = f.forwardRef(La), ka = Ma, Pa = (e) => /* @__PURE__ */ t.jsxs(
|
|
1569
1551
|
)
|
1570
1552
|
]
|
1571
1553
|
}
|
1572
|
-
),
|
1554
|
+
), Pa = (e) => /* @__PURE__ */ t.jsxs(
|
1573
1555
|
"svg",
|
1574
1556
|
{
|
1575
1557
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1633,13 +1615,13 @@ const Ma = f.forwardRef(La), ka = Ma, Pa = (e) => /* @__PURE__ */ t.jsxs(
|
|
1633
1615
|
)
|
1634
1616
|
]
|
1635
1617
|
}
|
1636
|
-
),
|
1637
|
-
function
|
1638
|
-
return e === "ID_CARD" && a === "large" ?
|
1618
|
+
), Ba = ["ID_CARD", "SCHEDULE"];
|
1619
|
+
function Ya(e, a) {
|
1620
|
+
return e === "ID_CARD" && a === "large" ? Ma : e === "ID_CARD" && a === "small" ? at : e === "SCHEDULE" && a === "large" ? ka : e === "SCHEDULE" && a === "small" ? Pa : at;
|
1639
1621
|
}
|
1640
|
-
const
|
1641
|
-
const r =
|
1642
|
-
return /* @__PURE__ */ t.jsx(
|
1622
|
+
const Ha = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
1623
|
+
const r = Ya(a, o);
|
1624
|
+
return /* @__PURE__ */ t.jsx(se, { onDrop: (s) => e(s, a), children: ({ getRootProps: s, getInputProps: d }) => /* @__PURE__ */ t.jsxs("section", { ...s(), className: "sid-document-type-attachment-wrap", children: [
|
1643
1625
|
/* @__PURE__ */ t.jsx("input", { ...d() }),
|
1644
1626
|
o === "small" ? /* @__PURE__ */ t.jsxs("button", { className: "sid-document-type-attachment", type: "button", children: [
|
1645
1627
|
/* @__PURE__ */ t.jsx(r, { className: "sid-document-type-attachment__icon-small" }),
|
@@ -1647,7 +1629,7 @@ const Va = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1647
1629
|
a === "ID_CARD" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Dated School ID card" }),
|
1648
1630
|
a === "SCHEDULE" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Class Schedule" })
|
1649
1631
|
] }),
|
1650
|
-
/* @__PURE__ */ t.jsx(
|
1632
|
+
/* @__PURE__ */ t.jsx(La, { className: "sid-document-type-attachment__plus" })
|
1651
1633
|
] }) : /* @__PURE__ */ t.jsxs(
|
1652
1634
|
"button",
|
1653
1635
|
{
|
@@ -1663,7 +1645,7 @@ const Va = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1663
1645
|
}
|
1664
1646
|
)
|
1665
1647
|
] }) });
|
1666
|
-
},
|
1648
|
+
}, za = {
|
1667
1649
|
[u.STUDENT]: [
|
1668
1650
|
"step.docUpload.uploadInfo.fullName",
|
1669
1651
|
"step.docUpload.uploadInfo.student.school",
|
@@ -1726,7 +1708,7 @@ const Va = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1726
1708
|
"step.docUpload.uploadInfo.recentMover.address",
|
1727
1709
|
"step.docUpload.uploadInfo.recentMover.validDate"
|
1728
1710
|
]
|
1729
|
-
},
|
1711
|
+
}, Va = {
|
1730
1712
|
[n.ACTIVE_DUTY]: [],
|
1731
1713
|
[n.VETERAN]: [],
|
1732
1714
|
[n.RESERVIST]: [],
|
@@ -1755,16 +1737,16 @@ const Va = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
|
1755
1737
|
[n.ARCHITECT]: [],
|
1756
1738
|
[n.GENERAL_CONTRACTOR]: [],
|
1757
1739
|
[n.NUTRITION_PROFESSIONAL]: []
|
1758
|
-
},
|
1740
|
+
}, Wa = {
|
1759
1741
|
// MILITARY_FAMILY is overridden to not show branch of service.
|
1760
1742
|
[n.MILITARY_FAMILY]: [
|
1761
1743
|
"step.docUpload.uploadInfo.military.uploadInstructionsDependent"
|
1762
1744
|
]
|
1763
1745
|
};
|
1764
|
-
function
|
1765
|
-
return
|
1766
|
-
...
|
1767
|
-
...
|
1746
|
+
function Ga(e, a) {
|
1747
|
+
return Wa[a] || [
|
1748
|
+
...Va[a] || [],
|
1749
|
+
...za[e] || []
|
1768
1750
|
];
|
1769
1751
|
}
|
1770
1752
|
const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e ? /* @__PURE__ */ t.jsxs("div", { className: "sid-field-error sid-field-error-redesign__doc-upload", children: [
|
@@ -1776,70 +1758,70 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1776
1758
|
}
|
1777
1759
|
),
|
1778
1760
|
a ? a.map((r) => /* @__PURE__ */ t.jsx("div", { className: "sid-field-error-redesign__doc-upload__span", children: r }, `error-${r}`)) : null
|
1779
|
-
] }) : null,
|
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 ?
|
1761
|
+
] }) : null, $a = ({ verificationService: e, intl: a }) => {
|
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 ? Ga : Ca)(
|
1781
1763
|
m,
|
1782
1764
|
c
|
1783
1765
|
), Q = e.verificationResponse.country === "US", B = (i) => ({
|
1784
1766
|
name: i.name,
|
1785
1767
|
url: i.type.includes("image") ? URL.createObjectURL(i) : ""
|
1786
|
-
}), [z, V] = f.useState({}), { userDidConvert: X } =
|
1787
|
-
Et
|
1768
|
+
}), [z, V] = f.useState({}), { userDidConvert: X } = yt(m), y = [], J = Ce("doc-upload-may24"), C = s.segment === "student" && s.locale === "en-US" ? J : "default", O = Ce("docUpload-assertion-checklist") === "checklist", [Y, H] = f.useState([]), [j, D] = f.useState(!1);
|
1769
|
+
It(Et) && y.push({
|
1788
1770
|
name: "myFile.png",
|
1789
1771
|
url: ""
|
1790
1772
|
});
|
1791
|
-
const
|
1773
|
+
const ie = a.formatMessage({
|
1792
1774
|
id: "step.docUpload.addFile",
|
1793
1775
|
defaultMessage: "Add documents"
|
1794
1776
|
});
|
1795
1777
|
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));
|
1796
1778
|
const W = y.map((i) => z[i.name]), _ = (i, I) => {
|
1797
|
-
r(!1), e.updateViewModel(
|
1798
|
-
},
|
1779
|
+
r(!1), e.updateViewModel(Lt(x, i, I));
|
1780
|
+
}, le = (i) => {
|
1799
1781
|
const I = i + 1;
|
1800
|
-
r(!1), H([]), D(!1), e.updateViewModel(
|
1801
|
-
}, ee = R.docUpload ||
|
1782
|
+
r(!1), H([]), D(!1), e.updateViewModel(Mt(x, I));
|
1783
|
+
}, ee = R.docUpload || vt(() => e.verificationResponse.errorIds[0], void 0), de = (i, I) => {
|
1802
1784
|
const L = [], $ = [], te = [];
|
1803
1785
|
for (const M of i) {
|
1804
1786
|
const k = St(
|
1805
|
-
|
1787
|
+
xe.docUpload,
|
1806
1788
|
M,
|
1807
1789
|
e.formValidationOptions
|
1808
1790
|
);
|
1809
1791
|
k === void 0 ? (I && V({ ...z, [M.name]: I }), L.push(M)) : (te.push(M.name), $.push(k));
|
1810
1792
|
}
|
1811
1793
|
let ae;
|
1812
|
-
$ && (ae =
|
1794
|
+
$ && (ae = Ie(R, (M) => {
|
1813
1795
|
M.docUpload = $[0];
|
1814
1796
|
})), e.updateFieldValidationErrors(ae), _(L, te);
|
1815
|
-
},
|
1797
|
+
}, ce = () => {
|
1816
1798
|
Oe.info("StepDocUploadComponent submitting form"), D(!0), (O && w.every((i) => Y.includes(i)) || !O) && (e.submitStep(
|
1817
|
-
|
1799
|
+
xe.docUpload,
|
1818
1800
|
x,
|
1819
1801
|
e.verificationResponse
|
1820
|
-
), X(
|
1802
|
+
), X(Ot, Tt));
|
1821
1803
|
}, T = (i, I) => {
|
1822
|
-
i.length > 0 ?
|
1804
|
+
i.length > 0 ? de(i, I) : i.length <= 0 && Oe.error(
|
1823
1805
|
"No files were accepted or rejected. Unknown error.",
|
1824
|
-
|
1806
|
+
xe.docUpload
|
1825
1807
|
);
|
1826
|
-
}, ce = (i) => {
|
1827
|
-
T(Array.from(i.target.files));
|
1828
1808
|
}, pe = (i) => {
|
1829
|
-
|
1809
|
+
T(Array.from(i.target.files));
|
1810
|
+
}, ue = (i) => {
|
1811
|
+
const I = Ct("addFile");
|
1830
1812
|
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), I.click());
|
1831
|
-
},
|
1813
|
+
}, fe = async () => {
|
1832
1814
|
Oe.info("StepDocUploadComponent submitting form after skipping document upload");
|
1833
|
-
const i =
|
1815
|
+
const i = Ie(x, () => {
|
1834
1816
|
});
|
1835
1817
|
e.submitStep(
|
1836
|
-
|
1818
|
+
xe.cancelDocUpload,
|
1837
1819
|
i,
|
1838
1820
|
e.verificationResponse
|
1839
1821
|
);
|
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:
|
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: Ba.map(
|
1841
1823
|
(i) => !W.includes(i) && /* @__PURE__ */ t.jsx(
|
1842
|
-
|
1824
|
+
Ha,
|
1843
1825
|
{
|
1844
1826
|
onFileDrop: T,
|
1845
1827
|
type: i,
|
@@ -1855,7 +1837,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1855
1837
|
erroredFileNames: x.erroredFileNames
|
1856
1838
|
}
|
1857
1839
|
),
|
1858
|
-
/* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(
|
1840
|
+
/* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(se, { onDrop: (i) => T(i), accept: ze.join(","), children: ({ getRootProps: i, getInputProps: I }) => /* @__PURE__ */ t.jsxs(
|
1859
1841
|
"div",
|
1860
1842
|
{
|
1861
1843
|
...i(),
|
@@ -1868,7 +1850,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1868
1850
|
tabIndex: -1,
|
1869
1851
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
1870
1852
|
type: "button",
|
1871
|
-
"aria-label":
|
1853
|
+
"aria-label": ie,
|
1872
1854
|
children: /* @__PURE__ */ t.jsx(
|
1873
1855
|
h,
|
1874
1856
|
{
|
@@ -1890,9 +1872,9 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1890
1872
|
children: [
|
1891
1873
|
/* @__PURE__ */ t.jsxs("div", { role: "main", children: [
|
1892
1874
|
/* @__PURE__ */ t.jsxs("div", { className: "sid-header sid-l-space-top-md", children: [
|
1893
|
-
/* @__PURE__ */ t.jsx("div", { className: "sid-doc-upload-logo-container sid-l-horz-center", children: /* @__PURE__ */ t.jsx(
|
1894
|
-
/* @__PURE__ */ t.jsx(
|
1895
|
-
/* @__PURE__ */ t.jsx(
|
1875
|
+
/* @__PURE__ */ t.jsx("div", { className: "sid-doc-upload-logo-container sid-l-horz-center", children: /* @__PURE__ */ t.jsx(Ut, { verificationService: e }) }),
|
1876
|
+
/* @__PURE__ */ t.jsx(jt, { align: "start", children: /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.title", tagName: "h1" }) }),
|
1877
|
+
/* @__PURE__ */ t.jsx(Dt, { verificationService: e }),
|
1896
1878
|
d && d.length > 0 && /* @__PURE__ */ t.jsxs("div", { className: "sid-upload-rejection__wrapper", children: [
|
1897
1879
|
/* @__PURE__ */ t.jsx("div", { className: "sid-header__subtitle-doc-upload-rejected", children: /* @__PURE__ */ t.jsx(
|
1898
1880
|
h,
|
@@ -1955,8 +1937,8 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1955
1937
|
tabIndex: 0,
|
1956
1938
|
"aria-label": `Remove file ${i.name}`,
|
1957
1939
|
className: "sid-file-list__remove-btn",
|
1958
|
-
onClick: () =>
|
1959
|
-
onKeyPress: () =>
|
1940
|
+
onClick: () => le(I),
|
1941
|
+
onKeyPress: () => le(I)
|
1960
1942
|
}
|
1961
1943
|
)
|
1962
1944
|
] })
|
@@ -1967,10 +1949,10 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1967
1949
|
className: "sid-docdrop-wrap__dropzone thumbnail_wrapper",
|
1968
1950
|
htmlFor: "sid-take-photo-input",
|
1969
1951
|
role: "button",
|
1970
|
-
onKeyUp: (i) =>
|
1952
|
+
onKeyUp: (i) => ue(i),
|
1971
1953
|
tabIndex: 0,
|
1972
1954
|
children: [
|
1973
|
-
/* @__PURE__ */ t.jsx(
|
1955
|
+
/* @__PURE__ */ t.jsx(_t, { className: "sid-uploadzone__icon", width: "16px" }),
|
1974
1956
|
/* @__PURE__ */ t.jsx("p", { className: "sid-docdrop-wrap__instructions thumbnail_wrapper-text", children: /* @__PURE__ */ t.jsx(
|
1975
1957
|
h,
|
1976
1958
|
{
|
@@ -1981,7 +1963,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
1981
1963
|
/* @__PURE__ */ t.jsx(
|
1982
1964
|
"input",
|
1983
1965
|
{
|
1984
|
-
onChange:
|
1966
|
+
onChange: pe,
|
1985
1967
|
type: "file",
|
1986
1968
|
id: "sid-take-photo-input",
|
1987
1969
|
hidden: !0,
|
@@ -2003,7 +1985,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2003
1985
|
}
|
2004
1986
|
),
|
2005
1987
|
O && y.length >= 1 && /* @__PURE__ */ t.jsx(
|
2006
|
-
|
1988
|
+
Oa,
|
2007
1989
|
{
|
2008
1990
|
options: w,
|
2009
1991
|
selected: Y,
|
@@ -2015,7 +1997,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2015
1997
|
"button",
|
2016
1998
|
{
|
2017
1999
|
id: "sid-submit-doc-upload",
|
2018
|
-
onClick:
|
2000
|
+
onClick: ce,
|
2019
2001
|
type: "submit",
|
2020
2002
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
2021
2003
|
"aria-disabled": y.length <= 0 || O && !w.every((i) => Y.includes(i)),
|
@@ -2043,13 +2025,13 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2043
2025
|
] }) : null,
|
2044
2026
|
C === "doc-type-icons" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2045
2027
|
y.length > 0 && y.length < 2 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2046
|
-
/* @__PURE__ */ t.jsx(
|
2028
|
+
/* @__PURE__ */ t.jsx(Ta, { children: "Add another document" }),
|
2047
2029
|
G
|
2048
2030
|
] }),
|
2049
2031
|
/* @__PURE__ */ t.jsx("h3", { children: "FAQ" }),
|
2050
|
-
/* @__PURE__ */ t.jsx(
|
2032
|
+
/* @__PURE__ */ t.jsx(ye, { id: "suggestedDocs", title: "What information is needed?", children: /* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children: w.map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-doc-upload-requirements__definition", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)) }) })
|
2051
2033
|
] }) : /* @__PURE__ */ t.jsxs(
|
2052
|
-
|
2034
|
+
ye,
|
2053
2035
|
{
|
2054
2036
|
id: "suggestedDocs",
|
2055
2037
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2063,7 +2045,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2063
2045
|
children: [
|
2064
2046
|
N && /* @__PURE__ */ t.jsx(h, { id: "step.docUpload.acceptableUploadExamples" }),
|
2065
2047
|
/* @__PURE__ */ t.jsxs("ul", { className: "sid-acceptable-document-types", children: [
|
2066
|
-
(N ? Rt :
|
2048
|
+
(N ? Rt : Na)(
|
2067
2049
|
m,
|
2068
2050
|
c
|
2069
2051
|
).map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(h, { id: i }) }, i)),
|
@@ -2089,7 +2071,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2089
2071
|
}
|
2090
2072
|
),
|
2091
2073
|
/* @__PURE__ */ t.jsxs(
|
2092
|
-
|
2074
|
+
ye,
|
2093
2075
|
{
|
2094
2076
|
id: "whatHappensNext",
|
2095
2077
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2130,7 +2112,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2130
2112
|
}
|
2131
2113
|
),
|
2132
2114
|
/* @__PURE__ */ t.jsx(
|
2133
|
-
|
2115
|
+
ye,
|
2134
2116
|
{
|
2135
2117
|
id: "canIFinishLater",
|
2136
2118
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2154,7 +2136,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2154
2136
|
{
|
2155
2137
|
href: "#",
|
2156
2138
|
className: "sid-link sid-override-link",
|
2157
|
-
onClick: () =>
|
2139
|
+
onClick: () => fe(),
|
2158
2140
|
role: "button",
|
2159
2141
|
children: /* @__PURE__ */ t.jsx(
|
2160
2142
|
h,
|
@@ -2170,7 +2152,7 @@ const ot = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e
|
|
2170
2152
|
]
|
2171
2153
|
}
|
2172
2154
|
);
|
2173
|
-
},
|
2155
|
+
}, qa = bt($a);
|
2174
2156
|
export {
|
2175
|
-
|
2157
|
+
qa as default
|
2176
2158
|
};
|