@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-CZjGTko2.js","sources":["../../src/components/StepSocialSecurityNumber/SsnChoice.tsx","../../src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\n\ntype Props = {\n useSsn: () => void;\n useDocUpload: () => void;\n verificationService: any;\n};\n\nconst Step = ({ useSsn, useDocUpload, verificationService }: Props) => (\n <div id=\"sid-ssn-choice\" className=\"sid-ssn-choice-container sid-l-container sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-ssn-choice-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n <div className=\"sid-header__title sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.selectOption\"\n defaultMessage=\"Select an option\"\n tagName=\"h1\"\n />\n </div>\n </div>\n\n <div className=\"sid-ssn-choice__choice1 sid-l-space-top-lg\">\n <button\n type=\"button\"\n onClick={useSsn}\n className=\"sid-btn sid-ssn-choice-one-btn sid-btn--light sid-l-full-width sid-use-ssn\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.useSsn\"\n defaultMessage=\"Verify using your social security number\"\n />\n </button>\n </div>\n\n <div className=\"sid-ssn-choice__choice2 sid-l-space-top-md\">\n <button\n type=\"button\"\n onClick={useDocUpload}\n className=\"sid-btn sid-ssn-choice-two-btn sid-btn--light sid-l-full-width sid-use-doc-upload\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadDoc\"\n defaultMessage=\"Upload a document\"\n />\n </button>\n </div>\n </div>\n <div className=\"sid-ssn-choice__footer sid-l-space-top-lg\">\n <FormFooter verificationService={verificationService} />\n </div>\n </div>\n);\n\nexport const SsnChoice = Step;\n","import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum, FieldIdEnum } from \"../../lib/types/runtimeTypes\";\nimport { setRef } from \"../../lib/refs/refs\";\nimport { VerificationService, SocialSecurityViewModel } from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { SsnChoice } from \"./SsnChoice\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSocialSecurityNumberProps {\n verificationService: VerificationService;\n}\n\nconst Step = ({ verificationService }: StepSocialSecurityNumberProps) => {\n const [showChoice, setShowChoice] = React.useState(true);\n const viewModel = verificationService.viewModel as SocialSecurityViewModel;\n const { fieldValidationErrors } = verificationService;\n const doCancelStep = () =>\n verificationService.submitStep(\n VerificationStepsEnum.cancelSocialSecurityNumber,\n viewModel,\n verificationService.verificationResponse,\n );\n\n const updateSSNViewModel = (key: keyof SocialSecurityViewModel, value: any) => {\n const nextState: SocialSecurityViewModel = produce(\n viewModel,\n (draft: SocialSecurityViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const isSubmittable =\n viewModel.socialSecurityNumber && viewModel.socialSecurityNumber.toString().length === 9;\n\n if (showChoice) {\n return (\n <SsnChoice\n useSsn={() => setShowChoice(false)}\n useDocUpload={doCancelStep}\n verificationService={verificationService}\n />\n );\n }\n\n return (\n <div\n id=\"sid-step-social-security\"\n className=\"sid-social-sercurity-number-container sid-l-container sid-l-horz-center\"\n >\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-social-security-number-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.title\"\n defaultMessage=\"Enter your social security number\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updateSSNViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-submit-wrapper sid-l-space-top-md\">\n <div className=\"sid-social-security-number-submit sid-submit\">\n <button\n id=\"sid-submit-wrapper__collect-info\"\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.collectSocialSecurityNumber,\n )\n }\n type=\"submit\"\n className={`sid-btn sid-social-security-number-submit-btn sid-btn--dark sid-l-full-width ${\n isSubmittable ? \"\" : \"sid-btn--disabled-like\"\n }`}\n aria-label=\"submit\"\n ref={(button) => setRef(\"submitButton\", button)}\n >\n <FormattedHTMLMessage id=\"proceed\" defaultMessage=\"Proceed\" />\n </button>\n </div>\n </div>\n\n <div\n className=\"sid-form-region sid-social-security-number-upload-instead-btn sid-l-space-top-md\"\n role=\"button\"\n tabIndex={0}\n onKeyUp={doCancelStep}\n onClick={doCancelStep}\n >\n <div className=\"sid-social-security-number-upload-instead-text sid-h-link-like\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadInstead\"\n defaultMessage=\"Upload a document instead\"\n />\n </div>\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\n// TODO remove injectIntl, it's not used\nexport const StepSocialSecurityNumber = injectIntl(Step);\n"],"names":["Step","useSsn","useDocUpload","verificationService","jsxs","jsx","LogoComponent","FormattedHTMLMessage","FormFooter","SsnChoice","showChoice","setShowChoice","React","viewModel","fieldValidationErrors","doCancelStep","VerificationStepsEnum","updateSSNViewModel","key","value","nextState","produce","draft","isSubmittable","AnnouncingHeader","ChangeLocaleV2Component","SocialSecurityNumber","updateFieldValidationErrorsByFieldId","FieldIdEnum","submitForm","button","setRef","StepSocialSecurityNumber","injectIntl"],"mappings":";AAWA,MAAMA,IAAO,CAAC,EAAE,QAAAC,GAAQ,cAAAC,GAAc,qBAAAC,EAAA,MACpCC,gBAAAA,EAAAA,KAAC,OAAI,EAAA,IAAG,kBAAiB,WAAU,8DACjC,UAAA;AAAA,EAACA,gBAAAA,EAAAA,KAAA,OAAA,EAAI,MAAK,QACR,UAAA;AAAA,IAACA,gBAAAA,EAAAA,KAAA,OAAA,EAAI,WAAU,cACb,UAAA;AAAA,MAAAC,gBAAAA,EAAAA,IAAC,SAAI,WAAU,mDACb,UAACA,gBAAAA,EAAA,IAAAC,GAAA,EAAc,qBAAAH,EAA0C,CAAA,GAC3D;AAAA,MACAE,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,uCACb,UAAAA,gBAAAA,EAAA;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,UACf,SAAQ;AAAA,QAAA;AAAA,MAAA,GAEZ;AAAA,IAAA,GACF;AAAA,IAEAF,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,8CACb,UAAAA,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,SAASJ;AAAA,QACT,WAAU;AAAA,QAEV,UAAAI,gBAAAA,EAAA;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,gBAAe;AAAA,UAAA;AAAA,QACjB;AAAA,MAAA;AAAA,IAAA,GAEJ;AAAA,IAEAF,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,8CACb,UAAAA,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,SAASH;AAAA,QACT,WA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F,gBAAAA,EAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAU;AAAA,cACV,MAAK;AAAA,cACL,UAAU;AAAA,cACV,SAASU;AAAA,cACT,SAASA;AAAA,cAET,UAAAV,gBAAAA,EAAA,IAAC,OAAI,EAAA,WAAU,kEACb,UAAAA,gBAAAA,EAAA;AAAA,gBAACE;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA,GAEnB;AAAA,YAAA;AAAA,UACF;AAAA,QAAA,GACF;AAAA,QACAF,gBAAAA,MAACG,KAAW,qBAAAL,GAA0C;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG5D,GAGa6B,IAA2BC,EAAWjC,CAAI;"}
|
1
|
+
{"version":3,"file":"index-Bi9QXN5x.js","sources":["../../src/components/StepSocialSecurityNumber/SsnChoice.tsx","../../src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\n\ntype Props = {\n useSsn: () => void;\n useDocUpload: () => void;\n verificationService: any;\n};\n\nconst Step = ({ useSsn, useDocUpload, verificationService }: Props) => (\n <div id=\"sid-ssn-choice\" className=\"sid-ssn-choice-container sid-l-container sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-ssn-choice-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n <div className=\"sid-header__title sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.selectOption\"\n defaultMessage=\"Select an option\"\n tagName=\"h1\"\n />\n </div>\n </div>\n\n <div className=\"sid-ssn-choice__choice1 sid-l-space-top-lg\">\n <button\n type=\"button\"\n onClick={useSsn}\n className=\"sid-btn sid-ssn-choice-one-btn sid-btn--light sid-l-full-width sid-use-ssn\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.useSsn\"\n defaultMessage=\"Verify using your social security number\"\n />\n </button>\n </div>\n\n <div className=\"sid-ssn-choice__choice2 sid-l-space-top-md\">\n <button\n type=\"button\"\n onClick={useDocUpload}\n className=\"sid-btn sid-ssn-choice-two-btn sid-btn--light sid-l-full-width sid-use-doc-upload\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadDoc\"\n defaultMessage=\"Upload a document\"\n />\n </button>\n </div>\n </div>\n <div className=\"sid-ssn-choice__footer sid-l-space-top-lg\">\n <FormFooter verificationService={verificationService} />\n </div>\n </div>\n);\n\nexport const SsnChoice = Step;\n","import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum, FieldIdEnum } from \"../../lib/types/runtimeTypes\";\nimport { setRef } from \"../../lib/refs/refs\";\nimport { VerificationService, SocialSecurityViewModel } from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { SsnChoice } from \"./SsnChoice\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSocialSecurityNumberProps {\n verificationService: VerificationService;\n}\n\nconst Step = ({ verificationService }: StepSocialSecurityNumberProps) => {\n const [showChoice, setShowChoice] = React.useState(true);\n const viewModel = verificationService.viewModel as SocialSecurityViewModel;\n const { fieldValidationErrors } = verificationService;\n const doCancelStep = () =>\n verificationService.submitStep(\n VerificationStepsEnum.cancelSocialSecurityNumber,\n viewModel,\n verificationService.verificationResponse,\n );\n\n const updateSSNViewModel = (key: keyof SocialSecurityViewModel, value: any) => {\n const nextState: SocialSecurityViewModel = produce(\n viewModel,\n (draft: SocialSecurityViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const isSubmittable =\n viewModel.socialSecurityNumber && viewModel.socialSecurityNumber.toString().length === 9;\n\n if (showChoice) {\n return (\n <SsnChoice\n useSsn={() => setShowChoice(false)}\n useDocUpload={doCancelStep}\n verificationService={verificationService}\n />\n );\n }\n\n return (\n <div\n id=\"sid-step-social-security\"\n className=\"sid-social-sercurity-number-container sid-l-container sid-l-horz-center\"\n >\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-social-security-number-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.title\"\n defaultMessage=\"Enter your social security number\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updateSSNViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-submit-wrapper sid-l-space-top-md\">\n <div className=\"sid-social-security-number-submit sid-submit\">\n <button\n id=\"sid-submit-wrapper__collect-info\"\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.collectSocialSecurityNumber,\n )\n }\n type=\"submit\"\n className={`sid-btn sid-social-security-number-submit-btn sid-btn--dark sid-l-full-width ${\n isSubmittable ? \"\" : \"sid-btn--disabled-like\"\n }`}\n aria-label=\"submit\"\n ref={(button) => setRef(\"submitButton\", button)}\n >\n <FormattedHTMLMessage id=\"proceed\" defaultMessage=\"Proceed\" />\n </button>\n </div>\n </div>\n\n <div\n className=\"sid-form-region sid-social-security-number-upload-instead-btn sid-l-space-top-md\"\n role=\"button\"\n tabIndex={0}\n onKeyUp={doCancelStep}\n onClick={doCancelStep}\n >\n <div className=\"sid-social-security-number-upload-instead-text sid-h-link-like\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadInstead\"\n defaultMessage=\"Upload a document instead\"\n />\n </div>\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\n// TODO remove injectIntl, it's not used\nexport const StepSocialSecurityNumber = injectIntl(Step);\n"],"names":["Step","useSsn","useDocUpload","verificationService","jsxs","jsx","LogoComponent","FormattedHTMLMessage","FormFooter","SsnChoice","showChoice","setShowChoice","React","viewModel","fieldValidationErrors","doCancelStep","VerificationStepsEnum","updateSSNViewModel","key","value","nextState","produce","draft","isSubmittable","AnnouncingHeader","ChangeLocaleV2Component","SocialSecurityNumber","updateFieldValidationErrorsByFieldId","FieldIdEnum","submitForm","button","setRef","StepSocialSecurityNumber","injectIntl"],"mappings":";AAWA,MAAMA,IAAO,CAAC,EAAE,QAAAC,GAAQ,cAAAC,GAAc,qBAAAC,EAAA,MACpCC,gBAAAA,EAAAA,KAAC,OAAI,EAAA,IAAG,kBAAiB,WAAU,8DACjC,UAAA;AAAA,EAACA,gBAAAA,EAAAA,KAAA,OAAA,EAAI,MAAK,QACR,UAAA;AAAA,IAACA,gBAAAA,EAAAA,KAAA,OAAA,EAAI,WAAU,cACb,UAAA;AAAA,MAAAC,gBAAAA,EAAAA,IAAC,SAAI,WAAU,mDACb,UAACA,gBAAAA,EAAA,IAAAC,GAAA,EAAc,qBAAAH,EAA0C,CAAA,GAC3D;AAAA,MACAE,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,uCACb,UAAAA,gBAAAA,EAAA;AAAA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,EAAY,oBAAoB;AAAA,gBACnE,aAAY;AAAA,cAAA;AAAA,YAAA,EAEhB,CAAA;AAAA,UAAA,GACF;AAAA,gCAEC,OAAI,EAAA,WAAU,yDACb,UAACvB,gBAAAA,MAAA,OAAA,EAAI,WAAU,gDACb,UAAAA,gBAAAA,EAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,SAAS,MACPwB;AAAA,gBACEhB;AAAA,gBACAV;AAAA,gBACAa,EAAsB;AAAA,cACxB;AAAA,cAEF,MAAK;AAAA,cACL,WAAW,gFACTO,IAAgB,KAAK,wBACvB;AAAA,cACA,cAAW;AAAA,cACX,KAAK,CAACO,MAAWC,EAAO,gBAAgBD,CAAM;AAAA,cAE9C,UAACzB,gBAAAA,EAAA,IAAAE,GAAA,EAAqB,IAAG,WAAU,gBAAe,UAAU,CAAA;AAAA,YAAA;AAAA,aAEhE,EACF,CAAA;AAAA,UAEAF,gBAAAA,EAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAU;AAAA,cACV,MAAK;AAAA,cACL,UAAU;AAAA,cACV,SAASU;AAAA,cACT,SAASA;AAAA,cAET,UAAAV,gBAAAA,EAAA,IAAC,OAAI,EAAA,WAAU,kEACb,UAAAA,gBAAAA,EAAA;AAAA,gBAACE;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA,EAEnB,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACF,GACF;AAAA,QACAF,gBAAAA,MAACG,KAAW,qBAAAL,EAA0C,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACxD;AAEJ,GAGa6B,IAA2BC,EAAWjC,CAAI;"}
|
@@ -4,19 +4,19 @@
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
5
5
|
*/
|
6
6
|
/**
|
7
|
-
* VERSION: 2.
|
8
|
-
* BUILD_TIMESTAMP:
|
9
|
-
* BUILD_DATE:
|
10
|
-
* BUILD_COMMIT:
|
7
|
+
* VERSION: 2.107.0-alpha.0
|
8
|
+
* BUILD_TIMESTAMP: 1746502648586
|
9
|
+
* BUILD_DATE: Tue May 06 2025 03:37:28 GMT+0000 (Coordinated Universal Time)
|
10
|
+
* BUILD_COMMIT: f17a7649831871c7796a28ddab8dcf715fc9700c
|
11
11
|
*/
|
12
|
-
import { i as P, j as a,
|
12
|
+
import { i as P, j as a, t as k, v as V, P as f, w as z, Q as A, g as t, a3 as u, a4 as B, U as R, u as n, x as w, y as D, z as L, b as p, a0 as q, a5 as H, a6 as O, B as U, E as W, e as K, D as G, G as Q, M as J, H as X, f as Y, V as Z, m as _ } from "../_mysheerid-preview.js";
|
13
13
|
const $ = ({
|
14
14
|
intl: I,
|
15
15
|
verificationService: e
|
16
16
|
}) => {
|
17
17
|
var C, b, g, h, x, y, i, E, j, N, M;
|
18
|
-
const o = e.viewModel, { fieldValidationErrors: d } = e, T =
|
19
|
-
const l =
|
18
|
+
const o = e.viewModel, { fieldValidationErrors: d } = e, T = V(), m = (s, r) => {
|
19
|
+
const l = _(
|
20
20
|
o,
|
21
21
|
(F) => {
|
22
22
|
F[s] = r;
|
@@ -31,15 +31,15 @@ const $ = ({
|
|
31
31
|
step: e.verificationResponse.currentStep,
|
32
32
|
children: [
|
33
33
|
/* @__PURE__ */ a.jsx(
|
34
|
-
|
34
|
+
f,
|
35
35
|
{
|
36
36
|
verificationService: e,
|
37
37
|
classNameIdentifier: "employment"
|
38
38
|
}
|
39
39
|
),
|
40
|
-
/* @__PURE__ */ a.jsx(
|
40
|
+
/* @__PURE__ */ a.jsx(z, { verificationService: e }),
|
41
41
|
/* @__PURE__ */ a.jsx(
|
42
|
-
|
42
|
+
A,
|
43
43
|
{
|
44
44
|
verificationService: e,
|
45
45
|
disabled: (C = t("country")) == null ? void 0 : C.disabled,
|
@@ -53,20 +53,20 @@ const $ = ({
|
|
53
53
|
}
|
54
54
|
),
|
55
55
|
/* @__PURE__ */ a.jsx(
|
56
|
-
|
56
|
+
B,
|
57
57
|
{
|
58
58
|
value: e.viewModel.organization,
|
59
59
|
verificationService: e,
|
60
60
|
isErrored: !!d.organization,
|
61
61
|
disabled: (b = t("organization")) == null ? void 0 : b.disabled,
|
62
62
|
onChange: (s) => {
|
63
|
-
|
63
|
+
R(s, e), n("organization", s, e);
|
64
64
|
}
|
65
65
|
}
|
66
66
|
),
|
67
67
|
/* @__PURE__ */ a.jsxs("div", { className: "sid-names", children: [
|
68
68
|
/* @__PURE__ */ a.jsx(
|
69
|
-
|
69
|
+
w,
|
70
70
|
{
|
71
71
|
value: o.firstName,
|
72
72
|
isErrored: !!d.firstName,
|
@@ -77,7 +77,7 @@ const $ = ({
|
|
77
77
|
}
|
78
78
|
),
|
79
79
|
/* @__PURE__ */ a.jsx(
|
80
|
-
|
80
|
+
D,
|
81
81
|
{
|
82
82
|
value: o.lastName,
|
83
83
|
isErrored: !!d.lastName,
|
@@ -92,7 +92,7 @@ const $ = ({
|
|
92
92
|
o.countryChoice,
|
93
93
|
e.programTheme.config.countries
|
94
94
|
) ? /* @__PURE__ */ a.jsx(
|
95
|
-
|
95
|
+
L,
|
96
96
|
{
|
97
97
|
isErrored: !!d.address1,
|
98
98
|
errorId: d.address1,
|
@@ -110,7 +110,7 @@ const $ = ({
|
|
110
110
|
e.programTheme.config.countries
|
111
111
|
) ? /* @__PURE__ */ a.jsxs("div", { className: "sid-thirds", children: [
|
112
112
|
/* @__PURE__ */ a.jsx(
|
113
|
-
|
113
|
+
q,
|
114
114
|
{
|
115
115
|
isErrored: !!d.city,
|
116
116
|
errorId: d.city,
|
@@ -123,10 +123,10 @@ const $ = ({
|
|
123
123
|
}
|
124
124
|
),
|
125
125
|
/* @__PURE__ */ a.jsx(
|
126
|
-
|
126
|
+
H,
|
127
127
|
{
|
128
128
|
isRequired: !0,
|
129
|
-
options:
|
129
|
+
options: O(e.programTheme, I),
|
130
130
|
value: o.state || void 0,
|
131
131
|
isErrored: !!d.state,
|
132
132
|
onChange: async (s) => {
|
@@ -138,7 +138,7 @@ const $ = ({
|
|
138
138
|
}
|
139
139
|
),
|
140
140
|
/* @__PURE__ */ a.jsx(
|
141
|
-
|
141
|
+
U,
|
142
142
|
{
|
143
143
|
isErrored: !!d.postalCode,
|
144
144
|
onChange: (s) => {
|
@@ -150,7 +150,7 @@ const $ = ({
|
|
150
150
|
)
|
151
151
|
] }) : null,
|
152
152
|
/* @__PURE__ */ a.jsx(
|
153
|
-
|
153
|
+
W,
|
154
154
|
{
|
155
155
|
value: o.email,
|
156
156
|
isErrored: !!d.email,
|
@@ -164,12 +164,12 @@ const $ = ({
|
|
164
164
|
onChange: (s) => {
|
165
165
|
m("email", s), n("email", s, e);
|
166
166
|
},
|
167
|
-
onKeyDown: (s) =>
|
167
|
+
onKeyDown: (s) => K(s),
|
168
168
|
disabled: (j = t("email")) == null ? void 0 : j.disabled
|
169
169
|
}
|
170
170
|
),
|
171
171
|
e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled ? /* @__PURE__ */ a.jsx(
|
172
|
-
|
172
|
+
G,
|
173
173
|
{
|
174
174
|
isRequired: !!e.programTheme.smsLoopEnabled,
|
175
175
|
value: o.phoneNumber,
|
@@ -181,7 +181,7 @@ const $ = ({
|
|
181
181
|
disabled: (N = t("phoneNumber")) == null ? void 0 : N.disabled
|
182
182
|
}
|
183
183
|
) : null,
|
184
|
-
T.customFormFields.map((s) => /* @__PURE__ */ a.jsx(
|
184
|
+
T.customFormFields.map((s) => /* @__PURE__ */ a.jsx(Q, { config: s, verificationService: e })),
|
185
185
|
/* @__PURE__ */ a.jsx(
|
186
186
|
J,
|
187
187
|
{
|
@@ -197,11 +197,11 @@ const $ = ({
|
|
197
197
|
disabled: (M = t("marketConsentValue")) == null ? void 0 : M.disabled
|
198
198
|
}
|
199
199
|
),
|
200
|
-
/* @__PURE__ */ a.jsx(
|
200
|
+
/* @__PURE__ */ a.jsx(X, { verificationService: e, suffix: "CollectAboveSubmit" }),
|
201
201
|
/* @__PURE__ */ a.jsx(
|
202
|
-
|
202
|
+
Y,
|
203
203
|
{
|
204
|
-
step:
|
204
|
+
step: Z.collectEmployeePersonalInfo,
|
205
205
|
verificationService: e,
|
206
206
|
viewModel: o,
|
207
207
|
buttonText: /* @__PURE__ */ a.jsx(
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-BR7Obj6X.js","sources":["../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n VerificationService,\n Organization,\n EmploymentPersonalInfoViewModel,\n CustomFormFieldConfig,\n FormSelectChoice,\n State,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\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 { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\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\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [\"address1\", \"city\", \"state\", \"postalCode\"];\n } else {\n viewModel.fieldsToSkipValidation = undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).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 <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\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 updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\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 updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\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 updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"names":["StepEmploymentPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","options","getOptions","updateEmploymentViewModel","key","value","nextState","produce","draft","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","countryChoice","shouldCollectAddressFields","CompanyComponent","_b","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","_c","newValue","LastName","_d","AddressComponent","_e","FormattedHTMLMessage","CityComponent","_f","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","_g","PostalCodeComponent","_h","Email","event","handleEmailOnKeyDown","_i","PhoneNumber","_j","config","FormFieldCustom","MarketConsentWrapper","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepEmploymentPerson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cesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n VerificationService,\n Organization,\n EmploymentPersonalInfoViewModel,\n CustomFormFieldConfig,\n FormSelectChoice,\n State,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\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 { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\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\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [\"address1\", \"city\", \"state\", \"postalCode\"];\n } else {\n viewModel.fieldsToSkipValidation = undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).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 <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\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 updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\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 updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\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 updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"names":["StepEmploymentPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","options","getOptions","updateEmploymentViewModel","key","value","nextState","produce","draft","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","countryChoice","shouldCollectAddressFields","CompanyComponent","_b","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","_c","newValue","LastName","_d","AddressComponent","_e","FormattedHTMLMessage","CityComponent","_f","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","_g","PostalCodeComponent","_h","Email","event","handleEmailOnKeyDown","_i","PhoneNumber","_j","config","FormFieldCustom","MarketConsentWrapper","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepEmploymentPersonalInfoComponent","injectIntl"],"mappings":";AAkDA,MAAMA,IAA6B,CAAC;AAAA,EAClC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAgD;;AAC9C,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IAAUC,EAAW,GAErBC,IAA4B,CAACC,GAA4CC,MAAe;AAC5F,UAAMC,IAA6CC;AAAAA,MACjDR;AAAA,MACA,CAACS,MAA2C;AACzC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA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,EAAA;AAAA,UAACsC;AAAAA,UAAA;AAAA,YACC,qBAAAnD;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,YACnC,UAAU,CAAC0B,MAAa;AACtB,cAAAvB,EAA0B,YAAY;AAAA,gBACpC,GAAGL,EAAoB,UAAU;AAAA,gBACjC,oBAAoB4B;AAAA,cAAA,CACrB,GACoCH,EAAA,sBAAsBG,GAAU5B,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAC;AAAA,YACA,WAAUmD,IAAAlC,EAAwB,oBAAoB,MAA5C,gBAAAkC,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAECvC,gBAAAA,EAAAA,IAAAwC,GAAA,EAAa,qBAAArD,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpFa,gBAAAA,EAAA;AAAA,UAACyC;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAvD;AAAA,YACA,WAAAC;AAAA,YACA,YACEY,gBAAAA,EAAA;AAAA,cAACoB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAGauB,IAAsCC,EAAW3D,CAA0B;"}
|
@@ -4,15 +4,15 @@
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
5
5
|
*/
|
6
6
|
/**
|
7
|
-
* VERSION: 2.
|
8
|
-
* BUILD_TIMESTAMP:
|
9
|
-
* BUILD_DATE:
|
10
|
-
* BUILD_COMMIT:
|
7
|
+
* VERSION: 2.107.0-alpha.0
|
8
|
+
* BUILD_TIMESTAMP: 1746502648586
|
9
|
+
* BUILD_DATE: Tue May 06 2025 03:37:28 GMT+0000 (Coordinated Universal Time)
|
10
|
+
* BUILD_COMMIT: f17a7649831871c7796a28ddab8dcf715fc9700c
|
11
11
|
*/
|
12
|
-
import { i as I, h as f,
|
12
|
+
import { i as I, h as f, s as y, j as a, t as F, v as P, P as R, w as T, x as k, g as n, u as l, y as B, z as L, b as m, B as V, E as A, e as q, D, G as H, M as K, H as O, f as W, V as w, m as z } from "../_mysheerid-preview.js";
|
13
13
|
const G = ({ verificationService: e }) => {
|
14
14
|
var p, u, C, b, x, h, N;
|
15
|
-
const o = e.viewModel, { fieldValidationErrors: t } = e, r = e.verificationResponse,
|
15
|
+
const o = e.viewModel, { fieldValidationErrors: t } = e, r = e.verificationResponse, g = f(r), M = P(), d = (s, j) => {
|
16
16
|
const E = z(
|
17
17
|
o,
|
18
18
|
(i) => {
|
@@ -30,16 +30,16 @@ const G = ({ verificationService: e }) => {
|
|
30
30
|
step: r.currentStep,
|
31
31
|
children: [
|
32
32
|
/* @__PURE__ */ a.jsx(
|
33
|
-
|
33
|
+
R,
|
34
34
|
{
|
35
35
|
verificationService: e,
|
36
36
|
classNameIdentifier: "mover-personal-info"
|
37
37
|
}
|
38
38
|
),
|
39
|
-
/* @__PURE__ */ a.jsx(
|
39
|
+
/* @__PURE__ */ a.jsx(T, { verificationService: e }),
|
40
40
|
/* @__PURE__ */ a.jsxs("div", { className: "sid-names", children: [
|
41
41
|
/* @__PURE__ */ a.jsx(
|
42
|
-
|
42
|
+
k,
|
43
43
|
{
|
44
44
|
value: o.firstName,
|
45
45
|
isErrored: !!t.firstName,
|
@@ -50,7 +50,7 @@ const G = ({ verificationService: e }) => {
|
|
50
50
|
}
|
51
51
|
),
|
52
52
|
/* @__PURE__ */ a.jsx(
|
53
|
-
|
53
|
+
B,
|
54
54
|
{
|
55
55
|
value: o.lastName,
|
56
56
|
isErrored: !!t.lastName,
|
@@ -62,7 +62,7 @@ const G = ({ verificationService: e }) => {
|
|
62
62
|
)
|
63
63
|
] }),
|
64
64
|
/* @__PURE__ */ a.jsx(
|
65
|
-
|
65
|
+
L,
|
66
66
|
{
|
67
67
|
value: o.address1,
|
68
68
|
isErrored: !!t.address1,
|
@@ -76,7 +76,7 @@ const G = ({ verificationService: e }) => {
|
|
76
76
|
}
|
77
77
|
),
|
78
78
|
/* @__PURE__ */ a.jsx(
|
79
|
-
|
79
|
+
V,
|
80
80
|
{
|
81
81
|
value: o.postalCode,
|
82
82
|
isErrored: !!t.postalCode,
|
@@ -87,7 +87,7 @@ const G = ({ verificationService: e }) => {
|
|
87
87
|
}
|
88
88
|
),
|
89
89
|
/* @__PURE__ */ a.jsx(
|
90
|
-
|
90
|
+
A,
|
91
91
|
{
|
92
92
|
value: o.email,
|
93
93
|
isErrored: !!t.email,
|
@@ -101,12 +101,12 @@ const G = ({ verificationService: e }) => {
|
|
101
101
|
onChange: (s) => {
|
102
102
|
d("email", s), l("email", s, e);
|
103
103
|
},
|
104
|
-
onKeyDown: (s) =>
|
104
|
+
onKeyDown: (s) => q(s),
|
105
105
|
disabled: (x = n("email")) == null ? void 0 : x.disabled
|
106
106
|
}
|
107
107
|
),
|
108
108
|
e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled ? /* @__PURE__ */ a.jsx(
|
109
|
-
|
109
|
+
D,
|
110
110
|
{
|
111
111
|
isRequired: !!e.programTheme.smsLoopEnabled,
|
112
112
|
value: o.phoneNumber,
|
@@ -118,9 +118,9 @@ const G = ({ verificationService: e }) => {
|
|
118
118
|
disabled: (h = n("phoneNumber")) == null ? void 0 : h.disabled
|
119
119
|
}
|
120
120
|
) : null,
|
121
|
-
|
121
|
+
M.customFormFields.map((s) => /* @__PURE__ */ a.jsx(H, { config: s, verificationService: e })),
|
122
122
|
/* @__PURE__ */ a.jsx(
|
123
|
-
|
123
|
+
K,
|
124
124
|
{
|
125
125
|
verificationService: e,
|
126
126
|
isErrored: !!t.marketConsentValue,
|
@@ -134,14 +134,14 @@ const G = ({ verificationService: e }) => {
|
|
134
134
|
disabled: (N = n("marketConsentValue")) == null ? void 0 : N.disabled
|
135
135
|
}
|
136
136
|
),
|
137
|
-
/* @__PURE__ */ a.jsx(
|
137
|
+
/* @__PURE__ */ a.jsx(O, { verificationService: e, suffix: "CollectAboveSubmit" }),
|
138
138
|
/* @__PURE__ */ a.jsx(
|
139
|
-
|
139
|
+
W,
|
140
140
|
{
|
141
|
-
step:
|
141
|
+
step: w.collectMoverPersonalInfo,
|
142
142
|
verificationService: e,
|
143
143
|
viewModel: o,
|
144
|
-
failedInstantMatch:
|
144
|
+
failedInstantMatch: g,
|
145
145
|
buttonText: /* @__PURE__ */ a.jsx(
|
146
146
|
m,
|
147
147
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-DPv0lytr.js","sources":["../../src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.tsx"],"sourcesContent":["import React, { useEffect } from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationService,\n MoverPersonalInfoViewModel,\n MoverPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { AddressComponent as Address } from \"../FormFields/Address/AddressComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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\";\n\ninterface StepMoverPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMoverPersonalInfo = ({ verificationService }: StepMoverPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MoverPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MoverPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const updateMoverViewModel = (key: keyof MoverPersonalInfoViewModel, value: any) => {\n const nextState: MoverPersonalInfoViewModel = produce(\n viewModel,\n (draft: MoverPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n // We do not want a drop down list, just apply available statuses to the viewModel\n useEffect(() => {\n updateMoverViewModel(\"statuses\", verificationResponse.availableStatuses);\n }, []);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"mover-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\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 updateMoverViewModel(\"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 updateMoverViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Address\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateMoverViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"streetAddress\" defaultMessage=\"Street Address\" />}\n isRequired\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n />\n\n <PostalCode\n value={viewModel.postalCode}\n isErrored={!!fieldValidationErrors.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n onChange={(newValue) => {\n updateMoverViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n />\n\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 updateMoverViewModel(\"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 updateMoverViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\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 updateMoverViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMoverPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Recent Mover Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMoverPersonalInfoComponent = injectIntl(StepMoverPersonalInfo);\n"],"names":["StepMoverPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","updateMoverViewModel","key","value","nextState","produce","draft","useEffect","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","FirstName","_a","getFieldConfigByFieldId","newValue","updateFieldValidationErrorsByFieldId","LastName","_b","Address","FormattedHTMLMessage","_c","PostalCode","_d","Email","event","handleEmailOnKeyDown","_e","PhoneNumber","_f","config","FormFieldCustom","MarketConsentWrapper","_g","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMoverPersonalInfoComponent","injectIntl"],"mappings":";AAsCA,MAAMA,IAAwB,CAAC,EAAE,qBAAAC,QAA+D;;AAC9F,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,EAA0B,IAAAF,GAC5BG,IACJH,EAAoB,sBA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;AAAA,UAAC0B;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAA5C;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEa,gBAAAA,EAAA;AAAA,cAACW;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaiB,IAAiCC,EAAW/C,CAAqB;"}
|
1
|
+
{"version":3,"file":"index-BpZoH-Wz.js","sources":["../../src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.tsx"],"sourcesContent":["import React, { useEffect } from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationService,\n MoverPersonalInfoViewModel,\n MoverPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { AddressComponent as Address } from \"../FormFields/Address/AddressComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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\";\n\ninterface StepMoverPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMoverPersonalInfo = ({ verificationService }: StepMoverPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MoverPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MoverPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const updateMoverViewModel = (key: keyof MoverPersonalInfoViewModel, value: any) => {\n const nextState: MoverPersonalInfoViewModel = produce(\n viewModel,\n (draft: MoverPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n // We do not want a drop down list, just apply available statuses to the viewModel\n useEffect(() => {\n updateMoverViewModel(\"statuses\", verificationResponse.availableStatuses);\n }, []);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"mover-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\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 updateMoverViewModel(\"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 updateMoverViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Address\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateMoverViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"streetAddress\" defaultMessage=\"Street Address\" />}\n isRequired\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n />\n\n <PostalCode\n value={viewModel.postalCode}\n isErrored={!!fieldValidationErrors.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n onChange={(newValue) => {\n updateMoverViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n />\n\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 updateMoverViewModel(\"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 updateMoverViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\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 updateMoverViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMoverPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Recent Mover Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMoverPersonalInfoComponent = injectIntl(StepMoverPersonalInfo);\n"],"names":["StepMoverPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","updateMoverViewModel","key","value","nextState","produce","draft","useEffect","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","FirstName","_a","getFieldConfigByFieldId","newValue","updateFieldValidationErrorsByFieldId","LastName","_b","Address","FormattedHTMLMessage","_c","PostalCode","_d","Email","event","handleEmailOnKeyDown","_e","PhoneNumber","_f","config","FormFieldCustom","MarketConsentWrapper","_g","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMoverPersonalInfoComponent","injectIntl"],"mappings":";AAsCA,MAAMA,IAAwB,CAAC,EAAE,qBAAAC,QAA+D;;AAC9F,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EA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