@sheerid/jslib-nightly 2.103.0-alpha.0 → 2.103.0-alpha.1

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 (452) hide show
  1. package/__tests__/__helpers__/renderers.d.ts +5 -5
  2. package/_mysheerid-preview.css +4 -4
  3. package/_mysheerid-preview.js +17814 -16217
  4. package/_mysheerid-preview.js.map +1 -1
  5. package/chunk/{EmailLoopPending-CKTAwQQA.js → EmailLoopPending-Cp3dQjbH.js} +17 -17
  6. package/chunk/{EmailLoopPending-CKTAwQQA.js.map → EmailLoopPending-Cp3dQjbH.js.map} +1 -1
  7. package/chunk/{EmailLoopPending-Dzs07hxx.js → EmailLoopPending-WTPkkJsm.js} +17 -17
  8. package/chunk/{EmailLoopPending-Dzs07hxx.js.map → EmailLoopPending-WTPkkJsm.js.map} +1 -1
  9. package/chunk/{LicensedProfessionalOrganizationComponent-BNNNPaDn.js → LicensedProfessionalOrganizationComponent-D7gWh3Qx.js} +5 -5
  10. package/chunk/{LicensedProfessionalOrganizationComponent-BNNNPaDn.js.map → LicensedProfessionalOrganizationComponent-D7gWh3Qx.js.map} +1 -1
  11. package/chunk/{LicensedProfessionalOrganizationComponent-trZr_eIW.js → LicensedProfessionalOrganizationComponent-LYrmpWss.js} +5 -5
  12. package/chunk/{LicensedProfessionalOrganizationComponent-trZr_eIW.js.map → LicensedProfessionalOrganizationComponent-LYrmpWss.js.map} +1 -1
  13. package/chunk/{Onfido-CMH3IUna.js → Onfido-AyvUk6wg.js} +28 -28
  14. package/chunk/{Onfido-CMH3IUna.js.map → Onfido-AyvUk6wg.js.map} +1 -1
  15. package/chunk/{StepIDCheckLoopOnfido-C9iUX8TC.js → StepIDCheckLoopOnfido-DbTm06es.js} +12 -11
  16. package/chunk/{StepIDCheckLoopOnfido-C9iUX8TC.js.map → StepIDCheckLoopOnfido-DbTm06es.js.map} +1 -1
  17. package/chunk/{StepIDCheckLoopOnfido-lChJAp_W.js → StepIDCheckLoopOnfido-Dbk23JEP.js} +12 -11
  18. package/chunk/{StepIDCheckLoopOnfido-lChJAp_W.js.map → StepIDCheckLoopOnfido-Dbk23JEP.js.map} +1 -1
  19. package/chunk/{StepIDCheckLoopRegula-D8XhToQz.js → StepIDCheckLoopRegula-B7RS9_LL.js} +58 -85
  20. package/chunk/StepIDCheckLoopRegula-B7RS9_LL.js.map +1 -0
  21. package/chunk/{StepIDCheckLoopRegula-BB8xA4nn.js → StepIDCheckLoopRegula-CeadrU2e.js} +58 -85
  22. package/chunk/StepIDCheckLoopRegula-CeadrU2e.js.map +1 -0
  23. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.js → StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js} +48 -48
  24. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js.map → StepInactiveMilitaryPersonalInfoComponent-CVpOu51H.js.map} +1 -1
  25. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-ClKql0Nd.js → StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.js} +48 -48
  26. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DXkei7Fp.js.map → StepInactiveMilitaryPersonalInfoComponent-Dls2h-Cu.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-YmkMflXj.js → index-2QV6VPA3.js} +7 -7
  46. package/chunk/{index-BnPrfsM1.js.map → index-2QV6VPA3.js.map} +1 -1
  47. package/chunk/{index-DSrYVtDo.js → index-4APDQFqJ.js} +8 -8
  48. package/chunk/{index-DSrYVtDo.js.map → index-4APDQFqJ.js.map} +1 -1
  49. package/chunk/index-B2aeWDCT.js +48 -0
  50. package/chunk/index-B2aeWDCT.js.map +1 -0
  51. package/chunk/{index-DpYUZXus.js → index-B30_E6pJ.js} +29 -29
  52. package/chunk/{index-DnCqjuSC.js.map → index-B30_E6pJ.js.map} +1 -1
  53. package/chunk/{index-BW4s6-PH.js → index-B3NA0DdP.js} +46 -46
  54. package/chunk/{index-BW4s6-PH.js.map → index-B3NA0DdP.js.map} +1 -1
  55. package/chunk/{index-Bld-AWYE.js → index-BDw8efPp.js} +11 -11
  56. package/chunk/{index-CZjGTko2.js.map → index-BDw8efPp.js.map} +1 -1
  57. package/chunk/{index-DGGRPaEI.js → index-BFMTiaJv.js} +30 -30
  58. package/chunk/{index-DGGRPaEI.js.map → index-BFMTiaJv.js.map} +1 -1
  59. package/chunk/{index-B5okgMmp.js → index-BGCnajPS.js} +30 -30
  60. package/chunk/{index-B5okgMmp.js.map → index-BGCnajPS.js.map} +1 -1
  61. package/chunk/{index-Dk8xxijl.js → index-BOpxl8V9.js} +31 -31
  62. package/{lib/index-oDSZ3K4N.js.map → chunk/index-BOpxl8V9.js.map} +1 -1
  63. package/chunk/{index-BvGP9l7M.js → index-BPEB_HHW.js} +219 -237
  64. package/chunk/index-BPEB_HHW.js.map +1 -0
  65. package/chunk/{index-CZjGTko2.js → index-BhkJfnda.js} +11 -11
  66. package/chunk/{index-Bld-AWYE.js.map → index-BhkJfnda.js.map} +1 -1
  67. package/chunk/index-BqmbVto7.js +52 -0
  68. package/chunk/index-BqmbVto7.js.map +1 -0
  69. package/chunk/{index-CCUi9Uhw.js → index-BtYzUCrC.js} +11 -11
  70. package/chunk/{index-CCUi9Uhw.js.map → index-BtYzUCrC.js.map} +1 -1
  71. package/chunk/{index-DCKw4cP_.js → index-C0jDbJPp.js} +45 -45
  72. package/chunk/{index-DCKw4cP_.js.map → index-C0jDbJPp.js.map} +1 -1
  73. package/chunk/{index-BnPrfsM1.js → index-C9bZ7enn.js} +7 -7
  74. package/chunk/{index-YmkMflXj.js.map → index-C9bZ7enn.js.map} +1 -1
  75. package/chunk/{index-DhpucFa7.js → index-CaSKZsTY.js} +15 -15
  76. package/{lib/index-4MLTewcd.js.map → chunk/index-CaSKZsTY.js.map} +1 -1
  77. package/chunk/{index-B1579hxf.js → index-CgBENXRP.js} +28 -28
  78. package/{lib/index-DK8uTv_W.js.map → chunk/index-CgBENXRP.js.map} +1 -1
  79. package/chunk/{index-BjaCS2a8.js → index-CgSW4Vzh.js} +38 -38
  80. package/{lib/index-BM0CWYn5.js.map → chunk/index-CgSW4Vzh.js.map} +1 -1
  81. package/chunk/{index-BDsZCFuU.js → index-CtqWr1aK.js} +58 -58
  82. package/chunk/{index-D6oLMvTq.js.map → index-CtqWr1aK.js.map} +1 -1
  83. package/chunk/{index-Cq__fToG.js → index-D3dphMnl.js} +15 -15
  84. package/chunk/{index-DhpucFa7.js.map → index-D3dphMnl.js.map} +1 -1
  85. package/chunk/{index-Dba2dHcR.js → index-D7dDB9pN.js} +18 -18
  86. package/chunk/{index-Dba2dHcR.js.map → index-D7dDB9pN.js.map} +1 -1
  87. package/chunk/{index-B4B6qxaM.js → index-DB9SisGK.js} +15 -15
  88. package/chunk/{index-BYMr8It7.js.map → index-DB9SisGK.js.map} +1 -1
  89. package/chunk/{index-D6oLMvTq.js → index-DFQ4PjGJ.js} +58 -58
  90. package/chunk/{index-BDsZCFuU.js.map → index-DFQ4PjGJ.js.map} +1 -1
  91. package/chunk/{index-DPv0lytr.js → index-DIV55Je2.js} +18 -18
  92. package/chunk/{index-DPv0lytr.js.map → index-DIV55Je2.js.map} +1 -1
  93. package/chunk/index-DIkWpujR.js +4 -4
  94. package/chunk/index-DIkWpujR.js.map +1 -1
  95. package/chunk/{index-B8tKf2Rd.js → index-DPEoeYI6.js} +38 -38
  96. package/chunk/{index-B8tKf2Rd.js.map → index-DPEoeYI6.js.map} +1 -1
  97. package/chunk/{index-Cp0C-9fh.js → index-DWjrZunN.js} +8 -8
  98. package/{lib/index-BKCtNTGV.js.map → chunk/index-DWjrZunN.js.map} +1 -1
  99. package/chunk/{index-CEi_QkyI.js → index-DZsw9-0u.js} +219 -237
  100. package/chunk/index-DZsw9-0u.js.map +1 -0
  101. package/chunk/{index-CfUabHav.js → index-Dl7QItmr.js} +48 -56
  102. package/chunk/{index-BGGHZBWq.js.map → index-Dl7QItmr.js.map} +1 -1
  103. package/chunk/{index-D1tjxfIg.js → index-DtoxnCtM.js} +31 -31
  104. package/chunk/{index-D1tjxfIg.js.map → index-DtoxnCtM.js.map} +1 -1
  105. package/chunk/{index-BYMr8It7.js → index-MRhfTdmm.js} +15 -15
  106. package/chunk/{index-B4B6qxaM.js.map → index-MRhfTdmm.js.map} +1 -1
  107. package/chunk/{index-QVvWIHrD.js → index-NjSUlAP4.js} +53 -53
  108. package/chunk/{index-DFsuXQL_.js.map → index-NjSUlAP4.js.map} +1 -1
  109. package/chunk/{index-Bb9hNLHu.js → index-RmF57u5_.js} +45 -45
  110. package/chunk/{index-Bb9hNLHu.js.map → index-RmF57u5_.js.map} +1 -1
  111. package/chunk/{index-B92Kfyw6.js → index-XXxK9rgV.js} +46 -46
  112. package/chunk/{index-B92Kfyw6.js.map → index-XXxK9rgV.js.map} +1 -1
  113. package/chunk/{index-DnCqjuSC.js → index-_ohn63ug.js} +29 -29
  114. package/chunk/{index-DpYUZXus.js.map → index-_ohn63ug.js.map} +1 -1
  115. package/chunk/{index-BGGHZBWq.js → index-aKTpkBwz.js} +48 -56
  116. package/chunk/{index-CfUabHav.js.map → index-aKTpkBwz.js.map} +1 -1
  117. package/chunk/{index-DFsuXQL_.js → index-oMg5zy_2.js} +53 -53
  118. package/chunk/{index-QVvWIHrD.js.map → index-oMg5zy_2.js.map} +1 -1
  119. package/chunk/{index-CjcHzfTY.js → index-qAxcloBs.js} +11 -11
  120. package/chunk/{index-CjcHzfTY.js.map → index-qAxcloBs.js.map} +1 -1
  121. package/chunk/{index-D7O7vvSe.js → index-tFgJS6bB.js} +28 -28
  122. package/chunk/{index-B1579hxf.js.map → index-tFgJS6bB.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-C5fsaYJe.js → useCollectFieldsEndpoint-BsY8WlOg.js} +11 -11
  149. package/chunk/{useCollectFieldsEndpoint-C5fsaYJe.js.map → useCollectFieldsEndpoint-BsY8WlOg.js.map} +1 -1
  150. package/chunk/{useCollectFieldsEndpoint-kmLFyUA-.js → useCollectFieldsEndpoint-DeICm6Vb.js} +11 -11
  151. package/chunk/{useCollectFieldsEndpoint-kmLFyUA-.js.map → useCollectFieldsEndpoint-DeICm6Vb.js.map} +1 -1
  152. package/chunk/{useEmailFirstExperiment-CSa3DQll.js → useEmailFirstExperiment-3uKuefem.js} +29 -30
  153. package/chunk/{useEmailFirstExperiment-CSa3DQll.js.map → useEmailFirstExperiment-3uKuefem.js.map} +1 -1
  154. package/chunk/{useEmailFirstExperiment-DZ1B78ke.js → useEmailFirstExperiment-B1_E_D0z.js} +29 -30
  155. package/chunk/{useEmailFirstExperiment-DZ1B78ke.js.map → useEmailFirstExperiment-B1_E_D0z.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 +15 -15
  163. package/lib/{EmailLoopPending-BUvc2o4W.js → EmailLoopPending-BWEJteWf.js} +8 -8
  164. package/lib/{EmailLoopPending-BUvc2o4W.js.map → EmailLoopPending-BWEJteWf.js.map} +1 -1
  165. package/lib/{LicensedProfessionalOrganizationComponent-C0ioAzQP.js → LicensedProfessionalOrganizationComponent-8Fz7VzpC.js} +5 -5
  166. package/lib/{LicensedProfessionalOrganizationComponent-C0ioAzQP.js.map → LicensedProfessionalOrganizationComponent-8Fz7VzpC.js.map} +1 -1
  167. package/lib/{Onfido-CMH3IUna.js → Onfido-AyvUk6wg.js} +28 -28
  168. package/lib/{Onfido-CMH3IUna.js.map → Onfido-AyvUk6wg.js.map} +1 -1
  169. package/lib/StepCollectMilitaryStatusComponent-B6FWsKVT.js +11 -0
  170. package/lib/{StepCollectMilitaryStatusComponent-BrUSHecv.js.map → StepCollectMilitaryStatusComponent-B6FWsKVT.js.map} +1 -1
  171. package/lib/{StepIDCheckLoopOnfido-QuiU9VOZ.js → StepIDCheckLoopOnfido-BoYu03qf.js} +5 -5
  172. package/lib/{StepIDCheckLoopOnfido-QuiU9VOZ.js.map → StepIDCheckLoopOnfido-BoYu03qf.js.map} +1 -1
  173. package/lib/{StepIDCheckLoopRegula-D_U-ctEk.js → StepIDCheckLoopRegula-CleO2AvI.js} +5 -5
  174. package/lib/{StepIDCheckLoopRegula-D_U-ctEk.js.map → StepIDCheckLoopRegula-CleO2AvI.js.map} +1 -1
  175. package/lib/{StepInactiveMilitaryPersonalInfoComponent-Dc5bdsFt.js → StepInactiveMilitaryPersonalInfoComponent-CwHB55DG.js} +44 -44
  176. package/lib/{StepInactiveMilitaryPersonalInfoComponent-Dc5bdsFt.js.map → StepInactiveMilitaryPersonalInfoComponent-CwHB55DG.js.map} +1 -1
  177. package/lib/VerificationApiUtils-xT8neNEB.js +24 -0
  178. package/lib/VerificationApiUtils-xT8neNEB.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-ClGZD1Ql.js → es6-B4C99nr_.js} +13666 -12453
  190. package/lib/es6-B4C99nr_.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-DvUGTGOD.js → index-3SRQvj39.js} +26 -26
  200. package/lib/{index-DvUGTGOD.js.map → index-3SRQvj39.js.map} +1 -1
  201. package/lib/index-B8_50Him.js +28 -0
  202. package/lib/{index-DQX8eu91.js.map → index-B8_50Him.js.map} +1 -1
  203. package/lib/{index-BKCtNTGV.js → index-BHwYKmBe.js} +8 -8
  204. package/{chunk/index-Cp0C-9fh.js.map → lib/index-BHwYKmBe.js.map} +1 -1
  205. package/lib/{index-Dgidg7gd.js → index-BJBWT9wa.js} +20 -20
  206. package/lib/{index-Dgidg7gd.js.map → index-BJBWT9wa.js.map} +1 -1
  207. package/lib/{index-DK8uTv_W.js → index-BcE9NN84.js} +32 -32
  208. package/{chunk/index-D7O7vvSe.js.map → lib/index-BcE9NN84.js.map} +1 -1
  209. package/lib/{index-Csw34cSZ.js → index-BxVqnD-7.js} +20 -20
  210. package/lib/{index-Csw34cSZ.js.map → index-BxVqnD-7.js.map} +1 -1
  211. package/lib/{index-XXiQZWaM.js → index-CBDyLXYG.js} +51 -51
  212. package/lib/{index-XXiQZWaM.js.map → index-CBDyLXYG.js.map} +1 -1
  213. package/lib/{index-CJRwjY_C.js → index-CBifWEeV.js} +385 -402
  214. package/lib/index-CBifWEeV.js.map +1 -0
  215. package/lib/{index-DkeVrwYw.js → index-CRYZY6vI.js} +29 -29
  216. package/lib/{index-DkeVrwYw.js.map → index-CRYZY6vI.js.map} +1 -1
  217. package/lib/index-CTWjUdXx.js +11 -0
  218. package/lib/index-CTWjUdXx.js.map +1 -0
  219. package/lib/{index-DNCyzTg_.js → index-CTem-Vg8.js} +9 -9
  220. package/lib/{index-DNCyzTg_.js.map → index-CTem-Vg8.js.map} +1 -1
  221. package/lib/index-CiuvIMbL.js +11 -0
  222. package/lib/index-CiuvIMbL.js.map +1 -0
  223. package/lib/{index-BM0CWYn5.js → index-Cn53lF5X.js} +16 -16
  224. package/{chunk/index-BjaCS2a8.js.map → lib/index-Cn53lF5X.js.map} +1 -1
  225. package/lib/{index-CiAI82QD.js → index-CrV2nMoq.js} +5 -5
  226. package/lib/{index-CiAI82QD.js.map → index-CrV2nMoq.js.map} +1 -1
  227. package/lib/{index-DB8iBNmq.js → index-D0D7HAPn.js} +57 -57
  228. package/lib/{index-DB8iBNmq.js.map → index-D0D7HAPn.js.map} +1 -1
  229. package/lib/index-DIkWpujR.js +4 -4
  230. package/lib/index-DIkWpujR.js.map +1 -1
  231. package/lib/{index-oDSZ3K4N.js → index-DQvdYpIH.js} +23 -23
  232. package/{chunk/index-Dk8xxijl.js.map → lib/index-DQvdYpIH.js.map} +1 -1
  233. package/lib/index-DZB3KVgZ.js +11 -0
  234. package/lib/index-DZB3KVgZ.js.map +1 -0
  235. package/lib/{index-D7GbxOiS.js → index-DpFFsGey.js} +27 -27
  236. package/lib/{index-D7GbxOiS.js.map → index-DpFFsGey.js.map} +1 -1
  237. package/lib/{index-D-7phqEN.js → index-S3ZpXPMJ.js} +26 -26
  238. package/lib/{index-D-7phqEN.js.map → index-S3ZpXPMJ.js.map} +1 -1
  239. package/lib/{index-4MLTewcd.js → index-Sytmygw_.js} +5 -5
  240. package/{chunk/index-Cq__fToG.js.map → lib/index-Sytmygw_.js.map} +1 -1
  241. package/lib/{index-ow0CW_My.js → index-VNMhK7yn.js} +7 -7
  242. package/lib/{index-ow0CW_My.js.map → index-VNMhK7yn.js.map} +1 -1
  243. package/lib/index-XBfOIml7.js +11 -0
  244. package/lib/index-XBfOIml7.js.map +1 -0
  245. package/lib/{index-BdJWpsUE.js → index-eOSlGhXP.js} +5 -5
  246. package/lib/{index-BdJWpsUE.js.map → index-eOSlGhXP.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-aCIIzOgu.js → useCollectFieldsEndpoint-CAKKawmD.js} +6 -6
  273. package/lib/{useCollectFieldsEndpoint-aCIIzOgu.js.map → useCollectFieldsEndpoint-CAKKawmD.js.map} +1 -1
  274. package/lib/{useEmailFirstExperiment-B9QlkzY_.js → useEmailFirstExperiment-vO9rcSms.js} +6 -7
  275. package/lib/{useEmailFirstExperiment-B9QlkzY_.js.map → useEmailFirstExperiment-vO9rcSms.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 +17945 -16348
  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 +1 -0
  290. package/src/components/CopyToClipboard/CopyToClipboardComponent.d.ts +2 -1
  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 +2 -1
  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 +7 -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/StepIDCheckLoopRegula-BB8xA4nn.js.map +0 -1
  432. package/chunk/StepIDCheckLoopRegula-D8XhToQz.js.map +0 -1
  433. package/chunk/index-BupTUiiS.js +0 -27
  434. package/chunk/index-BupTUiiS.js.map +0 -1
  435. package/chunk/index-BvGP9l7M.js.map +0 -1
  436. package/chunk/index-CEi_QkyI.js.map +0 -1
  437. package/chunk/index-iZ8pO5if.js +0 -31
  438. package/chunk/index-iZ8pO5if.js.map +0 -1
  439. package/lib/StepCollectMilitaryStatusComponent-BrUSHecv.js +0 -11
  440. package/lib/VerificationApiUtils-Bddo_Ii5.js +0 -21
  441. package/lib/VerificationApiUtils-Bddo_Ii5.js.map +0 -1
  442. package/lib/es6-ClGZD1Ql.js.map +0 -1
  443. package/lib/index-BTFR2LEp.js +0 -11
  444. package/lib/index-BTFR2LEp.js.map +0 -1
  445. package/lib/index-CJRwjY_C.js.map +0 -1
  446. package/lib/index-CLXE6HT-.js +0 -11
  447. package/lib/index-CLXE6HT-.js.map +0 -1
  448. package/lib/index-DQX8eu91.js +0 -28
  449. package/lib/index-Drn1VYH2.js +0 -11
  450. package/lib/index-Drn1VYH2.js.map +0 -1
  451. package/lib/index-Y9jkUBfw.js +0 -11
  452. package/lib/index-Y9jkUBfw.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index-Bld-AWYE.js","sources":["../../src/components/StepSocialSecurityNumber/SsnChoice.tsx","../../src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\n\ntype Props = {\n useSsn: () => void;\n useDocUpload: () => void;\n verificationService: any;\n};\n\nconst Step = ({ useSsn, useDocUpload, verificationService }: Props) => (\n <div id=\"sid-ssn-choice\" className=\"sid-ssn-choice-container sid-l-container sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-ssn-choice-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n <div className=\"sid-header__title sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.selectOption\"\n defaultMessage=\"Select an option\"\n tagName=\"h1\"\n />\n </div>\n </div>\n\n <div className=\"sid-ssn-choice__choice1 sid-l-space-top-lg\">\n <button\n type=\"button\"\n onClick={useSsn}\n className=\"sid-btn sid-ssn-choice-one-btn sid-btn--light sid-l-full-width sid-use-ssn\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.useSsn\"\n defaultMessage=\"Verify using your social security number\"\n />\n </button>\n </div>\n\n <div className=\"sid-ssn-choice__choice2 sid-l-space-top-md\">\n <button\n type=\"button\"\n onClick={useDocUpload}\n className=\"sid-btn sid-ssn-choice-two-btn sid-btn--light sid-l-full-width sid-use-doc-upload\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadDoc\"\n defaultMessage=\"Upload a document\"\n />\n </button>\n </div>\n </div>\n <div className=\"sid-ssn-choice__footer sid-l-space-top-lg\">\n <FormFooter verificationService={verificationService} />\n </div>\n </div>\n);\n\nexport const SsnChoice = Step;\n","import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum, FieldIdEnum } from \"../../lib/types/runtimeTypes\";\nimport { setRef } from \"../../lib/refs/refs\";\nimport { VerificationService, SocialSecurityViewModel } from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { SsnChoice } from \"./SsnChoice\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSocialSecurityNumberProps {\n verificationService: VerificationService;\n}\n\nconst Step = ({ verificationService }: StepSocialSecurityNumberProps) => {\n const [showChoice, setShowChoice] = React.useState(true);\n const viewModel = verificationService.viewModel as SocialSecurityViewModel;\n const { fieldValidationErrors } = verificationService;\n const doCancelStep = () =>\n verificationService.submitStep(\n VerificationStepsEnum.cancelSocialSecurityNumber,\n viewModel,\n verificationService.verificationResponse,\n );\n\n const updateSSNViewModel = (key: keyof SocialSecurityViewModel, value: any) => {\n const nextState: SocialSecurityViewModel = produce(\n viewModel,\n (draft: SocialSecurityViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const isSubmittable =\n viewModel.socialSecurityNumber && viewModel.socialSecurityNumber.toString().length === 9;\n\n if (showChoice) {\n return (\n <SsnChoice\n useSsn={() => setShowChoice(false)}\n useDocUpload={doCancelStep}\n verificationService={verificationService}\n />\n );\n }\n\n return (\n <div\n id=\"sid-step-social-security\"\n className=\"sid-social-sercurity-number-container sid-l-container sid-l-horz-center\"\n >\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-social-security-number-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.title\"\n defaultMessage=\"Enter your social security number\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updateSSNViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-submit-wrapper sid-l-space-top-md\">\n <div className=\"sid-social-security-number-submit sid-submit\">\n <button\n id=\"sid-submit-wrapper__collect-info\"\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.collectSocialSecurityNumber,\n )\n }\n type=\"submit\"\n className={`sid-btn sid-social-security-number-submit-btn sid-btn--dark sid-l-full-width ${\n isSubmittable ? \"\" : \"sid-btn--disabled-like\"\n }`}\n aria-label=\"submit\"\n ref={(button) => setRef(\"submitButton\", button)}\n >\n <FormattedHTMLMessage id=\"proceed\" defaultMessage=\"Proceed\" />\n </button>\n </div>\n </div>\n\n <div\n className=\"sid-form-region sid-social-security-number-upload-instead-btn sid-l-space-top-md\"\n role=\"button\"\n tabIndex={0}\n onKeyUp={doCancelStep}\n onClick={doCancelStep}\n >\n <div className=\"sid-social-security-number-upload-instead-text sid-h-link-like\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadInstead\"\n defaultMessage=\"Upload a document instead\"\n />\n </div>\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\n// TODO remove injectIntl, it's not used\nexport const StepSocialSecurityNumber = injectIntl(Step);\n"],"names":["Step","useSsn","useDocUpload","verificationService","jsxs","jsx","LogoComponent","FormattedHTMLMessage","FormFooter","SsnChoice","showChoice","setShowChoice","React","viewModel","fieldValidationErrors","doCancelStep","VerificationStepsEnum","updateSSNViewModel","key","value","nextState","produce","draft","isSubmittable","AnnouncingHeader","ChangeLocaleV2Component","SocialSecurityNumber","updateFieldValidationErrorsByFieldId","FieldIdEnum","submitForm","button","setRef","StepSocialSecurityNumber","injectIntl"],"mappings":";AAWA,MAAMA,IAAO,CAAC,EAAE,QAAAC,GAAQ,cAAAC,GAAc,qBAAAC,EAAA,MACpCC,gBAAAA,EAAAA,KAAC,OAAI,EAAA,IAAG,kBAAiB,WAAU,8DACjC,UAAA;AAAA,EAACA,gBAAAA,EAAAA,KAAA,OAAA,EAAI,MAAK,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,qBAAAL,GAA0C;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG5D,GAGa6B,IAA2BC,EAAWjC,CAAI;"}
1
+ {"version":3,"file":"index-BhkJfnda.js","sources":["../../src/components/StepSocialSecurityNumber/SsnChoice.tsx","../../src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\n\ntype Props = {\n useSsn: () => void;\n useDocUpload: () => void;\n verificationService: any;\n};\n\nconst Step = ({ useSsn, useDocUpload, verificationService }: Props) => (\n <div id=\"sid-ssn-choice\" className=\"sid-ssn-choice-container sid-l-container sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-ssn-choice-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n <div className=\"sid-header__title sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.selectOption\"\n defaultMessage=\"Select an option\"\n tagName=\"h1\"\n />\n </div>\n </div>\n\n <div className=\"sid-ssn-choice__choice1 sid-l-space-top-lg\">\n <button\n type=\"button\"\n onClick={useSsn}\n className=\"sid-btn sid-ssn-choice-one-btn sid-btn--light sid-l-full-width sid-use-ssn\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.useSsn\"\n defaultMessage=\"Verify using your social security number\"\n />\n </button>\n </div>\n\n <div className=\"sid-ssn-choice__choice2 sid-l-space-top-md\">\n <button\n type=\"button\"\n onClick={useDocUpload}\n className=\"sid-btn sid-ssn-choice-two-btn sid-btn--light sid-l-full-width sid-use-doc-upload\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadDoc\"\n defaultMessage=\"Upload a document\"\n />\n </button>\n </div>\n </div>\n <div className=\"sid-ssn-choice__footer sid-l-space-top-lg\">\n <FormFooter verificationService={verificationService} />\n </div>\n </div>\n);\n\nexport const SsnChoice = Step;\n","import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum, FieldIdEnum } from \"../../lib/types/runtimeTypes\";\nimport { setRef } from \"../../lib/refs/refs\";\nimport { VerificationService, SocialSecurityViewModel } from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { SsnChoice } from \"./SsnChoice\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSocialSecurityNumberProps {\n verificationService: VerificationService;\n}\n\nconst Step = ({ verificationService }: StepSocialSecurityNumberProps) => {\n const [showChoice, setShowChoice] = React.useState(true);\n const viewModel = verificationService.viewModel as SocialSecurityViewModel;\n const { fieldValidationErrors } = verificationService;\n const doCancelStep = () =>\n verificationService.submitStep(\n VerificationStepsEnum.cancelSocialSecurityNumber,\n viewModel,\n verificationService.verificationResponse,\n );\n\n const updateSSNViewModel = (key: keyof SocialSecurityViewModel, value: any) => {\n const nextState: SocialSecurityViewModel = produce(\n viewModel,\n (draft: SocialSecurityViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const isSubmittable =\n viewModel.socialSecurityNumber && viewModel.socialSecurityNumber.toString().length === 9;\n\n if (showChoice) {\n return (\n <SsnChoice\n useSsn={() => setShowChoice(false)}\n useDocUpload={doCancelStep}\n verificationService={verificationService}\n />\n );\n }\n\n return (\n <div\n id=\"sid-step-social-security\"\n className=\"sid-social-sercurity-number-container sid-l-container sid-l-horz-center\"\n >\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-social-security-number-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.title\"\n defaultMessage=\"Enter your social security number\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updateSSNViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-submit-wrapper sid-l-space-top-md\">\n <div className=\"sid-social-security-number-submit sid-submit\">\n <button\n id=\"sid-submit-wrapper__collect-info\"\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.collectSocialSecurityNumber,\n )\n }\n type=\"submit\"\n className={`sid-btn sid-social-security-number-submit-btn sid-btn--dark sid-l-full-width ${\n isSubmittable ? \"\" : \"sid-btn--disabled-like\"\n }`}\n aria-label=\"submit\"\n ref={(button) => setRef(\"submitButton\", button)}\n >\n <FormattedHTMLMessage id=\"proceed\" defaultMessage=\"Proceed\" />\n </button>\n </div>\n </div>\n\n <div\n className=\"sid-form-region sid-social-security-number-upload-instead-btn sid-l-space-top-md\"\n role=\"button\"\n tabIndex={0}\n onKeyUp={doCancelStep}\n onClick={doCancelStep}\n >\n <div className=\"sid-social-security-number-upload-instead-text sid-h-link-like\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadInstead\"\n defaultMessage=\"Upload a document instead\"\n />\n </div>\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\n// TODO remove injectIntl, it's not used\nexport const StepSocialSecurityNumber = injectIntl(Step);\n"],"names":["Step","useSsn","useDocUpload","verificationService","jsxs","jsx","LogoComponent","FormattedHTMLMessage","FormFooter","SsnChoice","showChoice","setShowChoice","React","viewModel","fieldValidationErrors","doCancelStep","VerificationStepsEnum","updateSSNViewModel","key","value","nextState","produce","draft","isSubmittable","AnnouncingHeader","ChangeLocaleV2Component","SocialSecurityNumber","updateFieldValidationErrorsByFieldId","FieldIdEnum","submitForm","button","setRef","StepSocialSecurityNumber","injectIntl"],"mappings":";AAWA,MAAMA,IAAO,CAAC,EAAE,QAAAC,GAAQ,cAAAC,GAAc,qBAAAC,EAAA,MACpCC,gBAAAA,EAAAA,KAAC,OAAI,EAAA,IAAG,kBAAiB,WAAU,8DACjC,UAAA;AAAA,EAACA,gBAAAA,EAAAA,KAAA,OAAA,EAAI,MAAK,QACR,UAAA;AAAA,IAACA,gBAAAA,EAAAA,KAAA,OAAA,EAAI,WAAU,cACb,UAAA;AAAA,MAAAC,gBAAAA,EAAAA,IAAC,SAAI,WAAU,mDACb,UAACA,gBAAAA,EAAA,IAAAC,GAAA,EAAc,qBAAAH,EAA0C,CAAA,GAC3D;AAAA,MACAE,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,uCACb,UAAAA,gBAAAA,EAAA;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,UACf,SAAQ;AAAA,QAAA;AAAA,MAAA,EAEZ,CAAA;AAAA,IAAA,GACF;AAAA,IAEAF,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,8CACb,UAAAA,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,SAASJ;AAAA,QACT,WAAU;AAAA,QAEV,UAAAI,gBAAAA,EAAA;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,gBAAe;AAAA,UA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AA,cACA,cAAW;AAAA,cACX,KAAK,CAACO,MAAWC,EAAO,gBAAgBD,CAAM;AAAA,cAE9C,UAACzB,gBAAAA,EAAA,IAAAE,GAAA,EAAqB,IAAG,WAAU,gBAAe,UAAU,CAAA;AAAA,YAAA;AAAA,aAEhE,EACF,CAAA;AAAA,UAEAF,gBAAAA,EAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAU;AAAA,cACV,MAAK;AAAA,cACL,UAAU;AAAA,cACV,SAASU;AAAA,cACT,SAASA;AAAA,cAET,UAAAV,gBAAAA,EAAA,IAAC,OAAI,EAAA,WAAU,kEACb,UAAAA,gBAAAA,EAAA;AAAA,gBAACE;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA,EAEnB,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACF,GACF;AAAA,QACAF,gBAAAA,MAACG,KAAW,qBAAAL,EAA0C,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACxD;AAEJ,GAGa6B,IAA2BC,EAAWjC,CAAI;"}
@@ -0,0 +1,52 @@
1
+
2
+ /**
3
+ * WARNING: This file is intended to be used within MySheerID.
4
+ * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
+ */
6
+ /**
7
+ * VERSION: 2.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
11
+ */
12
+ import { j as e, aH as t, b7 as p, r as d, b8 as a, ag as r } from "../_mysheerid-preview.js";
13
+ const n = ({
14
+ icon: s,
15
+ title: c,
16
+ subtitle: o = void 0,
17
+ isHighlighted: i = !1
18
+ }) => /* @__PURE__ */ e.jsxs(
19
+ "div",
20
+ {
21
+ className: `sid-id-check-step-card ${i && "sid-id-check-step-card--highlighted"}`,
22
+ children: [
23
+ /* @__PURE__ */ e.jsx("div", { className: "sid-id-check-step-card__icon", children: s }),
24
+ /* @__PURE__ */ e.jsxs("div", { className: "sid-id-check-step-card__description", children: [
25
+ /* @__PURE__ */ e.jsx("div", { className: "sid-id-check-step-card__title", children: c }),
26
+ o && /* @__PURE__ */ e.jsx("div", { className: "sid-id-check-step-card__subtitle sid-l-space-top-sm", children: o })
27
+ ] })
28
+ ]
29
+ }
30
+ ), m = n, l = d.lazy(
31
+ () => import("./StepIDCheckLoopOnfido-Dbk23JEP.js")
32
+ ), h = d.lazy(
33
+ () => import("./StepIDCheckLoopRegula-CeadrU2e.js")
34
+ ), C = ({ verificationService: s }) => {
35
+ const c = s.verificationResponse, i = t(
36
+ p
37
+ ) || c.idCheckServiceType;
38
+ return /* @__PURE__ */ e.jsx(
39
+ d.Suspense,
40
+ {
41
+ fallback: /* @__PURE__ */ e.jsx("div", { className: "sid-l-horz-center", children: /* @__PURE__ */ e.jsx(r, { step: "idCheckLoop" }) }),
42
+ children: i === a.ID_CHECK ? /* @__PURE__ */ e.jsx(h, { verificationService: s }) : /* @__PURE__ */ e.jsx(l, { verificationService: s })
43
+ }
44
+ );
45
+ }, _ = C, S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
46
+ __proto__: null,
47
+ default: _
48
+ }, Symbol.toStringTag, { value: "Module" }));
49
+ export {
50
+ m as S,
51
+ S as i
52
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-BqmbVto7.js","sources":["../../src/components/StepIDCheckLoop/StepCard/StepCard.tsx","../../src/components/StepIDCheckLoop/StepIDCheckLoopComponent.tsx"],"sourcesContent":["import React from \"react\";\n\ninterface StepCardComponentProps {\n icon: React.ReactNode;\n title: React.ReactNode;\n subtitle?: React.ReactNode;\n isHighlighted?: boolean;\n}\n\nconst StepCard = ({\n icon,\n title,\n subtitle = undefined,\n isHighlighted = false,\n}: StepCardComponentProps) => (\n <div\n className={`sid-id-check-step-card ${isHighlighted && \"sid-id-check-step-card--highlighted\"}`}\n >\n <div className=\"sid-id-check-step-card__icon\">{icon}</div>\n\n <div className=\"sid-id-check-step-card__description\">\n <div className=\"sid-id-check-step-card__title\">{title}</div>\n {subtitle && (\n <div className=\"sid-id-check-step-card__subtitle sid-l-space-top-sm\">{subtitle}</div>\n )}\n </div>\n </div>\n);\n\nexport const StepCardComponent = StepCard;\n","import React, { Suspense, lazy } from \"react\";\nimport { IdCheckLoopServiceType } from \"../../lib/types/runtimeTypes\";\n\nimport { IDCheckLoopResponse, VerificationService } from \"../../lib/types/types\";\n\nimport { QUERY_STRING_ID_CHECK_LOOP_SERVICE_TYPE_OVERRIDE } from \"../../constants\";\nimport { getQueryOrOption } from \"../../lib/ServerApi/TestingRouteOverrides\";\nimport { LoadingScreenComponent } from \"../LoadingScreen/LoadingScreenComponent\";\n\nconst StepIDCheckLoopOnfido = lazy(\n () => import(\"./Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido\"),\n);\nconst StepIDCheckLoopRegula = lazy(\n () => import(\"./Regula/StepIDCheckLoopRegulaComponent/StepIDCheckLoopRegula\"),\n);\n\nexport interface StepIDCheckLoopComponentProps {\n verificationService: VerificationService;\n}\n\n/**\n * The idCheckLoop step consists of two 3rd party identity verification services. One is `Onfido`, which performs a\n * governemnt ID based identity confirmation, in addition to a liveness check. The other is `Regula`, which only\n * performs identity confirmation without a liveness check. The verification API's serviceType property denotes\n * them as such.\n */\nconst StepIDCheckLoop = ({ verificationService }: StepIDCheckLoopComponentProps) => {\n const verificationResponse = verificationService.verificationResponse as IDCheckLoopResponse;\n const mockIdCheckLoopServiceType = getQueryOrOption(\n QUERY_STRING_ID_CHECK_LOOP_SERVICE_TYPE_OVERRIDE,\n );\n\n const idCheckServiceType = mockIdCheckLoopServiceType || verificationResponse.idCheckServiceType;\n\n return (\n <Suspense\n fallback={\n <div className=\"sid-l-horz-center\">\n <LoadingScreenComponent step=\"idCheckLoop\" />\n </div>\n }\n >\n {idCheckServiceType === IdCheckLoopServiceType.ID_CHECK ? (\n <StepIDCheckLoopRegula verificationService={verificationService} />\n ) : (\n <StepIDCheckLoopOnfido verificationService={verificationService} />\n )}\n </Suspense>\n );\n};\n\nexport const StepIDCheckLoopComponent = StepIDCheckLoop;\n"],"names":["StepCard","icon","title","subtitle","isHighlighted","jsxs","jsx","StepCardComponent","StepIDCheckLoopOnfido","lazy","StepIDCheckLoopRegula","StepIDCheckLoop","verificationService","verificationResponse","idCheckServiceType","getQueryOrOption","QUERY_STRING_ID_CHECK_LOOP_SERVICE_TYPE_OVERRIDE","Suspense","LoadingScreenComponent","IdCheckLoopServiceType","StepIDCheckLoopComponent"],"mappings":";AASA,MAAMA,IAAW,CAAC;AAAA,EAChB,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,eAAAC,IAAgB;AAClB,MACEC,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAW,0BAA0BD,KAAiB,qCAAqC;AAAA,IAE3F,UAAA;AAAA,MAACE,gBAAAA,EAAA,IAAA,OAAA,EAAI,WAAU,gCAAgC,UAAKL,GAAA;AAAA,MAEpDI,gBAAAA,EAAAA,KAAC,OAAI,EAAA,WAAU,uCACb,UAAA;AAAA,QAACC,gBAAAA,EAAA,IAAA,OAAA,EAAI,WAAU,iCAAiC,UAAMJ,GAAA;AAAA,QACrDC,KACCG,gBAAAA,EAAA,IAAC,OAAI,EAAA,WAAU,uDAAuD,UAASH,EAAA,CAAA;AAAA,MAAA,EAEnF,CAAA;AAAA,IAAA;AAAA,EAAA;AACF,GAGWI,IAAoBP,GCpB3BQ,IAAwBC,EAAA;AAAA,EAC5B,MAAM,OAAO,qCAAsD;AACrE,GACMC,IAAwBD,EAAA;AAAA,EAC5B,MAAM,OAAO,qCAA+D;AAC9E,GAYME,IAAkB,CAAC,EAAE,qBAAAC,QAAyD;AAClF,QAAMC,IAAuBD,EAAoB,sBAK3CE,IAJ6BC;AAAA,IACjCC;AAAA,EACF,KAEyDH,EAAqB;AAG5E,SAAAP,gBAAAA,EAAA;AAAA,IAACW,EAAA;AAAA,IAAA;AAAA,MACC,gCACG,OAAI,EAAA,WAAU,qBACb,UAACX,gBAAAA,EAAA,IAAAY,GAAA,EAAuB,MAAK,cAAA,CAAc,EAC7C,CAAA;AAAA,MAGD,UAAAJ,MAAuBK,EAAuB,WAC7Cb,gBAAAA,EAAAA,IAACI,KAAsB,qBAAAE,EAA0C,CAAA,IAEhEN,gBAAAA,EAAAA,IAAAE,GAAA,EAAsB,qBAAAI,EAA0C,CAAA;AAAA,IAAA;AAAA,EAErE;AAEJ,GAEaQ,IAA2BT;;;;"}
@@ -4,12 +4,12 @@
4
4
  * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
5
5
  */
6
6
  /**
7
- * VERSION: 2.103.0-alpha.0
8
- * BUILD_TIMESTAMP: 1746049088900
9
- * BUILD_DATE: Wed Apr 30 2025 21:38:08 GMT+0000 (Coordinated Universal Time)
10
- * BUILD_COMMIT: 03bc38ab06acb01e5e6426eb54bdf378cd0c8a24
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
11
11
  */
12
- import { i as S, R as l, d as c, j as e, A as R, a as t, W as E, m as V, l as w, V as y, t as k } from "../_mysheerid-preview.js";
12
+ import { i as S, R as l, c, j as e, A as R, a as t, N as E, k as V, l as w, V as y, q as k } from "../_mysheerid-preview.js";
13
13
  const I = ({ intl: i, verificationService: s }) => {
14
14
  const o = s.viewModel, d = s.verificationResponse, M = !!s.fieldValidationErrors.smsCode, n = s.previousViewModel || void 0, [u, m] = l.useState(""), [p, g] = l.useState(
15
15
  d.errorIds && d.errorIds.includes("incorrectSMSCodeAttemptLimitExceeded")
@@ -32,18 +32,18 @@ const I = ({ intl: i, verificationService: s }) => {
32
32
  ...s.fieldValidationErrors,
33
33
  smsCode: d.errorIds[0]
34
34
  });
35
- const j = (r) => {
35
+ const N = (r) => {
36
36
  const a = V(o, (b) => {
37
37
  b.smsCode = r, b.phoneNumber = n && n.phoneNumber;
38
38
  });
39
39
  s.updateViewModel(a);
40
- }, C = () => {
40
+ }, j = () => {
41
41
  w.info("StepSMSLoop submitting form"), s.submitStep(
42
42
  y.smsLoop,
43
43
  o,
44
44
  s.verificationResponse
45
45
  );
46
- }, N = async (r) => {
46
+ }, C = async (r) => {
47
47
  const a = await k.getResendNewSmsCode(r);
48
48
  a ? (g(!1), m(a.status === 204 ? h : f)) : m(L);
49
49
  };
@@ -75,7 +75,7 @@ const I = ({ intl: i, verificationService: s }) => {
75
75
  /* @__PURE__ */ e.jsx("div", { className: "sid-sms-code-id-wrapper sid-l-horz-center", children: /* @__PURE__ */ e.jsx(
76
76
  E,
77
77
  {
78
- onChange: j,
78
+ onChange: N,
79
79
  value: o.smsCode,
80
80
  isErrored: M,
81
81
  errorId: s.fieldValidationErrors.smsCode
@@ -87,7 +87,7 @@ const I = ({ intl: i, verificationService: s }) => {
87
87
  "button",
88
88
  {
89
89
  id: "sid-submit-sms-code",
90
- onClick: C,
90
+ onClick: j,
91
91
  type: "button",
92
92
  className: "sid-btn sid-sms-loop-submit-btn sid-btn--dark sid-submit__continue",
93
93
  "aria-label": "submit",
@@ -100,7 +100,7 @@ const I = ({ intl: i, verificationService: s }) => {
100
100
  "button",
101
101
  {
102
102
  id: "sid-resend-sms-code",
103
- onClick: () => N(d.verificationId),
103
+ onClick: () => C(d.verificationId),
104
104
  type: "submit",
105
105
  className: "sid-btn sid-resend-sms-code-btn sid-btn--light sid-submit__cancel",
106
106
  "aria-label": "re-send",
@@ -1 +1 @@
1
- {"version":3,"file":"index-CCUi9Uhw.js","sources":["../../src/components/StepSMSLoop/StepSMSLoopComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { injectIntl, FormattedHTMLMessage, InjectedIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n SMSLoopResponse,\n SMSLoopViewModel,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\n\nimport { SMSCodeComponent } from \"../FormFields/SMSCode/SMSCodeComponent\";\n\nimport { VerificationApiClient } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSMSLoopProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepSMSLoop = ({ intl, verificationService }: StepSMSLoopProps) => {\n const viewModel = verificationService.viewModel as SMSLoopViewModel;\n const verificationResponse = verificationService.verificationResponse as SMSLoopResponse;\n const isErrored = Boolean(verificationService.fieldValidationErrors.smsCode);\n const previousViewModel =\n (verificationService.previousViewModel as StudentPersonalInfoViewModel) || undefined;\n\n const [stepResultMessage, setStepResultMessage] = React.useState(\"\");\n const [isAttemptLimitExceeded, setAttemptLimitExceeded] = React.useState(\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"incorrectSMSCodeAttemptLimitExceeded\"),\n );\n\n const stepSuccessMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.successResend\",\n defaultMessage: \"SMS message re-sent successfully\",\n });\n const maxTotalRetriesMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const maxRetriesPerCodeMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const errorResendingSMSMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.resend\",\n defaultMessage: \"Error sending the SMS message\",\n });\n\n React.useEffect(() => {\n if (isAttemptLimitExceeded) {\n setStepResultMessage(maxRetriesPerCodeMessage);\n }\n }, []);\n\n if (\n getSafe(() => verificationResponse.errorIds.length) &&\n !verificationService.fieldValidationErrors.smsCode\n ) {\n verificationService.updateFieldValidationErrors({\n ...verificationService.fieldValidationErrors,\n smsCode: verificationResponse.errorIds[0],\n });\n }\n\n const updateSmsCode = (value) => {\n const nextState: SMSLoopViewModel = produce(viewModel, (draft: SMSLoopViewModel) => {\n draft.smsCode = value;\n draft.phoneNumber = previousViewModel && previousViewModel.phoneNumber;\n });\n verificationService.updateViewModel(nextState);\n };\n\n const submitForm = () => {\n logger.info(\"StepSMSLoop submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.smsLoop,\n viewModel,\n verificationService.verificationResponse,\n );\n };\n\n const resendSmsCode = async (verificationId) => {\n const response = await VerificationApiClient.getResendNewSmsCode(verificationId);\n if (response) {\n setAttemptLimitExceeded(false);\n setStepResultMessage(response.status === 204 ? stepSuccessMessage : maxTotalRetriesMessage);\n } else {\n setStepResultMessage(errorResendingSMSMessage);\n }\n };\n\n return (\n <div id=\"sid-step-sms-loop\" className=\"sid-sms-loop-container sid-l-container\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.verificationCode\"\n defaultMessage=\"Verification Code\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <div className=\"sid-header__subtitle\">\n {getSafe(() => previousViewModel.phoneNumber) ? (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithNumber\"\n defaultMessage=\"We've sent an SMS message to the mobile number ending in {number}. Enter your code here.\"\n values={{\n number: getSafe(() => previousViewModel.phoneNumber.slice(-4), \"\"),\n }}\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithoutNumber\"\n defaultMessage=\"We've sent an SMS to your mobile number. Please enter the code here.\"\n />\n )}\n </div>\n\n <div className=\"sid-sms-code-id-wrapper sid-l-horz-center\">\n <SMSCodeComponent\n onChange={updateSmsCode}\n value={viewModel.smsCode}\n isErrored={isErrored}\n errorId={verificationService.fieldValidationErrors.smsCode}\n />\n </div>\n\n {stepResultMessage && (\n <div>\n <p>{stepResultMessage}</p>\n </div>\n )}\n\n <div className=\"sid-submit sid-sms-loop-submit sid-l-space-top-md sid-l-horz-center\">\n <button\n id=\"sid-submit-sms-code\"\n onClick={submitForm}\n type=\"button\"\n className=\"sid-btn sid-sms-loop-submit-btn sid-btn--dark sid-submit__continue\"\n aria-label=\"submit\"\n disabled={\n !!(!viewModel.smsCode || viewModel.smsCode.length <= 0 || isAttemptLimitExceeded)\n }\n >\n <FormattedHTMLMessage id=\"step.smsLoop.submitButton\" defaultMessage=\"Submit\" />\n </button>\n\n <div className=\"sid-l-space-left-sm\">&nbsp;</div>\n\n <button\n id=\"sid-resend-sms-code\"\n onClick={() => resendSmsCode(verificationResponse.verificationId)}\n type=\"submit\"\n className=\"sid-btn sid-resend-sms-code-btn sid-btn--light sid-submit__cancel\"\n aria-label=\"re-send\"\n >\n <FormattedHTMLMessage id=\"step.smsLoop.resendButton\" defaultMessage=\"Re-send\" />\n </button>\n </div>\n\n <div className=\"sid-incorrect-number sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber1\"\n defaultMessage=\"Incorrect number? Click\"\n />\n &nbsp;\n <button\n type=\"button\"\n onClick={() => window.location.reload()}\n className=\"sid-incorrect-number__refresh-link sid-h-btn-link-like\"\n >\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber2\"\n defaultMessage=\"here\"\n />\n &nbsp;\n </button>\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber3\"\n defaultMessage=\"to return to {companyName}\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepSMSLoopComponent = injectIntl(StepSMSLoop);\n"],"names":["StepSMSLoop","intl","verificationService","viewModel","verificationResponse","isErrored","previousViewModel","stepResultMessage","setStepResultMessage","React","isAttemptLimitExceeded","setAttemptLimitExceeded","stepSuccessMessage","maxTotalRetriesMessage","maxRetriesPerCodeMessage","errorResendingSMSMessage","getSafe","updateSmsCode","value","nextState","produce","draft","submitForm","logger","VerificationStepsEnum","resendSmsCode","verificationId","response","VerificationApiClient","jsxs","jsx","AnnouncingHeader","FormattedHTMLMessage","SMSCodeComponent","companyName","StepSMSLoopComponent","injectIntl"],"mappings":";AAwBA,MAAMA,IAAc,CAAC,EAAE,MAAAC,GAAM,qBAAAC,QAA4C;AACvE,QAAMC,IAAYD,EAAoB,WAChCE,IAAuBF,EAAoB,sBAC3CG,IAAY,EAAQH,EAAoB,sBAAsB,SAC9DI,IACHJ,EAAoB,qBAAsD,QAEvE,CAACK,GAAmBC,CAAoB,IAAIC,EAAM,SAAS,EAAE,GAC7D,CAACC,GAAwBC,CAAuB,IAAIF,EAAM;AAAA,IAC9DL,EAAqB,YACnBA,EAAqB,SAAS,SAAS,sCAAsC;AAAA,EAAA,GAG3EQ,IAAqBX,EAAK,kBAAkB;AAAA,IAChD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,GACKY,IAAyBZ,EAAK,kBAAkB;AAAA,IACpD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,GACKa,IAA2Bb,EAAK,kBAAkB;AAAA,IACtD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB,GACKc,IAA2Bd,EAAK,kBAAkB;AAAA,IACtD,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA,CACjB;AAED,EAAAQ,EAAM,UAAU,MAAM;AACpB,IAAIC,KACFF,EAAqBM,CAAwB;AAAA,EAEjD,GAAG,CAAE,CAAA,GAGHE,EAAQ,MAAMZ,EAAqB,SAAS,MAAM,KAClD,CAACF,EAAoB,sBAAsB,WAE3CA,EAAoB,4BAA4B;AAAA,IAC9C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AAC,gBAAAA,EAAA;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,QAAA;AAAA,MACjB;AAAA,MAAE;AAAA,MAEFH,gBAAAA,EAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAS,MAAM,OAAO,SAAS,OAAO;AAAA,UACtC,WAAU;AAAA,UAEV,UAAA;AAAA,YAAAC,gBAAAA,EAAA;AAAA,cAACE;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YACjB;AAAA,YAAE;AAAA,UAAA;AAAA,QAAA;AAAA,MAEJ;AAAA,4BACCA,GAAqB,EAAA,IAAG,eAAc,gBAAe,aACnD,WAACE,MACAJ,gBAAAA,EAAA;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,UACf,QAAQ,EAAE,aAAAE,EAAY;AAAA,QAAA;AAAA,MAAA,GAG5B;AAAA,IAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ,GAEaC,IAAuBC,EAAWpC,CAAW;"}
1
+ {"version":3,"file":"index-BtYzUCrC.js","sources":["../../src/components/StepSMSLoop/StepSMSLoopComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { injectIntl, FormattedHTMLMessage, InjectedIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"../../lib/utils/logger/logger\";\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n SMSLoopResponse,\n SMSLoopViewModel,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\n\nimport { SMSCodeComponent } from \"../FormFields/SMSCode/SMSCodeComponent\";\n\nimport { VerificationApiClient } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\ninterface StepSMSLoopProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepSMSLoop = ({ intl, verificationService }: StepSMSLoopProps) => {\n const viewModel = verificationService.viewModel as SMSLoopViewModel;\n const verificationResponse = verificationService.verificationResponse as SMSLoopResponse;\n const isErrored = Boolean(verificationService.fieldValidationErrors.smsCode);\n const previousViewModel =\n (verificationService.previousViewModel as StudentPersonalInfoViewModel) || undefined;\n\n const [stepResultMessage, setStepResultMessage] = React.useState(\"\");\n const [isAttemptLimitExceeded, setAttemptLimitExceeded] = React.useState(\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"incorrectSMSCodeAttemptLimitExceeded\"),\n );\n\n const stepSuccessMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.successResend\",\n defaultMessage: \"SMS message re-sent successfully\",\n });\n const maxTotalRetriesMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const maxRetriesPerCodeMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.codeResendLimit\",\n defaultMessage: \"Maximum number of re-tries has been reached.\",\n });\n const errorResendingSMSMessage = intl.formatHTMLMessage({\n id: \"step.smsLoop.errors.resend\",\n defaultMessage: \"Error sending the SMS message\",\n });\n\n React.useEffect(() => {\n if (isAttemptLimitExceeded) {\n setStepResultMessage(maxRetriesPerCodeMessage);\n }\n }, []);\n\n if (\n getSafe(() => verificationResponse.errorIds.length) &&\n !verificationService.fieldValidationErrors.smsCode\n ) {\n verificationService.updateFieldValidationErrors({\n ...verificationService.fieldValidationErrors,\n smsCode: verificationResponse.errorIds[0],\n });\n }\n\n const updateSmsCode = (value) => {\n const nextState: SMSLoopViewModel = produce(viewModel, (draft: SMSLoopViewModel) => {\n draft.smsCode = value;\n draft.phoneNumber = previousViewModel && previousViewModel.phoneNumber;\n });\n verificationService.updateViewModel(nextState);\n };\n\n const submitForm = () => {\n logger.info(\"StepSMSLoop submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.smsLoop,\n viewModel,\n verificationService.verificationResponse,\n );\n };\n\n const resendSmsCode = async (verificationId) => {\n const response = await VerificationApiClient.getResendNewSmsCode(verificationId);\n if (response) {\n setAttemptLimitExceeded(false);\n setStepResultMessage(response.status === 204 ? stepSuccessMessage : maxTotalRetriesMessage);\n } else {\n setStepResultMessage(errorResendingSMSMessage);\n }\n };\n\n return (\n <div id=\"sid-step-sms-loop\" className=\"sid-sms-loop-container sid-l-container\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.verificationCode\"\n defaultMessage=\"Verification Code\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <div className=\"sid-header__subtitle\">\n {getSafe(() => previousViewModel.phoneNumber) ? (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithNumber\"\n defaultMessage=\"We've sent an SMS message to the mobile number ending in {number}. Enter your code here.\"\n values={{\n number: getSafe(() => previousViewModel.phoneNumber.slice(-4), \"\"),\n }}\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.smsLoop.titleWithoutNumber\"\n defaultMessage=\"We've sent an SMS to your mobile number. Please enter the code here.\"\n />\n )}\n </div>\n\n <div className=\"sid-sms-code-id-wrapper sid-l-horz-center\">\n <SMSCodeComponent\n onChange={updateSmsCode}\n value={viewModel.smsCode}\n isErrored={isErrored}\n errorId={verificationService.fieldValidationErrors.smsCode}\n />\n </div>\n\n {stepResultMessage && (\n <div>\n <p>{stepResultMessage}</p>\n </div>\n )}\n\n <div className=\"sid-submit sid-sms-loop-submit sid-l-space-top-md sid-l-horz-center\">\n <button\n id=\"sid-submit-sms-code\"\n onClick={submitForm}\n type=\"button\"\n className=\"sid-btn sid-sms-loop-submit-btn sid-btn--dark sid-submit__continue\"\n aria-label=\"submit\"\n disabled={\n !!(!viewModel.smsCode || viewModel.smsCode.length <= 0 || isAttemptLimitExceeded)\n }\n >\n <FormattedHTMLMessage id=\"step.smsLoop.submitButton\" defaultMessage=\"Submit\" />\n </button>\n\n <div className=\"sid-l-space-left-sm\">&nbsp;</div>\n\n <button\n id=\"sid-resend-sms-code\"\n onClick={() => resendSmsCode(verificationResponse.verificationId)}\n type=\"submit\"\n className=\"sid-btn sid-resend-sms-code-btn sid-btn--light sid-submit__cancel\"\n aria-label=\"re-send\"\n >\n <FormattedHTMLMessage id=\"step.smsLoop.resendButton\" defaultMessage=\"Re-send\" />\n </button>\n </div>\n\n <div className=\"sid-incorrect-number sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber1\"\n defaultMessage=\"Incorrect number? Click\"\n />\n &nbsp;\n <button\n type=\"button\"\n onClick={() => window.location.reload()}\n className=\"sid-incorrect-number__refresh-link sid-h-btn-link-like\"\n >\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber2\"\n defaultMessage=\"here\"\n />\n &nbsp;\n </button>\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.smsLoop.incorrectNumber.incorrectNumber3\"\n defaultMessage=\"to return to {companyName}\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepSMSLoopComponent = injectIntl(StepSMSLoop);\n"],"names":["StepSMSLoop","intl","verificationService","viewModel","verificationResponse","isErrored","previousViewModel","stepResultMessage","setStepResultMessage","React","isAttemptLimitExceeded","setAttemptLimitExceeded","stepSuccessMessage","maxTotalRetriesMessage","maxRetriesPerCodeMessage","errorResendingSMSMessage","getSafe","updateSmsCode","value","nextState","produce","draft","submitForm","logger","VerificationStepsEnum","resendSmsCode","verificationId","response","VerificationApiClient","jsxs","jsx","AnnouncingHeader","FormattedHTMLMessage","SMSCodeComponent","companyName","StepSMSLoopComponent","injectIntl"],"mappings":";AAwBA,MAAMA,IAAc,CAAC,EAAE,MAAAC,GAAM,qBAAAC,QAA4C;AACvE,QAAMC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QAAA;AAAA,MAEJ;AAAA,4BACCA,GAAqB,EAAA,IAAG,eAAc,gBAAe,aACnD,WAACE,MACAJ,gBAAAA,EAAA;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,gBAAe;AAAA,UACf,QAAQ,EAAE,aAAAE,EAAY;AAAA,QAAA;AAAA,MAAA,EAG5B,CAAA;AAAA,IAAA,EACF,CAAA;AAAA,EAAA,GACF;AAEJ,GAEaC,IAAuBC,EAAWpC,CAAW;"}
@@ -1,13 +1,13 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.103.0-alpha.0
4
- * BUILD_TIMESTAMP: 1746049041993
5
- * BUILD_DATE: Wed Apr 30 2025 21:37:21 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 03bc38ab06acb01e5e6426eb54bdf378cd0c8a24
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
7
7
  */
8
- import { i as $, h as G, R as U, j as s, w as Y, P as J, ae as _, E as F, a as m, u as t, z as l, x as Q, Y as X, a8 as Z, ag as S, an as v, ao as ee, ap as ae, _ as se, y as oe, B as le, $ as ne, G as te, e as de, H as me, a0 as re, J as ie, M as pe, K as ue, f as be, V as ge, N as Ce, a7 as xe } from "../sheerid.js";
9
- import { u as he } from "./useCollectFieldsEndpoint-kmLFyUA-.js";
10
- import { u as Me, E as Ee } from "./useEmailFirstExperiment-DZ1B78ke.js";
8
+ import { i as U, h as G, R as $, j as s, s as Q, P as X, a8 as Y, E as F, x as l, u as t, a as m, t as J, v as Z, Q as _, a2 as S, ak as v, ab as ee, al as ae, am as se, U as oe, w as le, y as ne, W as te, B as de, d as me, D as re, X as ie, G as pe, M as ue, H as be, e as Ce, V as ge, a1 as xe } from "../sheerid.js";
9
+ import { u as he } from "./useCollectFieldsEndpoint-DeICm6Vb.js";
10
+ import { u as Me, E as Ee } from "./useEmailFirstExperiment-B1_E_D0z.js";
11
11
  const Ie = {
12
12
  AT: "gbrNummer",
13
13
  ES: "numeroColegiado",
@@ -15,7 +15,7 @@ const Ie = {
15
15
  CH: "globalLocationNumber",
16
16
  IE: "registrationNumber",
17
17
  GB: "registrationNumber"
18
- }, R = (i) => {
18
+ }, k = (i) => {
19
19
  const a = Ie[i] || "registrationNumber";
20
20
  return {
21
21
  labelKey: `step.collectMedicalPersonalInfo.${a}Label`,
@@ -25,17 +25,17 @@ const Ie = {
25
25
  intl: i,
26
26
  verificationService: a
27
27
  }) => {
28
- var g, C, x, h, M, E, I, j, N, y, f, P, c;
29
- const o = a.viewModel, { fieldValidationErrors: n } = a, r = a.verificationResponse, k = G(r), L = Ce(), D = o.localeChoice.value, d = (e, A) => {
30
- const W = xe(o, e, A);
31
- a.updateViewModel(W);
32
- }, { isFieldOptional: K } = he({
28
+ var C, g, x, h, M, E, I, j, N, y, f, P, c;
29
+ const o = a.viewModel, { fieldValidationErrors: n } = a, r = a.verificationResponse, R = G(r), D = J(), L = o.localeChoice.value, d = (e, W) => {
30
+ const A = xe(o, e, W);
31
+ a.updateViewModel(A);
32
+ }, { isFieldOptional: w } = he({
33
33
  verificationId: r.verificationId,
34
34
  currentStep: r.currentStep,
35
35
  viewModel: o
36
- }), p = K("memberId"), {
36
+ }), p = w("memberId"), {
37
37
  isEmailUpTop: u,
38
- isEmailValidationLoading: w,
38
+ isEmailValidationLoading: K,
39
39
  showFormFields: T,
40
40
  emailLookupResponse: b,
41
41
  emailOnBlur: B,
@@ -49,16 +49,16 @@ const Ie = {
49
49
  o.email,
50
50
  a.verificationResponse.segment
51
51
  );
52
- return U.useEffect(() => {
52
+ return $.useEffect(() => {
53
53
  p ? a.updateViewModel({ fieldsToSkipValidation: [] }, !0) : a.updateViewModel({ fieldsToSkipValidation: ["memberId"] }, !0);
54
54
  }, [p]), /* @__PURE__ */ s.jsxs(
55
- Y,
55
+ Q,
56
56
  {
57
57
  verificationService: a,
58
58
  step: r.currentStep,
59
59
  children: [
60
60
  /* @__PURE__ */ s.jsx(
61
- J,
61
+ X,
62
62
  {
63
63
  verificationService: a,
64
64
  classNameIdentifier: "medical-personal-info"
@@ -66,7 +66,7 @@ const Ie = {
66
66
  ),
67
67
  // #region email-first-experiment
68
68
  u && /* @__PURE__ */ s.jsxs("div", { className: "email-input-wrapper", children: [
69
- w && /* @__PURE__ */ s.jsx("div", { className: "email-input-wrapper-frame", children: /* @__PURE__ */ s.jsx("div", { className: "transform-scale", children: /* @__PURE__ */ s.jsx(_, {}) }) }),
69
+ K && /* @__PURE__ */ s.jsx("div", { className: "email-input-wrapper-frame", children: /* @__PURE__ */ s.jsx("div", { className: "transform-scale", children: /* @__PURE__ */ s.jsx(Y, {}) }) }),
70
70
  /* @__PURE__ */ s.jsx(
71
71
  F,
72
72
  {
@@ -84,7 +84,7 @@ const Ie = {
84
84
  },
85
85
  onKeyDown: V,
86
86
  onBlur: B,
87
- disabled: (g = l("email")) == null ? void 0 : g.disabled
87
+ disabled: (C = l("email")) == null ? void 0 : C.disabled
88
88
  }
89
89
  )
90
90
  ] }),
@@ -97,28 +97,28 @@ const Ie = {
97
97
  }
98
98
  ),
99
99
  T && /* @__PURE__ */ s.jsxs("div", { className: H || !u ? "" : "sid-disable-elements", children: [
100
- /* @__PURE__ */ s.jsx(Q, { verificationService: a }),
100
+ /* @__PURE__ */ s.jsx(Z, { verificationService: a }),
101
101
  /* @__PURE__ */ s.jsx(
102
- X,
102
+ _,
103
103
  {
104
104
  verificationService: a,
105
- disabled: (C = l("country")) == null ? void 0 : C.disabled
105
+ disabled: (g = l("country")) == null ? void 0 : g.disabled
106
106
  }
107
107
  ),
108
108
  /* @__PURE__ */ s.jsx(
109
- Z,
109
+ S,
110
110
  {
111
111
  segmentId: "medical",
112
112
  value: {
113
113
  value: o.status,
114
- label: S(
114
+ label: ee(
115
115
  i,
116
116
  o.status,
117
- v
117
+ ae
118
118
  )
119
119
  },
120
120
  isErrored: !!n.status,
121
- options: ee(i, r.availableStatuses),
121
+ options: v(i, r.availableStatuses),
122
122
  disabled: (x = l("status")) == null ? void 0 : x.disabled,
123
123
  onChange: (e) => {
124
124
  d("status", e ? e.value : ""), t(
@@ -130,11 +130,11 @@ const Ie = {
130
130
  }
131
131
  ),
132
132
  /* @__PURE__ */ s.jsx(
133
- ae,
133
+ se,
134
134
  {
135
135
  isErrored: !!n.organization,
136
136
  onChange: (e) => {
137
- se(e, a), t("organization", e, a);
137
+ oe(e, a), t("organization", e, a);
138
138
  },
139
139
  value: a.viewModel.organization,
140
140
  verificationService: a,
@@ -143,7 +143,7 @@ const Ie = {
143
143
  ),
144
144
  /* @__PURE__ */ s.jsxs("div", { className: "sid-names", children: [
145
145
  /* @__PURE__ */ s.jsx(
146
- oe,
146
+ le,
147
147
  {
148
148
  value: o.firstName,
149
149
  isErrored: !!n.firstName,
@@ -154,7 +154,7 @@ const Ie = {
154
154
  }
155
155
  ),
156
156
  /* @__PURE__ */ s.jsx(
157
- le,
157
+ ne,
158
158
  {
159
159
  value: o.lastName,
160
160
  isErrored: !!n.lastName,
@@ -166,10 +166,10 @@ const Ie = {
166
166
  )
167
167
  ] }),
168
168
  /* @__PURE__ */ s.jsx(
169
- ne,
169
+ te,
170
170
  {
171
171
  errorId: n.birthDate,
172
- locale: D,
172
+ locale: L,
173
173
  disabled: (I = l("birthDate")) == null ? void 0 : I.disabled,
174
174
  onChange: (e) => {
175
175
  d("birthDate", e), t("birthDate", e, a);
@@ -178,7 +178,7 @@ const Ie = {
178
178
  }
179
179
  ),
180
180
  /* @__PURE__ */ s.jsx(
181
- te,
181
+ de,
182
182
  {
183
183
  isErrored: !!n.postalCode,
184
184
  onChange: (e) => {
@@ -210,12 +210,12 @@ const Ie = {
210
210
  onChange: (e) => {
211
211
  d("email", e), t("email", e, a);
212
212
  },
213
- onKeyDown: (e) => de(e),
213
+ onKeyDown: (e) => me(e),
214
214
  disabled: (N = l("email")) == null ? void 0 : N.disabled
215
215
  }
216
216
  ),
217
217
  a.programTheme.isSmsNotifierConfigured || a.programTheme.smsLoopEnabled ? /* @__PURE__ */ s.jsx(
218
- me,
218
+ re,
219
219
  {
220
220
  isRequired: !!a.programTheme.smsLoopEnabled,
221
221
  value: o.phoneNumber,
@@ -228,7 +228,7 @@ const Ie = {
228
228
  }
229
229
  ) : null,
230
230
  p && /* @__PURE__ */ s.jsx(
231
- re,
231
+ ie,
232
232
  {
233
233
  value: o.memberId,
234
234
  isErrored: !!n.memberId,
@@ -240,22 +240,22 @@ const Ie = {
240
240
  explanation: /* @__PURE__ */ s.jsx(
241
241
  m,
242
242
  {
243
- id: R(o.country).explanationKey,
243
+ id: k(o.country).explanationKey,
244
244
  defaultMessage: "Your Professional Membership Registration Number"
245
245
  }
246
246
  ),
247
247
  label: /* @__PURE__ */ s.jsx(
248
248
  m,
249
249
  {
250
- id: R(o.country).labelKey,
250
+ id: k(o.country).labelKey,
251
251
  defaultMessage: "Registration Number"
252
252
  }
253
253
  )
254
254
  }
255
255
  ),
256
- L.customFormFields.map((e) => /* @__PURE__ */ s.jsx(ie, { config: e, verificationService: a })),
256
+ D.customFormFields.map((e) => /* @__PURE__ */ s.jsx(pe, { config: e, verificationService: a })),
257
257
  /* @__PURE__ */ s.jsx(
258
- pe,
258
+ ue,
259
259
  {
260
260
  verificationService: a,
261
261
  isErrored: !!n.marketConsentValue,
@@ -273,14 +273,14 @@ const Ie = {
273
273
  disabled: (c = l("marketConsentValue")) == null ? void 0 : c.disabled
274
274
  }
275
275
  ),
276
- /* @__PURE__ */ s.jsx(ue, { verificationService: a, suffix: "CollectAboveSubmit" }),
276
+ /* @__PURE__ */ s.jsx(be, { verificationService: a, suffix: "CollectAboveSubmit" }),
277
277
  /* @__PURE__ */ s.jsx(
278
- be,
278
+ Ce,
279
279
  {
280
280
  step: ge.collectMedicalProfessionalPersonalInfo,
281
281
  verificationService: a,
282
282
  viewModel: o,
283
- failedInstantMatch: k,
283
+ failedInstantMatch: R,
284
284
  buttonText: /* @__PURE__ */ s.jsx(
285
285
  m,
286
286
  {
@@ -294,7 +294,7 @@ const Ie = {
294
294
  ]
295
295
  }
296
296
  );
297
- }, Pe = $(
297
+ }, Pe = U(
298
298
  je
299
299
  );
300
300
  export {