@sheerid/jslib-nightly 2.104.0-alpha.1 → 2.104.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__tests__/__helpers__/renderers.d.ts +5 -5
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +16301 -17897
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{EmailLoopPending-Cp3dQjbH.js → EmailLoopPending-CKTAwQQA.js} +17 -17
- package/chunk/{EmailLoopPending-Cp3dQjbH.js.map → EmailLoopPending-CKTAwQQA.js.map} +1 -1
- package/chunk/{EmailLoopPending-WTPkkJsm.js → EmailLoopPending-Dzs07hxx.js} +17 -17
- package/chunk/{EmailLoopPending-WTPkkJsm.js.map → EmailLoopPending-Dzs07hxx.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-D7gWh3Qx.js → LicensedProfessionalOrganizationComponent-BNNNPaDn.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-D7gWh3Qx.js.map → LicensedProfessionalOrganizationComponent-BNNNPaDn.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-LYrmpWss.js → LicensedProfessionalOrganizationComponent-trZr_eIW.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-LYrmpWss.js.map → LicensedProfessionalOrganizationComponent-trZr_eIW.js.map} +1 -1
- package/chunk/{Onfido-AyvUk6wg.js → Onfido-CMH3IUna.js} +28 -28
- package/chunk/{Onfido-AyvUk6wg.js.map → Onfido-CMH3IUna.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CQTiZz60.js → StepIDCheckLoopOnfido-C9iUX8TC.js} +11 -12
- package/chunk/{StepIDCheckLoopOnfido-CQTiZz60.js.map → StepIDCheckLoopOnfido-C9iUX8TC.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CsO8JOUT.js → StepIDCheckLoopOnfido-lChJAp_W.js} +11 -12
- package/chunk/{StepIDCheckLoopOnfido-CsO8JOUT.js.map → StepIDCheckLoopOnfido-lChJAp_W.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-VCHUckkA.js → StepIDCheckLoopRegula-BB8xA4nn.js} +85 -59
- package/chunk/StepIDCheckLoopRegula-BB8xA4nn.js.map +1 -0
- package/chunk/{StepIDCheckLoopRegula-B2frgNDw.js → StepIDCheckLoopRegula-D8XhToQz.js} +85 -59
- package/chunk/StepIDCheckLoopRegula-D8XhToQz.js.map +1 -0
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.js → StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js} +48 -48
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js.map → StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js → StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.js} +48 -48
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.js.map → StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.js.map} +1 -1
- package/chunk/ar-CtJ_9k3U.js +4 -4
- package/chunk/bg-CWxXfiDq.js +4 -4
- package/chunk/bn-IN-Dpq_hCqt.js +4 -4
- package/chunk/cs-HevyelX7.js +4 -4
- package/chunk/da-6QXhWjWH.js +4 -4
- package/chunk/de-ChuCvRLv.js +4 -4
- package/chunk/el-3IAhABcN.js +4 -4
- package/chunk/en-GB-ByNBaer-.js +4 -4
- package/chunk/es-CL_dUc9X.js +4 -4
- package/chunk/es-ES-CW4At4Ol.js +4 -4
- package/chunk/fi-D8cIebkk.js +4 -4
- package/chunk/fr-BDU-1C6f.js +4 -4
- package/chunk/fr-CA-Dc02rv8D.js +4 -4
- package/chunk/ga-P7eP-INQ.js +4 -4
- package/chunk/hi-IN-DlmwjoqH.js +4 -4
- package/chunk/hr-CT_VP_lm.js +4 -4
- package/chunk/hu-I8Z1uXsR.js +4 -4
- package/chunk/id-CUPTGKOT.js +4 -4
- package/chunk/{index-CgBENXRP.js → index-B1579hxf.js} +28 -28
- package/chunk/{index-tFgJS6bB.js.map → index-B1579hxf.js.map} +1 -1
- package/chunk/{index-DB9SisGK.js → index-B4B6qxaM.js} +15 -15
- package/chunk/{index-DB9SisGK.js.map → index-B4B6qxaM.js.map} +1 -1
- package/chunk/{index-BGCnajPS.js → index-B5okgMmp.js} +30 -30
- package/chunk/{index-BFMTiaJv.js.map → index-B5okgMmp.js.map} +1 -1
- package/chunk/{index-DPEoeYI6.js → index-B8tKf2Rd.js} +38 -38
- package/chunk/{index-CgSW4Vzh.js.map → index-B8tKf2Rd.js.map} +1 -1
- package/chunk/{index-XXxK9rgV.js → index-B92Kfyw6.js} +46 -46
- package/chunk/{index-XXxK9rgV.js.map → index-B92Kfyw6.js.map} +1 -1
- package/chunk/{index-CtqWr1aK.js → index-BDsZCFuU.js} +58 -58
- package/chunk/{index-CtqWr1aK.js.map → index-BDsZCFuU.js.map} +1 -1
- package/chunk/{index-aKTpkBwz.js → index-BGGHZBWq.js} +56 -48
- package/chunk/{index-aKTpkBwz.js.map → index-BGGHZBWq.js.map} +1 -1
- package/chunk/{index-B3NA0DdP.js → index-BW4s6-PH.js} +46 -46
- package/chunk/{index-B3NA0DdP.js.map → index-BW4s6-PH.js.map} +1 -1
- package/chunk/{index-MRhfTdmm.js → index-BYMr8It7.js} +15 -15
- package/chunk/{index-MRhfTdmm.js.map → index-BYMr8It7.js.map} +1 -1
- package/chunk/{index-RmF57u5_.js → index-Bb9hNLHu.js} +45 -45
- package/chunk/{index-C0jDbJPp.js.map → index-Bb9hNLHu.js.map} +1 -1
- package/chunk/{index-CgSW4Vzh.js → index-BjaCS2a8.js} +38 -38
- package/{lib/index-DIJ3ZLm3.js.map → chunk/index-BjaCS2a8.js.map} +1 -1
- package/chunk/{index-BDw8efPp.js → index-Bld-AWYE.js} +11 -11
- package/chunk/{index-BhkJfnda.js.map → index-Bld-AWYE.js.map} +1 -1
- package/chunk/{index-C9bZ7enn.js → index-BnPrfsM1.js} +7 -7
- package/chunk/{index-2QV6VPA3.js.map → index-BnPrfsM1.js.map} +1 -1
- package/chunk/index-BupTUiiS.js +27 -0
- package/chunk/index-BupTUiiS.js.map +1 -0
- package/chunk/{index-BPEB_HHW.js → index-BvGP9l7M.js} +237 -219
- package/chunk/index-BvGP9l7M.js.map +1 -0
- package/chunk/{index-BtYzUCrC.js → index-CCUi9Uhw.js} +11 -11
- package/chunk/{index-qAxcloBs.js.map → index-CCUi9Uhw.js.map} +1 -1
- package/chunk/{index-DZsw9-0u.js → index-CEi_QkyI.js} +237 -219
- package/chunk/index-CEi_QkyI.js.map +1 -0
- package/chunk/{index-BhkJfnda.js → index-CZjGTko2.js} +11 -11
- package/chunk/{index-BDw8efPp.js.map → index-CZjGTko2.js.map} +1 -1
- package/chunk/index-CblWzXDU.js +169 -0
- package/chunk/index-CblWzXDU.js.map +1 -0
- package/chunk/{index-Dl7QItmr.js → index-CfUabHav.js} +56 -48
- package/chunk/{index-Dl7QItmr.js.map → index-CfUabHav.js.map} +1 -1
- package/chunk/{index-qAxcloBs.js → index-CjcHzfTY.js} +11 -11
- package/chunk/{index-BtYzUCrC.js.map → index-CjcHzfTY.js.map} +1 -1
- package/chunk/{index-DWjrZunN.js → index-Cp0C-9fh.js} +8 -8
- package/{lib/index-BpAwd4yZ.js.map → chunk/index-Cp0C-9fh.js.map} +1 -1
- package/chunk/{index-D3dphMnl.js → index-Cq__fToG.js} +15 -15
- package/chunk/{index-CaSKZsTY.js.map → index-Cq__fToG.js.map} +1 -1
- package/chunk/{index-DFQ4PjGJ.js → index-D6oLMvTq.js} +58 -58
- package/chunk/{index-DFQ4PjGJ.js.map → index-D6oLMvTq.js.map} +1 -1
- package/chunk/{index-tFgJS6bB.js → index-D7O7vvSe.js} +28 -28
- package/{lib/index-CFbGwQvV.js.map → chunk/index-D7O7vvSe.js.map} +1 -1
- package/chunk/{index-C0jDbJPp.js → index-DCKw4cP_.js} +45 -45
- package/chunk/{index-RmF57u5_.js.map → index-DCKw4cP_.js.map} +1 -1
- package/chunk/{index-oMg5zy_2.js → index-DFsuXQL_.js} +53 -53
- package/chunk/{index-oMg5zy_2.js.map → index-DFsuXQL_.js.map} +1 -1
- package/chunk/{index-BFMTiaJv.js → index-DGGRPaEI.js} +30 -30
- package/chunk/{index-BGCnajPS.js.map → index-DGGRPaEI.js.map} +1 -1
- package/chunk/index-DIkWpujR.js +4 -4
- package/chunk/index-DIkWpujR.js.map +1 -1
- package/chunk/{index-DIV55Je2.js → index-DPv0lytr.js} +18 -18
- package/chunk/{index-DIV55Je2.js.map → index-DPv0lytr.js.map} +1 -1
- package/chunk/{index-4APDQFqJ.js → index-DSrYVtDo.js} +8 -8
- package/chunk/{index-4APDQFqJ.js.map → index-DSrYVtDo.js.map} +1 -1
- package/chunk/{index-D7dDB9pN.js → index-Dba2dHcR.js} +18 -18
- package/chunk/{index-D7dDB9pN.js.map → index-Dba2dHcR.js.map} +1 -1
- package/chunk/{index-CaSKZsTY.js → index-DhpucFa7.js} +15 -15
- package/{lib/index-CWWXURVN.js.map → chunk/index-DhpucFa7.js.map} +1 -1
- package/chunk/{index-_ohn63ug.js → index-DnCqjuSC.js} +29 -29
- package/chunk/{index-B30_E6pJ.js.map → index-DnCqjuSC.js.map} +1 -1
- package/chunk/{index-B30_E6pJ.js → index-DpYUZXus.js} +29 -29
- package/chunk/{index-_ohn63ug.js.map → index-DpYUZXus.js.map} +1 -1
- package/chunk/{index-NjSUlAP4.js → index-QVvWIHrD.js} +53 -53
- package/chunk/{index-NjSUlAP4.js.map → index-QVvWIHrD.js.map} +1 -1
- package/chunk/{index-DtoxnCtM.js → index-UGfD9tnj.js} +64 -62
- package/chunk/index-UGfD9tnj.js.map +1 -0
- package/chunk/{index-2QV6VPA3.js → index-YmkMflXj.js} +7 -7
- package/chunk/{index-C9bZ7enn.js.map → index-YmkMflXj.js.map} +1 -1
- package/chunk/index-iZ8pO5if.js +31 -0
- package/chunk/index-iZ8pO5if.js.map +1 -0
- package/chunk/is-CUuXi4qZ.js +4 -4
- package/chunk/it-BNmynTsg.js +4 -4
- package/chunk/iw-FGzquR_X.js +4 -4
- package/chunk/ja-YgUpXA0l.js +4 -4
- package/chunk/ko-CuNS5J_M.js +4 -4
- package/chunk/lo-BEf8aFjR.js +4 -4
- package/chunk/lt-DvX1gz1a.js +4 -4
- package/chunk/ms-gSqM-Mfi.js +4 -4
- package/chunk/nl-BE-Cid5LFlN.js +4 -4
- package/chunk/nl-CUUTswxa.js +4 -4
- package/chunk/no-BvUqlShV.js +4 -4
- package/chunk/pl-CU8leZhI.js +4 -4
- package/chunk/pt-BR-CboWpHFi.js +4 -4
- package/chunk/pt-BnK7xRT_.js +4 -4
- package/chunk/ro-BfAyXxSW.js +4 -4
- package/chunk/ru-BD-YGPuQ.js +4 -4
- package/chunk/sk-CqsabpdG.js +4 -4
- package/chunk/sl-CeVAf0S_.js +4 -4
- package/chunk/sr-DSaHxcCQ.js +4 -4
- package/chunk/sv-DOyWYViy.js +4 -4
- package/chunk/sw-2Q7Jo6wp.js +4 -4
- package/chunk/th-BZ6F9sPf.js +4 -4
- package/chunk/tr-om80xrv2.js +4 -4
- package/chunk/uk-Dxugux8e.js +4 -4
- package/chunk/ur-OBILUeZ7.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-BsY8WlOg.js → useCollectFieldsEndpoint-C5fsaYJe.js} +11 -11
- package/chunk/{useCollectFieldsEndpoint-BsY8WlOg.js.map → useCollectFieldsEndpoint-C5fsaYJe.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DeICm6Vb.js → useCollectFieldsEndpoint-kmLFyUA-.js} +11 -11
- package/chunk/{useCollectFieldsEndpoint-DeICm6Vb.js.map → useCollectFieldsEndpoint-kmLFyUA-.js.map} +1 -1
- package/chunk/{useEmailFirstExperiment-3uKuefem.js → useEmailFirstExperiment-CSa3DQll.js} +30 -29
- package/chunk/{useEmailFirstExperiment-3uKuefem.js.map → useEmailFirstExperiment-CSa3DQll.js.map} +1 -1
- package/chunk/{useEmailFirstExperiment-B1_E_D0z.js → useEmailFirstExperiment-DZ1B78ke.js} +30 -29
- package/chunk/{useEmailFirstExperiment-B1_E_D0z.js.map → useEmailFirstExperiment-DZ1B78ke.js.map} +1 -1
- package/chunk/vi-BOR2GuRI.js +4 -4
- package/chunk/zh-HK-BI-IHOGG.js +4 -4
- package/chunk/zh-eoMG5RFC.js +4 -4
- package/chunk/zu-D_A8wcJW.js +4 -4
- package/dev/programIds.d.ts +1 -1
- package/es6.css +4 -4
- package/jslib.js +15 -15
- package/lib/{EmailLoopPending-CqGboDpE.js → EmailLoopPending-9TIqOjh0.js} +8 -8
- package/lib/{EmailLoopPending-CqGboDpE.js.map → EmailLoopPending-9TIqOjh0.js.map} +1 -1
- package/lib/{LicensedProfessionalOrganizationComponent-DZ-zCLNb.js → LicensedProfessionalOrganizationComponent-BdlRIkjK.js} +5 -5
- package/lib/{LicensedProfessionalOrganizationComponent-DZ-zCLNb.js.map → LicensedProfessionalOrganizationComponent-BdlRIkjK.js.map} +1 -1
- package/lib/{Onfido-AyvUk6wg.js → Onfido-CMH3IUna.js} +28 -28
- package/lib/{Onfido-AyvUk6wg.js.map → Onfido-CMH3IUna.js.map} +1 -1
- package/lib/StepCollectMilitaryStatusComponent-D9AxEZrO.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-BdghJG7J.js.map → StepCollectMilitaryStatusComponent-D9AxEZrO.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-C6a2v64o.js → StepIDCheckLoopOnfido-tTk18P23.js} +5 -5
- package/lib/{StepIDCheckLoopOnfido-C6a2v64o.js.map → StepIDCheckLoopOnfido-tTk18P23.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-B4gdB1au.js → StepIDCheckLoopRegula-BzHh3YEv.js} +16 -17
- package/lib/StepIDCheckLoopRegula-BzHh3YEv.js.map +1 -0
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-DIS37EQl.js → StepInactiveMilitaryPersonalInfoComponent-DCgIcHvZ.js} +44 -44
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-DIS37EQl.js.map → StepInactiveMilitaryPersonalInfoComponent-DCgIcHvZ.js.map} +1 -1
- package/lib/VerificationApiUtils-hb7EqMfE.js +21 -0
- package/lib/{VerificationApiUtils-Dec-3NxE.js.map → VerificationApiUtils-hb7EqMfE.js.map} +1 -1
- package/lib/ar-CtJ_9k3U.js +4 -4
- package/lib/bg-CWxXfiDq.js +4 -4
- package/lib/bn-IN-Dpq_hCqt.js +4 -4
- package/lib/cs-HevyelX7.js +4 -4
- package/lib/da-6QXhWjWH.js +4 -4
- package/lib/de-ChuCvRLv.js +4 -4
- package/lib/el-3IAhABcN.js +4 -4
- package/lib/en-GB-ByNBaer-.js +4 -4
- package/lib/es-CL_dUc9X.js +4 -4
- package/lib/es-ES-CW4At4Ol.js +4 -4
- package/lib/{es6-CNbgOM7D.js → es6-C6MdgCMX.js} +12435 -13648
- package/lib/es6-C6MdgCMX.js.map +1 -0
- package/lib/fi-D8cIebkk.js +4 -4
- package/lib/fr-BDU-1C6f.js +4 -4
- package/lib/fr-CA-Dc02rv8D.js +4 -4
- package/lib/ga-P7eP-INQ.js +4 -4
- package/lib/hi-IN-DlmwjoqH.js +4 -4
- package/lib/hr-CT_VP_lm.js +4 -4
- package/lib/hu-I8Z1uXsR.js +4 -4
- package/lib/id-CUPTGKOT.js +4 -4
- package/lib/{index-Dz5MfyRl.js → index-A2uleoGr.js} +60 -60
- package/lib/{index-Dz5MfyRl.js.map → index-A2uleoGr.js.map} +1 -1
- package/lib/index-B0q6ScmE.js +171 -0
- package/lib/index-B0q6ScmE.js.map +1 -0
- package/lib/{index-DiEccR2E.js → index-B4tPRnWs.js} +27 -27
- package/lib/{index-DiEccR2E.js.map → index-B4tPRnWs.js.map} +1 -1
- package/lib/{index-DIJ3ZLm3.js → index-BF3H-Cda.js} +16 -16
- package/{chunk/index-DPEoeYI6.js.map → lib/index-BF3H-Cda.js.map} +1 -1
- package/lib/{index-JHJAgNn2.js → index-BJIfbxEt.js} +9 -9
- package/lib/{index-JHJAgNn2.js.map → index-BJIfbxEt.js.map} +1 -1
- package/lib/index-BplQ7imw.js +28 -0
- package/lib/{index-BqMoknWH.js.map → index-BplQ7imw.js.map} +1 -1
- package/lib/{index-BgxQ03Lw.js → index-BpszpgeX.js} +26 -26
- package/lib/{index-BgxQ03Lw.js.map → index-BpszpgeX.js.map} +1 -1
- package/lib/index-BvlWWXiT.js +11 -0
- package/lib/index-BvlWWXiT.js.map +1 -0
- package/lib/index-CJvrsSXZ.js +11 -0
- package/lib/index-CJvrsSXZ.js.map +1 -0
- package/lib/{index-B-vvoe4K.js → index-CZjkIENw.js} +51 -51
- package/lib/{index-B-vvoe4K.js.map → index-CZjkIENw.js.map} +1 -1
- package/lib/{index-CWWXURVN.js → index-CZodZNg-.js} +5 -5
- package/{chunk/index-D3dphMnl.js.map → lib/index-CZodZNg-.js.map} +1 -1
- package/lib/{index-U8Xg6WS9.js → index-Cp36Pcoi.js} +20 -20
- package/lib/{index-U8Xg6WS9.js.map → index-Cp36Pcoi.js.map} +1 -1
- package/lib/{index-CwEH1Xqn.js → index-D4eERCAu.js} +5 -5
- package/lib/{index-CwEH1Xqn.js.map → index-D4eERCAu.js.map} +1 -1
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/index-DIkWpujR.js.map +1 -1
- package/lib/{index-CFdjELC4.js → index-DKrXU7hs.js} +26 -26
- package/lib/{index-CFdjELC4.js.map → index-DKrXU7hs.js.map} +1 -1
- package/lib/index-DLUpqP9u.js +11 -0
- package/lib/index-DLUpqP9u.js.map +1 -0
- package/lib/{index-s1MF80_2.js → index-DyBgfOX7.js} +402 -385
- package/lib/index-DyBgfOX7.js.map +1 -0
- package/lib/{index-Da-h4i4f.js → index-N-dolDtu.js} +20 -20
- package/lib/{index-Da-h4i4f.js.map → index-N-dolDtu.js.map} +1 -1
- package/lib/{index-BpAwd4yZ.js → index-QQE4f5yZ.js} +8 -8
- package/{chunk/index-DWjrZunN.js.map → lib/index-QQE4f5yZ.js.map} +1 -1
- package/lib/{index-Bs8gT2Ki.js → index-cfFxpmJ0.js} +5 -5
- package/lib/{index-Bs8gT2Ki.js.map → index-cfFxpmJ0.js.map} +1 -1
- package/lib/{index-CFbGwQvV.js → index-qTuKj59y.js} +32 -32
- package/{chunk/index-CgBENXRP.js.map → lib/index-qTuKj59y.js.map} +1 -1
- package/lib/{index-CHCJ1GKm.js → index-uG_slt2C.js} +7 -7
- package/lib/{index-CHCJ1GKm.js.map → index-uG_slt2C.js.map} +1 -1
- package/lib/{index-CF4-uNPC.js → index-vHwl9Ouo.js} +27 -27
- package/lib/{index-CF4-uNPC.js.map → index-vHwl9Ouo.js.map} +1 -1
- package/lib/index-wzVNqFMX.js +11 -0
- package/lib/index-wzVNqFMX.js.map +1 -0
- package/lib/is-CUuXi4qZ.js +4 -4
- package/lib/it-BNmynTsg.js +4 -4
- package/lib/iw-FGzquR_X.js +4 -4
- package/lib/ja-YgUpXA0l.js +4 -4
- package/lib/ko-CuNS5J_M.js +4 -4
- package/lib/lo-BEf8aFjR.js +4 -4
- package/lib/lt-DvX1gz1a.js +4 -4
- package/lib/ms-gSqM-Mfi.js +4 -4
- package/lib/nl-BE-Cid5LFlN.js +4 -4
- package/lib/nl-CUUTswxa.js +4 -4
- package/lib/no-BvUqlShV.js +4 -4
- package/lib/pl-CU8leZhI.js +4 -4
- package/lib/pt-BR-CboWpHFi.js +4 -4
- package/lib/pt-BnK7xRT_.js +4 -4
- package/lib/ro-BfAyXxSW.js +4 -4
- package/lib/ru-BD-YGPuQ.js +4 -4
- package/lib/sk-CqsabpdG.js +4 -4
- package/lib/sl-CeVAf0S_.js +4 -4
- package/lib/sr-DSaHxcCQ.js +4 -4
- package/lib/sv-DOyWYViy.js +4 -4
- package/lib/sw-2Q7Jo6wp.js +4 -4
- package/lib/th-BZ6F9sPf.js +4 -4
- package/lib/tr-om80xrv2.js +4 -4
- package/lib/uk-Dxugux8e.js +4 -4
- package/lib/ur-OBILUeZ7.js +4 -4
- package/lib/{useCollectFieldsEndpoint-DLjeRtxA.js → useCollectFieldsEndpoint-wNz5nMBP.js} +6 -6
- package/lib/{useCollectFieldsEndpoint-DLjeRtxA.js.map → useCollectFieldsEndpoint-wNz5nMBP.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-RXZazerr.js → useEmailFirstExperiment-Bk3uBcKy.js} +7 -6
- package/lib/{useEmailFirstExperiment-RXZazerr.js.map → useEmailFirstExperiment-Bk3uBcKy.js.map} +1 -1
- package/lib/vi-BOR2GuRI.js +4 -4
- package/lib/zh-HK-BI-IHOGG.js +4 -4
- package/lib/zh-eoMG5RFC.js +4 -4
- package/lib/zu-D_A8wcJW.js +4 -4
- package/package.json +4 -4
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +6 -6
- package/sheerid-install.js.map +1 -1
- package/sheerid.css +5 -5
- package/sheerid.js +16353 -17949
- package/sheerid.js.map +1 -1
- package/src/components/AcceptableUploadsComponent/AcceptableUploadsComponent.d.ts +1 -1
- package/src/components/AcceptableUploadsComponent/getLegacyAcceptableUploads.d.ts +1 -1
- package/src/components/Button/Button.d.ts +0 -1
- package/src/components/CopyToClipboard/CopyToClipboardComponent.d.ts +1 -2
- package/src/components/CustomCssContext/CustomCssContextProvider.d.ts +1 -1
- package/src/components/DateComponent/DateComponent.d.ts +2 -2
- package/src/components/ExtraMessage.d.ts +1 -1
- package/src/components/FaqLink/FaqLinkComponent.d.ts +1 -1
- package/src/components/FeatureFlags/ExperimentComponent/ExperimentComponent.d.ts +4 -4
- package/src/components/FetchOrganizationsComponent.d.ts +1 -1
- package/src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.d.ts +1 -1
- package/src/components/FormFields/Address/AddressComponent.d.ts +2 -2
- package/src/components/FormFields/BirthDate/BirthDateComponent.d.ts +1 -1
- package/src/components/FormFields/BranchOfService/BranchOfServiceComponent.d.ts +2 -2
- package/src/components/FormFields/CVECNumber/CVECNumberComponent.d.ts +2 -2
- package/src/components/FormFields/ChangeLocale/ChangeLocaleComponent.d.ts +3 -3
- package/src/components/FormFields/City/City.d.ts +2 -2
- package/src/components/FormFields/CollegeName/CollegeNameComponent.d.ts +2 -2
- package/src/components/FormFields/Company/CompanyComponent.d.ts +2 -2
- package/src/components/FormFields/Country/CountryComponent.d.ts +2 -2
- package/src/components/FormFields/Country/CountryComponentWrapper.d.ts +2 -2
- package/src/components/FormFields/DischargeDate/DischargeDateComponent.d.ts +1 -1
- package/src/components/FormFields/DriverLicenseNumber/DriverLicenseNumberComponent.d.ts +2 -2
- package/src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.d.ts +2 -2
- package/src/components/FormFields/Email/EmailComponent.d.ts +2 -2
- package/src/components/FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent.d.ts +1 -1
- package/src/components/FormFields/EmailFirstCollectInfo/useEmailFirstExperiment.d.ts +1 -1
- package/src/components/FormFields/FirstName/FirstNameComponent.d.ts +2 -2
- package/src/components/FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent.d.ts +2 -2
- package/src/components/FormFields/FormFieldCustom/FormFieldCustom.d.ts +2 -2
- package/src/components/FormFields/FormFieldInputSelect/FormFieldInputSelect.d.ts +1 -1
- package/src/components/FormFields/FormFieldRadio/FormFieldRadio.d.ts +2 -2
- package/src/components/FormFields/FormFieldSelect/FormFieldSelect.d.ts +2 -2
- package/src/components/FormFields/FormFieldText/FormFieldText.d.ts +1 -1
- package/src/components/FormFields/FormFieldTypeahead/FormFieldTypeahead.d.ts +2 -2
- package/src/components/FormFields/LastName/LastNameComponent.d.ts +2 -2
- package/src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.d.ts +2 -2
- package/src/components/FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent.d.ts +2 -2
- package/src/components/FormFields/MarketConsentWrapper/MarketConsentWrapperComponent.d.ts +1 -1
- package/src/components/FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent.d.ts +2 -2
- package/src/components/FormFields/MemberId/MemberIdComponent.d.ts +2 -2
- package/src/components/FormFields/MembershipOrganization/MembershipOrganizationComponent.d.ts +2 -2
- package/src/components/FormFields/OptIn/OptInComponent.d.ts +1 -1
- package/src/components/FormFields/OverrideCode/OverrideCodeComponent.d.ts +2 -2
- package/src/components/FormFields/PhoneNumber/PhoneNumberComponent.d.ts +2 -2
- package/src/components/FormFields/PostalCode/PostalCodeComponent.d.ts +2 -2
- package/src/components/FormFields/SMSCode/SMSCodeComponent.d.ts +2 -2
- package/src/components/FormFields/SSN/SSN.d.ts +2 -2
- package/src/components/FormFields/State/State.d.ts +2 -2
- package/src/components/FormFields/State/StateSelectComponent.d.ts +2 -2
- package/src/components/FormFields/Status/StatusComponent.d.ts +2 -2
- package/src/components/FormFields/TeacherSchool/TeacherSchoolComponent.d.ts +2 -2
- package/src/components/FormFooter/FooterTextComponent.d.ts +1 -1
- package/src/components/FormFooter/FormFooterComponent.d.ts +1 -1
- package/src/components/FormHeader/FormHeaderComponent.d.ts +1 -1
- package/src/components/FormHeader/StepHeaders/PersonalInfoHeaderComponent.d.ts +1 -1
- package/src/components/FormInputs/InputRadio/InputRadio.d.ts +1 -1
- package/src/components/FormInputs/InputSelect/InputSelectComponent.d.ts +1 -1
- package/src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.d.ts +1 -1
- package/src/components/FormInputs/PostalCodeInput/PostalCodeInputComponent.d.ts +1 -1
- package/src/components/FormInputs/Select/SelectComponent.d.ts +1 -1
- package/src/components/FormInputs/Select/SelectList/SelectListComponent.d.ts +1 -1
- package/src/components/FormInputs/Typeahead/TypeaheadComponent.d.ts +1 -1
- package/src/components/FormInputs/Typeahead/TypeaheadComponentHelper.d.ts +1 -1
- package/src/components/HowDoesVerifyingWork/HowDoesVerifyingWorkComponent.d.ts +1 -1
- package/src/components/Layout/Layout.d.ts +1 -1
- package/src/components/LoadStepComponent.d.ts +1 -1
- package/src/components/LoadingScreen/LoadingScreenComponent.d.ts +1 -1
- package/src/components/LoadingScreen/LoadingScreenMessage.d.ts +1 -1
- package/src/components/LogoComponent/LogoComponent.d.ts +1 -1
- package/src/components/NewVerificationComponent.d.ts +3 -3
- package/src/components/NewVerificationInnerComponent.d.ts +1 -1
- package/src/components/OrganizationList/OrganizationListComponent.d.ts +1 -1
- package/src/components/PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton.d.ts +2 -2
- package/src/components/PersonalInfoStepWrapper/PersonalInfoStepWrapper.d.ts +1 -2
- package/src/components/PoweredBy/PoweredByComponent.d.ts +1 -1
- package/src/components/PrivacyPolicyLink/PrivacyPolicyLinkComponent.d.ts +2 -2
- package/src/components/RewardsRemaining/RewardsRemainingComponent.d.ts +1 -1
- package/src/components/SingleSignOnComponent.d.ts +2 -2
- package/src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.d.ts +2 -2
- package/src/components/StepCollectIdentifier/StepCollectIdentifierComponent.d.ts +1 -1
- package/src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.d.ts +2 -2
- package/src/components/StepConsolation/StepConsolationComponent.d.ts +1 -1
- package/src/components/StepDocUpload/StepDocUploadComponent.d.ts +1 -1
- package/src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.d.ts +1 -1
- package/src/components/StepEmailLoop/EmailLoopPending.d.ts +1 -1
- package/src/components/StepEmailLoop/StepEmailLoopComponent.d.ts +2 -2
- package/src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepError/StepErrorComponent.d.ts +2 -2
- package/src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopOnfidoFooter.d.ts +1 -1
- package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopRegulaFooter.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Onfido/IdCheckLoopOnfido/IdCheckLoopOnfido.d.ts +2 -2
- package/src/components/StepIDCheckLoop/Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Onfido/utils/getAndFormatOrderedStepCards.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/DisplayThumbnail.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/IdCheckLoopRegula.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Regula/StepIDCheckLoopRegulaComponent/StepIDCheckLoopRegula.d.ts +1 -1
- package/src/components/StepIDCheckLoop/StepIDCheckLoopComponent.d.ts +1 -1
- package/src/components/StepIdentityPersonalInfo/StepDriverLicensePersonalInfoComponent.d.ts +1 -1
- package/src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepIdentityPersonalInfo/StepHybridIdentityPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.d.ts +1 -1
- package/src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepMilitaryPersonalInfo/StepInactiveMilitaryPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepOverrideComponent/StepOverrideComponent.d.ts +2 -2
- package/src/components/StepPending/ReviewPendingComponent.d.ts +1 -1
- package/src/components/StepPending/SingleSignOnPendingComponent.d.ts +2 -2
- package/src/components/StepPending/StepPendingComponent.d.ts +1 -1
- package/src/components/StepPending/ThirdPartyLoopPendingComponent.d.ts +1 -1
- package/src/components/StepSMSLoop/StepSMSLoopComponent.d.ts +2 -2
- package/src/components/StepSSO/StepSSOComponent.d.ts +1 -1
- package/src/components/StepSeniorPersonalInfo/StepSeniorPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.d.ts +1 -1
- package/src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepSuccess/StepSuccessComponent.d.ts +1 -1
- package/src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.d.ts +1 -1
- package/src/components/StepThirdPartyLoop/StepThirdPartyLoopComponent.d.ts +3 -3
- package/src/components/TestModeFlag/TestModeFlagComponent.d.ts +1 -1
- package/src/components/UploadInfoComponent/UploadInfoComponent.d.ts +1 -1
- package/src/components/VerificationForm/VerificationFormComponent.d.ts +1 -1
- package/src/es5Bindings/VerificationFormEs5.d.ts +1 -1
- package/src/lib/ProgramTheme/programThemeGetters.d.ts +1 -1
- package/src/lib/ServerApi/ApiUrls.d.ts +1 -1
- package/src/lib/ServerApi/VerificationApiClient.d.ts +1 -1
- package/src/lib/ServerApi/VerificationHelpRequestApi.d.ts +1 -1
- package/src/lib/VerificationService/VerificationServiceActions.d.ts +1 -1
- package/src/lib/hooks/index.d.ts +1 -1
- package/src/lib/installScript/_mysheerid-preview.d.ts +2 -2
- package/src/lib/installScript/affinity.d.ts +1 -1
- package/src/lib/installScript/iframe.d.ts +1 -1
- package/src/lib/installScript/index.d.ts +3 -3
- package/src/lib/installScript/modal.d.ts +1 -1
- package/src/lib/state/contextHooks.d.ts +1 -1
- package/src/lib/types/runtimeTypes.d.ts +1 -1
- package/src/lib/types/types.d.ts +7 -7
- package/src/lib/utils/customTagReplacer/index.d.ts +1 -1
- package/src/lib/utils/stepComponentHelpers/stepComponentHelpers.d.ts +2 -2
- package/src/lib/utils/structures/FormSelectChoice.d.ts +1 -1
- package/types-reference.zip +0 -0
- package/chunk/StepIDCheckLoopRegula-B2frgNDw.js.map +0 -1
- package/chunk/StepIDCheckLoopRegula-VCHUckkA.js.map +0 -1
- package/chunk/index-BIn_Jf1h.js +0 -48
- package/chunk/index-BIn_Jf1h.js.map +0 -1
- package/chunk/index-BOpxl8V9.js +0 -167
- package/chunk/index-BOpxl8V9.js.map +0 -1
- package/chunk/index-BPEB_HHW.js.map +0 -1
- package/chunk/index-CfKAGYGb.js +0 -52
- package/chunk/index-CfKAGYGb.js.map +0 -1
- package/chunk/index-DZsw9-0u.js.map +0 -1
- package/chunk/index-DtoxnCtM.js.map +0 -1
- package/lib/StepCollectMilitaryStatusComponent-BdghJG7J.js +0 -11
- package/lib/StepIDCheckLoopRegula-B4gdB1au.js.map +0 -1
- package/lib/VerificationApiUtils-Dec-3NxE.js +0 -23
- package/lib/es6-CNbgOM7D.js.map +0 -1
- package/lib/index-BUb81vE5.js +0 -11
- package/lib/index-BUb81vE5.js.map +0 -1
- package/lib/index-BqMoknWH.js +0 -28
- package/lib/index-BvZhF_Rn.js +0 -168
- package/lib/index-BvZhF_Rn.js.map +0 -1
- package/lib/index-DFexphfg.js +0 -11
- package/lib/index-DFexphfg.js.map +0 -1
- package/lib/index-DbevfyP-.js +0 -11
- package/lib/index-DbevfyP-.js.map +0 -1
- package/lib/index-aInot7yT.js +0 -11
- package/lib/index-aInot7yT.js.map +0 -1
- package/lib/index-s1MF80_2.js.map +0 -1
@@ -1,26 +1,26 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.104.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE: Thu May 01 2025
|
6
|
-
* BUILD_COMMIT:
|
3
|
+
* VERSION: 2.104.0-alpha.2
|
4
|
+
* BUILD_TIMESTAMP: 1746142342273
|
5
|
+
* BUILD_DATE: Thu May 01 2025 23:32:22 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 890118c01f0c12b348ca343732208200aed0c6c3
|
7
7
|
*/
|
8
|
-
import {
|
8
|
+
import { R as n, d as _, q as C, s as w, j as e, n as y, A as V, a, i as v, l as g, V as h, t as A, v as T } from "../sheerid.js";
|
9
9
|
const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
10
|
-
const t = s.verificationResponse, { programId:
|
10
|
+
const t = s.verificationResponse, { programId: f } = s, { verificationId: d } = t, { canResendEmailLoop: x } = t, L = t.cancelUrl, i = s.viewModel, m = s.previousViewModel || void 0, b = s.previousVerificationResponse || void 0, [c, p] = n.useState(""), r = _(() => m.email), M = () => {
|
11
11
|
g.info("StepEmailLoopComponent submitting form"), s.submitStep(
|
12
|
-
|
12
|
+
h.emailLoop,
|
13
13
|
i,
|
14
14
|
s.verificationResponse
|
15
15
|
);
|
16
16
|
};
|
17
17
|
n.useEffect(() => {
|
18
|
-
|
18
|
+
C(s);
|
19
19
|
}, []), n.useEffect(() => {
|
20
20
|
i.emailToken && M();
|
21
|
-
}, [i.emailToken]),
|
21
|
+
}, [i.emailToken]), w(() => {
|
22
22
|
s.fetchExistingVerificationRequest(
|
23
|
-
|
23
|
+
f,
|
24
24
|
d,
|
25
25
|
b,
|
26
26
|
m,
|
@@ -28,7 +28,7 @@ const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
|
28
28
|
);
|
29
29
|
}, P);
|
30
30
|
const j = async (l) => {
|
31
|
-
const u = await
|
31
|
+
const u = await A.getResendNewEmailCode(l);
|
32
32
|
if (u) {
|
33
33
|
const k = {
|
34
34
|
id: "step.emailLoop.successResend",
|
@@ -50,14 +50,14 @@ const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
|
50
50
|
const l = T(i, () => {
|
51
51
|
});
|
52
52
|
s.submitStep(
|
53
|
-
|
53
|
+
h.cancelEmailLoop,
|
54
54
|
l,
|
55
55
|
s.verificationResponse
|
56
56
|
);
|
57
57
|
};
|
58
58
|
return /* @__PURE__ */ e.jsxs("div", { className: "sid-header sid-l-horz-center", children: [
|
59
59
|
/* @__PURE__ */ e.jsx("div", { className: "sid-email-loop-logo-container sid-l-horz-center", children: /* @__PURE__ */ e.jsx(
|
60
|
-
|
60
|
+
y,
|
61
61
|
{
|
62
62
|
verificationService: s,
|
63
63
|
fallbackLogo: /* @__PURE__ */ e.jsx(
|
@@ -70,7 +70,7 @@ const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
|
70
70
|
)
|
71
71
|
}
|
72
72
|
) }),
|
73
|
-
/* @__PURE__ */ e.jsx(
|
73
|
+
/* @__PURE__ */ e.jsx(V, { align: "center", children: /* @__PURE__ */ e.jsx(
|
74
74
|
a,
|
75
75
|
{
|
76
76
|
id: "step.emailLoop.title",
|
@@ -100,7 +100,7 @@ const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
|
100
100
|
defaultMessage: "Please check for an email from us (verify@sheerid.com) for all the details."
|
101
101
|
}
|
102
102
|
) }),
|
103
|
-
|
103
|
+
L && /* @__PURE__ */ e.jsxs("div", { className: "sid-skip-email sid-l-space-top-lg", children: [
|
104
104
|
/* @__PURE__ */ e.jsx(
|
105
105
|
a,
|
106
106
|
{
|
@@ -121,7 +121,7 @@ const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
|
121
121
|
" ",
|
122
122
|
/* @__PURE__ */ e.jsx(a, { id: "step.emailLoop.skipEmail2", defaultMessage: " to proceed." })
|
123
123
|
] }),
|
124
|
-
|
124
|
+
x && /* @__PURE__ */ e.jsx("div", { className: "sid-header__resend-btn sid-l-space-top-md sid-submit sid-l-horz-center", children: /* @__PURE__ */ e.jsx(
|
125
125
|
"button",
|
126
126
|
{
|
127
127
|
id: "sid-resend-email",
|
@@ -135,7 +135,7 @@ const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
|
135
135
|
c && /* @__PURE__ */ e.jsx("div", { className: "sid-resent-email-loop-email-message", children: /* @__PURE__ */ e.jsx("p", { children: c }) }),
|
136
136
|
/* @__PURE__ */ e.jsx("div", { className: "sid-l-space-top-xl" })
|
137
137
|
] });
|
138
|
-
}, z =
|
138
|
+
}, z = v(I);
|
139
139
|
export {
|
140
140
|
I as EmailLoopPending,
|
141
141
|
z as EmailLoopPendingComponent,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmailLoopPending-Cp3dQjbH.js","sources":["../../src/components/StepEmailLoop/EmailLoopPending.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { injectIntl, FormattedHTMLMessage } from \"react-intl\";\n\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n StudentPersonalInfoViewModel,\n EmailLoopViewModel,\n EmailLoopResponse,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\n\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { populateViewModelFromQueryParams } from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { usePollingInterval } from \"../../lib/utils/usePollingInterval/usePollingInterval\";\n\nimport { VerificationApiClient } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { StepEmailLoopComponentProps } from \"./StepEmailLoopComponent\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nconst EMAIL_LOOP_POLL_DURATION = 10000;\n\nexport const EmailLoopPending = ({ intl, verificationService }: StepEmailLoopComponentProps) => {\n const verificationResponse = verificationService.verificationResponse as EmailLoopResponse;\n const { programId } = verificationService;\n const { verificationId } = verificationResponse;\n const { canResendEmailLoop } = verificationResponse;\n const canCancelEmailLoop = verificationResponse.cancelUrl;\n const viewModel = verificationService.viewModel as EmailLoopViewModel;\n const previousViewModel =\n (verificationService.previousViewModel as StudentPersonalInfoViewModel) || undefined;\n const previousVerificationResponse =\n verificationService.previousVerificationResponse || undefined;\n\n const [resendMessage, setResendMessage] = React.useState(\"\");\n const email = getSafe(() => previousViewModel.email);\n\n const submitForm = () => {\n logger.info(\"StepEmailLoopComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.emailLoop,\n viewModel,\n verificationService.verificationResponse,\n );\n };\n\n React.useEffect(() => {\n populateViewModelFromQueryParams(verificationService);\n }, []);\n\n React.useEffect(() => {\n if (viewModel.emailToken) {\n submitForm();\n }\n }, [viewModel.emailToken]);\n\n usePollingInterval(() => {\n verificationService.fetchExistingVerificationRequest(\n programId,\n verificationId,\n previousVerificationResponse,\n previousViewModel,\n false,\n );\n }, EMAIL_LOOP_POLL_DURATION);\n\n const resendEmail = async (verificationId) => {\n const response = await VerificationApiClient.getResendNewEmailCode(verificationId);\n if (response) {\n const successMsgObject = {\n id: \"step.emailLoop.successResend\",\n defaultMessage: \"Email re-sent successfully.\",\n };\n const maxRetriesMsgObject = {\n id: \"step.emailLoop.errors.resend\",\n defaultMessage: \"Error sending email\",\n };\n const message =\n response.status === 204\n ? intl.formatHTMLMessage(successMsgObject)\n : intl.formatHTMLMessage(maxRetriesMsgObject);\n setResendMessage(message);\n } else {\n setResendMessage(\n intl.formatHTMLMessage({\n id: \"step.emailLoop.errors.resend\",\n defaultMessage: \"Error sending email\",\n }),\n );\n }\n };\n\n const cancelEmailLoop = async () => {\n logger.info(\"StepEmailLoopComponent submitting form after skipping email loop\");\n const nextState = produce(viewModel, () => {});\n verificationService.submitStep(\n VerificationStepsEnum.cancelEmailLoop,\n nextState,\n verificationService.verificationResponse,\n );\n };\n\n return (\n <div className=\"sid-header sid-l-horz-center\">\n <div className=\"sid-email-loop-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-email-loop-logo 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 <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.title\"\n defaultMessage=\"Check your email\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <div className=\"sid-header__subtitle\">\n {email ? (\n <FormattedHTMLMessage\n id=\"step.emailLoop.subtitleWithEmail\"\n defaultMessage=\"An email has been sent to {email} with a personalized link to complete the verification process.\"\n values={{ email }}\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.emailLoop.subtitleWithoutEmail\"\n defaultMessage=\"An email has been sent to your email account with a personalized link to complete the verification process.\"\n />\n )}\n </div>\n\n <div className=\"sid-l-space-top-md\" />\n\n <div className=\"sid-header__subtitle-two sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.subtitle2\"\n defaultMessage=\"Please check for an email from us (verify@sheerid.com) for all the details.\"\n />\n </div>\n\n {canCancelEmailLoop && (\n <div className=\"sid-skip-email sid-l-space-top-lg\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.skipEmail\"\n defaultMessage=\"Unable to retrieve this email? Click \"\n />\n \n <button\n type=\"button\"\n onClick={() => cancelEmailLoop()}\n className=\"sid-incorrect-number__refresh-link sid-h-btn-link-like\"\n >\n <FormattedHTMLMessage id=\"step.emailLoop.skipEmailCTA\" defaultMessage=\"here\" />\n </button>\n \n <FormattedHTMLMessage id=\"step.emailLoop.skipEmail2\" defaultMessage=\" to proceed.\" />\n </div>\n )}\n\n {canResendEmailLoop && (\n <div className=\"sid-header__resend-btn sid-l-space-top-md sid-submit sid-l-horz-center\">\n <button\n id=\"sid-resend-email\"\n onClick={() => resendEmail(verificationId)}\n type=\"submit\"\n className=\"sid-btn sid-btn--light sid-resend-email-btn sid-submit__cancel\"\n aria-label=\"re-send\"\n >\n <FormattedHTMLMessage id=\"step.emailLoop.resendButton\" defaultMessage=\"Re-send\" />\n </button>\n </div>\n )}\n\n {resendMessage && (\n <div className=\"sid-resent-email-loop-email-message\">\n <p>{resendMessage}</p>\n </div>\n )}\n\n <div className=\"sid-l-space-top-xl\" />\n </div>\n );\n};\n\nexport const EmailLoopPendingComponent = injectIntl(EmailLoopPending);\nexport default EmailLoopPendingComponent;\n"],"names":["EMAIL_LOOP_POLL_DURATION","EmailLoopPending","intl","verificationService","verificationResponse","programId","verificationId","canResendEmailLoop","canCancelEmailLoop","viewModel","previousViewModel","previousVerificationResponse","resendMessage","setResendMessage","React","email","getSafe","submitForm","logger","VerificationStepsEnum","populateViewModelFromQueryParams","usePollingInterval","resendEmail","response","VerificationApiClient","successMsgObject","maxRetriesMsgObject","message","cancelEmailLoop","nextState","produce","jsxs","jsx","LogoComponent","AnnouncingHeader","FormattedHTMLMessage","EmailLoopPendingComponent","injectIntl"],"mappings":";AAqBA,MAAMA,IAA2B,KAEpBC,IAAmB,CAAC,EAAE,MAAAC,GAAM,qBAAAC,QAAuD;AAC9F,QAAMC,IAAuBD,EAAoB,sBAC3C,EAAE,WAAAE,MAAcF,GAChB,EAAE,gBAAAG,MAAmBF,GACrB,EAAE,oBAAAG,MAAuBH,GACzBI,IAAqBJ,EAAqB,WAC1CK,IAAYN,EAAoB,WAChCO,IACHP,EAAoB,qBAAsD,QACvEQ,IACJR,EAAoB,gCAAgC,QAEhD,CAACS,GAAeC,CAAgB,IAAIC,EAAM,SAAS,EAAE,GACrDC,IAAQC,EAAQ,MAAMN,EAAkB,KAAK,GAE7CO,IAAa,MAAM;AACvB,IAAAC,EAAO,KAAK,wCAAwC,GAChCf,EAAA;AAAA,MAClBgB,EAAsB;AAAA,MACtBV;AAAA,MACAN,EAAoB;AAAA,IACtB;AAAA,EACF;AAEA,EAAAW,EAAM,UAAU,MAAM;AACpB,IAAAM,EAAiCjB,CAAmB;AAAA,EACtD,GAAG,EAAE,GAELW,EAAM,UAAU,MAAM;AACpB,IAAIL,EAAU,cACDQ,EAAA;AAAA,EACb,GACC,CAACR,EAAU,UAAU,CAAC,GAEzBY,EAAmB,MAAM;AACH,IAAAlB,EAAA;AAAA,MAClBE;AAAA,MACAC;AAAA,MACAK;AAAA,MACAD;AAAA,MACA;AAAA,IACF;AAAA,KACCV,CAAwB;AAErB,QAAAsB,IAAc,OAAOhB,MAAmB;AAC5C,U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Ac;AAAA,QACzC,MAAK;AAAA,QACL,WAAU;AAAA,QACV,cAAW;AAAA,QAEX,UAAC0B,gBAAAA,EAAA,IAAAG,GAAA,EAAqB,IAAG,+BAA8B,gBAAe,UAAU,CAAA;AAAA,MAAA;AAAA,IAAA,GAEpF;AAAA,IAGDvB,2BACE,OAAI,EAAA,WAAU,uCACb,UAACoB,gBAAAA,EAAA,IAAA,KAAA,EAAG,aAAc,EACpB,CAAA;AAAA,IAGFA,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,qBAAqB,CAAA;AAAA,EAAA,GACtC;AAEJ,GAEaI,IAA4BC,EAAWpC,CAAgB;"}
|
1
|
+
{"version":3,"file":"EmailLoopPending-CKTAwQQA.js","sources":["../../src/components/StepEmailLoop/EmailLoopPending.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { injectIntl, FormattedHTMLMessage } from \"react-intl\";\n\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n StudentPersonalInfoViewModel,\n EmailLoopViewModel,\n EmailLoopResponse,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\n\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { populateViewModelFromQueryParams } from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { usePollingInterval } from \"../../lib/utils/usePollingInterval/usePollingInterval\";\n\nimport { VerificationApiClient } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { StepEmailLoopComponentProps } from \"./StepEmailLoopComponent\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nconst EMAIL_LOOP_POLL_DURATION = 10000;\n\nexport const EmailLoopPending = ({ intl, verificationService }: StepEmailLoopComponentProps) => {\n const verificationResponse = verificationService.verificationResponse as EmailLoopResponse;\n const { programId } = verificationService;\n const { verificationId } = verificationResponse;\n const { canResendEmailLoop } = verificationResponse;\n const canCancelEmailLoop = verificationResponse.cancelUrl;\n const viewModel = verificationService.viewModel as EmailLoopViewModel;\n const previousViewModel =\n (verificationService.previousViewModel as StudentPersonalInfoViewModel) || undefined;\n const previousVerificationResponse =\n verificationService.previousVerificationResponse || undefined;\n\n const [resendMessage, setResendMessage] = React.useState(\"\");\n const email = getSafe(() => previousViewModel.email);\n\n const submitForm = () => {\n logger.info(\"StepEmailLoopComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.emailLoop,\n viewModel,\n verificationService.verificationResponse,\n );\n };\n\n React.useEffect(() => {\n populateViewModelFromQueryParams(verificationService);\n }, []);\n\n React.useEffect(() => {\n if (viewModel.emailToken) {\n submitForm();\n }\n }, [viewModel.emailToken]);\n\n usePollingInterval(() => {\n verificationService.fetchExistingVerificationRequest(\n programId,\n verificationId,\n previousVerificationResponse,\n previousViewModel,\n false,\n );\n }, EMAIL_LOOP_POLL_DURATION);\n\n const resendEmail = async (verificationId) => {\n const response = await VerificationApiClient.getResendNewEmailCode(verificationId);\n if (response) {\n const successMsgObject = {\n id: \"step.emailLoop.successResend\",\n defaultMessage: \"Email re-sent successfully.\",\n };\n const maxRetriesMsgObject = {\n id: \"step.emailLoop.errors.resend\",\n defaultMessage: \"Error sending email\",\n };\n const message =\n response.status === 204\n ? intl.formatHTMLMessage(successMsgObject)\n : intl.formatHTMLMessage(maxRetriesMsgObject);\n setResendMessage(message);\n } else {\n setResendMessage(\n intl.formatHTMLMessage({\n id: \"step.emailLoop.errors.resend\",\n defaultMessage: \"Error sending email\",\n }),\n );\n }\n };\n\n const cancelEmailLoop = async () => {\n logger.info(\"StepEmailLoopComponent submitting form after skipping email loop\");\n const nextState = produce(viewModel, () => {});\n verificationService.submitStep(\n VerificationStepsEnum.cancelEmailLoop,\n nextState,\n verificationService.verificationResponse,\n );\n };\n\n return (\n <div className=\"sid-header sid-l-horz-center\">\n <div className=\"sid-email-loop-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-email-loop-logo 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 <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.title\"\n defaultMessage=\"Check your email\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <div className=\"sid-header__subtitle\">\n {email ? (\n <FormattedHTMLMessage\n id=\"step.emailLoop.subtitleWithEmail\"\n defaultMessage=\"An email has been sent to {email} with a personalized link to complete the verification process.\"\n values={{ email }}\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.emailLoop.subtitleWithoutEmail\"\n defaultMessage=\"An email has been sent to your email account with a personalized link to complete the verification process.\"\n />\n )}\n </div>\n\n <div className=\"sid-l-space-top-md\" />\n\n <div className=\"sid-header__subtitle-two sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.subtitle2\"\n defaultMessage=\"Please check for an email from us (verify@sheerid.com) for all the details.\"\n />\n </div>\n\n {canCancelEmailLoop && (\n <div className=\"sid-skip-email sid-l-space-top-lg\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.skipEmail\"\n defaultMessage=\"Unable to retrieve this email? Click \"\n />\n \n <button\n type=\"button\"\n onClick={() => cancelEmailLoop()}\n className=\"sid-incorrect-number__refresh-link sid-h-btn-link-like\"\n >\n <FormattedHTMLMessage id=\"step.emailLoop.skipEmailCTA\" defaultMessage=\"here\" />\n </button>\n \n <FormattedHTMLMessage id=\"step.emailLoop.skipEmail2\" defaultMessage=\" to proceed.\" />\n </div>\n )}\n\n {canResendEmailLoop && (\n <div className=\"sid-header__resend-btn sid-l-space-top-md sid-submit sid-l-horz-center\">\n <button\n id=\"sid-resend-email\"\n onClick={() => resendEmail(verificationId)}\n type=\"submit\"\n className=\"sid-btn sid-btn--light sid-resend-email-btn sid-submit__cancel\"\n aria-label=\"re-send\"\n >\n <FormattedHTMLMessage id=\"step.emailLoop.resendButton\" defaultMessage=\"Re-send\" />\n </button>\n </div>\n )}\n\n {resendMessage && (\n <div className=\"sid-resent-email-loop-email-message\">\n <p>{resendMessage}</p>\n </div>\n )}\n\n <div className=\"sid-l-space-top-xl\" />\n </div>\n );\n};\n\nexport const EmailLoopPendingComponent = injectIntl(EmailLoopPending);\nexport default EmailLoopPendingComponent;\n"],"names":["EMAIL_LOOP_POLL_DURATION","EmailLoopPending","intl","verificationService","verificationResponse","programId","verificationId","canResendEmailLoop","canCancelEmailLoop","viewModel","previousViewModel","previousVerificationResponse","resendMessage","setResendMessage","React","email","getSafe","submitForm","logger","VerificationStepsEnum","populateViewModelFromQueryParams","usePollingInterval","resendEmail","response","VerificationApiClient","successMsgObject","maxRetriesMsgObject","message","cancelEmailLoop","nextState","produce","jsxs","jsx","LogoComponent","AnnouncingHeader","FormattedHTMLMessage","EmailLoopPendingComponent","injectIntl"],"mappings":";AAqBA,MAAMA,IAA2B,KAEpBC,IAAmB,CAAC,EAAE,MAAAC,GAAM,qBAAAC,QAAuD;AAC9F,QAAMC,IAAuBD,EAAoB,sBAC3C,EAAE,WAAAE,EAAc,IAAAF,GAChB,EAAE,gBAAAG,EAAmB,IAAAF,GACrB,EAAE,oBAAAG,EAAuB,IAAAH,GACzBI,IAAqBJ,EAAqB,WAC1CK,IAAYN,EAAoB,WAChCO,IACHP,EAAoB,qBAAsD,QACvEQ,IACJR,EAAoB,gCAAgC,QAEhD,CAACS,GAAeC,CAAgB,IAAIC,EAAM,SAAS,EAAE,GACrDC,IAAQC,EAAQ,MAAMN,EAAkB,KAAK,GAE7CO,IAAa,MAAM;AACvB,IAAAC,EAAO,KAAK,wCAAwC,GAChCf,EAAA;AAAA,MAClBgB,EAAsB;AAAA,MACtBV;AAAA,MACAN,EAAoB;AAAA,IAAA;AAAA,EACtB;AAGF,EAAAW,EAAM,UAAU,MAAM;AACpB,IAAAM,EAAiCjB,CAAmB;AAAA,EACtD,GAAG,CAAE,CAAA,GAELW,EAA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gBAAAA,EAAA,IAAAG,GAAA,EAAqB,IAAG,6BAA4B,gBAAe,gBAAe;AAAA,IAAA,GACrF;AAAA,IAGD5B,KACCyB,gBAAAA,EAAA,IAAC,OAAI,EAAA,WAAU,0EACb,UAAAA,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH,SAAS,MAAMV,EAAYhB,CAAc;AAAA,QACzC,MAAK;AAAA,QACL,WAAU;AAAA,QACV,cAAW;AAAA,QAEX,UAAC0B,gBAAAA,EAAA,IAAAG,GAAA,EAAqB,IAAG,+BAA8B,gBAAe,WAAU;AAAA,MAAA;AAAA,IAAA,GAEpF;AAAA,IAGDvB,2BACE,OAAI,EAAA,WAAU,uCACb,UAACoB,gBAAAA,EAAA,IAAA,KAAA,EAAG,aAAc,EACpB,CAAA;AAAA,IAGFA,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,qBAAqB,CAAA;AAAA,EACtC,EAAA,CAAA;AAEJ,GAEaI,IAA4BC,EAAWpC,CAAgB;"}
|
@@ -4,27 +4,27 @@
|
|
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.104.0-alpha.
|
8
|
-
* BUILD_TIMESTAMP:
|
9
|
-
* BUILD_DATE: Thu May 01 2025
|
10
|
-
* BUILD_COMMIT:
|
7
|
+
* VERSION: 2.104.0-alpha.2
|
8
|
+
* BUILD_TIMESTAMP: 1746142396526
|
9
|
+
* BUILD_DATE: Thu May 01 2025 23:33:16 GMT+0000 (Coordinated Universal Time)
|
10
|
+
* BUILD_COMMIT: 890118c01f0c12b348ca343732208200aed0c6c3
|
11
11
|
*/
|
12
|
-
import {
|
12
|
+
import { R as n, d as _, q as C, s as w, j as e, n as y, A as V, a, i as v, l as g, V as h, t as A, v as T } from "../_mysheerid-preview.js";
|
13
13
|
const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
14
|
-
const t = s.verificationResponse, { programId:
|
14
|
+
const t = s.verificationResponse, { programId: f } = s, { verificationId: d } = t, { canResendEmailLoop: x } = t, L = t.cancelUrl, i = s.viewModel, m = s.previousViewModel || void 0, b = s.previousVerificationResponse || void 0, [c, p] = n.useState(""), r = _(() => m.email), M = () => {
|
15
15
|
g.info("StepEmailLoopComponent submitting form"), s.submitStep(
|
16
|
-
|
16
|
+
h.emailLoop,
|
17
17
|
i,
|
18
18
|
s.verificationResponse
|
19
19
|
);
|
20
20
|
};
|
21
21
|
n.useEffect(() => {
|
22
|
-
|
22
|
+
C(s);
|
23
23
|
}, []), n.useEffect(() => {
|
24
24
|
i.emailToken && M();
|
25
|
-
}, [i.emailToken]),
|
25
|
+
}, [i.emailToken]), w(() => {
|
26
26
|
s.fetchExistingVerificationRequest(
|
27
|
-
|
27
|
+
f,
|
28
28
|
d,
|
29
29
|
b,
|
30
30
|
m,
|
@@ -32,7 +32,7 @@ const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
|
32
32
|
);
|
33
33
|
}, P);
|
34
34
|
const j = async (l) => {
|
35
|
-
const u = await
|
35
|
+
const u = await A.getResendNewEmailCode(l);
|
36
36
|
if (u) {
|
37
37
|
const k = {
|
38
38
|
id: "step.emailLoop.successResend",
|
@@ -54,14 +54,14 @@ const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
|
54
54
|
const l = T(i, () => {
|
55
55
|
});
|
56
56
|
s.submitStep(
|
57
|
-
|
57
|
+
h.cancelEmailLoop,
|
58
58
|
l,
|
59
59
|
s.verificationResponse
|
60
60
|
);
|
61
61
|
};
|
62
62
|
return /* @__PURE__ */ e.jsxs("div", { className: "sid-header sid-l-horz-center", children: [
|
63
63
|
/* @__PURE__ */ e.jsx("div", { className: "sid-email-loop-logo-container sid-l-horz-center", children: /* @__PURE__ */ e.jsx(
|
64
|
-
|
64
|
+
y,
|
65
65
|
{
|
66
66
|
verificationService: s,
|
67
67
|
fallbackLogo: /* @__PURE__ */ e.jsx(
|
@@ -74,7 +74,7 @@ const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
|
74
74
|
)
|
75
75
|
}
|
76
76
|
) }),
|
77
|
-
/* @__PURE__ */ e.jsx(
|
77
|
+
/* @__PURE__ */ e.jsx(V, { align: "center", children: /* @__PURE__ */ e.jsx(
|
78
78
|
a,
|
79
79
|
{
|
80
80
|
id: "step.emailLoop.title",
|
@@ -104,7 +104,7 @@ const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
|
104
104
|
defaultMessage: "Please check for an email from us (verify@sheerid.com) for all the details."
|
105
105
|
}
|
106
106
|
) }),
|
107
|
-
|
107
|
+
L && /* @__PURE__ */ e.jsxs("div", { className: "sid-skip-email sid-l-space-top-lg", children: [
|
108
108
|
/* @__PURE__ */ e.jsx(
|
109
109
|
a,
|
110
110
|
{
|
@@ -125,7 +125,7 @@ const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
|
125
125
|
" ",
|
126
126
|
/* @__PURE__ */ e.jsx(a, { id: "step.emailLoop.skipEmail2", defaultMessage: " to proceed." })
|
127
127
|
] }),
|
128
|
-
|
128
|
+
x && /* @__PURE__ */ e.jsx("div", { className: "sid-header__resend-btn sid-l-space-top-md sid-submit sid-l-horz-center", children: /* @__PURE__ */ e.jsx(
|
129
129
|
"button",
|
130
130
|
{
|
131
131
|
id: "sid-resend-email",
|
@@ -139,7 +139,7 @@ const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
|
139
139
|
c && /* @__PURE__ */ e.jsx("div", { className: "sid-resent-email-loop-email-message", children: /* @__PURE__ */ e.jsx("p", { children: c }) }),
|
140
140
|
/* @__PURE__ */ e.jsx("div", { className: "sid-l-space-top-xl" })
|
141
141
|
] });
|
142
|
-
}, z =
|
142
|
+
}, z = v(I);
|
143
143
|
export {
|
144
144
|
I as EmailLoopPending,
|
145
145
|
z as EmailLoopPendingComponent,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmailLoopPending-WTPkkJsm.js","sources":["../../src/components/StepEmailLoop/EmailLoopPending.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { injectIntl, FormattedHTMLMessage } from \"react-intl\";\n\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n StudentPersonalInfoViewModel,\n EmailLoopViewModel,\n EmailLoopResponse,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\n\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { populateViewModelFromQueryParams } from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { usePollingInterval } from \"../../lib/utils/usePollingInterval/usePollingInterval\";\n\nimport { VerificationApiClient } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { StepEmailLoopComponentProps } from \"./StepEmailLoopComponent\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nconst EMAIL_LOOP_POLL_DURATION = 10000;\n\nexport const EmailLoopPending = ({ intl, verificationService }: StepEmailLoopComponentProps) => {\n const verificationResponse = verificationService.verificationResponse as EmailLoopResponse;\n const { programId } = verificationService;\n const { verificationId } = verificationResponse;\n const { canResendEmailLoop } = verificationResponse;\n const canCancelEmailLoop = verificationResponse.cancelUrl;\n const viewModel = verificationService.viewModel as EmailLoopViewModel;\n const previousViewModel =\n (verificationService.previousViewModel as StudentPersonalInfoViewModel) || undefined;\n const previousVerificationResponse =\n verificationService.previousVerificationResponse || undefined;\n\n const [resendMessage, setResendMessage] = React.useState(\"\");\n const email = getSafe(() => previousViewModel.email);\n\n const submitForm = () => {\n logger.info(\"StepEmailLoopComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.emailLoop,\n viewModel,\n verificationService.verificationResponse,\n );\n };\n\n React.useEffect(() => {\n populateViewModelFromQueryParams(verificationService);\n }, []);\n\n React.useEffect(() => {\n if (viewModel.emailToken) {\n submitForm();\n }\n }, [viewModel.emailToken]);\n\n usePollingInterval(() => {\n verificationService.fetchExistingVerificationRequest(\n programId,\n verificationId,\n previousVerificationResponse,\n previousViewModel,\n false,\n );\n }, EMAIL_LOOP_POLL_DURATION);\n\n const resendEmail = async (verificationId) => {\n const response = await VerificationApiClient.getResendNewEmailCode(verificationId);\n if (response) {\n const successMsgObject = {\n id: \"step.emailLoop.successResend\",\n defaultMessage: \"Email re-sent successfully.\",\n };\n const maxRetriesMsgObject = {\n id: \"step.emailLoop.errors.resend\",\n defaultMessage: \"Error sending email\",\n };\n const message =\n response.status === 204\n ? intl.formatHTMLMessage(successMsgObject)\n : intl.formatHTMLMessage(maxRetriesMsgObject);\n setResendMessage(message);\n } else {\n setResendMessage(\n intl.formatHTMLMessage({\n id: \"step.emailLoop.errors.resend\",\n defaultMessage: \"Error sending email\",\n }),\n );\n }\n };\n\n const cancelEmailLoop = async () => {\n logger.info(\"StepEmailLoopComponent submitting form after skipping email loop\");\n const nextState = produce(viewModel, () => {});\n verificationService.submitStep(\n VerificationStepsEnum.cancelEmailLoop,\n nextState,\n verificationService.verificationResponse,\n );\n };\n\n return (\n <div className=\"sid-header sid-l-horz-center\">\n <div className=\"sid-email-loop-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-email-loop-logo 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 <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.title\"\n defaultMessage=\"Check your email\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <div className=\"sid-header__subtitle\">\n {email ? (\n <FormattedHTMLMessage\n id=\"step.emailLoop.subtitleWithEmail\"\n defaultMessage=\"An email has been sent to {email} with a personalized link to complete the verification process.\"\n values={{ email }}\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.emailLoop.subtitleWithoutEmail\"\n defaultMessage=\"An email has been sent to your email account with a personalized link to complete the verification process.\"\n />\n )}\n </div>\n\n <div className=\"sid-l-space-top-md\" />\n\n <div className=\"sid-header__subtitle-two sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.subtitle2\"\n defaultMessage=\"Please check for an email from us (verify@sheerid.com) for all the details.\"\n />\n </div>\n\n {canCancelEmailLoop && (\n <div className=\"sid-skip-email sid-l-space-top-lg\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.skipEmail\"\n defaultMessage=\"Unable to retrieve this email? Click \"\n />\n \n <button\n type=\"button\"\n onClick={() => cancelEmailLoop()}\n className=\"sid-incorrect-number__refresh-link sid-h-btn-link-like\"\n >\n <FormattedHTMLMessage id=\"step.emailLoop.skipEmailCTA\" defaultMessage=\"here\" />\n </button>\n \n <FormattedHTMLMessage id=\"step.emailLoop.skipEmail2\" defaultMessage=\" to proceed.\" />\n </div>\n )}\n\n {canResendEmailLoop && (\n <div className=\"sid-header__resend-btn sid-l-space-top-md sid-submit sid-l-horz-center\">\n <button\n id=\"sid-resend-email\"\n onClick={() => resendEmail(verificationId)}\n type=\"submit\"\n className=\"sid-btn sid-btn--light sid-resend-email-btn sid-submit__cancel\"\n aria-label=\"re-send\"\n >\n <FormattedHTMLMessage id=\"step.emailLoop.resendButton\" defaultMessage=\"Re-send\" />\n </button>\n </div>\n )}\n\n {resendMessage && (\n <div className=\"sid-resent-email-loop-email-message\">\n <p>{resendMessage}</p>\n </div>\n )}\n\n <div className=\"sid-l-space-top-xl\" />\n </div>\n );\n};\n\nexport const EmailLoopPendingComponent = injectIntl(EmailLoopPending);\nexport default EmailLoopPendingComponent;\n"],"names":["EMAIL_LOOP_POLL_DURATION","EmailLoopPending","intl","verificationService","verificationResponse","programId","verificationId","canResendEmailLoop","canCancelEmailLoop","viewModel","previousViewModel","previousVerificationResponse","resendMessage","setResendMessage","React","email","getSafe","submitForm","logger","VerificationStepsEnum","populateViewModelFromQueryParams","usePollingInterval","resendEmail","response","VerificationApiClient","successMsgObject","maxRetriesMsgObject","message","cancelEmailLoop","nextState","produce","jsxs","jsx","LogoComponent","AnnouncingHeader","FormattedHTMLMessage","EmailLoopPendingComponent","injectIntl"],"mappings":";AAqBA,MAAMA,IAA2B,KAEpBC,IAAmB,CAAC,EAAE,MAAAC,GAAM,qBAAAC,QAAuD;AAC9F,QAAMC,IAAuBD,EAAoB,sBAC3C,EAAE,WAAAE,MAAcF,GAChB,EAAE,gBAAAG,MAAmBF,GACrB,EAAE,oBAAAG,MAAuBH,GACzBI,IAAqBJ,EAAqB,WAC1CK,IAAYN,EAAoB,WAChCO,IACHP,EAAoB,qBAAsD,QACvEQ,IACJR,EAAoB,gCAAgC,QAEhD,CAACS,GAAeC,CAAgB,IAAIC,EAAM,SAAS,EAAE,GACrDC,IAAQC,EAAQ,MAAMN,EAAkB,KAAK,GAE7CO,IAAa,MAAM;AACvB,IAAAC,EAAO,KAAK,wCAAwC,GAChCf,EAAA;AAAA,MAClBgB,EAAsB;AAAA,MACtBV;AAAA,MACAN,EAAoB;AAAA,IACtB;AAAA,EACF;AAEA,EAAAW,EAAM,UAAU,MAAM;AACpB,IAAAM,EAAiCjB,CAAmB;AAAA,EACtD,GAAG,EAAE,GAELW,EAAM,UAAU,MAAM;AACpB,IAAIL,EAAU,cACDQ,EAAA;AAAA,EACb,GACC,CAACR,EAAU,UAAU,CAAC,GAEzBY,EAAmB,MAAM;AACH,IAAAlB,EAAA;AAAA,MAClBE;AAAA,MACAC;AAAA,MACAK;AAAA,MACAD;AAAA,MACA;AAAA,IACF;AAAA,KACCV,CAAwB;AAErB,QAAAsB,IAAc,OAAOhB,MAAmB;AAC5C,UAAMiB,IAAW,MAAMC,EAAsB,sBAAsBlB,CAAc;AACjF,QAAIiB,GAAU;AACZ,YAAME,IAAmB;AAAA,QACvB,IAAI;AAAA,QACJ,gBAAgB;AAAA,MAClB,GACMC,IAAsB;AAAA,QAC1B,IAAI;AAAA,QACJ,gBAAgB;AAAA,MAClB,GACMC,IACJJ,EA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CACb,UAACoB,gBAAAA,EAAA,IAAA,KAAA,EAAG,aAAc,EACpB,CAAA;AAAA,IAGFA,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,qBAAqB,CAAA;AAAA,EAAA,GACtC;AAEJ,GAEaI,IAA4BC,EAAWpC,CAAgB;"}
|
1
|
+
{"version":3,"file":"EmailLoopPending-Dzs07hxx.js","sources":["../../src/components/StepEmailLoop/EmailLoopPending.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { injectIntl, FormattedHTMLMessage } from \"react-intl\";\n\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n StudentPersonalInfoViewModel,\n EmailLoopViewModel,\n EmailLoopResponse,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\n\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { populateViewModelFromQueryParams } from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { usePollingInterval } from \"../../lib/utils/usePollingInterval/usePollingInterval\";\n\nimport { VerificationApiClient } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { StepEmailLoopComponentProps } from \"./StepEmailLoopComponent\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nconst EMAIL_LOOP_POLL_DURATION = 10000;\n\nexport const EmailLoopPending = ({ intl, verificationService }: StepEmailLoopComponentProps) => {\n const verificationResponse = verificationService.verificationResponse as EmailLoopResponse;\n const { programId } = verificationService;\n const { verificationId } = verificationResponse;\n const { canResendEmailLoop } = verificationResponse;\n const canCancelEmailLoop = verificationResponse.cancelUrl;\n const viewModel = verificationService.viewModel as EmailLoopViewModel;\n const previousViewModel =\n (verificationService.previousViewModel as StudentPersonalInfoViewModel) || undefined;\n const previousVerificationResponse =\n verificationService.previousVerificationResponse || undefined;\n\n const [resendMessage, setResendMessage] = React.useState(\"\");\n const email = getSafe(() => previousViewModel.email);\n\n const submitForm = () => {\n logger.info(\"StepEmailLoopComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.emailLoop,\n viewModel,\n verificationService.verificationResponse,\n );\n };\n\n React.useEffect(() => {\n populateViewModelFromQueryParams(verificationService);\n }, []);\n\n React.useEffect(() => {\n if (viewModel.emailToken) {\n submitForm();\n }\n }, [viewModel.emailToken]);\n\n usePollingInterval(() => {\n verificationService.fetchExistingVerificationRequest(\n programId,\n verificationId,\n previousVerificationResponse,\n previousViewModel,\n false,\n );\n }, EMAIL_LOOP_POLL_DURATION);\n\n const resendEmail = async (verificationId) => {\n const response = await VerificationApiClient.getResendNewEmailCode(verificationId);\n if (response) {\n const successMsgObject = {\n id: \"step.emailLoop.successResend\",\n defaultMessage: \"Email re-sent successfully.\",\n };\n const maxRetriesMsgObject = {\n id: \"step.emailLoop.errors.resend\",\n defaultMessage: \"Error sending email\",\n };\n const message =\n response.status === 204\n ? intl.formatHTMLMessage(successMsgObject)\n : intl.formatHTMLMessage(maxRetriesMsgObject);\n setResendMessage(message);\n } else {\n setResendMessage(\n intl.formatHTMLMessage({\n id: \"step.emailLoop.errors.resend\",\n defaultMessage: \"Error sending email\",\n }),\n );\n }\n };\n\n const cancelEmailLoop = async () => {\n logger.info(\"StepEmailLoopComponent submitting form after skipping email loop\");\n const nextState = produce(viewModel, () => {});\n verificationService.submitStep(\n VerificationStepsEnum.cancelEmailLoop,\n nextState,\n verificationService.verificationResponse,\n );\n };\n\n return (\n <div className=\"sid-header sid-l-horz-center\">\n <div className=\"sid-email-loop-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-email-loop-logo 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 <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.title\"\n defaultMessage=\"Check your email\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <div className=\"sid-header__subtitle\">\n {email ? (\n <FormattedHTMLMessage\n id=\"step.emailLoop.subtitleWithEmail\"\n defaultMessage=\"An email has been sent to {email} with a personalized link to complete the verification process.\"\n values={{ email }}\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.emailLoop.subtitleWithoutEmail\"\n defaultMessage=\"An email has been sent to your email account with a personalized link to complete the verification process.\"\n />\n )}\n </div>\n\n <div className=\"sid-l-space-top-md\" />\n\n <div className=\"sid-header__subtitle-two sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.subtitle2\"\n defaultMessage=\"Please check for an email from us (verify@sheerid.com) for all the details.\"\n />\n </div>\n\n {canCancelEmailLoop && (\n <div className=\"sid-skip-email sid-l-space-top-lg\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.skipEmail\"\n defaultMessage=\"Unable to retrieve this email? Click \"\n />\n \n <button\n type=\"button\"\n onClick={() => cancelEmailLoop()}\n className=\"sid-incorrect-number__refresh-link sid-h-btn-link-like\"\n >\n <FormattedHTMLMessage id=\"step.emailLoop.skipEmailCTA\" defaultMessage=\"here\" />\n </button>\n \n <FormattedHTMLMessage id=\"step.emailLoop.skipEmail2\" defaultMessage=\" to proceed.\" />\n </div>\n )}\n\n {canResendEmailLoop && (\n <div className=\"sid-header__resend-btn sid-l-space-top-md sid-submit sid-l-horz-center\">\n <button\n id=\"sid-resend-email\"\n onClick={() => resendEmail(verificationId)}\n type=\"submit\"\n className=\"sid-btn sid-btn--light sid-resend-email-btn sid-submit__cancel\"\n aria-label=\"re-send\"\n >\n <FormattedHTMLMessage id=\"step.emailLoop.resendButton\" defaultMessage=\"Re-send\" />\n </button>\n </div>\n )}\n\n {resendMessage && (\n <div className=\"sid-resent-email-loop-email-message\">\n <p>{resendMessage}</p>\n </div>\n )}\n\n <div className=\"sid-l-space-top-xl\" />\n </div>\n );\n};\n\nexport const EmailLoopPendingComponent = injectIntl(EmailLoopPending);\nexport default EmailLoopPendingComponent;\n"],"names":["EMAIL_LOOP_POLL_DURATION","EmailLoopPending","intl","verificationService","verificationResponse","programId","verificationId","canResendEmailLoop","canCancelEmailLoop","viewModel","previousViewModel","previousVerificationResponse","resendMessage","setResendMessage","React","email","getSafe","submitForm","logger","VerificationStepsEnum","populateViewModelFromQueryParams","usePollingInterval","resendEmail","response","VerificationApiClient","successMsgObject","maxRetriesMsgObject","message","cancelEmailLoop","nextState","produce","jsxs","jsx","LogoComponent","AnnouncingHeader","FormattedHTMLMessage","EmailLoopPendingComponent","injectIntl"],"mappings":";AAqBA,MAAMA,IAA2B,KAEpBC,IAAmB,CAAC,EAAE,MAAAC,GAAM,qBAAAC,QAAuD;AAC9F,QAAMC,IAAuBD,EAAoB,sBAC3C,EAAE,WAAAE,EAAc,IAAAF,GAChB,EAAE,gBAAAG,EAAmB,IAAAF,GACrB,EAAE,oBAAAG,EAAuB,IAAAH,GACzBI,IAAqBJ,EAAqB,WAC1CK,IAAYN,EAAoB,WAChCO,IACHP,EAAoB,qBAAsD,QACvEQ,IACJR,EAAoB,gCAAgC,QAEhD,CAACS,GAAeC,CAAgB,IAAIC,EAAM,SAAS,EAAE,GACrDC,IAAQC,EAAQ,MAAMN,EAAkB,KAAK,GAE7CO,IAAa,MAAM;AACvB,IAAAC,EAAO,KAAK,wCAAwC,GAChCf,EAAA;AAAA,MAClBgB,EAAsB;AAAA,MACtBV;AAAA,MACAN,EAAoB;AAAA,IAAA;AAAA,EACtB;AAGF,EAAAW,EAAM,UAAU,MAAM;AACpB,IAAAM,EAAiCjB,CAAmB;AAAA,EACtD,GAAG,CAAE,CAAA,GAELW,EAAM,UAAU,MAAM;AACpB,IAAIL,EAAU,cACDQ;EACb,GACC,CAACR,EAAU,UAAU,CAAC,GAEzBY,EAAmB,MAAM;AACH,IAAAlB,EAAA;AAAA,MAClBE;AAAA,MACAC;AAAA,MACAK;AAAA,MACAD;AAAA,MACA;AAAA,IAAA;AAAA,KAEDV,CAAwB;AAErB,Q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,QACH,SAAS,MAAMV,EAAYhB,CAAc;AAAA,QACzC,MAAK;AAAA,QACL,WAAU;AAAA,QACV,cAAW;AAAA,QAEX,UAAC0B,gBAAAA,EAAA,IAAAG,GAAA,EAAqB,IAAG,+BAA8B,gBAAe,WAAU;AAAA,MAAA;AAAA,IAAA,GAEpF;AAAA,IAGDvB,2BACE,OAAI,EAAA,WAAU,uCACb,UAACoB,gBAAAA,EAAA,IAAA,KAAA,EAAG,aAAc,EACpB,CAAA;AAAA,IAGFA,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,qBAAqB,CAAA;AAAA,EACtC,EAAA,CAAA;AAEJ,GAEaI,IAA4BC,EAAWpC,CAAgB;"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.104.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE: Thu May 01 2025
|
6
|
-
* BUILD_COMMIT:
|
3
|
+
* VERSION: 2.104.0-alpha.2
|
4
|
+
* BUILD_TIMESTAMP: 1746142342273
|
5
|
+
* BUILD_DATE: Thu May 01 2025 23:32:22 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 890118c01f0c12b348ca343732208200aed0c6c3
|
7
7
|
*/
|
8
|
-
import { i as g, j as e, F as m,
|
8
|
+
import { i as g, j as e, F as m, a as o, b as f } from "../sheerid.js";
|
9
9
|
const h = ({
|
10
10
|
value: n,
|
11
11
|
isErrored: r,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LicensedProfessionalOrganizationComponent-
|
1
|
+
{"version":3,"file":"LicensedProfessionalOrganizationComponent-BNNNPaDn.js","sources":["../../src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport {\n FormFieldComponentProps,\n VerificationServiceProps,\n Organization,\n} from \"../../../lib/types/types\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const LicensedProfessionalOrganization = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => (\n <FormFieldTypeahead\n fieldId=\"licensed-professional\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"organizationNamePlaceholder\",\n defaultMessage: \"Organization\",\n })\n }\n label={<FormattedHTMLMessage id=\"organization\" defaultMessage=\"Organization\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(verificationService.viewModel, verificationService.programTheme)}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n);\n\nexport const LicensedProfessionalOrganizationComponent = injectIntl(\n LicensedProfessionalOrganization,\n);\n"],"names":["LicensedProfessionalOrganization","value","isErrored","onChange","verificationService","intl","placeholder","disabled","jsx","FormFieldTypeahead","choice","FormattedHTMLMessage","getOrgSearchUrl","LicensedProfessionalOrganizationComponent","injectIntl"],"mappings":";AAUO,MAAMA,IAAmC,CAAC;AAAA,EAC/C,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,MAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,UAAAC,IAAW;AACb,MACEC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,SAAQ;AAAA,IACR,OAAAR;AAAA,IACA,qBAAAG;AAAA,IACA,UAAU,CAACM,MAAyBP,EAASO,CAAM;AAAA,IACnD,aACEJ,KACAD,EAAK,kBAAkB;AAAA,MACrB,IAAI;AAAA,MACJ,gBAAgB;AAAA,IAAA,CACjB;AAAA,IAEH,OAAQG,gBAAAA,EAAA,IAAAG,GAAA,EAAqB,IAAG,gBAAe,gBAAe,gBAAe;AAAA,IAC7E,cACET,KACEM,gBAAAA,EAAA;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH,gBAAe;AAAA,MAAA;AAAA,IACjB;AAAA,IAGJ,cAAcC,EAAgBR,EAAoB,WAAWA,EAAoB,YAAY;AAAA,IAC7F,6BAA6B,CAAC,CAACE;AAAA,IAC/B,UAAAC;AAAA,EAAA;AACF,GAGWM,IAA4CC;AAAA,EACvDd;AACF;"}
|
@@ -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.104.0-alpha.
|
8
|
-
* BUILD_TIMESTAMP:
|
9
|
-
* BUILD_DATE: Thu May 01 2025
|
10
|
-
* BUILD_COMMIT:
|
7
|
+
* VERSION: 2.104.0-alpha.2
|
8
|
+
* BUILD_TIMESTAMP: 1746142396526
|
9
|
+
* BUILD_DATE: Thu May 01 2025 23:33:16 GMT+0000 (Coordinated Universal Time)
|
10
|
+
* BUILD_COMMIT: 890118c01f0c12b348ca343732208200aed0c6c3
|
11
11
|
*/
|
12
|
-
import { i as g, j as e, F as m,
|
12
|
+
import { i as g, j as e, F as m, a as o, b as f } from "../_mysheerid-preview.js";
|
13
13
|
const h = ({
|
14
14
|
value: n,
|
15
15
|
isErrored: r,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LicensedProfessionalOrganizationComponent-
|
1
|
+
{"version":3,"file":"LicensedProfessionalOrganizationComponent-trZr_eIW.js","sources":["../../src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport {\n FormFieldComponentProps,\n VerificationServiceProps,\n Organization,\n} from \"../../../lib/types/types\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const LicensedProfessionalOrganization = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => (\n <FormFieldTypeahead\n fieldId=\"licensed-professional\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"organizationNamePlaceholder\",\n defaultMessage: \"Organization\",\n })\n }\n label={<FormattedHTMLMessage id=\"organization\" defaultMessage=\"Organization\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(verificationService.viewModel, verificationService.programTheme)}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n);\n\nexport const LicensedProfessionalOrganizationComponent = injectIntl(\n LicensedProfessionalOrganization,\n);\n"],"names":["LicensedProfessionalOrganization","value","isErrored","onChange","verificationService","intl","placeholder","disabled","jsx","FormFieldTypeahead","choice","FormattedHTMLMessage","getOrgSearchUrl","LicensedProfessionalOrganizationComponent","injectIntl"],"mappings":";AAUO,MAAMA,IAAmC,CAAC;AAAA,EAC/C,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,MAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,UAAAC,IAAW;AACb,MACEC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,SAAQ;AAAA,IACR,OAAAR;AAAA,IACA,qBAAAG;AAAA,IACA,UAAU,CAACM,MAAyBP,EAASO,CAAM;AAAA,IACnD,aACEJ,KACAD,EAAK,kBAAkB;AAAA,MACrB,IAAI;AAAA,MACJ,gBAAgB;AAAA,IAAA,CACjB;AAAA,IAEH,OAAQG,gBAAAA,EAAA,IAAAG,GAAA,EAAqB,IAAG,gBAAe,gBAAe,gBAAe;AAAA,IAC7E,cACET,KACEM,gBAAAA,EAAA;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH,gBAAe;AAAA,MAAA;AAAA,IACjB;AAAA,IAGJ,cAAcC,EAAgBR,EAAoB,WAAWA,EAAoB,YAAY;AAAA,IAC7F,6BAA6B,CAAC,CAACE;AAAA,IAC/B,UAAAC;AAAA,EAAA;AACF,GAGWM,IAA4CC;AAAA,EACvDd;AACF;"}
|
@@ -4,30 +4,30 @@
|
|
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.104.0-alpha.
|
8
|
-
* BUILD_TIMESTAMP:
|
9
|
-
* BUILD_DATE: Thu May 01 2025
|
10
|
-
* BUILD_COMMIT:
|
7
|
+
* VERSION: 2.104.0-alpha.2
|
8
|
+
* BUILD_TIMESTAMP: 1746142396526
|
9
|
+
* BUILD_DATE: Thu May 01 2025 23:33:16 GMT+0000 (Coordinated Universal Time)
|
10
|
+
* BUILD_COMMIT: 890118c01f0c12b348ca343732208200aed0c6c3
|
11
11
|
*/
|
12
|
-
var a = Object.defineProperty, l = (
|
12
|
+
var a = Object.defineProperty, l = (t, e, n) => e in t ? a(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, i = (t, e, n) => (l(t, typeof e != "symbol" ? e + "" : e, n), n);
|
13
13
|
class d {
|
14
14
|
constructor() {
|
15
15
|
this.eventListener = {};
|
16
16
|
}
|
17
|
-
addEventListener(e,
|
18
|
-
return this.eventListener[e] = this.eventListener[e] || [], this.eventListener[e].push(
|
17
|
+
addEventListener(e, n) {
|
18
|
+
return this.eventListener[e] = this.eventListener[e] || [], this.eventListener[e].push(n), this;
|
19
19
|
}
|
20
|
-
removeEventListener(e,
|
20
|
+
removeEventListener(e, n) {
|
21
21
|
const r = this.eventListener[e];
|
22
22
|
if (r) {
|
23
23
|
let s;
|
24
|
-
for (; (s = r.indexOf(
|
24
|
+
for (; (s = r.indexOf(n)) !== -1; )
|
25
25
|
r.splice(s, 1);
|
26
26
|
}
|
27
27
|
}
|
28
|
-
trigger(e,
|
28
|
+
trigger(e, n) {
|
29
29
|
(this.eventListener[e] || []).forEach((r) => {
|
30
|
-
r == null || r(
|
30
|
+
r == null || r(n);
|
31
31
|
});
|
32
32
|
}
|
33
33
|
}
|
@@ -37,17 +37,17 @@ class v extends d {
|
|
37
37
|
super(...arguments), i(this, "_handle"), i(this, "_handleSetCallbacks", []);
|
38
38
|
}
|
39
39
|
_setHandle(e) {
|
40
|
-
this._handle = e, this._handleSetCallbacks.forEach((
|
41
|
-
e.addEventListener(
|
40
|
+
this._handle = e, this._handleSetCallbacks.forEach((n) => n(e)), this._handleSetCallbacks = [], Object.entries(this.eventListener).forEach(([n, r]) => {
|
41
|
+
e.addEventListener(n, r);
|
42
42
|
}), this.eventListener = {};
|
43
43
|
}
|
44
|
-
addEventListener(e,
|
45
|
-
return this._handle ? (this._handle.addEventListener(e,
|
44
|
+
addEventListener(e, n) {
|
45
|
+
return this._handle ? (this._handle.addEventListener(e, n), this) : super.addEventListener(e, n);
|
46
46
|
}
|
47
|
-
removeEventListener(e,
|
47
|
+
removeEventListener(e, n) {
|
48
48
|
if (this._handle)
|
49
|
-
return this._handle.removeEventListener(e,
|
50
|
-
super.removeEventListener(e,
|
49
|
+
return this._handle.removeEventListener(e, n), this;
|
50
|
+
super.removeEventListener(e, n);
|
51
51
|
}
|
52
52
|
async tearDown() {
|
53
53
|
var e;
|
@@ -63,26 +63,26 @@ class v extends d {
|
|
63
63
|
return (e = this._handle) == null ? void 0 : e.version;
|
64
64
|
}
|
65
65
|
}
|
66
|
-
const c = (
|
67
|
-
init(
|
66
|
+
const c = (t) => `v${(t || h).replace(/^v/, "")}`, o = {
|
67
|
+
init(t) {
|
68
68
|
const e = new v();
|
69
69
|
return import(
|
70
70
|
/* webpackIgnore: true */
|
71
71
|
/* @vite-ignore */
|
72
|
-
|
73
|
-
).then((
|
74
|
-
const { Onfido: r } =
|
75
|
-
e._setHandle(r.init(
|
76
|
-
}).catch((
|
72
|
+
t.sdkUrl || `https://sdk.onfido.com/${c(t.version)}/Onfido.js`
|
73
|
+
).then((n) => {
|
74
|
+
const { Onfido: r } = n;
|
75
|
+
e._setHandle(r.init(t));
|
76
|
+
}).catch((n) => {
|
77
77
|
var r;
|
78
|
-
e.trigger("error", { error:
|
78
|
+
e.trigger("error", { error: n }), (r = t.onError) == null || r.call(t, n);
|
79
79
|
}), e;
|
80
80
|
}
|
81
81
|
};
|
82
82
|
Object.defineProperty(o, "environment", {
|
83
83
|
get: () => window == null ? void 0 : window.Onfido.environment,
|
84
|
-
set: (
|
85
|
-
window.Onfido = window.Onfido || {}, window.Onfido.environment =
|
84
|
+
set: (t) => {
|
85
|
+
window.Onfido = window.Onfido || {}, window.Onfido.environment = t;
|
86
86
|
}
|
87
87
|
});
|
88
88
|
const u = o;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Onfido-
|
1
|
+
{"version":3,"file":"Onfido-CMH3IUna.js","sources":["../../node_modules/onfido-sdk-ui/Onfido.js"],"sourcesContent":["var d = Object.defineProperty;\nvar h = (i, t, e) => t in i ? d(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;\nvar r = (i, t, e) => (h(i, typeof t != \"symbol\" ? t + \"\" : t, e), e);\nclass l {\n constructor() {\n this.eventListener = {};\n }\n addEventListener(t, e) {\n return this.eventListener[t] = this.eventListener[t] || [], this.eventListener[t].push(e), this;\n }\n removeEventListener(t, e) {\n const n = this.eventListener[t];\n if (n) {\n let s;\n for (; (s = n.indexOf(e)) !== -1; )\n n.splice(s, 1);\n }\n }\n trigger(t, e) {\n (this.eventListener[t] || []).forEach((n) => {\n n == null || n(e);\n });\n }\n}\nconst v = \"v14\";\nclass c extends l {\n constructor() {\n super(...arguments);\n r(this, \"_handle\");\n r(this, \"_handleSetCallbacks\", []);\n }\n _setHandle(e) {\n this._handle = e, this._handleSetCallbacks.forEach((n) => n(e)), this._handleSetCallbacks = [], Object.entries(this.eventListener).forEach(([n, s]) => {\n e.addEventListener(n, s);\n }), this.eventListener = {};\n }\n addEventListener(e, n) {\n return this._handle ? (this._handle.addEventListener(e, n), this) : super.addEventListener(e, n);\n }\n removeEventListener(e, n) {\n if (this._handle)\n return this._handle.removeEventListener(e, n), this;\n super.removeEventListener(e, n);\n }\n async tearDown() {\n var e;\n if (this._handle)\n await ((e = this._handle) == null ? void 0 : e.tearDown());\n else\n return this._handleSetCallbacks.push(() => {\n this.tearDown();\n }), Promise.resolve();\n }\n get version() {\n var e;\n return (e = this._handle) == null ? void 0 : e.version;\n }\n}\nconst a = (i) => `v${(i || v).replace(/^v/, \"\")}`, o = {\n init(i) {\n const t = new c();\n return import(/* webpackIgnore: true */ /* @vite-ignore */ i.sdkUrl || `https://sdk.onfido.com/${a(i.version)}/Onfido.js`).then((n) => {\n const { Onfido: s } = n;\n t._setHandle(s.init(i));\n }).catch((n) => {\n var s;\n t.trigger(\"error\", { error: n }), (s = i.onError) == null || s.call(i, n);\n }), t;\n }\n};\nObject.defineProperty(o, \"environment\", {\n get: () => window == null ? void 0 : window.Onfido.environment,\n set: (i) => {\n window.Onfido = window.Onfido || {}, window.Onfido.environment = i;\n }\n});\nconst L = o;\nexport {\n L as Onfido,\n a as prefixVersion\n};\n"],"names":["d","h","i","t","e","r","l","n","v","c","s","a","L"],"mappings":"AAAA,IAAIA,IAAI,OAAO,gBACXC,IAAI,CAACC,GAAGC,GAAGC,MAAMD,KAAKD,IAAIF,EAAEE,GAAGC,GAAG,EAAE,YAAY,IAAI,cAAc,IAAI,UAAU,IAAI,OAAOC,EAAC,CAAE,IAAIF,EAAEC,CAAC,IAAIC,GACzGC,IAAI,CA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AcA;AAAA,EAClE;AACH,CAAC;AACI,MAACU,IAAI;","x_google_ignoreList":[0]}
|
@@ -1,12 +1,11 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.104.0-alpha.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE: Thu May 01 2025
|
6
|
-
* BUILD_COMMIT:
|
3
|
+
* VERSION: 2.104.0-alpha.2
|
4
|
+
* BUILD_TIMESTAMP: 1746142342273
|
5
|
+
* BUILD_DATE: Thu May 01 2025 23:32:22 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 890118c01f0c12b348ca343732208200aed0c6c3
|
7
7
|
*/
|
8
|
-
import { j as e,
|
9
|
-
import { S as k } from "./index-BIn_Jf1h.js";
|
8
|
+
import { j as e, k as h, a1 as o, d as n, a2 as m, a as t, R as r, a3 as u, A as f, l as k, V as g } from "../sheerid.js";
|
10
9
|
const x = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(h, { verificationService: s, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
11
10
|
/* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(
|
12
11
|
o,
|
@@ -136,7 +135,7 @@ const x = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(h, { verificatio
|
|
136
135
|
})), i.map((a, c) => {
|
137
136
|
const { title: d, subtitle: l, icon: p } = a();
|
138
137
|
return /* @__PURE__ */ e.jsx(
|
139
|
-
|
138
|
+
m,
|
140
139
|
{
|
141
140
|
title: d,
|
142
141
|
subtitle: l,
|
@@ -146,9 +145,9 @@ const x = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(h, { verificatio
|
|
146
145
|
d.toString()
|
147
146
|
);
|
148
147
|
});
|
149
|
-
},
|
148
|
+
}, C = ({ verificationService: s }) => {
|
150
149
|
const i = s.verificationResponse, [a, c] = r.useState(!1), d = () => {
|
151
|
-
|
150
|
+
k.info("StepIDCheckLoop initiating ID Check Loop"), s.submitStep(
|
152
151
|
g.idCheckLoop,
|
153
152
|
s.viewModel,
|
154
153
|
s.verificationResponse
|
@@ -157,10 +156,10 @@ const x = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(h, { verificatio
|
|
157
156
|
return r.useEffect(() => {
|
158
157
|
i && i.sdkToken && c(!0);
|
159
158
|
}, [i]), /* @__PURE__ */ e.jsxs("div", { id: "sid-step-id-check-loop", className: "sid-l-container", children: [
|
160
|
-
a && /* @__PURE__ */ e.jsx("div", { className: "sid-l-space-btm-lg", children: /* @__PURE__ */ e.jsx("div", { role: "main", children: /* @__PURE__ */ e.jsx(
|
159
|
+
a && /* @__PURE__ */ e.jsx("div", { className: "sid-l-space-btm-lg", children: /* @__PURE__ */ e.jsx("div", { role: "main", children: /* @__PURE__ */ e.jsx(u, { verificationService: s }) }) }),
|
161
160
|
!a && /* @__PURE__ */ e.jsxs("div", { children: [
|
162
161
|
/* @__PURE__ */ e.jsxs("div", { role: "main", children: [
|
163
|
-
/* @__PURE__ */ e.jsx(
|
162
|
+
/* @__PURE__ */ e.jsx(f, { align: "center", children: /* @__PURE__ */ e.jsx(
|
164
163
|
t,
|
165
164
|
{
|
166
165
|
id: "step.idCheckLoop.title",
|
@@ -192,5 +191,5 @@ const x = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(h, { verificatio
|
|
192
191
|
] });
|
193
192
|
};
|
194
193
|
export {
|
195
|
-
|
194
|
+
C as default
|
196
195
|
};
|