@sheerid/jslib-nightly 2.105.0-alpha.0 → 2.107.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 +18351 -16683
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{EmailLoopPending-Dzs07hxx.js → EmailLoopPending-Dtf0p85F.js} +18 -18
- package/chunk/{EmailLoopPending-Dzs07hxx.js.map → EmailLoopPending-Dtf0p85F.js.map} +1 -1
- package/chunk/{EmailLoopPending-CKTAwQQA.js → EmailLoopPending-Dy8mLFvV.js} +18 -18
- package/chunk/{EmailLoopPending-CKTAwQQA.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-DiSAKwu6.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-UiGEZV81.js.map → chunk/index-BD2bjH-C.js.map} +1 -1
- package/chunk/{index-Dba2dHcR.js → index-BD_a0MZT.js} +21 -21
- package/chunk/{index-Dba2dHcR.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-BTR4RdFx.js +169 -0
- package/chunk/index-BTR4RdFx.js.map +1 -0
- 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-BR7Obj6X.js.map → chunk/index-Bmq6cJ3F.js.map} +1 -1
- package/chunk/{index-DPv0lytr.js → index-BpZoH-Wz.js} +21 -21
- package/chunk/{index-DPv0lytr.js.map → index-BpZoH-Wz.js.map} +1 -1
- package/chunk/{index-BjaCS2a8.js → index-BuX76GyE.js} +34 -34
- package/{lib/index-MzEDmZWe.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-eYM75vHB.js → index-CG2W8lDZ.js} +51 -54
- package/chunk/index-CG2W8lDZ.js.map +1 -0
- 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-DhpucFa7.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-CepZL7Cr.js +173 -0
- package/chunk/index-CepZL7Cr.js.map +1 -0
- package/chunk/{index-BvGP9l7M.js → index-CniY_P3e.js} +219 -237
- package/chunk/index-CniY_P3e.js.map +1 -0
- package/chunk/{index-BrkIzqD1.js → index-DDyTUP55.js} +51 -54
- package/chunk/index-DDyTUP55.js.map +1 -0
- 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-BqnEM3hj.js → index-DtH8Qo7N.js} +52 -52
- package/chunk/index-DtH8Qo7N.js.map +1 -0
- 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-BwlcJZwR.js.map → chunk/index-Gfy-1H7s.js.map} +1 -1
- package/chunk/{index-F6_JySe5.js → index-jFznw2e5.js} +52 -52
- package/chunk/index-jFznw2e5.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-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-Dv5RU8aW.js → EmailLoopPending-DmK3Dk78.js} +12 -12
- package/lib/{EmailLoopPending-Dv5RU8aW.js.map → EmailLoopPending-DmK3Dk78.js.map} +1 -1
- package/lib/LicensedProfessionalOrganizationComponent-DW-zL6gw.js +52 -0
- package/lib/LicensedProfessionalOrganizationComponent-DW-zL6gw.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-D517feFX.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-DGfjdYFR.js.map → StepCollectMilitaryStatusComponent-D517feFX.js.map} +1 -1
- package/{chunk/StepIDCheckLoopOnfido-C9iUX8TC.js → lib/StepIDCheckLoopOnfido-NUszkhqn.js} +13 -11
- package/lib/{StepIDCheckLoopOnfido-DiSAKwu6.js.map → StepIDCheckLoopOnfido-NUszkhqn.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-Cbr1wxzD.js → StepIDCheckLoopRegula-B5k4M7-s.js} +22 -21
- package/lib/StepIDCheckLoopRegula-B5k4M7-s.js.map +1 -0
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-CEneK5BB.js → StepInactiveMilitaryPersonalInfoComponent-De7qPVP3.js} +45 -45
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-CEneK5BB.js.map → StepInactiveMilitaryPersonalInfoComponent-De7qPVP3.js.map} +1 -1
- package/lib/VerificationApiUtils-Dgr2p-KR.js +23 -0
- package/lib/{VerificationApiUtils-BaeyxwKQ.js.map → VerificationApiUtils-Dgr2p-KR.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-DIUKg5Yl.js → es6-DhcaGhs8.js} +13140 -11855
- package/lib/es6-DhcaGhs8.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-UiGEZV81.js → index--hk3qU5j.js} +5 -5
- package/{chunk/index-Cq__fToG.js.map → lib/index--hk3qU5j.js.map} +1 -1
- package/lib/{index-BfZIEtAp.js → index-4U7sgQbx.js} +66 -69
- package/lib/index-4U7sgQbx.js.map +1 -0
- package/lib/{index-BNxZc3yj.js → index-BM2JvToK.js} +26 -26
- package/lib/{index-BNxZc3yj.js.map → index-BM2JvToK.js.map} +1 -1
- package/lib/{index-BwlcJZwR.js → index-B_I5R2Ce.js} +8 -8
- package/{chunk/index-Cp0C-9fh.js.map → lib/index-B_I5R2Ce.js.map} +1 -1
- package/lib/{index-CT2Bcg4x.js → index-Be5oG0nx.js} +5 -5
- package/lib/{index-CT2Bcg4x.js.map → index-Be5oG0nx.js.map} +1 -1
- package/lib/{index-BR7Obj6X.js → index-Bn7Kgzdx.js} +34 -34
- package/{chunk/index-D7O7vvSe.js.map → lib/index-Bn7Kgzdx.js.map} +1 -1
- package/lib/{index-LZPXbSqW.js → index-BsaBuTgg.js} +385 -402
- package/lib/index-BsaBuTgg.js.map +1 -0
- package/lib/{index-B8tJDCPk.js → index-C6IOYgpI.js} +76 -75
- package/lib/index-C6IOYgpI.js.map +1 -0
- package/lib/{index-348MFV_0.js → index-C7HbjJvs.js} +5 -5
- package/lib/{index-348MFV_0.js.map → index-C7HbjJvs.js.map} +1 -1
- package/lib/{index-DdQXDuhi.js → index-CphWbkm1.js} +9 -9
- package/lib/{index-DdQXDuhi.js.map → index-CphWbkm1.js.map} +1 -1
- package/lib/index-Ct_ymRT6.js +11 -0
- package/lib/index-Ct_ymRT6.js.map +1 -0
- package/lib/{index-ed6oGI-U.js → index-DHIS6PX-.js} +7 -7
- package/lib/{index-ed6oGI-U.js.map → index-DHIS6PX-.js.map} +1 -1
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/index-DIkWpujR.js.map +1 -1
- package/lib/{index-CeXTXAJi.js → index-DTK3eeAU.js} +58 -58
- package/lib/{index-CeXTXAJi.js.map → index-DTK3eeAU.js.map} +1 -1
- package/lib/index-DZkbdItU.js +28 -0
- package/lib/{index-DXdjJ-86.js.map → index-DZkbdItU.js.map} +1 -1
- package/lib/index-D_s1zEq9.js +11 -0
- package/lib/index-D_s1zEq9.js.map +1 -0
- package/lib/{index-CEOPDO2Y.js → index-DlIi02F3.js} +25 -28
- package/lib/index-DlIi02F3.js.map +1 -0
- package/lib/index-Pv3dTiem.js +11 -0
- package/lib/index-Pv3dTiem.js.map +1 -0
- package/lib/{index-MzEDmZWe.js → index-Sz0yEwC4.js} +24 -24
- package/{chunk/index-BjaCS2a8.js.map → lib/index-Sz0yEwC4.js.map} +1 -1
- package/lib/{index-5FO_J7_Z.js → index-URlzJ94n.js} +30 -30
- package/lib/{index-5FO_J7_Z.js.map → index-URlzJ94n.js.map} +1 -1
- package/lib/{index-CUzHMJTj.js → index-X06Yiw_j.js} +26 -26
- package/lib/{index-CUzHMJTj.js.map → index-X06Yiw_j.js.map} +1 -1
- package/lib/{index-CGjXCGni.js → index-c9iRwjya.js} +22 -22
- package/lib/{index-CGjXCGni.js.map → index-c9iRwjya.js.map} +1 -1
- package/lib/index-l90g2Fnn.js +11 -0
- package/lib/index-l90g2Fnn.js.map +1 -0
- package/lib/{index-s5CW4RjM.js → index-yjjxxYCV.js} +59 -59
- package/lib/index-yjjxxYCV.js.map +1 -0
- package/lib/is-CUuXi4qZ.js +4 -4
- package/lib/it-BNmynTsg.js +4 -4
- package/lib/iw-FGzquR_X.js +4 -4
- package/lib/ja-YgUpXA0l.js +4 -4
- package/lib/ko-CuNS5J_M.js +4 -4
- package/lib/lo-BEf8aFjR.js +4 -4
- package/lib/lt-DvX1gz1a.js +4 -4
- package/lib/ms-gSqM-Mfi.js +4 -4
- package/lib/nl-BE-Cid5LFlN.js +4 -4
- package/lib/nl-CUUTswxa.js +4 -4
- package/lib/no-BvUqlShV.js +4 -4
- package/lib/pl-CU8leZhI.js +4 -4
- package/lib/pt-BR-CboWpHFi.js +4 -4
- package/lib/pt-BnK7xRT_.js +4 -4
- package/lib/ro-BfAyXxSW.js +4 -4
- package/lib/ru-BD-YGPuQ.js +4 -4
- package/lib/sk-CqsabpdG.js +4 -4
- package/lib/sl-CeVAf0S_.js +4 -4
- package/lib/sr-DSaHxcCQ.js +4 -4
- package/lib/sv-DOyWYViy.js +4 -4
- package/lib/sw-2Q7Jo6wp.js +4 -4
- package/lib/th-BZ6F9sPf.js +4 -4
- package/lib/tr-om80xrv2.js +4 -4
- package/lib/uk-Dxugux8e.js +4 -4
- package/lib/ur-OBILUeZ7.js +4 -4
- package/lib/{useCollectFieldsEndpoint-CS1fVgEX.js → useCollectFieldsEndpoint-CIUfq_bG.js} +8 -8
- package/lib/{useCollectFieldsEndpoint-CS1fVgEX.js.map → useCollectFieldsEndpoint-CIUfq_bG.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-Co9DPGhK.js → useEmailFirstExperiment-Bm2bKd9p.js} +6 -7
- package/lib/{useEmailFirstExperiment-Co9DPGhK.js.map → useEmailFirstExperiment-Bm2bKd9p.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 +18547 -16879
- 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 +3 -5
- 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 +9 -12
- 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/__tests__/e2e/collectInfo/collectInfo.spec.d.ts +0 -1
- 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-BqnEM3hj.js.map +0 -1
- package/chunk/index-BrkIzqD1.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-C7nYtBX_.js +0 -172
- package/chunk/index-C7nYtBX_.js.map +0 -1
- package/chunk/index-CEi_QkyI.js.map +0 -1
- package/chunk/index-CLCPYu7D.js +0 -176
- package/chunk/index-CLCPYu7D.js.map +0 -1
- package/chunk/index-F6_JySe5.js.map +0 -1
- package/chunk/index-eYM75vHB.js.map +0 -1
- package/chunk/index-iZ8pO5if.js +0 -31
- package/chunk/index-iZ8pO5if.js.map +0 -1
- package/lib/LicensedProfessionalOrganizationComponent-DtoPR91l.js +0 -46
- package/lib/LicensedProfessionalOrganizationComponent-DtoPR91l.js.map +0 -1
- package/lib/StepCollectMilitaryStatusComponent-DGfjdYFR.js +0 -11
- package/lib/StepIDCheckLoopRegula-Cbr1wxzD.js.map +0 -1
- package/lib/VerificationApiUtils-BaeyxwKQ.js +0 -21
- package/lib/es6-DIUKg5Yl.js.map +0 -1
- package/lib/index-B8tJDCPk.js.map +0 -1
- package/lib/index-BfZIEtAp.js.map +0 -1
- package/lib/index-CEOPDO2Y.js.map +0 -1
- package/lib/index-CLowb6Wx.js +0 -11
- package/lib/index-CLowb6Wx.js.map +0 -1
- package/lib/index-DPs8xffH.js +0 -11
- package/lib/index-DPs8xffH.js.map +0 -1
- package/lib/index-DWo3Cysb.js +0 -11
- package/lib/index-DWo3Cysb.js.map +0 -1
- package/lib/index-DXdjJ-86.js +0 -28
- package/lib/index-LZPXbSqW.js.map +0 -1
- package/lib/index-TKSJ1nbf.js +0 -11
- package/lib/index-TKSJ1nbf.js.map +0 -1
- package/lib/index-s5CW4RjM.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-CeXTXAJi.js","sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\n\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n CollectPersonalInfoViewModel,\n CustomFormFieldConfig,\n Organization,\n FormSelectChoice,\n State,\n CollectFieldsResponse,\n CollectPersonalInfoResponse,\n FieldDescription,\n AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getAvailableStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, null),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={getAvailableStatuses(intl, availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\n\n {options.customFormFields?.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"names":["StepCollectPersonalInfo","intl","verificationService","viewModel","updateViewModel","programTheme","requiredFields","setRequiredFields","React","isFieldRequired","key","field","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","updatePersonalInfoViewModel","value","nextState","produce","draft","updateViewModelWithRequiredFields","newRequiredFields","produceDraftViewModelWithAllRequiredFields","locale","options","getOptions","segment","availableStatuses","pascalCaseSegment","isStatusRequired","SegmentEnum","getAndSetRequiredFields","requestBody","collectFieldsResponse","getAllFieldsToCollect","getSafe","error","logger","getOrganizationField","jsx","CollegeName","_a","getFieldConfigByFieldId","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","TeacherSchool","_b","MembershipOrganization","_c","BranchOfService","_d","FirstResponderOrganization","_e","MedicalProfessionalOrganization","_f","LicensedProfessionalOrganization","_g","LowIncomeOrganization","orgToOption","_h","getMarketConsent","submitForm","VerificationStepsEnum","jsxs","PersonalInfoHeader","CountryComponentWrapper","Status","getStatusLabel","getAvailableStatuses","status","FirstName","newValue","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","AddressComponent","CityComponent","_i","DischargeDateComponent","_j","DriverLicenseNumber","_k","EBTCardNumberComponent","_l","MemberId","_m","_n","FormattedHTMLMessage","PostalCodeComponent","_o","SocialSecurityNumber","FieldIdEnum","_p","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","_q","ActiveDutyStartDateComponent","_r","_s","config","FormFieldCustom","MarketConsentWrapper","_t","ExtraMessage","PersonalInfoStepSubmitButton","FormFooter","StepCollectPersonalInfoComponent","injectIntl"],"mappings":";;;;AAwEO,MAAMA,KAA0B,CAAC;AAAA,EACtC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoC;;AAClC,QAAMC,IAAYD,EAAoB,WAChC,EAAE,iBAAAE,GAAiB,cAAAC,EAAiB,IAAAH,GAEpC,CAACI,GAAgBC,CAAiB,IAAIC,EAAM,SAA6B,MAAS,GAElFC,IAAkB,CAACC,MACvBJ,KAAkBA,EAAe,KAAK,CAACK,MAAUA,EAAM,QAAQD,CAAG,GAE9D,EAAE,uBAAAE,EAA0B,IAAAV,GAC5BW,IACJX,EAAoB,sBAChBY,KAAqBC,GAAsBF,CAAoB,GAE/DG,IAA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AA,CAA0C;AAAA,UAG7EsC,gBAAAA,EAAA;AAAA,YAACoE;AAAAA,YAAA;AAAA,cACC,qBAAA1G;AAAA,cACA,WAAW,CAAC,CAACU,EAAsB;AAAA,cACnC,UAAU,CAAC6D,MAAa;AACtB,gBAAAzD,EAA4B,YAAY;AAAA,kBACtC,GAAGd,EAAoB,UAAU;AAAA,kBACjC,oBAAoBuE;AAAA,gBAAA,CACrB,GACD3B;AAAA,kBACE;AAAA,kBACA2B;AAAA,kBACAvE;AAAA,gBAAA;AAAA,cAEJ;AAAA,cACA,WAAAC;AAAA,cACA,WAAU0G,IAAAlE,EAAwB,oBAAoB,MAA5C,gBAAAkE,EAA+C;AAAA,YAAA;AAAA,UAC3D;AAAA,UAECrE,gBAAAA,EAAAA,IAAAsE,IAAA,EAAa,qBAAA5G,GAA0C,QAAO,qBAAqB,CAAA;AAAA,UAEpFsC,gBAAAA,EAAA;AAAA,YAACuE;AAAA,YAAA;AAAA,cACC,MAAM/C,EAAsB;AAAA,cAC5B,qBAAA9D;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAW;AAAA,cACA,YACE0B,gBAAAA,EAAA;AAAA,gBAACoD;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cACjB;AAAA,YAAA;AAAA,UAEJ;AAAA,QAAA,GACF;AAAA,QACApD,gBAAAA,MAACwE,MAAW,qBAAA9G,GAA0C;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG5D,GAEa+G,KAAmCC,GAAWlH,EAAuB;"}
|
1
|
+
{"version":3,"file":"index-DTK3eeAU.js","sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\n\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n CollectPersonalInfoViewModel,\n CustomFormFieldConfig,\n Organization,\n FormSelectChoice,\n State,\n CollectFieldsResponse,\n CollectPersonalInfoResponse,\n FieldDescription,\n AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getAvailableStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, null),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={getAvailableStatuses(intl, availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\n\n {options.customFormFields?.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"names":["StepCollectPersonalInfo","intl","verificationService","viewModel","updateViewModel","programTheme","requiredFields","setRequiredFields","React","isFieldRequired","key","field","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","updatePersonalInfoViewModel","value","nextState","produce","draft","updateViewModelWithRequiredFields","newRequiredFields","produceDraftViewModelWithAllRequiredFields","locale","options","getOptions","segment","availableStatuses","pascalCaseSegment","isStatusRequired","SegmentEnum","getAndSetRequiredFields","requestBody","collectFieldsResponse","getAllFieldsToCollect","getSafe","error","logger","getOrganizationField","jsx","CollegeName","_a","getFieldConfigByFieldId","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","TeacherSchool","_b","MembershipOrganization","_c","BranchOfService","_d","FirstResponderOrganization","_e","MedicalProfessionalOrganization","_f","LicensedProfessionalOrganization","_g","LowIncomeOrganization","orgToOption","_h","getMarketConsent","submitForm","VerificationStepsEnum","jsxs","PersonalInfoHeader","CountryComponentWrapper","Status","getStatusLabel","getAvailableStatuses","status","FirstName","newValue","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","AddressComponent","CityComponent","_i","DischargeDateComponent","_j","DriverLicenseNumber","_k","EBTCardNumberComponent","_l","MemberId","_m","_n","FormattedHTMLMessage","PostalCodeComponent","_o","SocialSecurityNumber","FieldIdEnum","_p","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","_q","ActiveDutyStartDateComponent","_r","_s","config","FormFieldCustom","MarketConsentWrapper","_t","ExtraMessage","PersonalInfoStepSubmitButton","FormFooter","StepCollectPersonalInfoComponent","injectIntl"],"mappings":";;;;AAwEO,MAAMA,KAA0B,CAAC;AAAA,EACtC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoC;;AAClC,QAAMC,IAAYD,EAAoB,WAChC,EAAE,iBAAAE,GAAiB,cAAAC,EAAA,IAAiBH,GAEpC,CAACI,GAAgBC,CAAiB,IAAIC,EAAM,SAA6B,MAAS,GAElFC,IAAkB,CAACC,MACvBJ,KAAkBA,EAAe,KAAK,CAACK,MAAUA,EAAM,QAAQD,CAAG,GAE9D,EAAE,uBAAAE,MAA0BV,GAC5BW,IACJX,EAAoB,sBAChBY,KAAqBC,GAAsBF,CAAoB,GAE/DG,IAA8B,CAACN,GAAyCO,MAAe;AAC3F,UAAMC,IAA0CC;AAAAA,MAC9ChB;AAAA,MACA,CAACiB,MAAwC;AACtC,QAAAA,EAAMV,CAAG,IAAYO;AAAA,MAAA;AAAA,IAE1B;AACA,IAAAb,EAAg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GAAGd,EAAoB,UAAU;AAAA,kBACjC,oBAAoBuE;AAAA,gBAAA,CACrB,GACD3B;AAAA,kBACE;AAAA,kBACA2B;AAAA,kBACAvE;AAAA,gBACF;AAAA,cACF;AAAA,cACA,WAAAC;AAAA,cACA,WAAU0G,IAAAlE,EAAwB,oBAAoB,MAA5C,gBAAAkE,EAA+C;AAAA,YAAA;AAAA,UAC3D;AAAA,UAECrE,gBAAAA,EAAAA,IAAAsE,IAAA,EAAa,qBAAA5G,GAA0C,QAAO,qBAAqB,CAAA;AAAA,UAEpFsC,gBAAAA,EAAA;AAAA,YAACuE;AAAA,YAAA;AAAA,cACC,MAAM/C,EAAsB;AAAA,cAC5B,qBAAA9D;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAW;AAAA,cACA,YACE0B,gBAAAA,EAAA;AAAA,gBAACoD;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,GACF;AAAA,QACApD,gBAAAA,MAACwE,MAAW,qBAAA9G,EAA0C,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACxD;AAEJ,GAEa+G,KAAmCC,GAAWlH,EAAuB;"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* VERSION: 2.107.0-alpha.0
|
4
|
+
* BUILD_TIMESTAMP: 1746502674678
|
5
|
+
* BUILD_DATE: Tue May 06 2025 03:37:54 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: f17a7649831871c7796a28ddab8dcf715fc9700c
|
7
|
+
*/
|
8
|
+
import { e as t, Q as n, j as e, I as r, L as i } from "./es6-DhcaGhs8.js";
|
9
|
+
import { Suspense as C, lazy as p } from "react";
|
10
|
+
const a = p(
|
11
|
+
() => import("./StepIDCheckLoopOnfido-NUszkhqn.js")
|
12
|
+
), d = p(
|
13
|
+
() => import("./StepIDCheckLoopRegula-B5k4M7-s.js")
|
14
|
+
), h = ({ verificationService: o }) => {
|
15
|
+
const s = o.verificationResponse, c = t(
|
16
|
+
n
|
17
|
+
) || s.idCheckServiceType;
|
18
|
+
return /* @__PURE__ */ e.jsx(
|
19
|
+
C,
|
20
|
+
{
|
21
|
+
fallback: /* @__PURE__ */ e.jsx("div", { className: "sid-l-horz-center", children: /* @__PURE__ */ e.jsx(i, { step: "idCheckLoop" }) }),
|
22
|
+
children: c === r.ID_CHECK ? /* @__PURE__ */ e.jsx(d, { verificationService: o }) : /* @__PURE__ */ e.jsx(a, { verificationService: o })
|
23
|
+
}
|
24
|
+
);
|
25
|
+
}, L = h;
|
26
|
+
export {
|
27
|
+
L as default
|
28
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-
|
1
|
+
{"version":3,"file":"index-DZkbdItU.js","sources":["../../src/components/StepIDCheckLoop/StepIDCheckLoopComponent.tsx"],"sourcesContent":["import React, { Suspense, lazy } from \"react\";\nimport { IdCheckLoopServiceType } from \"../../lib/types/runtimeTypes\";\n\nimport { IDCheckLoopResponse, VerificationService } from \"../../lib/types/types\";\n\nimport { QUERY_STRING_ID_CHECK_LOOP_SERVICE_TYPE_OVERRIDE } from \"../../constants\";\nimport { getQueryOrOption } from \"../../lib/ServerApi/TestingRouteOverrides\";\nimport { LoadingScreenComponent } from \"../LoadingScreen/LoadingScreenComponent\";\n\nconst StepIDCheckLoopOnfido = lazy(\n () => import(\"./Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido\"),\n);\nconst StepIDCheckLoopRegula = lazy(\n () => import(\"./Regula/StepIDCheckLoopRegulaComponent/StepIDCheckLoopRegula\"),\n);\n\nexport interface StepIDCheckLoopComponentProps {\n verificationService: VerificationService;\n}\n\n/**\n * The idCheckLoop step consists of two 3rd party identity verification services. One is `Onfido`, which performs a\n * governemnt ID based identity confirmation, in addition to a liveness check. The other is `Regula`, which only\n * performs identity confirmation without a liveness check. The verification API's serviceType property denotes\n * them as such.\n */\nconst StepIDCheckLoop = ({ verificationService }: StepIDCheckLoopComponentProps) => {\n const verificationResponse = verificationService.verificationResponse as IDCheckLoopResponse;\n const mockIdCheckLoopServiceType = getQueryOrOption(\n QUERY_STRING_ID_CHECK_LOOP_SERVICE_TYPE_OVERRIDE,\n );\n\n const idCheckServiceType = mockIdCheckLoopServiceType || verificationResponse.idCheckServiceType;\n\n return (\n <Suspense\n fallback={\n <div className=\"sid-l-horz-center\">\n <LoadingScreenComponent step=\"idCheckLoop\" />\n </div>\n }\n >\n {idCheckServiceType === IdCheckLoopServiceType.ID_CHECK ? (\n <StepIDCheckLoopRegula verificationService={verificationService} />\n ) : (\n <StepIDCheckLoopOnfido verificationService={verificationService} />\n )}\n </Suspense>\n );\n};\n\nexport const StepIDCheckLoopComponent = StepIDCheckLoop;\n"],"names":["StepIDCheckLoopOnfido","lazy","StepIDCheckLoopRegula","StepIDCheckLoop","verificationService","verificationResponse","idCheckServiceType","getQueryOrOption","QUERY_STRING_ID_CHECK_LOOP_SERVICE_TYPE_OVERRIDE","jsx","Suspense","LoadingScreenComponent","IdCheckLoopServiceType","StepIDCheckLoopComponent"],"mappings":";;AASA,MAAMA,IAAwBC;AAAA,EAC5B,MAAM,OAAO,qCAAsD;AACrE,GACMC,IAAwBD;AAAA,EAC5B,MAAM,OAAO,qCAA+D;AAC9E,GAYME,IAAkB,CAAC,EAAE,qBAAAC,QAAyD;AAClF,QAAMC,IAAuBD,EAAoB,sBAK3CE,IAJ6BC;AAAA,IACjCC;AAAA,EACF,KAEyDH,EAAqB;AAG5E,SAAAI,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gCACG,OAAI,EAAA,WAAU,qBACb,UAACD,gBAAAA,EAAA,IAAAE,GAAA,EAAuB,MAAK,cAAA,CAAc,EAC7C,CAAA;AAAA,MAGD,UAAAL,MAAuBM,EAAuB,WAC7CH,gBAAAA,EAAAA,IAACP,KAAsB,qBAAAE,EAA0C,CAAA,IAEhEK,gBAAAA,EAAAA,IAAAT,GAAA,EAAsB,qBAAAI,EAA0C,CAAA;AAAA,IAAA;AAAA,EAErE;AAEJ,GAEaS,IAA2BV;"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* VERSION: 2.107.0-alpha.0
|
4
|
+
* BUILD_TIMESTAMP: 1746502674678
|
5
|
+
* BUILD_DATE: Tue May 06 2025 03:37:54 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: f17a7649831871c7796a28ddab8dcf715fc9700c
|
7
|
+
*/
|
8
|
+
import { d as e } from "./es6-DhcaGhs8.js";
|
9
|
+
export {
|
10
|
+
e as default
|
11
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-D_s1zEq9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
6
|
-
* BUILD_COMMIT:
|
3
|
+
* VERSION: 2.107.0-alpha.0
|
4
|
+
* BUILD_TIMESTAMP: 1746502674678
|
5
|
+
* BUILD_DATE: Tue May 06 2025 03:37:54 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: f17a7649831871c7796a28ddab8dcf715fc9700c
|
7
7
|
*/
|
8
|
-
import {
|
8
|
+
import { k as _, j as s, M as U, m as Y, al as $, E as F, f as l, u as t, N as G, w as X, a1 as Z, ab as J, av as Q, ap as S, aw as v, a3 as ee, O as ae, T as se, a4 as oe, W as le, n as ne, X as te, a5 as de, Y as me, Z as re, _ as ie, o as pe, V as ue, aa as be, ax as Ce } from "./es6-DhcaGhs8.js";
|
9
9
|
import ge from "react";
|
10
10
|
import { injectIntl as xe, FormattedHTMLMessage as m } from "react-intl";
|
11
|
-
import { u as he } from "./useCollectFieldsEndpoint-
|
12
|
-
import { u as Me, E as Ee } from "./useEmailFirstExperiment-
|
11
|
+
import { u as he } from "./useCollectFieldsEndpoint-CIUfq_bG.js";
|
12
|
+
import { u as Me, E as Ee } from "./useEmailFirstExperiment-Bm2bKd9p.js";
|
13
13
|
const Ie = {
|
14
14
|
AT: "gbrNummer",
|
15
15
|
ES: "numeroColegiado",
|
@@ -27,17 +27,17 @@ const Ie = {
|
|
27
27
|
intl: i,
|
28
28
|
verificationService: a
|
29
29
|
}) => {
|
30
|
-
var C, g, x, h, M, E, I, j, N, f, y,
|
31
|
-
const o = a.viewModel, { fieldValidationErrors: n } = a, r = a.verificationResponse, R = _(r), L =
|
32
|
-
const A =
|
30
|
+
var C, g, x, h, M, E, I, j, N, f, y, P, c;
|
31
|
+
const o = a.viewModel, { fieldValidationErrors: n } = a, r = a.verificationResponse, R = _(r), L = G(), D = o.localeChoice.value, d = (e, W) => {
|
32
|
+
const A = be(o, e, W);
|
33
33
|
a.updateViewModel(A);
|
34
|
-
}, { isFieldOptional:
|
34
|
+
}, { isFieldOptional: w } = he({
|
35
35
|
verificationId: r.verificationId,
|
36
36
|
currentStep: r.currentStep,
|
37
37
|
viewModel: o
|
38
|
-
}), p =
|
38
|
+
}), p = w("memberId"), {
|
39
39
|
isEmailUpTop: u,
|
40
|
-
isEmailValidationLoading:
|
40
|
+
isEmailValidationLoading: T,
|
41
41
|
showFormFields: K,
|
42
42
|
emailLookupResponse: b,
|
43
43
|
emailOnBlur: O,
|
@@ -52,18 +52,15 @@ const Ie = {
|
|
52
52
|
a.verificationResponse.segment
|
53
53
|
);
|
54
54
|
return ge.useEffect(() => {
|
55
|
-
p ? a.updateViewModel({ fieldsToSkipValidation: [] },
|
56
|
-
{ fieldsToSkipValidation: ["memberId"] },
|
57
|
-
{ partial: !0 }
|
58
|
-
);
|
55
|
+
p ? a.updateViewModel({ fieldsToSkipValidation: [] }, !0) : a.updateViewModel({ fieldsToSkipValidation: ["memberId"] }, !0);
|
59
56
|
}, [p]), /* @__PURE__ */ s.jsxs(
|
60
|
-
|
57
|
+
U,
|
61
58
|
{
|
62
59
|
verificationService: a,
|
63
60
|
step: r.currentStep,
|
64
61
|
children: [
|
65
62
|
/* @__PURE__ */ s.jsx(
|
66
|
-
|
63
|
+
Y,
|
67
64
|
{
|
68
65
|
verificationService: a,
|
69
66
|
classNameIdentifier: "medical-personal-info"
|
@@ -71,7 +68,7 @@ const Ie = {
|
|
71
68
|
),
|
72
69
|
// #region email-first-experiment
|
73
70
|
u && /* @__PURE__ */ s.jsxs("div", { className: "email-input-wrapper", children: [
|
74
|
-
|
71
|
+
T && /* @__PURE__ */ s.jsx("div", { className: "email-input-wrapper-frame", children: /* @__PURE__ */ s.jsx("div", { className: "transform-scale", children: /* @__PURE__ */ s.jsx($, {}) }) }),
|
75
72
|
/* @__PURE__ */ s.jsx(
|
76
73
|
F,
|
77
74
|
{
|
@@ -102,28 +99,28 @@ const Ie = {
|
|
102
99
|
}
|
103
100
|
),
|
104
101
|
K && /* @__PURE__ */ s.jsxs("div", { className: H || !u ? "" : "sid-disable-elements", children: [
|
105
|
-
/* @__PURE__ */ s.jsx(
|
102
|
+
/* @__PURE__ */ s.jsx(X, { verificationService: a }),
|
106
103
|
/* @__PURE__ */ s.jsx(
|
107
|
-
|
104
|
+
Z,
|
108
105
|
{
|
109
106
|
verificationService: a,
|
110
107
|
disabled: (g = l("country")) == null ? void 0 : g.disabled
|
111
108
|
}
|
112
109
|
),
|
113
110
|
/* @__PURE__ */ s.jsx(
|
114
|
-
|
111
|
+
J,
|
115
112
|
{
|
116
113
|
segmentId: "medical",
|
117
114
|
value: {
|
118
115
|
value: o.status,
|
119
|
-
label:
|
116
|
+
label: S(
|
120
117
|
i,
|
121
118
|
o.status,
|
122
|
-
|
119
|
+
Ce
|
123
120
|
)
|
124
121
|
},
|
125
122
|
isErrored: !!n.status,
|
126
|
-
options:
|
123
|
+
options: Q(i, r.availableStatuses),
|
127
124
|
disabled: (x = l("status")) == null ? void 0 : x.disabled,
|
128
125
|
onChange: (e) => {
|
129
126
|
d("status", e ? e.value : ""), t(
|
@@ -238,7 +235,7 @@ const Ie = {
|
|
238
235
|
value: o.memberId,
|
239
236
|
isErrored: !!n.memberId,
|
240
237
|
isRequired: (y = l("memberId")) == null ? void 0 : y.requireIfOptional,
|
241
|
-
disabled: (
|
238
|
+
disabled: (P = l("memberId")) == null ? void 0 : P.disabled,
|
242
239
|
onChange: (e) => {
|
243
240
|
d("memberId", e), t("memberId", e, a);
|
244
241
|
},
|
@@ -275,7 +272,7 @@ const Ie = {
|
|
275
272
|
);
|
276
273
|
},
|
277
274
|
viewModel: o,
|
278
|
-
disabled: (
|
275
|
+
disabled: (c = l("marketConsentValue")) == null ? void 0 : c.disabled
|
279
276
|
}
|
280
277
|
),
|
281
278
|
/* @__PURE__ */ s.jsx(ie, { verificationService: a, suffix: "CollectAboveSubmit" }),
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-DlIi02F3.js","sources":["../../src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n MedicalProfessionalPersonalInfoViewModel,\n MedicalProfessionalPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModel,\n getStatusLabel,\n getAvailableMedicalStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { StatusComponent as MedicalStatus } from \"../FormFields/Status/StatusComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport EmailLookupResponseMessages from \"../FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent\";\nimport { LoadingSpinnerComponent } from \"../LoadingSpinner/LoadingSpinnerComponent\";\nimport { useEmailFirstExperiment } from \"../FormFields/EmailFirstCollectInfo/useEmailFirstExperiment\";\n\ninterface StepMedicalProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype MemberIdFieldType =\n | \"registrationNumber\"\n | \"numeroColegiado\"\n | \"autorisationsId\"\n | \"globalLocationNumber\"\n | \"gbrNummer\";\n\nconst memberIdMessageKeysByCountry: Record<string, MemberIdFieldType> = {\n AT: \"gbrNummer\",\n ES: \"numeroColegiado\",\n DK: \"autorisationsId\",\n CH: \"globalLocationNumber\",\n IE: \"registrationNumber\",\n GB: \"registrationNumber\",\n};\n\nconst getMemberIdMessageKeys = (country: string) => {\n const memberIdFieldType: MemberIdFieldType =\n memberIdMessageKeysByCountry[country] || \"registrationNumber\";\n return {\n labelKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Label`,\n explanationKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Explanation`,\n };\n};\n\nexport const StepMedicalProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepMedicalProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MedicalProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateMedicalProfessionalViewModel = (\n key: keyof MedicalProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldOptional } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\n\n // #region collect-info-step-email-first\n\n const {\n isEmailUpTop,\n isEmailValidationLoading,\n showFormFields,\n emailLookupResponse,\n emailOnBlur,\n emailOnKeyDown,\n handleResendClick,\n showEmailLookupResponseMessages,\n enableFormFields,\n handleOnClickProceedHere,\n } = useEmailFirstExperiment(\n verificationService.programId,\n viewModel.email,\n verificationService.verificationResponse.segment,\n );\n // #endregion collect-info-step-email-first\n\n React.useEffect(() => {\n // If the memberId field is not rendered, we shouldn't validate it\n // partially update to avoid clobbering the rest of the viewModel\n if (shouldRenderMemberId) {\n verificationService.updateViewModel({ fieldsToSkipValidation: [] }, true);\n } else {\n verificationService.updateViewModel({ fieldsToSkipValidation: [\"memberId\"] }, true);\n }\n }, [shouldRenderMemberId]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"medical-personal-info\"\n />\n\n {\n // #region email-first-experiment\n isEmailUpTop && (\n <div className=\"email-input-wrapper\">\n {isEmailValidationLoading && (\n <div className=\"email-input-wrapper-frame\">\n <div className=\"transform-scale\">\n <LoadingSpinnerComponent />\n </div>\n </div>\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={emailOnKeyDown}\n onBlur={emailOnBlur}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n </div>\n )\n // #endregion email-first-experiment\n }\n {showEmailLookupResponseMessages && emailLookupResponse && (\n <EmailLookupResponseMessages\n emailLookupResponse={emailLookupResponse}\n onResendClick={handleResendClick}\n onHandleClickLink={handleOnClickProceedHere}\n />\n )}\n {showFormFields && (\n <div className={enableFormFields || !isEmailUpTop ? \"\" : \"sid-disable-elements\"}>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <MedicalStatus\n segmentId=\"medical\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(\n intl,\n viewModel.status,\n MedicalProfessionalStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={getAvailableMedicalStatuses(intl, verificationResponse.availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateMedicalProfessionalViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel)\n .organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n {!isEmailUpTop && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldRenderMemberId && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n explanation={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).explanationKey}\n defaultMessage=\"Your Professional Membership Registration Number\"\n />\n }\n label={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).labelKey}\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMedicalProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Medical Professional Status\"\n />\n }\n />\n </div>\n )}\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMedicalProfessionalPersonalInfoComponent = injectIntl(\n StepMedicalProfessionalPersonalInfo,\n);\n"],"names":["memberIdMessageKeysByCountry","getMemberIdMessageKeys","country","memberIdFieldType","StepMedicalProfessionalPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateMedicalProfessionalViewModel","key","value","nextState","produceDraftViewModel","isFieldOptional","useCollectFieldsEndpoint","shouldRenderMemberId","isEmailUpTop","isEmailValidationLoading","showFormFields","emailLookupResponse","emailOnBlur","emailOnKeyDown","handleResendClick","showEmailLookupResponseMessages","enableFormFields","handleOnClickProceedHere","useEmailFirstExperiment","React","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","LoadingSpinnerComponent","Email","FormattedHTMLMessage","newValue","updateFieldValidationErrorsByFieldId","_a","getFieldConfigByFieldId","EmailLookupResponseMessages","ChangeLocaleV2Component","CountryComponentWrapper","_b","MedicalStatus","getStatusLabel","MedicalProfessionalStatusDefaultMessagesEnum","getAvailableMedicalStatuses","_c","status","MedicalProfessionalOrganization","choice","updateViewModelOrganization","_d","FirstName","_e","LastName","_f","BirthDate","_g","PostalCode","_h","event","handleEmailOnKeyDown","_i","PhoneNumber","_j","MemberId","_k","_l","config","FormFieldCustom","MarketConsentWrapper","_m","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMedicalProfessionalPersonalInfoComponent","injectIntl"],"mappings":";;;;;AAgEA,MAAMA,KAAkE;AAAA,EACtE,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEMC,IAAyB,CAACC,MAAoB;AAC5C,QAAAC,IACJH,GAA6BE,CAAO,KAAK;AACpC,SAAA;AAAA,IACL,UAAU,mCAAmCC,CAAiB;AAAA,IAC9D,gBAAgB,mCAAmCA,CAAiB;AAAA,EACtE;AACF,GAEaC,KAAsC,CAAC;AAAA,EAClD,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAyD;;AACvD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAW,GAErBC,IAASP,EAAU,aAAa,OAEhCQ,IAAqC,CACzCC,GACAC,MACG;AACH,UAAMC,IAAYC,GAAsBZ,GAAWS,GAAKC,CAAK;AAC7D,IAAAX,EAAoB,gBAAgBY,CAAS;AAAA,EAC/C,GAEM,EAAE,iBAAAE,EAAgB,IAAIC,GAAyB;AAAA,IACnD,gBAAgBZ,EAAqB;AAAA,IACrC,aAAaA,EAAqB;AAAA,IAClC,WAAAF;AAAA,EAAA,CACD,GACKe,IAAuBF,EAAgB,UAAU,GAIjD;AAAA,IACJ,cAAAG;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BAAAA,EAAA;AAAA,YAACyC;AAAAA,YAAA;AAAA,cACC,qBAAAxE;AAAA,cACA,WAAW,CAAC,CAACE,EAAsB;AAAA,cACnC,UAAU,CAACkC,MAAa;AACtB,gBAAA3B,EAAmC,YAAY;AAAA,kBAC7C,GAAGT,EAAoB,UAAU;AAAA,kBACjC,oBAAoBoC;AAAA,gBAAA,CACrB,GACDC;AAAA,kBACE;AAAA,kBACAD;AAAA,kBACApC;AAAA,gBACF;AAAA,cACF;AAAA,cACA,WAAAC;AAAA,cACA,WAAUwE,IAAAlC,EAAwB,oBAAoB,MAA5C,gBAAAkC,EAA+C;AAAA,YAAA;AAAA,UAC3D;AAAA,UACC1C,gBAAAA,EAAAA,IAAA2C,IAAA,EAAa,qBAAA1E,GAA0C,QAAO,qBAAqB,CAAA;AAAA,UACpF+B,gBAAAA,EAAA;AAAA,YAAC4C;AAAA,YAAA;AAAA,cACC,MAAMC,GAAsB;AAAA,cAC5B,qBAAA5E;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAG;AAAA,cACA,YACE2B,gBAAAA,EAAA;AAAA,gBAACI;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ,GAEa0C,KAA+CC;AAAA,EAC1DhF;AACF;"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* VERSION: 2.107.0-alpha.0
|
4
|
+
* BUILD_TIMESTAMP: 1746502674678
|
5
|
+
* BUILD_DATE: Tue May 06 2025 03:37:54 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: f17a7649831871c7796a28ddab8dcf715fc9700c
|
7
|
+
*/
|
8
|
+
import { c as f } from "./es6-DhcaGhs8.js";
|
9
|
+
export {
|
10
|
+
f as default
|
11
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-Pv3dTiem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -1,23 +1,23 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
6
|
-
* BUILD_COMMIT:
|
3
|
+
* VERSION: 2.107.0-alpha.0
|
4
|
+
* BUILD_TIMESTAMP: 1746502674678
|
5
|
+
* BUILD_DATE: Tue May 06 2025 03:37:54 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: f17a7649831871c7796a28ddab8dcf715fc9700c
|
7
7
|
*/
|
8
|
-
import {
|
8
|
+
import { k as A, j as a, M as U, m as X, al as Y, E as z, f as n, u as d, i as m, N as Z, w as _, a1 as G, ab as J, ao as Q, ap as $, aq as S, ar as c, q as L, O as v, T as ee, a4 as se, n as ae, X as oe, W as ne, Y as te, Z as de, _ as le, o as re, V as me, as as pe } from "./es6-DhcaGhs8.js";
|
9
9
|
import { injectIntl as ie, FormattedHTMLMessage as g } from "react-intl";
|
10
|
-
import { u as ue, E as ge } from "./useEmailFirstExperiment-
|
10
|
+
import { u as ue, E as ge } from "./useEmailFirstExperiment-Bm2bKd9p.js";
|
11
11
|
const Ce = ({
|
12
12
|
intl: C,
|
13
13
|
verificationService: s
|
14
14
|
}) => {
|
15
15
|
var h, x, E, j, F, N, M, R, I, k, y;
|
16
|
-
const o = s.viewModel, { fieldValidationErrors: t } = s, p = s.verificationResponse, D = A(p), O =
|
16
|
+
const o = s.viewModel, { fieldValidationErrors: t } = s, p = s.verificationResponse, D = A(p), O = Z(), P = o.localeChoice.value, l = (e, u) => {
|
17
17
|
const r = L(
|
18
18
|
o,
|
19
|
-
(
|
20
|
-
|
19
|
+
(W) => {
|
20
|
+
W[e] = u;
|
21
21
|
}
|
22
22
|
);
|
23
23
|
s.updateViewModel(r);
|
@@ -26,12 +26,12 @@ const Ce = ({
|
|
26
26
|
isEmailValidationLoading: T,
|
27
27
|
showFormFields: w,
|
28
28
|
emailLookupResponse: b,
|
29
|
-
emailOnBlur:
|
30
|
-
emailOnKeyDown:
|
29
|
+
emailOnBlur: f,
|
30
|
+
emailOnKeyDown: B,
|
31
31
|
handleResendClick: V,
|
32
|
-
showEmailLookupResponseMessages:
|
33
|
-
enableFormFields:
|
34
|
-
handleOnClickProceedHere:
|
32
|
+
showEmailLookupResponseMessages: q,
|
33
|
+
enableFormFields: H,
|
34
|
+
handleOnClickProceedHere: K
|
35
35
|
} = ue(
|
36
36
|
s.programId,
|
37
37
|
o.email,
|
@@ -68,39 +68,39 @@ const Ce = ({
|
|
68
68
|
onChange: (e) => {
|
69
69
|
l("email", e), d("email", e, s);
|
70
70
|
},
|
71
|
-
onKeyDown:
|
72
|
-
onBlur:
|
71
|
+
onKeyDown: B,
|
72
|
+
onBlur: f,
|
73
73
|
disabled: (h = n("email")) == null ? void 0 : h.disabled
|
74
74
|
}
|
75
75
|
)
|
76
76
|
] }) }),
|
77
|
-
|
77
|
+
q && b && /* @__PURE__ */ a.jsx(
|
78
78
|
ge,
|
79
79
|
{
|
80
80
|
emailLookupResponse: b,
|
81
81
|
onResendClick: V,
|
82
|
-
onHandleClickLink:
|
82
|
+
onHandleClickLink: K
|
83
83
|
}
|
84
84
|
),
|
85
|
-
w && /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs("div", { className:
|
86
|
-
/* @__PURE__ */ a.jsx(
|
85
|
+
w && /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs("div", { className: H || !i ? "" : "sid-disable-elements", children: [
|
86
|
+
/* @__PURE__ */ a.jsx(_, { verificationService: s }),
|
87
87
|
/* @__PURE__ */ a.jsx(
|
88
|
-
|
88
|
+
G,
|
89
89
|
{
|
90
90
|
verificationService: s,
|
91
91
|
disabled: (x = n("country")) == null ? void 0 : x.disabled
|
92
92
|
}
|
93
93
|
),
|
94
94
|
/* @__PURE__ */ a.jsx(
|
95
|
-
|
95
|
+
J,
|
96
96
|
{
|
97
97
|
segmentId: "first-responder",
|
98
98
|
value: {
|
99
99
|
value: o.status,
|
100
|
-
label:
|
100
|
+
label: $(
|
101
101
|
C,
|
102
102
|
o.status,
|
103
|
-
|
103
|
+
pe
|
104
104
|
)
|
105
105
|
},
|
106
106
|
isErrored: !!t.status,
|