@sheerid/jslib-nightly 2.115.0-alpha.2 → 2.115.0-alpha.3
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/_mysheerid-preview.css +3 -3
- package/_mysheerid-preview.js +31 -31
- package/chunk/EmailLoopPending-Dtf0p85F.js +3 -3
- package/chunk/EmailLoopPending-Dy8mLFvV.js +3 -3
- package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +3 -3
- package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +3 -3
- package/chunk/Onfido-AyvUk6wg.js +3 -3
- package/chunk/{StepIDCheckLoopOnfido-DPftaR9s.js → StepIDCheckLoopOnfido--3Fw5dMg.js} +4 -4
- package/chunk/{StepIDCheckLoopOnfido-DPftaR9s.js.map → StepIDCheckLoopOnfido--3Fw5dMg.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-wrbezEdo.js → StepIDCheckLoopOnfido-CeiLgm_c.js} +4 -4
- package/chunk/{StepIDCheckLoopOnfido-wrbezEdo.js.map → StepIDCheckLoopOnfido-CeiLgm_c.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-CoJkGsDn.js → StepIDCheckLoopRegula-BFSb544w.js} +5 -5
- package/chunk/{StepIDCheckLoopRegula-5mxsRVU3.js.map → StepIDCheckLoopRegula-BFSb544w.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-5mxsRVU3.js → StepIDCheckLoopRegula-DDR_mxSn.js} +5 -5
- package/chunk/{StepIDCheckLoopRegula-CoJkGsDn.js.map → StepIDCheckLoopRegula-DDR_mxSn.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js → StepInactiveMilitaryPersonalInfoComponent-Dhm9dCs2.js} +15 -15
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js.map → StepInactiveMilitaryPersonalInfoComponent-Dhm9dCs2.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js → StepInactiveMilitaryPersonalInfoComponent-_NISUzZF.js} +15 -15
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js.map → StepInactiveMilitaryPersonalInfoComponent-_NISUzZF.js.map} +1 -1
- package/chunk/ar-BZsYQiJv.js +3 -3
- package/chunk/bg-DB_ZEB5O.js +3 -3
- package/chunk/bn-IN-D69rNeuh.js +3 -3
- package/chunk/cs-Dk4czWE5.js +3 -3
- package/chunk/da-NesYkkEW.js +3 -3
- package/chunk/de-4yAGb-JC.js +3 -3
- package/chunk/el-D1h3O3E7.js +3 -3
- package/chunk/en-GB-QY9gqmlz.js +3 -3
- package/chunk/es-BYhP2rUk.js +3 -3
- package/chunk/es-ES-BJLdehwH.js +3 -3
- package/chunk/fi-D-Ycqh7I.js +3 -3
- package/chunk/fr-CA-a8W9ZT_A.js +3 -3
- package/chunk/fr-DR25pnXw.js +3 -3
- package/chunk/ga-Bj6efXd2.js +3 -3
- package/chunk/hi-IN-C-u9_T8L.js +3 -3
- package/chunk/hr-B8E9jyUX.js +3 -3
- package/chunk/hu-C7z4yBSK.js +3 -3
- package/chunk/id-AsEkOlRu.js +3 -3
- package/chunk/{index-YSVzGeq_.js → index-3wRIidxQ.js} +17 -17
- package/chunk/{index-DvQoVn8P.js.map → index-3wRIidxQ.js.map} +1 -1
- package/chunk/{index-DFKdt9N2.js → index-4zf9jvK6.js} +9 -9
- package/chunk/{index-DFKdt9N2.js.map → index-4zf9jvK6.js.map} +1 -1
- package/chunk/{index-h1dR7dZA.js → index-8gjxKx0J.js} +5 -5
- package/chunk/{index-BrulkRve.js.map → index-8gjxKx0J.js.map} +1 -1
- package/chunk/index-B8KPM--K.js +3 -3
- package/chunk/index-BD2bjH-C.js +3 -3
- package/chunk/index-BD_a0MZT.js +3 -3
- package/chunk/{index-Cp0trvsP.js → index-BFMzh8b3.js} +34 -31
- package/chunk/index-BFMzh8b3.js.map +1 -0
- package/chunk/{index-_t8SsXjy.js → index-BSmAslR-.js} +11 -11
- package/chunk/{index-_t8SsXjy.js.map → index-BSmAslR-.js.map} +1 -1
- package/chunk/{index-DvQoVn8P.js → index-BYGkr72X.js} +17 -17
- package/chunk/{index-YSVzGeq_.js.map → index-BYGkr72X.js.map} +1 -1
- package/chunk/{index-C8MQD8EK.js → index-Bemwq78a.js} +8 -8
- package/chunk/{index-4APUDd8S.js.map → index-Bemwq78a.js.map} +1 -1
- package/chunk/{index-DDOySTBb.js → index-BgAd7a0x.js} +15 -15
- package/chunk/{index-BElPqx0Q.js.map → index-BgAd7a0x.js.map} +1 -1
- package/chunk/index-BpZoH-Wz.js +3 -3
- package/chunk/{index-CsPUjZ8r.js → index-ByBO6KNx.js} +34 -35
- package/chunk/{index-CsPUjZ8r.js.map → index-ByBO6KNx.js.map} +1 -1
- package/chunk/{index-4APUDd8S.js → index-C-YPXV3H.js} +8 -8
- package/chunk/{index-C8MQD8EK.js.map → index-C-YPXV3H.js.map} +1 -1
- package/chunk/{index-B0RXjf3X.js → index-C29suvHQ.js} +34 -31
- package/chunk/index-C29suvHQ.js.map +1 -0
- package/chunk/index-C2h0Wj84.js +3 -3
- package/chunk/{index-C96ntS0u.js → index-C9UAjull.js} +11 -11
- package/chunk/{index-Bmq6cJ3F.js.map → index-C9UAjull.js.map} +1 -1
- package/chunk/index-CcRowarb.js +3 -3
- package/chunk/index-CeHu2Npu.js +3 -3
- package/chunk/{index-Bmq6cJ3F.js → index-DEKYtYJV.js} +11 -11
- package/chunk/{index-C96ntS0u.js.map → index-DEKYtYJV.js.map} +1 -1
- package/chunk/{index-Dg8t7-dm.js → index-DHrneLz9.js} +14 -14
- package/chunk/{index-B8F8N-JM.js.map → index-DHrneLz9.js.map} +1 -1
- package/chunk/index-DIkWpujR.js +3 -3
- package/chunk/index-DRmBhdAn.js +3 -3
- package/chunk/{index-BElPqx0Q.js → index-DUXQFubY.js} +15 -15
- package/chunk/{index-DDOySTBb.js.map → index-DUXQFubY.js.map} +1 -1
- package/chunk/index-DVynViqA.js +3 -3
- package/chunk/{index-DhGg9lvf.js → index-Dg6e8PFO.js} +12 -12
- package/chunk/{index-BDrKYann.js.map → index-Dg6e8PFO.js.map} +1 -1
- package/chunk/{index-brVWUjHi.js → index-DgXh3iXb.js} +9 -9
- package/chunk/{index-brVWUjHi.js.map → index-DgXh3iXb.js.map} +1 -1
- package/chunk/{index-BuX76GyE.js → index-Dw4HZdl4.js} +8 -8
- package/chunk/{index-DO5Z3e-E.js.map → index-Dw4HZdl4.js.map} +1 -1
- package/chunk/{index-BDrKYann.js → index-DypbXiPM.js} +12 -12
- package/chunk/{index-DhGg9lvf.js.map → index-DypbXiPM.js.map} +1 -1
- package/chunk/{index-DsgCNIS5.js → index-FfsFdWXt.js} +9 -9
- package/chunk/{index-D_9J6arc.js.map → index-FfsFdWXt.js.map} +1 -1
- package/chunk/{index-C-G05eCw.js → index-TysYb0wj.js} +4 -4
- package/chunk/{index-C-G05eCw.js.map → index-TysYb0wj.js.map} +1 -1
- package/chunk/{index-DP5XPjKi.js → index-VrTXSLSj.js} +34 -35
- package/chunk/{index-DP5XPjKi.js.map → index-VrTXSLSj.js.map} +1 -1
- package/chunk/index-VxNSWlHu.js +3 -3
- package/chunk/{index-B8F8N-JM.js → index-Z410glzc.js} +14 -14
- package/chunk/{index-Dg8t7-dm.js.map → index-Z410glzc.js.map} +1 -1
- package/chunk/{index-BrulkRve.js → index-aRiqFbd1.js} +5 -5
- package/chunk/{index-h1dR7dZA.js.map → index-aRiqFbd1.js.map} +1 -1
- package/chunk/{index-D4Nea32j.js → index-eDr5_bvN.js} +4 -4
- package/chunk/{index-D4Nea32j.js.map → index-eDr5_bvN.js.map} +1 -1
- package/chunk/{index-D_9J6arc.js → index-f8an5bUm.js} +9 -9
- package/chunk/{index-DsgCNIS5.js.map → index-f8an5bUm.js.map} +1 -1
- package/chunk/{index-DO5Z3e-E.js → index-m9Gpah9q.js} +8 -8
- package/chunk/{index-BuX76GyE.js.map → index-m9Gpah9q.js.map} +1 -1
- package/chunk/{index-BTMETMEE.js → index-qj9OiaWM.js} +11 -11
- package/chunk/{index-BTMETMEE.js.map → index-qj9OiaWM.js.map} +1 -1
- package/chunk/is-PzizLXcv.js +3 -3
- package/chunk/it-CiJeQN1_.js +3 -3
- package/chunk/iw-QHmqNHZP.js +3 -3
- package/chunk/ja-DPgVvasb.js +3 -3
- package/chunk/ko-DykOu1Yp.js +3 -3
- package/chunk/lo-C4bFrJOj.js +3 -3
- package/chunk/lt-KjZ7oOV5.js +3 -3
- package/chunk/ms-CNvzXjsH.js +3 -3
- package/chunk/nl-BE-BXbsNtu2.js +3 -3
- package/chunk/nl-ucuj2G5l.js +3 -3
- package/chunk/no-D8IuXJ7O.js +3 -3
- package/chunk/pl-DvnUkXGb.js +3 -3
- package/chunk/pt-BR-Be00Hx-L.js +3 -3
- package/chunk/pt-DS7isrlt.js +3 -3
- package/chunk/ro-BHCICvJV.js +3 -3
- package/chunk/ru-DUDtL41i.js +3 -3
- package/chunk/sk-O9yqW58Q.js +3 -3
- package/chunk/sl-CxcvfiDu.js +3 -3
- package/chunk/sr-DgvzAvVS.js +3 -3
- package/chunk/sv-BtktR0mm.js +3 -3
- package/chunk/sw-D06YJhji.js +3 -3
- package/chunk/th-C1KZhtMd.js +3 -3
- package/chunk/tr-CqpbTukW.js +3 -3
- package/chunk/uk-BWHH_jN1.js +3 -3
- package/chunk/ur-BHWni4Fn.js +3 -3
- package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js +3 -3
- package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js +3 -3
- package/chunk/useEmailFirstExperiment-BbDrKQEs.js +3 -3
- package/chunk/useEmailFirstExperiment-CgU-itQI.js +3 -3
- package/chunk/vi-DVhQHKtP.js +3 -3
- package/chunk/zh-HK-C-wTSVhL.js +3 -3
- package/chunk/zh-qa3hzwEB.js +3 -3
- package/chunk/zu-DwVIy-bC.js +3 -3
- package/es6.css +3 -3
- package/jslib.js +4 -4
- package/lib/{EmailLoopPending-1RfnE4mt.js → EmailLoopPending-CRs0n7WO.js} +4 -4
- package/lib/{EmailLoopPending-1RfnE4mt.js.map → EmailLoopPending-CRs0n7WO.js.map} +1 -1
- package/lib/{LicensedProfessionalOrganizationComponent-1EOmC_XF.js → LicensedProfessionalOrganizationComponent-DpimxCKC.js} +4 -4
- package/lib/{LicensedProfessionalOrganizationComponent-1EOmC_XF.js.map → LicensedProfessionalOrganizationComponent-DpimxCKC.js.map} +1 -1
- package/lib/Onfido-AyvUk6wg.js +3 -3
- package/lib/StepCollectMilitaryStatusComponent-DjIRHg05.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-BQkj7ZoB.js.map → StepCollectMilitaryStatusComponent-DjIRHg05.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-B3HvjOZj.js → StepIDCheckLoopOnfido-DNOdBaAR.js} +4 -4
- package/lib/{StepIDCheckLoopOnfido-B3HvjOZj.js.map → StepIDCheckLoopOnfido-DNOdBaAR.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-DIeNhWoA.js → StepIDCheckLoopRegula-CX73icyg.js} +4 -4
- package/lib/{StepIDCheckLoopRegula-DIeNhWoA.js.map → StepIDCheckLoopRegula-CX73icyg.js.map} +1 -1
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-D-xj1LVu.js → StepInactiveMilitaryPersonalInfoComponent-CeJIe91S.js} +18 -18
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-D-xj1LVu.js.map → StepInactiveMilitaryPersonalInfoComponent-CeJIe91S.js.map} +1 -1
- package/lib/{VerificationApiUtils-DdSD4k-s.js → VerificationApiUtils-DCEPKSOt.js} +4 -4
- package/lib/{VerificationApiUtils-DdSD4k-s.js.map → VerificationApiUtils-DCEPKSOt.js.map} +1 -1
- package/lib/ar-BZsYQiJv.js +3 -3
- package/lib/bg-DB_ZEB5O.js +3 -3
- package/lib/bn-IN-D69rNeuh.js +3 -3
- package/lib/cs-Dk4czWE5.js +3 -3
- package/lib/da-NesYkkEW.js +3 -3
- package/lib/de-4yAGb-JC.js +3 -3
- package/lib/el-D1h3O3E7.js +3 -3
- package/lib/en-GB-QY9gqmlz.js +3 -3
- package/lib/es-BYhP2rUk.js +3 -3
- package/lib/es-ES-BJLdehwH.js +3 -3
- package/lib/{es6-DoczaIOS.js → es6-C2abemUD.js} +44 -44
- package/lib/{es6-DoczaIOS.js.map → es6-C2abemUD.js.map} +1 -1
- package/lib/fi-D-Ycqh7I.js +3 -3
- package/lib/fr-CA-a8W9ZT_A.js +3 -3
- package/lib/fr-DR25pnXw.js +3 -3
- package/lib/ga-Bj6efXd2.js +3 -3
- package/lib/hi-IN-C-u9_T8L.js +3 -3
- package/lib/hr-B8E9jyUX.js +3 -3
- package/lib/hu-C7z4yBSK.js +3 -3
- package/lib/id-AsEkOlRu.js +3 -3
- package/lib/{index-CVStpTnM.js → index--1Hzxve4.js} +6 -6
- package/lib/{index-CVStpTnM.js.map → index--1Hzxve4.js.map} +1 -1
- package/lib/{index-C94vhVR4.js → index-7L1Z0u1-.js} +4 -4
- package/lib/{index-C94vhVR4.js.map → index-7L1Z0u1-.js.map} +1 -1
- package/lib/{index-BHpxeZvo.js → index-84DA_jT2.js} +10 -10
- package/lib/{index-BHpxeZvo.js.map → index-84DA_jT2.js.map} +1 -1
- package/lib/{index-DhavY2m5.js → index-8kESiptt.js} +4 -4
- package/lib/{index-DhavY2m5.js.map → index-8kESiptt.js.map} +1 -1
- package/lib/{index-BU0lsrnW.js → index-B_BS9qnQ.js} +12 -12
- package/lib/{index-BU0lsrnW.js.map → index-B_BS9qnQ.js.map} +1 -1
- package/lib/{index-BTku6Nav.js → index-Bb5tkw_V.js} +8 -8
- package/lib/{index-BTku6Nav.js.map → index-Bb5tkw_V.js.map} +1 -1
- package/lib/index-Bm_R6wgA.js +11 -0
- package/lib/index-Bm_R6wgA.js.map +1 -0
- package/lib/{index-C28KGyFC.js → index-BtM1XPhl.js} +4 -4
- package/lib/{index-C28KGyFC.js.map → index-BtM1XPhl.js.map} +1 -1
- package/lib/{index-DdKZTMDD.js → index-BzZl5JDO.js} +36 -32
- package/lib/index-BzZl5JDO.js.map +1 -0
- package/lib/{index-CCIzkIQB.js → index-C3CtMm2Q.js} +13 -13
- package/lib/{index-CCIzkIQB.js.map → index-C3CtMm2Q.js.map} +1 -1
- package/lib/index-CNmUvsR-.js +11 -0
- package/lib/index-CNmUvsR-.js.map +1 -0
- package/lib/{index-BtwZxcpp.js → index-CS_JuJR3.js} +8 -8
- package/lib/{index-BtwZxcpp.js.map → index-CS_JuJR3.js.map} +1 -1
- package/lib/index-Cg0pahuD.js +11 -0
- package/lib/index-Cg0pahuD.js.map +1 -0
- package/lib/{index-86CuJOnE.js → index-DCCPfELa.js} +4 -4
- package/lib/{index-86CuJOnE.js.map → index-DCCPfELa.js.map} +1 -1
- package/lib/index-DIkWpujR.js +3 -3
- package/lib/index-DbQvQo1A.js +11 -0
- package/lib/index-DbQvQo1A.js.map +1 -0
- package/lib/{index-CY047n3D.js → index-DbaJBiSs.js} +6 -6
- package/lib/{index-CY047n3D.js.map → index-DbaJBiSs.js.map} +1 -1
- package/lib/{index-DblwzU8U.js → index-DdKeUKWu.js} +5 -5
- package/lib/{index-DblwzU8U.js.map → index-DdKeUKWu.js.map} +1 -1
- package/lib/{index-C8QQR_XI.js → index-DlwFWaiY.js} +13 -13
- package/lib/{index-C8QQR_XI.js.map → index-DlwFWaiY.js.map} +1 -1
- package/lib/{index-BEzio-vG.js → index-Dm5PevSE.js} +10 -10
- package/lib/{index-BEzio-vG.js.map → index-Dm5PevSE.js.map} +1 -1
- package/lib/{index-CRqc1g9s.js → index-DrxXRhEO.js} +4 -4
- package/lib/{index-CRqc1g9s.js.map → index-DrxXRhEO.js.map} +1 -1
- package/lib/{index-BZ9TBRcn.js → index-EEqCPFo8.js} +8 -8
- package/lib/{index-BZ9TBRcn.js.map → index-EEqCPFo8.js.map} +1 -1
- package/lib/{index-D1rQZWS-.js → index-K0J2eq7Y.js} +38 -39
- package/lib/index-K0J2eq7Y.js.map +1 -0
- package/lib/{index-BV42p1ID.js → index-PtF39r2i.js} +7 -7
- package/lib/{index-BV42p1ID.js.map → index-PtF39r2i.js.map} +1 -1
- package/lib/is-PzizLXcv.js +3 -3
- package/lib/it-CiJeQN1_.js +3 -3
- package/lib/iw-QHmqNHZP.js +3 -3
- package/lib/ja-DPgVvasb.js +3 -3
- package/lib/ko-DykOu1Yp.js +3 -3
- package/lib/lo-C4bFrJOj.js +3 -3
- package/lib/lt-KjZ7oOV5.js +3 -3
- package/lib/ms-CNvzXjsH.js +3 -3
- package/lib/nl-BE-BXbsNtu2.js +3 -3
- package/lib/nl-ucuj2G5l.js +3 -3
- package/lib/no-D8IuXJ7O.js +3 -3
- package/lib/pl-DvnUkXGb.js +3 -3
- package/lib/pt-BR-Be00Hx-L.js +3 -3
- package/lib/pt-DS7isrlt.js +3 -3
- package/lib/ro-BHCICvJV.js +3 -3
- package/lib/ru-DUDtL41i.js +3 -3
- package/lib/sk-O9yqW58Q.js +3 -3
- package/lib/sl-CxcvfiDu.js +3 -3
- package/lib/sr-DgvzAvVS.js +3 -3
- package/lib/sv-BtktR0mm.js +3 -3
- package/lib/sw-D06YJhji.js +3 -3
- package/lib/th-C1KZhtMd.js +3 -3
- package/lib/tr-CqpbTukW.js +3 -3
- package/lib/uk-BWHH_jN1.js +3 -3
- package/lib/ur-BHWni4Fn.js +3 -3
- package/lib/{useCollectFieldsEndpoint-CHfpu8rz.js → useCollectFieldsEndpoint-C9_ygIzy.js} +5 -5
- package/lib/{useCollectFieldsEndpoint-CHfpu8rz.js.map → useCollectFieldsEndpoint-C9_ygIzy.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-BW42yQPm.js → useEmailFirstExperiment-Cib954tq.js} +4 -4
- package/lib/{useEmailFirstExperiment-BW42yQPm.js.map → useEmailFirstExperiment-Cib954tq.js.map} +1 -1
- package/lib/vi-DVhQHKtP.js +3 -3
- package/lib/zh-HK-C-wTSVhL.js +3 -3
- package/lib/zh-qa3hzwEB.js +3 -3
- package/lib/zu-DwVIy-bC.js +3 -3
- package/package.json +1 -1
- package/sheerid-install.css +3 -3
- package/sheerid-install.js +4 -4
- package/sheerid.css +3 -3
- package/sheerid.js +31 -31
- package/types-reference.zip +0 -0
- package/chunk/index-B0RXjf3X.js.map +0 -1
- package/chunk/index-Cp0trvsP.js.map +0 -1
- package/lib/StepCollectMilitaryStatusComponent-BQkj7ZoB.js +0 -11
- package/lib/index-CcAsLQCG.js +0 -11
- package/lib/index-CcAsLQCG.js.map +0 -1
- package/lib/index-Cnu2Xjr1.js +0 -11
- package/lib/index-Cnu2Xjr1.js.map +0 -1
- package/lib/index-D--q13gK.js +0 -11
- package/lib/index-D--q13gK.js.map +0 -1
- package/lib/index-D1rQZWS-.js.map +0 -1
- package/lib/index-DdKZTMDD.js.map +0 -1
- package/lib/index-PsAje25X.js +0 -11
- package/lib/index-PsAje25X.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-
|
1
|
+
{"version":3,"file":"index-DbaJBiSs.js","sources":["../../src/components/StepIDCheckLoop/StepIDCheckLoopComponent.tsx"],"sourcesContent":["import React, { Suspense, lazy } from \"react\";\nimport { IdCheckLoopServiceType } from \"../../lib/types/runtimeTypes\";\n\nimport { IDCheckLoopResponse, VerificationService } from \"../../lib/types/types\";\n\nimport { QUERY_STRING_ID_CHECK_LOOP_SERVICE_TYPE_OVERRIDE } from \"../../constants\";\nimport { getQueryOrOption } from \"../../lib/ServerApi/TestingRouteOverrides\";\nimport { LoadingScreenComponent } from \"../LoadingScreen/LoadingScreenComponent\";\n\nconst StepIDCheckLoopOnfido = lazy(\n () => import(\"./Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido\"),\n);\nconst StepIDCheckLoopRegula = lazy(\n () => import(\"./Regula/StepIDCheckLoopRegulaComponent/StepIDCheckLoopRegula\"),\n);\n\nexport interface StepIDCheckLoopComponentProps {\n verificationService: VerificationService;\n}\n\n/**\n * The idCheckLoop step consists of two 3rd party identity verification services. One is `Onfido`, which performs a\n * governemnt ID based identity confirmation, in addition to a liveness check. The other is `Regula`, which only\n * performs identity confirmation without a liveness check. The verification API's serviceType property denotes\n * them as such.\n */\nconst StepIDCheckLoop = ({ verificationService }: StepIDCheckLoopComponentProps) => {\n const verificationResponse = verificationService.verificationResponse as IDCheckLoopResponse;\n const mockIdCheckLoopServiceType = getQueryOrOption(\n QUERY_STRING_ID_CHECK_LOOP_SERVICE_TYPE_OVERRIDE,\n );\n\n const idCheckServiceType = mockIdCheckLoopServiceType || verificationResponse.idCheckServiceType;\n\n return (\n <Suspense\n fallback={\n <div className=\"sid-l-horz-center\">\n <LoadingScreenComponent step=\"idCheckLoop\" />\n </div>\n }\n >\n {idCheckServiceType === IdCheckLoopServiceType.ID_CHECK ? (\n <StepIDCheckLoopRegula verificationService={verificationService} />\n ) : (\n <StepIDCheckLoopOnfido verificationService={verificationService} />\n )}\n </Suspense>\n );\n};\n\nexport const StepIDCheckLoopComponent = StepIDCheckLoop;\n"],"names":["StepIDCheckLoopOnfido","lazy","StepIDCheckLoopRegula","StepIDCheckLoop","verificationService","verificationResponse","idCheckServiceType","getQueryOrOption","QUERY_STRING_ID_CHECK_LOOP_SERVICE_TYPE_OVERRIDE","jsx","Suspense","LoadingScreenComponent","IdCheckLoopServiceType","StepIDCheckLoopComponent"],"mappings":";;AASA,MAAMA,IAAwBC;AAAA,EAC5B,MAAM,OAAO,qCAAsD;AACrE,GACMC,IAAwBD;AAAA,EAC5B,MAAM,OAAO,qCAA+D;AAC9E,GAYME,IAAkB,CAAC,EAAE,qBAAAC,QAAyD;AAClF,QAAMC,IAAuBD,EAAoB,sBAK3CE,IAJ6BC;AAAA,IACjCC;AAAA,EACF,KAEyDH,EAAqB;AAG5E,SAAAI,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gCACG,OAAI,EAAA,WAAU,qBACb,UAACD,gBAAAA,EAAA,IAAAE,GAAA,EAAuB,MAAK,cAAA,CAAc,EAC7C,CAAA;AAAA,MAGD,UAAAL,MAAuBM,EAAuB,WAC7CH,gBAAAA,EAAAA,IAACP,KAAsB,qBAAAE,EAA0C,CAAA,IAEhEK,gBAAAA,EAAAA,IAAAT,GAAA,EAAsB,qBAAAI,EAA0C,CAAA;AAAA,IAAA;AAAA,EAErE;AAEJ,GAEaS,IAA2BV;"}
|
@@ -1,14 +1,14 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.115.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE: Mon Jul 07 2025
|
3
|
+
* VERSION: 2.115.0-alpha.3
|
4
|
+
* BUILD_TIMESTAMP: 1751931390816
|
5
|
+
* BUILD_DATE: Mon Jul 07 2025 23:36:30 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
|
7
7
|
*/
|
8
|
-
import { at as B, f as o, j as a,
|
8
|
+
import { at as B, f as o, j as a, a5 as $, k as S, q as v, M as ee, m as ae, al as se, E as R, u as r, N as ne, z as te, a0 as oe, au as le, a2 as L, O as de, T as re, a3 as me, n as ie, X as ue, Y as pe, Z as be, _ as ce, o as Ce, V as ge } from "./es6-C2abemUD.js";
|
9
9
|
import g from "react";
|
10
10
|
import { injectIntl as he, FormattedHTMLMessage as m } from "react-intl";
|
11
|
-
import { u as xe, E as Ne, a as w } from "./useEmailFirstExperiment-
|
11
|
+
import { u as xe, E as Ne, a as w } from "./useEmailFirstExperiment-Cib954tq.js";
|
12
12
|
const Ee = ({
|
13
13
|
value: e,
|
14
14
|
isErrored: n,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-DblwzU8U.js","sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumber = ({\n value,\n isErrored,\n onChange,\n intl,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"cvecNumberPlaceholder\",\n defaultMessage: \"CVEC certificate number\",\n })\n }\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\nexport const CVECNumberComponent = injectIntl(CVECNumber);\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\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 updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport EmailLookupResponseMessages from \"../FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent\";\nimport { LoadingSpinnerComponent } from \"../LoadingSpinner/LoadingSpinnerComponent\";\nimport { useEmailFirstExperiment } from \"../FormFields/EmailFirstCollectInfo/useEmailFirstExperiment\";\nimport { EmailLookupStatus } from \"../FormFields/EmailFirstCollectInfo/types\";\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepStudentPersonalInfo = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n\n React.useEffect(() => {\n if (showCvecInput) {\n updateStudentViewModel(\"fieldsToSkipValidation\", []);\n } else {\n // Don't validate CVEC number if country is not France\n updateStudentViewModel(\"fieldsToSkipValidation\", [\"cvecNumber\"]);\n }\n }, [showCvecInput]);\n // #endregion include-cvec-field-france-student\n\n // #region collect-info-step-email-first\n const {\n isEmailUpTop,\n isEmailValidationLoading,\n showFormFields,\n emailLookupResponse,\n emailOnBlur,\n emailOnKeyDown,\n handleResendClick,\n showEmailLookupResponseMessages,\n enableFormFields,\n isValidEmail,\n getOrgByDomain,\n handleOnClickProceedHere,\n } = useEmailFirstExperiment(\n verificationService.programId,\n viewModel.email,\n verificationService.verificationResponse.segment,\n );\n const [orgByEmailDomain, setOrgByEmailDomain] = React.useState<Organization | null>(null);\n const [selectedOrganization, setSelectedOrganization] = React.useState<Organization | null>(null);\n\n React.useEffect(() => {\n const fetchOrg = async () => {\n if (\n viewModel.email &&\n isValidEmail &&\n emailLookupResponse &&\n emailLookupResponse.status === EmailLookupStatus.NOT_FOUND\n ) {\n const org = await getOrgByDomain(verificationService);\n\n if (org) {\n setOrgByEmailDomain(org);\n updateViewModelOrganization(org, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", org, verificationService);\n }\n } else {\n setOrgByEmailDomain(null);\n }\n };\n\n if (isValidEmail && emailLookupResponse) {\n fetchOrg();\n }\n }, [viewModel.email, isValidEmail, emailLookupResponse?.status]);\n // #endregion collect-info-step-email-first\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n draft[key] = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n {\n // #region email-first-experiment\n isEmailUpTop && (\n <>\n <div className=\"email-input-wrapper\">\n {isEmailValidationLoading && (\n <div className=\"email-input-wrapper-frame\">\n <div className=\"sid-spinner scaled\">\n <LoadingSpinnerComponent />\n </div>\n </div>\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={emailOnKeyDown}\n onBlur={emailOnBlur}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n </div>\n </>\n )\n }\n {showEmailLookupResponseMessages && emailLookupResponse && isValidEmail && (\n <EmailLookupResponseMessages\n emailLookupResponse={emailLookupResponse}\n onResendClick={handleResendClick}\n onHandleClickLink={handleOnClickProceedHere}\n />\n )}\n {showFormFields && (\n <>\n <div className={enableFormFields || !isEmailUpTop ? \"\" : \"sid-disable-elements\"}>\n {\" \"}\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <CollegeName\n value={\n selectedOrganization ||\n (isEmailUpTop &&\n emailLookupResponse?.status === EmailLookupStatus.NOT_FOUND &&\n orgByEmailDomain) ||\n (verificationService.viewModel as StudentPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n setSelectedOrganization(choice);\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, 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 updateStudentViewModel(\"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 updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n {!isEmailUpTop && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"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 disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"phoneNumber\",\n newValue,\n verificationService,\n );\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </div>\n </>\n )}\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepStudentPersonalInfoComponent = StepStudentPersonalInfo;\n"],"names":["CVECNumber","value","isErrored","onChange","intl","explanation","placeholder","isRequired","showCvecInputVariation","useFlag","getDefaultExplanation","jsx","FormattedHTMLMessage","_a","getFieldConfigByFieldId","FormFieldText","CVECNumberComponent","injectIntl","StepStudentPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","options","getOptions","showCvecInput","React","updateStudentViewModel","isEmailUpTop","isEmailValidationLoading","showFormFields","emailLookupResponse","emailOnBlur","emailOnKeyDown","handleResendClick","showEmailLookupResponseMessages","enableFormFields","isValidEmail","getOrgByDomain","handleOnClickProceedHere","useEmailFirstExperiment","orgByEmailDomain","setOrgByEmailDomain","selectedOrganization","setSelectedOrganization","EmailLookupStatus","org","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","failedInstantMatch","hasFailedInstantMatch","key","nextState","produce","draft","locale","jsxs","PersonalInfoWrapper","PersonalInfoHeader","Fragment","LoadingSpinnerComponent","Email","newValue","_b","EmailLookupResponseMessages","ChangeLocaleV2Component","CountryComponentWrapper","_c","CollegeName","_d","choice","_e","_f","FirstName","_g","LastName","_h","BirthDate","_i","event","handleEmailOnKeyDown","_j","PhoneNumber","_k","config","FormFieldCustom","MarketConsentWrapper","_l","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepStudentPersonalInfoComponent"],"mappings":";;;;AAWO,MAAMA,KAAa,CAAC;AAAA,EACzB,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,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AAuB,YAAY;AAAA,kBACjC,GAAGR,EAAoB,UAAU;AAAA,kBACjC,oBAAoB2C;AAAA,gBAAA,CACrB,GACDd;AAAA,kBACE;AAAA,kBACAc;AAAA,kBACA3C;AAAA,gBACF;AAAA,cACF;AAAA,cACA,WAAAC;AAAA,YAAA;AAAA,UACF;AAAA,UACCT,gBAAAA,EAAAA,IAAA6E,IAAA,EAAa,qBAAArE,GAA0C,QAAO,qBAAqB,CAAA;AAAA,UACpFR,gBAAAA,EAAA;AAAA,YAAC8E;AAAA,YAAA;AAAA,cACC,MAAMC,GAAsB;AAAA,cAC5B,qBAAAvE;AAAA,cACA,WAAAC;AAAA,cACA,oBAAA6B;AAAA,cACA,YACEtC,gBAAAA,EAAA;AAAA,gBAACC;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EAAA,CACF,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ,GAEa+E,KAAmCzE;"}
|
1
|
+
{"version":3,"file":"index-DdKeUKWu.js","sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumber = ({\n value,\n isErrored,\n onChange,\n intl,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"cvecNumberPlaceholder\",\n defaultMessage: \"CVEC certificate number\",\n })\n }\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\nexport const CVECNumberComponent = injectIntl(CVECNumber);\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\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 updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport EmailLookupResponseMessages from \"../FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent\";\nimport { LoadingSpinnerComponent } from \"../LoadingSpinner/LoadingSpinnerComponent\";\nimport { useEmailFirstExperiment } from \"../FormFields/EmailFirstCollectInfo/useEmailFirstExperiment\";\nimport { EmailLookupStatus } from \"../FormFields/EmailFirstCollectInfo/types\";\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepStudentPersonalInfo = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n\n React.useEffect(() => {\n if (showCvecInput) {\n updateStudentViewModel(\"fieldsToSkipValidation\", []);\n } else {\n // Don't validate CVEC number if country is not France\n updateStudentViewModel(\"fieldsToSkipValidation\", [\"cvecNumber\"]);\n }\n }, [showCvecInput]);\n // #endregion include-cvec-field-france-student\n\n // #region collect-info-step-email-first\n const {\n isEmailUpTop,\n isEmailValidationLoading,\n showFormFields,\n emailLookupResponse,\n emailOnBlur,\n emailOnKeyDown,\n handleResendClick,\n showEmailLookupResponseMessages,\n enableFormFields,\n isValidEmail,\n getOrgByDomain,\n handleOnClickProceedHere,\n } = useEmailFirstExperiment(\n verificationService.programId,\n viewModel.email,\n verificationService.verificationResponse.segment,\n );\n const [orgByEmailDomain, setOrgByEmailDomain] = React.useState<Organization | null>(null);\n const [selectedOrganization, setSelectedOrganization] = React.useState<Organization | null>(null);\n\n React.useEffect(() => {\n const fetchOrg = async () => {\n if (\n viewModel.email &&\n isValidEmail &&\n emailLookupResponse &&\n emailLookupResponse.status === EmailLookupStatus.NOT_FOUND\n ) {\n const org = await getOrgByDomain(verificationService);\n\n if (org) {\n setOrgByEmailDomain(org);\n updateViewModelOrganization(org, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", org, verificationService);\n }\n } else {\n setOrgByEmailDomain(null);\n }\n };\n\n if (isValidEmail && emailLookupResponse) {\n fetchOrg();\n }\n }, [viewModel.email, isValidEmail, emailLookupResponse?.status]);\n // #endregion collect-info-step-email-first\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n draft[key] = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n {\n // #region email-first-experiment\n isEmailUpTop && (\n <>\n <div className=\"email-input-wrapper\">\n {isEmailValidationLoading && (\n <div className=\"email-input-wrapper-frame\">\n <div className=\"sid-spinner scaled\">\n <LoadingSpinnerComponent />\n </div>\n </div>\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={emailOnKeyDown}\n onBlur={emailOnBlur}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n </div>\n </>\n )\n }\n {showEmailLookupResponseMessages && emailLookupResponse && isValidEmail && (\n <EmailLookupResponseMessages\n emailLookupResponse={emailLookupResponse}\n onResendClick={handleResendClick}\n onHandleClickLink={handleOnClickProceedHere}\n />\n )}\n {showFormFields && (\n <>\n <div className={enableFormFields || !isEmailUpTop ? \"\" : \"sid-disable-elements\"}>\n {\" \"}\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <CollegeName\n value={\n selectedOrganization ||\n (isEmailUpTop &&\n emailLookupResponse?.status === EmailLookupStatus.NOT_FOUND &&\n orgByEmailDomain) ||\n (verificationService.viewModel as StudentPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n setSelectedOrganization(choice);\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, 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 updateStudentViewModel(\"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 updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n {!isEmailUpTop && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"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 disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"phoneNumber\",\n newValue,\n verificationService,\n );\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </div>\n </>\n )}\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepStudentPersonalInfoComponent = StepStudentPersonalInfo;\n"],"names":["CVECNumber","value","isErrored","onChange","intl","explanation","placeholder","isRequired","showCvecInputVariation","useFlag","getDefaultExplanation","jsx","FormattedHTMLMessage","_a","getFieldConfigByFieldId","FormFieldText","CVECNumberComponent","injectIntl","StepStudentPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","options","getOptions","showCvecInput","React","updateStudentViewModel","isEmailUpTop","isEmailValidationLoading","showFormFields","emailLookupResponse","emailOnBlur","emailOnKeyDown","handleResendClick","showEmailLookupResponseMessages","enableFormFields","isValidEmail","getOrgByDomain","handleOnClickProceedHere","useEmailFirstExperiment","orgByEmailDomain","setOrgByEmailDomain","selectedOrganization","setSelectedOrganization","EmailLookupStatus","org","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","failedInstantMatch","hasFailedInstantMatch","key","nextState","produce","draft","locale","jsxs","PersonalInfoWrapper","PersonalInfoHeader","Fragment","LoadingSpinnerComponent","Email","newValue","_b","EmailLookupResponseMessages","ChangeLocaleV2Component","CountryComponentWrapper","_c","CollegeName","_d","choice","_e","_f","FirstName","_g","LastName","_h","BirthDate","_i","event","handleEmailOnKeyDown","_j","PhoneNumber","_k","config","FormFieldCustom","MarketConsentWrapper","_l","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepStudentPersonalInfoComponent"],"mappings":";;;;AAWO,MAAMA,KAAa,CAAC;AAAA,EACzB,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,YAAAC,IAAa;AACf,MAA6C;;AAErC,QAAAC,IAAyBC,EAAQ,mCAAmC,GAEpEC,IAAwB,MAC5BF,MAA2B,qBACzBG,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,IAAA;AAAA,EAAA,IAGjBD,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,IAAA;AAAA,EACjB;AAMJ,WAFsBC,IAAAC,EAAwB,YAAY,MAApC,gBAAAD,EAAuC,UAGpD,OAIPF,gBA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A,cACA,oBAAA6B;AAAA,cACA,YACEtC,gBAAAA,EAAA;AAAA,gBAACC;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EAAA,CACF,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ,GAEa+E,KAAmCzE;"}
|
@@ -1,18 +1,18 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.115.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE: Mon Jul 07 2025
|
3
|
+
* VERSION: 2.115.0-alpha.3
|
4
|
+
* BUILD_TIMESTAMP: 1751931390816
|
5
|
+
* BUILD_DATE: Mon Jul 07 2025 23:36:30 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
|
7
7
|
*/
|
8
|
-
import { k as X, j as e, M as Y, m as Z, al as G, E as D, f as t, u as d, N as J,
|
8
|
+
import { k as X, j as e, M as Y, m as Z, al as G, E as D, f as t, u as d, N as J, z as Q, a0 as $, am as S, a2 as k, O as v, T as aa, a3 as sa, n as ea, X as oa, an as la, W as na, Y as ta, Z as da, _ as ma, o as ra, V as pa } from "./es6-C2abemUD.js";
|
9
9
|
import h, { useEffect as ua } from "react";
|
10
10
|
import { FormattedHTMLMessage as i } from "react-intl";
|
11
|
-
import { u as ha, E as ia, a as I } from "./useEmailFirstExperiment-
|
11
|
+
import { u as ha, E as ia, a as I } from "./useEmailFirstExperiment-Cib954tq.js";
|
12
12
|
const Ca = ({
|
13
13
|
verificationService: a
|
14
14
|
}) => {
|
15
|
-
var b, x, E, j, N, T, M,
|
15
|
+
var b, x, E, j, N, T, M, F, O, y;
|
16
16
|
const { viewModel: o } = a, { fieldValidationErrors: m } = a, C = a.verificationResponse, f = X(C), B = J(), P = o.localeChoice.value, l = (s, r) => {
|
17
17
|
const q = {
|
18
18
|
[s]: r
|
@@ -20,8 +20,8 @@ const Ca = ({
|
|
20
20
|
a.updateViewModel(q, { partial: !0 });
|
21
21
|
}, {
|
22
22
|
isEmailUpTop: p,
|
23
|
-
isEmailValidationLoading:
|
24
|
-
showFormFields:
|
23
|
+
isEmailValidationLoading: z,
|
24
|
+
showFormFields: V,
|
25
25
|
emailLookupResponse: n,
|
26
26
|
emailOnBlur: L,
|
27
27
|
emailOnKeyDown: w,
|
@@ -61,7 +61,7 @@ const Ca = ({
|
|
61
61
|
),
|
62
62
|
// #region email-first-experiment
|
63
63
|
p && /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: "email-input-wrapper", children: [
|
64
|
-
|
64
|
+
z && /* @__PURE__ */ e.jsx("div", { className: "email-input-wrapper-frame", children: /* @__PURE__ */ e.jsx("div", { className: "sid-spinner scaled", children: /* @__PURE__ */ e.jsx(G, {}) }) }),
|
65
65
|
/* @__PURE__ */ e.jsx(
|
66
66
|
D,
|
67
67
|
{
|
@@ -91,7 +91,7 @@ const Ca = ({
|
|
91
91
|
onHandleClickLink: K
|
92
92
|
}
|
93
93
|
),
|
94
|
-
|
94
|
+
V && /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: H || !p ? "" : "sid-disable-elements", children: [
|
95
95
|
/* @__PURE__ */ e.jsx(Q, { verificationService: a }),
|
96
96
|
/* @__PURE__ */ e.jsx(
|
97
97
|
$,
|
@@ -181,7 +181,7 @@ const Ca = ({
|
|
181
181
|
);
|
182
182
|
},
|
183
183
|
selectedCountryCode: o.countryChoice && o.countryChoice.value,
|
184
|
-
disabled: (
|
184
|
+
disabled: (F = t("phoneNumber")) == null ? void 0 : F.disabled
|
185
185
|
}
|
186
186
|
) : null,
|
187
187
|
la(a.programTheme, o) ? /* @__PURE__ */ e.jsx(
|
@@ -192,7 +192,7 @@ const Ca = ({
|
|
192
192
|
l("postalCode", s), d("postalCode", s, a);
|
193
193
|
},
|
194
194
|
value: o.postalCode,
|
195
|
-
disabled: (
|
195
|
+
disabled: (O = t("postalCode")) == null ? void 0 : O.disabled
|
196
196
|
}
|
197
197
|
) : null,
|
198
198
|
B.customFormFields.map((s) => /* @__PURE__ */ e.jsx(ta, { config: s, verificationService: a })),
|
@@ -212,7 +212,7 @@ const Ca = ({
|
|
212
212
|
);
|
213
213
|
},
|
214
214
|
viewModel: o,
|
215
|
-
disabled: (
|
215
|
+
disabled: (y = t("marketConsentValue")) == null ? void 0 : y.disabled
|
216
216
|
}
|
217
217
|
),
|
218
218
|
/* @__PURE__ */ e.jsx(ma, { verificationService: a, suffix: "CollectAboveSubmit" }),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-C8QQR_XI.js","sources":["../../src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\nimport React, { useEffect } from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { shouldCollectPostalCode } from \"../../lib/organization/organization\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n CustomFormFieldConfig,\n Organization,\n TeacherPersonalInfoResponse,\n TeacherPersonalInfoViewModel,\n VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\n\nimport { getOptions } from \"../../options/options\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { TeacherSchoolComponent } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { LoadingSpinnerComponent } from \"../LoadingSpinner/LoadingSpinnerComponent\";\nimport EmailLookupResponseMessages from \"../FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent\";\nimport { useEmailFirstExperiment } from \"../FormFields/EmailFirstCollectInfo/useEmailFirstExperiment\";\nimport { EmailLookupStatus } from \"../FormFields/EmailFirstCollectInfo/types\";\n\ninterface StepTeacherPersonalInfoComponentProps {\n verificationService: VerificationService<TeacherPersonalInfoViewModel>;\n}\n\nconst StepTeacherPersonalInfo = ({\n verificationService,\n}: StepTeacherPersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as TeacherPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const locale = viewModel.localeChoice.value;\n const updateTeacherViewModel = (key: keyof TeacherPersonalInfoViewModel, value: any) => {\n const nextState = {\n [key]: value,\n };\n verificationService.updateViewModel(nextState, { partial: true });\n };\n\n // #region collect-info-step-email-first\n const {\n isEmailUpTop,\n isEmailValidationLoading,\n showFormFields,\n emailLookupResponse,\n emailOnBlur,\n emailOnKeyDown,\n handleResendClick,\n showEmailLookupResponseMessages,\n isValidEmail,\n getOrgByDomain,\n enableFormFields,\n handleOnClickProceedHere,\n } = useEmailFirstExperiment(\n verificationService.programId,\n viewModel.email,\n verificationService.verificationResponse.segment,\n );\n const [orgByEmailDomain, setOrgByEmailDomain] = React.useState<Organization | null>(null);\n const [selectedOrganization, setSelectedOrganization] = React.useState<Organization | null>(null);\n\n React.useEffect(() => {\n const fetchOrg = async () => {\n if (\n viewModel.email &&\n isValidEmail &&\n emailLookupResponse &&\n emailLookupResponse.status === EmailLookupStatus.NOT_FOUND\n ) {\n const org = await getOrgByDomain(verificationService);\n if (org) {\n setOrgByEmailDomain(org);\n updateViewModelOrganization(org, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", org, verificationService);\n }\n } else {\n setOrgByEmailDomain(null);\n }\n };\n\n if (isValidEmail && emailLookupResponse) {\n fetchOrg();\n }\n }, [viewModel.email, isValidEmail, emailLookupResponse?.status]);\n // #endregion collect-info-step-email-first\n\n // Don't validate DOB if ID Check is not enabled\n useEffect(() => {\n if (!verificationService.programTheme.idCheckAddOnEnabled) {\n updateTeacherViewModel(\"birthDate\", \"\");\n updateTeacherViewModel(\"fieldsToSkipValidation\", [\"birthDate\"]);\n } else {\n updateTeacherViewModel(\"fieldsToSkipValidation\", []);\n }\n }, [verificationService.programTheme.idCheckAddOnEnabled]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"teacher-personal-info\"\n />\n {\n // #region email-first-experiment\n isEmailUpTop && (\n <>\n <div className=\"email-input-wrapper\">\n {isEmailValidationLoading && (\n <div className=\"email-input-wrapper-frame\">\n <div className=\"sid-spinner scaled\">\n <LoadingSpinnerComponent />\n </div>\n </div>\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Must be your school-issued email address\"\n />\n }\n onChange={(newValue) => {\n updateTeacherViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={emailOnKeyDown}\n onBlur={emailOnBlur}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n </div>\n </>\n )\n // #endregion email-first-experiment\n }\n {showEmailLookupResponseMessages && emailLookupResponse && isValidEmail && (\n <EmailLookupResponseMessages\n emailLookupResponse={emailLookupResponse}\n onResendClick={handleResendClick}\n onHandleClickLink={handleOnClickProceedHere}\n />\n )}\n {showFormFields && (\n <>\n <div className={enableFormFields || !isEmailUpTop ? \"\" : \"sid-disable-elements\"}>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <TeacherSchoolComponent\n value={\n selectedOrganization ||\n (isEmailUpTop &&\n emailLookupResponse?.status === EmailLookupStatus.NOT_FOUND &&\n orgByEmailDomain) ||\n verificationService.viewModel.organization\n }\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n setSelectedOrganization(choice);\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\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 updateTeacherViewModel(\"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 updateTeacherViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n {verificationService.programTheme.idCheckAddOnEnabled ? (\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n ) : null}\n {!isEmailUpTop && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Must be your school-issued email address\"\n />\n }\n onChange={(newValue) => {\n updateTeacherViewModel(\"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 updateTeacherViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"phoneNumber\",\n newValue,\n verificationService,\n );\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldCollectPostalCode(verificationService.programTheme, viewModel) ? (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateTeacherViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n ) : null}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateTeacherViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectTeacherPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Teacher Status\"\n />\n }\n />\n </div>\n </>\n )}\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepTeacherPersonalInfoComponent = StepTeacherPersonalInfo;\nfunction userDidConvert(COLLECT_INFO_SUBMIT: any, COLLECT_INFO_SUBMISSION_TIME: any) {\n throw new Error(\"Function not implemented.\");\n}\n"],"names":["StepTeacherPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateTeacherViewModel","key","value","nextState","isEmailUpTop","isEmailValidationLoading","showFormFields","emailLookupResponse","emailOnBlur","emailOnKeyDown","handleResendClick","showEmailLookupResponseMessages","isValidEmail","getOrgByDomain","enableFormFields","handleOnClickProceedHere","useEmailFirstExperiment","orgByEmailDomain","setOrgByEmailDomain","React","selectedOrganization","setSelectedOrganization","EmailLookupStatus","org","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","useEffect","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","Fragment","LoadingSpinnerComponent","Email","FormattedHTMLMessage","newValue","_a","getFieldConfigByFieldId","EmailLookupResponseMessages","ChangeLocaleV2Component","CountryComponentWrapper","_b","TeacherSchoolComponent","_c","choice","FirstName","_d","LastName","_e","BirthDate","_f","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","shouldCollectPostalCode","PostalCodeComponent","_i","config","FormFieldCustom","MarketConsentWrapper","_j","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepTeacherPersonalInfoComponent"],"mappings":";;;;AA8CA,MAAMA,KAA0B,CAAC;AAAA,EAC/B,qBAAAC;AACF,MAA6C;;AACrC,QAAA,EAAE,WAAAC,MAAcD,GAChB,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAW,GACrBC,IAASP,EAAU,aAAa,OAChCQ,IAAyB,CAACC,GAAyCC,MAAe;AACtF,UAAMC,IAAY;AAAA,MAChB,CAACF,CAAG,GAAGC;AAAA,IACT;AACA,IAAAX,EAAoB,gBAAgBY,GAAW,EAAE,SAAS,IAAM;AAAA,EAClE,GAGM;AAAA,IACJ,cAAAC;AAAA,IACA,0BAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,iCAAAC;AAAA,IACA,cAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,0BAAAC;AAAA,EAAA,IACEC;AAAA,IACFzB,EAAoB;AAAA,IACpBC,EAAU;AAAA,IACVD,EAAoB,qBAAqB;AAAA,EAC3C,GACM,CAAC0B,GAAkBC,CAAmB,IAAIC,EAAM,SAA8B,IAAI,GAClF,CAACC,GAAsBC,CAAuB,IAAIF,EAAM,SAA8B,IAAI;AAEhGA,SAAAA,EAAM,UAAU,MAAM;AAmBpB,IAAIP,KAAgBL,MAlBH,YAAY;AA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AAA,UAAA,IAEjD;AAAA,UACH7D,EAAQ,iBAAiB,IAAI,CAAC8D,MAC5B9B,gBAAAA,MAAA+B,IAAA,EAAgB,QAAAD,GAAgB,qBAAApE,EAAA,CAA0C,CAC5E;AAAA,UACDsC,gBAAAA,EAAA;AAAA,YAACgC;AAAAA,YAAA;AAAA,cACC,qBAAAtE;AAAA,cACA,WAAW,CAAC,CAACE,EAAsB;AAAA,cACnC,UAAU,CAAC0C,MAAa;AACtB,gBAAAnC,EAAuB,YAAY;AAAA,kBACjC,GAAGT,EAAoB,UAAU;AAAA,kBACjC,oBAAoB4C;AAAA,gBAAA,CACrB,GACDV;AAAA,kBACE;AAAA,kBACAU;AAAA,kBACA5C;AAAA,gBACF;AAAA,cACF;AAAA,cACA,WAAAC;AAAA,cACA,WAAUsE,IAAAzB,EAAwB,oBAAoB,MAA5C,gBAAAyB,EAA+C;AAAA,YAAA;AAAA,UAC3D;AAAA,UACCjC,gBAAAA,EAAAA,IAAAkC,IAAA,EAAa,qBAAAxE,GAA0C,QAAO,qBAAqB,CAAA;AAAA,UACpFsC,gBAAAA,EAAA;AAAA,YAACmC;AAAA,YAAA;AAAA,cACC,MAAMC,GAAsB;AAAA,cAC5B,qBAAA1E;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAG;AAAA,cACA,YACEkC,gBAAAA,EAAA;AAAA,gBAACK;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EAAA,CACF,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ,GAEagC,KAAmC5E;"}
|
1
|
+
{"version":3,"file":"index-DlwFWaiY.js","sources":["../../src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\nimport React, { useEffect } from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { shouldCollectPostalCode } from \"../../lib/organization/organization\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n CustomFormFieldConfig,\n Organization,\n TeacherPersonalInfoResponse,\n TeacherPersonalInfoViewModel,\n VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\n\nimport { getOptions } from \"../../options/options\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { TeacherSchoolComponent } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { LoadingSpinnerComponent } from \"../LoadingSpinner/LoadingSpinnerComponent\";\nimport EmailLookupResponseMessages from \"../FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent\";\nimport { useEmailFirstExperiment } from \"../FormFields/EmailFirstCollectInfo/useEmailFirstExperiment\";\nimport { EmailLookupStatus } from \"../FormFields/EmailFirstCollectInfo/types\";\n\ninterface StepTeacherPersonalInfoComponentProps {\n verificationService: VerificationService<TeacherPersonalInfoViewModel>;\n}\n\nconst StepTeacherPersonalInfo = ({\n verificationService,\n}: StepTeacherPersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as TeacherPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const locale = viewModel.localeChoice.value;\n const updateTeacherViewModel = (key: keyof TeacherPersonalInfoViewModel, value: any) => {\n const nextState = {\n [key]: value,\n };\n verificationService.updateViewModel(nextState, { partial: true });\n };\n\n // #region collect-info-step-email-first\n const {\n isEmailUpTop,\n isEmailValidationLoading,\n showFormFields,\n emailLookupResponse,\n emailOnBlur,\n emailOnKeyDown,\n handleResendClick,\n showEmailLookupResponseMessages,\n isValidEmail,\n getOrgByDomain,\n enableFormFields,\n handleOnClickProceedHere,\n } = useEmailFirstExperiment(\n verificationService.programId,\n viewModel.email,\n verificationService.verificationResponse.segment,\n );\n const [orgByEmailDomain, setOrgByEmailDomain] = React.useState<Organization | null>(null);\n const [selectedOrganization, setSelectedOrganization] = React.useState<Organization | null>(null);\n\n React.useEffect(() => {\n const fetchOrg = async () => {\n if (\n viewModel.email &&\n isValidEmail &&\n emailLookupResponse &&\n emailLookupResponse.status === EmailLookupStatus.NOT_FOUND\n ) {\n const org = await getOrgByDomain(verificationService);\n if (org) {\n setOrgByEmailDomain(org);\n updateViewModelOrganization(org, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", org, verificationService);\n }\n } else {\n setOrgByEmailDomain(null);\n }\n };\n\n if (isValidEmail && emailLookupResponse) {\n fetchOrg();\n }\n }, [viewModel.email, isValidEmail, emailLookupResponse?.status]);\n // #endregion collect-info-step-email-first\n\n // Don't validate DOB if ID Check is not enabled\n useEffect(() => {\n if (!verificationService.programTheme.idCheckAddOnEnabled) {\n updateTeacherViewModel(\"birthDate\", \"\");\n updateTeacherViewModel(\"fieldsToSkipValidation\", [\"birthDate\"]);\n } else {\n updateTeacherViewModel(\"fieldsToSkipValidation\", []);\n }\n }, [verificationService.programTheme.idCheckAddOnEnabled]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"teacher-personal-info\"\n />\n {\n // #region email-first-experiment\n isEmailUpTop && (\n <>\n <div className=\"email-input-wrapper\">\n {isEmailValidationLoading && (\n <div className=\"email-input-wrapper-frame\">\n <div className=\"sid-spinner scaled\">\n <LoadingSpinnerComponent />\n </div>\n </div>\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Must be your school-issued email address\"\n />\n }\n onChange={(newValue) => {\n updateTeacherViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={emailOnKeyDown}\n onBlur={emailOnBlur}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n </div>\n </>\n )\n // #endregion email-first-experiment\n }\n {showEmailLookupResponseMessages && emailLookupResponse && isValidEmail && (\n <EmailLookupResponseMessages\n emailLookupResponse={emailLookupResponse}\n onResendClick={handleResendClick}\n onHandleClickLink={handleOnClickProceedHere}\n />\n )}\n {showFormFields && (\n <>\n <div className={enableFormFields || !isEmailUpTop ? \"\" : \"sid-disable-elements\"}>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <TeacherSchoolComponent\n value={\n selectedOrganization ||\n (isEmailUpTop &&\n emailLookupResponse?.status === EmailLookupStatus.NOT_FOUND &&\n orgByEmailDomain) ||\n verificationService.viewModel.organization\n }\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n setSelectedOrganization(choice);\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\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 updateTeacherViewModel(\"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 updateTeacherViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n {verificationService.programTheme.idCheckAddOnEnabled ? (\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n ) : null}\n {!isEmailUpTop && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Must be your school-issued email address\"\n />\n }\n onChange={(newValue) => {\n updateTeacherViewModel(\"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 updateTeacherViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"phoneNumber\",\n newValue,\n verificationService,\n );\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldCollectPostalCode(verificationService.programTheme, viewModel) ? (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateTeacherViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n ) : null}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateTeacherViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectTeacherPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Teacher Status\"\n />\n }\n />\n </div>\n </>\n )}\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepTeacherPersonalInfoComponent = StepTeacherPersonalInfo;\nfunction userDidConvert(COLLECT_INFO_SUBMIT: any, COLLECT_INFO_SUBMISSION_TIME: any) {\n throw new Error(\"Function not implemented.\");\n}\n"],"names":["StepTeacherPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateTeacherViewModel","key","value","nextState","isEmailUpTop","isEmailValidationLoading","showFormFields","emailLookupResponse","emailOnBlur","emailOnKeyDown","handleResendClick","showEmailLookupResponseMessages","isValidEmail","getOrgByDomain","enableFormFields","handleOnClickProceedHere","useEmailFirstExperiment","orgByEmailDomain","setOrgByEmailDomain","React","selectedOrganization","setSelectedOrganization","EmailLookupStatus","org","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","useEffect","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","Fragment","LoadingSpinnerComponent","Email","FormattedHTMLMessage","newValue","_a","getFieldConfigByFieldId","EmailLookupResponseMessages","ChangeLocaleV2Component","CountryComponentWrapper","_b","TeacherSchoolComponent","_c","choice","FirstName","_d","LastName","_e","BirthDate","_f","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","shouldCollectPostalCode","PostalCodeComponent","_i","config","FormFieldCustom","MarketConsentWrapper","_j","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepTeacherPersonalInfoComponent"],"mappings":";;;;AA8CA,MAAMA,KAA0B,CAAC;AAAA,EAC/B,qBAAAC;AACF,MAA6C;;AACrC,QAAA,EAAE,WAAAC,MAAcD,GAChB,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAW,GACrBC,IAASP,EAAU,aAAa,OAChCQ,IAAyB,CAACC,GAAyCC,MAAe;AACtF,UAAMC,IAAY;AAAA,MAChB,CAACF,CAAG,GAAGC;AAAA,IACT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qB,CAAA;AAAA,UACpFsC,gBAAAA,EAAA;AAAA,YAACmC;AAAA,YAAA;AAAA,cACC,MAAMC,GAAsB;AAAA,cAC5B,qBAAA1E;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAG;AAAA,cACA,YACEkC,gBAAAA,EAAA;AAAA,gBAACK;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EAAA,CACF,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ,GAEagC,KAAmC5E;"}
|
@@ -1,14 +1,14 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.115.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE: Mon Jul 07 2025
|
3
|
+
* VERSION: 2.115.0-alpha.3
|
4
|
+
* BUILD_TIMESTAMP: 1751931390816
|
5
|
+
* BUILD_DATE: Mon Jul 07 2025 23:36:30 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
|
7
7
|
*/
|
8
|
-
import { k as i, j as a, M as I, N as y, m as F,
|
9
|
-
import { useEffect as
|
10
|
-
import { injectIntl as
|
11
|
-
const
|
8
|
+
import { k as i, j as a, M as I, N as y, m as F, z as P, O as T, f as n, u as l, T as k, U as R, W as L, E as V, n as q, X as A, Y as B, Z as O, _ as W, o as D, V as H, q as K } from "./es6-C2abemUD.js";
|
9
|
+
import { useEffect as z } from "react";
|
10
|
+
import { injectIntl as U, FormattedHTMLMessage as m } from "react-intl";
|
11
|
+
const X = ({ verificationService: e }) => {
|
12
12
|
var p, u, C, b, x, h, N;
|
13
13
|
const o = e.viewModel, { fieldValidationErrors: t } = e, r = e.verificationResponse, M = i(r), g = y(), d = (s, j) => {
|
14
14
|
const E = K(
|
@@ -19,7 +19,7 @@ const Y = ({ verificationService: e }) => {
|
|
19
19
|
);
|
20
20
|
e.updateViewModel(E);
|
21
21
|
};
|
22
|
-
return
|
22
|
+
return z(() => {
|
23
23
|
d("statuses", r.availableStatuses);
|
24
24
|
}, []), /* @__PURE__ */ a.jsxs(
|
25
25
|
I,
|
@@ -152,7 +152,7 @@ const Y = ({ verificationService: e }) => {
|
|
152
152
|
]
|
153
153
|
}
|
154
154
|
);
|
155
|
-
},
|
155
|
+
}, w = U(X);
|
156
156
|
export {
|
157
|
-
|
157
|
+
w as default
|
158
158
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-BEzio-vG.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,MAA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AEpFiB,gBAAAA,EAAA;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,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEaiB,IAAiCC,EAAW/C,CAAqB;"}
|
1
|
+
{"version":3,"file":"index-Dm5PevSE.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,MA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QAEpFiB,gBAAAA,EAAA;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,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEaiB,IAAiCC,EAAW/C,CAAqB;"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.115.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE: Mon Jul 07 2025
|
3
|
+
* VERSION: 2.115.0-alpha.3
|
4
|
+
* BUILD_TIMESTAMP: 1751931390816
|
5
|
+
* BUILD_DATE: Mon Jul 07 2025 23:36:30 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
|
7
7
|
*/
|
8
|
-
import { k as m, j as e, m as u, E as x, n as f, u as I, o as j, V as E, p as M, q as h } from "./es6-
|
8
|
+
import { k as m, j as e, m as u, E as x, n as f, u as I, o as j, V as E, p as M, q as h } from "./es6-C2abemUD.js";
|
9
9
|
import { FormattedHTMLMessage as o } from "react-intl";
|
10
10
|
const C = ({ verificationService: t }) => {
|
11
11
|
const s = t.viewModel, { fieldValidationErrors: a } = t, l = t.verificationResponse, d = m(l), i = (n, r) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-
|
1
|
+
{"version":3,"file":"index-DrxXRhEO.js","sources":["../../src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n CollectIdentifierViewModel,\n PersonalInfoResponse,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\n\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectIdentifierProps {\n verificationService: VerificationService;\n}\n\nconst StepCollectIdentifier = ({ verificationService }: StepCollectIdentifierProps) => {\n const viewModel = verificationService.viewModel as CollectIdentifierViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as PersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateCollectIdentifierViewmodel = (key: keyof CollectIdentifierViewModel, value: any) => {\n const nextState: CollectIdentifierViewModel = produce(\n viewModel,\n (draft: CollectIdentifierViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <div\n id=\"sid-step-collect-transaction-id\"\n className=\"sid-step-collect-transaction-id-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"step-collect-transaction-id\"\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"step.collectIdentifier.inputExplanation\"\n defaultMessage=\"Needed to send authentication code\"\n />\n }\n onChange={(newValue) => {\n updateCollectIdentifierViewmodel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => handleEmailOnKeyDown(event)}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectIdentifier}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectIdentifierComponent = StepCollectIdentifier;\n"],"names":["StepCollectIdentifier","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","updateCollectIdentifierViewmodel","key","value","nextState","produce","draft","jsxs","jsx","PersonalInfoHeader","Email","FormattedHTMLMessage","newValue","updateFieldValidationErrorsByFieldId","event","handleEmailOnKeyDown","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormFooter","StepCollectIdentifierComponent"],"mappings":";;AA0BA,MAAMA,IAAwB,CAAC,EAAE,qBAAAC,QAAsD;AACrF,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IAAuBH,EAAoB,sBAC3CI,IAAqBC,EAAsBF,CAAoB,GAE/DG,IAAmC,CAACC,GAAuCC,MAAe;AAC9F,UAAMC,IAAwCC;AAAAA,MAC5CT;AAAA,MACA,CAACU,MAAsC;AACpC,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MAAA;AAAA,IAE1B;AACA,IAAAR,EAAoB,gBAAgBS,CAAS;AAAA,EAC/C;AAGE,SAAAG,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,WAAU;AAAA,MAEV,UAAA;AAAA,QAACA,gBAAAA,EAAAA,KAAA,OAAA,EAAI,MAAK,QACR,UAAA;AAAA,UAAAC,gBAAAA,EAAA;AAAA,YAACC;AAAA,YAAA;AAAA,cACC,qBAAAd;AAAA,cACA,qBAAoB;AAAA,YAAA;AAAA,UACtB;AAAA,UAEAa,gBAAAA,EAAA;AAAA,YAACE;AAAAA,YAAA;AAAA,cACC,OAAOd,EAAU;AAAA,cACjB,WAAW,CAAC,CAACC,EAAsB;AAAA,cACnC,aACEW,gBAAAA,EAAA;AAAA,gBAACG;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cACjB;AAAA,cAEF,UAAU,CAACC,MAAa;AACtB,gBAAAX,EAAiC,SAASW,CAAQ,GACbC,EAAA,SAASD,GAAUjB,CAAmB;AAAA,cAC7E;AAAA,cACA,WAAW,CAACmB,MAAiDC,EAAqBD,CAAK;AAAA,YAAA;AAAA,UACzF;AAAA,UAEAN,gBAAAA,EAAA;AAAA,YAACQ;AAAA,YAAA;AAAA,cACC,MAAMC,EAAsB;AAAA,cAC5B,qBAAAtB;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAG;AAAA,cACA,YACES,gBAAAA,EAAA;AAAA,gBAACG;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,GACF;AAAA,QACAH,gBAAAA,MAACU,KAAW,qBAAAvB,EAA0C,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACxD;AAEJ,GAEawB,IAAiCzB;"}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.115.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE: Mon Jul 07 2025
|
3
|
+
* VERSION: 2.115.0-alpha.3
|
4
|
+
* BUILD_TIMESTAMP: 1751931390816
|
5
|
+
* BUILD_DATE: Mon Jul 07 2025 23:36:30 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 9b953bf464bb46df40df3f4b766e06f47b82b5aa
|
7
7
|
*/
|
8
|
-
import { k as
|
8
|
+
import { k as y, j as a, M as O, N as D, m as F, z as _, a0 as V, f as t, ab as k, u as l, a2 as z, O as B, T as W, a3 as G, W as H, E as c, n as q, X as w, Y as K, Z as U, _ as X, o as Y, V as Z, q as J } from "./es6-C2abemUD.js";
|
9
9
|
import { injectIntl as Q, FormattedHTMLMessage as p } from "react-intl";
|
10
|
-
import { L as $ } from "./LicensedProfessionalOrganizationComponent-
|
10
|
+
import { L as $ } from "./LicensedProfessionalOrganizationComponent-DpimxCKC.js";
|
11
11
|
const S = {
|
12
12
|
LICENSED_COSMETOLOGIST: "Licensed Cosmetologist",
|
13
13
|
LICENSED_REAL_ESTATE_AGENT: "Licensed Real Estate Agent",
|
@@ -23,11 +23,11 @@ const S = {
|
|
23
23
|
verificationService: e
|
24
24
|
}) => {
|
25
25
|
var C, b, E, g, h, N, x, I, L, f;
|
26
|
-
const o = e.viewModel, { fieldValidationErrors: n } = e, u = e.verificationResponse, M =
|
26
|
+
const o = e.viewModel, { fieldValidationErrors: n } = e, u = e.verificationResponse, M = y(u), R = o.localeChoice.value, T = D(), d = (s, r) => {
|
27
27
|
const m = J(
|
28
28
|
o,
|
29
|
-
(
|
30
|
-
|
29
|
+
(A) => {
|
30
|
+
A[s] = r;
|
31
31
|
}
|
32
32
|
);
|
33
33
|
e.updateViewModel(m);
|