@sheerid/jslib 2.105.0 → 2.107.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 (465) hide show
  1. package/__tests__/__helpers__/renderers.d.ts +5 -5
  2. package/__tests__/e2e/collectInfo/collectInfo.spec.d.ts +1 -0
  3. package/_mysheerid-preview.css +4 -4
  4. package/_mysheerid-preview.js +18168 -16565
  5. package/_mysheerid-preview.js.map +1 -1
  6. package/chunk/{EmailLoopPending-DmENoLpP.js → EmailLoopPending-Dtf0p85F.js} +18 -18
  7. package/chunk/{EmailLoopPending-D-O7IRrU.js.map → EmailLoopPending-Dtf0p85F.js.map} +1 -1
  8. package/chunk/{EmailLoopPending-D-O7IRrU.js → EmailLoopPending-Dy8mLFvV.js} +18 -18
  9. package/chunk/{EmailLoopPending-DmENoLpP.js.map → EmailLoopPending-Dy8mLFvV.js.map} +1 -1
  10. package/chunk/{LicensedProfessionalOrganizationComponent-BrW9osPt.js → LicensedProfessionalOrganizationComponent-BYijEfDT.js} +8 -8
  11. package/chunk/{LicensedProfessionalOrganizationComponent-BrW9osPt.js.map → LicensedProfessionalOrganizationComponent-BYijEfDT.js.map} +1 -1
  12. package/chunk/{LicensedProfessionalOrganizationComponent-Cu6a9uBs.js → LicensedProfessionalOrganizationComponent-CiYU-2dW.js} +8 -8
  13. package/chunk/{LicensedProfessionalOrganizationComponent-Cu6a9uBs.js.map → LicensedProfessionalOrganizationComponent-CiYU-2dW.js.map} +1 -1
  14. package/chunk/{Onfido-CMH3IUna.js → Onfido-AyvUk6wg.js} +28 -28
  15. package/chunk/{Onfido-CMH3IUna.js.map → Onfido-AyvUk6wg.js.map} +1 -1
  16. package/chunk/{StepIDCheckLoopOnfido-BRtMQNQl.js → StepIDCheckLoopOnfido-CmNwFqjD.js} +12 -11
  17. package/chunk/{StepIDCheckLoopOnfido-BRtMQNQl.js.map → StepIDCheckLoopOnfido-CmNwFqjD.js.map} +1 -1
  18. package/chunk/{StepIDCheckLoopOnfido-mZhLONqq.js → StepIDCheckLoopOnfido-DtbplNxs.js} +12 -11
  19. package/chunk/{StepIDCheckLoopOnfido-mZhLONqq.js.map → StepIDCheckLoopOnfido-DtbplNxs.js.map} +1 -1
  20. package/chunk/{StepIDCheckLoopRegula-1wd-jJGJ.js → StepIDCheckLoopRegula-RoX971sR.js} +59 -85
  21. package/chunk/StepIDCheckLoopRegula-RoX971sR.js.map +1 -0
  22. package/chunk/{StepIDCheckLoopRegula-jyg1vIi3.js → StepIDCheckLoopRegula-oqf-QxHT.js} +59 -85
  23. package/chunk/StepIDCheckLoopRegula-oqf-QxHT.js.map +1 -0
  24. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CmQGKlal.js → StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js} +52 -52
  25. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CmQGKlal.js.map → StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js.map} +1 -1
  26. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Qfl3ZvB1.js → StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js} +52 -52
  27. package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Qfl3ZvB1.js.map → StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js.map} +1 -1
  28. package/chunk/ar-CtJ_9k3U.js +4 -4
  29. package/chunk/bg-CWxXfiDq.js +4 -4
  30. package/chunk/bn-IN-Dpq_hCqt.js +4 -4
  31. package/chunk/cs-HevyelX7.js +4 -4
  32. package/chunk/da-6QXhWjWH.js +4 -4
  33. package/chunk/de-ChuCvRLv.js +4 -4
  34. package/chunk/el-3IAhABcN.js +4 -4
  35. package/chunk/en-GB-ByNBaer-.js +4 -4
  36. package/chunk/es-CL_dUc9X.js +4 -4
  37. package/chunk/es-ES-CW4At4Ol.js +4 -4
  38. package/chunk/fi-D8cIebkk.js +4 -4
  39. package/chunk/fr-BDU-1C6f.js +4 -4
  40. package/chunk/fr-CA-Dc02rv8D.js +4 -4
  41. package/chunk/ga-P7eP-INQ.js +4 -4
  42. package/chunk/hi-IN-DlmwjoqH.js +4 -4
  43. package/chunk/hr-CT_VP_lm.js +4 -4
  44. package/chunk/hu-I8Z1uXsR.js +4 -4
  45. package/chunk/id-CUPTGKOT.js +4 -4
  46. package/chunk/{index-IntP52Fm.js → index-4APUDd8S.js} +26 -26
  47. package/chunk/{index-IntP52Fm.js.map → index-4APUDd8S.js.map} +1 -1
  48. package/chunk/{index-BrVZpRb7.js → index-9OD0Bw98.js} +58 -58
  49. package/chunk/{index-BgB4HxER.js.map → index-9OD0Bw98.js.map} +1 -1
  50. package/chunk/index-B-PpnUEO.js +52 -0
  51. package/chunk/index-B-PpnUEO.js.map +1 -0
  52. package/chunk/{index-D_lbJwrN.js → index-B8F8N-JM.js} +46 -46
  53. package/chunk/{index-D_lbJwrN.js.map → index-B8F8N-JM.js.map} +1 -1
  54. package/chunk/{index-C3tQa9xA.js → index-B8KPM--K.js} +48 -56
  55. package/chunk/{index-C3tQa9xA.js.map → index-B8KPM--K.js.map} +1 -1
  56. package/chunk/{index-BJxmlJd1.js → index-BD2bjH-C.js} +5 -5
  57. package/{lib/index-mtr_UcW2.js.map → chunk/index-BD2bjH-C.js.map} +1 -1
  58. package/chunk/{index-GaKINs6g.js → index-BD_a0MZT.js} +24 -24
  59. package/chunk/{index-i9-QlgZ0.js.map → index-BD_a0MZT.js.map} +1 -1
  60. package/chunk/{index-DZ0bnNgg.js → index-BDrKYann.js} +29 -29
  61. package/chunk/{index-D1j4nnQa.js.map → index-BDrKYann.js.map} +1 -1
  62. package/chunk/{index-ygMzyxW9.js → index-BTMETMEE.js} +52 -52
  63. package/chunk/index-BTMETMEE.js.map +1 -0
  64. package/chunk/{index-DJReh58z.js → index-Bi9QXN5x.js} +9 -9
  65. package/chunk/{index-DJReh58z.js.map → index-Bi9QXN5x.js.map} +1 -1
  66. package/chunk/{index-whConjrR.js → index-Bmq6cJ3F.js} +25 -25
  67. package/{lib/index-CkM0aH9Q.js.map → chunk/index-Bmq6cJ3F.js.map} +1 -1
  68. package/chunk/{index-i9-QlgZ0.js → index-BpZoH-Wz.js} +24 -24
  69. package/chunk/{index-GaKINs6g.js.map → index-BpZoH-Wz.js.map} +1 -1
  70. package/chunk/{index-F-HVkQz5.js → index-BuX76GyE.js} +40 -40
  71. package/{lib/index-CZyo7O6A.js.map → chunk/index-BuX76GyE.js.map} +1 -1
  72. package/chunk/{index-1tM2UWke.js → index-C2h0Wj84.js} +48 -56
  73. package/chunk/{index-1tM2UWke.js.map → index-C2h0Wj84.js.map} +1 -1
  74. package/chunk/{index-D6RaCifq.js → index-C8MQD8EK.js} +26 -26
  75. package/chunk/{index-D6RaCifq.js.map → index-C8MQD8EK.js.map} +1 -1
  76. package/chunk/{index-Cb7GlxEu.js → index-C8u9IJUa.js} +11 -11
  77. package/chunk/{index-BmJ3aubI.js.map → index-C8u9IJUa.js.map} +1 -1
  78. package/chunk/{index-n6-LNqUp.js → index-C96ntS0u.js} +25 -25
  79. package/chunk/{index-n6-LNqUp.js.map → index-C96ntS0u.js.map} +1 -1
  80. package/chunk/index-CHK5i4jj.js +48 -0
  81. package/chunk/index-CHK5i4jj.js.map +1 -0
  82. package/chunk/{index-BSXBGGOf.js → index-CTb96lOK.js} +8 -8
  83. package/chunk/{index-BSXBGGOf.js.map → index-CTb96lOK.js.map} +1 -1
  84. package/chunk/{index-CEidf7uT.js → index-CcRowarb.js} +5 -5
  85. package/chunk/{index-CEidf7uT.js.map → index-CcRowarb.js.map} +1 -1
  86. package/chunk/{index-DFjiwKs3.js → index-CeHu2Npu.js} +7 -7
  87. package/chunk/{index-rjS-77t0.js.map → index-CeHu2Npu.js.map} +1 -1
  88. package/chunk/{index-vIL1gjSk.js → index-CniY_P3e.js} +219 -237
  89. package/chunk/index-CniY_P3e.js.map +1 -0
  90. package/chunk/index-DIkWpujR.js +4 -4
  91. package/chunk/index-DIkWpujR.js.map +1 -1
  92. package/chunk/{index-BgB4HxER.js → index-DKWjcFJK.js} +58 -58
  93. package/chunk/{index-BrVZpRb7.js.map → index-DKWjcFJK.js.map} +1 -1
  94. package/chunk/{index-D6Gez9pU.js → index-DLz31Fzh.js} +17 -17
  95. package/chunk/{index-DyHhX3QL.js.map → index-DLz31Fzh.js.map} +1 -1
  96. package/chunk/{index-Cq8qB8GK.js → index-DO5Z3e-E.js} +40 -40
  97. package/chunk/{index-F-HVkQz5.js.map → index-DO5Z3e-E.js.map} +1 -1
  98. package/chunk/{index-BmJ3aubI.js → index-DRlGAW07.js} +11 -11
  99. package/chunk/{index-Cb7GlxEu.js.map → index-DRlGAW07.js.map} +1 -1
  100. package/chunk/{index-rjS-77t0.js → index-DVynViqA.js} +7 -7
  101. package/chunk/{index-DFjiwKs3.js.map → index-DVynViqA.js.map} +1 -1
  102. package/chunk/{index-NMedOT6B.js → index-D_9J6arc.js} +62 -59
  103. package/chunk/index-D_9J6arc.js.map +1 -0
  104. package/chunk/{index-25aIMfhs.js → index-Dg8t7-dm.js} +46 -46
  105. package/chunk/{index-25aIMfhs.js.map → index-Dg8t7-dm.js.map} +1 -1
  106. package/chunk/{index-D1j4nnQa.js → index-DhGg9lvf.js} +29 -29
  107. package/chunk/{index-DZ0bnNgg.js.map → index-DhGg9lvf.js.map} +1 -1
  108. package/chunk/{index-DkuH8kG3.js → index-DsgCNIS5.js} +62 -59
  109. package/chunk/index-DsgCNIS5.js.map +1 -0
  110. package/chunk/{index-C6cgSdQ9.js → index-DvQoVn8P.js} +53 -50
  111. package/chunk/index-DvQoVn8P.js.map +1 -0
  112. package/chunk/{index-DyHhX3QL.js → index-DzqRsB7_.js} +17 -17
  113. package/chunk/{index-D6Gez9pU.js.map → index-DzqRsB7_.js.map} +1 -1
  114. package/chunk/{index-DR_Yi6nm.js → index-FfXcSdRM.js} +219 -237
  115. package/chunk/index-FfXcSdRM.js.map +1 -0
  116. package/chunk/{index-CGKKTwvx.js → index-FjzhfDlx.js} +9 -9
  117. package/chunk/{index-CGKKTwvx.js.map → index-FjzhfDlx.js.map} +1 -1
  118. package/chunk/{index-DPLvpl1z.js → index-Gfy-1H7s.js} +8 -8
  119. package/{lib/index-DNrYLi4q.js.map → chunk/index-Gfy-1H7s.js.map} +1 -1
  120. package/chunk/{index-BjWeyRVL.js → index-YSVzGeq_.js} +53 -50
  121. package/chunk/index-YSVzGeq_.js.map +1 -0
  122. package/chunk/{index-D8z4eipH.js → index-_t8SsXjy.js} +52 -52
  123. package/chunk/index-_t8SsXjy.js.map +1 -0
  124. package/chunk/is-CUuXi4qZ.js +4 -4
  125. package/chunk/it-BNmynTsg.js +4 -4
  126. package/chunk/iw-FGzquR_X.js +4 -4
  127. package/chunk/ja-YgUpXA0l.js +4 -4
  128. package/chunk/ko-CuNS5J_M.js +4 -4
  129. package/chunk/lo-BEf8aFjR.js +4 -4
  130. package/chunk/lt-DvX1gz1a.js +4 -4
  131. package/chunk/ms-gSqM-Mfi.js +4 -4
  132. package/chunk/nl-BE-Cid5LFlN.js +4 -4
  133. package/chunk/nl-CUUTswxa.js +4 -4
  134. package/chunk/no-BvUqlShV.js +4 -4
  135. package/chunk/pl-CU8leZhI.js +4 -4
  136. package/chunk/pt-BR-CboWpHFi.js +4 -4
  137. package/chunk/pt-BnK7xRT_.js +4 -4
  138. package/chunk/ro-BfAyXxSW.js +4 -4
  139. package/chunk/ru-BD-YGPuQ.js +4 -4
  140. package/chunk/sk-CqsabpdG.js +4 -4
  141. package/chunk/sl-CeVAf0S_.js +4 -4
  142. package/chunk/sr-DSaHxcCQ.js +4 -4
  143. package/chunk/sv-DOyWYViy.js +4 -4
  144. package/chunk/sw-2Q7Jo6wp.js +4 -4
  145. package/chunk/th-BZ6F9sPf.js +4 -4
  146. package/chunk/tr-om80xrv2.js +4 -4
  147. package/chunk/uk-Dxugux8e.js +4 -4
  148. package/chunk/ur-OBILUeZ7.js +4 -4
  149. package/chunk/{useCollectFieldsEndpoint-CumMd2sJ.js → useCollectFieldsEndpoint-C5fsaYJe.js} +5 -5
  150. package/chunk/{useCollectFieldsEndpoint-CumMd2sJ.js.map → useCollectFieldsEndpoint-C5fsaYJe.js.map} +1 -1
  151. package/chunk/{useCollectFieldsEndpoint-V5bz5WAF.js → useCollectFieldsEndpoint-kmLFyUA-.js} +5 -5
  152. package/chunk/{useCollectFieldsEndpoint-V5bz5WAF.js.map → useCollectFieldsEndpoint-kmLFyUA-.js.map} +1 -1
  153. package/chunk/{useEmailFirstExperiment-CV5nAxtl.js → useEmailFirstExperiment-BbDrKQEs.js} +29 -30
  154. package/chunk/{useEmailFirstExperiment-CV5nAxtl.js.map → useEmailFirstExperiment-BbDrKQEs.js.map} +1 -1
  155. package/chunk/{useEmailFirstExperiment-mjdDc7vk.js → useEmailFirstExperiment-CgU-itQI.js} +29 -30
  156. package/chunk/{useEmailFirstExperiment-mjdDc7vk.js.map → useEmailFirstExperiment-CgU-itQI.js.map} +1 -1
  157. package/chunk/vi-BOR2GuRI.js +4 -4
  158. package/chunk/zh-HK-BI-IHOGG.js +4 -4
  159. package/chunk/zh-eoMG5RFC.js +4 -4
  160. package/chunk/zu-D_A8wcJW.js +4 -4
  161. package/dev/programIds.d.ts +1 -1
  162. package/es6.css +4 -4
  163. package/jslib.js +15 -15
  164. package/lib/{EmailLoopPending-CU7XS8L8.js → EmailLoopPending-Cgv6H292.js} +11 -11
  165. package/lib/{EmailLoopPending-CU7XS8L8.js.map → EmailLoopPending-Cgv6H292.js.map} +1 -1
  166. package/lib/{LicensedProfessionalOrganizationComponent-CE90PGza.js → LicensedProfessionalOrganizationComponent-BL8b4uOQ.js} +5 -5
  167. package/lib/{LicensedProfessionalOrganizationComponent-CE90PGza.js.map → LicensedProfessionalOrganizationComponent-BL8b4uOQ.js.map} +1 -1
  168. package/lib/{Onfido-CMH3IUna.js → Onfido-AyvUk6wg.js} +28 -28
  169. package/lib/{Onfido-CMH3IUna.js.map → Onfido-AyvUk6wg.js.map} +1 -1
  170. package/lib/StepCollectMilitaryStatusComponent-DhTtNN4h.js +11 -0
  171. package/lib/{StepCollectMilitaryStatusComponent-DvJIjJ8Z.js.map → StepCollectMilitaryStatusComponent-DhTtNN4h.js.map} +1 -1
  172. package/lib/{StepIDCheckLoopOnfido-B8g2Degw.js → StepIDCheckLoopOnfido-GHJRJUvB.js} +5 -5
  173. package/lib/{StepIDCheckLoopOnfido-B8g2Degw.js.map → StepIDCheckLoopOnfido-GHJRJUvB.js.map} +1 -1
  174. package/lib/{StepIDCheckLoopRegula-C971tdOB.js → StepIDCheckLoopRegula-D5eT-SKW.js} +22 -21
  175. package/lib/StepIDCheckLoopRegula-D5eT-SKW.js.map +1 -0
  176. package/lib/{StepInactiveMilitaryPersonalInfoComponent-B-bOA0LI.js → StepInactiveMilitaryPersonalInfoComponent-D1JRxb0T.js} +49 -49
  177. package/lib/{StepInactiveMilitaryPersonalInfoComponent-B-bOA0LI.js.map → StepInactiveMilitaryPersonalInfoComponent-D1JRxb0T.js.map} +1 -1
  178. package/lib/VerificationApiUtils-CSOIBr2l.js +23 -0
  179. package/lib/{VerificationApiUtils-Cn5PJJ2V.js.map → VerificationApiUtils-CSOIBr2l.js.map} +1 -1
  180. package/lib/ar-CtJ_9k3U.js +4 -4
  181. package/lib/bg-CWxXfiDq.js +4 -4
  182. package/lib/bn-IN-Dpq_hCqt.js +4 -4
  183. package/lib/cs-HevyelX7.js +4 -4
  184. package/lib/da-6QXhWjWH.js +4 -4
  185. package/lib/de-ChuCvRLv.js +4 -4
  186. package/lib/el-3IAhABcN.js +4 -4
  187. package/lib/en-GB-ByNBaer-.js +4 -4
  188. package/lib/es-CL_dUc9X.js +4 -4
  189. package/lib/es-ES-CW4At4Ol.js +4 -4
  190. package/lib/{es6-BxF8vNXX.js → es6-Cd5CU1rk.js} +12444 -11224
  191. package/lib/es6-Cd5CU1rk.js.map +1 -0
  192. package/lib/fi-D8cIebkk.js +4 -4
  193. package/lib/fr-BDU-1C6f.js +4 -4
  194. package/lib/fr-CA-Dc02rv8D.js +4 -4
  195. package/lib/ga-P7eP-INQ.js +4 -4
  196. package/lib/hi-IN-DlmwjoqH.js +4 -4
  197. package/lib/hr-CT_VP_lm.js +4 -4
  198. package/lib/hu-I8Z1uXsR.js +4 -4
  199. package/lib/id-CUPTGKOT.js +4 -4
  200. package/lib/{index-DF0_IZ4J.js → index-8rGphWWB.js} +5 -5
  201. package/lib/{index-DF0_IZ4J.js.map → index-8rGphWWB.js.map} +1 -1
  202. package/lib/index-B8_yVVjT.js +11 -0
  203. package/lib/index-B8_yVVjT.js.map +1 -0
  204. package/lib/{index-ByJQnMVd.js → index-BI7GVXtW.js} +9 -9
  205. package/lib/{index-ByJQnMVd.js.map → index-BI7GVXtW.js.map} +1 -1
  206. package/lib/index-BVSkyAhp.js +174 -0
  207. package/lib/index-BVSkyAhp.js.map +1 -0
  208. package/lib/index-BzizKoKM.js +28 -0
  209. package/lib/{index-BvonWwY9.js.map → index-BzizKoKM.js.map} +1 -1
  210. package/lib/{index-C9Fn2hpc.js → index-C-UBKjB3.js} +7 -7
  211. package/lib/{index-C9Fn2hpc.js.map → index-C-UBKjB3.js.map} +1 -1
  212. package/lib/{index-CyEPe472.js → index-CAmO2ePK.js} +28 -28
  213. package/lib/{index-CyEPe472.js.map → index-CAmO2ePK.js.map} +1 -1
  214. package/lib/{index-kFFbuxGz.js → index-CNJMsPkI.js} +30 -30
  215. package/lib/{index-kFFbuxGz.js.map → index-CNJMsPkI.js.map} +1 -1
  216. package/lib/index-COT-MMXU.js +11 -0
  217. package/lib/index-COT-MMXU.js.map +1 -0
  218. package/lib/{index-DNrYLi4q.js → index-CquhMPch.js} +10 -10
  219. package/{chunk/index-DPLvpl1z.js.map → lib/index-CquhMPch.js.map} +1 -1
  220. package/lib/{index-CkM0aH9Q.js → index-CrU_oFr5.js} +31 -31
  221. package/{chunk/index-whConjrR.js.map → lib/index-CrU_oFr5.js.map} +1 -1
  222. package/lib/{index-BM4FQqsg.js → index-CycvFL4s.js} +51 -51
  223. package/lib/index-CycvFL4s.js.map +1 -0
  224. package/lib/{index-DV-jRbN_.js → index-D8xBboSY.js} +385 -402
  225. package/lib/index-D8xBboSY.js.map +1 -0
  226. package/lib/index-DIKagexz.js +11 -0
  227. package/lib/index-DIKagexz.js.map +1 -0
  228. package/lib/index-DIkWpujR.js +4 -4
  229. package/lib/index-DIkWpujR.js.map +1 -1
  230. package/lib/{index-DYEdh22B.js → index-DXMyDp6l.js} +5 -5
  231. package/lib/{index-DYEdh22B.js.map → index-DXMyDp6l.js.map} +1 -1
  232. package/lib/index-DapHnb_O.js +11 -0
  233. package/lib/index-DapHnb_O.js.map +1 -0
  234. package/lib/{index-CLCBNuVt.js → index-DfgcgKL8.js} +61 -61
  235. package/lib/{index-CLCBNuVt.js.map → index-DfgcgKL8.js.map} +1 -1
  236. package/lib/{index--LSZP8PV.js → index-Di4nVjsP.js} +34 -34
  237. package/lib/{index--LSZP8PV.js.map → index-Di4nVjsP.js.map} +1 -1
  238. package/lib/{index-CdboVnqo.js → index-NEgQaFMt.js} +34 -34
  239. package/lib/{index-CdboVnqo.js.map → index-NEgQaFMt.js.map} +1 -1
  240. package/lib/{index-Cm9LAqYW.js → index-V4Aq0AEi.js} +40 -37
  241. package/lib/index-V4Aq0AEi.js.map +1 -0
  242. package/lib/{index-T7cotgLv.js → index-bflegEA0.js} +27 -27
  243. package/lib/{index-T7cotgLv.js.map → index-bflegEA0.js.map} +1 -1
  244. package/lib/{index-mtr_UcW2.js → index-n33pq1qL.js} +5 -5
  245. package/{chunk/index-BJxmlJd1.js.map → lib/index-n33pq1qL.js.map} +1 -1
  246. package/lib/{index-CZyo7O6A.js → index-qKcACX8u.js} +19 -19
  247. package/{chunk/index-Cq8qB8GK.js.map → lib/index-qKcACX8u.js.map} +1 -1
  248. package/lib/is-CUuXi4qZ.js +4 -4
  249. package/lib/it-BNmynTsg.js +4 -4
  250. package/lib/iw-FGzquR_X.js +4 -4
  251. package/lib/ja-YgUpXA0l.js +4 -4
  252. package/lib/ko-CuNS5J_M.js +4 -4
  253. package/lib/lo-BEf8aFjR.js +4 -4
  254. package/lib/lt-DvX1gz1a.js +4 -4
  255. package/lib/ms-gSqM-Mfi.js +4 -4
  256. package/lib/nl-BE-Cid5LFlN.js +4 -4
  257. package/lib/nl-CUUTswxa.js +4 -4
  258. package/lib/no-BvUqlShV.js +4 -4
  259. package/lib/pl-CU8leZhI.js +4 -4
  260. package/lib/pt-BR-CboWpHFi.js +4 -4
  261. package/lib/pt-BnK7xRT_.js +4 -4
  262. package/lib/ro-BfAyXxSW.js +4 -4
  263. package/lib/ru-BD-YGPuQ.js +4 -4
  264. package/lib/sk-CqsabpdG.js +4 -4
  265. package/lib/sl-CeVAf0S_.js +4 -4
  266. package/lib/sr-DSaHxcCQ.js +4 -4
  267. package/lib/sv-DOyWYViy.js +4 -4
  268. package/lib/sw-2Q7Jo6wp.js +4 -4
  269. package/lib/th-BZ6F9sPf.js +4 -4
  270. package/lib/tr-om80xrv2.js +4 -4
  271. package/lib/uk-Dxugux8e.js +4 -4
  272. package/lib/ur-OBILUeZ7.js +4 -4
  273. package/lib/{useCollectFieldsEndpoint-gIqEUxfv.js → useCollectFieldsEndpoint-oar_yAF6.js} +6 -6
  274. package/lib/{useCollectFieldsEndpoint-gIqEUxfv.js.map → useCollectFieldsEndpoint-oar_yAF6.js.map} +1 -1
  275. package/lib/{useEmailFirstExperiment-B0sWtBW-.js → useEmailFirstExperiment-CUsNZ8ig.js} +6 -7
  276. package/lib/{useEmailFirstExperiment-B0sWtBW-.js.map → useEmailFirstExperiment-CUsNZ8ig.js.map} +1 -1
  277. package/lib/vi-BOR2GuRI.js +4 -4
  278. package/lib/zh-HK-BI-IHOGG.js +4 -4
  279. package/lib/zh-eoMG5RFC.js +4 -4
  280. package/lib/zu-D_A8wcJW.js +4 -4
  281. package/package.json +4 -4
  282. package/sheerid-install.css +4 -4
  283. package/sheerid-install.js +6 -6
  284. package/sheerid-install.js.map +1 -1
  285. package/sheerid.css +5 -5
  286. package/sheerid.js +18344 -16741
  287. package/sheerid.js.map +1 -1
  288. package/src/components/AcceptableUploadsComponent/AcceptableUploadsComponent.d.ts +1 -1
  289. package/src/components/AcceptableUploadsComponent/getLegacyAcceptableUploads.d.ts +1 -1
  290. package/src/components/Button/Button.d.ts +1 -0
  291. package/src/components/CopyToClipboard/CopyToClipboardComponent.d.ts +2 -1
  292. package/src/components/CustomCssContext/CustomCssContextProvider.d.ts +1 -1
  293. package/src/components/DateComponent/DateComponent.d.ts +2 -2
  294. package/src/components/ExtraMessage.d.ts +1 -1
  295. package/src/components/FaqLink/FaqLinkComponent.d.ts +1 -1
  296. package/src/components/FeatureFlags/ExperimentComponent/ExperimentComponent.d.ts +4 -4
  297. package/src/components/FetchOrganizationsComponent.d.ts +1 -1
  298. package/src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.d.ts +1 -1
  299. package/src/components/FormFields/Address/AddressComponent.d.ts +2 -2
  300. package/src/components/FormFields/BirthDate/BirthDateComponent.d.ts +1 -1
  301. package/src/components/FormFields/BranchOfService/BranchOfServiceComponent.d.ts +2 -2
  302. package/src/components/FormFields/CVECNumber/CVECNumberComponent.d.ts +2 -2
  303. package/src/components/FormFields/ChangeLocale/ChangeLocaleComponent.d.ts +3 -3
  304. package/src/components/FormFields/City/City.d.ts +2 -2
  305. package/src/components/FormFields/CollegeName/CollegeNameComponent.d.ts +2 -2
  306. package/src/components/FormFields/Company/CompanyComponent.d.ts +2 -2
  307. package/src/components/FormFields/Country/CountryComponent.d.ts +2 -2
  308. package/src/components/FormFields/Country/CountryComponentWrapper.d.ts +2 -2
  309. package/src/components/FormFields/DischargeDate/DischargeDateComponent.d.ts +1 -1
  310. package/src/components/FormFields/DriverLicenseNumber/DriverLicenseNumberComponent.d.ts +2 -2
  311. package/src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.d.ts +2 -2
  312. package/src/components/FormFields/Email/EmailComponent.d.ts +2 -2
  313. package/src/components/FormFields/EmailFirstCollectInfo/EmailLookupResponseMessageComponent.d.ts +1 -1
  314. package/src/components/FormFields/EmailFirstCollectInfo/useEmailFirstExperiment.d.ts +1 -1
  315. package/src/components/FormFields/FirstName/FirstNameComponent.d.ts +2 -2
  316. package/src/components/FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent.d.ts +2 -2
  317. package/src/components/FormFields/FormFieldCustom/FormFieldCustom.d.ts +2 -2
  318. package/src/components/FormFields/FormFieldInputSelect/FormFieldInputSelect.d.ts +1 -1
  319. package/src/components/FormFields/FormFieldRadio/FormFieldRadio.d.ts +2 -2
  320. package/src/components/FormFields/FormFieldSelect/FormFieldSelect.d.ts +2 -2
  321. package/src/components/FormFields/FormFieldText/FormFieldText.d.ts +1 -1
  322. package/src/components/FormFields/FormFieldTypeahead/FormFieldTypeahead.d.ts +2 -2
  323. package/src/components/FormFields/LastName/LastNameComponent.d.ts +2 -2
  324. package/src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.d.ts +2 -2
  325. package/src/components/FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent.d.ts +2 -2
  326. package/src/components/FormFields/MarketConsentWrapper/MarketConsentWrapperComponent.d.ts +1 -1
  327. package/src/components/FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent.d.ts +2 -2
  328. package/src/components/FormFields/MemberId/MemberIdComponent.d.ts +2 -2
  329. package/src/components/FormFields/MembershipOrganization/MembershipOrganizationComponent.d.ts +2 -2
  330. package/src/components/FormFields/OptIn/OptInComponent.d.ts +1 -1
  331. package/src/components/FormFields/OverrideCode/OverrideCodeComponent.d.ts +2 -2
  332. package/src/components/FormFields/PhoneNumber/PhoneNumberComponent.d.ts +2 -2
  333. package/src/components/FormFields/PostalCode/PostalCodeComponent.d.ts +2 -2
  334. package/src/components/FormFields/SMSCode/SMSCodeComponent.d.ts +2 -2
  335. package/src/components/FormFields/SSN/SSN.d.ts +2 -2
  336. package/src/components/FormFields/State/State.d.ts +2 -2
  337. package/src/components/FormFields/State/StateSelectComponent.d.ts +2 -2
  338. package/src/components/FormFields/Status/StatusComponent.d.ts +2 -2
  339. package/src/components/FormFields/TeacherSchool/TeacherSchoolComponent.d.ts +2 -2
  340. package/src/components/FormFooter/FooterTextComponent.d.ts +1 -1
  341. package/src/components/FormFooter/FormFooterComponent.d.ts +1 -1
  342. package/src/components/FormHeader/FormHeaderComponent.d.ts +1 -1
  343. package/src/components/FormHeader/StepHeaders/PersonalInfoHeaderComponent.d.ts +1 -1
  344. package/src/components/FormInputs/InputRadio/InputRadio.d.ts +1 -1
  345. package/src/components/FormInputs/InputSelect/InputSelectComponent.d.ts +1 -1
  346. package/src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.d.ts +1 -1
  347. package/src/components/FormInputs/PostalCodeInput/PostalCodeInputComponent.d.ts +1 -1
  348. package/src/components/FormInputs/Select/SelectComponent.d.ts +1 -1
  349. package/src/components/FormInputs/Select/SelectList/SelectListComponent.d.ts +1 -1
  350. package/src/components/FormInputs/Typeahead/TypeaheadComponent.d.ts +1 -1
  351. package/src/components/FormInputs/Typeahead/TypeaheadComponentHelper.d.ts +1 -1
  352. package/src/components/HowDoesVerifyingWork/HowDoesVerifyingWorkComponent.d.ts +1 -1
  353. package/src/components/Layout/Layout.d.ts +1 -1
  354. package/src/components/LoadStepComponent.d.ts +1 -1
  355. package/src/components/LoadingScreen/LoadingScreenComponent.d.ts +1 -1
  356. package/src/components/LoadingScreen/LoadingScreenMessage.d.ts +1 -1
  357. package/src/components/LogoComponent/LogoComponent.d.ts +1 -1
  358. package/src/components/NewVerificationComponent.d.ts +3 -3
  359. package/src/components/NewVerificationInnerComponent.d.ts +1 -1
  360. package/src/components/OrganizationList/OrganizationListComponent.d.ts +1 -1
  361. package/src/components/PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton.d.ts +2 -2
  362. package/src/components/PersonalInfoStepWrapper/PersonalInfoStepWrapper.d.ts +2 -1
  363. package/src/components/PoweredBy/PoweredByComponent.d.ts +1 -1
  364. package/src/components/PrivacyPolicyLink/PrivacyPolicyLinkComponent.d.ts +2 -2
  365. package/src/components/RewardsRemaining/RewardsRemainingComponent.d.ts +1 -1
  366. package/src/components/SingleSignOnComponent.d.ts +2 -2
  367. package/src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.d.ts +2 -2
  368. package/src/components/StepCollectIdentifier/StepCollectIdentifierComponent.d.ts +1 -1
  369. package/src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.d.ts +2 -2
  370. package/src/components/StepConsolation/StepConsolationComponent.d.ts +1 -1
  371. package/src/components/StepDocUpload/StepDocUploadComponent.d.ts +1 -1
  372. package/src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.d.ts +1 -1
  373. package/src/components/StepEmailLoop/EmailLoopPending.d.ts +1 -1
  374. package/src/components/StepEmailLoop/StepEmailLoopComponent.d.ts +2 -2
  375. package/src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.d.ts +1 -1
  376. package/src/components/StepError/StepErrorComponent.d.ts +2 -2
  377. package/src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.d.ts +1 -1
  378. package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopOnfidoFooter.d.ts +1 -1
  379. package/src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopRegulaFooter.d.ts +1 -1
  380. package/src/components/StepIDCheckLoop/Onfido/IdCheckLoopOnfido/IdCheckLoopOnfido.d.ts +2 -2
  381. package/src/components/StepIDCheckLoop/Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido.d.ts +1 -1
  382. package/src/components/StepIDCheckLoop/Onfido/utils/getAndFormatOrderedStepCards.d.ts +1 -1
  383. package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/DisplayThumbnail.d.ts +1 -1
  384. package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/IdCheckLoopRegula.d.ts +1 -1
  385. package/src/components/StepIDCheckLoop/Regula/StepIDCheckLoopRegulaComponent/StepIDCheckLoopRegula.d.ts +1 -1
  386. package/src/components/StepIDCheckLoop/StepIDCheckLoopComponent.d.ts +1 -1
  387. package/src/components/StepIdentityPersonalInfo/StepDriverLicensePersonalInfoComponent.d.ts +1 -1
  388. package/src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.d.ts +1 -1
  389. package/src/components/StepIdentityPersonalInfo/StepHybridIdentityPersonalInfoComponent.d.ts +1 -1
  390. package/src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.d.ts +1 -1
  391. package/src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.d.ts +1 -1
  392. package/src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.d.ts +1 -1
  393. package/src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.d.ts +1 -1
  394. package/src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.d.ts +1 -1
  395. package/src/components/StepMilitaryPersonalInfo/StepInactiveMilitaryPersonalInfoComponent.d.ts +1 -1
  396. package/src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.d.ts +1 -1
  397. package/src/components/StepOverrideComponent/StepOverrideComponent.d.ts +2 -2
  398. package/src/components/StepPending/ReviewPendingComponent.d.ts +1 -1
  399. package/src/components/StepPending/SingleSignOnPendingComponent.d.ts +2 -2
  400. package/src/components/StepPending/StepPendingComponent.d.ts +1 -1
  401. package/src/components/StepPending/ThirdPartyLoopPendingComponent.d.ts +1 -1
  402. package/src/components/StepSMSLoop/StepSMSLoopComponent.d.ts +2 -2
  403. package/src/components/StepSSO/StepSSOComponent.d.ts +1 -1
  404. package/src/components/StepSeniorPersonalInfo/StepSeniorPersonalInfoComponent.d.ts +1 -1
  405. package/src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.d.ts +1 -1
  406. package/src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.d.ts +1 -1
  407. package/src/components/StepSuccess/StepSuccessComponent.d.ts +1 -1
  408. package/src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.d.ts +1 -1
  409. package/src/components/StepThirdPartyLoop/StepThirdPartyLoopComponent.d.ts +3 -3
  410. package/src/components/TestModeFlag/TestModeFlagComponent.d.ts +1 -1
  411. package/src/components/UploadInfoComponent/UploadInfoComponent.d.ts +1 -1
  412. package/src/components/VerificationForm/VerificationFormComponent.d.ts +1 -1
  413. package/src/es5Bindings/VerificationFormEs5.d.ts +1 -1
  414. package/src/lib/ProgramTheme/programThemeGetters.d.ts +1 -1
  415. package/src/lib/ServerApi/ApiUrls.d.ts +1 -1
  416. package/src/lib/ServerApi/VerificationApiClient.d.ts +1 -1
  417. package/src/lib/ServerApi/VerificationHelpRequestApi.d.ts +1 -1
  418. package/src/lib/VerificationService/VerificationServiceActions.d.ts +1 -1
  419. package/src/lib/VerificationService/ViewModel.d.ts +5 -3
  420. package/src/lib/hooks/index.d.ts +1 -1
  421. package/src/lib/installScript/_mysheerid-preview.d.ts +2 -2
  422. package/src/lib/installScript/affinity.d.ts +1 -1
  423. package/src/lib/installScript/iframe.d.ts +1 -1
  424. package/src/lib/installScript/index.d.ts +3 -3
  425. package/src/lib/installScript/modal.d.ts +1 -1
  426. package/src/lib/intl/localized-messages/en-US.json.d.ts +1 -1
  427. package/src/lib/state/contextHooks.d.ts +1 -1
  428. package/src/lib/types/runtimeTypes.d.ts +1 -1
  429. package/src/lib/types/types.d.ts +12 -8
  430. package/src/lib/utils/customTagReplacer/index.d.ts +1 -1
  431. package/src/lib/utils/stepComponentHelpers/stepComponentHelpers.d.ts +2 -2
  432. package/src/lib/utils/structures/FormSelectChoice.d.ts +1 -1
  433. package/types-reference.zip +0 -0
  434. package/chunk/StepIDCheckLoopRegula-1wd-jJGJ.js.map +0 -1
  435. package/chunk/StepIDCheckLoopRegula-jyg1vIi3.js.map +0 -1
  436. package/chunk/index-B_CvWvhW.js +0 -27
  437. package/chunk/index-B_CvWvhW.js.map +0 -1
  438. package/chunk/index-BjWeyRVL.js.map +0 -1
  439. package/chunk/index-Bv_0MGCt.js +0 -31
  440. package/chunk/index-Bv_0MGCt.js.map +0 -1
  441. package/chunk/index-C6cgSdQ9.js.map +0 -1
  442. package/chunk/index-D8z4eipH.js.map +0 -1
  443. package/chunk/index-DR_Yi6nm.js.map +0 -1
  444. package/chunk/index-DkuH8kG3.js.map +0 -1
  445. package/chunk/index-NMedOT6B.js.map +0 -1
  446. package/chunk/index-vIL1gjSk.js.map +0 -1
  447. package/chunk/index-ygMzyxW9.js.map +0 -1
  448. package/lib/StepCollectMilitaryStatusComponent-DvJIjJ8Z.js +0 -11
  449. package/lib/StepIDCheckLoopRegula-C971tdOB.js.map +0 -1
  450. package/lib/VerificationApiUtils-Cn5PJJ2V.js +0 -21
  451. package/lib/es6-BxF8vNXX.js.map +0 -1
  452. package/lib/index-BM4FQqsg.js.map +0 -1
  453. package/lib/index-BbYtScSJ.js +0 -171
  454. package/lib/index-BbYtScSJ.js.map +0 -1
  455. package/lib/index-Bf3CeTFC.js +0 -11
  456. package/lib/index-Bf3CeTFC.js.map +0 -1
  457. package/lib/index-BvonWwY9.js +0 -28
  458. package/lib/index-Cm9LAqYW.js.map +0 -1
  459. package/lib/index-DAjrVVta.js +0 -11
  460. package/lib/index-DAjrVVta.js.map +0 -1
  461. package/lib/index-DO-KFs1U.js +0 -11
  462. package/lib/index-DO-KFs1U.js.map +0 -1
  463. package/lib/index-DV-jRbN_.js.map +0 -1
  464. package/lib/index-GAJX_Tjm.js +0 -11
  465. package/lib/index-GAJX_Tjm.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index-DYEdh22B.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;AAEDQ,EAAAA,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,GAAGA,EAAoB;AAAA,IACvB,SAASE,EAAqB,SAAS,CAAC;AAAA,EAAA,CACzC;AAGG,QAAAa,IAAgB,CAACC,MAAU;AAC/B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AAE;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-DXMyDp6l.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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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;"}
@@ -0,0 +1,11 @@
1
+
2
+ /**
3
+ * VERSION: 2.107.0
4
+ * BUILD_TIMESTAMP: 1746734275088
5
+ * BUILD_DATE: Thu May 08 2025 19:57:55 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 3dcde0ad6edf065c5f8e85780481e41d2352c9a5
7
+ */
8
+ import { b as f } from "./es6-Cd5CU1rk.js";
9
+ export {
10
+ f as default
11
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DapHnb_O.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,21 +1,21 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.105.0
4
- * BUILD_TIMESTAMP: 1746205300523
5
- * BUILD_DATE: Fri May 02 2025 17:01:40 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 6bc9b7c13c867b22d0b64758983911e2b4e64489
3
+ * VERSION: 2.107.0
4
+ * BUILD_TIMESTAMP: 1746734275088
5
+ * BUILD_DATE: Thu May 08 2025 19:57:55 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: 3dcde0ad6edf065c5f8e85780481e41d2352c9a5
7
7
  */
8
- import { k as da, aQ as m, aR as na, D as ra, V as f, j as s, m as la, a2 as ua, f as d, ac as ma, ap as ia, aS as ba, u as n, O as ga, T as pa, a5 as Ca, E as ha, n as Ea, X as Na, U as Ia, aa as xa, aM as Ma, aT as ja, aU as za, a6 as Da, W as ya, z as Ra, B as Fa, aj as La, ak as Oa, aL as Ta, Y as qa, Z as Aa, _ as Pa, o as wa, p as ka, M as Ba, $ as _a, aV as Wa, i as z, l as Ya, aW as Va, a4 as p, aX as Ua, ay as Ha, as as Ka, aK as $a, a3 as Xa, an as Qa, av as Za, aY as Ga } from "./es6-BxF8vNXX.js";
8
+ import { k as da, aP as m, aQ as na, B as ra, V as f, j as s, N as la, m as ua, a1 as ma, f as d, ab as ia, aR as ba, ap as ga, u as n, O as Ca, T as pa, a4 as ha, E as Ea, n as Na, X as Ia, U as xa, a9 as Ma, aM as ja, aS as za, aT as Da, a5 as ya, W as Ra, x as Fa, y as La, ai as Oa, aj as Ta, aL as qa, Y as Pa, Z as Aa, _ as wa, o as Ba, p as _a, aU as ka, i as z, l as Wa, aV as Va, aW as Ya, a3 as C, aw as Ua, aq as Ha, aK as Ka, a2 as Xa, am as $a, au as Qa, q as Za, aX as Ga } from "./es6-Cd5CU1rk.js";
9
9
  import N from "react";
10
10
  import { injectIntl as Ja, FormattedHTMLMessage as D } from "react-intl";
11
- import { L as ca } from "./LicensedProfessionalOrganizationComponent-CE90PGza.js";
11
+ import { L as ca } from "./LicensedProfessionalOrganizationComponent-BL8b4uOQ.js";
12
12
  const fa = ({
13
13
  intl: I,
14
14
  verificationService: e
15
15
  }) => {
16
- var F, L, O, T, q, A, P, w, k, B, _, W, Y, V, U, H, K, $, X, Q;
17
- const t = e.viewModel, { updateViewModel: y, programTheme: S } = e, [C, v] = N.useState(void 0), u = (a) => C && C.some((i) => i.key === a), { fieldValidationErrors: o } = e, h = e.verificationResponse, aa = da(h), l = (a, i) => {
18
- const g = Ba(
16
+ var F, L, O, T, q, P, A, w, B, _, k, W, V, Y, U, H, K, X, $, Q;
17
+ const t = e.viewModel, { updateViewModel: y, programTheme: S } = e, [p, v] = N.useState(void 0), u = (a) => p && p.some((i) => i.key === a), { fieldValidationErrors: o } = e, h = e.verificationResponse, aa = da(h), l = (a, i) => {
18
+ const g = Za(
19
19
  t,
20
20
  (E) => {
21
21
  E[a] = i;
@@ -28,23 +28,23 @@ const fa = ({
28
28
  a
29
29
  );
30
30
  y(i);
31
- }, x = t.localeChoice.value, sa = _a(), { segment: b, availableStatuses: M } = h, ta = b.charAt(0).toUpperCase() + b.slice(1), R = () => M && (b === m.FIRST_RESPONDER || b === m.MEDICAL || b === m.LOW_INCOME || b === m.LICENSED_PROFESSIONAL || b === m.EMPLOYMENT || b === m.RECENT_MOVER || b === m.MILITARY), j = (a) => (async () => {
31
+ }, x = t.localeChoice.value, sa = la(), { segment: b, availableStatuses: M } = h, ta = b.charAt(0).toUpperCase() + b.slice(1), R = () => M && (b === m.FIRST_RESPONDER || b === m.MEDICAL || b === m.LOW_INCOME || b === m.LICENSED_PROFESSIONAL || b === m.EMPLOYMENT || b === m.RECENT_MOVER || b === m.MILITARY), j = (a) => (async () => {
32
32
  try {
33
- const i = await Wa(
33
+ const i = await ka(
34
34
  h.verificationId,
35
35
  h.currentStep,
36
36
  a
37
37
  ), g = z(() => i.fieldsToCollect.required, []);
38
38
  R() && g.push({ key: "status" }), ea(g), v(g);
39
39
  } catch (i) {
40
- Ya.error(`Failed to determine fields to collect: ${i}`);
40
+ Wa.error(`Failed to determine fields to collect: ${i}`);
41
41
  }
42
42
  })(), oa = () => {
43
43
  var a, i, g, E, Z, G, J, c;
44
44
  switch (b) {
45
45
  case m.STUDENT:
46
46
  return /* @__PURE__ */ s.jsx(
47
- Za,
47
+ Qa,
48
48
  {
49
49
  value: e.viewModel.organization,
50
50
  verificationService: e,
@@ -52,20 +52,20 @@ const fa = ({
52
52
  isRequired: !0,
53
53
  disabled: (a = d("organization")) == null ? void 0 : a.disabled,
54
54
  onChange: (r) => {
55
- p(r, e), n("organization", r, e);
55
+ C(r, e), n("organization", r, e);
56
56
  }
57
57
  }
58
58
  );
59
59
  case m.TEACHER:
60
60
  return /* @__PURE__ */ s.jsx(
61
- Qa,
61
+ $a,
62
62
  {
63
63
  value: e.viewModel.organization,
64
64
  verificationService: e,
65
65
  isErrored: !!o.organization,
66
66
  disabled: (i = d("organization")) == null ? void 0 : i.disabled,
67
67
  onChange: (r) => {
68
- p(r, e), n("organization", r, e);
68
+ C(r, e), n("organization", r, e);
69
69
  }
70
70
  }
71
71
  );
@@ -78,17 +78,17 @@ const fa = ({
78
78
  isErrored: !!o.organization,
79
79
  disabled: (g = d("organization")) == null ? void 0 : g.disabled,
80
80
  onChange: (r) => {
81
- p(r, e), n("organization", r, e);
81
+ C(r, e), n("organization", r, e);
82
82
  }
83
83
  }
84
84
  );
85
85
  case m.MILITARY:
86
86
  return /* @__PURE__ */ s.jsx(
87
- $a,
87
+ Ka,
88
88
  {
89
89
  isErrored: !!o.organization,
90
90
  onChange: (r) => {
91
- p(r, e), n("organization", r, e);
91
+ C(r, e), n("organization", r, e);
92
92
  },
93
93
  value: {
94
94
  value: z(
@@ -104,11 +104,11 @@ const fa = ({
104
104
  );
105
105
  case m.FIRST_RESPONDER:
106
106
  return /* @__PURE__ */ s.jsx(
107
- Ka,
107
+ Ha,
108
108
  {
109
109
  isErrored: !!o.organization,
110
110
  onChange: (r) => {
111
- p(r, e), n("organization", r, e);
111
+ C(r, e), n("organization", r, e);
112
112
  },
113
113
  value: e.viewModel.organization,
114
114
  verificationService: e,
@@ -117,11 +117,11 @@ const fa = ({
117
117
  );
118
118
  case m.MEDICAL:
119
119
  return /* @__PURE__ */ s.jsx(
120
- Ha,
120
+ Ua,
121
121
  {
122
122
  isErrored: !!o.organization,
123
123
  onChange: (r) => {
124
- p(r, e), n("organization", r, e);
124
+ C(r, e), n("organization", r, e);
125
125
  },
126
126
  value: e.viewModel.organization,
127
127
  verificationService: e,
@@ -134,7 +134,7 @@ const fa = ({
134
134
  {
135
135
  isErrored: !!o.organization,
136
136
  onChange: (r) => {
137
- p(r, e), n("organization", r, e);
137
+ C(r, e), n("organization", r, e);
138
138
  },
139
139
  value: e.viewModel.organization,
140
140
  verificationService: e,
@@ -147,9 +147,9 @@ const fa = ({
147
147
  {
148
148
  isErrored: !!o.organization,
149
149
  onChange: (r) => {
150
- p(r, e), n("organization", r, e);
150
+ C(r, e), n("organization", r, e);
151
151
  },
152
- value: Ua(
152
+ value: Ya(
153
153
  e.viewModel.organization
154
154
  ),
155
155
  verificationService: e,
@@ -164,8 +164,8 @@ const fa = ({
164
164
  return N.useEffect(() => {
165
165
  M && b === m.MILITARY ? j({ statuses: [] }) : j({});
166
166
  }, []), N.useEffect(() => {
167
- !na(S).enabled && C && C.length === 0 && ra(t, e, f.collectPersonalInfo);
168
- }, [C]), N.useEffect(() => {
167
+ !na(S).enabled && p && p.length === 0 && ra(t, e, f.collectPersonalInfo);
168
+ }, [p]), N.useEffect(() => {
169
169
  t.status && j({ statuses: [t.status] });
170
170
  }, [t.status]), /* @__PURE__ */ s.jsxs(
171
171
  "div",
@@ -175,26 +175,26 @@ const fa = ({
175
175
  children: [
176
176
  /* @__PURE__ */ s.jsxs("div", { role: "main", children: [
177
177
  /* @__PURE__ */ s.jsx(
178
- la,
178
+ ua,
179
179
  {
180
180
  verificationService: e,
181
181
  classNameIdentifier: "personal-info"
182
182
  }
183
183
  ),
184
184
  /* @__PURE__ */ s.jsx(
185
- ua,
185
+ ma,
186
186
  {
187
187
  verificationService: e,
188
188
  disabled: (F = d("country")) == null ? void 0 : F.disabled
189
189
  }
190
190
  ),
191
191
  R() && /* @__PURE__ */ s.jsx(
192
- ma,
192
+ ia,
193
193
  {
194
194
  segmentId: b,
195
195
  value: {
196
196
  value: t.status,
197
- label: ia(I, t.status, null)
197
+ label: ga(I, t.status, null)
198
198
  },
199
199
  isErrored: !!o.status,
200
200
  errorId: `invalid${ta}Status`,
@@ -212,7 +212,7 @@ const fa = ({
212
212
  u("organization") && oa(),
213
213
  /* @__PURE__ */ s.jsxs("div", { className: "sid-names", children: [
214
214
  u("firstName") && /* @__PURE__ */ s.jsx(
215
- ga,
215
+ Ca,
216
216
  {
217
217
  value: t.firstName,
218
218
  isErrored: !!o.firstName,
@@ -235,7 +235,7 @@ const fa = ({
235
235
  )
236
236
  ] }),
237
237
  u("birthDate") && /* @__PURE__ */ s.jsx(
238
- Ca,
238
+ ha,
239
239
  {
240
240
  value: t.birthDate,
241
241
  errorId: o.birthDate,
@@ -248,7 +248,7 @@ const fa = ({
248
248
  }
249
249
  ),
250
250
  u("email") && /* @__PURE__ */ s.jsx(
251
- ha,
251
+ Ea,
252
252
  {
253
253
  value: t.email,
254
254
  isErrored: !!o.email,
@@ -256,12 +256,12 @@ const fa = ({
256
256
  onChange: (a) => {
257
257
  l("email", a), n("email", a, e);
258
258
  },
259
- onKeyDown: (a) => Ea(a),
260
- disabled: (A = d("email")) == null ? void 0 : A.disabled
259
+ onKeyDown: (a) => Na(a),
260
+ disabled: (P = d("email")) == null ? void 0 : P.disabled
261
261
  }
262
262
  ),
263
263
  u("phoneNumber") && /* @__PURE__ */ s.jsx(
264
- Na,
264
+ Ia,
265
265
  {
266
266
  isRequired: !!e.programTheme.smsLoopEnabled,
267
267
  value: t.phoneNumber,
@@ -270,11 +270,11 @@ const fa = ({
270
270
  l("phoneNumber", a), n("phoneNumber", a, e);
271
271
  },
272
272
  selectedCountryCode: t.countryChoice && t.countryChoice.value,
273
- disabled: (P = d("phoneNumber")) == null ? void 0 : P.disabled
273
+ disabled: (A = d("phoneNumber")) == null ? void 0 : A.disabled
274
274
  }
275
275
  ),
276
276
  u("address1") && /* @__PURE__ */ s.jsx(
277
- Ia,
277
+ xa,
278
278
  {
279
279
  value: t.address1,
280
280
  isRequired: !0,
@@ -287,20 +287,20 @@ const fa = ({
287
287
  }
288
288
  ),
289
289
  u("city") && /* @__PURE__ */ s.jsx(
290
- xa,
290
+ Ma,
291
291
  {
292
292
  value: t.city,
293
293
  isRequired: !0,
294
294
  isErrored: !!o.city,
295
295
  errorId: o.city,
296
- disabled: (k = d("city")) == null ? void 0 : k.disabled,
296
+ disabled: (B = d("city")) == null ? void 0 : B.disabled,
297
297
  onChange: (a) => {
298
298
  l("city", a), n("city", a, e);
299
299
  }
300
300
  }
301
301
  ),
302
302
  u("dischargeDate") && /* @__PURE__ */ s.jsx(
303
- Ma,
303
+ ja,
304
304
  {
305
305
  errorId: o.dischargeDate,
306
306
  locale: x,
@@ -308,16 +308,16 @@ const fa = ({
308
308
  l("dischargeDate", a), n("dischargeDate", a, e);
309
309
  },
310
310
  value: t.dischargeDate,
311
- disabled: (B = d("dischargeDate")) == null ? void 0 : B.disabled
311
+ disabled: (_ = d("dischargeDate")) == null ? void 0 : _.disabled
312
312
  }
313
313
  ),
314
314
  u("driverLicenseNumber") && /* @__PURE__ */ s.jsx(
315
- ja,
315
+ za,
316
316
  {
317
317
  value: t.driverLicenseNumber,
318
318
  isErrored: !!o.driverLicenseNumber,
319
319
  isRequired: !0,
320
- disabled: (_ = d("driverLicenseNumber")) == null ? void 0 : _.disabled,
320
+ disabled: (k = d("driverLicenseNumber")) == null ? void 0 : k.disabled,
321
321
  onChange: (a) => {
322
322
  l("driverLicenseNumber", a), n(
323
323
  "driverLicenseNumber",
@@ -328,7 +328,7 @@ const fa = ({
328
328
  }
329
329
  ),
330
330
  u("ebtCardNumber") && /* @__PURE__ */ s.jsx(
331
- za,
331
+ Da,
332
332
  {
333
333
  value: t.ebtCardNumber,
334
334
  isErrored: !!o.ebtCardNumber,
@@ -339,12 +339,12 @@ const fa = ({
339
339
  }
340
340
  ),
341
341
  u("memberId") && /* @__PURE__ */ s.jsx(
342
- Da,
342
+ ya,
343
343
  {
344
344
  value: t.memberId,
345
345
  isErrored: !!o.memberId,
346
- isRequired: (Y = d("memberId")) == null ? void 0 : Y.requireIfOptional,
347
- disabled: (V = d("memberId")) == null ? void 0 : V.disabled,
346
+ isRequired: (V = d("memberId")) == null ? void 0 : V.requireIfOptional,
347
+ disabled: (Y = d("memberId")) == null ? void 0 : Y.disabled,
348
348
  onChange: (a) => {
349
349
  l("memberId", a), n("memberId", a, e);
350
350
  },
@@ -358,7 +358,7 @@ const fa = ({
358
358
  }
359
359
  ),
360
360
  u("postalCode") && /* @__PURE__ */ s.jsx(
361
- ya,
361
+ Ra,
362
362
  {
363
363
  isErrored: !!o.postalCode,
364
364
  onChange: (a) => {
@@ -369,7 +369,7 @@ const fa = ({
369
369
  }
370
370
  ),
371
371
  u("socialSecurityNumber") && /* @__PURE__ */ s.jsx("div", { className: "sid-ssn-wrapper", children: /* @__PURE__ */ s.jsx(
372
- Ra,
372
+ Fa,
373
373
  {
374
374
  value: t.socialSecurityNumber,
375
375
  onChange: (a) => {
@@ -379,16 +379,16 @@ const fa = ({
379
379
  e
380
380
  );
381
381
  },
382
- isErrored: !!o[Fa.socialSecurityNumber],
382
+ isErrored: !!o[La.socialSecurityNumber],
383
383
  placeholder: "000-00-0000",
384
384
  disabled: (H = d("socialSecurityNumber")) == null ? void 0 : H.disabled
385
385
  }
386
386
  ) }),
387
387
  u("state") && /* @__PURE__ */ s.jsx(
388
- La,
388
+ Oa,
389
389
  {
390
390
  isRequired: !0,
391
- options: Oa(e.programTheme, I),
391
+ options: Ta(e.programTheme, I),
392
392
  value: t.state || void 0,
393
393
  isErrored: !!o.state,
394
394
  onChange: async (a) => {
@@ -400,7 +400,7 @@ const fa = ({
400
400
  }
401
401
  ),
402
402
  u("activeDutyStartDate") && e.programTheme.strictMilitaryValidationEnabled && /* @__PURE__ */ s.jsx(
403
- Ta,
403
+ qa,
404
404
  {
405
405
  errorId: o.activeDutyStartDate,
406
406
  locale: x,
@@ -412,10 +412,10 @@ const fa = ({
412
412
  );
413
413
  },
414
414
  value: t.activeDutyStartDate,
415
- disabled: ($ = d("activeDutyStartDate")) == null ? void 0 : $.disabled
415
+ disabled: (X = d("activeDutyStartDate")) == null ? void 0 : X.disabled
416
416
  }
417
417
  ),
418
- (X = sa.customFormFields) == null ? void 0 : X.map((a) => /* @__PURE__ */ s.jsx(qa, { config: a, verificationService: e })),
418
+ ($ = sa.customFormFields) == null ? void 0 : $.map((a) => /* @__PURE__ */ s.jsx(Pa, { config: a, verificationService: e })),
419
419
  /* @__PURE__ */ s.jsx(
420
420
  Aa,
421
421
  {
@@ -435,9 +435,9 @@ const fa = ({
435
435
  disabled: (Q = d("marketConsentValue")) == null ? void 0 : Q.disabled
436
436
  }
437
437
  ),
438
- /* @__PURE__ */ s.jsx(Pa, { verificationService: e, suffix: "CollectAboveSubmit" }),
438
+ /* @__PURE__ */ s.jsx(wa, { verificationService: e, suffix: "CollectAboveSubmit" }),
439
439
  /* @__PURE__ */ s.jsx(
440
- wa,
440
+ Ba,
441
441
  {
442
442
  step: f.collectPersonalInfo,
443
443
  verificationService: e,
@@ -453,7 +453,7 @@ const fa = ({
453
453
  }
454
454
  )
455
455
  ] }),
456
- /* @__PURE__ */ s.jsx(ka, { verificationService: e })
456
+ /* @__PURE__ */ s.jsx(_a, { verificationService: e })
457
457
  ]
458
458
  }
459
459
  );