@sheerid/jslib-nightly 2.103.0-alpha.1 → 2.104.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__tests__/__helpers__/renderers.d.ts +5 -5
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +16418 -17936
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{EmailLoopPending-Cp3dQjbH.js → EmailLoopPending-D-O7IRrU.js} +17 -17
- package/chunk/{EmailLoopPending-Cp3dQjbH.js.map → EmailLoopPending-D-O7IRrU.js.map} +1 -1
- package/chunk/{EmailLoopPending-WTPkkJsm.js → EmailLoopPending-DmENoLpP.js} +17 -17
- package/chunk/{EmailLoopPending-WTPkkJsm.js.map → EmailLoopPending-DmENoLpP.js.map} +1 -1
- package/chunk/LicensedProfessionalOrganizationComponent-BrW9osPt.js +55 -0
- package/chunk/LicensedProfessionalOrganizationComponent-BrW9osPt.js.map +1 -0
- package/chunk/LicensedProfessionalOrganizationComponent-Cu6a9uBs.js +51 -0
- package/chunk/LicensedProfessionalOrganizationComponent-Cu6a9uBs.js.map +1 -0
- 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-Dbk23JEP.js → StepIDCheckLoopOnfido-BRtMQNQl.js} +12 -13
- package/chunk/{StepIDCheckLoopOnfido-DbTm06es.js.map → StepIDCheckLoopOnfido-BRtMQNQl.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DbTm06es.js → StepIDCheckLoopOnfido-mZhLONqq.js} +12 -13
- package/chunk/{StepIDCheckLoopOnfido-Dbk23JEP.js.map → StepIDCheckLoopOnfido-mZhLONqq.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-CeadrU2e.js → StepIDCheckLoopRegula-1wd-jJGJ.js} +85 -58
- package/chunk/StepIDCheckLoopRegula-1wd-jJGJ.js.map +1 -0
- package/chunk/{StepIDCheckLoopRegula-B7RS9_LL.js → StepIDCheckLoopRegula-jyg1vIi3.js} +85 -58
- package/chunk/StepIDCheckLoopRegula-jyg1vIi3.js.map +1 -0
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.js → StepInactiveMilitaryPersonalInfoComponent-CmQGKlal.js} +52 -52
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js.map → StepInactiveMilitaryPersonalInfoComponent-CmQGKlal.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js → StepInactiveMilitaryPersonalInfoComponent-Qfl3ZvB1.js} +52 -52
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.js.map → StepInactiveMilitaryPersonalInfoComponent-Qfl3ZvB1.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-Dl7QItmr.js → index-1tM2UWke.js} +56 -48
- package/chunk/{index-Dl7QItmr.js.map → index-1tM2UWke.js.map} +1 -1
- package/chunk/{index-XXxK9rgV.js → index-25aIMfhs.js} +87 -86
- package/chunk/index-25aIMfhs.js.map +1 -0
- package/chunk/{index-BOpxl8V9.js → index-2tpdu0Sm.js} +28 -28
- package/chunk/{index-BOpxl8V9.js.map → index-2tpdu0Sm.js.map} +1 -1
- package/chunk/{index-CaSKZsTY.js → index-BJxmlJd1.js} +15 -15
- package/chunk/{index-CaSKZsTY.js.map → index-BJxmlJd1.js.map} +1 -1
- package/chunk/{index-4APDQFqJ.js → index-BSXBGGOf.js} +10 -10
- package/{lib/index-BHwYKmBe.js.map → chunk/index-BSXBGGOf.js.map} +1 -1
- package/chunk/index-B_CvWvhW.js +27 -0
- package/chunk/index-B_CvWvhW.js.map +1 -0
- package/chunk/{index-DFQ4PjGJ.js → index-BgB4HxER.js} +58 -58
- package/chunk/{index-CtqWr1aK.js.map → index-BgB4HxER.js.map} +1 -1
- package/chunk/{index-RmF57u5_.js → index-BjWeyRVL.js} +43 -43
- package/chunk/{index-C0jDbJPp.js.map → index-BjWeyRVL.js.map} +1 -1
- package/chunk/{index-qAxcloBs.js → index-BmJ3aubI.js} +11 -11
- package/chunk/{index-qAxcloBs.js.map → index-BmJ3aubI.js.map} +1 -1
- package/chunk/{index-CtqWr1aK.js → index-BrVZpRb7.js} +58 -58
- package/chunk/{index-DFQ4PjGJ.js.map → index-BrVZpRb7.js.map} +1 -1
- package/chunk/index-Bv_0MGCt.js +31 -0
- package/chunk/index-Bv_0MGCt.js.map +1 -0
- package/chunk/{index-aKTpkBwz.js → index-C3tQa9xA.js} +56 -48
- package/chunk/{index-aKTpkBwz.js.map → index-C3tQa9xA.js.map} +1 -1
- package/chunk/{index-C0jDbJPp.js → index-C6cgSdQ9.js} +43 -43
- package/chunk/{index-RmF57u5_.js.map → index-C6cgSdQ9.js.map} +1 -1
- package/chunk/{index-D3dphMnl.js → index-CEidf7uT.js} +15 -15
- package/{lib/index-Sytmygw_.js.map → chunk/index-CEidf7uT.js.map} +1 -1
- package/chunk/{index-BhkJfnda.js → index-CGKKTwvx.js} +15 -15
- package/chunk/{index-BDw8efPp.js.map → index-CGKKTwvx.js.map} +1 -1
- package/chunk/{index-BtYzUCrC.js → index-Cb7GlxEu.js} +11 -11
- package/chunk/{index-BtYzUCrC.js.map → index-Cb7GlxEu.js.map} +1 -1
- package/chunk/{index-DPEoeYI6.js → index-Cq8qB8GK.js} +44 -44
- package/chunk/{index-CgSW4Vzh.js.map → index-Cq8qB8GK.js.map} +1 -1
- package/chunk/{index-B30_E6pJ.js → index-D1j4nnQa.js} +31 -31
- package/chunk/{index-B30_E6pJ.js.map → index-D1j4nnQa.js.map} +1 -1
- package/chunk/{index-DB9SisGK.js → index-D6Gez9pU.js} +21 -21
- package/chunk/{index-DB9SisGK.js.map → index-D6Gez9pU.js.map} +1 -1
- package/chunk/{index-BGCnajPS.js → index-D6RaCifq.js} +30 -30
- package/chunk/{index-BFMTiaJv.js.map → index-D6RaCifq.js.map} +1 -1
- package/chunk/{index-NjSUlAP4.js → index-D8z4eipH.js} +53 -53
- package/chunk/{index-oMg5zy_2.js.map → index-D8z4eipH.js.map} +1 -1
- package/chunk/{index-C9bZ7enn.js → index-DFjiwKs3.js} +7 -7
- package/chunk/{index-2QV6VPA3.js.map → index-DFjiwKs3.js.map} +1 -1
- package/chunk/index-DIkWpujR.js +4 -4
- package/chunk/index-DIkWpujR.js.map +1 -1
- package/chunk/{index-BDw8efPp.js → index-DJReh58z.js} +15 -15
- package/chunk/{index-BhkJfnda.js.map → index-DJReh58z.js.map} +1 -1
- package/chunk/{index-DWjrZunN.js → index-DPLvpl1z.js} +10 -10
- package/chunk/{index-4APDQFqJ.js.map → index-DPLvpl1z.js.map} +1 -1
- package/chunk/{index-DZsw9-0u.js → index-DR_Yi6nm.js} +237 -219
- package/chunk/index-DR_Yi6nm.js.map +1 -0
- package/chunk/{index-_ohn63ug.js → index-DZ0bnNgg.js} +31 -31
- package/chunk/{index-_ohn63ug.js.map → index-DZ0bnNgg.js.map} +1 -1
- package/chunk/{index-B3NA0DdP.js → index-D_lbJwrN.js} +87 -86
- package/chunk/index-D_lbJwrN.js.map +1 -0
- package/chunk/{index-MRhfTdmm.js → index-DyHhX3QL.js} +21 -21
- package/chunk/{index-MRhfTdmm.js.map → index-DyHhX3QL.js.map} +1 -1
- package/chunk/{index-CgSW4Vzh.js → index-F-HVkQz5.js} +44 -44
- package/{lib/index-Cn53lF5X.js.map → chunk/index-F-HVkQz5.js.map} +1 -1
- package/chunk/{index-D7dDB9pN.js → index-GaKINs6g.js} +23 -23
- package/chunk/{index-DIV55Je2.js.map → index-GaKINs6g.js.map} +1 -1
- package/{lib/index-S3ZpXPMJ.js → chunk/index-IntP52Fm.js} +22 -23
- package/chunk/{index-BGCnajPS.js.map → index-IntP52Fm.js.map} +1 -1
- package/chunk/{index-DIV55Je2.js → index-i9-QlgZ0.js} +23 -23
- package/chunk/{index-D7dDB9pN.js.map → index-i9-QlgZ0.js.map} +1 -1
- package/chunk/{index-tFgJS6bB.js → index-n6-LNqUp.js} +23 -23
- package/chunk/{index-tFgJS6bB.js.map → index-n6-LNqUp.js.map} +1 -1
- package/chunk/{index-2QV6VPA3.js → index-rjS-77t0.js} +7 -7
- package/chunk/{index-C9bZ7enn.js.map → index-rjS-77t0.js.map} +1 -1
- package/chunk/{index-BPEB_HHW.js → index-vIL1gjSk.js} +237 -219
- package/chunk/index-vIL1gjSk.js.map +1 -0
- package/chunk/{index-CgBENXRP.js → index-whConjrR.js} +23 -23
- package/{lib/index-BcE9NN84.js.map → chunk/index-whConjrR.js.map} +1 -1
- package/chunk/{index-DtoxnCtM.js → index-y-QcpyIc.js} +28 -28
- package/{lib/index-DQvdYpIH.js.map → chunk/index-y-QcpyIc.js.map} +1 -1
- package/chunk/{index-oMg5zy_2.js → index-ygMzyxW9.js} +53 -53
- package/chunk/{index-NjSUlAP4.js.map → index-ygMzyxW9.js.map} +1 -1
- 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-CumMd2sJ.js} +11 -11
- package/chunk/{useCollectFieldsEndpoint-BsY8WlOg.js.map → useCollectFieldsEndpoint-CumMd2sJ.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DeICm6Vb.js → useCollectFieldsEndpoint-V5bz5WAF.js} +11 -11
- package/chunk/{useCollectFieldsEndpoint-DeICm6Vb.js.map → useCollectFieldsEndpoint-V5bz5WAF.js.map} +1 -1
- package/chunk/{useEmailFirstExperiment-3uKuefem.js → useEmailFirstExperiment-CV5nAxtl.js} +30 -29
- package/chunk/{useEmailFirstExperiment-3uKuefem.js.map → useEmailFirstExperiment-CV5nAxtl.js.map} +1 -1
- package/chunk/{useEmailFirstExperiment-B1_E_D0z.js → useEmailFirstExperiment-mjdDc7vk.js} +30 -29
- package/chunk/{useEmailFirstExperiment-B1_E_D0z.js.map → useEmailFirstExperiment-mjdDc7vk.js.map} +1 -1
- package/chunk/vi-BOR2GuRI.js +4 -4
- package/chunk/zh-HK-BI-IHOGG.js +4 -4
- package/chunk/zh-eoMG5RFC.js +4 -4
- package/chunk/zu-D_A8wcJW.js +4 -4
- package/dev/programIds.d.ts +1 -1
- package/es6.css +4 -4
- package/jslib.js +25 -25
- package/lib/{EmailLoopPending-BWEJteWf.js → EmailLoopPending-DUy2k56y.js} +14 -14
- package/lib/{EmailLoopPending-BWEJteWf.js.map → EmailLoopPending-DUy2k56y.js.map} +1 -1
- package/lib/LicensedProfessionalOrganizationComponent-BPtxmkjH.js +52 -0
- package/lib/LicensedProfessionalOrganizationComponent-BPtxmkjH.js.map +1 -0
- 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-u1rI8N4t.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent-B6FWsKVT.js.map → StepCollectMilitaryStatusComponent-u1rI8N4t.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-BoYu03qf.js → StepIDCheckLoopOnfido-DirszrOR.js} +19 -19
- package/lib/{StepIDCheckLoopOnfido-BoYu03qf.js.map → StepIDCheckLoopOnfido-DirszrOR.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-CleO2AvI.js → StepIDCheckLoopRegula-DoIQP1h2.js} +5 -5
- package/lib/{StepIDCheckLoopRegula-CleO2AvI.js.map → StepIDCheckLoopRegula-DoIQP1h2.js.map} +1 -1
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-CwHB55DG.js → StepInactiveMilitaryPersonalInfoComponent-uX6OkV0d.js} +52 -52
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-CwHB55DG.js.map → StepInactiveMilitaryPersonalInfoComponent-uX6OkV0d.js.map} +1 -1
- package/lib/VerificationApiUtils-DXDQAg5m.js +21 -0
- package/lib/VerificationApiUtils-DXDQAg5m.js.map +1 -0
- 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-DS7nD0gX.js +26840 -0
- package/lib/es6-DS7nD0gX.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-DpFFsGey.js → index--qLF6ZOW.js} +76 -75
- package/lib/index--qLF6ZOW.js.map +1 -0
- package/lib/index-0NkCv3Y-.js +11 -0
- package/lib/index-0NkCv3Y-.js.map +1 -0
- package/lib/{index-DQvdYpIH.js → index-9ka8yNRo.js} +23 -23
- package/{chunk/index-DtoxnCtM.js.map → lib/index-9ka8yNRo.js.map} +1 -1
- package/lib/{index-D0D7HAPn.js → index-AWpSRRq3.js} +60 -60
- package/lib/{index-D0D7HAPn.js.map → index-AWpSRRq3.js.map} +1 -1
- package/lib/index-B9dEWYQH.js +11 -0
- package/lib/index-B9dEWYQH.js.map +1 -0
- package/lib/{index-BcE9NN84.js → index-BAFdbWcI.js} +32 -32
- package/{chunk/index-CgBENXRP.js.map → lib/index-BAFdbWcI.js.map} +1 -1
- package/lib/index-BY6Xy81u.js +11 -0
- package/lib/index-BY6Xy81u.js.map +1 -0
- package/lib/{index-CRYZY6vI.js → index-C1JFiqbD.js} +24 -24
- package/lib/{index-CRYZY6vI.js.map → index-C1JFiqbD.js.map} +1 -1
- package/lib/index-C3Iqch6i.js +11 -0
- package/lib/index-C3Iqch6i.js.map +1 -0
- package/lib/{index-CBDyLXYG.js → index-CCflTrqh.js} +52 -52
- package/lib/{index-CBDyLXYG.js.map → index-CCflTrqh.js.map} +1 -1
- package/lib/{index-VNMhK7yn.js → index-CJfYYEay.js} +7 -7
- package/lib/{index-VNMhK7yn.js.map → index-CJfYYEay.js.map} +1 -1
- package/lib/{index-Cn53lF5X.js → index-CLj9YCrn.js} +27 -27
- package/{chunk/index-DPEoeYI6.js.map → lib/index-CLj9YCrn.js.map} +1 -1
- package/lib/{index-CBifWEeV.js → index-CY10ElCy.js} +402 -385
- package/lib/index-CY10ElCy.js.map +1 -0
- package/lib/{index-3SRQvj39.js → index-CgJWGuRF.js} +26 -26
- package/lib/{index-3SRQvj39.js.map → index-CgJWGuRF.js.map} +1 -1
- package/lib/{index-BxVqnD-7.js → index-CkW6g9oh.js} +23 -23
- package/lib/{index-BxVqnD-7.js.map → index-CkW6g9oh.js.map} +1 -1
- package/lib/{index-eOSlGhXP.js → index-CwqfypY1.js} +5 -5
- package/lib/{index-eOSlGhXP.js.map → index-CwqfypY1.js.map} +1 -1
- package/{chunk/index-BFMTiaJv.js → lib/index-CyiYceqn.js} +33 -32
- package/lib/{index-S3ZpXPMJ.js.map → index-CyiYceqn.js.map} +1 -1
- package/lib/{index-BHwYKmBe.js → index-D-0wY68l.js} +10 -10
- package/{chunk/index-DWjrZunN.js.map → lib/index-D-0wY68l.js.map} +1 -1
- package/lib/{index-BJBWT9wa.js → index-DEYBhR7F.js} +25 -25
- package/lib/{index-BJBWT9wa.js.map → index-DEYBhR7F.js.map} +1 -1
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/index-DIkWpujR.js.map +1 -1
- package/lib/index-Da2aS2uY.js +28 -0
- package/lib/{index-B8_50Him.js.map → index-Da2aS2uY.js.map} +1 -1
- package/lib/{index-Sytmygw_.js → index-DcOpzG-K.js} +5 -5
- package/{chunk/index-D3dphMnl.js.map → lib/index-DcOpzG-K.js.map} +1 -1
- package/lib/{index-CTem-Vg8.js → index-VC3WFrsr.js} +9 -9
- package/lib/{index-CTem-Vg8.js.map → index-VC3WFrsr.js.map} +1 -1
- package/lib/{index-CrV2nMoq.js → index-uCUcf8WW.js} +5 -5
- package/lib/{index-CrV2nMoq.js.map → index-uCUcf8WW.js.map} +1 -1
- 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-CAKKawmD.js → useCollectFieldsEndpoint-DhvzoNQ8.js} +8 -8
- package/lib/{useCollectFieldsEndpoint-CAKKawmD.js.map → useCollectFieldsEndpoint-DhvzoNQ8.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-vO9rcSms.js → useEmailFirstExperiment-r3ZPOBWV.js} +7 -6
- package/lib/{useEmailFirstExperiment-vO9rcSms.js.map → useEmailFirstExperiment-r3ZPOBWV.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 +16514 -18032
- 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 +8 -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/LicensedProfessionalOrganizationComponent-D7gWh3Qx.js +0 -45
- package/chunk/LicensedProfessionalOrganizationComponent-D7gWh3Qx.js.map +0 -1
- package/chunk/LicensedProfessionalOrganizationComponent-LYrmpWss.js +0 -49
- package/chunk/LicensedProfessionalOrganizationComponent-LYrmpWss.js.map +0 -1
- package/chunk/StepIDCheckLoopRegula-B7RS9_LL.js.map +0 -1
- package/chunk/StepIDCheckLoopRegula-CeadrU2e.js.map +0 -1
- package/chunk/index-B2aeWDCT.js +0 -48
- package/chunk/index-B2aeWDCT.js.map +0 -1
- package/chunk/index-B3NA0DdP.js.map +0 -1
- package/chunk/index-BPEB_HHW.js.map +0 -1
- package/chunk/index-BqmbVto7.js +0 -52
- package/chunk/index-BqmbVto7.js.map +0 -1
- package/chunk/index-DZsw9-0u.js.map +0 -1
- package/chunk/index-XXxK9rgV.js.map +0 -1
- package/lib/LicensedProfessionalOrganizationComponent-8Fz7VzpC.js +0 -46
- package/lib/LicensedProfessionalOrganizationComponent-8Fz7VzpC.js.map +0 -1
- package/lib/StepCollectMilitaryStatusComponent-B6FWsKVT.js +0 -11
- package/lib/VerificationApiUtils-xT8neNEB.js +0 -24
- package/lib/VerificationApiUtils-xT8neNEB.js.map +0 -1
- package/lib/es6-B4C99nr_.js +0 -27974
- package/lib/es6-B4C99nr_.js.map +0 -1
- package/lib/index-B8_50Him.js +0 -28
- package/lib/index-CBifWEeV.js.map +0 -1
- package/lib/index-CTWjUdXx.js +0 -11
- package/lib/index-CTWjUdXx.js.map +0 -1
- package/lib/index-CiuvIMbL.js +0 -11
- package/lib/index-CiuvIMbL.js.map +0 -1
- package/lib/index-DZB3KVgZ.js +0 -11
- package/lib/index-DZB3KVgZ.js.map +0 -1
- package/lib/index-DpFFsGey.js.map +0 -1
- package/lib/index-XBfOIml7.js +0 -11
- package/lib/index-XBfOIml7.js.map +0 -1
@@ -1,34 +1,34 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE: Thu May 01 2025
|
6
|
-
* BUILD_COMMIT:
|
3
|
+
* VERSION: 2.104.0-alpha.0
|
4
|
+
* BUILD_TIMESTAMP: 1746122030388
|
5
|
+
* BUILD_DATE: Thu May 01 2025 17:53:50 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 11de903d86267c3dbd7e05948a323fa12b63d0ec
|
7
7
|
*/
|
8
|
-
import {
|
8
|
+
import { R as n, e as _, s as C, t as w, j as e, o as y, A as V, b as a, i as v, l as g, V as h, v as A, w 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: b } = t, x = t.cancelUrl, i = s.viewModel, m = s.previousViewModel || void 0, L = 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
|
+
L,
|
26
26
|
m,
|
27
27
|
!1
|
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",
|
@@ -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
|
+
b && /* @__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,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,EAAS,WAAW,MAChBrB,EAAK,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A,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-D-O7IRrU.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,QAAAsB,IAAc,OAAOhB,MA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hB,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,35 +4,35 @@
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
5
5
|
*/
|
6
6
|
/**
|
7
|
-
* VERSION: 2.
|
8
|
-
* BUILD_TIMESTAMP:
|
9
|
-
* BUILD_DATE: Thu May 01 2025
|
10
|
-
* BUILD_COMMIT:
|
7
|
+
* VERSION: 2.104.0-alpha.0
|
8
|
+
* BUILD_TIMESTAMP: 1746122131368
|
9
|
+
* BUILD_DATE: Thu May 01 2025 17:55:31 GMT+0000 (Coordinated Universal Time)
|
10
|
+
* BUILD_COMMIT: 11de903d86267c3dbd7e05948a323fa12b63d0ec
|
11
11
|
*/
|
12
|
-
import {
|
12
|
+
import { R as n, e as _, s as C, t as w, j as e, o as y, A as V, b as a, i as v, l as g, V as h, v as A, w 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: b } = t, x = t.cancelUrl, i = s.viewModel, m = s.previousViewModel || void 0, L = 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
|
+
L,
|
30
30
|
m,
|
31
31
|
!1
|
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",
|
@@ -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
|
+
b && /* @__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,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;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAS,MAAMJ,EAAgB;AAAA,UAC/B,WAAU;AAAA,UAEV,UAACI,gBAAAA,EAAA,IAAAG,GAAA,EAAqB,IAAG,+BAA8B,gBAAe,OAAO,CAAA;AAAA,QAAA;AAAA,MAC/E;AAAA,MAAS;AAAA,MAERH,gBAAAA,EAAA,IAAAG,GAAA,EAAqB,IAAG,6BAA4B,gBAAe,eAAe,CAAA;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,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-DmENoLpP.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,oBA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A;AAAA,IAAA,GAEnB;AAAA,IAEC3B,KACCuB,gBAAAA,EAAA,KAAC,OAAI,EAAA,WAAU,qCACb,UAAA;AAAA,MAAAC,gBAAAA,EAAA;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,QAAA;AAAA,MACjB;AAAA,MAAE;AAAA,MAEFH,gBAAAA,EAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAS,MAAMJ,EAAgB;AAAA,UAC/B,WAAU;AAAA,UAEV,UAACI,gBAAAA,EAAA,IAAAG,GAAA,EAAqB,IAAG,+BAA8B,gBAAe,QAAO;AAAA,QAAA;AAAA,MAC/E;AAAA,MAAS;AAAA,MAERH,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;"}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* WARNING: This file is intended to be used within MySheerID.
|
4
|
+
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
5
|
+
*/
|
6
|
+
/**
|
7
|
+
* VERSION: 2.104.0-alpha.0
|
8
|
+
* BUILD_TIMESTAMP: 1746122131368
|
9
|
+
* BUILD_DATE: Thu May 01 2025 17:55:31 GMT+0000 (Coordinated Universal Time)
|
10
|
+
* BUILD_COMMIT: 11de903d86267c3dbd7e05948a323fa12b63d0ec
|
11
|
+
*/
|
12
|
+
import { i as m, a as f, j as a, F as h, b as i, c } from "../_mysheerid-preview.js";
|
13
|
+
const u = ({
|
14
|
+
value: o,
|
15
|
+
isErrored: r,
|
16
|
+
onChange: d,
|
17
|
+
verificationService: e,
|
18
|
+
intl: t,
|
19
|
+
placeholder: s = "",
|
20
|
+
disabled: l = !1
|
21
|
+
}) => {
|
22
|
+
var n;
|
23
|
+
return ((n = f("organization")) == null ? void 0 : n.hidden) ? null : /* @__PURE__ */ a.jsx(
|
24
|
+
h,
|
25
|
+
{
|
26
|
+
fieldId: "licensed-professional",
|
27
|
+
value: o,
|
28
|
+
verificationService: e,
|
29
|
+
onChange: (g) => d(g),
|
30
|
+
placeholder: s || t.formatHTMLMessage({
|
31
|
+
id: "organizationNamePlaceholder",
|
32
|
+
defaultMessage: "Organization"
|
33
|
+
}),
|
34
|
+
label: /* @__PURE__ */ a.jsx(i, { id: "organization", defaultMessage: "Organization" }),
|
35
|
+
errorMessage: r && /* @__PURE__ */ a.jsx(
|
36
|
+
i,
|
37
|
+
{
|
38
|
+
id: "errorId.invalidOrganization",
|
39
|
+
defaultMessage: "You must select an organization from the list"
|
40
|
+
}
|
41
|
+
),
|
42
|
+
orgSearchUrl: c(
|
43
|
+
e.viewModel,
|
44
|
+
e.programTheme
|
45
|
+
),
|
46
|
+
showPlaceholderAndHideLabel: !!s,
|
47
|
+
disabled: l
|
48
|
+
}
|
49
|
+
);
|
50
|
+
}, F = m(
|
51
|
+
u
|
52
|
+
);
|
53
|
+
export {
|
54
|
+
F as L
|
55
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LicensedProfessionalOrganizationComponent-BrW9osPt.js","sources":["../../src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\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 const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\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(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n\nexport const LicensedProfessionalOrganizationComponent = injectIntl(\n LicensedProfessionalOrganization,\n);\n"],"names":["LicensedProfessionalOrganization","value","isErrored","onChange","verificationService","intl","placeholder","disabled","_a","getFieldConfigByFieldId","jsx","FormFieldTypeahead","choice","FormattedHTMLMessage","getOrgSearchUrl","LicensedProfessionalOrganizationComponent","injectIntl"],"mappings":";AAWO,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,MAA0D;;AAGxD,WAFsBC,IAAAC,EAAwB,cAAc,MAAtC,gBAAAD,EAAyC,UAGtD,OAIPE,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,OAAAV;AAAA,MACA,qBAAAG;AAAA,MACA,UAAU,CAACQ,MAAyBT,EAASS,CAAM;AAAA,MACnD,aACEN,KACAD,EAAK,kBAAkB;AAAA,QACrB,IAAI;AAAA,QACJ,gBAAgB;AAAA,MAAA,CACjB;AAAA,MAEH,OAAQK,gBAAAA,EAAA,IAAAG,GAAA,EAAqB,IAAG,gBAAe,gBAAe,gBAAe;AAAA,MAC7E,cACEX,KACEQ,gBAAAA,EAAA;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,QAAA;AAAA,MACjB;AAAA,MAGJ,cAAcC;AAAA,QACZV,EAAoB;AAAA,QACpBA,EAAoB;AAAA,MACtB;AAAA,MACA,6BAA6B,CAAC,CAACE;AAAA,MAC/B,UAAAC;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaQ,IAA4CC;AAAA,EACvDhB;AACF;"}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* VERSION: 2.104.0-alpha.0
|
4
|
+
* BUILD_TIMESTAMP: 1746122030388
|
5
|
+
* BUILD_DATE: Thu May 01 2025 17:53:50 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 11de903d86267c3dbd7e05948a323fa12b63d0ec
|
7
|
+
*/
|
8
|
+
import { i as m, a as f, j as a, F as h, b as i, c } from "../sheerid.js";
|
9
|
+
const u = ({
|
10
|
+
value: o,
|
11
|
+
isErrored: r,
|
12
|
+
onChange: d,
|
13
|
+
verificationService: e,
|
14
|
+
intl: t,
|
15
|
+
placeholder: s = "",
|
16
|
+
disabled: l = !1
|
17
|
+
}) => {
|
18
|
+
var n;
|
19
|
+
return ((n = f("organization")) == null ? void 0 : n.hidden) ? null : /* @__PURE__ */ a.jsx(
|
20
|
+
h,
|
21
|
+
{
|
22
|
+
fieldId: "licensed-professional",
|
23
|
+
value: o,
|
24
|
+
verificationService: e,
|
25
|
+
onChange: (g) => d(g),
|
26
|
+
placeholder: s || t.formatHTMLMessage({
|
27
|
+
id: "organizationNamePlaceholder",
|
28
|
+
defaultMessage: "Organization"
|
29
|
+
}),
|
30
|
+
label: /* @__PURE__ */ a.jsx(i, { id: "organization", defaultMessage: "Organization" }),
|
31
|
+
errorMessage: r && /* @__PURE__ */ a.jsx(
|
32
|
+
i,
|
33
|
+
{
|
34
|
+
id: "errorId.invalidOrganization",
|
35
|
+
defaultMessage: "You must select an organization from the list"
|
36
|
+
}
|
37
|
+
),
|
38
|
+
orgSearchUrl: c(
|
39
|
+
e.viewModel,
|
40
|
+
e.programTheme
|
41
|
+
),
|
42
|
+
showPlaceholderAndHideLabel: !!s,
|
43
|
+
disabled: l
|
44
|
+
}
|
45
|
+
);
|
46
|
+
}, F = m(
|
47
|
+
u
|
48
|
+
);
|
49
|
+
export {
|
50
|
+
F as L
|
51
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LicensedProfessionalOrganizationComponent-Cu6a9uBs.js","sources":["../../src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\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 const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\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(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n\nexport const LicensedProfessionalOrganizationComponent = injectIntl(\n LicensedProfessionalOrganization,\n);\n"],"names":["LicensedProfessionalOrganization","value","isErrored","onChange","verificationService","intl","placeholder","disabled","_a","getFieldConfigByFieldId","jsx","FormFieldTypeahead","choice","FormattedHTMLMessage","getOrgSearchUrl","LicensedProfessionalOrganizationComponent","injectIntl"],"mappings":";AAWO,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,MAA0D;;AAGxD,WAFsBC,IAAAC,EAAwB,cAAc,MAAtC,gBAAAD,EAAyC,UAGtD,OAIPE,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,OAAAV;AAAA,MACA,qBAAAG;AAAA,MACA,UAAU,CAACQ,MAAyBT,EAASS,CAAM;AAAA,MACnD,aACEN,KACAD,EAAK,kBAAkB;AAAA,QACrB,IAAI;AAAA,QACJ,gBAAgB;AAAA,MAAA,CACjB;AAAA,MAEH,OAAQK,gBAAAA,EAAA,IAAAG,GAAA,EAAqB,IAAG,gBAAe,gBAAe,gBAAe;AAAA,MAC7E,cACEX,KACEQ,gBAAAA,EAAA;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,QAAA;AAAA,MACjB;AAAA,MAGJ,cAAcC;AAAA,QACZV,EAAoB;AAAA,QACpBA,EAAoB;AAAA,MACtB;AAAA,MACA,6BAA6B,CAAC,CAACE;AAAA,MAC/B,UAAAC;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaQ,IAA4CC;AAAA,EACvDhB;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.
|
8
|
-
* BUILD_TIMESTAMP:
|
9
|
-
* BUILD_DATE: Thu May 01 2025
|
10
|
-
* BUILD_COMMIT:
|
7
|
+
* VERSION: 2.104.0-alpha.0
|
8
|
+
* BUILD_TIMESTAMP: 1746122131368
|
9
|
+
* BUILD_DATE: Thu May 01 2025 17:55:31 GMT+0000 (Coordinated Universal Time)
|
10
|
+
* BUILD_COMMIT: 11de903d86267c3dbd7e05948a323fa12b63d0ec
|
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,GA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,eAAe,GAAG,eAAe;AAAA,EACtC,KAAK,MAAM,UAAU,OAAO,SAAS,OAAO,OAAO;AAAA,EACnD,KAAK,CAACD,MAAM;AACV,WAAO,SAAS,OAAO,UAAU,CAAE,GAAE,OAAO,OAAO,cAAcA;AAAA,EAClE;AACH,CAAC;AACI,MAACU,IAAI;","x_google_ignoreList":[0]}
|
@@ -4,13 +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.
|
8
|
-
* BUILD_TIMESTAMP:
|
9
|
-
* BUILD_DATE: Thu May 01 2025
|
10
|
-
* BUILD_COMMIT:
|
7
|
+
* VERSION: 2.104.0-alpha.0
|
8
|
+
* BUILD_TIMESTAMP: 1746122131368
|
9
|
+
* BUILD_DATE: Thu May 01 2025 17:55:31 GMT+0000 (Coordinated Universal Time)
|
10
|
+
* BUILD_COMMIT: 11de903d86267c3dbd7e05948a323fa12b63d0ec
|
11
11
|
*/
|
12
|
-
import { j as e,
|
13
|
-
import { S as k } from "./index-BqmbVto7.js";
|
12
|
+
import { j as e, m as h, a1 as o, e as n, a2 as m, b as t, R as r, a3 as u, A as f, l as g, V as k } from "../_mysheerid-preview.js";
|
14
13
|
const x = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(h, { verificationService: s, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
15
14
|
/* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(
|
16
15
|
o,
|
@@ -140,7 +139,7 @@ const x = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(h, { verificatio
|
|
140
139
|
})), i.map((a, c) => {
|
141
140
|
const { title: d, subtitle: l, icon: p } = a();
|
142
141
|
return /* @__PURE__ */ e.jsx(
|
143
|
-
|
142
|
+
m,
|
144
143
|
{
|
145
144
|
title: d,
|
146
145
|
subtitle: l,
|
@@ -150,10 +149,10 @@ const x = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(h, { verificatio
|
|
150
149
|
d.toString()
|
151
150
|
);
|
152
151
|
});
|
153
|
-
},
|
152
|
+
}, C = ({ verificationService: s }) => {
|
154
153
|
const i = s.verificationResponse, [a, c] = r.useState(!1), d = () => {
|
155
|
-
|
156
|
-
|
154
|
+
g.info("StepIDCheckLoop initiating ID Check Loop"), s.submitStep(
|
155
|
+
k.idCheckLoop,
|
157
156
|
s.viewModel,
|
158
157
|
s.verificationResponse
|
159
158
|
);
|
@@ -161,10 +160,10 @@ const x = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(h, { verificatio
|
|
161
160
|
return r.useEffect(() => {
|
162
161
|
i && i.sdkToken && c(!0);
|
163
162
|
}, [i]), /* @__PURE__ */ e.jsxs("div", { id: "sid-step-id-check-loop", className: "sid-l-container", children: [
|
164
|
-
a && /* @__PURE__ */ e.jsx("div", { className: "sid-l-space-btm-lg", children: /* @__PURE__ */ e.jsx("div", { role: "main", children: /* @__PURE__ */ e.jsx(
|
163
|
+
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 }) }) }),
|
165
164
|
!a && /* @__PURE__ */ e.jsxs("div", { children: [
|
166
165
|
/* @__PURE__ */ e.jsxs("div", { role: "main", children: [
|
167
|
-
/* @__PURE__ */ e.jsx(
|
166
|
+
/* @__PURE__ */ e.jsx(f, { align: "center", children: /* @__PURE__ */ e.jsx(
|
168
167
|
t,
|
169
168
|
{
|
170
169
|
id: "step.idCheckLoop.title",
|
@@ -196,5 +195,5 @@ const x = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(h, { verificatio
|
|
196
195
|
] });
|
197
196
|
};
|
198
197
|
export {
|
199
|
-
|
198
|
+
C as default
|
200
199
|
};
|