@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,20 +1,20 @@
|
|
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 { r as
|
8
|
+
import { r as o, j as i, b as d, aq as R, ar as L, l as E, as as B, at as H, al as q, au as I, av as G, aw as J, ax as K, c as z, ay as Y, az as W } from "../sheerid.js";
|
9
9
|
const V = ({
|
10
10
|
title: t,
|
11
11
|
message: s,
|
12
12
|
closing: a,
|
13
13
|
helpRequestResponse: c = "blue",
|
14
|
-
onResendClick:
|
14
|
+
onResendClick: l
|
15
15
|
}) => {
|
16
|
-
const [e, m] =
|
17
|
-
|
16
|
+
const [e, m] = o.useState(!1), f = async () => {
|
17
|
+
l && (await l(), m(!0));
|
18
18
|
};
|
19
19
|
return /* @__PURE__ */ i.jsxs(
|
20
20
|
"div",
|
@@ -135,7 +135,7 @@ const $ = ({
|
|
135
135
|
Accept: "application/json",
|
136
136
|
"Content-Type": "application/json"
|
137
137
|
}, X = async (t, s = void 0, a = {}) => {
|
138
|
-
const c = B(),
|
138
|
+
const c = B(), l = {
|
139
139
|
emailAddress: s,
|
140
140
|
programId: t
|
141
141
|
};
|
@@ -143,7 +143,7 @@ const $ = ({
|
|
143
143
|
const e = await H(c, {
|
144
144
|
headers: { ...Q, ...a },
|
145
145
|
method: "POST",
|
146
|
-
body: JSON.stringify(
|
146
|
+
body: JSON.stringify(l)
|
147
147
|
});
|
148
148
|
return { ...await e.json(), status: e.status };
|
149
149
|
} catch (e) {
|
@@ -159,8 +159,8 @@ async function b(t, s) {
|
|
159
159
|
t,
|
160
160
|
s
|
161
161
|
);
|
162
|
-
let c = n.PENDING,
|
163
|
-
return a.status === 500 ? (c = n.NOT_FOUND,
|
162
|
+
let c = n.PENDING, l = null;
|
163
|
+
return a.status === 500 ? (c = n.NOT_FOUND, l = "Error during lookup.") : a.status === 404 || a.status === 429 ? c = n.NOT_FOUND : a.status === 400 ? c = n.ALREADY_INITIATED : a.status === 200 && (a.currentStep === "error" || a.currentStep === "docReviewLimitExceeded" ? (c = n.NOT_FOUND, l = "An error occurred during verification.") : a.currentStep === "pending" || a.currentStep === "consolation" || a.currentStep === "loading" ? (c = n.PENDING, l = "pending") : a.currentStep.toLowerCase().startsWith("collect") ? l = "Unexpected API response." : (c = n.FOUND, l = a.currentStep)), R({ eventName: L.VERIFICATION_HELP, params: { status: c, programId: t } }), { status: c, message: l };
|
164
164
|
} catch (a) {
|
165
165
|
return E.error("Error submitting verification help request:", a), {
|
166
166
|
status: n.PENDING,
|
@@ -169,12 +169,12 @@ async function b(t, s) {
|
|
169
169
|
}
|
170
170
|
}
|
171
171
|
function ee(t, s, a) {
|
172
|
-
const [c,
|
172
|
+
const [c, l] = o.useState(!1), [e, m] = o.useState(null), f = q("collect-info-step-email-first"), g = f === "no-message-dimmed-fields", [y, O] = o.useState(!1), [_, j] = o.useState(!1), [x, T] = o.useState(!1), [u, S] = o.useState({
|
173
173
|
emailLookupResponse: null,
|
174
174
|
hasBlurred: !1,
|
175
175
|
hasKeyPressed: !1,
|
176
176
|
isValidEmail: !I(s)
|
177
|
-
}), { userDidConvert: M } = G(a), C =
|
177
|
+
}), { userDidConvert: M } = G(a), C = o.useCallback((r) => {
|
178
178
|
const p = !I(r);
|
179
179
|
S((h) => ({
|
180
180
|
...h,
|
@@ -184,13 +184,13 @@ function ee(t, s, a) {
|
|
184
184
|
isValidEmail: p
|
185
185
|
}));
|
186
186
|
}, []);
|
187
|
-
|
187
|
+
o.useEffect(() => {
|
188
188
|
C(s);
|
189
189
|
}, [s, C]);
|
190
|
-
const w =
|
190
|
+
const w = o.useMemo(
|
191
191
|
() => s !== "" && u.isValidEmail && (!g || (e == null ? void 0 : e.status) === n.NOT_FOUND),
|
192
192
|
[s, u.isValidEmail, g, e]
|
193
|
-
), U =
|
193
|
+
), U = o.useMemo(
|
194
194
|
() => (s === "" || typeof s == "string" && s.length >= 1 || (e == null ? void 0 : e.status) === null) && ((e == null ? void 0 : e.status) === n.NOT_FOUND || ![
|
195
195
|
n.ALREADY_INITIATED,
|
196
196
|
n.FOUND,
|
@@ -198,25 +198,25 @@ function ee(t, s, a) {
|
|
198
198
|
n.REJECTED
|
199
199
|
].includes(e == null ? void 0 : e.status)),
|
200
200
|
[s, e]
|
201
|
-
), N =
|
201
|
+
), N = o.useCallback(async () => {
|
202
202
|
if (!(!u.isValidEmail || y || x)) {
|
203
|
-
j(!0), O(!1),
|
203
|
+
j(!0), O(!1), l(!0);
|
204
204
|
try {
|
205
205
|
const r = await b(t, s);
|
206
206
|
r.status === n.FOUND && M(J, K), m(r);
|
207
207
|
} catch (r) {
|
208
208
|
E.error("Error during email lookup:", r);
|
209
209
|
} finally {
|
210
|
-
|
210
|
+
l(!1);
|
211
211
|
}
|
212
212
|
}
|
213
|
-
}, [t, s, y, x, u.isValidEmail]), v =
|
213
|
+
}, [t, s, y, x, u.isValidEmail]), v = o.useCallback(
|
214
214
|
(r) => {
|
215
215
|
_ || r.key === "Enter" && (T(!0), N());
|
216
216
|
},
|
217
217
|
[N, _]
|
218
|
-
), k =
|
219
|
-
|
218
|
+
), k = o.useCallback(async () => {
|
219
|
+
l(!0);
|
220
220
|
try {
|
221
221
|
const r = await b(
|
222
222
|
t,
|
@@ -226,20 +226,21 @@ function ee(t, s, a) {
|
|
226
226
|
} catch (r) {
|
227
227
|
E.error("Error resending email:", r);
|
228
228
|
} finally {
|
229
|
-
|
229
|
+
l(!1);
|
230
230
|
}
|
231
|
-
}, [t, s, a]), A =
|
231
|
+
}, [t, s, a]), A = o.useCallback(async () => {
|
232
232
|
u.isValidEmail && (O(!0), m({
|
233
233
|
status: n.NOT_FOUND,
|
234
234
|
message: "makeChanges"
|
235
235
|
}));
|
236
|
-
}, [u.isValidEmail]), P =
|
236
|
+
}, [u.isValidEmail]), P = o.useCallback(
|
237
237
|
async (r) => {
|
238
|
-
if (!r)
|
239
|
-
|
238
|
+
if (!r)
|
239
|
+
return;
|
240
|
+
const p = z(
|
240
241
|
r.viewModel,
|
241
242
|
r.programTheme
|
242
|
-
), h =
|
243
|
+
), h = Y(s), D = new URL(p);
|
243
244
|
D.searchParams.set("domain", h);
|
244
245
|
const F = await W(D.toString());
|
245
246
|
return F && F.length === 1 ? F[0] : void 0;
|
package/chunk/{useEmailFirstExperiment-B1_E_D0z.js.map → useEmailFirstExperiment-mjdDc7vk.js.map}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useEmailFirstExperiment-B1_E_D0z.js","sources":["../../src/components/FormFields/EmailFirstCollectInfo/EmailMessageComponent.tsx","../../src/components/FormFields/EmailFirstCollectInfo/types.ts","../../src/components/FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent.tsx","../../src/lib/ServerApi/VerificationHelpRequestApi.ts","../../src/components/FormFields/EmailFirstCollectInfo/useEmailFirstExperiment.ts"],"sourcesContent":["import React, { useState } from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\ninterface EmailMessageComponentProps {\n title?: string | React.ReactNode;\n message?: string | React.ReactNode;\n closing?: string | React.ReactNode;\n helpRequestResponse?: \"green\" | \"blue\";\n onResendClick?: () => Promise<void>;\n}\n\nconst EmailMessageComponent = ({\n title,\n message,\n closing,\n helpRequestResponse = \"blue\",\n onResendClick,\n}: EmailMessageComponentProps) => {\n const [hasSent, setHasSent] = useState(false);\n\n const handleClick = async () => {\n if (onResendClick) {\n await onResendClick();\n setHasSent(true);\n }\n };\n\n return (\n <div\n className={\n helpRequestResponse === \"green\"\n ? \"sid-email-msg-container sid-l-horz-center sid-l-space-top-md sid-email-msg-container--bg-green\"\n : \"sid-email-msg-container sid-l-horz-center sid-l-space-top-md sid-email-msg-container--bg-blue\"\n }\n >\n <div className=\"sid-email-msg-container__title\">{title}</div>\n <div className=\"sid-email-msg-container__content\">{message}</div>\n <div className=\"sid-email-msg-container__content sid-email-msg-container__closing\">\n {closing}\n </div>\n <div className=\"sid-email-resend-area\">\n <button\n type=\"button\"\n className={\n hasSent\n ? \"sid-email-resend-area__button sid-email-resend-area__button__sent\"\n : \"sid-email-resend-area__button\"\n }\n onClick={handleClick}\n disabled={hasSent}\n >\n <FormattedHTMLMessage\n id={\n hasSent\n ? \"step.personalInfo.emailFirstCollectInfo.sent\"\n : \"step.personalInfo.emailFirstCollectInfo.sendAgain\"\n }\n defaultMessage={hasSent ? \"Sent!\" : \"Send Again\"}\n />\n </button>\n </div>\n </div>\n );\n};\n\nexport { EmailMessageComponent };\n","export enum EmailLookupStatus {\n FOUND = \"existingVerificationFound\",\n NOT_FOUND = \"existingVerificationNotFound\",\n PENDING = \"pendingVerification\",\n REJECTED = \"rejectedVerification\",\n ALREADY_INITIATED = \"emailResendAlreadyInitiated\",\n}\n\nexport type EmailLookupResponse = {\n status: EmailLookupStatus;\n message: string | null;\n};\n\nexport type EmailFirstCollectInfoStep =\n | \"message-dimmed-fields\"\n | \"no-message-dimmed-fields\"\n | \"control\"\n | \"default\";\n\nexport interface VerificationHelpRequestApiResponse {\n systemErrorMessage?: string;\n currentStep?: string;\n status?: number;\n}\n","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { EmailMessageComponent } from \"./EmailMessageComponent\";\nimport { EmailLookupResponse, EmailLookupStatus } from \"./types\";\n\ninterface EmailLookupResponseMessagesProps {\n emailLookupResponse: EmailLookupResponse | null;\n onResendClick?: () => Promise<void>;\n onHandleClickLink?: () => Promise<void>;\n}\n\nconst EmailLookupResponseMessages: React.FC<EmailLookupResponseMessagesProps> = ({\n emailLookupResponse,\n onResendClick = async () => {},\n onHandleClickLink = async () => {},\n}) => {\n if (\n emailLookupResponse.status === EmailLookupStatus.FOUND &&\n emailLookupResponse.message === \"success\"\n ) {\n return (\n <EmailMessageComponent\n title={\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.existingVerificationFound.title\"\n defaultMessage=\"You've been here before!\"\n />\n }\n message={\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.existingVerificationFound.message\"\n defaultMessage=\"Verify@sheerid.com re-sent your confirmation email with details on redeeming your verified offer.\"\n />\n }\n closing={\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.existingVerificationFound.closing\"\n defaultMessage=\"Enjoy!\"\n />\n }\n helpRequestResponse=\"green\"\n onResendClick={onResendClick}\n />\n );\n }\n if (\n emailLookupResponse.status === EmailLookupStatus.FOUND &&\n emailLookupResponse.message !== \"success\"\n ) {\n return (\n <>\n <EmailMessageComponent\n title={\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.pendingVerification.title\"\n defaultMessage=\"Looks like you started.\"\n />\n }\n message={\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.pendingVerification.message\"\n defaultMessage=\"This email is associated with a verification in the works.\"\n />\n }\n closing={\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.pendingVerification.closing\"\n defaultMessage=\"Verify@sheerid.com re-sent our last email to you with next steps.\"\n />\n }\n helpRequestResponse=\"blue\"\n onResendClick={onResendClick}\n />\n <div className=\"sid-email-first__need-changes sid-h-small-text\">\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.needChanges\"\n defaultMessage=\"Need to make changes?\"\n />\n <button\n type=\"submit\"\n className=\"sid-email-first__need-changes-link sid-link\"\n onClick={onHandleClickLink}\n >\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.proceedHere\"\n defaultMessage=\"Proceed here\"\n />\n </button>\n </div>\n </>\n );\n }\n\n return null;\n};\n\nexport default EmailLookupResponseMessages;\n","import { logger } from \"../utils/logger/logger\";\nimport {\n EmailLookupResponse,\n EmailLookupStatus,\n VerificationHelpRequestApiResponse,\n} from \"../../components/FormFields/EmailFirstCollectInfo/types\";\nimport { getVerificationHelpUrl } from \"./ApiUrls\";\nimport { DatabaseId } from \"../types/types\";\nimport { fetchWithTimeout } from \"./Network\";\nimport { EventName, recordGaEvent } from \"../GoogleAnalytics/ga\";\n\nconst defaultJsonHeaders = {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\",\n};\n/**\n * Endpoint to support email-first functionality.\n * Look up a verification, return status and trigger notifier(s)\n *\n * @param programId Your programId from my.sheerid.com\n * @param emailAddress Email Address used for the verification.\n */\nexport const submitVerificationHelpRequest = async (\n programId: DatabaseId,\n emailAddress: string = undefined,\n headers = {},\n): Promise<VerificationHelpRequestApiResponse> => {\n const url = getVerificationHelpUrl();\n const requestBody = {\n emailAddress,\n programId,\n };\n\n try {\n const response = await fetchWithTimeout(url, {\n headers: { ...defaultJsonHeaders, ...headers },\n method: \"POST\",\n body: JSON.stringify(requestBody),\n });\n\n const responseJson = await response.json();\n return { ...responseJson, status: response.status };\n } catch (error) {\n logger.error(\"Error in submitVerificationHelpRequest:\", error);\n return {\n systemErrorMessage: \"An error occurred during the request.\",\n status: 500,\n };\n }\n};\n\nexport async function handleSubmitVerificationHelpRequest(\n programId: string,\n email: string,\n): Promise<EmailLookupResponse> {\n try {\n const resp: VerificationHelpRequestApiResponse = await submitVerificationHelpRequest(\n programId,\n email,\n );\n let status: EmailLookupStatus = EmailLookupStatus.PENDING;\n let message: string | null = null;\n\n if (resp.status === 500) {\n status = EmailLookupStatus.NOT_FOUND;\n message = \"Error during lookup.\";\n } else if (resp.status === 404 || resp.status === 429) {\n status = EmailLookupStatus.NOT_FOUND;\n } else if (resp.status === 400) {\n status = EmailLookupStatus.ALREADY_INITIATED;\n } else if (resp.status === 200) {\n if (resp.currentStep === \"error\" || resp.currentStep === \"docReviewLimitExceeded\") {\n status = EmailLookupStatus.NOT_FOUND;\n message = \"An error occurred during verification.\";\n } else if (\n resp.currentStep === \"pending\" ||\n resp.currentStep === \"consolation\" ||\n resp.currentStep === \"loading\"\n ) {\n status = EmailLookupStatus.PENDING;\n message = \"pending\";\n } else if (!resp.currentStep.toLowerCase().startsWith(\"collect\")) {\n status = EmailLookupStatus.FOUND;\n message = resp.currentStep;\n } else {\n message = \"Unexpected API response.\";\n }\n }\n recordGaEvent({ eventName: EventName.VERIFICATION_HELP, params: { status, programId } });\n return { status, message };\n } catch (error) {\n logger.error(\"Error submitting verification help request:\", error);\n return {\n status: EmailLookupStatus.PENDING,\n message: \"Error during lookup.\",\n };\n }\n}\n","import { useState, useCallback, useEffect, useMemo } from \"react\";\nimport {\n COLLECT_INFO_SUBMISSION_TIME,\n COLLECT_INFO_SUBMIT,\n useMetrics,\n} from \"@/components/FeatureFlags/useMetrics\";\nimport {\n Organization,\n StudentPersonalInfoViewModel,\n TeacherPersonalInfoViewModel,\n VerificationService,\n} from \"../../../lib/types/types\";\nimport { logger } from \"../../../lib/utils/logger/logger\";\nimport { handleSubmitVerificationHelpRequest } from \"../../../lib/ServerApi/VerificationHelpRequestApi\";\nimport { EmailLookupResponse, EmailLookupStatus } from \"./types\";\nimport { getEmailValidationError } from \"../../../lib/validators/validators\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\nimport { getDomainFromEmail } from \"../../../lib/utils/routing/Url\";\nimport { fetchOrganization } from \"../../../lib/ServerApi/OrganizationApiClient\";\n\nexport function useEmailFirstExperiment(programId: string, email: string, segment: string) {\n const [isLoading, setIsLoading] = useState(false);\n const [emailLookupResponse, setEmailLookupResponse] = useState<EmailLookupResponse | null>(null);\n const emailFirstCollectInfoStep = useFlag(\"collect-info-step-email-first\");\n const isEmailUpTop = emailFirstCollectInfoStep === \"no-message-dimmed-fields\";\n const [bypassEmailLookup, setBypassEmailLookup] = useState(false);\n const [hasBlurred, setHasBlurred] = useState(false);\n const [hasKeyPressed, setHasKeyPressed] = useState(false);\n const [emailInputState, setEmailInputState] = useState({\n emailLookupResponse: null,\n hasBlurred: false,\n hasKeyPressed: false,\n isValidEmail: !getEmailValidationError(email),\n });\n const { userDidConvert } = useMetrics(segment);\n\n const updateEmailState = useCallback((newEmail: string) => {\n const isValid = !getEmailValidationError(newEmail);\n setEmailInputState((prevState) => ({\n ...prevState,\n emailLookupResponse: newEmail !== \"\" && isValid ? null : prevState.emailLookupResponse,\n hasBlurred: false,\n hasKeyPressed: false,\n isValidEmail: isValid,\n }));\n }, []);\n\n useEffect(() => {\n updateEmailState(email);\n }, [email, updateEmailState]);\n\n const enableFormFields = useMemo(\n () =>\n email !== \"\" &&\n emailInputState.isValidEmail &&\n (!isEmailUpTop || emailLookupResponse?.status === EmailLookupStatus.NOT_FOUND),\n [email, emailInputState.isValidEmail, isEmailUpTop, emailLookupResponse],\n );\n\n const showFormFields = useMemo(\n () =>\n (email === \"\" ||\n (typeof email === \"string\" && email.length >= 1) ||\n emailLookupResponse?.status === null) &&\n (emailLookupResponse?.status === EmailLookupStatus.NOT_FOUND ||\n ![\n EmailLookupStatus.ALREADY_INITIATED,\n EmailLookupStatus.FOUND,\n EmailLookupStatus.PENDING,\n EmailLookupStatus.REJECTED,\n ].includes(emailLookupResponse?.status)),\n [email, emailLookupResponse],\n );\n\n const emailOnBlur = useCallback(async () => {\n if (!emailInputState.isValidEmail || bypassEmailLookup || hasKeyPressed) return;\n setHasBlurred(true);\n setBypassEmailLookup(false);\n setIsLoading(true);\n try {\n const response = await handleSubmitVerificationHelpRequest(programId, email);\n if (response.status === EmailLookupStatus.FOUND) {\n userDidConvert(COLLECT_INFO_SUBMIT, COLLECT_INFO_SUBMISSION_TIME);\n }\n setEmailLookupResponse(response);\n } catch (error) {\n logger.error(\"Error during email lookup:\", error);\n } finally {\n setIsLoading(false);\n }\n }, [programId, email, bypassEmailLookup, hasKeyPressed, emailInputState.isValidEmail]);\n\n const emailOnKeyDown = useCallback(\n (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (hasBlurred) return;\n if (event.key === \"Enter\") {\n setHasKeyPressed(true);\n emailOnBlur();\n }\n },\n [emailOnBlur, hasBlurred],\n );\n\n const handleResendClick = useCallback(async () => {\n setIsLoading(true);\n try {\n const response: EmailLookupResponse = await handleSubmitVerificationHelpRequest(\n programId,\n email,\n );\n setEmailLookupResponse(response);\n } catch (error) {\n logger.error(\"Error resending email:\", error);\n } finally {\n setIsLoading(false);\n }\n }, [programId, email, segment]);\n\n const handleOnClickProceedHere = useCallback(async () => {\n if (!emailInputState.isValidEmail) return;\n setBypassEmailLookup(true);\n setEmailLookupResponse({\n status: EmailLookupStatus.NOT_FOUND,\n message: \"makeChanges\",\n });\n }, [emailInputState.isValidEmail]);\n\n const getOrgByDomain = useCallback(\n async (verificationService: VerificationService): Promise<Organization | undefined> => {\n if (!verificationService) return undefined;\n\n const orgSearchUrl = getOrgSearchUrl(\n verificationService.viewModel as\n | StudentPersonalInfoViewModel\n | TeacherPersonalInfoViewModel,\n verificationService.programTheme,\n );\n\n const emailDomain = getDomainFromEmail(email);\n const orgDomainMatch = new URL(orgSearchUrl);\n orgDomainMatch.searchParams.set(\"domain\", emailDomain);\n\n const response = await fetchOrganization(orgDomainMatch.toString());\n\n return response && response.length === 1 ? response[0] : undefined;\n },\n [email],\n );\n\n if (!isEmailUpTop) {\n return {\n isEmailUpTop,\n isEmailValidationLoading: false,\n showOtherFields: true,\n disableOtherFields: false,\n emailLookupResponse: null,\n showEmailLookupResponseMessages: false,\n showFormFields: true,\n emailOnBlur: () => {},\n emailOnKeyDown: () => {},\n handleResendClick: () => Promise.resolve(),\n emailFirstCollectInfoStep,\n isValidEmail: !getEmailValidationError(email),\n getOrgByDomain: async () => undefined,\n enableFormFields: true,\n };\n }\n\n return {\n isEmailUpTop,\n isEmailValidationLoading: isLoading,\n emailLookupResponse,\n showEmailLookupResponseMessages: !!emailLookupResponse,\n showFormFields,\n emailOnBlur,\n emailOnKeyDown,\n handleResendClick,\n emailFirstCollectInfoStep,\n isValidEmail: emailInputState.isValidEmail,\n getOrgByDomain,\n enableFormFields,\n handleOnClickProceedHere,\n };\n}\n"],"names":["EmailMessageComponent","title","message","closing","helpRequestResponse","onResendClick","hasSent","setHasSent","useState","handleClick","jsxs","jsx","FormattedHTMLMessage","EmailLookupStatus","EmailLookupResponseMessages","emailLookupResponse","onHandleClickLink","Fragment","defaultJsonHeaders","submitVerificationHelpRequest","programId","emailAddress","headers","url","getVerificationHelpUrl","requestBody","response","fetchWithTimeout","error","logger","handleSubmitVerificationHelpRequest","email","resp","status","recordGaEvent","EventName","useEmailFirstExperiment","segment","isLoading","setIsLoading","setEmailLookupResponse","emailFirstCollectInfoStep","useFlag","isEmailUpTop","bypassEmailLookup","setBypassEmailLookup","hasBlurred","setHasBlurred","hasKeyPressed","setHasKeyPressed","emailInputState","setEmailInputState","getEmailValidationError","userDidConvert","useMetrics","updateEmailState","useCallback","newEmail","isValid","prevState","useEffect","enableFormFields","useMemo","showFormFields","emailOnBlur","COLLECT_INFO_SUBMIT","COLLECT_INFO_SUBMISSION_TIME","emailOnKeyDown","event","handleResendClick","handleOnClickProceedHere","getOrgByDomain","verificationService","orgSearchUrl","getOrgSearchUrl","emailDomain","getDomainFromEmail","orgDomainMatch","fetchOrganization"],"mappings":";AAWA,MAAMA,IAAwB,CAAC;AAAA,EAC7B,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,qBAAAC,IAAsB;AAAA,EACtB,eAAAC;AACF,MAAkC;AAChC,QAAM,CAACC,GAASC,CAAU,IAAIC,EAAAA,SAAS,EAAK,GAEtCC,IAAc,YAAY;AAC9B,IAAIJ,MACF,MAAMA,EAAc,GACpBE,EAAW,EAAI;AAAA,EAEnB;AAGE,SAAAG,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WACEN,MAAwB,UACpB,mGACA;AAAA,MAGN,UAAA;AAAA,QAACO,gBAAAA,EAAA,IAAA,OAAA,EAAI,WAAU,kCAAkC,UAAMV,GAAA;AAAA,QACtDU,gBAAAA,EAAA,IAAA,OAAA,EAAI,WAAU,oCAAoC,UAAQT,GAAA;AAAA,QAC1DS,gBAAAA,EAAA,IAAA,OAAA,EAAI,WAAU,qEACZ,UACHR,GAAA;AAAA,QACAQ,gBA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AAmB,MAAM,QAAQ,QAAQ;AAAA,IACzC,2BAAAF;AAAA,IACA,cAAc,CAACW,EAAwBrB,CAAK;AAAA,IAC5C,gBAAgB,YAAA;AAAA;AAAA,IAChB,kBAAkB;AAAA,EACpB;AAkBJ;"}
|
1
|
+
{"version":3,"file":"useEmailFirstExperiment-mjdDc7vk.js","sources":["../../src/components/FormFields/EmailFirstCollectInfo/EmailMessageComponent.tsx","../../src/components/FormFields/EmailFirstCollectInfo/types.ts","../../src/components/FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent.tsx","../../src/lib/ServerApi/VerificationHelpRequestApi.ts","../../src/components/FormFields/EmailFirstCollectInfo/useEmailFirstExperiment.ts"],"sourcesContent":["import React, { useState } from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\ninterface EmailMessageComponentProps {\n title?: string | React.ReactNode;\n message?: string | React.ReactNode;\n closing?: string | React.ReactNode;\n helpRequestResponse?: \"green\" | \"blue\";\n onResendClick?: () => Promise<void>;\n}\n\nconst EmailMessageComponent = ({\n title,\n message,\n closing,\n helpRequestResponse = \"blue\",\n onResendClick,\n}: EmailMessageComponentProps) => {\n const [hasSent, setHasSent] = useState(false);\n\n const handleClick = async () => {\n if (onResendClick) {\n await onResendClick();\n setHasSent(true);\n }\n };\n\n return (\n <div\n className={\n helpRequestResponse === \"green\"\n ? \"sid-email-msg-container sid-l-horz-center sid-l-space-top-md sid-email-msg-container--bg-green\"\n : \"sid-email-msg-container sid-l-horz-center sid-l-space-top-md sid-email-msg-container--bg-blue\"\n }\n >\n <div className=\"sid-email-msg-container__title\">{title}</div>\n <div className=\"sid-email-msg-container__content\">{message}</div>\n <div className=\"sid-email-msg-container__content sid-email-msg-container__closing\">\n {closing}\n </div>\n <div className=\"sid-email-resend-area\">\n <button\n type=\"button\"\n className={\n hasSent\n ? \"sid-email-resend-area__button sid-email-resend-area__button__sent\"\n : \"sid-email-resend-area__button\"\n }\n onClick={handleClick}\n disabled={hasSent}\n >\n <FormattedHTMLMessage\n id={\n hasSent\n ? \"step.personalInfo.emailFirstCollectInfo.sent\"\n : \"step.personalInfo.emailFirstCollectInfo.sendAgain\"\n }\n defaultMessage={hasSent ? \"Sent!\" : \"Send Again\"}\n />\n </button>\n </div>\n </div>\n );\n};\n\nexport { EmailMessageComponent };\n","export enum EmailLookupStatus {\n FOUND = \"existingVerificationFound\",\n NOT_FOUND = \"existingVerificationNotFound\",\n PENDING = \"pendingVerification\",\n REJECTED = \"rejectedVerification\",\n ALREADY_INITIATED = \"emailResendAlreadyInitiated\",\n}\n\nexport type EmailLookupResponse = {\n status: EmailLookupStatus;\n message: string | null;\n};\n\nexport type EmailFirstCollectInfoStep =\n | \"message-dimmed-fields\"\n | \"no-message-dimmed-fields\"\n | \"control\"\n | \"default\";\n\nexport interface VerificationHelpRequestApiResponse {\n systemErrorMessage?: string;\n currentStep?: string;\n status?: number;\n}\n","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { EmailMessageComponent } from \"./EmailMessageComponent\";\nimport { EmailLookupResponse, EmailLookupStatus } from \"./types\";\n\ninterface EmailLookupResponseMessagesProps {\n emailLookupResponse: EmailLookupResponse | null;\n onResendClick?: () => Promise<void>;\n onHandleClickLink?: () => Promise<void>;\n}\n\nconst EmailLookupResponseMessages: React.FC<EmailLookupResponseMessagesProps> = ({\n emailLookupResponse,\n onResendClick = async () => {},\n onHandleClickLink = async () => {},\n}) => {\n if (\n emailLookupResponse.status === EmailLookupStatus.FOUND &&\n emailLookupResponse.message === \"success\"\n ) {\n return (\n <EmailMessageComponent\n title={\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.existingVerificationFound.title\"\n defaultMessage=\"You've been here before!\"\n />\n }\n message={\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.existingVerificationFound.message\"\n defaultMessage=\"Verify@sheerid.com re-sent your confirmation email with details on redeeming your verified offer.\"\n />\n }\n closing={\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.existingVerificationFound.closing\"\n defaultMessage=\"Enjoy!\"\n />\n }\n helpRequestResponse=\"green\"\n onResendClick={onResendClick}\n />\n );\n }\n if (\n emailLookupResponse.status === EmailLookupStatus.FOUND &&\n emailLookupResponse.message !== \"success\"\n ) {\n return (\n <>\n <EmailMessageComponent\n title={\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.pendingVerification.title\"\n defaultMessage=\"Looks like you started.\"\n />\n }\n message={\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.pendingVerification.message\"\n defaultMessage=\"This email is associated with a verification in the works.\"\n />\n }\n closing={\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.pendingVerification.closing\"\n defaultMessage=\"Verify@sheerid.com re-sent our last email to you with next steps.\"\n />\n }\n helpRequestResponse=\"blue\"\n onResendClick={onResendClick}\n />\n <div className=\"sid-email-first__need-changes sid-h-small-text\">\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.needChanges\"\n defaultMessage=\"Need to make changes?\"\n />\n <button\n type=\"submit\"\n className=\"sid-email-first__need-changes-link sid-link\"\n onClick={onHandleClickLink}\n >\n <FormattedHTMLMessage\n id=\"step.personalInfo.emailFirstCollectInfo.proceedHere\"\n defaultMessage=\"Proceed here\"\n />\n </button>\n </div>\n </>\n );\n }\n\n return null;\n};\n\nexport default EmailLookupResponseMessages;\n","import { logger } from \"../utils/logger/logger\";\nimport {\n EmailLookupResponse,\n EmailLookupStatus,\n VerificationHelpRequestApiResponse,\n} from \"../../components/FormFields/EmailFirstCollectInfo/types\";\nimport { getVerificationHelpUrl } from \"./ApiUrls\";\nimport { DatabaseId } from \"../types/types\";\nimport { fetchWithTimeout } from \"./Network\";\nimport { EventName, recordGaEvent } from \"../GoogleAnalytics/ga\";\n\nconst defaultJsonHeaders = {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\",\n};\n/**\n * Endpoint to support email-first functionality.\n * Look up a verification, return status and trigger notifier(s)\n *\n * @param programId Your programId from my.sheerid.com\n * @param emailAddress Email Address used for the verification.\n */\nexport const submitVerificationHelpRequest = async (\n programId: DatabaseId,\n emailAddress: string = undefined,\n headers = {},\n): Promise<VerificationHelpRequestApiResponse> => {\n const url = getVerificationHelpUrl();\n const requestBody = {\n emailAddress,\n programId,\n };\n\n try {\n const response = await fetchWithTimeout(url, {\n headers: { ...defaultJsonHeaders, ...headers },\n method: \"POST\",\n body: JSON.stringify(requestBody),\n });\n\n const responseJson = await response.json();\n return { ...responseJson, status: response.status };\n } catch (error) {\n logger.error(\"Error in submitVerificationHelpRequest:\", error);\n return {\n systemErrorMessage: \"An error occurred during the request.\",\n status: 500,\n };\n }\n};\n\nexport async function handleSubmitVerificationHelpRequest(\n programId: string,\n email: string,\n): Promise<EmailLookupResponse> {\n try {\n const resp: VerificationHelpRequestApiResponse = await submitVerificationHelpRequest(\n programId,\n email,\n );\n let status: EmailLookupStatus = EmailLookupStatus.PENDING;\n let message: string | null = null;\n\n if (resp.status === 500) {\n status = EmailLookupStatus.NOT_FOUND;\n message = \"Error during lookup.\";\n } else if (resp.status === 404 || resp.status === 429) {\n status = EmailLookupStatus.NOT_FOUND;\n } else if (resp.status === 400) {\n status = EmailLookupStatus.ALREADY_INITIATED;\n } else if (resp.status === 200) {\n if (resp.currentStep === \"error\" || resp.currentStep === \"docReviewLimitExceeded\") {\n status = EmailLookupStatus.NOT_FOUND;\n message = \"An error occurred during verification.\";\n } else if (\n resp.currentStep === \"pending\" ||\n resp.currentStep === \"consolation\" ||\n resp.currentStep === \"loading\"\n ) {\n status = EmailLookupStatus.PENDING;\n message = \"pending\";\n } else if (!resp.currentStep.toLowerCase().startsWith(\"collect\")) {\n status = EmailLookupStatus.FOUND;\n message = resp.currentStep;\n } else {\n message = \"Unexpected API response.\";\n }\n }\n recordGaEvent({ eventName: EventName.VERIFICATION_HELP, params: { status, programId } });\n return { status, message };\n } catch (error) {\n logger.error(\"Error submitting verification help request:\", error);\n return {\n status: EmailLookupStatus.PENDING,\n message: \"Error during lookup.\",\n };\n }\n}\n","import { useState, useCallback, useEffect, useMemo } from \"react\";\nimport {\n COLLECT_INFO_SUBMISSION_TIME,\n COLLECT_INFO_SUBMIT,\n useMetrics,\n} from \"@/components/FeatureFlags/useMetrics\";\nimport {\n Organization,\n StudentPersonalInfoViewModel,\n TeacherPersonalInfoViewModel,\n VerificationService,\n} from \"../../../lib/types/types\";\nimport { logger } from \"../../../lib/utils/logger/logger\";\nimport { handleSubmitVerificationHelpRequest } from \"../../../lib/ServerApi/VerificationHelpRequestApi\";\nimport { EmailLookupResponse, EmailLookupStatus } from \"./types\";\nimport { getEmailValidationError } from \"../../../lib/validators/validators\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\nimport { getDomainFromEmail } from \"../../../lib/utils/routing/Url\";\nimport { fetchOrganization } from \"../../../lib/ServerApi/OrganizationApiClient\";\n\nexport function useEmailFirstExperiment(programId: string, email: string, segment: string) {\n const [isLoading, setIsLoading] = useState(false);\n const [emailLookupResponse, setEmailLookupResponse] = useState<EmailLookupResponse | null>(null);\n const emailFirstCollectInfoStep = useFlag(\"collect-info-step-email-first\");\n const isEmailUpTop = emailFirstCollectInfoStep === \"no-message-dimmed-fields\";\n const [bypassEmailLookup, setBypassEmailLookup] = useState(false);\n const [hasBlurred, setHasBlurred] = useState(false);\n const [hasKeyPressed, setHasKeyPressed] = useState(false);\n const [emailInputState, setEmailInputState] = useState({\n emailLookupResponse: null,\n hasBlurred: false,\n hasKeyPressed: false,\n isValidEmail: !getEmailValidationError(email),\n });\n const { userDidConvert } = useMetrics(segment);\n\n const updateEmailState = useCallback((newEmail: string) => {\n const isValid = !getEmailValidationError(newEmail);\n setEmailInputState((prevState) => ({\n ...prevState,\n emailLookupResponse: newEmail !== \"\" && isValid ? null : prevState.emailLookupResponse,\n hasBlurred: false,\n hasKeyPressed: false,\n isValidEmail: isValid,\n }));\n }, []);\n\n useEffect(() => {\n updateEmailState(email);\n }, [email, updateEmailState]);\n\n const enableFormFields = useMemo(\n () =>\n email !== \"\" &&\n emailInputState.isValidEmail &&\n (!isEmailUpTop || emailLookupResponse?.status === EmailLookupStatus.NOT_FOUND),\n [email, emailInputState.isValidEmail, isEmailUpTop, emailLookupResponse],\n );\n\n const showFormFields = useMemo(\n () =>\n (email === \"\" ||\n (typeof email === \"string\" && email.length >= 1) ||\n emailLookupResponse?.status === null) &&\n (emailLookupResponse?.status === EmailLookupStatus.NOT_FOUND ||\n ![\n EmailLookupStatus.ALREADY_INITIATED,\n EmailLookupStatus.FOUND,\n EmailLookupStatus.PENDING,\n EmailLookupStatus.REJECTED,\n ].includes(emailLookupResponse?.status)),\n [email, emailLookupResponse],\n );\n\n const emailOnBlur = useCallback(async () => {\n if (!emailInputState.isValidEmail || bypassEmailLookup || hasKeyPressed) return;\n setHasBlurred(true);\n setBypassEmailLookup(false);\n setIsLoading(true);\n try {\n const response = await handleSubmitVerificationHelpRequest(programId, email);\n if (response.status === EmailLookupStatus.FOUND) {\n userDidConvert(COLLECT_INFO_SUBMIT, COLLECT_INFO_SUBMISSION_TIME);\n }\n setEmailLookupResponse(response);\n } catch (error) {\n logger.error(\"Error during email lookup:\", error);\n } finally {\n setIsLoading(false);\n }\n }, [programId, email, bypassEmailLookup, hasKeyPressed, emailInputState.isValidEmail]);\n\n const emailOnKeyDown = useCallback(\n (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (hasBlurred) return;\n if (event.key === \"Enter\") {\n setHasKeyPressed(true);\n emailOnBlur();\n }\n },\n [emailOnBlur, hasBlurred],\n );\n\n const handleResendClick = useCallback(async () => {\n setIsLoading(true);\n try {\n const response: EmailLookupResponse = await handleSubmitVerificationHelpRequest(\n programId,\n email,\n );\n setEmailLookupResponse(response);\n } catch (error) {\n logger.error(\"Error resending email:\", error);\n } finally {\n setIsLoading(false);\n }\n }, [programId, email, segment]);\n\n const handleOnClickProceedHere = useCallback(async () => {\n if (!emailInputState.isValidEmail) return;\n setBypassEmailLookup(true);\n setEmailLookupResponse({\n status: EmailLookupStatus.NOT_FOUND,\n message: \"makeChanges\",\n });\n }, [emailInputState.isValidEmail]);\n\n const getOrgByDomain = useCallback(\n async (verificationService: VerificationService): Promise<Organization | undefined> => {\n if (!verificationService) return undefined;\n\n const orgSearchUrl = getOrgSearchUrl(\n verificationService.viewModel as\n | StudentPersonalInfoViewModel\n | TeacherPersonalInfoViewModel,\n verificationService.programTheme,\n );\n\n const emailDomain = getDomainFromEmail(email);\n const orgDomainMatch = new URL(orgSearchUrl);\n orgDomainMatch.searchParams.set(\"domain\", emailDomain);\n\n const response = await fetchOrganization(orgDomainMatch.toString());\n\n return response && response.length === 1 ? response[0] : undefined;\n },\n [email],\n );\n\n if (!isEmailUpTop) {\n return {\n isEmailUpTop,\n isEmailValidationLoading: false,\n showOtherFields: true,\n disableOtherFields: false,\n emailLookupResponse: null,\n showEmailLookupResponseMessages: false,\n showFormFields: true,\n emailOnBlur: () => {},\n emailOnKeyDown: () => {},\n handleResendClick: () => Promise.resolve(),\n emailFirstCollectInfoStep,\n isValidEmail: !getEmailValidationError(email),\n getOrgByDomain: async () => undefined,\n enableFormFields: true,\n };\n }\n\n return {\n isEmailUpTop,\n isEmailValidationLoading: isLoading,\n emailLookupResponse,\n showEmailLookupResponseMessages: !!emailLookupResponse,\n showFormFields,\n emailOnBlur,\n emailOnKeyDown,\n handleResendClick,\n emailFirstCollectInfoStep,\n isValidEmail: emailInputState.isValidEmail,\n getOrgByDomain,\n enableFormFields,\n handleOnClickProceedHere,\n };\n}\n"],"names":["EmailMessageComponent","title","message","closing","helpRequestResponse","onResendClick","hasSent","setHasSent","useState","handleClick","jsxs","jsx","FormattedHTMLMessage","EmailLookupStatus","EmailLookupResponseMessages","emailLookupResponse","onHandleClickLink","Fragment","defaultJsonHeaders","submitVerificationHelpRequest","programId","emailAddress","headers","url","getVerificationHelpUrl","requestBody","response","fetchWithTimeout","error","logger","handleSubmitVerificationHelpRequest","email","resp","status","recordGaEvent","EventName","useEmailFirstExperiment","segment","isLoading","setIsLoading","setEmailLookupResponse","emailFirstCollectInfoStep","useFlag","isEmailUpTop","bypassEmailLookup","setBypassEmailLookup","hasBlurred","setHasBlurred","hasKeyPressed","setHasKeyPressed","emailInputState","setEmailInputState","getEmailValidationError","userDidConvert","useMetrics","updateEmailState","useCallback","newEmail","isValid","prevState","useEffect","enableFormFields","useMemo","showFormFields","emailOnBlur","COLLECT_INFO_SUBMIT","COLLECT_INFO_SUBMISSION_TIME","emailOnKeyDown","event","handleResendClick","handleOnClickProceedHere","getOrgByDomain","verificationService","orgSearchUrl","getOrgSearchUrl","emailDomain","getDomainFromEmail","orgDomainMatch","fetchOrganization"],"mappings":";AAWA,MAAMA,IAAwB,CAAC;AAAA,EAC7B,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,qBAAAC,IAAsB;AAAA,EACtB,eAAAC;AACF,MAAkC;AAChC,QAAM,CAACC,GAASC,CAAU,IAAIC,WAAS,EAAK,GAEtCC,IAAc,YAAY;AAC9B,IAAIJ,MACF,MAAMA,EAAc,GACpBE,EAAW,EAAI;AAAA,EACjB;AAIA,SAAAG,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WACEN,MAAwB,UACpB,mGACA;AAAA,MAGN,UAAA;AAAA,QAACO,gBAAAA,EAAA,IAAA,OAAA,EAAI,WAAU,kCAAkC,UAAMV,GAAA;AAAA,QACtDU,gBAAAA,EAAA,IAAA,OAAA,EAAI,WAAU,oCAAoC,UAAQT,GAAA;AAAA,QAC1DS,gBAAAA,EAAA,IAAA,OAAA,EAAI,WAAU,qEACZ,UACHR,GAAA;AAAA,QACAQ,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,yBACb,UAAAA,gBAAAA,EAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,WACE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R2GuRI.js
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
5
5
|
*/
|
6
6
|
/**
|
7
|
-
* VERSION: 2.
|
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
12
|
const e = {
|
13
13
|
"defaultMessages.ACTIVE_DUTY": "Đang Tại Ngũ",
|
package/chunk/zh-HK-BI-IHOGG.js
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
5
5
|
*/
|
6
6
|
/**
|
7
|
-
* VERSION: 2.
|
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
12
|
const e = {
|
13
13
|
"defaultMessages.ACTIVE_DUTY": "現役",
|
package/chunk/zh-eoMG5RFC.js
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
5
5
|
*/
|
6
6
|
/**
|
7
|
-
* VERSION: 2.
|
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
12
|
const e = {
|
13
13
|
"defaultMessages.ACTIVE_DUTY": "现役",
|
package/chunk/zu-D_A8wcJW.js
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
5
5
|
*/
|
6
6
|
/**
|
7
|
-
* VERSION: 2.
|
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
12
|
const e = {
|
13
13
|
"defaultMessages.ACTIVE_DUTY": "Umsebenzi Engiwenzayo",
|
package/dev/programIds.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { VerificationStepsEnum } from '../src/lib/types/runtimeTypes';
|
2
1
|
import { Segment } from '../src/lib/types/types';
|
2
|
+
import { VerificationStepsEnum } from '../src/lib/types/runtimeTypes';
|
3
3
|
|
4
4
|
export declare const ServiceUrls: {
|
5
5
|
readonly production: "https://services.sheerid.com/";
|
package/es6.css
CHANGED
@@ -1,8 +1,8 @@
|
|
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: 1746122171501
|
5
|
+
* BUILD_DATE: Thu May 01 2025 17:56:11 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 11de903d86267c3dbd7e05948a323fa12b63d0ec
|
7
7
|
*/
|
8
8
|
.sid-inline-iframe{border:0;height:100%;min-width:32rem}.sid-modal__wrapper{background:#fff;border-radius:5px;box-shadow:#989898 10px 10px 15px;left:50%;max-height:calc(100% - 80px);opacity:0;outline:none;overflow-y:auto;position:fixed;top:50%;transform:translate(-50%,-50%);transition:opacity .3s linear;width:32rem;z-index:9998}.sid-modal__wrapper.fade-in{opacity:1}.sid-modal__iframe{border:0;display:block;height:100%;min-width:250px;width:100%}.sid-modal__close-button{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;flex-direction:row;position:absolute;right:10px;text-decoration:none;top:10px;z-index:9999}.sid-modal__close-icon{background-image:url(https://services.sheerid.com/jsapi/img/btn1.png);background-repeat:no-repeat;filter:brightness(25%);height:20px;width:20px}.sid-modal__close-text{color:#000;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:var(--sheerid-font-size-body);margin-right:5px}.sid-modal__overlay{background-color:#b3b3b3;height:100%;left:0;opacity:0;position:fixed;top:0;transition:opacity .3s linear;width:100%;z-index:9997}.sid-modal__overlay.fade-in{opacity:.75}@media (width <= 620px){.sid-modal__wrapper{max-width:calc(100vw - 1rem)}}@media (width <= 32rem){.sid-inline-iframe{min-width:calc(100vw - 1rem);width:100%}}:root{--sheerid-button-border-width: 1px}.sid-button-container{display:grid;gap:.5em;grid-template-columns:1fr;margin-top:.5em}.sid-button{border:solid var(--sheerid-button-border-width) transparent;outline-offset:2px;padding:var(--sheerid-font-size-medium);transition:border .2s,background .2s,color .2s;width:100%}.sid-button-font{font-size:1rem;font-weight:600}.sid-button:hover{cursor:pointer}.sid-button[aria-disabled=true]{background-color:#f3f4f6;border:solid 1px transparent;color:#9ca3af;cursor:not-allowed}:root{--sheerid-button-primary-background-color: hsl(189deg 72% 50%);--sheerid-button-primary-border-color: transparent;--sheerid-button-primary-color: hsl(0deg 0% 100%);--sheerid-button-primary-background-color-hover: hsl(189deg 72% 46%);--sheerid-button-primary-border-color-hover: transparent;--sheerid-button-primary-color-hover: hsl(0deg 0% 100%);--sheerid-button-primary-background-color-active: hsl(189deg 72% 42%);--sheerid-button-primary-border-color-active: transparent;--sheerid-button-primary-color-active: hsl(0deg 0% 100%)}.sid-button-primary{background-color:var(--sheerid-button-primary-background-color);border-color:var(--sheerid-button-primary-border-color);color:var(--sheerid-button-primary-color)}.sid-button-primary:hover,.sid-button-primary:focus-visible{background-color:var(--sheerid-button-primary-background-color-hover);border-color:var(--sheerid-button-primary-border-color-hover);color:var(--sheerid-button-primary-color-hover)}.sid-button-primary:active{background-color:var(--sheerid-button-primary-background-color-active);border-color:var(--sheerid-button-primary-border-color-active);color:var(--sheerid-button-primary-color-active)}:root{--sheerid-button-secondary-background-color: hsl(0deg 0% 100%);--sheerid-button-secondary-border-color: hsl(189deg 72% 50%);--sheerid-button-secondary-color: hsl(189deg 72% 50%);--sheerid-button-secondary-background-color-hover: hsl(189deg 72% 96%);--sheerid-button-secondary-border-color-hover: hsl(189deg 72% 50%);--sheerid-button-secondary-color-hover: hsl(189deg 72% 50%);--sheerid-button-secondary-background-color-active: hsl(189deg 72% 92%);--sheerid-button-secondary-border-color-active: hsl(189deg 72% 50%);--sheerid-button-secondary-color-active: hsl(189deg 72% 50%)}.sid-button-secondary{background-color:var(--sheerid-button-secondary-background-color);border-color:var(--sheerid-button-secondary-border-color);color:var(--sheerid-button-secondary-color)}.sid-button-secondary:hover,.sid-button-secondary:focus-visible{background-color:var(--sheerid-button-secondary-background-color-hover);border-color:var(--sheerid-button-secondary-border-color-hover);color:var(--sheerid-button-secondary-color-hover)}.sid-button-secondary:active{background-color:var(--sheerid-button-secondary-background-color-active);border-color:var(--sheerid-button-secondary-border-color-active);color:var(--sheerid-button-secondary-color-active)}:root{--sheerid-button-destructive-background-color: hsl(348deg 76% 100%);--sheerid-button-destructive-border-color: hsl(348deg 76% 50%);--sheerid-button-destructive-color: hsl(348deg 76% 50%);--sheerid-button-destructive-background-color-hover: hsl(348deg 76% 96%);--sheerid-button-destructive-border-color-hover: hsl(348deg 76% 50%);--sheerid-button-destructive-color-hover: hsl(348deg 76% 50%);--sheerid-button-destructive-background-color-active: hsl(348deg 76% 92%);--sheerid-button-destructive-border-color-active: hsl(348deg 76% 50%);--sheerid-button-destructive-color-active: hsl(348deg 76% 50%)}.sid-button-destructive{background-color:var(--sheerid-button-destructive-background-color);border-color:var(--sheerid-button-destructive-border-color);color:var(--sheerid-button-destructive-color)}.sid-button-destructive:hover,.sid-button-destructive:focus-visible{background-color:var(--sheerid-button-destructive-background-color-hover);border-color:var(--sheerid-button-destructive-border-color-hover);color:var(--sheerid-button-destructive-border-color-hover)}.sid-button-destructive:active{background-color:var(--sheerid-button-destructive-background-color-active);border-color:var(--sheerid-button-destructive-border-color-active);color:var(--sheerid-button-destructive-border-color-active)}.sid-button-textLike{background:transparent;border:none;border-radius:0;font:inherit;padding:0;width:auto}
|
package/jslib.js
CHANGED
@@ -1,11 +1,11 @@
|
|
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: 1746122171501
|
5
|
+
* BUILD_DATE: Thu May 01 2025 17:56:11 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 11de903d86267c3dbd7e05948a323fa12b63d0ec
|
7
7
|
*/
|
8
|
-
import {
|
8
|
+
import { bz as s, cU as o, U as t, a5 as n, aK as i, ea as r, cO as d, y as l, aa as m, av as c, ai as p, C, c$ as g, cP as E, a2 as S, bC as u, bB as R, bE as I, dB as b, aM as T, e9 as V, aT as _, E as y, _ as F, ei as O, b9 as M, dS as D, B as L, bm as f, e7 as P, O as h, as as N, aq as A, cS as U, Y as v, cT as k, a1 as w, p as G, dl as B, dA as Q, dC as H, bG as Y, bh as x, bo as W, c_ as z, d2 as q, a7 as K, v as J, dR as X, dN as j, dQ as Z, dM as $, ek as aa, em as ea, T as sa, e6 as oa, am as ta, bp as na, r as ia, aW as ra, bg as da, b5 as la, ej as ma, eh as ca, Z as pa, ay as Ca, aw as ga, a6 as Ea, a3 as Sa, aP as ua, bj as Ra, bq as Ia, bs as ba, cQ as Ta, dL as Va, dU as _a, o as ya, N as Fa, X as Oa, dz as Ma, P as Da, W as La, dP as fa, cW as Pa, cX as ha, bK as Na, Q as Aa, bN as Ua, bM as va, ad as ka, bL as wa, bI as Ga, bH as Ba, bJ as Qa, el as Ha, d1 as Ya, R as xa, b4 as Wa, bF as za, a0 as qa, bD as Ka, d0 as Ja, aQ as Xa, bl as ja, d$ as Za, dW as $a, d_ as ae, z as ee, dX as se, x as oe, cR as te, bi as ne, aj as ie, ac as re, a as de, w as le, e3 as me, e4 as ce, e5 as pe, b as Ce, S as ge, b1 as Ee, an as Se, cZ as ue, cY as Re, bn as Ie, dO as be, bA as Te, cV as Ve, K as _e, cN as ye, bk as Fe, V as Oe, bf as Me, cl as De, dF as Le, dr as fe, c2 as Pe, c0 as he, bW as Ne, b_ as Ae, bY as Ue, bZ as ve, bU as ke, bT as we, bR as Ge, bV as Be, bS as Qe, b$ as He, bX as Ye, bQ as xe, at as We, dd as ze, bu as qe, e8 as Ke, cC as Je, dH as Xe, dG as je, ch as Ze, da as $e, db as as, dY as es, dn as ss, c4 as os, cK as ts, dD as ns, dc as is, dm as rs, a8 as ds, d3 as ls, cu as ms, aJ as cs, ak as ps, cs as Cs, ct as gs, cB as Es, cg as Ss, ci as us, a9 as Rs, cH as Is, dq as bs, b8 as Ts, cv as Vs, dk as _s, cr as ys, d5 as Fs, c5 as Os, dj as Ms, cE as Ds, d4 as Ls, cm as fs, ae as Ps, cx as hs, aR as Ns, cw as As, dE as Us, co as vs, dv as ks, du as ws, ds as Gs, $ as Bs, cA as Qs, dy as Hs, cb as Ys, c9 as xs, cz as Ws, cy as zs, dt as qs, e as Ks, cI as Js, bd as Xs, bx as js, dx as Zs, i as $s, d9 as ao, ap as eo, bv as so, cL as oo, cJ as to, dw as no, d6 as io, n as ro, dT as lo, k as mo, cn as co, dK as po, c7 as Co, c6 as go, eg as Eo, c1 as So, c8 as uo, dI as Ro, e0 as Io, e1 as bo, l as To, aX as Vo, dg as _o, cF as yo, ca as Fo, de as Oo, H as Mo, e2 as Do, dV as Lo, df as fo, ab as Po, d8 as ho, eb as No, ed as Ao, ec as Uo, di as vo, br as ko, cM as wo, cj as Go, ba as Bo, ck as Qo, cq as Ho, bP as Yo, cG as xo, cc as Wo, aO as zo, dh as qo, bw as Ko, ce as Jo, cD as Xo, cf as jo, ee as Zo, by as $o, ef as at, cp as et, bO as st, G as ot, bt as tt, cd as nt, ah as it, ao as rt, dp as dt, dJ as lt, D as mt, dZ as ct, d7 as pt, u as Ct, aN as gt, a4 as Et, J as St, be as ut, c3 as Rt } from "./lib/es6-DS7nD0gX.js";
|
9
9
|
export {
|
10
10
|
s as ACCEPTED_DOC_MIME_TYPES,
|
11
11
|
o as AcceptableUploadsComponent,
|
@@ -31,8 +31,8 @@ export {
|
|
31
31
|
_ as DriverLicenseNumberComponent,
|
32
32
|
y as EmailComponent,
|
33
33
|
F as ExtraMessage,
|
34
|
-
|
35
|
-
|
34
|
+
O as FIRST_RESPONDER_STATUS,
|
35
|
+
M as FaqLinkComponent,
|
36
36
|
D as FetchOrganizationsComponent,
|
37
37
|
L as FieldIdEnum,
|
38
38
|
f as FieldIds,
|
@@ -51,8 +51,8 @@ export {
|
|
51
51
|
Y as HTTP_REQUEST_TIMEOUT,
|
52
52
|
x as HookNameEnum,
|
53
53
|
W as HookNames,
|
54
|
-
|
55
|
-
|
54
|
+
z as HowDoesVerifyingWorkComponent,
|
55
|
+
q as IDCheckLoopPendingComponent,
|
56
56
|
K as IdCheckLoopOnfidoComponent,
|
57
57
|
J as IdCheckLoopRegulaComponent,
|
58
58
|
X as InputSelectButtonComponent,
|
@@ -85,8 +85,8 @@ export {
|
|
85
85
|
_a as OrganizationListComponent,
|
86
86
|
ya as PersonalInfoStepSubmitButton,
|
87
87
|
Fa as PersonalInfoWrapper,
|
88
|
-
|
89
|
-
|
88
|
+
Oa as PhoneNumberComponent,
|
89
|
+
Ma as PostFiles,
|
90
90
|
Da as PostJson,
|
91
91
|
La as PostalCodeComponent,
|
92
92
|
fa as PostalCodeInputComponent,
|
@@ -105,8 +105,8 @@ export {
|
|
105
105
|
Ya as ReviewPendingComponent,
|
106
106
|
xa as RewardDisplayEnum,
|
107
107
|
Wa as RewardsRemainingComponent,
|
108
|
-
|
109
|
-
|
108
|
+
za as SHEERID,
|
109
|
+
qa as SMSCodeComponent,
|
110
110
|
Ka as SSN_STRING_LENGTH,
|
111
111
|
Ja as SSOPendingComponent,
|
112
112
|
Xa as SegmentEnum,
|
@@ -139,8 +139,8 @@ export {
|
|
139
139
|
_e as VerificationApiClient,
|
140
140
|
ye as VerificationForm,
|
141
141
|
Fe as VerificationSteps,
|
142
|
-
|
143
|
-
|
142
|
+
Oe as VerificationStepsEnum,
|
143
|
+
Me as addFiles,
|
144
144
|
De as addHook,
|
145
145
|
Le as allMockedResponses,
|
146
146
|
fe as arrayUnique,
|
@@ -159,8 +159,8 @@ export {
|
|
159
159
|
Ye as assertValidTryAgainStep,
|
160
160
|
xe as assertValidVerificationStepName,
|
161
161
|
We as blankOrganization,
|
162
|
-
|
163
|
-
|
162
|
+
ze as carrierConsentValueValidator,
|
163
|
+
qe as closeTabRef,
|
164
164
|
Ke as collectDeviceProfile,
|
165
165
|
Je as conversion,
|
166
166
|
Xe as convertByTrackingId,
|
@@ -193,8 +193,8 @@ export {
|
|
193
193
|
_s as getExtendedFieldValidationErrorsEmpty,
|
194
194
|
ys as getFaqLink,
|
195
195
|
Fs as getFieldDisplayOrderFromRefs,
|
196
|
-
|
197
|
-
|
196
|
+
Os as getFieldValidationErrors,
|
197
|
+
Ms as getFieldValidationErrorsEmpty,
|
198
198
|
Ds as getFingerprint,
|
199
199
|
Ls as getFirstErroredFieldId,
|
200
200
|
fs as getHook,
|
@@ -213,8 +213,8 @@ export {
|
|
213
213
|
Ys as getOverridenValidator,
|
214
214
|
xs as getPhoneNumberValidationError,
|
215
215
|
Ws as getPrivacyPolicyCompanyName,
|
216
|
-
|
217
|
-
|
216
|
+
zs as getPrivacyPolicyUrl,
|
217
|
+
qs as getProgramThemeUrl,
|
218
218
|
Ks as getQueryOrOption,
|
219
219
|
Js as getQueryParamsFromUrl,
|
220
220
|
Xs as getRefByFieldId,
|
@@ -246,8 +246,8 @@ export {
|
|
246
246
|
_o as orgsInStatus,
|
247
247
|
yo as overrideComponent,
|
248
248
|
Fo as overrideValidator,
|
249
|
-
|
250
|
-
|
249
|
+
Oo as phoneNumberValidator,
|
250
|
+
Mo as populateViewModelFromQueryParams,
|
251
251
|
Do as postVerificationSizeUpdates,
|
252
252
|
Lo as postalCodeMatchers,
|
253
253
|
fo as postalCodeValidator,
|
@@ -266,8 +266,8 @@ export {
|
|
266
266
|
Yo as resetOptions,
|
267
267
|
xo as resetOverriddenComponents,
|
268
268
|
Wo as resetOverriddenValidators,
|
269
|
-
|
270
|
-
|
269
|
+
zo as resetRefs,
|
270
|
+
qo as resetStore,
|
271
271
|
Ko as resetTabRef,
|
272
272
|
Jo as resetViewModel,
|
273
273
|
Xo as resolveTrackingId,
|
@@ -1,15 +1,15 @@
|
|
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: 1746122171501
|
5
|
+
* BUILD_DATE: Thu May 01 2025 17:56:11 GMT+0000 (Coordinated Universal Time)
|
6
|
+
* BUILD_COMMIT: 11de903d86267c3dbd7e05948a323fa12b63d0ec
|
7
7
|
*/
|
8
|
-
import {
|
8
|
+
import { i as _, H as C, J as w, j as e, r as y, A as V, l as g, V as f, K as A, M as T } from "./es6-DS7nD0gX.js";
|
9
9
|
import n from "react";
|
10
|
-
import {
|
10
|
+
import { FormattedHTMLMessage as a, injectIntl as v } from "react-intl";
|
11
11
|
const P = 1e4, H = ({ intl: o, verificationService: s }) => {
|
12
|
-
const t = s.verificationResponse, { programId: h } = s, { verificationId: d } = t, { canResendEmailLoop: x } = t, L = t.cancelUrl, i = s.viewModel, m = s.previousViewModel || void 0,
|
12
|
+
const t = s.verificationResponse, { programId: h } = s, { verificationId: d } = t, { canResendEmailLoop: x } = t, L = t.cancelUrl, i = s.viewModel, m = s.previousViewModel || void 0, M = s.previousVerificationResponse || void 0, [r, c] = n.useState(""), p = _(() => m.email), b = () => {
|
13
13
|
g.info("StepEmailLoopComponent submitting form"), s.submitStep(
|
14
14
|
f.emailLoop,
|
15
15
|
i,
|
@@ -19,18 +19,18 @@ const P = 1e4, H = ({ intl: o, verificationService: s }) => {
|
|
19
19
|
n.useEffect(() => {
|
20
20
|
C(s);
|
21
21
|
}, []), n.useEffect(() => {
|
22
|
-
i.emailToken &&
|
22
|
+
i.emailToken && b();
|
23
23
|
}, [i.emailToken]), w(() => {
|
24
24
|
s.fetchExistingVerificationRequest(
|
25
25
|
h,
|
26
26
|
d,
|
27
|
-
|
27
|
+
M,
|
28
28
|
m,
|
29
29
|
!1
|
30
30
|
);
|
31
31
|
}, P);
|
32
32
|
const j = async (l) => {
|
33
|
-
const u = await
|
33
|
+
const u = await A.getResendNewEmailCode(l);
|
34
34
|
if (u) {
|
35
35
|
const k = {
|
36
36
|
id: "step.emailLoop.successResend",
|
@@ -39,9 +39,9 @@ const P = 1e4, H = ({ intl: o, verificationService: s }) => {
|
|
39
39
|
id: "step.emailLoop.errors.resend",
|
40
40
|
defaultMessage: "Error sending email"
|
41
41
|
}, N = u.status === 204 ? o.formatHTMLMessage(k) : o.formatHTMLMessage(R);
|
42
|
-
|
42
|
+
c(N);
|
43
43
|
} else
|
44
|
-
|
44
|
+
c(
|
45
45
|
o.formatHTMLMessage({
|
46
46
|
id: "step.emailLoop.errors.resend",
|
47
47
|
defaultMessage: "Error sending email"
|
@@ -49,7 +49,7 @@ const P = 1e4, H = ({ intl: o, verificationService: s }) => {
|
|
49
49
|
);
|
50
50
|
}, E = async () => {
|
51
51
|
g.info("StepEmailLoopComponent submitting form after skipping email loop");
|
52
|
-
const l =
|
52
|
+
const l = T(i, () => {
|
53
53
|
});
|
54
54
|
s.submitStep(
|
55
55
|
f.cancelEmailLoop,
|
@@ -134,7 +134,7 @@ const P = 1e4, H = ({ intl: o, verificationService: s }) => {
|
|
134
134
|
children: /* @__PURE__ */ e.jsx(a, { id: "step.emailLoop.resendButton", defaultMessage: "Re-send" })
|
135
135
|
}
|
136
136
|
) }),
|
137
|
-
|
137
|
+
r && /* @__PURE__ */ e.jsx("div", { className: "sid-resent-email-loop-email-message", children: /* @__PURE__ */ e.jsx("p", { children: r }) }),
|
138
138
|
/* @__PURE__ */ e.jsx("div", { className: "sid-l-space-top-xl" })
|
139
139
|
] });
|
140
140
|
}, F = v(H);
|