@sheerid/jslib 2.105.0 → 2.107.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 +18168 -16565
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{EmailLoopPending-DmENoLpP.js → EmailLoopPending-Dtf0p85F.js} +18 -18
- package/chunk/{EmailLoopPending-D-O7IRrU.js.map → EmailLoopPending-Dtf0p85F.js.map} +1 -1
- package/chunk/{EmailLoopPending-D-O7IRrU.js → EmailLoopPending-Dy8mLFvV.js} +18 -18
- package/chunk/{EmailLoopPending-DmENoLpP.js.map → EmailLoopPending-Dy8mLFvV.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-BrW9osPt.js → LicensedProfessionalOrganizationComponent-BYijEfDT.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-BrW9osPt.js.map → LicensedProfessionalOrganizationComponent-BYijEfDT.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-Cu6a9uBs.js → LicensedProfessionalOrganizationComponent-CiYU-2dW.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-Cu6a9uBs.js.map → LicensedProfessionalOrganizationComponent-CiYU-2dW.js.map} +1 -1
- package/chunk/{Onfido-CMH3IUna.js → Onfido-AyvUk6wg.js} +28 -28
- package/chunk/{Onfido-CMH3IUna.js.map → Onfido-AyvUk6wg.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-BRtMQNQl.js → StepIDCheckLoopOnfido-CmNwFqjD.js} +12 -11
- package/chunk/{StepIDCheckLoopOnfido-BRtMQNQl.js.map → StepIDCheckLoopOnfido-CmNwFqjD.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-mZhLONqq.js → StepIDCheckLoopOnfido-DtbplNxs.js} +12 -11
- package/chunk/{StepIDCheckLoopOnfido-mZhLONqq.js.map → StepIDCheckLoopOnfido-DtbplNxs.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-1wd-jJGJ.js → StepIDCheckLoopRegula-RoX971sR.js} +59 -85
- package/chunk/StepIDCheckLoopRegula-RoX971sR.js.map +1 -0
- package/chunk/{StepIDCheckLoopRegula-jyg1vIi3.js → StepIDCheckLoopRegula-oqf-QxHT.js} +59 -85
- package/chunk/StepIDCheckLoopRegula-oqf-QxHT.js.map +1 -0
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CmQGKlal.js → StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js} +52 -52
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CmQGKlal.js.map → StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Qfl3ZvB1.js → StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js} +52 -52
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Qfl3ZvB1.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-IntP52Fm.js → index-4APUDd8S.js} +26 -26
- package/chunk/{index-IntP52Fm.js.map → index-4APUDd8S.js.map} +1 -1
- package/chunk/{index-BrVZpRb7.js → index-9OD0Bw98.js} +58 -58
- package/chunk/{index-BgB4HxER.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-D_lbJwrN.js → index-B8F8N-JM.js} +46 -46
- package/chunk/{index-D_lbJwrN.js.map → index-B8F8N-JM.js.map} +1 -1
- package/chunk/{index-C3tQa9xA.js → index-B8KPM--K.js} +48 -56
- package/chunk/{index-C3tQa9xA.js.map → index-B8KPM--K.js.map} +1 -1
- package/chunk/{index-BJxmlJd1.js → index-BD2bjH-C.js} +5 -5
- package/{lib/index-mtr_UcW2.js.map → chunk/index-BD2bjH-C.js.map} +1 -1
- package/chunk/{index-GaKINs6g.js → index-BD_a0MZT.js} +24 -24
- package/chunk/{index-i9-QlgZ0.js.map → index-BD_a0MZT.js.map} +1 -1
- package/chunk/{index-DZ0bnNgg.js → index-BDrKYann.js} +29 -29
- package/chunk/{index-D1j4nnQa.js.map → index-BDrKYann.js.map} +1 -1
- package/chunk/{index-ygMzyxW9.js → index-BTMETMEE.js} +52 -52
- package/chunk/index-BTMETMEE.js.map +1 -0
- package/chunk/{index-DJReh58z.js → index-Bi9QXN5x.js} +9 -9
- package/chunk/{index-DJReh58z.js.map → index-Bi9QXN5x.js.map} +1 -1
- package/chunk/{index-whConjrR.js → index-Bmq6cJ3F.js} +25 -25
- package/{lib/index-CkM0aH9Q.js.map → chunk/index-Bmq6cJ3F.js.map} +1 -1
- package/chunk/{index-i9-QlgZ0.js → index-BpZoH-Wz.js} +24 -24
- package/chunk/{index-GaKINs6g.js.map → index-BpZoH-Wz.js.map} +1 -1
- package/chunk/{index-F-HVkQz5.js → index-BuX76GyE.js} +40 -40
- package/{lib/index-CZyo7O6A.js.map → chunk/index-BuX76GyE.js.map} +1 -1
- package/chunk/{index-1tM2UWke.js → index-C2h0Wj84.js} +48 -56
- package/chunk/{index-1tM2UWke.js.map → index-C2h0Wj84.js.map} +1 -1
- package/chunk/{index-D6RaCifq.js → index-C8MQD8EK.js} +26 -26
- package/chunk/{index-D6RaCifq.js.map → index-C8MQD8EK.js.map} +1 -1
- package/chunk/{index-Cb7GlxEu.js → index-C8u9IJUa.js} +11 -11
- package/chunk/{index-BmJ3aubI.js.map → index-C8u9IJUa.js.map} +1 -1
- package/chunk/{index-n6-LNqUp.js → index-C96ntS0u.js} +25 -25
- package/chunk/{index-n6-LNqUp.js.map → index-C96ntS0u.js.map} +1 -1
- package/chunk/index-CHK5i4jj.js +48 -0
- package/chunk/index-CHK5i4jj.js.map +1 -0
- package/chunk/{index-BSXBGGOf.js → index-CTb96lOK.js} +8 -8
- package/chunk/{index-BSXBGGOf.js.map → index-CTb96lOK.js.map} +1 -1
- package/chunk/{index-CEidf7uT.js → index-CcRowarb.js} +5 -5
- package/chunk/{index-CEidf7uT.js.map → index-CcRowarb.js.map} +1 -1
- package/chunk/{index-DFjiwKs3.js → index-CeHu2Npu.js} +7 -7
- package/chunk/{index-rjS-77t0.js.map → index-CeHu2Npu.js.map} +1 -1
- package/chunk/{index-vIL1gjSk.js → index-CniY_P3e.js} +219 -237
- package/chunk/index-CniY_P3e.js.map +1 -0
- package/chunk/index-DIkWpujR.js +4 -4
- package/chunk/index-DIkWpujR.js.map +1 -1
- package/chunk/{index-BgB4HxER.js → index-DKWjcFJK.js} +58 -58
- package/chunk/{index-BrVZpRb7.js.map → index-DKWjcFJK.js.map} +1 -1
- package/chunk/{index-D6Gez9pU.js → index-DLz31Fzh.js} +17 -17
- package/chunk/{index-DyHhX3QL.js.map → index-DLz31Fzh.js.map} +1 -1
- package/chunk/{index-Cq8qB8GK.js → index-DO5Z3e-E.js} +40 -40
- package/chunk/{index-F-HVkQz5.js.map → index-DO5Z3e-E.js.map} +1 -1
- package/chunk/{index-BmJ3aubI.js → index-DRlGAW07.js} +11 -11
- package/chunk/{index-Cb7GlxEu.js.map → index-DRlGAW07.js.map} +1 -1
- package/chunk/{index-rjS-77t0.js → index-DVynViqA.js} +7 -7
- package/chunk/{index-DFjiwKs3.js.map → index-DVynViqA.js.map} +1 -1
- package/chunk/{index-NMedOT6B.js → index-D_9J6arc.js} +62 -59
- package/chunk/index-D_9J6arc.js.map +1 -0
- package/chunk/{index-25aIMfhs.js → index-Dg8t7-dm.js} +46 -46
- package/chunk/{index-25aIMfhs.js.map → index-Dg8t7-dm.js.map} +1 -1
- package/chunk/{index-D1j4nnQa.js → index-DhGg9lvf.js} +29 -29
- package/chunk/{index-DZ0bnNgg.js.map → index-DhGg9lvf.js.map} +1 -1
- package/chunk/{index-DkuH8kG3.js → index-DsgCNIS5.js} +62 -59
- package/chunk/index-DsgCNIS5.js.map +1 -0
- package/chunk/{index-C6cgSdQ9.js → index-DvQoVn8P.js} +53 -50
- package/chunk/index-DvQoVn8P.js.map +1 -0
- package/chunk/{index-DyHhX3QL.js → index-DzqRsB7_.js} +17 -17
- package/chunk/{index-D6Gez9pU.js.map → index-DzqRsB7_.js.map} +1 -1
- package/chunk/{index-DR_Yi6nm.js → index-FfXcSdRM.js} +219 -237
- package/chunk/index-FfXcSdRM.js.map +1 -0
- package/chunk/{index-CGKKTwvx.js → index-FjzhfDlx.js} +9 -9
- package/chunk/{index-CGKKTwvx.js.map → index-FjzhfDlx.js.map} +1 -1
- package/chunk/{index-DPLvpl1z.js → index-Gfy-1H7s.js} +8 -8
- package/{lib/index-DNrYLi4q.js.map → chunk/index-Gfy-1H7s.js.map} +1 -1
- package/chunk/{index-BjWeyRVL.js → index-YSVzGeq_.js} +53 -50
- package/chunk/index-YSVzGeq_.js.map +1 -0
- package/chunk/{index-D8z4eipH.js → index-_t8SsXjy.js} +52 -52
- package/chunk/index-_t8SsXjy.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-CumMd2sJ.js → useCollectFieldsEndpoint-C5fsaYJe.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-CumMd2sJ.js.map → useCollectFieldsEndpoint-C5fsaYJe.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-V5bz5WAF.js → useCollectFieldsEndpoint-kmLFyUA-.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-V5bz5WAF.js.map → useCollectFieldsEndpoint-kmLFyUA-.js.map} +1 -1
- package/chunk/{useEmailFirstExperiment-CV5nAxtl.js → useEmailFirstExperiment-BbDrKQEs.js} +29 -30
- package/chunk/{useEmailFirstExperiment-CV5nAxtl.js.map → useEmailFirstExperiment-BbDrKQEs.js.map} +1 -1
- package/chunk/{useEmailFirstExperiment-mjdDc7vk.js → useEmailFirstExperiment-CgU-itQI.js} +29 -30
- package/chunk/{useEmailFirstExperiment-mjdDc7vk.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 +15 -15
- package/lib/{EmailLoopPending-CU7XS8L8.js → EmailLoopPending-Cgv6H292.js} +11 -11
- package/lib/{EmailLoopPending-CU7XS8L8.js.map → EmailLoopPending-Cgv6H292.js.map} +1 -1
- package/lib/{LicensedProfessionalOrganizationComponent-CE90PGza.js → LicensedProfessionalOrganizationComponent-BL8b4uOQ.js} +5 -5
- package/lib/{LicensedProfessionalOrganizationComponent-CE90PGza.js.map → LicensedProfessionalOrganizationComponent-BL8b4uOQ.js.map} +1 -1
- package/lib/{Onfido-CMH3IUna.js → Onfido-AyvUk6wg.js} +28 -28
- package/lib/{Onfido-CMH3IUna.js.map → Onfido-AyvUk6wg.js.map} +1 -1
- package/lib/StepCollectMilitaryStatusComponent-DhTtNN4h.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-DvJIjJ8Z.js.map → StepCollectMilitaryStatusComponent-DhTtNN4h.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-B8g2Degw.js → StepIDCheckLoopOnfido-GHJRJUvB.js} +5 -5
- package/lib/{StepIDCheckLoopOnfido-B8g2Degw.js.map → StepIDCheckLoopOnfido-GHJRJUvB.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-C971tdOB.js → StepIDCheckLoopRegula-D5eT-SKW.js} +22 -21
- package/lib/StepIDCheckLoopRegula-D5eT-SKW.js.map +1 -0
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-B-bOA0LI.js → StepInactiveMilitaryPersonalInfoComponent-D1JRxb0T.js} +49 -49
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-B-bOA0LI.js.map → StepInactiveMilitaryPersonalInfoComponent-D1JRxb0T.js.map} +1 -1
- package/lib/VerificationApiUtils-CSOIBr2l.js +23 -0
- package/lib/{VerificationApiUtils-Cn5PJJ2V.js.map → VerificationApiUtils-CSOIBr2l.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-BxF8vNXX.js → es6-Cd5CU1rk.js} +12444 -11224
- package/lib/es6-Cd5CU1rk.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-DF0_IZ4J.js → index-8rGphWWB.js} +5 -5
- package/lib/{index-DF0_IZ4J.js.map → index-8rGphWWB.js.map} +1 -1
- package/lib/index-B8_yVVjT.js +11 -0
- package/lib/index-B8_yVVjT.js.map +1 -0
- package/lib/{index-ByJQnMVd.js → index-BI7GVXtW.js} +9 -9
- package/lib/{index-ByJQnMVd.js.map → index-BI7GVXtW.js.map} +1 -1
- package/lib/index-BVSkyAhp.js +174 -0
- package/lib/index-BVSkyAhp.js.map +1 -0
- package/lib/index-BzizKoKM.js +28 -0
- package/lib/{index-BvonWwY9.js.map → index-BzizKoKM.js.map} +1 -1
- package/lib/{index-C9Fn2hpc.js → index-C-UBKjB3.js} +7 -7
- package/lib/{index-C9Fn2hpc.js.map → index-C-UBKjB3.js.map} +1 -1
- package/lib/{index-CyEPe472.js → index-CAmO2ePK.js} +28 -28
- package/lib/{index-CyEPe472.js.map → index-CAmO2ePK.js.map} +1 -1
- package/lib/{index-kFFbuxGz.js → index-CNJMsPkI.js} +30 -30
- package/lib/{index-kFFbuxGz.js.map → index-CNJMsPkI.js.map} +1 -1
- package/lib/index-COT-MMXU.js +11 -0
- package/lib/index-COT-MMXU.js.map +1 -0
- package/lib/{index-DNrYLi4q.js → index-CquhMPch.js} +10 -10
- package/{chunk/index-DPLvpl1z.js.map → lib/index-CquhMPch.js.map} +1 -1
- package/lib/{index-CkM0aH9Q.js → index-CrU_oFr5.js} +31 -31
- package/{chunk/index-whConjrR.js.map → lib/index-CrU_oFr5.js.map} +1 -1
- package/lib/{index-BM4FQqsg.js → index-CycvFL4s.js} +51 -51
- package/lib/index-CycvFL4s.js.map +1 -0
- package/lib/{index-DV-jRbN_.js → index-D8xBboSY.js} +385 -402
- package/lib/index-D8xBboSY.js.map +1 -0
- package/lib/index-DIKagexz.js +11 -0
- package/lib/index-DIKagexz.js.map +1 -0
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/index-DIkWpujR.js.map +1 -1
- package/lib/{index-DYEdh22B.js → index-DXMyDp6l.js} +5 -5
- package/lib/{index-DYEdh22B.js.map → index-DXMyDp6l.js.map} +1 -1
- package/lib/index-DapHnb_O.js +11 -0
- package/lib/index-DapHnb_O.js.map +1 -0
- package/lib/{index-CLCBNuVt.js → index-DfgcgKL8.js} +61 -61
- package/lib/{index-CLCBNuVt.js.map → index-DfgcgKL8.js.map} +1 -1
- package/lib/{index--LSZP8PV.js → index-Di4nVjsP.js} +34 -34
- package/lib/{index--LSZP8PV.js.map → index-Di4nVjsP.js.map} +1 -1
- package/lib/{index-CdboVnqo.js → index-NEgQaFMt.js} +34 -34
- package/lib/{index-CdboVnqo.js.map → index-NEgQaFMt.js.map} +1 -1
- package/lib/{index-Cm9LAqYW.js → index-V4Aq0AEi.js} +40 -37
- package/lib/index-V4Aq0AEi.js.map +1 -0
- package/lib/{index-T7cotgLv.js → index-bflegEA0.js} +27 -27
- package/lib/{index-T7cotgLv.js.map → index-bflegEA0.js.map} +1 -1
- package/lib/{index-mtr_UcW2.js → index-n33pq1qL.js} +5 -5
- package/{chunk/index-BJxmlJd1.js.map → lib/index-n33pq1qL.js.map} +1 -1
- package/lib/{index-CZyo7O6A.js → index-qKcACX8u.js} +19 -19
- package/{chunk/index-Cq8qB8GK.js.map → lib/index-qKcACX8u.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-gIqEUxfv.js → useCollectFieldsEndpoint-oar_yAF6.js} +6 -6
- package/lib/{useCollectFieldsEndpoint-gIqEUxfv.js.map → useCollectFieldsEndpoint-oar_yAF6.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-B0sWtBW-.js → useEmailFirstExperiment-CUsNZ8ig.js} +6 -7
- package/lib/{useEmailFirstExperiment-B0sWtBW-.js.map → useEmailFirstExperiment-CUsNZ8ig.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 +18344 -16741
- 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/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-1wd-jJGJ.js.map +0 -1
- package/chunk/StepIDCheckLoopRegula-jyg1vIi3.js.map +0 -1
- package/chunk/index-B_CvWvhW.js +0 -27
- package/chunk/index-B_CvWvhW.js.map +0 -1
- package/chunk/index-BjWeyRVL.js.map +0 -1
- package/chunk/index-Bv_0MGCt.js +0 -31
- package/chunk/index-Bv_0MGCt.js.map +0 -1
- package/chunk/index-C6cgSdQ9.js.map +0 -1
- package/chunk/index-D8z4eipH.js.map +0 -1
- package/chunk/index-DR_Yi6nm.js.map +0 -1
- package/chunk/index-DkuH8kG3.js.map +0 -1
- package/chunk/index-NMedOT6B.js.map +0 -1
- package/chunk/index-vIL1gjSk.js.map +0 -1
- package/chunk/index-ygMzyxW9.js.map +0 -1
- package/lib/StepCollectMilitaryStatusComponent-DvJIjJ8Z.js +0 -11
- package/lib/StepIDCheckLoopRegula-C971tdOB.js.map +0 -1
- package/lib/VerificationApiUtils-Cn5PJJ2V.js +0 -21
- package/lib/es6-BxF8vNXX.js.map +0 -1
- package/lib/index-BM4FQqsg.js.map +0 -1
- package/lib/index-BbYtScSJ.js +0 -171
- package/lib/index-BbYtScSJ.js.map +0 -1
- package/lib/index-Bf3CeTFC.js +0 -11
- package/lib/index-Bf3CeTFC.js.map +0 -1
- package/lib/index-BvonWwY9.js +0 -28
- package/lib/index-Cm9LAqYW.js.map +0 -1
- package/lib/index-DAjrVVta.js +0 -11
- package/lib/index-DAjrVVta.js.map +0 -1
- package/lib/index-DO-KFs1U.js +0 -11
- package/lib/index-DO-KFs1U.js.map +0 -1
- package/lib/index-DV-jRbN_.js.map +0 -1
- package/lib/index-GAJX_Tjm.js +0 -11
- package/lib/index-GAJX_Tjm.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-DYEdh22B.js","sources":["../../src/components/StepSMSLoop/StepSMSLoopComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { injectIntl, FormattedHTMLMessage, InjectedIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n SMSLoopResponse,\n SMSLoopViewModel,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\n\nimport { SMSCodeComponent } from \"../FormFields/SMSCode/SMSCodeComponent\";\n\nimport { VerificationApiClient } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSMSLoopProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepSMSLoop = ({ intl, verificationService }: StepSMSLoopProps) => {\n const viewModel = verificationService.viewModel as SMSLoopViewModel;\n const verificationResponse = verificationService.verificationResponse as SMSLoopResponse;\n const isErrored = Boolean(verificationService.fieldValidationErrors.smsCode);\n const previousViewModel =\n (verificationService.previousViewModel as StudentPersonalInfoViewModel) || undefined;\n\n const [stepResultMessage, setStepResultMessage] = React.useState(\"\");\n const [isAttemptLimitExceeded, setAttemptLimitExceeded] = React.useState(\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"incorrectSMSCodeAttemptLimitExceeded\"),\n );\n\n const stepSuccessMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.successResend\",\n defaultMessage: \"SMS message re-sent successfully\",\n });\n const maxTotalRetriesMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const maxRetriesPerCodeMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const errorResendingSMSMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.resend\",\n defaultMessage: \"Error sending the SMS message\",\n });\n\n React.useEffect(() => {\n if (isAttemptLimitExceeded) {\n setStepResultMessage(maxRetriesPerCodeMessage);\n }\n }, []);\n\n if (\n getSafe(() => verificationResponse.errorIds.length) &&\n !verificationService.fieldValidationErrors.smsCode\n ) {\n verificationService.updateFieldValidationErrors({\n ...verificationService.fieldValidationErrors,\n smsCode: verificationResponse.errorIds[0],\n });\n }\n\n const updateSmsCode = (value) => {\n const nextState: SMSLoopViewModel = produce(viewModel, (draft: SMSLoopViewModel) => {\n draft.smsCode = value;\n draft.phoneNumber = previousViewModel && previousViewModel.phoneNumber;\n });\n verificationService.updateViewModel(nextState);\n };\n\n const submitForm = () => {\n logger.info(\"StepSMSLoop submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.smsLoop,\n viewModel,\n verificationService.verificationResponse,\n );\n };\n\n const resendSmsCode = async (verificationId) => {\n const response = await VerificationApiClient.getResendNewSmsCode(verificationId);\n if (response) {\n setAttemptLimitExceeded(false);\n setStepResultMessage(response.status === 204 ? stepSuccessMessage : maxTotalRetriesMessage);\n } else {\n setStepResultMessage(errorResendingSMSMessage);\n }\n };\n\n return (\n <div id=\"sid-step-sms-loop\" className=\"sid-sms-loop-container sid-l-container\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.verificationCode\"\n defaultMessage=\"Verification Code\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <div className=\"sid-header__subtitle\">\n {getSafe(() => previousViewModel.phoneNumber) ? (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithNumber\"\n defaultMessage=\"We've sent an SMS message to the mobile number ending in {number}. Enter your code here.\"\n values={{\n number: getSafe(() => previousViewModel.phoneNumber.slice(-4), \"\"),\n }}\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithoutNumber\"\n defaultMessage=\"We've sent an SMS to your mobile number. Please enter the code here.\"\n />\n )}\n </div>\n\n <div className=\"sid-sms-code-id-wrapper sid-l-horz-center\">\n <SMSCodeComponent\n onChange={updateSmsCode}\n value={viewModel.smsCode}\n isErrored={isErrored}\n errorId={verificationService.fieldValidationErrors.smsCode}\n />\n </div>\n\n {stepResultMessage && (\n <div>\n <p>{stepResultMessage}</p>\n </div>\n )}\n\n <div className=\"sid-submit sid-sms-loop-submit sid-l-space-top-md sid-l-horz-center\">\n <button\n id=\"sid-submit-sms-code\"\n onClick={submitForm}\n type=\"button\"\n className=\"sid-btn sid-sms-loop-submit-btn sid-btn--dark sid-submit__continue\"\n aria-label=\"submit\"\n disabled={\n !!(!viewModel.smsCode || viewModel.smsCode.length <= 0 || isAttemptLimitExceeded)\n }\n >\n <FormattedHTMLMessage id=\"step.smsLoop.submitButton\" defaultMessage=\"Submit\" />\n </button>\n\n <div className=\"sid-l-space-left-sm\"> </div>\n\n <button\n id=\"sid-resend-sms-code\"\n onClick={() => resendSmsCode(verificationResponse.verificationId)}\n type=\"submit\"\n className=\"sid-btn sid-resend-sms-code-btn sid-btn--light sid-submit__cancel\"\n aria-label=\"re-send\"\n >\n <FormattedHTMLMessage id=\"step.smsLoop.resendButton\" defaultMessage=\"Re-send\" />\n </button>\n </div>\n\n <div className=\"sid-incorrect-number sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber1\"\n defaultMessage=\"Incorrect number? Click\"\n />\n \n <button\n type=\"button\"\n onClick={() => window.location.reload()}\n className=\"sid-incorrect-number__refresh-link sid-h-btn-link-like\"\n >\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber2\"\n defaultMessage=\"here\"\n />\n \n </button>\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber3\"\n defaultMessage=\"to return to {companyName}\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepSMSLoopComponent = injectIntl(StepSMSLoop);\n"],"names":["StepSMSLoop","intl","verificationService","viewModel","verificationResponse","isErrored","previousViewModel","stepResultMessage","setStepResultMessage","React","isAttemptLimitExceeded","setAttemptLimitExceeded","stepSuccessMessage","maxTotalRetriesMessage","maxRetriesPerCodeMessage","errorResendingSMSMessage","getSafe","updateSmsCode","value","nextState","produce","draft","submitForm","logger","VerificationStepsEnum","resendSmsCode","verificationId","response","VerificationApiClient","jsxs","jsx","AnnouncingHeader","FormattedHTMLMessage","SMSCodeComponent","companyName","StepSMSLoopComponent","injectIntl"],"mappings":";;;AAwBA,MAAMA,IAAc,CAAC,EAAE,MAAAC,GAAM,qBAAAC,QAA4C;AACvE,QAAMC,IAAYD,EAAoB,WAChCE,IAAuBF,EAAoB,sBAC3CG,IAAY,EAAQH,EAAoB,sBAAsB,SAC9DI,IACHJ,EAAoB,qBAAsD,QAEvE,CAACK,GAAmBC,CAAoB,IAAIC,EAAM,SAAS,EAAE,GAC7D,CAACC,GAAwBC,CAAuB,IAAIF,EAAM;AAAA,IAC9DL,EAAqB,YACnBA,EAAqB,SAAS,SAAS,sCAAsC;AAAA,EAAA,GAG3EQ,IAAqBX,EAAK,kBAAkB;AAAA,IAChD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,GACKY,IAAyBZ,EAAK,kBAAkB;AAAA,IACpD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,GACKa,IAA2Bb,EAAK,kBAAkB;AAAA,IACtD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,GACKc,IAA2Bd,EAAK,kBAAkB;AAAA,IACtD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB;AAEDQ,EAAAA,EAAM,UAAU,MAAM;AACpB,IAAIC,KACFF,EAAqBM,CAAwB;AAAA,EAEjD,GAAG,CAAE,CAAA,GAGHE,EAAQ,MAAMZ,EAAqB,SAAS,MAAM,KAClD,CAACF,EAAoB,sBAAsB,WAE3CA,EAAoB,4BAA4B;AAAA,IAC9C,GAAGA,EAAoB;A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A;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,QAAA;AAAA,MACjB;AAAA,MAAE;AAAA,MAEFH,gBAAAA,EAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAS,MAAM,OAAO,SAAS,OAAO;AAAA,UACtC,WAAU;AAAA,UAEV,UAAA;AAAA,YAAAC,gBAAAA,EAAA;AAAA,cAACE;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YACjB;AAAA,YAAE;AAAA,UAAA;AAAA,QAAA;AAAA,MAEJ;AAAA,4BACCA,GAAqB,EAAA,IAAG,eAAc,gBAAe,aACnD,WAACE,MACAJ,gBAAAA,EAAA;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,UACf,QAAQ,EAAE,aAAAE,EAAY;AAAA,QAAA;AAAA,MAAA,GAG5B;AAAA,IAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ,GAEaC,IAAuBC,EAAWpC,CAAW;"}
|
|
1
|
+
{"version":3,"file":"index-DXMyDp6l.js","sources":["../../src/components/StepSMSLoop/StepSMSLoopComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { injectIntl, FormattedHTMLMessage, InjectedIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n SMSLoopResponse,\n SMSLoopViewModel,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\n\nimport { SMSCodeComponent } from \"../FormFields/SMSCode/SMSCodeComponent\";\n\nimport { VerificationApiClient } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSMSLoopProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepSMSLoop = ({ intl, verificationService }: StepSMSLoopProps) => {\n const viewModel = verificationService.viewModel as SMSLoopViewModel;\n const verificationResponse = verificationService.verificationResponse as SMSLoopResponse;\n const isErrored = Boolean(verificationService.fieldValidationErrors.smsCode);\n const previousViewModel =\n (verificationService.previousViewModel as StudentPersonalInfoViewModel) || undefined;\n\n const [stepResultMessage, setStepResultMessage] = React.useState(\"\");\n const [isAttemptLimitExceeded, setAttemptLimitExceeded] = React.useState(\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"incorrectSMSCodeAttemptLimitExceeded\"),\n );\n\n const stepSuccessMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.successResend\",\n defaultMessage: \"SMS message re-sent successfully\",\n });\n const maxTotalRetriesMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const maxRetriesPerCodeMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const errorResendingSMSMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.resend\",\n defaultMessage: \"Error sending the SMS message\",\n });\n\n React.useEffect(() => {\n if (isAttemptLimitExceeded) {\n setStepResultMessage(maxRetriesPerCodeMessage);\n }\n }, []);\n\n if (\n getSafe(() => verificationResponse.errorIds.length) &&\n !verificationService.fieldValidationErrors.smsCode\n ) {\n verificationService.updateFieldValidationErrors({\n ...verificationService.fieldValidationErrors,\n smsCode: verificationResponse.errorIds[0],\n });\n }\n\n const updateSmsCode = (value) => {\n const nextState: SMSLoopViewModel = produce(viewModel, (draft: SMSLoopViewModel) => {\n draft.smsCode = value;\n draft.phoneNumber = previousViewModel && previousViewModel.phoneNumber;\n });\n verificationService.updateViewModel(nextState);\n };\n\n const submitForm = () => {\n logger.info(\"StepSMSLoop submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.smsLoop,\n viewModel,\n verificationService.verificationResponse,\n );\n };\n\n const resendSmsCode = async (verificationId) => {\n const response = await VerificationApiClient.getResendNewSmsCode(verificationId);\n if (response) {\n setAttemptLimitExceeded(false);\n setStepResultMessage(response.status === 204 ? stepSuccessMessage : maxTotalRetriesMessage);\n } else {\n setStepResultMessage(errorResendingSMSMessage);\n }\n };\n\n return (\n <div id=\"sid-step-sms-loop\" className=\"sid-sms-loop-container sid-l-container\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.verificationCode\"\n defaultMessage=\"Verification Code\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <div className=\"sid-header__subtitle\">\n {getSafe(() => previousViewModel.phoneNumber) ? (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithNumber\"\n defaultMessage=\"We've sent an SMS message to the mobile number ending in {number}. Enter your code here.\"\n values={{\n number: getSafe(() => previousViewModel.phoneNumber.slice(-4), \"\"),\n }}\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithoutNumber\"\n defaultMessage=\"We've sent an SMS to your mobile number. Please enter the code here.\"\n />\n )}\n </div>\n\n <div className=\"sid-sms-code-id-wrapper sid-l-horz-center\">\n <SMSCodeComponent\n onChange={updateSmsCode}\n value={viewModel.smsCode}\n isErrored={isErrored}\n errorId={verificationService.fieldValidationErrors.smsCode}\n />\n </div>\n\n {stepResultMessage && (\n <div>\n <p>{stepResultMessage}</p>\n </div>\n )}\n\n <div className=\"sid-submit sid-sms-loop-submit sid-l-space-top-md sid-l-horz-center\">\n <button\n id=\"sid-submit-sms-code\"\n onClick={submitForm}\n type=\"button\"\n className=\"sid-btn sid-sms-loop-submit-btn sid-btn--dark sid-submit__continue\"\n aria-label=\"submit\"\n disabled={\n !!(!viewModel.smsCode || viewModel.smsCode.length <= 0 || isAttemptLimitExceeded)\n }\n >\n <FormattedHTMLMessage id=\"step.smsLoop.submitButton\" defaultMessage=\"Submit\" />\n </button>\n\n <div className=\"sid-l-space-left-sm\"> </div>\n\n <button\n id=\"sid-resend-sms-code\"\n onClick={() => resendSmsCode(verificationResponse.verificationId)}\n type=\"submit\"\n className=\"sid-btn sid-resend-sms-code-btn sid-btn--light sid-submit__cancel\"\n aria-label=\"re-send\"\n >\n <FormattedHTMLMessage id=\"step.smsLoop.resendButton\" defaultMessage=\"Re-send\" />\n </button>\n </div>\n\n <div className=\"sid-incorrect-number sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber1\"\n defaultMessage=\"Incorrect number? Click\"\n />\n \n <button\n type=\"button\"\n onClick={() => window.location.reload()}\n className=\"sid-incorrect-number__refresh-link sid-h-btn-link-like\"\n >\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber2\"\n defaultMessage=\"here\"\n />\n \n </button>\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber3\"\n defaultMessage=\"to return to {companyName}\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepSMSLoopComponent = injectIntl(StepSMSLoop);\n"],"names":["StepSMSLoop","intl","verificationService","viewModel","verificationResponse","isErrored","previousViewModel","stepResultMessage","setStepResultMessage","React","isAttemptLimitExceeded","setAttemptLimitExceeded","stepSuccessMessage","maxTotalRetriesMessage","maxRetriesPerCodeMessage","errorResendingSMSMessage","getSafe","updateSmsCode","value","nextState","produce","draft","submitForm","logger","VerificationStepsEnum","resendSmsCode","verificationId","response","VerificationApiClient","jsxs","jsx","AnnouncingHeader","FormattedHTMLMessage","SMSCodeComponent","companyName","StepSMSLoopComponent","injectIntl"],"mappings":";;;AAwBA,MAAMA,IAAc,CAAC,EAAE,MAAAC,GAAM,qBAAAC,QAA4C;AACvE,QAAMC,IAAYD,EAAoB,WAChCE,IAAu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4BACCA,GAAqB,EAAA,IAAG,eAAc,gBAAe,aACnD,WAACE,MACAJ,gBAAAA,EAAA;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,UACf,QAAQ,EAAE,aAAAE,EAAY;AAAA,QAAA;AAAA,MAAA,EAG5B,CAAA;AAAA,IAAA,EACF,CAAA;AAAA,EAAA,GACF;AAEJ,GAEaC,IAAuBC,EAAWpC,CAAW;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* VERSION: 2.107.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1746734275088
|
|
5
|
+
* BUILD_DATE: Thu May 08 2025 19:57:55 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 3dcde0ad6edf065c5f8e85780481e41d2352c9a5
|
|
7
|
+
*/
|
|
8
|
+
import { b as f } from "./es6-Cd5CU1rk.js";
|
|
9
|
+
export {
|
|
10
|
+
f as default
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DapHnb_O.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.107.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1746734275088
|
|
5
|
+
* BUILD_DATE: Thu May 08 2025 19:57:55 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 3dcde0ad6edf065c5f8e85780481e41d2352c9a5
|
|
7
7
|
*/
|
|
8
|
-
import { k as da,
|
|
8
|
+
import { k as da, aP as m, aQ as na, B as ra, V as f, j as s, N as la, m as ua, a1 as ma, f as d, ab as ia, aR as ba, ap as ga, u as n, O as Ca, T as pa, a4 as ha, E as Ea, n as Na, X as Ia, U as xa, a9 as Ma, aM as ja, aS as za, aT as Da, a5 as ya, W as Ra, x as Fa, y as La, ai as Oa, aj as Ta, aL as qa, Y as Pa, Z as Aa, _ as wa, o as Ba, p as _a, aU as ka, i as z, l as Wa, aV as Va, aW as Ya, a3 as C, aw as Ua, aq as Ha, aK as Ka, a2 as Xa, am as $a, au as Qa, q as Za, aX as Ga } from "./es6-Cd5CU1rk.js";
|
|
9
9
|
import N from "react";
|
|
10
10
|
import { injectIntl as Ja, FormattedHTMLMessage as D } from "react-intl";
|
|
11
|
-
import { L as ca } from "./LicensedProfessionalOrganizationComponent-
|
|
11
|
+
import { L as ca } from "./LicensedProfessionalOrganizationComponent-BL8b4uOQ.js";
|
|
12
12
|
const fa = ({
|
|
13
13
|
intl: I,
|
|
14
14
|
verificationService: e
|
|
15
15
|
}) => {
|
|
16
|
-
var F, L, O, T, q,
|
|
17
|
-
const t = e.viewModel, { updateViewModel: y, programTheme: S } = e, [
|
|
18
|
-
const g =
|
|
16
|
+
var F, L, O, T, q, P, A, w, B, _, k, W, V, Y, U, H, K, X, $, Q;
|
|
17
|
+
const t = e.viewModel, { updateViewModel: y, programTheme: S } = e, [p, v] = N.useState(void 0), u = (a) => p && p.some((i) => i.key === a), { fieldValidationErrors: o } = e, h = e.verificationResponse, aa = da(h), l = (a, i) => {
|
|
18
|
+
const g = Za(
|
|
19
19
|
t,
|
|
20
20
|
(E) => {
|
|
21
21
|
E[a] = i;
|
|
@@ -28,23 +28,23 @@ const fa = ({
|
|
|
28
28
|
a
|
|
29
29
|
);
|
|
30
30
|
y(i);
|
|
31
|
-
}, x = t.localeChoice.value, sa =
|
|
31
|
+
}, x = t.localeChoice.value, sa = la(), { segment: b, availableStatuses: M } = h, ta = b.charAt(0).toUpperCase() + b.slice(1), R = () => M && (b === m.FIRST_RESPONDER || b === m.MEDICAL || b === m.LOW_INCOME || b === m.LICENSED_PROFESSIONAL || b === m.EMPLOYMENT || b === m.RECENT_MOVER || b === m.MILITARY), j = (a) => (async () => {
|
|
32
32
|
try {
|
|
33
|
-
const i = await
|
|
33
|
+
const i = await ka(
|
|
34
34
|
h.verificationId,
|
|
35
35
|
h.currentStep,
|
|
36
36
|
a
|
|
37
37
|
), g = z(() => i.fieldsToCollect.required, []);
|
|
38
38
|
R() && g.push({ key: "status" }), ea(g), v(g);
|
|
39
39
|
} catch (i) {
|
|
40
|
-
|
|
40
|
+
Wa.error(`Failed to determine fields to collect: ${i}`);
|
|
41
41
|
}
|
|
42
42
|
})(), oa = () => {
|
|
43
43
|
var a, i, g, E, Z, G, J, c;
|
|
44
44
|
switch (b) {
|
|
45
45
|
case m.STUDENT:
|
|
46
46
|
return /* @__PURE__ */ s.jsx(
|
|
47
|
-
|
|
47
|
+
Qa,
|
|
48
48
|
{
|
|
49
49
|
value: e.viewModel.organization,
|
|
50
50
|
verificationService: e,
|
|
@@ -52,20 +52,20 @@ const fa = ({
|
|
|
52
52
|
isRequired: !0,
|
|
53
53
|
disabled: (a = d("organization")) == null ? void 0 : a.disabled,
|
|
54
54
|
onChange: (r) => {
|
|
55
|
-
|
|
55
|
+
C(r, e), n("organization", r, e);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
);
|
|
59
59
|
case m.TEACHER:
|
|
60
60
|
return /* @__PURE__ */ s.jsx(
|
|
61
|
-
|
|
61
|
+
$a,
|
|
62
62
|
{
|
|
63
63
|
value: e.viewModel.organization,
|
|
64
64
|
verificationService: e,
|
|
65
65
|
isErrored: !!o.organization,
|
|
66
66
|
disabled: (i = d("organization")) == null ? void 0 : i.disabled,
|
|
67
67
|
onChange: (r) => {
|
|
68
|
-
|
|
68
|
+
C(r, e), n("organization", r, e);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
);
|
|
@@ -78,17 +78,17 @@ const fa = ({
|
|
|
78
78
|
isErrored: !!o.organization,
|
|
79
79
|
disabled: (g = d("organization")) == null ? void 0 : g.disabled,
|
|
80
80
|
onChange: (r) => {
|
|
81
|
-
|
|
81
|
+
C(r, e), n("organization", r, e);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
);
|
|
85
85
|
case m.MILITARY:
|
|
86
86
|
return /* @__PURE__ */ s.jsx(
|
|
87
|
-
|
|
87
|
+
Ka,
|
|
88
88
|
{
|
|
89
89
|
isErrored: !!o.organization,
|
|
90
90
|
onChange: (r) => {
|
|
91
|
-
|
|
91
|
+
C(r, e), n("organization", r, e);
|
|
92
92
|
},
|
|
93
93
|
value: {
|
|
94
94
|
value: z(
|
|
@@ -104,11 +104,11 @@ const fa = ({
|
|
|
104
104
|
);
|
|
105
105
|
case m.FIRST_RESPONDER:
|
|
106
106
|
return /* @__PURE__ */ s.jsx(
|
|
107
|
-
|
|
107
|
+
Ha,
|
|
108
108
|
{
|
|
109
109
|
isErrored: !!o.organization,
|
|
110
110
|
onChange: (r) => {
|
|
111
|
-
|
|
111
|
+
C(r, e), n("organization", r, e);
|
|
112
112
|
},
|
|
113
113
|
value: e.viewModel.organization,
|
|
114
114
|
verificationService: e,
|
|
@@ -117,11 +117,11 @@ const fa = ({
|
|
|
117
117
|
);
|
|
118
118
|
case m.MEDICAL:
|
|
119
119
|
return /* @__PURE__ */ s.jsx(
|
|
120
|
-
|
|
120
|
+
Ua,
|
|
121
121
|
{
|
|
122
122
|
isErrored: !!o.organization,
|
|
123
123
|
onChange: (r) => {
|
|
124
|
-
|
|
124
|
+
C(r, e), n("organization", r, e);
|
|
125
125
|
},
|
|
126
126
|
value: e.viewModel.organization,
|
|
127
127
|
verificationService: e,
|
|
@@ -134,7 +134,7 @@ const fa = ({
|
|
|
134
134
|
{
|
|
135
135
|
isErrored: !!o.organization,
|
|
136
136
|
onChange: (r) => {
|
|
137
|
-
|
|
137
|
+
C(r, e), n("organization", r, e);
|
|
138
138
|
},
|
|
139
139
|
value: e.viewModel.organization,
|
|
140
140
|
verificationService: e,
|
|
@@ -147,9 +147,9 @@ const fa = ({
|
|
|
147
147
|
{
|
|
148
148
|
isErrored: !!o.organization,
|
|
149
149
|
onChange: (r) => {
|
|
150
|
-
|
|
150
|
+
C(r, e), n("organization", r, e);
|
|
151
151
|
},
|
|
152
|
-
value:
|
|
152
|
+
value: Ya(
|
|
153
153
|
e.viewModel.organization
|
|
154
154
|
),
|
|
155
155
|
verificationService: e,
|
|
@@ -164,8 +164,8 @@ const fa = ({
|
|
|
164
164
|
return N.useEffect(() => {
|
|
165
165
|
M && b === m.MILITARY ? j({ statuses: [] }) : j({});
|
|
166
166
|
}, []), N.useEffect(() => {
|
|
167
|
-
!na(S).enabled &&
|
|
168
|
-
}, [
|
|
167
|
+
!na(S).enabled && p && p.length === 0 && ra(t, e, f.collectPersonalInfo);
|
|
168
|
+
}, [p]), N.useEffect(() => {
|
|
169
169
|
t.status && j({ statuses: [t.status] });
|
|
170
170
|
}, [t.status]), /* @__PURE__ */ s.jsxs(
|
|
171
171
|
"div",
|
|
@@ -175,26 +175,26 @@ const fa = ({
|
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ s.jsxs("div", { role: "main", children: [
|
|
177
177
|
/* @__PURE__ */ s.jsx(
|
|
178
|
-
|
|
178
|
+
ua,
|
|
179
179
|
{
|
|
180
180
|
verificationService: e,
|
|
181
181
|
classNameIdentifier: "personal-info"
|
|
182
182
|
}
|
|
183
183
|
),
|
|
184
184
|
/* @__PURE__ */ s.jsx(
|
|
185
|
-
|
|
185
|
+
ma,
|
|
186
186
|
{
|
|
187
187
|
verificationService: e,
|
|
188
188
|
disabled: (F = d("country")) == null ? void 0 : F.disabled
|
|
189
189
|
}
|
|
190
190
|
),
|
|
191
191
|
R() && /* @__PURE__ */ s.jsx(
|
|
192
|
-
|
|
192
|
+
ia,
|
|
193
193
|
{
|
|
194
194
|
segmentId: b,
|
|
195
195
|
value: {
|
|
196
196
|
value: t.status,
|
|
197
|
-
label:
|
|
197
|
+
label: ga(I, t.status, null)
|
|
198
198
|
},
|
|
199
199
|
isErrored: !!o.status,
|
|
200
200
|
errorId: `invalid${ta}Status`,
|
|
@@ -212,7 +212,7 @@ const fa = ({
|
|
|
212
212
|
u("organization") && oa(),
|
|
213
213
|
/* @__PURE__ */ s.jsxs("div", { className: "sid-names", children: [
|
|
214
214
|
u("firstName") && /* @__PURE__ */ s.jsx(
|
|
215
|
-
|
|
215
|
+
Ca,
|
|
216
216
|
{
|
|
217
217
|
value: t.firstName,
|
|
218
218
|
isErrored: !!o.firstName,
|
|
@@ -235,7 +235,7 @@ const fa = ({
|
|
|
235
235
|
)
|
|
236
236
|
] }),
|
|
237
237
|
u("birthDate") && /* @__PURE__ */ s.jsx(
|
|
238
|
-
|
|
238
|
+
ha,
|
|
239
239
|
{
|
|
240
240
|
value: t.birthDate,
|
|
241
241
|
errorId: o.birthDate,
|
|
@@ -248,7 +248,7 @@ const fa = ({
|
|
|
248
248
|
}
|
|
249
249
|
),
|
|
250
250
|
u("email") && /* @__PURE__ */ s.jsx(
|
|
251
|
-
|
|
251
|
+
Ea,
|
|
252
252
|
{
|
|
253
253
|
value: t.email,
|
|
254
254
|
isErrored: !!o.email,
|
|
@@ -256,12 +256,12 @@ const fa = ({
|
|
|
256
256
|
onChange: (a) => {
|
|
257
257
|
l("email", a), n("email", a, e);
|
|
258
258
|
},
|
|
259
|
-
onKeyDown: (a) =>
|
|
260
|
-
disabled: (
|
|
259
|
+
onKeyDown: (a) => Na(a),
|
|
260
|
+
disabled: (P = d("email")) == null ? void 0 : P.disabled
|
|
261
261
|
}
|
|
262
262
|
),
|
|
263
263
|
u("phoneNumber") && /* @__PURE__ */ s.jsx(
|
|
264
|
-
|
|
264
|
+
Ia,
|
|
265
265
|
{
|
|
266
266
|
isRequired: !!e.programTheme.smsLoopEnabled,
|
|
267
267
|
value: t.phoneNumber,
|
|
@@ -270,11 +270,11 @@ const fa = ({
|
|
|
270
270
|
l("phoneNumber", a), n("phoneNumber", a, e);
|
|
271
271
|
},
|
|
272
272
|
selectedCountryCode: t.countryChoice && t.countryChoice.value,
|
|
273
|
-
disabled: (
|
|
273
|
+
disabled: (A = d("phoneNumber")) == null ? void 0 : A.disabled
|
|
274
274
|
}
|
|
275
275
|
),
|
|
276
276
|
u("address1") && /* @__PURE__ */ s.jsx(
|
|
277
|
-
|
|
277
|
+
xa,
|
|
278
278
|
{
|
|
279
279
|
value: t.address1,
|
|
280
280
|
isRequired: !0,
|
|
@@ -287,20 +287,20 @@ const fa = ({
|
|
|
287
287
|
}
|
|
288
288
|
),
|
|
289
289
|
u("city") && /* @__PURE__ */ s.jsx(
|
|
290
|
-
|
|
290
|
+
Ma,
|
|
291
291
|
{
|
|
292
292
|
value: t.city,
|
|
293
293
|
isRequired: !0,
|
|
294
294
|
isErrored: !!o.city,
|
|
295
295
|
errorId: o.city,
|
|
296
|
-
disabled: (
|
|
296
|
+
disabled: (B = d("city")) == null ? void 0 : B.disabled,
|
|
297
297
|
onChange: (a) => {
|
|
298
298
|
l("city", a), n("city", a, e);
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
),
|
|
302
302
|
u("dischargeDate") && /* @__PURE__ */ s.jsx(
|
|
303
|
-
|
|
303
|
+
ja,
|
|
304
304
|
{
|
|
305
305
|
errorId: o.dischargeDate,
|
|
306
306
|
locale: x,
|
|
@@ -308,16 +308,16 @@ const fa = ({
|
|
|
308
308
|
l("dischargeDate", a), n("dischargeDate", a, e);
|
|
309
309
|
},
|
|
310
310
|
value: t.dischargeDate,
|
|
311
|
-
disabled: (
|
|
311
|
+
disabled: (_ = d("dischargeDate")) == null ? void 0 : _.disabled
|
|
312
312
|
}
|
|
313
313
|
),
|
|
314
314
|
u("driverLicenseNumber") && /* @__PURE__ */ s.jsx(
|
|
315
|
-
|
|
315
|
+
za,
|
|
316
316
|
{
|
|
317
317
|
value: t.driverLicenseNumber,
|
|
318
318
|
isErrored: !!o.driverLicenseNumber,
|
|
319
319
|
isRequired: !0,
|
|
320
|
-
disabled: (
|
|
320
|
+
disabled: (k = d("driverLicenseNumber")) == null ? void 0 : k.disabled,
|
|
321
321
|
onChange: (a) => {
|
|
322
322
|
l("driverLicenseNumber", a), n(
|
|
323
323
|
"driverLicenseNumber",
|
|
@@ -328,7 +328,7 @@ const fa = ({
|
|
|
328
328
|
}
|
|
329
329
|
),
|
|
330
330
|
u("ebtCardNumber") && /* @__PURE__ */ s.jsx(
|
|
331
|
-
|
|
331
|
+
Da,
|
|
332
332
|
{
|
|
333
333
|
value: t.ebtCardNumber,
|
|
334
334
|
isErrored: !!o.ebtCardNumber,
|
|
@@ -339,12 +339,12 @@ const fa = ({
|
|
|
339
339
|
}
|
|
340
340
|
),
|
|
341
341
|
u("memberId") && /* @__PURE__ */ s.jsx(
|
|
342
|
-
|
|
342
|
+
ya,
|
|
343
343
|
{
|
|
344
344
|
value: t.memberId,
|
|
345
345
|
isErrored: !!o.memberId,
|
|
346
|
-
isRequired: (
|
|
347
|
-
disabled: (
|
|
346
|
+
isRequired: (V = d("memberId")) == null ? void 0 : V.requireIfOptional,
|
|
347
|
+
disabled: (Y = d("memberId")) == null ? void 0 : Y.disabled,
|
|
348
348
|
onChange: (a) => {
|
|
349
349
|
l("memberId", a), n("memberId", a, e);
|
|
350
350
|
},
|
|
@@ -358,7 +358,7 @@ const fa = ({
|
|
|
358
358
|
}
|
|
359
359
|
),
|
|
360
360
|
u("postalCode") && /* @__PURE__ */ s.jsx(
|
|
361
|
-
|
|
361
|
+
Ra,
|
|
362
362
|
{
|
|
363
363
|
isErrored: !!o.postalCode,
|
|
364
364
|
onChange: (a) => {
|
|
@@ -369,7 +369,7 @@ const fa = ({
|
|
|
369
369
|
}
|
|
370
370
|
),
|
|
371
371
|
u("socialSecurityNumber") && /* @__PURE__ */ s.jsx("div", { className: "sid-ssn-wrapper", children: /* @__PURE__ */ s.jsx(
|
|
372
|
-
|
|
372
|
+
Fa,
|
|
373
373
|
{
|
|
374
374
|
value: t.socialSecurityNumber,
|
|
375
375
|
onChange: (a) => {
|
|
@@ -379,16 +379,16 @@ const fa = ({
|
|
|
379
379
|
e
|
|
380
380
|
);
|
|
381
381
|
},
|
|
382
|
-
isErrored: !!o[
|
|
382
|
+
isErrored: !!o[La.socialSecurityNumber],
|
|
383
383
|
placeholder: "000-00-0000",
|
|
384
384
|
disabled: (H = d("socialSecurityNumber")) == null ? void 0 : H.disabled
|
|
385
385
|
}
|
|
386
386
|
) }),
|
|
387
387
|
u("state") && /* @__PURE__ */ s.jsx(
|
|
388
|
-
|
|
388
|
+
Oa,
|
|
389
389
|
{
|
|
390
390
|
isRequired: !0,
|
|
391
|
-
options:
|
|
391
|
+
options: Ta(e.programTheme, I),
|
|
392
392
|
value: t.state || void 0,
|
|
393
393
|
isErrored: !!o.state,
|
|
394
394
|
onChange: async (a) => {
|
|
@@ -400,7 +400,7 @@ const fa = ({
|
|
|
400
400
|
}
|
|
401
401
|
),
|
|
402
402
|
u("activeDutyStartDate") && e.programTheme.strictMilitaryValidationEnabled && /* @__PURE__ */ s.jsx(
|
|
403
|
-
|
|
403
|
+
qa,
|
|
404
404
|
{
|
|
405
405
|
errorId: o.activeDutyStartDate,
|
|
406
406
|
locale: x,
|
|
@@ -412,10 +412,10 @@ const fa = ({
|
|
|
412
412
|
);
|
|
413
413
|
},
|
|
414
414
|
value: t.activeDutyStartDate,
|
|
415
|
-
disabled: (
|
|
415
|
+
disabled: (X = d("activeDutyStartDate")) == null ? void 0 : X.disabled
|
|
416
416
|
}
|
|
417
417
|
),
|
|
418
|
-
(
|
|
418
|
+
($ = sa.customFormFields) == null ? void 0 : $.map((a) => /* @__PURE__ */ s.jsx(Pa, { config: a, verificationService: e })),
|
|
419
419
|
/* @__PURE__ */ s.jsx(
|
|
420
420
|
Aa,
|
|
421
421
|
{
|
|
@@ -435,9 +435,9 @@ const fa = ({
|
|
|
435
435
|
disabled: (Q = d("marketConsentValue")) == null ? void 0 : Q.disabled
|
|
436
436
|
}
|
|
437
437
|
),
|
|
438
|
-
/* @__PURE__ */ s.jsx(
|
|
438
|
+
/* @__PURE__ */ s.jsx(wa, { verificationService: e, suffix: "CollectAboveSubmit" }),
|
|
439
439
|
/* @__PURE__ */ s.jsx(
|
|
440
|
-
|
|
440
|
+
Ba,
|
|
441
441
|
{
|
|
442
442
|
step: f.collectPersonalInfo,
|
|
443
443
|
verificationService: e,
|
|
@@ -453,7 +453,7 @@ const fa = ({
|
|
|
453
453
|
}
|
|
454
454
|
)
|
|
455
455
|
] }),
|
|
456
|
-
/* @__PURE__ */ s.jsx(
|
|
456
|
+
/* @__PURE__ */ s.jsx(_a, { verificationService: e })
|
|
457
457
|
]
|
|
458
458
|
}
|
|
459
459
|
);
|