@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.
Files changed (462) hide show
  1. package/__tests__/__helpers__/renderers.d.ts +5 -5
  2. package/_mysheerid-preview.css +4 -4
  3. package/_mysheerid-preview.js +16418 -17936
  4. package/_mysheerid-preview.js.map +1 -1
  5. package/chunk/{EmailLoopPending-Cp3dQjbH.js → EmailLoopPending-D-O7IRrU.js} +17 -17
  6. package/chunk/{EmailLoopPending-Cp3dQjbH.js.map → EmailLoopPending-D-O7IRrU.js.map} +1 -1
  7. package/chunk/{EmailLoopPending-WTPkkJsm.js → EmailLoopPending-DmENoLpP.js} +17 -17
  8. package/chunk/{EmailLoopPending-WTPkkJsm.js.map → EmailLoopPending-DmENoLpP.js.map} +1 -1
  9. package/chunk/LicensedProfessionalOrganizationComponent-BrW9osPt.js +55 -0
  10. package/chunk/LicensedProfessionalOrganizationComponent-BrW9osPt.js.map +1 -0
  11. package/chunk/LicensedProfessionalOrganizationComponent-Cu6a9uBs.js +51 -0
  12. package/chunk/LicensedProfessionalOrganizationComponent-Cu6a9uBs.js.map +1 -0
  13. package/chunk/{Onfido-AyvUk6wg.js → Onfido-CMH3IUna.js} +28 -28
  14. package/chunk/{Onfido-AyvUk6wg.js.map → Onfido-CMH3IUna.js.map} +1 -1
  15. package/chunk/{StepIDCheckLoopOnfido-Dbk23JEP.js → StepIDCheckLoopOnfido-BRtMQNQl.js} +12 -13
  16. package/chunk/{StepIDCheckLoopOnfido-DbTm06es.js.map → StepIDCheckLoopOnfido-BRtMQNQl.js.map} +1 -1
  17. package/chunk/{StepIDCheckLoopOnfido-DbTm06es.js → StepIDCheckLoopOnfido-mZhLONqq.js} +12 -13
  18. package/chunk/{StepIDCheckLoopOnfido-Dbk23JEP.js.map → StepIDCheckLoopOnfido-mZhLONqq.js.map} +1 -1
  19. package/chunk/{StepIDCheckLoopRegula-CeadrU2e.js → StepIDCheckLoopRegula-1wd-jJGJ.js} +85 -58
  20. package/chunk/StepIDCheckLoopRegula-1wd-jJGJ.js.map +1 -0
  21. package/chunk/{StepIDCheckLoopRegula-B7RS9_LL.js → StepIDCheckLoopRegula-jyg1vIi3.js} +85 -58
  22. package/chunk/StepIDCheckLoopRegula-jyg1vIi3.js.map +1 -0
  23. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.js → StepInactiveMilitaryPersonalInfoComponent-CmQGKlal.js} +52 -52
  24. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js.map → StepInactiveMilitaryPersonalInfoComponent-CmQGKlal.js.map} +1 -1
  25. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js → StepInactiveMilitaryPersonalInfoComponent-Qfl3ZvB1.js} +52 -52
  26. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.js.map → StepInactiveMilitaryPersonalInfoComponent-Qfl3ZvB1.js.map} +1 -1
  27. package/chunk/ar-CtJ_9k3U.js +4 -4
  28. package/chunk/bg-CWxXfiDq.js +4 -4
  29. package/chunk/bn-IN-Dpq_hCqt.js +4 -4
  30. package/chunk/cs-HevyelX7.js +4 -4
  31. package/chunk/da-6QXhWjWH.js +4 -4
  32. package/chunk/de-ChuCvRLv.js +4 -4
  33. package/chunk/el-3IAhABcN.js +4 -4
  34. package/chunk/en-GB-ByNBaer-.js +4 -4
  35. package/chunk/es-CL_dUc9X.js +4 -4
  36. package/chunk/es-ES-CW4At4Ol.js +4 -4
  37. package/chunk/fi-D8cIebkk.js +4 -4
  38. package/chunk/fr-BDU-1C6f.js +4 -4
  39. package/chunk/fr-CA-Dc02rv8D.js +4 -4
  40. package/chunk/ga-P7eP-INQ.js +4 -4
  41. package/chunk/hi-IN-DlmwjoqH.js +4 -4
  42. package/chunk/hr-CT_VP_lm.js +4 -4
  43. package/chunk/hu-I8Z1uXsR.js +4 -4
  44. package/chunk/id-CUPTGKOT.js +4 -4
  45. package/chunk/{index-Dl7QItmr.js → index-1tM2UWke.js} +56 -48
  46. package/chunk/{index-Dl7QItmr.js.map → index-1tM2UWke.js.map} +1 -1
  47. package/chunk/{index-XXxK9rgV.js → index-25aIMfhs.js} +87 -86
  48. package/chunk/index-25aIMfhs.js.map +1 -0
  49. package/chunk/{index-BOpxl8V9.js → index-2tpdu0Sm.js} +28 -28
  50. package/chunk/{index-BOpxl8V9.js.map → index-2tpdu0Sm.js.map} +1 -1
  51. package/chunk/{index-CaSKZsTY.js → index-BJxmlJd1.js} +15 -15
  52. package/chunk/{index-CaSKZsTY.js.map → index-BJxmlJd1.js.map} +1 -1
  53. package/chunk/{index-4APDQFqJ.js → index-BSXBGGOf.js} +10 -10
  54. package/{lib/index-BHwYKmBe.js.map → chunk/index-BSXBGGOf.js.map} +1 -1
  55. package/chunk/index-B_CvWvhW.js +27 -0
  56. package/chunk/index-B_CvWvhW.js.map +1 -0
  57. package/chunk/{index-DFQ4PjGJ.js → index-BgB4HxER.js} +58 -58
  58. package/chunk/{index-CtqWr1aK.js.map → index-BgB4HxER.js.map} +1 -1
  59. package/chunk/{index-RmF57u5_.js → index-BjWeyRVL.js} +43 -43
  60. package/chunk/{index-C0jDbJPp.js.map → index-BjWeyRVL.js.map} +1 -1
  61. package/chunk/{index-qAxcloBs.js → index-BmJ3aubI.js} +11 -11
  62. package/chunk/{index-qAxcloBs.js.map → index-BmJ3aubI.js.map} +1 -1
  63. package/chunk/{index-CtqWr1aK.js → index-BrVZpRb7.js} +58 -58
  64. package/chunk/{index-DFQ4PjGJ.js.map → index-BrVZpRb7.js.map} +1 -1
  65. package/chunk/index-Bv_0MGCt.js +31 -0
  66. package/chunk/index-Bv_0MGCt.js.map +1 -0
  67. package/chunk/{index-aKTpkBwz.js → index-C3tQa9xA.js} +56 -48
  68. package/chunk/{index-aKTpkBwz.js.map → index-C3tQa9xA.js.map} +1 -1
  69. package/chunk/{index-C0jDbJPp.js → index-C6cgSdQ9.js} +43 -43
  70. package/chunk/{index-RmF57u5_.js.map → index-C6cgSdQ9.js.map} +1 -1
  71. package/chunk/{index-D3dphMnl.js → index-CEidf7uT.js} +15 -15
  72. package/{lib/index-Sytmygw_.js.map → chunk/index-CEidf7uT.js.map} +1 -1
  73. package/chunk/{index-BhkJfnda.js → index-CGKKTwvx.js} +15 -15
  74. package/chunk/{index-BDw8efPp.js.map → index-CGKKTwvx.js.map} +1 -1
  75. package/chunk/{index-BtYzUCrC.js → index-Cb7GlxEu.js} +11 -11
  76. package/chunk/{index-BtYzUCrC.js.map → index-Cb7GlxEu.js.map} +1 -1
  77. package/chunk/{index-DPEoeYI6.js → index-Cq8qB8GK.js} +44 -44
  78. package/chunk/{index-CgSW4Vzh.js.map → index-Cq8qB8GK.js.map} +1 -1
  79. package/chunk/{index-B30_E6pJ.js → index-D1j4nnQa.js} +31 -31
  80. package/chunk/{index-B30_E6pJ.js.map → index-D1j4nnQa.js.map} +1 -1
  81. package/chunk/{index-DB9SisGK.js → index-D6Gez9pU.js} +21 -21
  82. package/chunk/{index-DB9SisGK.js.map → index-D6Gez9pU.js.map} +1 -1
  83. package/chunk/{index-BGCnajPS.js → index-D6RaCifq.js} +30 -30
  84. package/chunk/{index-BFMTiaJv.js.map → index-D6RaCifq.js.map} +1 -1
  85. package/chunk/{index-NjSUlAP4.js → index-D8z4eipH.js} +53 -53
  86. package/chunk/{index-oMg5zy_2.js.map → index-D8z4eipH.js.map} +1 -1
  87. package/chunk/{index-C9bZ7enn.js → index-DFjiwKs3.js} +7 -7
  88. package/chunk/{index-2QV6VPA3.js.map → index-DFjiwKs3.js.map} +1 -1
  89. package/chunk/index-DIkWpujR.js +4 -4
  90. package/chunk/index-DIkWpujR.js.map +1 -1
  91. package/chunk/{index-BDw8efPp.js → index-DJReh58z.js} +15 -15
  92. package/chunk/{index-BhkJfnda.js.map → index-DJReh58z.js.map} +1 -1
  93. package/chunk/{index-DWjrZunN.js → index-DPLvpl1z.js} +10 -10
  94. package/chunk/{index-4APDQFqJ.js.map → index-DPLvpl1z.js.map} +1 -1
  95. package/chunk/{index-DZsw9-0u.js → index-DR_Yi6nm.js} +237 -219
  96. package/chunk/index-DR_Yi6nm.js.map +1 -0
  97. package/chunk/{index-_ohn63ug.js → index-DZ0bnNgg.js} +31 -31
  98. package/chunk/{index-_ohn63ug.js.map → index-DZ0bnNgg.js.map} +1 -1
  99. package/chunk/{index-B3NA0DdP.js → index-D_lbJwrN.js} +87 -86
  100. package/chunk/index-D_lbJwrN.js.map +1 -0
  101. package/chunk/{index-MRhfTdmm.js → index-DyHhX3QL.js} +21 -21
  102. package/chunk/{index-MRhfTdmm.js.map → index-DyHhX3QL.js.map} +1 -1
  103. package/chunk/{index-CgSW4Vzh.js → index-F-HVkQz5.js} +44 -44
  104. package/{lib/index-Cn53lF5X.js.map → chunk/index-F-HVkQz5.js.map} +1 -1
  105. package/chunk/{index-D7dDB9pN.js → index-GaKINs6g.js} +23 -23
  106. package/chunk/{index-DIV55Je2.js.map → index-GaKINs6g.js.map} +1 -1
  107. package/{lib/index-S3ZpXPMJ.js → chunk/index-IntP52Fm.js} +22 -23
  108. package/chunk/{index-BGCnajPS.js.map → index-IntP52Fm.js.map} +1 -1
  109. package/chunk/{index-DIV55Je2.js → index-i9-QlgZ0.js} +23 -23
  110. package/chunk/{index-D7dDB9pN.js.map → index-i9-QlgZ0.js.map} +1 -1
  111. package/chunk/{index-tFgJS6bB.js → index-n6-LNqUp.js} +23 -23
  112. package/chunk/{index-tFgJS6bB.js.map → index-n6-LNqUp.js.map} +1 -1
  113. package/chunk/{index-2QV6VPA3.js → index-rjS-77t0.js} +7 -7
  114. package/chunk/{index-C9bZ7enn.js.map → index-rjS-77t0.js.map} +1 -1
  115. package/chunk/{index-BPEB_HHW.js → index-vIL1gjSk.js} +237 -219
  116. package/chunk/index-vIL1gjSk.js.map +1 -0
  117. package/chunk/{index-CgBENXRP.js → index-whConjrR.js} +23 -23
  118. package/{lib/index-BcE9NN84.js.map → chunk/index-whConjrR.js.map} +1 -1
  119. package/chunk/{index-DtoxnCtM.js → index-y-QcpyIc.js} +28 -28
  120. package/{lib/index-DQvdYpIH.js.map → chunk/index-y-QcpyIc.js.map} +1 -1
  121. package/chunk/{index-oMg5zy_2.js → index-ygMzyxW9.js} +53 -53
  122. package/chunk/{index-NjSUlAP4.js.map → index-ygMzyxW9.js.map} +1 -1
  123. package/chunk/is-CUuXi4qZ.js +4 -4
  124. package/chunk/it-BNmynTsg.js +4 -4
  125. package/chunk/iw-FGzquR_X.js +4 -4
  126. package/chunk/ja-YgUpXA0l.js +4 -4
  127. package/chunk/ko-CuNS5J_M.js +4 -4
  128. package/chunk/lo-BEf8aFjR.js +4 -4
  129. package/chunk/lt-DvX1gz1a.js +4 -4
  130. package/chunk/ms-gSqM-Mfi.js +4 -4
  131. package/chunk/nl-BE-Cid5LFlN.js +4 -4
  132. package/chunk/nl-CUUTswxa.js +4 -4
  133. package/chunk/no-BvUqlShV.js +4 -4
  134. package/chunk/pl-CU8leZhI.js +4 -4
  135. package/chunk/pt-BR-CboWpHFi.js +4 -4
  136. package/chunk/pt-BnK7xRT_.js +4 -4
  137. package/chunk/ro-BfAyXxSW.js +4 -4
  138. package/chunk/ru-BD-YGPuQ.js +4 -4
  139. package/chunk/sk-CqsabpdG.js +4 -4
  140. package/chunk/sl-CeVAf0S_.js +4 -4
  141. package/chunk/sr-DSaHxcCQ.js +4 -4
  142. package/chunk/sv-DOyWYViy.js +4 -4
  143. package/chunk/sw-2Q7Jo6wp.js +4 -4
  144. package/chunk/th-BZ6F9sPf.js +4 -4
  145. package/chunk/tr-om80xrv2.js +4 -4
  146. package/chunk/uk-Dxugux8e.js +4 -4
  147. package/chunk/ur-OBILUeZ7.js +4 -4
  148. package/chunk/{useCollectFieldsEndpoint-BsY8WlOg.js → useCollectFieldsEndpoint-CumMd2sJ.js} +11 -11
  149. package/chunk/{useCollectFieldsEndpoint-BsY8WlOg.js.map → useCollectFieldsEndpoint-CumMd2sJ.js.map} +1 -1
  150. package/chunk/{useCollectFieldsEndpoint-DeICm6Vb.js → useCollectFieldsEndpoint-V5bz5WAF.js} +11 -11
  151. package/chunk/{useCollectFieldsEndpoint-DeICm6Vb.js.map → useCollectFieldsEndpoint-V5bz5WAF.js.map} +1 -1
  152. package/chunk/{useEmailFirstExperiment-3uKuefem.js → useEmailFirstExperiment-CV5nAxtl.js} +30 -29
  153. package/chunk/{useEmailFirstExperiment-3uKuefem.js.map → useEmailFirstExperiment-CV5nAxtl.js.map} +1 -1
  154. package/chunk/{useEmailFirstExperiment-B1_E_D0z.js → useEmailFirstExperiment-mjdDc7vk.js} +30 -29
  155. package/chunk/{useEmailFirstExperiment-B1_E_D0z.js.map → useEmailFirstExperiment-mjdDc7vk.js.map} +1 -1
  156. package/chunk/vi-BOR2GuRI.js +4 -4
  157. package/chunk/zh-HK-BI-IHOGG.js +4 -4
  158. package/chunk/zh-eoMG5RFC.js +4 -4
  159. package/chunk/zu-D_A8wcJW.js +4 -4
  160. package/dev/programIds.d.ts +1 -1
  161. package/es6.css +4 -4
  162. package/jslib.js +25 -25
  163. package/lib/{EmailLoopPending-BWEJteWf.js → EmailLoopPending-DUy2k56y.js} +14 -14
  164. package/lib/{EmailLoopPending-BWEJteWf.js.map → EmailLoopPending-DUy2k56y.js.map} +1 -1
  165. package/lib/LicensedProfessionalOrganizationComponent-BPtxmkjH.js +52 -0
  166. package/lib/LicensedProfessionalOrganizationComponent-BPtxmkjH.js.map +1 -0
  167. package/lib/{Onfido-AyvUk6wg.js → Onfido-CMH3IUna.js} +28 -28
  168. package/lib/{Onfido-AyvUk6wg.js.map → Onfido-CMH3IUna.js.map} +1 -1
  169. package/lib/StepCollectMilitaryStatusComponent-u1rI8N4t.js +11 -0
  170. package/lib/{StepCollectMilitaryStatusComponent-B6FWsKVT.js.map → StepCollectMilitaryStatusComponent-u1rI8N4t.js.map} +1 -1
  171. package/lib/{StepIDCheckLoopOnfido-BoYu03qf.js → StepIDCheckLoopOnfido-DirszrOR.js} +19 -19
  172. package/lib/{StepIDCheckLoopOnfido-BoYu03qf.js.map → StepIDCheckLoopOnfido-DirszrOR.js.map} +1 -1
  173. package/lib/{StepIDCheckLoopRegula-CleO2AvI.js → StepIDCheckLoopRegula-DoIQP1h2.js} +5 -5
  174. package/lib/{StepIDCheckLoopRegula-CleO2AvI.js.map → StepIDCheckLoopRegula-DoIQP1h2.js.map} +1 -1
  175. package/lib/{StepInactiveMilitaryPersonalInfoComponent-CwHB55DG.js → StepInactiveMilitaryPersonalInfoComponent-uX6OkV0d.js} +52 -52
  176. package/lib/{StepInactiveMilitaryPersonalInfoComponent-CwHB55DG.js.map → StepInactiveMilitaryPersonalInfoComponent-uX6OkV0d.js.map} +1 -1
  177. package/lib/VerificationApiUtils-DXDQAg5m.js +21 -0
  178. package/lib/VerificationApiUtils-DXDQAg5m.js.map +1 -0
  179. package/lib/ar-CtJ_9k3U.js +4 -4
  180. package/lib/bg-CWxXfiDq.js +4 -4
  181. package/lib/bn-IN-Dpq_hCqt.js +4 -4
  182. package/lib/cs-HevyelX7.js +4 -4
  183. package/lib/da-6QXhWjWH.js +4 -4
  184. package/lib/de-ChuCvRLv.js +4 -4
  185. package/lib/el-3IAhABcN.js +4 -4
  186. package/lib/en-GB-ByNBaer-.js +4 -4
  187. package/lib/es-CL_dUc9X.js +4 -4
  188. package/lib/es-ES-CW4At4Ol.js +4 -4
  189. package/lib/es6-DS7nD0gX.js +26840 -0
  190. package/lib/es6-DS7nD0gX.js.map +1 -0
  191. package/lib/fi-D8cIebkk.js +4 -4
  192. package/lib/fr-BDU-1C6f.js +4 -4
  193. package/lib/fr-CA-Dc02rv8D.js +4 -4
  194. package/lib/ga-P7eP-INQ.js +4 -4
  195. package/lib/hi-IN-DlmwjoqH.js +4 -4
  196. package/lib/hr-CT_VP_lm.js +4 -4
  197. package/lib/hu-I8Z1uXsR.js +4 -4
  198. package/lib/id-CUPTGKOT.js +4 -4
  199. package/lib/{index-DpFFsGey.js → index--qLF6ZOW.js} +76 -75
  200. package/lib/index--qLF6ZOW.js.map +1 -0
  201. package/lib/index-0NkCv3Y-.js +11 -0
  202. package/lib/index-0NkCv3Y-.js.map +1 -0
  203. package/lib/{index-DQvdYpIH.js → index-9ka8yNRo.js} +23 -23
  204. package/{chunk/index-DtoxnCtM.js.map → lib/index-9ka8yNRo.js.map} +1 -1
  205. package/lib/{index-D0D7HAPn.js → index-AWpSRRq3.js} +60 -60
  206. package/lib/{index-D0D7HAPn.js.map → index-AWpSRRq3.js.map} +1 -1
  207. package/lib/index-B9dEWYQH.js +11 -0
  208. package/lib/index-B9dEWYQH.js.map +1 -0
  209. package/lib/{index-BcE9NN84.js → index-BAFdbWcI.js} +32 -32
  210. package/{chunk/index-CgBENXRP.js.map → lib/index-BAFdbWcI.js.map} +1 -1
  211. package/lib/index-BY6Xy81u.js +11 -0
  212. package/lib/index-BY6Xy81u.js.map +1 -0
  213. package/lib/{index-CRYZY6vI.js → index-C1JFiqbD.js} +24 -24
  214. package/lib/{index-CRYZY6vI.js.map → index-C1JFiqbD.js.map} +1 -1
  215. package/lib/index-C3Iqch6i.js +11 -0
  216. package/lib/index-C3Iqch6i.js.map +1 -0
  217. package/lib/{index-CBDyLXYG.js → index-CCflTrqh.js} +52 -52
  218. package/lib/{index-CBDyLXYG.js.map → index-CCflTrqh.js.map} +1 -1
  219. package/lib/{index-VNMhK7yn.js → index-CJfYYEay.js} +7 -7
  220. package/lib/{index-VNMhK7yn.js.map → index-CJfYYEay.js.map} +1 -1
  221. package/lib/{index-Cn53lF5X.js → index-CLj9YCrn.js} +27 -27
  222. package/{chunk/index-DPEoeYI6.js.map → lib/index-CLj9YCrn.js.map} +1 -1
  223. package/lib/{index-CBifWEeV.js → index-CY10ElCy.js} +402 -385
  224. package/lib/index-CY10ElCy.js.map +1 -0
  225. package/lib/{index-3SRQvj39.js → index-CgJWGuRF.js} +26 -26
  226. package/lib/{index-3SRQvj39.js.map → index-CgJWGuRF.js.map} +1 -1
  227. package/lib/{index-BxVqnD-7.js → index-CkW6g9oh.js} +23 -23
  228. package/lib/{index-BxVqnD-7.js.map → index-CkW6g9oh.js.map} +1 -1
  229. package/lib/{index-eOSlGhXP.js → index-CwqfypY1.js} +5 -5
  230. package/lib/{index-eOSlGhXP.js.map → index-CwqfypY1.js.map} +1 -1
  231. package/{chunk/index-BFMTiaJv.js → lib/index-CyiYceqn.js} +33 -32
  232. package/lib/{index-S3ZpXPMJ.js.map → index-CyiYceqn.js.map} +1 -1
  233. package/lib/{index-BHwYKmBe.js → index-D-0wY68l.js} +10 -10
  234. package/{chunk/index-DWjrZunN.js.map → lib/index-D-0wY68l.js.map} +1 -1
  235. package/lib/{index-BJBWT9wa.js → index-DEYBhR7F.js} +25 -25
  236. package/lib/{index-BJBWT9wa.js.map → index-DEYBhR7F.js.map} +1 -1
  237. package/lib/index-DIkWpujR.js +4 -4
  238. package/lib/index-DIkWpujR.js.map +1 -1
  239. package/lib/index-Da2aS2uY.js +28 -0
  240. package/lib/{index-B8_50Him.js.map → index-Da2aS2uY.js.map} +1 -1
  241. package/lib/{index-Sytmygw_.js → index-DcOpzG-K.js} +5 -5
  242. package/{chunk/index-D3dphMnl.js.map → lib/index-DcOpzG-K.js.map} +1 -1
  243. package/lib/{index-CTem-Vg8.js → index-VC3WFrsr.js} +9 -9
  244. package/lib/{index-CTem-Vg8.js.map → index-VC3WFrsr.js.map} +1 -1
  245. package/lib/{index-CrV2nMoq.js → index-uCUcf8WW.js} +5 -5
  246. package/lib/{index-CrV2nMoq.js.map → index-uCUcf8WW.js.map} +1 -1
  247. package/lib/is-CUuXi4qZ.js +4 -4
  248. package/lib/it-BNmynTsg.js +4 -4
  249. package/lib/iw-FGzquR_X.js +4 -4
  250. package/lib/ja-YgUpXA0l.js +4 -4
  251. package/lib/ko-CuNS5J_M.js +4 -4
  252. package/lib/lo-BEf8aFjR.js +4 -4
  253. package/lib/lt-DvX1gz1a.js +4 -4
  254. package/lib/ms-gSqM-Mfi.js +4 -4
  255. package/lib/nl-BE-Cid5LFlN.js +4 -4
  256. package/lib/nl-CUUTswxa.js +4 -4
  257. package/lib/no-BvUqlShV.js +4 -4
  258. package/lib/pl-CU8leZhI.js +4 -4
  259. package/lib/pt-BR-CboWpHFi.js +4 -4
  260. package/lib/pt-BnK7xRT_.js +4 -4
  261. package/lib/ro-BfAyXxSW.js +4 -4
  262. package/lib/ru-BD-YGPuQ.js +4 -4
  263. package/lib/sk-CqsabpdG.js +4 -4
  264. package/lib/sl-CeVAf0S_.js +4 -4
  265. package/lib/sr-DSaHxcCQ.js +4 -4
  266. package/lib/sv-DOyWYViy.js +4 -4
  267. package/lib/sw-2Q7Jo6wp.js +4 -4
  268. package/lib/th-BZ6F9sPf.js +4 -4
  269. package/lib/tr-om80xrv2.js +4 -4
  270. package/lib/uk-Dxugux8e.js +4 -4
  271. package/lib/ur-OBILUeZ7.js +4 -4
  272. package/lib/{useCollectFieldsEndpoint-CAKKawmD.js → useCollectFieldsEndpoint-DhvzoNQ8.js} +8 -8
  273. package/lib/{useCollectFieldsEndpoint-CAKKawmD.js.map → useCollectFieldsEndpoint-DhvzoNQ8.js.map} +1 -1
  274. package/lib/{useEmailFirstExperiment-vO9rcSms.js → useEmailFirstExperiment-r3ZPOBWV.js} +7 -6
  275. package/lib/{useEmailFirstExperiment-vO9rcSms.js.map → useEmailFirstExperiment-r3ZPOBWV.js.map} +1 -1
  276. package/lib/vi-BOR2GuRI.js +4 -4
  277. package/lib/zh-HK-BI-IHOGG.js +4 -4
  278. package/lib/zh-eoMG5RFC.js +4 -4
  279. package/lib/zu-D_A8wcJW.js +4 -4
  280. package/package.json +4 -4
  281. package/sheerid-install.css +4 -4
  282. package/sheerid-install.js +6 -6
  283. package/sheerid-install.js.map +1 -1
  284. package/sheerid.css +5 -5
  285. package/sheerid.js +16514 -18032
  286. package/sheerid.js.map +1 -1
  287. package/src/components/AcceptableUploadsComponent/AcceptableUploadsComponent.d.ts +1 -1
  288. package/src/components/AcceptableUploadsComponent/getLegacyAcceptableUploads.d.ts +1 -1
  289. package/src/components/Button/Button.d.ts +0 -1
  290. package/src/components/CopyToClipboard/CopyToClipboardComponent.d.ts +1 -2
  291. package/src/components/CustomCssContext/CustomCssContextProvider.d.ts +1 -1
  292. package/src/components/DateComponent/DateComponent.d.ts +2 -2
  293. package/src/components/ExtraMessage.d.ts +1 -1
  294. package/src/components/FaqLink/FaqLinkComponent.d.ts +1 -1
  295. package/src/components/FeatureFlags/ExperimentComponent/ExperimentComponent.d.ts +4 -4
  296. package/src/components/FetchOrganizationsComponent.d.ts +1 -1
  297. package/src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.d.ts +1 -1
  298. package/src/components/FormFields/Address/AddressComponent.d.ts +2 -2
  299. package/src/components/FormFields/BirthDate/BirthDateComponent.d.ts +1 -1
  300. package/src/components/FormFields/BranchOfService/BranchOfServiceComponent.d.ts +2 -2
  301. package/src/components/FormFields/CVECNumber/CVECNumberComponent.d.ts +2 -2
  302. package/src/components/FormFields/ChangeLocale/ChangeLocaleComponent.d.ts +3 -3
  303. package/src/components/FormFields/City/City.d.ts +2 -2
  304. package/src/components/FormFields/CollegeName/CollegeNameComponent.d.ts +2 -2
  305. package/src/components/FormFields/Company/CompanyComponent.d.ts +2 -2
  306. package/src/components/FormFields/Country/CountryComponent.d.ts +2 -2
  307. package/src/components/FormFields/Country/CountryComponentWrapper.d.ts +2 -2
  308. package/src/components/FormFields/DischargeDate/DischargeDateComponent.d.ts +1 -1
  309. package/src/components/FormFields/DriverLicenseNumber/DriverLicenseNumberComponent.d.ts +2 -2
  310. package/src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.d.ts +2 -2
  311. package/src/components/FormFields/Email/EmailComponent.d.ts +2 -2
  312. package/src/components/FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent.d.ts +1 -1
  313. package/src/components/FormFields/EmailFirstCollectInfo/useEmailFirstExperiment.d.ts +1 -1
  314. package/src/components/FormFields/FirstName/FirstNameComponent.d.ts +2 -2
  315. package/src/components/FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent.d.ts +2 -2
  316. package/src/components/FormFields/FormFieldCustom/FormFieldCustom.d.ts +2 -2
  317. package/src/components/FormFields/FormFieldInputSelect/FormFieldInputSelect.d.ts +1 -1
  318. package/src/components/FormFields/FormFieldRadio/FormFieldRadio.d.ts +2 -2
  319. package/src/components/FormFields/FormFieldSelect/FormFieldSelect.d.ts +2 -2
  320. package/src/components/FormFields/FormFieldText/FormFieldText.d.ts +1 -1
  321. package/src/components/FormFields/FormFieldTypeahead/FormFieldTypeahead.d.ts +2 -2
  322. package/src/components/FormFields/LastName/LastNameComponent.d.ts +2 -2
  323. package/src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.d.ts +2 -2
  324. package/src/components/FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent.d.ts +2 -2
  325. package/src/components/FormFields/MarketConsentWrapper/MarketConsentWrapperComponent.d.ts +1 -1
  326. package/src/components/FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent.d.ts +2 -2
  327. package/src/components/FormFields/MemberId/MemberIdComponent.d.ts +2 -2
  328. package/src/components/FormFields/MembershipOrganization/MembershipOrganizationComponent.d.ts +2 -2
  329. package/src/components/FormFields/OptIn/OptInComponent.d.ts +1 -1
  330. package/src/components/FormFields/OverrideCode/OverrideCodeComponent.d.ts +2 -2
  331. package/src/components/FormFields/PhoneNumber/PhoneNumberComponent.d.ts +2 -2
  332. package/src/components/FormFields/PostalCode/PostalCodeComponent.d.ts +2 -2
  333. package/src/components/FormFields/SMSCode/SMSCodeComponent.d.ts +2 -2
  334. package/src/components/FormFields/SSN/SSN.d.ts +2 -2
  335. package/src/components/FormFields/State/State.d.ts +2 -2
  336. package/src/components/FormFields/State/StateSelectComponent.d.ts +2 -2
  337. package/src/components/FormFields/Status/StatusComponent.d.ts +2 -2
  338. package/src/components/FormFields/TeacherSchool/TeacherSchoolComponent.d.ts +2 -2
  339. package/src/components/FormFooter/FooterTextComponent.d.ts +1 -1
  340. package/src/components/FormFooter/FormFooterComponent.d.ts +1 -1
  341. package/src/components/FormHeader/FormHeaderComponent.d.ts +1 -1
  342. package/src/components/FormHeader/StepHeaders/PersonalInfoHeaderComponent.d.ts +1 -1
  343. package/src/components/FormInputs/InputRadio/InputRadio.d.ts +1 -1
  344. package/src/components/FormInputs/InputSelect/InputSelectComponent.d.ts +1 -1
  345. package/src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.d.ts +1 -1
  346. package/src/components/FormInputs/PostalCodeInput/PostalCodeInputComponent.d.ts +1 -1
  347. package/src/components/FormInputs/Select/SelectComponent.d.ts +1 -1
  348. package/src/components/FormInputs/Select/SelectList/SelectListComponent.d.ts +1 -1
  349. package/src/components/FormInputs/Typeahead/TypeaheadComponent.d.ts +1 -1
  350. package/src/components/FormInputs/Typeahead/TypeaheadComponentHelper.d.ts +1 -1
  351. package/src/components/HowDoesVerifyingWork/HowDoesVerifyingWorkComponent.d.ts +1 -1
  352. package/src/components/Layout/Layout.d.ts +1 -1
  353. package/src/components/LoadStepComponent.d.ts +1 -1
  354. package/src/components/LoadingScreen/LoadingScreenComponent.d.ts +1 -1
  355. package/src/components/LoadingScreen/LoadingScreenMessage.d.ts +1 -1
  356. package/src/components/LogoComponent/LogoComponent.d.ts +1 -1
  357. package/src/components/NewVerificationComponent.d.ts +3 -3
  358. package/src/components/NewVerificationInnerComponent.d.ts +1 -1
  359. package/src/components/OrganizationList/OrganizationListComponent.d.ts +1 -1
  360. package/src/components/PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton.d.ts +2 -2
  361. package/src/components/PersonalInfoStepWrapper/PersonalInfoStepWrapper.d.ts +1 -2
  362. package/src/components/PoweredBy/PoweredByComponent.d.ts +1 -1
  363. package/src/components/PrivacyPolicyLink/PrivacyPolicyLinkComponent.d.ts +2 -2
  364. package/src/components/RewardsRemaining/RewardsRemainingComponent.d.ts +1 -1
  365. package/src/components/SingleSignOnComponent.d.ts +2 -2
  366. package/src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.d.ts +2 -2
  367. package/src/components/StepCollectIdentifier/StepCollectIdentifierComponent.d.ts +1 -1
  368. package/src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.d.ts +2 -2
  369. package/src/components/StepConsolation/StepConsolationComponent.d.ts +1 -1
  370. package/src/components/StepDocUpload/StepDocUploadComponent.d.ts +1 -1
  371. package/src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.d.ts +1 -1
  372. package/src/components/StepEmailLoop/EmailLoopPending.d.ts +1 -1
  373. package/src/components/StepEmailLoop/StepEmailLoopComponent.d.ts +2 -2
  374. package/src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.d.ts +1 -1
  375. package/src/components/StepError/StepErrorComponent.d.ts +2 -2
  376. package/src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.d.ts +1 -1
  377. package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopOnfidoFooter.d.ts +1 -1
  378. package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopRegulaFooter.d.ts +1 -1
  379. package/src/components/StepIDCheckLoop/Onfido/IdCheckLoopOnfido/IdCheckLoopOnfido.d.ts +2 -2
  380. package/src/components/StepIDCheckLoop/Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido.d.ts +1 -1
  381. package/src/components/StepIDCheckLoop/Onfido/utils/getAndFormatOrderedStepCards.d.ts +1 -1
  382. package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/DisplayThumbnail.d.ts +1 -1
  383. package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/IdCheckLoopRegula.d.ts +1 -1
  384. package/src/components/StepIDCheckLoop/Regula/StepIDCheckLoopRegulaComponent/StepIDCheckLoopRegula.d.ts +1 -1
  385. package/src/components/StepIDCheckLoop/StepIDCheckLoopComponent.d.ts +1 -1
  386. package/src/components/StepIdentityPersonalInfo/StepDriverLicensePersonalInfoComponent.d.ts +1 -1
  387. package/src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.d.ts +1 -1
  388. package/src/components/StepIdentityPersonalInfo/StepHybridIdentityPersonalInfoComponent.d.ts +1 -1
  389. package/src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.d.ts +1 -1
  390. package/src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.d.ts +1 -1
  391. package/src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.d.ts +1 -1
  392. package/src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.d.ts +1 -1
  393. package/src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.d.ts +1 -1
  394. package/src/components/StepMilitaryPersonalInfo/StepInactiveMilitaryPersonalInfoComponent.d.ts +1 -1
  395. package/src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.d.ts +1 -1
  396. package/src/components/StepOverrideComponent/StepOverrideComponent.d.ts +2 -2
  397. package/src/components/StepPending/ReviewPendingComponent.d.ts +1 -1
  398. package/src/components/StepPending/SingleSignOnPendingComponent.d.ts +2 -2
  399. package/src/components/StepPending/StepPendingComponent.d.ts +1 -1
  400. package/src/components/StepPending/ThirdPartyLoopPendingComponent.d.ts +1 -1
  401. package/src/components/StepSMSLoop/StepSMSLoopComponent.d.ts +2 -2
  402. package/src/components/StepSSO/StepSSOComponent.d.ts +1 -1
  403. package/src/components/StepSeniorPersonalInfo/StepSeniorPersonalInfoComponent.d.ts +1 -1
  404. package/src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.d.ts +1 -1
  405. package/src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.d.ts +1 -1
  406. package/src/components/StepSuccess/StepSuccessComponent.d.ts +1 -1
  407. package/src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.d.ts +1 -1
  408. package/src/components/StepThirdPartyLoop/StepThirdPartyLoopComponent.d.ts +3 -3
  409. package/src/components/TestModeFlag/TestModeFlagComponent.d.ts +1 -1
  410. package/src/components/UploadInfoComponent/UploadInfoComponent.d.ts +1 -1
  411. package/src/components/VerificationForm/VerificationFormComponent.d.ts +1 -1
  412. package/src/es5Bindings/VerificationFormEs5.d.ts +1 -1
  413. package/src/lib/ProgramTheme/programThemeGetters.d.ts +1 -1
  414. package/src/lib/ServerApi/ApiUrls.d.ts +1 -1
  415. package/src/lib/ServerApi/VerificationApiClient.d.ts +1 -1
  416. package/src/lib/ServerApi/VerificationHelpRequestApi.d.ts +1 -1
  417. package/src/lib/VerificationService/VerificationServiceActions.d.ts +1 -1
  418. package/src/lib/hooks/index.d.ts +1 -1
  419. package/src/lib/installScript/_mysheerid-preview.d.ts +2 -2
  420. package/src/lib/installScript/affinity.d.ts +1 -1
  421. package/src/lib/installScript/iframe.d.ts +1 -1
  422. package/src/lib/installScript/index.d.ts +3 -3
  423. package/src/lib/installScript/modal.d.ts +1 -1
  424. package/src/lib/state/contextHooks.d.ts +1 -1
  425. package/src/lib/types/runtimeTypes.d.ts +1 -1
  426. package/src/lib/types/types.d.ts +8 -7
  427. package/src/lib/utils/customTagReplacer/index.d.ts +1 -1
  428. package/src/lib/utils/stepComponentHelpers/stepComponentHelpers.d.ts +2 -2
  429. package/src/lib/utils/structures/FormSelectChoice.d.ts +1 -1
  430. package/types-reference.zip +0 -0
  431. package/chunk/LicensedProfessionalOrganizationComponent-D7gWh3Qx.js +0 -45
  432. package/chunk/LicensedProfessionalOrganizationComponent-D7gWh3Qx.js.map +0 -1
  433. package/chunk/LicensedProfessionalOrganizationComponent-LYrmpWss.js +0 -49
  434. package/chunk/LicensedProfessionalOrganizationComponent-LYrmpWss.js.map +0 -1
  435. package/chunk/StepIDCheckLoopRegula-B7RS9_LL.js.map +0 -1
  436. package/chunk/StepIDCheckLoopRegula-CeadrU2e.js.map +0 -1
  437. package/chunk/index-B2aeWDCT.js +0 -48
  438. package/chunk/index-B2aeWDCT.js.map +0 -1
  439. package/chunk/index-B3NA0DdP.js.map +0 -1
  440. package/chunk/index-BPEB_HHW.js.map +0 -1
  441. package/chunk/index-BqmbVto7.js +0 -52
  442. package/chunk/index-BqmbVto7.js.map +0 -1
  443. package/chunk/index-DZsw9-0u.js.map +0 -1
  444. package/chunk/index-XXxK9rgV.js.map +0 -1
  445. package/lib/LicensedProfessionalOrganizationComponent-8Fz7VzpC.js +0 -46
  446. package/lib/LicensedProfessionalOrganizationComponent-8Fz7VzpC.js.map +0 -1
  447. package/lib/StepCollectMilitaryStatusComponent-B6FWsKVT.js +0 -11
  448. package/lib/VerificationApiUtils-xT8neNEB.js +0 -24
  449. package/lib/VerificationApiUtils-xT8neNEB.js.map +0 -1
  450. package/lib/es6-B4C99nr_.js +0 -27974
  451. package/lib/es6-B4C99nr_.js.map +0 -1
  452. package/lib/index-B8_50Him.js +0 -28
  453. package/lib/index-CBifWEeV.js.map +0 -1
  454. package/lib/index-CTWjUdXx.js +0 -11
  455. package/lib/index-CTWjUdXx.js.map +0 -1
  456. package/lib/index-CiuvIMbL.js +0 -11
  457. package/lib/index-CiuvIMbL.js.map +0 -1
  458. package/lib/index-DZB3KVgZ.js +0 -11
  459. package/lib/index-DZB3KVgZ.js.map +0 -1
  460. package/lib/index-DpFFsGey.js.map +0 -1
  461. package/lib/index-XBfOIml7.js +0 -11
  462. package/lib/index-XBfOIml7.js.map +0 -1
@@ -1,20 +1,20 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.103.0-alpha.1
4
- * BUILD_TIMESTAMP: 1746113249549
5
- * BUILD_DATE: Thu May 01 2025 15:27:29 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: d965970f2cd2a5e2e0ec472faaa3d106de7ca01e
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 l, j as i, a as d, an as R, ao as L, l as E, ap as B, aq as H, ai as q, ar as I, as as G, at as J, au as K, g as Y, av as z, aw as W } from "../sheerid.js";
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: o
14
+ onResendClick: l
15
15
  }) => {
16
- const [e, m] = l.useState(!1), f = async () => {
17
- o && (await o(), m(!0));
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(), o = {
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(o)
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, o = null;
163
- return a.status === 500 ? (c = n.NOT_FOUND, o = "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, o = "An error occurred during verification.") : a.currentStep === "pending" || a.currentStep === "consolation" || a.currentStep === "loading" ? (c = n.PENDING, o = "pending") : a.currentStep.toLowerCase().startsWith("collect") ? o = "Unexpected API response." : (c = n.FOUND, o = a.currentStep)), R({ eventName: L.VERIFICATION_HELP, params: { status: c, programId: t } }), { status: c, message: o };
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, o] = l.useState(!1), [e, m] = l.useState(null), f = q("collect-info-step-email-first"), g = f === "no-message-dimmed-fields", [y, O] = l.useState(!1), [_, j] = l.useState(!1), [x, T] = l.useState(!1), [u, S] = l.useState({
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 = l.useCallback((r) => {
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
- l.useEffect(() => {
187
+ o.useEffect(() => {
188
188
  C(s);
189
189
  }, [s, C]);
190
- const w = l.useMemo(
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 = l.useMemo(
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 = l.useCallback(async () => {
201
+ ), N = o.useCallback(async () => {
202
202
  if (!(!u.isValidEmail || y || x)) {
203
- j(!0), O(!1), o(!0);
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
- o(!1);
210
+ l(!1);
211
211
  }
212
212
  }
213
- }, [t, s, y, x, u.isValidEmail]), v = l.useCallback(
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 = l.useCallback(async () => {
219
- o(!0);
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
- o(!1);
229
+ l(!1);
230
230
  }
231
- }, [t, s, a]), A = l.useCallback(async () => {
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 = l.useCallback(
236
+ }, [u.isValidEmail]), P = o.useCallback(
237
237
  async (r) => {
238
- if (!r) return;
239
- const p = Y(
238
+ if (!r)
239
+ return;
240
+ const p = z(
240
241
  r.viewModel,
241
242
  r.programTheme
242
- ), h = z(s), D = new URL(p);
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;
@@ -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,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A,IAAC;AAAA,IACvB,mBAAmB,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,MA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}
@@ -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.103.0-alpha.1
8
- * BUILD_TIMESTAMP: 1746113289616
9
- * BUILD_DATE: Thu May 01 2025 15:28:09 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: d965970f2cd2a5e2e0ec472faaa3d106de7ca01e
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ũ",
@@ -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.103.0-alpha.1
8
- * BUILD_TIMESTAMP: 1746113289616
9
- * BUILD_DATE: Thu May 01 2025 15:28:09 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: d965970f2cd2a5e2e0ec472faaa3d106de7ca01e
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": "現役",
@@ -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.103.0-alpha.1
8
- * BUILD_TIMESTAMP: 1746113289616
9
- * BUILD_DATE: Thu May 01 2025 15:28:09 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: d965970f2cd2a5e2e0ec472faaa3d106de7ca01e
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": "现役",
@@ -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.103.0-alpha.1
8
- * BUILD_TIMESTAMP: 1746113289616
9
- * BUILD_DATE: Thu May 01 2025 15:28:09 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: d965970f2cd2a5e2e0ec472faaa3d106de7ca01e
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",
@@ -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.103.0-alpha.1
4
- * BUILD_TIMESTAMP: 1746113313312
5
- * BUILD_DATE: Thu May 01 2025 15:28:33 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: d965970f2cd2a5e2e0ec472faaa3d106de7ca01e
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.103.0-alpha.1
4
- * BUILD_TIMESTAMP: 1746113313312
5
- * BUILD_DATE: Thu May 01 2025 15:28:33 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: d965970f2cd2a5e2e0ec472faaa3d106de7ca01e
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 { by as s, cT as o, U as t, a4 as n, aK as i, e9 as r, cN as d, x as l, a9 as m, au as c, ah as p, C, c_ as g, cO as E, a1 as S, bB as u, bA as R, bD as I, dA as b, aM as T, e8 as V, aS as _, E as y, _ as F, eh as M, b8 as O, dR as D, z as L, bl as f, e6 as P, N as h, aq as N, as as A, cR as U, Y as v, cS as k, a0 as w, o as G, dk as B, dz as Q, dB as H, bF as Y, bg as x, bn as W, cZ as q, d1 as z, a6 as K, t as J, dQ as X, dM as j, dP as Z, dL as $, ej as aa, el as ea, T as sa, e5 as oa, al as ta, bo as na, q as ia, aV as ra, bf as da, b4 as la, ei as ma, eg as ca, Z as pa, aw as Ca, ax as ga, a5 as Ea, a2 as Sa, aO as ua, bi as Ra, bp as Ia, br as ba, cP as Ta, dK as Va, dT as _a, n as ya, K as Fa, X as Ma, dy as Oa, P as Da, W as La, dO as fa, cV as Pa, cW as ha, bJ as Na, Q as Aa, bM as Ua, bL as va, ac as ka, bK as wa, bH as Ga, bG as Ba, bI as Qa, ek as Ha, d0 as Ya, R as xa, b3 as Wa, bE as qa, $ as za, bC as Ka, c$ as Ja, aP as Xa, bk as ja, d_ as Za, dV as $a, dZ as ae, y as ee, dW as se, w as oe, cQ as te, bh as ne, ai as ie, ab as re, a as de, v as le, e2 as me, e3 as ce, e4 as pe, b as Ce, S as ge, b0 as Ee, am as Se, cY as ue, cX as Re, bm as Ie, dN as be, bz as Te, cU as Ve, J as _e, cM as ye, bj as Fe, V as Me, be as Oe, ck as De, dE as Le, dq as fe, c1 as Pe, b$ as he, bV as Ne, bZ as Ae, bX as Ue, bY as ve, bT as ke, bS as we, bQ as Ge, bU as Be, bR as Qe, b_ as He, bW as Ye, bP as xe, ar as We, dc as qe, bt as ze, e7 as Ke, cB as Je, dG as Xe, dF as je, cg as Ze, d9 as $e, da as as, dX as es, dm as ss, c3 as os, cJ as ts, dC as ns, db as is, dl as rs, a7 as ds, d2 as ls, ct as ms, aI as cs, aj as ps, cr as Cs, cs as gs, cA as Es, cf as Ss, ch as us, a8 as Rs, cG as Is, dp as bs, b7 as Ts, cu as Vs, dj as _s, cq as ys, d4 as Fs, c4 as Ms, di as Os, cD as Ds, d3 as Ls, cl as fs, ad as Ps, cw as hs, aQ as Ns, cv as As, dD as Us, cn as vs, du as ks, dt as ws, dr as Gs, M as Bs, cz as Qs, dx as Hs, ca as Ys, c8 as xs, cy as Ws, cx as qs, ds as zs, e as Ks, cH as Js, ba as Xs, bw as js, dw as Zs, h as $s, d8 as ao, ap as eo, bu as so, cK as oo, cI as to, dv as no, d5 as io, m as ro, dS as lo, i as mo, cm as co, dJ as po, c6 as Co, c5 as go, ef as Eo, c0 as So, c7 as uo, dH as Ro, d$ as Io, e0 as bo, l as To, aW as Vo, df as _o, cE as yo, c9 as Fo, dd as Mo, G as Oo, e1 as Do, dU as Lo, de as fo, aa as Po, d7 as ho, ea as No, ec as Ao, eb as Uo, dh as vo, bq as ko, cL as wo, ci as Go, b9 as Bo, cj as Qo, cp as Ho, bO as Yo, cF as xo, cb as Wo, aJ as qo, dg as zo, bv as Ko, cd as Jo, cC as Xo, ce as jo, ed as Zo, bx as $o, ee as at, co as et, bN as st, B as ot, bs as tt, cc as nt, ag as it, an as rt, dn as dt, dI as lt, D as mt, dY as ct, d6 as pt, u as Ct, aN as gt, a3 as Et, H as St, bd as ut, c2 as Rt } from "./lib/es6-B4C99nr_.js";
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
- M as FIRST_RESPONDER_STATUS,
35
- O as FaqLinkComponent,
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
- q as HowDoesVerifyingWorkComponent,
55
- z as IDCheckLoopPendingComponent,
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
- Ma as PhoneNumberComponent,
89
- Oa as PostFiles,
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
- qa as SHEERID,
109
- za as SMSCodeComponent,
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
- Me as VerificationStepsEnum,
143
- Oe as addFiles,
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
- qe as carrierConsentValueValidator,
163
- ze as closeTabRef,
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
- Ms as getFieldValidationErrors,
197
- Os as getFieldValidationErrorsEmpty,
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
- qs as getPrivacyPolicyUrl,
217
- zs as getProgramThemeUrl,
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
- Mo as phoneNumberValidator,
250
- Oo as populateViewModelFromQueryParams,
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
- qo as resetRefs,
270
- zo as resetStore,
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.103.0-alpha.1
4
- * BUILD_TIMESTAMP: 1746113313312
5
- * BUILD_DATE: Thu May 01 2025 15:28:33 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: d965970f2cd2a5e2e0ec472faaa3d106de7ca01e
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 { h as _, G as C, H as w, j as e, q as y, A as V, l as g, V as f, p as A, J as T } from "./es6-B4C99nr_.js";
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 { injectIntl as v, FormattedHTMLMessage as a } from "react-intl";
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, b = s.previousVerificationResponse || void 0, [c, r] = n.useState(""), p = _(() => m.email), M = () => {
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 && M();
22
+ i.emailToken && b();
23
23
  }, [i.emailToken]), w(() => {
24
24
  s.fetchExistingVerificationRequest(
25
25
  h,
26
26
  d,
27
- b,
27
+ M,
28
28
  m,
29
29
  !1
30
30
  );
31
31
  }, P);
32
32
  const j = async (l) => {
33
- const u = await T.getResendNewEmailCode(l);
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
- r(N);
42
+ c(N);
43
43
  } else
44
- r(
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 = A(i, () => {
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
- c && /* @__PURE__ */ e.jsx("div", { className: "sid-resent-email-loop-email-message", children: /* @__PURE__ */ e.jsx("p", { children: c }) }),
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);