@sheerid/jslib-nightly 2.115.0-alpha.3 → 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-CRs0n7WO.js → EmailLoopPending-BqnEHjcx.js} +5 -5
- package/lib/{EmailLoopPending-CRs0n7WO.js.map → EmailLoopPending-BqnEHjcx.js.map} +1 -1
- package/lib/{LicensedProfessionalOrganizationComponent-DpimxCKC.js → LicensedProfessionalOrganizationComponent-I40RHZzh.js} +5 -5
- package/lib/{LicensedProfessionalOrganizationComponent-DpimxCKC.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-DjIRHg05.js.map → StepCollectMilitaryStatusComponent-BNH7Je51.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-DNOdBaAR.js → StepIDCheckLoopOnfido-Ci2KTJn-.js} +5 -5
- package/lib/{StepIDCheckLoopOnfido-DNOdBaAR.js.map → StepIDCheckLoopOnfido-Ci2KTJn-.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-CX73icyg.js → StepIDCheckLoopRegula-DuxG7hWy.js} +5 -5
- package/lib/{StepIDCheckLoopRegula-CX73icyg.js.map → StepIDCheckLoopRegula-DuxG7hWy.js.map} +1 -1
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-CeJIe91S.js → StepInactiveMilitaryPersonalInfoComponent-D4ijPW5z.js} +11 -11
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-CeJIe91S.js.map → StepInactiveMilitaryPersonalInfoComponent-D4ijPW5z.js.map} +1 -1
- package/lib/{VerificationApiUtils-DCEPKSOt.js → VerificationApiUtils-8XFod-0J.js} +5 -5
- package/lib/{VerificationApiUtils-DCEPKSOt.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-C2abemUD.js → es6-lyLg3maN.js} +48 -48
- package/lib/{es6-C2abemUD.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--1Hzxve4.js → index-B-RroNZn.js} +11 -11
- package/lib/{index--1Hzxve4.js.map → index-B-RroNZn.js.map} +1 -1
- package/lib/{index-DbaJBiSs.js → index-BAVRmKBf.js} +7 -7
- package/lib/{index-DbaJBiSs.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-EEqCPFo8.js → index-BbUk_kvD.js} +9 -9
- package/lib/{index-EEqCPFo8.js.map → index-BbUk_kvD.js.map} +1 -1
- package/lib/{index-DCCPfELa.js → index-Bz8EuRgm.js} +5 -5
- package/lib/{index-DCCPfELa.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-8kESiptt.js → index-CN5zTJ3Z.js} +5 -5
- package/lib/{index-8kESiptt.js.map → index-CN5zTJ3Z.js.map} +1 -1
- package/lib/{index-7L1Z0u1-.js → index-CNoXAS7x.js} +5 -5
- package/lib/{index-7L1Z0u1-.js.map → index-CNoXAS7x.js.map} +1 -1
- package/lib/{index-CS_JuJR3.js → index-CZNqz2c5.js} +10 -10
- package/lib/{index-CS_JuJR3.js.map → index-CZNqz2c5.js.map} +1 -1
- package/lib/{index-DdKeUKWu.js → index-CZwVJrVW.js} +10 -10
- package/lib/{index-DdKeUKWu.js.map → index-CZwVJrVW.js.map} +1 -1
- package/lib/{index-BtM1XPhl.js → index-CoO8Bv1D.js} +5 -5
- package/lib/{index-BtM1XPhl.js.map → index-CoO8Bv1D.js.map} +1 -1
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/{index-84DA_jT2.js → index-DQ1FR6yi.js} +10 -10
- package/lib/{index-84DA_jT2.js.map → index-DQ1FR6yi.js.map} +1 -1
- package/lib/{index-Bb5tkw_V.js → index-DQGCC6Sz.js} +12 -12
- package/lib/{index-Bb5tkw_V.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-B_BS9qnQ.js → index-DSj4scHr.js} +13 -13
- package/lib/{index-B_BS9qnQ.js.map → index-DSj4scHr.js.map} +1 -1
- package/lib/{index-C3CtMm2Q.js → index-DXYYA9yF.js} +14 -14
- package/lib/{index-C3CtMm2Q.js.map → index-DXYYA9yF.js.map} +1 -1
- package/lib/{index-DrxXRhEO.js → index-DwrnJL6C.js} +5 -5
- package/lib/{index-DrxXRhEO.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-PtF39r2i.js → index-XsdsrGRA.js} +11 -11
- package/lib/{index-PtF39r2i.js.map → index-XsdsrGRA.js.map} +1 -1
- package/lib/{index-Dm5PevSE.js → index-_OKAkkyk.js} +9 -9
- package/lib/{index-Dm5PevSE.js.map → index-_OKAkkyk.js.map} +1 -1
- package/lib/{index-DlwFWaiY.js → index-_i5al0uD.js} +14 -14
- package/lib/{index-DlwFWaiY.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-C9_ygIzy.js → useCollectFieldsEndpoint-BQ5aW19V.js} +6 -6
- package/lib/{useCollectFieldsEndpoint-C9_ygIzy.js.map → useCollectFieldsEndpoint-BQ5aW19V.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-Cib954tq.js → useEmailFirstExperiment-BQJ0MgrE.js} +5 -5
- package/lib/{useEmailFirstExperiment-Cib954tq.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-DjIRHg05.js +0 -11
- package/lib/index-Bm_R6wgA.js +0 -11
- package/lib/index-Bm_R6wgA.js.map +0 -1
- package/lib/index-BzZl5JDO.js +0 -167
- package/lib/index-BzZl5JDO.js.map +0 -1
- package/lib/index-CNmUvsR-.js +0 -11
- package/lib/index-CNmUvsR-.js.map +0 -1
- package/lib/index-Cg0pahuD.js +0 -11
- package/lib/index-Cg0pahuD.js.map +0 -1
- package/lib/index-DbQvQo1A.js +0 -11
- package/lib/index-DbQvQo1A.js.map +0 -1
- package/lib/index-K0J2eq7Y.js +0 -116
- package/lib/index-K0J2eq7Y.js.map +0 -1
@@ -0,0 +1,154 @@
|
|
1
|
+
|
2
|
+
/**
|
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
|
+
*/
|
8
|
+
import { j as s, L as c, b as a, A as p, O as g, K as u, V as d, k as x, u as b, l as j, m as h, i as E } from "../sheerid.js";
|
9
|
+
import { EmailLoopPendingComponent as f } from "./EmailLoopPending-Dy8mLFvV.js";
|
10
|
+
const L = ({
|
11
|
+
verificationService: e
|
12
|
+
}) => {
|
13
|
+
var t;
|
14
|
+
const i = e.viewModel, o = e.fieldValidationErrors, n = (((t = e.verificationResponse) == null ? void 0 : t.errorIds) || []).includes(
|
15
|
+
"invalidEmail"
|
16
|
+
), r = (l) => {
|
17
|
+
e.updateViewModel({ ...i, organizationEmail: l }), b(
|
18
|
+
"organizationEmail",
|
19
|
+
l,
|
20
|
+
e
|
21
|
+
);
|
22
|
+
}, m = async () => {
|
23
|
+
j.info("StepEmailLoopComponent submitting form after skipping email loop");
|
24
|
+
const l = h(i, () => {
|
25
|
+
});
|
26
|
+
return e.submitStep(
|
27
|
+
d.cancelEmailLoop,
|
28
|
+
l,
|
29
|
+
e.verificationResponse
|
30
|
+
);
|
31
|
+
};
|
32
|
+
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
33
|
+
/* @__PURE__ */ s.jsxs("div", { className: "sid-header sid-l-horz-center", children: [
|
34
|
+
/* @__PURE__ */ s.jsxs("div", { role: "main", children: [
|
35
|
+
/* @__PURE__ */ s.jsx("div", { className: "sid-sso-logo-container sid-l-horz-center", children: /* @__PURE__ */ s.jsx(
|
36
|
+
c,
|
37
|
+
{
|
38
|
+
verificationService: e,
|
39
|
+
fallbackLogo: /* @__PURE__ */ s.jsx(
|
40
|
+
"img",
|
41
|
+
{
|
42
|
+
className: "sid-sso-logo-default sid-l-lead-image",
|
43
|
+
alt: "",
|
44
|
+
src: "https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg"
|
45
|
+
}
|
46
|
+
)
|
47
|
+
}
|
48
|
+
) }),
|
49
|
+
/* @__PURE__ */ s.jsx("div", { className: "sid-preheader-label sid-l-space-top-md", children: /* @__PURE__ */ s.jsx("span", { className: "sid-h-label", children: /* @__PURE__ */ s.jsx(a, { id: "instant", defaultMessage: "Instant" }) }) }),
|
50
|
+
/* @__PURE__ */ s.jsx(p, { align: "center", children: /* @__PURE__ */ s.jsx(
|
51
|
+
a,
|
52
|
+
{
|
53
|
+
id: "step.emailLoop.collectOrganizationEmail.title",
|
54
|
+
defaultMessage: "Verify using your work email address",
|
55
|
+
tagName: "h1"
|
56
|
+
}
|
57
|
+
) }),
|
58
|
+
/* @__PURE__ */ s.jsx("div", { className: "sid-header__subtitle-one", children: /* @__PURE__ */ s.jsx(
|
59
|
+
a,
|
60
|
+
{
|
61
|
+
id: "step.emailLoop.collectOrganizationEmail.subtitle",
|
62
|
+
defaultMessage: "Enter the email address provided by your employer and we'll send you a verification link"
|
63
|
+
}
|
64
|
+
) })
|
65
|
+
] }),
|
66
|
+
/* @__PURE__ */ s.jsxs("div", { className: "sid-form-region sid-email-submit sid-submit-wrapper sid-l-space-top-md", children: [
|
67
|
+
/* @__PURE__ */ s.jsx(
|
68
|
+
g,
|
69
|
+
{
|
70
|
+
fieldId: "emailOverride",
|
71
|
+
value: i.organizationEmail,
|
72
|
+
onChange: r,
|
73
|
+
placeholder: "",
|
74
|
+
label: /* @__PURE__ */ s.jsx(
|
75
|
+
a,
|
76
|
+
{
|
77
|
+
id: "step.emailLoop.collectOrganizationEmail.email.label",
|
78
|
+
defaultMessage: "Work email address"
|
79
|
+
}
|
80
|
+
),
|
81
|
+
errorMessage: n && /* @__PURE__ */ s.jsx(
|
82
|
+
a,
|
83
|
+
{
|
84
|
+
id: "step.emailLoop.errors.invalidEmail",
|
85
|
+
defaultMessage: "This email address is not valid for instant verification. Please use an email address provided by your employer or upload documentation below."
|
86
|
+
}
|
87
|
+
) || o.organizationEmail && /* @__PURE__ */ s.jsx(a, { id: "emailIds.invalidEmail", defaultMessage: "Invalid email" })
|
88
|
+
}
|
89
|
+
),
|
90
|
+
/* @__PURE__ */ s.jsx("div", { className: "sid-l-space-top-sm", children: /* @__PURE__ */ s.jsx(
|
91
|
+
"button",
|
92
|
+
{
|
93
|
+
id: "sid-submit-btn-sso",
|
94
|
+
type: "submit",
|
95
|
+
disabled: !!o.organizationEmail,
|
96
|
+
onClick: () => u(
|
97
|
+
i,
|
98
|
+
e,
|
99
|
+
d.emailLoopCollectOrganizationEmail
|
100
|
+
),
|
101
|
+
className: "sid-btn sid-sso-submit-btn sid-btn--dark sid-l-full-width ",
|
102
|
+
"aria-label": "submit",
|
103
|
+
children: /* @__PURE__ */ s.jsx(
|
104
|
+
a,
|
105
|
+
{
|
106
|
+
id: "step.emailLoop.collectOrganizationEmail.email.send",
|
107
|
+
defaultMessage: "Send Email"
|
108
|
+
}
|
109
|
+
)
|
110
|
+
}
|
111
|
+
) }),
|
112
|
+
/* @__PURE__ */ s.jsxs("div", { className: "sid-form-region sid-l-space-top-lg sid-l-horz-center", children: [
|
113
|
+
/* @__PURE__ */ s.jsx("div", { className: "sid-header__subtitle-two sid-h-bold-text", children: /* @__PURE__ */ s.jsx(
|
114
|
+
a,
|
115
|
+
{
|
116
|
+
id: "step.emailLoop.collectOrganizationEmail.alternative",
|
117
|
+
defaultMessage: "Unable to access a work email address?"
|
118
|
+
}
|
119
|
+
) }),
|
120
|
+
/* @__PURE__ */ s.jsx("div", { className: "sid-form-region sid-l-space-btm-sm sid-l-space-top-sm", children: /* @__PURE__ */ s.jsx(
|
121
|
+
a,
|
122
|
+
{
|
123
|
+
id: "step.sso.alternative",
|
124
|
+
defaultMessage: "You can also verify by uploading proof of eligibility"
|
125
|
+
}
|
126
|
+
) }),
|
127
|
+
/* @__PURE__ */ s.jsx("div", { className: "sid-l-space-top-sm", children: /* @__PURE__ */ s.jsx(
|
128
|
+
"button",
|
129
|
+
{
|
130
|
+
onClick: m,
|
131
|
+
className: "sid-h-btn-link-like sid-link sid-h-bold-text",
|
132
|
+
type: "button",
|
133
|
+
children: /* @__PURE__ */ s.jsx(
|
134
|
+
a,
|
135
|
+
{
|
136
|
+
id: "step.sso.cancel",
|
137
|
+
defaultMessage: "Upload Proof of Enrollment"
|
138
|
+
}
|
139
|
+
)
|
140
|
+
}
|
141
|
+
) })
|
142
|
+
] }),
|
143
|
+
/* @__PURE__ */ s.jsx("div", { className: "sid-l-space-top-lg" })
|
144
|
+
] })
|
145
|
+
] }),
|
146
|
+
/* @__PURE__ */ s.jsx(x, { verificationService: e })
|
147
|
+
] });
|
148
|
+
}, N = ({ verificationService: e }) => {
|
149
|
+
const i = e.verificationResponse.currentState === "collectOrganizationEmail";
|
150
|
+
return /* @__PURE__ */ s.jsx("div", { id: "sid-step-email-loop", className: "sid-step-email-loop-container sid-l-container", children: i ? /* @__PURE__ */ s.jsx(L, { verificationService: e }) : /* @__PURE__ */ s.jsx(f, { verificationService: e }) });
|
151
|
+
}, z = E(N);
|
152
|
+
export {
|
153
|
+
z as default
|
154
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-Gfy-1H7s.js","sources":["../../src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.tsx","../../src/components/StepEmailLoop/StepEmailLoopComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\n\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { FormFieldText } from \"../FormFields/FormFieldText/FormFieldText\";\nimport {\n updateFieldValidationErrorsByFieldId,\n submitForm,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n EmailLoopCollectOrganizationEmailViewModel,\n VerificationService,\n} from \"../../lib/types/types\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nexport const EmailLoopCollectOrganizationEmail = ({\n verificationService,\n}: {\n verificationService: VerificationService;\n}) => {\n const viewModel = verificationService.viewModel as EmailLoopCollectOrganizationEmailViewModel;\n const fieldValidationErrors = verificationService.fieldValidationErrors;\n const isInvalidOrgEmail = (verificationService.verificationResponse?.errorIds || []).includes(\n \"invalidEmail\",\n );\n\n const setEmailValue = (organizationEmail: string) => {\n verificationService.updateViewModel({ ...viewModel, organizationEmail });\n updateFieldValidationErrorsByFieldId(\n \"organizationEmail\",\n organizationEmail,\n verificationService,\n );\n };\n\n const cancelEmailLoop = async () => {\n logger.info(\"StepEmailLoopComponent submitting form after skipping email loop\");\n const nextState = produce(viewModel, () => {});\n return verificationService.submitStep(\n VerificationStepsEnum.cancelEmailLoop,\n nextState,\n verificationService.verificationResponse,\n );\n };\n\n return (\n <>\n <div className=\"sid-header sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-sso-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-sso-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg\"\n />\n }\n />\n </div>\n <div className=\"sid-preheader-label sid-l-space-top-md\">\n <span className=\"sid-h-label\">\n <FormattedHTMLMessage id=\"instant\" defaultMessage=\"Instant\" />\n </span>\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.title\"\n defaultMessage=\"Verify using your work email address\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle-one\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.subtitle\"\n defaultMessage=\"Enter the email address provided by your employer and we'll send you a verification link\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-email-submit sid-submit-wrapper sid-l-space-top-md\">\n <FormFieldText\n fieldId=\"emailOverride\"\n value={viewModel.organizationEmail}\n onChange={setEmailValue}\n placeholder=\"\"\n label={\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.label\"\n defaultMessage=\"Work email address\"\n />\n }\n errorMessage={\n (isInvalidOrgEmail && (\n <FormattedHTMLMessage\n id=\"step.emailLoop.errors.invalidEmail\"\n defaultMessage=\"This email address is not valid for instant verification. Please use an email address provided by your employer or upload documentation below.\"\n />\n )) ||\n (fieldValidationErrors.organizationEmail && (\n <FormattedHTMLMessage id=\"emailIds.invalidEmail\" defaultMessage=\"Invalid email\" />\n ))\n }\n />\n <div className=\"sid-l-space-top-sm\">\n <button\n id=\"sid-submit-btn-sso\"\n type=\"submit\"\n disabled={!!fieldValidationErrors.organizationEmail}\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.emailLoopCollectOrganizationEmail,\n )\n }\n className=\"sid-btn sid-sso-submit-btn sid-btn--dark sid-l-full-width \"\n aria-label=\"submit\"\n >\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.send\"\n defaultMessage=\"Send Email\"\n />\n </button>\n </div>\n\n <div className=\"sid-form-region sid-l-space-top-lg sid-l-horz-center\">\n <div className=\"sid-header__subtitle-two sid-h-bold-text\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.alternative\"\n defaultMessage=\"Unable to access a work email address?\"\n />\n </div>\n <div className=\"sid-form-region sid-l-space-btm-sm sid-l-space-top-sm\">\n <FormattedHTMLMessage\n id=\"step.sso.alternative\"\n defaultMessage=\"You can also verify by uploading proof of eligibility\"\n />\n </div>\n <div className=\"sid-l-space-top-sm\">\n <button\n onClick={cancelEmailLoop}\n className=\"sid-h-btn-link-like sid-link sid-h-bold-text\"\n type=\"button\"\n >\n <FormattedHTMLMessage\n id=\"step.sso.cancel\"\n defaultMessage=\"Upload Proof of Enrollment\"\n />\n </button>\n </div>\n </div>\n\n <div className=\"sid-l-space-top-lg\" />\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </>\n );\n};\n","import React from \"react\";\nimport { injectIntl, InjectedIntl } from \"react-intl\";\n\nimport { EmailLoopResponse, VerificationService } from \"../../lib/types/types\";\n\nimport { EmailLoopCollectOrganizationEmail } from \"./EmailLoopCollectOrganizationEmail\";\nimport { EmailLoopPendingComponent } from \"./EmailLoopPending\";\n\nexport interface StepEmailLoopComponentProps {\n // eslint-disable-next-line react/no-unused-prop-types -- this prop type is reused in the sub components\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepEmailLoop = ({ verificationService }: StepEmailLoopComponentProps) => {\n const isCollectOrgEmailState =\n (verificationService.verificationResponse as EmailLoopResponse).currentState ===\n \"collectOrganizationEmail\";\n return (\n <div id=\"sid-step-email-loop\" className=\"sid-step-email-loop-container sid-l-container\">\n {isCollectOrgEmailState ? (\n <EmailLoopCollectOrganizationEmail verificationService={verificationService} />\n ) : (\n <EmailLoopPendingComponent verificationService={verificationService} />\n )}\n </div>\n );\n};\n\nexport const StepEmailLoopComponent = injectIntl(StepEmailLoop);\n"],"names":["EmailLoopCollectOrganizationEmail","verificationService","viewModel","fieldValidationErrors","isInvalidOrgEmail","_a","setEmailValue","organizationEmail","updateFieldValidationErrorsByFieldId","cancelEmailLoop","logger","nextState","produce","VerificationStepsEnum","jsxs","Fragment","jsx","LogoComponent","FormattedHTMLMessage","AnnouncingHeader","FormFieldText","submitForm","FormFooter","StepEmailLoop","isCollectOrgEmailState","EmailLoopPendingComponent","StepEmailLoopComponent","injectIntl"],"mappings":";;AAoBO,MAAMA,IAAoC,CAAC;AAAA,EAChD,qBAAAC;AACF,MAEM;;AACJ,QAAMC,IAAYD,EAAoB,WAChCE,IAAwBF,EAAoB,uBAC5CG,OAAqBC,IAAAJ,EAAoB,yBAApB,gBAAAI,EAA0C,aAAY,CAAI,GAAA;AAAA,IACnF;AAAA,EACF,GAEMC,IAAgB,CAACC,MAA8B;AACnD,IAAAN,EAAoB,gBAAgB,EAAE,GAAGC,GAAW,mBAAAK,GAAmB,GACvEC;AAAA,MACE;AAAA,MACAD;AAAA,MACAN;AAAA,IACF;AAAA,EACF,GAEMQ,IAAkB,YAAY;AAClC,IAAAC,EAAO,KAAK,kEAAkE;AACxE,UAAAC,IAAYC,EAAQV,GAAW,MAAM;AAAA,IAAA,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,cACH,gBAAe;AAAA,YAAA;AAAA,UAAA,GAEnB;AAAA,UACAF,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,sBACb,UAAAA,gBAAAA,EAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,SAASP;AAAA,cACT,WAAU;AAAA,cACV,MAAK;AAAA,cAEL,UAAAO,gBAAAA,EAAA;AAAA,gBAACE;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA,EAEJ,CAAA;AAAA,QAAA,GACF;AAAA,QAEAF,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,qBAAqB,CAAA;AAAA,MAAA,EACtC,CAAA;AAAA,IAAA,GACF;AAAA,IACAA,gBAAAA,MAACM,KAAW,qBAAArB,EAA0C,CAAA;AAAA,EAAA,GACxD;AAEJ,GCvJasB,IAAgB,CAAC,EAAE,qBAAAtB,QAAuD;AAC/E,QAAAuB,IACHvB,EAAoB,qBAA2C,iBAChE;AACF,SACGe,gBAAAA,EAAA,IAAA,OAAA,EAAI,IAAG,uBAAsB,WAAU,iDACrC,UAAAQ,IACER,gBAAAA,EAAA,IAAAhB,GAAA,EAAkC,qBAAAC,EAA0C,CAAA,IAE5Ee,gBAAAA,EAAAA,IAAAS,GAAA,EAA0B,qBAAAxB,EAA0C,CAAA,GAEzE;AAEJ,GAEayB,IAAyBC,EAAWJ,CAAa;"}
|
@@ -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:
|
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 U, h as G, R as $, j as s, t as
|
12
|
+
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 "../_mysheerid-preview.js";
|
13
13
|
import { u as he } from "./useCollectFieldsEndpoint-C5fsaYJe.js";
|
14
14
|
import { u as Me, E as Ee } from "./useEmailFirstExperiment-BbDrKQEs.js";
|
15
15
|
const Ie = {
|
@@ -30,21 +30,21 @@ const Ie = {
|
|
30
30
|
verificationService: a
|
31
31
|
}) => {
|
32
32
|
var g, C, x, h, M, E, I, j, N, y, f, P, c;
|
33
|
-
const o = a.viewModel, { fieldValidationErrors: n } = a, m = a.verificationResponse, R = G(m), D =
|
33
|
+
const o = a.viewModel, { fieldValidationErrors: n } = a, m = a.verificationResponse, R = G(m), D = J(), L = o.localeChoice.value, d = (e, W) => {
|
34
34
|
const A = xe(o, e, W);
|
35
35
|
a.updateViewModel(A);
|
36
|
-
}, { isFieldOptional:
|
36
|
+
}, { isFieldOptional: w } = he({
|
37
37
|
verificationId: m.verificationId,
|
38
38
|
currentStep: m.currentStep,
|
39
39
|
viewModel: o
|
40
|
-
}), p =
|
40
|
+
}), p = w("memberId"), {
|
41
41
|
isEmailUpTop: u,
|
42
|
-
isEmailValidationLoading:
|
43
|
-
showFormFields:
|
42
|
+
isEmailValidationLoading: K,
|
43
|
+
showFormFields: T,
|
44
44
|
emailLookupResponse: b,
|
45
45
|
emailOnBlur: B,
|
46
|
-
emailOnKeyDown:
|
47
|
-
handleResendClick:
|
46
|
+
emailOnKeyDown: V,
|
47
|
+
handleResendClick: O,
|
48
48
|
showEmailLookupResponseMessages: z,
|
49
49
|
enableFormFields: H,
|
50
50
|
handleOnClickProceedHere: q
|
@@ -59,13 +59,13 @@ const Ie = {
|
|
59
59
|
{ partial: !0 }
|
60
60
|
);
|
61
61
|
}, [p]), /* @__PURE__ */ s.jsxs(
|
62
|
-
|
62
|
+
Q,
|
63
63
|
{
|
64
64
|
verificationService: a,
|
65
65
|
step: m.currentStep,
|
66
66
|
children: [
|
67
67
|
/* @__PURE__ */ s.jsx(
|
68
|
-
|
68
|
+
X,
|
69
69
|
{
|
70
70
|
verificationService: a,
|
71
71
|
classNameIdentifier: "medical-personal-info"
|
@@ -73,7 +73,7 @@ const Ie = {
|
|
73
73
|
),
|
74
74
|
// #region email-first-experiment
|
75
75
|
u && /* @__PURE__ */ s.jsxs("div", { className: "email-input-wrapper", children: [
|
76
|
-
|
76
|
+
K && /* @__PURE__ */ s.jsx("div", { className: "email-input-wrapper-frame", children: /* @__PURE__ */ s.jsx("div", { className: "transform-scale", children: /* @__PURE__ */ s.jsx(Y, {}) }) }),
|
77
77
|
/* @__PURE__ */ s.jsx(
|
78
78
|
F,
|
79
79
|
{
|
@@ -89,7 +89,7 @@ const Ie = {
|
|
89
89
|
onChange: (e) => {
|
90
90
|
d("email", e), t("email", e, a);
|
91
91
|
},
|
92
|
-
onKeyDown:
|
92
|
+
onKeyDown: V,
|
93
93
|
onBlur: B,
|
94
94
|
disabled: (g = l("email")) == null ? void 0 : g.disabled
|
95
95
|
}
|
@@ -99,11 +99,11 @@ const Ie = {
|
|
99
99
|
Ee,
|
100
100
|
{
|
101
101
|
emailLookupResponse: b,
|
102
|
-
onResendClick:
|
102
|
+
onResendClick: O,
|
103
103
|
onHandleClickLink: q
|
104
104
|
}
|
105
105
|
),
|
106
|
-
|
106
|
+
T && /* @__PURE__ */ s.jsxs("div", { className: H || !u ? "" : "sid-disable-elements", children: [
|
107
107
|
/* @__PURE__ */ s.jsx(Z, { verificationService: a }),
|
108
108
|
/* @__PURE__ */ s.jsx(
|
109
109
|
_,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-BYGkr72X.js","sources":["../../src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n MedicalProfessionalPersonalInfoViewModel,\n MedicalProfessionalPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModel,\n getStatusLabel,\n getAvailableMedicalStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { StatusComponent as MedicalStatus } from \"../FormFields/Status/StatusComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport EmailLookupResponseMessages from \"../FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent\";\nimport { LoadingSpinnerComponent } from \"../LoadingSpinner/LoadingSpinnerComponent\";\nimport { useEmailFirstExperiment } from \"../FormFields/EmailFirstCollectInfo/useEmailFirstExperiment\";\n\ninterface StepMedicalProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype MemberIdFieldType =\n | \"registrationNumber\"\n | \"numeroColegiado\"\n | \"autorisationsId\"\n | \"globalLocationNumber\"\n | \"gbrNummer\";\n\nconst memberIdMessageKeysByCountry: Record<string, MemberIdFieldType> = {\n AT: \"gbrNummer\",\n ES: \"numeroColegiado\",\n DK: \"autorisationsId\",\n CH: \"globalLocationNumber\",\n IE: \"registrationNumber\",\n GB: \"registrationNumber\",\n};\n\nconst getMemberIdMessageKeys = (country: string) => {\n const memberIdFieldType: MemberIdFieldType =\n memberIdMessageKeysByCountry[country] || \"registrationNumber\";\n return {\n labelKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Label`,\n explanationKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Explanation`,\n };\n};\n\nexport const StepMedicalProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepMedicalProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MedicalProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateMedicalProfessionalViewModel = (\n key: keyof MedicalProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldOptional } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\n\n // #region collect-info-step-email-first\n\n const {\n isEmailUpTop,\n isEmailValidationLoading,\n showFormFields,\n emailLookupResponse,\n emailOnBlur,\n emailOnKeyDown,\n handleResendClick,\n showEmailLookupResponseMessages,\n enableFormFields,\n handleOnClickProceedHere,\n } = useEmailFirstExperiment(\n verificationService.programId,\n viewModel.email,\n verificationService.verificationResponse.segment,\n );\n // #endregion collect-info-step-email-first\n\n React.useEffect(() => {\n // If the memberId field is not rendered, we shouldn't validate it\n // partially update to avoid clobbering the rest of the viewModel\n if (shouldRenderMemberId) {\n verificationService.updateViewModel({ fieldsToSkipValidation: [] }, { partial: true });\n } else {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [\"memberId\"] },\n { partial: true },\n );\n }\n }, [shouldRenderMemberId]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"medical-personal-info\"\n />\n\n {\n // #region email-first-experiment\n isEmailUpTop && (\n <div className=\"email-input-wrapper\">\n {isEmailValidationLoading && (\n <div className=\"email-input-wrapper-frame\">\n <div className=\"transform-scale\">\n <LoadingSpinnerComponent />\n </div>\n </div>\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={emailOnKeyDown}\n onBlur={emailOnBlur}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n </div>\n )\n // #endregion email-first-experiment\n }\n {showEmailLookupResponseMessages && emailLookupResponse && (\n <EmailLookupResponseMessages\n emailLookupResponse={emailLookupResponse}\n onResendClick={handleResendClick}\n onHandleClickLink={handleOnClickProceedHere}\n />\n )}\n {showFormFields && (\n <div className={enableFormFields || !isEmailUpTop ? \"\" : \"sid-disable-elements\"}>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <MedicalStatus\n segmentId=\"medical\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(\n intl,\n viewModel.status,\n MedicalProfessionalStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={getAvailableMedicalStatuses(intl, verificationResponse.availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateMedicalProfessionalViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel)\n .organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n {!isEmailUpTop && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldRenderMemberId && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n explanation={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).explanationKey}\n defaultMessage=\"Your Professional Membership Registration Number\"\n />\n }\n label={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).labelKey}\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMedicalProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Medical Professional Status\"\n />\n }\n />\n </div>\n )}\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMedicalProfessionalPersonalInfoComponent = injectIntl(\n StepMedicalProfessionalPersonalInfo,\n);\n"],"names":["memberIdMessageKeysByCountry","getMemberIdMessageKeys","country","memberIdFieldType","StepMedicalProfessionalPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateMedicalProfessionalViewModel","key","value","nextState","produceDraftViewModel","isFieldOptional","useCollectFieldsEndpoint","shouldRenderMemberId","isEmailUpTop","isEmailValidationLoading","showFormFields","emailLookupResponse","emailOnBlur","emailOnKeyDown","handleResendClick","showEmailLookupResponseMessages","enableFormFields","handleOnClickProceedHere","useEmailFirstExperiment","React","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","LoadingSpinnerComponent","Email","FormattedHTMLMessage","newValue","updateFieldValidationErrorsByFieldId","_a","getFieldConfigByFieldId","EmailLookupResponseMessages","ChangeLocaleV2Component","CountryComponentWrapper","_b","MedicalStatus","getStatusLabel","MedicalProfessionalStatusDefaultMessagesEnum","getAvailableMedicalStatuses","_c","status","MedicalProfessionalOrganization","choice","updateViewModelOrganization","_d","FirstName","_e","LastName","_f","BirthDate","_g","PostalCode","_h","event","handleEmailOnKeyDown","_i","PhoneNumber","_j","MemberId","_k","_l","config","FormFieldCustom","MarketConsentWrapper","_m","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMedicalProfessionalPersonalInfoComponent","injectIntl"],"mappings":";;;AAgEA,MAAMA,KAAkE;AAAA,EACtE,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GA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A0C,QAAO,qBAAqB,CAAA;AAAA,UACpF+B,gBAAAA,EAAA;AAAA,YAAC4C;AAAA,YAAA;AAAA,cACC,MAAMC,GAAsB;AAAA,cAC5B,qBAAA5E;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAG;AAAA,cACA,YACE2B,gBAAAA,EAAA;AAAA,gBAACI;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ,GAEa0C,KAA+CC;AAAA,EAC1DhF;AACF;"}
|
1
|
+
{"version":3,"file":"index-YSVzGeq_.js","sources":["../../src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n MedicalProfessionalPersonalInfoViewModel,\n MedicalProfessionalPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModel,\n getStatusLabel,\n getAvailableMedicalStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { StatusComponent as MedicalStatus } from \"../FormFields/Status/StatusComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport EmailLookupResponseMessages from \"../FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent\";\nimport { LoadingSpinnerComponent } from \"../LoadingSpinner/LoadingSpinnerComponent\";\nimport { useEmailFirstExperiment } from \"../FormFields/EmailFirstCollectInfo/useEmailFirstExperiment\";\n\ninterface StepMedicalProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype MemberIdFieldType =\n | \"registrationNumber\"\n | \"numeroColegiado\"\n | \"autorisationsId\"\n | \"globalLocationNumber\"\n | \"gbrNummer\";\n\nconst memberIdMessageKeysByCountry: Record<string, MemberIdFieldType> = {\n AT: \"gbrNummer\",\n ES: \"numeroColegiado\",\n DK: \"autorisationsId\",\n CH: \"globalLocationNumber\",\n IE: \"registrationNumber\",\n GB: \"registrationNumber\",\n};\n\nconst getMemberIdMessageKeys = (country: string) => {\n const memberIdFieldType: MemberIdFieldType =\n memberIdMessageKeysByCountry[country] || \"registrationNumber\";\n return {\n labelKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Label`,\n explanationKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Explanation`,\n };\n};\n\nexport const StepMedicalProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepMedicalProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MedicalProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateMedicalProfessionalViewModel = (\n key: keyof MedicalProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldOptional } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\n\n // #region collect-info-step-email-first\n\n const {\n isEmailUpTop,\n isEmailValidationLoading,\n showFormFields,\n emailLookupResponse,\n emailOnBlur,\n emailOnKeyDown,\n handleResendClick,\n showEmailLookupResponseMessages,\n enableFormFields,\n handleOnClickProceedHere,\n } = useEmailFirstExperiment(\n verificationService.programId,\n viewModel.email,\n verificationService.verificationResponse.segment,\n );\n // #endregion collect-info-step-email-first\n\n React.useEffect(() => {\n // If the memberId field is not rendered, we shouldn't validate it\n // partially update to avoid clobbering the rest of the viewModel\n if (shouldRenderMemberId) {\n verificationService.updateViewModel({ fieldsToSkipValidation: [] }, { partial: true });\n } else {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [\"memberId\"] },\n { partial: true },\n );\n }\n }, [shouldRenderMemberId]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"medical-personal-info\"\n />\n\n {\n // #region email-first-experiment\n isEmailUpTop && (\n <div className=\"email-input-wrapper\">\n {isEmailValidationLoading && (\n <div className=\"email-input-wrapper-frame\">\n <div className=\"transform-scale\">\n <LoadingSpinnerComponent />\n </div>\n </div>\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={emailOnKeyDown}\n onBlur={emailOnBlur}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n </div>\n )\n // #endregion email-first-experiment\n }\n {showEmailLookupResponseMessages && emailLookupResponse && (\n <EmailLookupResponseMessages\n emailLookupResponse={emailLookupResponse}\n onResendClick={handleResendClick}\n onHandleClickLink={handleOnClickProceedHere}\n />\n )}\n {showFormFields && (\n <div className={enableFormFields || !isEmailUpTop ? \"\" : \"sid-disable-elements\"}>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <MedicalStatus\n segmentId=\"medical\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(\n intl,\n viewModel.status,\n MedicalProfessionalStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={getAvailableMedicalStatuses(intl, verificationResponse.availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateMedicalProfessionalViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel)\n .organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n {!isEmailUpTop && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldRenderMemberId && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n explanation={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).explanationKey}\n defaultMessage=\"Your Professional Membership Registration Number\"\n />\n }\n label={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).labelKey}\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMedicalProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Medical Professional Status\"\n />\n }\n />\n </div>\n )}\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMedicalProfessionalPersonalInfoComponent = injectIntl(\n StepMedicalProfessionalPersonalInfo,\n);\n"],"names":["memberIdMessageKeysByCountry","getMemberIdMessageKeys","country","memberIdFieldType","StepMedicalProfessionalPersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateMedicalProfessionalViewModel","key","value","nextState","produceDraftViewModel","isFieldOptional","useCollectFieldsEndpoint","shouldRenderMemberId","isEmailUpTop","isEmailValidationLoading","showFormFields","emailLookupResponse","emailOnBlur","emailOnKeyDown","handleResendClick","showEmailLookupResponseMessages","enableFormFields","handleOnClickProceedHere","useEmailFirstExperiment","React","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","LoadingSpinnerComponent","Email","FormattedHTMLMessage","newValue","updateFieldValidationErrorsByFieldId","_a","getFieldConfigByFieldId","EmailLookupResponseMessages","ChangeLocaleV2Component","CountryComponentWrapper","_b","MedicalStatus","getStatusLabel","MedicalProfessionalStatusDefaultMessagesEnum","getAvailableMedicalStatuses","_c","status","MedicalProfessionalOrganization","choice","updateViewModelOrganization","_d","FirstName","_e","LastName","_f","BirthDate","_g","PostalCode","_h","event","handleEmailOnKeyDown","_i","PhoneNumber","_j","MemberId","_k","_l","config","FormFieldCustom","MarketConsentWrapper","_m","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepMedicalProfessionalPersonalInfoComponent","injectIntl"],"mappings":";;;AAgEA,MAAMA,KAAkE;AAAA,EACtE,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEMC,IAAyB,CAACC,MAAoB;AAC5C,QAAAC,IACJH,GAA6BE,CAAO,KAAK;AACpC,SAAA;AAAA,IACL,UAAU,mCAAmCC,CAAiB;AAAA,IAC9D,gBAAgB,mCAAmCA,CAAiB;AAAA,EACtE;AACF,GAEaC,KAAsC,CAAC;AAAA,EAClD,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAyD;;AACvD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAW,GAErBC,IAASP,EAAU,aAAa,OAEhCQ,IAAqC,CACzCC,GACAC,MACG;AACH,UAAMC,IAAYC,GAAsBZ,GAAWS,GAAKC,CAAK;AAC7D,IAAAX,EAAoB,gBAAgBY,CAAS;AAAA,EAC/C,GAEM,EAAE,iBAAAE,EAAgB,IAAIC,GAAyB;AAAA,IACnD,gBAAgBZ,EAAqB;AAAA,IACrC,aAAaA,EAAqB;AAAA,IAClC,WAAAF;AAAA,EAAA,CACD,GACKe,IAAuBF,EAAgB,UAAU,GAIjD;AAAA,IACJ,cAAAG;AAAA,IACA,0BAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,mBAAA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W,CAAC,CAACE,EAAsB;AAAA,cACnC,UAAU,CAACkC,MAAa;AACtB,gBAAA3B,EAAmC,YAAY;AAAA,kBAC7C,GAAGT,EAAoB,UAAU;AAAA,kBACjC,oBAAoBoC;AAAA,gBAAA,CACrB,GACDC;AAAA,kBACE;AAAA,kBACAD;AAAA,kBACApC;AAAA,gBACF;AAAA,cACF;AAAA,cACA,WAAAC;AAAA,cACA,WAAUwE,IAAAlC,EAAwB,oBAAoB,MAA5C,gBAAAkC,EAA+C;AAAA,YAAA;AAAA,UAC3D;AAAA,UACC1C,gBAAAA,EAAAA,IAAA2C,IAAA,EAAa,qBAAA1E,GAA0C,QAAO,qBAAqB,CAAA;AAAA,UACpF+B,gBAAAA,EAAA;AAAA,YAAC4C;AAAA,YAAA;AAAA,cACC,MAAMC,GAAsB;AAAA,cAC5B,qBAAA5E;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAG;AAAA,cACA,YACE2B,gBAAAA,EAAA;AAAA,gBAACI;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ,GAEa0C,KAA+CC;AAAA,EAC1DhF;AACF;"}
|
@@ -1,17 +1,17 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.115.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
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 { d as h, h as
|
8
|
+
import { d as h, h as Q, R as i, s as J, j as e, t as X, P as Y, a8 as Z, E as k, g as t, u as d, b as g, v as $, w as S, Q as v, a9 as aa, U as I, x as sa, y as ea, W as oa, e as la, D as na, B as ta, G as da, M as ma, H as ra, f as pa, V as ua } from "../sheerid.js";
|
9
9
|
import { u as ha, E as ia, a as f } from "./useEmailFirstExperiment-CgU-itQI.js";
|
10
10
|
const ga = (a, o) => h(() => a.openOrgSearchEnabled) && h(() => o.organization.id) === 0 && h(() => o.organization.name, "").length > 0, Ca = ({
|
11
11
|
verificationService: a
|
12
12
|
}) => {
|
13
|
-
var x, E, j, N, T,
|
14
|
-
const { viewModel: o } = a, { fieldValidationErrors: m } = a, C = a.verificationResponse, B =
|
13
|
+
var x, E, j, N, T, y, F, M, O, D;
|
14
|
+
const { viewModel: o } = a, { fieldValidationErrors: m } = a, C = a.verificationResponse, B = Q(C), P = $(), z = o.localeChoice.value, l = (s, r) => {
|
15
15
|
const G = {
|
16
16
|
[s]: r
|
17
17
|
};
|
@@ -42,7 +42,7 @@ const ga = (a, o) => h(() => a.openOrgSearchEnabled) && h(() => o.organization.i
|
|
42
42
|
} else
|
43
43
|
b(null);
|
44
44
|
})();
|
45
|
-
}, [o.email, u, n == null ? void 0 : n.status]),
|
45
|
+
}, [o.email, u, n == null ? void 0 : n.status]), J.useEffect(() => {
|
46
46
|
a.programTheme.idCheckAddOnEnabled ? l("fieldsToSkipValidation", []) : (l("birthDate", ""), l("fieldsToSkipValidation", ["birthDate"]));
|
47
47
|
}, [a.programTheme.idCheckAddOnEnabled]), /* @__PURE__ */ e.jsxs(
|
48
48
|
X,
|
@@ -139,7 +139,7 @@ const ga = (a, o) => h(() => a.openOrgSearchEnabled) && h(() => o.organization.i
|
|
139
139
|
{
|
140
140
|
errorId: m.birthDate,
|
141
141
|
locale: z,
|
142
|
-
disabled: (
|
142
|
+
disabled: (y = t("birthDate")) == null ? void 0 : y.disabled,
|
143
143
|
onChange: (s) => {
|
144
144
|
l("birthDate", s), d("birthDate", s, a);
|
145
145
|
},
|
@@ -162,7 +162,7 @@ const ga = (a, o) => h(() => a.openOrgSearchEnabled) && h(() => o.organization.i
|
|
162
162
|
l("email", s), d("email", s, a);
|
163
163
|
},
|
164
164
|
onKeyDown: (s) => la(s),
|
165
|
-
disabled: (
|
165
|
+
disabled: (F = t("email")) == null ? void 0 : F.disabled
|
166
166
|
}
|
167
167
|
),
|
168
168
|
a.programTheme.isSmsNotifierConfigured || a.programTheme.smsLoopEnabled ? /* @__PURE__ */ e.jsx(
|
@@ -179,7 +179,7 @@ const ga = (a, o) => h(() => a.openOrgSearchEnabled) && h(() => o.organization.i
|
|
179
179
|
);
|
180
180
|
},
|
181
181
|
selectedCountryCode: o.countryChoice && o.countryChoice.value,
|
182
|
-
disabled: (
|
182
|
+
disabled: (M = t("phoneNumber")) == null ? void 0 : M.disabled
|
183
183
|
}
|
184
184
|
) : null,
|
185
185
|
ga(a.programTheme, o) ? /* @__PURE__ */ e.jsx(
|
@@ -190,7 +190,7 @@ const ga = (a, o) => h(() => a.openOrgSearchEnabled) && h(() => o.organization.i
|
|
190
190
|
l("postalCode", s), d("postalCode", s, a);
|
191
191
|
},
|
192
192
|
value: o.postalCode,
|
193
|
-
disabled: (
|
193
|
+
disabled: (O = t("postalCode")) == null ? void 0 : O.disabled
|
194
194
|
}
|
195
195
|
) : null,
|
196
196
|
P.customFormFields.map((s) => /* @__PURE__ */ e.jsx(da, { config: s, verificationService: a })),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-qj9OiaWM.js","sources":["../../src/lib/organization/organization.ts","../../src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.tsx"],"sourcesContent":["import { ProgramTheme, WithOrganization } from \"../types/types\";\nimport { getSafe } from \"../utils/getSafe\";\n\nexport const shouldCollectPostalCode = (programTheme: ProgramTheme, viewModel: WithOrganization) =>\n getSafe(() => programTheme.openOrgSearchEnabled) &&\n getSafe(() => viewModel.organization.id) === 0 &&\n getSafe(() => viewModel.organization.name, \"\").length > 0;\n","/* eslint-disable */\nimport React, { useEffect } from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { shouldCollectPostalCode } from \"../../lib/organization/organization\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n CustomFormFieldConfig,\n Organization,\n TeacherPersonalInfoResponse,\n TeacherPersonalInfoViewModel,\n VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\n\nimport { getOptions } from \"../../options/options\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { TeacherSchoolComponent } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { LoadingSpinnerComponent } from \"../LoadingSpinner/LoadingSpinnerComponent\";\nimport EmailLookupResponseMessages from \"../FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent\";\nimport { useEmailFirstExperiment } from \"../FormFields/EmailFirstCollectInfo/useEmailFirstExperiment\";\nimport { EmailLookupStatus } from \"../FormFields/EmailFirstCollectInfo/types\";\n\ninterface StepTeacherPersonalInfoComponentProps {\n verificationService: VerificationService<TeacherPersonalInfoViewModel>;\n}\n\nconst StepTeacherPersonalInfo = ({\n verificationService,\n}: StepTeacherPersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as TeacherPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const locale = viewModel.localeChoice.value;\n const updateTeacherViewModel = (key: keyof TeacherPersonalInfoViewModel, value: any) => {\n const nextState = {\n [key]: value,\n };\n verificationService.updateViewModel(nextState, { partial: true });\n };\n\n // #region collect-info-step-email-first\n const {\n isEmailUpTop,\n isEmailValidationLoading,\n showFormFields,\n emailLookupResponse,\n emailOnBlur,\n emailOnKeyDown,\n handleResendClick,\n showEmailLookupResponseMessages,\n isValidEmail,\n getOrgByDomain,\n enableFormFields,\n handleOnClickProceedHere,\n } = useEmailFirstExperiment(\n verificationService.programId,\n viewModel.email,\n verificationService.verificationResponse.segment,\n );\n const [orgByEmailDomain, setOrgByEmailDomain] = React.useState<Organization | null>(null);\n const [selectedOrganization, setSelectedOrganization] = React.useState<Organization | null>(null);\n\n React.useEffect(() => {\n const fetchOrg = async () => {\n if (\n viewModel.email &&\n isValidEmail &&\n emailLookupResponse &&\n emailLookupResponse.status === EmailLookupStatus.NOT_FOUND\n ) {\n const org = await getOrgByDomain(verificationService);\n if (org) {\n setOrgByEmailDomain(org);\n updateViewModelOrganization(org, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", org, verificationService);\n }\n } else {\n setOrgByEmailDomain(null);\n }\n };\n\n if (isValidEmail && emailLookupResponse) {\n fetchOrg();\n }\n }, [viewModel.email, isValidEmail, emailLookupResponse?.status]);\n // #endregion collect-info-step-email-first\n\n // Don't validate DOB if ID Check is not enabled\n useEffect(() => {\n if (!verificationService.programTheme.idCheckAddOnEnabled) {\n updateTeacherViewModel(\"birthDate\", \"\");\n updateTeacherViewModel(\"fieldsToSkipValidation\", [\"birthDate\"]);\n } else {\n updateTeacherViewModel(\"fieldsToSkipValidation\", []);\n }\n }, [verificationService.programTheme.idCheckAddOnEnabled]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"teacher-personal-info\"\n />\n {\n // #region email-first-experiment\n isEmailUpTop && (\n <>\n <div className=\"email-input-wrapper\">\n {isEmailValidationLoading && (\n <div className=\"email-input-wrapper-frame\">\n <div className=\"sid-spinner scaled\">\n <LoadingSpinnerComponent />\n </div>\n </div>\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Must be your school-issued email address\"\n />\n }\n onChange={(newValue) => {\n updateTeacherViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={emailOnKeyDown}\n onBlur={emailOnBlur}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n </div>\n </>\n )\n // #endregion email-first-experiment\n }\n {showEmailLookupResponseMessages && emailLookupResponse && isValidEmail && (\n <EmailLookupResponseMessages\n emailLookupResponse={emailLookupResponse}\n onResendClick={handleResendClick}\n onHandleClickLink={handleOnClickProceedHere}\n />\n )}\n {showFormFields && (\n <>\n <div className={enableFormFields || !isEmailUpTop ? \"\" : \"sid-disable-elements\"}>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <TeacherSchoolComponent\n value={\n selectedOrganization ||\n (isEmailUpTop &&\n emailLookupResponse?.status === EmailLookupStatus.NOT_FOUND &&\n orgByEmailDomain) ||\n verificationService.viewModel.organization\n }\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n setSelectedOrganization(choice);\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n {verificationService.programTheme.idCheckAddOnEnabled ? (\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n ) : null}\n {!isEmailUpTop && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Must be your school-issued email address\"\n />\n }\n onChange={(newValue) => {\n updateTeacherViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateTeacherViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"phoneNumber\",\n newValue,\n verificationService,\n );\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldCollectPostalCode(verificationService.programTheme, viewModel) ? (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateTeacherViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n ) : null}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateTeacherViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectTeacherPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Teacher Status\"\n />\n }\n />\n </div>\n </>\n )}\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepTeacherPersonalInfoComponent = StepTeacherPersonalInfo;\nfunction userDidConvert(COLLECT_INFO_SUBMIT: any, COLLECT_INFO_SUBMISSION_TIME: any) {\n throw new Error(\"Function not implemented.\");\n}\n"],"names":["shouldCollectPostalCode","programTheme","viewModel","getSafe","StepTeacherPersonalInfo","verificationService","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateTeacherViewModel","key","value","nextState","isEmailUpTop","isEmailValidationLoading","showFormFields","emailLookupResponse","emailOnBlur","emailOnKeyDown","handleResendClick","showEmailLookupResponseMessages","isValidEmail","getOrgByDomain","enableFormFields","handleOnClickProceedHere","useEmailFirstExperiment","orgByEmailDomain","setOrgByEmailDomain","React","selectedOrganization","setSelectedOrganization","EmailLookupStatus","org","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","useEffect","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","Fragment","LoadingSpinnerComponent","Email","FormattedHTMLMessage","newValue","_a","getFieldConfigByFieldId","EmailLookupResponseMessages","ChangeLocaleV2Component","CountryComponentWrapper","_b","TeacherSchoolComponent","_c","choice","FirstName","_d","LastName","_e","BirthDate","_f","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","PostalCodeComponent","_i","config","FormFieldCustom","MarketConsentWrapper","_j","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepTeacherPersonalInfoComponent"],"mappings":";;AAGa,MAAAA,KAA0B,CAACC,GAA4BC,MAClEC,EAAQ,MAAMF,EAAa,oBAAoB,KAC/CE,EAAQ,MAAMD,EAAU,aAAa,EAAE,MAAM,KAC7CC,EAAQ,MAAMD,EAAU,aAAa,MAAM,EAAE,EAAE,SAAS,GCwCpDE,KAA0B,CAAC;AAAA,EAC/B,qBAA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oB2C;AAAA,gBAAA,CACrB,GACDV;AAAA,kBACE;AAAA,kBACAU;AAAA,kBACA3C;AAAA,gBACF;AAAA,cACF;AAAA,cACA,WAAAH;AAAA,cACA,WAAUwE,IAAAxB,EAAwB,oBAAoB,MAA5C,gBAAAwB,EAA+C;AAAA,YAAA;AAAA,UAC3D;AAAA,UACChC,gBAAAA,EAAAA,IAAAiC,IAAA,EAAa,qBAAAtE,GAA0C,QAAO,qBAAqB,CAAA;AAAA,UACpFqC,gBAAAA,EAAA;AAAA,YAACkC;AAAA,YAAA;AAAA,cACC,MAAMC,GAAsB;AAAA,cAC5B,qBAAAxE;AAAA,cACA,WAAAH;AAAA,cACA,oBAAAM;AAAA,cACA,YACEkC,gBAAAA,EAAA;AAAA,gBAACK;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EAAA,CACF,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ,GAEa+B,KAAmC1E;"}
|
1
|
+
{"version":3,"file":"index-_t8SsXjy.js","sources":["../../src/lib/organization/organization.ts","../../src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.tsx"],"sourcesContent":["import { ProgramTheme, WithOrganization } from \"../types/types\";\nimport { getSafe } from \"../utils/getSafe\";\n\nexport const shouldCollectPostalCode = (programTheme: ProgramTheme, viewModel: WithOrganization) =>\n getSafe(() => programTheme.openOrgSearchEnabled) &&\n getSafe(() => viewModel.organization.id) === 0 &&\n getSafe(() => viewModel.organization.name, \"\").length > 0;\n","/* eslint-disable */\nimport React, { useEffect } from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { shouldCollectPostalCode } from \"../../lib/organization/organization\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n CustomFormFieldConfig,\n Organization,\n TeacherPersonalInfoResponse,\n TeacherPersonalInfoViewModel,\n VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\n\nimport { getOptions } from \"../../options/options\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { TeacherSchoolComponent } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { LoadingSpinnerComponent } from \"../LoadingSpinner/LoadingSpinnerComponent\";\nimport EmailLookupResponseMessages from \"../FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent\";\nimport { useEmailFirstExperiment } from \"../FormFields/EmailFirstCollectInfo/useEmailFirstExperiment\";\nimport { EmailLookupStatus } from \"../FormFields/EmailFirstCollectInfo/types\";\n\ninterface StepTeacherPersonalInfoComponentProps {\n verificationService: VerificationService<TeacherPersonalInfoViewModel>;\n}\n\nconst StepTeacherPersonalInfo = ({\n verificationService,\n}: StepTeacherPersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as TeacherPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const locale = viewModel.localeChoice.value;\n const updateTeacherViewModel = (key: keyof TeacherPersonalInfoViewModel, value: any) => {\n const nextState = {\n [key]: value,\n };\n verificationService.updateViewModel(nextState, { partial: true });\n };\n\n // #region collect-info-step-email-first\n const {\n isEmailUpTop,\n isEmailValidationLoading,\n showFormFields,\n emailLookupResponse,\n emailOnBlur,\n emailOnKeyDown,\n handleResendClick,\n showEmailLookupResponseMessages,\n isValidEmail,\n getOrgByDomain,\n enableFormFields,\n handleOnClickProceedHere,\n } = useEmailFirstExperiment(\n verificationService.programId,\n viewModel.email,\n verificationService.verificationResponse.segment,\n );\n const [orgByEmailDomain, setOrgByEmailDomain] = React.useState<Organization | null>(null);\n const [selectedOrganization, setSelectedOrganization] = React.useState<Organization | null>(null);\n\n React.useEffect(() => {\n const fetchOrg = async () => {\n if (\n viewModel.email &&\n isValidEmail &&\n emailLookupResponse &&\n emailLookupResponse.status === EmailLookupStatus.NOT_FOUND\n ) {\n const org = await getOrgByDomain(verificationService);\n if (org) {\n setOrgByEmailDomain(org);\n updateViewModelOrganization(org, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", org, verificationService);\n }\n } else {\n setOrgByEmailDomain(null);\n }\n };\n\n if (isValidEmail && emailLookupResponse) {\n fetchOrg();\n }\n }, [viewModel.email, isValidEmail, emailLookupResponse?.status]);\n // #endregion collect-info-step-email-first\n\n // Don't validate DOB if ID Check is not enabled\n useEffect(() => {\n if (!verificationService.programTheme.idCheckAddOnEnabled) {\n updateTeacherViewModel(\"birthDate\", \"\");\n updateTeacherViewModel(\"fieldsToSkipValidation\", [\"birthDate\"]);\n } else {\n updateTeacherViewModel(\"fieldsToSkipValidation\", []);\n }\n }, [verificationService.programTheme.idCheckAddOnEnabled]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"teacher-personal-info\"\n />\n {\n // #region email-first-experiment\n isEmailUpTop && (\n <>\n <div className=\"email-input-wrapper\">\n {isEmailValidationLoading && (\n <div className=\"email-input-wrapper-frame\">\n <div className=\"sid-spinner scaled\">\n <LoadingSpinnerComponent />\n </div>\n </div>\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Must be your school-issued email address\"\n />\n }\n onChange={(newValue) => {\n updateTeacherViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={emailOnKeyDown}\n onBlur={emailOnBlur}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n </div>\n </>\n )\n // #endregion email-first-experiment\n }\n {showEmailLookupResponseMessages && emailLookupResponse && isValidEmail && (\n <EmailLookupResponseMessages\n emailLookupResponse={emailLookupResponse}\n onResendClick={handleResendClick}\n onHandleClickLink={handleOnClickProceedHere}\n />\n )}\n {showFormFields && (\n <>\n <div className={enableFormFields || !isEmailUpTop ? \"\" : \"sid-disable-elements\"}>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <TeacherSchoolComponent\n value={\n selectedOrganization ||\n (isEmailUpTop &&\n emailLookupResponse?.status === EmailLookupStatus.NOT_FOUND &&\n orgByEmailDomain) ||\n verificationService.viewModel.organization\n }\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n setSelectedOrganization(choice);\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n {verificationService.programTheme.idCheckAddOnEnabled ? (\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateTeacherViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n ) : null}\n {!isEmailUpTop && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Must be your school-issued email address\"\n />\n }\n onChange={(newValue) => {\n updateTeacherViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateTeacherViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"phoneNumber\",\n newValue,\n verificationService,\n );\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldCollectPostalCode(verificationService.programTheme, viewModel) ? (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateTeacherViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n ) : null}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateTeacherViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectTeacherPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Teacher Status\"\n />\n }\n />\n </div>\n </>\n )}\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepTeacherPersonalInfoComponent = StepTeacherPersonalInfo;\nfunction userDidConvert(COLLECT_INFO_SUBMIT: any, COLLECT_INFO_SUBMISSION_TIME: any) {\n throw new Error(\"Function not implemented.\");\n}\n"],"names":["shouldCollectPostalCode","programTheme","viewModel","getSafe","StepTeacherPersonalInfo","verificationService","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","locale","updateTeacherViewModel","key","value","nextState","isEmailUpTop","isEmailValidationLoading","showFormFields","emailLookupResponse","emailOnBlur","emailOnKeyDown","handleResendClick","showEmailLookupResponseMessages","isValidEmail","getOrgByDomain","enableFormFields","handleOnClickProceedHere","useEmailFirstExperiment","orgByEmailDomain","setOrgByEmailDomain","React","selectedOrganization","setSelectedOrganization","EmailLookupStatus","org","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","useEffect","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","Fragment","LoadingSpinnerComponent","Email","FormattedHTMLMessage","newValue","_a","getFieldConfigByFieldId","EmailLookupResponseMessages","ChangeLocaleV2Component","CountryComponentWrapper","_b","TeacherSchoolComponent","_c","choice","FirstName","_d","LastName","_e","BirthDate","_f","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","PostalCodeComponent","_i","config","FormFieldCustom","MarketConsentWrapper","_j","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepTeacherPersonalInfoComponent"],"mappings":";;AAGa,MAAAA,KAA0B,CAACC,GAA4BC,MAClEC,EAAQ,MAAMF,EAAa,oBAAoB,KAC/CE,EAAQ,MAAMD,EAAU,aAAa,EAAE,MAAM,KAC7CC,EAAQ,MAAMD,EAAU,aAAa,MAAM,EAAE,EAAE,SAAS,GCwCpDE,KAA0B,CAAC;AAAA,EAC/B,qBAAAC;AACF,MAA6C;;AACrC,QAAA,EAAE,WAAAH,MAAcG,GAChB,EAAE,uBAAAC,MAA0BD,GAC5BE,IACJF,EAAoB,sBAChBG,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAW,GACrBC,IAASV,EAAU,aAAa,OAChCW,IAAyB,CAACC,GAAyCC,MAAe;AACtF,UAAMC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AAAA,IAAAiC,IAAA,EAAa,qBAAAtE,GAA0C,QAAO,qBAAqB,CAAA;AAAA,UACpFqC,gBAAAA,EAAA;AAAA,YAACkC;AAAA,YAAA;AAAA,cACC,MAAMC,GAAsB;AAAA,cAC5B,qBAAAxE;AAAA,cACA,WAAAH;AAAA,cACA,oBAAAM;AAAA,cACA,YACEkC,gBAAAA,EAAA;AAAA,gBAACK;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EAAA,CACF,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ,GAEa+B,KAAmC1E;"}
|
package/chunk/is-PzizLXcv.js
CHANGED
@@ -4,10 +4,10 @@
|
|
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:
|
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
12
|
const e = {
|
13
13
|
"defaultMessages.ACTIVE_DUTY": "Virk herskylda",
|