@sheerid/jslib-nightly 2.115.0-alpha.4 → 2.115.0-alpha.5
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 +4 -4
- package/_mysheerid-preview.js +35 -35
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/EmailLoopPending-Dtf0p85F.js +4 -4
- package/chunk/EmailLoopPending-Dy8mLFvV.js +4 -4
- package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +4 -4
- package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +4 -4
- package/chunk/Onfido-AyvUk6wg.js +4 -4
- package/chunk/{StepIDCheckLoopOnfido--3Fw5dMg.js → StepIDCheckLoopOnfido-CmNwFqjD.js} +5 -5
- package/chunk/{StepIDCheckLoopOnfido--3Fw5dMg.js.map → StepIDCheckLoopOnfido-CmNwFqjD.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CeiLgm_c.js → StepIDCheckLoopOnfido-DtbplNxs.js} +5 -5
- package/chunk/{StepIDCheckLoopOnfido-CeiLgm_c.js.map → StepIDCheckLoopOnfido-DtbplNxs.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-BFSb544w.js → StepIDCheckLoopRegula-RoX971sR.js} +6 -6
- package/chunk/{StepIDCheckLoopRegula-BFSb544w.js.map → StepIDCheckLoopRegula-RoX971sR.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DDR_mxSn.js → StepIDCheckLoopRegula-oqf-QxHT.js} +6 -6
- package/chunk/{StepIDCheckLoopRegula-DDR_mxSn.js.map → StepIDCheckLoopRegula-oqf-QxHT.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dhm9dCs2.js → StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js} +16 -16
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-_NISUzZF.js.map → StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-_NISUzZF.js → StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js} +16 -16
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dhm9dCs2.js.map → StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js.map} +1 -1
- package/chunk/ar-BZsYQiJv.js +4 -4
- package/chunk/bg-DB_ZEB5O.js +4 -4
- package/chunk/bn-IN-D69rNeuh.js +4 -4
- package/chunk/cs-Dk4czWE5.js +4 -4
- package/chunk/da-NesYkkEW.js +4 -4
- package/chunk/de-4yAGb-JC.js +4 -4
- package/chunk/el-D1h3O3E7.js +4 -4
- package/chunk/en-GB-QY9gqmlz.js +4 -4
- package/chunk/es-BYhP2rUk.js +4 -4
- package/chunk/es-ES-BJLdehwH.js +4 -4
- package/chunk/fi-D-Ycqh7I.js +4 -4
- package/chunk/fr-CA-a8W9ZT_A.js +4 -4
- package/chunk/fr-DR25pnXw.js +4 -4
- package/chunk/ga-Bj6efXd2.js +4 -4
- package/chunk/hi-IN-C-u9_T8L.js +4 -4
- package/chunk/hr-B8E9jyUX.js +4 -4
- package/chunk/hu-C7z4yBSK.js +4 -4
- package/chunk/id-AsEkOlRu.js +4 -4
- package/chunk/{index-C-YPXV3H.js → index-4APUDd8S.js} +9 -9
- package/chunk/{index-Bemwq78a.js.map → index-4APUDd8S.js.map} +1 -1
- package/chunk/{index-4zf9jvK6.js → index-9OD0Bw98.js} +10 -10
- package/chunk/{index-4zf9jvK6.js.map → index-9OD0Bw98.js.map} +1 -1
- package/chunk/{index-aRiqFbd1.js → index-B-PpnUEO.js} +6 -6
- package/chunk/{index-8gjxKx0J.js.map → index-B-PpnUEO.js.map} +1 -1
- package/chunk/{index-Z410glzc.js → index-B8F8N-JM.js} +15 -15
- package/chunk/{index-DHrneLz9.js.map → index-B8F8N-JM.js.map} +1 -1
- package/chunk/index-B8KPM--K.js +4 -4
- package/chunk/index-BD2bjH-C.js +4 -4
- package/chunk/index-BD_a0MZT.js +4 -4
- package/chunk/{index-DypbXiPM.js → index-BDrKYann.js} +13 -13
- package/chunk/{index-DypbXiPM.js.map → index-BDrKYann.js.map} +1 -1
- package/chunk/{index-eDr5_bvN.js → index-BORxVuto.js} +5 -5
- package/chunk/{index-TysYb0wj.js.map → index-BORxVuto.js.map} +1 -1
- package/chunk/{index-qj9OiaWM.js → index-BTMETMEE.js} +12 -12
- package/chunk/{index-BSmAslR-.js.map → index-BTMETMEE.js.map} +1 -1
- package/chunk/{index-ByBO6KNx.js → index-Bi9QXN5x.js} +58 -67
- package/chunk/index-Bi9QXN5x.js.map +1 -0
- package/chunk/{index-DEKYtYJV.js → index-Bmq6cJ3F.js} +12 -12
- package/chunk/{index-C9UAjull.js.map → index-Bmq6cJ3F.js.map} +1 -1
- package/chunk/index-BpZoH-Wz.js +4 -4
- package/chunk/{index-Dw4HZdl4.js → index-BuX76GyE.js} +9 -9
- package/chunk/{index-Dw4HZdl4.js.map → index-BuX76GyE.js.map} +1 -1
- package/chunk/index-C2h0Wj84.js +4 -4
- package/chunk/{index-Bemwq78a.js → index-C8MQD8EK.js} +9 -9
- package/chunk/{index-C-YPXV3H.js.map → index-C8MQD8EK.js.map} +1 -1
- package/chunk/{index-DRmBhdAn.js → index-C8u9IJUa.js} +8 -8
- package/chunk/{index-DRmBhdAn.js.map → index-C8u9IJUa.js.map} +1 -1
- package/chunk/{index-C9UAjull.js → index-C96ntS0u.js} +12 -12
- package/chunk/{index-DEKYtYJV.js.map → index-C96ntS0u.js.map} +1 -1
- package/chunk/{index-8gjxKx0J.js → index-CHK5i4jj.js} +6 -6
- package/chunk/{index-aRiqFbd1.js.map → index-CHK5i4jj.js.map} +1 -1
- package/chunk/index-CTb96lOK.js +158 -0
- package/chunk/index-CTb96lOK.js.map +1 -0
- package/chunk/{index-TysYb0wj.js → index-CU0rkVHP.js} +5 -5
- package/chunk/{index-eDr5_bvN.js.map → index-CU0rkVHP.js.map} +1 -1
- package/chunk/index-CcRowarb.js +4 -4
- package/chunk/index-CeHu2Npu.js +4 -4
- package/chunk/index-DIkWpujR.js +4 -4
- package/chunk/{index-DgXh3iXb.js → index-DKWjcFJK.js} +10 -10
- package/chunk/{index-DgXh3iXb.js.map → index-DKWjcFJK.js.map} +1 -1
- package/chunk/{index-BgAd7a0x.js → index-DLz31Fzh.js} +13 -13
- package/chunk/{index-BgAd7a0x.js.map → index-DLz31Fzh.js.map} +1 -1
- package/chunk/{index-m9Gpah9q.js → index-DO5Z3e-E.js} +9 -9
- package/chunk/{index-m9Gpah9q.js.map → index-DO5Z3e-E.js.map} +1 -1
- package/chunk/{index-VxNSWlHu.js → index-DRlGAW07.js} +8 -8
- package/chunk/{index-VxNSWlHu.js.map → index-DRlGAW07.js.map} +1 -1
- package/chunk/index-DVynViqA.js +4 -4
- package/chunk/{index-f8an5bUm.js → index-D_9J6arc.js} +10 -10
- package/chunk/{index-FfsFdWXt.js.map → index-D_9J6arc.js.map} +1 -1
- package/chunk/{index-DHrneLz9.js → index-Dg8t7-dm.js} +15 -15
- package/chunk/{index-Z410glzc.js.map → index-Dg8t7-dm.js.map} +1 -1
- package/chunk/{index-Dg6e8PFO.js → index-DhGg9lvf.js} +13 -13
- package/chunk/{index-Dg6e8PFO.js.map → index-DhGg9lvf.js.map} +1 -1
- package/chunk/{index-FfsFdWXt.js → index-DsgCNIS5.js} +10 -10
- package/chunk/{index-f8an5bUm.js.map → index-DsgCNIS5.js.map} +1 -1
- package/chunk/{index-BYGkr72X.js → index-DvQoVn8P.js} +18 -18
- package/chunk/{index-3wRIidxQ.js.map → index-DvQoVn8P.js.map} +1 -1
- package/chunk/{index-DUXQFubY.js → index-DzqRsB7_.js} +13 -13
- package/chunk/{index-DUXQFubY.js.map → index-DzqRsB7_.js.map} +1 -1
- package/chunk/{index-VrTXSLSj.js → index-FjzhfDlx.js} +58 -67
- package/chunk/index-FjzhfDlx.js.map +1 -0
- package/chunk/index-Gfy-1H7s.js +154 -0
- package/chunk/index-Gfy-1H7s.js.map +1 -0
- package/chunk/{index-3wRIidxQ.js → index-YSVzGeq_.js} +18 -18
- package/chunk/{index-BYGkr72X.js.map → index-YSVzGeq_.js.map} +1 -1
- package/chunk/{index-BSmAslR-.js → index-_t8SsXjy.js} +12 -12
- package/chunk/{index-qj9OiaWM.js.map → index-_t8SsXjy.js.map} +1 -1
- package/chunk/is-PzizLXcv.js +4 -4
- package/chunk/it-CiJeQN1_.js +4 -4
- package/chunk/iw-QHmqNHZP.js +4 -4
- package/chunk/ja-DPgVvasb.js +4 -4
- package/chunk/ko-DykOu1Yp.js +4 -4
- package/chunk/lo-C4bFrJOj.js +4 -4
- package/chunk/lt-KjZ7oOV5.js +4 -4
- package/chunk/ms-CNvzXjsH.js +4 -4
- package/chunk/nl-BE-BXbsNtu2.js +4 -4
- package/chunk/nl-ucuj2G5l.js +4 -4
- package/chunk/no-D8IuXJ7O.js +4 -4
- package/chunk/pl-DvnUkXGb.js +4 -4
- package/chunk/pt-BR-Be00Hx-L.js +4 -4
- package/chunk/pt-DS7isrlt.js +4 -4
- package/chunk/ro-BHCICvJV.js +4 -4
- package/chunk/ru-DUDtL41i.js +4 -4
- package/chunk/sk-O9yqW58Q.js +4 -4
- package/chunk/sl-CxcvfiDu.js +4 -4
- package/chunk/sr-DgvzAvVS.js +4 -4
- package/chunk/sv-BtktR0mm.js +4 -4
- package/chunk/sw-D06YJhji.js +4 -4
- package/chunk/th-C1KZhtMd.js +4 -4
- package/chunk/tr-CqpbTukW.js +4 -4
- package/chunk/uk-BWHH_jN1.js +4 -4
- package/chunk/ur-BHWni4Fn.js +4 -4
- package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js +4 -4
- package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js +4 -4
- package/chunk/useEmailFirstExperiment-BbDrKQEs.js +4 -4
- package/chunk/useEmailFirstExperiment-CgU-itQI.js +4 -4
- package/chunk/vi-DVhQHKtP.js +4 -4
- package/chunk/zh-HK-C-wTSVhL.js +4 -4
- package/chunk/zh-qa3hzwEB.js +4 -4
- package/chunk/zu-DwVIy-bC.js +4 -4
- package/es6.css +4 -4
- package/jslib.js +5 -5
- package/lib/{EmailLoopPending-DpBbIbA8.js → EmailLoopPending-BqnEHjcx.js} +5 -5
- package/lib/{EmailLoopPending-DpBbIbA8.js.map → EmailLoopPending-BqnEHjcx.js.map} +1 -1
- package/lib/{LicensedProfessionalOrganizationComponent-CzaRBaGL.js → LicensedProfessionalOrganizationComponent-I40RHZzh.js} +5 -5
- package/lib/{LicensedProfessionalOrganizationComponent-CzaRBaGL.js.map → LicensedProfessionalOrganizationComponent-I40RHZzh.js.map} +1 -1
- package/lib/Onfido-AyvUk6wg.js +4 -4
- package/lib/StepCollectMilitaryStatusComponent-BNH7Je51.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-DseJISFi.js.map → StepCollectMilitaryStatusComponent-BNH7Je51.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-D9yDDeRB.js → StepIDCheckLoopOnfido-Ci2KTJn-.js} +5 -5
- package/lib/{StepIDCheckLoopOnfido-D9yDDeRB.js.map → StepIDCheckLoopOnfido-Ci2KTJn-.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-DkyyvsCE.js → StepIDCheckLoopRegula-DuxG7hWy.js} +5 -5
- package/lib/{StepIDCheckLoopRegula-DkyyvsCE.js.map → StepIDCheckLoopRegula-DuxG7hWy.js.map} +1 -1
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-CN3JLPtU.js → StepInactiveMilitaryPersonalInfoComponent-D4ijPW5z.js} +11 -11
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-CN3JLPtU.js.map → StepInactiveMilitaryPersonalInfoComponent-D4ijPW5z.js.map} +1 -1
- package/lib/{VerificationApiUtils-D5fUBXMi.js → VerificationApiUtils-8XFod-0J.js} +5 -5
- package/lib/{VerificationApiUtils-D5fUBXMi.js.map → VerificationApiUtils-8XFod-0J.js.map} +1 -1
- package/lib/ar-BZsYQiJv.js +4 -4
- package/lib/bg-DB_ZEB5O.js +4 -4
- package/lib/bn-IN-D69rNeuh.js +4 -4
- package/lib/cs-Dk4czWE5.js +4 -4
- package/lib/da-NesYkkEW.js +4 -4
- package/lib/de-4yAGb-JC.js +4 -4
- package/lib/el-D1h3O3E7.js +4 -4
- package/lib/en-GB-QY9gqmlz.js +4 -4
- package/lib/es-BYhP2rUk.js +4 -4
- package/lib/es-ES-BJLdehwH.js +4 -4
- package/lib/{es6-CRvGWhun.js → es6-lyLg3maN.js} +48 -48
- package/lib/{es6-CRvGWhun.js.map → es6-lyLg3maN.js.map} +1 -1
- package/lib/fi-D-Ycqh7I.js +4 -4
- package/lib/fr-CA-a8W9ZT_A.js +4 -4
- package/lib/fr-DR25pnXw.js +4 -4
- package/lib/ga-Bj6efXd2.js +4 -4
- package/lib/hi-IN-C-u9_T8L.js +4 -4
- package/lib/hr-B8E9jyUX.js +4 -4
- package/lib/hu-C7z4yBSK.js +4 -4
- package/lib/id-AsEkOlRu.js +4 -4
- package/lib/index-1t4oWr1G.js +11 -0
- package/lib/index-1t4oWr1G.js.map +1 -0
- package/lib/{index-BhWsn9yF.js → index-B-RroNZn.js} +11 -11
- package/lib/{index-BhWsn9yF.js.map → index-B-RroNZn.js.map} +1 -1
- package/lib/{index-6E4Z6EIe.js → index-BAVRmKBf.js} +7 -7
- package/lib/{index-6E4Z6EIe.js.map → index-BAVRmKBf.js.map} +1 -1
- package/lib/index-BNcPi_1y.js +107 -0
- package/lib/index-BNcPi_1y.js.map +1 -0
- package/lib/{index-DLikaJhz.js → index-BbUk_kvD.js} +9 -9
- package/lib/{index-DLikaJhz.js.map → index-BbUk_kvD.js.map} +1 -1
- package/lib/{index-CTzndrPR.js → index-Bz8EuRgm.js} +5 -5
- package/lib/{index-CTzndrPR.js.map → index-Bz8EuRgm.js.map} +1 -1
- package/lib/index-C31smSVL.js +11 -0
- package/lib/index-C31smSVL.js.map +1 -0
- package/lib/index-C6QOup1A.js +155 -0
- package/lib/index-C6QOup1A.js.map +1 -0
- package/lib/{index-CbaUBZdd.js → index-CN5zTJ3Z.js} +5 -5
- package/lib/{index-CbaUBZdd.js.map → index-CN5zTJ3Z.js.map} +1 -1
- package/lib/{index-Dh61xLBg.js → index-CNoXAS7x.js} +5 -5
- package/lib/{index-Dh61xLBg.js.map → index-CNoXAS7x.js.map} +1 -1
- package/lib/{index-C7XtdI_h.js → index-CZNqz2c5.js} +10 -10
- package/lib/{index-C7XtdI_h.js.map → index-CZNqz2c5.js.map} +1 -1
- package/lib/{index-Bv5kXbVG.js → index-CZwVJrVW.js} +10 -10
- package/lib/{index-Bv5kXbVG.js.map → index-CZwVJrVW.js.map} +1 -1
- package/lib/{index-Be9L4Hsp.js → index-CoO8Bv1D.js} +5 -5
- package/lib/{index-Be9L4Hsp.js.map → index-CoO8Bv1D.js.map} +1 -1
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/{index-0RxEZWMN.js → index-DQ1FR6yi.js} +10 -10
- package/lib/{index-0RxEZWMN.js.map → index-DQ1FR6yi.js.map} +1 -1
- package/lib/{index-DqlZo1CW.js → index-DQGCC6Sz.js} +12 -12
- package/lib/{index-DqlZo1CW.js.map → index-DQGCC6Sz.js.map} +1 -1
- package/lib/index-DQwdON4K.js +11 -0
- package/lib/index-DQwdON4K.js.map +1 -0
- package/lib/{index-CQgXKUvf.js → index-DSj4scHr.js} +13 -13
- package/lib/{index-CQgXKUvf.js.map → index-DSj4scHr.js.map} +1 -1
- package/lib/{index-BAAJ8QhL.js → index-DXYYA9yF.js} +14 -14
- package/lib/{index-BAAJ8QhL.js.map → index-DXYYA9yF.js.map} +1 -1
- package/lib/{index-BnRRrmUQ.js → index-DwrnJL6C.js} +5 -5
- package/lib/{index-BnRRrmUQ.js.map → index-DwrnJL6C.js.map} +1 -1
- package/lib/index-IkJ8SAYo.js +11 -0
- package/lib/index-IkJ8SAYo.js.map +1 -0
- package/lib/{index-Dfh9uUxD.js → index-XsdsrGRA.js} +11 -11
- package/lib/{index-Dfh9uUxD.js.map → index-XsdsrGRA.js.map} +1 -1
- package/lib/{index-0pCev-s4.js → index-_OKAkkyk.js} +9 -9
- package/lib/{index-0pCev-s4.js.map → index-_OKAkkyk.js.map} +1 -1
- package/lib/{index-C2_1XehQ.js → index-_i5al0uD.js} +14 -14
- package/lib/{index-C2_1XehQ.js.map → index-_i5al0uD.js.map} +1 -1
- package/lib/is-PzizLXcv.js +4 -4
- package/lib/it-CiJeQN1_.js +4 -4
- package/lib/iw-QHmqNHZP.js +4 -4
- package/lib/ja-DPgVvasb.js +4 -4
- package/lib/ko-DykOu1Yp.js +4 -4
- package/lib/lo-C4bFrJOj.js +4 -4
- package/lib/lt-KjZ7oOV5.js +4 -4
- package/lib/ms-CNvzXjsH.js +4 -4
- package/lib/nl-BE-BXbsNtu2.js +4 -4
- package/lib/nl-ucuj2G5l.js +4 -4
- package/lib/no-D8IuXJ7O.js +4 -4
- package/lib/pl-DvnUkXGb.js +4 -4
- package/lib/pt-BR-Be00Hx-L.js +4 -4
- package/lib/pt-DS7isrlt.js +4 -4
- package/lib/ro-BHCICvJV.js +4 -4
- package/lib/ru-DUDtL41i.js +4 -4
- package/lib/sk-O9yqW58Q.js +4 -4
- package/lib/sl-CxcvfiDu.js +4 -4
- package/lib/sr-DgvzAvVS.js +4 -4
- package/lib/sv-BtktR0mm.js +4 -4
- package/lib/sw-D06YJhji.js +4 -4
- package/lib/th-C1KZhtMd.js +4 -4
- package/lib/tr-CqpbTukW.js +4 -4
- package/lib/uk-BWHH_jN1.js +4 -4
- package/lib/ur-BHWni4Fn.js +4 -4
- package/lib/{useCollectFieldsEndpoint-Cr35G2r3.js → useCollectFieldsEndpoint-BQ5aW19V.js} +6 -6
- package/lib/{useCollectFieldsEndpoint-Cr35G2r3.js.map → useCollectFieldsEndpoint-BQ5aW19V.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-DlXApcjo.js → useEmailFirstExperiment-BQJ0MgrE.js} +5 -5
- package/lib/{useEmailFirstExperiment-DlXApcjo.js.map → useEmailFirstExperiment-BQJ0MgrE.js.map} +1 -1
- package/lib/vi-DVhQHKtP.js +4 -4
- package/lib/zh-HK-C-wTSVhL.js +4 -4
- package/lib/zh-qa3hzwEB.js +4 -4
- package/lib/zu-DwVIy-bC.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +5 -5
- package/sheerid.css +4 -4
- package/sheerid.js +35 -35
- package/sheerid.js.map +1 -1
- package/types-reference.zip +0 -0
- package/chunk/index-BFMzh8b3.js +0 -165
- package/chunk/index-BFMzh8b3.js.map +0 -1
- package/chunk/index-ByBO6KNx.js.map +0 -1
- package/chunk/index-C29suvHQ.js +0 -169
- package/chunk/index-C29suvHQ.js.map +0 -1
- package/chunk/index-VrTXSLSj.js.map +0 -1
- package/lib/StepCollectMilitaryStatusComponent-DseJISFi.js +0 -11
- package/lib/index-CP_WZyOa.js +0 -11
- package/lib/index-CP_WZyOa.js.map +0 -1
- package/lib/index-CV1ohhLI.js +0 -167
- package/lib/index-CV1ohhLI.js.map +0 -1
- package/lib/index-Cpk28-vQ.js +0 -11
- package/lib/index-Cpk28-vQ.js.map +0 -1
- package/lib/index-Df9fWUx-.js +0 -11
- package/lib/index-Df9fWUx-.js.map +0 -1
- package/lib/index-DzdUTBuN.js +0 -11
- package/lib/index-DzdUTBuN.js.map +0 -1
- package/lib/index-qLyUZP4Y.js +0 -116
- package/lib/index-qLyUZP4Y.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-Z410glzc.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;AAA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AAA,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-Dg8t7-dm.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,gBAAAA,EAAA;AAAA,IAACI;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,OAAAd;AAAA,MACA,UAAAE;AAAA,MACA,aACEG,KACAF,EAAK,kBAAkB;AAAA,QACrB,IAAI;AAAA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AAA,UAAA;AAAA,QAEJ,EAAA,CACF,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ,GAEa+E,KAAmCzE;"}
|
@@ -4,12 +4,12 @@
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
5
5
|
*/
|
6
6
|
/**
|
7
|
-
* VERSION: 2.115.0-alpha.
|
8
|
-
* BUILD_TIMESTAMP:
|
9
|
-
* BUILD_DATE: Tue Jul 08 2025 17:
|
10
|
-
* BUILD_COMMIT:
|
7
|
+
* VERSION: 2.115.0-alpha.5
|
8
|
+
* BUILD_TIMESTAMP: 1751997358313
|
9
|
+
* BUILD_DATE: Tue Jul 08 2025 17:55:58 GMT+0000 (Coordinated Universal Time)
|
10
|
+
* BUILD_COMMIT: e88df5182261b24ec3e7ea59f536a60ed4ed6a19
|
11
11
|
*/
|
12
|
-
import { i as A, h as T, _ as k, $ as q, d as B, R as L, u as d, j as o, t as
|
12
|
+
import { i as A, h as T, _ as k, $ as q, d as B, R as L, u as d, j as o, t as W, v as w, P as H, w as U, Q as K, g as l, x as O, y as z, W as G, a0 as Q, z as _, B as $, E as J, e as X, D as Y, G as Z, M as S, H as v, f as ee, V as se, b as ae, a1 as oe } from "../_mysheerid-preview.js";
|
13
13
|
import { u as te } from "./useCollectFieldsEndpoint-C5fsaYJe.js";
|
14
14
|
const de = ({ verificationService: s, intl: j }) => {
|
15
15
|
var p, C, h, b, i, g, N, x, y;
|
@@ -33,15 +33,15 @@ const de = ({ verificationService: s, intl: j }) => {
|
|
33
33
|
return L.useEffect(() => {
|
34
34
|
d("phoneNumber", a.phoneNumber, s);
|
35
35
|
}, [a.country]), /* @__PURE__ */ o.jsxs(
|
36
|
-
|
36
|
+
W,
|
37
37
|
{
|
38
38
|
verificationService: s,
|
39
39
|
step: r.currentStep,
|
40
40
|
children: [
|
41
41
|
/* @__PURE__ */ o.jsx(H, { verificationService: s, classNameIdentifier: "age" }),
|
42
|
-
/* @__PURE__ */ o.jsx(
|
42
|
+
/* @__PURE__ */ o.jsx(U, { verificationService: s }),
|
43
43
|
/* @__PURE__ */ o.jsx(
|
44
|
-
|
44
|
+
K,
|
45
45
|
{
|
46
46
|
verificationService: s,
|
47
47
|
disabled: (p = l("country")) == null ? void 0 : p.disabled
|
@@ -49,7 +49,7 @@ const de = ({ verificationService: s, intl: j }) => {
|
|
49
49
|
),
|
50
50
|
/* @__PURE__ */ o.jsxs("div", { className: "sid-names", children: [
|
51
51
|
/* @__PURE__ */ o.jsx(
|
52
|
-
|
52
|
+
O,
|
53
53
|
{
|
54
54
|
value: a.firstName,
|
55
55
|
isErrored: !!t.firstName,
|
@@ -84,7 +84,7 @@ const de = ({ verificationService: s, intl: j }) => {
|
|
84
84
|
}
|
85
85
|
),
|
86
86
|
u("city") && /* @__PURE__ */ o.jsx(
|
87
|
-
|
87
|
+
Q,
|
88
88
|
{
|
89
89
|
value: a.city,
|
90
90
|
isRequired: !0,
|
@@ -97,7 +97,7 @@ const de = ({ verificationService: s, intl: j }) => {
|
|
97
97
|
}
|
98
98
|
),
|
99
99
|
u("address1") && /* @__PURE__ */ o.jsx(
|
100
|
-
|
100
|
+
_,
|
101
101
|
{
|
102
102
|
value: a.address1,
|
103
103
|
isRequired: !0,
|
@@ -109,7 +109,7 @@ const de = ({ verificationService: s, intl: j }) => {
|
|
109
109
|
}
|
110
110
|
),
|
111
111
|
u("postalCode") && /* @__PURE__ */ o.jsx(
|
112
|
-
|
112
|
+
$,
|
113
113
|
{
|
114
114
|
isErrored: !!t.postalCode,
|
115
115
|
onChange: (e) => {
|
@@ -120,7 +120,7 @@ const de = ({ verificationService: s, intl: j }) => {
|
|
120
120
|
}
|
121
121
|
),
|
122
122
|
/* @__PURE__ */ o.jsx(
|
123
|
-
|
123
|
+
J,
|
124
124
|
{
|
125
125
|
value: a.email,
|
126
126
|
isErrored: !!t.email,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-Dg6e8PFO.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\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 { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\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 StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\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 updateAgeViewModel(\"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 updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"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 updateAgeViewModel(\"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.collectAgePersonalInfo}\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 </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","FirstName","_b","newValue","LastName","_c","BirthDate","_d","CityComponent","_e","AddressComponent","PostalCode","_f","Email","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","config","FormFieldCustom","MarketConsentWrapper","_i","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormattedHTMLMessage","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;AAqDA,MAAMA,KAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EACF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,YACA,YACEyB,gBAAAA,EAAA;AAAA,cAAC+B;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEaC,KAA+BC,EAAWhE,EAAmB;"}
|
1
|
+
{"version":3,"file":"index-DhGg9lvf.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\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 { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\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 StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\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 updateAgeViewModel(\"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 updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"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 updateAgeViewModel(\"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.collectAgePersonalInfo}\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 </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","FirstName","_b","newValue","LastName","_c","BirthDate","_d","CityComponent","_e","AddressComponent","PostalCode","_f","Email","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","config","FormFieldCustom","MarketConsentWrapper","_i","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormattedHTMLMessage","StepAgePersonalInfoComponent","injectI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,UAAA;AAAA,QAC3D;AAAA,QAEC3B,gBAAAA,EAAAA,IAAA4B,GAAA,EAAa,qBAAA1D,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpF8B,gBAAAA,EAAA;AAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,MAAMC,GAAsB;AAAA,YAC5B,qBAAA5D;AAAA,YACA,WAAAE;AAAA,YACA,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAA;AAAA,cAAC+B;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEaC,KAA+BC,EAAWhE,EAAmB;"}
|
@@ -4,12 +4,12 @@
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
5
5
|
*/
|
6
6
|
/**
|
7
|
-
* VERSION: 2.115.0-alpha.
|
8
|
-
* BUILD_TIMESTAMP:
|
9
|
-
* BUILD_DATE: Tue Jul 08 2025 17:
|
10
|
-
* BUILD_COMMIT:
|
7
|
+
* VERSION: 2.115.0-alpha.5
|
8
|
+
* BUILD_TIMESTAMP: 1751997358313
|
9
|
+
* BUILD_DATE: Tue Jul 08 2025 17:55:58 GMT+0000 (Coordinated Universal Time)
|
10
|
+
* BUILD_COMMIT: e88df5182261b24ec3e7ea59f536a60ed4ed6a19
|
11
11
|
*/
|
12
|
-
import { h as R, g as t, R as T, j as a, t as P, v as k, P as
|
12
|
+
import { h as R, g as t, R as T, j as a, t as P, v as k, P as q, w as z, Q as O, T as w, U as B, u as n, x as L, y as W, E as H, e as K, b as j, W as A, X as G, D as Q, G as U, M as X, H as J, f as Y, V as Z, m as _ } from "../_mysheerid-preview.js";
|
13
13
|
const $ = ({ verificationService: e }) => {
|
14
14
|
var p, b, u, h, C, i, x, g, M, I, N;
|
15
15
|
const o = e.viewModel, { fieldValidationErrors: d } = e, r = e.verificationResponse, E = R(r), y = k(), m = (p = t("memberId")) == null ? void 0 : p.requireIfOptional, F = o.localeChoice.value, l = (s, f) => {
|
@@ -33,15 +33,15 @@ const $ = ({ verificationService: e }) => {
|
|
33
33
|
step: r.currentStep,
|
34
34
|
children: [
|
35
35
|
/* @__PURE__ */ a.jsx(
|
36
|
-
|
36
|
+
q,
|
37
37
|
{
|
38
38
|
verificationService: e,
|
39
39
|
classNameIdentifier: "member-personal-info"
|
40
40
|
}
|
41
41
|
),
|
42
|
-
/* @__PURE__ */ a.jsx(
|
42
|
+
/* @__PURE__ */ a.jsx(z, { verificationService: e }),
|
43
43
|
/* @__PURE__ */ a.jsx(
|
44
|
-
|
44
|
+
O,
|
45
45
|
{
|
46
46
|
verificationService: e,
|
47
47
|
disabled: (b = t("country")) == null ? void 0 : b.disabled
|
@@ -136,7 +136,7 @@ const $ = ({ verificationService: e }) => {
|
|
136
136
|
) : null,
|
137
137
|
y.customFormFields.map((s) => /* @__PURE__ */ a.jsx(U, { config: s, verificationService: e })),
|
138
138
|
/* @__PURE__ */ a.jsx(
|
139
|
-
|
139
|
+
X,
|
140
140
|
{
|
141
141
|
verificationService: e,
|
142
142
|
isErrored: !!d.marketConsentValue,
|
@@ -150,7 +150,7 @@ const $ = ({ verificationService: e }) => {
|
|
150
150
|
disabled: (N = t("marketConsentValue")) == null ? void 0 : N.disabled
|
151
151
|
}
|
152
152
|
),
|
153
|
-
/* @__PURE__ */ a.jsx(
|
153
|
+
/* @__PURE__ */ a.jsx(J, { verificationService: e, suffix: "CollectAboveSubmit" }),
|
154
154
|
/* @__PURE__ */ a.jsx(
|
155
155
|
Y,
|
156
156
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-f8an5bUm.js","sources":["../../src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n Organization,\n MemberPersonalInfoViewModel,\n MemberPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MembershipOrganizationComponent } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { MarketConsentWrapperComponent } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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\";\n\ninterface StepMemberPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMemberPersonalInfo = ({ verificationService }: StepMemberPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MemberPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MemberPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const isMemberIdRequired = getFieldConfigByFieldId(\"memberId\")?.requireIfOptional;\n\n const locale = viewModel.localeChoice.value;\n\n const updateMemberViewModel = (key: keyof MemberPersonalInfoViewModel, value: any) => {\n const nextState: MemberPersonalInfoViewModel = produce(\n viewModel,\n (draft: MemberPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n if (!isMemberIdRequired) {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [\"memberId\"] },\n { partial: true },\n );\n } else {\n verificationService.updateViewModel({ fieldsToSkipValidation: [] }, { partial: true });\n }\n }, [isMemberIdRequired]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"member-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <MembershipOrganizationComponent\n value={(verificationService.viewModel as MemberPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"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 updateMemberViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateMemberViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired={getFieldConfigByFieldId(\"birthDate\")?.requireIfOptional}\n onChange={(newValue) => {\n updateMemberViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={isMemberIdRequired}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\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 updateMemberViewModel(\"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 <MarketConsentWrapperComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMemberViewModel(\"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.collectMemberPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Membership Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMemberPersonalInfoComponent = StepMemberPersonalInfo;\n"],"names":["StepMemberPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","isMemberIdRequired","_a","getFieldConfigByFieldId","locale","updateMemberViewModel","key","value","nextState","produce","draft","React","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_b","MembershipOrganizationComponent","_c","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","_d","newValue","LastName","_e","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","_f","BirthDate","_g","_h","MemberId","_i","PhoneNumber","_j","config","FormFieldCustom","MarketConsentWrapperComponent","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMemberPersonalInfoComponent"],"mappings":";AAyCA,MAAMA,IAAyB,CAAC,EAAE,qBAAAC,QAA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YACnF;AAAA,YACA,qBAAqBC,EAAU,iBAAiBA,EAAU,cAAc;AAAA,YACxE,WAAU8C,IAAArC,EAAwB,aAAa,MAArC,gBAAAqC,EAAwC;AAAA,UAAA;AAAA,QAAA,IAElD;AAAA,QAEHzC,EAAQ,iBAAiB,IAAI,CAAC0C,MAC5B3B,gBAAAA,MAAA4B,GAAA,EAAgB,QAAAD,GAAgB,qBAAAhD,EAAA,CAA0C,CAC5E;AAAA,QAEDqB,gBAAAA,EAAA;AAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,qBAAAlD;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,YACnC,UAAU,CAAC+B,MAAa;AACtB,cAAArB,EAAsB,YAAY;AAAA,gBAChC,GAAGZ,EAAoB,UAAU;AAAA,gBACjC,oBAAoBiC;AAAA,cAAA,CACrB,GACoCH,EAAA,sBAAsBG,GAAUjC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAC;AAAA,YACA,WAAUkD,IAAAzC,EAAwB,oBAAoB,MAA5C,gBAAAyC,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAEC9B,gBAAAA,EAAAA,IAAA+B,GAAA,EAAa,qBAAApD,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpFqB,gBAAAA,EAAA;AAAA,UAACgC;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAtD;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEiB,gBAAAA,EAAA;AAAA,cAACgB;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEakB,IAAkCxD;"}
|
1
|
+
{"version":3,"file":"index-DsgCNIS5.js","sources":["../../src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n Organization,\n MemberPersonalInfoViewModel,\n MemberPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MembershipOrganizationComponent } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { MarketConsentWrapperComponent } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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\";\n\ninterface StepMemberPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMemberPersonalInfo = ({ verificationService }: StepMemberPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MemberPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MemberPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const isMemberIdRequired = getFieldConfigByFieldId(\"memberId\")?.requireIfOptional;\n\n const locale = viewModel.localeChoice.value;\n\n const updateMemberViewModel = (key: keyof MemberPersonalInfoViewModel, value: any) => {\n const nextState: MemberPersonalInfoViewModel = produce(\n viewModel,\n (draft: MemberPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n if (!isMemberIdRequired) {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [\"memberId\"] },\n { partial: true },\n );\n } else {\n verificationService.updateViewModel({ fieldsToSkipValidation: [] }, { partial: true });\n }\n }, [isMemberIdRequired]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"member-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <MembershipOrganizationComponent\n value={(verificationService.viewModel as MemberPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"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 updateMemberViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateMemberViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired={getFieldConfigByFieldId(\"birthDate\")?.requireIfOptional}\n onChange={(newValue) => {\n updateMemberViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={isMemberIdRequired}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\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 updateMemberViewModel(\"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 <MarketConsentWrapperComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMemberViewModel(\"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.collectMemberPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Membership Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMemberPersonalInfoComponent = StepMemberPersonalInfo;\n"],"names":["StepMemberPersonalInfo","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","isMemberIdRequired","_a","getFieldConfigByFieldId","locale","updateMemberViewModel","key","value","nextState","produce","draft","React","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_b","MembershipOrganizationComponent","_c","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","_d","newValue","LastName","_e","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","_f","BirthDate","_g","_h","MemberId","_i","PhoneNumber","_j","config","FormFieldCustom","MarketConsentWrapperComponent","_k","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum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2
2
|
/**
|
3
|
-
* VERSION: 2.115.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE: Tue Jul 08 2025 17:
|
6
|
-
* BUILD_COMMIT:
|
3
|
+
* VERSION: 2.115.0-alpha.5
|
4
|
+
* BUILD_TIMESTAMP: 1751997295197
|
5
|
+
* BUILD_DATE: Tue Jul 08 2025 17:54:55 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: e88df5182261b24ec3e7ea59f536a60ed4ed6a19
|
7
7
|
*/
|
8
|
-
import { i as U, h as G, R as $, j as s, t as
|
8
|
+
import { i as U, h as G, R as $, j as s, t as Q, P as X, a8 as Y, E as F, g as l, u as t, b as r, v as J, w as Z, Q as _, a2 as S, ak as v, ab as ee, al as ae, am as se, U as oe, x as le, y as ne, W as te, B as de, e as re, D as me, X as ie, G as pe, M as ue, H as be, f as ge, V as Ce, a1 as xe } from "../sheerid.js";
|
9
9
|
import { u as he } from "./useCollectFieldsEndpoint-kmLFyUA-.js";
|
10
10
|
import { u as Me, E as Ee } from "./useEmailFirstExperiment-CgU-itQI.js";
|
11
11
|
const Ie = {
|
@@ -26,21 +26,21 @@ const Ie = {
|
|
26
26
|
verificationService: a
|
27
27
|
}) => {
|
28
28
|
var g, C, x, h, M, E, I, j, N, y, f, P, c;
|
29
|
-
const o = a.viewModel, { fieldValidationErrors: n } = a, m = a.verificationResponse, R = G(m), D =
|
29
|
+
const o = a.viewModel, { fieldValidationErrors: n } = a, m = a.verificationResponse, R = G(m), D = J(), L = o.localeChoice.value, d = (e, W) => {
|
30
30
|
const A = xe(o, e, W);
|
31
31
|
a.updateViewModel(A);
|
32
|
-
}, { isFieldOptional:
|
32
|
+
}, { isFieldOptional: w } = he({
|
33
33
|
verificationId: m.verificationId,
|
34
34
|
currentStep: m.currentStep,
|
35
35
|
viewModel: o
|
36
|
-
}), p =
|
36
|
+
}), p = w("memberId"), {
|
37
37
|
isEmailUpTop: u,
|
38
|
-
isEmailValidationLoading:
|
39
|
-
showFormFields:
|
38
|
+
isEmailValidationLoading: K,
|
39
|
+
showFormFields: T,
|
40
40
|
emailLookupResponse: b,
|
41
41
|
emailOnBlur: B,
|
42
|
-
emailOnKeyDown:
|
43
|
-
handleResendClick:
|
42
|
+
emailOnKeyDown: V,
|
43
|
+
handleResendClick: O,
|
44
44
|
showEmailLookupResponseMessages: z,
|
45
45
|
enableFormFields: H,
|
46
46
|
handleOnClickProceedHere: q
|
@@ -55,13 +55,13 @@ const Ie = {
|
|
55
55
|
{ partial: !0 }
|
56
56
|
);
|
57
57
|
}, [p]), /* @__PURE__ */ s.jsxs(
|
58
|
-
|
58
|
+
Q,
|
59
59
|
{
|
60
60
|
verificationService: a,
|
61
61
|
step: m.currentStep,
|
62
62
|
children: [
|
63
63
|
/* @__PURE__ */ s.jsx(
|
64
|
-
|
64
|
+
X,
|
65
65
|
{
|
66
66
|
verificationService: a,
|
67
67
|
classNameIdentifier: "medical-personal-info"
|
@@ -69,7 +69,7 @@ const Ie = {
|
|
69
69
|
),
|
70
70
|
// #region email-first-experiment
|
71
71
|
u && /* @__PURE__ */ s.jsxs("div", { className: "email-input-wrapper", children: [
|
72
|
-
|
72
|
+
K && /* @__PURE__ */ s.jsx("div", { className: "email-input-wrapper-frame", children: /* @__PURE__ */ s.jsx("div", { className: "transform-scale", children: /* @__PURE__ */ s.jsx(Y, {}) }) }),
|
73
73
|
/* @__PURE__ */ s.jsx(
|
74
74
|
F,
|
75
75
|
{
|
@@ -85,7 +85,7 @@ const Ie = {
|
|
85
85
|
onChange: (e) => {
|
86
86
|
d("email", e), t("email", e, a);
|
87
87
|
},
|
88
|
-
onKeyDown:
|
88
|
+
onKeyDown: V,
|
89
89
|
onBlur: B,
|
90
90
|
disabled: (g = l("email")) == null ? void 0 : g.disabled
|
91
91
|
}
|
@@ -95,11 +95,11 @@ const Ie = {
|
|
95
95
|
Ee,
|
96
96
|
{
|
97
97
|
emailLookupResponse: b,
|
98
|
-
onResendClick:
|
98
|
+
onResendClick: O,
|
99
99
|
onHandleClickLink: q
|
100
100
|
}
|
101
101
|
),
|
102
|
-
|
102
|
+
T && /* @__PURE__ */ s.jsxs("div", { className: H || !u ? "" : "sid-disable-elements", children: [
|
103
103
|
/* @__PURE__ */ s.jsx(Z, { verificationService: a }),
|
104
104
|
/* @__PURE__ */ s.jsx(
|
105
105
|
_,
|